Parcourir la source

接口调整提交

LAPTOP-16IUEB3P\Lenovo il y a 2 ans
Parent
commit
2dc6e8d345
1 fichiers modifiés avec 10 ajouts et 3 suppressions
  1. 10 3
      src/views/saleOrder/components/order-search.vue

+ 10 - 3
src/views/saleOrder/components/order-search.vue

@@ -140,7 +140,7 @@
         <el-form-item label-width="0px">
           <div class="btn-wrapper">
             <el-button @click="goProduct">转生产计划</el-button>
-            <el-button type="primary" @click="orderRefresh">订单刷新</el-button>
+            <el-button type="primary" @click="orderRefresh"  :loading="loading">订单刷新</el-button>
             <el-button type="success" @click="toCreate">创建订单</el-button>
             <el-upload
               class="avatar-uploader"
@@ -230,7 +230,8 @@
           { value: 0, label: '所有' },
           { value: 1, label: '按单' },
           { value: 2, label: '按库' }
-        ]
+        ],
+		loading:false
       };
     },
     computed: {
@@ -307,7 +308,13 @@
 
       // 刷新订单
       orderRefresh () {
-        pullSalesOrder().then((res) => {});
+		  this.loading = true
+        pullSalesOrder().then((res) => {
+			 this.$message.success('刷新成功!')
+			 this.loading = false
+		}).catch(() => {
+			this.loading = false
+		});
       },
 
       // 点击批量删除