From d4be39fedaed04b0f1f34808dc55369ed5b94e21 Mon Sep 17 00:00:00 2001
From: wwl <xchao828@163.com>
Date: 星期五, 16 五月 2025 17:59:09 +0800
Subject: [PATCH] BMI

---
 src/views/doctor/examination/index.vue |  359 +++++++++++++++++------------------------------------------
 1 files changed, 105 insertions(+), 254 deletions(-)

diff --git a/src/views/doctor/examination/index.vue b/src/views/doctor/examination/index.vue
index 667f6e1..dc40ce2 100644
--- a/src/views/doctor/examination/index.vue
+++ b/src/views/doctor/examination/index.vue
@@ -1,129 +1,46 @@
 <template>
   <div class="app-container">
-    <el-form
-      :model="queryParams"
-      ref="queryForm"
-      size="small"
-      :inline="true"
-      label-width="68px"
-    >
+    <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" label-width="68px">
       <el-form-item label="濮撳悕" prop="name">
-        <el-input
-          v-model="queryParams.name"
-          placeholder="璇疯緭鍏ュ鍚�"
-          clearable
-          @keyup.enter.native="handleQuery"
-          style="width: 110px"
-        />
+        <el-input v-model="queryParams.name" placeholder="璇疯緭鍏ュ鍚�" clearable @keyup.enter.native="handleQuery"
+          style="width: 110px" />
       </el-form-item>
       <el-form-item label="浣撴鍙�" prop="tjNumber">
-        <el-input
-          ref="inputName"
-          v-model="queryParams.tjNumber"
-          placeholder="璇疯緭鍏ヤ綋妫�鍙�"
-          clearable
-          @keyup.enter.native="handleQuery"
-          @blur="hb"
-          style="width: 170px"
-        />
+        <el-input ref="inputName" v-model="queryParams.tjNumber" placeholder="璇疯緭鍏ヤ綋妫�鍙�" clearable
+          @keyup.enter.native="handleQuery" @blur="hb" style="width: 170px" />
       </el-form-item>
 
-      <el-form-item
-        label="鍗曚綅鍚嶇О"
-        prop="tjCompName"
-        style="margin-left: 20px"
-      >
-        <el-select
-          :remote-method="getRemoteData"
-          v-model="queryParams.tjCompName"
-          value-key="drugManufacturerId"
-          style="width: 180px"
-          remote
-          filterable
-          placeholder="璇烽�夋嫨鍗曚綅鍚嶇О"
-          clearable
-          @change="searchSelect"
-        >
-          <el-option
-            v-for="dict in CompanyList"
-            :key="dict.drugManufacturerId"
-            :label="dict.cnName"
-            :value="dict"
-          />
+      <el-form-item label="鍗曚綅鍚嶇О" prop="tjCompName" style="margin-left: 20px">
+        <el-select :remote-method="getRemoteData" v-model="queryParams.tjCompName" value-key="drugManufacturerId"
+          style="width: 180px" remote filterable placeholder="璇烽�夋嫨鍗曚綅鍚嶇О" clearable @change="searchSelect">
+          <el-option v-for="dict in CompanyList" :key="dict.drugManufacturerId" :label="dict.cnName" :value="dict" />
         </el-select>
       </el-form-item>
       <el-form-item label="鐧昏鏃堕棿" prop="createTimeList">
-        <el-date-picker
-          v-model="createTimeList"
-          type="datetimerange"
-          align="right"
-          :picker-options="pickerOptions"
-          style="width: 310px"
-          start-placeholder="寮�濮嬫棩鏈�"
-          end-placeholder="缁撴潫鏃ユ湡"
-          :default-time="['00:00:00', '23:00:00']"
-          format="yyyy-MM-dd HH:mm"
-          value-format="yyyy-MM-dd HH:mm"
-          @change="dateChangebirthday1"
-        >
+        <el-date-picker v-model="createTimeList" type="datetimerange" align="right" :picker-options="pickerOptions"
+          style="width: 310px" start-placeholder="寮�濮嬫棩鏈�" end-placeholder="缁撴潫鏃ユ湡" :default-time="['00:00:00', '23:00:00']"
+          format="yyyy-MM-dd HH:mm" value-format="yyyy-MM-dd HH:mm" @change="dateChangebirthday1">
         </el-date-picker>
       </el-form-item>
       <el-form-item>
