| | |
| | | :data="donationCaseTableData" |
| | | > |
| | | <el-table-column |
| | | label="报告时间" |
| | | label="案例时间" |
| | | align="center" |
| | | prop="reporttime" |
| | | width="150" |
| | |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | label="医疗机构" |
| | | label="专职人员" |
| | | align="center" |
| | | prop="reportername" |
| | | width="100" |
| | | /> |
| | | <el-table-column |
| | | label="业务组" |
| | | align="center" |
| | | prop="treatmenthospitalname" |
| | | /> |
| | | <el-table-column label="捐献进度" align="center" prop="recordstate"> |
| | | <template slot-scope="scope"> |
| | | <dict-tag |
| | | :options="dict.type.sys_DonationStatus" |
| | | :value="scope.row.recordstate" |
| | | :options="dict.type.sys_donornode" |
| | | :value="scope.row.workflow" |
| | | /> |
| | | </template> |
| | | </el-table-column> |
| | |
| | | export default { |
| | | //import引入的组件需要注入到对象中才能使用 |
| | | components: { |
| | | FundSummary, |
| | | FundSummary |
| | | }, |
| | | dicts: [ |
| | | "sys_Organ", |
| | |
| | | "sys_IDType", |
| | | "sys_AgeUnit", |
| | | "sys_DonationStatus", |
| | | "sys_donornode" |
| | | ], |
| | | data() { |
| | | //这里存放数据 |
| | |
| | | name: "", |
| | | pageSize: 10, |
| | | name: null, |
| | | donorno: null, |
| | | donorno: null |
| | | }, |
| | | curdonorno: null, |
| | | showType: "list", |
| | | curCaseInfo: { |
| | | donorno: null, |
| | | name: null, |
| | | id: null, |
| | | id: null |
| | | }, |
| | | headers: { |
| | | Authorization: "Bearer " + getToken() |
| | | }, |
| | | } |
| | | }; |
| | | }, |
| | | //监听属性 类似于data概念 |
| | |
| | | if (this.queryParams.recordstate == "") { |
| | | this.queryParams.recordstate = null; |
| | | } |
| | | listDonatebaseinfo(this.queryParams).then((response) => { |
| | | listDonatebaseinfo(this.queryParams).then(response => { |
| | | this.donationCaseTableData = response.rows; |
| | | this.total = response.total; |
| | | this.loading = false; |
| | |
| | | }, |
| | | //导出汇总表 |
| | | exportSummary(id) { |
| | | exportFundCost(id).then((res) => { |
| | | exportFundCost(id).then(res => { |
| | | var fileUrl = res; |
| | | //获取当前网址 |
| | | var urlBase = process.env.VUE_APP_BASE_API; |
| | |
| | | console.log(url); |
| | | const link = document.createElement("a"); |
| | | link.href = url; |
| | | const name=fileUrl["downloadName"] |
| | | const name = fileUrl["downloadName"]; |
| | | link.setAttribute("download", name); // 替换file.pdf为实际的文件名 |
| | | document.body.appendChild(link); |
| | | link.click(); |
| | | link.parentNode.removeChild(link); |
| | | }); |
| | | }); |
| | | }, |
| | | } |
| | | }, |
| | | //生命周期 - 创建完成(可以访问当前this实例) |
| | | created() { |
| | |
| | | updated() {}, //生命周期 - 更新之后 |
| | | beforeDestroy() {}, //生命周期 - 销毁之前 |
| | | destroyed() {}, //生命周期 - 销毁完成 |
| | | activated() {}, //如果页面有keep-alive缓存功能,这个函数会触发 |
| | | activated() {} //如果页面有keep-alive缓存功能,这个函数会触发 |
| | | }; |
| | | </script> |
| | | <style scoped> |