supp_clock_details.vue 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229
  1. <template>
  2. <view class="warp">
  3. <view class="topInfo">
  4. <view class="topInfo-item">
  5. <view class="flex info">
  6. <view class="logo">
  7. <image src="../../../static/img/reject.png" mode=""
  8. v-if="dataList.status == '补卡失败'" style="height: 40rpx;">
  9. </image><!-- 驳回 -->
  10. <image src="../../../static/img/tongguo.png" mode=""
  11. v-else-if="dataList.status == '补卡成功'"
  12. style="height: 40rpx;"></image><!-- 通过 -->
  13. <image src="../../../static/img/daishenhe.png" mode=""
  14. v-else-if="dataList.approveStatus == '待人事审核'"
  15. style="height: 40rpx;"></image><!-- 待审核 -->
  16. </view>
  17. <view class="infoText" v-if="dataList.approveStatus">{{dataList.approveStatus}}</view>
  18. <view class="infoText" v-else>{{dataList.status}}</view>
  19. </view>
  20. <view class="infoData" v-if="dataList.updateDate">{{dataList.updateDate}}</view>
  21. </view>
  22. </view>
  23. <view class="content1">
  24. <!-- :model="OutList" -->
  25. <u-form ref="uForm">
  26. <u-form-item label="补卡原因" prop="supplementClockType" label-width="140" class="uForm_item">
  27. <u-input input-align="right" disabled v-if="dataList.supplementClockType=='1'" value="上班">上班</u-input>
  28. <u-input input-align="right" disabled v-if="dataList.supplementClockType=='3'" value="下班">下班</u-input>
  29. </u-form-item>
  30. <view class="uForm_item">
  31. <u-form-item label="申请理由" prop="reasonForApplication" label-width="160" label-position="top">
  32. <u-input v-model="dataList.reasonForApplication" input-align="left" placeholder="请输入业务描述"
  33. type="textarea" class="textarea" maxlength="150" />
  34. </u-form-item>
  35. </view>
  36. </u-form>
  37. </view>
  38. <view style='padding:10px;' class='flex bottom-btn'>
  39. <u-button @click='fanHui' type="success" class="btn1" hover-class='none'>返回</u-button>
  40. </view>
  41. </view>
  42. </template>
  43. <script>
  44. import {
  45. mapState
  46. } from 'vuex';
  47. export default {
  48. data() {
  49. return {
  50. id: "",
  51. show: false,
  52. show1: false,
  53. border: false,
  54. rejectInfo: "", //驳回原因
  55. reasonForApplication:'',
  56. supplementClockType:'',
  57. approveStatus:'',
  58. status:'',
  59. updateDate:'',
  60. dataList:{},
  61. }
  62. },
  63. // onReady() {
  64. // this.$refs.uForm.setRules(this.rules);
  65. // },
  66. onLoad(options) {
  67. this.id = options.id
  68. this.getList()
  69. },
  70. computed: {
  71. ...mapState(['hasLogin', 'userInfo']),
  72. },
  73. methods: {
  74. getList() {
  75. this.$api.doRequest('get', '/clockInfo/getSuppClock', {
  76. id: this.id
  77. }).then(res => {
  78. if (res.data.code == 200) {
  79. this.dataList = res.data.data
  80. }
  81. })
  82. },
  83. fanHui() {
  84. uni.navigateBack()
  85. }
  86. }
  87. }
  88. </script>
  89. <style scoped lang="scss">
  90. .content1 {
  91. margin: 10rpx;
  92. padding-bottom: 120rpx;
  93. .title {
  94. height: 70rpx;
  95. line-height: 60rpx;
  96. font-size: 32rpx;
  97. font-weight: 600;
  98. color: #333333;
  99. border-bottom: 2rpx solid #EEEEEE;
  100. }
  101. }
  102. .uForm {
  103. padding: 0 40rpx;
  104. }
  105. .u-form-item {
  106. padding: 0;
  107. }
  108. .bottom-btn {
  109. width: 100%;
  110. position: fixed;
  111. bottom: 0;
  112. display: flex;
  113. z-index: 2;
  114. left: 0;
  115. background-color: #f8f8f8;
  116. flex-direction: column;
  117. .btn1,
  118. .btn2 {
  119. width: 100%;
  120. margin-bottom: 26rpx;
  121. border-radius: 90rpx;
  122. }
  123. .btn1 {
  124. background: white;
  125. color: #00C265;
  126. }
  127. }
  128. .submit {
  129. width: 50%;
  130. background: #22C572;
  131. border-radius: 10rpx;
  132. }
  133. .part2 {
  134. margin-top: 20rpx;
  135. }
  136. .textarea {
  137. border: 1px solid #ccc;
  138. border-radius: 10rpx;
  139. background-color: #F9F9FA;
  140. height: 100px;
  141. }
  142. .row {
  143. display: flex;
  144. justify-content: space-between;
  145. // border-bottom: 1px solid #EEEEEE;
  146. padding: 21rpx 0;
  147. .right,
  148. input {
  149. font-size: 28rpx;
  150. color: #333333;
  151. }
  152. }
  153. //弹出框
  154. // .popup {
  155. // padding: 30rpx;
  156. // border-radius: 20rpx;
  157. // }
  158. .rejectInfoCss {
  159. border: 1px solid #ccc;
  160. border-radius: 10rpx;
  161. background-color: #F9F9FA;
  162. height: 100px;
  163. margin: 30rpx;
  164. }
  165. .uForm_item {
  166. padding: 20rpx;
  167. background-color: #FFFFFF;
  168. margin: 20rpx;
  169. border-radius: 20rpx;
  170. }
  171. .rejectText {
  172. text-align: center;
  173. }
  174. .topInfo {
  175. height: 210rpx;
  176. background: linear-gradient(270deg, #22C572 0%, #34DE8A 100%);
  177. padding: 30rpx;
  178. .topInfo-item {
  179. height: 150rpx;
  180. background-color: #FFFFFF;
  181. border-radius: 20rpx;
  182. padding: 40rpx;
  183. .logo {
  184. width: 40rpx;
  185. height: 40rpx;
  186. margin-top: 8rpx;
  187. }
  188. .infoText {
  189. font-size: 36rpx;
  190. font-weight: 600;
  191. margin-left: 20rpx;
  192. }
  193. .infoData {
  194. color: #878C9C;
  195. font-size: 26rpx;
  196. margin-top: 10rpx;
  197. }
  198. }
  199. }
  200. .deleteText {
  201. text-align: center;
  202. color: #AFB3BF;
  203. }
  204. </style>