viewDetail.vue 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  1. <template>
  2. <view class="center">
  3. <view class="data_css" v-for="(item,index) in dataList">
  4. <!-- <view class="data_item"> -->
  5. <!-- <view class="data_item_left">货源</view>
  6. <view class="data_item_right">{{item.customer}}</view> -->
  7. <!-- <u-form ref="uForm" >
  8. <u-form-item label-width='260' :borderBottom="false" class="label_css" label="货源">
  9. <u-input v-model="item.customer" input-align="right" placeholder="--" disabled />
  10. </u-form-item>
  11. </u-form> -->
  12. <u-row customStyle="margin-bottom: 10px" class="row_css">
  13. <u-col span="6">
  14. <view class="demo-layout title_name">货源</view>
  15. </u-col>
  16. <u-col span="6">
  17. <view class="demo-layout value_css" >{{item.customer}}</view>
  18. </u-col>
  19. </u-row>
  20. <!-- </view> -->
  21. <view class="data_top_css">
  22. <u-row customStyle="margin-bottom: 10px" class="row_css">
  23. <u-col span="2">
  24. <view class="demo-layout title_name">车牌号</view>
  25. </u-col>
  26. <u-col span="4">
  27. <view class="demo-layout value_css" >{{item.carNo?item.carNo:'--'}}</view>
  28. </u-col>
  29. <u-col span="3">
  30. <view class="demo-layout title_name">水分(%)</view>
  31. </u-col>
  32. <u-col span="3">
  33. <view class="demo-layout value_css">{{item.waterContent?item.waterContent:'--'}}</view>
  34. </u-col>
  35. </u-row>
  36. <u-row customStyle="margin-bottom: 10px" class="row_css">
  37. <u-col span="3">
  38. <view class="demo-layout title_name">毛重(吨)</view>
  39. </u-col>
  40. <u-col span="3">
  41. <view class="demo-layout value_css">{{item.grossWeight?item.grossWeight:'--'}}</view>
  42. </u-col>
  43. <u-col span="3">
  44. <view class="demo-layout title_name">容重(g/L)</view>
  45. </u-col>
  46. <u-col span="3">
  47. <view class="demo-layout value_css">{{item.bulkDensity?item.bulkDensity:'--'}}</view>
  48. </u-col>
  49. </u-row>
  50. <u-row customStyle="margin-bottom: 10px" class="row_css">
  51. <u-col span="3">
  52. <view class="demo-layout title_name">皮重(吨)</view>
  53. </u-col>
  54. <u-col span="3">
  55. <view class="demo-layout value_css">{{item.tare?item.tare:'--'}}</view>
  56. </u-col>
  57. <u-col span="3">
  58. <view class="demo-layout title_name">杂质(%)</view>
  59. </u-col>
  60. <u-col span="3">
  61. <view class="demo-layout value_css">{{item.impurity?item.impurity:'--'}}</view>
  62. </u-col>
  63. </u-row>
  64. <u-row customStyle="margin-bottom: 10px" class="row_css">
  65. <u-col span="3">
  66. <view class="demo-layout title_name">净重(吨)</view>
  67. </u-col>
  68. <u-col span="3">
  69. <view class="demo-layout value_css">{{item.netWeight?item.netWeight:'--'}}</view>
  70. </u-col>
  71. <u-col span="3">
  72. <view class="demo-layout title_name">霉变粒(%)</view>
  73. </u-col>
  74. <u-col span="3">
  75. <view class="demo-layout value_css">{{item.mildewGrain?item.mildewGrain:'--'}}</view>
  76. </u-col>
  77. </u-row>
  78. <u-row customStyle="margin-bottom: 10px" class="row_css">
  79. <u-col span="3">
  80. <view class="demo-layout title_name">单价(元/吨)</view>
  81. </u-col>
  82. <u-col span="3">
  83. <view class="demo-layout value_css">{{item.price?item.price:'--'}}</view>
  84. </u-col>
  85. <u-col span="3">
  86. <view class="demo-layout title_name">热损伤(%)</view>
  87. </u-col>
  88. <u-col span="3">
  89. <view class="demo-layout value_css">{{item. jiaorenli?item. jiaorenli:'--'}}</view>
  90. </u-col>
  91. </u-row>
  92. <u-row customStyle="margin-bottom: 10px" class="row_css">
  93. <u-col span="3">
  94. <view class="demo-layout title_name">粮款(元)</view>
  95. </u-col>
  96. <u-col span="3">
  97. <view class="demo-layout value_css">{{item.grainFund?item.grainFund:'--'}}</view>
  98. </u-col>
  99. <u-col span="4">
  100. <view class="demo-layout title_name">不完整粒(%)</view>
  101. </u-col>
  102. <u-col span="2">
  103. <view class="demo-layout value_css">{{item.imperfectGrain?item.imperfectGrain:'--'}}</view>
  104. </u-col>
  105. </u-row>
  106. <u-row customStyle="margin-bottom: 10px" class="row_css">
  107. <u-col span="3">
  108. <view class="demo-layout title_name">等级</view>
  109. </u-col>
  110. <u-col span="3">
  111. <view class="demo-layout value_css">{{item.grade?item.grade:'--'}}</view>
  112. </u-col>
  113. </u-row>
  114. </view>
  115. </view>
  116. </view>
  117. </template>
  118. <script>
  119. export default {
  120. data() {
  121. return {
  122. dataList: [],
  123. }
  124. },
  125. onLoad(options) {
  126. this.dataList = JSON.parse(options.data)
  127. console.log(this.dataList)
  128. },
  129. onShow() {
  130. },
  131. methods: {
  132. }
  133. }
  134. </script>
  135. <style lang="scss" scoped>
  136. .center {
  137. padding: 30rpx 20rpx;
  138. }
  139. .u-form {
  140. // margin-bottom: 20rpx;
  141. background: #fff;
  142. border-radius: 10px;
  143. padding: 0rpx 10px;
  144. .u-form-item {
  145. line-height: 30px;
  146. padding: 0px 0;
  147. font-size: 26rpx;
  148. color: #878C9C;
  149. }
  150. }
  151. .data_css {
  152. background-color: #ffffff;
  153. border-radius: 20rpx;
  154. padding: 20rpx;
  155. margin-bottom: 20rpx;
  156. .data_item {
  157. display: flex;
  158. .data_item_left,
  159. .data_item_right {
  160. width: 50%;
  161. }
  162. .data_item_left{
  163. margin-left: 10rpx;
  164. }
  165. .data_item_right {
  166. text-align: right;
  167. }
  168. }
  169. .data_top_css{
  170. margin-top: 10rpx;
  171. }
  172. }
  173. .row_css{
  174. margin-bottom: 10rpx;
  175. }
  176. .title_name{
  177. color: #8F8F8F;
  178. }
  179. .value_css{
  180. color: #333333;
  181. text-align: right;
  182. margin-right: 40rpx;
  183. }
  184. </style>