Commit 7c03bf2d by cwq0219

商户管理

1 parent 14d48b28
......@@ -111,7 +111,10 @@
<script type="text/html" id="merchantBtns">
<a class="layui-btn-xs" lay-event="handleDetail">查看</a>
{{# if((d.btn.edit)){ }}
<a class="layui-btn-xs" lay-event="handleEdit">修改</a>
<a class="layui-btn-xs" lay-event="handleEdit">修改基本信息</a>
{{# } }}
{{# if((d.btn.edit)){ }}
<a class="layui-btn-xs" lay-event="handleAuthority">修改权限</a>
{{# } }}
{{# if((d.btn.createSubMerchant)){ }}
<a class="layui-btn-xs" lay-event="handleAddMerchant">创建子商户/门店</a>
......@@ -219,11 +222,21 @@
break
// 修改
case 'handleEdit':
// 1-创建新商户;2-创建子商户;3-修改
// editLevel - 1-创建新商户;2-创建子商户;3-修改
// step - 1-基本信息;2-权限树
go('merchant', 'edit', {
editLevel: 3,
id: row.id
// merchantName: row.merchantName
id: row.id,
step: 1
})
break
case 'handleAuthority':
// editLevel - 1-创建新商户;2-创建子商户;3-修改
// step - 1-基本信息;2-权限树
go('merchant', 'edit', {
editLevel: 3,
id: row.id,
step: 2
})
break
// 创建子商户/门店
......@@ -236,7 +249,9 @@
break
// 创建员工
case 'handleAddStaff':
go('employee', 'add')
go('employee', 'add', {
merchantId: row.id
})
break
// 修改账户有效期
case 'handleVaildPeriod':
......@@ -440,7 +455,8 @@
function init() {
// 运营系统
if (!isDxternal) {
// if (!isDxternal) {
if (isDxternal) {
getChannel()
getAccountLevel()
getAccountType()
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!