freight_settlement_details.vue 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292
  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="person-info">
  23. <view class="top1" style="display: flex;">
  24. <view>客户</view>
  25. <view>{{customerName}}</view>
  26. </view>
  27. <view class="top1">
  28. <view>发货地址</view>
  29. <view class="top_info">{{shippingAddress ? shippingAddress : "暂无发货地址"}}</view>
  30. </view>
  31. <view class="top1">
  32. <view>收货地址</view>
  33. <view class="top_info">{{receivingAddress ? receivingAddress : "暂无收货地址"}}</view>
  34. </view>
  35. </view>
  36. <view class="car-container">
  37. <view class="car-num title" v-if="list.tranTypeKey== '1'">{{list.carNo}} ({{list.tranCarNo}})</view>
  38. <view class="car-num title" v-if="list.tranTypeKey== '2'">车厢号{{list.boxNo}}</view>
  39. <view class="car-num title" v-if="list.tranTypeKey== '3'&&list.shipType== '散船'">仓位号{{list.boxNo}}</view>
  40. <view class="car-num title" v-if="list.tranTypeKey== '3'&&list.shipType== '集装箱'">箱号{{list.boxNo}}</view>
  41. <view class="car-type-item">
  42. <view class="left">装</view>
  43. <view class="textInfo">{{list.loadingWeight}}吨</view>
  44. </view>
  45. <view class="car-type-item">
  46. <view class="center">卸</view>
  47. <view class="textInfo">{{list.unloadingWeight}}吨</view>
  48. </view>
  49. <view class="car-type-item">
  50. <view class="right">结</view>
  51. <view class="textInfo">{{list.settlementWeight}}吨</view>
  52. </view>
  53. <view class="car-type-item">
  54. <view class="left">运</view>
  55. <view class="textInfo">{{list.transportPrice}}元/吨</view>
  56. </view>
  57. <view class="car-type-item">
  58. <view class="center">扣</view>
  59. <view class="textInfo">{{list.deductionAmount}}元</view>
  60. </view>
  61. <view class="car-type-item">
  62. <view class="right">付</view>
  63. <view class="textInfo">{{list.amountIngPayable}}元</view>
  64. </view>
  65. </view>
  66. </view>
  67. <u-toast ref="uToast" />
  68. <view style='padding:10px;' class='flex bottom-btn'>
  69. <u-button @click="fanHui" type="success" class="btn1" hover-class='none'>返回</u-button>
  70. </view>
  71. </view>
  72. </template>
  73. <script>
  74. export default {
  75. data() {
  76. return {
  77. currentPage: 1,
  78. pageSize: 10,
  79. list: {
  80. approveStatus: "",
  81. },
  82. customerName:"",//客户
  83. shippingAddress:"",//发货地址
  84. receivingAddress:"",//收货地址
  85. }
  86. },
  87. onLoad(options) {
  88. this.id = options.id
  89. this.getList()
  90. },
  91. methods: {
  92. getList() {
  93. this.$api.doRequest('get', '/tranSettlementReport/getInfo', {
  94. id: this.id
  95. }).then(res => {
  96. this.contractNo = res.data.data.contractNo
  97. this.carId = res.data.data.carId
  98. this.customerName = res.data.data.customer
  99. this.shippingAddress = res.data.data.send
  100. this.receivingAddress = res.data.data.receive
  101. if (res.data.code == 200) {
  102. this.$api.doRequest('get', '/tranSettlementReport/selectTranSettlementReport', {
  103. compId: "2710b21efc1e4393930c5dc800010dc4",
  104. currentPage: this.currentPage,
  105. pageSize: this.pageSize,
  106. contractNo: this.contractNo,
  107. carId: this.carId,
  108. }).then(res => {
  109. if (res.data.code == 200) {
  110. this.list = res.data.data.records[0]
  111. }
  112. })
  113. }
  114. })
  115. },
  116. fanHui() {
  117. uni.navigateBack()
  118. }
  119. }
  120. }
  121. </script>
  122. <style scoped lang="scss">
  123. .container {
  124. margin: 10rpx;
  125. padding: 20rpx 20rpx 230rpx 20rpx;
  126. }
  127. .content {
  128. .top {
  129. display: flex;
  130. justify-content: space-between;
  131. border-radius: 20rpx;
  132. background: white;
  133. padding: 30rpx 20rpx;
  134. font-size: 36rpx;
  135. margin-top: 30rpx;
  136. }
  137. .top1{
  138. // display: flex;
  139. justify-content: space-between;
  140. border-radius: 20rpx;
  141. background: white;
  142. padding: 10rpx 20rpx;
  143. font-size: 30rpx;
  144. margin-top: 20rpx;
  145. }
  146. .title {
  147. font-size: 28rpx;
  148. font-weight: 600;
  149. color: #333333;
  150. text-align: left;
  151. margin-bottom: 30rpx;
  152. }
  153. .car-container {
  154. padding: 10rpx 20rpx;
  155. border-radius: 20rpx;
  156. background: white;
  157. margin: 30rpx 0;
  158. // border-bottom: 2rpx solid #EEEEEE;
  159. }
  160. .car-type-item {
  161. display: inline-flex;
  162. // justify-content: center;
  163. width: 33.33%;
  164. margin-bottom: 40rpx;
  165. }
  166. .title {
  167. font-size: 36rpx;
  168. }
  169. }
  170. .person-info{
  171. background: white;
  172. padding: 20rpx 0;
  173. border-radius: 20rpx;
  174. // margin-bottom: 50rpx;
  175. margin: 20rpx 0;
  176. .tit{
  177. font-size: 36rpx;
  178. }
  179. }
  180. .bottom-btn {
  181. width: 100%;
  182. position: fixed;
  183. bottom: 0;
  184. display: flex;
  185. z-index: 2;
  186. left: 0;
  187. background-color: #f8f8f8;
  188. flex-direction: column;
  189. .btn1,
  190. .btn2 {
  191. width: 100%;
  192. margin-bottom: 26rpx;
  193. border-radius: 90rpx;
  194. }
  195. .btn1 {
  196. background: white;
  197. color: #00C265;
  198. }
  199. }
  200. .submit {
  201. width: 40%;
  202. background: #22C572;
  203. border-radius: 10rpx;
  204. }
  205. .left {
  206. background: #FEECE6;
  207. color: #FE6430;
  208. }
  209. .center {
  210. background: #EBEEFA;
  211. color: #5C76DF;
  212. }
  213. .right {
  214. background: #E9F8F0;
  215. color: #22C572;
  216. }
  217. .left,
  218. .center,
  219. .right {
  220. width: 50rpx;
  221. height: 50rpx;
  222. text-align: center;
  223. line-height: 50rpx;
  224. border-radius: 10rpx;
  225. }
  226. .textInfo {
  227. margin: 6rpx 0 0 10rpx;
  228. }
  229. .topInfo {
  230. height: 210rpx;
  231. background: linear-gradient(270deg, #22C572 0%, #34DE8A 100%);
  232. padding: 30rpx;
  233. .topInfo-item {
  234. height: 158rpx;
  235. background-color: #FFFFFF;
  236. border-radius: 20rpx;
  237. padding: 40rpx;
  238. .logo {
  239. width: 40rpx;
  240. height: 40rpx;
  241. margin-top: 8rpx;
  242. }
  243. .infoText {
  244. font-size: 36rpx;
  245. font-weight: 600;
  246. margin-left: 20rpx;
  247. }
  248. .infoData {
  249. color: #878C9C;
  250. font-size: 26rpx;
  251. margin-top: 10rpx;
  252. }
  253. }
  254. }
  255. .rejectInfoCss {
  256. border: 1px solid #ccc;
  257. border-radius: 10rpx;
  258. background-color: #F9F9FA;
  259. // height: 100px;
  260. overflow-y: auto;
  261. margin: 30rpx;
  262. }
  263. .rejectText {
  264. text-align: center;
  265. }
  266. /deep/.u-input__textarea {
  267. height: 300rpx !important;
  268. }
  269. </style>