From 8cf8aef0a99b4a2f7432542b13d705a575ae5cae Mon Sep 17 00:00:00 2001
From: licp <lichunping@guanfang.com.cn>
Date: 星期四, 01 八月 2024 14:01:55 +0800
Subject: [PATCH] 上线后优化

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

diff --git a/src/components/do/b1-inspect-order-plan/Inspection.vue b/src/components/do/b1-inspect-order-plan/Inspection.vue
index de39416..a87fd58 100644
--- a/src/components/do/b1-inspect-order-plan/Inspection.vue
+++ b/src/components/do/b1-inspect-order-plan/Inspection.vue
@@ -784,6 +784,46 @@
         <el-button type="primary" @click="submit()">纭� 瀹�</el-button>
       </span>
     </el-dialog>
+    <el-dialog title="鏁版嵁閲囬泦" :visible.sync="dataGetDia" min-width="400px" :close-on-click-modal="false" :close-on-press-escape="false" :before-close="beforeDataGetDia">
+      <div>
+        <table border="1" cellpadding="10" class="thermal-table">
+          <tr>
+            <td style="width: 120px;">妫�楠岄」</td>
+            <td style="width: 120px;">妫�楠屽瓙椤�</td>
+            <td>鏁伴噰鏁版嵁</td>
+          </tr>
+          <template v-for="(item,index) in getData">
+            <tr>
+              <td :rowspan="item.child.length">{{item.faName}}</td>
+              <td>{{ item.child[0].name }}</td>
+              <td>
+                <el-checkbox-group
+                  v-model="item.child[0].value"
+                  :min="0"
+                  :max="item.child[0].maxNum">
+                  <el-checkbox v-for="(n,j) in item.child[0].arr" :label="n" :key="j+'ppppppppp'">{{n}}</el-checkbox>
+                </el-checkbox-group>
+              </td>
+            </tr>
+            <tr v-for="(m,i) in item.child" :key="i+'bbbbbbbbbbbbbb'" v-show="i>0">
+              <td>{{ m.name }}</td>
+              <td>
+                <el-checkbox-group
+                  v-model="m.value"
+                  :min="0"
+                  :max="m.maxNum">
+                  <el-checkbox v-for="(n,j) in m.arr" :label="n" :key="j+'bbbbbbbbbbbbbb'">{{n}}</el-checkbox>
+                </el-checkbox-group>
+              </td>
+            </tr>
+          </template>
+        </table>
+      </div>
+      <span slot="footer" class="dialog-footer">
+        <el-button @click="beforeDataGetDia()">鍙� 娑�</el-button>
+        <el-button type="primary" @click="submitDataGet()">纭� 瀹�</el-button>
+      </span>
+    </el-dialog>
   </div>
 </template>
 
@@ -798,6 +838,7 @@
     },
     data() {
       return {
+        dataGetDia:false,
         wareTableDataLoading:false,
         fileAdd:false,
         sampleVisible: false,
@@ -961,6 +1002,36 @@
         },
         thermalCyclingLoading:false,
         temDataAcquisition:false,
+        getData:[
+          {
+            faName:'娉㈤暱闄勫姞琛板噺',
+            child:[
+              {
+                name:'1285nm~1330nm',
+                arr:[12,13],
+                maxNum:1,
+                value:[]
+              },
+              {
+                name:'1525nm~1575nm',
+                arr:[12,13],
+                maxNum:1,
+                value:[]
+              },
+            ]
+          },
+          {
+            faName:'鎴嚦娉㈤暱',
+            child:[
+              {
+                name:'鎴嚦娉㈤暱',
+                arr:[12,13,14,15],
+                maxNum:3,
+                value:[]
+              }
+            ]
+          }
+        ]
       }
     },
     computed: {
@@ -1218,6 +1289,20 @@
           })
         }
       },
+      beforeDataGetDia(done){
+        this.$confirm('鏄惁鍙栨秷鏁版嵁閲囬泦?', "鎻愮ず", {
+          confirmButtonText: "纭畾",
+          cancelButtonText: "鍙栨秷",
+          type: "warning"
+        }).then(() => {
+          if(done){
+            done()
+          }else{
+            this.dataGetDia = false
+          }
+        }).catch(() => {})
+      },
+      submitDataGet(){},
       // 澶氱嚎绋�
       startWorker() {
         if (this.worker) {

--
Gitblit v1.9.3