VisitSummary.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729
  1. <template>
  2. <div class="bgcolor VisitSummary">
  3. <!-- 顶部条-->
  4. <van-nav-bar class="navBar" title="主管任务查询" left-arrow @click-left="onClickLeft" />
  5. <div class="container contentpd16">
  6. <van-row gutter="20">
  7. <van-col span="12">
  8. <van-cell :title="companyName" is-link arrow-direction="down" @click="regionClick" />
  9. </van-col>
  10. <van-col span="12">
  11. <van-cell :title="regionName" is-link @click="SalesRegionClick" arrow-direction="down" />
  12. </van-col>
  13. <van-col span="24">
  14. <van-cell
  15. :title="deptName"
  16. is-link
  17. @click="SalesDepartmentClick"
  18. arrow-direction="down" />
  19. </van-col>
  20. <!-- <van-col span="12">-->
  21. <!-- <van-cell :title="userName" is-link @click="StaffClick" arrow-direction="down"/>-->
  22. <!-- </van-col>-->
  23. <van-col span="12">
  24. <van-cell :title="formData.startTime" is-link @click="StartTimeClick">
  25. <template #right-icon>
  26. <van-icon :name="timeico" class="search-icon" />
  27. </template>
  28. </van-cell>
  29. </van-col>
  30. <van-col span="12">
  31. <van-cell :title="formData.endTime" is-link @click="EndTimeClick">
  32. <template #right-icon>
  33. <van-icon :name="timeico" class="search-icon" />
  34. </template>
  35. </van-cell>
  36. </van-col>
  37. <van-col span="24">
  38. <van-cell class="inputSearch">
  39. <van-field v-model="formData.summaryTaskName" placeholder="请输入任务名称" />
  40. </van-cell>
  41. </van-col>
  42. <van-col span="12">
  43. <van-cell
  44. :title="approvalStatus.text"
  45. is-link
  46. @click="approvalStatusShow = true"
  47. arrow-direction="down" />
  48. </van-col>
  49. <van-col span="12">
  50. <van-cell
  51. :title="storageStatus.text"
  52. is-link
  53. @click="storageStatusShow = true"
  54. arrow-direction="down" />
  55. </van-col>
  56. </van-row>
  57. <br />
  58. <van-button type="info" size="small" plain class="Btn100" @click="searchBtn">查找</van-button>
  59. </div>
  60. <!-- <div class="container">-->
  61. <!-- <div class="cellcontent brud" style="padding: 16px 16px;background-color: #fff;">-->
  62. <!-- <el-table class="elTreeTableLsiy" style="text-align: center;" :data="tableList" row-key="id" border lazy :tree-props="{ children: 'children', hasChildren: 'hasChildren' }">-->
  63. <!-- <el-table-column prop="month" label="月份" width="60" />-->
  64. <!-- <el-table-column prop="commitRate" label="提交率%" />-->
  65. <!-- <el-table-column prop="approvalRate" label="审批率%" />-->
  66. <!-- </el-table>-->
  67. <!-- </div>-->
  68. <!-- </div>-->
  69. <div class="container">
  70. <van-list
  71. v-model="loading"
  72. :finished="finished"
  73. @load="onLoad"
  74. finished-text="--已经到底了--">
  75. <div class="cellcontent brud" v-for="(item, index) in list" :key="index">
  76. <van-cell>
  77. <div class="cardContent" @click="dailyFn(item)">
  78. <div class="title">
  79. <p class="textLeft">{{ item.nickName }}的{{ item.summaryTaskName }}</p>
  80. <div class="approvalStatusBtn" v-if="item.approvalStatus">
  81. <span class="approvalStatusBtn1" v-if="item.approvalStatus == '2'">审批通过</span>
  82. <span class="approvalStatusBtn2" v-if="item.approvalStatus == '1'">
  83. 提交待审批
  84. </span>
  85. <span class="approvalStatusBtn3" v-if="item.approvalStatus == '3'">
  86. 拒绝待提交
  87. </span>
  88. </div>
  89. <div class="approvalStatusBtn" v-if="item.status == '0'">
  90. <span class="status0">暂存</span>
  91. </div>
  92. </div>
  93. <div class="info">
  94. 部门:{{ item.deptName || item.regionName || item.companyName }}
  95. </div>
  96. <div class="info">提交时间:{{ item.createTime }}</div>
  97. </div>
  98. </van-cell>
  99. </div>
  100. <van-empty v-if="list.length == 0" />
  101. </van-list>
  102. </div>
  103. <br />
  104. <br />
  105. <van-popup v-model="RegionShow" capture position="bottom">
  106. <van-picker
  107. show-toolbar
  108. :columns="companyList"
  109. value-key="deptName"
  110. @confirm="onregionConfirm"
  111. @cancel="RegionShow = false" />
  112. </van-popup>
  113. <van-popup v-model="SalesRegionShow" capture position="bottom">
  114. <van-picker
  115. show-toolbar
  116. :columns="regionList"
  117. value-key="deptName"
  118. @confirm="onSalesRegionConfirm"
  119. @cancel="SalesRegionShow = false" />
  120. </van-popup>
  121. <van-popup v-model="SalesDepartmentShow" capture position="bottom">
  122. <van-picker
  123. show-toolbar
  124. :columns="deptList"
  125. value-key="deptName"
  126. @confirm="onSalesDepartmentConfirm"
  127. @cancel="SalesDepartmentShow = false" />
  128. </van-popup>
  129. <van-popup v-model="StaffShow" capture position="bottom">
  130. <van-picker
  131. show-toolbar
  132. :columns="userList"
  133. @confirm="onStaffConfirm"
  134. value-key="nickName"
  135. @cancel="StaffShow = false" />
  136. </van-popup>
  137. <van-popup v-model="StartTimeShow" capture position="bottom">
  138. <van-datetime-picker
  139. v-model="strtcurrentDate"
  140. type="date"
  141. title="选择查找开始时间"
  142. :min-date="strtminDate"
  143. :max-date="strtmaxDate"
  144. @confirm="onStartTimeConfirm"
  145. @cancel="StartTimeShow = false" />
  146. </van-popup>
  147. <van-popup v-model="EndTimeShow" capture position="bottom">
  148. <van-datetime-picker
  149. v-model="endcurrentDate"
  150. type="date"
  151. title="选择查找结束时间"
  152. :min-date="endminDate"
  153. :max-date="endmaxDate"
  154. @confirm="onEndTimeConfirm"
  155. @cancel="EndTimeShow = false" />
  156. </van-popup>
  157. <!-- approvalStatus:审批状态:1-待审批 2-审批通过 3-拒绝待提交 -->
  158. <van-popup v-model="approvalStatusShow" capture position="bottom">
  159. <van-picker
  160. show-toolbar
  161. :columns="approvalStatusList"
  162. @confirm="onSalesApprovalStatus"
  163. @cancel="approvalStatusShow = false" />
  164. </van-popup>
  165. <!-- status:状态:1-待审批 2-审批通过 3-拒绝待提交 -->
  166. <van-popup v-model="storageStatusShow" capture position="bottom">
  167. <van-picker
  168. show-toolbar
  169. :columns="storageStatusList"
  170. @confirm="onStorageStatus"
  171. @cancel="storageStatusShow = false" />
  172. </van-popup>
  173. </div>
  174. </template>
  175. <script>
  176. import timeico from '@/assets/Icon/datatims.png';
  177. import { getDeptInfo, getSummaryMobileDeptInfo, queryHistorySummaryList } from '@/api/index';
  178. export default {
  179. name: 'MyHistoricalWeekly',
  180. data() {
  181. return {
  182. timeico: timeico,
  183. RegionShow: false,
  184. SalesRegionShow: false,
  185. SalesDepartmentShow: false,
  186. StaffShow: false,
  187. StartTimeShow: false,
  188. EndTimeShow: false,
  189. PhotoTypeList: [{ text: '009', value: '09' }],
  190. strtminDate: new Date(2022, 0, 1),
  191. endminDate: new Date(2022, 0, 1),
  192. strtmaxDate: new Date(),
  193. endmaxDate: new Date(),
  194. strtcurrentDate: new Date(),
  195. endcurrentDate: new Date(),
  196. companyName: '全部公司',
  197. deptName: '全部销售部',
  198. regionName: '全部大区',
  199. userName: '全部业务员',
  200. companyCode: '',
  201. deptCode: '',
  202. regionCode: '',
  203. userCode: '',
  204. companyList: [],
  205. deptList: [],
  206. regionList: [],
  207. userList: [],
  208. deptForm: { type: '', parentId: '' },
  209. list: [],
  210. loading: false,
  211. finished: true,
  212. formData: {
  213. type: '1', // 汇报类型或入口 1-下属业务员日报 2-下属销售部主管周报 3-下属大区主管半月报
  214. companyId: '', // 公司id,必传 Long类型
  215. regionId: '', // 大区id,必传 Long类型
  216. deptId: '', // 部门id,如果为周报或日报为必传 Long类型
  217. userId: '', // 业务员id,如果为日报为必传 Long类型
  218. startTime: '', // 开始时间,必传 格式:yyyy-MM-dd String类型
  219. endTime: '', // 结束时间,必传 格式:yyyy-MM-dd String类型
  220. pageNum: 1, // 当前页码 int类型
  221. pageSize: 10, // 当前每页条数 int类型
  222. },
  223. tableList: [],
  224. approvalStatusShow: false,
  225. approvalStatusList: [
  226. //1-待审批 2-审批通过 3-拒绝待提交
  227. { text: '审批状态(全部)', value: '' },
  228. { text: '待审批', value: '1' },
  229. { text: '审批通过', value: '2' },
  230. { text: '拒绝待提交', value: '3' },
  231. ],
  232. approvalStatus: { text: '审批状态(全部)', value: '' },
  233. storageStatus: { text: '提交状态(全部)', value: '' },
  234. storageStatusList: [
  235. // 0-暂存,1-已提交
  236. { text: '提交状态(全部)', value: '' },
  237. { text: '已提交', value: '1' },
  238. { text: '暂存', value: '0' },
  239. ],
  240. storageStatusShow: false,
  241. };
  242. },
  243. activated() {
  244. this.userList = [];
  245. this.formData.startTime = this.getThreeDaysAgo();
  246. // this.formData.startTime = this.GetPreMonthDay(this.parseTime(new Date(), '{y}-{m}-{d}'),2)
  247. // this.strtcurrentDate=new Date(this.GetPreMonthDay(this.parseTime(new Date(), '{y}-{m}-{d}'),2))
  248. this.strtcurrentDate = new Date(this.getThreeDaysAgo());
  249. this.formData.endTime = this.parseTime(new Date(), '{y}-{m}-{d}') + '';
  250. this.endminDate = new Date(this.GetPreMonthDay(this.parseTime(new Date(), '{y}-{m}-{d}'), 2));
  251. this.powerGrade = localStorage.getItem('powerGrade');
  252. // userDeptLevel用户部门等级字段,0-总部,1-公司,2-大区,3-销售部,4-业务员
  253. this.userDeptLevel = localStorage.getItem('userDeptLevel');
  254. this.getDeptInfo('dept');
  255. if (this.userDeptLevel == 0) {
  256. setTimeout(() => {
  257. if (this.$route.query.userCode == undefined) {
  258. this.companyName = this.companyList[0].deptName;
  259. this.companyCode = this.companyList[0].deptId;
  260. }
  261. this.getDeptInfo('dept', 1);
  262. }, 1000);
  263. }
  264. if (this.userDeptLevel == 1) {
  265. setTimeout(() => {
  266. this.getDeptInfo('dept', 1);
  267. }, 1000);
  268. }
  269. if (this.userDeptLevel == 2) {
  270. setTimeout(() => {
  271. this.getDeptInfo('dept', 2);
  272. }, 1000);
  273. }
  274. if (this.userDeptLevel == 3 || this.userDeptLevel == 4) {
  275. setTimeout(() => {
  276. this.getDeptInfo('user');
  277. }, 2000);
  278. }
  279. if (this.$route.query.userCode != undefined) {
  280. this.companyName = this.$route.query.companyName;
  281. this.companyCode = this.$route.query.companyCode;
  282. this.regionName = this.$route.query.regionName;
  283. this.regionCode = this.$route.query.regionCode;
  284. this.userCode = this.$route.query.userCode;
  285. this.userName = this.$route.query.userName;
  286. this.deptName = this.$route.query.deptName;
  287. this.deptCode = this.$route.query.deptCode;
  288. this.formData.startTime = this.$route.query.startTime;
  289. this.formData.endTime = this.$route.query.endTime;
  290. this.searchBtn();
  291. this.getDeptInfo('dept', 2);
  292. this.getDeptInfo('user');
  293. } else {
  294. setTimeout(() => {
  295. this.searchBtn();
  296. }, 1000);
  297. }
  298. },
  299. watch: {
  300. $route(to, from) {
  301. if (from.path == '/My/index') {
  302. this.approvalStatus = this.approvalStatusList[0];
  303. this.storageStatus = this.storageStatusList[0];
  304. }
  305. },
  306. },
  307. methods: {
  308. dateFn(val) {
  309. return val.slice(0, 4) + '-' + val.slice(4, 6) + '-' + val.slice(6, 8);
  310. },
  311. onLoad() {
  312. this.querySubReport();
  313. },
  314. searchBtn() {
  315. // if(this.userCode==""){
  316. // this.$toast("业务员未选择")
  317. // }else{
  318. this.formData.pageNum = 1;
  319. this.list = [];
  320. this.querySubReport();
  321. // }
  322. },
  323. querySubReport() {
  324. let loading1 = this.$toast.loading({
  325. duration: 0,
  326. message: '加载中...',
  327. forbidClick: true,
  328. });
  329. if (this.refreshing) {
  330. this.list = [];
  331. this.refreshing = false;
  332. }
  333. this.formData.companyId = this.companyCode; // 公司id,必传 Long类型
  334. this.formData.regionId = this.regionCode; // 大区id,必传 Long类型
  335. this.formData.deptId = this.deptCode; // 部门id,如果为周报或日报为必传 Long类型
  336. this.formData.userId = this.userCode; // 业务员id,如果为日报为必传 Long类型
  337. this.formData.approvalStatus = this.approvalStatus.value;
  338. this.formData.status = this.storageStatus.value;
  339. queryHistorySummaryList(this.formData).then((res) => {
  340. loading1.clear();
  341. if (res.code == 200) {
  342. this.loading = false;
  343. this.list = this.list.concat(res.data);
  344. if (this.list.length >= res.total) {
  345. this.finished = true;
  346. } else {
  347. this.finished = false;
  348. }
  349. this.formData.pageNum = this.formData.pageNum + 1;
  350. // this.tableList=res.data.rates
  351. }
  352. });
  353. },
  354. getThreeDaysAgo() {
  355. let myDate = new Date();
  356. let lw = new Date(myDate - 1000 * 60 * 60 * 24 * 7); //最后一个数字30可改,30天的意思
  357. let lastY = lw.getFullYear();
  358. let lastM = lw.getMonth() + 1;
  359. let lastD = lw.getDate();
  360. let startData =
  361. lastY + '-' + (lastM < 10 ? '0' + lastM : lastM) + '-' + (lastD < 10 ? '0' + lastD : lastD); //三十天之前日期
  362. return startData;
  363. },
  364. GetPreMonthDay(date, monthNum, type) {
  365. var dateArr = date.split('-');
  366. var year = dateArr[0]; //获取当前日期的年份
  367. var month = dateArr[1]; //获取当前日期的月份
  368. var day = dateArr[2]; //获取当前日期的日
  369. var days = new Date(year, month, 0);
  370. days = days.getDate(); //获取当前日期中月的天数
  371. var year2 = year;
  372. var month2 = parseInt(month) - monthNum;
  373. if (month2 <= 0) {
  374. var absM = Math.abs(month2);
  375. year2 = parseInt(year2) - Math.ceil(absM / 12 == 0 ? 1 : parseInt(absM) / 12);
  376. month2 = 12 - (absM % 12);
  377. }
  378. var day2 = day;
  379. var days2 = new Date(year2, month2, 0);
  380. days2 = days2.getDate();
  381. if (day2 > days2) {
  382. day2 = days2;
  383. }
  384. if (month2 < 10) {
  385. month2 = '0' + month2;
  386. }
  387. var t2 = '';
  388. if (monthNum > 0) {
  389. t2 = year2 + '-' + month2 + '-01';
  390. } else {
  391. if (type == 'end') {
  392. var Months = new Date().getMonth() + 1;
  393. var days111 = new Date().getDate();
  394. if (Months < 10) {
  395. Months = '0' + Months;
  396. }
  397. if (days111 < 10) {
  398. days111 = '0' + days111;
  399. }
  400. if (new Date().getFullYear() == year) {
  401. if (parseInt(month2) >= new Date().getMonth() + 1) {
  402. t2 = year2 + '-' + Months + '-' + days111;
  403. } else {
  404. var daysd = this.getMonthDays(year2, month2);
  405. t2 = year2 + '-' + month2 + '-' + daysd;
  406. }
  407. } else {
  408. var daysd = this.getMonthDays(year2, month2);
  409. t2 = year2 + '-' + month2 + '-' + daysd;
  410. }
  411. } else {
  412. t2 = year2 + '-' + month2 + '-' + day2;
  413. }
  414. }
  415. return t2;
  416. },
  417. getMonthDays(year, month) {
  418. var stratDate = new Date(year, month - 1, 1),
  419. endData = new Date(year, month, 1);
  420. var days = (endData - stratDate) / (1000 * 60 * 60 * 24);
  421. return days;
  422. },
  423. getDeptInfo(type, grade) {
  424. this.deptForm.type = type;
  425. if (type == 'dept') {
  426. if (grade == '1') {
  427. this.deptForm.parentId = this.companyCode;
  428. } else if (grade == '2') {
  429. this.deptForm.parentId = this.regionCode;
  430. } else {
  431. this.deptForm.type = '';
  432. this.deptForm.parentId = '';
  433. }
  434. } else if (type == 'user') {
  435. this.deptForm.parentId = this.deptCode;
  436. }
  437. getSummaryMobileDeptInfo(this.deptForm).then((res) => {
  438. if (type == 'dept') {
  439. if (grade == '1') {
  440. if (res.data.region != null) {
  441. this.regionList = [{ deptName: '全部大区', deptId: '' }].concat(res.data.region);
  442. }
  443. } else if (grade == '2') {
  444. if (res.data.dept != null) {
  445. this.deptList = [{ deptName: '全部销售部', deptId: '' }].concat(res.data.dept);
  446. }
  447. } else {
  448. if (this.userDeptLevel == 0) {
  449. this.companyList = [{ deptName: '全部公司', deptId: '' }].concat(res.data.company);
  450. } else {
  451. this.companyList = res.data.company;
  452. }
  453. if (this.$route.query.userCode == undefined) {
  454. this.companyName = res.data.company[0].deptName;
  455. this.companyCode = res.data.company[0].deptId;
  456. }
  457. if (res.data.dept != null) {
  458. this.deptName = res.data.dept[0].deptName;
  459. this.deptCode = res.data.dept[0].deptId;
  460. this.deptList = res.data.dept;
  461. }
  462. if (res.data.region != null) {
  463. this.regionName = res.data.region[0].deptName;
  464. this.regionCode = res.data.region[0].deptId;
  465. this.regionList = res.data.region;
  466. }
  467. if (res.data.user != null) {
  468. this.userList = res.data.user;
  469. this.userCode = '';
  470. }
  471. }
  472. } else if (type == 'user') {
  473. if (res.data.user != null) {
  474. this.userList = [{ nickName: '全部业务员', userId: '' }].concat(res.data.user);
  475. }
  476. }
  477. });
  478. },
  479. dailyFn(row) {
  480. // 暂存
  481. if (row.status == '0') {
  482. this.$router.push({
  483. path: '/VisitSummaryStorageDetail',
  484. query: { userSummaryId: row.userSummaryId, source: '/VisitSummary' },
  485. });
  486. } else {
  487. this.$router.push({
  488. path: '/VisitSummaryDetail',
  489. query: { userSummaryId: row.userSummaryId, source: '/VisitSummary' },
  490. });
  491. }
  492. },
  493. onClickLeft() {
  494. this.$router.replace({
  495. path: '/My/index',
  496. });
  497. },
  498. regionClick() {
  499. // if(this.powerGrade>4){
  500. this.RegionShow = true;
  501. // }
  502. },
  503. SalesRegionClick(val) {
  504. // if(this.powerGrade>3){
  505. this.SalesRegionShow = true;
  506. // }
  507. },
  508. SalesDepartmentClick() {
  509. // if(this.powerGrade>2){
  510. this.SalesDepartmentShow = true;
  511. // }
  512. },
  513. StaffClick() {
  514. this.StaffShow = true;
  515. },
  516. StartTimeClick() {
  517. this.StartTimeShow = true;
  518. },
  519. EndTimeClick() {
  520. this.EndTimeShow = true;
  521. },
  522. onregionConfirm(val) {
  523. this.RegionShow = false;
  524. this.companyName = val.deptName;
  525. this.companyCode = val.deptId;
  526. this.regionName = '全部大区';
  527. this.regionCode = '';
  528. this.deptName = '全部销售部';
  529. this.deptCode = '';
  530. this.userName = '全部业务员';
  531. this.userCode = '';
  532. this.getDeptInfo('dept', 1);
  533. },
  534. onSalesRegionConfirm(val) {
  535. this.SalesRegionShow = false;
  536. this.regionName = val.deptName;
  537. this.regionCode = val.deptId;
  538. if (val.deptId != '') {
  539. this.getDeptInfo('dept', 2);
  540. }
  541. this.deptName = '全部销售部';
  542. this.deptCode = '';
  543. this.userName = '全部业务员';
  544. this.userCode = '';
  545. this.userList = [];
  546. },
  547. onSalesDepartmentConfirm(val) {
  548. this.SalesDepartmentShow = false;
  549. this.deptName = val.deptName;
  550. this.deptCode = val.deptId;
  551. if (val.deptId != '') {
  552. this.getDeptInfo('user');
  553. }
  554. this.userName = '全部业务员';
  555. this.userCode = '';
  556. },
  557. onStaffConfirm(val) {
  558. this.StaffShow = false;
  559. this.userName = val.nickName;
  560. this.userCode = val.userId;
  561. },
  562. onStartTimeConfirm(val) {
  563. this.formData.startTime = this.parseTime(new Date(val), '{y}-{m}-{d}') + '';
  564. this.StartTimeShow = false;
  565. this.endminDate = new Date(val);
  566. this.endmaxDate = new Date(this.GetPreMonthDay(this.formData.startTime, -2, 'end'));
  567. if (
  568. new Date(this.formData.startTime).getTime() > new Date(this.formData.endTime).getTime() ||
  569. new Date(this.endmaxDate).getTime() < new Date(this.formData.endTime).getTime()
  570. ) {
  571. this.formData.endTime = this.parseTime(new Date(val), '{y}-{m}-{d}') + '';
  572. this.endcurrentDate = this.GetPreMonthDay(this.formData.startTime, -2);
  573. }
  574. },
  575. onEndTimeConfirm(val) {
  576. this.formData.endTime = this.parseTime(new Date(val), '{y}-{m}-{d}');
  577. this.strtmaxDate = new Date(val);
  578. if (new Date(this.formData.startTime).getTime() > new Date(this.formData.endTime).getTime()) {
  579. this.formData.startTime = this.formData.endTime;
  580. }
  581. this.EndTimeShow = false;
  582. },
  583. onSalesApprovalStatus(val) {
  584. this.approvalStatus = val;
  585. this.approvalStatusShow = false;
  586. },
  587. onStorageStatus(val) {
  588. this.storageStatus = val;
  589. this.storageStatusShow = false;
  590. },
  591. },
  592. };
  593. </script>
  594. <style lang="scss">
  595. .VisitSummary {
  596. .cardContent {
  597. padding: 0;
  598. box-sizing: border-box;
  599. }
  600. .cardContent .title {
  601. font-size: 15px;
  602. font-weight: bold;
  603. color: #333;
  604. line-height: 22px;
  605. display: flex;
  606. justify-content: space-between;
  607. }
  608. .cardContent .title p {
  609. padding: 0;
  610. margin: 0;
  611. }
  612. .cardContent .title .textLeft {
  613. display: inline-block;
  614. padding-bottom: 10px;
  615. }
  616. .cardContent .title .textRight {
  617. float: right;
  618. color: #0057ba;
  619. }
  620. .cardContent .info {
  621. font-size: 14px;
  622. color: #666;
  623. line-height: 26px;
  624. }
  625. .search-icon {
  626. font-size: 16px;
  627. line-height: inherit;
  628. margin-top: 4px;
  629. }
  630. .brud {
  631. margin: 16px;
  632. border-radius: 8px;
  633. overflow: hidden;
  634. }
  635. .contentpd16 {
  636. padding: 16px;
  637. background-color: white;
  638. }
  639. .Btn100 {
  640. margin: 0 auto 10px;
  641. display: block;
  642. width: 100%;
  643. border-radius: 5px;
  644. color: #fff !important;
  645. background-color: #0057ba;
  646. border: 1px solid #0057ba;
  647. height: 36px;
  648. }
  649. .contentpd16 .van-cell {
  650. background-color: #ebf4ff;
  651. margin: 8px 0;
  652. border-radius: 5px;
  653. padding: 4px 16px;
  654. }
  655. .elTreeTableLsiy th.el-table__cell > .cell {
  656. text-align: center;
  657. }
  658. .elTreeTableLsiy td.el-table__cell div {
  659. text-align: right;
  660. }
  661. .elTreeTableLsiy .el-table__cell {
  662. padding: 2px 0;
  663. }
  664. .elTreeTableLsiy .el-table__cell:first-child .cell {
  665. text-align: center;
  666. }
  667. .contentpd16 .inputSearch .van-cell {
  668. padding: 0;
  669. margin: 4px 0;
  670. }
  671. }
  672. </style>
  673. <style lang="scss">
  674. .VisitSummary {
  675. .brud {
  676. position: relative;
  677. }
  678. .approvalStatusBtn {
  679. span {
  680. color: #fff;
  681. border-radius: 5px;
  682. display: inline-block;
  683. padding: 3px 5px;
  684. font-size: 14px;
  685. width: 80px;
  686. text-align: center;
  687. }
  688. .approvalStatusBtn1 {
  689. background-color: #12ea7a;
  690. }
  691. .approvalStatusBtn2 {
  692. background-color: rgb(112, 33, 239);
  693. }
  694. .approvalStatusBtn3 {
  695. background-color: red;
  696. }
  697. .status1 {
  698. background-color: #07c160;
  699. }
  700. .status0 {
  701. background-color: #ff976a;
  702. }
  703. }
  704. .van-cell__title {
  705. overflow: hidden;
  706. text-overflow: ellipsis;
  707. white-space: nowrap;
  708. span {
  709. overflow: hidden;
  710. text-overflow: ellipsis;
  711. white-space: nowrap;
  712. }
  713. }
  714. }
  715. </style>