purchase_settlement_details.vue 4.7 KB

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