| | |
| | | { required: true, message: "请输入所属业务组", trigger: "blur" } |
| | | ] |
| | | }, |
| | | |
| | | gxinzt: false, |
| | | baselist: [], |
| | | donorList: [], |
| | | organchargelist: [], |
| | |
| | | this.operationType = this.$route.query.operation; |
| | | this.curId = this.$route.query.id; |
| | | this.curCase = this.$route.query.data; |
| | | this.gxinzt = this.$route.query.gxinzt; |
| | | console.log(this.curCase); |
| | | console.log("this.$route.query", this.$route.query); |
| | | |
| | | if (this.operationType == "add") { |
| | |
| | | this.form.age = this.curCase.age; |
| | | this.form.donationcategory = this.curCase.donationcategory; |
| | | |
| | | //获取完成登记的器官表 |
| | | if (this.curCase.id > 0) { |
| | | this.organParams.infoid = this.curCase.id; |
| | | listDonorchargeorgan(this.organParams).then(res => { |
| | | console.log("listDonorchargeorgan", res); |
| | | this.donorchargeorgans = res.rows; |
| | | if (this.donorchargeorgans.length > 0) { |
| | | } else { |
| | | this.curCase.id = 0; |
| | | } |
| | | let searchParam = { |
| | | infoid: this.curCase.id |
| | | }; |
| | | listDonatecomporgan(searchParam).then(res => { |
| | | if (res.code == 200) { |
| | | // 查询器官费用表 |
| | | let tempParam = { |
| | | organcode: null, |
| | | organname: null, |
| | | charge: null |
| | | }; |
| | | listOrgancharge(tempParam).then(res1 => { |
| | | if (res1.code == 200) { |
| | | this.organchargelist = res1.rows; |
| | | } |
| | | |
| | | //插入器官表 |
| | | res.rows.forEach(item => { |
| | | //获取费用金额 |
| | | this.organchargelist.map(rescharge => { |
| | | if (rescharge.organcode == item.organno) { |
| | | this.donorchargeorgans.push({ |
| | | organno: item.organno, |
| | | organname: item.organname, |
| | | organcharge: rescharge.charge, |
| | | infoid: item.infoid, |
| | | hospitalname: item.transplanthospitalname, |
| | | hospitalno: item.transplanthospitalno, |
| | | organtime: item.transplanttime, |
| | | chargestate: "0" |
| | | }); |
| | | } |
| | | }); |
| | | }); |
| | | }); |
| | | this.addRow(0); |
| | | } |
| | | }); |
| | | } |
| | |
| | | this.form = response.data; |
| | | console.log("getDonorcharge", response); |
| | | //器官费用信息 |
| | | this.organParams.donorchargeid = this.curId; |
| | | this.organParams.infoid = this.form.infoid; |
| | | console.log("this.organParams", this.organParams); |
| | | listDonorchargeorgan(this.organParams).then(res => { |
| | | console.log("listDonorchargeorgan", res); |
| | |
| | | if (this.donorchargeorgans.length > 0) { |
| | | } else { |
| | | this.addRow(0); |
| | | } |
| | | if ((this.gxinzt = true)) { |
| | | this.submitForm(); |
| | | } |
| | | }); |
| | | }); |
| | |
| | | this.title = "查看捐献案例器官费用表"; |
| | | |
| | | //器官费用信息 |
| | | this.organParams.donorchargeid = this.curId; |
| | | this.organParams.infoid = this.form.infoid; |
| | | listDonorchargeorgan(this.organParams).then(res => { |
| | | this.donorchargeorgans = res.rows; |
| | | if (this.donorchargeorgans.length > 0) { |