Browse Source

纪录 =》 记录

mainqaq 2 years ago
parent
commit
164c32f4b9

+ 93 - 12
src/xt_pages/Pharmacy/DispensingDetails.vue View File

@@ -1,4 +1,4 @@
1
-<template>
1
+<template><!--发药明细-->
2 2
   <div class="main-contain">
3 3
     <div class="position">
4 4
       <bread-crumb :crumbs="crumbs"></bread-crumb>
@@ -17,7 +17,7 @@
17 17
             size="small"
18 18
             style="width: 200px; margin-left: 10px"
19 19
             class="filter-item"
20
-            v-model="name"
20
+            v-model="keyword"
21 21
             placeholder="请输入患者姓名"
22 22
           ></el-input>
23 23
 
@@ -54,7 +54,7 @@
54 54
             class="filter-item"
55 55
             type="primary"
56 56
             icon="el-icon-search"
57
-            @click="search"
57
+            @click="query"
58 58
             >查询</el-button
59 59
           >
60 60
         </div>
@@ -73,21 +73,39 @@
73 73
         <el-table-column type="index" label="序号" align="center" width="250">
74 74
         </el-table-column>
75 75
         <el-table-column label="患者名称" align="center" width="300">
76
-          <template slot-scope="scope"> </template>
76
+          <template slot-scope="scope">
77
+            <span>{{scope.row.Name  ? scope.row.Name  : ""}}</span>
78
+          </template>
77 79
         </el-table-column>
78 80
 
79 81
         <el-table-column label="开立医生" align="center" width="300">
80
-          <template slot-scope="scope"> </template>
82
+          <template slot-scope="scope">
83
+            <span>{{scope.row.DoctorName  ? scope.row.DoctorName  : ""}}</span>
84
+          </template>
81 85
         </el-table-column>
82 86
         <el-table-column label="发药时间" align="center" width="400">
83
-          <template slot-scope="scope"> </template>
87
+          <template slot-scope="scope">
88
+            <span>{{scope.row.RecordDate  ? scope.row.RecordDate  : ""}}</span>
89
+          </template>
84 90
         </el-table-column>
85 91
         <el-table-column label="操作" align="center" width="400">
86 92
           <template slot-scope="scope">
87
-            <el-button type="primary" @click="views">查看</el-button>
93
+            <el-button type="primary" @click="views(scope.row)">查看</el-button>
88 94
           </template>
89 95
         </el-table-column>
90 96
       </el-table>
97
+      <el-pagination
98
+        @size-change="handleSizeChange"
99
+        @current-change="handleCurrentChange"
100
+        :page-sizes="[10, 50, 100, 200, 500, 1000]"
101
+        :page-size="10"
102
+        background
103
+        align="right"
104
+        style="margin-top: 20px"
105
+        layout="total, sizes, prev, pager, next, jumper"
106
+        :total="total"
107
+      >
108
+      </el-pagination>
91 109
     </div>
92 110
 
93 111
     <details-print
@@ -96,12 +114,18 @@
96 114
       :propsTable="propsTable"
97 115
     >
98 116
     </details-print>
117
+
99 118
   </div>
100 119
 </template>
101 120
 
102 121
 <script>
103 122
 import detailsPrint from "./print/details.vue";
104 123
 import BreadCrumb from "@/xt_pages/components/bread-crumb";
124
+import {
125
+  dispensingdetails,
126
+  prescriptiondetails
127
+} from "@/api/pharmacy"
128
+const moment = require('moment')
105 129
 export default {
106 130
   components: {
107 131
     detailsPrint,
@@ -113,21 +137,78 @@ export default {
113 137
         { path: false, name: "发药明细" },
114 138
         { path: "/Pharmacy/DispensingDetails", name: "发药明细" },
115 139
       ],
116
-      name: "",
140
+      keyword: "",
117 141
       tableList: [{}],
118 142
       signAndWeighBoxPatients: "sign-and-weigh-box-patients",
143
+      start_time:moment(new Date()).add('year',0).format("YYYY-MM-DD"),
144
+      end_time:moment(new Date()).add('year',0).format("YYYY-MM-DD"),
145
+      prescriptionList:[],//处方
146
+      stat_order:[],//临时医嘱
147
+      total: 0,
148
+      page: 1,
149
+      limit: 10,
119 150
     };
120 151
   },
