From 41e0df8413624e6034c967f3afae30da59370879 Mon Sep 17 00:00:00 2001
From: zouyu <2723363702@qq.com>
Date: 星期一, 11 十二月 2023 16:20:15 +0800
Subject: [PATCH] 	modified:   src/components/verifition/Verify/VerifyPoints.vue 	modified:   src/const/crud/admin/sys-public-param.js 	modified:   src/page/full-screen/fullScreenPlus.vue 	modified:   src/page/index/logo.vue 	modified:   src/page/index/sidebar/sidebarItem.vue 	modified:   src/page/login/index.vue 	modified:   src/page/login/thirdpartylogin.vue 	modified:   src/util/elAttr.js 	modified:   src/views/accounting/unitworkfactor/unitworkfactor-form.vue 	modified:   src/views/accounting/unitworkfactor/updateQuota-form.vue 	modified:   src/views/basic/discmaintenance/discmaintenance-form.vue 	modified:   src/views/basic/log/index.vue 	modified:   src/views/basic/part/part-form.vue 	modified:   src/views/basic/part/print-label-form.vue 	modified:   src/views/basic/poc/index.vue 	modified:   src/views/basic/tabletest/index.vue 	modified:   src/views/basic/template/index.vue 	modified:   src/views/basic/template/template-form.vue 	modified:   src/views/basic/workstation/workstation-form.vue 	modified:   src/views/common/custom-table.vue 	modified:   src/views/common/documentDetail.vue 	modified:   src/views/common/operationParamTemplate.vue 	modified:   src/views/common/rawMaterial-part.vue 	modified:   src/views/common/search-select.vue 	modified:   src/views/common/ztt-table.vue 	modified:   src/views/huawei/code19bind/list.vue 	modified:   src/views/huawei/code19gen/form.vue 	modified:   src/views/huawei/grossweightcode/list.vue 	modified:   src/views/huawei/grossweightcode/task-secret-form.vue 	modified:   src/views/oa/JiegouModal.vue 	modified:   src/views/oa/PeizhiModal.vue 	modified:   src/views/oa/technology-document-new.vue 	modified:   src/views/oa/technology-document.vue 	modified:   src/views/plan/customer/index.vue 	modified:   src/views/plan/customerorder/confirm-pull-customerorder.vue 	modified:   src/views/plan/customerorder/customerorder-config-history.vue 	modified:   src/views/plan/customerorder/customerorder-form.vue 	modified:   src/views/plan/customerorder/customerorder-return.vue 	modified:   src/views/plan/customerorder/customerorder-ztt-table.vue 	modified:   src/views/plan/customerorder/index.vue 	modified:   src/views/plan/customerorder/other-customer-order-line.vue 	modified:   src/views/plan/customerorder/sample-customerorder-form.vue 	modified:   src/views/plan/customerorder/schedule-table.vue 	modified:   src/views/plan/manufacturingorder/auto-operationtask.vue 	modified:   src/views/plan/manufacturingorder/customerorder.vue 	modified:   src/views/plan/manufacturingorder/customize-param-template.vue 	modified:   src/views/plan/manufacturingorder/order-operation-form.vue 	modified:   src/views/plan/manufacturingorder/productorder-form.vue 	modified:   src/views/plan/manufacturingorderapply/index.vue 	modified:   src/views/plan/masterproductionschedule/auto-manufacturingorder.vue 	modified:   src/views/plan/operationtask/gantt.vue 	modified:   src/views/plan/operationtask/operationtask-form.vue 	modified:   src/views/plan/operationtask/task-material.vue 	modified:   src/views/plan/productionschedul/index.vue 	modified:   src/views/plan/productionschedul/template-form.vue 	modified:   src/views/plan/schedule/gantt.vue 	modified:   src/views/plan/schedulelookover/ganttview.vue 	modified:   src/views/plan/segmentmerge/index.vue 	modified:   src/views/plan/segmentmerge/operate-dialog.vue 	modified:   src/views/plan/segmentmerge/operation-technology-form.vue 	modified:   src/views/product/dutyrecord/index.vue 	modified:   src/views/product/producttraceability/index.vue 	modified:   src/views/product/producttraceability/traceability-diagram.vue 	modified:   src/views/product/workbench/batchproductout-form-new.vue 	modified:   src/views/product/workbench/batchproductout-form.vue 	modified:   src/views/product/workbench/feed-form.vue 	modified:   src/views/product/workbench/feed-pane.vue 	modified:   src/views/product/workbench/feed-tab.vue 	modified:   src/views/product/workbench/handymantype.vue 	modified:   src/views/product/workbench/index.vue 	modified:   src/views/product/workbench/mould-pane.vue 	modified:   src/views/product/workbench/operation-task-pane.vue 	modified:   src/views/product/workbench/product-record-form.vue 	modified:   src/views/product/workbench/productout-form-by-batch.vue 	modified:   src/views/product/workbench/productout-form.vue 	modified:   src/views/product/workbench/productrecord-tab.vue 	modified:   src/views/product/workbench/producttracking-tab.vue 	modified:   src/views/product/workbench/shift-productout-form.vue 	modified:   src/views/product/workbench/splitTaskForm.vue 	modified:   src/views/product/workbench/taskinfo-pane.vue 	modified:   src/views/quality/Packaging_ledger/pack-from.vue 	modified:   src/views/quality/apply/index.vue 	modified:   src/views/quality/exception/exception.vue 	modified:   src/views/quality/exception/index.vue 	modified:   src/views/quality/finishedProductInspection/finishedProduct-form.vue 	modified:   src/views/quality/finishedProductInspection/finishedProduct-print.vue 	modified:   src/views/quality/finishedProductInspection/finishedProducter-print.vue 	modified:   src/views/quality/finishedProductInspection/index.vue 	modified:   src/views/quality/newReport/ReportForm.vue 	modified:   src/views/quality/processInspect/index.vue 	modified:   src/views/quality/processInspect/processInspect-form.vue 	modified:   src/views/quality/processconfiguration/index.vue 	modified:   src/views/quality/processconfiguration/table-form.vue 	modified:   src/views/quality/rawMaterial/QrcodeReader.vue 	modified:   src/views/quality/rawMaterial/index.vue 	modified:   src/views/quality/rawMaterial/rawMaterial-form.vue 	modified:   src/views/quality/report/index.vue 	modified:   src/views/quality/standardbind/standardbind-form.vue 	modified:   src/views/quality/statistics/rateChart.vue 	modified:   src/views/quality/testitemlayout/index.vue 	modified:   src/views/quality/testplan/testplan-form.vue 	modified:   src/views/quality/unqualifiedprocess/examineApproveform.vue 	modified:   src/views/quality/unqualifiedprocess/index.vue 	modified:   src/views/quality/unqualifiedprocess/loaction-form.vue 	modified:   src/views/quality/unqualifiedprocess/unqualifiedprocessform.vue 	modified:   src/views/technology/completeproductstructure/completeproductstructure-form.vue 	modified:   src/views/technology/document/checkStandardTable.vue 	modified:   src/views/technology/document/document-form.vue 	modified:   src/views/technology/document/extendsOperation.vue 	modified:   src/views/technology/document/extendsTestStandard.vue 	modified:   src/views/technology/document/extendsTestStandardParam.vue 	modified:   src/views/technology/document/teststandard.vue 	modified:   src/views/technology/structure/single-structure-form.vue 	modified:   src/views/warehouse/changestock/index.vue 	modified:   src/views/warehouse/check/check-detail.vue 	modified:   src/views/warehouse/pallettransports/ifslocation-form.vue 	modified:   src/views/warehouse/pallettransports/ifsstock-form.vue 	modified:   src/views/warehouse/pallettransports/index.vue 	modified:   src/views/warehouse/returnstock/ifslocation-form.vue 	modified:   src/views/warehouse/returnstock/index.vue 	modified:   src/views/warehouse/returnstock/returnstock-form.vue 	modified:   src/views/warehouse/returnstock/stock-part.vue 	modified:   src/views/warehouse/stock/print-label-form.vue 	modified:   src/views/warehouse/stock/small-print-label-form.vue 	modified:   src/views/warehouse/stock/small-warehousing-label-form.vue 	modified:   src/views/warehouse/stock/stock-table.vue 	modified:   src/views/warehouse/stock/warehousing-label-form.vue 	modified:   src/views/zte/pkgidbind/index.vue

