warehouse_details.vue 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230
  1. <template>
  2. <view class="warp">
  3. <view class="topInfo">
  4. <view class="topInfo-item">
  5. <view class="flex info">
  6. <view class="logo">
  7. <image src="../../../static/img/reject.png" mode="" v-if="list.status == '已驳回'"
  8. style="height: 40rpx;"></image><!-- 驳回 -->
  9. <image src="../../../static/img/tongguo.png" mode="" v-if="list.status == '已通过'"
  10. style="height: 40rpx;"></image><!-- 通过 -->
  11. <image src="../../../static/img/daishenhe.png" mode="" v-if="list.status == '审核中'"
  12. style="height: 40rpx;"></image><!-- 待审核 -->
  13. </view>
  14. <view class="infoText">{{list.status}}</view>
  15. </view>
  16. <view class="infoData">{{list.updateDate}}</view>
  17. </view>
  18. </view>
  19. <view class='content1'>
  20. <view class="title">基本信息</view>
  21. <view class='row'>
  22. <view class="left">仓库</view>
  23. <view class="right">{{list.warehouseName}}</view>
  24. </view>
  25. <view class='row'>
  26. <view class="left">货名</view>
  27. <view class="right">{{list.goodsName}}</view>
  28. </view>
  29. <view class='row'>
  30. <view class="left">基准水分(%)</view>
  31. <view class="right">{{list.waterBase}}</view>
  32. </view>
  33. <view class='row'>
  34. <view class="left">干粮水分(%)</view>
  35. <view class="right">{{list.waterMin}}</view>
  36. </view>
  37. <view class='row'>
  38. <view class="left">水分上限(%)</view>
  39. <view class="right">{{list.waterMax}}</view>
  40. </view>
  41. <view v-if="list.paramType == '2'" class='row'>
  42. <view class="left">扣重比</view>
  43. <view class="right">{{list.deductWeight}}</view>
  44. </view>
  45. <view class='row'>
  46. <view class="left">干粮收购价格(元/公斤)</view>
  47. <view class="right">{{list.dryGrainPrice}}</view>
  48. </view>
  49. <view class='row boder'>
  50. <view class="left">销售上限</view>
  51. <view class="right">{{list.saleLimit}}</view>
  52. </view>
  53. </view>
  54. <view class="content2">
  55. <view class="title">粮价设置</view>
  56. <view v-for="(item,index) in list.details" :key="index">
  57. <view class="row">
  58. <view class="left">等级</view>
  59. <view class="right">{{item.level}}</view>
  60. </view>
  61. <view v-if="list.paramType == '2'" class="row">
  62. <view class="left">基准单价(元/公斤)</view>
  63. <view class="right">{{item.basePrice}}</view>
  64. </view>
  65. <view class="row" v-for="(item1,index1) in item.modelList" :key="index1" :class="index1==item.modelList.length-1?'boder':''">
  66. <view v-if="list.paramType == '2'" class="left">{{item1.startWater}}-{{item1.endWater}}降幅(元/0.1%)</view>
  67. <view v-else class="left">{{item1.startWater}}-{{item1.endWater}}扣重比</view>
  68. <view class="right">{{item1.price}}</view>
  69. </view>
  70. </view>
  71. </view>
  72. <u-toast ref="uToast" />
  73. <view style='padding:10px;' class='flex bottom-btn'>
  74. <u-button @click='fanHui' type="success" class="btn2">返回</u-button>
  75. </view>
  76. </view>
  77. </template>
  78. <script>
  79. import {
  80. mapState
  81. } from 'vuex';
  82. export default {
  83. name: "task",
  84. data() {
  85. return {
  86. show: false,
  87. id: 0,
  88. list: {},
  89. form: {
  90. name: '',
  91. intro: '',
  92. sex: ''
  93. },
  94. radio: '',
  95. pcUserInfo: uni.getStorageSync('pcUserInfo'),
  96. switchVal: false,
  97. contractNoList: []
  98. };
  99. },
  100. computed: {
  101. ...mapState(['hasLogin', 'userInfo'])
  102. },
  103. onLoad(options) {
  104. this.id = options.id
  105. },
  106. onShow() {
  107. var that = this
  108. this.$nextTick(function() {
  109. that.getData()
  110. })
  111. },
  112. methods: {
  113. getData() {
  114. var data = []
  115. this.$api.doRequest('get', '/purchasePrice/purchasePriceLook', {
  116. id: this.id
  117. }).then(res => {
  118. if (res.data.code == 200) {
  119. this.list = res.data.data
  120. }
  121. })
  122. },
  123. confirm(item) {
  124. this.list.contractNo = item[0].value
  125. },
  126. fanHui(){
  127. uni.navigateBack()
  128. }
  129. }
  130. }
  131. </script>
  132. <style scoped lang="scss">
  133. .warp {
  134. margin: 10rpx;
  135. padding: 20rpx 20rpx 330rpx 20rpx;
  136. }
  137. .content1,
  138. .content2 {
  139. border-radius: 20rpx;
  140. background: white;
  141. padding: 20rpx;
  142. .title {
  143. font-size: 28rpx;
  144. font-weight: 600;
  145. color: #333333;
  146. text-align: left;
  147. }
  148. .row {
  149. display: flex;
  150. justify-content: space-between;
  151. border-bottom: 1px solid #EEEEEE;
  152. padding: 21rpx 0;
  153. .right,
  154. input {
  155. font-size: 28rpx;
  156. color: #333333;
  157. }
  158. }
  159. }
  160. .content2 {
  161. margin-top: 20rpx;
  162. }
  163. .bottom-btn {
  164. width: 100%;
  165. position: fixed;
  166. bottom:0;
  167. display: flex;
  168. z-index: 2;
  169. left: 0;
  170. background-color: #f8f8f8;
  171. flex-direction: column;
  172. .btn1,.btn2{
  173. width: 100%;
  174. margin-bottom: 26rpx;
  175. border-radius: 90rpx;
  176. }
  177. .btn1{
  178. background: white;
  179. color: #00C265;
  180. }
  181. }
  182. .submit {
  183. width: 40%;
  184. background: #22C572;
  185. border-radius: 10rpx;
  186. }
  187. .boder{
  188. border:0;
  189. border-bottom: 0!important;
  190. }
  191. .topInfo {
  192. height: 210rpx;
  193. background: linear-gradient(270deg, #22C572 0%, #34DE8A 100%);
  194. padding: 30rpx;
  195. .topInfo-item {
  196. height: 150rpx;
  197. background-color: #FFFFFF;
  198. border-radius: 20rpx;
  199. padding: 40rpx;
  200. .logo {
  201. width: 40rpx;
  202. height: 40rpx;
  203. margin-top: 8rpx;
  204. }
  205. .infoText {
  206. font-size: 36rpx;
  207. font-weight: 600;
  208. margin-left: 20rpx;
  209. }
  210. .infoData {
  211. color: #878C9C;
  212. font-size: 26rpx;
  213. margin-top: 10rpx;
  214. }
  215. }
  216. }
  217. </style>