| | |
| | | <span>{{ parseTime(scope.row.createTime, "{y}-{m}-{d}") }}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="经办人" align="center" prop="username" /> |
| | | <!-- <el-table-column label="经办人" align="center" prop="username" /> --> |
| | | <el-table-column |
| | | label="申请单号" |
| | | width="180" |
| | |
| | | |
| | | <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="总金额" align="center" prop="taxamount" /> |
| | | <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" /> |
| | | <el-table-column label="付款状态" align="center" prop="isdistribute" /> |
| | | <el-table-column label="付款状态" align="center" prop="isdistribute"> |
| | | <template slot-scope="scope"> |
| | | <span>{{ scope.row.isdistribute == "0" ? "未付款" : "已付款" }}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="付款日期" align="center" prop="riqi" /> |
| | | <el-table-column label="操作" width="280" align="center"> |
| | | <template slot-scope="scope"> |
| | |
| | | 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: ["Collection_status", "sys_calculate"], |
| | | components: { |
| | | OrgSelecter |
| | | }, |
| | |
| | | // 捐献案例器官列表格数据 |
| | | donorchargeList: [], |
| | | donorchargerogans: [], |
| | | |
| | | headers: { |
| | | Authorization: "Bearer " + getToken() |
| | | }, |
| | | //捐献案例选择 |
| | | showSelectionDialog: false, |
| | | donorlist: [], |
| | |
| | | /** 新增按钮操作 */ |
| | | handleAdd() { |
| | | this.$router.push({ |
| | | path: "/cost/computingBill", |
| | | path: "/finance/computingBill", |
| | | query: { id: 0, operation: "add" } |
| | | }); |
| | | }, |
| | |
| | | /** 修改按钮操作 */ |
| | | handleUpdate(row) { |
| | | this.$router.push({ |
| | | path: "/cost/computingBill", |
| | | path: "/finance/computingBill", |
| | | query: { id: row.id, operation: "update", data: row } |
| | | }); |
| | | }, |
| | |
| | | /** 详情查看按钮操作 */ |
| | | handleDetail(row) { |
| | | this.$router.push({ |
| | | path: "/cost/computingBill", |
| | | path: "/finance/computingBill", |
| | | query: { id: row.id, operation: "detail", data: row } |
| | | }); |
| | | }, |
| | | // 打印 |
| | | 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); |
| | | }); |
| | | }); |
| | | }, |
| | | |
| | | /** 删除按钮操作 */ |