From 1c08c6dcbe0f81bd8cff8a363e0d6f5c996474be Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期四, 14 三月 2024 09:49:33 +0800
Subject: [PATCH] 11

---
 src/views/project/ethicalReview/index.vue |  385 +++++++++++++++++++++++++++++++++++++++---------------
 1 files changed, 276 insertions(+), 109 deletions(-)

diff --git a/src/views/project/ethicalReview/index.vue b/src/views/project/ethicalReview/index.vue
index ae154db..5a420d8 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.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
+              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,40 +86,91 @@
 
         <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
+      :default-sort="{ prop: 'createTime' }"
+      v-loading="loading"
+      :data="listnews"
+      border
+    >
       <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)" />
+          <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">
+      <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" />
+          <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="瀹℃煡鏃堕棿"
+        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">
+      <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>
@@ -90,29 +182,58 @@
         </template>
       </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-input
+                v-model="curCase.name"
+                placeholder="璇疯緭鍏ュ鍚�"
+                disabled
+              />
             </el-form-item>
           </el-col>
         </el-row>
@@ -121,15 +242,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>
@@ -137,8 +266,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>
@@ -209,29 +344,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" :loading="loading" @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>
@@ -247,12 +410,12 @@
 import {
   listDonatebaseinfo,
   getDonatebaseinfo,
-  updateDonatebaseinfo,
+  updateDonatebaseinfo
 } from "@/api/project/donatebaseinfo";
 import {
   addDonateflowchart,
   listDonateflowchart,
-  updateDonateflowchart,
+  updateDonateflowchart
 } from "@/api/project/DonationEvaluation";
 import {
   listEthicalreviewopinions,
@@ -260,7 +423,7 @@
   delEthicalreviewopinions,
   addEthicalreviewopinions,
   updateEthicalreviewopinions,
-  listnewEthicalreviewopinions,
+  listnewEthicalreviewopinions
 } from "@/api/project/ethicalreviewopinions";
 import Li_area_select from "@/components/Address";
 import OrgSelecter from "@/views/project/components/orgselect";
@@ -270,7 +433,7 @@
   components: {
     Li_area_select,
     OrgSelecter,
-    AnnexUpload,
+    AnnexUpload
   },
   name: "EthicalReview",
   dicts: [
@@ -292,7 +455,7 @@
     "sys_FamilyRelation",
     "sys_OrganizationType",
     "sys_EthicalReview",
-    'sys_donornode'
+    "sys_donornode"
   ],
   data() {
     return {
@@ -314,7 +477,7 @@
         { label: "琛㈠窞甯�", value: "8" },
         { label: "鑸熷北甯�", value: "9" },
         { label: "鍙板窞甯�", value: "A" },
-        { label: "涓芥按甯�", value: "B" },
+        { label: "涓芥按甯�", value: "B" }
       ],
 
       //鐪佸競鍖�
@@ -322,7 +485,7 @@
       defultAddress: {
         sheng: "娴欐睙鐪�",
         shi: "",
-        qu: "",
+        qu: ""
       },
       // 閬僵灞�
       loading: true,
@@ -366,14 +529,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,
@@ -387,7 +550,7 @@
         sheng: "",
         shi: "",
         qu: "",
-        organizationname: null,
+        organizationname: null
       },
       // 琛ㄥ崟鍙傛暟
       form: {
@@ -403,7 +566,7 @@
         flowannex: null,
         flowcontent: null,
         flowconclusion: 0,
-        conclusiontime: null,
+        conclusiontime: null
       },
       // 琛ㄥ崟鏍¢獙
       rules: {},
@@ -420,25 +583,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 = [];
@@ -447,11 +606,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;
@@ -474,22 +635,23 @@
     if (this.$route.params.city != "") {
       this.queryParams.city = this.$route.params.city;
     }
-
+    this.getuserlist();
     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);
