sellDetails.vue 7.9 KB

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