Browse Source

对账单手动同步功能

lxf 1 year ago
parent
commit
3ee62e83ca
1 changed files with 18 additions and 0 deletions
  1. 18 0
      src/views/group/finance/check-bill/index.vue

+ 18 - 0
src/views/group/finance/check-bill/index.vue

@@ -17,6 +17,10 @@
             text: 'Excel文件',
             action: () => clickExcelFile(),
           },
+          {
+            text: '手动同步',
+            action: () => clickManualSynchronization(),
+          },
         ]"
         @get-list="getList"
         @clickReset="clickReset">
@@ -631,6 +635,20 @@ const clickCancel = (status) => {
 const clickExcelFile = () => {
   openFileList.value = true;
 };
+const clickManualSynchronization = () => {
+  loading.value = true;
+  proxy.post("/orderHandle/createStatementOfAccount", {}).then(
+    () => {
+      loading.value = false;
+      ElMessage({ message: "同步完成", type: "success" });
+      getList();
+    },
+    (err) => {
+      console.log(err);
+      loading.value = false;
+    }
+  );
+};
 </script>
 
 <style lang="scss" scoped>