Browse Source

Merge remote-tracking branch 'origin/superman' into superman

xiaoming_global 6 years ago
parent
commit
125626689d

+ 47 - 8
package-lock.json View File

2014
       "integrity": "sha512-j38EvO5+LHX84jlo6h4UzmOwi0UgW61WRyPtJz4qaadK5eY3BTS5TY/S1Stc3Uk2lIM6TPevAlULiEJwie860g==",
2014
       "integrity": "sha512-j38EvO5+LHX84jlo6h4UzmOwi0UgW61WRyPtJz4qaadK5eY3BTS5TY/S1Stc3Uk2lIM6TPevAlULiEJwie860g==",
2015
       "dev": true
2015
       "dev": true
2016
     },
2016
     },
2017
+    "ci-info": {
2018
+      "version": "1.6.0",
2019
+      "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-1.6.0.tgz",
2020
+      "integrity": "sha512-vsGdkwSCDpWmP80ncATX7iea5DWQemg1UgCW5J8tqjU3lYw4FBYuj89J0CTVomA7BEfvSZd84GmHko+MxFQU2A==",
2021
+      "dev": true
2022
+    },
2017
     "cipher-base": {
2023
     "cipher-base": {
2018
       "version": "1.0.4",
2024
       "version": "1.0.4",
2019
       "resolved": "https://registry.npmjs.org/cipher-base/-/cipher-base-1.0.4.tgz",
2025
       "resolved": "https://registry.npmjs.org/cipher-base/-/cipher-base-1.0.4.tgz",
5210
       }
5216
       }
5211
     },
5217
     },
5212
     "fstream": {
5218
     "fstream": {
5213
-      "version": "1.0.12",
5214
-      "resolved": "https://registry.npmjs.org/fstream/-/fstream-1.0.12.tgz",
5215
-      "integrity": "sha512-WvJ193OHa0GHPEL+AycEJgxvBEwyfRkN1vhjca23OaPVMCaLCXTd5qAu82AjTcgP1UJmytkOKb63Ypde7raDIg==",
5219
+      "version": "1.0.11",
5220
+      "resolved": "https://registry.npmjs.org/fstream/-/fstream-1.0.11.tgz",
5221
+      "integrity": "sha1-XB+x8RdHcRTwYyoOtLcbPLD9MXE=",
5216
       "dev": true,
5222
       "dev": true,
5217
       "requires": {
5223
       "requires": {
5218
         "graceful-fs": "^4.1.2",
5224
         "graceful-fs": "^4.1.2",
5931
       "integrity": "sha1-7AbBDgo0wPL68Zn3/X/Hj//QPHM=",
5937
       "integrity": "sha1-7AbBDgo0wPL68Zn3/X/Hj//QPHM=",
5932
       "dev": true
5938
       "dev": true
5933
     },
5939
     },
5940
+    "husky": {
5941
+      "version": "0.14.3",
5942
+      "resolved": "https://registry.npmjs.org/husky/-/husky-0.14.3.tgz",
5943
+      "integrity": "sha512-e21wivqHpstpoiWA/Yi8eFti8E+sQDSS53cpJsPptPs295QTOQR0ZwnHo2TXy1XOpZFD9rPOd3NpmqTK6uMLJA==",
5944
+      "dev": true,
5945
+      "requires": {
5946
+        "is-ci": "^1.0.10",
5947
+        "normalize-path": "^1.0.0",
5948
+        "strip-indent": "^2.0.0"
5949
+      }
5950
+    },
5934
     "iconv-lite": {
5951
     "iconv-lite": {
5935
       "version": "0.4.24",
5952
       "version": "0.4.24",
5936
       "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz",
5953
       "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz",
6192
       "integrity": "sha512-r5p9sxJjYnArLjObpjA4xu5EKI3CuKHkJXMhT7kwbpUyIFD1n5PMAsoPvWnvtZiNz7LjkYDRZhd7FlI0eMijEA==",
6209
       "integrity": "sha512-r5p9sxJjYnArLjObpjA4xu5EKI3CuKHkJXMhT7kwbpUyIFD1n5PMAsoPvWnvtZiNz7LjkYDRZhd7FlI0eMijEA==",
6193
       "dev": true
6210
       "dev": true
6194
     },
6211
     },
6212
+    "is-ci": {
6213
+      "version": "1.2.1",
6214
+      "resolved": "https://registry.npmjs.org/is-ci/-/is-ci-1.2.1.tgz",
6215
+      "integrity": "sha512-s6tfsaQaQi3JNciBH6shVqEDvhGut0SUXr31ag8Pd8BBbVVlcGfWhpPmEOoM6RJ5TFhbypvf5yyRw/VXW1IiWg==",
6216
+      "dev": true,
6217
+      "requires": {
6218
+        "ci-info": "^1.5.0"
6219
+      }
6220
+    },
6195
     "is-data-descriptor": {
6221
     "is-data-descriptor": {
6196
       "version": "0.1.4",
6222
       "version": "0.1.4",
6197
       "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz",
6223
       "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz",
6512
     },
6538
     },
6513
     "js-yaml": {
6539
     "js-yaml": {
6514
       "version": "3.7.0",
6540
       "version": "3.7.0",
6515
-      "resolved": "",
6541
+      "resolved": "https://registry.npm.taobao.org/js-yaml/download/js-yaml-3.7.0.tgz",
6542
+      "integrity": "sha1-XJZ93YN6m/3KXy3oQlOr6KHAO4A=",
6516
       "dev": true,
6543
       "dev": true,
6517
       "requires": {
6544
       "requires": {
6518
         "argparse": "^1.0.7",
6545
         "argparse": "^1.0.7",
7785
         "validate-npm-package-license": "^3.0.1"
7812
         "validate-npm-package-license": "^3.0.1"
7786
       }
7813
       }
7787
     },
7814
     },
7815
+    "normalize-path": {
7816
+      "version": "1.0.0",
7817
+      "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-1.0.0.tgz",
7818
+      "integrity": "sha1-MtDkcvkf80VwHBWoMRAY07CpA3k=",
7819
+      "dev": true
7820
+    },
7788
     "normalize-range": {
7821
     "normalize-range": {
7789
       "version": "0.1.2",
7822
       "version": "0.1.2",
7790
       "resolved": "https://registry.npmjs.org/normalize-range/-/normalize-range-0.1.2.tgz",
7823
       "resolved": "https://registry.npmjs.org/normalize-range/-/normalize-range-0.1.2.tgz",
12992
       "resolved": "https://registry.npmjs.org/strip-eof/-/strip-eof-1.0.0.tgz",
13025
       "resolved": "https://registry.npmjs.org/strip-eof/-/strip-eof-1.0.0.tgz",
12993
       "integrity": "sha1-u0P/VZim6wXYm1n80SnJgzE2Br8="
13026
       "integrity": "sha1-u0P/VZim6wXYm1n80SnJgzE2Br8="
12994
     },
13027
     },
13028
+    "strip-indent": {
13029
+      "version": "2.0.0",
13030
+      "resolved": "https://registry.npmjs.org/strip-indent/-/strip-indent-2.0.0.tgz",
13031
+      "integrity": "sha1-XvjbKV0B5u1sv3qrlpmNeCJSe2g=",
13032
+      "dev": true
13033
+    },
12995
     "strip-json-comments": {
13034
     "strip-json-comments": {
12996
       "version": "2.0.1",
13035
       "version": "2.0.1",
12997
       "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz",
13036
       "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz",
13306
       "dev": true
13345
       "dev": true
13307
     },
13346
     },
13308
     "tar": {
13347
     "tar": {
13309
-      "version": "2.2.2",
13310
-      "resolved": "https://registry.npmjs.org/tar/-/tar-2.2.2.tgz",
13311
-      "integrity": "sha512-FCEhQ/4rE1zYv9rYXJw/msRqsnmlje5jHP6huWeBZ704jUTy02c5AZyWujpMR1ax6mVw9NyJMfuK2CMDWVIfgA==",
13348
+      "version": "2.2.1",
13349
+      "resolved": "https://registry.npmjs.org/tar/-/tar-2.2.1.tgz",
13350
+      "integrity": "sha1-jk0qJWwOIYXGsYrWlK7JaLg8sdE=",
13312
       "dev": true,
13351
       "dev": true,
13313
       "requires": {
13352
       "requires": {
13314
         "block-stream": "*",
13353
         "block-stream": "*",
13315
-        "fstream": "^1.0.12",
13354
+        "fstream": "^1.0.2",
13316
         "inherits": "2"
13355
         "inherits": "2"
13317
       }
13356
       }
13318
     },
13357
     },

+ 1 - 0
package.json View File

94
     "file-loader": "1.1.5",
94
     "file-loader": "1.1.5",
95
     "friendly-errors-webpack-plugin": "1.6.1",
95
     "friendly-errors-webpack-plugin": "1.6.1",
96
     "html-webpack-plugin": "2.30.1",
96
     "html-webpack-plugin": "2.30.1",
97
+    "husky": "0.14.3",
97
     "lint-staged": "7.2.0",
98
     "lint-staged": "7.2.0",
98
     "node-notifier": "5.1.2",
99
     "node-notifier": "5.1.2",
99
     "node-sass": "^4.7.2",
100
     "node-sass": "^4.7.2",

+ 1 - 1
src/api/qcd.js View File

41
     method: 'get',
41
     method: 'get',
42
     params: params
42
     params: params
43
   })
43
   })
44
-}
44
+}

+ 4 - 4
src/views/layout/components/Navbar.vue View File

41
           <span ><i class="icon iconfont icon-manbing-xuanzhong"></i> 慢病管理</span>
41
           <span ><i class="icon iconfont icon-manbing-xuanzhong"></i> 慢病管理</span>
42
         </a>
42
         </a>
43
       </div>
43
       </div>
44
-      
44
+
45
       <div class="system-nav-menu">
45
       <div class="system-nav-menu">
46
         <a href="http://sso.kuyicloud.com/org/app/create">
46
         <a href="http://sso.kuyicloud.com/org/app/create">
47
         <!-- <a href="http://testsso.sgjyun.com/org/app/create"> -->
47
         <!-- <a href="http://testsso.sgjyun.com/org/app/create"> -->
55
         <div class="avatar-wrapper">
55
         <div class="avatar-wrapper">
56
           <img class="user-avatar" :src="avater">
56
           <img class="user-avatar" :src="avater">
57
           <span class="user-title">{{ this.$store.getters.xt_user.user.user_name }}</span>
57
           <span class="user-title">{{ this.$store.getters.xt_user.user.user_name }}</span>
58
-          <i class="el-icon-caret-bottom"></i>  
58
+          <i class="el-icon-caret-bottom"></i>
59
         </div>
59
         </div>
60
         <el-dropdown-menu slot="dropdown">
60
         <el-dropdown-menu slot="dropdown">
61
           <el-dropdown-item>
61
           <el-dropdown-item>
72
 
72
 
73
       <!-- <screenfull class="screenfull right-menu-item"></screenfull> -->
73
       <!-- <screenfull class="screenfull right-menu-item"></screenfull> -->
74
       <modify-user-info-dialog ref="modify_user_info_dialog"></modify-user-info-dialog>
74
       <modify-user-info-dialog ref="modify_user_info_dialog"></modify-user-info-dialog>
75
-      
75
+
76
     </div>
76
     </div>
77
   </el-menu>
77
   </el-menu>
78
-</div>  
78
+</div>
79
 </template>
79
 </template>
80
 
80
 
81
 <script>
81
 <script>

+ 23 - 3
src/xt_pages/components/bread-crumb.vue View File

1
 <template>
1
 <template>
2
     <el-breadcrumb separator="/">
2
     <el-breadcrumb separator="/">
3
     <el-breadcrumb-item :to="{ path: '/' }">首页</el-breadcrumb-item>
3
     <el-breadcrumb-item :to="{ path: '/' }">首页</el-breadcrumb-item>
4
-    <el-breadcrumb-item><a href="/">活动管理</a></el-breadcrumb-item>
4
+    <template v-for="(crumb, index) in crumbsList" >
5
+      <el-breadcrumb-item v-if="crumb.path" :to="{ path: crumb.path }" :key="index">{{crumb.name}}</el-breadcrumb-item>
6
+      <el-breadcrumb-item v-else :key="index">{{crumb.name}}</el-breadcrumb-item>
7
+    </template>
8
+    <!-- <el-breadcrumb-item><a href="/">活动管理</a></el-breadcrumb-item>
5
     <el-breadcrumb-item>活动列表</el-breadcrumb-item>
9
     <el-breadcrumb-item>活动列表</el-breadcrumb-item>
6
-    <el-breadcrumb-item>活动详情</el-breadcrumb-item>
10
+    <el-breadcrumb-item>活动详情</el-breadcrumb-item> -->
7
     </el-breadcrumb>
11
     </el-breadcrumb>
8
 </template>
12
 </template>
9
 
13
 
12
 
16
 
13
 export default {
17
 export default {
14
   name: "BreadCrumb",
18
   name: "BreadCrumb",
19
+  props:{
20
+    crumbs:{
21
+        type:Array,
22
+    }
23
+  },
24
+  data(){
25
+      return{
26
+          crumbsList:[
27
+            {path:'/', name:'首页'}
28
+          ],
29
+      }
30
+  }, 
15
   components: {
31
   components: {
16
     // BreadCrumb
32
     // BreadCrumb
17
-  }
33
+  },
34
+  
35
+  created(){
36
+      this.crumbsList = this.crumbs;
37
+  },
18
 };
38
 };
19
 </script>
39
 </script>
20
 
40
 

+ 223 - 248
src/xt_pages/qcd/dialysisTotal.vue View File

1
 <template>
1
 <template>
2
-  <div class="app-container">
3
-    <div class="cell">
4
-      <label class="title">
5
-        <span class="name">日期查询</span> :
6
-      </label>
7
-      <el-date-picker
8
-        v-model="listQuery.start_time"
9
-        prefix-icon="el-icon-date"
10
-        @change="changeTime"
11
-        :editable="false"
12
-        style="width: 196px;"
13
-        type="date"
14
-        placeholder="选择日期时间"
15
-        align="right"
16
-        :picker-options="pickerOptions"
17
-        format="yyyy-MM-dd"
18
-        value-format="yyyy-MM-dd"
19
-      ></el-date-picker>
20
-      <span class>-</span>
21
-      <el-date-picker
22
-        v-model="listQuery.end_time"
23
-        prefix-icon="el-icon-date"
24
-        @change="changeTime"
25
-        :editable="false"
26
-        style="width: 196px;"
27
-        type="date"
28
-        placeholder="选择日期时间"
29
-        align="right"
30
-        :picker-options="pickerOptions"
31
-        format="yyyy-MM-dd"
32
-        value-format="yyyy-MM-dd"
33
-      ></el-date-picker>
2
+ <div class="main-contain">
3
+    <div class="position">
4
+      <bread-crumb :crumbs='crumbs'></bread-crumb>
34
     </div>
5
     </div>
35
-    <div class="cell clearfix">
36
-      <label class="title">
37
-        <span class="name">统计方式</span> :
38
-      </label>
39
-      <div class="time">
40
-        <ul class>
41
-          <li
42
-            :class="item.value==statisticalMethod?'active':''"
43
-            @click="selectStatisticalMethod(item.value)"
44
-            v-for="item in statisticalMethods"
45
-            :key="item.value"
46
-          >{{item.label}}</li>
47
-        </ul>
6
+    <div class="app-container">
7
+      <div class="cell">
8
+        <label class="title">
9
+          <span class="name">日期查询</span> :
10
+        </label>
11
+        <el-date-picker
12
+          v-model="listQuery.start_time"
13
+          prefix-icon="el-icon-date"
14
+          @change="changeTime"
15
+          :editable="false"
16
+          style="width: 196px;"
17
+          type="date"
18
+          placeholder="选择日期时间"
19
+          align="right"
20
+          format="yyyy-MM-dd"
21
+          value-format="yyyy-MM-dd"
22
+        ></el-date-picker>
23
+        <span class>-</span>
24
+        <el-date-picker
25
+          v-model="listQuery.end_time"
26
+          prefix-icon="el-icon-date"
27
+          @change="changeTime"
28
+          :editable="false"
29
+          style="width: 196px;"
30
+          type="date"
31
+          placeholder="选择日期时间"
32
+          align="right"
33
+          format="yyyy-MM-dd"
34
+          value-format="yyyy-MM-dd"
35
+        ></el-date-picker>
48
       </div>
36
       </div>
49
-    </div>
50
-    <div class="cell clearfix">
51
-      <label class="title">
52
-        <span class="name">转归状态</span> :
53
-      </label>
54
-      <div class="time">
55
-        <ul class>
56
-          <li
57
-            :class="item.lapseto==lapsetoType?'active':''"
58
-            @click="selectLapseTo( item.lapseto)"
59
-            v-for="item in lapsetoState"
60
-            :key="item.value"
61
-          >{{item.label}}</li>
62
-        </ul>
37
+      <div class="cell clearfix">
38
+        <label class="title">
39
+          <span class="name">统计方式</span> :
40
+        </label>
41
+        <div class="time">
42
+          <ul class>
43
+            <li
44
+              :class="item.value==statisticalMethod?'active':''"
45
+              @click="selectStatisticalMethod(item.value)"
46
+              v-for="item in statisticalMethods"
47
+              :key="item.value"
48
+            >{{item.label}}</li>
49
+          </ul>
50
+        </div>
51
+      </div>
52
+      <div class="cell clearfix">
53
+        <label class="title">
54
+          <span class="name">转归状态</span> :
55
+        </label>
56
+        <div class="time">
57
+          <ul class>
58
+            <li
59
+              :class="item.lapseto==lapsetoType?'active':''"
60
+              @click="selectLapseTo( item.lapseto)"
61
+              v-for="item in lapsetoState"
62
+              :key="item.value"
63
+            >{{item.label}}</li>
64
+          </ul>
65
+        </div>
63
       </div>
