Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
portalhtml
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
rex
portalhtml
Commits
8d755754
Commit
8d755754
authored
Oct 14, 2021
by
jiangqihao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
省,市列表
parent
a1f4c886
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
309 additions
and
13 deletions
+309
-13
lov-data.js
src/api/lov-data.js
+7
-4
customers.js
src/router/modules/customers.js
+10
-5
index.vue
src/views/customers/customers-add/index.vue
+1
-2
index.vue
src/views/customers/customers-overview/index.vue
+2
-1
constant.js
src/views/customers/municipal-agentList/constant.js
+79
-0
index.vue
src/views/customers/municipal-agentList/index.vue
+64
-0
constant.js
src/views/customers/provincial-agentList/constant.js
+79
-0
index.vue
src/views/customers/provincial-agentList/index.vue
+65
-0
index.vue
src/views/login/index.vue
+2
-1
No files found.
src/api/lov-data.js
View file @
8d755754
...
...
@@ -181,22 +181,25 @@ export default {
Status
:
{
label
:
'状态'
,
type
:
'input'
,
layout
:
12
layout
:
12
,
vif
:
false
,
},
Name
:
{
label
:
'公司名称'
,
type
:
'input'
,
layout
:
1
2
layout
:
1
4
},
OperName
:
{
label
:
'法人'
,
type
:
'input'
,
layout
:
12
layout
:
12
,
vif
:
false
,
},
CreditCode
:
{
label
:
'社会统一信用代码'
,
type
:
'input'
,
layout
:
12
layout
:
12
,
vif
:
false
,
},
}
}
...
...
src/router/modules/customers.js
View file @
8d755754
...
...
@@ -48,12 +48,17 @@ const customersRouter = {
hidden
:
true
,
},
{
path
:
'/regular'
,
component
:
()
=>
import
(
'@/views/customers/regular-customers'
),
name
:
'RegularCustomers'
,
meta
:
{
title
:
'regularCustomers'
}
path
:
'/Provincial-agentList'
,
component
:
()
=>
import
(
'@/views/customers/provincial-agentList'
),
name
:
'ProvincialAgentList'
,
meta
:
{
title
:
'省级代理商'
}
},
{
path
:
'/Municipal-agentList'
,
component
:
()
=>
import
(
'@/views/customers/municipal-agentList'
),
name
:
'MunicipalAgentList'
,
meta
:
{
title
:
'市级代理商'
}
},
// {
// path: 'resource',
// meta: { title: '资源池管理' },
...
...
src/views/customers/customers-add/index.vue
View file @
8d755754
...
...
@@ -229,11 +229,10 @@ export default {
'formData.ExtSocialUnifiedCreditCode_SDK'
:
{
handler
(
newValue
)
{
console
.
log
(
"单个属性监听"
,
newValue
)
this
.
sections
[
0
].
formDesc
.
ExtRegisteredCapital_SDK
.
default
=
qccGetOne
({
searchKey
:
newValue
}).
then
(
res
=>
{
this
.
sections
[
0
].
formDesc
.
ExtRegisteredCapital_SDK
.
default
=
res
.
results
.
Result
.
RegistCapi
})
}
}
}
},
methods
:
{
...
...
src/views/customers/customers-overview/index.vue
View file @
8d755754
...
...
@@ -57,7 +57,8 @@ export default {
// 添加
handleAdd
()
{
this
.
$router
.
push
({
path
:
'/customersAdd'
})
}
},
handleSelectionChange
()
{}
}
}
</
script
>
...
...
src/views/customers/municipal-agentList/constant.js
0 → 100644
View file @
8d755754
import
i18n
from
'@/lang'
import
{
customer
}
from
'@/api/customers'
const
tableConfig
=
{
url
:
customer
.
searchUrl
,
defaultColumns
:
{
minWidth
:
120
,
showOverflowTooltip
:
true
,
align
:
'center'
},
columns
:
{
ExtCustomerID_SDK
:
{
label
:
'代理商编码'
,
type
:
'input'
},
Name
:
{
label
:
'公司名称'
,
type
:
'input'
,
showInSearch
:
true
,
},
ExtCorporateName_SDK
:
{
label
:
'法定人代表'
,
type
:
'input'
},
ExtSocialUnifiedCreditCode_SDK
:
{
label
:
'统一社会信用代码'
,
type
:
'input'
},
CreationOn
:
{
label
:
'注册时间'
,
type
:
'input'
},
// Ext_QuoteOppotunity_KUT: {
// type: 'input',
// label: '代理商类型',
// showInSearch: true
// },
handle
:
{
label
:
'操作'
,
fixed
:
'right'
,
minWidth
:
100
,
hideInFilter
:
true
,
renderItem
:
(
h
,
scope
,
listeners
)
=>
{
return
h
(
'div'
,
[
h
(
'el-button'
,
{
on
:
{
click
:
(
e
)
=>
listeners
.
handleEdit
(
scope
.
row
,
'edit'
)
},
props
:
{
icon
:
'el-icon-edit-outline'
,
type
:
'text'
}
},
i18n
.
t
(
'table.edit'
)),
// h('el-button', {
// on: {
// click: (e) => listeners.handleTakeEffect(scope.row, 'takeEffect')
// },
// props: {
// icon: 'el-icon-circle-check',
// type: 'text'
// }
// }, i18n.t('table.takeEffect')),
// h('el-button', {
// on: {
// click: (e) => listeners.handleInvalid(scope.row, 'invalid')
// },
// props: {
// icon: 'el-icon-circle-check',
// type: 'text'
// }
// }, i18n.t('table.invalid'))
])
}
}
}
}
export
default
tableConfig
src/views/customers/municipal-agentList/index.vue
0 → 100644
View file @
8d755754
<
template
>
<div
class=
"app-container"
>
<ele-search
:columns=
"tableConfig.columns"
@
handleSearch=
"handleSearch"
@
handleReset=
"handleReset"
@
handleFilter=
"handleFilter"
/>
<div
class=
"table-container"
>
<ele-table
ref=
"eleTable"
v-bind=
"tableConfig"
:expand-params=
"expandParams"
:listeners=
"tableListeners"
:initialParams=
"initialParams"
@
handleSelectionChange=
"handleSelectionChange"
/>
</div>
</div>
</
template
>
<
script
>
import
constant
from
'./constant'
import
tableMixin
from
'@/mixins/table'
export
default
{
mixins
:
[
tableMixin
],
inject
:
[
'reload'
],
data
()
{
return
{
expandParams
:
{},
// 筛选条件
tableListeners
:
{},
// 事件监听对象,供ele-table内部调用
tableConfig
:
constant
,
initialParams
:
{
extCustomerType_SDK
:
'111'
}
}
},
created
()
{
this
.
tableListeners
=
{
// handleDetails: this.handleDetails, // 添加
// handleTakeEffect: this.handleTakeEffect, // 生效
handleEdit
:
this
.
handleEdit
,
// 编辑
// handleInvalid: this.handleInvalid // 失效
}
},
methods
:
{
// 编辑
handleEdit
()
{
console
.
log
(
"编辑"
)
},
// 添加
handleAdd
()
{
this
.
$router
.
push
({
path
:
'/customersAdd'
})
},
handleSelectionChange
()
{
}
}
}
</
script
>
<
style
>
</
style
>
src/views/customers/provincial-agentList/constant.js
0 → 100644
View file @
8d755754
import
i18n
from
'@/lang'
import
{
customer
}
from
'@/api/customers'
const
tableConfig
=
{
url
:
customer
.
searchUrl
,
defaultColumns
:
{
minWidth
:
120
,
showOverflowTooltip
:
true
,
align
:
'center'
},
columns
:
{
ExtCustomerID_SDK
:
{
label
:
'代理商编码'
,
type
:
'input'
},
Name
:
{
label
:
'公司名称'
,
type
:
'input'
,
showInSearch
:
true
,
},
ExtCorporateName_SDK
:
{
label
:
'法定人代表'
,
type
:
'input'
},
ExtSocialUnifiedCreditCode_SDK
:
{
label
:
'统一社会信用代码'
,
type
:
'input'
},
CreationOn
:
{
label
:
'注册时间'
,
type
:
'input'
},
// Ext_QuoteOppotunity_KUT: {
// type: 'input',
// label: '代理商类型',
// showInSearch: true
// },
handle
:
{
label
:
'操作'
,
fixed
:
'right'
,
minWidth
:
100
,
hideInFilter
:
true
,
renderItem
:
(
h
,
scope
,
listeners
)
=>
{
return
h
(
'div'
,
[
h
(
'el-button'
,
{
on
:
{
click
:
(
e
)
=>
listeners
.
handleEdit
(
scope
.
row
,
'edit'
)
},
props
:
{
icon
:
'el-icon-edit-outline'
,
type
:
'text'
}
},
i18n
.
t
(
'table.edit'
)),
// h('el-button', {
// on: {
// click: (e) => listeners.handleTakeEffect(scope.row, 'takeEffect')
// },
// props: {
// icon: 'el-icon-circle-check',
// type: 'text'
// }
// }, i18n.t('table.takeEffect')),
// h('el-button', {
// on: {
// click: (e) => listeners.handleInvalid(scope.row, 'invalid')
// },
// props: {
// icon: 'el-icon-circle-check',
// type: 'text'
// }
// }, i18n.t('table.invalid'))
])
}
}
}
}
export
default
tableConfig
src/views/customers/provincial-agentList/index.vue
0 → 100644
View file @
8d755754
<
template
>
<div
class=
"app-container"
>
<ele-search
:columns=
"tableConfig.columns"
@
handleSearch=
"handleSearch"
@
handleReset=
"handleReset"
@
handleFilter=
"handleFilter"
/>
<div
class=
"table-container"
>
<ele-table
ref=
"eleTable"
v-bind=
"tableConfig"
:expand-params=
"expandParams"
:listeners=
"tableListeners"
:initialParams=
"initialParams"
@
handleSelectionChange=
"handleSelectionChange"
/>
</div>
</div>
</
template
>
<
script
>
import
constant
from
'./constant'
import
tableMixin
from
'@/mixins/table'
export
default
{
mixins
:
[
tableMixin
],
inject
:
[
'reload'
],
data
()
{
return
{
expandParams
:
{},
// 筛选条件
tableListeners
:
{},
// 事件监听对象,供ele-table内部调用
tableConfig
:
constant
,
initialParams
:
{
extCustomerType_SDK
:
'101'
}
}
},
created
()
{
this
.
tableListeners
=
{
// handleDetails: this.handleDetails, // 添加
// handleTakeEffect: this.handleTakeEffect, // 生效
handleEdit
:
this
.
handleEdit
,
// 编辑
// handleInvalid: this.handleInvalid // 失效
}
},
methods
:
{
// 编辑
handleEdit
()
{
console
.
log
(
"编辑"
)
},
// 添加
handleAdd
()
{
this
.
$router
.
push
({
path
:
'/customersAdd'
})
},
handleSelectionChange
()
{
}
}
}
</
script
>
<
style
>
</
style
>
src/views/login/index.vue
View file @
8d755754
...
...
@@ -180,9 +180,10 @@ export default {
extPassword_SDK
:
this
.
loginForm
.
password
}
this
.
$store
.
dispatch
(
'user/login'
,
params
)
.
then
(
()
=>
{
.
then
(
res
=>
{
this
.
$router
.
push
({
path
:
this
.
redirect
||
'/'
,
query
:
this
.
otherQuery
})
this
.
loading
=
false
console
.
log
(
res
)
})
.
catch
(()
=>
{
this
.
loading
=
false
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment