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; };