index.vue 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624
  1. <template>
  2. <div>
  3. <van-nav-bar title="审核日报" left-text="返回" @click-left="back" fixed left-arrow/>
  4. <div class="login_form">
  5. <van-sticky offset-top="1.22667rem" style="margin-bottom:10px">
  6. <van-cell title="选择日期" :value="selectDateValue" @click="selectShow = true" class="dateSelectCell">
  7. <template #extra>
  8. <van-icon v-if="selectDateValue" name="close" style="line-height:0.64rem;position:relative;left:5px;" @click.stop="selectDateClear"/>
  9. </template>
  10. </van-cell>
  11. <van-calendar v-model="selectShow" :min-date="minDate" type="range" @confirm="selectConfirm" />
  12. <van-cell title="选择人员" :value="userNameValue" @click="selectUserClick" value-class="userNameValue">
  13. <template #extra>
  14. <van-icon v-if="userNameValue" name="close" style="line-height:0.64rem;position:relative;left:5px;" @click.stop="selectUserClear"/>
  15. </template>
  16. <template #default>
  17. <span v-if="user.userNameNeedTranslate == '1'">
  18. <span v-for="item,index in userNameValue.split(',')" :key="item">
  19. <ww-open-data type='userName' :openid='item'></ww-open-data>
  20. <span v-if="index != (userNameValue.split(',').length - 1)">,</span>
  21. </span>
  22. </span>
  23. <span v-else>{{userNameValue}}</span>
  24. </template>
  25. </van-cell>
  26. <van-popup v-model="selectUserShow" position="bottom">
  27. <van-search v-model="searchInputValue" placeholder="输入员工姓名搜索" @search="userListSearch" v-if="user.userNameNeedTranslate != '1'"></van-search>
  28. <div style="minHeight:300px;">
  29. <template v-if="user.userNameNeedTranslate == '1'">
  30. <van-checkbox class="userCheckbox" v-for="(item) in showUserList" :key="item.id" v-model="item.isChecked" >
  31. <ww-open-data type='userName' :openid='item.name'></ww-open-data>
  32. </van-checkbox>
  33. </template>
  34. <template v-else>
  35. <van-checkbox class="userCheckbox" v-for="(item) in showUserList" :key="item.id" v-model="item.isChecked" >
  36. <span>{{item.name}}</span>
  37. </van-checkbox>
  38. </template>
  39. <van-button style="width:100%;position: -webkit-sticky;position: sticky;bottom: 0;" @click="selectUserConfirm()">确定</van-button>
  40. </div>
  41. </van-popup>
  42. </van-sticky>
  43. <div class="formBatch">
  44. <van-checkbox v-model="isAllChecked" :disabled="report.length == 0" @click="allChecked" shape="square" style="padding-left:3vw"></van-checkbox>
  45. <div style="padding:1vh 2vw">
  46. <van-button @click="batchAgree(true)" :disabled="!isCanAgree || report.length == 0" type="info" size="small">批量通过</van-button>
  47. <van-button @click="batchAgree(false)" :disabled="!isCanAgree || report.length == 0" type="danger" size="small" style="margin-left:2vw">批量驳回</van-button>
  48. </div>
  49. </div>
  50. <van-skeleton v-for="(item,index) in report" :key="index" title avatar :row="3" :loading="false">
  51. <van-panel class="one_report">
  52. <template #header>
  53. <div class="van-cell van-panel__header">
  54. <div class="van-cell__title" style="display:flex;algin-items:center">
  55. <van-checkbox v-model="item.checked" @click="itemChecked" shape="square" style="margin-right:2vw"></van-checkbox>
  56. <span v-if="user.userNameNeedTranslate == '1'"><ww-open-data type='userName' :openid='item.name'></ww-open-data></span>
  57. <span v-else>{{item.name}}</span>
  58. </div>
  59. <div class="van-cell__value van-panel__header-value">{{item.state==0?(user.company.packageEngineering == 1 ? (item.data[0].departmentAuditState==-1?'待专业审核': (item.data[0].departmentAuditState==0?'待部门审核': '待项目经理审核')) : '待审核'):item.state==1?'已通过':'已驳回'}}</div>
  60. </div>
  61. </template>
  62. <div class="form_text">
  63. <span style="margin-left:5px;">工作日期: {{item.dateStr}}</span>
  64. <span style="float:right;">
  65. <i v-if="parseFloat(item.reportTime)>parseFloat(item.calculateTime)+0.5" style="color:red;margin-right:8px;" class="fa fa-exclamation-triangle"></i>
  66. 总填报:
  67. <span :style="parseFloat(item.reportTime)>parseFloat(item.calculateTime)+0.5?'color:red':''">{{item.reportTime}}h</span>
  68. </span>
  69. <!-- <span>系统智能统计:{{item.calculateTime}}h</span> -->
  70. </div>
  71. <div v-for="(item1,index1) in item.data" :key="index1" class="one_report_data">
  72. <div class="project_title">项目:{{item1.project}}
  73. [
  74. <span v-if="item1.isDeptAudit==0">
  75. <span v-if="item1.projectAuditState==0">
  76. 待项目审核人<span v-if="item1.projectAuditorName != null">(
  77. <span v-if="user.userNameNeedTranslate == '1'"><ww-open-data type='userName' :openid='item1.projectAuditorName'></ww-open-data></span>
  78. <span v-else>{{item1.projectAuditorName}}</span>
  79. )</span>审核
  80. </span>
  81. <span style="color:#32CD32;" v-else-if="item1.projectAuditState==1">
  82. 项目审核人<span v-if="item1.projectAuditorName != null">(
  83. <span v-if="user.userNameNeedTranslate == '1'"><ww-open-data type='userName' :openid='item1.projectAuditorName'></ww-open-data></span>
  84. <span v-else>{{item1.projectAuditorName}}</span>
  85. )</span>审核通过
  86. </span>
  87. </span>
  88. <span v-else-if="item1.isDeptAudit==1">
  89. <span v-if="user.userNameNeedTranslate == '1'"><ww-open-data type='userName' :openid='item1.auditDeptName'></ww-open-data></span>
  90. <span v-else>{{item1.auditDeptName}}</span>
  91. 审核
  92. </span>
  93. ]
  94. </div>
  95. <div class="project_title" v-if="item1.projectCode != null" >项目编号:{{item1.projectCode}}</div>
  96. <div class="project_title" v-if="item1.subProjectName != null" >子项目:{{item1.subProjectName}}</div>
  97. <div class="project_title" v-if="user.company.packageProject==1&&item1.groupName != null" >任务分组:{{item1.groupName}}</div>
  98. <div class="project_title" v-if="user.company.packageProject==1&&item1.stage != '-'" >投入阶段:{{item1.stage}}</div>
  99. <!--自定义维度 -->
  100. <div class="project_title" v-if="user.timeType.customDegreeActive == 1" >{{user.timeType.customDegreeName}}:{{item1.degreeName}}</div>
  101. <div class="project_title" v-if="user.timeType.customDataActive == 1" >{{user.timeType.customDataName}}:{{item1.customData}}</div>
  102. <div class="project_title" v-if="user.timeType.customTextActive == 1" >{{user.timeType.customTextName}}:{{item1.customText}}</div>
  103. <div class="project_title" v-if="user.company.packageEngineering == 1">
  104. 专业进度:
  105. <span style="margin-right:10px;" v-for="progressItem in item1.professionProgressList" :key="progressItem.id">{{progressItem.professionName}}({{progressItem.progress}}%)
  106. </span>
  107. </div>
  108. <div class="project_title" v-if="item1.taskId != null" >任务:{{item1.taskName}}</div>
  109. <!--根据类型选择使用的模板 -->
  110. <div v-if="item1.multiWorktime == 0">
  111. <div class="project_time">时长:
  112. <span v-if="item1.reportTimeType == 0" style="margin-right:10px;">{{fullDayTxt[item1.timeType]}}</span>
  113. <span v-if="item1.reportTimeType == 2" style="margin-right:10px;">{{item1.startTime+'-'+item1.endTime}}</span>{{item1.time.toFixed(1)}}h
  114. <div class="button" v-if="item1.isOvertime == 1">加班<span v-if="item1.overtimeHours">{{item1.overtimeHours.toFixed(1)}}h</span></div>
  115. </div>
  116. <div class="project_content">事项:<span v-html="item1.content"></span></div>
  117. </div>
  118. <div v-if="item1.multiWorktime == 1">
  119. <div>
  120. 项目时长:<span style="margin-right:10px;">{{item1.time.toFixed(1)}}h</span>
  121. <div class="button" v-if="item1.isOvertime == 1">加班<span v-if="item1.overtimeHours">{{item1.overtimeHours.toFixed(1)}}h</span></div>
  122. </div>
  123. <div style="position:relative;border:#ccc 0.5px solid;padding:3px;margin:5px 0px;" v-for="(timeItem, index) in item1.worktimeList" :key="index" >
  124. <div class="project_time">时长:
  125. <!-- <span v-if="timeItem.reportTimeType == 0" style="margin-right:10px;">{{fullDayTxt[item1.timeType]}}</span> -->
  126. <span style="margin-right:10px;">{{timeItem.startTime+'-'+timeItem.endTime}}</span>{{timeItem.time.toFixed(1)}}h
  127. </div>
  128. <div class="project_content">事项:<span v-html="timeItem.content"></span></div>
  129. </div>
  130. </div>
  131. <div style="padding:5px;text-align:center;" v-if="item1.pics != null && item1.pics.length > 0">
  132. <span v-for="(p, index) in item1.pics" :key="p" style="margin-right:10px;">
  133. <img :src="p" style="width:80px; height:80px;" @click="showLargeImg(item1.pics, index)"/>
  134. </span>
  135. </div>
  136. </div>
  137. <div class="form_btn" slot="footer">
  138. <van-button size="small" type="info" @click="approve(item.id, item)">通过</van-button>
  139. <van-button size="small" type="danger" @click="showDenyDialog(item.id,0,item.dateStr, item)">驳回</van-button>
  140. </div>
  141. <van-popup v-model="imgShow" position="bottom" closeable >
  142. <van-swipe class="my-swipe" indicator-color="white">
  143. <van-swipe-item v-for="(picItem, index) in tmpPics" :key="index">
  144. <img :src="picItem" style="width:100%;" />
  145. </van-swipe-item>
  146. </van-swipe>
  147. </van-popup>
  148. </van-panel>
  149. </van-skeleton>
  150. <van-popup v-model="denyReasonDialog" position="bottom" closeable >
  151. <van-cell>请输入原因</van-cell>
  152. <van-field class="form_input"
  153. v-model="denyForm.reason" name="reason" type="textarea" :placeholder="'请输入您决定'+(denyForm.i==0?'驳回':'撤销')+'的原因'"
  154. rows="3" autosize />
  155. <van-button style="width:100%;" type="info" @click="deny()">提交</van-button>
  156. </van-popup>
  157. <van-popup v-model="approveinDialog" v-if="approveinDialog" position="bottom" closeable >
  158. <van-cell>请输入通过评价</van-cell>
  159. <van-field class="form_input"
  160. v-model="approveinData.evaluate" name="reason" type="textarea" placeholder="请输入您决定通过的评价"
  161. rows="3" autosize />
  162. <van-button style="width:100%;" type="info" @click="batchApproveinfun()" v-if="isbatch">提交</van-button>
  163. <van-button style="width:100%;" type="info" @click="approveinfun()" v-else>提交</van-button>
  164. </van-popup>
  165. </div>
  166. </div>
  167. </template>
  168. <script>
  169. export default {
  170. data() {
  171. return {
  172. isAllChecked: false,
  173. fullDayTxt:['全天','上午','下午'],
  174. denyForm:{reason:null},
  175. denyReasonDialog:false,
  176. tmpPics:[],
  177. imgShow: false,
  178. user: JSON.parse(localStorage.userInfo),
  179. minDate: new Date(2010, 0, 1),
  180. maxDate: new Date(new Date().getFullYear(),new Date().getMonth(),new Date().getDate()),
  181. currentDate: new Date(),
  182. nowTime: this.format(new Date(new Date()),"yyyy-MM-dd"),
  183. showPicker: false,
  184. report: [],
  185. flg: false,
  186. isCanAgree: false,
  187. approveinData: null,
  188. approveinDialog: false,
  189. isbatch: false,
  190. selectDate: [],
  191. selectDateValue: '',
  192. selectShow: false,
  193. userList: [],
  194. showUserList: [],
  195. userIdList: [],
  196. userNameValue: '',
  197. searchInputValue: '',
  198. selectUserShow: false
  199. };
  200. },
  201. created() {
  202. },
  203. methods: {
  204. selectDateClear(){
  205. this.selectDate = []
  206. this.selectDateValue = ''
  207. this.getReport()
  208. },
  209. selectUserClear(){
  210. this.userNameValue = ''
  211. this.userIdList = []
  212. this.userList.forEach(item => {delete item.isChecked})
  213. this.showUserList = this.userList
  214. this.getReport()
  215. },
  216. selectUserClick(){
  217. this.selectUserShow = true
  218. this.searchInputValue = ''
  219. this.showUserList = this.userList
  220. },
  221. selectConfirm(date){
  222. const [start, end] = date;
  223. this.selectShow = false;
  224. this.selectDate = [this.getSelectDateStr(start),this.getSelectDateStr(end)]
  225. this.selectDateValue = `${this.selectDate[0]} 至 ${this.selectDate[1]}`;
  226. this.getReport()
  227. },
  228. getSelectDateStr(date){
  229. return `${date.getFullYear()}-${(date.getMonth() + 1) < 10 ? '0' + (date.getMonth() + 1) : (date.getMonth() + 1)}-${date.getDate() < 10 ? '0' + date.getDate() : date.getDate()}`;
  230. },
  231. userListSearch(val) {
  232. this.showUserList = [];
  233. this.userList.forEach(u=>{if (u.name.startsWith(val)) {
  234. this.showUserList.push(u);
  235. }})
  236. },
  237. selectUserConfirm(){
  238. this.userNameValue = '';
  239. var that = this;
  240. that.userIdList = '';
  241. this.userList.filter(u=>u.isChecked).forEach(u=>{
  242. that.userNameValue += (u.name+',');
  243. that.userIdList += u.id + ','
  244. });
  245. if (this.userNameValue.length > 0) {
  246. this.userNameValue = this.userNameValue.substring(0, this.userNameValue.length-1);
  247. this.userIdList = this.userIdList.substring(0, this.userIdList.length-1);
  248. }
  249. this.$forceUpdate()
  250. this.selectUserShow = false
  251. this.getReport()
  252. },
  253. getUsers() {
  254. this.$axios.post("/user/getEmployeeList", {
  255. departmentId: -1,
  256. pageIndex: 1,
  257. // pageSize: 99999
  258. pageSize: -1
  259. })
  260. .then(res => {
  261. if(res.code == "ok") {
  262. this.userList = res.data.records;
  263. this.showUserList = res.data.records
  264. } else {
  265. this.$toast.fail('获取失败');
  266. }
  267. }).catch(err=> {this.$toast.clear();});
  268. },
  269. // 批量操作
  270. allChecked(){
  271. if(this.isAllChecked){
  272. for(let i in this.report){
  273. this.report[i].checked = true
  274. }
  275. this.isCanAgree = true
  276. }else{
  277. for(let i in this.report){
  278. this.report[i].checked = false
  279. }
  280. this.isCanAgree = false
  281. }
  282. },
  283. itemChecked(){
  284. let isall = true
  285. let iscan = false
  286. for(let i in this.report){
  287. if(!this.report[i].checked){
  288. isall = false
  289. }else {
  290. iscan = true
  291. }
  292. }
  293. this.isAllChecked = isall
  294. this.isCanAgree = iscan
  295. },
  296. batchAgree(bol){
  297. let ids = ''
  298. for(let i in this.report){
  299. if(this.report[i].checked){
  300. for(let m in this.report[i].data){
  301. ids += this.report[i].data[m].id + ','
  302. }
  303. }
  304. }
  305. if(ids.length > 0){
  306. ids = ids.substring(0, ids.length-1);
  307. }
  308. if(bol){
  309. this.isbatch = true
  310. this.approveinData = {
  311. ids: ids
  312. }
  313. if(this.user.timeType.needEvaluate == 1){
  314. this.$set(this.approveinData,'evaluate','')
  315. this.approveinDialog = true
  316. }else{
  317. const toast = this.$toast.loading({
  318. forbidClick: true,
  319. duration: 0
  320. });
  321. this.batchApproveinfun()
  322. }
  323. }else{
  324. const toast = this.$toast.loading({
  325. forbidClick: true,
  326. duration: 0
  327. });
  328. let that = this
  329. this.$axios.post('/report/batchDenyReport', {
  330. ids: ids
  331. }).then(res => {
  332. if(res.code == "ok") {
  333. this.$toast.clear();
  334. setTimeout(function() {
  335. that.$toast.success('审核成功');
  336. }, 300);
  337. this.getReport();
  338. } else {
  339. this.$toast.clear();
  340. this.$toast.fail('批量操作失败:'+res.msg);
  341. }
  342. }).catch(err=> {this.$toast.clear();});
  343. }
  344. },
  345. batchApproveinfun(){
  346. let that = this
  347. this.$axios.post('/report/batchApproveReport', this.approveinData)
  348. .then(res => {
  349. if(res.code == "ok") {
  350. this.$toast.clear();
  351. setTimeout(function() {
  352. that.$toast.success('审核成功');
  353. }, 300);
  354. this.approveinDialog = false
  355. this.getReport();
  356. } else {
  357. this.$toast.clear();
  358. this.$toast.fail('批量操作失败:'+res.msg);
  359. }
  360. }).catch(err=> {this.$toast.clear();});
  361. },
  362. showLargeImg(item, index) {
  363. this.imgShow = true;
  364. this.tmpPics = item;
  365. },
  366. // 返回
  367. back() {
  368. history.back();
  369. },
  370. // 时间转换
  371. format(date, pattern) {
  372. pattern = pattern || "yyyy-MM-dd";
  373. var _this = this;
  374. return pattern.replace(/([yMdhsm])(\1*)/g, function ($0) {
  375. switch ($0.charAt(0)) {
  376. case 'y': return _this.padding(date.getFullYear(), $0.length);
  377. case 'M': return _this.padding(date.getMonth() + 1, $0.length);
  378. case 'd': return _this.padding(date.getDate(), $0.length);
  379. case 'w': return date.getDay() + 1;
  380. case 'h': return _this.padding(date.getHours(), $0.length);
  381. case 'm': return _this.padding(date.getMinutes(), $0.length);
  382. case 's': return _this.padding(date.getSeconds(), $0.length);
  383. }
  384. });
  385. },
  386. padding(s, len) {
  387. var len = len - (s + '').length;
  388. for (var i = 0; i < len; i++) { s = '0' + s; }
  389. return s;
  390. },
  391. // 改变时间
  392. changeTime(time) {
  393. this.nowTime = this.format(new Date(time),"yyyy-MM-dd");
  394. this.currentDate = time;
  395. this.showPicker = false;
  396. this.getReport();
  397. },
  398. // 获取日报
  399. getReport() {
  400. const toast = this.$toast.loading({
  401. forbidClick: true,
  402. duration: 0
  403. });
  404. let parameter = {
  405. state: 0
  406. }
  407. if(this.selectDate.length != 0){
  408. parameter.startDate = this.selectDate[0]
  409. parameter.endDate = this.selectDate[1]
  410. }
  411. if(this.userIdList){
  412. parameter.userId = this.userIdList
  413. }
  414. this.$axios.post("/report/listByState", parameter)
  415. .then(res => {
  416. if(res.code == "ok") {
  417. this.$toast.clear();
  418. this.report = res.data;
  419. // this.isAllChecked = this.report.length == 0 ? false : true
  420. if(this.report.length == 0){
  421. this.isAllChecked = false
  422. }
  423. for(let i in this.report){
  424. this.$set(this.report[i],'checked',false)
  425. }
  426. } else {
  427. this.$toast.clear();
  428. this.$toast.fail('获取失败:'+res.msg);
  429. }
  430. }).catch(err=> {this.$toast.clear();});
  431. },
  432. approve(id, item) {
  433. var ids = '';
  434. var data = item.data;
  435. data.forEach(element => {
  436. if (element.id != null && element.id != '') {
  437. ids +=(element.id+',');
  438. }
  439. });
  440. this.isbatch = false
  441. this.approveinData = {
  442. id: id,
  443. date: this.nowTime,
  444. reportIds: ids
  445. }
  446. if(this.user.timeType.needEvaluate == 1){
  447. this.$set(this.approveinData,'evaluate','')
  448. this.approveinDialog = true
  449. }else{
  450. const toast = this.$toast.loading({
  451. forbidClick: true,
  452. duration: 0
  453. });
  454. this.approveinfun()
  455. }
  456. },
  457. approveinfun(){
  458. let that = this;
  459. this.$axios.post("/report/approve", this.approveinData)
  460. .then(res => {
  461. if(res.code == "ok") {
  462. this.$toast.clear();
  463. setTimeout(function() {
  464. that.$toast.success('审核成功');
  465. }, 300);
  466. this.approveinDialog = false
  467. this.getReport();
  468. } else {
  469. this.$toast.clear();
  470. setTimeout(function() {
  471. that.$toast.fail('审核失败');
  472. }, 300);
  473. }
  474. }).catch(err=> {this.$toast.clear();});
  475. },
  476. showDenyDialog(id,i,date, item) {
  477. console.log(id, i, date, item)
  478. this.denyReasonDialog = true;
  479. var ids = '';
  480. var data = item.data;
  481. data.forEach(element => {
  482. if (element.id != null && element.id != '') {
  483. ids +=(element.id+',');
  484. }
  485. });
  486. this.denyForm = {id: id ,i:i, date: date, reportIds: ids, reason:null};
  487. console.log(this.denyForm)
  488. },
  489. deny() {
  490. const toast = this.$toast.loading({
  491. forbidClick: true,
  492. duration: 0
  493. });
  494. let that = this;
  495. this.$axios.post("/report/deny", this.denyForm)
  496. .then(res => {
  497. if(res.code == "ok") {
  498. this.$toast.clear();
  499. setTimeout(function() {
  500. that.$toast.success(that.denyForm.i==0?'驳回成功':'撤销成功');
  501. }, 300);
  502. this.getReport();
  503. this.denyReasonDialog = false;
  504. } else {
  505. this.$toast.clear();
  506. setTimeout(function() {
  507. that.$toast.fail(that.denyForm.i==0?'驳回失败':'撤销失败');
  508. }, 300);
  509. }
  510. }).catch(err=> {this.$toast.clear();});
  511. }
  512. },
  513. mounted() {
  514. this.getReport();
  515. this.getUsers()
  516. var list = this.user.functionList
  517. for(var i in list) {
  518. if(list[i].name == '审核全员日报') {
  519. this.flg = true
  520. }
  521. }
  522. }
  523. };
  524. </script>
  525. <style lang="less" scoped>
  526. .dateSelectCell{
  527. display: -webkit-box;
  528. }
  529. .userCheckbox {
  530. padding: 10px;;
  531. }
  532. .userNameValue{
  533. white-space: nowrap;
  534. text-overflow: ellipsis;
  535. }
  536. .formBatch{
  537. position: fixed;
  538. bottom: 0;
  539. width: 100%;
  540. z-index: 2;
  541. background-color: #fff;
  542. display: flex;
  543. justify-content: space-between;
  544. align-items: center;
  545. height: 1.2rem;
  546. border-top: 1px solid #ebebeb;
  547. }
  548. .login_form {
  549. margin-top: 46px;
  550. padding-bottom: 1.2rem;
  551. }
  552. .one_report {
  553. margin-bottom: 15px;
  554. font-size:14px;
  555. }
  556. .form_text {
  557. margin: 10px 0 10px;
  558. padding: 0 12px;
  559. }
  560. .form_btn {
  561. text-align: right;
  562. }
  563. .form_btn button {
  564. margin-left: 10px;
  565. }
  566. .one_report_data {
  567. margin-bottom: 10px;
  568. padding: 0 22px;
  569. div {
  570. line-height: 30px;
  571. }
  572. }
  573. </style>
  574. <style lang="less">
  575. .van-nav-bar .van-icon , .van-nav-bar__text {
  576. color: #20a0ff;
  577. }
  578. // 显示加班样式
  579. .one_span {
  580. width: 40px;
  581. height: 25px;
  582. line-height: 25px;
  583. text-align: center;
  584. box-sizing: border-box;
  585. display: inline-block;
  586. border: 1px solid #fde2e2;
  587. background: #fef0f0;
  588. color: #f56c6c;
  589. font-size: 12px;
  590. border-radius: 5px;
  591. // margin-left: 40px;
  592. float: right;
  593. }
  594. </style>