安全环保检查暂存第二版

dev-shanao
shanao 2024-11-05 10:49:05 +08:00
parent f006206da8
commit dc18edd445
2 changed files with 6 additions and 8 deletions

View File

@ -1176,10 +1176,7 @@ export default {
this.$forceUpdate()
},
/**
* 暂存 也就是采用分开提交的策略
* 先提交外部表单
* 然后每确定一条隐患就上传一条隐患
* 避免一次性提交造成接口超时
* 先缓存
*/
staging() {
let flag = false
@ -1238,8 +1235,8 @@ export default {
this.$set(this.form, 'HIDDENJSON', JSON.stringify(this.form.hiddenList))
this.listLoading = true
requestFN(
'/safetyenvironmental/staging',
{ ...this.form }
'/safetyenvironmental/' + this.dialogType,
{ ...this.form, INSPECTION_STATUS: '99' }
).then((data) => {
for (let i = 0; i < data.pd.hiddenList.length; i++) {
this.uploadImg(this.hdFile[i]['fileHdImgList'], data.pd.hiddenList[i].HIDDEN_ID)

View File

@ -164,7 +164,7 @@
<el-button icon="el-icon-view" size="mini" @click="goDetail(row)"></el-button>
<el-button type="success" icon="el-icon-view" size="mini" @click="checkFlow(row)"></el-button>
<el-button
v-show="edit && ( row.INSPECTION_STATUS == '-1')"
v-show="edit && ( row.INSPECTION_STATUS == '-1' || row.INSPECTION_STATUS === '99')"
type="primary"
icon="el-icon-edit"
size="mini"
@ -292,7 +292,8 @@ export default {
{ ID: '7', NAME: '检查已验收' },
{ ID: '8', NAME: '已归档' },
{ ID: '-1', NAME: '检查人核实打回' },
{ ID: '-2', NAME: '被检查人申辩' }
{ ID: '-2', NAME: '被检查人申辩' },
{ ID: '99', NAME: '暂存' }
],
INSPECTION_SUBJECT_LIST: [
{ ID: '安全', NAME: '安全' },