Browse Source

订单数据同步

jbb 2 years ago
parent
commit
f2d253215a
2 changed files with 6 additions and 2 deletions
  1. 1 1
      src/api/document/order.js
  2. 5 1
      src/views/order/orderList.vue

+ 1 - 1
src/api/document/order.js

@@ -9,6 +9,6 @@ const orderList = params => getAction('/orderData/syOrderData/list', params)
 const orderByNum = params => getAction('/orderData/syOrderDataItem/lists', params)
 
 //同步
-const syncy = params => postAction('/orderData/syOrderData/tongBu', params)
+const syncy = params => getAction('/sys/quartzJob/execute', params)
 
 export { orderList, orderByNum, syncy }

+ 5 - 1
src/views/order/orderList.vue

@@ -280,9 +280,13 @@ export default {
     // 同步
     synchronization() {
       this.$nextTick(() => {
-        syncy().then(res => {
+        var id = 1570672855704420354
+        syncy({id}).then(res => {
           if (res.success) {
             this.getOrderList();
+            this.$message.success('同步成功')
+          }else{
+            this.$message.error(res.message)
           }
         })
       })