From 0f1d50991781313598c47c325256d61a7513e81f Mon Sep 17 00:00:00 2001
From: zss <zss@example.com>
Date: 星期二, 09 四月 2024 19:45:45 +0800
Subject: [PATCH] 工序编辑不能修改编号

---
 src/views/plan/customerorder/index.vue                  |    4 ++++
 src/views/quality/teststandard/index.vue                |    4 +++-
 src/router/axios.js                                     |    2 +-
 src/views/technology/operation/operation-form.vue       |    8 +++++++-
 src/views/technology/completeproductstructure/index.vue |    2 ++
 5 files changed, 17 insertions(+), 3 deletions(-)

diff --git a/src/router/axios.js b/src/router/axios.js
index 5c18a42..6dcb2fd 100644
--- a/src/router/axios.js
+++ b/src/router/axios.js
@@ -8,7 +8,7 @@
 import qs from 'qs'
 import store from '@/store' // progress bar style
 import { webVersion } from '@/config/sysParam'
-axios.defaults.timeout = 60000
+axios.defaults.timeout = 20*60*1000
 // 杩斿洖鍏朵粬鐘舵�佸悧
 axios.defaults.validateStatus = function(status) {
   return status >= 200 && status <= 500 // 榛樿鐨�
diff --git a/src/views/plan/customerorder/index.vue b/src/views/plan/customerorder/index.vue
index a9f5500..0123e22 100644
--- a/src/views/plan/customerorder/index.vue
+++ b/src/views/plan/customerorder/index.vue
@@ -1011,6 +1011,7 @@
   created() {
     // this.getManufactureAttrs()
     this.getTitles()
+    if (this.permissions.plan_customerorder_add) {
     this.table.toolbar.push({
       text: '鏂板閿�鍞鍗�',
       type: 'primary',
@@ -1018,6 +1019,7 @@
       disabled: false,
       permitArr: [],
     })
+    }
     if (this.permissions.customerorder_from_otc) {
       this.table.toolbar.push({
         text: '鑾峰彇閿�鍞鍗�',
@@ -1064,6 +1066,7 @@
             fun: this.downloadProductionScheduling,
         })
     }
+    if(this.permissions.plan_relevance_order){
     this.table.toolbar.push({
       text: '鍏宠仈璁㈠崟',
       disabled: false,
@@ -1071,6 +1074,7 @@
       fun: this.interrelatedOrderFun,
       permitArr: [],
     })
+    }
     if (this.permissions.customerorder_create_masterplan) {
       this.table.toolbar.push({
         text: '涓荤敓浜ц鍒�',
diff --git a/src/views/quality/teststandard/index.vue b/src/views/quality/teststandard/index.vue
index 72deceb..392c8ed 100644
--- a/src/views/quality/teststandard/index.vue
+++ b/src/views/quality/teststandard/index.vue
@@ -867,8 +867,10 @@
       this.isSubmit = true
       if (this.testStandardParams.length > 0) {
         this.testStandardParams.map(m=>{
-            m.referenceValue = m.referenceValue.replace(',','锛�').replace('(','锛�').replace(')','锛�')
+          if(m.referenceValue !== undefined) {
+              m.referenceValue = m.referenceValue.replace(',','锛�').replace('(','锛�').replace(')','锛�')
             return m
+          }
         })
         addTestStandardParam(this.testStandardParams)
           .then((response) => {
diff --git a/src/views/technology/completeproductstructure/index.vue b/src/views/technology/completeproductstructure/index.vue
index 3a79e2b..4f88d88 100644
--- a/src/views/technology/completeproductstructure/index.vue
+++ b/src/views/technology/completeproductstructure/index.vue
@@ -295,6 +295,7 @@
         fun: ()=>{this.deleteAll()},
       })
     }
+    if(this.permissions.technology_completeproductstructure_bom_export){
     this.table.toolbar.push({
         text: 'BOM瀵煎嚭',
         type:'primary',
@@ -302,6 +303,7 @@
         permitArr: [],
         fun: ()=>{this.exportBomFun()},
       })
+    }
     if(this.permissions.technology_completeproductstructure_del){
         this.table.operator = [
           {
diff --git a/src/views/technology/operation/operation-form.vue b/src/views/technology/operation/operation-form.vue
index dfdf857..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>
@@ -403,7 +404,8 @@
       workCenterOptions: [],
       runTimeCodeDbOptions: [],
       laborClassNoOptions: [],
-      outsideOpItemOptions: []
+      outsideOpItemOptions: [],
+      isUpdate:false
     }
   },
   computed: {
@@ -512,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
@@ -1067,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