高危作业申请提交后,下一步的操作人员账号中在主界面和高危作业界面中都没有相应的提示。

bug优化0603
WenShiJun 2024-06-05 15:04:52 +08:00
parent fcc5d47399
commit f4f91b834c
20 changed files with 1128 additions and 842 deletions

View File

@ -181,7 +181,6 @@
if ("success" == res.data.result) { if ("success" == res.data.result) {
_this.count = res.data.count; _this.count = res.data.count;
} }
} }
}) })
}, },

View File

@ -10,6 +10,12 @@
<navigator class="a" hover-class="none" :url="item.url"> <navigator class="a" hover-class="none" :url="item.url">
<view class="image"> <view class="image">
<image :src="item.image" mode=""></image> <image :src="item.image" mode=""></image>
<view v-if="item.hotWorkCount > 0" class="badge">{{ item.hotWorkCount }}</view>
<view v-if="item.hightWorkCount > 0" class="badge">{{ item.hightWorkCount }}</view>
<view v-if="item.blindBoardCount > 0" class="badge">{{ item.blindBoardCount }}</view>
<view v-if="item.HoistingCount > 0" class="badge">{{ item.HoistingCount }}</view>
<view v-if="item.confinedSpaceCount > 0" class="badge">{{ item.confinedSpaceCount }}</view>
<view v-if="item.electricityCount > 0" class="badge">{{ item.electricityCount }}</view>
</view> </view>
<view class="title"> <view class="title">
<text>{{ item.title }}</text> <text>{{ item.title }}</text>
@ -22,6 +28,8 @@
</template> </template>
<script> <script>
import { basePath, loginUser } from '@/common/tool.js';
export default { export default {
data() { data() {
return { return {
@ -30,43 +38,116 @@ export default {
title: '动火作业', title: '动火作业',
url: '/pages/application/eight-assignments/index', url: '/pages/application/eight-assignments/index',
image: require('../../../static/new_images/i1.png'), image: require('../../../static/new_images/i1.png'),
hotWorkCount: 0,
}, },
// {
// title: '',
// url:'/pages/application/hotwork_cfd/home',
// image:require('../../../static/new_images/i1.png'),
// },
{ {
title: '高处作业', title: '高处作业',
url: '/pages/application/gf-eight-work/high-work/home', url: '/pages/application/gf-eight-work/high-work/home',
image: require('../../../static/new_images/i2.png'), image: require('../../../static/new_images/i2.png'),
hightWorkCount: 0,
}, },
{ {
title: '盲板作业', title: '盲板作业',
url: '/pages/application/gf-eight-work/blind-board/home', url: '/pages/application/gf-eight-work/blind-board/home',
image: require('../../../static/new_images/i3.png'), image: require('../../../static/new_images/i3.png'),
blindBoardCount: 0,
}, },
{ {
title: '吊装作业', title: '吊装作业',
url: '/pages/application/gf-eight-work/hoisting/home', url: '/pages/application/gf-eight-work/hoisting/home',
image: require('../../../static/new_images/i4.png'), image: require('../../../static/new_images/i4.png'),
HoistingCount: 0,
}, },
{ {
title: '有限空间安全作业', title: '有限空间安全作业',
url: '/pages/application/gf-eight-work/confinedspace/home', url: '/pages/application/gf-eight-work/confinedspace/home',
image: require('../../../static/new_images/i5.png'), image: require('../../../static/new_images/i5.png'),
confinedSpaceCount: 0,
}, },
{ {
title: '临时用电安全作业', title: '临时用电安全作业',
url: '/pages/application/gf-eight-work/electricity/home', url: '/pages/application/gf-eight-work/electricity/home',
image: require('../../../static/new_images/i6.png'), image: require('../../../static/new_images/i6.png'),
electricityCount: 0,
}, },
], ],
} };
}, },
onShow() {
this.updateWorkCounts('/app/hotwork/cfd/countCheck', '动火作业', 'hotWorkCount');
this.updateWorkCounts('/app/gfHighwork/countCheck', '高处作业', 'hightWorkCount');
this.updateWorkCounts('/app/gfBlindBoard/countCheck', '盲板作业', 'blindBoardCount');
this.updateWorkCounts('/app/gfHoisting/countCheck', '吊装作业', 'blindBoardCount');
this.updateWorkCounts('/app/gfConfinedSpace/countCheck', '有限空间安全作业', 'blindBoardCount');
this.updateWorkCounts('//app/gfElectricity/countCheck', '临时用电安全作业', 'electricityCount');
},
methods: {
updateWorkCounts(url, title, countKey) {
uni.showLoading({ title: "加载中..." }); //
uni.request({
url: basePath + url,
method: 'POST',
dataType: 'json',
header: { 'Content-type': 'application/x-www-form-urlencoded' },
data: {
tm: new Date().getTime(),
CORPINFO_ID: loginUser.CORPINFO_ID,
USER_ID: loginUser.USER_ID,
},
success: (res) => {
uni.hideLoading(); //
if (res.data.result === "success") {
let totalCount = res.data.count.SUMCOUNT;
this.highRiskList = this.highRiskList.map(item => {
if (item.title === title) {
return { ...item, [countKey]: totalCount };
} }
return item;
});
}
}
});
}
}
};
</script> </script>
<style> <style>
.new-apps-box {
padding: 20upx;
}
.new-apps-warp {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
}
.new-apps-item {
position: relative;
width: 30%;
margin-bottom: 20upx;
text-align: center;
}
.new-apps-item .image {
position: relative;
width: 100%;
height: 100upx;
}
.new-apps-item .badge {
position: absolute;
top: -10px;
right: 0;
background-color: #dd514c;
color: white;
border-radius: 50%;
padding: 2px 5px;
font-size: 12px;
}
.new-apps-item .title {
margin-top: -5upx;
}
</style> </style>

View File

@ -454,7 +454,7 @@
<!-- <view class="title">监护人</view>--> <!-- <view class="title">监护人</view>-->
<!-- {{pd.GUARDIAN_USER_NAME}} {{pd.GUARDIAN_USER_SIGNER_TIME}}--> <!-- {{pd.GUARDIAN_USER_NAME}} {{pd.GUARDIAN_USER_SIGNER_TIME}}-->
<!-- </view>--> <!-- </view>-->
<view v-if="pd.APPROVAL_SIGNATURE"> <view v-if="pd.EXAMINE_APPROVAL_SIGNATURE">
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee"> <view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee">
<view class="cu-form-textarea" style="border: none;"> <view class="cu-form-textarea" style="border: none;">
<view class="cu-form-title">项目主管部门负责意见</view> <view class="cu-form-title">项目主管部门负责意见</view>

View File

