Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
h5
/
account
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 7aae89d0
authored
Aug 13, 2021
by
cwq0219
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
商户管理
1 parent
36189bae
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
6 deletions
html/merchant/edit.html
html/merchant/edit.html
View file @
7aae89d
...
@@ -89,6 +89,16 @@
...
@@ -89,6 +89,16 @@
width
:
16px
;
width
:
16px
;
border-radius
:
50%
;
border-radius
:
50%
;
}
}
.edit-box
#accountTypeEl
.layui-form-checked
span
,
#accountTypeEl
.layui-form-checked
:hover
span
{
background-color
:
#1989FA
!important
;
}
.edit-box
#accountTypeEl
.layui-form-checked
i
,
#accountTypeEl
.layui-form-checked
:hover
i
{
color
:
#1989FA
!important
;
}
</style>
</style>
<title>
商户编辑
</title>
<title>
商户编辑
</title>
</head>
</head>
...
@@ -349,6 +359,7 @@
...
@@ -349,6 +359,7 @@
var
step
=
1
var
step
=
1
var
merchantId
=
null
var
merchantId
=
null
var
parentMerchantId
=
null
var
parentMerchantId
=
null
var
accountTypeVisible
=
false
// 是否工厂
// 是否工厂
var
isFactory
=
true
var
isFactory
=
true
var
parentInfo
=
{}
var
parentInfo
=
{}
...
@@ -410,7 +421,6 @@
...
@@ -410,7 +421,6 @@
lay
(
'#endDate'
).
html
(
value
)
lay
(
'#endDate'
).
html
(
value
)
}
}
})
})
init
()
init
()
// helper.store.set('merchantMapObj', {
// helper.store.set('merchantMapObj', {
...
@@ -485,6 +495,13 @@
...
@@ -485,6 +495,13 @@
}
}
}
}
})
})
if
(
!
params
.
accounttypeId
)
{
layer
.
msg
(
'账户类型不能为空'
,
{
icon
:
5
,
anim
:
6
})
return
false
}
var
elList
=
$
(
'.business-scope-cust'
)
var
elList
=
$
(
'.business-scope-cust'
)
var
tempList
=
[]
var
tempList
=
[]
$
.
each
(
elList
,
function
(
index
,
item
)
{
$
.
each
(
elList
,
function
(
index
,
item
)
{
...
@@ -519,9 +536,6 @@
...
@@ -519,9 +536,6 @@
}
}
console
.
log
(
editLevel
)
console
.
log
(
editLevel
)
console
.
log
(
params
)
console
.
log
(
params
)
layer
.
msg
(
'操作成功'
,
{
icon
:
1
})
request
(
params
,
function
(
res
)
{
request
(
params
,
function
(
res
)
{
console
.
log
(
res
)
console
.
log
(
res
)
// authorityTree
// authorityTree
...
@@ -704,7 +718,7 @@
...
@@ -704,7 +718,7 @@
editLevel
=
qs
(
'editLevel'
)
editLevel
=
qs
(
'editLevel'
)
isFactory
=
(
qs
(
'isFactory'
)
==
'true'
)
isFactory
=
(
qs
(
'isFactory'
)
==
'true'
)
step
=
qs
(
'step'
)
step
=
qs
(
'step'
)
if
(
step
==
1
)
{
if
(
step
==
1
)
{
treeIsShow
(
false
)
treeIsShow
(
false
)
}
else
{
}
else
{
...
@@ -723,6 +737,8 @@
...
@@ -723,6 +737,8 @@
$
(
'#preStep'
).
remove
()
$
(
'#preStep'
).
remove
()
if
(
editLevel
==
3
)
{
if
(
editLevel
==
3
)
{
$
(
'#firstBtn'
).
text
(
'确定'
)
$
(
'#firstBtn'
).
text
(
'确定'
)
$
(
'#validPeriodEl'
).
attr
(
'disabled'
,
true
)
accountTypeVisible
=
true
$
(
'#accountLevelEl'
).
attr
(
'disabled'
,
true
)
$
(
'#accountLevelEl'
).
attr
(
'disabled'
,
true
)
}
else
{
}
else
{
getBusiScope
()
getBusiScope
()
...
@@ -992,7 +1008,11 @@
...
@@ -992,7 +1008,11 @@
if
(
item
.
dictValue
==
parseInt
(
parentLevelList
[
k
]))
{
if
(
item
.
dictValue
==
parseInt
(
parentLevelList
[
k
]))
{
var
optionEl
=
$
(
'<input type="checkbox" class="accounttypeId" name="accountType['
+
item
var
optionEl
=
$
(
'<input type="checkbox" class="accounttypeId" name="accountType['
+
item
.
dictValue
+
']" title='
+
.
dictValue
+
']" title='
+
item
.
dictLabel
+
' value="'
+
item
.
dictValue
+
'">'
)
item
.
dictLabel
+
' value="'
+
item
.
dictValue
+
'">'
)
if
(
accountTypeVisible
)
{
optionEl
.
attr
(
'disabled'
,
true
)
}
// 修改-回显
// 修改-回显
if
(
editLevel
==
3
)
{
if
(
editLevel
==
3
)
{
for
(
var
i
=
0
;
i
<=
checkedList
.
length
;
i
++
)
{
for
(
var
i
=
0
;
i
<=
checkedList
.
length
;
i
++
)
{
...
@@ -1011,6 +1031,9 @@
...
@@ -1011,6 +1031,9 @@
var
optionEl
=
$
(
'<input type="checkbox" class="accounttypeId" name="accountType['
+
item
var
optionEl
=
$
(
'<input type="checkbox" class="accounttypeId" name="accountType['
+
item
.
dictValue
+
']" title='
+
.
dictValue
+
']" title='
+
item
.
dictLabel
+
' value="'
+
item
.
dictValue
+
'">'
)
item
.
dictLabel
+
' value="'
+
item
.
dictValue
+
'">'
)
if
(
accountTypeVisible
)
{
optionEl
.
attr
(
'disabled'
,
true
)
}
// 修改-回显
// 修改-回显
if
(
editLevel
==
3
)
{
if
(
editLevel
==
3
)
{
for
(
var
i
=
0
;
i
<=
checkedList
.
length
;
i
++
)
{
for
(
var
i
=
0
;
i
<=
checkedList
.
length
;
i
++
)
{
...
@@ -1383,6 +1406,7 @@
...
@@ -1383,6 +1406,7 @@
$
(
'#preStep'
).
on
(
'click'
,
function
()
{
$
(
'#preStep'
).
on
(
'click'
,
function
()
{
step
=
1
step
=
1
// editLevel = 3
init
()
init
()
})
})
...
...
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