buyDetails.vue 6.3 KB

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