From cd3705905c58a74b811ce5efaa15e305945b5b1e Mon Sep 17 00:00:00 2001
From: licp <lichunping@guanfang.com.cn>
Date: 星期五, 23 八月 2024 17:02:51 +0800
Subject: [PATCH] 修改复核功能

---
 src/components/do/b1-inspect-order-plan/Inspection.vue |   35 +++++++++++++++++++++++++----------
 1 files changed, 25 insertions(+), 10 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..4dcd1af 100644
--- a/src/components/do/b1-inspect-order-plan/Inspection.vue
+++ b/src/components/do/b1-inspect-order-plan/Inspection.vue
@@ -261,9 +261,10 @@
         <el-button size="small" type="primary" @click="handleSubmit" v-if="state==1"
           :loading="submitLoading">鎻愪氦</el-button>
         <!-- 澶嶆牳 -->
-        <el-button size="medium" type="primary" @click="upInsReview(1)" :loading="reviewLoading"
-          v-if="state>1">閫氳繃</el-button>
-        <el-button size="medium" @click="upInsReview(0)" v-if="state>1">涓嶉�氳繃</el-button>
+        <el-button size="small" type="primary" @click="upInsReview(1)" :loading="reviewLoading"
+          v-if="state>1">缁х画璇曢獙</el-button>
+        <el-button size="small" @click="upInsReview(0)" v-if="state>1" type="danger">鍐嶆璇曢獙</el-button>
+        <el-button size="small" @click="upInsReview(2)" v-if="state>1">缁撴潫璇曢獙</el-button>
         <el-button size="small" @click="$emit('goback')">杩斿洖</el-button>
       </el-col>
     </el-row>
@@ -3291,12 +3292,12 @@
       },
       // 澶嶆牳
       upInsReview(e) {
-        if (e == 1) {
-          // 閫氳繃
+        if (e == 1||e==2) {
+          // 缁х画璇曢獙
           this.reviewLoading = true;
           this.$axios.post(this.$api.insOrderPlan.verifyPlan, {
             orderId: this.orderId,
-            type: 1,
+            type: e,
             laboratory: this.sonLaboratory,
             tell: null
           }).then(res => {
@@ -3309,8 +3310,8 @@
             console.error(error)
             this.reviewLoading = false;
           })
-        } else {
-          // 涓嶉�氳繃
+        } else if (e == 1) {
+          // 鍐嶆璇曢獙
           this.reviewDia = true;
         }
       },
@@ -3337,7 +3338,7 @@
         }
       },
       handleSubmit(){
-        if(this.insOrder.departmentLims=='妫�娴嬩腑蹇�'&&this.insOrder.orderType=='C'){
+        if(this.insOrder.orderType=='C'){
           this.verifyUser = this.insOrder.prepareUserId
           this.submit()
         }else{
@@ -3402,7 +3403,7 @@
                   orderId: this.orderId,
                   laboratory: this.sonLaboratory,
                   verifyUser: this.verifyUser
-                }).then(res => {
+                }).then( res => {
                   if (res.code === 200) {
                     this.$message.success("鎿嶄綔鎴愬姛")
                     this.$emit('goback')
@@ -3421,6 +3422,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