luobang 2 years ago
parent
commit
1b659ba751
2 changed files with 21 additions and 19 deletions
  1. 1 1
      build/utils.js
  2. 20 18
      src/views/queue/components/qmsEnFacotory/queueFStart.vue

+ 1 - 1
build/utils.js

@@ -15,7 +15,7 @@ const devPathSrc = path.resolve(__dirname, '../../../src') // node_modules应用
 // ['index','appoint','configManager','homepage',''inward,'queue','RMS','sale','serviceManager','SporadicManage'
 //       统计报表       组织机构/系统管理 采购  仓储
 //  'statisticalReport','systemConfig','TMS','WMS','workFlow','ADMINISTRATORS']
-// let devModules = ['index', 'statisticalReport', 'queue', 'sale']
+// let devModules = ['index', 'queue']
 let devModules = ['all']
 //let devModules=['index']
 if (pathSrc.indexOf('node_modules') > -1) {

+ 20 - 18
src/views/queue/components/qmsEnFacotory/queueFStart.vue

@@ -784,26 +784,28 @@ export default {
       this.materialList = this.materialList.concat(this.materialList1)
     },
     makeSureMaterial() {
-      console.log(this.materialList)
-      var materialIdList = []
-      this.materialList.forEach(e => {
-        if (materialIdList.indexOf(e.materialId) == -1) {
-          materialIdList.push(e.materialId)
+      if (this.materialList.length > 0) {
+        console.log(this.materialList)
+        var materialIdList = []
+        this.materialList.forEach(e => {
+          if (materialIdList.indexOf(e.materialId) == -1) {
+            materialIdList.push(e.materialId)
+          }
+        })
+        let map = {
+          materialList: materialIdList
         }
-      })
-      let map = {
-        materialList: materialIdList
-      }
-      // this.materialList = []
-      // this.materialList1 = []
-      if (this.activeName == 'first') {
-        this.axios
-          .post('/api/v1/qms/getQueueListByQueueUp?isSpelling=0', map)
-          .then(res => {
-            this.tableData1 = res.data.data
-          })
+        // this.materialList = []
+        // this.materialList1 = []
+        if (this.activeName == 'first') {
+          this.axios
+            .post('/api/v1/qms/getQueueListByQueueUp?isSpelling=0', map)
+            .then(res => {
+              this.tableData1 = res.data.data
+            })
+        }
+        this.table1 = false
       }
-      this.table1 = false
     },
     infomation() {
       this.axios.get('/api/v1/uc/getSteelWarehouse').then(res => {