|
@@ -54,11 +54,10 @@ Class Soft_cash
|
|
|
}
|
|
|
|
|
|
if($soft){
|
|
|
-
|
|
|
- if($audit == 3){
|
|
|
+ if($audit == 3 ){
|
|
|
$update['set_status'] = 4;
|
|
|
|
|
|
- }elseif($audit == 2){
|
|
|
+ } elseif($audit == 2){
|
|
|
$update['set_status'] = 3;
|
|
|
$update['set_zdate'] = time();
|
|
|
$order['role'] = $info['role'];
|
|
@@ -88,6 +87,7 @@ Class Soft_cash
|
|
|
}
|
|
|
}
|
|
|
$ids=Dever::db('agent/soft_cash')->update($update);
|
|
|
+ // echo Dever::sql();die;
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -251,9 +251,20 @@ Class Soft_cash
|
|
|
$purl = Dever::url('project/database/update?project=agent&table=soft_cash&where_id='.$info['id'].'&audit=3&col=id,audit,audit_desc', 'manage');
|
|
|
if (Dever::load('manage/auth')->checkFunc('agent.soft_cash', 'edit2', '驳回')) {
|
|
|
if($info['status'] == 4){
|
|
|
-
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
+ if (Dever::load('manage/auth')->checkFunc('agent.soft_cash', 'close', '取消订单')) {
|
|
|
+ if ($info['status'] == 4) {
|
|
|
+ # 未完成审核的订单,可以随时挂起
|
|
|
+ $button[] = array
|
|
|
+ (
|
|
|
+ 'type' => 'action',
|
|
|
+ 'link' => Dever::url('lib/soft_cash.setOrderStatus?id=' . $info['id'] . '&value=4', 'agent'),
|
|
|
+ 'name' => '取消订单',
|
|
|
+ );
|
|
|
+ }
|
|
|
+ }
|
|
|
$button[] = array
|
|
|
(
|
|
|
'type' => 'link',
|
|
@@ -262,6 +273,23 @@ Class Soft_cash
|
|
|
);
|
|
|
return $button;
|
|
|
}
|
|
|
+ public function setOrderStatus_api()
|
|
|
+ {
|
|
|
+ $where['where_id'] = Dever::input('id');
|
|
|
+ $order = Dever::db('agent/soft_cash')->find($where['where_id']);
|
|
|
+ if ($order) {
|
|
|
+ $where['status'] = Dever::input('value');
|
|
|
+ if ($where['status'] == 4) {
|
|
|
+ $where['status'] = 5;
|
|
|
+ $where['state'] = 2;
|
|
|
+ }
|
|
|
+ // print_R($where);die;
|
|
|
+ Dever::db('agent/soft_cash')->update($where);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ return 'reload';
|
|
|
+ }
|
|
|
private function show_agreement($info, $role, $sign_pic, &$result)
|
|
|
{
|
|
|
$table = array();
|
|
@@ -361,7 +389,7 @@ Class Soft_cash
|
|
|
|
|
|
#数据导出
|
|
|
public function out_soft_cash_api($data){
|
|
|
- $header = array('合同乙方', '手机号码', '合同总期数(年)', '合同类型', '签订日期', '合同金额', '购买日期', '录入日期', '终审日期');
|
|
|
+ $header = array('合同乙方', '手机号码', '身份证号码','合同总期数(年)', '合同类型', '签订日期', '合同金额', '购买日期', '录入日期', '终审日期');
|
|
|
$body = array();
|
|
|
$agreement_name = '';
|
|
|
foreach($data as $k => $v){
|
|
@@ -434,6 +462,7 @@ Class Soft_cash
|
|
|
(
|
|
|
$member['name'],
|
|
|
$v['mobile'],
|
|
|
+ $member['idcard'],
|
|
|
$year,
|
|
|
$name,
|
|
|
$fdate,
|