风险管控排查问题修复

dev
wangpeng 2024-02-19 09:51:26 +08:00
parent a73f58891a
commit 3984573dee
15 changed files with 1120 additions and 52 deletions

View File

@ -333,6 +333,10 @@
"path": "pages/application/hidden-danger-check-standard/custom/list-item-check-next", "path": "pages/application/hidden-danger-check-standard/custom/list-item-check-next",
"style": {} "style": {}
}, },
{
"path": "pages/application/hidden-danger-check-standard/custom/other-hidden-add",
"style": {}
},
{ {
"path": "pages/application/hidden-danger-check-standard/record/custom-list", "path": "pages/application/hidden-danger-check-standard/record/custom-list",
"style": {} "style": {}

View File

@ -55,13 +55,13 @@
</view> </view>
</view> </view>
</view> </view>
<!-- <view class="cu-form-textarea margin-top"> <view class="cu-form-textarea margin-top">
<view class="cu-form-title"> <view class="cu-form-title">
隐患部位 隐患部位
<button class="cu-btn bg-green sm reg-btn" @click="openHidden" >隐患字典</button> <button class="cu-btn bg-green sm reg-btn" @click="openHidden" >隐患字典</button>
</view> </view>
<textarea maxlength="-1" :disabled="modalName!=null" v-model="pd.HIDDENPART" placeholder="请对隐患部位进行详细描述(必填项)"></textarea> <textarea maxlength="-1" :disabled="modalName!=null" v-model="pd.HIDDENPART" placeholder="请对隐患部位进行详细描述(必填项)"></textarea>
</view>--> </view>
<view class="cu-form-textarea margin-top"> <view class="cu-form-textarea margin-top">
<view class="cu-form-title">隐患描述</view> <view class="cu-form-title">隐患描述</view>
<textarea maxlength="-1" :disabled="modalName!=null" v-model="pd.HIDDENDESCR" placeholder="请对隐患进行详细描述(必填项)"></textarea> <textarea maxlength="-1" :disabled="modalName!=null" v-model="pd.HIDDENDESCR" placeholder="请对隐患进行详细描述(必填项)"></textarea>
@ -286,7 +286,7 @@
this.pd.CHECK_CONTENT = JSON.parse(decodeURIComponent(event.CHECK_CONTENT)); this.pd.CHECK_CONTENT = JSON.parse(decodeURIComponent(event.CHECK_CONTENT));
this.pd.CHECK_STANDARD = JSON.parse(decodeURIComponent(event.CHECK_STANDARD)); this.pd.CHECK_STANDARD = JSON.parse(decodeURIComponent(event.CHECK_STANDARD));
this.pd.REFERENCE_BASIS = JSON.parse(decodeURIComponent(event.REFERENCE_BASIS)); this.pd.REFERENCE_BASIS = JSON.parse(decodeURIComponent(event.REFERENCE_BASIS));
this.pd.HIDDENDESCR = JSON.parse(decodeURIComponent(event.CHECK_UNQUALIFIED)); this.pd.HIDDENDESCR = JSON.parse(decodeURIComponent(event.CHECK_RESULT));
this.baoBaoType = JSON.parse(decodeURIComponent(event.baoBaoType))+''; this.baoBaoType = JSON.parse(decodeURIComponent(event.baoBaoType))+'';
console.log(this.baoBaoType) console.log(this.baoBaoType)
this.index = event.index; this.index = event.index;
@ -866,6 +866,7 @@
prePage.$vm.initflag = true; // A init true prePage.$vm.initflag = true; // A init true
prePage.$vm.list[_this.index].ISNORMAL = 1; prePage.$vm.list[_this.index].ISNORMAL = 1;
prePage.$vm.list[_this.index].HIDDEN_ID = _this.pd.HIDDEN_ID; prePage.$vm.list[_this.index].HIDDEN_ID = _this.pd.HIDDEN_ID;
prePage.$vm.list[_this.index].CHECK_RESULT = _this.pd.HIDDENDESCR;
prePage.$vm.list[_this.index].CHECK_UNQUALIFIED = _this.pd.HIDDENDESCR; prePage.$vm.list[_this.index].CHECK_UNQUALIFIED = _this.pd.HIDDENDESCR;
} }
uni.navigateBack({}); uni.navigateBack({});
@ -1059,7 +1060,7 @@
}, },
confirm(info){ confirm(info){
this.pd.HIDDENPART = info.HIDDEN_PART this.pd.HIDDENPART = info.HIDDEN_PART
this.pd.HIDDENDESCR = info.INSPECTION_BASIS // this.pd.HIDDENDESCR = info.INSPECTION_BASIS
this.pd.HIDDENLEVEL = 'hiddenLevel0001' this.pd.HIDDENLEVEL = 'hiddenLevel0001'
this.pd.HIDDENLEVELNAME = '一般隐患' this.pd.HIDDENLEVELNAME = '一般隐患'
if (info.HIDDEN_TYPE_ONE_NAME){this.pd.HIDDENTYPENAME = info.HIDDEN_TYPE_ONE_NAME} if (info.HIDDEN_TYPE_ONE_NAME){this.pd.HIDDENTYPENAME = info.HIDDEN_TYPE_ONE_NAME}

View File

@ -15,13 +15,10 @@
<view class="select"> <view class="select">
<view @click="checkTrue({index:index},item.HASHIDDEN,0)" class="flex align-center"> <view @click="checkTrue({index:index},item.HASHIDDEN,0)" class="flex align-center">
<radio class='mr10' :class="item.ISNORMAL==0?'checked':''" :checked="item.ISNORMAL==0" disabled></radio> <radio class='mr10' :class="item.ISNORMAL==0?'checked':''" :checked="item.ISNORMAL==0" disabled></radio>
<text>合格.{{ item.OPERATION_TYPE === 1 ? item.CHECK_QUALIFIED : '' }}</text> <text>合格</text>
</view> </view>
<view v-if="item.ISNORMAL==0" @click="$noMultipleClicks(gotoAddImg,item.RECORDITEM_ID)" class="cuIcon-infofill text-blue unqualified"></view> <view v-if="item.ISNORMAL==0" @click="$noMultipleClicks(gotoAddImg,item.RECORDITEM_ID)" class="cuIcon-infofill text-blue unqualified"></view>
</view> </view>
<view v-if="item.ISNORMAL==0 && item.OPERATION_TYPE === 2" class="input">
<textarea maxlength="-1" v-model="item.CHECK_UNQUALIFIED" placeholder="合格信息详细描述(必填项)"></textarea>
</view>
<view class="select"> <view class="select">
<view class="flex align-center" @click="$noMultipleClicks(goToAdd, <view class="flex align-center" @click="$noMultipleClicks(goToAdd,
{ {
@ -37,15 +34,12 @@
CHECK_ITEM_NAME:item.CHECK_ITEM_NAME, CHECK_ITEM_NAME:item.CHECK_ITEM_NAME,
CHECK_STANDARD: item.CHECK_STANDARD, CHECK_STANDARD: item.CHECK_STANDARD,
REFERENCE_BASIS: item.REFERENCE_BASIS, REFERENCE_BASIS: item.REFERENCE_BASIS,
CHECK_UNQUALIFIED: item.item.CHECK_UNQUALIFIED CHECK_RESULT: item.CHECK_UNQUALIFIED
})"> })">
<radio class='red mr10' :class="item.ISNORMAL==1?'checked':''" :checked="item.ISNORMAL==1" disabled ></radio> <radio class='red mr10' :class="item.ISNORMAL==1?'checked':''" :checked="item.ISNORMAL==1" disabled ></radio>
<text>不合格.{{ item.OPERATION_TYPE === 1 ? item.CHECK_UNQUALIFIED : '' }}</text> <text>不合格</text>
</view> </view>
<view v-if="item.ISNORMAL==1" @click="$noMultipleClicks(goToEdit,item.HIDDEN_ID)" class="cuIcon-infofill text-blue unqualified"></view> <view v-if="item.ISNORMAL==1" @click="$noMultipleClicks(goToEdit,item.HIDDEN_ID)" class="cuIcon-infofill text-blue unqualified"></view>
<view v-if="item.ISNORMAL==1 && item.OPERATION_TYPE === 2" class="input">
<textarea maxlength="-1" disabled v-model="item.CHECK_UNQUALIFIED" placeholder="不合格信息详细描述(必填项)"></textarea>
</view>
</view> </view>
<view class="select"> <view class="select">
<view @click="checkTrue({index:index},item.HASHIDDEN,2)" class="flex align-center"> <view @click="checkTrue({index:index},item.HASHIDDEN,2)" class="flex align-center">
@ -54,6 +48,9 @@
</view> </view>
</view> </view>
</view> </view>
<view v-if="item.ISNORMAL==0 || item.ISNORMAL==1" class="input" >
<textarea :disabled="item.OPERATION_TYPE === 1 ? true : false" maxlength="-1" v-model="item.CHECK_RESULT" placeholder="检查详细描述(必填项)" :class="item.OPERATION_TYPE === 1 ? 'bgh' : ''" style="border: 1px solid #eeeeee; z-index: 999; height: 50px; padding: 10px;font-size: 12px; width: 100%"></textarea>
</view>
</radio-group> </radio-group>
</view> </view>
</view> </view>
@ -109,7 +106,7 @@
title: '请稍候' title: '请稍候'
}) })
uni.request({ uni.request({
url: basePath + '/app/hiddenDangerCheckStandardCustom/goCheck', url: basePath + '/app/hiddenDangerCheckStandardCustom/goCheck', // /app/listmanager/goCheck
method: 'POST', method: 'POST',
dataType: 'json', dataType: 'json',
header: { header: {
@ -134,6 +131,11 @@
_this.list[i].HIDDEN_ID = res.data.records[j].HIDDEN_ID; _this.list[i].HIDDEN_ID = res.data.records[j].HIDDEN_ID;
_this.list[i].CHECKRECORD_ID = res.data.records[j].CHECKRECORD_ID; _this.list[i].CHECKRECORD_ID = res.data.records[j].CHECKRECORD_ID;
_this.list[i].RECORDITEM_ID = res.data.records[j].RECORDITEM_ID; _this.list[i].RECORDITEM_ID = res.data.records[j].RECORDITEM_ID;
if (res.data.records[j].ISNORMAL === 0) {
_this.list[i].CHECK_QUALIFIED = res.data.records[j].CHECK_RESULT;
} else if (res.data.records[j].ISNORMAL === 1) {
_this.list[i].CHECK_UNQUALIFIED = res.data.records[j].CHECK_RESULT;
}
// _this.list[i].is_checked = 1; // _this.list[i].is_checked = 1;
} }
} }
@ -158,14 +160,12 @@
// //
save: function (){ save: function (){
var _this = this;
for(var i=0;i<_this.list.length;i++){ for(var i=0;i<_this.list.length;i++){
if(this.list[i].ISNORMAL && this.list[i].OPERATION_TYPE === 2) { if(this.list[i].ISNORMAL && this.list[i].OPERATION_TYPE === 2) {
var CHECK_RESULT = '' var CHECK_RESULT = ''
if (this.list[i].ISNORMAL === 0) { if (this.list[i].ISNORMAL === 0 || this.list[i].ISNORMAL === 1) {
CHECK_RESULT = _this.list[i].CHECK_QUALIFIED CHECK_RESULT = _this.list[i].CHECK_RESULT
} else if (this.list[i].ISNORMAL === 1) {
CHECK_RESULT = _this.list[i].CHECK_UNQUALIFIED
} else if (this.list[i].ISNORMAL === 2) { } else if (this.list[i].ISNORMAL === 2) {
CHECK_RESULT = "不涉及" CHECK_RESULT = "不涉及"
} }
@ -179,15 +179,6 @@
} }
} }
} }
if (!_this.other[0].USER_ID) {
uni.showToast({
icon: 'none',
title: '请添加检查人',
duration: 1500
});
return;
}
var _this = this;
uni.showLoading({ uni.showLoading({
title: '请稍候' title: '请稍候'
}) })
@ -199,10 +190,8 @@
item.CUSTOM_ITEM_ID = _this.list[i].CUSTOM_ITEM_ID item.CUSTOM_ITEM_ID = _this.list[i].CUSTOM_ITEM_ID
item.ISNORMAL = _this.list[i].ISNORMAL item.ISNORMAL = _this.list[i].ISNORMAL
if (_this.list[i].ISNORMAL === 0) { if (_this.list[i].ISNORMAL === 0 || _this.list[i].ISNORMAL === 1) {
item.CHECK_RESULT = _this.list[i].CHECK_QUALIFIED item.CHECK_RESULT = _this.list[i].CHECK_RESULT
} else if (_this.list[i].ISNORMAL === 1) {
item.CHECK_RESULT = _this.list[i].CHECK_UNQUALIFIED
} else { } else {
item.CHECK_RESULT = '' item.CHECK_RESULT = ''
} }
@ -337,6 +326,13 @@
_this.list[e.index].HIDDEN_ID=''; _this.list[e.index].HIDDEN_ID='';
_this.$forceUpdate();// _this.$forceUpdate();//
} }
if (STATUS === 0) {
_this.$set(_this.list[e.index], 'CHECK_RESULT', _this.list[e.index].CHECK_QUALIFIED)
} else if (STATUS === 1) {
_this.$set(_this.list[e.index], 'CHECK_RESULT', _this.list[e.index].CHECK_UNQUALIFIED)
} else {
_this.$set(_this.list[e.index], 'CHECK_RESULT', '不涉及')
}
}, },
// //
goToAdd(e) { goToAdd(e) {
@ -365,7 +361,7 @@
+'&CHECK_ITEM_NAME='+ encodeURIComponent(JSON.stringify(e.CHECK_ITEM_NAME)) +'&CHECK_ITEM_NAME='+ encodeURIComponent(JSON.stringify(e.CHECK_ITEM_NAME))
+'&CHECK_STANDARD='+ encodeURIComponent(JSON.stringify(e.CHECK_STANDARD)) +'&CHECK_STANDARD='+ encodeURIComponent(JSON.stringify(e.CHECK_STANDARD))
+'&REFERENCE_BASIS='+ encodeURIComponent(JSON.stringify(e.REFERENCE_BASIS)) +'&REFERENCE_BASIS='+ encodeURIComponent(JSON.stringify(e.REFERENCE_BASIS))
+'&CHECK_UNQUALIFIED='+ encodeURIComponent(JSON.stringify(e.CHECK_UNQUALIFIED)) +'&CHECK_RESULT='+ encodeURIComponent(JSON.stringify(e.CHECK_RESULT))
+'&index='+e.index +'&index='+e.index
+'&baoBaoType='+this.baoBaoType +'&baoBaoType='+this.baoBaoType
}); });
@ -391,4 +387,9 @@
transform: scale(0.9); transform: scale(0.9);
} }
.bgh{
background: #f8f6f6;
color: #d9d7d7;
}
</style> </style>

