提交代码

main
姜玉琦 2023-09-13 14:39:57 +08:00
parent fa97a6c039
commit 20ea41c983
75 changed files with 0 additions and 8542 deletions

View File

@ -10,26 +10,12 @@
"pages/ranyuanguanli-map/map",
"pages/map/map",
"pages/shebeiguanli-map/jixiedingwei",
"pages/deepExcavation/index",
"pages/newAddPage/safetyManagement/index",
"pages/learn-page/index",
"pages/winter-training/index",
"pages/saft-education-user-bind/index",
"pages/temporaryToExamine/index",
"pages/tempRegistration/index",
"pages/Highlight-photos/index",
"pages/newAddPage/letterCommitment/index",
"pages/newAddPage2/letterCommitment/index",
"pages/Security-control-echarts/index",
"pages/Concrete-usage/index",
"pages/Quality-Assurance/index",
"pages/Standard-maintenance-room-monitoring/index",
"pages/hnt-strong/index",
"pages/construction/index",
"pages/Construction-Log/index",
"pages/construction-details/index",
"pages/measures/index",
"pages/measures-Chakan/index",
"pages/updatePassword/updatePassword",
"pages/safety_manage/index",
"pages/quality_manage/index"
@ -50,14 +36,7 @@
"AIWarningList/index",
"vehicleManage/index",
"shipinquanping/shipingquanping",
"voucherManagement/index",
"voucherManagementAddto/index",
"biangeng/index",
"suishoupai/suishoupai",
"suishoupai-psh/suishoupai-psh",
"lw-index/lw-index",
"lw-gerenxinxi/lw-gerenxinxi",
"lw-jibenxinxi/lw-jibenxinxi",
"safetyManagement/securityCheckGR/index",
"safetyManagement/securityCheck/index",
"safetyManagement/problemRectificationGR/index",

View File

@ -1,97 +0,0 @@
// pages/lw-gerenxinxi/lw-gerenxinxi.js
const app = getApp()
Page({
/**
* 页面的初始数据
*/
data: {
register:'', // 1 已注册 2 未注册
userInfoData:{},
//人员信息
userphoto:'',
name:'',
workType:'',
uninName:'',
date:'',
loadShow:false,
},
onClickShow() {
this.setData({ loadShow: true });
},
onClickHide() {
this.setData({ loadShow: false });
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
var date = new Date();
var dateYaer = date.getFullYear();
var dateMonth = date.getMonth() + 1;
var dateDay = date.getDate();
if(options.register == 1){
var json =JSON.parse(decodeURIComponent(options.userInfo));
this.setData({
register:options.register,
userphoto:'data:image/jpeg;base64,'+json.pathUrl,
name:json.name,
workType:json.workType,
uninName:json.uninName,
date: dateYaer+'-'+dateMonth+ '-'+dateDay,
userInfoData:json,
});
}else{
this.setData({
register:options.register,
userphoto:'data:image/jpeg;base64,'+decodeURIComponent(options.pathUrl),
});
}
},
/**
* 打卡确认
*/
returnData:function(){
var that = this;
that.onClickShow();
wx.request({
url: app.globalData.reqUrl+'/weixin/labour/synClockData',
header: {
"Content-Type": "application/x-www-form-urlencoded"
},
method:"POST",
data:{
id:app.globalData.projectId,
userInfoData:JSON.stringify(this.data.userInfoData),
},
success:function(res){
that.onClickHide();
app.toast(res.data.msg);
wx.redirectTo({
url: '../lw-index/lw-index',
})
}
})
},
/**
* 返回劳务管控页面
*/
goBack:function(){
wx.redirectTo({
url: '../lw-index/lw-index',
})
},
/**
* 返回到注册页面
*/
goRegisterPage:function(){
wx.redirectTo({
url: '../lw-jibenxinxi/lw-jibenxinxi',
})
}
})

View File

@ -1,8 +0,0 @@
{
"usingComponents": {
"van-row": "@vant/weapp/row",
"van-col": "@vant/weapp/col",
"van-overlay": "@vant/weapp/overlay/index"
},
"navigationStyle":"custom"
}

View File

@ -1,88 +0,0 @@
<!--pages/lw-gerenxinxi/lw-gerenxinxi.wxml-->
<view class="header_title">
<view class="">
<van-row>
<van-col span="6" bindtap="goBack">
<view class="header_img"><image src="/images/left.png"></image></view>
</van-col>
<van-col span="12">
<view class="header_name">个人信息</view>
</van-col>
</van-row>
</view>
</view>
<view class="max_content">
<view class="lw_info_padding">
<view class="lw_info_img">
<image src="{{userphoto}}"></image>
</view>
</view>
<!-- 已注册 -->
<view wx:if="{{register == 1}}">
<view class="lw_info_list">
<van-row>
<van-col span="6">
<image src="/images/lw_5.png"></image>
<text>姓名</text>
</van-col>
<van-col span="18">
<view class="lw_info_right">{{name}}</view>
</van-col>
</van-row>
</view>
<view class="lw_info_list">
<van-row>
<van-col span="6">
<image src="/images/lw_6.png"></image>
<text>工种</text>
</van-col>
<van-col span="18">
<view class="lw_info_right">{{workType}}</view>
</van-col>
</van-row>
</view>
<view class="lw_info_list">
<van-row>
<van-col span="6">
<image src="/images/lw_7.png"></image>
<text>劳务公司</text>
</van-col>
<van-col span="18">
<view class="lw_info_right">{{uninName}}</view>
</van-col>
</van-row>
</view>
<view class="lw_info_list">
<van-row>
<van-col span="6">
<image src="/images/lw_8.png"></image>
<text>时间</text>
</van-col>
<van-col span="18">
<view class="lw_info_right">{{date}}</view>
</van-col>
</van-row>
</view>
<view class="lw_btn_zc" bindtap="returnData">确认</view>
</view>
<!-- 未注册 -->
<view wx:if="{{register == 2}}">
<view class="lw_tips">该人员信息未注册,是否录入基本信息?</view>
<view class="lw_bnt" bindtap="goRegisterPage">
<button class="lw_bnt_1">立即注册</button>
</view>
<view class="lw_bnt" bindtap="goBack">
<button class="lw_bnt_2">返回</button>
</view>
</view>
</view>
<van-overlay show="{{loadShow}}">
<view class="gif">
<image src="../../images/loding2.gif"></image>
<view>数据加载中!请稍后...</view>
</view>
</van-overlay>

View File

@ -1,75 +0,0 @@
/* pages/lw-gerenxinxi/lw-gerenxinxi.wxss */
.lw_info_padding{
padding: 50rpx 0;
}
.lw_info_img{
width: 300rpx;
height: 300rpx;
margin: auto;
background: url("http://fileimg.makalu.cc/WEB_84250138634B44129412859F8877F7FB.png") no-repeat center/100% 100%;
}
.lw_info_img image{
width: 300rpx;
height: 300rpx;
}
.lw_info_list{
padding: 30rpx 40rpx;
font-size: 26rpx;
color: #8ba2ee;
}
.lw_info_list image{
width: 35rpx;
height: 35rpx;
margin-right: 10rpx;
}
.lw_info_list text{
position: relative;
top: -8rpx;
}
.lw_info_right{
text-align: right;
color: #ffffff;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.lw_tips{
text-align: center;
color: #8ba2ee;
font-size: 30rpx;
padding: 30rpx 0;
}
.lw_bnt{
padding: 30rpx;
}
.lw_bnt button{
border-radius: 50rpx;
font-weight: 400;
font-size: 30rpx;
}
.lw_bnt_1{
background:#7067fe ;
color: #ffffff;
}
.lw_bnt_1:active{
background: #6487ff;
}
.lw_bnt_2{
background:#28345a ;
color: #8ba3ed;
}
.lw_bnt_2:active{
background: #323b57;
}
.lw_btn_zc{
width:70%;
margin: 50rpx auto 0;
text-align: center;
height: 70rpx;
line-height: 70rpx;
background: #687bfe;
border-radius: 30rpx;
}
.lw_btn_zc:active{
background: #7655fc;
}

View File

@ -1,151 +0,0 @@
// pages/lw-index/lw-index.js
const app = getApp()
Page({
/**
* 页面的初始数据
*/
data: {
show: false,
projectId:'',
projectName:'' ,
loginName:'',
userName:'',
loadShow:false,
remark:''
},
onClickShow() {
this.setData({ loadShow: true });
},
onClickHide() {
this.setData({ loadShow: false });
},
showPopup() {
this.setData({ show: true });
},
onClose() {
this.setData({ show: false });
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
var that = this;
//获取缓存数据
wx.getStorage({
key: 'userinfo',
success:function(res){
that.setData({
remark:res.data.remark,
loginName:res.data.loginName,
userName:res.data.userName,
projectId:app.globalData.projectId,
projectName:app.globalData.projectName,
})
}
})
},
/**
* 人脸照片识别
* file 图片地址
* type == "" 人脸图片
*/
selectIDCardInfo:function(file,projectId){
var that = this;
that.onClickShow();
wx.uploadFile({
url: app.globalData.reqUrl+'/weixin/labour/selectUserInfoDiscern',
header: {
"Content-Type": "application/x-www-form-urlencoded"
},
filePath: file[0],
name: 'file',
formData: {'projectId':projectId},
method:"post",
success:function(res){
that.onClickHide();
var json = JSON.parse(res.data);
if(json.code == '200'){
wx.redirectTo({
url: '../lw-gerenxinxi/lw-gerenxinxi?register=1'+'&userInfo='+encodeURIComponent(JSON.stringify(json.data)),
})
}else if(json.code == '400'){
wx.redirectTo({
url: '../lw-gerenxinxi/lw-gerenxinxi?register=2'+'&pathUrl='+encodeURIComponent(json.data),
})
}else{
app.toast(json.msg);
}
},
})
},
/**
* 跳转到考勤打卡
*/
KQDK:function(){
var _this = this;
var Type = _this.data.sourceType
wx.chooseImage({
count: 1, // 默认9
sizeType: ['original', 'compressed'], // 可以指定是原图还是压缩图,默认二者都有
sourceType: Type, // 可以指定来源是相册还是相机,默认二者都有
success: function (res) {
// 返回选定照片的本地文件路径列表tempFilePath可以作为img标签的src属性显示图片
_this.selectIDCardInfo(res.tempFilePaths,app.globalData.projectId);
}
})
},
/**
* 跳转到报表查询
*/
BBCX:function(){
wx.redirectTo({
url: '../lw-baobiaochaxun/lw-baobiaochaxun',
})
},
/**
* 跳转信息录入
*/
XXLR:function(){
wx.redirectTo({
url: '../lw-jibenxinxi/lw-jibenxinxi',
})
},
/**
* 返回更多功能
*/
goBack:function(){
wx.redirectTo({
url: '../../pages/gengduogongneng/gengduogongneng'
})
},
/**
* 退出登录
*/
TCDL:function(){
wx.clearStorageSync();
wx.setStorageSync('isReload', "1")
wx.redirectTo({
url: '../login/login',
})
},
})

View File

@ -1,9 +0,0 @@
{
"usingComponents": {
"van-row": "@vant/weapp/row",
"van-col": "@vant/weapp/col",
"van-popup": "@vant/weapp/popup",
"van-overlay": "@vant/weapp/overlay/index"
},
"navigationStyle":"custom"
}

View File

@ -1,100 +0,0 @@
<!--pages/lw-index/lw-index.wxml-->
<view class="header_title">
<view class="header_title_row">
<van-row>
<van-col span="3">
<view class="header_img" bindtap="showPopup"><image src="/images/core.png"></image></view>
</van-col>
<van-col span="4">
<view class="header_img" bindtap="goBack">
<image src="/images/left.png"></image>
<text class="header_fh">返回</text>
</view>
</van-col>
<van-col span="10">
<view class="header_name">劳务管控</view>
</van-col>
</van-row>
</view>
</view>
<!-- 左侧账号信息 -->
<van-popup show="{{ show }}" position="left" custom-style="width: 70%;height:100%;background:#191d28" bind:close="onClose" >
<view class="left_max">
<van-row class="demo clearfix">
<van-col span="10">
<view class="left_head"><image src="http://fileimg.makalu.cc/szgl/9015e824c5004e629049c4f72967cfdc.png"></image></view>
</van-col>
<van-col span="14">
<view class="left_info">
<view class="left_info_name">{{userName}}</view>
<view class="left_info_name">{{loginName}}</view>
</view>
</van-col>
</van-row>
<view class="left_manage_max">
</view>
<!-- <view class="left_manage_min">
<view class="left_manage" bindtap="TCDL">
<view class="left_sign">
退出登录
</view>
</view>
</view> -->
</view>
</van-popup>
<view class="max_content">
<view class="lw_max">
<view class="lw_min" bindtap="KQDK">
<image src="/images/lw_1.png" class="lw_img_1"></image>
考勤打卡
<image src="/images/right.png" class="lw_img_right"></image>
</view>
</view>
<view class="lw_max">
<view class="lw_min" bindtap="BBCX">
<image src="/images/lw_2.png" class="lw_img_1"></image>
报表查询
<image src="/images/right.png" class="lw_img_right"></image>
</view>
</view>
<!-- <view class="lw_max" wx:if="{{remark == ''}}">
<view class="lw_min" bindtap="XXLR">
<image src="/images/lw_3.png" class="lw_img_1"></image>
信息录入
<image src="/images/right.png" class="lw_img_right"></image>
</view>
</view> -->
</view>
<van-overlay show="{{loadShow}}">
<view class="gif">
<image src="../../images/loding2.gif"></image>
<view>数据加载中!请稍后...</view>
</view>
</van-overlay>

View File

@ -1,35 +0,0 @@
/* pages/lw-index/lw-index.wxss */
.lw_max{
padding: 20rpx 50rpx;
}
.lw_min{
padding: 20rpx;
background: #2b345b;
border-radius: 15rpx;
font-size: 30rpx;
}
.lw_min .lw_img_1{
width: 40rpx;
height: 40rpx;
position: relative;
top: 8rpx;
margin-right: 15rpx;
}
.lw_img_right{
float: right;
width: 40rpx;
height: 40rpx;
position: relative;
top: 5rpx;
}

View File

@ -1,480 +0,0 @@
// // pages/lw-jibenxinxi/lw-jibenxinxi.js
// const app = getApp()
// Page({
// /**
// * 页面的初始数据
// */
// data: {
// radio: '1',
// nameGz:'请选择工种',
// showGz: false,
// columnsGz:[],
// nameGx:'请选择班组',
// showGx: false,
// columnsGx:[],
// nameLwgs:'请选择劳务公司',
// showLwgs: false,
// columnsLwgs:[],
// date:'请选择入场时间',
// showDate: false,
// today:'',
// minDate: new Date(2020, 0, 1).getTime(),
// maxDate: new Date().getTime(),
// //上传证件
// tempFilePaths: '',
// sourceType: ['album', 'camera'],
// FilePaths:'',
// recitePaths:'',
// photographImg:'',
// idCardPositiveMap:{},
// idCardVersoMap:{},
// facePhotos:{},
// idCardPositiveErrorMap:{},
// idCardVersoErrorMap:{},
// facePhotosError:{},
// //个人信息
// phone:'',
// teamid:'',
// worktypeid:'',
// labourId:'',
// loadShow:false,
// },
// onClickShow() {
// this.setData({ loadShow: true });
// },
// onClickHide() {
// this.setData({ loadShow: false });
// },
// onChange(event) {
// this.setData({
// radio: event.detail,
// });
// },
// onClose() {
// this.setData({ showGz: false });
// this.setData({ showGx: false });
// this.setData({ showLwgs : false });
// this.setData({ showDate: false });
// },
// //劳务工种
// showPopupGz() {
// this.setData({ showGz: true });
// },
// onChangeGz(event) {
// this.setData({ nameGz: event.detail.value.text,worktypeid:event.detail.value.id });
// this.setData({ showGz: false });
// },
// //劳务班组
// showPopupGx() {
// this.setData({ showGx: true });
// },
// onChangeGx(event) {
// this.setData({ nameGx: event.detail.value.text,teamid: event.detail.value.id});
// this.setData({ showGx: false });
// },
// //劳务公司
// showPopupLwgs () {
// this.setData({ showLwgs : true });
// },
// onChangeLwgs (event) {
// this.setData({ nameLwgs : event.detail.value.text,labourId:event.detail.value.id });
// this.setData({ showLwgs : false });
// this.setData({ nameGx : '请选择班组' });
// this.selectLabourGroupAll(app.globalData.projectId,event.detail.value.id);
// },
// //入场时间
// onDisplay() {
// this.setData({ showDate: true });
// },
// formatDate(date) {
// date = new Date(date);
// var dateYaer = date.getFullYear();
// var dateMonth = date.getMonth() + 1;
// var dateDay = date.getDate();
// if(dateMonth < 10 ){
// dateMonth = '0' + dateMonth;
// }
// if(dateDay < 10 ){
// dateDay = '0' + dateDay;
// }
// return dateYaer+'-'+dateMonth+ '-'+dateDay;
// },
// onConfirm(event) {
// this.setData({
// showDate: false,
// date: this.formatDate(event.detail),
// });
// },
// frontimage: function () {
// this.onClickShow();
// var _this = this;
// var Type = _this.data.sourceType
// wx.chooseImage({
// count: 1, // 默认9
// sizeType: ['original', 'compressed'], // 可以指定是原图还是压缩图,默认二者都有
// sourceType: Type, // 可以指定来源是相册还是相机,默认二者都有
// success: function (res) {
// // 返回选定照片的本地文件路径列表tempFilePath可以作为img标签的src属性显示图片
// _this.setData({
// FilePaths: res.tempFilePaths
// })
// _this.selectIDCardInfo(res.tempFilePaths,'1');
// }
// })
// },
// reciteimage: function () {
// this.onClickShow();
// var _this = this;
// var Type = _this.data.sourceType
// wx.chooseImage({
// count: 1, // 默认9
// sizeType: ['original', 'compressed'], // 可以指定是原图还是压缩图,默认二者都有
// sourceType: Type, // 可以指定来源是相册还是相机,默认二者都有
// success: function (res) {
// // 返回选定照片的本地文件路径列表tempFilePath可以作为img标签的src属性显示图片
// _this.setData({
// recitePaths: res.tempFilePaths
// })
// _this.selectIDCardInfo(res.tempFilePaths,'2');
// }
// })
// },
// photograph: function () {
// this.onClickShow();
// var _this = this;
// var Type = _this.data.sourceType
// wx.chooseImage({
// count: 1, // 默认9
// sizeType: ['original', 'compressed'], // 可以指定是原图还是压缩图,默认二者都有
// sourceType: Type, // 可以指定来源是相册还是相机,默认二者都有
// success: function (res) {
// // 返回选定照片的本地文件路径列表tempFilePath可以作为img标签的src属性显示图片
// _this.setData({
// photographImg: res.tempFilePaths
// })
// _this.selectIDCardInfo(res.tempFilePaths,'');
// }
// })
// },
// /**
// * 人员电话信息
// * @param {} even
// */
// phone:function(even){
// this.setData({
// phone:even.detail.value
// })
// },
// /**
// * 生命周期函数--监听页面加载
// */
// onLoad: function (options) {
// this.onClickShow();
// var date = new Date();
// var dateYaer = date.getFullYear();
// var dateMonth = date.getMonth() + 1;
// var dateDay = date.getDate();
// if(dateMonth < 10 ){
// dateMonth = '0' + dateMonth;
// }
// if(dateDay < 10 ){
// dateDay = '0' + dateDay;
// }
// this.setData({
// today:dateYaer+'-'+dateMonth+ '-'+dateDay,
// })
// this.selectLabourWorkAll();
// this.selectLabourUnitAll(app.globalData.projectId);
// },
// /**
// * 查询全量工种信息
// */
// selectLabourWorkAll:function(){
// var that = this;
// wx.request({
// url: app.globalData.reqUrl+'/weixin/labour/selectLabourWorkAll',
// method:"GET",
// success:function(res){
// if(res.data.code == '200'){
// that.setData({
// columnsGz:res.data.data
// })
// }
// }
// })
// },
// /**
// * 根据项目id查询出参建单位信息
// * @param {*} projectId 项目id
// */
// selectLabourUnitAll:function(projectId){
// var that = this;
// wx.request({
// url: app.globalData.reqUrl+'/weixin/labour/selectLabourUnitAll',
// data:{
// "projectId":projectId
// },
// method:"GET",
// success:function(res){
// that.onClickHide();
// if(res.data.code == '200'){
// that.setData({
// columnsLwgs:res.data.data
// })
// }
// }
// })
// },
// /**
// * 查询出班组信息
// * @param {*} projectId 项目id
// * @param {*} unitId 劳务公司id
// */
// selectLabourGroupAll:function(projectId,unitId){
// var that = this;
// wx.request({
// url: app.globalData.reqUrl+'/weixin/labour/selectLabourGroupAll',
// data:{
// "projectId":projectId,
// "unitId":unitId
// },
// method:"GET",
// success:function(res){
// if(res.data.code == '200'){
// that.setData({
// columnsGx:res.data.data
// })
// }
// }
// })
// },
// /**
// * 身份证识别
// * file 图片地址
// * type == 1 身份证正面
// * type == 2 身份证反面
// * type == "" 人脸图片
// */
// selectIDCardInfo:function(file,type){
// var that = this;
// wx.uploadFile({
// url: app.globalData.reqUrl+'/weixin/labour/selectIDCardInfo',
// header: {
// "Content-Type": "application/x-www-form-urlencoded"
// },
// filePath: file[0],
// name: 'file',
// formData: {'type':type},
// method:"post",
// success:function(res){
// that.onClickHide();
// var json = JSON.parse(res.data);
// if(json.code == "200"){
// if(type == "1"){
// that.setData({
// idCardPositiveMap:json.data,
// idCardPositiveErrorMap:{}
// })
// }else if(type == "2"){
// that.setData({
// idCardVersoMap:json.data,
// idCardVersoErrorMap:{}
// })
// }else{
// that.setData({
// facePhotos:json.data,
// facePhotosError:{}
// })
// }
// }else{
// if(type == "1"){
// that.setData({
// idCardPositiveMap:{},
// idCardPositiveErrorMap:json
// })
// }else if(type == "2"){
// that.setData({
// idCardVersoMap:{},
// idCardVersoErrorMap:json
// })
// }else{
// that.setData({
// facePhotos:{},
// facePhotosError:json
// })
// }
// app.toast(json.msg);
// }
// },
// })
// },
// /**
// * 人员注册
// */
// add:function(){
// var that = this;
// //验证
// var FilePaths = this.data.FilePaths;
// var recitePaths = this.data.recitePaths;
// var photographImg = this.data.photographImg;
// var phone = this.data.phone;
// var nameGz = this.data.nameGz;
// var nameLwgs = this.data.nameLwgs;
// var nameGx = this.data.nameGx;
// var date = this.data.date;
// var teamid = this.data.teamid;
// var worktypeid = this.data.worktypeid;
// var labourId = this.data.labourId;
// var idCardPositiveMap = this.data.idCardPositiveMap;
// var idCardVersoMap = this.data.idCardVersoMap;
// var facePhotos = this.data.facePhotos;
// //异常信息
// var idCardPositiveErrorMap = this.data.idCardPositiveErrorMap;
// var idCardVersoErrorMap = this.data.idCardVersoErrorMap;
// var facePhotosError = this.data.facePhotosError;
// if(FilePaths == ""){
// app.toast("请上传身份证正面照片!");
// return;
// }if(recitePaths == ""){
// app.toast("请上传身份证反面照片!");
// return;
// }if(photographImg == ""){
// app.toast("请上传人脸照片!");
// return;
// }if(phone == "" || phone.length != 11){
// app.toast("请填写正确的电话号码!");
// return;
// }if(nameGz == "请选择工种"){
// app.toast("请选择工种信息!");
// return;
// }if(nameLwgs == "请选择劳务公司"){
// app.toast("请选择劳务公司!");
// return;
// }if(nameGx == "请选择班组"){
// app.toast("请选择班组!");
// return;
// }if(date == "请选择入场时间"){
// app.toast("请选择入场时间");
// return;
// }if(idCardPositiveErrorMap !='' && idCardPositiveErrorMap.code == "300"){
// app.toast(idCardPositiveErrorMap.msg);
// return;
// }if(idCardVersoErrorMap !='' && idCardVersoErrorMap.code == "300"){
// app.toast(idCardVersoErrorMap.msg);
// return;
// }if(idCardVersoErrorMap != '' && facePhotosError.code == "300"){
// app.toast(facePhotosError.msg);
// return;
// }
// /************对比照片是否为同一人********/
// this.onClickShow();
// //定义数组
// var list =new Array();
// var userData = {
// "image":facePhotos.pathUrl,
// "image_type":"BASE64",
// "face_type":"LIVE",
// };
// var idcardimgData = {
// "image":idCardPositiveMap.pathUrl,
// "image_type":"BASE64",
// "face_type":"CERT",
// }
// list.push(idcardimgData);
// list.push(userData);
// wx.request({
// url: app.globalData.reqUrl+'/weixin/labour/imgContrast',
// header: {
// "Content-Type": "application/x-www-form-urlencoded"
// },
// data:{
// "parame":JSON.stringify(list)
// },
// method:"POST",
// success:function(res){
// if(res.data.code == '200'){
// //同步数据
// wx.request({
// url: app.globalData.reqUrl+'/weixin/labour/addUserData',
// header: {
// "Content-Type": "application/x-www-form-urlencoded"
// },
// data:{
// "id":app.globalData.projectId,
// "idcardnum":idCardPositiveMap.cardNum,
// "name":idCardPositiveMap.name,
// "teamid":teamid,
// "userphone":phone,
// "userphotoSpare":facePhotos.pathUrl,
// "enterdate":date,
// "worktypeid":worktypeid,
// "sex":idCardPositiveMap.sex,
// "nation":idCardPositiveMap.nation,
// "birthday":idCardPositiveMap.birthday,
// "address":idCardPositiveMap.address,
// "organization":idCardVersoMap.organization,
// "useStarttime":idCardVersoMap.use_starttime,
// "useEndtime":idCardVersoMap.use_endTime,
// "idcardimgSpare":idCardPositiveMap.pathUrl,
// "idcardimgSpare2":idCardVersoMap.pathUrl
// },
// method:"POST",
// success:function(res){
// that.onClickHide();
// if(res.data.code == "200"){
// app.toast("注册成功");
// wx.redirectTo({
// url: '../lw-jibenxinxi/lw-jibenxinxi',
// })
// }else{
// app.toast(res.data.msg);
// return;
// }
// }
// })
// }else{
// that.onClickHide();
// app.toast(res.data.msg);
// return;
// }
// }
// })
// },
// /**
// * 返回劳务管控页面
// */
// goBack:function(){
// wx.redirectTo({
// url: '../lw-index/lw-index',
// })
// }
// })

View File

@ -1,14 +0,0 @@
{
"usingComponents": {
"van-row": "@vant/weapp/row",
"van-col": "@vant/weapp/col",
"van-radio": "@vant/weapp/radio/index",
"van-radio-group": "@vant/weapp/radio-group/index",
"van-popup": "@vant/weapp/popup/index",
"van-picker": "@vant/weapp/picker/index",
"van-calendar": "@vant/weapp/calendar/index",
"van-uploader": "@vant/weapp/uploader/index",
"van-overlay": "@vant/weapp/overlay/index"
},
"navigationStyle":"custom"
}

View File

