From df33895b6a072ce2963dc8b0688ebfd0989eef2c Mon Sep 17 00:00:00 2001 From: licp <lichunping@guanfang.com.cn> Date: 星期四, 22 八月 2024 14:06:53 +0800 Subject: [PATCH] 变更检验下单 --- src/components/do/b1-inspect-order-plan/Inspection.vue | 22 +++++++++++++++++++--- 1 files changed, 19 insertions(+), 3 deletions(-) diff --git a/src/components/do/b1-inspect-order-plan/Inspection.vue b/src/components/do/b1-inspect-order-plan/Inspection.vue index d375aa1..f4ec2e1 100644 --- a/src/components/do/b1-inspect-order-plan/Inspection.vue +++ b/src/components/do/b1-inspect-order-plan/Inspection.vue @@ -3337,7 +3337,7 @@ } }, handleSubmit(){ - if(this.insOrder.departmentLims=='妫�娴嬩腑蹇�'&&this.insOrder.orderType=='C'){ + if(this.insOrder.orderType=='C'){ this.verifyUser = this.insOrder.prepareUserId this.submit() }else{ @@ -3370,8 +3370,9 @@ laboratory: this.sonLaboratory, verifyUser: this.verifyUser, entrustCode: this.insOrder.entrustCode - }).then(res => { + }).then(async res => { if (res.code === 200) { + await this.handleCType() this.$message.success("鎿嶄綔鎴愬姛") this.$emit('goback') } @@ -3402,8 +3403,9 @@ orderId: this.orderId, laboratory: this.sonLaboratory, verifyUser: this.verifyUser - }).then(res => { + }).then( async res => { if (res.code === 200) { + await this.handleCType() this.$message.success("鎿嶄綔鎴愬姛") this.$emit('goback') } @@ -3421,6 +3423,20 @@ }) return }, + async handleCType(){ + if(this.insOrder.departmentLims=='璐ㄩ噺閮�'){ + await this.$axios.post(this.$api.insOrderPlan.verifyPlan, { + orderId: this.orderId, + type: 1, + laboratory: this.sonLaboratory, + tell: null + }).then(res => { + if (res.code === 200) { + } + }).catch(error => { + }) + } + }, // 缁熶竴鍦ㄨ繖閲屼繚瀛樻暟鎹� saveInsContext() { try { -- Gitblit v1.9.3