安全环保检查暂存第二版
parent
f006206da8
commit
dc18edd445
|
@ -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)
|
||||
|
|
|
@ -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: '安全' },
|
||||
|
|
Loading…
Reference in New Issue