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 dbaea124
authored
Jun 09, 2023
by
徐忆琳
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'xuyl_dev_v3.12.0' into 'v3.12.0'
六月份大版本需求 See merge request
!50
2 parents
e9df60c4
a7b7d179
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
6 deletions
html/merchant/add.html
html/merchant/add.html
View file @
dbaea12
...
@@ -329,7 +329,7 @@
...
@@ -329,7 +329,7 @@
</div>
</div>
</div> -->
</div> -->
<div
class=
"layui-form-item"
>
<div
class=
"layui-form-item"
>
<label
class=
"layui-form-label"
>
商户地址:
</label>
<label
class=
"layui-form-label
required
"
>
商户地址:
</label>
<div
class=
"layui-input-inline"
>
<div
class=
"layui-input-inline"
>
<div
class=
"layui-bg-white padding10 padding-l20 layui-form"
>
<div
class=
"layui-bg-white padding10 padding-l20 layui-form"
>
<div
class=
"layui-input-inline margin-l10 w-70"
>
<div
class=
"layui-input-inline margin-l10 w-70"
>
...
@@ -346,7 +346,7 @@
...
@@ -346,7 +346,7 @@
<div
id=
"addMap"
></div>
<div
id=
"addMap"
></div>
</div>
</div>
<div
class=
"layui-input-inline select-address"
>
<div
class=
"layui-input-inline select-address"
>
<input
style=
"color: #333333 !important"
name=
"merchantAddress"
disabled
class=
"layui-input layui-btn-disabled address"
id=
"addrEl"
placeholder=
"请选择商户地址"
/>
<input
style=
"color: #333333 !important"
name=
"merchantAddress"
disabled
required
lay-verify=
"required"
class=
"layui-input layui-btn-disabled address"
id=
"addrEl"
placeholder=
"请选择商户地址"
/>
<!-- <div class="m-t-10" id="addrEl">请选择商户地址</div> -->
<!-- <div class="m-t-10" id="addrEl">请选择商户地址</div> -->
<button
type=
"button"
class=
"layui-btn"
data-type=
"handleSelectAddr"
style=
"margin-left: 20px"
>
选择地址
</button>
<button
type=
"button"
class=
"layui-btn"
data-type=
"handleSelectAddr"
style=
"margin-left: 20px"
>
选择地址
</button>
</div>
</div>
...
@@ -412,9 +412,9 @@
...
@@ -412,9 +412,9 @@
</div> -->
</div> -->
<div
class=
"layui-col-md6"
>
<div
class=
"layui-col-md6"
>
<div
class=
"layui-form-item"
>
<div
class=
"layui-form-item"
>
<label
class=
"layui-form-label"
>
主营品牌:
</label>
<label
class=
"layui-form-label
required
"
>
主营品牌:
</label>
<div
class=
"layui-input-inline"
style=
"position: relative"
>
<div
class=
"layui-input-inline"
style=
"position: relative"
>
<input
class=
"layui-input"
placeholder=
"请输入品牌/子品牌名称搜索"
id=
"brand"
/>
<input
class=
"layui-input"
placeholder=
"请输入品牌/子品牌名称搜索"
id=
"brand"
/>
<button
id=
"checkCarBrand"
type=
"button"
class=
"layui-btn btn-no-border check-carbrand"
>
全选
</button>
<button
id=
"checkCarBrand"
type=
"button"
class=
"layui-btn btn-no-border check-carbrand"
>
全选
</button>
<div
id=
"carBrandTree"
class=
"wrapper-tree hide"
style=
"height: 200px; overflow-y: scroll"
></div>
<div
id=
"carBrandTree"
class=
"wrapper-tree hide"
style=
"height: 200px; overflow-y: scroll"
></div>
<div
id=
"noCarbrand"
class=
"no-car hide"
>
暂无数据
</div>
<div
id=
"noCarbrand"
class=
"no-car hide"
>
暂无数据
</div>
...
@@ -849,7 +849,6 @@
...
@@ -849,7 +849,6 @@
})
})
form
.
on
(
'select(channelId)'
,
function
(
data
)
{
form
.
on
(
'select(channelId)'
,
function
(
data
)
{
console
.
log
(
data
)
const
sap
=
$
(
'#sapCode'
)
const
sap
=
$
(
'#sapCode'
)
if
(
data
.
value
==
'2'
)
{
if
(
data
.
value
==
'2'
)
{
sap
.
removeClass
(
'hide'
)
sap
.
removeClass
(
'hide'
)
...
@@ -979,7 +978,15 @@
...
@@ -979,7 +978,15 @@
if
(
treeObj
)
{
if
(
treeObj
)
{
let
getCheckedNodes
=
treeObj
.
getCheckedNodes
(
true
)
let
getCheckedNodes
=
treeObj
.
getCheckedNodes
(
true
)
const
getCheckedKeys
=
treeObj
.
getCheckedNodes
(
true
).
map
(
item
=>
item
.
id
)
const
getCheckedKeys
=
treeObj
.
getCheckedNodes
(
true
).
map
(
item
=>
item
.
id
)
getCheckedNodes
=
getCheckedNodes
.
filter
(
item
=>
item
.
children
)
if
(
!
getCheckedKeys
?.
length
){
layer
.
msg
(
'主营品牌不能为空'
,
{
icon
:
5
,
anim
:
6
})
layer
.
close
(
loading
)
return
false
}
CheckedNodes
=
getCheckedNodes
.
filter
(
item
=>
item
.
children
)
merchantForm
.
merchantBrandList
=
getCheckedNodes
.
map
(
car
=>
{
merchantForm
.
merchantBrandList
=
getCheckedNodes
.
map
(
car
=>
{
let
merchantBrandId
=
[]
let
merchantBrandId
=
[]
car
.
children
.
forEach
(
item
=>
{
car
.
children
.
forEach
(
item
=>
{
...
...
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