浏览代码

Merge branch 'master' of http://git.shengws.com/csx/Vue_New into 20200710_pc_vue_new_branch

csx 4 年前
父节点
当前提交
d49c2d6221

+ 3 - 3
package-lock.json 查看文件

3515
       "dev": true
3515
       "dev": true
3516
     },
3516
     },
3517
     "element-ui": {
3517
     "element-ui": {
3518
-      "version": "2.13.2",
3519
-      "resolved": "https://registry.npmjs.org/element-ui/-/element-ui-2.13.2.tgz",
3520
-      "integrity": "sha512-r761DRPssMPKDiJZWFlG+4e4vr0cRG/atKr3Eqr8Xi0tQMNbtmYU1QXvFnKiFPFFGkgJ6zS6ASkG+sellcoHlQ==",
3518
+      "version": "2.13.0",
3519
+      "resolved": "https://registry.npmjs.org/element-ui/-/element-ui-2.13.0.tgz",
3520
+      "integrity": "sha512-KYsHWsBXYbLELS8cdfvgJTOMSUby3UEjvsPV1V1VmgJ/DdkOAS4z3MiOrPxrT9w2Cc5lZ4eVSQiGhYFR5NVChw==",
3521
       "requires": {
3521
       "requires": {
3522
         "async-validator": "~1.8.1",
3522
         "async-validator": "~1.8.1",
3523
         "babel-helper-vue-jsx-merge-props": "^2.0.0",
3523
         "babel-helper-vue-jsx-merge-props": "^2.0.0",

+ 1 - 1
package.json 查看文件

46
     "driver.js": "0.5.2",
46
     "driver.js": "0.5.2",
47
     "dropzone": "5.2.0",
47
     "dropzone": "5.2.0",
48
     "echarts": "3.8.5",
48
     "echarts": "3.8.5",
49
-    "element-ui": "^2.13.2",
49
+    "element-ui": "^2.13.0",
50
     "file-saver": "^1.3.3",
50
     "file-saver": "^1.3.3",
51
     "font-awesome": "4.7.0",
51
     "font-awesome": "4.7.0",
52
     "js-cookie": "2.2.0",
52
     "js-cookie": "2.2.0",

+ 9 - 0
src/api/consumable.js 查看文件

77
     params:params
77
     params:params
78
   })
78
   })
79
 }
79
 }
80
+
81
+export function GetAnticoagulantCount(params){
82
+  console.log("params22222",params)
83
+  return request({
84
+    url:"/api/dialysis/getanticoagulantcount",
85
+    method:"get",
86
+    params:params
87
+  })
88
+}

二进制
src/assets/img/volume.png 查看文件


+ 16 - 0
src/router/modules/dialysis.js 查看文件

38
         noCache: true
38
         noCache: true
39
       }
39
       }
40
     },
40
     },
41
+    {
42
+      path: '/dialysis/calling',
43
+      component: () => import('@/xt_pages/dialysis/calling'),
44
+      name: '透析叫号',
45
+      meta: {
46
+        title: '透析叫号',
47
+        noCache: true
48
+      }
49
+    },
50
+
41
     {
51
     {
42
       path: '/dialysis/consumableDrugs',
52
       path: '/dialysis/consumableDrugs',
43
       component: () => import('@/xt_pages/dialysis/consumableDrugs'),
53
       component: () => import('@/xt_pages/dialysis/consumableDrugs'),
113
         noCache: true
123
         noCache: true
114
       }
124
       }
115
     },
125
     },
126
+    {
127
+      path:'/dialysis/dialysisdrugs_print',
128
+      component:()=>import('@/xt_pages/dialysis/dialysisDrugs_print'),
129
+      hidden:true,
130
+      is_menu:false
131
+    },
116
     {
132
     {
117
       path: '/dialysis/record/:id',
133
       path: '/dialysis/record/:id',
118
       component: () => import('@/xt_pages/dialysis/dialysisPage'),
134
       component: () => import('@/xt_pages/dialysis/dialysisPage'),

+ 65 - 7
src/xt_pages/dialysis/allSummaryDialog_print.vue 查看文件

12
             <div id="print_content">
12
             <div id="print_content">
13
                 <div class="print_main_content">
13
                 <div class="print_main_content">
14
                     <div class="order_title_panl">
14
                     <div class="order_title_panl">
15
-                        <span class="main_title">药品统计表</span>
15
+                        <span class="main_title">汇总统计表</span>
16
                     </div>
16
                     </div>
17
                     <div style="display:flex;justify-content: space-between;margin-bottom:10px;">
17
                     <div style="display:flex;justify-content: space-between;margin-bottom:10px;">
18
-                        <p>统计时间:2020.8.19-2020.8.20</p>
19
-                        <p>印单日期:2020.8.20</p>
18
+                        <p>统计时间:{{start_time}}-{{end_time}}</p>
19
+                        <p>印单日期:{{print_date}}</p>
20
                     </div>
20
                     </div>
21
                     <div class="table_panel">
21
                     <div class="table_panel">
22
                         <table class="table">
22
                         <table class="table">
23
                             <thead>
23
                             <thead>
24
                                 <tr>
24
                                 <tr>
25
-                                    <td>药品名称</td>
25
+                                    <td width="120">商品类型</td>
26
+                                    <td width="120">规格名称</td>
26
                                     <td width="120">数量</td>
27
                                     <td width="120">数量</td>
27
                                 </tr>
28
                                 </tr>
28
                             </thead>
29
                             </thead>
29
                             <tbody>
30
                             <tbody>
30
-                                <tr v-for='item in 6'>
31
-                                    <td>张三</td>
32
-                                    <td>张三</td>
31
+                                <tr v-for='(item,index) in tableData' :key="index">
32
+                                    <td>
33
+                                      <span v-if="item.stage == 1">{{item.type_name}}</span>
34
+                                      <span v-if="item.stage == 2">抗凝剂</span>
35
+                                    </td>
36
+                                    <td>
37
+                                       <span v-if="item.stage == 1">{{item.specification_name}}</span>
38
+                                      <span v-if="item.stage == 2 && item.anticoagulant == 1">无肝素</span>
39
+                                      <span v-if="item.stage == 2 && item.anticoagulant == 2">普通肝素</span>
40
+                                      <span v-if="item.stage == 2 && item.anticoagulant == 3">低分子肝素</span>
41
+                                      <span v-if="item.stage == 2 && item.anticoagulant == 4">阿加曲班</span>
42
+                                      <span v-if="item.stage == 2 && item.anticoagulant == 5">枸橼酸钠</span>
43
+                                      <span v-if="item.stage == 2 && item.anticoagulant == 6">低分子肝素钙</span>
44
+                                      <span v-if="item.stage == 2 && item.anticoagulant == 7">低分子肝素钠</span>
45
+                                      <span v-if="item.stage == 2 && item.anticoagulant == 8">依诺肝素</span>
46
+                                      <span v-if="item.stage == 2 && item.anticoagulant == 9">达肝素</span>
47
+                                      <span v-if="item.stage == 2 && item.anticoagulant == 10">体外抗凝</span>
48
+                                    </td>
49
+                                    <td>{{item.count}}</td>
33
                                 </tr>
50
                                 </tr>
34
                             </tbody>
51
                             </tbody>
35
                         </table>
52
                         </table>
43
 <script>
60
 <script>
44
 import BreadCrumb from '@/xt_pages/components/bread-crumb'
61
 import BreadCrumb from '@/xt_pages/components/bread-crumb'
45
 import print from 'print-js'
62
 import print from 'print-js'
63
+import {getGatherList} from "@/api/consumable"
64
+const moment = require('moment')
46
 export default {
65
 export default {
47
     components:{
66
     components:{
48
         BreadCrumb
67
         BreadCrumb
53
                 { path: false, name: '耗材药品' },
72
                 { path: false, name: '耗材药品' },
54
                 { path: false, name: '药品打印' }
73
                 { path: false, name: '药品打印' }
55
             ],
74
             ],
75
+            tableData:[],
76
+            start_time:"",
77
+            end_time:"",
78
+            print_date:"",
56
         }
79
         }
57
     },
80
     },
58
     methods:{
81
     methods:{
66
             style: style,
89
             style: style,
67
             scanStyles: false
90
             scanStyles: false
68
             })
91
             })
92
+        },
93
+        getlist(startime,endtime){
94
+            const params = {
95
+              start_time:startime,
96
+              end_time:endtime
97
+            }
98
+           getGatherList(params).then(response=>{
99
+             if(response.data.state == 1){
100
+                var arr = []
101
+                var warehouselist = response.data.data.warehouselist
102
+                for(let i=0;i<warehouselist.length;i++){
103
+                  warehouselist[i].stage = 1
104
+                }
105
+              console.log("warehouselist",warehouselist)
106
+                arr.push(...warehouselist)
107
+                var consumables =  response.data.data.consumables
108
+
109
+                var count = response.data.data.count
110
+                for(let j=0;j<count.length;j++){
111
+                  count[j].stage = 2
112
+                }
113
+              arr.push(...count)
114
+              console.log("arr344444",arr)
115
+              this.tableData = arr
116
+             }
117
+           })   
69
         }
118
         }
119
+    },
120
+    created(){
121
+       var startime  = moment(new Date()).add('year',0).format("YYYY-MM-DD")
122
+      this.print_date = startime
123
+      var startime =  this.$route.query.startime
124
+      this.start_time = startime
125
+      var endtime =  this.$route.query.endtime
126
+      this.end_time = endtime
127
+      this.getlist(startime,endtime)
70
     }
128
     }
71
 }
129
 }
72
 </script>
130
 </script>

+ 50 - 6
src/xt_pages/dialysis/bulletinBoard.vue 查看文件

10
         >全屏投影</el-button
10
         >全屏投影</el-button
11
       >
11
       >
12
     </div>
12
     </div>
13
-    <div
13
+    <div class="app-container">
14
+      <el-tabs v-model="activeName">
15
+        <el-tab-pane label="签到窗口" name="first">
16
+          <sign-in></sign-in>
17
+        </el-tab-pane>
18
+        <el-tab-pane label="排队窗口" name="second">
19
+          <line-up></line-up>
20
+        </el-tab-pane>
21
+      </el-tabs>
22
+    </div>
23
+
24
+
25
+
26
+
27
+
28
+
29
+
30
+
31
+
32
+
33
+
34
+
35
+
36
+
37
+
38
+
39
+
40
+
41
+
42
+
43
+
44
+
45
+
46
+
47
+
48
+
49
+
50
+    <!-- <div
14
       class="app-container"
51
       class="app-container"
15
       id="dialysis-board-box"
52
       id="dialysis-board-box"
16
       v-loading="loading"
53
       v-loading="loading"
64
           }}</template>
101
           }}</template>
65
         </el-table-column>
102
         </el-table-column>
66
       </el-table>
103
       </el-table>
67
-    </div>
104
+    </div> -->
68
 
105
 
69
-    <div id="fullscreenbroad" v-show="dialogTableVisible">
106
+    <!-- <div id="fullscreenbroad" v-show="dialogTableVisible">
70
       <el-row>
107
       <el-row>
71
         <el-button
108
         <el-button
72
           @click="openSetting"
109
           @click="openSetting"
138
           }}</template>
175
           }}</template>
139
         </el-table-column>
176
         </el-table-column>
140
       </el-table>
177
       </el-table>
141
-    </div>
178
+    </div> -->
142
   </div>
179
   </div>
143
 </template>
180
 </template>
144
 
181
 
148
 import { parseTime } from "@/utils";
185
 import { parseTime } from "@/utils";
149
 import BreadCrumb from "../components/bread-crumb";
186
 import BreadCrumb from "../components/bread-crumb";
150
 import screenfull from "screenfull";
187
 import screenfull from "screenfull";
