freight_setting_details.vue 3.5 KB

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