From 07fe15e78682fb78ed84f09b9eb0913f2f96b442 Mon Sep 17 00:00:00 2001
From: Mr.Zhang <710666463@qq.com>
Date: 星期五, 13 十月 2023 13:49:39 +0800
Subject: [PATCH] 管理端
---
admin/src/assets/images/404-tip.png | 0
admin/src/api/business/backgroundRefund.js | 17 ++++
admin/src/assets/images/404.png | 0
admin/src/views/business/bikeLocation.vue | 3
admin/src/views/business/backgroundRefund.vue | 103 +++++++++++++++++++++++++
admin/src/api/business/actionLog.js | 17 ++++
admin/src/views/business/actionLog.vue | 82 ++++++++++++++++++++
7 files changed, 222 insertions(+), 0 deletions(-)
diff --git a/admin/src/api/business/actionLog.js b/admin/src/api/business/actionLog.js
new file mode 100644
index 0000000..2bf436e
--- /dev/null
+++ b/admin/src/api/business/actionLog.js
@@ -0,0 +1,17 @@
+import request from '../../utils/request'
+
+// 鏌ヨ
+export function fetchList (data) {
+ return request.post('/business/actionLog/findRidePae', data, {
+ trim: true
+ })
+}
+
+// 瀵煎嚭Excel
+export function exportExcel (data) {
+ return request.post('/business/actionLog/exportRideExcel', data, {
+ trim: true,
+ download: true
+ })
+}
+
diff --git a/admin/src/api/business/backgroundRefund.js b/admin/src/api/business/backgroundRefund.js
new file mode 100644
index 0000000..34b6f60
--- /dev/null
+++ b/admin/src/api/business/backgroundRefund.js
@@ -0,0 +1,17 @@
+import request from '../../utils/request'
+
+// 鏌ヨ
+export function fetchList (data) {
+ return request.post('/business/refund/findPlatPage', data, {
+ trim: true
+ })
+}
+
+// 瀵煎嚭Excel
+export function exportExcel (data) {
+ return request.post('/business/refund/exportPlatExcel', data, {
+ trim: true,
+ download: true
+ })
+}
+
diff --git a/admin/src/assets/images/404-tip.png b/admin/src/assets/images/404-tip.png
new file mode 100644
index 0000000..5182634
--- /dev/null
+++ b/admin/src/assets/images/404-tip.png
Binary files differ
diff --git a/admin/src/assets/images/404.png b/admin/src/assets/images/404.png
new file mode 100644
index 0000000..a386e02
--- /dev/null
+++ b/admin/src/assets/images/404.png
Binary files differ
diff --git a/admin/src/views/business/actionLog.vue b/admin/src/views/business/actionLog.vue
new file mode 100644
index 0000000..5eded99
--- /dev/null
+++ b/admin/src/views/business/actionLog.vue
@@ -0,0 +1,82 @@
+<template>
+ <TableLayout :permissions="['business:actionLog:query']">
+ <!-- 鎼滅储琛ㄥ崟 -->
+ <el-form ref="searchForm" slot="search-form" :model="searchForm" label-width="100px" inline>
+
+ <el-form-item label="鐢ㄦ埛" prop="openid">
+ <el-input v-model="searchForm.openid" placeholder="璇疯緭鍏ョ敤鎴�" @keypress.enter.native="search"></el-input>
+ </el-form-item>
+ <el-form-item label="杞﹁締缂栫爜" prop="bikeCode">
+ <el-input v-model="searchForm.bikeCode" placeholder="璇疯緭鍏ヨ溅杈嗙紪鐮�" @keypress.enter.native="search"></el-input>
+ </el-form-item>
+ <el-form-item label="鎿嶄綔浜�" prop="creator">
+ <el-select v-model="searchForm.userId" placeholder="璇烽�夋嫨">
+ <el-option label="鏈綊杩�" :value="1">
+ </el-option>
+ <el-option label="宸插綊杩�" :value="1">
+ </el-option>
+ </el-select>
+ </el-form-item>
+ <section>
+ <el-button type="primary" @click="search">鎼滅储</el-button>
+ <el-button @click="reset">閲嶇疆</el-button>
+ </section>
+ </el-form>
+ <!-- 琛ㄦ牸鍜屽垎椤� -->
+ <template v-slot:table-wrap>
+ <ul class="toolbar" v-permissions="['business:actionLog:exportExcel']">
+ <li>
+ <el-button type="primary" :loading="isWorking.export" v-permissions="['business:actionLog:exportExcel']"
+ @click="exportExcel">瀵煎嚭</el-button>
+ </li>
+ </ul>
+ <el-table v-loading="isWorking.search" :data="tableData.list" stripe border>
+ <el-table-column prop="openid" label="鐢ㄦ埛" min-width="180px" align="center"></el-table-column>
+ <el-table-column prop="bikeCode" label="杞﹁締缂栫爜" min-width="100px" align="center"></el-table-column>
+ <el-table-column prop="rentSiteId" label="鍊熷嚭绔欑偣" min-width="100px" align="center"></el-table-column>
+ <el-table-column prop="rentDate" label="鍊熷嚭鏃堕棿" min-width="140px" align="center"></el-table-column>
+ <el-table-column prop="type" label="璋冩暣绫诲瀷" min-width="100px" align="center">
+ <template slot-scope="{row}">
+ <div>{{ row.type == 0 ? '寮哄埗杩樿溅' : '楠戣鏃堕暱淇敼' }}</div>
+ </template>
+ </el-table-column>
+ <el-table-column prop="createDate" label="鎿嶄綔鏃堕棿" min-width="140px" align="center"></el-table-column>
+ <el-table-column prop="creator" label="鎿嶄綔浜�" min-width="100px" align="center"></el-table-column>
+ <el-table-column prop="actReason" label="鍘熷洜" min-width="100px" align="center"></el-table-column>
+ <el-table-column prop="paactInforamId" label="澶囨敞" min-width="100px" align="center"></el-table-column>
+ </el-table>
+ <pagination @size-change="handleSizeChange" @current-change="handlePageChange" :pagination="tableData.pagination">
+ </pagination>
+ </template>
+ </TableLayout>
+</template>
+
+<script>
+import BaseTable from '@/components/base/BaseTable'
+import TableLayout from '@/layouts/TableLayout'
+import Pagination from '@/components/common/Pagination'
+export default {
+ name: 'MemberRides',
+ extends: BaseTable,
+ components: { TableLayout, Pagination },
+ data() {
+ return {
+ // 鎼滅储
+ searchForm: {
+ openid: '',
+ creator: '',
+ bikeCode: '',
+ },
+ }
+ },
+ created() {
+ this.config({
+ module: '鐢ㄦ埛楠戣璁板綍琛�',
+ api: '/business/actionLog',
+ 'field.id': 'id',
+ 'field.main': 'id'
+ })
+ this.search()
+ }
+}
+</script>
diff --git a/admin/src/views/business/backgroundRefund.vue b/admin/src/views/business/backgroundRefund.vue
new file mode 100644
index 0000000..607889c
--- /dev/null
+++ b/admin/src/views/business/backgroundRefund.vue
@@ -0,0 +1,103 @@
+<template>
+ <TableLayout :permissions="['business:actionLog:query']">
+ <!-- 鎼滅储琛ㄥ崟 -->
+ <el-form ref="searchForm" slot="search-form" :model="searchForm" label-width="100px" inline>
+
+ <el-form-item label="鐢ㄦ埛" prop="openid">
+ <el-date-picker
+ v-model="value1"
+ type="daterange"
+ range-separator="鑷�"
+ start-placeholder="寮�濮嬫棩鏈�"
+ end-placeholder="缁撴潫鏃ユ湡"
+ format="yyyy-MM-dd" value-format="yyyy-MM-dd HH:mm:ss"
+ @change="selectDate"
+ ></el-date-picker>
+ </el-form-item>
+ <el-form-item label="鎿嶄綔浜�" prop="creator">
+ <el-select v-model="searchForm.creator" placeholder="璇烽�夋嫨">
+ <el-option label="鏈綊杩�" :value="1">
+ </el-option>
+ <el-option label="宸插綊杩�" :value="1">
+ </el-option>
+ </el-select>
+ </el-form-item>
+ <section>
+ <el-button type="primary" @click="search">鎼滅储</el-button>
+ <el-button @click="reset">閲嶇疆</el-button>
+ </section>
+ </el-form>
+ <!-- 琛ㄦ牸鍜屽垎椤� -->
+ <template v-slot:table-wrap>
+ <ul class="toolbar" v-permissions="['business:actionLog:exportExcel']">
+ <li>
+ <el-button type="primary" :loading="isWorking.export" v-permissions="['business:actionLog:exportExcel']"
+ @click="exportExcel">瀵煎嚭</el-button>
+ </li>
+ </ul>
+ <el-table v-loading="isWorking.search" :data="tableData.list" stripe border>
+ <el-table-column prop="openid" label="鐢ㄦ埛" min-width="180px" align="center"></el-table-column>
+ <el-table-column prop="payOnlineOrderid" label="绯荤粺鍗曞彿" min-width="100px" align="center"></el-table-column>
+ <!-- payOnlineOrderid 鏀粯鎶奸噾浜ゆ槗鍗曞彿 -->
+ <!-- onlineOrderid 鍦ㄧ嚎浜ゆ槗鍗曞彿 -->
+ <!-- preOrderid 浜ゆ槗棰勮鍗曞彿 -->
+ <el-table-column prop="onlineOrderid" label="浜ゆ槗鍗曞彿" min-width="100px" align="center"></el-table-column>
+ <el-table-column prop="canBalance" label="褰撳墠鍙��鍥炴娂閲�(鍏�)" min-width="140px" align="center"></el-table-column>
+ <el-table-column prop="money" label="閫�鍥炴娂閲�(鍏�)" min-width="140px" align="center"></el-table-column>
+ <el-table-column prop="createDate" label="鎿嶄綔鏃堕棿" min-width="140px" align="center"></el-table-column>
+ <el-table-column prop="creator" label="鎿嶄綔浜�" min-width="100px" align="center"></el-table-column>
+ <el-table-column prop="actReason" label="鍘熷洜" min-width="100px" align="center"></el-table-column>
+ </el-table>
+ <pagination @size-change="handleSizeChange" @current-change="handlePageChange" :pagination="tableData.pagination">
+ </pagination>
+ </template>
+ </TableLayout>
+</template>
+
+<script>
+import BaseTable from '@/components/base/BaseTable'
+import TableLayout from '@/layouts/TableLayout'
+import Pagination from '@/components/common/Pagination'
+export default {
+ name: 'MemberRides',
+ extends: BaseTable,
+ components: { TableLayout, Pagination },
+ data() {
+ return {
+ value1: [],
+ // 鎼滅储
+ searchForm: {
+ startDate: '',
+ endDate: '',
+ creator: '',
+ },
+ }
+ },
+ created() {
+ this.config({
+ module: '鐢ㄦ埛楠戣璁板綍琛�',
+ api: '/business/backgroundRefund',
+ 'field.id': 'id',
+ 'field.main': 'id'
+ })
+ this.search()
+ },
+ methods: {
+ selectDate(v) {
+ this.searchForm.startDate = ''
+ this.searchForm.endDate = ''
+ if (v) {
+ this.searchForm.startDate = v[0]
+ this.searchForm.endDate = v[1]
+ }
+ this.search()
+ },
+ reset() {
+ this.searchForm.startDate = ''
+ this.searchForm.endDate = ''
+ this.value1 = []
+ this.search()
+ },
+ },
+}
+</script>
diff --git a/admin/src/views/business/bikeLocation.vue b/admin/src/views/business/bikeLocation.vue
index e3932e5..ec5987d 100644
--- a/admin/src/views/business/bikeLocation.vue
+++ b/admin/src/views/business/bikeLocation.vue
@@ -66,4 +66,7 @@
this.search()
}
}
+/**
+ *
+ */
</script>
--
Gitblit v1.9.3