From 34437176cfbc2dc30f786601f5abf27d605e2c15 Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期一, 13 四月 2026 20:17:20 +0800
Subject: [PATCH] Merge branch 'master' of http://139.186.142.91:10010/r/productDev/gtzxinglijicun
---
admin/src/views/business/shopWithdrawList.vue | 156 ++++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 156 insertions(+), 0 deletions(-)
diff --git a/admin/src/views/business/shopWithdrawList.vue b/admin/src/views/business/shopWithdrawList.vue
new file mode 100644
index 0000000..da28849
--- /dev/null
+++ b/admin/src/views/business/shopWithdrawList.vue
@@ -0,0 +1,156 @@
+<template>
+ <TableLayout :permissions="['business:withdrawalorders:query']">
+ <el-form ref="searchForm" slot="search-form" :model="searchForm" label-width="100px" inline>
+ <el-form-item label="闂ㄥ簵鍚嶇О" prop="shopName">
+ <el-input v-model="searchForm.shopName" clearable placeholder="璇疯緭鍏ラ棬搴楀悕绉�" @keypress.enter.native="search"></el-input>
+ </el-form-item>
+ <el-form-item label="鐢宠鏃堕棿" prop="createTime1">
+ <el-date-picker type="daterange" v-model="searchForm.createTime1" clearable value-format="yyyy-MM-dd"
+ range-separator="-" start-placeholder="寮�濮嬫棩鏈�" end-placeholder="缁撴潫鏃ユ湡" @change="handleDateChange" />
+ </el-form-item>
+ <el-form-item label="瀹℃壒鐘舵��" prop="status">
+ <el-select v-model="searchForm.status" clearable placeholder="璇烽�夋嫨鐘舵��" @change="search">
+ <el-option label="鎻愮幇鐢宠涓�" :value="0"></el-option>
+ <el-option label="鎻愮幇鎴愬姛" :value="1"></el-option>
+ <el-option label="鎻愮幇澶辫触" :value="2"></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>
+ <div class="total-amount">
+ <span>绱鎻愮幇锛毬{ totalAmount }}</span>
+ </div>
+ <el-table
+ :height="tableHeightNew"
+ v-loading="isWorking.search"
+ :data="tableData.list"
+ stripe
+ >
+ <el-table-column prop="shopName" label="闂ㄥ簵鍚嶇О" min-width="120px"></el-table-column>
+ <el-table-column prop="linkName" label="闂ㄥ簵鑱旂郴浜�" min-width="100px"></el-table-column>
+ <el-table-column prop="amount" label="鎻愮幇閲戦锛堝厓锛�" min-width="120px">
+ <template slot-scope="{row}">
+ <span class="amount">楼{{ row.amount / 100 }}</span>
+ </template>
+ </el-table-column>
+ <el-table-column prop="createTime" label="鐢宠鏃堕棿" min-width="160px"></el-table-column>
+ <el-table-column label="瀹℃牳鐘舵��" min-width="100px">
+ <template slot-scope="{row}">
+ <span :style="{ color: getStatusColor(row.status) }">
+ {{ getStatusText(row.status) }}
+ </span>
+ </template>
+ </el-table-column>
+ <el-table-column label="鎿嶄綔" min-width="100" fixed="right">
+ <template slot-scope="{row}">
+ <el-button type="text" @click="handleView(row)">鏌ョ湅</el-button>
+ </template>
+ </el-table-column>
+ </el-table>
+ <pagination
+ @size-change="handleSizeChange"
+ @current-change="handlePageChange"
+ :pagination="tableData.pagination"
+ ></pagination>
+ </template>
+ <OperaWithdrawDetailWindow ref="operaWithdrawDetailWindow" @success="search" />
+ </TableLayout>
+</template>
+
+<script>
+import BaseTable from '@/components/base/BaseTable'
+import TableLayout from '@/layouts/TableLayout'
+import Pagination from '@/components/common/Pagination'
+import OperaWithdrawDetailWindow from '@/components/business/OperaWithdrawDetailWindow'
+import { fetchList, getTotalAmount } from '@/api/business/shopWithdraw'
+
+export default {
+ name: 'ShopWithdrawList',
+ extends: BaseTable,
+ components: { TableLayout, Pagination, OperaWithdrawDetailWindow },
+ data () {
+ return {
+ totalAmount: '0.00',
+ searchForm: {
+ shopName: '',
+ createTime1: '',
+ createStartTime: '',
+ createEndTime: '',
+ status: ''
+ }
+ }
+ },
+ created () {
+ this.config({
+ api: '/business/shopWithdraw',
+ 'field.id': 'id'
+ })
+ this.loadTotalAmount()
+ this.search()
+ },
+ methods: {
+ loadTotalAmount () {
+ getTotalAmount({
+ capacity: 99999,
+ pageNum: 1,
+ model: {
+ shopName: this.searchForm.shopName,
+ createStartTime: this.searchForm.createStartTime,
+ createEndTime: this.searchForm.createEndTime,
+ status: this.searchForm.status
+ }
+ }).then(res => {
+ this.totalAmount = res / 100 || '0.00'
+ }).catch(e => {
+ this.$tip.apiFailed(e)
+ })
+ },
+ getStatusText (status) {
+ const map = { 0: '鎻愮幇鐢宠涓�', 1: '鎻愮幇鎴愬姛', 2: '鎻愮幇澶辫触' }
+ return map[status] || '-'
+ },
+ getStatusColor (status) {
+ const map = { 0: '#E6A23C', 1: '#67C23A', 2: '#F56C6C' }
+ return map[status] || '#606266'
+ },
+ handleDateChange (val) {
+ this.searchForm.createStartTime = val ? val[0] : ''
+ this.searchForm.createEndTime = val ? val[1] : ''
+ this.search()
+ },
+ reset () {
+ this.searchForm = {
+ shopName: '',
+ createTime1: '',
+ createStartTime: '',
+ createEndTime: '',
+ auditStatus: ''
+ }
+ this.search()
+ },
+ handleView (row) {
+ this.$refs.operaWithdrawDetailWindow.open('鎻愮幇璇︽儏', row)
+ }
+ }
+}
+</script>
+
+<style scoped>
+.total-amount {
+ padding: 15px 20px;
+ background: #f5f7fa;
+ border-radius: 8px;
+ margin-bottom: 15px;
+ font-size: 16px;
+ font-weight: bold;
+ color: #303133;
+}
+.amount {
+ color: #f56c6c;
+ font-weight: bold;
+}
+</style>
--
Gitblit v1.9.3