diff --git a/ruoyi-ui/src/lang/en.js b/ruoyi-ui/src/lang/en.js index ea7c53d..26c668d 100644 --- a/ruoyi-ui/src/lang/en.js +++ b/ruoyi-ui/src/lang/en.js @@ -1240,6 +1240,36 @@ export default { cargoSpaceName: '货位名称', }, + // ***************入库分析************* + inAnalysis: { + warehouse: '仓库', // 仓库 + selectWarehouse: '请选择仓库', // 请选择仓库 + timeRange: '时间范围', // 时间范围 + startDate: '开始日期', // 开始日期 + endDate: '结束日期', // 结束日期 + query: '查询', // 查询 + inboundQuantityStatistics: '入库数量统计', // 入库数量统计 + inboundQuantity: '入库数量', // 入库数量 + selectTimeRange: '请选择时间范围', // 请选择时间范围 + getWarehouseListFailed: '获取仓库列表失败', // 获取仓库列表失败 + getStatisticsDataFailed: '获取统计数据失败' // 获取统计数据失败 + }, + + // ***************出库分析************* + outAnalysis: { + warehouse: '仓库', // 仓库 + selectWarehouse: '请选择仓库', // 请选择仓库 + timeRange: '时间范围', // 时间范围 + startDate: '开始日期', // 开始日期 + endDate: '结束日期', // 结束日期 + query: '查询', // 查询 + outboundQuantityStatistics: '出库数量统计', // 出库数量统计 + outboundQuantity: '出库数量', // 出库数量 + selectTimeRange: '请选择时间范围', // 请选择时间范围 + getWarehouseListFailed: '获取仓库列表失败', // 获取仓库列表失败 + getStatisticsDataFailed: '获取统计数据失败' // 获取统计数据失败 + }, + menu: { InboundManagement: "入库管理", //收货单据新增 @@ -1837,6 +1867,8 @@ export default { floorIsNull: '层不能为空', statusIsNull: '货位状态不能为空', lockedIsNull: '是否可用不能为空', + cargoSpaceIdIsNull:'货位ID不能为空', + cargoSpaceNameIsNull:'货位名称不能为空' }, //=====================基础信息:容器管理===================== @@ -3851,10 +3883,10 @@ export default { }, basstandPosition: { positionType: '点位类型', - description: '描述', enterPositionName:'请输入点位名称', positionStatus:'点位状态', selectPositionStatus:'请选择点位状态', + description: '描述', creator: '创建人', warehouseId: '仓库ID', containerInfo: '容器信息', diff --git a/ruoyi-ui/src/lang/hu.js b/ruoyi-ui/src/lang/hu.js index cd65889..26c668d 100644 --- a/ruoyi-ui/src/lang/hu.js +++ b/ruoyi-ui/src/lang/hu.js @@ -1240,6 +1240,36 @@ export default { cargoSpaceName: '货位名称', }, + // ***************入库分析************* + inAnalysis: { + warehouse: '仓库', // 仓库 + selectWarehouse: '请选择仓库', // 请选择仓库 + timeRange: '时间范围', // 时间范围 + startDate: '开始日期', // 开始日期 + endDate: '结束日期', // 结束日期 + query: '查询', // 查询 + inboundQuantityStatistics: '入库数量统计', // 入库数量统计 + inboundQuantity: '入库数量', // 入库数量 + selectTimeRange: '请选择时间范围', // 请选择时间范围 + getWarehouseListFailed: '获取仓库列表失败', // 获取仓库列表失败 + getStatisticsDataFailed: '获取统计数据失败' // 获取统计数据失败 + }, + + // ***************出库分析************* + outAnalysis: { + warehouse: '仓库', // 仓库 + selectWarehouse: '请选择仓库', // 请选择仓库 + timeRange: '时间范围', // 时间范围 + startDate: '开始日期', // 开始日期 + endDate: '结束日期', // 结束日期 + query: '查询', // 查询 + outboundQuantityStatistics: '出库数量统计', // 出库数量统计 + outboundQuantity: '出库数量', // 出库数量 + selectTimeRange: '请选择时间范围', // 请选择时间范围 + getWarehouseListFailed: '获取仓库列表失败', // 获取仓库列表失败 + getStatisticsDataFailed: '获取统计数据失败' // 获取统计数据失败 + }, + menu: { InboundManagement: "入库管理", //收货单据新增 @@ -1837,6 +1867,8 @@ export default { floorIsNull: '层不能为空', statusIsNull: '货位状态不能为空', lockedIsNull: '是否可用不能为空', + cargoSpaceIdIsNull:'货位ID不能为空', + cargoSpaceNameIsNull:'货位名称不能为空' }, //=====================基础信息:容器管理===================== diff --git a/ruoyi-ui/src/lang/zh.js b/ruoyi-ui/src/lang/zh.js index fb85ca1..26c668d 100644 --- a/ruoyi-ui/src/lang/zh.js +++ b/ruoyi-ui/src/lang/zh.js @@ -1240,6 +1240,36 @@ export default { cargoSpaceName: '货位名称', }, + // ***************入库分析************* + inAnalysis: { + warehouse: '仓库', // 仓库 + selectWarehouse: '请选择仓库', // 请选择仓库 + timeRange: '时间范围', // 时间范围 + startDate: '开始日期', // 开始日期 + endDate: '结束日期', // 结束日期 + query: '查询', // 查询 + inboundQuantityStatistics: '入库数量统计', // 入库数量统计 + inboundQuantity: '入库数量', // 入库数量 + selectTimeRange: '请选择时间范围', // 请选择时间范围 + getWarehouseListFailed: '获取仓库列表失败', // 获取仓库列表失败 + getStatisticsDataFailed: '获取统计数据失败' // 获取统计数据失败 + }, + + // ***************出库分析************* + outAnalysis: { + warehouse: '仓库', // 仓库 + selectWarehouse: '请选择仓库', // 请选择仓库 + timeRange: '时间范围', // 时间范围 + startDate: '开始日期', // 开始日期 + endDate: '结束日期', // 结束日期 + query: '查询', // 查询 + outboundQuantityStatistics: '出库数量统计', // 出库数量统计 + outboundQuantity: '出库数量', // 出库数量 + selectTimeRange: '请选择时间范围', // 请选择时间范围 + getWarehouseListFailed: '获取仓库列表失败', // 获取仓库列表失败 + getStatisticsDataFailed: '获取统计数据失败' // 获取统计数据失败 + }, + menu: { InboundManagement: "入库管理", //收货单据新增 diff --git a/ruoyi-ui/src/views/check/job/in/index.vue b/ruoyi-ui/src/views/check/job/in/index.vue index 30a33e8..44551c2 100644 --- a/ruoyi-ui/src/views/check/job/in/index.vue +++ b/ruoyi-ui/src/views/check/job/in/index.vue @@ -10,7 +10,7 @@ /> - + - + - +
- - + + - + - 查询 + {{$t('inAnalysis.query')}} @@ -87,7 +87,7 @@ export default { const response = await listWarehouse(this.queryWarehouseParam) this.warehouseOptions = response.rows } catch (error) { - console.error('获取仓库列表失败:', error) + console.error(this.$t('inAnalysis.getWarehouseListFailed'), error) // 获取仓库列表失败 } }, /** 设置最近七天时间范围 */ @@ -115,7 +115,7 @@ export default { updateChart() { const option = { title: { - text: '入库数量统计' + text: this.$t('inAnalysis.inboundQuantityStatistics') // 入库数量统计 }, tooltip: { trigger: 'axis' @@ -126,10 +126,10 @@ export default { }, yAxis: { type: 'value', - name: '入库数量' + name: this.$t('inAnalysis.inboundQuantity') // 入库数量 }, series: [{ - name: '入库数量', + name: this.$t('inAnalysis.inboundQuantity'), // 入库数量 type: 'line', data: this.chartData.series, smooth: true @@ -149,6 +149,12 @@ export default { }, /** 处理查询按钮点击 */ async handleQuery() { + // 验证时间范围是否为空 + if (!this.dateRange || this.dateRange.length === 0 || !this.dateRange[0] || !this.dateRange[1]) { + this.$message.warning(this.$t('inAnalysis.selectTimeRange')) // 请选择时间范围 + return + } + try { const response = await getInAnalysisData(this.queryParams) if (response.code === 200) { @@ -159,8 +165,8 @@ export default { this.$message.error(response.msg) } } catch (error) { - console.error('获取统计数据失败:', error) - this.$message.error('获取统计数据失败') + console.error(this.$t('inAnalysis.getStatisticsDataFailed'), error) // 获取统计数据失败 + this.$message.error(this.$t('inAnalysis.getStatisticsDataFailed')) // 获取统计数据失败 } }, diff --git a/ruoyi-ui/src/views/kpi/outAnalysis/indexByTime.vue b/ruoyi-ui/src/views/kpi/outAnalysis/indexByTime.vue index ab9528b..da891e4 100644 --- a/ruoyi-ui/src/views/kpi/outAnalysis/indexByTime.vue +++ b/ruoyi-ui/src/views/kpi/outAnalysis/indexByTime.vue @@ -1,8 +1,8 @@