m-worksheet-pass.vue 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267
  1. <template>
  2. <view>
  3. <view class="user">
  4. <view class="img">
  5. <image src="../icon/user.png" mode=""></image>
  6. </view>
  7. <view class="info">
  8. <view class="name">测试用户</view>
  9. <view class="tip">信息监测中心-科员</view>
  10. </view>
  11. </view>
  12. <!-- section-1 -->
  13. <view class="section_1">
  14. <view class="item_box">
  15. <view class="text_box">
  16. <view class="label">工单分类:</view>
  17. <view class="inner">物资领用</view>
  18. </view>
  19. </view>
  20. <view class="item_box">
  21. <view class="text_box">
  22. <view class="label">工单编号132:</view>
  23. <view class="inner">3E9MH27</view>
  24. </view>
  25. </view>
  26. <view class="item_box">
  27. <view class="text_box" v-if="false">
  28. <view class="label">工单分类:</view>
  29. <view class="inner">物资领用</view>
  30. </view>
  31. <view class="img_box">
  32. <view class="label">图片:</view>
  33. <view class="img_list" @click="view_img()">
  34. <view class="img">
  35. <image src="https://images.pexels.com/photos/572056/pexels-photo-572056.jpeg?auto=compress&cs=tinysrgb&dpr=1&w=500" mode="aspectFill"></image>
  36. </view>
  37. <view class="img">
  38. <image src="https://images.pexels.com/photos/110854/pexels-photo-110854.jpeg?auto=compress&cs=tinysrgb&dpr=1&w=500" mode="aspectFill"></image>
  39. </view>
  40. <view class="img">
  41. <image src="https://images.pexels.com/photos/67112/pexels-photo-67112.jpeg?auto=compress&cs=tinysrgb&dpr=1&w=500" mode="aspectFill"></image>
  42. </view>
  43. <view class="img">
  44. <image src="https://images.pexels.com/photos/462118/pexels-photo-462118.jpeg?auto=compress&cs=tinysrgb&dpr=1&w=500" mode="aspectFill"></image>
  45. </view>
  46. </view>
  47. </view>
  48. </view>
  49. </view>
  50. <view class="steps" style="margin-top: 10rpx;">
  51. <view class="label">固定审批流程:</view>
  52. <YSteps color='#fff' backgroundColor='#009FE8' :infoList='list'></YSteps>
  53. </view>
  54. </view>
  55. </template>
  56. <script>
  57. import YSteps from '../../../components/Y-Steps/Y-Steps.vue'
  58. export default {
  59. components: {
  60. YSteps
  61. },
  62. onLoad(options) {
  63. // console.log(options.id)
  64. this.Authorization = uni.getStorageSync('token_type') +' '+uni.getStorageSync('Authorization')
  65. this.get_detail(options.id)
  66. },
  67. data() {
  68. return {
  69. Authorization:'',
  70. list: [
  71. {
  72. date: '2020-1-4',
  73. info: '的'
  74. },
  75. {
  76. date: '2020-1-4',
  77. info: '看见阿萨德和封口机撒的护肤科技撒地方即可撒地方就开始看见阿萨德和封口机撒的护肤科技撒地方即可撒地方就开始看见阿萨德和封口机撒的护肤科技撒地方即可撒地方就开始'
  78. },
  79. ],
  80. };
  81. },
  82. methods:{
  83. view_img(){
  84. // 预览图片
  85. uni.previewImage({
  86. urls: [
  87. "https://images.pexels.com/photos/572056/pexels-photo-572056.jpeg?auto=compress&cs=tinysrgb&dpr=1&w=500",
  88. "https://images.pexels.com/photos/110854/pexels-photo-110854.jpeg?auto=compress&cs=tinysrgb&dpr=1&w=500",
  89. "https://images.pexels.com/photos/67112/pexels-photo-67112.jpeg?auto=compress&cs=tinysrgb&dpr=1&w=500",
  90. "https://images.pexels.com/photos/462118/pexels-photo-462118.jpeg?auto=compress&cs=tinysrgb&dpr=1&w=500",
  91. ],
  92. });
  93. },
  94. async get_detail(id){
  95. console.log(id)
  96. const Authorization = this.Authorization
  97. const res = await this.$myRequest({
  98. url:'/worksheet/checked/'+id,
  99. header:{
  100. Authorization:Authorization
  101. }
  102. })
  103. console.log(res.data.data)
  104. }
  105. }
  106. }
  107. </script>
  108. <style lang="scss">
  109. page{
  110. box-sizing: border-box;
  111. padding: 30rpx;
  112. padding-top: 10rpx;
  113. }
  114. .user{
  115. height: 158rpx;
  116. display: flex;
  117. align-items: center;
  118. box-sizing: border-box;
  119. padding: 0 30rpx;
  120. .img{
  121. width: 108rpx;
  122. height: 108rpx;
  123. border-radius: 50%;
  124. overflow: hidden;
  125. image{
  126. width: 108rpx;
  127. height: 108rpx;
  128. }
  129. }
  130. .info{
  131. margin-left: 30rpx;
  132. .name{
  133. font-size: 34rpx;
  134. font-family: MicrosoftYaHei;
  135. color: #2C3E50;
  136. line-height: 46rpx;
  137. }
  138. .tip{
  139. margin-top: 10rpx;
  140. font-size: 24rpx;
  141. font-family: MicrosoftYaHei;
  142. color: #6C6F74;
  143. line-height: 32rpx;
  144. }
  145. }
  146. }
  147. .section_1{
  148. margin-top: 30rpx;
  149. .item_box{
  150. width: 690rpx;
  151. box-sizing: border-box;
  152. padding-left: 44rpx;
  153. padding-top: 25rpx;
  154. padding-bottom: 25rpx;
  155. padding-right: 30rpx;
  156. border-bottom: 2rpx solid #e0e0e0;
  157. .text_box{
  158. display: flex;
  159. justify-content: space-between;
  160. .label{
  161. width: 200rpx;
  162. font-size: 25rpx;
  163. font-family: MicrosoftYaHei;
  164. color: #2C3E50;
  165. }
  166. .inner{
  167. width: 400rpx;
  168. font-size: 25rpx;
  169. font-family: MicrosoftYaHei;
  170. color: #3498DB;
  171. }
  172. }
  173. .img_box{
  174. width: 616rpx;
  175. .label{
  176. width: 200rpx;
  177. font-size: 25rpx;
  178. font-family: MicrosoftYaHei;
  179. color: #2C3E50;
  180. }
  181. .img_list{
  182. overflow: hidden;
  183. margin-top: 18rpx;
  184. border: 4px dashed #ECF0F1;
  185. box-sizing: border-box;
  186. padding: 30rpx;
  187. .img{
  188. float: left;
  189. margin-right: 45rpx;
  190. margin-bottom: 30rpx;
  191. width: 150rpx;
  192. height: 150rpx;
  193. image{
  194. width: 100%;
  195. height: 100%;
  196. }
  197. }
  198. .img:nth-child(3n){
  199. margin-right: 0;
  200. }
  201. }
  202. }
  203. .file_box{
  204. width: 616rpx;
  205. .label{
  206. width: 200rpx;
  207. font-size: 25rpx;
  208. font-family: MicrosoftYaHei;
  209. color: #2C3E50;
  210. }
  211. .file_list{
  212. overflow: hidden;
  213. margin-top: 18rpx;
  214. border: 4px dashed #ECF0F1;
  215. box-sizing: border-box;
  216. padding: 30rpx;
  217. .file{
  218. float: left;
  219. margin-right: 45rpx;
  220. margin-bottom: 30rpx;
  221. image{
  222. width: 150rpx;
  223. height: 150rpx;
  224. }
  225. }
  226. .img:nth-child(3n){
  227. margin-right: 0;
  228. }
  229. }
  230. }
  231. }
  232. }
  233. .steps{
  234. box-sizing: border-box;
  235. padding-left: 44rpx;
  236. padding-top: 25rpx;
  237. padding-bottom: 25rpx;
  238. padding-right: 30rpx;
  239. .label{
  240. font-size: 25rpx;
  241. font-family: MicrosoftYaHei;
  242. color: #2C3E50;
  243. }
  244. }
  245. </style>