From 28b11b6ca5fad4ec33d4a1a4bbab62d5364cdab4 Mon Sep 17 00:00:00 2001
From: qinxianzhangyao <11053546+qinxianzhangyao@user.noreply.gitee.com>
Date: 星期二, 23 七月 2024 17:47:11 +0800
Subject: [PATCH] qxtj

---
 src/views/doctor/check/index.vue | 1274 +++++++++++++++++++++++++++++++++++++--------------------
 1 files changed, 832 insertions(+), 442 deletions(-)

diff --git a/src/views/doctor/check/index.vue b/src/views/doctor/check/index.vue
index 696ba8a..50a6d96 100644
--- a/src/views/doctor/check/index.vue
+++ b/src/views/doctor/check/index.vue
@@ -28,7 +28,11 @@
         ></el-input>
       </el-form-item>
       <el-form-item>
-        <el-button size="mini" type="primary" @click="submitForm"
+        <el-button
+          size="mini"
+          type="primary"
+          @click="submitForm"
+          style="margin-right: 15px"
           >鎼滅储</el-button
         >
         <el-button size="mini" @click="resetQuery">閲嶇疆</el-button>
@@ -407,12 +411,12 @@
         <table
           style="
             width: 96%;
-            height:70px;
+            height: 70px;
             margin: 10px 10px;
-            margin-bottom:10px;
+            margin-bottom: 10px;
             border: 1px solid #dfe6ec;
             border-collapse: collapse;
-            font-size:16px
+            font-size: 16px;
           "
           cellspacing="4"
         >
@@ -444,7 +448,13 @@
               鎬у埆锛�
             </td>
             <td style="border: 1px solid #dfe6ec; border-collapse: collapse">
-              {{ tableAll.cusSex }}
+              {{
+                tableAll.cusSex == 0
+                  ? "鐢�"
+                  : tableAll.cusSex == 1
+                  ? "濂�"
+                  : "鏈煡"
+              }}
             </td>
           </tr>
           <tr style="border: 1px solid #dfe6ec; border-collapse: collapse">
@@ -490,6 +500,275 @@
       <el-row>
         <el-col v-show="baogaoqian">
           <template>
