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 9a86d48e
authored
Nov 07, 2023
by
前端
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'v3.21.0' into 'develop'
11.4上线合并代码 See merge request
!54
2 parents
f949b4c6
1a40d320
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
245 additions
and
48 deletions
html/employee/add.html
html/employee/detail.html
html/employee/index.html
html/merchant/add.html
html/merchant/addSubMerchant.html
html/merchant/edit.html
html/merchant/index.html
js/load.js
html/employee/add.html
View file @
9a86d48
...
...
@@ -356,21 +356,30 @@
name
:
'staffLabel'
,
selected
:
true
,
data
:
[
{
name
:
'精品升级(太阳膜)'
,
value
:
'1'
},
{
name
:
'
1.0车损升级
'
,
value
:
'
0
'
name
:
'
次新车转化(车衣、改色膜)
'
,
value
:
'
4
'
},
{
name
:
'
1.1精品升级
'
,
value
:
'
1
'
name
:
'
售后众筹活动
'
,
value
:
'
3
'
},
{
name
:
'1.2膨胀金活动'
,
name
:
'会员权益/升级'
,
value
:
'0'
},
{
name
:
'膨胀金活动'
,
value
:
'2'
},
{
name
:
'
1.3众筹活动
'
,
value
:
'
3
'
name
:
'
送修线索
'
,
value
:
'
5
'
}
],
on
:
function
(
data
)
{
...
...
@@ -560,7 +569,7 @@
}
var
params
=
helper
.
clone
(
true
,
data
.
field
,
otherParams
)
delete
params
.
merhcnatImg
console
.
log
(
params
)
params
.
createdSource
=
1
request
(
params
,
function
(
result
)
{
if
(
result
.
code
==
'0'
)
{
layer
.
msg
(
'操作成功'
,
{
...
...
html/employee/detail.html
View file @
9a86d48
...
...
@@ -411,16 +411,19 @@
employeeData
.
staffLabel
.
map
((
item
,
index
)
=>
{
switch
(
item
)
{
case
'0'
:
employeeData
.
staffLabel
[
index
]
=
'
1.0车损
升级'
employeeData
.
staffLabel
[
index
]
=
'
会员权益/
升级'
break
case
'1'
:
employeeData
.
staffLabel
[
index
]
=
'
1.1精品升级
'
employeeData
.
staffLabel
[
index
]
=
'
精品升级(太阳膜)
'
break
case
'2'
:
employeeData
.
staffLabel
[
index
]
=
'
1.2
膨胀金活动'
employeeData
.
staffLabel
[
index
]
=
'膨胀金活动'
break
case
'3'
:
employeeData
.
staffLabel
[
index
]
=
'1.3众筹活动'
employeeData
.
staffLabel
[
index
]
=
'售后众筹活动'
break
case
'4'
:
employeeData
.
staffLabel
[
index
]
=
'次新车转化(车衣、改色膜)'
break
default
:
employeeData
.
staffLabel
[
index
]
=
'无'
...
...
html/employee/index.html
View file @
9a86d48
...
...
@@ -88,6 +88,18 @@
class=
"layui-input updateCircleAngle"
/>
</div>
</div>
<div
id=
"from"
class=
"layui-inline"
>
<label
class=
"layui-form-label"
>
来源:
</label>
<div
class=
"layui-input-inline"
style=
"width: 246px"
>
<select
name=
"createdSource"
id=
"searchfrom"
>
<option
value=
""
>
全部
</option>
<option
value=
"1"
>
账户中心
</option>
<option
value=
"2"
>
SCRM
</option>
<option
value=
"3"
>
生意助手
</option>
<option
value=
"4"
>
门店助手
</option>
</select>
</div>
</div>
<div
class=
"layui-inline"
style=
"float: right"
pane
>
<button
type=
"button"
class=
"layui-btn layui-btn-normal exportInputBtn"
id=
"employeeExport"
>
导出
</button>
<button
id=
"employeeReset"
class=
"layui-btn"
>
重置
</button>
...
...
@@ -143,6 +155,8 @@
{
field
:
'statusName'
,
title
:
'状态'
,
align
:
'center'
,
width
:
80
},
{
field
:
'createdAccount'
,
title
:
'创建者'
,
align
:
'center'
},
{
field
:
'merchantName'
,
title
:
'商户名(商户号)'
,
align
:
'center'
,
width
:
160
},
{
field
:
'createdSourceStr'
,
title
:
'来源'
,
align
:
'center'
,
width
:
160
,
templet
:
'#sourceTpl'
,},
{
field
:
'createdTime'
,
title
:
'创建时间'
,
align
:
'center'
,
width
:
160
},
{
field
:
'updatedTime'
,
title
:
'更新时间'
,
align
:
'center'
,
width
:
90
},
{
title
:
'操作'
,
width
:
160
,
align
:
'center'
,
toolbar
:
'#employeeBar'
},
{
field
:
'statusName'
,
title
:
'启用开关'
,
width
:
85
,
templet
:
'#switchTpl'
,
unresize
:
true
}
...
...
@@ -475,6 +489,7 @@
lay
-
filter
=
"sexDemo"
{{
d
.
status
==
0
?
'checked'
:
''
}}
>
<
/div
>
</script>
</body>
</html>
\ No newline at end of file
html/merchant/add.html
View file @
9a86d48
...
...
@@ -329,7 +329,7 @@
</div>
</div> -->
<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-bg-white padding10 padding-l20 layui-form"
>
<div
class=
"layui-input-inline margin-l10 w-70"
>
...
...
@@ -346,7 +346,7 @@
<div
id=
"addMap"
></div>
</div>
<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> -->
<button
type=
"button"
class=
"layui-btn"
data-type=
"handleSelectAddr"
style=
"margin-left: 20px"
>
选择地址
</button>
</div>
...
...
@@ -412,9 +412,9 @@
</div> -->
<div
class=
"layui-col-md6"
>
<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"
>
<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>
<div
id=
"carBrandTree"
class=
"wrapper-tree hide"
style=
"height: 200px; overflow-y: scroll"
></div>
<div
id=
"noCarbrand"
class=
"no-car hide"
>
暂无数据
</div>
...
...
@@ -849,7 +849,6 @@
})
form
.
on
(
'select(channelId)'
,
function
(
data
)
{
console
.
log
(
data
)
const
sap
=
$
(
'#sapCode'
)
if
(
data
.
value
==
'2'
)
{
sap
.
removeClass
(
'hide'
)
...
...
@@ -979,7 +978,15 @@
if
(
treeObj
)
{
let
getCheckedNodes
=
treeObj
.
getCheckedNodes
(
true
)
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
}
getCheckedNodes
=
getCheckedNodes
.
filter
(
item
=>
item
.
children
)
merchantForm
.
merchantBrandList
=
getCheckedNodes
.
map
(
car
=>
{
let
merchantBrandId
=
[]
car
.
children
.
forEach
(
item
=>
{
...
...
@@ -1017,8 +1024,35 @@
}
else
{
params
.
status
=
1
}
console
.
log
(
params
)
request
(
params
,
function
(
res
)
{
verifyMerchantName
(
params
.
merchantName
,
params
,
loading
)
layer
.
close
(
loading
)
return
false
})
function
verifyDialog
(
params
,
loading
){
// 验证商户名是否重复
layer
.
confirm
(
'商户名称已经被使用,是否确定继续使用'
,
{
title
:
"提示"
,
btn
:
[
'确定'
,
'取消'
]
//可以无限个按钮
,
btn2
:
function
(
index
,
layero
){
//按钮【按钮二】的回调
layer
.
close
(
index
);
layer
.
close
(
loading
)
}
},
function
(
index
,
layero
){
//按钮【按钮一】的回调
nextStepRequest
(
params
,
loading
)
})
}
function
nextStepRequest
(
params
,
loading
){
params
.
createdSource
=
1
request
(
params
,
function
(
res
)
{
if
(
res
.
code
==
'0'
)
{
layer
.
close
(
loading
)
if
(
editLevel
==
3
)
{
...
...
@@ -1050,12 +1084,25 @@
}
})
}
}
else
{
layer
.
close
(
loading
)
}
})
return
false
})
layer
.
close
(
loading
)
}
function
verifyMerchantName
(
name
,
paramsM
,
loading
){
var
params
=
{
method
:
'merchants.api.merchant.checkMerchantNameRepeat'
,
merchantName
:
paramsM
.
merchantName
}
request
(
params
,
function
(
res
)
{
if
(
res
&&
res
.
data
==
true
){
return
nextStepRequest
(
paramsM
,
loading
)
}
else
if
(
res
&&
res
.
data
==
false
){
return
verifyDialog
(
paramsM
,
loading
)
}
})
}
function
findId
(
nodeList
)
{
var
idList
=
[]
...
...
html/merchant/addSubMerchant.html
View file @
9a86d48
...
...
@@ -320,7 +320,7 @@
</div>
</div> -->
<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-bg-white padding10 padding-l20 layui-form"
>
<div
class=
"layui-input-inline margin-l10 w-70"
>
...
...
@@ -337,7 +337,7 @@
<div
id=
"addMap"
></div>
</div>
<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> -->
<button
type=
"button"
class=
"layui-btn"
data-type=
"handleSelectAddr"
style=
"margin-left: 20px"
>
选择地址
</button>
</div>
...
...
@@ -399,7 +399,7 @@
</div> -->
<div
class=
"layui-col-md6"
>
<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"
>
<input
class=
"layui-input"
placeholder=
"请输入品牌/子品牌名称搜索"
id=
"brand"
/>
<button
id=
"checkCarBrand"
type=
"button"
class=
"layui-btn btn-no-border check-carbrand"
>
全选
</button>
...
...
@@ -987,7 +987,12 @@
if
(
treeObj
)
{
let
getCheckedNodes
=
treeObj
.
getCheckedNodes
(
true
)
const
getCheckedKeys
=
treeObj
.
getCheckedNodes
(
true
).
map
(
item
=>
item
.
id
)
console
.
log
(
getCheckedKeys
)
if
(
!
getCheckedKeys
?.
length
){
layer
.
msg
(
'主营品牌不能为空'
,
{
icon
:
5
,
anim
:
6
})
}
getCheckedNodes
=
getCheckedNodes
.
filter
(
item
=>
item
.
children
)
merchantForm
.
merchantBrandList
=
getCheckedNodes
.
map
(
car
=>
{
let
merchantBrandId
=
[]
...
...
@@ -1001,7 +1006,6 @@
merchantBrandId
}
})
console
.
log
(
merchantForm
.
merchantBrandList
)
params
.
merchantBrandListJson
=
JSON
.
stringify
(
merchantForm
.
merchantBrandList
)
}
if
(
merchantForm
.
merchantFiles
.
length
)
{
...
...
@@ -1029,8 +1033,17 @@
}
else
{
params
.
status
=
1
}
console
.
log
(
params
)
request
(
params
,
function
(
res
)
{
verifyMerchantName
(
params
.
merchantName
,
params
,
loading
)
layer
.
close
(
loading
)
return
false
})
function
nextStepRequest
(
params
,
loading
){
params
.
createdSource
=
1
request
(
params
,
function
(
res
)
{
if
(
res
.
code
==
'0'
)
{
layer
.
close
(
loading
)
if
(
editLevel
==
3
)
{
...
...
@@ -1063,12 +1076,41 @@
}
})
}
}
else
{
layer
.
close
(
loading
)
}
})
layer
.
close
(
loading
)
}
function
verifyMerchantName
(
name
,
paramsM
,
loading
){
var
params
=
{
method
:
'merchants.api.merchant.checkMerchantNameRepeat'
,
merchantName
:
paramsM
.
merchantName
}
request
(
params
,
function
(
res
)
{
if
(
res
&&
res
.
data
==
true
){
return
nextStepRequest
(
paramsM
,
loading
)
}
else
if
(
res
&&
res
.
data
==
false
){
return
verifyDialog
(
paramsM
,
loading
)
}
})
return
false
})
}
function
verifyDialog
(
params
,
loading
){
// 验证商户名是否重复
layer
.
confirm
(
'商户名称已经被使用,是否确定继续使用'
,
{
title
:
"提示"
,
btn
:
[
'确定'
,
'取消'
]
//可以无限个按钮
,
btn2
:
function
(
index
,
layero
){
//按钮【按钮二】的回调
layer
.
close
(
index
);
layer
.
close
(
loading
)
}
},
function
(
index
,
layero
){
//按钮【按钮一】的回调
nextStepRequest
(
params
,
loading
)
})
}
function
findId
(
nodeList
)
{
var
idList
=
[]
...
...
@@ -1115,7 +1157,6 @@
var
municipality
=
municipalities
.
find
(
item
=>
item
==
provinceIdx
)
if
(
municipality
)
{
cityIdx
=
cityIdx
.
slice
(
0
,
2
)
+
'城区'
console
.
log
(
cityIdx
)
if
(
municipality
===
'重庆市'
)
{
provincecode
=
provincecode
.
slice
(
0
,
4
)
provincecode
==
5001
?
(
cityIdx
=
cityIdx
.
slice
(
0
,
2
)
+
'城区'
)
:
(
cityIdx
=
cityIdx
.
slice
(
0
,
2
)
+
'郊县'
)
...
...
html/merchant/edit.html
View file @
9a86d48
...
...
@@ -367,7 +367,7 @@
<div
class=
"layui-form-item"
>
<label
class=
"layui-form-label required"
>
商户名称:
</label>
<div
class=
"layui-input-inline"
>
<input
class=
"layui-input
disabled"
maxlength=
"50"
name=
"merchantName"
disabled
required
lay-verify=
"required"
placeholder=
"请输入商户名称"
/>
<input
class=
"layui-input
"
maxlength=
"50"
name=
"merchantName"
required
lay-verify=
"required"
placeholder=
"请输入商户名称"
/>
</div>
</div>
</div>
...
...
@@ -419,7 +419,7 @@
</div>
</div> -->
<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-bg-white padding10 padding-l20 layui-form"
>
<div
class=
"layui-input-inline margin-l10 w-70"
>
...
...
@@ -435,8 +435,8 @@
</div>
<div
id=
"addMap"
></div>
</div>
<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=
"请选择商户地址"
/>
<div
class=
"layui-input-inline select-address
required
"
>
<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> -->
<button
type=
"button"
class=
"layui-btn"
data-type=
"handleSelectAddr"
style=
"margin-left: 20px"
>
选择地址
</button>
</div>
...
...
@@ -492,7 +492,7 @@
</div> -->
<div
class=
"layui-col-md6"
>
<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"
>
<input
class=
"layui-input"
placeholder=
"请输入品牌/子品牌名称搜索"
id=
"brand"
/>
<button
id=
"checkCarBrand"
type=
"button"
class=
"layui-btn btn-no-border check-carbrand"
>
全选
</button>
...
...
@@ -792,7 +792,6 @@
focusElem
.
css
(
verifyType
==
'radio'
?
{
color
:
''
}
:
{
'border-color'
:
''
})
})
.
focus
()
console
.
log
(
222
)
return
'必填项不能为空'
}
}
...
...
@@ -915,14 +914,23 @@
// if (treeObj) merchantForm.merchantBrandMain = treeObj.getCheckedNodes(true)
// params.merchantBrandMain = findId(merchantForm.merchantBrandMain).join(',')
if
(
treeObj
)
{
let
getCheckedNodes
=
treeObj
.
getCheckedNodes
(
true
)
const
getCheckedKeys
=
treeObj
.
getCheckedNodes
(
true
).
map
(
item
=>
item
.
id
)
if
(
!
getCheckedKeys
?.
length
){
layer
.
msg
(
'主营品牌不能为空'
,
{
icon
:
5
,
anim
:
6
})
return
false
}
// getCheckedNodes = getCheckedNodes.filter(item => item.children)
// let parentCheckNodes = getCheckedNodes.filter(item => item.children)
const
childCheckNodes
=
getCheckedNodes
.
filter
(
item
=>
!
item
.
children
)
let
parent
=
childCheckNodes
.
map
(
item
=>
{
return
item
.
getParentNode
()
})
parent
=
parent
.
filter
(
item
=>
item
!==
null
)
const
removeDuplicateObj
=
arr
=>
{
let
obj
=
{}
arr
=
arr
.
reduce
((
newArr
,
next
)
=>
{
...
...
@@ -969,7 +977,22 @@
}
else
{
params
.
status
=
1
}
console
.
log
(
params
)
verifyMerchantName
(
params
.
merchantName
,
params
)
// request(params, function (res) {
// if (res.code == '0') {
// layer.msg('操作成功', {
// icon: 1
// })
// if (!functionClick) {
// go('merchant', 'index')
// }
// }
// })
return
false
})
function
nextStepRequest
(
params
){
request
(
params
,
function
(
res
)
{
if
(
res
.
code
==
'0'
)
{
layer
.
msg
(
'操作成功'
,
{
...
...
@@ -980,8 +1003,39 @@
}
}
})
return
false
})
}
function
verifyDialog
(
params
){
// 验证商户名是否重复
layer
.
confirm
(
'商户名称已经被使用,是否确定继续使用'
,
{
title
:
"提示"
,
btn
:
[
'确定'
,
'取消'
]
//可以无限个按钮
,
btn2
:
function
(
index
,
layero
){
//按钮【按钮二】的回调
layer
.
close
(
index
);
}
},
function
(
index
,
layero
){
//按钮【按钮一】的回调
nextStepRequest
(
params
)
})
}
function
verifyMerchantName
(
name
,
paramsM
){
var
params
=
{
method
:
'merchants.api.merchant.checkMerchantNameRepeat'
,
merchantName
:
paramsM
.
merchantName
}
request
(
params
,
function
(
res
)
{
if
(
res
&&
res
.
data
==
true
){
return
nextStepRequest
(
paramsM
)
}
else
if
(
res
&&
res
.
data
==
false
){
return
verifyDialog
(
paramsM
)
}
})
}
function
findId
(
nodeList
)
{
var
idList
=
[]
...
...
html/merchant/index.html
View file @
9a86d48
...
...
@@ -220,6 +220,16 @@
</div>
</div>
</div>
<div
id=
"from"
class=
"layui-inline"
>
<label
class=
"layui-form-label"
>
来源:
</label>
<div
class=
"layui-input-inline"
style=
"width: 246px"
>
<select
name=
"createdSource"
id=
"searchfrom"
>
<option
value=
""
>
全部
</option>
<option
value=
"1"
>
账户中心
</option>
<option
value=
"3"
>
生意助手
</option>
</select>
</div>
</div>
<div
class=
"layui-inline searchInputBtn"
style=
"float: right;"
>
<button
class=
"layui-btn"
id=
"merchantReset"
>
重置
</button>
...
...
@@ -403,6 +413,24 @@
// width: 160
},
{
field
:
'createdSourceStr'
,
title
:
'来源'
,
align
:
'center'
,
width
:
120
},
{
field
:
'createdAccount'
,
title
:
'创建人'
,
align
:
'center'
,
width
:
120
},
{
field
:
'createdTime'
,
title
:
'创建时间'
,
align
:
'center'
,
width
:
120
},
{
field
:
'updatedTime'
,
title
:
'更新时间'
,
align
:
'center'
,
...
...
js/load.js
View file @
9a86d48
...
...
@@ -3,8 +3,8 @@
* @version: 1.0.0
* @Author: limin
* @Date: 2021-07-15 15:46:53
* @LastEditors:
Please set LastEditors
* @LastEditTime: 202
2-03-29 18:53:12
* @LastEditors:
huyue
* @LastEditTime: 202
3-10-17 15:49:47
* @FilePath: \account\js\load.js
*/
;(
function
load
()
{
...
...
@@ -94,7 +94,7 @@ function loadConfig() {
var
ajax
=
layui
.
$
.
ajax
ajax
({
// url: 'https://oss-config.test.glsx.com.cn/mock/5be17454f31545347559d499/config/glsx-oss-account-config',
url
:
'http
://oss-config.dev.glsx.com.cn/mock/5be17454f31545347559d499/config/
glsx-oss-account-config'
,
url
:
'http
s://config-center-backend.glsx.com.cn/glsxAdmin/config?moduleUrl=
glsx-oss-account-config'
,
async
:
false
,
success
:
function
(
res
)
{
store
.
setEx
(
'external'
,
res
.
external
,
10
*
60
*
1000
)
...
...
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