| | |
| | | <el-tab-pane label="报价审批" name="6"></el-tab-pane> |
| | | <el-tab-pane label="发货审批" name="7"></el-tab-pane> |
| | | </el-tabs> |
| | | |
| | | |
| | | <div class="search_form"> |
| | | <div> |
| | | <span class="search_title">流程编号:</span> |
| | |
| | | const isReimburseType = currentApproveType.value === 4; // 报销管理 |
| | | const isQuotationType = currentApproveType.value === 6; // 报价审批 |
| | | const isPurchaseType = currentApproveType.value === 5; // 采购审批 |
| | | |
| | | |
| | | // 基础列配置 |
| | | const baseColumns = [ |
| | | { |
| | |
| | | width: 220 |
| | | }, |
| | | { |
| | | label: isQuotationType ? "报价单号" : isPurchaseType ? "采购合同号" : "审批事由", |
| | | label: isQuotationType ? "报价单号" : isPurchaseType ? "采购单号" : "审批事由", |
| | | prop: "approveReason", |
| | | }, |
| | | { |
| | |
| | | width: 120 |
| | | } |
| | | ]; |
| | | |
| | | |
| | | // 金额列(仅报销管理显示) |
| | | if (isReimburseType) { |
| | | baseColumns.push({ |
| | |
| | | width: 120 |
| | | }); |
| | | } |
| | | |
| | | |
| | | // 日期列(根据类型动态配置) |
| | | baseColumns.push( |
| | | { |
| | |
| | | width: 120 |
| | | } |
| | | ); |
| | | |
| | | |
| | | // 当前审批人列 |
| | | baseColumns.push({ |
| | | label: "当前审批人", |
| | | prop: "approveUserCurrentName", |
| | | width: 120 |
| | | }); |
| | | |
| | | |
| | | // 操作列 |
| | | const actionOperations = [ |
| | | { |
| | |
| | | width: 230, |
| | | operation: actionOperations, |
| | | }); |
| | | |
| | | |
| | | return baseColumns; |
| | | }); |
| | | const tableData = ref([]); |
| | |
| | | // 根据URL参数设置标签页和查询条件 |
| | | const approveType = route.query.approveType; |
| | | const approveId = route.query.approveId; |
| | | |
| | | |
| | | if (approveType) { |
| | | // 设置标签页(approveType 对应 activeTab 的 name) |
| | | activeTab.value = String(approveType); |
| | | } |
| | | |
| | | |
| | | if (approveId) { |
| | | // 设置流程编号查询条件 |
| | | searchForm.value.approveId = String(approveId); |
| | | } |
| | | |
| | | |
| | | // 查询列表 |
| | | getList(); |
| | | }); |