-        <el-button
-          type="primary"
-          icon="el-icon-search"
-          size="mini"
-          @click="handleQuery"
-          style="margin-right: 15px"
-          >鏌ヨ</el-button
-        >
-        <el-button icon="el-icon-refresh" size="mini" @click="resetQuery"
-          >閲嶇疆</el-button
-        >
+        <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery"
+          style="margin-right: 15px">鏌ヨ</el-button>
+        <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">閲嶇疆</el-button>
       </el-form-item>
     </el-form>
-    <el-radio-group
-      v-model="checkStatus"
-      @input="radioChange"
-      style="margin: 10px 15px"
-    >
+    <el-radio-group v-model="checkStatus" @input="radioChange" style="margin: 10px 15px">
       <el-radio-button label="0">鏈鏍�</el-radio-button>
       <el-radio-button label="1">宸插鏍�</el-radio-button>
     </el-radio-group>
 
     <div style="width: 100%; margin-left: 10px; display: flex">
       <div style="width: 45%">
-        <el-table
-          id="ta"
-          v-loading="loading"
-          ref="tb"
-          :data="exaList"
-          border
-          height="520"
-          :row-class-name="tableRowClassName"
-          highlight-current-row
-          @current-change="handleCurrentChange"
-          
-        >
+        <el-table id="ta" v-loading="loading" ref="tb" :data="exaList" border height="520"
+          :row-class-name="tableRowClassName" highlight-current-row @current-change="handleCurrentChange">
           <!-- <el-table-column type="selection" width="40" align="center" /> -->
-          <el-table-column
-            label="浣撴鍙�"
-            align="center"
-            prop="tjNumber"
-            min-width="160"
-          />
-          <el-table-column
-            label="濮撳悕"
-            align="center"
-            prop="cusName"
-            min-width="80"
-          />
-          <el-table-column
-            label="鎬у埆"
-            align="center"
-            prop="cusSex"
-            min-width="50"
-          >
+          <el-table-column label="浣撴鍙�" align="center" prop="tjNumber" min-width="160" />
+          <el-table-column label="濮撳悕" align="center" prop="cusName" min-width="80" />
+          <el-table-column label="鎬у埆" align="center" prop="cusSex" min-width="50">
             <template slot-scope="scope">
               <span v-if="scope.row.cusSex == '0'">鐢�</span>
               <span v-if="scope.row.cusSex == '1'">濂�</span>
@@ -136,70 +53,28 @@
             <!-- <dict-tag :options="dict.type.sys_user_sex" :value="scope.row.cusSex " /> -->
             <!-- </template> -->
           </el-table-column>
-          <el-table-column
-            label="鎵嬫満鍙�"
-            align="center"
-            prop="cusPhone"
-            min-width="100"
-          />
-          <el-table-column
-            label="鐧昏鏃堕棿"
-            align="center"
-            prop="tjTime"
-            min-width="120"
-          />
-          <el-table-column
-            v-if="checkStatus == '1'"
-            label="瀹℃牳鐘舵��"
-            align="center"
-            prop="confirmStatus"
-            min-width="80"
-          >
+          <el-table-column label="鎵嬫満鍙�" align="center" prop="cusPhone" min-width="100" />
+          <el-table-column label="鐧昏鏃堕棿" align="center" prop="tjTime" min-width="120" />
+          <el-table-column v-if="checkStatus == '1'" label="瀹℃牳鐘舵��" align="center" prop="confirmStatus" min-width="80">
             <template slot-scope="scope">
