| | |
| | | { |
| | | label: isQuotationType ? "报价单号" : isPurchaseType ? "采购合同号" : "审批事由", |
| | | prop: "approveReason", |
| | | width: 200 |
| | | }, |
| | | { |
| | | label: "申请人", |
| | |
| | | }); |
| | | |
| | | // 操作列 |
| | | baseColumns.push({ |
| | | dataType: "action", |
| | | label: "操作", |
| | | align: "center", |
| | | fixed: "right", |
| | | width: 230, |
| | | operation: [ |
| | | const actionOperations = [ |
| | | { |
| | | name: "编辑", |
| | | type: "text", |
| | |
| | | clickFun: (row) => { |
| | | openApprovalDia("approval", row); |
| | | }, |
| | | disabled: (row) => row.approveUserCurrentId == null || row.approveStatus == 2 || row.approveStatus == 3 || row.approveStatus == 4 || row.approveUserCurrentId !== userStore.id |
| | | disabled: (row) => |
| | | row.approveUserCurrentId == null || |
| | | row.approveStatus == 2 || |
| | | row.approveStatus == 3 || |
| | | row.approveStatus == 4 || |
| | | row.approveUserCurrentId !== userStore.id |
| | | }, |
| | | { |
| | | name: "详情", |
| | | type: "text", |
| | | clickFun: (row) => { |
| | | openApprovalDia('view', row); |
| | | openApprovalDia("view", row); |
| | | }, |
| | | }, |
| | | { |
| | | ]; |
| | | |
| | | // 报价审批(类型 6)不展示“附件”操作 |
| | | if (!isQuotationType) { |
| | | actionOperations.push({ |
| | | name: "附件", |
| | | type: "text", |
| | | clickFun: (row) => { |
| | | downLoadFile(row); |
| | | }, |
| | | }, |
| | | ], |
| | | }); |
| | | } |
| | | |
| | | baseColumns.push({ |
| | | dataType: "action", |
| | | label: "操作", |
| | | align: "center", |
| | | fixed: "right", |
| | | width: 230, |
| | | operation: actionOperations, |
| | | }); |
| | | |
| | | return baseColumns; |