Commit 7b2c7449 authored by jingnan's avatar jingnan 👀

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

parent 284482b0
...@@ -192,7 +192,10 @@ export default { ...@@ -192,7 +192,10 @@ export default {
// 发送请求 // 发送请求
post('/ExtScanCodeRecord/search', params) post('/ExtScanCodeRecord/search', params)
.then((res) => { .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 this.tablePagination.total = res.items.totalElements
}) })
.catch((err) => console.log(err)) .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