121
-
152
+  created() {
153
+    this.init();
154
+    this.query();
155
+  },
122 156
   methods: {
157
+    init(){
158
+      this.page = 1;
159
+      this.limit = 10;
160
+      this.keyword = "";
161
+    },
162
+    query(){
163
+      var params = {
164
+        keyword: this.keyword,
165
+        start_time: this.start_time,
166
+        end_time: this.end_time,
167
+        page: 1,
168
+        limit: this.limit,
169
+      }
170
+      dispensingdetails(params).then((res) => {
171
+        if (res.data.state == 1){
172
+          this.tableList = res.data.data.list;
173
+          this.total = res.data.data.total;
174
+        }
175
+      })
176
+    },
177
+    search(){
178
+      console.log("this.start_time",this.start_time)
179
+      console.log("this.end_time",this.end_time)
180
+      var params = {
181
+        keyword: this.keyword,
182
+        start_time: this.start_time,
183
+        end_time: this.end_time,
184
+        page: this.page,
185
+        limit: this.limit,
186
+      }
187
+      dispensingdetails(params).then((res) => {
188
+        if (res.data.state == 1){
189
+          this.tableList = res.data.data.list;
190
+        }
191
+      })
192
+    },
193
+
123 194
     // 查看
124
-    views() {
195
+    views(data) {
196
+      console.log("吱吱吱",data)
125 197
       this.$refs.detailsprint.show();
198
+      this.$refs.detailsprint.drugdetails(data);
199
+    },
200
+    // 页表操作
201
+    handleSizeChange(val) {
202
+      this.limit = val;
203
+      this.search();
204
+    },
205
+    handleCurrentChange(val) {
206
+      this.page = val;
207
+      this.search();
126 208
     },
127 209
   },
128
-  created() {},
129 210
 };
130 211
 </script>
131 212
 
132 213
 <style rel="stylesheet/css" lang="scss" scoped>
133
-</style>
214
+</style>

+ 19 - 8
src/xt_pages/Pharmacy/DrugDispensing.vue View File

@@ -1,4 +1,4 @@
1
-<template>
1
+<template><!--药品发药页面-->
2 2
   <div class="main-contain new-main-contain">
3 3
     <div class="position">
4 4
       <!--      <bread-crumb :crumbs='crumbs'></bread-crumb>-->
@@ -18,6 +18,7 @@
18 18
               format="yyyy-MM-dd"
19 19
               value-format="yyyy-MM-dd"
20 20
               placeholder="选择日期"
21
+              :change="testsss()"
21 22
             >
22 23
             </el-date-picker>
23 24
           </div>
@@ -261,6 +262,11 @@
261 262
 import drugPrint from "./print/drugPrint.vue";
262 263
 import BreadCrumb from "@/xt_pages/components/bread-crumb";
263 264
 import { getTodayAdviceList,getPharmacyBaseDrug,updatePharmacyBaseDrug,SaveSetting,getPharmacyConfig,getUserdDrugList } from "@/api/his/advice";
265
+import {
266
+  waitingdrug,
267
+  issueddrugs,
268
+  getpharmacycontent
269
+} from "@/api/pharmacy"
264 270
 const moment = require('moment')
