dailyDetails.vue 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964
  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'">
  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" style="margin-top: -3px">
  37. <template v-if="!YFQuota">
  38. <template v-if="reportTarget.postType == 'GZ' || reportTarget.BMDType == 'BMD'">
  39. <!-- 0-历史指标 1-动态指标,String类型 -->
  40. <target
  41. v-if="reportTarget.targetType == '1'"
  42. :homePageIndicatorDate="homePageIndicatorList"></target>
  43. <template v-else>
  44. <!-- 历史指标 -->
  45. <Atarget :reportInfo="reportTarget"></Atarget>
  46. <Btarget :reportInfo="reportTarget"></Btarget>
  47. </template>
  48. </template>
  49. <template v-else>
  50. <!-- YFQuota:应用服务平台 不显示各项指标 -->
  51. <Atarget :reportInfo="reportTarget"></Atarget>
  52. <Btarget :reportInfo="reportTarget"></Btarget>
  53. </template>
  54. </template>
  55. </van-collapse>
  56. </template>
  57. <div class="contentContainer">
  58. <!-- isHistory 是否为历史汇报:0-新汇报 1-历史汇报 -->
  59. <reportCustom
  60. ref="reportCustom"
  61. v-if="reportTarget.isHistory == '0'"
  62. :disabled="true"
  63. :reportCustomData="reportTarget.customTaskList"></reportCustom>
  64. <template v-else>
  65. <div v-if="GZQuota">
  66. <p class="contentContainerTitle">今日项目跟进数</p>
  67. <div style="padding: 10px 0">
  68. <van-field readonly v-model="projectFollowNum" type="digit" />
  69. </div>
  70. <p class="contentContainerTitle">今日TUC成功报备数量</p>
  71. <div style="padding: 10px 0">
  72. <van-field readonly v-model="tucReportingSuccessNum" type="digit" />
  73. </div>
  74. </div>
  75. <!-- 今日未拜访原因 如果不为空则展示,为空则不展示 -->
  76. <div v-if="reportTarget.notVisitReason && reportTarget.notVisitReason != ''">
  77. <p class="contentContainerTitle">截至日报提交时间,今日拜访0家店的原因</p>
  78. <div style="padding: 10px 0">
  79. <van-field
  80. readonly
  81. v-model="reportTarget.notVisitReason"
  82. rows="4"
  83. autosize
  84. type="textarea" />
  85. </div>
  86. </div>
  87. <p class="contentContainerTitle">今日机会与挑战总结</p>
  88. <div style="padding: 10px 0">
  89. <van-field v-model="Content" rows="4" autosize readonly type="textarea" />
  90. </div>
  91. <p class="contentContainerTitle">明日工作规划</p>
  92. <div style="padding: 10px 0">
  93. <van-field v-model="Content2" rows="4" autosize readonly type="textarea" />
  94. </div>
  95. </template>
  96. </div>
  97. <div
  98. class="contentContainer"
  99. v-if="reportTarget.status > 1 || reportTarget.reportRemarks != null">
  100. <p class="texttitle texttitledaily">
  101. <span class="opint"></span>
  102. <span v-if="reportTarget.status == 1">待审批</span>
  103. <span v-if="reportTarget.status == 3">审批完成</span>
  104. <span v-if="reportTarget.status == 2">退回重写</span>
  105. <span v-if="reportTarget.status == -1">过期未汇报</span>
  106. <span v-if="reportTarget.status > 1"><{{ ptitle }}审批></span>
  107. </p>
  108. <div style="padding: 10px 0" v-if="reportTarget.status > 1">
  109. <van-rate
  110. v-model="reportTarget.number"
  111. :size="25"
  112. readonly
  113. color="#ffd21e"
  114. void-icon="star"
  115. void-color="#eee" /><span class="rateText"
  116. >&nbsp;&nbsp;&nbsp;&nbsp;{{ reportTarget.number }}分</span
  117. >
  118. </div>
  119. <p class="contentContainerTitle" v-if="reportTarget.status > 1">评语</p>
  120. <div style="padding: 10px 0" v-if="reportTarget.status > 1">
  121. <van-field v-model="successContent" rows="4" autosize readonly type="textarea" />
  122. </div>
  123. </div>
  124. <div class="contentContainer" v-if="reportTarget.reportRemarks != null">
  125. <div>
  126. <div v-for="(item, index) in reportTarget.reportRemarks" :key="index">
  127. <div class="contentContainerTitle redisplay">
  128. <div class="nameTitle">
  129. <template v-if="item.deptName">{{ item.deptName }}-</template
  130. >{{ item.postName }}-{{ item.nickName }}点评
  131. </div>
  132. <div
  133. class="shareBtn"
  134. @click="clickShareFlag(index)"
  135. v-if="reportTarget && source != 'share'">
  136. <van-icon name="share" />
  137. </div>
  138. </div>
  139. <div style="padding: 10px 0">
  140. <van-field
  141. v-model="item.remarkContent"
  142. rows="4"
  143. autosize
  144. readonly
  145. type="textarea" />
  146. </div>
  147. </div>
  148. </div>
  149. </div>
  150. <div class="contentContainer" v-if="reportTarget.reportRemarks != null">
  151. <p class="contentContainerTitle">点评</p>
  152. <div style="padding: 10px 0">
  153. <van-field
  154. v-model="managerRemarkContent"
  155. rows="4"
  156. autosize
  157. maxlength="800"
  158. show-word-limit
  159. type="textarea"
  160. :formatter="formatter" />
  161. </div>
  162. </div>
  163. </div>
  164. <br />
  165. <div class="contentborder" v-if="reportTarget.status == 2">
  166. <van-button type="info" size="small" plain class="Btn1" @click="submint"
  167. >重新填写</van-button
  168. >
  169. </div>
  170. <br />
  171. <div class="contentborder" v-if="reportTarget.reportRemarks != null">
  172. <van-button type="info" size="small" plain class="Btn1" @click="submintRemark"
  173. >提交点评</van-button
  174. >
  175. </div>
  176. <br />
  177. <br />
  178. </div>
  179. <share
  180. v-if="setShareFlag"
  181. :reportTarget="reportTarget"
  182. :reportId="$route.query.reportId"
  183. @setShareImg="setShareImg"
  184. @setDailyDetailsBox="setDailyDetailsBox"
  185. :urlList="urlList"
  186. :reportRemarksIndex="reportRemarksIndex"
  187. :reportContents="reportContents"
  188. :checkedPlan="checkedPlan"
  189. :isTarget="isTarget"
  190. :isReportCustom="isReportCustom"
  191. :isHistory="reportTarget.isHistory"></share>
  192. <!--分享图片列表 -->
  193. <el-dialog
  194. title="选择分享的内容"
  195. :visible.sync="shareImgFlag"
  196. width="90%"
  197. :append-to-body="true"
  198. :close-on-click-modal="false"
  199. @close="wuliaoTableClose"
  200. custom-class="shareImgFlag">
  201. <div>
  202. <!-- <p style="margin-bottom: 10px; margin-top: 0; display: flex">
  203. 今日总结&明日规划的文本内容<van-checkbox
  204. v-model="checkedPlan"
  205. style="margin-left: 10px"></van-checkbox>
  206. </p> -->
  207. <p
  208. style="
  209. margin-bottom: 10px;
  210. margin-top: 0;
  211. display: flex;
  212. align-items: center;
  213. cursor: pointer;
  214. "
  215. v-if="reportTarget.isHistory == '0'"
  216. @click="isTarget = !isTarget">
  217. <van-checkbox v-model="isTarget" style="margin-right: 10px" @click.stop></van-checkbox>
  218. <span>日报指标</span>
  219. </p>
  220. <p
  221. style="
  222. margin-bottom: 10px;
  223. margin-top: 0;
  224. display: flex;
  225. align-items: center;
  226. cursor: pointer;
  227. "
  228. v-if="reportTarget.isHistory == '0'"
  229. @click="isReportCustom = !isReportCustom">
  230. <van-checkbox
  231. v-model="isReportCustom"
  232. style="margin-right: 10px"
  233. @click.stop></van-checkbox>
  234. <span>日报填写内容</span>
  235. </p>
  236. <template v-if="reportTarget.photoSummary">
  237. <p style="margin-top: 0">请点击勾选想要分享的今日拜访照片</p>
  238. <div class="shareVisitImg">
  239. <template v-for="(itemImg, indexImg) in reportTarget.photoSummary">
  240. <div>
  241. <img :src="itemImg.fileUrl" alt="" @click="selectImg(itemImg)" />
  242. <van-icon
  243. @click.stop
  244. name="success"
  245. class="activaImg"
  246. color="#fff"
  247. size="15"
  248. style="
  249. position: absolute;
  250. right: 0;
  251. bottom: 0;
  252. /* margin: -15px 0 0 -15px; */
  253. pointer-events: none;
  254. background: #2b73cf;
  255. border: 2px solid #fff;
  256. "
  257. v-if="itemImg.checked" />
  258. </div>
  259. </template>
  260. </div>
  261. </template>
  262. </div>
  263. <span slot="footer" class="footer-btn">
  264. <van-button plain type="primary" @click="shareImgFlag = false">取 消</van-button>
  265. <van-button type="primary" @click="confirmShare">确 定</van-button>
  266. </span>
  267. </el-dialog>
  268. </div>
  269. </template>
  270. <script>
  271. import history from '@/assets/Icon/history.png';
  272. import {
  273. userTodayPlanNum,
  274. loginLog,
  275. getDetailById,
  276. getReportInfo,
  277. buryingPoint,
  278. getDictOption,
  279. insertRemark,
  280. } from '@/api/index';
  281. import { ImagePreview } from 'vant';
  282. import visitedRealTime from '@/views/componentsTarget/visitedRealTime';
  283. import createStoreBJ from '@/views/componentsTarget/createStoreBJ';
  284. import placeOrder from '@/views/componentsTarget/placeOrder';
  285. import ZYPlaceOrder from '@/views/componentsTarget/ZYPlaceOrder';
  286. import performanceSAP from '@/views/componentsTarget/performanceSAP';
  287. import ZYSAP from '@/views/componentsTarget/ZYSAP';
  288. import veryGoodPlaceOrder from '@/views/componentsTarget/veryGoodPlaceOrder';
  289. import share from '@/components/share';
  290. import reportCustom from './reportCustom';
  291. import target from './target.vue';
  292. import Atarget from '@/views/home/Atarget.vue';
  293. import Btarget from '@/views/home/Btarget.vue';
  294. export default {
  295. name: 'daily',
  296. components: {
  297. visitedRealTime,
  298. createStoreBJ,
  299. placeOrder,
  300. ZYPlaceOrder,
  301. performanceSAP,
  302. ZYSAP,
  303. veryGoodPlaceOrder,
  304. share,
  305. reportCustom,
  306. target,
  307. Atarget,
  308. Btarget,
  309. },
  310. data() {
  311. return {
  312. show: true,
  313. num: 0,
  314. todayGoal: {},
  315. progressWidth: 0,
  316. history: history,
  317. imgArr: [],
  318. activeNames: [
  319. '1',
  320. '2',
  321. '3',
  322. '4',
  323. '5',
  324. '6',
  325. '7',
  326. '8',
  327. '10',
  328. '16',
  329. '17',
  330. '20',
  331. '21',
  332. '22',
  333. '23',
  334. '11',
  335. '29',
  336. '33',
  337. '40',
  338. '41',
  339. '42',
  340. '43',
  341. ],
  342. value: '2',
  343. message: '',
  344. powerGrade: '',
  345. Content: '',
  346. Content2: '',
  347. reportTargetAll: {},
  348. reportContents: [],
  349. reportTarget: {},
  350. successContent: '',
  351. projectFollowNum: '',
  352. tucReportingSuccessNum: '',
  353. tucUndertakingNum: '',
  354. imgList: [],
  355. type: '-1',
  356. JZQuota: false,
  357. GZQuota: false,
  358. YFQuota: false, //应用服务
  359. titlejz: '',
  360. saptitle: '业绩目标SAP(千元)',
  361. ptitle: '',
  362. setShareFlag: false,
  363. source: '',
  364. reportRemarksIndex: -1,
  365. shareImgFlag: false,
  366. urlList: [],
  367. setDailyDetailsBoxFlag: true,
  368. sourceType: '',
  369. checkedPlan: true, //今日总结&明日规划
  370. visitIMG1Flag: false,
  371. shareVisible: true,
  372. shareReportConfig: null,
  373. managerRemarkContent: '',
  374. postName: '',
  375. homePageIndicatorList: null,
  376. isTarget: false, //日报指标
  377. isReportCustom: true, //日报填写内容
  378. };
  379. },
  380. created() {
  381. this.getDetailById();
  382. },
  383. watch: {
  384. $route(to, from) {
  385. this.powerGrade = localStorage.getItem('powerGrade');
  386. if (to.path == '/dailyDetails') {
  387. this.getDetailById();
  388. }
  389. // &&from.path=="/dailyApprovalList"
  390. // if(to.path=="/dailyDetails"&&from.path=="/myHistoricalDaily"){
  391. // this.getDetailById()
  392. // }
  393. },
  394. },
  395. activated() {
  396. this.source = this.$route.query.source || '';
  397. this.sourceType = this.$route.query.sourceType || '';
  398. this.powerGrade = localStorage.getItem('powerGrade');
  399. this.setDailyDetailsBoxFlag = true;
  400. this.shareImgFlag = false;
  401. this.num = 0;
  402. this.userTodayPlanNum();
  403. this.setShareFlag = false;
  404. },
  405. methods: {
  406. setVisitIMG1Flag(item) {
  407. // this.$set(item, 'visitIMG1Flag', !item.visitIMG1Flag);
  408. this.$forceUpdate();
  409. },
  410. setDailyDetailsBox(flag) {
  411. this.setDailyDetailsBoxFlag = flag;
  412. },
  413. setShareImg(flag) {
  414. this.setShareFlag = flag;
  415. },
  416. // 打开分享
  417. clickShareFlag(index = -1) {
  418. buryingPoint({
  419. systemModel: '日报审核',
  420. buryingPointType: 2,
  421. buryingPointValue: this.$route.query.reportId,
  422. buryingPointName: '日报详情分享',
  423. buryingPointPosition: '日报详情',
  424. });
  425. this.isReportCustom = true;
  426. this.urlList = [];
  427. this.reportRemarksIndex = index;
  428. // <!-- isHistory 是否为历史汇报:0-新汇报 1-历史汇报 -->
  429. if (this.reportTarget.isHistory == '0') {
  430. this.setPhotoSummary();
  431. this.shareImgFlag = true;
  432. } else {
  433. this.setPhotoSummary();
  434. // 没有图片直接打开分享
  435. if (this.reportTarget.photoSummary && this.reportTarget.photoSummary.length) {
  436. // 选择分享的图片
  437. this.setShareFlag = true;
  438. }
  439. }
  440. },
  441. setPhotoSummary() {
  442. if (this.reportTarget.photoSummary && this.reportTarget.photoSummary.length) {
  443. // 重置分享图片状态
  444. this.reportTarget.photoSummary.forEach((item) => {
  445. this.$set(item, 'checked', false);
  446. });
  447. }
  448. },
  449. // 确认分享
  450. confirmShare() {
  451. // 旧的分享没有图标不会进来
  452. // 是否有图片
  453. if (this.reportTarget.photoSummary) {
  454. this.reportTarget.photoSummary.forEach((item) => {
  455. if (item.checked) this.urlList.push(item.fileUrl);
  456. });
  457. if (this.reportTarget.isHistory == '0') {
  458. if (this.urlList.length == 0 && !this.isTarget && !this.isReportCustom) {
  459. this.$notify({
  460. type: 'warning',
  461. message: '请选择分享内容!',
  462. className: 'notifyIndex',
  463. });
  464. return;
  465. }
  466. } else {
  467. if (this.urlList.length == 0 && !this.checkedPlan) {
  468. this.$notify({
  469. type: 'warning',
  470. message: '请选择分享内容!',
  471. className: 'notifyIndex',
  472. });
  473. return;
  474. }
  475. }
  476. } else {
  477. if (this.reportTarget.isHistory == '0') {
  478. if (!this.isTarget && !this.isReportCustom) {
  479. this.$notify({
  480. type: 'warning',
  481. message: '请选择分享内容!',
  482. className: 'notifyIndex',
  483. });
  484. return;
  485. }
  486. }
  487. }
  488. buryingPoint({
  489. systemModel: '日报审核',
  490. buryingPointType: 2,
  491. buryingPointValue: `文本${this.checkedPlan ? '是' : '否'},图片${this.urlList.length}`,
  492. buryingPointName: '日报分享确认',
  493. buryingPointPosition: '日报详情',
  494. });
  495. this.shareImgFlag = false;
  496. this.setShareFlag = true;
  497. },
  498. pviewFn(index) {
  499. var imgList = [];
  500. var photos = this.reportTarget.photoSummary;
  501. for (let i = 0; i < photos.length; i++) {
  502. imgList.push(photos[i].fileUrl);
  503. }
  504. ImagePreview({ images: imgList, startPosition: index });
  505. },
  506. submint() {
  507. this.$router.push({
  508. path: '/daily',
  509. query: { reportId: this.$route.query.reportId, temporaryShow: 'N' },
  510. });
  511. },
  512. submintRemark() {
  513. let loading1 = this.$toast.loading({
  514. duration: 0,
  515. message: '数据提交中...',
  516. forbidClick: true,
  517. });
  518. if (this.managerRemarkContent.trim() == '') {
  519. this.$toast('点评内容未填写');
  520. return false;
  521. }
  522. if (this.managerRemarkContent.length > 800) {
  523. this.$toast('点评内容超过800字');
  524. return false;
  525. }
  526. var remak = {
  527. remarkContent: this.managerRemarkContent,
  528. reportId: this.$route.query.reportId,
  529. };
  530. insertRemark(remak).then((res) => {
  531. loading1.clear();
  532. if (res.code == 200) {
  533. this.$dialog
  534. .alert({
  535. title: '系统提示',
  536. message: '提交成功',
  537. })
  538. .then(() => {
  539. this.managerRemarkContent = '';
  540. this.getDetailById();
  541. });
  542. } else {
  543. this.$toast.fail(res.msg);
  544. }
  545. });
  546. },
  547. formatter(value) {
  548. return value.replace(
  549. /[\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,
  550. '',
  551. );
  552. },
  553. getDetailById() {
  554. let loading1 = this.$toast.loading({
  555. duration: 0,
  556. message: '加载中...',
  557. forbidClick: true,
  558. });
  559. // 获取店招异常原因字典
  560. getDictOption({}, 'share_report_config').then((res) => {
  561. this.shareReportConfig = res.data;
  562. });
  563. getDetailById({ reportId: this.$route.query.reportId }).then((res) => {
  564. loading1.clear();
  565. this.homePageIndicatorList = res.data.homePageIndicatorList;
  566. this.postName = res.data.postName;
  567. this.reportTargetAll = res.data.reportTargetAll;
  568. this.reportTarget = res.data;
  569. this.JZQuota = false;
  570. this.GZQuota = false;
  571. this.YFQuota = res.data.postType == 'YF' ? true : false;
  572. this.ptitle = res.data.pdeptName + '-' + res.data.ppostName + '-' + res.data.pnickName;
  573. if (res.data.postType == 'JZ') {
  574. this.JZQuota = true;
  575. } else if (res.data.postType == 'GZ') {
  576. this.GZQuota = true;
  577. this.saptitle = '公裝业绩SAP(千元)';
  578. } else {
  579. this.saptitle = '业绩目标SAP(千元)';
  580. }
  581. this.type = res.data.userType;
  582. if (res.data.status == 3) {
  583. this.successContent = res.data.successContent;
  584. } else {
  585. this.successContent = res.data.failContent;
  586. }
  587. this.Content = '';
  588. this.Content2 = '';
  589. this.reportContents = [];
  590. // <!-- isHistory 是否为历史汇报:0-新汇报 1-历史汇报 -->
  591. if (this.reportTarget.isHistory == '0') {
  592. if (this.reportTarget.customTaskList && this.reportTarget.customTaskList.length) {
  593. for (let x = 0; x < this.reportTarget.customTaskList.length; x++) {
  594. let sfaReportCustomCollections =
  595. this.reportTarget.customTaskList[x].sfaReportCustomCollections;
  596. if (sfaReportCustomCollections) {
  597. for (let y = 0; y < sfaReportCustomCollections.length; y++) {
  598. let custom = this.shareReportConfig.filter(
  599. (val) =>
  600. val.dictValue == sfaReportCustomCollections[y].reportCustomCollectionName,
  601. );
  602. if (custom.length) {
  603. custom[0].content = sfaReportCustomCollections[y].answerValue;
  604. this.reportContents = this.reportContents.concat(custom);
  605. }
  606. }
  607. }
  608. }
  609. }
  610. } else {
  611. if (res.data.reportContents.length > 0) {
  612. this.Content = res.data.reportContents[0].dayContent;
  613. if (res.data.reportContents.length > 1) {
  614. this.Content2 = res.data.reportContents[1].dayContent;
  615. } else {
  616. this.Content2 = '';
  617. }
  618. if (res.data.reportContents.length > 2) {
  619. this.projectFollowNum = res.data.reportContents[2].projectFollowNum;
  620. this.tucReportingSuccessNum = res.data.reportContents[3].tucReportingSuccessNum;
  621. }
  622. }
  623. this.reportContents = [
  624. {
  625. dictValue: '今日机会与挑战总结',
  626. content: this.Content,
  627. },
  628. {
  629. dictValue: '明日工作计划',
  630. content: this.Content2,
  631. },
  632. ];
  633. }
  634. var imgList = [];
  635. if (res.data.photoSummary != null) {
  636. for (var k = 0; k < res.data.photoSummary.length; k++) {
  637. imgList.push(res.data.photoSummary[k].fileUrl + '');
  638. }
  639. }
  640. console.log(res.data.photoSummary);
  641. this.imgList = imgList;
  642. if (this.sourceType == 'daily') {
  643. this.$nextTick(() => {
  644. this.clickShareFlag(-1);
  645. });
  646. }
  647. });
  648. },
  649. userTodayPlanNum() {
  650. userTodayPlanNum().then((res) => {
  651. if (res.code == 200) {
  652. this.todayGoal = res.data;
  653. this.progressWidth = (this.todayGoal.finishNum / this.todayGoal.planNum) * 100 + '%';
  654. localStorage.setItem('nickName', res.data.user.nickName);
  655. localStorage.setItem('storeType', res.data.user.type);
  656. } else {
  657. this.$toast.fail(res.msg);
  658. }
  659. });
  660. },
  661. onClickLeft() {
  662. this.$router.replace({
  663. path: 'myHistoricalDaily',
  664. });
  665. },
  666. wuliaoTableClose() {
  667. this.shareImgFlag = false;
  668. },
  669. // 选中的图片
  670. selectImg(item) {
  671. this.$set(item, 'checked', !item.checked);
  672. console.log(item);
  673. },
  674. },
  675. };
  676. </script>
  677. <style scoped lang="scss">
  678. .dailyDetails {
  679. position: relative;
  680. // background: #fff;
  681. width: 100%;
  682. height: 100%;
  683. .shareBtn {
  684. width: 30px;
  685. height: 30px;
  686. border-radius: 50%;
  687. background: #666;
  688. display: flex;
  689. align-items: center;
  690. justify-content: center;
  691. position: relative;
  692. .van-icon-share {
  693. color: #fff;
  694. }
  695. .vedioLinks {
  696. max-width: vw(190);
  697. position: absolute;
  698. bottom: 1px;
  699. background: #dae7f6;
  700. padding: 2px 7px;
  701. /* word-break: keep-all; */
  702. white-space: nowrap;
  703. /* text-overflow: ellipsis; */
  704. right: 0;
  705. border-radius: 5px;
  706. font-size: 8px;
  707. right: 40px;
  708. display: flex;
  709. flex-direction: column;
  710. justify-content: center;
  711. align-items: flex-start;
  712. z-index: 999999;
  713. span {
  714. line-height: 13px;
  715. }
  716. .linkSpan {
  717. text-decoration: underline;
  718. }
  719. .van-icon-play {
  720. position: absolute;
  721. top: 12px;
  722. /* transform: rotate(270deg); */
  723. right: -8px;
  724. color: #dae7f6;
  725. }
  726. }
  727. }
  728. }
  729. .container {
  730. margin: 10px;
  731. }
  732. .container .van-collapse-item {
  733. margin-bottom: 10px;
  734. border-radius: 6px;
  735. overflow: hidden;
  736. }
  737. .linep p {
  738. margin: 6px 0 0 0;
  739. font-size: 14px;
  740. color: #666;
  741. }
  742. .linep .texttitle {
  743. color: #0057ba;
  744. position: relative;
  745. padding-left: 10px;
  746. }
  747. .linep .texttitledaily {
  748. color: #000;
  749. position: relative;
  750. padding-left: 10px;
  751. }
  752. .linep .texttitle2 {
  753. padding-left: 0;
  754. }
  755. .linep .texttitledaily .opint {
  756. position: absolute;
  757. left: 0px;
  758. top: 6px;
  759. margin-right: 6px;
  760. display: inline-block;
  761. width: 6px;
  762. height: 6px;
  763. border-radius: 10px;
  764. background-color: #0057ba;
  765. }
  766. .leftTitle {
  767. background-color: #74a4d9;
  768. color: #fff;
  769. display: inline-block;
  770. padding: 0 4px;
  771. border-radius: 2px;
  772. }
  773. .rightTitle {
  774. background-color: #e7b4bb;
  775. color: #fff;
  776. display: inline-block;
  777. padding: 0 4px;
  778. border-radius: 2px;
  779. }
  780. .redisplay {
  781. display: flex;
  782. align-items: center;
  783. justify-content: space-between;
  784. .nameTitle {
  785. flex: 1;
  786. }
  787. }
  788. </style>
  789. <style lang="scss">
  790. .linep .van-cell__title {
  791. color: #1e5398;
  792. font-weight: 500;
  793. }
  794. .linep .contentContainer {
  795. background-color: white;
  796. border-radius: 8px;
  797. padding: 10px 16px;
  798. margin-bottom: 10px;
  799. }
  800. .linep .contentContainer .contentContainerTitle {
  801. color: #222;
  802. }
  803. .linep .contentContainer .contentContainerTitle span {
  804. font-size: 12px;
  805. color: #666;
  806. }
  807. .linep .contentContainer .van-field__control {
  808. background-color: #ebf4ff;
  809. padding: 10px;
  810. border-radius: 8px;
  811. }
  812. .linep .contentContainer .van-cell {
  813. padding: 0;
  814. }
  815. .colorbalck {
  816. color: #333;
  817. }
  818. .visitIMG1 {
  819. img {
  820. display: block;
  821. width: 100%;
  822. height: 75px;
  823. border-radius: 6px;
  824. }
  825. }
  826. .table-headermd {
  827. font-size: 12px;
  828. text-align: center;
  829. position: initial;
  830. width: 98% !important;
  831. margin: 0 auto;
  832. border-right: 0;
  833. border-radius: 10px;
  834. .el-table__cell {
  835. padding: 6px 0 !important;
  836. }
  837. }
  838. .table-headermd th.el-table__cell {
  839. background-color: #1989fa;
  840. color: #fff;
  841. }
  842. .el-dialog__wrapper {
  843. z-index: 9999 !important;
  844. display: flex;
  845. justify-content: center;
  846. align-items: center;
  847. background: rgba(0, 0, 0, 0.5) !important;
  848. .shareImgFlag {
  849. overflow: hidden;
  850. display: flex;
  851. flex-direction: column;
  852. max-height: 70%;
  853. margin-top: 0 !important;
  854. border-radius: 12px;
  855. box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  856. z-index: 10000;
  857. .el-dialog__header {
  858. height: 50px;
  859. display: flex;
  860. align-items: center;
  861. justify-content: center;
  862. border-bottom: 1px solid #ebeef5;
  863. padding: 0 20px;
  864. background-color: #fff;
  865. .el-dialog__title {
  866. font-size: 16px;
  867. font-weight: 500;
  868. color: #303133;
  869. }
  870. .el-dialog__headerbtn {
  871. position: absolute;
  872. right: 15px;
  873. top: 15px;
  874. }
  875. }
  876. .el-dialog__body {
  877. padding: 20px !important;
  878. overflow-y: auto;
  879. flex: 1;
  880. background-color: #fff;
  881. }
  882. .cell {
  883. font-size: 12px;
  884. }
  885. .footer-btn {
  886. display: flex;
  887. justify-content: center;
  888. gap: 30px;
  889. padding: 15px 20px;
  890. border-top: 1px solid #ebeef5;
  891. background-color: #fff;
  892. border-radius: 0 0 12px 12px;
  893. margin-top: 0 !important;
  894. button {
  895. width: 120px;
  896. height: 36px;
  897. border-radius: 18px;
  898. }
  899. .van-button--primary {
  900. background-color: #2b73cf;
  901. border-color: #2b73cf;
  902. }
  903. .van-button--primary.van-button--plain {
  904. color: #999;
  905. border-color: #dcdfe6;
  906. background-color: #f5f7fa;
  907. }
  908. }
  909. }
  910. }
  911. .shareImgFlag {
  912. .shareVisitImg {
  913. display: flex;
  914. flex-wrap: wrap;
  915. div {
  916. width: 22%;
  917. height: 80px;
  918. margin-right: 3%;
  919. margin-top: 10px;
  920. position: relative;
  921. border-radius: 8px;
  922. overflow: hidden;
  923. box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  924. img {
  925. width: 100%;
  926. height: 100%;
  927. object-fit: cover;
  928. }
  929. }
  930. }
  931. .el-dialog__title {
  932. height: 50px;
  933. line-height: 50px !important;
  934. }
  935. .el-dialog__footer {
  936. padding: 0;
  937. }
  938. }
  939. .notifyIndex {
  940. z-index: 999999 !important;
  941. }
  942. .van-nav-bar__right:active {
  943. opacity: 1 !important;
  944. }
  945. </style>