luobang il y a 2 ans
Parent
commit
90f7dac1fd

+ 2 - 2
build/utils.js

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

+ 29 - 8
src/views/sale/components/transportFreight/saleTruckSettlement/bmsTruckDetailsOrderNew.vue

@@ -1476,7 +1476,8 @@ export default {
   methods: {
     unSetteleAllselect() {
       console.log('监听全选事件')
-      if (this.unSetteleAllselectValue == 0) {
+      console.log(this.unSetteleAllselectValue, 'this.unSetteleAllselectValue')
+      if (this.unSetteleAllselectValue === 0) {
         this.unSetteleAllselectValue = 1
       } else {
         this.unSetteleAllselectValue = 0
@@ -1499,7 +1500,6 @@ export default {
       this.makeSurePriceOrderList = []
       this.someOnePriceValueList = []
       let data = []
-      console.log(this.$refs.tableRef.selection, 'selection')
       if (this.unSetteleAllselectValue == 1) {
         data = this.tableData
       } else {
@@ -1530,9 +1530,6 @@ export default {
           orderId: e.orderId
         }
       })
-      console.log(this.makeSurePriceOrderList)
-      console.log(this.amsPriceList)
-      console.log(this.someOnePriceValueList)
     },
     handleSizeChange(val) {
       console.log(`每页 ${val} 条`)
@@ -1610,13 +1607,37 @@ export default {
         })
     },
     makeSurePrice() {
+      this.amsPriceList = []
+      this.makeSurePriceOrderList = []
+      this.someOnePriceValueList = []
+      let data = []
+      if (this.unSetteleAllselectValue == 1) {
+        data = this.tableData
+      } else {
+        data = this.$refs.tableRef.selection
+      }
+      let mapvalue = {
+        placeId: '',
+        priceValue: '',
+        orderId: ''
+      }
+      let mapValue1 = {
+        detailsAmount: ''
+      }
+      this.makeSurePriceOrderList = data.map(e => {
+        //运价判断
+        mapValue1.detailsAmount = e.detailsAmount
+        this.someOnePriceValueList.push(mapValue1)
+        mapvalue.placeId = e.placeId
+        mapvalue.priceValue = e.priceValue
+        mapvalue.orderId = e.orderId
+        this.amsPriceList.push(mapvalue)
+        return e.orderId
+      })
       let map = {
         orderList: this.makeSurePriceOrderList,
         amsPriceList: this.amsPriceList
       }
-      console.log('确认执行价的顺序')
-      console.log(this.makeSurePriceOrderList)
-      console.log(map)
       // let flag = 0
       // this.someOnePriceValueList.forEach(e => {
       //   if (e.detailsAmount == null) {