liche update for admin order lists search by admin_id
This commit is contained in:
@@ -68,6 +68,16 @@ class Agent extends HD_Controller{
|
||||
$params['cor_id'] = '';
|
||||
}
|
||||
|
||||
//销售员筛选
|
||||
if($params['admin_id']){
|
||||
$where['admin_id'] = $params['admin_id'];
|
||||
} else {
|
||||
$params['city_id_admin'] = '';
|
||||
$params['county_id_admin'] = '';
|
||||
$params['biz_id_admin'] = '';
|
||||
$params['admin_id'] = '';
|
||||
}
|
||||
|
||||
$count = $this->order_agents_model->count_order($where,$t2);
|
||||
$lists = [];
|
||||
if($count){
|
||||
|
||||
@@ -68,6 +68,16 @@ class Bill extends HD_Controller{
|
||||
$params['cor_id'] = '';
|
||||
}
|
||||
|
||||
//销售员筛选
|
||||
if($params['admin_id']){
|
||||
$where['admin_id'] = $params['admin_id'];
|
||||
} else {
|
||||
$params['city_id_admin'] = '';
|
||||
$params['county_id_admin'] = '';
|
||||
$params['biz_id_admin'] = '';
|
||||
$params['admin_id'] = '';
|
||||
}
|
||||
|
||||
$count = $this->order_bills_model->count_order($where,$t2);
|
||||
$lists = [];
|
||||
if($count){
|
||||
|
||||
@@ -68,6 +68,16 @@ class Ckcar extends HD_Controller{
|
||||
$params['cor_id'] = '';
|
||||
}
|
||||
|
||||
//销售员筛选
|
||||
if($params['admin_id']){
|
||||
$where['admin_id'] = $params['admin_id'];
|
||||
} else {
|
||||
$params['city_id_admin'] = '';
|
||||
$params['county_id_admin'] = '';
|
||||
$params['biz_id_admin'] = '';
|
||||
$params['admin_id'] = '';
|
||||
}
|
||||
|
||||
$count = $this->order_ckcars_model->count_order($where,$t2);
|
||||
$lists = [];
|
||||
if($count){
|
||||
|
||||
@@ -68,6 +68,16 @@ class Delivery extends HD_Controller{
|
||||
$params['cor_id'] = '';
|
||||
}
|
||||
|
||||
//销售员筛选
|
||||
if($params['admin_id']){
|
||||
$where['admin_id'] = $params['admin_id'];
|
||||
} else {
|
||||
$params['city_id_admin'] = '';
|
||||
$params['county_id_admin'] = '';
|
||||
$params['biz_id_admin'] = '';
|
||||
$params['admin_id'] = '';
|
||||
}
|
||||
|
||||
$count = $this->order_deliverys_model->count_order($where,$t2);
|
||||
$lists = [];
|
||||
if($count){
|
||||
|
||||
@@ -65,6 +65,16 @@ class Loan extends HD_Controller{
|
||||
$params['cor_id'] = '';
|
||||
}
|
||||
|
||||
//销售员筛选
|
||||
if($params['admin_id']){
|
||||
$where['admin_id'] = $params['admin_id'];
|
||||
} else {
|
||||
$params['city_id_admin'] = '';
|
||||
$params['county_id_admin'] = '';
|
||||
$params['biz_id_admin'] = '';
|
||||
$params['admin_id'] = '';
|
||||
}
|
||||
|
||||
$count = $this->order_loans_model->count_order($where,$t2);
|
||||
$lists = [];
|
||||
if($count){
|
||||
|
||||
@@ -75,6 +75,16 @@ class Sign extends HD_Controller{
|
||||
$params['cor_id'] = '';
|
||||
}
|
||||
|
||||
//销售员筛选
|
||||
if($params['admin_id']){
|
||||
$where['admin_id'] = $params['admin_id'];
|
||||
} else {
|
||||
$params['city_id_admin'] = '';
|
||||
$params['county_id_admin'] = '';
|
||||
$params['biz_id_admin'] = '';
|
||||
$params['admin_id'] = '';
|
||||
}
|
||||
|
||||
$count = $this->order_signs_model->count_order($where);
|
||||
$lists = [];
|
||||
if($count){
|
||||
|
||||
@@ -61,24 +61,18 @@
|
||||
<option :value="v.id" v-for="(v,i) in brandAry">{{v.name}}</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="am-form-group fl">
|
||||
<div class="am-para-inline w120">
|
||||
<select name="s_id" v-model="params.s_id">
|
||||
<option value="">选择车系</option>
|
||||
<option :value="v.id" v-for="(v,i) in seryAry">{{v.name}}</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="am-form-group fl">
|
||||
<div class="am-para-inline w120">
|
||||
<select name="v_id" v-model="params.v_id">
|
||||
<option value="">选择车型</option>
|
||||
<option :value="v.id" v-for="(v,i) in attrvAry">{{v.title}}</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="am-form-group">
|
||||
<div class="am-para-inline w120">
|
||||
<select name="cor_id" v-model="params.cor_id">
|
||||
<option value="">车身颜色</option>
|
||||
@@ -86,6 +80,37 @@
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="am-form-group">
|
||||
<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" style="margin-bottom: 0px;"></div>
|
||||
<div class="am-form-group fl" style="margin-bottom: 0px;">
|
||||
<div class="am-form-group fl ml10">
|
||||
@@ -180,6 +205,7 @@
|
||||
seryAry:[],
|
||||
attrvAry:[],
|
||||
attrcorAry: [],//车身颜色选项
|
||||
admins: {cityAry: [], countyAry: [], bizAry: [], list: []},
|
||||
lists: []
|
||||
},
|
||||
mounted: function () {
|
||||
@@ -187,6 +213,7 @@
|
||||
vm.lists = <?=json_encode($lists)?>;
|
||||
vm.params = <?=json_encode($params)?>;
|
||||
vm.init_brands();
|
||||
vm.init_citys();
|
||||
},
|
||||
methods: {
|
||||
init_brands:function(){
|
||||
@@ -205,6 +232,25 @@
|
||||
complete: function () {}
|
||||
});
|
||||
},
|
||||
init_citys:function() {
|
||||
var vm = this;
|
||||
$.ajax({
|
||||
type: 'get',
|
||||
url: '/common/area',
|
||||
dataType: 'json',
|
||||
data: {
|
||||
id: '350',
|
||||
key: 'city',
|
||||
type: 1
|
||||
},
|
||||
success: function (response) {
|
||||
if (response.code == 1) {
|
||||
vm.cityAry = response.data;
|
||||
vm.admins.cityAry = JSON.parse(JSON.stringify(response.data));
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
reset:function(){
|
||||
var that = this;
|
||||
$("#search_tp").val('mobile');
|
||||
@@ -288,6 +334,97 @@
|
||||
vm.params.cor_id = '';
|
||||
vm.params.v_id = '';
|
||||
}
|
||||
},
|
||||
'params.city_id_admin':function(nv, ov){
|
||||
var that = this;
|
||||
if(nv == ''){
|
||||
that.admins.countyAry = [];
|
||||
that.params.county_id_admin = '';
|
||||
} else {
|
||||
if(nv.substring(0,4) != that.params.county_id_admin.substring(0, 4)){
|
||||
that.params.county_id_admin = '';
|
||||
}
|
||||
$.ajax({
|
||||
type: 'get',
|
||||
url: '/common/area',
|
||||
dataType: 'json',
|
||||
data: {
|
||||
id: nv,
|
||||
key:'county',
|
||||
type:1
|
||||
},
|
||||
success:function(response){
|
||||
if (response.code == 1) {
|
||||
that.admins.countyAry = response.data;
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
'params.county_id_admin':function(nv, ov){
|
||||
var that = this;
|
||||
if(nv == ''){
|
||||
that.admins.bizAry = [];
|
||||
that.params.biz_id_admin = '';
|
||||
} else {
|
||||
$.ajax({
|
||||
type: 'post',
|
||||
url: '/biz/store/store/json_lists',
|
||||
dataType: 'json',
|
||||
data: {
|
||||
city_id: that.params.city_id_admin,
|
||||
county_id: that.params.county_id_admin,
|
||||
status:1
|
||||
},
|
||||
success:function(response){
|
||||
if (response.code == 1) {
|
||||
that.admins.bizAry = response.data.list;
|
||||
if(that.params.biz_id_admin>0){
|
||||
var biz_id = '';
|
||||
for(var i in that.admins.bizAry){
|
||||
if(that.params.biz_id_admin == that.admins.bizAry[i].id){
|
||||
biz_id = that.params.biz_id_admin;
|
||||
break;
|
||||
}
|
||||
}
|
||||
that.params.biz_id_admin = biz_id;
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
'params.biz_id_admin':function(nv, ov){
|
||||
var that = this;
|
||||
if(nv == ''){
|
||||
that.admins.list = [];
|
||||
that.params.admin_id = '';
|
||||
} else {
|
||||
$.ajax({
|
||||
type: 'post',
|
||||
url: '/app/licheb/member/json_lists',
|
||||
dataType: 'json',
|
||||
data: {
|
||||
biz_id: nv,
|
||||
status:1
|
||||
},
|
||||
success:function(response){
|
||||
if (response.code == 1) {
|
||||
that.admins.list = response.data.list;
|
||||
if(that.params.admin_id>0){
|
||||
var admin_id = '';
|
||||
for(var i in that.admins.list){
|
||||
if(that.params.admin_id == that.admins.list[i].id){
|
||||
admin_id = that.params.admin_id;
|
||||
break;
|
||||
}
|
||||
}
|
||||
that.params.admin_id = admin_id;
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
@@ -61,24 +61,18 @@
|
||||
<option :value="v.id" v-for="(v,i) in brandAry">{{v.name}}</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="am-form-group fl">
|
||||
<div class="am-para-inline w120">
|
||||
<select name="s_id" v-model="params.s_id">
|
||||
<option value="">选择车系</option>
|
||||
<option :value="v.id" v-for="(v,i) in seryAry">{{v.name}}</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="am-form-group fl">
|
||||
<div class="am-para-inline w120">
|
||||
<select name="v_id" v-model="params.v_id">
|
||||
<option value="">选择车型</option>
|
||||
<option :value="v.id" v-for="(v,i) in attrvAry">{{v.title}}</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="am-form-group">
|
||||
<div class="am-para-inline w120">
|
||||
<select name="cor_id" v-model="params.cor_id">
|
||||
<option value="">车身颜色</option>
|
||||
@@ -86,6 +80,37 @@
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="am-form-group">
|
||||
<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" style="margin-bottom: 0px;"></div>
|
||||
<div class="am-form-group fl" style="margin-bottom: 0px;">
|
||||
<div class="am-form-group fl ml10">
|
||||
@@ -180,6 +205,7 @@
|
||||
seryAry:[],
|
||||
attrvAry:[],
|
||||
attrcorAry: [],//车身颜色选项
|
||||
admins: {cityAry: [], countyAry: [], bizAry: [], list: []},
|
||||
lists: []
|
||||
},
|
||||
mounted: function () {
|
||||
@@ -187,6 +213,7 @@
|
||||
vm.lists = <?=json_encode($lists)?>;
|
||||
vm.params = <?=json_encode($params)?>;
|
||||
vm.init_brands();
|
||||
vm.init_citys();
|
||||
},
|
||||
methods: {
|
||||
init_brands:function(){
|
||||
@@ -205,6 +232,25 @@
|
||||
complete: function () {}
|
||||
});
|
||||
},
|
||||
init_citys:function() {
|
||||
var vm = this;
|
||||
$.ajax({
|
||||
type: 'get',
|
||||
url: '/common/area',
|
||||
dataType: 'json',
|
||||
data: {
|
||||
id: '350',
|
||||
key: 'city',
|
||||
type: 1
|
||||
},
|
||||
success: function (response) {
|
||||
if (response.code == 1) {
|
||||
vm.cityAry = response.data;
|
||||
vm.admins.cityAry = JSON.parse(JSON.stringify(response.data));
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
reset:function(){
|
||||
var that = this;
|
||||
$("#search_tp").val('mobile');
|
||||
@@ -288,6 +334,97 @@
|
||||
vm.params.cor_id = '';
|
||||
vm.params.v_id = '';
|
||||
}
|
||||
},
|
||||
'params.city_id_admin':function(nv, ov){
|
||||
var that = this;
|
||||
if(nv == ''){
|
||||
that.admins.countyAry = [];
|
||||
that.params.county_id_admin = '';
|
||||
} else {
|
||||
if(nv.substring(0,4) != that.params.county_id_admin.substring(0, 4)){
|
||||
that.params.county_id_admin = '';
|
||||
}
|
||||
$.ajax({
|
||||
type: 'get',
|
||||
url: '/common/area',
|
||||
dataType: 'json',
|
||||
data: {
|
||||
id: nv,
|
||||
key:'county',
|
||||
type:1
|
||||
},
|
||||
success:function(response){
|
||||
if (response.code == 1) {
|
||||
that.admins.countyAry = response.data;
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
'params.county_id_admin':function(nv, ov){
|
||||
var that = this;
|
||||
if(nv == ''){
|
||||
that.admins.bizAry = [];
|
||||
that.params.biz_id_admin = '';
|
||||
} else {
|
||||
$.ajax({
|
||||
type: 'post',
|
||||
url: '/biz/store/store/json_lists',
|
||||
dataType: 'json',
|
||||
data: {
|
||||
city_id: that.params.city_id_admin,
|
||||
county_id: that.params.county_id_admin,
|
||||
status:1
|
||||
},
|
||||
success:function(response){
|
||||
if (response.code == 1) {
|
||||
that.admins.bizAry = response.data.list;
|
||||
if(that.params.biz_id_admin>0){
|
||||
var biz_id = '';
|
||||
for(var i in that.admins.bizAry){
|
||||
if(that.params.biz_id_admin == that.admins.bizAry[i].id){
|
||||
biz_id = that.params.biz_id_admin;
|
||||
break;
|
||||
}
|
||||
}
|
||||
that.params.biz_id_admin = biz_id;
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
'params.biz_id_admin':function(nv, ov){
|
||||
var that = this;
|
||||
if(nv == ''){
|
||||
that.admins.list = [];
|
||||
that.params.admin_id = '';
|
||||
} else {
|
||||
$.ajax({
|
||||
type: 'post',
|
||||
url: '/app/licheb/member/json_lists',
|
||||
dataType: 'json',
|
||||
data: {
|
||||
biz_id: nv,
|
||||
status:1
|
||||
},
|
||||
success:function(response){
|
||||
if (response.code == 1) {
|
||||
that.admins.list = response.data.list;
|
||||
if(that.params.admin_id>0){
|
||||
var admin_id = '';
|
||||
for(var i in that.admins.list){
|
||||
if(that.params.admin_id == that.admins.list[i].id){
|
||||
admin_id = that.params.admin_id;
|
||||
break;
|
||||
}
|
||||
}
|
||||
that.params.admin_id = admin_id;
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
@@ -61,24 +61,18 @@
|
||||
<option :value="v.id" v-for="(v,i) in brandAry">{{v.name}}</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="am-form-group fl">
|
||||
<div class="am-para-inline w120">
|
||||
<select name="s_id" v-model="params.s_id">
|
||||
<option value="">选择车系</option>
|
||||
<option :value="v.id" v-for="(v,i) in seryAry">{{v.name}}</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="am-form-group fl">
|
||||
<div class="am-para-inline w120">
|
||||
<select name="v_id" v-model="params.v_id">
|
||||
<option value="">选择车型</option>
|
||||
<option :value="v.id" v-for="(v,i) in attrvAry">{{v.title}}</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="am-form-group">
|
||||
<div class="am-para-inline w120">
|
||||
<select name="cor_id" v-model="params.cor_id">
|
||||
<option value="">车身颜色</option>
|
||||
@@ -86,6 +80,37 @@
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="am-form-group">
|
||||
<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" style="margin-bottom: 0px;"></div>
|
||||
<div class="am-form-group fl" style="margin-bottom: 0px;">
|
||||
<div class="am-form-group fl ml10">
|
||||
@@ -180,6 +205,7 @@
|
||||
seryAry:[],
|
||||
attrvAry:[],
|
||||
attrcorAry: [],//车身颜色选项
|
||||
admins: {cityAry: [], countyAry: [], bizAry: [], list: []},
|
||||
lists: []
|
||||
},
|
||||
mounted: function () {
|
||||
@@ -187,6 +213,7 @@
|
||||
vm.lists = <?=json_encode($lists)?>;
|
||||
vm.params = <?=json_encode($params)?>;
|
||||
vm.init_brands();
|
||||
vm.init_citys();
|
||||
},
|
||||
methods: {
|
||||
init_brands:function(){
|
||||
@@ -205,6 +232,25 @@
|
||||
complete: function () {}
|
||||
});
|
||||
},
|
||||
init_citys:function() {
|
||||
var vm = this;
|
||||
$.ajax({
|
||||
type: 'get',
|
||||
url: '/common/area',
|
||||
dataType: 'json',
|
||||
data: {
|
||||
id: '350',
|
||||
key: 'city',
|
||||
type: 1
|
||||
},
|
||||
success: function (response) {
|
||||
if (response.code == 1) {
|
||||
vm.cityAry = response.data;
|
||||
vm.admins.cityAry = JSON.parse(JSON.stringify(response.data));
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
reset:function(){
|
||||
var that = this;
|
||||
$("#search_tp").val('mobile');
|
||||
@@ -288,6 +334,97 @@
|
||||
vm.params.cor_id = '';
|
||||
vm.params.v_id = '';
|
||||
}
|
||||
},
|
||||
'params.city_id_admin':function(nv, ov){
|
||||
var that = this;
|
||||
if(nv == ''){
|
||||
that.admins.countyAry = [];
|
||||
that.params.county_id_admin = '';
|
||||
} else {
|
||||
if(nv.substring(0,4) != that.params.county_id_admin.substring(0, 4)){
|
||||
that.params.county_id_admin = '';
|
||||
}
|
||||
$.ajax({
|
||||
type: 'get',
|
||||
url: '/common/area',
|
||||
dataType: 'json',
|
||||
data: {
|
||||
id: nv,
|
||||
key:'county',
|
||||
type:1
|
||||
},
|
||||
success:function(response){
|
||||
if (response.code == 1) {
|
||||
that.admins.countyAry = response.data;
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
'params.county_id_admin':function(nv, ov){
|
||||
var that = this;
|
||||
if(nv == ''){
|
||||
that.admins.bizAry = [];
|
||||
that.params.biz_id_admin = '';
|
||||
} else {
|
||||
$.ajax({
|
||||
type: 'post',
|
||||
url: '/biz/store/store/json_lists',
|
||||
dataType: 'json',
|
||||
data: {
|
||||
city_id: that.params.city_id_admin,
|
||||
county_id: that.params.county_id_admin,
|
||||
status:1
|
||||
},
|
||||
success:function(response){
|
||||
if (response.code == 1) {
|
||||
that.admins.bizAry = response.data.list;
|
||||
if(that.params.biz_id_admin>0){
|
||||
var biz_id = '';
|
||||
for(var i in that.admins.bizAry){
|
||||
if(that.params.biz_id_admin == that.admins.bizAry[i].id){
|
||||
biz_id = that.params.biz_id_admin;
|
||||
break;
|
||||
}
|
||||
}
|
||||
that.params.biz_id_admin = biz_id;
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
'params.biz_id_admin':function(nv, ov){
|
||||
var that = this;
|
||||
if(nv == ''){
|
||||
that.admins.list = [];
|
||||
that.params.admin_id = '';
|
||||
} else {
|
||||
$.ajax({
|
||||
type: 'post',
|
||||
url: '/app/licheb/member/json_lists',
|
||||
dataType: 'json',
|
||||
data: {
|
||||
biz_id: nv,
|
||||
status:1
|
||||
},
|
||||
success:function(response){
|
||||
if (response.code == 1) {
|
||||
that.admins.list = response.data.list;
|
||||
if(that.params.admin_id>0){
|
||||
var admin_id = '';
|
||||
for(var i in that.admins.list){
|
||||
if(that.params.admin_id == that.admins.list[i].id){
|
||||
admin_id = that.params.admin_id;
|
||||
break;
|
||||
}
|
||||
}
|
||||
that.params.admin_id = admin_id;
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
@@ -61,24 +61,18 @@
|
||||
<option :value="v.id" v-for="(v,i) in brandAry">{{v.name}}</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="am-form-group fl">
|
||||
<div class="am-para-inline w120">
|
||||
<select name="s_id" v-model="params.s_id">
|
||||
<option value="">选择车系</option>
|
||||
<option :value="v.id" v-for="(v,i) in seryAry">{{v.name}}</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="am-form-group fl">
|
||||
<div class="am-para-inline w120">
|
||||
<select name="v_id" v-model="params.v_id">
|
||||
<option value="">选择车型</option>
|
||||
<option :value="v.id" v-for="(v,i) in attrvAry">{{v.title}}</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="am-form-group">
|
||||
<div class="am-para-inline w120">
|
||||
<select name="cor_id" v-model="params.cor_id">
|
||||
<option value="">车身颜色</option>
|
||||
@@ -86,6 +80,37 @@
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="am-form-group">
|
||||
<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" style="margin-bottom: 0px;"></div>
|
||||
<div class="am-form-group fl" style="margin-bottom: 0px;">
|
||||
<div class="am-form-group fl ml10">
|
||||
@@ -177,6 +202,7 @@
|
||||
seryAry:[],
|
||||
attrvAry:[],
|
||||
attrcorAry: [],//车身颜色选项
|
||||
admins: {cityAry: [], countyAry: [], bizAry: [], list: []},
|
||||
lists: []
|
||||
},
|
||||
mounted: function () {
|
||||
@@ -184,6 +210,7 @@
|
||||
vm.lists = <?=json_encode($lists)?>;
|
||||
vm.params = <?=json_encode($params)?>;
|
||||
vm.init_brands();
|
||||
vm.init_citys();
|
||||
},
|
||||
methods: {
|
||||
init_brands:function(){
|
||||
@@ -201,7 +228,26 @@
|
||||
},
|
||||
complete: function () {}
|
||||
});
|
||||
}
|
||||
},
|
||||
init_citys:function() {
|
||||
var vm = this;
|
||||
$.ajax({
|
||||
type: 'get',
|
||||
url: '/common/area',
|
||||
dataType: 'json',
|
||||
data: {
|
||||
id: '350',
|
||||
key: 'city',
|
||||
type: 1
|
||||
},
|
||||
success: function (response) {
|
||||
if (response.code == 1) {
|
||||
vm.cityAry = response.data;
|
||||
vm.admins.cityAry = JSON.parse(JSON.stringify(response.data));
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
},
|
||||
watch: {
|
||||
'params.brand_id':function(nv, ov){
|
||||
@@ -278,6 +324,97 @@
|
||||
vm.params.cor_id = '';
|
||||
vm.params.v_id = '';
|
||||
}
|
||||
},
|
||||
'params.city_id_admin':function(nv, ov){
|
||||
var that = this;
|
||||
if(nv == ''){
|
||||
that.admins.countyAry = [];
|
||||
that.params.county_id_admin = '';
|
||||
} else {
|
||||
if(nv.substring(0,4) != that.params.county_id_admin.substring(0, 4)){
|
||||
that.params.county_id_admin = '';
|
||||
}
|
||||
$.ajax({
|
||||
type: 'get',
|
||||
url: '/common/area',
|
||||
dataType: 'json',
|
||||
data: {
|
||||
id: nv,
|
||||
key:'county',
|
||||
type:1
|
||||
},
|
||||
success:function(response){
|
||||
if (response.code == 1) {
|
||||
that.admins.countyAry = response.data;
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
'params.county_id_admin':function(nv, ov){
|
||||
var that = this;
|
||||
if(nv == ''){
|
||||
that.admins.bizAry = [];
|
||||
that.params.biz_id_admin = '';
|
||||
} else {
|
||||
$.ajax({
|
||||
type: 'post',
|
||||
url: '/biz/store/store/json_lists',
|
||||
dataType: 'json',
|
||||
data: {
|
||||
city_id: that.params.city_id_admin,
|
||||
county_id: that.params.county_id_admin,
|
||||
status:1
|
||||
},
|
||||
success:function(response){
|
||||
if (response.code == 1) {
|
||||
that.admins.bizAry = response.data.list;
|
||||
if(that.params.biz_id_admin>0){
|
||||
var biz_id = '';
|
||||
for(var i in that.admins.bizAry){
|
||||
if(that.params.biz_id_admin == that.admins.bizAry[i].id){
|
||||
biz_id = that.params.biz_id_admin;
|
||||
break;
|
||||
}
|
||||
}
|
||||
that.params.biz_id_admin = biz_id;
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
'params.biz_id_admin':function(nv, ov){
|
||||
var that = this;
|
||||
if(nv == ''){
|
||||
that.admins.list = [];
|
||||
that.params.admin_id = '';
|
||||
} else {
|
||||
$.ajax({
|
||||
type: 'post',
|
||||
url: '/app/licheb/member/json_lists',
|
||||
dataType: 'json',
|
||||
data: {
|
||||
biz_id: nv,
|
||||
status:1
|
||||
},
|
||||
success:function(response){
|
||||
if (response.code == 1) {
|
||||
that.admins.list = response.data.list;
|
||||
if(that.params.admin_id>0){
|
||||
var admin_id = '';
|
||||
for(var i in that.admins.list){
|
||||
if(that.params.admin_id == that.admins.list[i].id){
|
||||
admin_id = that.params.admin_id;
|
||||
break;
|
||||
}
|
||||
}
|
||||
that.params.admin_id = admin_id;
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
@@ -61,24 +61,18 @@
|
||||
<option :value="v.id" v-for="(v,i) in brandAry">{{v.name}}</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="am-form-group fl">
|
||||
<div class="am-para-inline w120">
|
||||
<select name="s_id" v-model="params.s_id">
|
||||
<option value="">选择车系</option>
|
||||
<option :value="v.id" v-for="(v,i) in seryAry">{{v.name}}</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="am-form-group fl">
|
||||
<div class="am-para-inline w120">
|
||||
<select name="v_id" v-model="params.v_id">
|
||||
<option value="">选择车型</option>
|
||||
<option :value="v.id" v-for="(v,i) in attrvAry">{{v.title}}</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="am-form-group">
|
||||
<div class="am-para-inline w120">
|
||||
<select name="cor_id" v-model="params.cor_id">
|
||||
<option value="">车身颜色</option>
|
||||
@@ -86,6 +80,37 @@
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="am-form-group">
|
||||
<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" style="margin-bottom: 0px;"></div>
|
||||
<div class="am-form-group fl" style="margin-bottom: 0px;">
|
||||
<div class="am-form-group fl ml10">
|
||||
@@ -180,6 +205,7 @@
|
||||
seryAry:[],
|
||||
attrvAry:[],
|
||||
attrcorAry: [],//车身颜色选项
|
||||
admins: {cityAry: [], countyAry: [], bizAry: [], list: []},
|
||||
lists: []
|
||||
},
|
||||
mounted: function () {
|
||||
@@ -187,6 +213,7 @@
|
||||
vm.lists = <?=json_encode($lists)?>;
|
||||
vm.params = <?=json_encode($params)?>;
|
||||
vm.init_brands();
|
||||
vm.init_citys();
|
||||
},
|
||||
methods: {
|
||||
init_brands:function(){
|
||||
@@ -205,6 +232,25 @@
|
||||
complete: function () {}
|
||||
});
|
||||
},
|
||||
init_citys:function() {
|
||||
var vm = this;
|
||||
$.ajax({
|
||||
type: 'get',
|
||||
url: '/common/area',
|
||||
dataType: 'json',
|
||||
data: {
|
||||
id: '350',
|
||||
key: 'city',
|
||||
type: 1
|
||||
},
|
||||
success: function (response) {
|
||||
if (response.code == 1) {
|
||||
vm.cityAry = response.data;
|
||||
vm.admins.cityAry = JSON.parse(JSON.stringify(response.data));
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
reset:function(){
|
||||
var that = this;
|
||||
$("#search_tp").val('mobile');
|
||||
@@ -288,6 +334,97 @@
|
||||
vm.params.cor_id = '';
|
||||
vm.params.v_id = '';
|
||||
}
|
||||
},
|
||||
'params.city_id_admin':function(nv, ov){
|
||||
var that = this;
|
||||
if(nv == ''){
|
||||
that.admins.countyAry = [];
|
||||
that.params.county_id_admin = '';
|
||||
} else {
|
||||
if(nv.substring(0,4) != that.params.county_id_admin.substring(0, 4)){
|
||||
that.params.county_id_admin = '';
|
||||
}
|
||||
$.ajax({
|
||||
type: 'get',
|
||||
url: '/common/area',
|
||||
dataType: 'json',
|
||||
data: {
|
||||
id: nv,
|
||||
key:'county',
|
||||
type:1
|
||||
},
|
||||
success:function(response){
|
||||
if (response.code == 1) {
|
||||
that.admins.countyAry = response.data;
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
'params.county_id_admin':function(nv, ov){
|
||||
var that = this;
|
||||
if(nv == ''){
|
||||
that.admins.bizAry = [];
|
||||
that.params.biz_id_admin = '';
|
||||
} else {
|
||||
$.ajax({
|
||||
type: 'post',
|
||||
url: '/biz/store/store/json_lists',
|
||||
dataType: 'json',
|
||||
data: {
|
||||
city_id: that.params.city_id_admin,
|
||||
county_id: that.params.county_id_admin,
|
||||
status:1
|
||||
},
|
||||
success:function(response){
|
||||
if (response.code == 1) {
|
||||
that.admins.bizAry = response.data.list;
|
||||
if(that.params.biz_id_admin>0){
|
||||
var biz_id = '';
|
||||
for(var i in that.admins.bizAry){
|
||||
if(that.params.biz_id_admin == that.admins.bizAry[i].id){
|
||||
biz_id = that.params.biz_id_admin;
|
||||
break;
|
||||
}
|
||||
}
|
||||
that.params.biz_id_admin = biz_id;
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
'params.biz_id_admin':function(nv, ov){
|
||||
var that = this;
|
||||
if(nv == ''){
|
||||
that.admins.list = [];
|
||||
that.params.admin_id = '';
|
||||
} else {
|
||||
$.ajax({
|
||||
type: 'post',
|
||||
url: '/app/licheb/member/json_lists',
|
||||
dataType: 'json',
|
||||
data: {
|
||||
biz_id: nv,
|
||||
status:1
|
||||
},
|
||||
success:function(response){
|
||||
if (response.code == 1) {
|
||||
that.admins.list = response.data.list;
|
||||
if(that.params.admin_id>0){
|
||||
var admin_id = '';
|
||||
for(var i in that.admins.list){
|
||||
if(that.params.admin_id == that.admins.list[i].id){
|
||||
admin_id = that.params.admin_id;
|
||||
break;
|
||||
}
|
||||
}
|
||||
that.params.admin_id = admin_id;
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
@@ -58,24 +58,18 @@
|
||||
<option :value="v.id" v-for="(v,i) in brandAry">{{v.name}}</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="am-form-group fl">
|
||||
<div class="am-para-inline w120">
|
||||
<select name="s_id" v-model="params.s_id">
|
||||
<option value="">选择车系</option>
|
||||
<option :value="v.id" v-for="(v,i) in seryAry">{{v.name}}</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="am-form-group fl">
|
||||
<div class="am-para-inline w120">
|
||||
<select name="v_id" v-model="params.v_id">
|
||||
<option value="">选择车型</option>
|
||||
<option :value="v.id" v-for="(v,i) in attrvAry">{{v.title}}</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="am-form-group">
|
||||
<div class="am-para-inline w120">
|
||||
<select name="cor_id" v-model="params.cor_id">
|
||||
<option value="">车身颜色</option>
|
||||
@@ -83,6 +77,37 @@
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="am-form-group">
|
||||
<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" style="margin-bottom: 0px;"></div>
|
||||
<div class="am-form-group fl" style="margin-bottom: 0px;">
|
||||
<div class="am-form-group fl ml10">
|
||||
@@ -181,6 +206,7 @@
|
||||
seryAry:[],
|
||||
attrvAry:[],
|
||||
attrcorAry: [],//车身颜色选项
|
||||
admins: {cityAry: [], countyAry: [], bizAry: [], list: []},
|
||||
lists: []
|
||||
},
|
||||
mounted: function () {
|
||||
@@ -188,6 +214,7 @@
|
||||
vm.lists = <?=json_encode($lists)?>;
|
||||
vm.params = <?=json_encode($params)?>;
|
||||
vm.init_brands();
|
||||
vm.init_citys();
|
||||
},
|
||||
methods: {
|
||||
init_brands:function(){
|
||||
@@ -206,6 +233,25 @@
|
||||
complete: function () {}
|
||||
});
|
||||
},
|
||||
init_citys:function() {
|
||||
var vm = this;
|
||||
$.ajax({
|
||||
type: 'get',
|
||||
url: '/common/area',
|
||||
dataType: 'json',
|
||||
data: {
|
||||
id: '350',
|
||||
key: 'city',
|
||||
type: 1
|
||||
},
|
||||
success: function (response) {
|
||||
if (response.code == 1) {
|
||||
vm.cityAry = response.data;
|
||||
vm.admins.cityAry = JSON.parse(JSON.stringify(response.data));
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
reset:function(){
|
||||
var that = this;
|
||||
$("#search_tp").val('mobile');
|
||||
@@ -289,6 +335,97 @@
|
||||
vm.params.cor_id = '';
|
||||
vm.params.v_id = '';
|
||||
}
|
||||
},
|
||||
'params.city_id_admin':function(nv, ov){
|
||||
var that = this;
|
||||
if(nv == ''){
|
||||
that.admins.countyAry = [];
|
||||
that.params.county_id_admin = '';
|
||||
} else {
|
||||
if(nv.substring(0,4) != that.params.county_id_admin.substring(0, 4)){
|
||||
that.params.county_id_admin = '';
|
||||
}
|
||||
$.ajax({
|
||||
type: 'get',
|
||||
url: '/common/area',
|
||||
dataType: 'json',
|
||||
data: {
|
||||
id: nv,
|
||||
key:'county',
|
||||
type:1
|
||||
},
|
||||
success:function(response){
|
||||
if (response.code == 1) {
|
||||
that.admins.countyAry = response.data;
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
'params.county_id_admin':function(nv, ov){
|
||||
var that = this;
|
||||
if(nv == ''){
|
||||
that.admins.bizAry = [];
|
||||
that.params.biz_id_admin = '';
|
||||
} else {
|
||||
$.ajax({
|
||||
type: 'post',
|
||||
url: '/biz/store/store/json_lists',
|
||||
dataType: 'json',
|
||||
data: {
|
||||
city_id: that.params.city_id_admin,
|
||||
county_id: that.params.county_id_admin,
|
||||
status:1
|
||||
},
|
||||
success:function(response){
|
||||
if (response.code == 1) {
|
||||
that.admins.bizAry = response.data.list;
|
||||
if(that.params.biz_id_admin>0){
|
||||
var biz_id = '';
|
||||
for(var i in that.admins.bizAry){
|
||||
if(that.params.biz_id_admin == that.admins.bizAry[i].id){
|
||||
biz_id = that.params.biz_id_admin;
|
||||
break;
|
||||
}
|
||||
}
|
||||
that.params.biz_id_admin = biz_id;
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
'params.biz_id_admin':function(nv, ov){
|
||||
var that = this;
|
||||
if(nv == ''){
|
||||
that.admins.list = [];
|
||||
that.params.admin_id = '';
|
||||
} else {
|
||||
$.ajax({
|
||||
type: 'post',
|
||||
url: '/app/licheb/member/json_lists',
|
||||
dataType: 'json',
|
||||
data: {
|
||||
biz_id: nv,
|
||||
status:1
|
||||
},
|
||||
success:function(response){
|
||||
if (response.code == 1) {
|
||||
that.admins.list = response.data.list;
|
||||
if(that.params.admin_id>0){
|
||||
var admin_id = '';
|
||||
for(var i in that.admins.list){
|
||||
if(that.params.admin_id == that.admins.list[i].id){
|
||||
admin_id = that.params.admin_id;
|
||||
break;
|
||||
}
|
||||
}
|
||||
that.params.admin_id = admin_id;
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user