View File

@ -293,7 +293,7 @@
this.buttonloading = true this.buttonloading = true
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
uni.request({ uni.request({
url: basePath + "/app/checkrecord/finish", // url: basePath + "/app/customCheckRecord/finish", // // /app/checkrecord/finish
method: 'POST', method: 'POST',
dataType: 'json', dataType: 'json',
header:{ header:{
@ -303,7 +303,7 @@
CHECK_TIME:_this.date+' '+_this.time+':00', CHECK_TIME:_this.date+' '+_this.time+':00',
DESCR:_this.DESCR, DESCR:_this.DESCR,
CHECKRECORD_ID:_this.CHECKRECORD_ID, CHECKRECORD_ID:_this.CHECKRECORD_ID,
LISTMANAGER_ID:_this.listId, CUSTOM_ID:_this.listId,
OTHER:JSON.stringify(_this.other), OTHER:JSON.stringify(_this.other),
CORPINFO_ID:loginUser.CORPINFO_ID, CORPINFO_ID:loginUser.CORPINFO_ID,
USER_ID:loginUser.USER_ID, USER_ID:loginUser.USER_ID,
@ -379,7 +379,7 @@
}, },
addOtherHidden: function (){ addOtherHidden: function (){
uni.navigateTo({ uni.navigateTo({
url: '/pages/application/hidden-trouble-investigation/hidden-trouble-app/other-hidden-add?listId='+ this.listId url: '/pages/application/hidden-danger-check-standard/custom/other-hidden-add?listId='+ this.listId
}); });
}, },
removeOther: function(index){ removeOther: function(index){
@ -396,7 +396,7 @@
success: function (res) { success: function (res) {
if (res.cancel) { if (res.cancel) {
uni.request({ uni.request({
url: basePath + "/app/hidden/delete", // url: basePath + "/app/customHidden/delete", // // /app/hidden/delete
method: 'POST', method: 'POST',
dataType: 'json', dataType: 'json',
header:{ header:{
@ -435,14 +435,14 @@
title: '请稍候' title: '请稍候'
}) })
uni.request({ uni.request({
url: basePath + '/app/hidden/getOtherHidden', url: basePath + '/app/customHidden/getOtherHidden', // /app/hidden/getOtherHidden
method: 'POST', method: 'POST',
dataType: 'json', dataType: 'json',
header: { header: {
'Content-type':'application/x-www-form-urlencoded' 'Content-type':'application/x-www-form-urlencoded'
}, },
data: { data: {
LISTMANAGER_ID: _this.listId, CUSTOM_ID: _this.listId,
CORPINFO_ID:loginUser.CORPINFO_ID, CORPINFO_ID:loginUser.CORPINFO_ID,
USER_ID:loginUser.USER_ID, USER_ID:loginUser.USER_ID,
}, },

View File

@ -19,7 +19,7 @@
</view> </view>
<view class="spot-cont"> <view class="spot-cont">
<view class="text f30"> <view class="text f30">
{{item.DICTIONARY_NAMES.replaceAll(',','--')}} {{ item.DICTIONARY_NAMES ? item.DICTIONARY_NAMES.replace(/,/g,'--') : '' }}
</view> </view>
<view v-if="item.ELECTRONIC_FENCE_ID" class="text f30"> <view v-if="item.ELECTRONIC_FENCE_ID" class="text f30">
所属电子围栏{{item.ELECTRONIC_FENCE}} 所属电子围栏{{item.ELECTRONIC_FENCE}}
@ -84,7 +84,7 @@
title: '请稍候' title: '请稍候'
}) })
uni.request({ uni.request({
url: basePath + '/app/hiddenDangerCheckStandardCustom/getCheckItem', url: basePath + '/app/hiddenDangerCheckStandardCustom/getCheckItem', // /app/listmanager/getRisk
method: 'POST', method: 'POST',
dataType: 'json', dataType: 'json',
header: { header: {
@ -103,7 +103,7 @@
_this.CHECKRECORD_ID = res.data.CHECKRECORD_ID; _this.CHECKRECORD_ID = res.data.CHECKRECORD_ID;
if (res.data.checkmap) { if (res.data.checkmap) {
for (var i = 0; i < _this.list.length; i++) { for (var i = 0; i < _this.list.length; i++) {
if (res.data.checkmap[_this.list[i].CHECK_ITEM] >= _this.list[i].RISK_COUNT) { if (res.data.checkmap[_this.list[i].CHECK_ITEM]) {
_this.list[i].isChecked = 1 _this.list[i].isChecked = 1
} }
} }

View File

@ -145,6 +145,7 @@
totalList:[], totalList:[],
treeNode: [], // treeNode: [], //
DEPT: '', DEPT: '',
DEPTNAME: '',
page: 1, page: 1,
rows: 1000, rows: 1000,
totalCount:0, totalCount:0,

File diff suppressed because it is too large Load Diff

View File

@ -295,7 +295,7 @@
title: '请稍候' title: '请稍候'
}) })
uni.request({ uni.request({
url: basePath + '/app/hidden/goEdit', url: basePath + '/app/hidden/goRiskListCheckEdit', // /app/hidden/goEdit
method: 'POST', method: 'POST',
dataType: 'json', dataType: 'json',
header: { header: {
@ -889,7 +889,7 @@
latitude = result[1]; latitude = result[1];
// post // post
uni.request({ uni.request({
url: basePath+'/app/hidden/appAdd', url: basePath+'/app/hidden/riskListCheckAppAdd',
method: 'POST', method: 'POST',
dataType: 'json', dataType: 'json',
header: { header: {

View File

@ -662,7 +662,7 @@
var _this = this; var _this = this;
this.buttonloading = true this.buttonloading = true
uni.request({ uni.request({
url: basePath + "/app/hidden/check", // url: basePath + "/app/hidden/riskListCheckInspection", // // /app/hidden/check
method: 'POST', method: 'POST',
dataType: 'json', dataType: 'json',
header: { header: {

View File

@ -248,7 +248,7 @@
if(_this.list[e.index].HIDDEN_ID){ if(_this.list[e.index].HIDDEN_ID){
// //
uni.request({ uni.request({
url: basePath+'/app/hidden/delete', url: basePath+'/app/hidden/riskListCheckHiddenDelete', // /app/hidden/delete
xhrFields: { xhrFields: {
withCredentials: true withCredentials: true
}, },

View File

@ -396,7 +396,7 @@
success: function (res) { success: function (res) {
if (res.cancel) { if (res.cancel) {
uni.request({ uni.request({
url: basePath + "/app/hidden/delete", // url: basePath + "/app/hidden/riskListCheckHiddenDelete", // // /app/hidden/delete
method: 'POST', method: 'POST',
dataType: 'json', dataType: 'json',
header:{ header:{

View File

@ -213,7 +213,7 @@
permissionID:'', permissionID:'',
isUps:false, isUps:false,
buttonloading: false, buttonloading: false,
msg:'add', msg:'riskListCheckAdd',
riskId:'', riskId:'',
itemId:'', itemId:'',
LISTMANAGER_ID:'', LISTMANAGER_ID:'',
@ -264,7 +264,7 @@
this.rectifyPlanCompletionStartTime = formatDate(tomorrow, 'yyyy-MM-dd'); this.rectifyPlanCompletionStartTime = formatDate(tomorrow, 'yyyy-MM-dd');
this.pd.HIDDEN_ID = event.HIDDEN_ID; this.pd.HIDDEN_ID = event.HIDDEN_ID;
if(this.pd.HIDDEN_ID){ if(this.pd.HIDDEN_ID){
this.msg="edit"; this.msg="riskListCheckEdit";
this.getData(); this.getData();
}else { }else {
this.pd.CHECK_CONTENT = JSON.parse(decodeURIComponent(event.checkContent)); this.pd.CHECK_CONTENT = JSON.parse(decodeURIComponent(event.checkContent));

View File

@ -145,6 +145,7 @@
totalList:[], totalList:[],
treeNode: [], // treeNode: [], //
DEPT: '', DEPT: '',
DEPTNAME: '',
page: 1, page: 1,
rows: 1000, rows: 1000,
totalCount:0, totalCount:0,

View File

@ -143,6 +143,7 @@
totalList1:[], totalList1:[],
treeNode: [], // treeNode: [], //
DEPT: '', DEPT: '',
DEPTNAME: '',
page: 1, page: 1,
rows: 1000, rows: 1000,
totalCount:0, totalCount:0,

View File

@ -222,7 +222,7 @@
permissionID:'', permissionID:'',
isUps:false, isUps:false,
buttonloading: false, buttonloading: false,
msg:'add', msg:'riskListCheckAdd', // add
riskId:'', riskId:'',
itemId:'', itemId:'',
index:'', index:'',
@ -268,7 +268,7 @@
this.pd.HIDDEN_ID = event.HIDDEN_ID; this.pd.HIDDEN_ID = event.HIDDEN_ID;
this.CHECKRECORD_ID = event.CHECKRECORD_ID; this.CHECKRECORD_ID = event.CHECKRECORD_ID;
if(this.pd.HIDDEN_ID){ if(this.pd.HIDDEN_ID){
this.msg="edit"; this.msg="riskListCheckEdit"; // edit
this.getData(); this.getData();
}else { }else {
// this.pd.CHECK_CONTENT = JSON.parse(decodeURIComponent(event.checkContent)); // this.pd.CHECK_CONTENT = JSON.parse(decodeURIComponent(event.checkContent));
@ -292,7 +292,7 @@
title: '请稍候' title: '请稍候'
}) })
uni.request({ uni.request({
url: basePath + '/app/hidden/goEdit', url: basePath + '/app/hidden/goRiskListCheckEdit', // /app/hidden/goEdit
method: 'POST', method: 'POST',
dataType: 'json', dataType: 'json',
header: { header: {