Showing
1 changed file
with
7 additions
and
1 deletions
@@ -117,7 +117,13 @@ export default () => { | @@ -117,7 +117,13 @@ export default () => { | ||
117 | title: '收货进度(收货数/已发数)', | 117 | title: '收货进度(收货数/已发数)', |
118 | align: 'center', | 118 | align: 'center', |
119 | render(row) { | 119 | render(row) { |
120 | - return `<i-progress :percent="${(row.inStoreNum / row.shipmentsNums) * 100}" hide-info> | 120 | + if (row.shipmentsNums === 0 || row.inStoreNum === row.shipmentsNums) { |
121 | + return `<i-progress :percent="100" hide-info> | ||
122 | + </i-progress><p>${row.inStoreNum}/${row.shipmentsNums}</p>`; | ||
123 | + } | ||
124 | + | ||
125 | + return `<i-progress status="wrong" | ||
126 | + :percent="${(row.inStoreNum / row.shipmentsNums) * 100}" hide-info> | ||
121 | </i-progress><p>${row.inStoreNum}/${row.shipmentsNums}</p>`; | 127 | </i-progress><p>${row.inStoreNum}/${row.shipmentsNums}</p>`; |
122 | } | 128 | } |
123 | }, | 129 | }, |
-
Please register or login to post a comment