66
       </div>
64
-    </div>
65
 
67
 
66
-    <div class="cell">
67
-      <label class="title">
68
-        <span class="name">透析模式</span> :
69
-      </label>
70
-      <el-select v-model="listQuery.mode_id" placeholder="请选择" @change="changeModel()">
71
-        <el-option label="全部" value></el-option>
72
-        <el-option v-for="item in modeOptions" :key="item.id" :label="item.name" :value="item.id"></el-option>
73
-      </el-select>
74
-    </div>
68
+      <div class="cell">
69
+        <label class="title">
70
+          <span class="name">透析模式</span> :
71
+        </label>
72
+        <el-select v-model="listQuery.mode_id" placeholder="请选择" @change="changeModel()">
73
+          <el-option label="全部" value></el-option>
74
+          <el-option v-for="item in modeOptions" :key="item.id" :label="item.name" :value="item.id"></el-option>
75
+        </el-select>
76
+      </div>
75
 
77
 
76
-    <h4 class="hui">统计图</h4>
77
-    <hr class="huixiao">
78
-    <el-row :gutter="32">
79
-      <el-col :xs="24" :sm="24" :lg="24">
80
-        <div class="chart-wrapper">
81
-            <bar-chart :title="totitle + batotal +'人次'" :options="modesData" />
82
-        </div>
83
-      </el-col>
84
-    </el-row>
78
+      <h4 class="hui">统计图</h4>
79
+      <hr class="huixiao">
80
+      <el-row :gutter="32">
81
+        <el-col :xs="24" :sm="24" :lg="24">
82
+          <div class="chart-wrapper">
83
+              <bar-chart :title="totitle + batotal +'人次'" :options="modesData" />
84
+          </div>
85
+        </el-col>
86
+      </el-row>
85
 
87
 
86
-    <h4 class="hui">统计表</h4>
87
-    <hr class="huixiao">
88
-    <el-table
89
-      ref="multipleTable"
90
-      :data="tableData"
91
-      border
92
-      fit
93
-      highlight-current-row
94
-      style="width: 100%;margin-top: 10px;"
95
-    >
96
-      <el-table-column label="日期" min-width="80" property="date" align="center"></el-table-column>
97
-      <el-table-column
98
-        :label="modeOptions[1].name"
99
-        v-if="listQuery.mode_id==1||listQuery.mode_id==''"
100
-        property="data[1].number"
101
-        align="center"
102
-      ></el-table-column>
103
-      <el-table-column
104
-        :label="modeOptions[2].name"
105
-        v-if="listQuery.mode_id==2||listQuery.mode_id==''"
106
-        property="data[2].number"
107
-        align="center"
108
-      ></el-table-column>
109
-      <el-table-column
110
-        :label="modeOptions[3].name"
111
-        v-if="listQuery.mode_id==3||listQuery.mode_id==''"
112
-        property="data[3].number"
113
-        align="center"
114
-      ></el-table-column>
115
-      <el-table-column
116
-        :label="modeOptions[4].name"
117
-        v-if="listQuery.mode_id==4||listQuery.mode_id==''"
118
-        property="data[4].number"
119
-        align="center"
120
-      ></el-table-column>
121
-      <el-table-column
122
-        :label="modeOptions[5].name"
123
-        v-if="listQuery.mode_id==5||listQuery.mode_id==''"
124
-        property="data[5].number"
125
-        align="center"
126
-      ></el-table-column>
127
-      <el-table-column
128
-        :label="modeOptions[6].name"
129
-        v-if="listQuery.mode_id==6||listQuery.mode_id==''"
130
-        property="data[6].number"
131
-        align="center"
132
-      ></el-table-column>
133
-      <el-table-column
134
-        :label="modeOptions[7].name"
135
-        v-if="listQuery.mode_id==7||listQuery.mode_id==''"
136
-        property="data[7].number"
137
-        align="center"
138
-      ></el-table-column>
139
-      <el-table-column
140
-        :label="modeOptions[8].name"
141
-        v-if="listQuery.mode_id==8||listQuery.mode_id==''"
142
-        property="data[8].number"
143
-        align="center"
144
-      ></el-table-column>
145
-      <el-table-column
146
-        :label="modeOptions[9].name"
147
-        v-if="listQuery.mode_id==9||listQuery.mode_id==''"
148
-        property="data[9].number"
149
-        align="center"
150
-      ></el-table-column>
151
-      <el-table-column
152
-        :label="modeOptions[10].name"
153
-        v-if="listQuery.mode_id==10||listQuery.mode_id==''"
154
-        property="data[10].number"
155
-        align="center"
156
-      ></el-table-column>
157
-      <el-table-column
158
-        :label="modeOptions[11].name"
159
-        v-if="listQuery.mode_id==11||listQuery.mode_id==''"
160
-        property="data[11].number"
161
-        align="center"
162
-      ></el-table-column>
163
-      <el-table-column
164
-        :label="modeOptions[12].name"
165
-        v-if="listQuery.mode_id==12||listQuery.mode_id==''"
166
-        property="data[12].number"
167
-        align="center"
168
-      ></el-table-column>
169
-      <el-table-column
170
-        :label="modeOptions[13].name"
171
-        v-if="listQuery.mode_id==13||listQuery.mode_id==''"
172
-        property="data[13].number"
173
-        align="center"
174
-      ></el-table-column>
175
-      <el-table-column
176
-        :label="modeOptions[14].name"
177
-        v-if="listQuery.mode_id==14||listQuery.mode_id==''"
178
-        property="data[14].number"
179
-        align="center"
180
-      ></el-table-column>
181
-      <el-table-column
182
-        :label="modeOptions[15].name"
183
-        v-if="listQuery.mode_id==15||listQuery.mode_id==''"
184
-        property="data[15].number"
185
-        align="center"
186
-      ></el-table-column>
187
-      <el-table-column
188
-        :label="modeOptions[16].name"
189
-        v-if="listQuery.mode_id==16||listQuery.mode_id==''"
190
-        property="data[16].number"
191
-        align="center"
192
-      ></el-table-column>
193
-      <el-table-column
194
-        :label="modeOptions[17].name"
195
-        v-if="listQuery.mode_id==17||listQuery.mode_id==''"
196
-        property="data[17].number"
197
-        align="center"
198
-      ></el-table-column>
199
-      <el-table-column
200
-        :label="modeOptions[18].name"
201
-        v-if="listQuery.mode_id==18||listQuery.mode_id==''"
202
-        property="data[18].number"
203
-        align="center"
204
-      ></el-table-column>
205
-      <el-table-column label="总数" min-width="80" property="total" align="center"></el-table-column>
206
-    </el-table>
88
+      <h4 class="hui">统计表</h4>
89
+      <hr class="huixiao">
90
+      <el-table
91
+        ref="multipleTable"
92
+        :data="tableData"
93
+        border
94
+        fit
95
+        highlight-current-row
96
+        style="width: 100%;margin-top: 10px;"
97
+        :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)'}"
98
+      >
99
+        <el-table-column label="日期" min-width="80" property="date" align="center"></el-table-column>
100
+        <el-table-column
101
+          :label="modeOptions[1].name"
102
+          v-if="listQuery.mode_id==1||listQuery.mode_id==''"
103
+          property="data[1].number"
104
+          align="center"
105
+        ></el-table-column>
106
+        <el-table-column
107
+          :label="modeOptions[2].name"
108
+          v-if="listQuery.mode_id==2||listQuery.mode_id==''"
109
+          property="data[2].number"
110
+          align="center"
111
+        ></el-table-column>
112
+        <el-table-column
113
+          :label="modeOptions[3].name"
114
+          v-if="listQuery.mode_id==3||listQuery.mode_id==''"
115
+          property="data[3].number"
116
+          align="center"
117
+        ></el-table-column>
118
+        <el-table-column
119
+          :label="modeOptions[4].name"
120
+          v-if="listQuery.mode_id==4||listQuery.mode_id==''"
121
+          property="data[4].number"
122
+          align="center"
123
+        ></el-table-column>
124
+        <el-table-column
125
+          :label="modeOptions[5].name"
126
+          v-if="listQuery.mode_id==5||listQuery.mode_id==''"
127
+          property="data[5].number"
128
+          align="center"
129
+        ></el-table-column>
130
+        <el-table-column
131
+          :label="modeOptions[6].name"
132
+          v-if="listQuery.mode_id==6||listQuery.mode_id==''"
133
+          property="data[6].number"
134
+          align="center"
135
+        ></el-table-column>
136
+        <el-table-column
137
+          :label="modeOptions[7].name"
138
+          v-if="listQuery.mode_id==7||listQuery.mode_id==''"
139
+          property="data[7].number"
140
+          align="center"
141
+        ></el-table-column>
142
+        <el-table-column
143
+          :label="modeOptions[8].name"
144
+          v-if="listQuery.mode_id==8||listQuery.mode_id==''"
145
+          property="data[8].number"
146
+          align="center"
147
+        ></el-table-column>
148
+        <el-table-column
149
+          :label="modeOptions[9].name"
150
+          v-if="listQuery.mode_id==9||listQuery.mode_id==''"
151
+          property="data[9].number"
152
+          align="center"
153
+        ></el-table-column>
154
+        <el-table-column
155
+          :label="modeOptions[10].name"
156
+          v-if="listQuery.mode_id==10||listQuery.mode_id==''"
157
+          property="data[10].number"
158
+          align="center"
159
+        ></el-table-column>
160
+        <el-table-column
161
+          :label="modeOptions[11].name"
162
+          v-if="listQuery.mode_id==11||listQuery.mode_id==''"
163
+          property="data[11].number"
164
+          align="center"
165
+        ></el-table-column>
166
+        <el-table-column
167
+          :label="modeOptions[12].name"
168
+          v-if="listQuery.mode_id==12||listQuery.mode_id==''"
169
+          property="data[12].number"
170
+          align="center"
171
+        ></el-table-column>
172
+        <el-table-column
173
+          :label="modeOptions[13].name"
174
+          v-if="listQuery.mode_id==13||listQuery.mode_id==''"
175
+          property="data[13].number"
176
+          align="center"
177
+        ></el-table-column>
178
+        <el-table-column
179
+          :label="modeOptions[14].name"
180
+          v-if="listQuery.mode_id==14||listQuery.mode_id==''"
181
+          property="data[14].number"
182
+          align="center"
183
+        ></el-table-column>
184
+        <el-table-column
185
+          :label="modeOptions[15].name"
186
+          v-if="listQuery.mode_id==15||listQuery.mode_id==''"
187
+          property="data[15].number"
188
+          align="center"
189
+        ></el-table-column>
190
+        <el-table-column
191
+          :label="modeOptions[16].name"
192
+          v-if="listQuery.mode_id==16||listQuery.mode_id==''"
193
+          property="data[16].number"
194
+          align="center"
195
+        ></el-table-column>
196
+        <el-table-column
197
+          :label="modeOptions[17].name"
198
+          v-if="listQuery.mode_id==17||listQuery.mode_id==''"
199
+          property="data[17].number"
200
+          align="center"
201
+        ></el-table-column>
202
+        <el-table-column
203
+          :label="modeOptions[18].name"
204
+          v-if="listQuery.mode_id==18||listQuery.mode_id==''"
205
+          property="data[18].number"
206
+          align="center"
207
+        ></el-table-column>
208
+        <el-table-column label="总数" min-width="80" property="total" align="center"></el-table-column>
209
+      </el-table>
207
 
210
 
208
-    <!-- <pagi-nation title="分页"></pagi-nation> -->
211
+      <!-- <pagi-nation title="分页"></pagi-nation> -->
209
 
212
 
210
-    <el-pagination
211
-      @size-change="handleSizeChange"
212
-      @current-change="handleCurrentChange"
213
-      :current-page="listQuery.pate"
214
-      :page-sizes="[10, 20, 50, 100]"
215
-      :page-size="10"
216
-      background
217
-      style="margin-top:20px;"
218
-      layout="total, sizes, prev, pager, next, jumper"
219
-      :total="total"
220
-    ></el-pagination>
213
+      <el-pagination
214
+        align="right"
215
+        @size-change="handleSizeChange"
216
+        @current-change="handleCurrentChange"
217
+        :current-page="listQuery.pate"
218
+        :page-sizes="[10, 20, 50, 100]"
219
+        :page-size="10"
220
+        background
221
+        style="margin-top:20px;"
222
+        layout="total, sizes, prev, pager, next, jumper"
223
+        :total="total"
224
+      ></el-pagination>
225
+    </div>
221
   </div>
226
   </div>
222
 </template>
227
 </template>
223
 
228
 
225
 <script>
230
 <script>
226
 import { getdialysistotaldata } from "@/api/qcd";
231
 import { getdialysistotaldata } from "@/api/qcd";
227
 import BarChart from "./components/BarChart";
232
 import BarChart from "./components/BarChart";
233
+import BreadCrumb from "@/xt_pages/components/bread-crumb";
228
 export default {
234
 export default {
229
   name: "dialysisTotal",
235
   name: "dialysisTotal",
230
   data() {
236
   data() {
231
     return {
237
     return {
238
+      crumbs:[
239
+        {path:false, name:'科室质控'},
240
+        {path:'/qcd/dialysistotal', name:'透析总量'},
241
+      ],
232
       total: 0,
242
       total: 0,
233
       totitle:'全部',
243
       totitle:'全部',
234
       batotal:0,
244
       batotal:0,
259
         { value: 1, label: "转出", source: 0, lapseto: 2 },
269
         { value: 1, label: "转出", source: 0, lapseto: 2 },
260
         { value: 2, label: "留治", source: 0, lapseto: 1 }
270
         { value: 2, label: "留治", source: 0, lapseto: 1 }
261
       ],
271
       ],
262
-      pickerOptions: {
263
-        shortcuts: [
264
-          {
265
-            text: "今天",
266
-            onClick(picker) {
267
-              picker.$emit("pick", new Date());
268
-            }
269
-          },
270
-          {
271
-            text: "昨天",
272
-            onClick(picker) {
273
-              const date = new Date();
274
-              date.setTime(date.getTime() - 3600 * 1000 * 24);
275
-              picker.$emit("pick", date);
276
-            }
277
-          },
278
-          {
279
-            text: "一周前",
280
-            onClick(picker) {
281
-              const date = new Date();
282
-              date.setTime(date.getTime() - 3600 * 1000 * 24 * 7);
283
-              picker.$emit("pick", date);
284
-            }
285
-          },
286
-          {
287
-            text: "清空",
288
-            onClick(picker) {
289
-              picker.$emit("pick");
290
-            }
291
-          }
292
-        ]
293
-      }
294
     };
272
     };
295
   },
273
   },
296
   created() {
274
   created() {
417
     }
395
     }
418
   },
396
   },
419
   components: {
397
   components: {
420
-    BarChart
398
+    BarChart,
399
+    BreadCrumb
421
   }
400
   }
422
 };
401
 };
423
 </script>
402
 </script>
425
 <style rel="stylesheet/scss" lang="scss" scoped>
404
 <style rel="stylesheet/scss" lang="scss" scoped>
