From df1103bf5ba31714f7828bb9b1cba585223abdf3 Mon Sep 17 00:00:00 2001 From: yxh <172933527@qq.com> Date: 星期一, 28 八月 2023 11:04:06 +0800 Subject: [PATCH] yxh --- src/views/project/donationwitness/index.vue | 48 ++++++++++++++++++++++++++++++++---------------- 1 files changed, 32 insertions(+), 16 deletions(-) diff --git a/src/views/project/donationwitness/index.vue b/src/views/project/donationwitness/index.vue index 633cbcb..6592a4b 100644 --- a/src/views/project/donationwitness/index.vue +++ b/src/views/project/donationwitness/index.vue @@ -161,24 +161,19 @@ </el-form-item> </el-col> <el-col :span="6"> + <el-form-item label="璇佷欢鍙风爜" prop="idcardno"> + <el-input ref="updateBSvalue" class="sfzcode" v-model="curCase.idcardno" placeholder="璇疯緭鍏ヨ瘉浠跺彿鐮�" disabled /> + </el-form-item> + </el-col> + </el-row> + <!-- + <el-row> + <el-col :span="6"> <el-form-item label="姘戞棌" prop="nation"> <el-select v-model="curCase.nation" disabled placeholder="璇烽�夋嫨姘戞棌"> <el-option v-for="dict in dict.type.sys_nation" :key="dict.value" :label="dict.label" :value="dict.value"></el-option> </el-select> - </el-form-item> - </el-col> </el-row><el-row> - <el-col :span="6"> - <el-form-item label="璇佷欢绫诲瀷" prop="idcardtype"> - <el-select v-model="curCase.idcardtype" disabled placeholder="璇烽�夋嫨璇佷欢绫诲瀷"> - <el-option v-for="dict in dict.type.sys_IDType" :key="dict.value" :label="dict.label" - :value="parseInt(dict.value)"></el-option> - </el-select> - </el-form-item> - </el-col> - <el-col :span="6"> - <el-form-item label="璇佷欢鍙风爜" prop="idcardno"> - <el-input ref="updateBSvalue" class="sfzcode" v-model="curCase.idcardno" placeholder="璇疯緭鍏ヨ瘉浠跺彿鐮�" disabled /> </el-form-item> </el-col> <el-col :span="6"> @@ -197,8 +192,16 @@ </el-select> </el-form-item> </el-col> + <el-col :span="6"> + <el-form-item label="璇佷欢绫诲瀷" prop="idcardtype"> + <el-select v-model="curCase.idcardtype" disabled placeholder="璇烽�夋嫨璇佷欢绫诲瀷"> + <el-option v-for="dict in dict.type.sys_IDType" :key="dict.value" :label="dict.label" + :value="parseInt(dict.value)"></el-option> + </el-select> + </el-form-item> + </el-col> </el-row> - + --> <el-row> <el-col :span="24"> <el-form-item align="left" label="鎹愮尞鍐冲畾"> @@ -988,13 +991,24 @@ }, /** 鏂板鎸夐挳鎿嶄綔 */ handleAdd(row) { + this.reset(); + + const id = row.id; this.curCase = { id: row.id, recordstate: null, donorno: row.donorno, + name: row.name, + treatmenthospitalname: row.treatmenthospitalname, + sex: row.sex, + idcardtype: row.idcardtype, + idcardno: row.idcardno, + education: row.education, + nationality: row.nationality, + occupation: row.occupation, + birthday: row.birthday, }; - this.reset(); - const id = row.id; + getDonatebaseinfo(id).then((res) => { console.log("鎹愮尞鍩虹琛ㄦ暟鎹�", res); this.curCase.nation = res.data.nation; @@ -1002,6 +1016,7 @@ this.curCase.occupation = res.data.occupation; }); // this.open = true; + console.log("row", row); this.form.infoid = row.id; this.form.donorno = row.donorno; this.form.name = row.name; @@ -1161,6 +1176,7 @@ console.log( "璋冪敤鍣ㄥ畼鍒楄〃鎺ュ彛锛屽弬鏁帮細" + JSON.stringify(oraganqueryParam) ); + listDonateorgan(oraganqueryParam).then((response) => { this.loading = false; if (response.code == 200) { -- Gitblit v1.9.3