VisitSummary.vue 22 KB

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