| | |
| | | filterable |
| | | size="small" |
| | | style="width: 200px" |
| | | @change="handleHospitalFilterChange" |
| | | @change="handleHospitalFilterChange" |
| | | allow-create |
| | | > |
| | | <el-option label="未填写回款医院" value="__EMPTY__" /> |
| | | <el-option |
| | |
| | | placeholder="请输入捐献者姓名" |
| | | clearable |
| | | size="small" |
| | | @keyup.enter.native="handleQuery" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="器官名称" prop="organname"> |
| | | <el-input |
| | | v-model="queryParams.organname" |
| | | placeholder="请输入器官名称" |
| | | clearable |
| | | size="small" |
| | | style="width: 160px" |
| | | @keyup.enter.native="handleQuery" |
| | | /> |
| | | </el-form-item> |
| | |
| | | v-loading="loading" |
| | | border |
| | | :data="organfeeList" |
| | | show-summary |
| | | :summary-method="getSummaries" |
| | | highlight-current-row |
| | | @current-change="handleCurrentChange" |
| | | > |
| | |
| | | /> |
| | | <el-table-column |
| | | label="操作" |
| | | width="210" |
| | | width="230" |
| | | align="center" |
| | | fixed="right" |
| | | > |
| | |
| | | :precision="2" |
| | | :controls="false" |
| | | placeholder="请输入实收金额" |
| | | style="width: 100%" |
| | | /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item label="收款日期" prop="organtime"> |
| | | <el-date-picker |
| | | v-model="editForm.organtime" |
| | | type="date" |
| | | value-format="yyyy-MM-dd" |
| | | placeholder="请选择收款日期" |
| | | style="width: 100%" |
| | | /> |
| | | </el-form-item> |
| | |
| | | addDonorchargeorgan, |
| | | updateDonorchargeorgan, |
| | | delDonorchargeorgan, |
| | | exportOrganfee |
| | | exportOrganfee, |
| | | getOrganfeeSummary |
| | | } from "@/api/project/donorcharge"; |
| | | import { listOrganization } from "@/api/project/organization"; |
| | | |
| | |
| | | showSearch: true, |
| | | // 总条数 |
| | | total: 0, |
| | | // 合计(应收/实收/未回款) |
| | | summary: { |
| | | organchargeTotal: 0, |
| | | amountTotal: 0, |
| | | unreceivedTotal: 0 |
| | | }, |
| | | // 器官费用列表 |
| | | organfeeList: [], |
| | | // 表格当前选中行 |
| | |
| | | organcharge: null, |
| | | amount: null, |
| | | organState: null, |
| | | organchargedesc: null |
| | | organchargedesc: null, |
| | | organtime: null |
| | | }, |
| | | // 新增弹窗 |
| | | addOpen: false, |
| | |
| | | hospitalno: null, |
| | | hospitalnoIsNull: false, |
| | | donorname: null, |
| | | organname: null, |
| | | organState: null, |
| | | payStatus: null, |
| | | paymentid: null, |
| | |
| | | .finally(() => { |
| | | this.loading = false; |
| | | }); |
| | | this.getSummary(); |
| | | }, |
| | | /** 查询合计(应收/实收/未回款),按当前查询条件统计全部结果 */ |
| | | getSummary() { |
| | | getOrganfeeSummary(this.queryParams) |
| | | .then(response => { |
| | | const data = response.data || {}; |
| | | this.summary = { |
| | | organchargeTotal: Number(data.organchargeTotal || 0), |
| | | amountTotal: Number(data.amountTotal || 0), |
| | | unreceivedTotal: Number(data.unreceivedTotal || 0) |
| | | }; |
| | | }) |
| | | .catch(() => {}); |
| | | }, |
| | | /** 表格底部合计行 */ |
| | | getSummaries({ columns }) { |
| | | const sums = []; |
| | | columns.forEach((column, index) => { |
| | | if (index === 0) { |
| | | sums[index] = "合计"; |
| | | return; |
| | | } |
| | | if (column.property === "organcharge") { |
| | | sums[index] = this.summary.organchargeTotal.toFixed(2); |
| | | } else if (column.property === "amount") { |
| | | sums[index] = this.summary.amountTotal.toFixed(2); |
| | | } else if (column.label === "未回款金额") { |
| | | sums[index] = this.summary.unreceivedTotal.toFixed(2); |
| | | } else { |
| | | sums[index] = ""; |
| | | } |
| | | }); |
| | | return sums; |
| | | }, |
| | | /** 导出按钮操作 */ |
| | | handleExport() { |
| | |
| | | row.organState === null || row.organState === undefined |
| | | ? null |
| | | : String(row.organState), |
| | | organchargedesc: row.organchargedesc || "" |
| | | organchargedesc: row.organchargedesc || "", |
| | | organtime: row.organtime |
| | | }; |
| | | this.editOpen = true; |
| | | }, |
| | |
| | | this.queryParams.hospitalnoIsNull = false; |
| | | this.queryParams.hospitalno = null; |
| | | this.queryParams.donorname = null; |
| | | this.queryParams.organname = null; |
| | | this.queryParams.organState = null; |
| | | this.queryParams.payStatus = null; |
| | | this.queryParams.starttime = null; |
| | |
| | | this.queryParams.hospitalno = null; |
| | | this.queryParams.hospitalnoIsNull = true; |
| | | } else { |
| | | this.queryParams.hospitalno = value; |
| | | const selectedOption = this.organizationList.findIndex(item => item.organizationid === value); |
| | | if(selectedOption==-1){ |
| | | this.queryParams.hospitalname = value; |
| | | this.queryParams.hospitalno=null; |
| | | } |
| | | else{ |
| | | this.queryParams.hospitalno=value; |
| | | this.queryParams.hospitalname=null; |
| | | } |
| | | |
| | | |
| | | this.queryParams.hospitalnoIsNull = false; |
| | | } |
| | | this.queryParams.pageNum = 1; |