Browse Source

优化下架扫描

dev
qb 1 year ago
parent
commit
5dedd771dc
  1. 6
      config/host.js
  2. 402
      pages/index/index.vue
  3. 26
      pages/login/login.vue
  4. 6
      pagesHome/pages/DownGoods/DownGoods.vue
  5. 12
      pagesHome/pages/SelfPScanList/SelfPScanList.vue
  6. 2
      unpackage/dist/build/app-plus/pagesHome/pages/PickingScanList/PickingScanList.css
  7. 2
      unpackage/dist/dev/app-plus/app-config-service.js
  8. 98
      unpackage/dist/dev/app-plus/app-service.js
  9. 6
      unpackage/dist/dev/app-plus/manifest.json

6
config/host.js

@ -3,8 +3,8 @@
/** /**
* 测试域名 * 测试域名
* */ * */
//测试域名 //测试域名s
const devhost = 'http://test.api.huo5you.com/' // const devhost = 'http://test.api.huo5you.com/'
// lmy // lmy
// const devhost = 'http://192.168.10.123:8889/' // const devhost = 'http://192.168.10.123:8889/'
// zhy // zhy
@ -12,7 +12,7 @@ const devhost = 'http://test.api.huo5you.com/'
// xiaohei // xiaohei
// const devhost = 'http://192.168.3.18:13000/' // const devhost = 'http://192.168.3.18:13000/'
// tjj // tjj
// const devhost = 'http://192.168.3.14:13000/' const devhost = 'http://192.168.3.14:13000/'
// cyz // cyz
// const devhost = 'http://192.168.6.169:9777/' // const devhost = 'http://192.168.6.169:9777/'
// const devhost = 'http://192.168.6.141:8777/' // const devhost = 'http://192.168.6.141:8777/'

402
pages/index/index.vue