---
 src/views/technology/completeproductstructure/index.vue |  177 ++++++++++++++++++++++++++++++----------------------------
 1 files changed, 91 insertions(+), 86 deletions(-)

diff --git a/src/views/technology/completeproductstructure/index.vue b/src/views/technology/completeproductstructure/index.vue
index 4af4a00..1be5f56 100644
--- a/src/views/technology/completeproductstructure/index.vue
+++ b/src/views/technology/completeproductstructure/index.vue
@@ -20,12 +20,13 @@
 import {
   fetchList,
   delObj,
-  addByStructure
+  addByStructure,
 } from '@/api/technology/completeproductstructure'
 import ttable from '@/views/common/ztt-table.vue'
 import { mapGetters } from 'vuex'
 import { changeState } from '../../../api/technology/completeproductstructure'
 import { remote } from '@/api/admin/dict'
+
 export default {
   data() {
     return {
@@ -34,7 +35,7 @@
       uploadInfo: {
         // 鏄惁灞曠ず涓婁紶EXCEL浠ュ強瀵瑰簲鐨剈rl
         isShow: true,
-        url: 'mes/bom/uploadExcel'
+        url: 'mes/bom/uploadExcel',
       },
       prelang: 'completeProductStructure',
       options: {
@@ -49,7 +50,7 @@
         isRefresh: true, // 鏄惁鏄剧ず鍒锋柊鎸夐挳
         isShowHide: true, // 鏄惁鏄剧ず鏄惧奖鎸夐挳
         isSearch: false, // 楂樼骇鏌ヨ鎸夐挳
-        defaultOrderBy: { column: 'id', direction: 'desc' }
+        defaultOrderBy: { column: 'id', direction: 'desc' },
       },
       table: {
         total: 0,
@@ -67,7 +68,7 @@
             isTrue: true,
             isSearch: true,
             searchInfoType: 'text',
-            render: { fun: this.addOrUpdateHandle }
+            render: { fun: this.addOrUpdateHandle },
           },
           // 闆朵欢鍚嶇О
           {
@@ -77,7 +78,7 @@
             sort: true,
             isTrue: true,
             isSearch: true,
-            searchInfoType: 'text'
+            searchInfoType: 'text',
           },
           // 闆朵欢鍙�
           {
@@ -87,7 +88,7 @@
             sort: true,
             isTrue: true,
             isSearch: true,
-            searchInfoType: 'text'
+            searchInfoType: 'text',
           },
 
           // 鐘舵��
@@ -112,7 +113,7 @@
                 formatVal = '宸插彇娑�'
               }
               return formatVal
-            }
+            },
           },
 
           // 绫诲瀷
