|
|
|
@ -11,7 +11,14 @@
|
|
|
|
|
<el-row type="flex" justify="space-around">
|
|
|
|
|
<el-col :span="11">
|
|
|
|
|
<el-form-item label="换电站编码" prop="stationNo">
|
|
|
|
|
<el-input v-model="formData.stationNo" placeholder="请输入换电站编码" /> </el-form-item
|
|
|
|
|
<el-select v-model="formData.stationNo" placeholder="请选择" style="width: 100%">
|
|
|
|
|
<el-option
|
|
|
|
|
:label="item.stationName"
|
|
|
|
|
:value="item.stationNo"
|
|
|
|
|
v-for="(item, index) in stationinfoList"
|
|
|
|
|
:key="index"
|
|
|
|
|
/>
|
|
|
|
|
</el-select> </el-form-item
|
|
|
|
|
></el-col>
|
|
|
|
|
<el-col :span="11">
|
|
|
|
|
<el-form-item label="换电订单号" prop="swapOrder">
|
|
|
|
@ -52,321 +59,7 @@
|
|
|
|
|
<el-input v-model="formData.endSoc" placeholder="请输入结束SOC" /> </el-form-item
|
|
|
|
|
></el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
<el-row type="flex" justify="space-around">
|
|
|
|
|
<el-col :span="11">
|
|
|
|
|
<el-form-item label="开始SOE" prop="startSoe">
|
|
|
|
|
<el-input v-model="formData.startSoe" placeholder="请输入开始SOE" /> </el-form-item
|
|
|
|
|
></el-col>
|
|
|
|
|
<el-col :span="11"
|
|
|
|
|
><el-form-item label="结束SOE" prop="endSoe">
|
|
|
|
|
<el-input v-model="formData.endSoe" placeholder="请输入结束SOE" /> </el-form-item
|
|
|
|
|
></el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
<el-row type="flex" justify="space-around">
|
|
|
|
|
<el-col :span="11"
|
|
|
|
|
><el-form-item label="充电电量" prop="consumption">
|
|
|
|
|
<el-input v-model="formData.consumption" placeholder="请输入充电电量" /> </el-form-item
|
|
|
|
|
></el-col>
|
|
|
|
|
<el-col :span="11">
|
|
|
|
|
<el-form-item label="充电时长" prop="chargeTime">
|
|
|
|
|
<el-date-picker
|
|
|
|
|
v-model="formData.chargeTime"
|
|
|
|
|
type="date"
|
|
|
|
|
value-format="x"
|
|
|
|
|
placeholder="选择充电时长"
|
|
|
|
|
style="width: 100%"
|
|
|
|
|
/> </el-form-item
|
|
|
|
|
></el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
<el-row type="flex" justify="space-around">
|
|
|
|
|
<el-col :span="11">
|
|
|
|
|
<el-form-item label="充电次数" prop="chargeQuantity">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="formData.chargeQuantity"
|
|
|
|
|
placeholder="请输入充电次数"
|
|
|
|
|
/> </el-form-item
|
|
|
|
|
></el-col>
|
|
|
|
|
<el-col :span="11">
|
|
|
|
|
<el-form-item label="尖时段电量(直流)" prop="theTipElectric">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="formData.theTipElectric"
|
|
|
|
|
placeholder="请输入尖时段电量(直流)"
|
|
|
|
|
/> </el-form-item
|
|
|
|
|
></el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
<el-row type="flex" justify="space-around">
|
|
|
|
|
<el-col :span="11">
|
|
|
|
|
<el-form-item label="尖时段单价(直流)" prop="theTipPrice">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="formData.theTipPrice"
|
|
|
|
|
placeholder="请输入尖时段单价(直流)"
|
|
|
|
|
/> </el-form-item
|
|
|
|
|
></el-col>
|
|
|
|
|
<el-col :span="11">
|
|
|
|
|
<el-form-item label="尖时段电费(直流)" prop="theTipExpense">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="formData.theTipExpense"
|
|
|
|
|
placeholder="请输入尖时段电费(直流)"
|
|
|
|
|
/> </el-form-item
|
|
|
|
|
></el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
<el-row type="flex" justify="space-around">
|
|
|
|
|
<el-col :span="11"
|
|
|
|
|
><el-form-item label="峰时段电量(直流)" prop="peakElectric">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="formData.peakElectric"
|
|
|
|
|
placeholder="请输入峰时段电量(直流)"
|
|
|
|
|
/> </el-form-item
|
|
|
|
|
></el-col>
|
|
|
|
|
<el-col :span="11">
|
|
|
|
|
<el-form-item label="峰时段单价(直流)" prop="peakPrice">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="formData.peakPrice"
|
|
|
|
|
placeholder="请输入峰时段单价(直流)"
|
|
|
|
|
/> </el-form-item
|
|
|
|
|
></el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
<el-row type="flex" justify="space-around">
|
|
|
|
|
<el-col :span="11">
|
|
|
|
|
<el-form-item label="峰时段电费(直流)" prop="peakExpense">
|
|
|
|
|
<el-input v-model="formData.peakExpense" placeholder="请输入峰时段电费(直流)" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="11">
|
|
|
|
|
<el-form-item label="平时段电量(直流)" prop="flatElectric">
|
|
|
|
|
<el-input v-model="formData.flatElectric" placeholder="请输入平时段电量(直流)" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
<el-row type="flex" justify="space-around">
|
|
|
|
|
<el-col :span="11">
|
|
|
|
|
<el-form-item label="平时段单价(直流)" prop="flatPrice">
|
|
|
|
|
<el-input v-model="formData.flatPrice" placeholder="请输入平时段单价(直流)" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="11">
|
|
|
|
|
<el-form-item label="平时段电费(直流)" prop="flatExpense">
|
|
|
|
|
<el-input v-model="formData.flatExpense" placeholder="请输入平时段电费(直流)" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
<el-row type="flex" justify="space-around">
|
|
|
|
|
<el-col :span="11">
|
|
|
|
|
<el-form-item label="谷时段电量(直流)" prop="theValleyElectric">
|
|
|
|
|
<el-input v-model="formData.theValleyElectric" placeholder="请输入谷时段电量(直流)" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="11">
|
|
|
|
|
<el-form-item label="谷时段单价(直流)" prop="theValleyPrice">
|
|
|
|
|
<el-input v-model="formData.theValleyPrice" placeholder="请输入谷时段单价(直流)" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
<el-row type="flex" justify="space-around">
|
|
|
|
|
<el-col :span="11">
|
|
|
|
|
<el-form-item label="谷时段电费(直流)" prop="theValleyExpense">
|
|
|
|
|
<el-input v-model="formData.theValleyExpense" placeholder="请输入谷时段电费(直流)" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="11">
|
|
|
|
|
<el-form-item label="修正充电量(直流)" prop="amendElectric">
|
|
|
|
|
<el-input v-model="formData.amendElectric" placeholder="请输入修正充电量(直流)" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
<el-row type="flex" justify="space-around">
|
|
|
|
|
<el-col :span="11">
|
|
|
|
|
<el-form-item label="修正电费(直流)" prop="amendExpense">
|
|
|
|
|
<el-input v-model="formData.amendExpense" placeholder="请输入修正电费(直流)" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="11">
|
|
|
|
|
<el-form-item label="尖时段电量(交流)" prop="theTipElectricAcMeter">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="formData.theTipElectricAcMeter"
|
|
|
|
|
placeholder="请输入尖时段电量(交流)"
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
<el-row type="flex" justify="space-around">
|
|
|
|
|
<el-col :span="11">
|
|
|
|
|
<el-form-item label="峰时段电量(交流)" prop="peakElectricAcMeter">
|
|
|
|
|
<el-input v-model="formData.peakElectricAcMeter" placeholder="请输入峰时段电量(交流)" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="11">
|
|
|
|
|
<el-form-item label="平时段电量(交流)" prop="flatElectricAcMeter">
|
|
|
|
|
<el-input v-model="formData.flatElectricAcMeter" placeholder="请输入平时段电量(交流)" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
<el-row type="flex" justify="space-around">
|
|
|
|
|
<el-col :span="11">
|
|
|
|
|
<el-form-item label="谷时段电量(交流)" prop="theValleyElectricAcMeter">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="formData.theValleyElectricAcMeter"
|
|
|
|
|
placeholder="请输入谷时段电量(交流)"
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="11">
|
|
|
|
|
<el-form-item label="尖时段电费(交流)" prop="theTipExpenseAcMeter">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="formData.theTipExpenseAcMeter"
|
|
|
|
|
placeholder="请输入尖时段电费(交流)"
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
<el-row type="flex" justify="space-around">
|
|
|
|
|
<el-col :span="11">
|
|
|
|
|
<el-form-item label="峰时段电费(交流)" prop="peakExpenseAcMeter">
|
|
|
|
|
<el-input v-model="formData.peakExpenseAcMeter" placeholder="请输入峰时段电费(交流)" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="11">
|
|
|
|
|
<el-form-item label="平时段电费(交流)" prop="flatExpenseAcMeter">
|
|
|
|
|
<el-input v-model="formData.flatExpenseAcMeter" placeholder="请输入平时段电费(交流)" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
<el-row type="flex" justify="space-around">
|
|
|
|
|
<el-col :span="11">
|
|
|
|
|
<el-form-item label="谷时段电费(交流)" prop="theValleyExpenseAcMeter">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="formData.theValleyExpenseAcMeter"
|
|
|
|
|
placeholder="请输入谷时段电费(交流)"
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="11">
|
|
|
|
|
<el-form-item label="修正充电量(交流)" prop="amendElectricAcMeter">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="formData.amendElectricAcMeter"
|
|
|
|
|
placeholder="请输入修正充电量(交流)"
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
<el-row type="flex" justify="space-around">
|
|
|
|
|
<el-col :span="11">
|
|
|
|
|
<el-form-item label="修正电费(交流)" prop="amendExpenseAcMeter">
|
|
|
|
|
<el-input v-model="formData.amendExpenseAcMeter" placeholder="请输入修正电费(交流)" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="11">
|
|
|
|
|
<el-form-item label="充电前交流表电量" prop="beforeChargingElectric">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="formData.beforeChargingElectric"
|
|
|
|
|
placeholder="请输入充电前交流表电量"
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
<el-row type="flex" justify="space-around">
|
|
|
|
|
<el-col :span="11">
|
|
|
|
|
<el-form-item label="充电后交流表电量" prop="afterChargingElectric">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="formData.afterChargingElectric"
|
|
|
|
|
placeholder="请输入充电后交流表电量"
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="11">
|
|
|
|
|
<el-form-item label="上报方式" prop="reportingMode">
|
|
|
|
|
<el-select
|
|
|
|
|
v-model="formData.reportingMode"
|
|
|
|
|
placeholder="请选择上报方式"
|
|
|
|
|
style="width: 100%"
|
|
|
|
|
>
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="dict in getIntDictOptions(DICT_TYPE.REPORTMETHOD)"
|
|
|
|
|
:key="dict.value"
|
|
|
|
|
:label="dict.label"
|
|
|
|
|
:value="dict.value"
|
|
|
|
|
/>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
<el-row type="flex" justify="space-around">
|
|
|
|
|
<el-col :span="11">
|
|
|
|
|
<el-form-item label="车架号" prop="vin">
|
|
|
|
|
<el-input v-model="formData.vin" placeholder="请输入" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="11">
|
|
|
|
|
<el-form-item label="是否有效" prop="status">
|
|
|
|
|
<el-radio-group v-model="formData.status" style="width: 100%">
|
|
|
|
|
<el-radio
|
|
|
|
|
v-for="dict in getIntDictOptions(DICT_TYPE.APPACCESS_STATUS)"
|
|
|
|
|
:key="dict.value"
|
|
|
|
|
:label="dict.value"
|
|
|
|
|
>
|
|
|
|
|
{{ dict.label }}
|
|
|
|
|
</el-radio>
|
|
|
|
|
</el-radio-group>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
<el-row type="flex" justify="space-around">
|
|
|
|
|
<el-col :span="11">
|
|
|
|
|
<el-form-item label="充电机唯一编码" prop="epm">
|
|
|
|
|
<el-input v-model="formData.epm" placeholder="请输入" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="11">
|
|
|
|
|
<el-form-item label="充电机仓位号" prop="bin">
|
|
|
|
|
<el-input v-model="formData.bin" placeholder="请输入" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
<el-row type="flex" justify="space-around">
|
|
|
|
|
<el-col :span="11">
|
|
|
|
|
<el-form-item label="是否补单" prop="replenishmentFlag">
|
|
|
|
|
<el-radio-group v-model="formData.replenishmentFlag" style="width: 100%">
|
|
|
|
|
<el-radio
|
|
|
|
|
v-for="dict in getIntDictOptions(DICT_TYPE.APPACCESS_STATUS)"
|
|
|
|
|
:key="dict.value"
|
|
|
|
|
:label="dict.value"
|
|
|
|
|
>
|
|
|
|
|
{{ dict.label }}
|
|
|
|
|
</el-radio>
|
|
|
|
|
</el-radio-group>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="11">
|
|
|
|
|
<el-form-item label="充电流水号" prop="chargeSerialNumber">
|
|
|
|
|
<el-input v-model="formData.chargeSerialNumber" placeholder="请输入充电流水号" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
<el-row type="flex" justify="space-around">
|
|
|
|
|
<!-- <el-col :span="11">
|
|
|
|
|
<el-form-item label="电池序列号" prop="batteryId">
|
|
|
|
|
<el-input v-model="formData.batteryId" placeholder="请输入电池序列号" /> </el-form-item
|
|
|
|
|
></el-col> -->
|
|
|
|
|
<el-col :span="11">
|
|
|
|
|
<el-form-item label="电池编码" prop="downBatteryNo">
|
|
|
|
|
<el-input v-model="formData.downBatteryNo" placeholder="请输入" /> </el-form-item
|
|
|
|
@ -389,7 +82,12 @@ defineOptions({ name: 'ChargeOrderForm' })
|
|
|
|
|
|
|
|
|
|
const { t } = useI18n() // 国际化
|
|
|
|
|
const message = useMessage() // 消息弹窗
|
|
|
|
|
|
|
|
|
|
const props = defineProps({
|
|
|
|
|
stationinfoList: {
|
|
|
|
|
type: Array,
|
|
|
|
|
default: () => []
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
const dialogVisible = ref(false) // 弹窗的是否展示
|
|
|
|
|
const dialogTitle = ref('') // 弹窗的标题
|
|
|
|
|
const formLoading = ref(false) // 表单的加载中:1)修改时的数据加载;2)提交的按钮禁用
|
|
|
|
@ -445,9 +143,13 @@ const formData = ref({
|
|
|
|
|
downBatteryNo: undefined
|
|
|
|
|
})
|
|
|
|
|
const formRules = reactive({
|
|
|
|
|
stationNo: [{ required: true, message: '换电站编码不能为空', trigger: 'blur' }],
|
|
|
|
|
stationNo: [{ required: true, message: '不能为空', trigger: 'change' }],
|
|
|
|
|
downBatteryNo: [{ required: true, message: '不能为空', trigger: 'blur' }],
|
|
|
|
|
swapOrder: [{ required: true, message: '换电订单号不能为空', trigger: 'blur' }],
|
|
|
|
|
swapOrder: [{ required: true, message: '不能为空', trigger: 'blur' }],
|
|
|
|
|
startTime: [{ required: true, message: '不能为空', trigger: 'blur' }],
|
|
|
|
|
endTime: [{ required: true, message: '不能为空', trigger: 'blur' }],
|
|
|
|
|
startSoc: [{ required: true, message: '不能为空', trigger: 'blur' }],
|
|
|
|
|
endSoc: [{ required: true, message: '不能为空', trigger: 'blur' }]
|
|
|
|
|
})
|
|
|
|
|
const formRef = ref() // 表单 Ref
|
|
|
|
|
|
|
|
|
|