|
@@ -115,6 +115,7 @@
|
|
@cell-mouse-leave="cellLeave"
|
|
@cell-mouse-leave="cellLeave"
|
|
@row-click="rowClick"
|
|
@row-click="rowClick"
|
|
:cell-style="cellStyle"
|
|
:cell-style="cellStyle"
|
|
|
|
+ @filter-change="filterChange"
|
|
>
|
|
>
|
|
<el-table-column
|
|
<el-table-column
|
|
width="50"
|
|
width="50"
|
|
@@ -146,7 +147,6 @@
|
|
align="center"
|
|
align="center"
|
|
column-key="consigneeName"
|
|
column-key="consigneeName"
|
|
:filters="filterConsigneeList"
|
|
:filters="filterConsigneeList"
|
|
- :filter-method="filterConsignee"
|
|
|
|
sortable
|
|
sortable
|
|
show-overflow-tooltip
|
|
show-overflow-tooltip
|
|
>
|
|
>
|
|
@@ -164,10 +164,10 @@
|
|
label="承运商"
|
|
label="承运商"
|
|
align="center"
|
|
align="center"
|
|
width="80px"
|
|
width="80px"
|
|
|
|
+ column-key="carrierList"
|
|
sortable
|
|
sortable
|
|
show-overflow-tooltip
|
|
show-overflow-tooltip
|
|
:filters="filterCarrierList"
|
|
:filters="filterCarrierList"
|
|
- :filter-method="filterCarrier"
|
|
|
|
>
|
|
>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column
|
|
<el-table-column
|
|
@@ -179,7 +179,6 @@
|
|
sortable
|
|
sortable
|
|
show-overflow-tooltip
|
|
show-overflow-tooltip
|
|
:filters="filterCapacityList"
|
|
:filters="filterCapacityList"
|
|
- :filter-method="filterCapacity"
|
|
|
|
>
|
|
>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column
|
|
<el-table-column
|
|
@@ -190,7 +189,7 @@
|
|
sortable
|
|
sortable
|
|
show-overflow-tooltip
|
|
show-overflow-tooltip
|
|
:filters="filtermaterialNameList"
|
|
:filters="filtermaterialNameList"
|
|
- :filter-method="filtermaterialName"
|
|
|
|
|
|
+ column-key="materialNameList"
|
|
>
|
|
>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column
|
|
<el-table-column
|
|
@@ -862,7 +861,9 @@ export default {
|
|
'是否自提',
|
|
'是否自提',
|
|
'订单日期',
|
|
'订单日期',
|
|
'短信发送',
|
|
'短信发送',
|
|
- '销售片区'
|
|
|
|
|
|
+ '销售片区',
|
|
|
|
+ '抵达时间',
|
|
|
|
+ '签收时间'
|
|
],
|
|
],
|
|
//钢材多拼车辆线路ID
|
|
//钢材多拼车辆线路ID
|
|
//索引从1-10为1-10拼路线ID
|
|
//索引从1-10为1-10拼路线ID
|
|
@@ -935,7 +936,8 @@ export default {
|
|
filterConsigneeList: [],
|
|
filterConsigneeList: [],
|
|
filterCarrierList: [],
|
|
filterCarrierList: [],
|
|
filterCapacityList: [],
|
|
filterCapacityList: [],
|
|
- filtermaterialNameList: []
|
|
|
|
|
|
+ filtermaterialNameList: [],
|
|
|
|
+ filterMap: {}
|
|
}
|
|
}
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
@@ -968,6 +970,50 @@ export default {
|
|
},
|
|
},
|
|
computed: {},
|
|
computed: {},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ //筛选
|
|
|
|
+ filterChange(obj) {
|
|
|
|
+ if (typeof obj.carrierList != 'undefined' && obj.carrierList.length > 0) {
|
|
|
|
+ this.filterMap.carrierList = obj.carrierList
|
|
|
|
+ }
|
|
|
|
+ if (
|
|
|
|
+ typeof obj.carrierList != 'undefined' &&
|
|
|
|
+ obj.carrierList.length == 0
|
|
|
|
+ ) {
|
|
|
|
+ delete this.filterMap.carrierList
|
|
|
|
+ }
|
|
|
|
+ if (
|
|
|
|
+ typeof obj.materialNameList != 'undefined' &&
|
|
|
|
+ obj.materialNameList.length > 0
|
|
|
|
+ ) {
|
|
|
|
+ this.filterMap.materialNameList = obj.materialNameList
|
|
|
|
+ }
|
|
|
|
+ if (
|
|
|
|
+ typeof obj.materialNameList != 'undefined' &&
|
|
|
|
+ obj.materialNameList.length == 0
|
|
|
|
+ ) {
|
|
|
|
+ delete this.filterMap.materialNameList
|
|
|
|
+ }
|
|
|
|
+ if (typeof obj.capacityNo != 'undefined' && obj.capacityNo.length > 0) {
|
|
|
|
+ this.filterMap.capacityList = obj.capacityNo
|
|
|
|
+ }
|
|
|
|
+ if (typeof obj.capacityNo != 'undefined' && obj.capacityNo.length == 0) {
|
|
|
|
+ delete this.filterMap.capacityList
|
|
|
|
+ }
|
|
|
|
+ if (
|
|
|
|
+ typeof obj.consigneeName != 'undefined' &&
|
|
|
|
+ obj.consigneeName.length > 0
|
|
|
|
+ ) {
|
|
|
|
+ this.filterMap.consigneeNameList = obj.consigneeName
|
|
|
|
+ }
|
|
|
|
+ if (
|
|
|
|
+ typeof obj.consigneeName != 'undefined' &&
|
|
|
|
+ obj.consigneeName.length == 0
|
|
|
|
+ ) {
|
|
|
|
+ delete this.filterMap.consigneeNameList
|
|
|
|
+ }
|
|
|
|
+ // if (obj)
|
|
|
|
+ this.onclick(this.filterMap)
|
|
|
|
+ },
|
|
//控制筛选数组变化
|
|
//控制筛选数组变化
|
|
filterListChange() {
|
|
filterListChange() {
|
|
let consigneeNameList = this.tableData.map(e => {
|
|
let consigneeNameList = this.tableData.map(e => {
|
|
@@ -994,7 +1040,10 @@ export default {
|
|
.filter(e => {
|
|
.filter(e => {
|
|
return e != null
|
|
return e != null
|
|
})
|
|
})
|
|
-
|
|
|
|
|
|
+ this.filterConsigneeList = []
|
|
|
|
+ this.filterCarrierList = []
|
|
|
|
+ this.filterCapacityList = []
|
|
|
|
+ this.filtermaterialNameList = []
|
|
Array.from(new Set(consigneeNameList)).forEach(e => {
|
|
Array.from(new Set(consigneeNameList)).forEach(e => {
|
|
let map = {}
|
|
let map = {}
|
|
map.text = e
|
|
map.text = e
|
|
@@ -1020,18 +1069,6 @@ export default {
|
|
this.filtermaterialNameList.push(map)
|
|
this.filtermaterialNameList.push(map)
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- filterConsignee(value, row) {
|
|
|
|
- return row.consigneeName === value
|
|
|
|
- },
|
|
|
|
- filterCarrier(value, row) {
|
|
|
|
- return row.carrierName === value
|
|
|
|
- },
|
|
|
|
- filterCapacity(value, row) {
|
|
|
|
- return row.capacityNo === value
|
|
|
|
- },
|
|
|
|
- filtermaterialName(value, row) {
|
|
|
|
- return row.materialName === value
|
|
|
|
- },
|
|
|
|
cellStyle({ row, column, rowIndex, columnIndex }) {
|
|
cellStyle({ row, column, rowIndex, columnIndex }) {
|
|
if (
|
|
if (
|
|
column.property == 'arrivalAddress' ||
|
|
column.property == 'arrivalAddress' ||
|
|
@@ -1891,7 +1928,7 @@ export default {
|
|
})
|
|
})
|
|
},
|
|
},
|
|
//查询,输入查询条件
|
|
//查询,输入查询条件
|
|
- onclick() {
|
|
|
|
|
|
+ onclick(obj) {
|
|
this.isRowClick = 0
|
|
this.isRowClick = 0
|
|
const loading = this.$loading({
|
|
const loading = this.$loading({
|
|
lock: true,
|
|
lock: true,
|
|
@@ -1959,7 +1996,8 @@ export default {
|
|
'&saler=' +
|
|
'&saler=' +
|
|
saler +
|
|
saler +
|
|
'&easPrimaryId=' +
|
|
'&easPrimaryId=' +
|
|
- easPrimaryId
|
|
|
|
|
|
+ easPrimaryId,
|
|
|
|
+ obj
|
|
)
|
|
)
|
|
.then(res => {
|
|
.then(res => {
|
|
this.tableData = res.data.data
|
|
this.tableData = res.data.data
|