265 271
 export default {
266 272
   components: {
@@ -295,6 +301,13 @@ export default {
295 301
   },
296 302
 
297 303
   methods: {
304
+    testsss(){
305
+      console.log("time",this.start_time);
306
+    },
307
+    //初始化
308
+    init(){
309
+
310
+    },
298 311
      searchAction() {
299 312
       this.getlist();
300 313
     },
@@ -363,14 +376,11 @@ export default {
363 376
         .catch(() => {});
364 377
     },
365 378
 
366
-    handleSelectionChange(val) {
367
-      this.multipleSelection = val;
368
-    },
369 379
     getlist(){
370 380
       var params = {
371 381
         start_time:this.start_time,
372 382
         keywords:this.keywords,
373
-      }  
383
+      }
374 384
       getTodayAdviceList(params).then(response=>{
375 385
          if(response.data.state == 1){
376 386
            var list =  response.data.data.list
@@ -379,8 +389,8 @@ export default {
379 389
            var doctorlist = response.data.data.doctorlist
380 390
            this.doctorList = doctorlist
381 391
          }
382
-      }) 
383
-    }, 
392
+      })
393
+    },
384 394
    getWarehoseInfo(arr, max_unit, min_unit, min_number) {
385 395
       var total = 0;
386 396
       var max_str = "";
@@ -489,6 +499,7 @@ export default {
489 499
     }
490 500
   },
491 501
   created() {
502
+    this.init();
492 503
     this.getlist()
493 504
   },
494 505
 };
@@ -530,4 +541,4 @@ export default {
530 541
     justify-content: flex-end;
531 542
   }
532 543
 }
533
-</style>
544
+</style>

+ 7 - 7
src/xt_pages/dialysis/dialysisPrintOrder.vue View File

@@ -33,7 +33,7 @@
33 33
             icon="el-icon-printer"
34 34
             @click="printThisOnePage"
35 35
             type="primary"
36
-            >打印录单</el-button
36
+            >打印录单</el-button
37 37
           >
38 38
           <el-button
39 39
             :loading="loading"
@@ -91,7 +91,7 @@
91 91
             icon="el-icon-printer"
92 92
             @click="printThisOnePage"
93 93
             type="primary"
94
-            >打印录单</el-button
94
+            >打印录单</el-button
95 95
           >
96 96
           <el-button
97 97
             :loading="loading"
@@ -205,7 +205,7 @@
205 205
             icon="el-icon-printer"
206 206
             @click="printThisOnePage"
207 207
             type="primary"
208
-            >打印录单</el-button
208
+            >打印录单</el-button
209 209
           >
210 210
           <el-button
211 211
             :loading="loading"
@@ -308,7 +308,7 @@
308 308
             icon="el-icon-printer"
309 309
             @click="printThisOnePage"
310 310
             type="primary"
311
-            >打印录单</el-button
311
+            >打印录单</el-button
312 312
           >
313 313
           <el-button
314 314
             :loading="loading"
@@ -336,7 +336,7 @@
336 336
             icon="el-icon-printer"
337 337
             @click="printThisOnePage"
338 338
             type="primary"
339
-            >打印录单</el-button
339
+            >打印录单</el-button
340 340
           >
341 341
           <el-button
342 342
             :loading="loading"
@@ -409,7 +409,7 @@
409 409
             icon="el-icon-printer"
410 410
             @click="printThisOnePage"
411 411
             type="primary"
412
-            >打印录单</el-button
412
+            >打印录单</el-button
413 413
           >
414 414
           <el-button
415 415
             :loading="loading"
@@ -487,7 +487,7 @@
487 487
             icon="el-icon-printer"
488 488
             @click="printThisOnePage"
489 489
             type="primary"
490
-            >打印录单</el-button
490
+            >打印录单</el-button
491 491
           >
492 492
           <el-button
493 493
             :loading="loading"

+ 2 - 2
src/xt_pages/dialysis/template/DialysisPrintOrderEleven.vue View File

@@ -495,7 +495,7 @@
495 495
                     <tbody>
496 496
                       <tr>
497 497
                         <td :colspan="prescription.mode_id == 2 || prescription.mode_id == 5 ? 12 : 11" style="letter-spacing:5px;text-align:center;font-weight:520;font-size:16px;padding: 6px 8px;line-height: 30px;">
498
-                          治疗
498
+                          治疗
499 499
                         </td>
500 500
                       </tr>
501 501
                       <tr>
@@ -1331,7 +1331,7 @@ export default {
1331 1331
             }
1332 1332
         })
1333 1333
         }
1334
-        
1334
+
1335 1335
         if(num == 0){
1336 1336
           this.$message.success('核对完成')
1337 1337
         }

+ 1 - 1
src/xt_pages/dialysis/template/DialysisPrintOrderFifty.vue View File

@@ -1160,7 +1160,7 @@
1160 1160
                             line-height: 30px;
1161 1161
                           "
1162 1162
                         >
1163
-                          治疗
1163
+                          治疗
1164 1164
                         </td>
1165 1165
                       </tr>
1166 1166
                       <tr>

+ 8 - 8
src/xt_pages/dialysis/template/DialysisPrintOrderFiftyOne.vue View File

@@ -50,7 +50,7 @@
50 50
             病区:
51 51
             <div class="under_line" style="width: 50px;text-align: center;">
52 52
               <span>{{ patientInfo.DialysisSchedule.device_zone.name ? patientInfo.DialysisSchedule.device_zone.name : '' }}</span>
53
-              
53
+
54 54
             </div>
55 55
           </div>
56 56
           <div class="inline_block">
@@ -532,7 +532,7 @@
532 532
                     <tbody>
533 533
                       <tr>
534 534
                         <td :colspan="prescription.mode_id == 2 || prescription.mode_id == 5 ? 14 : 13" style="letter-spacing:5px;text-align:center;font-weight:520;font-size:16px;padding: 6px 8px;line-height: 30px;">
535
-                          治疗
535
+                          治疗
536 536
                         </td>
537 537
                       </tr>
538 538
                       <tr>
@@ -594,9 +594,9 @@
594 594
                         <!-- SPO2 -->
595 595
                         <td >{{ monitor.blood_oxygen_saturation ? monitor.blood_oxygen_saturation : "" }}</td>
596 596
                         <td>{{ monitor.dialysate_temperature ? monitor.dialysate_temperature : "" }}</td>
597
-                        
597
+
598 598
                         <td>{{ monitor.conductivity ? monitor.conductivity : "" }}</td>
599
-                        
599
+
600 600
                         <td v-if="(dialysisOrder && monitor.operate_time > dialysisOrder.end_time) || (dialysisOrder && monitor.operate_time < dialysisOrder.start_time)">
601 601
                           {{ monitor.ultrafiltration_volume ? monitor.ultrafiltration_volume : "" }}
602 602
                         </td>
@@ -869,14 +869,14 @@
869 869
                     <span>{{ advice.advice_name }}</span>
870 870
 
871 871
                     <span v-if="advice && advice.advice_desc">({{ advice.advice_desc }}{{ advice.drug_spec_unit }})</span>
872
-                    
872
+
873 873
                     <span v-if="advice.prescribing_number">&nbsp;&nbsp; {{ advice.prescribing_number }}{{ advice.prescribing_number_unit }}</span>
874
-                    
874
+
875 875
                     <span v-if="advice.single_dose != 0">{{ advice.single_dose }}{{ advice.single_dose_unit }}</span>
876 876
                     <span v-if="advice.parent_id == 0">{{ advice.delivery_way }}</span>
877
-                    
877
+
878 878
                     <span v-if="advice.parent_id == 0">{{ advice.execution_frequency }}</span>
879
-                   
879
+
880 880
                     <span v-if="advice.parent_id == 0 && advice.remark.length > 0">({{ advice.remark }})</span>
881 881
                   </td>
882 882
                   <!-- <td colspan="2" height="60px" style="text-align: center" v-else >

+ 1 - 1
src/xt_pages/dialysis/template/DialysisPrintOrderFortyNine.vue View File

@@ -521,7 +521,7 @@
521 521
                     <tbody>
522 522
                       <tr>
523 523
                         <td :colspan="prescription.mode_id == 2 || prescription.mode_id == 5 ? 12 : 11" style="letter-spacing:5px;text-align:center;font-weight:520;font-size:16px;padding: 6px 8px;line-height: 30px;">
524
-                          治疗
524
+                          治疗
525 525
                         </td>
526 526
                       </tr>
527 527
                       <tr>

+ 2 - 2
src/xt_pages/dialysis/template/DialysisPrintOrderFortySeven.vue View File

@@ -1139,7 +1139,7 @@
1139 1139
                             line-height: 30px;
