|
|
@ -43,8 +43,8 @@
|
|
|
|
clearable
|
|
|
|
clearable
|
|
|
|
@keyup.enter="handleQuery"
|
|
|
|
@keyup.enter="handleQuery"
|
|
|
|
class="!w-240px"
|
|
|
|
class="!w-240px"
|
|
|
|
/>
|
|
|
|
/> </el-form-item
|
|
|
|
</el-form-item><el-form-item label="司机" prop="nickName">
|
|
|
|
><el-form-item label="司机" prop="nickName">
|
|
|
|
<el-input
|
|
|
|
<el-input
|
|
|
|
v-model="queryParams.nickName"
|
|
|
|
v-model="queryParams.nickName"
|
|
|
|
placeholder="请输入司机"
|
|
|
|
placeholder="请输入司机"
|
|
|
@ -53,8 +53,7 @@
|
|
|
|
class="!w-240px"
|
|
|
|
class="!w-240px"
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item label="车牌号" prop="vehicleNo">
|
|
|
|
<el-form-item label="车牌号" prop="vehicleNo">
|
|
|
|
|
|
|
|
|
|
|
|
<el-input
|
|
|
|
<el-input
|
|
|
|
v-model="queryParams.vehicleNo"
|
|
|
|
v-model="queryParams.vehicleNo"
|
|
|
|
placeholder="请输入车牌号"
|
|
|
|
placeholder="请输入车牌号"
|
|
|
@ -94,11 +93,11 @@
|
|
|
|
{{ handle_stationNo(scope.row.stationNo) }}
|
|
|
|
{{ handle_stationNo(scope.row.stationNo) }}
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
|
|
|
|
<el-table-column label="充电订单号" align="center" prop="chargeOrder" width="120"/>
|
|
|
|
<el-table-column label="充电订单号" align="center" prop="chargeOrder" width="120" />
|
|
|
|
|
|
|
|
|
|
|
|
<el-table-column label="充电机编号" align="center" prop="epm" width="120" />
|
|
|
|
<el-table-column label="充电机编号" align="center" prop="epm" width="120" />
|
|
|
|
<el-table-column label="枪号" align="center" prop="chargerGunNo" width="120" >
|
|
|
|
<el-table-column label="枪号" align="center" prop="chargerGunNo" width="120">
|
|
|
|
<template #default="scope">
|
|
|
|
<template #default="scope">
|
|
|
|
<dict-tag :type="DICT_TYPE.GUN_LIST" :value="scope.row.chargerGunNo" />
|
|
|
|
<dict-tag :type="DICT_TYPE.GUN_LIST" :value="scope.row.chargerGunNo" />
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
@ -126,14 +125,14 @@
|
|
|
|
<!-- <el-table-column label="开始SOE" align="center" prop="startSoe" width="120" /> -->
|
|
|
|
<!-- <el-table-column label="开始SOE" align="center" prop="startSoe" width="120" /> -->
|
|
|
|
<!-- <el-table-column label="结束SOE" align="center" prop="endSoe" width="120" /> -->
|
|
|
|
<!-- <el-table-column label="结束SOE" align="center" prop="endSoe" width="120" /> -->
|
|
|
|
<el-table-column label="充电电量" align="center" prop="chargingCapacity" />
|
|
|
|
<el-table-column label="充电电量" align="center" prop="chargingCapacity" />
|
|
|
|
<el-table-column label="充电时长(min)" align="center" prop="chargingTime" width="120"/>
|
|
|
|
<el-table-column label="充电时长(min)" align="center" prop="chargingTime" width="120" />
|
|
|
|
<!-- <el-table-column label="车架号" align="center" prop="vin" /> -->
|
|
|
|
<!-- <el-table-column label="车架号" align="center" prop="vin" /> -->
|
|
|
|
<el-table-column label="订单状态" align="center" prop="orderStatus" width="120">
|
|
|
|
<el-table-column label="订单状态" align="center" prop="orderStatus" width="120">
|
|
|
|
<template #default="scope">
|
|
|
|
<template #default="scope">
|
|
|
|
<dict-tag :type="DICT_TYPE.ORDERSTATUS" :value="scope.row.orderStatus" />
|
|
|
|
<dict-tag :type="DICT_TYPE.ORDERSTATUS" :value="scope.row.orderStatus" />
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column label="总费用" align="center" prop="totalFee" >
|
|
|
|
<el-table-column label="总费用" align="center" prop="totalFee">
|
|
|
|
<template #default="scope">
|
|
|
|
<template #default="scope">
|
|
|
|
{{ scope.row.totalFee / 100 }}
|
|
|
|
{{ scope.row.totalFee / 100 }}
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
@ -177,9 +176,24 @@
|
|
|
|
</el-button>
|
|
|
|
</el-button>
|
|
|
|
<el-button link type="danger" @click="handleDelete(scope.row.id)"> 删除 </el-button>
|
|
|
|
<el-button link type="danger" @click="handleDelete(scope.row.id)"> 删除 </el-button>
|
|
|
|
<el-button link type="primary" @click="open_drawer(scope.row)"> 详情 </el-button>
|
|
|
|
<el-button link type="primary" @click="open_drawer(scope.row)"> 详情 </el-button>
|
|
|
|
|
|
|
|
<el-button
|
|
|
|
|
|
|
|
link
|
|
|
|
|
|
|
|
type="danger"
|
|
|
|
|
|
|
|
@click="handle_refund(scope.row)"
|
|
|
|
|
|
|
|
v-if="scope.row.orderStatus == 5"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
申请退款
|
|
|
|
|
|
|
|
</el-button>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- <el-button link type="primary" @click="handle_Offline(scope.row) " > 线下结算 </el-button> -->
|
|
|
|
<!-- <el-button link type="primary" @click="handle_Offline(scope.row) " > 线下结算 </el-button> -->
|
|
|
|
<el-button link type="primary" @click="handle_Offline(scope.row) " v-if="scope.row.orderStatus == 6"> 线下结算 </el-button>
|
|
|
|
<el-button
|
|
|
|
|
|
|
|
link
|
|
|
|
|
|
|
|
type="primary"
|
|
|
|
|
|
|
|
@click="handle_Offline(scope.row)"
|
|
|
|
|
|
|
|
v-if="scope.row.orderStatus == 6"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
线下结算
|
|
|
|
|
|
|
|
</el-button>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table>
|
|
|
|
</el-table>
|
|
|
@ -198,7 +212,7 @@
|
|
|
|
<el-dialog v-model="dialogFormVisible" title="填写结算金额" width="500">
|
|
|
|
<el-dialog v-model="dialogFormVisible" title="填写结算金额" width="500">
|
|
|
|
<el-form :model="actualPay_form">
|
|
|
|
<el-form :model="actualPay_form">
|
|
|
|
<el-form-item label="金额(元)" label-width="100">
|
|
|
|
<el-form-item label="金额(元)" label-width="100">
|
|
|
|
<el-input v-model.number="actualPay_form.actualPay" autocomplete="off" />
|
|
|
|
<el-input v-model.number="actualPay_form.actualPay" autocomplete="off" />
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form>
|
|
|
|
</el-form>
|
|
|
|
<template #footer>
|
|
|
|
<template #footer>
|
|
|
@ -286,8 +300,8 @@ const queryParams = reactive({
|
|
|
|
priceId: undefined,
|
|
|
|
priceId: undefined,
|
|
|
|
dateId: undefined,
|
|
|
|
dateId: undefined,
|
|
|
|
timeId: undefined,
|
|
|
|
timeId: undefined,
|
|
|
|
vehicleNo:undefined,
|
|
|
|
vehicleNo: undefined,
|
|
|
|
nickName:undefined,
|
|
|
|
nickName: undefined
|
|
|
|
})
|
|
|
|
})
|
|
|
|
const queryFormRef = ref() // 搜索的表单
|
|
|
|
const queryFormRef = ref() // 搜索的表单
|
|
|
|
const exportLoading = ref(false) // 导出的加载中
|
|
|
|
const exportLoading = ref(false) // 导出的加载中
|
|
|
@ -389,6 +403,23 @@ const handleDelete = async (id: number) => {
|
|
|
|
} catch {}
|
|
|
|
} catch {}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const handle_refund = async (row: any) => {
|
|
|
|
|
|
|
|
let params = {
|
|
|
|
|
|
|
|
orderNo: row.chargeOrder,
|
|
|
|
|
|
|
|
refundPrice: row.totalFee,
|
|
|
|
|
|
|
|
type: 2
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// console.log(params, 'params')
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
|
|
|
await message.confirm('确定退款吗?', '提示')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
await OutChargeOrderApi.createRefundOrder(params)
|
|
|
|
|
|
|
|
message.success('创建退款成功')
|
|
|
|
|
|
|
|
// 刷新列表
|
|
|
|
|
|
|
|
await getList()
|
|
|
|
|
|
|
|
} catch {}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/** 导出按钮操作 */
|
|
|
|
/** 导出按钮操作 */
|
|
|
|
const handleExport = async () => {
|
|
|
|
const handleExport = async () => {
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|