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 ba3db8c8
authored
Jan 11, 2022
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
提交代码
1 parent
3ab4a8b0
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
71 additions
and
17 deletions
html/employee/add.html
html/merchant/add.html
html/merchant/addSubMerchant.html
html/merchant/detail.html
html/merchant/edit.html
html/employee/add.html
View file @
ba3db8c
...
@@ -145,7 +145,7 @@
...
@@ -145,7 +145,7 @@
<!-- <select id="merchantName" name="merchantId" lay-filter="merchants" lay-verify="required" autocomplete="off" placeholder="请选择商户名称" required></select> -->
<!-- <select id="merchantName" name="merchantId" lay-filter="merchants" lay-verify="required" autocomplete="off" placeholder="请选择商户名称" required></select> -->
<div
id=
"merchantNameSelect"
class=
"xm-select-demo"
></div>
<div
id=
"merchantNameSelect"
class=
"xm-select-demo"
></div>
<!-- </div> -->
<!-- </div> -->
<div
class=
"hide"
id=
"merchantIdText"
style=
"line-height: 3
6
px"
></div>
<div
class=
"hide"
id=
"merchantIdText"
style=
"line-height: 3
2
px"
></div>
</div>
</div>
</div>
</div>
<div
class=
"layui-form-item"
>
<div
class=
"layui-form-item"
>
...
@@ -173,6 +173,7 @@
...
@@ -173,6 +173,7 @@
</div>
</div>
<div
class=
"layui-form-item"
>
<div
class=
"layui-form-item"
>
<label
class=
"layui-form-label required"
>
可见商户:
</label>
<label
class=
"layui-form-label required"
>
可见商户:
</label>
<!-- <div style="line-height: 32px;">全部商户</div> -->
<div
class=
"layui-input-block"
>
<div
class=
"layui-input-block"
>
<input
class=
"layui-input"
placeholder=
"可见商户"
id=
"searchMerchant"
/>
<input
class=
"layui-input"
placeholder=
"可见商户"
id=
"searchMerchant"
/>
<div
style=
"position: absolute; top: 0; left: 380px"
>
<div
style=
"position: absolute; top: 0; left: 380px"
>
...
@@ -234,7 +235,6 @@
...
@@ -234,7 +235,6 @@
<script>
<script>
//Demo
//Demo
layui
.
use
([
'form'
,
'upload'
,
'gtree'
,
'request'
,
'helper'
,
'xmSelect'
],
function
()
{
layui
.
use
([
'form'
,
'upload'
,
'gtree'
,
'request'
,
'helper'
,
'xmSelect'
],
function
()
{
// var merchantId = qs('merchantId')
var
id
=
qs
(
'id'
)
var
id
=
qs
(
'id'
)
var
form
=
layui
.
form
var
form
=
layui
.
form
var
upload
=
layui
.
upload
var
upload
=
layui
.
upload
...
@@ -254,10 +254,6 @@
...
@@ -254,10 +254,6 @@
var
visibleMerchant
=
{}
var
visibleMerchant
=
{}
pwd
.
attr
(
'readonly'
,
false
)
pwd
.
attr
(
'readonly'
,
false
)
var
accountInfo
=
helper
.
store
.
get
(
'accountInfo'
)
var
accountInfo
=
helper
.
store
.
get
(
'accountInfo'
)
// var accountInfo = {
// merchantAccountLevel: 1,
// merchantId: 81
// }
// 禁用所有input框的回车事件
// 禁用所有input框的回车事件
var
inputs
=
document
.
getElementsByTagName
(
'input'
)
var
inputs
=
document
.
getElementsByTagName
(
'input'
)
...
@@ -291,6 +287,7 @@
...
@@ -291,6 +287,7 @@
radio
:
true
,
radio
:
true
,
data
:
[],
data
:
[],
on
:
function
(
data
)
{
on
:
function
(
data
)
{
console
.
log
(
data
)
merchantId
=
data
.
change
[
0
].
id
merchantId
=
data
.
change
[
0
].
id
getList
(
merchantId
)
getList
(
merchantId
)
}
}
...
@@ -308,9 +305,6 @@
...
@@ -308,9 +305,6 @@
$
(
'#merchantNameSelect'
).
addClass
(
'hide'
)
$
(
'#merchantNameSelect'
).
addClass
(
'hide'
)
$
(
'#staffPhone'
).
removeAttr
(
'disabled'
)
$
(
'#staffPhone'
).
removeAttr
(
'disabled'
)
}
else
{
}
else
{
// var str =
// '<div id="merchantSelect" class="hide"><select id="merchantName" name="merchantId" lay-filter="merchants" lay-verify="required" autocomplete="off" placeholder="请选择商户名称" required></select></div>'
// $('#merchantBox').append(str)
if
(
qs
(
'id'
))
{
if
(
qs
(
'id'
))
{
// 判断是否是编辑
// 判断是否是编辑
resetpsw
.
removeClass
(
'hide'
)
resetpsw
.
removeClass
(
'hide'
)
...
@@ -322,10 +316,7 @@
...
@@ -322,10 +316,7 @@
$
(
'#staffPhone'
).
attr
(
'disabled'
,
true
)
$
(
'#staffPhone'
).
attr
(
'disabled'
,
true
)
getList
(
qs
(
'merchantId'
))
getList
(
qs
(
'merchantId'
))
$
(
'#addUpdateTitle'
).
text
(
'修改员工'
)
$
(
'#addUpdateTitle'
).
text
(
'修改员工'
)
// $('#merchantNameSelect').addClass('hide')
$
(
'#merchantNameSelect'
).
remove
()
$
(
'#merchantNameSelect'
).
remove
()
// } else {
// $('#staffPhone').removeAttr('disabled')
}
}
findAllMerchant
(
function
(
result
)
{
findAllMerchant
(
function
(
result
)
{
if
(
accountInfo
&&
accountInfo
.
merchantAccountLevel
==
4
)
{
if
(
accountInfo
&&
accountInfo
.
merchantAccountLevel
==
4
)
{
...
@@ -335,7 +326,6 @@
...
@@ -335,7 +326,6 @@
form
.
render
()
form
.
render
()
$
(
'#merchantIdText'
).
removeClass
(
'hide'
)
$
(
'#merchantIdText'
).
removeClass
(
'hide'
)
$
(
'#merchantIdText'
).
addClass
(
'show'
)
$
(
'#merchantIdText'
).
addClass
(
'show'
)
// $('#merchantNameSelect').addClass('hide')
$
(
'#merchantNameSelect'
).
remove
()
$
(
'#merchantNameSelect'
).
remove
()
getList
(
merchantId
)
getList
(
merchantId
)
}
}
...
...
html/merchant/add.html
View file @
ba3db8c
...
@@ -229,7 +229,7 @@
...
@@ -229,7 +229,7 @@
style=
"position: absolute; right: 0; top: -90px; font-size: normal"
>
style=
"position: absolute; right: 0; top: -90px; font-size: normal"
>
<label
class=
"layui-form-label"
>
渠道:
</label>
<label
class=
"layui-form-label"
>
渠道:
</label>
<div
class=
"layui-input-inline"
>
<div
class=
"layui-input-inline"
>
<select
id=
"channelEl"
name=
"channelId"
lay-verify=
"channelId"
>
<select
id=
"channelEl"
name=
"channelId"
lay-verify=
"channelId"
lay-filter=
"channelId"
>
<option
value=
""
>
请选择
</option>
<option
value=
""
>
请选择
</option>
</select>
</select>
</div>
</div>
...
@@ -285,6 +285,14 @@
...
@@ -285,6 +285,14 @@
</div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"layui-col-md6 hide"
id=
"sapCode"
>
<div
class=
"layui-form-item"
>
<label
class=
"layui-form-label"
>
商户SAP编码:
</label>
<div
class=
"layui-input-inline"
>
<input
class=
"layui-input"
maxlength=
"15"
name=
"sapCode"
placeholder=
"请输入商户SAP编码"
/>
</div>
</div>
</div>
<!-- <div class="layui-form-item">
<!-- <div class="layui-form-item">
<label class="layui-form-label">商户类型:</label>
<label class="layui-form-label">商户类型:</label>
<div class="layui-input-inline updateSelectAngle" style="width: 100px; margin: 0">
<div class="layui-input-inline updateSelectAngle" style="width: 100px; margin: 0">
...
@@ -714,6 +722,16 @@
...
@@ -714,6 +722,16 @@
}
}
})
})
form
.
on
(
'select(channelId)'
,
function
(
data
)
{
console
.
log
(
data
)
const
sap
=
$
(
'#sapCode'
)
if
(
data
.
value
==
'1'
)
{
sap
.
removeClass
(
'hide'
)
}
else
{
sap
.
addClass
(
'hide'
)
}
})
form
.
on
(
'select(merchantTypeFilter)'
,
function
(
data
)
{
form
.
on
(
'select(merchantTypeFilter)'
,
function
(
data
)
{
if
(
data
.
value
==
1
)
{
if
(
data
.
value
==
1
)
{
$
(
'#merchantOrgcodeEl'
).
attr
(
'placeholder'
,
'请输入身份证号码'
)
$
(
'#merchantOrgcodeEl'
).
attr
(
'placeholder'
,
'请输入身份证号码'
)
...
@@ -741,7 +759,7 @@
...
@@ -741,7 +759,7 @@
'merchantLoginPassword'
,
'merchantLoginPassword'
,
'merchantAccountLevel'
,
'merchantAccountLevel'
,
'effectiveTime'
,
'effectiveTime'
,
'merchantModel'
'merchantModel'
,
]
]
if
(
formData
.
isloginName
==
'on'
)
{
if
(
formData
.
isloginName
==
'on'
)
{
params
.
isloginName
=
1
params
.
isloginName
=
1
...
@@ -776,6 +794,9 @@
...
@@ -776,6 +794,9 @@
}
else
{
}
else
{
params
.
channelId
=
merchantForm
.
channelId
params
.
channelId
=
merchantForm
.
channelId
}
}
if
(
formData
.
channelId
==
1
)
{
params
.
sapCode
=
formData
.
sapCode
}
var
checkClassNameList
=
[
var
checkClassNameList
=
[
{
{
attr
:
'businessScope'
,
attr
:
'businessScope'
,
...
@@ -842,6 +863,7 @@
...
@@ -842,6 +863,7 @@
}
else
{
}
else
{
params
.
status
=
1
params
.
status
=
1
}
}
console
.
log
(
params
)
request
(
params
,
function
(
res
)
{
request
(
params
,
function
(
res
)
{
if
(
res
.
code
==
'0'
)
{
if
(
res
.
code
==
'0'
)
{
if
(
editLevel
==
3
)
{
if
(
editLevel
==
3
)
{
...
...
html/merchant/addSubMerchant.html
View file @
ba3db8c
...
@@ -275,6 +275,14 @@
...
@@ -275,6 +275,14 @@
</div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"layui-col-md6 hide"
id=
"sapCode"
>
<div
class=
"layui-form-item"
>
<label
class=
"layui-form-label"
>
商户SAP编码:
</label>
<div
class=
"layui-input-inline"
>
<input
class=
"layui-input"
maxlength=
"15"
name=
"sapCode"
placeholder=
"请输入商户SAP编码"
/>
</div>
</div>
</div>
<!-- <div class="layui-form-item">
<!-- <div class="layui-form-item">
<label class="layui-form-label">商户类型:</label>
<label class="layui-form-label">商户类型:</label>
<div class="layui-input-inline" style="width: 100px; margin: 0">
<div class="layui-input-inline" style="width: 100px; margin: 0">
...
@@ -795,6 +803,9 @@
...
@@ -795,6 +803,9 @@
}
else
{
}
else
{
params
.
channelId
=
merchantForm
.
channelId
params
.
channelId
=
merchantForm
.
channelId
}
}
if
(
parentInfo
.
channelId
==
1
)
{
params
.
sapCode
=
formData
.
sapCode
}
var
checkClassNameList
=
[
var
checkClassNameList
=
[
{
{
attr
:
'businessScope'
,
attr
:
'businessScope'
,
...
@@ -863,6 +874,7 @@
...
@@ -863,6 +874,7 @@
}
else
{
}
else
{
params
.
status
=
1
params
.
status
=
1
}
}
console
.
log
(
params
)
request
(
params
,
function
(
res
)
{
request
(
params
,
function
(
res
)
{
if
(
res
.
code
==
'0'
)
{
if
(
res
.
code
==
'0'
)
{
if
(
editLevel
==
3
)
{
if
(
editLevel
==
3
)
{
...
@@ -1202,6 +1214,9 @@
...
@@ -1202,6 +1214,9 @@
merchantModel
:
data
.
merchantModel
merchantModel
:
data
.
merchantModel
}
}
merchantForm
.
channelId
=
parentInfo
.
channelId
merchantForm
.
channelId
=
parentInfo
.
channelId
if
(
parentInfo
.
channelId
==
1
)
{
$
(
'#sapCode'
).
removeClass
(
'hide'
)
}
var
attrList
=
[
'parentName'
,
'merchantModelName'
]
var
attrList
=
[
'parentName'
,
'merchantModelName'
]
$
.
each
(
attrList
,
function
(
index
,
item
)
{
$
.
each
(
attrList
,
function
(
index
,
item
)
{
$
(
'#'
+
item
).
text
(
parentInfo
[
item
])
$
(
'#'
+
item
).
text
(
parentInfo
[
item
])
...
...
html/merchant/detail.html
View file @
ba3db8c
...
@@ -450,7 +450,15 @@
...
@@ -450,7 +450,15 @@
</div>
</div>
</div>
</div>
<div
class=
"layui-col-md5 hide"
id=
"sapBox"
>
<div
class=
"layui-form-item"
>
<label
class=
"layui-form-label"
>
商户SAP编码:
</label>
<div
class=
"layui-input-block"
>
<!-- layui-form-mid -->
<div
class=
"layui-word-aux"
id=
"sapCode"
></div>
</div>
</div>
</div>
<div
class=
"layui-col-md5"
>
<div
class=
"layui-col-md5"
>
<div
class=
"layui-form-item"
>
<div
class=
"layui-form-item"
>
...
@@ -578,7 +586,8 @@
...
@@ -578,7 +586,8 @@
'merchantBrandName'
,
'merchantBrandName'
,
'merchantModelName'
,
'merchantModelName'
,
'statusName'
,
'statusName'
,
'entmicroName'
'entmicroName'
,
'sapCode'
]
]
var
roleData
=
{}
var
roleData
=
{}
var
accountAuth
=
[]
var
accountAuth
=
[]
...
@@ -682,6 +691,10 @@
...
@@ -682,6 +691,10 @@
if
(
roleData
.
merchantType
==
2
)
{
if
(
roleData
.
merchantType
==
2
)
{
$
(
'#orgTxt'
).
text
(
'组织机构代码:'
)
$
(
'#orgTxt'
).
text
(
'组织机构代码:'
)
}
}
console
.
log
(
roleData
)
if
(
roleData
.
channelId
==
1
)
{
$
(
'#sapBox'
).
removeClass
(
'hide'
)
}
// var effectiveTimeNameEl = $('#effectiveTimeName')
// var effectiveTimeNameEl = $('#effectiveTimeName')
// if (roleData.merchantAccountLevel == 4) { // 门店
// if (roleData.merchantAccountLevel == 4) { // 门店
// if (roleData.status == 1 || roleData.status == 5) {
// if (roleData.status == 1 || roleData.status == 5) {
...
...
html/merchant/edit.html
View file @
ba3db8c
...
@@ -357,6 +357,14 @@
...
@@ -357,6 +357,14 @@
</div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"layui-col-md6 hide"
id=
"sapCode"
>
<div
class=
"layui-form-item"
>
<label
class=
"layui-form-label"
>
商户SAP编码:
</label>
<div
class=
"layui-input-inline"
>
<input
class=
"layui-input"
maxlength=
"15"
name=
"sapCode"
placeholder=
"请输入商户SAP编码"
/>
</div>
</div>
</div>
<!-- <div class="layui-form-item">
<!-- <div class="layui-form-item">
<label class="layui-form-label">商户类型:</label>
<label class="layui-form-label">商户类型:</label>
<div class="layui-input-inline" style="width: 100px; margin: 0">
<div class="layui-input-inline" style="width: 100px; margin: 0">
...
@@ -1201,6 +1209,9 @@
...
@@ -1201,6 +1209,9 @@
effectiveTime
:
data
.
effectiveTime
effectiveTime
:
data
.
effectiveTime
}
}
merchantForm
.
channelId
=
parentInfo
.
channelId
merchantForm
.
channelId
=
parentInfo
.
channelId
if
(
res
.
data
.
channelId
==
1
)
{
$
(
'#sapCode'
).
removeClass
(
'hide'
)
}
var
attrList
=
[
'parentName'
]
var
attrList
=
[
'parentName'
]
$
.
each
(
attrList
,
function
(
index
,
item
)
{
$
.
each
(
attrList
,
function
(
index
,
item
)
{
$
(
'#'
+
item
).
text
(
parentInfo
[
item
])
$
(
'#'
+
item
).
text
(
parentInfo
[
item
])
...
@@ -1237,6 +1248,9 @@
...
@@ -1237,6 +1248,9 @@
if
(
merchantForm
.
merchantType
==
2
)
{
if
(
merchantForm
.
merchantType
==
2
)
{
$
(
'#merchantOrgcodeEl'
).
attr
(
'placeholder'
,
'请输入组织机构号码'
)
$
(
'#merchantOrgcodeEl'
).
attr
(
'placeholder'
,
'请输入组织机构号码'
)
}
}
if
(
merchantForm
.
channelId
==
1
)
{
$
(
'#sapCode'
).
removeClass
(
'hide'
)
}
if
(
step
==
1
)
{
if
(
step
==
1
)
{
getBusiScope
()
getBusiScope
()
getCarBrandTree
()
getCarBrandTree
()
...
...
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