From 51da1652ed49184ee29cb7bcbea6a7187c5b51b7 Mon Sep 17 00:00:00 2001
From: yxh <172933527@qq.com>
Date: 星期四, 18 一月 2024 13:56:36 +0800
Subject: [PATCH] yxh
---
src/views/project/relativesconfirmation/index.vue | 179 ++++++++++++++++++++++++++++++-----------------------------
1 files changed, 90 insertions(+), 89 deletions(-)
diff --git a/src/views/project/relativesconfirmation/index.vue b/src/views/project/relativesconfirmation/index.vue
index 842b251..54cbad9 100644
--- a/src/views/project/relativesconfirmation/index.vue
+++ b/src/views/project/relativesconfirmation/index.vue
@@ -1573,97 +1573,98 @@
},
/** 瀹跺睘纭鎿嶄綔 */
handleAdd(row) {
- this.$router.push({
- path: "/organ/donationdetails/",
- query: {
- id: row.id,
- organType: "edit",
- }
- });
- // console.log("ppppppp", row);
- // this.showSaveBtn = false;
- // this.flowname = "瀹跺睘纭鐧昏";
- // this.annexno = "";
- // //鏌ヨ鏄惁瀛樺湪纭鐧昏璁板綍
- // let searchparam = {
- // infoid: row.id,
- // };
- // this.loading = true;
- // this.curCase = {
- // id: row.id,
- // recordstate: null,
- // donorno: row.donorno,
- // };
- // console.log("32323232323", searchparam);
- // listRelativesconfirmation(searchparam).then((response) => {
- // console.log("wdadwadawdawd", response);
- // this.loading = false;
- // if (response.code == 200) {
- // if (response.rows.length == 0) {
- // this.form.infoid = row.id;
- // this.form.donorno = row.donorno;
- // this.form.doname = row.name;
- // this.form.dosex = row.sex;
- // this.form.dobirthday = row.birthday;
- // this.form.donationality = row.nationality;
- // this.form.doeducation = row.education;
- // this.form.dooccupation = row.occupation;
- // this.form.donation = row.nation;
- // this.form.doidcardtype = row.idcardtype;
- // this.form.doidcardno = row.idcardno;
- // this.form.donativeplace = row.nativeplace;
- // this.open = true;
- // this.title = "鏂板浜轰綋鍣ㄥ畼鎹愮尞浜插睘纭鐧昏琛�";
- // this.$nextTick(function () {
- // this.$refs.confirmannex.getAnnexList();
- // });
- // } else if (response.rows.length == 1) {
- // this.form = response.rows[0];
- // console.log("2222222", this.form);
- // console.log("缂栬緫瀹跺睘纭form", this.form);
- // this.form.donorno = row.donorno;
- // this.form.doname = row.name;
- // this.form.dosex = row.sex;
- // // 鍑虹敓鏃ユ湡
- // this.form.dobirthday = row.birthday;
- // // 姘戞棌
- // this.form.donationality = row.nationality;
- // // 瀛﹀巻
- // this.form.doeducation = row.education;
- // // 鑱屼笟
- // this.form.dooccupation = row.occupation;
- // this.form.donation = row.nation;
- // this.form.doidcardtype = row.idcardtype;
- // this.form.doidcardno = row.idcardno;
- // this.form.donativeplace = row.nativeplace;
- // // this.form.donativeplace =
- // // row.residenceProvinceName +
- // // row.residenceCityName +
- // // row.residenceTownName;
- // this.defultAddresss.sheng = this.form.residenceprovincename;
- // this.defultAddresss.shi = this.form.residencecityname;
- // this.defultAddresss.qu = this.form.residencetownname;
- // console.log("9999999", this.form.organdecision);
- // if (this.form.kinship) {
- // this.form.kinship = this.form.kinship.split(",");
- // }
- // if (this.form.organdecision) {
- // this.form.organdecision = this.form.organdecision.split(",");
- // }
- // this.open = true;
- // this.title = "淇敼浜轰綋鍣ㄥ畼鎹愮尞浜插睘纭鐧昏琛�";
- // this.$nextTick(function () {
- // this.$refs.confirmannex.getAnnexList();
- // });
- // } else {
- // this.$modal.msgError(
- // "鏌ヨ鏄惁瀛樺湪纭鐧昏璁板綍澶辫触" +
- // JSON.stringify(JSON.stringify(response))
- // );
- // }
+ // this.$router.push({
+ // path: "/organ/donationdetails/",
+ // query: {
+ // id: row.id,
+ // organType: "edit",
// }
// });
- // this.reset();
+ // return ;
+ console.log("ppppppp", row);
+ this.showSaveBtn = false;
+ this.flowname = "瀹跺睘纭鐧昏";
+ this.annexno = "";
+ //鏌ヨ鏄惁瀛樺湪纭鐧昏璁板綍
+ let searchparam = {
+ infoid: row.id,
+ };
+ this.loading = true;
+ this.curCase = {
+ id: row.id,
+ recordstate: null,
+ donorno: row.donorno,
+ };
+ console.log("32323232323", searchparam);
+ listRelativesconfirmation(searchparam).then((response) => {
+ console.log("wdadwadawdawd", response);
+ this.loading = false;
+ if (response.code == 200) {
+ if (response.rows.length == 0) {
+ this.form.infoid = row.id;
+ this.form.donorno = row.donorno;
+ this.form.doname = row.name;
+ this.form.dosex = row.sex;
+ this.form.dobirthday = row.birthday;
+ this.form.donationality = row.nationality;
+ this.form.doeducation = row.education;
+ this.form.dooccupation = row.occupation;
+ this.form.donation = row.nation;
+ this.form.doidcardtype = row.idcardtype;
+ this.form.doidcardno = row.idcardno;
+ this.form.donativeplace = row.nativeplace;
+ this.open = true;
+ this.title = "鏂板浜轰綋鍣ㄥ畼鎹愮尞浜插睘纭鐧昏琛�";
+ this.$nextTick(function () {
+ this.$refs.confirmannex.getAnnexList();
+ });
+ } else if (response.rows.length == 1) {
+ this.form = response.rows[0];
+ console.log("2222222", this.form);
+ console.log("缂栬緫瀹跺睘纭form", this.form);
+ this.form.donorno = row.donorno;
+ this.form.doname = row.name;
+ this.form.dosex = row.sex;
+ // 鍑虹敓鏃ユ湡
+ this.form.dobirthday = row.birthday;
+ // 姘戞棌
+ this.form.donationality = row.nationality;
+ // 瀛﹀巻
+ this.form.doeducation = row.education;
+ // 鑱屼笟
+ this.form.dooccupation = row.occupation;
+ this.form.donation = row.nation;
+ this.form.doidcardtype = row.idcardtype;
+ this.form.doidcardno = row.idcardno;
+ this.form.donativeplace = row.nativeplace;
+ // this.form.donativeplace =
+ // row.residenceProvinceName +
+ // row.residenceCityName +
+ // row.residenceTownName;
+ this.defultAddresss.sheng = this.form.residenceprovincename;
+ this.defultAddresss.shi = this.form.residencecityname;
+ this.defultAddresss.qu = this.form.residencetownname;
+ console.log("9999999", this.form.organdecision);
+ if (this.form.kinship) {
+ this.form.kinship = this.form.kinship.split(",");
+ }
+ if (this.form.organdecision) {
+ this.form.organdecision = this.form.organdecision.split(",");
+ }
+ this.open = true;
+ this.title = "淇敼浜轰綋鍣ㄥ畼鎹愮尞浜插睘纭鐧昏琛�";
+ this.$nextTick(function () {
+ this.$refs.confirmannex.getAnnexList();
+ });
+ } else {
+ this.$modal.msgError(
+ "鏌ヨ鏄惁瀛樺湪纭鐧昏璁板綍澶辫触" +
+ JSON.stringify(JSON.stringify(response))
+ );
+ }
+ }
+ });
+ this.reset();
},
/** 鎻愪氦鎸夐挳 */
submitForm() {
--
Gitblit v1.9.3