From 57455461759413f3fc0430ecfc84c0152ac143bd Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期五, 08 三月 2024 16:15:26 +0800
Subject: [PATCH] 11
---
src/views/project/ethicalReview/index.vue | 221 +++++++++++++++++++++++++++++-------------------------
1 files changed, 119 insertions(+), 102 deletions(-)
diff --git a/src/views/project/ethicalReview/index.vue b/src/views/project/ethicalReview/index.vue
index efdf86e..ae154db 100644
--- a/src/views/project/ethicalReview/index.vue
+++ b/src/views/project/ethicalReview/index.vue
@@ -26,8 +26,8 @@
<el-col :span="6">
<el-form-item label="鎹愮尞杩涘害" prop="recordstate">
- <el-select v-model="queryParams.recordstate" placeholder="璇烽�夋嫨鎹愮尞杩涘害" clearable size="small">
- <el-option v-for="dict in dict.type.sys_DonationStatus" :key="dict.value" :label="dict.label"
+ <el-select v-model="queryParams.workflow" placeholder="璇烽�夋嫨鎹愮尞杩涘害" clearable size="small">
+ <el-option v-for="dict in dict.type.sys_donornode" :key="dict.value" :label="dict.label"
:value="dict.value" />
</el-select>
</el-form-item>
@@ -61,36 +61,34 @@
</el-form>
<el-table :default-sort="{ prop: 'createTime' }" v-loading="loading" :data="listnews" border>
- <el-table-column label="鎶ュ憡鏃堕棿" align="center" prop="reporttime" width="140">
- <template slot-scope="scope">
- <span>{{ parseTime(scope.row.reporttime, "{y}-{m}-{d}") }}</span>
- </template>
- </el-table-column>
-
- <el-table-column label="濮撳悕" align="center" prop="name" width="120" />
-
+ <el-table-column label="鎹愮尞鑰�" align="center" prop="name" width="120" />
<el-table-column label="骞撮緞" align="center" prop="age" width="100" />
<el-table-column label="鎬у埆" align="center" prop="sex" width="100">
<template slot-scope="scope">
<dict-tag :options="dict.type.sys_user_sex" :value="parseInt(scope.row.sex)" />
</template>
</el-table-column>
- <el-table-column label="骞撮緞" align="center" prop="age" width="100" />
<el-table-column label="鍖荤枟鏈烘瀯" align="center" prop="treatmenthospitalname" />
- <el-table-column label="瀹℃煡缁撹" align="center" prop="flowconclusion" width="100">
+ <el-table-column label="浼︾悊瀹℃煡缁撹" align="center" prop="flowconclusion" width="100">
<template slot-scope="scope">
<dict-tag :options="dict.type.sys_EthicalReview" :value="scope.row.flowconclusion" />
</template>
</el-table-column>
+ <el-table-column label="瀹℃煡鎰忚" align="center" prop="flowcontent" />
<el-table-column label="瀹℃煡鏃堕棿" align="center" prop="createTime" width="160" />
<!-- <el-table-column label="韬唤璇佸彿" prop="idcardno" width="200" /> -->
<el-table-column label="鎶ュ憡浜�" align="center" prop="reportername" width="100" />
-
+ <el-table-column label="鎶ュ憡鏃堕棿" align="center" prop="reporttime" width="140">
+ <template slot-scope="scope">
+ <span>{{ parseTime(scope.row.reporttime, "{y}-{m}-{d}") }}</span>
+ </template>
+ </el-table-column>
+ <!--
<el-table-column label="鎹愮尞杩涘害" align="center" prop="recordstate">
<template slot-scope="scope">
<dict-tag :options="dict.type.sys_DonationStatus" :value="scope.row.recordstate" />
</template>
- </el-table-column>
+ </el-table-column> -->
<el-table-column label="鎿嶄綔" align="center" width="150px" class-name="small-padding fixed-width" fixed="right">
<template slot-scope="scope">
@@ -113,7 +111,7 @@
</el-form-item>
</el-col>
<el-col :span="12">
- <el-form-item label="濮撳悕">
+ <el-form-item label="鎹愮尞鑰呭鍚�">
<el-input v-model="curCase.name" placeholder="璇疯緭鍏ュ鍚�" disabled />
</el-form-item>
</el-col>
@@ -216,7 +214,7 @@
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
- <el-button type="primary" @click="submitForm">纭� 瀹�</el-button>
+ <el-button type="primary" :loading="loading" @click="submitForm">纭� 瀹�</el-button>
<el-button @click="cancel">鍙� 娑�</el-button>
</div>
</el-dialog>
@@ -294,6 +292,7 @@
"sys_FamilyRelation",
"sys_OrganizationType",
"sys_EthicalReview",
+ 'sys_donornode'
],
data() {
return {
@@ -684,100 +683,114 @@
this.handleQuery();
},
/** 浼︾悊瀹℃煡寮圭獥 */
- showDonationEvaluationDialog(dontateInfo) {
- console.log("浼︾悊瀹℃煡11", dontateInfo);
+ showDonationEvaluationDialog(row) {
+ this.$router.push({
+ path: "/organ/donationdetails/",
+ query: {
+ id: row.id,
+ organType: "edit",
+ }
+ });
//鏌ユ壘鏄惁瀛樺湪浼︾悊瀹℃煡璁板綍
//this.curCase = dontateInfo;
- this.curCase = {
- id: dontateInfo.id,
- recordstate: null,
- donorno: dontateInfo.donorno,
- };
- this.reset();
- this.form.donorno = dontateInfo.donorno;
- this.form.infoid = dontateInfo.id;
- this.expertAdviceQueryParam.infoid = dontateInfo.id;
- this.expertAdviceQueryParam.donorno = dontateInfo.donorno;
- // this.listnews.ConclusionTime = this.expertAdviceForm.conclusiontime;
- // this.getExpertList();
- this.form.flowname = "浼︾悊瀹℃煡";
- if (dontateInfo.fcid) {
- let queryParam = {
- id: dontateInfo.fcid,
- flowname: "浼︾悊瀹℃煡",
- };
- // flowname: "浼︾悊瀹℃煡",
- listDonateflowchart(queryParam).then((response) => {
- let evaluationList = response.rows;
- console.log("浼︾悊瀹℃煡", response.rows);
- if (evaluationList.length == 1) {
- this.form = evaluationList[0];
- this.open = true;
- this.$nextTick(function () {
- this.$refs.ethicalannex.getAnnexList();
- });
- this.title = "淇敼浼︾悊瀹℃煡";
- } else if (evaluationList.length == 0) {
- this.$modal.msgError("鏈壘鍒版湰妗堜緥鐨勪鸡鐞嗗鏌ヨ褰曪紝璇疯仈绯荤鐞嗗憳锛�");
- } else {
- this.$modal.msgError("鏁版嵁閲嶅");
- }
- });
- } else {
- this.title = "鏂板浼︾悊瀹℃煡";
- this.open = true;
- this.$nextTick(function () {
- this.$refs.ethicalannex.getAnnexList();
- });
- }
+ // this.curCase = {
+ // id: dontateInfo.id,
+ // donorno: dontateInfo.donorno,
+ // name: dontateInfo.name,
+ // recordstate: null,
+ // };
+
+ // this.reset();
+ // this.form.donorno = dontateInfo.donorno;
+ // this.form.infoid = dontateInfo.id;
+ // this.expertAdviceQueryParam.infoid = dontateInfo.id;
+ // this.expertAdviceQueryParam.donorno = dontateInfo.donorno;
+ // // this.listnews.ConclusionTime = this.expertAdviceForm.conclusiontime;
+ // // this.getExpertList();
+ // this.form.flowname = "浼︾悊瀹℃煡";
+ // if (dontateInfo.fcid) {
+ // let queryParam = {
+ // id: dontateInfo.fcid,
+ // flowname: "浼︾悊瀹℃煡",
+ // };
+ // // flowname: "浼︾悊瀹℃煡",
+ // listDonateflowchart(queryParam).then((response) => {
+ // let evaluationList = response.rows;
+ // console.log("浼︾悊瀹℃煡", response.rows);
+ // if (evaluationList.length == 1) {
+ // this.form = evaluationList[0];
+ // this.open = true;
+ // this.$nextTick(function () {
+ // this.$refs.ethicalannex.getAnnexList();
+ // });
+ // this.title = "淇敼浼︾悊瀹℃煡";
+ // } else if (evaluationList.length == 0) {
+ // this.$modal.msgError("鏈壘鍒版湰妗堜緥鐨勪鸡鐞嗗鏌ヨ褰曪紝璇疯仈绯荤鐞嗗憳锛�");
+ // } else {
+ // this.$modal.msgError("鏁版嵁閲嶅");
+ // }
+ // });
+ // } else {
+ // this.title = "鏂板浼︾悊瀹℃煡";
+ // this.open = true;
+ // this.$nextTick(function () {
+ // this.$refs.ethicalannex.getAnnexList();
+ // });
+ // }
},
/** 淇濆瓨鎹愮尞璇勪及 */
submitForm() {
- this.$refs["form"].validate((valid) => {
- if (valid) {
- //鍒ゆ柇瀹℃煡鎰忚褰曞叆
- if (this.form.flowconclusion == 2 || this.form.flowconclusion == 3) {
- var exp = this.form.flowcontent;
- if (typeof exp == "undefined" || exp == null || exp == "") {
- this.$modal.msgError("璇疯緭鍏ュ鏌ユ剰瑙�!");
- return;
+ this.loading = true;
+ this.$nextTick(() => {
+ this.$refs["form"].validate((valid) => {
+ if (valid) {
+ //鍒ゆ柇瀹℃煡鎰忚褰曞叆
+ if (this.form.flowconclusion == 2 || this.form.flowconclusion == 3) {
+ var exp = this.form.flowcontent;
+ if (typeof exp == "undefined" || exp == null || exp == "") {
+ this.$modal.msgError("璇疯緭鍏ュ鏌ユ剰瑙�!");
+ return;
+ }
+ }
+
+ //鍒ゆ柇鏄惁鏄柊绾綍
+ if (this.form.id != null) {
+ // updateEthicalreviewopinions娌℃湁鏉冮檺
+ updateDonateflowchart(this.form).then((response) => {
+ this.$modal.msgSuccess("淇敼鎴愬姛");
+ //鏇存柊鎹愮尞鐘舵��
+ if (this.form.flowconclusion == 1) {
+ this.curCase.recordstate = 8;
+ } else {
+ this.curCase.recordstate = 9;
+ }
+ updateDonatebaseinfo(this.curCase).then((response) => {
+ this.open = false;
+ this.getList();
+ });
+ });
+ } else {
+ addDonateflowchart(this.form).then((response) => {
+ //鏇存柊鎹愮尞鐘舵��
+ if (this.form.flowconclusion == 1) {
+ this.curCase.recordstate = 8;
+ } else {
+ this.curCase.recordstate = 9;
+ }
+ updateDonatebaseinfo(this.curCase).then((response) => {
+ this.$modal.msgSuccess("鏂板鎴愬姛");
+ this.open = false;
+ this.getList();
+ });
+ });
}
}
-
- //鍒ゆ柇鏄惁鏄柊绾綍
- if (this.form.id != null) {
- // updateEthicalreviewopinions娌℃湁鏉冮檺
- updateDonateflowchart(this.form).then((response) => {
- this.$modal.msgSuccess("淇敼鎴愬姛");
- //鏇存柊鎹愮尞鐘舵��
- if (this.form.flowconclusion == 1) {
- this.curCase.recordstate = 8;
- } else {
- this.curCase.recordstate = 9;
- }
- updateDonatebaseinfo(this.curCase).then((response) => {
- this.open = false;
- this.getList();
- });
- });
- } else {
- addDonateflowchart(this.form).then((response) => {
- //鏇存柊鎹愮尞鐘舵��
- if (this.form.flowconclusion == 1) {
- this.curCase.recordstate = 8;
- } else {
- this.curCase.recordstate = 9;
- }
- updateDonatebaseinfo(this.curCase).then((response) => {
- this.$modal.msgSuccess("鏂板鎴愬姛");
- this.open = false;
- this.getList();
- });
- });
- }
- }
- });
+ });
+
+ this.loading = false;
+ })
},
+
/** 鑾峰彇鎹愮尞璇勪及 */
getDonationEvaluation(dontateInfo) {
//this.loading = true;
@@ -800,6 +813,7 @@
}
});
},
+
/** 鍒ゆ柇鏂板鎴栨槸缂栬緫 */
checkEditOrAdd(dontateInfo) {
if (dontateInfo.recordstate == 4) {
@@ -813,6 +827,7 @@
handlePreview(file) {
console.log(file);
},
+
//鏄剧ず涓撳鎰忚寮圭獥
showExpertAdviceDialog() {
this.resetExperAdviceForm();
@@ -820,6 +835,7 @@
this.expertAdviceForm.donorno = this.curCase.donorno;
this.isShowExpertAdviceDialog = true;
},
+
//淇濆瓨涓撳鎰忚
saveExpertAdvice() {
this.$refs["expertAdviceForm"].validate((valid) => {
@@ -869,6 +885,7 @@
})
.catch(() => { });
},
+
/** 淇敼鎸夐挳鎿嶄綔 */
handleUpdateExpert(row) {
this.reset();
--
Gitblit v1.9.3