From e55843229522499ed62043c65e9333e6b14f3755 Mon Sep 17 00:00:00 2001 From: shanao Date: Wed, 6 Nov 2024 14:59:48 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20=E6=B6=88=E9=98=B2?= =?UTF-8?q?=E6=A3=80=E6=9F=A5=E8=AE=B0=E5=BD=95=E6=89=93=E5=9B=9E=E5=8A=9F?= =?UTF-8?q?=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../record/components/recordInfo.vue | 56 ++++++++++++++++++- 1 file changed, 55 insertions(+), 1 deletion(-) 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 } - } }