index.vue 94 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660
  1. <template>
  2. <div class="bgcolor deviceOutside">
  3. <div class="navBarTOP">
  4. <!-- 顶部条-->
  5. <van-nav-bar class="navBar" title="计划外">
  6. <template #right>
  7. <span @click="searchFn">筛选<van-icon name="arrow-down" /></span>
  8. </template>
  9. </van-nav-bar>
  10. <div class="searchDiv">
  11. <van-search
  12. v-model="storeName"
  13. left-icon="search"
  14. show-action
  15. placeholder="搜索名称/编号/地址"
  16. @clear="clearFn">
  17. <template #action>
  18. <div @click="onSearchm">搜索</div>
  19. </template>
  20. </van-search>
  21. </div>
  22. <van-tabs class="myTab" type="card" v-model="tabVal" color="#0057ba" @change="tabChange">
  23. <van-tab title="销售部" name="0" :disabled="disabled"></van-tab>
  24. <van-tab title="我的" name="1" :disabled="disabled"></van-tab>
  25. </van-tabs>
  26. </div>
  27. <!-- 主体内容-->
  28. <div class="container content" style="margin-top: 144px" @touchmove="handleTouch">
  29. <van-list
  30. class="myList"
  31. v-model="loading"
  32. :finished="finished"
  33. finished-text="--已经到底了--"
  34. @load="onLoad">
  35. <div class="cellcontent" v-for="(item, index) in list" :key="index">
  36. <van-cell>
  37. <div class="card">
  38. <div class="title titlero">
  39. <template v-if="item.storeLabels">
  40. <!-- 金牌店ABC -->
  41. <img
  42. class="JPABC"
  43. :src="require('@/assets/Icon/storeA.png')"
  44. v-if="item.storeLabels.storeA" />
  45. <img
  46. class="JPABC"
  47. :src="require('@/assets/Icon/storeB.png')"
  48. v-if="item.storeLabels.storeB" />
  49. <img
  50. class="JPABC"
  51. :src="require('@/assets/Icon/storeC.png')"
  52. v-if="item.storeLabels.storeC" />
  53. <img
  54. class="JPABC"
  55. :src="require('@/assets/Icon/storeD.png')"
  56. v-if="item.storeLabels.storeD" />
  57. <img
  58. class="JPABC"
  59. :src="require('@/assets/Icon/storeE.png')"
  60. v-if="item.storeLabels.storeE" />
  61. <img
  62. class="JPABC"
  63. :src="require('@/assets/Icon/storeS.png')"
  64. v-if="item.storeLabels.storeS" />
  65. </template>
  66. <span @click="goOtherSystem(item)" :style="setStroeNameStyle(item)">
  67. <span>{{ item.storeName }}</span>
  68. (<span>{{ item.storeCode }}</span
  69. >)
  70. </span>
  71. <span class="btn" :data-clipboard-text="item.storeCode">
  72. <van-icon
  73. :name="paste"
  74. color="#ee0a24"
  75. size="20"
  76. style="top: 6px; margin-left: 4px" />
  77. </span>
  78. <!-- "approvalStatus": 1:已结案;0:未结案, -->
  79. <!-- "processApprovalStatus": 审批状态(0=未提交,1=已提交待审核,2=审批通过,3=审批拒绝) -->
  80. <template v-if="item.approvalStatus == 0">
  81. <span class="statusIcon submit" v-if="item.processApprovalStatus == 1"
  82. >已提交</span
  83. >
  84. <span class="statusIcon noSubmit" v-if="item.processApprovalStatus == 0"
  85. >未提交</span
  86. >
  87. </template>
  88. </div>
  89. <div class="info" style="position: relative">
  90. 联系人:{{ item.contactName }}
  91. <div style="position: absolute; bottom: 0px; right: 0px">
  92. <!-- 凤凰客户 -->
  93. <el-popover
  94. popper-class="zpover"
  95. placement="bottom"
  96. width="120"
  97. trigger="click"
  98. content="该客户为凤凰客户">
  99. <div
  100. v-if="item.storeLabels.fhCustomer"
  101. class="visitStoreIco"
  102. style="background-color: #fff"
  103. slot="reference">
  104. <van-icon :name="require('@/assets/Icon/fenghuangjihua.png')" size="26" />
  105. </div>
  106. </el-popover>
  107. <el-popover
  108. popper-class="zpover zpover6"
  109. placement="bottom-start"
  110. trigger="click">
  111. <div>
  112. <p>
  113. 本店{{ timeData }}下单SKU数:<a
  114. @click="linkList(item)"
  115. style="text-decoration: underline"
  116. >点击查看详情</a
  117. >
  118. </p>
  119. </div>
  120. <div
  121. class="visitStoreIco"
  122. v-if="item.storeLabels.zysslNums !== false"
  123. style="background-color: #fff; position: relative"
  124. slot="reference">
  125. <p
  126. style="
  127. width: 100%;
  128. position: absolute;
  129. z-index: 1;
  130. top: 0.2px;
  131. width: 22px;
  132. margin: 0;
  133. margin-left: 3.6px;
  134. text-align: center;
  135. font-size: 12px;
  136. ">
  137. {{ item.storeLabels.zysslNums }}
  138. </p>
  139. <van-icon :name="ord" size="26" />
  140. </div>
  141. </el-popover>
  142. <el-popover
  143. popper-class="zpover zpover5"
  144. placement="bottom"
  145. width="200"
  146. trigger="click">
  147. <div v-if="item.storeLabels">
  148. <p>已参加:</p>
  149. <p v-for="tt in (item.storeLabels.targetOne + '').split(';')">
  150. {{ tt }}
  151. </p>
  152. </div>
  153. <div
  154. class="visitStoreIco"
  155. v-if="item.storeLabels.targetOne"
  156. style="background-color: #fff"
  157. slot="reference">
  158. <van-icon :name="targetOne" size="26" />
  159. </div>
  160. </el-popover>
  161. <el-popover
  162. popper-class="zpover"
  163. placement="bottom"
  164. width="120"
  165. trigger="click"
  166. content="调色机7天未调色">
  167. <div
  168. v-if="item.storeLabels.stopColorMixerSeven"
  169. class="visitStoreIco"
  170. style="background-color: #fff"
  171. slot="reference">
  172. <van-icon :name="Network" size="26" />
  173. </div>
  174. </el-popover>
  175. <el-popover
  176. popper-class="zpover"
  177. placement="bottom"
  178. width="120"
  179. trigger="click"
  180. content="调色机当月未调色">
  181. <div
  182. v-if="item.storeLabels.stopColorMixerMonth"
  183. class="visitStoreIco"
  184. style="background-color: #fff"
  185. slot="reference">
  186. <van-icon :name="WiFi" size="26" />
  187. </div>
  188. </el-popover>
  189. <el-popover
  190. popper-class="zpover"
  191. placement="bottom"
  192. width="200"
  193. trigger="click"
  194. content="同城店近60天未下单">
  195. <div
  196. v-if="item.storeLabels.fxNoOrder"
  197. class="visitStoreIco"
  198. style="background-color: #fff"
  199. slot="reference">
  200. <van-icon :name="order60" size="26" />
  201. </div>
  202. </el-popover>
  203. <el-popover
  204. popper-class="zpover"
  205. placement="bottom"
  206. width="200"
  207. trigger="click"
  208. content="金牌店近30天未下单">
  209. <div
  210. v-if="item.storeLabels.noOrder"
  211. class="visitStoreIco"
  212. style="background-color: #fff"
  213. slot="reference">
  214. <van-icon :name="order" size="26" />
  215. </div>
  216. </el-popover>
  217. <el-popover
  218. popper-class="zpover"
  219. placement="bottom"
  220. width="200"
  221. trigger="click"
  222. content="本店本月进过专业时时丽">
  223. <div
  224. class="visitStoreIco"
  225. v-if="item.storeLabels.zyssl"
  226. style="background-color: #ed5c68"
  227. slot="reference">
  228. </div>
  229. </el-popover>
  230. <el-popover
  231. popper-class="zpover zpover1"
  232. placement="bottom"
  233. width="200"
  234. trigger="click"
  235. content="本店本月进过超好贴">
  236. <div
  237. v-if="item.storeLabels.chtczj"
  238. class="visitStoreIco"
  239. style="background-color: #0057ba"
  240. slot="reference">
  241. </div>
  242. </el-popover>
  243. <el-popover
  244. placement="bottom"
  245. popper-class="zpover zpover1 zpover1sb"
  246. :disabled="!item.userVisitTimesMap"
  247. trigger="click">
  248. <div
  249. v-if="item.storeLabels.visitTimes && item.storeLabels.visitTimes > 0"
  250. class="visitStoreIco"
  251. slot="reference"
  252. style="background-color: #fff; position: relative">
  253. <p
  254. style="
  255. width: 100%;
  256. position: absolute;
  257. z-index: 10;
  258. top: -2px;
  259. margin: 0;
  260. text-align: center;
  261. font-size: 12px;
  262. ">
  263. {{ item.storeLabels.visitTimes }}
  264. </p>
  265. <!-- A级金牌店拜访次数少于needVisitNum 需要拜访的次数 -->
  266. <van-icon
  267. :name="require('@/assets/ordernumRed.png')"
  268. size="26"
  269. v-if="
  270. (item.storeLabels.storeA || item.storeLabels.storeS) &&
  271. item.needVisitNum &&
  272. item.storeLabels.visitTimes < item.needVisitNum
  273. " />
  274. <!-- 其他门店拜访 -->
  275. <van-icon :name="require('@/assets/ordernum.png')" size="26" v-else />
  276. </div>
  277. <p style="text-align: center; background: #fff; color: #000; padding: 5px 0">
  278. 本店本月已拜访过{{ item.storeLabels.visitTimes }}次
  279. </p>
  280. <p
  281. v-if="
  282. (item.storeLabels.storeA || item.storeLabels.storeS) && item.needVisitNum
  283. "
  284. style="text-align: center; background: #fff; color: red; padding: 5px 0">
  285. <span v-if="item.storeLabels.storeA">A</span>
  286. <span v-if="item.storeLabels.storeS">S</span>
  287. 级金牌店拜访标准:1月{{ item.needVisitNum }}次
  288. </p>
  289. <el-table :data="item.userVisitTimesMap" border max-height="180px">
  290. <el-table-column label="业务员" prop="userName" />
  291. <el-table-column label="拜访次数" prop="visitTimes" width="110px" />
  292. </el-table>
  293. </el-popover>
  294. </div>
  295. </div>
  296. <div class="info">
  297. 类型:{{ item.storeCategory }}&nbsp;
  298. <!-- 以后需要再打开 -->
  299. <!-- <el-popover popper-class="zpover zpover6" placement="bottom-start" trigger="click">
  300. <div>
  301. <p>
  302. 本店经营品项指导:
  303. <a @click="linkimg(item)" style="text-decoration: underline">点击查看</a>
  304. </p>
  305. </div>
  306. <van-icon name="question-o" size="18" slot="reference" />
  307. </el-popover> -->
  308. </div>
  309. <div class="info" v-if="item.telephone" @click="buryingPointFn(item)">
  310. 联系电话:<a
  311. style="color: #0057ba; font-weight: bold; text-decoration: underline"
  312. :href="'tel:' + item.telephone"
  313. >{{ item.telephone }}<van-icon name="phone"
  314. /></a>
  315. </div>
  316. <div class="info">
  317. 地址:{{ item.addressLine }}
  318. <img
  319. v-if="item.storeLonExist"
  320. style="width: 36px"
  321. :src="sbpmdh"
  322. @click="linkapp(item)" />
  323. </div>
  324. <!-- 潜在店不显示经销商 -->
  325. <template v-if="item.sfaStoreType.type != 'qzd'">
  326. <!-- 分销店 -->
  327. <template
  328. v-if="
  329. item.sfaStoreType &&
  330. item.sfaStoreType.type == 'fxd' &&
  331. item.sfaStoreChainsContactList
  332. ">
  333. <div class="info" v-if="typeShow">
  334. 经销商:
  335. <div
  336. class="TCFXListItem"
  337. v-for="(item, index) in item.sfaStoreChainsContactList">
  338. <el-popover
  339. popper-class="zpover zpoverStoreztype"
  340. placement="bottom-start"
  341. trigger="click">
  342. <div>
  343. <div>{{ item.chainCode }}</div>
  344. <div>{{ item.chainName }}</div>
  345. </div>
  346. <div slot="reference" :key="index">
  347. {{ item.categoryDescribe }}
  348. </div>
  349. </el-popover>
  350. </div>
  351. </div>
  352. </template>
  353. <template v-else>
  354. <div class="info" v-if="typeShow">经销商:{{ item.chainName }}</div>
  355. </template>
  356. </template>
  357. <!-- storeLonExist 门店是否存在经纬度 字段false=不显示导航和距离,true=显示 -->
  358. <div class="info" v-if="item.storeLonExist">
  359. 距离:{{ Micrometer(item.distance) }}m
  360. </div>
  361. <div class="info" v-if="item.cntOrderAmtYear">
  362. 门店销额(全年累计):{{ Micrometer(item.cntOrderAmtYear) }}元
  363. </div>
  364. </div>
  365. <div
  366. class="statstext"
  367. v-if="item.stateString == '未拜访'"
  368. style="background-color: #ed5c68">
  369. 未拜访
  370. </div>
  371. <div
  372. class="statstext"
  373. v-if="item.stateString == '拜访中'"
  374. style="background-color: white">
  375. <van-icon :name="times" color="#ee0a24" size="32" />
  376. </div>
  377. <div class="statstext" v-if="item.stateString == '已拜访'">已拜访</div>
  378. <div class="btnbox">
  379. <van-row>
  380. <van-col
  381. span="4"
  382. v-if="item.stateString != '已拜访' && customerVisits"
  383. @click="storeVisit(item)">
  384. <img :src="call" style="margin: 0 auto; height: 15px; display: block" />
  385. <p style="text-align: center; margin: 0; font-size: 11px">进入拜访</p>
  386. </van-col>
  387. <van-col
  388. span="4"
  389. v-if="item.storeCategory == '公装经销商'"
  390. @click="projectOutVisit(item)">
  391. <img :src="xmgj" style="margin: 0 auto; height: 15px; display: block" />
  392. <p style="text-align: center; margin: 0; font-size: 11px">项目跟进</p>
  393. </van-col>
  394. <van-col
  395. span="4"
  396. v-if="
  397. item.stateString != '已拜访' &&
  398. item.storeCategory != '公装经销商' &&
  399. customerVisits
  400. "
  401. @click="abnormalVisit(item)">
  402. <img :src="yichang" style="margin: 0 auto; height: 15px; display: block" />
  403. <p style="text-align: center; margin: 0; margin-top: 1px; font-size: 11px">
  404. 异常拜访
  405. </p>
  406. </van-col>
  407. <van-col
  408. span="4"
  409. v-if="item.storeLabels.zysslNums !== false"
  410. @click="linkList(item)">
  411. <img
  412. :src="require('@/assets/recommendicon.png')"
  413. style="margin: 0 auto; height: 15px; display: block" />
  414. <p style="text-align: center; margin: 0; margin-top: 1px; font-size: 11px">
  415. 推荐下单
  416. </p>
  417. </van-col>
  418. <van-col span="4" v-else-if="item.showOrderButton" @click="orderFn(item)">
  419. <img :src="xiadan" style="margin: 0 auto; height: 15px; display: block" />
  420. <p style="text-align: center; margin: 0; margin-top: 1px; font-size: 11px">
  421. 去下单
  422. </p>
  423. </van-col>
  424. <van-col span="4" v-if="item.stateString == '已拜访'" @click="Visit(item)">
  425. <img :src="bfxx" style="margin: 0 auto; height: 15px; display: block" />
  426. <p style="text-align: center; margin: 0; margin-top: 1px; font-size: 11px">
  427. 拜访信息
  428. </p>
  429. </van-col>
  430. <van-col span="4" @click="visitFn(item)">
  431. <img :src="kehuxinxi" style="margin: 0 auto; width: 15px; display: block" />
  432. <p style="text-align: center; margin: 0; margin-top: 1px; font-size: 11px">
  433. 客户信息
  434. </p>
  435. </van-col>
  436. <van-col span="4" v-if="tabVal == 1" @click="storeJoinVisit(item)">
  437. <img :src="jiarujihua" style="margin: 0 auto; height: 15px; display: block" />
  438. <p style="text-align: center; margin: 0; font-size: 11px">加入计划内</p>
  439. </van-col>
  440. </van-row>
  441. </div>
  442. </van-cell>
  443. <div class="lineGrey"></div>
  444. </div>
  445. <van-empty v-if="list.length == 0" />
  446. </van-list>
  447. </div>
  448. <van-popup v-model="showPicker" position="bottom" class="textsize">
  449. <van-row
  450. style="
  451. /* position: fixed; */
  452. /* top: 0; */
  453. width: 100%;
  454. z-index: 998;
  455. background-color: #fff;
  456. border-bottom: 1px solid #ccc;
  457. height: 50px;
  458. ">
  459. <van-col span="3" style="text-align: center; margin: 14px 0" @click="showPicker = false">
  460. <van-icon name="cross" size="20" color="#909399" />
  461. </van-col>
  462. <van-col span="13"> </van-col>
  463. <van-col span="4" style="text-align: center; line-height: 36px" @click="onConfirm">
  464. <div style="color: #0057ba">
  465. <van-button type="info" size="small" color="#0057ba">筛选</van-button>
  466. </div></van-col
  467. >
  468. <van-col span="4" style="text-align: center; line-height: 36px" @click="onsets">
  469. <van-button type="default" size="small" style="height: 28px">重置</van-button>
  470. </van-col>
  471. </van-row>
  472. <!-- <div style="height: 48px; width: 100%"></div> -->
  473. <div class="searchcheck" @touchmove="handleTouch">
  474. <p class="searchchecktitle">&nbsp;经销商</p>
  475. <van-row>
  476. <van-col span="24">
  477. <div @click="moreTypeShowFn">
  478. <van-field
  479. style="
  480. margin-top: -6px;
  481. border-radius: 6px;
  482. border: 1px solid #ccc;
  483. overflow: hidden;
  484. "
  485. readonly
  486. v-model="chainName"
  487. label=""
  488. placeholder="请选择经销商" />
  489. </div>
  490. </van-col>
  491. </van-row>
  492. <p class="searchchecktitle" @click="otherbqShow = !otherbqShow">
  493. &nbsp;门店标签<van-icon name="arrow-down" style="float: right" />
  494. </p>
  495. <van-checkbox-group v-model="storeLabelTypes" direction="horizontal">
  496. <div v-if="otherbqShow" style="width: 100%">
  497. <div class="checkbox" v-for="(item, index) in StoreLabels" :key="index">
  498. <van-checkbox :name="item.dictValue">{{ item.dictLabel }}</van-checkbox>
  499. </div>
  500. <div style="height: 2px; background-color: #f5f5f5; width: 100%; clear: both"></div>
  501. </div>
  502. </van-checkbox-group>
  503. <van-checkbox-group v-model="result" direction="horizontal">
  504. <p class="searchchecktitle" @click="otherkkdShow = !otherkkdShow">
  505. &nbsp;可控店<van-icon name="arrow-down" style="float: right" />
  506. </p>
  507. <div v-if="otherkkdShow">
  508. <div v-for="(item, index) in storeTypeLists" :key="index" class="checkbox1">
  509. <div v-if="item.groupType == 'kkd'" class="child">
  510. <van-checkbox :name="item.dictValue">{{ item.dictLabel }}</van-checkbox>
  511. </div>
  512. </div>
  513. </div>
  514. <div style="height: 2px; background-color: #f5f5f5; width: 100%; clear: both"></div>
  515. <p class="searchchecktitle" @click="otherfxdShow = !otherfxdShow">
  516. &nbsp;分销店<van-icon name="arrow-down" style="float: right" />
  517. </p>
  518. <div v-if="otherfxdShow" style="margin: 0 14px; width: 100%">
  519. <div style="height: 2px; background-color: #f5f5f5; width: 100%; clear: both"></div>
  520. <p class="searchchecktitle1" @click="otherfxdShow1 = !otherfxdShow1">
  521. 金牌店<van-icon name="arrow-down" style="float: right" />
  522. </p>
  523. <div v-if="otherfxdShow1">
  524. <div v-for="(item1, index1) in storeTypeLists" :key="200 + index1" class="checkbox1">
  525. <div v-if="item1.groupType == 'fxd' && item1.remark == 'jp'" class="child">
  526. <van-checkbox :name="item1.dictValue">{{ item1.dictLabel }}</van-checkbox>
  527. </div>
  528. </div>
  529. <div style="height: 2px; background-color: #f5f5f5; width: 100%; clear: both"></div>
  530. </div>
  531. <p class="searchchecktitle1" @click="otherfxdShow2 = !otherfxdShow2">
  532. 同城分销店<van-icon name="arrow-down" style="float: right" />
  533. </p>
  534. <div v-if="otherfxdShow2">
  535. <div
  536. v-for="(itemlj, indexlj) in storeTypeLists"
  537. :key="400 + indexlj"
  538. class="checkbox1">
  539. <div v-if="itemlj.groupType == 'fxd' && itemlj.remark == 'tcfx'" class="child">
  540. <van-checkbox :name="itemlj.dictValue">{{ itemlj.dictLabel }}</van-checkbox>
  541. </div>
  542. </div>
  543. <div style="clear: both"></div>
  544. </div>
  545. </div>
  546. <div style="height: 2px; background-color: #f5f5f5; width: 100%; clear: both"></div>
  547. <template v-if="postType != 'GZ' && postType != 'JZ'">
  548. <p class="searchchecktitle" @click="isCompetingStores = !isCompetingStores">
  549. &nbsp;潜在客户<van-icon name="arrow-down" style="float: right" />
  550. </p>
  551. <div v-if="isCompetingStores" style="width: 100%">
  552. <div
  553. class="checkbox1"
  554. v-for="(item, index) in storeTypeLists"
  555. :key="index"
  556. v-if="item.groupType == 'qzd'">
  557. <div class="child">
  558. <van-checkbox :name="item.dictValue">{{ item.dictLabel }}</van-checkbox>
  559. </div>
  560. </div>
  561. <div style="height: 2px; background-color: #f5f5f5; width: 100%; clear: both"></div>
  562. </div>
  563. <div style="height: 2px; background-color: #f5f5f5; width: 100%; clear: both"></div>
  564. </template>
  565. <p class="searchchecktitle" @click="otherShow = !otherShow">
  566. &nbsp;其他 <van-icon name="arrow-down" style="float: right" />
  567. </p>
  568. <div v-if="otherShow">
  569. <div v-for="(item2, index2) in storeTypeLists" :key="100 + index2" class="checkbox1">
  570. <div v-if="item2.groupType == 'other'" class="child">
  571. <van-checkbox :name="item2.dictValue">{{ item2.dictLabel }}</van-checkbox>
  572. </div>
  573. </div>
  574. </div>
  575. </van-checkbox-group>
  576. </div>
  577. </van-popup>
  578. <van-popup v-model="moreTypeShow" position="bottom" style="height: 80%">
  579. <van-row style="background-color: #f5f5f5">
  580. <van-col span="20">
  581. <van-field
  582. left-icon="search"
  583. style="margin-top: 2px; border-radius: 6px; overflow: hidden"
  584. v-model="CustomerName"
  585. label=""
  586. placeholder="请输入关键词"
  587. clearable />
  588. </van-col>
  589. <van-col span="4" style="text-align: center; line-height: 48px" @click="getCustomer">
  590. <div style="background-color: #0057ba; color: #fff">搜索</div></van-col
  591. >
  592. </van-row>
  593. <van-picker
  594. show-toolbar
  595. :columns="chainsData"
  596. value-key="chainName"
  597. @confirm="onConfirmChainsList"
  598. @cancel="moreTypeShow = false"
  599. visible-item-count="10" />
  600. </van-popup>
  601. <tab-bar tabBarActive="outsidelist"></tab-bar>
  602. <div class="positionContent" @click="rangeStoreFn()" v-if="mapShows">
  603. <van-icon class="img" :name="mpimg" size="50" />
  604. </div>
  605. </div>
  606. </template>
  607. <script>
  608. import tabBar from '@/components/tabBar';
  609. import {
  610. getUserOutPlaList,
  611. getUserOrgStoreList,
  612. stopVisit,
  613. checkVisit,
  614. addVisitsPosition,
  615. mobileReposition,
  616. getStoreyslTypeList,
  617. getStoreTypeListlp,
  618. joinInPlan,
  619. getStoreLabels,
  620. getCustomerList,
  621. buryingPoint,
  622. ProductItemImge,
  623. } from '@/api/index';
  624. import times from '@/assets/Icon/times.png';
  625. import order60 from '@/assets/order60.png';
  626. import targetOne from '@/assets/targetOne.png';
  627. import Network from '@/assets/Network.png';
  628. import WiFi from '@/assets/WiFi.png';
  629. import ord from '@/assets/ord.png';
  630. import timeico from '@/assets/Icon/datatims.png';
  631. import location from '@/assets/location.png';
  632. import paste from '@/assets/paste.png';
  633. import visitTimes from '@/assets/visitTimes.png';
  634. import mpimg from '@/assets/mpimg.png';
  635. import axios from 'axios';
  636. import mapmarker from '@/components/mapMarkerDouble';
  637. import order from '@/assets/order.png';
  638. import sbpmdh from '@/assets/sbpmdh.png';
  639. import request from '@/utils/request';
  640. import call from '@/assets/call.png';
  641. import jiarujihua from '@/assets/jiarujihua.png';
  642. import kehuxinxi from '@/assets/kehuxinxi-2.png';
  643. import xiadan from '@/assets/xiadan.png';
  644. import yichang from '@/assets/yichang.png';
  645. import bfxx from '@/assets/bfxx.png';
  646. import xmgj from '@/assets/xmgj.png';
  647. import { getOrderUrlByStoreId } from '@/api/inventory';
  648. import { checkStoreAddressByStoreCode } from '@/api/visitstore';
  649. import { getPosition, getMapPoi, getkeywordPoi, getTicketFun } from '@/utils/TXApiFun';
  650. export default {
  651. name: 'outsidelist',
  652. components: { tabBar, mapmarker },
  653. data() {
  654. return {
  655. yichang: yichang,
  656. xmgj: xmgj,
  657. bfxx: bfxx,
  658. xiadan: xiadan,
  659. kehuxinxi: kehuxinxi,
  660. jiarujihua: jiarujihua,
  661. call: call,
  662. times: times,
  663. searchShows: false,
  664. paste: paste,
  665. visitTimess: visitTimes,
  666. sbpmdh: sbpmdh,
  667. typeShow: false,
  668. mpimg: mpimg,
  669. order: order,
  670. ord: ord,
  671. mapShow: false,
  672. otherShow: false,
  673. Network: Network,
  674. WiFi: WiFi,
  675. order60: order60,
  676. targetOne: targetOne,
  677. chainName: '',
  678. chainCode: '',
  679. mapShows: false,
  680. activeNames: '1',
  681. showPopover: false,
  682. moreTypeShow: false,
  683. showPopoverVNUM: [],
  684. showPopoverC: [],
  685. showPopoverZ: [],
  686. zyssl: [],
  687. chtczj: [],
  688. noVisit: [],
  689. noOrder: [],
  690. fxNoOrder: [],
  691. storeLabelTypes: [],
  692. // showPopover:false,
  693. location: location,
  694. timeico: timeico,
  695. disabled: false,
  696. timer: null,
  697. flag: true,
  698. show: false,
  699. tabVal: '1',
  700. list: [],
  701. cont: 0,
  702. loading: false,
  703. showPicker: false,
  704. finished: false,
  705. otherbqShow: true,
  706. otherkkdShow: true,
  707. otherfxdShow: true,
  708. otherfxdShow2: true,
  709. otherfxdShow1: true,
  710. typeName: '搜索',
  711. visitEndId: '',
  712. pageSize: 12,
  713. pageNum: 1,
  714. listActive: null,
  715. query: '',
  716. storeName: '',
  717. genDate: '',
  718. storeType: '',
  719. endShow: false,
  720. storeCategory: '',
  721. fromValue: {},
  722. storeTypeList: [],
  723. storeTypeLists: [],
  724. chainsData: [],
  725. serachstype: '',
  726. addShow1: false,
  727. storeCategoryList: '',
  728. result: [],
  729. StoreLabels: [],
  730. CustomerName: '',
  731. lat: '',
  732. lon: '',
  733. timeData: '',
  734. customerVisits: true,
  735. isCompetingStores: true,
  736. postType: '',
  737. };
  738. },
  739. watch: {
  740. $route(to, from) {
  741. this.storeName = localStorage.getItem('outvstoreName');
  742. if (
  743. localStorage.getItem('outvchainName') &&
  744. localStorage.getItem('outvchainName') != 'null'
  745. ) {
  746. this.chainName = localStorage.getItem('outvchainName');
  747. }
  748. if (localStorage.getItem('lat') != null) {
  749. this.lat = localStorage.getItem('lat');
  750. this.lon = localStorage.getItem('lon');
  751. } else {
  752. this.lat = '';
  753. this.lon = '';
  754. }
  755. if (localStorage.getItem('outvstoreLabelTypes') != null) {
  756. this.storeLabelTypes = localStorage.getItem('outvstoreLabelTypes').split(',');
  757. } else {
  758. this.storeLabelTypes = [];
  759. }
  760. if (localStorage.getItem('outvstoreCategoryList') != null) {
  761. this.result = localStorage.getItem('outvstoreCategoryList').split(',');
  762. this.storeCategoryList = this.result.join(',');
  763. } else {
  764. this.result = [];
  765. this.storeCategoryList = this.result.join(',');
  766. }
  767. this.chainCode = localStorage.getItem('outvchainCode') || '';
  768. this.storeName = localStorage.getItem('outvstoreName') || '';
  769. if (
  770. (from.path == '/My/index' && to.path == '/outsidelist/index') ||
  771. (from.path == '/home' && to.path == '/outsidelist/index') ||
  772. (from.path == '/deviceWithin/index' && to.path == '/outsidelist/index') ||
  773. (from.path == '/storemanagement/index' && to.path == '/outsidelist/index')
  774. ) {
  775. this.tabVal = '1';
  776. } else {
  777. if (localStorage.getItem('tabVal') != null) {
  778. this.tabVal = localStorage.getItem('tabVal');
  779. }
  780. }
  781. if (
  782. (from.path == '/storeDetail' && to.path == '/outsidelist/index') ||
  783. (from.path == '/storeGroup' && to.path == '/outsidelist/index') ||
  784. (from.path == '/suishenbangOutstoreVisit' && to.path == '/outsidelist/index') ||
  785. (from.path == '/outabnormalVisit' && to.path == '/outsidelist/index') ||
  786. (from.path == '/home' && to.path == '/outsidelist/index') ||
  787. (from.path == '/deviceWithin/index' && to.path == '/outsidelist/index') ||
  788. (from.path == '/storemanagement/index' && to.path == '/outsidelist/index') ||
  789. (from.path == '/My/index' && to.path == '/outsidelist/index')
  790. ) {
  791. this.onSearch();
  792. }
  793. this.postType = localStorage.getItem('postType');
  794. if (this.postType == 'GZ') {
  795. this.addShow1 = false;
  796. this.otherShow = true;
  797. } else {
  798. this.addShow1 = true;
  799. this.otherShow = false;
  800. }
  801. if (localStorage.getItem('postType') == 'JZ' || localStorage.getItem('postType') == 'GZ') {
  802. this.mapShows = false;
  803. } else {
  804. this.mapShows = true;
  805. }
  806. this.getMonth();
  807. },
  808. },
  809. created() {
  810. this.storeName = localStorage.getItem('outvstoreName');
  811. if (localStorage.getItem('outvchainName') && localStorage.getItem('outvchainName') != 'null') {
  812. this.chainName = localStorage.getItem('outvchainName');
  813. }
  814. if (localStorage.getItem('outvstoreLabelTypes') != null) {
  815. this.storeLabelTypes = localStorage.getItem('outvstoreLabelTypes').split(',');
  816. } else {
  817. this.storeLabelTypes = [];
  818. }
  819. if (localStorage.getItem('outvstoreCategoryList') != null) {
  820. this.result = localStorage.getItem('outvstoreCategoryList').split(',');
  821. this.storeCategoryList = this.result.join(',');
  822. } else {
  823. this.result = [];
  824. this.storeCategoryList = this.result.join(',');
  825. }
  826. this.chainCode = localStorage.getItem('outvchainCode') || '';
  827. this.storeName = localStorage.getItem('outvstoreName') || '';
  828. if (localStorage.getItem('tabVal') == null || this.$route.query.info != 'y') {
  829. if (this.$route.query.info != undefined) {
  830. if (this.$route.query.info.indexOf('y') != -1) {
  831. this.tabVal = localStorage.getItem('tabVal');
  832. } else {
  833. this.tabVal = '1';
  834. }
  835. } else {
  836. this.tabVal = localStorage.getItem('tabVal');
  837. }
  838. } else {
  839. this.tabVal = localStorage.getItem('tabVal');
  840. }
  841. if (localStorage.getItem('postType') == 'JZ' || localStorage.getItem('postType') == 'GZ') {
  842. this.mapShows = false;
  843. } else {
  844. this.mapShows = true;
  845. }
  846. this.query = this.$route.query;
  847. localStorage.removeItem('visitId');
  848. this.getStoreTypeList();
  849. this.getStoreLabels();
  850. this.postType = localStorage.getItem('postType');
  851. if (this.postType == 'GZ') {
  852. this.addShow1 = false;
  853. this.otherShow = true;
  854. } else {
  855. this.addShow1 = true;
  856. this.otherShow = false;
  857. }
  858. this.getMonth();
  859. },
  860. mounted() {
  861. // 上拉边界下拉出现白色空白
  862. let node = document.getElementsByClassName('deviceOutside')[0];
  863. node.addEventListener(
  864. 'touchmove',
  865. (e) => {
  866. if (e._isScroller) return;
  867. e.preventDefault();
  868. },
  869. {
  870. passive: false,
  871. },
  872. );
  873. },
  874. methods: {
  875. handleTouch(e) {
  876. e._isScroller = true;
  877. },
  878. setStroeNameStyle(item) {
  879. // 家装或工装 approvalStatus:是否结案 0:未结案,1:已结案
  880. if (
  881. (item.sfaStoreType && (item.sfaStoreType.jz || item.sfaStoreType.gz)) ||
  882. item.approvalStatus == null ||
  883. item.approvalStatus == 0
  884. ) {
  885. return {};
  886. } else {
  887. return { color: '#0057ba', 'text-decoration': 'underline' };
  888. }
  889. },
  890. clearFn() {
  891. this.storeName = '';
  892. localStorage.setItem('outvstoreName', '');
  893. },
  894. linkapp(val) {
  895. var poind = this.gcj02BD(val.lat, val.lon);
  896. let url = window.location.href;
  897. let that = this;
  898. let wx = this.wx;
  899. let qiyeData;
  900. const instance = axios.create();
  901. instance.defaults.headers.common['userId'] = localStorage.getItem('loginName');
  902. instance
  903. .get(process.env.VUE_APP_BASE_API + 'mobile/wx/ticket', {
  904. params: {
  905. url: url,
  906. agent: 1,
  907. },
  908. })
  909. .then((response) => {
  910. if (response.status == 200) {
  911. qiyeData = response.data.data;
  912. wx.agentConfig({
  913. corpid: qiyeData.appId, // 必填,企业微信的corpid,必须与当前登录的企业一致
  914. agentid: qiyeData.agentId, // 必填,企业微信的应用id (e.g. 1000247)
  915. timestamp: qiyeData.timestamp, // 必填,生成签名的时间戳
  916. nonceStr: qiyeData.nonceStr, // 必填,生成签名的随机串
  917. signature: qiyeData.signature, // 必填,签名,见附录-JS-SDK使用权限签名算法
  918. jsApiList: ['launchMiniprogram'], //必填,传入需要使用的接口名称
  919. success: function (res) {
  920. wx.invoke(
  921. 'launchMiniprogram',
  922. {
  923. appid: 'wx238bbb5f6d958414',
  924. path:
  925. 'pages/relayStation/relayStation?latitude=' +
  926. poind.lat +
  927. '&longitude=' +
  928. poind.lon +
  929. '&name=' +
  930. val.addressLine,
  931. },
  932. function (res) {
  933. if (res.err_msg == 'launchMiniprogram:ok') {
  934. } else {
  935. }
  936. },
  937. );
  938. },
  939. fail: function (res) {
  940. if (res.errMsg.indexOf('function not exist') > -1) {
  941. alert('版本过低请升级');
  942. }
  943. },
  944. });
  945. }
  946. });
  947. },
  948. orderFn(val) {
  949. this.buryingPoint({
  950. systemModel: '计划外',
  951. buryingPointType: 1,
  952. buryingPointValue: val.storeName + '(' + val.storeCode + ')',
  953. buryingPointName: '去下单',
  954. buryingPointPosition: this.tabVal == 1 ? '我的' : '销售部',
  955. });
  956. getOrderUrlByStoreId({
  957. storeId: val.storeId,
  958. from: 'outPlan',
  959. }).then((res) => {
  960. if (res.code == 200 && res.data) {
  961. window.location.href = res.data;
  962. } else {
  963. this.Toast({
  964. message: res.msg,
  965. duration: 5000,
  966. });
  967. }
  968. });
  969. },
  970. linkList(val) {
  971. this.buryingPoint({
  972. systemModel: '计划外',
  973. buryingPointType: 1,
  974. buryingPointValue: val.storeName + '(' + val.storeCode + ')',
  975. buryingPointName: '推荐下单',
  976. buryingPointPosition: this.tabVal == 1 ? '我的' : '销售部',
  977. });
  978. this.$router.push({
  979. path: '/pItem',
  980. query: {
  981. id: val.storeId,
  982. detilId: 'a',
  983. from: 'outPlan',
  984. storeCode: val.storeCode,
  985. storeName: val.storeName,
  986. showOrderButton: val.showOrderButton,
  987. },
  988. });
  989. },
  990. linkimg(val) {
  991. ProductItemImge({ storeId: val.storeId }).then((response) => {
  992. if (response.code == 200) {
  993. if (response.data != undefined) {
  994. window.open(response.data);
  995. } else {
  996. this.$toast(response.msg);
  997. }
  998. } else {
  999. this.$toast(res.msg);
  1000. }
  1001. });
  1002. },
  1003. getMonth() {
  1004. // 获取当前日期
  1005. var currentDate = new Date();
  1006. // 获取当前月份
  1007. var currentMonth = currentDate.getMonth();
  1008. // 获取当前年份
  1009. // var currentYear = currentDate.getFullYear();
  1010. var previousMonthDate1 = new Date();
  1011. if (currentDate.getDate() == 1) {
  1012. previousMonthDate1.setMonth(currentMonth - 1);
  1013. } else {
  1014. }
  1015. var previousMonth1 = previousMonthDate1.getMonth();
  1016. var previousYear1 = previousMonthDate1.getFullYear();
  1017. // 计算前三个月的年份和月份
  1018. var previousMonthDate = new Date();
  1019. if (currentDate.getDate() == 1) {
  1020. previousMonthDate.setMonth(currentMonth - 3);
  1021. } else {
  1022. previousMonthDate.setMonth(currentMonth - 2);
  1023. }
  1024. 1;
  1025. var previousMonth = previousMonthDate.getMonth();
  1026. var previousYear = previousMonthDate.getFullYear();
  1027. //前三个月
  1028. if (previousYear1 == previousYear) {
  1029. var formattedPreviousMonth1 = previousYear1 + '-' + (previousMonth1 + 1);
  1030. // 格式化年份和月份
  1031. var formattedPreviousMonth = previousYear + '-' + (previousMonth + 1);
  1032. this.timeData =
  1033. formattedPreviousMonth.split('-')[1] + '-' + formattedPreviousMonth1.split('-')[1] + '月';
  1034. } else {
  1035. var formattedPreviousMonth1 = previousYear1 + '年' + (previousMonth1 + 1) + '月';
  1036. // .toString().padStart(2, '0');
  1037. // 格式化年份和月份
  1038. var formattedPreviousMonth = previousYear + '年' + (previousMonth + 1) + '月';
  1039. this.timeData = formattedPreviousMonth + '-' + formattedPreviousMonth1;
  1040. }
  1041. },
  1042. moreTypeShowFn() {
  1043. this.moreTypeShow = true;
  1044. // this.CustomerName=""
  1045. // this.chainsData=[]
  1046. this.getCustomer();
  1047. },
  1048. buryingPoint(val) {
  1049. buryingPoint(val);
  1050. },
  1051. getCustomer() {
  1052. var name = '';
  1053. if (this.tabVal != 1) {
  1054. name = 'org';
  1055. } else {
  1056. name = 'my';
  1057. }
  1058. getCustomerList({ name: this.CustomerName, from: name }).then((request) => {
  1059. this.chainsData = request.data;
  1060. this.chainsData.push({});
  1061. this.chainsData.pop();
  1062. });
  1063. },
  1064. onConfirmChainsList(value) {
  1065. if (value.chainName != undefined) {
  1066. this.chainName = value.chainName;
  1067. this.chainCode = value.chainCode;
  1068. }
  1069. this.showPickerChainsList = false;
  1070. this.moreTypeShow = false;
  1071. },
  1072. getStoreLabels() {
  1073. getStoreLabels().then((res) => {
  1074. this.StoreLabels = res.data;
  1075. });
  1076. },
  1077. searchType(val) {
  1078. this.storeTypeLists = [];
  1079. if (val != '') {
  1080. let filterArr = this.storeTypeList.filter((item) => {
  1081. return item.dictLabel.toLowerCase().includes(val.toLowerCase());
  1082. });
  1083. this.storeTypeLists = filterArr;
  1084. } else {
  1085. this.storeTypeLists = this.storeTypeList;
  1086. }
  1087. },
  1088. onConfirm(value) {
  1089. this.storeCategoryList = this.result.join(',');
  1090. // this.typeName=value.dictLabel
  1091. this.showPicker = false;
  1092. this.onSearchm();
  1093. },
  1094. moreTypeShowclearableFn() {
  1095. this.chainName = '';
  1096. this.chainCode = '';
  1097. this.chainsData = [];
  1098. },
  1099. onsets() {
  1100. this.result = [];
  1101. this.zyssl = [];
  1102. this.chtczj = [];
  1103. this.noVisit = [];
  1104. this.noOrder = [];
  1105. this.fxNoOrder = [];
  1106. this.storeLabelTypes = [];
  1107. this.storeCategoryList = this.result.join(',');
  1108. this.chainName = '';
  1109. this.chainCode = '';
  1110. // this.typeName=value.dictLabel
  1111. this.onSearch();
  1112. },
  1113. getStoreTypeList() {
  1114. getStoreTypeListlp({}).then((res) => {
  1115. this.storeTypeLists = res.data;
  1116. this.storeTypeList = res.data;
  1117. });
  1118. },
  1119. buryingPointFn(val) {
  1120. this.buryingPoint({
  1121. systemModel: '计划外',
  1122. buryingPointType: 1,
  1123. buryingPointValue: val.telephone,
  1124. buryingPointName: '点击电话',
  1125. buryingPointPosition: val.storeName + '(' + val.storeCode + ')',
  1126. });
  1127. },
  1128. // 范围
  1129. rangeStoreFn() {
  1130. localStorage.setItem('tabVal', this.tabVal);
  1131. getPosition()
  1132. .then((res) => {
  1133. let { TXisBD } = res;
  1134. this.lat = TXisBD.lat;
  1135. this.lon = TXisBD.lon;
  1136. let name = this.tabVal != 1 ? '销售部' : '我的';
  1137. this.buryingPoint({
  1138. systemModel: '计划外',
  1139. buryingPointType: 3,
  1140. buryingPointValue: name,
  1141. buryingPointName: '计划外',
  1142. buryingPointPosition: '进入地图',
  1143. });
  1144. this.$router.push({
  1145. path: '/rangeStore',
  1146. query: {
  1147. lat: '',
  1148. lon: '',
  1149. tabVal: this.tabVal,
  1150. },
  1151. });
  1152. })
  1153. .catch((error) => {
  1154. this.$dialog.alert({
  1155. message: error,
  1156. });
  1157. });
  1158. },
  1159. //取消搜索
  1160. cancelSearch() {
  1161. this.$refs.item.toggle();
  1162. },
  1163. storeJoinVisit(val) {
  1164. joinInPlan({ storeId: val.storeId }).then((res) => {
  1165. if (res.code == 200) {
  1166. this.onSearch();
  1167. } else {
  1168. this.$dialog.alert({
  1169. title: '系统提示',
  1170. message: res.msg,
  1171. });
  1172. }
  1173. });
  1174. },
  1175. searchFn() {
  1176. this.showPicker = true;
  1177. this.CustomerName = '';
  1178. },
  1179. moreSearch() {
  1180. this.onSearch();
  1181. this.$refs.item.toggle();
  1182. },
  1183. getUserOrgStoreList() {
  1184. this.storeType = localStorage.getItem('storeType');
  1185. this.endShow = false;
  1186. if (this.refreshing) {
  1187. this.list = [];
  1188. this.refreshing = false;
  1189. }
  1190. var that = this;
  1191. this.disabled = true;
  1192. this.toastLoading(0, '加载中...', true);
  1193. getUserOrgStoreList({
  1194. lat: that.lat,
  1195. lon: that.lon,
  1196. chainCode: this.chainCode ? this.chainCode : '',
  1197. storeLabelTypes: this.storeLabelTypes.join(','),
  1198. pageNum: this.pageNum,
  1199. storeCategoryList: this.storeCategoryList,
  1200. pageSize: this.pageSize,
  1201. storeName: this.storeName.trim(),
  1202. genDate: this.genDate,
  1203. }).then((res) => {
  1204. this.disabled = false;
  1205. this.toastLoading().clear();
  1206. if (res.code == 200) {
  1207. this.loading = false;
  1208. if (this.pageNum == '1') {
  1209. this.list = [];
  1210. }
  1211. this.list = this.list.concat(res.rows);
  1212. if (this.list.length >= res.total) {
  1213. this.finished = true;
  1214. } else {
  1215. this.finished = false;
  1216. }
  1217. this.pageNum = this.pageNum + 1;
  1218. this.list.forEach((item) => {
  1219. if (item.stateString.indexOf('拜访中') != -1) {
  1220. this.endShow = true;
  1221. this.visitEndId = item.visitId;
  1222. return;
  1223. }
  1224. });
  1225. res.rows.forEach((item) => {
  1226. this.showPopoverVNUM.push({ showPopover: false });
  1227. this.showPopoverC.push({ showPopover: false });
  1228. this.showPopoverZ.push({ showPopover: false });
  1229. });
  1230. } else {
  1231. this.$toast(res.msg);
  1232. }
  1233. });
  1234. },
  1235. positionFn(val) {
  1236. getPosition(true)
  1237. .then((res) => {
  1238. let { TXisBD } = res;
  1239. this.lat = TXisBD.lat;
  1240. this.lon = TXisBD.lon;
  1241. if (val == 1) {
  1242. if (this.tabVal == 1) {
  1243. this.getUserOutPlaListFun();
  1244. } else {
  1245. this.getUserOrgStoreList();
  1246. }
  1247. } else {
  1248. this.getUserOutPlaListFun();
  1249. }
  1250. })
  1251. .catch((error) => {
  1252. this.$dialog.alert({
  1253. message: error,
  1254. });
  1255. });
  1256. },
  1257. getUserOutPlaListFun() {
  1258. this.storeType = localStorage.getItem('storeType');
  1259. var that = this;
  1260. this.disabled = true;
  1261. let loading3 = this.$toast.loading({
  1262. duration: 0,
  1263. message: '加载中...',
  1264. forbidClick: true,
  1265. });
  1266. this.endShow = false;
  1267. if (this.refreshing) {
  1268. this.list = [];
  1269. this.refreshing = false;
  1270. }
  1271. getUserOutPlaList({
  1272. lat: that.lat,
  1273. lon: that.lon,
  1274. chainCode: this.chainCode ? this.chainCode : '',
  1275. storeLabelTypes: this.storeLabelTypes.join(','),
  1276. pageNum: this.pageNum,
  1277. storeCategoryList: this.storeCategoryList,
  1278. pageSize: this.pageSize,
  1279. storeName: this.storeName.trim(),
  1280. genDate: this.genDate,
  1281. }).then((res) => {
  1282. this.disabled = false;
  1283. if (res.code == 200) {
  1284. loading3.clear();
  1285. this.loading = false;
  1286. this.list = this.list.concat(res.rows);
  1287. if (this.list.length >= res.total) {
  1288. this.finished = true;
  1289. } else {
  1290. this.finished = false;
  1291. }
  1292. this.pageNum = this.pageNum + 1;
  1293. this.list.forEach((item) => {
  1294. if (item.stateString.indexOf('拜访中') != -1) {
  1295. this.endShow = true;
  1296. this.visitEndId = item.visitId;
  1297. return;
  1298. }
  1299. });
  1300. res.rows.forEach(() => {
  1301. this.showPopoverVNUM.push({ showPopover: false });
  1302. this.showPopoverC.push({ showPopover: false });
  1303. this.showPopoverZ.push({ showPopover: false });
  1304. });
  1305. } else {
  1306. this.$toast(res.msg);
  1307. }
  1308. });
  1309. },
  1310. storeVisit(val) {
  1311. if (val.visitSource && val.visitSource == 2) {
  1312. this.$toast('请先取消异常拜访后再进入正常拜访!');
  1313. return;
  1314. }
  1315. localStorage.setItem('tabVal', this.tabVal);
  1316. localStorage.removeItem('visitId');
  1317. checkVisit({ storeId: val.storeId }).then((res) => {
  1318. // if (this.tabVal == 1) {
  1319. // this.buryingPoint({
  1320. // systemModel: '计划外',
  1321. // buryingPointType: 1,
  1322. // buryingPointValue: val.storeName + '(' + val.storeCode + ')',
  1323. // buryingPointName: '进店拜访',
  1324. // buryingPointPosition: '我的',
  1325. // });
  1326. // } else {
  1327. // this.buryingPoint({
  1328. // systemModel: '计划外',
  1329. // buryingPointType: 1,
  1330. // buryingPointValue: val.storeName + '(' + val.storeCode + ')',
  1331. // buryingPointName: '进店拜访',
  1332. // buryingPointPosition: '销售部',
  1333. // });
  1334. // }
  1335. if (res.code == 200 || val.stateString.indexOf('拜访中') != -1) {
  1336. if (localStorage.getItem('loginType') == 'cs') {
  1337. var lat = '';
  1338. var lon = '';
  1339. if (val.lat == '' || val.lat == null) {
  1340. lat = '31.2517820000';
  1341. lon = '120.5593090000';
  1342. } else {
  1343. lat = val.lat;
  1344. lon = val.lon;
  1345. }
  1346. this.$router.push({
  1347. path: '/suishenbangOutstoreVisit',
  1348. query: {
  1349. storeId: val.storeId,
  1350. rdId: val.rdId,
  1351. lat: lat,
  1352. lon: lon,
  1353. visitId: val.visitId,
  1354. pageType: 'out',
  1355. addressLine: val.addressLine,
  1356. storeCategory: val.storeCategory,
  1357. storeName: val.storeName,
  1358. hisTime: val.hisTime,
  1359. contactName: val.contactName,
  1360. storeCode: val.storeCode,
  1361. tabVal: this.tabVal,
  1362. visitModel: '1',
  1363. latNew: '31.2517820000',
  1364. lonNew: '120.5593090000',
  1365. PointSum: 0,
  1366. marklat: lat,
  1367. marklon: lon,
  1368. from: 'outPlan',
  1369. },
  1370. });
  1371. localStorage.setItem('startTime', new Date());
  1372. localStorage.setItem('ORGName', val.deptName);
  1373. localStorage.setItem('chainNameR', val.storeName);
  1374. } else {
  1375. if (this.flag) {
  1376. this.flag = false;
  1377. this.timer = null;
  1378. let that = this;
  1379. this.timer = setTimeout(() => {
  1380. this.flag = true;
  1381. }, 2000);
  1382. if (val.stateString.indexOf('拜访中') != -1) {
  1383. localStorage.setItem('startTime', new Date());
  1384. localStorage.setItem('ORGName', val.deptName);
  1385. localStorage.setItem('chainNameR', val.storeName);
  1386. that.$router.push({
  1387. path: '/suishenbangOutstoreVisit',
  1388. query: {
  1389. storeId: val.storeId,
  1390. rdId: val.rdId,
  1391. lat: val.lat,
  1392. lon: val.lon,
  1393. visitId: val.visitId,
  1394. pageType: 'out',
  1395. addressLine: val.addressLine,
  1396. storeCategory: val.storeCategory,
  1397. storeName: val.storeName,
  1398. hisTime: val.hisTime,
  1399. contactName: val.contactName,
  1400. storeCode: val.storeCode,
  1401. tabVal: that.tabVal,
  1402. visitModel: '1',
  1403. latNew: val.lat,
  1404. lonNew: val.lon,
  1405. PointSum: '0',
  1406. marklat: val.lat,
  1407. marklon: val.lon,
  1408. from: 'outPlan',
  1409. },
  1410. });
  1411. } else {
  1412. getPosition()
  1413. .then((res) => {
  1414. let { TXisBD, resData } = res;
  1415. this.lat = TXisBD.lat;
  1416. this.lon = TXisBD.lon;
  1417. localStorage.setItem('lat', this.lat);
  1418. localStorage.setItem('lon', this.lon);
  1419. // var location = this.CJ02BD(res.latitude, res.longitude);
  1420. this.checkStoreAddressByStoreCodeFun(val, TXisBD, resData);
  1421. })
  1422. .catch((error) => {
  1423. this.$dialog.alert({
  1424. message: error,
  1425. });
  1426. });
  1427. }
  1428. }
  1429. }
  1430. } else {
  1431. this.$dialog.alert({
  1432. message: res.msg,
  1433. });
  1434. }
  1435. });
  1436. },
  1437. checkStoreAddressByStoreCodeFun(val, location, res) {
  1438. checkStoreAddressByStoreCode({
  1439. storeCode: val.storeCode,
  1440. lon: location.lon,
  1441. lat: location.lat,
  1442. }).then((response) => {
  1443. // loading1.clear();
  1444. if (val.lat == '' || val.lat == null) {
  1445. this.lat = location.lat;
  1446. this.lon = location.lon;
  1447. }
  1448. // let PointSum = this.twoPointSum(this.lat, this.lon, location.lat, location.lon).toFixed(2);
  1449. let PointSumval = this.twoPointSum(
  1450. location.lat,
  1451. location.lon,
  1452. location.lat,
  1453. location.lon,
  1454. ).toFixed(2);
  1455. // GZ:工装店铺 直接进入拜访
  1456. if (localStorage.getItem('postType') == 'GZ' || /^FSQ/.test(val.storeCode)) {
  1457. localStorage.setItem('startTime', new Date());
  1458. localStorage.setItem('ORGName', val.deptName);
  1459. localStorage.setItem('chainNameR', val.storeName);
  1460. this.toSuishenbangOutstoreVisit(res, val, location, PointSumval);
  1461. return;
  1462. }
  1463. // 门店校验 地址不通过
  1464. if (response.code != 200) {
  1465. // updateAddress : ,1:同城AB+金牌,去修改地址;2:非金牌店铺,非同城店铺偏差过大不允许拜访,可以重置定位;0非金牌店铺,非同城店铺 位置信息不存在 可以继续拜访
  1466. if (response.data.updateAddress == 0) {
  1467. // 非金牌店铺,非同城店铺 位置信息不存在 可以继续拜访
  1468. this.$dialog
  1469. .confirm({
  1470. confirmButtonText: '确定拜访',
  1471. cancelButtonText: '取消拜访',
  1472. title: '系统提示',
  1473. message:
  1474. '该客户没有经纬度,此次拜访会保存定位点作为客户经纬度,下次拜访时判断是否偏差过大。',
  1475. closeOnClickOverlay: true,
  1476. })
  1477. .then(() => {
  1478. this.toSuishenbangOutstoreVisit(res, val, location, PointSumval);
  1479. });
  1480. } else if (response.data.updateAddress == 1) {
  1481. // 同城AB+金牌,去修改地址
  1482. // addressUpdateTimesOver: true=已经达到最大次数,不让修改; false=没有达到可以修改
  1483. if (!response.data.addressUpdateTimesOver) {
  1484. this.$dialog
  1485. .confirm({
  1486. title: '系统提示',
  1487. message: response.msg + '请立即修改后再拜访',
  1488. messageAlign: 'left',
  1489. confirmButtonText: '立即修改',
  1490. cancelButtonText: '取消',
  1491. })
  1492. .then(() => {
  1493. this.$router.push({
  1494. path: '/storeDetail',
  1495. query: {
  1496. id: val.storeId,
  1497. type: 'address',
  1498. storeAddressId: val.storeAddressId,
  1499. },
  1500. });
  1501. });
  1502. } else {
  1503. this.$dialog.confirm({
  1504. title: '系统提示',
  1505. message: '已经达到最大修改次数',
  1506. messageAlign: 'left',
  1507. confirmButtonText: '确定',
  1508. });
  1509. }
  1510. } else if (response.data.updateAddress == 2) {
  1511. // 1.非金牌店铺,非同城店铺 位置偏差过大 重置经纬度
  1512. this.resetCoord(res, val, location, PointSumval);
  1513. return;
  1514. }
  1515. } else {
  1516. // 门店编码校验门店地址通过 进入拜访
  1517. this.toSuishenbangOutstoreVisit(res, val, location, PointSumval);
  1518. }
  1519. });
  1520. },
  1521. // 重置经纬度
  1522. resetCoord(res, val, location, PointSumval) {
  1523. this.$dialog
  1524. .confirm({
  1525. confirmButtonText: '初始化定位',
  1526. cancelButtonText: '取消拜访',
  1527. title: '系统提示',
  1528. message: '偏差过大,不允许拜访。可修改本店定位.',
  1529. closeOnClickOverlay: true,
  1530. })
  1531. .then(() => {
  1532. mobileReposition({
  1533. storeId: val.storeId,
  1534. lat: location.lat,
  1535. lon: location.lon,
  1536. }).then((response) => {
  1537. if (response.code == 200) {
  1538. this.$dialog
  1539. .alert({
  1540. title: '系统提示',
  1541. message: '本信息定位已更新成功!',
  1542. })
  1543. .then(() => {
  1544. this.toSuishenbangOutstoreVisit(res, val, location, PointSumval);
  1545. });
  1546. localStorage.setItem('startTime', new Date());
  1547. localStorage.setItem('ORGName', val.deptName);
  1548. localStorage.setItem('chainNameR', val.storeName);
  1549. } else {
  1550. this.$toast(response.msg);
  1551. }
  1552. });
  1553. });
  1554. },
  1555. // 进入拜访 router.push
  1556. toSuishenbangOutstoreVisit(res, val, location, PointSumval) {
  1557. addVisitsPosition({
  1558. storeId: val.storeId,
  1559. visitsId: '',
  1560. lon: res.longitude,
  1561. lat: res.latitude,
  1562. sourceLon: location.lon,
  1563. sourceLat: location.lat,
  1564. positionDesc: '',
  1565. accuracy: res.accuracy,
  1566. });
  1567. this.$router.push({
  1568. path: '/suishenbangOutstoreVisit',
  1569. query: {
  1570. storeId: val.storeId,
  1571. rdId: val.rdId,
  1572. lat: location.lat,
  1573. lon: location.lon,
  1574. visitId: val.visitId,
  1575. pageType: 'out',
  1576. addressLine: val.addressLine,
  1577. storeCategory: val.storeCategory,
  1578. storeName: val.storeName,
  1579. hisTime: val.hisTime,
  1580. contactName: val.contactName,
  1581. storeCode: val.storeCode,
  1582. tabVal: this.tabVal,
  1583. visitModel: '1',
  1584. latNew: location.lat,
  1585. lonNew: location.lon,
  1586. PointSum: PointSumval,
  1587. marklat: res.latitude,
  1588. marklon: res.longitude,
  1589. from: 'outPlan',
  1590. },
  1591. });
  1592. },
  1593. projectOutVisit(val) {
  1594. localStorage.setItem('tabVal', this.tabVal);
  1595. localStorage.removeItem('visitId');
  1596. // checkVisit({storeId:val.storeId}).then(res=>{
  1597. // if(res.code==200||val.stateString.indexOf("拜访中")!=-1){
  1598. if (localStorage.getItem('loginType') == 'cs') {
  1599. var lat = '';
  1600. var lon = '';
  1601. if (val.lat == '' || val.lat == null) {
  1602. lat = '31.2517820000';
  1603. lon = '120.5593090000';
  1604. } else {
  1605. lat = val.lat;
  1606. lon = val.lon;
  1607. }
  1608. this.$router.push({
  1609. path: '/storeGroup',
  1610. query: {
  1611. storeId: val.storeId,
  1612. rdId: val.rdId,
  1613. lat: lat,
  1614. lon: lon,
  1615. visitId: val.visitId,
  1616. pageType: 'out',
  1617. addressLine: val.addressLine,
  1618. storeCategory: val.storeCategory,
  1619. storeName: val.storeName,
  1620. hisTime: val.hisTime,
  1621. contactName: val.contactName,
  1622. storeCode: val.storeCode,
  1623. tabVal: this.tabVal,
  1624. visitModel: '1',
  1625. latNew: '31.2517820000',
  1626. lonNew: '120.5593090000',
  1627. PointSum: 0,
  1628. marklat: lat,
  1629. marklon: lon,
  1630. },
  1631. });
  1632. localStorage.setItem('startTime', new Date());
  1633. localStorage.setItem('ORGName', val.deptName);
  1634. localStorage.setItem('chainNameR', val.storeName);
  1635. } else {
  1636. if (this.flag) {
  1637. this.flag = false;
  1638. this.timer = null;
  1639. let that = this;
  1640. this.timer = setTimeout(() => {
  1641. this.flag = true;
  1642. }, 2000);
  1643. if (val.stateString.indexOf('拜访中') != -1) {
  1644. localStorage.setItem('startTime', new Date());
  1645. localStorage.setItem('ORGName', val.deptName);
  1646. localStorage.setItem('chainNameR', val.storeName);
  1647. that.$router.push({
  1648. path: '/storeGroup',
  1649. query: {
  1650. storeId: val.storeId,
  1651. rdId: val.rdId,
  1652. lat: val.lat,
  1653. lon: val.lon,
  1654. visitId: val.visitId,
  1655. pageType: 'out',
  1656. addressLine: val.addressLine,
  1657. storeCategory: val.storeCategory,
  1658. storeName: val.storeName,
  1659. hisTime: val.hisTime,
  1660. contactName: val.contactName,
  1661. storeCode: val.storeCode,
  1662. tabVal: that.tabVal,
  1663. visitModel: '1',
  1664. latNew: val.lat,
  1665. lonNew: val.lon,
  1666. PointSum: '0',
  1667. marklat: val.lat,
  1668. marklon: val.lon,
  1669. },
  1670. });
  1671. } else {
  1672. let loading1 = this.$toast.loading({
  1673. duration: 0,
  1674. message: '加载中...',
  1675. forbidClick: true,
  1676. });
  1677. let url = window.location.href;
  1678. let wx = this.wx;
  1679. let qiyeData;
  1680. const instance = axios.create();
  1681. instance.defaults.headers.common['userId'] = localStorage.getItem('loginName');
  1682. instance
  1683. .get(process.env.VUE_APP_BASE_API + 'mobile/wx/ticket', {
  1684. params: {
  1685. url: url,
  1686. },
  1687. })
  1688. .then((response) => {
  1689. if (response.status == 200) {
  1690. this.cont = 3;
  1691. var flat = true;
  1692. var times = setInterval(() => {
  1693. this.cont--;
  1694. if (this.cont == '0') {
  1695. if (flat) {
  1696. loading1.clear();
  1697. clearInterval(times);
  1698. that.$dialog
  1699. .alert({
  1700. message: '定位失败,请开启企微定位权限',
  1701. })
  1702. .then(() => {});
  1703. } else {
  1704. clearInterval(times);
  1705. }
  1706. }
  1707. }, 1000);
  1708. qiyeData = response.data.data;
  1709. wx.config({
  1710. beta: true, // 必须这么写,否则wx.invoke调用形式的jsapi会有问题
  1711. debug: false, // 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。
  1712. appId: qiyeData.appId, // 必填,企业微信的corpID
  1713. timestamp: qiyeData.timestamp, // 必填,生成签名的时间戳
  1714. nonceStr: qiyeData.nonceStr, // 必填,生成签名的随机串
  1715. signature: qiyeData.signature, // 必填,签名,见 附录-JS-SDK使用权限签名算法
  1716. jsApiList: ['ready', 'getLocation'], // 必填,需要使用的JS接口列表,凡是要调用的接口都需要传进来
  1717. });
  1718. wx.ready(function () {
  1719. wx.getLocation({
  1720. type: 'gcj02',
  1721. success: function (res) {
  1722. flat = false;
  1723. loading1.clear();
  1724. var location = that.CJ02BD(res.latitude, res.longitude);
  1725. if (val.lat == '' || val.lat == null) {
  1726. that.lat = location.lat;
  1727. that.lon = location.lon;
  1728. }
  1729. let PointSum = that
  1730. .twoPointSum(that.lat, that.lon, location.lat, location.lon)
  1731. .toFixed(2);
  1732. if (val.lat == '' || val.lat == null) {
  1733. if (localStorage.getItem('postType') != 'GZ') {
  1734. that.$dialog
  1735. .confirm({
  1736. confirmButtonText: '确定拜访',
  1737. cancelButtonText: '取消拜访',
  1738. title: '系统提示',
  1739. message:
  1740. '该信息没有经纬度,此次拜访会保存定位点作为信息经纬度,下次拜访时判断是否偏差过大。',
  1741. closeOnClickOverlay: true,
  1742. })
  1743. .then(() => {
  1744. that.$router.push({
  1745. path: '/storeGroup',
  1746. query: {
  1747. storeId: val.storeId,
  1748. rdId: val.rdId,
  1749. lat: that.lat,
  1750. lon: that.lon,
  1751. visitId: val.visitId,
  1752. pageType: 'out',
  1753. addressLine: val.addressLine,
  1754. storeCategory: val.storeCategory,
  1755. storeName: val.storeName,
  1756. contactName: val.contactName,
  1757. hisTime: val.hisTime,
  1758. storeCode: val.storeCode,
  1759. tabVal: that.tabVal,
  1760. visitModel: '1',
  1761. latNew: location.lat,
  1762. lonNew: location.lon,
  1763. PointSum: PointSum,
  1764. marklat: res.latitude,
  1765. marklon: res.longitude,
  1766. },
  1767. });
  1768. });
  1769. } else {
  1770. that.$router.push({
  1771. path: '/storeGroup',
  1772. query: {
  1773. storeId: val.storeId,
  1774. rdId: val.rdId,
  1775. lat: that.lat,
  1776. lon: that.lon,
  1777. visitId: val.visitId,
  1778. pageType: 'out',
  1779. addressLine: val.addressLine,
  1780. storeCategory: val.storeCategory,
  1781. storeName: val.storeName,
  1782. contactName: val.contactName,
  1783. hisTime: val.hisTime,
  1784. storeCode: val.storeCode,
  1785. tabVal: that.tabVal,
  1786. visitModel: '1',
  1787. latNew: location.lat,
  1788. lonNew: location.lon,
  1789. PointSum: PointSum,
  1790. marklat: res.latitude,
  1791. marklon: res.longitude,
  1792. },
  1793. });
  1794. }
  1795. } else {
  1796. that.$router.push({
  1797. path: '/storeGroup',
  1798. query: {
  1799. storeId: val.storeId,
  1800. rdId: val.rdId,
  1801. lat: that.lat,
  1802. lon: that.lon,
  1803. visitId: val.visitId,
  1804. pageType: 'out',
  1805. addressLine: val.addressLine,
  1806. storeCategory: val.storeCategory,
  1807. storeName: val.storeName,
  1808. contactName: val.contactName,
  1809. hisTime: val.hisTime,
  1810. storeCode: val.storeCode,
  1811. tabVal: that.tabVal,
  1812. visitModel: '1',
  1813. latNew: location.lat,
  1814. lonNew: location.lon,
  1815. PointSum: PointSum,
  1816. marklat: res.latitude,
  1817. marklon: res.longitude,
  1818. },
  1819. });
  1820. }
  1821. localStorage.setItem('startTime', new Date());
  1822. localStorage.setItem('ORGName', val.deptName);
  1823. localStorage.setItem('chainNameR', val.storeName);
  1824. addVisitsPosition({
  1825. storeId: val.storeId,
  1826. visitsId: '',
  1827. lon: res.longitude,
  1828. lat: res.latitude,
  1829. sourceLon: location.lon,
  1830. sourceLat: location.lat,
  1831. positionDesc: '',
  1832. accuracy: res.accuracy,
  1833. });
  1834. },
  1835. fail: function () {
  1836. loading1.clear();
  1837. that.$dialog.alert({
  1838. message: 'GPS未开启',
  1839. });
  1840. },
  1841. });
  1842. });
  1843. wx.error(function (res) {
  1844. loading1.clear();
  1845. that.$dialog
  1846. .alert({
  1847. message: '定位失败,请开启企微定位权限',
  1848. })
  1849. .then(() => {});
  1850. });
  1851. }
  1852. });
  1853. }
  1854. }
  1855. }
  1856. // }
  1857. // })
  1858. },
  1859. abnormalVisit(val) {
  1860. localStorage.removeItem('visitId');
  1861. localStorage.setItem('tabVal', this.tabVal);
  1862. checkVisit({ storeId: val.storeId }).then((res) => {
  1863. this.buryingPoint({
  1864. systemModel: '计划外',
  1865. buryingPointType: 1,
  1866. buryingPointValue: val.storeName + '(' + val.storeCode + ')',
  1867. buryingPointName: '异常拜访',
  1868. buryingPointPosition: this.tabVal == 1 ? '我的' : '销售部',
  1869. });
  1870. if (res.code == 200 || val.stateString.indexOf('拜访中') != -1) {
  1871. if (localStorage.getItem('loginType') == 'cs') {
  1872. var lat = '';
  1873. var lon = '';
  1874. if (val.lat == '' || val.lat == null) {
  1875. lat = '31.2517820000';
  1876. lon = '120.5593090000';
  1877. } else {
  1878. lat = val.lat;
  1879. lon = val.lon;
  1880. }
  1881. this.$router.push({
  1882. path: '/outabnormalVisit',
  1883. query: {
  1884. storeId: val.storeId,
  1885. rdId: val.rdId,
  1886. lat: lat,
  1887. lon: lon,
  1888. visitId: val.visitId,
  1889. pageType: 'out',
  1890. addressLine: val.addressLine,
  1891. storeCategory: val.storeCategory,
  1892. storeName: val.storeName,
  1893. hisTime: val.hisTime,
  1894. contactName: val.contactName,
  1895. storeCode: val.storeCode,
  1896. tabVal: this.tabVal,
  1897. visitModel: '3',
  1898. latNew: '31.2517820000',
  1899. lonNew: '120.5593090000',
  1900. PointSum: 0,
  1901. marklat: lat,
  1902. marklon: lon,
  1903. },
  1904. });
  1905. localStorage.setItem('startTime', new Date());
  1906. localStorage.setItem('ORGName', val.deptName);
  1907. localStorage.setItem('chainNameR', val.storeName);
  1908. } else {
  1909. if (this.flag) {
  1910. this.flag = false;
  1911. this.timer = null;
  1912. this.timer = setTimeout(() => {
  1913. this.flag = true;
  1914. }, 2000);
  1915. let loading1 = this.$toast.loading({
  1916. duration: 0,
  1917. message: '加载中...',
  1918. forbidClick: true,
  1919. });
  1920. let url = window.location.href;
  1921. let that = this;
  1922. let wx = this.wx;
  1923. let qiyeData;
  1924. const instance = axios.create();
  1925. instance.defaults.headers.common['userId'] = localStorage.getItem('loginName');
  1926. instance
  1927. .get(process.env.VUE_APP_BASE_API + 'mobile/wx/ticket', {
  1928. params: {
  1929. url: url,
  1930. },
  1931. })
  1932. .then((response) => {
  1933. if (response.status == 200) {
  1934. this.cont = 3;
  1935. var flat = true;
  1936. var times = setInterval(() => {
  1937. this.cont--;
  1938. if (this.cont == '0') {
  1939. if (flat) {
  1940. loading1.clear();
  1941. clearInterval(times);
  1942. that.$dialog
  1943. .alert({
  1944. message: '定位失败,请开启企微定位权限',
  1945. })
  1946. .then(() => {
  1947. // this.$router.go(-1);
  1948. });
  1949. } else {
  1950. clearInterval(times);
  1951. }
  1952. }
  1953. }, 1000);
  1954. qiyeData = response.data.data;
  1955. wx.config({
  1956. beta: true, // 必须这么写,否则wx.invoke调用形式的jsapi会有问题
  1957. debug: false, // 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。
  1958. appId: qiyeData.appId, // 必填,企业微信的corpID
  1959. timestamp: qiyeData.timestamp, // 必填,生成签名的时间戳
  1960. nonceStr: qiyeData.nonceStr, // 必填,生成签名的随机串
  1961. signature: qiyeData.signature, // 必填,签名,见 附录-JS-SDK使用权限签名算法
  1962. jsApiList: ['ready', 'getLocation'], // 必填,需要使用的JS接口列表,凡是要调用的接口都需要传进来
  1963. });
  1964. wx.ready(function () {
  1965. wx.getLocation({
  1966. type: 'gcj02',
  1967. success: function (res) {
  1968. flat = false;
  1969. loading1.clear();
  1970. var location = that.CJ02BD(res.latitude, res.longitude);
  1971. if (val.lat == '' || val.lat == null) {
  1972. that.lat = location.lat;
  1973. that.lon = location.lon;
  1974. }
  1975. let PointSum = that
  1976. .twoPointSum(that.lat, that.lon, location.lat, location.lon)
  1977. .toFixed(2);
  1978. // 工装和仿石漆不用校验定位
  1979. if (
  1980. localStorage.getItem('postType') == 'GZ' ||
  1981. /^FSQ/.test(val.storeCode)
  1982. ) {
  1983. that.$router.push({
  1984. path: '/outabnormalVisit',
  1985. query: {
  1986. storeId: val.storeId,
  1987. rdId: val.rdId,
  1988. lat: that.lat,
  1989. lon: that.lon,
  1990. visitId: val.visitId,
  1991. pageType: 'out',
  1992. visitModel: '3',
  1993. storeCode: val.storeCode,
  1994. tabVal: that.tabVal,
  1995. latNew: location.lat,
  1996. lonNew: location.lon,
  1997. PointSum: PointSum,
  1998. marklat: res.latitude,
  1999. marklon: res.longitude,
  2000. },
  2001. });
  2002. localStorage.setItem('startTime', new Date());
  2003. localStorage.setItem('ORGName', val.deptName);
  2004. localStorage.setItem('chainNameR', val.storeName);
  2005. } else {
  2006. if (PointSum > 500) {
  2007. that.$dialog
  2008. .confirm({
  2009. confirmButtonText: '确定',
  2010. cancelButtonText: '取消',
  2011. title: '系统提示',
  2012. message: '定位距离偏差大',
  2013. closeOnClickOverlay: true,
  2014. })
  2015. .then(() => {
  2016. that.$router.push({
  2017. path: '/outabnormalVisit',
  2018. query: {
  2019. storeId: val.storeId,
  2020. rdId: val.rdId,
  2021. lat: that.lat,
  2022. lon: that.lon,
  2023. visitId: val.visitId,
  2024. pageType: 'out',
  2025. visitModel: '5',
  2026. storeCode: val.storeCode,
  2027. tabVal: that.tabVal,
  2028. latNew: location.lat,
  2029. lonNew: location.lon,
  2030. PointSum: PointSum,
  2031. marklat: res.latitude,
  2032. marklon: res.longitude,
  2033. },
  2034. });
  2035. localStorage.setItem('startTime', new Date());
  2036. localStorage.setItem('ORGName', val.deptName);
  2037. localStorage.setItem('chainNameR', val.storeName);
  2038. })
  2039. .catch(() => {
  2040. // that.abnormalVisit(val)
  2041. });
  2042. } else {
  2043. that.$router.push({
  2044. path: '/outabnormalVisit',
  2045. query: {
  2046. storeId: val.storeId,
  2047. rdId: val.rdId,
  2048. lat: that.lat,
  2049. lon: that.lon,
  2050. visitId: val.visitId,
  2051. pageType: 'out',
  2052. visitModel: '3',
  2053. storeCode: val.storeCode,
  2054. tabVal: that.tabVal,
  2055. latNew: location.lat,
  2056. lonNew: location.lon,
  2057. PointSum: PointSum,
  2058. marklat: res.latitude,
  2059. marklon: res.longitude,
  2060. },
  2061. });
  2062. localStorage.setItem('startTime', new Date());
  2063. localStorage.setItem('ORGName', val.deptName);
  2064. localStorage.setItem('chainNameR', val.storeName);
  2065. }
  2066. }
  2067. addVisitsPosition({
  2068. storeId: val.storeId,
  2069. visitsId: '',
  2070. lon: res.longitude,
  2071. lat: res.latitude,
  2072. sourceLon: location.lon,
  2073. sourceLat: location.lat,
  2074. positionDesc: '',
  2075. accuracy: res.accuracy,
  2076. });
  2077. },
  2078. fail: function () {
  2079. loading1.clear();
  2080. that.$dialog
  2081. .alert({
  2082. message: 'GPS未开启',
  2083. })
  2084. .then(() => {
  2085. // that.abnormalVisit(val)
  2086. });
  2087. },
  2088. });
  2089. });
  2090. wx.error(function (res) {
  2091. loading1.clear();
  2092. that.$dialog
  2093. .alert({
  2094. message: '定位失败,请开启企微定位权限',
  2095. })
  2096. .then(() => {});
  2097. });
  2098. } else {
  2099. loading1.clear();
  2100. this.$toast.fail(dataList.msg);
  2101. }
  2102. });
  2103. localStorage.setItem('startTime', new Date());
  2104. localStorage.setItem('ORGName', val.deptName);
  2105. localStorage.setItem('chainNameR', val.storeName);
  2106. }
  2107. }
  2108. } else {
  2109. this.$dialog.alert({
  2110. title: '系统提示',
  2111. message: res.msg,
  2112. });
  2113. }
  2114. });
  2115. },
  2116. visitFn(val) {
  2117. this.buryingPoint({
  2118. systemModel: '计划外',
  2119. buryingPointType: 1,
  2120. buryingPointValue: val.storeName + '(' + val.storeCode + ')',
  2121. buryingPointName: '客户信息',
  2122. buryingPointPosition: this.tabVal == 1 ? '我的' : '销售部',
  2123. });
  2124. if (val.sfaStoreType.type == 'qzd') {
  2125. // 竞品店/潜在店
  2126. this.$router.push({
  2127. path: '/competingStoresDetail',
  2128. query: { id: val.storeId },
  2129. });
  2130. } else if (/^FSQ/.test(val.storeCode)) {
  2131. // FSQ 仿石漆服务商
  2132. this.$router.push({
  2133. path: '/FSQStoreDetail',
  2134. query: { id: val.storeId },
  2135. });
  2136. return;
  2137. } else if (val.designerStore) {
  2138. // designerStore 是否为设计师招募门店,true-是,false-否
  2139. this.$router.push({
  2140. path: '/addDesignerDetail',
  2141. query: { id: val.storeId },
  2142. });
  2143. return;
  2144. } else {
  2145. this.$router.push({
  2146. path: '/storeDetail',
  2147. query: { id: val.storeId, detilId: 'a' },
  2148. });
  2149. }
  2150. },
  2151. // 大客户签约
  2152. signAdd(val) {
  2153. this.$router.push({
  2154. path: '/sign',
  2155. query: { id: val.storeId, detilId: 'a' },
  2156. });
  2157. },
  2158. Visit(val) {
  2159. this.$router.push({
  2160. path: '/historicalDetails',
  2161. query: {
  2162. visitId: val.visitId,
  2163. storeId: val.storeId,
  2164. storeCode: val.storeCode,
  2165. },
  2166. });
  2167. },
  2168. onClickLeft() {
  2169. this.$router.go(-1);
  2170. },
  2171. onSearch() {
  2172. window.scrollTo(0, 0);
  2173. this.pageNum = 1;
  2174. this.list = [];
  2175. this.finished = true;
  2176. var postType = localStorage.getItem('postType');
  2177. this.customerVisits = localStorage.getItem('customerVisits');
  2178. if (postType == 'GZ') {
  2179. this.typeShow = false;
  2180. } else {
  2181. this.typeShow = true;
  2182. }
  2183. this.onLoad();
  2184. },
  2185. onSearchm() {
  2186. var postType = localStorage.getItem('postType');
  2187. if (postType == 'GZ') {
  2188. this.typeShow = false;
  2189. } else {
  2190. this.typeShow = true;
  2191. }
  2192. var StoreLabelsArr = [];
  2193. for (var k = 0; k < this.storeLabelTypes.length; k++) {
  2194. for (var k1 = 0; k1 < this.StoreLabels.length; k1++) {
  2195. if (this.StoreLabels[k1].dictValue == this.storeLabelTypes[k]) {
  2196. StoreLabelsArr.push(this.StoreLabels[k1].dictLabel);
  2197. }
  2198. }
  2199. }
  2200. var storeCategoryList = [];
  2201. for (var q = 0; q < this.result.length; q++) {
  2202. for (var q1 = 0; q1 < this.storeTypeLists.length; q1++) {
  2203. if (this.storeTypeLists[q1].dictValue == this.result[q]) {
  2204. storeCategoryList.push(this.storeTypeLists[q1].dictLabel);
  2205. }
  2206. }
  2207. }
  2208. if (this.tabVal == 1) {
  2209. if (StoreLabelsArr.length > 0) {
  2210. this.buryingPoint({
  2211. systemModel: '计划外',
  2212. buryingPointType: 1,
  2213. buryingPointValue: StoreLabelsArr.join(','),
  2214. buryingPointName: '标签',
  2215. buryingPointPosition: '我的筛选',
  2216. });
  2217. }
  2218. if (this.storeCategoryList.length > 0) {
  2219. this.buryingPoint({
  2220. systemModel: '计划外',
  2221. buryingPointType: 1,
  2222. buryingPointValue: storeCategoryList.join(','),
  2223. buryingPointName: '类型',
  2224. buryingPointPosition: '我的筛选',
  2225. });
  2226. }
  2227. if (this.chainName != '' && this.chainName != 'null') {
  2228. this.buryingPoint({
  2229. systemModel: '计划外',
  2230. buryingPointType: 1,
  2231. buryingPointValue: this.chainName,
  2232. buryingPointName: '经销商筛选',
  2233. buryingPointPosition: '我的筛选',
  2234. });
  2235. }
  2236. // if (this.storeName != '') {
  2237. // this.buryingPoint({
  2238. // systemModel: '计划外',
  2239. // buryingPointType: 1,
  2240. // buryingPointValue: this.storeName,
  2241. // buryingPointName: '搜索名称/编号/地址',
  2242. // buryingPointPosition: '我的筛选',
  2243. // });
  2244. // }
  2245. } else {
  2246. if (StoreLabelsArr.length > 0) {
  2247. this.buryingPoint({
  2248. systemModel: '计划外',
  2249. buryingPointType: 1,
  2250. buryingPointValue: StoreLabelsArr.join(','),
  2251. buryingPointName: '标签',
  2252. buryingPointPosition: '销售部的门店筛选',
  2253. });
  2254. }
  2255. if (this.storeCategoryList != '') {
  2256. this.buryingPoint({
  2257. systemModel: '计划外',
  2258. buryingPointType: 1,
  2259. buryingPointValue: storeCategoryList.join(','),
  2260. buryingPointName: '类型',
  2261. buryingPointPosition: '销售部的门店筛选',
  2262. });
  2263. }
  2264. if (this.chainName != '' && this.chainName != 'null') {
  2265. this.buryingPoint({
  2266. systemModel: '计划外',
  2267. buryingPointType: 1,
  2268. buryingPointValue: this.chainName,
  2269. buryingPointName: '经销商筛选',
  2270. buryingPointPosition: '销售部的门店筛选',
  2271. });
  2272. }
  2273. // if (this.storeName != '') {
  2274. // this.buryingPoint({
  2275. // systemModel: '计划外',
  2276. // buryingPointType: 1,
  2277. // buryingPointValue: this.storeName,
  2278. // buryingPointName: '搜索名称/编号/地址',
  2279. // buryingPointPosition: '销售部的门店筛选',
  2280. // });
  2281. // }
  2282. }
  2283. localStorage.setItem('outvstoreName', this.storeName);
  2284. localStorage.setItem('outvchainName', this.chainName);
  2285. localStorage.setItem('outvstoreLabelTypes', this.storeLabelTypes);
  2286. localStorage.setItem('outvstoreCategoryList', this.result);
  2287. localStorage.setItem('outvchainCode', this.chainCode == 'null' ? '' : this.chainCode);
  2288. this.onSearch();
  2289. },
  2290. tabChange(name) {
  2291. window.scrollTo(0, 0);
  2292. this.finished = true;
  2293. this.pageNum = 1;
  2294. this.list = [];
  2295. this.tabVal = name;
  2296. localStorage.setItem('tabVal', name);
  2297. this.onLoad();
  2298. },
  2299. // 滚动条与底部距离小于 offset 时触发 初始化会触发
  2300. onLoad() {
  2301. // 授权
  2302. getTicketFun()
  2303. .then(() => {
  2304. var postType = localStorage.getItem('postType');
  2305. if (postType == 'GZ') {
  2306. this.typeShow = false;
  2307. } else {
  2308. this.typeShow = true;
  2309. }
  2310. if (this.lon == '' && this.tabVal != 1) {
  2311. this.positionFn(1);
  2312. } else {
  2313. if (this.tabVal == 1) {
  2314. this.positionFn();
  2315. // this.getUserOutPlaListFun();
  2316. } else {
  2317. this.getUserOrgStoreList();
  2318. }
  2319. }
  2320. })
  2321. .catch(() => {
  2322. this.finished = true;
  2323. });
  2324. },
  2325. // 跳转好帮手门店详情
  2326. goOtherSystem(item) {
  2327. // 家装或工装 approvalStatus:是否结案 0:未结案,1:已结案
  2328. if (
  2329. (item.sfaStoreType && (item.sfaStoreType.jz || item.sfaStoreType.gz)) ||
  2330. item.approvalStatus == null ||
  2331. item.approvalStatus == 0
  2332. ) {
  2333. return false;
  2334. }
  2335. if (item.storeCode) {
  2336. window.location.href =
  2337. process.env.VUE_APP_SSB_LINK + '/order/storeDetail/index?shopCode=' + item.storeCode;
  2338. } else {
  2339. this.$dialog.alert({
  2340. message: '缺少门店code',
  2341. });
  2342. }
  2343. },
  2344. },
  2345. };
  2346. </script>
  2347. <style lang="scss">
  2348. .van-dialog__confirm,
  2349. .van-dialog__confirm:active {
  2350. color: #0057ba;
  2351. }
  2352. .searchDiv {
  2353. .van-search {
  2354. background: #fff;
  2355. }
  2356. .van-search__action {
  2357. font-size: 14px;
  2358. color: #0057ba;
  2359. font-weight: bold;
  2360. background: #f1f1f1;
  2361. border-bottom-right-radius: 60px;
  2362. border-top-right-radius: 60px;
  2363. border: 1px solid #ccc;
  2364. padding: 0 20px;
  2365. }
  2366. .van-search--show-action {
  2367. padding-right: 12px;
  2368. }
  2369. .van-search__content {
  2370. border: 1px solid #ccc;
  2371. border-bottom-left-radius: 60px;
  2372. border-top-left-radius: 60px;
  2373. background: #f1f1f1;
  2374. border-right: 0;
  2375. }
  2376. }
  2377. .myTab {
  2378. .van-tabs__nav--card {
  2379. margin: 0 !important;
  2380. border-left: 0;
  2381. border-right: 0;
  2382. }
  2383. .van-tabs__wrap,
  2384. .van-tabs__nav--card {
  2385. height: 39px;
  2386. }
  2387. .van-tab {
  2388. line-height: 40px;
  2389. }
  2390. }
  2391. .myList {
  2392. .van-cell {
  2393. padding: 0;
  2394. &:after {
  2395. border-bottom: none;
  2396. }
  2397. }
  2398. }
  2399. </style>
  2400. <style lang="scss" scoped>
  2401. .bgcolor {
  2402. background-color: #f5f5f5;
  2403. }
  2404. .container {
  2405. padding-bottom: 50px;
  2406. }
  2407. .card {
  2408. padding: 10px 16px;
  2409. box-sizing: border-box;
  2410. }
  2411. .card .title {
  2412. font-size: 15px;
  2413. font-weight: bold;
  2414. color: #333;
  2415. line-height: 22px;
  2416. padding-right: 52px;
  2417. .JPABC {
  2418. width: 20px;
  2419. position: relative;
  2420. top: 4px;
  2421. margin-right: 3px;
  2422. }
  2423. .statusIcon {
  2424. padding: 3px;
  2425. font-size: 12px;
  2426. margin: 0 3px;
  2427. color: #fff;
  2428. display: inline-block;
  2429. height: 20px;
  2430. line-height: 16px;
  2431. vertical-align: -1px;
  2432. }
  2433. .submit {
  2434. background: #ffba13;
  2435. }
  2436. .noSubmit {
  2437. background: #f11818;
  2438. }
  2439. }
  2440. .card .info {
  2441. font-size: 14px;
  2442. color: #909090;
  2443. line-height: 26px;
  2444. }
  2445. .btnbox {
  2446. padding-top: 14px;
  2447. border-top: 1px solid #eee;
  2448. margin: 0 10px;
  2449. }
  2450. .navBarTOP {
  2451. position: fixed;
  2452. width: 100%;
  2453. z-index: 2;
  2454. top: 0;
  2455. }
  2456. .cellcontent .centerBtn {
  2457. margin: 0 auto 10px;
  2458. display: block;
  2459. width: 92%;
  2460. color: #0057ba;
  2461. border-radius: 5px;
  2462. padding: 0 2px;
  2463. }
  2464. .cellcontent .centerBtn1 {
  2465. background-color: #0057ba;
  2466. color: #fff;
  2467. border-color: #0057ba;
  2468. }
  2469. .cellcontent .centerBtn2 {
  2470. margin: 0 auto 10px;
  2471. display: block;
  2472. width: 92%;
  2473. color: #0057ba;
  2474. border-radius: 5px;
  2475. padding: 0;
  2476. }
  2477. .statstext {
  2478. background-color: #0057ba;
  2479. position: absolute;
  2480. right: 0;
  2481. top: 6px;
  2482. padding: 2px 6px 2px 12px;
  2483. border-bottom-left-radius: 60px;
  2484. border-top-left-radius: 60px;
  2485. color: #fff;
  2486. }
  2487. .cellcontent .van-cell {
  2488. padding: 10px 0;
  2489. }
  2490. .statstext .van-icon__image {
  2491. height: 0.7em;
  2492. }
  2493. .tipsTitle {
  2494. padding: 5px 0;
  2495. text-align: center;
  2496. font-size: 16px;
  2497. font-weight: 600;
  2498. }
  2499. .deviceOutside {
  2500. height: 100%;
  2501. width: 100%;
  2502. display: flex;
  2503. flex-direction: column;
  2504. overflow: hidden;
  2505. .content {
  2506. flex: 1;
  2507. overflow-y: auto;
  2508. }
  2509. .tabBar {
  2510. height: 50px;
  2511. }
  2512. .JPVisitNum {
  2513. position: relative;
  2514. top: -26px;
  2515. font-size: 10px;
  2516. }
  2517. }
  2518. </style>
  2519. <style lang="scss">
  2520. .van-tabs__nav--card .van-tab.van-tab--active {
  2521. background-color: #0057ba !important;
  2522. }
  2523. .visitSearch {
  2524. width: 68px;
  2525. color: #0057ba;
  2526. font-size: 14px;
  2527. }
  2528. .visitSearch .van-dropdown-menu__bar {
  2529. box-shadow: 0 0 0 #fff;
  2530. height: 52px;
  2531. }
  2532. .visitSearch .van-dropdown-menu__item {
  2533. justify-content: normal;
  2534. }
  2535. .visitSearch .van-dropdown-menu__title {
  2536. border-left: 1px solid #ccc;
  2537. }
  2538. .visitSearch .van-cell {
  2539. border: 1px solid #ccc;
  2540. border-radius: 5px;
  2541. padding: 6px;
  2542. }
  2543. .positionContent {
  2544. position: fixed;
  2545. color: #666;
  2546. display: inline-block;
  2547. box-shadow: 0px 2px 7px -5px #000;
  2548. border-radius: 100px;
  2549. overflow: hidden;
  2550. right: 14px;
  2551. cursor: pointer;
  2552. bottom: 96px;
  2553. background-color: white;
  2554. }
  2555. .positionContent .img {
  2556. border-radius: 100px;
  2557. float: left;
  2558. }
  2559. .positionContent .img .van-icon__image {
  2560. border-radius: 100px;
  2561. }
  2562. .zDialog .van-dialog__header {
  2563. padding: 10px;
  2564. border-bottom: 1px solid #f5f5f5;
  2565. }
  2566. .zDialog .infoText {
  2567. margin: 10px;
  2568. font-size: 14px;
  2569. color: #909090;
  2570. width: 98%;
  2571. }
  2572. .visitStoreIco {
  2573. float: left;
  2574. float: left;
  2575. width: 26px;
  2576. text-align: center;
  2577. background-color: #ffba13;
  2578. color: #fff;
  2579. border-radius: 100%;
  2580. margin-left: 14px;
  2581. line-height: 26px;
  2582. height: 26px;
  2583. }
  2584. .searchcheck {
  2585. padding: 0 10px 10px;
  2586. }
  2587. .searchcheck .van-checkbox {
  2588. /*width: 44%;*/
  2589. padding-bottom: 10px;
  2590. }
  2591. .searchcheck .checkbox {
  2592. font-size: 14px;
  2593. display: inline-block;
  2594. width: 50%;
  2595. line-height: 28px;
  2596. }
  2597. .searchcheck .checkbox .van-checkbox {
  2598. margin-bottom: 2px;
  2599. }
  2600. .searchcheck .checkbox1 {
  2601. font-size: 14px;
  2602. float: left;
  2603. line-height: 28px;
  2604. width: 50%;
  2605. }
  2606. .searchcheck .checkbox1 .child {
  2607. width: 100%;
  2608. }
  2609. .searchcheck {
  2610. /* height: 93vh;
  2611. overflow-y: auto; */
  2612. }
  2613. .searchchecktitle {
  2614. width: 100%;
  2615. margin: 20px 0;
  2616. font-size: 16px;
  2617. border-left: 3px solid #0057ba;
  2618. line-height: 18px;
  2619. }
  2620. .searchchecktitle1 {
  2621. width: 100%;
  2622. margin: 20px 0;
  2623. font-size: 16px;
  2624. line-height: 18px;
  2625. }
  2626. .textsize {
  2627. font-size: 14px;
  2628. /* overflow: hidden; */
  2629. display: flex;
  2630. flex-direction: column;
  2631. .searchcheck {
  2632. flex: 1;
  2633. overflow-y: auto;
  2634. margin-bottom: 50px;
  2635. }
  2636. }
  2637. .deviceOutside {
  2638. .TCFXListItem {
  2639. display: inline-block;
  2640. border: 1px solid #ccc;
  2641. padding: 3px 5px;
  2642. margin: 0 5px;
  2643. border-radius: 6px;
  2644. }
  2645. }
  2646. </style>