Browse Source

患者质控统计

XMLWAN 4 years ago
parent
commit
58b4aa38b1

+ 28 - 4
src/xt_pages/qcd/patientComplianceDetails.vue View File

16
         <el-container>
16
         <el-container>
17
           <div style="width:150px">
17
           <div style="width:150px">
18
             <div class="tableTitle">患者列表</div>
18
             <div class="tableTitle">患者列表</div>
19
-            <el-table :data="tableData" border style="width: 100%;" height="500">
20
-              <el-table-column prop="date" label="日期" width="70"></el-table-column>
21
-              <el-table-column prop="name" label="姓名" width="80"></el-table-column>
19
+            <el-table :data="patientsData" border style="width: 100%;" height="500">
20
+              <el-table-column prop="name" label="透析号" width="80">
21
+                 <template slot-scope="scope">
22
+                    {{scope.row.dialysis_no}}
23
+                 </template>
24
+              </el-table-column>
25
+              <el-table-column prop="date" label="透析号" width="70">
26
+                 <template slot-scope="scope">
27
+                    {{scope.row.name }}
28
+                 </template>
29
+              </el-table-column>
22
             </el-table>
30
             </el-table>
23
           </div>
31
           </div>
24
           <div class="containerRight" style="flex:1;overflow: hidden">
32
           <div class="containerRight" style="flex:1;overflow: hidden">
97
 import BreadCrumb from "@/xt_pages/components/bread-crumb";
105
 import BreadCrumb from "@/xt_pages/components/bread-crumb";
98
 import LineChart from "../qcd/components/LineChart";
106
 import LineChart from "../qcd/components/LineChart";
99
 import { uParseTime } from "@/utils/tools";
107
 import { uParseTime } from "@/utils/tools";
100
-export default {
108
+import { getCurrentOrgPatients } from "@/api/common/common"
109
+export default { 
101
   components: {
110
   components: {
102
     LineChart,
111
     LineChart,
103
     BreadCrumb
112
     BreadCrumb
108
         { path: false, name: "科室质控" },
117
         { path: false, name: "科室质控" },
109
         { path: false, name: "患者达标详情" }
118
         { path: false, name: "患者达标详情" }
110
       ],
119
       ],
120
+      patientsData:[],
111
       tableData: [
121
       tableData: [
112
         {
122
         {
113
           date: "2016",
123
           date: "2016",
279
     getTime(time) {
289
     getTime(time) {
280
       return uParseTime(time, "{y}-{m}-{d}");
290
       return uParseTime(time, "{y}-{m}-{d}");
281
     },
291
     },
292
+   getCurrentOrgPatients(){
293
+      getCurrentOrgPatients().then(response=>{
294
+          if(response.data.state == 1){
295
+            var patients = response.data.data.patients
296
+            console.log("patients",patients)
297
+            this.patientsData = patients
298
+          }
299
+      })
300
+    },
301
+  },
302
+
303
+   created(){
304
+     //获取该机构下的所有患者
305
+     this.getCurrentOrgPatients()
282
   }
306
   }
283
 };
307
 };
284
 </script>
308
 </script>

+ 1 - 1
src/xt_pages/qcd/patientControlAnalysis.vue View File

393
               this.tableData.push({ name: key, data: dd[key]});
393
               this.tableData.push({ name: key, data: dd[key]});
394
              }
394
              }
395
 
395
 
396
-           
396
+
397
             let projectArr = []
397
             let projectArr = []
398
             this.newArr.map(item => {
398
             this.newArr.map(item => {
399
               projectArr.push(item.item_name)
399
               projectArr.push(item.item_name)