设计出图修改

This commit is contained in:
2025-08-19 14:56:48 +08:00
parent 3b61e84a7f
commit 53309746f5
10 changed files with 819 additions and 80 deletions

View File

@ -58,9 +58,9 @@
<el-table-column label="卷册号" align="center" prop="volumeNumber" />
<el-table-column label="资料名称" align="center" prop="documentName" />
<el-table-column label="计划出图时间" align="center" prop="plannedCompletion" width="200" />
<el-table-column label="审核状态" align="center" prop="auditStatus">
<el-table-column label="图纸文件" align="center" prop="remark" width="150">
<template #default="scope">
<dict-tag :options="wf_business_status" :value="scope.row.auditStatus" />
<el-button link type="primary" icon="View" @click="handleView(scope.row)" v-hasPermi="['design:volumeFile:query']">查看文件</el-button>
</template>
</el-table-column>
<el-table-column label="上传说明" align="center" prop="explainText">
@ -69,11 +69,6 @@
</template>
</el-table-column>
<el-table-column label="备注" align="center" prop="remark" />
<el-table-column label="图纸文件" align="center" prop="remark" width="150">
<template #default="scope">
<el-button link type="primary" icon="View" @click="handleView(scope.row)" v-hasPermi="['design:volumeFile:query']">查看文件</el-button>
</template>
</el-table-column>
<el-table-column label="操作" align="center" fixed="right" width="200">
<template #default="scope">
<el-button
@ -94,25 +89,6 @@
v-hasPermi="['design:volumeFile:add']"
>上传图纸</el-button
>
<!-- <el-button
link
type="primary"
icon="edit"
@click="handleAudit(scope.row)"
v-if="scope.row.auditStatus == 'draft' || scope.row.auditStatus == 'back'"
>审核</el-button
>
<el-button link type="primary" icon="View" v-if="scope.row.auditStatus != 'draft'" @click="handleAuditView(scope.row)"
>查看流程</el-button
>
<el-button
type="warning"
link
icon="View"
v-if="scope.row.auditType == 'back' || scope.row.auditStatus == 'termination'"
@click="handleViewHistory(scope.row)"
>查看单据</el-button
> -->
</template>
</el-table-column>
</el-table>
@ -161,7 +137,7 @@
</el-dialog>
<el-dialog draggable title="上传图纸文件" v-model="uploadVisible" width="500px" append-to-body>
<el-form :model="uploadForm" label-width="80px" :inline="false">
<el-form-item label="图" prop="type">
<el-form-item label="图纸类型" prop="type">
<el-select v-model="uploadForm.type" placeholder="请选择图纸类型"
><el-option label="过程图纸" value="1" /><el-option label="蓝图" value="3"
/></el-select>
@ -182,40 +158,56 @@
<!-- 查看文件列表 -->
<el-dialog draggable title="图纸列表" v-model="viewVisible" width="45%">
<el-tabs type="border-card" v-model="activeName" class="demo-tabs" @tab-click="handleClick">
<el-tab-pane label="蓝图" name="first"
<el-tab-pane label="蓝图" name="3"
><TableContent :data="fileList" :wf-business-status="wf_business_status">
<template #operation="{ row }">
<el-button link type="primary" icon="edit" @click="handleAudit(row)" v-if="row.status == 'draft' || row.status == 'back'"
<el-button link type="primary" icon="edit" @click="handleAuditLantu(row)" v-if="row.auditStatus == 'draft' || row.auditStatus == 'back'"
>审核</el-button
>
<el-button link type="primary" icon="View" v-if="row.auditStatus != 'draft'" @click="handleAuditViewLantu(row)">查看流程</el-button>
<el-button type="danger" link icon="Download" @click="handleDownload(row)"> 下载 </el-button>
<el-button
type="warning"
link
icon="View"
v-if="row.auditStatus == 'back' || row.auditStatus == 'termination' || row.auditStatus == 'finish'"
@click="handleViewHistory(row)"
>查看单据</el-button
>
</template>
</TableContent></el-tab-pane
>
<el-tab-pane label="过程图纸 " name="1"
><TableContent :data="fileList" :wf-business-status="wf_business_status">
<template #operation="{ row }">
<el-button link type="primary" icon="edit" @click="handleAudit(row)" v-if="row.auditStatus == 'draft' || row.auditStatus == 'back'"
>审核</el-button
>
<el-button link type="primary" icon="View" v-if="row.status != 'draft'" @click="handleAuditView(row)">查看流程</el-button>
<el-button type="danger" link icon="Download" @click="handleDownload(row)"> 下载 </el-button>
</template>
</TableContent></el-tab-pane
>
<el-tab-pane label="过程图纸 " name="second"
><TableContent :data="fileList" :wf-business-status="wf_business_status">
<template #operation="{ row }">
<el-button link type="primary" icon="edit" @click="handleAudit(row)" v-if="row.status == 'draft' || row.status == 'back'"
>审核</el-button
<el-button
type="warning"
link
icon="View"
v-if="row.auditStatus == 'back' || row.auditStatus == 'termination' || row.auditStatus == 'finish'"
@click="handleViewHistory(row)"
>查看单据</el-button
>
<el-button link type="primary" icon="View" v-if="row.status != 'draft'" @click="handleAuditView(row)">查看流程</el-button>
<el-button type="danger" link icon="Download" @click="handleDownload(row)"> 下载 </el-button>
</template>
</TableContent></el-tab-pane
>
<el-tab-pane label="变更" name="third"
<el-tab-pane label="变更" name="2"
><TableContent :data="fileList" :wf-business-status="wf_business_status">
<template #operation="{ row }">
<el-button type="danger" link icon="Download" @click="handleDownload(row)"> 下载 </el-button>
</template>
</TableContent></el-tab-pane
>
<el-tab-pane label="作废 " name="fourth"
<el-tab-pane label="作废 " name="4"
><TableContent :data="fileList" :wf-business-status="wf_business_status">
<template #operation="{ row }">
<el-button type="danger" link icon="Download" @click="handleDownload(row)"> 下载1 </el-button>
</template>
</template>
</TableContent></el-tab-pane
>
</el-tabs>
@ -240,7 +232,7 @@ import {
updateVolumeCatalog,
uploadVolumeFile,
getVolumeCatafileList,
lookViewerFile
volumeFileList
} from '@/api/design/volumeCatalog';
import { VolumeCatalogVO } from '@/api/design/volumeCatalog/types';
import { useUserStoreHook } from '@/store/modules/user';
@ -260,7 +252,8 @@ const histroyRef = ref<InstanceType<typeof histroy>>();
const TableContentRef = ref<InstanceType<typeof TableContentRef>>();
const single = ref(true);
const multiple = ref(true);
const activeName = ref('first');
const activeName = ref('3');
const design = ref('');
const total = ref(0);
const dialogHistory = ref(false);
// 获取用户 store
@ -371,7 +364,7 @@ const handleViewHistory = async (row) => {
dialogHistory.value = true;
// 查看历史流程记录
nextTick(() => {
histroyRef.value?.getList(row.design);
histroyRef.value?.getList(row.id);
});
};
const handleShowInfo = (val) => {
@ -421,7 +414,8 @@ const handleAdd = () => {
const handleView = (row?: any) => {
fileList.value = row.fileVoList;
design.value = row.design;
getVolumeFileList('3');
viewVisible.value = true;
};
@ -511,12 +505,33 @@ const handleUploadSuccess = async (flieList: any, res: any) => {
proxy?.$modal.msgSuccess('文件上传成功');
getList();
};
/** 审核按钮操作 */
/** 审核蓝图按钮操作 */
const handleAuditLantu = async (row) => {
proxy.$tab.closePage(proxy.$route);
proxy.$router.push({
path: `/approval/volumeCatalog/blueprintEdit`,
query: {
id: row.id,
type: 'update'
}
});
};
/** 查看蓝图按钮操作 */
const handleAuditViewLantu = async (row) => {
proxy.$tab.closePage(proxy.$route);
proxy.$router.push({
path: `/approval/volumeCatalog/blueprintEdit`,
query: {
id: row.id,
type: 'view'
}
});
};
/** 审核过程按钮操作 */
const handleAudit = async (row) => {
proxy.$tab.closePage(proxy.$route);
proxy.$router.push({
path: `/approval/drawingreview/indexEdit`,
path: `/approval/volumeCatalog/indexEdit`,
query: {
id: row.id,
type: 'update'
@ -527,7 +542,7 @@ const handleAudit = async (row) => {
const handleAuditView = async (row) => {
proxy.$tab.closePage(proxy.$route);
proxy.$router.push({
path: `/approval/drawingreview/indexEdit`,
path: `/approval/volumeCatalog/indexEdit`,
query: {
id: row.id,
type: 'view'
@ -543,9 +558,17 @@ const handleUpdate = async (row?: VolumeCatalogVO) => {
dialog.visible = true;
dialog.title = '修改设计出图计划';
};
// 过程图纸
const handleClick = () => {
//
// 获取文件列表
const getVolumeFileList = async (type) => {
let res = await volumeFileList({ volumeCatalogId: design.value, type });
fileList.value = [];
if (res.code === 200) {
fileList.value = res.rows;
}
};
// 切换
const handleClick = (val) => {
getVolumeFileList(val.props.name);
};
const handleAuditInfo = (row) => {
// 审核图纸