1、新增商城
2、新增自营
This commit is contained in:
+6
-11
@@ -27,7 +27,7 @@ export default {
|
||||
// 查询表单数据源,可在此设置默认值
|
||||
formData: {
|
||||
dcloud_appid: "",
|
||||
type: 2
|
||||
type: 1
|
||||
//allow_login_background : true,
|
||||
},
|
||||
// 查询表单的字段规则 fieldName:指定数据库字段名,不填默认等于key
|
||||
@@ -39,26 +39,21 @@ export default {
|
||||
},
|
||||
table1: {
|
||||
// 表格数据请求地址
|
||||
action: "admin/fadada/sys/getList",
|
||||
action: "admin/system/user/sys/getList",
|
||||
// 表格字段显示规则
|
||||
columns: [
|
||||
{key: "user.mobile", title: "手机号", type: "text", width: 120, defaultValue: ""},
|
||||
{key: "mobile", title: "手机号", type: "text", width: 120, defaultValue: ""},
|
||||
// {
|
||||
// key: "", title: "认证类型", type: "text", width: 120, formatter: (val, row, column, index) => {
|
||||
// return parseInt(row.type) === 1 ? '个人' : '企业'
|
||||
// }
|
||||
// },
|
||||
{
|
||||
key: "mobile", title: "个人/企业信息", type: "html", defaultValue: "",
|
||||
key: "mobile", title: "个人信息", type: "html", defaultValue: "",
|
||||
formatter: (val, row, column, index) => {
|
||||
let str
|
||||
if (parseInt(row.type) === 1) {
|
||||
str = `<view>${row.person.personName}</view>`
|
||||
str += `<view>${row.person.mobile}</view>`
|
||||
} else {
|
||||
str = `<view>${row.company.companyName}</view>`
|
||||
str += `<view>${row.manager.personName}/${row.manager.mobile}</view>`
|
||||
}
|
||||
str = `<view>${row.person.personName}</view>`
|
||||
// str += `<view>${row.person.mobile}</view>`
|
||||
return str;
|
||||
}
|
||||
},
|
||||
|
||||
+118
-20
@@ -14,7 +14,37 @@
|
||||
:selection="true"
|
||||
:row-no="true"
|
||||
:pagination="true"
|
||||
></vk-data-table>
|
||||
>
|
||||
<template v-slot:action="{ row, column, index }">
|
||||
<el-button size="mini" @click.native="doShowInfo(row)">详情</el-button>
|
||||
<template v-if="row.authStatus === 0">
|
||||
<el-button type="success" size="mini" @click.native="changeStatus(row._id, 1)">通过</el-button>
|
||||
<el-button type="danger" size="mini" @click.native="refuse(row._id)">拒绝</el-button>
|
||||
</template>
|
||||
</template>
|
||||
<template v-slot:isCoop="{ row, column, index }">
|
||||
<el-switch v-model="row.isCoop" size="mini" @change="changeIsCoop(row._id)" :active-value="1"
|
||||
:inactive-value="0"/>
|
||||
</template>
|
||||
</vk-data-table>
|
||||
<vk-data-dialog
|
||||
v-model="showInfo"
|
||||
:title="title"
|
||||
width="60%"
|
||||
top="14vh"
|
||||
center
|
||||
:close-on-click-modal="true"
|
||||
>
|
||||
<vk-data-detail-table
|
||||
:data="info"
|
||||
:columns="infoColumns"
|
||||
size="medium"
|
||||
label-width="150px"
|
||||
></vk-data-detail-table>
|
||||
<template v-slot:footer>
|
||||
<el-button @click="showInfo = false">关闭</el-button>
|
||||
</template>
|
||||
</vk-data-dialog>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -23,6 +53,38 @@ export default {
|
||||
name: "index",
|
||||
data() {
|
||||
return {
|
||||
showInfo: false,
|
||||
info: null,
|
||||
title: '',
|
||||
infoColumns: [
|
||||
{key: "company.companyName", title: "企业名称", type: "text"},
|
||||
{key: "company.organization", title: "统一社会信用代码", type: "text"},
|
||||
{key: "company.companyName", title: "公司所在地", type: "text"},
|
||||
{key: "company.companyName", title: "详细地址", type: "text"},
|
||||
{key: "company.mailAddress", title: "有效通信地址", type: "text"},
|
||||
{key: "company.contactEmail", title: "有效邮箱地址", type: "text"},
|
||||
{key: "company.companyAccount", title: "对公账号", type: "text"},
|
||||
{key: "company.companyBankName", title: "开户行", type: "text"},
|
||||
{key: "company.personAccount", title: "个人账号", type: "text"},
|
||||
{key: "company.personBankName", title: "个人开户行", type: "text"},
|
||||
{key: "company.accountName", title: "户名", type: "text"},
|
||||
{key: "company.personBankName", title: "个人开户行", type: "text"},
|
||||
{key: "company.organizationPath", title: "营业执照", type: "image"},
|
||||
{key: "company.businessType", title: "经营类目", type: "text"},
|
||||
{key: "company.invoiceInfo", title: "上开票资料", type: "image"},
|
||||
{key: "company.taxType", title: "纳税人类型", type: "text"},
|
||||
{key: "company.taxImage", title: "纳税人资格", type: "image"},
|
||||
{key: "manager.personName", title: "代理人类型", type: "text"},
|
||||
{
|
||||
key: "manager.certType", title: "证件类型", type: "html", formatter: (val, row, column, index) => {
|
||||
return `<div>${row.certType === 0 ? '身份证' : '护照'}</div>`;
|
||||
}
|
||||
},
|
||||
{key: "manager.idCard", title: "代理人证件号", type: "text"},
|
||||
{key: "manager.mobile", title: "代理人电话", type: "text"},
|
||||
{key: "manager.headPhotoPath", title: "身份证正面", type: "image"},
|
||||
{key: "manager.backgroundIdCardPath", title: "身份证反面", type: "image"},
|
||||
],
|
||||
queryForm1: {
|
||||
// 查询表单数据源,可在此设置默认值
|
||||
formData: {
|
||||
@@ -39,30 +101,33 @@ export default {
|
||||
},
|
||||
table1: {
|
||||
// 表格数据请求地址
|
||||
action: "admin/fadada/sys/getList",
|
||||
action: "admin/system/user/sys/getList",
|
||||
// 表格字段显示规则
|
||||
columns: [
|
||||
{key: "user.mobile", title: "手机号", type: "text", width: 120, defaultValue: ""},
|
||||
// {key: "user.mobile", title: "手机号", type: "text", width: 120, defaultValue: ""},
|
||||
{key: "company.companyName", title: "企业名称", type: "text"},
|
||||
{key: "company.organization", title: "统一社会信用代码", type: "text"},
|
||||
{key: "company.mailAddress", title: "有效通信地址", type: "text"},
|
||||
{
|
||||
key: "", title: "认证类型", type: "text", width: 120, formatter: (val, row, column, index) => {
|
||||
return parseInt(row.type) === 1 ? '个人' : '企业'
|
||||
key: "", title: "代理人", type: "html", formatter: (val, row, column, index) => {
|
||||
let str
|
||||
str = `<view>${row.manager.personName}</view>`
|
||||
// str += `<view>${row.person.mobile}</view>`
|
||||
return str;
|
||||
}
|
||||
},
|
||||
// {
|
||||
// key: "mobile", title: "个人/企业信息", type: "html", defaultValue: "",
|
||||
// formatter: (val, row, column, index) => {
|
||||
// let str
|
||||
// if (parseInt(row.type) === 1) {
|
||||
// str = `<view>${row.person.personName}</view>`
|
||||
// str += `<view>${row.person.mobile}</view>`
|
||||
// } else {
|
||||
// str = `<view>${row.company.companyName}</view>`
|
||||
// str += `<view>${row.manager.personName}/${row.manager.mobile}</view>`
|
||||
// }
|
||||
// return str;
|
||||
// }
|
||||
// },
|
||||
{key: "authenticationSubmitTime", title: "认证时间", type: "time", width: 160, sortable: "custom"},
|
||||
{key: "authTime", title: "认证时间", type: "time", width: 160, sortable: "custom"},
|
||||
{
|
||||
key: "authStatus", title: "认证状态", type: "tag", data: [
|
||||
{value: 0, label: "未认证", tagType: "warning"},
|
||||
{value: 1, label: "已认证", tagType: "success"},
|
||||
{value: 2, label: "认证失败", tagType: "danger"},
|
||||
]
|
||||
},
|
||||
{key: "isCoop", title: "是否合作/联营单位", type: "html"},
|
||||
{
|
||||
key: "action", title: "操作", type: "html"
|
||||
},
|
||||
],
|
||||
// 多选框选中的值
|
||||
multipleSelection: [],
|
||||
@@ -75,6 +140,39 @@ export default {
|
||||
search() {
|
||||
this.$refs.table1.query();
|
||||
},
|
||||
async refuse(id) {
|
||||
const {action, value} = await this.$prompt('拒绝理由', {
|
||||
showInput: true
|
||||
});
|
||||
if (action === 'confirm') {
|
||||
this.changeStatus(id, 2, value)
|
||||
}
|
||||
},
|
||||
changeStatus(id, authStatus, refuseReason = null) {
|
||||
vk.callFunction({
|
||||
url: 'admin/system/user/sys/changeStatus',
|
||||
data: {
|
||||
id, authStatus, refuseReason
|
||||
}
|
||||
}).then(() => {
|
||||
this.$refs.table1.refresh()
|
||||
})
|
||||
},
|
||||
doShowInfo(info) {
|
||||
this.info = info
|
||||
this.title = '详情'
|
||||
this.showInfo = true
|
||||
},
|
||||
changeIsCoop(id) {
|
||||
vk.callFunction({
|
||||
url: 'admin/system/user/sys/changeCoop',
|
||||
data: {
|
||||
id
|
||||
}
|
||||
}).then(() => {
|
||||
this.$refs.table1.refresh()
|
||||
})
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
Reference in New Issue
Block a user