188
+import signIn from './components/signIn'
189
+import lineUp from './components/lineUp'
151
 export default {
190
 export default {
152
-  components: { BreadCrumb, bulletinboard },
191
+  components: { BreadCrumb, bulletinboard, signIn, lineUp },
153
   name: "bulletinBoard",
192
   name: "bulletinBoard",
154
   data() {
193
   data() {
155
     return {
194
     return {
170
       loading: true,
209
       loading: true,
171
       weekDay: ["周日", "周一", "周二", "周三", "周四", "周五", "周六"],
210
       weekDay: ["周日", "周一", "周二", "周三", "周四", "周五", "周六"],
172
       roonOptions: { 1: "上午", 2: "下午", 3: "晚上" },
211
       roonOptions: { 1: "上午", 2: "下午", 3: "晚上" },
173
-      modeOptions: {}
212
+      modeOptions: {},
213
+
214
+
215
+
216
+      //
217
+      activeName:"first"
174
     };
218
     };
175
   },
219
   },
176
   created() {
220
   created() {

+ 53 - 0
src/xt_pages/dialysis/calling.vue 查看文件

1
+<template>
2
+    <div class="main-contain">
3
+        <div class="position">
4
+            <bread-crumb :crumbs="crumbs"></bread-crumb>
5
+        </div>
6
+        <div class="app-container">
7
+            <el-tabs v-model="activeName">
8
+                <el-tab-pane label="透前叫号" name="first">
9
+                    <before-dialysis-calling></before-dialysis-calling>
10
+                </el-tab-pane>
11
+                <el-tab-pane label="上机叫号" name="second">
12
+                    <computer-calling></computer-calling>
13
+                </el-tab-pane>
14
+                <el-tab-pane label="诊台配置" name="third">
15
+                    <treatment-configure></treatment-configure>
16
+                </el-tab-pane>
17
+                <el-tab-pane label="叫号配置" name="fourth">
18
+                    <calling-configure></calling-configure>
19
+                </el-tab-pane>
20
+            </el-tabs>
21
+        </div>
22
+    </div>
23
+</template>
24
+
25
+
26
+<script>
27
+import BreadCrumb from "../components/bread-crumb";
28
+import beforeDialysisCalling from './components/beforeDialysisCalling'
29
+import computerCalling from './components/computerCalling'
30
+import treatmentConfigure from "./components/treatmentConfigure"
31
+import callingConfigure from './components/callingConfigure'
32
+export default {
33
+    components:{
34
+       BreadCrumb,
35
+       beforeDialysisCalling,
36
+       computerCalling,
37
+       treatmentConfigure,
38
+       callingConfigure 
39
+    },
40
+    data(){
41
+        return{
42
+            crumbs: [
43
+                { path: false, name: "透析管理" },
44
+                { path: "dialysis/board", name: "透析叫号" }
45
+            ],
46
+            activeName:'first'
47
+        }
48
+    },
49
+    methods:{
50
+    }
51
+}
52
+</script>
53
+      

+ 214 - 43
src/xt_pages/dialysis/components/allSummary.vue 查看文件

37
           </div>
37
           </div>
38
         </div>
38
         </div>
39
         <div>
39
         <div>
40
-            <el-button size="small" icon="el-icon-printer" type="primary" @click="toPrint">打印</el-button>
40
+            <!-- <el-button size="small" icon="el-icon-printer" type="primary" @click="toPrint">打印</el-button> -->
41
             <el-button size="small" type="primary" @click="statistics">统计表</el-button>
41
             <el-button size="small" type="primary" @click="statistics">统计表</el-button>
42
         </div>
42
         </div>
43
       </div>
43
       </div>
44
       <div>
44
       <div>
45
           <el-table
45
           <el-table
46
-            :data="tableData"
47
-            height="500px"
46
+            :data="list"
48
             border
47
             border
49
             style="width: 100%"
48
             style="width: 100%"
49
+            :row-style="{ color: '#303133' }"
50
+            :header-cell-style="{
51
+              backgroundColor: 'rgb(245, 247, 250)',
52
+              color: '#606266'
53
+            }"
50
             @selection-change="handleSelectionChange">
54
             @selection-change="handleSelectionChange">
51
             >
55
             >
52
             <el-table-column  align="center" type="selection" width="55">
56
             <el-table-column  align="center" type="selection" width="55">
53
             </el-table-column>
57
             </el-table-column>
54
             <el-table-column align="center" prop="name" label="姓名" width="180">
58
             <el-table-column align="center" prop="name" label="姓名" width="180">
55
                <template slot-scope="scope">
59
                <template slot-scope="scope">
56
-                   {{scope.row.patient.name}}
60
+                   <!-- {{scope.row.patient.name}} -->
61
+                    {{scope.row.patient_name}}
57
                </template>
62
                </template>
58
             </el-table-column>
63
             </el-table-column>
59
             <el-table-column align="center" prop="address" label="透析模式">
64
             <el-table-column align="center" prop="address" label="透析模式">
60
               <template slot-scope="scope">
65
               <template slot-scope="scope">
61
-                 {{scope.row.treatment_mode.name}}
66
+                 <!-- {{scope.row.mode_id}} -->
67
+                 <span v-if="scope.row.mode_id == 1">HD</span>
68
+                <span v-if="scope.row.mode_id == 2">HDF</span>
69
+                <span v-if="scope.row.mode_id == 3">HD+HP</span>
70
+                <span v-if="scope.row.mode_id == 4">HP</span>
71
+                <span v-if="scope.row.mode_id == 5">HF</span>
72
+                <span v-if="scope.row.mode_id == 6">SCUF</span>
73
+                <span v-if="scope.row.mode_id == 7">IUF</span>
74
+                <span v-if="scope.row.mode_id == 8">HFHD</span>
75
+                <span v-if="scope.row.mode_id == 9">HFHD+HP</span>
76
+                <span v-if="scope.row.mode_id == 10">PHF</span>
77
+                <span v-if="scope.row.mode_id == 11">HFR</span>
78
+                <span v-if="scope.row.mode_id == 12">HDF+HP</span>
79
+                <span v-if="scope.row.mode_id == 13">CRRT</span>
80
+                <span v-if="scope.row.mode_id == 14">腹水回输</span>
81
+                <span v-if="scope.row.mode_id == 15">HD前置换</span>
82
+                <span v-if="scope.row.mode_id == 16">HD后置换</span>
83
+                <span v-if="scope.row.mode_id == 17">HDF前置换</span>
84
+                <span v-if="scope.row.mode_id == 18"> HDF后置换</span> 
62
               </template>
85
               </template>
63
             </el-table-column>
86
             </el-table-column>
64
             <el-table-column align="center" prop="address" :label="item.type_name" v-for="(item,index) in tableName" :key="index">
87
             <el-table-column align="center" prop="address" :label="item.type_name" v-for="(item,index) in tableName" :key="index">
65
                <template slot-scope="scope"> 
88
                <template slot-scope="scope"> 
66
-                   {{getCount(scope.row.patient.id,item.good_id)?getCount(scope.row.patient.id,item.good_id):""}}
89
+                   <!-- {{getCount(scope.row.patient.id,item.good_id)?getCount(scope.row.patient.id,item.good_id):""}} -->
90
+                     {{scope.row.good_type[index].name}}
67
                </template>
91
                </template>
68
             </el-table-column>
92
             </el-table-column>
69
             <el-table-column align="center" prop="address" label="抗凝剂(首剂)(维持)(总量)">
93
             <el-table-column align="center" prop="address" label="抗凝剂(首剂)(维持)(总量)">
81
                     <span v-if="getAnticoagulant(scope.row.patient_id) == 10">体外抗凝</span>
105
                     <span v-if="getAnticoagulant(scope.row.patient_id) == 10">体外抗凝</span>
82
                     <span>
106
                     <span>
83
                       {{getAnticoagulantShouji(scope.row.patient_id)?getAnticoagulantShouji(scope.row.patient_id):''}}
107
                       {{getAnticoagulantShouji(scope.row.patient_id)?getAnticoagulantShouji(scope.row.patient_id):''}}
84
-                      <span v-if="getAnticoagulant(scope.row.patient_id) ==1 && getAnticoagulantShouji(scope.row.patient_id)!=''">mg</span>
85
-                      <span v-if="getAnticoagulant(scope.row.patient_id) == 2 && getAnticoagulantShouji(scope.row.patient_id)!=''">iu/h</span>
86
-                      <span v-if="getAnticoagulant(scope.row.patient_id) == 3 && getAnticoagulantShouji(scope.row.patient_id)!=''">iu</span>
87
-                      <span v-if="getAnticoagulant(scope.row.patient_id) == 4 && getAnticoagulantShouji(scope.row.patient_id)!=''">mg</span>
88
-                      <span v-if="getAnticoagulant(scope.row.patient_id) == 5 && getAnticoagulantShouji(scope.row.patient_id)!=''">mg</span>
89
-                      <span v-if="getAnticoagulant(scope.row.patient_id) == 6 && getAnticoagulantShouji(scope.row.patient_id)!=''">iu</span>
90
-                      <span v-if="getAnticoagulant(scope.row.patient_id) == 7 && getAnticoagulantShouji(scope.row.patient_id)!=''">iu</span>
91
-                      <span v-if="getAnticoagulant(scope.row.patient_id)== 8 && getAnticoagulantShouji(scope.row.patient_id)!=''">iu</span>
92
-                      <span v-if="getAnticoagulant(scope.row.patient_id) == 9 && getAnticoagulantShouji(scope.row.patient_id)!=''">iu</span>
93
-                      <span v-if="getAnticoagulant(scope.row.patient_id)== 10 && getAnticoagulantShouji(scope.row.patient_id)!=''">mg</span>
108
+                      <span v-if="getAnticoagulant(scope.row.patient_id) ==1 && getAnticoagulantShouji(scope.row.patient_id)!=''">mg)</span>
109
+                      <span v-if="getAnticoagulant(scope.row.patient_id) == 2 && getAnticoagulantShouji(scope.row.patient_id)!=''">iu/h)</span>
110
+                      <span v-if="getAnticoagulant(scope.row.patient_id) == 3 && getAnticoagulantShouji(scope.row.patient_id)!=''">iu)</span>
111
+                      <span v-if="getAnticoagulant(scope.row.patient_id) == 4 && getAnticoagulantShouji(scope.row.patient_id)!=''">mg)</span>
112
+                      <span v-if="getAnticoagulant(scope.row.patient_id) == 5 && getAnticoagulantShouji(scope.row.patient_id)!=''">mg)</span>
113
+                      <span v-if="getAnticoagulant(scope.row.patient_id) == 6 && getAnticoagulantShouji(scope.row.patient_id)!=''">iu)</span>
114
+                      <span v-if="getAnticoagulant(scope.row.patient_id) == 7 && getAnticoagulantShouji(scope.row.patient_id)!=''">iu)</span>
115
+                      <span v-if="getAnticoagulant(scope.row.patient_id)== 8 && getAnticoagulantShouji(scope.row.patient_id)!=''">iu)</span>
116
+                      <span v-if="getAnticoagulant(scope.row.patient_id) == 9 && getAnticoagulantShouji(scope.row.patient_id)!=''">iu)</span>
117
+                      <span v-if="getAnticoagulant(scope.row.patient_id)== 10 && getAnticoagulantShouji(scope.row.patient_id)!=''">mg)</span>
94
                     </span>
118
                     </span>
95
                     <span>
119
                     <span>
96
                        {{getAnticoagulantWeichi(scope.row.patient_id)?getAnticoagulantWeichi(scope.row.patient_id):''}}
120
                        {{getAnticoagulantWeichi(scope.row.patient_id)?getAnticoagulantWeichi(scope.row.patient_id):''}}
97
-                      <span v-if="getAnticoagulant(scope.row.patient_id) == 1 && getAnticoagulantWeichi(scope.row.patient_id)!=''">mg/h</span>
98
-                      <span v-if="getAnticoagulant(scope.row.patient_id) == 2 && getAnticoagulantWeichi(scope.row.patient_id)!=''">iu/h</span>
99
-                      <span v-if="getAnticoagulant(scope.row.patient_id) == 3 && getAnticoagulantWeichi(scope.row.patient_id)!=''">iu/h</span>
100
-                      <span v-if="getAnticoagulant(scope.row.patient_id) == 4 && getAnticoagulantWeichi(scope.row.patient_id)!=''">mg/h</span>
101
-                      <span v-if="getAnticoagulant(scope.row.patient_id) == 5 && getAnticoagulantWeichi(scope.row.patient_id)!=''">ml/h</span>
102
-                      <span v-if="getAnticoagulant(scope.row.patient_id) == 6 && getAnticoagulantWeichi(scope.row.patient_id)!=''">iu/h</span>
103
-                      <span v-if="getAnticoagulant(scope.row.patient_id) == 7 && getAnticoagulantWeichi(scope.row.patient_id)!=''">iu/h</span>
104
-                      <span v-if="getAnticoagulant(scope.row.patient_id) == 8 && getAnticoagulantWeichi(scope.row.patient_id)!=''">iu/h</span>
105
-                      <span v-if="getAnticoagulant(scope.row.patient_id) == 9 && getAnticoagulantWeichi(scope.row.patient_id)!=''">iu/h</span>
106
-                      <span v-if="getAnticoagulant(scope.row.patient_id) == 10 && getAnticoagulantWeichi(scope.row.patient_id)!=''">mg</span>
121
+                      <span v-if="getAnticoagulant(scope.row.patient_id) == 1 && getAnticoagulantWeichi(scope.row.patient_id)!=''">mg/h)</span>
122
+                      <span v-if="getAnticoagulant(scope.row.patient_id) == 2 && getAnticoagulantWeichi(scope.row.patient_id)!=''">iu/h)</span>
123
+                      <span v-if="getAnticoagulant(scope.row.patient_id) == 3 && getAnticoagulantWeichi(scope.row.patient_id)!=''">iu/h)</span>
124
+                      <span v-if="getAnticoagulant(scope.row.patient_id) == 4 && getAnticoagulantWeichi(scope.row.patient_id)!=''">mg/h)</span>
125
+                      <span v-if="getAnticoagulant(scope.row.patient_id) == 5 && getAnticoagulantWeichi(scope.row.patient_id)!=''">ml/h)</span>
126
+                      <span v-if="getAnticoagulant(scope.row.patient_id) == 6 && getAnticoagulantWeichi(scope.row.patient_id)!=''">iu/h)</span>
127
+                      <span v-if="getAnticoagulant(scope.row.patient_id) == 7 && getAnticoagulantWeichi(scope.row.patient_id)!=''">iu/h)</span>
128
+                      <span v-if="getAnticoagulant(scope.row.patient_id) == 8 && getAnticoagulantWeichi(scope.row.patient_id)!=''">iu/h)</span>
129
+                      <span v-if="getAnticoagulant(scope.row.patient_id) == 9 && getAnticoagulantWeichi(scope.row.patient_id)!=''">iu/h)</span>
130
+                      <span v-if="getAnticoagulant(scope.row.patient_id) == 10 && getAnticoagulantWeichi(scope.row.patient_id)!=''">mg)</span>
107
                     </span>
131
                     </span>
108
                     <span>
132
                     <span>
109
                       {{getAnticoagulantZongliang(scope.row.patient_id)?getAnticoagulantZongliang(scope.row.patient_id):''}}
133
                       {{getAnticoagulantZongliang(scope.row.patient_id)?getAnticoagulantZongliang(scope.row.patient_id):''}}
