unit.vue 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. <template>
  2. <view>
  3. <view v-if="initIndex==2" class='my-unit'>
  4. <view class="unit-head">
  5. <text style="font-weight: bold;font-size: 26upx;">{{info.name}}</text>
  6. </view>
  7. <view class="unit-body">
  8. <view style="display: flex;justify-content: center;align-items:center;">
  9. <uni-icons type="settings" size="20"></uni-icons>
  10. <text style="margin-left: 10upx;" >{{info.status}}</text>
  11. </view>
  12. <text style="color: gray;">{{parseTime(info.startTime)}}</text>
  13. </view>
  14. <view class="unit-foot">
  15. <text style="color: gray;">当前处理人</text>
  16. <text style="font-weight: bold;">{{info.currentAuditUser.nickname}}</text>
  17. </view>
  18. </view>
  19. <view v-else class='my-unit'>
  20. <view class="unit-head">
  21. <text style="font-weight: bold;font-size: 26upx;">{{info.processInstance.name}}</text>
  22. </view>
  23. <view class="unit-body">
  24. <view style="display: flex;justify-content: center;align-items:center;">
  25. <uni-icons type="settings" size="20"></uni-icons>
  26. <text style="margin-left: 10upx;" >{{info.name}}</text>
  27. </view>
  28. <text style="color: gray;">{{parseTime(info.createTime)}}</text>
  29. </view>
  30. <view class="unit-foot">
  31. <text style="color: gray;">发起人</text>
  32. <text style="font-weight: bold;">{{info.processInstance.startUser.nickname}}</text>
  33. </view>
  34. </view>
  35. </view>
  36. </template>
  37. <script>
  38. export default{
  39. props: {
  40. info: {
  41. type: Object
  42. },
  43. initIndex:{
  44. type: Number
  45. }
  46. },
  47. data() {
  48. return {
  49. unitModel1:[
  50. {prop:"",label:"匹配商铺数"},
  51. {prop:"",label:"已报价商铺数"},
  52. {prop:"",label:"最新报价",class:"color-red",isMoney:true},
  53. {prop:"",label:"商品报价",class:"color-999",isMoney:true},
  54. {prop:"",label:"税点",class:"color-999"},
  55. {prop:"",label:"税费",class:"color-999",isMoney:true},
  56. {prop:"",label:"运费",class:"color-999",isMoney:true},
  57. ]
  58. }
  59. },
  60. methods:{
  61. doDel(){
  62. this.$store.commit("switch_loading")
  63. }
  64. },
  65. computed:{
  66. },
  67. created() {
  68. },
  69. }
  70. </script>
  71. <style lang='scss'>
  72. .my-unit{
  73. margin: 20upx 10upx;
  74. background-color: #ffffff;
  75. font-size: 28upx;
  76. transform: all 1s;
  77. border-radius: 10upx;
  78. box-shadow: rgba(0, 0, 0, 0.08) 0px 0px 3;
  79. .unit-head{
  80. padding: 20upx 20upx 10upx 20upx;
  81. /* height: 80upx; */
  82. box-sizing: border-box;
  83. /* border-bottom: 2upx solid #f5f5f5; */
  84. }
  85. .unit-body{
  86. padding: 0 20upx;
  87. display: flex;
  88. flex-wrap: wrap;
  89. justify-content: space-between;
  90. align-items: center;
  91. text{
  92. font-size: 20upx;
  93. line-height: 55upx;
  94. }
  95. }
  96. .unit-foot{
  97. height: 88upx;
  98. padding: 0 20upx;
  99. border-top: 2upx solid #f5f5f5;
  100. border-bottom: none;
  101. line-height: 88upx;
  102. display: flex;
  103. flex-wrap: wrap;
  104. text{
  105. width: 30%;
  106. }
  107. }
  108. }
  109. </style>