@ -40,213 +40,213 @@
const { storageArr } = storeToRefs(storageStore) const { storageArr } = storeToRefs(storageStore)
const tip = ref(null) const tip = ref(null)
let details = reactive<listtype>({ tablist: [] }); // let details = reactive<listtype>({ tablist: [] });
// let details = reactive<listtype>({ let details = reactive<listtype>({
// tablist: [ tablist: [
// { {
// type: 1, type: 1,
// name: '', name: '工作台',
// minilist: [ minilist: [
// { {
// icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png', icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png',
// name: '', name: '订单查询',
// router: '/pagesHome/pages/orderInquiry/orderInquiry', router: '/pagesHome/pages/orderInquiry/orderInquiry',
// }, },
// { {
// icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png', icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png',
// name: '', name: '运单查询',
// router: '/pagesHome/pages/waybillInquiry/waybillInquiry', router: '/pagesHome/pages/waybillInquiry/waybillInquiry',
// }, },
// { {
// icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png', icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png',
// name: '', name: '库位查询',
// router: '/pagesHome/pages/storageInquiry/storageInquiry', router: '/pagesHome/pages/storageInquiry/storageInquiry',
// }, },
// { {
// icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png', icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png',
// name: '', name: '托盘查询',
// router: '/pagesHome/pages/trayInquiry/trayInquiry', router: '/pagesHome/pages/trayInquiry/trayInquiry',
// }, },
// { {
// icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png', icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png',
// name: '', name: '库存品查询',
// router: '/pagesHome/pages/inventoryInquiry/inventoryInquiry', router: '/pagesHome/pages/inventoryInquiry/inventoryInquiry',
// }, },
// { {
// icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png', icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png',
// name: '', name: '物料维护',
// router: '/pagesHome/pages/MaterialMaintenance/MaterialMaintenance', router: '/pagesHome/pages/MaterialMaintenance/MaterialMaintenance',
// }, },
// { {
// icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png', icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png',
// name: '', name: '库位列表',
// router: '/pagesHome/pages/StorageLocationList/StorageLocationList', router: '/pagesHome/pages/StorageLocationList/StorageLocationList',
// }, },
// ] ]
// }, },
// { {
// type: 1, type: 1,
// name: '', name: '入库',
// minilist: [ minilist: [
// { {
// icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png', icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png',
// name: '', name: '码板打托',
// router: '/pagesHome/pages/codePlateBracket/codePlateBracket', router: '/pagesHome/pages/codePlateBracket/codePlateBracket',
// }, },
// { {
// icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png', icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png',
// name: '', name: '入库扫描',
// router: '/pagesHome/pages/TranNumber/TranNumber', router: '/pagesHome/pages/TranNumber/TranNumber',
// }, },
// { {
// icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png', icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png',
// name: '', name: '到车入库',
// router: '/pagesHome/pages/ArrivalList/ArrivalList', router: '/pagesHome/pages/ArrivalList/ArrivalList',
// }, },
// ] ]
// }, },
// { {
// type: 1, type: 1,
// name: '', name: '库内',
// minilist: [ minilist: [
// { {
// icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png', icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png',
// name: '', name: '分拣打托',
// router: '/pagesHome/pages/scansorting/scansorting', router: '/pagesHome/pages/scansorting/scansorting',
// }, },
// // {
// // icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png',
// // name: '',
// // router: '/pagesHome/pages/ordersorting/ordersorting',
// // },
// // {
// // icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png',
// // name: '',
// // router: '/pagesHome/pages/lnventorysorting/lnventorysorting',
// // },
// {
// icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png',
// name: '',
// router: '/pagesHome/pages/ScanUpType/ScanUpType',
// },
// {
// icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png',
// name: '',
// router: '/pagesHome/pages/PeopleScanUpType/PeopleScanUpType',
// },
// {
// icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png',
// name: '',
// router: '/pagesHome/pages/RelocationType/RelocationType',
// },
// {
// icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png',
// name: '',
// router: '/pagesHome/pages/Retention/Retention',
// },
// {
// icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png',
// name: '',
// router: '/pagesHome/pages/MergeTray/MergeTray',
// },
// {
// icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png',
// name: '',
// router: '/pagesHome/pages/DownGoodsType/DownGoodsType',
// },
// {
// icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png',
// name: '',
// router: '/pagesHome/pages/RemoveTray/RemoveTray',
// },
// {
// icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png',
// name: '',
// router: '/pagesHome/pages/Check/Check',
// },
// {
// icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png',
// name: '',
// router: '/pagesHome/pages/SearchTray/SearchTray',
// },
// ]
// },
// {
// type: 1,
// name: '',
// minilist: [
// {
// icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png',
// name: '',
// router: '/pagesHome/pages/pickingScan/pickingScan',
// },
// {
// icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png',
// name: '',
// router: '/pagesHome/pages/SelfPickupScan/SelfPickupScan',
// },
// {
// icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png',
// name: '',
// router: '/pagesHome/pages/StowageList/StowageList',
// },
// {
// icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png',
// name: '',
// router: '/pagesHome/pages/RelayScanList/RelayScanList',
// },
// ]
// },
// {
// type: 1,
// name: '',
// minilist: [
// {
// icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png',
// name: '',
// router: '/pagesHome/pages/LoadingScan/LoadingScan',
// },
// {
// icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png',
// name: '',
// router: '/pagesHome/pages/signinScan/signinScan',
// },
// {
// icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png',
// name: '',
// router: '/pagesHome/pages/directGoMarket/directGoMarket',
// },
// ]
// },
// {
// type: 1,
// name: '线',
// minilist: [
// { // {
// icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png', // icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png',
// name: '线', // name: '',
// router: '/pagesHome/pages/OfflineUpload/OfflineUpload', // router: '/pagesHome/pages/ordersorting/ordersorting',
// },
// ]
// }, // },
// { // {
// type: 1,
// name: '',
// minilist: [
// {
// icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png', // icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png',
// name: '', // name: '',
// router: '/pagesHome/pages/integral/integral', // router: '/pagesHome/pages/lnventorysorting/lnventorysorting',
// },
// {
// icon: 'http://8.137.14.82:9000/bladex/upload/20240117/fac9c4fd6c4f0bee599417fc8fbbee62.png',
// name: '',
// router: '/pagesHome/pages/integralMy/integralMy',
// },
// ]
// }, // },
// ] {
// }) icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png',
name: '扫码上架',
router: '/pagesHome/pages/ScanUpType/ScanUpType',
},
{
icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png',
name: '手动上架',
router: '/pagesHome/pages/PeopleScanUpType/PeopleScanUpType',
},
{
icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png',
name: '移库',
router: '/pagesHome/pages/RelocationType/RelocationType',
},
{
icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png',
name: '滞留',
router: '/pagesHome/pages/Retention/Retention',
},
{
icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png',
name: '合托',
router: '/pagesHome/pages/MergeTray/MergeTray',
},
{
icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png',
name: '下架',
router: '/pagesHome/pages/DownGoodsType/DownGoodsType',
},
{
icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png',
name: '空置托盘',
router: '/pagesHome/pages/RemoveTray/RemoveTray',
},
{
icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png',
name: '复核',
router: '/pagesHome/pages/Check/Check',
},
{
icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png',
name: '托盘数据同步',
router: '/pagesHome/pages/SearchTray/SearchTray',
},
]
},
{
type: 1,
name: '出库',
minilist: [
{
icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png',
name: '拣货扫描',
router: '/pagesHome/pages/pickingScan/pickingScan',
},
{
icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png',
name: '自提扫描',
router: '/pagesHome/pages/SelfPickupScan/SelfPickupScan',
},
{
icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png',
name: '配载装车',
router: '/pagesHome/pages/StowageList/StowageList',
},
{
icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png',
name: '中转装车',
router: '/pagesHome/pages/RelayScanList/RelayScanList',
},
]
},
{
type: 1,
name: '配送',
minilist: [
{
icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png',
name: '装车扫描',
router: '/pagesHome/pages/LoadingScan/LoadingScan',
},
{
icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png',
name: '签收扫描',
router: '/pagesHome/pages/signinScan/signinScan',
},
{
icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png',
name: '直发商家签收',
router: '/pagesHome/pages/directGoMarket/directGoMarket',
},
]
},
{
type: 1,
name: '离线上传',
minilist: [
{
icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png',
name: '离线上传',
router: '/pagesHome/pages/OfflineUpload/OfflineUpload',
},
]
},
{
type: 1,
name: '考核',
minilist: [
{
icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png',
name: '考核指标',
router: '/pagesHome/pages/integral/integral',
},
{
icon: 'http://8.137.14.82:9000/bladex/upload/20240117/fac9c4fd6c4f0bee599417fc8fbbee62.png',
name: '我的考核',
router: '/pagesHome/pages/integralMy/integralMy',
},
]
},
]
})
function gopathpage(path : string) { function gopathpage(path : string) {
uni.navigateTo({ uni.navigateTo({

26
pages/login/login.vue

@ -73,7 +73,7 @@
import { useUserStore } from '@/store/uaeUserStore'; import { useUserStore } from '@/store/uaeUserStore';
import useBluetoothStore from '@/store/useBluetoothStore.js'; import useBluetoothStore from '@/store/useBluetoothStore.js';
import useStorageStore from '@/store/useStorageStore'; import useStorageStore from '@/store/useStorageStore';
const { HANDLE_CLEARSTORAGE } = useStorageStore() const { HANDLE_CLEARSTORAGE, HANDLE_GETSTORAGEINFO } = useStorageStore()
const { HANDLE_INITBLUETOOTH } = useBluetoothStore() const { HANDLE_INITBLUETOOTH } = useBluetoothStore()
// import { storeToRefs } from 'pinia'; // import { storeToRefs } from 'pinia';
const userStore = useUserStore() const userStore = useUserStore()
@ -108,7 +108,7 @@
onShow(() => { onShow(() => {
const timer = setTimeout(() => { const timer = setTimeout(() => {
// Pinia // Pinia
HANDLE_CLEARSTORAGE() // HANDLE_CLEARSTORAGE()
settips() settips()
clearTimeout(timer) clearTimeout(timer)
}, 2000) }, 2000)
@ -142,10 +142,7 @@
let resdata = await preserveCurrentWarehouse(details.checkitem) let resdata = await preserveCurrentWarehouse(details.checkitem)
uni.setStorageSync('checkname', details.checkitem) uni.setStorageSync('checkname', details.checkitem)
uni.removeStorageSync('homerouter') goIndex()
uni.switchTab({
url: '/pages/index/index'
})
} }
function settips() { function settips() {
@ -212,10 +209,7 @@
name: response.detail.warehouse_name, name: response.detail.warehouse_name,
}) })
if (response.detail.warehouse_id) { if (response.detail.warehouse_id) {
uni.removeStorageSync('homerouter') goIndex()
uni.switchTab({
url: '/pages/index/index'
})
return return
} }
@ -230,10 +224,7 @@
if (details.warehouseList.length == 1) { if (details.warehouseList.length == 1) {
let resdata = await preserveCurrentWarehouse(details.warehouseList[0]) let resdata = await preserveCurrentWarehouse(details.warehouseList[0])
uni.setStorageSync('checkname', details.warehouseList[0]) uni.setStorageSync('checkname', details.warehouseList[0])
uni.removeStorageSync('homerouter') goIndex()
uni.switchTab({
url: '/pages/index/index'
})
return return
} }
details.showck = true details.showck = true
@ -265,6 +256,13 @@
uni.hideLoading() uni.hideLoading()
} }
} }
function goIndex() {
HANDLE_GETSTORAGEINFO()
uni.removeStorageSync('homerouter')
uni.switchTab({
url: '/pages/index/index'
})
}
function setisremember() { function setisremember() {
details.isremember = !details.isremember details.isremember = !details.isremember
uni.setStorageSync('isremember', details.isremember) uni.setStorageSync('isremember', details.isremember)

6
pagesHome/pages/DownGoods/DownGoods.vue

@ -308,9 +308,11 @@
import { reactive, ref, toRefs, watchEffect } from "vue"; import { reactive, ref, toRefs, watchEffect } from "vue";
import utils from '@/utils/utils'; import utils from '@/utils/utils';
import useSystemSettingsStore from '@/store/useSystemSettingsStore'; import useSystemSettingsStore from '@/store/useSystemSettingsStore';
import useStorageStore from '@/store/useStorageStore.js';
import { storeToRefs } from 'pinia'; import { storeToRefs } from 'pinia';
const { scanState } = storeToRefs(useSystemSettingsStore()) const { scanState } = storeToRefs(useSystemSettingsStore())
const { HANDLE_ISSTORAGECODE } = useStorageStore()
const tiplists = ref(null) const tiplists = ref(null)
const tip = ref(null) const tip = ref(null)
@ -406,9 +408,7 @@
details.isallcheck = false details.isallcheck = false
} }
}) })
function stop() {
}
function inscan() { function inscan() {
details.scancode = details.trayCode details.scancode = details.trayCode
scandata() scandata()
@ -461,6 +461,8 @@
} }
break; break;
case 2: case 2:
if (!HANDLE_ISSTORAGECODE(details.scancode)) return utils.handleToast('请扫描本仓库位码')
data = { data = {
allocationId: details.scancode allocationId: details.scancode
} }

