From ad0ecacbc73d16c9b95b79ac3c82868cbff33e44 Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期一, 05 八月 2024 16:17:21 +0800
Subject: [PATCH] 测试完成

---
 src/views/patient/patient/outpatient.vue |  197 +++++++++++++++++++++----------------------------
 1 files changed, 84 insertions(+), 113 deletions(-)

diff --git a/src/views/patient/patient/outpatient.vue b/src/views/patient/patient/outpatient.vue
index 563d1c5..f48528b 100644
--- a/src/views/patient/patient/outpatient.vue
+++ b/src/views/patient/patient/outpatient.vue
@@ -13,37 +13,25 @@
         >
           <el-form-item label="濮撳悕" prop="name">
             <el-input
-              v-model="queryParams.name"
+              v-model="queryParams.patname"
               placeholder="璇疯緭鍏ュ鍚�"
               clearable
               style="width: 200px"
               @keyup.enter.native="handleQuery"
             />
           </el-form-item>
-          <el-form-item label="鎮h�呯紪鍙�" prop="idno">
+          <el-form-item label="鎮h�呯紪鍙�" prop="patid">
             <el-input
-              v-model="queryParams.idno"
+              v-model="queryParams.patid"
               placeholder="璇疯緭鍏ユ偅鑰呯紪鍙�"
               clearable
               style="width: 250px"
               @keyup.enter.native="handleQuery"
             />
           </el-form-item>
-          <el-form-item label="鎮h�呯紪鍙�" prop="telcode">
-            <el-input
-              v-model="queryParams.telcode"
-              placeholder="璇疯緭鍏ユ偅鑰呯紪鍙�"
-              clearable
-              style="width: 280px"
-              @keyup.enter.native="handleQuery"
-            />
-          </el-form-item>
+
           <el-form-item label="鎮h�呰寖鍥�" prop="tagId">
-            <el-select
-              v-model="queryParams.Patientid"
-              multiple
-              placeholder="璇烽�夋嫨"
-            >
+            <el-select v-model="queryParams.Patientid" placeholder="璇烽�夋嫨">
               <el-option
                 v-for="item in Patientrange"
                 :key="item.id"
@@ -54,10 +42,11 @@
             </el-select>
           </el-form-item>
           <el-row>
-            <el-form-item label="鎮h�呮爣绛�" prop="tagId">
+            <!-- <el-form-item label="鎮h�呮爣绛�" prop="tagId">
               <el-select
                 v-model="queryParams.tagIds"
                 multiple
+                filterable
                 placeholder="璇烽�夋嫨"
               >
                 <el-option
@@ -68,11 +57,11 @@
                 >
                 </el-option>
               </el-select>
-            </el-form-item>
-            <el-form-item label=" 灏辫瘖鏃ユ湡 " prop="admitdate">
+            </el-form-item> -->
+            <el-form-item label=" 灏辫瘖鏃ユ湡 " prop="createTime">
               <el-date-picker
                 clearable
-                v-model="queryParams.admitdate"
+                v-model="queryParams.createTime"
                 type="date"
                 value-format="yyyy-MM-dd"
                 placeholder="璇烽�夋嫨 灏辫瘖鏃ユ湡 "
@@ -161,6 +150,7 @@
           </el-col>
           <!-- <el-col :span="1.5"> </el-col> -->
         </el-row>
+
         <el-table
           v-loading="loading"
           :data="userList"
@@ -169,38 +159,45 @@
           <el-table-column type="selection" width="50" align="center" />
           <el-table-column
             label="搴忓彿"
+            fixed
             align="center"
-            key="patid"
-            prop="patid"
+            key="id"
+            prop="id"
+          />
+          <el-table-column
+            label="濮撳悕"
+            fixed
+            align="center"
+            key="patname"
+            prop="patname"
           />
           <el-table-column
             label="鎮h�呯紪鍙�"
             align="center"
-            key="Patientnumber"
-            prop="Patientnumber"
+            key="patid"
+            prop="patid"
           />
-          <el-table-column label="濮撳悕" align="center" key="name" prop="name" />
           <el-table-column label="鎬у埆" align="center" key="sex" prop="sex">
             <template slot-scope="scope">
               <span>{{ scope.row.sex == 1 ? "鐢�" : "濂�" }}</span>
             </template>
           </el-table-column>
-          <el-table-column
-            label="骞撮緞"
+          <!-- <el-table-column
+            label="骞撮緞锛堢己锛�"
             align="center"
             key="age"
             prop="age"
             width="120"
           />
           <el-table-column
-            label="鑱旂郴鐢佃瘽"
+            label="鑱旂郴鐢佃瘽锛堢己锛�"
             align="center"
             key="telephone"
             prop="telephone"
             width="120"
-          />
-          <el-table-column
-            label="鎮h�呮爣绛�"
+          /> -->
+          <!-- <el-table-column
+            label="鎮h�呮爣绛撅紙缂猴級"
             align="center"
             key="tagList"
             prop="tagList"
@@ -210,66 +207,52 @@
             <template slot-scope="scope">
               <span v-for="item in scope.row.tagList">{{ item }} </span>
             </template>
-          </el-table-column>
-          <el-table-column
-            label="灏辫瘖绫诲埆"
-            align="center"
-            key="idtype"
-            prop="idtype"
-            width="120"
-          />
+          </el-table-column> -->
+
           <el-table-column
             label="璇婃柇"
             align="center"
-            key="idno"
-            prop="idno"
+            key="diagname"
+            prop="diagname"
             width="190"
           />
-
+          <el-table-column
+            label="涓昏堪"
+            align="center"
+            key="mainsuit"
+            prop="mainsuit"
+            width="120"
+          />
           <el-table-column
             label="绉戝"
             align="center"
