<template>
  <div class="detail-main">
    <el-form :inline="true" :model="details" label-width="150px">
      <el-form-item label="合同号:">
        <el-input class="input-w" disabled v-model="details.hth"></el-input>
      </el-form-item>
      <el-form-item label="卖方承储库:">
        <el-input class="input-w" disabled v-model="details.mfcckmc"></el-input>
      </el-form-item>
      <el-form-item label="交货仓库:">
        <el-input class="input-w" disabled v-model="details.jhckmc"></el-input>
      </el-form-item>
      <el-form-item label="仓号:">
        <el-input class="input-w" disabled v-model="details.chmc"></el-input>
      </el-form-item>
      <el-form-item label="生产年份:">
        <el-input class="input-w" disabled v-model="details.scnf"></el-input>
      </el-form-item>
      <el-form-item label="收购等级:">
        <el-input class="input-w" disabled v-model="details.sgdjmc"></el-input>
      </el-form-item>
      <el-form-item label="总成交数据量:">
        <el-input class="input-w" disabled v-model="details.zcjsl"></el-input>
      </el-form-item>
      <el-form-item label="粮食性质:">
        <el-input class="input-w" disabled v-model="details.lsxzmc"></el-input>
      </el-form-item>
      <el-form-item label="粮食品种:">
        <el-input class="input-w" disabled v-model="details.lspzmc"></el-input>
      </el-form-item>
      <el-form-item label="成交单价:">
        <el-input class="input-w" disabled v-model="details.cjdj"></el-input>
      </el-form-item>
      <el-form-item label="成交金额:">
        <el-input class="input-w" disabled v-model="details.cjje"></el-input>
      </el-form-item>
      <el-form-item label="成交日期:">
        <el-input class="input-w" disabled v-model="details.cjrq"></el-input>
      </el-form-item>
      <el-form-item label="付货款截止日期:">
        <el-input class="input-w" disabled v-model="details.fhkjzrq"></el-input>
      </el-form-item>
      <el-form-item label="出库截止日期:">
        <el-input class="input-w" disabled v-model="details.ckjzrq"></el-input>
      </el-form-item>
      <el-form-item label="成交单位:">
        <el-input class="input-w" disabled v-model="details.cjdwmc"></el-input>
      </el-form-item>
    </el-form>
    <el-row style="text-align:right;padding-right:100px">单位：元/吨；吨</el-row>
    <el-row style="text-align:center">
      <el-button
        @click="$router.push('index')"
        class="iconfont iconfanhui"
        type="primary"
        size="small"
      >返回</el-button>
    </el-row>
  </div>
</template>
<script>
import { detail } from "@/api/transaction/tradePlan/auction.js";
export default {
  data() {
    return {
      details: {}
    };
  },
  created() {
    this.getDetail();
  },
  methods: {
    getDetail() {
      detail({ cjbm: this.$route.query.cjbm }).then(res => {
        this.details = res.data;
      });
    }
  }
};
</script>
<style lang="scss" scoped>
.detail-main {
  padding: 20px;
  .input-w {
    width: 180px;
  }
}
</style>
