<!--历史预审弹窗--> <template> <el-dialog title="历史预审" width="975px" :visible.sync="isShowInfo" append-to-body @close="close"> <div class="historyInquiryDialog"> <div class="Dialog-input"> <div class="inputContent"> <div class="inputBox"> <red-star /> <input-vue v-model="dataInfo.supplierCode" title="供应商编号" disabled placeholder="请输入编号" class="inputWidth" width="200px" /> </div> <div class="inputBox"> <red-star /> <input-vue v-model="dataInfo.supplierStatusName" title="供应商状态" disabled placeholder="请输入状态" class="inputWidth" width="200px" /> </div> </div> <div class="inputContent"> <div class="inputBox"> <red-star /> <input-vue v-model="dataInfo.supplierName" title="供应商名称" disabled placeholder="请输入供应商名称" class="inputWidth" width="200px" /> </div> </div> </div> <div class="Dialog-table"> <el-table :data="tableData" height="250" border style="width: 100%" :header-cell-style="headerStyle"> <el-table-column type="index" :index="indexMethod" label="序号" width="100" /> <el-table-column prop="preReviewResultName" label="资料预审结果" width="150" /> <el-table-column prop="preReviewIllustration" label="资料预审说明" width="150" /> <el-table-column prop="preReviewDate" label="资料预审日期" width="150" /> <el-table-column prop="preReviewFile" label="预审详情" /> <el-table-column label="预审详情"> <template slot-scope="scope"> <el-button type="text" size="small"> 预览 </el-button> <el-button type="text" size="small"> 下载 </el-button> </template> </el-table-column> </el-table> </div> </div> </el-dialog> </template> <script> import dialogHeader from './dialogHeader.vue' import inputVue from '../input/inputVue.vue' import RedStar from '../redStar.vue' import { historyInquiry } from '../../../api/supplier/supplier' export default { components: { inputVue, dialogHeader, RedStar }, props: { dataInfo: { type: Object, dataInfo: {} } }, data() { return { isShowInfo: true, tableData: [] } }, mounted() { console.log(this.dataInfo) this.getHistoryInquiry() }, methods: { // 生成序号 indexMethod(index) { return index + 1 }, // 合并表头 headerStyle({ row, column, rowIndex, columnIndex }) { row[4].colSpan = 2 // 第三列的表头占据3个单元格 row[5].colSpan = 0 if (columnIndex === 5) { return 'display: none' } }, close() { this.$emit('close') }, // 历史预审列表 getHistoryInquiry() { historyInquiry({}).then(res => { console.log(res) this.tableData = res }) } } } </script> <style lang='scss' scoped> .historyInquiryDialog { width: 60%; padding: 0 20px; box-sizing: border-box; .Dialog-input { padding: 10px 20px; display: flex; .inputContent { margin-right: 30px; display: flex; flex: 1; flex-direction: column; .inputBox { display: flex; justify-content: inherit; align-items: center; } } } .Dialog-table { width: 850px; margin: 20px; } } </style>