feat:打印消息缓存
This commit is contained in:
@@ -48,6 +48,7 @@
|
||||
<up-button
|
||||
v-if="sampleData.id"
|
||||
:disabled="sampleData.returnStatus !== 'completed'"
|
||||
:loading="btnLoading"
|
||||
type="primary"
|
||||
style="width: 90%"
|
||||
text="打印归库标签"
|
||||
@@ -110,8 +111,13 @@ async function getSampleDetail() {
|
||||
sampleData.value = list[0]
|
||||
}
|
||||
}
|
||||
let btnLoading = ref(false)
|
||||
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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user