|
@@ -1597,12 +1597,17 @@ export default {
|
|
filterCarrierList: [],
|
|
filterCarrierList: [],
|
|
filterCapacityList: [],
|
|
filterCapacityList: [],
|
|
filtermaterialNameList: [],
|
|
filtermaterialNameList: [],
|
|
- filterSaleAreaList: [],
|
|
|
|
filterorderStatus: [],
|
|
filterorderStatus: [],
|
|
filteraddressPlace: [],
|
|
filteraddressPlace: [],
|
|
filtermaterialSpe: [],
|
|
filtermaterialSpe: [],
|
|
filterSaleRemark: [],
|
|
filterSaleRemark: [],
|
|
- filterSaleOrderStatus: [],
|
|
|
|
|
|
+ filterSaleOrderStatus: [
|
|
|
|
+ { text: '关闭', value: '关闭' },
|
|
|
|
+ { text: '提交', value: '提交' },
|
|
|
|
+ { text: '审核', value: '审核' },
|
|
|
|
+ { text: '未上报', value: '未上报' },
|
|
|
|
+ { text: '反审批', value: '反审批' }
|
|
|
|
+ ],
|
|
filterMap: {},
|
|
filterMap: {},
|
|
//权限控制
|
|
//权限控制
|
|
notRoutList: [],
|
|
notRoutList: [],
|
|
@@ -1724,30 +1729,29 @@ export default {
|
|
}, 1500)
|
|
}, 1500)
|
|
this.cellMouse1 = this.debounce((row, column, cell) => {
|
|
this.cellMouse1 = this.debounce((row, column, cell) => {
|
|
this.cellMouse(row, column, cell)
|
|
this.cellMouse(row, column, cell)
|
|
- }, 100)
|
|
|
|
|
|
+ }, 200)
|
|
this.cellLeave1 = this.debounce((row, column, cell) => {
|
|
this.cellLeave1 = this.debounce((row, column, cell) => {
|
|
this.cellLeave(row, column, cell)
|
|
this.cellLeave(row, column, cell)
|
|
- }, 100)
|
|
|
|
|
|
+ }, 200)
|
|
this.exceptionHandleMakeSure = this.debounce(() => {
|
|
this.exceptionHandleMakeSure = this.debounce(() => {
|
|
this.exceptionHandleMakeSure1()
|
|
this.exceptionHandleMakeSure1()
|
|
}, 500)
|
|
}, 500)
|
|
this.getSteelReport()
|
|
this.getSteelReport()
|
|
},
|
|
},
|
|
watch: {
|
|
watch: {
|
|
- tableData: {
|
|
|
|
- handler(oldVal, newVal) {
|
|
|
|
- this.filterListChange()
|
|
|
|
- },
|
|
|
|
- deep: true,
|
|
|
|
- immediate: true
|
|
|
|
- },
|
|
|
|
|
|
+ // tableData: {
|
|
|
|
+ // handler(oldVal, newVal) {
|
|
|
|
+ // this.filterListChange()
|
|
|
|
+ // },
|
|
|
|
+ // deep: true,
|
|
|
|
+ // immediate: true
|
|
|
|
+ // },
|
|
scrollTop: {
|
|
scrollTop: {
|
|
immediate: true,
|
|
immediate: true,
|
|
deep: true,
|
|
deep: true,
|
|
handler(val) {
|
|
handler(val) {
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
- // debugger
|
|
|
|
-
|
|
|
|
|
|
+ console.time('aaa')
|
|
if (
|
|
if (
|
|
val >=
|
|
val >=
|
|
this.tableData.length * 30 -
|
|
this.tableData.length * 30 -
|
|
@@ -1761,16 +1765,19 @@ export default {
|
|
if (val <= 0) {
|
|
if (val <= 0) {
|
|
val = 0
|
|
val = 0
|
|
}
|
|
}
|
|
- const start = Math.floor(val / this.itemHeight)
|
|
|
|
|
|
+ const start = Math.floor(val / 30)
|
|
this.visibleList = this.tableData.slice(
|
|
this.visibleList = this.tableData.slice(
|
|
start,
|
|
start,
|
|
- start + Math.floor(this.maxHeight / this.itemHeight) + 1
|
|
|
|
|
|
+ start + Math.floor(this.maxHeight / 30) + 1
|
|
)
|
|
)
|
|
|
|
+
|
|
this.getSpanArr(this.visibleList)
|
|
this.getSpanArr(this.visibleList)
|
|
|
|
+
|
|
document.querySelector(
|
|
document.querySelector(
|
|
'.el-table__body-wrapper .el-table__body'
|
|
'.el-table__body-wrapper .el-table__body'
|
|
).style.transform = `translateY(${val}px)`
|
|
).style.transform = `translateY(${val}px)`
|
|
this.debounceS = false
|
|
this.debounceS = false
|
|
|
|
+ console.timeEnd('aaa')
|
|
})
|
|
})
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -1780,7 +1787,6 @@ export default {
|
|
},
|
|
},
|
|
computed: {},
|
|
computed: {},
|
|
mounted() {
|
|
mounted() {
|
|
- let that = this
|
|
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
window.onresize = () => {
|
|
window.onresize = () => {
|
|
return (() => {
|
|
return (() => {
|
|
@@ -1793,15 +1799,12 @@ export default {
|
|
if (this.debounceS) return
|
|
if (this.debounceS) return
|
|
this.debounceS = true
|
|
this.debounceS = true
|
|
this.scrollTop = e.target.scrollTop
|
|
this.scrollTop = e.target.scrollTop
|
|
- let upDownLenght = this.scrollTop - this.scrollTopUpDownLenght
|
|
|
|
|
|
+ // let upDownLenght = this.scrollTop - this.scrollTopUpDownLenght
|
|
// if (upDownLenght < 0) {
|
|
// if (upDownLenght < 0) {
|
|
- // setTimeout(() => {
|
|
|
|
- // this.debounceS = false
|
|
|
|
- // }, 40)
|
|
|
|
// } else {
|
|
// } else {
|
|
// setTimeout(() => {
|
|
// setTimeout(() => {
|
|
// this.debounceS = false
|
|
// this.debounceS = false
|
|
- // }, 80)
|
|
|
|
|
|
+ // }, 60)
|
|
// }
|
|
// }
|
|
// document.querySelector(
|
|
// document.querySelector(
|
|
// '.el-table__body-wrapper .el-table__body'
|
|
// '.el-table__body-wrapper .el-table__body'
|
|
@@ -2453,144 +2456,144 @@ export default {
|
|
this.onclick(this.filterMap)
|
|
this.onclick(this.filterMap)
|
|
},
|
|
},
|
|
//控制筛选数组变化
|
|
//控制筛选数组变化
|
|
- filterListChange() {
|
|
|
|
- //客户筛选数组
|
|
|
|
- let consigneeNameList = this.tableData
|
|
|
|
- .map(e => {
|
|
|
|
- return e.consigneeName
|
|
|
|
- })
|
|
|
|
- .sort()
|
|
|
|
- //承运商筛选数组
|
|
|
|
- let carrierNameList = this.tableData
|
|
|
|
- .map(e => {
|
|
|
|
- return e.carrierName
|
|
|
|
- })
|
|
|
|
- .sort()
|
|
|
|
- //车牌号筛选数组
|
|
|
|
- let capacityList = this.tableData
|
|
|
|
- .map(e => {
|
|
|
|
- return e.newCapacityNo
|
|
|
|
- })
|
|
|
|
- .sort()
|
|
|
|
- //物资筛选数组
|
|
|
|
- let materialNameList = this.tableData
|
|
|
|
- .map(e => {
|
|
|
|
- return e.materialName
|
|
|
|
- })
|
|
|
|
- .filter(e => {
|
|
|
|
- return e != null
|
|
|
|
- })
|
|
|
|
- .sort()
|
|
|
|
- //销售片区筛选数组
|
|
|
|
- let saleAreaList = this.tableData
|
|
|
|
- .map(e => {
|
|
|
|
- return e.areaName
|
|
|
|
- })
|
|
|
|
- .filter(e => {
|
|
|
|
- return e != null
|
|
|
|
- })
|
|
|
|
- let addressPlaceList = this.tableData
|
|
|
|
- .map(e => {
|
|
|
|
- return e.addressPlace
|
|
|
|
- })
|
|
|
|
- .filter(e => {
|
|
|
|
- return e != null
|
|
|
|
- })
|
|
|
|
- .sort()
|
|
|
|
- let orderStatusList = this.tableData
|
|
|
|
- .map(e => {
|
|
|
|
- return e.orderStatus
|
|
|
|
- })
|
|
|
|
- .filter(e => {
|
|
|
|
- return e != null
|
|
|
|
- })
|
|
|
|
- let materialSpeList = this.tableData
|
|
|
|
- .map(e => {
|
|
|
|
- return e.materialSpe
|
|
|
|
- })
|
|
|
|
- .filter(e => {
|
|
|
|
- return e != null
|
|
|
|
- })
|
|
|
|
- .sort()
|
|
|
|
- let saleOrderStatusList = this.tableData.map(e => {
|
|
|
|
- return e.saleOrderStatus
|
|
|
|
- })
|
|
|
|
- let saleRemarkList = this.tableData
|
|
|
|
- .map(e => {
|
|
|
|
- return e.saleRemark
|
|
|
|
- })
|
|
|
|
- .sort()
|
|
|
|
- this.filterConsigneeList = []
|
|
|
|
- this.filterCarrierList = []
|
|
|
|
- this.filterCapacityList = []
|
|
|
|
- this.filtermaterialNameList = []
|
|
|
|
- this.filterSaleAreaList = []
|
|
|
|
- this.filterorderStatus = []
|
|
|
|
- this.filteraddressPlace = []
|
|
|
|
- this.filtermaterialSpe = []
|
|
|
|
- this.filterSaleOrderStatus = []
|
|
|
|
- this.filterSaleRemark = []
|
|
|
|
- Array.from(new Set(consigneeNameList)).forEach(e => {
|
|
|
|
- let map = {}
|
|
|
|
- map.text = e
|
|
|
|
- map.value = e
|
|
|
|
- this.filterConsigneeList.push(map)
|
|
|
|
- })
|
|
|
|
- Array.from(new Set(carrierNameList)).forEach(e => {
|
|
|
|
- let map = {}
|
|
|
|
- map.text = e
|
|
|
|
- map.value = e
|
|
|
|
- this.filterCarrierList.push(map)
|
|
|
|
- })
|
|
|
|
- Array.from(new Set(capacityList)).forEach(e => {
|
|
|
|
- let map = {}
|
|
|
|
- map.text = e
|
|
|
|
- map.value = e
|
|
|
|
- this.filterCapacityList.push(map)
|
|
|
|
- })
|
|
|
|
- Array.from(new Set(materialNameList)).forEach(e => {
|
|
|
|
- let map = {}
|
|
|
|
- map.text = e
|
|
|
|
- map.value = e
|
|
|
|
- this.filtermaterialNameList.push(map)
|
|
|
|
- })
|
|
|
|
- Array.from(new Set(saleAreaList)).forEach(e => {
|
|
|
|
- let map = {}
|
|
|
|
- map.text = e
|
|
|
|
- map.value = e
|
|
|
|
- this.filterSaleAreaList.push(map)
|
|
|
|
- })
|
|
|
|
- Array.from(new Set(addressPlaceList)).forEach(e => {
|
|
|
|
- let map = {}
|
|
|
|
- map.text = e
|
|
|
|
- map.value = e
|
|
|
|
- this.filteraddressPlace.push(map)
|
|
|
|
- })
|
|
|
|
- Array.from(new Set(orderStatusList)).forEach(e => {
|
|
|
|
- let map = {}
|
|
|
|
- map.text = e
|
|
|
|
- map.value = e
|
|
|
|
- this.filterorderStatus.push(map)
|
|
|
|
- })
|
|
|
|
- Array.from(new Set(materialSpeList)).forEach(e => {
|
|
|
|
- let map = {}
|
|
|
|
- map.text = e
|
|
|
|
- map.value = e
|
|
|
|
- this.filtermaterialSpe.push(map)
|
|
|
|
- })
|
|
|
|
- Array.from(new Set(saleOrderStatusList)).forEach(e => {
|
|
|
|
- let map = {}
|
|
|
|
- map.text = e
|
|
|
|
- map.value = e
|
|
|
|
- this.filterSaleOrderStatus.push(map)
|
|
|
|
- })
|
|
|
|
- Array.from(new Set(saleRemarkList)).forEach(e => {
|
|
|
|
- let map = {}
|
|
|
|
- map.text = e
|
|
|
|
- map.value = e
|
|
|
|
- this.filterSaleRemark.push(map)
|
|
|
|
- })
|
|
|
|
- },
|
|
|
|
|
|
+ // filterListChange() {
|
|
|
|
+ // //客户筛选数组
|
|
|
|
+ // // let consigneeNameList = this.tableData
|
|
|
|
+ // // .map(e => {
|
|
|
|
+ // // return e.consigneeName
|
|
|
|
+ // // })
|
|
|
|
+ // // .sort()
|
|
|
|
+ // //承运商筛选数组
|
|
|
|
+ // // let carrierNameList = this.tableData
|
|
|
|
+ // // .map(e => {
|
|
|
|
+ // // return e.carrierName
|
|
|
|
+ // // })
|
|
|
|
+ // // .sort()
|
|
|
|
+ // //车牌号筛选数组
|
|
|
|
+ // // let capacityList = this.tableData
|
|
|
|
+ // // .map(e => {
|
|
|
|
+ // // return e.newCapacityNo
|
|
|
|
+ // // })
|
|
|
|
+ // // .sort()
|
|
|
|
+ // //物资筛选数组
|
|
|
|
+ // // let materialNameList = this.tableData
|
|
|
|
+ // // .map(e => {
|
|
|
|
+ // // return e.materialName
|
|
|
|
+ // // })
|
|
|
|
+ // // .filter(e => {
|
|
|
|
+ // // return e != null
|
|
|
|
+ // // })
|
|
|
|
+ // // .sort()
|
|
|
|
+ // //销售片区筛选数组
|
|
|
|
+ // let saleAreaList = this.tableData
|
|
|
|
+ // .map(e => {
|
|
|
|
+ // return e.areaName
|
|
|
|
+ // })
|
|
|
|
+ // .filter(e => {
|
|
|
|
+ // return e != null
|
|
|
|
+ // })
|
|
|
|
+ // let addressPlaceList = this.tableData
|
|
|
|
+ // .map(e => {
|
|
|
|
+ // return e.addressPlace
|
|
|
|
+ // })
|
|
|
|
+ // .filter(e => {
|
|
|
|
+ // return e != null
|
|
|
|
+ // })
|
|
|
|
+ // .sort()
|
|
|
|
+ // let orderStatusList = this.tableData
|
|
|
|
+ // .map(e => {
|
|
|
|
+ // return e.orderStatus
|
|
|
|
+ // })
|
|
|
|
+ // .filter(e => {
|
|
|
|
+ // return e != null
|
|
|
|
+ // })
|
|
|
|
+ // let materialSpeList = this.tableData
|
|
|
|
+ // .map(e => {
|
|
|
|
+ // return e.materialSpe
|
|
|
|
+ // })
|
|
|
|
+ // .filter(e => {
|
|
|
|
+ // return e != null
|
|
|
|
+ // })
|
|
|
|
+ // .sort()
|
|
|
|
+ // let saleOrderStatusList = this.tableData.map(e => {
|
|
|
|
+ // return e.saleOrderStatus
|
|
|
|
+ // })
|
|
|
|
+ // let saleRemarkList = this.tableData
|
|
|
|
+ // .map(e => {
|
|
|
|
+ // return e.saleRemark
|
|
|
|
+ // })
|
|
|
|
+ // .sort()
|
|
|
|
+ // // this.filterConsigneeList = []
|
|
|
|
+ // // this.filterCarrierList = []
|
|
|
|
+ // // this.filterCapacityList = []
|
|
|
|
+ // // this.filtermaterialNameList = []
|
|
|
|
+ // this.filterSaleAreaList = []
|
|
|
|
+ // this.filterorderStatus = []
|
|
|
|
+ // this.filteraddressPlace = []
|
|
|
|
+ // this.filtermaterialSpe = []
|
|
|
|
+ // this.filterSaleOrderStatus = []
|
|
|
|
+ // this.filterSaleRemark = []
|
|
|
|
+ // // Array.from(new Set(consigneeNameList)).forEach(e => {
|
|
|
|
+ // // let map = {}
|
|
|
|
+ // // map.text = e
|
|
|
|
+ // // map.value = e
|
|
|
|
+ // // this.filterConsigneeList.push(map)
|
|
|
|
+ // // })
|
|
|
|
+ // Array.from(new Set(carrierNameList)).forEach(e => {
|
|
|
|
+ // let map = {}
|
|
|
|
+ // map.text = e
|
|
|
|
+ // map.value = e
|
|
|
|
+ // this.filterCarrierList.push(map)
|
|
|
|
+ // })
|
|
|
|
+ // Array.from(new Set(capacityList)).forEach(e => {
|
|
|
|
+ // let map = {}
|
|
|
|
+ // map.text = e
|
|
|
|
+ // map.value = e
|
|
|
|
+ // this.filterCapacityList.push(map)
|
|
|
|
+ // })
|
|
|
|
+ // Array.from(new Set(materialNameList)).forEach(e => {
|
|
|
|
+ // let map = {}
|
|
|
|
+ // map.text = e
|
|
|
|
+ // map.value = e
|
|
|
|
+ // this.filtermaterialNameList.push(map)
|
|
|
|
+ // })
|
|
|
|
+ // Array.from(new Set(saleAreaList)).forEach(e => {
|
|
|
|
+ // let map = {}
|
|
|
|
+ // map.text = e
|
|
|
|
+ // map.value = e
|
|
|
|
+ // this.filterSaleAreaList.push(map)
|
|
|
|
+ // })
|
|
|
|
+ // Array.from(new Set(addressPlaceList)).forEach(e => {
|
|
|
|
+ // let map = {}
|
|
|
|
+ // map.text = e
|
|
|
|
+ // map.value = e
|
|
|
|
+ // this.filteraddressPlace.push(map)
|
|
|
|
+ // })
|
|
|
|
+ // Array.from(new Set(orderStatusList)).forEach(e => {
|
|
|
|
+ // let map = {}
|
|
|
|
+ // map.text = e
|
|
|
|
+ // map.value = e
|
|
|
|
+ // this.filterorderStatus.push(map)
|
|
|
|
+ // })
|
|
|
|
+ // Array.from(new Set(materialSpeList)).forEach(e => {
|
|
|
|
+ // let map = {}
|
|
|
|
+ // map.text = e
|
|
|
|
+ // map.value = e
|
|
|
|
+ // this.filtermaterialSpe.push(map)
|
|
|
|
+ // })
|
|
|
|
+ // Array.from(new Set(saleOrderStatusList)).forEach(e => {
|
|
|
|
+ // let map = {}
|
|
|
|
+ // map.text = e
|
|
|
|
+ // map.value = e
|
|
|
|
+ // this.filterSaleOrderStatus.push(map)
|
|
|
|
+ // })
|
|
|
|
+ // Array.from(new Set(saleRemarkList)).forEach(e => {
|
|
|
|
+ // let map = {}
|
|
|
|
+ // map.text = e
|
|
|
|
+ // map.value = e
|
|
|
|
+ // this.filterSaleRemark.push(map)
|
|
|
|
+ // })
|
|
|
|
+ // },
|
|
cellStyle({ row, column, rowIndex, columnIndex }) {
|
|
cellStyle({ row, column, rowIndex, columnIndex }) {
|
|
if (
|
|
if (
|
|
column.property == 'arrivalAddress' ||
|
|
column.property == 'arrivalAddress' ||
|
|
@@ -3001,15 +3004,11 @@ export default {
|
|
this.operation(this.steelMap)
|
|
this.operation(this.steelMap)
|
|
}
|
|
}
|
|
})
|
|
})
|
|
- // this.operation(this.steelMap)
|
|
|
|
- // this.getSteelReport()
|
|
|
|
loading.close()
|
|
loading.close()
|
|
}
|
|
}
|
|
})
|
|
})
|
|
.catch(() => {
|
|
.catch(() => {
|
|
this.$message.success('变更失败,请联系管理员')
|
|
this.$message.success('变更失败,请联系管理员')
|
|
- this.operation(this.steelMap)
|
|
|
|
- this.getSteelReport()
|
|
|
|
loading.close()
|
|
loading.close()
|
|
})
|
|
})
|
|
} else {
|
|
} else {
|
|
@@ -3396,23 +3395,23 @@ export default {
|
|
})
|
|
})
|
|
},
|
|
},
|
|
//将序号确定下来
|
|
//将序号确定下来
|
|
- getNodeNum(data) {
|
|
|
|
- // for (var i = 0; i < data.length; i++) {
|
|
|
|
- // if (i === 0) {
|
|
|
|
- // data[i].group = i
|
|
|
|
- // data[i].rowKey = i
|
|
|
|
- // } else {
|
|
|
|
- // // 判断当前元素与上一个元素是否相同
|
|
|
|
- // if (data[i].saleOrderMaterialId === data[i - 1].saleOrderMaterialId) {
|
|
|
|
- // data[i].group = data[i - 1].group
|
|
|
|
- // data[i].rowKey = i
|
|
|
|
- // } else {
|
|
|
|
- // data[i].group = data[i - 1].group + 1
|
|
|
|
- // data[i].rowKey = i
|
|
|
|
- // }
|
|
|
|
- // }
|
|
|
|
- // }
|
|
|
|
- },
|
|
|
|
|
|
+ // getNodeNum(data) {
|
|
|
|
+ // for (var i = 0; i < data.length; i++) {
|
|
|
|
+ // if (i === 0) {
|
|
|
|
+ // data[i].group = i
|
|
|
|
+ // data[i].rowKey = i
|
|
|
|
+ // } else {
|
|
|
|
+ // // 判断当前元素与上一个元素是否相同
|
|
|
|
+ // if (data[i].saleOrderMaterialId === data[i - 1].saleOrderMaterialId) {
|
|
|
|
+ // data[i].group = data[i - 1].group
|
|
|
|
+ // data[i].rowKey = i
|
|
|
|
+ // } else {
|
|
|
|
+ // data[i].group = data[i - 1].group + 1
|
|
|
|
+ // data[i].rowKey = i
|
|
|
|
+ // }
|
|
|
|
+ // }
|
|
|
|
+ // }
|
|
|
|
+ // },
|
|
//记录每一行的合并数
|
|
//记录每一行的合并数
|
|
getSpanArr(data) {
|
|
getSpanArr(data) {
|
|
//每次调用方法初始化
|
|
//每次调用方法初始化
|
|
@@ -3447,24 +3446,23 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
//计算总件数和总车数
|
|
//计算总件数和总车数
|
|
- getTotalNum(data) {
|
|
|
|
- //通过车序号的个数来计算车数
|
|
|
|
- let arr = []
|
|
|
|
- arr = data.map(e => {
|
|
|
|
- if (
|
|
|
|
- e.capacityNo != '取消' &&
|
|
|
|
- e.saleOrderStatus != '关闭' &&
|
|
|
|
- e.saleOrderStatus != '反审批' &&
|
|
|
|
- e.orderStatus != '已关闭'
|
|
|
|
- ) {
|
|
|
|
- return e.saleOrderMaterialId
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
- this.totalCapacity = Array.from(new Set(arr)).length
|
|
|
|
- this.totalNumber = data.reduce(function(prev, item) {
|
|
|
|
- return prev + item.materialNum
|
|
|
|
- }, 0)
|
|
|
|
- },
|
|
|
|
|
|
+ // getTotalNum(data) {
|
|
|
|
+ // //通过车序号的个数来计算车数
|
|
|
|
+ // let arr = []
|
|
|
|
+ // arr = data.map(e => {
|
|
|
|
+ // if (
|
|
|
|
+ // e.capacityNo != '取消' &&
|
|
|
|
+ // e.saleOrderStatus != '反审批' &&
|
|
|
|
+ // e.orderStatus != '已关闭'
|
|
|
|
+ // ) {
|
|
|
|
+ // return e.saleOrderMaterialId
|
|
|
|
+ // }
|
|
|
|
+ // })
|
|
|
|
+ // this.totalCapacity = Array.from(new Set(arr)).length
|
|
|
|
+ // this.totalNumber = data.reduce(function(prev, item) {
|
|
|
|
+ // return prev + item.materialNum
|
|
|
|
+ // }, 0)
|
|
|
|
+ // },
|
|
//减少物资件数
|
|
//减少物资件数
|
|
updateBillOrder(row) {
|
|
updateBillOrder(row) {
|
|
const loading = this.$loading({
|
|
const loading = this.$loading({
|
|
@@ -3635,11 +3633,23 @@ export default {
|
|
'&easPrimaryId=' +
|
|
'&easPrimaryId=' +
|
|
easPrimaryId,
|
|
easPrimaryId,
|
|
obj,
|
|
obj,
|
|
- { timeout: 5000000 }
|
|
|
|
|
|
+ {
|
|
|
|
+ timeout: 10 * 60 * 1000
|
|
|
|
+ }
|
|
)
|
|
)
|
|
.then(res => {
|
|
.then(res => {
|
|
this.tableData = res.data.data
|
|
this.tableData = res.data.data
|
|
- this.getNodeNum(this.tableData)
|
|
|
|
|
|
+ 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.visibleList = []
|
|
this.visibleList = []
|
|
this.maxHeight = window.innerHeight - 130
|
|
this.maxHeight = window.innerHeight - 130
|
|
this.visibleList = this.tableData.slice(
|
|
this.visibleList = this.tableData.slice(
|
|
@@ -3647,10 +3657,14 @@ export default {
|
|
Math.floor(this.maxHeight / this.itemHeight) + 1
|
|
Math.floor(this.maxHeight / this.itemHeight) + 1
|
|
)
|
|
)
|
|
this.getSpanArr(this.visibleList)
|
|
this.getSpanArr(this.visibleList)
|
|
- this.getTotalNum(this.tableData)
|
|
|
|
|
|
+ // this.getTotalNum(this.tableData)
|
|
this.maxHeight = window.innerHeight - 130
|
|
this.maxHeight = window.innerHeight - 130
|
|
loading.close()
|
|
loading.close()
|
|
})
|
|
})
|
|
|
|
+ .catch(() => {
|
|
|
|
+ loading.close()
|
|
|
|
+ this.$message.error('查询失败')
|
|
|
|
+ })
|
|
},
|
|
},
|
|
//重新获取表格数据
|
|
//重新获取表格数据
|
|
refresh() {
|
|
refresh() {
|
|
@@ -3672,7 +3686,6 @@ export default {
|
|
let carrierSsoId = null
|
|
let carrierSsoId = null
|
|
let carrierName = null
|
|
let carrierName = null
|
|
let consigneeName = null
|
|
let consigneeName = null
|
|
- let consigneeSsoId = null
|
|
|
|
let consigneeLoginName = null
|
|
let consigneeLoginName = null
|
|
let capacityNo = null
|
|
let capacityNo = null
|
|
let remark = null
|
|
let remark = null
|
|
@@ -3736,10 +3749,20 @@ export default {
|
|
'&capacityNo=' +
|
|
'&capacityNo=' +
|
|
capacityNo,
|
|
capacityNo,
|
|
this.filterMap,
|
|
this.filterMap,
|
|
- { timeout: 600000 }
|
|
|
|
|
|
+ { timeout: 6000000 }
|
|
)
|
|
)
|
|
.then(res => {
|
|
.then(res => {
|
|
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 (
|
|
if (
|
|
getCookie('orgCode') == 'shouhuokehu' &&
|
|
getCookie('orgCode') == 'shouhuokehu' &&
|
|
this.tableData[0].isGcKeHu == '0'
|
|
this.tableData[0].isGcKeHu == '0'
|
|
@@ -3748,15 +3771,25 @@ export default {
|
|
return e != '净重'
|
|
return e != '净重'
|
|
})
|
|
})
|
|
}
|
|
}
|
|
|
|
+ // console.log(this.visibleList[0].rowKey)
|
|
|
|
+ let a = 1
|
|
|
|
+ // console.log(a, 'a')
|
|
|
|
+ if (
|
|
|
|
+ this.visibleList.length > 0 &&
|
|
|
|
+ this.visibleList.length < this.tableData.length
|
|
|
|
+ ) {
|
|
|
|
+ a = this.visibleList[0].rowKey
|
|
|
|
+ }
|
|
this.visibleList = []
|
|
this.visibleList = []
|
|
this.maxHeight = window.innerHeight - 130
|
|
this.maxHeight = window.innerHeight - 130
|
|
- this.getNodeNum(this.tableData)
|
|
|
|
|
|
+ // this.getNodeNum(this.tableData)
|
|
this.visibleList = this.tableData.slice(
|
|
this.visibleList = this.tableData.slice(
|
|
0,
|
|
0,
|
|
Math.floor(this.maxHeight / this.itemHeight) + 1
|
|
Math.floor(this.maxHeight / this.itemHeight) + 1
|
|
)
|
|
)
|
|
this.getSpanArr(this.visibleList)
|
|
this.getSpanArr(this.visibleList)
|
|
- this.getTotalNum(this.tableData)
|
|
|
|
|
|
+ this.$refs.tableRef.bodyWrapper.scrollTop = 30 * (a - 1)
|
|
|
|
+ // this.getTotalNum(this.tableData)
|
|
loading.close()
|
|
loading.close()
|
|
})
|
|
})
|
|
.catch(() => {
|
|
.catch(() => {
|