From 3f6bf89b1985b6668f02ffcc9af577b412e92e45 Mon Sep 17 00:00:00 2001 From: zhouwx <1175765986@qq.com> Date: 星期一, 24 三月 2025 17:17:45 +0800 Subject: [PATCH] bug修改 --- src/views/safetyReview/projectManage/components/processCtrlReview.vue | 64 +++++++++++++++++--------------- 1 files changed, 34 insertions(+), 30 deletions(-) diff --git a/src/views/safetyReview/projectManage/components/processCtrlReview.vue b/src/views/safetyReview/projectManage/components/processCtrlReview.vue index da77470..85ec8b9 100644 --- a/src/views/safetyReview/projectManage/components/processCtrlReview.vue +++ b/src/views/safetyReview/projectManage/components/processCtrlReview.vue @@ -17,7 +17,7 @@ <el-col :span="6"> <el-form-item prop="processLeader.name" label="过程控制负责人"> <el-input - v-model="state.formData.processLeader.name" + v-model.trim="state.formData.processLeader.name" size="large" placeholder="请选择过程控制负责人" @focus="openExperts('过程控制负责人')" @@ -51,7 +51,7 @@ <el-table-column label="不符合描述" header-align="center" class-name="small-padding fixed-width" width="700"> <template #default="scope"> <el-input - v-model="scope.row.reason" + v-model.trim="scope.row.reason" size="large" :disabled="scope.row.status == 1" placeholder="如不符合,请填写不符合描述" @@ -61,7 +61,7 @@ </el-table> <el-form-item prop="suggestions" label="存在问题及建议"> <el-input - v-model="state.formData.suggestions" + v-model.trim="state.formData.suggestions" :autosize="{ minRows: 6 }" maxlength="500" show-word-limit @@ -131,7 +131,7 @@ {id: 9, content: '技术负责人审核', status: 1, key:'isTechnolgyAudit', reasonKey: 'technolgyAuditDes', reason: ''}, {id: 6, content: '评价报告外审意见', status: 1, key:'isExteriorAudit', reasonKey: 'exteriorAuditDes', reason: ''}, {id: 7, content: '评价项目网上信息公开', status: 1, key:'isOpenInformation', reasonKey: 'openInformationDes', reason: ''}, - {id: 8, content: '二维码的使用', status: 1, key:'isUseQrcode', reasonKey: 'useQrcodeDes', reason: ''}, + // {id: 8, content: '二维码的使用', status: 1, key:'isUseQrcode', reasonKey: 'useQrcodeDes', reason: ''}, {id: 9, content: '报告归档材料完整性', status: 1, key:'isFullMaterials', reasonKey: 'fullMaterialsDes', reason: ''} ], uploadUrl: import.meta.env.VITE_APP_BASE_API + '/manage/accessory-file/uploadFile', @@ -150,6 +150,8 @@ isAmin.value = true; } getProcessFiles(props.projectId) + isEnd.value = Cookies.get('end') + projectType.value = route.query.type; }) const projectType = ref(''); @@ -316,32 +318,34 @@ } const handleRemove = async (file, uploadFile) => { - ElMessageBox.confirm( - '确定删除该附件?', - '提示', - { - confirmButtonText: '确定', - cancelButtonText: '取消', - type: 'warning', - }) - .then( async() => { - const res = await delFile(file.id) - if(res.code == 200){ - ElMessage({ - type: 'success', - message: '文件已删除' - }) - await getProcessFiles() - }else{ - ElMessage({ - type: 'warning', - message: res.message - }) - } - }) - .catch(()=>{ - getProcessFiles() - }) + if(file && file.status == 'success') { + ElMessageBox.confirm( + '确定删除该附件?', + '提示', + { + confirmButtonText: '确定', + cancelButtonText: '取消', + type: 'warning', + }) + .then(async () => { + const res = await delFile(file.id) + if (res.code == 200) { + ElMessage({ + type: 'success', + message: '文件已删除' + }) + await getProcessFiles() + } else { + ElMessage({ + type: 'warning', + message: res.message + }) + } + }) + .catch(() => { + getProcessFiles() + }) + } } defineExpose({ -- Gitblit v1.9.2