diff --git a/src/views/firefighting/record/components/recordInfo.vue b/src/views/firefighting/record/components/recordInfo.vue index 14e1f04..312ea13 100644 --- a/src/views/firefighting/record/components/recordInfo.vue +++ b/src/views/firefighting/record/components/recordInfo.vue @@ -110,8 +110,9 @@ @@ -377,7 +378,11 @@ export default { this.listLoading = false }) }, - hitBackFunction(id) { + hitBackFunction(id, ISCHECKED) { + if (ISCHECKED === 2) { + this.$message.warning('已打回的不能再打回') + return + } console.log(id) this.EQUIPMENT_POINT_ID = id this.hitBack = true @@ -388,6 +393,10 @@ export default { cancelButtonText: '取消', type: 'warning' }).then(() => { + if (this.hitBackReason == null || this.hitBackReason === '') { + this.$message.warning('请填写打回说明') + return + } requestFN( '/fireRecord/cancel', { @@ -396,16 +405,17 @@ export default { } ).then((data) => { this.listLoading = false - // 隐患待添加 + this.getData() }).catch((e) => { this.listLoading = false }) - this.FIRE_CHECK_ID = this.$parent.FIRE_CHECK_ID - this.FIRE_RECORD_ID = this.$parent.FIRE_RECORD_ID - this.SHOW_OR_EDIT = this.$parent.SHOW_OR_EDIT - this.recordBase = Object.assign({}, this.$parent.row) - this.getData() - this.getSignImgs(this.FIRE_RECORD_ID) + + // this.FIRE_CHECK_ID = this.$parent.FIRE_CHECK_ID + // this.FIRE_RECORD_ID = this.$parent.FIRE_RECORD_ID + // this.SHOW_OR_EDIT = this.$parent.SHOW_OR_EDIT + // this.recordBase = Object.assign({}, this.$parent.row) + // this.getData() + // this.getSignImgs(this.FIRE_RECORD_ID) }) this.hitBack = false } diff --git a/src/views/hotwork/forcedRollback/components/list.vue b/src/views/hotwork/forcedRollback/components/list.vue index 8a2dabc..28e4075 100644 --- a/src/views/hotwork/forcedRollback/components/list.vue +++ b/src/views/hotwork/forcedRollback/components/list.vue @@ -7,13 +7,13 @@ - - - - - - - + + + + + + + @@ -26,13 +26,13 @@ - - + + { for (let i = 0; i < data.pd.hiddenList.length; i++) { this.uploadImg(this.hdFile[i]['fileHdImgList'], data.pd.hiddenList[i].HIDDEN_ID)