新增校验监管人、交底人、交底人、安全项检查人
parent
f70735d5f3
commit
f62b6724c0
|
@ -411,7 +411,7 @@
|
||||||
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 === 2) {
|
if (STATUS === '2') {
|
||||||
uni.request({
|
uni.request({
|
||||||
url: basePath + '/app/hotwork/cfd/check',
|
url: basePath + '/app/hotwork/cfd/check',
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
|
@ -424,89 +424,46 @@
|
||||||
success: (res) => {
|
success: (res) => {
|
||||||
if ("success" === res.data.result) {
|
if ("success" === res.data.result) {
|
||||||
uni.hideLoading();
|
uni.hideLoading();
|
||||||
if (res.data.passFlag === '0') {
|
// if (res.data.passFlag === '0') {
|
||||||
uni.showModal({
|
// uni.showModal({
|
||||||
title: '',
|
// title: '',
|
||||||
content: res.data.message,
|
// content: res.data.message,
|
||||||
cancelColor: "#000000",
|
// cancelColor: "#000000",
|
||||||
cancelText: '取消',
|
// cancelText: '取消',
|
||||||
confirmText: '确定',
|
// confirmText: '确定',
|
||||||
success: res => {
|
// success: res => {
|
||||||
this.buttonloading = false
|
// this.buttonloading = false
|
||||||
}
|
// }
|
||||||
})
|
// })
|
||||||
} else {
|
// } else {
|
||||||
formData.STATUS = STATUS
|
// formData.STATUS = STATUS
|
||||||
for (let i = 0; i < this.measuresList.length; i++) {
|
// formData.measuresList = JSON.stringify(this.measuresList)
|
||||||
const measures = this.measuresList[i]
|
// formData.CORPINFO_ID = loginUser.CORPINFO_ID
|
||||||
if (!measures.STATUS) {
|
// formData.USER_ID = loginUser.USER_ID
|
||||||
uni.showToast({
|
// this.buttonloading = true
|
||||||
icon: 'none',
|
// uni.uploadFile({
|
||||||
title: '第' + (i + 1) + '项未勾选',
|
// url: basePath + '/app/hotwork/cfd/editStatus',
|
||||||
duration: 1500
|
// filePath: _this.imgList[0].filePath,
|
||||||
});
|
// name: 'FFILE',
|
||||||
return;
|
// formData: formData,
|
||||||
}
|
// success: (res) => {
|
||||||
if (measures.STATUS === '1' && measures.QUESTION1 && !measures.ANSWER1) {
|
// uni.showToast({
|
||||||
uni.showToast({
|
// icon: 'none',
|
||||||
icon: 'none',
|
// title: '保存成功',
|
||||||
title: '第' + (i + 1) + '项未填写第一项',
|
// duration: 2000
|
||||||
duration: 1500
|
// });
|
||||||
});
|
// _this.goback()
|
||||||
return;
|
// this.buttonloading = false
|
||||||
}
|
// },
|
||||||
if (measures.STATUS === '1' && measures.QUESTION2 && !measures.ANSWER2) {
|
// fail: (err) => {
|
||||||
uni.showToast({
|
// uni.hideLoading();
|
||||||
icon: 'none',
|
// uni.showModal({
|
||||||
title: '第' + (i + 1) + '项未填写第二项',
|
// content: err.errMsg,
|
||||||
duration: 1500
|
// showCancel: false
|
||||||
});
|
// });
|
||||||
return;
|
// }
|
||||||
}
|
// })
|
||||||
if (measures.STATUS === '1' && measures.QUESTION3 && !measures.ANSWER3) {
|
// }
|
||||||
uni.showToast({
|
|
||||||
icon: 'none',
|
|
||||||
title: '第' + (i + 1) + '项未填写第三项',
|
|
||||||
duration: 1500
|
|
||||||
});
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
if (measures.STATUS === '1' && measures.QUESTION4 && !measures.ANSWER4) {
|
|
||||||
uni.showToast({
|
|
||||||
icon: 'none',
|
|
||||||
title: '第' + (i + 1) + '项未填写第四项',
|
|
||||||
duration: 1500
|
|
||||||
});
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
formData.measuresList = JSON.stringify(this.measuresList)
|
|
||||||
formData.CORPINFO_ID = loginUser.CORPINFO_ID
|
|
||||||
formData.USER_ID = loginUser.USER_ID
|
|
||||||
this.buttonloading = true
|
|
||||||
uni.uploadFile({
|
|
||||||
url: basePath + '/app/hotwork/cfd/editStatus',
|
|
||||||
filePath: _this.imgList[0].filePath,
|
|
||||||
name: 'FFILE',
|
|
||||||
formData: formData,
|
|
||||||
success: (res) => {
|
|
||||||
uni.showToast({
|
|
||||||
icon: 'none',
|
|
||||||
title: '保存成功',
|
|
||||||
duration: 2000
|
|
||||||
});
|
|
||||||
_this.goback()
|
|
||||||
this.buttonloading = false
|
|
||||||
},
|
|
||||||
fail: (err) => {
|
|
||||||
uni.hideLoading();
|
|
||||||
uni.showModal({
|
|
||||||
content: err.errMsg,
|
|
||||||
showCancel: false
|
|
||||||
});
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
|
||||||
} else if ("exception" === data.result) {
|
} else if ("exception" === data.result) {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: '错误',
|
title: '错误',
|
||||||
|
|
Loading…
Reference in New Issue