From 9da0675fa67f1f03f48881b2664da4c01356d1b5 Mon Sep 17 00:00:00 2001 From: zss <zss@example.com> Date: 星期三, 23 七月 2025 15:01:08 +0800 Subject: [PATCH] 插回损--功能修改 --- src/views/technology/operation/operation-form.vue | 13 ++++++++++++- 1 files changed, 12 insertions(+), 1 deletions(-) diff --git a/src/views/technology/operation/operation-form.vue b/src/views/technology/operation/operation-form.vue index 85832ba..455f8cb 100644 --- a/src/views/technology/operation/operation-form.vue +++ b/src/views/technology/operation/operation-form.vue @@ -36,6 +36,7 @@ style="width:100%" v-model="dataForm.operationNo" placeholder="宸ュ簭缂栧彿" + :disabled="isUpdate" ></el-input> </el-form-item> </el-col> @@ -281,6 +282,7 @@ <ParamTemplateDialog :currshowlist.sync="showOperationTemplate" @handleSelectionParamTemplateChange="selectOperationTemplate" + :paramTemplateObj="templateDefaultObj" /> <StepDialog :currshowlist.sync="showStep" @@ -329,6 +331,7 @@ typeOptions: [], ids: [], showOperationTemplate: false, + templateDefaultObj: { dataType: '鐢熶骇璁板綍' }, showStep: false, isInsertStep: false, stepIndex: null, @@ -380,6 +383,9 @@ name: [ { required: true, message: '宸ュ簭鍚嶇О涓嶈兘涓虹┖', trigger: 'blur' } ], + workCenter: [ + { required: true, message: '宸ヤ綔涓績涓嶈兘涓虹┖', trigger: 'blur' } + ], productionCounting: [ { required: true, message: '鏄惁鎶ュ伐涓嶈兘涓虹┖', trigger: 'blur' } ], @@ -398,7 +404,8 @@ workCenterOptions: [], runTimeCodeDbOptions: [], laborClassNoOptions: [], - outsideOpItemOptions: [] + outsideOpItemOptions: [], + isUpdate:false } }, computed: { @@ -507,6 +514,7 @@ init() { // this.operationId = this.dataForm.id // this.fetchCapabilityForOperation() + if (this.dataForm.id) { getObj(this.dataForm.id).then((response) => { this.dataForm = response.data.data @@ -1062,6 +1070,9 @@ created() { this.dataForm.id = this.$route.params.id + if(this.dataForm.id){ + this.isUpdate=true + } this.init() this.initPartFamilySelect() this.getParamType() -- Gitblit v1.9.3