index.vue 91 KB

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