dailyDetails.vue 42 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273
  1. <template>
  2. <div class="dailyDetails">
  3. <div class="dailyDetailsBox" v-if="setDailyDetailsBoxFlag">
  4. <!-- 顶部条-->
  5. <div class="navBarTOP">
  6. <van-nav-bar class="navBar" title="日报详情" left-arrow @click-left="onClickLeft">
  7. <template #right>
  8. <div
  9. class="shareBtn"
  10. @click="clickShareFlag(-1)"
  11. v-if="reportTarget && source != 'share' && reportTarget.reportPostType == 'fx'">
  12. <van-icon name="share" />
  13. <div class="vedioLinks" @click.stop="shareVedioLinks">
  14. <span>一键分享日报,</span>
  15. <span class="linkSpan">点击查看操作视频</span><van-icon name="play" />
  16. </div>
  17. </div>
  18. </template>
  19. </van-nav-bar>
  20. </div>
  21. <div class="lineGrey"></div>
  22. <div class="lineGrey"></div>
  23. <div class="lineGrey"></div>
  24. <div class="lineGrey"></div>
  25. <div class="lineGrey"></div>
  26. <!-- 主体内容-->
  27. <div class="container linep">
  28. <template v-if="postName == '质感销售负责人' || postName == '质感销售专员'">
  29. <target :homePageIndicatorDate="homePageIndicatorList"></target>
  30. </template>
  31. <template v-else>
  32. <van-collapse v-model="activeNames" v-if="!YFQuota">
  33. <!-- YFQuota:应用服务平台 不显示各项指标 -->
  34. <van-collapse-item v-if="!GZQuota" title="拜访数据(实时)" name="7">
  35. <visitedRealTime
  36. :reportTargetAll="reportTargetAll"
  37. :powerGrade="powerGrade"
  38. :JZQuota="JZQuota"></visitedRealTime>
  39. </van-collapse-item>
  40. <van-collapse-item title="建店布机" v-if="!JZQuota && !GZQuota" name="2">
  41. <createStoreBJ :reportTargetAll="reportTargetAll"></createStoreBJ>
  42. </van-collapse-item>
  43. <van-collapse-item v-if="!JZQuota && !GZQuota" name="33" title="下单点数">
  44. <placeOrder :reportTargetAll="reportTargetAll"></placeOrder>
  45. </van-collapse-item>
  46. <van-collapse-item name="16" v-if="!JZQuota && !GZQuota" title="专业时时丽分销店下单">
  47. <ZYPlaceOrder :reportTargetAll="reportTargetAll"></ZYPlaceOrder>
  48. </van-collapse-item>
  49. <van-collapse-item v-if="type != 3 && type != 4" name="1" :title="saptitle">
  50. <performanceSAP
  51. :reportTargetAll="reportTargetAll"
  52. :JZQuota="JZQuota"></performanceSAP>
  53. </van-collapse-item>
  54. <van-collapse-item v-if="GZQuota" name="43" title="纯态之家SAP(千元)">
  55. <van-row style="margin-top: -10px">
  56. <van-col span="12"><span class="leftTitle">本月</span></van-col
  57. ><van-col span="12"><span class="rightTitle">本季</span></van-col>
  58. <van-col span="12"
  59. ><p>
  60. 业绩实际:<span class="colorbalck">{{
  61. Micrometer(reportTargetAll.gzCtzjMonthAct)
  62. }}</span>
  63. </p></van-col
  64. >
  65. <van-col span="12"
  66. ><p>
  67. 业绩实际:<span class="colorbalck">{{
  68. Micrometer(reportTargetAll.gzCtzjQuarterAct)
  69. }}</span>
  70. </p></van-col
  71. >
  72. <van-col span="12"
  73. ><p>
  74. 业绩成长率:<span class="colorbalck"
  75. >{{ reportTargetAll.gzCtzjMonthGrowRate }}%</span
  76. >
  77. </p></van-col
  78. >
  79. <van-col span="12"
  80. ><p>
  81. 业绩成长率:<span class="colorbalck"
  82. >{{ reportTargetAll.gzCtzjQuarterGrowRate }}%</span
  83. >
  84. </p></van-col
  85. >
  86. </van-row>
  87. </van-collapse-item>
  88. <van-collapse-item v-if="GZQuota" name="42" title="商机关联的质感外墙业绩SAP(千元)">
  89. <van-row style="margin-top: -10px">
  90. <van-col span="12"><span class="leftTitle">本月</span></van-col
  91. ><van-col span="12"><span class="rightTitle">本季</span></van-col>
  92. <van-col span="12"
  93. ><p>
  94. 业绩实际:<span class="colorbalck">{{
  95. Micrometer(reportTargetAll.gzZgwqMonthAct)
  96. }}</span>
  97. </p></van-col
  98. >
  99. <van-col span="12"
  100. ><p>
  101. 业绩实际:<span class="colorbalck">{{
  102. Micrometer(reportTargetAll.gzZgwqQuarterAct)
  103. }}</span>
  104. </p></van-col
  105. >
  106. <van-col span="12"
  107. ><p>
  108. 业绩成长率:<span class="colorbalck"
  109. >{{ reportTargetAll.gzZgwqMonthGrowRate }}%</span
  110. >
  111. </p></van-col
  112. >
  113. <van-col span="12"
  114. ><p>
  115. 业绩成长率:<span class="colorbalck"
  116. >{{ reportTargetAll.gzZgwqQuarterGrowRate }}%</span
  117. >
  118. </p></van-col
  119. >
  120. </van-row>
  121. </van-collapse-item>
  122. <van-collapse-item v-if="GZQuota" name="41" title="累计出货有效客户">
  123. <van-row>
  124. <van-col span="12"
  125. ><p>
  126. 全年实际:<span class="colorbalck">{{
  127. Micrometer(reportTargetAll.gzKhljYearAct)
  128. }}</span>
  129. </p></van-col
  130. >
  131. <van-col span="12"
  132. ><p>
  133. 全年目标:<span class="colorbalck">{{
  134. Micrometer(reportTargetAll.gzKhljYearTarget)
  135. }}</span>
  136. </p></van-col
  137. >
  138. <van-col span="12"><p>&nbsp;</p></van-col>
  139. <van-col span="12"
  140. ><p>
  141. 目标达成率:<span class="colorbalck"
  142. >{{ Micrometer(reportTargetAll.gzKhljSuccessRate) }}%</span
  143. >
  144. </p></van-col
  145. >
  146. </van-row>
  147. </van-collapse-item>
  148. <van-collapse-item v-if="GZQuota" name="40" title="今日拜访">
  149. <van-row>
  150. <van-col span="12"
  151. ><p>
  152. 公装客户数:<span class="colorbalck">{{
  153. Micrometer(reportTargetAll.gzVisitCustomerNum)
  154. }}</span>
  155. </p></van-col
  156. >
  157. <van-col span="12"
  158. ><p>
  159. 工地数:<span class="colorbalck">{{
  160. Micrometer(reportTargetAll.gzVisitGdNum)
  161. }}</span>
  162. </p></van-col
  163. >
  164. <van-col span="12"
  165. ><p>
  166. 潜在客户数:<span class="colorbalck">{{
  167. Micrometer(reportTargetAll.gzVisitQzCustomerNum)
  168. }}</span>
  169. </p></van-col
  170. >
  171. </van-row>
  172. </van-collapse-item>
  173. <van-collapse-item v-if="!JZQuota && !GZQuota" name="11" title="专业时时丽SAP(千元)">
  174. <ZYSAP :reportTargetAll="reportTargetAll"></ZYSAP>
  175. </van-collapse-item>
  176. <van-collapse-item v-if="!JZQuota && !GZQuota" name="29" title="瓷砖胶SAP(千元)">
  177. <van-row>
  178. <van-col span="12"><span class="leftTitle">本月业绩</span></van-col
  179. ><van-col span="12"><span class="rightTitle">本季业绩</span></van-col>
  180. <van-col span="12"
  181. ><p>
  182. 实际:<span class="colorbalck">{{
  183. Micrometer(reportTargetAll.czjSapMonthAct)
  184. }}</span>
  185. </p></van-col
  186. >
  187. <van-col span="12"
  188. ><p>
  189. 实际:<span class="colorbalck">{{
  190. Micrometer(reportTargetAll.czjSapQuarterAct)
  191. }}</span>
  192. </p></van-col
  193. >
  194. <van-col span="12"
  195. ><p>
  196. 达成率:<span class="colorbalck"
  197. >{{ reportTargetAll.czjSapMonthSuccessRate }}%</span
  198. >
  199. </p></van-col
  200. >
  201. <van-col span="12"
  202. ><p>
  203. 达成率:<span class="colorbalck"
  204. >{{ reportTargetAll.czjSapQuarterSuccessRate }}%</span
  205. >
  206. </p></van-col
  207. >
  208. <van-col span="12"
  209. ><p>
  210. 成长率:<span class="colorbalck"
  211. >{{ reportTargetAll.czjSapMonthGrowRate }}%</span
  212. >
  213. </p></van-col
  214. >
  215. <van-col span="12"
  216. ><p>
  217. 成长率:<span class="colorbalck"
  218. >{{ reportTargetAll.czjSapQuarterGrowRate }}%</span
  219. >
  220. </p></van-col
  221. >
  222. </van-row>
  223. </van-collapse-item>
  224. <van-collapse-item name="17" v-if="!JZQuota && !GZQuota" title="超好贴分销店下单">
  225. <veryGoodPlaceOrder :reportTargetAll="reportTargetAll"></veryGoodPlaceOrder>
  226. </van-collapse-item>
  227. <van-collapse-item v-if="JZQuota" name="23" title="展厅上样">
  228. <van-row>
  229. <van-col span="24"
  230. ><p>
  231. 当月新增店数:<span class="colorbalck">{{
  232. reportTargetAll.exhibitionHallMonthAct
  233. }}</span>
  234. </p></van-col
  235. >
  236. <van-col span="12"
  237. ><p>
  238. 全年实际店数:<span class="colorbalck"
  239. >{{ Micrometer(reportTargetAll.exhibitionHallYearAct) }}%</span
  240. >
  241. </p></van-col
  242. >
  243. <van-col span="12"
  244. ><p>
  245. 全年达成进度率:<span class="colorbalck"
  246. >{{ reportTargetAll.exhibitionHallYearRate }}%</span
  247. >
  248. </p></van-col
  249. >
  250. </van-row>
  251. </van-collapse-item>
  252. <van-collapse-item v-if="JZQuota" name="22" title="基材粉料过账(千元)">
  253. <van-row>
  254. <van-col span="12"><span class="leftTitle">本月实际</span></van-col>
  255. <van-col span="12"><span class="rightTitle">本季实际</span></van-col>
  256. <van-col span="12"
  257. ><p>
  258. 客户数:<span class="colorbalck">{{ reportTargetAll.jcPostCustomerMonth }}</span>
  259. </p>
  260. </van-col>
  261. <van-col span="12"
  262. ><p>
  263. 客户数:<span class="colorbalck">{{
  264. reportTargetAll.jcPostCustomerQuarter
  265. }}</span>
  266. </p></van-col
  267. >
  268. <van-col span="12"
  269. ><p>
  270. 下单数(包):<span class="colorbalck">{{
  271. reportTargetAll.jcPostOrderNumMonth
  272. }}</span>
  273. </p>
  274. </van-col>
  275. <van-col span="12"
  276. ><p>
  277. 下单数(包):<span class="colorbalck">{{
  278. reportTargetAll.jcPostOrderNumQuarter
  279. }}</span>
  280. </p></van-col
  281. >
  282. <van-col span="12"
  283. ><p>
  284. 下单销售额:<span class="colorbalck">{{
  285. Micrometer(reportTargetAll.jcPostOrderPriceMonth)
  286. }}</span>
  287. </p></van-col
  288. >
  289. <van-col span="12"
  290. ><p>
  291. 下单销售额:<span class="colorbalck">{{
  292. Micrometer(reportTargetAll.jcPostOrderPriceQuarter)
  293. }}</span>
  294. </p></van-col
  295. >
  296. <van-col span="12"
  297. ><p>
  298. 下单率:<span class="colorbalck"
  299. >{{ reportTargetAll.jcPostOrderRateMonth }}%</span
  300. >
  301. </p>
  302. </van-col>
  303. <van-col span="12"
  304. ><p>
  305. 下单率:<span class="colorbalck"
  306. >{{ reportTargetAll.jcPostOrderRateQuarter }}%</span
  307. >
  308. </p></van-col
  309. >
  310. <van-col span="24"><span class="leftTitle">年度累计实际</span></van-col>
  311. <van-col span="24"
  312. ><p>
  313. 客户数:<span class="colorbalck">{{ reportTargetAll.jcPostCustomerYear }}</span>
  314. </p>
  315. </van-col>
  316. <van-col span="24"
  317. ><p>
  318. 下单数(包):<span class="colorbalck">{{
  319. reportTargetAll.jcPostOrderNumYear
  320. }}</span>
  321. </p>
  322. </van-col>
  323. <van-col span="24"
  324. ><p>
  325. 下单销售额:<span class="colorbalck">{{
  326. Micrometer(reportTargetAll.jcPostOrderPriceYear)
  327. }}</span>
  328. </p></van-col
  329. >
  330. <van-col span="24"
  331. ><p>
  332. 下单率:<span class="colorbalck"
  333. >{{ reportTargetAll.jcPostOrderRateYear }}%</span
  334. >
  335. </p>
  336. </van-col>
  337. </van-row>
  338. </van-collapse-item>
  339. <van-collapse-item v-if="JZQuota" name="21" title="魔术漆过账(千元)">
  340. <van-row>
  341. <van-col span="12"><span class="leftTitle">本月实际</span></van-col>
  342. <van-col span="12"><span class="rightTitle">本季实际</span></van-col>
  343. <van-col span="12"
  344. ><p>
  345. 客户数:<span class="colorbalck">{{
  346. reportTargetAll.msqPostCustomerMonth
  347. }}</span>
  348. </p>
  349. </van-col>
  350. <van-col span="12"
  351. ><p>
  352. 客户数:<span class="colorbalck">{{
  353. reportTargetAll.msqPostCustomerQuarter
  354. }}</span>
  355. </p></van-col
  356. >
  357. <van-col span="12"
  358. ><p>
  359. 下单销售额:<span class="colorbalck">{{
  360. Micrometer(reportTargetAll.msqPostOrderPriceMonth)
  361. }}</span>
  362. </p></van-col
  363. >
  364. <van-col span="12"
  365. ><p>
  366. 下单销售额:<span class="colorbalck">{{
  367. Micrometer(reportTargetAll.msqPostOrderPriceQuarter)
  368. }}</span>
  369. </p></van-col
  370. >
  371. <van-col span="12"
  372. ><p>
  373. 下单率:<span class="colorbalck"
  374. >{{ reportTargetAll.msqPostOrderRateMonth }}%</span
  375. >
  376. </p>
  377. </van-col>
  378. <van-col span="12"
  379. ><p>
  380. 下单率:<span class="colorbalck"
  381. >{{ reportTargetAll.msqPostOrderRateQuarter }}%</span
  382. >
  383. </p></van-col
  384. >
  385. <van-col span="24"><span class="leftTitle">年度累计实际</span></van-col>
  386. <van-col span="24"
  387. ><p>
  388. 客户数:<span class="colorbalck">{{ reportTargetAll.msqPostCustomerYear }}</span>
  389. </p>
  390. </van-col>
  391. <van-col span="24"
  392. ><p>
  393. 下单销售额:<span class="colorbalck">{{
  394. Micrometer(reportTargetAll.msqPostOrderPriceYear)
  395. }}</span>
  396. </p></van-col
  397. >
  398. <van-col span="24"
  399. ><p>
  400. 下单率:<span class="colorbalck"
  401. >{{ reportTargetAll.msqPostOrderRateYear }}%</span
  402. >
  403. </p>
  404. </van-col>
  405. </van-row>
  406. </van-collapse-item>
  407. <van-collapse-item title="今日拜访照片" name="10" v-if="reportTarget.photoSummary">
  408. <div
  409. class="visitIMG1"
  410. :style="{
  411. overflow: 'hidden',
  412. height: visitIMG1Flag ? 'auto' : '170px',
  413. }">
  414. <template v-for="(item, index) in reportTarget.photoSummary">
  415. <van-col span="6" style="padding: 5px" @click="pviewFn(index)" :key="index">
  416. <img :src="item.fileUrl" alt="" />
  417. </van-col>
  418. </template>
  419. </div>
  420. <div
  421. v-if="reportTarget.photoSummary.length > 8"
  422. class="arrowIcon"
  423. style="
  424. display: flex;
  425. align-items: center;
  426. justify-content: center;
  427. padding: 5px 0;
  428. font-size: 14px;
  429. color: #969799;
  430. "
  431. @click="visitIMG1Flag = !visitIMG1Flag">
  432. <template v-if="visitIMG1Flag">
  433. <span style="margin-right: 5px">折叠</span>
  434. <van-icon size="14" :name="require('@/assets/Icon/arrow-up.png')" />
  435. </template>
  436. <template v-else>
  437. <span style="margin-right: 5px">展开</span>
  438. <van-icon size="14" :name="require('@/assets/Icon/arrow-down.png')" />
  439. </template>
  440. </div>
  441. <!-- 生动化陈列 sku -->
  442. <template
  443. v-if="
  444. reportTarget.photoSkuImgSummaryeList &&
  445. reportTarget.photoSkuImgSummaryeList.length
  446. ">
  447. <p style="padding-bottom: 10px; font-size: 14px; color: #1e5398; font-weight: 500">
  448. SKU陈列照识别结果
  449. </p>
  450. <p style="padding-bottom: 10px; font-size: 14px; font-weight: 500">
  451. 目前识别桶装和战略产品合计106个,后续会增加被识别产品数
  452. </p>
  453. <el-table
  454. :data="reportTarget.photoSkuImgSummaryeList"
  455. border
  456. class="table-headermd table-headermdhome"
  457. style="width: 100%">
  458. <el-table-column label="序号" type="index" width="50px" align="center" />
  459. <el-table-column label="门店名称(编号)" prop="name" align="center">
  460. <template slot-scope="scope">
  461. {{ scope.row.name }}({{ scope.row.code }})
  462. </template>
  463. </el-table-column>
  464. <el-table-column label="SKU数量" prop="count" width="80px" align="center" />
  465. </el-table>
  466. </template>
  467. </van-collapse-item>
  468. </van-collapse>
  469. </template>
  470. <div class="contentContainer">
  471. <!-- isHistory 是否为历史汇报:0-新汇报 1-历史汇报 -->
  472. <reportCustom
  473. ref="reportCustom"
  474. v-if="reportTarget.isHistory == '0'"
  475. :disabled="true"
  476. :reportCustomData="reportTarget.customTaskList"></reportCustom>
  477. <template v-else>
  478. <div v-if="GZQuota">
  479. <p class="contentContainerTitle">今日项目跟进数</p>
  480. <div style="padding: 10px 0">
  481. <van-field readonly v-model="projectFollowNum" type="digit" />
  482. </div>
  483. <p class="contentContainerTitle">今日TUC成功报备数量</p>
  484. <div style="padding: 10px 0">
  485. <van-field readonly v-model="tucReportingSuccessNum" type="digit" />
  486. </div>
  487. </div>
  488. <!-- 今日未拜访原因 如果不为空则展示,为空则不展示 -->
  489. <div v-if="reportTarget.notVisitReason && reportTarget.notVisitReason != ''">
  490. <p class="contentContainerTitle">截至日报提交时间,今日拜访0家店的原因</p>
  491. <div style="padding: 10px 0">
  492. <van-field
  493. readonly
  494. v-model="reportTarget.notVisitReason"
  495. rows="4"
  496. autosize
  497. type="textarea" />
  498. </div>
  499. </div>
  500. <p class="contentContainerTitle">今日机会与挑战总结</p>
  501. <div style="padding: 10px 0">
  502. <van-field v-model="Content" rows="4" autosize readonly type="textarea" />
  503. </div>
  504. <p class="contentContainerTitle">明日工作规划</p>
  505. <div style="padding: 10px 0">
  506. <van-field v-model="Content2" rows="4" autosize readonly type="textarea" />
  507. </div>
  508. </template>
  509. </div>
  510. <div
  511. class="contentContainer"
  512. v-if="reportTarget.status > 1 || reportTarget.reportRemarks != null">
  513. <p class="texttitle texttitledaily">
  514. <span class="opint"></span>
  515. <span v-if="reportTarget.status == 1">待审批</span>
  516. <span v-if="reportTarget.status == 3">审批完成</span>
  517. <span v-if="reportTarget.status == 2">退回重写</span>
  518. <span v-if="reportTarget.status == -1">过期未汇报</span>
  519. <span v-if="reportTarget.status > 1"><{{ ptitle }}审批></span>
  520. </p>
  521. <div style="padding: 10px 0" v-if="reportTarget.status > 1">
  522. <van-rate
  523. v-model="reportTarget.number"
  524. :size="25"
  525. readonly
  526. color="#ffd21e"
  527. void-icon="star"
  528. void-color="#eee" /><span class="rateText"
  529. >&nbsp;&nbsp;&nbsp;&nbsp;{{ reportTarget.number }}分</span
  530. >
  531. </div>
  532. <p class="contentContainerTitle" v-if="reportTarget.status > 1">评语</p>
  533. <div style="padding: 10px 0" v-if="reportTarget.status > 1">
  534. <van-field v-model="successContent" rows="4" autosize readonly type="textarea" />
  535. </div>
  536. </div>
  537. <div class="contentContainer" v-if="reportTarget.reportRemarks != null">
  538. <div>
  539. <div v-for="(item, index) in reportTarget.reportRemarks" :key="index">
  540. <div class="contentContainerTitle redisplay">
  541. <div class="nameTitle">
  542. <template v-if="item.deptName">{{ item.deptName }}-</template
  543. >{{ item.postName }}-{{ item.nickName }}点评
  544. </div>
  545. <div
  546. class="shareBtn"
  547. @click="clickShareFlag(index)"
  548. v-if="reportTarget && source != 'share' && reportTarget.reportPostType == 'fx'">
  549. <van-icon name="share" />
  550. </div>
  551. </div>
  552. <p class="contentContainerTitle">
  553. <template v-if="item.deptName">{{ item.deptName }}-</template>{{ item.postName }}-{{
  554. item.nickName
  555. }}点评
  556. </p>
  557. <div style="padding: 10px 0">
  558. <van-field
  559. v-model="item.remarkContent"
  560. rows="4"
  561. autosize
  562. readonly
  563. type="textarea" />
  564. </div>
  565. </div>
  566. </div>
  567. </div>
  568. <div class="contentContainer" v-if="reportTarget.reportRemarks != null">
  569. <p class="contentContainerTitle">点评</p>
  570. <div style="padding: 10px 0">
  571. <van-field
  572. v-model="managerRemarkContent"
  573. rows="4"
  574. autosize
  575. maxlength="800"
  576. show-word-limit
  577. type="textarea"
  578. :formatter="formatter" />
  579. </div>
  580. </div>
  581. </div>
  582. <br />
  583. <div class="contentborder" v-if="reportTarget.status == 2">
  584. <van-button type="info" size="small" plain class="Btn1" @click="submint"
  585. >重新填写</van-button
  586. >
  587. </div>
  588. <br />
  589. <div class="contentborder" v-if="reportTarget.reportRemarks != null">
  590. <van-button type="info" size="small" plain class="Btn1" @click="submintRemark"
  591. >提交点评</van-button
  592. >
  593. </div>
  594. <br />
  595. <br />
  596. </div>
  597. <share
  598. v-if="setShareFlag"
  599. :reportTarget="reportTarget"
  600. :reportId="$route.query.reportId"
  601. @setShareImg="setShareImg"
  602. @setDailyDetailsBox="setDailyDetailsBox"
  603. :urlList="urlList"
  604. :reportRemarksIndex="reportRemarksIndex"
  605. :reportContents="reportContents"
  606. :checkedPlan="checkedPlan"></share>
  607. <!--分享图片列表 -->
  608. <el-dialog
  609. title="选择分享的内容"
  610. :visible.sync="shareImgFlag"
  611. width="90%"
  612. :append-to-body="true"
  613. :close-on-click-modal="false"
  614. @close="wuliaoTableClose"
  615. custom-class="shareImgFlag">
  616. <div v-if="reportTarget.photoSummary">
  617. <!-- <p style="margin-bottom: 10px; margin-top: 0; display: flex">
  618. 今日总结&明日规划的文本内容<van-checkbox
  619. v-model="checkedPlan"
  620. style="margin-left: 10px"></van-checkbox>
  621. </p> -->
  622. <p style="margin-top: 0">请点击勾选想要分享的今日拜访照片</p>
  623. <div class="shareVisitImg">
  624. <template v-for="(itemImg, indexImg) in reportTarget.photoSummary">
  625. <div>
  626. <img :src="itemImg.fileUrl" alt="" @click="selectImg(itemImg)" />
  627. <van-icon
  628. @click.stop
  629. name="success"
  630. class="activaImg"
  631. color="#fff"
  632. size="15"
  633. style="
  634. position: absolute;
  635. right: 0;
  636. bottom: 0;
  637. /* margin: -15px 0 0 -15px; */
  638. pointer-events: none;
  639. background: #2b73cf;
  640. border: 2px solid #fff;
  641. "
  642. v-if="itemImg.checked" />
  643. </div>
  644. </template>
  645. </div>
  646. </div>
  647. <span slot="footer" class="footer-btn">
  648. <van-button plain type="primary" @click="shareImgFlag = false">取 消</van-button>
  649. <van-button type="primary" @click="confirmShare">确 定</van-button>
  650. </span>
  651. </el-dialog>
  652. </div>
  653. </template>
  654. <script>
  655. import history from '@/assets/Icon/history.png';
  656. import {
  657. userTodayPlanNum,
  658. loginLog,
  659. getDetailById,
  660. getReportInfo,
  661. buryingPoint,
  662. getDictOption,
  663. insertRemark,
  664. } from '@/api/index';
  665. import { ImagePreview } from 'vant';
  666. import visitedRealTime from '@/views/componentsTarget/visitedRealTime';
  667. import createStoreBJ from '@/views/componentsTarget/createStoreBJ';
  668. import placeOrder from '@/views/componentsTarget/placeOrder';
  669. import ZYPlaceOrder from '@/views/componentsTarget/ZYPlaceOrder';
  670. import performanceSAP from '@/views/componentsTarget/performanceSAP';
  671. import ZYSAP from '@/views/componentsTarget/ZYSAP';
  672. import veryGoodPlaceOrder from '@/views/componentsTarget/veryGoodPlaceOrder';
  673. import share from '@/components/share';
  674. import chatBIReport from './chatBIReport.vue';
  675. import reportCustom from './reportCustom';
  676. import target from './target.vue';
  677. export default {
  678. name: 'dailyDetails',
  679. components: {
  680. visitedRealTime,
  681. createStoreBJ,
  682. placeOrder,
  683. ZYPlaceOrder,
  684. performanceSAP,
  685. ZYSAP,
  686. veryGoodPlaceOrder,
  687. share,
  688. chatBIReport,
  689. reportCustom,
  690. target,
  691. },
  692. data() {
  693. return {
  694. show: true,
  695. num: 0,
  696. todayGoal: {},
  697. progressWidth: 0,
  698. history: history,
  699. imgArr: [],
  700. activeNames: [
  701. '1',
  702. '2',
  703. '3',
  704. '4',
  705. '5',
  706. '6',
  707. '7',
  708. '8',
  709. '10',
  710. '16',
  711. '17',
  712. '20',
  713. '21',
  714. '22',
  715. '23',
  716. '11',
  717. '29',
  718. '33',
  719. '40',
  720. '41',
  721. '42',
  722. '43',
  723. ],
  724. value: '2',
  725. message: '',
  726. powerGrade: '',
  727. Content: '',
  728. Content2: '',
  729. reportTargetAll: {},
  730. reportContents: [],
  731. reportTarget: {},
  732. successContent: '',
  733. projectFollowNum: '',
  734. tucReportingSuccessNum: '',
  735. tucUndertakingNum: '',
  736. imgList: [],
  737. type: '-1',
  738. JZQuota: false,
  739. GZQuota: false,
  740. YFQuota: false, //应用服务
  741. titlejz: '',
  742. saptitle: '业绩目标SAP(千元)',
  743. ptitle: '',
  744. setShareFlag: false,
  745. source: '',
  746. reportRemarksIndex: -1,
  747. shareImgFlag: false,
  748. urlList: [],
  749. title: '',
  750. setDailyDetailsBoxFlag: true,
  751. sourceType: '',
  752. checkedPlan: true, //今日总结&明日规划
  753. shareVisible: true,
  754. visitIMG1Flag: false,
  755. shareReportConfig: null,
  756. managerRemarkContent: '',
  757. postName: '',
  758. homePageIndicatorList: null,
  759. };
  760. },
  761. created() {
  762. this.getDetailById();
  763. },
  764. watch: {
  765. $route(to, from) {
  766. this.powerGrade = localStorage.getItem('powerGrade');
  767. if (to.path == '/dailyDetails') {
  768. this.getDetailById();
  769. }
  770. // &&from.path=="/dailyApprovalList"
  771. // if(to.path=="/dailyDetails"&&from.path=="/myHistoricalDaily"){
  772. // this.getDetailById()
  773. // }
  774. },
  775. },
  776. activated() {
  777. this.source = this.$route.query.source || '';
  778. this.sourceType = this.$route.query.sourceType || '';
  779. this.powerGrade = localStorage.getItem('powerGrade');
  780. this.setDailyDetailsBoxFlag = true;
  781. this.shareImgFlag = false;
  782. this.num = 0;
  783. this.userTodayPlanNum();
  784. this.setShareFlag = false;
  785. },
  786. methods: {
  787. setVisitIMG1Flag(item) {
  788. // this.$set(item, 'visitIMG1Flag', !item.visitIMG1Flag);
  789. this.$forceUpdate();
  790. },
  791. setDailyDetailsBox(flag) {
  792. this.setDailyDetailsBoxFlag = flag;
  793. },
  794. setShareImg(flag) {
  795. this.setShareFlag = flag;
  796. },
  797. // 打开分享
  798. clickShareFlag(index = -1) {
  799. buryingPoint({
  800. systemModel: '日报审核',
  801. buryingPointType: 2,
  802. buryingPointValue: this.$route.query.reportId,
  803. buryingPointName: '日报详情分享',
  804. buryingPointPosition: '日报详情',
  805. });
  806. this.urlList = [];
  807. this.reportRemarksIndex = index;
  808. if (this.reportTarget.photoSummary && this.reportTarget.photoSummary.length) {
  809. // 重置分享图片状态
  810. this.reportTarget.photoSummary.forEach((item) => {
  811. // item.photos.forEach((val) => {
  812. this.$set(item, 'checked', false);
  813. // });
  814. });
  815. // 选择分享的图片
  816. this.shareImgFlag = true;
  817. } else {
  818. this.setShareFlag = true;
  819. }
  820. },
  821. // 确认分享
  822. confirmShare() {
  823. this.reportTarget.photoSummary.forEach((item) => {
  824. // item.photos.forEach((val) => {
  825. if (item.checked) this.urlList.push(item.fileUrl);
  826. // });
  827. });
  828. if (this.urlList.length == 0 && !this.checkedPlan) {
  829. this.$notify({ type: 'warning', message: '请选择分享内容!', className: 'notifyIndex' });
  830. return;
  831. }
  832. buryingPoint({
  833. systemModel: '日报审核',
  834. buryingPointType: 2,
  835. buryingPointValue: `文本${this.checkedPlan ? '是' : '否'},图片${this.urlList.length}`,
  836. buryingPointName: '日报分享确认',
  837. buryingPointPosition: '日报详情',
  838. });
  839. this.shareImgFlag = false;
  840. this.setShareFlag = true;
  841. },
  842. pviewFn(index) {
  843. var imgList = [];
  844. var photos = this.reportTarget.photoSummary;
  845. for (let i = 0; i < photos.length; i++) {
  846. imgList.push(photos[i].fileUrl);
  847. }
  848. ImagePreview({ images: imgList, startPosition: index });
  849. },
  850. submint() {
  851. this.$router.push({
  852. path: '/daily',
  853. query: { reportId: this.$route.query.reportId, temporaryShow: 'N' },
  854. });
  855. },
  856. submintRemark() {
  857. let loading1 = this.$toast.loading({
  858. duration: 0,
  859. message: '数据提交中...',
  860. forbidClick: true,
  861. });
  862. if (this.managerRemarkContent.trim() == '') {
  863. this.$toast('点评内容未填写');
  864. return false;
  865. }
  866. if (this.managerRemarkContent.length > 800) {
  867. this.$toast('点评内容超过800字');
  868. return false;
  869. }
  870. var remak = {
  871. remarkContent: this.managerRemarkContent,
  872. reportId: this.$route.query.reportId,
  873. };
  874. insertRemark(remak).then((res) => {
  875. loading1.clear();
  876. if (res.code == 200) {
  877. this.$dialog
  878. .alert({
  879. title: '系统提示',
  880. message: '提交成功',
  881. })
  882. .then(() => {
  883. this.managerRemarkContent = '';
  884. this.getDetailById();
  885. });
  886. } else {
  887. this.$toast.fail(res.msg);
  888. }
  889. });
  890. },
  891. formatter(value) {
  892. return value.replace(
  893. /[\uD83C|\uD83D|\uD83E][\uDC00-\uDFFF][\u200D|\uFE0F]|[\uD83C|\uD83D|\uD83E][\uDC00-\uDFFF]|[0-9|*|#]\uFE0F\u20E3|[0-9|#]\u20E3|[\u203C-\u3299]\uFE0F\u200D|[\u203C-\u3299]\uFE0F|[\u2122-\u2B55]|\u303D|[\A9|\AE]\u3030|\uA9|\uAE|\u3030/gi,
  894. '',
  895. );
  896. },
  897. getDetailById() {
  898. let loading1 = this.$toast.loading({
  899. duration: 0,
  900. message: '加载中...',
  901. forbidClick: true,
  902. });
  903. // 获取店招异常原因字典
  904. getDictOption({}, 'share_report_config').then((res) => {
  905. this.shareReportConfig = res.data;
  906. });
  907. getDetailById({ reportId: this.$route.query.reportId }).then((res) => {
  908. loading1.clear();
  909. if (res.data.postName == '质感销售负责人' || res.data.postName == '质感销售专员') {
  910. this.homePageIndicatorList = res.data.homePageIndicatorList;
  911. } else {
  912. this.homePageIndicatorList = null;
  913. }
  914. this.postName = res.data.postName;
  915. this.reportTargetAll = res.data.reportTargetAll;
  916. this.reportTarget = res.data;
  917. this.JZQuota = false;
  918. this.GZQuota = false;
  919. this.YFQuota = res.data.postType == 'YF' ? true : false;
  920. this.ptitle = res.data.pdeptName + '-' + res.data.ppostName + '-' + res.data.pnickName;
  921. this.title =
  922. res.data.deptName + '-' + res.data.postName + '-' + res.data.nickName + '的日报';
  923. if (res.data.postType == 'JZ') {
  924. this.JZQuota = true;
  925. } else if (res.data.postType == 'GZ') {
  926. this.GZQuota = true;
  927. this.saptitle = '公裝业绩SAP(千元)';
  928. } else {
  929. this.saptitle = '业绩目标SAP(千元)';
  930. }
  931. this.type = res.data.userType;
  932. if (res.data.status == 3) {
  933. this.successContent = res.data.successContent;
  934. } else {
  935. this.successContent = res.data.failContent;
  936. }
  937. this.Content = '';
  938. this.Content2 = '';
  939. this.reportContents = [];
  940. // <!-- isHistory 是否为历史汇报:0-新汇报 1-历史汇报 -->
  941. if (this.reportTarget.isHistory == '0') {
  942. if (this.reportTarget.customTaskList && this.reportTarget.customTaskList.length) {
  943. for (let x = 0; x < this.reportTarget.customTaskList.length; x++) {
  944. let sfaReportCustomCollections =
  945. this.reportTarget.customTaskList[x].sfaReportCustomCollections;
  946. if (sfaReportCustomCollections) {
  947. for (let y = 0; y < sfaReportCustomCollections.length; y++) {
  948. let custom = this.shareReportConfig.filter(
  949. (val) =>
  950. val.dictValue == sfaReportCustomCollections[y].reportCustomCollectionName,
  951. );
  952. if (custom.length) {
  953. custom[0].content = sfaReportCustomCollections[y].answerValue;
  954. this.reportContents = this.reportContents.concat(custom);
  955. }
  956. }
  957. }
  958. }
  959. }
  960. } else {
  961. if (res.data.reportContents.length > 0) {
  962. this.Content = res.data.reportContents[0].dayContent;
  963. if (res.data.reportContents.length > 1) {
  964. this.Content2 = res.data.reportContents[1].dayContent;
  965. } else {
  966. this.Content2 = '';
  967. }
  968. if (res.data.reportContents.length > 2) {
  969. this.projectFollowNum = res.data.reportContents[2].projectFollowNum;
  970. this.tucReportingSuccessNum = res.data.reportContents[3].tucReportingSuccessNum;
  971. }
  972. }
  973. this.reportContents = [
  974. {
  975. dictValue: '今日机会与挑战总结',
  976. content: this.Content,
  977. },
  978. {
  979. dictValue: '明日工作计划',
  980. content: this.Content2,
  981. },
  982. ];
  983. }
  984. var imgList = [];
  985. if (res.data.photoSummary != null) {
  986. for (var k = 0; k < res.data.photoSummary.length; k++) {
  987. imgList.push(res.data.photoSummary[k].fileUrl + '');
  988. }
  989. }
  990. console.log(res.data.photoSummary);
  991. this.imgList = imgList;
  992. if (this.sourceType == 'daily') {
  993. this.$nextTick(() => {
  994. this.clickShareFlag(-1);
  995. });
  996. }
  997. });
  998. },
  999. userTodayPlanNum() {
  1000. userTodayPlanNum().then((res) => {
  1001. if (res.code == 200) {
  1002. this.todayGoal = res.data;
  1003. this.progressWidth = (this.todayGoal.finishNum / this.todayGoal.planNum) * 100 + '%';
  1004. localStorage.setItem('nickName', res.data.user.nickName);
  1005. localStorage.setItem('storeType', res.data.user.type);
  1006. } else {
  1007. this.$toast.fail(res.msg);
  1008. }
  1009. });
  1010. },
  1011. onClickLeft() {
  1012. this.$router.replace({
  1013. path: 'myHistoricalDaily',
  1014. });
  1015. },
  1016. wuliaoTableClose() {
  1017. this.shareImgFlag = false;
  1018. },
  1019. // 选中的图片
  1020. selectImg(item) {
  1021. this.$set(item, 'checked', !item.checked);
  1022. console.log(item);
  1023. },
  1024. },
  1025. };
  1026. </script>
  1027. <style scoped lang="scss">
  1028. .dailyDetails {
  1029. position: relative;
  1030. // background: #fff;
  1031. width: 100%;
  1032. height: 100%;
  1033. .shareBtn {
  1034. width: 22px;
  1035. height: 22px;
  1036. border-radius: 50%;
  1037. background: #666;
  1038. display: flex;
  1039. align-items: center;
  1040. justify-content: center;
  1041. position: relative;
  1042. .van-icon-share {
  1043. color: #fff;
  1044. }
  1045. .vedioLinks {
  1046. max-width: vw(205);
  1047. position: absolute;
  1048. bottom: -13px;
  1049. background: #dae7f6;
  1050. padding: 2px 7px;
  1051. /* word-break: keep-all; */
  1052. white-space: nowrap;
  1053. /* text-overflow: ellipsis; */
  1054. right: 0;
  1055. border-radius: 5px;
  1056. font-size: 10px;
  1057. right: 28px;
  1058. display: flex;
  1059. flex-direction: column;
  1060. justify-content: center;
  1061. align-items: flex-start;
  1062. z-index: 999999;
  1063. span {
  1064. line-height: 17px;
  1065. }
  1066. .linkSpan {
  1067. text-decoration: underline;
  1068. }
  1069. .van-icon-play {
  1070. position: absolute;
  1071. top: 12px;
  1072. /* transform: rotate(270deg); */
  1073. right: -8px;
  1074. color: #dae7f6;
  1075. }
  1076. }
  1077. }
  1078. }
  1079. .container {
  1080. margin: 10px;
  1081. }
  1082. .container .van-collapse-item {
  1083. margin-bottom: 10px;
  1084. border-radius: 6px;
  1085. overflow: hidden;
  1086. }
  1087. .linep p {
  1088. margin: 6px 0 0 0;
  1089. font-size: 14px;
  1090. color: #666;
  1091. }
  1092. .linep .texttitle {
  1093. color: #0057ba;
  1094. position: relative;
  1095. padding-left: 10px;
  1096. }
  1097. .linep .texttitledaily {
  1098. color: #000;
  1099. position: relative;
  1100. padding-left: 10px;
  1101. }
  1102. .linep .texttitle2 {
  1103. padding-left: 0;
  1104. }
  1105. .linep .texttitledaily .opint {
  1106. position: absolute;
  1107. left: 0px;
  1108. top: 6px;
  1109. margin-right: 6px;
  1110. display: inline-block;
  1111. width: 6px;
  1112. height: 6px;
  1113. border-radius: 10px;
  1114. background-color: #0057ba;
  1115. }
  1116. .leftTitle {
  1117. background-color: #74a4d9;
  1118. color: #fff;
  1119. display: inline-block;
  1120. padding: 0 4px;
  1121. border-radius: 2px;
  1122. }
  1123. .rightTitle {
  1124. background-color: #e7b4bb;
  1125. color: #fff;
  1126. display: inline-block;
  1127. padding: 0 4px;
  1128. border-radius: 2px;
  1129. }
  1130. .redisplay {
  1131. display: flex;
  1132. align-items: center;
  1133. justify-content: space-between;
  1134. .nameTitle {
  1135. flex: 1;
  1136. }
  1137. }
  1138. </style>
  1139. <style lang="scss">
  1140. .linep .van-cell__title {
  1141. color: #1e5398;
  1142. font-weight: 500;
  1143. }
  1144. .linep .contentContainer {
  1145. background-color: white;
  1146. border-radius: 8px;
  1147. padding: 10px 16px;
  1148. margin-bottom: 10px;
  1149. }
  1150. .linep .contentContainer .contentContainerTitle {
  1151. color: #222;
  1152. }
  1153. .linep .contentContainer .contentContainerTitle span {
  1154. font-size: 12px;
  1155. color: #666;
  1156. }
  1157. .linep .contentContainer .van-field__control {
  1158. background-color: #ebf4ff;
  1159. padding: 10px;
  1160. border-radius: 8px;
  1161. }
  1162. .linep .contentContainer .van-cell {
  1163. padding: 0;
  1164. }
  1165. .colorbalck {
  1166. color: #333;
  1167. }
  1168. .visitIMG1 {
  1169. img {
  1170. display: block;
  1171. width: 100%;
  1172. height: 75px;
  1173. border-radius: 6px;
  1174. }
  1175. }
  1176. .el-dialog__wrapper {
  1177. z-index: 9999 !important;
  1178. display: flex;
  1179. justify-content: center;
  1180. align-items: center;
  1181. background: rgba(0, 0, 0, 0.5) !important;
  1182. .shareImgFlag {
  1183. overflow: hidden;
  1184. display: flex;
  1185. flex-direction: column;
  1186. max-height: 70%;
  1187. margin-top: 0 !important;
  1188. .el-dialog__header {
  1189. height: 40px;
  1190. display: flex;
  1191. justify-content: right;
  1192. .el-dialog__headerbtn {
  1193. position: static !important;
  1194. }
  1195. }
  1196. .el-dialog__body {
  1197. padding: 30px 20px !important;
  1198. overflow-y: auto;
  1199. flex: 1;
  1200. }
  1201. .cell {
  1202. font-size: 12px;
  1203. }
  1204. .footer-btn {
  1205. display: flex;
  1206. justify-content: space-around;
  1207. }
  1208. }
  1209. }
  1210. .shareImgFlag {
  1211. .shareVisitImg {
  1212. display: flex;
  1213. flex-wrap: wrap;
  1214. div {
  1215. width: 22%;
  1216. height: 80px;
  1217. margin-right: 3%;
  1218. margin-top: 10px;
  1219. position: relative;
  1220. img {
  1221. width: 100%;
  1222. height: 100%;
  1223. }
  1224. }
  1225. }
  1226. .el-dialog__header {
  1227. display: flex;
  1228. .el-dialog__title {
  1229. flex: 1;
  1230. display: flex;
  1231. align-items: center;
  1232. justify-content: center;
  1233. }
  1234. }
  1235. }
  1236. .notifyIndex {
  1237. z-index: 999999 !important;
  1238. }
  1239. .table-headermd {
  1240. font-size: 12px;
  1241. text-align: center;
  1242. position: initial;
  1243. width: 98% !important;
  1244. margin: 0 auto;
  1245. border-right: 0;
  1246. border-radius: 10px;
  1247. .el-table__cell {
  1248. padding: 6px 0 !important;
  1249. }
  1250. }
  1251. .table-headermd th.el-table__cell {
  1252. background-color: #1989fa;
  1253. color: #fff;
  1254. }
  1255. </style>