feat: 初始化雄戈商城服务端代码与Webhook自动部署配置
这个提交包含在:
@@ -0,0 +1,361 @@
|
||||
<link rel="stylesheet" href="__CDN__/assets/addons/shopro/libs/element/element.css">
|
||||
<link rel="stylesheet" href="__CDN__/assets/addons/shopro/libs/common.css">
|
||||
|
||||
<style>
|
||||
[v-cloak] { display: none !important; }
|
||||
|
||||
#raRewardIndex {
|
||||
|
||||
padding: 0 20px 30px;
|
||||
|
||||
background: #f5f7fa;
|
||||
|
||||
min-height: 100%;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
.page-card {
|
||||
|
||||
background: #fff;
|
||||
|
||||
border-radius: 8px;
|
||||
|
||||
padding: 16px 20px;
|
||||
|
||||
margin-bottom: 12px;
|
||||
|
||||
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
.toolbar-row {
|
||||
|
||||
display: flex;
|
||||
|
||||
flex-wrap: wrap;
|
||||
|
||||
gap: 10px;
|
||||
|
||||
align-items: center;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
.stat-cards {
|
||||
|
||||
display: flex;
|
||||
|
||||
gap: 16px;
|
||||
|
||||
flex-wrap: wrap;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
.stat-card {
|
||||
|
||||
flex: 1;
|
||||
|
||||
min-width: 180px;
|
||||
|
||||
padding: 16px 20px;
|
||||
|
||||
border-radius: 8px;
|
||||
|
||||
background: linear-gradient(135deg, #faf8ff 0%, #fff 100%);
|
||||
|
||||
border: 1px solid #eee6ff;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
.stat-card .label {
|
||||
|
||||
font-size: 13px;
|
||||
|
||||
color: #888;
|
||||
|
||||
margin-bottom: 8px;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
.stat-card .value {
|
||||
|
||||
font-size: 22px;
|
||||
|
||||
font-weight: 600;
|
||||
|
||||
color: #333;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
.stat-card.waiting .value { color: #e6a23c; }
|
||||
|
||||
.stat-card.settled .value { color: #67c23a; }
|
||||
|
||||
|
||||
|
||||
.btn-view {
|
||||
|
||||
color: #7438D5;
|
||||
|
||||
cursor: pointer;
|
||||
|
||||
margin-right: 10px;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
.btn-view:hover { opacity: 0.85; }
|
||||
|
||||
|
||||
|
||||
.export-btn {
|
||||
|
||||
background: #7438D5;
|
||||
|
||||
color: #fff;
|
||||
|
||||
padding: 0 16px;
|
||||
|
||||
height: 32px;
|
||||
|
||||
line-height: 32px;
|
||||
|
||||
border-radius: 4px;
|
||||
|
||||
cursor: pointer;
|
||||
|
||||
font-size: 12px;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
.source-main {
|
||||
|
||||
font-size: 13px;
|
||||
|
||||
color: #333;
|
||||
|
||||
line-height: 1.5;
|
||||
|
||||
font-weight: 500;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
.source-sub {
|
||||
|
||||
font-size: 12px;
|
||||
|
||||
color: #999;
|
||||
|
||||
line-height: 1.6;
|
||||
|
||||
margin-top: 4px;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
.money-text {
|
||||
|
||||
color: #e1212b;
|
||||
|
||||
font-weight: 600;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
.status-tag {
|
||||
|
||||
display: inline-block;
|
||||
|
||||
padding: 2px 10px;
|
||||
|
||||
border-radius: 12px;
|
||||
|
||||
font-size: 12px;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
.status-tag.waiting { background: #fdf6ec; color: #e6a23c; }
|
||||
|
||||
.status-tag.settled { background: #f0f9eb; color: #67c23a; }
|
||||
|
||||
.status-tag.back { background: #fef0f0; color: #f56c6c; }
|
||||
|
||||
</style>
|
||||
|
||||
<div id="raRewardIndex" v-cloak v-loading="loading">
|
||||
|
||||
<div class="page-card">
|
||||
|
||||
<div class="stat-cards">
|
||||
|
||||
<div class="stat-card">
|
||||
|
||||
<div class="label">差价合计</div>
|
||||
|
||||
<div class="value">¥{{ summary.commission_total || '0.00' }}</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="stat-card waiting">
|
||||
|
||||
<div class="label">待入账</div>
|
||||
|
||||
<div class="value">¥{{ summary.commission_waiting || '0.00' }}</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="stat-card settled">
|
||||
|
||||
<div class="label">已入账</div>
|
||||
|
||||
<div class="value">¥{{ summary.commission_settled || '0.00' }}</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="page-card">
|
||||
|
||||
<div class="toolbar-row">
|
||||
|
||||
<el-input v-model="filters.agent_nickname" placeholder="公司昵称" size="small" style="width:140px;" clearable></el-input>
|
||||
|
||||
<el-input v-model="filters.order_sn" placeholder="订单号" size="small" style="width:160px;" clearable></el-input>
|
||||
|
||||
<el-select v-model="filters.status" placeholder="差价状态" size="small" style="width:120px;" clearable>
|
||||
|
||||
<el-option label="待入账" value="0"></el-option>
|
||||
|
||||
<el-option label="已入账" value="1"></el-option>
|
||||
|
||||
<el-option label="已退回" value="-1"></el-option>
|
||||
|
||||
</el-select>
|
||||
|
||||
<el-date-picker v-model="dateRange" type="daterange" size="small" range-separator="至"
|
||||
|
||||
start-placeholder="产生开始" end-placeholder="产生结束" value-format="yyyy-MM-dd"></el-date-picker>
|
||||
|
||||
<el-button type="primary" size="small" @click="search">搜索</el-button>
|
||||
|
||||
<el-button size="small" @click="resetFilters">重置</el-button>
|
||||
|
||||
<div class="export-btn" @click="exportData">导出</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="page-card" style="padding-bottom: 8px;">
|
||||
|
||||
<el-table :data="listData" border stripe v-loading="loading" empty-text="暂无差价记录">
|
||||
|
||||
<el-table-column label="ID" prop="id" width="70" fixed="left"></el-table-column>
|
||||
|
||||
<el-table-column label="产生时间" prop="createtime_text" width="160"></el-table-column>
|
||||
|
||||
<el-table-column label="差价来源" min-width="260">
|
||||
|
||||
<template slot-scope="scope">
|
||||
|
||||
<div class="source-main">{{ scope.row.source_order_sn }}</div>
|
||||
|
||||
<div class="source-sub">{{ scope.row.source_goods_title }}</div>
|
||||
|
||||
<div class="source-sub">买家:{{ scope.row.source_buyer_name }}<span v-if="scope.row.source_buyer_mobile"> · {{ scope.row.source_buyer_mobile }}</span></div>
|
||||
|
||||
<div class="source-sub" v-if="scope.row.source_amount">结算基数:¥{{ scope.row.source_amount }} · {{ scope.row.source_event }}</div>
|
||||
|
||||
</template>
|
||||
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column label="公司区域" prop="source_area_text" min-width="140"></el-table-column>
|
||||
|
||||
<el-table-column label="公司用户" min-width="120">
|
||||
|
||||
<template slot-scope="scope">{{ scope.row.agent_nickname || '-' }}</template>
|
||||
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column label="差价" width="100" align="right">
|
||||
|
||||
<template slot-scope="scope"><span class="money-text">¥{{ scope.row.commission }}</span></template>
|
||||
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column label="差价规则" prop="commission_rule_text" min-width="130"></el-table-column>
|
||||
|
||||
<el-table-column label="状态" width="100" align="center">
|
||||
|
||||
<template slot-scope="scope">
|
||||
|
||||
<span class="status-tag" :class="statusClass(scope.row.status)">{{ statusText(scope.row.status) }}</span>
|
||||
|
||||
</template>
|
||||
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column label="入账时间" prop="settle_time_text" width="160"></el-table-column>
|
||||
|
||||
<el-table-column label="操作" width="120" fixed="right">
|
||||
|
||||
<template slot-scope="scope">
|
||||
|
||||
<span class="btn-view" v-if="scope.row.status===0" @click="runCommission(scope.row.id)">结算</span>
|
||||
|
||||
<span class="btn-view" v-if="scope.row.status===1" @click="backCommission(scope.row.id)">退回</span>
|
||||
|
||||
<span v-if="scope.row.status===-1" style="color:#ccc;">-</span>
|
||||
|
||||
</template>
|
||||
|
||||
</el-table-column>
|
||||
|
||||
</el-table>
|
||||
|
||||
<div style="margin-top:16px;text-align:right;">
|
||||
|
||||
<el-pagination background layout="total, prev, pager, next, jumper" :current-page.sync="currentPage"
|
||||
|
||||
:page-size="limit" :total="total" @current-change="getList"></el-pagination>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<script src="__CDN__/assets/addons/shopro/libs/vue.js"></script>
|
||||
|
||||
<script src="__CDN__/assets/addons/shopro/libs/element/element.js"></script>
|
||||
|
||||
|
||||
在新工单中引用
屏蔽一个用户