| | |
| | | </div> |
| | | </div> |
| | | <template v-slot:footer> |
| | | <el-button type="primary">企业证件</el-button> |
| | | <el-button type="primary" :loading="isWorking.export" @click="exportComFiles">企业证件</el-button> |
| | | <el-button type="primary" :loading="isWorking.export" @click="exportDetail">导出详单</el-button> |
| | | <el-button>取消</el-button> |
| | | <el-button @click="visible=false">取消</el-button> |
| | | </template> |
| | | </GlobalWindow> |
| | | </template> |
| | |
| | | }) |
| | | }, |
| | | exportDetail(){ |
| | | |
| | | this.$dialog.exportConfirm('确认导出吗?') |
| | | this.$dialog.exportConfirm('确认导出详单吗?') |
| | | .then(() => { |
| | | this.isWorking = true |
| | | exportDetailExcel({ id: this.model.id }) |
| | |
| | | }) |
| | | |
| | | }, |
| | | exportComFiles(){ |
| | | this.$dialog.exportConfirm('确认导出企业证件吗?') |
| | | .then(() => { |
| | | this.isWorking = true |
| | | exportComFiles({ id: this.model.companyId }) |
| | | .then(response => { |
| | | this.download(response) |
| | | }) |
| | | .catch(e => { |
| | | console.log(e) |
| | | this.$message.error('数据下载失败!') |
| | | }) |
| | | .finally(() => { |
| | | this.isWorking = false |
| | | }) |
| | | }) |
| | | .catch(() => { |
| | | }) |
| | | |
| | | }, |
| | | handleSizeChange(val) { |
| | | console.log(`每页 ${val} 条`); |
| | | }, |