freight_settlement_details.vue 6.8 KB

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