|
@@ -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>
|