freight_setting_details.vue 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. <template>
  2. <view class="warp">
  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.priceStatus == '已驳回'"
  8. style="height: 40rpx;"></image><!-- 驳回 -->
  9. <image src="../../../static/img/tongguo.png" mode="" v-if="list.priceStatus == '已通过'"
  10. style="height: 40rpx;"></image><!-- 通过 -->
  11. <image src="../../../static/img/daishenhe.png" mode="" v-if="list.priceStatus == '审核中'"
  12. style="height: 40rpx;"></image><!-- 待审核 -->
  13. </view>
  14. <view class="infoText">{{list.priceStatus}}</view>
  15. </view>
  16. <view class="infoData">{{list.updateDate}}</view>
  17. </view>
  18. </view>
  19. <view class="transaction">
  20. <u-form :model="list" ref="list" class="uForm">
  21. <u-form-item label="合同编号" prop="contractNo" label-width="140">
  22. <u-input v-model="list.contractNo" input-align="right" placeholder="" disabled />
  23. </u-form-item>
  24. <u-form-item label="任务编号" prop="processNo" label-width="140">
  25. <u-input v-model="list.processNo" input-align="right" placeholder="" disabled />
  26. </u-form-item>
  27. <u-form-item label="货名" prop="goodsName" label-width="140">
  28. <u-input v-model="list.goodsName" input-align="right" placeholder="" disabled />
  29. </u-form-item>
  30. <u-form-item label="发货地址" prop="sendDetailedAddress" label-width="140">
  31. <u-input v-model="list.sendDetailedAddress" input-align="right" placeholder="发货地址" disabled />
  32. </u-form-item>
  33. <u-form-item label="收货地址" prop="receiveDetailedAddress" label-width="140">
  34. <u-input v-model="list.receiveDetailedAddress" input-align="right" placeholder="收货地址" disabled />
  35. </u-form-item>
  36. <u-form-item label="运费(元/吨)" prop="tranPrice" label-width="250">
  37. <u-input v-model="list.tranPrice" input-align="right" placeholder="请输入运费单价" disabled/>
  38. </u-form-item>
  39. </u-form>
  40. </view>
  41. <u-button type="primary" class="submit" @click="fanHui()">返回</u-button>
  42. </view>
  43. </template>
  44. <script>
  45. import {
  46. mapState
  47. } from 'vuex';
  48. export default {
  49. data() {
  50. return {
  51. list: {
  52. priceStatus:"",
  53. },
  54. id: "",
  55. }
  56. },
  57. onLoad(options) {
  58. this.id = options.id
  59. this.getList()
  60. },
  61. computed: {
  62. ...mapState(['hasLogin', 'userInfo']),
  63. },
  64. methods: {
  65. getList() {
  66. this.$api.doRequest('get', '/tranProcessInfo/getTranProcess', {
  67. id: this.id
  68. }).then(res => {
  69. this.list = res.data.data
  70. })
  71. },
  72. fanHui(){
  73. uni.navigateBack()
  74. }
  75. }
  76. }
  77. </script>
  78. <style scoped lang="scss">
  79. .transaction {
  80. background-color: #FFFFFF;
  81. margin: 10rpx;
  82. padding-bottom: 10rpx;
  83. border-radius: 20rpx;
  84. }
  85. .uForm {
  86. padding: 0 40rpx;
  87. }
  88. .u-form-item {
  89. padding: 0;
  90. }
  91. .bottom-btn {
  92. width: 100%;
  93. position: fixed;
  94. bottom: 40rpx;
  95. display: flex;
  96. z-index: 2;
  97. }
  98. .topInfo {
  99. height: 210rpx;
  100. background: linear-gradient(270deg, #22C572 0%, #34DE8A 100%);
  101. padding: 30rpx;
  102. .topInfo-item {
  103. height: 150rpx;
  104. background-color: #FFFFFF;
  105. border-radius: 20rpx;
  106. padding: 40rpx;
  107. .logo {
  108. width: 40rpx;
  109. height: 40rpx;
  110. margin-top: 8rpx;
  111. }
  112. .infoText {
  113. font-size: 36rpx;
  114. font-weight: 600;
  115. margin-left: 20rpx;
  116. }
  117. .infoData {
  118. color: #878C9C;
  119. font-size: 26rpx;
  120. margin-top: 10rpx;
  121. }
  122. }
  123. }
  124. .submit {
  125. width: 98%;
  126. background: #22C572;
  127. border-radius: 40rpx;
  128. margin-top: 40rpx;
  129. }
  130. </style>