freight_settlement_details.vue 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309
  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. debugger
  102. this.list = res.data.data
  103. // console.log(this.list, 124)
  104. }
  105. })
  106. // this.$api.doRequest('get', '/tranSettlementReport/getInfo', {
  107. // id: this.id
  108. // }).then(res => {
  109. // this.contractNo = res.data.data.contractNo
  110. // this.carId = res.data.data.carId
  111. // this.customerName = res.data.data.customer
  112. // this.shippingAddress = res.data.data.send
  113. // this.receivingAddress = res.data.data.receive
  114. // if (res.data.code == 200) {
  115. // this.$api.doRequest('get', '/tranSettlementReport/selectTranSettlementReport', {
  116. // compId: "2710b21efc1e4393930c5dc800010dc4",
  117. // currentPage: this.currentPage,
  118. // pageSize: this.pageSize,
  119. // contractNo: this.contractNo,
  120. // carId: this.carId,
  121. // }).then(res => {
  122. // if (res.data.code == 200) {
  123. // this.list = res.data.data.records[0]
  124. // }
  125. // })
  126. // }
  127. // })
  128. },
  129. fanHui() {
  130. uni.navigateBack()
  131. }
  132. }
  133. }
  134. </script>
  135. <style scoped lang="scss">
  136. .container {
  137. margin: 10rpx;
  138. padding: 20rpx 20rpx 230rpx 20rpx;
  139. }
  140. .content {
  141. .top {
  142. display: flex;
  143. justify-content: space-between;
  144. border-radius: 20rpx;
  145. background: white;
  146. padding: 30rpx 20rpx;
  147. font-size: 36rpx;
  148. margin-top: 30rpx;
  149. }
  150. .top1 {
  151. // display: flex;
  152. justify-content: space-between;
  153. border-radius: 20rpx;
  154. background: white;
  155. padding: 10rpx 20rpx;
  156. font-size: 30rpx;
  157. margin-top: 20rpx;
  158. }
  159. .title {
  160. font-size: 28rpx;
  161. font-weight: 600;
  162. color: #333333;
  163. text-align: left;
  164. margin-bottom: 30rpx;
  165. }
  166. .car-container {
  167. padding: 10rpx 20rpx;
  168. border-radius: 20rpx;
  169. background: white;
  170. margin: 30rpx 0;
  171. // border-bottom: 2rpx solid #EEEEEE;
  172. }
  173. .car-type-item {
  174. display: inline-flex;
  175. // justify-content: center;
  176. width: 33.33%;
  177. margin-bottom: 40rpx;
  178. }
  179. .title {
  180. font-size: 36rpx;
  181. }
  182. }
  183. .person-info {
  184. background: white;
  185. padding: 20rpx 0;
  186. border-radius: 20rpx;
  187. // margin-bottom: 50rpx;
  188. margin: 20rpx 0;
  189. .tit {
  190. font-size: 36rpx;
  191. }
  192. }
  193. .bottom-btn {
  194. width: 100%;
  195. position: fixed;
  196. bottom: 0;
  197. display: flex;
  198. z-index: 2;
  199. left: 0;
  200. background-color: #f8f8f8;
  201. flex-direction: column;
  202. .btn1,
  203. .btn2 {
  204. width: 100%;
  205. margin-bottom: 26rpx;
  206. border-radius: 90rpx;
  207. }
  208. .btn1 {
  209. background: white;
  210. color: #00C265;
  211. }
  212. }
  213. .submit {
  214. width: 40%;
  215. background: #22C572;
  216. border-radius: 10rpx;
  217. }
  218. .left {
  219. background: #FEECE6;
  220. color: #FE6430;
  221. }
  222. .center {
  223. background: #EBEEFA;
  224. color: #5C76DF;
  225. }
  226. .right {
  227. background: #E9F8F0;
  228. color: #22C572;
  229. }
  230. .left,
  231. .center,
  232. .right {
  233. width: 50rpx;
  234. height: 50rpx;
  235. text-align: center;
  236. line-height: 50rpx;
  237. border-radius: 10rpx;
  238. }
  239. .textInfo {
  240. margin: 6rpx 0 0 10rpx;
  241. }
  242. .topInfo {
  243. height: 210rpx;
  244. background: linear-gradient(270deg, #22C572 0%, #34DE8A 100%);
  245. padding: 30rpx;
  246. .topInfo-item {
  247. height: 158rpx;
  248. background-color: #FFFFFF;
  249. border-radius: 20rpx;
  250. padding: 40rpx;
  251. .logo {
  252. width: 40rpx;
  253. height: 40rpx;
  254. margin-top: 8rpx;
  255. }
  256. .infoText {
  257. font-size: 36rpx;
  258. font-weight: 600;
  259. margin-left: 20rpx;
  260. }
  261. .infoData {
  262. color: #878C9C;
  263. font-size: 26rpx;
  264. margin-top: 10rpx;
  265. }
  266. }
  267. }
  268. .rejectInfoCss {
  269. border: 1px solid #ccc;
  270. border-radius: 10rpx;
  271. background-color: #F9F9FA;
  272. // height: 100px;
  273. overflow-y: auto;
  274. margin: 30rpx;
  275. }
  276. .rejectText {
  277. text-align: center;
  278. }
  279. /deep/.u-input__textarea {
  280. height: 300rpx !important;
  281. }
  282. </style>