From d083b10403968b394a0a2076a3cab72efa5810ea Mon Sep 17 00:00:00 2001
From: licp <lichunping@guanfang.com.cn>
Date: 星期一, 02 九月 2024 17:17:21 +0800
Subject: [PATCH] Merge branch 'master' of http://114.132.189.42:9002/r/tx-lims-before into master

---
 src/components/do/b1-inspect-order-plan/Inspection.vue |   32 +++++++++++++++++++-------------
 1 files changed, 19 insertions(+), 13 deletions(-)

diff --git a/src/components/do/b1-inspect-order-plan/Inspection.vue b/src/components/do/b1-inspect-order-plan/Inspection.vue
index f4ec2e1..77318b8 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>
@@ -438,6 +439,9 @@
                   </template>
                   <template v-else-if="n.v.ps!=undefined && n.v.ps.value==='鏍峰搧鍨嬪彿'">
                     <div :style="`font-family:${n.v.ff} !important;`" v-if="currentSample.model!==undefined&&currentSample.model!==null">{{currentSample.model}}</div>
+                  </template>
+                  <template v-else-if="n.v.ps!=undefined && n.v.ps.value==='璇曢獙鏍囧噯'">
+                    <div :style="`font-family:${n.v.ff} !important;`" v-if="currentSample.testRequirements!==undefined&&currentSample.testRequirements!==null">{{currentSample.testRequirements}}</div>
                   </template>
                   <template v-else-if="n.v.ps!=undefined && n.v.ps.value==='濂楃'">
                     <div style="display: flex;flex-wrap: nowrap;align-items: center;">
@@ -2738,6 +2742,7 @@
               }
             }
           })
+          console.log(4444,a.template)
           // 鎿嶄綔璧嬪��--涓昏璧嬪�煎崟浣�,璇曢獙鏂规硶绛変俊鎭�
           ids.forEach(id => {
             for (let b = 0; b < a.template.length; b++) {
@@ -2750,6 +2755,9 @@
                     .ps.value === '妫�娴嬫柟娉�')) {
                   a.template[b].v.v = id.product.methodS
                 }
+                // if (a.template[b].v.ps != undefined && (a.template[b].v.ps.value === '璇曢獙鏍囧噯')) {
+                //   a.template[b].v.v = id.product.testRequirements
+                // }
               }
             }
           })
@@ -3291,12 +3299,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 +3317,8 @@
             console.error(error)
             this.reviewLoading = false;
           })
-        } else {
-          // 涓嶉�氳繃
+        } else{
+          // 鍐嶆璇曢獙
           this.reviewDia = true;
         }
       },
@@ -3370,9 +3378,8 @@
                 laboratory: this.sonLaboratory,
                 verifyUser: this.verifyUser,
                 entrustCode: this.insOrder.entrustCode
-              }).then(async res => {
+              }).then(res => {
                 if (res.code === 200) {
-                  await this.handleCType()
                   this.$message.success("鎿嶄綔鎴愬姛")
                   this.$emit('goback')
                 }
@@ -3403,9 +3410,9 @@
                   orderId: this.orderId,
                   laboratory: this.sonLaboratory,
                   verifyUser: this.verifyUser
-                }).then( async res => {
+                }).then( res => {
                   if (res.code === 200) {
-                    await this.handleCType()
+                    this.submitLoading = false;
                     this.$message.success("鎿嶄綔鎴愬姛")
                     this.$emit('goback')
                   }
@@ -3416,7 +3423,6 @@
             }
 
           }
-          this.submitLoading = false;
         }).catch(error => {
           console.error(error)
           this.submitLoading = false;

--
Gitblit v1.9.3