| | |
| | | {{ row.cartonQty ?? "-" }} |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="塑料袋数量" min-width="120"> |
| | | <template #default="{ row }"> |
| | | {{ row.plasticBagQty ?? "-" }} |
| | | </template> |
| | | </el-table-column> |
| | | <!-- <el-table-column label="计量单位" width="120">--> |
| | | <!-- <template #default="{ row }">--> |
| | | <!-- {{ row.unit || "-" }}--> |
| | |
| | | <template #default="{ row }"> |
| | | <el-input-number |
| | | v-model="row.cartonPickQty" |
| | | :min="0" |
| | | :precision="3" |
| | | :step="1" |
| | | controls-position="right" |
| | | style="width: 100%;" |
| | | /> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="塑料袋领用数量" min-width="120"> |
| | | <template #default="{ row }"> |
| | | <el-input-number |
| | | v-model="row.plasticBagPickQty" |
| | | :min="0" |
| | | :precision="3" |
| | | :step="1" |
| | |
| | | materialModel: row.materialModel || "", |
| | | basePaperQty: Number(row.basePaperQty ?? row.requiredQty ?? 0), |
| | | cartonQty: Number(row.cartonQty ?? 0), |
| | | plasticBagQty: Number(row.plasticBagQty ?? 0), |
| | | basePaperPickQty: Number(row.basePaperPickQty ?? row.pickQty ?? 0), |
| | | cartonPickQty: Number(row.cartonPickQty ?? 0), |
| | | plasticBagPickQty: Number(row.plasticBagPickQty ?? 0), |
| | | unit: row.unit || "", |
| | | }); |
| | | |
| | |
| | | item.basePaperPickQty === null || |
| | | item.basePaperPickQty === undefined || |
| | | item.cartonPickQty === null || |
| | | item.cartonPickQty === undefined || |
| | | item.plasticBagPickQty === null || |
| | | item.plasticBagPickQty === undefined |
| | | item.cartonPickQty === undefined |
| | | ); |
| | | if (invalidRow) { |
| | | return { valid: false, message: "请完善领用数量后再保存" }; |
| | |
| | | } |
| | | materialSaving.value = true; |
| | | try { |
| | | await saveMaterialPickingLedger(materialTableData.value[0]); |
| | | const firstRow = { ...materialTableData.value[0] }; |
| | | await saveMaterialPickingLedger(firstRow); |
| | | emit("saved"); |
| | | dialogVisible.value = false; |
| | | } finally { |