freight_settlement_details.vue 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254
  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.status == '已驳回'"
  8. style="height: 40rpx;"></image><!-- 驳回 -->
  9. <image src="../../../static/img/tongguo.png" mode="" v-if="list.status == '已通过'"
  10. style="height: 40rpx;"></image><!-- 通过 -->
  11. </view>
  12. <view class="infoText">{{list.status}}</view>
  13. </view>
  14. <view class="infoData">{{list.updateDate}}</view>
  15. </view>
  16. </view>
  17. <view class="content">
  18. <view class="top">
  19. <view>合同编号</view>
  20. <view>{{list.contractNo}}</view>
  21. </view>
  22. <view class="car-container">
  23. <view class="car-num title" v-if="list.tranTypeKey== '1'">{{list.carNo}} ({{list.tranCarNo}})</view>
  24. <view class="car-num title" v-if="list.tranTypeKey== '2'">车厢号{{list.boxNo}}</view>
  25. <view class="car-num title" v-if="list.tranTypeKey== '3'&&list.shipType== '散船'">仓位号{{list.boxNo}}</view>
  26. <view class="car-num title" v-if="list.tranTypeKey== '3'&&list.shipType== '集装箱'">箱号{{list.boxNo}}</view>
  27. <view class="car-type-item">
  28. <view class="left">装</view>
  29. <view class="textInfo">{{list.loadingWeight}}吨</view>
  30. </view>
  31. <view class="car-type-item">
  32. <view class="center">卸</view>
  33. <view class="textInfo">{{list.unloadingWeight}}吨</view>
  34. </view>
  35. <view class="car-type-item">
  36. <view class="right">结</view>
  37. <view class="textInfo">{{list.settlementWeight}}吨</view>
  38. </view>
  39. <view class="car-type-item">
  40. <view class="left">运</view>
  41. <view class="textInfo">{{list.transportPrice}}元/吨</view>
  42. </view>
  43. <view class="car-type-item">
  44. <view class="center">扣</view>
  45. <view class="textInfo">{{list.deductionAmount}}元</view>
  46. </view>
  47. <view class="car-type-item">
  48. <view class="right">付</view>
  49. <view class="textInfo">{{list.amountIngPayable}}元</view>
  50. </view>
  51. </view>
  52. </view>
  53. <u-toast ref="uToast" />
  54. <view style='padding:10px;' class='flex bottom-btn'>
  55. <u-button @click="fanHui" type="success" class="btn1" hover-class='none'>返回</u-button>
  56. </view>
  57. </view>
  58. </template>
  59. <script>
  60. export default {
  61. data() {
  62. return {
  63. currentPage: 1,
  64. pageSize: 10,
  65. list: {
  66. approveStatus: "",
  67. },
  68. }
  69. },
  70. onLoad(options) {
  71. this.id = options.id
  72. this.getList()
  73. },
  74. methods: {
  75. getList() {
  76. this.$api.doRequest('get', '/tranSettlementReport/getInfo', {
  77. id: this.id
  78. }).then(res => {
  79. this.contractNo = res.data.data.contractNo
  80. this.carId = res.data.data.carId
  81. if (res.data.code == 200) {
  82. this.$api.doRequest('get', '/tranSettlementReport/selectTranSettlementReport', {
  83. compId: "2710b21efc1e4393930c5dc800010dc4",
  84. currentPage: this.currentPage,
  85. pageSize: this.pageSize,
  86. contractNo: this.contractNo,
  87. carId: this.carId,
  88. }).then(res => {
  89. if (res.data.code == 200) {
  90. this.list = res.data.data.records[0]
  91. }
  92. })
  93. }
  94. })
  95. },
  96. fanHui() {
  97. uni.navigateBack()
  98. }
  99. }
  100. }
  101. </script>
  102. <style scoped lang="scss">
  103. .container {
  104. margin: 10rpx;
  105. padding: 20rpx 20rpx 230rpx 20rpx;
  106. }
  107. .content {
  108. .top {
  109. display: flex;
  110. justify-content: space-between;
  111. border-radius: 20rpx;
  112. background: white;
  113. padding: 30rpx 20rpx;
  114. font-size: 36rpx;
  115. margin-top: 30rpx;
  116. }
  117. .title {
  118. font-size: 28rpx;
  119. font-weight: 600;
  120. color: #333333;
  121. text-align: left;
  122. margin-bottom: 30rpx;
  123. }
  124. .car-container {
  125. padding: 10rpx 20rpx;
  126. border-radius: 20rpx;
  127. background: white;
  128. margin: 30rpx 0;
  129. // border-bottom: 2rpx solid #EEEEEE;
  130. }
  131. .car-type-item {
  132. display: inline-flex;
  133. // justify-content: center;
  134. width: 33.33%;
  135. margin-bottom: 40rpx;
  136. }
  137. .title {
  138. font-size: 36rpx;
  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. .submit {
  162. width: 40%;
  163. background: #22C572;
  164. border-radius: 10rpx;
  165. }
  166. .left {
  167. background: #FEECE6;
  168. color: #FE6430;
  169. }
  170. .center {
  171. background: #EBEEFA;
  172. color: #5C76DF;
  173. }
  174. .right {
  175. background: #E9F8F0;
  176. color: #22C572;
  177. }
  178. .left,
  179. .center,
  180. .right {
  181. width: 50rpx;
  182. height: 50rpx;
  183. text-align: center;
  184. line-height: 50rpx;
  185. border-radius: 10rpx;
  186. }
  187. .textInfo {
  188. margin: 6rpx 0 0 10rpx;
  189. }
  190. .topInfo {
  191. height: 210rpx;
  192. background: linear-gradient(270deg, #22C572 0%, #34DE8A 100%);
  193. padding: 30rpx;
  194. .topInfo-item {
  195. height: 158rpx;
  196. background-color: #FFFFFF;
  197. border-radius: 20rpx;
  198. padding: 40rpx;
  199. .logo {
  200. width: 40rpx;
  201. height: 40rpx;
  202. margin-top: 8rpx;
  203. }
  204. .infoText {
  205. font-size: 36rpx;
  206. font-weight: 600;
  207. margin-left: 20rpx;
  208. }
  209. .infoData {
  210. color: #878C9C;
  211. font-size: 26rpx;
  212. margin-top: 10rpx;
  213. }
  214. }
  215. }
  216. .rejectInfoCss {
  217. border: 1px solid #ccc;
  218. border-radius: 10rpx;
  219. background-color: #F9F9FA;
  220. // height: 100px;
  221. overflow-y: auto;
  222. margin: 30rpx;
  223. }
  224. .rejectText {
  225. text-align: center;
  226. }
  227. /deep/.u-input__textarea {
  228. height: 300rpx !important;
  229. }
  230. </style>