From 84372c9063b8fa92a6cb392708cfc34ea5648f43 Mon Sep 17 00:00:00 2001 From: zss <zss@example.com> Date: 星期四, 11 一月 2024 17:28:20 +0800 Subject: [PATCH] 车间订单修改工艺文件 --- src/views/plan/manufacturingorder/productorder-form.vue | 26 +++++++++++++++++++------- 1 files changed, 19 insertions(+), 7 deletions(-) diff --git a/src/views/plan/manufacturingorder/productorder-form.vue b/src/views/plan/manufacturingorder/productorder-form.vue index 6ff61e4..081be95 100644 --- a/src/views/plan/manufacturingorder/productorder-form.vue +++ b/src/views/plan/manufacturingorder/productorder-form.vue @@ -154,6 +154,14 @@ </el-select> </el-form-item> </el-col> + <el-col :span="10"> + <el-form-item label="宸ヨ壓鏂囦欢" prop="technologyDocumentName"> + <el-tooltip class="item" effect="dark" :content="dataForm.technologyDocumentName"> + <el-input v-model="dataForm.technologyDocumentName" placeholder=""> + </el-input> + </el-tooltip> + </el-form-item> + </el-col> </el-row> <!-- <el-col :span="2" @@ -1113,7 +1121,9 @@ endDate: null, manufactureAttr: 'N', isReportOperation: false, - outPutBatchList: [] + outPutBatchList: [], + technologyDocumentId: null, + technologyDocumentName: null, }, currentRow: [], currentRouting: {}, // 褰撳墠閫夋嫨鐨勫伐鑹� @@ -1124,6 +1134,9 @@ operationTemplateList: [], // 鍙傛暟闆� templateParamList: [], // 鍙傛暟 dataRule: { + technologyDocumentName:[ + { required: true, message: '宸ヨ壓鏂囦欢涓嶈兘涓虹┖', trigger: 'blur' } + ], workshopTypeCode: [ { required: true, message: '杞﹂棿璁㈠崟绫诲瀷涓嶈兘涓虹┖', trigger: 'blur' } ], @@ -1420,13 +1433,7 @@ checkPart(value, this.dataForm.workshopTypeCode) .then((response) => { const manufacturingOrderDTO = response.data.data - /* this.dataForm.routingList = manufacturingOrderDTO.routingList.filter( - (e) => e.bomTypeDb === this.dataForm.workshopTypeCode - ) */ this.dataForm.routingList = manufacturingOrderDTO.routingList - /* this.dataForm.bomList = manufacturingOrderDTO.bomList.filter( - (e) => e.bomTypeDb === this.dataForm.workshopTypeCode - ) */ this.dataForm.bomList = manufacturingOrderDTO.bomList this.dataForm.technologyRoutingId = manufacturingOrderDTO.technologyRoutingId @@ -1562,10 +1569,13 @@ this.showRouting = true }, selectRouting(param) { + console.log(param); if (param) { this.dataForm.partNo = param.partNo this.dataForm.partName = param.partName this.dataForm.partId = param.partId + this.dataForm.technologyDocumentId = param.id + this.dataForm.technologyDocumentName = param.name this.$refs.dataForm.validateField('partId', (valid) => {}) } }, @@ -1585,6 +1595,8 @@ }) }, // 2.tabs-宸ヨ壓璺嚎 + //宸ヨ壓鏂囦欢閫夋嫨 + // 宸ヨ壓璺嚎閫夋嫨 routingSelectChanged(routingId) { this.currentRouting = this.dataForm.routingList.find( -- Gitblit v1.9.3