| | |
| | | <template #status="{ row }"> |
| | | <el-tag :type="getStatusType(row.status)">{{ getStatusText(row.status) }}</el-tag> |
| | | </template> |
| | | <template #stockInApprovalStatus="{ row }"> |
| | | <el-tag :type="getStockInApprovalStatusType(row.stockInApprovalStatus)">{{ getStockInApprovalStatusText(row.stockInApprovalStatus) }}</el-tag> |
| | | </template> |
| | | </PIMTable> |
| | | </div> |
| | | <form-dia ref="formDia" @close="handleQuery" /> |
| | |
| | | const defaultColumns = [ |
| | | { label: "退货单号", prop: "returnNo", minWidth: 160 }, |
| | | { label: "单据状态", prop: "status", minWidth: 90, dataType: "slot", slot: "status" }, |
| | | { label: "入库审批状态", prop: "stockInApprovalStatus", minWidth: 120, dataType: "slot", slot: "stockInApprovalStatus" }, |
| | | { label: "制单时间", prop: "makeTime", minWidth: 170 }, |
| | | { label: "客户名称", prop: "customerName", minWidth: 220 }, |
| | | { label: "销售单号", prop: "salesContractNo", minWidth: 160 }, |
| | |
| | | return statusMap[status] || "未知"; |
| | | }; |
| | | |
| | | const getStockInApprovalStatusType = (status) => { |
| | | const statusMap = { |
| | | 0: "", |
| | | 1: "success", |
| | | 2: "warning" |
| | | }; |
| | | return statusMap[status] || "info"; |
| | | }; |
| | | |
| | | const getStockInApprovalStatusText = (status) => { |
| | | const statusMap = { |
| | | 0: "未审批", |
| | | 1: "已审批", |
| | | 2: "审批中" |
| | | }; |
| | | return statusMap[status] || "未知"; |
| | | }; |
| | | |
| | | onMounted(() => { |
| | | getList(); |
| | | }); |