| | |
| | | mergeForm.totalAssignedQuantity = |
| | | (Number(row.volume) - Number(row.assignedQuantity)).toFixed(4) || 0; |
| | | mergeForm.planCompleteTime = row.planCompleteTime || ""; |
| | | mergeForm.productMaterialId = row.productMaterialId || ""; |
| | | mergeForm.strength = row.strength || ""; |
| | | sumAssignedQuantity.value = mergeForm.totalAssignedQuantity; |
| | | // 打开弹窗 |
| | |
| | | totalAssignedQuantity: 0, |
| | | planCompleteTime: "", |
| | | strength: "", |
| | | productMaterialId: "", |
| | | }); |
| | | |
| | | // 导入相关 |
| | |
| | | router.push({ |
| | | path: "/productionPlan/trackProgress", |
| | | query: { |
| | | row: encodeURIComponent(JSON.stringify(row)), |
| | | applyNo: encodeURIComponent(row.applyNo), |
| | | }, |
| | | }); |
| | | }; |
| | |
| | | mergeForm.height = firstRow.height || 0; |
| | | mergeForm.totalAssignedQuantity = totalAssignedQuantity; |
| | | mergeForm.planCompleteTime = firstRow.planCompleteTime || ""; |
| | | mergeForm.productMaterialId = firstRow.productMaterialId || ""; |
| | | mergeForm.strength = firstStrength; |
| | | mergeForm.ids = selectedRows.value.map(row => row.id); |
| | | |
| | |
| | | ElMessage.error("砌块产品的强度为必填项"); |
| | | return; |
| | | } |
| | | if (mergeForm.productName != "砌块") { |
| | | mergeForm.strength = ""; |
| | | } |
| | | console.log(sumAssignedQuantity.value, "sumAssignedQuantity"); |
| | | // 计算当前选中行的总方数 |
| | | const totalVolume = selectedRows.value.reduce((sum, row) => { |