From 4ee2d071034af118e516adcaaca81d3de69265ec Mon Sep 17 00:00:00 2001
From: su1124 <1583764726@qq.com>
Date: 星期三, 27 十二月 2023 18:07:36 +0800
Subject: [PATCH] su

---
 src/components/jianqianwenzhen/index.vue |   56 +++++++++++++++++++++++++++++++++++++++-----------------
 1 files changed, 39 insertions(+), 17 deletions(-)

diff --git a/src/components/jianqianwenzhen/index.vue b/src/components/jianqianwenzhen/index.vue
index 92ff394..36b1864 100644
--- a/src/components/jianqianwenzhen/index.vue
+++ b/src/components/jianqianwenzhen/index.vue
@@ -52,6 +52,17 @@
                 />
               </el-select>
             </el-form-item>
+            <el-form-item label="宸ョ" prop="gongZhong">
+              <el-input v-model="form.gongZhong" placeholder="璇疯緭鍏ュ伐绉�" />
+            </el-form-item>
+            <el-form-item label="宸ラ緞" prop="gongLing">
+              <!-- <el-input v-model="form.cusName" placeholder="璇疯緭鍏ュ伐榫�" style="width: 150px" />骞� -->
+              <el-input-number
+                v-model="form.gongLing"
+                label="璇疯緭鍏ュ伐榫�"
+              ></el-input-number
+              >骞�
+            </el-form-item>
             <el-form-item label="鎺ヨЕ姣掔墿" prop="contactPoison">
               <el-input
                 type="textarea"
@@ -213,15 +224,18 @@
                     placeholder="璇疯緭鍏ョ柧鐥呭悕绉�"
                   /> -->
                   <el-select
+                    :remote-method="getRemoteData"
                     v-model="scope.row.diseaseName"
-                    placeholder="璇烽�夋嫨鐤剧梾鍚嶇О"
+                    remote
                     filterable
+                    placeholder="璇烽�夋嫨鐥呯鍚�"
+                    clearable
                   >
                     <el-option
-                      v-for="dict in icdList"
-                      :key="dict.icdname"
-                      :label="dict.icdname"
-                      :value="dict.id"
+                      v-for="dict in rulesList"
+                      :key="dict.aid"
+                      :label="dict.bingzhong"
+                      :value="dict.bingzhong"
                     />
                   </el-select>
                 </template>
@@ -425,6 +439,7 @@
 </template>
 
 <script>
+import { listRules } from "@/api/hosp/rules";
 import { listIcd } from "@/api/system/icd";
 import { updateHistory } from "@/api/hosp/history";
 export default {
@@ -449,6 +464,10 @@
       }
     };
     return {
+      queryParams: {
+        pageNum: 1,
+        pageSize: 10,
+      },
       dataList: [],
       pickerOptions: {
         disabledDate(time) {
@@ -496,6 +515,7 @@
       bingshiall: [],
       // 鐤剧梾瀛楀吀琛ㄦ牸鏁版嵁
       icdList: [],
+      rulesList: [],
       // 琛ㄥ崟鏍¢獙
       rules: {
         deleted: [
@@ -545,20 +565,22 @@
   methods: {
     /** 鏌ヨ鐤剧梾瀛楀吀鍒楄〃 */
     getList() {
-      this.loading = true;
-      listIcd(this.queryParams).then((response) => {
-        this.icdList = response.rows;
-        console.log(this.icdList);
-        response.rows.forEach((item, index) => {
-          item.newID =
-            (this.queryParams.pageNum - 1) * this.queryParams.pageSize +
-            index +
-            1;
-        });
-        this.total = response.total;
-        this.loading = false;
+     listRules(this.queryParams).then((response) => {
+        this.rulesList = response.rows;
       });
     },
+    // 鎼滅储
+    getRemoteData(query) {
+      if (query) {
+        let data = {
+          bingzhong: query,
+        };
+        listRules(data).then((response) => {
+          this.rulesList = response.rows;
+        });
+      }
+    },
+
     // 鏂板琛�
     addmembers() {
       if (this.form.cusName) {

--
Gitblit v1.8.0