buyDetails.vue 7.3 KB

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