acquisition_settlement_details.vue 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209
  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) {
  62. this.id = options.id
  63. },
  64. onShow(options) {
  65. this.getList()
  66. },
  67. computed: {
  68. ...mapState(['hasLogin', 'userInfo']),
  69. },
  70. methods: {
  71. getList() {
  72. //查仓库名
  73. this.$api.doRequest('get', '/paymentManagement/getInfo', {
  74. id: this.id
  75. }).then(res => {
  76. if (res.data.code == 200) {
  77. this.status = res.data.data.approveStatus
  78. this.updateDate = res.data.data.updateDate
  79. this.warehouseName = res.data.data.warehouseName
  80. this.$api.doRequest('get', '/paymentManagement/selectPaymentManagement', {
  81. currentPage: this.currentPage,
  82. pageSize: this.pageSize,
  83. warehouseName: res.data.data.warehouseName,
  84. managementType: 1
  85. }).then(res1 => {
  86. if (res1.data.code == 200) {
  87. this.List = res1.data.data.records
  88. }
  89. })
  90. }
  91. })
  92. },
  93. fanHui(){
  94. uni.navigateBack()
  95. }
  96. }
  97. }
  98. </script>
  99. <style scoped lang="scss">
  100. .warp {
  101. margin: 10rpx;
  102. padding: 20rpx 20rpx 240rpx 20rpx;
  103. }
  104. .content1 {
  105. margin-top: 30rpx;
  106. .content-item {
  107. border-radius: 20rpx;
  108. background: white;
  109. padding: 40rpx 20rpx;
  110. margin-bottom: 30rpx;
  111. }
  112. .title {
  113. font-size: 32rpx;
  114. font-weight: 600;
  115. color: #333333;
  116. margin: 30rpx 0;
  117. }
  118. .goodsInfoCss {
  119. font-size: 28rpx;
  120. font-weight: 600;
  121. color: #878C9C;
  122. margin: 26rpx 10rpx;
  123. }
  124. .priceCss {
  125. font-size: 40rpx;
  126. margin: 26rpx 10rpx;
  127. color: #22C572;
  128. font-weight: 600;
  129. }
  130. .row {
  131. display: flex;
  132. justify-content: space-between;
  133. border-bottom: 1px solid #EEEEEE;
  134. .right,
  135. input {
  136. font-size: 28rpx;
  137. // color: #333333;
  138. }
  139. }
  140. }
  141. .bottom-btn {
  142. width: 100%;
  143. position: fixed;
  144. bottom: 0;
  145. display: flex;
  146. z-index: 2;
  147. left: 0;
  148. background-color: #f8f8f8;
  149. flex-direction: column;
  150. .btn1,
  151. .btn2 {
  152. width: 100%;
  153. margin-bottom: 26rpx;
  154. border-radius: 90rpx;
  155. }
  156. .btn1 {
  157. background: white;
  158. color: #00C265;
  159. }
  160. }
  161. .row1 {
  162. border-bottom: 0 !important;
  163. }
  164. .topInfo {
  165. height: 210rpx;
  166. background: linear-gradient(270deg, #22C572 0%, #34DE8A 100%);
  167. padding: 30rpx;
  168. .topInfo-item {
  169. height: 150rpx;
  170. background-color: #FFFFFF;
  171. border-radius: 20rpx;
  172. padding: 40rpx;
  173. .logo {
  174. width: 40rpx;
  175. height: 40rpx;
  176. margin-top: 8rpx;
  177. }
  178. .infoText {
  179. font-size: 36rpx;
  180. font-weight: 600;
  181. margin-left: 20rpx;
  182. }
  183. .infoData {
  184. color: #878C9C;
  185. font-size: 26rpx;
  186. margin-top: 10rpx;
  187. }
  188. }
  189. }
  190. </style>