| | |
| | | infoid: 736, |
| | | drawer: false, |
| | | form: {}, |
| | | istb:false, |
| | | activeName: "", |
| | | tableDatafile: [ |
| | | { |
| | |
| | | // ); |
| | | } |
| | | }); |
| | | } else if ( |
| | | this.actives == 5 && |
| | | !this.witnessform.id && |
| | | !this.procureddata[0] |
| | | ) { |
| | | } else if (this.actives == 5) { |
| | | // 不存在时获取器官信息 |
| | | if (this.witnessform.id) { |
| | | if (this.procureddata[0] && !this.istb) { |
| | | return; |
| | | } |
| | | |
| | | listDonationwitnessorgan(searchParam).then(res => { |
| | | if (res.code == 200) { |
| | | if (res.rows[0]) { |
| | |
| | | if (response.data) { |
| | | this.witnessform = response.data; |
| | | this.witnessform.infoid = this.infoid; |
| | | this.istb = false; |
| | | } |
| | | } else { |
| | | // this.$modal.msgError( |
| | |
| | | } else { |
| | | this.transplantdata = this.allocateddata; |
| | | this.transplantdata = this.transplantdata.map(obj => { |
| | | obj.id = null; |
| | | return obj; |
| | | }); |
| | | obj.id = null; |
| | | return obj; |
| | | }); |
| | | this.transplantdata.infoid = this.infoid; |
| | | } |
| | | for (let i = 0; i < this.transplantdata.length; i++) { |
| | |
| | | } else { |
| | | addDonationwitness(this.witnessform).then(response => { |
| | | this.$modal.msgSuccess("获取见证信息新增成功"); |
| | | this.istb = true; |
| | | this.$modal.closeLoading(); |
| | | }); |
| | | } |
| | |
| | | } |
| | | }); |
| | | |
| | | this.form.donationcategory = this.witnessform.donationcategory; |
| | | //this.form.donationcategory = this.witnessform.donationcategory; |
| | | this.Processvalidation(); |
| | | } |
| | | }); |