purchase_settlement_details.vue 5.1 KB

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