|
@@ -317,7 +317,7 @@
|
|
|
<td style="text-align: center; width: 10%">{{ row.contractCode }}</td>
|
|
|
<td style="text-align: center; width: 10%">{{ row.supplierName }}</td>
|
|
|
<td style="text-align: center; width: 10%; padding: 2px">
|
|
|
- <div style="display: flex; align-items: center; justify-content: center">
|
|
|
+ <div style="display: flex; align-items: center; justify-content: center" v-if="row.productImgUrl">
|
|
|
<img
|
|
|
:src="row.productImgUrl"
|
|
|
style="
|
|
@@ -329,7 +329,8 @@
|
|
|
object-position: 50% 50%;
|
|
|
background: #fff;
|
|
|
"
|
|
|
- @click="openFile(row.productImgUrl)" />
|
|
|
+ alt=""
|
|
|
+ fit="scale-down" />
|
|
|
</div>
|
|
|
</td>
|
|
|
<td style="text-align: center; width: 10%">{{ row.quantity }}</td>
|
|
@@ -924,8 +925,21 @@ const packDetail = ref({
|
|
|
const openPack = ref(false);
|
|
|
const clickShippingNotice = (row) => {
|
|
|
openPack.value = true;
|
|
|
- proxy.post("/pack/shipmentNotification", { id: row.packId }).then((res) => {
|
|
|
+ proxy.post("/pack/shipmentNotification", { id: row.packId }).then(async (res) => {
|
|
|
packDetail.value = res;
|
|
|
+ if (packDetail.value.packDetailList && packDetail.value.packDetailList.length > 0) {
|
|
|
+ for (let i = 0; i < packDetail.value.packDetailList.length; i++) {
|
|
|
+ if (packDetail.value.packDetailList[i].packDetailProductLists && packDetail.value.packDetailList[i].packDetailProductLists.length > 0) {
|
|
|
+ for (let j = 0; j < packDetail.value.packDetailList[i].packDetailProductLists.length; j++) {
|
|
|
+ if (packDetail.value.packDetailList[i].packDetailProductLists[j].productImgUrl) {
|
|
|
+ packDetail.value.packDetailList[i].packDetailProductLists[j].productImgUrl = await proxy.getImgBase64(
|
|
|
+ packDetail.value.packDetailList[i].packDetailProductLists[j].productImgUrl
|
|
|
+ );
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
});
|
|
|
};
|
|
|
const clickDownload = () => {
|