Commit e6f783e7 by 李长胜

合并修改

2 parents 41c56dd9 7aae89d0
......@@ -95,6 +95,16 @@
color: #999;
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>
<title>商户编辑</title>
</head>
......@@ -358,6 +368,7 @@
var step = 1
var merchantId = null
var parentMerchantId = null
var accountTypeVisible = false
// 是否工厂
var isFactory = true
var parentInfo = {}
......@@ -419,7 +430,6 @@
lay('#endDate').html(value)
}
})
init()
// helper.store.set('merchantMapObj', {
......@@ -494,6 +504,13 @@
}
}
})
if (!params.accounttypeId) {
layer.msg('账户类型不能为空', {
icon: 5,
anim: 6
})
return false
}
var elList = $('.business-scope-cust')
var tempList = []
$.each(elList, function (index, item) {
......@@ -528,9 +545,6 @@
}
console.log(editLevel)
console.log(params)
layer.msg('操作成功', {
icon: 1
})
request(params, function (res) {
console.log(res)
// authorityTree
......@@ -713,7 +727,7 @@
editLevel = qs('editLevel')
isFactory = (qs('isFactory') == 'true')
step = qs('step')
if (step == 1) {
treeIsShow(false)
} else {
......@@ -732,6 +746,8 @@
$('#preStep').remove()
if (editLevel == 3) {
$('#firstBtn').text('确定')
$('#validPeriodEl').attr('disabled', true)
accountTypeVisible = true
$('#accountLevelEl').attr('disabled', true)
} else {
getBusiScope()
......@@ -1001,7 +1017,11 @@
if (item.dictValue == parseInt(parentLevelList[k])) {
var optionEl = $('<input type="checkbox" class="accounttypeId" name="accountType[' + item
.dictValue + ']" title=' +
item.dictLabel + ' value="' + item.dictValue + '">')
item.dictLabel + ' value="' + item.dictValue +
'">')
if (accountTypeVisible) {
optionEl.attr('disabled', true)
}
// 修改-回显
if (editLevel == 3) {
for (var i = 0; i <= checkedList.length; i++) {
......@@ -1020,6 +1040,9 @@
var optionEl = $('<input type="checkbox" class="accounttypeId" name="accountType[' + item
.dictValue + ']" title=' +
item.dictLabel + ' value="' + item.dictValue + '">')
if (accountTypeVisible) {
optionEl.attr('disabled', true)
}
// 修改-回显
if (editLevel == 3) {
for (var i = 0; i <= checkedList.length; i++) {
......@@ -1392,6 +1415,7 @@
$('#preStep').on('click', function () {
step = 1
// editLevel = 3
init()
})
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!