@@ -127,7 +128,7 @@
             formatter: this.formatBomTypeDbType,
             optList: () => {
               return this.bomTypeDbOptions
-            }
+            },
           },
           // 鐗堟湰鍙�
           {
@@ -137,61 +138,61 @@
             sort: true,
             isTrue: true,
             isSearch: true,
-            searchInfoType: 'text'
+            searchInfoType: 'text',
           },
 
           // 鏇夸唬鍙�
-          {
-            minWidth: '120',
-            prop: 'alternativeNo',
-            label: '鏇夸唬鍙�',
-            sort: true,
-            isTrue: true,
-            isSearch: true,
-            searchInfoType: 'text'
-          },
+          // {
+          //   minWidth: '120',
+          //   prop: 'alternativeNo',
+          //   label: '鏇夸唬鍙�',
+          //   sort: true,
+          //   isTrue: true,
+          //   isSearch: true,
+          //   searchInfoType: 'text',
+          // },
 
           // 鏇夸唬鎻忚堪
-          {
-            minWidth: '120',
-            prop: 'alternativeDesc',
-            label: '鏇夸唬鎻忚堪',
-            sort: true,
-            isTrue: true,
-            isSearch: true,
-            searchInfoType: 'text'
-          },
+          // {
+          //   minWidth: '120',
+          //   prop: 'alternativeDesc',
+          //   label: '鏇夸唬鎻忚堪',
+          //   sort: true,
+          //   isTrue: true,
+          //   isSearch: true,
+          //   searchInfoType: 'text',
+          // },
 
           // 缁濈紭棰滆壊
-          {
-            minWidth: '120',
-            prop: 'insulationColor',
-            label: '缁濈紭棰滆壊',
-            sort: true,
-            isTrue: true,
-            isSearch: true,
-            searchInfoType: 'text'
-          },
+          // {
+          //   minWidth: '120',
+          //   prop: 'insulationColor',
+          //   label: '缁濈紭棰滆壊',
+          //   sort: true,
+          //   isTrue: true,
+          //   isSearch: true,
+          //   searchInfoType: 'text',
+          // },
           // 鎶ゅ棰滆壊
-          {
-            minWidth: '120',
-            prop: 'sheathColor',
-            label: '鎶ゅ棰滆壊',
-            sort: true,
-            isTrue: true,
-            isSearch: true,
-            searchInfoType: 'text'
-          },
+          // {
+          //   minWidth: '120',
+          //   prop: 'sheathColor',
+          //   label: '鎶ゅ棰滆壊',
+          //   sort: true,
+          //   isTrue: true,
+          //   isSearch: true,
+          //   searchInfoType: 'text',
+          // },
           // 鐗规��1
-          {
-            minWidth: '120',
-            prop: 'characteristicOne',
-            label: '鐗规��1',
-            sort: true,
-            isTrue: true,
-            isSearch: true,
-            searchInfoType: 'text'
-          },
+          // {
+          //   minWidth: '120',
+          //   prop: 'characteristicOne',
+          //   label: '鐗规��1',
+          //   sort: true,
+          //   isTrue: true,
+          //   isSearch: true,
+          //   searchInfoType: 'text',
+          // },
           // 鍒涘缓浜�
           {
             minWidth: '120',
@@ -200,7 +201,7 @@
             sort: true,
             isTrue: true,
             isSearch: true,
-            searchInfoType: 'text'
+            searchInfoType: 'text',
           },
           // 鍒涘缓鏃堕棿
           {
@@ -210,8 +211,8 @@
             sort: true,
             isTrue: true,
             isSearch: true,
-            searchInfoType: 'datetimerange'
-          }
+            searchInfoType: 'datetimerange',
+          },
         ],
         toolbar: [
           // {
@@ -226,7 +227,7 @@
             text: '浜у搧缁撴瀯鐢熸垚BOM',
             fun: this.addByStructureHandle,
             disabled: false,
-            permitArr: []
+            permitArr: [],
           },
           {
             text: '鎵瑰噯',
@@ -234,7 +235,7 @@
               this.approveHandle('ACCEPT')
             },
             disabled: false,
-            permitArr: ['01draft']
+            permitArr: ['01draft'],
           },
           {
             text: '鎾ゅ洖',
@@ -242,7 +243,7 @@
               this.approveHandle('REVOKE')
             },
             disabled: false,
