business-detail.vue 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  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 class="item-line">
  26. 车辆
  27. </view>
  28. <view v-for="item in form.cars" :key="item.id" style="border-bottom: 1px solid #E5E5E5;">
  29. <view class="item">
  30. <view class="l">车牌号:</view>
  31. <view class="r">
  32. {{ item.carNo }}
  33. </view>
  34. </view>
  35. <view class="item">
  36. <view class="l">规格:</view>
  37. <view class="r">
  38. {{ item.carSize }} (米)
  39. </view>
  40. </view>
  41. <view class="item" v-if="item.realInTime">
  42. <view class="l">入场时间:</view>
  43. <view class="r">
  44. {{ item.realInTime }}
  45. </view>
  46. </view>
  47. <view class="item" v-if="item.realOutTime">
  48. <view class="l">离场时间:</view>
  49. <view class="r">
  50. {{ item.realOutTime }} (米)
  51. </view>
  52. </view>
  53. <view class="item" v-if="item.driverName">
  54. <view class="l">联系人:</view>
  55. <view class="r">
  56. {{ item.driverName }}
  57. </view>
  58. </view>
  59. <view class="item" v-if="item.driverPhone">
  60. <view class="l">联系号码:</view>
  61. <view class="r">
  62. {{ item.driverPhone }}
  63. </view>
  64. </view>
  65. </view>
  66. <view class="item-line">
  67. 业务项
  68. </view>
  69. <view class="item" v-for="item in form.items" :key="item.id">
  70. <view class="l" style="flex: 7;">{{ item.itemTypeName }}:</view>
  71. <view class="r">
  72. {{ item.itemName }}({{ item.itemPrice }}x{{ item.num }}={{ item.total }}元)
  73. </view>
  74. </view>
  75. <view class="item">
  76. <view class="l">业务费:</view>
  77. <view class="r">
  78. {{ form.itemPrice }}
  79. <text>(元)</text>
  80. </view>
  81. </view>
  82. <view class="item">
  83. <text class="p1">订单状态:</text>
  84. <text class="p2">
  85. <text v-if="form.confirmInput==0">未确认</text>
  86. <text v-else>已确认</text>
  87. </text>
  88. </view>
  89. <view class="item">
  90. <text class="p1">支付状态:</text>
  91. <text class="p2">
  92. <text v-if="form.payStatus==1">未支付</text>
  93. <text v-if="form.payStatus==2">已支付(未确认)</text>
  94. <text v-if="form.payStatus==3">已支付(已确认)</text>
  95. </text>
  96. </view>
  97. <view class="hj">
  98. 总费用:{{ form.totalMoney }}元
  99. </view>
  100. <u-button type="primary" text="返回" @click="backFn"></u-button>
  101. <view style="height: 80rpx;"></view>
  102. </view>
  103. </view>
  104. </template>
  105. <script>
  106. export default {
  107. data() {
  108. return {
  109. form: {}
  110. }
  111. },
  112. onShow() {
  113. },
  114. onLoad(options) {
  115. this.id = options.id;
  116. },
  117. onShow() {
  118. this.getBusinessById();
  119. },
  120. methods: {
  121. backFn() {
  122. this.$common.back();
  123. },
  124. getBusinessById() {
  125. this.$api.getBusinessById({
  126. id: this.id
  127. }).then(resp => {
  128. this.form = resp.data;
  129. })
  130. },
  131. }
  132. }
  133. </script>
  134. <style lang="scss">
  135. page {
  136. background-color: #fff;
  137. }
  138. .hs-item {
  139. text-align: center;
  140. }
  141. .item-line {
  142. color: #a2a2a2;
  143. padding: 5px 0 10px 29px;
  144. border-bottom: 1px solid #E5E5E5;
  145. }
  146. .hj {
  147. padding: 50rpx;
  148. font-size: 30rpx;
  149. color: red;
  150. font-weight: bold;
  151. }
  152. .save-btn {
  153. background-color: #ff4200;
  154. height: 88rpx;
  155. display: flex;
  156. justify-content: center;
  157. align-items: center;
  158. margin: 60rpx;
  159. color: #fff;
  160. font-size: 30rpx;
  161. font-weight: bold;
  162. border-radius: 10rpx;
  163. }
  164. @import '@/common/common.scss'
  165. </style>