优化进件切换进件信息

This commit is contained in:
gyq
2026-01-17 10:37:37 +08:00
parent 042dacec98
commit 92c3a45049
4 changed files with 74 additions and 30 deletions

View File

@@ -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'
}