Browse Source

Merge branches '20201109_pc_vue_new_branch' and '20220812' of http://git.shengws.com/csx/Vue_New into 20220812

XMLWAN 2 years ago
parent
commit
086c2fd40f

+ 168 - 242
src/xt_pages/Pharmacy/DrugDispensing.vue View File

@@ -18,13 +18,13 @@
18 18
               format="yyyy-MM-dd"
19 19
               value-format="yyyy-MM-dd"
20 20
               placeholder="选择日期"
21
-              @change="changeTimes()"
21
+              :change="testsss()"
22 22
             >
23 23
             </el-date-picker>
24 24
           </div>
25 25
 
26 26
           <div class="list">
27
-            <el-radio-group v-model="state" @change="lala()">
27
+            <el-radio-group v-model="state">
28 28
               <el-radio :label="1">待发药</el-radio>
29 29
               <el-radio :label="2">已发药</el-radio>
30 30
             </el-radio-group>
@@ -46,28 +46,29 @@
46 46
             </el-button>
47 47
           </div>
48 48
 
49
-          <el-table v-if="state == 1"
49
+          <el-table
50
+            v-if="state == 1"
50 51
             :height="tableHeight"
51
-            :data="waiting_drug"
52
+            :data="tableData"
52 53
             border
53 54
             style="width: 100%"
54 55
             highlight-current-row
55
-            ref="table01"
56
+            ref="singleTable"
56 57
             @current-change="handleCurrentChange"
57 58
           >
58 59
             <el-table-column prop="name" label="名称" width="100">
59 60
                <template slot-scope="scope">
60
-                {{scope.row.name}}
61
+                {{scope.row.drug_name}}
61 62
               </template>
62 63
             </el-table-column>
63 64
             <el-table-column prop="specifications" label="规格" width="100">
64 65
               <template slot-scope="scope">
65
-                {{scope.row.specifications}}
66
+                {{scope.row.dose}}{{scope.row.dose_unit}}*{{scope.row.min_number}}{{scope.row.min_unit}}/{{scope.row.max_unit}}
66 67
               </template>
67 68
             </el-table-column>
68 69
             <el-table-column prop="stock" label="库存" width="100">
69 70
                <template slot-scope="scope">
70
-                {{scope.row.stock}}
71
+                {{getWarehoseInfo(scope.row.drug_warehouse_info,scope.row.max_unit,scope.row.min_unit,scope.row.min_number)}}
71 72
               </template>
72 73
             </el-table-column>
73 74
           </el-table>
@@ -75,26 +76,26 @@
75 76
           <el-table
76 77
             v-if="state == 2"
77 78
             :height="tableHeight"
78
-            :data="issued_drug"
79
+            :data="tableData"
79 80
             border
80 81
             style="width: 100%"
81 82
             highlight-current-row
82
-            @current-change="handleCurrentChange"
83
-            ref="table02"
83
+            @current-change="handleSelectionChangeOne"
84
+            ref="singleTable"
84 85
           >
85 86
             <el-table-column prop="name" label="名称" width="100">
86 87
                <template slot-scope="scope">
87
-                {{scope.row.name}}
88
+                {{scope.row.drug_name}}
88 89
               </template>
89 90
             </el-table-column>
90 91
             <el-table-column prop="specifications" label="规格" width="100">
91 92
               <template slot-scope="scope">
92
-                {{scope.row.specifications}}
93
+                {{scope.row.dose}}{{scope.row.dose_unit}}*{{scope.row.min_number}}{{scope.row.min_unit}}/{{scope.row.max_unit}}
93 94
               </template>
94 95
             </el-table-column>
95 96
             <el-table-column prop="stock" label="库存" width="100">
96 97
                <template slot-scope="scope">
97
-                {{scope.row.stock}}
98
+                {{getWarehoseInfo(scope.row.drug_warehouse_info,scope.row.max_unit,scope.row.min_unit,scope.row.min_number)}}
98 99
               </template>
99 100
             </el-table-column>
100 101
           </el-table>
@@ -102,116 +103,121 @@
102 103
       </div>
103 104
       <div class="mainRight">
104 105
         <div class="titlelist">
105
-<!--          <el-button type="primary" @click="tt">调试</el-button>-->
106 106
           <el-button type="primary" @click="dispense" v-if="state == 1">发药</el-button>
107 107
           <el-button type="primary" @click="toPrint">打印</el-button>
108
-<!--          <el-button @click="tt">调试</el-button>-->
109
-<!--          <el-button type="primary" @click="toSetting">设置</el-button>-->
108
+          <el-button type="primary" @click="toSetting">设置</el-button>
110 109
         </div>
111 110
         <el-divider></el-divider>
112 111
         <div>
113 112
           <el-table
114 113
             :height="tableHeight"
115
-            :data="tableData"
114
+            :data="tableData_list"
116 115
             border
117 116
             style="width: 1328px"
118 117
             @selection-change="handleSelectionChange"
119 118
              v-if="state == 1"
120 119
           >
120
+            >
121 121
             <el-table-column type="selection" width="55"> </el-table-column>
122 122
             <el-table-column type="index" label="序号" width="120" align="center">
123
+              <template slot-scope="scope">
124
+                {{scope.$index + 1}}
125
+              </template>
123 126
             </el-table-column>
124 127
             <el-table-column prop="name" label="患者名称" width="180" align="center">
125 128
                 <template slot-scope="scope">
126
-                 {{scope.row.name}}
129
+                 {{getPatientName(scope.row.patient_id)}}
127 130
               </template>
128 131
             </el-table-column>
129 132
             <el-table-column prop="name" label="单次用量" width="170" align="center">
130 133
                <template  slot-scope="scope">
131
-                 {{scope.row.single_dosage}}
134
+                 {{scope.row.single_dose}}
132 135
                </template>
133 136
             </el-table-column>
134 137
             <el-table-column prop="name" label="用法" width="160" align="center">
135 138
                <template  slot-scope="scope">
136
-                 {{scope.row.usage}}
139
+                 {{scope.row.delivery_way}}
137 140
                </template>
138 141
             </el-table-column>
139 142
             <el-table-column prop="name" label="频率" width="160" align="center">
140 143
                 <template  slot-scope="scope">
141
-                 {{scope.row.frequency}}
144
+                 {{scope.row.execution_frequency}}
142 145
                </template>
143 146
             </el-table-column>
144 147
             <el-table-column prop="name" label="天数" width="160" align="center">
145 148
                <template  slot-scope="scope">
146
-                 {{scope.row.days}}
149
+                 {{scope.row.day}}
147 150
                </template>
148 151
             </el-table-column>
149 152
             <el-table-column prop="name" label="总量" width="160" align="center">
150 153
                 <template  slot-scope="scope">
151
-                 {{scope.row.total}}
154
+                 {{scope.row.prescribing_number}}
152 155
                </template>
153 156
             </el-table-column>
154 157
             <el-table-column prop="name" label="数据来源" width="162" align="center">
155 158
                 <template  slot-scope="scope">
156
-                  {{scope.row.data_sources}}
159
+                 <span v-if="scope.row.type == 1">血透</span>
160
+                 <span v-if="scope.row.type == 2">HIS</span>
157 161
                </template>
158 162
             </el-table-column>
159 163
           </el-table>
160
-        </div>
161
-        <div>
162
-          <el-table
164
+
165
+
166
+            <el-table
163 167
             :height="tableHeight"
164
-            :data="tableData"
168
+            :data="tableList"
165 169
             border
166 170
             style="width: 1328px"
167 171
             v-if="state == 2"
168 172
           >
169
-<!--            <el-table-column type="selection" width="55"> </el-table-column>-->
173
+            >
174
+            <el-table-column type="selection" width="55"> </el-table-column>
170 175
             <el-table-column type="index" label="序号" width="120" align="center">
176
+              <template slot-scope="scope">
177
+                {{scope.$index + 1}}
178
+              </template>
171 179
             </el-table-column>
172 180
             <el-table-column prop="name" label="患者名称" width="180" align="center">
173 181
                 <template slot-scope="scope">
174
-                 {{scope.row.name}}
182
+                 {{getPatientName(scope.row.patient_id)}}
175 183
               </template>
176 184
             </el-table-column>
177 185
             <el-table-column prop="name" label="单次用量" width="170" align="center">
178 186
                <template  slot-scope="scope">
179
-                 {{scope.row.single_dosage}}
187
+                 {{scope.row.single_dose}}
180 188
                </template>
181 189
             </el-table-column>
182 190
             <el-table-column prop="name" label="用法" width="160" align="center">
183 191
                <template  slot-scope="scope">
184
-                 {{scope.row.usage}}
192
+                 {{scope.row.delivery_way}}
185 193
                </template>
186 194
             </el-table-column>
187 195
             <el-table-column prop="name" label="频率" width="160" align="center">
188 196
                 <template  slot-scope="scope">
189
-                 {{scope.row.frequency}}
197
+                 {{scope.row.execution_frequency}}
190 198
                </template>
191 199
             </el-table-column>
192 200
             <el-table-column prop="name" label="天数" width="160" align="center">
193 201
                <template  slot-scope="scope">
194
-                 {{scope.row.days}}
202
+                 {{scope.row.day}}
195 203
                </template>
196 204
             </el-table-column>
197 205
             <el-table-column prop="name" label="总量" width="160" align="center">
198 206
                 <template  slot-scope="scope">
199
-                 {{scope.row.total}}
207
+                 {{scope.row.prescribing_number}}
200 208
                </template>
201 209
             </el-table-column>
202 210
             <el-table-column prop="name" label="数据来源" width="162" align="center">
203 211
                 <template  slot-scope="scope">
204
-                  {{scope.row.data_sources}}
212
+                 <span v-if="scope.row.type == 1">血透</span>
213
+                 <span v-if="scope.row.type == 2">HIS</span>
205 214
                </template>
206 215
             </el-table-column>
207
-              <el-table-column prop="name" label="领药人" width="160" align="center">
208
-                <template  slot-scope="scope">
209
-                  {{scope.row.people}}
210
-                </template>
211
-              </el-table-column>
212 216
           </el-table>
217
+
218
+
213 219
         </div>
214
-        <div style="margin-top" v-if="state == 1">领药人:
220
+        <div style="margin-top:13px;">领药人:
215 221
           <el-select v-model="admin_user_id" placeholder="请选择">
216 222
             <el-option
217 223
               v-for="item in doctorList"
@@ -256,13 +262,11 @@
256 262
 import drugPrint from "./print/drugPrint.vue";
257 263
 import BreadCrumb from "@/xt_pages/components/bread-crumb";
258 264
 import { getTodayAdviceList,getPharmacyBaseDrug,updatePharmacyBaseDrug,SaveSetting,getPharmacyConfig,getUserdDrugList } from "@/api/his/advice";
259
-import {
260
-  dispensemedicine,
261
-  waitingmedicine,
262
-  getpatientswithdrugs,
263
-  medicinedeparture,
264
-  getcurrentname
265
-} from "@/api/pharmacy"
265
+// import {
266
+//   waitingdrug,
267
+//   issueddrugs,
268
+//   getpharmacycontent
269
+// } from "@/api/pharmacy"
266 270
 const moment = require('moment')
