Pārlūkot izejas kodu

暂时屏蔽往来账款发票校验金额计算

dudm 4 gadi atpakaļ
vecāks
revīzija
4764a82dff

+ 3 - 3
front-vue/src/views/service/bill/addBill.vue

@@ -1187,7 +1187,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: "确定",
@@ -1218,9 +1218,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); //结果
     },

+ 4 - 3
front-vue/src/views/service/bill/billAdd.vue

@@ -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); //结果
     },

+ 3 - 3
front-vue/src/views/service/bill/billEdit.vue

@@ -1254,7 +1254,7 @@ export default {
     //删除发票
     delInvoice(row) {
       var self = this;
-      const ids = [row.id] || this.ids;
+      const ids = row.id ? [row.id] : this.ids;
       if (ids && ids.length != 0) {
         this.$confirm("是否确认删除此数据项?", "警告", {
           confirmButtonText: "确定",
@@ -1285,9 +1285,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); //结果
       // return this.handleInput(eval(strarr.join("+"))); //结果