| | |
| | | |
| | | // 固定的选项列表(移除了"遗体") |
| | | firstLineOrgans: [ |
| | | "肝脏", "肾脏", "单左肾", "单右肾", |
| | | "肝脏", "肾脏", "左肾脏", "右肾脏", |
| | | "心脏", "肺脏", "胰腺", "小肠" |
| | | ], |
| | | // 第二行选项(您需要一起换行的两项) |
| | |
| | | } else if (this.actives == 2) { |
| | | this.activetele = "捐献确认"; |
| | | |
| | | listRelativesconfirmation(searchParam).then(response => { |
| | | if (response.code == 200 && response.rows[0]) { |
| | | this.affirmform = response.rows[0]; |
| | | if (this.affirmform.organdecision) { |
| | | this.organdecision = this.affirmform.organdecision |
| | | .split(",") |
| | | .flatMap(item => (item === "双肾脏" ? ["左肾", "右肾"] : item)); |
| | | } |
| | | if (this.affirmform.kinship) { |
| | | this.kinship = this.affirmform.kinship.split(","); |
| | | } |
| | | if (!this.affirmform) { |
| | | this.affirmform = {}; |
| | | this.affirmform.residenceprovincename = ""; |
| | | this.affirmform.residencecityname = ""; |
| | | this.affirmform.residencetownname = ""; |
| | | } |
| | | this.defultAddresss.sheng = this.affirmform.residenceprovincename; |
| | | this.defultAddresss.shi = this.affirmform.residencecityname; |
| | | this.defultAddresss.qu = this.affirmform.residencetownname; |
| | | } else { |
| | | // this.$modal.msgError( |
| | | // "查询是否存在确认登记记录失败" + JSON.stringify(response) |
| | | // ); |
| | | } |
| | | }); |
| | | listRelativesconfirmation(searchParam).then(response => { |
| | | if (response.code == 200 && response.rows[0]) { |
| | | this.affirmform = response.rows[0]; |
| | | |
| | | // 修改器官决策的显示文本 |
| | | if (this.affirmform.organdecision) { |
| | | // 替换器官名称 |
| | | let organdecision = this.affirmform.organdecision |
| | | .replace(/单左肾/g, '左肾脏') |
| | | .replace(/单右肾/g, '右肾脏') |
| | | .replace(/双肾脏/g, '双肾脏'); // 保持双肾脏不变 |
| | | |
| | | this.organdecision = organdecision |
| | | .split(",") |
| | | .flatMap(item => (item === "双肾脏" ? ["左肾", "右肾"] : item)); |
| | | } |
| | | |
| | | if (this.affirmform.kinship) { |
| | | this.kinship = this.affirmform.kinship.split(","); |
| | | } |
| | | if (!this.affirmform) { |
| | | this.affirmform = {}; |
| | | this.affirmform.residenceprovincename = ""; |
| | | this.affirmform.residencecityname = ""; |
| | | this.affirmform.residencetownname = ""; |
| | | } |
| | | this.defultAddresss.sheng = this.affirmform.residenceprovincename; |
| | | this.defultAddresss.shi = this.affirmform.residencecityname; |
| | | this.defultAddresss.qu = this.affirmform.residencetownname; |
| | | } else { |
| | | // this.$modal.msgError( |
| | | // "查询是否存在确认登记记录失败" + JSON.stringify(response) |
| | | // ); |
| | | } |
| | | }); |
| | | } else if (this.actives == 3) { |
| | | this.activetele = "伦理审查"; |
| | | |