feat:打印模板提示

This commit is contained in:
houjunxiang
2025-11-24 16:57:54 +08:00
parent 6255d6ae3f
commit f1efe8ee61
2 changed files with 2 additions and 1 deletions

View File

@@ -197,6 +197,7 @@ export default {
//调用send方法执行打印 //调用send方法执行打印
print(businessSubData) { print(businessSubData) {
const { printTemplate } = businessSubData const { printTemplate } = businessSubData
if (!printTemplate) return uni.showToast({ title: '样品未配置打印模板' })
const me = this const me = this
me.getReportData(printTemplate, function (res) { me.getReportData(printTemplate, function (res) {
const reportData = { const reportData = {

View File

@@ -91,7 +91,7 @@ function handleReturnToStock() {
}) })
if (res.isPrint == 1) { if (res.isPrint == 1) {
// 执行打印 // 执行打印
nx.$print.getPrintTemplateAndPrint(res.id) nx.$print.print(res)
} }
}) })
} }