diff --git a/src/api/resource/reviewNotice.ts b/src/api/resource/reviewNotice.ts index 68499f9..1760871 100644 --- a/src/api/resource/reviewNotice.ts +++ b/src/api/resource/reviewNotice.ts @@ -3,16 +3,61 @@ export function getReviewNoticeList(data: any) { return request({ - url: `${prefix}/reviewNotice/listPage?limit=${data.limit}&offset=${data.offset}`, + url: `${prefix}/reviewNotice/approval/listPage?limit=${data.limit}&offset=${data.offset}`, method: 'post', data, }) } -// 保存 +// 筛选复查设备列表 +export function getSampleEqptList(data: any) { + return request({ + url: `${prefix}/reviewNotice/sample/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 详情页复查设备清单 +export function detailSampleEqptList(data: any) { + return request({ + url: `${prefix}/reviewNotice/review/sample/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 保存 草稿箱 export function saveReviewNotice(data: object) { return request({ - url: `${prefix}/reviewNotice/add`, + url: `${prefix}/reviewNotice/save`, + method: 'post', + data, + }) +} + +// 编辑草稿箱 不走审批流程 +export function updateDraftNotice(data: object) { + return request({ + url: `${prefix}/reviewNotice/draftUpdate`, + method: 'post', + data, + }) +} + +// 提交 +export function sumbitNotice(data: object) { + return request({ + url: `${prefix}/reviewNotice/submit`, + method: 'post', + data, + }) +} + +// 未通过/撤回后/取消后提交 +export function failUpdateNotice(data: object) { + return request({ + url: `${prefix}/reviewNotice/failUpdate`, method: 'post', data, }) @@ -27,7 +72,7 @@ }) } -// 删除 +// 删除 - 草稿箱 export function deleteReviewNotice(data: object) { return request({ url: `${prefix}/reviewNotice/delete`, @@ -36,6 +81,15 @@ }) } +// 删除 - 已取消 +export function deleteReviewNoticeRevoked(data: object) { + return request({ + url: `${prefix}/reviewNotice/approval/delete`, + method: 'post', + data, + }) +} + export function exportFile(data: object) { return request({ url: `${prefix}/reviewNotice/exportFile`, @@ -43,3 +97,21 @@ data, }) } + +// 发起者撤回,表单状态更改为已取消 +export function revokeApproval(data: object) { + return request({ + url: `${prefix}/reviewNotice/approval/revoke`, + method: 'post', + data, + }) +} + +// 委托方名录审批-拒绝 +export function refuseApproval(data: object) { + return request({ + url: `${prefix}/reviewNotice/approval/refuse`, + method: 'post', + data, + }) +} diff --git a/src/api/resource/reviewNotice.ts b/src/api/resource/reviewNotice.ts index 68499f9..1760871 100644 --- a/src/api/resource/reviewNotice.ts +++ b/src/api/resource/reviewNotice.ts @@ -3,16 +3,61 @@ export function getReviewNoticeList(data: any) { return request({ - url: `${prefix}/reviewNotice/listPage?limit=${data.limit}&offset=${data.offset}`, + url: `${prefix}/reviewNotice/approval/listPage?limit=${data.limit}&offset=${data.offset}`, method: 'post', data, }) } -// 保存 +// 筛选复查设备列表 +export function getSampleEqptList(data: any) { + return request({ + url: `${prefix}/reviewNotice/sample/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 详情页复查设备清单 +export function detailSampleEqptList(data: any) { + return request({ + url: `${prefix}/reviewNotice/review/sample/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 保存 草稿箱 export function saveReviewNotice(data: object) { return request({ - url: `${prefix}/reviewNotice/add`, + url: `${prefix}/reviewNotice/save`, + method: 'post', + data, + }) +} + +// 编辑草稿箱 不走审批流程 +export function updateDraftNotice(data: object) { + return request({ + url: `${prefix}/reviewNotice/draftUpdate`, + method: 'post', + data, + }) +} + +// 提交 +export function sumbitNotice(data: object) { + return request({ + url: `${prefix}/reviewNotice/submit`, + method: 'post', + data, + }) +} + +// 未通过/撤回后/取消后提交 +export function failUpdateNotice(data: object) { + return request({ + url: `${prefix}/reviewNotice/failUpdate`, method: 'post', data, }) @@ -27,7 +72,7 @@ }) } -// 删除 +// 删除 - 草稿箱 export function deleteReviewNotice(data: object) { return request({ url: `${prefix}/reviewNotice/delete`, @@ -36,6 +81,15 @@ }) } +// 删除 - 已取消 +export function deleteReviewNoticeRevoked(data: object) { + return request({ + url: `${prefix}/reviewNotice/approval/delete`, + method: 'post', + data, + }) +} + export function exportFile(data: object) { return request({ url: `${prefix}/reviewNotice/exportFile`, @@ -43,3 +97,21 @@ data, }) } + +// 发起者撤回,表单状态更改为已取消 +export function revokeApproval(data: object) { + return request({ + url: `${prefix}/reviewNotice/approval/revoke`, + method: 'post', + data, + }) +} + +// 委托方名录审批-拒绝 +export function refuseApproval(data: object) { + return request({ + url: `${prefix}/reviewNotice/approval/refuse`, + method: 'post', + data, + }) +} diff --git a/src/utils/scheduleDict.ts b/src/utils/scheduleDict.ts index af59c20..dbf39ec 100644 --- a/src/utils/scheduleDict.ts +++ b/src/utils/scheduleDict.ts @@ -27,6 +27,7 @@ CUSTOMER_OPINION_REGISTER_APPROVAL = 'zyglwtfyjdjb', // 委托方意见登记表 CONTRACT_REVIEW_APPROVAL = 'zyglyqwtsjhtpsb', // 要求、委托书及合同评审表 SEAL_USE_REGISTER_APPROVAL = 'zyglyzsydj', // 印章使用登记 + REVIEW_NOTICE_APPROVAL = 'zygljcjgfctzd', // 检测结果复查通知单审批流程 // 质量活动 QUALITY_SUPERVISION_RECORD_APPROVAL = 'zlhdzlbgspgl', // 质量监督报告 diff --git a/src/api/resource/reviewNotice.ts b/src/api/resource/reviewNotice.ts index 68499f9..1760871 100644 --- a/src/api/resource/reviewNotice.ts +++ b/src/api/resource/reviewNotice.ts @@ -3,16 +3,61 @@ export function getReviewNoticeList(data: any) { return request({ - url: `${prefix}/reviewNotice/listPage?limit=${data.limit}&offset=${data.offset}`, + url: `${prefix}/reviewNotice/approval/listPage?limit=${data.limit}&offset=${data.offset}`, method: 'post', data, }) } -// 保存 +// 筛选复查设备列表 +export function getSampleEqptList(data: any) { + return request({ + url: `${prefix}/reviewNotice/sample/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 详情页复查设备清单 +export function detailSampleEqptList(data: any) { + return request({ + url: `${prefix}/reviewNotice/review/sample/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 保存 草稿箱 export function saveReviewNotice(data: object) { return request({ - url: `${prefix}/reviewNotice/add`, + url: `${prefix}/reviewNotice/save`, + method: 'post', + data, + }) +} + +// 编辑草稿箱 不走审批流程 +export function updateDraftNotice(data: object) { + return request({ + url: `${prefix}/reviewNotice/draftUpdate`, + method: 'post', + data, + }) +} + +// 提交 +export function sumbitNotice(data: object) { + return request({ + url: `${prefix}/reviewNotice/submit`, + method: 'post', + data, + }) +} + +// 未通过/撤回后/取消后提交 +export function failUpdateNotice(data: object) { + return request({ + url: `${prefix}/reviewNotice/failUpdate`, method: 'post', data, }) @@ -27,7 +72,7 @@ }) } -// 删除 +// 删除 - 草稿箱 export function deleteReviewNotice(data: object) { return request({ url: `${prefix}/reviewNotice/delete`, @@ -36,6 +81,15 @@ }) } +// 删除 - 已取消 +export function deleteReviewNoticeRevoked(data: object) { + return request({ + url: `${prefix}/reviewNotice/approval/delete`, + method: 'post', + data, + }) +} + export function exportFile(data: object) { return request({ url: `${prefix}/reviewNotice/exportFile`, @@ -43,3 +97,21 @@ data, }) } + +// 发起者撤回,表单状态更改为已取消 +export function revokeApproval(data: object) { + return request({ + url: `${prefix}/reviewNotice/approval/revoke`, + method: 'post', + data, + }) +} + +// 委托方名录审批-拒绝 +export function refuseApproval(data: object) { + return request({ + url: `${prefix}/reviewNotice/approval/refuse`, + method: 'post', + data, + }) +} diff --git a/src/utils/scheduleDict.ts b/src/utils/scheduleDict.ts index af59c20..dbf39ec 100644 --- a/src/utils/scheduleDict.ts +++ b/src/utils/scheduleDict.ts @@ -27,6 +27,7 @@ CUSTOMER_OPINION_REGISTER_APPROVAL = 'zyglwtfyjdjb', // 委托方意见登记表 CONTRACT_REVIEW_APPROVAL = 'zyglyqwtsjhtpsb', // 要求、委托书及合同评审表 SEAL_USE_REGISTER_APPROVAL = 'zyglyzsydj', // 印章使用登记 + REVIEW_NOTICE_APPROVAL = 'zygljcjgfctzd', // 检测结果复查通知单审批流程 // 质量活动 QUALITY_SUPERVISION_RECORD_APPROVAL = 'zlhdzlbgspgl', // 质量监督报告 diff --git a/src/views/resource/common/filterSample.vue b/src/views/resource/common/filterSample.vue new file mode 100644 index 0000000..48d8bcc --- /dev/null +++ b/src/views/resource/common/filterSample.vue @@ -0,0 +1,217 @@ + + + + diff --git a/src/api/resource/reviewNotice.ts b/src/api/resource/reviewNotice.ts index 68499f9..1760871 100644 --- a/src/api/resource/reviewNotice.ts +++ b/src/api/resource/reviewNotice.ts @@ -3,16 +3,61 @@ export function getReviewNoticeList(data: any) { return request({ - url: `${prefix}/reviewNotice/listPage?limit=${data.limit}&offset=${data.offset}`, + url: `${prefix}/reviewNotice/approval/listPage?limit=${data.limit}&offset=${data.offset}`, method: 'post', data, }) } -// 保存 +// 筛选复查设备列表 +export function getSampleEqptList(data: any) { + return request({ + url: `${prefix}/reviewNotice/sample/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 详情页复查设备清单 +export function detailSampleEqptList(data: any) { + return request({ + url: `${prefix}/reviewNotice/review/sample/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 保存 草稿箱 export function saveReviewNotice(data: object) { return request({ - url: `${prefix}/reviewNotice/add`, + url: `${prefix}/reviewNotice/save`, + method: 'post', + data, + }) +} + +// 编辑草稿箱 不走审批流程 +export function updateDraftNotice(data: object) { + return request({ + url: `${prefix}/reviewNotice/draftUpdate`, + method: 'post', + data, + }) +} + +// 提交 +export function sumbitNotice(data: object) { + return request({ + url: `${prefix}/reviewNotice/submit`, + method: 'post', + data, + }) +} + +// 未通过/撤回后/取消后提交 +export function failUpdateNotice(data: object) { + return request({ + url: `${prefix}/reviewNotice/failUpdate`, method: 'post', data, }) @@ -27,7 +72,7 @@ }) } -// 删除 +// 删除 - 草稿箱 export function deleteReviewNotice(data: object) { return request({ url: `${prefix}/reviewNotice/delete`, @@ -36,6 +81,15 @@ }) } +// 删除 - 已取消 +export function deleteReviewNoticeRevoked(data: object) { + return request({ + url: `${prefix}/reviewNotice/approval/delete`, + method: 'post', + data, + }) +} + export function exportFile(data: object) { return request({ url: `${prefix}/reviewNotice/exportFile`, @@ -43,3 +97,21 @@ data, }) } + +// 发起者撤回,表单状态更改为已取消 +export function revokeApproval(data: object) { + return request({ + url: `${prefix}/reviewNotice/approval/revoke`, + method: 'post', + data, + }) +} + +// 委托方名录审批-拒绝 +export function refuseApproval(data: object) { + return request({ + url: `${prefix}/reviewNotice/approval/refuse`, + method: 'post', + data, + }) +} diff --git a/src/utils/scheduleDict.ts b/src/utils/scheduleDict.ts index af59c20..dbf39ec 100644 --- a/src/utils/scheduleDict.ts +++ b/src/utils/scheduleDict.ts @@ -27,6 +27,7 @@ CUSTOMER_OPINION_REGISTER_APPROVAL = 'zyglwtfyjdjb', // 委托方意见登记表 CONTRACT_REVIEW_APPROVAL = 'zyglyqwtsjhtpsb', // 要求、委托书及合同评审表 SEAL_USE_REGISTER_APPROVAL = 'zyglyzsydj', // 印章使用登记 + REVIEW_NOTICE_APPROVAL = 'zygljcjgfctzd', // 检测结果复查通知单审批流程 // 质量活动 QUALITY_SUPERVISION_RECORD_APPROVAL = 'zlhdzlbgspgl', // 质量监督报告 diff --git a/src/views/resource/common/filterSample.vue b/src/views/resource/common/filterSample.vue new file mode 100644 index 0000000..48d8bcc --- /dev/null +++ b/src/views/resource/common/filterSample.vue @@ -0,0 +1,217 @@ + + + + diff --git a/src/views/resource/customer/reviewNotice/customer-notice.ts b/src/views/resource/customer/reviewNotice/customer-notice.ts index c92cbe4..a31f926 100644 --- a/src/views/resource/customer/reviewNotice/customer-notice.ts +++ b/src/views/resource/customer/reviewNotice/customer-notice.ts @@ -3,12 +3,48 @@ createUserName: string createTimeStart: string createTimeEnd: string + sendStatus: string + formId: string + approvalStatus: string offset: number limit: number sort?: string order?: string } +export interface ISampleEquipmentQuery { + customerId: string + equipmentName: string + certificateValidStart: string + certificateValidEnd: string + equipmentNo: string + equipmentType: string + offset: number + limit: number +} + +export interface ISampleEquipment { + id: string + equipmentId: string + equipmentNo: string + equipmentName: string + category: string + model: string + manufactureNo: string + manufacturer: string + companyId: string + companyName: string + directorId: string + directorName: string + checkDate: string + checkCycle: string + checkOrganization: string + checkDestination: string + meterIdentify: string + measurePersonName: string + certificateValid: string +} + export interface ICustomerNoticeInfo { id?: string customerId: string @@ -26,6 +62,16 @@ deviceNo?: string returnDate?: string noticeDate?: string + sampleIdList: Array + sendStatus: string + sendStatusValue?: string + approvalStatus?: string + approvalStatusName?: string + appealUserId: string + appealUserName: string + processId: string + taskId: string + decisionItem?: string createUserId?: string createUserName?: string createTime?: string diff --git a/src/api/resource/reviewNotice.ts b/src/api/resource/reviewNotice.ts index 68499f9..1760871 100644 --- a/src/api/resource/reviewNotice.ts +++ b/src/api/resource/reviewNotice.ts @@ -3,16 +3,61 @@ export function getReviewNoticeList(data: any) { return request({ - url: `${prefix}/reviewNotice/listPage?limit=${data.limit}&offset=${data.offset}`, + url: `${prefix}/reviewNotice/approval/listPage?limit=${data.limit}&offset=${data.offset}`, method: 'post', data, }) } -// 保存 +// 筛选复查设备列表 +export function getSampleEqptList(data: any) { + return request({ + url: `${prefix}/reviewNotice/sample/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 详情页复查设备清单 +export function detailSampleEqptList(data: any) { + return request({ + url: `${prefix}/reviewNotice/review/sample/listPage?limit=${data.limit}&offset=${data.offset}`, + method: 'post', + data, + }) +} + +// 保存 草稿箱 export function saveReviewNotice(data: object) { return request({ - url: `${prefix}/reviewNotice/add`, + url: `${prefix}/reviewNotice/save`, + method: 'post', + data, + }) +} + +// 编辑草稿箱 不走审批流程 +export function updateDraftNotice(data: object) { + return request({ + url: `${prefix}/reviewNotice/draftUpdate`, + method: 'post', + data, + }) +} + +// 提交 +export function sumbitNotice(data: object) { + return request({ + url: `${prefix}/reviewNotice/submit`, + method: 'post', + data, + }) +} + +// 未通过/撤回后/取消后提交 +export function failUpdateNotice(data: object) { + return request({ + url: `${prefix}/reviewNotice/failUpdate`, method: 'post', data, }) @@ -27,7 +72,7 @@ }) } -// 删除 +// 删除 - 草稿箱 export function deleteReviewNotice(data: object) { return request({ url: `${prefix}/reviewNotice/delete`, @@ -36,6 +81,15 @@ }) } +// 删除 - 已取消 +export function deleteReviewNoticeRevoked(data: object) { + return request({ + url: `${prefix}/reviewNotice/approval/delete`, + method: 'post', + data, + }) +} + export function exportFile(data: object) { return request({ url: `${prefix}/reviewNotice/exportFile`, @@ -43,3 +97,21 @@ data, }) } + +// 发起者撤回,表单状态更改为已取消 +export function revokeApproval(data: object) { + return request({ + url: `${prefix}/reviewNotice/approval/revoke`, + method: 'post', + data, + }) +} + +// 委托方名录审批-拒绝 +export function refuseApproval(data: object) { + return request({ + url: `${prefix}/reviewNotice/approval/refuse`, + method: 'post', + data, + }) +} diff --git a/src/utils/scheduleDict.ts b/src/utils/scheduleDict.ts index af59c20..dbf39ec 100644 --- a/src/utils/scheduleDict.ts +++ b/src/utils/scheduleDict.ts @@ -27,6 +27,7 @@ CUSTOMER_OPINION_REGISTER_APPROVAL = 'zyglwtfyjdjb', // 委托方意见登记表 CONTRACT_REVIEW_APPROVAL = 'zyglyqwtsjhtpsb', // 要求、委托书及合同评审表 SEAL_USE_REGISTER_APPROVAL = 'zyglyzsydj', // 印章使用登记 + REVIEW_NOTICE_APPROVAL = 'zygljcjgfctzd', // 检测结果复查通知单审批流程 // 质量活动 QUALITY_SUPERVISION_RECORD_APPROVAL = 'zlhdzlbgspgl', // 质量监督报告 diff --git a/src/views/resource/common/filterSample.vue b/src/views/resource/common/filterSample.vue new file mode 100644 index 0000000..48d8bcc --- /dev/null +++ b/src/views/resource/common/filterSample.vue @@ -0,0 +1,217 @@ + + + + diff --git a/src/views/resource/customer/reviewNotice/customer-notice.ts b/src/views/resource/customer/reviewNotice/customer-notice.ts index c92cbe4..a31f926 100644 --- a/src/views/resource/customer/reviewNotice/customer-notice.ts +++ b/src/views/resource/customer/reviewNotice/customer-notice.ts @@ -3,12 +3,48 @@ createUserName: string createTimeStart: string createTimeEnd: string + sendStatus: string + formId: string + approvalStatus: string offset: number limit: number sort?: string order?: string } +export interface ISampleEquipmentQuery { + customerId: string + equipmentName: string + certificateValidStart: string + certificateValidEnd: string + equipmentNo: string + equipmentType: string + offset: number + limit: number +} + +export interface ISampleEquipment { + id: string + equipmentId: string + equipmentNo: string + equipmentName: string + category: string + model: string + manufactureNo: string + manufacturer: string + companyId: string + companyName: string + directorId: string + directorName: string + checkDate: string + checkCycle: string + checkOrganization: string + checkDestination: string + meterIdentify: string + measurePersonName: string + certificateValid: string +} + export interface ICustomerNoticeInfo { id?: string customerId: string @@ -26,6 +62,16 @@ deviceNo?: string returnDate?: string noticeDate?: string + sampleIdList: Array + sendStatus: string + sendStatusValue?: string + approvalStatus?: string + approvalStatusName?: string + appealUserId: string + appealUserName: string + processId: string + taskId: string + decisionItem?: string createUserId?: string createUserName?: string createTime?: string diff --git a/src/views/resource/customer/reviewNotice/detail.vue b/src/views/resource/customer/reviewNotice/detail.vue index 930d9c6..227e2fa 100644 --- a/src/views/resource/customer/reviewNotice/detail.vue +++ b/src/views/resource/customer/reviewNotice/detail.vue @@ -1,30 +1,49 @@ + + diff --git a/src/views/resource/customer/reviewNotice/customer-notice.ts b/src/views/resource/customer/reviewNotice/customer-notice.ts index c92cbe4..a31f926 100644 --- a/src/views/resource/customer/reviewNotice/customer-notice.ts +++ b/src/views/resource/customer/reviewNotice/customer-notice.ts @@ -3,12 +3,48 @@ createUserName: string createTimeStart: string createTimeEnd: string + sendStatus: string + formId: string + approvalStatus: string offset: number limit: number sort?: string order?: string } +export interface ISampleEquipmentQuery { + customerId: string + equipmentName: string + certificateValidStart: string + certificateValidEnd: string + equipmentNo: string + equipmentType: string + offset: number + limit: number +} + +export interface ISampleEquipment { + id: string + equipmentId: string + equipmentNo: string + equipmentName: string + category: string + model: string + manufactureNo: string + manufacturer: string + companyId: string + companyName: string + directorId: string + directorName: string + checkDate: string + checkCycle: string + checkOrganization: string + checkDestination: string + meterIdentify: string + measurePersonName: string + certificateValid: string +} + export interface ICustomerNoticeInfo { id?: string customerId: string @@ -26,6 +62,16 @@ deviceNo?: string returnDate?: string noticeDate?: string + sampleIdList: Array + sendStatus: string + sendStatusValue?: string + approvalStatus?: string + approvalStatusName?: string + appealUserId: string + appealUserName: string + processId: string + taskId: string + decisionItem?: string createUserId?: string createUserName?: string createTime?: string diff --git a/src/views/resource/customer/reviewNotice/detail.vue b/src/views/resource/customer/reviewNotice/detail.vue index 930d9c6..227e2fa 100644 --- a/src/views/resource/customer/reviewNotice/detail.vue +++ b/src/views/resource/customer/reviewNotice/detail.vue @@ -1,30 +1,49 @@ @@ -163,7 +347,7 @@ - + @@ -171,6 +355,11 @@ + + + + + @@ -197,19 +386,41 @@ + + + + + +