weeklyHistorical.vue 22 KB

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