Browse Source

issue文件迁移 Vue2升级Vue3 10/25-11/8

hella_vue3
王志国 2 weeks ago
parent
commit
30e0ca53c5
  1. 15
      src/pages/issue/record/directIssue.vue

15
src/pages/issue/record/directIssue.vue

@ -1,7 +1,7 @@
<template>
<view class="page-wraper">
<view class="">
<com-blank-view @goScan="getBusinessType" v-if="detailSource.length == 0"></com-blank-view>
<com-blank-view @goScan="showFromLocationPopup" v-if="detailSource.length == 0"></com-blank-view>
</view>
<view class="page-wraper" v-if="detailSource.length > 0">
@ -104,7 +104,7 @@ onLoad((option) => {
title: option.title
})
clearData()
getBusinessType()
getBusinessTypeFun()
// getBusinessType(businessTypeCode.value, (res) => {
// if (res.success) {
// businessType.value = res.businessType
@ -140,13 +140,13 @@ onNavigationBarButtonTap((e) => {
closeScanPopup();
}
})
const getBusinessType = ()=> {
const getBusinessTypeFun = ()=> {
getBusinessType(businessTypeCode.value, res => {
if (res.success) {
businessType.value = res.businessType;
fromInventoryStatuses.value = getDirectoryItemArray(res.fromInventoryStatuses);
fromLocationAreaTypeList.value = res.fromLocationAreaTypeList
openScanPopup();
showFromLocationPopup();
} else {
showErrorMessage(res.message)
}
@ -204,7 +204,6 @@ const setData = (result)=> {
detailSource.value.push(itemp)
itemCode.value = balance.itemCode;
fromLocationCode.value = balance.locationCode
await this.getToLocationBalance(this.fromLocationCode,result)
scanPopupGetFocus()
} else {
let detail = item.subList.find(r => {
@ -531,10 +530,10 @@ const removePack = () => {
}
const openScanPopup = () => {
if (businessType.value == '') {
scanPopup.value.openScanPopup(this.businessType);
if (fromLocationCode.value == '') {
showFromLocationPopup();
}else {
getBusinessType()
scanPopup.value.openScanPopup(businessType.value);
}
}
const showFromLocationPopup = () => {

Loading…
Cancel
Save