edit-admin-order_item
This commit is contained in:
@@ -505,13 +505,14 @@ class Orders extends HD_Controller
|
||||
if ($params['status'] == 2) { //设置等待放款
|
||||
$this->orders_model->update(['status' => 2], ['id' => $row['o_id']]);
|
||||
$ckcar = $this->order_ckcars_model->get(['o_id' => $row['o_id']]);
|
||||
$replace = [
|
||||
'o_id' => $row['o_id'],
|
||||
'status' => 0,
|
||||
'c_time' => time()
|
||||
];
|
||||
$ckcar && $replace['id'] = $ckcar['id'];
|
||||
$this->order_ckcars_model->replace($replace);
|
||||
if(!$ckcar){
|
||||
$replace = [
|
||||
'o_id' => $row['o_id'],
|
||||
'status' => 0,
|
||||
'c_time' => time()
|
||||
];
|
||||
$this->order_ckcars_model->add($replace);
|
||||
}
|
||||
} elseif ($params['status'] == 3) { //设置完成按揭
|
||||
$order_row = $this->orders_model->get(['id' => $row['o_id']], 'status');
|
||||
if ($order_row['status'] > 2) {
|
||||
|
||||
@@ -403,12 +403,12 @@
|
||||
},
|
||||
carModal: function () {
|
||||
var that = this
|
||||
if (!that.info.payway) {
|
||||
if (!that.info.loan_info || that.info.loan_info.status < 2) {
|
||||
layer.msg('按揭审核尚未通过~', {icon: 2});
|
||||
return;
|
||||
}
|
||||
}
|
||||
//if (!that.info.payway) {
|
||||
// if (!that.info.loan_info || that.info.loan_info.status < 2) {
|
||||
// layer.msg('按揭审核尚未通过~', {icon: 2});
|
||||
// return;
|
||||
// }
|
||||
//}
|
||||
that.setauto(1);
|
||||
that.setauto(2);
|
||||
that.setauto(3);
|
||||
|
||||
Reference in New Issue
Block a user