ord.vue 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279
  1. <template>
  2. <div>
  3. <div class="detailItem detailesty">
  4. <div class="imgparent">
  5. <van-nav-bar
  6. title="详情"
  7. left-text="返回"
  8. left-arrow
  9. @click-left="onClickLeft"
  10. />
  11. </div>
  12. <div>
  13. <div class="approba_nave">
  14. <p>
  15. <span class="soei"><i>王明</i>的请假申请</span>
  16. </p>
  17. <p></p>
  18. <p>提交时间:2021-04-25 13:00</p>
  19. <p>审批状态:已通过</p>
  20. <img
  21. src="../assets/img/pic_zt_shtg.png"
  22. alt=""
  23. class="ecord_img"
  24. >
  25. </div>
  26. </div>
  27. <div class="approba_nition">
  28. <p>审批编号</p>
  29. <p>20210424134500456832</p>
  30. </div>
  31. <div class="approba_nition">
  32. <p>所在部门</p>
  33. <p>市监局</p>
  34. </div>
  35. <div class="approba_nition">
  36. <p>请假类型</p>
  37. <p>事假</p>
  38. </div>
  39. <div class="approba_nition">
  40. <p>请假开始时间</p>
  41. <p>2021-04-25 13:00</p>
  42. </div>
  43. <div class="approba_nition">
  44. <p>请假结束时间</p>
  45. <p>2021-04-25 18:00</p>
  46. </div>
  47. <div class="approba_nition">
  48. <p>请假结束时间</p>
  49. <p>2021-04-25 18:00</p>
  50. </div>
  51. <div class="approba_nition">
  52. <p>请假事由</p>
  53. <p>去医院接种新冠疫苗</p>
  54. </div>
  55. <div class="approba_nition">
  56. <p>图片</p>
  57. <p><img
  58. src="../assets/img/icon_hp_spjl.png"
  59. alt=""
  60. ></p>
  61. </div>
  62. <!-- <div class="details_bott">
  63. <p @click="showPopup">驳回审批</p>
  64. <p>同意审批</p>
  65. </div> -->
  66. <van-popup v-model="show">
  67. <div class="detalies_boname">
  68. <p><span>驳回原因</span><span @click="dele">
  69. <van-icon name="close" /></span></p>
  70. <p>
  71. <van-field
  72. v-model="message"
  73. rows="2"
  74. autosize
  75. type="textarea"
  76. maxlength="50"
  77. placeholder="请输入留言"
  78. show-word-limit
  79. />
  80. </p>
  81. <p>提交</p>
  82. </div>
  83. </van-popup>
  84. </div>
  85. </div>
  86. </template>
  87. <script>
  88. export default {
  89. data() {
  90. return {
  91. show: false,
  92. message:''
  93. };
  94. },
  95. props: ["detailitem"],
  96. methods: {
  97. onClickLeft() {
  98. this.$router.go(-1)
  99. },
  100. onConfirm(value) {
  101. this.value = value;
  102. this.showPicker = false;
  103. },
  104. // 驳回
  105. showPopup() {
  106. this.show = true;
  107. },
  108. dele(){
  109. this.show = false;
  110. }
  111. }
  112. };
  113. </script>
  114. <style lang="less">
  115. .detailes {
  116. .van-popup--center {
  117. width: 80%;
  118. }
  119. .van-field__control {
  120. height: 85px;
  121. }
  122. }
  123. </style>
  124. <style scoped lang="less">
  125. .detailesty {
  126. background-color: #fff;
  127. // margin-bottom: 16vw;
  128. // height: 100vh;
  129. p {
  130. font-size: 3.333vw;
  131. padding: 0.833vw 0;
  132. }
  133. .imgparent {
  134. position: relative;
  135. .bottom {
  136. padding: 0 2.778vw;
  137. margin-bottom: 1.389vw;
  138. position: absolute;
  139. bottom: 0.556vw;
  140. background: linear-gradient(0deg, rgba(0, 0, 0, 0.85), transparent);
  141. justify-content: space-between;
  142. color: white;
  143. display: flex;
  144. left: 0;
  145. right: 0;
  146. }
  147. }
  148. .approba_nave {
  149. border-bottom: 0.267vw solid #dadada;
  150. margin: 0 16px;
  151. padding: 16px 0;
  152. margin-bottom: 0;
  153. position: relative;
  154. .ecord_img {
  155. width: 11.2vw;
  156. height: 11.2vw;
  157. position: absolute;
  158. right: 0;
  159. bottom: 12px;
  160. }
  161. p {
  162. font-size: 2.667vw;
  163. font-family: PingFang SC;
  164. font-weight: 400;
  165. color: #666666;
  166. }
  167. p:nth-child(1) {
  168. display: flex;
  169. justify-content: space-between;
  170. margin-bottom: 1.333vw;
  171. i {
  172. font-style: normal;
  173. font-weight: 700;
  174. }
  175. .soei {
  176. font-size: 3.733vw;
  177. font-family: PingFang SC;
  178. font-weight: 400;
  179. color: #343434;
  180. }
  181. span:nth-child(2) {
  182. color: #aaa;
  183. font-weight: 500;
  184. }
  185. }
  186. }
  187. }
  188. .approva_header {
  189. box-shadow: 0vw 0.8vw 0.533vw 0vw rgba(218, 218, 218, 0.35);
  190. }
  191. .approba_nition {
  192. padding: 2.133vw 4.267vw;
  193. img {
  194. width: 27.733vw;
  195. height: 27.733vw;
  196. margin-top: 1.333vw;
  197. }
  198. p {
  199. font-size: 2.667vw;
  200. font-family: PingFang SC;
  201. font-weight: 500;
  202. color: #aaaaaa;
  203. }
  204. p:nth-child(2) {
  205. color: #343434;
  206. }
  207. }
  208. .details_bott {
  209. position: fixed;
  210. bottom: 0;
  211. left: 0;
  212. display: flex;
  213. width: 100%;
  214. p {
  215. flex: 1;
  216. height: 49px;
  217. line-height: 49px;
  218. text-align: center;
  219. background: #fd3737;
  220. font-size: 4vw;
  221. font-family: PingFang SC;
  222. font-weight: 400;
  223. color: #ffffff;
  224. }
  225. p:nth-child(2) {
  226. background: #009fe8;
  227. }
  228. }
  229. .detalies_boname {
  230. padding: 0 4.267vw;
  231. p:nth-child(1) {
  232. display: flex;
  233. justify-content: space-between;
  234. margin-bottom:6.667vw;
  235. margin-top:2.667vw;
  236. span:nth-child(1) {
  237. font-size: 4vw;
  238. font-family: PingFang SC;
  239. font-weight: bold;
  240. color: #343434;
  241. width: 98%;
  242. text-align: center;
  243. }
  244. span:nth-child(2) {
  245. flex: 1;
  246. font-size: 4vw;
  247. font-family: PingFang SC;
  248. font-weight: bold;
  249. color: #343434;
  250. }
  251. }
  252. p:nth-child(2) {
  253. border: 0.267vw solid #009fe8;
  254. border-radius: 0.8vw;
  255. }
  256. p:nth-child(3) {
  257. height: 10.133vw;
  258. line-height:10.133vw;
  259. background: #009fe8;
  260. border-radius: 3px;
  261. font-size: 4vw;
  262. font-family: PingFang SC;
  263. font-weight: 400;
  264. color: #FFFFFF;
  265. text-align:center;
  266. margin-top:18px;
  267. margin-bottom:18px;
  268. }
  269. }
  270. </style>