From d2c182e7310c30a38ec6ce0d8a1d2ce00d51ac8f Mon Sep 17 00:00:00 2001 From: zss <zss@example.com> Date: 星期四, 04 一月 2024 14:54:32 +0800 Subject: [PATCH] 细节调试 --- src/views/plan/manufacturingorder/auto-operationtask.vue | 41 ++++++++++++++++++++++++++--------------- 1 files changed, 26 insertions(+), 15 deletions(-) diff --git a/src/views/plan/manufacturingorder/auto-operationtask.vue b/src/views/plan/manufacturingorder/auto-operationtask.vue index 0fc3bb8..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 @@ -74,7 +74,7 @@ </el-select> </template> </el-table-column> - <el-table-column prop="locationId" label="搴撲綅" align="center"> + <!-- <el-table-column prop="locationId" label="搴撲綅" align="center"> <template slot-scope="scope"> <el-select v-model="scope.row.locationId" @@ -92,11 +92,12 @@ </el-option> </el-select> </template> - </el-table-column> + </el-table-column> --> <el-table-column 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" @@ -124,7 +126,7 @@ </el-table-column> <el-table-column prop="sunit" label="鍗曚綅2" align="center"> </el-table-column> --> - <el-table-column prop="reelSpec" label="杞藉叿瑙勬牸" align="center"> + <!-- <el-table-column prop="reelSpec" label="杞藉叿瑙勬牸" align="center"> <template slot-scope="scope"> <el-input v-model="scope.row.reelSpec"></el-input> </template> @@ -133,8 +135,8 @@ <template slot-scope="scope"> <el-input v-model="scope.row.discNum"></el-input> </template> - </el-table-column> - <el-table-column prop="remark" label="澶囨敞" align="center"> + </el-table-column> --> + <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