Commit cd5666f6 authored by jingnan's avatar jingnan 👀

胶漆材料记实数量由科学记数法转换为普通类型

parent 7b370d84
......@@ -192,7 +192,10 @@ export default {
// 发送请求
post('/ExtScanCodeRecord/search', params)
.then((res) => {
this.tableData = res.items.content || []
this.tableData = res.items.content.map(item => {
item.amount = Number(item.amount).toFixed(20).replace(/\.0+$/, '').replace(/(\.\d+[1-9])0+$/, '$1')
return item
}) || []
this.tablePagination.total = res.items.totalElements
})
.catch((err) => console.log(err))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment