sellDetails.vue 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390
  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. if(res.errmsg){
  237. uni.showToast({
  238. title: res.errmsg,
  239. icon: 'none',
  240. duration: 2000
  241. })
  242. }
  243. else{
  244. uni.showToast({
  245. title: "系统异常,请联系管理员",
  246. icon: 'none',
  247. duration: 2000
  248. })
  249. }
  250. });
  251. },
  252. regionpicker(e) {
  253. this.deptList.sendPrivate = e.province.label
  254. this.deptList.sendCity = e.city.label
  255. this.deptList.sendArea = e.area.label
  256. this.region = e.province.label + '-' + e.city.label + '-' + e.area.label
  257. },
  258. regionchange() {
  259. this.show = true
  260. },
  261. regionpicker1(e) {
  262. this.deptList.outputPrivate = e.province.label
  263. this.deptList.outputCity = e.city.label
  264. this.region1 = e.province.label + '-' + e.city.label
  265. },
  266. regionchange1() {
  267. this.show1 = true
  268. },
  269. checkedbox(e) {
  270. this.checked = !this.checked
  271. },
  272. typeChange(e) {
  273. this.typesIndex = e.detail.value
  274. this.types = this.typesType[this.typesIndex];
  275. this.deptList.procurementPlanType = this.typesType[this.typesIndex];
  276. if (this.typesIndex == 0) {
  277. this.deptList.priceType = '定价采购'
  278. } else {
  279. this.deptList.priceType = '期货盘面价+基差'
  280. }
  281. },
  282. navToDetailPage() {
  283. // if (index == 1) {
  284. uni.navigateTo({
  285. url: `/pageD/myRelease/Identity_switching`
  286. })
  287. },
  288. // liChange(e) {
  289. // this.liIndex = e.detail.value
  290. // this.litypes = this.liType[this.liIndex];
  291. // this.deptList.grain = this.liType[this.liIndex]
  292. // },
  293. // pinChange(e) {
  294. // this.pinIndex = e.detail.value
  295. // this.pintypes = this.pinType[this.pinIndex];
  296. // this.deptList.grade = this.pinType[this.pinIndex]
  297. // },
  298. // nianChange(e) {
  299. // this.nianIndex = e.detail.value
  300. // this.niantypes = this.nianType[this.nianIndex];
  301. // this.deptList.outputYear = this.baoType[this.baoIndex]
  302. // },
  303. // baoChange(e) {
  304. // this.baoIndex = e.detail.value
  305. // this.baotypes = this.baoType[this.baoIndex];
  306. // this.deptList.packingType = this.chengType[this.chengIndex];
  307. // },
  308. // chengChange(e) {
  309. // this.chengIndex = e.detail.value
  310. // this.chengtypes = this.chengType[this.chengIndex];
  311. // this.deptList.freightPayer = this.chengType[this.chengIndex];
  312. // }
  313. }
  314. }
  315. </script>
  316. <style>
  317. .center {
  318. padding: 10px 20px;
  319. background-color: #F5F6FA;
  320. }
  321. .c-row {
  322. display: -webkit-box;
  323. display: -webkit-flex;
  324. display: flex;
  325. -webkit-box-align: center;
  326. -webkit-align-items: center;
  327. align-items: center;
  328. padding: 20rpx 30rpx;
  329. position: relative;
  330. }
  331. .con-list {
  332. -webkit-box-flex: 1;
  333. -webkit-flex: 1;
  334. flex: 1;
  335. display: -webkit-box;
  336. display: -webkit-flex;
  337. display: flex;
  338. -webkit-box-orient: vertical;
  339. -webkit-box-direction: normal;
  340. -webkit-flex-direction: column;
  341. flex-direction: column;
  342. color: #AFB3BF;
  343. line-height: 40rpx;
  344. text-align: right;
  345. padding-right: 20rpx;
  346. font-size: 14px;
  347. }
  348. .buyup {
  349. background-color: #FFFFFF;
  350. border-radius: 20px;
  351. margin-top: 10px;
  352. }
  353. .buylow {
  354. background-color: #FFFFFF;
  355. border-radius: 20px;
  356. margin-top: 10px;
  357. }
  358. .btn {
  359. border-radius: 20px;
  360. margin-top: 10px;
  361. background-color: #22C572;
  362. color: #FFFFFF;
  363. }
  364. .validate {
  365. width: 100px;
  366. height: 32px;
  367. background-color: #F5F6F9;
  368. color: #AFB3BF;
  369. border-radius: 10px;
  370. border: none;
  371. text-align: center;
  372. line-height: 30px;
  373. }
  374. .title {
  375. color: #333333;
  376. font-size: 16px;
  377. font-weight: 600;
  378. }
  379. </style>