mirror of
http://git.coreshop.cn/jianweie/coreshoppro.git
synced 2026-03-22 16:17:21 +08:00
uniapp【优化】:优化商家管理查找需要核销券的提示
This commit is contained in:
@@ -107,13 +107,16 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
const getServiceVerificationTicketInfo = async () => {
|
const getServiceVerificationTicketInfo = async () => {
|
||||||
|
if (!state.id) { return };
|
||||||
const ladingInfo : Response<any> = await queryServiceVerificationTicketInfo({ id: state.id });
|
const ladingInfo : Response<any> = await queryServiceVerificationTicketInfo({ id: state.id });
|
||||||
if (ladingInfo.status) {
|
if (ladingInfo.status) {
|
||||||
state.ticket = ladingInfo.data.ticket;
|
state.ticket = ladingInfo.data.ticket;
|
||||||
state.service = ladingInfo.data.service;
|
state.service = ladingInfo.data.service;
|
||||||
state.serviceOrder = ladingInfo.data.serviceOrder;
|
state.serviceOrder = ladingInfo.data.serviceOrder;
|
||||||
state.ticket['checkboxValue'] = [`${ladingInfo.data.ticket?.redeemCode}`];
|
state.ticket['checkboxValue'] = [`${ladingInfo.data.ticket?.redeemCode}`];
|
||||||
}
|
}else{
|
||||||
|
handleShowToast(ladingInfo.msg);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/** 确认核销 */
|
/** 确认核销 */
|
||||||
|
|||||||
@@ -97,13 +97,16 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
const getLadingInfo = async () => {
|
const getLadingInfo = async () => {
|
||||||
|
if (!state.id) { return };
|
||||||
const ladingInfo : Response<any> = await queryLadingInfo({ id: state.id });
|
const ladingInfo : Response<any> = await queryLadingInfo({ id: state.id });
|
||||||
if (ladingInfo.status) {
|
if (ladingInfo.status) {
|
||||||
state.list = ladingInfo.data.map((item : any) => {
|
state.list = ladingInfo.data.map((item : any) => {
|
||||||
item['checkboxValue'] = [`${item.id}`];
|
item['checkboxValue'] = [`${item.id}`];
|
||||||
return item;
|
return item;
|
||||||
});
|
});
|
||||||
}
|
}else{
|
||||||
|
handleShowToast(ladingInfo.msg);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/** 组合商品数据传入组件 */
|
/** 组合商品数据传入组件 */
|
||||||
|
|||||||
Reference in New Issue
Block a user