detail.vue 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. <!--
  2. * @Author: liuzhenlin 461480418@qq.ocm
  3. * @Date: 2023-02-15 16:25:58
  4. * @LastEditors: liuzhenlin
  5. * @LastEditTime: 2023-05-22 16:10:29
  6. * @Description: file content
  7. * @FilePath: \oms\pages\distributor\components\distrDetail.vue
  8. -->
  9. <template>
  10. <view>
  11. <view>
  12. <view class="info-item">
  13. <u-row justify="space-between" gutter="10">
  14. <u-col span="12">
  15. <view class="flex_l">
  16. <view class="label">信息分类:</view>
  17. <view class="desc">{{ bidInfoTypeOptions[detail.infoType] }}</view>
  18. </view>
  19. </u-col>
  20. </u-row>
  21. </view>
  22. <view class="info-item">
  23. <u-row>
  24. <u-col span="12">
  25. <view class="flex_l">
  26. <view class="label">中标单位:</view>
  27. <view class="desc">{{ detail.bidder }}</view>
  28. </view>
  29. </u-col>
  30. </u-row>
  31. </view>
  32. <view class="info-item">
  33. <u-row justify="space-between" gutter="10">
  34. <u-col span="12">
  35. <view class="flex_l">
  36. <view class="label">备注:</view>
  37. <view class="desc">{{ detail.remark }}</view>
  38. </view>
  39. </u-col>
  40. </u-row>
  41. </view>
  42. </view>
  43. </view>
  44. </template>
  45. <script>
  46. export default {
  47. name: 'OmsCustomerDetail',
  48. props: {
  49. detail: {
  50. type: [Object],
  51. default: {},
  52. },
  53. },
  54. data() {
  55. return {
  56. bidInfoTypeOptions: {},
  57. }
  58. },
  59. mounted() {
  60. this.getOptions()
  61. },
  62. methods: {
  63. getOptions() {
  64. this.getDicts('bid_info_type').then((response) => {
  65. this.bidInfoTypeOptions = {}
  66. response.data.values.filter((i) => {
  67. this.bidInfoTypeOptions[i.key] = i.value
  68. })
  69. })
  70. },
  71. },
  72. }
  73. </script>
  74. <style lang="scss" scoped>
  75. .info-item {
  76. padding: 20rpx;
  77. .label {
  78. width: 160rpx;
  79. color: #646464;
  80. font-size: 26rpx;
  81. }
  82. .desc {
  83. font-size: 26rpx;
  84. margin-left: 20rpx;
  85. }
  86. }
  87. </style>