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 |   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