| | |
| | | if (res.code == 200) { |
| | | if (res.rows[0]) { |
| | | this.procureddata = res.rows; |
| | | this.procureddata.infoid = this.infoid; |
| | | // this.procureddata.infoid = this.infoid; |
| | | } else { |
| | | this.procureddata = this.allocateddata.filter( |
| | | obj => |
| | |
| | | obj.id = null; |
| | | return obj; |
| | | }); |
| | | this.procureddata.infoid = this.infoid; |
| | | // this.procureddata.infoid = this.infoid; |
| | | } |
| | | this.organList.organprocured = []; |
| | | for (let i = 0; i < this.procureddata.length; i++) { |
| | |
| | | } |
| | | }); |
| | | } else if (this.actives == 4) { |
| | | this.procureddata.infoid = this.infoid; |
| | | // this.procureddata.infoid = this.infoid; |
| | | this.$refs["allocateddataform"].validate(valid => { |
| | | this.$modal.loading("正在提交,请稍候!"); |
| | | |
| | |
| | | } |
| | | |
| | | //保存器官获取表数据 |
| | | this.procureddata.infoid = this.infoid; |
| | | // this.procureddata.infoid = this.infoid; |
| | | saveDonationwitnessorgan(this.procureddata).then(res => { |
| | | if (res == 200) { |
| | | this.$modal.msgSuccess("捐献器官获取信息保存成功!"); |
| | |
| | | this.$modal.loading("正在提交,请稍候!"); |
| | | |
| | | // 保存捐献器官移植信息 |
| | | this.transplantdata.infoid = this.infoid; |
| | | // this.transplantdata.infoid = this.infoid; |
| | | console.log(this.form); |
| | | this.transplantdata.forEach(item => { |
| | | listDonorchargeorgan({ |