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 |  109 ++++++++++++++++++++++++++++++++++++++++++++++++++++--
 1 files changed, 105 insertions(+), 4 deletions(-)

diff --git a/src/components/do/b1-inspect-order-plan/Inspection.vue b/src/components/do/b1-inspect-order-plan/Inspection.vue
index 003f684..a87fd58 100644
--- a/src/components/do/b1-inspect-order-plan/Inspection.vue
+++ b/src/components/do/b1-inspect-order-plan/Inspection.vue
@@ -318,7 +318,7 @@
             </el-form-item>
           </el-form>
           <el-button type="primary" size="small" v-if="(dataAcquisitionEidt>0||tableLists.find(m=>m.templateId==currentTable)&&tableLists.find(m=>m.templateId==currentTable).templateName=='娓╁害寰幆妫�楠屽師濮嬭褰�'&&temDataAcquisition)&&PROJECT=='妫�娴嬩腑蹇�'&&state==1" @click="getDataAcquisitionDevice" :loading="dataAcquisitionLoading">鏁版嵁閲囬泦</el-button>
-          <el-button :type="dataAcquisitionEidtAble?'':'primary'" size="small" v-if="(dataAcquisitionEidt>0)&&PROJECT=='妫�娴嬩腑蹇�'&&collected&&state==1" @click="dataAcquisitionEidtAble=!dataAcquisitionEidtAble">{{dataAcquisitionEidtAble?'鍏抽棴缂栬緫':'缂栬緫鏁伴噰'}}</el-button>
+          <el-button :type="dataAcquisitionEidtAble?'':'primary'" size="small" v-if="(dataAcquisitionEidt>0||(tableLists.find(m=>m.templateId==currentTable)&&tableLists.find(m=>m.templateId==currentTable).templateName=='娓╁害寰幆妫�楠屽師濮嬭褰�'))&&PROJECT=='妫�娴嬩腑蹇�'&&collected&&state==1" @click="dataAcquisitionEidtAble=!dataAcquisitionEidtAble">{{dataAcquisitionEidtAble?'鍏抽棴缂栬緫':'缂栬緫鏁伴噰'}}</el-button>
         </div>
       </div>
       <div class="center-box" id="nav" v-loading="tableLoading" v-if="!tableLists.find(m=>m.templateId==currentTable)||(tableLists.find(m=>m.templateId==currentTable).templateName!='娓╁害寰幆妫�楠屽師濮嬭褰�'&&!tableLists.find(m=>m.templateId==currentTable).templateName.includes('鐑惊鐜�')&&!tableLists.find(m=>m.templateId==currentTable).templateName.includes('娓╁崌璇曢獙'))">
@@ -537,7 +537,7 @@
                 {{ '澶栫'+(index+1) }}
               </template>
               <template slot-scope="scope">
-                <el-input size="small" v-model="scope.row.arr[index].value0" placeholder="" :disabled="state>1" @change="m=>changeItem(scope.row.arr[index])"></el-input>
+                <el-input size="small" v-model="scope.row.arr[index].value0" placeholder="" :disabled="state>1||!dataAcquisitionEidtAble" @change="m=>changeItem(scope.row.arr[index])"></el-input>
               </template>
             </el-table-column>
             <el-table-column
@@ -549,7 +549,7 @@
                 {{ '鍐呯'+(index+1) }}
               </template>
               <template slot-scope="scope">
-                <el-input size="small" :disabled="state>1" v-model="scope.row.arr[index].value1" placeholder="" @change="m=>changeItem(scope.row.arr[index])"></el-input>
+                <el-input size="small" :disabled="state>1||!dataAcquisitionEidtAble"  v-model="scope.row.arr[index].value1" placeholder="" @change="m=>changeItem(scope.row.arr[index])"></el-input>
               </template>
             </el-table-column>
             <el-table-column
@@ -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) {
@@ -2028,7 +2113,21 @@
               label:m
             })
           })
-          this.wareFormChange()
+          this.wareTableDataLoading = true
+          this.$axios.post(this.$api.deviceScope.temDataAcquisition2,{
+            entrustCode:this.insOrder.entrustCode,
+            sampleCode:this.currentSample.sampleCode,
+            model:this.currentSample.model,
+            }, {
+            headers: {
+              'Content-Type': 'application/json'
+            },
+            noQs:true
+          }).then(res=>{
+            // console.log(res.data)
+            this.wareFormChange()
+          })
+          // this.wareFormChange()
         }
         // 娓╁害寰幆妫�楠屽師濮嬭褰�---缁撴潫
         // 鐑惊鐜楠屽師濮嬭褰�---寮�濮�
@@ -2694,6 +2793,8 @@
       getUserInfo() {
         this.$axios.get(this.$api.user.getUserInfo).then(res => {
           this.userId = res.data.id
+          this.componentData.entity.userId = res.data.id
+          console.log(1111,this.userId)
         })
       },
       // 澶嶆牳

--
Gitblit v1.9.3