transfer_420
This commit is contained in:
@@ -52,7 +52,7 @@ class Transfer extends HD_Controller
|
||||
$this->data['statusAry'] = $this->mdTransfer->statusAry();
|
||||
$this->data['abnormalAry'] = $this->mdTransfer->abnormalAry();
|
||||
$this->data['autoList'] = $autoList;
|
||||
$this->data['showInfo'] = ['uidTypeAry' => $this->mdTransfer->uidTypeAry(), 'takeCar' => $re['takeCar']];
|
||||
$this->data['showInfo'] = ['uidTypeAry' => $this->mdTransfer->uidTypeAry(), 'takeCar' => $re['takeCar'], 'trailerFeesAry' => [1 => '有', 2 => '无']];
|
||||
$this->data['pager'] = array('count' => ceil($total / $params['size']), 'curr' => $params['page'], 'totle' => $total);
|
||||
$this->data['_title'] = '车辆调拨';
|
||||
$this->show_view('items/transfer/lists', true);
|
||||
@@ -72,6 +72,15 @@ class Transfer extends HD_Controller
|
||||
} else {
|
||||
$params['abnormal'] = '';
|
||||
}
|
||||
if ($params['trailer_fees']) {
|
||||
if ($params['trailer_fees'] == 1) {
|
||||
$where['trailer_fees >'] = 0;
|
||||
} else {
|
||||
$where['trailer_fees'] = 0;
|
||||
}
|
||||
} else {
|
||||
$params['trailer_fees'] = '';
|
||||
}
|
||||
!$params['out_city_id'] && $params['out_city_id'] = '';
|
||||
!$params['out_county_id'] && $params['out_county_id'] = '';
|
||||
!$params['out_admin_id'] && $params['out_admin_id'] = '';
|
||||
@@ -168,7 +177,7 @@ class Transfer extends HD_Controller
|
||||
foreach ($rows as $v) {
|
||||
$jsondata = $v['jsondata'] ? json_decode($v['jsondata'], true) : [];
|
||||
$item_info = $this->item_info($v['item_id'], 1);
|
||||
$out_uid_title = $in_uid_title = '-';
|
||||
$out_uid_title = $in_uid_title = $transport_name = '-';
|
||||
$tag = $params['size'] == 10000 ? '/' : '<br>';
|
||||
$out_addr_name = $in_addr_name = '';
|
||||
if ($v['out_uid']) {
|
||||
@@ -192,13 +201,15 @@ class Transfer extends HD_Controller
|
||||
}
|
||||
$in_addr_name = $this->take_biz(['uid' => $v['in_uid'], 'biz_id' => $v['biz_id'], 'addr_id' => $v['addr_id']], $v['in_type']);
|
||||
}
|
||||
$jsondata['transport']['name'] && $transport_name = $jsondata['transport']['name'];
|
||||
$setValue = [
|
||||
'id' => $v['id'],
|
||||
'title' => $item_info['title'],
|
||||
'vin' => $item_info['vin'],
|
||||
'out_uid_title' => $out_uid_title,
|
||||
'in_uid_title' => $in_uid_title,
|
||||
'transport_name' => $jsondata['transport']['name'],
|
||||
'transport_name' => $transport_name,
|
||||
'trailer_fees' => $v['trailer_fees'],
|
||||
'abnormal' => $this->mdTransfer->abnormalAry($v['abnormal']),
|
||||
'c_time' => date('Y.m.d H:i', $v['c_time']),
|
||||
'status' => $v['status'],
|
||||
@@ -217,7 +228,6 @@ class Transfer extends HD_Controller
|
||||
$re_biz = $this->mdBiz->get(array('id' => $v['fees_biz_id']));
|
||||
$trailer_fees .= '-' . $re_biz['biz_name'];
|
||||
}
|
||||
$setValue['trailer_fees'] = $v['trailer_fees'];
|
||||
$setValue['fees'] = $trailer_fees;
|
||||
$setValue['reason'] = $jsondata['reason'] ? $jsondata['reason'] : '';
|
||||
}
|
||||
|
||||
@@ -48,7 +48,6 @@ class Customer extends HD_Controller
|
||||
!$params['level'] && $params['level'] = '';
|
||||
!$params['of_id'] && $params['of_id'] = '';
|
||||
!$params['of2_id'] && $params['of2_id'] = '';
|
||||
!$params['brand_id'] && $params['brand_id'] = '';
|
||||
$page = $params['page'] = $params['page'] ? intval($params['page']) : 1;
|
||||
$size = $params['size'] = $params['size'] ? intval($params['size']) : 20;
|
||||
|
||||
@@ -75,8 +74,6 @@ class Customer extends HD_Controller
|
||||
}
|
||||
!$params['search_tp'] && $params['search_tp'] = 'mobile';
|
||||
strlen($params['status']) && $where["status"] = $params['status'];
|
||||
$params['cf_title'] && $where['cf_title'] = $params['cf_title'];
|
||||
$params['brand_id'] && $where['brand_id'] = $params['brand_id'];
|
||||
if ($params['qdjl_id']) {
|
||||
$where["biz_id in(select biz_id from lc_app_licheb_channel_biz where uid={$params['qdjl_id']})"] = null;
|
||||
}
|
||||
@@ -207,8 +204,8 @@ class Customer extends HD_Controller
|
||||
'mobile' => $val['mobile'],
|
||||
'mobile_sub' => $mobile_sub,
|
||||
'level' => $val['level'],
|
||||
'cf_title' => $val['cf_title'],
|
||||
'of_title' => $of_title,
|
||||
'of2_id' => $val['of2_id'],
|
||||
'status_name' => $status_arr[$val['status']],
|
||||
'admin_name' => isset($admin_rows[$val['admin_id']]) ? $admin_rows[$val['admin_id']][0]['uname'] : '',
|
||||
'biz_name' => isset($biz_rows[$val['biz_id']]) ? $biz_rows[$val['biz_id']][0]['biz_name'] : '',
|
||||
@@ -219,8 +216,6 @@ class Customer extends HD_Controller
|
||||
//渠道经理
|
||||
$qdjl_lists = $this->app_licheb_users_model->select(array('group_id' => 4, 'status' => 1, 'biz_id<>' => '0'), 'id desc', 0, 0, 'id,uname as name');
|
||||
$show_info['levelAry'] = $this->customers_model->get_sdata('level');
|
||||
$show_info['cfTitleAry'] = $this->customers_model->get_sdata('cfrom');
|
||||
$show_info['brandAry'] = $this->auto_brand_model->select(['status' => 1], 'id desc', '', '', 'id,name');
|
||||
$show_info['offlineSourcesAry'] = $offlineSources;
|
||||
$this->data['show_info'] = $show_info;
|
||||
$this->data['lists'] = $lists;
|
||||
|
||||
@@ -26,6 +26,15 @@
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="am-form-group fl">
|
||||
<label class="am-para-label w70">费用:</label>
|
||||
<div class="am-para-inline w100">
|
||||
<select id="trailer_fees" name="trailer_fees" v-model="params.trailer_fees">
|
||||
<option value="">选择费用</option>
|
||||
<option :value="i" v-for="(v,i) in showInfo.trailerFeesAry">{{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 w70">车型:</label>
|
||||
@@ -225,7 +234,7 @@
|
||||
</th>
|
||||
<th width="15%"><span>车辆</span></th>
|
||||
<th width="14%"><span>车架号</span></th>
|
||||
<th width="6%"><span>运输人员</span></th>
|
||||
<th width="6%"><span>运输人/费</span></th>
|
||||
<th width="11%"><span>调拨时间</span></th>
|
||||
<th width="19%"><span>提车人</span></th>
|
||||
<th width="19%"><span>接车人</span></th>
|
||||
@@ -241,7 +250,7 @@
|
||||
<td><input type="checkbox" name="ids[]" class="order-ids" value="<?= $v['id'] ?>"/></td>
|
||||
<td><?= $v['title'] ?></td>
|
||||
<td><?= $v['vin'] ?></td>
|
||||
<td><?= $v['transport_name'] ?></td>
|
||||
<td><?= $v['transport_name'] ?><?= $v['trailer_fees'] ? '<br>' . $v['trailer_fees'] : '' ?></td>
|
||||
<td><?= $v['c_time'] ?></td>
|
||||
<td><?= $v['out_uid_title'] ?><?= $v['out_addr_name'] ? '<br>' . $v['out_addr_name'] : '' ?></td>
|
||||
<td><?= $v['in_uid_title'] ?><?= $v['in_addr_name'] ? '<br>' . $v['in_addr_name'] : '' ?></td>
|
||||
@@ -317,6 +326,7 @@
|
||||
$('#v_id').val('0');
|
||||
$('#out_time').val('');
|
||||
$('#in_time').val('');
|
||||
that.params.trailer_fees = '';
|
||||
that.params.status = '';
|
||||
that.params.abnormal = '';
|
||||
that.takeCar1 = {
|
||||
|
||||
@@ -50,7 +50,7 @@
|
||||
<tr>
|
||||
<td><span class="mr5">客户姓名:</span></td>
|
||||
<td><input id="info_name" type="text" v-model="info.name" placeholder="请输入客户姓名"
|
||||
style="width: 200px;"></td>
|
||||
style="width: 220px;"></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
@@ -58,7 +58,7 @@
|
||||
<td class="table-td"><span class="mr5">加入时间:</span>{{info.c_time}}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="table-td"><span class="mr5">线下来源:</span>{{info.of_title}}</td>
|
||||
<td class="table-td"><span class="mr5">客户来源:</span>{{info.of_title}}</td>
|
||||
<td class="table-td">
|
||||
<template v-if="info.cf_user"><span class="mr5">分销来源:</span>{{info.cf_user}}</template>
|
||||
</td>
|
||||
|
||||
@@ -34,15 +34,6 @@
|
||||
<input id="title" name="title" type="text" v-model="params.title"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="am-form-group fl">
|
||||
<label class="am-para-label w100">来源类型:</label>
|
||||
<div class="am-form-group am-para-inline w120">
|
||||
<select name="cf_title" v-model="params.cf_title">
|
||||
<option value="">请选择</option>
|
||||
<option :value="v" v-for="(v,i) in show_info.cfTitleAry">{{v}}</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="am-form-group fl">
|
||||
<label class="am-para-label w100">客户等级:</label>
|
||||
<div class="am-para-inline w100">
|
||||
@@ -53,48 +44,17 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="am-form-group fl">
|
||||
<label class="am-para-label w100">车型品牌:</label>
|
||||
<label class="am-para-label w100">渠道经理:</label>
|
||||
<div class="am-para-inline w100">
|
||||
<select name="brand_id" v-model="params.brand_id">
|
||||
<select name="qdjl_id" v-model="params.qdjl_id">
|
||||
<option value=''>请选择</option>
|
||||
<option :value="v.id" v-for="(v,i) in show_info.brandAry">{{v.name}}</option>
|
||||
<option :value="v.id" v-for="(v,i) in qdjl_lists">{{v.name}}</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>
|
||||
<div class="am-para-inline w120">
|
||||
<select title="城市" name="city_id_admin" v-model="params.city_id_admin">
|
||||
<option value="">选择城市</option>
|
||||
<option :value="v.id" v-for="(v,i) in admins.cityAry">{{v.name}}</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="am-para-inline w120">
|
||||
<select title="行政区" name="county_id_admin" v-model="params.county_id_admin">
|
||||
<option value="">选择行政区</option>
|
||||
<option :value="v.id" v-for="(v,i) in admins.countyAry">{{v.name}}</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="am-para-inline w120">
|
||||
<select name="biz_id_admin" v-model="params.biz_id_admin">
|
||||
<option value="">门店</option>
|
||||
<template v-for="(v,i) in admins.bizAry">
|
||||
<option :value="v.id">{{v.title}}</option>
|
||||
</template>
|
||||
</select>
|
||||
</div>
|
||||
<div class="am-para-inline w120">
|
||||
<select name="admin_id" v-model="params.admin_id">
|
||||
<option value="">销售员</option>
|
||||
<template v-for="(v,i) in admins.list">
|
||||
<option :value="v.id">{{v.title}}</option>
|
||||
</template>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="am-form-group fl">
|
||||
<label class="am-para-label w100">线下来源:</label>
|
||||
<label class="am-para-label w100">客户来源:</label>
|
||||
<div class="am-form-group am-para-inline w120">
|
||||
<select name="of_id" v-model="params.of_id">
|
||||
<option value="">请选择</option>
|
||||
@@ -109,11 +69,33 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="am-form-group fl">
|
||||
<label class="am-para-label w100">渠道经理:</label>
|
||||
<div class="am-para-inline w100">
|
||||
<select name="qdjl_id" v-model="params.qdjl_id">
|
||||
<option value=''>请选择</option>
|
||||
<option :value="v.id" v-for="(v,i) in qdjl_lists">{{v.name}}</option>
|
||||
<label class="am-para-label w100">销售员:</label>
|
||||
<div class="am-para-inline w120">
|
||||
<select title="城市" name="city_id_admin" v-model="params.city_id_admin">
|
||||
<option value="">选择城市</option>
|
||||
<option :value="v.id" v-for="(v,i) in admins.cityAry">{{v.name}}</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="am-para-inline w120">
|
||||
<select title="行政区" name="county_id_admin" v-model="params.county_id_admin">
|
||||
<option value="">选择行政区</option>
|
||||
<option :value="v.id" v-for="(v,i) in admins.countyAry">{{v.name}}</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="am-para-inline w160">
|
||||
<select name="biz_id_admin" v-model="params.biz_id_admin">
|
||||
<option value="">门店</option>
|
||||
<template v-for="(v,i) in admins.bizAry">
|
||||
<option :value="v.id">{{v.title}}</option>
|
||||
</template>
|
||||
</select>
|
||||
</div>
|
||||
<div class="am-para-inline w120">
|
||||
<select name="admin_id" v-model="params.admin_id">
|
||||
<option value="">销售员</option>
|
||||
<template v-for="(v,i) in admins.list">
|
||||
<option :value="v.id">{{v.title}}</option>
|
||||
</template>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
@@ -135,7 +117,6 @@
|
||||
</div>
|
||||
</div>
|
||||
<? } ?>
|
||||
|
||||
<div class="am-form-group" style="margin-bottom: 0px;"></div>
|
||||
<div class="am-form-group fl" style="margin-bottom: 0px;">
|
||||
<div class="am-form-group fl ml10">
|
||||
@@ -162,12 +143,11 @@
|
||||
<thead>
|
||||
<tr>
|
||||
<th width="3%">ID</th>
|
||||
<th width="5%"><span>客户姓名</span></th>
|
||||
<th width="7%"><span>客户姓名</span></th>
|
||||
<th width="5%"><span>客户电话</span></th>
|
||||
<th width="5%"><span>客户等级</span></th>
|
||||
<th width="6%"><span>来源类型</span></th>
|
||||
<th width="8%"><span>线下来源</span></th>
|
||||
<th width="8%"><span>所属门店</span></th>
|
||||
<th width="10%"><span>客户来源</span></th>
|
||||
<th width="10%"><span>所属门店</span></th>
|
||||
<th width="5%"><span>状态</span></th>
|
||||
<th width="5%"><span>销售员</span></th>
|
||||
<th width="6%"><span>最后联系时间</span></th>
|
||||
@@ -180,7 +160,6 @@
|
||||
<td>{{v.name}}</td>
|
||||
<td>{{v.mobile_sub}}</td>
|
||||
<td>{{v.level}}</td>
|
||||
<td>{{v.cf_title}}</td>
|
||||
<td>{{v.of_title}}</td>
|
||||
<td>{{v.biz_name}}</td>
|
||||
<td>{{v.status_name}}</td>
|
||||
@@ -188,12 +167,12 @@
|
||||
<td>{{v.cont_time}}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="10">
|
||||
<td colspan="9">
|
||||
<div class="row">
|
||||
<div class="col-md-4 align-l">
|
||||
</div>
|
||||
<div class="col-md-8 align-r" style="padding-right: 30px;">
|
||||
<template v-if="v.cf_title=='平台分配'">
|
||||
<template v-if="v.of2_id==37">
|
||||
<a :data-modal="'/receiver/customer/edit_adviser?id='+v.id" data-title="改派"
|
||||
href="javascript:void(0);" class="am-btn am-btn-primary am-btn-xs">改派</a>
|
||||
<a href="javascript:void (0);" data-ajax="post"
|
||||
@@ -350,7 +329,6 @@
|
||||
that.params.city_id_admin = '';
|
||||
that.params.of_id = '';
|
||||
that.params.of2_id = '';
|
||||
that.params.cf_title = '';
|
||||
$('#cf_time').val('');
|
||||
$(".order-times").map(function () {
|
||||
var id = this.value;
|
||||
|
||||
Reference in New Issue
Block a user