@ -1,139 +0,0 @@
<!-- pages/lw-jibenxinxi/lw-jibenxinxi.wxml
<view class="header_title">
<view class="">
<van-row>
<van-col span="6" bindtap="goBack">
<view class="header_img"><image src="/images/left.png"></image></view>
</van-col>
<van-col span="12">
<view class="header_name">基本信息</view>
</van-col>
</van-row>
</view>
</view>
<view class="max_content">
<view class="eharts_title">身份证信息</view>
<view class="max_content_padding">
<van-row>
<van-col span="12">
<view class="lw_id_padding">
<view class="lw_id_border" bindtap="frontimage">
<view class="lw_id_card lw_id_card_z">
<image src="{{FilePaths}}"></image>
</view>
<view class="lw_id_where">上传身份证正面</view>
</view>
</view>
</van-col>
<van-col span="12">
<view class="lw_id_padding">
<view class="lw_id_border" bindtap="reciteimage">
<view class="lw_id_card lw_id_card_f">
<image src="{{recitePaths}}"></image>
</view>
<view class="lw_id_where">上传身份证正面</view>
</view>
</view>
</van-col>
</van-row>
</view>
<view class="eharts_title">人脸信息</view>
<view class="max_content_padding">
<van-row>
<van-col span="12">
<view class="lw_id_padding">
<view class="lw_id_border" bindtap="photograph">
<view class="lw_photo">
<image src="{{photographImg}}"></image>
</view>
</view>
</view>
</van-col>
</van-row>
</view>
<view class="eharts_title">个人信息</view>
<view class="lw_table_div">
<van-row>
<van-col span="6">
<view class="lw_table_left">电话:</view>
</van-col>
<van-col span="18">
<view class="lw_table_right">
<input type="text" placeholder="请输入电话" class="lw_input" bindinput="phone"></input>
</view>
</van-col>
</van-row>
<van-row>
<van-col span="6">
<view class="lw_table_left">工种:</view>
</van-col>
<van-col span="18">
<view class="lw_table_right">
<view class="lw_input lw_input_view " bindtap="showPopupGz">{{nameGz}} <image src="/images/bottom.png"></image></view>
<van-popup show="{{ showGz }}" position="bottom" bind:close="onClose">
<view class="map_list_info">
<van-picker show-toolbar default-index="{{0}}" columns="{{ columnsGz }}" bind:cancel="onClose" bind:confirm="onChangeGz"/>
</view>
</van-popup>
</view>
</van-col>
</van-row>
<van-row>
<van-col span="6">
<view class="lw_table_left">劳务公司:</view>
</van-col>
<van-col span="18">
<view class="lw_table_right">
<view class="lw_input lw_input_view " bindtap="showPopupLwgs">{{nameLwgs}} <image src="/images/bottom.png"></image></view>
<van-popup show="{{ showLwgs }}" position="bottom" bind:close="onClose">
<view class="map_list_info">
<van-picker show-toolbar default-index="{{0}}" columns="{{ columnsLwgs }}" bind:cancel="onClose" bind:confirm="onChangeLwgs"/>
</view>
</van-popup>
</view>
</van-col>
</van-row>
<van-row>
<van-col span="6">
<view class="lw_table_left">班组名称:</view>
</van-col>
<van-col span="18">
<view class="lw_table_right">
<view class="lw_input lw_input_view " bindtap="showPopupGx">{{nameGx}} <image src="/images/bottom.png"></image></view>
<van-popup show="{{ showGx }}" position="bottom" bind:close="onClose">
<view class="map_list_info">
<van-picker show-toolbar default-index="{{0}}" columns="{{ columnsGx }}" bind:cancel="onClose" bind:confirm="onChangeGx"/>
</view>
</van-popup>
</view>
</van-col>
</van-row>
<van-row>
<van-col span="6">
<view class="lw_table_left">入场时间:</view>
</van-col>
<van-col span="18">
<view class="lw_table_right">
<view class="lw_input lw_input_view" bindtap="onDisplay" value="{{ date }}">{{date}} <image src="/images/lw_1.png"></image></view>
<van-calendar show="{{ showDate }}" bind:close="onClose" default-date="{{today}}" show-confirm="{{ false }}" bind:confirm="onConfirm" min-date="{{ minDate }}" max-date="{{ maxDate }}" color="#07c160" />
</view>
</van-col>
</van-row>
<view class="lw_btn_zc" bindtap="add">立即注册</view>
</view>
</view>
<van-overlay show="{{loadShow}}">
<view class="gif">
<image src="../../images/loding2.gif"></image>
<view>数据加载中!请稍后...</view>
</view>
</van-overlay> -->

View File

@ -1,261 +0,0 @@
/* pages/lw-jibenxinxi/lw-jibenxinxi.wxss */
.eharts_title{
height: 40rpx;
line-height: 40rpx;
margin: 0 30rpx;
padding: 40rpx;
font-size: 28rpx;
background: url("http://fileimg.makalu.cc/CORE_52887EE6A33042408E11C2174974ABA1.png") no-repeat left/35rpx;
}
.max_content_padding{
padding: 0 15rpx;
}
.lw_id_padding{
padding:0 15rpx ;
}
.lw_id_card{
height: 200rpx;
border-radius:10rpx 10rpx 0 0 ;
}
.lw_id_card_z{
background: url("http://fileimg.makalu.cc/WEB_F094DC0DFE42440A82055968A36CDD0C.png") no-repeat center/65%;
}
.lw_id_card_f{
background:url("http://fileimg.makalu.cc/WEB_43595673EA4A42DEBED5D3705C3CAADA.png") no-repeat center/65%;
}
.lw_id_card image{
width: 100%;
height: 100%;
border-radius:10rpx 10rpx 0 0 ;
}
.lw_id_border{
background: #28345a;
border-radius: 10rpx;
border: 1px solid #425399;
}
.lw_id_where{
background: #425399;
text-align: center;
font-size: 28rpx;
padding:15rpx 0;
color: #c1d2ff;
}
.lw_photo{
height: 300rpx;
background:url("http://fileimg.makalu.cc/WEB_FA2A182381DB4C36BBDC68DAB90D2186.png") no-repeat center/80%;
}
.lw_photo image{
width: 100%;
height: 100%;
border-radius: 10rpx;
}
.lw_table_div{
padding: 0 30rpx;
font-size: 28rpx;
}
.lw_table_left{
padding:0 10rpx;
height: 100rpx;
text-align: right;
line-height: 100rpx;
}
.lw_table_right{
padding:0 10rpx;
height: 100rpx;
border-bottom: 1px solid #343d5a;
}
.lw_input{
height: 100rpx;
width: 100%;
}
.van-radio__label{
color:#ffffff !important;
}
.van-radio{
float: left;
margin: 30rpx 30rpx 30rpx 0;
}
/* 插件 */
/* pages/gongchengliebiao/gongchengliebiao.wxss */
.list_max{
padding: 0 30rpx;
margin: 30rpx 0 10rpx;
}
.list_min{
border-radius:10rpx;
background: #2b345b;
height: 80rpx;
}
.list_min_1{
height: 80rpx;
line-height: 80rpx;
font-size: 28rpx;
padding-left: 10rpx;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
word-break: break-all;
}
.list_min_2{
height: 80rpx;
text-align: center;
line-height: 80rpx;
}
.list_bottom{
width:30rpx;
height:30rpx;
}
.list_title{
color:#8ca4ee;
font-size: 24rpx;
padding: 20rpx 30rpx;
}
.list_title text{
font-size: 26rpx;
color: #1aeff5;
}
.list_warning.active{
background: url("http://fileimg.makalu.cc/CORE_ACFA3598B4C943EB836848A6977C4189.png") no-repeat left/30rpx;
padding-left: 35rpx;
}
.list_video.active{
background: url("http://fileimg.makalu.cc/CORE_48D684509A314D55BD3B61EFFB77EF07.png") no-repeat left/30rpx;
padding-left: 35rpx;
}
.list_dust.active{
background: url("http://fileimg.makalu.cc/CORE_085FA305D4314B8CA5954C569D127EB9.png") no-repeat left/30rpx;
padding-left: 35rpx;
}
.lw_input_view{
line-height: 100rpx;
text-overflow: ellipsis;
overflow: hidden;
word-break: break-all;
width: 100%;
}
.lw_input_view image{
float: right;
width: 30rpx;
height: 30rpx;
position: relative;
top: 35rpx;
}
.address{
margin: 0 30rpx;
color: #8ca4ee;
font-size: 28rpx;
padding: 20rpx 0 20rpx 50rpx;
background: url("http://fileimg.makalu.cc/CORE_1F1F3A2778334D3EAC1226DDCEBD48D0.png") no-repeat left/40rpx;
}
.map_list_info{
background: #232a44;
padding: 0 30rpx;
}
.van-center-enter-to.van-center-enter-active{
border-radius: 20rpx;
background: #232a44;
}
.map_list_info_title{
padding: 30rpx;
text-align: center;
}
.map_list_info .van-picker{
background: none;
}
.map_list_info view{
background: none;
}
.map_list_info .van-picker-column{
color: #157dd2;
}
.map_list_info .van-picker-column__item--selected{
color: #00e3fe;
}
.map_list_info .van-hairline--top-bottom:after{
border-width: 0px 0;
}
.splicing{
background: #232a44;
color: #1aeff5;
padding: 20rpx 30rpx;
}
/* -------------------------- */
.van-popup.van-popup--bottom{
background: #232a44;
}
.van-tabs__scroll{
background: none !important;
}
.van-hairline--top-bottom:after{
border: none !important;
}
.van-tab.van-tab--active{
color: #14feff !important;
}
.van-tab{
color: #157dd2 !important;
}
.van-tabs__line{
background-color:#14feff !important;
}
.van-calendar{
background-color: #232a44 !important;
}
.van-calendar__month-mark{
color:rgba(255,255,255,0.2) !important;
}
.van-popup{
background: none !important;
}
.van-calendar__day--disabled{
color:rgba(255,255,255,0.4) !important;
}
.van-calendar__header-subtitle{
display: none;
}
.van-button--block.van-button--round{
width: 100%;
}
.lw_btn_zc{
width: 70%;
margin: 50rpx auto 0;
text-align: center;
height: 70rpx;
line-height: 70rpx;
background: #687bfe;
border-radius: 30rpx;
}
.lw_btn_zc:active{
background: #7655fc;
}

View File

@ -1,38 +0,0 @@
// miniprogram/pages/suishoupai2/suishoupai.js
const app = getApp();
Page({
/**
* 页面的初始数据
*/
data: {
url:'',
projectId:'',
loginName:'',
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
/**
* 获取缓存数据
*/
wx.getStorage({
key: 'userinfo',
success: res => {
// this.setData({
// url:"http://127.0.0.1:8091/weixin/pshManage/goListPage?projectId="+ app.globalData.projectId +"&loginName="+ res.data.loginName +"&projectName=" + app.globalData.projectName
// })
this.setData({
url:"https://cf.makalu.cc/weixin/pshManage/goListPage?projectId="+ app.globalData.projectId +"&loginName="+ res.data.loginName +"&projectName=" + app.globalData.projectName
})
},
fail: res =>{
wx.redirectTo({
url: '../login/login'
})
}
})
},
})

View File

@ -1,3 +0,0 @@
{
"usingComponents": {}
}

View File

@ -1,3 +0,0 @@
<!--miniprogram/pages/suishoupai2/suishoupai.wxml-->
<web-view src="{{url}}"></web-view>

View File

@ -1 +0,0 @@
/* miniprogram/pages/suishoupai2/suishoupai.wxss */

View File

@ -1,38 +0,0 @@
// miniprogram/pages/suishoupai/suishoupai.js
const app = getApp();
Page({
/**
* 页面的初始数据
*/
data: {
url:'',
projectId:'',
loginName:'',
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
/**
* 获取缓存数据
*/
wx.getStorage({
key: 'userinfo',
success: res => {
// this.setData({
// url:"http://127.0.0.1:8091/weixin/sspManage/goListPage?projectId="+ app.globalData.projectId +"&loginName="+ res.data.loginName +"&projectName=" + app.globalData.projectName
// })
this.setData({
url:"https://cf.makalu.cc/weixin/sspManage/goListPage?projectId="+ app.globalData.projectId +"&loginName="+ res.data.loginName +"&projectName=" + app.globalData.projectName
})
},
fail: res =>{
wx.redirectTo({
url: '../login/login'
})
}
})
},
})

View File

@ -1,3 +0,0 @@
{
"usingComponents": {}
}

View File

@ -1,3 +0,0 @@
<!--miniprogram/pages/suishoupai/suishoupai.wxml-->
<web-view src="{{url}}"></web-view>

View File

@ -1 +0,0 @@
/* miniprogram/pages/suishoupai/suishoupai.wxss */

View File

@ -1,167 +0,0 @@
// pages/voucherManagement/index.js
const app = getApp()
Page({
/**
* 页面的初始数据
*/
data: {
DeviceGroupData: [],
DocumentList:[],
show: false,
loadShow:false,
loginName:'',
userName:'',
deptId:'',
projectName:'',
projectId:'',
monthCount:0,
weekCount:0,
initData:{}
},
//项目切换 返回值
onProjectSelect(e){
this.onClickShow();
let projectId = e.detail.id;
let projectName = e.detail.text;
app.globalData.projectId = projectId;
app.globalData.projectName = projectName;
this.setData({
projectId:projectId,
projectName:projectName
})
this.onLoad();
},
//筛选条件
screenCondition(e){
console.log(e.detail)
this.getDocumentList(e.detail.typeId,e.detail.startDate,e.detail.endTime)
},
showPopup() {
this.setData({ show: true });
},
onClose() {
this.setData({ show: false });
},
onClickShow() {
this.setData({ loadShow: true });
},
onClickHide() {
this.setData({ loadShow: false });
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
var that = this;
//加载蒙版
that.onClickShow();
//获取缓存数据
wx.getStorage({
key: 'userinfo',
success:function(res){
console.log(res.data);
that.setData({
loginName:res.data.loginName,
userName:res.data.userName,
deptId:res.data.deptId,
projectName: app.globalData.projectName,
projectId:app.globalData.projectId,
initData:{text:app.globalData.projectName,id:app.globalData.projectId}
})
that.getDocumentType();
that.getDocumentList('','','');
}
})
},
/**
* 凭证类型
*/
getDocumentType:function(){
wx.request({
url: app.globalData.reqUrl+'/weixin/security/getDocumentType',
method: 'get',
data: {
deptId:this.data.deptId,
projectId:this.data.projectId,
},
success: resData => {
this.onClickHide();
if(resData.data.code == 200){
let DeviceGroupData = resData.data.data;
let list = [];
for(let i = 0;i<DeviceGroupData.length;i++){
list.push({"id":DeviceGroupData[i].id,"text":DeviceGroupData[i].name});
}
this.setData({
DeviceGroupData:list
})
}
}
})
},
/**
* 凭证列表
*/
getDocumentList:function(type,beginTime,endTime){
wx.request({
url: app.globalData.reqUrl+'/weixin/security/getDocumentList',
method: 'get',
data: {
deptId:this.data.deptId,
projectId:this.data.projectId,
type:type,
beginTime:beginTime,
endTime:endTime
},
success: resData => {
this.onClickHide();
console.log(resData.data);
if(resData.data.code == 200){
this.setData({
DocumentList:resData.data.data,
weekCount:resData.data.weekCount,
monthCount:resData.data.monthCount
})
}else{
this.setData({
DocumentList:[],
weekCount:0,
monthCount:0
})
}
}
})
},
/**
* 返回到更多功能页面
*/
goGCLB:function(){
wx.redirectTo({
url: '../../pages/gengduogongneng/gengduogongneng'
})
},
/**
* 跳转到add页面
*/
add:function(){
wx.navigateTo({
url: '../voucherManagementAddto/index?projectName='+this.data.projectName+"&projectId="+this.data.projectId,
})
}
})

View File

@ -1,7 +0,0 @@
{
"usingComponents": {
"van-overlay": "@vant/weapp/overlay/index" ,
"van-popup": "@vant/weapp/popup/index"
},
"navigationBarTitleText": "凭证管理"
}

View File

@ -1,109 +0,0 @@
<!--pages/voucherManagement/index.wxml-->
<!-- <view class="header_title">
<view class="header_title_row">
<van-row>
<van-col span="3">
<view class="header_img" bindtap="showPopup"><image src="/images/core.png"></image></view>
</van-col>
<van-col span="4">
<view class="header_img" bindtap="goGCLB">
<image src="/images/left.png"></image>
<text class="header_fh">返回</text>
</view>
</van-col>
<van-col span="10">
<view class="header_name">凭证管理</view>
</van-col>
</van-row>
</view>
</view> -->
<!-- <van-popup show="{{ show }}" position="left" custom-style="width: 70%;height:100%;background:#191d28" bind:close="onClose" >
<view class="left_max">
<van-row class="demo clearfix">
<van-col span="10">
<view class="left_head"><image src="http://fileimg.makalu.cc/szgl/9015e824c5004e629049c4f72967cfdc.png"></image></view>
</van-col>
<van-col span="14">
<view class="left_info">
<view class="left_info_name">{{userName}}</view>
<view class="left_info_name">{{loginName}}</view>
</view>
</van-col>
</van-row>
</view>
</van-popup> -->
<view class="max_new_content">
<project-select init="{{initData}}" bindchange="onProjectSelect"></project-select>
<view class="video_num" style="margin-top:24rpx">
<van-row>
<van-col span="12">
<view class="video_icon">
<image src="http://fileimg.makalu.cc/WEB_85C3C298686948FCBB547946729B3F2D.png"></image>
本周上传:
<text>{{weekCount}}</text>
</view>
</van-col>
<van-col span="12">
<view class="video_icon">
<image src="http://fileimg.makalu.cc/WEB_85C3C298686948FCBB547946729B3F2D.png"></image>
本月上传:
<text>{{monthCount}}</text>
</view>
</van-col>
</van-row>
</view>
<view class="modify_echarts_max">
<view class="modify_echarts_title_min">
<view class="modify_eharts_title">凭证列表</view>
<pz-screen columns="{{DeviceGroupData}}" bindscreen="screenCondition"></pz-screen>
</view>
<view class="pz_list_max">
<view class="pz_list_for" wx:for="{{DocumentList}}" wx:key="index">
<view class="timeline_for_title">
<view>{{item.typeNameStr}}</view>
</view>
<view class="timeline_for_list pz_list_for_list">
<view>发生时间:</view>
<view class="timeline_for_time">{{item.createTime}}</view>
</view>
<view class="timeline_for_list pz_list_for_list">
<view>上传时间:</view>
<view class="timeline_for_time">{{item.time}}</view>
</view>
<view class="timeline_for_list pz_list_for_list">
<view>备注:</view>
<view class="timeline_for_time">{{item.remarks}}</view>
</view>
<view class="timeline_for_file pz_list_for_list">
<view class="timeline_for_list_title">凭证图片:</view>
<view class="timeline_for_list_file">
<van-uploader file-list="{{ item.sonRul}}" show-upload="{{fales}}" deletable="{{fales}}"/>
</view>
</view>
</view>
</view>
</view>
</view>
<view class="add_to_btn" bindtap="add">
<image src="http://fileimg.makalu.cc/WEB_A1ECB16C8BC34DECAED9C4701AAE813F.png"></image>
<text>新增</text>
</view>
<van-toast id="van-toast" />
<van-overlay show="{{loadShow}}">
<view class="gif">
<image src="../../images/loding2.gif"></image>
<view>数据加载中!请稍后...</view>
</view>
</van-overlay>

View File

@ -1,17 +0,0 @@
/* pages/voucherManagement/index.wxss */
.van-uploader__preview-image{
width: 140rpx !important;
height: 140rpx !important;
}
.van-picker__mask {
background-image: none !important;
}
.van-hairline--top-bottom:after {
border-top: 1px solid #3a4c8b !important;
border-bottom: 1px solid #3a4c8b !important;
}
.van-picker {
background: none !important;
}

View File

@ -1,202 +0,0 @@
// pages/voucherManagementAddto/index.js
const app = getApp()
Page({
/**
* 页面的初始数据
*/
data: {
projectNameList:[],
voucherTypeList:[],
loadShow:false,
loginName:'',
userName:'',
deptId:'',
projectName:'',
projectId:'',
fileList:[],
//参数
voucherType:'',
happenTime:'',
uploadTime:'',
remarks:'',
},
//选择项目名称
onSelectProjectName(e){
console.log(e.detail)
this.setData({
projectId:e.detail.id,
projectName:e.detail.text
})
},
//选择凭证类型
onSelectVoucherType(e){
console.log(e.detail)
this.setData({
voucherType:e.detail.id
})
},
//发生时间
onOccurrenceTime(e){
console.log(e.detail)
this.setData({
happenTime:e.detail
})
},
//上传时间
onUploadTime(e){
console.log(e.detail)
this.setData({
uploadTime:e.detail
})
},
//备注
remarks(e){
console.log(e.detail.value);
this.setData({
remarks:e.detail.value
})
},
onClickShow() {
this.setData({ loadShow: true });
},
onClickHide() {
this.setData({ loadShow: false });
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
console.log(options)
var that = this;
//加载蒙版
that.onClickShow();
//获取缓存数据
wx.getStorage({
key: 'userinfo',
success:function(res){
console.log(res.data);
that.setData({
loginName:res.data.loginName,
userName:res.data.userName,
deptId:res.data.deptId,
projectNameList:[{text:options.projectName,id:options.projectId}]
})
that.getDocumentType();
}
})
},
/**
* 凭证类型
*/
getDocumentType:function(){
wx.request({
url: app.globalData.reqUrl+'/weixin/security/getDocumentType',
method: 'get',
data: {
deptId:this.data.deptId,
projectId:this.data.projectId,
},
success: resData => {
this.onClickHide();
if(resData.data.code == 200){
let DeviceGroupData = resData.data.data;
let list = [];
for(let i = 0;i<DeviceGroupData.length;i++){
list.push({"id":DeviceGroupData[i].id,"text":DeviceGroupData[i].name});
}
this.setData({
voucherTypeList:list
})
}
}
})
},
onImagesArr(e){
// 当设置 mutiple 为 true 时, file 为数组格式,否则为对象格式
wx.uploadFile({
//图片上传地址
url: app.globalData.reqUrl+'/weixin/security/fileUpload',
filePath: e.detail[0],
name: 'file',
header: {
"Content-Type": "application/x-www-form-urlencoded;charset=UTF-8"
},
formData: { user: 'test' },
success:res => {
let data = JSON.parse(res.data);
// 上传完成需要更新 fileList
let fileList = this.data.fileList
fileList.push(data);
this.setData({ fileList:fileList});
},
});
},
add:function(){
//判断值是否为空
if(this.data.projectId == '' || this.data.projectId == undefined){
app.toast("请选择项目");
return;
}else if(this.data.voucherType == '' || this.data.voucherType == undefined){
app.toast("请选择凭证类型");
return;
}else if(this.data.happenTime == '' || this.data.happenTime == undefined){
app.toast("请选择发生时间");
return;
}else if(this.data.uploadTime == '' || this.data.uploadTime == undefined){
app.toast("请选择上传时间");
return;
}else if(this.data.fileList.length == 0){
app.toast("请上传文件");
return;
}
console.log(this.data.fileList);
wx.request({
header: {
'content-type': 'application/x-www-form-urlencoded'
},
url:app.globalData.reqUrl+'/weixin/security/addDocumentData',
data:{
deptId:this.data.deptId,
projectId:this.data.projectId,
projectName:this.data.projectName,
type:this.data.voucherType,
createTime:this.data.happenTime,
time:this.data.uploadTime,
createUser:this.data.loginName,
userName:this.data.userName,
remarks:this.data.remarks,
djCertificatesonList:JSON.stringify(this.data.fileList)
},
method:"POST",
success:function(res){
console.log(res.data);
if(res.data.code == 200){
wx.redirectTo({
url: '../voucherManagement/index',
})
}else{
app.toast("添加失败");
return;
}
}
})
},
/**
* 返回凭证管理
*/
goGCLB:function(){
wx.redirectTo({
url: '../voucherManagement/index'
})
},
})

View File

@ -1,6 +0,0 @@
{
"usingComponents": {
"van-overlay": "@vant/weapp/overlay/index"
},
"navigationBarTitleText": "新增凭证"
}

View File

@ -1,62 +0,0 @@
<!--pages/voucherManagementAddto/index.wxml-->
<!-- <view class="header_title">
<view class="header_title_row">
<van-row>
<van-col span="7">
<view class="header_img" bindtap="goGCLB">
<image src="/images/left.png"></image>
<text class="header_fh">返回</text>
</view>
</van-col>
<van-col span="10">
<view class="header_name">新增凭证</view>
</van-col>
</van-row>
</view>
</view> -->
<view class="max_new_content">
<view class="add_max">
<view class="add_title">项目名称</view>
<voucher-select columns="{{projectNameList}}" placeholder="请选择项目名称" bindchange="onSelectProjectName"></voucher-select>
</view>
<view class="add_max">
<view class="add_title">凭证类型</view>
<voucher-select columns="{{voucherTypeList}}" placeholder="请选择凭证类型" bindchange="onSelectVoucherType"></voucher-select>
</view>
<view class="add_max">
<view class="add_title">发生时间</view>
<voucher-date counts="5" placeholder="请选择发生时间" bindchange="onOccurrenceTime"></voucher-date>
</view>
<view class="add_max">
<view class="add_title">上传时间</view>
<voucher-date counts="5" placeholder="请选择上传时间" bindchange="onUploadTime"></voucher-date>
</view>
<view class="add_max">
<view class="add_title">备注</view>
<textarea class="add_textarea" placeholder="请填写备注" placeholder-style="color:#6777aa;" bindinput="remarks" />
</view>
<view class="add_max">
<view class="add_title">上传凭证</view>
<file-uploader bindimages="onImagesArr"></file-uploader>
</view>
<view class="add_btn">
<view class="add_btn_qx" bindtap="goGCLB">取消</view>
<view class="add_btn_bc" bindtap="add">保存</view>
</view>
</view>
<van-overlay show="{{loadShow}}">
<view class="gif">
<image src="../../images/loding2.gif"></image>
<view>数据加载中!请稍后...</view>
</view>
</van-overlay>

View File

@ -1,14 +0,0 @@
/* pages/voucherManagementAddto/index.wxss */
.van-picker__mask {
background-image: none !important;
}
.van-hairline--top-bottom:after {
border-top: 1px solid #3a4c8b !important;
border-bottom: 1px solid #3a4c8b !important;
}
.van-picker {
background: none !important;
}

View File

