|
@@ -368,9 +368,9 @@ export default {
|
|
|
cancelButtonText: '取消',
|
|
|
beforeClose: async(action, instance, done) => {
|
|
|
if (action === 'confirm') {
|
|
|
+ instance.confirmButtonLoading = true;
|
|
|
+ instance.confirmButtonText = '执行中...';
|
|
|
try {
|
|
|
- instance.confirmButtonLoading = true;
|
|
|
- instance.confirmButtonText = '执行中...';
|
|
|
let { code,msg } = await orderApi.submit({ puOrderIds,checkAmount:false});
|
|
|
if(code == 200){
|
|
|
done();
|
|
@@ -378,7 +378,7 @@ export default {
|
|
|
}
|
|
|
|
|
|
} catch (error) {
|
|
|
-
|
|
|
+ instance.confirmButtonText = "确认";
|
|
|
}finally{
|
|
|
instance.confirmButtonLoading = false;
|
|
|
}
|
|
@@ -395,7 +395,7 @@ export default {
|
|
|
finally{
|
|
|
this.loading = false;
|
|
|
}
|
|
|
- })
|
|
|
+ })
|
|
|
|
|
|
},
|
|
|
|