12
pagesHome/pages/SelfPScanList/SelfPScanList.vue

@ -288,6 +288,12 @@
details.planNum = response.data.planNum details.planNum = response.data.planNum
details.inventoryNub = response.data.inventoryNub details.inventoryNub = response.data.inventoryNub
details.signedNum = response.data.signedNum details.signedNum = response.data.signedNum
if (!details.isscan) return
// #ifdef APP
utils.ttsspke(details.signedNum + '件')
// #endif
details.isscan = false
} else if (details.orderType === 3) { } else if (details.orderType === 3) {
let deta = { let deta = {
billLadingId: details.billLadingId, billLadingId: details.billLadingId,
@ -305,6 +311,12 @@
details.planNum = response.data.planNum details.planNum = response.data.planNum
details.inventoryNub = response.data.inventoryNub details.inventoryNub = response.data.inventoryNub
details.signedNum = response.data.signedNum details.signedNum = response.data.signedNum
if (!details.isscan) return
// #ifdef APP
utils.ttsspke(details.signedNum + '件')
// #endif
details.isscan = false
} }
} catch (e) { } catch (e) {
//TODO handle the exception //TODO handle the exception

2
unpackage/dist/build/app-plus/pagesHome/pages/PickingScanList/PickingScanList.css vendored

File diff suppressed because one or more lines are too long

2
unpackage/dist/dev/app-plus/app-config-service.js vendored

File diff suppressed because one or more lines are too long

98
unpackage/dist/dev/app-plus/app-service.js vendored

@ -1769,7 +1769,7 @@ if (uni.restoreGlobal) {
}; };
}; };
const Base64$1 = new Base64(); const Base64$1 = new Base64();
const devhost = "http://test.api.huo5you.com/"; const devhost = "http://192.168.3.14:13000/";
const imghost = ""; const imghost = "";
const host = devhost; const host = devhost;
const APPKEY = "h5u:h5u_secret"; const APPKEY = "h5u:h5u_secret";
@ -6019,7 +6019,7 @@ This will fail in production if not fixed.`);
const _sfc_main$2m = /* @__PURE__ */ vue.defineComponent({ const _sfc_main$2m = /* @__PURE__ */ vue.defineComponent({
__name: "login", __name: "login",
setup(__props) { setup(__props) {
const { HANDLE_CLEARSTORAGE } = useStorageStore(); const { HANDLE_CLEARSTORAGE, HANDLE_GETSTORAGEINFO } = useStorageStore();
const { HANDLE_INITBLUETOOTH } = useBluetoothStore(); const { HANDLE_INITBLUETOOTH } = useBluetoothStore();
const userStore = useUserStore(); const userStore = useUserStore();
const { HANDLE_ACCTOKEN, HANDLE_REFTOKEN, HANDLE_USERINFO } = userStore; const { HANDLE_ACCTOKEN, HANDLE_REFTOKEN, HANDLE_USERINFO } = userStore;
@ -6049,7 +6049,6 @@ This will fail in production if not fixed.`);
}); });
onShow(() => { onShow(() => {
const timer = setTimeout(() => { const timer = setTimeout(() => {
HANDLE_CLEARSTORAGE();
clearTimeout(timer); clearTimeout(timer);
}, 2e3); }, 2e3);
}); });
@ -6076,10 +6075,7 @@ This will fail in production if not fixed.`);
} }
await preserveCurrentWarehouse(details.checkitem); await preserveCurrentWarehouse(details.checkitem);
uni.setStorageSync("checkname", details.checkitem); uni.setStorageSync("checkname", details.checkitem);
uni.removeStorageSync("homerouter"); goIndex();
uni.switchTab({
url: "/pages/index/index"
});
} }
async function submitlogin() { async function submitlogin() {
try { try {
@ -6096,7 +6092,7 @@ This will fail in production if not fixed.`);
title: "登录中" title: "登录中"
}); });
let response2 = await oauthtoken(data); let response2 = await oauthtoken(data);
formatAppLog("log", "at pages/login/login.vue:206", response2); formatAppLog("log", "at pages/login/login.vue:203", response2);
if (response2 == null ? void 0 : response2.refresh_token) { if (response2 == null ? void 0 : response2.refresh_token) {
setloctuser(response2); setloctuser(response2);
uni.setStorageSync("checkname", { uni.setStorageSync("checkname", {
@ -6105,10 +6101,7 @@ This will fail in production if not fixed.`);
name: response2.detail.warehouse_name name: response2.detail.warehouse_name
}); });
if (response2.detail.warehouse_id) { if (response2.detail.warehouse_id) {
uni.removeStorageSync("homerouter"); goIndex();
uni.switchTab({
url: "/pages/index/index"
});
return; return;
} }
let res = await getMyWarehouseList({}); let res = await getMyWarehouseList({});
@ -6122,10 +6115,7 @@ This will fail in production if not fixed.`);
if (details.warehouseList.length == 1) { if (details.warehouseList.length == 1) {
let resdata = await preserveCurrentWarehouse(details.warehouseList[0]); let resdata = await preserveCurrentWarehouse(details.warehouseList[0]);
uni.setStorageSync("checkname", details.warehouseList[0]); uni.setStorageSync("checkname", details.warehouseList[0]);
uni.removeStorageSync("homerouter"); goIndex();
uni.switchTab({
url: "/pages/index/index"
});
return; return;
} }
details.showck = true; details.showck = true;
@ -6146,14 +6136,21 @@ This will fail in production if not fixed.`);
tip.value.setisshow(false); tip.value.setisshow(false);
} }
}); });
formatAppLog("log", "at pages/login/login.vue:258", "登录错误"); formatAppLog("log", "at pages/login/login.vue:249", "登录错误");
} }
} catch (err) { } catch (err) {
formatAppLog("log", "at pages/login/login.vue:261", "err :>> ", err); formatAppLog("log", "at pages/login/login.vue:252", "err :>> ", err);
} finally { } finally {
uni.hideLoading(); uni.hideLoading();
} }
} }
function goIndex() {
HANDLE_GETSTORAGEINFO();
uni.removeStorageSync("homerouter");
uni.switchTab({
url: "/pages/index/index"
});
}
function setisremember() { function setisremember() {
details.isremember = !details.isremember; details.isremember = !details.isremember;
uni.setStorageSync("isremember", details.isremember); uni.setStorageSync("isremember", details.isremember);
@ -26743,6 +26740,10 @@ This will fail in production if not fixed.`);
details.planNum = response2.data.planNum; details.planNum = response2.data.planNum;
details.inventoryNub = response2.data.inventoryNub; details.inventoryNub = response2.data.inventoryNub;
details.signedNum = response2.data.signedNum; details.signedNum = response2.data.signedNum;
if (!details.isscan)
return;
utils.ttsspke(details.signedNum + "件");
details.isscan = false;
} else if (details.orderType === 3) { } else if (details.orderType === 3) {
let deta = { let deta = {
billLadingId: details.billLadingId, billLadingId: details.billLadingId,
@ -26750,7 +26751,7 @@ This will fail in production if not fixed.`);
size: 10 size: 10
}; };
const res = await billLadingZeroBillOrderData(deta); const res = await billLadingZeroBillOrderData(deta);
formatAppLog("log", "at pagesHome/pages/SelfPScanList/SelfPScanList.vue:298", "res :>> ", res); formatAppLog("log", "at pagesHome/pages/SelfPScanList/SelfPScanList.vue:304", "res :>> ", res);
const { code: code2, data } = res; const { code: code2, data } = res;
if (code2 !== 200) if (code2 !== 200)
return; return;
@ -26760,6 +26761,10 @@ This will fail in production if not fixed.`);
details.planNum = response.data.planNum; details.planNum = response.data.planNum;
details.inventoryNub = response.data.inventoryNub; details.inventoryNub = response.data.inventoryNub;
details.signedNum = response.data.signedNum; details.signedNum = response.data.signedNum;
if (!details.isscan)
return;
utils.ttsspke(details.signedNum + "件");
details.isscan = false;
} }
} catch (e2) { } catch (e2) {
} finally { } finally {
@ -26776,12 +26781,12 @@ This will fail in production if not fixed.`);
} }
async function showsTipsZero(item) { async function showsTipsZero(item) {
try { try {
formatAppLog("log", "at pagesHome/pages/SelfPScanList/SelfPScanList.vue:331", "item :>> ", item); formatAppLog("log", "at pagesHome/pages/SelfPScanList/SelfPScanList.vue:343", "item :>> ", item);
let subdata = { let subdata = {
billLadingId: details.billLadingId billLadingId: details.billLadingId
}; };
const response2 = await billLadingzeroBillData(subdata); const response2 = await billLadingzeroBillData(subdata);
formatAppLog("log", "at pagesHome/pages/SelfPScanList/SelfPScanList.vue:337", "response :>> ", response2); formatAppLog("log", "at pagesHome/pages/SelfPScanList/SelfPScanList.vue:349", "response :>> ", response2);
const { code: code2, data } = response2; const { code: code2, data } = response2;
if (code2 !== 200) if (code2 !== 200)
return uni.showToast({ return uni.showToast({
@ -26830,7 +26835,7 @@ This will fail in production if not fixed.`);
} }
if (list.length === 0) if (list.length === 0)
return tiplists.value.setdetails({ isshow: false }); return tiplists.value.setdetails({ isshow: false });
formatAppLog("log", "at pagesHome/pages/SelfPScanList/SelfPScanList.vue:389", "list :>> ", list); formatAppLog("log", "at pagesHome/pages/SelfPScanList/SelfPScanList.vue:401", "list :>> ", list);
tiplists.value.setdetails({ tiplists.value.setdetails({
isshow: true, isshow: true,
tipstate: 2, tipstate: 2,
@ -26841,7 +26846,7 @@ This will fail in production if not fixed.`);
success: async () => { success: async () => {
try { try {
const res = await billLadingzeroBillBatch({ billLadingId: details.billLadingId, list }); const res = await billLadingzeroBillBatch({ billLadingId: details.billLadingId, list });
formatAppLog("log", "at pagesHome/pages/SelfPScanList/SelfPScanList.vue:402", "res :>> ", res); formatAppLog("log", "at pagesHome/pages/SelfPScanList/SelfPScanList.vue:414", "res :>> ", res);
if (res.code === 200) { if (res.code === 200) {
uni.showToast({ uni.showToast({
title: res.msg title: res.msg
@ -26850,7 +26855,7 @@ This will fail in production if not fixed.`);
} }
tiplists.value.setdetails({ isshow: false }); tiplists.value.setdetails({ isshow: false });
} catch (err) { } catch (err) {
formatAppLog("log", "at pagesHome/pages/SelfPScanList/SelfPScanList.vue:411", "err :>> ", err); formatAppLog("log", "at pagesHome/pages/SelfPScanList/SelfPScanList.vue:423", "err :>> ", err);
} }
}, },
cancel: () => { cancel: () => {
@ -26861,7 +26866,7 @@ This will fail in production if not fixed.`);
} }
}); });
} catch (err) { } catch (err) {
formatAppLog("log", "at pagesHome/pages/SelfPScanList/SelfPScanList.vue:423", "err :>> ", err); formatAppLog("log", "at pagesHome/pages/SelfPScanList/SelfPScanList.vue:435", "err :>> ", err);
} finally { } finally {
} }
}, },
@ -26873,7 +26878,7 @@ This will fail in production if not fixed.`);
} }
}); });
} catch (err) { } catch (err) {
formatAppLog("log", "at pagesHome/pages/SelfPScanList/SelfPScanList.vue:436", "err :>> ", err); formatAppLog("log", "at pagesHome/pages/SelfPScanList/SelfPScanList.vue:448", "err :>> ", err);
} }
} }
function checktype(e2) { function checktype(e2) {
@ -26886,7 +26891,7 @@ This will fail in production if not fixed.`);
if (item.value == e2) { if (item.value == e2) {
details.schanvalue = item.label; details.schanvalue = item.label;
details.orderStatus = item.value; details.orderStatus = item.value;
formatAppLog("log", "at pagesHome/pages/SelfPScanList/SelfPScanList.vue:451", details.schanvalue); formatAppLog("log", "at pagesHome/pages/SelfPScanList/SelfPScanList.vue:463", details.schanvalue);
} }
}); });
} }
@ -42484,7 +42489,7 @@ This will fail in production if not fixed.`);
uni.$off("scancodedate"); uni.$off("scancodedate");
uni.$on("scancodedate", function(code2) { uni.$on("scancodedate", function(code2) {
if (code2) { if (code2) {
formatAppLog("log", "at pagesHome/pages/PickingScanList/PickingScanList.vue:141", code2); formatAppLog("log", "at pagesHome/pages/PickingScanList/PickingScanList.vue:139", code2);
details.scancode = code2; details.scancode = code2;
} }
}); });
@ -42499,7 +42504,7 @@ This will fail in production if not fixed.`);
userId: user.user_id userId: user.user_id
}; };
let res = await distributionStockupgetStockupArea(data); let res = await distributionStockupgetStockupArea(data);
formatAppLog("log", "at pagesHome/pages/PickingScanList/PickingScanList.vue:165", res); formatAppLog("log", "at pagesHome/pages/PickingScanList/PickingScanList.vue:163", res);
if (res.code == 200) { if (res.code == 200) {
res.data.map((item) => { res.data.map((item) => {
list.push(item.headline); list.push(item.headline);
@ -42693,28 +42698,8 @@ This will fail in production if not fixed.`);
/* TEXT */ /* TEXT */
) )
]), ]),
vue.createElementVNode("view", null, [ vue.createCommentVNode(" <view>\r\n <view>定制品数</view>\r\n <view>{{item.planNum || 0}}</view>\r\n </view> "),
vue.createElementVNode("view", null, "定制品数"), vue.createCommentVNode(" <view>\r\n <view>零担数</view>\r\n <view>{{item.planNum || 0}}</view>\r\n </view> "),
vue.createElementVNode(
"view",
null,
vue.toDisplayString(item.planNum || 0),
1
/* TEXT */
)
]),
vue.createElementVNode("view", null, [
vue.createElementVNode("view", null, "零担数"),
vue.createElementVNode(
"view",
null,
vue.toDisplayString(item.planNum || 0),
1
/* TEXT */
)
])
]),
vue.createElementVNode("view", { class: "total mt10" }, [
vue.createElementVNode("view", null, [ vue.createElementVNode("view", null, [
vue.createElementVNode("view", null, "库存品数量"), vue.createElementVNode("view", null, "库存品数量"),
vue.createElementVNode( vue.createElementVNode(
@ -43809,6 +43794,7 @@ This will fail in production if not fixed.`);
__name: "DownGoods", __name: "DownGoods",
setup(__props) { setup(__props) {
const { scanState } = storeToRefs(useSystemSettingsStore()); const { scanState } = storeToRefs(useSystemSettingsStore());
const { HANDLE_ISSTORAGECODE } = useStorageStore();
const tiplists = vue.ref(null); const tiplists = vue.ref(null);
const tip = vue.ref(null); const tip = vue.ref(null);
const details = vue.reactive({ const details = vue.reactive({
@ -43882,7 +43868,7 @@ This will fail in production if not fixed.`);
let res = await warehouseTrayTypefindAllMarket(data); let res = await warehouseTrayTypefindAllMarket(data);
if (res.code !== 200) if (res.code !== 200)
return; return;
formatAppLog("log", "at pagesHome/pages/DownGoods/DownGoods.vue:399", res.data); formatAppLog("log", "at pagesHome/pages/DownGoods/DownGoods.vue:401", res.data);
details.Marketlist = res.data; details.Marketlist = res.data;
} }
vue.watchEffect(() => { vue.watchEffect(() => {
@ -43936,6 +43922,8 @@ This will fail in production if not fixed.`);
} }
break; break;
case 2: case 2:
if (!HANDLE_ISSTORAGECODE(details.scancode))
return utils.handleToast("请扫描本仓库位码");
data = { data = {
allocationId: details.scancode allocationId: details.scancode
}; };
@ -43955,7 +43943,7 @@ This will fail in production if not fixed.`);
orderPackageCode: details.scancode orderPackageCode: details.scancode
}; };
res = await warehouseUpdownTypedownScanPackage(data); res = await warehouseUpdownTypedownScanPackage(data);
formatAppLog("log", "at pagesHome/pages/DownGoods/DownGoods.vue:485", "res", res); formatAppLog("log", "at pagesHome/pages/DownGoods/DownGoods.vue:487", "res", res);
if (res.code == 200) { if (res.code == 200) {
details.datalist = details.datalist.concat([res.data]); details.datalist = details.datalist.concat([res.data]);
details.checkdatalist = details.checkdatalist.concat([res.data]); details.checkdatalist = details.checkdatalist.concat([res.data]);
@ -43986,7 +43974,7 @@ This will fail in production if not fixed.`);
break; break;
} }
} catch (err) { } catch (err) {
formatAppLog("log", "at pagesHome/pages/DownGoods/DownGoods.vue:518", "err :>> ", err); formatAppLog("log", "at pagesHome/pages/DownGoods/DownGoods.vue:520", "err :>> ", err);
} finally { } finally {
uni.hideLoading(); uni.hideLoading();
details.scandataList.splice(details.scandataList.indexOf(_scancode), 1); details.scandataList.splice(details.scandataList.indexOf(_scancode), 1);
@ -44057,7 +44045,7 @@ This will fail in production if not fixed.`);
res = await warehouseUpdownTypedownZeroOrder(data); res = await warehouseUpdownTypedownZeroOrder(data);
break; break;
} }
formatAppLog("log", "at pagesHome/pages/DownGoods/DownGoods.vue:592", "res :>> ", res); formatAppLog("log", "at pagesHome/pages/DownGoods/DownGoods.vue:594", "res :>> ", res);
uni.hideLoading(); uni.hideLoading();
if (res.code == 200) { if (res.code == 200) {
uni.showToast({ uni.showToast({

6
unpackage/dist/dev/app-plus/manifest.json vendored

@ -5,10 +5,10 @@
"iPad" "iPad"
], ],
"id": "__UNI__EB22F37", "id": "__UNI__EB22F37",
"name": "货无忧测试版", "name": "货无忧",
"version": { "version": {
"name": "1.1.24", "name": "1.1.25",
"code": 1124 "code": 1125
}, },
"description": "", "description": "",
"developer": { "developer": {

Loading…
Cancel
Save