|
@@ -1501,20 +1501,21 @@ export default {
|
|
|
const itemsWithId = this.handleSelectionData.filter((item) => item.hasOwnProperty("id"));
|
|
const itemsWithId = this.handleSelectionData.filter((item) => item.hasOwnProperty("id"));
|
|
|
let arrIds = itemsWithId.map((item) => item.id); // 获取id 数据
|
|
let arrIds = itemsWithId.map((item) => item.id); // 获取id 数据
|
|
|
// 把选中的删除掉
|
|
// 把选中的删除掉
|
|
|
- this.handleSelectionData.forEach((item) => {
|
|
|
|
|
- for (let index in this.tableData) {
|
|
|
|
|
- if (item.accBillNo == this.tableData[index].accBillNo) {
|
|
|
|
|
- this.tableData.splice(Number(index), 1);
|
|
|
|
|
- setTimeout(() => {
|
|
|
|
|
- this.$refs.pickedData.refreshData();
|
|
|
|
|
- }, 100);
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- });
|
|
|
|
|
|
|
+ // this.handleSelectionData.forEach((item) => {
|
|
|
|
|
+ // for (let index in this.tableData) {
|
|
|
|
|
+ // if (item.accBillNo == this.tableData[index].accBillNo) {
|
|
|
|
|
+ // this.tableData.splice(Number(index), 1);
|
|
|
|
|
+ // setTimeout(() => {
|
|
|
|
|
+ // this.$refs.pickedData.refreshData();
|
|
|
|
|
+ // }, 100);
|
|
|
|
|
+ // }
|
|
|
|
|
+ // }
|
|
|
|
|
+ // });
|
|
|
// 有id 的处理
|
|
// 有id 的处理
|
|
|
if (itemsWithId.length != 0) {
|
|
if (itemsWithId.length != 0) {
|
|
|
fininvoicesitemsRemove(arrIds.join(",")).then((res) => {
|
|
fininvoicesitemsRemove(arrIds.join(",")).then((res) => {
|
|
|
this.$message.success("操作成功");
|
|
this.$message.success("操作成功");
|
|
|
|
|
+ this.fininvoicesDetailfun(this.form.id);
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|