luobang 2 rokov pred
rodič
commit
e9a394e9fb

+ 2 - 2
build/utils.js

@@ -23,9 +23,9 @@ const devPathSrc = path.resolve(__dirname, '../../../src') // node_modules应用
 // let devModules = ['index', 'statisticalReport', 'appoint']
 // let devModules = ['index', 'statisticalReport', 'appoint']
 // let devModules = ['index', 'statisticalReport', 'appoint']
-let devModules = ['all']
+// let devModules = ['index', 'statisticalReport', 'appoint']
 // >>>>>>> ecb211626d4aa9a51230114ced8866039cba10e1
-//let devModules=['index']
+let devModules = ['all']
 if (pathSrc.indexOf('node_modules') > -1) {
   devModules = require('../../../cors.js').devModules
 }

+ 322 - 322
src/views/SporadicManage/components/oldAreaSporadic/transportOrder/transportOrder.vue

@@ -195,14 +195,14 @@
 </template>
 
 <script>
-import { getCookie } from "@/utils/util.js";
-import { sjTime } from "@/utils/sharedJsFile";
+import { getCookie } from '@/utils/util.js'
+import { sjTime } from '@/utils/sharedJsFile'
 export default {
   data() {
     return {
       startTime: null,
       endTime: null,
-      carrierUserId: "",
+      carrierUserId: '',
       //模态窗的框计算
       inputText: null,
       //车辆输入框
@@ -212,61 +212,61 @@ export default {
       //输入框的值
       input: null,
       //选项卡的当前选中的值
-      activeName: "first",
+      activeName: 'first',
       //已下发的表格
       first: {
-        requestUrl: ""
+        requestUrl: ''
       },
       //车辆信息的表格
       truck: {
-        requestUrl: "",
+        requestUrl: '',
         // 控制显示当选列
-        selectionType: "radio"
+        selectionType: 'radio'
       },
       Received: {
-        requestUrl: ""
+        requestUrl: ''
       },
       completed: {
-        requestUrl: ""
+        requestUrl: ''
       },
       refused: {
-        requestUrl: ""
+        requestUrl: ''
       },
       //车辆的表格
       truck: {
-        requestUrl: "",
-        selectionType: "radio"
+        requestUrl: '',
+        selectionType: 'radio'
       },
       //记录旧的row对象
-      oldRow: "",
+      oldRow: '',
       //记录上一个展开的点击次数,单数为展开状态,复数为闭合状态
       oldRowCount: 1,
       //记录旧的row对象
-      oldRow1: "",
+      oldRow1: '',
       //记录上一个展开的点击次数,单数为展开状态,复数为闭合状态
       oldRowCount1: 1,
-      oldRow2: "",
+      oldRow2: '',
       //记录上一个展开的点击次数,单数为展开状态,复数为闭合状态
       oldRowCount2: 1,
       tableHead: [
         {
-          prop: "materialName",
-          label: "物资名称",
+          prop: 'materialName',
+          label: '物资名称',
           width: 150
         },
         {
-          prop: "specificationModel",
-          label: "规格型号",
+          prop: 'specificationModel',
+          label: '规格型号',
           width: 150
         },
         {
-          prop: "materialNumber",
-          label: "物资件数",
+          prop: 'materialNumber',
+          label: '物资件数',
           width: 100
         },
         {
-          prop: "materialWeight",
-          label: "物资重量",
+          prop: 'materialWeight',
+          label: '物资重量',
           width: 100
         }
       ],
@@ -276,560 +276,560 @@ export default {
       //当前选中的订单id
       selectOrderId: null,
       //选中的车辆号
-      capacityNumber: "",
+      capacityNumber: '',
       //选中的运力id
       capacityId: null,
       //是否关闭模态框
       drawer: false,
       //模态框从左往右打开
-      direction: "rtl",
+      direction: 'rtl',
 
       orderId: null,
       //多选的选中的订单id
       selectionList: [],
       //区别点击的是添加运力,还是修改
       index: null
-    };
+    }
   },
   created() {
-    if (getCookie("orgCode") == "chengyunshang") {
+    if (getCookie('orgCode') == 'chengyunshang') {
       this.truck.requestUrl =
-        "/api/v1/uc/getAllCapacityByCarrierLike?apiId=429&carrierSsoId=" +
-        getCookie("userId");
+        '/api/v1/uc/getAllCapacityByCarrierLike?apiId=429&carrierSsoId=' +
+        getCookie('userId')
     } else {
       this.truck.requestUrl =
-        "/api/v1/uc/getAllCapacityByCarrierLike?apiId=429&carrierSsoId=" + null;
+        '/api/v1/uc/getAllCapacityByCarrierLike?apiId=429&carrierSsoId=' + null
     }
-    if (getCookie("orgCode") == "chengyunshang") {
+    if (getCookie('orgCode') == 'chengyunshang') {
       this.first.requestUrl =
-        "/api/v1/oms/getOthersOrderMesToSend?apiId=386&type=1&orderStatus=4&carrierId=" +
-        getCookie("userId");
+        '/api/v1/oms/getOthersOrderMesToSend?apiId=386&type=1&orderStatus=4&carrierId=' +
+        getCookie('userId')
       this.Received.requestUrl =
-        "/api/v1/oms/getOthersOrderMesToSend?apiId=386&type=1&orderStatus=5&carrierId=" +
-        getCookie("userId");
+        '/api/v1/oms/getOthersOrderMesToSend?apiId=386&type=1&orderStatus=5&carrierId=' +
+        getCookie('userId')
       this.completed.requestUrl =
-        "/api/v1/oms/getOthersOrderMesToSend?apiId=386&type=1&orderStatus=2&carrierId=" +
-        getCookie("userId");
+        '/api/v1/oms/getOthersOrderMesToSend?apiId=386&type=1&orderStatus=2&carrierId=' +
+        getCookie('userId')
       this.refused.requestUrl =
-        "/api/v1/oms/getOthersOrderMesToSend?apiId=386&type=1&orderStatus=6&carrierId=" +
-        getCookie("userId");
+        '/api/v1/oms/getOthersOrderMesToSend?apiId=386&type=1&orderStatus=6&carrierId=' +
+        getCookie('userId')
     } else if (
-      getCookie("orgCode") == "dagangadmin" ||
-      getCookie("orgCode") == "zidonghuabu" ||
-      getCookie("orgCode") == "wuliuchuyunzhongxin"
+      getCookie('orgCode') == 'dagangadmin' ||
+      getCookie('orgCode') == 'zidonghuabu' ||
+      getCookie('orgCode') == 'wuliuchuyunzhongxin'
     ) {
       this.first.requestUrl =
-        "/api/v1/oms/getOthersOrderMesToSend?apiId=386&type=1&orderStatus=4";
+        '/api/v1/oms/getOthersOrderMesToSend?apiId=386&type=1&orderStatus=4'
       this.Received.requestUrl =
-        "/api/v1/oms/getOthersOrderMesToSend?apiId=386&type=1&orderStatus=5";
+        '/api/v1/oms/getOthersOrderMesToSend?apiId=386&type=1&orderStatus=5'
       this.completed.requestUrl =
-        "/api/v1/oms/getOthersOrderMesToSend?apiId=386&type=1&orderStatus=2";
+        '/api/v1/oms/getOthersOrderMesToSend?apiId=386&type=1&orderStatus=2'
       this.refused.requestUrl =
-        "/api/v1/oms/getOthersOrderMesToSend?apiId=386&type=1&orderStatus=6";
+        '/api/v1/oms/getOthersOrderMesToSend?apiId=386&type=1&orderStatus=6'
     } else {
       this.first.requestUrl =
-        "/api/v1/oms/getOthersOrderMesToSend?apiId=386&type=1&orderStatus=4&userId=" +
-        getCookie("orgCode");
+        '/api/v1/oms/getOthersOrderMesToSend?apiId=386&type=1&orderStatus=4&userId=' +
+        getCookie('orgCode')
       this.Received.requestUrl =
-        "/api/v1/oms/getOthersOrderMesToSend?apiId=386&type=1&orderStatus=5&userId=" +
-        getCookie("orgCode");
+        '/api/v1/oms/getOthersOrderMesToSend?apiId=386&type=1&orderStatus=5&userId=' +
+        getCookie('orgCode')
       this.completed.requestUrl =
-        "/api/v1/oms/getOthersOrderMesToSend?apiId=386&type=1&orderStatus=2&userId=" +
-        getCookie("orgCode");
+        '/api/v1/oms/getOthersOrderMesToSend?apiId=386&type=1&orderStatus=2&userId=' +
+        getCookie('orgCode')
       this.refused.requestUrl =
-        "/api/v1/oms/getOthersOrderMesToSend?apiId=386&type=1&orderStatus=6&userId=" +
-        getCookie("orgCode");
+        '/api/v1/oms/getOthersOrderMesToSend?apiId=386&type=1&orderStatus=6&userId=' +
+        getCookie('orgCode')
     }
   },
   methods: {
     //撤销已拒绝的运输订单
     ctrlZClick(scope) {
-      console.log(scope.row.orderId);
+      console.log(scope.row.orderId)
       this.axios
-        .post("/api/v1/oms/refuseCtrlZ", {
+        .post('/api/v1/oms/refuseCtrlZ', {
           orderId: scope.row.orderId
         })
         .then(res => {
-          if (res.data.code == "200") {
-            this.$message.success("撤单成功");
-            this.getRequestUrl();
+          if (res.data.code == '200') {
+            this.$message.success('撤单成功')
+            this.getRequestUrl()
           }
-        });
+        })
     },
     handleClose(done) {
-      done();
-      this.$message.info("取消修改运力");
+      done()
+      this.$message.info('取消修改运力')
     },
     onclick() {
-      let startTime = null;
-      let endTime = null;
+      let startTime = null
+      let endTime = null
       if (this.startTime && this.endTime) {
-        startTime = sjTime(this.startTime);
-        endTime = sjTime(this.endTime);
+        startTime = sjTime(this.startTime)
+        endTime = sjTime(this.endTime)
       }
-      if (getCookie("orgCode") == "chengyunshang") {
+      if (getCookie('orgCode') == 'chengyunshang') {
         this.first.requestUrl =
-          "/api/v1/oms/getOthersOrderMesToSend?apiId=386&type=1&orderStatus=4&carrierId=" +
-          getCookie("userId") +
-          "&startTime=" +
+          '/api/v1/oms/getOthersOrderMesToSend?apiId=386&type=1&orderStatus=4&carrierId=' +
+          getCookie('userId') +
+          '&startTime=' +
           startTime +
-          "&endTime=" +
+          '&endTime=' +
           endTime +
-          "&con=" +
+          '&con=' +
           this.input +
-          "&test=" +
-          new Date();
+          '&test=' +
+          new Date()
         this.Received.requestUrl =
-          "/api/v1/oms/getOthersOrderMesToSend?apiId=386&type=1&orderStatus=5&carrierId=" +
-          getCookie("userId") +
-          "&startTime=" +
+          '/api/v1/oms/getOthersOrderMesToSend?apiId=386&type=1&orderStatus=5&carrierId=' +
+          getCookie('userId') +
+          '&startTime=' +
           startTime +
-          "&endTime=" +
+          '&endTime=' +
           endTime +
-          "&con=" +
+          '&con=' +
           this.input +
-          "&test=" +
-          new Date();
+          '&test=' +
+          new Date()
         this.completed.requestUrl =
-          "/api/v1/oms/getOthersOrderMesToSend?apiId=386&type=1&orderStatus=2&carrierId=" +
-          getCookie("userId") +
-          "&startTime=" +
+          '/api/v1/oms/getOthersOrderMesToSend?apiId=386&type=1&orderStatus=2&carrierId=' +
+          getCookie('userId') +
+          '&startTime=' +
           startTime +
-          "&endTime=" +
+          '&endTime=' +
           endTime +
-          "&con=" +
+          '&con=' +
           this.input +
-          "&test=" +
-          new Date();
+          '&test=' +
+          new Date()
         this.refused.requestUrl =
-          "/api/v1/oms/getOthersOrderMesToSend?apiId=386&type=1&orderStatus=6&carrierId=" +
-          getCookie("userId") +
-          "&startTime=" +
+          '/api/v1/oms/getOthersOrderMesToSend?apiId=386&type=1&orderStatus=6&carrierId=' +
+          getCookie('userId') +
+          '&startTime=' +
           startTime +
-          "&endTime=" +
+          '&endTime=' +
           endTime +
-          "&con=" +
+          '&con=' +
           this.input +
-          "&test=" +
-          new Date();
+          '&test=' +
+          new Date()
       } else if (
-        getCookie("orgCode") == "dagangadmin" ||
-        getCookie("orgCode") == "zidonghuabu" ||
-        getCookie("orgCode") == "wuliuchuyunzhongxin"
+        getCookie('orgCode') == 'dagangadmin' ||
+        getCookie('orgCode') == 'zidonghuabu' ||
+        getCookie('orgCode') == 'wuliuchuyunzhongxin'
       ) {
         this.first.requestUrl =
-          "/api/v1/oms/getOthersOrderMesToSend?apiId=386&type=1&orderStatus=4" +
-          "&startTime=" +
+          '/api/v1/oms/getOthersOrderMesToSend?apiId=386&type=1&orderStatus=4' +
+          '&startTime=' +
           startTime +
-          "&endTime=" +
+          '&endTime=' +
           endTime +
-          "&con=" +
+          '&con=' +
           this.input +
-          "&test=" +
-          new Date();
+          '&test=' +
+          new Date()
         this.Received.requestUrl =
-          "/api/v1/oms/getOthersOrderMesToSend?apiId=386&type=1&orderStatus=5" +
-          "&startTime=" +
+          '/api/v1/oms/getOthersOrderMesToSend?apiId=386&type=1&orderStatus=5' +
+          '&startTime=' +
           startTime +
-          "&endTime=" +
+          '&endTime=' +
           endTime +
-          "&con=" +
+          '&con=' +
           this.input +
-          "&test=" +
-          new Date();
+          '&test=' +
+          new Date()
         this.completed.requestUrl =
-          "/api/v1/oms/getOthersOrderMesToSend?apiId=386&type=1&orderStatus=2" +
-          "&startTime=" +
+          '/api/v1/oms/getOthersOrderMesToSend?apiId=386&type=1&orderStatus=2' +
+          '&startTime=' +
           startTime +
-          "&endTime=" +
+          '&endTime=' +
           endTime +
-          "&con=" +
+          '&con=' +
           this.input +
-          "&test=" +
-          new Date();
+          '&test=' +
+          new Date()
         this.refused.requestUrl =
-          "/api/v1/oms/getOthersOrderMesToSend?apiId=386&type=1&orderStatus=6" +
-          "&startTime=" +
+          '/api/v1/oms/getOthersOrderMesToSend?apiId=386&type=1&orderStatus=6' +
+          '&startTime=' +
           startTime +
-          "&endTime=" +
+          '&endTime=' +
           endTime +
-          "&con=" +
+          '&con=' +
           this.input +
-          "&test=" +
-          new Date();
+          '&test=' +
+          new Date()
       } else {
         this.first.requestUrl =
-          "/api/v1/oms/getOthersOrderMesToSend?apiId=386&type=1&orderStatus=4&userId=" +
-          getCookie("orgCode") +
-          "&startTime=" +
+          '/api/v1/oms/getOthersOrderMesToSend?apiId=386&type=1&orderStatus=4&userId=' +
+          getCookie('orgCode') +
+          '&startTime=' +
           startTime +
-          "&endTime=" +
+          '&endTime=' +
           endTime +
-          "&con=" +
+          '&con=' +
           this.input +
-          "&test=" +
-          new Date();
+          '&test=' +
+          new Date()
         this.Received.requestUrl =
-          "/api/v1/oms/getOthersOrderMesToSend?apiId=386&type=1&orderStatus=5&userId=" +
-          getCookie("orgCode") +
-          "&startTime=" +
+          '/api/v1/oms/getOthersOrderMesToSend?apiId=386&type=1&orderStatus=5&userId=' +
+          getCookie('orgCode') +
+          '&startTime=' +
           startTime +
-          "&endTime=" +
+          '&endTime=' +
           endTime +
-          "&con=" +
+          '&con=' +
           this.input +
-          "&test=" +
-          new Date();
+          '&test=' +
+          new Date()
         this.completed.requestUrl =
-          "/api/v1/oms/getOthersOrderMesToSend?apiId=386&type=1&orderStatus=2&userId=" +
-          getCookie("orgCode") +
-          "&startTime=" +
+          '/api/v1/oms/getOthersOrderMesToSend?apiId=386&type=1&orderStatus=2&userId=' +
+          getCookie('orgCode') +
+          '&startTime=' +
           startTime +
-          "&endTime=" +
+          '&endTime=' +
           endTime +
-          "&con=" +
+          '&con=' +
           this.input +
-          "&test=" +
-          new Date();
+          '&test=' +
+          new Date()
         this.refused.requestUrl =
-          "/api/v1/oms/getOthersOrderMesToSend?apiId=386&type=1&orderStatus=6&userId=" +
-          getCookie("orgCode") +
-          "&startTime=" +
+          '/api/v1/oms/getOthersOrderMesToSend?apiId=386&type=1&orderStatus=6&userId=' +
+          getCookie('orgCode') +
+          '&startTime=' +
           startTime +
-          "&endTime=" +
+          '&endTime=' +
           endTime +
-          "&con=" +
+          '&con=' +
           this.input +
-          "&test=" +
-          new Date();
+          '&test=' +
+          new Date()
       }
     },
     getRequestUrl() {
-      if (getCookie("orgCode") == "chengyunshang") {
+      if (getCookie('orgCode') == 'chengyunshang') {
         this.first.requestUrl =
-          "/api/v1/oms/getOthersOrderMesToSend?apiId=386&type=1&orderStatus=4&carrierId=" +
-          getCookie("userId") +
-          "&startTime=" +
+          '/api/v1/oms/getOthersOrderMesToSend?apiId=386&type=1&orderStatus=4&carrierId=' +
+          getCookie('userId') +
+          '&startTime=' +
           startTime +
-          "&endTime=" +
+          '&endTime=' +
           endTime +
-          "&test=" +
-          new Date();
+          '&test=' +
+          new Date()
         this.Received.requestUrl =
-          "/api/v1/oms/getOthersOrderMesToSend?apiId=386&type=1&orderStatus=5&carrierId=" +
-          getCookie("userId") +
-          "&startTime=" +
+          '/api/v1/oms/getOthersOrderMesToSend?apiId=386&type=1&orderStatus=5&carrierId=' +
+          getCookie('userId') +
+          '&startTime=' +
           startTime +
-          "&endTime=" +
+          '&endTime=' +
           endTime +
-          "&test=" +
-          new Date();
+          '&test=' +
+          new Date()
         this.completed.requestUrl =
-          "/api/v1/oms/getOthersOrderMesToSend?apiId=386&type=1&orderStatus=2&carrierId=" +
-          getCookie("userId") +
-          "&startTime=" +
+          '/api/v1/oms/getOthersOrderMesToSend?apiId=386&type=1&orderStatus=2&carrierId=' +
+          getCookie('userId') +
+          '&startTime=' +
           startTime +
-          "&endTime=" +
+          '&endTime=' +
           endTime +
-          "&test=" +
-          new Date();
+          '&test=' +
+          new Date()
         this.refused.requestUrl =
-          "/api/v1/oms/getOthersOrderMesToSend?apiId=386&type=1&orderStatus=6&carrierId=" +
-          getCookie("userId") +
-          "&startTime=" +
+          '/api/v1/oms/getOthersOrderMesToSend?apiId=386&type=1&orderStatus=6&carrierId=' +
+          getCookie('userId') +
+          '&startTime=' +
           startTime +
-          "&endTime=" +
+          '&endTime=' +
           endTime +
-          "&test=" +
-          new Date();
+          '&test=' +
+          new Date()
       } else if (
-        getCookie("orgCode") == "dagangadmin" ||
-        getCookie("orgCode") == "zidonghuabu" ||
-        getCookie("orgCode") == "wuliuchuyunzhongxin"
+        getCookie('orgCode') == 'dagangadmin' ||
+        getCookie('orgCode') == 'zidonghuabu' ||
+        getCookie('orgCode') == 'wuliuchuyunzhongxin'
       ) {
         this.first.requestUrl =
-          "/api/v1/oms/getOthersOrderMesToSend?apiId=386&type=1&orderStatus=4" +
-          "&startTime=" +
+          '/api/v1/oms/getOthersOrderMesToSend?apiId=386&type=1&orderStatus=4' +
+          '&startTime=' +
           startTime +
-          "&endTime=" +
+          '&endTime=' +
           endTime +
-          "&test=" +
-          new Date();
+          '&test=' +
+          new Date()
         this.Received.requestUrl =
-          "/api/v1/oms/getOthersOrderMesToSend?apiId=386&type=1&orderStatus=5" +
-          "&startTime=" +
+          '/api/v1/oms/getOthersOrderMesToSend?apiId=386&type=1&orderStatus=5' +
+          '&startTime=' +
           startTime +
-          "&endTime=" +
+          '&endTime=' +
           endTime +
-          "&test=" +
-          new Date();
+          '&test=' +
+          new Date()
         this.completed.requestUrl =
-          "/api/v1/oms/getOthersOrderMesToSend?apiId=386&type=1&orderStatus=2" +
-          "&startTime=" +
+          '/api/v1/oms/getOthersOrderMesToSend?apiId=386&type=1&orderStatus=2' +
+          '&startTime=' +
           startTime +
-          "&endTime=" +
+          '&endTime=' +
           endTime +
-          "&test=" +
-          new Date();
+          '&test=' +
+          new Date()
         this.refused.requestUrl =
-          "/api/v1/oms/getOthersOrderMesToSend?apiId=386&type=1&orderStatus=6" +
-          "&startTime=" +
+          '/api/v1/oms/getOthersOrderMesToSend?apiId=386&type=1&orderStatus=6' +
+          '&startTime=' +
           startTime +
-          "&endTime=" +
+          '&endTime=' +
           endTime +
-          "&test=" +
-          new Date();
+          '&test=' +
+          new Date()
       } else {
         this.first.requestUrl =
-          "/api/v1/oms/getOthersOrderMesToSend?apiId=386&type=1&orderStatus=4&userId=" +
-          getCookie("orgCode") +
-          "&startTime=" +
+          '/api/v1/oms/getOthersOrderMesToSend?apiId=386&type=1&orderStatus=4&userId=' +
+          getCookie('orgCode') +
+          '&startTime=' +
           startTime +
-          "&endTime=" +
+          '&endTime=' +
           endTime +
-          "&test=" +
-          new Date();
+          '&test=' +
+          new Date()
         this.Received.requestUrl =
-          "/api/v1/oms/getOthersOrderMesToSend?apiId=386&type=1&orderStatus=5&userId=" +
-          getCookie("orgCode") +
-          "&startTime=" +
+          '/api/v1/oms/getOthersOrderMesToSend?apiId=386&type=1&orderStatus=5&userId=' +
+          getCookie('orgCode') +
+          '&startTime=' +
           startTime +
-          "&endTime=" +
+          '&endTime=' +
           endTime +
-          "&test=" +
-          new Date();
+          '&test=' +
+          new Date()
         this.completed.requestUrl =
-          "/api/v1/oms/getOthersOrderMesToSend?apiId=386&type=1&orderStatus=2&userId=" +
-          getCookie("orgCode") +
-          "&startTime=" +
+          '/api/v1/oms/getOthersOrderMesToSend?apiId=386&type=1&orderStatus=2&userId=' +
+          getCookie('orgCode') +
+          '&startTime=' +
           startTime +
-          "&endTime=" +
+          '&endTime=' +
           endTime +
-          "&test=" +
-          new Date();
+          '&test=' +
+          new Date()
         this.refused.requestUrl =
-          "/api/v1/oms/getOthersOrderMesToSend?apiId=386&type=1&orderStatus=6&userId=" +
-          getCookie("orgCode") +
-          "&startTime=" +
+          '/api/v1/oms/getOthersOrderMesToSend?apiId=386&type=1&orderStatus=6&userId=' +
+          getCookie('orgCode') +
+          '&startTime=' +
           startTime +
-          "&endTime=" +
+          '&endTime=' +
           endTime +
-          "&test=" +
-          new Date();
+          '&test=' +
+          new Date()
       }
     },
     getTruckRequestUrl() {
-      if (getCookie("orgCode") == "chengyunshang") {
+      if (getCookie('orgCode') == 'chengyunshang') {
         this.truck.requestUrl =
-          "/api/v1/uc/getAllCapacityByCarrierLike?apiId=429&carrierSsoId=" +
-          getCookie("userId") +
-          "&test=" +
-          new Date();
+          '/api/v1/uc/getAllCapacityByCarrierLike?apiId=429&carrierSsoId=' +
+          getCookie('userId') +
+          '&test=' +
+          new Date()
       } else {
         this.truck.requestUrl =
-          "/api/v1/uc/getAllCapacityByCarrierLike?apiId=429&carrierSsoId=" +
+          '/api/v1/uc/getAllCapacityByCarrierLike?apiId=429&carrierSsoId=' +
           null +
-          "&test=" +
-          new Date();
+          '&test=' +
+          new Date()
       }
     },
     currentRadioChange1(row) {
-      console.log(row);
-      this.capacityId = row.capacityId;
+      console.log(row)
+      this.capacityId = row.capacityId
     },
     //删除运输订单
     deleteClick(scope) {
       let map = {
         orderId: scope.row.orderId,
-        userId: getCookie("userId")
-      };
-      this.$confirm("是否删除?", "提示", {
-        confirmButtonText: "确定",
-        cancelButtonText: "取消",
-        type: "warning"
+        userId: getCookie('userId')
+      }
+      this.$confirm('是否删除?', '提示', {
+        confirmButtonText: '确定',
+        cancelButtonText: '取消',
+        type: 'warning'
       })
         .then(() => {
-          this.axios.post("/api/v1/oms/closeOmstruckOrder", map).then(res => {
+          this.axios.post('/api/v1/oms/closeOmstruckOrder', map).then(res => {
             if (res.data.code == 200) {
               this.$message({
-                type: "success",
-                message: "删除成功!"
-              });
-              this.getRequestUrl();
+                type: 'success',
+                message: '删除成功!'
+              })
+              this.getRequestUrl()
             } else {
               this.$message({
-                message: "删除失败",
-                type: "warning"
-              });
+                message: '删除失败',
+                type: 'warning'
+              })
             }
-          });
+          })
         })
         .catch(() => {
           this.$message({
-            type: "info",
-            message: "已取消删除"
-          });
-        });
+            type: 'info',
+            message: '已取消删除'
+          })
+        })
     },
     //修改运输订单
     updateClick(scope) {
-      this.getTruckRequestUrl();
-      this.orderId = scope.row.orderId;
-      this.dialogTableVisible = true;
-      console.log(scope.row.orderId);
+      this.getTruckRequestUrl()
+      this.orderId = scope.row.orderId
+      this.dialogTableVisible = true
+      console.log(scope.row.orderId)
     },
     updateTruckCapacity() {
       if (this.capacityId == null) {
-        this.$message.error("未选中运力");
-        return;
+        this.$message.error('未选中运力')
+        return
       }
       this.axios
-        .post("/api/v1/oms/updateCapacityId", {
+        .post('/api/v1/oms/updateCapacityId', {
           capacityId: this.capacityId,
           orderId: this.orderId
         })
         .then(res => {
-          if (res.data.code == "200") {
-            this.$message.success("修改运力成功");
-            this.getRequestUrl();
-            this.dialogTableVisible = false;
+          if (res.data.code == '200') {
+            this.$message.success('修改运力成功')
+            this.getRequestUrl()
+            this.dialogTableVisible = false
           } else {
-            this.$message.error("修改运力失败");
+            this.$message.error('修改运力失败')
           }
-        });
+        })
     },
     handleClick(tab, event) {
-      this.getRequestUrl();
+      this.getRequestUrl()
     },
     Insert() {
-      this.$router.push("addOldSporadicOrder");
+      this.$router.push('addOldSporadicOrder')
     },
     getCapacity() {
       if (this.truckText != null) {
-        if (getCookie("orgCode") == "chengyunshang") {
+        if (getCookie('orgCode') == 'chengyunshang') {
           this.truck.requestUrl =
-            "/api/v1/uc/getAllCapacityByCarrierLike?apiId=429&carrierSsoId=" +
-            getCookie("userId") +
-            "&index=" +
-            this.truckText;
+            '/api/v1/uc/getAllCapacityByCarrierLike?apiId=429&carrierSsoId=' +
+            getCookie('userId') +
+            '&index=' +
+            this.truckText
         } else {
           this.truck.requestUrl =
-            "/api/v1/uc/getAllCapacityByCarrierLike?apiId=429&carrierSsoId=" +
+            '/api/v1/uc/getAllCapacityByCarrierLike?apiId=429&carrierSsoId=' +
             null +
-            "&index=" +
-            this.truckText;
+            '&index=' +
+            this.truckText
         }
-        this.truckText = null;
+        this.truckText = null
       } else {
-        if (getCookie("orgCode") == "chengyunshang") {
+        if (getCookie('orgCode') == 'chengyunshang') {
           this.truck.requestUrl =
-            "/api/v1/uc/getAllCapacityByCarrierLike?apiId=429&carrierSsoId=" +
-            getCookie("userId") +
-            "&i=" +
-            new Date();
+            '/api/v1/uc/getAllCapacityByCarrierLike?apiId=429&carrierSsoId=' +
+            getCookie('userId') +
+            '&i=' +
+            new Date()
         } else {
           this.truck.requestUrl =
-            "/api/v1/uc/getAllCapacityByCarrierLike?apiId=429&carrierSsoId=" +
+            '/api/v1/uc/getAllCapacityByCarrierLike?apiId=429&carrierSsoId=' +
             null +
-            "&i=" +
-            new Date();
+            '&i=' +
+            new Date()
         }
       }
     },
     //获取物资详情--未接收
     getMatrialDetails1(row) {
-      console.log(row);
+      console.log(row)
       // 记录重复点击次数
       if (this.oldRow === row) {
-        this.oldRowCount += 1;
+        this.oldRowCount += 1
       }
       // 切换当前详情表
-      this.$refs.table.toggleRowExpansion(row);
+      this.$refs.table.toggleRowExpansion(row)
       // 打开前关闭上一个详情表
-      if (this.oldRow != "") {
+      if (this.oldRow != '') {
         if (this.oldRow != row) {
           if (this.oldRowCount % 2 === 1) {
-            this.$refs.table.toggleRowExpansion(this.oldRow);
+            this.$refs.table.toggleRowExpansion(this.oldRow)
           } else {
-            this.oldRowCount = 1;
+            this.oldRowCount = 1
           }
         } else {
-          this.oldRow = null;
-          return;
+          this.oldRow = null
+          return
         }
       }
       // 重置上一个点击对象
-      this.oldRow = row;
+      this.oldRow = row
       this.axios
-        .post("/api/v1/ams/getSporadic?sporadicId=" + row.sporadicOrderId)
+        .post('/api/v1/ams/getSporadic?sporadicId=' + row.sporadicOrderId)
         .then(res => {
-          console.log(res.data.data);
-          this.tableData = res.data.data;
-        });
+          console.log(res.data.data)
+          this.tableData = res.data.data
+        })
     },
     //获取物资详情--已接收
     getMatrialDetails2(row) {
-      console.log(row);
+      console.log(row)
       // 记录重复点击次数
       if (this.oldRow1 === row) {
-        this.oldRowCount1 += 1;
+        this.oldRowCount1 += 1
       }
       // 切换当前详情表
-      this.$refs.table1.toggleRowExpansion(row);
+      this.$refs.table1.toggleRowExpansion(row)
       // 打开前关闭上一个详情表
-      if (this.oldRow1 != "") {
+      if (this.oldRow1 != '') {
         if (this.oldRow1 != row) {
           if (this.oldRowCount1 % 2 === 1) {
-            this.$refs.table1.toggleRowExpansion(this.oldRow1);
+            this.$refs.table1.toggleRowExpansion(this.oldRow1)
           } else {
-            this.oldRowCount1 = 1;
+            this.oldRowCount1 = 1
           }
         } else {
-          this.oldRow1 = null;
-          return;
+          this.oldRow1 = null
+          return
         }
       }
       // 重置上一个点击对象
-      this.oldRow1 = row;
+      this.oldRow1 = row
       this.axios
-        .post("/api/v1/ams/getSporadic?sporadicId=" + row.sporadicOrderId)
+        .post('/api/v1/ams/getSporadic?sporadicId=' + row.sporadicOrderId)
         .then(res => {
-          console.log(res.data.data);
-          this.tableData1 = res.data.data;
-        });
+          console.log(res.data.data)
+          this.tableData1 = res.data.data
+        })
     },
     //获取物资详情--已完成
     getMatrialDetails3(row) {
-      console.log(row);
+      console.log(row)
       // 记录重复点击次数
       if (this.oldRow2 === row) {
-        this.oldRowCount2 += 1;
+        this.oldRowCount2 += 1
       }
       // 切换当前详情表
-      this.$refs.table2.toggleRowExpansion(row);
+      this.$refs.table2.toggleRowExpansion(row)
       // 打开前关闭上一个详情表
-      if (this.oldRow2 != "") {
+      if (this.oldRow2 != '') {
         if (this.oldRow2 != row) {
           if (this.oldRowCount2 % 2 === 1) {
-            this.$refs.table2.toggleRowExpansion(this.oldRow2);
+            this.$refs.table2.toggleRowExpansion(this.oldRow2)
           } else {
-            this.oldRowCount2 = 1;
+            this.oldRowCount2 = 1
           }
         } else {
-          this.oldRow2 = null;
-          return;
+          this.oldRow2 = null
+          return
         }
       }
       // 重置上一个点击对象
-      this.oldRow2 = row;
+      this.oldRow2 = row
       this.axios
-        .post("/api/v1/ams/getSporadic?sporadicId=" + row.sporadicOrderId)
+        .post('/api/v1/ams/getSporadic?sporadicId=' + row.sporadicOrderId)
         .then(res => {
-          this.tableData2 = res.data.data;
-        });
+          this.tableData2 = res.data.data
+        })
     }
   }
-};
+}
 </script>
 
 <style lang="scss">

