From 4e2bb29096ac63837f8d2c5e25766ee094f45d6c Mon Sep 17 00:00:00 2001
From: zouyu <2723363702@qq.com>
Date: 星期三, 27 十二月 2023 14:35:49 +0800
Subject: [PATCH] 	modified:   src/page/index/top/index.vue 	modified:   src/views/common/part.vue 	modified:   src/views/equipment/equipment/index.vue 	modified:   src/views/equipment/metering/index.vue 	modified:   src/views/plan/manufacturingorder/auto-operationtask.vue 	modified:   src/views/plan/operationtask/operationtask-form.vue 	modified:   src/views/quality/Packaging_ledger/index.vue 	modified:   src/views/quality/packageinspect/index.vue 	modified:   src/views/quality/processconfiguration/index.vue 	modified:   src/views/quality/teststandard/index.vue 	modified:   vue.config.js

---
 src/views/plan/manufacturingorder/auto-operationtask.vue |   33 ++++++++++++++++++++++-----------
 1 files changed, 22 insertions(+), 11 deletions(-)

diff --git a/src/views/plan/manufacturingorder/auto-operationtask.vue b/src/views/plan/manufacturingorder/auto-operationtask.vue
index 79dfcbd..ad4cf17 100644
--- a/src/views/plan/manufacturingorder/auto-operationtask.vue
+++ b/src/views/plan/manufacturingorder/auto-operationtask.vue
@@ -25,7 +25,7 @@
         prop="operationName"
         label="宸ュ簭"
         align="center"
-        width="80px"
+        min-width="80px"
         show-overflow-tooltip
       >
       </el-table-column>
@@ -33,8 +33,7 @@
         prop="workCenter"
         label="宸ヤ綔涓績"
         align="center"
-        width="200px"
-        show-overflow-tooltip
+        min-width="220px"
       >
         <template slot-scope="scope">
           <el-select
@@ -54,11 +53,12 @@
           </el-select>
         </template>
       </el-table-column>
-      <el-table-column prop="workstationId" label="宸ヤ綔绔�" align="center">
+      <el-table-column prop="workstationId" min-width="150" label="宸ヤ綔绔�" align="center">
         <template slot-scope="scope">
           <el-select
             v-model="scope.row.workstationId"
             filterable
+            :visible-change="initWorkStation"
             placeholder="璇烽�夋嫨宸ヤ綔绔�"
             style="width:100%"
             clearable
@@ -97,6 +97,7 @@
         prop="partNo"
         label="闆朵欢鍙�"
         align="center"
+        min-width="150"
         show-overflow-tooltip
       >
       </el-table-column>
@@ -104,10 +105,11 @@
         prop="partName"
         label="闆朵欢鍚嶇О"
         align="center"
+        min-width="150"
         show-overflow-tooltip
       >
       </el-table-column>
-      <el-table-column prop="plannedQuantity" label="璁″垝鏁伴噺" align="center">
+      <el-table-column prop="plannedQuantity" min-width="100" label="璁″垝鏁伴噺" align="center">
         <template slot-scope="scope">
           <el-input
             v-model="scope.row.plannedQuantity"
@@ -134,7 +136,7 @@
           <el-input v-model="scope.row.discNum"></el-input>
         </template>
       </el-table-column> -->
-      <el-table-column prop="remark" label="澶囨敞" align="center">
+      <el-table-column prop="remark" min-width="150" label="澶囨敞" align="center">
         <template slot-scope="scope">
           <el-input v-model="scope.row.remark"></el-input>
         </template>
@@ -143,7 +145,7 @@
         prop="plannedStartDate"
         label="璁″垝寮�濮嬫椂闂�"
         align="center"
-        width="200px"
+        min-width="200px"
       >
         <template slot-scope="scope">
           <el-date-picker
@@ -160,7 +162,7 @@
         prop="plannedFinishDate"
         label="璁″垝瀹屾垚鏃堕棿"
         align="center"
-        width="200px"
+        min-width="200px"
       >
         <template slot-scope="scope">
           <el-date-picker
@@ -177,7 +179,7 @@
         prop="manufactureAttr"
         label="鍒堕�犲睘鎬�"
         align="center"
-        width="100px"
+        min-width="150px"
         show-overflow-tooltip
       >
         <template slot-scope="scope">
@@ -197,7 +199,7 @@
           </el-select>
         </template>
       </el-table-column>
-      <el-table-column label="鎿嶄綔" width="100" align="center">
+      <el-table-column label="鎿嶄綔" fixed="right" width="100" align="center">
         <template slot-scope="scope">
           <el-button @click="copyTask(scope.row)" type="text" size="small"
             >澶嶅埗</el-button
@@ -274,6 +276,15 @@
     this.getManufactureAttrs('manufacture_attr_type')
   },
   methods: {
+    initWorkStation(opName,arr){
+      let workId = null
+      arr.forEach(ele=>{
+        if(ele.name.indexOf(opName)>-1){
+          workId = ele.id
+        }
+      }) 
+      return workId                                               
+    },
     getManufactureAttrs(type) {
       remote(type).then((response) => {
         const code = response.data.code
@@ -544,7 +555,7 @@
                 this.operationData.push({
                   operationName: item.operationName,
                   workCenter: item.workCenter,
-                  workstationId: item.workstationId,
+                  workstationId: item.workstationId ? item.workstationId : this.initWorkStation(item.operationName,item.workstations),
                   locationId: item.locationId,
                   partNo: item.partNo,
                   partName: item.partName,

--
Gitblit v1.9.3