吉安感知网项目-前端
chenyao
2026-01-29 47038d33d7fe4a798f1c507baf9401e9f581098c
feat:更新工单报告批量打包下载
3 files modified
20 ■■■■■ changed files
applications/task-work-order/src/views/orderView/orderDataManage/supplyAdd/ApplyViewDialog.vue 8 ●●●● patch | view | raw | blame | history
applications/task-work-order/src/views/orderView/orderManage/inspectionReport/index.vue 6 ●●●●● patch | view | raw | blame | history
applications/task-work-order/src/views/orderView/orderManage/inspectionReport/inspectionRequestApi.js 6 ●●●● patch | view | raw | blame | history
applications/task-work-order/src/views/orderView/orderDataManage/supplyAdd/ApplyViewDialog.vue
@@ -1,5 +1,5 @@
<template>
    <el-dialog class="gd-dialog" :close-on-click-modal="false" v-model="visible" :title="'查看'" @closed="visible = false" destroy-on-close>
    <el-dialog width="80%" class="gd-dialog" :close-on-click-modal="false" v-model="visible" :title="'查看'" @closed="visible = false" destroy-on-close>
        <div class="detail-container">
            <!-- 左侧审批记录 -->
            <div class="detail-left">
@@ -98,7 +98,7 @@
                        <el-table-column prop="fileSize" label="文件大小" />
                        <el-table-column fixed="right" label="操作" min-width="100">
                            <template #default="scope">
                                <el-button link type="text" @click="downloadFileFromTable(scope.row)">下载</el-button>
                                <el-link  type="primary"  @click="downloadFileFromTable(scope.row)">下载</el-link>
                            </template>
                        </el-table-column>
                    </el-table>
@@ -466,6 +466,10 @@
    }
}
.el-upload__tip {
    display: inline;
}
/* 上传按钮样式 */
applications/task-work-order/src/views/orderView/orderManage/inspectionReport/index.vue
@@ -111,10 +111,12 @@
                    </el-select>
                </el-form-item>
                <el-form-item label="上传文件" prop="link" v-if="titleTxt === '上传巡查报告'">
                    {{ uploadName }}
                    <el-upload class="avatar-uploader" action="" :show-file-list="false" :before-upload="onUploadFileBefore">
                        <el-button size="small" type="primary">点击上传</el-button>
                    </el-upload>
                    <div class="upload-tip">
                        {{ uploadName }}
                    </div>
                </el-form-item>
            </el-form>
            <!-- </div> -->
@@ -329,7 +331,7 @@
        try {
            console.log(selectedFiles.value, '9999')
            loadingData = ElLoading.service({ background: 'rgba(0, 0, 0, 0.5)', text: '打包中,请稍等...' })
            const fileIds = selectedFiles.value.map(i => i.id)
            const fileIds = selectedFiles.value.map(i => i.id).join(',')
            // const res = await getDownloadStatusApi({ type: 'dpsjzx' })
            // if (!['CANCELLED', 'COMPLETED'].includes(res.data.data?.status || 'COMPLETED')) {
            //     return ElMessage.warning('还有正在处理的')
applications/task-work-order/src/views/orderView/orderManage/inspectionReport/inspectionRequestApi.js
@@ -46,10 +46,10 @@
}
// 批量打包下载
export const fjDownloadByByteApi = data => {
export const fjDownloadByByteApi = params => {
    return request({
        url: `/blade-resource/attach/downloadByByte`,
        method: 'post',
        data,
        method: 'get',
        params,
    })
}