1140 1140
                           "
1141 1141
                         >
1142
-                          治疗
1142
+                          治疗
1143 1143
                         </td>
1144 1144
                       </tr>
1145 1145
                       <tr>
@@ -1289,7 +1289,7 @@
1289 1289
                                 : ""
1290 1290
                             }}
1291 1291
                           </span>
1292
-                          
1292
+
1293 1293
                         </td>
1294 1294
                         <!-- <td
1295 1295
                           v-if="

+ 1 - 1
src/xt_pages/dialysis/template/DialysisPrintOrderFortySix.vue View File

@@ -1087,7 +1087,7 @@
1087 1087
                             line-height: 30px;
1088 1088
                           "
1089 1089
                         >
1090
-                          治疗
1090
+                          治疗
1091 1091
                         </td>
1092 1092
                       </tr>
1093 1093
                       <tr>

+ 1 - 1
src/xt_pages/dialysis/template/DialysisPrintOrderFour.vue View File

@@ -616,7 +616,7 @@
616 616
               <td width="80">透析液温度<br/>℃</td>
617 617
               <td width="60">置换率<br/>ml/min</td> -->
618 618
 
619
-              <td width="">病情特殊处理<br/>及专科护理措施录</td>
619
+              <td width="">病情特殊处理<br/>及专科护理措施录</td>
620 620
               <td width="80">护士签名</td>
621 621
             </tr>
622 622
 

+ 3 - 3
src/xt_pages/dialysis/template/DialysisPrintOrderNineteen.vue View File

@@ -490,7 +490,7 @@
490 490
                   <tbody>
491 491
                     <tr>
492 492
                       <td :colspan="prescription.mode_id == 2 || prescription.mode_id == 5 ? 12 : 11" style="letter-spacing:5px;text-align:center;font-weight:520;font-size:16px;padding: 6px 8px;line-height: 30px;">
493
-                        治疗
493
+                        治疗
494 494
                       </td>
495 495
                     </tr>
496 496
                     <tr>
@@ -1346,7 +1346,7 @@ export default {
1346 1346
           response.data.data.dialysisOrder === null
1347 1347
             ? null
1348 1348
             : response.data.data.dialysisOrder;
1349
-        
1349
+
1350 1350
         if (this.operators.length > 0) {
1351 1351
           var operatorsLen = this.operators.length;
1352 1352
           for (var index = 0; index < operatorsLen; index++) {
@@ -1487,7 +1487,7 @@ export default {
1487 1487
                     this.monitors[index].end = "【结束透析】";
1488 1488
                   }
1489 1489
               }
1490
-            
1490
+
1491 1491
           }
1492 1492
         }
1493 1493
 

+ 5 - 5
src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue View File

@@ -536,7 +536,7 @@
536 536
                     <tbody>
537 537
                       <tr>
538 538
                         <td :colspan="prescription.mode_id == 2 || prescription.mode_id == 5 ? 12 : 11" style="letter-spacing:5px;text-align:center;font-weight:520;font-size:16px;padding: 6px 8px;line-height: 30px;">
539
-                          治疗
539
+                          治疗
540 540
                         </td>
541 541
                       </tr>
542 542
                       <tr>
@@ -868,14 +868,14 @@
868 868
                     <span>{{ advice.advice_name }}</span>
869 869
 
870 870
                     <span v-if="advice && advice.advice_desc">({{ advice.advice_desc }}{{ advice.drug_spec_unit }})</span>
871
-                    
871
+
872 872
                     <span v-if="advice.prescribing_number">&nbsp;&nbsp; {{ advice.prescribing_number }}{{ advice.prescribing_number_unit }}</span>
873
-                    
873
+
874 874
                     <span v-if="advice.single_dose != 0">{{ advice.single_dose }}{{ advice.single_dose_unit }}</span>
875 875
                     <span v-if="advice.parent_id == 0">{{ advice.delivery_way }}</span>
876
-                    
876
+
877 877
                     <span v-if="advice.parent_id == 0">{{ advice.execution_frequency }}</span>
