<template>
  <div >
    <div >
      <el-descriptions title="基本信息">
        <el-descriptions-item label="单号">{{ basic.billno?basic.billno:"--" }}</el-descriptions-item>
        <el-descriptions-item label="项目编号">{{ basic.projectnum?basic.projectnum:"--" }}</el-descriptions-item>
        <el-descriptions-item label="项目名称">{{ basic.projectname?basic.projectname:"--"}}</el-descriptions-item>
        <el-descriptions-item label="项目地址">{{ basic.address?basic.address:"--" }}</el-descriptions-item>
        <el-descriptions-item label="整单折扣">{{ basic.discountrate?basic.discountrate:"--" }}</el-descriptions-item>
        <el-descriptions-item label="有效期">{{ basic.invaliddate?basic.invaliddate:"--" }}</el-descriptions-item>
        <el-descriptions-item label="负责人">{{ basic.contactsname?basic.contactsname:"--" }}</el-descriptions-item>
        <el-descriptions-item label="备注">{{ basic.remarks?basic.remarks:"--" }}</el-descriptions-item>
        <el-descriptions-item label="状态">{{ basic.status?basic.status:"--" }}</el-descriptions-item>
      </el-descriptions>
    </div>
    <div >
      <el-descriptions title="系统信息">
        <el-descriptions-item label="创建人">{{ basic.createby?basic.createby:"--" }}</el-descriptions-item>
        <el-descriptions-item label="创建时间">{{ basic.createdate?basic.createdate:"--" }}</el-descriptions-item>
<!--        <el-descriptions-item label="锁定状态">{{ basic.locked?basic.locked:"&#45;&#45;"}}</el-descriptions-item>-->
        <el-descriptions-item label="最近编辑人">{{ basic.changeby?basic.changeby:"--" }}</el-descriptions-item>
        <el-descriptions-item label="最近编辑时间">{{ basic.changedate?basic.changedate:"--" }}</el-descriptions-item>
        <el-descriptions-item label="报价人">{{ basic.submitby?basic.submitby:"--" }}</el-descriptions-item>
        <el-descriptions-item label="报价时间">{{ basic.submitdate?basic.submitdate:"--" }}</el-descriptions-item>
        <el-descriptions-item label="报价审核">{{ basic.checkby?basic.checkby:"--" }}</el-descriptions-item>
        <el-descriptions-item label="报价审核时间">{{ basic.checkdate?basic.checkdate:"--" }}</el-descriptions-item>
      </el-descriptions>
    </div>
  </div>
</template>

<script>
export default {
  name: "index",
  data(){
    return {
      basic:[],
    }
  },
  methods:{
    async basicData(id){
      const res = await this.$api.requested({
        "id": 20221020165203,
        "version":1,
        "content": {
          "sa_quotedpriceid":id
        }
      })
      this.basic = res.data
    },
    detailedList(data){
      console.log("输出")
      console.log(data)
      this.basicData(data.sa_quotedpriceid)
    }
  }
}
</script>

<style scoped>

</style>