-            permitArr: ['02accepted']
+            permitArr: ['02accepted'],
           },
           {
             text: '鎷掔粷',
@@ -250,7 +251,7 @@
               this.approveHandle('CANCEL')
             },
             disabled: false,
-            permitArr: ['02accepted']
+            permitArr: ['02accepted'],
           },
           {
             text: '鍒犻櫎',
@@ -258,46 +259,46 @@
               this.deleteAll()
             },
             disabled: false,
-            permitArr: []
-          }
+            permitArr: [],
+          },
         ],
         operator: [
           {
             text: '鍒犻櫎',
             type: 'text',
             size: 'small',
-            fun: this.deleteHandle
-          }
+            fun: this.deleteHandle,
+          },
         ],
         operatorConfig: {
           fixed: 'right',
           label: '鎿嶄綔',
           width: 100,
-          minWidth: 100
-        }
+          minWidth: 100,
+        },
       },
       stateOptionList: [
         {
           value: '01draft',
-          label: '鑽夌'
+          label: '鑽夌',
         },
         {
           value: '02accepted',
-          label: '宸叉帴鍙�'
+          label: '宸叉帴鍙�',
         },
         {
           value: '03cancelled',
-          label: '宸插彇娑�'
-        }
+          label: '宸插彇娑�',
+        },
       ],
-      bomTypeDbOptions: []
+      bomTypeDbOptions: [],
     }
   },
   components: {
-    ttable
+    ttable,
   },
   computed: {
-    ...mapGetters(['permissions'])
+    ...mapGetters(['permissions']),
   },
   activated() {
     this.getData()
@@ -334,16 +335,20 @@
     addOrUpdateHandle(row) {
       this.$router.push({
         name: 'completeProductStructure',
-        params: { id: row == null ? null : row.id }
+        params: { id: row == null ? null : row.id },
       })
     },
     // 鎸変骇鍝佺粨鏋勭敓鎴怋OM
     addByStructureHandle() {
-      addByStructure()
-      this.$message({
-        message: '宸插湪鍚庡彴鐢熸垚BOM锛岃鎵ц缁撴潫鍚庡埛鏂伴〉闈�',
-        type: 'success'
+      addByStructure().then((res) => {
+        let result = Array.from(new Set(res.data.data))
+        this.$message.success(result.join(','))
+        this.getData()
       })
+      // this.$message({
+      //   message: '宸插湪鍚庡彴鐢熸垚BOM锛岃鎵ц缁撴潫鍚庡埛鏂伴〉闈�',
+      //   type: 'success',
+      // })
     },
     // 鍒犻櫎
     deleteHandle(row) {
@@ -351,9 +356,9 @@
         confirmButtonText: '纭畾',
         cancelButtonText: '鍙栨秷',
         type: 'warning',
-        closeOnClickModal: false
+        closeOnClickModal: false,
       })
-        .then(function() {
+        .then(function () {
           const ids = []
           ids.push(row.id)
           return delObj(ids)
@@ -375,9 +380,9 @@
           confirmButtonText: '纭畾',
           cancelButtonText: '鍙栨秷',
           type: 'warning',
-          closeOnClickModal: false
+          closeOnClickModal: false,
         })
-          .then(function() {
+          .then(function () {
             const ids = that.multipleSelection.map((item) => {
               return item.id
             })
@@ -428,7 +433,7 @@
     handleSelectionChange(val) {
       // 鏍规嵁鐘舵�侊紝绂佺敤琛ㄥご鎸夐挳
       // 绛涢�夊嚭閫変腑璁板綍鐨勭姸鎬�
-      var stateArr = val.map(function(value, index) {
+      var stateArr = val.map(function (value, index) {
         return value.state
       })
       // 閫変腑鐘舵�佹暟缁勫厓绱犲幓閲�
@@ -458,7 +463,7 @@
     },
     getStateOptionList() {
       return this.stateOptionList
-    }
-  }
+    },
+  },
 }
 </script>

--
Gitblit v1.9.3