detail.vue 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  1. <template>
  2. <view>
  3. <view class="detail-desc">
  4. <view class="c-list">
  5. <view class="c-row b-b">
  6. <text class="tit">交易单号</text>
  7. <view class="con-list">
  8. <text>{{trade.orderNo}}</text>
  9. </view>
  10. </view>
  11. <view class="c-row b-b">
  12. <text class="tit">卖方</text>
  13. <view class="con-list">
  14. <text>{{trade.seller}}</text>
  15. </view>
  16. </view>
  17. <view class="c-row b-b">
  18. <text class="tit">卖方电话</text>
  19. <view class="con-list">
  20. <text>{{trade.sellerPhone}}</text>
  21. </view>
  22. </view>
  23. <view class="c-row b-b">
  24. <text class="tit">买方</text>
  25. <view class="con-list">
  26. <text>{{trade.buyer}}</text>
  27. </view>
  28. </view>
  29. <view class="c-row b-b">
  30. <text class="tit">买方电话</text>
  31. <view class="con-list">
  32. <text>{{trade.buyerPhone}}</text>
  33. </view>
  34. </view>
  35. <view class="c-row b-b">
  36. <text class="tit">价格类型</text>
  37. <view class="con-list">
  38. <text>{{trade.priceType}}</text>
  39. </view>
  40. </view>
  41. <view class="c-row b-b">
  42. <text class="tit">协议单价(元/吨)</text>
  43. <view class="con-list">
  44. <text>{{trade.unitPrice}}</text>
  45. </view>
  46. </view>
  47. <view class="c-row b-b">
  48. <text class="tit">交接区域</text>
  49. <view class="con-list">
  50. <text>{{trade.province}}</text>
  51. </view>
  52. </view>
  53. <view class="c-row b-b">
  54. <text class="tit">详细交收地址</text>
  55. <view class="con-list">
  56. <text>{{trade.address}}</text>
  57. </view>
  58. </view>
  59. <view class="c-row b-b">
  60. <text class="tit">最小成交量</text>
  61. <view class="con-list">
  62. <text>{{trade.minSale}}</text>
  63. </view>
  64. </view>
  65. <view class="c-row b-b">
  66. <text class="tit">购买数量(吨)</text>
  67. <view class="con-list">
  68. <text>{{trade.count}}</text>
  69. </view>
  70. </view>
  71. <view class="c-row b-b">
  72. <text class="tit">质量验收方式</text>
  73. <view class="con-list">
  74. <text>{{trade.acceptType}}</text>
  75. </view>
  76. </view>
  77. <view class="c-row b-b">
  78. <text class="tit">发票类型</text>
  79. <view class="con-list">
  80. <text>{{trade.invoiceType}}</text>
  81. </view>
  82. </view>
  83. <view class="c-row b-b">
  84. <text class="tit">包装方式</text>
  85. <view class="con-list">
  86. <text>{{trade.packing}}</text>
  87. </view>
  88. </view>
  89. <view class="c-row b-b">
  90. <text class="tit">备注</text>
  91. <view class="con-list">
  92. <text>{{trade.memo}}</text>
  93. </view>
  94. </view>
  95. </view>
  96. </view>
  97. </view>
  98. </template>
  99. <script>
  100. export default {
  101. data() {
  102. return {
  103. trade: [],
  104. orderNo:''
  105. }
  106. },
  107. onLoad(option) {
  108. this.orderNo = option.orderNo
  109. this.loadData()
  110. },
  111. methods: {
  112. loadData() {
  113. const that = this
  114. that.$api.request('trade', 'getTradeDetail', {
  115. orderNo: that.orderNo
  116. }).then(res => {
  117. that.trade = res.data
  118. })
  119. }
  120. }
  121. }
  122. </script>
  123. <style lang="scss">
  124. page {
  125. background: $page-color-base;
  126. padding-bottom: 100upx;
  127. }
  128. /* 详情 */
  129. .detail-desc {
  130. background: #fff;
  131. margin-top: 16upx;
  132. width: 750upx;
  133. .d-header {
  134. display: flex;
  135. justify-content: center;
  136. align-items: center;
  137. height: 80upx;
  138. font-size: $font-base + 2upx;
  139. color: $font-color-dark;
  140. position: relative;
  141. text {
  142. padding: 0 20upx;
  143. background: #fff;
  144. position: relative;
  145. z-index: 1;
  146. }
  147. &:after {
  148. position: absolute;
  149. left: 50%;
  150. top: 50%;
  151. transform: translateX(-50%);
  152. width: 300upx;
  153. height: 0;
  154. content: '';
  155. border-bottom: 1px solid #ccc;
  156. }
  157. }
  158. }
  159. .c-list {
  160. font-size: $font-sm + 2upx;
  161. color: $font-color-base;
  162. background: #fff;
  163. .c-row {
  164. display: flex;
  165. align-items: center;
  166. padding: 20upx 30upx;
  167. position: relative;
  168. }
  169. .tit {
  170. width: 180upx;
  171. }
  172. .con {
  173. flex: 1;
  174. color: $font-color-dark;
  175. .selected-text {
  176. margin-right: 10upx;
  177. }
  178. }
  179. .bz-list {
  180. height: 40upx;
  181. font-size: $font-sm+2upx;
  182. color: $font-color-dark;
  183. text {
  184. display: inline-block;
  185. margin-right: 30upx;
  186. }
  187. }
  188. .con-list {
  189. flex: 1;
  190. display: flex;
  191. flex-direction: column;
  192. color: $font-color-dark;
  193. line-height: 40upx;
  194. text-align: right;
  195. padding-right: 20upx;
  196. }
  197. .red {
  198. color: $uni-color-primary;
  199. }
  200. }
  201. </style>