-              <span
-                :style="{
-                  color:
-                    scope.row.confirmStatus == '301' ? '#0CB618' : '#EA1B29',
-                }"
-                v-if="scope.row.confirmStatus == '301'"
-                >宸查�氳繃</span
-              >
-              <span
-                :style="{
-                  color:
-                    scope.row.confirmStatus == '301' ? '#0CB618' : '#EA1B29',
-                }"
-                v-if="scope.row.confirmStatus == '299'"
-                >宸查┏鍥�</span
-              >
+              <span :style="{
+                color:
+                  scope.row.confirmStatus == '301' ? '#0CB618' : '#EA1B29',
+              }" v-if="scope.row.confirmStatus == '301'">宸查�氳繃</span>
+              <span :style="{
+                color:
+                  scope.row.confirmStatus == '301' ? '#0CB618' : '#EA1B29',
+              }" v-if="scope.row.confirmStatus == '299'">宸查┏鍥�</span>
             </template>
           </el-table-column>
           <!--   v-hasPermi="['reservation:reservation:edit']" -->
           <el-table-column label="鎿嶄綔" align="center" min-width="120px">
             <template slot-scope="scope">
-              <el-button
-                size="mini"
-                type="text"
-                @click="tongbu(scope.row)"
-                disabled
-                >鍚屾</el-button
-              >
+              <el-button size="mini" type="text" @click="tongbu(scope.row)" disabled>鍚屾</el-button>
               <!-- :disabled="dis" -->
-              <el-button
-                disabled
-                size="mini"
-                type="text"
-                @click="tongguo(scope.row)"
-                >閫氳繃</el-button
-              >
+              <el-button disabled size="mini" type="text" @click="tongguo(scope.row)">閫氳繃</el-button>
 
-              <el-button
-                size="mini"
-                type="text"
-                disabled
-                @click="bohui(scope.row)"
-                >椹冲洖</el-button
-              >
+              <el-button size="mini" type="text" disabled @click="bohui(scope.row)">椹冲洖</el-button>
             </template>
             <!--    v-show="
                   (xianshi == 'Y' || xianshi == 'y') &&
@@ -210,45 +85,15 @@
         </el-table>
       </div>
       <div style="width: 45%; margin-left: 5%">
-        <el-table
-          v-loading="loading"
-          border
-          :row-class-name="tableRowClassName"
-          height="520"
-          ref="tab1"
-          :data="xiangmuList"
-          highlight-current-row
-          @row-click="handleRowClick"
-          
-        >
+        <el-table v-loading="loading" border :row-class-name="tableRowClassName" height="520" ref="tab1"
+          :data="xiangmuList" highlight-current-row @row-click="handleRowClick">
           <!-- <el-table-column type="selection" width="40" align="center" /> -->
-          <el-table-column
-            label="绉戝"
-            align="center"
-            prop="deptName"
-            min-width="100"
-            :show-overflow-tooltip="true"
-          />
-          <el-table-column
-            label="椤圭洰"
-            align="center"
-            prop="proName"
-            min-width="150"
-            :show-overflow-tooltip="true"
-          />
-          <el-table-column
-            label="鐘舵��"
-            align="center"
-            prop="type"
-            :show-overflow-tooltip="true"
-            min-width="100"
-          >
+          <el-table-column label="绉戝" align="center" prop="deptName" min-width="100" :show-overflow-tooltip="true" />
+          <el-table-column label="椤圭洰" align="center" prop="proName" min-width="150" :show-overflow-tooltip="true" />
+          <el-table-column label="鐘舵��" align="center" prop="type" :show-overflow-tooltip="true" min-width="100">
             <template slot-scope="scope">
-              <span
-                v-if="scope.row.type == '0'"
-                :style="type == 0 ? { color: 'red' } : { color: '#409EFF' }"
-              >
-                {{ type == 0 ? "鏈�  妫�" : "鍦�  妫�" }}
+              <span v-if="scope.row.type == '0'" :style="type == 0 ? { color: 'red' } : { color: '#409EFF' }">
+                {{ type == 0 ? "鏈� 妫�" : "鍦� 妫�" }}
               </span>
               <span v-if="scope.row.type == '1'">宸插畬鎴�</span>
               <span v-if="scope.row.type == '2'">寮冩</span>
