acquisition_settlement_details.vue 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210
  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="status == '已驳回'"
  8. style="height: 40rpx;"></image><!-- 驳回 -->
  9. <image src="../../../static/img/tongguo.png" mode="" v-if="status == '已通过'"
  10. style="height: 40rpx;"></image><!-- 通过 -->
  11. <image src="../../../static/img/daishenhe.png" mode=""
  12. v-if="status == '审核中' || status == '待决策人审核'"
  13. style="height: 40rpx;"></image><!-- 待审核 -->
  14. </view>
  15. <view class="infoText">{{status}}</view>
  16. </view>
  17. <view class="infoData">{{updateDate}}</view>
  18. </view>
  19. </view>
  20. <view class='content1'>
  21. <view class='row content-item'>
  22. <view class="left" style="color: #878C9C;">仓库</view>
  23. <view class="right">{{warehouseName}}</view>
  24. </view>
  25. <view class="content-item">
  26. <view v-for="(item,index) in List">
  27. <view class='row row1'>
  28. <view class="left title">{{item.paymentNo}}</view>
  29. <view class="right title">{{item.carNo}}</view>
  30. </view>
  31. <view class='row'>
  32. <view class="left goodsInfoCss">{{item.goodsName}}({{item.netWeight}}kg -
  33. ¥{{item.tidalGrainPrice}})</view>
  34. <view class="right priceCss">¥{{item.amountIngPayable}}</view>
  35. </view>
  36. </view>
  37. </view>
  38. </view>
  39. <u-toast ref="uToast" />
  40. <view style='padding:10px;' class='flex bottom-btn'>
  41. <u-button @click='fanHui' type="success" class="btn2">返回</u-button>
  42. </view>
  43. </view>
  44. </template>
  45. <script>
  46. import {
  47. mapState
  48. } from 'vuex';
  49. export default {
  50. data() {
  51. return {
  52. id: "",
  53. currentPage: 1,
  54. pageSize: 100,
  55. List: [],
  56. status: "",
  57. updateDate:"",
  58. warehouseName:"",
  59. }
  60. },
  61. onLoad(options) {debugger
  62. this.id = options.id
  63. },
  64. onShow(options) {
  65. debugger
  66. this.getList()
  67. },
  68. computed: {
  69. ...mapState(['hasLogin', 'userInfo']),
  70. },
  71. methods: {
  72. getList() {
  73. //查仓库名
  74. this.$api.doRequest('get', '/paymentManagement/getInfo', {
  75. id: this.id
  76. }).then(res => {
  77. if (res.data.code == 200) {
  78. this.status = res.data.data.approveStatus
  79. this.updateDate = res.data.data.updateDate
  80. this.warehouseName = res.data.data.warehouseName
  81. this.$api.doRequest('get', '/paymentManagement/selectPaymentManagement', {
  82. currentPage: this.currentPage,
  83. pageSize: this.pageSize,
  84. warehouseName: res.data.data.warehouseName,
  85. managementType: 1
  86. }).then(res1 => {
  87. if (res1.data.code == 200) {
  88. this.List = res1.data.data.records
  89. }
  90. })
  91. }
  92. })
  93. },
  94. fanHui(){
  95. uni.navigateBack()
  96. }
  97. }
  98. }
  99. </script>
  100. <style scoped lang="scss">
  101. .warp {
  102. margin: 10rpx;
  103. padding: 20rpx 20rpx 240rpx 20rpx;
  104. }
  105. .content1 {
  106. margin-top: 30rpx;
  107. .content-item {
  108. border-radius: 20rpx;
  109. background: white;
  110. padding: 40rpx 20rpx;
  111. margin-bottom: 30rpx;
  112. }
  113. .title {
  114. font-size: 32rpx;
  115. font-weight: 600;
  116. color: #333333;
  117. margin: 30rpx 0;
  118. }
  119. .goodsInfoCss {
  120. font-size: 28rpx;
  121. font-weight: 600;
  122. color: #878C9C;
  123. margin: 26rpx 10rpx;
  124. }
  125. .priceCss {
  126. font-size: 40rpx;
  127. margin: 26rpx 10rpx;
  128. color: #22C572;
  129. font-weight: 600;
  130. }
  131. .row {
  132. display: flex;
  133. justify-content: space-between;
  134. border-bottom: 1px solid #EEEEEE;
  135. .right,
  136. input {
  137. font-size: 28rpx;
  138. // color: #333333;
  139. }
  140. }
  141. }
  142. .bottom-btn {
  143. width: 100%;
  144. position: fixed;
  145. bottom: 0;
  146. display: flex;
  147. z-index: 2;
  148. left: 0;
  149. background-color: #f8f8f8;
  150. flex-direction: column;
  151. .btn1,
  152. .btn2 {
  153. width: 100%;
  154. margin-bottom: 26rpx;
  155. border-radius: 90rpx;
  156. }
  157. .btn1 {
  158. background: white;
  159. color: #00C265;
  160. }
  161. }
  162. .row1 {
  163. border-bottom: 0 !important;
  164. }
  165. .topInfo {
  166. height: 210rpx;
  167. background: linear-gradient(270deg, #22C572 0%, #34DE8A 100%);
  168. padding: 30rpx;
  169. .topInfo-item {
  170. height: 150rpx;
  171. background-color: #FFFFFF;
  172. border-radius: 20rpx;
  173. padding: 40rpx;
  174. .logo {
  175. width: 40rpx;
  176. height: 40rpx;
  177. margin-top: 8rpx;
  178. }
  179. .infoText {
  180. font-size: 36rpx;
  181. font-weight: 600;
  182. margin-left: 20rpx;
  183. }
  184. .infoData {
  185. color: #878C9C;
  186. font-size: 26rpx;
  187. margin-top: 10rpx;
  188. }
  189. }
  190. }
  191. </style>