From 616a71ebbb82d6143768a17bf4ab84b860bb82e0 Mon Sep 17 00:00:00 2001
From: licp <lichunping@guanfang.com.cn>
Date: 星期二, 21 五月 2024 14:53:12 +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