uniapp【优化】:优化商家管理查找需要核销券的提示

This commit is contained in:
花城
2024-12-02 18:12:00 +08:00
parent acb67f69cb
commit fb2b466f6f
2 changed files with 8 additions and 2 deletions

View File

@@ -107,13 +107,16 @@
}
const getServiceVerificationTicketInfo = async () => {
if (!state.id) { return };
const ladingInfo : Response<any> = await queryServiceVerificationTicketInfo({ id: state.id });
if (ladingInfo.status) {
state.ticket = ladingInfo.data.ticket;
state.service = ladingInfo.data.service;
state.serviceOrder = ladingInfo.data.serviceOrder;
state.ticket['checkboxValue'] = [`${ladingInfo.data.ticket?.redeemCode}`];
}
}else{
handleShowToast(ladingInfo.msg);
}
}
/** 确认核销 */

View File

@@ -97,13 +97,16 @@
}
const getLadingInfo = async () => {
if (!state.id) { return };
const ladingInfo : Response<any> = await queryLadingInfo({ id: state.id });
if (ladingInfo.status) {
state.list = ladingInfo.data.map((item : any) => {
item['checkboxValue'] = [`${item.id}`];
return item;
});
}
}else{
handleShowToast(ladingInfo.msg);
}
}
/** 组合商品数据传入组件 */