123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359 |
- <!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" />
- <title></title>
- </head>
- <style>
- /* .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%;
- margin: 0 5%;
- border-radius: 5px;
- }
- .search_input {
- color: #B5B5B5;
- font-size: .25rem;
- width: 100%;
- padding-left: .8rem;
- }
- </style>
- <body>
- <div id="app" v-cloak>
- <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>
- </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>
- </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>
- <!-- <script src="js/vue.js"></script> -->
- <script type="text/javascript" src="../../../../../script/aui-scroll.js"></script>
- <link rel="stylesheet" href="../../../../../script/mescroll/mescroll.min.css">
- <script type="text/javascript" src="../../../../../script/mescroll/mescroll.min.js"></script>
- <script type="text/javascript" src="../../../../../script/js/vue.js"></script>
- <script type="text/javascript" src="../../../../../script/js/vant-ui.js"></script>
- <script type="text/javascript" src="../../../../../script/js/main.js"></script>
- <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>
- apiready = function () {
- var active = api.pageParam.active;
- if (active!=2) {
- active==0
- }
- new Vue({
- el: '#app',
- data: {
- 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,
- active: active,
- statuses: [{
- code: '',
- name: '全部'
- }, {
- code: '0',
- name: '待审核'
- }, {
- code: '1',
- name: '审核通过'
- }],
- agentKeyword: '', // 冻结
- agentKeyword2: '', // 解冻
- agentStatus: { code: '', name: '全部' },
- UIActionSelector: '',
- mescroll: '',
- hasOther: false,
- totaltotals: 0,
- freezeList: [],
- thawList: []
- },
- watch: {
- agentKeyword: function () {
- this.selectFreezeStore();
- },
- agentKeyword2: function () {
- this.agentUnfreezeProposer();
- }
- },
- mounted: function () {
- this.init();
- },
- methods: {
- init: function () {
- this.UIActionSelector = api.require("UIActionSelector");
- this.kunnr = $api.getStorage('kunnr');
- this.getStoreList();
- this.selectFreezeStore();
- this.agentUnfreezeProposer();
- var _this = this;
- this.addEvent('refushAgentList', function () {
- _this.current = 1;
- _this.getStoreList();
- _this.selectFreezeStore();
- _this.agentUnfreezeProposer();
- })
- },
- configs: function () {
- var _this = this;
- this.frist = 2;
- this.configDownAndPull("mescroll", function (mescroll) {
- _this.list = [];
- _this.current = 1;
- _this.mescroll = mescroll;
- _this.getStoreList(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 () {
- if (_this.current < _this.totalPages) {
- _this.current = _this.current + 1;
- _this.getStoreList(_this.mescroll, 1);
- } else {
- _this.hasOther = true;
- // _this.mescroll.endSuccess(_this.size, false);
- }
- })
- },
- selectFreezeStore: function () {
- var params = {
- kunnr: this.kunnr,
- // kunnr: "0001001097",
- vkorg: "8100",
- vtweg: "10",
- spart: "40",
- storeName: this.agentKeyword,
- url: 'json',
- type: 'body'
- },
- _this = this;
- this.$post('selectFreezeStore', params, function (ret) {
- if (ret.code == 0 || ret.code == '0') {
- _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 () {
- _this.configs();
- })
- }
- if (mescroll) {
- mescroll.endSuccess(_this.size, true);
- }
- }
- });
- },
- // 点击查看门店详情进行审核
- 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();
- }
- })
- },
- inSearch: function () {
- this.goWin('agentSearch', '../agentSearch/agentSearch_win.html');
- },
- inSearch2: function () {
- this.goWin('agentSearch', '../agentSearch/freezeSearch_win.html');
- }
- }
- })
- }
- </script>
- </html>
|