edit-upda-order_time

This commit is contained in:
lccsw
2021-11-26 11:34:00 +08:00
parent a41b8ff77f
commit 7febbcd69d
4 changed files with 11 additions and 9 deletions
+2 -2
View File
@@ -35,9 +35,9 @@
</div> </div>
</div> </div>
<div class="am-form-group wp50 fl"> <div class="am-form-group wp50 fl">
<label class="am-para-label">精品最低价:</label> <label class="am-para-label">精品价:</label>
<div class="am-para-input"> <div class="am-para-input">
<input type="text" placeholder="请输入精品最低" name="price_fine_floor" v-model="info.price_fine_floor" style="display: inline;width: 60%"/> <input type="text" placeholder="请输入精品" name="price_fine_floor" v-model="info.price_fine_floor" style="display: inline;width: 60%"/>
<span></span> <span></span>
</div> </div>
</div> </div>
+1 -1
View File
@@ -54,7 +54,7 @@
<th width="7%"><span>定金</span></th> <th width="7%"><span>定金</span></th>
<th width="7%"><span>保险报价</span></th> <th width="7%"><span>保险报价</span></th>
<th width="7%"><span>精品报价</span></th> <th width="7%"><span>精品报价</span></th>
<th width="7%"><span>精品最低价</span></th> <th width="7%"><span>精品价</span></th>
<th width="7%"><span>金融报价</span></th> <th width="7%"><span>金融报价</span></th>
<th width="7%"><span>公司加价</span></th> <th width="7%"><span>公司加价</span></th>
<th width="9%"><span>一级分销佣金</span></th> <th width="9%"><span>一级分销佣金</span></th>
+7 -6
View File
@@ -160,7 +160,11 @@ class Payment_service extends HD_Service{
$this->load->model('receiver/order/receiver_order_loans_model', 'next_model'); $this->load->model('receiver/order/receiver_order_loans_model', 'next_model');
} }
$next_row = $this->next_model->get(['o_id'=>$row['id']]); $next_row = $this->next_model->get(['o_id'=>$row['id']]);
$this->orders_model->update(['status' => $status,'order_time' => date('Y-m-d H:i:s')], ['id' => $row['id']]); $order_update = [
'status' => $status,
];
$row['order_time'] == '0000-00-00 00:00:00' && $order_update['order_time'] = date('Y-m-d H:i:s');
$this->orders_model->update($order_update, ['id' => $row['id']]);
if(!$next_row){ if(!$next_row){
$add_data = [ $add_data = [
'o_id' => $row['id'], 'o_id' => $row['id'],
@@ -214,11 +218,8 @@ class Payment_service extends HD_Service{
$pay_price && $upd['pay_price'] = $pay_price; $pay_price && $upd['pay_price'] = $pay_price;
$res = $this->app_liche_orders_model->update($upd,array('id'=>$order['id'])); $res = $this->app_liche_orders_model->update($upd,array('id'=>$order['id']));
if($res) { if($res) {
//更新订单状态 //更新订单下定时间
$row = $this->orders_model->get(['id' => $order['o_id']]); $this->orders_model->update(['order_time' => date('Y-m-d H:i:s')], ['id' => $order['o_id']]);
if($order['total_price']==$row['deposit']){ //意向金等于定金 更新订单下定时间
$this->orders_model->update(['order_time' => date('Y-m-d H:i:s')], ['id' => $row['id']]);
}
return array('code'=>1,'msg'=>'操作成功'); return array('code'=>1,'msg'=>'操作成功');
}else{ }else{
return array('code'=>0,'msg'=>'更新失败'); return array('code'=>0,'msg'=>'更新失败');
+1
View File
@@ -84,6 +84,7 @@ alter table lc_auto_cars
alter table lc_auto_cars modify attrs char(30) not null default '' comment '属性组合:{type0id}_{type1id}_{type2id}'; alter table lc_auto_cars modify attrs char(30) not null default '' comment '属性组合:{type0id}_{type1id}_{type2id}';
alter table lc_auto_cars drop index attrs; alter table lc_auto_cars drop index attrs;
alter table lc_auto_cars add price_floor double(10,2) not null default '0.00' comment '车辆底价' after price_car; alter table lc_auto_cars add price_floor double(10,2) not null default '0.00' comment '车辆底价' after price_car;
alter table lc_auto_cars add price_fine_floor double(10,2) not null default '0.00' comment '精品底价' after price_fine;
-- ---------------------------- -- ----------------------------