<template>
  <div class="content-main">
    <el-row>
      <el-form style="width:100%;" ref="formDetail" label-width="120px" :model="formDetail">
        <el-row>
          <el-col :span="12">
            <el-form-item label="出入库流水单号:" prop="crkdh">
              <el-input disabled clearable v-model="formDetail.crkdh" placeholder="请输入单号"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="计划文件号:" prop="ssjhh">
              <el-input disabled clearable v-model="formDetail.ssjhh" placeholder="请输入计划文件号"></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item label="业务类型:" prop="crklx">
              <el-input disabled clearable v-model="formDetail.crklx" placeholder="请输入业务类型"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="出入库日期:" prop="crkdjsj">
              <el-input disabled clearable v-model="formDetail.crkdjsj" placeholder="请输入出入库日期"></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item label="仓房名称:" prop="cfmc">
              <el-input disabled clearable v-model="formDetail.cfmc" placeholder="请输入仓房名称"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="货位名称:" prop="cfmc">
              <el-input disabled clearable v-model="formDetail.cfmc" placeholder="请输入货位名称"></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item label="品种:" prop="pzmc">
              <el-input disabled clearable v-model="formDetail.pzmc" placeholder="请输入品种"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="数量(kg):" prop="htzsl">
              <el-input disabled clearable v-model="formDetail.htzsl" placeholder="请输入数量"></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item label="粮食产地:" prop="lscd">
              <el-input
                disabled
                clearable
                v-model="formDetail.lscd"
                placeholder="请输入粮食产地"
              ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="等级:" prop="lsdjmc">
              <el-input disabled clearable v-model="formDetail.lsdjmc" placeholder="请输入等级"></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item label="买/卖粮人:" prop="yfkdmc">
              <el-input disabled clearable v-model="formDetail.yfkdmc" placeholder="请输入买/卖粮人"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="单价(元/kg):">
                <el-input disabled clearable v-model="formDetail.bmrq" placeholder="请输入单价"></el-input>
              </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item label="车辆类型:" prop="shyj">
              <el-input
                disabled
                clearable
                v-model="formDetail.shyj"
                placeholder="请输入车辆类型"
              ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="车牌号:" prop="shyj">
              <el-input
                disabled
                clearable
                v-model="formDetail.shyj"
                placeholder="请输入车牌号"
              ></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item label="质量标准:" prop="spr">
              <el-input
                disabled
                clearable
                v-model="formDetail.spr"
              ></el-input>
            </el-form-item>
          </el-col>
        </el-row>
      </el-form>
    </el-row>
    <span class="detail-footer">
      <el-button @click="returnList" type="primary" size="small" class="iconfont iconfanhui">返回</el-button>
    </span>
  </div>
</template>

<script>
import { exitDepot } from "@/api/transaction/registrationFee/outinRecord/index";


export default {
  // components: {},
  // name: 'userInfo',
  data() {
    return {
      tableData: [{ name: "000" }],
      dialogTableVisible: false,
      formDetail: {},
      disableFlag: false,
      fileList: [],
      fileList1: []
    };
  },
  methods: {
    getDetail() {
      exitDepot(this.$route.query.crkid).then(res=>{
        if (res.infoCode == 200) {
            this.formDetail = res.data;
          }
      })
      
    },
    resetInfo(formName) {
      this.$refs[formName].resetFields();
      this.getList();
    },
    returnList() {
      this.$router.push({ name: "outinRecord" });
    },
  },
  created() {
    this.getDetail();
  },
  mounted() {}
};
</script>

<style rel="stylesheet/scss" lang="scss" scoped>
.line {
  border-bottom: 1px solid #000;
}
.title {
  margin-bottom: 20px;
  text-align: center;
  font-size: 16px;
}
.text {
  text-align: center;
}
</style>
