From 44cb62ea744df9576d3591a96868364af2a2ffa0 Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期二, 07 十一月 2023 18:15:24 +0800
Subject: [PATCH] 11
---
src/views/project/donatebaseinfo/index.vue | 104 ++++++++++++++++++++++++++++++----------------------
1 files changed, 60 insertions(+), 44 deletions(-)
diff --git a/src/views/project/donatebaseinfo/index.vue b/src/views/project/donatebaseinfo/index.vue
index 7abbde0..ea365c8 100644
--- a/src/views/project/donatebaseinfo/index.vue
+++ b/src/views/project/donatebaseinfo/index.vue
@@ -124,15 +124,15 @@
<el-table-column label="鎿嶄綔" align="center" class-name="small-padding fixed-width" width="200" fixed="right">
<template slot-scope="scope">
<el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)"
- v-hasPermi="['project:donatebaseinfo:edit']">淇敼</el-button>
+ v-hasPermi="['project:donatebaseinfo:edit']">璇︽儏</el-button>
- <el-button v-if="scope.row.recordstate == 0" size="mini" type="text" icon="el-icon-delete"
+ <!-- <el-button v-if="scope.row.recordstate == 0" size="mini" type="text" icon="el-icon-delete"
@click="handleDelete(scope.row)" v-hasPermi="['project:donatebaseinfo:remove']">鍒犻櫎</el-button>
<el-button size="mini" type="text" icon="el-icon-edit" @click="handletermination(scope.row)"
v-hasPermi="['project:donatebaseinfo:edit']">缁堟</el-button>
<el-button size="mini" type="text" icon="el-icon-refrigerator" @click="handledownload(scope.row)">涓嬭浇</el-button>
<el-button v-if="scope.row.recordstate == 0 || scope.row.recordstate == 3" size="mini" type="text"
- icon="el-icon-thumb" @click="handleapproval(scope.row)">涓婃姤瀹℃牳</el-button>
+ icon="el-icon-thumb" @click="handleapproval(scope.row)">涓婃姤瀹℃牳</el-button> -->
<!-- 鎾ら攢鐢宠 -->
</template>
</el-table-column>
@@ -646,6 +646,9 @@
rules: {
name: [
{ required: true, message: "璇疯緭鍏ユ崘鐚�呭鍚�", trigger: "blur" },
+ ],
+ birthday: [
+ { required: true, message: "璇烽�夋嫨鍑虹敓鏃ユ湡", trigger: "blur" },
],
idcardtype: [
{ required: true, message: "璇烽�夋嫨璇佷欢绫诲瀷", trigger: "blur" },
@@ -1176,55 +1179,68 @@
},
/** 鏂板鎸夐挳鎿嶄綔 */
handleAdd() {
- this.reset();
- //璁剧疆鎶ュ憡浜哄拰閮ㄩ棬/缁�
- this.form.reporterno = this.currentuser.userName;
- this.form.reportername = this.currentuser.nickName;
- this.form.deptid = this.currentuser.deptid;
-
- this.showSaveBtn = true;
- //this.$refs.annex.getAnnexList();
- this.open = true;
- this.$nextTick(function () {
- this.$refs.annex.getAnnexList();
+ this.$router.push({
+ path: "/organ/donationdetails/",
+ query: {
+ organType: "add",
+ }
});
+ // this.reset();
+ // //璁剧疆鎶ュ憡浜哄拰閮ㄩ棬/缁�
+ // this.form.reporterno = this.currentuser.userName;
+ // this.form.reportername = this.currentuser.nickName;
+ // this.form.deptid = this.currentuser.deptid;
- this.title = "浜轰綋鍣ㄥ畼娼滃湪鎹愮尞鑰呯櫥璁拌〃";
+ // this.showSaveBtn = true;
+ // //this.$refs.annex.getAnnexList();
+ // this.open = true;
+ // this.$nextTick(function () {
+ // this.$refs.annex.getAnnexList();
+ // });
+
+ // this.title = "浜轰綋鍣ㄥ畼娼滃湪鎹愮尞鑰呯櫥璁拌〃";
},
/** 淇敼鎸夐挳鎿嶄綔 */
handleUpdate(row) {
- this.showSaveBtn = true;
- const id = row.id || this.ids;
- //this.$refs.annex.getAnnexList();
-
- getDonatebaseinfo(id).then((response) => {
- this.reset();
-
- this.$nextTick(function () {
- this.$refs.annex.getAnnexList();
- });
- this.form = response.data;
- response.data.sex = parseInt(response.data.sex);
- this.form.id = response.data.id;
- this.form.diseasetype = this.form.diseasetype.split(",");
- this.form.infectious = this.form.infectious.split(",");
- this.form.selfwill = this.form.selfwill.split(",");
- this.form.othercases = this.form.othercases.split(",");
- this.form.infosources = this.form.infosources.split(",");
- this.form.kinship = this.form.kinship.split(",");
- this.form.patientstate = this.form.patientstate.split(",");
- this.open = true;
- this.title = "浜轰綋鍣ㄥ畼娼滃湪鎹愮尞鑰呯櫥璁拌〃";
- this.registerAddresss.sheng = response.data.registerprovincename;
- this.residenceAddresss.sheng = response.data.residenceprovincename;
- this.registerAddresss.shi = response.data.registercityname;
- this.residenceAddresss.shi = response.data.residencecityname;
- this.residenceAddresss.qu = response.data.residencetownname;
- this.registerAddresss.qu = response.data.registertownname;
+ this.$router.push({
+ path: "/organ/donationdetails/",
+ query: {
+ id: row.id,
+ organType: "edit",
+ }
});
- },
+ // this.showSaveBtn = true;
+ // const id = row.id || this.ids;
+ // //this.$refs.annex.getAnnexList();
+ // getDonatebaseinfo(id).then((response) => {
+ // this.reset();
+
+ // this.$nextTick(function () {
+ // this.$refs.annex.getAnnexList();
+ // });
+ // this.form = response.data;
+ // response.data.sex = parseInt(response.data.sex);
+ // this.form.id = response.data.id;
+ // this.form.diseasetype = this.form.diseasetype.split(",");
+ // this.form.infectious = this.form.infectious.split(",");
+ // this.form.selfwill = this.form.selfwill.split(",");
+ // this.form.othercases = this.form.othercases.split(",");
+ // this.form.infosources = this.form.infosources.split(",");
+ // this.form.kinship = this.form.kinship.split(",");
+ // this.form.patientstate = this.form.patientstate.split(",");
+ // this.open = true;
+ // this.title = "浜轰綋鍣ㄥ畼娼滃湪鎹愮尞鑰呯櫥璁拌〃";
+ // this.registerAddresss.sheng = response.data.registerprovincename;
+ // this.residenceAddresss.sheng = response.data.residenceprovincename;
+ // this.registerAddresss.shi = response.data.registercityname;
+ // this.residenceAddresss.shi = response.data.residencecityname;
+ // this.residenceAddresss.qu = response.data.residencetownname;
+ // this.registerAddresss.qu = response.data.registertownname;
+ // });
+ },
+// 缁堟妗堜緥
handletermination(row) {
this.reset();
this.showSaveBtn = false;
--
Gitblit v1.9.3