瀏覽代碼

冻结解冻

qukaidi 4 年之前
父節點
當前提交
d33c1fd958

+ 1 - 1
main/pcr/pages/home/agentInfo/agentInfo_win.html

@@ -13,7 +13,7 @@
 		<header class="aui-bar aui-bar-nav aui-bar-info" id="aui-header">
 			<a class="aui-btn aui-btn-info aui-pull-left" tapmode onclick="closeWin()"> <span class="aui-iconfont aui-icon-left"></span> </a>
 			<div class="aui-title" id="aui-title">
-				门店审核
+				门店详情
 			</div>
 		</header>
 	</body>

+ 275 - 0
main/pcr/pages/home/agentInfo/thawInfo_body.html

@@ -0,0 +1,275 @@
+<!DOCTYPE html>
+<html class="">
+	<!--STATUS OK-->
+	<head>
+		<meta name="referrer" content="always" />
+		<meta charset='utf-8' />
+		<meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
+		<meta http-equiv="x-dns-prefetch-control" content="on">
+		<meta name="description" content="">
+		<meta name="format-detection" content="telephone=no" />
+		<link rel="stylesheet" type="text/css" href="../../../../../css/css/vant-ui.css" />
+		<link rel="stylesheet" type="text/css" href="../../../../../css/css/iconfont.css">
+		<link rel="stylesheet" type="text/css" href="../../../../../css/css/main.css" />
+		<link rel="stylesheet" type="text/css" href="../../../../../css/css/style.css" />
+		<script src="../../../../../script/js/vue.js"></script>
+		<script src="../../../../../script/js/vant-ui.js"></script>
+		<script src="../../../../../script/js/main.js"></script>
+		<title></title>
+	</head>
+	<style>
+		#app {
+			background: linear-gradient(180deg,rgba(0,160,234,1),rgba(0,95,163,1)) !important;
+		}
+		.login {
+			padding-bottom: 0rem;
+			height: auto;
+			padding-top: .01rem;
+			background: none;
+		}
+		.login .loginFix {
+			position: absolute;
+		}
+		.login .loginBox {
+			width: 90%;
+			height: auto;
+			padding: 10px;
+			padding-bottom: 1rem;
+		}
+		.pull-right {
+			width: .15rem !important;
+			height: .3rem !important;
+		}
+		.brandList {
+			display: flex;
+			width: 100%;
+			flex-wrap: wrap;
+			margin-top: .8rem;
+		}
+		.brandList .brandItem, .brandList .choose {
+			width: 40%;
+			margin: .1rem .3rem;
+		}
+		.brandItem {
+			height: .6rem;
+		}
+		.anniu > input {
+			width: 90%;
+			height: .86rem;
+			background: rgba(0,160,234,1);
+			border-radius: 5rem;
+			color: #fff;
+			font-size: .31rem;
+			margin-top: .5rem;
+		}
+		.getCodeBtn {
+			width: 100px;
+			background-color: #00a0ea;
+			padding: 5px;
+			color: #fff;
+			border-radius: 8px 5px;
+			text-align: center;
+		}
+		.anniu {
+			display: flex;
+		}
+		.rowbetween{
+			justify-content: space-between;
+		}
+		.delete-btn{
+			padding: 4px 8px;
+	    border-radius: 4px;
+	    background: #f34747;
+	    color: #ffffff;
+	    line-height: 1.5;
+	    display: inline-block;
+	    margin-top: .26rem;
+		}
+	</style>
+	<body>
+		<div id="app" style="overflow-y: scroll">
+			<div class="login" id="aui-header">
+				<div class="loginBox">
+					<div class="labelTitle flex a-center" style="margin-top: 0;">
+						<b class="i1"></b>
+						审核状态
+					</div>
+					<div class="labelValue flex a-center">
+						<input v-if="agentInfo.status==0" type="text" value="待审核" readonly="readonly"/>
+						<input v-if="agentInfo.status==1" type="text" value="经销商审核通过" readonly="readonly"/>
+						<input v-if="agentInfo.status==2" type="text" value="经销商审核拒绝" readonly="readonly"/>
+						<input v-if="agentInfo.status==3" type="text" value="B2B审核通过" readonly="readonly"/>
+						<input v-if="agentInfo.status==4" type="text" value="B2B审核拒绝" readonly="readonly"/>
+					</div>
+					<div class="labelTitle flex a-center" style="margin-top: 0;">
+						<b class="i1"></b>
+						门店名称
+					</div>
+					<div class="labelValue flex a-center">
+						<input type="text" placeholder="门店名称" v-model="agentInfo.storeName" readonly="readonly"/>
+					</div>
+					<div class="labelTitle flex a-center" style="margin-top: 0.3rem;">
+						<b class="i2"></b>
+						联系人
+					</div>
+					<div class="labelValue flex a-center">
+						<input type="text" placeholder="联系人" v-model="agentInfo.contactName||''" readonly="readonly"/>
+					</div>
+					<div class="labelTitle flex a-center" style="margin-top: 0.3rem;">
+						<b class="i2"></b>
+						联系电话
+					</div>
+					<div class="labelValue flex a-center">
+						<input placeholder="联系电话" v-model="agentInfo.storePhone ||''" readonly="readonly"/>
+					</div>
+					<div class="labelTitle flex a-center" style="margin-top: 0.3rem;">
+						<b class="i2"></b>
+						地址
+					</div>
+					<div class="labelValue flex a-center">
+						<input placeholder="地区" v-model="agentInfo.province + agentInfo.city + agentInfo.district" readonly="readonly"/>
+					</div>
+					<div class="labelTitle flex a-center" style="margin-top: 0.3rem;">
+						<b class="i2"></b>
+						详细地址
+					</div>
+					<div class="labelValue flex a-center">
+						<input placeholder="详细地址" v-model="agentInfo.addressInfo" readonly="readonly"/>
+					</div>
+				</div>
+				<!-- 合作经销商 -->
+				<div class="login">
+					<div class="loginBox">
+						<div class="labelTitle flex a-center" style="margin-top: 0;">
+							<b class="i1"></b>
+							合作经销商
+						</div>
+						<div class="labelValue flex a-center">
+							<input placeholder="合作经销商" readonly="readonly" v-model="agentInfo.agentName"/>
+						</div>
+						<div class="labelValue flex a-center">
+							<input placeholder="签约任务" readonly="readonly" v-model="agentInfo.signLv"/>
+						</div>
+						<div class="biaoti" style="margin-top: 0.4rem;"><img src="../../../../../image/image/xiantiao.png" alt=""><span style="margin-top: -.1rem">合作品牌</span><img src="../../../../../image/image/xiantiao1.png" alt="">
+						</div>
+						<div class="brandList" v-if="agentInfo.brandLog == null">
+							暂无合作品牌
+						</div>
+						<div class="brandList" v-else>
+							<img  class="brandItem" :src="agentInfo.brandLog" alt="">
+						</div>
+					</div>
+				</div>
+				<!-- 附件上传 -->
+				<div class="login">
+					<div class="loginBox">
+						<div class="biaoti" style="margin-top: 0.4rem;"><img src="../../../../../image/image/xiantiao.png" alt=""><span style="margin-top: -.1rem">证件</span><img src="../../../../../image/image/xiantiao1.png" alt="">
+						</div>
+						<div class="brandList" style="text-align: center">
+							<div class="choose">
+								<p>
+									营业执照
+								</p>
+								<img :src="agentInfo.licenseUrl == '' ? '../../../../../image/image/biankuang.png' : agentInfo.licenseUrl" style="margin: .3rem auto;" />
+							</div>
+							<div class="choose">
+								<p>
+									门头照片
+								</p>
+								<img :src="agentInfo.storeImageUrl == '' ? '../../../../../image/image/biankuang.png' : agentInfo.storeImageUrl" style="margin: .3rem auto;" />
+							</div>
+						</div>
+						<div class="anniu" v-show="agentInfo.status == 0">
+							<input type="submit" value="否决" style="background-color:red" v-on:click="checkStore(2)">
+							<input type="submit" value="通过" v-on:click="checkStore(1)">
+						</div>
+					</div>
+				</div>
+			</div>
+		</div>
+	</body>
+	<script type="text/javascript" src="../../../../../script/api.js"></script>
+	<script type="text/javascript" src="../../../../../script/httpRequest.js"></script>
+	<script type="text/javascript" src="../../../../../script/vue_plugins.js"></script>
+	<script type="text/javascript">
+		apiready = function() {
+			var storeData = api.pageParam.storeData;
+			new Vue({
+				el : '#app',
+				data : {
+					// 选择省市区
+					UIActionSelector : '',
+					map : '', // 百度地图SDK
+					//  选择省市区的文件
+					file : 'widget://res/city.json',
+					userName : '', // 门店名称
+					userPerson : '', // 用户联系人
+					userPhone : '', // 用户手机号
+					userCode : '', // 手机号验证码
+					userDistrct : '', // 点击选择地址
+					userAddress : '', // 用户地址
+					distrctArr : [], // 保存的地址
+					userLicense : '', // 营业执照
+					userDoorway : '', // 门头照片
+					userLat : '', // 纬度
+					userLon : '', // 经度
+					posterList : [], // 经销商列表
+					storeData:storeData,
+					agentInfo : '', // 这是门店详情
+					onClick:true,
+					kunnr:""
+				},
+				methods : {
+					//  初始化数据
+					init : function() {
+						this.kunnr = $api.getStorage('kunnr');
+						this.agentInfo=this.storeData
+					},
+					//  审核门店
+					checkStore : function(type) {
+						if(this.onClick){
+						this.onClick=false;
+						var data = {
+							"kunnr":this.kunnr,
+							"storeId" :this.agentInfo.storeId,
+							"status" : type,
+							"type" : 'body',
+							"url" : 'json'
+						}, _this = this, url = "agentAuditProposer";
+						this.$post(url, data, function(ret) {
+							if (ret.code == 0 || ret.code == '0') {
+								api.toast({
+									msg : '已'+ ['','通过','否决'][type]
+								});
+								api.sendEvent({
+									name: 'refushAgentList',
+									extra: {}
+								});
+								_this.agentInfo.status=null
+								api.closeWin({});
+							}
+						});
+						setTimeout(function() {
+							this.onClick=true;
+						}, 200);
+						}
+					},
+					handleDelete: function(){
+						this.showModal("确认提醒","你是要删除该品牌吗",["确认","取消"],function(index){
+							if(index==2){
+										console.log("删除品牌")
+							}else{
+									console.log("取消")
+							}
+						})
+					}
+				},
+				filters : {
+				},
+				mounted : function() {
+					this.init();
+				}
+			})
+		}
+	</script>
+</html>

