From 4963aa4888fc1bcfa6de0c392ee26a134a460cfe Mon Sep 17 00:00:00 2001 From: zss <zss@example.com> Date: 星期三, 05 六月 2024 14:55:43 +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