luobang 2 years ago
parent
commit
2fd709446a

+ 2 - 2
build/utils.js

@@ -16,8 +16,8 @@ const devPathSrc = path.resolve(__dirname, '../../../src') // node_modules应用
 //       统计报表       组织机构/系统管理 采购  仓储
 //       统计报表       组织机构/系统管理 采购  仓储
 //  'statisticalReport','systemConfig','TMS','WMS','workFlow','ADMINISTRATORS']
 //  'statisticalReport','systemConfig','TMS','WMS','workFlow','ADMINISTRATORS']
 
 
-let devModules = ['all']
-// let devModules = ['index', 'statisticalReport']
+// let devModules = ['all']
+let devModules = ['index', 'statisticalReport']
 // let devModules = ['all']
 // let devModules = ['all']
 
 
 // let devModules = ['index', 'ADMINISTRATORS']
 // let devModules = ['index', 'ADMINISTRATORS']

+ 2 - 2
config/index.js

@@ -72,8 +72,8 @@ let proxyTable = {
   },
   },
   // 所有数据的请求域名地址
   // 所有数据的请求域名地址
   '/api/v1': {
   '/api/v1': {
-    target: 'http://172.16.33.166:80',
-    // target: 'http://localhost:8080',
+    // target: 'http://172.16.33.166:80',
+    target: 'http://localhost:8080',
     // target: 'http://192.168.1.104:8080',
     // target: 'http://192.168.1.104:8080',
     ws: true,
     ws: true,
     pathRewrite: {
     pathRewrite: {

+ 15 - 10
src/views/statisticalReport/components/salesLogisticsStatistics/saleSteelReports.vue

@@ -3795,17 +3795,22 @@ export default {
           }
           }
         )
         )
         .then(res => {
         .then(res => {
+          debugger
           this.tableData = res.data.data
           this.tableData = res.data.data
-          this.totalNumber = res.data.data[0].totalNumber
-          this.totalCapacity = res.data.data[0].totalCapacity
-          this.filterConsigneeList = res.data.data[0].filterConsigneeList
-          this.filterCarrierList = res.data.data[0].filterCarrierList
-          this.filterCapacityList = res.data.data[0].filterCapacityList
-          this.filtermaterialNameList = res.data.data[0].filtermaterialNameList
-          this.filterorderStatus = res.data.data[0].filterorderStatus
-          this.filteraddressPlace = res.data.data[0].filteraddressPlace
-          this.filtermaterialSpe = res.data.data[0].filtermaterialSpe
-          this.filterSaleRemark = res.data.data[0].filterSaleRemark
+          if (res.data.data.length > 0) {
+            this.totalNumber = res.data.data[0].totalNumber
+            this.totalCapacity = res.data.data[0].totalCapacity
+            this.filterConsigneeList = res.data.data[0].filterConsigneeList
+            this.filterCarrierList = res.data.data[0].filterCarrierList
+            this.filterCapacityList = res.data.data[0].filterCapacityList
+            this.filtermaterialNameList =
+              res.data.data[0].filtermaterialNameList
+            this.filterorderStatus = res.data.data[0].filterorderStatus
+            this.filteraddressPlace = res.data.data[0].filteraddressPlace
+            this.filtermaterialSpe = res.data.data[0].filtermaterialSpe
+            this.filterSaleRemark = res.data.data[0].filterSaleRemark
+          }
+
           // this.getNodeNum(this.tableData)
           // this.getNodeNum(this.tableData)
           if (
           if (
             getCookie('orgCode') == 'shouhuokehu' &&
             getCookie('orgCode') == 'shouhuokehu' &&