@dongkboy 2 лет назад
Родитель
Сommit
ae4ad75eda

+ 7 - 0
src/http/moudules/task.js

@@ -777,4 +777,11 @@ export const isVisibledataMatching = () => {
     method: "get",
   })
 }
+//结算表批量删除
+export const SettlementDeletes = () => {
+  return axios({
+    url: "/InsReceivable/deleteSettlement",
+    method: "post",
+  })
+}
 

+ 31 - 1
src/views/FinancialManagement/ReconciliationSystem/ReceivablePayableCollection/SettlementSource.vue

@@ -167,7 +167,7 @@
         :operationWidth="150"
         :showOperation="true"
         permsDelete="sys:user:delete"
-        :showBatchDelete="false"
+        :showBatchDelete="true"
         :showBatchSettled="true"
         :showBatchPrint="true"
         permsButton1="sys:user:edit"
@@ -180,6 +180,7 @@
         settledName="批量修改"
         @handleSettled="handleTableSettled"
         @handlePrint="handlePrint"
+        @handleDelete="handleDelete"
         button1Name="修改"
         button1Background="#E6A23C"
         @handleButton1="sourceUpdate"
@@ -487,6 +488,35 @@ export default {
       });
       this.dialogUpdateVisible = true;
     },
+    handleDelete(ids) {
+      this.$confirm("此操作将永久删除, 是否继续?", "提示", {
+        confirmButtonText: "确定",
+        cancelButtonText: "取消",
+        type: "warning",
+      })
+        .then(() => {
+          this.$api.task.SettlementDeletes(ids).then((res) => {
+            if (res.code == "200") {
+              this.$message({
+                type: "success",
+                message: "删除成功!",
+              });
+              this.findPage();
+            } else {
+              this.$message({
+                type: "error",
+                message: res.msg,
+              });
+            }
+          });
+        })
+        .catch(() => {
+          this.$message({
+            type: "info",
+            message: "已取消删除",
+          });
+        });
+    },
     BulkUpdate() {
       let params = {
         ids: this.batchSizeList,