110
-                       <span v-if="getAnticoagulant(scope.row.patient_id) == 1 && getAnticoagulantZongliang(scope.row.patient_id)!=''">mg</span>
111
-                      <span v-if="getAnticoagulant(scope.row.patient_id) == 2 && getAnticoagulantZongliang(scope.row.patient_id)!=''">iu</span>
112
-                      <span v-if="getAnticoagulant(scope.row.patient_id) == 3 && getAnticoagulantZongliang(scope.row.patient_id)!=''">iu</span>
113
-                      <span v-if="getAnticoagulant(scope.row.patient_id) == 4 && getAnticoagulantZongliang(scope.row.patient_id)!=''">mg</span>
114
-                      <span v-if="getAnticoagulant(scope.row.patient_id) == 5 && getAnticoagulantZongliang(scope.row.patient_id)!=''">mg</span>
115
-                      <span v-if="getAnticoagulant(scope.row.patient_id) == 6 && getAnticoagulantZongliang(scope.row.patient_id)!=''">iu/h</span>
116
-                      <span v-if="getAnticoagulant(scope.row.patient_id) == 7 && getAnticoagulantZongliang(scope.row.patient_id)!=''">iu</span>
117
-                      <span v-if="getAnticoagulant(scope.row.patient_id) == 8 && getAnticoagulantZongliang(scope.row.patient_id)!=''">iu</span>
118
-                      <span v-if="getAnticoagulant(scope.row.patient_id) == 9 && getAnticoagulantZongliang(scope.row.patient_id)!=''">iu/h</span>
119
-                      <span v-if="getAnticoagulant(scope.row.patient_id) == 10 && getAnticoagulantZongliang(scope.row.patient_id)!=''">mg</span>
134
+                       <span v-if="getAnticoagulant(scope.row.patient_id) == 1 && getAnticoagulantZongliang(scope.row.patient_id)!=''">mg)</span>
135
+                      <span v-if="getAnticoagulant(scope.row.patient_id) == 2 && getAnticoagulantZongliang(scope.row.patient_id)!=''">iu)</span>
136
+                      <span v-if="getAnticoagulant(scope.row.patient_id) == 3 && getAnticoagulantZongliang(scope.row.patient_id)!=''">iu)</span>
137
+                      <span v-if="getAnticoagulant(scope.row.patient_id) == 4 && getAnticoagulantZongliang(scope.row.patient_id)!=''">mg)</span>
138
+                      <span v-if="getAnticoagulant(scope.row.patient_id) == 5 && getAnticoagulantZongliang(scope.row.patient_id)!=''">mg)</span>
139
+                      <span v-if="getAnticoagulant(scope.row.patient_id) == 6 && getAnticoagulantZongliang(scope.row.patient_id)!=''">iu/h)</span>
140
+                      <span v-if="getAnticoagulant(scope.row.patient_id) == 7 && getAnticoagulantZongliang(scope.row.patient_id)!=''">iu)</span>
141
+                      <span v-if="getAnticoagulant(scope.row.patient_id) == 8 && getAnticoagulantZongliang(scope.row.patient_id)!=''">iu)</span>
142
+                      <span v-if="getAnticoagulant(scope.row.patient_id) == 9 && getAnticoagulantZongliang(scope.row.patient_id)!=''">iu/h)</span>
143
+                      <span v-if="getAnticoagulant(scope.row.patient_id) == 10 && getAnticoagulantZongliang(scope.row.patient_id)!=''">mg)</span>
120
                     </span>
144
                     </span>
121
                 </template>
145
                 </template>
122
             </el-table-column>
146
             </el-table-column>
171
             total:0,
195
             total:0,
172
             selecting_schs: [],
196
             selecting_schs: [],
173
             prescriptionList:[],
197
             prescriptionList:[],
174
-            reduceList:[]
198
+            reduceList:[],
199
+            allGoodInfo:[],
200
+            list:[],
201
+            new_list:[],
202
+            good_types: [],
175
         }
203
         }
176
     },
204
     },
177
     created(){
205
     created(){
211
           this.getlist()
239
           this.getlist()
212
           this.getAllMaterial()
240
           this.getAllMaterial()
213
         },
241
         },
214
-        search(){
242
+           search(){
215
            if(this.selected_date==""){
243
            if(this.selected_date==""){
216
               this.start_time = moment(new Date()).add('year',0).format("YYYY-MM-DD")
244
               this.start_time = moment(new Date()).add('year',0).format("YYYY-MM-DD")
217
             }
245
             }
238
                this.prescriptionList = prescription
266
                this.prescriptionList = prescription
239
                var reducelist =  response.data.data.reducelist
267
                var reducelist =  response.data.data.reducelist
240
                this.reduceList = reducelist
268
                this.reduceList = reducelist
269
+              var good_type = response.data.data.good_type
270
+               console.log("godd_type",good_type)
271
+              this.tableName = good_type
272
+              this.allGoodInfo = response.data.data.dialysis_goods
273
+              console.log("1111111",response.data.data.dialysis_goods)
274
+              this.list = []
275
+              this.good_types = []
276
+              this.allGoodInfo = []
277
+              this.good_types.push("姓名")
278
+           
279
+             for (let a = 0; a <  response.data.data.good_type.length; a++){
280
+                this.good_types.push(response.data.data.good_type[a].type_name)
281
+              }
282
+             for(let i = 0; i < response.data.data.dialysis_goods.length; i++){
283
+              let arr =[]
284
+              // let obj = {
285
+              //   id:0,
286
+              //   name:  response.data.data.dialysis_goods[i].patient.name,
287
+
288
+              // }
289
+              // arr.push(obj)
290
+              // console.log("arr=========",arr)
291
+              for (let a = 0; a <  response.data.data.good_type.length; a++){
292
+                let obj = {
293
+                  id:response.data.data.good_type[a].id,
294
+                  name:""
295
+
296
+                }
297
+                arr.push(obj)
298
+              }
299
+
300
+
301
+             console.log("2222222",arr)
302
+            
303
+
304
+              let newObj = {
305
+                "patient_id":response.data.data.dialysis_goods[i].patient_id,
306
+                "patient_name":response.data.data.dialysis_goods[i].patient.name,
307
+                "mode_id":response.data.data.dialysis_goods[i].mode_id,
308
+                "good_type":arr,
309
+                "good_user":response.data.data.dialysis_goods[i].good_user,
310
+                "last_good_user":response.data.data.dialysis_goods[i].last_good_user,
311
+                "good_user_detail":response.data.data.dialysis_goods[i].good_user_detail,
312
+                "last_good_user_detail":response.data.data.dialysis_goods[i].last_good_user_detail,
313
+              }
314
+             
315
+              this.list.push(newObj)
316
+              }
317
+              
318
+            for (let a = 0; a <  this.list.length; a++){
319
+              for (let b = 0; b <  this.list[a].good_type.length; b++){
320
+                if(this.list[a].good_type[b].id > 0){
321
+                  this.list[a].good_type[b].name = this.getGoodUserInfo(this.list[a].good_type[b].id,this.list[a].good_user,this.list[a].last_good_user)
322
+                }
323
+
324
+              }
325
+              }
326
+              console.log("list22222",this.list)
241
              }
327
              }
242
           })
328
           })
243
         },
329
         },
330
+
244
         getAllMaterial(){
331
         getAllMaterial(){
245
           if(this.selected_date==""){
332
           if(this.selected_date==""){
246
               this.start_time = moment(new Date()).add('year',0).format("YYYY-MM-DD")
333
               this.start_time = moment(new Date()).add('year',0).format("YYYY-MM-DD")
254
           getAllMaterial(params).then(response=>{
341
           getAllMaterial(params).then(response=>{
255
              if(response.data.state == 1){
342
              if(response.data.state == 1){
256
                var material =  response.data.data.material
343
                var material =  response.data.data.material
257
-               this.tableName = material
344
+              //  console.log("material",material)
345
+              //  this.tableName = material
258
              }
346
              }
259
           })
347
           })
260
         },
348
         },
293
                this.prescriptionList = prescription
381
                this.prescriptionList = prescription
294
                var reducelist =  response.data.data.reducelist          
382
                var reducelist =  response.data.data.reducelist          
295
                this.reduceList = reducelist
383
                this.reduceList = reducelist
384
+                var good_type = response.data.data.good_type
385
+               console.log("godd_type",good_type)
386
+              this.tableName = good_type
387
+              this.allGoodInfo = response.data.data.dialysis_goods
388
+              console.log("1111111",response.data.data.dialysis_goods)
389
+              this.list = []
390
+              this.good_types = []
391
+              this.allGoodInfo = []
392
+              this.good_types.push("姓名")
393
+           
394
+             for (let a = 0; a <  response.data.data.good_type.length; a++){
395
+                this.good_types.push(response.data.data.good_type[a].type_name)
396
+              }
397
+             for(let i = 0; i < response.data.data.dialysis_goods.length; i++){
398
+              let arr =[]
399
+              // let obj = {
400
+              //   id:0,
401
+              //   name:  response.data.data.dialysis_goods[i].patient.name,
402
+
403
+              // }
404
+              // arr.push(obj)
405
+              // console.log("arr=========",arr)
406
+              for (let a = 0; a <  response.data.data.good_type.length; a++){
407
+                let obj = {
408
+                  id:response.data.data.good_type[a].id,
409
+                  name:""
410
+
411
+                }
412
+                arr.push(obj)
413
+              }
414
+
415
+
416
+             console.log("2222222",arr)
417
+            
418
+
419
+              let newObj = {
420
+                "patient_id":response.data.data.dialysis_goods[i].patient_id,
421
+                "patient_name":response.data.data.dialysis_goods[i].patient.name,
422
+                "mode_id":response.data.data.dialysis_goods[i].mode_id,
423
+                "good_type":arr,
424
+                "good_user":response.data.data.dialysis_goods[i].good_user,
425
+                "last_good_user":response.data.data.dialysis_goods[i].last_good_user,
426
+                "good_user_detail":response.data.data.dialysis_goods[i].good_user_detail,
427
+                "last_good_user_detail":response.data.data.dialysis_goods[i].last_good_user_detail,
428
+              }
429
+             
430
+              this.list.push(newObj)
431
+              }
432
+              
433
+            for (let a = 0; a <  this.list.length; a++){
434
+              for (let b = 0; b <  this.list[a].good_type.length; b++){
435
+                if(this.list[a].good_type[b].id > 0){
436
+                  this.list[a].good_type[b].name = this.getGoodUserInfo(this.list[a].good_type[b].id,this.list[a].good_user,this.list[a].last_good_user)
437
+                }
438
+
439
+              }
440
+              }
441
+              console.log("list22222",this.list) 
296
              }
442
              }
297
           })
443
           })
298
         },
444
         },
333
        var shouji = ""
479
        var shouji = ""
334
        for(let i=0;i<this.prescriptionList.length;i++){
480
        for(let i=0;i<this.prescriptionList.length;i++){
335
          if(this.prescriptionList[i].patient_id == id){
481
          if(this.prescriptionList[i].patient_id == id){
336
-            shouji = this.prescriptionList[i].anticoagulant_shouji
482
+            shouji = "("+this.prescriptionList[i].anticoagulant_shouji
337
           }
483
           }
338
         } 
484
         } 
339
        return shouji
485
        return shouji
342
         var weichi = ""
488
         var weichi = ""
343
         for(let i=0;i<this.prescriptionList.length;i++){
489
         for(let i=0;i<this.prescriptionList.length;i++){
344
          if(this.prescriptionList[i].patient_id == id){
490
          if(this.prescriptionList[i].patient_id == id){
345
-            weichi = this.prescriptionList[i].anticoagulant_weichi
491
+            weichi = "("+this.prescriptionList[i].anticoagulant_weichi
346
         } 
492
         } 
347
        return weichi
493
        return weichi
348
       }
494
       }
351
        var zongliang = ""
497
        var zongliang = ""
352
        for(let i=0;i<this.prescriptionList.length;i++){
498
        for(let i=0;i<this.prescriptionList.length;i++){
353
          if(this.prescriptionList[i].patient_id == id){
499
          if(this.prescriptionList[i].patient_id == id){
354
-            zongliang = this.prescriptionList[i].anticoagulant_zongliang
500
+            zongliang = "("+this.prescriptionList[i].anticoagulant_zongliang
355
           }
501
           }
356
         } 
502
         } 
357
        return zongliang
503
        return zongliang
358
-     }
504
+     },
505
+      getGoodUserInfo(good_type_id,good_user,last_good_user) {
506
+        if (good_user != null && good_user.length > 0) {
507
+          let desc = ""
508
+          for (let b = 0; b < good_user.length; b++){
509
+            if(good_type_id == good_user[b].good_type_id)
510
+              desc = desc + "\n" + good_user[b].info.specification_name +"*" +good_user[b].count
511
+          }
512
+         
513
+
514
+          return desc
515
+        } else if (good_user != null && good_user.length <= 0) {
516
+          if (last_good_user != null && last_good_user.length > 0) {
517
+            let desc = ""
518
+            for (let b = 0; b < last_good_user.length; b++){
519
+              if(good_type_id == last_good_user[b].good_type_id)
520
+                desc = desc+ "\n" + last_good_user[b].info.specification_name +"*" +last_good_user[b].count
521
+            }
522
+          
523
+
524
+            return desc
525
+
526
+          }
527
+          return ""
528
+        }
529
+      },
359
     }
530
     }
360
 }
531
 }
361
 </script>
532
 </script>

+ 1 - 1
src/xt_pages/dialysis/components/allSummaryDialog.vue 查看文件

110
         },
110
         },
111
         toPrint(){
111
         toPrint(){
112
             this.$router.push({
112
             this.$router.push({
113
-                path: '/dialysis/allsummarydialog_print',
113
+                path: '/dialysis/allsummarydialog_print?startime='+this.start_time+"&endtime="+this.end_time,
114
                 // query: { date: date }
114
                 // query: { date: date }
115
             })
115
             })
116
         },
116
         },

+ 90 - 0
src/xt_pages/dialysis/components/beforeDialysisCalling.vue 查看文件

