Commit de260d03 by 胡悦

添加商户

1 parent 240811bf
...@@ -318,7 +318,17 @@ ...@@ -318,7 +318,17 @@
$('#addUpdateTitle').text('修改员工') $('#addUpdateTitle').text('修改员工')
$('#merchantNameSelect').addClass('hide') $('#merchantNameSelect').addClass('hide')
} }
findAllMerchant(function (result) { }) findAllMerchant(function (result) {
if (accountInfo && accountInfo.merchantAccountLevel ==4) {
const merchantName = result[0].merchantName
$('#merchantIdText').text(merchantName)
merchantId = result[0].id
$('#merchantIdText').removeClass('hide')
$('#merchantIdText').addClass('show')
$('#merchantNameSelect').addClass('hide')
getList(merchantId)
}
})
} }
...@@ -496,7 +506,7 @@ ...@@ -496,7 +506,7 @@
// merchantName.append(new Option(item.merchantName, item.id)) // merchantName.append(new Option(item.merchantName, item.id))
// }) // })
// form.render('select') // form.render('select')
callback(true) callback(result.data)
} }
}) })
} }
......
...@@ -144,7 +144,7 @@ ...@@ -144,7 +144,7 @@
{ field: 'createdAccount', title: '创建者', align: 'center' }, { field: 'createdAccount', title: '创建者', align: 'center' },
{ field: 'merchantName', title: '商户名(商户号)', align: 'center', width: 160 }, { field: 'merchantName', title: '商户名(商户号)', align: 'center', width: 160 },
{ field: 'updatedTime', title: '更新时间', align: 'center', width: 90 }, { field: 'updatedTime', title: '更新时间', align: 'center', width: 90 },
{ title: '操作', width: 160, align: 'left', toolbar: '#employeeBar' }, { title: '操作', width: 160, align: 'center', toolbar: '#employeeBar' },
{ field: 'statusName', title: '启用开关', width: 85, templet: '#switchTpl', unresize: true } { field: 'statusName', title: '启用开关', width: 85, templet: '#switchTpl', unresize: true }
] ]
var colums = [ var colums = [
...@@ -159,7 +159,7 @@ ...@@ -159,7 +159,7 @@
{ field: 'belongingEntmicroName', title: '所属企微', align: 'center', width: 125 }, { field: 'belongingEntmicroName', title: '所属企微', align: 'center', width: 125 },
{ field: 'statusName', title: '状态', align: 'center' }, { field: 'statusName', title: '状态', align: 'center' },
{ field: 'updatedTime', title: '更新时间', align: 'center', width: 180 }, { field: 'updatedTime', title: '更新时间', align: 'center', width: 180 },
{ title: '操作', width: 160, align: 'left', toolbar: '#employeeBar' }, { title: '操作', width: 160, align: 'center', toolbar: '#employeeBar' },
{ field: 'statusName', title: '启用开关', width: 85, templet: '#switchTpl', unresize: true } { field: 'statusName', title: '启用开关', width: 85, templet: '#switchTpl', unresize: true }
] ]
//创建table实例 //创建table实例
......
...@@ -1868,7 +1868,7 @@ ...@@ -1868,7 +1868,7 @@
}) })
function submitAuth() { function submitAuth() {
if (!accountInfo && merchantAccountLevel == 4 && !merchantForm.effectiveStarttime) { if (!accountInfo && merchantAccountLevel == 4 && qs('status') == 1 && !merchantForm.effectiveStarttime) {
layer.msg('请去“修改基本信息”填写账户有效期', { layer.msg('请去“修改基本信息”填写账户有效期', {
icon: 2 icon: 2
}) })
......
...@@ -149,25 +149,25 @@ ...@@ -149,25 +149,25 @@
</select> </select>
</div> </div>
</div> </div>
<div class="layui-inline loginName" style="margin-left: 40px;"> <div class="layui-inline loginName" style="margin-left: 40px;">
<div class="layui-input-inline updateSelectAngle" style="width: 120px"> <div class="layui-input-inline updateSelectAngle" style="width: 120px">
<select name="accountOrPhone" lay-filter="nameFilter"> <select name="accountOrPhone" lay-filter="nameFilter">
<option value="0">登录账号名</option> <option value="0">登录账号名</option>
<option value="1">手机号</option> <option value="1">手机号</option>
</select> </select>
</div> </div>
<!-- margin-left: -5px --> <!-- margin-left: -5px -->
<div class="layui-input-inline" style="width: 246px; margin-left: -4px"> <div class="layui-input-inline" style="width: 246px; margin-left: -4px">
<input <input
class="layui-input" class="layui-input"
type="text" type="text"
placeholder="请输入" placeholder="请输入"
name="merchantLoginAccount" name="merchantLoginAccount"
id="updateCircleAngle" id="updateCircleAngle"
onkeydown="if (event.keyCode == 13) {event.keyCode = 0;event.returnValue = false;}" onkeydown="if (event.keyCode == 13) {event.keyCode = 0;event.returnValue = false;}"
/> />
</div>
</div> </div>
</div>
<div id="accountType" class="layui-inline hide"> <div id="accountType" class="layui-inline hide">
<label class="layui-form-label">账户类型:</label> <label class="layui-form-label">账户类型:</label>
<div class="layui-input-inline" style="width: 246px;"> <div class="layui-input-inline" style="width: 246px;">
...@@ -197,12 +197,17 @@ ...@@ -197,12 +197,17 @@
/> />
</div> </div>
</div> </div>
</div> </div>
<div class="layui-inline searchInputBtn" style="float: right;"> <div id="parentMerchant" class="layui-inline hide">
<button class="layui-btn" lay-submit lay-filter="searchSubmit">查询</button> <label class="layui-form-label">上级商户:</label>
<div class="layui-input-inline" style="width: 246px">
<input class="layui-input" type="text" placeholder="请输入" name="parentMerchant">
</div>
</div> </div>
</div> <div class="layui-inline searchInputBtn" style="float: right;">
<button class="layui-btn" lay-submit lay-filter="searchSubmit">查询</button>
</div>
</div>
</form> </form>
<div class="table-page merchantTable"> <div class="table-page merchantTable">
<table class="layui-table" id="merchantTable" lay-filter="merchant-table-filter"></table> <table class="layui-table" id="merchantTable" lay-filter="merchant-table-filter"></table>
...@@ -414,7 +419,7 @@ ...@@ -414,7 +419,7 @@
field: 'merchantLoginAccount', field: 'merchantLoginAccount',
title: '登录账户', title: '登录账户',
align: 'center', align: 'center',
width: 108 width: 180
}, },
{ {
field: 'accountLevelName', field: 'accountLevelName',
...@@ -450,10 +455,10 @@ ...@@ -450,10 +455,10 @@
field: 'updatedTime', field: 'updatedTime',
title: '更新时间', title: '更新时间',
align: 'center', align: 'center',
width: 90 width: 180
}, },
{ {
align: 'left', align: 'center',
title: '操作', title: '操作',
toolbar: '#merchantBtns', toolbar: '#merchantBtns',
width: 150, width: 150,
...@@ -833,7 +838,7 @@ ...@@ -833,7 +838,7 @@
$('#relevancyEl').removeClass('hide') $('#relevancyEl').removeClass('hide')
$('#relevancyEl').addClass('show') $('#relevancyEl').addClass('show')
} }
if (accountInfo.merchantAccountLevel ==4 ) { if (accountInfo.merchantAccountLevel == 4) {
$('#relevancySearch').addClass('hide') $('#relevancySearch').addClass('hide')
} }
// $('#relevancySearch').addClass('show') // $('#relevancySearch').addClass('show')
...@@ -850,6 +855,8 @@ ...@@ -850,6 +855,8 @@
// $('#relevancySearch').remove() // $('#relevancySearch').remove()
$('#model').addClass('show') $('#model').addClass('show')
$('#accountType').addClass('show') $('#accountType').addClass('show')
$('#parentMerchant').addClass('show')
$('#parentMerchant').removeClass('hide')
} }
// 运营平台 // 运营平台
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!