topStore.vue 98 KB

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