orders add if_usedcar about

This commit is contained in:
qianhy
2023-04-23 16:30:26 +08:00
committed by lccsw
parent 7baaf24ff3
commit 90e41232f0
4 changed files with 23 additions and 4 deletions
@@ -382,6 +382,7 @@ class Orders extends HD_Controller
$row_goods = $this->mdItems->get(array('id' => $row['item_id']));
$row['vin'] = $row_goods['vin'];
}
$row['if_usedcar_name'] = $row['if_usedcar'] ? ' (二手车)':'';
$row['delry_time'] = $row['delry_time'] != '0000-00-00 00:00:00'
? str_replace(" 00:00:00", "", $row['delry_time']) : '';
//获取车辆服务费
+10 -1
View File
@@ -46,12 +46,14 @@ class Ordersv2List
!$params['biz_type'] && $params['biz_type'] = '';
!strlen($params['over_id']) && $params['over_id'] = '';
!strlen($params['is_bill']) && $params['is_bill'] = '';
!strlen($params['if_usedcar']) && $params['if_usedcar'] = '';
$fieldAry = $this->get_fields($status_pid,0,$params['status']);
#$show_info['offlineSourcesAry'] = $this->ci->mdCustomers->offlineSources();//客户来源
$show_info['offlineSourcesAry'] = $this->ci->mdCustomers->offlineSources_search();
$show_info['paywayAry'] = $this->paywayAry;//付款方式
$show_info['overAry'] = $this->overAry;
$show_info['bizTypeAry'] = $this->ci->biz_model->type_ary();//门店类型
$show_info['usedcarAry'] = array(1=>'是', 0=>'否');
//渠道经理
$show_info['qdjl_lists'] = $this->ci->mdLichebUsers->select(array('group_id' => 4, 'status' => 1, 'biz_id<>' => '0')
, 'id desc', 0, 0, 'id,uname as name');
@@ -271,7 +273,10 @@ class Ordersv2List
$where = ["{$this->t1}.status>=" => 0];
$where["{$this->t1}.item_id in(select id from lc_items where vin like '%{$params['vin']}%')"] = null;
}
$fileds = "{$this->t1}.id,{$this->t1}.name,{$this->t1}.mobile,{$this->t1}.brand_id,{$this->t1}.s_id,{$this->t1}.v_id,
if (strlen($params['if_usedcar'])) {
$where = ["{$this->t1}.if_usedcar>=" => $params['if_usedcar']];
}
$fileds = "{$this->t1}.id,{$this->t1}.name,{$this->t1}.mobile,{$this->t1}.brand_id,{$this->t1}.s_id,{$this->t1}.v_id,{$this->t1}.if_usedcar,
{$this->t1}.cor_id,{$this->t1}.incor_id,{$this->t1}.money_json,{$this->t1}.payway,{$this->t1}.status,{$this->t1}.c_time,{$this->t1}.fines,
{$this->t1}.biz_id,{$this->t1}.bill_time,{$this->t1}.customer_id,{$this->t1}.owner_name,{$this->t1}.owner_mobile,{$this->t1}.main_type,{$this->t1}.info_json,
{$this->t1}.order_time,{$this->t1}.bill_time,{$this->t1}.item_id,{$this->t1}.over_time,{$this->t1}.sale_id,{$this->t1}.finance_id,{$this->t1}.refund_time,
@@ -449,6 +454,9 @@ class Ordersv2List
$fields['over_time'] = $val['over_time'] != '0000-00-00 00:00:00' ? date('Y-m-d',strtotime($val['over_time'])) : '';
$fields['refund_time'] = $val['refund_time'] != '0000-00-00 00:00:00' ? date('Y-m-d',strtotime($val['refund_time'])) : '';
$fields['vin'] = $items[$val['item_id']] ? $items[$val['item_id']] : '';
$fields['if_usedcar_name'] = $val['if_usedcar'] ? '是':'';
$if_usedcar_name = $val['if_usedcar'] ? ' (二手车)':'';
$if_usedcar_name && $fields['vin'] && $size<1000 && $fields['vin'] = "{$fields['vin']}{$if_usedcar_name}";
$fields['vin'] && $fields['car_name'] = $fields['car_name']."<br>".$fields['vin'];
$fields['ck_time'] = $val['ck_time'];
@@ -666,6 +674,7 @@ class Ordersv2List
$fields1['v_name'] = ['title' => '车型'];
$fields1['cor_name'] = ['title' => '车身颜色'];
$fields1['vin'] = ['title' => 'vin码'];
$fields1['if_usedcar_name'] = ['title' => '二手车'];
$fields1['city_name'] = ['title'=>'城市'];
$fields1['biz_type'] = ['title'=>'门店类型'];
$fields1['biz_name'] = ['title' => '门店'];
+1 -1
View File
@@ -98,7 +98,7 @@
<label class="am-para-label-con">
<span v-if="info.item_id">
<a href="javascript:void(0);" :data-modal="'/items/goods/goods/get_info?id='+info.item_id"
data-title="车辆信息">{{info.vin}}</a>
data-title="车辆信息">{{info.vin}}</a>{{info.if_usedcar_name}}
</span>
<span v-else>未选择</span>
<a @click="cancelItem" v-if="info.item_id" class='am-btn am-btn-default am-btn-xs'>取消分配</a>
+11 -2
View File
@@ -159,10 +159,19 @@
</div>
<div class="am-form-group fl">
<label class="am-para-label w80">车架号:</label>
<div class="am-para-inline w260">
<div class="am-para-inline w200">
<input name="vin" type="text" value="<?= $params['vin'] ?>"/>
</div>
</div>
<div class="am-form-group fl">
<label class="am-para-label w80">二手车:</label>
<div class="am-para-inline w80">
<select name="if_usedcar" v-model="params.if_usedcar">
<option value="">请选择</option>
<option :value="i" v-for="(v,i) in show_info.usedcarAry">{{v}}</option>
</select>
</div>
</div>
<div class="am-form-group" style="margin-bottom: 0px;"></div>
<div class="am-form-group fl">
<label class="am-para-label w100">销售员:</label>
@@ -381,7 +390,7 @@
attrcorAry: [],//车身颜色选项
admins: {cityAry: [], countyAry: [], bizAry: [], list: []},
lists: [],
show_info: {cfTitleAry: [], qdjl_lists: []},
show_info: {cfTitleAry: [], qdjl_lists: [], usedcarAry: []},
of2Ary: [],
},
mounted: function () {