| | |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="数量" prop="quantity" /> |
| | | <el-table-column label="退货数量" prop="returnQuantity" /> |
| | | <el-table-column label="待发货数量" prop="noQuantity" /> |
| | | <el-table-column label="税率(%)" prop="taxRate" /> |
| | | <el-table-column |
| | |
| | | <el-table-column |
| | | label="合同金额(元)" |
| | | prop="contractAmount" |
| | | width="220" |
| | | show-overflow-tooltip |
| | | :formatter="formattedNumber" |
| | | /> |
| | | <el-table-column |
| | | label="实际合同金额(元)" |
| | | prop="netContractAmount" |
| | | width="220" |
| | | show-overflow-tooltip |
| | | :formatter="formattedNumber" |
| | |
| | | return; |
| | | } |
| | | |
| | | // 检查是否只剩一条数据,销售台账至少保留一条产品 |
| | | if (productData.value.length <= 1) { |
| | | proxy.$modal.msgWarning("销售台账至少需要保留一条产品数据"); |
| | | return; |
| | | } |
| | | |
| | | if (operationType.value === "add") { |
| | | productData.value = productData.value.filter( |
| | | (item) => !productSelectedRows.value.includes(item) |
| | |
| | | return; |
| | | } |
| | | |
| | | // 审批中时提示用户已有待审批的发货记录 |
| | | const statusStr = row.shippingStatus ? String(row.shippingStatus).trim() : ""; |
| | | if (statusStr === "审批中") { |
| | | proxy.$modal.msgWarning("该产品存在待审批的发货记录,请注意避免重复提交"); |
| | | } |
| | | |
| | | currentDeliveryRow.value = row; |
| | | const batchNoList = await getDeliveryBatchNoList( |
| | | row.productModelId || row.modelId |
| | |
| | | page-break-after: avoid; |
| | | } |
| | | } |
| | | </style> |
| | | </style> |