+ 62 - 0
main/pcr/pages/home/agentInfo/thawInfo_win.html

@@ -0,0 +1,62 @@
+<!doctype html>
+<html>
+	<head>
+		<meta charset="utf-8">
+		<meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
+		<title>Hello APP</title>
+		<link rel="stylesheet" type="text/css" href="../../../../../css/api.css" />
+		<link rel="stylesheet" type="text/css" href="../../../../../css/aui-win.css" />
+	</head>
+	<style>
+	</style>
+	<body>
+		<header class="aui-bar aui-bar-nav aui-bar-info" id="aui-header">
+			<a class="aui-btn aui-btn-info aui-pull-left" tapmode onclick="closeWin()"> <span class="aui-iconfont aui-icon-left"></span> </a>
+			<div class="aui-title" id="aui-title">
+				门店详情
+			</div>
+		</header>
+	</body>
+	<script type="text/javascript" src="../../../../../script/api.js"></script>
+	<script type="text/javascript">
+		function closeWin() {
+			api.closeWin({
+			});
+		}
+
+		apiready = function() {
+			api.addEventListener({
+				name: 'keyback'
+			}, function(ret, err) {
+				api.sendEvent({
+					name: 'refushAgentList',
+					extra: {}
+				});
+				api.closeWin({
+				});
+			});
+			api.parseTapmode();
+			var header = $api.byId('aui-header');
+			$api.fixStatusBar(header);
+			var headerPos = $api.offset(header);
+			var body_h = $api.offset($api.dom('body')).h;
+			api.openFrame({
+				name : 'thawtInfo_body',
+				url : 'thawInfo_body.html',
+				bounces : false,
+				vScrollBarEnabled : false,
+				hScrollBarEnabled : false,
+				rect : {
+					x : 0,
+					y : headerPos.h,
+					w : 'auto',
+					h : 'auto'
+				},
+				bgColor:'#f5f5f5',
+				pageParam : {
+					storeData : api.pageParam.storeData,
+				}
+			})
+		};
+	</script>
+</html>

