diff --git a/src/views/firefighting/record/components/recordInfo.vue b/src/views/firefighting/record/components/recordInfo.vue index d87f668..69cc356 100644 --- a/src/views/firefighting/record/components/recordInfo.vue +++ b/src/views/firefighting/record/components/recordInfo.vue @@ -77,6 +77,7 @@ 检查情况 点位检查照片 + 操作 + @@ -201,6 +206,18 @@ 取 消 + + + + + + + + +
@@ -228,6 +245,12 @@ export default { qualifiedImgs: [], qualifiedFiles: [], dialogImgVisible: false, + // 打回判断 + hitBack: false, + // 详情id + EQUIPMENT_POINT_ID: '', + // 打回说明 + hitBackReason: '', defaultProps: { value: 'id', children: 'nodes', @@ -349,8 +372,39 @@ export default { }).catch((e) => { this.listLoading = false }) + }, + hitBackFunction(id) { + console.log(id) + this.EQUIPMENT_POINT_ID = id + this.hitBack = true + }, + hitBackOK() { + this.$confirm('确定要打回吗?', { + confirmButtonText: '确定', + cancelButtonText: '取消', + type: 'warning' + }).then(() => { + requestFN( + '/fireRecord/cancel', + { + id: this.EQUIPMENT_POINT_ID, + reason: this.hitBackReason + } + ).then((data) => { + this.listLoading = false + // 隐患待添加 + }).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.hitBack = false } - } }