Browse Source

库存品查看二维码修复

dev-xx
马远东 11 months ago
parent
commit
27c69fd42a
  1. 30
      src/views/distribution/deliverylist/distributionDeliveryListedt.vue

30
src/views/distribution/deliverylist/distributionDeliveryListedt.vue

@ -555,7 +555,7 @@
>
<template #default="slotProps">
<template v-if="slotProps.scope.column.label === '操作'">
<el-text size="small" @click="handleQRCode(slotProps.scope.row)"
<el-text size="small" @click="handleStockQRCode(slotProps.scope.row)"
>查看二维码</el-text
>
<el-text
@ -4285,6 +4285,34 @@ export default {
// this.title = ''
// this.view = true;
// this.box = true;
try {
this.loadingObj.pageLoading = true;
this.materialQRCode = row;
let qr = {
ids: row.id,
};
this.html = '';
const res = await showOrderPackgeCode(qr);
const { code, data } = res.data;
if (code !== 200) return;
// this.orderPackageCode = res.data
console.log(res.data);
this.html = this.getHtmls(data.dataList, data.templateHtml);
this.isShowPrint = true;
} catch (error) {
console.log('error :>> ', error);
} finally {
this.loadingObj.pageLoading = false;
}
},
//
async handleStockQRCode(row){
try {
this.loadingObj.pageLoading = true;

Loading…
Cancel
Save