feat:样品标签打印
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
prefixIcon="scan"
|
||||
fontSize="16"
|
||||
prefixIconStyle="font-size: 30px;"
|
||||
@confirm="handleReturnToStock"
|
||||
>
|
||||
<template #suffix>
|
||||
<view class="fs18 font-bold" style="color: red" v-if="successCount > 0">{{ successCount }}</view>
|
||||
@@ -83,13 +84,14 @@ function handleReturnToStock() {
|
||||
})
|
||||
.then(res => {
|
||||
successCount.value++
|
||||
if (res.isPrint) {
|
||||
uni.showToast({
|
||||
title: `归库成功,归库码为【${res.code}】`,
|
||||
duration: 3000,
|
||||
icon: 'none'
|
||||
})
|
||||
uni.showToast({
|
||||
title: `归库成功`,
|
||||
duration: 3000,
|
||||
icon: 'none'
|
||||
})
|
||||
if (res.isPrint == 1) {
|
||||
// 执行打印
|
||||
nx.$print.print(res)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user