acquisition_settlement_details.vue 4.3 KB

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