dailyDetails.vue 43 KB

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