|
|
|
@ -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; |
|
|
|
|
|
|
|
|
|