Commit e6f783e7 by 李长胜

合并修改

2 parents 41c56dd9 7aae89d0
...@@ -95,6 +95,16 @@ ...@@ -95,6 +95,16 @@
color: #999; color: #999;
margin-left: 160px; margin-left: 160px;
} }
.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>
...@@ -358,6 +368,7 @@ ...@@ -358,6 +368,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 = {}
...@@ -419,7 +430,6 @@ ...@@ -419,7 +430,6 @@
lay('#endDate').html(value) lay('#endDate').html(value)
} }
}) })
init() init()
// helper.store.set('merchantMapObj', { // helper.store.set('merchantMapObj', {
...@@ -494,6 +504,13 @@ ...@@ -494,6 +504,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) {
...@@ -528,9 +545,6 @@ ...@@ -528,9 +545,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
...@@ -713,7 +727,7 @@ ...@@ -713,7 +727,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 {
...@@ -732,6 +746,8 @@ ...@@ -732,6 +746,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()
...@@ -1001,7 +1017,11 @@ ...@@ -1001,7 +1017,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++) {
...@@ -1020,6 +1040,9 @@ ...@@ -1020,6 +1040,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++) {
...@@ -1392,6 +1415,7 @@ ...@@ -1392,6 +1415,7 @@
$('#preStep').on('click', function () { $('#preStep').on('click', function () {
step = 1 step = 1
// editLevel = 3
init() init()
}) })
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!