|
@@ -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) {
|