index.vue 94 KB

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