@@ -281,12 +126,7 @@
             prop="doctorName"
             width="100"
           /> -->
-          <el-table-column
-            label="妫�鏌ユ椂闂�"
-            align="center"
-            prop="bcupdateTime"
-            min-width="160"
-          />
+          <el-table-column label="妫�鏌ユ椂闂�" align="center" prop="bcupdateTime" min-width="160" />
           <!-- <el-table-column
             label="淇濆瓨鍖荤敓"
             align="center"
@@ -301,28 +141,11 @@
           /> -->
           <el-table-column label="鎿嶄綔" align="center" min-width="120px">
             <template slot-scope="scope">
-              <el-button
-                size="mini"
-                type="text"
-                :disabled="scope.row.type === 1"
-                :loading="scope.row.isLoading"
-                @click="qijian(scope.row)"
-                >{{ scope.row.type === 0 ? "寮冩" : "鎭㈠" }}</el-button
-              >
-              <el-button
-                size="mini"
-                type="text"
-                @click="yijian(scope.row)"
-                v-if="yijiantype == 'N'"
-                >宸叉</el-button
-              >
-              <el-button
-                size="mini"
-                type="text"
-                :disabled="scope.row.type === 0 || scope.row.type === 2"
-                @click="queryResultone(scope.row)"
-                >缁撴灉</el-button
-              >
+              <el-button size="mini" type="text" :disabled="scope.row.type === 1" :loading="scope.row.isLoading"
+                @click="qijian(scope.row)">{{ scope.row.type === 0 ? "寮冩" : "鎭㈠" }}</el-button>
+              <el-button size="mini" type="text" @click="yijian(scope.row)" v-if="yijiantype == 'N'">宸叉</el-button>
+              <el-button size="mini" type="text" :disabled="scope.row.type === 0 || scope.row.type === 2"
+                @click="queryResultone(scope.row)">缁撴灉</el-button>
               <!--  @click="chaxun(scope.row) " -->
             </template>
           </el-table-column>
@@ -336,13 +159,8 @@
       </div>
       <div class="a">
         <div v-if="jyjc == 0">
-          <el-table
-            :data="jieguoList"
-            border
-            :row-style="changRed"
-            style="width: 100%"
-            :header-cell-style="{ background: '#AAD8DF' }"
-          >
+          <el-table :data="jieguoList" border :row-style="changRed" style="width: 100%"
+            :header-cell-style="{ background: '#AAD8DF' }">
             <el-table-column label="妫�娴嬮」鐩�" prop="pro_name">
             </el-table-column>
             <el-table-column label="妫�娴嬬粨鏋�" prop="pro_result">
@@ -356,20 +174,14 @@
           <div class="check-result-container">
             <div class="check-item">
               <div class="check-title">妫�鏌ユ墍瑙侊細</div>
-              <div
-                class="check-description"
-                :style="{ color: isRed ? 'red' : '' }"
-              >
+              <div class="check-description" :style="{ color: isRed ? 'red' : '' }">
                 {{ jieguoList[0].pro_result }}
               </div>
             </div>
 
             <div class="check-item">
               <div class="check-title">妫�鏌ョ粨璁猴細</div>
-              <div
-                class="check-description"
-                :style="{ color: isRed ? 'red' : '' }"
-              >
+              <div class="check-description" :style="{ color: isRed ? 'red' : '' }">
                 {{ jieguoList[0].yxzd || "鏆傛棤缁撹" }}
               </div>
             </div>
@@ -383,16 +195,29 @@
         <!-- <el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange" :pager-count="5" :current-page.sync="currentPage1" :current-page="page"
                 :page-sizes="pageSize" :page-size="size" layout="total, sizes, prev, pager, next, jumper" :total="total">
             </el-pagination> -->
