diff --git a/src/api/business/schedule/interchangeList.ts b/src/api/business/schedule/interchangeList.ts index b21f20d..68eb8a8 100644 --- a/src/api/business/schedule/interchangeList.ts +++ b/src/api/business/schedule/interchangeList.ts @@ -35,7 +35,7 @@ // 根据样品id催办 export function interchangeListUrge(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { return request({ - url: '/device/dispatch/rushDoProcess', + url: '/device/dispatch/remindWorker', method: 'post', data, }) diff --git a/src/api/business/schedule/interchangeList.ts b/src/api/business/schedule/interchangeList.ts index b21f20d..68eb8a8 100644 --- a/src/api/business/schedule/interchangeList.ts +++ b/src/api/business/schedule/interchangeList.ts @@ -35,7 +35,7 @@ // 根据样品id催办 export function interchangeListUrge(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { return request({ - url: '/device/dispatch/rushDoProcess', + url: '/device/dispatch/remindWorker', method: 'post', data, }) diff --git a/src/api/customer/sampleList.ts b/src/api/customer/sampleList.ts index fdcca51..e82a99e 100644 --- a/src/api/customer/sampleList.ts +++ b/src/api/customer/sampleList.ts @@ -69,9 +69,9 @@ } // 查询检定证书 -export function getCertification(data: { id: string }) { +export function getCertification(data: { customerId?: string; sampleId?: string }) { return request({ - url: `${prefix}/sample/certificationBySampleId`, + url: '/business/certificateReport/certificateRecordsById', method: 'post', data, }) diff --git a/src/api/business/schedule/interchangeList.ts b/src/api/business/schedule/interchangeList.ts index b21f20d..68eb8a8 100644 --- a/src/api/business/schedule/interchangeList.ts +++ b/src/api/business/schedule/interchangeList.ts @@ -35,7 +35,7 @@ // 根据样品id催办 export function interchangeListUrge(data: { orderId: string | number; reason: string; sampleId: string | number; status: string }) { return request({ - url: '/device/dispatch/rushDoProcess', + url: '/device/dispatch/remindWorker', method: 'post', data, }) diff --git a/src/api/customer/sampleList.ts b/src/api/customer/sampleList.ts index fdcca51..e82a99e 100644 --- a/src/api/customer/sampleList.ts +++ b/src/api/customer/sampleList.ts @@ -69,9 +69,9 @@ } // 查询检定证书 -export function getCertification(data: { id: string }) { +export function getCertification(data: { customerId?: string; sampleId?: string }) { return request({ - url: `${prefix}/sample/certificationBySampleId`, + url: '/business/certificateReport/certificateRecordsById', method: 'post', data, }) diff --git a/src/views/business/lab/reportOnCredentials/reportOnCredentialsApproval.vue b/src/views/business/lab/reportOnCredentials/reportOnCredentialsApproval.vue index 98a2567..3ecc313 100644 --- a/src/views/business/lab/reportOnCredentials/reportOnCredentialsApproval.vue +++ b/src/views/business/lab/reportOnCredentials/reportOnCredentialsApproval.vue @@ -75,7 +75,6 @@ } }) } -getDict() const $route = useRoute() // 路由参数 @@ -85,10 +84,19 @@ currentTab.value = currentMenu?.name } } + +// 挂载的时候找到之前存过的审批类型 +onMounted(async () => { + await getDict() + currentTab.value = window.sessionStorage.getItem('reportOnCredentialsApproval') || '全部' + currentApprovalStatus.value = approvalStatusReserveMap.value[currentTab.value] +}) + watch(currentTab, (newValue) => { currentApprovalStatus.value = approvalStatusReserveMap.value[newValue] + window.sessionStorage.setItem('reportOnCredentialsApproval', newValue) currentButtons.value = buttonsSet[newValue] -}, { deep: true, immediate: true }) +}, { deep: true })