Merge branch 'feature/admin_optimize' into release

master
zhengyongxing 5 years ago
commit 601151718f

@ -22,6 +22,10 @@ class StatementMangementController extends ThinkController
$map['create_time'] = ['LT', strtotime(I('time_end')) + 86399]; $map['create_time'] = ['LT', strtotime(I('time_end')) + 86399];
} }
if ($_REQUEST['verify_status']||$_REQUEST['verify_status']=='0') {
$map['verify_status'] = $_REQUEST['verify_status'];
}
if ($_REQUEST['statement_type']||$_REQUEST['statement_type']=='0') { if ($_REQUEST['statement_type']||$_REQUEST['statement_type']=='0') {
if($_REQUEST['statement_type']=='2') { if($_REQUEST['statement_type']=='2') {
$map['second_party_info'] = ['like','%"order_type":1%']; $map['second_party_info'] = ['like','%"order_type":1%'];
@ -845,12 +849,12 @@ class StatementMangementController extends ThinkController
$isVerify = M('statement','tab_')->where(['id'=>['in',$order]])->save(['verify_status'=>1]); $isVerify = M('statement','tab_')->where(['id'=>['in',$order]])->save(['verify_status'=>1]);
if ($isVerify) { if ($isVerify) {
$this->success('审核通过成功'); $this->ajaxReturn(['status'=>1]);
} else { } else {
$this->error('审核通过失败'); $this->ajaxReturn(['status'=>0]);
} }
} else { } else {
$this->error('没有订单数据'); $this->ajaxReturn(['status'=>0]);
} }
} }
@ -864,12 +868,12 @@ class StatementMangementController extends ThinkController
$isVerify = M('statement','tab_')->where(['id'=>['in',$order]])->save(['verify_status'=>2]); $isVerify = M('statement','tab_')->where(['id'=>['in',$order]])->save(['verify_status'=>2]);
if ($isVerify) { if ($isVerify) {
$this->success('审核拒绝成功'); $this->ajaxReturn(['status'=>1]);
} else { } else {
$this->error('审核拒绝失败'); $this->ajaxReturn(['status'=>0]);
} }
} else { } else {
$this->error('没有订单数据'); $this->ajaxReturn(['status'=>0]);
} }
} }

@ -81,6 +81,14 @@
<span class="add-on"><i class="icon-th"></i></span> <span class="add-on"><i class="icon-th"></i></span>
</div> </div>
</div> </div>
<div class="input-list input-list-promote search_label_rehab">
<select id="verify_status" name="verify_status" class="select_gallery" >
<option value="">请选择审核状态</option>
<option value="0">未审核</option>
<option value="1">审核通过</option>
<option value="2">审核拒绝</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">
@ -213,9 +221,22 @@
return; return;
} }
var url = "/admin.php?s=/statementMangement/verifyStatementStatus/order/" + text; $.ajax({
url: "{:U('statementMangement/verifyStatementStatus')}",
window.location.href = url; type: "get",
data: {order: text},
dataType: 'json',
success: function (data) {
if (data.status == 0) {
layer.msg('审核通过失败');
} else {
layer.msg('审核通过成功')
setTimeout(function(){
window.parent.reload();
},1500);
}
}
});
}) })
@ -236,9 +257,24 @@
return; return;
} }
var url = "/admin.php?s=/statementMangement/rejectStatementStatus/order/" + text; $.ajax({
url: "{:U('statementMangement/rejectStatementStatus')}",
type: "get",
data: {order: text},
dataType: 'json',
success: function (data) {
if (data.status == 0) {
layer.msg('审核拒绝失败');
} else {
layer.msg('审核拒绝成功')
setTimeout(function(){
window.parent.reload();
},1500);
}
}
});
window.location.href = url;
}) })
}) })

Loading…
Cancel
Save