对账列表

This commit is contained in:
邱贞招 2024-06-18 11:31:13 +08:00
parent cf883b71c8
commit 7f6bf7cba6
4 changed files with 261 additions and 37 deletions

View File

@ -0,0 +1,10 @@
import request from '@/utils/request'
// 查询对账订单列表
export function listReconciliation(query) {
return request({
url: '/system/reconciliation',
method: 'get',
params: query
})
}

View File

@ -1,17 +1,17 @@
<template>
<div class="app-container">
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
<el-form-item label="设备名称" prop="deviceName">
<el-form-item label="MAC" prop="mac">
<el-input
v-model="queryParams.deviceName"
placeholder="请输入设备名称"
v-model="queryParams.mac"
placeholder="请输入mac"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="SN号" prop="mac">
<el-form-item label="SN号" prop="sn">
<el-input
v-model="queryParams.mac"
v-model="queryParams.sn"
placeholder="请输入设备SN号"
clearable
@keyup.enter.native="handleQuery"
@ -410,6 +410,7 @@ export default {
pageSize: 10,
deviceName: null,
mac: null,
sn: null,
areaId: null,
onlineStatus: null,
status: null,

View File

@ -0,0 +1,213 @@
<template>
<div class="app-container">
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
<el-form-item label="创建时间">
<el-date-picker
v-model="dateRange"
style="width: 240px"
value-format="yyyy-MM-dd"
type="daterange"
range-separator="-"
start-placeholder="开始日期"
end-placeholder="结束日期"
></el-date-picker>
</el-form-item>
<el-form-item>
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
</el-form-item>
</el-form>
<el-row :gutter="10" class="mb8">
<el-col :span="1.5">
<el-button
type="warning"
plain
icon="el-icon-download"
size="mini"
@click="handleExport"
v-hasPermi="['system:reconciliation:export']"
>导出</el-button>
</el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
</el-row>
<el-table v-loading="loading" :data="refundList" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" align="center" />
<el-table-column label="时间" align="center" prop="day" />
<el-table-column label="运营商" align="center" prop="deptName" />
<el-table-column label="运营区" align="center" prop="areaName" />
<el-table-column label="累计营收" align="center" prop="income" />
<el-table-column label="运营商分账" align="center" prop="deptFee" />
<el-table-column label="合伙人分账" align="center" prop="partnerFee" />
<el-table-column label="平台服务费" align="center" prop="platformServiceFee" />
<el-table-column label="骑行订单" align="center" prop="ridingFee" />
<el-table-column label="调度费用" align="center" prop="dispatchFee" />
</el-table>
<!-- <pagination-->
<!-- v-show="total>0"-->
<!-- :total="total"-->
<!-- :page.sync="queryParams.pageNum"-->
<!-- :limit.sync="queryParams.pageSize"-->
<!-- @pagination="getList"-->
<!-- />-->
</div>
</template>
<script>
import { listReconciliation } from "@/api/system/reconciliation";
export default {
name: "Reconciliation",
data() {
return {
//
loading: true,
//
dateRange: [],
//
ids: [],
//
single: true,
//
multiple: true,
//
showSearch: true,
//
total: 0,
// 退
refundList: [],
//
title: "",
//
open: false,
//
queryParams: {
pageNum: 1,
pageSize: 10,
refundNo: null,
orderNo: null,
userId: null,
amount: null,
itemDesc: null
},
//
form: {},
//
rules: {
orderNo: [
{ required: true, message: "关联订单不能为空", trigger: "blur" }
],
userId: [
{ required: true, message: "用户ID不能为空", trigger: "blur" }
],
}
};
},
created() {
this.getList();
},
methods: {
/** 查询退款订单列表 */
getList() {
this.loading = true;
// console.log("================="+JSON.stringify(this.dateRange))
this.queryParams.timeStart = this.dateRange[0];
this.queryParams.timeEnd = this.dateRange[1];
listReconciliation(this.queryParams).then(response => {
this.refundList = response.data.reconciliationList;
// this.total = response.total;
this.loading = false;
});
},
//
reset() {
this.form = {
id: null,
refundNo: null,
orderNo: null,
userId: null,
amount: null,
dispatchFee: null,
manageFee: null,
ridingFee: null,
appointmentFee: null,
reason: null,
createTime: null,
itemDesc: null
};
this.resetForm("form");
},
/** 搜索按钮操作 */
handleQuery() {
this.queryParams.pageNum = 1;
this.getList();
},
/** 重置按钮操作 */
resetQuery() {
this.resetForm("queryForm");
this.handleQuery();
},
//
handleSelectionChange(selection) {
this.ids = selection.map(item => item.id)
this.single = selection.length!==1
this.multiple = !selection.length
},
// /** */
// handleAdd() {
// this.reset();
// this.open = true;
// this.title = "退";
// },
// /** */
// handleUpdate(row) {
// this.reset();
// const id = row.id || this.ids
// getRefund(id).then(response => {
// this.form = response.data;
// this.open = true;
// this.title = "退";
// });
// },
// /** */
// submitForm() {
// this.$refs["form"].validate(valid => {
// if (valid) {
// if (this.form.id != null) {
// updateRefund(this.form).then(response => {
// this.$modal.msgSuccess("");
// this.open = false;
// this.getList();
// });
// } else {
// addRefund(this.form).then(response => {
// this.$modal.msgSuccess("");
// this.open = false;
// this.getList();
// });
// }
// }
// });
// },
// /** */
// handleDelete(row) {
// const ids = row.id || this.ids;
// this.$modal.confirm('退"' + ids + '"').then(function() {
// return delRefund(ids);
// }).then(() => {
// this.getList();
// this.$modal.msgSuccess("");
// }).catch(() => {});
// },
/** 导出按钮操作 */
handleExport() {
this.download('system/refund/export', {
...this.queryParams
}, `refund_${new Date().getTime()}.xlsx`)
}
}
};
</script>

View File

@ -48,38 +48,38 @@
</el-form>
<el-row :gutter="10" class="mb8">
<el-col :span="1.5">
<el-button
type="primary"
plain
icon="el-icon-plus"
size="mini"
@click="handleAdd"
v-hasPermi="['system:refund:add']"
>新增</el-button>
</el-col>
<el-col :span="1.5">
<el-button
type="success"
plain
icon="el-icon-edit"
size="mini"
:disabled="single"
@click="handleUpdate"
v-hasPermi="['system:refund:edit']"
>修改</el-button>
</el-col>
<el-col :span="1.5">
<el-button
type="danger"
plain
icon="el-icon-delete"
size="mini"
:disabled="multiple"
@click="handleDelete"
v-hasPermi="['system:refund:remove']"
>删除</el-button>
</el-col>
<!-- <el-col :span="1.5">-->
<!-- <el-button-->
<!-- type="primary"-->
<!-- plain-->
<!-- icon="el-icon-plus"-->
<!-- size="mini"-->
<!-- @click="handleAdd"-->
<!-- v-hasPermi="['system:refund:add']"-->
<!-- >新增</el-button>-->
<!-- </el-col>-->
<!-- <el-col :span="1.5">-->
<!-- <el-button-->
<!-- type="success"-->
<!-- plain-->
<!-- icon="el-icon-edit"-->
<!-- size="mini"-->
<!-- :disabled="single"-->
<!-- @click="handleUpdate"-->
<!-- v-hasPermi="['system:refund:edit']"-->
<!-- >修改</el-button>-->
<!-- </el-col>-->
<!-- <el-col :span="1.5">-->
<!-- <el-button-->
<!-- type="danger"-->
<!-- plain-->
<!-- icon="el-icon-delete"-->
<!-- size="mini"-->
<!-- :disabled="multiple"-->
<!-- @click="handleDelete"-->
<!-- v-hasPermi="['system:refund:remove']"-->
<!-- >删除</el-button>-->
<!-- </el-col>-->
<el-col :span="1.5">
<el-button
type="warning"