From 7bc46f0968567d82f70d310da021e2fc3a707cae Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期四, 30 五月 2024 15:04:49 +0800
Subject: [PATCH] 11
---
src/views/project/ethicalReview/index.vue | 598 ++++++++++++++++++++++++++++++++++++++++-------------------
1 files changed, 400 insertions(+), 198 deletions(-)
diff --git a/src/views/project/ethicalReview/index.vue b/src/views/project/ethicalReview/index.vue
index efdf86e..09c2291 100644
--- a/src/views/project/ethicalReview/index.vue
+++ b/src/views/project/ethicalReview/index.vue
@@ -1,24 +1,48 @@
<template>
<div class="app-container">
- <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="70px">
+ <el-form
+ :model="queryParams"
+ ref="queryForm"
+ :inline="true"
+ v-show="showSearch"
+ label-width="70px"
+ >
<el-row :gutter="8">
<el-col :span="6">
<el-form-item label="濮撳悕" prop="name">
- <el-input v-model="queryParams.name" placeholder="璇疯緭鍏ュ鍚�" clearable size="small"
- @keyup.enter.native="handleQuery" />
+ <el-input
+ v-model="queryParams.name"
+ placeholder="璇疯緭鍏ュ鍚�"
+ clearable
+ size="small"
+ @keyup.enter.native="handleQuery"
+ />
</el-form-item>
</el-col>
<el-col :span="6">
- <el-form-item align="left" label="鍖荤枟鏈烘瀯" prop="treatmenthospitalno">
- <org-selecter ref="orgSelecter" :org-type="'3'" v-model="queryParams.treatmenthospitalno" />
+ <el-form-item
+ align="left"
+ label="鍖荤枟鏈烘瀯"
+ prop="treatmenthospitalno"
+ >
+ <org-selecter
+ ref="orgSelecter"
+ :org-type="'3'"
+ v-model="queryParams.treatmenthospitalno"
+ />
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="鎹愮尞鍦板競">
<el-select v-model="queryParams.city" placeholder="璇烽�夋嫨鍦板競">
- <el-option v-for="item in provinceData" :key="item.value" :label="item.label" :value="item.value">
+ <el-option
+ v-for="item in provinceData"
+ :key="item.value"
+ :label="item.label"
+ :value="item.value"
+ >
</el-option>
</el-select>
</el-form-item>
@@ -26,9 +50,18 @@
<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"
- :value="dict.value" />
+ <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>
</el-col>
@@ -36,8 +69,16 @@
<el-row :gutter="8">
<el-col :span="6">
<el-form-item label="鎶ュ憡浜�">
- <el-select v-model="queryParams.reporterno" placeholder="璇烽�夋嫨鎶ュ憡浜�">
- <el-option v-for="item in reportlist" :key="item.index" :label="item.reportername" :value="item.reporterno">
+ <el-select
+ v-model="queryParams.reporterno"
+ placeholder="璇烽�夋嫨鎶ュ憡浜�"
+ >
+ <el-option
+ v-for="item in reportlist"
+ :key="item.index"
+ :label="item.reportername"
+ :value="item.reporterno"
+ >
</el-option>
</el-select>
</el-form-item>
@@ -45,76 +86,164 @@
<el-col :span="12">
<el-form-item label="鎶ュ憡鏃ユ湡">
- <el-date-picker style="width: 100%" v-model="selecttime" type="monthrange" range-separator="鑷�"
- start-placeholder="寮�濮嬫湀浠�" end-placeholder="缁撴潫鏈堜唤" value-format="yyyy-MM-dd" @change="getTimeList">
+ <el-date-picker
+ style="width: 100%"
+ v-model="selecttime"
+ type="monthrange"
+ range-separator="鑷�"
+ start-placeholder="寮�濮嬫湀浠�"
+ end-placeholder="缁撴潫鏈堜唤"
+ value-format="yyyy-MM-dd"
+ @change="getTimeList"
+ >
</el-date-picker>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item>
- <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">鎼滅储</el-button>
- <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">閲嶇疆</el-button>
+ <el-button
+ type="primary"
+ icon="el-icon-search"
+ size="mini"
+ @click="handleQuery"
+ >鎼滅储</el-button
+ >
+ <el-button icon="el-icon-refresh" size="mini" @click="resetQuery"
+ >閲嶇疆</el-button
+ >
</el-form-item>
</el-col>
</el-row>
</el-form>
- <el-table :default-sort="{ prop: 'createTime' }" v-loading="loading" :data="listnews" border>
- <el-table-column label="鎶ュ憡鏃堕棿" align="center" prop="reporttime" width="140">
+ <el-table
+ :default-sort="{ prop: 'createTime' }"
+ v-loading="loading"
+ :data="listnews"
+ border
+ >
+ <el-table-column
+ label="妗堜緥鏃堕棿"
+ align="center"
+ prop="donatetime"
+ width="120"
+ >
+ <template slot-scope="scope">
+ <span>{{ parseTime(scope.row.donatetime, "{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="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="treatmenthospitalname"
+ />
+ <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="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">
- <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="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="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">
+ <el-table-column
+ label="鎿嶄綔"
+ align="center"
+ width="150px"
+ class-name="small-padding fixed-width"
+ fixed="right"
+ >
<template slot-scope="scope">
- <el-button size="mini" type="text" icon="el-icon-coordinate"
- @click="showDonationEvaluationDialog(scope.row)">浼︾悊瀹℃煡
+ <el-button
+ size="mini"
+ type="text"
+ icon="el-icon-coordinate"
+ @click="showDonationEvaluationDialog(scope.row)"
+ >浼︾悊瀹℃煡
</el-button>
</template>
</el-table-column>
</el-table>
- <pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize"
- @pagination="getList" />
+ <pagination
+ v-show="total > 0"
+ :total="total"
+ :page.sync="queryParams.pageNum"
+ :limit.sync="queryParams.pageSize"
+ @pagination="getList"
+ />
<!-- 浼︾悊瀹℃煡寮圭獥 -->
- <el-dialog :title="title" :visible.sync="open" :close-on-click-modal="false" width="1000px" append-to-body>
+ <el-dialog
+ :title="title"
+ :visible.sync="open"
+ :close-on-click-modal="false"
+ width="1000px"
+ append-to-body
+ >
<el-form ref="form" :model="form" :rules="rules" label-width="160px">
<el-row>
<el-col :span="12">
<el-form-item align="left" label="鎹愮尞缂栧彿">
- <el-input v-model="curCase.donorno" placeholder="璇疯緭鍏ユ崘鐚紪鍙�" disabled />
+ <el-input
+ v-model="curCase.donorno"
+ placeholder="璇疯緭鍏ユ崘鐚紪鍙�"
+ disabled
+ />
</el-form-item>
</el-col>
<el-col :span="12">
- <el-form-item label="濮撳悕">
- <el-input v-model="curCase.name" placeholder="璇疯緭鍏ュ鍚�" disabled />
+ <el-form-item label="鎹愮尞鑰呭鍚�">
+ <el-input
+ v-model="curCase.name"
+ placeholder="璇疯緭鍏ュ鍚�"
+ disabled
+ />
</el-form-item>
</el-col>
</el-row>
@@ -123,15 +252,23 @@
</el-row>
<el-form-item label="瀹℃煡鎰忚">
- <el-input v-model="form.flowcontent" type="textarea" placeholder="璇疯緭鍏ュ唴瀹�" />
+ <el-input
+ v-model="form.flowcontent"
+ type="textarea"
+ placeholder="璇疯緭鍏ュ唴瀹�"
+ />
</el-form-item>
<el-row>
<el-col :span="18">
<el-form-item label="瀹℃煡缁撹">
<el-radio-group v-model="form.flowconclusion">
- <el-radio v-for="dict in dict.type.sys_EthicalReview" :key="dict.value" :label="parseInt(dict.value)">{{
- dict.label }}</el-radio>
+ <el-radio
+ v-for="dict in dict.type.sys_EthicalReview"
+ :key="dict.value"
+ :label="parseInt(dict.value)"
+ >{{ dict.label }}</el-radio
+ >
</el-radio-group>
</el-form-item>
</el-col>
@@ -139,8 +276,14 @@
<!-- createtime 瀹℃煡鏃ユ湡 -->
<el-col :span="6" :pull="5">
<el-form-item label="瀹℃煡鏃ユ湡">
- <el-date-picker clearable size="small" v-model="form.createTime" type="date"
- value-format="yyyy-MM-dd HH:mm:ss" placeholder="閫夋嫨缁撹鏃堕棿">
+ <el-date-picker
+ clearable
+ size="small"
+ v-model="form.createTime"
+ type="date"
+ value-format="yyyy-MM-dd HH:mm:ss"
+ placeholder="閫夋嫨缁撹鏃堕棿"
+ >
</el-date-picker>
</el-form-item>
</el-col>
@@ -211,29 +354,57 @@
</el-row>
</el-form-item> -->
<el-form-item label="鎹愮尞璧勬枡闄勪欢">
- <annex-upload ref="ethicalannex" :infoid="curCase.id" :donorno="curCase.donorno" :flowname="flowname"
- :annexno="annexno" />
+ <annex-upload
+ ref="ethicalannex"
+ :infoid="curCase.id"
+ :donorno="curCase.donorno"
+ :flowname="flowname"
+ :annexno="annexno"
+ />
</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>
<!-- 娣诲姞鎴栦慨鏀逛鸡鐞嗗鏌ヤ笓瀹舵剰瑙佸璇濇 -->
- <el-dialog :title="title" :visible.sync="isShowExpertAdviceDialog" width="800px" append-to-body>
- <el-form ref="expertAdviceForm" :model="expertAdviceForm" :rules="expertAdviceRules" label-width="80px">
+ <el-dialog
+ :title="title"
+ :visible.sync="isShowExpertAdviceDialog"
+ width="800px"
+ append-to-body
+ >
+ <el-form
+ ref="expertAdviceForm"
+ :model="expertAdviceForm"
+ :rules="expertAdviceRules"
+ label-width="80px"
+ >
<el-form-item label="涓撳鍚嶅瓧" prop="expertname">
- <el-input v-model="expertAdviceForm.expertname" placeholder="璇疯緭鍏ヤ笓瀹跺悕瀛�" />
+ <el-input
+ v-model="expertAdviceForm.expertname"
+ placeholder="璇疯緭鍏ヤ笓瀹跺悕瀛�"
+ />
</el-form-item>
<el-form-item label="涓撳鎰忚" prop="expertopinion">
- <el-input v-model="expertAdviceForm.expertopinion" type="textarea" placeholder="璇疯緭鍏ュ唴瀹�" />
+ <el-input
+ v-model="expertAdviceForm.expertopinion"
+ type="textarea"
+ placeholder="璇疯緭鍏ュ唴瀹�"
+ />
</el-form-item>
<el-form-item label="涓撳缁撹 ">
<el-radio-group v-model="expertAdviceForm.expertconclusion">
- <el-radio v-for="dict in dict.type.sys_0_1" :key="dict.value" :label="parseInt(dict.value)">{{ dict.label
- }}</el-radio>
+ <el-radio
+ v-for="dict in dict.type.sys_0_1"
+ :key="dict.value"
+ :label="parseInt(dict.value)"
+ >{{ dict.label }}</el-radio
+ >
</el-radio-group>
</el-form-item>
</el-form>
@@ -249,12 +420,12 @@
import {
listDonatebaseinfo,
getDonatebaseinfo,
- updateDonatebaseinfo,
+ updateDonatebaseinfo
} from "@/api/project/donatebaseinfo";
import {
addDonateflowchart,
listDonateflowchart,
- updateDonateflowchart,
+ updateDonateflowchart
} from "@/api/project/DonationEvaluation";
import {
listEthicalreviewopinions,
@@ -262,7 +433,7 @@
delEthicalreviewopinions,
addEthicalreviewopinions,
updateEthicalreviewopinions,
- listnewEthicalreviewopinions,
+ listnewEthicalreviewopinions
} from "@/api/project/ethicalreviewopinions";
import Li_area_select from "@/components/Address";
import OrgSelecter from "@/views/project/components/orgselect";
@@ -272,7 +443,7 @@
components: {
Li_area_select,
OrgSelecter,
- AnnexUpload,
+ AnnexUpload
},
name: "EthicalReview",
dicts: [
@@ -294,6 +465,7 @@
"sys_FamilyRelation",
"sys_OrganizationType",
"sys_EthicalReview",
+ "sys_donornode"
],
data() {
return {
@@ -315,7 +487,7 @@
{ label: "琛㈠窞甯�", value: "8" },
{ label: "鑸熷北甯�", value: "9" },
{ label: "鍙板窞甯�", value: "A" },
- { label: "涓芥按甯�", value: "B" },
+ { label: "涓芥按甯�", value: "B" }
],
//鐪佸競鍖�
@@ -323,7 +495,7 @@
defultAddress: {
sheng: "娴欐睙鐪�",
shi: "",
- qu: "",
+ qu: ""
},
// 閬僵灞�
loading: true,
@@ -367,14 +539,14 @@
organizationtype: null,
reportername: null,
reporttime: null,
- city: null,
+ city: null
},
//鏌ヨ鍙傛暟-涓撳鎰忚
expertAdviceQueryParam: {
pageNum: 1,
pageSize: 10,
infoid: null,
- donorno: null,
+ donorno: null
// expertopinion: null,
// expertconclusion: null,
// expertname: null,
@@ -388,7 +560,7 @@
sheng: "",
shi: "",
qu: "",
- organizationname: null,
+ organizationname: null
},
// 琛ㄥ崟鍙傛暟
form: {
@@ -404,7 +576,7 @@
flowannex: null,
flowcontent: null,
flowconclusion: 0,
- conclusiontime: null,
+ conclusiontime: null
},
// 琛ㄥ崟鏍¢獙
rules: {},
@@ -421,25 +593,21 @@
// 琛ㄥ崟鏍¢獙
expertAdviceRules: {
expertopinion: [
- { required: true, message: "涓撳鎰忚涓嶈兘涓虹┖", trigger: "blur" },
+ { required: true, message: "涓撳鎰忚涓嶈兘涓虹┖", trigger: "blur" }
],
expertconclusion: [
- { required: true, message: "涓撳缁撹涓嶈兘涓虹┖", trigger: "blur" },
+ { required: true, message: "涓撳缁撹涓嶈兘涓虹┖", trigger: "blur" }
],
expertname: [
- { required: true, message: "涓撳鍚嶅瓧涓嶈兘涓虹┖", trigger: "blur" },
+ { required: true, message: "涓撳鍚嶅瓧涓嶈兘涓虹┖", trigger: "blur" }
],
conclusiontime: [
- { required: true, message: "缁撹鏃堕棿涓嶈兘涓虹┖", trigger: "blur" },
- ],
- },
+ { required: true, message: "缁撹鏃堕棿涓嶈兘涓虹┖", trigger: "blur" }
+ ]
+ }
};
},
created() {
- this.getuserlist();
- this.getList();
- },
- activated() {
this.selecttime = "";
this.reportervalue = "";
this.reportlist = [];
@@ -448,11 +616,13 @@
this.queryParams.name = "";
this.queryParams.treatmenthospitalno = "";
- if (this.$route.params.starttime != null && this.$route.params.endtime) {
+ if (this.$route.params.starttime && this.$route.params.endtime) {
this.selecttime = [
this.$route.params.starttime,
- this.$route.params.endtime,
+ this.$route.params.endtime
];
+ this.endtime = this.selecttime[1];
+ this.starttime = this.selecttime[0];
}
if (this.$route.params.reporterno != "") {
this.reporterno = this.$route.params.reporterno;
@@ -475,22 +645,27 @@
if (this.$route.params.city != "") {
this.queryParams.city = this.$route.params.city;
}
-
+ this.getuserlist();
+ if (sessionStorage.getItem("ethicalReview")) {
+ this.queryParams = JSON.parse(sessionStorage.getItem("ethicalReview"));
+ console.log(this.queryParams, "queryParams");
+ }
this.getList();
},
+ activated() {},
mounted() {
this.LoadReportList();
},
methods: {
LoadReportList() {
- listDonatebaseinfo().then((res) => {
+ listDonatebaseinfo().then(res => {
console.log("娼滃湪鎹愮尞琛�", res);
let list = res.rows;
let reportlist = [];
- list.forEach((element) => {
+ list.forEach(element => {
reportlist.push({
reporterno: element.reporterno,
- reportername: element.reportername,
+ reportername: element.reportername
});
});
console.log("dwada", reportlist);
@@ -502,7 +677,7 @@
},
resetArr(Arr) {
var hash = {};
- Arr = Arr.reduce(function (arr, current) {
+ Arr = Arr.reduce(function(arr, current) {
hash[current.reporterno]
? ""
: (hash[current.reporterno] = true && arr.push(current));
@@ -567,7 +742,7 @@
},
//鐢ㄦ埛鍒楄〃
getuserlist() {
- listUser().then((res) => {
+ listUser().then(res => {
this.users = res.data;
});
},
@@ -575,11 +750,19 @@
getList() {
this.loading = true;
this.queryParams.params = {};
+ sessionStorage.removeItem("ethicalReview");
+ sessionStorage.setItem(
+ "ethicalReview",
+ JSON.stringify(this.queryParams)
+ );
+
if (null != this.daterangeReporttime && "" != this.daterangeReporttime) {
- this.queryParams.params["beginReporttime"] =
- this.daterangeReporttime[0];
+ this.queryParams.params[
+ "beginReporttime"
+ ] = this.daterangeReporttime[0];
this.queryParams.params["endReporttime"] = this.daterangeReporttime[1];
}
+
if (this.starttime != "") {
this.queryParams.starttime = this.starttime;
}
@@ -588,7 +771,7 @@
}
this.$nextTick(() => {
- listnewEthicalreviewopinions(this.queryParams).then((response) => {
+ listnewEthicalreviewopinions(this.queryParams).then(response => {
console.log("000000000000", response);
this.listnews = response.rows;
this.total = response.total;
@@ -616,7 +799,7 @@
flowname: null,
flowannex: null,
flowcontent: null,
- flowconclusion: 0,
+ flowconclusion: 0
};
this.resetForm("form");
},
@@ -636,7 +819,7 @@
expertname: null,
conclusiontime: null,
conclusionannex: null,
- conclusionorder: null,
+ conclusionorder: null
};
this.resetForm("expertAdviceForm");
},
@@ -668,7 +851,7 @@
reportername: null,
reporttime: null,
city: null,
- treatmenthospitalno: null,
+ treatmenthospitalno: null
};
this.selecttime = [];
this.getTimeList();
@@ -676,7 +859,7 @@
sheng: "",
shi: "",
qu: "",
- organizationname: null,
+ organizationname: null
};
//this.$refs.areaSelect.clean();
@@ -684,110 +867,127 @@
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;
this.curCase = dontateInfo;
let queryParam = {
donorno: dontateInfo.donorno,
- flowname: "浼︾悊瀹℃煡",
+ flowname: "浼︾悊瀹℃煡"
};
- listDonateflowchart(queryParam).then((response) => {
+ listDonateflowchart(queryParam).then(response => {
let evaluationList = response.rows;
if (evaluationList.length == 1) {
this.form = evaluationList[0];
@@ -800,6 +1000,7 @@
}
});
},
+
/** 鍒ゆ柇鏂板鎴栨槸缂栬緫 */
checkEditOrAdd(dontateInfo) {
if (dontateInfo.recordstate == 4) {
@@ -813,6 +1014,7 @@
handlePreview(file) {
console.log(file);
},
+
//鏄剧ず涓撳鎰忚寮圭獥
showExpertAdviceDialog() {
this.resetExperAdviceForm();
@@ -820,20 +1022,21 @@
this.expertAdviceForm.donorno = this.curCase.donorno;
this.isShowExpertAdviceDialog = true;
},
+
//淇濆瓨涓撳鎰忚
saveExpertAdvice() {
- this.$refs["expertAdviceForm"].validate((valid) => {
+ this.$refs["expertAdviceForm"].validate(valid => {
if (valid) {
if (this.expertAdviceForm.id != null) {
updateEthicalreviewopinions(this.expertAdviceForm).then(
- (response) => {
+ response => {
this.$modal.msgSuccess("淇敼鎴愬姛");
// this.getExpertList();
this.isShowExpertAdviceDialog = false;
}
);
} else {
- addEthicalreviewopinions(this.expertAdviceForm).then((response) => {
+ addEthicalreviewopinions(this.expertAdviceForm).then(response => {
this.$modal.msgSuccess("鏂板鎴愬姛");
// this.getExpertList();
this.isShowExpertAdviceDialog = false;
@@ -847,38 +1050,37 @@
//鑾峰彇涓撳鎰忚鍒楄〃
getExpertList() {
this.loading = true;
- listEthicalreviewopinions(this.expertAdviceQueryParam).then(
- (response) => {
- this.doctorAdviceTableData = response.rows;
- this.total = response.total;
- this.loading = false;
- }
- );
+ listEthicalreviewopinions(this.expertAdviceQueryParam).then(response => {
+ this.doctorAdviceTableData = response.rows;
+ this.total = response.total;
+ this.loading = false;
+ });
},
/** 鍒犻櫎鎸夐挳鎿嶄綔 */
handleDeleteExpert(row) {
const ids = row.id;
this.$modal
.confirm('鏄惁纭鍒犻櫎浼︾悊瀹℃煡涓撳鎰忚缂栧彿涓�"' + ids + '"鐨勬暟鎹」锛�')
- .then(function () {
+ .then(function() {
return delEthicalreviewopinions(ids);
})
.then(() => {
// this.getExpertList();
this.$modal.msgSuccess("鍒犻櫎鎴愬姛");
})
- .catch(() => { });
+ .catch(() => {});
},
+
/** 淇敼鎸夐挳鎿嶄綔 */
handleUpdateExpert(row) {
this.reset();
const id = row.id;
- getEthicalreviewopinions(id).then((response) => {
+ getEthicalreviewopinions(id).then(response => {
this.expertAdviceForm = response.data;
this.isShowExpertAdviceDialog = true;
//this.title = "淇敼浼︾悊瀹℃煡涓撳鎰忚";
});
- },
- },
+ }
+ }
};
-</script>
\ No newline at end of file
+</script>
--
Gitblit v1.9.3