Commit a1d9647a authored by hujun's avatar hujun

行政审核

parent 5014c8af
......@@ -74,7 +74,7 @@ class Refund extends Basic
// 0申请 1审核中 2退款成功 3已审核4驳回
switch ($this->params['status']) {
case 1 :
$refund_where['status'] = ['in', '0,1,4'];
$refund_where['status'] = ['in', '0,1,4,5'];
break;
case 2 :
$refund_where['status'] = 3;
......@@ -117,12 +117,14 @@ class Refund extends Basic
foreach ($check_agent_id as $v) {
if ($v['operation_id'] == $this->userId) {
return $this->response(101, '你已审核过');
// return $this->response(101, '你已审核过');
}
}
if (count($check_agent_id) >= 2) {
if (count($check_agent_id) >= 1) {
$status = 3; //已审核
}
$save_data['status'] = 1;
$num = $m_refund_log->insertData($save_data);
break;
......@@ -161,6 +163,17 @@ class Refund extends Basic
$record_data['house_id'] = $house_title['house_id'];
$record_data['title'] = '退款驳回-商铺';
$push->recordCheck(1, [$refund_data[0]['agent_id']], $this->userId, $record_data);
break;
case 5 :
$log_where['status'] = 0;
$check_agent_id = $m_refund_log->getListAll('operation_id', $log_where);
foreach ($check_agent_id as $v) {
if ($v['operation_id'] == $this->userId) {
return $this->response(101, '你已审核过');
}
}
$save_data['status'] = $status = 5;
$num = $m_refund_log->insertData($save_data);
}
if ($num) {
......
......@@ -300,7 +300,8 @@
<a href="javascript:;">退款出账</a>
</li>-->
<div class="btn-group">
<button type="button" class="choose_btn btn btn-info" data-value="1" style="margin-left: 20px;">审核中</button>
<button type="button" class="choose_btn btn btn-info" data-value="0" style="margin-left: 20px;">行政审核</button>
<button type="button" class="choose_btn btn btn-default" data-value="5">财务审核</button>
<button type="button" class="choose_btn btn btn-default" data-value="3">已审核</button>
<button type="button" class="choose_btn btn btn-default" data-value="2">已退款</button>
<button type="button" class="choose_btn btn btn-default" data-value="4">已驳回</button>
......
......@@ -11,7 +11,7 @@ define(['doT', 'text!temp/refund_shop_template_tpl.html', 'css!style/home.css',
listData :"",
moneyTotal : "" ,
agent_id_phone : '',
check_status : 1 ,
check_status : 0 ,
deleteRefundId:'',
check_id:'',
init: function() {
......@@ -111,7 +111,21 @@ define(['doT', 'text!temp/refund_shop_template_tpl.html', 'css!style/home.css',
//审核通过
$(document).on('click','#check_yes',function(e){
var text = $('#check_past').val();
that.checkRefund(1,text);
var type = 0;
switch (parseInt(that.check_status)) {
case 0 :
type = 5;break;
case 1 :
type = 2;break;
case 5 :
type = 1;break;
default :
alert("参数错误");
return false;
}
that.checkRefund(type,text);
});
//驳回
$(document).on('click','#check_no',function(e){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment