shareBtarget.vue 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510
  1. <template>
  2. <div class="shareBtarget">
  3. <div v-if="type != 4" class="container linep">
  4. <!-- 拜访数据(实时) -->
  5. <template name="7" v-if="powerGrade == 1 && !GZdata">
  6. <div class="text">拜访数据(实时)</div>
  7. <visitedRealTime
  8. :reportTargetAll="reportTargetAll"
  9. :powerGrade="powerGrade"
  10. :JZQuota="JZQuota"></visitedRealTime>
  11. </template>
  12. <!-- 建店布机 -->
  13. <template name="2" v-if="!JZQuota && !GZdata" title="建店布机">
  14. <div class="text">建店布机</div>
  15. <createStoreBJ :reportTargetAll="reportTargetAll"></createStoreBJ>
  16. </template>
  17. <!-- 下单点数 -->
  18. <template v-if="powerGrade == 1 && !JZQuota && !GZdata" name="33" title="下单点数">
  19. <div class="text">下单点数</div>
  20. <placeOrder :reportTargetAll="reportTargetAll"></placeOrder>
  21. </template>
  22. <!-- 专业时时丽分销店下单 -->
  23. <template name="16" v-if="!JZQuota && !GZdata" title="专业时时丽分销店下单">
  24. <div class="text">专业时时丽分销店下单</div>
  25. <ZYPlaceOrder :reportTargetAll="reportTargetAll"></ZYPlaceOrder>
  26. </template>
  27. <!-- 超好贴分销店下单 -->
  28. <template name="17" v-if="!JZQuota && !GZdata" title="超好贴分销店下单">
  29. <div class="text">超好贴分销店下单</div>
  30. <veryGoodPlaceOrder :reportTargetAll="reportTargetAll"></veryGoodPlaceOrder>
  31. </template>
  32. <template v-if="powerGrade != 1 && !JZQuota && !GZdata" name="32" title="客户开拓">
  33. <div class="text">客户开拓</div>
  34. <van-row>
  35. <van-col span="24"><span class="leftTitle">非片客户开发</span></van-col>
  36. <van-col span="24">
  37. <p>
  38. 全年开发数:<span class="colorbalck">{{
  39. Micrometer(reportTargetAll.customerAct)
  40. }}</span>
  41. </p>
  42. </van-col>
  43. <van-col span="24">
  44. <p>
  45. 全年进度率:<span class="colorbalck"> {{ reportTargetAll.customerYearRate }}% </span>
  46. </p>
  47. </van-col>
  48. </van-row>
  49. </template>
  50. </div>
  51. <div v-if="type == 4" class="container linep">
  52. <template v-if="reportInfo.customerUserTargets">
  53. <template v-for="(item, index) in reportInfo.customerUserTargets">
  54. <div class="text">{{ item.nickName }}</div>
  55. <van-row>
  56. <van-col span="24"
  57. ><p class="indexTile" style="margin-top: -2px">
  58. <van-icon :name="bfindex" class="indexicon"></van-icon>拜访
  59. </p></van-col
  60. >
  61. <van-col span="12"
  62. ><p><span class="leftTitle">本日实际:</span></p></van-col
  63. >
  64. <van-col span="12"
  65. ><p><span class="rightTitle">本月实际:</span></p></van-col
  66. >
  67. <van-col span="12"
  68. ><p>
  69. 拜访点数:<span class="colorbalck">{{ Micrometer(item.dayVisitCount) }}</span>
  70. </p></van-col
  71. >
  72. <van-col span="12"
  73. ><p>
  74. 拜访点数:<span class="colorbalck">{{ Micrometer(item.monthVisitCount) }}</span>
  75. </p></van-col
  76. >
  77. <van-col span="24"
  78. ><p class="indexTile">
  79. <van-icon :name="storeindex" class="indexicon"></van-icon>建店
  80. </p></van-col
  81. >
  82. <van-col span="12"
  83. ><p><span class="leftTitle">本日新增:</span></p></van-col
  84. >
  85. <van-col span="12"
  86. ><p><span class="rightTitle">本月实际:</span></p></van-col
  87. >
  88. <van-col span="12"
  89. ><p>
  90. 分销店点数:<span class="colorbalck">{{ Micrometer(item.dayFxdAct) }}</span>
  91. </p></van-col
  92. >
  93. <van-col span="12"
  94. ><p>
  95. 分销店点数:<span class="colorbalck">{{ Micrometer(item.monthFxdAct) }}</span>
  96. </p></van-col
  97. >
  98. <van-col span="24"
  99. ><p class="indexTile">
  100. <van-icon :name="oderindex" class="indexicon"></van-icon>下单
  101. </p></van-col
  102. >
  103. <van-col span="12"
  104. ><p><span class="leftTitle">昨日新增:</span></p></van-col
  105. >
  106. <van-col span="12"
  107. ><p><span class="rightTitle">本月实际:</span></p></van-col
  108. >
  109. <van-col span="12"
  110. ><p>
  111. 下单点数:<span class="colorbalck">{{ Micrometer(item.yesOrderAct) }}</span>
  112. </p></van-col
  113. >
  114. <van-col span="12"
  115. ><p>
  116. 下单点数:<span class="colorbalck">{{ Micrometer(item.monthOrderAct) }}</span>
  117. </p></van-col
  118. >
  119. </van-row>
  120. </template>
  121. </template>
  122. </div>
  123. </div>
  124. </template>
  125. <script>
  126. import createStoreBJ from '@/components/componentsTarget/createStoreBJ';
  127. import visitedRealTime from '@/components/componentsTarget/visitedRealTime';
  128. import placeOrder from '@/components/componentsTarget/placeOrder';
  129. import ZYPlaceOrder from '@/components/componentsTarget/ZYPlaceOrder';
  130. import veryGoodPlaceOrder from '@/components/componentsTarget/veryGoodPlaceOrder';
  131. export default {
  132. components: {
  133. createStoreBJ,
  134. visitedRealTime,
  135. placeOrder,
  136. ZYPlaceOrder,
  137. veryGoodPlaceOrder,
  138. },
  139. props: {
  140. reportInfo: {
  141. type: Object,
  142. },
  143. },
  144. watch: {
  145. reportInfo: {
  146. handler(val) {
  147. if (val.postType == 'GZ') {
  148. this.GZdata = true;
  149. this.saptitle = '公裝业绩SAP(千元)';
  150. } else {
  151. this.saptitle = '业绩目标SAP(千元)';
  152. this.GZdata = false;
  153. }
  154. if (val.postType == 'JZ') {
  155. this.JZQuota = true;
  156. } else {
  157. this.JZQuota = false;
  158. }
  159. this.reportInfoData = val;
  160. this.powerGrade = val.positionId;
  161. if (val.reportTargetAll != null) {
  162. this.reportTargetAll = val.reportTargetAll;
  163. }
  164. this.type = val.userType;
  165. },
  166. deep: true,
  167. immediate: true,
  168. },
  169. },
  170. data() {
  171. return {
  172. type: '-1',
  173. JZQuota: false,
  174. GZdata: false,
  175. saptitle: '业绩目标SAP(千元)',
  176. powerGrade: '2',
  177. reportTargetAll: {},
  178. activeNames: [
  179. '1',
  180. '2',
  181. '3',
  182. '4',
  183. '5',
  184. '6',
  185. '7',
  186. '8',
  187. '10',
  188. '11',
  189. '12',
  190. '16',
  191. '17',
  192. '20',
  193. '21',
  194. '22',
  195. '23',
  196. '24',
  197. '25',
  198. '26',
  199. '27',
  200. '28',
  201. '29',
  202. '30',
  203. '31',
  204. '32',
  205. '33',
  206. '34',
  207. '35',
  208. '36',
  209. '37',
  210. '38',
  211. '39',
  212. '40',
  213. '41',
  214. '42',
  215. '43',
  216. ],
  217. };
  218. },
  219. };
  220. </script>
  221. <style scoped>
  222. .container .template {
  223. margin-bottom: 10px;
  224. border-radius: 6px;
  225. overflow: hidden;
  226. }
  227. .progressContentlist {
  228. font-size: 14px;
  229. border-bottom: 1px dashed #f1f1f1;
  230. padding: 10px 0;
  231. }
  232. .linep p {
  233. /* margin: 10px 0 0 0; */
  234. font-size: 14px;
  235. color: #666;
  236. }
  237. .leftTitle {
  238. background-color: #74a4d9;
  239. color: #fff;
  240. display: inline-block;
  241. padding: 0 4px;
  242. border-radius: 2px;
  243. }
  244. .rightTitle {
  245. background-color: #e7b4bb;
  246. color: #fff;
  247. display: inline-block;
  248. padding: 0 4px;
  249. border-radius: 2px;
  250. white-space: nowrap;
  251. }
  252. </style>
  253. <style lang="scss">
  254. .myTab .van-tabs__nav--card {
  255. margin: 0 !important;
  256. border-left: 0;
  257. border-right: 0;
  258. }
  259. .myTab .van-tabs__wrap,
  260. .van-tabs__nav--card {
  261. height: 39px;
  262. }
  263. .myTab .van-tab {
  264. line-height: 40px;
  265. }
  266. .linep .van-collapse-item__content {
  267. color: #666;
  268. }
  269. .linep .van-collapse-item__content {
  270. color: #666;
  271. }
  272. .linep .van-cell__title {
  273. color: #1e5398;
  274. font-weight: 500;
  275. font-size: 16px;
  276. }
  277. .homeCellIcon {
  278. line-height: 34px;
  279. }
  280. .homeTitle .van-cell__title {
  281. color: #444;
  282. font-size: 16px;
  283. font-weight: bold;
  284. padding-left: 4px;
  285. line-height: 36px;
  286. height: 36px;
  287. }
  288. .updataTime {
  289. color: #999;
  290. font-size: 12px;
  291. text-align: center;
  292. }
  293. .van-dialog__confirm,
  294. .van-dialog__confirm:active {
  295. color: #0057ba;
  296. }
  297. .tipTitleBox p {
  298. margin: 0;
  299. line-height: 28px;
  300. color: #555;
  301. }
  302. .tipTitleBox .p {
  303. color: #555;
  304. font-size: 16px;
  305. border-bottom: 1px solid #f5f5f5;
  306. margin: 0;
  307. margin-bottom: 10px;
  308. text-align: center;
  309. padding: 14px 0px;
  310. }
  311. .storeTypeHome .van-collapse-item__content {
  312. padding: 0;
  313. }
  314. .storeTypeHome .storeTypeHomeList .van-cell__title {
  315. color: #4a4a4a;
  316. font-size: 14px;
  317. }
  318. .storeTypeHome .monthNoVisit {
  319. padding: 10px;
  320. margin: 10px;
  321. border-radius: 5px;
  322. background-color: #ebf4ff;
  323. }
  324. .storeTypeHome .leftContent {
  325. padding-right: 68px;
  326. position: relative;
  327. }
  328. .storeTypeHome .monthNoVisitStatstext {
  329. font-size: 12px;
  330. background-color: #0057ba;
  331. position: absolute;
  332. right: 0;
  333. top: 6px;
  334. padding: 2px 6px 2px 12px;
  335. border-bottom-left-radius: 60px;
  336. border-top-left-radius: 60px;
  337. color: #fff;
  338. }
  339. .ABtarage {
  340. .table-headermd {
  341. font-size: 12px;
  342. text-align: center;
  343. position: initial;
  344. width: 98% !important;
  345. margin: 0 auto;
  346. border-right: 0;
  347. }
  348. .table-headermdhome {
  349. font-size: 14px;
  350. }
  351. .table-headermdhome th.el-table__cell > .cell {
  352. white-space: pre;
  353. }
  354. .table-headermd .el-table__header,
  355. .table-headermd .el-table__body {
  356. width: 100% !important;
  357. }
  358. .table-headermdhome.van-cell {
  359. padding: 0 6px;
  360. height: 100%;
  361. }
  362. .table-headermd th.el-table__cell > .cell {
  363. padding: 0 4px;
  364. text-align: center;
  365. }
  366. .table-headermdhometh.el-table__cell:first-child > .cell {
  367. text-align: left;
  368. }
  369. .table-headermd th.el-table__cell {
  370. background-color: #1989fa;
  371. color: #fff;
  372. }
  373. .table-headermdhome th.el-table__cell {
  374. background-color: #fff;
  375. color: #444;
  376. }
  377. .table-headermd .el-table__cell {
  378. padding: 4px 0;
  379. }
  380. .table-headermdhome.el-table .cell {
  381. padding: 0 4px;
  382. text-align: center;
  383. }
  384. .table-headermdhome .tipTitle {
  385. overflow: hidden;
  386. text-overflow: ellipsis;
  387. display: -webkit-box;
  388. -webkit-box-orient: vertical;
  389. -webkit-line-clamp: 2;
  390. text-align: center;
  391. }
  392. .table-headermd::before {
  393. height: 0;
  394. }
  395. .table-headermd .cell,
  396. .el-table--border .el-table__cell:first-child .cell {
  397. padding: 0 4px;
  398. }
  399. }
  400. </style>
  401. <style lang="scss">
  402. .shareBtarget {
  403. p {
  404. margin: 10px 0 0 0;
  405. font-size: 14px;
  406. color: #fff !important;
  407. /* color: #666; */
  408. }
  409. .leftTitle {
  410. /* background-color: #74a4d9; */
  411. color: #fff;
  412. display: inline-block;
  413. // padding: 0 4px;
  414. border-radius: 2px;
  415. font-size: 14px;
  416. }
  417. .rightTitle {
  418. /* background-color: #e7b4bb; */
  419. color: #fff;
  420. display: inline-block;
  421. // padding: 0 4px;
  422. border-radius: 2px;
  423. font-size: 14px;
  424. }
  425. .colBack {
  426. width: 100%;
  427. height: 100%;
  428. display: block;
  429. /* overflow: unset; */
  430. position: relative;
  431. z-index: 2;
  432. float: left;
  433. z-index: 2;
  434. .back {
  435. position: absolute;
  436. /* background: rgb(226, 240, 217); */
  437. height: 100%;
  438. display: block;
  439. overflow: hidden;
  440. /* z-index: 1; */
  441. border-radius: 12px;
  442. bottom: -4px;
  443. }
  444. .backLeft {
  445. width: 45%;
  446. left: -12px;
  447. }
  448. .backRight {
  449. width: 50%;
  450. left: calc(50% - 12px);
  451. }
  452. .van-col {
  453. position: relative;
  454. z-index: 3;
  455. }
  456. }
  457. .colLabel {
  458. display: inline-block;
  459. // padding: 2px 5px;
  460. color: #fff;
  461. // margin-right: 10px;
  462. border-radius: 3px;
  463. }
  464. .colorbalck {
  465. color: #fff;
  466. margin-left: 8px;
  467. }
  468. .text {
  469. background: url('../assets/textBack.png') no-repeat;
  470. width: 100%;
  471. height: vw(94);
  472. background-size: cover;
  473. color: #7d0207;
  474. font-size: vw(36);
  475. text-align: center;
  476. line-height: vw(94);
  477. // margin-top: vw(152);
  478. // margin-bottom: vw(45);
  479. margin: vw(35) 0 vw(15) 0;
  480. font-weight: bold;
  481. }
  482. }
  483. </style>