From 39ddcb68af586dbaafd04318cfc8800bf2fb4a06 Mon Sep 17 00:00:00 2001 From: hongchao <3228015117@qq.com> Date: Thu, 27 Nov 2025 15:52:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=A5=E5=A4=87=E4=B8=A2=E5=A4=B1=E7=94=B3?= =?UTF-8?q?=E8=AF=B7=EF=BC=8C=E5=AE=A1=E6=A0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/business/index.js | 64 + src/api/cost/cost.js | 17 + src/api/receive-apply/index.js | 10 + src/router/index.js | 16 + .../lose-apply/business-details.vue | 483 ++++++ .../lose-apply/components/title-tip.vue | 37 + .../business-examine/lose-apply/index.vue | 233 +++ .../loseHandlingRecord.vue | 274 +++ src/views/business/loseHandling/index.vue | 1509 +++++++++++++++++ .../material/cost/component/unreportHome.vue | 23 +- src/views/material/lease/outBound/index.vue | 2 +- 11 files changed, 2653 insertions(+), 15 deletions(-) create mode 100644 src/views/business-examine/lose-apply/business-details.vue create mode 100644 src/views/business-examine/lose-apply/components/title-tip.vue create mode 100644 src/views/business-examine/lose-apply/index.vue create mode 100644 src/views/business/businessHandlingRecord/loseHandlingRecord.vue create mode 100644 src/views/business/loseHandling/index.vue diff --git a/src/api/business/index.js b/src/api/business/index.js index 2ac422a9..aa09e7e2 100644 --- a/src/api/business/index.js +++ b/src/api/business/index.js @@ -234,4 +234,68 @@ export function revokeApi(data) { method: 'get', params: data }) +} + + +// 根据协议id查编码在用列表 +export function getUseringLoseData(query) { + return request({ + url: '/material/LossAssign/getUseData', + method: 'get', + params: query + }) +} + +// 报备丢失物资类型-3级tree +export function getEquipmentLoseThreeTypes(query) { + return request({ + url: '/material/LossAssign/equipmentThreeTypes', + method: 'get', + params: query + }) +} + +// 报备丢失申请提交-新增 +export function receiveLoseSubmitTwo(data) { + return request({ + url: '/material/LossAssign/add', + method: 'post', + data + }) +} + +// 报备丢失审核-列表 +export function getLoseAuditListApi(query) { + return request({ + url: '/material/LossAssign/list', + method: 'get', + params: query + }) +} + +// 报备丢失申请提交-详情 +export function getLoseDetail(query) { + return request({ + url: '/material/LossAssign/getInfo', + method: 'get', + params: query + }) +} + +// 报备丢失申请提交-编辑 +export function receiveLoseEdit(data) { + return request({ + url: '/material/LossAssign/edit', + method: 'post', + data + }) +} + +// 报备丢失申请提交-删除 +export function receiveLoseDelete(data) { + return request({ + url: '/material/LossAssign/delete', + method: 'post', + data + }) } \ No newline at end of file diff --git a/src/api/cost/cost.js b/src/api/cost/cost.js index 5b7f1196..3faeb50b 100644 --- a/src/api/cost/cost.js +++ b/src/api/cost/cost.js @@ -346,3 +346,20 @@ export function getAssestsReportList(query) { }) } +// 导出zip进行导出 +export function getExportZipUnsettled(data) { + return request({ + url: '/material/slt_agreement_info/exportUnsettled', + method: 'post', + data: data, + }) +} + +// 导出zip获取进度 +export function getExportZipProgress(data) { + return request({ + url: '/material/slt_agreement_info/exportProgress', + method: 'post', + data: data, + }) +} diff --git a/src/api/receive-apply/index.js b/src/api/receive-apply/index.js index d4ddb274..5537237d 100644 --- a/src/api/receive-apply/index.js +++ b/src/api/receive-apply/index.js @@ -50,3 +50,13 @@ export function getNodeAuditStatusAPI(query) { params: query }) } + + +// 报备丢失审核提交接口 +export function submitAuditingLoseApi(data) { + return request({ + url: '/material/LossAssign/directUpdate', + method: 'post', + data + }) +} diff --git a/src/router/index.js b/src/router/index.js index 7e42be03..0b8bf326 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -242,6 +242,22 @@ export const dynamicRoutes = [ } ] }, + // 报备丢失审核 业务详情 + { + path: '/business-details/lose-apply', + component: Layout, // 后续单独拎出来时 要取消layout 直接是独立页面 类似于404页面配置即可 + hidden: true, + permissions: ['lose-apply:list'], // 权限字符 + children: [ + { + path: 'index', + name: 'lose-apply', + meta: { title: '报备丢失详情', activeMenu: '/business-examine/lose-apply' }, + component: () => import('@/views/business-examine/lose-apply/business-details.vue') + } + ] + }, + // 减免审核 业务详情 { path: '/business-details/reduction-apply', diff --git a/src/views/business-examine/lose-apply/business-details.vue b/src/views/business-examine/lose-apply/business-details.vue new file mode 100644 index 00000000..a867add8 --- /dev/null +++ b/src/views/business-examine/lose-apply/business-details.vue @@ -0,0 +1,483 @@ + + + + + + 报备丢失申请详情 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 流程记录 + + + + + + + + + + 审核结果: + 待审批 + 已通过 + 已驳回 + + + + 审核人: + {{ step.auditBy }} + + + + 审核时间: + {{ step.createTime }} + + + + 审核意见: + {{ step.remark }} + + + + + + + + + + + 通过 + 驳回 + + + + + + + + + + + diff --git a/src/views/business-examine/lose-apply/components/title-tip.vue b/src/views/business-examine/lose-apply/components/title-tip.vue new file mode 100644 index 00000000..2970e850 --- /dev/null +++ b/src/views/business-examine/lose-apply/components/title-tip.vue @@ -0,0 +1,37 @@ + + + + {{ title }} + + + + + + diff --git a/src/views/business-examine/lose-apply/index.vue b/src/views/business-examine/lose-apply/index.vue new file mode 100644 index 00000000..c2568988 --- /dev/null +++ b/src/views/business-examine/lose-apply/index.vue @@ -0,0 +1,233 @@ + + + + + + queryParams.endTime = ''" + style="width: 130px" + /> + + - + + + + + + + + + + + + + + + 查询 + 重置 + + + + + + + + + + + 待审核 + 审核中 + 已通过 + 已驳回 + + + + + + + 审核 + + + + 查看 + + + + + + + + + + + diff --git a/src/views/business/businessHandlingRecord/loseHandlingRecord.vue b/src/views/business/businessHandlingRecord/loseHandlingRecord.vue new file mode 100644 index 00000000..d2c05543 --- /dev/null +++ b/src/views/business/businessHandlingRecord/loseHandlingRecord.vue @@ -0,0 +1,274 @@ + + + + + + queryParams.endTime = ''" + style="width: 130px" + /> + + - + + + + + + + + + + + + + + + 查询 + 重置 + + + + + + + 导出数据 + + + + + + + + + + + + 待审核 + 审核中 + + 已完成 + + + 已驳回 + + + + + + + 查看 + + 编辑 + + + 删除 + + + + + + + + + + + + + diff --git a/src/views/business/loseHandling/index.vue b/src/views/business/loseHandling/index.vue new file mode 100644 index 00000000..3bfcf5ff --- /dev/null +++ b/src/views/business/loseHandling/index.vue @@ -0,0 +1,1509 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 上传图片 + + + + + + + + + + + + + + + + + + + + + + + 查询 + 重置 + + {{ isEdit ? '保存' : '发起提交' }} + + + 报备丢失记录查看 + + + + + + + + + + + + 总共 {{ total }} 条数据,当前显示第 {{ queryParams.pageNum }} 页,每页 {{ queryParams.pageSize }} 条 + + + + + + 已选中 {{ multipleSelection.length }} 条数据 + + + + + 清空选择 + + + + + + + + + {{ (queryParams.pageNum - 1) * queryParams.pageSize + scope.$index + 1 }} + + + + + + + + {{ overdue(row) ? '' : '超检验周期' }} + + + + + + + + + + + + + + + + + + + diff --git a/src/views/material/cost/component/unreportHome.vue b/src/views/material/cost/component/unreportHome.vue index 8392e2f5..da86f7fb 100644 --- a/src/views/material/cost/component/unreportHome.vue +++ b/src/views/material/cost/component/unreportHome.vue @@ -569,14 +569,17 @@ import { getUnitList, getAgreementInfoById, getUnitListFilterTeam, } from '@/api/back/index.js' -import {getSltList, costExamine, getSltReportedList, getSltReportList, getHistoryReportList, getHistoryLeaseCostDetails, getHistoryRepairCostDetails, getHistoryLoseCostDetails, getHistoryScrapCostDetails} from '@/api/cost/cost' +import {getSltList, costExamine, getSltReportedList, getSltReportList, getHistoryReportList, + getHistoryLeaseCostDetails, getHistoryRepairCostDetails, getHistoryLoseCostDetails, getHistoryScrapCostDetails, + getExportZipUnsettled,getExportZipProgress +} from '@/api/cost/cost' import { toChineseAmount } from '@/utils/bonus.js' import vueEasyPrint from "vue-easy-print"; import Treeselect from "@riophae/vue-treeselect"; import "@riophae/vue-treeselect/dist/vue-treeselect.css"; import * as XLSX from 'xlsx'; import request from '@/utils/request' - +import { download,downloadJson,downloadZip } from '@/utils/request' export default { name: 'UnreportHome', @@ -879,12 +882,7 @@ export default { this.statusText = '开始导出...' - const response = await request({ - url: '/material/slt_agreement_info/exportUnsettled', - method: 'post', - data: JSON.stringify(param), - timeout: 60000 // 设置10分钟超时 - }) + const response = await getExportZipUnsettled(param) const result = response this.taskId = result.taskId this.totalZip = result.total @@ -903,12 +901,9 @@ export default { startPolling() { this.pollInterval = setInterval(async () => { try { - const response = await request({ - url: `/material/slt_agreement_info/exportProgress/${this.taskId}`, - method: 'get' - }) + const param = { taskId: this.taskId } + const response = await getExportZipProgress(param) const progress = response - this.progress = progress.percentage this.current = progress.current @@ -930,7 +925,7 @@ export default { this.statusText = '查询进度失败' this.exportFlag = false } - }, 1000) + }, 5000) }, downloadFile() { diff --git a/src/views/material/lease/outBound/index.vue b/src/views/material/lease/outBound/index.vue index 4092d6ab..9fdfbfe9 100644 --- a/src/views/material/lease/outBound/index.vue +++ b/src/views/material/lease/outBound/index.vue @@ -281,7 +281,7 @@ - +