-            key="telcode"
-            prop="telcode"
+            key="deptname"
+            prop="deptname"
             width="120"
           />
           <el-table-column
             label="鍖荤敓"
             align="center"
-            key="telcode"
-            prop="telcode"
+            key="drname"
+            prop="drname"
             width="120"
           />
-          <el-table-column
-            label="鐘舵��"
-            align="center"
-            key="telcode"
-            prop="telcode"
-            width="120"
-          />
+
           <el-table-column
             label="灏辫瘖鏃堕棿"
             align="center"
-            key="archivetime"
-            prop="archivetime"
+            key="createTime"
+            prop="createTime"
             width="160"
           >
             <template slot-scope="scope">
               <span>{{ parseTime(scope.row.createTime) }}</span>
             </template>
           </el-table-column>
-          <el-table-column
-            label="澶嶈瘖鏃堕棿"
-            align="center"
-            prop="updateTime"
-            width="160"
-          >
-            <template slot-scope="scope">
-              <span>{{ parseTime(scope.row.createTime) }}</span>
-            </template>
-          </el-table-column>
+
           <el-table-column
             label="鎿嶄綔"
+            fixed="right"
             align="center"
             width="160"
             class-name="small-padding fixed-width"
@@ -344,8 +327,8 @@
         </el-row>
         <el-row>
           <el-col :span="12">
-            <el-form-item label="璇佷欢绫诲瀷" prop="idtype">
-              <el-select v-model="form.idtype" placeholder="璇烽�夋嫨鎬у埆">
+            <el-form-item label="璇佷欢绫诲瀷" prop="idcardtype">
+              <el-select v-model="form.idcardtype" placeholder="璇烽�夋嫨鎬у埆">
                 <el-option
                   v-for="item in paperstypes"
                   :key="item.papersname"
@@ -356,9 +339,9 @@
             </el-form-item>
           </el-col>
           <el-col :span="12">
-            <el-form-item label="璇佷欢鍙�" prop="idno">
+            <el-form-item label="璇佷欢鍙�" prop="idcardno">
               <el-input
-                v-model="form.idno"
+                v-model="form.idcardno"
                 placeholder="璇疯緭鍏ヨ瘉浠跺彿"
                 maxlength="50"
               />
@@ -524,22 +507,14 @@
 
 <script>
 import { delUser } from "@/api/system/user";
+
 import {
-  listpat_archive,
-  getpat_archive,
-  addpat_archive,
-  updatepat_archive,
-  delpat_archive,
-} from "@/api/smartorpor/pat_archive";
-import {
-  messagelistpatient,
-  alterpatient,
-  addpatient,
-  particularpatient,
-  deletepatient,
-  Exporterrorpatient,
-  toleadpatient,
-} from "@/api/patient/homepage";
+  listPatouthosp,
+  getPatouthosp,
+  addPatouthosp,
+  updatePatouthosp,
+  delPatouthosp,
+} from "@/api/smartor/patouthosp";
 import { listtag } from "@/api/system/label";
 import { getToken } from "@/utils/auth";
 import Treeselect from "@riophae/vue-treeselect";
@@ -590,9 +565,9 @@
         age: "",
         sex: "",
         tagList: [],
-        idno: "",
+        idcardno: "",
         telcode: "",
-        idtype: "",
+        idcardtype: "",
         relativetelcode: "",
       },
       //瀵煎叆杩涘害
@@ -637,11 +612,6 @@
       queryParams: {
         pageNum: 1,
         pageSize: 10,
-        idno: undefined,
-        name: undefined,
-        status: undefined,
-        tagIds: undefined,
-        telcode: undefined,
       },
       // 琛ㄥ崟鏍¢獙
       rules: {
@@ -705,7 +675,7 @@
     /** 鏌ヨ鎮h�呭垪琛� */
     getList() {
       this.loading = true;
-      messagelistpatient(this.queryParams).then((response) => {
+      listPatouthosp(this.queryParams).then((response) => {
         console.log(response);
         this.userList = response.rows;
         this.total = response.total;
@@ -714,8 +684,14 @@
     },
     /** 鏌ヨ鏍囩鍒楄〃 */
     gettabList() {
-      const queryParams = {};
-      listtag().then((response) => {
+      const tagqueryParams = {
+        pageNum: 1,
+        pageSize: 1000,
+        tagname: undefined,
+        tagdescription: undefined,
+        tagcategoryid: "0",
+      };
+      listtag(tagqueryParams).then((response) => {
         console.log(response);
         this.optionstag = response.rows;
       });
@@ -753,9 +729,9 @@
         age: "",
         sex: "",
         tagList: [],
-        idno: "",
+        idcardno: "",
         telcode: "",
-        idtype: "",
+        idcardtype: "",
         relativetelcode: "",
       };
       // this.resetForm("form");
@@ -800,24 +776,19 @@
     //淇敼/鏂板鎮h��
     submitForm() {
       if (this.amendtag) {
-        alterpatient(this.form)
-          .then((response) => {
-            console.log(response);
-          })
-          .then(() => {
-            this.getList();
-            this.$modal.msgSuccess("淇敼鎴愬姛");
-          });
+        console.log(22);
+        this.form.isoperation = 2;
       } else {
-        addpatient(this.form)
-          .then((response) => {
-            console.log(response);
-          })
-          .then(() => {
-            this.getList();
-            this.$modal.msgSuccess("娣诲姞鎴愬姛");
-          });
+        this.form.isoperation = 1;
       }
+      alterpatient(this.form)
+        .then((response) => {
+          console.log(response);
+        })
+        .then(() => {
+          this.getList();
+          this.$modal.msgSuccess("淇濆瓨鎴愬姛");
+        });
       this.reset();
       // this.idds = "";
       this.Labelchange = false;

--
Gitblit v1.9.3