267 271
 export default {
268 272
   components: {
@@ -272,7 +276,7 @@ export default {
272 276
   data() {
273 277
     return {
274 278
       crumbs: [
275
-        { path: false, name: "药房管理" },
279
+        { path: false, name: "药品发药" },
276 280
         { path: "/Pharmacy/DrugDispensing", name: "药品发药" },
277 281
       ],
278 282
       tableHeight: 400,
@@ -292,194 +296,86 @@ export default {
292 296
       isVisibility:"",
293 297
       propsTable:"",
294 298
       doctorList:[],
295
-      admin_user_id:0,
296
-      waiting_drug:[],//待发药列表
297
-      issued_drug:[],//已发药列表
298
-      currentRow:null,
299
-      tmp:0,
299
+      admin_user_id:this.$store.getters.xt_user.user.id,
300 300
     };
301 301
   },
302 302
 
303 303
   methods: {
304
-    tt(){
305
-      console.log("this.currentRow",this.currentRow)
306
-      this.$router.go(0)
307
-    },
308
-    async fun3(){
309
-      console.log("fun3")
310
-      this.fun1().then(val => {
311
-        this.fun2();
312
-      })
313
-    },
314
-    async fun4(tps){
315
-      console.log("fun3",tps)
316
-      this.fun1().then(val => {
317
-        console.log("this.issued_drug",this.issued_drug)
318
-        for(let i = 0;i < this.issued_drug.length;i++){
319
-          if(tps == this.issued_drug[i].id){
320
-            this.$refs.table02.setCurrentRow(this.issued_drug[i]);
321
-            this.handleCurrentChange(this.issued_drug[i])
322
-          }
323
-        }
324
-      })
325
-    },
326
-    async fun5(tps){
327
-      console.log("fun3",tps)
328
-      this.fun1().then(val => {
329
-        console.log("this.issued_drug",this.waiting_drug)
330
-        for(let i = 0;i < this.waiting_drug.length;i++){
331
-          if(tps == this.waiting_drug[i].id){
332
-            this.$refs.table01.setCurrentRow(this.waiting_drug[i]);
333
-            this.handleCurrentChange(this.waiting_drug[i])
334
-          }
335
-        }
336
-      })
337
-    },
338
-    changeTimes(){
339
-      // alert("aa")
340
-      // this.getdruglist();
341
-      this.fun3();
304
+    testsss(){
305
+      console.log("time",this.start_time);
342 306
     },
343 307
     //初始化
344 308
     init(){
345
-      this.state = 1
346
-      this.tableData = null
347
-      this.currentRow = null
348
-    },
349
-    lala(){
350
-      this.currentRow = null
351
-      this.tableData = null
352
-      this.selectedbydefault()
309
+
353 310
     },
354 311
      searchAction() {
355
-      // this.getlist();
356
-       this.tableData = null
357
-       this.currentRow = null
358
-       this.getdruglist();
312
+      this.getlist();
359 313
     },
360 314
     // 跳转打印页面
361 315
     toPrint() {
362
-
363
-      if (this.state == 1 && this.multipleSelection.length == 0){
364
-        this.$message.error("未选择任何数据");
365
-        return
366
-      }
367
-      if (this.state == 2 && this.tableData == null){
368
-          this.$message.error("未选择任何数据");
369
-          return
370
-      }
371
-      this.$refs.drugprint.show(this.tableData,this.currentRow,this.state,this.multipleSelection);
316
+      // this.$router.push({ path: "/Pharmacy/print/patientPrint" });
317
+      this.$refs.drugprint.show();
372 318
     },
373
-    //列表选择
374 319
     handleSelectionChange(val) {
375 320
       this.multipleSelection = val;
376 321
     },
377
-    //默认选中
378
-    selectedbydefault(){
379
-      if(this.state == 1 && this.waiting_drug.length > 0){
380
-        this.$refs.table01.setCurrentRow(this.waiting_drug[0]);
381
-        this.handleCurrentChange(this.waiting_drug[0])
382
-      }
383
-      if(this.state == 2 && this.issued_drug.length >0){
384
-        this.$refs.table02.setCurrentRow(this.issued_drug[0]);
385
-        this.handleCurrentChange(this.issued_drug[0])
386
-      }
387
-    },
388
-    //包装selectedbydefault
389
-    fun2(){
390
-      console.log("3333333this.waitmount_data",this.waiting_drug)
391
-      // return new Promise((resolve, reject) => {
392
-      if(this.state == 1 && this.waiting_drug.length > 0){
393
-        this.$refs.table01.setCurrentRow(this.waiting_drug[0]);
394
-        this.handleCurrentChange(this.waiting_drug[0])
395
-      }
396
-      if(this.state == 2 && this.issued_drug.length >0){
397
-        this.$refs.table02.setCurrentRow(this.issued_drug[0]);
398
-        this.handleCurrentChange(this.issued_drug[0])
399
-      }
400
-      // });
322
+    handleSelectionChangeOne(val){
323
+      this.tableList = []
324
+      this.getUserlist(val.id)
401 325
     },
402 326
     // 药品发药
403 327
     dispense() {
404
-      var tps = this.currentRow.id;
405
-      if(this.multipleSelection.length < 1){
406
-        this.$message.error("未选择任何信息")
407
-        return
408
-      }
409
-      var tmp = "";
410
-      console.log("初始值",tmp)
411
-      for (var i=0;i < this.multipleSelection.length;i++){
412
-        tmp = tmp + this.multipleSelection[i].id + ","
413
-      }
414
-      var params = {
415
-        creater: this.admin_user_id,
416
-        ids: tmp,
417
-      }
418
-      medicinedeparture(params).then((res) => {
419
-        if (res.data.state == 1){
420
-          this.$message.success("操作成功")
421
-          this.getdruglist();
422
-          //刷新列表
423
-          this.handleCurrentChange(this.currentRow);
424
-          this.fun4(tps);
425
-          this.state = 2;
426
-        }else{
427
-          this.$message.error("操作失败:" + res.data.msg)
428
-          //刷新列表
429
-          this.handleCurrentChange(this.currentRow);
430
-          this.fun5(tps);
431
-          this.state = 1;
328
+      var blood_ids = []
329
+      var his_ids = []
330
+      var bloodStr = ""
331
+      var hisStr = ""
332
+      for(let i=0;i<this.tableData.length;i++){
333
+        if(this.tableData[i].type == 1){
334
+          blood_ids.push(this.tableData[i].id)
432 335
         }
433
-      })
434
-    },
435
-    //获取药品列表
436
-    getdruglist(){
437
-      var params = {
438
-        keyword: this.keywords,
439
-        time: this.start_time,
440
-      }
441
-      waitingmedicine(params).then((res) => {
442
-        if (res.data.state == 1){
443
-          this.waiting_drug = res.data.data.list
444
-        }
445
-      })
446
-      dispensemedicine(params).then((res) => {
447
-        if (res.data.state == 1){
448
-          this.issued_drug = res.data.data.list
336
+        if(this.tableData[i].type == 2){
337
+          his_ids.push(this.tableData[i].id)
449 338
         }
450
-      })
451
-    },
452
-    async fun1(){
339
+      }
340
+      bloodStr = blood_ids.join(",")
341
+      hisStr =  his_ids.join(",")
453 342
       var params = {
454
-        keyword: this.keywords,
455
-        time: this.start_time,
343
+        bloodStr:bloodStr,
344
+        hisStr:hisStr,
345
+        admin_user_id:this.admin_user_id,
456 346
       }
457
-      await waitingmedicine(params).then((res) => {
458
-        if (res.data.state == 1){
459
-          this.waiting_drug = res.data.data.list
460
-        }
461
-        console.log("fun1lil1111i")
462
-      })
463
-      await dispensemedicine(params).then((res) => {
464
-        if (res.data.state == 1){
465
-          this.issued_drug = res.data.data.list
466
-        }
467
-        console.log("fun122222222")
468
-      })
469
-      console.log("fun1")
347
+      this.$confirm("确定是否对该药品进行发药?", "患者发药", {
348
+        confirmButtonText: "确 定",
349
+        cancelButtonText: "取 消",
350
+        type: "warning",
351
+      }).then(() => {
352
+        updatePharmacyBaseDrug(params).then(response=>{
353
+           if(response.data.state == 1){
354
+           var msg = response.data.data.msg
355
+           var medical =  response.data.data.medical
356
+           if(msg === 1){
357
+             this.$message.success("发药成功!")
358
+           }
359
+           if(msg == 2 || msg ===3){
360
+             this.$message.error("库存不足")
361
+           }
362
+         }
363
+        })
364
+      }).catch(() => {});
470 365
     },
471 366
 
472
-    morencreatename(){
473
-      var param ={}
474
-      getcurrentname(param).then((res) => {
475
-        console.log("res(药)",res)
476
-        if (res.data.state == 1){
477
-          this.admin_user_id = res.data.data.list;
478
-          console.log("this.admin_user_id(药)",this.admin_user_id)
479
-        }
480
-      });
367
+    // 药品退药
368
+    endispense() {
369
+      var params = {};
370
+      this.$confirm("确定是否对该药品进行退药?", "患者退药", {
371
+        confirmButtonText: "确 定",
372
+        cancelButtonText: "取 消",
373
+        type: "warning",
374
+      })
375
+        .then(() => {})
376
+        .catch(() => {});
481 377
     },
482
-    //获取领药人选项
378
+
483 379
     getlist(){
484 380
       var params = {
485 381
         start_time:this.start_time,
@@ -487,43 +383,76 @@ export default {
487 383
       }
488 384
       getTodayAdviceList(params).then(response=>{
489 385
          if(response.data.state == 1){
490
-           this.doctorList = response.data.data.doctorlist
491
-           console.log("this.admin_user_id(药2)",this.admin_user_id)
492
-           // this.admin_user_id = this.doctorList[0].admin_user_id
493
-           // this.admin_user_id = this.tmp
386
+           var list =  response.data.data.list
387
+           this.$refs.singleTable.setCurrentRow(list[0])
388
+           this.tableData = list
389
+           var doctorlist = response.data.data.doctorlist
390
+           this.doctorList = doctorlist
494 391
          }
495 392
       })
496 393
     },
497
-   //  //获取药品的患者信息
498
-    informationofdrugs(val){
499
-      var params = {
500
-        // patient_id: this.currentRow.
394
+   getWarehoseInfo(arr, max_unit, min_unit, min_number) {
395
+      var total = 0;
396
+      var max_str = "";
397
+      var min_str = "";
398
+      if (arr.length > 0) {
399
+        for (let i = 0; i < arr.length; i++) {
400
+          total += parseInt(arr[i].stock_max_number+ arr[i].stock_min_number);
401
+        }
501 402
       }
502
-    },
503
-    handleCurrentChange(val) {
504
-      this.currentRow = val;
505
-      if(this.state == 1){
506
-        this.getdrugsdetails(0)
403
+      if (total < min_number) {
404
+        min_str = total + min_unit;
507 405
       }
508
-      if (this.state == 2){
509
-        this.getdrugsdetails(1)
406
+      if (total == 0) {
407
+        min_str = "";
408
+        max_str = "";
510 409
       }
410
+      if (total >= min_number) {
411
+        if (parseInt(total / min_number) != 0) {
412
+          max_str = parseInt(total / min_number) + max_unit;
413
+        }
414
+        if (total % min_number != 0) {
415
+          min_str = (total % min_number) + min_unit;
416
+        }
417
+      }
418
+      return max_str + min_str;
419
+    },
420
+
421
+    handleCurrentChange(row) {
422
+      this.getPharmacyBaseDrug(row.id)
511 423
     },
512
-    getdrugsdetails(val){
424
+    getPharmacyBaseDrug(drug_id){
513 425
       var params = {
514
-        drug_id:this.currentRow.id,
515
-        is_medicine:val,
516
-        time:this.start_time,
426
+        start_time:this.start_time,
427
+        drug_id:drug_id,
517 428
       }
518
-      getpatientswithdrugs(params).then((res) => {
519
-        if (res.data.state == 1){
520
-          this.tableData = res.data.data.list;//列表数据
521
-        }else {
522
-          this.$message.error(res.data.msg);
429
+      getPharmacyBaseDrug(params).then(response=>{
430
+        if(response.data.state == 1){
431
+           var advicelist = response.data.data.advicelist
432
+           for(let i=0;i<advicelist.length;i++){
433
+             advicelist[i].type = 1
434
+             advicelist[i].day = " "
435
+             this.tableData_list.push(advicelist[i])
436
+           }
437
+           var hisAdviceList = response.data.data.hisAdviceList
438
+           for(let i=0;i<hisAdviceList.length;i++){
439
+             hisAdviceList[i].type = 2
440
+             this.tableData_list.push(hisAdviceList[i])
441
+           }
442
+           var patient = response.data.data.patient
443
+           this.patientList = patient
523 444
         }
524 445
       })
525 446
     },
526
-
447
+    getPatientName(id){
448
+       var name = ""
449
+       for(let i=0;i<this.patientList.length;i++){
450
+          if(id == this.patientList[i].id){
451
+             name = this.patientList[i].name
452
+          }
453
+       }
454
+       return name
455
+    },
527 456
     toSetting(){
528 457
       getPharmacyConfig().then(response=>{
529 458
         if(response.data.state == 1){
@@ -571,10 +500,7 @@ export default {
571 500
   },
572 501
   created() {
573 502
     this.init();
574
-    this.morencreatename();
575
-    this.getlist();
576
-    // this.getdruglist();
577
-    this.fun3();
503
+    this.getlist()
578 504
   },
579 505
 };
580 506
 </script>

+ 101 - 364
src/xt_pages/Pharmacy/PatientDispensing.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>-->
@@ -13,31 +13,29 @@
13 13
           <div class="list">
14 14
             <el-date-picker
15 15
               style="width: 200px"
16
-              v-model="start_time"
16
+              v-model="datepick"
17 17
               type="date"
18
-              format="yyyy-MM-dd"
19
-              value-format="yyyy-MM-dd"
20 18
               placeholder="选择日期"
21
-              @change="changeTimes()"
22 19
             >
23 20
             </el-date-picker>
24 21
           </div>
25
-<!--          <el-button @click="testsss">调试1</el-button>-->
26
-<!--          <el-button @click="testsss2">调试2</el-button>-->
22
+
27 23
           <div class="list">
28
-            <el-radio-group v-model="state" @change="lala()">
29
-              <el-radio :label="1" >待发药{{ waitmount }}人</el-radio>
30
-              <el-radio :label="2" >已发药{{ alreadmount }}人</el-radio>
24
+            <el-radio-group v-model="state">
25
+              <el-radio :label="1">待发药{{ waitmount }}人</el-radio>
26
+              <el-radio :label="2">已发药{{ alreadmount }}人</el-radio>
31 27
             </el-radio-group>
32 28
           </div>
33
-          <div class="list">
29
+          <div
30
+            class="list"
31
+            style="display: flex; justify-content: space-between"
32
+          >
34 33
             <el-input
35 34
               size="small"
36 35
               style="width: 130px"
37 36
               v-model="keywords"
38 37
               class="filter-item"
39 38
               placeholder="请输入患者名称"
40
-              clearable
41 39
             />
42 40
             <el-button
43 41
               size="small"
@@ -48,28 +46,15 @@
48 46
             </el-button>
49 47
           </div>
50 48
 
51
-          <el-table :height="tableHeight" ref="table01" :data="waitmount_data" highlight-current-row @current-change="handleCurrentChange" border style="width: 100%" v-if="state == 1">
52
-            <el-table-column prop="date" label="患者姓名" width="100" >
53
-              <template slot-scope="scope">
54
-                <span >{{scope.row.Name ? scope.row.Name : ""}}</span>
55
-              </template>
56
-            </el-table-column>
57
-            <el-table-column prop="name" label="透析号" width="100">
58
-              <template slot-scope="scope">
59
-                <span>{{scope.row.DialysisNo ? scope.row.DialysisNo : ""}}</span>
60
-              </template>
61
-            </el-table-column>
62
-          </el-table>
63
-          <el-table :height="tableHeight" ref="table02" :data="alreadmount_data" highlight-current-row @current-change="handleCurrentChange" border style="width: 100%" v-if="state == 2">
64
-            <el-table-column prop="date" label="患者姓名" width="100" >
65
-              <template slot-scope="scope" >
66
-                <span>{{scope.row.Name ? scope.row.Name : ""}}</span>
67
-              </template>
49
+          <el-table
50
+            :height="tableHeight"
51
+            :data="tableData"
52
+            border
53
+            style="width: 100%"
54
+          >
55
+            <el-table-column prop="date" label="患者姓名" width="100">
68 56
             </el-table-column>
69
-            <el-table-column prop="name" label="透析号" width="100">
70
-              <template slot-scope="scope">
71
-                <span>{{scope.row.DialysisNo ? scope.row.DialysisNo : ""}}</span>
72
-              </template>
57
+            <el-table-column prop="name" label="单据编号" width="100">
73 58
             </el-table-column>
74 59
           </el-table>
75 60
         </div>
@@ -83,85 +68,90 @@
83 68
             >退药</el-button
84 69
           >
85 70
           <el-button type="primary" @click="toPrint">打印</el-button>
86
-<!--          <el-button @click="tiaoshi">调试</el-button>-->
87
-          <el-button type="primary" v-if="state == 1" @click="toSetting">设置</el-button>
71
+          <el-button type="primary" v-if="state == 1">设置</el-button>
88 72
         </div>
89 73
         <el-divider></el-divider>
90 74
         <div>
91 75
           <el-table
92 76
             :height="tableHeight"
93
-            :data="tableData"
77
+            :data="tableData_list"
94 78
             border
95 79
             style="width: 100%"
96 80
           >
97
-            <el-table-column type="index" label="序号" width="120" align="center">
81
+            <el-table-column
82
+              type="index"
83
+              label="序号"
84
+              width="120"
85
+              align="center"
86
+            >
98 87
             </el-table-column>
99
-            <el-table-column  label="名称" width="200" align="center">
100
-              <template slot-scope="scope">
101
-                <span>{{scope.row.Name  ? scope.row.Name  : ""}}</span>
102
-              </template>
88
+            <el-table-column
89
+              prop="name"
90
+              label="名称"
91
+              width="220"
92
+              align="center"
93
+            >
103 94
             </el-table-column>
104
-            <el-table-column  label="单次用量" width="150" align="center">
105
-              <template slot-scope="scope">
106
-                <span>{{scope.row.SingleDosage  ? scope.row.SingleDosage  : ""}}</span>
107
-              </template>
95
+            <el-table-column
96
+              prop="name"
97
+              label="单次用量"
98
+              width="170"
99
+              align="center"
100
+            >
108 101
             </el-table-column>
109
-            <el-table-column  label="用法" width="160" align="center">
110
-              <template slot-scope="scope">
111
-                <span>{{scope.row.Usage  ? scope.row.Usage  : ""}}</span>
112
-              </template>
102
+            <el-table-column
103
+              prop="name"
104
+              label="用法"
105
+              width="160"
106
+              align="center"
107
+            >
113 108
             </el-table-column>
114
-            <el-table-column  label="频率" width="160" align="center">
115
-              <template slot-scope="scope">
116
-                <span>{{scope.row.Frequency  ? scope.row.Frequency  : ""}}</span>
117
-              </template>
109
+            <el-table-column
110
+              prop="name"
111
+              label="频率"
112
+              width="160"
113
+              align="center"
114
+            >
118 115
             </el-table-column>
119
-            <el-table-column  label="天数" width="140" align="center">
120
-              <template slot-scope="scope">
121
-                <span>{{scope.row.Days  ? scope.row.Days  : ""}}</span>
122
-              </template>
116
+            <el-table-column
117
+              prop="name"
118
+              label="天数"
119
+              width="160"
120
+              align="center"
121
+            >
123 122
             </el-table-column>
124
-            <el-table-column  label="总量" width="140" align="center">
125
-              <template slot-scope="scope">
126
-                <span>{{scope.row.Total  ? scope.row.Total  : ""}}</span>
127
-              </template>
123
+            <el-table-column
124
+              prop="name"
125
+              label="总量"
126
+              width="160"
127
+              align="center"
128
+            >
128 129
             </el-table-column>
129
-            <el-table-column  label="开立医生" width="150" align="center">
130
-              <template slot-scope="scope">
131
-                <span>{{scope.row.Doctor  ? scope.row.Doctor  : ""}}</span>
132
-              </template>
130
+            <el-table-column
131
+              prop="name"
132
+              label="开立医生"
133
+              width="160"
134
+              align="center"
135
+            >
133 136
             </el-table-column>
134
-            <el-table-column  label="数据来源" width="162" align="center">
135
-              <template slot-scope="scope">
136
-                <span>{{scope.row.DataSources  ? scope.row.DataSources  : ""}}</span>
137
-              </template>
137
+            <el-table-column
138
+              prop="name"
139
+              label="数据来源"
140
+              width="162"
141
+              align="center"
142
+            >
138 143
             </el-table-column>
139
-            <el-table-column  label="备注" width="170" align="center">
140
-              <template slot-scope="scope">
141
-                <span>{{scope.row.Remarks  ? scope.row.Remarks  : ""}}</span>
142
-              </template>
144
+            <el-table-column
145
+              prop="name"
146
+              label="备注"
147
+              width="170"
148
+              align="center"
149
+            >
143 150
             </el-table-column>
144 151
           </el-table>
145 152
         </div>
146
-<!--        <div v-if="state == 2" style="margin-top: 25px">诊断时间:{{ timedate }}</div>-->
153
+        <!-- <div style="margin-top: 25px">诊断时间:2022-05-07 19:22:16</div> -->
147 154
       </div>
148
-      <el-dialog
149
-        title="设置"
150
-        :visible.sync="dialogVisible"
151
-        width="30%">
152
-        <span>请选择药品是否要通过药房管理出库</span>
153
-        <span>
154
-          <el-radio v-model="is_open" label="1">是</el-radio>
155
-          <el-radio v-model="is_open" label="2">否</el-radio>
156
-        </span>
157
-        <span>
158
-          若选择为是,则通过药房发药的药品都会在发药之后进行出库,否则按原来的方式进行出库管理
159
-        </span>
160
-        <span slot="footer" class="dialog-footer">
161
-          <el-button @click="dialogVisible = false">取 消</el-button>
162
-          <el-button type="primary" @click="SaveSetting">确 定</el-button>
163
-        </span>
164
-      </el-dialog>
165 155
     </div>
166 156
 
167 157
     <patient-print
@@ -176,16 +166,6 @@
176 166
 <script>
177 167
 import BreadCrumb from "@/xt_pages/components/bread-crumb";
178 168
 import patientPrint from "./print/patientPrint.vue";
179
-import { getPharmacyConfig,SaveSetting } from "@/api/his/advice";
180
-import {
181
-  waitingdrug,
182
-  issueddrugs,
183
-  todaynumber,
184
-  getpharmacycontent,
185
-  dispensingmedicine,
186
-  drugwithdrawal
187
-} from "@/api/pharmacy"
188
-const moment = require('moment')
189 169
 export default {
190 170
   components: {
191 171
     BreadCrumb,
@@ -193,302 +173,59 @@ export default {
193 173
   },
194 174
   data() {
195 175
     return {
196
-      patient_id:0,
197 176
       crumbs: [
198
-        { path: false, name: "药房管理" },
177
+        { path: false, name: "患者发药" },
199 178
         { path: "/Pharmacy/patiantDispensing", name: "患者发药" },
200 179
       ],
201 180
       tableHeight: 400,
202
-      start_time:moment(new Date()).add('year',0).format("YYYY-MM-DD"),
203
-      state: 1,//1待发药,2已发药
204
-      waitmount: 0,//待发药人数
205
-      waitmount_data: [],
206
-      alreadmount: 0,//已发药人数
207
-      alreadmount_data: [],
181
+      datepick: "",
182
+      state: 1,
183
+      waitmount: 0,
184
+      alreadmount: 0,
208 185
       keywords: "",
209 186
       tableData: [],
210 187
       propsTable: [],
211 188
       tableData_list: [],
212 189
       isVisibility: false,
213
-      currentRow:null,
214
-      dialogVisible:false,
215
-      is_open:"2",
216 190
     };
217 191
   },
218
-  watch: {
219
-  },
220
-  created() {
221
-    this.init();
222
-    this.gettodaynumber();
223
-    this.fun3();
224
-    // this.getwaitmount();//fun3
225
-    // this.selectedbydefault();
226
-  },
227
-  methods: {
228
-    tiaoshi(){
229
-      console.log("this.tableData",this.tableData)
230
-    },
231
-    async fun3(){
232
-      console.log("fun3")
233
-        this.fun1().then(val => {
234
-          this.fun2();
235
-        })
236
-    },
237
-    async fun4(tmp){
238
-      console.log("fun3")
239
-      this.fun1().then(val => {
240
-        console.log("this.alreadmount_data",this.alreadmount_data)
241
-        for (let i = 0;i < this.alreadmount_data.length;i++){
242
-          console.log("tmp = ",tmp)
243
-          if (this.alreadmount_data[i].PatientID == tmp){
244
-            console.log("i = ",i)
245
-            this.$refs.table02.setCurrentRow(this.alreadmount_data[i]);
246
-            this.handleCurrentChange(this.alreadmount_data[i])
247
-          }
248
-        }
249
-      })
250
-    },
251
-    async fun5(tmp){
252
-      console.log("fun3")
253
-      this.fun1().then(val => {
254
-        console.log("this.alreadmount_data",this.waitmount_data)
255
-        for (let i = 0;i < this.waitmount_data.length;i++){
256
-          console.log("tmp = ",tmp)
257
-          if (this.waitmount_data[i].PatientID == tmp){
258
-            console.log("i = ",i)
259
-            this.$refs.table02.setCurrentRow(this.waitmount_data[i]);
260
-            this.handleCurrentChange(this.waitmount_data[i])
261
-          }
262
-        }
263
-      })
264
-    },
265
-
266
-    lala(){
267
-      console.log("this.state!!!!!!",this.state)
268
-      //初始化状态
269
-      this.tableData = null
270
-      this.currentRow = null
271
-      this.selectedbydefault()
272
-    },
273
-    //选中行数
274
-    handleCurrentChange(val) {
275
-      this.currentRow = val;
276
-      console.log("this.currentRow",this.currentRow)
277
-      if(this.state == 1){
278
-        this.getpatientdetails(0)
279
-      }
280
-      if(this.state == 2){
281
-        this.getpatientdetails(1)
282
-      }
283
-    },
284
-    init(){
285
-      // console.log("初始化了")
286
-      this.state = 1
287
-      this.tableData = null
288
-      this.currentRow = null
289
-    },
290
-    testsss(){
291
-     this.state = 1;
292
-    },
293
-    //默认选中的
294
-    selectedbydefault(){
295
-      if(this.state == 1 && this.waitmount_data.length > 0){
296
-        this.$refs.table01.setCurrentRow(this.waitmount_data[0]);
297
-        this.handleCurrentChange(this.waitmount_data[0])
298
-      }
299
-      if(this.state == 2 && this.alreadmount_data.length >0){
300
-        this.$refs.table02.setCurrentRow(this.alreadmount_data[0]);
301
-        this.handleCurrentChange(this.alreadmount_data[0])
302
-      }
303
-    },
304
-    //包装selectedbydefault
305
-    fun2(){
306
-      console.log("3333333this.waitmount_data",this.waitmount_data)
307
-      // return new Promise((resolve, reject) => {
308
-        if(this.state == 1 && this.waitmount_data.length > 0){
309
-          this.$refs.table01.setCurrentRow(this.waitmount_data[0]);
310
-          this.handleCurrentChange(this.waitmount_data[0])
311
-        }
312
-        if(this.state == 2 && this.alreadmount_data.length >0){
313
-          this.$refs.table02.setCurrentRow(this.alreadmount_data[0]);
314
-          this.handleCurrentChange(this.alreadmount_data[0])
315
-        }
316
-      // });
317
-    },
318
-    changeTimes(){
319
-      this.gettodaynumber();
320
-      this.getwaitmount();
321
-      this.fun3();
322
-    },
323
-    //获取当天发药的人数
324
-    gettodaynumber(){
325
-      console.log("aaa")
326
-      var params = {
327
-        time: this.start_time,
328
-      }
329
-      todaynumber(params).then((res) => {
330
-        if (res.data.state == 1){
331
-          this.waitmount = res.data.data.itotal;
332
-          this.alreadmount = res.data.data.wtotal;
333
-        }
334
-      })
335
-      // console.log("2222222")
336
-    },
337
-    //获取发药人列表
338
-    getwaitmount(){
339
-      var params = {
340
-        keyword: this.keywords,
341
-        time: this.start_time,
342
-      }
343
-      waitingdrug(params).then((res) => {
344
-        if (res.data.state == 1){
345
-          this.waitmount_data = res.data.data.list;
346
-        }
347
-      })
348
-      issueddrugs(params).then((res) => {
349
-        if (res.data.state == 1){
350
-          this.alreadmount_data = res.data.data.list;
351
-        }
352
-      })
353
-    },
354
-    //包装getwaitmount
355
-    async fun1(){
356
-      // return new Promise((resolve, reject) => {
357
-        var params = {
358
-          keyword: this.keywords,
359
-          time: this.start_time,
360
-        }
361
-        await waitingdrug(params).then((res) => {
362
-          if (res.data.state == 1){
363
-            this.waitmount_data = res.data.data.list;
364
-            console.log("1111111")
365
-          }
366
-        })
367
-        await issueddrugs(params).then((res) => {
368
-          if (res.data.state == 1){
369
-            this.alreadmount_data = res.data.data.list;
370
-            console.log("1111111s")
371
-          }
372
-        })
373
-        console.log("222222222")
192
+  watch: {},
374 193
 
375
-      // })
376
-    },
377
-    //获取患者信息详情
378
-    getpatientdetails(val){
379
-      var params = {
380
-        patient_id:this.currentRow.PatientID,
381
-        is_medicine: val,
382
-        time:this.start_time,
383
-      }
384
-      getpharmacycontent(params).then((res) => {
385
-        if (res.data.state == 1){
386
-          this.tableData = res.data.data.list;
387
-        }else{
388
-          this.$message.error(res.data.msg);
389
-        }
390
-      })
391
-    },
194
+  methods: {
392 195
     // 跳转打印页面
393 196
     toPrint() {
394
-      if (this.tableData == null){
395
-        this.$message.error("未选择任何数据");
396
-        return
397
-      }
398
-      this.$refs.patientprint.show(this.tableData,this.currentRow,this.state);
197
+      // this.$router.push({ path: "/Pharmacy/print/patientPrint" });
198
+      this.$refs.patientprint.show();
399 199
     },
400 200
 
401 201
     // 搜索患者
402
-    searchAction() {
403
-      this.tableData = null;
404
-      this.getwaitmount();
405
-    },
202
+    searchAction() {},
406 203
 
407 204
     // 药品发药
408 205
     dispense() {
409
-      var tmp = this.currentRow.PatientID;
410
-      var params = {
411
-        patient_id:this.currentRow.PatientID,
412
-        time:this.start_time,
413
-      };
206
+      var params = {};
414 207
       this.$confirm("确定是否对该药品进行发药?", "患者发药", {
415 208
         confirmButtonText: "确 定",
416 209
         cancelButtonText: "取 消",
417 210
         type: "warning",
418
-      }).then(() => {
419
-        dispensingmedicine(params).then((res) => {
420
-          if(res.data.state == 1){
421
-            this.$message.success('操作成功');
422
-            this.gettodaynumber();
423
-            this.searchAction();
424
-            this.tableData = null;
425
-            this.fun4(tmp);
426
-            this.state = 2;
427
-            // console.log("this.alreadmount_data",this.alreadmount_data)
428
-            // for (let i = 0;i < this.alreadmount_data.length;i++){
429
-            //   console.log("tmp = ",tmp)
430
-            //     if (this.alreadmount_data[i].PatientID == tmp){
431
-            //       console.log("i = ",i)
432
-            //       this.$refs.table02.setCurrentRow(this.alreadmount_data[i]);
433
-            //       this.handleCurrentChange(this.alreadmount_data[i])
434
-            //     }
435
-            // }
436
-          }else {
437
-            this.$message.error(res.data.msg);
438
-          }
439
-        })
440
-      }).catch(() => {});
441
-    },
442
-
443
-    toSetting(){
444
-      getPharmacyConfig().then(response=>{
445
-        if(response.data.state == 1){
446
-          this.dialogVisible = true
447
-          var config = response.data.data.config
448
-          this.is_open = config.is_open.toString()
449
-        }
450
-      })
451
-    },
452
-    SaveSetting(){
453
-      var params = {
454
-        is_open:parseInt(this.is_open),
455
-      }
456
-      SaveSetting(params).then(response=>{
457
-        if(response.data.state == 1){
458
-          var config = response.data.data.config
459
-          this.$message.success("保存成功!")
460
-          this.dialogVisible = false
461
-        }
462 211
       })
212
+        .then(() => {})
213
+        .catch(() => {});
463 214
     },
215
+
464 216
     // 药品退药
465 217
     endispense() {
466
-      var tmp = this.currentRow.PatientID;
467
-      var params = {
468
-        patient_id:this.currentRow.PatientID,
469
-        time:this.start_time,
470
-      };
218
+      var params = {};
471 219
       this.$confirm("确定是否对该药品进行退药?", "患者退药", {
472 220
         confirmButtonText: "确 定",
473 221
         cancelButtonText: "取 消",
474 222
         type: "warning",
475
-      }).then(() => {
476
-        drugwithdrawal(params).then((res) => {
477
-          if(res.data.state == 1){
478
-            this.$message.success('操作成功');
479
-            this.gettodaynumber();
480
-            this.searchAction();
481
-            this.tableData = null;
482
-            this.fun4(tmp);
483
-            this.state = 1;
484
-          }else {
485
-            this.$message.error(res.data.msg);
486
-          }
487
-        })
488
-      }).catch(() => {});
223
+      })
224
+        .then(() => {})
225
+        .catch(() => {});
489 226
     },
490 227
   },
491
-
228
+  created() {},
492 229
 };
493 230
 </script>
494 231
 
@@ -528,4 +265,4 @@ export default {
528 265
     justify-content: flex-end;
529 266
   }
530 267
 }
531
-</style>
268
+</style>

+ 34 - 66
src/xt_pages/Pharmacy/print/patientPrint.vue View File

@@ -10,8 +10,10 @@
10 10
     >
11 11
     <div id="dialysis-print-box-1" class="dialysis-print-box-1">
12 12
       <div class="list_title">
13
-        <div>患者名称:{{name}}</div>
14
-        <div>发药状态:{{state}}</div>
13
+        <div>患者名称:</div>
14
+        <div>数据来源:</div>
15
+        <div>发药状态:</div>
16
+        <div>领药时间:</div>
15 17
       </div>
16 18
 
17 19
       <el-table
@@ -24,44 +26,16 @@
24 26
         <el-table-column type="index" prop="index" label="序号" width="60">
25 27
         </el-table-column>
26 28
         <el-table-column prop="name" label="名称" width="160">
27
-          <template slot-scope="scope" >
28
-            <span>{{scope.row.Name ? scope.row.Name : ""}}</span>
29
-          </template>
30 29
         </el-table-column>
31 30
         <el-table-column prop="SingleDosage" label="单次用量" width="120">
32
-          <template slot-scope="scope" >
33
-            <span>{{scope.row.SingleDosage ? scope.row.SingleDosage : ""}}</span>
34
-          </template>
35
-        </el-table-column>
36
-        <el-table-column prop="use" label="用法" width="120">
37
-          <template slot-scope="scope" >
38
-            <span>{{scope.row.Usage ? scope.row.Usage : ""}}</span>
39
-          </template>
40 31
         </el-table-column>
32
+        <el-table-column prop="use" label="用法" width="120"> </el-table-column>
41 33
         <el-table-column prop="frequency" label="频率" width="120">
42
-          <template slot-scope="scope" >
43
-            <span>{{scope.row.Frequency ? scope.row.Frequency : ""}}</span>
44
-          </template>
45
-        </el-table-column>
46
-        <el-table-column prop="day" label="天数" width="120">
47
-          <template slot-scope="scope" >
48
-            <span>{{scope.row.Days ? scope.row.Days : ""}}</span>
49
-          </template>
50 34
         </el-table-column>
35
+        <el-table-column prop="day" label="天数" width="120"> </el-table-column>
51 36
         <el-table-column prop="amount" label="总量" width="120">
52
-          <template slot-scope="scope" >
53
-            <span>{{scope.row.Total ? scope.row.Total : ""}}</span>
54
-          </template>
55
-        </el-table-column>
56
-        <el-table-column prop="tips" label="数据来源" width="120">
57
-          <template slot-scope="scope" >
58
-            <span>{{scope.row.DataSources ? scope.row.DataSources : ""}}</span>
59
-          </template>
60 37
         </el-table-column>
61 38
         <el-table-column prop="tips" label="备注" width="120">
62
-          <template slot-scope="scope" >
63
-            <span>{{scope.row.Remarks ? scope.row.Remarks : ""}}</span>
64
-          </template>
65 39
         </el-table-column>
66 40
       </el-table>
67 41
     </div>
@@ -76,10 +50,9 @@ export default {
76 50
   data() {
77 51
     return {
78 52
       visibility: false,
79
-      tableData: [],
53
+      tableData: [{}],
80 54
       isClose:false,
81
-      name:"",
82
-      state:null,
55
+      org_name:"",
83 56
     };
84 57
   },
85 58
   props: {
@@ -103,18 +76,8 @@ export default {
103 76
         }
104 77
       }
105 78
     },
106
-    show: function (val,data,state) {
79
+    show: function () {
107 80
       this.visibility = true;
108
-      console.log("val",val)
109
-      this.tableData = val
110
-      this.name = data.Name
111
-      if (state == 1){
112
-        this.state = "待发药"
113
-      }
114
-      if (state == 2){
115
-        this.state = "已发药"
116
-      }
117
-
118 81
     },
119 82
 
120 83
     comfirm: function (formName) {
@@ -138,57 +101,59 @@ export default {
138 101
       //     scanStyles: false,
139 102
       //   });
140 103
       this.printJson({
141
-        title: `<div style="width: 940px;border-bottom: 1px solid;display: flex;margin: 30px auto;">
142
-        <div style="width: 230px;padding: 10px 0;">患者名称:${this.name}</div>
143
-        <div style="width: 230px;padding: 10px 0;">发药状态:${this.state}</div>
104
+        title: `<div style="width:100%;text-align:center;font-size:16px;font-weight:bold;">${this.org_name}医院 发药单</div>
105
+        <div style="width: 940px;border-bottom: 1px solid;display: flex;margin: 30px auto;">
106
+        <div style="width: 310px;padding: 10px 0;">患者名称:${1}</div>
107
+        <div style="width: 310px;padding: 10px 0;">数据来源:${1}</div>
108
+        <div style="width: 310px;padding: 10px 0;">发药状态:${1}</div>
144 109
         </div>`, // 打印出来的标题
145 110
         data: this.tableData, // 需要打印的数据
146 111
         serial: true, // 是否需要打印序列号
147 112
         fields: [
148 113
           // 需要打印的字段
149 114
 
150
-          "Name",
115
+          "name",
151 116
           "SingleDosage",
152
-          "Usage",
153
-          "Frequency",
154
-          "Days",
155
-          "Total",
156
-          "DataSources",
157
-          "Remarks",
117
+          "use",
118
+          "frequency",
119
+          "day",
120
+          "amount",
121
+          "from",
122
+          "tips",
158 123
         ],
159 124
         properties: [
160 125
           // 需要打印的字段对应的表头名
161 126
 
162 127
           {
163
-            field: "Name",
128
+            field: "name",
164 129
             displayName: "姓名",
165 130
           },
166 131
           {
167 132
             field: "SingleDosage",
168
-            displayName: "单用量",
133
+            displayName: "单用量",
169 134
           },
170 135
           {
171
-            field: "Usage",
136
+            field: "use",
172 137
             displayName: "用法",
173 138
           },
174 139
           {
175
-            field: "Frequency",
140
+            field: "frequency",
176 141
             displayName: "频率",
177 142
           },
178 143
           {
179
-            field: "Days",
144
+            field: "day",
180 145
             displayName: "天数",
181 146
           },
182 147
           {
183
-            field: "Total",
148
+            field: "amount",
184 149
             displayName: "总量",
185 150
           },
186 151
           {
187
-            field: "DataSources",
152
+            field: "from",
188 153
             displayName: "数据来源",
189 154
           },
190 155
           {
191
-            field: "Remarks",
156
+            field: "tips",
192 157
             displayName: "备注",
193 158
           },
194 159
         ],
@@ -199,10 +164,13 @@ export default {
199 164
 </script>
200 165
 
201 166
 <style lang="scss" scoped>
167
+/deep/ .el-dialog{
168
+  width: 60%;
169
+}
202 170
 .print_style {
203 171
   position: absolute;
204
-  right: 10px;
205
-  top: 42px;
172
+  right: 65px;
173
+  top: 50px;
206 174
 }
207 175
 
208 176
 .list_title {

+ 14 - 1
src/xt_pages/dialysis/batch_print/batch_print_order_twelve.vue View File

@@ -857,7 +857,7 @@
857 857
                 </tr>
858 858
                 <tr>
859 859
                   <td style="width:60px" rowspan="2">时间</td>
860
-                  <td colspan="4">透析参数</td>
860
+                  <td colspan="5">透析参数</td>
861 861
                   <td colspan="5">生命体征</td>
862 862
                   <td colspan="2">治疗中病情变化</td>
863 863
                   <td style="width:80px" rowspan="2">护士签名</td>
@@ -879,6 +879,10 @@
879 879
                     <p style="height:20px;line-height:20px">脱水量</p>
880 880
                     <p style="height:20px;line-height:20px">ml</p>
881 881
                   </th>
882
+                  <th style="width: 70px">
883
+                    <p style="height: 20px; line-height: 20px">KT/V</p>
884
+                    <p style="height: 20px; line-height: 20px">&nbsp;</p>
885
+                  </th>
882 886
                   <th style="width:30px">
883 887
                     <p style="height:20px;line-height:20px">T</p>
884 888
                     <p style="height:20px;line-height:20px">℃</p>
@@ -949,6 +953,15 @@
949 953
                       }}
950 954
                     </span>
951 955
                   </td>
956
+                  <td>
957
+                    <span v-if="getTime(monitor.operate_time) != ''">
958
+                      {{
959
+                        monitor.ktv
960
+                        ? monitor.ktv
961
+                        : ""
962
+                      }}
963
+                    </span>
964
+            </td>
952 965
                   <td>
953 966
                     <span v-if="getTime(monitor.operate_time) != ''">
954 967
                       {{ monitor.temperature ? monitor.temperature : "0" }}

+ 1 - 1
src/xt_pages/dialysis/details/dialog/AssessmentAfterDislysis.vue View File

@@ -28,7 +28,7 @@
28 28
           <el-col :span="8" v-if="isShow('实际超滤量')">
29 29
             <el-form-item
30 30
               label="实际超滤量(ml): "
31
-              v-if=" this.template_id == 6 || this.template_id == 9 || this.template_id == 10 || this.template_id == 11  || this.template_id == 17 || this.template_id == 20 || this.template_id == 21 || this.template_id == 22 || this.template_id == 23 || this.template_id == 24 || this.template_id == 26 || this.template_id == 28 || this.template_id == 27 || this.template_id == 29 || this.template_id == 30 || this.template_id == 31 || this.template_id == 32 || this.template_id == 34 || this.template_id == 36 || this.template_id == 38 || this.template_id == 43 || this.template_id == 44 || this.template_id == 47 || this.$store.getters.xt_user.template_info.org_id == 10307 || this.$store.getters.xt_user.template_info.org_id == 9555 "  >
31
+              v-if=" this.template_id == 6 || this.template_id == 9 || this.template_id == 10 || this.template_id == 11  || this.template_id == 17 || this.template_id == 20 || this.template_id == 21 || this.template_id == 22 || this.template_id == 23 || this.template_id == 24 || this.template_id == 26 || this.template_id == 28 || this.template_id == 27 || this.template_id == 29 || this.template_id == 30 || this.template_id == 31 || this.template_id == 32 || this.template_id == 34 || this.template_id == 36 || this.template_id == 38 || this.template_id == 43 || this.template_id == 44 || this.template_id == 47 || this.template_id == 56 || this.$store.getters.xt_user.template_info.org_id == 10307 || this.$store.getters.xt_user.template_info.org_id == 9555 "  >
32 32
               <el-input v-model="form.actual_ultrafiltration"></el-input>
33 33
             </el-form-item>
34 34
             <el-form-item label="实际超滤量(L): " v-else>

+ 2 - 2
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue View File

@@ -82,7 +82,7 @@
82 82
                     </el-col>
83 83
 
84 84
                     <el-col :span="8"
85
-                            v-if="isShows('目标超滤量') && (this.$store.getters.xt_user.template_info.template_id == 17 || this.$store.getters.xt_user.template_info.template_id == 9 || this.$store.getters.xt_user.template_info.template_id == 20 || this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 22  || this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 24 || this.$store.getters.xt_user.template_info.template_id == 26 || this.$store.getters.xt_user.template_info.template_id == 28  || this.$store.getters.xt_user.template_info.template_id == 27 || this.$store.getters.xt_user.template_info.template_id == 29 || this.$store.getters.xt_user.template_info.template_id == 30 || this.$store.getters.xt_user.template_info.template_id == 31 || this.$store.getters.xt_user.template_info.template_id == 32 || this.$store.getters.xt_user.template_info.template_id == 34 || this.$store.getters.xt_user.template_info.template_id == 38 ||  this.$store.getters.xt_user.template_info.template_id == 40 ||  this.$store.getters.xt_user.template_info.template_id == 43 ||  this.$store.getters.xt_user.template_info.template_id == 45  ||  this.$store.getters.xt_user.template_info.template_id == 46 ||  this.$store.getters.xt_user.template_info.template_id == 48 || this.$store.getters.xt_user.template_info.org_id == 9555 || this.$store.getters.xt_user.template_info.org_id == 10345 || this.$store.getters.xt_user.template_info.org_id == 10346 || this.$store.getters.xt_user.template_info.org_id == 10249)">
85
+                            v-if="isShows('目标超滤量') && (this.$store.getters.xt_user.template_info.template_id == 17 || this.$store.getters.xt_user.template_info.template_id == 9 || this.$store.getters.xt_user.template_info.template_id == 20 || this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 22  || this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 24 || this.$store.getters.xt_user.template_info.template_id == 26 || this.$store.getters.xt_user.template_info.template_id == 28  || this.$store.getters.xt_user.template_info.template_id == 27 || this.$store.getters.xt_user.template_info.template_id == 29 || this.$store.getters.xt_user.template_info.template_id == 30 || this.$store.getters.xt_user.template_info.template_id == 31 || this.$store.getters.xt_user.template_info.template_id == 32 || this.$store.getters.xt_user.template_info.template_id == 34 || this.$store.getters.xt_user.template_info.template_id == 38 ||  this.$store.getters.xt_user.template_info.template_id == 40 ||  this.$store.getters.xt_user.template_info.template_id == 43 ||  this.$store.getters.xt_user.template_info.template_id == 45  ||  this.$store.getters.xt_user.template_info.template_id == 46 ||  this.$store.getters.xt_user.template_info.template_id == 48 ||  this.$store.getters.xt_user.template_info.template_id == 56 || this.$store.getters.xt_user.template_info.org_id == 9555 || this.$store.getters.xt_user.template_info.org_id == 10345 || this.$store.getters.xt_user.template_info.org_id == 10346 || this.$store.getters.xt_user.template_info.org_id == 10249)">
86 86
                         <el-form-item label="目标超滤量(ml):">
87 87
                             <el-input
88 88
                                     type="number"
@@ -93,7 +93,7 @@
93 93
 
94 94
 
95 95
                     <el-col :span="8"
96
-                            v-if="isShows('目标超滤量')  && this.$store.getters.xt_user.template_info.template_id != 17 && this.$store.getters.xt_user.template_info.template_id != 9 && this.$store.getters.xt_user.template_info.template_id != 20 && this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 22 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 24 && this.$store.getters.xt_user.template_info.template_id != 26 && this.$store.getters.xt_user.template_info.template_id != 28 && this.$store.getters.xt_user.template_info.template_id != 27 && this.$store.getters.xt_user.template_info.template_id != 29 && this.$store.getters.xt_user.template_info.template_id != 30 && this.$store.getters.xt_user.template_info.template_id != 31 && this.$store.getters.xt_user.template_info.template_id != 32 && this.$store.getters.xt_user.template_info.template_id != 34 && this.$store.getters.xt_user.template_info.template_id != 38 &&  this.$store.getters.xt_user.template_info.template_id != 40 &&  this.$store.getters.xt_user.template_info.template_id != 43 &&  this.$store.getters.xt_user.template_info.template_id != 45 &&  this.$store.getters.xt_user.template_info.template_id != 46  &&  this.$store.getters.xt_user.template_info.template_id != 48 && this.$store.getters.xt_user.template_info.org_id != 9555 &&  this.$store.getters.xt_user.template_info.org_id != 10345 &&  this.$store.getters.xt_user.template_info.org_id != 10346 && this.$store.getters.xt_user.template_info.org_id != 10249">
96
+                            v-if="isShows('目标超滤量')  && this.$store.getters.xt_user.template_info.template_id != 17 && this.$store.getters.xt_user.template_info.template_id != 9 && this.$store.getters.xt_user.template_info.template_id != 20 && this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 22 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 24 && this.$store.getters.xt_user.template_info.template_id != 26 && this.$store.getters.xt_user.template_info.template_id != 28 && this.$store.getters.xt_user.template_info.template_id != 27 && this.$store.getters.xt_user.template_info.template_id != 29 && this.$store.getters.xt_user.template_info.template_id != 30 && this.$store.getters.xt_user.template_info.template_id != 31 && this.$store.getters.xt_user.template_info.template_id != 32 && this.$store.getters.xt_user.template_info.template_id != 34 && this.$store.getters.xt_user.template_info.template_id != 38 &&  this.$store.getters.xt_user.template_info.template_id != 40 &&  this.$store.getters.xt_user.template_info.template_id != 43 &&  this.$store.getters.xt_user.template_info.template_id != 45 &&  this.$store.getters.xt_user.template_info.template_id != 46  &&  this.$store.getters.xt_user.template_info.template_id != 48 &&  this.$store.getters.xt_user.template_info.template_id != 56 && this.$store.getters.xt_user.template_info.org_id != 9555 &&  this.$store.getters.xt_user.template_info.org_id != 10345 &&  this.$store.getters.xt_user.template_info.org_id != 10346 && this.$store.getters.xt_user.template_info.org_id != 10249">
97 97
                         <el-form-item label="目标超滤量(L):">
98 98
                             <el-input
99 99
                                     type="number"

+ 16 - 0
src/xt_pages/dialysis/details/dialog/monitor_dialog.vue View File

@@ -233,6 +233,7 @@
233 233
                 template_id == 51 ||
234 234
                 template_id == 53 ||
235 235
                 template_id == 54 ||
236
+                template_id == 56 ||
236 237
                 org_id == 10210 ||
237 238
                 org_id == 9555)
238 239
             "
@@ -287,6 +288,7 @@
287 288
               template_id != 51 &&
288 289
               template_id != 53 &&
289 290
               template_id != 54 &&
291
+              template_id != 56 &&
290 292
               org_id!= 10210 &&
291 293
               org_id != 9555
292 294
             "
@@ -334,6 +336,7 @@
334 336
                 template_id == 48 ||
335 337
                 template_id == 53 ||
336 338
                 template_id == 54 ||
339
+                template_id == 56 ||
337 340
                 template_id == 47)
338 341
             "
339 342
           >
@@ -378,6 +381,7 @@
378 381
               template_id != 46 &&
379 382
               template_id != 53 &&
380 383
               template_id != 54 &&
384
+              template_id != 56 &&
381 385
               template_id != 48 &&
382 386
               template_id != 47
383 387
             "
@@ -436,6 +440,7 @@
436 440
                 template_id == 48 ||
437 441
                 template_id == 53 ||
438 442
                 template_id == 54 ||
443
+                template_id == 56 ||
439 444
                 template_id == 47)
440 445
             "
441 446
           >
@@ -460,6 +465,7 @@
460 465
               template_id != 48 &&
461 466
               template_id != 53 &&
462 467
               template_id != 54 &&
468
+              template_id != 56 &&
463 469
               template_id != 47
464 470
             "
465 471
           >
@@ -501,6 +507,7 @@
501 507
                 template_id == 29 ||
502 508
                 template_id == 53 ||
503 509
                 template_id == 54 ||
510
+                template_id == 56 ||
504 511
                 template_id == 48)
505 512
             "
506 513
           >
@@ -529,6 +536,7 @@
529 536
               template_id != 43 &&
530 537
               template_id != 53 &&
531 538
               template_id != 54 &&
539
+              template_id != 56 &&
532 540
               template_id != 48
533 541
             "
534 542
           >
@@ -1017,6 +1025,7 @@
1017 1025
                 template_id == 48 ||
1018 1026
                 template_id == 53 ||
1019 1027
                 template_id == 54 ||
1028
+                template_id == 56 ||
1020 1029
                 template_id == 47)
1021 1030
             "
1022 1031
           >
@@ -1055,6 +1064,7 @@
1055 1064
               template_id != 48 &&
1056 1065
               template_id != 53 &&
1057 1066
               template_id != 54 &&
1067
+              template_id != 56 &&
1058 1068
               template_id != 47
1059 1069
             "
1060 1070
           >
@@ -1100,6 +1110,7 @@
1100 1110
                 template_id == 51 ||
1101 1111
                 template_id == 53 ||
1102 1112
                 template_id == 54 ||
1113
+                template_id == 56 ||
1103 1114
                 org_id == 10210 ||
1104 1115
                 org_id == 9555)
1105 1116
             "
@@ -1146,6 +1157,7 @@
1146 1157
               template_id == 48 &&
1147 1158
               template_id == 53 &&
1148 1159
               template_id == 54 &&
1160
+              template_id == 56 &&
1149 1161
               org_id !=  10210 &&
1150 1162
               org_id != 9555
1151 1163
             "
@@ -1182,6 +1194,7 @@
1182 1194
               template_id != 47 &&
1183 1195
               template_id != 48 &&
1184 1196
               template_id != 54 &&
1197
+              template_id != 56 &&
1185 1198
               template_id != 53
1186 1199
             "
1187 1200
           >
@@ -1203,6 +1216,7 @@
1203 1216
                 template_id == 47 ||
1204 1217
                 template_id == 53 ||
1205 1218
                 template_id == 54 ||
1219
+                template_id == 56 ||
1206 1220
                 template_id == 48)
1207 1221
             "
1208 1222
           >
@@ -1229,6 +1243,7 @@
1229 1243
               template_id != 46 &&
1230 1244
               template_id != 53 &&
1231 1245
               template_id != 54 &&
1246
+              template_id != 56 &&
1232 1247
               template_id != 48
1233 1248
             "
1234 1249
           >
@@ -1252,6 +1267,7 @@
1252 1267
                 template_id == 46 ||
1253 1268
                 template_id == 53 ||
1254 1269
                 template_id == 54 ||
1270
+                template_id == 56 ||
1255 1271
                 template_id == 48)
1256 1272
             "
1257 1273
           >

+ 8 - 8
src/xt_pages/dialysis/details/dialysisMonitoring.vue View File

@@ -14,17 +14,17 @@
14 14
           <th width="76px">静脉压/动脉压({{monitores[0]&&monitores[0]['venous_pressure_type'] == 2 ? 'kpa' : 'mmHg'}})</th>
15 15
           <th v-if="isShow('血流量')" width="92px">血流量(ml/min)</th>
16 16
           <th v-if="isShow('跨膜压')" width="76px">跨膜压({{monitores[0]&&monitores[0]['transmembrane_pressure_type'] == 2 ? 'kpa' : 'mmHg'}})</th>
17
-          <th v-if=" isShow('超滤量') &&(template_id == 6 || template_id == 9 || template_id == 10 || template_id == 11 || template_id == 13 || template_id == 17 || template_id == 18 || template_id == 19 || template_id == 20 || template_id == 21 || template_id == 22 || template_id == 23 || template_id == 24 || template_id == 26 || template_id == 27 || template_id == 28 || template_id == 29 || template_id == 30 || template_id == 31 || template_id == 32 || template_id == 34 || template_id == 35 || template_id == 36 || template_id == 38 || template_id == 39 || template_id == 40  || template_id == 41 || template_id == 43 || template_id == 44 || template_id == 46 || template_id == 47 || template_id == 48 || this.$store.getters.xt_user.template_info.org_id == 9555 || template_id == 53 || template_id == 54)" width="76px" > 超滤量(ml)</th>
18
-          <th v-if=" isShow('超滤量') && template_id != 6 && template_id != 9 && template_id != 10 && template_id != 11 && template_id != 13 && template_id != 17 && template_id != 18 && template_id != 19 && template_id != 20 && template_id != 21 && template_id != 22 && template_id != 23 && template_id != 24 && template_id != 26 && template_id !=27 && template_id!=28 && template_id!=29 && template_id!=30 && template_id!=31 && template_id!=32 && template_id!=34 && template_id!=35 && template_id!=36 && template_id!=38 && template_id != 39 && template_id != 40  && template_id != 41 && template_id != 43 && template_id != 44 && template_id != 46  && template_id != 47 && template_id != 48 && template_id != 53  && template_id != 54 && this.$store.getters.xt_user.template_info.org_id != 9555"  width="76px"> 超滤量(L) </th>
19
-          <th v-if="isShow('超滤率') && (template_id ==6 || template_id == 10 || template_id == 11 || template_id == 12 || template_id == 13 || template_id == 17 || template_id == 18 || template_id == 19 || template_id == 20 || template_id == 21 || template_id == 22 || template_id == 23 || template_id == 24 || template_id == 26 || template_id == 29 || template_id == 30 || template_id == 31 || template_id == 34 || template_id == 35 || template_id == 38 || template_id == 41 || template_id == 43 || template_id == 44 || template_id == 46 || template_id == 47  || template_id == 48  || template_id == 53)" width="50px"> 超滤率 <br />(ml/h) </th>
20
-          <th v-if="isShow('超滤率') && template_id !=6 && template_id !=10 && template_id !=11 && template_id !=12 && template_id !=13 && template_id !=17 && template_id !=18 && template_id !=19 && template_id !=20 && template_id !=21 && template_id !=22 && template_id !=23 && template_id !=24 && template_id !=26 && template_id !=29 && template_id !=30 && template_id !=31 && template_id !=34 && template_id !=35 && template_id !=38  && template_id !=41 && template_id !=43 && template_id !=44 && template_id !=46 && template_id !=47 &&  template_id !=48 &&  template_id !=53" width="50px"> 超滤率 <br />(L/h) </th>
17
+          <th v-if=" isShow('超滤量') &&(template_id == 6 || template_id == 9 || template_id == 10 || template_id == 11 || template_id == 13 || template_id == 17 || template_id == 18 || template_id == 19 || template_id == 20 || template_id == 21 || template_id == 22 || template_id == 23 || template_id == 24 || template_id == 26 || template_id == 27 || template_id == 28 || template_id == 29 || template_id == 30 || template_id == 31 || template_id == 32 || template_id == 34 || template_id == 35 || template_id == 36 || template_id == 38 || template_id == 39 || template_id == 40  || template_id == 41 || template_id == 43 || template_id == 44 || template_id == 46 || template_id == 47 || template_id == 48 || this.$store.getters.xt_user.template_info.org_id == 9555 || template_id == 53 || template_id == 54 || template_id == 56)" width="76px" > 超滤量(ml)</th>
18
+          <th v-if=" isShow('超滤量') && template_id != 6 && template_id != 9 && template_id != 10 && template_id != 11 && template_id != 13 && template_id != 17 && template_id != 18 && template_id != 19 && template_id != 20 && template_id != 21 && template_id != 22 && template_id != 23 && template_id != 24 && template_id != 26 && template_id !=27 && template_id!=28 && template_id!=29 && template_id!=30 && template_id!=31 && template_id!=32 && template_id!=34 && template_id!=35 && template_id!=36 && template_id!=38 && template_id != 39 && template_id != 40  && template_id != 41 && template_id != 43 && template_id != 44 && template_id != 46  && template_id != 47 && template_id != 48 && template_id != 53  && template_id != 54  && template_id != 56 && this.$store.getters.xt_user.template_info.org_id != 9555"  width="76px"> 超滤量(L) </th>
19
+          <th v-if="isShow('超滤率') && (template_id ==6 || template_id == 10 || template_id == 11 || template_id == 12 || template_id == 13 || template_id == 17 || template_id == 18 || template_id == 19 || template_id == 20 || template_id == 21 || template_id == 22 || template_id == 23 || template_id == 24 || template_id == 26 || template_id == 29 || template_id == 30 || template_id == 31 || template_id == 34 || template_id == 35 || template_id == 38 || template_id == 41 || template_id == 43 || template_id == 44 || template_id == 46 || template_id == 47  || template_id == 48  || template_id == 53 || template_id == 54 || template_id == 56)" width="50px"> 超滤率 <br />(ml/h) </th>
20
+          <th v-if="isShow('超滤率') && template_id !=6 && template_id !=10 && template_id !=11 && template_id !=12 && template_id !=13 && template_id !=17 && template_id !=18 && template_id !=19 && template_id !=20 && template_id !=21 && template_id !=22 && template_id !=23 && template_id !=24 && template_id !=26 && template_id !=29 && template_id !=30 && template_id !=31 && template_id !=34 && template_id !=35 && template_id !=38  && template_id !=41 && template_id !=43 && template_id !=44 && template_id !=46 && template_id !=47 &&  template_id !=48 &&  template_id !=53 &&  template_id !=54 &&  template_id !=56" width="50px"> 超滤率 <br />(L/h) </th>
21 21
           <th v-if="isShow('钠浓度')" width="92px">钠浓度(mmol/L)</th>
22 22
           <th v-if="isShow('透析液温度')" width="92px">透析液温度(℃)</th>
23
-          <th v-if=" isShow('置换率') && (template_id == 6 || template_id == 10 || template_id == 11 || template_id == 20 || template_id == 26 || template_id == 29 || template_id == 46 || template_id == 47 || template_id == 48 || template_id == 53  || template_id == 54) " width="92px" > 置换率(ml/min) </th>
24
-          <th v-if=" isShow('置换率') && template_id != 6 && template_id != 10 && template_id != 11 && template_id != 20 && template_id != 26 && template_id != 29 && template_id != 46 && template_id != 47 && template_id != 48 && template_id != 53 && template_id != 54" width="92px" > 置换率(L/h)  </th>
23
+          <th v-if=" isShow('置换率') && (template_id == 6 || template_id == 10 || template_id == 11 || template_id == 20 || template_id == 26 || template_id == 29 || template_id == 46 || template_id == 47 || template_id == 48 || template_id == 53  || template_id == 54 || template_id == 56) " width="92px" > 置换率(ml/min) </th>
24
+          <th v-if=" isShow('置换率') && template_id != 6 && template_id != 10 && template_id != 11 && template_id != 20 && template_id != 26 && template_id != 29 && template_id != 46 && template_id != 47 && template_id != 48 && template_id != 53 && template_id != 54 && template_id != 56" width="92px" > 置换率(L/h)  </th>
25 25
           <th v-if=" isShow('置换量') && (template_id == 43)" width="92px"> 置换量(ml/h)  </th>
26
-          <th v-if=" isShow('置换量') && ((template_id == 6 && org_id != 9919 && org_id !=10191) || org_id == 9779 || template_id == 11 || template_id == 20 || template_id == 26 || template_id == 29 || template_id == 46 || template_id == 48 || template_id == 53 || template_id == 54)" width="92px"  > 置换量(ml)  </th>
27
-          <th v-if=" isShow('置换量') && ((template_id != 6 || org_id == 9919 || org_id == 10191) && org_id != 9779 && template_id != 11 && template_id != 20 && template_id != 26 && template_id != 29 && template_id != 46 && template_id != 48 && template_id != 53 && template_id != 54)" width="92px" > 置换量(L) </th>
26
+          <th v-if=" isShow('置换量') && ((template_id == 6 && org_id != 9919 && org_id !=10191) || org_id == 9779 || template_id == 11 || template_id == 20 || template_id == 26 || template_id == 29 || template_id == 46 || template_id == 48 || template_id == 53 || template_id == 54 || template_id == 56)" width="92px"  > 置换量(ml)  </th>
27
+          <th v-if=" isShow('置换量') && ((template_id != 6 || org_id == 9919 || org_id == 10191) && org_id != 9779 && template_id != 11 && template_id != 20 && template_id != 26 && template_id != 29 && template_id != 46 && template_id != 48 && template_id != 53 && template_id != 54 && template_id != 56)" width="92px" > 置换量(L) </th>
28 28
           <th v-if=" isShow('SpO₂') && template_id != 6 && template_id != 10 && template_id != 11  " width="92px" > SpO₂(%) </th>
29 29
           <th v-if="isShow('电导度')" width="92px">电导度(mS/m)</th>
30 30
           <th v-if="isShow('置换液流量') && template_id != 27" width="92px">置换液流量(ml/h)</th>

+ 36 - 31
src/xt_pages/dialysis/details/index.vue View File

@@ -17,13 +17,13 @@
17 17
           @click="next"
18 18
           >下一位</el-button
19 19
         >
20
-        <el-button
20
+        <!-- <el-button
21 21
           size="small"
22 22
           type="primary"
23 23
           @click="printOrderOne"
24 24
           icon="el-icon-printer"
25
-          >打印上机单</el-button
26
-        >
25
+          >打印上机单</el-button> -->
26
+
27 27
         <el-button
28 28
           size="small"
29 29
           type="primary"
@@ -214,7 +214,7 @@
214 214
         </el-tab-pane>
215 215
       </el-tabs>
216 216
 
217
-     
217
+
218 218
 
219 219
         <el-dialog
220 220
                 :visible.sync="startVisibility"
@@ -237,8 +237,7 @@
237 237
              <div v-for="(main_collection,index) in printList" :key="index">
238 238
               <div class="signPrint" style="font-size:16px;">
239 239
                 <div style="margin-left:50px;">姓名:
240
-                  <span v-if="type ==1 && printObj.name == 1">{{main_collection.patient.name}} </span>
241
-                  <span v-if="type ==2 && printObj.name == 1">{{main_collection.patient}} </span>
240
+                  <span>{{main_collection.patient.name}} </span>
242 241
                   ({{ main_collection.patient.dialysis_no }},{{ main_collection.patient.age }}岁)
243 242
                 </div>
244 243
                 <div class="printCell">
@@ -248,12 +247,12 @@
248 247
                     <span style="width:auto;" v-if="main_collection.schedule_type == 2">下午</span>
249 248
                     <span style="width:auto;" v-if="main_collection.schedule_type == 3">晚上</span>
250 249
                   </span>
251
-                  <span> </span>
250
+                  <span>{{ printDate }}</span>
252 251
                 </div>
253 252
                 <div class="printCell">
254 253
                    <span>干体重:{{main_collection.assessmentbefor.dry_weight}}Kg</span>
255 254
                     <span>抗凝剂:{{ main_collection.dialysissolution.anticoagulant ? anticoagulants_confit[main_collection.dialysissolution.anticoagulant].name : ''}}</span>
256
-                 
255
+
257 256
                 </div>
258 257
                 <div class="printCell">
259 258
                   <span>净重值:{{ main_collection.assessmentbefor.weight_before - main_collection.assessmentbefor.additional_weight }}Kg</span>
@@ -290,7 +289,7 @@
290 289
                    </span>
291 290
                 </div>
292 291
                 <div class="printCell">
293
-                  <span>体重增加:{{ (main_collection.assessmentbefor.weight_before - main_collection.lastafterweight.weight_after).toFixed(2) }}Kg</span>
292
+                  <span>体重增加:{{ (main_collection.assessmentbefor.weight_before - assessmentAfterDislysis.weight_after).toFixed(2) }}Kg</span>
294 293
                  维持:{{main_collection.dialysissolution.anticoagulant_weichi}}
295 294
                    <span v-if="main_collection.dialysissolution.anticoagulant == 1">
296 295
                     mg/h
@@ -371,7 +370,6 @@
371 370
 
372 371
       <span slot="footer" class="dialog-footer">
373 372
         <el-button @click="startVisibility = false">取 消</el-button>
374
-        <el-button type="primary" @click="startVisibility = false">确 定</el-button>
375 373
       </span>
376 374
     </el-dialog>
377 375
 
@@ -858,9 +856,12 @@ export default {
858 856
       startVisibility:false,
859 857
       printList:[],
860 858
       anticoagulants_confit:null,
859
+      printDate:'',
860
+      assessmentAfterDislysis:{},
861 861
     }
862 862
   },
863 863
   created() {
864
+   this.printDate = moment().format("YYYY-MM-DD HH:mm:ss")
864 865
     if(this.$route.query.showView){
865 866
       this.showView = this.$route.query.showView
866 867
     }
@@ -903,7 +904,7 @@ export default {
903 904
     };
904 905
     this.websocketSend(this.initData)
905 906
     this.getInitData()
906
-    this.getInitPrintData()
907
+
907 908
     this.anticoagulants_confit = this.$store.getters.anticoagulants_confit
908 909
   },
909 910
   beforeMount() {
@@ -1173,11 +1174,11 @@ export default {
1173 1174
           }
1174 1175
 
1175 1176
           var solution = resp.data.solution // 透析方案
1176
-         
1177
+
1177 1178
           var receiver_treatment_access = resp.data.receiver_treatment_access // 接诊评估
1178 1179
 
1179 1180
           var predialysis_evaluation = resp.data.predialysis_evaluation // 透前评估
1180
-        
1181
+
1181 1182
           if (predialysis_evaluation != null) {
1182 1183
             if (predialysis_evaluation.blood_access_part_id == -2) {
1183 1184
               predialysis_evaluation.blood_access_part_id = 0
@@ -1230,7 +1231,7 @@ export default {
1230 1231
           var system_prescribe = resp.data.system_prescribe
1231 1232
 
1232 1233
           var lastAssessment =  resp.data.lastAssessment
1233
-         
1234
+
1234 1235
           this.$refs.nav.setLastRecord(
1235 1236
             lastPredialysisEvaluation,
1236 1237
             lastMonitorRecord,
@@ -1320,12 +1321,12 @@ export default {
1320 1321
           this.device_numbers = resp.data.device_numbers
1321 1322
 
1322 1323
           var his_doctor_advices = resp.data.his_advices
1323
-        
1324
+
1324 1325
           this.his_doctor_advices = his_doctor_advices
1325 1326
           this.his_is_open = resp.data.is_open_config.is_open
1326 1327
 
1327 1328
           this.is_advice_open = resp.data.is_advice_open.is_advice_open
1328
-          
1329
+
1329 1330
           var stockType =  resp.data.stockType
1330 1331
           this.stockType = stockType
1331 1332
 
@@ -1336,7 +1337,7 @@ export default {
1336 1337
           }else{
1337 1338
             this.preparestock = []
1338 1339
           }
1339
-    
1340
+
1340 1341
           for (let i = 0; i <  this.doctor_advices.length; i++){
1341 1342
             this.doctor_advices[i]['origin'] = 1
1342 1343
           }
@@ -1400,7 +1401,8 @@ export default {
1400 1401
       )
1401 1402
     },
1402 1403
     printOrderOne(){
1403
-      this.startVisibility = true
1404
+      this.getInitPrintData()
1405
+
1404 1406
     },
1405 1407
     // 日期
1406 1408
     handleScheduleDateChange: function(index) {
@@ -1524,7 +1526,7 @@ export default {
1524 1526
           //   }
1525 1527
           // }
1526 1528
 
1527
-         
1529
+
1528 1530
           this.zone_schedules = this.processedDialysisSchedules(schedules, this.zone_options)
1529 1531
           const patientArr = JSON.parse(JSON.stringify(this.zone_schedules))
1530 1532
           if (this.activeName == 'first') {
@@ -1552,7 +1554,7 @@ export default {
1552 1554
           })
1553 1555
           this.tableData = newArr
1554 1556
           this.getData()
1555
-         
1557
+
1556 1558
         } else {
1557 1559
           this.$message.error(resp.msg)
1558 1560
         }
@@ -1725,13 +1727,13 @@ export default {
1725 1727
           for (let j = 0; j < patientArr[i].schedules.length; j++) {
1726 1728
             if (patientArr[i].schedules.length > 0 && patientArr[i].schedules[j].dialysis_order == null) {
1727 1729
               // 删除元素后改变i的值
1728
-              
1730
+
1729 1731
               patientArr[i].schedules.splice(j--, 1)
1730 1732
             }
1731 1733
           }
1732 1734
         }
1733 1735
         let arr1 = []
1734
-     
1736
+
1735 1737
         // let patientArr =
1736 1738
         if (this.patientStateVal == 0) {
1737 1739
           arr1 = patientArr
@@ -1746,7 +1748,7 @@ export default {
1746 1748
               }
1747 1749
             }
1748 1750
           }
1749
-         
1751
+
1750 1752
           arr1 = arr
1751 1753
         } else if (this.patientStateVal == 2) {
1752 1754
           let arr = []
@@ -1759,7 +1761,7 @@ export default {
1759 1761
               }
1760 1762
             }
1761 1763
           }
1762
-         
1764
+
1763 1765
           arr1 = arr
1764 1766
         } else if (this.patientStateVal == 3) {
1765 1767
           let arr = []
@@ -1785,7 +1787,7 @@ export default {
1785 1787
               }
1786 1788
             }
1787 1789
           }
1788
-      
1790
+
1789 1791
           arr1 = arr
1790 1792
         }
1791 1793
 
@@ -1809,7 +1811,7 @@ export default {
1809 1811
           arr = JSON.parse(JSON.stringify(arr1))
1810 1812
           for (let i = 0; i < arr.length; i++) {
1811 1813
             for (let j = 0; j < arr[i].schedules.length; j++) {
1812
-             
1814
+
1813 1815
               if(arr[i].schedules[j].doctor_advice.length == 0){
1814 1816
                 arr[i].schedules.splice(j--, 1)
1815 1817
               }
@@ -1918,7 +1920,7 @@ export default {
1918 1920
       }
1919 1921
     },
1920 1922
     websocketMess() {
1921
-     
1923
+
1922 1924
       this.websocket.onmessage = e => {
1923 1925
         let res = JSON.parse(e.data);
1924 1926
         // let res = re.data;
@@ -1967,7 +1969,7 @@ export default {
1967 1969
                   calledArr.push(item)
1968 1970
               }
1969 1971
           })
1970
-    
1972
+
1971 1973
           this.waitingCalled = waitingCalledArr
1972 1974
           this.called = calledArr
1973 1975
         }else if(res.channel == 'allQueueList'){
@@ -2024,7 +2026,7 @@ export default {
2024 2026
       let org_id =  parseInt(sessionStorage.getItem("org_id"));
2025 2027
       let admin_user_id = parseInt(sessionStorage.getItem("admin_user_id"));
2026 2028
       axios.get('/api/index/callpatient?org_id=' + org_id + '&patient_id=' + this.patient_id + '&admin_user_id=' + admin_user_id).then(res => {
2027
-       
2029
+
2028 2030
         // let patientArr = res.data.queue_list.data
2029 2031
         // this.patientArr = patientArr
2030 2032
         // this.$emit('child-event',this.patientArr)
@@ -2086,7 +2088,7 @@ export default {
2086 2088
       }else {
2087 2089
         schedule_type = 2
2088 2090
       }
2089
-     
2091
+
2090 2092
       let org_id =  parseInt(sessionStorage.getItem("org_id"));
2091 2093
       let admin_user_id = parseInt(sessionStorage.getItem("admin_user_id"));
2092 2094
       axios.get('/api/index/nextcall?org_id=' + org_id + '&patient_id=' + this.patient_id + '&admin_user_id=' + admin_user_id + '&schedule_type=' + schedule_type).then(res => {
@@ -2150,7 +2152,7 @@ export default {
2150 2152
           documentTitle: '  ',
2151 2153
           style: style1,
2152 2154
           scanStyles: false
2153
-        }) 
2155
+        })
2154 2156
       },
2155 2157
     getInitPrintData(){
2156 2158
        var params = {
@@ -2160,8 +2162,11 @@ export default {
2160 2162
       getInitPrintData(params).then(response=>{
2161 2163
         if(response.data.state == 1){
2162 2164
           var list = response.data.data.list
2165
+          var assessmentAfterDislysis =  response.data.data.assessmentAfterDislysis
2163 2166
           console.log("list2332322332",list)
2164 2167
           this.printList = list
2168
+          this.assessmentAfterDislysis = assessmentAfterDislysis
2169
+          this.startVisibility = true
2165 2170
         }
2166 2171
       })
2167 2172
     }

+ 3 - 5
src/xt_pages/dialysis/dialysisDoctorAdvice.vue View File

@@ -559,7 +559,7 @@ export default {
559 559
             
560 560
             if(project_config.is_open == 1){
561 561
               this.project = resp.data.project
562
-              console.log( this.project)
562
+              console.log("wode 2o2o3o3o23o32o32o23o32o32o", this.project)
563 563
              
564 564
               let projectArr = []
565 565
               if(this.org_id!= 10318){
@@ -570,7 +570,7 @@ export default {
570 570
                     }
571 571
                   })
572 572
                 })
573
-                
573
+                console.log("projectArr2332323232323232",projectArr)
574 574
                  resp.data.hisAdvices.map((item,index) => {
575 575
                   if(projectArr[index].project && projectArr[index].project.length > 0){
576 576
                      projectArr[index].project.map(it => {
@@ -598,10 +598,8 @@ export default {
598 598
                     })
599 599
                   }
600 600
                 })
601
+                console.log("hh3oo1o3o123o3oo312o132o312o31o132o",resp.data.hisAdvices)
601 602
               }
602
-            
603
-             
604
-
605 603
             }
606 604
            
607 605
            if(config.is_open == 0 || config.is_open == 2){

+ 1 - 1
src/xt_pages/dialysis/dialysisPage.vue View File

@@ -648,7 +648,7 @@
648 648
                     <p>{{ DialysisPrescriptionComfirmUserName }}</p>
649 649
                     <el-button :disabled="$store.getters.xt_user.subscibe.state==3?true:false" type="primary" @click="commitDialysisPrescriptionAndOther">提交并设为长期处方</el-button>
650 650
                     <el-button :disabled="$store.getters.xt_user.subscibe.state==3?true:false" type="primary" @click="commitDialysisPrescription">提交</el-button>
651
-                    <el-button type="primary" @click="printDan">打印上机单</el-button>
651
+                    <!-- <el-button type="primary" @click="printDan">打印上机单</el-button> -->
652 652
                   </el-form-item>
653 653
                 </el-col>
654 654
 

+ 65 - 5
src/xt_pages/dialysis/dialysisPrintOrder.vue View File

@@ -688,6 +688,34 @@
688 688
           >打印</el-button
689 689
         >
690 690
       </template>
691
+      <template
692
+        v-if="
693
+          org_template_info.template_id == 55
694
+        "
695
+      >
696
+        <el-button
697
+          :loading="loading"
698
+          size="small"
699
+          icon="el-icon-printer"
700
+          @click="printThisPage"
701
+          type="primary"
702
+          >打印</el-button
703
+        >
704
+      </template>
705
+      <template
706
+        v-if="
707
+          org_template_info.template_id == 56
708
+        "
709
+      >
710
+        <el-button
711
+          :loading="loading"
712
+          size="small"
713
+          icon="el-icon-printer"
714
+          @click="printThisPage"
715
+          type="primary"
716
+          >打印</el-button
717
+        >
718
+      </template>
691 719
     </div>
692 720
     <div class="app-container" style="min-height: 0">
693 721
       <!--<div class="order-print-btn"-->
@@ -846,7 +874,7 @@
846 874
             v-if="org_template_info.template_id == 5"
847 875
           >
848 876
           </DialysisPrintOrderFive>
849
-
877
+                                  
850 878
           <DialysisPrintOrderSix
851 879
             v-bind:childResponse="childResponse"
852 880
             v-if="org_template_info.template_id == 6"
@@ -1089,6 +1117,16 @@
1089 1117
             v-if="org_template_info.template_id == 54"
1090 1118
           >
1091 1119
           </DialysisPrintOrderFiftyFour>
1120
+           <DialysisPrintOrderFiftyfive
1121
+            v-bind:childResponse="childResponse"
1122
+            v-if="org_template_info.template_id == 55"
1123
+          >
1124
+          </DialysisPrintOrderFiftyfive>
1125
+          <DialysisPrintOrderFiftySix
1126
+            v-bind:childResponse="childResponse"
1127
+            v-if="org_template_info.template_id == 56"
1128
+          >
1129
+          </DialysisPrintOrderFiftySix>
1092 1130
           
1093 1131
         </div>
1094 1132
       </el-container>
@@ -1161,10 +1199,14 @@ import DialysisPrintOrderFifty from "./template/DialysisPrintOrderFifty";
1161 1199
 import DialysisPrintOrderFiftyOne from "./template/DialysisPrintOrderFiftyOne";
1162 1200
 import DialysisPrintOrderFiftyTwo from "./template/DialysisPrintOrderFiftyTwo";
1163 1201
 import DialysisPrintOrderFiftyThree from "./template/DialysisPrintOrderFiftyThree";
1164
-import DialysisPrintOrderFiftyFour from "./template/DialysisPrintOrderFiftyFour"
1202
+import DialysisPrintOrderFiftyFour from "./template/DialysisPrintOrderFiftyFour";
1203
+import DialysisPrintOrderFiftyfive from "./template/DialysisPrintOrderFiftyfive"
1204
+import DialysisPrintOrderFiftySix from "./template/DialysisPrintOrderFiftySix"
1165 1205
 export default {
1166 1206
   name: "dialysisPrintOrder",
1167 1207
   components: {
1208
+    DialysisPrintOrderFiftySix,
1209
+    DialysisPrintOrderFiftyfive,
1168 1210
     DialysisPrintOrderFiftyFour,
1169 1211
     DialysisPrintOrderFiftyThree,
1170 1212
     DialysisPrintOrderFiftyTwo,
@@ -1379,7 +1421,7 @@ export default {
1379 1421
         '@media print {.dialysis-print-order{width:960px;margin:0 auto}.dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px 20px 20px 20px}.dialysis-print-order .table-box{width:100%;line-height:23px;font-size:14px}.dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:14px}.dialysis-print-order .print-table-no{width:100%;text-align:center;border-collapse:collapse;font-size:14px}.dialysis-print-order .under-line{border-bottom:1px solid #999;width:95%;text-align:center;margin-left:2px}.dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 0px 0px;} .print-template-two tr {line-height: 30px;}   .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;}  .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;}';
1380 1422
       const style2 =
1381 1423
         // 防止分页错位问题:table设置border: none;.tr设置page-break-inside:avoid; // 防止table数据太多,tr分页错乱 td设置border: 1px solid #000;// 防止部分分页的tr边框线没有
1382
-        '@media print {.option_panel { margin: 0 5px 0 0; } .option_panel .check_box_panel { white-space: nowrap; outline: none; display: inline-block; line-height: 1; position: relative; vertical-align: middle; } .dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px}.option_panel .check_box_panel .check_box { display: inline-block; position: relative; border: 1px solid #000; box-sizing: border-box; width: 14px; height: 12px; background-color: #fff; } .print-table{border: none} .print-table tr{page-break-inside:avoid;} .print-table tr td{border: 1px solid #000;} .inside_table{border: none} .inside_table tr{page-break-inside:avoid;} .inside_table tr td{border: 1px solid #000;} .check_box_panel .did_checked::after { content: "√"; font-size: 15px; } .print_page_main_content {background-color: white;width: 960px;margin: 0 auto 50px;padding: 0 0 0 0; page-break-after: always;}.print_page_main_content .order-yy-name {margin: auto;text-align: center;font-size: 20px;letter-spacing: 5px;}.print_page_main_content .order_title {text-align: center;font-size: 23px; line-height: 50px;font-weight: 500;} .row {font-size: 14px;line-height: 20px;padding: 5px 0;}.inline_block { display: inline-block;}.under_line_two {display: inline-block;border-bottom: 1px solid #999;text-align: left;white-space: nowrap;width: 50%;}.under_line {display: inline-block;border-bottom: 1px solid #999;text-align: center;white-space: nowrap; width: 50%;}.flex {display: -webkit-box;display: -moz-box; display: -ms-flexbox; display: -webkit-flex;display: flex;align-items: center;-webkit-align-items: center;box-align: center;-moz-box-align: center;-webkit-box-align: center;text-align: center;-webkit-justify-content: space-between;justify-content: space-between;-moz-box-pack: space-between;-webkit--moz-box-pack: space-between;box-pack: space-between;}.print_page_main_content .proj_table {width: 100%;border: 1px solid;border-collapse: collapse;padding: 2px;}.print_page_main_content .proj_table tbody tr td {border: 1px solid;font-size: 16px;padding: 3px 8px;line-height: 30px;}.print_page_main_content .proj_table .inside_table {width: 100%;border: hidden; border-collapse: collapse;}.print_page_main_content .proj_table .inside_table tr td {border: 1px solid; text-align: center;font-size: 14px;padding: 6px 5px;line-height: 16px;}.print-table-no {width: 100%;text-align: center;border-collapse: collapse;font-size: 14px;}.es-img {height: 30px;}.advice-name {text-align: left !important;line-height: 16px !important;}.advice-children {display: flex;}}.margin-bottom-50{margin-bottom:50px;}.margin-bottom-300 {margin-bottom:450px;}.margin-bottom-600 {margin-bottom:600px;}.margin-bottom-900 {margin-bottom:900px;}.print-yema{ position: absolute;top: 920px;left: 50%;} .print-yema2{ position: absolute;top: 400px;left: 50%;}.print-yema3{position: absolute;top: 1230px;left: 50%;}.print-yema4{position: absolute;top: 1050px;left: 50%;}.check_box{width:15px !important;height:15px !important;}.did_checke::after {font-size: 8px;margin-left: 2px;margin-top: 12px !important;position: absolute;}.table-box1 {border: 1px solid #000;width: 100%;line-height: 30px;font-size: 14px;border-collapse: collapse;}.table-box1 tr {border-bottom: 1px solid #000;} .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:14px}';
1424
+        '@media print {.option_panel { margin: 0 5px 0 0; } .option_panel .check_box_panel { white-space: nowrap; outline: none; display: inline-block; line-height: 1; position: relative; vertical-align: middle; } .dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px}.option_panel .check_box_panel .check_box { display: inline-block; position: relative; border: 1px solid #000; box-sizing: border-box; width: 14px; height: 12px; background-color: #fff; } .print-table{border: none} .print-table tr{page-break-inside:avoid;} .print-table tr td{border: 1px solid #000;} .inside_table{border: none} .inside_table tr{page-break-inside:avoid;} .inside_table tr td{border: 1px solid #000;} .check_box_panel .did_checked::after { content: "√"; font-size: 15px; } .print_page_main_content {background-color: white;width: 960px;margin: 0 auto 50px;padding: 0 0 0 0; page-break-after: always;}.print_page_main_content .order-yy-name {margin: auto;text-align: center;font-size: 20px;letter-spacing: 5px;}.print_page_main_content .order_title {text-align: center;font-size: 23px; line-height: 50px;font-weight: 500;} .row {font-size: 14px;line-height: 20px;padding: 5px 0;}.inline_block { display: inline-block;}.under_line_two {display: inline-block;border-bottom: 1px solid #999;text-align: left;white-space: nowrap;width: 50%;}.under_line {display: inline-block;border-bottom: 1px solid #999;text-align: center;white-space: nowrap; width: 50%;}.flex {display: -webkit-box;display: -moz-box; display: -ms-flexbox; display: -webkit-flex;display: flex;align-items: center;-webkit-align-items: center;box-align: center;-moz-box-align: center;-webkit-box-align: center;text-align: center;-webkit-justify-content: space-between;justify-content: space-between;-moz-box-pack: space-between;-webkit--moz-box-pack: space-between;box-pack: space-between;}.print_page_main_content .proj_table {width: 100%;border: 1px solid;border-collapse: collapse;padding: 2px;}.print_page_main_content .proj_table tbody tr td {border: 1px solid;font-size: 16px;padding: 3px 8px;line-height: 30px;}.print_page_main_content .proj_table .inside_table {width: 100%;border: hidden; border-collapse: collapse;}.print_page_main_content .proj_table .inside_table tr td {border: 1px solid; text-align: center;font-size: 14px;padding: 6px 5px;line-height: 16px;}.print-table-no {width: 100%;text-align: center;border-collapse: collapse;font-size: 14px;}.es-img {height: 30px;}.advice-name {text-align: left !important;line-height: 16px !important;}.advice-children {display: flex;}}.margin-bottom-50{margin-bottom:50px;}.margin-bottom-300 {margin-bottom:450px;}.margin-bottom-600 {margin-bottom:600px;}.margin-bottom-900 {margin-bottom:900px;}.print-yema{ position: absolute;top: 920px;left: 50%;} .print-yema2{ position: absolute;top: 400px;left: 50%;}.print-yema3{position: absolute;top: 1230px;left: 50%;}.print-yema4{position: absolute;top: 1050px;left: 50%;}.check_box{width:15px !important;height:15px !important;}.did_checke::after {font-size: 8px;margin-left: 2px;margin-top: 12px !important;position: absolute;}.table-box1 {border: 1px solid #000;width: 100%;line-height: 30px;font-size: 14px;border-collapse: collapse;}.table-box1 tr {border-bottom: 1px solid #000;} .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:14px} ';
1383 1425
       const style3 =
1384 1426
         '@media print {.dialysis-print-order{width:960px;margin:0 auto}.dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px 20px 20px 20px}.dialysis-print-order .table-box{width:100%;line-height:23px;font-size:14px}.dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:16px;border-color: #000;}.dialysis-print-order .print-table-no{width:100%;text-align:center;border-collapse:collapse;font-size:14px}.dialysis-print-order .under-line{border-bottom:1px solid #000;width:95%;text-align:center;margin-left:2px}.dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 0px 0px;} .print-template-two tr {line-height: 30px;}   .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;}  .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;}.row {font-size: 16px;line-height: 20px;padding: 5px 0;}.inline_block { display: inline-block;}.under_line {display: inline-block;border-bottom: 1px solid #000;text-align: center;white-space: nowrap; width: 50%;}';
1385 1427
       // const style3 =
@@ -1402,8 +1444,8 @@ export default {
1402 1444
       // 三明曙光样式
1403 1445
       const style11 =
1404 1446
         '@media print {.dialysis-print-order{width:960px;margin:100px auto}.dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:30px;padding:10px 20px 20px 20px}.dialysis-print-order .table-box{width:100%;line-height:23px;font-size:14px}.dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:15px}.dialysis-print-order .print-table-no{width:100%;text-align:center;border-collapse:collapse;font-size:14px}.dialysis-print-order .under-line{border-bottom:1px solid #999;width:95%;text-align:center;margin-left:2px}.dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 0px 0px;} .print-template-two tr {line-height: 30px;}   .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;}  .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;}';
1405
-      // 漳浦天福样式
1406
-      const style12 ='@page {margin-top:5px;}@media print {.dialysis-print-order{width:960px;margin:0 auto} .dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px 20px 20px 20px}.dialysis-print-order .table-box{width:100%;line-height:40px;font-size:14px} .dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:40px;font-size:14px} .print-table tbody tr td{border-collapse:collapse;} .list_table{border-collapse:collapse;height:40px;display: flex;justify-content: flex-start;} .list_table div{text-align: left;flex: 1;}  .list_table_1{height:40px;line-height:40px;text-align:left;border-collapse:collapse;} .list_table_1 div{height:40px;line-height:40px;} .dialysis-print-order .print-table-2{ width: 100%;text-align: left;border-collapse: collapse;line-height: 38px;font-size: 14px;} .dialysis-print-order .print-table-2 tbody tr{height:43px; padding-bottom:-12px;} .print-table-2 tbody tr td{padding-bottom:-12px;} .td_div1{display:flex;white-space: normal;} .print-table-3{text-align: center;width: 300px;border-collapse: inherit;height: 129px !important;border: none;} .print-table-3 .tr_3{border-bottom: 1px solid;} .print-table-3 .td_3 {border-right: 1px solid;} .print-table-3 .td_3_1 {width:66px;border-right: 1px solid;} .print-table-3 .td_3_2 {width:72px;border-right: 1px solid;} .dialysis-print-order .print-table-no{width:100%;text-align:center;border-collapse:collapse;font-size:14px}.dialysis-print-order .under-line{border-bottom:1px solid #999;width:95%;text-align:center;margin-left:2px}.dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 0px 0px;line-height:35px} .print-template-two tr {line-height: 30px;}   .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;}  .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;}@page {margin-left:30px;margin-right:40px;}';
1447
+      // 雷州惠爱样式
1448
+      const style12 ='@page {margin-top:5px;}@media print {.dialysis-print-order{width:960px;margin:0 auto;margin-top:50px;} .dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px 20px 20px 20px}.dialysis-print-order .table-box{width:100%;line-height:40px;font-size:14px} .dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:40px;font-size:14px} .print-table tbody tr td{border-collapse:collapse;} .dialysis-print-order .print-table .short_tr th p{height:20px !important; line-height:20px !important;} .list_table{border-collapse:collapse;height:40px;display: flex;justify-content: flex-start;} .list_table div{text-align: left;flex: 1;}  .list_table_1{height:40px;line-height:40px;text-align:left;border-collapse:collapse;} .list_table_1 div{height:40px;line-height:40px;} .dialysis-print-order .td_div1{display:flex;white-space: normal;} .dialysis-print-order .print-table-no{width:100%;text-align:center;border-collapse:collapse;font-size:14px}.dialysis-print-order .under-line{border-bottom:1px solid #999;width:95%;text-align:center;margin-left:2px}.dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 0px 0px;line-height:35px} .print-table tr th p{height: 20px; line-height: 20px}  .print-template-two tr {line-height: 30px;}   .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;}  .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;}@page {margin-left:30px;margin-right:40px;} ';
1407 1449
       // 金乡宏大样式
1408 1450
       const style13 ='@page {margin-top:5px;}@media print {.dialysis-print-order{width:960px;margin:0 auto} .dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px 20px 20px 20px}.dialysis-print-order .table-box{width:100%;line-height:40px;font-size:14px} .dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:40px;font-size:14px} .print-table tbody tr td{border-collapse:collapse;} .list_table{border-collapse:collapse;height:40px;display: flex;justify-content: flex-start;} .list_table div{text-align: left;flex: 1;}  .list_table_1{height:40px;line-height:40px;text-align:left;border-collapse:collapse;} .list_table_1 div{height:40px;line-height:40px;} .dialysis-print-order .print-table-2{ width: 100%;text-align: left;border-collapse: collapse;line-height: 38px;font-size: 14px;} .dialysis-print-order .print-table-2 tbody tr{height:43px; padding-bottom:-12px;} .print-table-2 tbody tr td{padding-bottom:-12px;} .td_div1{display:flex;white-space: normal;} .print-table-3{text-align: center;width: 390px;border-collapse: inherit;height: 129px !important;border: none;} .print-table-3 .tr_3{border-bottom: 1px solid;} .print-table-3 .td_3 {border-right: 1px solid;} .print-table-3 .td_3_1 {width:66px;border-right: 1px solid;} .print-table-3 .td_3_2 {width:72px;border-right: 1px solid;} .print-table-4{text-align: center;width: 300px;border-collapse: inherit;height: 129px !important;border: none;} .print-table-4 .tr_3{border-bottom: 1px solid;}  .print-table-4 .td_3 {border-right: 1px solid;} .print-table-4 .td_3_1 {width:66px;border-right: 1px solid;} .print-table-4 .td_3_2 {width:72px;border-right: 1px solid;} .print-table-5{width:100%;text-align:center;border-collapse:collapse;line-height:40px;font-size:14px} .dialysis-print-order .print-table-5 tr td_5{width:75px;} .dialysis-print-order .print-table-no{width:100%;text-align:center;border-collapse:collapse;font-size:14px}.dialysis-print-order .under-line{border-bottom:1px solid #999;width:95%;text-align:center;margin-left:2px}.dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 0px 0px;line-height:35px} .print-template-two tr {line-height: 30px;}   .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;}  .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;}@page {margin-left:30px;margin-right:40px;}';
1409 1451
 
@@ -1762,6 +1804,24 @@ export default {
1762 1804
           style: style13,
1763 1805
           scanStyles: false,
1764 1806
         });
1807
+      }else if (
1808
+        this.org_template_info.template_id == 55
1809
+      ) {
1810
+        printJS({
1811
+          printable: "dialysis-print-box-1",
1812
+          type: "html",
1813
+          style: style2,
1814
+          scanStyles: false,
1815
+        });
1816
+      }else if (
1817
+        this.org_template_info.template_id == 56
1818
+      ) {
1819
+        printJS({
1820
+          printable: "dialysis-print-box-1",
1821
+          type: "html",
1822
+          style: style2,
1823
+          scanStyles: false,
1824
+        });
1765 1825
       }
1766 1826
     },
1767 1827
     printThisOnePage() {

File diff suppressed because it is too large
+ 3791 - 0
src/xt_pages/dialysis/template/DialysisPrintOrderFiftySix.vue


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

@@ -324,14 +324,14 @@
324 324
               医师签名:
325 325
               <span
326 326
                 style="height: 20px"
327
-                v-if="setAdminUserES(prescription.creater) == ''"
327
+                v-if="setAdminUserES(prescription.modifier) == ''"
328 328
               >
329
-                {{ getAdminUser(prescription.creater) }}
329
+                {{ getAdminUser(prescription.modifier) }}
330 330
               </span>
331 331
               <img
332 332
                 class="es-img"
333 333
                 style="height: 25px"
334
-                :src="setAdminUserES(prescription.creater)"
334
+                :src="setAdminUserES(prescription.modifier)"
335 335
                 alt
336 336
                 srcset
337 337
                 v-else

File diff suppressed because it is too large
+ 3598 - 0
src/xt_pages/dialysis/template/DialysisPrintOrderFiftyfive.vue


+ 1 - 6
src/xt_pages/hospitalStation/invoiceTemplate/printTwo.vue View File

@@ -186,12 +186,7 @@
186 186
           </span>
187 187
           <span style="position: absolute; top: 235px; left: 250px">
188 188
             <span v-if="zhongwen.indexOf('仟') > -1">
189
-              {{
190
-                zhongwen.substring(
191
-                  zhongwen.indexOf("仟") - 1,
192
-                  zhongwen.indexOf("仟")
193
-                )
194
-              }}
189
+              {{zhongwen.substring(zhongwen.indexOf("仟") - 1,zhongwen.indexOf("仟"))}}
195 190
             </span>
196 191
             <span v-else>零</span>
197 192
           </span>

+ 1 - 1
src/xt_pages/outpatientCharges/statementPrint.vue View File

@@ -420,7 +420,7 @@ export default {
420 420
               this.balanceAccounts.order_info.map((item) => {
421 421
                 if (item.advice_id > 0) {
422 422
                   obj.details.push(item);
423
-                  obj.total += item.pric * item.advice.prescribing_number;
423
+                  obj.total += item.pric.toFixed(2) * item.advice.prescribing_number
424 424
                   num++;
425 425
                 } else {
426 426
                   if (item.project.type == 2) {

+ 1 - 1
src/xt_pages/outpatientCharges/summary.vue View File

@@ -1234,7 +1234,7 @@ export default {
1234 1234
         number: obj.mdtrt_id,
1235 1235
         name: obj.patient.name,
1236 1236
         age: obj.age,
1237
-        gend: obj.gend,
1237
+        gend: obj.patient.gender,
1238 1238
         setl_time: obj.setl_time,
1239 1239
         chargeName: this.getName(obj.creator),
1240 1240
       };