|
@@ -70,7 +70,7 @@
|
|
|
</a-alert>
|
|
|
<a-table
|
|
|
:columns="columns"
|
|
|
- :row-key="record => record.childId"
|
|
|
+ :row-key="record => record.id"
|
|
|
:data-source="dataSource"
|
|
|
bordered
|
|
|
size="small"
|
|
@@ -145,6 +145,11 @@
|
|
|
inquirySuppiler:'',
|
|
|
salesmanName:'',
|
|
|
saleDepartmenName:'',
|
|
|
+ submit : "1" ,
|
|
|
+ close:"0",
|
|
|
+ isUsed:0,
|
|
|
+ billDate_begin:'',
|
|
|
+ billDate_end:''
|
|
|
});
|
|
|
let pagination = ref({
|
|
|
current: 1,
|
|
@@ -202,6 +207,11 @@
|
|
|
inquirySuppiler:'',
|
|
|
salesmanName:'',
|
|
|
saleDepartmenName:'',
|
|
|
+ submit : "1" ,
|
|
|
+ close:"0",
|
|
|
+ isUsed:0,
|
|
|
+ billDate_begin:'',
|
|
|
+ billDate_end:''
|
|
|
}
|
|
|
pagination.value.current =1;
|
|
|
pagination.value.pageSize = 10;
|
|
@@ -215,7 +225,7 @@
|
|
|
function onSelectChange(selectedRowKeys1, selectionRows1) {
|
|
|
var arr = []
|
|
|
selectionRows.value.map(item=>{
|
|
|
- arr.push(item.childId)
|
|
|
+ arr.push(item.id)
|
|
|
})
|
|
|
selectedRowKeys.value = arr
|
|
|
}
|
|
@@ -225,7 +235,7 @@
|
|
|
console.log( selectionRows.value);
|
|
|
}else{
|
|
|
const delIndex = selectionRows.value.findIndex((val) => {
|
|
|
- return val.childId === record.childId
|
|
|
+ return val.id === record.id
|
|
|
})
|
|
|
selectionRows.value.splice(delIndex, 1)
|
|
|
}
|
|
@@ -239,7 +249,7 @@
|
|
|
const delIndex = []
|
|
|
selectionRows2.forEach((item, index) => {
|
|
|
changeRows.forEach((val, itemIndex) => {
|
|
|
- if (item.childId === val.childId) {
|
|
|
+ if (item.id === val.id) {
|
|
|
delIndex.push(index)
|
|
|
}
|
|
|
})
|
|
@@ -270,6 +280,11 @@
|
|
|
inquirySuppiler:'',
|
|
|
salesmanName:'',
|
|
|
saleDepartmenName:'',
|
|
|
+ submit : "1" ,
|
|
|
+ close:"0",
|
|
|
+ isUsed:0,
|
|
|
+ billDate_begin:'',
|
|
|
+ billDate_end:''
|
|
|
}
|
|
|
selectedRowKeys.value = []
|
|
|
selectionRows.value=[]
|