1
+<template>
2
+    <div class="page_beforeDialysisCalling">
3
+        <div class="cell clearfix">
4
+            <label class="title"><span class="name">叫号状态</span> : </label>
5
+            <div class="time ">
6
+                <ul class="">
7
+                    <li v-for="option in patient_state" :key="option.value" @click="handleStateChange(option.value)" :class="patientStateVal == option.value ? 'active' : ''" >{{option.label}}
8
+                    </li>
9
+                </ul>
10
+            </div>
11
+        </div>
12
+        <div style="display:flex;justify-content: space-between;">
13
+            <div class="callingArea">
14
+                <waiting-called v-if="patientStateVal == 0"></waiting-called>
15
+                <called v-if="patientStateVal == 1"></called>
16
+            </div>
17
+            <div class="nowCalling" v-if="patientStateVal == 0">
18
+                <p class="nowCallingTitle">当前叫号</p>
19
+                <p class="nowCallingName">李小明</p>
20
+                <p class="nowCallingTime">签到时间:07:20</p>
21
+                <p class="nowCallingTime">下一位:张三</p>
22
+                <el-button style="margin: 30px 0 20px 0;">重新叫号</el-button>
23
+                <el-button type="primary" style="margin-left:0;">&ensp;&ensp;叫号&ensp;&ensp;</el-button>
24
+            </div>
25
+        </div>
26
+    </div>
27
+</template>
28
+
29
+
30
+<script>
31
+import waitingCalled from './waitingCalled'
32
+import called from './called'
33
+export default {
34
+    components:{
35
+        waitingCalled,
36
+        called
37
+    },
38
+    data(){
39
+        return{
40
+            patient_state:[
41
+                {value: 0,label: '待叫号'},
42
+                {value: 1,label: '已叫号'},
43
+            ],
44
+            patientStateVal: 0,
45
+        }
46
+    },
47
+    methods:{
48
+        handleStateChange: function(index) {
49
+            this.patientStateVal = index
50
+        },
51
+    }
52
+}
53
+</script>
54
+
55
+<style lang="scss" scoped>
56
+.callingArea{
57
+    display: flex;
58
+    flex-wrap: wrap;
59
+    width: 88%;
60
+    // @media only screen and (max-width: 1340px) {
61
+    //     width:750px;
62
+    // }
63
+
64
+    // @media only screen and (min-width: 415px) and (max-width: 767px) {
65
+    // }
66
+}
67
+.nowCalling{
68
+    height: 313px;
69
+    border: 1px solid #e5e5ee;
70
+    // flex: 1;
71
+    width: 12%;
72
+    text-align: center;
73
+    .nowCallingTitle{
74
+        font-size: 20px;
75
+        font-weight: 600;
76
+        margin-top: 20px;
77
+        text-align: center;
78
+    }
79
+    .nowCallingName{
80
+        color: #338AFB;
81
+        font-size: 18px;
82
+        margin-top: 10px;
83
+        font-weight: 600;
84
+    }
85
+    .nowCallingTime{
86
+        font-size: 16px;
87
+        margin-top: 30px;
88
+    }
89
+}
90
+</style>

+ 93 - 0
src/xt_pages/dialysis/components/called.vue 查看文件

1
+<template>
2
+    <div class="page_called">
3
+        <div class="calledOne" v-for="item in 12" :key="item">
4
+            <div class="calledOneLeft">
5
+                <img src="https://images.shengws.com/201809182128111.png?imageView2/2/w/500/h/500/q/90" alt="">
6
+                <div class="name">
7
+                    <p>吴保龄</p>
8
+                    <p>
9
+                        <span class="nameTips">签到时间:07:00:00</span>
10
+                        <span class="nameTips" v-if="index == 1">床位号:A区5号床</span>
11
+                        <span class="nameTips" v-else>叫号时间:07:30:00</span>
12
+                    </p>
13
+                    <p>
14
+                        <span class="nameTips">透前体重:59kg</span>
15
+                        <span class="nameTips lastNameTips">透前血压:120/110mmHg</span>
16
+                    </p>
17
+                </div>
18
+            </div>
19
+            <div class="calledOneRight" v-if="index == 1">
20
+                <img src="../../../assets/img/volume.png" alt="">
21
+            </div>
22
+        </div>
23
+    </div>
24
+</template>
25
+
26
+<script>
27
+export default {
28
+    props:{
29
+        index:Number
30
+    },
31
+    data(){
32
+        return{
33
+
34
+        }
35
+    },
36
+}
37
+</script>
38
+
39
+
40
+<style lang="scss" scoped>
41
+.page_called{
42
+    .calledOne{
43
+        border: 1px #e5e5ee solid;
44
+        padding: 9px 0;
45
+        margin: 0 15px 15px 0;
46
+        float: left;
47
+        width: 360px;
48
+        cursor: pointer;
49
+        display: flex;
50
+        justify-content: space-between;
51
+        align-items: center;
52
+        padding: 10px;
53
+        .calledOneLeft{
54
+            display: flex;
55
+            img{
56
+                width: 45px;
57
+                height: 45px;
58
+                border-radius: 50%;
59
+                margin-right: 15px;
60
+            }
61
+            .name{
62
+                >p:first-child{
63
+                    font-size: 16px;
64
+                    font-weight: bold;
65
+                    color:#000;
66
+                }
67
+                >p:nth-of-type(2){
68
+                    font-size: 12px;
69
+                    color:#999999;
70
+                    margin-top: 6px;
71
+                }
72
+                >p:nth-of-type(3){
73
+                    font-size: 12px;
74
+                    color:#999999;
75
+                    margin-top: 3px;
76
+                }
77
+                .nameTips{
78
+                    margin-right:10px;
79
+                    display: inline-block;
80
+                }
81
+                
82
+            }
83
+            
84
+        }
85
+        .calledOneRight{
86
+            img{
87
+                width: 30px;
88
+                margin-top: 8px;
89
+            }
90
+        }
91
+    }
92
+}
93
+</style>

+ 160 - 0
src/xt_pages/dialysis/components/callingConfigure.vue 查看文件

1
+<template>
2
+    <div class="page_callingConfigure">
3
+        <div class="cell clearfix">
4
+            就诊状态显示屏幕切换屏幕时长配置(秒) : 
5
+            <div class="time ">
6
+                <el-input-number v-model="num" @change="handleChange" :min="1"></el-input-number>
7
+            </div>
8
+        </div>
9
+        <div style="display:flex;">
10
+            <div class="configureBox">
11
+                <div class="configureBoxTitle">接诊叫号</div>
12
+                <div class="configureBoxMain">
13
+                    <div style="margin-bottom:10px;">单次叫号语音播报次数:<el-input-number v-model="num" @change="handleChange" :min="1"></el-input-number></div>
14
+                    <div style="margin-bottom:10px;">叫号语音内容设置:</div>
15
+                    <div style="margin-bottom:10px;">
16
+                        <p style="width:50px;display: inline-block;">请</p>
17
+                        <el-select style="width:140px;" v-model="type" placeholder="请选择">
18
+                            <el-option
19
+                            v-for="item in typeOptions"
20
+                            :key="item.value"
21
+                            :label="item.label"
22
+                            :value="item.value">
23
+                            </el-option>
24
+                        </el-select>
25
+                    </div>
26
+                    <div style="margin-bottom:10px;">
27
+                        <p style="width:50px;display: inline-block;">到</p>
28
+                        <el-select style="width:140px;" v-model="state" placeholder="请选择">
29
+                            <el-option
30
+                            v-for="item in stateOptions"
31
+                            :key="item.value"
32
+                            :label="item.label"
33
+                            :value="item.value">
34
+                            </el-option>
35
+                        </el-select>
36
+                    </div>
37
+                    <div style="margin-bottom:10px;" v-if="state == 2">
38
+                        <p style="width:50px;display: inline-block;"></p>
39
+                        <el-input style="width:200px;" v-model="input" placeholder="请输入内容"></el-input>
40
+                    </div>
41
+                    <div>就诊</div>
42
+                </div>
43
+                
44
+            </div>
45
+            <div class="configureBox" style="border-left:none;">
46
+                <div class="configureBoxTitle">上机叫号</div>
47
+                <div class="configureBoxMain">
48
+                    <div style="margin-bottom:10px;">单次叫号语音播报次数:<el-input-number v-model="num" @change="handleChange" :min="1"></el-input-number></div>
49
+                    <div style="margin-bottom:10px;">叫号语音内容设置:</div>
50
+                    <div style="margin-bottom:10px;">
51
+                        <p style="width:50px;display: inline-block;">请</p>
52
+                        <el-select style="width:140px;" v-model="type" placeholder="请选择">
53
+                            <el-option
54
+                            v-for="item in typeOptions"
55
+                            :key="item.value"
56
+                            :label="item.label"
57
+                            :value="item.value">
58
+                            </el-option>
59
+                        </el-select>
60
+                    </div>
61
+                    <div style="margin-bottom:10px;">
62
+                        <p style="width:50px;display: inline-block;">到</p>
63
+                        <el-select style="width:140px;" v-model="state" placeholder="请选择">
64
+                            <el-option
65
+                            v-for="item in stateOptions"
66
+                            :key="item.value"
67
+                            :label="item.label"
68
+                            :value="item.value">
69
+                            </el-option>
70
+                        </el-select>
71
+                    </div>
72
+                    <div style="margin-bottom:10px;" v-if="state == 2">
73
+                        <p style="width:50px;display: inline-block;"></p>
74
+                        <el-input style="width:200px;" v-model="input" placeholder="请输入内容"></el-input>
75
+                    </div>
76
+                    <div>上机</div>
77
+                </div>
78
+                
79
+            </div>
80
+        </div>
81
+        <div style="display:flex;margin-top:10px;">
82
+            <div style="width:480px;">
83
+                语音播报声音:
84
+                <el-radio-group v-model="radio">
85
+                    <el-radio :label="1">男生</el-radio>
86
+                    <el-radio :label="2">女生</el-radio>
87
+                </el-radio-group>
88
+            </div>
89
+            <div style="width:480px;">
90
+                隐藏接诊叫号区域:
91
+                <el-radio-group v-model="radio">
92
+                    <el-radio :label="1">是</el-radio>
93
+                    <el-radio :label="2">否</el-radio>
94
+                </el-radio-group>
95
+            </div>
96
+        </div>
97
+        <div style="display:flex;margin-top:10px;">
98
+            <div style="width:480px;">
99
+                隐藏上机叫号区域:
100
+                <el-radio-group v-model="radio">
101
+                    <el-radio :label="1">是</el-radio>
102
+                    <el-radio :label="2">否</el-radio>
103
+                </el-radio-group>
104
+            </div>
105
+            <div style="width:480px;">
106
+                是否在透析管理页面显示排队叫号:
107
+                <el-radio-group v-model="radio">
108
+                    <el-radio :label="1">显示</el-radio>
109
+                    <el-radio :label="2">不显示</el-radio>
110
+                </el-radio-group>
111
+            </div>
112
+        </div>
113
+        <div style="display:flex;margin-top:10px;">
114
+            <div style="width:480px;">
115
+                是否在透析记录详情页面显示排队叫号:
116
+                <el-radio-group v-model="radio">
117
+                    <el-radio :label="1">显示</el-radio>
118
+                    <el-radio :label="2">不显示</el-radio>
119
+                </el-radio-group>
120
+            </div>
121
+        </div>
122
+    </div>
123
+</template>
124
+
125
+<script>
126
+export default {
127
+    data(){
128
+        return{
129
+            num:3,
130
+            typeOptions:[{ value: 1, label: '姓名'},{ value: 2, label: '透析号'}],
131
+            type: 1,
132
+            stateOptions:[{ value: 1, label: '智能匹配诊台'},{ value: 2, label: '自定义内容'}],
133
+            state: 1,
134
+            input:'',
135
+            radio:1
136
+        }
137
+    }
138
+}
139
+</script>
140
+
141
+
142
+<style lang="scss" scoped>
143
+.configureBox{
144
+    width:480px;
145
+    height: 300px;
146
+    border: 1px solid #e5e5e5;
147
+    .configureBoxTitle{
148
+        height: 40px;
149
+        text-align: center;
150
+        line-height: 40px;
151
+        background: rgb(245, 247, 250);
152
+        color:rgb(96, 98, 102);
153
+        font-weight: 600;
154
+        border-bottom: 1px solid #e5e5e5;
155
+    }
156
+    .configureBoxMain{
157
+        padding: 10px;
158
+    }
159
+}
160
+</style>

+ 82 - 0
src/xt_pages/dialysis/components/computerCalling.vue 查看文件

1
+<template>
2
+    <div class="page_computerCalling">
3
+        <div class="cell clearfix">
4
+            <label class="title"><span class="name">叫号状态</span> : </label>
5
+            <div class="time ">
6
+                <ul class="">
7
+                    <li v-for="option in patient_state" :key="option.value" @click="handleStateChange(option.value)" :class="patientStateVal == option.value ? 'active' : ''" >{{option.label}}
8
+                    </li>
9
+                </ul>
10
+            </div>
11
+        </div>
12
+        <div style="display:flex;justify-content: space-between;">
13
+            <div class="callingArea">
14
+                <called v-if="patientStateVal == 0" :index='1'></called>
15
+                <called v-if="patientStateVal == 1"></called>
16
+            </div>
17
+            <div class="nowCalling" v-if="patientStateVal == 0">
18
+                <p class="nowCallingTitle">当前叫号</p>
19
+                <p class="nowCallingName">李小明</p>
20
+                <p class="nowCallingTime">签到时间:07:20</p>
21
+                <p class="nowCallingTime">下一位:张三</p>
22
+                <el-button style="margin: 30px 0 20px 0;">重新叫号</el-button>
23
+                <el-button type="primary" style="margin-left:0;">&ensp;&ensp;叫号&ensp;&ensp;</el-button>
24
+            </div>
25
+        </div>
26
+    </div>
27
+</template>
28
+
29
+<script>
30
+import called from './called'
31
+export default {
32
+    components:{
33
+       called 
34
+    },
35
+    data(){
36
+        return{
37
+            patient_state:[
38
+                {value: 0,label: '待叫号'},
39
+                {value: 1,label: '已叫号'},
40
+            ],
41
+            patientStateVal: 0,
42
+        }
43
+    },
44
+    methods:{
45
+        handleStateChange: function(index) {
46
+            this.patientStateVal = index
47
+        },
48
+    }
49
+}
50
+</script>
51
+
52
+
53
+<style lang="scss" scoped>
54
+.callingArea{
55
+    display: flex;
56
+    flex-wrap: wrap;
57
+    width: 86%;
58
+}
59
+.nowCalling{
60
+    height: 351px;
61
+    border: 1px solid #e5e5ee;
62
+    // flex: 1;
63
+    width: 14%;
64
+    text-align: center;
65
+    .nowCallingTitle{
66
+        font-size: 20px;
67
+        font-weight: 600;
68
+        margin-top: 20px;
69
+        text-align: center;
70
+    }
71
+    .nowCallingName{
72
+        color: #338AFB;
73
+        font-size: 18px;
74
+        margin-top: 10px;
75
+        font-weight: 600;
76
+    }
77
+    .nowCallingTime{
78
+        font-size: 16px;
79
+        margin-top: 30px;
80
+    }
81
+}
82
+</style>

+ 12 - 6
src/xt_pages/dialysis/components/consumables.vue 查看文件

49
     <div>
49
     <div>
50
       <el-table
50
       <el-table
51
         :data="list"
51
         :data="list"
52
-        height="350"
53
         border
52
         border
53
+        :row-style="{ color: '#303133' }"
54
+        :header-cell-style="{
55
+          backgroundColor: 'rgb(245, 247, 250)',
56
+          color: '#606266'
57
+        }"
54
       >
58
       >
55
         <el-table-column
59
         <el-table-column
56
           align="center"
60
           align="center"
180
             if(good_type_id == good_user[b].good_type_id)
184
             if(good_type_id == good_user[b].good_type_id)
181
               desc = desc + "\n" + good_user[b].info.specification_name +"*" +good_user[b].count
185
               desc = desc + "\n" + good_user[b].info.specification_name +"*" +good_user[b].count
182
           }
186
           }
183
-          console.log(desc)
187
+
184
 
188
 
185
           return desc
189
           return desc
186
         }
190
         }
215
             var res = response.data
219
             var res = response.data
216
             this.total = res.data.total
220
             this.total = res.data.total
217
             this.good_types.push("姓名")
221
             this.good_types.push("姓名")
222
+
218
             for (let a = 0; a <  res.data.good_type.length; a++){
223
             for (let a = 0; a <  res.data.good_type.length; a++){
219
               this.good_types.push(res.data.good_type[a].type_name)
224
               this.good_types.push(res.data.good_type[a].type_name)
220
             }
225
             }
226
+            console.log("res====",res.data.good_type)
221
             this.allGoodInfo = res.data.dialysis_goods
227
             this.allGoodInfo = res.data.dialysis_goods
222
-
228
+            console.log("dis===",res.data.dialysis_goods)
223
             for(let i = 0; i < res.data.dialysis_goods.length; i++){
229
             for(let i = 0; i < res.data.dialysis_goods.length; i++){
224
               let arr =[]
230
               let arr =[]
225
               let obj = {
231
               let obj = {
226
                 id:0,
232
                 id:0,
227
-                name:  res.data.dialysis_goods[i].patient.name
228
-
233
+                name:  res.data.dialysis_goods[i].patient.name,
229
               }
234
               }
230
               arr.push(obj)
235
               arr.push(obj)
231
 
236
 
249
                 "good_user_detail":res.data.dialysis_goods[i].good_user_detail,
254
                 "good_user_detail":res.data.dialysis_goods[i].good_user_detail,
250
                 "last_good_user_detail":res.data.dialysis_goods[i].last_good_user_detail,
255
                 "last_good_user_detail":res.data.dialysis_goods[i].last_good_user_detail,
251
               }
256
               }
257
+
252
               this.list.push(newObj)
258
               this.list.push(newObj)
253
             }
259
             }
254
 
260
 
265
 
271
 
266
           }
272
           }
267
 
273
 
268
-
274
+         console.log("list",this.list)
269
 
275
 
270
         })
276
         })
271
 
277
 

+ 3 - 47
src/xt_pages/dialysis/components/dialysisDrugs.vue 查看文件

37
           </div>
37
           </div>
38
         </div>
38
         </div>
39
         <div>
39
         <div>
40
-            <el-button size="small" icon="el-icon-printer" type="primary">打印</el-button>
40
+            <!-- <el-button size="small" icon="el-icon-printer" type="primary">打印</el-button> -->
41
             <el-button size="small" type="primary" @click="statistics">统计表</el-button>
41
             <el-button size="small" type="primary" @click="statistics">统计表</el-button>
42
         </div>
42
         </div>
43
       </div>
43
       </div>
90
             selected_date:new Date(),
90
             selected_date:new Date(),
91
             partitionArr:[],
91
             partitionArr:[],
92
             partitionType: 0,
92
             partitionType: 0,
93
-            tableData: [{
94
-                date: '2016-05-03',
95
-                name: '王小虎',
96
-                address: '上海市普陀区金沙江路 1518 弄'
97
-                }, {
98
-                date: '2016-05-02',
99
-                name: '王小虎',
100
-                address: '上海市普陀区金沙江路 1518 弄'
101
-                }, {
102
-                date: '2016-05-04',
103
-                name: '王小虎',
104
-                address: '上海市普陀区金沙江路 1518 弄'
105
-                }, {
106
-                date: '2016-05-01',
107
-                name: '王小虎',
108
-                address: '上海市普陀区金沙江路 1518 弄'
109
-                }, {
110
-                date: '2016-05-08',
111
-                name: '王小虎',
112
-                address: '上海市普陀区金沙江路 1518 弄'
113
-                }, {
114
-                date: '2016-05-06',
115
-                name: '王小虎',
116
-                address: '上海市普陀区金沙江路 1518 弄'
117
-                }, {
118
-                date: '2016-05-07',
119
-                name: '王小虎',
120
-                address: '上海市普陀区金沙江路 1518 弄'
121
-                },{
122
-                date: '2016-05-01',
123
-                name: '王小虎',
124
-                address: '上海市普陀区金沙江路 1518 弄'
125
-                }, {
126
-                date: '2016-05-08',
127
-                name: '王小虎',
128
-                address: '上海市普陀区金沙江路 1518 弄'
129
-                }, {
130
-                date: '2016-05-06',
131
-                name: '王小虎',
132
-                address: '上海市普陀区金沙江路 1518 弄'
133
-                }, {
134
-                date: '2016-05-07',
135
-                name: '王小虎',
136
-                address: '上海市普陀区金沙江路 1518 弄'
137
-                }
138
-            ]
93
+            tableData: []
139
         }
94
         }
140
     },
95
     },
141
     created(){
96
     created(){
142
         this.getAllZone()
97
         this.getAllZone()
98
+        
143
     },
99
     },
144
     methods:{
100
     methods:{
145
         selectSchedulType(scheduleType) {
101
         selectSchedulType(scheduleType) {

+ 47 - 40
src/xt_pages/dialysis/components/dialysisParameters.vue 查看文件

44
       <div>
44
       <div>
45
           <el-table
45
           <el-table
46
             :data="tableData"
46
             :data="tableData"
47
-            height="350"
48
             border
47
             border
49
             style="width: 100%"
48
             style="width: 100%"
49
+            :row-style="{ color: '#303133' }"
50
+            :header-cell-style="{
51
+              backgroundColor: 'rgb(245, 247, 250)',
52
+              color: '#606266'
53
+            }"
50
             @selection-change="handleSelectionChange">
54
             @selection-change="handleSelectionChange">
51
             <el-table-column align="center" type="selection" width="55">
55
             <el-table-column align="center" type="selection" width="55">
52
             </el-table-column>
56
             </el-table-column>
90
                  {{getBloodFlowVolume(scope.row.patient_id)?getBloodFlowVolume(scope.row.patient_id):""}}  
94
                  {{getBloodFlowVolume(scope.row.patient_id)?getBloodFlowVolume(scope.row.patient_id):""}}  
91
                </template>
95
                </template>
92
             </el-table-column>
96
             </el-table-column>
93
-             <el-table-column align="center" label="抗凝剂(首剂)(维持)(总量)" width="220">
97
+             <el-table-column align="center" label="抗凝剂(首剂)(维持)(总量)" width="300">
94
                 <template slot-scope="scope">
98
                 <template slot-scope="scope">
95
                    <span v-if="getAnticoagulant(scope.row.patient_id) == 0"></span>
99
                    <span v-if="getAnticoagulant(scope.row.patient_id) == 0"></span>
96
                     <span v-if="getAnticoagulant(scope.row.patient_id) == 1">无肝素</span>
100
                     <span v-if="getAnticoagulant(scope.row.patient_id) == 1">无肝素</span>
104
                     <span v-if="getAnticoagulant(scope.row.patient_id) == 9">达肝素</span>
108
                     <span v-if="getAnticoagulant(scope.row.patient_id) == 9">达肝素</span>
105
                     <span v-if="getAnticoagulant(scope.row.patient_id) == 10">体外抗凝</span>
109
                     <span v-if="getAnticoagulant(scope.row.patient_id) == 10">体外抗凝</span>
106
                     <span>
110
                     <span>
107
-                      {{getAnticoagulantShouji(scope.row.patient_id)?getAnticoagulantShouji(scope.row.patient_id):''}}
108
-                      <span v-if="getAnticoagulant(scope.row.patient_id) ==1 && getAnticoagulantShouji(scope.row.patient_id)!=''">mg</span>
109
-                      <span v-if="getAnticoagulant(scope.row.patient_id) == 2 && getAnticoagulantShouji(scope.row.patient_id)!=''">iu/h</span>
110
-                      <span v-if="getAnticoagulant(scope.row.patient_id) == 3 && getAnticoagulantShouji(scope.row.patient_id)!=''">iu</span>
111
-                      <span v-if="getAnticoagulant(scope.row.patient_id) == 4 && getAnticoagulantShouji(scope.row.patient_id)!=''">mg</span>
112
-                      <span v-if="getAnticoagulant(scope.row.patient_id) == 5 && getAnticoagulantShouji(scope.row.patient_id)!=''">mg</span>
113
-                      <span v-if="getAnticoagulant(scope.row.patient_id) == 6 && getAnticoagulantShouji(scope.row.patient_id)!=''">iu</span>
114
-                      <span v-if="getAnticoagulant(scope.row.patient_id) == 7 && getAnticoagulantShouji(scope.row.patient_id)!=''">iu</span>
115
-                      <span v-if="getAnticoagulant(scope.row.patient_id)== 8 && getAnticoagulantShouji(scope.row.patient_id)!=''">iu</span>
116
-                      <span v-if="getAnticoagulant(scope.row.patient_id) == 9 && getAnticoagulantShouji(scope.row.patient_id)!=''">iu</span>
117
-                      <span v-if="getAnticoagulant(scope.row.patient_id)== 10 && getAnticoagulantShouji(scope.row.patient_id)!=''">mg</span>
111
+                     {{getAnticoagulantShouji(scope.row.patient_id)?getAnticoagulantShouji(scope.row.patient_id):''}}
112
+                      <span v-if="getAnticoagulant(scope.row.patient_id) ==1 && getAnticoagulantShouji(scope.row.patient_id)!=''">mg)</span>
113
+                      <span v-if="getAnticoagulant(scope.row.patient_id) == 2 && getAnticoagulantShouji(scope.row.patient_id)!=''">iu/h)</span>
114
+                      <span v-if="getAnticoagulant(scope.row.patient_id) == 3 && getAnticoagulantShouji(scope.row.patient_id)!=''">iu)</span>
115
+                      <span v-if="getAnticoagulant(scope.row.patient_id) == 4 && getAnticoagulantShouji(scope.row.patient_id)!=''">mg)</span>
116
+                      <span v-if="getAnticoagulant(scope.row.patient_id) == 5 && getAnticoagulantShouji(scope.row.patient_id)!=''">mg)</span>
117
+                      <span v-if="getAnticoagulant(scope.row.patient_id) == 6 && getAnticoagulantShouji(scope.row.patient_id)!=''">iu)</span>
118
+                      <span v-if="getAnticoagulant(scope.row.patient_id) == 7 && getAnticoagulantShouji(scope.row.patient_id)!=''">iu)</span>
119
+                      <span v-if="getAnticoagulant(scope.row.patient_id)== 8 && getAnticoagulantShouji(scope.row.patient_id)!=''">iu)</span>
120
+                      <span v-if="getAnticoagulant(scope.row.patient_id) == 9 && getAnticoagulantShouji(scope.row.patient_id)!=''">iu)</span>
121
+                      <span v-if="getAnticoagulant(scope.row.patient_id)== 10 && getAnticoagulantShouji(scope.row.patient_id)!=''">mg)</span>
118
                     </span>
122
                     </span>
119
                     <span>
123
                     <span>
