Browse Source

单条同步加载

jbb 2 years ago
parent
commit
b80b1db041
1 changed files with 9 additions and 3 deletions
  1. 9 3
      src/views/order/orderList.vue

+ 9 - 3
src/views/order/orderList.vue

@@ -1,6 +1,6 @@
 c<template>
   <!-- 【单证】 订单数据 -->
-  <a-spin :spinning="spinIsShow" :delay="spinDelayMS">
+  <a-spin :spinning="spinIsShow" >
   <div id="orderList">
     <a-card :bordered="false">
       <!-- 查询区域 -->
@@ -275,10 +275,12 @@ export default {
     // 分页查询
     getOrderList() {
       var that = this;
-      that.spinIsShow = true;
+      // that.spinIsShow = true;
+      this.loading = true
       this.$nextTick(() => {
         orderList(this.queryParam).then(res => {
-          that.spinIsShow = false;
+          // that.spinIsShow = false;
+          this.loading = false
           if (res.success) {
             that.orderListData = res.result.records;
             that.pagination = {
@@ -297,6 +299,7 @@ export default {
     synchronization() {
       this.$nextTick(() => {
         var id = "1570672855704420354"
+        this.loading = true
         syncy({id}).then(res => {
           if (res.success) {
             this.getOrderList();
@@ -311,8 +314,11 @@ export default {
     synchronizationOne(){
       this.$nextTick(() => {
         var parameter = this.dingDan
+        this.loading = true
         oneSyncy({parameter}).then(res => {
           if (res.success) {
+            this.loading =false
+            this.queryParam.orderNumber = this.dingDan
             this.getOrderList();
             this.$message.success(res.message)
           }else{