From ef4e46f182aee6253805e66286dee847c573cbde Mon Sep 17 00:00:00 2001 From: licp <lichunping@guanfang.com.cn> Date: 星期三, 22 五月 2024 17:18:34 +0800 Subject: [PATCH] 完成原材料、产品检验、过程检,包装检键盘切换输入框 --- src/views/technology/operation/operation-form.vue | 10 +++++++++- 1 files changed, 9 insertions(+), 1 deletions(-) diff --git a/src/views/technology/operation/operation-form.vue b/src/views/technology/operation/operation-form.vue index 4b83510..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, @@ -401,7 +404,8 @@ workCenterOptions: [], runTimeCodeDbOptions: [], laborClassNoOptions: [], - outsideOpItemOptions: [] + outsideOpItemOptions: [], + isUpdate:false } }, computed: { @@ -510,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 @@ -1065,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