|
|
@@ -782,6 +782,7 @@ export default {
|
|
|
},
|
|
|
// 多选框选中数据
|
|
|
handleInvoiceSelectionChange(selection) {
|
|
|
+ console.log(selection)
|
|
|
this.ids = selection.map((item) => item.id);
|
|
|
this.single = selection.length !== 1;
|
|
|
this.multiple = !selection.length;
|
|
|
@@ -1173,7 +1174,7 @@ export default {
|
|
|
delInvoice(row) {
|
|
|
var self = this;
|
|
|
console.log(this.ids);
|
|
|
- const ids = [row.id] || this.ids;
|
|
|
+ const ids = row.id ? [row.id] : this.ids;
|
|
|
if (ids && ids.length != 0) {
|
|
|
this.$confirm("是否确认删除此数据项?", "警告", {
|
|
|
confirmButtonText: "确定",
|
|
|
@@ -1204,9 +1205,9 @@ export default {
|
|
|
allAmount() {
|
|
|
var strarr = [0.0];
|
|
|
for (let i in this.fileList) {
|
|
|
- if (this.fileList[i]["ziiCheckStt"] == "1") {
|
|
|
+ // if (this.fileList[i]["ziiCheckStt"] == "1") {
|
|
|
strarr.push(this.fileList[i]["ziiAmount"]);
|
|
|
- }
|
|
|
+ // }
|
|
|
}
|
|
|
return (Math.floor(eval(strarr.join("+")) * 100) / 100).toFixed(2); //结果
|
|
|
},
|