doubleWeeklyHistorical.vue 22 KB

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