+            <el-tabs
+              v-model="radio"
+              type="border-card"
+              @tab-click="handleTabClick"
+              style="margin-left: 10px"
+            >
+              <el-tab-pane
+                :label="item.proName"
+                :name="item.proId"
+                v-for="(item, index) in Parent"
+                :key="index"
+              >
+                <el-table
+                  v-loading="loading"
+                  :data="proParentList.sons"
+                  border
+                  height="460px"
+                  style="width: 96%; margin: 10px 10px"
+                >
+                  <el-table-column
+                    prop="project.proName"
+                    label="妫�娴嬮」鐩�"
+                    width="150"
+                    fixed="left"
+                  >
+                    <!-- <template slot-scope="scope">
+            {{ scope.row.project.proName }}
+          </template> -->
+                  </el-table-column>
+                  <el-table-column
+                    prop="proResult"
+                    label="妫�娴嬬粨鏋�"
+                    width="200"
+                  >
+                    <template slot-scope="scope">
+                      <el-input
+                        type="textarea"
+                        autosize
+                        size="mini"
+                        v-model="scope.row.proResult"
+                        autocomplete="off"
+                        placeholder="璇疯緭鍏ユ娴嬬粨鏋�"
+                        @blur="handleInputConfirm(scope.row)"
+                        @input="vale"
+                        @focus="handleInConfirm(scope.row)"
+                      ></el-input>
+                    </template>
+                  </el-table-column>
+                  <el-table-column label="瑙勫垯" width="55">
+                    <template slot-scope="scope">
+                      <el-button
+                        class="blue-button"
+                        @click="handleguize(scope.row)"
+                        >...</el-button
+                      >
+                    </template>
+                  </el-table-column>
+                  <el-table-column prop="project.proMetering" label="鍗曚綅">
+                    <!-- <template slot-scope="scope">
+            {{ scope.row.standard.company }}
+          </template> -->
+                  </el-table-column>
+                  <el-table-column prop="project.proScope" label="鍙傝�冭寖鍥�">
+                  </el-table-column>
+                  <el-table-column
+                    prop="conclusion"
+                    label="缁撴灉缁撹"
+                    width="200"
+                  >
+                    <template slot-scope="scope">
+                      <el-input
+                        size="mini"
+                        type="textarea"
+                        autosize
+                        v-model="scope.row.conclusion"
+                        autocomplete="off"
+                        placeholder="璇疯緭鍏ユ娴嬬粨鏋�"
+                        disabled
+                      ></el-input>
+                    </template>
+                  </el-table-column>
+                  <el-table-column
+                    prop="exceptionDesc"
+                    label="鏄惁寮傚父"
+                    width="80px"
+                    align="center"
+                  >
+                    <template slot-scope="scope">
+                      <el-checkbox
+                        v-model="scope.row.exceptionDesc"
+                      ></el-checkbox>
+                    </template>
+                  </el-table-column>
+                  <el-table-column
+                    prop="isReturn"
+                    label="鏄惁澶嶈瘖"
+                    width="80px"
+                    align="center"
+                  >
+                    <template slot-scope="scope">
+                      <el-checkbox v-model="scope.row.isReturn"></el-checkbox>
+                    </template>
+                  </el-table-column>
+                  <el-table-column prop="resultType" label="缁撴灉绫诲瀷">
+                    <template slot-scope="scope">
+                      <dict-tag
+                        :options="dict.type.tj_result_type"
+                        :value="scope.row.resultType"
+                      />
+                    </template>
+                  </el-table-column>
+                  <el-table-column prop="isPositive" label="閲嶅ぇ闃虫��">
+                    <template slot-scope="scope">
+                      <el-switch
+                        v-model="scope.row.isPositive"
+                        active-value="1"
+                        inactive-value="0"
+                        @change="checkboxchange(scope.row)"
+                      ></el-switch>
+                    </template>
+                  </el-table-column>
+                </el-table>
+
+                <div style="font-size: 14px; overflow-y: auto; height: 286px">
+                  <table
+                    style="
+                      width: 96%;
+                      margin: 4px 10px;
+                      border: 1px solid #dfe6ec;
+                      border-collapse: collapse;
+                    "
+                    cellspacing="4"
+                  >
+                    <tr
+                      style="
+                        border: 1px solid #dfe6ec;
+                        border-collapse: collapse;
+                      "
+                    >
+                      <td
+                        style="
+                          border: 1px solid #dfe6ec;
+                          border-collapse: collapse;
+                        "
+                      >
+                        鐥呯閫夋嫨锛�
+                      </td>
+                      <td
+                        style="
+                          border: 1px solid #dfe6ec;
+                          border-collapse: collapse;
+                        "
+                      >
+                        <el-select
+                          v-model="value"
+                          multiple
+                          placeholder="璇烽�夋嫨"
+                          style="width: 100%; height: 45px"
+                          v-if="deptAdviceList"
+                          @change="sel"
+                          filterable
+                        >
+                          <el-option
+                            v-for="item in deptAdviceList"
+                            :key="item.id"
+                            :label="item.title"
+                            :value="item.id"
+                          >
+                          </el-option>
+                        </el-select>
+                      </td>
+                      <td
+                        style="
+                          border: 1px solid #dfe6ec;
+                          border-collapse: collapse;
+                        "
+                      >
+                        涓绘鍖诲笀锛�
+                      </td>
+                      <td
+                        style="
+                          border: 1px solid #dfe6ec;
+                          border-collapse: collapse;
+                        "
+                      >
+                        <el-select
+                          v-model="doctorName"
+                          placeholder="璇烽�夋嫨"
+                          style="width: 100%"
+                          v-if="deptAdviceList"
+                          @change="selName"
+                          filterable
+                        >
+                          <el-option
+                            v-for="item in userList"
+                            :key="item.userId"
+                            :label="item.nickName"
+                            :value="item.userId"
+                          >
+                          </el-option>
+                        </el-select>
+                      </td>
+                    </tr>
+                    <tr
+                      style="
+                        border: 1px solid #dfe6ec;
+                        border-collapse: collapse;
+                      "
+                    >
+                      <td
+                        style="
+                          border: 1px solid #dfe6ec;
+                          border-collapse: collapse;
+                        "
+                      >
+                        寤鸿锛�
+                      </td>
+                      <td
+                        style="
+                          border: 1px solid #dfe6ec;
+                          border-collapse: collapse;
+                        "
+                        colspan="2"
+                      >
+                        <div style="margin: 0 0px 10px 15px">
+                          <el-button
+                            type="primary"
+                            @click="propoChange"
+                            style="margin-top: 10px; height: 37px"
+                            >蹇嵎寤鸿</el-button
+                          >
+                          <el-button
+                            type="primary"
+                            @click="proposalChange"
+                            style="margin-top: 10px; height: 37px"
+                            >鐢熸垚寤鸿</el-button
+                          >
+                        </div>
+                        <el-input
+                          type="textarea"
+                          placeholder="璇疯緭鍏ュ唴瀹�"
+                          v-model="proParentList.remark"
+                          rows="7"
+                        >
+                        </el-input>
+                      </td>
+                    </tr>
+                  </table>
+
+                  <div slot="footer" class="dialog-footers">
+                    <!--  v-show="tjStatus == '0'" -->
+                    <!-- <el-button type="primary"
+          size="mini"
+          @click="radioChange"
+          v-hasPermi="['system:notice:add']"
+          v-show="tjStatus == '1'"
+        >浼氳瘖鐢宠</el-button> -->
+                    <el-button
+                      type="primary"
+                      @click="determine"
+                     
+                      >鎻� 浜�</el-button
+                    >
+                  </div>
+                </div>
+              </el-tab-pane>
+            </el-tabs>
+          </template>
+          <!-- <template>
             <div style="margin-left: 10px">
               <el-radio-group
                 v-model="radio"
@@ -502,419 +781,287 @@
                 }}</el-radio-button>
               </el-radio-group>
             </div>
-          </template>
-          <el-table
-            v-loading="loading"
-            :data="proParentList.sons"
-            border
-            height="460px"
-            style="width: 96%; margin: 10px 10px"
-          >
-            <el-table-column
-              prop="project.proName"
-              label="妫�娴嬮」鐩�"
-              width="150"
-              fixed="left"
-            >
-              <!-- <template slot-scope="scope">
-            {{ scope.row.project.proName }}
           </template> -->
