新增充值权限查看

master
yulingwei 5 years ago
parent f0acbc1c24
commit 23f2334e45

@ -1235,7 +1235,7 @@ class PromoteController extends ThinkController
$this->display(); $this->display();
} }
public function belong_add($promote_id=null, $company_belong = null, $company_relation = null, $remark = null) public function belong_add($promote_id=null, $company_belong = null, $company_relation = null, $remark = null, $can_view_recharge = null)
{ {
if (IS_POST) { if (IS_POST) {
if (empty($promote_id)) { if (empty($promote_id)) {
@ -1245,6 +1245,7 @@ class PromoteController extends ThinkController
'promote_id' => $promote_id, 'promote_id' => $promote_id,
'company_belong' => $company_belong, 'company_belong' => $company_belong,
'company_relation' => $company_relation, 'company_relation' => $company_relation,
'can_view_recharge' => $can_view_recharge,
'verify_status' => 0, 'verify_status' => 0,
'remark' => $remark, 'remark' => $remark,
'applicant_id' => getAdmin(), 'applicant_id' => getAdmin(),
@ -1271,7 +1272,7 @@ class PromoteController extends ThinkController
} }
} }
public function belong_edit($promote_id=null, $company_belong = null, $company_relation = null, $remark = null) public function belong_edit($promote_id=null, $company_belong = null, $company_relation = null, $remark = null, $can_view_recharge = null)
{ {
if (IS_POST) { if (IS_POST) {
if (empty($promote_id)) { if (empty($promote_id)) {
@ -1281,6 +1282,7 @@ class PromoteController extends ThinkController
'promote_id' => $promote_id, 'promote_id' => $promote_id,
'company_belong' => $company_belong, 'company_belong' => $company_belong,
'company_relation' => $company_relation, 'company_relation' => $company_relation,
'can_view_recharge' => $can_view_recharge,
'verify_status' => 0, 'verify_status' => 0,
'remark' => $remark, 'remark' => $remark,
'applicant_id' => getAdmin(), 'applicant_id' => getAdmin(),
@ -1320,7 +1322,8 @@ class PromoteController extends ThinkController
foreach ($promote_belongs as $promote_belong) { foreach ($promote_belongs as $promote_belong) {
$update = [ $update = [
'company_belong' => $promote_belong['company_belong'], 'company_belong' => $promote_belong['company_belong'],
'company_relation' => $promote_belong['company_relation'] 'company_relation' => $promote_belong['company_relation'],
'can_view_recharge' => $promote_belong['can_view_recharge'],
]; ];
$res = M("promote", "tab_") $res = M("promote", "tab_")
->where("chain like '%/{$promote_belong['promote_id']}/%' or id={$promote_belong['promote_id']} ") ->where("chain like '%/{$promote_belong['promote_id']}/%' or id={$promote_belong['promote_id']} ")

@ -73,7 +73,13 @@
<option value="2">审核未通过</option> <option value="2">审核未通过</option>
</select> </select>
</div> </div>
<div class="input-list input-list-channelstatus">
<select name="can_view_recharge">
<option value="">充值信息权限</option>
<option value="0">禁止</option>
<option value="1">开放</option>
</select>
</div>
<input type="hidden" name="" value="" class="sortBy"> <input type="hidden" name="" value="" class="sortBy">
<input type="hidden" name="type" value="{$_GET['type']}"> <input type="hidden" name="type" value="{$_GET['type']}">
<div class="input-list"> <div class="input-list">
@ -100,6 +106,7 @@
<th>身份状态</th> <th>身份状态</th>
<th>内外团</th> <th>内外团</th>
<th>归属状态</th> <th>归属状态</th>
<th>充值信息权限</th>
<th>申请时间</th> <th>申请时间</th>
<th>备注</th> <th>备注</th>
<th>审核</th> <th>审核</th>
@ -181,6 +188,14 @@
<span>只维护</span> <span>只维护</span>
<?php }?> <?php }?>
</td> </td>
<td>
<?php if($data['can_view_recharge'] == 0) {?>
<span>禁止</span>
<?php }?>
<?php if(intval($data['can_view_recharge']) == 1) {?>
<span>开放</span>
<?php }?>
</td>
<td>{:set_show_time($data['applicant_time'])}</td> <td>{:set_show_time($data['applicant_time'])}</td>
<td>{$data['remark']}</td> <td>{$data['remark']}</td>
<td> <td>

@ -89,6 +89,22 @@
<!-- <span class="notice-text"></span>--> <!-- <span class="notice-text"></span>-->
</td> </td>
</tr> </tr>
<tr id="can_view_recharge">
<td class="l">充值信息查看权限:</td>
<td class="r table_radio">
<span class="form_radio table_btn">
<label >
<input type="radio" value="0" name="can_view_recharge" checked="checked"> 禁止
</label >
<label >
<input type="radio" value="1" name="can_view_recharge" > 开放
</label>
</span>
<!-- <span class="notice-text"></span>-->
</td>
</tr>
<tr> <tr>
<td class="l">备注:</td> <td class="l">备注:</td>
<td> <textarea name="remark" class="" placeholder="备注" ></textarea></td> <td> <textarea name="remark" class="" placeholder="备注" ></textarea></td>

@ -100,6 +100,26 @@
</td> </td>
</tr> </tr>
<tr id="can_view_recharge">
<td class="l">充值信息查看权限:</td>
<td class="r table_radio">
<span class="form_radio table_btn">
<label >
<input type="radio" value="0" name="can_view_recharge" <?php if($data['can_view_recharge'] ==0):?>
checked="checked"
<?php endif?>
> 禁止
</label >
<label >
<input type="radio" value="1" name="can_view_recharge" <?php if($data['can_view_recharge'] ==1):?>
checked="checked"
<?php endif?>> 开放
</label>
</span>
<!-- <span class="notice-text"></span>-->
</td>
</tr>
<tr> <tr>
<td class="l">备注:</td> <td class="l">备注:</td>
<td> <textarea name="remark" class="" placeholder="备注" >{$data['remark']}</textarea></td> <td> <textarea name="remark" class="" placeholder="备注" >{$data['remark']}</textarea></td>

@ -1075,5 +1075,9 @@ CREATE TABLE `sys_document_pop_rules` (
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin; ) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;
-- 是否需要修复旧数据
ALTER TABLE `tab_promote` ALTER TABLE `tab_promote`
ADD COLUMN `can_view_recharge` tinyint(1) NOT NULL default 0 COMMENT '是否显示充值数据'; ADD COLUMN `can_view_recharge` tinyint(1) NOT NULL default 0 COMMENT '是否显示充值数据 0否 1是';
ALTER TABLE `tab_promote_belong`
ADD COLUMN `can_view_recharge` tinyint(1) NOT NULL default 0 COMMENT '是否显示充值数据 0否 1是';

Loading…
Cancel
Save