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 17b78ff3
authored
Nov 23, 2023
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复bug
1 parent
a9b8992e
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
7 deletions
html/employee/add.html
html/merchant/edit.html
html/merchant/index.html
html/employee/add.html
View file @
17b78ff
This diff is collapsed.
Click to expand it.
html/merchant/edit.html
View file @
17b78ff
...
@@ -913,9 +913,20 @@ form.on('checkbox', function(data) {
...
@@ -913,9 +913,20 @@ form.on('checkbox', function(data) {
selectedValues
.
push
(
$
(
this
).
val
());
selectedValues
.
push
(
$
(
this
).
val
());
}
}
});
});
// console.log("选中的账户类型值: ", selectedValues);
if
(
selectedValues
.
length
===
0
)
{
layer
.
msg
(
'账户类型不能为空'
,
{
icon
:
5
,
anim
:
6
});
$
(
'#accountTypeElRole .accounttypeId'
).
each
(
function
()
{
if
(
this
.
value
==
_currentaccountType
)
{
this
.
checked
=
true
$
(
this
).
next
(
'div'
).
addClass
(
'layui-form-checked'
);
}
});
return
}
console
.
log
(
"选中的账户类型值: "
,
selectedValues
);
_currentaccountType
=
selectedValues
_currentaccountType
=
selectedValues
// !selectedValues? _currentaccountType :
selectedValues
// 检查触发事件的元素是否不是以"project"为前缀的id的元素的一部分
// 检查触发事件的元素是否不是以"project"为前缀的id的元素的一部分
if
(
!
$
(
data
.
elem
).
closest
(
'[id^=project]'
).
length
)
{
if
(
!
$
(
data
.
elem
).
closest
(
'[id^=project]'
).
length
)
{
...
@@ -1332,7 +1343,6 @@ form.on('select(accountLevelFilter)', function(data) {
...
@@ -1332,7 +1343,6 @@ form.on('select(accountLevelFilter)', function(data) {
}
}
})
})
params
.
merchantBrandListJson
=
JSON
.
stringify
(
merchantForm
.
merchantBrandList
)
params
.
merchantBrandListJson
=
JSON
.
stringify
(
merchantForm
.
merchantBrandList
)
console
.
log
(
params
.
merchantBrandListJson
)
}
}
if
(
merchantForm
.
merchantFiles
.
length
)
{
if
(
merchantForm
.
merchantFiles
.
length
)
{
params
.
merchantFiles
=
JSON
.
stringify
(
merchantForm
.
merchantFiles
)
params
.
merchantFiles
=
JSON
.
stringify
(
merchantForm
.
merchantFiles
)
...
@@ -1358,7 +1368,7 @@ form.on('select(accountLevelFilter)', function(data) {
...
@@ -1358,7 +1368,7 @@ form.on('select(accountLevelFilter)', function(data) {
params
.
status
=
1
params
.
status
=
1
}
}
//
verifyMerchantName(params.merchantName,params)
verifyMerchantName
(
params
.
merchantName
,
params
)
// request(params, function (res) {
// request(params, function (res) {
// if (res.code == '0') {
// if (res.code == '0') {
// layer.msg('操作成功', {
// layer.msg('操作成功', {
...
@@ -2034,7 +2044,6 @@ loadSuperiorMerchants(currentPage).then(function(list) {
...
@@ -2034,7 +2044,6 @@ loadSuperiorMerchants(currentPage).then(function(list) {
// merchantId,
// merchantId,
function
renderAccountTypes
(
types
,
currentMerchantType
,
subAccountTypeList
,
accountLevel
)
{
function
renderAccountTypes
(
types
,
currentMerchantType
,
subAccountTypeList
,
accountLevel
)
{
console
.
log
(
types
,
currentMerchantType
,
subAccountTypeList
,
accountLevel
)
if
(
!
subAccountTypeList
)
subAccountTypeList
=
''
if
(
!
subAccountTypeList
)
subAccountTypeList
=
''
if
(
!
types
)
types
=
[];
if
(
!
types
)
types
=
[];
var
el
=
$
(
'#accountTypeElRole'
);
var
el
=
$
(
'#accountTypeElRole'
);
...
@@ -2054,7 +2063,6 @@ loadSuperiorMerchants(currentPage).then(function(list) {
...
@@ -2054,7 +2063,6 @@ loadSuperiorMerchants(currentPage).then(function(list) {
types
.
push
(
i
);
types
.
push
(
i
);
}
}
}
}
console
.
log
(
types
)
types
.
forEach
(
function
(
type
)
{
types
.
forEach
(
function
(
type
)
{
var
typeLabel
=
typeMapping
[
type
];
var
typeLabel
=
typeMapping
[
type
];
var
isChecked
=
currentMerchantType
.
includes
(
type
);
var
isChecked
=
currentMerchantType
.
includes
(
type
);
...
@@ -2589,6 +2597,7 @@ loadSuperiorMerchants(currentPage).then(function(list) {
...
@@ -2589,6 +2597,7 @@ loadSuperiorMerchants(currentPage).then(function(list) {
var
obj
=
{
title
:
item
.
accounttypeName
,
value
:
item
.
accounttypeId
}
var
obj
=
{
title
:
item
.
accounttypeName
,
value
:
item
.
accounttypeId
}
active
.
tabAdd
(
obj
,
productData
.
products
)
active
.
tabAdd
(
obj
,
productData
.
products
)
if
(
productData
.
products
&&
productData
.
products
.
length
!=
0
)
{
if
(
productData
.
products
&&
productData
.
products
.
length
!=
0
)
{
// console.log('进入页面',productData)
productData
.
products
.
forEach
(
j
=>
{
productData
.
products
.
forEach
(
j
=>
{
var
products
=
item
.
products
.
find
(
n
=>
n
.
productId
==
j
.
productId
)
var
products
=
item
.
products
.
find
(
n
=>
n
.
productId
==
j
.
productId
)
if
(
products
)
{
if
(
products
)
{
...
@@ -2807,6 +2816,7 @@ loadSuperiorMerchants(currentPage).then(function(list) {
...
@@ -2807,6 +2816,7 @@ loadSuperiorMerchants(currentPage).then(function(list) {
merchantNoTarget
:
superiorMerchant
[
0
]?.
value
,
merchantNoTarget
:
superiorMerchant
[
0
]?.
value
,
accountType
:
accountTypes
.
join
(
','
)
accountType
:
accountTypes
.
join
(
','
)
}
}
// console.log(params.accountTypes)
accountLevel
==
'1'
&&
delete
params
.
merchantNoTarget
accountLevel
==
'1'
&&
delete
params
.
merchantNoTarget
params
.
method
=
'merchants.api.merchant.updatePermissions'
params
.
method
=
'merchants.api.merchant.updatePermissions'
// 草稿
// 草稿
...
@@ -2816,7 +2826,6 @@ loadSuperiorMerchants(currentPage).then(function(list) {
...
@@ -2816,7 +2826,6 @@ loadSuperiorMerchants(currentPage).then(function(list) {
params
.
status
=
merchantForm
.
status
params
.
status
=
merchantForm
.
status
}
}
request
(
params
,
function
(
res
)
{
request
(
params
,
function
(
res
)
{
console
.
log
(
res
)
if
(
res
.
code
==
'0'
)
{
if
(
res
.
code
==
'0'
)
{
layer
.
msg
(
'操作成功'
,
{
layer
.
msg
(
'操作成功'
,
{
icon
:
1
icon
:
1
...
...
html/merchant/index.html
View file @
17b78ff
...
@@ -800,6 +800,7 @@
...
@@ -800,6 +800,7 @@
request
(
request
(
params
,
params
,
function
(
res
)
{
function
(
res
)
{
console
.
log
(
res
)
// 关闭loading效果
// 关闭loading效果
layer
.
close
(
loadingIndex
);
layer
.
close
(
loadingIndex
);
if
(
res
.
code
==
0
){
if
(
res
.
code
==
0
){
...
@@ -815,6 +816,7 @@
...
@@ -815,6 +816,7 @@
}
}
}
}
)
)
layer
.
close
(
loadingIndex
);
$
(
layero
).
find
(
'#fileInput'
).
on
(
'change'
,
function
(){
$
(
layero
).
find
(
'#fileInput'
).
on
(
'change'
,
function
(){
var
originalTemplateUrl
=
'https://img01.glsx.com.cn/weapp/resource/saas/scrm/xlsx/批量创建商户导入模版.xlsx'
;
var
originalTemplateUrl
=
'https://img01.glsx.com.cn/weapp/resource/saas/scrm/xlsx/批量创建商户导入模版.xlsx'
;
updateTemplateLink
(
originalTemplateUrl
,
'下载模板'
,
false
);
updateTemplateLink
(
originalTemplateUrl
,
'下载模板'
,
false
);
...
...
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