|
@@ -115,13 +115,13 @@ export default {
|
|
if (res.data.okList && res.data.okList.length > 0) {
|
|
if (res.data.okList && res.data.okList.length > 0) {
|
|
res.data.okList.map((item, index) => {
|
|
res.data.okList.map((item, index) => {
|
|
item.no = index + 1
|
|
item.no = index + 1
|
|
- item.costText = Number(item.costText).toFixed(2)
|
|
|
|
|
|
+ item.costText = item.costText instanceof Number ? Number(item.costText).toFixed(2) : item.costText
|
|
})
|
|
})
|
|
}
|
|
}
|
|
if (res.data.failList && res.data.failList.length > 0) {
|
|
if (res.data.failList && res.data.failList.length > 0) {
|
|
res.data.failList.map((item, index) => {
|
|
res.data.failList.map((item, index) => {
|
|
item.no = index + 1
|
|
item.no = index + 1
|
|
- item.costText = Number(item.costText).toFixed(2)
|
|
|
|
|
|
+ item.costText = item.costText instanceof Number ? Number(item.costText).toFixed(2) : item.costText
|
|
})
|
|
})
|
|
}
|
|
}
|
|
_this.loadData = res.data.okList || []
|
|
_this.loadData = res.data.okList || []
|