From b92b0c97bbe23e9c45e29eb53a2baf9885578908 Mon Sep 17 00:00:00 2001
From: 小小儁爺 <1694218219@qq.com>
Date: 星期三, 14 一月 2026 17:05:53 +0800
Subject: [PATCH] 1.甘特图初步研究

---
 src/views/qualityManager/processCheck.vue |   34 ++++++++++++++++++++++++++++++++--
 1 files changed, 32 insertions(+), 2 deletions(-)

diff --git a/src/views/qualityManager/processCheck.vue b/src/views/qualityManager/processCheck.vue
index 72bd3b7..9a39e91 100644
--- a/src/views/qualityManager/processCheck.vue
+++ b/src/views/qualityManager/processCheck.vue
@@ -74,7 +74,21 @@
           </div>
         </div>
         <div class="content2" style="width: 60%;margin-left: 30px;">
-          <div class="orderMsg">鏂规鍚嶇О锛歿{ form.checkstandname }}</div>
+          <div class="orderMsg">鏂规鍚嶇О锛�
+            <el-select
+              v-model="form.checkstandcode"
+              placeholder="璇烽�夋嫨"
+              @change="selectChange"
+            >
+              <el-option
+                v-for="item in checkstandArr"
+                :key="item.checkstandcode"
+                :label="item.checkstandname"
+                :value="item.checkstandcode"
+              />
+            </el-select>
+          </div>
+          <!--          <div class="orderMsg">鏂规鍚嶇О锛歿{ form.checkstandname }}</div>-->
           <div class="orderMsg">鎶芥牱鏂瑰紡锛歿{
             form.sampmethod === 'FIXED' ? '鍥烘椂鎶芥' : form.sampmethod === 'SCARE' ? '姣斾緥鎶芥' : ''
           }}
@@ -307,7 +321,9 @@
       stepActive: 0, // 褰撳墠澶勪簬绗嚑浠�
 
       checkItemArr: [],
-      check_result: ''
+      check_result: '',
+
+      checkstandArr: []
 
     }
   },
@@ -344,6 +360,18 @@
     this.getFocus()
   },
   methods: {
+    // 涓嬫媺鍒囨崲
+    async  selectChange(val) {
+      this.stepActive = 0
+      const t = this.checkstandArr.find(i => i.checkstandcode === val)
+      this.form.sampmethod = t.sampmethod
+      this.form.sampscare = t.sampmethod === 'FIXED' ? t.sampscare : Math.ceil(this
+        .form.good_qty * t.sampscare / 100)
+      this.form.sampscare = this.form.sampscare <= this.form.good_qty ? this.form.sampscare : this.form.good_qty
+
+      await this.getMesOrderStepCheckItemList()
+    },
+
     // 鑾峰彇鑱氱劍
     getFocus() {
       this.$nextTick(() => {
@@ -365,6 +393,8 @@
       this.form.stepname = res.labcont[0].stepname
       this.form.good_qty = res.labcont[0].good_qty
 
+      this.checkstandArr = res.chekstand
+
       this.form.checkstandcode = res.chekstand[0].checkstandcode
       this.form.checkstandname = res.chekstand[0].checkstandname
       this.form.sampmethod = res.chekstand[0].sampmethod

--
Gitblit v1.9.3