From 843104043cb7c573b31b96bf2fd8a24d3e8c12a1 Mon Sep 17 00:00:00 2001
From: value <z1292839451@163.com>
Date: 星期四, 06 六月 2024 00:29:47 +0800
Subject: [PATCH] 部分功能小调整

---
 src/components/do/b1-inspect-order-plan/Inspection.vue |   11 ++++++++---
 1 files changed, 8 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 4592b60..13d3872 100644
--- a/src/components/do/b1-inspect-order-plan/Inspection.vue
+++ b/src/components/do/b1-inspect-order-plan/Inspection.vue
@@ -231,7 +231,7 @@
           <el-input clearable v-model="insOrder.appointed" disabled size="small" placeholder="璇疯緭鍏�"></el-input>
         </el-form-item>
         <el-form-item label="褰撳墠鏍峰搧浣嶆暟:">
-          <el-tag v-if="currentSample.index">{{ `NO.${currentSample.index}` }}</el-tag>
+          <el-tag v-if="currentKey">{{ `NO.${currentKey}` }}</el-tag>
         </el-form-item>
       </el-form>
     </div>
@@ -519,7 +519,7 @@
         this.$axios.post(this.$api.insOrderPlan.doInsOrder, {
           id: val,
           laboratory: this.sonLaboratory
-        }).then(res => {
+        }).then(async res => {
           this.insOrder = res.data.insOrder;
           this.urgentList.forEach(m => {
             if (m.value == this.insOrder.type) {
@@ -528,6 +528,8 @@
           })
           this.sampleProduct = res.data.sampleProduct
           this.currentSample = this.HaveJson(this.sampleProduct[0])
+          let list = await this.getCurrentProduct(this.currentSample.id,0)
+          this.currentSample.insProduct = this.HaveJson(list)
           this.currentSample.insProduct.forEach(a => {
             this.param[a.id] = {
               insValue: [],
@@ -643,6 +645,7 @@
         this.bushing = []
         this.currentBushing = null;
         this.sampleVisible = false;
+        this.currentSample = this.HaveJson(row)
         let list = await this.getCurrentProduct(row.id,0)
         this.currentSample.insProduct = this.HaveJson(list)
         this.currentSample.insProduct.forEach(a => {
@@ -1488,7 +1491,7 @@
           flag = false;
         });
       },
-      caretSample(num){
+      async caretSample(num){
         let index = this.currentKey + num
         if(index < 1){
           this.$message.error('褰撳墠鏄涓�涓牱鍝�')
@@ -1499,6 +1502,8 @@
         }
         this.currentKey = index
         this.currentSample = this.HaveJson(this.sampleProduct[index - 1])
+        let list = await this.getCurrentProduct(this.currentSample.id,0)
+        this.currentSample.insProduct = this.HaveJson(list)
         this.currentSample.insProduct.forEach(a => {
           this.param[a.id] = {
             insValue: [],

--
Gitblit v1.9.3