-        <pagination
-          v-show="total > 0"
-          :total="total"
-          :pager-count="5"
-          :page.sync="queryParams.page"
-          :limit.sync="queryParams.pageSize"
-          @pagination="submitForm"
-        />
+        <pagination v-show="total > 0" :total="total" :pager-count="5" :page.sync="queryParams.page"
+          :limit.sync="queryParams.pageSize" @pagination="submitForm" />
       </div>
     </div>
+    <el-dialog :visible.sync="open" width="980px" append-to-body>
+      <el-form ref="form" :model="form" label-width="98px" @submit.native.prevent>
+        <el-form-item label="寮冩鍘熷洜" prop="isZybUnit">
+          <el-radio-group v-model="form.isZybUnit">
+            <el-radio :label="0">鑷姩鏀惧純</el-radio>
+            <el-radio :label="1">濡婂</el-radio>
+            <el-radio :label="1">鎬�瀛�</el-radio>
+            <el-radio :label="1">鍏朵粬</el-radio>
+          </el-radio-group>
+        </el-form-item>
+        <br />
+
+      </el-form>
+      <div slot="footer" class="dialog-footer">
+        <el-button type="primary" @click="submitFormqijian">纭� 瀹�</el-button>
+        <el-button @click="cancel">鍙� 娑�</el-button>
+      </div>
+    </el-dialog>
+
   </div>
 </template>
 
@@ -420,7 +245,8 @@
       jieguoList: [],
       jyjc: null,
       dis: false,
-      isLoading:false,
+      isLoading: false,
+      open: false,
       createTimeList: "",
       currentRow: null,
       total: 0,
@@ -789,6 +615,23 @@
         });
       });
     },
+    cancel() {
+      this.open = false
+    },
+    submitFormqijian() {
+      this.open = false
+      qijian(tjNUm, proId).then((res) => {
+        if (res.code == 200) {
+          cSWebGetPro(tjNUm).then((res) => {
+            if (res.code === 200) {
+              // 鏇存柊鍙宠竟琛ㄦ牸鐨勬暟鎹�
+              this.xiangmuList = res.data;
+              this.isLoading = false
+            }
+          });
+        }
+      });
+    },
 
     // 寮冩鎸夐挳
     qijian(row) {
@@ -808,6 +651,7 @@
           }
         });
       } else {
+        // this.open = true
         qijian(tjNUm, proId).then((res) => {
           if (res.code == 200) {
             cSWebGetPro(tjNUm).then((res) => {
@@ -934,7 +778,8 @@
 .el-table .warning-row {
   background: #e5f3ff !important;
 }
-::v-deep .el-table__body tr.current-row > td {
+
+::v-deep .el-table__body tr.current-row>td {
   background: #edf2fa !important;
 }
 
@@ -943,6 +788,7 @@
   display: flex;
   justify-content: center;
 }
+
 .red-text {
   color: red !important;
 }
@@ -954,6 +800,7 @@
 .a ::v-deep .el-table__cell {
   padding: 1px 0 !important;
 }
+
 .check-result-container {
   // background-color: #fafafa;
   padding: 20px;
@@ -976,13 +823,17 @@
 
 .check-description {
   font-size: 14px;
-  color: #555; /* 涓伆鑹叉枃瀛� */
-  line-height: 1.6; /* 琛岄珮锛屽鍔犲彲璇绘�� */
-  padding: 8px 0; /* 涓婁笅鍐呰竟璺� */
+  color: #555;
+  /* 涓伆鑹叉枃瀛� */
+  line-height: 1.6;
+  /* 琛岄珮锛屽鍔犲彲璇绘�� */
+  padding: 8px 0;
+  /* 涓婁笅鍐呰竟璺� */
 }
 
 .check-description.no-result {
-  color: #bbb; /* 濡傛灉娌℃湁缁撹锛屾枃瀛椾负娣$伆鑹� */
+  color: #bbb;
+  /* 濡傛灉娌℃湁缁撹锛屾枃瀛椾负娣$伆鑹� */
 }
 
 ::v-deep .el-table {

--
Gitblit v1.8.0