From ea71513d3f7f483e62f39ddb1a9da0d143ceb2c8 Mon Sep 17 00:00:00 2001
From: qb <1191961160@qq.com>
Date: Fri, 10 Nov 2023 13:42:48 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=93=9D=E7=89=99=E8=BF=9E?=
=?UTF-8?q?=E6=8E=A5=E5=B7=A5=E4=BD=9C?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
compoment/BasicContainer/BasicContainer.vue | 7 +-
compoment/BluetoothList/BluetoothList.vue | 202 +++
config/host.js | 4 +-
main.js | 2 +
manifest.json | 4 +-
pages.json | 12 +-
pages/index/index.vue | 238 +--
pages/login/login.vue | 7 +-
pagesHome/pages/CustomerSign/CustomerSign.vue | 6 +-
.../CustomerTrayDetails.vue | 43 +-
pagesHome/pages/LoadingScan/LoadingScan.vue | 1 +
.../OrderSortingDetail/OrderSortingDetail.vue | 69 +-
pagesHome/pages/PeopleScanUp/PeopleScanUp.vue | 12 +-
pagesHome/pages/Relocation/Relocation.vue | 10 +
.../RelocationAllocationId.vue | 10 +
pagesHome/pages/ScanUp/ScanUp.vue | 12 +
pagesHome/pages/StockUplist/StockUplist.vue | 20 +-
.../StockUplistScandetails.vue | 22 +-
pagesHome/pages/orderInquiry/orderInquiry.vue | 125 +-
pagesHome/pages/scansorting/scansorting.vue | 5 +
pagesHome/pages/setbarcode/setbarcode.vue | 75 +-
pagesTask/pages/dynamicCheck/dynamicCheck.vue | 5 +
store/index.js | 3 +-
store/useBluetoothStore.js | 72 +
.../OrderSortingDetail/OrderSortingDetail.css | 2 +-
unpackage/dist/dev/app-plus/app-service.js | 1573 +++++++++++------
unpackage/dist/dev/app-plus/app.css | 93 +
unpackage/dist/dev/app-plus/manifest.json | 4 +-
utils/request.js | 9 +-
utils/utils.js | 123 +-
30 files changed, 1912 insertions(+), 858 deletions(-)
create mode 100644 compoment/BluetoothList/BluetoothList.vue
create mode 100644 store/useBluetoothStore.js
diff --git a/compoment/BasicContainer/BasicContainer.vue b/compoment/BasicContainer/BasicContainer.vue
index 0d88721..43b92cd 100644
--- a/compoment/BasicContainer/BasicContainer.vue
+++ b/compoment/BasicContainer/BasicContainer.vue
@@ -1,8 +1,8 @@
-
+
@@ -40,6 +40,9 @@
},
title: {
type: String
+ },
+ leftClick() {
+ uni.navigateBack()
}
})
diff --git a/compoment/BluetoothList/BluetoothList.vue b/compoment/BluetoothList/BluetoothList.vue
new file mode 100644
index 0000000..68ade28
--- /dev/null
+++ b/compoment/BluetoothList/BluetoothList.vue
@@ -0,0 +1,202 @@
+
+
+
+
+ {{title||'选择连接的蓝牙'}}
+
+
+
+
+
+
+
+
+
+
+
+ {{item.name}}
+
+
+
+
+
+
+
+
+
+ {{cancelTxt||'取消'}}
+ {{confirmTxt||'确认'}}
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/config/host.js b/config/host.js
index 54652f3..a9fa6c9 100644
--- a/config/host.js
+++ b/config/host.js
@@ -20,8 +20,8 @@ const devhost = 'http://test.api.huitongys.com/'
/**
* 正式域名
* */
-const prohost = 'http://h5uapi.huitongys.com/'
-// const prohost = 'http://test.api.huitongys.com/'
+// const prohost = 'http://h5uapi.huitongys.com/'
+const prohost = 'http://test.api.huitongys.com/'
/**
* 图片域名
* */
diff --git a/main.js b/main.js
index fdc6633..9460afa 100644
--- a/main.js
+++ b/main.js
@@ -24,6 +24,7 @@ import tiplist from '@/compoment/tiplist/tiplist.vue'
import InputNum from '@/compoment/InputNum/InputNum.vue';
import BasicContainer from '@/compoment/BasicContainer/BasicContainer.vue';
import PopUp from '@/compoment/PopUp/PopUp.vue';
+import BluetoothList from '@/compoment/BluetoothList/BluetoothList.vue';
// import moduleName from '@/compoment/ScanButton/ScanButton.vue';
import saomiao1 from '@/compoment/saomiao1.vue'
import saomiao2 from '@/compoment/saomiao2.vue'
@@ -52,6 +53,7 @@ export function createApp() {
.component('InputNum', InputNum)
.component('BasicContainer', BasicContainer)
.component('PopUp', PopUp)
+ .component('BluetoothList', BluetoothList)
uni.$u.config.unit = 'rpx'
return {
app,
diff --git a/manifest.json b/manifest.json
index fe54035..cafa4ae 100644
--- a/manifest.json
+++ b/manifest.json
@@ -2,8 +2,8 @@
"name" : "货无忧",
"appid" : "__UNI__EB22F37",
"description" : "",
- "versionName" : "1.0.24",
- "versionCode" : 1024,
+ "versionName" : "1.0.26",
+ "versionCode" : 1026,
"transformPx" : false,
/* 5+App特有相关 */
"app-plus" : {
diff --git a/pages.json b/pages.json
index eca5871..80bed23 100644
--- a/pages.json
+++ b/pages.json
@@ -1272,12 +1272,12 @@
// "selectedIconPath": "/static/TabberIcon/icon3check.png",
// "text": "报表"
// },
- {
- "pagePath": "pages/news/news",
- "iconPath": "/static/TabberIcon/icon4.png",
- "selectedIconPath": "/static/TabberIcon/icon4check.png",
- "text": "消息"
- },
+ // {
+ // "pagePath": "pages/news/news",
+ // "iconPath": "/static/TabberIcon/icon4.png",
+ // "selectedIconPath": "/static/TabberIcon/icon4check.png",
+ // "text": "消息"
+ // },
{
"pagePath": "pages/user/user",
"iconPath": "/static/TabberIcon/icon5.png",
diff --git a/pages/index/index.vue b/pages/index/index.vue
index 6d1b07e..bb6f29f 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -43,125 +43,125 @@
import utils from '../../utils/utils';
const tip = ref(null)
let details = reactive({ tablist: [] });
- // let details = reactive({
- // tablist: [
- // {
- // type: 1,
- // name: '工作台',
- // minilist: [
- // {
- // icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png',
- // name: '订单查询',
- // router: '/pagesHome/pages/orderInquiry/orderInquiry',
- // },
- // ]
- // },
- // {
- // type: 1,
- // name: '库内',
- // minilist: [
- // {
- // icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png',
- // name: '分拣打托',
- // 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',
- // },
- // ]
- // },
- // {
- // 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',
- // },
- // ]
- // },
- // {
- // 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',
- // },
- // ]
- // },
- // {
- // type: 1,
- // name: '离线上传',
- // minilist: [
- // {
- // icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png',
- // name: '离线上传',
- // router: '/pagesHome/pages/OfflineUpload/OfflineUpload',
- // },
- // ]
- // },
- // ]
- // })
+ /* let details = reactive({
+ tablist: [
+ {
+ type: 1,
+ name: '工作台',
+ minilist: [
+ {
+ icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png',
+ name: '订单查询',
+ router: '/pagesHome/pages/orderInquiry/orderInquiry',
+ },
+ ]
+ },
+ {
+ type: 1,
+ name: '库内',
+ minilist: [
+ {
+ icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png',
+ name: '分拣打托',
+ 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',
+ },
+ ]
+ },
+ {
+ 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',
+ },
+ ]
+ },
+ {
+ 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',
+ },
+ ]
+ },
+ {
+ type: 1,
+ name: '离线上传',
+ minilist: [
+ {
+ icon: 'http://htys.oss-cn-chengdu.aliyuncs.com/htys/afb031efec7d2f8620ee68c71f87a80e.png',
+ name: '离线上传',
+ router: '/pagesHome/pages/OfflineUpload/OfflineUpload',
+ },
+ ]
+ },
+ ]
+ }) */
function gopathpage(path : string) {
uni.navigateTo({
diff --git a/pages/login/login.vue b/pages/login/login.vue
index ddeb5b8..9fca79a 100644
--- a/pages/login/login.vue
+++ b/pages/login/login.vue
@@ -71,6 +71,8 @@
import utils from '@/utils/utils';
// 引入pinia仓库
import { useUserStore } from '@/store/uaeUserStore';
+ import useBluetoothStore from '@/store/useBluetoothStore.js';
+ const { HANDLE_INITBLUETOOTH } = useBluetoothStore()
// import { storeToRefs } from 'pinia';
const userStore = useUserStore()
const { HANDLE_ACCTOKEN, HANDLE_REFTOKEN, HANDLE_USERINFO } = userStore
@@ -95,6 +97,8 @@
details.tenantId = users.tenantId
details.username = users.username
}
+ // 初始化获取蓝牙信息
+ HANDLE_INITBLUETOOTH()
})
onShow(() => {
const timer = setTimeout(() => {
@@ -168,7 +172,8 @@
'scope': 'all',
'username': details.username,
'password': details.password,
- 'tenantId': details.tenantId
+ 'tenantId': details.tenantId,
+ 'isLogin': true
}
uni.showLoading({
mask: true,
diff --git a/pagesHome/pages/CustomerSign/CustomerSign.vue b/pagesHome/pages/CustomerSign/CustomerSign.vue
index 3f069a7..1f23eae 100644
--- a/pagesHome/pages/CustomerSign/CustomerSign.vue
+++ b/pagesHome/pages/CustomerSign/CustomerSign.vue
@@ -68,12 +68,12 @@
{{item.positioning==1?'已打卡':'定位打卡'}}
- 签到扫描
+ 签收扫描
上传签收图片
-
+
批量签收
diff --git a/pagesHome/pages/CustomerTrayDetails/CustomerTrayDetails.vue b/pagesHome/pages/CustomerTrayDetails/CustomerTrayDetails.vue
index 92ceec8..9e481c7 100644
--- a/pagesHome/pages/CustomerTrayDetails/CustomerTrayDetails.vue
+++ b/pagesHome/pages/CustomerTrayDetails/CustomerTrayDetails.vue
@@ -213,24 +213,35 @@
/** 扫描接口
* */
async function scandata() {
- let loadingId = uni.getStorageSync('checkvehicle').id
+ try {
+ uni.showLoading({
+ title: '数据请求中',
+ mask: true
+ });
+ let loadingId = uni.getStorageSync('checkvehicle').id
+
+ let data = {
+ reservationId: details.items.id,
+ deliveryId: details.id,
+ // reservationId: '1707271276416094210',
+ // deliveryId: '1707271279670874114',
+ loadingId,
+ type: 2,
+ barcode: details.scancode
+ }
- let data = {
- reservationId: details.items.id,
- deliveryId: details.id,
- // reservationId: '1707271276416094210',
- // deliveryId: '1707271279670874114',
- loadingId,
- type: 2,
- barcode: details.scancode
+ let res = await deliveryloadingscan(data)
+ console.log('res', res);
+ const { code } = res
+ // 语音播报
+ if (code === 3001 || code === 200) utils.ttsspke(res.audio)
+ initpage()
+ } catch (err) {
+ console.log('err :>> ', err);
+ //TODO handle the exception
+ } finally {
+ uni.hideLoading()
}
-
- let res = await deliveryloadingscan(data)
- console.log('res', res);
- const { code } = res
- // 语音播报
- if (code === 3001 || code === 200) utils.ttsspke(res.audio)
- initpage()
}
function checkphon(index : number) {
// details.listcheckindex=index
diff --git a/pagesHome/pages/LoadingScan/LoadingScan.vue b/pagesHome/pages/LoadingScan/LoadingScan.vue
index 763e991..068111c 100644
--- a/pagesHome/pages/LoadingScan/LoadingScan.vue
+++ b/pagesHome/pages/LoadingScan/LoadingScan.vue
@@ -299,6 +299,7 @@
taskTime_end: date.value[1] || '',
type: details.checkstate
}
+ console.log('data :>> ', data);
let response = await deliverypage(data)
console.log(response);
if (response.code !== 200) return
diff --git a/pagesHome/pages/OrderSortingDetail/OrderSortingDetail.vue b/pagesHome/pages/OrderSortingDetail/OrderSortingDetail.vue
index e2e719e..ebdd58a 100644
--- a/pagesHome/pages/OrderSortingDetail/OrderSortingDetail.vue
+++ b/pagesHome/pages/OrderSortingDetail/OrderSortingDetail.vue
@@ -1,7 +1,7 @@
-
+
-
+
-
- {{searchForm.searchTypeList.find((item)=> item.type === searchForm.type).label}}
+
+ 搜索
+
-
+
@@ -36,7 +39,10 @@
- 订单状态:{{orderStateDictionaries[dataInfo.orderCode] || ''}}
+ 订单码:{{dataInfo.orderCode}}
+
+
+ 订单状态:{{orderStateDictionaries[dataInfo.orderStatus] || ''}}
品牌:
@@ -50,6 +56,12 @@
{{dataInfo.mallName || ''}}
+
+ 商场收货人:
+
+ {{dataInfo.consigneePerson || ''}}
+
+
商场电话:
@@ -59,7 +71,7 @@
客户名称:
- {{dataInfo.consigneePerson || ''}}
+ {{dataInfo.customerName || ''}}
@@ -78,7 +90,7 @@
{{dataInfo.completeSet === 1 ? '齐套' : '未齐套'}}
-
+
收货地址:
{{dataInfo.customerAddress || ''}}
@@ -106,7 +118,8 @@
打印
-
+
@@ -134,7 +147,7 @@
-
+
\ No newline at end of file
diff --git a/pagesHome/pages/scansorting/scansorting.vue b/pagesHome/pages/scansorting/scansorting.vue
index ea5a0fb..1497ec4 100644
--- a/pagesHome/pages/scansorting/scansorting.vue
+++ b/pagesHome/pages/scansorting/scansorting.vue
@@ -104,6 +104,11 @@
import utils from '@/utils/utils.js'
// 组件配置
const option = reactive({
+ leftClick() {
+ uni.reLaunch({
+ url: "/pages/index/index"
+ })
+ },
// 标题
title: '任务列表',
// 下拉刷新回调函数
diff --git a/pagesHome/pages/setbarcode/setbarcode.vue b/pagesHome/pages/setbarcode/setbarcode.vue
index c369354..73cdb8c 100644
--- a/pagesHome/pages/setbarcode/setbarcode.vue
+++ b/pagesHome/pages/setbarcode/setbarcode.vue
@@ -48,6 +48,7 @@
+