878
-                   
878
+
879 879
                     <span v-if="advice.parent_id == 0 && advice.remark.length > 0">({{ advice.remark }})</span>
880 880
                   </td>
881 881
                   <!-- <td colspan="2" height="60px" style="text-align: center" v-else >

+ 3 - 3
src/xt_pages/dialysis/template/DialysisPrintOrderTen.vue View File

@@ -487,7 +487,7 @@
487 487
                     <tbody>
488 488
                       <tr>
489 489
                         <td :colspan="prescription.mode_id == 2 || prescription.mode_id == 5 ? 12 : 11" style="letter-spacing:5px;text-align:center;font-weight:520;font-size:16px;padding: 6px 8px;line-height: 30px;">
490
-                          治疗
490
+                          治疗
491 491
                         </td>
492 492
                       </tr>
493 493
                       <tr>
@@ -1015,7 +1015,7 @@
1015 1015
                       治疗医生:
1016 1016
                       <div class="under_line" style="width: 80px">
1017 1017
                         <!-- <img style="height:20px;" src="https://images.shengws.com/FgnRnBcx1BgULJ1dn7VKzeBPEvtm" alt="" srcset="" /> -->
1018
-                       
1018
+
1019 1019
                         <span v-if="setAdminUserES(prescription.prescription_doctor) == ''">{{ getAdminUser(prescription.prescription_doctor) }}</span>
1020 1020
                         <img style="height:20px;" :src="setAdminUserES(prescription.prescription_doctor)" alt="" srcset="" v-else />
1021 1021
                       </div>
@@ -1332,7 +1332,7 @@ export default {
1332 1332
             }
1333 1333
         })
1334 1334
         }
1335
-        
1335
+
1336 1336
         if(num == 0){
1337 1337
           this.$message.success('核对完成')
1338 1338
         }

+ 1 - 1
src/xt_pages/dialysis/template/DialysisPrintOrderThree.vue View File

@@ -572,7 +572,7 @@
572 572
             <!--<td width="80">透析液温度<br/>℃</td>
573 573
               <td width="60">置换率<br/>ml/min</td> -->
574 574
 
575
-            <td width="">病情特殊处理<br />及专科护理措施录</td>
575
+            <td width="">病情特殊处理<br />及专科护理措施录</td>
576 576
             <td width="60">护士签名</td>
577 577
           </tr>
578 578
 

+ 4 - 4
src/xt_pages/dialysis/template/dialysisPrintOrderFive.vue View File

@@ -146,7 +146,7 @@
146 146
                       {{ predialysis.internal_fistula_other }}
147 147
                     </div>
148 148
                   </div>
149
-                </div>  
149
+                </div>
150 150
                 <div class="row" style="padding: 2px 0;line-height:19px;">
151 151
                   <div class="inline_block">
152 152
                     &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
@@ -508,7 +508,7 @@
508 508
                       <td width="80">血流量<br />ml/min</td>
509 509
                       <td width="90" v-if="org_id!=10210">超滤量累计L</td>
510 510
                       <td width="90" v-else>超滤量累计ml</td>
511
-                 
511
+
512 512
                       <td width="90">置换液流量ml/h</td>
513 513
                       <td width="80">钠浓度<br />mmol/L</td>
514 514
                       <td width="240">
@@ -1125,7 +1125,7 @@
1125 1125
             </tr>
1126 1126
           </template>
1127 1127
           <!-- <tr v-if="this.advice_groups_2.length == 0">
1128
-            <td colspan="7" style="text-align:left;">特殊录:</td>
1128
+            <td colspan="7" style="text-align:left;">特殊录:</td>
1129 1129
         </tr> -->
1130 1130
         </tbody>
1131 1131
         <div class="print-yema4">1</div>
@@ -1238,7 +1238,7 @@
1238 1238
                 </tr>
1239 1239
               </template>
1240 1240
               <!-- <tr >
1241
-                <td colspan="7" style="text-align:left;">特殊录:</td>
1241
+                <td colspan="7" style="text-align:left;">特殊录:</td>
1242 1242
             </tr> -->
1243 1243
             </tbody>
1244 1244
           </table>