Jelajahi Sumber

Merge branch '同步订单' into 测试

lxf 1 tahun lalu
induk
melakukan
84d7e87d78
1 mengubah file dengan 12 tambahan dan 0 penghapusan
  1. 12 0
      src/views/group/order/management/index.vue

+ 12 - 0
src/views/group/order/management/index.vue

@@ -21,6 +21,12 @@
                 text: '复制万里牛单号',
                 action: () => clickCopyWLNCode(),
               },
+          props.selectStatus
+            ? {}
+            : {
+                text: '同步订单',
+                action: () => clickSynchronousOrder(),
+              },
         ]"
         @get-list="getList"
         @clickReset="clickReset">
@@ -693,6 +699,12 @@ const clickCopyWLNCode = () => {
     });
   });
 };
+const clickSynchronousOrder = () => {
+  proxy.post("/orderHandle/bathSyncOrder", {}).then(() => {
+    ElMessage.success("同步完成成功");
+    getList();
+  });
+};
 const openAfterSale = ref(false);
 const rowData = ref({});
 const clickAfterSale = (row) => {