|
|
@ -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="请输入司机"
|
|
|
@ -54,7 +54,6 @@
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
</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="请输入车牌号"
|
|
|
@ -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>
|
|
|
@ -287,7 +301,7 @@ const queryParams = reactive({
|
|
|
|
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 {
|
|
|
|