120
-                       {{getAnticoagulantWeichi(scope.row.patient_id)?getAnticoagulantWeichi(scope.row.patient_id):''}}
121
-                      <span v-if="getAnticoagulant(scope.row.patient_id) == 1 && getAnticoagulantWeichi(scope.row.patient_id)!=''">mg/h</span>
122
-                      <span v-if="getAnticoagulant(scope.row.patient_id) == 2 && getAnticoagulantWeichi(scope.row.patient_id)!=''">iu/h</span>
123
-                      <span v-if="getAnticoagulant(scope.row.patient_id) == 3 && getAnticoagulantWeichi(scope.row.patient_id)!=''">iu/h</span>
124
-                      <span v-if="getAnticoagulant(scope.row.patient_id) == 4 && getAnticoagulantWeichi(scope.row.patient_id)!=''">mg/h</span>
125
-                      <span v-if="getAnticoagulant(scope.row.patient_id) == 5 && getAnticoagulantWeichi(scope.row.patient_id)!=''">ml/h</span>
126
-                      <span v-if="getAnticoagulant(scope.row.patient_id) == 6 && getAnticoagulantWeichi(scope.row.patient_id)!=''">iu/h</span>
127
-                      <span v-if="getAnticoagulant(scope.row.patient_id) == 7 && getAnticoagulantWeichi(scope.row.patient_id)!=''">iu/h</span>
128
-                      <span v-if="getAnticoagulant(scope.row.patient_id) == 8 && getAnticoagulantWeichi(scope.row.patient_id)!=''">iu/h</span>
129
-                      <span v-if="getAnticoagulant(scope.row.patient_id) == 9 && getAnticoagulantWeichi(scope.row.patient_id)!=''">iu/h</span>
130
-                      <span v-if="getAnticoagulant(scope.row.patient_id) == 10 && getAnticoagulantWeichi(scope.row.patient_id)!=''">mg</span>
124
+                     {{getAnticoagulantWeichi(scope.row.patient_id)?getAnticoagulantWeichi(scope.row.patient_id):''}}
125
+                      <span v-if="getAnticoagulant(scope.row.patient_id) == 1 && getAnticoagulantWeichi(scope.row.patient_id)!=''">mg/h)</span>
126
+                      <span v-if="getAnticoagulant(scope.row.patient_id) == 2 && getAnticoagulantWeichi(scope.row.patient_id)!=''">iu/h)</span>
127
+                      <span v-if="getAnticoagulant(scope.row.patient_id) == 3 && getAnticoagulantWeichi(scope.row.patient_id)!=''">iu/h)</span>
128
+                      <span v-if="getAnticoagulant(scope.row.patient_id) == 4 && getAnticoagulantWeichi(scope.row.patient_id)!=''">mg/h)</span>
129
+                      <span v-if="getAnticoagulant(scope.row.patient_id) == 5 && getAnticoagulantWeichi(scope.row.patient_id)!=''">ml/h)</span>
130
+                      <span v-if="getAnticoagulant(scope.row.patient_id) == 6 && getAnticoagulantWeichi(scope.row.patient_id)!=''">iu/h)</span>
131
+                      <span v-if="getAnticoagulant(scope.row.patient_id) == 7 && getAnticoagulantWeichi(scope.row.patient_id)!=''">iu/h)</span>
132
+                      <span v-if="getAnticoagulant(scope.row.patient_id) == 8 && getAnticoagulantWeichi(scope.row.patient_id)!=''">iu/h)</span>
133
+                      <span v-if="getAnticoagulant(scope.row.patient_id) == 9 && getAnticoagulantWeichi(scope.row.patient_id)!=''">iu/h)</span>
134
+                      <span v-if="getAnticoagulant(scope.row.patient_id) == 10 && getAnticoagulantWeichi(scope.row.patient_id)!=''">mg)</span>
131
                     </span>
135
                     </span>
132
                     <span>
136
                     <span>
133
                       {{getAnticoagulantZongliang(scope.row.patient_id)?getAnticoagulantZongliang(scope.row.patient_id):''}}
137
                       {{getAnticoagulantZongliang(scope.row.patient_id)?getAnticoagulantZongliang(scope.row.patient_id):''}}
134
-                       <span v-if="getAnticoagulant(scope.row.patient_id) == 1 && getAnticoagulantZongliang(scope.row.patient_id)!=''">mg</span>
135
-                      <span v-if="getAnticoagulant(scope.row.patient_id) == 2 && getAnticoagulantZongliang(scope.row.patient_id)!=''">iu</span>
136
-                      <span v-if="getAnticoagulant(scope.row.patient_id) == 3 && getAnticoagulantZongliang(scope.row.patient_id)!=''">iu</span>
137
-                      <span v-if="getAnticoagulant(scope.row.patient_id) == 4 && getAnticoagulantZongliang(scope.row.patient_id)!=''">mg</span>
138
-                      <span v-if="getAnticoagulant(scope.row.patient_id) == 5 && getAnticoagulantZongliang(scope.row.patient_id)!=''">mg</span>
139
-                      <span v-if="getAnticoagulant(scope.row.patient_id) == 6 && getAnticoagulantZongliang(scope.row.patient_id)!=''">iu/h</span>
140
-                      <span v-if="getAnticoagulant(scope.row.patient_id) == 7 && getAnticoagulantZongliang(scope.row.patient_id)!=''">iu</span>
141
-                      <span v-if="getAnticoagulant(scope.row.patient_id) == 8 && getAnticoagulantZongliang(scope.row.patient_id)!=''">iu</span>
142
-                      <span v-if="getAnticoagulant(scope.row.patient_id) == 9 && getAnticoagulantZongliang(scope.row.patient_id)!=''">iu/h</span>
143
-                      <span v-if="getAnticoagulant(scope.row.patient_id) == 10 && getAnticoagulantZongliang(scope.row.patient_id)!=''">mg</span>
138
+                       <span v-if="getAnticoagulant(scope.row.patient_id) == 1 && getAnticoagulantZongliang(scope.row.patient_id)!=''">mg)</span>
139
+                      <span v-if="getAnticoagulant(scope.row.patient_id) == 2 && getAnticoagulantZongliang(scope.row.patient_id)!=''">iu)</span>
140
+                      <span v-if="getAnticoagulant(scope.row.patient_id) == 3 && getAnticoagulantZongliang(scope.row.patient_id)!=''">iu)</span>
141
+                      <span v-if="getAnticoagulant(scope.row.patient_id) == 4 && getAnticoagulantZongliang(scope.row.patient_id)!=''">mg)</span>
142
+                      <span v-if="getAnticoagulant(scope.row.patient_id) == 5 && getAnticoagulantZongliang(scope.row.patient_id)!=''">mg)</span>
143
+                      <span v-if="getAnticoagulant(scope.row.patient_id) == 6 && getAnticoagulantZongliang(scope.row.patient_id)!=''">iu/h)</span>
144
+                      <span v-if="getAnticoagulant(scope.row.patient_id) == 7 && getAnticoagulantZongliang(scope.row.patient_id)!=''">iu)</span>
145
+                      <span v-if="getAnticoagulant(scope.row.patient_id) == 8 && getAnticoagulantZongliang(scope.row.patient_id)!=''">iu)</span>
146
+                      <span v-if="getAnticoagulant(scope.row.patient_id) == 9 && getAnticoagulantZongliang(scope.row.patient_id)!=''">iu/h)</span>
147
+                      <span v-if="getAnticoagulant(scope.row.patient_id) == 10 && getAnticoagulantZongliang(scope.row.patient_id)!=''">mg)</span>
144
                     </span>
148
                     </span>
145
                 </template>
149
                 </template>
146
             </el-table-column>
150
             </el-table-column>
163
       ></el-pagination>
167
       ></el-pagination>
164
       </div>
168
       </div>
165
 
169
 
166
-      <consumables-dialog ref="consumables"></consumables-dialog>
170
+      <!-- <consumables-dialog ref="consumables"></consumables-dialog> -->
171
+      <dialysisParameters-dialog ref="dialysisParameters"></dialysisParameters-dialog>
167
     </div>
172
     </div>
168
 </template>
173
 </template>
169
 
174
 
171
 <script>
176
 <script>
172
 import { GetAllZone } from "@/api/dialysis";
177
 import { GetAllZone } from "@/api/dialysis";
173
 import consumablesDialog from './consumablesDialog'
178
 import consumablesDialog from './consumablesDialog'
179
+import dialysisParametersDialog from './dialysisParametersDialog'
174
 import { parseTime } from "@/utils";
180
 import { parseTime } from "@/utils";
175
 import { getDialysisParameters } from "@/api/consumable"
181
 import { getDialysisParameters } from "@/api/consumable"
176
 const moment = require('moment')
182
 const moment = require('moment')
177
 export default {
183
 export default {
178
     components:{
184
     components:{
179
-        consumablesDialog
185
+        consumablesDialog,
186
+        dialysisParametersDialog
180
     },
187
     },
181
     data(){
188
     data(){
182
         return{
189
         return{
230
             });
237
             });
231
         },
238
         },
232
         statistics(){
239
         statistics(){
233
-            this.$refs.consumables.show();
240
+            this.$refs.dialysisParameters.show();
234
         },
241
         },
