Authored by 李奇

进度条颜色修改

@@ -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 },