Commit 7c03bf2d by cwq0219

商户管理

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