|
|
@@ -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
|
|
|
+ });
|
|
|
},
|
|
|
|
|
|
// 点击批量删除
|