From 8d10ec14a9cd5c7a4b8de9643d3fad03760f8de2 Mon Sep 17 00:00:00 2001 From: qb <1191961160@qq.com> Date: Mon, 14 Oct 2024 10:46:16 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E9=A6=96=E9=A1=B5?= =?UTF-8?q?=E5=B1=95=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/wel/index.vue | 32 ++++++++++++++++++++++++++------ 1 file changed, 26 insertions(+), 6 deletions(-) diff --git a/src/views/wel/index.vue b/src/views/wel/index.vue index 71595bf3..4671421d 100644 --- a/src/views/wel/index.vue +++ b/src/views/wel/index.vue @@ -28,6 +28,11 @@ {{ details.openOrderDataInfo.totalNum || 0 }} + +
+ {{ details.openOrderDataInfo.totalCount || 0 }} + +
@@ -41,6 +46,11 @@ {{ details.openOrderDataInfo.monthNum || 0 }}
+ +
+ {{ details.openOrderDataInfo.monthCount || 0 }} + +
@@ -52,9 +62,13 @@
{{ details.openOrderDataInfo.dayNum || 0 }} -
+ +
+ {{ details.openOrderDataInfo.dayCount || 0 }} + +
@@ -1003,12 +1017,18 @@ import { const details = reactive({ /** 开单数据 */ openOrderDataInfo: { - /** 开单 -- 总计 */ + /** 开单 -- 当日 -- 单 */ dayNum: 0, - /** 开单 -- 当月 */ + /** 开单 -- 当月 -- 单 */ monthNum: 0, - /** 开单 -- 当日 */ + /** 开单 -- 总计 -- 单 */ totalNum: 0, + /** 开单 -- 当日 -- 单 */ + dayCount: 0, + /** 开单 -- 当月 -- 单 */ + monthCount: 0, + /** 开单 -- 总计 -- 件 */ + totalCount: 0, }, /** 开单收入 */ openOrderIncomeInfo: { @@ -1476,7 +1496,7 @@ const billSignforData = computed(() => { .box1 { height: 100%; - width: 340px; + width: 400px; box-sizing: border-box; flex: none; } @@ -1487,7 +1507,7 @@ const billSignforData = computed(() => { // 统计数据 .totol { - width: 460px; + width: 400px; .monthData { height: 120px; From 0cfe5d8e6219c2946110d249f8fc9d2e3a753872 Mon Sep 17 00:00:00 2001 From: qb <1191961160@qq.com> Date: Mon, 14 Oct 2024 12:03:02 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=B8=8A=E4=BC=A0?= =?UTF-8?q?=E5=9B=BE=E7=89=87bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../aftersalesWorkOrderInfoEnxt.vue | 6 +- .../aftersalesWorkOrderInfoTemp.vue | 6 +- .../aftersalesWorkOrdermodifyTemp.vue | 6 +- src/views/aftersales/customerService.vue | 6 +- src/views/basic/pda/basicPdatt.vue | 6 +- .../warehouse/basicdataWarehouse.vue | 140 +++++++++--------- src/views/datadetail/ToolUpdate.vue | 6 +- .../artery/TripartiteTransfer.vue | 6 +- .../artery/VehicleArrivalManagement.vue | 6 +- .../artery/VehicleStowageDetails.vue | 8 +- .../artery/directGoMarketDetails.vue | 6 +- 11 files changed, 111 insertions(+), 91 deletions(-) diff --git a/src/views/aftersales/aftersalesWorkOrderInfoEnxt.vue b/src/views/aftersales/aftersalesWorkOrderInfoEnxt.vue index 349bbd7c..5fcbefa0 100644 --- a/src/views/aftersales/aftersalesWorkOrderInfoEnxt.vue +++ b/src/views/aftersales/aftersalesWorkOrderInfoEnxt.vue @@ -928,8 +928,10 @@ const beforeAvatarUpload = async rawFile => { const _whiteArr = ['png', 'jpg', 'jpeg']; - if (!_whiteArr.includes(_name.toLocaleLowerCase())) - return ElMessage.warning('请上传png、jpg、jpeg的类型图片'); + if (!_whiteArr.includes(_name.toLocaleLowerCase())) { + ElMessage.warning('请上传png、jpg、jpeg的类型图片'); + return false; + } const res = await compressImageBlob(rawFile); return res; }; diff --git a/src/views/aftersales/aftersalesWorkOrderInfoTemp.vue b/src/views/aftersales/aftersalesWorkOrderInfoTemp.vue index 3ef7a285..fb93ac76 100644 --- a/src/views/aftersales/aftersalesWorkOrderInfoTemp.vue +++ b/src/views/aftersales/aftersalesWorkOrderInfoTemp.vue @@ -903,8 +903,10 @@ const beforeAvatarUpload = async rawFile => { const _whiteArr = ['png', 'jpg', 'jpeg']; - if (!_whiteArr.includes(_name.toLocaleLowerCase())) - return ElMessage.warning('请上传png、jpg、jpeg的类型图片'); + if (!_whiteArr.includes(_name.toLocaleLowerCase())) { + ElMessage.warning('请上传png、jpg、jpeg的类型图片'); + return false; + } const res = await compressImageBlob(rawFile); return res; }; diff --git a/src/views/aftersales/aftersalesWorkOrdermodifyTemp.vue b/src/views/aftersales/aftersalesWorkOrdermodifyTemp.vue index 977e5471..2a9490a5 100644 --- a/src/views/aftersales/aftersalesWorkOrdermodifyTemp.vue +++ b/src/views/aftersales/aftersalesWorkOrdermodifyTemp.vue @@ -1023,8 +1023,10 @@ const beforeAvatarUpload = async rawFile => { const _whiteArr = ['png', 'jpg', 'jpeg']; - if (!_whiteArr.includes(_name.toLocaleLowerCase())) - return ElMessage.warning('请上传png、jpg、jpeg的类型图片'); + if (!_whiteArr.includes(_name.toLocaleLowerCase())) { + ElMessage.warning('请上传png、jpg、jpeg的类型图片'); + return false; + } const res = await compressImageBlob(rawFile); return res; }; diff --git a/src/views/aftersales/customerService.vue b/src/views/aftersales/customerService.vue index ba420c91..b38e0dd2 100644 --- a/src/views/aftersales/customerService.vue +++ b/src/views/aftersales/customerService.vue @@ -227,8 +227,10 @@ const beforeAvatarUpload = async rawFile => { const _whiteArr = ['png', 'jpg', 'jpeg']; - if (!_whiteArr.includes(_name.toLocaleLowerCase())) - return ElMessage.warning('请上传png、jpg、jpeg的类型图片'); + if (!_whiteArr.includes(_name.toLocaleLowerCase())) { + ElMessage.warning('请上传png、jpg、jpeg的类型图片'); + return false; + } const res = await compressImageBlob(rawFile); return res; }; diff --git a/src/views/basic/pda/basicPdatt.vue b/src/views/basic/pda/basicPdatt.vue index 96e5a7df..5896711c 100644 --- a/src/views/basic/pda/basicPdatt.vue +++ b/src/views/basic/pda/basicPdatt.vue @@ -800,8 +800,10 @@ const beforeAvatarUpload: UploadProps['beforeUpload'] = async rawFile => { const _whiteArr = ['png', 'jpg', 'jpeg']; - if (!_whiteArr.includes(_name.toLocaleLowerCase())) - return ElMessage.warning('请上传png、jpg、jpeg的类型图片'); + if (!_whiteArr.includes(_name.toLocaleLowerCase())) { + ElMessage.warning('请上传png、jpg、jpeg的类型图片'); + return false; + } const res = await compressImageBlob(rawFile); return res; }; diff --git a/src/views/basicdata/warehouse/warehouse/basicdataWarehouse.vue b/src/views/basicdata/warehouse/warehouse/basicdataWarehouse.vue index 234574dc..949e8428 100644 --- a/src/views/basicdata/warehouse/warehouse/basicdataWarehouse.vue +++ b/src/views/basicdata/warehouse/warehouse/basicdataWarehouse.vue @@ -4,78 +4,76 @@ -
- - 全部 - 临期 - 到期 -
-
-
- 新 增 - 批量删除 -
-
- - - + + 全部 + 临期 + 到期 + +
+
+
+ 新 增 + 批量删除 +
+
+ + + +
-
- - - - - - - - - -
-
- + + - -
-
-
- - + + + + + + +
+
+ + +
+
+
@@ -1082,8 +1080,10 @@ const beforeAvatarUpload = async rawFile => { const _whiteArr = ['png', 'jpg', 'jpeg']; - if (!_whiteArr.includes(_name.toLocaleLowerCase())) - return ElMessage.warning('请上传png、jpg、jpeg的类型图片'); + if (!_whiteArr.includes(_name.toLocaleLowerCase())) { + ElMessage.warning('请上传png、jpg、jpeg的类型图片'); + return false; + } const res = await compressImageBlob(rawFile); return res; }; diff --git a/src/views/datadetail/ToolUpdate.vue b/src/views/datadetail/ToolUpdate.vue index 35e62cf3..c0392b72 100644 --- a/src/views/datadetail/ToolUpdate.vue +++ b/src/views/datadetail/ToolUpdate.vue @@ -312,8 +312,10 @@ const beforeAvatarUpload: UploadProps['beforeUpload'] = async rawFile => { const _whiteArr = ['png', 'jpg', 'jpeg']; - if (!_whiteArr.includes(_name.toLocaleLowerCase())) - return ElMessage.warning('请上传png、jpg、jpeg的类型图片'); + if (!_whiteArr.includes(_name.toLocaleLowerCase())) { + ElMessage.warning('请上传png、jpg、jpeg的类型图片'); + return false; + } const res = await compressImageBlob(rawFile); return res; }; diff --git a/src/views/distribution/artery/TripartiteTransfer.vue b/src/views/distribution/artery/TripartiteTransfer.vue index 616f2d00..65aa515b 100644 --- a/src/views/distribution/artery/TripartiteTransfer.vue +++ b/src/views/distribution/artery/TripartiteTransfer.vue @@ -1393,8 +1393,10 @@ const handleBeforeUpload = async (rawFile: UploadRawFile) => { const _whiteArr = ['png', 'jpg', 'jpeg']; - if (!_whiteArr.includes(_name.toLocaleLowerCase())) - return ElMessage.warning('请上传png、jpg、jpeg的类型图片'); + if (!_whiteArr.includes(_name.toLocaleLowerCase())) { + ElMessage.warning('请上传png、jpg、jpeg的类型图片'); + return false; + } const res = await compressImageBlob(rawFile); return res; diff --git a/src/views/distribution/artery/VehicleArrivalManagement.vue b/src/views/distribution/artery/VehicleArrivalManagement.vue index b238dc5f..c556154a 100644 --- a/src/views/distribution/artery/VehicleArrivalManagement.vue +++ b/src/views/distribution/artery/VehicleArrivalManagement.vue @@ -1359,13 +1359,15 @@ const handleUnloadByLoadId = async (type: 1 | 2) => { details.loadingObj.pageLoading = true; const item = details.selectionList[0]; - const res = await postUnloadByLoadIdBefore({ loadId: item.id }); + const res = await postUnloadByLoadIdBefore({ loadId: item.id, unloadType: type }); const { code, data } = res.data; if (code !== 200) return; ElMessageBox.confirm( - '请确认卸车数据是否完成,未卸车数据将进入异常列表。', + `${ + data && Number(data.status) === 0 ? '存在直发商家数据还未卸车,' : '' + }请确认卸车数据是否完成,未卸车数据将进入异常列表。`, type === 1 ? '中途卸车确认' : '终点卸车确认', { confirmButtonText: '确认', diff --git a/src/views/distribution/artery/VehicleStowageDetails.vue b/src/views/distribution/artery/VehicleStowageDetails.vue index 771b7346..448a2233 100644 --- a/src/views/distribution/artery/VehicleStowageDetails.vue +++ b/src/views/distribution/artery/VehicleStowageDetails.vue @@ -731,7 +731,7 @@ const initOriginWarehouseOrder = async () => { }; /** 上传前类型检测 */ -const handleBeforeUpload = async (rawFile: UploadRawFile) => { +const handleBeforeUpload = async rawFile => { console.log('rawFile :>> ', rawFile); const _nameArr = rawFile.name.split('.'); @@ -744,8 +744,10 @@ const handleBeforeUpload = async (rawFile: UploadRawFile) => { const _whiteArr = ['png', 'jpg', 'jpeg']; - if (!_whiteArr.includes(_name.toLocaleLowerCase())) - return ElMessage.warning('请上传png、jpg、jpeg的类型图片'); + if (!_whiteArr.includes(_name.toLocaleLowerCase())) { + ElMessage.warning('请上传png、jpg、jpeg的类型图片'); + return false; + } const res = await compressImageBlob(rawFile); return res; diff --git a/src/views/distribution/artery/directGoMarketDetails.vue b/src/views/distribution/artery/directGoMarketDetails.vue index b8c911ab..0e33cc0a 100644 --- a/src/views/distribution/artery/directGoMarketDetails.vue +++ b/src/views/distribution/artery/directGoMarketDetails.vue @@ -1115,8 +1115,10 @@ const beforeAvatarUpload: UploadProps['beforeUpload'] = async rawFile => { const _whiteArr = ['png', 'jpg', 'jpeg']; - if (!_whiteArr.includes(_name.toLocaleLowerCase())) - return ElMessage.warning('请上传png、jpg、jpeg的类型图片'); + if (!_whiteArr.includes(_name.toLocaleLowerCase())) { + ElMessage.warning('请上传png、jpg、jpeg的类型图片'); + return false; + } const res = await compressImageBlob(rawFile); return res; };