426
 .app-container {
405
 .app-container {
427
 //   margin: 20px;
406
 //   margin: 20px;
428
-    margin-bottom: 50px;
429
   font-size: 15px;
407
   font-size: 15px;
430
   .filter-container {
408
   .filter-container {
431
     padding-bottom: 5px;
409
     padding-bottom: 5px;
437
   .huixiao {
415
   .huixiao {
438
     border: solid 1px #ebeef5;
416
     border: solid 1px #ebeef5;
439
   }
417
   }
440
-  .el-pagination {
441
-    float: right !important;
442
-  }
443
   .search-component {
418
   .search-component {
444
     width: 500px;
419
     width: 500px;
445
     .searchBox {
420
     .searchBox {

+ 142 - 166
src/xt_pages/qcd/outcomeIndicators/control.vue View File

1
 <template>
1
 <template>
2
-  <div class="app-container">
3
-    <el-tabs v-model="tabActiveName" @tab-click="handleTabClick">
4
-        <el-tab-pane label="指标控制" name="control"></el-tab-pane>
5
-        <el-tab-pane label="指标查询" name="query"></el-tab-pane>
6
-    </el-tabs>
7
-
8
-    <div class="cell">
9
-      <label class="title">
10
-        <span class="name">日期查询</span> :
11
-      </label>
12
-      <el-date-picker
13
-        v-model="listQuery.start_time"
14
-        prefix-icon="el-icon-date"
15
-        @change="changeTime"
16
-        :editable="false"
17
-        style="width: 196px;"
18
-        type="date"
19
-        placeholder="选择日期时间"
20
-        align="right"
21
-        :picker-options="pickerOptions"
22
-        format="yyyy-MM-dd"
23
-        value-format="yyyy-MM-dd"
24
-      ></el-date-picker>
25
-      <span class>-</span>
26
-      <el-date-picker
27
-        v-model="listQuery.end_time"
28
-        prefix-icon="el-icon-date"
29
-        @change="changeTime"
30
-        :editable="false"
31
-        style="width: 196px;"
32
-        type="date"
33
-        placeholder="选择日期时间"
34
-        align="right"
35
-        :picker-options="pickerOptions"
36
-        format="yyyy-MM-dd"
37
-        value-format="yyyy-MM-dd"
38
-      ></el-date-picker>
2
+ <div class="main-contain">
3
+    <div class="position">
4
+      <bread-crumb :crumbs='crumbs'></bread-crumb>
39
     </div>
5
     </div>
40
-    <div class="cell clearfix">
41
-      <label class="title">
42
-        <span class="name">透析龄</span> :
43
-      </label>
44
-      <div class="time">
45
-        <ul class>
46
-          <li
47
-            :class="item.value==dialysisAge?'active':''"
48
-            @click="selectdialysisAges(item.value)"
49
-            v-for="item in dialysisAgeOptions"
50
-            :key="item.value"
51
-          >{{item.label}}</li>
52
-        </ul>
6
+    <div class="app-container">
7
+      <el-tabs v-model="tabActiveName" @tab-click="handleTabClick">
8
+          <el-tab-pane label="指标控制" name="control"></el-tab-pane>
9
+          <el-tab-pane label="指标查询" name="query"></el-tab-pane>
10
+      </el-tabs>
11
+
12
+      <div class="cell">
13
+        <label class="title">
14
+          <span class="name">日期查询</span> :
15
+        </label>
16
+        <el-date-picker
17
+          v-model="listQuery.start_time"
18
+          prefix-icon="el-icon-date"
19
+          @change="changeTime"
20
+          :editable="false"
21
+          style="width: 196px;"
22
+          type="date"
23
+          placeholder="选择日期时间"
24
+          align="right"
25
+          format="yyyy-MM-dd"
26
+          value-format="yyyy-MM-dd"
27
+        ></el-date-picker>
28
+        <span class>-</span>
29
+        <el-date-picker
30
+          v-model="listQuery.end_time"
31
+          prefix-icon="el-icon-date"
32
+          @change="changeTime"
33
+          :editable="false"
34
+          style="width: 196px;"
35
+          type="date"
36
+          placeholder="选择日期时间"
37
+          align="right"
38
+          format="yyyy-MM-dd"
39
+          value-format="yyyy-MM-dd"
40
+        ></el-date-picker>
53
       </div>
41
       </div>
54
-    </div>
55
-    <div class="cell clearfix">
56
-      <label class="title">
57
-        <span class="name">转归状态</span> :
58
-      </label>
59
-      <div class="time">
60
-        <ul class>
61
-          <li
62
-            :class="item.lapseto==lapsetoType?'active':''"
63
-            @click="selectLapseTo( item.lapseto)"
64
-            v-for="item in lapsetoState"
65
-            :key="item.value"
66
-          >{{item.label}}</li>
67
-        </ul>
42
+      <div class="cell clearfix">
43
+        <label class="title">
44
+          <span class="name">透析龄</span> :
45
+        </label>
46
+        <div class="time">
47
+          <ul class>
48
+            <li
49
+              :class="item.value==dialysisAge?'active':''"
50
+              @click="selectdialysisAges(item.value)"
51
+              v-for="item in dialysisAgeOptions"
52
+              :key="item.value"
53
+            >{{item.label}}</li>
54
+          </ul>
55
+        </div>
56
+      </div>
57
+      <div class="cell clearfix">
58
+        <label class="title">
59
+          <span class="name">转归状态</span> :
60
+        </label>
61
+        <div class="time">
62
+          <ul class>
63
+            <li
64
+              :class="item.lapseto==lapsetoType?'active':''"
65
+              @click="selectLapseTo( item.lapseto)"
66
+              v-for="item in lapsetoState"
67
+              :key="item.value"
68
+            >{{item.label}}</li>
69
+          </ul>
70
+        </div>
68
       </div>
71
       </div>
69
-    </div>
70
 
72
 
71
-    <div class="cell">
72
-      <label class="title">
73
-        <span class="name">检验项目</span> :
74
-      </label>
75
-      <el-select v-model="listQuery.project_id" placeholder="请选择" @change="changeModel()">
76
-        <el-option label="全部" value=""></el-option>
77
-        <el-option v-for="item in projectOptions" :key="item.project_id" :label="item.project_name" :value="item.project_id"></el-option>
78
-      </el-select>
79
-      &nbsp;&nbsp;&nbsp;&nbsp;
80
-      <label class="title">
81
-        <span class="name">监测指标</span> :
82
-      </label>
83
-      <el-select v-model="listQuery.item_id" placeholder="请选择" @change="changeItem()">
84
-        <el-option label="全部" value=""></el-option>
85
-        <el-option v-for="item in itemOptions" :key="item.id" :label="item.item_name" :value="item.id"></el-option>
86
-      </el-select>
87
-    </div>
73
+      <div class="cell">
74
+        <label class="title">
75
+          <span class="name">检验项目</span> :
76
+        </label>
77
+        <el-select v-model="listQuery.project_id" placeholder="请选择" @change="changeModel()">
78
+          <el-option label="全部" value=""></el-option>
79
+          <el-option v-for="item in projectOptions" :key="item.project_id" :label="item.project_name" :value="item.project_id"></el-option>
80
+        </el-select>
81
+        &nbsp;&nbsp;&nbsp;&nbsp;
82
+        <label class="title">
83
+          <span class="name">监测指标</span> :
84
+        </label>
85
+        <el-select v-model="listQuery.item_id" placeholder="请选择" @change="changeItem()">
86
+          <el-option label="全部" value=""></el-option>
87
+          <el-option v-for="item in itemOptions" :key="item.id" :label="item.item_name" :value="item.id"></el-option>
88
+        </el-select>
89
+      </div>
88
 
90
 
89
-    <h4 class="hui">统计图</h4>
90
-    <hr class="huixiao">
91
-    <el-row :gutter="32">
92
-      <el-col :xs="24" :sm="24" :lg="24">
93
-        <div class="chart-wrapper">
94
-            <pie-chart title="" :options="CompletionOptions"/>
95
-        </div>
96
-      </el-col>
97
-    </el-row>
91
+      <h4 class="hui">统计图</h4>
92
+      <hr class="huixiao">
93
+      <el-row :gutter="32">
94
+        <el-col :xs="24" :sm="24" :lg="24">
95
+          <div class="chart-wrapper">
96
+              <pie-chart title="" :options="CompletionOptions"/>
97
+          </div>
98
+        </el-col>
99
+      </el-row>
98
 
100
 
99
-    <h4 class="hui">统计表</h4>
100
-    <hr class="huixiao">
101
-    <el-table
102
-      ref="multipleTable"
103
-      :data="tableData"
104
-      id="oictable"
105
-      border
106
-      fit
107
-      highlight-current-row
108
-      style="width: 100%;margin-top: 10px;"
109
-    >
110
-      
111
-      <el-table-column fixed label="透析号" width="80" property="patient_id" align="center">
112
-        <template slot-scope="scope"><span>{{getPatientDialysisNo(scope.row.patient_id)}}</span></template>
113
-      </el-table-column>
114
-      <el-table-column fixed label="姓名" width="100" property="patient_id" align="center">
115
-        <template slot-scope="scope"><span>{{getPatientName(scope.row.patient_id)}}</span></template>
116
-      </el-table-column>
117
-      <el-table-column fixed label="检查日期" width="100" property="inspect_date" align="center">
118
-        <template slot-scope="scope"><span>{{getTime(scope.row.inspect_date, '{y}{m}{d}')}}</span></template>
119
-      </el-table-column>
120
-      
121
-      <el-table-column :label="reference.item_name+'//'+reference.unit" min-width="120" align="center" v-if="showTableColumn(reference)" v-for="(reference, index) in references" :key="index"  :render-header="renderheader">
122
-        <template slot-scope="scope"><span>{{getItemVulue(reference.project_id, reference.id, scope.row)}}</span></template>
123
-      </el-table-column>
124
-    </el-table>
101
+      <h4 class="hui">统计表</h4>
102
+      <hr class="huixiao">
103
+      <el-table
104
+        ref="multipleTable"
105
+        :data="tableData"
106
+        id="oictable"
107
+        border
108
+        fit
109
+        highlight-current-row
110
+        style="width: 100%;margin-top: 10px;"
111
+        :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)'}"
112
+      >
113
+        
114
+        <el-table-column fixed label="透析号" width="80" property="patient_id" align="center">
115
+          <template slot-scope="scope"><span>{{getPatientDialysisNo(scope.row.patient_id)}}</span></template>
116
+        </el-table-column>
117
+        <el-table-column fixed label="姓名" width="100" property="patient_id" align="center">
118
+          <template slot-scope="scope"><span>{{getPatientName(scope.row.patient_id)}}</span></template>
119
+        </el-table-column>
120
+        <el-table-column fixed label="检查日期" width="100" property="inspect_date" align="center">
121
+          <template slot-scope="scope"><span>{{getTime(scope.row.inspect_date, '{y}{m}{d}')}}</span></template>
122
+        </el-table-column>
123
+        
124
+        <el-table-column :label="reference.item_name+'//'+reference.unit" min-width="120" align="center" v-if="showTableColumn(reference)" v-for="(reference, index) in references" :key="index"  :render-header="renderheader">
125
+          <template slot-scope="scope"><span>{{getItemVulue(reference.project_id, reference.id, scope.row)}}</span></template>
126
+        </el-table-column>
127
+      </el-table>
125
 
128
 
126
-    <!-- <pagi-nation title="分页"></pagi-nation> -->
129
+      <!-- <pagi-nation title="分页"></pagi-nation> -->
127
 
130
 
128
-    <el-pagination
129
-      @size-change="handleSizeChange"
130
-      @current-change="handleCurrentChange"
131
-      :current-page="listQuery.pate"
132
-      :page-sizes="[10, 20, 50, 100]"
133
-      :page-size="10"
134
-      background
135
-      style="margin-top:20px;"
136
-      layout="total, sizes, prev, pager, next, jumper"
137
-      :total="total"
138
-    ></el-pagination>
131
+      <el-pagination
132
+        align="right"
133
+        @size-change="handleSizeChange"
134
+        @current-change="handleCurrentChange"
135
+        :current-page="listQuery.pate"
136
+        :page-sizes="[10, 20, 50, 100]"
137
+        :page-size="10"
138
+        background
139
+        style="margin-top:20px;"
140
+        layout="total, sizes, prev, pager, next, jumper"
141
+        :total="total"
142
+      ></el-pagination>
143
+    </div>
139
   </div>
144
   </div>
140
 </template>
145
 </template>
141
 
146
 
144
 import { GetOICData  } from "@/api/qcd";
149
 import { GetOICData  } from "@/api/qcd";
145
 import PieChart from '../components/PieChart'
150
 import PieChart from '../components/PieChart'
146
 import {uParseTime} from "@/utils/tools";
151
 import {uParseTime} from "@/utils/tools";
152
+import BreadCrumb from "@/xt_pages/components/bread-crumb";
147
 export default {
153
 export default {
148
   name: "dialysisTotal",
154
   name: "dialysisTotal",
149
   data() {
155
   data() {
150
     return {
156
     return {
157
+      crumbs:[
158
+        {path:false, name:'科室质控'},
159
+        {path:false, name:'结果指标'},
160
+        {path:false, name:'指标控制'},
161
+      ],
151
       tabActiveName:'control',
162
       tabActiveName:'control',
152
       total: 0,
163
       total: 0,
153
       projectOptions:{},
164
       projectOptions:{},
181
         { value: 1, label: "大于三个月" },
192
         { value: 1, label: "大于三个月" },
182
         { value: 2, label: "小于三个月" }
193
         { value: 2, label: "小于三个月" }
183
       ],
194
       ],
184
-      pickerOptions: {
185
-        shortcuts: [
186
-          {
187
-            text: "今天",
188
-            onClick(picker) {
189
-              picker.$emit("pick", new Date());
190
-            }
191
-          },
192
-          {
193
-            text: "昨天",
194
-            onClick(picker) {
195
-              const date = new Date();
196
-              date.setTime(date.getTime() - 3600 * 1000 * 24);
197
-              picker.$emit("pick", date);
198
-            }
199
-          },
200
-          {
201
-            text: "一周前",
202
-            onClick(picker) {
203
-              const date = new Date();
204
-              date.setTime(date.getTime() - 3600 * 1000 * 24 * 7);
205
-              picker.$emit("pick", date);
206
-            }
207
-          },
208
-          {
209
-            text: "清空",
210
-            onClick(picker) {
211
-              picker.$emit("pick");
212
-            }
213
-          }
214
-        ]
215
-      }
216
     };
195
     };
217
   },
196
   },
218
   created() {
197
   created() {
390
     }
369
     }
391
   },
370
   },
392
   components: {
371
   components: {
393
-      PieChart
372
+    PieChart,
373
+    BreadCrumb
394
   }
374
   }
395
 };
375
 };
396
 </script>
376
 </script>
404
 <style rel="stylesheet/scss" lang="scss" scoped>
384
 <style rel="stylesheet/scss" lang="scss" scoped>
405
 .app-container {
385
 .app-container {
406
 //   margin: 20px;
386
 //   margin: 20px;
407
-    margin-bottom: 50px;
408
   font-size: 15px;
387
   font-size: 15px;
409
   .filter-container {
388
   .filter-container {
410
     padding-bottom: 5px;
389
     padding-bottom: 5px;
416
   .huixiao {
395
   .huixiao {
417
     border: solid 1px #ebeef5;
396
     border: solid 1px #ebeef5;
418
   }
397
   }
419
-  .el-pagination {
420
-    float: right !important;
421
-  }
422
   .search-component {
398
   .search-component {
423
     width: 500px;
399
     width: 500px;
424
     .searchBox {
400
     .searchBox {

+ 109 - 133
src/xt_pages/qcd/outcomeIndicators/query.vue View File

1
 <template>
1
 <template>
2
-  <div class="app-container" id="outcome-indicators-query">
3
-    <el-tabs v-model="tabActiveName" @tab-click="handleTabClick">
4
-        <el-tab-pane label="指标控制" name="control"></el-tab-pane>
5
-        <el-tab-pane label="指标查询" name="query"></el-tab-pane>
6
-    </el-tabs>
7
-
8
-    <div class="cell">
9
-      <el-form :inline="true" :model="listQuery" >
10
-        <el-form-item label="">
11
-          <el-input v-model="listQuery.search" placeholder="姓名/透析号"></el-input>
12
-        </el-form-item>
13
-        <el-form-item>
14
-          <el-button type="primary" @click="onSearch">搜索</el-button>
15
-        </el-form-item>
16
-      </el-form>
17
-    </div>
18
-    <div class="cell">
19
-      <label class="title">
20
-        <span class="name">日期查询</span> :
21
-      </label>
22
-      <el-date-picker
23
-        v-model="listQuery.start_time"
24
-        prefix-icon="el-icon-date"
25
-        @change="changeTime"
26
-        :editable="false"
27
-        style="width: 196px;"
28
-        type="date"
29
-        placeholder="选择日期时间"
30
-        align="right"
31
-        :picker-options="pickerOptions"
32
-        format="yyyy-MM-dd"
33
-        value-format="yyyy-MM-dd"
34
-      ></el-date-picker>
35
-      <span class>-</span>
36
-      <el-date-picker
37
-        v-model="listQuery.end_time"
38
-        prefix-icon="el-icon-date"
39
-        @change="changeTime"
40
-        :editable="false"
41
-        style="width: 196px;"
42
-        type="date"
43
-        placeholder="选择日期时间"
44
-        align="right"
45
-        :picker-options="pickerOptions"
46
-        format="yyyy-MM-dd"
47
-        value-format="yyyy-MM-dd"
48
-      ></el-date-picker>
2
+ <div class="main-contain">
3
+    <div class="position">
4
+      <bread-crumb :crumbs='crumbs'></bread-crumb>
49
     </div>
5
     </div>
6
+    <div class="app-container" id="outcome-indicators-query">
7
+      <el-tabs v-model="tabActiveName" @tab-click="handleTabClick">
8
+          <el-tab-pane label="指标控制" name="control"></el-tab-pane>
9
+          <el-tab-pane label="指标查询" name="query"></el-tab-pane>
10
+      </el-tabs>
50
 
11
 
51
-    <div class="cell">
52
-      <label class="title">
53
-        <span class="name">检验项目</span> :
54
-      </label>
55
-      <el-select v-model="listQuery.project_id" placeholder="请选择" @change="changeModel()">
56
-        <el-option v-for="item in projectOptions" :key="item.project_id" :label="item.project_name" :value="item.project_id"></el-option>
57
-      </el-select>
58
-    </div>
12
+      <div class="cell">
13
+        <el-form :inline="true" :model="listQuery" >
14
+          <el-form-item label="">
15
+            <el-input v-model="listQuery.search" placeholder="姓名/透析号"></el-input>
16
+          </el-form-item>
17
+          <el-form-item>
18
+            <el-button type="primary" @click="onSearch">搜索</el-button>
19
+          </el-form-item>
20
+        </el-form>
21
+      </div>
22
+      <div class="cell">
23
+        <label class="title">
24
+          <span class="name">日期查询</span> :
25
+        </label>
26
+        <el-date-picker
27
+          v-model="listQuery.start_time"
28
+          prefix-icon="el-icon-date"
29
+          @change="changeTime"
30
+          :editable="false"
31
+          style="width: 196px;"
32
+          type="date"
33
+          placeholder="选择日期时间"
34
+          align="right"
35
+          format="yyyy-MM-dd"
36
+          value-format="yyyy-MM-dd"
37
+        ></el-date-picker>
38
+        <span class>-</span>
39
+        <el-date-picker
40
+          v-model="listQuery.end_time"
41
+          prefix-icon="el-icon-date"
42
+          @change="changeTime"
43
+          :editable="false"
44
+          style="width: 196px;"
45
+          type="date"
46
+          placeholder="选择日期时间"
47
+          align="right"
48
+          format="yyyy-MM-dd"
49
+          value-format="yyyy-MM-dd"
50
+        ></el-date-picker>
51
+      </div>
59
 
52
 
60
-    <h4 class="hui">统计表</h4>
61
-    <hr class="huixiao">
62
-    <el-table
63
-      ref="multipleTable"
64
-      :data="tableData"
65
-      id="oictable"
66
-      border
67
-      fit
68
-      highlight-current-row
69
-      style="width: 100%;margin-top: 10px;"
70
-    >
71
-      
72
-      <el-table-column fixed label="透析号" width="80" property="patient_id" align="center">
73
-        <template slot-scope="scope"><span>{{getPatientDialysisNo(scope.row.patient_id)}}</span></template>
74
-      </el-table-column>
75
-      <el-table-column fixed label="姓名" width="100" property="patient_id" align="center">
76
-        <template slot-scope="scope"><span>{{getPatientName(scope.row.patient_id)}}</span></template>
77
-      </el-table-column>
78
-      <el-table-column fixed label="性别" width="100" property="patient_id" align="center">
79
-        <template slot-scope="scope"><span>{{getPatientGender(scope.row.patient_id)}}</span></template>
80
-      </el-table-column>
81
-      
82
-      <el-table-column fixed label="检查日期" width="100" property="inspect_date" align="center">
83
-        <template slot-scope="scope"><span>{{getTime(scope.row.inspect_date, '{y}{m}{d}')}}</span></template>
84
-      </el-table-column>
85
-      
86
-      <el-table-column :label="reference.item_name+'//'+reference.unit" min-width="120" align="center" v-if="showTableColumn(reference)" v-for="(reference, index) in references" :key="index"  :render-header="renderheader">
87
-        <template slot-scope="scope"><span>{{getItemVulue(reference.project_id, reference.id, scope.row)}}</span></template>
88
-      </el-table-column>
89
-    </el-table>
53
+      <div class="cell">
54
+        <label class="title">
55
+          <span class="name">检验项目</span> :
56
+        </label>
57
+        <el-select v-model="listQuery.project_id" placeholder="请选择" @change="changeModel()">
58
+          <el-option v-for="item in projectOptions" :key="item.project_id" :label="item.project_name" :value="item.project_id"></el-option>
59
+        </el-select>
60
+      </div>
90
 
61
 
91
-    <!-- <pagi-nation title="分页"></pagi-nation> -->
62
+      <h4 class="hui">统计表</h4>
63
+      <hr class="huixiao">
64
+      <el-table
65
+        ref="multipleTable"
66
+        :data="tableData"
67
+        id="oictable"
68
+        border
69
+        fit
70
+        highlight-current-row
71
+        style="width: 100%;margin-top: 10px;"
72
+        :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)'}"
73
+      >
74
+        
75
+        <el-table-column fixed label="透析号" width="80" property="patient_id" align="center">
76
+          <template slot-scope="scope"><span>{{getPatientDialysisNo(scope.row.patient_id)}}</span></template>
77
+        </el-table-column>
78
+        <el-table-column fixed label="姓名" width="100" property="patient_id" align="center">
79
+          <template slot-scope="scope"><span>{{getPatientName(scope.row.patient_id)}}</span></template>
80
+        </el-table-column>
81
+        <el-table-column fixed label="性别" width="100" property="patient_id" align="center">
82
+          <template slot-scope="scope"><span>{{getPatientGender(scope.row.patient_id)}}</span></template>
83
+        </el-table-column>
84
+        
85
+        <el-table-column fixed label="检查日期" width="100" property="inspect_date" align="center">
86
+          <template slot-scope="scope"><span>{{getTime(scope.row.inspect_date, '{y}{m}{d}')}}</span></template>
87
+        </el-table-column>
88
+        
89
+        <el-table-column :label="reference.item_name+'//'+reference.unit" min-width="120" align="center" v-if="showTableColumn(reference)" v-for="(reference, index) in references" :key="index"  :render-header="renderheader">
90
+          <template slot-scope="scope"><span>{{getItemVulue(reference.project_id, reference.id, scope.row)}}</span></template>
91
+        </el-table-column>
92
+      </el-table>
92
 
93
 
93
-    <el-pagination
94
-      @size-change="handleSizeChange"
95
-      @current-change="handleCurrentChange"
96
-      :current-page="listQuery.pate"
97
-      :page-sizes="[10, 20, 50, 100]"
98
-      :page-size="10"
99
-      background
100
-      style="margin-top:20px;"
101
-      layout="total, sizes, prev, pager, next, jumper"
102
-      :total="total"
103
-    ></el-pagination>
94
+      <!-- <pagi-nation title="分页"></pagi-nation> -->
95
+
96
+      <el-pagination
97
+        align="right"
98
+        @size-change="handleSizeChange"
99
+        @current-change="handleCurrentChange"
100
+        :current-page="listQuery.pate"
101
+        :page-sizes="[10, 20, 50, 100]"
102
+        :page-size="10"
103
+        background
104
+        style="margin-top:20px;"
105
+        layout="total, sizes, prev, pager, next, jumper"
106
+        :total="total"
107
+      ></el-pagination>
108
+    </div>
104
   </div>
109
   </div>
105
 </template>
110
 </template>
106
 
111
 
108
 <script>
113
 <script>
109
 import { GetOIQData  } from "@/api/qcd";
114
 import { GetOIQData  } from "@/api/qcd";
110
 import {uParseTime} from "@/utils/tools";
115
 import {uParseTime} from "@/utils/tools";
116
+import BreadCrumb from "@/xt_pages/components/bread-crumb";
111
 export default {
117
 export default {
112
   name: "dialysisTotal",
118
   name: "dialysisTotal",
113
   data() {
119
   data() {
114
     return {
120
     return {
121
+      crumbs:[
122
+        {path:false, name:'科室质控'},
123
+        {path:false, name:'结果指标'},
124
+        {path:false, name:'指标查询'},
125
+      ],
115
       tabActiveName:'query',
126
       tabActiveName:'query',
116
       total: 0,
127
       total: 0,
117
       projectOptions:{},
128
       projectOptions:{},
132
         { value: 1, label: "转出", source: 0, lapseto: 2 },
143
         { value: 1, label: "转出", source: 0, lapseto: 2 },
133
         { value: 2, label: "留治", source: 0, lapseto: 1 }
144
         { value: 2, label: "留治", source: 0, lapseto: 1 }
134
       ],
145
       ],
135
-      pickerOptions: {
136
-        shortcuts: [
137
-          {
138
-            text: "今天",
139
-            onClick(picker) {
140
-              picker.$emit("pick", new Date());
141
-            }
142
-          },
143
-          {
144
-            text: "昨天",
145
-            onClick(picker) {
146
-              const date = new Date();
147
-              date.setTime(date.getTime() - 3600 * 1000 * 24);
148
-              picker.$emit("pick", date);
149
-            }
150
-          },
151
-          {
152
-            text: "一周前",
153
-            onClick(picker) {
154
-              const date = new Date();
155
-              date.setTime(date.getTime() - 3600 * 1000 * 24 * 7);
156
-              picker.$emit("pick", date);
157
-            }
158
-          },
159
-          {
160
-            text: "清空",
161
-            onClick(picker) {
162
-              picker.$emit("pick");
163
-            }
164
-          }
165
-        ]
166
-      }
167
     };
146
     };
168
   },
147
   },
169
   created() {
148
   created() {
315
     }
294
     }
316
   },
295
   },
317
   components: {
296
   components: {
297
+    BreadCrumb
318
   }
298
   }
319
 };
299
 };
320
 </script>
300
 </script>
331
 <style rel="stylesheet/scss" lang="scss" scoped>
311
 <style rel="stylesheet/scss" lang="scss" scoped>
332
 .app-container {
312
 .app-container {
333
 //   margin: 20px;
313
 //   margin: 20px;
334
-    margin-bottom: 50px;
335
   font-size: 15px;
314
   font-size: 15px;
336
   .filter-container {
315
   .filter-container {
337
     padding-bottom: 5px;
316
     padding-bottom: 5px;
343
   .huixiao {
322
   .huixiao {
344
     border: solid 1px #ebeef5;
323
     border: solid 1px #ebeef5;
345
   }
324
   }
346
-  .el-pagination {
347
-    float: right !important;
348
-  }
349
   .search-component {
325
   .search-component {
350
     width: 500px;
326
     width: 500px;
351
     .searchBox {
327
     .searchBox {

+ 119 - 143
src/xt_pages/qcd/patientAnalysis/bloodPressure.vue View File

1
 <template>
1
 <template>
2
-  <div class="app-container" id="outcome-indicators-query">
3
-    <analysis-nav activeName="bloodpressure"></analysis-nav>
4
-
5
-    <div class="cell">
6
-      <label class="title">
7
-        <span class="name">日期查询</span> :
8
-      </label>
9
-      <el-date-picker
10
-        v-model="listQuery.start_time"
11
-        prefix-icon="el-icon-date"
12
-        @change="changeTime"
13
-        :editable="false"
14
-        style="width: 196px;"
15
-        type="date"
16
-        placeholder="选择日期时间"
17
-        align="right"
18
-        :picker-options="pickerOptions"
19
-        format="yyyy-MM-dd"
20
-        value-format="yyyy-MM-dd"
21
-      ></el-date-picker>
22
-      <span class>-</span>
23
-      <el-date-picker
24
-        v-model="listQuery.end_time"
25
-        prefix-icon="el-icon-date"
26
-        @change="changeTime"
27
-        :editable="false"
28
-        style="width: 196px;"
29
-        type="date"
30
-        placeholder="选择日期时间"
31
-        align="right"
32
-        :picker-options="pickerOptions"
33
-        format="yyyy-MM-dd"
34
-        value-format="yyyy-MM-dd"
35
-      ></el-date-picker>
2
+ <div class="main-contain">
3
+    <div class="position">
4
+      <bread-crumb :crumbs='crumbs'></bread-crumb>
36
     </div>
5
     </div>
37
-    <div class="cell clearfix">
38
-      <label class="title">
39
-        <span class="name">转归状态</span> :
40
-      </label>
41
-      <div class="time">
42
-        <ul class>
43
-          <li
44
-            :class="item.lapseto==lapsetoType?'active':''"
45
-            @click="selectLapseTo( item.lapseto)"
46
-            v-for="item in lapsetoState"
47
-            :key="item.value"
48
-          >{{item.label}}</li>
49
-        </ul>
6
+    <div class="app-container" id="outcome-indicators-query">
7
+      <analysis-nav activeName="bloodpressure"></analysis-nav>
8
+
9
+      <div class="cell">
10
+        <label class="title">
11
+          <span class="name">日期查询</span> :
12
+        </label>
13
+        <el-date-picker
14
+          v-model="listQuery.start_time"
15
+          prefix-icon="el-icon-date"
16
+          @change="changeTime"
17
+          :editable="false"
18
+          style="width: 196px;"
19
+          type="date"
20
+          placeholder="选择日期时间"
21
+          align="right"
22
+          format="yyyy-MM-dd"
23
+          value-format="yyyy-MM-dd"
24
+        ></el-date-picker>
25
+        <span class>-</span>
26
+        <el-date-picker
27
+          v-model="listQuery.end_time"
28
+          prefix-icon="el-icon-date"
29
+          @change="changeTime"
30
+          :editable="false"
31
+          style="width: 196px;"
32
+          type="date"
33
+          placeholder="选择日期时间"
34
+          align="right"
35
+          format="yyyy-MM-dd"
36
+          value-format="yyyy-MM-dd"
37
+        ></el-date-picker>
50
       </div>
38
       </div>
51
-    </div>
52
-    <div class="cell clearfix">
53
-      <label class="title">
54
-        <span class="name">年龄</span> :
55
-      </label>
56
-      <div class="time">
57
-        <ul class>
58
-          <li
59
-            :class="item.age==ageType?'active':''"
60
-            @click="selectAge( item.age)"
61
-            v-for="item in ageOptions"
62
-            :key="item.value"
63
-          >{{item.label}}</li>
64
-        </ul>
39
+      <div class="cell clearfix">
40
+        <label class="title">
41
+          <span class="name">转归状态</span> :
42
+        </label>
43
+        <div class="time">
44
+          <ul class>
45
+            <li
46
+              :class="item.lapseto==lapsetoType?'active':''"
47
+              @click="selectLapseTo( item.lapseto)"
48
+              v-for="item in lapsetoState"
49
+              :key="item.value"
50
+            >{{item.label}}</li>
51
+          </ul>
52
+        </div>
53
+      </div>
54
+      <div class="cell clearfix">
55
+        <label class="title">
56
+          <span class="name">年龄</span> :
57
+        </label>
58
+        <div class="time">
59
+          <ul class>
60
+            <li
61
+              :class="item.age==ageType?'active':''"
62
+              @click="selectAge( item.age)"
63
+              v-for="item in ageOptions"
64
+              :key="item.value"
65
+            >{{item.label}}</li>
66
+          </ul>
67
+        </div>
65
       </div>
68
       </div>
66
-    </div>
67
 
69
 
68
 
70
 
69
-    <h4 class="hui">统计图</h4>
70
-    <hr class="huixiao">
71
-    <el-row :gutter="32">
72
-      <el-col :xs="24" :sm="24" :lg="24">
73
-        <div class="chart-wrapper">
74
-            <pie-chart title="留治情况" :options="CompletionOptions"/>
75
-        </div>
76
-      </el-col>
77
-    </el-row>
71
+      <h4 class="hui">统计图</h4>
72
+      <hr class="huixiao">
73
+      <el-row :gutter="32">
74
+        <el-col :xs="24" :sm="24" :lg="24">
75
+          <div class="chart-wrapper">
76
+              <pie-chart title="留治情况" :options="CompletionOptions"/>
77
+          </div>
78
+        </el-col>
79
+      </el-row>
78
 
80
 
79
-    <h4 class="hui">统计表</h4>
80
-    <hr class="huixiao">
81
-    <el-table
82
-      ref="multipleTable"
83
-      :data="tableData"
84
-      border
85
-      fit
86
-      highlight-current-row
87
-      style="width: 100%;margin-top: 10px;"
88
-    >
89
-      
90
-      <el-table-column  label="透析号" min-width="100" property="dialysis_no" align="center">
91
-      </el-table-column>
92
-      <el-table-column  label="患者姓名" min-width="100" property="name" align="center">
93
-      </el-table-column>
94
-      <el-table-column  label="性别" min-width="80" property="gender" align="center">
95
-        <template slot-scope="scope"><span>{{getPatientGender(scope.row.gender)}}</span></template>
96
-      </el-table-column>
97
-      <el-table-column  label="年龄" min-width="80" property="birthday" align="center">
98
-        <template slot-scope="scope"><span>{{tranAge(scope.row.birthday)}}</span></template>
99
-      </el-table-column>
100
-      
101
-    </el-table>
81
+      <h4 class="hui">统计表</h4>
82
+      <hr class="huixiao">
83
+      <el-table
84
+        ref="multipleTable"
85
+        :data="tableData"
86
+        border
87
+        fit
88
+        highlight-current-row
89
+        style="width: 100%;margin-top: 10px;"
90
+        :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)'}"
91
+      >
92
+        
93
+        <el-table-column  label="透析号" min-width="100" property="dialysis_no" align="center">
94
+        </el-table-column>
95
+        <el-table-column  label="患者姓名" min-width="100" property="name" align="center">
96
+        </el-table-column>
97
+        <el-table-column  label="性别" min-width="80" property="gender" align="center">
98
+          <template slot-scope="scope"><span>{{getPatientGender(scope.row.gender)}}</span></template>
99
+        </el-table-column>
100
+        <el-table-column  label="年龄" min-width="80" property="birthday" align="center">
101
+          <template slot-scope="scope"><span>{{tranAge(scope.row.birthday)}}</span></template>
102
+        </el-table-column>
103
+        
104
+      </el-table>
102
 
105
 
103
-    <!-- <pagi-nation title="分页"></pagi-nation> -->
106
+      <!-- <pagi-nation title="分页"></pagi-nation> -->
104
 
107
 
105
-    <el-pagination
106
-      @size-change="handleSizeChange"
107
-      @current-change="handleCurrentChange"
108
-      :current-page="listQuery.pate"
109
-      :page-sizes="[10, 20, 50, 100]"
110
-      :page-size="10"
111
-      background
112
-      style="margin-top:20px;"
113
-      layout="total, sizes, prev, pager, next, jumper"
114
-      :total="total"
115
-    ></el-pagination>
108
+      <el-pagination
109
+      align='right'
110
+        @size-change="handleSizeChange"
111
+        @current-change="handleCurrentChange"
112
+        :current-page="listQuery.pate"
113
+        :page-sizes="[10, 20, 50, 100]"
114
+        :page-size="10"
115
+        background
116
+        style="margin-top:20px;"
117
+        layout="total, sizes, prev, pager, next, jumper"
118
+        :total="total"
119
+      ></el-pagination>
120
+    </div>
116
   </div>
121
   </div>
117
 </template>
122
 </template>
118
 
123
 
122
 import PieChart from '../components/PieChart'
127
 import PieChart from '../components/PieChart'
123
 import {jsGetAge, uParseTime} from "@/utils/tools";
128
 import {jsGetAge, uParseTime} from "@/utils/tools";
124
 import analysisNav from './components/analysisNav'
129
 import analysisNav from './components/analysisNav'
130
+import BreadCrumb from "@/xt_pages/components/bread-crumb";
125
 export default {
131
 export default {
126
   name: "totalAnalysis",
132
   name: "totalAnalysis",
127
   data() {
133
   data() {
128
     return {
134
     return {
135
+      crumbs:[
136
+        {path:false, name:'科室质控'},
137
+        {path:false, name:'患者分析'},
138
+        {path:false, name:'总量分析'},
139
+      ],
129
       total: 0,
140
       total: 0,
130
       patientMap:{},
141
       patientMap:{},
131
       listQuery: {
142
       listQuery: {
153
         { value: 3, label: "40~50", age: 3 },
164
         { value: 3, label: "40~50", age: 3 },
154
         { value: 4, label: "其他", age: 4 },
165
         { value: 4, label: "其他", age: 4 },
155
       ],
166
       ],
156
-      pickerOptions: {
157
-        shortcuts: [
158
-          {
159
-            text: "今天",
160
-            onClick(picker) {
161
-              picker.$emit("pick", new Date());
162
-            }
163
-          },
164
-          {
165
-            text: "昨天",
166
-            onClick(picker) {
167
-              const date = new Date();
168
-              date.setTime(date.getTime() - 3600 * 1000 * 24);
169
-              picker.$emit("pick", date);
170
-            }
171
-          },
172
-          {
173
-            text: "一周前",
174
-            onClick(picker) {
175
-              const date = new Date();
176
-              date.setTime(date.getTime() - 3600 * 1000 * 24 * 7);
177
-              picker.$emit("pick", date);
178
-            }
179
-          },
180
-          {
181
-            text: "清空",
182
-            onClick(picker) {
183
-              picker.$emit("pick");
184
-            }
185
-          }
186
-        ]
187
-      }
188
     };
167
     };
189
   },
168
   },
190
   created() {
169
   created() {
307
   },
286
   },
308
   components: {
287
   components: {
309
       analysisNav,
288
       analysisNav,
310
-      PieChart
289
+      PieChart,
290
+      BreadCrumb
311
   }
291
   }
312
 };
292
 };
313
 </script>
293
 </script>
324
 <style rel="stylesheet/scss" lang="scss" scoped>
304
 <style rel="stylesheet/scss" lang="scss" scoped>
325
 .app-container {
305
 .app-container {
326
 //   margin: 20px;
306
 //   margin: 20px;
327
-    margin-bottom: 50px;
328
   font-size: 15px;
307
   font-size: 15px;
329
   .filter-container {
308
   .filter-container {
330
     padding-bottom: 5px;
309
     padding-bottom: 5px;
336
   .huixiao {
315
   .huixiao {
337
     border: solid 1px #ebeef5;
316
     border: solid 1px #ebeef5;
338
   }
317
   }
339
-  .el-pagination {
340
-    float: right !important;
341
-  }
342
   .search-component {
318
   .search-component {
343
     width: 500px;
319
     width: 500px;
344
     .searchBox {
320
     .searchBox {

+ 142 - 166
src/xt_pages/qcd/patientAnalysis/dialysisAge.vue View File

1
 <template>
1
 <template>
2
-  <div class="app-container" id="outcome-indicators-query">
3
-    <analysis-nav activeName="dialysisage"></analysis-nav>
4
-
5
-    <div class="cell">
6
-      <label class="title">
7
-        <span class="name">日期查询</span> :
8
-      </label>
9
-      <el-date-picker
10
-        v-model="listQuery.start_time"
11
-        prefix-icon="el-icon-date"
12
-        @change="changeTime"
13
-        :editable="false"
14
-        style="width: 196px;"
15
-        type="date"
16
-        placeholder="选择日期时间"
17
-        align="right"
18
-        :picker-options="pickerOptions"
19
-        format="yyyy-MM-dd"
20
-        value-format="yyyy-MM-dd"
21
-      ></el-date-picker>
22
-      <span class>-</span>
23
-      <el-date-picker
24
-        v-model="listQuery.end_time"
25
-        prefix-icon="el-icon-date"
26
-        @change="changeTime"
27
-        :editable="false"
28
-        style="width: 196px;"
29
-        type="date"
30
-        placeholder="选择日期时间"
31
-        align="right"
32
-        :picker-options="pickerOptions"
33
-        format="yyyy-MM-dd"
34
-        value-format="yyyy-MM-dd"
35
-      ></el-date-picker>
2
+ <div class="main-contain">
3
+    <div class="position">
4
+      <bread-crumb :crumbs='crumbs'></bread-crumb>
36
     </div>
5
     </div>
37
-    <div class="cell clearfix">
38
-      <label class="title">
39
-        <span class="name">转归状态</span> :
40
-      </label>
41
-      <div class="time">
42
-        <ul class>
43
-          <li
44
-            :class="item.lapseto==lapsetoType?'active':''"
45
-            @click="selectLapseTo( item.lapseto)"
46
-            v-for="item in lapsetoState"
47
-            :key="item.value"
48
-          >{{item.label}}</li>
49
-        </ul>
6
+    <div class="app-container" id="outcome-indicators-query">
7
+      <analysis-nav activeName="dialysisage"></analysis-nav>
8
+
9
+      <div class="cell">
10
+        <label class="title">
11
+          <span class="name">日期查询</span> :
12
+        </label>
13
+        <el-date-picker
14
+          v-model="listQuery.start_time"
15
+          prefix-icon="el-icon-date"
16
+          @change="changeTime"
17
+          :editable="false"
18
+          style="width: 196px;"
19
+          type="date"
20
+          placeholder="选择日期时间"
21
+          align="right"
22
+          format="yyyy-MM-dd"
23
+          value-format="yyyy-MM-dd"
24
+        ></el-date-picker>
25
+        <span class>-</span>
26
+        <el-date-picker
27
+          v-model="listQuery.end_time"
28
+          prefix-icon="el-icon-date"
29
+          @change="changeTime"
30
+          :editable="false"
31
+          style="width: 196px;"
32
+          type="date"
33
+          placeholder="选择日期时间"
34
+          align="right"
35
+          format="yyyy-MM-dd"
36
+          value-format="yyyy-MM-dd"
37
+        ></el-date-picker>
50
       </div>
38
       </div>
51
-    </div>
52
-    <div class="cell clearfix">
53
-      <label class="title">
54
-        <span class="name">年龄</span> :
55
-      </label>
56
-      <div class="time">
57
-        <ul class>
58
-          <li
59
-            :class="item.age==ageType?'active':''"
60
-            @click="selectAge( item.age)"
61
-            v-for="item in ageOptions"
62
-            :key="item.value"
63
-          >{{item.label}}</li>
64
-        </ul>
39
+      <div class="cell clearfix">
40
+        <label class="title">
41
+          <span class="name">转归状态</span> :
42
+        </label>
43
+        <div class="time">
44
+          <ul class>
45
+            <li
46
+              :class="item.lapseto==lapsetoType?'active':''"
47
+              @click="selectLapseTo( item.lapseto)"
48
+              v-for="item in lapsetoState"
49
+              :key="item.value"
50
+            >{{item.label}}</li>
51
+          </ul>
52
+        </div>
65
       </div>
53
       </div>
66
-    </div>
67
-    <div class="cell clearfix">
68
-      <label class="title">
69
-        <span class="name">透析龄</span> :
70
-      </label>
71
-      <div class="time">
72
-        <ul class>
73
-          <li
74
-            :class="item.age==dialysisAgeType?'active':''"
75
-            @click="selectDialysisAge( item.age)"
76
-            v-for="item in dialysisAgeOptions"
77
-            :key="item.value"
78
-          >{{item.label}}</li>
79
-        </ul>
54
+      <div class="cell clearfix">
55
+        <label class="title">
56
+          <span class="name">年龄</span> :
57
+        </label>
58
+        <div class="time">
59
+          <ul class>
60
+            <li
61
+              :class="item.age==ageType?'active':''"
62
+              @click="selectAge( item.age)"
63
+              v-for="item in ageOptions"
64
+              :key="item.value"
65
+            >{{item.label}}</li>
66
+          </ul>
67
+        </div>
68
+      </div>
69
+      <div class="cell clearfix">
70
+        <label class="title">
71
+          <span class="name">透析龄</span> :
72
+        </label>
73
+        <div class="time">
74
+          <ul class>
75
+            <li
76
+              :class="item.age==dialysisAgeType?'active':''"
77
+              @click="selectDialysisAge( item.age)"
78
+              v-for="item in dialysisAgeOptions"
79
+              :key="item.value"
80
+            >{{item.label}}</li>
81
+          </ul>
82
+        </div>
80
       </div>
83
       </div>
81
-    </div>
82
 
84
 
83
 
85
 
84
-    <h4 class="hui">统计图</h4>
85
-    <hr class="huixiao">
86
-    <el-row :gutter="32">
87
-      <el-col :xs="24" :sm="24" :lg="24">
88
-        <div class="chart-wrapper">
89
-            <pie-chart title="透析龄分布情况(人):" :options="CompletionOptions"/>
90
-        </div>
91
-      </el-col>
92
-    </el-row>
86
+      <h4 class="hui">统计图</h4>
87
+      <hr class="huixiao">
88
+      <el-row :gutter="32">
89
+        <el-col :xs="24" :sm="24" :lg="24">
90
+          <div class="chart-wrapper">
91
+              <pie-chart title="透析龄分布情况(人):" :options="CompletionOptions"/>
92
+          </div>
93
+        </el-col>
94
+      </el-row>
93
 
95
 
94
-    <h4 class="hui">统计表</h4>
95
-    <hr class="huixiao">
96
-    <el-table
97
-      ref="multipleTable"
98
-      :data="tableData"
99
-      border
100
-      fit
101
-      highlight-current-row
102
-      style="width: 100%;margin-top: 10px;"
103
-    >
104
-      
105
-      <el-table-column  label="透析号" min-width="100" property="dialysis_no" align="center">
106
-      </el-table-column>
107
-      <el-table-column  label="患者姓名" min-width="100" property="name" align="center">
108
-      </el-table-column>
109
-      <el-table-column  label="性别" min-width="80" property="gender" align="center">
110
-        <template slot-scope="scope"><span>{{getPatientGender(scope.row.gender)}}</span></template>
111
-      </el-table-column>
112
-      <el-table-column  label="年龄" min-width="80" property="birthday" align="center">
113
-        <template slot-scope="scope"><span>{{tranAge(scope.row.birthday)}}</span></template>
114
-      </el-table-column>
115
-      <el-table-column  label="归转状态" min-width="80" property="lapseto" align="center">
116
-        <template slot-scope="scope"><span>{{tranLapseto(scope.row.lapseto)}}</span></template>
117
-      </el-table-column>
118
-      <el-table-column  label="首次透析日期" min-width="80" property="first_dialysis_date" align="center">
119
-        <template slot-scope="scope"><span>{{getFirstDialysisDate(scope.row.first_dialysis_date)}}</span></template>
120
-      </el-table-column>
121
-      <el-table-column  label="透析龄" min-width="80" property="first_dialysis_date" align="center">
122
-        <template slot-scope="scope"><span>{{dialysisAge(scope.row.first_dialysis_date)}}</span></template>
123
-      </el-table-column>
124
-      
125
-    </el-table>
96
+      <h4 class="hui">统计表</h4>
97
+      <hr class="huixiao">
98
+      <el-table
99
+        ref="multipleTable"
100
+        :data="tableData"
101
+        border
102
+        fit
103
+        highlight-current-row
104
+        style="width: 100%;margin-top: 10px;"
105
+        :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)'}"
106
+      >
107
+        
108
+        <el-table-column  label="透析号" min-width="100" property="dialysis_no" align="center">
109
+        </el-table-column>
110
+        <el-table-column  label="患者姓名" min-width="100" property="name" align="center">
111
+        </el-table-column>
112
+        <el-table-column  label="性别" min-width="80" property="gender" align="center">
113
+          <template slot-scope="scope"><span>{{getPatientGender(scope.row.gender)}}</span></template>
114
+        </el-table-column>
115
+        <el-table-column  label="年龄" min-width="80" property="birthday" align="center">
116
+          <template slot-scope="scope"><span>{{tranAge(scope.row.birthday)}}</span></template>
117
+        </el-table-column>
118
+        <el-table-column  label="归转状态" min-width="80" property="lapseto" align="center">
119
+          <template slot-scope="scope"><span>{{tranLapseto(scope.row.lapseto)}}</span></template>
120
+        </el-table-column>
121
+        <el-table-column  label="首次透析日期" min-width="80" property="first_dialysis_date" align="center">
122
+          <template slot-scope="scope"><span>{{getFirstDialysisDate(scope.row.first_dialysis_date)}}</span></template>
123
+        </el-table-column>
124
+        <el-table-column  label="透析龄" min-width="80" property="first_dialysis_date" align="center">
125
+          <template slot-scope="scope"><span>{{dialysisAge(scope.row.first_dialysis_date)}}</span></template>
126
+        </el-table-column>
127
+        
128
+      </el-table>
126
 
129
 
127
-    <!-- <pagi-nation title="分页"></pagi-nation> -->
130
+      <!-- <pagi-nation title="分页"></pagi-nation> -->
128
 
131
 
129
-    <el-pagination
130
-      @size-change="handleSizeChange"
131
-      @current-change="handleCurrentChange"
132
-      :current-page="listQuery.pate"
133
-      :page-sizes="[10, 20, 50, 100]"
134
-      :page-size="10"
135
-      background
136
-      style="margin-top:20px;"
137
-      layout="total, sizes, prev, pager, next, jumper"
138
-      :total="total"
139
-    ></el-pagination>
132
+      <el-pagination
133
+      align="right"
134
+        @size-change="handleSizeChange"
135
+        @current-change="handleCurrentChange"
136
+        :current-page="listQuery.pate"
137
+        :page-sizes="[10, 20, 50, 100]"
138
+        :page-size="10"
139
+        background
140
+        style="margin-top:20px;"
141
+        layout="total, sizes, prev, pager, next, jumper"
142
+        :total="total"
143
+      ></el-pagination>
144
+    </div>
140
   </div>
145
   </div>
141
 </template>
146
 </template>
142
 
147
 
146
 import PieChart from '../components/PieChart'
151
 import PieChart from '../components/PieChart'
147
 import {jsGetAge, uParseTime, dialysisAge} from "@/utils/tools";
152
 import {jsGetAge, uParseTime, dialysisAge} from "@/utils/tools";
148
 import analysisNav from './components/analysisNav'
153
 import analysisNav from './components/analysisNav'
154
+import BreadCrumb from "@/xt_pages/components/bread-crumb";
149
 export default {
155
 export default {
150
   name: "totalAnalysis",
156
   name: "totalAnalysis",
151
   data() {
157
   data() {
152
     return {
158
     return {
159
+      crumbs:[
160
+        {path:false, name:'科室质控'},
161
+        {path:false, name:'患者分析'},
162
+        {path:false, name:'透析龄分析'},
163
+      ],
153
       total: 0,
164
       total: 0,
154
       patientMap:{},
165
       patientMap:{},
155
       listQuery: {
166
       listQuery: {
194
         4: { value: 4, label: "大于10年", age: 4 },
205
         4: { value: 4, label: "大于10年", age: 4 },
195
         5: { value: 5, label: "大于20年", age: 5 },
206
         5: { value: 5, label: "大于20年", age: 5 },
196
       },
207
       },
197
-      pickerOptions: {
198
-        shortcuts: [
199
-          {
200
-            text: "今天",
201
-            onClick(picker) {
202
-              picker.$emit("pick", new Date());
203
-            }
204
-          },
205
-          {
206
-            text: "昨天",
207
-            onClick(picker) {
208
-              const date = new Date();
209
-              date.setTime(date.getTime() - 3600 * 1000 * 24);
210
-              picker.$emit("pick", date);
211
-            }
212
-          },
213
-          {
214
-            text: "一周前",
215
-            onClick(picker) {
216
-              const date = new Date();
217
-              date.setTime(date.getTime() - 3600 * 1000 * 24 * 7);
218
-              picker.$emit("pick", date);
219
-            }
220
-          },
221
-          {
222
-            text: "清空",
223
-            onClick(picker) {
224
-              picker.$emit("pick");
225
-            }
226
-          }
227
-        ]
228
-      }
229
     };
208
     };
230
   },
209
   },
231
   created() {
210
   created() {
375
   },
354
   },
376
   components: {
355
   components: {
377
       analysisNav,
356
       analysisNav,
378
-      PieChart
357
+      PieChart,
358
+      BreadCrumb
379
   }
359
   }
380
 };
360
 };
381
 </script>
361
 </script>
392
 <style rel="stylesheet/scss" lang="scss" scoped>
372
 <style rel="stylesheet/scss" lang="scss" scoped>
393
 .app-container {
373
 .app-container {
394
 //   margin: 20px;
374
 //   margin: 20px;
395
-    margin-bottom: 50px;
396
   font-size: 15px;
375
   font-size: 15px;
397
   .filter-container {
376
   .filter-container {
398
     padding-bottom: 5px;
377
     padding-bottom: 5px;
404
   .huixiao {
383
   .huixiao {
405
     border: solid 1px #ebeef5;
384
     border: solid 1px #ebeef5;
406
   }
385
   }
407
-  .el-pagination {
408
-    float: right !important;
409
-  }
410
   .search-component {
386
   .search-component {
411
     width: 500px;
387
     width: 500px;
412
     .searchBox {
388
     .searchBox {

+ 136 - 160
src/xt_pages/qcd/patientAnalysis/lapseto.vue View File

1
 <template>
1
 <template>
2
-  <div class="app-container" id="outcome-indicators-query">
3
-    <analysis-nav activeName="lapseto"></analysis-nav>
4
-
5
-    <div class="cell">
6
-      <label class="title">
7
-        <span class="name">日期查询</span> :
8
-      </label>
9
-      <el-date-picker
10
-        v-model="listQuery.start_time"
11
-        prefix-icon="el-icon-date"
12
-        @change="changeTime"
13
-        :editable="false"
14
-        style="width: 196px;"
15
-        type="date"
16
-        placeholder="选择日期时间"
17
-        align="right"
18
-        :picker-options="pickerOptions"
19
-        format="yyyy-MM-dd"
20
-        value-format="yyyy-MM-dd"
21
-      ></el-date-picker>
22
-      <span class>-</span>
23
-      <el-date-picker
24
-        v-model="listQuery.end_time"
25
-        prefix-icon="el-icon-date"
26
-        @change="changeTime"
27
-        :editable="false"
28
-        style="width: 196px;"
29
-        type="date"
30
-        placeholder="选择日期时间"
31
-        align="right"
32
-        :picker-options="pickerOptions"
33
-        format="yyyy-MM-dd"
34
-        value-format="yyyy-MM-dd"
35
-      ></el-date-picker>
2
+ <div class="main-contain">
3
+    <div class="position">
4
+      <bread-crumb :crumbs='crumbs'></bread-crumb>
36
     </div>
5
     </div>
37
-    <div class="cell clearfix">
38
-      <label class="title">
39
-        <span class="name">转归状态</span> :
40
-      </label>
41
-      <div class="time">
42
-        <ul class>
43
-          <li
44
-            :class="item.lapseto==lapsetoType?'active':''"
45
-            @click="selectLapseTo( item.lapseto)"
46
-            v-for="item in lapsetoState"
47
-            :key="item.value"
48
-          >{{item.label}}</li>
49
-        </ul>
6
+    <div class="app-container" id="outcome-indicators-query">
7
+      <analysis-nav activeName="lapseto"></analysis-nav>
8
+
9
+      <div class="cell">
10
+        <label class="title">
11
+          <span class="name">日期查询</span> :
12
+        </label>
13
+        <el-date-picker
14
+          v-model="listQuery.start_time"
15
+          prefix-icon="el-icon-date"
16
+          @change="changeTime"
17
+          :editable="false"
18
+          style="width: 196px;"
19
+          type="date"
20
+          placeholder="选择日期时间"
21
+          align="right"
22
+          format="yyyy-MM-dd"
23
+          value-format="yyyy-MM-dd"
24
+        ></el-date-picker>
25
+        <span class>-</span>
26
+        <el-date-picker
27
+          v-model="listQuery.end_time"
28
+          prefix-icon="el-icon-date"
29
+          @change="changeTime"
30
+          :editable="false"
31
+          style="width: 196px;"
32
+          type="date"
33
+          placeholder="选择日期时间"
34
+          align="right"
35
+          format="yyyy-MM-dd"
36
+          value-format="yyyy-MM-dd"
37
+        ></el-date-picker>
50
       </div>
38
       </div>
51
-    </div>
52
-    <div class="cell clearfix">
53
-      <label class="title">
54
-        <span class="name">患者来源</span> :
55
-      </label>
56
-      <div class="time">
57
-        <ul class>
58
-          <li
59
-            :class="item.source==sourceType?'active':''"
60
-            @click="selectSource( item.source)"
61
-            v-for="item in sourceOptions"
62
-            :key="item.value"
63
-          >{{item.label}}</li>
64
-        </ul>
39
+      <div class="cell clearfix">
40
+        <label class="title">
41
+          <span class="name">转归状态</span> :
42
+        </label>
43
+        <div class="time">
44
+          <ul class>
45
+            <li
46
+              :class="item.lapseto==lapsetoType?'active':''"
47
+              @click="selectLapseTo( item.lapseto)"
48
+              v-for="item in lapsetoState"
49
+              :key="item.value"
50
+            >{{item.label}}</li>
51
+          </ul>
52
+        </div>
65
       </div>
53
       </div>
66
-    </div>
67
-    <div class="cell clearfix">
68
-      <label class="title">
69
-        <span class="name">年龄</span> :
70
-      </label>
71
-      <div class="time">
72
-        <ul class>
73
-          <li
74
-            :class="item.age==ageType?'active':''"
75
-            @click="selectAge( item.age)"
76
-            v-for="item in ageOptions"
77
-            :key="item.value"
78
-          >{{item.label}}</li>
79
-        </ul>
54
+      <div class="cell clearfix">
55
+        <label class="title">
56
+          <span class="name">患者来源</span> :
57
+        </label>
58
+        <div class="time">
59
+          <ul class>
60
+            <li
61
+              :class="item.source==sourceType?'active':''"
62
+              @click="selectSource( item.source)"
63
+              v-for="item in sourceOptions"
64
+              :key="item.value"
65
+            >{{item.label}}</li>
66
+          </ul>
67
+        </div>
68
+      </div>
69
+      <div class="cell clearfix">
70
+        <label class="title">
71
+          <span class="name">年龄</span> :
72
+        </label>
73
+        <div class="time">
74
+          <ul class>
75
+            <li
76
+              :class="item.age==ageType?'active':''"
77
+              @click="selectAge( item.age)"
78
+              v-for="item in ageOptions"
79
+              :key="item.value"
80
+            >{{item.label}}</li>
81
+          </ul>
82
+        </div>
80
       </div>
83
       </div>
81
-    </div>
82
 
84
 
83
 
85
 
84
-    <h4 class="hui">统计图</h4>
85
-    <hr class="huixiao">
86
-    <el-row :gutter="32">
87
-      <el-col :xs="24" :sm="24" :lg="24">
88
-        <div class="chart-wrapper">
89
-            <pie-chart title="" :options="CompletionOptions"/>
90
-        </div>
91
-      </el-col>
92
-    </el-row>
86
+      <h4 class="hui">统计图</h4>
87
+      <hr class="huixiao">
88
+      <el-row :gutter="32">
89
+        <el-col :xs="24" :sm="24" :lg="24">
90
+          <div class="chart-wrapper">
91
+              <pie-chart title="" :options="CompletionOptions"/>
92
+          </div>
93
+        </el-col>
94
+      </el-row>
93
 
95
 
94
-    <h4 class="hui">统计表</h4>
95
-    <hr class="huixiao">
96
-    <el-table
97
-      ref="multipleTable"
98
-      :data="tableData"
99
-      border
100
-      fit
101
-      highlight-current-row
102
-      style="width: 100%;margin-top: 10px;"
103
-    >
104
-      
105
-      <el-table-column  label="日期" min-width="80" property="created_time" align="center">
106
-        <template slot-scope="scope"><span>{{getTime(scope.row.created_time,'{y}-{m}-{d}')}}</span></template>
107
-      </el-table-column>
108
-      <el-table-column  label="透析号" min-width="100" property="dialysis_no" align="center">
109
-      </el-table-column>
110
-      <el-table-column  label="姓名" min-width="100" property="name" align="center">
111
-      </el-table-column>
112
-      <el-table-column  label="患者来源" min-width="80" property="source" align="center">
113
-        <template slot-scope="scope"><span>{{getPatientSource(scope.row.source)}}</span></template>
114
-      </el-table-column>
115
-      <el-table-column  label="归转状态" min-width="80" property="lapseto" align="center">
116
-        <template slot-scope="scope"><span>{{getPatientLapseto(scope.row.lapseto)}}</span></template>
117
-      </el-table-column>
118
-      
119
-    </el-table>
96
+      <h4 class="hui">统计表</h4>
97
+      <hr class="huixiao">
98
+      <el-table
99
+        ref="multipleTable"
100
+        :data="tableData"
101
+        border
102
+        fit
103
+        highlight-current-row
104
+        style="width: 100%;margin-top: 10px;"
105
+        :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)'}"
106
+      >
107
+        
108
+        <el-table-column  label="日期" min-width="80" property="created_time" align="center">
109
+          <template slot-scope="scope"><span>{{getTime(scope.row.created_time,'{y}-{m}-{d}')}}</span></template>
110
+        </el-table-column>
111
+        <el-table-column  label="透析号" min-width="100" property="dialysis_no" align="center">
112
+        </el-table-column>
113
+        <el-table-column  label="姓名" min-width="100" property="name" align="center">
114
+        </el-table-column>
115
+        <el-table-column  label="患者来源" min-width="80" property="source" align="center">
116
+          <template slot-scope="scope"><span>{{getPatientSource(scope.row.source)}}</span></template>
117
+        </el-table-column>
118
+        <el-table-column  label="归转状态" min-width="80" property="lapseto" align="center">
119
+          <template slot-scope="scope"><span>{{getPatientLapseto(scope.row.lapseto)}}</span></template>
120
+        </el-table-column>
121
+        
122
+      </el-table>
120
 
123
 
121
-    <!-- <pagi-nation title="分页"></pagi-nation> -->
124
+      <!-- <pagi-nation title="分页"></pagi-nation> -->
122
 
125
 
123
-    <el-pagination
124
-      @size-change="handleSizeChange"
125
-      @current-change="handleCurrentChange"
126
-      :current-page="listQuery.pate"
127
-      :page-sizes="[10, 20, 50, 100]"
128
-      :page-size="10"
129
-      background
130
-      style="margin-top:20px;"
131
-      layout="total, sizes, prev, pager, next, jumper"
132
-      :total="total"
133
-    ></el-pagination>
126
+      <el-pagination
127
+      align="right"
128
+        @size-change="handleSizeChange"
129
+        @current-change="handleCurrentChange"
130
+        :current-page="listQuery.pate"
131
+        :page-sizes="[10, 20, 50, 100]"
132
+        :page-size="10"
133
+        background
134
+        style="margin-top:20px;"
135
+        layout="total, sizes, prev, pager, next, jumper"
136
+        :total="total"
137
+      ></el-pagination>
138
+    </div>
134
   </div>
139
   </div>
135
 </template>
140
 </template>
136
 
141
 
140
 import PieChart from '../components/PieChart'
145
 import PieChart from '../components/PieChart'
141
 import {jsGetAge, uParseTime} from "@/utils/tools";
146
 import {jsGetAge, uParseTime} from "@/utils/tools";
142
 import analysisNav from './components/analysisNav'
147
 import analysisNav from './components/analysisNav'
148
+import BreadCrumb from "@/xt_pages/components/bread-crumb";
143
 export default {
149
 export default {
144
   name: "totalAnalysis",
150
   name: "totalAnalysis",
145
   data() {
151
   data() {
146
     return {
152
     return {
153
+      crumbs:[
154
+        {path:false, name:'科室质控'},
155
+        {path:false, name:'患者分析'},
156
+        {path:false, name:'转归分析'},
157
+      ],
147
       total: 0,
158
       total: 0,
148
       patientMap:{},
159
       patientMap:{},
149
       listQuery: {
160
       listQuery: {
178
         { value: 3, label: "40~50", age: 3 },
189
         { value: 3, label: "40~50", age: 3 },
179
         { value: 4, label: "其他", age: 4 },
190
         { value: 4, label: "其他", age: 4 },
180
       ],
191
       ],
181
-      pickerOptions: {
182
-        shortcuts: [
183
-          {
184
-            text: "今天",
185
-            onClick(picker) {
186
-              picker.$emit("pick", new Date());
187
-            }
188
-          },
189
-          {
190
-            text: "昨天",
191
-            onClick(picker) {
192
-              const date = new Date();
193
-              date.setTime(date.getTime() - 3600 * 1000 * 24);
194
-              picker.$emit("pick", date);
195
-            }
196
-          },
197
-          {
198
-            text: "一周前",
199
-            onClick(picker) {
200
-              const date = new Date();
201
-              date.setTime(date.getTime() - 3600 * 1000 * 24 * 7);
202
-              picker.$emit("pick", date);
203
-            }
204
-          },
205
-          {
206
-            text: "清空",
207
-            onClick(picker) {
208
-              picker.$emit("pick");
209
-            }
210
-          }
211
-        ]
212
-      }
213
     };
192
     };
214
   },
193
   },
215
   created() {
194
   created() {
357
   },
336
   },
358
   components: {
337
   components: {
359
       analysisNav,
338
       analysisNav,
360
-      PieChart
339
+      PieChart,
340
+      BreadCrumb
361
   }
341
   }
362
 };
342
 };
363
 </script>
343
 </script>
374
 <style rel="stylesheet/scss" lang="scss" scoped>
354
 <style rel="stylesheet/scss" lang="scss" scoped>
375
 .app-container {
355
 .app-container {
376
 //   margin: 20px;
356
 //   margin: 20px;
377
-    margin-bottom: 50px;
378
   font-size: 15px;
357
   font-size: 15px;
379
   .filter-container {
358
   .filter-container {
380
     padding-bottom: 5px;
359
     padding-bottom: 5px;
386
   .huixiao {
365
   .huixiao {
387
     border: solid 1px #ebeef5;
366
     border: solid 1px #ebeef5;
388
   }
367
   }
389
-  .el-pagination {
390
-    float: right !important;
391
-  }
392
   .search-component {
368
   .search-component {
393
     width: 500px;
369
     width: 500px;
394
     .searchBox {
370
     .searchBox {

+ 129 - 153
src/xt_pages/qcd/patientAnalysis/total.vue View File

1
 <template>
1
 <template>
2
-  <div class="app-container" id="outcome-indicators-query">
3
-    <analysis-nav activeName="total"></analysis-nav>
4
-
5
-    <div class="cell">
6
-      <el-form :inline="true" :model="listQuery" >
7
-        <el-form-item label="">
8
-          <el-input v-model="listQuery.search" placeholder="姓名/透析号"></el-input>
9
-        </el-form-item>
10
-        <el-form-item>
11
-          <el-button type="primary" @click="onSearch">搜索</el-button>
12
-        </el-form-item>
13
-      </el-form>
14
-    </div>
15
-    <div class="cell">
16
-      <label class="title">
17
-        <span class="name">日期查询</span> :
18
-      </label>
19
-      <el-date-picker
20
-        v-model="listQuery.start_time"
21
-        prefix-icon="el-icon-date"
22
-        @change="changeTime"
23
-        :editable="false"
24
-        style="width: 196px;"
25
-        type="date"
26
-        placeholder="选择日期时间"
27
-        align="right"
28
-        :picker-options="pickerOptions"
29
-        format="yyyy-MM-dd"
30
-        value-format="yyyy-MM-dd"
31
-      ></el-date-picker>
32
-      <span class>-</span>
33
-      <el-date-picker
34
-        v-model="listQuery.end_time"
35
-        prefix-icon="el-icon-date"
36
-        @change="changeTime"
37
-        :editable="false"
38
-        style="width: 196px;"
39
-        type="date"
40
-        placeholder="选择日期时间"
41
-        align="right"
42
-        :picker-options="pickerOptions"
43
-        format="yyyy-MM-dd"
44
-        value-format="yyyy-MM-dd"
45
-      ></el-date-picker>
2
+ <div class="main-contain">
3
+    <div class="position">
4
+      <bread-crumb :crumbs='crumbs'></bread-crumb>
46
     </div>
5
     </div>
47
-    <div class="cell clearfix">
48
-      <label class="title">
49
-        <span class="name">转归状态</span> :
50
-      </label>
51
-      <div class="time">
52
-        <ul class>
53
-          <li
54
-            :class="item.lapseto==lapsetoType?'active':''"
55
-            @click="selectLapseTo( item.lapseto)"
56
-            v-for="item in lapsetoState"
57
-            :key="item.value"
58
-          >{{item.label}}</li>
59
-        </ul>
6
+    <div class="app-container" id="outcome-indicators-query">
7
+      <analysis-nav activeName="total"></analysis-nav>
8
+
9
+      <div class="cell">
10
+        <el-form :inline="true" :model="listQuery" >
11
+          <el-form-item label="">
12
+            <el-input v-model="listQuery.search" placeholder="姓名/透析号"></el-input>
13
+          </el-form-item>
14
+          <el-form-item>
15
+            <el-button type="primary" @click="onSearch">搜索</el-button>
16
+          </el-form-item>
17
+        </el-form>
60
       </div>
18
       </div>
61
-    </div>
62
-    <div class="cell clearfix">
63
-      <label class="title">
64
-        <span class="name">年龄</span> :
65
-      </label>
66
-      <div class="time">
67
-        <ul class>
68
-          <li
69
-            :class="item.age==ageType?'active':''"
70
-            @click="selectAge( item.age)"
71
-            v-for="item in ageOptions"
72
-            :key="item.value"
73
-          >{{item.label}}</li>
74
-        </ul>
19
+      <div class="cell">
20
+        <label class="title">
21
+          <span class="name">日期查询</span> :
22
+        </label>
23
+        <el-date-picker
24
+          v-model="listQuery.start_time"
25
+          prefix-icon="el-icon-date"
26
+          @change="changeTime"
27
+          :editable="false"
28
+          style="width: 196px;"
29
+          type="date"
30
+          placeholder="选择日期时间"
31
+          align="right"
32
+          format="yyyy-MM-dd"
33
+          value-format="yyyy-MM-dd"
34
+        ></el-date-picker>
35
+        <span class>-</span>
36
+        <el-date-picker
37
+          v-model="listQuery.end_time"
38
+          prefix-icon="el-icon-date"
39
+          @change="changeTime"
40
+          :editable="false"
41
+          style="width: 196px;"
42
+          type="date"
43
+          placeholder="选择日期时间"
44
+          align="right"
45
+          format="yyyy-MM-dd"
46
+          value-format="yyyy-MM-dd"
47
+        ></el-date-picker>
48
+      </div>
49
+      <div class="cell clearfix">
50
+        <label class="title">
51
+          <span class="name">转归状态</span> :
52
+        </label>
53
+        <div class="time">
54
+          <ul class>
55
+            <li
56
+              :class="item.lapseto==lapsetoType?'active':''"
57
+              @click="selectLapseTo( item.lapseto)"
58
+              v-for="item in lapsetoState"
59
+              :key="item.value"
60
+            >{{item.label}}</li>
61
+          </ul>
62
+        </div>
63
+      </div>
64
+      <div class="cell clearfix">
65
+        <label class="title">
66
+          <span class="name">年龄</span> :
67
+        </label>
68
+        <div class="time">
69
+          <ul class>
70
+            <li
71
+              :class="item.age==ageType?'active':''"
72
+              @click="selectAge( item.age)"
73
+              v-for="item in ageOptions"
74
+              :key="item.value"
75
+            >{{item.label}}</li>
76
+          </ul>
77
+        </div>
75
       </div>
78
       </div>
76
-    </div>
77
 
79
 
78
 
80
 
79
-    <h4 class="hui">统计图</h4>
80
-    <hr class="huixiao">
81
-    <el-row :gutter="32">
82
-      <el-col :xs="24" :sm="24" :lg="24">
83
-        <div class="chart-wrapper">
84
-            <pie-chart title="" :options="CompletionOptions"/>
85
-        </div>
86
-      </el-col>
87
-    </el-row>
81
+      <h4 class="hui">统计图</h4>
82
+      <hr class="huixiao">
83
+      <el-row :gutter="32">
84
+        <el-col :xs="24" :sm="24" :lg="24">
85
+          <div class="chart-wrapper">
86
+              <pie-chart title="" :options="CompletionOptions"/>
87
+          </div>
88
+        </el-col>
89
+      </el-row>
88
 
90
 
89
-    <h4 class="hui">统计表</h4>
90
-    <hr class="huixiao">
91
-    <el-table
92
-      ref="multipleTable"
93
-      :data="tableData"
94
-      border
95
-      fit
96
-      highlight-current-row
97
-      style="width: 100%;margin-top: 10px;"
98
-    >
99
-      
100
-      <el-table-column  label="透析号" min-width="100" property="dialysis_no" align="center">
101
-      </el-table-column>
102
-      <el-table-column  label="患者姓名" min-width="100" property="name" align="center">
103
-      </el-table-column>
104
-      <el-table-column  label="性别" min-width="80" property="gender" align="center">
105
-        <template slot-scope="scope"><span>{{getPatientGender(scope.row.gender)}}</span></template>
106
-      </el-table-column>
107
-      <el-table-column  label="年龄" min-width="80" property="birthday" align="center">
108
-        <template slot-scope="scope"><span>{{tranAge(scope.row.birthday)}}</span></template>
109
-      </el-table-column>
110
-      
111
-    </el-table>
91
+      <h4 class="hui">统计表</h4>
92
+      <hr class="huixiao">
93
+      <el-table
94
+        ref="multipleTable"
95
+        :data="tableData"
96
+        border
97
+        fit
98
+        highlight-current-row
99
+        style="width: 100%;margin-top: 10px;"
100
+        :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)'}"
101
+      >
102
+        
103
+        <el-table-column  label="透析号" min-width="100" property="dialysis_no" align="center">
104
+        </el-table-column>
105
+        <el-table-column  label="患者姓名" min-width="100" property="name" align="center">
106
+        </el-table-column>
107
+        <el-table-column  label="性别" min-width="80" property="gender" align="center">
108
+          <template slot-scope="scope"><span>{{getPatientGender(scope.row.gender)}}</span></template>
109
+        </el-table-column>
110
+        <el-table-column  label="年龄" min-width="80" property="birthday" align="center">
111
+          <template slot-scope="scope"><span>{{tranAge(scope.row.birthday)}}</span></template>
112
+        </el-table-column>
113
+        
114
+      </el-table>
112
 
115
 
113
-    <!-- <pagi-nation title="分页"></pagi-nation> -->
116
+      <!-- <pagi-nation title="分页"></pagi-nation> -->
114
 
117
 
115
-    <el-pagination
116
-      @size-change="handleSizeChange"
117
-      @current-change="handleCurrentChange"
118
-      :current-page="listQuery.pate"
119
-      :page-sizes="[10, 20, 50, 100]"
120
-      :page-size="10"
121
-      background
122
-      style="margin-top:20px;"
123
-      layout="total, sizes, prev, pager, next, jumper"
124
-      :total="total"
125
-    ></el-pagination>
118
+      <el-pagination
119
+      align='right'
120
+        @size-change="handleSizeChange"
121
+        @current-change="handleCurrentChange"
122
+        :current-page="listQuery.pate"
123
+        :page-sizes="[10, 20, 50, 100]"
124
+        :page-size="10"
125
+        background
126
+        style="margin-top:20px;"
127
+        layout="total, sizes, prev, pager, next, jumper"
128
+        :total="total"
129
+      ></el-pagination>
130
+    </div>
126
   </div>
131
   </div>
127
 </template>
132
 </template>
128
 
133
 
132
 import PieChart from '../components/PieChart'
137
 import PieChart from '../components/PieChart'
133
 import {jsGetAge, uParseTime} from "@/utils/tools";
138
 import {jsGetAge, uParseTime} from "@/utils/tools";
134
 import analysisNav from './components/analysisNav'
139
 import analysisNav from './components/analysisNav'
140
+import BreadCrumb from "@/xt_pages/components/bread-crumb";
135
 export default {
141
 export default {
136
   name: "totalAnalysis",
142
   name: "totalAnalysis",
137
   data() {
143
   data() {
138
     return {
144
     return {
145
+      crumbs:[
146
+        {path:false, name:'科室质控'},
147
+        {path:false, name:'患者分析'},
148
+        {path:false, name:'总量分析'},
149
+      ],
139
       total: 0,
150
       total: 0,
140
       patientMap:{},
151
       patientMap:{},
141
       listQuery: {
152
       listQuery: {
163
         { value: 3, label: "40~50", age: 3 },
174
         { value: 3, label: "40~50", age: 3 },
164
         { value: 4, label: "其他", age: 4 },
175
         { value: 4, label: "其他", age: 4 },
165
       ],
176
       ],
166
-      pickerOptions: {
167
-        shortcuts: [
168
-          {
169
-            text: "今天",
170
-            onClick(picker) {
171
-              picker.$emit("pick", new Date());
172
-            }
173
-          },
174
-          {
175
-            text: "昨天",
176
-            onClick(picker) {
177
-              const date = new Date();
178
-              date.setTime(date.getTime() - 3600 * 1000 * 24);
179
-              picker.$emit("pick", date);
180
-            }
181
-          },
182
-          {
183
-            text: "一周前",
184
-            onClick(picker) {
185
-              const date = new Date();
186
-              date.setTime(date.getTime() - 3600 * 1000 * 24 * 7);
187
-              picker.$emit("pick", date);
188
-            }
189
-          },
190
-          {
191
-            text: "清空",
192
-            onClick(picker) {
193
-              picker.$emit("pick");
194
-            }
195
-          }
196
-        ]
197
-      }
198
     };
177
     };
199
   },
178
   },
200
   created() {
179
   created() {
320
   },
299
   },
321
   components: {
300
   components: {
322
       analysisNav,
301
       analysisNav,
323
-      PieChart
302
+      PieChart,
303
+      BreadCrumb
324
   }
304
   }
325
 };
305
 };
326
 </script>
306
 </script>
337
 <style rel="stylesheet/scss" lang="scss" scoped>
317
 <style rel="stylesheet/scss" lang="scss" scoped>
338
 .app-container {
318
 .app-container {
339
 //   margin: 20px;
319
 //   margin: 20px;
340
-    margin-bottom: 50px;
341
   font-size: 15px;
320
   font-size: 15px;
342
   .filter-container {
321
   .filter-container {
343
     padding-bottom: 5px;
322
     padding-bottom: 5px;
349
   .huixiao {
328
   .huixiao {
350
     border: solid 1px #ebeef5;
329
     border: solid 1px #ebeef5;
351
   }
330
   }
352
-  .el-pagination {
353
-    float: right !important;
354
-  }
355
   .search-component {
331
   .search-component {
356
     width: 500px;
332
     width: 500px;
357
     .searchBox {
333
     .searchBox {

+ 119 - 143
src/xt_pages/qcd/patientAnalysis/weight.vue View File

1
 <template>
1
 <template>
2
-  <div class="app-container" id="outcome-indicators-query">
3
-    <analysis-nav activeName="weight"></analysis-nav>
4
-
5
-    <div class="cell">
6
-      <label class="title">
7
-        <span class="name">日期查询</span> :
8
-      </label>
9
-      <el-date-picker
10
-        v-model="listQuery.start_time"
11
-        prefix-icon="el-icon-date"
12
-        @change="changeTime"
13
-        :editable="false"
14
-        style="width: 196px;"
15
-        type="date"
16
-        placeholder="选择日期时间"
17
-        align="right"
18
-        :picker-options="pickerOptions"
19
-        format="yyyy-MM-dd"
20
-        value-format="yyyy-MM-dd"
21
-      ></el-date-picker>
22
-      <span class>-</span>
23
-      <el-date-picker
24
-        v-model="listQuery.end_time"
25
-        prefix-icon="el-icon-date"
26
-        @change="changeTime"
27
-        :editable="false"
28
-        style="width: 196px;"
29
-        type="date"
30
-        placeholder="选择日期时间"
31
-        align="right"
32
-        :picker-options="pickerOptions"
33
-        format="yyyy-MM-dd"
34
-        value-format="yyyy-MM-dd"
35
-      ></el-date-picker>
2
+ <div class="main-contain">
3
+    <div class="position">
4
+      <bread-crumb :crumbs='crumbs'></bread-crumb>
36
     </div>
5
     </div>
37
-    <div class="cell clearfix">
38
-      <label class="title">
39
-        <span class="name">转归状态</span> :
40
-      </label>
41
-      <div class="time">
42
-        <ul class>
43
-          <li
44
-            :class="item.lapseto==lapsetoType?'active':''"
45
-            @click="selectLapseTo( item.lapseto)"
46
-            v-for="item in lapsetoState"
47
-            :key="item.value"
48
-          >{{item.label}}</li>
49
-        </ul>
6
+    <div class="app-container" id="outcome-indicators-query">
7
+      <analysis-nav activeName="weight"></analysis-nav>
8
+
9
+      <div class="cell">
10
+        <label class="title">
11
+          <span class="name">日期查询</span> :
12
+        </label>
13
+        <el-date-picker
14
+          v-model="listQuery.start_time"
15
+          prefix-icon="el-icon-date"
16
+          @change="changeTime"
17
+          :editable="false"
18
+          style="width: 196px;"
19
+          type="date"
20
+          placeholder="选择日期时间"
21
+          align="right"
22
+          format="yyyy-MM-dd"
23
+          value-format="yyyy-MM-dd"
24
+        ></el-date-picker>
25
+        <span class>-</span>
26
+        <el-date-picker
27
+          v-model="listQuery.end_time"
28
+          prefix-icon="el-icon-date"
29
+          @change="changeTime"
30
+          :editable="false"
31
+          style="width: 196px;"
32
+          type="date"
33
+          placeholder="选择日期时间"
34
+          align="right"
35
+          format="yyyy-MM-dd"
36
+          value-format="yyyy-MM-dd"
37
+        ></el-date-picker>
50
       </div>
38
       </div>
51
-    </div>
52
-    <div class="cell clearfix">
53
-      <label class="title">
54
-        <span class="name">年龄</span> :
55
-      </label>
56
-      <div class="time">
57
-        <ul class>
58
-          <li
59
-            :class="item.age==ageType?'active':''"
60
-            @click="selectAge( item.age)"
61
-            v-for="item in ageOptions"
62
-            :key="item.value"
63
-          >{{item.label}}</li>
64
-        </ul>
39
+      <div class="cell clearfix">
40
+        <label class="title">
41
+          <span class="name">转归状态</span> :
42
+        </label>
43
+        <div class="time">
44
+          <ul class>
45
+            <li
46
+              :class="item.lapseto==lapsetoType?'active':''"
47
+              @click="selectLapseTo( item.lapseto)"
48
+              v-for="item in lapsetoState"
49
+              :key="item.value"
50
+            >{{item.label}}</li>
51
+          </ul>
52
+        </div>
53
+      </div>
54
+      <div class="cell clearfix">
55
+        <label class="title">
56
+          <span class="name">年龄</span> :
57
+        </label>
58
+        <div class="time">
59
+          <ul class>
60
+            <li
61
+              :class="item.age==ageType?'active':''"
62
+              @click="selectAge( item.age)"
63
+              v-for="item in ageOptions"
64
+              :key="item.value"
65
+            >{{item.label}}</li>
66
+          </ul>
67
+        </div>
65
       </div>
68
       </div>
66
-    </div>
67
 
69
 
68
 
70
 
69
-    <h4 class="hui">统计图</h4>
70
-    <hr class="huixiao">
71
-    <el-row :gutter="32">
72
-      <el-col :xs="24" :sm="24" :lg="24">
73
-        <div class="chart-wrapper">
74
-            <pie-chart title="留治情况" :options="CompletionOptions"/>
75
-        </div>
76
-      </el-col>
77
-    </el-row>
71
+      <h4 class="hui">统计图</h4>
72
+      <hr class="huixiao">
73
+      <el-row :gutter="32">
74
+        <el-col :xs="24" :sm="24" :lg="24">
75
+          <div class="chart-wrapper">
76
+              <pie-chart title="留治情况" :options="CompletionOptions"/>
77
+          </div>
78
+        </el-col>
79
+      </el-row>
78
 
80
 
79
-    <h4 class="hui">统计表</h4>
80
-    <hr class="huixiao">
81
-    <el-table
82
-      ref="multipleTable"
83
-      :data="tableData"
84
-      border
85
-      fit
86
-      highlight-current-row
87
-      style="width: 100%;margin-top: 10px;"
88
-    >
89
-      
90
-      <el-table-column  label="透析号" min-width="100" property="dialysis_no" align="center">
91
-      </el-table-column>
92
-      <el-table-column  label="患者姓名" min-width="100" property="name" align="center">
93
-      </el-table-column>
94
-      <el-table-column  label="性别" min-width="80" property="gender" align="center">
95
-        <template slot-scope="scope"><span>{{getPatientGender(scope.row.gender)}}</span></template>
96
-      </el-table-column>
97
-      <el-table-column  label="年龄" min-width="80" property="birthday" align="center">
98
-        <template slot-scope="scope"><span>{{tranAge(scope.row.birthday)}}</span></template>
99
-      </el-table-column>
100
-      
101
-    </el-table>
81
+      <h4 class="hui">统计表</h4>
82
+      <hr class="huixiao">
83
+      <el-table
84
+        ref="multipleTable"
85
+        :data="tableData"
86
+        border
87
+        fit
88
+        highlight-current-row
89
+        style="width: 100%;margin-top: 10px;"
90
+        :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)'}"
91
+      >
92
+        
93
+        <el-table-column  label="透析号" min-width="100" property="dialysis_no" align="center">
94
+        </el-table-column>
95
+        <el-table-column  label="患者姓名" min-width="100" property="name" align="center">
96
+        </el-table-column>
97
+        <el-table-column  label="性别" min-width="80" property="gender" align="center">
98
+          <template slot-scope="scope"><span>{{getPatientGender(scope.row.gender)}}</span></template>
99
+        </el-table-column>
100
+        <el-table-column  label="年龄" min-width="80" property="birthday" align="center">
101
+          <template slot-scope="scope"><span>{{tranAge(scope.row.birthday)}}</span></template>
102
+        </el-table-column>
103
+        
104
+      </el-table>
102
 
105
 
103
-    <!-- <pagi-nation title="分页"></pagi-nation> -->
106
+      <!-- <pagi-nation title="分页"></pagi-nation> -->
104
 
107
 
105
-    <el-pagination
106
-      @size-change="handleSizeChange"
107
-      @current-change="handleCurrentChange"
108
-      :current-page="listQuery.pate"
109
-      :page-sizes="[10, 20, 50, 100]"
110
-      :page-size="10"
111
-      background
112
-      style="margin-top:20px;"
113
-      layout="total, sizes, prev, pager, next, jumper"
114
-      :total="total"
115
-    ></el-pagination>
108
+      <el-pagination
109
+      align="right"
110
+        @size-change="handleSizeChange"
111
+        @current-change="handleCurrentChange"
112
+        :current-page="listQuery.pate"
113
+        :page-sizes="[10, 20, 50, 100]"
114
+        :page-size="10"
115
+        background
116
+        style="margin-top:20px;"
117
+        layout="total, sizes, prev, pager, next, jumper"
118
+        :total="total"
119
+      ></el-pagination>
120
+    </div>
116
   </div>
121
   </div>
117
 </template>
122
 </template>
118
 
123
 
122
 import PieChart from '../components/PieChart'
127
 import PieChart from '../components/PieChart'
123
 import {jsGetAge, uParseTime} from "@/utils/tools";
128
 import {jsGetAge, uParseTime} from "@/utils/tools";
124
 import analysisNav from './components/analysisNav'
129
 import analysisNav from './components/analysisNav'
130
+import BreadCrumb from "@/xt_pages/components/bread-crumb";
125
 export default {
131
 export default {
126
   name: "totalAnalysis",
132
   name: "totalAnalysis",
127
   data() {
133
   data() {
128
     return {
134
     return {
135
+      crumbs:[
136
+        {path:false, name:'科室质控'},
137
+        {path:false, name:'患者分析'},
138
+        {path:false, name:'体重分析'},
139
+      ],
129
       total: 0,
140
       total: 0,
130
       patientMap:{},
141
       patientMap:{},
131
       listQuery: {
142
       listQuery: {
153
         { value: 3, label: "40~50", age: 3 },
164
         { value: 3, label: "40~50", age: 3 },
154
         { value: 4, label: "其他", age: 4 },
165
         { value: 4, label: "其他", age: 4 },
155
       ],
166
       ],
156
-      pickerOptions: {
157
-        shortcuts: [
158
-          {
159
-            text: "今天",
160
-            onClick(picker) {
161
-              picker.$emit("pick", new Date());
162
-            }
163
-          },
164
-          {
165
-            text: "昨天",
166
-            onClick(picker) {
167
-              const date = new Date();
168
-              date.setTime(date.getTime() - 3600 * 1000 * 24);
169
-              picker.$emit("pick", date);
170
-            }
171
-          },
172
-          {
173
-            text: "一周前",
174
-            onClick(picker) {
175
-              const date = new Date();
176
-              date.setTime(date.getTime() - 3600 * 1000 * 24 * 7);
177
-              picker.$emit("pick", date);
178
-            }
179
-          },
180
-          {
181
-            text: "清空",
182
-            onClick(picker) {
183
-              picker.$emit("pick");
184
-            }
185
-          }
186
-        ]
187
-      }
188
     };
167
     };
189
   },
168
   },
190
   created() {
169
   created() {
307
   },
286
   },
308
   components: {
287
   components: {
309
       analysisNav,
288
       analysisNav,
310
-      PieChart
289
+      PieChart,
290
+      BreadCrumb
311
   }
291
   }
312
 };
292
 };
313
 </script>
293
 </script>
324
 <style rel="stylesheet/scss" lang="scss" scoped>
304
 <style rel="stylesheet/scss" lang="scss" scoped>
325
 .app-container {
305
 .app-container {
326
 //   margin: 20px;
306
 //   margin: 20px;
327
-    margin-bottom: 50px;
328
   font-size: 15px;
307
   font-size: 15px;
329
   .filter-container {
308
   .filter-container {
330
     padding-bottom: 5px;
309
     padding-bottom: 5px;
336
   .huixiao {
315
   .huixiao {
337
     border: solid 1px #ebeef5;
316
     border: solid 1px #ebeef5;
338
   }
317
   }
339
-  .el-pagination {
340
-    float: right !important;
341
-  }
342
   .search-component {
318
   .search-component {
343
     width: 500px;
319
     width: 500px;
344
     .searchBox {
320
     .searchBox {

+ 127 - 152
src/xt_pages/qcd/processIndicators.vue View File

1
 <template>
1
 <template>
2
-  <div class="app-container">
3
-    <div class="cell">
4
-      <label class="title">
5
-        <span class="name">日期查询</span> :
6
-      </label>
7
-      <el-date-picker
8
-        v-model="listQuery.start_time"
9
-        prefix-icon="el-icon-date"
10
-        @change="changeTime"
11
-        :editable="false"
12
-        style="width: 196px;"
13
-        type="date"
14
-        placeholder="选择日期时间"
15
-        align="right"
16
-        :picker-options="pickerOptions"
17
-        format="yyyy-MM-dd"
18
-        value-format="yyyy-MM-dd"
19
-      ></el-date-picker>
20
-      <span class>-</span>
21
-      <el-date-picker
22
-        v-model="listQuery.end_time"
23
-        prefix-icon="el-icon-date"
24
-        @change="changeTime"
25
-        :editable="false"
26
-        style="width: 196px;"
27
-        type="date"
28
-        placeholder="选择日期时间"
29
-        align="right"
30
-        :picker-options="pickerOptions"
31
-        format="yyyy-MM-dd"
32
-        value-format="yyyy-MM-dd"
33
-      ></el-date-picker>
2
+ <div class="main-contain">
3
+    <div class="position">
4
+      <bread-crumb :crumbs='crumbs'></bread-crumb>
34
     </div>
5
     </div>
35
-    <div class="cell clearfix">
36
-      <label class="title">
37
-        <span class="name">透析龄</span> :
38
-      </label>
39
-      <div class="time">
40
-        <ul class>
41
-          <li
42
-            :class="item.value==dialysisAge?'active':''"
43
-            @click="selectdialysisAges(item.value)"
44
-            v-for="item in dialysisAgeOptions"
45
-            :key="item.value"
46
-          >{{item.label}}</li>
47
-        </ul>
6
+    <div class="app-container">
7
+      <div class="cell">
8
+        <label class="title">
9
+          <span class="name">日期查询</span> :
10
+        </label>
11
+        <el-date-picker
12
+          v-model="listQuery.start_time"
13
+          prefix-icon="el-icon-date"
14
+          @change="changeTime"
15
+          :editable="false"
16
+          style="width: 196px;"
17
+          type="date"
18
+          placeholder="选择日期时间"
19
+          align="right"
20
+          format="yyyy-MM-dd"
21
+          value-format="yyyy-MM-dd"
22
+        ></el-date-picker>
23
+        <span class>-</span>
24
+        <el-date-picker
25
+          v-model="listQuery.end_time"
26
+          prefix-icon="el-icon-date"
27
+          @change="changeTime"
28
+          :editable="false"
29
+          style="width: 196px;"
30
+          type="date"
31
+          placeholder="选择日期时间"
32
+          align="right"
33
+          format="yyyy-MM-dd"
34
+          value-format="yyyy-MM-dd"
35
+        ></el-date-picker>
48
       </div>
36
       </div>
49
-    </div>
50
-    <div class="cell clearfix">
51
-      <label class="title">
52
-        <span class="name">转归状态</span> :
53
-      </label>
54
-      <div class="time">
55
-        <ul class>
56
-          <li
57
-            :class="item.lapseto==lapsetoType?'active':''"
58
-            @click="selectLapseTo( item.lapseto)"
59
-            v-for="item in lapsetoState"
60
-            :key="item.value"
61
-          >{{item.label}}</li>
62
-        </ul>
37
+      <div class="cell clearfix">
38
+        <label class="title">
39
+          <span class="name">透析龄</span> :
40
+        </label>
41
+        <div class="time">
42
+          <ul class>
43
+            <li
44
+              :class="item.value==dialysisAge?'active':''"
45
+              @click="selectdialysisAges(item.value)"
46
+              v-for="item in dialysisAgeOptions"
47
+              :key="item.value"
48
+            >{{item.label}}</li>
49
+          </ul>
50
+        </div>
51
+      </div>
52
+      <div class="cell clearfix">
53
+        <label class="title">
54
+          <span class="name">转归状态</span> :
55
+        </label>
56
+        <div class="time">
57
+          <ul class>
58
+            <li
59
+              :class="item.lapseto==lapsetoType?'active':''"
60
+              @click="selectLapseTo( item.lapseto)"
61
+              v-for="item in lapsetoState"
62
+              :key="item.value"
63
+            >{{item.label}}</li>
64
+          </ul>
65
+        </div>
63
       </div>
66
       </div>
64
-    </div>
65
 
67
 
66
-    <div class="cell">
67
-      <label class="title">
68
-        <span class="name">检验项目</span> :
69
-      </label>
70
-      <el-select v-model="listQuery.project_id" placeholder="请选择" @change="changeModel()">
71
-        <el-option label="全部" value=""></el-option>
72
-        <el-option v-for="item in projectOptions" :key="item.project_id" :label="item.project_name" :value="item.project_id"></el-option>
73
-      </el-select>
74
-    </div>
68
+      <div class="cell">
69
+        <label class="title">
70
+          <span class="name">检验项目</span> :
71
+        </label>
72
+        <el-select v-model="listQuery.project_id" placeholder="请选择" @change="changeModel()">
73
+          <el-option label="全部" value=""></el-option>
74
+          <el-option v-for="item in projectOptions" :key="item.project_id" :label="item.project_name" :value="item.project_id"></el-option>
75
+        </el-select>
76
+      </div>
75
 
77
 
76
-    <h4 class="hui">统计图</h4>
77
-    <hr class="huixiao">
78
-    <el-row :gutter="32">
79
-      <el-col :xs="24" :sm="24" :lg="24">
80
-        <div class="chart-wrapper">
81
-            <pie-chart title="" :options="CompletionOptions"/>
82
-        </div>
83
-      </el-col>
84
-    </el-row>
78
+      <h4 class="hui">统计图</h4>
79
+      <hr class="huixiao">
80
+      <el-row :gutter="32">
81
+        <el-col :xs="24" :sm="24" :lg="24">
82
+          <div class="chart-wrapper">
83
+              <pie-chart title="" :options="CompletionOptions"/>
84
+          </div>
85
+        </el-col>
86
+      </el-row>
85
 
87
 
86
-    <h4 class="hui">统计表</h4>
87
-    <hr class="huixiao">
88
-    <el-table
89
-      ref="multipleTable"
90
-      :data="tableData"
91
-      :span-method="mergeSpan"
92
-      border
93
-      fit
94
-      highlight-current-row
95
-      style="width: 100%;margin-top: 10px;"
96
-    >
97
-      
98
-      <el-table-column label="透析号" min-width="80" property="patient_id" align="center">
99
-        <template slot-scope="scope"><span>{{getPatientDialysisNo(scope.row.patient_id)}}</span></template>
100
-      </el-table-column>
101
-      <el-table-column label="姓名" min-width="80" property="patient_id" align="center">
102
-        <template slot-scope="scope"><span>{{getPatientName(scope.row.patient_id)}}</span></template>
103
-      </el-table-column>
104
-      <el-table-column label="检查项目" min-width="80" property="project_id" align="center">
105
-        <template slot-scope="scope"><span>{{getProjectName(scope.row.project_id)}}</span></template>
106
-      </el-table-column>
107
-      <el-table-column label="检查日期" min-width="80" property="inspect_date" align="center">
108
-        <template slot-scope="scope"><span>{{getTime(scope.row.inspect_date, '{y}{m}{d}')}}</span></template>
109
-      </el-table-column>
110
-    </el-table>
88
+      <h4 class="hui">统计表</h4>
89
+      <hr class="huixiao">
90
+      <el-table
91
+        ref="multipleTable"
92
+        :data="tableData"
93
+        :span-method="mergeSpan"
94
+        border
95
+        fit
96
+        highlight-current-row
97
+        style="width: 100%;margin-top: 10px;"
98
+        :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)'}"
99
+      >
100
+        
101
+        <el-table-column label="透析号" min-width="80" property="patient_id" align="center">
102
+          <template slot-scope="scope"><span>{{getPatientDialysisNo(scope.row.patient_id)}}</span></template>
103
+        </el-table-column>
104
+        <el-table-column label="姓名" min-width="80" property="patient_id" align="center">
105
+          <template slot-scope="scope"><span>{{getPatientName(scope.row.patient_id)}}</span></template>
106
+        </el-table-column>
107
+        <el-table-column label="检查项目" min-width="80" property="project_id" align="center">
108
+          <template slot-scope="scope"><span>{{getProjectName(scope.row.project_id)}}</span></template>
109
+        </el-table-column>
110
+        <el-table-column label="检查日期" min-width="80" property="inspect_date" align="center">
111
+          <template slot-scope="scope"><span>{{getTime(scope.row.inspect_date, '{y}{m}{d}')}}</span></template>
112
+        </el-table-column>
113
+      </el-table>
111
 
114
 
112
-    <!-- <pagi-nation title="分页"></pagi-nation> -->
115
+      <!-- <pagi-nation title="分页"></pagi-nation> -->
113
 
116
 
114
-    <el-pagination
115
-      @size-change="handleSizeChange"
116
-      @current-change="handleCurrentChange"
117
-      :current-page="listQuery.pate"
118
-      :page-sizes="[10, 20, 50, 100]"
119
-      :page-size="10"
120
-      background
121
-      style="margin-top:20px;"
122
-      layout="total, sizes, prev, pager, next, jumper"
123
-      :total="total"
124
-    ></el-pagination>
117
+      <el-pagination
118
+        align="right"
119
+        @size-change="handleSizeChange"
120
+        @current-change="handleCurrentChange"
121
+        :current-page="listQuery.pate"
122
+        :page-sizes="[10, 20, 50, 100]"
123
+        :page-size="10"
124
+        background
125
+        style="margin-top:20px;"
126
+        layout="total, sizes, prev, pager, next, jumper"
127
+        :total="total"
128
+      ></el-pagination>
129
+    </div>
125
   </div>
130
   </div>
126
 </template>
131
 </template>
127
 
132
 
130
 import { GetProcessIndicatorsData  } from "@/api/qcd";
135
 import { GetProcessIndicatorsData  } from "@/api/qcd";
131
 import PieChart from './components/PieChart'
136
 import PieChart from './components/PieChart'
132
 import {uParseTime} from "@/utils/tools";
137
 import {uParseTime} from "@/utils/tools";
138
+import BreadCrumb from "@/xt_pages/components/bread-crumb";
133
 export default {
139
 export default {
134
   name: "dialysisTotal",
140
   name: "dialysisTotal",
135
   data() {
141
   data() {
136
     return {
142
     return {
143
+      crumbs:[
144
+        {path:false, name:'科室质控'},
145
+        {path:'/qcd/processindicators', name:'过程指标'},
146
+      ],
137
       total: 0,
147
       total: 0,
138
       projectOptions:{},
148
       projectOptions:{},
139
       patientMap:{},
149
       patientMap:{},
164
         { value: 1, label: "大于三个月" },
174
         { value: 1, label: "大于三个月" },
165
         { value: 2, label: "小于三个月" }
175
         { value: 2, label: "小于三个月" }
166
       ],
176
       ],
167
-      pickerOptions: {
168
-        shortcuts: [
169
-          {
170
-            text: "今天",
171
-            onClick(picker) {
172
-              picker.$emit("pick", new Date());
173
-            }
174
-          },
175
-          {
176
-            text: "昨天",
177
-            onClick(picker) {
178
-              const date = new Date();
179
-              date.setTime(date.getTime() - 3600 * 1000 * 24);
180
-              picker.$emit("pick", date);
181
-            }
182
-          },
183
-          {
184
-            text: "一周前",
185
-            onClick(picker) {
186
-              const date = new Date();
187
-              date.setTime(date.getTime() - 3600 * 1000 * 24 * 7);
188
-              picker.$emit("pick", date);
189
-            }
190
-          },
191
-          {
192
-            text: "清空",
193
-            onClick(picker) {
194
-              picker.$emit("pick");
195
-            }
196
-          }
197
-        ]
198
-      }
199
     };
177
     };
200
   },
178
   },
201
   created() {
179
   created() {
347
     },
325
     },
348
   },
326
   },
349
   components: {
327
   components: {
350
-      PieChart
328
+      PieChart,
329
+      BreadCrumb
351
   }
330
   }
352
 };
331
 };
353
 </script>
332
 </script>
355
 <style rel="stylesheet/scss" lang="scss" scoped>
334
 <style rel="stylesheet/scss" lang="scss" scoped>
356
 .app-container {
335
 .app-container {
357
 //   margin: 20px;
336
 //   margin: 20px;
358
-    margin-bottom: 50px;
359
   font-size: 15px;
337
   font-size: 15px;
360
   .filter-container {
338
   .filter-container {
361
     padding-bottom: 5px;
339
     padding-bottom: 5px;
367
   .huixiao {
345
   .huixiao {
368
     border: solid 1px #ebeef5;
346
     border: solid 1px #ebeef5;
369
   }
347
   }
370
-  .el-pagination {
371
-    float: right !important;
372
-  }
373
   .search-component {
348
   .search-component {
374
     width: 500px;
349
     width: 500px;
375
     .searchBox {
350
     .searchBox {

+ 3 - 3
src/xt_pages/user/courseOfDisease.vue View File

1
 <template>
1
 <template>
2
-<div class="main-contain">
2
+<!-- <div class="main-contain">
3
     <div class="position">
3
     <div class="position">
4
        <bread-crumb></bread-crumb>
4
        <bread-crumb></bread-crumb>
5
-    </div>
5
+    </div> -->
6
     <div class="patient-container ">
6
     <div class="patient-container ">
7
         <patient-sidebar :id="patient_id" defaultActive="1-2"></patient-sidebar>
7
         <patient-sidebar :id="patient_id" defaultActive="1-2"></patient-sidebar>
8
         <div class="container" v-loading="loading">
8
         <div class="container" v-loading="loading">
64
             </div>
64
             </div>
65
         </el-dialog>
65
         </el-dialog>
66
     </div>
66
     </div>
67
-</div>
67
+<!-- </div> -->
68
 </template>
68
 </template>
69
 
69
 
70
 <script>
70
 <script>

+ 1 - 0
src/xt_pages/user/dialysisRecord.vue View File

79
               </el-table-column>
79
               </el-table-column>
80
           </el-table>
80
           </el-table>
81
           <el-pagination
81
           <el-pagination
82
+          align="right"
82
             @size-change="handleSizeChange"
83
             @size-change="handleSizeChange"
83
             @current-change="handleCurrentChange"
84
             @current-change="handleCurrentChange"
84
             :current-page="queryParams.page"
85
             :current-page="queryParams.page"

+ 1 - 0
src/xt_pages/user/dialysisSolution.vue View File

111
     </el-table-column>
111
     </el-table-column>
112
    </el-table>
112
    </el-table>
113
   <el-pagination
113
   <el-pagination
114
+  align="right"
114
           @size-change="handleSizeChange"
115
           @size-change="handleSizeChange"
115
           @current-change="handleCurrentChange"
116
           @current-change="handleCurrentChange"
116
           :current-page="queryParams.page"
117
           :current-page="queryParams.page"

+ 1 - 0
src/xt_pages/user/inspection.vue View File

65
             </el-table-column>
65
             </el-table-column>
66
           </el-table>
66
           </el-table>
67
           <el-pagination
67
           <el-pagination
68
+          align="right"
68
             @current-change="handleCurrentChangePage"
69
             @current-change="handleCurrentChangePage"
69
             :current-page="queryParams.page"
70
             :current-page="queryParams.page"
70
             :page-size="1"
71
             :page-size="1"

+ 1 - 0
src/xt_pages/user/proeducation.vue View File

19
             </el-table>
19
             </el-table>
20
             
20
             
21
             <el-pagination
21
             <el-pagination
22
+          align="right"
22
                 @size-change="handleSizeChange"
23
                 @size-change="handleSizeChange"
23
                 @current-change="handleCurrentChange"
24
                 @current-change="handleCurrentChange"
24
                 :current-page="listQuery.page"
25
                 :current-page="listQuery.page"