ApproveView.vue 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221
  1. <template>
  2. <view>
  3. <view class="approveMain">
  4. <view class="approveMain_text">流程</view>
  5. <u-time-line>
  6. <u-time-line-item node-top="10" v-for="(item,i) in activityList" :key="i">
  7. <template v-slot:node>
  8. <view>
  9. <view class="u-node" :class="{
  10. viewc2:item.status==1,
  11. }">
  12. <!-- 此处为uView的icon组件 -->
  13. <!-- <u-icon name="checkmark" color="#fff" :size="24"></u-icon> -->
  14. </view>
  15. </view>
  16. </template>
  17. <template v-slot:content>
  18. <view class="approveItem_main">
  19. <view class="approveItem_a1">
  20. <view class="approveItem_a1_text1" :class="{
  21. viewc3:item.status==1
  22. }" >
  23. {{item.activityName}}
  24. </view>
  25. <view class="approveItem_a1_text2">
  26. {{item.remark}}
  27. </view>
  28. <view class="approveItem_a1_text3">
  29. <view class="approveItem_a1_text3Img" v-for="(it,j) in (item.wfProcinstActUserList)"
  30. :key="i+'_'+j" :style="initStart&&it.type==1&&(item.action!=0||item.status==1)?'width: 100%;':''">
  31. <view class="approveItem_a1_text3Img_item1" >
  32. <view>
  33. <u-avatar size="56" :src="it.headImg" class="img"></u-avatar>
  34. <u-badge size="mini" count="x" type="info" :absolute="false" v-if="0">
  35. </u-badge>
  36. </view>
  37. <view>
  38. <view style="color:#3a7cf7 ;"> {{it.departmentName}}</view>
  39. <view><span v-if="it.type==2" class="viewc">抄</span>{{it.personName}}</view>
  40. </view>
  41. </view>
  42. <view v-if="initStart&&it.type==1&&it.action!=0" class="approveItem_a1_text3Img_item2" >
  43. <view>
  44. 审批结果:<span :style="it.action==1?'color:#4CAF50':'color:red'">[{{it.action==1?'通过':'退回'}}]</span>
  45. </view>
  46. <view >
  47. 审批意见:<br/>{{it.remark}}
  48. </view>
  49. </view>
  50. </view>
  51. </view>
  52. </view>
  53. <view class="approveItem_a2" v-if="0">
  54. <view class="a2_span" @click="gotoSelectPerson(item)">+</view>
  55. <span class="a2_span_2">*</span>
  56. </view>
  57. </view>
  58. </template>
  59. </u-time-line-item>
  60. </u-time-line>
  61. <u-divider>已经到底了</u-divider>
  62. </view>
  63. </view>
  64. </template>
  65. <script>
  66. export default {
  67. name:"approve",
  68. props:{
  69. edit: 0,
  70. initStart: {
  71. type: Boolean,
  72. default: true
  73. },
  74. activityList: {
  75. type: Array,
  76. default () {
  77. return [];
  78. }
  79. },
  80. status:""
  81. },
  82. data() {
  83. return {
  84. };
  85. }
  86. }
  87. </script>
  88. <style scoped lang="scss">
  89. .approveMain_text {
  90. font-weight: bold;
  91. color: rgba(51, 51, 51, 1);
  92. font-size: 32rpx;
  93. padding-bottom: 20rpx;
  94. padding-left: 32rpx;
  95. border-bottom: 1px solid #C8C8C8;
  96. margin-bottom: 16rpx;
  97. // padding-top: 32rpx;
  98. }
  99. .viewc{
  100. background-color: #4CAF50;
  101. color: #fff;
  102. padding: 0px 2px;
  103. border-radius: 4px;
  104. }
  105. .approveMain {
  106. background: #fff;
  107. padding-bottom: 180rpx;
  108. padding-top: 20rpx;
  109. .approveItem_main {
  110. display: flex;
  111. justify-content: space-between;
  112. margin-bottom: 30rpx;
  113. margin-right: 32rpx;
  114. .approveItem_a1 {
  115. .approveItem_a1_text1 {
  116. color: rgba(16, 16, 16, 1);
  117. font-size: 32rpx;
  118. }
  119. .approveItem_a1_text2 {
  120. margin-bottom: 16rpx;
  121. color: rgba(119, 119, 119, 1);
  122. font-size: 24rpx;
  123. }
  124. .approveItem_a1_text3 {
  125. color: rgba(51, 51, 51, 1);
  126. font-size: 24rpx;
  127. display: flex;
  128. flex-direction: row;
  129. flex-wrap: wrap;
  130. .approveItem_a1_text3Img {
  131. margin-right: 40rpx;
  132. margin-top: 10rpx;
  133. margin-bottom: 10rpx;
  134. display: flex;
  135. .approveItem_a1_text3Img_item1{
  136. display: flex;
  137. }
  138. .approveItem_a1_text3Img_item2{
  139. background: #e0dada;
  140. padding: 2px;
  141. width: 60%;
  142. }
  143. /deep/.u-badge {
  144. position: relative !important;
  145. top: -40rpx !important;
  146. right: 10rpx !important;
  147. }
  148. }
  149. }
  150. }
  151. .approveItem_a2 {
  152. .a2_span {
  153. border-radius: 4px;
  154. text-align: center;
  155. border: 1px solid rgba(227, 227, 227, 1);
  156. width: 72rpx;
  157. height: 72rpx;
  158. line-height: 60rpx;
  159. font-size: 48rpx;
  160. color: #9F9F9F;
  161. }
  162. .a2_span_2 {
  163. position: relative;
  164. top: -84rpx;
  165. left: 60rpx;
  166. color: red;
  167. }
  168. }
  169. }
  170. }
  171. .u-node {
  172. width: 18rpx;
  173. height: 18rpx;
  174. border-radius: 100rpx !important;
  175. display: flex;
  176. justify-content: center;
  177. align-items: center;
  178. background: #d0d0d0;
  179. }
  180. .viewc2{
  181. width: 27rpx;
  182. height: 27rpx;
  183. background: #4CAF50;
  184. }
  185. .viewc3{
  186. color: #4CAF50 !important;
  187. }
  188. </style>