@ -101,10 +101,12 @@
<uni-table name='measuresList' border stripe emptyText="暂无更多数据" > <uni-table name='measuresList' border stripe emptyText="暂无更多数据" >
<!-- 表头行 --> <!-- 表头行 -->
<uni-tr> <uni-tr>
<uni-th align="center" style="font-weight: bold;">&nbsp;</uni-th>
<uni-th align="center" style="font-weight: bold;">主要安全措施</uni-th> <uni-th align="center" style="font-weight: bold;">主要安全措施</uni-th>
<uni-th align="center" style="font-weight: bold;width: 100px">操作</uni-th> <uni-th align="center" style="font-weight: bold;width: 100px">操作</uni-th>
</uni-tr> </uni-tr>
<uni-tr v-for="(item,index) in measuresList" :key="item.BUS_HOTWORK_MEASURES_ID"> <uni-tr v-for="(item,index) in measuresList" :key="item.BUS_HOTWORK_MEASURES_ID">
<uni-td align="center">{{ index + 1 }}</uni-td>
<uni-td> <uni-td>
<view style="margin-bottom: 20upx;"> <view style="margin-bottom: 20upx;">
{{item.PROTECTIVE_MEASURES}} {{item.PROTECTIVE_MEASURES}}
@ -253,10 +255,10 @@
</view> </view>
<view class="wui-form-list"> <view class="wui-form-list">
<view v-if="pd.CONFIRM_USER_SIGNER_PATH">
<view class="cu-form-textarea" style="border: none;"> <view class="cu-form-textarea" style="border: none;">
<view class="cu-form-title">作业负责人意见</view> <view class="cu-form-title">作业负责人意见</view>
<textarea maxlength="255" disabled="disabled" v-model="pd.CONFIRM_CONTENT"></textarea> <textarea maxlength="255" disabled="disabled" v-model="formattedConfirmContent"></textarea>
</view> </view>
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee"> <view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee">
<view class="cu-form-group" > <view class="cu-form-group" >
@ -267,10 +269,11 @@
<image :src="baseImgPath + pd.CONFIRM_USER_SIGNER_PATH" mode="aspectFill" @click="previewImage(baseImgPath + pd.CONFIRM_USER_SIGNER_PATH)" style="height: 100%;"></image> <image :src="baseImgPath + pd.CONFIRM_USER_SIGNER_PATH" mode="aspectFill" @click="previewImage(baseImgPath + pd.CONFIRM_USER_SIGNER_PATH)" style="height: 100%;"></image>
</view> </view>
</view> </view>
</view>
<view v-if="pd.EXAMINE_APPROVAL_SIGNATURE">
<view class="cu-form-textarea" style="border: none;"> <view class="cu-form-textarea" style="border: none;">
<view class="cu-form-title">项目主管部门负责意见</view> <view class="cu-form-title">项目主管部门负责意见</view>
<textarea maxlength="255" disabled="disabled" v-model="pd.BELONGING_OPINIONS"></textarea> <textarea maxlength="255" disabled="disabled" v-model="formattedExamineApprovalOpinions"></textarea>
</view> </view>
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee"> <view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee">
<view class="cu-form-group" > <view class="cu-form-group" >
@ -281,11 +284,11 @@
<image :src="baseImgPath + pd.BELONGING_SIGNATURE" mode="aspectFill" @click="previewImage(baseImgPath + pd.BELONGING_SIGNATURE)" style="height: 100%;"></image> <image :src="baseImgPath + pd.BELONGING_SIGNATURE" mode="aspectFill" @click="previewImage(baseImgPath + pd.BELONGING_SIGNATURE)" style="height: 100%;"></image>
</view> </view>
</view> </view>
</view>
<view v-if="pd.LEADER_CONTENT && pd.LEADER_CONTENT !== '无'">
<view class="cu-form-textarea" style="border: none;"> <view class="cu-form-textarea" style="border: none;">
<view class="cu-form-title">属地监管单位意见</view> <view class="cu-form-title">属地监管单位意见</view>
<textarea maxlength="255" disabled="disabled" v-model="pd.LEADER_CONTENT"></textarea> <textarea maxlength="255" disabled="disabled" v-model="formattedLeaderContent"></textarea>
</view> </view>
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee"> <view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee">
<view class="cu-form-group" > <view class="cu-form-group" >
@ -295,11 +298,12 @@
<view style="width: 400upx; height: 200upx; margin: 30upx;margin-top: 0upx;margin-bottom: 20upx;" > <view style="width: 400upx; height: 200upx; margin: 30upx;margin-top: 0upx;margin-bottom: 20upx;" >
<image :src="baseImgPath + pd.LEADER_USER_SIGNER_PATH" mode="aspectFill" @click="previewImage(baseImgPath + pd.LEADER_USER_SIGNER_PATH)" style="height: 100%;"></image> <image :src="baseImgPath + pd.LEADER_USER_SIGNER_PATH" mode="aspectFill" @click="previewImage(baseImgPath + pd.LEADER_USER_SIGNER_PATH)" style="height: 100%;"></image>
</view> </view>
</view>
</view> </view>
<view v-if="pd.AUDIT_USER_SIGNER_PATH"> <view v-if="pd.AUDIT_USER_SIGNER_PATH">
<view class="cu-form-textarea" style="border: none;"> <view class="cu-form-textarea" style="border: none;">
<view class="cu-form-title">安全管理部门意见</view> <view class="cu-form-title">安全管理部门意见</view>
<textarea maxlength="255" disabled="disabled" v-model="pd.AUDIT_CONTENT"></textarea> <textarea maxlength="255" disabled="disabled" v-model="formattedAuditContent"></textarea>
</view> </view>
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee"> <view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee">
<view class="cu-form-group" > <view class="cu-form-group" >
@ -314,7 +318,7 @@
<view v-if="pd.APPROVE_USER_SIGNER_PATH"> <view v-if="pd.APPROVE_USER_SIGNER_PATH">
<view class="cu-form-textarea" style="border: none;"> <view class="cu-form-textarea" style="border: none;">
<view class="cu-form-title">动火审批人意见</view> <view class="cu-form-title">动火审批人意见</view>
<textarea maxlength="255" disabled="disabled" v-model="pd.APPROVE_CONTENT"></textarea> <textarea maxlength="255" disabled="disabled" v-model="formattedApproveContent"></textarea>
</view> </view>
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee"> <view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee">
<view class="cu-form-group" > <view class="cu-form-group" >
@ -328,7 +332,7 @@
</view> </view>
<view class="cu-form-textarea" style="border: none;"> <view class="cu-form-textarea" style="border: none;">
<view class="cu-form-title">动火前验票负责人意见</view> <view class="cu-form-title">动火前验票负责人意见</view>
<textarea maxlength="255" disabled="disabled" v-model="pd.MONITOR_CONTENT"></textarea> <textarea maxlength="255" disabled="disabled" v-model="formattedMonitorContent"></textarea>
</view> </view>
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee"> <view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee">
<view class="cu-form-group" > <view class="cu-form-group" >
@ -340,6 +344,27 @@
</view> </view>
</view> </view>
<view class="cu-form-group">
<view class="title">动火已完成</view>
<radio-group @change="updateRadioValue('FIRE_COMPLETED', $event)">
<radio value="0" :checked="pd.FIRE_COMPLETED === '0'"></radio>
<radio value="1" :checked="pd.FIRE_COMPLETED === '1'"></radio>
</radio-group>
</view>
<view class="cu-form-group">
<view class="title">作业现场已清理</view>
<radio-group @change="updateRadioValue('SITE_CLEANED', $event)">
<radio value="0" :checked="pd.SITE_CLEANED === '0'"></radio>
<radio value="1" :checked="pd.SITE_CLEANED === '1'"></radio>
</radio-group>
</view>
<view class="cu-form-group">
<view class="title">无遗留火种</view>
<radio-group @change="updateRadioValue('NO_REMAINING_EMBERS', $event)">
<radio value="0" :checked="pd.NO_REMAINING_EMBERS === '0'"></radio>
<radio value="1" :checked="pd.NO_REMAINING_EMBERS === '1'"></radio>
</radio-group>
</view>
<view class="cu-form-textarea" style="border-bottom: 1px dashed #eee;"> <view class="cu-form-textarea" style="border-bottom: 1px dashed #eee;">
<view class="cu-form-title">完工验收</view> <view class="cu-form-title">完工验收</view>
@ -385,10 +410,10 @@
import { import {
basePath, corpinfoId, deptId, loginUser, formatDate, loginSession, baseImgPath basePath, corpinfoId, deptId, loginUser, formatDate, loginSession, baseImgPath
} from '@/common/tool.js'; } from '@/common/tool.js';
import tkiTree from "@/components/select-tree/select-tree.vue" import tkiTree from "@/components/select-tree/select-tree.vue";
import writingBoard from "@/components/writing-board/writing-board.vue" import writingBoard from "@/components/writing-board/writing-board.vue";
import gcoord from '@/common/gcoord.js'
import ruiDatePicker from '@/components/rattenking-dtpicker/rattenking-dtpicker.vue'; import ruiDatePicker from '@/components/rattenking-dtpicker/rattenking-dtpicker.vue';
export default { export default {
components: { components: {
tkiTree, ruiDatePicker, writingBoard tkiTree, ruiDatePicker, writingBoard
@ -398,18 +423,17 @@
baseImgPath: baseImgPath, baseImgPath: baseImgPath,
buttonloading: false, buttonloading: false,
isUps: false, isUps: false,
forbidEdit:true,// forbidEdit: true,
msg: 'add', msg: 'add',
files: [], files: [],
noClick: true, noClick: true,
treeNode:[],// treeNode: [],
levelList: [ levelList: [
{ id: '特级', name: '特级' }, { id: '特级', name: '特级' },
{ id: '一级', name: '一级' }, { id: '一级', name: '一级' },
{ id: '二级', name: '二级' }, { id: '二级', name: '二级' },
], ],
levelindex: -1, levelindex: -1,
analyzeUserList: [], analyzeUserList: [],
analyzeindex: -1, analyzeindex: -1,
confirmUserList: [], confirmUserList: [],
@ -427,8 +451,11 @@
acceptUserList: [], acceptUserList: [],
acceptindex: -1, acceptindex: -1,
pd: { pd: {
FIRE_COMPLETED: '0',
SITE_CLEANED: '0',
NO_REMAINING_EMBERS: '0',
OTHER_PROTECTIVE_MEASURES: ';_;;_;;_;;_;;_;;_;;_;' OTHER_PROTECTIVE_MEASURES: ';_;;_;;_;;_;;_;;_;;_;'
},// },
measuresList: [], measuresList: [],
gasList: [], gasList: [],
rules: [ rules: [
@ -462,6 +489,26 @@
imgList: [], imgList: [],
} }
}, },
computed: {
formattedConfirmContent() {
return this.pd.CONFIRM_CONTENT && this.pd.CONFIRM_CONTENT !== '无' ? this.pd.CONFIRM_CONTENT : '同意';
},
formattedExamineApprovalOpinions() {
return this.pd.EXAMINE_APPROVAL_OPINIONS && this.pd.EXAMINE_APPROVAL_OPINIONS !== '' ? this.pd.EXAMINE_APPROVAL_OPINIONS : '同意';
},
formattedLeaderContent() {
return this.pd.LEADER_CONTENT && this.pd.LEADER_CONTENT !== '无' ? this.pd.LEADER_CONTENT : '同意';
},
formattedAuditContent() {
return this.pd.AUDIT_CONTENT && this.pd.AUDIT_CONTENT !== '无' ? this.pd.AUDIT_CONTENT : '同意';
},
formattedApproveContent() {
return this.pd.APPROVE_CONTENT && this.pd.APPROVE_CONTENT !== '无' ? this.pd.APPROVE_CONTENT : '同意';
},
formattedMonitorContent() {
return this.pd.MONITOR_CONTENT && this.pd.MONITOR_CONTENT !== '无' ? this.pd.MONITOR_CONTENT : '同意';
}
},
onLoad(event) { onLoad(event) {
this.todayDate = formatDate(new Date(), 'yyyy-MM-dd hh:mm'); this.todayDate = formatDate(new Date(), 'yyyy-MM-dd hh:mm');
this.pd.HOTWORK_ID = event.HOTWORK_ID; this.pd.HOTWORK_ID = event.HOTWORK_ID;
@ -480,10 +527,11 @@
this.getDept(); this.getDept();
this.getLimitSpace(); this.getLimitSpace();
loginSession(); loginSession();
}, },
methods: { methods: {
// updateRadioValue(key, event) {
this.pd[key] = event.detail.value;
},
goToDetail(e) { goToDetail(e) {
uni.navigateTo({ uni.navigateTo({
url: '/pages/application/hotwork_cfd/hotwork-gas/gas-list?HOTWORK_ID=' + e url: '/pages/application/hotwork_cfd/hotwork-gas/gas-list?HOTWORK_ID=' + e
@ -550,33 +598,72 @@
}, },
async goSubmit(STATUS) { async goSubmit(STATUS) {
var _this = this; var _this = this;
let required = true let required = true;
uni.showLoading({ uni.showLoading({
title: '请稍候' title: '请稍候'
}) });
this.buttonloading = true; //
if (STATUS == 8) { if (STATUS == 8) {
if (_this.pd.FIRE_COMPLETED === "0") {
uni.showModal({
title: "提示",
content: "动火已完成为“否”,不允许通过。",
showCancel: false,
confirmText: "知道了"
});
this.buttonloading = false; //
uni.hideLoading(); //
return;
}
if (_this.pd.SITE_CLEANED === "0") {
uni.showModal({
title: "提示",
content: "作业现场已清理为“否”,不允许通过。",
showCancel: false,
confirmText: "知道了"
});
this.buttonloading = false; //
uni.hideLoading(); //
return;
}
if (_this.pd.NO_REMAINING_EMBERS === "0") {
uni.showModal({
title: "提示",
content: "无遗留火种为“否”,不允许通过。",
showCancel: false,
confirmText: "知道了"
});
this.buttonloading = false; //
uni.hideLoading(); //
return;
}
if (_this.imgList.length <= 0) { if (_this.imgList.length <= 0) {
uni.showToast({ uni.showToast({
icon: 'none', icon: 'none',
title: '请签字', title: '请签字',
duration: 1500 duration: 1500
}); });
this.buttonloading = false; //
uni.hideLoading(); //
return; return;
} }
} }
var fileList = []; var fileList = [];
var signtime = []; var signtime = [];
const formData = {} const formData = {}
Object.keys(this.pd).map(key => { Object.keys(this.pd).map(key => {
formData[key] = this.pd[key] formData[key] = this.pd[key]
}) });
this.uploadImgFaults(fileList, signtime) this.uploadImgFaults(fileList, signtime);
formData.SIGNTIME = signtime.join(",") formData.SIGNTIME = signtime.join(",");
formData.CORPINFO_ID = corpinfoId formData.CORPINFO_ID = corpinfoId;
formData.CREATOR = loginUser.USER_ID formData.CREATOR = loginUser.USER_ID;
formData.OPERATOR = loginUser.USER_ID formData.OPERATOR = loginUser.USER_ID;
formData.ACTION_USER = loginUser.NAME formData.ACTION_USER = loginUser.NAME;
formData.APPLY_STATUS = STATUS formData.APPLY_STATUS = STATUS;
if (STATUS == 8) { if (STATUS == 8) {
if (new Date(this.pd.WORK_START_DATE).getTime() - new Date().getTime() > 0) { if (new Date(this.pd.WORK_START_DATE).getTime() - new Date().getTime() > 0) {
uni.showModal({ uni.showModal({
@ -586,13 +673,13 @@
cancelText: '取消', cancelText: '取消',
confirmText: '确定', confirmText: '确定',
success: res => { success: res => {
this.buttonloading = false this.buttonloading = false; //
_this.goback() this.goback();
} }
}) });
} else { } else {
formData.STATUS = STATUS formData.STATUS = STATUS;
this.buttonloading = true this.buttonloading = true;
uni.uploadFile({ uni.uploadFile({
url: basePath + '/app/hotwork/cfd/editAcceptStatus', url: basePath + '/app/hotwork/cfd/editAcceptStatus',
files: fileList, files: fileList,
@ -603,21 +690,23 @@
title: '保存成功', title: '保存成功',
duration: 2000 duration: 2000
}); });
_this.goback() this.goback();
this.buttonloading = false this.buttonloading = false; //
uni.hideLoading(); //
}, },
fail: (err) => { fail: (err) => {
uni.hideLoading(); uni.hideLoading(); //
this.buttonloading = false; //
uni.showModal({ uni.showModal({
content: err.errMsg, content: err.errMsg,
showCancel: false showCancel: false
}); });
} }
}) });
} }
} else { } else {
formData.STATUS = STATUS formData.STATUS = STATUS;
this.buttonloading = true this.buttonloading = true;
uni.request({ uni.request({
url: basePath + "/app/hotwork/cfd/editStatus", url: basePath + "/app/hotwork/cfd/editStatus",
method: 'POST', method: 'POST',
@ -632,17 +721,19 @@
title: '保存成功', title: '保存成功',
duration: 2000 duration: 2000
}); });
_this.goback() this.goback();
this.buttonloading = false this.buttonloading = false; //
uni.hideLoading(); //
}, },
fail: (err) => { fail: (err) => {
uni.hideLoading(); uni.hideLoading(); //
this.buttonloading = false; //
uni.showModal({ uni.showModal({
content: err.errMsg, content: err.errMsg,
showCancel: false showCancel: false
}); });
} }
}) });
} }
}, },
getGasFlag() { getGasFlag() {
@ -747,7 +838,6 @@
} }
}) })
}, },
//
getLimitSpace() { getLimitSpace() {
var _this = this; var _this = this;
uni.request({ uni.request({
@ -792,7 +882,6 @@
} }
}); });
}, },
//
getUserList(dept, list, i) { getUserList(dept, list, i) {
// post // post
var _this = this var _this = this
@ -822,10 +911,7 @@
} }
}) })
}, },
//
/*
*手写板
*/
showModal(ISSELF) { showModal(ISSELF) {
this.ISSELF = ISSELF this.ISSELF = ISSELF
this.modalName = 'Modal' this.modalName = 'Modal'
@ -834,7 +920,6 @@
this.modalName = null this.modalName = null
}, },
// //
subCanvas(e) { subCanvas(e) {
e.SIGNER_TIME = formatDate(new Date(), 'yyyy-MM-dd hh:mm') e.SIGNER_TIME = formatDate(new Date(), 'yyyy-MM-dd hh:mm')
this.imgList.push(e); this.imgList.push(e);
@ -852,9 +937,7 @@
DelImg(index) { DelImg(index) {
this.imgList.splice(index, 1) this.imgList.splice(index, 1)
}, },
/* //
*分析人
*/
// //
analyzetreeConfirm(e) { analyzetreeConfirm(e) {
this.isUps = false; this.isUps = false;
@ -878,10 +961,7 @@
this.pd.ANALYZE_USER_NAME = this.analyzeUserList[this.analyzeindex].NAME; this.pd.ANALYZE_USER_NAME = this.analyzeUserList[this.analyzeindex].NAME;
this.$forceUpdate();// this.$forceUpdate();//
}, },
//
/*
*确认人
*/
// //
confirmtreeConfirm(e) { confirmtreeConfirm(e) {
this.isUps = false; this.isUps = false;
@ -905,10 +985,7 @@
this.pd.CONFIRM_USER_NAME = this.confirmUserList[this.confirmindex].NAME; this.pd.CONFIRM_USER_NAME = this.confirmUserList[this.confirmindex].NAME;
this.$forceUpdate();// this.$forceUpdate();//
}, },
//
/*
*监护人
*/
// //
guardiantreeConfirm(e) { guardiantreeConfirm(e) {
this.isUps = false; this.isUps = false;
@ -932,11 +1009,7 @@
this.pd.GUARDIAN_USER_NAME = this.guardianUserList[this.guardianindex].NAME; this.pd.GUARDIAN_USER_NAME = this.guardianUserList[this.guardianindex].NAME;
this.$forceUpdate();// this.$forceUpdate();//
}, },
//
/*
*单位领导
*/
// //
leadertreeConfirm(e) { leadertreeConfirm(e) {
this.isUps = false; this.isUps = false;
@ -960,10 +1033,7 @@
this.pd.LEADER_USER_NAME = this.leaderUserList[this.leaderindex].NAME; this.pd.LEADER_USER_NAME = this.leaderUserList[this.leaderindex].NAME;
this.$forceUpdate();// this.$forceUpdate();//
}, },
//
/*
*安全管理部门负责人
*/
// //
audittreeConfirm(e) { audittreeConfirm(e) {
this.isUps = false; this.isUps = false;
@ -987,10 +1057,7 @@
this.pd.AUDIT_USER_NAME = this.auditUserList[this.auditindex].NAME; this.pd.AUDIT_USER_NAME = this.auditUserList[this.auditindex].NAME;
this.$forceUpdate();// this.$forceUpdate();//
}, },
//
/*
*审批人
*/
// //
approvetreeConfirm(e) { approvetreeConfirm(e) {
this.isUps = false; this.isUps = false;
@ -1014,10 +1081,7 @@
this.pd.APPROVE_USER_NAME = this.approveUserList[this.approveindex].NAME; this.pd.APPROVE_USER_NAME = this.approveUserList[this.approveindex].NAME;
this.$forceUpdate();// this.$forceUpdate();//
}, },
//
/*
*在岗班长
*/
// //
monitortreeConfirm(e) { monitortreeConfirm(e) {
this.isUps = false; this.isUps = false;
@ -1041,9 +1105,7 @@
this.pd.MONITOR_USER_NAME = this.monitorUserList[this.monitorindex].NAME; this.pd.MONITOR_USER_NAME = this.monitorUserList[this.monitorindex].NAME;
this.$forceUpdate();// this.$forceUpdate();//
}, },
/* //
*验收部门
*/
// //
accepttreeConfirm(e) { accepttreeConfirm(e) {
this.isUps = false; this.isUps = false;
@ -1067,7 +1129,6 @@
this.pd.ACCEPT_USER_NAME = this.acceptUserList[this.acceptindex].NAME; this.pd.ACCEPT_USER_NAME = this.acceptUserList[this.acceptindex].NAME;
this.$forceUpdate();// this.$forceUpdate();//
}, },
changeStartDate(e) { changeStartDate(e) {
this.pd.WORK_START_DATE = e this.pd.WORK_START_DATE = e
this.$forceUpdate();// this.$forceUpdate();//
@ -1076,11 +1137,9 @@
this.pd.WORK_END_DATE = e this.pd.WORK_END_DATE = e
this.$forceUpdate();// this.$forceUpdate();//
}, },
changeRadio(i, value) { changeRadio(i, value) {
this.measuresList[i].STATUS = value this.measuresList[i].STATUS = value
}, },
goback() { goback() {
var pages = getCurrentPages(); // var pages = getCurrentPages(); //
var prePage = pages[pages.length - 2]; // var prePage = pages[pages.length - 2]; //

View File

@ -88,10 +88,12 @@
<uni-table name='measuresList' border stripe emptyText="暂无更多数据" > <uni-table name='measuresList' border stripe emptyText="暂无更多数据" >
<!-- 表头行 --> <!-- 表头行 -->
<uni-tr> <uni-tr>
<uni-th align="center" style="font-weight: bold;">&nbsp;</uni-th>
<uni-th align="center" style="font-weight: bold;">主要安全措施</uni-th> <uni-th align="center" style="font-weight: bold;">主要安全措施</uni-th>
<uni-th align="center" style="font-weight: bold;width: 100px">操作</uni-th> <uni-th align="center" style="font-weight: bold;width: 100px">操作</uni-th>
</uni-tr> </uni-tr>
<uni-tr v-for="(item,index) in measuresList" :key="item.BUS_HOTWORK_MEASURES_ID"> <uni-tr v-for="(item,index) in measuresList" :key="item.BUS_HOTWORK_MEASURES_ID">
<uni-td align="center">{{ index + 1 }}</uni-td>
<uni-td> <uni-td>
<view style="margin-bottom: 20upx;"> <view style="margin-bottom: 20upx;">
{{item.PROTECTIVE_MEASURES}} {{item.PROTECTIVE_MEASURES}}

View File

@ -446,7 +446,7 @@
</view> </view>
</view> </view>
</view> </view>
<view v-if="pd.APPROVAL_SIGNATURE"> <view v-if="pd.EXAMINE_APPROVAL_SIGNATURE">
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee"> <view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee">
<view class="cu-form-textarea" style="border: none;"> <view class="cu-form-textarea" style="border: none;">
<view class="cu-form-title">项目主管部门负责意见</view> <view class="cu-form-title">项目主管部门负责意见</view>

View File

@ -107,10 +107,12 @@
<uni-table name='measuresList' border stripe emptyText="暂无更多数据" > <uni-table name='measuresList' border stripe emptyText="暂无更多数据" >
<!-- 表头行 --> <!-- 表头行 -->
<uni-tr> <uni-tr>
<uni-th align="center" style="font-weight: bold;">&nbsp;</uni-th>
<uni-th align="center" style="font-weight: bold;">主要安全措施</uni-th> <uni-th align="center" style="font-weight: bold;">主要安全措施</uni-th>
<uni-th align="center" style="font-weight: bold;width: 100px">操作</uni-th> <uni-th align="center" style="font-weight: bold;width: 100px">操作</uni-th>
</uni-tr> </uni-tr>
<uni-tr v-for="(item,index) in measuresList" :key="item.BUS_HOTWORK_MEASURES_ID"> <uni-tr v-for="(item,index) in measuresList" :key="item.BUS_HOTWORK_MEASURES_ID">
<uni-td align="center">{{ index + 1 }}</uni-td>
<uni-td> <uni-td>
<view style="margin-bottom: 20upx;"> <view style="margin-bottom: 20upx;">
{{item.PROTECTIVE_MEASURES}} {{item.PROTECTIVE_MEASURES}}
@ -249,7 +251,7 @@
<view class="wui-form-list"> <view class="wui-form-list">
<view class="cu-form-textarea" style="border: none;"> <view class="cu-form-textarea" style="border: none;">
<view class="cu-form-title">作业负责人意见</view> <view class="cu-form-title">作业负责人意见</view>
<textarea maxlength="255" disabled="disabled" v-model="pd.CONFIRM_CONTENT"></textarea> <textarea maxlength="255" disabled="disabled" v-model="formattedConfirmContent"></textarea>
</view> </view>
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee"> <view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee">
<view class="cu-form-group" > <view class="cu-form-group" >
@ -260,10 +262,21 @@
<image :src="baseImgPath + pd.CONFIRM_USER_SIGNER_PATH" mode="aspectFill" @click="previewImage(baseImgPath + pd.CONFIRM_USER_SIGNER_PATH)" style="height: 100%;"></image> <image :src="baseImgPath + pd.CONFIRM_USER_SIGNER_PATH" mode="aspectFill" @click="previewImage(baseImgPath + pd.CONFIRM_USER_SIGNER_PATH)" style="height: 100%;"></image>
</view> </view>
</view> </view>
<view>
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee">
<view class="cu-form-textarea" style="border: none;">
<view class="cu-form-title">项目主管部门负责意见</view>
<textarea maxlength="255" disabled="disabled" v-model="formattedExamineApprovalOpinions"></textarea>
</view>
</view>
<view class="cu-form-group" >
<view class="title">项目主管部门负责人</view>
{{pd.EXAMINE_USER_NAME}} {{pd.EXAMINE_APPROVAL_CREATE_TIME}}
</view>
</view>
<view class="cu-form-textarea" style="border: none;"> <view class="cu-form-textarea" style="border: none;">
<view class="cu-form-title">属地监管单位意见</view> <view class="cu-form-title">属地监管单位意见</view>
<textarea maxlength="255" disabled="disabled" v-model="pd.LEADER_CONTENT"></textarea> <textarea maxlength="255" disabled="disabled" v-model="formattedLeaderContent"></textarea>
</view> </view>
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee"> <view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee">
<view class="cu-form-group" > <view class="cu-form-group" >
@ -277,7 +290,7 @@
<view v-if="pd.AUDIT_USER_SIGNER_PATH"> <view v-if="pd.AUDIT_USER_SIGNER_PATH">
<view class="cu-form-textarea" style="border: none;"> <view class="cu-form-textarea" style="border: none;">
<view class="cu-form-title">安全管理部门意见</view> <view class="cu-form-title">安全管理部门意见</view>
<textarea maxlength="255" disabled="disabled" v-model="pd.AUDIT_CONTENT"></textarea> <textarea maxlength="255" disabled="disabled" v-model="formattedAuditContent"></textarea>
</view> </view>
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee"> <view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee">
<view class="cu-form-group" > <view class="cu-form-group" >
@ -409,6 +422,20 @@
imgList:[], imgList:[],
} }
}, },
computed: {
formattedConfirmContent() {
return this.pd.CONFIRM_CONTENT && this.pd.CONFIRM_CONTENT !== '无' ? this.pd.CONFIRM_CONTENT : '同意';
},
formattedExamineApprovalOpinions() {
return this.pd.EXAMINE_APPROVAL_OPINIONS && this.pd.EXAMINE_APPROVAL_OPINIONS !== '' ? this.pd.EXAMINE_APPROVAL_OPINIONS : '同意';
},
formattedLeaderContent() {
return this.pd.LEADER_CONTENT && this.pd.LEADER_CONTENT !== '无' ? this.pd.LEADER_CONTENT : '同意';
},
formattedAuditContent() {
return this.pd.AUDIT_CONTENT && this.pd.AUDIT_CONTENT !== '无' ? this.pd.AUDIT_CONTENT : '同意';
}
},
onLoad(event){ onLoad(event){
this.todayDate = formatDate(new Date(), 'yyyy-MM-dd hh:mm'); this.todayDate = formatDate(new Date(), 'yyyy-MM-dd hh:mm');
this.pd.HOTWORK_ID = event.HOTWORK_ID; this.pd.HOTWORK_ID = event.HOTWORK_ID;

View File

@ -454,7 +454,7 @@
<!-- <view class="title">监护人</view>--> <!-- <view class="title">监护人</view>-->
<!-- {{pd.GUARDIAN_USER_NAME}} {{pd.GUARDIAN_USER_SIGNER_TIME}}--> <!-- {{pd.GUARDIAN_USER_NAME}} {{pd.GUARDIAN_USER_SIGNER_TIME}}-->
<!-- </view>--> <!-- </view>-->
<view v-if="pd.APPROVAL_SIGNATURE"> <view v-if="pd.EXAMINE_APPROVAL_SIGNATURE">
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee"> <view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee">
<view class="cu-form-textarea" style="border: none;"> <view class="cu-form-textarea" style="border: none;">
<view class="cu-form-title">项目主管部门负责意见</view> <view class="cu-form-title">项目主管部门负责意见</view>

View File

@ -131,10 +131,12 @@
<uni-table name='measuresList' border stripe emptyText="暂无更多数据" > <uni-table name='measuresList' border stripe emptyText="暂无更多数据" >
<!-- 表头行 --> <!-- 表头行 -->
<uni-tr> <uni-tr>
<uni-th align="center" style="font-weight: bold;">&nbsp;</uni-th>
<uni-th align="center" style="font-weight: bold;">主要安全措施</uni-th> <uni-th align="center" style="font-weight: bold;">主要安全措施</uni-th>
<uni-th align="center" style="font-weight: bold;width: 100px">操作</uni-th> <uni-th align="center" style="font-weight: bold;width: 100px">操作</uni-th>
</uni-tr> </uni-tr>
<uni-tr v-for="(item,index) in measuresList" :key="item.BUS_HOTWORK_MEASURES_ID"> <uni-tr v-for="(item,index) in measuresList" :key="item.BUS_HOTWORK_MEASURES_ID">
<uni-td align="center">{{ index + 1 }}</uni-td>
<uni-td> <uni-td>
<view style="margin-bottom: 20upx;"> <view style="margin-bottom: 20upx;">
{{item.PROTECTIVE_MEASURES}} {{item.PROTECTIVE_MEASURES}}
@ -271,7 +273,7 @@
<view class="wui-form-list"> <view class="wui-form-list">
<view class="cu-form-textarea" style="border: none;"> <view class="cu-form-textarea" style="border: none;">
<view class="cu-form-title">作业负责人意见</view> <view class="cu-form-title">作业负责人意见</view>
<textarea maxlength="255" disabled="disabled" v-model="pd.CONFIRM_CONTENT"></textarea> <textarea maxlength="255" disabled="disabled" v-model="formattedConfirmContent"></textarea>
</view> </view>
<!-- <view class="cu-form-group" style="border-bottom: 1px solid #eee;border-top: 1px dashed #eee;;">--> <!-- <view class="cu-form-group" style="border-bottom: 1px solid #eee;border-top: 1px dashed #eee;;">-->
<!-- <view class="title">作业负责人</view>--> <!-- <view class="title">作业负责人</view>-->
@ -295,10 +297,22 @@
<!-- <view class="title">监护人</view>--> <!-- <view class="title">监护人</view>-->
<!-- {{pd.GUARDIAN_USER_NAME}} {{pd.GUARDIAN_USER_SIGNER_TIME}}--> <!-- {{pd.GUARDIAN_USER_NAME}} {{pd.GUARDIAN_USER_SIGNER_TIME}}-->
<!-- </view>--> <!-- </view>-->
<view>
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee">
<view class="cu-form-textarea" style="border: none;">
<view class="cu-form-title">项目主管部门负责意见</view>
<textarea maxlength="255" disabled="disabled" v-model="formattedExamineApprovalOpinions"></textarea>
</view>
</view>
<view class="cu-form-group" >
<view class="title">项目主管部门负责人</view>
{{pd.EXAMINE_USER_NAME}} {{pd.EXAMINE_APPROVAL_CREATE_TIME}}
</view>
</view>
<view>
<view class="cu-form-textarea" style="border: none;"> <view class="cu-form-textarea" style="border: none;">
<view class="cu-form-title">属地监管单位意见</view> <view class="cu-form-title">属地监管单位意见</view>
<textarea maxlength="255" disabled="disabled" v-model="pd.LEADER_CONTENT"></textarea> <textarea maxlength="255" disabled="disabled" v-model="formattedLeaderContent"></textarea>
</view> </view>
<!-- <view class="cu-form-group" style="border-bottom: 1px solid #eee;border-top: 1px dashed #eee;;">--> <!-- <view class="cu-form-group" style="border-bottom: 1px solid #eee;border-top: 1px dashed #eee;;">-->
<!-- <view class="title">动火点属地监管单位负责人</view>--> <!-- <view class="title">动火点属地监管单位负责人</view>-->
@ -313,7 +327,7 @@
<image :src="baseImgPath + pd.LEADER_USER_SIGNER_PATH" mode="aspectFill" @click="previewImage(baseImgPath + pd.LEADER_USER_SIGNER_PATH)" style="height: 100%;"></image> <image :src="baseImgPath + pd.LEADER_USER_SIGNER_PATH" mode="aspectFill" @click="previewImage(baseImgPath + pd.LEADER_USER_SIGNER_PATH)" style="height: 100%;"></image>
</view> </view>
</view> </view>
</view>
<view class="cu-form-textarea" style="border-bottom: 1px dashed #eee;"> <view class="cu-form-textarea" style="border-bottom: 1px dashed #eee;">
<view class="cu-form-title">安全管理部门意见</view> <view class="cu-form-title">安全管理部门意见</view>
<textarea maxlength="255" v-model="pd.CONTENT" placeholder="请输入意见"></textarea> <textarea maxlength="255" v-model="pd.CONTENT" placeholder="请输入意见"></textarea>
@ -432,6 +446,17 @@
imgList:[], imgList:[],
} }
}, },
computed: {
formattedConfirmContent() {
return this.pd.CONFIRM_CONTENT && this.pd.CONFIRM_CONTENT !== '无' ? this.pd.CONFIRM_CONTENT : '同意';
},
formattedExamineApprovalOpinions() {
return this.pd.EXAMINE_APPROVAL_OPINIONS && this.pd.EXAMINE_APPROVAL_OPINIONS !== '' ? this.pd.EXAMINE_APPROVAL_OPINIONS : '同意';
},
formattedLeaderContent() {
return this.pd.LEADER_CONTENT && this.pd.LEADER_CONTENT !== '无' ? this.pd.LEADER_CONTENT : '同意';
}
},
onLoad(event){ onLoad(event){
this.todayDate = formatDate(new Date(), 'yyyy-MM-dd hh:mm'); this.todayDate = formatDate(new Date(), 'yyyy-MM-dd hh:mm');
this.pd.HOTWORK_ID = event.HOTWORK_ID; this.pd.HOTWORK_ID = event.HOTWORK_ID;

View File

@ -131,10 +131,12 @@
<uni-table name='measuresList' border stripe emptyText="暂无更多数据" > <uni-table name='measuresList' border stripe emptyText="暂无更多数据" >
<!-- 表头行 --> <!-- 表头行 -->
<uni-tr> <uni-tr>
<uni-th align="center" style="font-weight: bold;">&nbsp;</uni-th>
<uni-th align="center" style="font-weight: bold;">主要安全措施</uni-th> <uni-th align="center" style="font-weight: bold;">主要安全措施</uni-th>
<uni-th align="center" style="font-weight: bold;width: 100px">操作</uni-th> <uni-th align="center" style="font-weight: bold;width: 100px">操作</uni-th>
</uni-tr> </uni-tr>
<uni-tr v-for="(item,index) in measuresList" :key="item.BUS_HOTWORK_MEASURES_ID"> <uni-tr v-for="(item,index) in measuresList" :key="item.BUS_HOTWORK_MEASURES_ID">
<uni-td align="center">{{ index + 1 }}</uni-td>
<uni-td> <uni-td>
<view style="margin-bottom: 20upx;"> <view style="margin-bottom: 20upx;">
{{item.PROTECTIVE_MEASURES}} {{item.PROTECTIVE_MEASURES}}

View File

@ -442,7 +442,7 @@
</view> </view>
</view> </view>
</view> </view>
<view v-if="pd.APPROVAL_SIGNATURE"> <view v-if="pd.EXAMINE_APPROVAL_SIGNATURE">
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee"> <view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee">
<view class="cu-form-textarea" style="border: none;"> <view class="cu-form-textarea" style="border: none;">
<view class="cu-form-title">项目主管部门负责意见</view> <view class="cu-form-title">项目主管部门负责意见</view>

View File

@ -102,10 +102,12 @@
<uni-table name='measuresList' border stripe emptyText="暂无更多数据" > <uni-table name='measuresList' border stripe emptyText="暂无更多数据" >
<!-- 表头行 --> <!-- 表头行 -->
<uni-tr> <uni-tr>
<uni-th align="center" style="font-weight: bold;">&nbsp;</uni-th>
<uni-th align="center" style="font-weight: bold;">主要安全措施</uni-th> <uni-th align="center" style="font-weight: bold;">主要安全措施</uni-th>
<uni-th align="center" style="font-weight: bold;width: 80px">操作</uni-th> <uni-th align="center" style="font-weight: bold;width: 80px">操作</uni-th>
</uni-tr> </uni-tr>
<uni-tr v-for="(item,index) in measuresList" :key="item.BUS_HOTWORK_MEASURES_ID"> <uni-tr v-for="(item,index) in measuresList" :key="item.BUS_HOTWORK_MEASURES_ID">
<uni-td align="center">{{ index + 1 }}</uni-td>
<uni-td> <uni-td>
<view style="margin-bottom: 20upx;"> <view style="margin-bottom: 20upx;">
{{item.PROTECTIVE_MEASURES}} {{item.PROTECTIVE_MEASURES}}

View File

@ -107,10 +107,12 @@
<uni-table name='measuresList' border stripe emptyText="暂无更多数据" > <uni-table name='measuresList' border stripe emptyText="暂无更多数据" >
<!-- 表头行 --> <!-- 表头行 -->
<uni-tr> <uni-tr>
<uni-th align="center" style="font-weight: bold;">&nbsp;</uni-th>
<uni-th align="center" style="font-weight: bold;">主要安全措施</uni-th> <uni-th align="center" style="font-weight: bold;">主要安全措施</uni-th>
<uni-th align="center" style="font-weight: bold;width: 100px">操作</uni-th> <uni-th align="center" style="font-weight: bold;width: 100px">操作</uni-th>
</uni-tr> </uni-tr>
<uni-tr v-for="(item,index) in measuresList" :key="item.BUS_HOTWORK_MEASURES_ID"> <uni-tr v-for="(item,index) in measuresList" :key="item.BUS_HOTWORK_MEASURES_ID">
<uni-td align="center">{{ index + 1 }}</uni-td>
<uni-td> <uni-td>
<view style="margin-bottom: 20upx;"> <view style="margin-bottom: 20upx;">
{{item.PROTECTIVE_MEASURES}} {{item.PROTECTIVE_MEASURES}}

View File

@ -659,7 +659,7 @@
return this.pd.LEADER_CONTENT && this.pd.LEADER_CONTENT !== '无' ? this.pd.LEADER_CONTENT : '同意'; return this.pd.LEADER_CONTENT && this.pd.LEADER_CONTENT !== '无' ? this.pd.LEADER_CONTENT : '同意';
}, },
formattedAuditContent() { formattedAuditContent() {
return this.pd.AUDIT_CONTENT && this.pd.AUDIT_CONTENT !== '' ? this.pd.AUDIT_CONTENT : '同意'; return this.pd.AUDIT_CONTENT && this.pd.AUDIT_CONTENT !== '' ? this.pd.AUDIT_CONTENT : '同意';
}, },
formattedApproveContent() { formattedApproveContent() {
return this.pd.APPROVE_CONTENT && this.pd.APPROVE_CONTENT !== '无' ? this.pd.APPROVE_CONTENT : '同意'; return this.pd.APPROVE_CONTENT && this.pd.APPROVE_CONTENT !== '无' ? this.pd.APPROVE_CONTENT : '同意';

View File

@ -102,10 +102,12 @@
<uni-table name='measuresList' border stripe emptyText="暂无更多数据" > <uni-table name='measuresList' border stripe emptyText="暂无更多数据" >
<!-- 表头行 --> <!-- 表头行 -->
<uni-tr> <uni-tr>
<uni-th align="center" style="font-weight: bold;">&nbsp;</uni-th>
<uni-th align="center" style="font-weight: bold;">主要安全措施</uni-th> <uni-th align="center" style="font-weight: bold;">主要安全措施</uni-th>
<uni-th align="center" style="font-weight: bold;width: 100px">操作</uni-th> <uni-th align="center" style="font-weight: bold;width: 100px">操作</uni-th>
</uni-tr> </uni-tr>
<uni-tr v-for="(item,index) in measuresList" :key="item.BUS_HOTWORK_MEASURES_ID"> <uni-tr v-for="(item,index) in measuresList" :key="item.BUS_HOTWORK_MEASURES_ID">
<uni-td align="center">{{ index + 1 }}</uni-td>
<uni-td> <uni-td>
<view style="margin-bottom: 20upx;"> <view style="margin-bottom: 20upx;">
{{item.PROTECTIVE_MEASURES}} {{item.PROTECTIVE_MEASURES}}
@ -264,10 +266,9 @@
</view> </view>
</view> </view>
<view class="wui-form-list"> <view class="wui-form-list">
<view class="cu-form-textarea" style="border: none;"> <view class="cu-form-textarea" style="border: none;">
<view class="cu-form-title">作业负责人意见</view> <view class="cu-form-title">作业负责人意见</view>
<textarea maxlength="255" disabled="disabled" v-model="pd.CONFIRM_CONTENT"></textarea> <textarea maxlength="255" disabled="disabled" v-model="formattedConfirmContent"></textarea>
</view> </view>
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee"> <view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee">
<view class="cu-form-group" > <view class="cu-form-group" >
@ -278,9 +279,11 @@
<image :src="baseImgPath + pd.CONFIRM_USER_SIGNER_PATH" mode="aspectFill" @click="previewImage(baseImgPath + pd.CONFIRM_USER_SIGNER_PATH)" style="height: 100%;"></image> <image :src="baseImgPath + pd.CONFIRM_USER_SIGNER_PATH" mode="aspectFill" @click="previewImage(baseImgPath + pd.CONFIRM_USER_SIGNER_PATH)" style="height: 100%;"></image>
</view> </view>
</view> </view>
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee">
<view class="cu-form-textarea" style="border: none;"> <view class="cu-form-textarea" style="border: none;">
<view class="cu-form-title">项目主管部门负责人意见</view> <view class="cu-form-title">项目主管部门负责意见</view>
<textarea maxlength="255" disabled="disabled" v-model="pd.BELONGING_OPINIONS"></textarea> <textarea maxlength="255" disabled="disabled" v-model="formattedExamineApprovalOpinions"></textarea>
</view>
</view> </view>
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee"> <view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee">
<view class="cu-form-group" > <view class="cu-form-group" >
@ -410,6 +413,14 @@
imgList:[], imgList:[],
} }
}, },
computed: {
formattedConfirmContent() {
return this.pd.CONFIRM_CONTENT && this.pd.CONFIRM_CONTENT !== '无' ? this.pd.CONFIRM_CONTENT : '同意';
},
formattedExamineApprovalOpinions() {
return this.pd.EXAMINE_APPROVAL_OPINIONS && this.pd.EXAMINE_APPROVAL_OPINIONS !== '' ? this.pd.EXAMINE_APPROVAL_OPINIONS : '同意';
}
},
onLoad(event){ onLoad(event){
this.todayDate = formatDate(new Date(), 'yyyy-MM-dd hh:mm'); this.todayDate = formatDate(new Date(), 'yyyy-MM-dd hh:mm');
this.pd.HOTWORK_ID = event.HOTWORK_ID; this.pd.HOTWORK_ID = event.HOTWORK_ID;

View File

@ -136,10 +136,12 @@
<uni-table name='measuresList' border stripe emptyText="暂无更多数据" > <uni-table name='measuresList' border stripe emptyText="暂无更多数据" >
<!-- 表头行 --> <!-- 表头行 -->
<uni-tr> <uni-tr>
<uni-th align="center" style="font-weight: bold;">&nbsp;</uni-th>
<uni-th align="center" style="font-weight: bold;">主要安全措施</uni-th> <uni-th align="center" style="font-weight: bold;">主要安全措施</uni-th>
<uni-th align="center" style="font-weight: bold;width: 100px">操作</uni-th> <uni-th align="center" style="font-weight: bold;width: 100px">操作</uni-th>
</uni-tr> </uni-tr>
<uni-tr v-for="(item,index) in measuresList" :key="item.BUS_HOTWORK_MEASURES_ID"> <uni-tr v-for="(item,index) in measuresList" :key="item.BUS_HOTWORK_MEASURES_ID">
<uni-td align="center">{{ index + 1 }}</uni-td>
<uni-td> <uni-td>
<view style="margin-bottom: 20upx;"> <view style="margin-bottom: 20upx;">
{{item.PROTECTIVE_MEASURES}} {{item.PROTECTIVE_MEASURES}}
@ -452,7 +454,7 @@
<!-- <view class="title">监护人</view>--> <!-- <view class="title">监护人</view>-->
<!-- {{pd.GUARDIAN_USER_NAME}} {{pd.GUARDIAN_USER_SIGNER_TIME}}--> <!-- {{pd.GUARDIAN_USER_NAME}} {{pd.GUARDIAN_USER_SIGNER_TIME}}-->
<!-- </view>--> <!-- </view>-->
<view v-if="pd.APPROVAL_SIGNATURE"> <view v-if="pd.EXAMINE_APPROVAL_SIGNATURE">
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee"> <view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee">
<view class="cu-form-textarea" style="border: none;"> <view class="cu-form-textarea" style="border: none;">
<view class="cu-form-title">项目主管部门负责意见</view> <view class="cu-form-title">项目主管部门负责意见</view>

View File

@ -264,7 +264,7 @@
<view class="cu-form-textarea" style="border: none;"> <view class="cu-form-textarea" style="border: none;">
<view class="cu-form-title">作业负责人意见</view> <view class="cu-form-title">作业负责人意见</view>
<textarea maxlength="255" disabled="disabled" v-model="pd.CONFIRM_CONTENT"></textarea> <textarea maxlength="255" disabled="disabled" v-model="formattedConfirmContent"></textarea>
</view> </view>
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee"> <view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee">
<view class="cu-form-group" > <view class="cu-form-group" >
@ -276,23 +276,22 @@
</view> </view>
</view> </view>
<view class="cu-form-textarea" style="border: none;"> <view v-if="pd.EXAMINE_APPROVAL_SIGNATURE">
<view class="cu-form-title">项目主管部门负责人意见</view>
<textarea maxlength="255" disabled="disabled" v-model="pd.BELONGING_OPINIONS"></textarea>
</view>
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee"> <view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee">
<view class="cu-form-textarea" style="border: none;">
<view class="cu-form-title">项目主管部门负责意见</view>
<textarea maxlength="255" disabled="disabled" v-model="formattedExamineApprovalOpinions"></textarea>
</view>
</view>
<view class="cu-form-group" > <view class="cu-form-group" >
<view class="title">项目主管部门负责人</view> <view class="title">项目主管部门负责人</view>
{{pd.BELONGING_USER_NAME}} {{pd.BELONGING_SIGNATURE_TIME}} {{pd.EXAMINE_USER_NAME}} {{pd.EXAMINE_APPROVAL_CREATE_TIME}}
</view>
<view style="width: 400upx; height: 200upx; margin: 30upx;margin-top: 0upx;margin-bottom: 20upx;" >
<image :src="baseImgPath + pd.BELONGING_SIGNATURE" mode="aspectFill" @click="previewImage(baseImgPath + pd.BELONGING_SIGNATURE)" style="height: 100%;"></image>
</view> </view>
</view> </view>
<view v-if="pd.AUDIT_USER_SIGNER_PATH">
<view class="cu-form-textarea" style="border: none;"> <view class="cu-form-textarea" style="border: none;">
<view class="cu-form-title">属地监管单位意见</view> <view class="cu-form-title">属地监管单位意见</view>
<textarea maxlength="255" disabled="disabled" v-model="pd.LEADER_CONTENT"></textarea> <textarea maxlength="255" disabled="disabled" v-model="formattedLeaderContent"></textarea>
</view> </view>
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee"> <view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee">
<view class="cu-form-group" > <view class="cu-form-group" >
@ -303,10 +302,11 @@
<image :src="baseImgPath + pd.LEADER_USER_SIGNER_PATH" mode="aspectFill" @click="previewImage(baseImgPath + pd.LEADER_USER_SIGNER_PATH)" style="height: 100%;"></image> <image :src="baseImgPath + pd.LEADER_USER_SIGNER_PATH" mode="aspectFill" @click="previewImage(baseImgPath + pd.LEADER_USER_SIGNER_PATH)" style="height: 100%;"></image>
</view> </view>
</view> </view>
</view>
<view v-if="pd.AUDIT_USER_SIGNER_PATH"> <view v-if="pd.AUDIT_USER_SIGNER_PATH">
<view class="cu-form-textarea" style="border: none;"> <view class="cu-form-textarea" style="border: none;">
<view class="cu-form-title">安全管理部门意见</view> <view class="cu-form-title">安全管理部门意见</view>
<textarea maxlength="255" disabled="disabled" v-model="pd.AUDIT_CONTENT"></textarea> <textarea maxlength="255" disabled="disabled" v-model="formattedAuditContent"></textarea>
</view> </view>
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee"> <view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee">
<view class="cu-form-group" > <view class="cu-form-group" >
@ -320,8 +320,8 @@
</view> </view>
<view v-if="pd.APPROVE_USER_SIGNER_PATH"> <view v-if="pd.APPROVE_USER_SIGNER_PATH">
<view class="cu-form-textarea" style="border: none;"> <view class="cu-form-textarea" style="border: none;">
<view class="cu-form-title">动火审批意见</view> <view class="cu-form-title">动火审批意见</view>
<textarea maxlength="255" disabled="disabled" v-model="pd.APPROVE_CONTENT"></textarea> <textarea maxlength="255" disabled="disabled" v-model="formattedApproveContent"></textarea>
</view> </view>
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee"> <view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee">
<view class="cu-form-group" > <view class="cu-form-group" >
@ -453,6 +453,23 @@
imgList:[], imgList:[],
} }
}, },
computed: {
formattedConfirmContent() {
return this.pd.CONFIRM_CONTENT && this.pd.CONFIRM_CONTENT !== '无' ? this.pd.CONFIRM_CONTENT : '同意';
},
formattedExamineApprovalOpinions() {
return this.pd.EXAMINE_APPROVAL_OPINIONS && this.pd.EXAMINE_APPROVAL_OPINIONS !== '' ? this.pd.EXAMINE_APPROVAL_OPINIONS : '同意';
},
formattedLeaderContent() {
return this.pd.LEADER_CONTENT && this.pd.LEADER_CONTENT !== '无' ? this.pd.LEADER_CONTENT : '同意';
},
formattedAuditContent() {
return this.pd.AUDIT_CONTENT && this.pd.AUDIT_CONTENT !== '无' ? this.pd.AUDIT_CONTENT : '同意';
},
formattedApproveContent() {
return this.pd.APPROVE_CONTENT && this.pd.APPROVE_CONTENT !== '无' ? this.pd.APPROVE_CONTENT : '同意';
}
},
onLoad(event){ onLoad(event){
this.todayDate = formatDate(new Date(), 'yyyy-MM-dd hh:mm'); this.todayDate = formatDate(new Date(), 'yyyy-MM-dd hh:mm');
this.pd.HOTWORK_ID = event.HOTWORK_ID; this.pd.HOTWORK_ID = event.HOTWORK_ID;

View File

@ -446,7 +446,7 @@
</view> </view>
</view> </view>
</view> </view>
<view v-if="pd.APPROVAL_SIGNATURE"> <view>
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee"> <view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee">
<view class="cu-form-textarea" style="border: none;"> <view class="cu-form-textarea" style="border: none;">
<view class="cu-form-title">项目主管部门负责意见</view> <view class="cu-form-title">项目主管部门负责意见</view>
@ -659,7 +659,7 @@
return this.pd.LEADER_CONTENT && this.pd.LEADER_CONTENT !== '无' ? this.pd.LEADER_CONTENT : '同意'; return this.pd.LEADER_CONTENT && this.pd.LEADER_CONTENT !== '无' ? this.pd.LEADER_CONTENT : '同意';
}, },
formattedAuditContent() { formattedAuditContent() {
return this.pd.AUDIT_CONTENT && this.pd.AUDIT_CONTENT !== '' ? this.pd.AUDIT_CONTENT : '同意'; return this.pd.AUDIT_CONTENT && this.pd.AUDIT_CONTENT !== '' ? this.pd.AUDIT_CONTENT : '同意';
}, },
formattedApproveContent() { formattedApproveContent() {
return this.pd.APPROVE_CONTENT && this.pd.APPROVE_CONTENT !== '无' ? this.pd.APPROVE_CONTENT : '同意'; return this.pd.APPROVE_CONTENT && this.pd.APPROVE_CONTENT !== '无' ? this.pd.APPROVE_CONTENT : '同意';

View File

@ -102,10 +102,12 @@
<uni-table name='measuresList' border stripe emptyText="暂无更多数据"> <uni-table name='measuresList' border stripe emptyText="暂无更多数据">
<!-- 表头行 --> <!-- 表头行 -->
<uni-tr> <uni-tr>
<uni-th align="center" style="font-weight: bold;">&nbsp;</uni-th>
<uni-th align="center" style="font-weight: bold;">主要安全措施</uni-th> <uni-th align="center" style="font-weight: bold;">主要安全措施</uni-th>
<uni-th align="center" style="font-weight: bold;width: 100px">操作</uni-th> <uni-th align="center" style="font-weight: bold;width: 100px">操作</uni-th>
</uni-tr> </uni-tr>
<uni-tr v-for="(item,index) in measuresList" :key="item.BUS_HOTWORK_MEASURES_ID"> <uni-tr v-for="(item,index) in measuresList" :key="item.BUS_HOTWORK_MEASURES_ID">
<uni-td align="center">{{ index + 1 }}</uni-td>
<uni-td> <uni-td>
<view style="margin-bottom: 20upx;"> <view style="margin-bottom: 20upx;">
{{ item.PROTECTIVE_MEASURES }} {{ item.PROTECTIVE_MEASURES }}
@ -274,7 +276,7 @@
<view class="wui-form-list"> <view class="wui-form-list">
<view class="cu-form-textarea" style="border: none;"> <view class="cu-form-textarea" style="border: none;">
<view class="cu-form-title">作业负责人意见</view> <view class="cu-form-title">作业负责人意见</view>
<textarea maxlength="255" disabled="disabled" v-model="pd.CONFIRM_CONTENT"></textarea> <textarea maxlength="255" disabled="disabled" v-model="formattedConfirmContent"></textarea>
</view> </view>
<view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee"> <view style="border-bottom: 1px solid #eeeeee; border-top: 1px solid #eeeeee">
<view class="cu-form-group"> <view class="cu-form-group">
@ -409,6 +411,11 @@ export default {
imgList: [], imgList: [],
} }
}, },
computed: {
formattedConfirmContent() {
return this.pd.CONFIRM_CONTENT && this.pd.CONFIRM_CONTENT !== '无' ? this.pd.CONFIRM_CONTENT : '同意';
}
},
onLoad(event) { onLoad(event) {
this.todayDate = formatDate(new Date(), 'yyyy-MM-dd hh:mm'); this.todayDate = formatDate(new Date(), 'yyyy-MM-dd hh:mm');
this.pd.HOTWORK_ID = event.HOTWORK_ID; this.pd.HOTWORK_ID = event.HOTWORK_ID;

View File

@ -20,6 +20,7 @@
<navigator class="a" hover-class="none" :url="item.url"> <navigator class="a" hover-class="none" :url="item.url">
<view class="image"> <view class="image">
<image :src="item.image" mode=""></image> <image :src="item.image" mode=""></image>
<view v-if="item.title === '高危作业' && totalUnreadCount > 0" class="badge">{{ totalUnreadCount }}</view>
</view> </view>
<view class="title"> <view class="title">
<text>{{ item.title }}</text> <text>{{ item.title }}</text>
@ -274,6 +275,7 @@
mixins: [MescrollMixin], // 使mixin (main.js) mixins: [MescrollMixin], // 使mixin (main.js)
data() { data() {
return { return {
totalUnreadCount: 0,
girdList:[ girdList:[
{ {
title:'基本资料', title:'基本资料',
@ -398,6 +400,7 @@
this.getData() this.getData()
this.getHiddenData() this.getHiddenData()
this.getSafetyEnvironmentalCount() this.getSafetyEnvironmentalCount()
this.getSumCount();
// this.getListData() // this.getListData()
console.info(loginUser) console.info(loginUser)
// this._freshing = false; // this._freshing = false;
@ -603,6 +606,42 @@
// } // }
// }); // });
}, },
async getSumCount() {
const hotWorkCount = await this.getCount('/app/hotwork/cfd/countCheck');
const highWorkCount = await this.getCount('/app/gfHighwork/countCheck');
const blindBoardCount = await this.getCount('/app/gfBlindBoard/countCheck');
const hoistingCount = await this.getCount('/app/gfHoisting/countCheck');
const confinedSpaceCount = await this.getCount('/app/gfConfinedSpace/countCheck');
const electricityCount = await this.getCount('/app/gfElectricity/countCheck');
this.totalUnreadCount = hotWorkCount + highWorkCount + blindBoardCount + hoistingCount + confinedSpaceCount + electricityCount;
},
getCount(url) {
return new Promise((resolve, reject) => {
uni.request({
url: basePath + url,
method: 'POST',
dataType: 'json',
header: { 'Content-type': 'application/x-www-form-urlencoded' },
data: {
tm: new Date().getTime(),
CORPINFO_ID: loginUser.CORPINFO_ID,
USER_ID: loginUser.USER_ID,
},
success: (res) => {
if (res.data.result === "success") {
resolve(res.data.count.SUMCOUNT || 0);
} else {
resolve(0);
}
},
fail: (err) => {
console.error(err);
resolve(0);
},
});
});
},
// //
getHiddenData() { getHiddenData() {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
@ -851,10 +890,21 @@
.image{ .image{
flex-basis: 100%; flex-basis: 100%;
text-align: center; text-align: center;
position: relative; //
image{ image{
width: 84upx; width: 84upx;
height: 84upx; height: 84upx;
} }
.badge {
position: absolute;
top: -10px; //
right: 0; //
background-color: #dd514c;
color: white;
border-radius: 50%;
padding: 2px 5px;
font-size: 12px;
}
} }
.title{ .title{
flex-basis: 100%; flex-basis: 100%;