yuwandanmian 2 年之前
父節點
當前提交
e183cbf3c7
共有 2 個文件被更改,包括 30 次插入1 次删除
  1. 7 0
      src/views/outpatient/case/components/InfoCard.vue
  2. 23 1
      src/views/outpatient/case/index.vue

+ 7 - 0
src/views/outpatient/case/components/InfoCard.vue

@@ -1,6 +1,7 @@
 <template>
 <template>
   <el-card class="box-card">
   <el-card class="box-card">
     <el-descriptions title="" :column="1">
     <el-descriptions title="" :column="1">
+      <el-descriptions-item label="序号">{{ index+1 }}</el-descriptions-item>
       <el-descriptions-item label="医院名称">滨州医学院烟台附属医院</el-descriptions-item>
       <el-descriptions-item label="医院名称">滨州医学院烟台附属医院</el-descriptions-item>
       <el-descriptions-item label="主诉"><span v-html="item.zs"></span></el-descriptions-item>
       <el-descriptions-item label="主诉"><span v-html="item.zs"></span></el-descriptions-item>
       <el-descriptions-item label="现病史"><span v-html="item.xbs"></span></el-descriptions-item>
       <el-descriptions-item label="现病史"><span v-html="item.xbs"></span></el-descriptions-item>
@@ -30,6 +31,12 @@ export default {
       default() {
       default() {
         return {}
         return {}
       }
       }
+    },
+    index: {
+      type: Number,
+      default() {
+        return 1
+      }
     }
     }
   }
   }
 }
 }

+ 23 - 1
src/views/outpatient/case/index.vue

@@ -95,6 +95,7 @@
         
         
         <el-form-item label="" style="text-align: center;">
         <el-form-item label="" style="text-align: center;">
           <el-button type="primary" style="width: 360px;" @click="onSearch(0)">检索</el-button>
           <el-button type="primary" style="width: 360px;" @click="onSearch(0)">检索</el-button>
+          <el-button @click="onReset" style="position: absolute; right: -90px;">重置</el-button>
         </el-form-item>
         </el-form-item>
       </el-form>
       </el-form>
       <!-- 列表部分 -->
       <!-- 列表部分 -->
@@ -140,7 +141,7 @@
             </el-table-column>
             </el-table-column>
           </el-table>
           </el-table>
           <div v-if="!active">
           <div v-if="!active">
-            <InfoCard v-for="(item, index) of infoData" :key="index" :item="item" />
+            <InfoCard v-for="(item, index) of infoData" :key="index" :item="item" :index="index" />
             <el-empty v-if="!infoData.length" description="暂无数据"></el-empty>
             <el-empty v-if="!infoData.length" description="暂无数据"></el-empty>
           </div>
           </div>
           <!-- 分页 -->
           <!-- 分页 -->
@@ -289,6 +290,27 @@ import { dateFormat } from '@/utils/index'
         this.paginationData.currentPage = 1;
         this.paginationData.currentPage = 1;
         this.getList(1);
         this.getList(1);
       },
       },
+      // 重置
+      onReset() {
+        this.$set(this, 'form', {
+          start_nl: undefined,
+          end_nl: undefined,
+          start_time: '',
+          end_time: '',
+          field: [
+            {
+              select_type: '',
+              key: 'BLNR_TXT',
+              value: '',
+              lock: false
+            }
+          ]}
+        )
+        this.resultSearch = 0,
+        this.searchNum = 0
+        this.paginationData.currentPage = 1;
+        this.getList(0);
+      },
       funDel(i) {
       funDel(i) {
         const index = i;
         const index = i;
         if (index == 0) {
         if (index == 0) {