-            </el-table-column>
-            <el-table-column prop="proResult" label="妫�娴嬬粨鏋�" width="200">
-              <template slot-scope="scope">
-                <el-input
-                  type="textarea"
-                  autosize
-                  size="mini"
-                  v-model="scope.row.proResult"
-                  autocomplete="off"
-                  placeholder="璇疯緭鍏ユ娴嬬粨鏋�"
-                  @blur="handleInputConfirm(scope.row)"
-                  @input="vale"
-                  @focus="handleInConfirm(scope.row)"
-                ></el-input>
-              </template>
-            </el-table-column>
-            <el-table-column label="瑙勫垯" width="55">
-              <template slot-scope="scope">
-                <el-button class="blue-button" @click="handleguize(scope.row)"
-                  >...</el-button
-                >
-              </template>
-            </el-table-column>
-            <el-table-column prop="project.proMetering" label="鍗曚綅">
-              <!-- <template slot-scope="scope">
-            {{ scope.row.standard.company }}
-          </template> -->
-            </el-table-column>
-            <el-table-column prop="project.proScope" label="鍙傝�冭寖鍥�">
-            </el-table-column>
-            <el-table-column prop="conclusion" label="缁撴灉缁撹" width="200">
-              <template slot-scope="scope">
-                <el-input
-                  size="mini"
-                  type="textarea"
-                  autosize
-                  v-model="scope.row.conclusion"
-                  autocomplete="off"
-                  placeholder="璇疯緭鍏ユ娴嬬粨鏋�"
-                  disabled
-                ></el-input>
-              </template>
-            </el-table-column>
-            <el-table-column
-              prop="exceptionDesc"
-              label="鏄惁寮傚父"
-              width="80px"
-              align="center"
-            >
-              <template slot-scope="scope">
-                <el-checkbox v-model="scope.row.exceptionDesc"></el-checkbox>
-              </template>
-            </el-table-column>
-            <el-table-column
-              prop="isReturn"
-              label="鏄惁澶嶈瘖"
-              width="80px"
-              align="center"
-            >
-              <template slot-scope="scope">
-                <el-checkbox v-model="scope.row.isReturn"></el-checkbox>
-              </template>
-            </el-table-column>
-            <el-table-column prop="project.resultType" label="缁撴灉绫诲瀷">
-              <template slot-scope="scope">
-                <dict-tag
-                  :options="dict.type.tj_result_type"
-                  :value="scope.row.project.resultType"
-                />
-              </template>
-            </el-table-column>
-            <el-table-column prop="isPositive" label="閲嶅ぇ闃虫��">
-              <template slot-scope="scope">
-                <el-switch
-                  v-model="scope.row.isPositive"
-                  active-value="1"
-                  inactive-value="0"
-                  @change="checkboxchange(scope.row)"
-                ></el-switch>
-              </template>
-            </el-table-column>
-          </el-table>
-
-          <div style="font-size: 14px; overflow-y: auto; height: 286px">
-            <table
-              style="
-                width: 96%;
-                margin: 4px 10px;
-                border: 1px solid #dfe6ec;
-                border-collapse: collapse;
-              "
-              cellspacing="4"
-            >
-              <tr style="border: 1px solid #dfe6ec; border-collapse: collapse">
-                <td
-                  style="border: 1px solid #dfe6ec; border-collapse: collapse"
-                >
-                  鐥呯閫夋嫨锛�
-                </td>
-                <td
-                  style="border: 1px solid #dfe6ec; border-collapse: collapse"
-                >
-                  <el-select
-                    v-model="value"
-                    multiple
-                    placeholder="璇烽�夋嫨"
-                    style="width: 100%; height: 45px"
-                    v-if="deptAdviceList"
-                    @change="sel"
-                    filterable
-                  >
-                    <el-option
-                      v-for="item in deptAdviceList"
-                      :key="item.id"
-                      :label="item.title"
-                      :value="item.id"
-                    >
-                    </el-option>
-                  </el-select>
-                </td>
-                <td
-                  style="border: 1px solid #dfe6ec; border-collapse: collapse"
-                >
-                  涓绘鍖诲笀锛�
-                </td>
-                <td
-                  style="border: 1px solid #dfe6ec; border-collapse: collapse"
-                >
-                  <el-select
-                    v-model="doctorName"
-                    placeholder="璇烽�夋嫨"
-                    style="width: 100%"
-                    v-if="deptAdviceList"
-                    @change="selName"
-                    filterable
-                  >
-                    <el-option
-                      v-for="item in userList"
-                      :key="item.userId"
-                      :label="item.nickName"
-                      :value="item.userId"
-                    >
-                    </el-option>
-                  </el-select>
-                </td>
-              </tr>
-              <tr style="border: 1px solid #dfe6ec; border-collapse: collapse">
-                <td
-                  style="border: 1px solid #dfe6ec; border-collapse: collapse"
-                >
-                  寤鸿锛�
-                </td>
-                <td
-                  style="border: 1px solid #dfe6ec; border-collapse: collapse"
-                  colspan="2"
-                >
-                  <el-input
-                    type="textarea"
-                    placeholder="璇疯緭鍏ュ唴瀹�"
-                    v-model="proParentList.remark"
-                    rows="7"
-                  >
-                  </el-input>
-                </td>
-              </tr>
-            </table>
-
-            <div slot="footer" class="dialog-footers">
-              <!-- <el-button type="primary"
-          size="mini"
-          @click="radioChange"
-          v-hasPermi="['system:notice:add']"
-          v-show="tjStatus == '1'"
-        >浼氳瘖鐢宠</el-button> -->
-              <el-button
-                type="primary"
-                @click="determine"
-                v-show="tjStatus == '0'"
-                >鎻� 浜�</el-button
-              >
-            </div>
-          </div>
         </el-col>
         <el-col :span="18" v-show="baogaohou">
           <template>
-            <div style="margin-left: 10px">
-              <el-radio-group
-                v-model="radio"
+            <el-tabs
+              v-model="radio"
+              type="border-card"
+              @tab-click="handleTabClick"
+              style="margin-left: 10px"
+            >
+              <el-tab-pane
+                :label="item.proName"
+                :name="item.proId"
                 v-for="(item, index) in Parent"
                 :key="index"
-                @input="radioChange1(item.proId, item)"
               >
-                <el-radio-button :label="item.proId">{{
-                  item.proName
-                }}</el-radio-button>
-              </el-radio-group>
-            </div>
-          </template>
-          <el-table
-            v-loading="loading"
-            :data="proParentList.sons"
-            border
-            height="460px"
-            style="width: 96%; margin: 10px 10px"
-          >
-            <el-table-column
-              prop="project.proName"
-              label="妫�娴嬮」鐩�"
-              width="150"
-              fixed="left"
-            >
-              <!-- <template slot-scope="scope">
+                <el-table
+                  v-loading="loading"
+                  :data="proParentList.sons"
+                  border
+                  height="460px"
+                  style="width: 96%; margin: 10px 10px"
+                >
+                  <el-table-column
+                    prop="project.proName"
+                    label="妫�娴嬮」鐩�"
+                    width="150"
+                    fixed="left"
+                  >
+                    <!-- <template slot-scope="scope">
             {{ scope.row.project.proName }}
           </template> -->
-            </el-table-column>
-            <el-table-column prop="proResult" label="妫�娴嬬粨鏋�" width="200">
-              <template slot-scope="scope">
-                <el-input
-                  type="textarea"
-                  autosize
-                  size="mini"
-                  v-model="scope.row.proResult"
-                  autocomplete="off"
-                  placeholder="璇疯緭鍏ユ娴嬬粨鏋�"
-                  @blur="handleInputConfirm(scope.row)"
-                  @input="vale"
-                  @focus="handleInConfirm(scope.row)"
-                ></el-input>
-              </template>
-            </el-table-column>
-            <el-table-column label="瑙勫垯" width="55">
-              <template slot-scope="scope">
-                <el-button class="blue-button" @click="handleguize(scope.row)"
-                  >...</el-button
-                >
-              </template>
-            </el-table-column>
-            <el-table-column prop="project.proMetering" label="鍗曚綅">
-              <!-- <template slot-scope="scope">
+                  </el-table-column>
+                  <el-table-column
+                    prop="proResult"
+                    label="妫�娴嬬粨鏋�"
+                    width="200"
+                  >
+                    <template slot-scope="scope">
+                      <el-input
+                        type="textarea"
+                        autosize
+                        size="mini"
+                        v-model="scope.row.proResult"
+                        autocomplete="off"
+                        placeholder="璇疯緭鍏ユ娴嬬粨鏋�"
+                        @blur="handleInputConfirm(scope.row)"
+                        @input="vale"
+                        @focus="handleInConfirm(scope.row)"
+                      ></el-input>
+                    </template>
+                  </el-table-column>
+                  <el-table-column label="瑙勫垯" width="55">
+                    <template slot-scope="scope">
+                      <el-button
+                        class="blue-button"
+                        @click="handleguize(scope.row)"
+                        >...</el-button
+                      >
+                    </template>
+                  </el-table-column>
+                  <el-table-column prop="project.proMetering" label="鍗曚綅">
+                    <!-- <template slot-scope="scope">
             {{ scope.row.standard.company }}
           </template> -->
-            </el-table-column>
-            <el-table-column prop="project.proScope" label="鍙傝�冭寖鍥�">
-            </el-table-column>
-            <el-table-column prop="conclusion" label="缁撴灉缁撹" width="200">
-              <template slot-scope="scope">
-                <el-input
-                  size="mini"
-                  type="textarea"
-                  autosize
-                  v-model="scope.row.conclusion"
-                  autocomplete="off"
-                  placeholder="璇疯緭鍏ユ娴嬬粨鏋�"
-                  disabled
-                ></el-input>
-              </template>
-            </el-table-column>
-            <el-table-column
-              prop="exceptionDesc"
-              label="鏄惁寮傚父"
-              width="80px"
-              align="center"
-            >
-              <template slot-scope="scope">
-                <el-checkbox v-model="scope.row.exceptionDesc"></el-checkbox>
-              </template>
-            </el-table-column>
-            <el-table-column
-              prop="isReturn"
-              label="鏄惁澶嶈瘖"
-              width="80px"
-              align="center"
-            >
-              <template slot-scope="scope">
-                <el-checkbox v-model="scope.row.isReturn"></el-checkbox>
-              </template>
-            </el-table-column>
-            <el-table-column prop="project.resultType" label="缁撴灉绫诲瀷">
-              <template slot-scope="scope">
-                <dict-tag
-                  :options="dict.type.tj_result_type"
-                  :value="scope.row.project.resultType"
-                />
-              </template>
-            </el-table-column>
-            <el-table-column prop="isPositive" label="閲嶅ぇ闃虫��">
-              <template slot-scope="scope">
-                <el-switch
-                  v-model="scope.row.isPositive"
-                  active-value="1"
-                  inactive-value="0"
-                  @change="checkboxchange(scope.row)"
-                ></el-switch>
-              </template>
-            </el-table-column>
-          </el-table>
+                  </el-table-column>
+                  <el-table-column prop="project.proScope" label="鍙傝�冭寖鍥�">
+                  </el-table-column>
+                  <el-table-column
+                    prop="conclusion"
+                    label="缁撴灉缁撹"
+                    width="200"
+                  >
+                    <template slot-scope="scope">
+                      <el-input
+                        size="mini"
+                        type="textarea"
+                        autosize
+                        v-model="scope.row.conclusion"
+                        autocomplete="off"
+                        placeholder="璇疯緭鍏ユ娴嬬粨鏋�"
+                        disabled
+                      ></el-input>
+                    </template>
+                  </el-table-column>
+                  <el-table-column
+                    prop="exceptionDesc"
+                    label="鏄惁寮傚父"
+                    width="80px"
+                    align="center"
+                  >
+                    <template slot-scope="scope">
+                      <el-checkbox
+                        v-model="scope.row.exceptionDesc"
+                      ></el-checkbox>
+                    </template>
+                  </el-table-column>
+                  <el-table-column
+                    prop="isReturn"
+                    label="鏄惁澶嶈瘖"
+                    width="80px"
+                    align="center"
+                  >
+                    <template slot-scope="scope">
+                      <el-checkbox v-model="scope.row.isReturn"></el-checkbox>
+                    </template>
+                  </el-table-column>
+                  <el-table-column prop="resultType" label="缁撴灉绫诲瀷">
+                    <template slot-scope="scope">
+                      <dict-tag
+                        :options="dict.type.tj_result_type"
+                        :value="scope.row.resultType"
+                      />
+                    </template>
+                  </el-table-column>
+                  <el-table-column prop="isPositive" label="閲嶅ぇ闃虫��">
+                    <template slot-scope="scope">
+                      <el-switch
+                        v-model="scope.row.isPositive"
+                        active-value="1"
+                        inactive-value="0"
+                        @change="checkboxchange(scope.row)"
+                      ></el-switch>
+                    </template>
+                  </el-table-column>
+                </el-table>
 
-          <div style="font-size: 14px; overflow-y: auto; height: 286px">
-            <table
-              style="
-                width: 96%;
-                margin: 4px 10px;
-                border: 1px solid #dfe6ec;
-                border-collapse: collapse;
-              "
-              cellspacing="4"
-            >
-              <tr style="border: 1px solid #dfe6ec; border-collapse: collapse">
-                <td
-                  style="border: 1px solid #dfe6ec; border-collapse: collapse"
-                >
-                  鐥呯閫夋嫨锛�
-                </td>
-                <td
-                  style="border: 1px solid #dfe6ec; border-collapse: collapse"
-                >
-                  <el-select
-                    v-model="value"
-                    multiple
-                    placeholder="璇烽�夋嫨"
-                    style="width: 100%; height: 45px"
-                    v-if="deptAdviceList"
-                    @change="sel"
-                    filterable
+                <div style="font-size: 14px; overflow-y: auto; height: 286px">
+                  <table
+                    style="
+                      width: 96%;
+                      margin: 4px 10px;
+                      border: 1px solid #dfe6ec;
+                      border-collapse: collapse;
+                    "
+                    cellspacing="4"
                   >
-                    <el-option
-                      v-for="item in deptAdviceList"
-                      :key="item.id"
-                      :label="item.title"
-                      :value="item.id"
+                    <tr
+                      style="
+                        border: 1px solid #dfe6ec;
+                        border-collapse: collapse;
+                      "
                     >
-                    </el-option>
-                  </el-select>
-                </td>
-                <td
-                  style="border: 1px solid #dfe6ec; border-collapse: collapse"
-                >
-                  涓绘鍖诲笀锛�
-                </td>
-                <td
-                  style="border: 1px solid #dfe6ec; border-collapse: collapse"
-                >
-                  <el-select
-                    v-model="doctorName"
-                    placeholder="璇烽�夋嫨"
-                    style="width: 100%"
-                    v-if="deptAdviceList"
-                    @change="selName"
-                    filterable
-                  >
-                    <el-option
-                      v-for="item in userList"
-                      :key="item.userId"
-                      :label="item.nickName"
-                      :value="item.userId"
+                      <td
+                        style="
+                          border: 1px solid #dfe6ec;
+                          border-collapse: collapse;
+                        "
+                      >
+                        鐥呯閫夋嫨锛�
+                      </td>
+                      <td
+                        style="
+                          border: 1px solid #dfe6ec;
+                          border-collapse: collapse;
+                        "
+                      >
+                        <el-select
+                          v-model="value"
+                          multiple
+                          placeholder="璇烽�夋嫨"
+                          style="width: 100%; height: 45px"
+                          v-if="deptAdviceList"
+                          @change="sel"
+                          filterable
+                        >
+                          <el-option
+                            v-for="item in deptAdviceList"
+                            :key="item.id"
+                            :label="item.title"
+                            :value="item.id"
+                          >
+                          </el-option>
+                        </el-select>
+                      </td>
+                      <td
+                        style="
+                          border: 1px solid #dfe6ec;
+                          border-collapse: collapse;
+                        "
+                      >
+                        涓绘鍖诲笀锛�
+                      </td>
+                      <td
+                        style="
+                          border: 1px solid #dfe6ec;
+                          border-collapse: collapse;
+                        "
+                      >
+                        <el-select
+                          v-model="doctorName"
+                          placeholder="璇烽�夋嫨"
+                          style="width: 100%"
+                          v-if="deptAdviceList"
+                          @change="selName"
+                          filterable
+                        >
+                          <el-option
+                            v-for="item in userList"
+                            :key="item.userId"
+                            :label="item.nickName"
+                            :value="item.userId"
+                          >
+                          </el-option>
+                        </el-select>
+                      </td>
+                    </tr>
+                    <tr
+                      style="
+                        border: 1px solid #dfe6ec;
+                        border-collapse: collapse;
+                      "
                     >
-                    </el-option>
-                  </el-select>
-                </td>
-              </tr>
-              <tr style="border: 1px solid #dfe6ec; border-collapse: collapse">
-                <td
-                  style="border: 1px solid #dfe6ec; border-collapse: collapse"
-                >
-                  寤鸿锛�
-                </td>
-                <td
-                  style="border: 1px solid #dfe6ec; border-collapse: collapse"
-                  colspan="2"
-                >
-                  <el-input
-                    type="textarea"
-                    placeholder="璇疯緭鍏ュ唴瀹�"
-                    v-model="proParentList.remark"
-                    rows="7"
-                  >
-                  </el-input>
-                </td>
-              </tr>
-            </table>
+                      <div style="margin: 0 0px 10px 15px">
+                        <el-button
+                          type="primary"
+                          @click="propoChange"
+                          style="margin-top: 10px; height: 37px"
+                          >蹇嵎寤鸿</el-button
+                        >
+                        <el-button
+                          type="primary"
+                          @click="proposalChange"
+                          style="margin-top: 10px; height: 37px"
+                          >鐢熸垚寤鸿</el-button
+                        >
+                      </div>
+                      <td
+                        style="
+                          border: 1px solid #dfe6ec;
+                          border-collapse: collapse;
+                        "
+                      >
+                        寤鸿锛�
+                      </td>
+                      <td
+                        style="
+                          border: 1px solid #dfe6ec;
+                          border-collapse: collapse;
+                        "
+                        colspan="2"
+                      >
+                        <el-input
+                          type="textarea"
+                          placeholder="璇疯緭鍏ュ唴瀹�"
+                          v-model="proParentList.remark"
+                          rows="7"
+                        >
+                        </el-input>
+                      </td>
+                    </tr>
+                  </table>
 
-            <div slot="footer" class="dialog-footers">
-              <!-- <el-button type="primary"
+                  <div slot="footer" class="dialog-footers">
+                    <!-- <el-button type="primary"
           size="mini"
           @click="radioChange"
           v-hasPermi="['system:notice:add']"
           v-show="tjStatus == '1'"
         >浼氳瘖鐢宠</el-button> -->
-              <el-button
-                type="primary"
-                @click="determine"
-                v-show="tjStatus == '0'"
-                >鎻� 浜�</el-button
-              >
+        <!--  v-show="tjStatus == '0'" -->
+                    <el-button
+                      type="primary"
+                      @click="determine"
+                      >鎻� 浜�</el-button
+                    >
+                  </div>
+                </div>
+              </el-tab-pane>
+            </el-tabs>
+          </template>
+          <!-- <template>
+            <div style="margin-left: 10px">
+              <el-radio-group v-model="radio" v-for="(item, index) in Parent" :key="index"
+                @input="radioChange1(item.proId, item)">
+                <el-radio-button :label="item.proId">{{
+      item.proName
+    }}</el-radio-button>
+              </el-radio-group>
             </div>
-          </div>
+          </template> -->
         </el-col>
         <el-col :span="6" style="margin-top: 15px">
           <Historicalreport
@@ -981,11 +1128,15 @@
         <el-button @click="jianqians = false">鍙� 娑�</el-button>
       </span>
     </el-dialog>
+    <proposal ref="proposal" :cusobj="cusobj" @event1="eventchange($event)" />
+    <createproposal ref="createproposal" :creatobj="creatobj" />
   </div>
 </template>
 
 
 <script>
+import proposal from "@/components/proposal";
+import createproposal from "@/components/createproposal";
 import { getInfoById } from "@/api/hosp/history";
 import jianqianwenzhen from "@/components/jianqianwenzhen";
 import Public from "@/components/public";
@@ -1005,14 +1156,24 @@
 import { addBigPositive } from "@/api/doctor/bigPositive";
 import { addReplylog, hzHasDept } from "@/api/hosp/replylog";
 import { listHzlog, addHzlog, delHzlog, updateHzlog } from "@/api/hosp/hzlog";
-import { listUser } from "@/api/system/user";
+import { getlistUser } from "@/api/system/user";
 import { getChildList } from "@/api/system/dept";
 export default {
   dicts: ["sys_user_sex", "sys_yes_no", "tj_result_type", "lj_positive"],
   name: "check",
-  components: { Public, Historicalreport, jianqianwenzhen },
+  components: {
+    Public,
+    Historicalreport,
+    jianqianwenzhen,
+    createproposal,
+    proposal,
+  },
   data() {
     return {
+      creatobj: {},
+      dataText: [],
+      propform: {},
+      cusobj: {},
       baogaoqian: true,
       baogaohou: false,
       flags: false,
@@ -1109,7 +1270,6 @@
       queryParam: {
         page: 1,
         pageSize: 1000,
-       
       },
       rules: {
         hzType: [
@@ -1146,17 +1306,16 @@
   methods: {
     /** 鏌ヨ鐢ㄦ埛鍒楄〃 */
     getListUser() {
-      listUser(this.addDateRange(this.queryParam, this.dateRange)).then(
-        (response) => {
-          this.userList = response.rows;
-          this.userList.forEach((element) => {
-            const userName = this.$store.state.user.name;
-            if (userName == element.userName) {
-              this.doctorName = element.nickName;
-            }
-          });
-        }
-      );
+     
+      getlistUser().then((response) => {
+        this.userList = response.data;
+        this.userList.forEach((element) => {
+          const userName = this.$store.state.user.name;
+          if (userName == element.userName) {
+            this.doctorName = element.nickName;
+          }
+        });
+      });
       getInfo().then((response) => {
         this.info = response.user;
         this.deptId = response.user.deptId;
@@ -1188,7 +1347,7 @@
     // 灏忕粨鑾峰彇澶囨敞
     sel(val) {
       if (this.proParentList.xiaoJie.length != 0) {
-        this.proParentList.remark = "";
+        // this.proParentList.remark = "";
         this.deptAdviceList.forEach((item) => {
           this.ids = item.id;
           val.forEach((item1) => {
@@ -1326,6 +1485,30 @@
         this.submitForm();
       }
     },
+    propoChange() {
+      this.cusobj = { sex: this.tableAll.cusSex, isZj: 1 };
+      this.$refs.proposal.open = true;
+      this.$refs.proposal.title = "寤鸿鏂规";
+      // this.$refs.proposal.getList();
+    },
+    eventchange(data) {
+      this.dataText = data;
+      data.forEach((item) => {
+        this.proParentList.remark += item.advice;
+      });
+    },
+    proposalChange() {
+      if (this.proParentList.remark) {
+        this.creatobj = { proParentList: this.proParentList.remark, isZj: 1 };
+        this.$refs.createproposal.open = true;
+        this.$refs.createproposal.title = "甯哥敤寤鸿缁存姢";
+      } else {
+        this.$message({
+          type: "warning ",
+          message: "璇峰厛濉啓鎬绘寤鸿",
+        });
+      }
+    },
 
     // 鎼滅储
     submitForm() {
@@ -1338,10 +1521,10 @@
           if (response.data) {
             if (response.data.date) {
               this.tableList = response.data.date;
-              this.queryParams.tjNumber =""
+              this.queryParams.tjNumber = "";
             } else {
               this.tableList = response.data.customers;
-              this.queryParams.tjNumber =""
+              this.queryParams.tjNumber = "";
             }
             this.total = response.data.total;
           } else {
@@ -1349,8 +1532,7 @@
           }
         }
       });
-     
-      
+
       // this.loading = true;
       // (this.queryParams = {
       //   page: 1,
@@ -1383,8 +1565,8 @@
       this.resetForm("tableList");
       this.submitForm();
       this.$nextTick(() => {
-      this.$refs.inputName.focus();
-    });
+        this.$refs.inputName.focus();
+      });
     },
 
     Changeapplyfor(row) {
@@ -1695,15 +1877,15 @@
       this.loading = true;
       this.drawer = true;
       this.tableAll = row;
-      if (this.tableAll.cusSex === 0) {
-        this.tableAll.cusSex = "鐢�";
-      }
-      if (this.tableAll.cusSex === 1) {
-        this.tableAll.cusSex = "濂�";
-      }
-      if (this.tableAll.cusSex === 2) {
-        this.tableAll.cusSex = "鏈煡";
-      }
+      // if (this.tableAll.cusSex === 0) {
+      //   this.tableAll.cusSex = "鐢�";
+      // }
+      // if (this.tableAll.cusSex === 1) {
+      //   this.tableAll.cusSex = "濂�";
+      // }
+      // if (this.tableAll.cusSex === 2) {
+      //   this.tableAll.cusSex = "鏈煡";
+      // }
       this.tjNumber = row.tjNumber;
       let num = 0;
       getParentList(this.tjNumber).then((response) => {
@@ -1760,6 +1942,7 @@
       };
       getParentId(data).then((response) => {
         this.proParentList = response.data;
+
         this.loading = false;
         this.value = [];
         if (this.proParentList.xiaoJieIds != null) {
@@ -1770,7 +1953,6 @@
             });
           }
         }
-
         this.proParentList.sons.forEach((item) => {
           this.doctorName = item.doctorName;
           if (this.doctorName == null) {
@@ -1796,15 +1978,17 @@
             item.exceptionDesc = false;
           }
         });
-        if (this.proParentList.xiaoJie.length != 0) {
-          this.Parent.forEach((item3) => {
-            if (item3.proId === this.nums) {
-              this.proParentList.remark = item3.remark;
-            }
-          });
-        } else {
-          this.proParentList.remark = "";
-        }
+        if (this.proParentList.xiaoJie) {
+          if (this.proParentList.xiaoJie.length != 0) {
+            this.Parent.forEach((item3) => {
+              if (item3.proId === this.nums) {
+                this.proParentList.remark = item3.remark;
+              }
+            });
+          } 
+        }else {
+            this.proParentList.remark = "";
+          }
       });
     },
 
@@ -1832,6 +2016,202 @@
           });
         }
       });
+    },
+
+    handleTabClick(tab, event) {
+      // console.log(tab, event);
+      // console.log(tab.name);
+      this.Parent.forEach((item) => {
+        if (tab.name == item.proId) {
+          this.Parentcheck = item;
+        }
+      });
+
+      this.$confirm(
+        "妫�娴嬪埌浣撴缁撴灉鏈彁浜わ紝鏄惁鍦ㄧ寮�璇ラ」鐩墠鎻愪氦淇敼锛�",
+        "纭淇℃伅",
+        {
+          distinguishCancelAndClose: true,
+          confirmButtonText: "鎻愪氦",
+          cancelButtonText: "涓嶄繚瀛橈紝绂诲紑",
+        }
+      )
+        .then(() => {
+          // 浣撴鍙�
+          let tjNumber = this.tableAll.tjNumber;
+          this.userList.forEach((item) => {
+            if (this.doctorName == item.nickName) {
+              this.doctorName = item.userId;
+            }
+          });
+          this.proParentList.sons.forEach((item) => {
+            if (this.rows) {
+              this.rows.forEach((item1) => {
+                if (item1 === item) {
+                  item = item1;
+                }
+                // if (item.isReturn == true) {
+                //   item.isReturn = 1;
+                // }
+                // if (item.isReturn == false) {
+                //   item.isReturn = 0;
+                // }
+              });
+            }
+            this.tjOrderDetail.push({
+              proName: item.project.proName,
+              proId: item.project.proId,
+              orderDetailId: item.orderDetailId,
+              flowingWaterId: item.flowingWaterId,
+              proResult: item.proResult,
+              tjStatus: 1,
+              isReturn: item.isReturn === true ? 1 : 0,
+              exceptionDesc: item.exceptionDesc === true ? 1 : 0,
+              conclusion: item.conclusion,
+              rulesList: item.rulesList,
+            });
+          });
+
+          var data = [
+            {
+              tjNumber,
+              proId: this.proId,
+              remark: this.proParentList.remark, // 澶囨敞
+              proName: this.proName, //鐖堕」
+              summaryList: this.value, //灏忕粨
+              doctorName: this.doctorName,
+              tjOrderDetailList: this.tjOrderDetail,
+            },
+          ];
+          getaddRemark(data).then((res) => {
+            this.$modal.msgSuccess("鎻愪氦鎴愬姛");
+          });
+          this.proName = item.proName;
+          this.nums = tab.name;
+          this.proId = tab.name;
+          var data = {
+            tjNumber: this.tjNumber,
+            proParentId: this.nums,
+          };
+          getParentId(data).then((response) => {
+            this.proParentList = response.data;
+            this.value = [];
+            if (this.proParentList.xiaoJieIds != null) {
+              if (this.proParentList.xiaoJieIds.length != 0) {
+                this.proParentList.xiaoJieIds.forEach((item2) => {
+                  let item = Number(item2);
+                  this.value.push(item);
+                });
+              }
+            }
+            this.proParentList.sons.forEach((item) => {
+              this.doctorName = item.doctorName;
+              if (this.doctorName == null) {
+                this.userList.forEach((element) => {
+                  const userName = this.$store.state.user.name;
+                  if (userName == element.userName) {
+                    this.doctorName = element.nickName;
+                  }
+                });
+              }
+              if (item.isReturn == 1) {
+                item.isReturn = true;
+              }
+              if (item.isReturn == 0) {
+                item.isReturn = false;
+              }
+
+              if (item.exceptionDesc == "1") {
+                item.exceptionDesc = true;
+              }
+              if (item.exceptionDesc == "0") {
+                item.exceptionDesc = false;
+              }
+            });
+            if (this.proParentList.xiaoJie) {
+              if (this.proParentList.xiaoJie.length != 0) {
+                this.Parent.forEach((item3) => {
+                  if (item3.proId === tab.name) {
+                    this.remark = this.Parentcheck.remark;
+                  }
+                });
+              } 
+            }else {
+                this.remark = "";
+              }
+          });
+
+          getDeptAdvice(this.proId).then((response) => {
+            this.deptAdviceList = response.data;
+          });
+        })
+        .catch((action) => {
+          if (action === "cancel") {
+            this.$message({
+              type: "warning",
+              message: "鏀惧純淇濆瓨骞剁寮�",
+            });
+          }
+
+          this.proName = this.Parentcheck.proName;
+          this.nums = tab.name;
+          this.proId = tab.name;
+          let data = {
+            tjNumber: this.tjNumber,
+            proParentId: this.nums,
+          };
+          getParentId(data).then((response) => {
+            this.proParentList = response.data;
+            this.value = [];
+            if (this.proParentList.xiaoJieIds != null) {
+              if (this.proParentList.xiaoJieIds.length != 0) {
+                this.proParentList.xiaoJieIds.forEach((item2) => {
+                  let item = Number(item2);
+                  this.value.push(item);
+                });
+              }
+            }
+            this.proParentList.sons.forEach((item) => {
+              this.doctorName = item.doctorName;
+              if (this.doctorName == null) {
+                this.userList.forEach((element) => {
+                  const userName = this.$store.state.user.name;
+                  if (userName == element.userName) {
+                    this.doctorName = element.nickName;
+                  }
+                });
+              }
+              if (item.isReturn == 1) {
+                item.isReturn = true;
+              }
+              if (item.isReturn == 0) {
+                item.isReturn = false;
+              }
+
+              if (item.exceptionDesc == "1") {
+                item.exceptionDesc = true;
+              }
+              if (item.exceptionDesc == "0") {
+                item.exceptionDesc = false;
+              }
+            });
+            if (this.proParentList.xiaoJie) {
+              if (this.proParentList.xiaoJie.length != 0) {
+                this.Parent.forEach((item3) => {
+                  if (item3.proId === tab.name) {
+                    this.remark = this.Parentcheck.remark;
+                  }
+                });
+              }
+            } else {
+              this.remark = "";
+            }
+          });
+
+          getDeptAdvice(this.proId).then((response) => {
+            this.deptAdviceList = response.data;
+          });
+        });
     },
 
     // 鎸夐挳鐐瑰嚮浜嬩欢
@@ -1954,10 +2334,12 @@
           });
         })
         .catch((action) => {
-          this.$message({
-            type: "info",
-            message: action === "cancel" ? "鏀惧純淇濆瓨骞剁寮�" : "鍋滅暀鍦ㄥ綋鍓嶉〉闈�",
-          });
+          if (action === "cancel") {
+            this.$message({
+              type: "warning",
+              message: "鏀惧純淇濆瓨骞剁寮�",
+            });
+          }
           this.proName = item.proName;
           this.nums = proParentId;
           this.proId = proParentId;
@@ -2080,7 +2462,7 @@
   },
 };
 </script>
-<style >
+<style>
 .el-table .cell {
   -webkit-box-sizing: border-box;
   box-sizing: border-box;
@@ -2126,6 +2508,14 @@
 .pag1 {
   width: 30%;
 }
-</style> 
 
+.el-message {
+  top: 40px !important;
+  border: 1px solid #c1c1c1;
+  background-color: #c1c1c1;
+}
 
+.el-message * {
+  color: var(--white) !important;
+}
+</style>

--
Gitblit v1.8.0