...
|
...
|
@@ -117,7 +117,13 @@ export default () => { |
|
|
title: '收货进度(收货数/已发数)',
|
|
|
align: 'center',
|
|
|
render(row) {
|
|
|
return `<i-progress :percent="${(row.inStoreNum / row.shipmentsNums) * 100}" hide-info>
|
|
|
if (row.shipmentsNums === 0 || row.inStoreNum === row.shipmentsNums) {
|
|
|
return `<i-progress :percent="100" hide-info>
|
|
|
</i-progress><p>${row.inStoreNum}/${row.shipmentsNums}</p>`;
|
|
|
}
|
|
|
|
|
|
return `<i-progress status="wrong"
|
|
|
:percent="${(row.inStoreNum / row.shipmentsNums) * 100}" hide-info>
|
|
|
</i-progress><p>${row.inStoreNum}/${row.shipmentsNums}</p>`;
|
|
|
}
|
|
|
},
|
...
|
...
|
|