index.vue 96 KB

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