@ -1,70 +0,0 @@
// pages/Concrete-usage/index.js
Page({
/**
* 页面的初始数据
*/
data: {
placeholderTitle:'商品混凝土/C40',
progressList:[{text:'商品混凝土/C40',id:132}],
progressLists:[{text:'本月',id:0},{text:'本周',id:1},{text:'本日',id:2}],
placeholderTitles:'本月',
concreteList:[{name:'商品混凝土/C40',num:'2177.0',xieliao:' *****方式',guke:' ***类行、***类型、***类型',waijiaji:'***类行、***类型、***类型',concretes:'******'},{name:'商品混凝土/C40',num:'2177.0',xieliao:' *****方式',guke:' ***类行、***类型、***类型',waijiaji:'***类行、***类型、***类型',concretes:'******'},{name:'商品混凝土/C40',num:'2177.0',xieliao:' *****方式',guke:' ***类行、***类型、***类型',waijiaji:'***类行、***类型、***类型',concretes:'******'},{name:'商品混凝土/C40',num:'2177.0',xieliao:' *****方式',guke:' ***类行、***类型、***类型',waijiaji:'***类行、***类型、***类型',concretes:'******'},]
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {
},
/**
* 生命周期函数--监听页面显示
*/
onShow() {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage() {
}
})

View File

@ -1,4 +0,0 @@
{
"usingComponents": {},
"navigationBarTitleText": "混凝土使用情况"
}

View File

@ -1,58 +0,0 @@
<!--pages/Concrete-usage/index.wxml-->
<!-- 混凝土使用情况 -->
<view class="concrete">
<!-- 头部 -->
<view class="concrete-header">
<view style="width: 60%;height: 90rpx;border-radius: 20rpx;">
<voucher-select columns="{{progressList}}" placeholder="{{placeholderTitle}}" background="#2b345b" ></voucher-select>
</view>
<view style="width: 30%;height: 90rpx;">
<voucher-select columns="{{progressLists}}" placeholder="{{placeholderTitles}}" background="#2b345b"></voucher-select>
</view>
</view>
<!-- 混凝土使用列表 -->
<view class="concrete-content">
<!-- 混凝土使用标题 -->
<view class="eharts_title" style="margin-bottom: 50rpx;">
混凝土使用列表 (4)
</view>
<!-- 混凝土使用列表 -->
<view class="concrete-content-box" wx:for="{{concreteList}}">
<view class="concrete-content-box-top">
<view style="width: 10%;border-bottom: 1px solid #4854a9;height: 60rpx;line-height: 60rpx;text-align: center;color:#4854a9 ;">
0{{index+1}}
</view>
<view style="width: 90%;border-bottom: 1px solid #293264;height: 60rpx;line-height: 60rpx;">
{{item.name}}
</view>
</view>
<view class="concrete-content-box-bottom">
<view style="display: flex;">
累计数量: <view style="color: #a55c15;padding-left: 20rpx;">
{{item.num}}
</view>
</view>
<view style="display: flex;">
卸料方式: <view style="color: #3a8cce;padding-left: 20rpx;">
{{item.xieliao}}
</view>
</view>
<view style="display: flex;">
骨科添加类型: <view style="color: #7488c6;padding-left: 20rpx;">
{{item.guke}}
</view>
</view>
<view style="display: flex;">
外加剂添加类型: <view style="color: #7488c6;padding-left: 20rpx;">
{{item.waijiaji}}
</view>
</view>
<view style="display: flex;">
混凝土方量(小票): <view style="color: #7488c6;padding-left: 20rpx;">
{{item.concretes}}
</view>
</view>
</view>
</view>
</view>
</view>

View File

@ -1,48 +0,0 @@
/* pages/Concrete-usage/index.wxss */
/* 混凝土使用 */
.concrete{
padding: 60rpx 40rpx 30rpx;
}
/* 头部 */
.concrete-header{
display: flex;
justify-content: space-between;
align-items: center;
width: 100%;
height: 112rpx;
}
/* 混凝土使用标题 */
.concrete-content{
padding: 60rpx 0 40rpx;
}
.eharts_title{
height: 40rpx;
line-height: 40rpx;
padding-left: 50rpx;
margin-left: 20rpx;
background: url("http://fileimg.makalu.cc/CORE_52887EE6A33042408E11C2174974ABA1.png") no-repeat left/35rpx;
}
/* 混凝土使用列表 */
.concrete-content-box{
padding: 20rpx;
height: 420rpx;
border: 1px solid #1e2336;
border-radius: 20rpx;
font-size: 26rpx;
background-color: #1e2336;
margin-bottom: 40rpx;
}
.concrete-content-box-top{
display: flex;
justify-content: space-between;
align-items: center;
height: 60rpx;
}
.concrete-content-box-bottom{
display: flex;
flex-direction: column;
justify-content: space-around;
height: calc(100% - 30px);
padding-left: 24rpx;
color: #8795b2;
}

View File

@ -1,447 +0,0 @@
// pages/Quality-Assurance/index.js
const app = getApp()
Page({
/**
* 页面的初始数据
*/
data: {
initData: {},
projectData:{},
projectId: '',
projectName: '',
gj1:0,
gj1per:0,
gj1_Y:0,
gj1_N:0,
gj2:0,
gj2per:0,
gj2_Y:0,
gj2_N:0,
gj3:0,
gj3per:0,
gj3_Y:0,
gj3_N:0,
gj4:0,
gj4per:0,
gj4_Y:0,
gj4_N:0,
gj5:0,
gj5per:0,
gj5_Y:0,
gj5_N:0,
jp1:0,
jp1_Y:0,
jp1_N:0,
jp1per:0,
bys1:0,
bys2:0,
tempOut:0,
tempIn:0,
strong:0,
cooked:0,
biaoyangshiList:[{text:'010840009F',id:0}],
hntList:[],
hntDevceNO:''
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
//获取缓存数据
wx.getStorage({
key: 'userinfo',
success:res=>{
this.setData({
loginName:res.data.loginName,
userName:res.data.userName,
projectId:app.globalData.projectId,
projectNameArgs:app.globalData.projectName,
initData:{text:app.globalData.projectName,id:app.globalData.projectId}
})
this.getProjectCorrespondence(app.globalData.projectId)
}
})
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {
},
/**
* 生命周期函数--监听页面显示
*/
onShow() {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage() {
},
//项目切换 返回值
onProjectSelect(e) {
let projectId = e.detail.id;
let projectName = e.detail.text;
app.globalData.projectId = projectId;
app.globalData.projectName = projectName;
this.setData({
projectId: projectId,
projectName: projectName,
})
this.onLoad()
},
/**
* 项目对应关系
*/
getProjectCorrespondence(projectId) {
var that = this;
wx.request({
url: app.globalData.reqUrl + '/weixin/training/getProjectCorrespondence',
data: {
"projectId": projectId,
},
method: "get",
success: function (res) {
that.setData({
projectData: res.data
})
//获取取样复试数据
that.getqyfsData();
//获取举牌验收数据信息
that.getjpysData();
//标养室数据
that.getbysData();
//混凝设备列表获取
that.gethntDevice();
//混凝土数据获取
that.gethntData();
}
})
},
/**
* 获取取样复试数据
*/
getqyfsData(){
let that = this;
let {szh} = that.data.projectData;
wx.request({
url: app.globalData.szhUrl+'/api/building/retestList?project_id='+szh+'&dept_id=131',
method:"POST",
data:{},
success(res){
let data = res.data.data
let gj1=0,gj1_Y=0,gj1_N=0,gj2=0,gj2_Y=0,gj2_N=0,gj3=0,gj3_Y=0,gj3_N=0,gj4=0,gj4_Y=0,gj4_N=0,gj5=0,gj5_Y=0,gj5_N=0;
for(let d of data){
switch (d.type_flag) {
case 1:
//钢筋原材料取样复试
gj1++
if(d.result_str.indexOf('不合格') == -1 && (d.result_str.indexOf('合格') != -1)){
gj1_Y++
}
if(d.result_str.indexOf('不合格') == -1 && (d.result_str.indexOf('合格') == -1)){
gj1_N++
}
break
case 2:
//钢筋试拉件取样复 -- 机械连接
gj2++
if(d.result_str.indexOf('不合格') == -1 && (d.result_str.indexOf('合格') != -1)){
gj2_Y++
}
if(d.result_str.indexOf('不合格') == -1 && (d.result_str.indexOf('合格') == -1)){
gj2_N++
}
break
case 3:
//钢筋试拉件取样复 -- 钢筋焊接
gj3++
if(d.result_str.indexOf('不合格') == -1 && (d.result_str.indexOf('合格') != -1)){
gj3_Y++
}
if(d.result_str.indexOf('不合格') == -1 && (d.result_str.indexOf('合格') == -1)){
gj3_N++
}
break
case 4:
// 混凝土试件取样复试 -- 楼层标养
gj4++
if(d.result_str.indexOf('已送样') != -1){
}
if(d.result_str){
if(d.result_str.indexOf('不合格') == -1 && (d.result_str.indexOf('合格') != -1)){
gj4_Y++
}
if(d.result_str.indexOf('标养中') != -1){
gj4_N++
}
}
break;
case 5:
// 混凝土试件取样复试 -- 楼桩标养
gj5++
if(d.result_str.indexOf('已送样') != -1){
}
if(d.result_str.indexOf('不合格') == -1 && (d.result_str.indexOf('合格') != -1)){
gj5_Y++
}
if(d.result_str.indexOf('标养中') != -1){
gj5_N++
}
break;
}
}
that.setData({
gj1:gj1,
gj1per:(gj1_Y/gj1*100).toFixed(0),
gj1_Y:gj1_Y,
gj1_N:gj1_N,
gj2:gj2,
gj2per:(gj2_Y/gj2*100).toFixed(0),
gj2_Y:gj2_Y,
gj2_N:gj2_N,
gj3:gj3,
gj3per:(gj3_Y/gj3*100).toFixed(0),
gj3_Y:gj3_Y,
gj3_N:gj3_N,
gj4:gj4,
gj4per:(gj4_Y/gj4*100).toFixed(0),
gj4_Y:gj4_Y,
gj4_N:gj4_N,
gj5:gj5,
gj5per:(gj5_Y/gj5*100).toFixed(0),
gj5_Y:gj5_Y,
gj5_N:gj5_N,
})
}
})
},
/**
*
* 获取举牌验收的数据
*/
getjpysData(){
let that = this;
wx.request({
url: app.globalData.szhUrl+'/mkl/api/getScreenCheckAccept',
method:"POST",
data:{
projectId:that.data.projectData.szh
},
success(res){
let data = res.data
let jp1 = 0;
let jp1_Y = 0;
let jp1_N = 0;
let jp1per = 0;
for(let d of data){
jp1++;
if(d.check_result == 0){
jp1_Y++;
} else {
jp1_N++;
}
}
that.setData({
jp1: jp1,
jp1per:(jp1==0?0:(jp1_Y/jp1*100)).toFixed(0),
jp1_Y:jp1_Y,
jp1_N:jp1_N,
})
}
})
},
/**
*
* 标养室检测
*
*/
getbysData(){
let that = this;
let {szh} = that.data.projectData;
wx.request({
url: app.globalData.szhUrl+'/api/getProcessControlCount',
method:"POST",
data:{
dept_id:'131',
project_id:szh,
},
success(res){
let data = res.data.data.markingRoomCount
that.setData({
bys1:data.left_data,
bys2:data.right_data,
})
}
})
},
/**
* 混凝土设备列表
*/
gethntDevice(){
let that = this;
wx.request({
url: app.globalData.szhUrl+'/api/iot/power/gainHntDeviceList',
method:"POST",
header:{
'content-type': 'application/x-www-form-urlencoded'
},
data:{
projectId:'1649949529732075522',
},
success(res){
var tempArray =[];
for( let d of res.data.data){
tempArray.push({text:d.deviceId,id:d.deviceId})
}
that.setData({
hntList:tempArray,
hntDevceNO:tempArray[0].text
})
that.gethntData();
}
})
},
/**
* 混凝土强度数据
*/
gethntData(){
let that = this;
wx.request({
url: app.globalData.szhUrl+'/api/iot/power/gainHntLatestList',
method:"POST",
header:{
'content-type': 'application/x-www-form-urlencoded'
},
data:{
projectId:'1649949529732075522',
deviceNo: that.data.hntDevceNO
},
success(res){
let data = res.data.data
if(data != undefined){
that.setData({
tempOut:data.tempOut,
tempIn:data.tempIn,
strong:data.strong,
cooked:data.cooked
})
}
}
})
},
changeHntDevice(e){
this.setData({
hntDevceNO:e.detail.text
})
this.gethntData();
},
tobysDetail(){
wx.navigateTo({
url: '../Standard-maintenance-room-monitoring/index',
})
},
tohntDetial(){
wx.navigateTo({
url: '../hnt-strong/index',
})
},
/**
* 返回到更多功能页面
*/
goGCLB:function(){
wx.redirectTo({
url: '../../pages/gengduogongneng/gengduogongneng'
})
},
showPopup() {
this.setData({ show: true });
},
onClose() {
this.setData({ show: false });
},
})

View File

@ -1,4 +0,0 @@
{
"usingComponents": {},
"navigationBarTitleText": "质量管理"
}

View File

@ -1,596 +0,0 @@
<!--pages/Quality-Assurance/index.wxml-->
<!-- 质量管理 -->
<!-- <view class="header_title">
<view class="header_title_row">
<van-row>
<van-col span="3">
<view class="header_img" bindtap="showPopup"><image src="/images/core.png"></image></view>
</van-col>
<van-col span="4">
<view class="header_img" bindtap="goGCLB">
<image src="/images/left.png"></image>
<text class="header_fh">返回</text>
</view>
</van-col>
<van-col span="10">
<view class="header_name">质量管理</view>
</van-col>
</van-row>
</view>
</view> -->
<view class="quality" style="padding-top: 0;">
<!-- 头部部分 -->
<view class="quality-header">
<!-- <voucher-selected columns="{{qualityList}}" placeholder="曲江御井路公租房项目EPC总承包工程" background="#30343f"></voucher-selected> -->
<project-select init="{{initData}}" width='640rpx' left='-30rpx' bindchange="onProjectSelect"></project-select>
</view>
<!-- 取样复试部分 -->
<view class="quality-content" style="margin-top: 64rpx;">
<!-- 头部 -->
<view class="header-cailiao">
<!-- 头部左边 -->
<view class="eharts_title">
取样复试
</view>
</view>
<!-- 质量管理内容 -->
<view class="gangjin" style="padding-bottom: 62rpx;">
<view class="gangjin-header">
<!-- 上面部分 -->
<view class="project-title" style="margin-left: -30rpx;">
<view style="border-bottom: 1px solid #0f498c;height: 36rpx;font-size: 26rpx;">
钢筋原材料
</view>
</view>
<!-- 下面部分 -->
<view class="wanjieNum-over-bottom" style="padding-top: 52rpx;">
<!-- 每一行两个小盒子 -->
<view class="wanjieNum-over-bottom-top">
<!-- 每一个小盒子 -->
<view class="wanjieNum-over-bottom-top-box" >
<view class="wanjieNum-over-bottom-top-box-Img">
<view class="wanjieNum-over-bottom-top-box-Img-small">
<image src="http://fileimg.makalu.cc/WEB_2ADF92E981FD41599F59AC9E97CF3118.png" mode="" style="width: 100%;height: 100%;"/>
</view>
</view>
<view class="wanjieNum-over-bottom-top-box-title" style="height:130rpx">
<view class="wanjieNum-over-bottom-top-box-title-text" >
取样复试次数
</view>
<view class="wanjieNum-over-bottom-top-box-title-text" style="display: flex;">
<view style="font-size: 30rpx;color: #7ab6e6;padding-right: 20rpx;">
{{gj1}}
</view> 次
</view>
</view>
</view>
<view class="wanjieNum-over-bottom-top-box" style="padding-left: 20rpx;">
<view class="wanjieNum-over-bottom-top-box-Imgs">
<view class="wanjieNum-over-bottom-top-box-Img-small">
<image src="http://fileimg.makalu.cc/WEB_ECD156CF3D1144AC8D52EC6F8875AAF0.png" mode="" style="width: 100%;height: 100%;"/>
</view>
</view>
<view class="wanjieNum-over-bottom-top-box-title" style="height:130rpx">
<view class="wanjieNum-over-bottom-top-box-title-text">
合格率
</view>
<view class="wanjieNum-over-bottom-top-box-title-text" style="display: flex;">
<view style="font-size: 30rpx;color: #5de8b0;padding-right: 20rpx">
{{gj1per}}
</view> %
</view>
</view>
</view>
</view>
</view>
</view>
</view>
<!-- 钢筋试拉近 -->
<view class="gangjinlajin">
<view class="gangjinlajin-header">
<!-- 上面部分 -->
<view class="project-title" style="margin-left: -30rpx;">
<view style="border-bottom: 1px solid #0f498c;height: 36rpx;">
钢筋试拉件
</view>
</view>
<!-- 下面部分 -->
<view class="wanjieNum-over-bottom" style="padding-top: 52rpx;">
<!-- 每一行两个小盒子 -->
<view style="padding-bottom: 40rpx;color: #b0c3e5;">
机械连接
</view>
<!-- 机械连接 -->
<view class="wanjieNum-over-bottom-top" style="margin-bottom: 60rpx;">
<!-- 每一个小盒子 -->
<view class="wanjieNum-over-bottom-top-box">
<view class="wanjieNum-over-bottom-top-box-Img">
<view class="wanjieNum-over-bottom-top-box-Img-small">
<image src="http://fileimg.makalu.cc/WEB_2ADF92E981FD41599F59AC9E97CF3118.png" mode="" style="width: 100%;height: 100%;"/>
</view>
</view>
<view class="wanjieNum-over-bottom-top-box-title" style="height:130rpx">
<view class="wanjieNum-over-bottom-top-box-title-text">
取样复试次数
</view>
<view class="wanjieNum-over-bottom-top-box-title-text" style="display: flex;">
<view style="font-size: 30rpx;color: #7ab6e6;padding-right: 20rpx;">
{{gj2}}
</view>次
</view>
</view>
</view>
<view class="wanjieNum-over-bottom-top-box" style="padding-left: 20rpx;">
<view class="wanjieNum-over-bottom-top-box-Imgs">
<view class="wanjieNum-over-bottom-top-box-Img-small">
<image src="http://fileimg.makalu.cc/WEB_ECD156CF3D1144AC8D52EC6F8875AAF0.png" mode="" style="width: 100%;height: 100%;"/>
</view>
</view>
<view class="wanjieNum-over-bottom-top-box-title" style="height:130rpx">
<view class="wanjieNum-over-bottom-top-box-title-text">
合格率
</view>
<view class="wanjieNum-over-bottom-top-box-title-text" style="display: flex;">
<view style="font-size: 30rpx;color: #4db892;padding-right: 20rpx;">
{{gj2per}}
</view> %
</view>
</view>
</view>
</view>
<view style="padding-bottom: 40rpx;color: #b0c3e5;">
钢筋焊接
</view>
<!-- 钢筋焊接 -->
<view class="wanjieNum-over-bottom-top">
<!-- 每一个小盒子 -->
<view class="wanjieNum-over-bottom-top-box">
<view class="wanjieNum-over-bottom-top-box-Img">
<view class="wanjieNum-over-bottom-top-box-Img-small">
<image src="http://fileimg.makalu.cc/WEB_2ADF92E981FD41599F59AC9E97CF3118.png" mode="" style="width: 100%;height: 100%;"/>
</view>
</view>
<view class="wanjieNum-over-bottom-top-box-title" style="height:130rpx">
<view class="wanjieNum-over-bottom-top-box-title-text">
取样复试次数
</view>
<view class="wanjieNum-over-bottom-top-box-title-text" style="display: flex;">
<view style="font-size: 30rpx;color: #7ab6e6;padding-right: 20rpx;">
{{gj3}}
</view>次
</view>
</view>
</view>
<view class="wanjieNum-over-bottom-top-box" style="padding-left: 20rpx;">
<view class="wanjieNum-over-bottom-top-box-Imgs">
<view class="wanjieNum-over-bottom-top-box-Img-small">
<image src="http://fileimg.makalu.cc/WEB_ECD156CF3D1144AC8D52EC6F8875AAF0.png" mode="" style="width: 100%;height: 100%;"/>
</view>
</view>
<view class="wanjieNum-over-bottom-top-box-title" style="height:130rpx">
<view class="wanjieNum-over-bottom-top-box-title-text">
合格率
</view>
<view class="wanjieNum-over-bottom-top-box-title-text" style="display: flex;">
<view style="font-size: 30rpx;color: #4db892;padding-right: 20rpx;">
{{gj3per}}
</view> %
</view>
</view>
</view>
</view>
</view>
</view>
</view>
<!-- 混凝土试件 -->
<view class="gangjinlajin">
<view class="gangjinlajin-header">
<!-- 上面部分 -->
<view class="project-title" style="margin-left: -30rpx;">
<view style="border-bottom: 1px solid #0f498c;height: 36rpx;">
混凝土试件
</view>
</view>
<!-- 下面部分 -->
<view class="wanjieNum-over-bottom" style="padding-top: 52rpx;padding-bottom: 52rpx;">
<!-- 每一行两个小盒子 -->
<view style="padding-bottom: 40rpx;color: #b0c3e5;">
楼层标养
</view>
<!-- 机械连接 -->
<view class="wanjieNum-over-bottom-top" style="margin-bottom: 60rpx;">
<!-- 每一个小盒子 -->
<view class="wanjieNum-over-bottom-top-box">
<view class="wanjieNum-over-bottom-top-box-Img">
<view class="wanjieNum-over-bottom-top-box-Img-small">
<image src="http://fileimg.makalu.cc/WEB_2ADF92E981FD41599F59AC9E97CF3118.png" mode="" style="width: 100%;height: 100%;"/>
</view>
</view>
<view class="wanjieNum-over-bottom-top-box-title" style="height:130rpx">
<view class="wanjieNum-over-bottom-top-box-title-text">
取样复试次数
</view>
<view class="wanjieNum-over-bottom-top-box-title-text" style="display: flex;">
<view style="font-size: 30rpx;color: #7ab6e6;padding-right: 20rpx;">
{{gj4}}
</view>次
</view>
</view>
</view>
<view class="wanjieNum-over-bottom-top-box" style="padding-left: 20rpx;">
<view class="wanjieNum-over-bottom-top-box-Imgs">
<view class="wanjieNum-over-bottom-top-box-Img-small">
<image src="http://fileimg.makalu.cc/WEB_ECD156CF3D1144AC8D52EC6F8875AAF0.png" mode="" style="width: 100%;height: 100%;"/>
</view>
</view>
<view class="wanjieNum-over-bottom-top-box-title" style="height:130rpx">
<view class="wanjieNum-over-bottom-top-box-title-text">
合格率
</view>
<view class="wanjieNum-over-bottom-top-box-title-text" style="display: flex;">
<view style="font-size: 30rpx;color: #4db892;padding-right: 20rpx;">
{{gj4per}}
</view> %
</view>
</view>
</view>
</view>
<view style="padding-bottom: 40rpx;color: #b0c3e5;">
楼桩标养
</view>
<!-- 钢筋焊接 -->
<view class="wanjieNum-over-bottom-top">
<!-- 每一个小盒子 -->
<view class="wanjieNum-over-bottom-top-box">
<view class="wanjieNum-over-bottom-top-box-Img">
<view class="wanjieNum-over-bottom-top-box-Img-small">
<image src="http://fileimg.makalu.cc/WEB_2ADF92E981FD41599F59AC9E97CF3118.png" mode="" style="width: 100%;height: 100%;"/>
</view>
</view>
<view class="wanjieNum-over-bottom-top-box-title" style="height:130rpx">
<view class="wanjieNum-over-bottom-top-box-title-text">
取样复试次数
</view>
<view class="wanjieNum-over-bottom-top-box-title-text" style="display: flex;">
<view style="font-size: 30rpx;color: #7ab6e6;padding-right: 20rpx;">
{{gj5}}
</view>次
</view>
</view>
</view>
<view class="wanjieNum-over-bottom-top-box" style="padding-left: 20rpx;">
<view class="wanjieNum-over-bottom-top-box-Imgs">
<view class="wanjieNum-over-bottom-top-box-Img-small">
<image src="http://fileimg.makalu.cc/WEB_ECD156CF3D1144AC8D52EC6F8875AAF0.png" mode="" style="width: 100%;height: 100%;"/>
</view>
</view>
<view class="wanjieNum-over-bottom-top-box-title" style="height:130rpx">
<view class="wanjieNum-over-bottom-top-box-title-text">
合格率
</view>
<view class="wanjieNum-over-bottom-top-box-title-text" style="display: flex;">
<view style="font-size: 30rpx;color: #4db892;padding-right: 20rpx;">
{{gj5per}}
</view> %
</view>
</view>
</view>
</view>
</view>
</view>
</view>
</view>
<!-- 举牌验收 -->
<view class="quality-content">
<!-- 头部 -->
<view class="header-cailiao">
<!-- 头部左边 -->
<view class="eharts_title">
举牌验收
</view>
</view>
<!-- 质量管理内容 -->
<view class="gangjin">
<view class="gangjin-header">
<!-- 上面部分 -->
<!-- <view class="project-title">
<view style="border-bottom: 1px solid #0f498c;height: 36rpx;">
钢筋原材料
</view>
</view> -->
<!-- 下面部分 -->
<view class="wanjieNum-over-bottom" style="padding-top:60rpx;padding-bottom: 40rpx;">
<!-- 每一行两个小盒子 -->
<view class="wanjieNum-over-bottom-top">
<!-- 每一个小盒子 -->
<view class="wanjieNum-over-bottom-top-box" >
<view class="wanjieNum-over-bottom-top-box-ImgPC">
<!-- <view class="wanjieNum-over-bottom-top-box-Img-small">
<image src="http://fileimg.makalu.cc/WEB_2ADF92E981FD41599F59AC9E97CF3118.png" mode="" style="width: 100%;height: 100%;"/>
</view> -->
</view>
<view class="wanjieNum-over-bottom-top-box-title" style="height:130rpx">
<view class="wanjieNum-over-bottom-top-box-title-text">
取样复试次数
</view>
<view class="wanjieNum-over-bottom-top-box-title-text" style="display: flex;">
<view style="font-size: 30rpx;color: #7ab6e6;padding-right: 20rpx;">
{{jp1}}
</view> 次
</view>
</view>
</view>
<view class="wanjieNum-over-bottom-top-box" style="padding-left: 20rpx;">
<view class="wanjieNum-over-bottom-top-box-ImgPS">
<!-- <view class="wanjieNum-over-bottom-top-box-Img-small">
<image src="http://fileimg.makalu.cc/WEB_ECD156CF3D1144AC8D52EC6F8875AAF0.png" mode="" style="width: 100%;height: 100%;"/>
</view> -->
</view>
<view class="wanjieNum-over-bottom-top-box-title" style="height:130rpx">
<view class="wanjieNum-over-bottom-top-box-title-text">
合格率
</view>
<view class="wanjieNum-over-bottom-top-box-title-text" style="display: flex;">
<view style="font-size: 30rpx;color: #5de8b0;padding-right: 20rpx">
{{jp1per}}
</view> %
</view>
</view>
</view>
</view>
</view>
</view>
</view>
</view>
<!-- 标养室监测 -->
<view class="quality-content">
<!-- 头部 -->
<view class="header-cailiao" style="display: flex;justify-content: space-between;">
<!-- 头部左边 -->
<view class="eharts_title">
标养室监测
</view>
<view style="display: flex;align-items: center;margin-right: 16rpx;font-size: 26rpx;color: #7085c2;" bindtap="tobysDetail">
查看详情 <view style="width: 30rpx;height: 30rpx;">
<image src="http://fileimg.makalu.cc/WEB_8F0C5A9F72B4450AAF3362E8FC2CC3D8.png" mode="" style="width:100%;height:100%;transform: scale(0.8);"/>
</view>
</view>
</view>
<!-- 质量管理内容 -->
<view class="gangjin" style="padding-top: 46rpx;">
<!-- 上面部分 -->
<view class="gangjin-header" style="width: 100%; height: 80rpx;margin-top: 30rpx;display: flex;justify-content: space-between;align-items: center;">
<view style="color: #a4b6d6;">
设备名称:
</view>
<view style="width:60%;height:60rpx;border: 1px solid #2d6188;align-items: center;">
<voucher-selects height="60rpx" columns="{{biaoyangshiList}}" placeholder="010840009F"></voucher-selects>
</view>
<view style="width: 100rpx;height: 60rpx;border: 1px solid green;text-align: center;line-height: 60rpx;background-color: #114835;color: #3d9f20;">
在线
</view>
</view>
<!-- 下面部分 -->
<view class="wanjieNum-over-bottom">
<!-- 每一行两个小盒子 -->
<!-- <view style="padding-bottom: 40rpx;color: #b0c3e5;">
机械连接
</view> -->
<!-- 机械连接 -->
<view class="wanjieNum-over-bottom-top" style="margin-bottom: 60rpx;">
<!-- 每一个小盒子 -->
<view class="wanjieNum-over-bottom-top-box">
<view class="wanjieNum-over-bottom-top-box-ImgBY">
<view class="wanjieNum-over-bottom-top-box-Img-smallBY">
<image src="http://fileimg.makalu.cc/WEB_E08D2F26452A4FEEB4EA358CF0B04E14.png" mode="" style="width: 100%;height: 100%;"/>
</view>
</view>
<view class="wanjieNum-over-bottom-top-box-title">
<view class="wanjieNum-over-bottom-top-box-title-text">
当前温度
</view>
<view class="wanjieNum-over-bottom-top-box-title-text" style="display: flex;">
<view style="font-size: 36rpx;color: #0382e7;">
{{bys1}}
</view>℃
</view>
</view>
</view>
<view class="wanjieNum-over-bottom-top-box" style="padding-left: 20rpx;">
<view class="wanjieNum-over-bottom-top-box-ImgBY">
<view class="wanjieNum-over-bottom-top-box-Img-smallBY">
<image src="http://fileimg.makalu.cc/WEB_E857E2A98BCF4B079411265A758BAE8F.png" mode="" style="width: 100%;height: 100%;"/>
</view>
</view>
<view class="wanjieNum-over-bottom-top-box-title">
<view class="wanjieNum-over-bottom-top-box-title-text">
标准温度
</view>
<view class="wanjieNum-over-bottom-top-box-title-text" style="display: flex;">
<view style="font-size: 36rpx;color: #0382e7;">
18-22
</view> %
</view>
</view>
</view>
</view>
<!-- <view style="padding-bottom: 40rpx;color: #b0c3e5;">
钢筋焊接
</view> -->
<!-- 钢筋焊接 -->
<view class="wanjieNum-over-bottom-top">
<!-- 每一个小盒子 -->
<view class="wanjieNum-over-bottom-top-box">
<view class="wanjieNum-over-bottom-top-box-ImgBY">
<view class="wanjieNum-over-bottom-top-box-Img-smallBY">
<image src="http://fileimg.makalu.cc/WEB_4F696F1DBE8F4A8BAA08D4D7B4F227AD.png" mode="" style="width: 100%;height: 100%;"/>
</view>
</view>
<view class="wanjieNum-over-bottom-top-box-title">
<view class="wanjieNum-over-bottom-top-box-title-text">
当前温度
</view>
<view class="wanjieNum-over-bottom-top-box-title-text" style="display: flex;">
<view style="font-size: 36rpx;color: #0382e7;">
{{bys2}}
</view>A
</view>
</view>
</view>
<view class="wanjieNum-over-bottom-top-box" style="padding-left: 20rpx;">
<view class="wanjieNum-over-bottom-top-box-ImgBY">
<view class="wanjieNum-over-bottom-top-box-Img-smallBY">
<image src="http://fileimg.makalu.cc/WEB_4F696F1DBE8F4A8BAA08D4D7B4F227AD.png" mode="" style="width: 100%;height: 100%;"/>
</view>
</view>
<view class="wanjieNum-over-bottom-top-box-title">
<view class="wanjieNum-over-bottom-top-box-title-text">
标准温度
</view>
<view class="wanjieNum-over-bottom-top-box-title-text" style="display: flex;">
<view style="font-size: 36rpx;color: #0382e7;">
95
</view> %RH以上
</view>
</view>
</view>
</view>
</view>
</view>
</view>
<!-- 混凝土强度监测 -->
<view class="quality-content">
<!-- 头部 -->
<view class="header-cailiao" style="display: flex;justify-content: space-between;">
<!-- 头部左边 -->
<view class="eharts_title">
混凝土强度监测
</view>
<view style="display: flex;align-items: center;margin-right: 16rpx;font-size: 26rpx;color: #7085c2;" bindtap="tohntDetial">
查看详情 <view style="width: 30rpx;height: 30rpx;">
<image src="http://fileimg.makalu.cc/WEB_8F0C5A9F72B4450AAF3362E8FC2CC3D8.png" mode="" style="width:100%;height:100%;transform: scale(0.8);"/>
</view>
</view>
</view>
<!-- 质量管理内容 -->
<view class="gangjin" style="padding-top: 46rpx;">
<!-- 上面部分 -->
<view class="gangjin-header" style="width: 100%; height: 80rpx;margin-top: 30rpx;display: flex;justify-content: space-between;align-items: center;">
<view style="color: #a4b6d6;">
设备名称:
</view>
<view style="width:60%;height:60rpx;border: 1px solid #2d6188;align-items: center;">
<voucher-selects height="60rpx" columns="{{hntList}}" bindchange="changeHntDevice" placeholder="{{hntDevceNO}}"></voucher-selects>
</view>
<view style="width: 100rpx;height: 60rpx;border: 1px solid green;text-align: center;line-height: 60rpx;background-color: #114835;color: #3d9f20;">
在线
</view>
</view>
<!-- 下面部分 -->
<view class="wanjieNum-over-bottom">
<!-- 每一行两个小盒子 -->
<!-- <view style="padding-bottom: 40rpx;color: #b0c3e5;">
机械连接
</view> -->
<!-- 机械连接 -->
<view class="wanjieNum-over-bottom-top" style="margin-bottom: 60rpx;">
<!-- 每一个小盒子 -->
<view class="wanjieNum-over-bottom-top-box">
<view class="wanjieNum-over-bottom-top-box-ImgBY">
<view class="wanjieNum-over-bottom-top-box-Img-smallBY">
<image src="http://fileimg.makalu.cc/WEB_E08D2F26452A4FEEB4EA358CF0B04E14.png" mode="" style="width: 100%;height: 100%;"/>
</view>
</view>
<view class="wanjieNum-over-bottom-top-box-title">
<view class="wanjieNum-over-bottom-top-box-title-text">
外置温度
</view>
<view class="wanjieNum-over-bottom-top-box-title-text" style="display: flex;">
<view style="font-size: 26rpx;color: #0382e7;">
{{tempOut}}
</view>℃
</view>
</view>
</view>
<view class="wanjieNum-over-bottom-top-box" style="padding-left: 20rpx;">
<view class="wanjieNum-over-bottom-top-box-ImgBY">
<view class="wanjieNum-over-bottom-top-box-Img-smallBY">
<image src="http://fileimg.makalu.cc/WEB_E08D2F26452A4FEEB4EA358CF0B04E14.png" mode="" style="width: 100%;height: 100%;"/>
</view>
</view>
<view class="wanjieNum-over-bottom-top-box-title">
<view class="wanjieNum-over-bottom-top-box-title-text">
内置温度
</view>
<view class="wanjieNum-over-bottom-top-box-title-text" style="display: flex;">
<view style="font-size: 26rpx;color: #0382e7;">
{{tempIn}}
</view> ℃
</view>
</view>
</view>
</view>
<!-- <view style="padding-bottom: 40rpx;color: #b0c3e5;">
钢筋焊接
</view> -->
<!-- 钢筋焊接 -->
<view class="wanjieNum-over-bottom-top">
<!-- 每一个小盒子 -->
<view class="wanjieNum-over-bottom-top-box">
<view class="wanjieNum-over-bottom-top-box-ImgBY">
<view class="wanjieNum-over-bottom-top-box-Img-smallBY">
<image src="http://fileimg.makalu.cc/WEB_4F696F1DBE8F4A8BAA08D4D7B4F227AD.png" mode="" style="width: 100%;height: 100%;"/>
</view>
</view>
<view class="wanjieNum-over-bottom-top-box-title">
<view class="wanjieNum-over-bottom-top-box-title-text">
强度
</view>
<view class="wanjieNum-over-bottom-top-box-title-text" style="display: flex;">
<view style="font-size: 26rpx;color: #0382e7;">
{{strong}}
</view>MPa
</view>
</view>
</view>
<view class="wanjieNum-over-bottom-top-box" style="padding-left: 20rpx;">
<view class="wanjieNum-over-bottom-top-box-ImgBY">
<view class="wanjieNum-over-bottom-top-box-Img-smallBY">
<image src="http://fileimg.makalu.cc/WEB_4F696F1DBE8F4A8BAA08D4D7B4F227AD.png" mode="" style="width: 100%;height: 100%;"/>
</view>
</view>
<view class="wanjieNum-over-bottom-top-box-title">
<view class="wanjieNum-over-bottom-top-box-title-text">
成熟度
</view>
<view class="wanjieNum-over-bottom-top-box-title-text" style="display: flex;justify-content: flex-start;align-items: center;">
<view style="font-size: 26rpx;color: #0382e7;">
{{cooked}}
</view>
℃*h
</view>
</view>
</view>
</view>
</view>
</view>
</view>
</view>
<van-popup show="{{ show }}" position="left" custom-style="width: 70%;height:100%;background:#191d28" bind:close="onClose" >
<view class="left_max">
<van-row class="demo clearfix">
<van-col span="10">
<view class="left_head"><image src="http://fileimg.makalu.cc/szgl/9015e824c5004e629049c4f72967cfdc.png"></image></view>
</van-col>
<van-col span="14">
<view class="left_info">
<view class="left_info_name">{{userName}}</view>
<view class="left_info_name">{{loginName}}</view>
</view>
</van-col>
</van-row>
</view>
</van-popup>

View File

@ -1,141 +0,0 @@
/* pages/Quality-Assurance/index.wxss */
/* 质量管理 */
.quality{
padding: 60rpx 40rpx 30rpx;
}
/* 头部部分 */
.quality-header{
margin: 10rpx 0 50rpx;
}
/* 内容部分 */
.quality-content{
width: 100%;
border: 1px solid #1e2336;
background-color: #1e2336;
padding-top: 20rpx;
margin-bottom: 40rpx;
font-size: 26rpx;
border-radius: 15rpx;
}
.eharts_title{
height: 40rpx;
line-height: 40rpx;
padding-left: 50rpx;
margin-left: 20rpx;
font-size: 34rpx;
background: url("http://fileimg.makalu.cc/CORE_52887EE6A33042408E11C2174974ABA1.png") no-repeat left/35rpx;
}
/* 内容部分 */
.gangjin{
padding:0 30rpx 40rpx 60rpx;
}
.gangjin-header{
width: 100%;
}
.project-title{
height: 40rpx;
line-height: 40rpx;
padding-left: 40rpx;
margin-top: 40rpx;
font-size: 26rpx;
background: url("http://fileimg.makalu.cc/WEB_F6B0554C215E496195EA7D6FCE2C0B8E.png") no-repeat left/35rpx;
}
.wanjieNum-over-bottom{
display: flex;
flex-direction: column;
justify-content:space-evenly ;
padding: 100rpx 0 0 0;
color: #b0c3e5;
}
.wanjieNum-over-bottom-top{
display: flex;
justify-content: space-between;
height: 100rpx;
line-height: 100rpx;
}
.wanjieNum-over-bottom-top-box{
display: flex;
width: 50%;
height: 100rpx;
}
.wanjieNum-over-bottom-top-box-Img{
display: flex;
justify-content: center;
align-items: center;
width: 40%;
height: 100rpx;
background: url("http://fileimg.makalu.cc/WEB_20BAE0F4F7E14D048A818A10223B0BE1.gif") no-repeat center/100%;
padding: 14rpx 0;
}
.wanjieNum-over-bottom-top-box-ImgBY{
display: flex;
justify-content: center;
align-items: center;
width: 40%;
height: 100rpx;
background: url("http://fileimg.makalu.cc/WEB_EBD7748CB73A4D2D8BD74617F84528DE.png") no-repeat center/100%;
padding: 14rpx 0;
}
.wanjieNum-over-bottom-top-box-Imgs{
display: flex;
justify-content: center;
align-items: center;
width: 40%;
height: 100rpx;
background: url("http://fileimg.makalu.cc/WEB_FBB7B92F89A748CCA88C2D059D67CDCD.gif") no-repeat center/100%;
padding: 14rpx 0;
}
.wanjieNum-over-bottom-top-box-ImgPC{
display: flex;
justify-content: center;
align-items: center;
width: 40%;
height: 100rpx;
background: url("http://fileimg.makalu.cc/WEB_E219D45248B942248FE6561F24B536A9.png") no-repeat center/100%;
padding: 14rpx 0;
}
.wanjieNum-over-bottom-top-box-ImgPS{
display: flex;
justify-content: center;
align-items: center;
width: 40%;
height: 100rpx;
background: url("http://fileimg.makalu.cc/WEB_C8E00800A80E4D41B579855E50A57F3E.png") no-repeat center/100%;
padding: 14rpx 0;
}
.wanjieNum-over-bottom-top-box-Img-small{
width: 50rpx;
height: 50rpx;
line-height: 50rpx;
}
.wanjieNum-over-bottom-top-box-Img-smallBY{
width: 50rpx;
height: 50rpx;
line-height: 50rpx;
margin-bottom: 20rpx;
}
.wanjieNum-over-bottom-top-box-title{
display: flex;
flex-direction: column;
justify-content: space-between;
/* padding-left:20rpx ; */
width: 60%;
height:100rpx ;
font-size: 28rpx;
}
.wanjieNum-over-bottom-top-box-title-text{
height: 50rpx;
line-height: 50rpx;
}
/* 钢筋拉试件 */
.gangjinlajin{
padding:0 30rpx 40rpx 60rpx;
}
.gangjinlajin-header{
width: 100%;
}
/* 标养室监测 */
.jupai-top{
height: 80rpx;
border: 1px solid green;
}

View File

@ -1,66 +0,0 @@
// pages/Standard-maintenance-room-monitoring/index.js
Page({
/**
* 页面的初始数据
*/
data: {
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {
},
/**
* 生命周期函数--监听页面显示
*/
onShow() {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage() {
}
})

View File

@ -1,2 +0,0 @@
<!--pages/Standard-maintenance-room-monitoring/index.wxml-->
<text>pages/Standard-maintenance-room-monitoring/index.wxml</text>

View File

@ -1,135 +0,0 @@
// pages/construction-details/index.js
// pages/construction/index.js
const app = getApp()
Page({
/**
* 页面的初始数据
*/
data: {
buildList: [],
floorList: [],
initData: [],
projectData: {},
buildingNum:'',
floorNum:'',
chosen:'',
loadShow:false,
id:'',//当前施工日志ID
itemData:{},
activeState:1,
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
var that = this;
//获取请求参数
that.setData({
id:options.id
})
//获取缓存数据
wx.getStorage({
key: 'userinfo',
success: function (res) {
that.setData({
remark: res.data.remark,
loginName: res.data.loginName,
userName: res.data.userName,
projectId: app.globalData.projectId,
projectName: app.globalData.projectName,
initData: {
text: app.globalData.projectName,
id: app.globalData.projectId
}
})
}
}),
that.getConstructionLogDetail(options.id);
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {
},
/**
* 生命周期函数--监听页面显示
*/
onShow() {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage() {
},
/**
* 根据施工日志ID查询施工日志详情
* @param {} id
*/
getConstructionLogDetail(id){
var that = this
wx.request({
url: app.globalData.szhUrl + '/api/getConstructionLogDetail',
method: "post",
data: {
"id":id
},
success: (res => {
that.setData({
itemData:res.data
})
// that.setData({
// loadShow: false
// })
})
})
},
/**
* 标签切换
*/
trainingTypeJump(e){
this.setData({
activeState:e.currentTarget.dataset.index,
});
},
})

View File

@ -1,6 +0,0 @@
{
"usingComponents": {
"van-overlay": "@vant/weapp/overlay/index"
},
"navigationBarTitleText": "施工日志详情"
}

View File

@ -1,756 +0,0 @@
<!--pages/construction-details/index.wxml-->
<!-- 施工日志详情 -->
<view class="construction">
<view class="construction-content" style="margin: 30rpx 0;">
<view class="eharts_title">
基础信息
</view>
<view class="rowStyle">
一级施工区域
<view class="rightStyle">
<input type="digit" name="mainStructure" class="inputStyle" style="width: 200px;" value="{{itemData.building_num}}" disabled="disabled"/>
</view>
</view>
<view class="rowStyle">
二级施工区域
<view class="rightStyle">
<input type="digit" name="rebarBindInWall" class="inputStyle" style="width: 200px;" value="{{itemData.floor_num}}" disabled="disabled"/>
</view>
</view>
<view class="rowStyle">
施工日期
<view class="rightStyle">
<input type="digit" name="fullScaffoldingFormwork" class="inputStyle" style="width: 200px;" value="{{itemData.fill_time}}" disabled="disabled"/>
</view>
</view>
</view>
</view>
<!-- tab栏切换 -->
<view class="modify_video_nav" style="margin-bottom: 64rpx;width: 100%;">
<view class="{{activeState==1?'active':''}}" bindtap="trainingTypeJump" data-index="1"><text>地基与基础</text></view>
<view class="{{activeState==2?'active':''}}" bindtap="trainingTypeJump" data-index="2"><text>主体结构</text></view>
<view class="{{activeState==3?'active':''}}" bindtap="trainingTypeJump" data-index="3"><text>砌体结构</text></view>
<view class="{{activeState==4?'active':''}}" bindtap="trainingTypeJump" data-index="4"><text>装饰装修</text></view>
<view class="{{activeState==5?'active':''}}" bindtap="trainingTypeJump" data-index="5"><text>安装工程</text></view>
</view>
<!-- 地基与基础 -->
<view class="construction-content" style="margin: 30rpx 0;" wx:if="{{activeState == 1}}">
<view class="rowStyle">
地基与基础工程完成至总量的
<view class="rightStyle">
<input type="text" value="{{itemData.oneData.schedule_construction_one}}" class="inputStyle" disabled="disabled"/>%
</view>
</view>
<view class="eharts_title" style="display: flex;margin-bottom: 40rpx;">
围护结构
</view>
<view class="rowStyle" style="display: inline-block;">
1
<input type="text" value="{{itemData.oneData.whz_position}}" class="inputStyle1" disabled="disabled"/>(一般填写东、南、西、北)侧围护桩施工当天完成 
<input type="text" value="{{itemData.oneData.wh_today_finish_num}}" class="inputStyle1" disabled="disabled"/>根,累计完成
<input type="text" value="{{itemData.oneData.wh_tital_finish_num}}" class="inputStyle1" disabled="disabled"/>根,(总量
<input type="text" value="{{itemData.oneData.wh_tital_num}}" class="inputStyle1" disabled="disabled"/> 根)累计完成总量的
<input type="text" value="{{itemData.oneData.wh_tital_finish_rate}}" class="inputStyle1" disabled="disabled"/>%
</view>
<view class="rowStyle" style="display: inline-block;">
2
<input type="text" value="{{itemData.oneData.lxq_position}}" class="inputStyle1" disabled="disabled"/>(一般填写东、南、西、北)侧地下连续墙施工完成
<input type="text" value="{{itemData.oneData.lxq_finish_num}}" class="inputStyle1" disabled="disabled"/>副(总量
<input type="text" value="{{itemData.oneData.lxq_tital_num}}" class="inputStyle1" disabled="disabled"/>副),累计完成总量的
<input type="text" value="{{itemData.oneData.lxq_tital_finish_rate}}" class="inputStyle1" disabled="disabled"/>%
</view>
<view class="rowStyle" style="display: inline-block;">
3
<input type="text" value="{{itemData.oneData.pmzh_position}}" class="inputStyle1" disabled="disabled"/>(一般填写东、南、西、北)侧喷锚支护施工完成至总量的
<input type="text" value="{{itemData.oneData.pmzh_tital_finish_rate}}" class="inputStyle1" disabled="disabled"/>%
</view>
<view class="eharts_title" style="display: flex;margin-bottom: 40rpx;">
土方工程
</view>
<view class="rowStyle">
1土方开挖完成至总量的
<view class="rightStyle">
<input type="text" value="{{itemData.oneData.tfkw_tital_finish_rate}}" class="inputStyle" disabled="disabled" />%
</view>
</view>
<view class="rowStyle" style="display: inline-block;">
2
<input type="text" value="{{itemData.oneData.tfht_position}}" class="inputStyle1" disabled="disabled"/>(一般填写东、南、西、北)侧土方回填完成至总量的
<input type="text" value="{{itemData.oneData.tfht_tital_finish_rate}}" class="inputStyle1" disabled="disabled"/>%
</view>
<view class="rowStyle">
3室内土方回填完成至总量的
<view class="rightStyle">
<input type="text" value="{{itemData.oneData.tfht_sn_tital_finish_rate}}" class="inputStyle" disabled="disabled" />%
</view>
</view>
<view class="eharts_title" style="display: flex;margin-bottom: 40rpx;">
基坑降水
</view>
<view class="rowStyle">
1降水井施工完成至总量的
<view class="rightStyle">
<input type="text" value="{{itemData.oneData.jkjs_tital_finish_rate}}" class="inputStyle" disabled="disabled" />%
</view>
</view>
<view class="eharts_title" style="display: flex;margin-bottom: 40rpx;">
桩基工程
</view>
<view class="rowStyle" style="display: inline-block;">
1
<input type="text" value="{{itemData.oneData.zj_type1}}" class="inputStyle1" disabled="disabled"/>(灌注桩、静压桩)桩施工完成至
<input type="text" value="{{itemData.oneData.zj_finish_rate}}" class="inputStyle1" disabled="disabled"/>%
</view>
<view class="rowStyle" style="display: inline-block;">
2
<input type="text" value="{{itemData.oneData.zj_type2}}" class="inputStyle1" disabled="disabled"/>(灌注桩、静压桩)桩施工累计完成
<input type="text" value="{{itemData.oneData.zj_tital_finish_num}}" class="inputStyle1" disabled="disabled"/>根(总量
<input type="text" value="{{itemData.oneData.zj_tital_num}}" class="inputStyle1" disabled="disabled"/>根),累计完成总量的
<input type="text" value="{{itemData.oneData.zj_tital_finish_rate}}" class="inputStyle1" disabled="disabled"/>%
</view>
<view class="rowStyle">
3桩间土开挖完成
<view class="rightStyle">
<input type="text" value="{{itemData.oneData.zj_zjtkw_finish_tate}}" class="inputStyle" disabled="disabled" />%
</view>
</view>
<view class="rowStyle">
4破桩头累计完成
<view class="rightStyle">
<input type="text" value="{{itemData.oneData.zj_pzt_tital_finish_num}}" class="inputStyle" disabled="disabled" />根
</view>
</view>
<view class="eharts_title" style="display: flex;margin-bottom: 40rpx;">
楼筏板工程
</view>
<view class="rowStyle">
1垫层完成至总量
<view class="rightStyle">
<input type="text" value="{{itemData.oneData.lfb_dc_finish_rate}}" class="inputStyle" disabled="disabled" />%
</view>
</view>
<view class="rowStyle">
2防水及防水保护层完成至总量
<view class="rightStyle">
<input type="text" value="{{itemData.oneData.lfb_fs_finish_rate}}" class="inputStyle" disabled="disabled" />%
</view>
</view>
<view class="rowStyle">
3筏板的模板施工完成至总量的
<view class="rightStyle">
<input type="text" value="{{itemData.oneData.lfb_mb_finish_rate}}" class="inputStyle" disabled="disabled" />%
</view>
</view>
<view class="rowStyle">
4筏板钢筋绑扎完成至总量的
<view class="rightStyle">
<input type="text" value="{{itemData.oneData.lfb_gj_finish_rate}}" class="inputStyle" disabled="disabled" />%
</view>
</view>
<view class="rowStyle">
5钢筋支撑架搭设完成至总量的
<view class="rightStyle">
<input type="text" value="{{itemData.oneData.lfb_gjzcj_finish_rate}}" class="inputStyle" disabled="disabled" />%
</view>
</view>
<view class="rowStyle">
6防雷接地及安装预留预埋完成至总量的
<view class="rightStyle">
<input type="text" value="{{itemData.oneData.lfb_fljd_finish_rate}}" class="inputStyle" disabled="disabled" />%
</view>
</view>
<view class="rowStyle">
7砼浇筑完成至总量的
<view class="rightStyle">
<input type="text" value="{{itemData.oneData.lfb_tjz_finish_rate}}" class="inputStyle" disabled="disabled" />%
</view>
</view>
<view class="rowStyle">
8筏板模板拆除完成至总量的
<view class="rightStyle">
<input type="text" value="{{itemData.oneData.lfb_mbcc_finish_rate}}" class="inputStyle" disabled="disabled" />%
</view>
</view>
<view class="eharts_title" style="display: flex;margin-bottom: 40rpx;">
地下室防水工程
</view>
<view class="rowStyle" style="display: inline-block;">
1
<input type="text" value="{{itemData.oneData.dxsfs_wqfsc_position}}" class="inputStyle1" disabled="disabled"/>(此处选择“东、南、西、北”)侧外墙防水层施工完成至总量的
<input type="text" value="{{itemData.oneData.dxsfs_wqfsc_finish_rate}}" class="inputStyle1" disabled="disabled"/>%
</view>
<view class="rowStyle" style="display: inline-block;">
2
<input type="text" value="{{itemData.oneData.dxsfs_wqfsbhc_position}}" class="inputStyle1" disabled="disabled"/>(此处选择“东、南、西、北”)侧外墙防水保护层施工完成至总量的
<input type="text" value="{{itemData.oneData.dxsfs_wqfsbhc_finish_rate}}" class="inputStyle1" disabled="disabled"/>%
</view>
<view class="rowStyle">
3车库顶板防水及防水保护层施工完成至总量的
<view class="rightStyle">
<input type="text" value="{{itemData.oneData.dxsfs_ckdbfs_finish_rate}}" class="inputStyle" disabled="disabled" />%
</view>
</view>
<view class="eharts_title" style="display: flex;margin-bottom: 40rpx;">
±0.000以下主体结构施工
</view>
<view class="rowStyle" style="display: inline-block;">
1
<input type="text" value="{{itemData.oneData.ztjg_storey_num1}}" class="inputStyle1" disabled="disabled"/>层外围护脚手架搭设完成至总量的
<input type="text" value="{{itemData.oneData.ztjg_storey_finish_rate1}}" class="inputStyle1" disabled="disabled"/>%
</view>
<view class="rowStyle" style="display: inline-block;">
2
<input type="text" value="{{itemData.oneData.ztjg_storey_num2}}" class="inputStyle1" disabled="disabled"/>层墙柱钢筋绑扎完成至总量的
<input type="text" value="{{itemData.oneData.ztjg_storey_finish_rate2}}" class="inputStyle1" disabled="disabled"/>%
</view>
<view class="rowStyle" style="display: inline-block;">
3
<input type="text" value="{{itemData.oneData.ztjg_storey_num3}}" class="inputStyle1" disabled="disabled"/>层满堂脚手架搭设完成至总量的
<input type="text" value="{{itemData.oneData.ztjg_storey_finish_rate3}}" class="inputStyle1" disabled="disabled"/>%
</view>
<view class="rowStyle" style="display: inline-block;">
4
<input type="text" value="{{itemData.oneData.ztjg_storey_num4}}" class="inputStyle1" disabled="disabled"/>层顶板梁板模板安装完成至总量的
<input type="text" value="{{itemData.oneData.ztjg_storey_finish_rate4}}" class="inputStyle1" disabled="disabled"/>%
</view>
<view class="rowStyle" style="display: inline-block;">
5
<input type="text" value="{{itemData.oneData.ztjg_storey_num5}}" class="inputStyle1" disabled="disabled"/>层墙柱模板安装完成至总量的
<input type="text" value="{{itemData.oneData.ztjg_storey_finish_rate5}}" class="inputStyle1" disabled="disabled"/>%
</view>
<view class="rowStyle" style="display: inline-block;">
6
<input type="text" value="{{itemData.oneData.ztjg_storey_num6}}" class="inputStyle1" disabled="disabled"/>层顶板梁板钢筋安装完成至总量的
<input type="text" value="{{itemData.oneData.ztjg_storey_finish_rate6}}" class="inputStyle1" disabled="disabled"/>%
</view>
<view class="rowStyle" style="display: inline-block;">
7
<input type="text" value="{{itemData.oneData.ztjg_storey_num7}}" class="inputStyle1" disabled="disabled"/>层预制墙板吊装完成至总量的
<input type="text" value="{{itemData.oneData.ztjg_storey_finish_rate7}}" class="inputStyle1" disabled="disabled"/>%
</view>
<view class="rowStyle" style="display: inline-block;">
8
<input type="text" value="{{itemData.oneData.ztjg_storey_num8}}" class="inputStyle1" disabled="disabled"/>层叠合板及楼梯吊装完成至总量的
<input type="text" value="{{itemData.oneData.ztjg_storey_finish_rate8}}" class="inputStyle1" disabled="disabled"/>%
</view>
<view class="rowStyle" style="display: inline-block;">
9
<input type="text" value="{{itemData.oneData.ztjg_storey_num9}}" class="inputStyle1" disabled="disabled"/>层模板及支撑体系拆除完成至总量的
<input type="text" value="{{itemData.oneData.ztjg_storey_finish_rate9}}" class="inputStyle1" disabled="disabled"/>%
</view>
<view class="rowStyle" style="display: inline-block;">
10
<input type="text" value="{{itemData.oneData.ztjg_storey_num10}}" class="inputStyle1" disabled="disabled"/>层安装预留预埋完成至总量的
<input type="text" value="{{itemData.oneData.ztjg_storey_finish_rate10}}" class="inputStyle1" disabled="disabled"/>%
</view>
<view class="rowStyle" style="display: inline-block;">
11
<input type="text" value="{{itemData.oneData.ztjg_storey_num11}}" class="inputStyle1" disabled="disabled"/>层混凝土浇筑完成至总量的
<input type="text" value="{{itemData.oneData.ztjg_storey_finish_rate11}}" class="inputStyle1" disabled="disabled"/>%
</view>
<view class="eharts_title" style="display: flex;margin-bottom: 40rpx;">
±0.000以下砌体结构施工
</view>
<view class="rowStyle" style="display: inline-block;">
1
<input type="text" value="{{itemData.oneData.qtjg_storey_num1}}" class="inputStyle1" disabled="disabled"/>层植筋完成至总量的
<input type="text" value="{{itemData.oneData.qtjg_storey_finish_rate1}}" class="inputStyle1" disabled="disabled"/>%
</view>
<view class="rowStyle" style="display: inline-block;">
2
<input type="text" value="{{itemData.oneData.qtjg_storey_num2}}" class="inputStyle1" disabled="disabled"/>层砌体砌筑完成至总量的
<input type="text" value="{{itemData.oneData.qtjg_storey_finish_rate2}}" class="inputStyle1" disabled="disabled"/>%
</view>
<view class="rowStyle" style="display: inline-block;">
3
<input type="text" value="{{itemData.oneData.qtjg_storey_num3}}" class="inputStyle1" disabled="disabled"/>层构造柱、圈过梁完成至总量的
<input type="text" value="{{itemData.oneData.qtjg_storey_finish_rate3}}" class="inputStyle1" disabled="disabled"/>%
</view>
<view class="rowStyle" style="display: inline-block;">
4
<input type="text" value="{{itemData.oneData.qtjg_storey_num4}}" class="inputStyle1" disabled="disabled"/>层轻质隔墙安装完成至总量的
<input type="text" value="{{itemData.oneData.qtjg_storey_finish_rate4}}" class="inputStyle1" disabled="disabled"/>%
</view>
<view class="rowStyle" style="display: inline-block;">
5
<input type="text" value="{{itemData.oneData.qtjg_storey_num5}}" class="inputStyle1" disabled="disabled"/>层安装预留预埋完成至总量的
<input type="text" value="{{itemData.oneData.qtjg_storey_finish_rate5}}" class="inputStyle1" disabled="disabled"/>%
</view>
</view>
<!-- 主体结构 -->
<view class="construction-content" style="margin: 30rpx 0;" wx:if="{{activeState == 2}}">
<view class="rowStyle">
主体结构施工完成至总量的
<view class="rightStyle">
<input type="text" value="{{itemData.twoData.schedule_construction_two}}" class="inputStyle" disabled="disabled" />%
</view>
</view>
<view class="eharts_title">
主体结构
</view>
<view class="rowStyle">
1外围护脚手架搭设完成至总量的
<view class="rightStyle">
<input type="text" value="{{itemData.twoData.finish_rate1}}" class="inputStyle" disabled="disabled" />%
</view>
</view>
<view class="rowStyle">
2墙柱钢筋绑扎完成至总量的
<view class="rightStyle">
<input type="text" value="{{itemData.twoData.finish_rate2}}" class="inputStyle" disabled="disabled" />%
</view>
</view>
<view class="rowStyle">
3满堂脚手架搭设完成至总量的
<view class="rightStyle">
<input type="text" value="{{itemData.twoData.finish_rate3}}" class="inputStyle" disabled="disabled" />%
</view>
</view>
<view class="rowStyle">
4顶板梁板模板安装完成至总量的
<view class="rightStyle">
<input type="text" value="{{itemData.twoData.finish_rate4}}" class="inputStyle" disabled="disabled" />%
</view>
</view>
<view class="rowStyle">
5墙柱模板安装完成至总量的
<view class="rightStyle">
<input type="text" value="{{itemData.twoData.finish_rate5}}" class="inputStyle" disabled="disabled" />%
</view>
</view>
<view class="rowStyle">
6顶板梁板钢筋安装完成至总量的
<view class="rightStyle">
<input type="text" value="{{itemData.twoData.finish_rate6}}" class="inputStyle" disabled="disabled" />%
</view>
</view>
<view class="rowStyle">
7预制墙板吊装完成至总量的
<view class="rightStyle">
<input type="text" value="{{itemData.twoData.finish_rate7}}" class="inputStyle" disabled="disabled" />%
</view>
</view>
<view class="rowStyle">
8叠合板及楼梯吊装完成至总量的
<view class="rightStyle">
<input type="text" value="{{itemData.twoData.finish_rate8}}" class="inputStyle" disabled="disabled" />%
</view>
</view>
<view class="rowStyle">
9模板及支撑体系拆除完成至总量的
<view class="rightStyle">
<input type="text" value="{{itemData.twoData.finish_rate9}}" class="inputStyle" disabled="disabled" />%
</view>
</view>
<view class="rowStyle">
10安装预留预埋完成至总量的
<view class="rightStyle">
<input type="text" value="{{itemData.twoData.finish_rate10}}" class="inputStyle" disabled="disabled" />%
</view>
</view>
<view class="rowStyle">
11混凝土浇筑完成至总量的
<view class="rightStyle">
<input type="text" value="{{itemData.twoData.finish_rate11}}" class="inputStyle" disabled="disabled" />%
</view>
</view>
</view>
<!-- 砌体结构 -->
<view class="construction-content" style="margin: 30rpx 0;" wx:if="{{activeState == 3}}">
<view class="rowStyle">
砌体结构施工完成至总量的
<view class="rightStyle">
<input type="text" value="{{itemData.threeData.schedule_construction_three}}" class="inputStyle" disabled="disabled" />%
</view>
</view>
<view class="eharts_title">
砌体结构
</view>
<view class="rowStyle">
1植筋完成至总量的
<view class="rightStyle">
<input type="text" value="{{itemData.threeData.finish_rate1}}" class="inputStyle" disabled="disabled" />%
</view>
</view>
<view class="rowStyle">
2砌体砌筑完成至总量的
<view class="rightStyle">
<input type="text" value="{{itemData.threeData.finish_rate2}}" class="inputStyle" disabled="disabled" />%
</view>
</view>
<view class="rowStyle">
3构造柱、圈过梁完成至总量的
<view class="rightStyle">
<input type="text" value="{{itemData.threeData.finish_rate3}}" class="inputStyle" disabled="disabled" />%
</view>
</view>
<view class="rowStyle">
4轻质隔墙安装完成至总量的
<view class="rightStyle">
<input type="text" value="{{itemData.threeData.finish_rate4}}" class="inputStyle" disabled="disabled" />%
</view>
</view>
<view class="rowStyle">
5烟、气道施工完成至总量的
<view class="rightStyle">
<input type="text" value="{{itemData.threeData.finish_rate5}}" class="inputStyle" disabled="disabled" />%
</view>
</view>
<view class="rowStyle">
6安装预留预埋完成至总量的
<view class="rightStyle">
<input type="text" value="{{itemData.threeData.finish_rate6}}" class="inputStyle" disabled="disabled" />%
</view>
</view>
</view>
<!-- 装饰装修 -->
<view class="construction-content" style="margin: 30rpx 0;" wx:if="{{activeState == 4}}">
<view class="rowStyle">
装饰装修工程完成至总量的
<view class="rightStyle">
<input type="text" value="{{itemData.fourData.schedule_construction_four}}" class="inputStyle" disabled="disabled" />%
</view>
</view>
<view class="eharts_title">
抹灰工程
</view>
<view class="rowStyle">
1抹灰工程施工完成至总量的
<view class="rightStyle">
<input type="text" value="{{itemData.fourData.mh_finish_rate1}}" class="inputStyle" disabled="disabled" />%
</view>
</view>
<view class="eharts_title">
腻子涂料工程
</view>
<view class="rowStyle">
1腻子工程施工完成至总量的
<view class="rightStyle">
<input type="text" value="{{itemData.fourData.mh_finish_rate2}}" class="inputStyle" disabled="disabled" />%
</view>
</view>
<view class="rowStyle">
2涂料工程施工完成至总量的
<view class="rightStyle">
<input type="text" value="{{itemData.fourData.mh_finish_rate3}}" class="inputStyle" disabled="disabled" />%
</view>
</view>
<view class="eharts_title">
地辐热工程
</view>
<view class="rowStyle">
1保温层施工完成至总量的
<view class="rightStyle">
<input type="text" value="{{itemData.fourData.dfr_finish_rate1}}" class="inputStyle" disabled="disabled" />%
</view>
</view>
<view class="rowStyle">
2地暖管施工完成至总量的
<view class="rightStyle">
<input type="text" value="{{itemData.fourData.dfr_finish_rate2}}" class="inputStyle" disabled="disabled" />%
</view>
</view>
<view class="rowStyle">
3混凝土保护层施工完成至总量的
<view class="rightStyle">
<input type="text" value="{{itemData.fourData.dfr_finish_rate3}}" class="inputStyle" disabled="disabled" />%
</view>
</view>
<view class="rowStyle">
4阀门施工完成至总量的
<view class="rightStyle">
<input type="text" value="{{itemData.fourData.dfr_finish_rate4}}" class="inputStyle" disabled="disabled" />%
</view>
</view>
<view class="eharts_title">
地面工程
</view>
<view class="rowStyle">
1厨房/卫生间/阳台防水施工完成至总量的
<view class="rightStyle">
<input type="text" value="{{itemData.fourData.dm_finish_rate1}}" class="inputStyle" disabled="disabled" />%
</view>
</view>
<view class="rowStyle">
2地砖铺贴施工完成至总量的
<view class="rightStyle">
<input type="text" value="{{itemData.fourData.dm_finish_rate2}}" class="inputStyle" disabled="disabled" />%
</view>
</view>
<view class="rowStyle">
3水泥砂浆地面施工完成至总量的
<view class="rightStyle">
<input type="text" value="{{itemData.fourData.dm_finish_rate3}}" class="inputStyle" disabled="disabled" />%
</view>
</view>
<view class="eharts_title">
楼梯扶手及护栏工程
</view>
<view class="rowStyle">
1楼梯扶手施工完成至总量的
<view class="rightStyle">
<input type="text" value="{{itemData.fourData.ltfs_finish_rate}}" class="inputStyle" disabled="disabled" />%
</view>
</view>
<view class="rowStyle">
2栏杆施工完成至总量的
<view class="rightStyle">
<input type="text" value="{{itemData.fourData.lg_finish_rate}}" class="inputStyle" disabled="disabled" />%
</view>
</view>
<view class="eharts_title">
门窗工程
</view>
<view class="rowStyle">
1入户门安装完成
<view class="rightStyle">
<input type="text" value="{{itemData.fourData.mc_num1}}" class="inputStyle" disabled="disabled" />樘
</view>
</view>
<view class="rowStyle">
2防火门安装完成
<view class="rightStyle">
<input type="text" value="{{itemData.fourData.mc_num2}}" class="inputStyle" disabled="disabled" />樘
</view>
</view>
<view class="rowStyle">
3窗框安装完成
<view class="rightStyle">
<input type="text" value="{{itemData.fourData.mc_num3}}" class="inputStyle" disabled="disabled" />樘
</view>
</view>
<view class="rowStyle">
4窗扇安装完成
<view class="rightStyle">
<input type="text" value="{{itemData.fourData.mc_num4}}" class="inputStyle" disabled="disabled" />樘
</view>
</view>
<view class="rowStyle">
5门的五金件安装完成
<view class="rightStyle">
<input type="text" value="{{itemData.fourData.mc_num5}}" class="inputStyle" disabled="disabled" />樘
</view>
</view>
<view class="rowStyle">
6窗的五金件安装完成
<view class="rightStyle">
<input type="text" value="{{itemData.fourData.mc_num6}}" class="inputStyle" disabled="disabled" />樘
</view>
</view>
<view class="eharts_title">
吊顶工程
</view>
<view class="rowStyle">
1吊顶施工完成至总量的
<view class="rightStyle">
<input type="text" value="{{itemData.fourData.dd_finish_rate}}" class="inputStyle" disabled="disabled" />樘
</view>
</view>
<view class="eharts_title">
外墙工程
</view>
<view class="rowStyle" style="display: inline-block;">
1
<input type="text" value="{{itemData.fourData.wq_position1}}" class="inputStyle1" disabled="disabled"/>(一般填写东、南、西、北)侧外墙外保温(含抗裂砂浆、网格布)施工完成至总量的
<input type="text" value="{{itemData.fourData.wq_finish_rate1}}" class="inputStyle1" disabled="disabled"/>%
</view>
<view class="rowStyle" style="display: inline-block;">
2
<input type="text" value="{{itemData.fourData.wq_position2}}" class="inputStyle1" disabled="disabled"/>(一般填写东、南、西、北)侧腻子施工完成至总量的
<input type="text" value="{{itemData.fourData.wq_finish_rate2}}" class="inputStyle1" disabled="disabled"/>%
</view>
<view class="rowStyle" style="display: inline-block;">
3
<input type="text" value="{{itemData.fourData.wq_position3}}" class="inputStyle1" disabled="disabled"/>(一般填写东、南、西、北)侧饰面层(涂料/真石漆)施工完成至总量的
<input type="text" value="{{itemData.fourData.wq_finish_rate3}}" class="inputStyle1" disabled="disabled"/>%
</view>
<view class="rowStyle" style="display: inline-block;">
4
<input type="text" value="{{itemData.fourData.wq_position4}}" class="inputStyle1" disabled="disabled"/>(一般填写东、南、西、北)侧幕墙施工完成至总量的
<input type="text" value="{{itemData.fourData.wq_finish_rate4}}" class="inputStyle1" disabled="disabled"/>%
</view>
<view class="eharts_title">
屋面工程
</view>
<view class="rowStyle">
1找平层施工完成至总量的
<view class="rightStyle">
<input type="text" value="{{itemData.fourData.wm_finish_rate1}}" class="inputStyle" disabled="disabled" />%
</view>
</view>
<view class="rowStyle">
2保温层施工完成至总量的
<view class="rightStyle">
<input type="text" value="{{itemData.fourData.wm_finish_rate2}}" class="inputStyle" disabled="disabled" />%
</view>
</view>
<view class="rowStyle">
3防水层施工完成至总量的
<view class="rightStyle">
<input type="text" value="{{itemData.fourData.wm_finish_rate3}}" class="inputStyle" disabled="disabled" />%
</view>
</view>
<view class="rowStyle">
4防水保护层施工完成至总量的
<view class="rightStyle">
<input type="text" value="{{itemData.fourData.wm_finish_rate4}}" class="inputStyle" disabled="disabled" />%
</view>
</view>
<view class="rowStyle">
5屋面面层施工完成至总量的
<view class="rightStyle">
<input type="text" value="{{itemData.fourData.wm_finish_rate5}}" class="inputStyle" disabled="disabled" />%
</view>
</view>
<view class="rowStyle">
6钢爬梯施工完成至总量的
<view class="rightStyle">
<input type="text" value="{{itemData.fourData.wm_finish_rate6}}" class="inputStyle" disabled="disabled" />%
</view>
</view>
<view class="rowStyle">
7屋面设备基础等附属结构施工完成至总量的
<view class="rightStyle">
<input type="text" value="{{itemData.fourData.wm_finish_rate7}}" class="inputStyle" disabled="disabled" />%
</view>
</view>
</view>
<!-- 安装工程 -->
<view class="construction-content" style="margin: 30rpx 0;" wx:if="{{activeState == 5}}">
<view class="rowStyle">
安装工程施工完成至总量的
<view class="rightStyle">
<input type="text" value="{{itemData.fiveData.schedule_construction_five}}" class="inputStyle" disabled="disabled" />%
</view>
</view>
<view class="eharts_title">
电气工程
</view>
<view class="rowStyle">
1穿线含强电、弱电完成至总量的
<view class="rightStyle">
<input type="text" value="{{itemData.fiveData.dq_finish_rate1}}" class="inputStyle" disabled="disabled" />%
</view>
</view>
<view class="rowStyle">
2开关、面板、灯具安装完成至总量的
<view class="rightStyle">
<input type="text" value="{{itemData.fiveData.dq_finish_rate2}}" class="inputStyle" disabled="disabled" />%
</view>
</view>
<view class="rowStyle">
3配电箱、桥架安装完成至总量的
<view class="rightStyle">
<input type="text" value="{{itemData.fiveData.dq_finish_rate3}}" class="inputStyle" disabled="disabled" />%
</view>
</view>
<view class="rowStyle">
4电缆敷设安装完成至总量的
<view class="rightStyle">
<input type="text" value="{{itemData.fiveData.dq_finish_rate4}}" class="inputStyle" disabled="disabled" />%
</view>
</view>
<view class="eharts_title">
给排水工程
</view>
<view class="rowStyle">
1管道含排水、给水、消防、暖通敷设安装完成至总量的
<view class="rightStyle">
<input type="text" value="{{itemData.fiveData.jps_finish_rate1}}" class="inputStyle" disabled="disabled" />%
</view>
</view>
<view class="rowStyle">
2阀门、水表安装完成至总量的
<view class="rightStyle">
<input type="text" value="{{itemData.fiveData.jps_finish_rate2}}" class="inputStyle" disabled="disabled" />%
</view>
</view>
<view class="rowStyle">
3预留洞口封堵含防火封堵完成至总量的
<view class="rightStyle">
<input type="text" value="{{itemData.fiveData.jps_finish_rate3}}" class="inputStyle" disabled="disabled" />%
</view>
</view>
<view class="rowStyle">
4管道保温施工完成至总量的
<view class="rightStyle">
<input type="text" value="{{itemData.fiveData.jps_finish_rate4}}" class="inputStyle" disabled="disabled" />%
</view>
</view>
<view class="eharts_title">
暖通工程
</view>
<view class="rowStyle">
1暖通设备安装完成至总量的
<view class="rightStyle">
<input type="text" value="{{itemData.fiveData.nt_finish_rate1}}" class="inputStyle" disabled="disabled" />%
</view>
</view>
<view class="rowStyle">
2风管安装完成至总量的
<view class="rightStyle">
<input type="text" value="{{itemData.fiveData.nt_finish_rate2}}" class="inputStyle" disabled="disabled" />%
</view>
</view>
<view class="eharts_title">
消防工程
</view>
<view class="rowStyle">
1通风管道设备安装完成至总量的
<view class="rightStyle">
<input type="text" value="{{itemData.fiveData.xf_finish_rate1}}" class="inputStyle" disabled="disabled" />%
</view>
</view>
<view class="rowStyle">
2消防栓安装完成至总量的
<view class="rightStyle">
<input type="text" value="{{itemData.fiveData.xf_finish_rate2}}" class="inputStyle" disabled="disabled" />%
</view>
</view>
<view class="rowStyle">
3消防栓内配套设备安装完成至总量的
<view class="rightStyle">
<input type="text" value="{{itemData.fiveData.xf_finish_rate3}}" class="inputStyle" disabled="disabled" />%
</view>
</view>
</view>
<van-overlay show="{{loadShow}}">
<view class="gif">
<image src="../../images/loding2.gif"></image>
<view>正在提交,请稍后...</view>
</view>
</van-overlay>

View File

@ -1,77 +0,0 @@
/* pages/construction-details/index.wxss */
/* 施工日志 */
.construction{
display: flex;
flex-direction: column;
justify-content: space-between;
align-items: center;
padding:0 36rpx ;
}
/* 配电箱选项 */
.peidianxiang{
display: flex;
justify-content: space-between;
align-items: center;
margin: 60rpx 0;
width: 100%;
height: 100rpx;
}
.peidianxiang-left{
width: 42%;
height: 100rpx;
border-radius: 20rpx;
}
.peidianxiang-right{
width: 52%;
height: 100rpx;
border-radius: 20rpx;
}
.construction-content{
width: 100%;
padding: 48rpx 16rpx 10rpx;
background-color:#1e222e;
border-radius: 20rpx;
color: #6a7cac;
box-sizing: border-box;
}
.eharts_title{
height: 70rpx;
line-height: 70rpx;
padding-left: 50rpx;
margin-left: 20rpx;
font-size: 34rpx;
background: url("http://fileimg.makalu.cc/CORE_52887EE6A33042408E11C2174974ABA1.png") no-repeat left/35rpx;
border-bottom: 1px solid #313446;
color: #fff;
}
/* input框 */
.inputStyle{
border-bottom: 1px solid #6a7cac;
width: 100rpx;
padding: 15rpx 28rpx;
color: #fff;
outline:none;
text-align:center;
}
.inputStyle1{
border-bottom: 1px solid #6a7cac;
color: #fff;
display: inline-block;
width: 80px;
outline:none;
text-align:center;
}
.rowStyle{
display: flex;
justify-content: space-between;
align-items: center;
margin: 45rpx 0;
padding-left: 30rpx;
}
.rightStyle{
display: flex;
justify-content: space-between;
align-items: center;
width: 240rpx;
}

View File

@ -1,589 +0,0 @@
// pages/deepExcavation/index.js
const app = getApp()
Page({
/**
* 页面的初始数据
*/
data: {
DeviceGroupData: [],
DeviceGroupNameData:[],
stateNav:1,
statePosit:1,
qingxieData: {},
weiyiData:{},
active:3,
show: false,
loadShow:false,
loginName:'',
userName:'',
deptId:'',
projectName:'',
projectId:'',
//业务参数
groupType:'',
groupId:'',
sensorArray:[],
sensorObject:{},
//位移
shiftCount:0,
//倾斜
tiltCount:0,
//应力
stressCount:0,
//报警
callPoliceCount:0,
//预警
earlyWarningCount:0,
//离线
offlineCount:0,
//正常
normalCount:0,
initData:{},
sensorTypeName:'',
sensorTypeIndex:''
},
//项目切换 返回值
onProjectSelect(e){
this.onClickShow();
let projectId = e.detail.id;
let projectName = e.detail.text;
app.globalData.projectId = projectId;
app.globalData.projectName = projectName;
this.setData({
projectId:projectId,
projectName:projectName,
sensorArray:[]
})
this.getSensorTypeList('');
},
showPopup() {
this.setData({ show: true });
},
onClose() {
this.setData({ show: false });
},
onClickShow() {
this.setData({ loadShow: true });
},
onClickHide() {
this.setData({ loadShow: false });
},
//设备组 选择
onDeviceGroupSelect(e){
this.onClickShow();
this.setData({
groupType:e.detail.id,
sensorArray:[]
})
this.getSensorGroupList(e.detail.id);
},
//设备组名称 选择
onDeviceGroupNameSelect(e){
this.onClickShow();
this.setData({
groupId:e.detail.id,
sensorArray:[]
})
this.getSensorDataDay(this.data.groupType,e.detail.id);
},
//状态点击
onStatePosit(e){
this.onClickShow();
let state = e.currentTarget.dataset.state;
let sensorObject = this.data.sensorObject;
let dateList = sensorObject.dateList;
this.setData({statePosit:state,stateNav:1,displayState:true});
if(state == 1){
this.getShiftArray(sensorObject.shiftCallPoliceArray,dateList);
this.setData({
callPoliceCount:sensorObject.shiftCallPoliceArray.length,
earlyWarningCount:sensorObject.shiftEarlyWarningArray.length,
offlineCount:sensorObject.shiftOfflineArray.length,
normalCount:sensorObject.shiftNormalArray.length
})
}else if(state == 2){
this.getTiltArray(sensorObject.tiltCallPoliceArray,dateList);
this.setData({
callPoliceCount:sensorObject.tiltCallPoliceArray.length,
earlyWarningCount:sensorObject.tiltEarlyWarningArray.length,
offlineCount:sensorObject.tiltOfflineArray.length,
normalCount:sensorObject.tiltNormalArray.length
})
}else if(state == 3){
this.getStressArray(sensorObject.stressCallPoliceArray,dateList);
this.setData({
callPoliceCount:sensorObject.stressCallPoliceArray.length,
earlyWarningCount:sensorObject.stressEarlyWarningArray.length,
offlineCount:sensorObject.stressOfflineArray.length,
normalCount:sensorObject.stressNormalArray.length
})
}
},
onStateSelect(e){
this.onClickShow();
let state = e.currentTarget.dataset.state;
this.setData({stateNav:state,displayState:true});
this.judgmentData(state);
},
/**
* 返回值 // 1 为单次 2 为累计
*/
onWeiyi1(e){
let deviceId = e.currentTarget.dataset.deviceid
let sensorArray = this.data.sensorArray;
for(let i = 0;i<sensorArray.length;i++){
if(sensorArray[i].deviceId == deviceId){
sensorArray[i] = {"lineChart":sensorArray[i].lineChart,"lineChartSum":sensorArray[i].lineChartSum,"pointName":sensorArray[i].pointName,"type":sensorArray[i].type,"deviceId":sensorArray[i].deviceId,"displayState":e.detail == 1?true:false};
}
}
this.setData({sensorArray:sensorArray});
},
onQingxie1(e){
let deviceId = e.currentTarget.dataset.deviceid
let sensorArray = this.data.sensorArray;
for(let i = 0;i<sensorArray.length;i++){
if(sensorArray[i].deviceId == deviceId){
sensorArray[i] = {"lineChart":sensorArray[i].lineChart,"lineChartSum":sensorArray[i].lineChartSum,"pointName":sensorArray[i].pointName,"type":sensorArray[i].type,"deviceId":sensorArray[i].deviceId,"displayState":e.detail == 1?true:false};
}
}
this.setData({sensorArray:sensorArray});
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
var that = this;
//加载蒙版
that.onClickShow();
//获取缓存数据
wx.getStorage({
key: 'userinfo',
success:function(res){
that.setData({
loginName:res.data.loginName,
userName:res.data.userName,
deptId:res.data.deptId,
projectName: app.globalData.projectName,
projectId:app.globalData.projectId,
initData:{text:app.globalData.projectName,id:app.globalData.projectId}
})
that.getSensorTypeList(options.id);
}
})
},
/**
* 获取传感器类型
*/
getSensorTypeList:function(id){
wx.request({
url: app.globalData.reqUrl+'/weixin/security/getSensorTypeList',
method: 'get',
data: {
deptId:this.data.deptId,
projectId:this.data.projectId
},
success: resData => {
this.onClickHide();
let DeviceGroupData = [];
let sensorTypeName;
let sensorTypeIndex;
for(let i = 0;i<resData.data.length;i++){
if(resData.data[i].group_type == id){
sensorTypeName = resData.data[i].type_name;
sensorTypeIndex = i;
}
let GroupData = {"id":resData.data[i].group_type,"text":resData.data[i].type_name};
DeviceGroupData.push(GroupData);
}
this.setData({
DeviceGroupData:DeviceGroupData,
sensorTypeName:sensorTypeName,
sensorTypeIndex:sensorTypeIndex
})
//初始化
this.getSensorGroupList(id ==''?DeviceGroupData[0].id:id);
}
})
},
/**
* 获取传感器分组
*/
getSensorGroupList:function(groupType){
wx.request({
url: app.globalData.reqUrl+'/weixin/security/getSensorGroupList',
method: 'get',
data: {
deptId:this.data.deptId,
projectId:this.data.projectId,
groupType:groupType
},
success: resData => {
this.onClickHide();
if(resData.length > 0){
let DeviceGroupNameData = [];
for(let i = 0;i<resData.data.length;i++){
let GroupData = {"id":resData.data[i].group_id,"text":resData.data[i].group_name};
DeviceGroupNameData.push(GroupData);
}
this.setData({
DeviceGroupNameData:DeviceGroupNameData
})
//初始化
this.getSensorDataDay(groupType,DeviceGroupNameDataDeviceGroupNameData[0].id);
}
}
})
},
/**
* 获取传感器日常数据
*/
getSensorDataDay:function(groupType,groupId){
wx.request({
url: app.globalData.reqUrl+'/weixin/security/getSensorDataDay',
method: 'get',
data: {
deptId:this.data.deptId,
projectId:this.data.projectId,
groupType:groupType,
groupId:groupId
},
success: resData => {
var that = this;
that.onClickHide();
//位移
let shiftCallPoliceArray = resData.data.shiftCallPoliceArray;
let shiftEarlyWarningArray = resData.data.shiftEarlyWarningArray;
let shiftOfflineArray = resData.data.shiftOfflineArray;
let shiftNormalArray = resData.data.shiftNormalArray;
//倾斜
let tiltCallPoliceArray = resData.data.tiltCallPoliceArray;
let tiltEarlyWarningArray = resData.data.tiltEarlyWarningArray;
let tiltOfflineArray = resData.data.tiltOfflineArray;
let tiltNormalArray = resData.data.tiltNormalArray;
//应力
let stressCallPoliceArray = resData.data.stressCallPoliceArray;
let stressEarlyWarningArray = resData.data.stressEarlyWarningArray;
let stressOfflineArray = resData.data.stressOfflineArray;
let stressNormalArray = resData.data.stressNormalArray;
let shiftCount = shiftCallPoliceArray.length+ shiftEarlyWarningArray.length+shiftOfflineArray.length +shiftNormalArray.length;
let tiltCount = tiltCallPoliceArray.length+ tiltEarlyWarningArray.length+ tiltOfflineArray.length+ tiltNormalArray.length;
let stressCount = stressCallPoliceArray.length+ stressEarlyWarningArray.length+ stressOfflineArray.length+ stressNormalArray.length;
//判断默认展示位移有数据的
let stateNav = this.data.stateNav;
if(shiftCallPoliceArray.length != 0){
this.getShiftArray(shiftCallPoliceArray,resData.data.dateList);
stateNav = 1;
}else if(shiftEarlyWarningArray.length != 0){
this.getShiftArray(shiftEarlyWarningArray,resData.data.dateList);
stateNav = 2;
}else if(shiftOfflineArray.length != 0){
this.getShiftArray(shiftOfflineArray,resData.data.dateList);
stateNav = 3;
}else if(shiftNormalArray.length != 0){
this.getShiftArray(shiftNormalArray,resData.data.dateList);
stateNav = 4;
}
this.setData({
sensorObject:resData.data,
shiftCount:shiftCount,
tiltCount:tiltCount,
stressCount:stressCount,
callPoliceCount:shiftCallPoliceArray.length,
earlyWarningCount:shiftEarlyWarningArray.length,
offlineCount:shiftOfflineArray.length,
normalCount:shiftNormalArray.length,
stateNav:stateNav
})
}
})
},
/**
* 位移
*/
getShiftArray:function(array,dateList){
let sensorArray = [];
for(let i = 0;i<array.length;i++){
let dataList = array[i].dataList;
let baojingUp = [];
let baojingDown = [];
let yujingUp = [];
let yujingDown = [];
let celiang = [];
let ljbaojingUp = [];
let ljbaojingDown = [];
let ljyujingUp = [];
let ljyujingDown = [];
let ljceliang = [];
for(let j = 0;j<dataList.length;j++){
baojingUp.push(dataList[j].singleTimeUpAlarmValue);
baojingDown.push(dataList[j].singleTimeDownAlarmValue);
yujingUp.push(dataList[j].singleTimeUpWarnValue);
yujingDown.push(dataList[j].singleTimeDownWarnValue);
celiang.push(dataList[j].singleTimeMesureValue);
ljbaojingUp.push(dataList[j].cumulativeMesureUpAlarmValue);
ljbaojingDown.push(dataList[j].cumulativeMesureDownAlarmValue);
ljyujingUp.push(dataList[j].cumulativeMesureUpWarnValue);
ljyujingDown.push(dataList[j].cumulativeMesureDownWarnValue);
ljceliang.push(dataList[j].cumulativeMesureValue);
}
let lineChart = {
unit : 'mm',
Xdata:dateList,
Ydata:celiang,
warningMax :yujingUp,
warningMin :yujingDown,
policeMax : baojingUp,
policeMin : baojingDown,
};
let lineChartSum = {
unit : 'mm',
Xdata:dateList,
Ydata:ljceliang,
warningMax :ljyujingUp,
warningMin :ljyujingDown,
policeMax : ljbaojingUp,
policeMin : ljbaojingDown,
};
sensorArray.push({"lineChart":lineChart,"lineChartSum":lineChartSum,"deviceId":array[i].deviceId,"type":1,"pointName":"位移("+array[i].pointName+"","displayState":true});
}
this.setData({
sensorArray:sensorArray
})
this.onClickHide();
},
/**
* 倾斜
*/
getTiltArray:function(array,dateList){
let sensorArray = [];
for(let i = 0;i<array.length;i++){
let dataList = array[i].dataList;
let xCeliang = [];
let yCeliang = [];
let ljxCeliang = [];
let ljyCeliang = [];
for(let j = 0;j<dataList.length;j++){
xCeliang.push(dataList[j].singleTimeVerticalMesureValue);
yCeliang.push(dataList[j].singleTimeHorizontalMesureValue);
ljxCeliang.push(dataList[j].cumulativeVerticalMesureValue);
ljyCeliang.push(dataList[j].cumulativeHorizontalMesureValue);
}
let lineChart = {
unit : 'mm',
legend:['X轴', 'Y轴'],
color:['#2e6ed0','#fb9300'],
Xdata :dateList,
Ydata:[xCeliang,yCeliang]
};
let lineChartSum = {
unit : 'mm',
legend:['X轴', 'Y轴'],
color:['#2e6ed0','#fb9300'],
Xdata :dateList,
Ydata:[ljxCeliang,ljyCeliang]
};
sensorArray.push({"lineChart":lineChart,"lineChartSum":lineChartSum,"deviceId":array[i].deviceId,"type":2,"pointName":"倾斜("+array[i].pointName+"","displayState":true});
}
this.setData({
sensorArray:sensorArray
})
this.onClickHide();
},
/**
* 应力
*/
getStressArray:function(array,dateList){
let sensorArray = [];
for(let i = 0;i<array.length;i++){
let dataList = array[i].dataList;
let baojingUp = [];
let baojingDown = [];
let yujingUp = [];
let yujingDown = [];
let celiang = [];
let ljbaojingUp = [];
let ljbaojingDown = [];
let ljyujingUp = [];
let ljyujingDown = [];
let ljceliang = [];
for(let j = 0;j<dataList.length;j++){
baojingUp.push(dataList[j].singleTimeUpAlarmValue);
baojingDown.push(dataList[j].singleTimeDownAlarmValue);
yujingUp.push(dataList[j].singleTimeUpWarnValue);
yujingDown.push(dataList[j].singleTimeDownWarnValue);
celiang.push(dataList[j].singleTimeMesureValue);
ljbaojingUp.push(dataList[j].cumulativeMesureUpAlarmValue);
ljbaojingDown.push(dataList[j].cumulativeMesureDownAlarmValue);
ljyujingUp.push(dataList[j].cumulativeMesureUpWarnValue);
ljyujingDown.push(dataList[j].cumulativeMesureDownWarnValue);
ljceliang.push(dataList[j].cumulativeMesureValue);
}
let lineChart = {
unit : 'KN',
Xdata:dateList,
Ydata:celiang,
warningMax :yujingUp,
warningMin :yujingDown,
policeMax : baojingUp,
policeMin : baojingDown,
};
let lineChartSum = {
unit : 'KN',
Xdata:dateList,
Ydata:ljceliang,
warningMax :ljyujingUp,
warningMin :ljyujingDown,
policeMax : ljbaojingUp,
policeMin : ljbaojingDown,
};
sensorArray.push({"lineChart":lineChart,"lineChartSum":lineChartSum,"deviceId":array[i].deviceId,"type":1,"pointName":"应力("+array[i].pointName+"","displayState":true});
}
this.setData({
sensorArray:sensorArray
})
this.onClickHide();
},
/**
* 展示数据逻辑判断
* type 1 单次
* 2 累计
*/
judgmentData:function(state){
let statePosit = this.data.statePosit;
let sensorObject = this.data.sensorObject;
let sensorArray = [];
let dateList = sensorObject.dateList;
//位移
if(statePosit == 1){
if(state == 1){
sensorArray = sensorObject.shiftCallPoliceArray;
}else if(state == 2){
sensorArray = sensorObject.shiftEarlyWarningArray;
}else if(state == 3){
sensorArray = sensorObject.shiftOfflineArray;
}else if(state == 4){
sensorArray = sensorObject.shiftNormalArray;
}
this.getShiftArray(sensorArray,dateList);
}else if(statePosit == 2){//倾斜
if(state == 1){
sensorArray = sensorObject.tiltCallPoliceArray;
}else if(state == 2){
sensorArray = sensorObject.tiltEarlyWarningArray;
}else if(state == 3){
sensorArray = sensorObject.tiltOfflineArray;
}else if(state == 4){
sensorArray = sensorObject.tiltNormalArray;
}
this.getTiltArray(sensorArray,dateList);
}else if(statePosit == 3){//应力
if(state == 1){
sensorArray = sensorObject.stressCallPoliceArray;
}else if(state == 2){
sensorArray = sensorObject.stressEarlyWarningArray;
}else if(state == 3){
sensorArray = sensorObject.stressOfflineArray;
}else if(state == 4){
sensorArray = sensorObject.stressNormalArray;
}
this.getStressArray(sensorArray,dateList);
}
},
// 底部导航
onChange(event) {
// event.detail 的值为当前选中项的索引
this.setData({ active: event.detail });
},
//跳转到项目概况页面
XMGK:function(){
wx.redirectTo({
url: '../xiangmugaikuang/xiangmugaikuang'
})
},
//跳转到设备管理
SBGL:function(){
wx.redirectTo({
url: '../shebieguanli-jxsb/shajiangguan',
})
},
//跳转到人员管理
RYGL:function(){
wx.redirectTo({
url: '../renyuanguanli/renyuanguanli'
})
},
//跳转到更多功能
GDGN:function(){
wx.redirectTo({
url: '../gengduogongneng/gengduogongneng'
})
},
//退出登录
TCDL:function(){
wx.clearStorageSync();
wx.setStorageSync('isReload', "1")
wx.redirectTo({
url: '../login/login',
})
},
//返回到地图页面
GOMAP:function(){
wx.redirectTo({
url: '../map/map',
})
},
//返回到安全管理页面
goGCLB:function(){
wx.redirectTo({
//url: '../gongchengliebiao/gongchengliebiao'
url:'../newAddPage/safetyManagement/index'
})
}
})

View File

@ -1,9 +0,0 @@
{
"usingComponents": {
"van-overlay": "@vant/weapp/overlay/index" ,
"van-popup": "@vant/weapp/popup/index",
"van-tabbar": "@vant/weapp/tabbar",
"van-tabbar-item": "@vant/weapp/tabbar-item"
},
"navigationBarTitleText": "安全管控"
}

View File

@ -1,186 +0,0 @@
<!--pages/deepExcavation/index.wxml-->
<!-- <view class="header_title">
<view class="header_title_row">
<van-row>
<van-col span="3">
<view class="header_img" bindtap="showPopup"><image src="/images/core.png"></image></view>
</van-col>
<van-col span="4">
<view class="header_img" bindtap="goGCLB">
<image src="/images/left.png"></image>
<text class="header_fh">返回</text>
</view>
</van-col>
<van-col span="10">
<view class="header_name">安全管控</view>
</van-col>
</van-row>
</view>
</view> -->
<!-- 左侧账号信息 -->
<!-- <van-popup show="{{ show }}" position="left" custom-style="width: 70%;height:100%;background:#191d28" bind:close="onClose" >
<view class="left_max">
<van-row class="demo clearfix">
<van-col span="10">
<view class="left_head"><image src="http://fileimg.makalu.cc/szgl/9015e824c5004e629049c4f72967cfdc.png"></image></view>
</van-col>
<van-col span="14">
<view class="left_info">
<view class="left_info_name">{{userName}}</view>
<view class="left_info_name">{{loginName}}</view>
</view>
</van-col>
</van-row>
</view>
</van-popup> -->
<view class="max_new_content">
<project-select init="{{initData}}" bindchange="onProjectSelect"></project-select>
<!-- <view class="video_add">
<view class="video_address">
<view class="video_address_min" bindtap="GOMAP">
{{projectName}}
</view>
</view>
</view> -->
<view class="deep_select">
<van-row>
<van-col span="12">
<view class="deep_select_padding">
<deep-select columns="{{DeviceGroupData}}" selectValue="{{sensorTypeName}}" selectIndex="{{sensorTypeIndex}}" placeholder="请选择设备组" bindchange="onDeviceGroupSelect"></deep-select>
</view>
</van-col>
<van-col span="12">
<view class="deep_select_padding">
<deep-select columns="{{DeviceGroupNameData}}" placeholder="请选择设备组名称" bindchange="onDeviceGroupNameSelect"></deep-select>
</view>
</van-col>
</van-row>
</view>
<view class="deep_point_position">
<view class="{{statePosit == 1?'active':''}}" bindtap="onStatePosit" data-state="1">位移(<text>{{shiftCount}}</text></view>
<view class="{{statePosit == 2?'active':''}}" bindtap="onStatePosit" data-state="2">倾斜(<text>{{tiltCount}}</text></view>
<view class="{{statePosit == 3?'active':''}}" bindtap="onStatePosit" data-state="3">应力(<text>{{stressCount}}</text></view>
</view>
<van-sticky offset-top="{{ 78 }}">
<view class="modify_video_nav modify_video_nav_af">
<view class="{{stateNav==1?'active':''}}" bindtap="onStateSelect" data-state="1"><text>报警({{callPoliceCount}})</text></view>
<view class="{{stateNav==2?'active':''}}" bindtap="onStateSelect" data-state="2"><text>预警({{earlyWarningCount}})</text></view>
<view class="{{stateNav==3?'active':''}}" bindtap="onStateSelect" data-state="3"><text>离线({{offlineCount}})</text></view>
<view class="{{stateNav==4?'active':''}}" bindtap="onStateSelect" data-state="4"><text>正常({{normalCount}})</text></view>
</view>
</van-sticky>
<view class="deep_modular_max">
<view class="deep_modular_min" wx:for="{{sensorArray}}" wx:if="{{item.type == 2}}">
<view class="deep_modular_title">
<view class="deep_qingxie">{{item.pointName}}</view>
<select-btn bindchange="onQingxie1" data-deviceId="{{item.deviceId}}"></select-btn>
</view>
<bar-chart chart-id="chart1" wx:if="{{item.displayState}}" chart-data="{{item.lineChart}}"></bar-chart>
<bar-chart chart-id="chart1" wx:if="{{!item.displayState}}" chart-data="{{item.lineChartSum}}"></bar-chart>
</view>
<view class="deep_modular_min" wx:for="{{sensorArray}}" wx:if="{{item.type == 1}}">
<view class="deep_modular_title">
<view class="deep_weiyi">{{item.pointName}}</view>
<select-btn bindchange="onWeiyi1" data-deviceId="{{item.deviceId}}"></select-btn>
</view>
<bar-chart-warning chart-id="chart2" wx:if="{{item.displayState}}" chart-data="{{item.lineChart}}"></bar-chart-warning>
<bar-chart-warning chart-id="chart2" wx:if="{{!item.displayState}}" chart-data="{{item.lineChartSum}}"></bar-chart-warning>
</view>
</view>
</view>
<!-- 底部导航
<van-tabbar active="{{ active }}" bind:change="onChange" active-color="#ffffff" inactive-color="#7d95d6">
<van-tabbar-item bindtap="XMGK" >
<image
slot="icon"
src="/images/footer_5.png"
mode="aspectFit"
style="width:40rpx; height: 40rpx;"
/>
<image
slot="icon-active"
src="/images/foot_5.png"
mode="aspectFit"
style="width:40rpx; height: 40rpx;"
/>
项目概况
</van-tabbar-item>
<van-tabbar-item bindtap="SBGL">
<image
slot="icon"
src="/images/footer_2.png"
mode="aspectFit"
style="width:40rpx; height: 40rpx;"
/>
<image
slot="icon-active"
src="/images/foot_2.png"
mode="aspectFit"
style="width:40rpx; height: 40rpx;"
/>
设备管理
</van-tabbar-item>
<van-tabbar-item bindtap="RYGL">
<image
slot="icon"
src="/images/footer_3.png"
mode="aspectFit"
style="width:40rpx; height: 40rpx;"
/>
<image
slot="icon-active"
src="/images/foot_3.png"
mode="aspectFit"
style="width:40rpx; height: 40rpx;"
/>
人员管理
</van-tabbar-item>
<van-tabbar-item>
<image
slot="icon"
src="/images/footer_7.png"
mode="aspectFit"
style="width:40rpx; height: 40rpx;"
/>
<image
slot="icon-active"
src="/images/foot_7.png"
mode="aspectFit"
style="width:40rpx; height: 40rpx;"
/>
安全管控
</van-tabbar-item>
<van-tabbar-item bindtap="GDGN">
<image
slot="icon"
src="/images/footer_1.png"
mode="aspectFit"
style="width:40rpx; height: 40rpx;"
/>
<image
slot="icon-active"
src="/images/foot_1.png"
mode="aspectFit"
style="width:40rpx; height:40rpx;"
/>
更多功能
</van-tabbar-item>
</van-tabbar> -->
<van-overlay show="{{loadShow}}">
<view class="gif">
<image src="../../images/loding2.gif"></image>
<view>数据加载中!请稍后...</view>
</view>
</van-overlay>

View File

@ -1,8 +0,0 @@
/* pages/deepExcavation/index.wxss */
.van-picker__mask {
background-image: none !important;
}
.van-hairline--top-bottom:after {
border-top: 1px solid #3a4c8b !important;
border-bottom: 1px solid #3a4c8b !important;
}

View File

@ -1,66 +0,0 @@
// pages/hnt-strong/index.js
Page({
/**
* 页面的初始数据
*/
data: {
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {
},
/**
* 生命周期函数--监听页面显示
*/
onShow() {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage() {
}
})

View File

@ -1,2 +0,0 @@
<!--pages/hnt-strong/index.wxml-->
<text>pages/hnt-strong/index.wxml</text>

View File

@ -1,66 +0,0 @@
// pages/learn-page/index.js
Page({
/**
* 页面的初始数据
*/
data: {
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {
},
/**
* 生命周期函数--监听页面显示
*/
onShow() {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage() {
}
})

View File

@ -1,2 +0,0 @@
<!--pages/learn-page/index.wxml-->
<text>pages/learn-page/index.wxml</text>

View File

@ -1,187 +0,0 @@
// pages/measures/index.js
const app = getApp()
Page({
/**
* 页面的初始数据
*/
data: {
// initData: { text: '请选择你的项目', id: 0 }
titleName:"测量台账详情",
szhProjectId:'',
managementNum:'',
ledgerType:'',
measureDevice:{}
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
var that = this
const {q} = options
let urlStr = decodeURIComponent(q);
let subStrUrl = urlStr.substr(urlStr.indexOf("?"),urlStr.length-1)
let params = that.getRequest(subStrUrl)
let ledgerType = params.ledgerType
let projectId = params.projectId
let managementNum = params.managementNum
var titleName = "台账详情"
if(ledgerType == 1) {
titleName = "测量台账详情"
} else {
titleName = "实验台账详情"
}
that.setData({
szhProjectId:projectId,
managementNum:managementNum,
ledgerType:ledgerType,
titleName:titleName
})
that.getMeasureDeviceInfo()
},
/**
* 获取请求地址信息
*/
getRequest(url) {
var theRequest = new Object();
var strs;
if (url.indexOf("?") != -1) {
let str = url.substr(1);
strs = str.split("&");
for (let i = 0; i < strs.length; i++) {
theRequest[strs[i].split("=")[0]] = unescape(strs[i].split("=")[1]);
}
}
return theRequest;
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {
},
/**
* 生命周期函数--监听页面显示
*/
onShow() {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage() {
},
/**
* 关闭
*/
goGCLB() {
//在需要退出小程序的地方调用添加下面代码即可(js文件中)
wx.exitMiniProgram({success: (res) => {
},fail:(res)=>{
console.log(res)
}})
},
/**
* 获取台账信息
*/
getMeasureDeviceInfo() {
var that = this
wx.request({
url: app.globalData.szhUrl+"/system/deviceCheck/selectListByManagementCode",
method:"POST",
data:{
projectId: that.data.szhProjectId,
managementNum:that.data.managementNum,
ledgerType:that.data.ledgerType
},
header: {
'content-type': 'application/x-www-form-urlencoded' //修改此处即可
},
success(res){
if(res.data.code == 0 && res.data.data.length > 0) {
var data = res.data.data[0]
data.checkCertificateUrl = data.checkCertificateUrl != null ?data.checkCertificateUrl.split(","):''
that.setData({
measureDevice:data
})
console.log(that.data.measureDevice)
}
}
})
},
/**
* 打开附件
* @param {url} e
*/
openFile(e) {
console.log(e)
var url = e.currentTarget.dataset.url
wx.downloadFile({
// 示例 url并非真实存在
url: url,
success: function (res) {
const filePath = res.tempFilePath
if(url.indexOf(".png") > 0 || url.indexOf(".jpg") > 0 || url.indexOf(".jpeg") >0|| url.indexOf(".PNG")>0|| url.indexOf(".JPG")> 0) {
wx.previewImage({
urls: [filePath],
success: function (res) {
console.log('打开图片成功')
},
fail:function(res) {
console.log(res)
}
})
} else {
wx.openDocument({
filePath: filePath,
success: function (res) {
console.log('打开文档成功')
},
fail:function(res) {
console.log(res)
}
})
}
}
})
},
})

View File

@ -1,4 +0,0 @@
{
"usingComponents": {},
"navigationStyle":"custom"
}

View File

@ -1,289 +0,0 @@
<!-- 测量页面 -->
<view class="header_title">
<view>
<van-row>
<van-col span="8">
<view class="header_img" bindtap="goGCLB">
<text class="header_fh">关闭</text>
</view>
</van-col>
<van-col span="10">
<view class="header_name">{{titleName}}</view>
</van-col>
</van-row>
</view>
</view>
<view class="max_content">
<!-- 头部筛选 -->
<!-- <view class="content" style="margin-top: 34rpx;">
<project-select init="{{initData}}" bindchange="onProjectSelect"></project-select>
</view> -->
<!-- 数据回显 -->
<view class="outside-content" >
<!-- 每一个数据框 -->
<view class="every-shujubox">
<view class="left-shujubox">
<view class="leftStyle">
*
</view>
<view>
归属项目:
</view>
</view>
<view class="right-shujubox">{{measureDevice.projectName}}</view>
</view>
<view class="every-shujubox">
<view class="left-shujubox">
<view class="leftStyle">
*
</view>
<view>
仪器名称:
</view>
</view>
<view class="right-shujubox">{{measureDevice.deviceName}}</view>
</view>
<view class="every-shujubox">
<view class="left-shujubox">
<view class="leftStyle">
*
</view>
<view>
使用状态:
</view>
</view>
<view class="right-shujubox">{{measureDevice.useStateName}}</view>
</view>
<view class="every-shujubox">
<view class="left-shujubox">
<view class="leftStyle">
*
</view>
<view>
管理编号:
</view>
</view>
<view class="right-shujubox">{{measureDevice.managementNum}}</view>
</view>
<view class="every-shujubox">
<view class="left-shujubox">
<!-- <view class="leftStyle">
*
</view> -->
<view>
规则型号:
</view>
</view>
<view class="right-shujubox">{{measureDevice.deviceCode}}</view>
</view>
<view class="every-shujubox">
<view class="left-shujubox">
<!-- <view class="leftStyle">
*
</view> -->
<view>
购买日期:
</view>
</view>
<view class="right-shujubox">{{measureDevice.purchaseDate == null ?'':measureDevice.purchaseDate}}</view>
</view>
<view class="every-shujubox">
<view class="left-shujubox">
<view class="leftStyle">
*
</view>
<view>
原值:
</view>
</view>
<view class="right-shujubox">{{measureDevice.originalValue}}</view>
</view>
<view class="every-shujubox">
<view class="left-shujubox">
<view class="leftStyle">
*
</view>
<view>
净值:
</view>
</view>
<view class="right-shujubox">{{measureDevice.netValue}}</view>
</view>
<view class="every-shujubox">
<view class="left-shujubox">
<!-- <view class="leftStyle">
*
</view> -->
<view>
附属设备:
</view>
</view>
<view class="right-shujubox">{{measureDevice.accessoryDevice}}</view>
</view>
<view class="every-shujubox">
<view class="left-shujubox">
<!-- <view class="leftStyle">
*
</view> -->
<view>
标称精度:
</view>
</view>
<view class="right-shujubox">{{measureDevice.nominalAccuracy}}</view>
</view>
<view class="every-shujubox">
<view class="left-shujubox">
<!-- <view class="leftStyle">
*
</view> -->
<view>
生产厂家:
</view>
</view>
<view class="right-shujubox">{{measureDevice.deviceCom}}</view>
</view>
<view class="every-shujubox">
<view class="left-shujubox">
<!-- <view class="leftStyle">
*
</view> -->
<view>
出厂编号:
</view>
</view>
<view class="right-shujubox">{{measureDevice.deviceNum}}</view>
</view>
<view class="every-shujubox">
<view class="left-shujubox">
<view class="leftStyle">
*
</view>
<view>
检定日期:
</view>
</view>
<view class="right-shujubox">{{measureDevice.checkDate != null ?measureDevice.checkDate:''}}</view>
</view>
<view class="every-shujubox">
<view class="left-shujubox">
<view class="leftStyle">
*
</view>
<view>
检定周期(月)
</view>
</view>
<view class="right-shujubox">{{measureDevice.cycleNum}}</view>
</view>
<view class="every-shujubox">
<view class="left-shujubox">
<view class="leftStyle">
*
</view>
<view>
检定有效截至日期:
</view>
</view>
<view class="right-shujubox">{{measureDevice.checkDeadline != null ? measureDevice.checkDeadline:''}}</view>
</view>
<view class="every-shujubox">
<view class="left-shujubox">
<view class="leftStyle">
*
</view>
<view>
检定有效期:
</view>
</view>
<view class="right-shujubox">{{measureDevice.endDate != null?measureDevice.endDate:''}}</view>
</view>
<view class="every-shujubox">
<view class="left-shujubox">
<view class="leftStyle">
*
</view>
<view>
检定单位:
</view>
</view>
<view class="right-shujubox">{{measureDevice.checkCom}}</view>
</view>
<view class="every-shujubox">
<view class="left-shujubox">
<view class="leftStyle">
*
</view>
<view>
检定结论:
</view>
</view>
<view class="right-shujubox">{{measureDevice.finalText}}</view>
</view>
<view class="every-shujubox">
<view class="left-shujubox">
<view class="leftStyle">
*
</view>
<view>
检定证书编号:
</view>
</view>
<view class="right-shujubox">{{measureDevice.checkCertificateNum}}</view>
</view>
<view style="justify-content: space-between;display: flex;align-items: center;">
<view class="left-shujubox" >
<view class="leftStyle">
*
</view>
<view>
检定证书文件上传(PDF/图片)
</view>
</view>
<view style="width: 400rpx;">
<view wx:for="{{measureDevice.checkCertificateUrl}}">
<image wx:if="{{item != ''}}" bindtap='openFile' style="width:180rpx;height:180rpx" src="https://fileimg.makalu.cc/0acc72bd-497f-4c23-af34-d7beb8ebd580/档案-01.png" data-url='{{item}}'></image>
</view>
<!-- <file-uploader fileUrlArray="{{measureDevice.checkCertificateUrl}}"></file-uploader> -->
</view>
</view>
<view class="every-shujubox">
<view class="left-shujubox">
<!-- <view class="leftStyle">
*
</view> -->
<view>
使用单位:
</view>
</view>
<view class="right-shujubox">{{measureDevice.userCom}}</view>
</view>
<view class="every-shujubox">
<view class="left-shujubox">
<!-- <view class="leftStyle">
*
</view> -->
<view>
是否可调拨:
</view>
</view>
<view class="right-shujubox">{{measureDevice.transfer}}</view>
</view>
<view class="every-shujubox">
<view class="left-shujubox">
<!-- <view class="leftStyle">
*
</view> -->
<view>
备注:
</view>
</view>
<view class="right-shujubox">{{measureDevice.context}}</view>
</view>
<view class="switch_button">
<button class="switch_button_down" bindtap="goGCLB">关闭</button>
</view>
</view>
</view>

View File

@ -1,45 +0,0 @@
/* 测量仪器 */
.outside-content{
margin-top: 70rpx;
padding: 0 30rpx;
}
.every-shujubox{
margin: 30rpx 0;
display: flex;
justify-content: space-between;
align-items: center;
height: 80rpx;
}
.left-shujubox{
display: flex;
/* justify-content: flex-end; */
justify-content: center;
align-items: center;
width: 260rpx;
height: 80rpx;
color: #728ce3
}
.leftStyle{
color: red;
}
.right-shujubox{
display: flex;
justify-content: center;
align-items: center;
width: 400rpx;
height: 80rpx;
/* line-height: 80rpx; */
border-bottom: 1px solid #728ce3;
color: #728ce3;
text-align: center;
}
.right-file{
/* height: 184rpx;
width: 184rpx; */
border: 1px solid #fff;
margin-left: 46rpx;
border-radius: 12rpx;
text-align: center;
line-height: 180rpx;
font-size: 120rpx;
}

View File

@ -1,66 +0,0 @@
// pages/measures/index.js
Page({
/**
* 页面的初始数据
*/
data: {
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {
},
/**
* 生命周期函数--监听页面显示
*/
onShow() {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage() {
}
})

View File

@ -1,2 +0,0 @@
<!--pages/measures/index.wxml-->
<text>pages/measures/index.wxml</text>

View File

@ -1,201 +0,0 @@
// pages/newAddPage/letterCommitment/index.js
const app = getApp()
Page({
/**
* 页面的初始数据
*/
data: {
safetyQualityRich:'<p style="line-height: 1.5;"><br></p><h4 style="text-align: center; line-height: 1.5;"></h4><h4 style="text-align: center; line-height: 1.5;">安全质量承诺书</h4><p style="line-height: 1.5;"> </p><p style="text-indent: 2em; line-height: 1.5;">为了个人的安全健康,为了家庭的幸福美满,为了企业的稳定发展,本人在工作中,自愿签订并遵守以下承诺:</p><p style="text-indent: 2em; line-height: 1.5;"><br></p><p style="text-indent: 2em; line-height: 1.5;">忠诚企业、恪尽职守、珍爱生命、铸造精品!</p><p style="text-indent: 2em; line-height: 1.5;"><br></p><p style="text-indent: 2em; line-height: 1.5;">我坚决做到:遵守规章制度、遵守操作规程、遵守劳动纪律,不出事故、不出次品、不留隐患!我将以实际行动,确保企业生产安全、产品优质!”</p><p style="text-indent: 2em; line-height: 1.5;"><br></p><p style="text-indent: 2em; line-height: 1.5;">对于以上承诺,本人自觉遵守,如有违反,本人愿承担责任。 </p><p style="text-indent: 2em; line-height: 1.5;"><br></p><p style="text-indent: 2em; line-height: 1.5;">本承诺书自签字日起生效。 </p><p style="text-indent: 36pt; line-height: 1.5;"><br></p><p style="line-height: 1.5;"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;承诺人(签字)</p><p style="line-height: 1.5;"><br></p><p style="line-height: 1.5;"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;岗 位(工种)</p><p style="line-height: 1.5;"><br></p><p style="line-height: 1.5;"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;日 &nbsp;期: &nbsp; &nbsp;年 &nbsp; &nbsp;月 &nbsp; &nbsp;日 </p><p><br></p>',
healthRich:'<p style="line-height: 1.5;"><br></p><h4 style="text-align: center; line-height: 1.5;">健康承诺书</h4><p style="line-height: 1.5;"> </p><p style="text-indent: 2em; line-height: 1.5;">本人:<u> &nbsp; &nbsp; &nbsp; &nbsp;</u>,性别:<u> &nbsp; &nbsp;</u>,年龄: <u> &nbsp; &nbsp;</u>岁、身份证号码:<u> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </u>,从事岗位:<u> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </u>,无 □ / 有 □ 高血压、心脏病等基础身体健康问题;无 □ / 有 □ 严重呼吸系统疾病、严重心脑血管疾病、肝肾疾病、恶性肿瘤以及药物无法有效控制的高血压和糖尿病等基础性病症状征兆,能够胜任本岗位相应工作,我向公司承诺以上所述信息无隐瞒、无虚报,如有隐瞒造成所有后果由本人承担,于项目无关。</p><p style="line-height: 1.5;"> </p><p style="line-height: 1.5;"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;承诺人(按手印):</p><p style="line-height: 1.5;"><br></p><p style="line-height: 1.5;"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;承诺日期: &nbsp; &nbsp;年 &nbsp; 月 &nbsp; 日</p><p style="line-height: 1.5;"><br></p><p style="line-height: 1.5;"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;日 &nbsp;期: &nbsp; &nbsp;年 &nbsp; &nbsp;月 &nbsp; &nbsp;日 </p><p><br></p>',
workerRich:'<p style="text-indent: 2em; line-height: 1.5;"><br></p><h1 style="text-indent: 2em; text-align: center; line-height: 1.5;"></h1><h4 style="text-align: center; line-height: 1.5;">作业工人安全生产责任书</h4><p style="line-height: 1.5;"><br></p><p style="text-indent: 2em; line-height: 1.5;">(一)作业工人对自己施工中的安全负责。</p><p style="text-indent: 2em; line-height: 1.5;"><br></p><p style="text-indent: 2em; line-height: 1.5;">(二)作业工人应严格执行劳动纪律和现场安全生产管理制度,严格执行安全操作规程和安全技术交底,做到“四不伤害”即:我不伤害自己,我不伤害别人,我不被别人伤害。</p><p style="text-indent: 2em; line-height: 1.5;"><br></p><p style="text-indent: 2em; line-height: 1.5;">(三)拒绝强令冒险作业。发现隐患及防护设施缺陷应及时向安全管理人员报告。</p><p style="text-indent: 2em; line-height: 1.5;"><br></p><p style="text-indent: 2em; line-height: 1.5;">(四)正确使用和穿戴安全防护用品,自觉维护现场安全防护设施,未经批准不得随意移动拆除防护设施。</p><p style="text-indent: 2em; line-height: 1.5;"><br></p><p style="text-indent: 2em; line-height: 1.5;">(五)发生事故应及时报告现场管理人员,并在项目负责人的指挥下积极配合施救。</p><p style="text-indent: 2em; line-height: 1.5;"><br></p><p style="text-indent: 2em; line-height: 1.5;">(六)严格遵守本单位的安全生产规章制度和操作规程,服从管理,正确佩戴和使用劳动防护用品。</p><p style="text-indent: 2em; line-height: 1.5;"><br></p><p style="text-indent: 2em; line-height: 1.5;">(七)接受安全生产教育和培训,掌握本职工作所需的安全生产知识,提高安全生产技能,增强事故预防和应急处理能力。从业人员发现事故隐患或者其他不安全因素,应当立即向现场安全生产管理人员或者本单位负责人报告;接到报告的人员应当及时予以处理。</p><p style="text-indent: 2em; line-height: 1.5;"><br></p><p style="line-height: 1.5;"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;承诺人(按手印):</p><p style="line-height: 1.5;"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </p><p style="line-height: 1.5;"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;承诺日期: &nbsp; &nbsp;年 &nbsp; 月 &nbsp; 日</p><p><br></p>',
protectiveEquipmentRich:'<p style="text-align: center; line-height: 1.5;"><br></p><h4 style="text-align: center; line-height: 1.5;"><strong>安全防护用品使用图解</strong></h4><h3 style="text-align: center; line-height: 1.5;"> </h3><p style="text-align: center; line-height: 1.5;">进入施工现场必须根据要求按照下图要求佩戴好相应安全防护用品。</p><p style="text-indent: 2em; text-align: center; line-height: 1.5;"><br></p><p style="text-align: center; line-height: 1.5;"><br></p><p style="text-align: center; line-height: 1.5;"><img src="http://fileimg.makalu.cc/WEB_33F25A7600DB4909A0B9B6098CB19054.png" style="width:90%;"/></p><p style="text-align: center; line-height: 1.5;"><br></p><p style="text-align: center; line-height: 1.5;">本人已经掌握安全防护用品佩戴方法,并严格遵守!</p><p style="text-align: center; line-height: 1.5;"><br></p><p style="text-align: left; line-height: 1.5;"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;签字:</p><p style="text-align: left; line-height: 1.5;"><br></p><p style="text-align: left; line-height: 1.5;"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;日期: &nbsp; &nbsp; &nbsp; 年 &nbsp; &nbsp; 月 &nbsp; &nbsp; &nbsp;日 &nbsp; &nbsp; &nbsp; </p><p style="text-align: left; line-height: 1.5;"> &nbsp; &nbsp; &nbsp; &nbsp; </p>',
workerPostRich:'<p style="text-indent: 2em; text-align: left; line-height: 1.5;"><br></p><p style="text-align: center; line-height: 1.5;"><strong>作业人员岗位告知书</strong></p><p style="text-indent: 2em; text-align: left; line-height: 1.5;"> </p><p style="text-indent: 2em; text-align: left; line-height: 1.5;"> &nbsp;你将从事的普工作业,存在着车辆伤害、机械伤害、坠落、物体打击、触电等岗位危险,予以告知。你在作业时务必遵守相关的规章制度、专项工程安全施工方案、安全技术措施,并熟记作业要点及其特性,掌握好相应的安全防范技能;进入作业场所后,要进行重新检查,发现异常情况和不安全因素必须及时采取有效措施排除;要正确使用和佩戴劳动保护用品,在做好自我防范的同时,还要认真贯彻联保互保。同时对以下针对性措施必须经常对照执行:</p><p style="text-indent: 2em; text-align: left; line-height: 1.5;"><br></p><p style="text-indent: 2em; line-height: 1.5;">1、在道路上工作时密切注意来往车辆做到“一看二停三通过”不抢一分一秒保证自己不被车辆伤害。</p><p style="text-indent: 2em; line-height: 1.5;"><br></p><p style="text-indent: 2em; line-height: 1.5;">2、从事开挖作业时先观察好周边情况和环境在最坏的情况能够不伤及自身和他人的情况下再作业。</p><p style="text-indent: 2em; line-height: 1.5;"><br></p><p style="text-indent: 2em; line-height: 1.5;">3、从事搬运石块等工作时要严格注意身边的人在呼喊并应答、引起对方注意并退让到安全地带后才可以工作。同时要积极注意自身安全不搬运过重的石块经常检查铁锹、榔头、扁担等工具一有损坏立即更换或修复。</p><p style="text-indent: 2em; line-height: 1.5;"><br></p><p style="text-indent: 2em; line-height: 1.5;">4、在电力线底下、光缆附近施工时必须严格按照安全技术交底时刻提高警惕保护好电力电线、国防光缆。</p><p style="text-indent: 2em; line-height: 1.5;"><br></p><p style="text-indent: 2em; line-height: 1.5;">5、严禁在河流、池塘等地游泳、洗澡由此引发的后果由你承担。</p><p style="text-indent: 2em; line-height: 1.5;"><br></p><p style="text-indent: 2em; line-height: 1.5;">6、做好防火、防盗工作保护好自己的财物。</p><p style="text-indent: 2em; line-height: 1.5;"><br></p><p style="text-indent: 2em; line-height: 1.5;">7、工作时必须佩戴好劳动防护用品带好安全帽并系好下额带。</p><p style="text-indent: 2em; line-height: 1.5;"><br></p><p style="text-indent: 2em; line-height: 1.5;">8、密切注意工程施工机械在挖掘机、压路机、推土机等机械附近施工时必须面向机械并及时避让确保安全。严禁在压路机等机械下休息严禁在施工现场打闹、追逐。</p><p style="text-indent: 2em; line-height: 1.5;"><br></p><p style="text-indent: 2em; line-height: 1.5;">9、工作时听从班组长统一指挥严格遵守劳动纪律、三级安全教育及安全交底内容。</p><p style="text-indent: 2em; line-height: 1.5;"><br></p><p style="line-height: 1.5;"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;被告知者签字(指印)</p><p style="line-height: 1.5;"><br></p><p style="line-height: 1.5;"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 日期: &nbsp; &nbsp; &nbsp;年 &nbsp; &nbsp; &nbsp;月 &nbsp; &nbsp; &nbsp;日</p><p style="text-indent: 2em; text-align: left; line-height: 1.5;"> &nbsp; &nbsp; &nbsp; &nbsp; </p>',
show:true,
radio1:'',
radio2:'',
signImgUrl:'',
token: '',
},
onChange1(event) {
this.setData({
radio1: event.detail,
});
},
onChange2(event) {
this.setData({
radio2: event.detail,
});
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
this.getQiniupToken();
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {
},
/**
* 生命周期函数--监听页面显示
*/
onShow() {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage() {
},
/**
* 获取七牛云token
*/
getQiniupToken() {
var that = this
wx.request({
url: app.globalData.szhUrl+'/mkl/api/getToken',
method:"GET",
success:function(res){
that.setData({
token: res.data,
});
}
})
},
/**
* 确认签名
*/
sign(e){
let tempFilePath = e.detail
//上传签名图片
this.uploadToQiniu(tempFilePath)
  },
/**
* 重置
*/
reset(){
this.setData({
radio1:'',
radio2:''
})
},
/**
* 提交签名信息并生成承诺书
*/
submit(){
var that = this
if(this.data.radio1 == ''){
app.toast("请选择是否有高血压、心脏病等基础身体健康问题");
return;
}
if(this.data.radio2 == ''){
app.toast("请选择是否有严重呼吸系统疾病、严重心脑血管疾病、肝肾疾病、恶性肿瘤以及药物无法有效控制的高血压和糖尿病等基础性病症状征兆");
return;
}
if(this.data.signImgUrl == ''){
app.toast("请点击签名!");
return;
}
wx.showLoading({
title: '正在提交。。。',
mask: true,
})
wx.request({
header: {
'content-type': 'application/x-www-form-urlencoded'
},
url:app.globalData.szhUrl+'/mkl/api/generateSafetyLetterOfCommitment',
data:{
"openId": wx.getStorageSync('userOpenId'),
"idCardNo": wx.getStorageSync('idCardNo'),
"radio1":this.data.radio1,
"radio2":this.data.radio2,
"signImgUrl":this.data.signImgUrl,
},
method:"POST",
success:function(res){
if(res.data.code == '200'){
that.setData({
show:false
})
wx.hideLoading({});
app.toast("温馨提醒:你的个人信息和培训考试结果已成功提交至项目审核,审核通过后可通过人脸识别闸机进场。");
return;
}else{
app.toast(res.data.msg);
return;
}
}
})
},
/**
* 上传图片
*/
uploadToQiniu(url) { //图片直接上传到七牛云,获取七牛云链接
var that = this;
wx.uploadFile({
url: 'https://upload.qiniup.com',
name: 'file',
filePath: url,
header: {
"Content-Type": "multipart/form-data"
},
formData: {
token: that.data.token,
},
success: function (res) {
let data = JSON.parse(res.data);
that.setData({
signImgUrl: 'https://fileimg.makalu.cc/' + data.key
})
},
fail: function (res) {
console.log(res)
}
});
},
})

View File

@ -1,4 +0,0 @@
{
"usingComponents": {},
"navigationBarTitleText": "承诺书签名"
}

View File

@ -1,251 +0,0 @@
<!--pages/newAddPage/letterCommitment/index.wxml-->
<view>
<view class="cns_rich_content">
<view class="cns_rich_text">
<rich-text nodes="{{safetyQualityRich}}" space="nbsp" user-select="true"></rich-text>
</view>
</view>
<view class="cns_rich_content">
<view class="cns_rich_text">
<rich-text nodes="{{healthRich}}" space="nbsp" user-select="true"></rich-text>
</view>
</view>
<view class="cns_rich_content">
<view class="cns_rich_text">
<rich-text nodes="{{workerRich}}" space="nbsp" user-select="true"></rich-text>
</view>
</view>
<view class="cns_rich_content">
<view class="cns_rich_text">
<rich-text nodes="{{protectiveEquipmentRich}}" space="nbsp" user-select="true"></rich-text>
</view>
</view>
<view class="cns_rich_content">
<view class="cns_rich_text">
<rich-text nodes="{{workerPostRich}}" space="nbsp" user-select="true"></rich-text>
</view>
</view>
<!-- 表格填充 -->
<view class="cns_rich_content" >
<view class="cns_rich_text">
<view style="text-align:center;">三级安全教育登记表</view>
<view style="text-align: left;">工程名称:</view>
<view style="border: 1px solid #fff;position: relative;" >
<!-- 身份证复印件 -->
<view class="identity">
身份证复印件粘贴处
</view>
<view class="oneBox-style">
<view class="tableStyle" >
<view class="leftBox">姓名</view>
<input type="text" class="rightBox"/>
</view>
<!-- <view class="tableStyle">
<view class="leftBox" >文化程度</view>
<input type="text" class="rightBox"/>
</view> -->
<!-- <view class="">身份证复印件粘贴处</view> -->
</view>
<view class="oneBox-style">
<!-- <view class="tableStyle" >
<view class="leftBox">姓名</view>
<input type="text" class="rightBox"/>
</view> -->
<view class="tableStyle">
<view class="leftBox" >文化程度</view>
<input type="text" class="rightBox"/>
</view>
<!-- <view class="">身份证复印件粘贴处</view> -->
</view>
<view class="oneBox-style">
<view class="tableStyle" >
<view class="leftBox">班组</view>
<input type="text" class="rightBox"/>
</view>
<!-- <view class="">身份证复印件粘贴处</view> -->
</view>
<view class="oneBox-style">
<view class="tableStyle" >
<view class="leftBox">入场日期</view>
<input type="text" class="rightBox"/>
</view>
<!-- <view class="">身份证复印件粘贴处</view> -->
</view>
<view class="oneBox-style">
<view class="tableStyle" >
<view class="leftBox">工作卡号</view>
<input type="text" class="rightBox"/>
</view>
<!-- <view class="">身份证复印件粘贴处</view> -->
</view>
<view class="oneBox-style">
<view class="tableStyle" >
<view class="leftBox" style="width:100%">三级安全教育内容</view>
</view>
<!-- <view class="">身份证复印件粘贴处</view> -->
</view>
<!-- 公司教育 -->
<view class="gongsi-action">
<view class="gongsi-jiaoyu">
公司教育
</view>
<view class="gongsi-content">
<view> 进行安全基本知识、法规、法制教育,主要内容是:</view>
<view>1、党和国家的安全生产方针、政策</view>
<view>2、安全生产法规、标准和安全知识</view>
<view>3、企业安全生产规章制度、安全纪律</view>
<view>4、安全生产形势及重大事故安全教训</view>
<view>5、安全生产事故后如何抢救伤员、排险、保护现场和及时进行报告</view>
</view>
<view class="jiaoyuBox">
<view class="top-jiaoyu">
<view class="top-jiaoyutext">
教育人签字:
</view>
<view class="top-jiaoyutext">
受教育人签名:
</view>
</view>
<view>
累计培训()小时
</view>
</view>
</view>
<!-- 项目部教育 -->
<view class="gongsi-action">
<view class="gongsi-jiaoyu">
公司教育
</view>
<view class="gongsi-content">
<view> 进行安全基本知识、法规、法制教育,主要内容是:</view>
<view>1、党和国家的安全生产方针、政策</view>
<view>2、安全生产法规、标准和安全知识</view>
<view>3、企业安全生产规章制度、安全纪律</view>
<view>4、安全生产形势及重大事故安全教训</view>
<view>5、安全生产事故后如何抢救伤员、排险、保护现场和及时进行报告</view>
</view>
<view class="jiaoyuBox">
<view class="top-jiaoyu">
<view class="top-jiaoyutext">
教育人签字:
</view>
<view class="top-jiaoyutext">
受教育人签名:
</view>
</view>
<view>
累计培训()小时
</view>
</view>
</view>
<!-- <view>
<view >
项目部教育
</view>
<view >
进行现场规章制度和遵章守纪教育,主要内容是:
1、本项目施工特点、可能存在的不安全因素及必须遵守的事项
2、本单位(包括施工、生产现场)安全生产制度、规定和安全注意事项
3、本工种的安全技术操作规程
4、高处作业、机械设备、电气安全基础知识
5、防火、防毒、防尘、防爆知识及紧急情况安全处置和安全疏散知
6、雨季防雷、防台、防汛及特殊气候的相关安全知
7、防护用品发放标准及防护用品、用具使用的基本知识
8、学习JGJ146-2004建筑施工现场环境与卫生标准
</view>
<view style="vertical-align: top;">
教育人签字:
</view>
<view style="vertical-align: top;">
受教育人签名:
</view>
</view>
<view>
<view rowspan="2" class="center">
<view>班组教育</view>
</view>
<view rowspan="2" colspan="3">
进行本工种岗位安全操作及安全制度、纪律教育,主要内容是:
1、本班组作业特点及安全操作规程
2、本班组安全活动制度及纪律
3、正确使用安全防护装置(设施)及个人劳动防护用品
4、本岗位易发生事故的不安全因素及其防范对策本工种事故案例剖析
5、本岗位的作业环境及使用的机械设备、工具的安全要求
</view>
<view style="vertical-align: top;">
教育人签字:
</view>
<view style="vertical-align: top;">
受教育人签名:
</view>
</view> -->
<view class="gongsi-action">
<view class="gongsi-jiaoyu">
公司教育
</view>
<view class="gongsi-content">
<view> 进行现场规章制度和遵章守纪教育,主要内容是:</view>
<view>1、党和国家的安全生产方针、政策</view>
<view>2、安全生产法规、标准和安全知识</view>
<view>3、企业安全生产规章制度、安全纪律</view>
<view>4、安全生产形势及重大事故安全教训</view>
<view>5、安全生产事故后如何抢救伤员、排险、保护现场和及时进行报告</view>
</view>
<view class="jiaoyuBox">
<view class="top-jiaoyu">
<view class="top-jiaoyutext">
教育人签字:
</view>
<view class="top-jiaoyutext">
受教育人签名:
</view>
</view>
<view>
累计培训()小时
</view>
</view>
</view>
</view>
</view>
</view>
<view class="cns_confirm">
<view class="cns_confirm_text">
<view class="cns_confirm_text_title">1、高血压、心脏病等基础身体健康问题。</view>
<view>
<van-radio-group value="{{ radio1 }}" bind:change="onChange1"
direction="{{horizontal}}" style="display: flex; padding:20rpx 0">
<van-radio name="1" shape="square" custom-class="radio_custom_class" label-class="radio_label_class">无</van-radio>
<van-radio name="2" shape="square" custom-class="radio_custom_class" label-class="radio_label_class">有</van-radio>
</van-radio-group>
</view>
</view>
<view class="cns_confirm_text">
<view class="cns_confirm_text_title">2、严重呼吸系统疾病、严重心脑血管疾病、肝肾疾病、恶性肿瘤以及药物无法有效控制的高血压和糖尿病等基础性病症状征兆。</view>
<view>
<van-radio-group value="{{ radio2 }}" bind:change="onChange2"
direction="{{horizontal}}" style="display: flex; padding:20rpx 0">
<van-radio name="1" shape="square" custom-class="radio_custom_class" label-class="radio_label_class">无</van-radio>
<van-radio name="2" shape="square" custom-class="radio_custom_class" label-class="radio_label_class">有</van-radio>
</van-radio-group>
</view>
</view>
<view class="cns_confirm_text">
<view class="cns_confirm_text_title">3、签名</view>
<view class="cns_confirm_sign">
<sign bind:returnData="sign" canvas-id="canvas"></sign>
</view>
</view>
<view class="switch_button" wx:if="{{show}}">
<button class="switch_button_up" bindtap="reset">重置</button>
<button class="switch_button_to" bindtap="submit">提交</button>
</view>
</view>
</view>

View File

@ -1,71 +0,0 @@
/* pages/newAddPage/letterCommitment/index.wxss */
.radio_custom_class{
padding: 10rpx 100rpx 10rpx 0;
}
.radio_label_class{
color: #ffffff !important;
}
.tableStyle{
display: flex;
justify-content: space-between;
align-items: center;
width: 50%;
}
.leftBox{
padding: 12rpx 30rpx;
border: 1px solid #fff;
width: 184rpx;
text-align: center;
}
.rightBox{
width: 110rpx;
padding: 10rpx;
/* box-sizing: border-box; */
border: 1px solid #fff;
}
.oneBox-style{
display: flex;
}
.identity{
position: absolute;
top: 0px;
right: 0px;
width: 50%;
height: 408rpx;
line-height: 408rpx;
text-align: center;
border: 1px solid #fff;
}
.gongsi-action{
display: flex;
align-items: center;
border: 1px solid #fff;
font-size: 10px;
}
.gongsi-jiaoyu{
writing-mode: vertical-lr;
-webkit-writing-mode: vertical-lr;
-ms-writing-mode: vertical-lr;
font-size: 12px;
}
.gongsi-content{
width: 60%;
border-left: 1px solid #fff;
border-right: 1px solid #fff;
}
.top-jiaoyu{
width: 100%;
display: flex;
justify-content: space-between;
}
.top-jiaoyutext{
font-size: 6px;
}
.jiaoyuBox{
width: 208rpx;
display: flex;
flex-direction: column;
justify-content: space-between;
align-items: center;
height: 228rpx;
}

View File

@ -1,613 +0,0 @@
// pages/newAddPage/safetyBriefingLearning/index.js
const app = getApp()
Page({
/**
* 页面的初始数据
*/
data: {
//所有三级安全教育视频
allVideo:{},
// 声明一个数组,里面放着要展示的视频链接
videoList:[],
formatanswer:'',
second:0,
second_state:true,
timer:'',
index:0,
answer:false,
up:false,
down:false,
to:false,
questionsData:[],
//单独视频url
videoUrl:'',
videoObj:{},
//学习时长
learnTime:1,
watchTimer:'',
openId:'',
activeState:1,
//答案提示
answerTip:'',
//考试分数
fullScore:'',
examPaperId:'',
//控制视频时长
companyTimer:'',
companyTime:0,
projectTimer:'',
projectTime:0,
groupTimer:'',
groupTime:0,
//试题显示标识
paperFlag:false
},
trainingTypeJump(e){
var that = this
// this.onClickShow();
let index = e.currentTarget.dataset.index;
var videoList = []
let titleName = '';
switch(index) {
case '1':
titleName = '公司级';
videoList = that.data.allVideo.companyList
break;
case '2':
if(that.data.companyTime < 30) {
app.toast("温馨提示:当前视频学习完成后,方可进行下一个视频学习。");
return;
} else {
if( that.data.projectTime <30) {
var projectTimer = setInterval(() => {
var projectTime = that.data.projectTime;
if(projectTime >= 0 && projectTime <= 29){
this.setData({
projectTime:parseInt(projectTime) + 1,
projectTimer:projectTimer
})
}else{
clearInterval(this.data.projectTimer);
}
}, 1000);
}
}
titleName = '项目级';
videoList = that.data.allVideo.projectList
break;
case '3':
if(that.data.companyTime < 30 || that.data.projectTime < 30) {
app.toast("温馨提示:当前视频学习完成后,方可进行下一个视频学习。");
return;
} else {
if(that.data.groupTime < 30) {
var groupTimer = setInterval(() => {
var groupTime = that.data.groupTime;
if(groupTime >= 0 && groupTime <= 29){
this.setData({
groupTime:parseInt(groupTime) + 1,
groupTimer:groupTimer
})
}else{
clearInterval(this.data.groupTimer);
that.setData({
paperFlag:true
})
}
}, 1000);
}
}
titleName = '班组级';
videoList = that.data.allVideo.groupList
break;
default:
videoList = []
break
}
this.setData({
titleName:titleName,
activeState:index,
videoList:videoList,
pageNo:1,
type:1,
trainingType:index,
startDate:'',
endDate:'',
collaborateRanksId:''
});
console.log(videoList)
// this.getTrainingList();
// this.getTrainingNumberOfPeopleCount();
},
//打开视频
bindplay_click(){
var timer = setInterval(() => {
var second = this.data.second
if(second == parseInt(this.data.videoObj.effectiveDuration)) {
this.addUserRecord()
}
if(second > 0){
this.setData({
second:second - 1,
timer:timer
})
}
else{
clearInterval(this.data.timer);
this.setData({
second_state:false,
})
}
}, 1000);
var watchTimer = setInterval(() => {
var learnTime = this.data.learnTime;
if(learnTime >= 0){
this.setData({
learnTime:parseInt(learnTime) + 1,
watchTimer:watchTimer
})
}else{
clearInterval(this.data.watchTimer);
}
}, 1000);
},
//暂停视频
bindpause_click(){
if(this.data.second > 0){
clearInterval(this.data.timer);
}
if(this.data.learnTime > 0) {
clearInterval(this.data.watchTimer);
}
},
// 点击查看详情
chakanBtn(e){
var data = this.data.questionsData
var i = this.data.index
data[i].type=true
var tempList = data[i].answer_list
var str = ''
for(var j =0;j <tempList.length;j++) {
if(data[i].correct_answer == tempList[j].letter) {
str = tempList[j].answer;
break;
}
}
this.setData({
questionsData:data,
answerTip:str
})
},
//选择答案
chooseAnswer(e){
var data = this.data.questionsData
var i = this.data.index
var j = e.currentTarget.dataset.j
var item =e.currentTarget.dataset.item
console.log(item);
if(data[i].topic_state == false){
data[i].type = true
for(var z = 0;z<data[i].answer_list.length;z++){
data[i].answer_list[z].answer_state = false
}
data[i].answer_list[j].answer_state = true
if(data[i].correct_answer == item.letter){
data[i].topic_state = true
if(i < data.length-1){
this.setData({
index:i+1
})
}
if(data.length == 1){
this.setData({
to:true,
})
}
}
var tempList = data[i].answer_list
var str = ''
for(var j =0;j <tempList.length;j++) {
if(data[i].correct_answer == tempList[j].letter) {
str = tempList[j].answer;
break;
}
}
this.setData({
questionsData:data,
answerTip:str
})
if(this.data.index > 0 ){
this.setData({
up:true,
})
if(this.data.questionsData.length - 1 == this.data.index && this.data.questionsData[this.data.index].topic_state == true){
this.setData({
to:true,
})
}
}
}
},
//点击上一题
onClickUp(){
var that = this
this.setData({
index:this.data.index - 1
})
if(that.data.index == 0){
that.setData({
up:false,
down:true
})
}else{
if(that.data.questionsData[that.data.index].topic_state == false){
that.setData({
up:true,
down:false,
to:false
})
}else{
that.setData({
up:true,
down:true,
to:false
})
}
}
var data = this.data.questionsData
var i = this.data.index
var tempList = data[i].answer_list
var str = ''
for(var j =0;j <tempList.length;j++) {
if(data[i].correct_answer == tempList[j].letter) {
str = tempList[j].answer;
break;
}
}
this.setData({
answerTip:str
})
},
//点击下一题
onClickDown(){
this.setData({
index:this.data.index + 1
})
if(this.data.index == this.data.questionsData.length-1 ){
if(this.data.questionsData[this.data.index].topic_state == false){
this.setData({
up:true,
down:false,
to:false
})
}else{
this.setData({
up:true,
down:false,
to:true
})
}
}else{
if(this.data.questionsData[this.data.index].topic_state == false){
this.setData({
up:true,
down:false,
to:false
})
}else{
this.setData({
up:true,
down:true,
to:false
})
}
}
var data = this.data.questionsData
var i = this.data.index
var tempList = data[i].answer_list
var str = ''
for(var j =0;j <tempList.length;j++) {
if(data[i].correct_answer == tempList[j].letter) {
str = tempList[j].answer;
break;
}
}
this.setData({
answerTip:str
})
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
var that = this;
that.setData({
openId:wx.getStorageSync('userOenId')
})
//获取视频链接
that.getVideoURL(options.projectId,options.firstWorkType,options.secondWorkType)
//获取在线答题题目信息
that.getOnlineExamList(1,options.projectId,options.firstWorkType,options.secondWorkType);
// 拿取video盒子的宽高
/**
* 生命周期函数--监听页面加载
*/
// var that = this;
// var query = wx.createSelectorQuery(); //创建节点选择器
// //#box需要与wxml里面的id保持一致
// query.select('#myVideo').boundingClientRect(function (rect) {
// console.log('00000',rect);
// that.setData({
// myVideo: rect
// });
// }).exec();
var companyTimer = setInterval(() => {
var companyTime = this.data.companyTime;
if(companyTime >= 0 && companyTime <= 29){
this.setData({
companyTime:parseInt(companyTime) + 1,
companyTimer:companyTimer
})
console.log(this.data.companyTime)
}else{
clearInterval(this.data.companyTimer);
}
}, 1000);
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady(){
},
/**
* 生命周期函数--监听页面显示
*/
onShow() {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage() {
},
/**
* 获取在线答题题目信息
* @param {*} questionType 题目类型1安全,2施工技艺
*/
getOnlineExamList(questionType,projectId,firstWorkType,secondWorkType){
var that = this
wx.request({
url: app.globalData.szhUrl+'/mkl/api/getOnlineExamList',
data:{
"questionType":questionType,
"projectId":projectId,
"firstWorkType":firstWorkType,
"secondWorkType":secondWorkType
},
method:"GET",
success:function(res){
that.setData({
questionsData:res.data,
examPaperId:res.data[0].examPaperId == undefined ?null:res.data[0].examPaperId,
fullScore:res.data[0].totalScore== undefined ?null:res.data[0].totalScore
})
}
})
},
/**
* 提交答题记录
*/
onClickTo(){
var that = this
wx.request({
url: app.globalData.szhUrl+'/mkl/api/addOnlineExamLog',
data:{
"openId": wx.getStorageSync('userOpenId'),
"idCardNo": wx.getStorageSync('idCardNo'),
"score":that.data.fullScore,
"fullScore":that.data.fullScore,
"examPaperId":that.data.examPaperId,
"randomScore":Math.floor(Math.random()*10)
},
method:"GET",
success:function(res){
if(res.data.code == '200'){
that.setData({ up:false });
that.setData({ down:false });
that.setData({ to:false });
wx.redirectTo({
url: '../letterCommitment/index'
})
}else{
app.toast(res.data.msg);
}
}
})
},
/**
* 获取视频链接
*/
getVideoURL(projectId,firstWorkType,secondWorkType) {
var that = this
wx.request({
url: app.globalData.szhUrl+'/mkl/api/getOnlineVideoList',
data:{
fileType: 1,//视频
projectId:projectId,
firstWorkType:firstWorkType,
secondWorkType:secondWorkType
},
method:"GET",
success:function(res){
console.log(res)
console.log(res.data.code)
if(res.data.code == 0) {
that.setData({
allVideo:res.data.data
})
}
var videoList = []
switch(that.data.activeState ) {
case 1:
videoList = that.data.allVideo.companyList
break;
case 2:
videoList = that.data.allVideo.projectList
break;
case 3:
videoList = that.data.allVideo.groupList
break;
default:
videoList = []
break
}
that.setData({
videoList:videoList
})
console.log(that.data.videoList)
// if(res.data.length > 0) {
// var list = res.data
// let url = list[0].videoUrl;
// let effectiveDuration = parseInt(list[0].effectiveDuration)
// that.setData({
// videoObj:list[0],
// videoUrl:url,
// second:effectiveDuration
// })
// }
that.checkUserFinishedFlag()
}
})
},
/**
* 添加用户学习记录
*/
addUserRecord() {
var that = this
var completeFlag = parseInt(that.data.learnTime) >= parseInt(that.data.videoObj.effectiveDuration == ""?0: that.data.videoObj.effectiveDuration)?1:0
wx.request({
url:app.globalData.szhUrl+'/mkl/api/addEducationRecord',
data:{
initialId:that.data.videoObj.id,
userId:wx.getStorageSync('idCardNo'),
openId:wx.getStorageSync('userOpenId'),
learningDuration:that.data.learnTime,
completeFlag:completeFlag
},
method:"POST",
success:function(res){
if(res.data.code == 0){
console.log("添加学习记录成功!")
}else{
console.log("添加学习记录失败!")
}
}
})
},
/**
* 获取用户学习时长
*/
getUserLearnTime() {
this.addUserRecord()
this.onClickTo()
},
/**
* 查询用户是否学习
*/
checkUserFinishedFlag() {
var that = this
wx.request({
url:app.globalData.szhUrl+'/mkl/api/getUserFinishList',
data:{
initialId:parseInt(that.data.videoObj.id),
userId:wx.getStorageSync('idCardNo')
},
method:"POST",
success:function(res){
if(res.data.code == 0){
if(res.data.data.length >0) {
var obj = res.data.data[0];
if(obj.completeFlag == "1") {
that.setData({
second_state:false
})
}
}
}
}
})
},
})

View File

@ -1,7 +0,0 @@
{
"usingComponents": {
"van-tab": "@vant/weapp/tab/index",
"van-tabs": "@vant/weapp/tabs/index"
},
"navigationBarTitleText": "施工安全交底学习"
}

View File

@ -1,102 +0,0 @@
<!--pages/newAddPage/safetyBriefingLearning/index.wxml-->
<view class="study_max">
<view class="study_min">
<view class="module_title">安全视频</view>
</view>
<view class="study_video" >
<!-- 在此添加一个tab栏切换 -->
<view class="modify_video_nav" style="margin-top: 64rpx;background-color: #191d28;">
<view class="{{activeState==1?'active':''}}" bindtap="trainingTypeJump" data-index="1"><text>公司级</text></view>
<view class="{{activeState==2?'active':''}}" bindtap="trainingTypeJump" data-index="2"><text>项目级</text></view>
<view class="{{activeState==3?'active':''}}" bindtap="trainingTypeJump" data-index="3"><text>班组级</text></view>
</view>
<view class="whoBox">
<view class="outsideBox showBoxs">
<!-- 最外边展示盒子 -->
<view class="showBox">
<!-- 左按钮 -->
<!-- <view class="leftBtn">
<image src="http://fileimg.makalu.cc/WEB_1CFE1E31022543CB934B01E8777B5907.png" mode="" style="width:100%;height:100%;"/>
</view> -->
<!-- 右按钮 -->
<!-- <view class="rightBtn">
<image src="http://fileimg.makalu.cc/WEB_1CFE1E31022543CB934B01E8777B5907.png" mode="" style="width:100%;height:100%;"/>
</view> -->
<swiper style="height: 450rpx;" indicator-dots duration='500' indicator-active-color='#fff'>
<swiper-item wx:for="{{videoList}}" wx:key="index">
<video id="myVideo" src="{{item.videoUrl}}" binderror="videoErrorCallback" show-center-play-btn='{{true}}' show-play-btn="{{true}}" bindplay="bindplay_click" bindpause="bindpause_click" bindended="getUserLearnTime" controls></video>
</swiper-item>
</swiper>
</view>
<view class="study_video_tips">
温馨提示:请观看视频后进行答题
</view>
<view wx:if="{{paperFlag}}">
<view class="study_min">
<view class="module_title">安全考试</view>
</view>
<view class="study_examination_questions">
<view class="study_examination_questions_con" style="position: relative;">
<view class="study_examination_questions_topic">{{questionsData[index].topic}}</view>
<view class="study_examination_questions_radio">
<view class="{{item.answer_state? (questionsData[index].correct_answer==item.letter?'study_examination_questions_list active':'study_examination_questions_list error'):'study_examination_questions_list'}}" wx:for="{{questionsData[index].answer_list}}" wx:for-index="j" wx:key="j" bindtap="chooseAnswer" data-j="{{j}}" data-item="{{item}}">
<view class="study_radio">
<van-icon name="success" />
</view>
<view class="study_radio_subject">{{item.answer}}</view>
</view>
</view>
<!-- 查看按钮 -->
<view class="chakan" wx:if="{{questionsData.length > 0 }}" data-set="{{index}}" bindtap="chakanBtn">
查看详情
</view>
</view>
<view class="answer_result" wx:if="{{questionsData[index].type}}">
答案:{{answerTip}}
<!-- 答案:{{ questionsData[index].answer_list.filter(item=>item.letter==questionsData[index].correct_answer)}} -->
</view>
<view class="switch_button">
<button class="switch_button_up" wx:if="{{up}}" bindtap="onClickUp">上一题</button>
<button class="switch_button_down" wx:if="{{down}}" bindtap="onClickDown">下一题</button>
<button class="switch_button_to" wx:if="{{to}}" bindtap="onClickTo">确认提交</button>
</view>
</view>
</view>
</view>
</view>
<!-- <van-tabs active="a" >
<van-tab title="公司级" name="a"></van-tab>
<van-tab title="项目级" name="b"></van-tab>
<van-tab title="班组级" name="c"></van-tab>
</van-tabs> -->
</view>
</view>

View File

@ -1,68 +0,0 @@
/* pages/newAddPage/safetyBriefingLearning/index.wxss */
.chakan{
position: absolute;
right: 48rpx;
bottom: 20rpx;
color: orange;
}
/* vant-weapp样式 */
.van-tabs__nav {
background-color: #191d28;
}
.van-ellipsis{
color: #fff;
}
.van-tabs__line{
background-color: #fff !important;
}
/* .showBox{
position: relative;
width: 750rpx;
height: 462rpx;
border: 1px solid red;
box-sizing: border-box;
z-index: 999;
}
.showBox:hover .leftBtn{
display: block;
}
.showBox:hover .rightBtn{
display: block;
}
.leftBtn{
position: absolute;
left: 0;
top:50%;
transform: translate(0,-50%);
width: 48rpx;
height: 80rpx;
color: #000;
border: 1px solid #fff;
z-index: 999;
display: none;
}
.rightBtn{
position: absolute;
right: 0;
top:50%;
transform: translate(0,-50%);
width: 48rpx;
height: 80rpx;
color: #000;
border: 1px solid #fff;
z-index: 999;
display: none;
} */
.whoBox{
position: relative;
}
.outsideBox{
position: absolute;
top: 0;
left: 0;
width: 100%;
display: none;
}
.showBoxs{
display: block;
}

View File

@ -1,559 +0,0 @@
// pages/newAddPage/safetyManagement/index.js
const app = getApp()
Page({
/**
* 页面的初始数据
*/
data: {
active: 1,
deptId: '',
projectName: '',
projectId: '',
loginName: '',
userName: '',
initData: {},
projectData: {},
//教育培训
videoSurvey: [
],
//基坑检测
safetyDeepData: [
{
name: '沉降',
total: 0,
notMonitor: 0,
yesMonitor: 0,
unit: '个'
},
{
name: '倾斜',
total: 0,
notMonitor: 0,
yesMonitor: 0,
unit: '个'
},
{
name: '应力',
total: 0,
notMonitor: 0,
yesMonitor: 0,
unit: '个'
},
],
//爬架检测
safetyFrameData: [
{
name: '倾斜',
total: 0,
notMonitor: 0,
yesMonitor: 0,
unit: '个'
},
{
name: '高度',
total: 0,
notMonitor: 0,
yesMonitor: 0,
unit: '个'
},
{
name: '载荷',
total: 0,
notMonitor: 0,
yesMonitor: 0,
unit: '个'
},
],
securityCheck: {
routineRectificationRate: 0, //常规整改率
routineProblemTotal: 0,//常规问题总数
routineCheckNumber: 0,//常规检查次数
specialRectificationRate: 0, //专项整改率
specialProblemTotal: 0,//专项问题总数
specialCheckNumber: 0,//专项检查次数
},
pitCount: {//基坑统计数据
onlineNumber: 0,
offlineNumber: 0,
total: 0,
},
climbCount: {//爬架统计数据
onlineNumber: 0,
offlineNumber: 0,
total: 0,
},
power: {//配电箱信息
t1: 0,
t2: 0,
t3: 0,
t4: 0,
c1: 0,
c2: 0,
c3: 0,
leak: 0
},
highlightPictures: []
},
showPopup() {
this.setData({ show: true });
},
onClose() {
this.setData({ show: false });
},
onClickShow() {
this.setData({ loadShow: true });
},
onClickHide() {
this.setData({ loadShow: false });
},
//项目切换 返回值
onProjectSelect(e) {
//this.onClickShow();
let projectId = e.detail.id;
let projectName = e.detail.text;
app.globalData.projectId = projectId;
app.globalData.projectName = projectName;
this.setData({
projectId: projectId,
projectName: projectName,
})
this.onLoad()
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
var that = this
wx.getStorage({
key: 'userinfo',
success: function (res) {
console.log(res.data);
that.setData({
loginName: res.data.loginName,
userName: res.data.userName,
deptId: res.data.deptId,
projectName: app.globalData.projectName,
projectId: app.globalData.projectId,
initData: { text: app.globalData.projectName, id: app.globalData.projectId }
})
that.getProjectCorrespondence(app.globalData.projectId);
}
})
},
/**
* 项目对应关系
*/
getProjectCorrespondence(projectId) {
var that = this;
wx.request({
url: app.globalData.reqUrl + '/weixin/training/getProjectCorrespondence',
data: {
"projectId": projectId,
},
method: "get",
success: function (res) {
console.log(res.data);
that.setData({
projectData: res.data
})
that.getSecurityCheck()
that.getPitCount()
that.getClimbCount()
that.getDistributionBoxData()
that.getHighlightPictures()
that.getTraining()
}
})
},
/**
* 教育培训
*/
getTraining() {
let that = this
wx.request({
url: app.globalData.szhUrl + "/api/building/listCultivate?project_id=" + this.data.projectData.szh + "&cultivate_type=4",
method: "post",
success: res => {
wx.request({
url: app.globalData.szhUrl + "/api/building/listCultivate?project_id=" + this.data.projectData.szh + "&cultivate_type=6",
method: "post",
success: res1 => {
wx.request({
url: app.globalData.szhUrl + "/api/building/listCultivate?project_id=" + this.data.projectData.szh + "&cultivate_type=3",
method: "post",
success: res2 => {
let total = res.data.data.length
+ res1.data.data.length
+ res2.data.data.length
that.setData({
videoSurvey: [
{ name: '三级安全教育', value: res.data.data.length, prop: (res.data.data.length / total * 100).toFixed(2) },
// { name: '班前讲话', value: '0', prop: 0 },
{ name: '应急演练', value: res2.data.data.length, prop: (res2.data.data.length / total * 100).toFixed(2) },
{ name: '专项培训', value: res1.data.data.length, prop: (res1.data.data.length / total * 100).toFixed(2) }
]
})
// wx.request({
// url: app.globalData.szhUrl + "/api/building/listCultivate?project_id=" + this.data.projectData.szh + "&cultivate_type=4",
// method: "post",
// success: res3 => {
// }
// })
}
})
}
})
}
})
},
/**
* 获取安全检查数据
*/
getSecurityCheck() {
wx.request({
url: app.globalData.szhUrl + '/api/check/getCheckStatistics?project_id=' + this.data.projectData.szh + "&large_type=1",
success: res1 => {
wx.request({
url: app.globalData.szhUrl + '/api/check/getCheckStatistics?project_id=' + this.data.projectData.szh + "&large_type=2",
success: res2 => {
this.setData({
"securityCheck.routineRectificationRate": res1.data.data.rate,
"securityCheck.routineProblemTotal": res1.data.data.problemTotal,
"securityCheck.routineCheckNumber": res1.data.data.total,
"securityCheck.specialRectificationRate": res2.data.data.rate,
"securityCheck.specialProblemTotal": res2.data.data.problemTotal,
"securityCheck.specialCheckNumber": res2.data.data.total,
})
}
})
}
})
},
/**
* 获取基坑监测统计
*/
getPitCount() {
wx.request({
url: app.globalData.aqzgUrl + '/weixin/structProjectSensorInfo/select/sensorInfo?projectId=' + this.data.projectData.aqzg + "&sensorType=4",
method: "post",
success: res => {
console.log(res)
let zxDeviceTotal = 0
let cj = 0
let cj_o = 0
let qx = 0
let qx_o = 0
let yl = 0
let yl_o = 0
res.data.data.map(x => {
let a = 0
if (x.status != 2) {
zxDeviceTotal++;
a = 1
}
switch (x.sensorType) {
case "CollWeiyiPoint":
cj++
cj_o += a
break
case "CollQingxiePoint":
qx++
qx_o += a
break
case "YingLi":
yl++
yl_o += a
bre
}
})
this.setData({
"pitCount.onlineNumber": zxDeviceTotal,
"pitCount.offlineNumber": res.data.data.length - zxDeviceTotal,
"pitCount.total": res.data.data.length,
safetyDeepData: [
{
name: '沉降',
total: cj,
notMonitor: cj - cj_o,
yesMonitor: cj_o,
unit: '个'
},
{
name: '倾斜',
total: qx,
notMonitor: qx - qx_o,
yesMonitor: qx_o,
unit: '个'
},
{
name: '应力',
total: yl,
notMonitor: yl - yl_o,
yesMonitor: yl_o,
unit: '个'
},
],
})
}
})
},
/**
* 获取爬架监测统计
*/
getClimbCount() {
wx.request({
url: app.globalData.szhUrl + '/screen/api/getDeviceBaseInfo?projectId=' + this.data.projectData.aqzg + '&drawId=7053550232834936832',
method: "post",
success: res => {
let zxDeviceTotal = 0
let cj = 0
let cj_o = 0
let qx = 0
let qx_o = 0
let yl = 0
let yl_o = 0
res.data.data.map(x => {
let a = 0
if (x.status != 2) {
zxDeviceTotal++;
a = 1
}
switch (x.sensorType) {
case "CollWeiyiPoint":
cj++
cj_o += a
break
case "CollQingxiePoint":
qx++
qx_o += a
break
case "YingLi":
yl++
yl_o += a
bre
}
})
this.setData({
"climbCount.onlineNumber": zxDeviceTotal,
"climbCount.offlineNumber": res.data.data.length - zxDeviceTotal,
"climbCount.total": res.data.data.length,
safetyFrameData: [
{
name: '倾斜',
total: qx,
notMonitor: qx - qx_o,
yesMonitor: qx_o,
unit: '个'
},
{
name: '高度',
total: 0,
notMonitor: 0,
yesMonitor: 0,
unit: '个'
},
{
name: '载荷',
total: 0,
notMonitor: 0,
yesMonitor: 0,
unit: '个'
},
],
})
}
})
},
/**
* 获取塔机监测统计
*/
getTowerCraneCount() {
wx.request({
url: app.globalData.aqzgUrl + '/api/statistics/getDeviceSourceCensus',
method: "post",
success: res => {
let zxDeviceTotal = 0
res.data.data.map(x => {
if (x.status != 2) {
zxDeviceTotal++;
}
})
this.setData({
"towerCraneCount.onlineNumber": zxDeviceTotal,
"towerCraneCount.offlineNumber": res.data.data.length - zxDeviceTotal,
"towerCraneCount.total": res.data.data.length
})
}
})
},
/**
* 获取配电箱数据
*/
getDistributionBoxData() {
wx.request({
url: app.globalData.szhUrl + '/api/iot/power/latestList',
data: {
projectId: this.data.projectData.szh,
uid: 'PWR.02731XTJ'
},
success: res => {
this.setData({
power: res.data.rows[0] ? res.data.rows[0] : {
t1: 0,
t2: 0,
t3: 0,
t4: 0,
c1: 0,
c2: 0,
c3: 0,
leak: 0
}
})
}
})
},
/**
* 亮点照片
*/
getHighlightPictures() {
wx.request({
url: app.globalData.szhUrl + '/api/building/photoList?projectId=' + this.data.projectData.szh + '&typeMain=8&typeId=18',
method: "post",
success: res => {
console.log(res)
this.setData({
highlightPictures: res.data.data
})
}
})
},
goHighLightPage() {
wx.navigateTo({
url: '../../Highlight-photos/index',
})
},
/**
* 教育培训页面
*/
goEducations() {
wx.navigateTo({
url: '../../../pageage/educations-list/index?jumpState=1',
})
},
/**
* 基坑页面
*/
gofoundation(event) {
let id = event.currentTarget.dataset.id;
wx.navigateTo({
url: '../../deepExcavation/index?id='+id,
})
},
/**
* 跳转安全教育
*/
goCheckView(){
wx.navigateTo({
url: '../../../pageage/safetyManagement/securityCheck/index',
})
},
/**
* 配电箱监测
*/
goPDJCDetail() {
wx.navigateTo({
url: '../../Security-control-echarts/index',
})
},
/****************************底部导航********************************/
onChange(event) {
// event.detail 的值为当前选中项的索引
this.setData({ active: event.detail });
},
/**
* 项目概况页面
*/
XMGK: function () {
wx.redirectTo({
url: '../../xiangmugaikuang/xiangmugaikuang'
})
},
/**
* 设备管理
*/
SBGL: function () {
wx.redirectTo({
url: '../../shebieguanli-jxsb/shajiangguan',
})
},
/**
* 人员管理
*/
RYGL: function () {
wx.redirectTo({
url: '../../renyuanguanli/renyuanguanli'
})
},
//跳转到安全管控
XMSP:function(){
wx.redirectTo({
//url: '../deepExcavation/index'
url:'../../newAddPage/safetyManagement/index'
})
},
//跳转到质量管理
ZLGL2:function(){
wx.redirectTo({
url:'../../Quality-Assurance/index'
})
},
//跳转到进度管理
JDGL2:function(){
wx.redirectTo({
//url: '../deepExcavation/index'
url:'../../../pageage/Progress-management/index'
})
},
/**
* 更多功能
*/
GDGN: function () {
wx.redirectTo({
url: '../../gengduogongneng/gengduogongneng'
})
},
/**
* 工程列表页面
*/
goGCLB: function () {
wx.redirectTo({
url: '../../gongchengliebiao/gongchengliebiao'
})
}
})

View File

@ -1,7 +0,0 @@
{
"usingComponents": {
"van-tabbar": "@vant/weapp/tabbar",
"van-tabbar-item": "@vant/weapp/tabbar-item"
},
"navigationStyle":"custom"
}

View File

@ -1,371 +0,0 @@
<!--pages/newAddPage/safetyManagement/index.wxml-->
<view class="header_title">
<view class="header_title_row">
<van-row>
<van-col span="3">
<view class="header_img" bindtap="showPopup"><image src="/images/core.png"></image></view>
</van-col>
<van-col span="4">
<view class="header_img" bindtap="goGCLB">
<image src="/images/left.png"></image>
<text class="header_fh">返回</text>
</view>
</van-col>
<van-col span="10">
<view class="header_name">安全管理</view>
</van-col>
</van-row>
</view>
</view>
<van-popup show="{{ show }}" position="left" custom-style="width: 70%;height:100%;background:#191d28" bind:close="onClose" >
<view class="left_max">
<van-row class="demo clearfix">
<van-col span="10">
<view class="left_head"><image src="http://fileimg.makalu.cc/szgl/9015e824c5004e629049c4f72967cfdc.png"></image></view>
</van-col>
<van-col span="14">
<view class="left_info">
<view class="left_info_name">{{userName}}</view>
<view class="left_info_name">{{loginName}}</view>
</view>
</van-col>
</van-row>
</view>
</van-popup>
<view class="max_content">
<project-select init="{{initData}}" bindchange="onProjectSelect"></project-select>
<view class="module_max" style="margin-top: 60rpx;">
<view class="module_min">
<view class="module_title module_title_flex" >
<view>教育培训</view>
<view class="module_see_info" bindtap="goEducations">查看详情<van-icon name="arrow" /></view>
</view>
<safety-pie-chart chart-id="chart1" title="教育总数" chart-data="{{videoSurvey}}"></safety-pie-chart>
</view>
</view>
<view class="module_max">
<view class="module_min">
<view class="module_title module_title_flex">
<view>安全检查</view>
<view class="module_see_info" bindtap="goCheckView">查看详情<van-icon name="arrow" /></view>
</view>
<view class="safety_inspect">
<van-row>
<van-col span="12">
<view class="safety_inspect_title">常规检查次数</view>
<safety-number number="{{securityCheck.routineCheckNumber}}"></safety-number>
<view class="safety_prop">
<view style="padding-right: 30rpx;">整改率</view>
<view class="safety_prop_val"><text>{{securityCheck.routineRectificationRate}}</text> %</view>
</view>
<view class="safety_issue">
<view class="safety_issue_number">
<view style="padding-right: 30rpx;">检查问题数</view>
<view>{{securityCheck.routineProblemTotal}}</view>
</view>
</view>
</van-col>
<van-col span="12">
<view class="safety_inspect_title">专项检查次数</view>
<safety-number number="{{securityCheck.specialCheckNumber}}"></safety-number>
<view class="safety_prop">
<view style="padding-right: 30rpx;">整改率</view>
<view class="safety_prop_val"><text>{{securityCheck.specialRectificationRate}}</text> %</view>
</view>
<view class="safety_issue">
<view class="safety_issue_number">
<view style="padding-right: 30rpx;">检查问题数</view>
<view>{{securityCheck.specialProblemTotal}}</view>
</view>
</view>
</van-col>
</van-row>
</view>
</view>
</view>
<view class="module_max">
<view class="module_min">
<view class="module_title module_title_flex">
<view>基坑监测</view>
<view class="module_see_info" bindtap="gofoundation" data-id="4">查看详情<van-icon name="arrow" /></view>
</view>
<view class="safety_deep">
<view class="safety_deep_row">
<view class="safety_deep_img safety_deep_img_1">
<!-- <image src="http://fileimg.makalu.cc/WEB_A8903AF7C4E2470C9E6107E3246B8775.png"></image> -->
</view>
<view class="safety_deep_col">
<view class="safety_deep_col_text">监测点位数</view>
<view class="safety_deep_col_number"><text>{{pitCount.total}}</text> 个</view>
</view>
</view>
<view class="safety_deep_row">
<view class="safety_deep_img safety_deep_img_2">
<!-- <image src="http://fileimg.makalu.cc/WEB_16916419A0EB4677AE873B6EFE418DD6.png"></image> -->
</view>
<view class="safety_deep_col">
<view class="safety_deep_col_text">在线点位数</view>
<view class="safety_deep_col_number safety_deep_col_green"><text>{{pitCount.onlineNumber}}</text> 个</view>
</view>
</view>
</view>
<safety-bar-chart chart-id="chart2" data="{{safetyDeepData}}" height="350"></safety-bar-chart>
</view>
</view>
<view class="module_max">
<view class="module_min">
<view class="module_title module_title_flex">
<view>爬架监测</view>
<view class="module_see_info" bindtap="gofoundation" data-id="5">查看详情<van-icon name="arrow" /></view>
</view>
<view class="safety_deep">
<view class="safety_deep_row">
<view class="safety_deep_img safety_deep_img_1">
<!-- <image src="http://fileimg.makalu.cc/WEB_A8903AF7C4E2470C9E6107E3246B8775.png"></image> -->
</view>
<view class="safety_deep_col">
<view class="safety_deep_col_text">监测点位数</view>
<view class="safety_deep_col_number"><text>{{climbCount.total}}</text> 个</view>
</view>
</view>
<view class="safety_deep_row">
<view class="safety_deep_img safety_deep_img_2">
<!-- <image src="http://fileimg.makalu.cc/WEB_16916419A0EB4677AE873B6EFE418DD6.png"></image> -->
</view>
<view class="safety_deep_col">
<view class="safety_deep_col_text">在线点位数</view>
<view class="safety_deep_col_number safety_deep_col_green"><text>{{climbCount.onlineNumber}}</text> 个</view>
</view>
</view>
</view>
<safety-bar-chart chart-id="chart3" data="{{safetyFrameData}}" height="350"></safety-bar-chart>
</view>
</view>
<view class="module_max">
<view class="module_min">
<view class="module_title module_title_flex">
<view>配电箱监测</view>
<view class="module_see_info" bindtap="goPDJCDetail">查看详情<van-icon name="arrow" /></view>
</view>
<view class="safety_inspect">
<van-row>
<van-col span="12">
<view class="safety_electric">
<view>环境阈值:</view>
<view class="safety_electric_threshold"><text>70</text>℃</view>
</view>
<view class="safety_electric_row">
<view class="safety_electric_img safety_deep_img_1">
<image src="http://fileimg.makalu.cc/WEB_AF606BB7762C44E7A259E506EAF7FCF3.png"></image>
</view>
<view class="safety_electric_col">
<view class="safety_deep_col_text">A相温度</view>
<view class="safety_electric_number safety_deep_col_blue"><text>{{power.t1}}</text> ℃</view>
</view>
</view>
<view class="safety_electric_row">
<view class="safety_electric_img safety_deep_img_1">
<image src="http://fileimg.makalu.cc/WEB_AF606BB7762C44E7A259E506EAF7FCF3.png"></image>
</view>
<view class="safety_electric_col">
<view class="safety_deep_col_text">B相温度</view>
<view class="safety_electric_number safety_deep_col_blue"><text>{{power.t2}}</text> ℃</view>
</view>
</view>
<view class="safety_electric_row">
<view class="safety_electric_img safety_deep_img_1">
<image src="http://fileimg.makalu.cc/WEB_AF606BB7762C44E7A259E506EAF7FCF3.png"></image>
</view>
<view class="safety_electric_col">
<view class="safety_deep_col_text">C相温度</view>
<view class="safety_electric_number safety_deep_col_blue"><text>{{power.t3}}</text> ℃</view>
</view>
</view>
<view class="safety_electric_row">
<view class="safety_electric_img safety_deep_img_1">
<image src="http://fileimg.makalu.cc/WEB_98D6C14CBE3348A89F73244A3BEACB98.png"></image>
</view>
<view class="safety_electric_col">
<view class="safety_deep_col_text">零线温度</view>
<view class="safety_electric_number safety_deep_col_blue"><text>{{power.t4}}</text> ℃</view>
</view>
</view>
</van-col>
<van-col span="12">
<view class="safety_electric" style="visibility: hidden;">
<view>漏电预警阈值:</view>
<view class="safety_electric_threshold"><text>150</text>mA</view>
</view>
<view class="safety_electric_row">
<view class="safety_electric_img safety_deep_img_1">
<image src="http://fileimg.makalu.cc/WEB_FE6A3AD7D3A94CA697E519CE147D50A8.png"></image>
</view>
<view class="safety_electric_col">
<view class="safety_deep_col_text">A相电流</view>
<view class="safety_electric_number safety_deep_col_blue"><text>{{power.c1}}</text> A</view>
</view>
</view>
<view class="safety_electric_row">
<view class="safety_electric_img safety_deep_img_1">
<image src="http://fileimg.makalu.cc/WEB_FE6A3AD7D3A94CA697E519CE147D50A8.png"></image>
</view>
<view class="safety_electric_col">
<view class="safety_deep_col_text">B相电流</view>
<view class="safety_electric_number safety_deep_col_blue"><text>{{power.c2}}</text> A</view>
</view>
</view>
<view class="safety_electric_row">
<view class="safety_electric_img safety_deep_img_1">
<image src="http://fileimg.makalu.cc/WEB_FE6A3AD7D3A94CA697E519CE147D50A8.png"></image>
</view>
<view class="safety_electric_col">
<view class="safety_deep_col_text">C相电流</view>
<view class="safety_electric_number safety_deep_col_blue"><text>{{power.c3}}</text> A</view>
</view>
</view>
<view class="safety_electric_row" style="display: none;">
<view class="safety_electric_img safety_deep_img_1">
<image src="http://fileimg.makalu.cc/WEB_6AF4FEC2B2724A4DB80D40516303612C.png"></image>
</view>
<view class="safety_electric_col" >
<view class="safety_deep_col_text">漏电电流</view>
<view class="safety_electric_number safety_deep_col_blue"><text>{{power.leak}}</text> A</view>
</view>
</view>
</van-col>
</van-row>
</view>
</view>
</view>
<view class="module_max" >
<view class="module_min">
<view class="module_title module_title_flex">
<view>亮点照片</view>
<view class="module_see_info" bindtap="goHighLightPage">查看详情<van-icon name="arrow" /></view>
</view>
<view class="safety_highlights">
<van-row>
<!-- <swiper circular>
<swiper-item wx:for="{{highlightPictures}}" wx:key="videoIndex">
<image src="{{item}}" style="width: 100%;height: 100%;"/>
</swiper-item>
</swiper> -->
<van-col span="12" wx:for="{{highlightPictures}}" wx:key="index" wx:if="{{index < 2}}">
<view class="safety_highlights_img">
<image src="{{item.photo_url}}"></image>
</view>
</van-col>
</van-row>
</view>
</view>
</view>
</view>
<!-- 底部导航 -->
<van-tabbar active="{{ active }}" bind:change="onChange" active-color="#ffffff" inactive-color="#7d95d6">
<van-tabbar-item bindtap="XMGK" >
<image
slot="icon"
src="/images/footer_5.png"
mode="aspectFit"
style="width:40rpx; height: 40rpx;"
/>
<image
slot="icon-active"
src="/images/foot_5.png"
mode="aspectFit"
style="width:40rpx; height: 40rpx;"
/>
项目概况
</van-tabbar-item>
<van-tabbar-item bindtap="XMSP">
<image
slot="icon"
src="/images/footer_7.png"
mode="aspectFit"
style="width:40rpx; height: 40rpx;"
/>
<image
slot="icon-active"
src="/images/foot_7.png"
mode="aspectFit"
style="width:40rpx; height: 40rpx;"
/>
安全管理
</van-tabbar-item>
<van-tabbar-item bindtap="ZLGL2">
<image
slot="icon"
src="/images/footer_5.png"
mode="aspectFit"
style="width:40rpx; height: 40rpx;"
/>
<image
slot="icon-active"
src="/images/foot_5.png"
mode="aspectFit"
style="width:40rpx; height: 40rpx;"
/>
质量管理
</van-tabbar-item>
<van-tabbar-item bindtap="JDGL2">
<image
slot="icon"
src="/images/footer_6.png"
mode="aspectFit"
style="width:40rpx; height: 40rpx;"
/>
<image
slot="icon-active"
src="/images/foot_6.png"
mode="aspectFit"
style="width:40rpx; height: 40rpx;"
/>
进度管理
</van-tabbar-item>
<van-tabbar-item bindtap="GDGN">
<image
slot="icon"
src="/images/footer_1.png"
mode="aspectFit"
style="width:40rpx; height: 40rpx;"
/>
<image
slot="icon-active"
src="/images/foot_1.png"
mode="aspectFit"
style="width:40rpx; height:40rpx;"
/>
更多功能
</van-tabbar-item>
</van-tabbar>

View File

@ -1 +0,0 @@
/* pages/newAddPage/safetyManagement/index.wxss */

View File

@ -1,66 +0,0 @@
// pages/newAddPage2/letterCommitment/index.js
Page({
/**
* 页面的初始数据
*/
data: {
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {
},
/**
* 生命周期函数--监听页面显示
*/
onShow() {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage() {
}
})

View File

@ -1,2 +0,0 @@
<!--pages/newAddPage2/letterCommitment/index.wxml-->
<text>pages/newAddPage2/letterCommitment/index.wxml</text>

View File

@ -1,66 +0,0 @@
// pages/tempRegistration/index.js
Page({
/**
* 页面的初始数据
*/
data: {
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {
},
/**
* 生命周期函数--监听页面显示
*/
onShow() {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage() {
}
})

View File

@ -1,2 +0,0 @@
<!--pages/tempRegistration/index.wxml-->
<text>pages/tempRegistration/index.wxml</text>

View File

@ -1,66 +0,0 @@
// pages/temporaryToExamine/index.js
Page({
/**
* 页面的初始数据
*/
data: {
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {
},
/**
* 生命周期函数--监听页面显示
*/
onShow() {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage() {
}
})

View File

@ -1,2 +0,0 @@
<!--pages/temporaryToExamine/index.wxml-->
<text>pages/temporaryToExamine/index.wxml</text>