| | |
| | | > |
| | | <el-form-item label="回款医院" prop="hospitalno"> |
| | | <el-select |
| | | v-model="queryParams.hospitalno" |
| | | v-model="hospitalFilter" |
| | | placeholder="请选择回款医院" |
| | | clearable |
| | | filterable |
| | | size="small" |
| | | style="width: 200px" |
| | | @change="handleHospitalFilterChange" |
| | | filterable |
| | | allow-create |
| | | > |
| | | <el-option label="未填写回款医院" value="__EMPTY__" /> |
| | | <el-option |
| | | v-for="item in organizationList" |
| | | :key="item.organizationid" |
| | | :label="item.organizationname" |
| | | :value="item.organizationid" |
| | | :value="String(item.organizationid)" |
| | | /> |
| | | |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="回款状态" prop="payStatus"> |
| | |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item label="应收金额" prop="organcharge"> |
| | | <el-input-number |
| | | v-model="editForm.organcharge" |
| | | :min="0" |
| | | :precision="2" |
| | | :controls="false" |
| | | placeholder="请输入应收金额" |
| | | style="width: 100%" |
| | | /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item label="实收金额" prop="amount"> |
| | | <el-input-number |
| | | v-model="editForm.amount" |
| | | :min="0" |
| | | :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> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item label="利用状态" prop="organState"> |
| | | <el-select |
| | | v-model="editForm.organState" |
| | |
| | | payOrganName: null, |
| | | caseno: null, |
| | | name: null, |
| | | organcharge: null, |
| | | amount: null, |
| | | organState: null, |
| | | organchargedesc: null |
| | | organchargedesc: null, |
| | | organtime: null |
| | | }, |
| | | // 新增弹窗 |
| | | addOpen: false, |
| | |
| | | ] |
| | | }, |
| | | // 查询参数 |
| | | // 回款医院筛选(__EMPTY__ 表示未填写) |
| | | hospitalFilter: null, |
| | | queryParams: { |
| | | pageNum: 1, |
| | | pageSize: 10, |
| | | hospitalno: null, |
| | | hospitalnoIsNull: false, |
| | | donorname: null, |
| | | organState: null, |
| | | payStatus: null, |
| | |
| | | }); |
| | | }); |
| | | }, |
| | | /** 打开修改弹窗(付款医院、付款器官名称、器官状态、备注) */ |
| | | /** 打开修改弹窗(回款医院、付款器官名称、金额、利用状态、备注) */ |
| | | handleEdit(row) { |
| | | this.editForm = { |
| | | id: row.id, |
| | |
| | | payOrganName: row.payOrganName || "", |
| | | caseno: row.caseno || "", |
| | | name: row.name || "", |
| | | organcharge: |
| | | row.organcharge === null || row.organcharge === undefined |
| | | ? null |
| | | : row.organcharge, |
| | | amount: |
| | | row.amount === null || row.amount === undefined ? null : row.amount, |
| | | organState: |
| | | row.organState === null || row.organState === undefined |
| | | ? null |
| | | : String(row.organState), |
| | | organchargedesc: row.organchargedesc || "" |
| | | organchargedesc: row.organchargedesc || "", |
| | | organtime: row.organtime |
| | | }; |
| | | this.editOpen = true; |
| | | }, |
| | |
| | | /** 重置按钮操作 */ |
| | | resetQuery() { |
| | | this.donatetimeRange = []; |
| | | this.hospitalFilter = null; |
| | | this.queryParams.hospitalnoIsNull = false; |
| | | this.queryParams.hospitalno = null; |
| | | this.queryParams.donorname = null; |
| | | this.queryParams.organState = null; |
| | |
| | | this.queryParams.pageNum = 1; |
| | | this.getList(); |
| | | }, |
| | | /** 回款医院筛选:__EMPTY__ 表示只查未填写回款医院的数据 */ |
| | | handleHospitalFilterChange(value) { |
| | | if (value === "__EMPTY__") { |
| | | this.queryParams.hospitalno = null; |
| | | this.queryParams.hospitalnoIsNull = true; |
| | | } else { |
| | | 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; |
| | | }, |
| | | /** 报告日期区间 -> 查询参数,未选择时传 null,避免后端拼出 donatetime >= '' */ |
| | | handleDonatetimeChange(val) { |
| | | if (val && val.length === 2) { |