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 |   50 ++++++++++++++++++++++++++++++++++----------------
 1 files changed, 34 insertions(+), 16 deletions(-)

diff --git a/src/views/plan/customerorder/index.vue b/src/views/plan/customerorder/index.vue
index 3b0251a..0123e22 100644
--- a/src/views/plan/customerorder/index.vue
+++ b/src/views/plan/customerorder/index.vue
@@ -57,6 +57,12 @@
             @click="() => (exportDialogVisible = true)"
             >瀵煎嚭鍙拌处</el-button
           >
+          <!-- <el-button
+            style="margin-left: 10px"
+            type="primary"
+            @click="() => ($refs.technology.init())"
+            >缂栧啓鎶�鏈氦搴曞崟</el-button
+          > -->
         </template>
       </ttable>
       <!-- 寮圭獥, 鏃ユ湡閫夋嫨 -->
@@ -347,6 +353,7 @@
         ></el-table-column>
       </el-table>
     </el-dialog>
+    <technology-form ref="technology"></technology-form>
   </div>
 </template>
 
@@ -358,6 +365,7 @@
 } from '@/api/plan/customerOrderInterrelated'
 import ConfirmPullCustomerorder from './confirm-pull-customerorder'
 import TableForm from './customerorder-form'
+import TechnologyForm from './technology-form.vue'
 import TableFormDEesc from './customerorder-form-desc'
 import SampleTableForm from './sample-customerorder-form'
 import { mapGetters } from 'vuex'
@@ -400,6 +408,7 @@
       interrelatedOrderId: null,
       interrelatedOrderData: [],
       showInterrelatedOrderDialog: false,
+      technologyDialog:true,
       uniqueStateArr: [],
       dataForm: {
         selectTime: null,
@@ -586,7 +595,7 @@
             sort: true,
             isTrue: true,
             isSearch: true,
-            searchInfoType: 'text',
+            searchInfoType: 'date',
             formatter: this.formatDutyDate,
           },
           {
@@ -963,6 +972,7 @@
     SalesPartBatchDialog,
     TableFormDEesc,
     CustomerorderReturnDialog,
+    TechnologyForm,
   },
   computed: {
     ...mapGetters(['permissions']),
@@ -1001,6 +1011,7 @@
   created() {
     // this.getManufactureAttrs()
     this.getTitles()
+    if (this.permissions.plan_customerorder_add) {
     this.table.toolbar.push({
       text: '鏂板閿�鍞鍗�',
       type: 'primary',
@@ -1008,6 +1019,7 @@
       disabled: false,
       permitArr: [],
     })
+    }
     if (this.permissions.customerorder_from_otc) {
       this.table.toolbar.push({
         text: '鑾峰彇閿�鍞鍗�',
@@ -1036,20 +1048,25 @@
         permitArr: [],
       })
     }
-    this.table.toolbar.push({
-        text: '涓嬭浇宸ヨ壓鏂囦欢',
-        disabled: false,
-        type: 'primary',
-        fun: this.downloadWord,
-        permitArr: ['03plan','04planed'],
-    })
-    this.table.toolbar.push({
-        text: '涓嬭浇鎺掍骇鍗�',
-        disabled: false,
-        type: 'primary',
-        permitArr: [],
-        fun: this.downloadProductionScheduling,
-    })
+    if(this.permissions.plan_download_process_file){
+        this.table.toolbar.push({
+            text: '涓嬭浇宸ヨ壓鏂囦欢',
+            disabled: false,
+            type: 'primary',
+            fun: this.downloadWord,
+            permitArr: ['03plan','04planed'],
+        })
+    }
+    if(this.permissions.plan_download_product_file){
+        this.table.toolbar.push({
+            text: '涓嬭浇鎺掍骇鍗�',
+            disabled: false,
+            type: 'primary',
+            permitArr: [],
+            fun: this.downloadProductionScheduling,
+        })
+    }
+    if(this.permissions.plan_relevance_order){
     this.table.toolbar.push({
       text: '鍏宠仈璁㈠崟',
       disabled: false,
@@ -1057,6 +1074,7 @@
       fun: this.interrelatedOrderFun,
       permitArr: [],
     })
+    }
     if (this.permissions.customerorder_create_masterplan) {
       this.table.toolbar.push({
         text: '涓荤敓浜ц鍒�',
@@ -1130,7 +1148,7 @@
             this.$message.error("璇烽�夋嫨涓�鏉℃暟鎹�")
             return
         }
-        downloadProduct({ids: ids}).then(res=>{
+        downloadProduct(ids).then(res=>{
             if(res.status===200){
                 transform(res)
             }

--
Gitblit v1.9.3