7.19 国际化代码修改

main
shilei 4 months ago
parent 415c8d89c4
commit 1929f2e128

@ -138,89 +138,89 @@ export default {
no_operation: 'There is currently no battery swapping operation',
},
//
un_repair_info:{
Device_code:"Device code",
Please_enter:"Please enter",
Querying:"Querying",
Reset:"Reset",
Export:"Export",
Serial_number:"Serial number",
Device_type_encoding:"Device type encoding",
Alarm_code:"Alarm code",
Start_time:"Start time",
Alarm_level:"Alarm level",
Alarm_description:"Alarm description",
Processing_method:"Processing method",
Electric_charging_machine:"Electric charging machine",
BMS_battery:"BMS battery",
Processing_time:"Processing time",
The_device_has_been_processed_failure_log_table:"The device has been processed failure log table.xlsx",
Device_unprocessed_fault_log_table:"Device unprocessed fault log table.xlsx",
},
emeter_total_energy_value:{
Chart_of_accumulated_value_of_electricity_meter_Chart_of_accumulated_value_of_electricity_meter:"Chart of accumulated value of electricity meter Chart of accumulated value of electricity meter",
This_month:"This month",
Energy_meter_cumulative_value_data:"Energy meter cumulative value data",
Direct_current:"Direct current",
Alternating_current:"Alternating current current",
Serial_number:"Serial number",
Electricity_meter_code:"Electricity meter code",
Kilowatt_hour:"Kilowatt hour",
Type_of_energy_meter:"Type of energy meter",
Direct_current_meter:"Direct current meter",
Alternating_current_table:"Alternating current table",
un_repair_info: {
Device_code: "Device code",
Please_enter: "Please enter",
Querying: "Querying",
Reset: "Reset",
Export: "Export",
Serial_number: "Serial number",
Device_type_encoding: "Device type encoding",
Alarm_code: "Alarm code",
Start_time: "Start time",
Alarm_level: "Alarm level",
Alarm_description: "Alarm description",
Processing_method: "Processing method",
Electric_charging_machine: "Electric charging machine",
BMS_battery: "BMS battery",
Processing_time: "Processing time",
The_device_has_been_processed_failure_log_table: "The device has been processed failure log table.xlsx",
Device_unprocessed_fault_log_table: "Device unprocessed fault log table.xlsx",
},
emeter_total_energy_value: {
Chart_of_accumulated_value_of_electricity_meter_Chart_of_accumulated_value_of_electricity_meter: "Chart of accumulated value of electricity meter Chart of accumulated value of electricity meter",
This_month: "This month",
Energy_meter_cumulative_value_data: "Energy meter cumulative value data",
Direct_current: "Direct current",
Alternating_current: "Alternating current current",
Serial_number: "Serial number",
Electricity_meter_code: "Electricity meter code",
Kilowatt_hour: "Kilowatt hour",
Type_of_energy_meter: "Type of energy meter",
Direct_current_meter: "Direct current meter",
Alternating_current_table: "Alternating current table",
},
emeter_real_energy_value:{
Meter_minute_value_DC_chart:"Meter minute value DC chart",
Meter_minute_value_AC_chart:"Meter minute value AC chart",
Meter_hour_value_DC_chart:"Meter hour value DC chart",
Meter_hour_value_AC_chart:"Meter hour value AC chart",
emeter_real_energy_value: {
Meter_minute_value_DC_chart: "Meter minute value DC chart",
Meter_minute_value_AC_chart: "Meter minute value AC chart",
Meter_hour_value_DC_chart: "Meter hour value DC chart",
Meter_hour_value_AC_chart: "Meter hour value AC chart",
},
ac:{
Current_state:"Current state",
stateless:"stateless",
Open:"Open",
Close:"Close",
The_operation_succeeded:"The operation succeeded",
Are_you_sure_you_want_to_set_startup:"Are you sure you want to set startup?",
ac: {
Current_state: "Current state",
stateless: "stateless",
Open: "Open",
Close: "Close",
The_operation_succeeded: "The operation succeeded",
Are_you_sure_you_want_to_set_startup: "Are you sure you want to set startup?",
},
fan:{
Fan_control:"Fan control",
Current_state:"Current state",
stateless:"stateless",
Open:"Open",
Close:"Close",
fan: {
Fan_control: "Fan control",
Current_state: "Current state",
stateless: "stateless",
Open: "Open",
Close: "Close",
Operation_successful: 'Operation successful',
Operation_failed: 'Operation failed',
},
warehouses:{
To_transfer_battery_please_click_Select:"To transfer battery, please click Select...",
Select:"Select",
Fire_shelter:"Fire shelter",
Current_change_channel:"(Current change channel)",
Position_of_position:"Position of position",
Position_number:" Position number",
warehouses: {
To_transfer_battery_please_click_Select: "To transfer battery, please click Select...",
Select: "Select",
Fire_shelter: "Fire shelter",
Current_change_channel: "(Current change channel)",
Position_of_position: "Position of position",
Position_number: " Position number",
Confirmation_warehouse_relocation: 'Confirmation of warehouse relocation',
Cancel_warehouse_move: 'Cancel warehouse move',
Fire_removal_please_move_away: 'Fire removal is about to take place, please move away',
Cancel: 'Cancel',
Confirmation: 'Confirmation',
Please_select_your_position:"Please select your position",
Please_select_a_space_with_batteries:"Please select a space with batteries",
Transferable_positions:"Transferable positions",
Transfer_in_warehouse:"Transfer in warehouse...",
Please_select_your_position: "Please select your position",
Please_select_a_space_with_batteries: "Please select a space with batteries",
Transferable_positions: "Transferable positions",
Transfer_in_warehouse: "Transfer in warehouse...",
},
direct_current:{
Querying:"Querying",
Reset:"Reset",
Ac_power_meter_No:"Ac power meter No",
Kilowatt_hour:"Kilowatt hour",
Date:"Date",
Ac_power_meter:"Ac power meter",
Dc_power_meter:"Dc power meter",
direct_current: {
Querying: "Querying",
Reset: "Reset",
Ac_power_meter_No: "Ac power meter No",
Kilowatt_hour: "Kilowatt hour",
Date: "Date",
Ac_power_meter: "Ac power meter",
Dc_power_meter: "Dc power meter",
},
//
charging: {
@ -382,6 +382,144 @@ export default {
confirmSwitchToManualCharging: "confirm switch to manual charging",
confirmEnableDevice: "confirm enable device",
confirmDisableDevice: "confirm disable device"
},
replace_log: {
orderNumber: "Order Number",
licensePlate: "License Plate",
fullBatteryCode: "Full Battery Code",
emptyBatteryCode: "Empty Battery Code",
startTime: "Start Time",
endTime: "End Time",
search: "Search",
reset: "Reset",
addNew: "Add New",
batchDelete: "Batch Delete",
export: "Export",
serialNumber: "Serial Number",
cloudPlatformOrderNumber: "Cloud Platform Order Number",
reportCount: "Report Count",
vehicleVin: "Vehicle VIN",
vehicleEntryTime: "Vehicle Entry Time",
vehicleExitTime: "Vehicle Exit Time",
batteryChangeStartTime: "Battery Change Start Time",
batteryChangeEndTime: "Battery Change End Time",
batteryChangeType: "Battery Change Type",
manual: "Manual",
automatic: "Automatic",
batteryChangeResult: "Battery Change Result",
unknown: "Unknown",
success: "Success",
failure: "Failure",
failureReason: "Failure Reason",
cloudPlatformUploadStatus: "Cloud Platform Upload Status",
notUploaded: "Not Uploaded",
uploaded: "Uploaded",
operation: "Operation",
reportToCloud: "Report to Cloud",
edit: "Edit",
delete: "Delete",
warehousePositionIn: "Warehouse Position In",
emptyBatterySoc: "Empty Battery SOC",
warehousePositionOut: "Warehouse Position Out",
fullBatterySoc: "Full Battery SOC",
confirmDeleteCurrentData: "Confirm Delete Current Data?",
deleteSuccess: "Delete Success",
deleteFailure: "Delete Failure",
confirmBatchDeleteData: "Confirm Batch Delete Data?",
confirmReportToCloud: "Confirm Report to Cloud?",
reportSuccess: "Report Success",
reportFailure: "Report Failure"
},
replace_status_log: {
batteryChangeOrderNumber: "Battery Change Order Number",
stepSequence: "Step Sequence",
stepName: "Step Name",
search: "Search",
reset: "Reset",
serialNumber: "Serial Number",
creationTime: "Creation Time"
},
station_battery_total_result: {
warehousePositionOut: "Warehouse Position Out",
batteryCodeOut: "Battery Code Out",
socOut: "SOC Out",
search: "Search",
reset: "Reset",
serialNumber: "Serial Number",
warehousePositionIn: "Warehouse Position In",
creationTime: "Creation Time",
updateTime: "Update Time",
status: "Status",
initialization: "Initialization",
inProgress: "In Progress",
success: "Success",
failure: "Failure",
type: "Type",
automatic: "Automatic",
manual: "Manual"
},
day_swap_run_result: {
batchDelete: "Batch Delete",
export: "Export",
serialNumber: "Serial Number",
averageChargingDurationMin: "Average Charging Duration (min)",
averageBatteryChangeDurationMin: "Average Battery Change Duration (min)",
batteryChangeDate: "Battery Change Date",
firstBatteryChangeTime: "First Battery Change Time",
endBatteryChangeTime: "End Battery Change Time",
totalChargingCount: "Total Charging Count",
operationalStatus: "Operational Status",
inOperation: "In Operation",
outOfService: "Out of Service",
equipmentMaintenanceStatus: "Equipment Maintenance Status",
suspended: "Suspended",
totalBatteryChangeCount: "Total Battery Change Count",
totalBatteryChangeDurationMin: "Total Battery Change Duration (min)",
operation: "Operation",
delete: "Delete"
},
charging_real_result: {
orderNumber: "Order Number",
batteryCode: "Battery Code",
chargerNumber: "Charger Number",
batteryChangeOrderNumber: "Battery Change Order Number",
search: "Search",
reset: "Reset",
export: "Export",
serialNumber: "Serial Number",
startMessageStatus: "Start Message Status",
initialization: "Initialization",
startSuccess: "Start Success",
chargingStartTime: "Charging Start Time",
chargingEndTime: "Charging End Time",
chargingStartSoc: "Charging Start SOC",
chargingEndSoc: "Charging End SOC",
chargingDurationMin: "Charging Duration (min)",
chargingEnergyKwh: "Charging Energy (kWh)",
acMeterReadingKwh: "AC Meter Reading (kWh)",
chargingStartAcMeterReadingKwh: "Charging Start AC Meter Reading (kWh)",
chargingEndAcMeterReadingKwh: "Charging End AC Meter Reading (kWh)",
chargingStartDcMeterReadingKwh: "Charging Start DC Meter Reading (kWh)",
chargingEndDcMeterReadingKwh: "Charging End DC Meter Reading (kWh)",
startType: "Start Type",
stationControlAutoStart: "Station Control Auto Start",
stationControlManualStart: "Station Control Manual Start",
chargerAutoStart: "Charger Auto Start",
stopReason: "Stop Reason",
fullChargeAutoStop: "Full Charge Auto Stop",
manualStop: "Manual Stop",
peakPeriodEnergy: "Peak Period Energy",
peakingPeriodEnergy: "Peak period electricity consumption",
offPeakPeriodEnergy: "Off-Peak Period Energy",
flatPeriodEnergy: "Flat Period Energy",
tariffVersionNumber: "Tariff Version Number",
cloudPlatformUploadStatus: "Cloud Platform Upload Status",
notUploaded: "Not Uploaded",
uploaded: "Uploaded",
operation: "Operation",
reportToCloud: "Report to Cloud"
}
};

@ -137,89 +137,89 @@ export default {
no_operation: '当前无换电操作',
},
//
un_repair_info:{
Device_code:"设备编码",
Please_enter:"请输入",
Querying:"查询",
Reset:"重置",
Export:"导出",
Serial_number:"序号",
Device_type_encoding:"设备类型编码",
Alarm_code:"报警编码",
Start_time:"开始时间",
Alarm_level:"报警等级",
Alarm_description:"报警描述",
Processing_method:"处理方法",
Electric_charging_machine:"充电机",
BMS_battery:"BMS电池",
Processing_time:"处理时间",
The_device_has_been_processed_failure_log_table:"设备已处理故障日志表.xlsx",
Device_unprocessed_fault_log_table:"设备未处理故障日志表.xlsx",
un_repair_info: {
Device_code: "设备编码",
Please_enter: "请输入",
Querying: "查询",
Reset: "重置",
Export: "导出",
Serial_number: "序号",
Device_type_encoding: "设备类型编码",
Alarm_code: "报警编码",
Start_time: "开始时间",
Alarm_level: "报警等级",
Alarm_description: "报警描述",
Processing_method: "处理方法",
Electric_charging_machine: "充电机",
BMS_battery: "BMS电池",
Processing_time: "处理时间",
The_device_has_been_processed_failure_log_table: "设备已处理故障日志表.xlsx",
Device_unprocessed_fault_log_table: "设备未处理故障日志表.xlsx",
},
emeter_total_energy_value:{
Chart_of_accumulated_value_of_electricity_meter_Chart_of_accumulated_value_of_electricity_meter:"电能表累计值图表",
This_month:"本月",
Energy_meter_cumulative_value_data:"电能表累计值数据",
Direct_current:"直流",
Alternating_current:"交流",
Serial_number:"序号",
Electricity_meter_code:"电表编码",
Kilowatt_hour:"千瓦时(kwh)",
Type_of_energy_meter :"电能表类型",
Direct_current_meter:"直流表",
Alternating_current_table:"交流表",
emeter_total_energy_value: {
Chart_of_accumulated_value_of_electricity_meter_Chart_of_accumulated_value_of_electricity_meter: "电能表累计值图表",
This_month: "本月",
Energy_meter_cumulative_value_data: "电能表累计值数据",
Direct_current: "直流",
Alternating_current: "交流",
Serial_number: "序号",
Electricity_meter_code: "电表编码",
Kilowatt_hour: "千瓦时(kwh)",
Type_of_energy_meter: "电能表类型",
Direct_current_meter: "直流表",
Alternating_current_table: "交流表",
},
emeter_real_energy_value:{
Meter_minute_value_DC_chart:"电能表分钟值直流图表",
Meter_minute_value_AC_chart:"电能表分钟值交流图表",
Meter_hour_value_DC_chart:"电能表小时值直流图表",
Meter_hour_value_AC_chart:"电能表小时值交流图表",
emeter_real_energy_value: {
Meter_minute_value_DC_chart: "电能表分钟值直流图表",
Meter_minute_value_AC_chart: "电能表分钟值交流图表",
Meter_hour_value_DC_chart: "电能表小时值直流图表",
Meter_hour_value_AC_chart: "电能表小时值交流图表",
},
ac:{
Current_state:"当前状态",
stateless:"无状态",
Open:"打开",
Close:"关闭",
The_operation_succeeded:"操作成功",
Are_you_sure_you_want_to_set_startup:"确定要设置启动吗",
ac: {
Current_state: "当前状态",
stateless: "无状态",
Open: "打开",
Close: "关闭",
The_operation_succeeded: "操作成功",
Are_you_sure_you_want_to_set_startup: "确定要设置启动吗",
},
fan:{
Fan_control:"风机控制",
Current_state:"当前状态",
stateless:"无状态",
Open:"打开",
Close:"关闭",
fan: {
Fan_control: "风机控制",
Current_state: "当前状态",
stateless: "无状态",
Open: "打开",
Close: "关闭",
Operation_successful: '操作成功',
Operation_failed: '操作失败',
},
warehouses:{
To_transfer_battery_please_click_Select:"待转移电池,请点击选择...",
Select:"选择",
Fire_shelter:"消防仓",
Current_change_channel:"(换电通道)",
Position_of_position:"仓位",
Position_number:"仓位编号",
warehouses: {
To_transfer_battery_please_click_Select: "待转移电池,请点击选择...",
Select: "选择",
Fire_shelter: "消防仓",
Current_change_channel: "(换电通道)",
Position_of_position: "仓位",
Position_number: "仓位编号",
Confirmation_warehouse_relocation: '确定移仓',
Cancel_warehouse_move: '取消移仓',
Fire_removal_please_move_away: '即将进行消防移仓,请车辆驶离!!!',
Cancel: '取消',
Confirmation: '确认',
Please_select_your_position:"请选择仓位",
Please_select_a_space_with_batteries:"请选择有电池的仓位",
Transferable_positions:"可转移仓位",
Transfer_in_warehouse:"移仓中...",
Please_select_your_position: "请选择仓位",
Please_select_a_space_with_batteries: "请选择有电池的仓位",
Transferable_positions: "可转移仓位",
Transfer_in_warehouse: "移仓中...",
},
direct_current:{
Querying:"查询",
Reset:"重置",
Ac_power_meter:"号交流电能表",
Dc_power_meter:"号直流电能表",
Kilowatt_hour:"千瓦时",
Date:"日期",
direct_current: {
Querying: "查询",
Reset: "重置",
Ac_power_meter: "号交流电能表",
Dc_power_meter: "号直流电能表",
Kilowatt_hour: "千瓦时",
Date: "日期",
},
//
charging: {
@ -381,7 +381,142 @@ export default {
confirmSwitchToManualCharging: "确定切换手动充电吗?",
confirmEnableDevice: "确定设备启用吗?",
confirmDisableDevice: "确定设备禁用吗?"
}
},
replace_log: {
orderNumber: "订单号",
licensePlate: "车牌号",
fullBatteryCode: "满电包编码",
emptyBatteryCode: "亏电包编码",
startTime: "开始时间",
endTime: "结束时间",
search: "查询",
reset: "重置",
addNew: "新增",
batchDelete: "批量删除",
export: "导出",
serialNumber: "序号",
cloudPlatformOrderNumber: "云平台订单号",
reportCount: "上报次数",
vehicleVin: "车辆Vin码",
vehicleEntryTime: "车辆进场时间",
vehicleExitTime: "车辆离场时间",
batteryChangeStartTime: "换电开始时间",
batteryChangeEndTime: "换电结束时间",
batteryChangeType: "换电类型",
manual: "手动",
automatic: "自动",
batteryChangeResult: "换电结果",
unknown: "未知",
success: "成功",
failure: "失败",
failureReason: "失败原因",
cloudPlatformUploadStatus: "上传云平台状态",
notUploaded: "未上传",
uploaded: "已上传",
operation: "操作",
reportToCloud: "上报云端",
edit: "编辑",
delete: "删除",
warehousePositionIn: "入仓仓位",
emptyBatterySoc: "亏电池包soc",
warehousePositionOut: "出仓仓位",
fullBatterySoc: "满电池包soc",
confirmDeleteCurrentData: "确定删除当前数据吗?",
deleteSuccess: "删除成功",
deleteFailure: "删除失败",
confirmBatchDeleteData: "确定批量删除这些数据吗?",
confirmReportToCloud: "确定上报云端当前数据吗?",
reportSuccess: "上报成功",
reportFailure: "上报失败"
},
replace_status_log: {
batteryChangeOrderNumber: "换电订单编号",
stepSequence: "步序",
stepName: "步序名称",
search: "查询",
reset: "重置",
serialNumber: "序号",
creationTime: "创建时间"
},
station_battery_total_result: {
warehousePositionOut: "出仓仓位号",
batteryCodeOut: "出仓电池编号",
socOut: "出仓soc",
search: "查询",
reset: "重置",
serialNumber: "序号",
warehousePositionIn: "入仓仓位号",
creationTime: "创建时间",
updateTime: "更新时间",
status: "状态",
initialization: "初始化",
inProgress: "进行中",
success: "成功",
failure: "失败",
type: "类型",
automatic: "自动",
manual: "手动"
},
day_swap_run_result: {
batchDelete: "批量删除",
export: "导出",
serialNumber: "序号",
averageChargingDurationMin: "平均充电时长(min)",
averageBatteryChangeDurationMin: "平均换电时长(min)",
batteryChangeDate: "换电日期",
firstBatteryChangeTime: "首次换电时间",
endBatteryChangeTime: "结束换电时间",
totalChargingCount: "充电总次数",
operationalStatus: "运营状态",
inOperation: "营运中",
outOfService: "歇业中",
equipmentMaintenanceStatus: "设备维护状态",
suspended: "暂停营业",
totalBatteryChangeCount: "换电总次数",
totalBatteryChangeDurationMin: "换电总时长(min)",
operation: "操作",
delete: "删除"
},
charging_real_result: {
orderNumber: "订单号",
batteryCode: "电池编号",
chargerNumber: "充电机编号",
batteryChangeOrderNumber: "换电订单编号",
search: "查询",
reset: "重置",
export: "导出",
serialNumber: "序号",
startMessageStatus: "启动报文状态",
initialization: "初始化",
startSuccess: "启动成功",
chargingStartTime: "充电开始时间",
chargingEndTime: "充电结束时间",
chargingStartSoc: "充电开始soc",
chargingEndSoc: "充电结束soc",
chargingDurationMin: "充电时长(min)",
chargingEnergyKwh: "充电电量(kwh)",
acMeterReadingKwh: "交流电表量(kwh)",
chargingStartAcMeterReadingKwh: "充电开始交流表电量(kwh)",
chargingEndAcMeterReadingKwh: "充电结束交流表电量(kwh)",
chargingStartDcMeterReadingKwh: "充电开始直流表电量(kwh)",
chargingEndDcMeterReadingKwh: "充电结束直流表电量(kwh)",
startType: "启动类型",
stationControlAutoStart: "站控自启",
stationControlManualStart: "站控手动启动",
chargerAutoStart: "充电机自启",
stopReason: "停止原因",
fullChargeAutoStop: "满电自动停止",
manualStop: "人工停止",
peakPeriodEnergy: "尖时段电量",
peakingPeriodEnergy: "峰时段电量",
flatPeriodEnergy: "平时段电量",
offPeakPeriodEnergy: "谷时段电量",
tariffVersionNumber: "电价版本号",
cloudPlatformUploadStatus: "上传云平台状态",
notUploaded: "未上传",
uploaded: "已上传",
operation: "操作",
reportToCloud: "上报云端"
}
};

@ -2,26 +2,26 @@
<div class="sys-tenant-container">
<el-card shadow="hover" :body-style="{ paddingBottom: '0' }">
<el-form :model="state.queryParams" ref="queryForm" :inline="true">
<el-form-item label="订单号">
<el-input v-model="state.queryParams.sn" placeholder="订单号" clearable />
<el-form-item :label="$t('message.charging_real_result.orderNumber')">
<el-input v-model="state.queryParams.sn" placeholder="" clearable />
</el-form-item>
<el-form-item label="电池编号">
<el-input v-model="state.queryParams.batteryNo" placeholder="电池编号" clearable />
<el-form-item :label="$t('message.charging_real_result.batteryCode')">
<el-input v-model="state.queryParams.batteryNo" placeholder="" clearable />
</el-form-item>
<el-form-item label="充电机编号">
<el-form-item :label="$t('message.charging_real_result.chargerNumber')">
<el-input v-model="state.queryParams.chargerNo" placeholder="充电机编号" clearable />
</el-form-item>
<el-form-item label="换电订单编号">
<el-input v-model="state.queryParams.swapOrderSn" placeholder="换电订单编号" clearable />
<el-form-item :label="$t('message.charging_real_result.batteryChangeOrderNumber')">
<el-input v-model="state.queryParams.swapOrderSn" placeholder="" clearable />
</el-form-item>
<!-- <el-form-item label="充电枪编号">
<el-input v-model="state.queryParams.chargerGunNo" placeholder="充电枪编号" clearable />
</el-form-item> -->
<el-form-item>
<el-button-group>
<el-button type="primary" icon="ele-Search" @click="handleQuery"> </el-button>
<el-button icon="ele-Refresh" @click="resetQuery"> </el-button>
<el-button icon="ele-FolderOpened" @click="handleExport"> </el-button>
<el-button type="primary" icon="ele-Search" @click="handleQuery"> {{ $t('message.charging_real_result.search') }} </el-button>
<el-button icon="ele-Refresh" @click="resetQuery"> {{ $t('message.charging_real_result.reset') }} </el-button>
<el-button icon="ele-FolderOpened" @click="handleExport"> {{ $t('message.charging_real_result.export') }} </el-button>
</el-button-group>
</el-form-item>
<el-form-item>
@ -34,17 +34,17 @@
<el-card class="full-table" shadow="hover" style="margin-top: 5px">
<el-table :data="state.tenantData" style="width: 100%" v-loading="state.loading" border ref="tableRef" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" fixed> </el-table-column>
<el-table-column type="index" label="序号" width="55" align="center" fixed />
<el-table-column prop="sn" label="订单号" align="center" show-overflow-tooltip />
<el-table-column prop="batteryNo" label="电池编号" align="center" show-overflow-tooltip />
<el-table-column prop="cmdStatus" label="启动报文状态" width="100" align="center" show-overflow-tooltip>
<el-table-column type="index" :label="$t('message.charging_real_result.serialNumber')" width="55" align="center" fixed />
<el-table-column prop="sn" :label="$t('message.charging_real_result.orderNumber')" align="center" show-overflow-tooltip />
<el-table-column prop="batteryNo" :label="$t('message.charging_real_result.batteryCode')" align="center" show-overflow-tooltip />
<el-table-column prop="cmdStatus" :label="$t('message.charging_real_result.startMessageStatus')" width="100" align="center" show-overflow-tooltip>
<template #default="scope">
<el-tag v-if="scope.row.cmdStatus === 0"> </el-tag>
<el-tag v-if="scope.row.cmdStatus === 1"> </el-tag>
<el-tag v-if="scope.row.cmdStatus === 0"> {{ $t('message.charging_real_result.initialization') }} </el-tag>
<el-tag v-if="scope.row.cmdStatus === 1"> {{ $t('message.charging_real_result.startSuccess') }} </el-tag>
</template>
</el-table-column>
<el-table-column prop="chargerNo" label="充电机编号" align="center" show-overflow-tooltip />
<el-table-column prop="chargerNo" :label="$t('message.charging_real_result.chargerNumber')" align="center" show-overflow-tooltip />
<!-- <el-table-column prop="chargerGunNo" label="充电枪编号" align="center" show-overflow-tooltip /> -->
<!-- <el-table-column prop="tenantType" label="租户类型" width="100" align="center" show-overflow-tooltip>
<template #default="scope">
@ -52,46 +52,48 @@
<el-tag type="danger" v-else> </el-tag>
</template>
</el-table-column> -->
<el-table-column prop="startTime" label="充电开始时间" width="150" align="center" header-align="center" show-overflow-tooltip />
<el-table-column prop="endTime" label="充电结束时间" width="150" align="center" header-align="center" show-overflow-tooltip />
<el-table-column prop="startSoc" label="充电开始soc" align="center" show-overflow-tooltip />
<el-table-column prop="stopSoc" label="充电结束soc" align="center" show-overflow-tooltip />
<el-table-column prop="chargeTimeCount" label="充电时长(分钟)" align="center" show-overflow-tooltip />
<el-table-column prop="elecCount" label="充电电量(kwh)" align="center" show-overflow-tooltip />
<el-table-column prop="acElecCount" label="交流电表量(kwh)" align="center" show-overflow-tooltip />
<el-table-column prop="startAcElec" label="充电开始交流表电量(kwh)" align="center" show-overflow-tooltip />
<el-table-column prop="stopAcElec" label="充电结束交流表电量(kwh)" align="center" show-overflow-tooltip />
<el-table-column prop="startDcElec" label="充电开始直流表电量(kwh)" align="center" show-overflow-tooltip />
<el-table-column prop="stopDcElec" label="充电结束直流表电量(kwh)" align="center" show-overflow-tooltip />
<el-table-column label="启动类型" align="center" show-overflow-tooltip width="120">
<el-table-column prop="startTime" :label="$t('message.charging_real_result.chargingStartTime')" width="150" align="center" header-align="center" show-overflow-tooltip />
<el-table-column prop="endTime" :label="$t('message.charging_real_result.chargingEndTime')" width="150" align="center" header-align="center" show-overflow-tooltip />
<el-table-column prop="startSoc" :label="$t('message.charging_real_result.chargingStartSoc')" align="center" show-overflow-tooltip />
<el-table-column prop="stopSoc" :label="$t('message.charging_real_result.chargingEndSoc')" align="center" show-overflow-tooltip />
<el-table-column prop="chargeTimeCount" :label="$t('message.charging_real_result.chargingDurationMin')" align="center" show-overflow-tooltip />
<el-table-column prop="elecCount" :label="$t('message.charging_real_result.chargingEnergyKwh')" align="center" show-overflow-tooltip />
<el-table-column prop="acElecCount" :label="$t('message.charging_real_result.acMeterReadingKwh')" align="center" show-overflow-tooltip />
<el-table-column prop="startAcElec" :label="$t('message.charging_real_result.chargingStartAcMeterReadingKwh')" align="center" show-overflow-tooltip />
<el-table-column prop="stopAcElec" :label="$t('message.charging_real_result.chargingEndAcMeterReadingKwh')" align="center" show-overflow-tooltip />
<el-table-column prop="startDcElec" :label="$t('message.charging_real_result.chargingStartDcMeterReadingKwh')" align="center" show-overflow-tooltip />
<el-table-column prop="stopDcElec" :label="$t('message.charging_real_result.chargingEndDcMeterReadingKwh')" align="center" show-overflow-tooltip />
<el-table-column :label="$t('message.charging_real_result.startType')" align="center" show-overflow-tooltip width="120">
<template #default="scope">
<el-tag v-if="scope.row.startType === 0"> </el-tag>
<el-tag v-if="scope.row.startType === 1"> </el-tag>
<el-tag v-if="scope.row.startType === 2"> </el-tag>
<el-tag v-if="scope.row.startType === 0"> {{ $t('message.charging_real_result.stationControlAutoStart') }} </el-tag>
<el-tag v-if="scope.row.startType === 1"> {{ $t('message.charging_real_result.stationControlManualStart') }} </el-tag>
<el-tag v-if="scope.row.startType === 2"> {{ $t('message.charging_real_result.chargerAutoStart') }} </el-tag>
</template>
</el-table-column>
<el-table-column prop="stopReason" label="停止原因" align="center" show-overflow-tooltip>
<el-table-column prop="stopReason" :label="$t('message.charging_real_result.stopReason')" align="center" show-overflow-tooltip>
<template #default="scope">
<el-tag v-if="scope.row.stopReason === 0"> </el-tag>
<el-tag v-if="scope.row.stopReason === 1"> </el-tag>2
<el-tag v-if="scope.row.stopReason === 0"> {{ $t('message.charging_real_result.fullChargeAutoStop') }} </el-tag>
<el-tag v-if="scope.row.stopReason === 1"> {{ $t('message.charging_real_result.manualStop') }} </el-tag>
</template>
</el-table-column>
<el-table-column prop="sharpElecCount" label="尖时段电量" align="center" show-overflow-tooltip />
<el-table-column prop="peakElecCount" label="峰时段电量" align="center" show-overflow-tooltip />
<el-table-column prop="flatElecCount" label="平时段电量" align="center" show-overflow-tooltip />
<el-table-column prop="valleyElecCount" label="谷时段电量" align="center" show-overflow-tooltip />
<el-table-column prop="elecPriceModelVersion" label="电价版本号" align="center" show-overflow-tooltip />
<el-table-column prop="swapOrderSn" label="换电订单编号" width="100" align="center" show-overflow-tooltip />
<el-table-column prop="cloudReportStatus" label="上传云平台状态" width="130" align="center" show-overflow-tooltip>
<el-table-column prop="sharpElecCount" :label="$t('message.charging_real_result.peakPeriodEnergy')" align="center" show-overflow-tooltip />
<el-table-column prop="peakElecCount" :label="$t('message.charging_real_result.peakingPeriodEnergy')" align="center" show-overflow-tooltip />
<el-table-column prop="flatElecCount" :label="$t('message.charging_real_result.flatPeriodEnergy')" align="center" show-overflow-tooltip />
<el-table-column prop="valleyElecCount" :label="$t('message.charging_real_result.offPeakPeriodEnergy')" align="center" show-overflow-tooltip />
<el-table-column prop="elecPriceModelVersion" :label="$t('message.charging_real_result.tariffVersionNumber')" align="center" show-overflow-tooltip />
<el-table-column prop="swapOrderSn" :label="$t('message.charging_real_result.batteryChangeOrderNumber')" width="100" align="center" show-overflow-tooltip />
<el-table-column prop="cloudReportStatus" :label="$t('message.charging_real_result.cloudPlatformUploadStatus')" width="130" align="center" show-overflow-tooltip>
<template #default="scope">
<el-tag v-if="scope.row.cloudReportStatus === 0"> </el-tag>
<el-tag v-if="scope.row.cloudReportStatus === 1"> </el-tag>
<el-tag v-if="scope.row.cloudReportStatus === 0"> {{ $t('message.charging_real_result.notUploaded') }} </el-tag>
<el-tag v-if="scope.row.cloudReportStatus === 1"> {{ $t('message.charging_real_result.uploaded') }} </el-tag>
</template>
</el-table-column>
<el-table-column label="操作" width="150" fixed="right" align="center" show-overflow-tooltip>
<el-table-column :label="$t('message.charging_real_result.operation')" width="150" fixed="right" align="center" show-overflow-tooltip>
<template #default="scope">
<el-button icon="ele-Edit" size="small" text type="primary" @click="uploadcloud(scope.row)" :disabled="scope.row.cmdStatus != 1 && scope.row.cloudReportStatus == 0"> 上报云端 </el-button>
<el-button icon="ele-Edit" size="small" text type="primary" @click="uploadcloud(scope.row)" :disabled="scope.row.cmdStatus != 1 && scope.row.cloudReportStatus == 0">
{{ $t('message.charging_real_result.reportToCloud') }}
</el-button>
<!-- <el-button icon="ele-Edit" size="small" text type="primary" @click="openEditTenant(scope.row)"> </el-button> -->
<!-- <el-button icon="el-icon-delete" size="small" text type="primary" @click="delReplace(scope.row)"> </el-button> -->
</template>
@ -124,7 +126,8 @@ import { downloadByData, getFileName } from '/@/utils/download';
import { getAPI } from '/@/utils/axios-utils';
import { SysChargingRealReaultApi } from '/@/api-services/api';
// import { TenantOutput } from '/@/api-services/models';
import { useI18n } from 'vue-i18n';
const { t } = useI18n();
const editReplaceRef = ref<InstanceType<typeof EditReplace>>();
const tableRef = ref<RefType>();
@ -147,7 +150,8 @@ const state = reactive({
},
toTal: 0 as any,
editTenantTitle: '',
});222
});
222;
onMounted(async () => {
handleQuery();
@ -155,7 +159,8 @@ onMounted(async () => {
//
const handleQuery = async () => {
state.loading = true;22
state.loading = true;
22;
let params = Object.assign(state.queryParams, state.tableParams);
var res = await getAPI(SysChargingRealReaultApi).apiSwapOrderQueryPagePost(params);
// console.log(res,"zheshi res")
@ -181,13 +186,13 @@ const handleExport = async () => {
//
const openAddTenant = () => {
state.editTenantTitle = '添加';
state.editTenantTitle = t('message.replace_log.addNew');
editReplaceRef.value?.openDialog({ tenantType: 0, orderNo: 100 });
};
//
const openEditTenant = (row: any) => {
state.editTenantTitle = '编辑';
state.editTenantTitle = t('message.replace_log.edit');
editReplaceRef.value?.openDialog(row);
};
@ -211,8 +216,8 @@ const handleSelectionChange = (data: EmptyObjectType[]) => {
// // console.log(row, 'row');
// ElMessageBox.confirm(`id${row.id}?`, '', {
// confirmButtonText: '',
// cancelButtonText: '',
// confirmButtonText: t('message.system_base_config.submit'),
// cancelButtonText: t('message.system_base_config.cancel'),
// type: 'warning',
// })
// .then(async () => {
@ -232,8 +237,8 @@ const handleSelectionChange = (data: EmptyObjectType[]) => {
// const bacthDelete = () => {
// if (state.selectlist.length == 0) return false;
// ElMessageBox.confirm(`id${state.selectlist[0].id}${state.selectlist.length}?`, '', {
// confirmButtonText: '',
// cancelButtonText: '',
// confirmButtonText: t('message.system_base_config.submit'),
// cancelButtonText: t('message.system_base_config.cancel'),
// type: 'warning',
// })
// .then(async () => {
@ -253,17 +258,17 @@ const handleSelectionChange = (data: EmptyObjectType[]) => {
//
const uploadcloud = (row: any) => {
ElMessageBox.confirm(`确定上报云端id为【${row.id}】的数据吗?`, '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
ElMessageBox.confirm(t('message.replace_log.confirmReportToCloud'), 'tips', {
confirmButtonText: t('message.system_base_config.submit'),
cancelButtonText: t('message.system_base_config.cancel'),
type: 'warning',
})
.then(async () => {
var response = await getAPI(SysChargingRealReaultApi).apiUploadCloudGet(row.id);
if (response.data.isSuccess) {
ElMessage.success('上报成功');
ElMessage.success(t('message.replace_log.reportSuccess'));
} else {
ElMessage.error('上报失败');
ElMessage.error(t('message.replace_log.reportFailure'));
}
handleQuery();
})

@ -4,8 +4,8 @@
<el-form :model="state.queryParams" ref="queryForm" :inline="true">
<el-form-item>
<!-- <el-button type="primary" icon="ele-Plus" @click="openAddTenant"> </el-button> -->
<el-button type="danger" icon="ele-Delete" @click="bacthDelete" v-if="state.selectlist.length > 0"> </el-button>
<el-button icon="ele-FolderOpened" @click="handleExport"> </el-button>
<el-button type="danger" icon="ele-Delete" @click="bacthDelete" v-if="state.selectlist.length > 0"> {{ $t('message.day_swap_run_result.batchDelete') }} </el-button>
<el-button icon="ele-FolderOpened" @click="handleExport"> {{ $t('message.day_swap_run_result.export') }} </el-button>
</el-form-item>
</el-form>
</el-card>
@ -13,29 +13,29 @@
<el-card class="full-table" shadow="hover" style="margin-top: 5px">
<el-table :data="state.tenantData" style="width: 100%" v-loading="state.loading" border ref="tableRef" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" fixed> </el-table-column>
<el-table-column type="index" label="序号" width="55" align="center" fixed />
<el-table-column prop="avgChgTime" label="平均充电时长(min)" align="center" show-overflow-tooltip />
<el-table-column prop="avgRepTime" label="平均换电时长(min)" align="center" show-overflow-tooltip />
<el-table-column prop="swapDate" label="换电日期" align="center" show-overflow-tooltip />
<el-table-column prop="fristSwapTime" label="首次换电时间" align="center" show-overflow-tooltip />
<el-table-column prop="stopTime" label="结束换电时间" header-align="center" align="center" show-overflow-tooltip />
<el-table-column type="index" :label="$t('message.day_swap_run_result.serialNumber')" width="55" align="center" fixed />
<el-table-column prop="avgChgTime" :label="$t('message.day_swap_run_result.averageChargingDurationMin')" align="center" show-overflow-tooltip />
<el-table-column prop="avgRepTime" :label="$t('message.day_swap_run_result.averageBatteryChangeDurationMin')" align="center" show-overflow-tooltip />
<el-table-column prop="swapDate" :label="$t('message.day_swap_run_result.batteryChangeDate')" align="center" show-overflow-tooltip />
<el-table-column prop="fristSwapTime" :label="$t('message.day_swap_run_result.firstBatteryChangeTime')" align="center" show-overflow-tooltip />
<el-table-column prop="stopTime" :label="$t('message.day_swap_run_result.endBatteryChangeTime')" header-align="center" align="center" show-overflow-tooltip />
<!-- <el-table-column prop="runStartTime" label="运行开始时间" header-align="center" show-overflow-tooltip /> -->
<!-- <el-table-column prop="runEndTime" label="运行结束时间" align="center" show-overflow-tooltip /> -->
<el-table-column prop="chgCount" label="充电总次数" align="center" show-overflow-tooltip />
<el-table-column prop="state" label="运营状态" align="center" show-overflow-tooltip>
<el-table-column prop="chgCount" :label="$t('message.day_swap_run_result.totalChargingCount')" align="center" show-overflow-tooltip />
<el-table-column prop="state" :label="$t('message.day_swap_run_result.operationalStatus')" align="center" show-overflow-tooltip>
<template #default="scope">
<el-tag v-if="scope.row.state === 1"> </el-tag>
<el-tag v-if="scope.row.state === 2"> </el-tag>
<el-tag v-if="scope.row.state === 3"> </el-tag>
<el-tag v-if="scope.row.state === 4"> </el-tag>
<el-tag v-if="scope.row.state === 1"> {{$t('message.day_swap_run_result.inOperation')}} </el-tag>
<el-tag v-if="scope.row.state === 2"> {{$t('message.day_swap_run_result.outOfService')}} </el-tag>
<el-tag v-if="scope.row.state === 3"> {{$t('message.day_swap_run_result.equipmentMaintenanceStatus')}} </el-tag>
<el-tag v-if="scope.row.state === 4"> {{$t('message.day_swap_run_result.suspended')}} </el-tag>
</template>
</el-table-column>
<el-table-column prop="toltalSwapCount" label="换电总次数" align="center" show-overflow-tooltip />
<el-table-column prop="toltalSwapAllTime" label="换电总时长(min)" align="center" show-overflow-tooltip />
<el-table-column prop="toltalSwapCount" :label="$t('message.day_swap_run_result.totalBatteryChangeCount')" align="center" show-overflow-tooltip />
<el-table-column prop="toltalSwapAllTime" :label="$t('message.day_swap_run_result.totalBatteryChangeDurationMin')" align="center" show-overflow-tooltip />
<!-- <el-table-column prop="toltalTimeCount" label="站运行总时长" align="center" show-overflow-tooltip /> -->
<el-table-column label="操作" width="250" fixed="right" align="center" show-overflow-tooltip>
<el-table-column :label="$t('message.day_swap_run_result.operation')" width="250" fixed="right" align="center" show-overflow-tooltip>
<template #default="scope">
<el-button icon="el-icon-delete" size="small" text type="primary" @click="delReplace(scope.row)"> </el-button>
<el-button icon="el-icon-delete" size="small" text type="primary" @click="delReplace(scope.row)"> {{ $t('message.day_swap_run_result.delete') }} </el-button>
</template>
</el-table-column>
</el-table>
@ -61,7 +61,8 @@ import { downloadByData, getFileName } from '/@/utils/download';
import { getAPI } from '/@/utils/axios-utils';
import { SysDaySwapRunResultApi } from '/@/api-services/api';
import { useI18n } from 'vue-i18n';
const { t } = useI18n();
const tableRef = ref<RefType>();
const state = reactive({
@ -125,18 +126,18 @@ const handleSelectionChange = (data: EmptyObjectType[]) => {
const delReplace = (row: any) => {
// console.log(row, 'row');
ElMessageBox.confirm(`确定删除id为${row.id}】的数据吗?`, '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
ElMessageBox.confirm(t('message.replace_log.confirmDeleteCurrentData'), 'tips', {
confirmButtonText: t('message.system_base_config.submit'),
cancelButtonText: t('message.system_base_config.cancel'),
type: 'warning',
})
.then(async () => {
const ids = row.id;
const response = await getAPI(SysDaySwapRunResultApi).apiDeleteDaySwapRunResPost(ids);
if (response.data.isSuccess) {
ElMessage.success('删除成功');
ElMessage.success(t('message.replace_log.deleteSuccess'));
} else {
ElMessage.error('删除失败');
ElMessage.error(t('message.replace_log.deleteFailure'));
}
// tableRef.value.handleList();
handleQuery();
@ -146,9 +147,9 @@ const delReplace = (row: any) => {
//
const bacthDelete = () => {
if (state.selectlist.length == 0) return false;
ElMessageBox.confirm(`确定批量删除id为【${state.selectlist[0].id}】等${state.selectlist.length}个配置?`, '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
ElMessageBox.confirm(t('message.replace_log.confirmBatchDeleteData'), 'tips', {
confirmButtonText: t('message.system_base_config.submit'),
cancelButtonText: t('message.system_base_config.cancel'),
type: 'warning',
})
.then(async () => {
@ -157,9 +158,9 @@ const bacthDelete = () => {
});
var response = await getAPI(SysDaySwapRunResultApi).apiBatchDeleteDaySwapRunResByIdsPost(ids);
if (response.data.isSuccess) {
ElMessage.success('删除成功');
ElMessage.success(t('message.replace_log.deleteSuccess'));
} else {
ElMessage.error('删除失败');
ElMessage.error(t('message.replace_log.deleteFailure'));
}
handleQuery();
})

@ -10,17 +10,17 @@
<el-form :model="state.ruleForm" ref="ruleFormRef" label-width="auto">
<el-row :gutter="35">
<el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12" class="mb20">
<el-form-item label="订单号" prop="sn">
<el-form-item :label="$t('message.replace_log.orderNumber')" prop="sn">
<el-input v-model="state.ruleForm.sn" placeholder="" clearable />
</el-form-item>
</el-col>
<el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12" class="mb20">
<el-form-item label="云平台订单号" prop="cloudSn">
<el-form-item :label="$t('message.replace_log.cloudPlatformOrderNumber')" prop="cloudSn">
<el-input v-model="state.ruleForm.cloudSn" placeholder="" clearable />
</el-form-item>
</el-col>
<el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12" class="mb20">
<el-form-item label="车牌号" prop="vehicleNo">
<el-form-item :label="$t('message.replace_log.licensePlate')" prop="vehicleNo">
<el-input v-model="state.ruleForm.vehicleNo" placeholder="" clearable />
</el-form-item>
</el-col>
@ -30,49 +30,49 @@
</el-form-item>
</el-col> -->
<el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12" class="mb20">
<el-form-item label="车辆Vin码" prop="vehicleVin" >
<el-form-item :label="$t('message.replace_log.vehicleVin')" prop="vehicleVin">
<el-input v-model="state.ruleForm.vehicleVin" placeholder="" clearable />
</el-form-item>
</el-col>
<el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12" class="mb20">
<el-form-item label="换电开始时间" prop="swapBeginTime">
<el-date-picker v-model="state.ruleForm.swapBeginTime" type="datetime" placeholder="换电开始时间" format="YYYY-MM-DD HH:mm:ss" value-format="YYYY-MM-DD HH:mm:ss" class="w100" />
<el-form-item :label="$t('message.replace_log.batteryChangeStartTime')" prop="swapBeginTime">
<el-date-picker v-model="state.ruleForm.swapBeginTime" type="datetime" placeholder="" format="YYYY-MM-DD HH:mm:ss" value-format="YYYY-MM-DD HH:mm:ss" class="w100" />
</el-form-item>
</el-col>
<el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12" class="mb20">
<el-form-item label="换电结束时间" prop="swapEndTime">
<el-date-picker v-model="state.ruleForm.swapEndTime" type="datetime" placeholder="换电结束时间" format="YYYY-MM-DD HH:mm:ss" value-format="YYYY-MM-DD HH:mm:ss" class="w100" />
<el-form-item :label="$t('message.replace_log.batteryChangeEndTime')" prop="swapEndTime">
<el-date-picker v-model="state.ruleForm.swapEndTime" type="datetime" placeholder="" format="YYYY-MM-DD HH:mm:ss" value-format="YYYY-MM-DD HH:mm:ss" class="w100" />
</el-form-item>
</el-col>
<el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12" class="mb20">
<el-form-item label="车辆进场时间" prop="vehicleEnterTime">
<el-date-picker v-model="state.ruleForm.vehicleEnterTime" type="datetime" placeholder="车辆进场时间" format="YYYY-MM-DD HH:mm:ss" value-format="YYYY-MM-DD HH:mm:ss" class="w100" />
<el-form-item :label="$t('message.replace_log.vehicleEntryTime')" prop="vehicleEnterTime">
<el-date-picker v-model="state.ruleForm.vehicleEnterTime" type="datetime" placeholder="" format="YYYY-MM-DD HH:mm:ss" value-format="YYYY-MM-DD HH:mm:ss" class="w100" />
</el-form-item>
</el-col>
<el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12" class="mb20">
<el-form-item label="车辆离场时间" prop="vehicleLeaveTime">
<el-date-picker v-model="state.ruleForm.vehicleLeaveTime" type="datetime" placeholder="车辆离场时间" format="YYYY-MM-DD HH:mm:ss" value-format="YYYY-MM-DD HH:mm:ss" class="w100" />
<el-form-item :label="$t('message.replace_log.vehicleExitTime')" prop="vehicleLeaveTime">
<el-date-picker v-model="state.ruleForm.vehicleLeaveTime" type="datetime" placeholder="" format="YYYY-MM-DD HH:mm:ss" value-format="YYYY-MM-DD HH:mm:ss" class="w100" />
</el-form-item>
</el-col>
<el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12" class="mb20">
<el-form-item label="换电结果">
<el-select v-model="state.ruleForm.swapResult" placeholder="失败原因" clearable class="w100">
<el-option label="未知" :value="0" />
<el-option label="成功" :value="1" />
<el-option label="失败" :value="2" />
<el-form-item :label="$t('message.replace_log.batteryChangeResult')">
<el-select v-model="state.ruleForm.swapResult" placeholder="" clearable class="w100">
<el-option :label="$t('message.replace_log.unknown')" :value="0" />
<el-option :label="$t('message.replace_log.success')" :value="1" />
<el-option :label="$t('message.replace_log.failure')" :value="2" />
</el-select>
</el-form-item>
</el-col>
<el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12" class="mb20">
<el-form-item label="失败原因">
<el-form-item :label="$t('message.replace_log.failureReason')">
<el-input v-model="state.ruleForm.failReason" placeholder="" class="w100" />
</el-form-item>
</el-col>
<el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12" class="mb20">
<el-form-item label="上传云平台状态">
<el-select v-model="state.ruleForm.cloudReportStatus" placeholder="上传云平台状态" clearable class="w100">
<el-option label="未上传" :value="0" />
<el-option label="已上传" :value="1" />
<el-form-item :label="$t('message.replace_log.cloudPlatformUploadStatus')">
<el-select v-model="state.ruleForm.cloudReportStatus" placeholder="" clearable class="w100">
<el-option label="$t('message.replace_log.notUploaded')" :value="0" />
<el-option label="$t('message.replace_log.uploaded')" :value="1" />
</el-select>
</el-form-item>
</el-col>
@ -86,32 +86,32 @@
</el-form-item>
</el-col>
<el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12" class="mb20">
<el-form-item label="亏电池包编码" prop="downBatteryNo" >
<el-form-item :label="$t('message.replace_log.emptyBatteryCode')" prop="downBatteryNo">
<el-input v-model="state.ruleForm.downBatteryNo" placeholder="" clearable />
</el-form-item>
</el-col>
<el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12" class="mb20">
<el-form-item label="入仓仓位" prop="downBatteryBinNo" >
<el-form-item :label="$t('message.replace_log.warehousePositionIn')" prop="downBatteryBinNo">
<el-input v-model="state.ruleForm.downBatteryBinNo" placeholder="" clearable />
</el-form-item>
</el-col>
<el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12" class="mb20">
<el-form-item label="亏电池包soc" prop="downBatterySoc" >
<el-form-item :label="$t('message.replace_log.emptyBatterySoc')" prop="downBatterySoc">
<el-input v-model="state.ruleForm.downBatterySoc" placeholder="" clearable />
</el-form-item>
</el-col>
<el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12" class="mb20">
<el-form-item label="满电池包编码" prop="upBatteryNo" >
<el-form-item :label="$t('message.replace_log.fullBatteryCode')" prop="upBatteryNo">
<el-input v-model="state.ruleForm.upBatteryNo" placeholder="" clearable />
</el-form-item>
</el-col>
<el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12" class="mb20">
<el-form-item label="出仓仓位" prop="upBatteryBinNo" >
<el-form-item :label="$t('message.replace_log.warehousePositionOut')" prop="upBatteryBinNo">
<el-input v-model="state.ruleForm.upBatteryBinNo" placeholder="" clearable />
</el-form-item>
</el-col>
<el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12" class="mb20">
<el-form-item label="满电池包soc" prop="upBatterySoc" >
<el-form-item :label="$t('message.replace_log.fullBatterySoc')" prop="upBatterySoc">
<el-input v-model="state.ruleForm.upBatterySoc" placeholder="" clearable />
</el-form-item>
</el-col>
@ -142,8 +142,8 @@
</el-form>
<template #footer>
<span class="dialog-footer">
<el-button @click="cancel"> </el-button>
<el-button type="primary" @click="submit"> </el-button>
<el-button @click="cancel">{{ $t('message.system_base_config.cancel') }}</el-button>
<el-button type="primary" @click="submit">{{ $t('message.system_base_config.submit') }}</el-button>
</span>
</template>
</el-dialog>
@ -157,6 +157,8 @@ import { ElMessageBox, ElMessage } from 'element-plus';
import { getAPI } from '/@/utils/axios-utils';
import { SysReplaceLogOnlyApi } from '/@/api-services/api';
import { UpdateReplaceLogInput } from '/@/api-services/models';
import { useI18n } from 'vue-i18n';
const { t } = useI18n();
const props = defineProps({
title: String,
@ -216,12 +218,12 @@ const submit = () => {
if (state.ruleForm.id != undefined && state.ruleForm.id > 0) {
if (state.ruleForm.hasOwnProperty('downBatteryNo')) {
state.ruleForm.batteryList[0].downBatteryNo = state.ruleForm.downBatteryNo == ''? null: state.ruleForm.downBatteryNo;
state.ruleForm.batteryList[0].downBatteryBinNo = state.ruleForm.downBatteryBinNo == ''? null: state.ruleForm.downBatteryBinNo;
state.ruleForm.batteryList[0].downBatterySoc = state.ruleForm.downBatterySoc == ''? null: state.ruleForm.downBatterySoc;
state.ruleForm.batteryList[0].upBatteryNo = state.ruleForm.upBatteryNo == ''? null: state.ruleForm.upBatteryNo;
state.ruleForm.batteryList[0].upBatteryBinNo = state.ruleForm.upBatteryBinNo == ''? null: state.ruleForm.upBatteryBinNo;
state.ruleForm.batteryList[0].upBatterySoc = state.ruleForm.upBatterySoc == ''? null: state.ruleForm.upBatterySoc;
state.ruleForm.batteryList[0].downBatteryNo = state.ruleForm.downBatteryNo == '' ? null : state.ruleForm.downBatteryNo;
state.ruleForm.batteryList[0].downBatteryBinNo = state.ruleForm.downBatteryBinNo == '' ? null : state.ruleForm.downBatteryBinNo;
state.ruleForm.batteryList[0].downBatterySoc = state.ruleForm.downBatterySoc == '' ? null : state.ruleForm.downBatterySoc;
state.ruleForm.batteryList[0].upBatteryNo = state.ruleForm.upBatteryNo == '' ? null : state.ruleForm.upBatteryNo;
state.ruleForm.batteryList[0].upBatteryBinNo = state.ruleForm.upBatteryBinNo == '' ? null : state.ruleForm.upBatteryBinNo;
state.ruleForm.batteryList[0].upBatterySoc = state.ruleForm.upBatterySoc == '' ? null : state.ruleForm.upBatterySoc;
delete state.ruleForm['downBatteryNo'];
delete state.ruleForm['downBatteryBinNo'];
delete state.ruleForm['downBatterySoc'];
@ -231,11 +233,11 @@ const submit = () => {
}
const response = await getAPI(SysReplaceLogOnlyApi).apiSysReplaceLogUpdatePost(state.ruleForm);
if (response.data.isSuccess) {
ElMessage.success('修改成功');
ElMessage.success(t('message.system_base_config.Operation_successful'));
} else {
ElMessage.error('修改失败');
ElMessage.error(t('message.system_base_config.Operation_failed'));
}
} else if (props.title == '添加') {
} else if (props.title == t('message.replace_log.addNew')) {
// await getAPI(SysReplaceLogApi).apiSysTenantAddPost(state.ruleForm);
// console.log(state.ruleForm, 'state.ruleForm');
@ -265,9 +267,9 @@ const submit = () => {
};
const response = await getAPI(SysReplaceLogOnlyApi).apiSwapOrderAddPost(params);
if (response.data.isSuccess) {
ElMessage.success('添加成功');
ElMessage.success(t('message.system_base_config.Operation_successful'));
} else {
ElMessage.error('添加失败');
ElMessage.error(t('message.system_base_config.Operation_failed'));
}
}
closeDialog();

@ -4,75 +4,84 @@
<el-col :span="18" :xs="40" style="display: flex; height: 100%; flex: 1">
<el-card class="full-table" shadow="hover" style="margin-top: 5px" :body-style="{ height: 'calc(100% - 51px)' }">
<el-form :model="state.queryParams" ref="queryForm" :inline="true">
<el-form-item label="订单号">
<el-input v-model="state.queryParams.sn" placeholder="订单号" clearable />
<el-form-item :label="$t('message.replace_log.orderNumber')">
<el-input v-model="state.queryParams.sn" placeholder="" clearable />
</el-form-item>
<el-form-item label="车牌号">
<el-input v-model="state.queryParams.vehicleNo" placeholder="车牌号" clearable />
<el-form-item :label="$t('message.replace_log.licensePlate')">
<el-input v-model="state.queryParams.vehicleNo" placeholder="" clearable />
</el-form-item>
<el-form-item label="满电包编码">
<el-input v-model="state.queryParams.upBatteryNo" placeholder="满电包编码" clearable />
<el-form-item :label="$t('message.replace_log.fullBatteryCode')">
<el-input v-model="state.queryParams.upBatteryNo" placeholder="" clearable />
</el-form-item>
<el-form-item label="亏电包编码">
<el-input v-model="state.queryParams.downBatteryNo" placeholder="亏电包编码" clearable />
<el-form-item :label="$t('message.replace_log.emptyBatteryCode')">
<el-input v-model="state.queryParams.downBatteryNo" placeholder="" clearable />
</el-form-item>
<el-form-item label="开始时间">
<el-form-item :label="$t('message.replace_log.startTime')">
<!-- <el-input v-model="state.queryParams.swapBeginTime" placeholder="换电开始时间" clearable /> -->
<el-date-picker v-model="state.queryParams.swapBeginTime" type="datetime" placeholder="换电开始时间" format="YYYY-MM-DD HH:mm:ss" value-format="YYYY-MM-DD HH:mm:ss" />
<el-date-picker v-model="state.queryParams.swapBeginTime" type="datetime" placeholder="" format="YYYY-MM-DD HH:mm:ss" value-format="YYYY-MM-DD HH:mm:ss" />
</el-form-item>
<el-form-item label="结束时间">
<el-form-item :label="$t('message.replace_log.endTime')">
<!-- <el-input v-model="state.queryParams.swapEndTime" placeholder="换电结束时间" clearable /> -->
<el-date-picker v-model="state.queryParams.swapEndTime" type="datetime" placeholder="换电结束时间" format="YYYY-MM-DD HH:mm:ss" value-format="YYYY-MM-DD HH:mm:ss" />
<el-date-picker v-model="state.queryParams.swapEndTime" type="datetime" placeholder="" format="YYYY-MM-DD HH:mm:ss" value-format="YYYY-MM-DD HH:mm:ss" />
</el-form-item>
<el-form-item>
<el-button-group>
<el-button type="primary" icon="ele-Search" @click="handleQuery"> </el-button>
<el-button icon="ele-Refresh" @click="resetQuery"> </el-button>
<el-button type="primary" icon="ele-Search" @click="handleQuery"> {{ $t('message.replace_log.search') }} </el-button>
<el-button icon="ele-Refresh" @click="resetQuery"> {{ $t('message.replace_log.reset') }} </el-button>
</el-button-group>
</el-form-item>
<el-form-item>
<el-button type="primary" icon="ele-Plus" @click="openAddTenant"> </el-button>
<el-button v-if="state.selectlist.length > 0" type="danger" icon="ele-Delete" @click="bacthDelete"> </el-button>
<el-button icon="ele-FolderOpened" @click="handleExport"> </el-button>
<el-button type="primary" icon="ele-Plus" @click="openAddTenant"> {{ $t('message.replace_log.addNew') }} </el-button>
<el-button v-if="state.selectlist.length > 0" type="danger" icon="ele-Delete" @click="bacthDelete"> {{ $t('message.replace_log.batchDelete') }} </el-button>
<el-button icon="ele-FolderOpened" @click="handleExport"> {{ $t('message.replace_log.export') }} </el-button>
</el-form-item>
</el-form>
<el-table :data="state.tenantData" style="width: 100%" v-loading="state.loading" border ref="tableRef" @selection-change="handleSelectionChange" @row-click="handleDictType">
<el-table-column type="selection" width="55" fixed> </el-table-column>
<el-table-column type="index" label="序号" width="55" align="center" fixed />
<el-table-column prop="sn" label="订单号" align="center" show-overflow-tooltip width="200" />
<el-table-column prop="cloudSn" label="云平台订单号" align="center" show-overflow-tooltip width="200" />
<el-table-column prop="reportCloudNum" label="上报次数" align="center" show-overflow-tooltip />
<el-table-column prop="vehicleNo" label="车牌号" align="center" show-overflow-tooltip />
<el-table-column prop="vehicleVin" label="车辆Vin码" align="center" show-overflow-tooltip width="200" />
<el-table-column prop="vehicleEnterTime" label="车辆进场时间" header-align="center" align="center" width="200" show-overflow-tooltip />
<el-table-column prop="vehicleLeaveTime" label="车辆离场时间" header-align="center" align="center" width="200" show-overflow-tooltip />
<el-table-column prop="swapBeginTime" label="换电开始时间" align="center" width="200" show-overflow-tooltip />
<el-table-column prop="swapEndTime" label="换电结束时间" align="center" width="200" show-overflow-tooltip />
<el-table-column label="换电类型" align="center" show-overflow-tooltip>
<el-table-column type="index" :label="$t('message.replace_log.serialNumber')" width="55" align="center" fixed />
<el-table-column prop="sn" :label="$t('message.replace_log.orderNumber')" align="center" show-overflow-tooltip width="200" />
<el-table-column prop="cloudSn" :label="$t('message.replace_log.cloudPlatformOrderNumber')" align="center" show-overflow-tooltip width="200" />
<el-table-column prop="reportCloudNum" :label="$t('message.replace_log.reportCount')" align="center" show-overflow-tooltip />
<el-table-column prop="vehicleNo" :label="$t('message.replace_log.licensePlate')" align="center" show-overflow-tooltip />
<el-table-column prop="vehicleVin" :label="$t('message.replace_log.vehicleVin')" align="center" show-overflow-tooltip width="200" />
<el-table-column prop="vehicleEnterTime" :label="$t('message.replace_log.vehicleEntryTime')" header-align="center" align="center" width="200" show-overflow-tooltip />
<el-table-column prop="vehicleLeaveTime" :label="$t('message.replace_log.vehicleExitTime')" header-align="center" align="center" width="200" show-overflow-tooltip />
<el-table-column prop="swapBeginTime" :label="$t('message.replace_log.batteryChangeStartTime')" align="center" width="200" show-overflow-tooltip />
<el-table-column prop="swapEndTime" :label="$t('message.replace_log.batteryChangeEndTime')" align="center" width="200" show-overflow-tooltip />
<el-table-column :label="$t('message.replace_log.batteryChangeType')" align="center" show-overflow-tooltip>
<template #default="scope">
<el-tag v-if="scope.row.swapWay === 0"> </el-tag>
<el-tag v-if="scope.row.swapWay === 1"> </el-tag>
<el-tag v-if="scope.row.swapWay === 0"> {{ $t('message.replace_log.manual') }} </el-tag>
<el-tag v-if="scope.row.swapWay === 1"> {{ $t('message.replace_log.automatic') }} </el-tag>
</template>
</el-table-column>
<el-table-column prop="swapResult" label="换电结果" align="center" show-overflow-tooltip>
<el-table-column prop="swapResult" :label="$t('message.replace_log.batteryChangeResult')" align="center" show-overflow-tooltip>
<template #default="scope">
<el-tag v-if="scope.row.swapResult === 0"> </el-tag>
<el-tag v-if="scope.row.swapResult === 1"> </el-tag>
<el-tag v-if="scope.row.swapResult === 2"> </el-tag>
<el-tag v-if="scope.row.swapResult === 0"> {{ $t('message.replace_log.unknown') }} </el-tag>
<el-tag v-if="scope.row.swapResult === 1"> {{ $t('message.replace_log.success') }} </el-tag>
<el-tag v-if="scope.row.swapResult === 2"> {{ $t('message.replace_log.failure') }} </el-tag>
</template>
</el-table-column>
<el-table-column prop="failReason" label="失败原因" align="center" show-overflow-tooltip />
<el-table-column prop="cloudReportStatus" label="上传云平台状态" align="center" show-overflow-tooltip>
<el-table-column prop="failReason" :label="$t('message.replace_log.failureReason')" align="center" show-overflow-tooltip />
<el-table-column prop="cloudReportStatus" :label="$t('message.replace_log.cloudPlatformUploadStatus')" align="center" show-overflow-tooltip>
<template #default="scope">
<el-tag v-if="scope.row.cloudReportStatus === 0" type="danger"> </el-tag>
<el-tag v-if="scope.row.cloudReportStatus === 1"> </el-tag>
<el-tag v-if="scope.row.cloudReportStatus === 0" type="danger"> {{ $t('message.replace_log.notUploaded') }} </el-tag>
<el-tag v-if="scope.row.cloudReportStatus === 1"> {{ $t('message.replace_log.uploaded') }} </el-tag>
</template>
</el-table-column>
<el-table-column label="操作" width="250" fixed="right" align="center" show-overflow-tooltip>
<el-table-column :label="$t('message.replace_log.operation')" width="250" fixed="right" align="center" show-overflow-tooltip>
<template #default="scope">
<el-button icon="ele-Edit" size="small" text type="primary" @click="uploadcloud(scope.row)" v-if="scope.row.cloudReportStatus == 0 && scope.row.swapResult == 1 && scope.row.reportCloudNum < 100"> </el-button>
<el-button icon="ele-Edit" size="small" text type="primary" @click="openEditTenant(scope.row)"> </el-button>
<el-button icon="el-icon-delete" size="small" text type="primary" @click="delReplace(scope.row)"> </el-button>
<el-button
icon="ele-Edit"
size="small"
text
type="primary"
@click="uploadcloud(scope.row)"
v-if="scope.row.cloudReportStatus == 0 && scope.row.swapResult == 1 && scope.row.reportCloudNum < 100"
>
{{ $t('message.replace_log.reportToCloud') }}
</el-button>
<el-button icon="ele-Edit" size="small" text type="primary" @click="openEditTenant(scope.row)"> {{ $t('message.replace_log.edit') }} </el-button>
<el-button icon="el-icon-delete" size="small" text type="primary" @click="delReplace(scope.row)"> {{ $t('message.replace_log.delete') }} </el-button>
</template>
</el-table-column>
</el-table>
@ -92,22 +101,21 @@
<el-col :span="6" :xs="12" style="display: flex; height: 100%; width: 100%; flex: 1">
<el-card class="full-table" shadow="hover" :body-style="{ height: 'calc(100% - 200px)' }">
<template #header>
<el-icon size="16" style="margin-right: 3px; display: inline; vertical-align: middle"><ele-Collection /></el-icon>:{{ state.sn }}
<el-icon size="16" style="margin-right: 3px; display: inline; vertical-align: middle"><ele-Collection /></el-icon>{{ $t('message.replace_log.orderNumber') }}:{{ state.sn }}
<br />
<el-icon size="16" style="margin-right: 3px; display: inline; vertical-align: middle"><ele-Collection /></el-icon>:{{ state.downBatteryNo }}
<el-icon size="16" style="margin-right: 3px; display: inline; vertical-align: middle"><ele-Collection /></el-icon>{{ $t('message.replace_log.emptyBatteryCode') }}:{{ state.downBatteryNo }}
<br />
<el-icon size="16" style="margin-right: 3px; display: inline; vertical-align: middle"><ele-Collection /></el-icon>:{{ state.downBatteryBinNo }}
<el-icon size="16" style="margin-right: 3px; display: inline; vertical-align: middle"><ele-Collection /></el-icon>{{ $t('message.replace_log.warehousePositionIn') }}:{{ state.downBatteryBinNo }}
<br />
<el-icon size="16" style="margin-right: 3px; display: inline; vertical-align: middle"><ele-Collection /></el-icon>soc:{{ state.downBatterySoc }}
<el-icon size="16" style="margin-right: 3px; display: inline; vertical-align: middle"><ele-Collection /></el-icon>{{ $t('message.replace_log.emptyBatterySoc') }}:{{ state.downBatterySoc }}
<br />
<el-icon size="16" style="margin-right: 3px; display: inline; vertical-align: middle"><ele-Collection /></el-icon>:{{ state.upBatteryNo }}
<el-icon size="16" style="margin-right: 3px; display: inline; vertical-align: middle"><ele-Collection /></el-icon>{{$t('message.replace_log.fullBatteryCode')}}:{{ state.upBatteryNo }}
<br />
<el-icon size="16" style="margin-right: 3px; display: inline; vertical-align: middle"><ele-Collection /></el-icon>:{{ state.upBatteryBinNo }}
<el-icon size="16" style="margin-right: 3px; display: inline; vertical-align: middle"><ele-Collection /></el-icon>{{ $t('message.replace_log.warehousePositionOut') }}:{{ state.upBatteryBinNo }}
<br />
<el-icon size="16" style="margin-right: 3px; display: inline; vertical-align: middle"><ele-Collection /></el-icon>soc:{{ state.upBatterySoc }}
<el-icon size="16" style="margin-right: 3px; display: inline; vertical-align: middle"><ele-Collection /></el-icon>{{$t('message.replace_log.fullBatterySoc')}}:{{ state.upBatterySoc }}
<!-- <br />
<el-icon size="16" style="margin-right: 3px; display: inline; vertical-align: middle"><ele-Collection /></el-icon>:{{ state.vtm }} -->
</template>
<!-- <el-popconfirm :icon="InfoFilled"></el-popconfirm> -->
<el-steps direction="vertical" :active="state.steplist.length">
@ -129,11 +137,13 @@ import { downloadByData, getFileName } from '/@/utils/download';
import { getAPI } from '/@/utils/axios-utils';
import { SysReplaceLogOnlyApi } from '/@/api-services/api';
import { useI18n } from 'vue-i18n';
import { number } from 'echarts';
// import { TenantOutput } from '/@/api-services/models';
const editReplaceRef = ref<InstanceType<typeof EditReplace>>();
const tableRef = ref<RefType>();
const { t } = useI18n();
// const grantMenuRef = ref<InstanceType<typeof GrantMenu>>();
const state = reactive({
@ -163,7 +173,7 @@ const state = reactive({
upBatteryNo: '暂无数据',
upBatteryBinNo: '暂无数据',
upBatterySoc: '暂无数据',
vtm: '暂无数据'
vtm: '暂无数据',
});
onMounted(async () => {
@ -224,24 +234,25 @@ const openDictDataDialog = (row: any) => {
//
const resetQuery = () => {
state.queryParams.sn = undefined;
state.queryParams.vehicleNo = undefined,
state.queryParams.downBatteryNo = undefined,
state.queryParams.upBatteryNo = undefined,
state.queryParams.swapBeginTime = undefined,
state.queryParams.swapEndTime = undefined,
handleQuery();
(state.queryParams.vehicleNo = undefined),
(state.queryParams.downBatteryNo = undefined),
(state.queryParams.upBatteryNo = undefined),
(state.queryParams.swapBeginTime = undefined),
(state.queryParams.swapEndTime = undefined),
handleQuery();
};
//
const openAddTenant = () => {
state.editTenantTitle = '添加';
let title = t('message.replace_log.addNew');
state.editTenantTitle = title;
let num = 1;
editReplaceRef.value?.openDialog({ tenantType: 0, orderNo: 100 }, num);
};
//
const openEditTenant = (row: any) => {
state.editTenantTitle = '编辑';
state.editTenantTitle = t('message.replace_log.edit');
let num = 2;
editReplaceRef.value?.openDialog(row, num);
};
@ -265,18 +276,18 @@ const handleSelectionChange = (data: EmptyObjectType[]) => {
const delReplace = (row: any) => {
// console.log(row, 'row');
ElMessageBox.confirm(`确定删除id为${row.id}】的数据吗?`, '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
ElMessageBox.confirm(t('message.replace_log.confirmDeleteCurrentData'), 'tips', {
confirmButtonText: t('message.system_base_config.submit'),
cancelButtonText: t('message.system_base_config.cancel'),
type: 'warning',
})
.then(async () => {
const ids = [row.id];
const response = await getAPI(SysReplaceLogOnlyApi).apiSysReplaceLogDeleteByIdsPost(ids);
if (response.data.isSuccess) {
ElMessage.success('删除成功');
ElMessage.success(t('message.replace_log.deleteSuccess'));
} else {
ElMessage.error('删除失败');
ElMessage.error(t('message.replace_log.deleteFailure'));
}
// tableRef.value.handleList();
handleQuery();
@ -286,9 +297,9 @@ const delReplace = (row: any) => {
//
const bacthDelete = () => {
if (state.selectlist.length == 0) return false;
ElMessageBox.confirm(`确定批量删除id为【${state.selectlist[0].id}】等${state.selectlist.length}个配置?`, '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
ElMessageBox.confirm(t('message.replace_log.confirmBatchDeleteData'), 'tips', {
confirmButtonText: t('message.system_base_config.submit'),
cancelButtonText: t('message.system_base_config.cancel'),
type: 'warning',
})
.then(async () => {
@ -297,9 +308,9 @@ const bacthDelete = () => {
});
var response = await getAPI(SysReplaceLogOnlyApi).apiSysReplaceLogDeleteByIdsPost(ids);
if (response.data.isSuccess) {
ElMessage.success('删除成功');
ElMessage.success(t('message.replace_log.deleteSuccess'));
} else {
ElMessage.error('删除失败');
ElMessage.error(t('message.replace_log.deleteFailure'));
}
handleQuery();
})
@ -308,17 +319,17 @@ const bacthDelete = () => {
//
const uploadcloud = (row: any) => {
ElMessageBox.confirm(`确定上报云端id为【${row.id}】的数据吗?`, '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
ElMessageBox.confirm(t('message.replace_log.confirmReportToCloud'), 'tips', {
confirmButtonText: t('message.system_base_config.submit'),
cancelButtonText: t('message.system_base_config.cancel'),
type: 'warning',
})
.then(async () => {
var response = await getAPI(SysReplaceLogOnlyApi).apiUploadCloudGet(row.id);
if (response.data.isSuccess) {
ElMessage.success('上报成功');
ElMessage.success(t('message.replace_log.reportSuccess'));
} else {
ElMessage.error('上报失败');
ElMessage.error(t('message.replace_log.reportFailure'));
}
handleQuery();
})

@ -2,20 +2,20 @@
<div class="sys-tenant-container">
<el-card shadow="hover" :body-style="{ paddingBottom: '0' }">
<el-form :model="state.queryParams" ref="queryForm" :inline="true">
<el-form-item label="换电订单编号">
<el-input v-model="state.queryParams.swapOrderSn" placeholder="换电订单编号" clearable />
<el-form-item :label="$t('message.replace_status_log.batteryChangeOrderNumber')">
<el-input v-model="state.queryParams.swapOrderSn" placeholder="" clearable />
</el-form-item>
<el-form-item label="步序">
<el-input v-model="state.queryParams.step" placeholder="步序" clearable />
<el-form-item :label="$t('message.replace_status_log.stepSequence')">
<el-input v-model="state.queryParams.step" placeholder="" clearable />
</el-form-item>
<el-form-item label="步序名称">
<el-input v-model="state.queryParams.stepName" placeholder="步序名称" clearable />
<el-form-item :label="$t('message.replace_status_log.stepName')">
<el-input v-model="state.queryParams.stepName" placeholder="" clearable />
</el-form-item>
<el-form-item>
<el-button-group>
<el-button type="primary" icon="ele-Search" @click="handleQuery"> </el-button>
<el-button icon="ele-Refresh" @click="resetQuery"> </el-button>
<el-button type="primary" icon="ele-Search" @click="handleQuery"> {{ $t('message.replace_status_log.search') }} </el-button>
<el-button icon="ele-Refresh" @click="resetQuery"> {{ $t('message.replace_status_log.reset') }} </el-button>
</el-button-group>
</el-form-item>
<el-form-item>
@ -27,9 +27,9 @@
<el-card class="full-table" shadow="hover" style="margin-top: 5px">
<el-table :data="state.tenantData" style="width: 100%" v-loading="state.loading" border ref="tableRef" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" fixed> </el-table-column>
<el-table-column type="index" label="序号" width="55" align="center" fixed />
<el-table-column prop="swapOrderSn" label="换电订单编号" align="center" show-overflow-tooltip />
<el-table-column prop="step" label="步序" align="center" show-overflow-tooltip width="100">
<el-table-column type="index" :label="$t('message.replace_status_log.serialNumber')" width="55" align="center" fixed />
<el-table-column prop="swapOrderSn" :label="$t('message.replace_status_log.batteryChangeOrderNumber')" align="center" show-overflow-tooltip />
<el-table-column prop="step" :label="$t('message.replace_status_log.stepSequence')" align="center" show-overflow-tooltip width="100">
<!-- <template #default="scope">
<el-tag v-if="scope.row.step === 0"> </el-tag>
<el-tag v-if="scope.row.step === 1"> </el-tag>
@ -37,8 +37,8 @@
<el-tag v-if="scope.row.step === 300"> </el-tag>
</template> -->
</el-table-column>
<el-table-column prop="stepName" label="步序名称" align="center" show-overflow-tooltip />
<el-table-column prop="createdTime" label="创建时间" align="center" show-overflow-tooltip />
<el-table-column prop="stepName" :label="$t('message.replace_status_log.stepName')" align="center" show-overflow-tooltip />
<el-table-column prop="createdTime" :label="$t('message.replace_status_log.creationTime')" align="center" show-overflow-tooltip />
<!-- <el-table-column label="操作" width="250" fixed="right" align="center" show-overflow-tooltip>
<template #default="scope">
<el-button icon="el-icon-delete" size="small" text type="primary" @click="delReplace(scope.row)"> </el-button>
@ -71,7 +71,8 @@ import { getAPI } from '/@/utils/axios-utils';
import { SysReplaceStatusLogApi } from '/@/api-services/api'; //zz
// replace_status_log
import { useI18n } from 'vue-i18n';
const { t } = useI18n();
// const editReplaceRef = ref<InstanceType<typeof EditReplace>>();
const tableRef = ref<RefType>();
@ -129,18 +130,18 @@ const handleSelectionChange = (data: EmptyObjectType[]) => {
};
//
const delReplace = (row: any) => {
ElMessageBox.confirm(`确定删除id为${row.id}】的数据吗?`, '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
ElMessageBox.confirm(t('message.replace_log.confirmDeleteCurrentData'), 'tips', {
confirmButtonText: t('message.system_base_config.submit'),
cancelButtonText: t('message.system_base_config.cancel'),
type: 'warning',
})
.then(async () => {
const ids = [row.id];
const response = await getAPI(SysReplaceStatusLogApi).apiSysReplaceLogDeleteByIdsPost(ids);
if (response.data.isSuccess) {
ElMessage.success('删除成功');
ElMessage.success(t('message.replace_log.deleteSuccess'));
} else {
ElMessage.error('删除失败');
ElMessage.error(t('message.replace_log.deleteFailure'));
}
// tableRef.value.handleList();
handleQuery();

@ -2,20 +2,20 @@
<div class="sys-tenant-container">
<el-card shadow="hover" :body-style="{ paddingBottom: '0' }">
<el-form :model="state.queryParams" ref="queryForm" :inline="true">
<el-form-item label="出仓仓位号">
<el-input v-model="state.queryParams.upBinNo" placeholder="出仓仓位号" clearable />
<el-form-item :label="$t('message.station_battery_total_result.warehousePositionOut')">
<el-input v-model="state.queryParams.upBinNo" placeholder="" clearable />
</el-form-item>
<el-form-item label="出仓电池编号">
<el-input v-model="state.queryParams.upBatteryNo" placeholder="出仓电池编号" clearable />
<el-form-item :label="$t('message.station_battery_total_result.batteryCodeOut')">
<el-input v-model="state.queryParams.upBatteryNo" placeholder="" clearable />
</el-form-item>
<el-form-item label="出仓soc">
<el-input v-model="state.queryParams.upBatterySoc" placeholder="出仓soc" clearable />
<el-form-item :label="$t('message.station_battery_total_result.socOut')">
<el-input v-model="state.queryParams.upBatterySoc" placeholder="" clearable />
</el-form-item>
<el-form-item>
<el-button-group>
<el-button type="primary" icon="ele-Search" @click="handleQuery"> </el-button>
<el-button icon="ele-Refresh" @click="resetQuery"> </el-button>
<el-button type="primary" icon="ele-Search" @click="handleQuery"> {{ $t('message.station_battery_total_result.search') }} </el-button>
<el-button icon="ele-Refresh" @click="resetQuery"> {{ $t('message.station_battery_total_result.reset') }} </el-button>
</el-button-group>
</el-form-item>
<el-form-item>
@ -27,27 +27,27 @@
<el-card class="full-table" shadow="hover" style="margin-top: 5px">
<el-table :data="state.tenantData" style="width: 100%" v-loading="state.loading" border ref="tableRef" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" fixed> </el-table-column>
<el-table-column type="index" label="序号" width="55" align="center" fixed />
<el-table-column prop="inBinNo" label="入仓仓位号" align="center" show-overflow-tooltip />
<el-table-column prop="createdTime" label="创建时间" align="center" show-overflow-tooltip />
<el-table-column prop="updatedTime" label="更新时间" align="center" show-overflow-tooltip />
<el-table-column prop="upBinNo" label="出仓仓位号" align="center" show-overflow-tooltip />
<el-table-column prop="upBatteryNo" label="出仓电池编号" align="center" show-overflow-tooltip />
<el-table-column label="出仓soc" align="center" show-overflow-tooltip>
<el-table-column type="index" :label="$t('message.station_battery_total_result.serialNumber')" width="55" align="center" fixed />
<el-table-column prop="inBinNo" :label="$t('message.station_battery_total_result.warehousePositionIn')" align="center" show-overflow-tooltip />
<el-table-column prop="createdTime" :label="$t('message.station_battery_total_result.creationTime')" align="center" show-overflow-tooltip />
<el-table-column prop="updatedTime" :label="$t('message.station_battery_total_result.updateTime')" align="center" show-overflow-tooltip />
<el-table-column prop="upBinNo" :label="$t('message.station_battery_total_result.warehousePositionOut')" align="center" show-overflow-tooltip />
<el-table-column prop="upBatteryNo" :label="$t('message.station_battery_total_result.batteryCodeOut')" align="center" show-overflow-tooltip />
<el-table-column :label="$t('message.station_battery_total_result.socOut')" align="center" show-overflow-tooltip>
<template #default="scope"> {{ parseInt(scope.row.upBatterySoc).toFixed(2) }}% </template>
</el-table-column>
<el-table-column label="状态" align="center" show-overflow-tooltip>
<el-table-column :label="$t('message.station_battery_total_result.status')" align="center" show-overflow-tooltip>
<template #default="scope">
<el-tag v-if="scope.row.status === 0"> </el-tag>
<el-tag v-if="scope.row.status === 1"> </el-tag>
<el-tag v-if="scope.row.status === 2"> </el-tag>
<el-tag v-if="scope.row.status === 3"> </el-tag>
<el-tag v-if="scope.row.status === 0"> {{ $t('message.station_battery_total_result.initialization') }} </el-tag>
<el-tag v-if="scope.row.status === 1"> {{ $t('message.station_battery_total_result.inProgress') }} </el-tag>
<el-tag v-if="scope.row.status === 2"> {{ $t('message.station_battery_total_result.success') }} </el-tag>
<el-tag v-if="scope.row.status === 3"> {{ $t('message.station_battery_total_result.failure') }} </el-tag>
</template>
</el-table-column>
<el-table-column label="类型" align="center" show-overflow-tooltip>
<el-table-column :label="$t('message.station_battery_total_result.type')" align="center" show-overflow-tooltip>
<template #default="scope">
<el-tag v-if="scope.row.type === 0"> </el-tag>
<el-tag v-if="scope.row.type === 1" type="info"> </el-tag>
<el-tag v-if="scope.row.type === 0"> {{ $t('message.station_battery_total_result.automatic') }} </el-tag>
<el-tag v-if="scope.row.type === 1" type="info"> {{ $t('message.station_battery_total_result.manual') }} </el-tag>
</template>
</el-table-column>
</el-table>
@ -77,7 +77,8 @@ import { getAPI } from '/@/utils/axios-utils';
import { SysReplaceStatusLogApi } from '/@/api-services/api'; //zz
// replace_status_log
import { useI18n } from 'vue-i18n';
const { t } = useI18n();
// const editReplaceRef = ref<InstanceType<typeof EditReplace>>();
const tableRef = ref<RefType>();
@ -120,7 +121,7 @@ const resetQuery = () => {
//
const handleSizeChange = (val: number) => {
state.tableParams.pageSize.to = val;
state.tableParams.pageSize = val;
handleQuery();
};

Loading…
Cancel
Save