管理端 批量更改发货状态进行二次确认提示

pull/17/head
Jruome 2023-06-27 14:03:19 +08:00
parent f7da38634b
commit 1c0376f60c
1 changed files with 8 additions and 3 deletions

View File

@ -160,6 +160,7 @@ import {DICT_TYPE, getDictDatas} from "@/utils/dict";
import ElementForm from "@/components/bpmnProcessDesigner/package/penal/form/ElementForm.vue";
import Treeselect from "@riophae/vue-treeselect";
import '@riophae/vue-treeselect/dist/vue-treeselect.css';
import {deletePhoneRecord} from "@/api/shop/phoneRecord";
export default {
name: "RechargeOrder",
computed: {
@ -283,10 +284,14 @@ export default {
return false; //
}
},
async handleGoods(){
handleGoods(){
if(this.multipleSelection.length){
await updateByIds({ids:this.multipleSelection,status:true})
this.getList();
this.$modal.confirm('是否更改勾选订单发货状态?').then(()=> {
return updateByIds({ids:this.multipleSelection,status:true})
}).then(() => {
this.getList();
this.$modal.msgSuccess("修改成功");
}).catch(() => {});
}else {
this.$modal.msgWarning("请勾选需要更改发货状态的订单")
}