禅道bug修复

This commit is contained in:
BianLzhaoMin 2025-06-23 10:13:42 +08:00
parent 999c3565d1
commit e8fa89e0fc
10 changed files with 143 additions and 106 deletions

View File

@ -107,6 +107,8 @@ export default {
} }
console.log('filePreviewPath', filePreviewPath) console.log('filePreviewPath', filePreviewPath)
this.file = filePreviewPath this.file = filePreviewPath
// alert(this.file, ' this.file')
this.fileUploadPath = fileUploadPath this.fileUploadPath = fileUploadPath
}, },
onIframeLoad() { onIframeLoad() {

View File

@ -1,7 +1,7 @@
import { getToDoNum } from '@/api/system/notice' import { getToDoNum } from '@/api/system/notice'
//0 测试 1生产 //0 测试 1生产
let fileType = process.env.VUE_APP_ENV === 'testing' ? 0 : 1 // let fileType = process.env.VUE_APP_ENV === 'testing' ? 0 : 1
// let fileType = 0 let fileType = 0
export function lookFile() { export function lookFile() {
if (fileType === 0) { if (fileType === 0) {

View File

@ -1,13 +1,11 @@
import request from '@/utils/request' import request from '@/utils/request'
//上传信息 //上传信息
export function uploadFileInfo(data){ export function uploadFileInfo(data) {
return request({ return request({
url:'/exam/multipart/uploadFileInfo', url: '/exam/multipart/uploadFileInfo',
method:'post', method: 'post',
data:data data: data,
}) })
} }
@ -16,39 +14,36 @@ export function checkUpload(MD5) {
return request({ return request({
url: '/exam/multipart/check', url: '/exam/multipart/check',
method: 'get', method: 'get',
params: {"md5":MD5} params: { md5: MD5 },
}) })
}; }
// 初始化上传 // 初始化上传
export function initUpload(data) { export function initUpload(data) {
return request({ return request({
url: '/exam/multipart/init', url: '/exam/multipart/init',
method: 'post', method: 'post',
data:data data: data,
}) })
}; }
// 文件合并 // 文件合并
export function mergeUpload(data) { export function mergeUpload(data) {
return request({ return request({
url: '/exam/multipart/merge', url: '/exam/multipart/merge',
method: 'post', method: 'post',
data:data data: data,
}) })
}; }
//判断文件是否存在 //判断文件是否存在
export function fileIsExits(data) { export function fileIsExits(data) {
return request({ return request({
url: '/exam/multipart/fileIsExits', url: '/exam/multipart/fileIsExits',
method: 'post', method: 'post',
data:data data: data,
}) })
}; }
// 上传文件 // 上传文件
export function uploadFiles(formData) { export function uploadFiles(formData) {
@ -59,7 +54,19 @@ export function uploadFiles(formData) {
timeout: 600000, // 设置超时时间为 10 秒10000 毫秒) timeout: 600000, // 设置超时时间为 10 秒10000 毫秒)
headers: { headers: {
'Content-Type': 'application/x-www-form-urlencoded', 'Content-Type': 'application/x-www-form-urlencoded',
repeatSubmit:false repeatSubmit: false,
} },
})
}
export function uploadFilesNew(formData) {
return request({
url: '/exam/multipart/uploadFiles',
method: 'post',
data: formData,
timeout: 600000, // 设置超时时间为 10 秒10000 毫秒)
headers: {
'Content-Type': 'application/x-www-form-urlencoded',
repeatSubmit: false,
},
}) })
} }

View File

@ -9,7 +9,7 @@
:style="{ marginTop: '-8px', float: 'right', marginRight: '10px;', fontSize: '18px' }" :style="{ marginTop: '-8px', float: 'right', marginRight: '10px;', fontSize: '18px' }"
@click="admissionRequest" @click="admissionRequest"
v-hasPermi="['system:entrance:apply']" v-hasPermi="['system:entrance:apply']"
v-if="this.enterStatus === '草稿'" v-if="this.enterStatus === '草稿' && proId"
> >
入场申请 入场申请
</el-button> </el-button>
@ -35,7 +35,7 @@
</el-button> </el-button>
</h3> </h3>
<el-table :data="enterList" border style="width: 100%; text-align: center; margin-top: 10px"> <el-table :data="enterList" border style="width: 100%; text-align: center; margin-top: 10px" v-if="proId">
<el-table-column prop="enterStatus" label="入场审批状态" align="center"></el-table-column> <el-table-column prop="enterStatus" label="入场审批状态" align="center"></el-table-column>
<el-table-column prop="turnDownReason" label="驳回原因" align="center"></el-table-column> <el-table-column prop="turnDownReason" label="驳回原因" align="center"></el-table-column>
<el-table-column label="操作" align="center"> <el-table-column label="操作" align="center">
@ -81,6 +81,8 @@
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<el-empty description="暂无工程信息" v-if="!proId"></el-empty>
<div v-if="this.$store.state.user.thisIds.intoStatus == '3'"> <div v-if="this.$store.state.user.thisIds.intoStatus == '3'">
<el-table <el-table
:data="exitList" :data="exitList"
@ -138,8 +140,8 @@
</el-table-column> </el-table-column>
</el-table> </el-table>
</div> </div>
<h3 style="color: #409eff; background: #f6f6f6; padding: 15px; border-radius: 10px">工程基础信息----</h3> <h3 style="color: #409eff; background: #f6f6f6; padding: 15px; border-radius: 10px">工程基础信息</h3>
<el-row :gutter="gutter"> <el-row :gutter="gutter" v-if="proId">
<el-col :span="7"> <el-col :span="7">
<el-form-item label="工程名称:" label-width="130px" prop=""> <el-form-item label="工程名称:" label-width="130px" prop="">
<el-input v-model="form.proName" style="width: 300px" disabled></el-input> <el-input v-model="form.proName" style="width: 300px" disabled></el-input>
@ -156,7 +158,7 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row :gutter="gutter"> <el-row :gutter="gutter" v-if="proId">
<el-col :span="7"> <el-col :span="7">
<el-form-item label="工程类型:" label-width="130px" prop=""> <el-form-item label="工程类型:" label-width="130px" prop="">
<el-input v-model="form.proType" style="width: 300px" disabled></el-input> <el-input v-model="form.proType" style="width: 300px" disabled></el-input>
@ -173,7 +175,7 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row :gutter="gutter"> <el-row :gutter="gutter" v-if="proId">
<el-col :span="7"> <el-col :span="7">
<el-form-item label="监理单位:" label-width="130px" prop=""> <el-form-item label="监理单位:" label-width="130px" prop="">
<el-input v-model="form.unitName" style="width: 300px" disabled></el-input> <el-input v-model="form.unitName" style="width: 300px" disabled></el-input>
@ -190,7 +192,7 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row :gutter="gutter"> <el-row :gutter="gutter" v-if="proId">
<el-col :span="7"> <el-col :span="7">
<el-form-item label="工程地址:" label-width="130px" prop=""> <el-form-item label="工程地址:" label-width="130px" prop="">
<el-input v-model="form.address" style="width: 300px" disabled></el-input> <el-input v-model="form.address" style="width: 300px" disabled></el-input>
@ -198,6 +200,7 @@
</el-col> </el-col>
</el-row> </el-row>
<el-empty description="暂无工程信息" v-if="!proId"></el-empty>
<div v-if="this.$store.state.user.userType != '01'"> <div v-if="this.$store.state.user.userType != '01'">
<h3 style="color: #409eff; background: #f6f6f6; padding: 15px; border-radius: 10px">入场材料示例模板</h3> <h3 style="color: #409eff; background: #f6f6f6; padding: 15px; border-radius: 10px">入场材料示例模板</h3>
<div style="display: flex; flex-direction: row; flex-wrap: wrap"> <div style="display: flex; flex-direction: row; flex-wrap: wrap">
@ -261,9 +264,11 @@ export default {
directorPhone: '', directorPhone: '',
address: '', address: '',
}, },
proId: '',
} }
}, },
created() { created() {
this.proId = this.$store.state.user.thisIds.proId
if (this.$store.state.user.userType !== '00') { if (this.$store.state.user.userType !== '00') {
this.init() this.init()
if (this.$store.state.user.userType !== '01') { if (this.$store.state.user.userType !== '01') {

View File

@ -78,7 +78,7 @@
icon="el-icon-upload" icon="el-icon-upload"
@click="handleUpload(scope.row)" @click="handleUpload(scope.row)"
> >
上传 上传***
</el-button> </el-button>
<el-popover placement="bottom" width="40" trigger="hover"> <el-popover placement="bottom" width="40" trigger="hover">
<div style="display: flex; flex-direction: column; align-items: center"> <div style="display: flex; flex-direction: column; align-items: center">
@ -203,9 +203,16 @@
</div> </div>
</el-dialog> </el-dialog>
<el-dialog title="文件查看" :visible.sync="documentPreview" width="80%" top="5vh" append-to-body> <el-dialog
title="文件查看"
width="80%"
top="5vh"
append-to-body
v-if="documentPreview"
:visible.sync="documentPreview"
>
<div style="width: 100%; height: 720px"> <div style="width: 100%; height: 720px">
<bns-kkFile-preview :items="kkFilePreview"></bns-kkFile-preview> <bns-kkFile-preview :lookType="`minio`" :items="kkFilePreview"></bns-kkFile-preview>
</div> </div>
</el-dialog> </el-dialog>
</div> </div>
@ -442,9 +449,15 @@ export default {
// //
async handleDownload(row) { async handleDownload(row) {
this.downLoading = true this.downLoading = true
this.$message.closeAll()
console.log('下载', row) console.log('下载', row)
if (!row) { if (!row) {
// //
if (this.coursewareIds.length === 0) {
this.$message.error('请先选择文件')
return
}
const params = { const params = {
coursewareId: this.coursewareIds, coursewareId: this.coursewareIds,
fileType: 1, fileType: 1,
@ -457,7 +470,7 @@ export default {
this.downLoading = false this.downLoading = false
}, 300) }, 300)
return return
} } else {
const params = { const params = {
coursewareId: row.coursewareId, coursewareId: row.coursewareId,
fileType: row.fileType, fileType: row.fileType,
@ -524,6 +537,7 @@ export default {
// document.body.removeChild(link) // document.body.removeChild(link)
// window.URL.revokeObjectURL(url) // // window.URL.revokeObjectURL(url) //
// }) // })
}
}, },
// //
handleMove(row) { handleMove(row) {
@ -707,6 +721,8 @@ export default {
// //
handlePreview(row) { handlePreview(row) {
console.log(row.filePath)
// alert(row.filePath)
this.kkFilePreview.filePreviewUrl = row.filePath this.kkFilePreview.filePreviewUrl = row.filePath
this.kkFilePreview.fileName = row.coursewareName this.kkFilePreview.fileName = row.coursewareName
this.documentPreview = true this.documentPreview = true

View File

@ -74,7 +74,8 @@
</template> </template>
<script> <script>
import { uploadFiles } from '@/utils/upload' // import { uploadFiles} from '@/utils/upload'
import { uploadFilesNew } from '@/utils/upload'
import { parseTime } from '@/utils/bonus' import { parseTime } from '@/utils/bonus'
export default { export default {
@ -230,7 +231,7 @@ export default {
formData.append('totalChunks', totalChunks) formData.append('totalChunks', totalChunks)
formData.append('parentId', this.paramsData.coursewareId) formData.append('parentId', this.paramsData.coursewareId)
formData.append('fileUrl', parseTime(new Date(), '{y}{m}')) formData.append('fileUrl', parseTime(new Date(), '{y}{m}'))
uploadFiles(formData) uploadFilesNew(formData)
.then(() => { .then(() => {
currentChunk++ currentChunk++
const progress = Math.floor((currentChunk / totalChunks) * 100) const progress = Math.floor((currentChunk / totalChunks) * 100)

View File

@ -83,7 +83,7 @@
size="mini" size="mini"
style="color: #f56c6c" style="color: #f56c6c"
@click="handleRectify(scope.row, 1)" @click="handleRectify(scope.row, 1)"
v-if="scope.row.intoStatus == '1'" v-if="scope.row.intoStatus == '1' && scope.row.checkUserId && scope.row.checkUserId.includes(userId)"
> >
审批 审批
</el-button> </el-button>
@ -170,6 +170,7 @@ export default {
{ label: '已驳回', value: '4' }, { label: '已驳回', value: '4' },
{ label: '已撤回', value: '5' }, { label: '已撤回', value: '5' },
], ],
userId: this.$store.state.user.id,
} }
}, },
created() { created() {

View File

@ -270,7 +270,7 @@
<template slot-scope="scope"> <template slot-scope="scope">
<el-button type="text" size="mini" @click="handleRectify(scope.row, 5)">查看</el-button> <el-button type="text" size="mini" @click="handleRectify(scope.row, 5)">查看</el-button>
<el-button <el-button
v-if="userType == '00' && scope.row.intoStatus == '1'" v-if="userType == '00' && (scope.row.intoStatus == '1' || scope.row.intoStatus == '2')"
type="text" type="text"
size="mini" size="mini"
style="color: #f56c6c" style="color: #f56c6c"

View File

@ -300,12 +300,13 @@
:btn-show="paramsData.btnShow" :btn-show="paramsData.btnShow"
:show-type="paramsData.showType" :show-type="paramsData.showType"
:final-check="paramsData.finalCheck" :final-check="paramsData.finalCheck"
:items="formData.approvalItems" :items="approvalItems"
:audit-type="'审批信息'" :audit-type="'审批信息'"
v-on:pass="approvalPass" v-on:pass="approvalPass"
v-on:turnDown="approvalTurnDown" v-on:turnDown="approvalTurnDown"
v-on:finalInstance="approvalFinalInstance" v-on:finalInstance="approvalFinalInstance"
:opinionValueOther="opinionValueOther" :opinionValueOther="opinionValueOther"
:auditReason="[]"
/> />
</el-tab-pane> </el-tab-pane>
</el-tabs> </el-tabs>
@ -396,6 +397,7 @@ export default {
lookFaceFile: '', lookFaceFile: '',
// //
opinionValueOther: '', opinionValueOther: '',
approvalItems: [],
} }
}, },
created() { created() {
@ -411,7 +413,8 @@ export default {
hideSensitiveInfo, hideSensitiveInfo,
approvalHistory() { approvalHistory() {
approvalHistory({ taskId: this.paramsData.taskId }).then(res => { approvalHistory({ taskId: this.paramsData.taskId }).then(res => {
this.formData.approvalItems = res.data // this.formData.approvalItems = res.data
this.approvalItems = res.data
}) })
}, },
getStatus() { getStatus() {
@ -562,6 +565,8 @@ export default {
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 10,
supervisorName: this.queryParams.supervisorName, supervisorName: this.queryParams.supervisorName,
supId: this.paramsData.supId,
supUuid: this.paramsData.supUuid,
} }
this.derive( this.derive(
'project/outsourcingPro/exportSupervisorPerson', 'project/outsourcingPro/exportSupervisorPerson',
@ -587,7 +592,7 @@ export default {
} }
this.getStatus() this.getStatus()
listSupervisorPersonById(params).then(response => { listSupervisorPersonById(params).then(response => {
console.log(response) console.log(response, '-----------人员信息')
this.formData = response.data this.formData = response.data
this.formData.phone = hideSensitiveInfo(response.data.phone) this.formData.phone = hideSensitiveInfo(response.data.phone)
this.formData.idCard = hideSensitiveInfo(response.data.idCard) this.formData.idCard = hideSensitiveInfo(response.data.idCard)

View File

@ -84,7 +84,7 @@
<el-button type="text" size="mini" @click="handleRectify(scope.row, 3)">查看</el-button> <el-button type="text" size="mini" @click="handleRectify(scope.row, 3)">查看</el-button>
<template v-if="userType == '01'"> <template v-if="userType == '01'">
<template v-if="scope.row.intoStatus == '1' && scope.row.type != 1"> <template v-if="(scope.row.intoStatus == '1' || scope.row.intoStatus == '2') && scope.row.type != 1">
<el-button type="text" size="mini" style="color: #f56c6c" @click="handleRectify(scope.row, 1)"> <el-button type="text" size="mini" style="color: #f56c6c" @click="handleRectify(scope.row, 1)">
审批 审批
</el-button> </el-button>
@ -97,7 +97,7 @@
size="mini" size="mini"
style="color: #f56c6c" style="color: #f56c6c"
@click="handleRectify(scope.row, 1)" @click="handleRectify(scope.row, 1)"
v-if="scope.row.intoStatus == '1'" v-if="scope.row.intoStatus == '1' || scope.row.intoStatus == '2'"
> >
审批 审批
</el-button> </el-button>