Browse Source

秀阿贵

luobang 2 years ago
parent
commit
428e6f366b

+ 3 - 4
build/utils.js

@@ -16,11 +16,10 @@ const devPathSrc = path.resolve(__dirname, '../../../src') // node_modules应用
 //       统计报表       组织机构/系统管理 采购  仓储
 //  'statisticalReport','systemConfig','TMS','WMS','workFlow','ADMINISTRATORS']
 
-// let devModules = ['index', 'statisticalReport']
-// let devModules = ['all']
-
-//let devModules = ['index', 'statisticalReport', 'queue', 'sale','TMS','QMS','appoint']
+// let devModules = ['index', 'statisticalReport', 'appoint']
 let devModules = ['all']
+//let devModules = ['index', 'statisticalReport', 'queue', 'sale','TMS','QMS','appoint']
+// let devModules = ['all']
 //let devModules=['index']
 if (pathSrc.indexOf('node_modules') > -1) {
   devModules = require('../../../cors.js').devModules

+ 2 - 7
config/index.js

@@ -70,15 +70,10 @@ let proxyTable = {
       '^/icore.icp.web/game/v1': '/v1'
     }
   },
-  // 所有数据的请求域名地址r
+  // 所有数据的请求域名地址
   '/api/v1': {
-<<<<<<< HEAD
-    // target: 'http://172.16.33.166:80',
-    target: 'http://localhost:8080',
-=======
     target: 'http://172.16.33.166:80',
-    //target: 'http://localhost:8080',
->>>>>>> ddf8bee055e4873393f3754b13584d7b24145dab
+    // target: 'http://localhost:8080',
     // target: 'http://192.168.1.104:8080',
     ws: true,
     pathRewrite: {

+ 28 - 26
src/views/statisticalReport/components/salesLogisticsStatistics/saleSteelReports.vue

@@ -1214,7 +1214,9 @@ export default {
         '抵达时间',
         '签收时间',
         '系统建议运价',
-        '摘要'
+        '摘要',
+        '排队开始时间',
+        '钢材科放行时间'
       ],
       //钢材多拼车辆线路ID
       //索引从1-10为1-10拼路线ID
@@ -1301,8 +1303,8 @@ export default {
       orderNumber: null,
       capacityNumber: null,
       arrivalReceiving: false,
-      arriavlList:[],
-      receiveList:[],
+      arriavlList: [],
+      receiveList: [],
       fileListArrival: [],
       fileListReceive: [],
       dialogImageUrl: '',
@@ -1587,32 +1589,32 @@ export default {
       this.axios
         .post('/api/v1/otms/getArrivalPhoto?orderNumber=' + row.orderNo)
         .then(res => {
-          console.log("arrivalPhoto:",res);
-          if(res.data){
-            this.arriavlList=[];
-            res.data.forEach((e,index) => {
+          console.log('arrivalPhoto:', res)
+          if (res.data) {
+            this.arriavlList = []
+            res.data.forEach((e, index) => {
               this.arriavlList.push({
-                name:"file"+index,
-                url:e
-              });
-            });
-            this.fileListArrival=this.arriavlList;
+                name: 'file' + index,
+                url: e
+              })
+            })
+            this.fileListArrival = this.arriavlList
           }
         })
       //签收图片
       this.axios
         .post('/api/v1/otms/getReceivingPhotoByUrl?orderNumber=' + row.orderNo)
         .then(res => {
-          console.log("ReceivingPhoto:",res);
-          if(res.data){
-            this.receiveList=[];
-            res.data.forEach((e,index) => {
+          console.log('ReceivingPhoto:', res)
+          if (res.data) {
+            this.receiveList = []
+            res.data.forEach((e, index) => {
               this.receiveList.push({
-                name:"file"+index,
-                url:e
-              });
-            });
-            this.fileListReceive=this.receiveList;
+                name: 'file' + index,
+                url: e
+              })
+            })
+            this.fileListReceive = this.receiveList
           }
         })
     },
@@ -2374,13 +2376,13 @@ export default {
               loading.close()
             } else {
               loading.close()
-              this.$alert(res.data.data,'提示',{
-                confirmButtonText:"确定",
-                callback:action=>{
-                   this.getSteelReport()
+              this.$alert(res.data.data, '提示', {
+                confirmButtonText: '确定',
+                callback: action => {
+                  this.getSteelReport()
                   this.operation(this.steelMap)
                 }
-              });
+              })
             }
           })
           .catch(() => {

+ 18 - 3
src/views/statisticalReport/components/salesLogisticsStatistics/unloadingSteelReports.vue

@@ -447,11 +447,13 @@ export default {
       filterMap: {},
       //销售订单主表数据
       saleOrderList: [
+        'receiveId',
         'receiveName',
         'isSelfMention',
         'saleRemark',
         'saleOrderReceiveCustomer',
         'salerName',
+        'salerId',
         'saleOrderNo',
         'saleArea',
         'saleOrderId'
@@ -463,9 +465,12 @@ export default {
         'district',
         'town',
         'truckRemark',
+        'shipperAddressId',
+        'placeId',
         'place',
         'saleOrderConsigneeTel',
         'saleDateOfReceipt',
+        'materialId',
         'materialName',
         'materialSpecification',
         'materialModel',
@@ -498,7 +503,7 @@ export default {
     this.remarkDateOld = this.getRemarkDateOld()
     this.addSaleOrder1 = this.debounce(() => {
       this.addSaleOrder()
-    }, 2000)
+    }, 1000)
     this.getSteelReport()
   },
   watch: {
@@ -682,11 +687,15 @@ export default {
             saleOrderListMap.push(map)
           })
           this.axios
-            .post('/api/v1/ams/addUnloadSteelSaleOrderList', saleOrderListMap)
+            .post('/api/v1/ams/addUnloadSteelSaleOrderList', saleOrderListMap, {
+              timeout: 5 * 60 * 1000
+            })
             .then(res => {
               if (res.data.code == '200') {
                 this.axios
-                  .post('/api/v1/ams/closingEntries', closeEntryList)
+                  .post('/api/v1/ams/closingEntries', closeEntryList, {
+                    timeout: 3 * 60 * 1000
+                  })
                   .then(res => {
                     if (res.data.code == '200') {
                       this.getSteelReport()
@@ -699,8 +708,14 @@ export default {
                       })
                     }
                   })
+                  .catch(e => {
+                    loading.close()
+                  })
               }
             })
+            .catch(e => {
+              loading.close()
+            })
         })
         .catch(() => {
           this.$message({