|
@@ -21,6 +21,7 @@ import TemplatePage from '@/components/template/template-page-1.vue'
|
|
import import_mixin from '@/components/template/import_mixin.js'
|
|
import import_mixin from '@/components/template/import_mixin.js'
|
|
import add_callback_mixin from '@/components/template/add_callback_mixin.js'
|
|
import add_callback_mixin from '@/components/template/add_callback_mixin.js'
|
|
import { getListCostBillV2 } from '@/api/logisticsBill'
|
|
import { getListCostBillV2 } from '@/api/logisticsBill'
|
|
|
|
+import { dataTool } from 'echarts'
|
|
export default {
|
|
export default {
|
|
components: { TemplatePage, ExceptionBox },
|
|
components: { TemplatePage, ExceptionBox },
|
|
mixins: [import_mixin, add_callback_mixin],
|
|
mixins: [import_mixin, add_callback_mixin],
|
|
@@ -70,7 +71,8 @@ export default {
|
|
tableEvents: {
|
|
tableEvents: {
|
|
'selection-change': this.selectionChange
|
|
'selection-change': this.selectionChange
|
|
},
|
|
},
|
|
- recordSelected: []
|
|
|
|
|
|
+ recordSelected: [],
|
|
|
|
+ listData:[]
|
|
}
|
|
}
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
@@ -85,6 +87,7 @@ export default {
|
|
value: this.orderCode
|
|
value: this.orderCode
|
|
}
|
|
}
|
|
]
|
|
]
|
|
|
|
+ this.getListCostBillV2(...p)
|
|
return getListCostBillV2(...p)
|
|
return getListCostBillV2(...p)
|
|
},
|
|
},
|
|
// 列表导出函数
|
|
// 列表导出函数
|
|
@@ -95,7 +98,20 @@ export default {
|
|
},
|
|
},
|
|
// 监听勾选变化
|
|
// 监听勾选变化
|
|
selectionChange(data) {
|
|
selectionChange(data) {
|
|
- this.recordSelected = data
|
|
|
|
|
|
+ if (data && data.length) {
|
|
|
|
+ const newList = []
|
|
|
|
+ this.listData.forEach(l=>{
|
|
|
|
+ data.forEach(k => {
|
|
|
|
+ if (l.id===k.id) {
|
|
|
|
+ newList.push(l)
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ })
|
|
|
|
+ this.recordSelected = newList
|
|
|
|
+ }else{
|
|
|
|
+ this.recordSelected = []
|
|
|
|
+ }
|
|
|
|
+ console.log( this.recordSelected)
|
|
},
|
|
},
|
|
operation() {
|
|
operation() {
|
|
return (h, { row, index, column }) => {
|
|
return (h, { row, index, column }) => {
|
|
@@ -105,7 +121,13 @@ export default {
|
|
handleClose() {
|
|
handleClose() {
|
|
this.visible = false
|
|
this.visible = false
|
|
this.$refs.pageRefItem.refreshList()
|
|
this.$refs.pageRefItem.refreshList()
|
|
- }
|
|
|
|
|
|
+ },
|
|
|
|
+ getListCostBillV2(p){
|
|
|
|
+ getListCostBillV2(p).then(res=>{
|
|
|
|
+ this.listData = res.data.records
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|