sellDetails.vue 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381
  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. {{deptList.seller}}
  11. </view>
  12. </view>
  13. <view class="c-row b-b">
  14. <text class="tit">标题</text>
  15. <view class="con-list">
  16. {{deptList.title}}
  17. </view>
  18. </view>
  19. <view class="c-row b-b">
  20. <text class="tit">货名</text>
  21. <view class="con-list">
  22. {{deptList.goodsName}}
  23. </view>
  24. </view>
  25. <view class="c-row b-b">
  26. <text class="tit">出货量(吨)</text>
  27. <view class="con-list">
  28. {{deptList.plannedSaleVolume}}
  29. </view>
  30. </view>
  31. <view class="c-row b-b">
  32. <text class="tit">最小成交量(吨)</text>
  33. <view class="con-list">
  34. {{deptList.minimumVolume}}
  35. </view>
  36. </view>
  37. <view class="c-row b-b">
  38. <text class="tit">类型</text>
  39. <view class="con-list">
  40. {{deptList.salePlanType}}
  41. </view>
  42. </view>
  43. <view class="c-row b-b">
  44. <text class="tit">价格类型</text>
  45. <view class="con-list">
  46. {{deptList.priceType}}
  47. </view>
  48. </view>
  49. <view class="c-row b-b" v-if="deptList.salePlanType == '现货'">
  50. <text class="tit">单价(元/吨)</text>
  51. <view class="con-list">
  52. {{deptList.salePrice}}
  53. </view>
  54. </view>
  55. <view class="c-row b-b" v-if="deptList.salePlanType == '期货'">
  56. <text class="tit">基差(元/吨)</text>
  57. <view class="con-list">
  58. {{deptList.basisPrice}}
  59. </view>
  60. </view>
  61. <view class="c-row b-b">
  62. <text class="tit">产地</text>
  63. <view class="con-list">
  64. {{deptList.outputPrivate}}{{deptList.outputCity}}
  65. </view>
  66. </view>
  67. <view class="c-row b-b">
  68. <text class="tit">发货地区</text>
  69. <view class="con-list">
  70. {{deptList.sendPrivate}}{{deptList.sendCity}}{{deptList.sendArea}}
  71. </view>
  72. </view>
  73. <view class="c-row ">
  74. <text class="tit">卖方手机号</text>
  75. <view class="con-list">
  76. {{deptList.sellerPhone}}
  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. {{deptList.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. {{deptList.bulkDensity}}
  94. </view>
  95. </view>
  96. <view class="c-row b-b">
  97. <text class="tit">热损伤(%)<= </text>
  98. <view class="con-list">
  99. {{deptList.jiaorenli}}
  100. </view>
  101. </view>
  102. <view class="c-row b-b">
  103. <text class="tit">杂质(%)<= </text>
  104. <view class="con-list">
  105. {{deptList.impurity}}
  106. </view>
  107. </view>
  108. <view class="c-row b-b">
  109. <text class="tit">霉变粒(%)<= </text>
  110. <view class="con-list">
  111. {{deptList.mildewGrain}}
  112. </view>
  113. </view>
  114. <view class="c-row b-b">
  115. <text class="tit">不完整粒(%)<= </text>
  116. <view class="con-list">
  117. {{deptList.imperfectGrain}}
  118. </view>
  119. </view>
  120. <view class="c-row b-b">
  121. <text class="tit">蛋白(%)<= </text>
  122. <view class="con-list">
  123. {{deptList.protein}}
  124. </view>
  125. </view>
  126. <view class="c-row b-b">
  127. <text class="tit">粒型 </text>
  128. <view class="con-list">
  129. {{deptList.grain}}
  130. </view>
  131. </view>
  132. <view class="c-row b-b">
  133. <text class="tit">品级 </text>
  134. <view class="con-list">
  135. {{deptList.grade}}
  136. </view>
  137. </view>
  138. <view class="c-row b-b">
  139. <text class="tit">产出年份</text>
  140. <view class="con-list">
  141. {{deptList.outputYear}}
  142. </view>
  143. </view>
  144. <view class="c-row b-b">
  145. <text class="tit">包装方式</text>
  146. <view class="con-list">
  147. {{deptList.packingType}}
  148. </view>
  149. </view>
  150. <view v-if="deptList.packingType == '大袋' || deptList.packingType == '小袋'" class="c-row b-b">
  151. <text class="tit">袋装备注</text>
  152. <view class="con-list">
  153. {{deptList.baggingNotes}}
  154. </view>
  155. </view>
  156. <view class="c-row">
  157. <text class="tit">运费承担方</text>
  158. <view class="con-list">
  159. {{deptList.freightPayer == null || deptList.freightPayer == "" ? "暂无信息":deptList.freightPayer }}
  160. </view>
  161. </view>
  162. </view>
  163. </view>
  164. </template>
  165. <script>
  166. import {
  167. mapState
  168. } from 'vuex';
  169. export default {
  170. data() {
  171. return {
  172. types: '',
  173. goods: {},
  174. typesType: ["现货", "期货"],
  175. typesIndex: 0,
  176. deptList: {
  177. priceType: "定价采购",
  178. procurementPlanType: "现货",
  179. grain: "塔粮",
  180. grade: "不限(默认)",
  181. outputYear: "2020",
  182. packingType: "不限(默认)",
  183. freightPayer: "",
  184. },
  185. params: {
  186. province: true,
  187. city: true,
  188. area: true,
  189. },
  190. params1: {
  191. province: true,
  192. city: true,
  193. },
  194. checked: true,
  195. insertProcurementPlanInfo: {},
  196. liIndex: 0,
  197. liType: ['塔粮', '筛粮', '中粒', '大粒'],
  198. pinIndex: 0,
  199. pinType: ['不限(默认)', '一等品', '二等品', '三等品', '等外'],
  200. nianIndex: 3,
  201. nianType: ['2023', '2022', '2021', '2020', '2019', '2018', '2017', '2016', '2015', '2014', '2013', '2012',
  202. '2011'
  203. ],
  204. show: false,
  205. show1: false,
  206. region: '请选择收货地区',
  207. region1: '请选择产地',
  208. baoIndex: 0,
  209. baoType: ['不限(默认)', '散装', '大袋', '小袋'],
  210. chengIndex: -1,
  211. chengType: ['可议', '买方承担', '卖方承担']
  212. }
  213. },
  214. computed: {
  215. ...mapState(['hasLogin', 'userInfo'])
  216. },
  217. onLoad(options) {
  218. this.getList(options)
  219. },
  220. methods: {
  221. getList(options) {
  222. this.$api.doRequest('get', '/salePlanInfo/getSalePlanInfo', {
  223. id: options.id
  224. }).then(res => {
  225. if (res.data.code == 200) {
  226. this.deptList = res.data.data
  227. } else {
  228. uni.showToast({
  229. title: res.data.message,
  230. icon: 'none',
  231. duration: 2000
  232. })
  233. }
  234. })
  235. .catch(res => {
  236. uni.showToast({
  237. title: res.errmsg,
  238. icon: 'none',
  239. duration: 2000
  240. })
  241. });
  242. },
  243. regionpicker(e) {
  244. this.deptList.sendPrivate = e.province.label
  245. this.deptList.sendCity = e.city.label
  246. this.deptList.sendArea = e.area.label
  247. this.region = e.province.label + '-' + e.city.label + '-' + e.area.label
  248. },
  249. regionchange() {
  250. this.show = true
  251. },
  252. regionpicker1(e) {
  253. this.deptList.outputPrivate = e.province.label
  254. this.deptList.outputCity = e.city.label
  255. this.region1 = e.province.label + '-' + e.city.label
  256. },
  257. regionchange1() {
  258. this.show1 = true
  259. },
  260. checkedbox(e) {
  261. this.checked = !this.checked
  262. },
  263. typeChange(e) {
  264. this.typesIndex = e.detail.value
  265. this.types = this.typesType[this.typesIndex];
  266. this.deptList.procurementPlanType = this.typesType[this.typesIndex];
  267. if (this.typesIndex == 0) {
  268. this.deptList.priceType = '定价采购'
  269. } else {
  270. this.deptList.priceType = '期货盘面价+基差'
  271. }
  272. },
  273. navToDetailPage() {
  274. // if (index == 1) {
  275. uni.navigateTo({
  276. url: `/pageD/myRelease/Identity_switching`
  277. })
  278. },
  279. // liChange(e) {
  280. // this.liIndex = e.detail.value
  281. // this.litypes = this.liType[this.liIndex];
  282. // this.deptList.grain = this.liType[this.liIndex]
  283. // },
  284. // pinChange(e) {
  285. // this.pinIndex = e.detail.value
  286. // this.pintypes = this.pinType[this.pinIndex];
  287. // this.deptList.grade = this.pinType[this.pinIndex]
  288. // },
  289. // nianChange(e) {
  290. // this.nianIndex = e.detail.value
  291. // this.niantypes = this.nianType[this.nianIndex];
  292. // this.deptList.outputYear = this.baoType[this.baoIndex]
  293. // },
  294. // baoChange(e) {
  295. // this.baoIndex = e.detail.value
  296. // this.baotypes = this.baoType[this.baoIndex];
  297. // this.deptList.packingType = this.chengType[this.chengIndex];
  298. // },
  299. // chengChange(e) {
  300. // this.chengIndex = e.detail.value
  301. // this.chengtypes = this.chengType[this.chengIndex];
  302. // this.deptList.freightPayer = this.chengType[this.chengIndex];
  303. // }
  304. }
  305. }
  306. </script>
  307. <style>
  308. .center {
  309. padding: 10px 20px;
  310. background-color: #F5F6FA;
  311. }
  312. .c-row {
  313. display: -webkit-box;
  314. display: -webkit-flex;
  315. display: flex;
  316. -webkit-box-align: center;
  317. -webkit-align-items: center;
  318. align-items: center;
  319. padding: 20rpx 30rpx;
  320. position: relative;
  321. }
  322. .con-list {
  323. -webkit-box-flex: 1;
  324. -webkit-flex: 1;
  325. flex: 1;
  326. display: -webkit-box;
  327. display: -webkit-flex;
  328. display: flex;
  329. -webkit-box-orient: vertical;
  330. -webkit-box-direction: normal;
  331. -webkit-flex-direction: column;
  332. flex-direction: column;
  333. color: #AFB3BF;
  334. line-height: 40rpx;
  335. text-align: right;
  336. padding-right: 20rpx;
  337. font-size: 14px;
  338. }
  339. .buyup {
  340. background-color: #FFFFFF;
  341. border-radius: 20px;
  342. margin-top: 10px;
  343. }
  344. .buylow {
  345. background-color: #FFFFFF;
  346. border-radius: 20px;
  347. margin-top: 10px;
  348. }
  349. .btn {
  350. border-radius: 20px;
  351. margin-top: 10px;
  352. background-color: #22C572;
  353. color: #FFFFFF;
  354. }
  355. .validate {
  356. width: 100px;
  357. height: 32px;
  358. background-color: #F5F6F9;
  359. color: #AFB3BF;
  360. border-radius: 10px;
  361. border: none;
  362. text-align: center;
  363. line-height: 30px;
  364. }
  365. .title {
  366. color: #333333;
  367. font-size: 16px;
  368. font-weight: 600;
  369. }
  370. </style>