diff --git a/CoreCms.Net.Uni-App/CoreShop/pages/subpackage/merchant/serviceVerification/index/index.vue b/CoreCms.Net.Uni-App/CoreShop/pages/subpackage/merchant/serviceVerification/index/index.vue index e1704cd5..6c57de85 100644 --- a/CoreCms.Net.Uni-App/CoreShop/pages/subpackage/merchant/serviceVerification/index/index.vue +++ b/CoreCms.Net.Uni-App/CoreShop/pages/subpackage/merchant/serviceVerification/index/index.vue @@ -107,13 +107,16 @@ } const getServiceVerificationTicketInfo = async () => { + if (!state.id) { return }; const ladingInfo : Response = 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); + } } /** 确认核销 */ diff --git a/CoreCms.Net.Uni-App/CoreShop/pages/subpackage/merchant/takeDelivery/index/index.vue b/CoreCms.Net.Uni-App/CoreShop/pages/subpackage/merchant/takeDelivery/index/index.vue index c230b6d2..7ea743af 100644 --- a/CoreCms.Net.Uni-App/CoreShop/pages/subpackage/merchant/takeDelivery/index/index.vue +++ b/CoreCms.Net.Uni-App/CoreShop/pages/subpackage/merchant/takeDelivery/index/index.vue @@ -97,13 +97,16 @@ } const getLadingInfo = async () => { + if (!state.id) { return }; const ladingInfo : Response = 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); + } } /** 组合商品数据传入组件 */