Commit cfeb3d5a authored by zhengke's avatar zhengke

优化写法

parent bc807b6f
...@@ -4740,25 +4740,13 @@ ...@@ -4740,25 +4740,13 @@
}, },
//清位 //清位
clearSeat(item,type){ clearSeat(item,type){
let msg={};
if(type==1){ if(type==1){
let msg = { msg.IsCanClear = 1;
IsCanClear:1, msg.OrderId = item.OrderId
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 => {})
}else{ }else{
let msg = { msg.IsCanClear = 0;
IsCanClear:0, msg.OrderId = item.OrderId
OrderId:item.OrderId
} }
this.apipost('sellorder_post_SetOrderIsCanClear',msg, this.apipost('sellorder_post_SetOrderIsCanClear',msg,
res => { res => {
...@@ -4771,7 +4759,6 @@ ...@@ -4771,7 +4759,6 @@
}, },
err => {}) err => {})
} }
}
}, },
mounted() { mounted() {
let userInfo = this.getLocalStorage(); 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