+ 4 - 1
src/views/appoint/components/saleContract/saleOrderOODetails.vue

@@ -145,8 +145,11 @@ export default {
     },
     //删除运输订单
     deleteClick(scope) {
+      console.log(scope.row.orderNumber)
+      let orderId = scope.row.orderNumber.substring(15)
+      console.log(orderId)
       let map = {
-        orderId: scope.row.orderId,
+        orderId: scope.row.orderId || orderId,
         userId: getCookie('userId')
       }
       this.$confirm('是否删除?', '提示', {

+ 51 - 7
src/views/statisticalReport/components/salesLogisticsStatistics/saleSteelReports.vue

@@ -114,6 +114,15 @@
             <i class="el-icon-share"></i>批量授权</el-button
           >
         </el-form-item>
+        <el-form-item v-if="isShowOperate">
+          <el-button
+            type="primary"
+            @click="getMakeDate()"
+            v-if="!notRoutList.includes('batchCarrier')"
+          >
+            <i class="el-icon-finished"></i>获取制单日期</el-button
+          >
+        </el-form-item>
         <el-form-item>
           <label
             class="el-form-item__label"
@@ -167,6 +176,13 @@
           show-overflow-tooltip
         >
         </el-table-column>
+        <el-table-column
+          prop="saleMakeDate"
+          label="制单日期"
+          width="130px"
+          align="center"
+        >
+        </el-table-column>
         <el-table-column
           prop="saleOrderStatus"
           column-key="saleOrderStatus"
@@ -180,7 +196,7 @@
         <el-table-column
           prop="consigneeName"
           label="客户"
-          width="160px"
+          width="180px"
           align="center"
           column-key="consigneeName"
           :filters="filterConsigneeList"
@@ -1315,7 +1331,6 @@ export default {
       orgCodeList: [
         'wuliuyunshubu',
         'dagangadmin',
-        'shichangxinxibu',
         'zidonghuabu',
         'chengyunshang'
       ],
@@ -1398,10 +1413,10 @@ export default {
     //只要涉及提交即必须设计防抖,在初始化时绑定防抖函数
     this.updateCapacityDebounce = this.debounce(() => {
       this.updateCapacity()
-    }, 3000)
+    }, 1500)
     this.updateTruckCarrierDebounce = this.debounce(() => {
       this.updateTruckCarrier()
-    }, 3000)
+    }, 1500)
     this.cellMouse1 = this.debounce((row, column, cell) => {
       this.cellMouse(row, column, cell)
     }, 100)
@@ -1474,6 +1489,33 @@ export default {
   },
   computed: {},
   methods: {
+    getMakeDate() {
+      if (this.$refs.tableRef.selection.length > 0) {
+        let easPrimaryList = []
+        easPrimaryList = this.$refs.tableRef.selection.map(e => {
+          return e.closeEntryId
+        })
+        this.axios
+          .post(
+            '/api/v1/ams/getMakeOrderDate',
+            {
+              easPrimaryList: easPrimaryList
+            },
+            { timeout: 3 * 60 * 1000 }
+          )
+          .then(res => {
+            if (res.data.code == '200') {
+              this.$message({
+                message: '获取成功',
+                type: 'success',
+                duration: '2500',
+                offset: '250'
+              })
+              this.getSteelReport()
+            }
+          })
+      }
+    },
     batchCarrierMakeSure() {
       console.log(this.batchCarrierName)
       let batchCarrierId = null
@@ -2860,7 +2902,9 @@ export default {
       //通过车序号的个数来计算车数
       let arr = []
       arr = data.map(e => {
-        return e.saleOrderMaterialId
+        if (e.capacityNo != '取消') {
+          return e.saleOrderMaterialId
+        }
       })
       this.totalCapacity = Array.from(new Set(arr)).length
       this.totalNumber = data.reduce(function(prev, item) {
@@ -3139,6 +3183,7 @@ export default {
           this.tableData = res.data.data
           this.totalHeight += this.itemHeight
           this.visibleList = []
+          this.maxHeight = window.innerHeight - 130
           this.visibleList = this.tableData.slice(
             0,
             Math.floor(this.maxHeight / this.itemHeight) + 1
@@ -3146,8 +3191,7 @@ export default {
           console.log(this.visibleList)
           this.getSpanArr(this.visibleList)
           this.getTotalNum(this.tableData)
-          console.log(this.maxHeight, 'this.maxHeight')
-          this.maxHeight = window.innerHeight - 130
+
           console.log(this.maxHeight, 'this.maxHeight')
           loading.close()
         })