Просмотр исходного кода

去掉发票号
修改发票删除

Qukatie 1 день назад
Родитель
Сommit
0b0df8d83e

+ 6 - 6
src/views/iosBasicData/finstlbills/assembly/finstlbillsitems.vue

@@ -176,12 +176,12 @@ export default {
             width: 120,
             overHidden: true
           },
-          {
-            label: "发票号",
-            prop: "invoiceNo",
-            width: 80,
-            overHidden: true
-          },
+          // {
+          //   label: "发票号",
+          //   prop: "invoiceNo",
+          //   width: 80,
+          //   overHidden: true
+          // },
           {
             label: "结算单位",
             prop: "corpCnName",

+ 6 - 6
src/views/iosBasicData/finstlbills/assembly/finstlbillsitems2.vue

@@ -210,12 +210,12 @@ export default {
             width: 120,
             overHidden: true
           },
-          {
-            label: "发票号",
-            prop: "invoiceNo",
-            width: 80,
-            overHidden: true
-          },
+          // {
+          //   label: "发票号",
+          //   prop: "invoiceNo",
+          //   width: 80,
+          //   overHidden: true
+          // },
           {
             label: "结算单位",
             prop: "corpCnName",

+ 18 - 14
src/views/iosBasicData/finstlbills/finstlbillsDetails.vue

@@ -52,7 +52,7 @@
                       :datalist="corpData"
                       :selectValue="form.corpCnName"
                       :clearable="true"
-                      :disabled="editSave||tableData.length||InvoicingList.length"
+                      :disabled="editSave || tableData.length || InvoicingList.length"
                       :filterable="true"
                       :remote="true"
                       :buttonIf="false"
@@ -1136,18 +1136,22 @@ export default {
     },
     // 开票明细单个删除
     invoiceDeletionfun(id, index) {
-      this.$confirm("确定将选择数据删除?", {
-        confirmButtonText: "确定",
-        cancelButtonText: "取消",
-        type: "warning"
-      }).then(() => {
-        if (id) {
-          fininvoiceitemdetailRemove(id).then(res => {
-            this.$message.success("操作成功");
-            this.InvoicingList.splice(index, 1);
-          });
-        }
-      });
+      if (id) {
+        this.$confirm("确定将选择数据删除?", {
+          confirmButtonText: "确定",
+          cancelButtonText: "取消",
+          type: "warning"
+        }).then(() => {
+          if (id) {
+            fininvoiceitemdetailRemove(id).then(res => {
+              this.$message.success("操作成功");
+              this.InvoicingList.splice(index, 1);
+            });
+          }
+        });
+      } else {
+        this.InvoicingList.splice(index, 1);
+      }
     },
     // 开票明细编辑完成保存
     invoiceSavefun(row) {
@@ -1418,7 +1422,7 @@ export default {
     },
     allClick(name) {
       if (name == "指示") {
-        this.$refs.cashier.openDialog(this.form,this.tableData,'auto');
+        this.$refs.cashier.openDialog(this.form, this.tableData, "auto");
       }
     },
     updateCashier() {