index.vue 30 KB

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