235
         search(){
242
         search(){
236
             if(this.selected_date==""){
243
             if(this.selected_date==""){
396
        var shouji = ""
403
        var shouji = ""
397
        for(let i=0;i<this.prescriptionList.length;i++){
404
        for(let i=0;i<this.prescriptionList.length;i++){
398
          if(this.prescriptionList[i].patient_id == id){
405
          if(this.prescriptionList[i].patient_id == id){
399
-            shouji = this.prescriptionList[i].anticoagulant_shouji
406
+            shouji = "("+this.prescriptionList[i].anticoagulant_shouji
400
           }
407
           }
401
         } 
408
         } 
402
        return shouji
409
        return shouji
405
         var weichi = ""
412
         var weichi = ""
406
         for(let i=0;i<this.prescriptionList.length;i++){
413
         for(let i=0;i<this.prescriptionList.length;i++){
407
          if(this.prescriptionList[i].patient_id == id){
414
          if(this.prescriptionList[i].patient_id == id){
408
-            weichi = this.prescriptionList[i].anticoagulant_weichi
415
+            weichi = "("+this.prescriptionList[i].anticoagulant_weichi
409
         } 
416
         } 
410
        return weichi
417
        return weichi
411
       }
418
       }
414
        var zongliang = ""
421
        var zongliang = ""
415
        for(let i=0;i<this.prescriptionList.length;i++){
422
        for(let i=0;i<this.prescriptionList.length;i++){
416
          if(this.prescriptionList[i].patient_id == id){
423
          if(this.prescriptionList[i].patient_id == id){
417
-            zongliang = this.prescriptionList[i].anticoagulant_zongliang
424
+            zongliang = "("+this.prescriptionList[i].anticoagulant_zongliang
418
           }
425
           }
419
         } 
426
         } 
420
        return zongliang
427
        return zongliang

+ 56 - 35
src/xt_pages/dialysis/components/dialysisParametersDialog.vue 查看文件

10
         style="width:140px;margin-right:10px"
10
         style="width:140px;margin-right:10px"
11
         v-model="startTime"
11
         v-model="startTime"
12
         type="date"
12
         type="date"
13
-        placeholder="选择日期">
13
+        placeholder="选择日期"
14
+        @change="selectStartime">
14
         </el-date-picker>
15
         </el-date-picker>
15
         <el-date-picker
16
         <el-date-picker
16
         style="width:140px;margin-right:10px"
17
         style="width:140px;margin-right:10px"
18
         type="date"
19
         type="date"
19
         placeholder="选择日期">
20
         placeholder="选择日期">
20
         </el-date-picker>
21
         </el-date-picker>
21
-        <el-select style="width:140px;margin-right:10px" v-model="schedulType" placeholder="请选择">
22
-            <el-option
23
-            v-for="item in schedulArr"
24
-            :key="item.value"
25
-            :label="item.label"
26
-            :value="item.value">
27
-            </el-option>
28
-        </el-select>
29
-        <el-select style="width:140px;margin-right:10px" v-model="partitionType" placeholder="请选择">
30
-            <el-option
31
-            v-for="item in partitionArr"
32
-            :key="item.id"
33
-            :label="item.name"
34
-            :value="item.id">
35
-            </el-option>
36
-        </el-select>
37
         <el-button icon="el-icon-printer" type="primary" @click="toPrint">打印</el-button>
22
         <el-button icon="el-icon-printer" type="primary" @click="toPrint">打印</el-button>
38
 
23
 
39
     </div>
24
     </div>
40
     <div style="margin-top:10px;">
25
     <div style="margin-top:10px;">
41
         <el-table :data="tableData" border style="width: 100%" height="300">
26
         <el-table :data="tableData" border style="width: 100%" height="300">
42
-            <el-table-column
43
-            align="center"
44
-            prop="address"
45
-            label="商品类型">
27
+            <el-table-column align="center" prop="address" label="商品类型">
28
+                <template slot-scope="scope">
29
+                   抗凝剂
30
+                </template>
46
             </el-table-column>
31
             </el-table-column>
47
-            <el-table-column
48
-            align="center"
49
-            prop="name"
50
-            label="规格名称"
51
-            >
32
+            <el-table-column align="center" prop="name" label="规格名称"> 
33
+                <template slot-scope="scope">
34
+                   <span v-if="scope.row.anticoagulant==1">无肝素</span>
35
+                   <span v-if="scope.row.anticoagulant==2">普通肝素</span>
36
+                   <span v-if="scope.row.anticoagulant==4">阿加曲班</span>
37
+                   <span v-if="scope.row.anticoagulant==5">枸橼酸钠</span>
38
+                   <span v-if="scope.row.anticoagulant==6">低分子肝素钙</span>
39
+                   <span v-if="scope.row.anticoagulant==7">低分子肝素钠</span>
40
+                   <span v-if="scope.row.anticoagulant==8">依诺肝素</span>
41
+                   <span v-if="scope.row.anticoagulant==9">达肝素</span>
42
+                   <span v-if="scope.row.anticoagulant==10">体外抗凝</span>
43
+                </template>
52
             </el-table-column>
44
             </el-table-column>
53
-            <el-table-column
54
-            align="center"
55
-            prop="name"
56
-            label="数量"
57
-            >
45
+            <el-table-column align="center" prop="name"label="数量">
46
+              <template slot-scope="scope">
47
+                 {{scope.row.count}}
48
+              </template>
58
             </el-table-column>
49
             </el-table-column>
59
         </el-table>
50
         </el-table>
60
     </div>
51
     </div>
68
 
59
 
69
 
60
 
70
 <script>
61
 <script>
62
+const moment = require('moment')
63
+import { parseTime } from '@/utils'
71
 import { GetAllZone } from "@/api/dialysis";
64
 import { GetAllZone } from "@/api/dialysis";
65
+import { GetAnticoagulantCount} from "@/api/consumable"
72
 export default {
66
 export default {
73
     data(){
67
     data(){
74
         return{
68
         return{
75
             visible: false,
69
             visible: false,
76
-            startTime:'',
77
-            endTime:'',
70
+            startTime:moment(new Date()).add('year', 0).format('YYYY-MM-DD'),
71
+            endTime:moment(new Date()).add('year', 0).format('YYYY-MM-DD'),
78
             schedulArr: [
72
             schedulArr: [
79
                 {value: 0, label: '全部班'},
73
                 {value: 0, label: '全部班'},
80
                 {value: 1, label: '上午'},
74
                 {value: 1, label: '上午'},
84
             schedulType: 0,
78
             schedulType: 0,
85
             partitionArr:[],
79
             partitionArr:[],
86
             partitionType: 0,
80
             partitionType: 0,
87
-            tableData: []
81
+            tableData: [],
82
+            query:{
83
+             start_time: moment(new Date()).add('year', 0).format('YYYY-MM-DD'),
84
+             end_time:moment(new Date()).add('year', 0).format('YYYY-MM-DD')
85
+          },
88
         }
86
         }
89
     },
87
     },
90
     created(){
88
     created(){
91
         this.getAllZone()
89
         this.getAllZone()
90
+        this.getlist()
92
     },
91
     },
93
     methods:{
92
     methods:{
94
         _close: function(done) {
93
         _close: function(done) {
110
         },
109
         },
111
         toPrint(){
110
         toPrint(){
112
             this.$router.push({
111
             this.$router.push({
113
-                path: '/dialysis/dialysisParameters_print',
112
+                // path: '/dialysis/dialysisParameters_print',
114
                 // query: { date: date }
113
                 // query: { date: date }
114
+                path:"/dialysis/dialysisdrugs_print?startime="+this.query.start_time+"&endtime="+this.query.end_time
115
             })
115
             })
116
+        },
117
+       selectStartime() {
118
+        this.start_time = parseTime(this.startTime, '{y}-{m}-{d}')
119
+        this.query.start_time = parseTime(this.startTime, '{y}-{m}-{d}')
120
+        this.getlist()
121
+
122
+      },
123
+      selectEndtime() {
124
+        this.end_time = parseTime(this.endTime, '{y}-{m}-{d}')
125
+        this.query.end_time = parseTime(this.endTime, '{y}-{m}-{d}')
126
+        this.getlist()
127
+
128
+      },
129
+        getlist(){
130
+          GetAnticoagulantCount(this.query).then(response=>{
131
+             if(response.data.state == 1){
132
+               var count =  response.data.data.count
133
+               console.log("count22222",count)
134
+               this.tableData = count
135
+             }
136
+          })  
116
         }
137
         }
117
     }
138
     }
118
 }
139
 }

+ 199 - 0
src/xt_pages/dialysis/components/lineUp.vue 查看文件

1
+<template>
2
+    <div class="page_lineUp">
3
+        <div class="lineUpTitle">
4
+            <div>唐山朝阳医院<span>温馨提示:请注意排队叫号,依次叫号就诊上机,谢谢配合</span></div>
5
+            <div>2020.8.18   07:22(星期四)</div>
6
+        </div>
7
+        <div class="lineUpMain">
8
+            <div class="lineUpMainLeft">
9
+                <div class="lineUpMainLeftTitle">
10
+                    <p style="width:14%">排号</p>
11
+                    <p style="width:14%">姓名</p>
12
+                    <p style="width:14%">病例号</p>
13
+                    <p style="width:14%">床位号</p>
14
+                    <p style="width:14%">治疗状态</p>
15
+                    <p style="width:14%">上机时间</p>
16
+                    <p style="width:14%">预计下机时间</p>
17
+                </div>
18
+                <div class="lineUpList">
19
+                    <div class="lineUpListOne" v-for="item in 8" :key="item">
20
+                        <p style="width:14%">P01</p>
21
+                        <p style="width:14%">张*等</p>
22
+                        <p style="width:14%">001</p>
23
+                        <p style="width:14%">普通区1号床</p>
24
+                        <p style="width:14%">已下机</p>
25
+                        <p style="width:14%">09:01</p>
26
+                        <p style="width:14%">09:01</p>
27
+                    </div>
28
+                </div>
29
+            </div> 
30
+            <div class="callingBox">
31
+                <div class="callingBoxLeft">
32
+                    <div class="callingTitle"><span style="margin: 0 auto;">接<br />诊<br />叫<br />号</span></div>
33
+                    <div style="flex: 1;">
34
+                        <div class="callingTop" style="margin-bottom:4px;">
35
+                            <div class="callingTopTip"><span style="margin: 0 auto;">正在<br />接诊</span></div>
36
+                            <div class="callingContent">
37
+                                <p style="margin-top:13px;">请李四宋到1号诊台就诊</p>
38
+                                <p>请王岐岐到2号诊台就诊</p>
39
+                            </div>
40
+                        </div>
41
+                        <div class="callingTop" style="border-radius: 0 0 15px 0;">
42
+                            <div class="callingTopTip"><span style="margin: 0 auto;">等待<br />接诊</span></div>
43
+                            <div class="callingContent">
44
+                                <p style="margin-top:13px;">欧大大、王思思、陈啦啦、吴东汉、</p>
45
+                                <p>孔豆豆、陈米春、孔豆豆、陈米春、</p>
46
+                            </div>
47
+                        </div>
48
+                    </div>
49
+                </div>
50
+                <div class="callingBoxLeft">
51
+                    <div class="callingTitle newCallingTitle"><span style="margin: 0 auto;">上<br />机<br />叫<br />号</span></div>
52
+                    <div style="flex: 1;">
53
+                        <div class="callingTop" style="margin-bottom:4px;">
54
+                            <div class="callingTopTip newCallingTopTip"><span style="margin: 0 auto;">正在<br />叫号</span></div>
55
+                            <div class="callingContent">
56
+                                <p style="margin-top:13px;">请李四宋到普通区2号床上机</p>
57
+                                <p>请王岐岐到普通区3号床上机</p>
58
+                            </div>
59
+                        </div>
60
+                        <div class="callingTop" style="border-radius: 0 0 15px 0;">
61
+                            <div class="callingTopTip newCallingTopTip"><span style="margin: 0 auto;">等待<br />叫号</span></div>
62
+                            <div class="callingContent">
63
+                                <p style="margin-top:13px;">欧大大、王思思、陈啦啦、吴东汉、</p>
64
+                                <p>孔豆豆、陈米春、孔豆豆、陈米春、</p>
65
+                            </div>
66
+                        </div>
67
+                    </div>
68
+                </div>
69
+            </div>
70
+        </div>
71
+        
72
+    </div>
73
+</template>
74
+
75
+<style lang="scss" scoped>
76
+.page_lineUp{
77
+    .lineUpTitle{
78
+        height: 50px;
79
+        background: #1A82BF;
80
+        display: flex;
81
+        justify-content: space-between;
82
+        align-items: center;
83
+        padding: 0 20px;
84
+        color:#fff;
85
+        font-size: 20px;
86
+        font-weight: 600;
87
+    }
88
+    .lineUpMain{
89
+        background: linear-gradient(0deg, #76ECEC, #479CD2);
90
+        height: 550px;
91
+        padding:10px;
92
+    }
93
+    .lineUpMainLeft{
94
+        height: 370px;
95
+        border-radius: 15px;
96
+        
97
+    }
98
+    .lineUpMainLeftTitle{
99
+        display: flex;
100
+        justify-content: space-between;
101
+        align-items: center;
102
+        color:#fff;
103
+        font-size: 18px;
104
+        font-weight: 600;
105
+        height:50px;
106
+        background: #1A82BF;
107
+        border-radius: 15px 15px 0 0;
108
+        >p{
109
+            text-align: center;
110
+        }
111
+    }
112
+    .lineUpList{
113
+        font-size: 18px;
114
+        font-weight: 600;
115
+        >div:nth-child(odd){
116
+            background: #F9FDFF;
117
+        }
118
+        >div:nth-child(even){
119
+            background: #CCEBFF;
120
+        }
121
+        >div:last-child{
122
+            border-radius: 0 0 15px 15px;
123
+        }
124
+        .lineUpListOne{
125
+            height:40px;
126
+            display: flex;
127
+            justify-content: space-between;
128
+            align-items: center;
129
+            color:#1C6895;
130
+            >p{
131
+                width:25%;
132
+                text-align: center;
133
+            }
134
+        }
135
+    }
136
+    .callingBox{
137
+        height: 150px;
138
+        margin-top: 10px;
139
+        display: flex;
140
+        justify-content: space-between;
141
+        .callingBoxLeft{
142
+            width: 49%;
143
+            height: 100%;
144
+            display: flex;
145
+            justify-content: space-between;
146
+            .callingTitle{
147
+                width: 60px;
148
+                height: 100%;
149
+                border-radius: 15px 0 0 15px;
150
+                font-size: 30px;
151
+                font-weight:600;
152
+                text-align: center;
153
+                color: #fff;
154
+                background: #1A82BF;
155
+                display: flex;
156
+                align-items: center;
157
+                margin-right: 5px;
158
+            }
159
+            .newCallingTitle{
160
+                background: linear-gradient(90deg, rgba(66, 231, 167, 1), rgba(26, 191, 84, 1), rgba(157, 254, 31, 1));
161
+            }
162
+        } 
163
+        .callingTop{
164
+            height: 73px;
165
+            border-radius: 0 15px 0 0;
166
+            background: #F9FDFF;
167
+            display: flex;
168
+            justify-content: space-between;
169
+            .callingTopTip{
170
+                width: 73px;
171
+                height: 100%;
172
+                color: #fff;
173
+                font-size: 18px;
174
+                font-weight: 600;
175
+                background: #1A82BF;
176
+                display: flex;
177
+                align-items: center;
178
+            }
179
+            .newCallingTopTip{
180
+                background: linear-gradient(90deg, rgba(66, 231, 167, 1), rgba(26, 191, 84, 1), rgba(157, 254, 31, 1));
181
+            }
182
+            .callingContent{
183
+                flex: 1;
184
+                display: flex;
185
+                flex-direction: column;
186
+                font-size: 16px;
187
+                color:#1C6895;
188
+                font-weight: 600;
189
+                padding-left: 20px;
190
+                >p{
191
+                    width:100%;
192
+                    text-align: left;
193
+                    line-height: 24px;
194
+                }
195
+            }
196
+        }
197
+    }
198
+}
199
+</style>

+ 152 - 0
src/xt_pages/dialysis/components/signIn.vue 查看文件

1
+<template>
2
+    <div class="page_signIn">
3
+        <div class="signInTitle">
4
+            <div>唐山朝阳医院</div>
5
+            <div>2020.8.18   07:22(星期四)</div>
6
+        </div>
7
+        <div class="signInMain">
8
+             <div style="display: flex;justify-content: space-between;padding:10px;">
9
+                <div class="signInMainLeft">
10
+                    <div class="signInMainLeftTitle">
11
+                        <p>排号</p>
12
+                        <p>姓名</p>
13
+                        <p>病历号</p>
14
+                        <p>签到时间</p>
15
+                    </div>
16
+                    <div class="signInList">
17
+                        <div class="signInListOne" v-for="item in 12" :key="item">
18
+                            <p>P13</p>
19
+                            <p>张*等</p>
20
+                            <p>001</p>
21
+                            <p>09:01:00</p>
22
+                        </div>
23
+                    </div>
24
+                </div>
25
+                <div class="signInMainRight">
26
+                    <div class="signInMainRightTitle"><span style="margin:0 auto;">张三</span></div>
27
+                    <div class="signInMainRightContent">
28
+                        <p style="margin: 0 auto;display:flex;align-items: center;"><span>排号&nbsp;&nbsp;</span><span style="font-size:120px;">P06</span></p>
29
+                    </div>
30
+                    <div class="signInMianRightBottom"><span style="margin:0 auto;">签到成功</span></div>
31
+                </div>
32
+            </div>
33
+            <div class="signInTip">
34
+                温馨提示:请注意排队叫号,依次叫号就诊上机,谢谢配合
35
+            </div>
36
+        </div>
37
+    </div>
38
+</template>
39
+
40
+
41
+<style lang="scss" scoped>
42
+.page_signIn{
43
+    .signInTitle{
44
+        height: 50px;
45
+        background: #1A82BF;
46
+        display: flex;
47
+        justify-content: space-between;
48
+        align-items: center;
49
+        padding: 0 20px;
50
+        color:#fff;
51
+        font-size: 20px;
52
+        font-weight: 600;
53
+    }
54
+    .signInMain{
55
+        background: linear-gradient(0deg, #76ECEC, #479CD2);
56
+        height: 600px;
57
+        
58
+        
59
+    }
60
+    .signInMainLeft{
61
+        width:65%;
62
+        height: 530px;
63
+        border-radius: 15px;
64
+    }
65
+    .signInMainLeftTitle{
66
+        display: flex;
67
+        justify-content: space-between;
68
+        align-items: center;
69
+        color:#fff;
70
+        font-size: 18px;
71
+        font-weight: 600;
72
+        height:50px;
73
+        background: #1A82BF;
74
+        border-radius: 15px 15px 0 0;
75
+        >p{
76
+            width:25%;
77
+            text-align: center;
78
+        }
79
+    }
80
+    .signInList{
81
+        font-size: 18px;
82
+        font-weight: 600;
83
+        >div:nth-child(odd){
84
+            background: #F9FDFF;
85
+        }
86
+        >div:nth-child(even){
87
+            background: #CCEBFF;
88
+        }
89
+        >div:last-child{
90
+            border-radius: 0 0 15px 15px;
91
+        }
92
+        .signInListOne{
93
+            height:40px;
94
+            display: flex;
95
+            justify-content: space-between;
96
+            align-items: center;
97
+            color:#1C6895;
98
+            >p{
99
+                width:25%;
100
+                text-align: center;
101
+            }
102
+        }
103
+    }
104
+    .signInMainRight{
105
+        width: 34%;
106
+        height: 530px;
107
+    }
108
+    .signInMainRightTitle{
109
+        height: 130px;
110
+        border-radius: 15px 15px 0 0;
111
+        background: #1A82BF;
112
+        font-size: 80px;
113
+        font-weight: 600;
114
+        color:#fff;
115
+        display: flex;
116
+        align-items: center;
117
+        justify-content: space-between;
118
+    }
119
+    .signInMainRightContent{
120
+        background: #F9FDFF;
121
+        height: 300px;
122
+        text-align: center;
123
+        font-weight: 600;
124
+        color:#1C6895;
125
+        box-sizing: border-box;
126
+        font-size:70px;
127
+        display:flex;
128
+        align-items:center;
129
+    }
130
+    .signInMianRightBottom{
131
+        height: 100px;
132
+        background: #1A82BF;
133
+        border-radius: 0 0 15px 15px;
134
+        font-size: 40px;
135
+        font-weight: 600;
136
+        color:#fff;
137
+        display: flex;
138
+        justify-content: space-between;
139
+        align-items: center;
140
+    }
141
+    .signInTip{
142
+        color:#fff;
143
+        font-size: 18px;
144
+        font-weight: 600;
145
+        display: flex;
146
+        align-items: center;
147
+        height: 50px;
148
+        background: linear-gradient(0deg, #42A9E7, #3686B9, #42A9E7);
149
+        margin-top: 1px;
150
+    }
151
+}
152
+</style>

+ 84 - 0
src/xt_pages/dialysis/components/treatmentConfigure.vue 查看文件

1
+<template>
2
+    <div class="page_configure">
3
+        <div style="display:flex;align-items:center;margin-bottom:12px;justify-content: space-between;">
4
+            <div>接诊台列表</div>
5
+            <el-button type="primary" @click="newVisible = true">新增</el-button>
6
+        </div>
7
+        <el-table :data="tableData" border style="width: 100%">
8
+            <el-table-column prop="date" label="接诊台号" align="center"></el-table-column>
9
+            <el-table-column label="诊台负责医生" align="center">
10
+                <template slot-scope="scope">
11
+                    <el-tag size="medium">{{ scope.row.name }}</el-tag>
12
+                </template>
13
+            </el-table-column>
14
+            <el-table-column label="操作" align="center">
15
+                <template slot-scope="scope">
16
+                    <el-button size="mini" type="primary" @click="handleEdit(scope.$index, scope.row)">编辑</el-button>
17
+                    <el-button size="mini" type="danger" @click="handleDelete(scope.$index, scope.row)">删除</el-button>
18
+                </template>
19
+            </el-table-column>
20
+        </el-table>
21
+        <el-dialog title="新增诊台" width="800px" :visible.sync="newVisible" >
22
+            <el-form :model="form" :rules="rules" ref="form" label-width="140px">
23
+                <el-form-item label="诊台号 : " required prop="type">
24
+                    <el-input v-model.trim="form.type" placeholder="" ></el-input>
25
+                </el-form-item>
26
+                <el-form-item label="诊台负责医生 : " required  prop="doctor">
27
+                    <el-select style="width:100%" v-model="form.doctor" placeholder="请选择" multiple filterable allow-create default-first-option>
28
+                        <el-option
29
+                        v-for="item in typeOptions"
30
+                        :key="item.value"
31
+                        :label="item.label"
32
+                        :value="item.value">
33
+                        </el-option>
34
+                    </el-select>
35
+                </el-form-item>
36
+            </el-form>
37
+            <div slot="footer" class="dialog-footer">
38
+                <el-button @click="newVisible=false">取 消</el-button>
39
+                <el-button type="primary" @click="submitAction('form')">保 存</el-button>
40
+            </div>
41
+        </el-dialog>
42
+    </div>
43
+</template>
44
+
45
+<script>
46
+export default {
47
+    data(){
48
+        return{
49
+            tableData: [{
50
+                date: '2016-05-02',
51
+                name: '王小虎',
52
+                address: '上海市普陀区金沙江路 1518 弄'
53
+                }, {
54
+                date: '2016-05-04',
55
+                name: '王小虎',
56
+                address: '上海市普陀区金沙江路 1517 弄'
57
+                }, {
58
+                date: '2016-05-01',
59
+                name: '王小虎',
60
+                address: '上海市普陀区金沙江路 1519 弄'
61
+                }, {
62
+                date: '2016-05-03',
63
+                name: '王小虎',
64
+                address: '上海市普陀区金沙江路 1516 弄'
65
+            }],
66
+            newVisible:false,
67
+            form: {
68
+                id: 0,
69
+                type: "",
70
+                doctor:[],
71
+            },
72
+            rules: {
73
+              type: [{ required: true, message: "请输入诊台号" }],
74
+              doctor: [{ required: true, message: "请选择接诊台负责医生"}],  
75
+            },
76
+            typeOptions:[{ value: 1, label: '张三'},{ value: 2, label: '李四'}],
77
+        }
78
+    },
79
+    methods:{
80
+        handleEdit(){},
81
+        handleDelete(){},
82
+    }
83
+}
84
+</script>

+ 61 - 0
src/xt_pages/dialysis/components/waitingCalled.vue 查看文件

1
+<template>
2
+    <div class="waitingCalled">
3
+        <div class="waitingOne" v-for="item in 12" :key="item">
4
+            <div class="waitingOneLeft">
5
+                <img src="https://images.shengws.com/201809182128111.png?imageView2/2/w/500/h/500/q/90" alt="">
6
+                <div class="name">
7
+                    <p>吴保龄</p>
8
+                    <p>签到时间:07:00:00</p>
9
+                </div>
10
+            </div>
11
+            <div class="waitingOneRight">
12
+                <img src="../../../assets/img/volume.png" alt="">
13
+            </div>
14
+        </div>
15
+    </div>
16
+</template>
17
+
18
+<style lang="scss" scoped>
19
+.waitingCalled{
20
+    .waitingOne{
21
+        border: 1px #e5e5ee solid;
22
+        padding: 9px 0;
23
+        margin: 0 15px 15px 0;
24
+        float: left;
25
+        width: 360px;
26
+        cursor: pointer;
27
+        display: flex;
28
+        justify-content: space-between;
29
+        align-items: center;
30
+        padding: 10px;
31
+        .waitingOneLeft{
32
+            display: flex;
33
+            img{
34
+                width: 45px;
35
+                height: 45px;
36
+                border-radius: 50%;
37
+                margin-right: 15px;
38
+            }
39
+            .name{
40
+                >p:first-child{
41
+                    font-size: 16px;
42
+                    font-weight: bold;
43
+                    color:#000;
44
+                }
45
+                >p:last-child{
46
+                    font-size: 12px;
47
+                    color:#999999;
48
+                    margin-top: 10px;
49
+                }
50
+            }
51
+            
52
+        }
53
+        .waitingOneRight{
54
+            img{
55
+                width: 30px;
56
+                margin-top: 6px;
57
+            }
58
+        }
59
+    }
60
+}
61
+</style>

+ 1 - 3
src/xt_pages/dialysis/consumables_print.vue 查看文件

16
                     </div>
16
                     </div>
17
                     <div style="display:flex;justify-content: space-between;margin-bottom:10px;">
17
                     <div style="display:flex;justify-content: space-between;margin-bottom:10px;">
18
                         <p>统计时间:{{query.start_time}} - {{query.end_time}}</p>
18
                         <p>统计时间:{{query.start_time}} - {{query.end_time}}</p>
19
+                        <p>印单日期:{{print_time}}</p>
19
                     </div>
20
                     </div>
20
-                  <div style="display:flex;justify-content: space-between;margin-bottom:10px;">
21
-                    <p>印单日期:{{print_time}}</p>
22
-                  </div>
23
                     <div class="table_panel">
21
                     <div class="table_panel">
24
                         <table class="table">
22
                         <table class="table">
25
                             <thead>
23
                             <thead>

+ 50 - 8
src/xt_pages/dialysis/dialysisDrugs_print.vue 查看文件

12
             <div id="print_content">
12
             <div id="print_content">
13
                 <div class="print_main_content">
13
                 <div class="print_main_content">
14
                     <div class="order_title_panl">
14
                     <div class="order_title_panl">
15
-                        <span class="main_title">药品统计表</span>
15
+                        <span class="main_title">透析参数统计表</span>
16
                     </div>
16
                     </div>
17
                     <div style="display:flex;justify-content: space-between;margin-bottom:10px;">
17
                     <div style="display:flex;justify-content: space-between;margin-bottom:10px;">
18
-                        <p>统计时间:2020.8.19-2020.8.20</p>
19
-                        <p>印单日期:2020.8.20</p>
18
+                        <p>统计时间:{{start_time}}-{{end_time}}</p>
19
+                        <p>印单日期:{{print_time}}</p>
20
                     </div>
20
                     </div>
21
                     <div class="table_panel">
21
                     <div class="table_panel">
22
                         <table class="table">
22
                         <table class="table">
23
                             <thead>
23
                             <thead>
24
                                 <tr>
24
                                 <tr>
25
-                                    <td>药品名称</td>
26
-                                    <td width="120">数量</td>
25
+                                    <td width="120">商品类型</td>
26
+                                    <td width="120">规格名称</td>
27
+                                     <td width="120">数量</td>
27
                                 </tr>
28
                                 </tr>
28
                             </thead>
29
                             </thead>
29
                             <tbody>
30
                             <tbody>
30
-                                <tr v-for='item in 6'>
31
-                                    <td>张三</td>
32
-                                    <td>张三</td>
31
+                                <tr v-for='(item,index) in tableData' :key="index">
32
+                                    <td>抗凝剂</td>
33
+                                    <td>
34
+                                      <span v-if="item.anticoagulant==1">无肝素</span>
35
+                                      <span v-if="item.anticoagulant==2">普通肝素</span>
36
+                                      <span v-if="item.anticoagulant==4">阿加曲班</span>
37
+                                      <span v-if="item.anticoagulant==5">枸橼酸钠</span>
38
+                                      <span v-if="item.anticoagulant==6">低分子肝素钙</span>
39
+                                      <span v-if="item.anticoagulant==7">低分子肝素钠</span>
40
+                                      <span v-if="item.anticoagulant==8">依诺肝素</span>
41
+                                      <span v-if="item.anticoagulant==9">达肝素</span>
42
+                                      <span v-if="item.anticoagulant==10">体外抗凝</span> 
43
+                                    </td>
44
+                                    <td>
45
+                                      {{item.count}}
46
+                                    </td>
33
                                 </tr>
47
                                 </tr>
34
                             </tbody>
48
                             </tbody>
35
                         </table>
49
                         </table>
42
 
56
 
43
 <script>
57
 <script>
44
 import BreadCrumb from '@/xt_pages/components/bread-crumb'
58
 import BreadCrumb from '@/xt_pages/components/bread-crumb'
59
+import { GetAnticoagulantCount} from "@/api/consumable"
45
 import print from 'print-js'
60
 import print from 'print-js'
61
+const moment = require('moment')
46
 export default {
62
 export default {
47
     components:{
63
     components:{
48
         BreadCrumb
64
         BreadCrumb
53
                 { path: false, name: '耗材药品' },
69
                 { path: false, name: '耗材药品' },
54
                 { path: false, name: '药品打印' }
70
                 { path: false, name: '药品打印' }
55
             ],
71
             ],
72
+            tableData:[],
73
+            start_time:"",
74
+            end_time:"",
75
+            print_time:moment(new Date()).add('year', 0).format('YYYY-MM-DD'),
56
         }
76
         }
57
     },
77
     },
58
     methods:{
78
     methods:{
66
             style: style,
86
             style: style,
67
             scanStyles: false
87
             scanStyles: false
68
             })
88
             })
89
+        },
90
+        getlist(startime,endtime){
91
+             const params= {
92
+               start_time:startime,
93
+               end_time:endtime
94
+             }
95
+           GetAnticoagulantCount(params).then(response=>{
96
+             if(response.data.state == 1){
97
+               var count =  response.data.data.count
98
+               console.log("99999count",count)
99
+               this.tableData = count
100
+             }
101
+           })
69
         }
102
         }
103
+    },
104
+    created(){
105
+      var startime = this.$route.query.startime
106
+      console.log("startime3333",startime)
107
+      var endtime = this.$route.query.endtime
108
+      console.log("endtime6666",endtime)
109
+      this.getlist(startime,endtime)
110
+      this.start_time = startime
111
+      this.end_time = endtime
70
     }
112
     }
71
 }
113
 }
72
 </script>
114
 </script>

+ 4 - 0
src/xt_pages/stock/stockOutOrderDetail.vue 查看文件

331
     color: #bd2c00;
331
     color: #bd2c00;
332
 
332
 
333
   }
333
   }
334
+  .el-table__body div > div:hover {
335
+    background-color: #409eff !important;
336
+    color: #fff !important;
337
+  }
334
 
338
 
335
 </style>
339
 </style>

+ 1 - 1
src/xt_pages/stock/stockUserDetail.vue 查看文件

46
               <span >{{scope.row.count}}</span>
46
               <span >{{scope.row.count}}</span>
47
             </template>
47
             </template>
48
           </el-table-column>
48
           </el-table-column>
49
-          <el-table-column min-width="23" align="center">
49
+          <el-table-column min-width="35" align="center">
50
             <template slot="header" slot-scope="scope">
50
             <template slot="header" slot-scope="scope">
51
               <span>使用时间</span>
51
               <span>使用时间</span>
52
             </template>
52
             </template>