index.vue 91 KB

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