|
@@ -32,55 +32,106 @@
|
|
|
<el-table-column width="50" fixed="left">
|
|
<el-table-column width="50" fixed="left">
|
|
|
<div class="checkbox"></div>
|
|
<div class="checkbox"></div>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
- <el-table-column label="代理名称" width="150" fixed="left" prop="name"></el-table-column>
|
|
|
|
|
- <el-table-column label="代理ID" prop="agent_id" width="150"></el-table-column>
|
|
|
|
|
- <el-table-column label="联系人" prop="truename" width="150">
|
|
|
|
|
|
|
+ <el-table-column label="店铺名称" width="200" fixed="left" prop="shop_name"></el-table-column>
|
|
|
|
|
+ <el-table-column label="店铺编码" prop="agent_id" width="200"></el-table-column>
|
|
|
|
|
+ <el-table-column label="营业时间" prop="agent" width="150">
|
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
|
- <span v-if="scope.row.contact_name">{{ scope.row.contact_name }}</span>
|
|
|
|
|
|
|
+ <span v-if="scope.row.start_at">{{ scope.row.start_at }}-{{ scope.row.end_at }}</span>
|
|
|
<span class="status-danger" v-else>未设置</span>
|
|
<span class="status-danger" v-else>未设置</span>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
- <el-table-column label="联系电话" prop="mobile" width="150">
|
|
|
|
|
|
|
+ <el-table-column label="到期时间" prop="vip_end" width="180">
|
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
|
- <span v-if="scope.row.contact_mobile">{{ scope.row.contact_mobile }}</span>
|
|
|
|
|
|
|
+ <span v-if="scope.row.vip_end">{{ scope.row.vip_end }}</span>
|
|
|
|
|
+ <span class="status-danger" v-else>未设置</span>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-table-column>
|
|
|
|
|
+ <el-table-column label="收费规则" prop="rate_type" width="150">
|
|
|
|
|
+ <template #default="scope">
|
|
|
|
|
+ <div class="status-success" v-if="scope.row.rate_type==1"><sc-status-indicator type="success"></sc-status-indicator> 收取年费</div>
|
|
|
|
|
+ <div class="status-danger" v-if="scope.row.rate_type==2"><sc-status-indicator type="danger"></sc-status-indicator> 订单金额抽佣</div>
|
|
|
|
|
+ <div class="status-danger" v-if="scope.row.rate_type==0"><sc-status-indicator type="danger"></sc-status-indicator> 未设置</div>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-table-column>
|
|
|
|
|
+ <el-table-column label="联系人" prop="shop_contact" width="150">
|
|
|
|
|
+ <template #default="scope">
|
|
|
|
|
+ <span v-if="scope.row.shop_contact">{{ scope.row.shop_contact }}</span>
|
|
|
|
|
+ <span class="status-danger" v-else>未设置</span>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-table-column>
|
|
|
|
|
+ <el-table-column label="联系电话" prop="shop_mobile" width="150">
|
|
|
|
|
+ <template #default="scope">
|
|
|
|
|
+ <span v-if="scope.row.shop_mobile">{{ scope.row.shop_mobile }}</span>
|
|
|
|
|
+ <span class="status-danger" v-else>未设置</span>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-table-column>
|
|
|
|
|
+ <el-table-column label="店铺地址" prop="shop_address" width="320">
|
|
|
|
|
+ <template #default="scope">
|
|
|
|
|
+ <span v-if="scope.row.shop_address">{{ scope.row.shop_address }}</span>
|
|
|
<span class="status-danger" v-else>未设置</span>
|
|
<span class="status-danger" v-else>未设置</span>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
- <el-table-column label="到期时间" prop="vip_end" width="220"></el-table-column>
|
|
|
|
|
- <el-table-column label="注册时间" prop="create_at" width="180"></el-table-column>
|
|
|
|
|
<el-table-column label="状态" prop="status" width="120" align="center">
|
|
<el-table-column label="状态" prop="status" width="120" align="center">
|
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
|
- <div class="status-success" v-if="scope.row.status==1"><sc-status-indicator type="success"></sc-status-indicator> 正常</div>
|
|
|
|
|
- <div class="status-danger" v-else><sc-status-indicator type="danger"></sc-status-indicator> 禁用</div>
|
|
|
|
|
|
|
+ <div class="status-success" v-if="scope.row.status==0"><sc-status-indicator type="success"></sc-status-indicator> 正常</div>
|
|
|
|
|
+ <div class="status-danger" v-if="scope.row.status==1"><sc-status-indicator type="danger"></sc-status-indicator> 已到期</div>
|
|
|
|
|
+ <div class="status-danger" v-if="scope.row.status==2"><sc-status-indicator type="danger"></sc-status-indicator> 禁用</div>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
|
|
+ <el-table-column label="创建时间" prop="create_at" width="180"></el-table-column>
|
|
|
</scTable>
|
|
</scTable>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="main-body-wrap" v-else>
|
|
<div class="main-body-wrap" v-else>
|
|
|
<scTable ref="table" :apiObj="list.apiObj" :hideSetting="true" paginationLayout="total, prev, pager, next" :params="searchKey" @selectionChange="selectionChange" row-key="id" @sortChange="sortChange">
|
|
<scTable ref="table" :apiObj="list.apiObj" :hideSetting="true" paginationLayout="total, prev, pager, next" :params="searchKey" @selectionChange="selectionChange" row-key="id" @sortChange="sortChange">
|
|
|
<el-table-column type="selection" width="50" fixed="left"></el-table-column>
|
|
<el-table-column type="selection" width="50" fixed="left"></el-table-column>
|
|
|
- <el-table-column label="代理名称" width="150" fixed="left" prop="name"></el-table-column>
|
|
|
|
|
- <el-table-column label="代理ID" prop="agent_id" width="150"></el-table-column>
|
|
|
|
|
- <el-table-column label="联系人" prop="truename" width="150">
|
|
|
|
|
|
|
+
|
|
|
|
|
+ <el-table-column label="店铺名称" width="200" fixed="left" prop="shop_name"></el-table-column>
|
|
|
|
|
+ <el-table-column label="店铺编码" prop="agent_id" width="200"></el-table-column>
|
|
|
|
|
+ <el-table-column label="营业时间" prop="agent" width="150">
|
|
|
|
|
+ <template #default="scope">
|
|
|
|
|
+ <span v-if="scope.row.start_at">{{ scope.row.start_at }}-{{ scope.row.end_at }}</span>
|
|
|
|
|
+ <span class="status-danger" v-else>未设置</span>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-table-column>
|
|
|
|
|
+ <el-table-column label="到期时间" prop="vip_end" width="180">
|
|
|
|
|
+ <template #default="scope">
|
|
|
|
|
+ <span v-if="scope.row.vip_end">{{ scope.row.vip_end }}</span>
|
|
|
|
|
+ <span class="status-danger" v-else>未设置</span>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-table-column>
|
|
|
|
|
+ <el-table-column label="收费规则" prop="rate_type" width="150">
|
|
|
|
|
+ <template #default="scope">
|
|
|
|
|
+ <div class="status-success" v-if="scope.row.rate_type==1"><sc-status-indicator type="success"></sc-status-indicator> 收取年费</div>
|
|
|
|
|
+ <div class="status-danger" v-if="scope.row.rate_type==2"><sc-status-indicator type="danger"></sc-status-indicator> 订单金额抽佣</div>
|
|
|
|
|
+ <div class="status-danger" v-if="scope.row.rate_type==0"><sc-status-indicator type="danger"></sc-status-indicator> 未设置</div>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-table-column>
|
|
|
|
|
+ <el-table-column label="联系人" prop="shop_contact" width="150">
|
|
|
|
|
+ <template #default="scope">
|
|
|
|
|
+ <span v-if="scope.row.shop_contact">{{ scope.row.shop_contact }}</span>
|
|
|
|
|
+ <span class="status-danger" v-else>未设置</span>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-table-column>
|
|
|
|
|
+ <el-table-column label="联系电话" prop="shop_mobile" width="150">
|
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
|
- <span v-if="scope.row.contact_name">{{ scope.row.contact_name }}</span>
|
|
|
|
|
|
|
+ <span v-if="scope.row.shop_mobile">{{ scope.row.shop_mobile }}</span>
|
|
|
<span class="status-danger" v-else>未设置</span>
|
|
<span class="status-danger" v-else>未设置</span>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
- <el-table-column label="联系电话" prop="mobile" width="150">
|
|
|
|
|
|
|
+ <el-table-column label="店铺地址" prop="shop_address" width="320">
|
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
|
- <span v-if="scope.row.contact_mobile">{{ scope.row.contact_mobile }}</span>
|
|
|
|
|
|
|
+ <span v-if="scope.row.shop_address">{{ scope.row.shop_address }}</span>
|
|
|
<span class="status-danger" v-else>未设置</span>
|
|
<span class="status-danger" v-else>未设置</span>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
- <el-table-column label="到期时间" prop="vip_end" width="220"></el-table-column>
|
|
|
|
|
- <el-table-column label="注册时间" prop="create_at" width="180"></el-table-column>
|
|
|
|
|
<el-table-column label="状态" prop="status" width="120" align="center">
|
|
<el-table-column label="状态" prop="status" width="120" align="center">
|
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
|
- <div class="status-success" v-if="scope.row.status==1"><sc-status-indicator type="success"></sc-status-indicator> 正常</div>
|
|
|
|
|
- <div class="status-danger" v-else><sc-status-indicator type="danger"></sc-status-indicator> 禁用</div>
|
|
|
|
|
|
|
+ <div class="status-success" v-if="scope.row.status==0"><sc-status-indicator type="success"></sc-status-indicator> 正常</div>
|
|
|
|
|
+ <div class="status-danger" v-if="scope.row.status==1"><sc-status-indicator type="danger"></sc-status-indicator> 已到期</div>
|
|
|
|
|
+ <div class="status-danger" v-if="scope.row.status==2"><sc-status-indicator type="danger"></sc-status-indicator> 禁用</div>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
|
|
+ <el-table-column label="创建时间" prop="create_at" width="180"></el-table-column>
|
|
|
</scTable>
|
|
</scTable>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
@@ -103,11 +154,11 @@ export default{
|
|
|
loading: false,
|
|
loading: false,
|
|
|
mode:"add",
|
|
mode:"add",
|
|
|
titleMap:{
|
|
titleMap:{
|
|
|
- add:"选择代理",
|
|
|
|
|
- edit:"选择代理"
|
|
|
|
|
|
|
+ add:"选择店铺",
|
|
|
|
|
+ edit:"选择店铺"
|
|
|
},
|
|
},
|
|
|
list: {
|
|
list: {
|
|
|
- apiObj: this.$API.agent.list
|
|
|
|
|
|
|
+ apiObj: this.$API.shop.list
|
|
|
},
|
|
},
|
|
|
visible: false,
|
|
visible: false,
|
|
|
isSaveing: false,
|
|
isSaveing: false,
|