优化盘点功能

This commit is contained in:
2026-03-11 14:59:00 +08:00
parent 0704be4c9f
commit 73bf350aa0
6 changed files with 72 additions and 29 deletions

View File

@@ -21,7 +21,7 @@
<script setup>
import { ref } from "vue";
import { onLoad } from "@dcloudio/uni-app";
import { onLoad, onUnload } from "@dcloudio/uni-app";
import { getHandMatch, getTaskCount } from "@/api/inventory"
const scanTotal = ref("")
@@ -32,6 +32,8 @@ const getTotal = () => {
taskId: taskInfo.value.id,
showLoading: true
}
obj.sceneId = uni.getStorageSync("taskInfo").sceneId
obj.warehouseCode = uni.getStorageSync("taskInfo").warehouseCode
getTaskCount(obj).then(res => {
scanTotal.value = res.data
})
@@ -78,6 +80,10 @@ onLoad(() => {
getTotal()
init()
})
onUnload(() => {
rfidManager.soundRelease();
})
// 插件初始化
const init = function () {
uni.showLoading({