Browse Source

新增根据收货单位排序

dev
qb 1 month ago
parent
commit
b1d932e145
  1. 21
      src/components/ArteryPrintTemplateV2/ArteryPrintTemplateV2.vue

21
src/components/ArteryPrintTemplateV2/ArteryPrintTemplateV2.vue

@ -84,15 +84,6 @@
<th style="border-bottom: 1px solid #000; border-left: 1px solid #000">卸车件数</th>
<th style="border-bottom: 1px solid #000; border-left: 1px solid #000">异常备注</th>
</tr>
<tr>
<th
style="border-bottom: 1px solid #000; border-left: 1px solid #000"
v-for="item in goodsTitleList"
:key="item"
>
{{ item }}
</th>
</tr>
<!-- -->
<template v-if="orderList.length > 0">
<tr v-for="(value, index) in orderList" style="word-break: break-all">
@ -280,6 +271,18 @@ const InitData = () => {
break;
}
if (!_flag) {
for (let j = _orderList.length - 1; j >= 0; j--) {
const item = _orderList[j];
console.log('j :>> ', j);
if (item.consignee !== val.consignee) continue;
_orderList.splice(j, 0, val);
_flag = true;
break;
}
}
!_flag && _orderList.push(val);
}

Loading…
Cancel
Save