| | |
| | | |
| | | <el-table-column label="税前金额" align="center" prop="pretaxamount"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | label="扣税金额" |
| | | align="center" |
| | | prop="taxMoney" |
| | | /> |
| | | <el-table-column label="扣税金额" align="center" prop="taxMoney" /> |
| | | <el-table-column label="税后金额" align="center" prop="taxedamount" /> |
| | | <el-table-column |
| | | label="是否算税" |
| | | width="180" |
| | | align="center" |
| | | prop="istax" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <dict-tag :options="dict.type.sys_calculate" :value="scope.row.istax"/> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="是否算税" width="180" align="center" prop="istax"> |
| | | <template slot-scope="scope"> |
| | | <dict-tag |
| | | :options="dict.type.sys_calculate" |
| | | :value="scope.row.istax" |
| | | /> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="总金额" align="center" prop="taxamount" /> |
| | | |
| | | <el-table-column label="算税时间" align="center" prop="taxedtime" /> |
| | |
| | | addFundTax, |
| | | getExpertfeeList, |
| | | delFundtax, |
| | | getMaxFundTaxId, |
| | | dyFundtax, |
| | | listbxiaostatistics |
| | | } from "@/api/project/tallage"; |
| | | import { getToken } from "@/utils/auth"; |
| | | |
| | | import OrgSelecter from "@/views/project/components/orgselect"; |
| | | |
| | | export default { |
| | | name: "Donorcharge", |
| | | dicts: ["sys_gathering",'sys_calculate'], |
| | | dicts: ["sys_gathering", "sys_calculate"], |
| | | components: { |
| | | OrgSelecter |
| | | }, |
| | |
| | | // 捐献案例器官列表格数据 |
| | | donorchargeList: [], |
| | | donorchargerogans: [], |
| | | |
| | | headers: { |
| | | Authorization: "Bearer " + getToken() |
| | | }, |
| | | //捐献案例选择 |
| | | showSelectionDialog: false, |
| | | donorlist: [], |
| | |
| | | }, |
| | | // 打印 |
| | | download(row) { |
| | | dyDonorpayment(row.id).then(res => {}); |
| | | dyFundtax(row.id).then(res => { |
| | | var fileUrl = res; |
| | | //获取当前网址 |
| | | var urlBase = process.env.VUE_APP_BASE_API; |
| | | var curWWWPath = window.document.location.href; |
| | | var pos = curWWWPath.indexOf(window.document.location.pathname); |
| | | // 创建a标签 |
| | | var aEle = document.createElement("a"); |
| | | aEle.href = |
| | | curWWWPath.substring(0, pos) + urlBase + fileUrl["downloadUrl"]; |
| | | console.log(aEle.href); |
| | | // 添加Authorization头部 |
| | | fetch(aEle.href, { |
| | | headers: this.headers |
| | | }) |
| | | .then(response => { |
| | | // 将文件下载链接作为blob对象进行下载 |
| | | return response.blob(); |
| | | }) |
| | | .then(blob => { |
| | | const url = window.URL.createObjectURL(new Blob([blob])); |
| | | console.log(url); |
| | | const link = document.createElement("a"); |
| | | link.href = url; |
| | | const name = fileUrl["downloadName"]; |
| | | link.setAttribute("download", name); // 替换file.pdf为实际的文件名 |
| | | document.body.appendChild(link); |
| | | link.click(); |
| | | link.parentNode.removeChild(link); |
| | | }); |
| | | }); |
| | | }, |
| | | |
| | | /** 删除按钮操作 */ |