Commit cfeb3d5a authored by zhengke's avatar zhengke

优化写法

parent bc807b6f
......@@ -4740,25 +4740,13 @@
},
//清位
clearSeat(item,type){
let msg={};
if(type==1){
let msg = {
IsCanClear:1,
OrderId:item.OrderId
}
this.apipost('sellorder_post_SetOrderIsCanClear',msg,
res => {
if (res.data.resultCode == 1) {
this.Success(res.data.message)
this.getList();
} else {
this.Error(res.data.message)
}
},
err => {})
msg.IsCanClear = 1;
msg.OrderId = item.OrderId
}else{
let msg = {
IsCanClear:0,
OrderId:item.OrderId
msg.IsCanClear = 0;
msg.OrderId = item.OrderId
}
this.apipost('sellorder_post_SetOrderIsCanClear',msg,
res => {
......@@ -4771,7 +4759,6 @@
},
err => {})
}
}
},
mounted() {
let userInfo = this.getLocalStorage();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment