| | |
| | | prop="batchNo" |
| | | min-width="150" /> |
| | | <el-table-column label="需求数量" |
| | | prop="demandedQuantity" |
| | | min-width="110" /> |
| | | min-width="110"> |
| | | <template #default="{ row }"> |
| | | {{ stripTrailingZeros(row.demandedQuantity) }} |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="计量单位" |
| | | prop="unit" |
| | | width="100" /> |
| | | <el-table-column label="领用数量" |
| | | prop="pickQuantity" |
| | | min-width="110" /> |
| | | min-width="110"> |
| | | <template #default="{ row }"> |
| | | {{ stripTrailingZeros(row.pickQuantity) }} |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="补料数量" |
| | | min-width="120"> |
| | | <template #default="{ row }"> |
| | | <el-button type="primary" |
| | | link |
| | | @click="handleViewSupplementRecord(row)"> |
| | | {{ row.feedingQty ?? 0 }} |
| | | {{ stripTrailingZeros(row.feedingQty) ?? 0 }} |
| | | </el-button> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="退料数量" |
| | | min-width="110"> |
| | | <template #default="{ row }"> |
| | | {{ row.returnQty ?? 0 }} |
| | | {{ stripTrailingZeros(row.returnQty) ?? 0 }} |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="实际数量" |
| | |
| | | <template #default="{ row }"> |
| | | <el-input-number v-model="row.actualQty" |
| | | :min="0" |
| | | :precision="3" |
| | | :step="1" |
| | | controls-position="right" |
| | | placeholder="输入实际数量" |
| | | :formatter="value => stripTrailingZeros(value)" |
| | | :parser="value => parseFloat(value) || 0" |
| | | style="width: 100%;" |
| | | :disabled="row.returned || orderRow?.end" |
| | | @change="val => handleActualQtyChange(row, val)" /> |
| | |
| | | prop="unit" |
| | | min-width="100" /> |
| | | <el-table-column label="退料汇总数量" |
| | | prop="returnQtyTotal" |
| | | min-width="140" /> |
| | | min-width="140"> |
| | | <template #default="{ row }"> |
| | | {{ stripTrailingZeros(row.returnQtyTotal) }} |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | <template #footer> |
| | | <span class="dialog-footer"> |
| | |
| | | updateMaterialPickingLedger, |
| | | } from "@/api/productionManagement/productionOrder.js"; |
| | | |
| | | const stripTrailingZeros = val => { |
| | | const str = String(val ?? ""); |
| | | if (str.includes(".")) { |
| | | return parseFloat(str).toString(); |
| | | } |
| | | return str; |
| | | }; |
| | | |
| | | const props = defineProps({ |
| | | modelValue: { type: Boolean, default: false }, |
| | | orderRow: { type: Object, default: null }, |