dailyHistorical.vue 23 KB

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