优化盘点功能
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user