From 6b5f33753d6400bc7a172e05e3deda4ccfb439f5 Mon Sep 17 00:00:00 2001 From: zuowenwen Date: Wed, 24 Nov 2021 18:04:26 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BE=85=E8=AF=84=E4=BC=B0=20=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/toolMan/assessment.vue | 57 ++++++++++++++++++++-- src/views/modules/toolMan/toolOffPlane.vue | 2 + 2 files changed, 54 insertions(+), 5 deletions(-) diff --git a/src/views/modules/toolMan/assessment.vue b/src/views/modules/toolMan/assessment.vue index 7fa2e5ba..56963b8c 100644 --- a/src/views/modules/toolMan/assessment.vue +++ b/src/views/modules/toolMan/assessment.vue @@ -81,12 +81,27 @@ + + + 取消 确定 + + + + + + + + + 取消 + 确定 + + @@ -125,13 +140,17 @@ import { }, data() { return { + remark : '', currentData : {}, flag : '', setUp :{ modelFlag : false, saveModelFlag : false, + modelFlag1 : false, + saveModelFlag1 : false, }, estuseQty : 0, + oldEstuseQty : 0, queryHeaderData: { site : this.$store.state.user.site, applyType : '待评估', @@ -145,7 +164,10 @@ import { }, modelInput : { label1 : '审核信息', - label2 : '预计使用寿命', + label2 : '修改后预计使用寿命', + label3 : '不合格信息', + label4 : '不合格原因', + label5 : '当前预计使用寿命', }, }, site : this.$store.state.user.site, @@ -531,10 +553,28 @@ import { this.getLanguageList() }, methods: { + initRemark(){ + + }, + remarkFlag(){ + this.saveModelFlag1 = true + if(this.remark == null || this.remark === ''){ + this.$alert('请输入不合格原因!', '操作提示', { + confirmButtonText: '确定', + type :"warning", + callback: action => { + this.saveModelFlag1 = false + } + }); + return false + } + this.saveModelFlag1 = false + this.saveToolInspection(this.currentData ,this.flag) + }, modelVerification(){ this.saveModelFlag = true - if(this.estuseQty == '' || this.estuseQty <= 0){ - this.$alert('请输入预计使用寿命!', '操作提示', { + if(this.estuseQty == '' || this.estuseQty <= this.oldEstuseQty){ + this.$alert('请输入正确的预计使用寿命!', '操作提示', { confirmButtonText: '确定', type :"warning", callback: action => { @@ -579,10 +619,12 @@ import { this.currentData = row this.flag = passFlag this.estuseQty = 0 + this.oldEstuseQty = row.estuseQty + this.remark = '' if(passFlag == 'Y'){ this.setUp.modelFlag = true }else { - this.saveToolInspection(row ,passFlag) + this.setUp.modelFlag1 = true } }) }, @@ -616,7 +658,7 @@ import { newApplyType : applyType, addFlag : addFlag, checkBy :row.checkBy, - remark : row.remark, + remark : this.remark, estuseQty : this.estuseQty, } saveList.push(saveData) @@ -627,6 +669,11 @@ import { if (passFlag == 'N'){ this.saveEmail(row) } + if(passFlag == 'Y'){ + this.setUp.modelFlag = false + }else { + this.setUp.modelFlag1 = false + } }else { this.$alert(data.msg, '操作提示', { confirmButtonText: '确定', diff --git a/src/views/modules/toolMan/toolOffPlane.vue b/src/views/modules/toolMan/toolOffPlane.vue index 788de873..1d0e8d61 100644 --- a/src/views/modules/toolMan/toolOffPlane.vue +++ b/src/views/modules/toolMan/toolOffPlane.vue @@ -548,6 +548,8 @@ import { this.saveHeaderData.toolId = row.toolId this.saveHeaderData.site = this.site this.saveHeaderData.userName = this.userName + this.saveHeaderData.actualuseQty = row.actualuseQty + this.saveHeaderData.estuseQty = row.estuseQty this.alertModel() }, // 打印方式