From 0a926b3ce629047a88dbc65cc38ec86c43520336 Mon Sep 17 00:00:00 2001
From: admin <15939171744@163.com>
Date: 星期五, 07 三月 2025 16:33:09 +0800
Subject: [PATCH] -换型bug修改

---
 jcdm-ui/src/views/main/kb/preInstalledTerminal/index.vue |   42 ++++++++++++++++++++++++++++++++++--------
 1 files changed, 34 insertions(+), 8 deletions(-)

diff --git a/jcdm-ui/src/views/main/kb/preInstalledTerminal/index.vue b/jcdm-ui/src/views/main/kb/preInstalledTerminal/index.vue
index 3b9d766..5879247 100644
--- a/jcdm-ui/src/views/main/kb/preInstalledTerminal/index.vue
+++ b/jcdm-ui/src/views/main/kb/preInstalledTerminal/index.vue
@@ -1,18 +1,31 @@
 <template>
   <div class="app-container">
    <el-row :gutter="5">
-     <el-col :span="7">
+     <el-col :span="5">
        <el-card shadow="never">
          <span class="head-font">宸ヤ綅缂栧彿 : {{headContent.processesCode}}</span>
          <span hidden>{{headContent.inboundTime}}</span>
        </el-card>
      </el-col>
-     <el-col :span="7">
+     <el-col :span="5">
        <el-card shadow="never">
          <span class="head-font">宸ヤ綅鍚嶇О : {{headContent.processesName}}</span>
        </el-card>
      </el-col>
-     <el-col :span="10">
+     <el-col :span="6">
+       <el-card style="height: 57px" shadow="never">
+         <span class="head-font">浜у搧鍨嬪彿 : </span>
+         <el-select style="width: 70%;margin-top: -10px" v-model="selectProductCode" placeholder="璇烽�夋嫨">
+           <el-option
+             v-for="item in options"
+             :key="item.value"
+             :label="item.label"
+             :value="item.value">
+           </el-option>
+         </el-select>
+       </el-card>
+     </el-col>
+     <el-col :span="8">
        <el-card shadow="never">
          <span class="head-font">浜у搧搴忓垪鍙� : {{headContent.sfcCode}}</span>
 <!--         <el-input v-model="content" style="float: right;width: 150px;" placeholder="璇疯緭鍏ュ唴瀹�"></el-input>-->
@@ -214,6 +227,17 @@
   name: "stationTerminal",
   data() {
     return {
+      selectProductCode: 'PE01B',
+      options: [{
+        value: 'PE01B',
+        label: 'PE01B'
+      }, {
+        value: 'PE01F',
+        label: 'PE01F'
+      }, {
+        value: 'PE01H',
+        label: 'PE01H'
+      }],
       showInput: true,
       serialPortContent: '',
       // 鏌ヨ鍙傛暟
@@ -363,7 +387,7 @@
         scanBarcode: value,
         sfcBarcode: this.headContent.sfcCode,
         workOrderNo: this.workpieceInformation.workOrderNo,
-        productCode: "PE01B",
+        productCode: this.selectProductCode,
         locationCode: this.headContent.processesCode,
         collectionTime: new Date()
       }
@@ -381,7 +405,7 @@
     },
     /** 鏌ヨ閰嶆柟閰嶇疆瀛愪俊鎭垪琛� */
     getListFormulaChild() {
-      this.formulaChildParams.productCode = "PE01B"
+      this.formulaChildParams.productCode = this.selectProductCode
       this.formulaChildParams.processesCode = this.headContent.processesCode
       console.log(this.formulaChildParams)
       noPageListFormulaChild(this.formulaChildParams).then(response => {
@@ -415,7 +439,7 @@
     },
     clearClick(){
       const param = {
-        productCode: 'PE01B',
+        productCode: this.selectProductCode,
         locationCode: this.headContent.processesCode,
       }
       clearWorkpieceRelease(param).then(response => {});
@@ -436,6 +460,7 @@
     /** 鏌ヨ宸ュ崟鍒楄〃 */
     async getList() {
       const param = {
+        productCode: this.selectProductCode,
         processesCode: this.headContent.processesCode,
       }
       fistSetpNumber(param).then(response => {});
@@ -514,7 +539,7 @@
             tightenTheArray: event.data,
             paramCode: formulaChilds.paramCode,
             // workOrderNo: self.workpieceInformation.workOrderNo,
-            // productCode: "1P102S",
+            productCode: self.selectProductCode,
             locationCode: self.headContent.processesCode,
             productBarcode: self.headContent.sfcCode,
             spareField2: formulaChilds.spareField2,
@@ -541,10 +566,11 @@
                   self.getListFormulaChild()
                 }else {
                   const param = {
+                    id: formulaChilds.id,
                     locationCode: self.headContent.processesCode,
                     productBarcode: self.headContent.sfcCode,
                     inboundTime: self.headContent.inboundTime,
-                    productCode: "PE01B",
+                    productCode: self.selectProductCode,
                     workOrderNo: "-",
 
                   }

--
Gitblit v1.9.3