限制必填搜索项必填,补充KPI国际化
This commit is contained in:
@@ -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: '容器信息',
|
||||
|
||||
@@ -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:'货位名称不能为空'
|
||||
},
|
||||
|
||||
//=====================基础信息:容器管理=====================
|
||||
|
||||
@@ -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: "入库管理",
|
||||
//收货单据新增
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item :label="$t('checkJobIn.status')" prop="status"> <!--任务状态-->
|
||||
<el-select v-model="queryParams.status" :placeholder="$t('checkJobIn.selectStatus')" clearable>
|
||||
<el-select v-model="queryParams.status" :placeholder="$t('checkJobIn.selectStatus')" >
|
||||
<el-option
|
||||
v-for="dict in dict.type.mydo_job_status"
|
||||
:key="dict.value"
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item :label="$t('checkJobOut.status')" prop="status"> <!-- 任务状态 -->
|
||||
<el-select v-model="queryParams.status" :placeholder="$t('checkJobOut.selectStatus')" clearable>
|
||||
<el-select v-model="queryParams.status" :placeholder="$t('checkJobOut.selectStatus')">
|
||||
<el-option
|
||||
v-for="dict in dict.type.mydo_job_status"
|
||||
:key="dict.value"
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item :label="$t('checkStockCheck.status')" prop="status"> <!-- 状态 -->
|
||||
<el-select v-model="queryParams.status" :placeholder="$t('checkStockCheck.selectStatus')" clearable>
|
||||
<el-select v-model="queryParams.status" :placeholder="$t('checkStockCheck.selectStatus')" >
|
||||
<el-option
|
||||
v-for="dict in dict.type.check_bill_status"
|
||||
:key="dict.value"
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
<template>
|
||||
<div class="app-container">
|
||||
<el-form :model="queryParams" ref="queryForm" :inline="true">
|
||||
<el-form-item label="仓库" prop="warehouseId">
|
||||
<el-select v-model="queryParams.warehouseId" placeholder="请选择仓库" clearable>
|
||||
<el-form-item :label="$t('inAnalysis.warehouse')" prop="warehouseId"> <!-- 仓库 -->
|
||||
<el-select v-model="queryParams.warehouseId" :placeholder="$t('inAnalysis.selectWarehouse')" clearable> <!-- 请选择仓库 -->
|
||||
<el-option
|
||||
v-for="item in warehouseOptions"
|
||||
:key="item.warehouseId"
|
||||
@@ -11,19 +11,19 @@
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="时间范围" prop="dateRange">
|
||||
<el-form-item :label="$t('inAnalysis.timeRange')" prop="dateRange"> <!-- 时间范围 -->
|
||||
<el-date-picker
|
||||
v-model="dateRange"
|
||||
type="daterange"
|
||||
range-separator="至"
|
||||
start-placeholder="开始日期"
|
||||
end-placeholder="结束日期"
|
||||
:start-placeholder="$t('inAnalysis.startDate')"
|
||||
:end-placeholder="$t('inAnalysis.endDate')"
|
||||
value-format="yyyy-MM-dd"
|
||||
@change="handleDateRangeChange"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button type="primary" icon="el-icon-search" @click="handleQuery">查询</el-button>
|
||||
<el-button type="primary" icon="el-icon-search" @click="handleQuery">{{$t('inAnalysis.query')}}</el-button> <!-- 查询 -->
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
|
||||
@@ -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')) // 获取统计数据失败
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
<template>
|
||||
<div class="app-container">
|
||||
<el-form :model="queryParams" ref="queryForm" :inline="true">
|
||||
<el-form-item label="仓库" prop="warehouseId">
|
||||
<el-select v-model="queryParams.warehouseId" placeholder="请选择仓库" clearable>
|
||||
<el-form-item :label="$t('outAnalysis.warehouse')" prop="warehouseId"> <!-- 仓库 -->
|
||||
<el-select v-model="queryParams.warehouseId" :placeholder="$t('outAnalysis.selectWarehouse')" clearable> <!-- 请选择仓库 -->
|
||||
<el-option
|
||||
v-for="item in warehouseOptions"
|
||||
:key="item.warehouseId"
|
||||
@@ -11,19 +11,19 @@
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="时间范围" prop="dateRange">
|
||||
<el-form-item :label="$t('outAnalysis.timeRange')" prop="dateRange"> <!-- 时间范围 -->
|
||||
<el-date-picker
|
||||
v-model="dateRange"
|
||||
type="daterange"
|
||||
range-separator="至"
|
||||
start-placeholder="开始日期"
|
||||
end-placeholder="结束日期"
|
||||
:start-placeholder="$t('outAnalysis.startDate')"
|
||||
:end-placeholder="$t('outAnalysis.endDate')"
|
||||
value-format="yyyy-MM-dd"
|
||||
@change="handleDateRangeChange"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button type="primary" icon="el-icon-search" @click="handleQuery">查询</el-button>
|
||||
<el-button type="primary" icon="el-icon-search" @click="handleQuery">{{$t('outAnalysis.query')}}</el-button> <!-- 查询 -->
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
|
||||
@@ -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('outAnalysis.getWarehouseListFailed'), error) // 获取仓库列表失败
|
||||
}
|
||||
},
|
||||
/** 设置最近七天时间范围 */
|
||||
@@ -115,7 +115,7 @@ export default {
|
||||
updateChart() {
|
||||
const option = {
|
||||
title: {
|
||||
text: '出库数量统计'
|
||||
text: this.$t('outAnalysis.outboundQuantityStatistics') // 出库数量统计
|
||||
},
|
||||
tooltip: {
|
||||
trigger: 'axis'
|
||||
@@ -126,10 +126,10 @@ export default {
|
||||
},
|
||||
yAxis: {
|
||||
type: 'value',
|
||||
name: '出库数量'
|
||||
name: this.$t('outAnalysis.outboundQuantity') // 出库数量
|
||||
},
|
||||
series: [{
|
||||
name: '出库数量',
|
||||
name: this.$t('outAnalysis.outboundQuantity'), // 出库数量
|
||||
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('outAnalysis.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('outAnalysis.getStatisticsDataFailed'), error) // 获取统计数据失败
|
||||
this.$message.error(this.$t('outAnalysis.getStatisticsDataFailed')) // 获取统计数据失败
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<el-form :model="queryParams" ref="queryForm" :inline="true">
|
||||
<!-- 仓库 -->
|
||||
<el-form-item :label="$t('KPIAnalysis_CargoPlan.warehouse')" prop="warehouseId">
|
||||
<el-select v-model="queryParams.warehouseId" :placeholder="$t('KPIAnalysis_CargoPlan.placeholderWarehouse')" clearable @change="handleWarehouseChange">
|
||||
<el-select v-model="queryParams.warehouseId" :placeholder="$t('KPIAnalysis_CargoPlan.placeholderWarehouse')" @change="handleWarehouseChange">
|
||||
<el-option
|
||||
v-for="dict in warehouseOptions"
|
||||
:key="dict.warehouseId"
|
||||
|
||||
Reference in New Issue
Block a user