diff --git a/src/api/customer/customer.ts b/src/api/customer/customer.ts index 724da6e..3a258c8 100644 --- a/src/api/customer/customer.ts +++ b/src/api/customer/customer.ts @@ -86,14 +86,14 @@ } // 根据客户查检定记录 -export function getOrderByCustomer(data: { id: string; offset: number; limit: number }) { +export function getOrderByCustomer(data: { sampleId: string; customeId: string }) { return request({ - url: `/customer/contractRecords?offset=${data.offset}&limit=${data.limit}`, + url: '/customer/fake/interface', method: 'post', data, }) } -// 根据客户查检定记录 +// export function getCertificationByCustomer(data: { id: string; offset: number; limit: number }) { return request({ url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, diff --git a/src/api/customer/customer.ts b/src/api/customer/customer.ts index 724da6e..3a258c8 100644 --- a/src/api/customer/customer.ts +++ b/src/api/customer/customer.ts @@ -86,14 +86,14 @@ } // 根据客户查检定记录 -export function getOrderByCustomer(data: { id: string; offset: number; limit: number }) { +export function getOrderByCustomer(data: { sampleId: string; customeId: string }) { return request({ - url: `/customer/contractRecords?offset=${data.offset}&limit=${data.limit}`, + url: '/customer/fake/interface', method: 'post', data, }) } -// 根据客户查检定记录 +// export function getCertificationByCustomer(data: { id: string; offset: number; limit: number }) { return request({ url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, diff --git a/src/api/device/stateManage.ts b/src/api/device/stateManage.ts index 7f9431b..8bce535 100644 --- a/src/api/device/stateManage.ts +++ b/src/api/device/stateManage.ts @@ -1,6 +1,6 @@ // 状态管理相关接口api import request from '../index' -import type { ISearchQuery, Iapprove } from '@/views/device/stateManage/components/status-interface' +import type { ISearchQuery } from '@/views/device/stateManage/components/status-interface' // 设备申请列表 export function getStatusList(data: ISearchQuery) { @@ -29,7 +29,7 @@ } // 状态管理删除 -export function deleteStatus(data: Iapprove) { +export function deleteStatus(data: { id: string | number }) { return request({ url: '/meter/stateManage/deleteStateManageList', method: 'post', @@ -37,7 +37,7 @@ }) } // 状态管理取消 -export function cancelStatus(data: Iapprove) { +export function cancelStatus(data: { processInstanceId: string }) { return request({ url: '/approval/operate/revoke', method: 'post', @@ -45,7 +45,7 @@ }) } // 状态管理提交 -export function submitStatus(data: Iapprove) { +export function submitStatus(data: { id: string | number; formId: string }) { return request({ url: '/meter/stateManage/submitStandardEquipmentApply', method: 'post', diff --git a/src/api/customer/customer.ts b/src/api/customer/customer.ts index 724da6e..3a258c8 100644 --- a/src/api/customer/customer.ts +++ b/src/api/customer/customer.ts @@ -86,14 +86,14 @@ } // 根据客户查检定记录 -export function getOrderByCustomer(data: { id: string; offset: number; limit: number }) { +export function getOrderByCustomer(data: { sampleId: string; customeId: string }) { return request({ - url: `/customer/contractRecords?offset=${data.offset}&limit=${data.limit}`, + url: '/customer/fake/interface', method: 'post', data, }) } -// 根据客户查检定记录 +// export function getCertificationByCustomer(data: { id: string; offset: number; limit: number }) { return request({ url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, diff --git a/src/api/device/stateManage.ts b/src/api/device/stateManage.ts index 7f9431b..8bce535 100644 --- a/src/api/device/stateManage.ts +++ b/src/api/device/stateManage.ts @@ -1,6 +1,6 @@ // 状态管理相关接口api import request from '../index' -import type { ISearchQuery, Iapprove } from '@/views/device/stateManage/components/status-interface' +import type { ISearchQuery } from '@/views/device/stateManage/components/status-interface' // 设备申请列表 export function getStatusList(data: ISearchQuery) { @@ -29,7 +29,7 @@ } // 状态管理删除 -export function deleteStatus(data: Iapprove) { +export function deleteStatus(data: { id: string | number }) { return request({ url: '/meter/stateManage/deleteStateManageList', method: 'post', @@ -37,7 +37,7 @@ }) } // 状态管理取消 -export function cancelStatus(data: Iapprove) { +export function cancelStatus(data: { processInstanceId: string }) { return request({ url: '/approval/operate/revoke', method: 'post', @@ -45,7 +45,7 @@ }) } // 状态管理提交 -export function submitStatus(data: Iapprove) { +export function submitStatus(data: { id: string | number; formId: string }) { return request({ url: '/meter/stateManage/submitStandardEquipmentApply', method: 'post', diff --git a/src/views/business/lab/deptMeasure/deptMeasureList.vue b/src/views/business/lab/deptMeasure/deptMeasureList.vue index 89fd82d..eb4b260 100644 --- a/src/views/business/lab/deptMeasure/deptMeasureList.vue +++ b/src/views/business/lab/deptMeasure/deptMeasureList.vue @@ -43,15 +43,18 @@ getDictByCode('sampleBelong').then((response) => { sampleBelongList.value = response.data }) - // 获取菜单字典 - getDictByCode('measureStatus').then((response) => { - response.data.forEach((item: dictType) => { - if (['待检测', '检测中', '检测完成'].includes(item.name)) { - menu.value.push({ - name: item.name, - id: `${item.value}`, - }) - } + return new Promise((resolve, reject) => { + // 获取菜单字典 + getDictByCode('measureStatus').then((response) => { + response.data.forEach((item: dictType) => { + if (['待检测', '检测中', '检测完成'].includes(item.name)) { + menu.value.push({ + name: item.name, + id: `${item.value}`, + }) + } + }) + resolve(menu.value) }) }) } diff --git a/src/api/customer/customer.ts b/src/api/customer/customer.ts index 724da6e..3a258c8 100644 --- a/src/api/customer/customer.ts +++ b/src/api/customer/customer.ts @@ -86,14 +86,14 @@ } // 根据客户查检定记录 -export function getOrderByCustomer(data: { id: string; offset: number; limit: number }) { +export function getOrderByCustomer(data: { sampleId: string; customeId: string }) { return request({ - url: `/customer/contractRecords?offset=${data.offset}&limit=${data.limit}`, + url: '/customer/fake/interface', method: 'post', data, }) } -// 根据客户查检定记录 +// export function getCertificationByCustomer(data: { id: string; offset: number; limit: number }) { return request({ url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, diff --git a/src/api/device/stateManage.ts b/src/api/device/stateManage.ts index 7f9431b..8bce535 100644 --- a/src/api/device/stateManage.ts +++ b/src/api/device/stateManage.ts @@ -1,6 +1,6 @@ // 状态管理相关接口api import request from '../index' -import type { ISearchQuery, Iapprove } from '@/views/device/stateManage/components/status-interface' +import type { ISearchQuery } from '@/views/device/stateManage/components/status-interface' // 设备申请列表 export function getStatusList(data: ISearchQuery) { @@ -29,7 +29,7 @@ } // 状态管理删除 -export function deleteStatus(data: Iapprove) { +export function deleteStatus(data: { id: string | number }) { return request({ url: '/meter/stateManage/deleteStateManageList', method: 'post', @@ -37,7 +37,7 @@ }) } // 状态管理取消 -export function cancelStatus(data: Iapprove) { +export function cancelStatus(data: { processInstanceId: string }) { return request({ url: '/approval/operate/revoke', method: 'post', @@ -45,7 +45,7 @@ }) } // 状态管理提交 -export function submitStatus(data: Iapprove) { +export function submitStatus(data: { id: string | number; formId: string }) { return request({ url: '/meter/stateManage/submitStandardEquipmentApply', method: 'post', diff --git a/src/views/business/lab/deptMeasure/deptMeasureList.vue b/src/views/business/lab/deptMeasure/deptMeasureList.vue index 89fd82d..eb4b260 100644 --- a/src/views/business/lab/deptMeasure/deptMeasureList.vue +++ b/src/views/business/lab/deptMeasure/deptMeasureList.vue @@ -43,15 +43,18 @@ getDictByCode('sampleBelong').then((response) => { sampleBelongList.value = response.data }) - // 获取菜单字典 - getDictByCode('measureStatus').then((response) => { - response.data.forEach((item: dictType) => { - if (['待检测', '检测中', '检测完成'].includes(item.name)) { - menu.value.push({ - name: item.name, - id: `${item.value}`, - }) - } + return new Promise((resolve, reject) => { + // 获取菜单字典 + getDictByCode('measureStatus').then((response) => { + response.data.forEach((item: dictType) => { + if (['待检测', '检测中', '检测完成'].includes(item.name)) { + menu.value.push({ + name: item.name, + id: `${item.value}`, + }) + } + }) + resolve(menu.value) }) }) } diff --git a/src/views/business/lab/myMeasure/myMeasureList.vue b/src/views/business/lab/myMeasure/myMeasureList.vue index d5afb9d..c604d3e 100644 --- a/src/views/business/lab/myMeasure/myMeasureList.vue +++ b/src/views/business/lab/myMeasure/myMeasureList.vue @@ -41,15 +41,18 @@ getDictByCode('sampleBelong').then((response) => { sampleBelongList.value = response.data }) - // 获取菜单字典 - getDictByCode('measureStatus').then((response) => { - response.data.forEach((item: dictType) => { - if (['待检测', '检测中', '检测完成'].includes(item.name)) { - menu.value.push({ - name: item.name, - id: `${item.value}`, - }) - } + return new Promise((resolve, reject) => { + // 获取菜单字典 + getDictByCode('measureStatus').then((response) => { + response.data.forEach((item: dictType) => { + if (['待检测', '检测中', '检测完成'].includes(item.name)) { + menu.value.push({ + name: item.name, + id: `${item.value}`, + }) + resolve(menu.value) + } + }) }) }) } @@ -275,7 +278,7 @@ active.value = window.sessionStorage.getItem('myMeasureActive') as string } else { - active.value = menu.value.find(item => item.name === '待检测')!.id // 待分发 + active.value = menu.value.find(item => item.name === '待检测')!.id // 待检测 } nextTick(() => { fetchData(true) diff --git a/src/api/customer/customer.ts b/src/api/customer/customer.ts index 724da6e..3a258c8 100644 --- a/src/api/customer/customer.ts +++ b/src/api/customer/customer.ts @@ -86,14 +86,14 @@ } // 根据客户查检定记录 -export function getOrderByCustomer(data: { id: string; offset: number; limit: number }) { +export function getOrderByCustomer(data: { sampleId: string; customeId: string }) { return request({ - url: `/customer/contractRecords?offset=${data.offset}&limit=${data.limit}`, + url: '/customer/fake/interface', method: 'post', data, }) } -// 根据客户查检定记录 +// export function getCertificationByCustomer(data: { id: string; offset: number; limit: number }) { return request({ url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, diff --git a/src/api/device/stateManage.ts b/src/api/device/stateManage.ts index 7f9431b..8bce535 100644 --- a/src/api/device/stateManage.ts +++ b/src/api/device/stateManage.ts @@ -1,6 +1,6 @@ // 状态管理相关接口api import request from '../index' -import type { ISearchQuery, Iapprove } from '@/views/device/stateManage/components/status-interface' +import type { ISearchQuery } from '@/views/device/stateManage/components/status-interface' // 设备申请列表 export function getStatusList(data: ISearchQuery) { @@ -29,7 +29,7 @@ } // 状态管理删除 -export function deleteStatus(data: Iapprove) { +export function deleteStatus(data: { id: string | number }) { return request({ url: '/meter/stateManage/deleteStateManageList', method: 'post', @@ -37,7 +37,7 @@ }) } // 状态管理取消 -export function cancelStatus(data: Iapprove) { +export function cancelStatus(data: { processInstanceId: string }) { return request({ url: '/approval/operate/revoke', method: 'post', @@ -45,7 +45,7 @@ }) } // 状态管理提交 -export function submitStatus(data: Iapprove) { +export function submitStatus(data: { id: string | number; formId: string }) { return request({ url: '/meter/stateManage/submitStandardEquipmentApply', method: 'post', diff --git a/src/views/business/lab/deptMeasure/deptMeasureList.vue b/src/views/business/lab/deptMeasure/deptMeasureList.vue index 89fd82d..eb4b260 100644 --- a/src/views/business/lab/deptMeasure/deptMeasureList.vue +++ b/src/views/business/lab/deptMeasure/deptMeasureList.vue @@ -43,15 +43,18 @@ getDictByCode('sampleBelong').then((response) => { sampleBelongList.value = response.data }) - // 获取菜单字典 - getDictByCode('measureStatus').then((response) => { - response.data.forEach((item: dictType) => { - if (['待检测', '检测中', '检测完成'].includes(item.name)) { - menu.value.push({ - name: item.name, - id: `${item.value}`, - }) - } + return new Promise((resolve, reject) => { + // 获取菜单字典 + getDictByCode('measureStatus').then((response) => { + response.data.forEach((item: dictType) => { + if (['待检测', '检测中', '检测完成'].includes(item.name)) { + menu.value.push({ + name: item.name, + id: `${item.value}`, + }) + } + }) + resolve(menu.value) }) }) } diff --git a/src/views/business/lab/myMeasure/myMeasureList.vue b/src/views/business/lab/myMeasure/myMeasureList.vue index d5afb9d..c604d3e 100644 --- a/src/views/business/lab/myMeasure/myMeasureList.vue +++ b/src/views/business/lab/myMeasure/myMeasureList.vue @@ -41,15 +41,18 @@ getDictByCode('sampleBelong').then((response) => { sampleBelongList.value = response.data }) - // 获取菜单字典 - getDictByCode('measureStatus').then((response) => { - response.data.forEach((item: dictType) => { - if (['待检测', '检测中', '检测完成'].includes(item.name)) { - menu.value.push({ - name: item.name, - id: `${item.value}`, - }) - } + return new Promise((resolve, reject) => { + // 获取菜单字典 + getDictByCode('measureStatus').then((response) => { + response.data.forEach((item: dictType) => { + if (['待检测', '检测中', '检测完成'].includes(item.name)) { + menu.value.push({ + name: item.name, + id: `${item.value}`, + }) + resolve(menu.value) + } + }) }) }) } @@ -275,7 +278,7 @@ active.value = window.sessionStorage.getItem('myMeasureActive') as string } else { - active.value = menu.value.find(item => item.name === '待检测')!.id // 待分发 + active.value = menu.value.find(item => item.name === '待检测')!.id // 待检测 } nextTick(() => { fetchData(true) diff --git a/src/views/business/schedule/certPrint/cert-interface.ts b/src/views/business/schedule/certPrint/cert-interface.ts index 20ecc23..6409759 100644 --- a/src/views/business/schedule/certPrint/cert-interface.ts +++ b/src/views/business/schedule/certPrint/cert-interface.ts @@ -3,7 +3,7 @@ certificateClass: string // 证书类型 certificateNo: string // 证书编号 createUserId: number // 创建人id - printStatus: number | null + printStatus: number | null | string orderNo: string // 委托书编号 customerName: string // 委托方名称 sampleNo: string // 样品编号 diff --git a/src/api/customer/customer.ts b/src/api/customer/customer.ts index 724da6e..3a258c8 100644 --- a/src/api/customer/customer.ts +++ b/src/api/customer/customer.ts @@ -86,14 +86,14 @@ } // 根据客户查检定记录 -export function getOrderByCustomer(data: { id: string; offset: number; limit: number }) { +export function getOrderByCustomer(data: { sampleId: string; customeId: string }) { return request({ - url: `/customer/contractRecords?offset=${data.offset}&limit=${data.limit}`, + url: '/customer/fake/interface', method: 'post', data, }) } -// 根据客户查检定记录 +// export function getCertificationByCustomer(data: { id: string; offset: number; limit: number }) { return request({ url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, diff --git a/src/api/device/stateManage.ts b/src/api/device/stateManage.ts index 7f9431b..8bce535 100644 --- a/src/api/device/stateManage.ts +++ b/src/api/device/stateManage.ts @@ -1,6 +1,6 @@ // 状态管理相关接口api import request from '../index' -import type { ISearchQuery, Iapprove } from '@/views/device/stateManage/components/status-interface' +import type { ISearchQuery } from '@/views/device/stateManage/components/status-interface' // 设备申请列表 export function getStatusList(data: ISearchQuery) { @@ -29,7 +29,7 @@ } // 状态管理删除 -export function deleteStatus(data: Iapprove) { +export function deleteStatus(data: { id: string | number }) { return request({ url: '/meter/stateManage/deleteStateManageList', method: 'post', @@ -37,7 +37,7 @@ }) } // 状态管理取消 -export function cancelStatus(data: Iapprove) { +export function cancelStatus(data: { processInstanceId: string }) { return request({ url: '/approval/operate/revoke', method: 'post', @@ -45,7 +45,7 @@ }) } // 状态管理提交 -export function submitStatus(data: Iapprove) { +export function submitStatus(data: { id: string | number; formId: string }) { return request({ url: '/meter/stateManage/submitStandardEquipmentApply', method: 'post', diff --git a/src/views/business/lab/deptMeasure/deptMeasureList.vue b/src/views/business/lab/deptMeasure/deptMeasureList.vue index 89fd82d..eb4b260 100644 --- a/src/views/business/lab/deptMeasure/deptMeasureList.vue +++ b/src/views/business/lab/deptMeasure/deptMeasureList.vue @@ -43,15 +43,18 @@ getDictByCode('sampleBelong').then((response) => { sampleBelongList.value = response.data }) - // 获取菜单字典 - getDictByCode('measureStatus').then((response) => { - response.data.forEach((item: dictType) => { - if (['待检测', '检测中', '检测完成'].includes(item.name)) { - menu.value.push({ - name: item.name, - id: `${item.value}`, - }) - } + return new Promise((resolve, reject) => { + // 获取菜单字典 + getDictByCode('measureStatus').then((response) => { + response.data.forEach((item: dictType) => { + if (['待检测', '检测中', '检测完成'].includes(item.name)) { + menu.value.push({ + name: item.name, + id: `${item.value}`, + }) + } + }) + resolve(menu.value) }) }) } diff --git a/src/views/business/lab/myMeasure/myMeasureList.vue b/src/views/business/lab/myMeasure/myMeasureList.vue index d5afb9d..c604d3e 100644 --- a/src/views/business/lab/myMeasure/myMeasureList.vue +++ b/src/views/business/lab/myMeasure/myMeasureList.vue @@ -41,15 +41,18 @@ getDictByCode('sampleBelong').then((response) => { sampleBelongList.value = response.data }) - // 获取菜单字典 - getDictByCode('measureStatus').then((response) => { - response.data.forEach((item: dictType) => { - if (['待检测', '检测中', '检测完成'].includes(item.name)) { - menu.value.push({ - name: item.name, - id: `${item.value}`, - }) - } + return new Promise((resolve, reject) => { + // 获取菜单字典 + getDictByCode('measureStatus').then((response) => { + response.data.forEach((item: dictType) => { + if (['待检测', '检测中', '检测完成'].includes(item.name)) { + menu.value.push({ + name: item.name, + id: `${item.value}`, + }) + resolve(menu.value) + } + }) }) }) } @@ -275,7 +278,7 @@ active.value = window.sessionStorage.getItem('myMeasureActive') as string } else { - active.value = menu.value.find(item => item.name === '待检测')!.id // 待分发 + active.value = menu.value.find(item => item.name === '待检测')!.id // 待检测 } nextTick(() => { fetchData(true) diff --git a/src/views/business/schedule/certPrint/cert-interface.ts b/src/views/business/schedule/certPrint/cert-interface.ts index 20ecc23..6409759 100644 --- a/src/views/business/schedule/certPrint/cert-interface.ts +++ b/src/views/business/schedule/certPrint/cert-interface.ts @@ -3,7 +3,7 @@ certificateClass: string // 证书类型 certificateNo: string // 证书编号 createUserId: number // 创建人id - printStatus: number | null + printStatus: number | null | string orderNo: string // 委托书编号 customerName: string // 委托方名称 sampleNo: string // 样品编号 diff --git a/src/views/business/schedule/certPrint/certList.vue b/src/views/business/schedule/certPrint/certList.vue index d69d275..6b6f026 100644 --- a/src/views/business/schedule/certPrint/certList.vue +++ b/src/views/business/schedule/certPrint/certList.vue @@ -25,7 +25,7 @@ const listQuery = ref({ certificateNo: '', // 证书编号 createUserId: 0, - printStatus: 0, // 可打印(证书可打印传0,全部传null) + printStatus: '', // 可打印(证书可打印传0,全部传null) orderNo: '', // 委托书编号 customerName: '', // 委托方名称 sampleNo: '', // 样品编号 @@ -50,21 +50,20 @@ getDictByCode('certificationClass').then((response) => { certificationClassList.value = response.data }) - getDictByCode('approvalStatus').then((response) => { - // 审批状态字典 {1:草稿箱} - // response.data.forEach((item: any) => { - // approvalStatusMap.value[`${item.value}`] = item.name - // }) - // 审批状态字典 {草稿箱: 1} - // response.data.forEach((item: any) => { - // approvalStatusReserveMap.value[item.name] = `${item.value}` - // }) - // 制作右上角的菜单 - response.data.forEach((item: dictType) => { + // 制作右上角的菜单 + // eslint-disable-next-line no-async-promise-executor + return new Promise(async (resolve, reject) => { + const data1 = await getDictByCode('printStatus').then((response) => { + return response.data + }) + const data2 = await getDictByCode('approvalStatus').then((response) => { + return response.data.filter((item: dictType) => item.name != '可打印') + }) + const _data = [...data1, ...data2] + _data.forEach((item: dictType) => { if (item.name === '可打印' || item.name === '全部' - || item.name === '待审批' || item.name === '审批中' - || item.name === '已通过' || item.name === '未通过' + || item.name === '待审批' || item.name === '已通过' || item.name === '未通过' ) { if (item.name === '可打印') { active.value = item.value @@ -82,12 +81,6 @@ } } }) - if (window.sessionStorage.getItem('certPrintActive') != null) { - active.value = window.sessionStorage.getItem('certPrintActive') as string - } - else { - active.value = menu.value.find(item => item.name === '可打印')!.id // 可打印 - } }) } @@ -117,29 +110,15 @@ // 根据过滤查询条件 function filterQuery() { - const approvalStatus = menu.value.find(item => item.name === activeTitle.value)!.id - listQuery.value.approvalStatus = approvalStatus - switch (activeTitle.value) { - case '可打印': - listQuery.value.printStatus = 0 - listQuery.value.approvalStatus = '' - break - case '全部': - listQuery.value.printStatus = 2 - listQuery.value.approvalStatus = '' - break - case '待审批': - listQuery.value.printStatus = 2 - break - case '审批中': - listQuery.value.printStatus = 2 - break - case '已通过': - listQuery.value.printStatus = 2 - break - case '未通过': - listQuery.value.printStatus = 2 - break + const StatuFlag = activeTitle.value == '可打印' + const value = menu.value.find(item => item.name === activeTitle.value)!.id + if (StatuFlag) { + listQuery.value.printStatus = value + listQuery.value.approvalStatus = '' + } + else { + listQuery.value.printStatus = '' + listQuery.value.approvalStatus = value == '0' ? 'null' : value } } @@ -170,18 +149,17 @@ } // 点击重置 const clearList = () => { - const approvalStatus = menu.value.find(item => item.name === activeTitle.value)!.id listQuery.value = { certificateNo: '', // 证书编号 createUserId: 0, - printStatus: 0, // 可打印(证书可打印传0,全部传null) + printStatus: '', // 可打印(证书可打印传0,全部传null) orderNo: '', // 委托书编号 customerName: '', // 委托方名称 sampleNo: '', // 样品编号 sampleName: '', // 样品名称 certificateClass: '', // 证书类型 printNum: '', // 打印次数 -未打印和全部用 - approvalStatus: active.value, // 审批状态-审批查询用 + approvalStatus: '', // 审批状态-审批查询用 orderId: '', // 委托书id reason: '', // 操作原因 sampleId: '', // 样品id @@ -190,10 +168,7 @@ offset: 1, limit: 20, } - listQuery.value.approvalStatus = approvalStatus - if (activeTitle.value === '可打印' || activeTitle.value === '全部') { - listQuery.value.approvalStatus = '' - } + filterQuery() fetchData(true) } // 点击详情 @@ -206,9 +181,11 @@ const handleDistribute = (row: ICerPrintList, status: string) => { if (status === 'agree') { approvalDialogPart.value.initDialog('agree', row.taskId) + fetchData(true) } else { approvalDialogPart.value.initDialog('refuse', row.taskId, row.id) + fetchData(true) } } @@ -253,7 +230,6 @@ // 打印 const bindLabel = (row: ICerPrintList) => { - console.log(row) // 判断状态第一次可以直接打印,之后的打印需要审批 if (row.printNum == 0) { ElMessageBox.confirm( @@ -332,9 +308,13 @@ onMounted(async () => { await getDict() // 获取字典-审批状态 - setTimeout(() => { - fetchData(true) - }, 500) + if (window.sessionStorage.getItem('certPrintActive') != null) { + active.value = window.sessionStorage.getItem('certPrintActive') as string + } + else { + active.value = menu.value.find(item => item.name === '可打印')!.id // 可打印 + } + fetchData(true) }) diff --git a/src/api/customer/customer.ts b/src/api/customer/customer.ts index 724da6e..3a258c8 100644 --- a/src/api/customer/customer.ts +++ b/src/api/customer/customer.ts @@ -86,14 +86,14 @@ } // 根据客户查检定记录 -export function getOrderByCustomer(data: { id: string; offset: number; limit: number }) { +export function getOrderByCustomer(data: { sampleId: string; customeId: string }) { return request({ - url: `/customer/contractRecords?offset=${data.offset}&limit=${data.limit}`, + url: '/customer/fake/interface', method: 'post', data, }) } -// 根据客户查检定记录 +// export function getCertificationByCustomer(data: { id: string; offset: number; limit: number }) { return request({ url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, diff --git a/src/api/device/stateManage.ts b/src/api/device/stateManage.ts index 7f9431b..8bce535 100644 --- a/src/api/device/stateManage.ts +++ b/src/api/device/stateManage.ts @@ -1,6 +1,6 @@ // 状态管理相关接口api import request from '../index' -import type { ISearchQuery, Iapprove } from '@/views/device/stateManage/components/status-interface' +import type { ISearchQuery } from '@/views/device/stateManage/components/status-interface' // 设备申请列表 export function getStatusList(data: ISearchQuery) { @@ -29,7 +29,7 @@ } // 状态管理删除 -export function deleteStatus(data: Iapprove) { +export function deleteStatus(data: { id: string | number }) { return request({ url: '/meter/stateManage/deleteStateManageList', method: 'post', @@ -37,7 +37,7 @@ }) } // 状态管理取消 -export function cancelStatus(data: Iapprove) { +export function cancelStatus(data: { processInstanceId: string }) { return request({ url: '/approval/operate/revoke', method: 'post', @@ -45,7 +45,7 @@ }) } // 状态管理提交 -export function submitStatus(data: Iapprove) { +export function submitStatus(data: { id: string | number; formId: string }) { return request({ url: '/meter/stateManage/submitStandardEquipmentApply', method: 'post', diff --git a/src/views/business/lab/deptMeasure/deptMeasureList.vue b/src/views/business/lab/deptMeasure/deptMeasureList.vue index 89fd82d..eb4b260 100644 --- a/src/views/business/lab/deptMeasure/deptMeasureList.vue +++ b/src/views/business/lab/deptMeasure/deptMeasureList.vue @@ -43,15 +43,18 @@ getDictByCode('sampleBelong').then((response) => { sampleBelongList.value = response.data }) - // 获取菜单字典 - getDictByCode('measureStatus').then((response) => { - response.data.forEach((item: dictType) => { - if (['待检测', '检测中', '检测完成'].includes(item.name)) { - menu.value.push({ - name: item.name, - id: `${item.value}`, - }) - } + return new Promise((resolve, reject) => { + // 获取菜单字典 + getDictByCode('measureStatus').then((response) => { + response.data.forEach((item: dictType) => { + if (['待检测', '检测中', '检测完成'].includes(item.name)) { + menu.value.push({ + name: item.name, + id: `${item.value}`, + }) + } + }) + resolve(menu.value) }) }) } diff --git a/src/views/business/lab/myMeasure/myMeasureList.vue b/src/views/business/lab/myMeasure/myMeasureList.vue index d5afb9d..c604d3e 100644 --- a/src/views/business/lab/myMeasure/myMeasureList.vue +++ b/src/views/business/lab/myMeasure/myMeasureList.vue @@ -41,15 +41,18 @@ getDictByCode('sampleBelong').then((response) => { sampleBelongList.value = response.data }) - // 获取菜单字典 - getDictByCode('measureStatus').then((response) => { - response.data.forEach((item: dictType) => { - if (['待检测', '检测中', '检测完成'].includes(item.name)) { - menu.value.push({ - name: item.name, - id: `${item.value}`, - }) - } + return new Promise((resolve, reject) => { + // 获取菜单字典 + getDictByCode('measureStatus').then((response) => { + response.data.forEach((item: dictType) => { + if (['待检测', '检测中', '检测完成'].includes(item.name)) { + menu.value.push({ + name: item.name, + id: `${item.value}`, + }) + resolve(menu.value) + } + }) }) }) } @@ -275,7 +278,7 @@ active.value = window.sessionStorage.getItem('myMeasureActive') as string } else { - active.value = menu.value.find(item => item.name === '待检测')!.id // 待分发 + active.value = menu.value.find(item => item.name === '待检测')!.id // 待检测 } nextTick(() => { fetchData(true) diff --git a/src/views/business/schedule/certPrint/cert-interface.ts b/src/views/business/schedule/certPrint/cert-interface.ts index 20ecc23..6409759 100644 --- a/src/views/business/schedule/certPrint/cert-interface.ts +++ b/src/views/business/schedule/certPrint/cert-interface.ts @@ -3,7 +3,7 @@ certificateClass: string // 证书类型 certificateNo: string // 证书编号 createUserId: number // 创建人id - printStatus: number | null + printStatus: number | null | string orderNo: string // 委托书编号 customerName: string // 委托方名称 sampleNo: string // 样品编号 diff --git a/src/views/business/schedule/certPrint/certList.vue b/src/views/business/schedule/certPrint/certList.vue index d69d275..6b6f026 100644 --- a/src/views/business/schedule/certPrint/certList.vue +++ b/src/views/business/schedule/certPrint/certList.vue @@ -25,7 +25,7 @@ const listQuery = ref({ certificateNo: '', // 证书编号 createUserId: 0, - printStatus: 0, // 可打印(证书可打印传0,全部传null) + printStatus: '', // 可打印(证书可打印传0,全部传null) orderNo: '', // 委托书编号 customerName: '', // 委托方名称 sampleNo: '', // 样品编号 @@ -50,21 +50,20 @@ getDictByCode('certificationClass').then((response) => { certificationClassList.value = response.data }) - getDictByCode('approvalStatus').then((response) => { - // 审批状态字典 {1:草稿箱} - // response.data.forEach((item: any) => { - // approvalStatusMap.value[`${item.value}`] = item.name - // }) - // 审批状态字典 {草稿箱: 1} - // response.data.forEach((item: any) => { - // approvalStatusReserveMap.value[item.name] = `${item.value}` - // }) - // 制作右上角的菜单 - response.data.forEach((item: dictType) => { + // 制作右上角的菜单 + // eslint-disable-next-line no-async-promise-executor + return new Promise(async (resolve, reject) => { + const data1 = await getDictByCode('printStatus').then((response) => { + return response.data + }) + const data2 = await getDictByCode('approvalStatus').then((response) => { + return response.data.filter((item: dictType) => item.name != '可打印') + }) + const _data = [...data1, ...data2] + _data.forEach((item: dictType) => { if (item.name === '可打印' || item.name === '全部' - || item.name === '待审批' || item.name === '审批中' - || item.name === '已通过' || item.name === '未通过' + || item.name === '待审批' || item.name === '已通过' || item.name === '未通过' ) { if (item.name === '可打印') { active.value = item.value @@ -82,12 +81,6 @@ } } }) - if (window.sessionStorage.getItem('certPrintActive') != null) { - active.value = window.sessionStorage.getItem('certPrintActive') as string - } - else { - active.value = menu.value.find(item => item.name === '可打印')!.id // 可打印 - } }) } @@ -117,29 +110,15 @@ // 根据过滤查询条件 function filterQuery() { - const approvalStatus = menu.value.find(item => item.name === activeTitle.value)!.id - listQuery.value.approvalStatus = approvalStatus - switch (activeTitle.value) { - case '可打印': - listQuery.value.printStatus = 0 - listQuery.value.approvalStatus = '' - break - case '全部': - listQuery.value.printStatus = 2 - listQuery.value.approvalStatus = '' - break - case '待审批': - listQuery.value.printStatus = 2 - break - case '审批中': - listQuery.value.printStatus = 2 - break - case '已通过': - listQuery.value.printStatus = 2 - break - case '未通过': - listQuery.value.printStatus = 2 - break + const StatuFlag = activeTitle.value == '可打印' + const value = menu.value.find(item => item.name === activeTitle.value)!.id + if (StatuFlag) { + listQuery.value.printStatus = value + listQuery.value.approvalStatus = '' + } + else { + listQuery.value.printStatus = '' + listQuery.value.approvalStatus = value == '0' ? 'null' : value } } @@ -170,18 +149,17 @@ } // 点击重置 const clearList = () => { - const approvalStatus = menu.value.find(item => item.name === activeTitle.value)!.id listQuery.value = { certificateNo: '', // 证书编号 createUserId: 0, - printStatus: 0, // 可打印(证书可打印传0,全部传null) + printStatus: '', // 可打印(证书可打印传0,全部传null) orderNo: '', // 委托书编号 customerName: '', // 委托方名称 sampleNo: '', // 样品编号 sampleName: '', // 样品名称 certificateClass: '', // 证书类型 printNum: '', // 打印次数 -未打印和全部用 - approvalStatus: active.value, // 审批状态-审批查询用 + approvalStatus: '', // 审批状态-审批查询用 orderId: '', // 委托书id reason: '', // 操作原因 sampleId: '', // 样品id @@ -190,10 +168,7 @@ offset: 1, limit: 20, } - listQuery.value.approvalStatus = approvalStatus - if (activeTitle.value === '可打印' || activeTitle.value === '全部') { - listQuery.value.approvalStatus = '' - } + filterQuery() fetchData(true) } // 点击详情 @@ -206,9 +181,11 @@ const handleDistribute = (row: ICerPrintList, status: string) => { if (status === 'agree') { approvalDialogPart.value.initDialog('agree', row.taskId) + fetchData(true) } else { approvalDialogPart.value.initDialog('refuse', row.taskId, row.id) + fetchData(true) } } @@ -253,7 +230,6 @@ // 打印 const bindLabel = (row: ICerPrintList) => { - console.log(row) // 判断状态第一次可以直接打印,之后的打印需要审批 if (row.printNum == 0) { ElMessageBox.confirm( @@ -332,9 +308,13 @@ onMounted(async () => { await getDict() // 获取字典-审批状态 - setTimeout(() => { - fetchData(true) - }, 500) + if (window.sessionStorage.getItem('certPrintActive') != null) { + active.value = window.sessionStorage.getItem('certPrintActive') as string + } + else { + active.value = menu.value.find(item => item.name === '可打印')!.id // 可打印 + } + fetchData(true) }) diff --git a/src/views/business/schedule/task/components/distributeDialog.vue b/src/views/business/schedule/task/components/distributeDialog.vue index 74b9dad..6474dce 100644 --- a/src/views/business/schedule/task/components/distributeDialog.vue +++ b/src/views/business/schedule/task/components/distributeDialog.vue @@ -2,7 +2,7 @@ import processConfig from './processConfig.vue' import { getDictByCode } from '@/api/system/dict' import type { dictType } from '@/global' -import { getTaskDetail } from '@/api/business/schedule/task' +import { getTaskDetail, init } from '@/api/business/schedule/task' // 任务分发弹窗 // 自定义方法:close关闭弹窗 @@ -31,6 +31,13 @@ measureSendBackList: [], }) +// 分发接口初始化 +const getInfoNext = (measureContent: string) => { + init({ measureContent, orderId: orderId.value, sampleId: sampleId.value }).then((res) => { + console.log(res) + }) +} + // 获取分发详情 const getInfo = () => { // 获取任务详情 @@ -41,8 +48,10 @@ sampleDetail.value.certifications = res.data.certifications sampleDetail.value.measureProcessList = res.data.measureProcessList sampleDetail.value.measureSendBackList = res.data.measureSendBackList + getInfoNext(res.data.measureContent) }) } + // 初始化弹窗 const initDialog = (orderid: string, sampleid: string) => { dialogVisible.value = true diff --git a/src/api/customer/customer.ts b/src/api/customer/customer.ts index 724da6e..3a258c8 100644 --- a/src/api/customer/customer.ts +++ b/src/api/customer/customer.ts @@ -86,14 +86,14 @@ } // 根据客户查检定记录 -export function getOrderByCustomer(data: { id: string; offset: number; limit: number }) { +export function getOrderByCustomer(data: { sampleId: string; customeId: string }) { return request({ - url: `/customer/contractRecords?offset=${data.offset}&limit=${data.limit}`, + url: '/customer/fake/interface', method: 'post', data, }) } -// 根据客户查检定记录 +// export function getCertificationByCustomer(data: { id: string; offset: number; limit: number }) { return request({ url: `/customer/certificateRecords?offset=${data.offset}&limit=${data.limit}`, diff --git a/src/api/device/stateManage.ts b/src/api/device/stateManage.ts index 7f9431b..8bce535 100644 --- a/src/api/device/stateManage.ts +++ b/src/api/device/stateManage.ts @@ -1,6 +1,6 @@ // 状态管理相关接口api import request from '../index' -import type { ISearchQuery, Iapprove } from '@/views/device/stateManage/components/status-interface' +import type { ISearchQuery } from '@/views/device/stateManage/components/status-interface' // 设备申请列表 export function getStatusList(data: ISearchQuery) { @@ -29,7 +29,7 @@ } // 状态管理删除 -export function deleteStatus(data: Iapprove) { +export function deleteStatus(data: { id: string | number }) { return request({ url: '/meter/stateManage/deleteStateManageList', method: 'post', @@ -37,7 +37,7 @@ }) } // 状态管理取消 -export function cancelStatus(data: Iapprove) { +export function cancelStatus(data: { processInstanceId: string }) { return request({ url: '/approval/operate/revoke', method: 'post', @@ -45,7 +45,7 @@ }) } // 状态管理提交 -export function submitStatus(data: Iapprove) { +export function submitStatus(data: { id: string | number; formId: string }) { return request({ url: '/meter/stateManage/submitStandardEquipmentApply', method: 'post', diff --git a/src/views/business/lab/deptMeasure/deptMeasureList.vue b/src/views/business/lab/deptMeasure/deptMeasureList.vue index 89fd82d..eb4b260 100644 --- a/src/views/business/lab/deptMeasure/deptMeasureList.vue +++ b/src/views/business/lab/deptMeasure/deptMeasureList.vue @@ -43,15 +43,18 @@ getDictByCode('sampleBelong').then((response) => { sampleBelongList.value = response.data }) - // 获取菜单字典 - getDictByCode('measureStatus').then((response) => { - response.data.forEach((item: dictType) => { - if (['待检测', '检测中', '检测完成'].includes(item.name)) { - menu.value.push({ - name: item.name, - id: `${item.value}`, - }) - } + return new Promise((resolve, reject) => { + // 获取菜单字典 + getDictByCode('measureStatus').then((response) => { + response.data.forEach((item: dictType) => { + if (['待检测', '检测中', '检测完成'].includes(item.name)) { + menu.value.push({ + name: item.name, + id: `${item.value}`, + }) + } + }) + resolve(menu.value) }) }) } diff --git a/src/views/business/lab/myMeasure/myMeasureList.vue b/src/views/business/lab/myMeasure/myMeasureList.vue index d5afb9d..c604d3e 100644 --- a/src/views/business/lab/myMeasure/myMeasureList.vue +++ b/src/views/business/lab/myMeasure/myMeasureList.vue @@ -41,15 +41,18 @@ getDictByCode('sampleBelong').then((response) => { sampleBelongList.value = response.data }) - // 获取菜单字典 - getDictByCode('measureStatus').then((response) => { - response.data.forEach((item: dictType) => { - if (['待检测', '检测中', '检测完成'].includes(item.name)) { - menu.value.push({ - name: item.name, - id: `${item.value}`, - }) - } + return new Promise((resolve, reject) => { + // 获取菜单字典 + getDictByCode('measureStatus').then((response) => { + response.data.forEach((item: dictType) => { + if (['待检测', '检测中', '检测完成'].includes(item.name)) { + menu.value.push({ + name: item.name, + id: `${item.value}`, + }) + resolve(menu.value) + } + }) }) }) } @@ -275,7 +278,7 @@ active.value = window.sessionStorage.getItem('myMeasureActive') as string } else { - active.value = menu.value.find(item => item.name === '待检测')!.id // 待分发 + active.value = menu.value.find(item => item.name === '待检测')!.id // 待检测 } nextTick(() => { fetchData(true) diff --git a/src/views/business/schedule/certPrint/cert-interface.ts b/src/views/business/schedule/certPrint/cert-interface.ts index 20ecc23..6409759 100644 --- a/src/views/business/schedule/certPrint/cert-interface.ts +++ b/src/views/business/schedule/certPrint/cert-interface.ts @@ -3,7 +3,7 @@ certificateClass: string // 证书类型 certificateNo: string // 证书编号 createUserId: number // 创建人id - printStatus: number | null + printStatus: number | null | string orderNo: string // 委托书编号 customerName: string // 委托方名称 sampleNo: string // 样品编号 diff --git a/src/views/business/schedule/certPrint/certList.vue b/src/views/business/schedule/certPrint/certList.vue index d69d275..6b6f026 100644 --- a/src/views/business/schedule/certPrint/certList.vue +++ b/src/views/business/schedule/certPrint/certList.vue @@ -25,7 +25,7 @@ const listQuery = ref({ certificateNo: '', // 证书编号 createUserId: 0, - printStatus: 0, // 可打印(证书可打印传0,全部传null) + printStatus: '', // 可打印(证书可打印传0,全部传null) orderNo: '', // 委托书编号 customerName: '', // 委托方名称 sampleNo: '', // 样品编号 @@ -50,21 +50,20 @@ getDictByCode('certificationClass').then((response) => { certificationClassList.value = response.data }) - getDictByCode('approvalStatus').then((response) => { - // 审批状态字典 {1:草稿箱} - // response.data.forEach((item: any) => { - // approvalStatusMap.value[`${item.value}`] = item.name - // }) - // 审批状态字典 {草稿箱: 1} - // response.data.forEach((item: any) => { - // approvalStatusReserveMap.value[item.name] = `${item.value}` - // }) - // 制作右上角的菜单 - response.data.forEach((item: dictType) => { + // 制作右上角的菜单 + // eslint-disable-next-line no-async-promise-executor + return new Promise(async (resolve, reject) => { + const data1 = await getDictByCode('printStatus').then((response) => { + return response.data + }) + const data2 = await getDictByCode('approvalStatus').then((response) => { + return response.data.filter((item: dictType) => item.name != '可打印') + }) + const _data = [...data1, ...data2] + _data.forEach((item: dictType) => { if (item.name === '可打印' || item.name === '全部' - || item.name === '待审批' || item.name === '审批中' - || item.name === '已通过' || item.name === '未通过' + || item.name === '待审批' || item.name === '已通过' || item.name === '未通过' ) { if (item.name === '可打印') { active.value = item.value @@ -82,12 +81,6 @@ } } }) - if (window.sessionStorage.getItem('certPrintActive') != null) { - active.value = window.sessionStorage.getItem('certPrintActive') as string - } - else { - active.value = menu.value.find(item => item.name === '可打印')!.id // 可打印 - } }) } @@ -117,29 +110,15 @@ // 根据过滤查询条件 function filterQuery() { - const approvalStatus = menu.value.find(item => item.name === activeTitle.value)!.id - listQuery.value.approvalStatus = approvalStatus - switch (activeTitle.value) { - case '可打印': - listQuery.value.printStatus = 0 - listQuery.value.approvalStatus = '' - break - case '全部': - listQuery.value.printStatus = 2 - listQuery.value.approvalStatus = '' - break - case '待审批': - listQuery.value.printStatus = 2 - break - case '审批中': - listQuery.value.printStatus = 2 - break - case '已通过': - listQuery.value.printStatus = 2 - break - case '未通过': - listQuery.value.printStatus = 2 - break + const StatuFlag = activeTitle.value == '可打印' + const value = menu.value.find(item => item.name === activeTitle.value)!.id + if (StatuFlag) { + listQuery.value.printStatus = value + listQuery.value.approvalStatus = '' + } + else { + listQuery.value.printStatus = '' + listQuery.value.approvalStatus = value == '0' ? 'null' : value } } @@ -170,18 +149,17 @@ } // 点击重置 const clearList = () => { - const approvalStatus = menu.value.find(item => item.name === activeTitle.value)!.id listQuery.value = { certificateNo: '', // 证书编号 createUserId: 0, - printStatus: 0, // 可打印(证书可打印传0,全部传null) + printStatus: '', // 可打印(证书可打印传0,全部传null) orderNo: '', // 委托书编号 customerName: '', // 委托方名称 sampleNo: '', // 样品编号 sampleName: '', // 样品名称 certificateClass: '', // 证书类型 printNum: '', // 打印次数 -未打印和全部用 - approvalStatus: active.value, // 审批状态-审批查询用 + approvalStatus: '', // 审批状态-审批查询用 orderId: '', // 委托书id reason: '', // 操作原因 sampleId: '', // 样品id @@ -190,10 +168,7 @@ offset: 1, limit: 20, } - listQuery.value.approvalStatus = approvalStatus - if (activeTitle.value === '可打印' || activeTitle.value === '全部') { - listQuery.value.approvalStatus = '' - } + filterQuery() fetchData(true) } // 点击详情 @@ -206,9 +181,11 @@ const handleDistribute = (row: ICerPrintList, status: string) => { if (status === 'agree') { approvalDialogPart.value.initDialog('agree', row.taskId) + fetchData(true) } else { approvalDialogPart.value.initDialog('refuse', row.taskId, row.id) + fetchData(true) } } @@ -253,7 +230,6 @@ // 打印 const bindLabel = (row: ICerPrintList) => { - console.log(row) // 判断状态第一次可以直接打印,之后的打印需要审批 if (row.printNum == 0) { ElMessageBox.confirm( @@ -332,9 +308,13 @@ onMounted(async () => { await getDict() // 获取字典-审批状态 - setTimeout(() => { - fetchData(true) - }, 500) + if (window.sessionStorage.getItem('certPrintActive') != null) { + active.value = window.sessionStorage.getItem('certPrintActive') as string + } + else { + active.value = menu.value.find(item => item.name === '可打印')!.id // 可打印 + } + fetchData(true) }) diff --git a/src/views/business/schedule/task/components/distributeDialog.vue b/src/views/business/schedule/task/components/distributeDialog.vue index 74b9dad..6474dce 100644 --- a/src/views/business/schedule/task/components/distributeDialog.vue +++ b/src/views/business/schedule/task/components/distributeDialog.vue @@ -2,7 +2,7 @@ import processConfig from './processConfig.vue' import { getDictByCode } from '@/api/system/dict' import type { dictType } from '@/global' -import { getTaskDetail } from '@/api/business/schedule/task' +import { getTaskDetail, init } from '@/api/business/schedule/task' // 任务分发弹窗 // 自定义方法:close关闭弹窗 @@ -31,6 +31,13 @@ measureSendBackList: [], }) +// 分发接口初始化 +const getInfoNext = (measureContent: string) => { + init({ measureContent, orderId: orderId.value, sampleId: sampleId.value }).then((res) => { + console.log(res) + }) +} + // 获取分发详情 const getInfo = () => { // 获取任务详情 @@ -41,8 +48,10 @@ sampleDetail.value.certifications = res.data.certifications sampleDetail.value.measureProcessList = res.data.measureProcessList sampleDetail.value.measureSendBackList = res.data.measureSendBackList + getInfoNext(res.data.measureContent) }) } + // 初始化弹窗 const initDialog = (orderid: string, sampleid: string) => { dialogVisible.value = true diff --git a/src/views/business/schedule/task/taskEdit.vue b/src/views/business/schedule/task/taskEdit.vue index c7ed51c..7c4a4b4 100644 --- a/src/views/business/schedule/task/taskEdit.vue +++ b/src/views/business/schedule/task/taskEdit.vue @@ -217,6 +217,8 @@ taskForm.value.measureContent = res.data.measureContent // 检定项目 taskForm.value.measureProcessList = res.data.measureProcessList taskForm.value.measureSendBackList = res.data.measureSendBackList + // 改用一个接口获取 + sampleForm.value = res.data }) } @@ -271,7 +273,7 @@ orderId.value = $route.query.order as string // 获取分发详情 getInfo() - getSampleInfo() + // getSampleInfo() // 取消 } } @@ -283,9 +285,9 @@ 打印 - + 关闭 @@ -548,14 +550,14 @@ -