|
@@ -145,7 +145,8 @@
|
|
width="160px"
|
|
width="160px"
|
|
align="center"
|
|
align="center"
|
|
column-key="consigneeName"
|
|
column-key="consigneeName"
|
|
- :filters="filters1"
|
|
|
|
|
|
+ :filters="filterConsigneeList"
|
|
|
|
+ :filter-method="filterConsignee"
|
|
sortable
|
|
sortable
|
|
show-overflow-tooltip
|
|
show-overflow-tooltip
|
|
>
|
|
>
|
|
@@ -162,9 +163,11 @@
|
|
prop="carrierName"
|
|
prop="carrierName"
|
|
label="承运商"
|
|
label="承运商"
|
|
align="center"
|
|
align="center"
|
|
- width="60px"
|
|
|
|
|
|
+ width="80px"
|
|
sortable
|
|
sortable
|
|
show-overflow-tooltip
|
|
show-overflow-tooltip
|
|
|
|
+ :filters="filterCarrierList"
|
|
|
|
+ :filter-method="filterCarrier"
|
|
>
|
|
>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column
|
|
<el-table-column
|
|
@@ -175,6 +178,8 @@
|
|
width="90px"
|
|
width="90px"
|
|
sortable
|
|
sortable
|
|
show-overflow-tooltip
|
|
show-overflow-tooltip
|
|
|
|
+ :filters="filterCapacityList"
|
|
|
|
+ :filter-method="filterCapacity"
|
|
>
|
|
>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column
|
|
<el-table-column
|
|
@@ -184,6 +189,8 @@
|
|
width="150px"
|
|
width="150px"
|
|
sortable
|
|
sortable
|
|
show-overflow-tooltip
|
|
show-overflow-tooltip
|
|
|
|
+ :filters="filtermaterialNameList"
|
|
|
|
+ :filter-method="filtermaterialName"
|
|
>
|
|
>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column
|
|
<el-table-column
|
|
@@ -764,6 +771,7 @@ import { sjTime, isVehicleNumber } from '@/utils/sharedJsFile'
|
|
import { getCookie } from '@/utils/util.js'
|
|
import { getCookie } from '@/utils/util.js'
|
|
import PathView from './mapTest.vue'
|
|
import PathView from './mapTest.vue'
|
|
import currentLocation from './currentLocation.vue'
|
|
import currentLocation from './currentLocation.vue'
|
|
|
|
+import newNoticeVue from '../../../sale/components/dilNotice/newNotice.vue'
|
|
export default {
|
|
export default {
|
|
components: {
|
|
components: {
|
|
PathView,
|
|
PathView,
|
|
@@ -827,7 +835,7 @@ export default {
|
|
carrierList: [],
|
|
carrierList: [],
|
|
tableData: [],
|
|
tableData: [],
|
|
//筛选条件1(客户)
|
|
//筛选条件1(客户)
|
|
- filters1:[],
|
|
|
|
|
|
+ filters1: [],
|
|
spanArr: [],
|
|
spanArr: [],
|
|
pos: 0,
|
|
pos: 0,
|
|
//需要合并列的名称
|
|
//需要合并列的名称
|
|
@@ -840,7 +848,9 @@ export default {
|
|
'司机电话',
|
|
'司机电话',
|
|
'运输订单号',
|
|
'运输订单号',
|
|
'签收地址',
|
|
'签收地址',
|
|
|
|
+ '签收时间',
|
|
'抵达地址',
|
|
'抵达地址',
|
|
|
|
+ '抵达时间',
|
|
'出厂时间',
|
|
'出厂时间',
|
|
'进厂时间',
|
|
'进厂时间',
|
|
'运单状态',
|
|
'运单状态',
|
|
@@ -922,7 +932,11 @@ export default {
|
|
'xiaoshouyewuyuan',
|
|
'xiaoshouyewuyuan',
|
|
'zidonghuabu'
|
|
'zidonghuabu'
|
|
],
|
|
],
|
|
- isShowOperate: false
|
|
|
|
|
|
+ isShowOperate: false,
|
|
|
|
+ filterConsigneeList: [],
|
|
|
|
+ filterCarrierList: [],
|
|
|
|
+ filterCapacityList: [],
|
|
|
|
+ filtermaterialNameList: []
|
|
}
|
|
}
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
@@ -931,6 +945,16 @@ export default {
|
|
}
|
|
}
|
|
this.getSteelReport()
|
|
this.getSteelReport()
|
|
},
|
|
},
|
|
|
|
+ watch: {
|
|
|
|
+ tableData: {
|
|
|
|
+ handler(oldVal, newVal) {
|
|
|
|
+ this.filterListChange()
|
|
|
|
+ },
|
|
|
|
+ deep: true,
|
|
|
|
+ immediate: true
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ computed: {},
|
|
mounted() {
|
|
mounted() {
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
window.onresize = () => {
|
|
window.onresize = () => {
|
|
@@ -945,6 +969,67 @@ export default {
|
|
},
|
|
},
|
|
computed: {},
|
|
computed: {},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ //控制筛选数组变化
|
|
|
|
+ filterListChange() {
|
|
|
|
+ let consigneeNameList = this.tableData.map(e => {
|
|
|
|
+ return e.consigneeName
|
|
|
|
+ })
|
|
|
|
+ let carrierNameList = this.tableData
|
|
|
|
+ .map(e => {
|
|
|
|
+ return e.carrierName
|
|
|
|
+ })
|
|
|
|
+ .filter(e => {
|
|
|
|
+ return e != null
|
|
|
|
+ })
|
|
|
|
+ let capacityList = this.tableData
|
|
|
|
+ .map(e => {
|
|
|
|
+ return e.capacityNo
|
|
|
|
+ })
|
|
|
|
+ .filter(e => {
|
|
|
|
+ return e != null
|
|
|
|
+ })
|
|
|
|
+ let materialNameList = this.tableData
|
|
|
|
+ .map(e => {
|
|
|
|
+ return e.materialName
|
|
|
|
+ })
|
|
|
|
+ .filter(e => {
|
|
|
|
+ return e != null
|
|
|
|
+ })
|
|
|
|
+
|
|
|
|
+ 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)
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ filterConsignee(value, row) {
|
|
|
|
+ return row.consigneeName === value
|
|
|
|
+ },
|
|
|
|
+ filterCarrier(value, row) {
|
|
|
|
+ return row.carrierName === value
|
|
|
|
+ },
|
|
|
|
+ filterCapacity(value, row) {
|
|
|
|
+ return row.capacityNo === value
|
|
|
|
+ },
|
|
cellStyle({ row, column, rowIndex, columnIndex }) {
|
|
cellStyle({ row, column, rowIndex, columnIndex }) {
|
|
if (
|
|
if (
|
|
column.property == 'arrivalAddress' ||
|
|
column.property == 'arrivalAddress' ||
|
|
@@ -1876,8 +1961,8 @@ export default {
|
|
)
|
|
)
|
|
.then(res => {
|
|
.then(res => {
|
|
this.tableData = res.data.data
|
|
this.tableData = res.data.data
|
|
- this.filters1=res.data.data.consigneeName
|
|
|
|
- console.log("客户数据")
|
|
|
|
|
|
+ this.filters1 = res.data.data.consigneeName
|
|
|
|
+ console.log('客户数据')
|
|
console.log(res.data.data.consigneeName)
|
|
console.log(res.data.data.consigneeName)
|
|
this.getSpanArr(res.data.data)
|
|
this.getSpanArr(res.data.data)
|
|
loading.close()
|
|
loading.close()
|