feat:打印模板提示
This commit is contained in:
@@ -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 = {
|
||||||
|
|||||||
@@ -91,7 +91,7 @@ function handleReturnToStock() {
|
|||||||
})
|
})
|
||||||
if (res.isPrint == 1) {
|
if (res.isPrint == 1) {
|
||||||
// 执行打印
|
// 执行打印
|
||||||
nx.$print.getPrintTemplateAndPrint(res.id)
|
nx.$print.print(res)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user