From 7543794088189521290ad8baee44cec64c2bc64b Mon Sep 17 00:00:00 2001 From: xxb Date: Mon, 13 Sep 2021 16:10:46 +0800 Subject: [PATCH] liche update for admin order lists search by admin_id --- admin/controllers/receiver/order/Agent.php | 10 ++ admin/controllers/receiver/order/Bill.php | 10 ++ admin/controllers/receiver/order/Ckcar.php | 10 ++ admin/controllers/receiver/order/Delivery.php | 10 ++ admin/controllers/receiver/order/Loan.php | 10 ++ admin/controllers/receiver/order/Sign.php | 10 ++ admin/views/receiver/order/agent/lists.php | 149 ++++++++++++++++- admin/views/receiver/order/bill/lists.php | 149 ++++++++++++++++- admin/views/receiver/order/ckcar/lists.php | 149 ++++++++++++++++- admin/views/receiver/order/delivery/lists.php | 151 +++++++++++++++++- admin/views/receiver/order/loan/lists.php | 149 ++++++++++++++++- admin/views/receiver/order/sign/lists.php | 149 ++++++++++++++++- 12 files changed, 919 insertions(+), 37 deletions(-) diff --git a/admin/controllers/receiver/order/Agent.php b/admin/controllers/receiver/order/Agent.php index 7f5d5887..3f164182 100644 --- a/admin/controllers/receiver/order/Agent.php +++ b/admin/controllers/receiver/order/Agent.php @@ -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){ diff --git a/admin/controllers/receiver/order/Bill.php b/admin/controllers/receiver/order/Bill.php index ce46dbf6..9a9f2980 100644 --- a/admin/controllers/receiver/order/Bill.php +++ b/admin/controllers/receiver/order/Bill.php @@ -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){ diff --git a/admin/controllers/receiver/order/Ckcar.php b/admin/controllers/receiver/order/Ckcar.php index d8a82665..7c200c7f 100644 --- a/admin/controllers/receiver/order/Ckcar.php +++ b/admin/controllers/receiver/order/Ckcar.php @@ -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){ diff --git a/admin/controllers/receiver/order/Delivery.php b/admin/controllers/receiver/order/Delivery.php index 984412a5..a2fb8780 100644 --- a/admin/controllers/receiver/order/Delivery.php +++ b/admin/controllers/receiver/order/Delivery.php @@ -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){ diff --git a/admin/controllers/receiver/order/Loan.php b/admin/controllers/receiver/order/Loan.php index 596e1f73..11fd5032 100644 --- a/admin/controllers/receiver/order/Loan.php +++ b/admin/controllers/receiver/order/Loan.php @@ -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){ diff --git a/admin/controllers/receiver/order/Sign.php b/admin/controllers/receiver/order/Sign.php index 314a52c7..b3f0cf98 100644 --- a/admin/controllers/receiver/order/Sign.php +++ b/admin/controllers/receiver/order/Sign.php @@ -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){ diff --git a/admin/views/receiver/order/agent/lists.php b/admin/views/receiver/order/agent/lists.php index 230efd56..dcc9bf2f 100644 --- a/admin/views/receiver/order/agent/lists.php +++ b/admin/views/receiver/order/agent/lists.php @@ -61,24 +61,18 @@ - -
-
-
-
-
+
+ +
+ +
+
+ +
+
+ +
+
+ +
+
@@ -180,6 +205,7 @@ seryAry:[], attrvAry:[], attrcorAry: [],//车身颜色选项 + admins: {cityAry: [], countyAry: [], bizAry: [], list: []}, lists: [] }, mounted: function () { @@ -187,6 +213,7 @@ vm.lists = ; vm.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; + } + } + } + }); + } } } }); diff --git a/admin/views/receiver/order/bill/lists.php b/admin/views/receiver/order/bill/lists.php index f7498ce9..103dd478 100644 --- a/admin/views/receiver/order/bill/lists.php +++ b/admin/views/receiver/order/bill/lists.php @@ -61,24 +61,18 @@
-
-
-
-
-
-
+
+ +
+ +
+
+ +
+
+ +
+
+ +
+
@@ -180,6 +205,7 @@ seryAry:[], attrvAry:[], attrcorAry: [],//车身颜色选项 + admins: {cityAry: [], countyAry: [], bizAry: [], list: []}, lists: [] }, mounted: function () { @@ -187,6 +213,7 @@ vm.lists = ; vm.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; + } + } + } + }); + } } } }); diff --git a/admin/views/receiver/order/ckcar/lists.php b/admin/views/receiver/order/ckcar/lists.php index 5bf41671..3c8f956e 100644 --- a/admin/views/receiver/order/ckcar/lists.php +++ b/admin/views/receiver/order/ckcar/lists.php @@ -61,24 +61,18 @@
-
-
-
-
-
-
+
+ +
+ +
+
+ +
+
+ +
+
+ +
+
@@ -180,6 +205,7 @@ seryAry:[], attrvAry:[], attrcorAry: [],//车身颜色选项 + admins: {cityAry: [], countyAry: [], bizAry: [], list: []}, lists: [] }, mounted: function () { @@ -187,6 +213,7 @@ vm.lists = ; vm.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; + } + } + } + }); + } } } }); diff --git a/admin/views/receiver/order/delivery/lists.php b/admin/views/receiver/order/delivery/lists.php index ae6be7d5..aeea0fed 100644 --- a/admin/views/receiver/order/delivery/lists.php +++ b/admin/views/receiver/order/delivery/lists.php @@ -61,24 +61,18 @@
-
-
-
-
-
-
+
+ +
+ +
+
+ +
+
+ +
+
+ +
+
@@ -177,6 +202,7 @@ seryAry:[], attrvAry:[], attrcorAry: [],//车身颜色选项 + admins: {cityAry: [], countyAry: [], bizAry: [], list: []}, lists: [] }, mounted: function () { @@ -184,6 +210,7 @@ vm.lists = ; vm.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; + } + } + } + }); + } } } }); diff --git a/admin/views/receiver/order/loan/lists.php b/admin/views/receiver/order/loan/lists.php index b625014d..281c1533 100644 --- a/admin/views/receiver/order/loan/lists.php +++ b/admin/views/receiver/order/loan/lists.php @@ -61,24 +61,18 @@
-
-
-
-
-
-
+
+ +
+ +
+
+ +
+
+ +
+
+ +
+
@@ -180,6 +205,7 @@ seryAry:[], attrvAry:[], attrcorAry: [],//车身颜色选项 + admins: {cityAry: [], countyAry: [], bizAry: [], list: []}, lists: [] }, mounted: function () { @@ -187,6 +213,7 @@ vm.lists = ; vm.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; + } + } + } + }); + } } } }); diff --git a/admin/views/receiver/order/sign/lists.php b/admin/views/receiver/order/sign/lists.php index e6b7ae56..3e75647a 100644 --- a/admin/views/receiver/order/sign/lists.php +++ b/admin/views/receiver/order/sign/lists.php @@ -58,24 +58,18 @@
-
-
-
-
-
-
+
+ +
+ +
+
+ +
+
+ +
+
+ +
+
@@ -181,6 +206,7 @@ seryAry:[], attrvAry:[], attrcorAry: [],//车身颜色选项 + admins: {cityAry: [], countyAry: [], bizAry: [], list: []}, lists: [] }, mounted: function () { @@ -188,6 +214,7 @@ vm.lists = ; vm.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; + } + } + } + }); + } } } });