diff --git a/src/views/applyments/applyment_in.vue b/src/views/applyments/applyment_in.vue index 12e0131..7fb03bc 100644 --- a/src/views/applyments/applyment_in.vue +++ b/src/views/applyments/applyment_in.vue @@ -311,13 +311,14 @@ const longTime = ref('2099-12-31') const wxProvinceCode = ref('') // 获取进件详情 -async function getDetailAjax(shopId: string, licenceNo: string) { +async function getDetailAjax(shopId: string) { try { const res: any = await entryManagerDetail({ - shopId: shopId, - licenceNo: licenceNo + shopId: shopId }) - form.value = res + if (res && res.shopId) { + form.value = res + } } catch (error) { console.log(error); } @@ -325,8 +326,6 @@ async function getDetailAjax(shopId: string, licenceNo: string) { // 获取containerDomInfo信息 function getContainerDomInfo() { - console.log('getContainerDomInfo'); - containerDomInfo.value = containerRef.value?.getBoundingClientRect() ?? {} } @@ -336,14 +335,18 @@ onMounted(() => { getContainerDomInfo() window.addEventListener('resize', debouncedCheckWidth) + const type = route.query.type const shopId: string = String(route.query.shopId ?? '') const licenceNo: string = String(route.query.licenceNo ?? '') - if (shopId && licenceNo) { - formType.value = 'editor' - getDetailAjax(shopId, licenceNo) + + if (shopId) { + getDetailAjax(shopId) + } + + if (licenceNo && type && type == 'editor') { + formType.value = 'editor' } - const type = route.query.type if (type && type == 'check') { formType.value = 'check' } diff --git a/src/views/shop/list/components/detailModal.vue b/src/views/shop/list/components/detailModal.vue index 92bc3f2..222e555 100644 --- a/src/views/shop/list/components/detailModal.vue +++ b/src/views/shop/list/components/detailModal.vue @@ -11,7 +11,7 @@ - diff --git a/src/views/shop/list/components/payStatusCard.vue b/src/views/shop/list/components/payStatusCard.vue index a98c93c..6c43596 100644 --- a/src/views/shop/list/components/payStatusCard.vue +++ b/src/views/shop/list/components/payStatusCard.vue @@ -1,6 +1,12 @@