feat:打印消息缓存
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -91,7 +91,7 @@ function handleReturnToStock() {
|
|||||||
})
|
})
|
||||||
if (res.isPrint == 1) {
|
if (res.isPrint == 1) {
|
||||||
// 执行打印
|
// 执行打印
|
||||||
nx.$print.print(res)
|
nx.$print.getPrintTemplateAndPrint(res.id)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -48,6 +48,7 @@
|
|||||||
<up-button
|
<up-button
|
||||||
v-if="sampleData.id"
|
v-if="sampleData.id"
|
||||||
:disabled="sampleData.returnStatus !== 'completed'"
|
:disabled="sampleData.returnStatus !== 'completed'"
|
||||||
|
:loading="btnLoading"
|
||||||
type="primary"
|
type="primary"
|
||||||
style="width: 90%"
|
style="width: 90%"
|
||||||
text="打印归库标签"
|
text="打印归库标签"
|
||||||
@@ -110,8 +111,13 @@ async function getSampleDetail() {
|
|||||||
sampleData.value = list[0]
|
sampleData.value = list[0]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
let btnLoading = ref(false)
|
||||||
function handlePrint() {
|
function handlePrint() {
|
||||||
nx.$print.print(sampleData.value)
|
btnLoading.value = true
|
||||||
|
nx.$print.getPrintTemplateAndPrint(sampleData.value.id, () => {
|
||||||
|
uni.showToast({ title: '已打印', icon: 'success' })
|
||||||
|
btnLoading.value = false
|
||||||
|
})
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user