| | |
| | | ElMessage.error("请输入库存区域") |
| | | return |
| | | }*/ |
| | | let flowData |
| | | if(selectRecords.height===undefined){ |
| | | flowData = ref({ |
| | | |
| | | title: titleUploadData.value, |
| | | materialCode: selectRecords.id, |
| | | userName:userStore.user.userName, |
| | | userId:userStore.user.userId |
| | | |
| | | let flowData = ref({ |
| | | totalArea: parseFloat(divideAuto(multiply(selectRecords.height,selectRecords.width),1000000,2))*titleUploadData.value.inventoryQuantity, |
| | | singlePieceArea: parseFloat(divideAuto(multiply(selectRecords.height,selectRecords.width),1000000,2)), |
| | | title: titleUploadData.value, |
| | | materialCode: selectRecords.id, |
| | | userName:userStore.user.userName, |
| | | userId:userStore.user.userId |
| | | }) |
| | | }else{ |
| | | flowData = ref({ |
| | | totalArea: parseFloat(divideAuto(multiply(selectRecords.height,selectRecords.width),1000000,2))*titleUploadData.value.inventoryQuantity, |
| | | singlePieceArea: parseFloat(divideAuto(multiply(selectRecords.height,selectRecords.width),1000000,2)), |
| | | title: titleUploadData.value, |
| | | materialCode: selectRecords.id, |
| | | userName:userStore.user.userName, |
| | | userId:userStore.user.userId |
| | | |
| | | }) |
| | | }) |
| | | } |
| | | |
| | | console.log(flowData.value) |
| | | |
| | | request.post("/materialInventory/saveMaterialInventory", flowData.value).then((res) => { |