优化
This commit is contained in:
@ -83,7 +83,7 @@
|
||||
import { downloadByUrl } from '/@/utils/file/download';
|
||||
import { DeleteOutlined } from '@ant-design/icons-vue';
|
||||
import searchForm from './components/searchForm.vue'
|
||||
|
||||
import NP from 'number-precision';
|
||||
|
||||
const { bus, CREATE_FLOW, FLOW_PROCESSED, FORM_LIST_MODIFIED } = useEventBus();
|
||||
|
||||
@ -168,6 +168,10 @@
|
||||
...formState.value,
|
||||
});
|
||||
tableData.value = res.list || [];
|
||||
tableData.value.forEach(v=> {
|
||||
v.qtySalesM3 = NP.divide(Number(v.qtySalesM3), 10000)
|
||||
v.qtyMeaM3 = NP.divide(Number(v.qtyMeaM3), 10000)
|
||||
})
|
||||
total.value = res.total || res.length || 0;
|
||||
} catch (error) {
|
||||
console.error('获取列表失败:', error);
|
||||
@ -260,6 +264,10 @@
|
||||
});
|
||||
return;
|
||||
}
|
||||
selectedRowsData.value.forEach(v => {
|
||||
v.qtyMeaM3 = NP.times(Number(v.qtyMeaM3), 10000)
|
||||
v.qtySalesM3 = NP.times(Number(v.qtySalesM3), 10000)
|
||||
})
|
||||
await updateLngPngMeasureSalesPur(selectedRowsData.value)
|
||||
handleSuccess();
|
||||
notification.success({
|
||||
@ -275,6 +283,10 @@
|
||||
});
|
||||
return;
|
||||
}
|
||||
selectedRowsData.value.forEach(v => {
|
||||
v.qtyMeaM3 = NP.times(Number(v.qtyMeaM3), 10000)
|
||||
v.qtySalesM3 = NP.times(Number(v.qtySalesM3), 10000)
|
||||
})
|
||||
await addLngPngMeasureSalesPur(selectedRowsData.value)
|
||||
handleSuccess();
|
||||
notification.success({
|
||||
|
||||
Reference in New Issue
Block a user