From 3030acd36654d2cda15368150fa583f24896f3a0 Mon Sep 17 00:00:00 2001
From: qb <1191961160@qq.com>
Date: Tue, 2 Jul 2024 19:06:04 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=83=A8=E5=88=86bug?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
api/user.js | 16 +
config/host.js | 4 +-
manifest.json | 4 +-
pagesHome/pages/ArrivalList/ArrivalList.vue | 11 +-
pagesHome/pages/LoadingScan/LoadingScan.vue | 2 +-
.../OrderSortingDetail/OrderSortingDetail.vue | 80 +-
.../pages/PickUpLotList/PickUpLotList.vue | 15 +-
.../StowageListDetails/StowageListDetails.vue | 4 +-
.../VehicleArrivalDetails.vue | 104 +-
pagesHome/pages/onLoadByScan/onLoadByScan.vue | 36 +-
.../onLoadOrderDetails/onLoadOrderDetails.vue | 6 +-
unpackage/dist/dev/app-plus/app-service.js | 1133 +++++++++--------
unpackage/dist/dev/app-plus/manifest.json | 4 +-
.../OrderSortingDetail/OrderSortingDetail.css | 239 +++-
unpackage/dist/dev/mp-weixin/app.js | 159 ---
unpackage/dist/dev/mp-weixin/app.json | 182 ---
unpackage/dist/dev/mp-weixin/app.wxss | 562 --------
17 files changed, 1034 insertions(+), 1527 deletions(-)
delete mode 100644 unpackage/dist/dev/mp-weixin/app.js
delete mode 100644 unpackage/dist/dev/mp-weixin/app.json
delete mode 100644 unpackage/dist/dev/mp-weixin/app.wxss
diff --git a/api/user.js b/api/user.js
index f711d7c..5160982 100644
--- a/api/user.js
+++ b/api/user.js
@@ -1181,6 +1181,22 @@ export function warehouseTrayTypeselectStockByMaterialCodeAndMarketId(data, load
canCancel
);
}
+/**
+ * 根据物料名称搜索库存品
+ * @param {Object} data
+ */
+export function warehouseTrayTypeSelectStockByMaterialNameAndMarketId(data, loadingObj = {}, canCancel = false) {
+
+ return request({
+ url: `logpm-warehouse/api/warehouseTrayType/selectStockByMaterialNameAndMarketId`,
+ method: "post",
+ data
+ },
+ loadingObj,
+ canCancel
+ );
+}
+
/**
* 无数据库存品搜索当前仓库物料
* @param {Object} data
diff --git a/config/host.js b/config/host.js
index 38fb570..05886d7 100644
--- a/config/host.js
+++ b/config/host.js
@@ -12,14 +12,14 @@
// xiaohei
// const devhost = 'http://192.168.3.18:13000/'
// tjj
-const devhost = 'http://192.168.3.14:13000/'
+// const devhost = 'http://192.168.3.14:13000/'
// cyz
// const devhost = 'http://192.168.6.169:9777/'
// const devhost = 'http://192.168.6.141:8777/'
// cg
// const devhost = 'http://192.168.3.2:13000/'
// 正式
-// const devhost = 'https://h5uapi.huitongys.com/'
+const devhost = 'https://h5uapi.huitongys.com/'
// cg
// const devhost = 'http://192.168.10.200:13000/'
diff --git a/manifest.json b/manifest.json
index 3ddd93b..4325bda 100644
--- a/manifest.json
+++ b/manifest.json
@@ -2,8 +2,8 @@
"name" : "货无忧",
"appid" : "__UNI__EB22F37",
"description" : "",
- "versionName" : "1.1.35",
- "versionCode" : 1135,
+ "versionName" : "1.1.36",
+ "versionCode" : 1136,
"transformPx" : false,
/* 5+App特有相关 */
"app-plus" : {
diff --git a/pagesHome/pages/ArrivalList/ArrivalList.vue b/pagesHome/pages/ArrivalList/ArrivalList.vue
index 7328c4e..e06da60 100644
--- a/pagesHome/pages/ArrivalList/ArrivalList.vue
+++ b/pagesHome/pages/ArrivalList/ArrivalList.vue
@@ -34,10 +34,19 @@
车次号:{{item.carsNo}}
+
+
+ 计划装车:{{item.planLoadingNumber}}
+
+
+
+ 实际装车:{{item.totalLoadingNum}}
+
+
- 实际装车/计划装车:{{item.realLoadingNumber + '/' +item.planLoadingNumber}}
+ 在车件数:{{item.realLoadingNumber}}
diff --git a/pagesHome/pages/LoadingScan/LoadingScan.vue b/pagesHome/pages/LoadingScan/LoadingScan.vue
index 7168473..97ff247 100644
--- a/pagesHome/pages/LoadingScan/LoadingScan.vue
+++ b/pagesHome/pages/LoadingScan/LoadingScan.vue
@@ -514,7 +514,7 @@
tiplists.value.setdetails({ isshow: false })
uni.setStorageSync('checkvehicle', res.data[deta.checklist[0]])
uni.navigateTo({
- url: '/pagesHome/pages/LoadingDetails/LoadingDetails?item=' + JSON.stringify(item) + '&loadingId=' + res.data[deta.checklist[0]].id
+ url: '/pagesHome/pages/loadingRetention/loadingRetention?item=' + JSON.stringify(item) + '&loadingId=' + res.data[deta.checklist[0]].id
})
},
cancel: (details) => {
diff --git a/pagesHome/pages/OrderSortingDetail/OrderSortingDetail.vue b/pagesHome/pages/OrderSortingDetail/OrderSortingDetail.vue
index 376aa83..79248b2 100644
--- a/pagesHome/pages/OrderSortingDetail/OrderSortingDetail.vue
+++ b/pagesHome/pages/OrderSortingDetail/OrderSortingDetail.vue
@@ -198,7 +198,7 @@
-
+
备注
@@ -262,12 +262,35 @@
-
-
-
- 搜索
+
+
+
+ 搜索方式:
+
+
+
+ 物料名称
+
+
+
+ 物料编码
+
-
+
+
+
+
+ 搜索
+
+
+
+
+
@@ -357,6 +380,7 @@
warehouseTrayTypeenterStockNoDataMaterialCode,
warehouseTrayTypefindAllMarket,
warehouseTrayTypedeleteZeroOrderByTrayCode,
+ warehouseTrayTypeSelectStockByMaterialNameAndMarketId
} from '@/api/user.js'
import { onLoad, onShow, onHide, onPullDownRefresh } from '@dcloudio/uni-app'
import utils from '@/utils/utils.js'
@@ -390,8 +414,12 @@
marketName: '',
// 物料编码
materialCode: '',
+ // 物料名称
+ materialName: '',
// 库存品列表
searchStockList: [],
+ /** 搜索状态 -- 编码 | 名称 */
+ activeStatus: 'materialName' as 'materialCode' | 'materialName'
},
})
let tip = ref(null)
@@ -871,11 +899,14 @@
* 库存品 -- 搜索
*/
async function stockSearch() {
- let data = {
+
+ let res = details.stock.activeStatus === 'materialCode' ? await warehouseTrayTypeselectStockByMaterialCodeAndMarketId({
marketId: details.stock.marketId,
materialCode: details.stock.materialCode,
- }
- let res = await warehouseTrayTypeselectStockByMaterialCodeAndMarketId(data)
+ }) : await warehouseTrayTypeSelectStockByMaterialNameAndMarketId({
+ marketId: details.stock.marketId,
+ materialName: details.stock.materialCode
+ })
if (res.code !== 200) return
// 筛选剩余数大于0的物料
details.stock.searchStockList = res.data.filter(val => val.quantityStock !== 0)
@@ -1070,9 +1101,9 @@
toRefs(details)
-
\ No newline at end of file
diff --git a/pagesHome/pages/PickUpLotList/PickUpLotList.vue b/pagesHome/pages/PickUpLotList/PickUpLotList.vue
index 30c1110..239995f 100644
--- a/pagesHome/pages/PickUpLotList/PickUpLotList.vue
+++ b/pagesHome/pages/PickUpLotList/PickUpLotList.vue
@@ -194,7 +194,9 @@
scancode: '',
detauser: {},
/** 输入框中的值 */
- searchText: ''
+ searchText: '',
+ /** 是否是扫描请求后执行的刷新 */
+ isScan: false
})
// 组件实例
@@ -216,7 +218,7 @@
const { code } = res
if (code !== 200) return
-
+ details.isScan = true
basicContainer.value.startPullDownRefresh()
console.log('res :>> ', res);
@@ -275,13 +277,22 @@
console.log('details.pageInfo :>> ', details.pageInfo);
+ let _totalScanNum = 0
+
for (let item of details.detauser.packageList) {
item.scanNum = item.scanNum || 0
item.orderTotalNum = item.orderTotalNum || 0
item.residueNum = (item.orderTotalNum || 0) - (item.scanNum || 0)
+ _totalScanNum += item.scanNum
}
details.data = details.detauser.packageList
+
+ if (details.isScan) {
+ utils.handleToast(`${_totalScanNum}件`)
+ details.isScan = false
+ }
+
}
// 无数据
// else {
diff --git a/pagesHome/pages/StowageListDetails/StowageListDetails.vue b/pagesHome/pages/StowageListDetails/StowageListDetails.vue
index 9bb5ba7..d6ccb7c 100644
--- a/pagesHome/pages/StowageListDetails/StowageListDetails.vue
+++ b/pagesHome/pages/StowageListDetails/StowageListDetails.vue
@@ -43,12 +43,12 @@
定制品
- ({{ details.packageNum || 0 }})
+
零担
- ({{ details.zeroNum || 0 }})
+
diff --git a/pagesHome/pages/VehicleArrivalDetails/VehicleArrivalDetails.vue b/pagesHome/pages/VehicleArrivalDetails/VehicleArrivalDetails.vue
index 2a50004..68698c7 100644
--- a/pagesHome/pages/VehicleArrivalDetails/VehicleArrivalDetails.vue
+++ b/pagesHome/pages/VehicleArrivalDetails/VehicleArrivalDetails.vue
@@ -54,9 +54,9 @@
定制品
-
+
@@ -65,9 +65,9 @@
零担
-
+
@@ -203,7 +203,7 @@
包条码: {{item.scanCode}}
-
+
卸车状态:
托盘名称: {{item.trayName || '暂无数据'}}
@@ -223,6 +224,10 @@
托盘码: {{item.trayCode || '暂无数据'}}
+
+ handleDeleteAbnormal(item)" v-if="item.isData === 0">
+ 删除
+
@@ -319,7 +324,8 @@
postUnloadTray,
postTransferUnloadPackage,
postTransferUnloadZero,
- postTransferUnloadTray
+ postTransferUnloadTray,
+ postRemoveCarsLoadScan
} from '@/api/user.js'
import {
onLoad,
@@ -570,6 +576,8 @@
details.orderStatus === 2 ?
details.pageInfo.unloadZeroList :
details.pageInfo.exceptionList
+
+ console.log('details.datalist :>> ', details.datalist);
// for (let i = 0; i < 1000; i++) {
// details.datalist.push({ orderCode: i, unloadPackageList: [] })
// }
@@ -795,7 +803,7 @@
const handleZeroSoleStowage = (_item, _value) => {
details.zeroInfo = { waybillNo: _item.waybillNo, orderCode: _item.orderCode, ..._value }
- details.zeroInfo.unloadNum = details.zeroInfo.num
+ details.zeroInfo.unloadNum = !details.zeroInfo.unloadNum ? details.zeroInfo.num : details.zeroInfo.unloadNum
ZeroStowage.value.setDetails({
title: '零担卸车',
@@ -827,24 +835,24 @@
/** 零担卸车 */
const handleZeroStowage = (_item, _value) => {
// 检测该零担是否符合卸车要求
- let content = ''
- if (Number(_value.scanStatus) === 2) {
- content = '该零担已卸车'
- }
- else if (Number(_value.scanStatus) === 2) {
- content = '该零担已签收'
- }
+ // let content = ''
+ // if (Number(_value.scanStatus) === 2) {
+ // content = '该零担已卸车'
+ // }
+ // else if (Number(_value.scanStatus) === 3) {
+ // content = '该零担已签收'
+ // }
- if (content) {
- // #ifdef APP
- utils.ttsspke(content)
- // #endif
- uni.showToast({
- title: content,
- icon: 'none'
- })
- return
- }
+ // if (content) {
+ // // #ifdef APP
+ // utils.ttsspke(content)
+ // // #endif
+ // uni.showToast({
+ // title: content,
+ // icon: 'none'
+ // })
+ // return
+ // }
// 检测该零担是否有托盘信息; 有: 询问是否整托卸车, 当在整托卸车时, 不允许单独卸车
if (_value.trayCode) {
@@ -879,6 +887,37 @@
handleZeroSoleStowage(_item, _value)
}
+ /** 移除异常数据 */
+ const handleDeleteAbnormal = (item) => {
+ tiplists.value.setdetails({
+ isshow: true,
+ tipstate: 2,
+ list: [],
+ isonecheck: true,
+ title: '是否删除异常包件',
+ content: '12441',
+ success: async () => {
+ tiplists.value.setdetails({ isshow: false })
+
+ const submitData = {
+ orderCode: item.scanCode,
+ carsLoadScanIds: item.id,
+ }
+ const res = await postRemoveCarsLoadScan(submitData)
+ const { code } = res
+
+ if (code !== 200) return
+ basicContainer.value.startPullDownRefresh()
+ },
+ cancel: () => {
+ tiplists.value.setdetails({ isshow: false })
+ },
+ close: () => {
+ tiplists.value.setdetails({ isshow: false })
+ }
+ })
+ }
+
const { orderStatus, items, datalist } = toRefs(details)
@@ -1078,8 +1117,20 @@
.abnormal {
padding: 10upx;
background: #fff;
- margin: 10upx;
- border-radius: 10upx;
+ margin: 20upx;
+ border-radius: 15upx;
+ position: relative;
+ overflow: hidden;
+
+ .deleteBtn {
+ position: absolute;
+ right: 0;
+ top: 0;
+ padding: 10upx 20upx;
+ background-color: var(--errColor);
+ color: #fff;
+ zoom: 0.8;
+ }
}
.w100 {
@@ -1143,6 +1194,7 @@
color: #fff;
border-radius: 5upx;
margin-left: 10upx;
+ height: fit-content;
&.red {
color: #f8625a;
diff --git a/pagesHome/pages/onLoadByScan/onLoadByScan.vue b/pagesHome/pages/onLoadByScan/onLoadByScan.vue
index 92e6526..4afb347 100644
--- a/pagesHome/pages/onLoadByScan/onLoadByScan.vue
+++ b/pagesHome/pages/onLoadByScan/onLoadByScan.vue
@@ -3,7 +3,7 @@