type-business-info.vue 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. <template>
  2. <view>
  3. <view class="box">
  4. <view class="top">
  5. <text class="title">业务详情</text>
  6. </view>
  7. <view class="item">
  8. <view class="l">企业名称:</view>
  9. <view class="r">
  10. {{form.customerName}}
  11. </view>
  12. </view>
  13. <view class="item">
  14. <view class="l">业务类型:</view>
  15. <view class="r">
  16. {{form.goodsName}}
  17. </view>
  18. </view>
  19. <view class="item">
  20. <view class="l">货重:</view>
  21. <view class="r">
  22. {{form.netWeight}}(kg)
  23. </view>
  24. </view>
  25. <view v-for="item in form.cars" :key="item.id" style="border-bottom: 1px solid #E5E5E5;">
  26. <view class="item">
  27. <view class="l" >车牌号:</view>
  28. <view class="r">
  29. {{item.carNo}}
  30. </view>
  31. </view>
  32. <view class="item">
  33. <view class="l" >规格:</view>
  34. <view class="r">
  35. {{item.carSize}} (米)
  36. </view>
  37. </view>
  38. <view class="item" v-if="item.realInTime">
  39. <view class="l" >入场时间:</view>
  40. <view class="r">
  41. {{item.realInTime}}
  42. </view>
  43. </view>
  44. <view class="item" v-if="item.realOutTime">
  45. <view class="l" >离场时间:</view>
  46. <view class="r">
  47. {{item.realOutTime}} (米)
  48. </view>
  49. </view>
  50. </view>
  51. <view class="item-line">
  52. 业务项
  53. </view>
  54. <view class="item" v-for="item in form.items" :key="item.id">
  55. <view class="l" style="flex: 7;">{{item.itemTypeName}}:</view>
  56. <view class="r">
  57. {{item.itemName}}({{item.itemPrice}}x{{item.num}}={{item.total}}元)
  58. </view>
  59. </view>
  60. <view class="item">
  61. <view class="l" style="flex: 7;">业务费:</view>
  62. <view class="r">
  63. {{form.itemPrice}}
  64. <text>(元)</text>
  65. </view>
  66. </view>
  67. <view class="item">
  68. <view class="l" style="flex: 7;">订单状态:</view>
  69. <view class="r">
  70. <text v-if="form.confirmInput==0">未确认</text>
  71. <text v-else>已确认</text>
  72. </view>
  73. </view>
  74. <view class="item">
  75. <view class="l" style="flex: 7;">支付状态:</view>
  76. <view class="r">
  77. <text v-if="form.payStatus==1">未支付</text>
  78. <text v-if="form.payStatus==3">已支付</text>
  79. </view>
  80. </view>
  81. <view class="hj">
  82. 总费用:{{form.totalMoney}}元
  83. </view>
  84. <u-button type="primary" text="返回" @click="backFn"></u-button>
  85. <view style="height: 80rpx;"></view>
  86. </view>
  87. </view>
  88. </template>
  89. <script>
  90. export default {
  91. data() {
  92. return {
  93. form: {}
  94. }
  95. },
  96. onShow() {},
  97. onLoad(options) {
  98. this.id = options.id;
  99. },
  100. onShow() {
  101. this.getBusinessById();
  102. },
  103. methods: {
  104. backFn() {
  105. this.$common.back();
  106. },
  107. getBusinessById() {
  108. this.$api.getBusinessById({
  109. id: this.id
  110. }).then(resp => {
  111. this.form = resp.data;
  112. })
  113. },
  114. }
  115. }
  116. </script>
  117. <style lang="scss">
  118. page {
  119. background-color: #fff;
  120. }
  121. .hs-item {
  122. text-align: center;
  123. }
  124. .item-line {
  125. color: #a2a2a2;
  126. padding: 5px 0 10px 29px;
  127. border-bottom: 1px solid #E5E5E5;
  128. }
  129. .hj {
  130. padding: 50rpx;
  131. font-size: 30rpx;
  132. color: red;
  133. font-weight: bold;
  134. }
  135. .save-btn {
  136. background-color: #ff4200;
  137. height: 88rpx;
  138. display: flex;
  139. justify-content: center;
  140. align-items: center;
  141. margin: 60rpx;
  142. color: #fff;
  143. font-size: 30rpx;
  144. font-weight: bold;
  145. border-radius: 10rpx;
  146. }
  147. @import '@/common/common.scss'
  148. </style>