Browse Source

报废出库申请保留两位小数

hella_online_20240911
yufei_wang 3 months ago
parent
commit
22aaf3d2be
  1. 5
      src/views/wms/inventoryjobManage/scrap/scrapRequestMain/index.vue

5
src/views/wms/inventoryjobManage/scrap/scrapRequestMain/index.vue

@ -653,6 +653,11 @@ const submitForm = async (formType, submitData) => {
data.id = data.masterId
}
data.subList = tableData.value //
data.subList.forEach(item=>{
item.qty = Number(item.qty).toFixed(2)
item.singlePrice = Number(item.singlePrice).toFixed(2)
item.amount = Number(item.amount).toFixed(2)
})
try {
if (formType === 'create') {
console.log('【报废出库子列表】', data.subList)

Loading…
Cancel
Save