@@ -501,7 +663,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));
@@ -566,7 +728,7 @@
     },
     //鐢ㄦ埛鍒楄〃
     getuserlist() {
-      listUser().then((res) => {
+      listUser().then(res => {
         this.users = res.data;
       });
     },
@@ -574,11 +736,15 @@
     getList() {
       this.loading = true;
       this.queryParams.params = {};
+      console.log(this.starttime, "this.starttime");
+      console.log(this.endtime, "this.endtime");
       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;
       }
@@ -587,7 +753,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;
@@ -615,7 +781,7 @@
         flowname: null,
         flowannex: null,
         flowcontent: null,
-        flowconclusion: 0,
+        flowconclusion: 0
       };
       this.resetForm("form");
     },
@@ -635,7 +801,7 @@
         expertname: null,
         conclusiontime: null,
         conclusionannex: null,
-        conclusionorder: null,
+        conclusionorder: null
       };
       this.resetForm("expertAdviceForm");
     },
@@ -667,7 +833,7 @@
         reportername: null,
         reporttime: null,
         city: null,
-        treatmenthospitalno: null,
+        treatmenthospitalno: null
       };
       this.selecttime = [];
       this.getTimeList();
@@ -675,7 +841,7 @@
         sheng: "",
         shi: "",
         qu: "",
-        organizationname: null,
+        organizationname: null
       };
       //this.$refs.areaSelect.clean();
 
@@ -688,7 +854,7 @@
         path: "/organ/donationdetails/",
         query: {
           id: row.id,
-          organType: "edit",
+          organType: "edit"
         }
       });
       //鏌ユ壘鏄惁瀛樺湪浼︾悊瀹℃煡璁板綍
@@ -742,10 +908,13 @@
     submitForm() {
       this.loading = true;
       this.$nextTick(() => {
-        this.$refs["form"].validate((valid) => {
+        this.$refs["form"].validate(valid => {
           if (valid) {
             //鍒ゆ柇瀹℃煡鎰忚褰曞叆
-            if (this.form.flowconclusion == 2 || this.form.flowconclusion == 3) {
+            if (
+              this.form.flowconclusion == 2 ||
+              this.form.flowconclusion == 3
+            ) {
               var exp = this.form.flowcontent;
               if (typeof exp == "undefined" || exp == null || exp == "") {
                 this.$modal.msgError("璇疯緭鍏ュ鏌ユ剰瑙�!");
@@ -756,7 +925,7 @@
             //鍒ゆ柇鏄惁鏄柊绾綍
             if (this.form.id != null) {
               // updateEthicalreviewopinions娌℃湁鏉冮檺
-              updateDonateflowchart(this.form).then((response) => {
+              updateDonateflowchart(this.form).then(response => {
                 this.$modal.msgSuccess("淇敼鎴愬姛");
                 //鏇存柊鎹愮尞鐘舵��
                 if (this.form.flowconclusion == 1) {
@@ -764,20 +933,20 @@
                 } else {
                   this.curCase.recordstate = 9;
                 }
-                updateDonatebaseinfo(this.curCase).then((response) => {
+                updateDonatebaseinfo(this.curCase).then(response => {
                   this.open = false;
                   this.getList();
                 });
               });
             } else {
-              addDonateflowchart(this.form).then((response) => {
+              addDonateflowchart(this.form).then(response => {
                 //鏇存柊鎹愮尞鐘舵��
                 if (this.form.flowconclusion == 1) {
                   this.curCase.recordstate = 8;
                 } else {
                   this.curCase.recordstate = 9;
                 }
-                updateDonatebaseinfo(this.curCase).then((response) => {
+                updateDonatebaseinfo(this.curCase).then(response => {
                   this.$modal.msgSuccess("鏂板鎴愬姛");
                   this.open = false;
                   this.getList();
@@ -786,9 +955,9 @@
             }
           }
         });
-        
-      this.loading = false;
-      })
+
+        this.loading = false;
+      });
     },
 
     /** 鑾峰彇鎹愮尞璇勪及 */
@@ -797,10 +966,10 @@
       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];
@@ -838,18 +1007,18 @@
 
     //淇濆瓨涓撳鎰忚
     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;
@@ -863,39 +1032,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