feat:添加打印模板页面-二维码样例

main
黄伟杰 2 days ago
parent 2d20ec5344
commit 13133c28be

Binary file not shown.

After

Width:  |  Height:  |  Size: 366 B

@ -72,6 +72,7 @@
import { defaultElementTypeProvider, hiprint } from 'vue-plugin-hiprint'
import { PrintTemplateApi } from '@/api/mes/printtemplate'
import { getSimpleDictDataList } from '@/api/system/dict/dict.data'
import qrCodeImg from '@/assets/imgs/qrCode.png'
const { t } = useI18n()
const message = useMessage()
@ -125,8 +126,8 @@ const barcodeProvider = function () {
type: 'image',
options: {
field: qrcodeField,
src: 'https://p119-minio-upload.ngsk.tech:7001/besure/productmaterial/qr/2026-04-17/295.png',
testData: 'https://p119-minio-upload.ngsk.tech:7001/besure/productmaterial/qr/2026-04-17/295.png',
src: qrCodeImg,
testData: qrCodeImg,
width: 80,
height: 80,
title: `${item.label}<br/>二维码`
@ -165,8 +166,8 @@ const qrcodeProvider = function () {
type: 'image',
options: {
field: '',
src: 'https://p119-minio-upload.ngsk.tech:7001/besure/productmaterial/qr/2026-04-17/295.png',
testData: 'https://p119-minio-upload.ngsk.tech:7001/besure/productmaterial/qr/2026-04-17/295.png',
src: qrCodeImg,
testData: qrCodeImg,
width: 80,
height: 80,
title: '二维码'

Loading…
Cancel
Save