buyDetails.vue 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249
  1. <template>
  2. <view class="center">
  3. <view class="buyup">
  4. <view class="c-row b-b">
  5. <text class="title">基本信息</text>
  6. </view>
  7. <view class="c-row b-b">
  8. <text class="tit">名头</text>
  9. <view class="con-list">
  10. {{procurementPlanInfos.title}}
  11. </view>
  12. </view>
  13. <view class="c-row b-b">
  14. <text class="tit">标题</text>
  15. <view class="con-list">
  16. {{procurementPlanInfos.title}}
  17. </view>
  18. </view>
  19. <view class="c-row b-b">
  20. <text class="tit">货名</text>
  21. <view class="con-list">
  22. {{procurementPlanInfos.goodsName}}
  23. </view>
  24. </view>
  25. <view class="c-row b-b">
  26. <text class="tit">采购量(吨)</text>
  27. <view class="con-list">
  28. {{procurementPlanInfos.plannedPurchaseVolume}}
  29. </view>
  30. </view>
  31. <view class="c-row b-b">
  32. <text class="tit">最小成交量(吨)</text>
  33. <view class="con-list">
  34. {{procurementPlanInfos.minimumVolume}}
  35. </view>
  36. </view>
  37. <view class="c-row b-b">
  38. <text class="tit">类型</text>
  39. <view class="con-list">
  40. {{procurementPlanInfos.procurementPlanType}}
  41. </view>
  42. </view>
  43. <view class="c-row b-b">
  44. <text class="tit">价格类型</text>
  45. <view class="con-list">
  46. {{procurementPlanInfos.priceType}}
  47. </view>
  48. </view>
  49. <view class="c-row b-b">
  50. <text class="tit">基差(元/吨)</text>
  51. <view class="con-list">
  52. {{procurementPlanInfos.basisPrice}}
  53. </view>
  54. </view>
  55. <view class="c-row b-b">
  56. <text class="tit">产地</text>
  57. <view class="con-list">
  58. {{procurementPlanInfos.outputPrivate}}{{procurementPlanInfos.outputCity}}
  59. </view>
  60. </view>
  61. <view class="c-row b-b">
  62. <text class="tit">收货地区</text>
  63. <view class="con-list">
  64. {{procurementPlanInfos.receivePrivate}}{{procurementPlanInfos.receiveCity}}{{procurementPlanInfos.receiveArea}}
  65. </view>
  66. </view>
  67. <view class="c-row">
  68. <text class="tit">买方手机号</text>
  69. <view class="con-list">
  70. {{procurementPlanInfos.buyerPhone}}
  71. </view>
  72. </view>
  73. </view>
  74. <view class="buylow">
  75. <view class="c-row b-b">
  76. <text class="title">货物要求</text>
  77. </view>
  78. <view class="c-row b-b">
  79. <text class="tit">水分(%)<= </text>
  80. <view class="con-list">
  81. {{procurementPlanInfos.waterContent}}
  82. </view>
  83. </view>
  84. <view class="c-row b-b">
  85. <text class="tit">容重(g/L)<= </text>
  86. <view class="con-list">
  87. {{procurementPlanInfos.bulkDensity}}
  88. </view>
  89. </view>
  90. <view class="c-row b-b">
  91. <text class="tit">热损伤(%)<= </text>
  92. <view class="con-list">
  93. {{procurementPlanInfos.jiaorenli}}
  94. </view>
  95. </view>
  96. <view class="c-row b-b">
  97. <text class="tit">杂质(%)<= </text>
  98. <view class="con-list">
  99. {{procurementPlanInfos.impurity}}
  100. </view>
  101. </view>
  102. <view class="c-row b-b">
  103. <text class="tit">霉变粒(%)<= </text>
  104. <view class="con-list">
  105. {{procurementPlanInfos.mildewGrain}}
  106. </view>
  107. </view>
  108. <view class="c-row b-b">
  109. <text class="tit">不完整粒(%)<= </text>
  110. <view class="con-list">
  111. {{procurementPlanInfos.imperfectGrain}}
  112. </view>
  113. </view>
  114. <view class="c-row b-b">
  115. <text class="tit">蛋白(%)<= </text>
  116. <view class="con-list">
  117. {{procurementPlanInfos.protein}}
  118. </view>
  119. </view>
  120. <view class="c-row b-b">
  121. <text class="tit">粒型 </text>
  122. <view class="con-list">
  123. {{procurementPlanInfos.grain}}
  124. </view>
  125. </view>
  126. <view class="c-row b-b">
  127. <text class="tit">品级 </text>
  128. <view class="con-list">
  129. {{procurementPlanInfos.grade}}
  130. </view>
  131. </view>
  132. <view class="c-row b-b">
  133. <text class="tit">产出年份</text>
  134. <view class="con-list">
  135. {{procurementPlanInfos.outputYear}}
  136. </view>
  137. </view>
  138. <view class="c-row b-b">
  139. <text class="tit">包装方式</text>
  140. <view class="con-list">
  141. {{procurementPlanInfos.packingType}}
  142. </view>
  143. </view>
  144. <view class="c-row b-b" v-if="procurementPlanInfos.packingType == '大袋' || procurementPlanInfos.packingType == '小袋'">
  145. <text class="tit">袋装备注</text>
  146. <view class="con-list">
  147. {{procurementPlanInfos.baggingNotes}}
  148. </view>
  149. </view>
  150. <view class="c-row">
  151. <text class="tit">运费承担方</text>
  152. <view class="con-list">
  153. {{procurementPlanInfos.freightPayer == null || procurementPlanInfos.freightPayer == "" ?"暂无信息": procurementPlanInfos.freightPayer }}
  154. </view>
  155. </view>
  156. </view>
  157. </view>
  158. </template>
  159. <script>
  160. export default {
  161. data() {
  162. return {
  163. types:'',
  164. typesType:["现货","期货"],
  165. procurementPlanInfos:{},
  166. typesIndex:'',
  167. }
  168. },
  169. onLoad(options){
  170. this.getList(options.id)
  171. },
  172. methods: {
  173. typeChange(e){
  174. this.typesIndex = e.detail.value
  175. this.types = this.typesType[this.typesIndex];
  176. },
  177. getList(id1){
  178. this.$api.doRequest('get','/procurementPlanInfo/getProcurementPlan',{id:id1}).then(res => {
  179. this.procurementPlanInfos = res.data.data
  180. })
  181. .catch(res => {
  182. uni.showToast({
  183. title: res.errmsg,
  184. icon:'none',
  185. duration: 2000
  186. })
  187. });
  188. }
  189. }
  190. }
  191. </script>
  192. <style>
  193. .center{
  194. padding: 10px 20px;
  195. background-color: #F5F6FA;
  196. }
  197. .c-row {
  198. display: -webkit-box;
  199. display: -webkit-flex;
  200. display: flex;
  201. -webkit-box-align: center;
  202. -webkit-align-items: center;
  203. align-items: center;
  204. padding: 20rpx 30rpx;
  205. position: relative;
  206. }
  207. .con-list {
  208. -webkit-box-flex: 1;
  209. -webkit-flex: 1;
  210. flex: 1;
  211. display: -webkit-box;
  212. display: -webkit-flex;
  213. display: flex;
  214. -webkit-box-orient: vertical;
  215. -webkit-box-direction: normal;
  216. -webkit-flex-direction: column;
  217. flex-direction: column;
  218. color: #303133;
  219. line-height: 40rpx;
  220. text-align: right;
  221. padding-right: 20rpx;
  222. font-size: 14px;
  223. }
  224. .title{
  225. font-size: 18px;
  226. font-weight: 600;
  227. }
  228. .buyup {
  229. background-color: #FFFFFF;
  230. border-radius: 20px;
  231. margin-top: 10px;
  232. }
  233. .buylow {
  234. background-color: #FFFFFF;
  235. border-radius: 20px;
  236. margin-top: 10px;
  237. }
  238. </style>