修改订单详情切换用户时,将之前的userId字段改为memberId字段
This commit is contained in:
@@ -221,7 +221,7 @@
|
||||
if(!canJieZhang){
|
||||
return
|
||||
}
|
||||
const userId=orderDetail.info.userId||''
|
||||
const memberId=orderDetail.info.memberId||''
|
||||
clearEmit()
|
||||
go.to('PAGES_ORDER_PAY', {
|
||||
tableId: options.tableId|| orderDetail.info.tableId,
|
||||
@@ -229,7 +229,7 @@
|
||||
masterId: options.masterId,
|
||||
orderId: orderDetail.info.id,
|
||||
discount: 1,
|
||||
userId
|
||||
memberId
|
||||
})
|
||||
}
|
||||
|
||||
@@ -243,8 +243,8 @@
|
||||
const options = reactive({})
|
||||
async function init() {
|
||||
const res = await orderApi.tbOrderInfoDetail(options.id)
|
||||
if(res.userId){
|
||||
queryAllShopUser({id:res.userId}).then(res=>{
|
||||
if(res.memberId){
|
||||
queryAllShopUser({id:res.memberId}).then(res=>{
|
||||
if(res.content[0]){
|
||||
user.value=res.content[0]
|
||||
}
|
||||
@@ -320,6 +320,7 @@
|
||||
//更新选择用户
|
||||
function setUser(par) {
|
||||
const submitPar = {
|
||||
orderId:options.id||'',
|
||||
masterId: options.masterId,
|
||||
tableId: options.tableId|| orderDetail.info.tableId,
|
||||
vipUserId: user.value.id ? user.value.id : '',
|
||||
|
||||
Reference in New Issue
Block a user