| | |
| | | type="index" |
| | | width="60" /> |
| | | <el-table-column label="产品大类" |
| | | prop="productCategory" /> |
| | | prop="productCategory" |
| | | :formatter="emptySlash" /> |
| | | <el-table-column label="规格型号" |
| | | prop="specificationModel" /> |
| | | prop="specificationModel" |
| | | :formatter="emptySlash" /> |
| | | <el-table-column label="单位" |
| | | prop="unit" /> |
| | | prop="unit" |
| | | :formatter="emptySlash" /> |
| | | <el-table-column label="入库审核状态" |
| | | prop="stockInApprovalStatus" |
| | | width="120"> |
| | | <template #default="scope"> |
| | | <el-tag :type="getStockInApprovalStatusType(scope.row.stockInApprovalStatus)" |
| | | size="small"> |
| | | {{ scope.row.stockInApprovalStatus || '--' }} |
| | | {{ scope.row.stockInApprovalStatus || '/' }} |
| | | </el-tag> |
| | | </template> |
| | | </el-table-column> |
| | |
| | | <el-table-column label="采购合同号" |
| | | prop="purchaseContractNumber" |
| | | width="160" |
| | | show-overflow-tooltip /> |
| | | show-overflow-tooltip |
| | | :formatter="emptySlash" /> |
| | | <el-table-column label="销售合同号" |
| | | prop="salesContractNo" |
| | | width="160" |
| | | show-overflow-tooltip /> |
| | | show-overflow-tooltip |
| | | :formatter="emptySlash" /> |
| | | <el-table-column label="供应商名称" |
| | | prop="supplierName" |
| | | width="160" |
| | | show-overflow-tooltip /> |
| | | show-overflow-tooltip |
| | | :formatter="emptySlash" /> |
| | | <el-table-column label="项目名称" |
| | | prop="projectName" |
| | | width="320" |
| | | show-overflow-tooltip /> |
| | | show-overflow-tooltip |
| | | :formatter="emptySlash" /> |
| | | <el-table-column label="审批状态" |
| | | prop="approvalStatus" |
| | | width="100" |
| | |
| | | <template #default="scope"> |
| | | <el-tag :type="getApprovalStatusType(scope.row.approvalStatus)" |
| | | size="small"> |
| | | {{ approvalStatusText[scope.row.approvalStatus] || '未知状态' }} |
| | | {{ approvalStatusText[scope.row.approvalStatus] || '/' }} |
| | | </el-tag> |
| | | </template> |
| | | </el-table-column> |
| | |
| | | <template #default="scope"> |
| | | <el-tag :type="getStockInStatusType(scope.row.stockInStatus)" |
| | | size="small"> |
| | | {{ scope.row.stockInStatus || '--' }} |
| | | {{ scope.row.stockInStatus || '/' }} |
| | | </el-tag> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="签订日期" |
| | | prop="executionDate" |
| | | width="100" |
| | | show-overflow-tooltip /> |
| | | show-overflow-tooltip |
| | | :formatter="emptySlash" /> |
| | | <el-table-column label="付款方式" |
| | | width="100" |
| | | prop="paymentMethod" |
| | | show-overflow-tooltip /> |
| | | show-overflow-tooltip |
| | | :formatter="emptySlash" /> |
| | | <el-table-column label="合同金额(元)" |
| | | prop="contractAmount" |
| | | width="200" |
| | |
| | | <el-table-column label="录入人" |
| | | prop="recorderName" |
| | | width="120" |
| | | show-overflow-tooltip /> |
| | | show-overflow-tooltip |
| | | :formatter="emptySlash" /> |
| | | <el-table-column label="录入日期" |
| | | prop="entryDate" |
| | | width="100" |
| | | show-overflow-tooltip /> |
| | | show-overflow-tooltip |
| | | :formatter="emptySlash" /> |
| | | <el-table-column label="备注" |
| | | prop="remarks" |
| | | width="200" |
| | | show-overflow-tooltip /> |
| | | show-overflow-tooltip |
| | | :formatter="emptySlash" /> |
| | | <el-table-column fixed="right" |
| | | label="操作" |
| | | width="120" |
| | |
| | | type="index" |
| | | width="60" /> |
| | | <el-table-column label="产品大类" |
| | | prop="productCategory" /> |
| | | prop="productCategory" |
| | | :formatter="emptySlash" /> |
| | | <el-table-column label="规格型号" |
| | | prop="specificationModel" /> |
| | | prop="specificationModel" |
| | | :formatter="emptySlash" /> |
| | | <el-table-column label="单位" |
| | | prop="unit" |
| | | width="70" /> |
| | | width="70" |
| | | :formatter="emptySlash" /> |
| | | <el-table-column label="数量" |
| | | prop="quantity" |
| | | width="70" /> |
| | |
| | | <template #default="scope"> |
| | | <el-tag :type="getStockInApprovalStatusType(scope.row.stockInApprovalStatus)" |
| | | size="small"> |
| | | {{ scope.row.stockInApprovalStatus || '--' }} |
| | | {{ scope.row.stockInApprovalStatus || '/' }} |
| | | </el-tag> |
| | | </template> |
| | | </el-table-column> |
| | |
| | | const formattedNumber = (row, column, cellValue) => { |
| | | return parseFloat(cellValue).toFixed(2); |
| | | }; |
| | | // 空字段统一显示 "/" |
| | | const emptySlash = (row, column, cellValue) => |
| | | cellValue === null || cellValue === undefined || cellValue === "" |
| | | ? "/" |
| | | : cellValue; |
| | | // 查询列表 |
| | | /** 搜索按钮操作 */ |
| | | const handleQuery = () => { |
| | |
| | | }; |
| | | const formatMoney = value => { |
| | | if (value === null || value === undefined || value === "") { |
| | | return "--"; |
| | | return "/"; |
| | | } |
| | | const num = Number(value); |
| | | return Number.isFinite(num) ? num.toFixed(2) : "--"; |
| | | return Number.isFinite(num) ? num.toFixed(2) : "/"; |
| | | }; |
| | | // 子表合计方法 |
| | | const summarizeProTable = param => { |