Commit cb660fa3 by 杨北旺

Merge branch 'master' of 192.168.3.233:yangming/scrm-micro-config

2 parents 39dbd6e4 f53b7e3d
.DS_Store .DS_Store
node_modules node_modules
/dist /dist
package-lock.json
# local env files # local env files
.env.local .env.local
.env.*.local .env.*.local
......
{ {
"name": "account", "name": "home",
"version": "0.1.0", "version": "0.1.0",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,
...@@ -1974,6 +1974,7 @@ ...@@ -1974,6 +1974,7 @@
"version": "1.8.5", "version": "1.8.5",
"resolved": "https://registry.npmjs.org/async-validator/-/async-validator-1.8.5.tgz", "resolved": "https://registry.npmjs.org/async-validator/-/async-validator-1.8.5.tgz",
"integrity": "sha512-tXBM+1m056MAX0E8TL2iCjg8WvSyXu0Zc8LNtYqrVeyoL3+esHRZ4SieE9fKQyyU09uONjnMEjrNBMqT0mbvmA==", "integrity": "sha512-tXBM+1m056MAX0E8TL2iCjg8WvSyXu0Zc8LNtYqrVeyoL3+esHRZ4SieE9fKQyyU09uONjnMEjrNBMqT0mbvmA==",
"dev": true,
"requires": { "requires": {
"babel-runtime": "6.x" "babel-runtime": "6.x"
} }
...@@ -2057,7 +2058,8 @@ ...@@ -2057,7 +2058,8 @@
"babel-helper-vue-jsx-merge-props": { "babel-helper-vue-jsx-merge-props": {
"version": "2.0.3", "version": "2.0.3",
"resolved": "https://registry.npmjs.org/babel-helper-vue-jsx-merge-props/-/babel-helper-vue-jsx-merge-props-2.0.3.tgz", "resolved": "https://registry.npmjs.org/babel-helper-vue-jsx-merge-props/-/babel-helper-vue-jsx-merge-props-2.0.3.tgz",
"integrity": "sha512-gsLiKK7Qrb7zYJNgiXKpXblxbV5ffSwR0f5whkPAaBAR4fhi6bwRZxX9wBlIc5M/v8CCkXUbXZL4N/nSE97cqg==" "integrity": "sha512-gsLiKK7Qrb7zYJNgiXKpXblxbV5ffSwR0f5whkPAaBAR4fhi6bwRZxX9wBlIc5M/v8CCkXUbXZL4N/nSE97cqg==",
"dev": true
}, },
"babel-loader": { "babel-loader": {
"version": "8.0.6", "version": "8.0.6",
...@@ -2116,6 +2118,7 @@ ...@@ -2116,6 +2118,7 @@
"version": "6.26.0", "version": "6.26.0",
"resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.26.0.tgz", "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.26.0.tgz",
"integrity": "sha1-llxwWGaOgrVde/4E/yM3vItWR/4=", "integrity": "sha1-llxwWGaOgrVde/4E/yM3vItWR/4=",
"dev": true,
"requires": { "requires": {
"core-js": "^2.4.0", "core-js": "^2.4.0",
"regenerator-runtime": "^0.11.0" "regenerator-runtime": "^0.11.0"
...@@ -2124,12 +2127,14 @@ ...@@ -2124,12 +2127,14 @@
"core-js": { "core-js": {
"version": "2.6.11", "version": "2.6.11",
"resolved": "https://registry.npmjs.org/core-js/-/core-js-2.6.11.tgz", "resolved": "https://registry.npmjs.org/core-js/-/core-js-2.6.11.tgz",
"integrity": "sha512-5wjnpaT/3dV+XB4borEsnAYQchn00XSgTAWKDkEqv+K8KevjbzmofK6hfJ9TZIlpj2N0xQpazy7PiRQiWHqzWg==" "integrity": "sha512-5wjnpaT/3dV+XB4borEsnAYQchn00XSgTAWKDkEqv+K8KevjbzmofK6hfJ9TZIlpj2N0xQpazy7PiRQiWHqzWg==",
"dev": true
}, },
"regenerator-runtime": { "regenerator-runtime": {
"version": "0.11.1", "version": "0.11.1",
"resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz", "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz",
"integrity": "sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg==" "integrity": "sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg==",
"dev": true
} }
} }
}, },
...@@ -3713,7 +3718,8 @@ ...@@ -3713,7 +3718,8 @@
"deepmerge": { "deepmerge": {
"version": "1.5.2", "version": "1.5.2",
"resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-1.5.2.tgz", "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-1.5.2.tgz",
"integrity": "sha512-95k0GDqvBjZavkuvzx/YqVLv/6YYa17fz6ILMSf7neqQITCPbnfEnQvEgMPNjH4kgobe7+WIL0yJEHku+H3qtQ==" "integrity": "sha512-95k0GDqvBjZavkuvzx/YqVLv/6YYa17fz6ILMSf7neqQITCPbnfEnQvEgMPNjH4kgobe7+WIL0yJEHku+H3qtQ==",
"dev": true
}, },
"default-gateway": { "default-gateway": {
"version": "5.0.5", "version": "5.0.5",
...@@ -4168,6 +4174,7 @@ ...@@ -4168,6 +4174,7 @@
"version": "2.15.6", "version": "2.15.6",
"resolved": "https://registry.npmjs.org/element-ui/-/element-ui-2.15.6.tgz", "resolved": "https://registry.npmjs.org/element-ui/-/element-ui-2.15.6.tgz",
"integrity": "sha512-rcYXEKd/j2G0AgficAOk1Zd1AsnHRkhmrK4yLHmNOiimU2JfsywgfKUjMoFuT6pQx0luhovj8lFjpE4Fnt58Iw==", "integrity": "sha512-rcYXEKd/j2G0AgficAOk1Zd1AsnHRkhmrK4yLHmNOiimU2JfsywgfKUjMoFuT6pQx0luhovj8lFjpE4Fnt58Iw==",
"dev": true,
"requires": { "requires": {
"async-validator": "~1.8.1", "async-validator": "~1.8.1",
"babel-helper-vue-jsx-merge-props": "^2.0.0", "babel-helper-vue-jsx-merge-props": "^2.0.0",
...@@ -5346,9 +5353,9 @@ ...@@ -5346,9 +5353,9 @@
} }
}, },
"glsx-components": { "glsx-components": {
"version": "1.1.8", "version": "1.1.2",
"resolved": "https://registry.npmmirror.com/glsx-components/download/glsx-components-1.1.8.tgz", "resolved": "https://registry.npmjs.org/glsx-components/-/glsx-components-1.1.2.tgz",
"integrity": "sha512-jjo1EY6tknpi5depW9u4xD70TAUs+6Vyzsi3PJf0v3aONA6nILKxK7Yu5jRiz//CG/H7S+Fd6AnYVnJ+QoQFjQ==", "integrity": "sha512-UX2qmTqiOJqo+MEiXfkPs2Okv4R+gby1gaRWd5NR0/VECUJqiZtG2jZFrjCgctDjhu4MoUld9ML3hhLARYaepg==",
"dev": true, "dev": true,
"requires": { "requires": {
"core-js": "^3.6.5", "core-js": "^3.6.5",
...@@ -5359,28 +5366,12 @@ ...@@ -5359,28 +5366,12 @@
"dependencies": { "dependencies": {
"core-js": { "core-js": {
"version": "3.19.1", "version": "3.19.1",
"resolved": "https://registry.npmmirror.com/core-js/download/core-js-3.19.1.tgz", "resolved": "https://registry.npmjs.org/core-js/-/core-js-3.19.1.tgz",
"integrity": "sha1-9vFzyuI+c6fYj6I7bp2jKSdsZkE=", "integrity": "sha512-Tnc7E9iKd/b/ff7GFbhwPVzJzPztGrChB8X8GLqoYGdEOG8IpLnK1xPyo3ZoO3HsK6TodJS58VGPOxA+hLHQMg==",
"dev": true "dev": true
} }
} }
}, },
"glsx-table": {
"version": "1.1.0",
"resolved": "https://registry.npmmirror.com/glsx-table/download/glsx-table-1.1.0.tgz",
"integrity": "sha1-rMn3yPkgwgmc5rydGJZXykySBNc=",
"requires": {
"element-ui": "^2.13.1",
"vue": "^2.6.12"
},
"dependencies": {
"vue": {
"version": "2.6.14",
"resolved": "https://registry.npmmirror.com/vue/download/vue-2.6.14.tgz",
"integrity": "sha1-5RqlJQJQ1Wmj+606ilpofWA24jU="
}
}
},
"graceful-fs": { "graceful-fs": {
"version": "4.2.3", "version": "4.2.3",
"resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.3.tgz", "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.3.tgz",
...@@ -7511,7 +7502,8 @@ ...@@ -7511,7 +7502,8 @@
"normalize-wheel": { "normalize-wheel": {
"version": "1.0.1", "version": "1.0.1",
"resolved": "https://registry.npmjs.org/normalize-wheel/-/normalize-wheel-1.0.1.tgz", "resolved": "https://registry.npmjs.org/normalize-wheel/-/normalize-wheel-1.0.1.tgz",
"integrity": "sha1-rsiGr/2wRQcNhWRH32Ls+GFG7EU=" "integrity": "sha1-rsiGr/2wRQcNhWRH32Ls+GFG7EU=",
"dev": true
}, },
"npm-run-path": { "npm-run-path": {
"version": "2.0.2", "version": "2.0.2",
...@@ -9256,7 +9248,8 @@ ...@@ -9256,7 +9248,8 @@
"resize-observer-polyfill": { "resize-observer-polyfill": {
"version": "1.5.1", "version": "1.5.1",
"resolved": "https://registry.npmjs.org/resize-observer-polyfill/-/resize-observer-polyfill-1.5.1.tgz", "resolved": "https://registry.npmjs.org/resize-observer-polyfill/-/resize-observer-polyfill-1.5.1.tgz",
"integrity": "sha512-LwZrotdHOo12nQuZlHEmtuXdqGoOD0OhaxopaNFxWzInpEgaLWoVuAMbTzixuosCx2nEG58ngzW3vxdWoxIgdg==" "integrity": "sha512-LwZrotdHOo12nQuZlHEmtuXdqGoOD0OhaxopaNFxWzInpEgaLWoVuAMbTzixuosCx2nEG58ngzW3vxdWoxIgdg==",
"dev": true
}, },
"resolve": { "resolve": {
"version": "1.14.1", "version": "1.14.1",
...@@ -10561,7 +10554,8 @@ ...@@ -10561,7 +10554,8 @@
"throttle-debounce": { "throttle-debounce": {
"version": "1.1.0", "version": "1.1.0",
"resolved": "https://registry.npmjs.org/throttle-debounce/-/throttle-debounce-1.1.0.tgz", "resolved": "https://registry.npmjs.org/throttle-debounce/-/throttle-debounce-1.1.0.tgz",
"integrity": "sha512-XH8UiPCQcWNuk2LYePibW/4qL97+ZQ1AN3FNXwZRBNPPowo/NRU5fAlDCSNBJIYCKbioZfuYtMhG4quqoJhVzg==" "integrity": "sha512-XH8UiPCQcWNuk2LYePibW/4qL97+ZQ1AN3FNXwZRBNPPowo/NRU5fAlDCSNBJIYCKbioZfuYtMhG4quqoJhVzg==",
"dev": true
}, },
"through": { "through": {
"version": "2.3.8", "version": "2.3.8",
......
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
}, },
"dependencies": { "dependencies": {
"axios": "^0.21.1", "axios": "^0.21.1",
"cnpm": "^7.1.0",
"core-js": "^3.4.4", "core-js": "^3.4.4",
"glsx-common": "^1.4.6", "glsx-common": "^1.4.6",
"glsx-components": "^1.1.8", "glsx-components": "^1.1.8",
...@@ -33,8 +34,7 @@ ...@@ -33,8 +34,7 @@
"node-sass": "^4.14.1", "node-sass": "^4.14.1",
"prettier": "^1.19.1", "prettier": "^1.19.1",
"sass-loader": "^8.0.0", "sass-loader": "^8.0.0",
"vue-cli-plugin-element": "^1.0.1", "vue-cli-plugin-element": "^1.0.1"
"vue-template-compiler": "^2.6.11"
}, },
"browserslist": [ "browserslist": [
"> 1%", "> 1%",
......
...@@ -6,21 +6,11 @@ ...@@ -6,21 +6,11 @@
> >
</div> </div>
<div class="follow-form"> <div class="follow-form">
<el-form <el-form :inline="true" :model="searchForm" class="follow-form-item" label-width="80px">
:inline="true"
:model="searchForm"
class="follow-form-item"
label-width="80px"
>
<el-row> <el-row>
<el-form-item size="small" label="关联企微"> <el-form-item size="small" label="关联企微">
<el-select v-model="searchForm.isRelevance" placeholder="请选择"> <el-select v-model="searchForm.isRelevance" placeholder="请选择">
<el-option <el-option v-for="item in optionsContact" :key="item.value" :label="item.label" :value="item.value"></el-option>
v-for="item in optionsContact"
:key="item.value"
:label="item.label"
:value="item.value"
></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item class="merchant-row" size="small"> <el-form-item class="merchant-row" size="small">
...@@ -61,74 +51,34 @@ ...@@ -61,74 +51,34 @@
</el-form-item> </el-form-item>
<el-form-item size="small" label="账户状态"> <el-form-item size="small" label="账户状态">
<el-select size="small" v-model="searchForm.status" placeholder="请选择"> <el-select size="small" v-model="searchForm.status" placeholder="请选择">
<el-option <el-option v-for="item in merchantStatus" :key="item.dictValue" :label="item.dictLabel" :value="item.dictValue"></el-option>
v-for="item in merchantStatus"
:key="item.dictValue"
:label="item.dictLabel"
:value="item.dictValue"
></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-row> </el-row>
<el-row> <el-row>
<el-form-item size="small" label="账户等级"> <el-form-item size="small" label="账户等级">
<el-select <el-select size="small" v-model="searchForm.merchantAccountLevel" placeholder="请选择">
size="small" <el-option v-for="item in accountLevel" :key="item.dictValue" :label="item.dictLabel" :value="item.dictValue"></el-option>
v-model="searchForm.merchantAccountLevel"
placeholder="请选择"
>
<el-option
v-for="item in accountLevel"
:key="item.dictValue"
:label="item.dictLabel"
:value="item.dictValue"
></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item class="merchant-wx" size="small"> <el-form-item class="merchant-wx" size="small">
<el-input <el-input size="small" v-model="searchForm.merchantName" placeholder="请输入商户名称/关联的企业微信名"></el-input>
size="small"
v-model="searchForm.merchantName"
placeholder="请输入商户名称/关联的企业微信名"
></el-input>
</el-form-item> </el-form-item>
<el-form-item size="small" style="float: right"> <el-form-item size="small" style="float: right">
<el-button type="primary" @click="handleSearch">查询</el-button> <el-button type="primary" @click="handleSearch">查询</el-button>
</el-form-item> </el-form-item>
</el-row> </el-row>
</el-form> </el-form>
<GLTable <GLTable ref="table" :layout="layout" :tableData="tableData" :tableTotal="tableTotal" :pageConf="pageConf" :tableParams="tableParams" @refreshTable="handleSearch">
ref="table"
:layout="layout"
:tableData="tableData"
:tableTotal="tableTotal"
:pageConf="pageConf"
:tableParams="tableParams"
@refreshTable="handleSearch"
>
<div slot="accountTypeNames" slot-scope="scope"> <div slot="accountTypeNames" slot-scope="scope">
<div <div class="accountType-row" v-for="(item, index) in scope.scope.accountTypeNames.split(',')" :key="index">
class="accountType-row"
v-for="(item, index) in scope.scope.accountTypeNames.split(',')"
:key="index"
>
{{ item }} {{ item }}
</div> </div>
</div> </div>
<template slot="auth-button" slot-scope="scope" :data="scope.scope"> <template slot="auth-button" slot-scope="scope" :data="scope.scope">
<el-button type="text" @click="handleLook(scope.scope)">查看</el-button> <el-button type="text" @click="handleLook(scope.scope)">查看</el-button>
<el-button <el-button type="text" @click="handleEdit(scope.scope)" v-if="$globalState.session.merchantId != scope.scope.merchantNo">修改</el-button>
type="text" <el-button type="text" @click="handleAdd(scope.scope)" v-if="scope.scope.status == 2 && scope.scope.merchantAccountLevel != 4">创建子商户/门店</el-button>
@click="handleEdit(scope.scope)"
v-if="$globalState.session.merchantId != scope.scope.merchantNo"
>修改</el-button
>
<el-button
type="text"
@click="handleAdd(scope.scope)"
v-if="scope.scope.status == 2 && scope.scope.merchantAccountLevel != 4"
>创建子商户/门店</el-button
>
</template> </template>
</GLTable> </GLTable>
</div> </div>
...@@ -138,46 +88,46 @@ ...@@ -138,46 +88,46 @@
<script> <script>
const optionsContact = [ const optionsContact = [
{ {
value: "", value: '',
label: "全部", label: '全部'
}, },
{ {
value: "1", value: '1',
label: "已关联", label: '已关联'
}, },
{ {
value: "2", value: '2',
label: "未关联", label: '未关联'
}, }
]; ]
export default { export default {
name: "index", name: 'index',
data() { data() {
return { return {
drawer: false, drawer: false,
direction: "rtl", direction: 'rtl',
searchForm: { searchForm: {
accountOrPhone: 1, accountOrPhone: 1
}, },
optionsContact, optionsContact,
accountLevel: [], accountLevel: [],
accountType: [], accountType: [],
merchantStatus: [], merchantStatus: [],
scope: { scope: {
scope: "", scope: ''
}, },
pageConf: { pageSize: "pageSize", pageNum: "pageNum", totalCount: "total" }, pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'total' },
// 表格参数 // 表格参数
tableParams: { tableParams: {
tableOption: { tableOption: {
width: "150px", width: '150px'
}, },
mutiSelectName: "merchant", mutiSelectName: 'merchant',
btnId: new Date().getTime() + parseInt(Math.random() * 1000), btnId: new Date().getTime() + parseInt(Math.random() * 1000),
tableColumns: [ tableColumns: [
{ {
label: "商户名", label: '商户名',
prop: "merchantName", prop: 'merchantName'
}, },
{ {
label: "关联的企业微信", label: "关联的企业微信",
...@@ -187,18 +137,18 @@ export default { ...@@ -187,18 +137,18 @@ export default {
}, },
}, },
{ {
label: "账户类型", label: '账户类型',
prop: "accountTypeNames", prop: 'accountTypeNames',
addHtml: "accountTypeNames", addHtml: 'accountTypeNames'
}, },
{ {
label: "登录账户", label: '登录账户',
prop: "merchantLoginAccount", prop: 'merchantLoginAccount'
}, },
{ {
label: "账户等级", label: '账户等级',
prop: "accountLevelName", prop: 'accountLevelName',
width: "80px", width: '80px'
}, },
{ {
label: "上级商户", label: "上级商户",
...@@ -208,9 +158,9 @@ export default { ...@@ -208,9 +158,9 @@ export default {
}, },
}, },
{ {
label: "账户状态", label: '账户状态',
prop: "statusName", prop: 'statusName',
width: "80px", width: '80px'
}, },
{ {
label: "联系人", label: "联系人",
...@@ -220,9 +170,9 @@ export default { ...@@ -220,9 +170,9 @@ export default {
}, },
}, },
{ {
label: "手机号", label: '手机号',
prop: "merchantLegalPersonPhone", prop: 'merchantLegalPersonPhone',
width: "120px", width: '120px'
}, },
{ {
label: "更新时间", label: "更新时间",
...@@ -230,71 +180,71 @@ export default { ...@@ -230,71 +180,71 @@ export default {
}, },
], ],
}, },
layout: "sizes, prev, pager, next, jumper, ->, total", layout: 'sizes, prev, pager, next, jumper, ->, total',
tableData: [], tableData: [],
tableTotal: 0, tableTotal: 0
}; }
}, },
methods: { methods: {
handleContact() { handleContact() {
this.$router.push("/baseInfo/relevance/"); this.$router.push('/baseInfo/relevance/')
}, },
handleLook(scope) { handleLook(scope) {
this.$router.push("/account/detailAccount/" + scope.id); this.$router.push('/account/detailAccount/' + scope.id)
}, },
handleEdit(scope) { handleEdit(scope) {
this.$router.push("/account/editAccount/" + scope.id); this.$router.push('/account/editAccount/' + scope.id)
}, },
handleAdd(scope) { handleAdd(scope) {
this.$router.push("/account/addAccount/" + scope.id); this.$router.push('/account/addAccount/' + scope.id)
}, },
findAllDictData(dictType) { findAllDictData(dictType) {
var params = { var params = {
dictType, dictType
}; }
this.$apis.store.findAllDictData(params).then((res) => { this.$apis.store.findAllDictData(params).then(res => {
if (res) { if (res) {
if (dictType == "account_level") { if (dictType == "account_level") {
this.accountLevel = [{ dictValue: "", dictLabel: "全部" }].concat(res); this.accountLevel = [{ dictValue: "", dictLabel: "全部" }].concat(res);
} }
if (dictType == "account_type") { if (dictType == 'account_type') {
this.accountType = res; this.accountType = res
} }
if (dictType == "merchant_status") { if (dictType == "merchant_status") {
this.merchantStatus = [{ dictValue: "", dictLabel: "全部" }].concat(res); this.merchantStatus = [{ dictValue: "", dictLabel: "全部" }].concat(res);
} }
} }
}); })
}, },
beforeSearchFn() { beforeSearchFn() {
return new Promise((resolve) => { return new Promise(resolve => {
// 调接口前,操作 // 调接口前,操作
resolve(); resolve()
}); })
}, },
handleSearch() { handleSearch() {
var params = { var params = {
...JSON.parse(JSON.stringify(this.searchForm)), ...JSON.parse(JSON.stringify(this.searchForm)),
pageSize: this.$refs.table.page.pageSize, pageSize: this.$refs.table.page.pageSize,
pageNum: this.$refs.table.page.pageNum, pageNum: this.$refs.table.page.pageNum
}; }
this.$apis.store.findMerchantByPage(params).then((res) => { this.$apis.store.findMerchantByPage(params).then(res => {
this.tableData = res.data; this.tableData = res.data
this.tableTotal = res.count; this.tableTotal = res.count
if (res.data && res.data.length == []) { if (res.data && res.data.length == []) {
this.$refs.table.setTableHeightFun(); this.$refs.table.setTableHeightFun()
}
})
} }
});
},
}, },
mounted() { mounted() {
this.handleSearch(); this.handleSearch()
this.findAllDictData("account_level"); this.findAllDictData('account_level')
this.findAllDictData("account_type"); this.findAllDictData('account_type')
this.findAllDictData("merchant_status"); this.findAllDictData('merchant_status')
}, }
}; }
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
...@@ -309,7 +259,7 @@ export default { ...@@ -309,7 +259,7 @@ export default {
position: relative; position: relative;
padding-left: 15px; padding-left: 15px;
&::before { &::before {
content: ""; content: '';
position: absolute; position: absolute;
width: 6px; width: 6px;
height: 6px; height: 6px;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!