+ 229 - 96
main/pcr/pages/home/agentList/agentList_body.html

@@ -15,24 +15,26 @@
 	<title></title>
 </head>
 <style>
-	.dingdangenzong .dingdanSearch {
+	/* .dingdangenzong .dingdanSearch {
 		top: .1rem
-	}
+	} */
 
 	.dingdangenzong {
 		padding-top: 1.2rem;
 	}
+
 	.totalCount {
 		background-color: #00a0ea !important;
 		color: #fff;
 		text-align: center;
 		padding: 0.3rem 0;
 		font-size: 0.3rem;
-    width: 90%;
+		width: 90%;
 		margin: 0 5%;
 		border-radius: 5px;
 	}
-	.search_input{
+
+	.search_input {
 		color: #B5B5B5;
 		font-size: .25rem;
 		width: 100%;
@@ -42,36 +44,115 @@
 
 <body>
 	<div id="app" v-cloak>
-		<div class="pageView dingdangenzong">
-			<div class="totalCount">总共:{{ totaltotals }} 家</div>
-			<div class="dingdanSearch flex a-center j-center">
-				<div class="search_box flex a-center">
-					<!-- <input type="text" placeholder="请输入门店名称" v-model="agentKeyword"> -->
-					<div class="search_input" v-on:click="inSearch">
-						请输入门店名称
+		<van-tabs v-model="active">
+			<van-tab title="门店审核">
+				<div class="pageView dingdangenzong">
+					<div class="totalCount">总共:{{ totaltotals }} 家</div>
+					<div class="dingdanSearch flex a-center j-center">
+						<div class="search_box flex a-center">
+							<!-- <input type="text" placeholder="请输入门店名称" v-model="agentKeyword"> -->
+							<div class="search_input" v-on:click="inSearch">
+								请输入门店名称
+							</div>
+							<div class="fgx"></div>
+							<div class="search_btn flex a-center" style="width:1.8rem" v-on:click="chooseStatus">{{
+								agentStatus.name }} <i class="iconfont icon-xia"></i> </div>
+							<van-icon name="search" size="0.32rem" />
+						</div>
+					</div>
+					<div class="mendianliebiao" v-show="list.length > 0" id="mescroll" style="height:80vh">
+						<div class="item flex a-center" v-for="(item,index) in list"
+							v-on:click="lookStoreInfo(item.id)">
+							<div class="img"><img :src="item.storeImageUrl"
+									onerror="javascript:this.src='../../../../../image/image/noimg.png';"></div>
+							<div class="infos">
+								<h2>{{item.storeName}}</h2>
+								<p><a style="font-weight: 600;">经销品牌:</a>{{item.brandName}}</p>
+								<p><a style="font-weight: 600;">电话:</a>{{item.storePhone}}</p>
+								<span>状态:{{item.statusName}}</span>
+							</div>
+							<i class="iconfont icon-right"></i>
+						</div>
+						<div v-show="hasOther && list.length > 0"
+							style="width: 100%;height: 1rem;;text-align : center;margin-top : 1rem;font-size:0.3rem">
+							暂无更多数据</div>
+					</div>
+					<div v-show="list.length == 0" style="text-align:center">
+						<img src="../../../../../image/image/nodata.png"
+							style="margin:2rem auto;width:100%;height:100%" />
 					</div>
-					<div class="fgx"></div>
-					<div class="search_btn flex a-center" style="width:1.8rem" v-on:click="chooseStatus">{{ agentStatus.name }} <i class="iconfont icon-xia"></i> </div>
-					<van-icon name="search" size="0.32rem" />
 				</div>
-			</div>
-			<div class="mendianliebiao" v-show="list.length > 0" id="mescroll">
-				<div class="item flex a-center" v-for="(item,index) in list" v-on:click="lookStoreInfo(item.id)">
-					<div class="img"><img :src="item.storeImageUrl" onerror="javascript:this.src='../../../../../image/image/noimg.png';"></div>
-					<div class="infos">
-						<h2>{{item.storeName}}</h2>
-						<p><a style="font-weight: 600;">经销品牌:</a>{{item.brandName}}</p>
-						<p><a style="font-weight: 600;">电话:</a>{{item.storePhone}}</p>
-						<span>状态:{{item.statusName}}</span>
+			</van-tab>
+			<van-tab title="冻结门店">
+				<div class="pageView dingdangenzong">
+					<div class="totalCount">总共:{{ freezeList.length }} 家</div>
+					<div class="dingdanSearch flex a-center j-center">
+						<div class="search_box flex a-center">
+							<input type="text" placeholder="请输入门店名称" v-model="agentKeyword">
+							<van-icon name="search" size="0.32rem" />
+						</div>
+					</div>
+					<div class="mendianliebiao" v-show="freezeList.length > 0" id="mescroll" style="height:93vh">
+						<div class="item flex a-center" v-for="(item,index) in freezeList"
+							v-on:click="lookStoreInfo(item.id)">
+							<div class="img"><img :src="item.storeImageUrl"
+									onerror="javascript:this.src='../../../../../image/image/noimg.png';"></div>
+							<div class="infos">
+								<h2>{{item.storeName}}</h2>
+								<p><a style="font-weight: 600;">经销品牌:</a>{{item.brandName}}</p>
+								<p><a style="font-weight: 600;">电话:</a>{{item.storePhone}}</p>
+								<span>状态:{{item.statusName}}</span>
+							</div>
+							<i class="iconfont icon-right"></i>
+						</div>
+						<div v-show="hasOther && freezeList.length > 0"
+							style="width: 100%;height: 1rem;;text-align : center;margin-top : 1rem;font-size:0.3rem">
+							暂无更多数据</div>
+					</div>
+					<div v-show="freezeList.length == 0" style="text-align:center">
+						<img src="../../../../../image/image/nodata.png"
+							style="margin:2rem auto;width:100%;height:100%" />
 					</div>
-					<i class="iconfont icon-right"></i>
 				</div>
-				<div v-show="hasOther && list.length > 0" style="width: 100%;height: 1rem;;text-align : center;margin-top : 1rem;font-size:0.3rem">暂无更多数据</div>
-			</div>
-			<div v-show="list.length == 0" style="text-align:center">
-				<img src="../../../../../image/image/nodata.png" style="margin:2rem auto;width:100%;height:100%" />
-			</div>
-		</div>
+			</van-tab>
+			<van-tab title="门店解冻">
+				<div class="pageView dingdangenzong">
+					<div class="totalCount">总共:{{ thawList.length }} 家</div>
+					<div class="dingdanSearch flex a-center j-center">
+						<div class="search_box flex a-center">
+							<input type="text" placeholder="请输入门店名称" v-model="agentKeyword2">
+							<van-icon name="search" size="0.32rem" />
+						</div>
+					</div>
+					<div class="mendianliebiao" v-show="thawList.length > 0" id="mescroll">
+						<div class="item flex a-center" v-for="(item,index) in thawList"
+							v-on:click="lookStoreInfo2(item)">
+							<div class="img"><img :src="item.storeImageUrl"
+									onerror="javascript:this.src='../../../../../image/image/noimg.png';"></div>
+							<div class="infos">
+								<h2>{{item.storeName}}</h2>
+								<p><a style="font-weight: 600;">经销品牌:</a>{{item.brand}}</p>
+								<p><a style="font-weight: 600;">电话:</a>{{item.storePhone}}</p>
+								<span v-if="item.status==0">状态:待审核</span>
+								<span v-if="item.status==1">状态:经销商审核通过</span>
+								<span v-if="item.status==2">状态:经销商审核拒绝 </span>
+								<span v-if="item.status==3">状态:B2B审核通过</span>
+								<span v-if="item.status==4">状态:B2B审核拒绝</span>
+							</div>
+							<i class="iconfont icon-right"></i>
+						</div>
+						<div v-show="hasOther && thawList.length > 0"
+							style="width: 100%;height: 1rem;;text-align : center;margin-top : 1rem;font-size:0.3rem">
+							暂无更多数据</div>
+					</div>
+					<div v-show="thawList.length == 0" style="text-align:center">
+						<img src="../../../../../image/image/nodata.png"
+							style="margin:2rem auto;width:100%;height:100%" />
+					</div>
+				</div>
+			</van-tab>
+		</van-tabs>
+
 	</div>
 </body>
 
@@ -86,71 +167,81 @@
 <script type="text/javascript" src="../../../../../script/httpRequest.js"></script>
 <script type="text/javascript" src="../../../../../script/vue_plugins.js"></script>
 <script>
-	apiready = function() {
+	apiready = function () {
 		new Vue({
 			el: '#app',
 			data: {
-        list : [],
+				list: [],
 				// list: [{statusName : 1},{statusName : 1},{statusName : 1},{statusName : 1},{statusName : 1},{statusName : 1},{statusName : 1},{statusName : 1},{statusName : 1},{statusName : 1},{statusName : 1},{statusName : 1},{statusName : 1},{statusName : 1},{statusName : 1},{statusName : 1},{statusName : 1}],
 				kunnr: '',
 				current: 1,
 				size: 10,
 				totalPages: 1,
-				frist : 1,
-				statuses : [{
-					code : '',
-					name : '全部'
-				},{
-					code : '0',
-					name : '待审核'
-				},{
-					code : '1',
-					name : '审核通过'
+				frist: 1,
+				active: 0,
+				statuses: [{
+					code: '',
+					name: '全部'
+				}, {
+					code: '0',
+					name: '待审核'
+				}, {
+					code: '1',
+					name: '审核通过'
 				}],
-				agentKeyword : '', // 门店名称
-				agentStatus : {code : '',name : '全部'},
-				UIActionSelector : '',
-				mescroll : '',
-				hasOther : false,
-				totaltotals : 0,
+				agentKeyword: '', // 冻结
+				agentKeyword2: '', // 解冻
+				agentStatus: { code: '', name: '全部' },
+				UIActionSelector: '',
+				mescroll: '',
+				hasOther: false,
+				totaltotals: 0,
+				freezeList: [],
+				thawList: []
+			},
+			watch: {
+				agentKeyword: function () {
+					this.selectFreezeStore();
+				},
+				agentKeyword2: function () {
+					this.agentUnfreezeProposer();
+				}
 			},
-      // watch : {
-			// 	agentKeyword : function(nw,ow){
-			// 		this.current = 1;
-			// 		this.getStoreList();
-			// 	}
-			// },
-			mounted: function() {
+			mounted: function () {
 				this.init();
 			},
 			methods: {
-				init: function() {
+				init: function () {
 					this.UIActionSelector = api.require("UIActionSelector");
 					this.kunnr = $api.getStorage('kunnr');
 					this.getStoreList();
-				  var _this = this;
-					this.addEvent('refushAgentList',function(){
+					this.selectFreezeStore();
+					this.agentUnfreezeProposer();
+					var _this = this;
+					this.addEvent('refushAgentList', function () {
 						_this.current = 1;
 						_this.getStoreList();
+						_this.selectFreezeStore();
+						_this.agentUnfreezeProposer();
 					})
 				},
-				configs : function(){
+				configs: function () {
 					var _this = this;
 					this.frist = 2;
-					this.configDownAndPull("mescroll", function(mescroll) {
-            _this.list = [];
+					this.configDownAndPull("mescroll", function (mescroll) {
+						_this.list = [];
 						_this.current = 1;
 						_this.mescroll = mescroll;
 						_this.getStoreList(mescroll);
-					}, function(mescroll) {
+					}, function (mescroll) {
 						if (_this.current < _this.totalPages) {
 							_this.current = _this.current + 1;
 							_this.getStoreList(mescroll, 1);
 						} else {
 							mescroll.endSuccess(_this.size, false);
 						}
-					},false);
-					this.configBottomRefush(function(){
+					}, false);
+					this.configBottomRefush(function () {
 						if (_this.current < _this.totalPages) {
 							_this.current = _this.current + 1;
 							_this.getStoreList(_this.mescroll, 1);
@@ -160,63 +251,105 @@
 						}
 					})
 				},
-				getStoreList: function(mescroll) {
+				selectFreezeStore: function () {
 					var params = {
-							kunnr: this.kunnr,
-							"status": this.agentStatus.code,
-	            "storeName":this.agentKeyword,
-							"current" : this.current,
-							"size" : this.size,
-							url: 'json',
-							type: 'body'
-						},
+						kunnr: this.kunnr,
+						// kunnr: "0001001097",
+						vkorg: "8100",
+						vtweg: "10",
+						spart: "40",
+						storeName: this.agentKeyword,
+						url: 'json',
+						type: 'body'
+					},
 						_this = this;
-						console.log(this.kunnr)
-					this.$post('getRetailerUrl', params, function(ret) {
+					this.$post('selectFreezeStore', params, function (ret) {
 						if (ret.code == 0 || ret.code == '0') {
-							_this.list =  _this.current == 1 ? ret.list.records : _this.list.concat(ret.list.records);
+							_this.freezeList = ret.data
+						}
+					});
+				},
+				agentUnfreezeProposer: function () {
+					var params = {
+						kunnr: this.kunnr,
+						// kunnr: "0001002432",
+						storeName: this.agentKeyword2,
+						url: 'json',
+						type: 'body'
+					},
+						_this = this;
+					this.$post('agentUnfreezeProposer', params, function (ret) {
+						if (ret.code == 0 || ret.code == '0') {
+							_this.thawList = ret.data
+						}
+					});
+				},
+				getStoreList: function (mescroll) {
+					var params = {
+						kunnr: this.kunnr,
+						"status": this.agentStatus.code,
+						"storeName": this.agentKeyword,
+						"current": this.current,
+						"size": this.size,
+						url: 'json',
+						type: 'body'
+					},
+						_this = this;
+					this.$post('getRetailerUrl', params, function (ret) {
+						if (ret.code == 0 || ret.code == '0') {
+							_this.list = _this.current == 1 ? ret.list.records : _this.list.concat(ret.list.records);
 							_this.totalPages = ret.list.pages;
 							_this.totaltotals = ret.list.total;
 							// _this.list =  _this.current == 1 ? _this.demoList : _this.list.concat(_this.demoList);
-					    if(_this.frist == 1){
-								_this.$nextTick(function(){
+							if (_this.frist == 1) {
+								_this.$nextTick(function () {
 									_this.configs();
 								})
 							}
-							if(mescroll){
-								mescroll.endSuccess(_this.size,true);
+							if (mescroll) {
+								mescroll.endSuccess(_this.size, true);
 							}
 						}
 					});
 				},
 				//  点击查看门店详情进行审核
-				lookStoreInfo: function(id) {
+				lookStoreInfo: function (id) {
 					var params = {
 						storeId: id
 					}
 					this.goWin('agentInfo', '../agentInfo/agentInfo_win.html', params);
 				},
+				//  点击查看门店详情进行审核
+				lookStoreInfo2: function (item) {
+					var params = {
+						storeData:item
+					}
+					this.goWin('agentInfo', '../agentInfo/thawInfo_win.html', params);
+				},
 				//  筛选状态
-				chooseStatus : function(){
-					  var _this = this;
-            this.chooseRegion(this.UIActionSelector,1,this.statuses,function(ret){
-							 if(ret.eventType == 'ok'){
-								 _this.agentStatus = ret.selectedInfo[0];
-								 _this.current = 1;
-								 if(_this.mescroll != ''){
-									 _this.mescroll.resetUpScroll();
-									 _this.mescroll.endSuccess(_this.size,true);
-								 }
-								 _this.getStoreList();
-							 }
-						})
+				chooseStatus: function () {
+					var _this = this;
+					this.chooseRegion(this.UIActionSelector, 1, this.statuses, function (ret) {
+						if (ret.eventType == 'ok') {
+							_this.agentStatus = ret.selectedInfo[0];
+							_this.current = 1;
+							if (_this.mescroll != '') {
+								_this.mescroll.resetUpScroll();
+								_this.mescroll.endSuccess(_this.size, true);
+							}
+							_this.getStoreList();
+						}
+					})
 				},
-				inSearch:function(){
+				inSearch: function () {
 					this.goWin('agentSearch', '../agentSearch/agentSearch_win.html');
+				},
+				inSearch2: function () {
+					this.goWin('agentSearch', '../agentSearch/freezeSearch_win.html');
 				}
 			}
 		})
 	}
 </script>
 
-</html>
+</html>

+ 7 - 1
script/httpRequest.js

@@ -142,7 +142,13 @@ this.confirmBusinessScope = "/biz/bizAgentLogin/confirmBusinessScope";
     //轮播图
 	this.getAgentBanner="/biz/bizStoreBrand/selectAgentBanner";
 	//核销查询
-	this.selectCouponLike="/biz/bizCoupon/selectCouponLike"
+	this.selectCouponLike="/biz/bizCoupon/selectCouponLike";
+	// 查看冻结门店
+	this.selectFreezeStore="/biz/bizAgentFunction/selectFreezeStore"
+	//查看解冻门店
+	this.agentUnfreezeProposer="/biz/bizAgentFunction/agentUnfreezeProposer"
+	//申请解冻
+	this.agentAuditProposer="/biz/bizAgentFunction/agentAuditProposer"
 }
 //  api的ajax
 $http.prototype.$post = function(url, data, callback, other) {