admin_order_1101

This commit is contained in:
dengbw
2021-11-01 10:32:11 +08:00
parent 5fdcca327a
commit 278011ce0e
3 changed files with 68 additions and 19 deletions
+29
View File
@@ -29,10 +29,12 @@ class OrdersList
!$params['cf_title'] && $params['cf_title'] = '';
!$params['cf_clues'] && $params['cf_clues'] = '';
!$params['payway'] && $params['payway'] = '';
!$params['biz_type'] && $params['biz_type'] = '';
$fieldAry = $this->get_fields($status_pid);
$show_info['cfTitleAry'] = $this->ci->mdCustomers->get_sdata('cfrom');//来源类型
$show_info['cfCluesAry'] = $this->ci->mdCustomers->get_sdata('cfrom_clues');//线下来源
$show_info['paywayAry'] = $this->paywayAry;//付款方式
$show_info['bizTypeAry'] = $this->ci->biz_model->type_ary();//门店类型
//渠道经理
$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');
@@ -101,6 +103,9 @@ class OrdersList
$biz_ids = implode(',', $_SESSION['admin_info']['biz_id']);
$where["biz_id in ($biz_ids)"] = null;
}
if ($params['biz_type']) {
$where['biz_id in (select id from lc_biz where type = ' . $params['biz_type'] . ' and status=1)'] = null;
}
if ($params['cf_title'] || $params['cf_clues'] || $params['cfrom_id'] || $params['cfrom_id2']) {
$where_c = 'status>=0';
if ($params['cfrom_id'] == 24) {
@@ -283,6 +288,10 @@ class OrdersList
$biz_ids = implode(',', $_SESSION['admin_info']['biz_id']);
$where["$t2.biz_id in ($biz_ids)"] = null;
}
$biz_type = $params['biz_type'];
if ($biz_type) {
$where["$t2.biz_id in (select id from lc_biz where type = $biz_type and status=1)"] = null;
}
if ($params['cf_title'] || $params['cf_clues'] || $params['cfrom_id'] || $params['cfrom_id2']) {
$where_c = 'status>=0';
if ($params['cfrom_id'] == 24) {
@@ -502,6 +511,10 @@ class OrdersList
$biz_ids = implode(',', $_SESSION['admin_info']['biz_id']);
$where["$t2.biz_id in ($biz_ids)"] = null;
}
$biz_type = $params['biz_type'];
if ($biz_type) {
$where["$t2.biz_id in (select id from lc_biz where type = $biz_type and status=1)"] = null;
}
if ($params['cf_title'] || $params['cf_clues'] || $params['cfrom_id'] || $params['cfrom_id2']) {
$where_c = 'status>=0';
if ($params['cfrom_id'] == 24) {
@@ -676,6 +689,10 @@ class OrdersList
$biz_ids = implode(',', $_SESSION['admin_info']['biz_id']);
$where["$t2.biz_id in ($biz_ids)"] = null;
}
$biz_type = $params['biz_type'];
if ($biz_type) {
$where["$t2.biz_id in (select id from lc_biz where type = $biz_type and status=1)"] = null;
}
if ($params['cf_title'] || $params['cf_clues'] || $params['cfrom_id'] || $params['cfrom_id2']) {
$where_c = 'status>=0';
if ($params['cfrom_id'] == 24) {
@@ -868,6 +885,10 @@ class OrdersList
$biz_ids = implode(',', $_SESSION['admin_info']['biz_id']);
$where["$t2.biz_id in ($biz_ids)"] = null;
}
$biz_type = $params['biz_type'];
if ($biz_type) {
$where["$t2.biz_id in (select id from lc_biz where type = $biz_type and status=1)"] = null;
}
if ($params['cf_title'] || $params['cf_clues'] || $params['cfrom_id'] || $params['cfrom_id2']) {
$where_c = 'status>=0';
if ($params['cfrom_id'] == 24) {
@@ -1060,6 +1081,10 @@ class OrdersList
$biz_ids = implode(',', $_SESSION['admin_info']['biz_id']);
$where["$t2.biz_id in ($biz_ids)"] = null;
}
$biz_type = $params['biz_type'];
if ($biz_type) {
$where["$t2.biz_id in (select id from lc_biz where type = $biz_type and status=1)"] = null;
}
if ($params['cf_title'] || $params['cf_clues'] || $params['cfrom_id'] || $params['cfrom_id2']) {
$where_c = 'status>=0';
if ($params['cfrom_id'] == 24) {
@@ -1252,6 +1277,10 @@ class OrdersList
$biz_ids = implode(',', $_SESSION['admin_info']['biz_id']);
$where["$t2.biz_id in ($biz_ids)"] = null;
}
$biz_type = $params['biz_type'];
if ($biz_type) {
$where["$t2.biz_id in (select id from lc_biz where type = $biz_type and status=1)"] = null;
}
if ($params['cf_title'] || $params['cf_clues'] || $params['cfrom_id'] || $params['cfrom_id2']) {
$where_c = 'status>=0';
if ($params['cfrom_id'] == 24) {
+19 -9
View File
@@ -151,15 +151,6 @@
</select>
</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 show_info.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>
@@ -188,6 +179,24 @@
</select>
</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 show_info.qdjl_lists">{{v.name}}</option>
</select>
</div>
</div>
<div class="am-form-group fl">
<label class="am-para-label w100">门店类型:</label>
<div class="am-para-inline w100">
<select name="biz_type" v-model="params.biz_type">
<option value="">请选择</option>
<option :value="i" v-for="(v,i) in show_info.bizTypeAry">{{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>
@@ -397,6 +406,7 @@
that.params.brand_id = '';
that.params.city_id_admin = '';
that.params.qdjl_id = '';
that.params.biz_type = '';
}
},
watch: {
+20 -10
View File
@@ -132,15 +132,6 @@
</select>
</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 show_info.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>
@@ -169,6 +160,24 @@
</select>
</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 show_info.qdjl_lists">{{v.name}}</option>
</select>
</div>
</div>
<div class="am-form-group fl">
<label class="am-para-label w100">门店类型:</label>
<div class="am-para-inline w100">
<select name="biz_type" v-model="params.biz_type">
<option value="">请选择</option>
<option :value="i" v-for="(v,i) in show_info.bizTypeAry">{{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>
@@ -230,7 +239,7 @@
<th width="8%"><span>车辆平台价</span></th>
<th width="7%"><span>定金</span></th>
<th width="6%"><span>付款方式</span></th>
<th width="8%"><span>客户来源</span></th>
<th width="8%"><span>来源类型</span></th>
<th width="8%"><span>状态</span></th>
<th width="12%"><span>订单时间</span></th>
</tr>
@@ -389,6 +398,7 @@
that.params.brand_id = '';
that.params.city_id_admin = '';
that.params.qdjl_id = '';
that.params.biz_type = '';
}
},
watch: {