Commit de260d03 by 胡悦

添加商户

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