<!--
 * @Author: liuzhenlin 461480418@qq.ocm
 * @Date: 2023-02-15 16:25:58
 * @LastEditors: liuzhenlin
 * @LastEditTime: 2023-05-22 16:10:29
 * @Description: file content
 * @FilePath: \oms\pages\distributor\components\distrDetail.vue
-->
<template>
  <view>
    <view>
      <view class="info-item">
        <u-row justify="space-between" gutter="10">
          <u-col span="12">
            <view class="flex_l">
              <view class="label">信息分类:</view>
              <view class="desc">{{ bidInfoTypeOptions[detail.infoType] }}</view>
            </view>
          </u-col>
        </u-row>
      </view>
      <view class="info-item">
        <u-row>
          <u-col span="12">
            <view class="flex_l">
              <view class="label">中标单位:</view>
              <view class="desc">{{ detail.bidder }}</view>
            </view>
          </u-col>
        </u-row>
      </view>
      <view class="info-item">
        <u-row justify="space-between" gutter="10">
          <u-col span="12">
            <view class="flex_l">
              <view class="label">备注:</view>
              <view class="desc">{{ detail.remark }}</view>
            </view>
          </u-col>
        </u-row>
      </view>
    </view>
  </view>
</template>

<script>
  export default {
    name: 'OmsCustomerDetail',
    props: {
      detail: {
        type: [Object],
        default: {},
      },
    },
    data() {
      return {
        bidInfoTypeOptions: {},
      }
    },

    mounted() {
      this.getOptions()
    },

    methods: {
      getOptions() {
        this.getDicts('bid_info_type').then((response) => {
          this.bidInfoTypeOptions = {}
          response.data.values.filter((i) => {
            this.bidInfoTypeOptions[i.key] = i.value
          })
        })
      },
    },
  }
</script>

<style lang="scss" scoped>
  .info-item {
    padding: 20rpx;
    .label {
      width: 160rpx;
      color: #646464;
      font-size: 26rpx;
    }
    .desc {
      font-size: 26rpx;
      margin-left: 20rpx;
    }
  }
</style>
