
<template>
  <div>
    <el-button type="text" size="mini" @click="dialogTableVisible=true">明 细</el-button>
    <el-dialog title="报价单明细" append-to-body :visible.sync="dialogTableVisible" width="80%">
      <basicLayout 
        ref="basicLayout" 
        formPath="projectChange/quotation/detail" 
        tableName="quotationBuillTable" 
        idName="itemid" 
        :apiId="{query:20221021095503,del:20221021095603}"
        :options="options"
        @listCreate="list">
        <template v-slot:tbList="scope">
          {{scope.data.column.data[scope.data.column.columnname]}}
        </template>
        <template v-slot:tbOpreation="scope">
          <delete-btn v-if="tool.checkAuth($route.name,'delete')" :id="scope.data.data.sa_quotedprice_itemsid" nameId="20221021095603" nameKey="sa_quotedprice_itemsids" @deleteSuccess="$refs.basicLayout.listData()" />
        </template>
      </basicLayout>
      <span slot="footer" class="dialog-footer">
        <div>
          <el-button @click="dialogTableVisible = false" size="small">取 消</el-button>
        </div>
      </span>
    </el-dialog>
  </div>
</template>

<script>
export default {
  props:['rowData'],
  data () {
    return {
      options:[
      ],
      dialogTableVisible:false
    }
  },
  provide () {
    return {
      rowData:() => this.rowData
    }
  },
  components:{},
  methods:{
    list (vm) {
      console.log("呜呜呜呜呜呜呜");
      
      vm.content.sa_quotedpriceid = this.rowData.sa_quotedpriceid
    }
  },
  created() {
  }
}

</script>
<style scoped>
</style>