Compare commits
No commits in common. 'dev' and 'master' have entirely different histories.
Before Width: | Height: | Size: 66 KiB After Width: | Height: | Size: 2.8 KiB |
Before Width: | Height: | Size: 66 KiB |
Before Width: | Height: | Size: 78 KiB After Width: | Height: | Size: 40 KiB |
@ -1,90 +0,0 @@
|
||||
export const columns = [
|
||||
{
|
||||
title: "用户名",
|
||||
width: "8%",
|
||||
dataIndex: "userName",
|
||||
},
|
||||
{
|
||||
title: "姓名",
|
||||
width: "6%",
|
||||
dataIndex: "actualName",
|
||||
},
|
||||
{
|
||||
title: "密码",
|
||||
width: "10%",
|
||||
dataIndex: "password",
|
||||
},
|
||||
{
|
||||
title: "手机号",
|
||||
width: "10%",
|
||||
dataIndex: "tel",
|
||||
},
|
||||
{
|
||||
title: "性别",
|
||||
width: "6%",
|
||||
dataIndex: "sex",
|
||||
customRender: function(status) {
|
||||
switch(status) {
|
||||
case 1: return '男';
|
||||
case 2: return '女';
|
||||
case 3: return '保密';
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
title: "员工编号",
|
||||
width: "10%",
|
||||
dataIndex: "userCode",
|
||||
},
|
||||
{
|
||||
title: "是否启用",
|
||||
width: "6%",
|
||||
dataIndex: "status",
|
||||
scopedSlots: { customRender: "status" },
|
||||
},
|
||||
{
|
||||
title: "创建时间",
|
||||
width: "10%",
|
||||
dataIndex: "createDate",
|
||||
customRender: function(createDate) {
|
||||
let date = new Date(createDate).toLocaleString();
|
||||
return date
|
||||
}
|
||||
},
|
||||
{
|
||||
title: "最后登录ip",
|
||||
width: "12%",
|
||||
dataIndex: "lastLoginIp",
|
||||
},
|
||||
{
|
||||
title: "最后登录时间",
|
||||
width: "10%",
|
||||
dataIndex: "lastLoginDate",
|
||||
},
|
||||
{
|
||||
title: "操作",
|
||||
dataIndex: "action",
|
||||
key: "action",
|
||||
width: "180",
|
||||
fixed: "right",
|
||||
scopedSlots: { customRender: "action" },
|
||||
},
|
||||
]
|
||||
|
||||
export const pagination= {
|
||||
current: 1,
|
||||
total: 0,
|
||||
pageSize: 10,
|
||||
showTotal: (total) => `共 ${total} 条`,
|
||||
showSizeChanger: true,
|
||||
showQuickJumper: true,
|
||||
};
|
||||
|
||||
export const rules = {
|
||||
communityId: [{ required: true, message: "请选择小区", trigger: "change" }],
|
||||
userName: [{ required: true, message: "请输入用户名", trigger: "blur" }],
|
||||
password: [{ required: true, message: "请输入密码", trigger: "blur" }],
|
||||
actualName: [{ required: true, message: "请输入姓名", trigger: "blur" }],
|
||||
tel: [{ required: true, message: "请输入手机号", trigger: "blur" }],
|
||||
sex: [{ required: true, message: "请选择性别", trigger: "change" }],
|
||||
}
|
@ -1,251 +0,0 @@
|
||||
<template>
|
||||
<div class="main">
|
||||
<div class="cardTitle">管理员账号</div>
|
||||
<div class="search-box">
|
||||
<a-space size="large">
|
||||
<a-form-model layout="inline">
|
||||
<a-form-model-item label="真实姓名">
|
||||
<a-input v-model="form.actualName" placeholder="请输入真实姓名"></a-input>
|
||||
</a-form-model-item>
|
||||
<a-form-model-item label="用户名">
|
||||
<a-input v-model="form.userName" placeholder="请输入用户名"></a-input>
|
||||
</a-form-model-item>
|
||||
<a-form-model-item label="手机号">
|
||||
<a-input v-model="form.tel" placeholder="请输入手机号"></a-input>
|
||||
</a-form-model-item>
|
||||
</a-form-model>
|
||||
<a-button type="primary" @click="handlerSearch">查 询</a-button>
|
||||
<a-button @click="handlerReset">重 置</a-button>
|
||||
</a-space>
|
||||
</div>
|
||||
<div id="commonTable">
|
||||
<div style="margin-bottom: 16px">
|
||||
<a-button icon="plus" @click="hanlderAdd" type="primary" ghost>
|
||||
新增管理员
|
||||
</a-button>
|
||||
</div>
|
||||
<a-table :columns="columns" :data-source="tableData" :scroll="{ x: 2200 }" :pagination="pagination" @change="pageChange" :row-key="(record) => {return record.id}">
|
||||
<template slot="status" slot-scope="text,record">
|
||||
<a-switch :checked="record.status==2 ? false : true" checked-children="启用" un-checked-children="停用" @change="onChange(record)" />
|
||||
</template>
|
||||
<template slot="action" slot-scope="text,record">
|
||||
<a @click="alipayEdit(record)">编辑</a>
|
||||
</template>
|
||||
</a-table>
|
||||
</div>
|
||||
<a-drawer :title="activeMode == 1 ? '新增管理员':'编辑'" :visible="drawerVisible" @close="drawerClose" width="512">
|
||||
<div class="drawer-content">
|
||||
<a-form-model :rules="rules" :model="alipayForm">
|
||||
<a-row>
|
||||
<a-col :span="24">
|
||||
<a-form-model-item label="绑定小区" prop="communityId">
|
||||
<a-select v-model="alipayForm.communityId" placeholder="请选择小区">
|
||||
<a-select-option v-for="(item) in comList" :key="item.id" :value="item.id">{{item.name}}</a-select-option>
|
||||
</a-select>
|
||||
</a-form-model-item>
|
||||
<a-form-model-item label="用户名" prop="userName">
|
||||
<a-input v-model="alipayForm.userName" placeholder="请输入用户名"></a-input>
|
||||
</a-form-model-item>
|
||||
<a-form-model-item label="密码" prop="password">
|
||||
<a-input v-model="alipayForm.password" placeholder="请输入密码"></a-input>
|
||||
</a-form-model-item>
|
||||
<a-form-model-item label="真实姓名" prop="actualName">
|
||||
<a-input v-model="alipayForm.actualName" placeholder="请输入姓名"></a-input>
|
||||
</a-form-model-item>
|
||||
<a-form-model-item label="手机号" prop="tel">
|
||||
<a-input v-model="alipayForm.tel" placeholder="请输入手机号"></a-input>
|
||||
</a-form-model-item>
|
||||
<a-form-model-item label="性别" prop="sex">
|
||||
<a-select v-model="alipayForm.sex" placeholder="请选择性别">
|
||||
<a-select-option :value="1">男</a-select-option>
|
||||
<a-select-option :value="2">女</a-select-option>
|
||||
<a-select-option :value="3">保密</a-select-option>
|
||||
</a-select>
|
||||
</a-form-model-item>
|
||||
<a-form-model-item label="生日">
|
||||
<a-date-picker v-model="selTime" @change="timeChange" value-format="YYYY-MM-DD HH:mm:ss"></a-date-picker>
|
||||
</a-form-model-item>
|
||||
<a-form-model-item label="电子邮箱">
|
||||
<a-input v-model="alipayForm.email" placeholder="请输入邮箱"></a-input>
|
||||
</a-form-model-item>
|
||||
<a-form-model-item label="身份证号">
|
||||
<a-input v-model="alipayForm.idCard" placeholder="请输入身份证号"></a-input>
|
||||
</a-form-model-item>
|
||||
</a-col>
|
||||
</a-row>
|
||||
</a-form-model>
|
||||
</div>
|
||||
<div class="drawer-footer">
|
||||
<a-button @click="drawerClose">关闭</a-button>
|
||||
<a-button style="margin-left: 8px" v-if="activeMode == 1" @click="addComfirm" type="primary">确定</a-button>
|
||||
<a-button style="margin-left: 8px" v-else-if="activeMode == 2" @click="editConfirm" type="primary">确定</a-button>
|
||||
</div>
|
||||
</a-drawer>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {getAllCommunityInfo} from "@/api/basic/console"
|
||||
import {getSuperUserList, addSuperUser, findSuperUser,updateSuperUser, enableSuperUser} from "@/api/manage"
|
||||
import {columns,pagination, rules} from "./config"
|
||||
export default {
|
||||
name: 'PaymentSet',
|
||||
data() {
|
||||
return {
|
||||
form: {
|
||||
actualName: '',
|
||||
userName: '',
|
||||
tel: ''
|
||||
},
|
||||
alipayForm: {
|
||||
communityId: undefined,
|
||||
userName: '',
|
||||
password: '',
|
||||
actualName: '',
|
||||
tel: '',
|
||||
sex: undefined,
|
||||
birthday: undefined,
|
||||
email: '',
|
||||
idCard: ''
|
||||
},
|
||||
selTime: '',
|
||||
boundForm: {
|
||||
alipaySettingId: undefined,
|
||||
communityIds: []
|
||||
},
|
||||
tableData: [],
|
||||
columns: columns,
|
||||
pagination: pagination,
|
||||
rules: rules,
|
||||
//新建 编辑抽屉
|
||||
activeMode: 1, //1新增 2编辑
|
||||
activeId: undefined,
|
||||
drawerVisible: false,
|
||||
//绑定小区抽屉
|
||||
comList: [],
|
||||
boundVisible: false,
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
this.getApi();
|
||||
this.getData()
|
||||
},
|
||||
methods: {
|
||||
getApi() {
|
||||
getAllCommunityInfo().then(res => {
|
||||
let data = res.data;
|
||||
this.comList = data;
|
||||
})
|
||||
},
|
||||
getData() {
|
||||
let obj = Object.assign(this.form, {pageNum:this.pagination.current,size:this.pagination.pageSize});
|
||||
getSuperUserList(obj).then(res => {
|
||||
let data = res.data.rows;
|
||||
this.pagination.total = res.data.total;
|
||||
this.tableData = data;
|
||||
})
|
||||
},
|
||||
handlerSearch() {
|
||||
this.getData()
|
||||
},
|
||||
handlerReset() {
|
||||
this.form= {
|
||||
actualName: '',
|
||||
userName: '',
|
||||
tel: ''
|
||||
},
|
||||
this.getData()
|
||||
},
|
||||
hanlderAdd() {
|
||||
this.activeMode = 1;
|
||||
this.drawerVisible = true;
|
||||
},
|
||||
//确认添加
|
||||
addComfirm() {
|
||||
addSuperUser(this.alipayForm).then(res => {
|
||||
if (res.code === 200) {
|
||||
this.$message.success(res.msg);
|
||||
this.getData();
|
||||
this.drawerClose();
|
||||
} else {
|
||||
this.$message.error(res.msg);
|
||||
}
|
||||
})
|
||||
},
|
||||
//点击编辑的回调
|
||||
alipayEdit(record) {
|
||||
this.activeMode = 2;
|
||||
findSuperUser({manageUserId: record.id}).then(res => {
|
||||
let data = res.data;
|
||||
this.activeId = data.id;
|
||||
this.alipayForm.communityId = data.communityId;
|
||||
this.alipayForm.userName = data.userName;
|
||||
this.alipayForm.password = data.password;
|
||||
this.alipayForm.actualName = data.actualName;
|
||||
this.alipayForm.tel = data.tel;
|
||||
this.alipayForm.sex = data.sex;
|
||||
this.alipayForm.birthday = data.birthday;
|
||||
this.alipayForm.email = data.email;
|
||||
this.alipayForm.idCard = data.idCard;
|
||||
this.selTime = new Date(data.birthday).toLocaleString()
|
||||
})
|
||||
this.drawerVisible = true;
|
||||
},
|
||||
//分页
|
||||
pageChange(val) {
|
||||
this.pagination.pageSize = val.pageSize;
|
||||
this.pagination.current = val.current;
|
||||
this.getData()
|
||||
},
|
||||
//改变状态
|
||||
onChange(record) {
|
||||
let obj = {manageUserId: record.id}
|
||||
enableSuperUser(obj).then(res => {
|
||||
if (res.code === 200) {
|
||||
this.$message.success(res.msg);
|
||||
this.getData();
|
||||
} else {
|
||||
this.$message.error(res.msg);
|
||||
}
|
||||
})
|
||||
},
|
||||
//抽屉
|
||||
drawerClose() {
|
||||
this.drawerVisible = false;
|
||||
this.alipayForm = {
|
||||
communityId: undefined,
|
||||
userName: '',
|
||||
password: '',
|
||||
actualName: '',
|
||||
tel: '',
|
||||
sex: undefined,
|
||||
birthday: '',
|
||||
email: '',
|
||||
idCard: ''
|
||||
}
|
||||
},
|
||||
boundClose() {this.boundVisible = false},
|
||||
//编辑确认
|
||||
editConfirm() {
|
||||
let obj = Object.assign(this.alipayForm, {id: this.activeId})
|
||||
updateSuperUser(obj).then(res => {
|
||||
if (res.code === 200) {
|
||||
this.$message.success(res.msg);
|
||||
this.getData();
|
||||
this.drawerVisible = false;
|
||||
} else {
|
||||
this.$message.error(res.msg);
|
||||
}
|
||||
})
|
||||
},
|
||||
//修改时间
|
||||
timeChange(val) {
|
||||
this.alipayForm.birthday = val
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
|
||||
</style>
|
@ -1,202 +0,0 @@
|
||||
<template>
|
||||
<div>
|
||||
<div class="main">
|
||||
<div class="cardTitle">店铺主体信息</div>
|
||||
<a-divider />
|
||||
<div class="content">
|
||||
<a-descriptions title="基本信息" :column="3" v-if="infoList.type != 3">
|
||||
<a-descriptions-item label="企业名称">
|
||||
{{infoList.companyName}}
|
||||
</a-descriptions-item>
|
||||
<a-descriptions-item label="注册地址">
|
||||
{{infoList.registerAddress}}
|
||||
{{infoList.registerAddressDetail}}
|
||||
</a-descriptions-item>
|
||||
<a-descriptions-item label="经营范围">
|
||||
{{infoList.businessScope}}
|
||||
</a-descriptions-item>
|
||||
<a-descriptions-item label="统一社会信用代码"> {{infoList.uscc}} </a-descriptions-item>
|
||||
<a-descriptions-item label="营业期限">
|
||||
{{infoList.businessTermStart}} 至
|
||||
{{infoList.businessTermEnd == null ? '长期' : infoList.businessTermEnd}}
|
||||
</a-descriptions-item>
|
||||
<a-descriptions-item label="统一社会信用代码照片">{{infoList.usccImgList}}</a-descriptions-item>
|
||||
<a-descriptions-item label="其他资质照片">{{infoList.otherImgList}}</a-descriptions-item>
|
||||
</a-descriptions>
|
||||
<a-descriptions title="个人信息" :column="3">
|
||||
<a-descriptions-item label="头像面">
|
||||
<a v-for="(item, index) in infoList.authenticationPersonalInfoVo.idCardFrontImgList" :key="index"
|
||||
:href="'https://saas.kaidalai.cn/resource/merchant/'+item.url" target="_blank">
|
||||
点击查看
|
||||
</a>
|
||||
</a-descriptions-item>
|
||||
<a-descriptions-item label="国徽面">
|
||||
<a v-for="(item, index) in infoList.authenticationPersonalInfoVo.idCardBackImgList" :key="index"
|
||||
:href="'https://saas.kaidalai.cn/resource/merchant/'+item.url" target="_blank">
|
||||
点击查看
|
||||
</a>
|
||||
</a-descriptions-item>
|
||||
<a-descriptions-item label="证件类型">
|
||||
大陆身份证
|
||||
</a-descriptions-item>
|
||||
<a-descriptions-item label="法人姓名">
|
||||
{{infoList.authenticationPersonalInfoVo.name}}
|
||||
</a-descriptions-item>
|
||||
<a-descriptions-item label="法人证件号码">
|
||||
{{infoList.authenticationPersonalInfoVo.idNumber}}
|
||||
</a-descriptions-item>
|
||||
<a-descriptions-item label="出生日期">
|
||||
{{infoList.authenticationPersonalInfoVo.birthday}}
|
||||
</a-descriptions-item>
|
||||
<a-descriptions-item label="证件有效期">
|
||||
{{infoList.idValidityStart}} 至
|
||||
{{infoList.idValidityEnd == null ? '长期' : infoList.idValidityEnd}}
|
||||
</a-descriptions-item>
|
||||
<a-descriptions-item label="性别">
|
||||
{{infoList.authenticationPersonalInfoVo.sex == 1?'男':infoList.authenticationPersonalInfoVo.sex == 2?'女':'保密'}}
|
||||
</a-descriptions-item>
|
||||
<a-descriptions-item label="职业">
|
||||
{{infoList.authenticationPersonalInfoVo.occupation}}
|
||||
</a-descriptions-item>
|
||||
</a-descriptions>
|
||||
<a-descriptions title="经营信息" :column="3">
|
||||
<a-descriptions-item label="联系人"> {{infoList.authenticationOperateInfoVo.name}} </a-descriptions-item>
|
||||
<a-descriptions-item label="联系人号码">
|
||||
{{infoList.authenticationOperateInfoVo.tel}}
|
||||
</a-descriptions-item>
|
||||
<a-descriptions-item label="邮箱">{{infoList.authenticationOperateInfoVo.email}}</a-descriptions-item>
|
||||
<a-descriptions-item label="客服电话">{{infoList.authenticationOperateInfoVo.customerServiceTel}}</a-descriptions-item>
|
||||
<a-descriptions-item label="结算类型">支付宝</a-descriptions-item>
|
||||
<a-descriptions-item label="支付宝用户名">{{infoList.authenticationOperateInfoVo.alipayName}}</a-descriptions-item>
|
||||
<a-descriptions-item label="支付宝账号">{{infoList.authenticationOperateInfoVo.alipayAccount}}</a-descriptions-item>
|
||||
<a-descriptions-item label="经营地址">{{infoList.authenticationOperateInfoVo.operateAddressDetail}}</a-descriptions-item>
|
||||
<a-descriptions-item label="经营类目">
|
||||
<span v-for="(item,index) in infoList.authenticationOperateInfoVo.categoryList" :key="index">
|
||||
{{item.name}}
|
||||
</span>
|
||||
</a-descriptions-item>
|
||||
<a-descriptions-item label="经营资质" :span="3">
|
||||
<span v-for="(item,index) in infoList.authenticationOperateInfoVo.qualificationVoList" :key="index">
|
||||
<a v-for="(it,id) in item.qualificationInfoVoList" :href="'https://saas.kaidalai.cn/resource/merchant/'+it.url" :key="id">
|
||||
{{it.name}}
|
||||
</a>
|
||||
</span>
|
||||
</a-descriptions-item>
|
||||
<a-descriptions-item label="门店门头">
|
||||
<a v-for="(item, index) in infoList.authenticationOperateInfoVo.doorHeadImgList" :key="index"
|
||||
:href="'https://saas.kaidalai.cn/resource/merchant/'+item.url" target="_blank">
|
||||
点击查看
|
||||
</a>
|
||||
</a-descriptions-item>
|
||||
<a-descriptions-item label="门店内景">
|
||||
<a v-for="(item, index) in infoList.authenticationOperateInfoVo.indoorSceneImgList" :key="index"
|
||||
:href="'https://saas.kaidalai.cn/resource/merchant/'+item.url" target="_blank">
|
||||
点击查看
|
||||
</a>
|
||||
</a-descriptions-item>
|
||||
<a-descriptions-item label="收银台">
|
||||
<a v-for="(item, index) in infoList.authenticationOperateInfoVo.cashierImgList" :key="index"
|
||||
:href="'https://saas.kaidalai.cn/resource/merchant/'+item.url" target="_blank">
|
||||
点击查看
|
||||
</a>
|
||||
</a-descriptions-item>
|
||||
<a-descriptions-item label="补充信息">
|
||||
<a v-for="(item, index) in infoList.authenticationOperateInfoVo.otherImgList" :key="index"
|
||||
:href="'https://saas.kaidalai.cn/resource/merchant/'+item.url" target="_blank">
|
||||
点击查看
|
||||
</a>
|
||||
</a-descriptions-item>
|
||||
</a-descriptions>
|
||||
</div>
|
||||
</div>
|
||||
<div class="footer">
|
||||
<a-space style="margin-left: 70%">
|
||||
<a-button type="primary" @click="auditShow=true">审核</a-button>
|
||||
<a-button @click="cancel">取消</a-button>
|
||||
</a-space>
|
||||
</div>
|
||||
<a-modal
|
||||
title="审核"
|
||||
:visible="auditShow"
|
||||
@ok="auditSubmit"
|
||||
@cancel="auditCancel"
|
||||
>
|
||||
<div class="content">
|
||||
<a-form-model>
|
||||
<a-form-model-item label="审核类型">
|
||||
<a-select v-model="appForm.type" style="width: 120px">
|
||||
<a-select-option :value="1">
|
||||
通过
|
||||
</a-select-option>
|
||||
<a-select-option :value="2">
|
||||
驳回
|
||||
</a-select-option>
|
||||
</a-select>
|
||||
</a-form-model-item>
|
||||
<a-form-model-item label="审核留言" >
|
||||
<a-textarea v-model="appForm.reason" style="" :auto-size="{ minRows: 5, maxRows: 8 }"></a-textarea>
|
||||
</a-form-model-item>
|
||||
</a-form-model>
|
||||
</div>
|
||||
</a-modal>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {findCertiDetail,examineShop} from "@/api/manage/index.js"
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
appForm: {
|
||||
merchantShopId: undefined,
|
||||
type: 1,
|
||||
reason: ''
|
||||
},
|
||||
infoList: {},
|
||||
auditShow: false,
|
||||
};
|
||||
},
|
||||
mounted() {
|
||||
this.appForm.merchantShopId = this.$route.query.id;
|
||||
this.getData()
|
||||
},
|
||||
methods: {
|
||||
getData() {
|
||||
findCertiDetail({merchantShopId: this.$route.query.id}).then(res => {
|
||||
let data = res.data;
|
||||
this.infoList = data;
|
||||
})
|
||||
},
|
||||
cancel() {
|
||||
this.$router.go(-1);
|
||||
},
|
||||
auditSubmit(){
|
||||
examineShop(this.appForm).then((res) => {
|
||||
if (res.code === 200) {
|
||||
this.$message.success(res.msg);
|
||||
this.$router.go(-1);
|
||||
} else {
|
||||
this.$message.error(res.msg);
|
||||
}
|
||||
})
|
||||
this.auditShow = false
|
||||
},
|
||||
auditCancel(){
|
||||
this.auditShow = false
|
||||
}
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang="less" scoped>
|
||||
.content {
|
||||
padding-top: 0px;
|
||||
padding-bottom: 120px;
|
||||
}
|
||||
.content img {
|
||||
width: 142px;
|
||||
height: 107px;
|
||||
margin: 10px;
|
||||
cursor: pointer;
|
||||
}
|
||||
</style>
|
@ -1,68 +0,0 @@
|
||||
export const columns = [
|
||||
{
|
||||
title: "店铺编号",
|
||||
dataIndex: "code",
|
||||
width: "200",
|
||||
},
|
||||
{
|
||||
title: "店铺状态",
|
||||
dataIndex: "status",
|
||||
customRender: function (status) {
|
||||
switch (status) {
|
||||
case 1: return "未认证";
|
||||
case 2: return "审核中";
|
||||
case 3: return "已认证";
|
||||
default: break;
|
||||
}
|
||||
},
|
||||
width: "8%",
|
||||
},
|
||||
{
|
||||
title: "店铺名称",
|
||||
dataIndex: "name",
|
||||
width: "200",
|
||||
},
|
||||
{
|
||||
title: "店铺账号",
|
||||
dataIndex: "account",
|
||||
width: "200",
|
||||
},
|
||||
{
|
||||
title: "主体类型",
|
||||
dataIndex: "type",
|
||||
customRender: function (type) {
|
||||
switch (type) {
|
||||
case 1: return "个体户";
|
||||
case 2: return "企业";
|
||||
case 3: return "个人";
|
||||
default:
|
||||
break;
|
||||
}
|
||||
},
|
||||
width: "200",
|
||||
},
|
||||
{
|
||||
title: "企业名称",
|
||||
dataIndex: "companyName",
|
||||
width: "200",
|
||||
},
|
||||
{
|
||||
title: "经营类目",
|
||||
dataIndex: "categoryNameList",
|
||||
width: "200",
|
||||
scopedSlots: { customRender: "category" },
|
||||
},
|
||||
{
|
||||
title: "提交时间",
|
||||
dataIndex: "updateDate",
|
||||
width: "180",
|
||||
},
|
||||
{
|
||||
title: "操作",
|
||||
dataIndex: "action",
|
||||
key: "action",
|
||||
width: "180",
|
||||
fixed: "right",
|
||||
scopedSlots: { customRender: "action" },
|
||||
},
|
||||
]
|
@ -1,134 +0,0 @@
|
||||
<template>
|
||||
<div class="main">
|
||||
<!-- 标题 -->
|
||||
<div class="cardTitle">店铺审核管理</div>
|
||||
<!-- 搜索 -->
|
||||
<div class="search-box">
|
||||
<a-space size="large">
|
||||
<a-form-model layout="inline">
|
||||
<a-form-model-item label="店铺编号">
|
||||
<a-input v-model="searchForm.code" placeholder="请输入编号" />
|
||||
</a-form-model-item>
|
||||
<a-form-model-item label="店铺名称">
|
||||
<a-input v-model="searchForm.name" placeholder="请输入名称" />
|
||||
</a-form-model-item>
|
||||
<a-form-model-item label="店铺账号">
|
||||
<a-input v-model="searchForm.account" placeholder="请输入账号" />
|
||||
</a-form-model-item>
|
||||
<a-form-model-item label="主体类型">
|
||||
<a-select v-model="searchForm.type" style="width: 200px" placeholder="请选择类型">
|
||||
<a-select-option :value="1">个体户</a-select-option>
|
||||
<a-select-option :value="2">企业</a-select-option>
|
||||
<a-select-option :value="3">个人</a-select-option>
|
||||
</a-select>
|
||||
</a-form-model-item>
|
||||
<a-form-model-item label="企业名称">
|
||||
<a-input v-model="searchForm.companyName" placeholder="请输入账号" />
|
||||
</a-form-model-item>
|
||||
<a-form-model-item label="提交时间">
|
||||
<a-range-picker></a-range-picker>
|
||||
</a-form-model-item>
|
||||
<a-form-model-item>
|
||||
<a-button type="primary" @click="handlerSearch">查 询</a-button>
|
||||
<a-button @click="handlerReset">重 置</a-button>
|
||||
</a-form-model-item>
|
||||
</a-form-model>
|
||||
</a-space>
|
||||
</div>
|
||||
<!-- 表格 -->
|
||||
<div id="commonTable">
|
||||
<a-table
|
||||
:scroll="{ x: 2120 }"
|
||||
:columns="columns"
|
||||
:data-source="tableData"
|
||||
:pagination="pagination"
|
||||
@change="handleTableChange"
|
||||
:row-key="
|
||||
(record, index) => {
|
||||
return index;
|
||||
}
|
||||
"
|
||||
>
|
||||
<!-- 操作 -->
|
||||
<span slot="action" slot-scope="text,record">
|
||||
<a v-if="record.status != 3" @click="detail(record)">详情</a>
|
||||
</span>
|
||||
</a-table>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {getShopCertiList} from "@/api/manage/index.js"
|
||||
import {columns} from "./config"
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
// 搜索项
|
||||
searchForm: {
|
||||
code: "",
|
||||
name: '',
|
||||
account: '',
|
||||
type: undefined,
|
||||
companyName: '',
|
||||
updateDateStart: '',
|
||||
updateDateEnd: ''
|
||||
},
|
||||
// 列
|
||||
columns: columns,
|
||||
// 数据
|
||||
tableData: [],
|
||||
// 分页
|
||||
pagination: {
|
||||
current: 1,
|
||||
total: 0,
|
||||
pageSize: 10,
|
||||
showTotal: (total) => `共 ${total} 条`,
|
||||
showSizeChanger: true,
|
||||
showQuickJumper: true,
|
||||
},
|
||||
};
|
||||
},
|
||||
mounted() {
|
||||
this.getData();
|
||||
},
|
||||
methods: {
|
||||
getData() {
|
||||
let obj = Object.assign(this.searchForm, {size: this.pagination.pageSize,pageNum: this.pagination.current})
|
||||
getShopCertiList(obj).then(res => {
|
||||
let data = res.data;
|
||||
this.tableData = data.rows;
|
||||
this.pagination.total = data.total;
|
||||
})
|
||||
},
|
||||
detail(data){
|
||||
let id = data.id
|
||||
this.$router.push(
|
||||
{
|
||||
name:'certi_detail',
|
||||
query: {
|
||||
id: id
|
||||
}
|
||||
}
|
||||
)
|
||||
},
|
||||
//查询
|
||||
handlerSearch() {
|
||||
this.getData()
|
||||
},
|
||||
//重置
|
||||
handlerReset() {
|
||||
this.getData()
|
||||
},
|
||||
//分页
|
||||
handleTableChange(pagination) {
|
||||
this.pagination.pageSize = pagination.pageSize;
|
||||
this.pagination.current = pagination.current;
|
||||
this.getData();
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang="less" scoped>
|
||||
</style>>
|
@ -1,13 +0,0 @@
|
||||
<template>
|
||||
<div>goodCate</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
|
||||
</style>
|
@ -1,13 +0,0 @@
|
||||
<template>
|
||||
<div>goodList</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
|
||||
</style>
|
@ -1,13 +0,0 @@
|
||||
<template>
|
||||
<div>shopVerified</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
|
||||
</style>
|
@ -1,13 +0,0 @@
|
||||
<template>
|
||||
<div>shopList</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
|
||||
</style>
|
@ -1,13 +0,0 @@
|
||||
<template>
|
||||
<router-view></router-view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
|
||||
</style>
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Loading…
Reference in new issue