type-business-info.vue 4.1 KB

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