edit-admin-order_item

This commit is contained in:
lccsw
2021-12-30 17:36:30 +08:00
parent 1e4c976981
commit dd7f8c600a
2 changed files with 14 additions and 13 deletions
+8 -7
View File
@@ -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) {
+6 -6
View File
@@ -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);