Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx-web
/
glsx-oss-merchant-data
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit eb55d8ae
authored
Mar 29, 2019
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改分组添加父商户,有类型显示类型且不能选择
1 parent
0ee3ccac
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
7 deletions
src/views/customer/businessGroupDetail/addBusiness.vue
src/views/customer/businessGroupDetail/addBusiness.vue
View file @
eb55d8a
...
@@ -20,6 +20,7 @@
...
@@ -20,6 +20,7 @@
placeholder=
"请输入商户名称/商户号"
placeholder=
"请输入商户名称/商户号"
data-vv-as=
"商户名称/商户号"
data-vv-as=
"商户名称/商户号"
v-validate=
"'required'"
v-validate=
"'required'"
@
change=
"changeMerchant"
:remote-method=
"remoteList"
:remote-method=
"remoteList"
:loading=
"loading"
>
:loading=
"loading"
>
<gl-option
<gl-option
...
@@ -35,8 +36,9 @@
...
@@ -35,8 +36,9 @@
<gl-select
v-model=
"addForm.merchantType"
<gl-select
v-model=
"addForm.merchantType"
name=
"merchantType"
name=
"merchantType"
data-vv-as=
"商户类型"
data-vv-as=
"商户类型"
:disabled=
"disabledMerchant"
v-validate=
"'required'"
v-validate=
"'required'"
placeholder=
"请
搜索
"
>
placeholder=
"请
选择
"
>
<gl-option
<gl-option
v-for=
"item in merchantTypeList"
v-for=
"item in merchantTypeList"
:key=
"item.confId"
:key=
"item.confId"
...
@@ -56,7 +58,7 @@
...
@@ -56,7 +58,7 @@
v-validate="item.merchantId || item.merchantType ? 'required' : ''"
v-validate="item.merchantId || item.merchantType ? 'required' : ''"
:data-vv-as="`子商户`"
:data-vv-as="`子商户`"
clearable
clearable
@change="changeMerchant"
@change="changeMerchant
Child
"
placeholder="请输入商户名称/商户号"
placeholder="请输入商户名称/商户号"
:remote-method="remoteChildList"
:remote-method="remoteChildList"
:loading="childLoading">
:loading="childLoading">
...
@@ -115,6 +117,7 @@ export default {
...
@@ -115,6 +117,7 @@ export default {
return
{
return
{
tip
:
false
,
// 添加下一个子商户的提示
tip
:
false
,
// 添加下一个子商户的提示
isAdd
:
false
,
// 添加子商户,需填写商户提示
isAdd
:
false
,
// 添加子商户,需填写商户提示
disabledMerchant
:
false
,
addForm
:
{
addForm
:
{
merchantId
:
''
,
merchantId
:
''
,
merchantType
:
''
merchantType
:
''
...
@@ -137,13 +140,12 @@ export default {
...
@@ -137,13 +140,12 @@ export default {
this
.
$validator
.
errors
.
clear
()
this
.
$validator
.
errors
.
clear
()
}
,
}
,
'addForm.merchantId'
(
val
)
{
'addForm.merchantId'
(
val
)
{
if
(
!
val
)
{
this
.
addForm
.
merchantType
=
''
this
.
disabledMerchant
=
false
}
if
(
this
.
addList
.
length
!==
0
)
{
if
(
this
.
addList
.
length
!==
0
)
{
this
.
addList
.
forEach
(
item
=>
{
this
.
addList
.
forEach
(
item
=>
{
// for (var j in item)
{
// if (j == 'merchantId' || j == 'merchantType')
{
// item[j] = ''
//
}
//
}
item
[
'merchantId'
]
=
''
item
[
'merchantId'
]
=
''
item
[
'merchantType'
]
=
''
item
[
'merchantType'
]
=
''
}
)
}
)
...
@@ -175,6 +177,7 @@ export default {
...
@@ -175,6 +177,7 @@ export default {
request
.
req
(
params
).
then
(
res
=>
{
request
.
req
(
params
).
then
(
res
=>
{
notice
.
okTips
()
notice
.
okTips
()
this
.
showAddDialog
(
true
)
this
.
showAddDialog
(
true
)
this
.
disabledMerchant
=
false
}
).
catch
(
err
=>
{
}
).
catch
(
err
=>
{
notice
.
errorTips
(
err
)
notice
.
errorTips
(
err
)
}
)
}
)
...
@@ -277,6 +280,17 @@ export default {
...
@@ -277,6 +280,17 @@ export default {
}
}
}
,
}
,
changeMerchant
(
val
)
{
changeMerchant
(
val
)
{
if
(
val
)
{
this
.
businessList
.
forEach
(
item
=>
{
if
(
item
.
merchantId
==
val
&&
item
.
merchantType
!==
null
)
{
this
.
addForm
.
merchantType
=
item
.
merchantType
this
.
disabledMerchant
=
true
}
}
)
this
.
businessList
=
[]
}
}
,
changeMerchantChild
(
val
)
{
this
.
businessChildList
=
[]
this
.
businessChildList
=
[]
}
,
}
,
// 获取商户类型列表
// 获取商户类型列表
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment