From 76888bd1bc826f70b47c8d1dca952bdf1fe34b60 Mon Sep 17 00:00:00 2001
From: su1124 <1583764726@qq.com>
Date: 星期三, 26 六月 2024 14:12:01 +0800
Subject: [PATCH] su

---
 src/views/doctor/check/index.vue | 1181 +++++++++++++++++++++++++++++++++++++++++++++-------------
 1 files changed, 916 insertions(+), 265 deletions(-)

diff --git a/src/views/doctor/check/index.vue b/src/views/doctor/check/index.vue
index f515a51..50a6d96 100644
--- a/src/views/doctor/check/index.vue
+++ b/src/views/doctor/check/index.vue
@@ -22,12 +22,17 @@
           v-model="queryParams.tjNumber"
           style="width: 240px"
           placeholder="璇疯緭鍏ヤ綋妫�鍙�"
-          @blur="submitForm"
+          clearable
+          @blur="hb"
           @keyup.enter.native="submitForm"
         ></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>
@@ -406,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"
         >
@@ -443,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">
@@ -480,15 +491,284 @@
           >
         </div>
         <div style="margin: 10px 10px">
-          <el-button type="primary" size="mini" @click="jianqian()"
+          <el-button type="primary" size="mini" @click="jianqian"
             >妫�鍓嶉棶璇�</el-button
           >
         </div>
       </div>
 
       <el-row>
-        <el-col :span="18">
+        <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"
@@ -501,207 +781,291 @@
                 }}</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"
+          </template> -->
+        </el-col>
+        <el-col :span="18" v-show="baogaohou">
+          <template>
+            <el-tabs
+              v-model="radio"
+              type="border-card"
+              @tab-click="handleTabClick"
+              style="margin-left: 10px"
             >
-              <!-- <template slot-scope="scope">
+              <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">
+                  </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">
-          <Historicalreport v-show="lishi"
+        <el-col :span="6" style="margin-top: 15px">
+          <Historicalreport
+            v-show="lishi"
             :reportHistorydata="reportHistorydata"
           ></Historicalreport>
         </el-col>
@@ -756,18 +1120,23 @@
       width="1000px"
       :before-close="handleClose1"
     >
-       <jianqianwenzhen
-          :jianqianwenzhendatas="jianqianwenzhendatas"
-        ></jianqianwenzhen>
+      <jianqianwenzhen
+        :jianqianwenzhendata="jianqianwenzhendata"
+        v-if="flags"
+      ></jianqianwenzhen>
       <span slot="footer" class="dialog-footer">
         <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";
@@ -787,18 +1156,30 @@
 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 {
-      lishi:false,
-      rowes:{},
-      jianqianwenzhendatas:[],
-      jianqians:false,
+      creatobj: {},
+      dataText: [],
+      propform: {},
+      cusobj: {},
+      baogaoqian: true,
+      baogaohou: false,
+      flags: false,
+      lishi: false,
+      jianqianwenzhendata: [],
+      jianqians: false,
       selected: false,
       checkval: false,
       // 閬僵灞�
@@ -873,6 +1254,7 @@
       deptId: "",
       userId: "",
       nickName: "",
+      doctorNames: "",
       date: new Date(new Date().getTime() + 8 * 3600 * 1000)
         .toJSON()
         .substr(0, 19)
@@ -884,6 +1266,10 @@
         tjNumber: "",
         type: "",
         name: null,
+      },
+      queryParam: {
+        page: 1,
+        pageSize: 1000,
       },
       rules: {
         hzType: [
@@ -920,11 +1306,16 @@
   methods: {
     /** 鏌ヨ鐢ㄦ埛鍒楄〃 */
     getListUser() {
-      listUser(this.addDateRange(this.queryParams, this.dateRange)).then(
-        (response) => {
-          this.userList = response.rows;
-        }
-      );
+     
+      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;
@@ -935,8 +1326,8 @@
     handleClose() {
       this.$tab.refreshPage();
     },
-    handleClose1(){
-      this.jianqians = false
+    handleClose1() {
+      this.jianqians = false;
     },
     // 鑾峰彇鍖荤敓
     selName(val) {
@@ -956,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) => {
@@ -1089,11 +1480,59 @@
         }
       });
     },
+    hb() {
+      if (this.queryParams.tjNumber != "") {
+        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() {
       this.queryParams.page = 1;
-      this.getList();
+      this.loading = true;
+      this.queryParams.type = this.tjStatus;
+      getProList(this.queryParams).then((response) => {
+        if (response.code == 200) {
+          this.loading = false;
+          if (response.data) {
+            if (response.data.date) {
+              this.tableList = response.data.date;
+              this.queryParams.tjNumber = "";
+            } else {
+              this.tableList = response.data.customers;
+              this.queryParams.tjNumber = "";
+            }
+            this.total = response.data.total;
+          } else {
+            this.tableList = [];
+          }
+        }
+      });
+
       // this.loading = true;
       // (this.queryParams = {
       //   page: 1,
@@ -1125,6 +1564,9 @@
     resetQuery() {
       this.resetForm("tableList");
       this.submitForm();
+      this.$nextTick(() => {
+        this.$refs.inputName.focus();
+      });
     },
 
     Changeapplyfor(row) {
@@ -1208,7 +1650,6 @@
     },
 
     hadleedit(row) {
-      console.log(row, 111);
       this.form.hzType = row.hzType;
       this.form.id = row.id;
       // this.form.hzDeptId = row.hzDeptNameList;
@@ -1324,19 +1765,20 @@
       this.Hzlog(this.tableAll.tjNumber);
     },
     historicalreport() {
+      this.baogaoqian = false;
+      this.baogaohou = true;
       this.loading = true;
       let data = {
         cusId: this.tableAll.cusId,
       };
       reportHistory(data).then((res) => {
-        console.log(res);
         this.loading = false;
         if (res.data[0] != null) {
           this.reportHistorydata = res.data;
         }
-        if(this.reportHistorydata.length >= 1){
+        if (this.reportHistorydata.length >= 1) {
           this.lishi = true;
-        }else{
+        } else {
           this.lishi = true;
           this.$modal.msgError("鏆傛棤鍘嗗彶鎶ュ憡");
         }
@@ -1344,31 +1786,10 @@
     },
 
     jianqian() {
-      let tjNumber = this.rowes.tjNumber;
-       getInfoById(tjNumber).then((response) => {
-        this.jianqianwenzhendatas = response.data;
-        if (this.form.xiyan == null) {
-          this.form.xiyan = "1";
-        }
-        if (this.form.xiyanpinlv == null) {
-          this.form.xiyanpinlv = "0";
-        }
-        if (this.form.xiyanyear == null) {
-          this.form.xiyanyear = "0";
-        }
-        if (this.form.yinjiu == null) {
-          this.form.yinjiu = "1";
-        }
-        if (this.form.yinjiupinlv == null) {
-          this.form.yinjiupinlv = "0";
-        }
-        if (this.form.yinjiuyear == null) {
-          this.form.yinjiuyear = "0";
-        }
-        this.form.tjAskHistorysList = response.data.tjAskHistorysList;
-        // this.isdisabled= true
-      });
+      this.flags = true;
       this.jianqians = true;
+      let tjNumber = this.tableAll.tjNumber;
+      this.jianqianwenzhendata.push(tjNumber);
     },
 
     handlecan(row) {
@@ -1452,21 +1873,19 @@
 
     // 鐐瑰嚮璇︽儏
     handleClick(row) {
-      this.rowes = row;
-      console.log(this.rowes);
       this.getDept(row.tjNumber);
       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) => {
@@ -1523,6 +1942,7 @@
       };
       getParentId(data).then((response) => {
         this.proParentList = response.data;
+
         this.loading = false;
         this.value = [];
         if (this.proParentList.xiaoJieIds != null) {
@@ -1533,9 +1953,16 @@
             });
           }
         }
-
         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;
@@ -1551,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 = "";
+          }
       });
     },
 
@@ -1587,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;
+          });
+        });
     },
 
     // 鎸夐挳鐐瑰嚮浜嬩欢
@@ -1671,6 +2296,14 @@
             }
             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;
               }
@@ -1701,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;
@@ -1725,6 +2360,14 @@
             }
             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;
               }
@@ -1819,7 +2462,7 @@
   },
 };
 </script>
-<style >
+<style>
 .el-table .cell {
   -webkit-box-sizing: border-box;
   box-sizing: border-box;
@@ -1865,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