Browse Source

Merge branch '20220812' of http://git.shengws.com/csx/Vue_New into 20220812

csx 2 years ago
parent
commit
9a19b2af72
51 changed files with 5713 additions and 1734 deletions
  1. 107 0
      src/api/batch/batch.js
  2. 2 2
      src/api/data.js
  3. 16 0
      src/api/pharmacy.js
  4. 16 0
      src/router/modules/hisTool.js
  5. 9 7
      src/store/modules/xt_user.js
  6. 329 6
      src/xt_pages/Pharmacy/DrugDispensing.vue
  7. 122 3
      src/xt_pages/Pharmacy/PatientDispensing.vue
  8. 2 2
      src/xt_pages/data/components/dialysisAfter.vue
  9. 2 2
      src/xt_pages/data/components/dialysisBefore.vue
  10. 4 2
      src/xt_pages/data/components/dialysisComputer.vue
  11. 2 2
      src/xt_pages/data/components/dialysisMonitor.vue
  12. 142 5
      src/xt_pages/data/components/dialysisOff.vue
  13. 2 2
      src/xt_pages/data/components/dialysisPrescription.vue
  14. 2 2
      src/xt_pages/data/components/dialysisSummary.vue
  15. 2 2
      src/xt_pages/data/components/doubleCheck.vue
  16. 2 2
      src/xt_pages/data/components/receiveTreatmentAsses.vue
  17. 3 2
      src/xt_pages/data/showConfig.vue
  18. 13 13
      src/xt_pages/device/components/partition_dialog.vue
  19. 4 0
      src/xt_pages/dialysis/details/assessmentAfter.vue
  20. 9 2
      src/xt_pages/dialysis/details/assessmentBefore.vue
  21. 9 0
      src/xt_pages/dialysis/details/dialog/AssessmentAfterDislysis.vue
  22. 9 0
      src/xt_pages/dialysis/details/dialog/assessmentBeforeDislysisDialog.vue
  23. 12 11
      src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue
  24. 105 56
      src/xt_pages/dialysis/details/dialog/finish_dialog.vue
  25. 14 7
      src/xt_pages/dialysis/details/dialog/monitor_dialog.vue
  26. 2 2
      src/xt_pages/dialysis/details/dialysisMonitoring.vue
  27. 1 0
      src/xt_pages/dialysis/dialysisPrintOrder.vue
  28. 3 3
      src/xt_pages/dialysis/schedualPatient.vue
  29. 23 15
      src/xt_pages/dialysis/template/DialysisPrintOrderFiftyFour.vue
  30. 1 1
      src/xt_pages/dialysis/template/DialysisPrintOrderFiftyOne.vue
  31. 42 51
      src/xt_pages/dialysis/template/DialysisPrintOrderFiftyThree.vue
  32. 4 4
      src/xt_pages/dialysis/template/DialysisPrintOrderFortyOne.vue
  33. 2 8
      src/xt_pages/dialysis/template/DialysisPrintOrderFortySeven.vue
  34. 1 1
      src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue
  35. 1 0
      src/xt_pages/hospitalStation/chargeDetailManagement.vue
  36. 6 2
      src/xt_pages/hospitalStation/components/deskPrescription.vue
  37. 4 4
      src/xt_pages/hospitalStation/components/prescriptionTable.vue
  38. 19 14
      src/xt_pages/management/components/RepairForm.vue
  39. 828 0
      src/xt_pages/outpatientDoctorStation/batch_delete.vue
  40. 1240 260
      src/xt_pages/outpatientDoctorStation/batch_mode_template.vue
  41. 1337 0
      src/xt_pages/outpatientDoctorStation/batch_replacement.vue
  42. 10 5
      src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue
  43. 22 13
      src/xt_pages/outpatientDoctorStation/components/prescriptionTemplateTable.vue
  44. 7 7
      src/xt_pages/outpatientDoctorStation/modeTemplate.vue
  45. 3 2
      src/xt_pages/outpatientDoctorStation/modeTemplateDetail.vue
  46. 579 493
      src/xt_pages/outpatientDoctorStation/prescriptionTemplate.vue
  47. 3 1
      src/xt_pages/outpatientDoctorStation/prescriptionTemplatedetail.vue
  48. 6 6
      src/xt_pages/sign/components/beforeDialysisCalling.vue
  49. 4 0
      src/xt_pages/stock/drugs/drugStockInOrder.vue
  50. 29 22
      src/xt_pages/user/dialysisSolution.vue
  51. 597 690
      src/xt_pages/workforce/components/template_table.vue

+ 107 - 0
src/api/batch/batch.js View File

@@ -0,0 +1,107 @@
1
+import request from '@/utils/request'
2
+
3
+export function prescriptiontemplate(params,data) {
4
+  return request({
5
+    url: '/api/his/addstemplate',
6
+    method: 'post',
7
+    data:data,
8
+    params:params,
9
+  })
10
+}
11
+export function replacesavedrug(params,data) {
12
+  return request({
13
+    url: '/api/his/replacesavedrug',
14
+    method: 'post',
15
+    data:data,
16
+    params:params,
17
+  })
18
+}
19
+export function replacesaveproject(params,data) {
20
+  return request({
21
+    url: '/api/his/replacesaveproject',
22
+    method: 'post',
23
+    data:data,
24
+    params:params,
25
+  })
26
+}
27
+
28
+export function getdialysismodename(query) {
29
+  return request({
30
+    url: '/api/his/getdialysismodename',
31
+    method: 'get',
32
+    params: query
33
+  })
34
+}
35
+
36
+export function getdrugsname(query) {
37
+  return request({
38
+    url: '/api/his/getdrugsname',
39
+    method: 'get',
40
+    params: query
41
+  })
42
+}
43
+
44
+export function getmodeconfigs(query) {
45
+  return request({
46
+    url: '/api/his/getmodeconfigs',
47
+    method: 'get',
48
+    params: query
49
+  })
50
+}
51
+
52
+//根据id获取药品耗材项目基本信息
53
+export function getdrugsinformation(query) {
54
+  return request({
55
+    url: '/api/his/getdrugsinformation',
56
+    method: 'get',
57
+    params: query
58
+  })
59
+}
60
+//替换——获取患者名字
61
+export function replacepeoplename(query) {
62
+  return request({
63
+    url: '/api/his/replacepeoplename',
64
+    method: 'get',
65
+    params: query
66
+  })
67
+}
68
+//替换——配置
69
+export function replaceconfig(query) {
70
+  return request({
71
+    url: '/api/his/replaceconfig',
72
+    method: 'get',
73
+    params: query
74
+  })
75
+}
76
+//批量删除——药品
77
+export function deletedrugsbatch(query) {
78
+  return request({
79
+    url: '/api/his/deletedrugsbatch',
80
+    method: 'get',
81
+    params: query
82
+  })
83
+}
84
+//批量删除——项目
85
+export function batchdeleteitems(query) {
86
+  return request({
87
+    url: '/api/his/batchdeleteitems',
88
+    method: 'get',
89
+    params: query
90
+  })
91
+}
92
+//根据患者id、透析模式获取处方模板信息
93
+export function ptemplateinformation(query) {
94
+  return request({
95
+    url: '/api/his/ptemplateinformation',
96
+    method: 'get',
97
+    params: query
98
+  })
99
+}
100
+//删除一条记录
101
+export function deleteone(query) {
102
+  return request({
103
+    url: '/api/his/deleteone',
104
+    method: 'get',
105
+    params: query
106
+  })
107
+}

+ 2 - 2
src/api/data.js View File

@@ -43,9 +43,9 @@ export function updateTemplate(params) {
43 43
   })
44 44
 }
45 45
 
46
-export function updateFieldIsShow(id, is_show) {
46
+export function updateFieldIsShow(id, is_show, is_write) {
47 47
   return request({
48
-    url: '/api/filed/show?id=' + id + '&is_show=' + is_show,
48
+    url: '/api/filed/show?id=' + id + '&is_show=' + is_show + '&is_write=' + is_write,
49 49
     method: 'post'
50 50
   })
51 51
 }

+ 16 - 0
src/api/pharmacy.js View File

@@ -104,3 +104,19 @@ export function getcurrentname(params) {
104 104
     params: params
105 105
   })
106 106
 }
107
+//获取分区列表
108
+export function getpartitionlist(params) {
109
+  return request({
110
+    url: '/api/pharmacy/getpartitionlist',
111
+    method: 'get',
112
+    params: params
113
+  })
114
+}
115
+//获取给药途径
116
+export function routeofadministration(params) {
117
+  return request({
118
+    url: '/api/pharmacy/routeofadministration',
119
+    method: 'get',
120
+    params: params
121
+  })
122
+}

+ 16 - 0
src/router/modules/hisTool.js View File

@@ -26,6 +26,22 @@ export default {
26 26
       hidden: true,
27 27
       is_menu: false
28 28
     },
29
+    {
30
+      path: '/hisTool/batchDelete',
31
+      component: () => import('@/xt_pages/outpatientDoctorStation/batch_delete'),
32
+      name: 'batchDelete',
33
+      meta: { title: 'batchDelete', noCache: true },
34
+      hidden: true,
35
+      is_menu: false
36
+    },
37
+    {
38
+      path: '/hisTool/batchReplacement',
39
+      component: () => import('@/xt_pages/outpatientDoctorStation/batch_replacement'),
40
+      name: 'batchReplacement',
41
+      meta: { title: 'batchReplacement', noCache: true },
42
+      hidden: true,
43
+      is_menu: false
44
+    },
29 45
     {
30 46
       path: '/hisTool/modeTemplateDetail',
31 47
       component: () => import('@/xt_pages/outpatientDoctorStation/modeTemplateDetail'),

+ 9 - 7
src/store/modules/xt_user.js View File

@@ -11,7 +11,7 @@ const xt_user = {
11 11
     zone_selected: 0,
12 12
     patient_state_selected: 0,
13 13
     treat_state_selected: 0,
14
-    selected_date:new Date(),
14
+    selected_date: new Date(),
15 15
     app_id: 0,
16 16
     user: {
17 17
       id: 0,
@@ -55,17 +55,17 @@ const xt_user = {
55 55
     urlfors: [],
56 56
     fileds: [],
57 57
 
58
-    //监测的搜索状态
58
+    // 监测的搜索状态
59 59
     search_mode: 1,
60
-    //监测的搜索值
61
-    search_value:''
60
+    // 监测的搜索值
61
+    search_value: ''
62 62
   },
63 63
 
64 64
   mutations: {
65
-    SET_SEARCH_VALUE:(state, search_value) => {
65
+    SET_SEARCH_VALUE: (state, search_value) => {
66 66
       state.search_value = search_value
67 67
     },
68
-    SET_SEARCH_MODE:(state, search_mode) => {
68
+    SET_SEARCH_MODE: (state, search_mode) => {
69 69
       state.search_mode = search_mode
70 70
     },
71 71
     SET_SCHEDULE_TYPE_SELECTED: (state, schedule_type_selected) => {
@@ -380,7 +380,8 @@ const xt_user = {
380 380
     }) {
381 381
       commit('CLEAR_USER_INFO')
382 382
       removeAdminUserInfoCache()
383
-    }, updateFiledConfigList({ commit }, object) {
383
+    },
384
+    updateFiledConfigList({ commit }, object) {
384 385
       var oldFiledList = getFiledConfigList()
385 386
       console.log('oldFiledList', oldFiledList)
386 387
       var infoJSON = JSON.parse(oldFiledList)
@@ -389,6 +390,7 @@ const xt_user = {
389 390
         for (let i = 0; i < infoJSON.length; i++) {
390 391
           if (infoJSON[i].id == object.id) {
391 392
             infoJSON[i].is_show = object.is_show
393
+            infoJSON[i].is_write = object.is_write
392 394
           }
393 395
         }
394 396
 

+ 329 - 6
src/xt_pages/Pharmacy/DrugDispensing.vue View File

@@ -49,7 +49,7 @@
49 49
 
50 50
           <el-table
51 51
             v-if="state == 1"
52
-            :height="tableHeight"
52
+            height="60vh"
53 53
             :data="waiting_drug"
54 54
             border
55 55
             style="width: 100%"
@@ -114,19 +114,49 @@
114 114
       </div>
115 115
       <div class="mainRight">
116 116
         <div class="titlelist">
117
+          班次:
118
+          <el-select v-model="shift" placeholder="请选择" @change="getdrugsdetails02">
119
+            <el-option
120
+              v-for="item in banshift"
121
+              :key="item.value"
122
+              :label="item.text"
123
+              :value="item.value">
124
+            </el-option>
125
+          </el-select>
126
+          分区:
127
+          <el-select v-model="partition" placeholder="请选择" @change="getdrugsdetails">
128
+            <el-option
129
+              v-for="item in fen"
130
+              :key="item.id"
131
+              :label="item.name"
132
+              :value="item.id">
133
+            </el-option>
134
+          </el-select>
135
+          给药途径:
136
+          <el-select v-model="deliveryway" placeholder="请选择" @change="getdruglist02">
137
+            <el-option
138
+              v-for="item in routeofadministration"
139
+              :key="item.name"
140
+              :label="item.name"
141
+              :value="item.name">
142
+            </el-option>
143
+          </el-select>
144
+          <el-button type="primary" @click="toExport" v-if="state == 2">导出</el-button>
117 145
           <!--          <el-button type="primary" @click="tt">调试</el-button>-->
118 146
           <el-button type="primary" @click="dispense" v-if="state == 1"
119 147
             >发药</el-button
120 148
           >
121 149
           <el-button type="primary" @click="toPrint">打印</el-button>
122
-          <!--          <el-button @click="tt">调试</el-button>-->
123
-          <!--          <el-button type="primary" @click="toSetting">设置</el-button>-->
150
+<!--                    <el-button @click="tt">调试</el-button>-->
151
+
124 152
         </div>
125 153
         <el-divider></el-divider>
126 154
         <div>
127 155
           <el-table
128 156
             :height="tableHeight"
129 157
             :data="tableData"
158
+            :summary-method="getSummaries"
159
+            show-summary
130 160
             border
131 161
             highlight-current-row
132 162
             style="width: 1328px"
@@ -317,6 +347,8 @@
317 347
             </el-table-column>
318 348
           </el-table>
319 349
         </div>
350
+        <div style="background-color: #f5f7fa;display:flex;padding: 10px;justify-content:space-around;position:absolute;width:75.6%;margin-top: 27.5%;
351
+"><div style="width: 40%;padding-left:3%">合计 </div> <div style="width: 40%;display: flex;justify-content:center;padding-left: 37%">{{total}}</div></div>
320 352
         <div style="margin-top: 25px" v-if="state == 1">
321 353
           领药人:
322 354
           <el-select v-model="admin_user_id" placeholder="请选择">
@@ -382,6 +414,8 @@ import {
382 414
   getpatientswithdrugs,
383 415
   medicinedeparture,
384 416
   getcurrentname,
417
+  getpartitionlist,
418
+  routeofadministration,
385 419
 } from "@/api/pharmacy";
386 420
 const moment = require("moment");
387 421
 export default {
@@ -417,13 +451,26 @@ export default {
417 451
       issued_drug: [], //已发药列表
418 452
       currentRow: null,
419 453
       tmp: 0,
454
+      banshift:[
455
+        {value:0,text:'全部班'},
456
+        {value:1,text:'上午'},
457
+        {value:2,text: '下午'},
458
+        {value:3,text: '晚上'}
459
+      ],
460
+      shift:0,//班次
461
+      fen:[],
462
+      partition:0,//分区
463
+      routeofadministration:[],
464
+      deliveryway:"全部",//给药途径
465
+      total:"",//合计
420 466
     };
421 467
   },
422 468
 
423 469
   methods: {
424 470
     tt() {
425
-      console.log("this.currentRow", this.currentRow);
426
-      this.$router.go(0);
471
+      console.log("this.state", this.state);
472
+      console.log("this.tableData", this.tableData);
473
+      console.log("this.deliveryway", this.deliveryway);
427 474
     },
428 475
     async fun3() {
429 476
       console.log("fun3");
@@ -455,6 +502,34 @@ export default {
455 502
         }
456 503
       });
457 504
     },
505
+    getSummaries(param) {
506
+      const { columns, data } = param;
507
+      const sums = [];
508
+      columns.forEach((column, index) => {
509
+        if (index === 0) {
510
+          sums[index] = "合计";
511
+          return;
512
+        }
513
+        console.log(data, "合计data1");
514
+        const values = data.map((item) => Number(item[column.property]));
515
+
516
+        if (!values.every((value) => isNaN(value))) {
517
+          sums[index] = values.reduce((prev, curr) => {
518
+            const value = Number(curr);
519
+            if (!isNaN(value)) {
520
+              return prev + curr;
521
+            } else {
522
+              return prev;
523
+            }
524
+          }, 0);
525
+          sums[index] += " 元";
526
+        } else {
527
+          sums[index] = "N/A";
528
+        }
529
+      });
530
+
531
+      return sums;
532
+    },
458 533
     changeTimes() {
459 534
       // alert("aa")
460 535
       // this.getdruglist();
@@ -495,6 +570,174 @@ export default {
495 570
         this.start_time
496 571
       );
497 572
     },
573
+    toExport() {
574
+      if (this.state == 1 && this.multipleSelection.length == 0) {
575
+        this.$message.error("未选择任何数据");
576
+        return;
577
+      }
578
+      if (this.state == 2 && this.tableData == null) {
579
+        this.$message.error("未选择任何数据");
580
+        return;
581
+      }
582
+      // for (let i = 0; i < this.tableData.length; i++) {
583
+      //   this.tableData[i].index = i + 1;
584
+      //   this.tableData[i].name = this.tableData[i].dose + this.tableData[i].dose_unit + "*" + this.tableData[i].min_number + this.tableData[i].min_unit +
585
+      //     "/" +
586
+      //     this.tableData[i].max_unit;
587
+      //
588
+      //   this.tableData[i].total_price = (
589
+      //     this.tableData[i].warehousing_count * this.exportList[i].price
590
+      //   ).toFixed(2);
591
+      //   for (let j = 0; j < this.manufacturerList.length; j++) {
592
+      //     if (this.exportList[i].manufacturer == this.manufacturerList[j].id) {
593
+      //       this.exportList[i].manufacturer =
594
+      //         this.manufacturerList[j].manufacturer_name;
595
+      //     }
596
+      //     if (this.exportList[i].manufacturer == 0) {
597
+      //       this.exportList[i].manufacturer = "";
598
+      //     }
599
+      //   }
600
+      //
601
+      //   for (let z = 0; z < this.dealerList.length; z++) {
602
+      //     if (this.exportList[i].dealer == this.dealerList[z].id) {
603
+      //       this.exportList[i].dealer = this.dealerList[z].dealer_name;
604
+      //     }
605
+      //     if (this.exportList[i].dealer == 0) {
606
+      //       this.exportList[i].dealer = "";
607
+      //     }
608
+      //   }
609
+      // }
610
+
611
+      if(this.state == 1){
612
+        import("@/vendor/Export2Excel").then((excel) => {
613
+          for (let i = 0; i < this.multipleSelection.length; i++) {
614
+            this.multipleSelection[i].index = i + 1;
615
+            this.multipleSelection[i].time = this.start_time
616
+            this.multipleSelection[i].yname = this.currentRow.name
617
+          }
618
+
619
+          const tHeader = [
620
+            "序号",
621
+            "时间",
622
+            "患者名称",
623
+            "药品名称",
624
+            "单次用量",
625
+            "用法",
626
+            "频率",
627
+            "天数",
628
+            "总量",
629
+            "数据来源",
630
+          ];
631
+          const filterVal = [
632
+            "index",
633
+            "time",
634
+            "name",
635
+            "yname",
636
+            "single_dosage",
637
+            "usage",
638
+            "frequency",
639
+            "days",
640
+            "total",
641
+            "data_sources",
642
+          ];
643
+
644
+          const data = this.formatJson(filterVal, this.multipleSelection);
645
+          excel.export_json_to_excel({
646
+            header: tHeader,
647
+            data,
648
+            filename: "发药单详情",
649
+          });
650
+          this.downloadLoading = false;
651
+        });
652
+      }else if(this.state == 2){
653
+        import("@/vendor/Export2Excel").then((excel) => {
654
+          for (let i = 0; i < this.tableData.length; i++) {
655
+            this.tableData[i].index = i + 1;
656
+            this.tableData[i].time = this.start_time
657
+            this.tableData[i].yname = this.currentRow.name
658
+          }
659
+
660
+          const tHeader = [
661
+            "序号",
662
+            "日期",
663
+            "患者名称",
664
+            "药品名称",
665
+            "单次用量",
666
+            "用法",
667
+            "频率",
668
+            "天数",
669
+            "总量",
670
+            "数据来源",
671
+            "领药人",
672
+          ];
673
+          const filterVal = [
674
+            "index",
675
+            "time",
676
+            "name",
677
+            "yname",
678
+            "single_dosage",
679
+            "usage",
680
+            "frequency",
681
+            "days",
682
+            "total",
683
+            "data_sources",
684
+            "people",
685
+          ];
686
+
687
+          const data = this.formatJson(filterVal, this.tableData);
688
+          excel.export_json_to_excel({
689
+            header: tHeader,
690
+            data,
691
+            filename: "发药单详情",
692
+          });
693
+          this.downloadLoading = false;
694
+        });
695
+      }else{
696
+        this.$message.error("药品状态异常");
697
+        return;
698
+      }
699
+      // import("@/vendor/Export2Excel").then((excel) => {
700
+      //   // for (let i = 0; i < this.tableData.length; i++) {
701
+      //   //   for (let j = 0; j < this.drugTypeList.length; j++) {
702
+      //   //     if (this.exportList[i].drug_type == this.drugTypeList[j].id) {
703
+      //   //       this.exportList[i].drug_type = this.drugTypeList[j].name;
704
+      //   //     }
705
+      //   //   }
706
+      //   // }
707
+      //
708
+      //   const tHeader = [
709
+      //     "序号",
710
+      //     "患者名称",
711
+      //     "单次用量",
712
+      //     "用法",
713
+      //     "频率",
714
+      //     "天数",
715
+      //     "总量",
716
+      //     "数据来源",
717
+      //   ];
718
+      //   const filterVal = [
719
+      //     "index",
720
+      //     "drug_name",
721
+      //     "drug_type",
722
+      //     "unit",
723
+      //     "batch_number",
724
+      //     "warehousing_count",
725
+      //     "price",
726
+      //     "total_price",
727
+      //   ];
728
+      //
729
+      //   const data = this.tableData;
730
+      //   excel.export_json_to_excel({
731
+      //     header: tHeader,
732
+      //     data,
733
+      //     filename: "药品入库单详情",
734
+      //   });
735
+      //   this.downloadLoading = false;
736
+      // });
737
+    },
738
+    formatJson(filterVal, jsonData) {
739
+      return jsonData.map((v) => filterVal.map((j) => v[j]));
740
+    },
498 741
     //列表选择
499 742
     handleSelectionChange(val) {
500 743
       this.multipleSelection = val;
@@ -564,10 +807,38 @@ export default {
564 807
       });
565 808
     },
566 809
     //获取药品列表
810
+    getdruglist02() {
811
+      // var tps = this.currentRow.id;
812
+      this.tableData = [];
813
+      var params = {
814
+        keyword: this.keywords,
815
+        time: this.start_time,
816
+        deliveryway: this.deliveryway,
817
+      };
818
+      waitingmedicine(params).then((res) => {
819
+        if (res.data.state == 1) {
820
+          this.waiting_drug = res.data.data.list;
821
+        }
822
+      });
823
+      dispensemedicine(params).then((res) => {
824
+        if (res.data.state == 1) {
825
+          this.issued_drug = res.data.data.list;
826
+        }
827
+      });
828
+      if(this.state == 2){
829
+        this.handleCurrentChange(this.currentRow);
830
+        // this.fun5(tps);
831
+      }else{
832
+        this.handleCurrentChange(this.currentRow);
833
+        // this.fun4(tps);
834
+      }
835
+    },
836
+    //获取药品列表
567 837
     getdruglist() {
568 838
       var params = {
569 839
         keyword: this.keywords,
570 840
         time: this.start_time,
841
+        deliveryway: this.deliveryway,
571 842
       };
572 843
       waitingmedicine(params).then((res) => {
573 844
         if (res.data.state == 1) {
@@ -584,6 +855,7 @@ export default {
584 855
       var params = {
585 856
         keyword: this.keywords,
586 857
         time: this.start_time,
858
+        deliveryway: this.deliveryway,
587 859
       };
588 860
       await waitingmedicine(params).then((res) => {
589 861
         if (res.data.state == 1) {
@@ -633,6 +905,8 @@ export default {
633 905
     },
634 906
     handleCurrentChange(val) {
635 907
       this.currentRow = val;
908
+      console.log("currentRow",this.currentRow)
909
+      this.total = ""
636 910
       if (this.state == 1) {
637 911
         this.getdrugsdetails(0);
638 912
       }
@@ -640,15 +914,47 @@ export default {
640 914
         this.getdrugsdetails(1);
641 915
       }
642 916
     },
917
+    getdrugsdetails02(val) {
918
+      if(this.state == 1){
919
+        val = 0
920
+      }else{
921
+        val = 1
922
+      }
923
+      var params = {
924
+        drug_id: this.currentRow.id,
925
+        is_medicine: val,
926
+        time: this.start_time,
927
+        shift: this.shift,
928
+        partition: this.partition,
929
+        deliveryway: this.deliveryway,
930
+      };
931
+      getpatientswithdrugs(params).then((res) => {
932
+        if (res.data.state == 1) {
933
+          this.tableData = res.data.data.list; //列表数据
934
+          this.total = res.data.data.total;//合计
935
+        } else {
936
+          this.$message.error(res.data.msg);
937
+        }
938
+      });
939
+    },
643 940
     getdrugsdetails(val) {
941
+      if(this.state == 1){
942
+        val = 0
943
+      }else{
944
+        val = 1
945
+      }
644 946
       var params = {
645 947
         drug_id: this.currentRow.id,
646 948
         is_medicine: val,
647 949
         time: this.start_time,
950
+        shift: this.shift,
951
+        partition: this.partition,
952
+        deliveryway: this.deliveryway,
648 953
       };
649 954
       getpatientswithdrugs(params).then((res) => {
650 955
         if (res.data.state == 1) {
651 956
           this.tableData = res.data.data.list; //列表数据
957
+          this.total = res.data.data.total;//合计
652 958
         } else {
653 959
           this.$message.error(res.data.msg);
654 960
         }
@@ -676,6 +982,20 @@ export default {
676 982
         }
677 983
       });
678 984
     },
985
+    getrouteofadministration(){
986
+      var params = {}
987
+      routeofadministration(params).then((res) =>{
988
+        if(res.data.state == 1){
989
+          this.routeofadministration = res.data.data.list;
990
+        }
991
+      })
992
+    },
993
+    getgetpartitionlist(){
994
+      var params = {}
995
+      getpartitionlist(params).then((res) =>{
996
+        this.fen = res.data.data.list;
997
+      })
998
+    },
679 999
     getUserlist(drug_id) {
680 1000
       var params = {
681 1001
         start_time: this.start_time,
@@ -706,6 +1026,8 @@ export default {
706 1026
     this.getlist();
707 1027
     // this.getdruglist();
708 1028
     this.fun3();
1029
+    this.getrouteofadministration();
1030
+    this.getgetpartitionlist();
709 1031
   },
710 1032
 };
711 1033
 </script>
@@ -759,7 +1081,8 @@ export default {
759 1081
 }
760 1082
 
761 1083
 /deep/ .el-table--scrollable-x .el-table__body-wrapper {
762
-  overflow: auto;
1084
+  overflow-y: auto;
1085
+  overflow-x: hidden;
763 1086
 }
764 1087
 /deep/ .gutter {
765 1088
   width: 15px !important;

+ 122 - 3
src/xt_pages/Pharmacy/PatientDispensing.vue View File

@@ -53,7 +53,7 @@
53 53
           </div>
54 54
 
55 55
           <el-table
56
-            :height="tableHeight"
56
+            height="60vh"
57 57
             ref="table01"
58 58
             :data="waitmount_data"
59 59
             highlight-current-row
@@ -112,6 +112,25 @@
112 112
       </div>
113 113
       <div class="mainRight">
114 114
         <div class="titlelist">
115
+          班次:
116
+          <el-select v-model="shift" placeholder="请选择" @change="searchAction">
117
+            <el-option
118
+              v-for="item in banshift"
119
+              :key="item.value"
120
+              :label="item.text"
121
+              :value="item.value">
122
+            </el-option>
123
+          </el-select>
124
+          分区:
125
+          <el-select v-model="partition" placeholder="请选择" @change="searchAction">
126
+            <el-option
127
+              v-for="item in fen"
128
+              :key="item.id"
129
+              :label="item.name"
130
+              :value="item.id">
131
+            </el-option>
132
+          </el-select>
133
+          <el-button type="primary" @click="toExport" v-if="state == 2">导出</el-button>
115 134
           <el-button type="primary" @click="dispense" v-if="state == 1"
116 135
             >发药</el-button
117 136
           >
@@ -119,7 +138,7 @@
119 138
             >退药</el-button
120 139
           >
121 140
           <el-button type="primary" @click="toPrint">打印</el-button>
122
-          <!--          <el-button @click="tiaoshi">调试</el-button>-->
141
+<!--                    <el-button @click="tiaoshi">调试</el-button>-->
123 142
           <el-button type="primary" v-if="state == 1" @click="toSetting"
124 143
             >设置</el-button
125 144
           >
@@ -243,6 +262,7 @@ import {
243 262
   getpharmacycontent,
244 263
   dispensingmedicine,
245 264
   drugwithdrawal,
265
+  getpartitionlist,
246 266
 } from "@/api/pharmacy";
247 267
 const moment = require("moment");
248 268
 export default {
@@ -272,6 +292,15 @@ export default {
272 292
       currentRow: null,
273 293
       dialogVisible: false,
274 294
       is_open: "2",
295
+      banshift:[
296
+        {value:0,text:'全部班'},
297
+        {value:1,text:'上午'},
298
+        {value:2,text: '下午'},
299
+        {value:3,text: '晚上'}
300
+        ],
301
+      shift:0,//班次
302
+      fen:[],
303
+      partition:0,//分区
275 304
     };
276 305
   },
277 306
   watch: {},
@@ -279,12 +308,26 @@ export default {
279 308
     this.init();
280 309
     this.gettodaynumber();
281 310
     this.fun3();
311
+    this.getgetpartitionlist();
282 312
     // this.getwaitmount();//fun3
283 313
     // this.selectedbydefault();
284 314
   },
285 315
   methods: {
316
+    getgetpartitionlist(){
317
+      var params = {}
318
+      getpartitionlist(params).then((res) =>{
319
+        if(res.data.state == 1){
320
+          this.fen = res.data.data.list
321
+        }
322
+      })
323
+    },
286 324
     tiaoshi() {
287
-      console.log("this.tableData", this.tableData);
325
+      console.log("this.shift", this.shift);
326
+      console.log("this.partition", this.partition);
327
+      console.log("this.waitmount_data", this.waitmount_data);
328
+      console.log("this.alreadmount_data", this.alreadmount_data);
329
+      console.log("this.waitmount", this.waitmount);
330
+      console.log("this.alreadmount", this.alreadmount);
288 331
     },
289 332
     async fun3() {
290 333
       console.log("fun3");
@@ -344,6 +387,8 @@ export default {
344 387
       this.state = 1;
345 388
       this.tableData = null;
346 389
       this.currentRow = null;
390
+      this.partition = 0;
391
+      this.shift = 0;
347 392
     },
348 393
     testsss() {
349 394
       this.state = 1;
@@ -397,15 +442,31 @@ export default {
397 442
       var params = {
398 443
         keyword: this.keywords,
399 444
         time: this.start_time,
445
+        shift: this.shift,
446
+        partition: this.partition,
400 447
       };
401 448
       waitingdrug(params).then((res) => {
402 449
         if (res.data.state == 1) {
403 450
           this.waitmount_data = res.data.data.list;
451
+          if(this.shift != 0 || this.partition != 0){
452
+            if(this.waitmount_data == null){
453
+              this.waitmount = 0
454
+            }else{
455
+              this.waitmount = this.waitmount_data.length
456
+            }
457
+          }
404 458
         }
405 459
       });
406 460
       issueddrugs(params).then((res) => {
407 461
         if (res.data.state == 1) {
408 462
           this.alreadmount_data = res.data.data.list;
463
+          if(this.shift != 0 || this.partition != 0){
464
+            if (this.alreadmount_data == null){
465
+              this.alreadmount = 0
466
+            }else{
467
+              this.alreadmount = this.alreadmount_data.length
468
+            }
469
+          }
409 470
         }
410 471
       });
411 472
     },
@@ -415,6 +476,8 @@ export default {
415 476
       var params = {
416 477
         keyword: this.keywords,
417 478
         time: this.start_time,
479
+        shift: this.shift,
480
+        partition: this.partition,
418 481
       };
419 482
       await waitingdrug(params).then((res) => {
420 483
         if (res.data.state == 1) {
@@ -460,11 +523,66 @@ export default {
460 523
         this.start_time
461 524
       );
462 525
     },
526
+    toExport() {
527
+
528
+      import("@/vendor/Export2Excel").then((excel) => {
529
+          for (let i = 0; i < this.tableData.length; i++) {
530
+            this.tableData[i].index = i + 1;
531
+            this.tableData[i].time = this.start_time
532
+            this.tableData[i].uname = this.currentRow.Name
533
+          }
534
+
535
+          const tHeader = [
536
+            "序号",
537
+            "日期",
538
+            "患者名称",
539
+            "名称",
540
+            "单次用量",
541
+            "用法",
542
+            "频率",
543
+            "天数",
544
+            "总量",
545
+            "开立医生",
546
+            "数据来源",
547
+            "备注",
548
+          ];
549
+          const filterVal = [
550
+            "index",
551
+            "time",
552
+            "uname",
553
+            "Name",
554
+            "SingleDosage",
555
+            "Usage",
556
+            "Frequency",
557
+            "Days",
558
+            "Total",
559
+            "Doctor",
560
+            "DataSources",
561
+            "Remarks",
562
+          ];
563
+
564
+          const data = this.formatJson(filterVal, this.tableData);
565
+          excel.export_json_to_excel({
566
+            header: tHeader,
567
+            data,
568
+            filename: "领药单",
569
+          });
570
+          this.downloadLoading = false;
571
+        });
572
+
573
+    },
574
+    formatJson(filterVal, jsonData) {
575
+      return jsonData.map((v) => filterVal.map((j) => v[j]));
576
+    },
463 577
 
464 578
     // 搜索患者
465 579
     searchAction() {
466 580
       this.tableData = null;
467 581
       this.getwaitmount();
582
+      if(this.shift != 0 || this.partition != 0){
583
+      }else{
584
+        this.gettodaynumber();
585
+      }
468 586
     },
469 587
 
470 588
     // 药品发药
@@ -612,6 +730,7 @@ export default {
612 730
 
613 731
 /deep/ .el-table--scrollable-x .el-table__body-wrapper {
614 732
   overflow: auto;
733
+  overflow-x: hidden;
615 734
 }
616 735
 /deep/ .gutter {
617 736
   width: 15px !important;

+ 2 - 2
src/xt_pages/data/components/dialysisAfter.vue View File

@@ -89,7 +89,7 @@ export default {
89 89
         type: "warning"
90 90
       })
91 91
         .then(() => {
92
-          updateFieldIsShow(row.id, 2).then(response => {
92
+          updateFieldIsShow(row.id, 2,0).then(response => {
93 93
             if (response.data.state == 1) {
94 94
               let params = {
95 95
                 id: response.data.data.id,
@@ -113,7 +113,7 @@ export default {
113 113
         type: "warning"
114 114
       })
115 115
         .then(() => {
116
-          updateFieldIsShow(row.id, 1).then(response => {
116
+          updateFieldIsShow(row.id, 1,1).then(response => {
117 117
             if (response.data.state == 1) {
118 118
               let params = {
119 119
                 id: response.data.data.id,

+ 2 - 2
src/xt_pages/data/components/dialysisBefore.vue View File

@@ -77,7 +77,7 @@
77 77
           cancelButtonText: '取 消',
78 78
           type: 'warning'
79 79
         }).then(() => {
80
-          updateFieldIsShow(row.id, 2).then(response => {
80
+          updateFieldIsShow(row.id, 2,0).then(response => {
81 81
             if (response.data.state == 1) {
82 82
               const params = {
83 83
                 id: response.data.data.id,
@@ -103,7 +103,7 @@
103 103
           cancelButtonText: '取 消',
104 104
           type: 'warning'
105 105
         }).then(() => {
106
-          updateFieldIsShow(row.id, 1).then(response => {
106
+          updateFieldIsShow(row.id, 1,1).then(response => {
107 107
             if (response.data.state == 1) {
108 108
               const params = {
109 109
                 id: response.data.data.id,

+ 4 - 2
src/xt_pages/data/components/dialysisComputer.vue View File

@@ -30,6 +30,8 @@
30 30
         </template>
31 31
       </el-table-column>
32 32
 
33
+   
34
+
33 35
       <el-table-column label="操作" align="center">
34 36
         <template slot-scope="scope">
35 37
           <el-tooltip
@@ -89,7 +91,7 @@
89 91
           type: "warning"
90 92
         })
91 93
           .then(() => {
92
-            updateFieldIsShow(row.id, 2).then(response => {
94
+            updateFieldIsShow(row.id, 2,0).then(response => {
93 95
               if (response.data.state == 1) {
94 96
                 let params = {
95 97
                   id: response.data.data.id,
@@ -113,7 +115,7 @@
113 115
           type: "warning"
114 116
         })
115 117
           .then(() => {
116
-            updateFieldIsShow(row.id, 1).then(response => {
118
+            updateFieldIsShow(row.id, 1,1).then(response => {
117 119
               if (response.data.state == 1) {
118 120
                 let params = {
119 121
                   id: response.data.data.id,

+ 2 - 2
src/xt_pages/data/components/dialysisMonitor.vue View File

@@ -89,7 +89,7 @@ export default {
89 89
         type: "warning"
90 90
       })
91 91
         .then(() => {
92
-          updateFieldIsShow(row.id, 2).then(response => {
92
+          updateFieldIsShow(row.id, 2,0).then(response => {
93 93
             if (response.data.state == 1) {
94 94
               let params = {
95 95
                 id: response.data.data.id,
@@ -113,7 +113,7 @@ export default {
113 113
         type: "warning"
114 114
       })
115 115
         .then(() => {
116
-          updateFieldIsShow(row.id, 1).then(response => {
116
+          updateFieldIsShow(row.id, 1,1).then(response => {
117 117
             if (response.data.state == 1) {
118 118
               let params = {
119 119
                 id: response.data.data.id,

+ 142 - 5
src/xt_pages/data/components/dialysisOff.vue View File

@@ -30,9 +30,49 @@
30 30
         </template>
31 31
       </el-table-column>
32 32
 
33
+      <el-table-column align="center" label="是否必填">
34
+        <template slot-scope="scope">
35
+          <span v-if="scope.row.is_write == 1">是</span>
36
+          <span v-if="scope.row.is_write == 0">否</span>
37
+        </template>
38
+      </el-table-column>
39
+
33 40
       <el-table-column label="操作" align="center">
34 41
         <template slot-scope="scope">
35
-          <el-tooltip
42
+            <el-button
43
+              v-if="scope.row.is_show == 1"
44
+              size="small"
45
+              type="danger"
46
+              icon="el-icon-remove-outline"
47
+              @click="handleHide(scope.$index, scope.row)"
48
+            >
49
+            </el-button>
50
+            <el-button
51
+              v-if="scope.row.is_write == 1"
52
+              size="small"
53
+              type="danger"
54
+              icon="el-icon-remove-outline"
55
+              @click="handleHideOne(scope.$index, scope.row)"
56
+            >
57
+            </el-button>
58
+
59
+             <el-button
60
+              v-if="scope.row.is_show == 2"
61
+              size="small"
62
+              type="primary"
63
+              icon="el-icon-view"
64
+              @click="handleShow(scope.$index, scope.row)"
65
+            >
66
+            </el-button>
67
+            <el-button
68
+              v-if="scope.row.is_write == 0"
69
+              size="small"
70
+              type="primary"
71
+              icon="el-icon-view"
72
+              @click="handleShowOne(scope.$index, scope.row)"
73
+            >
74
+            </el-button>
75
+          <!-- <el-tooltip
36 76
             class="item"
37 77
             effect="dark"
38 78
             content="不展示"
@@ -48,6 +88,22 @@
48 88
             </el-button>
49 89
           </el-tooltip>
50 90
 
91
+           <el-tooltip
92
+            class="item"
93
+            effect="dark"
94
+            content="不必填"
95
+            placement="top"
96
+            v-if="scope.row.is_write == 1"
97
+          >
98
+            <el-button
99
+              size="small"
100
+              type="danger"
101
+              icon="el-icon-remove-outline"
102
+              @click="handleHideOne(scope.$index, scope.row)"
103
+            >
104
+            </el-button>
105
+          </el-tooltip>
106
+
51 107
           <el-tooltip
52 108
             class="item"
53 109
             effect="dark"
@@ -62,7 +118,25 @@
62 118
               @click="handleShow(scope.$index, scope.row)"
63 119
             >
64 120
             </el-button>
121
+           
65 122
           </el-tooltip>
123
+
124
+           <el-tooltip
125
+            class="item"
126
+            effect="dark"
127
+            content="必填"
128
+            placement="top"
129
+            v-if="scope.row.is_write == 2"
130
+          >
131
+            <el-button
132
+              size="small"
133
+              type="primary"
134
+              icon="el-icon-view"
135
+              @click="handleShowOne(scope.$index, scope.row)"
136
+            >
137
+            </el-button>
138
+           
139
+          </el-tooltip> -->
66 140
         </template>
67 141
       </el-table-column>
68 142
     </el-table>
@@ -81,6 +155,12 @@ export default {
81 155
       type: Array
82 156
     }
83 157
   },
158
+  data(){
159
+    return {
160
+    is_show:2,
161
+    is_write:0,
162
+   }
163
+  },
84 164
   methods: {
85 165
     handleHide: function(index, row) {
86 166
       this.$confirm("是否将该字段设为不可见?", "提示", {
@@ -89,11 +169,40 @@ export default {
89 169
         type: "warning"
90 170
       })
91 171
         .then(() => {
92
-          updateFieldIsShow(row.id, 2).then(response => {
172
+          updateFieldIsShow(row.id, 2,row.is_write).then(response => {
93 173
             if (response.data.state == 1) {
174
+              this.is_show = response.data.data.is_show
94 175
               let params = {
95 176
                 id: response.data.data.id,
96
-                is_show: response.data.data.is_show
177
+                is_show: response.data.data.is_show,
178
+                is_write:response.data.data.is_write,
179
+              };
180
+              store.dispatch("updateFiledConfigList", params).then(() => {});
181
+              this.$emit("change", params);
182
+            }
183
+          });
184
+          this.$message({
185
+            type: "success",
186
+            message: "设置成功!"
187
+          });
188
+        })
189
+        .catch(() => {});
190
+    },
191
+    handleHideOne: function(index, row) {
192
+      this.$confirm("是否将该字段设为不必填?", "提示", {
193
+        confirmButtonText: "确 定",
194
+        cancelButtonText: "取 消",
195
+        type: "warning"
196
+      })
197
+        .then(() => {
198
+          updateFieldIsShow(row.id,row.is_show,0).then(response => {
199
+          
200
+            if (response.data.state == 1) {
201
+              this.is_write = response.data.data.is_write
202
+              let params = {
203
+                id: response.data.data.id,
204
+                is_show: response.data.data.is_show,
205
+                is_write:response.data.data.is_write,
97 206
               };
98 207
               store.dispatch("updateFiledConfigList", params).then(() => {});
99 208
               this.$emit("change", params);
@@ -112,11 +221,39 @@ export default {
112 221
         cancelButtonText: "取 消",
113 222
         type: "warning"
114 223
       }).then(() => {
115
-          updateFieldIsShow(row.id, 1).then(response => {
224
+          updateFieldIsShow(row.id, 1,row.is_write).then(response => {
225
+            if (response.data.state == 1) {
226
+              this.is_show = response.data.data.is_show
227
+              let params = {
228
+                id: response.data.data.id,
229
+                is_show: response.data.data.is_show,
230
+                is_write:response.data.data.is_write,
231
+              };
232
+              store.dispatch("updateFiledConfigList", params).then(() => {});
233
+              this.$emit("change", params);
234
+            }
235
+          });
236
+          this.$message({
237
+            type: "success",
238
+            message: "设置成功!"
239
+          });
240
+        })
241
+        .catch(() => {});
242
+    },
243
+    handleShowOne: function(index, row) {
244
+      this.$confirm("是否将该字段设为必填?", "提示", {
245
+        confirmButtonText: "确 定",
246
+        cancelButtonText: "取 消",
247
+        type: "warning"
248
+      }).then(() => {
249
+         
250
+          updateFieldIsShow(row.id,row.is_show,1).then(response => {
116 251
             if (response.data.state == 1) {
252
+              this.is_write = response.data.data.is_write
117 253
               let params = {
118 254
                 id: response.data.data.id,
119
-                is_show: response.data.data.is_show
255
+                is_show: response.data.data.is_show,
256
+                is_write:response.data.data.is_write,
120 257
               };
121 258
               store.dispatch("updateFiledConfigList", params).then(() => {});
122 259
               this.$emit("change", params);

+ 2 - 2
src/xt_pages/data/components/dialysisPrescription.vue View File

@@ -89,7 +89,7 @@ export default {
89 89
         type: "warning"
90 90
       })
91 91
         .then(() => {
92
-          updateFieldIsShow(row.id, 2).then(response => {
92
+          updateFieldIsShow(row.id, 2,0).then(response => {
93 93
             if (response.data.state == 1) {
94 94
               let params = {
95 95
                 id: response.data.data.id,
@@ -113,7 +113,7 @@ export default {
113 113
         type: "warning"
114 114
       })
115 115
         .then(() => {
116
-          updateFieldIsShow(row.id, 1).then(response => {
116
+          updateFieldIsShow(row.id, 1,1).then(response => {
117 117
             if (response.data.state == 1) {
118 118
               let params = {
119 119
                 id: response.data.data.id,

+ 2 - 2
src/xt_pages/data/components/dialysisSummary.vue View File

@@ -89,7 +89,7 @@ export default {
89 89
         type: "warning"
90 90
       })
91 91
         .then(() => {
92
-          updateFieldIsShow(row.id, 2).then(response => {
92
+          updateFieldIsShow(row.id, 2,0).then(response => {
93 93
             if (response.data.state == 1) {
94 94
               let params = {
95 95
                 id: response.data.data.id,
@@ -113,7 +113,7 @@ export default {
113 113
         type: "warning"
114 114
       })
115 115
         .then(() => {
116
-          updateFieldIsShow(row.id, 1).then(response => {
116
+          updateFieldIsShow(row.id, 1,1).then(response => {
117 117
             if (response.data.state == 1) {
118 118
               let params = {
119 119
                 id: response.data.data.id,

+ 2 - 2
src/xt_pages/data/components/doubleCheck.vue View File

@@ -89,7 +89,7 @@ export default {
89 89
         type: "warning"
90 90
       })
91 91
         .then(() => {
92
-          updateFieldIsShow(row.id, 2).then(response => {
92
+          updateFieldIsShow(row.id, 2,0).then(response => {
93 93
             if (response.data.state == 1) {
94 94
               let params = {
95 95
                 id: response.data.data.id,
@@ -112,7 +112,7 @@ export default {
112 112
         cancelButtonText: "取 消",
113 113
         type: "warning"
114 114
       }).then(() => {
115
-          updateFieldIsShow(row.id, 1).then(response => {
115
+          updateFieldIsShow(row.id, 1,1).then(response => {
116 116
             if (response.data.state == 1) {
117 117
               let params = {
118 118
                 id: response.data.data.id,

+ 2 - 2
src/xt_pages/data/components/receiveTreatmentAsses.vue View File

@@ -88,7 +88,7 @@ export default {
88 88
         type: "warning"
89 89
       })
90 90
         .then(() => {
91
-          updateFieldIsShow(row.id, 2).then(response => {
91
+          updateFieldIsShow(row.id, 2,0).then(response => {
92 92
             if (response.data.state == 1) {
93 93
               let params = {
94 94
                 id: response.data.data.id,
@@ -112,7 +112,7 @@ export default {
112 112
         type: "warning"
113 113
       })
114 114
         .then(() => {
115
-          updateFieldIsShow(row.id, 1).then(response => {
115
+          updateFieldIsShow(row.id, 1,1).then(response => {
116 116
             if (response.data.state == 1) {
117 117
               let params = {
118 118
                 id: response.data.data.id,

+ 3 - 2
src/xt_pages/data/showConfig.vue View File

@@ -175,10 +175,11 @@ export default {
175 175
       }
176 176
     },
177 177
     changeDialysisOffData:function(object){
178
-
178
+    
179 179
      for (let i = 0; i < this.dialysis_off_data.length; i++) {
180 180
         if (this.dialysis_off_data[i].id == object.id) {
181 181
           this.dialysis_off_data[i].is_show = object.is_show;
182
+          this.dialysis_off_data[i].is_write = object.is_write
182 183
         }
183 184
       }
184 185
     }
@@ -186,7 +187,7 @@ export default {
186 187
   },
187 188
   created() {
188 189
     var filedList = store.getters.xt_user.fileds;
189
-    
190
+    console.log("地址32323232232332322我噢",filedList)
190 191
   
191 192
     for (let i = 0; i < filedList.length; i++) {
192 193
       switch (filedList[i].module) {

+ 13 - 13
src/xt_pages/device/components/partition_dialog.vue View File

@@ -10,7 +10,7 @@
10 10
                         <el-table-column prop="name" label="分区名称" align="center"></el-table-column>
11 11
                         <el-table-column prop="type" label="分区类型" align="center"></el-table-column>
12 12
                         <!-- <el-table-column prop="amount" label="机号数量" align="center"></el-table-column> -->
13
-                        <el-table-column label="操作" align="center"> 
13
+                        <el-table-column label="操作" align="center">
14 14
                             <template slot-scope="scope">
15 15
                                 <el-button type="primary" icon="el-icon-edit" size="small" @click="modifyZoneAt(scope.row)"></el-button>
16 16
 
@@ -22,7 +22,7 @@
22 22
                                         <el-button size="mini" @click="scope.row.willDelete = false">取消</el-button>
23 23
                                     </div>
24 24
                                 </el-popover> -->
25
-                            </template>  
25
+                            </template>
26 26
                         </el-table-column>
27 27
                     </el-table>
28 28
                 </el-tab-pane>
@@ -34,7 +34,7 @@
34 34
                         <el-table-column prop="zone_name" label="所属分区" align="center"></el-table-column>
35 35
                         <el-table-column prop="group_name" label="所属分组" align="center"></el-table-column>
36 36
                         <!-- <el-table-column prop="amount" label="机号数量" align="center"></el-table-column> -->
37
-                        <el-table-column label="操作" align="center"> 
37
+                        <el-table-column label="操作" align="center">
38 38
                             <template slot-scope="scope">
39 39
                                 <el-button type="primary" icon="el-icon-edit" size="small" @click="modifyDeviceNumberAt(scope.row)"></el-button>
40 40
 
@@ -46,7 +46,7 @@
46 46
                                     </div>
47 47
                                     <el-button type="danger" slot="reference"  icon="el-icon-delete" size="mini">删除</el-button>
48 48
                                 </el-popover> -->
49
-                            </template>  
49
+                            </template>
50 50
                         </el-table-column>
51 51
                     </el-table>
52 52
                 </el-tab-pane>
@@ -68,14 +68,14 @@
68 68
                                     </div>
69 69
                                     <el-button type="danger" slot="reference" icon="el-icon-delete" size="mini">删除</el-button>
70 70
                                 </el-popover> -->
71
-                            </template>  
71
+                            </template>
72 72
                         </el-table-column>
73 73
                     </el-table>
74 74
                 </el-tab-pane>
75 75
             </el-tabs>
76
-            
76
+
77 77
             <!-- <span slot="footer" class="dialog-footer">
78
-                <el-button type="primary" @click="visible = false">保 存</el-button>            
78
+                <el-button type="primary" @click="visible = false">保 存</el-button>
79 79
                 <el-button @click="visible = false">取 消</el-button>
80 80
             </span> -->
81 81
         </el-dialog>
@@ -273,7 +273,7 @@ export default {
273 273
                                 this.$message.error(resp.msg)
274 274
                             }
275 275
                         })
276
-                        
276
+
277 277
                     } else {
278 278
                         modifyZone(this.zone_form.id, this.zone_form.name, this.zone_form.type).then(rs => {
279 279
                             var resp = rs.data
@@ -293,7 +293,7 @@ export default {
293 293
                             }
294 294
                         })
295 295
                     }
296
-                    
296
+
297 297
                 } else {
298 298
                     return false
299 299
                 }
@@ -314,7 +314,7 @@ export default {
314 314
                                 this.$message.error(resp.msg)
315 315
                             }
316 316
                         })
317
-                        
317
+
318 318
                     } else {
319 319
                         modifyGroup(this.group_form.id, this.group_form.name).then(rs => {
320 320
                             var resp = rs.data
@@ -333,7 +333,7 @@ export default {
333 333
                             }
334 334
                         })
335 335
                     }
336
-                    
336
+
337 337
                 } else {
338 338
                     return false
339 339
                 }
@@ -354,7 +354,7 @@ export default {
354 354
                                 this.$message.error(resp.msg)
355 355
                             }
356 356
                         })
357
-                        
357
+
358 358
                     } else {
359 359
                         modifyDeviceNumber(this.number_form.id, this.number_form.number, this.number_form.zone, this.number_form.group).then(rs => {
360 360
                             var resp = rs.data
@@ -375,7 +375,7 @@ export default {
375 375
                             }
376 376
                         })
377 377
                     }
378
-                    
378
+
379 379
                 } else {
380 380
                     return false
381 381
                 }

+ 4 - 0
src/xt_pages/dialysis/details/assessmentAfter.vue View File

@@ -324,6 +324,10 @@
324 324
           <label>管路凝血: </label>
325 325
           <span class="content" >{{ this.record.pip_coagulation}}</span>
326 326
         </li>
327
+       <li v-if="isShow('累计血容量')">
328
+          <label>累计血容量: </label>
329
+          <span class="content" >{{ this.record.accumulated_blood_volume}}</span>
330
+        </li>
327 331
       </ul>
328 332
     </div>
329 333
     <!-- <div class="note">

+ 9 - 2
src/xt_pages/dialysis/details/assessmentBefore.vue View File

@@ -5,14 +5,21 @@
5 5
     </h2>
6 6
     <div class="plate ">
7 7
       <ul>
8
-        <li v-if="isShow('透前重')">
9
-          <label>透前重 : </label>
8
+        <li v-if="isShow('透前重')">
9
+          <label>透前重 : </label>
10 10
           <span class="content" v-if="weight_before != '0'">{{
11 11
             weight_before
12 12
           }}</span>
13 13
           <span class="unit" v-if="weight_before != '0'">kg</span>
14 14
         </li>
15 15
 
16
+        <li v-if="isShow('透前体重备注')">
17
+          <label>透前体重备注 : </label>
18
+          <span class="content">
19
+            {{this.record.weight_befor_remake}}
20
+          </span>
21
+        </li>
22
+
16 23
         <li v-if="isShow('干体重')">
17 24
           <label>干体重 : </label>
18 25
           <span class="content" v-if="dry_weight != '0'">{{ dry_weight }}</span>

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

@@ -614,11 +614,18 @@
614 614
               <el-input v-model="form.after_urea"></el-input>
615 615
             </el-form-item>
616 616
        </el-col>
617
+       <el-col :span="8" v-if="isShow('累计血容量')">
618
+            <el-form-item label="累计血容量(L):"  label-width="150px">
619
+              <el-input v-model="form.accumulated_blood_volume"></el-input>
620
+            </el-form-item>
621
+        </el-col>
617 622
         <el-col :span="24" v-if="isShow('KT/V')">
618 623
             <el-form-item label="KT/V:">
619 624
               <el-input type="textarea" :rows="4" v-model="form.ktv"></el-input>
620 625
             </el-form-item>
621 626
         </el-col>
627
+
628
+      
622 629
       </el-form>
623 630
 
624 631
 
@@ -793,6 +800,7 @@ export default {
793 800
         fallrisk:"",
794 801
         machine_run:"",
795 802
         after_urea:"",
803
+        accumulated_blood_volume:"",
796 804
       },
797 805
       lapseList:[],
798 806
       leaveOfficeMethod:[],
@@ -1013,6 +1021,7 @@ export default {
1013 1021
       data["machine_run"] = this.form.machine_run
1014 1022
       data["after_urea"] = this.form.after_urea
1015 1023
       data["pip_coagulation"] = this.form.pip_coagulation
1024
+      data["accumulated_blood_volume"] = this.form.accumulated_blood_volume
1016 1025
       console.log("Paramsquery",data)
1017 1026
 
1018 1027
       postAssessmentAfterDislysis(ParamsQuery, data)

+ 9 - 0
src/xt_pages/dialysis/details/dialog/assessmentBeforeDislysisDialog.vue View File

@@ -29,6 +29,12 @@
29 29
             </el-form-item>
30 30
           </el-col>
31 31
 
32
+          <el-col :span="8">
33
+            <el-form-item label="透前体重备注:" v-if="isShow('透前体重备注')">
34
+              <el-input v-model="assessmentBeforeDislysis.weight_befor_remake"></el-input>
35
+            </el-form-item>
36
+          </el-col>
37
+
32 38
           <el-col :span="8">
33 39
             <el-form-item label="干体重(kg):"
34 40
                           v-if="isShow('干体重')">
@@ -553,6 +559,8 @@
553 559
               <el-input v-model="assessmentBeforeDislysis.suction" @focus="showInnerDialog('20')"></el-input>
554 560
             </el-form-item>
555 561
           </el-col>
562
+
563
+ 
556 564
          
557 565
           <el-col :span="24">
558 566
             <el-form-item label="备注: ">
@@ -725,6 +733,7 @@
725 733
           blood_pressure_during_dialysis:"",
726 734
           urea_befor:"",
727 735
           suction:"",
736
+          weight_befor_remake:"",
728 737
         },
729 738
 
730 739
         InnerDialogProps: {

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

@@ -196,7 +196,7 @@
196 196
 
197 197
                     <el-col :span="8" v-if="anticoagulant.shouji != -1 && isShows('首剂')">
198 198
                         <div v-if="this.$store.getters.xt_user.template_info.org_id != 10157 && this.$store.getters.xt_user.template_info.template_id!=54">
199
-                          <div v-if="this.$store.getters.xt_user.template_info.org_id != 10101 && this.$store.getters.xt_user.template_info.template_id != 45 && this.$store.getters.xt_user.template_info.org_id != 10346">
199
+                          <div v-if="this.$store.getters.xt_user.template_info.org_id != 10101 && this.$store.getters.xt_user.template_info.template_id != 45 && this.$store.getters.xt_user.template_info.org_id != 10346 && this.$store.getters.xt_user.template_info.org_id != 10387">
200 200
                             <el-form-item
201 201
                                     v-if='this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 38 && this.$store.getters.xt_user.template_info.org_id != 9987'
202 202
                                     :label="'首剂(' + anticoagulant.shouji_unit + ') : '">
@@ -207,7 +207,7 @@
207 207
                             </el-form-item>
208 208
 
209 209
                             <el-form-item
210
-                                    v-if='dialysisPrescription.anticoagulant == 2 && this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 38 || this.$store.getters.xt_user.template_info.org_id == 9987 || this.$store.getters.xt_user.template_info.org_id == 10346 && dialysisPrescription.anticoagulant == 2'
210
+                                    v-if='dialysisPrescription.anticoagulant == 2 && this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 38 || this.$store.getters.xt_user.template_info.org_id == 9987 || this.$store.getters.xt_user.template_info.org_id == 10346 || this.$store.getters.xt_user.template_info.org_id == 10387 && dialysisPrescription.anticoagulant == 2'
211 211
                                     :label="'首剂(mg) : '">
212 212
                                 <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
213 213
                                           v-model="dialysisPrescription.anticoagulant_shouji"></el-input>
@@ -256,7 +256,7 @@
256 256
 
257 257
                     <el-col :span="8" v-if="anticoagulant.weichi != -1 && isShows('维持')">
258 258
                         <div v-if="this.$store.getters.xt_user.template_info.org_id != 10157 ">
259
-                          <div v-if="this.$store.getters.xt_user.template_info.org_id != 10101 && this.$store.getters.xt_user.template_info.template_id != 45 && this.$store.getters.xt_user.template_info.template_id != 54 && this.$store.getters.xt_user.template_info.org_id != 10346">
259
+                          <div v-if="this.$store.getters.xt_user.template_info.org_id != 10101 && this.$store.getters.xt_user.template_info.template_id != 45 && this.$store.getters.xt_user.template_info.template_id != 54 && this.$store.getters.xt_user.template_info.org_id != 10346 && this.$store.getters.xt_user.template_info.org_id != 10387">
260 260
                             <el-form-item :label="'维持(' + anticoagulant.weichi_unit + ') : '"
261 261
                                           v-if="anticoagulant.weichi != -1 && this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 38 && this.$store.getters.xt_user.template_info.org_id != 9987  && this.$store.getters.xt_user.template_info.org_id != 54">
262 262
                                 <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
@@ -265,7 +265,7 @@
265 265
                                           v-model="dialysisPrescription.no_anticoagulant_weichi"></el-input>
266 266
                             </el-form-item>
267 267
                             <el-form-item :label="'维持(mg/h) : '"
268
-                                          v-if="anticoagulant.weichi != -1 && this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 38 || this.$store.getters.xt_user.template_info.org_id == 9987 || this.$store.getters.xt_user.template_info.org_id == 54 ||  this.$store.getters.xt_user.template_info.org_id == 10346">
268
+                                          v-if="anticoagulant.weichi != -1 && this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 38 || this.$store.getters.xt_user.template_info.org_id == 9987 || this.$store.getters.xt_user.template_info.org_id == 54 ||  this.$store.getters.xt_user.template_info.org_id == 10346 ||  this.$store.getters.xt_user.template_info.org_id == 10387">
269 269
                                 <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
270 270
                                           v-model="dialysisPrescription.anticoagulant_weichi"></el-input>
271 271
                                 <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
@@ -308,9 +308,9 @@
308 308
 
309 309
                     <el-col :span="8" v-if="anticoagulant.zongliang != -1 && isShows('总量')">
310 310
                         <div v-if="this.$store.getters.xt_user.template_info.org_id != 10157">
311
-                          <div v-if="this.$store.getters.xt_user.template_info.org_id != 10101 && this.$store.getters.xt_user.template_info.template_id != 45 && this.$store.getters.xt_user.template_info.template_id != 54 && this.$store.getters.xt_user.template_info.org_id != 10346">
311
+                          <div v-if="this.$store.getters.xt_user.template_info.org_id != 10101 && this.$store.getters.xt_user.template_info.template_id != 45 && this.$store.getters.xt_user.template_info.template_id != 54 && this.$store.getters.xt_user.template_info.org_id != 10346 && this.$store.getters.xt_user.template_info.org_id != 10387">
312 312
                             <el-form-item
313
-                                    v-if='this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 38  && this.$store.getters.xt_user.template_info.org_id != 9987 && this.$store.getters.xt_user.template_info.template_id != 54 && this.$store.getters.xt_user.template_info.org_id != 10346'
313
+                                    v-if='this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 38  && this.$store.getters.xt_user.template_info.org_id != 9987 && this.$store.getters.xt_user.template_info.template_id != 54 && this.$store.getters.xt_user.template_info.org_id != 10346 && this.$store.getters.xt_user.template_info.org_id != 10387'
314 314
                                     :label="'总量(' + anticoagulant.zongliang_unit + ') : '">
315 315
                                 <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
316 316
                                           v-model="dialysisPrescription.anticoagulant_zongliang"></el-input>
@@ -318,7 +318,7 @@
318 318
                                           v-model="dialysisPrescription.no_anticoagulant_zongliang"></el-input>
319 319
                             </el-form-item>
320 320
                             <el-form-item
321
-                                    v-if='this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 38||  this.$store.getters.xt_user.template_info.org_id == 9987 || this.$store.getters.xt_user.template_info.template_id == 54 || this.$store.getters.xt_user.template_info.org_id == 10346'
321
+                                    v-if='this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 38||  this.$store.getters.xt_user.template_info.org_id == 9987 || this.$store.getters.xt_user.template_info.template_id == 54 || this.$store.getters.xt_user.template_info.org_id == 10346 || this.$store.getters.xt_user.template_info.org_id == 10387'
322 322
                                     :label="'总量(mg) : '">
323 323
                                 <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
324 324
                                           v-model="dialysisPrescription.anticoagulant_zongliang"></el-input>
@@ -2204,11 +2204,12 @@
2204 2204
                 return
2205 2205
               }
2206 2206
             }
2207
-            if(this.dialysisPrescription.mode_id!=2 && this.dialysisPrescription.mode_id!=5 && this.dialysisPrescription.mode_id!=12){
2208
-                this.dialysisPrescription.displace_liqui_part = 0
2209
-                this.dialysisPrescription.displace_liqui_value = 0
2210
-            } 
2207
+            
2211 2208
           }
2209
+          if(this.dialysisPrescription.mode_id!=2 && this.dialysisPrescription.mode_id!=5 && this.dialysisPrescription.mode_id!=12){
2210
+            this.dialysisPrescription.displace_liqui_part = 0
2211
+            this.dialysisPrescription.displace_liqui_value = 0
2212
+          } 
2212 2213
 
2213 2214
           this.is_pre = 1
2214 2215
 

+ 105 - 56
src/xt_pages/dialysis/details/dialog/finish_dialog.vue View File

@@ -4,7 +4,7 @@
4 4
       <!-- <div class="txsj">
5 5
       </div> -->
6 6
       <div class="warnTxt" v-if="showTxt != ''">{{ showTxt }}</div>
7
-      <el-form :model="form" label-width="100px">
7
+      <el-form :model="form" label-width="100px"  :rules="drugdicRules"  ref="form">
8 8
         <el-form-item label="下机护士">
9 9
           <el-select v-model="form.nurse_id" :disabled="!(dialysis_order.id != 0)">
10 10
             <el-option v-for="(admin, index) in admins" :key="index" :value="admin.id" :label="admin.name"></el-option>
@@ -28,12 +28,12 @@
28 28
               <el-radio :label="2">无</el-radio>
29 29
            </el-radio-group>
30 30
         </el-form-item>
31
-        
31
+
32 32
         <el-form-item label="内瘘: " v-if="isShowFiled('内瘘')">
33 33
             <el-input v-model="form.internal_fistula" readonly  @focus="showInnerDialog('7')" style="width:200px"></el-input>
34 34
         </el-form-item>
35 35
 
36
-    
36
+
37 37
         <el-form-item label="导管: " v-if="isShowFiled('导管')">
38 38
           <el-input v-model="form.catheter" @focus="showInnerDialog('4')" style="width:200px"></el-input>
39 39
         </el-form-item>
@@ -45,18 +45,18 @@
45 45
             readonly
46 46
             @focus="showInnerDialog('1')"
47 47
           ></el-input>
48
-       </el-form-item> 
48
+       </el-form-item>
49 49
 
50 50
         <el-form-item>
51
-          <el-button v-if="(dialysis_order.id != 0 && dialysis_order.stage == 1)" @click="submit" :loading="loading"
51
+          <el-button v-if="(dialysis_order.id != 0 && dialysis_order.stage == 1)" @click="submit('form')" :loading="loading"
52 52
                      type="primary">执行下机
53 53
           </el-button>
54 54
           <el-button
55 55
             v-if="dialysis_order.stage == 2 "
56
-            type="primary" @click="modifyFinish">修改下机
56
+            type="primary" @click="modifyFinish('form')">修改下机
57 57
           </el-button>
58 58
         </el-form-item>
59
-        
59
+
60 60
 
61 61
 
62 62
       </el-form>
@@ -114,6 +114,10 @@
114 114
         },
115 115
         catheter: [],
116 116
         cruorOptions: [],
117
+        drugdicRules: {
118
+         internal_fistula: [{ required: true, message: "请选择内瘘" }]
119
+        },
120
+        required:false,
117 121
       }
118 122
     },
119 123
     props: {
@@ -165,12 +169,25 @@
165 169
     methods: {
166 170
        isShowFiled(name) {
167 171
         var filedList = store.getters.xt_user.fileds
168
-       
169 172
         for (let i = 0; i < filedList.length; i++) {
170 173
           if (filedList[i].module == 9 && filedList[i].filed_name_cn == name && filedList[i].is_show == 1) {
171 174
             return true
172 175
           }
176
+          if (filedList[i].module == 9 && filedList[i].filed_name_cn == name && filedList[i].is_write == 1) {
177
+             this.required = true
178
+          }
173 179
         }
180
+        this.required = false
181
+        return false
182
+      },
183
+      isWrite(name){
184
+        var filedList = store.getters.xt_user.fileds
185
+        for (let i = 0; i < filedList.length; i++) {
186
+          if (filedList[i].module == 9 && filedList[i].filed_name_cn == name && filedList[i].is_write == 1) {
187
+            return true
188
+          }
189
+        }
190
+        
174 191
         return false
175 192
       },
176 193
       show: function(record) {
@@ -193,7 +210,7 @@
193 210
         if(this.$route.query.patient_id){
194 211
           this.patient_id = this.$route.query.patient_id
195 212
         }
196
-        
213
+
197 214
         this.schedule_date = this.$route.query.date
198 215
 
199 216
         if (this.dialysis_order.id == 0) {
@@ -250,57 +267,89 @@
250 267
       hide: function() {
251 268
         this.visible = false
252 269
       },
253
-      modifyFinish:function(){
254
-        let ParamsQuery = {};
255
-        ParamsQuery["id"] = this.dialysis_order.id;
256
-        ParamsQuery["nurse"] = this.form.nurse_id;
257
-        ParamsQuery["end_time"] = this.end_time;
258
-        ParamsQuery["mode"] = "2"
259
-        ParamsQuery["puncture_point_haematoma"] = paseInt(this.form.puncture_point_haematoma)
260
-        ParamsQuery["internal_fistula"] = this.form.internal_fistula
261
-        ParamsQuery["catheter"] = this.form.catheter
262
-        ParamsQuery["cruor"] = this.form.cruor
263
-        if(this.dialysis_order.finish_creator  != this.$store.getters.xt_user.user.id){
264
-          ParamsQuery["mode"] = "3"
265
-        }
266
-        PostModifyFinishDialysis(ParamsQuery).then(response => {
267
-          if (response.data.state == 0) {
268
-            this.$message.error(response.data.msg)
269
-
270
-            return false;
271
-          } else {
272
-            this.$message.success("修改成功")
273
-            var record = this.dialysis_order;
274
-            for (const key in response.data.data.dialysis_order) {
275
-              this.$set(record, key, response.data.data.dialysis_order[key]);
270
+      modifyFinish:function(formName){
271
+        this.$refs[formName].validate(valid=>{
272
+          if(valid){
273
+            if(this.isWrite("内瘘") == true && this.form.internal_fistula == ""){
274
+              this.$message.error("请选择内瘘")
275
+              return
276
+             }
277
+            if(this.isWrite("导管") == true && this.form.catheter == ""){
278
+              this.$message.error("请选择导管")
279
+              return
280
+             }
281
+            if(this.isWrite("透析器凝血") == true && this.form.cruor == ""){
282
+              this.$message.error("请选择透析器凝血")
283
+              return
284
+             }
285
+            let ParamsQuery = {};
286
+            ParamsQuery["id"] = this.dialysis_order.id;
287
+            ParamsQuery["nurse"] = this.form.nurse_id;
288
+            ParamsQuery["end_time"] = this.end_time;
289
+            ParamsQuery["mode"] = "2"
290
+            ParamsQuery["puncture_point_haematoma"] = parseInt(this.form.puncture_point_haematoma)
291
+            ParamsQuery["internal_fistula"] = this.form.internal_fistula
292
+            ParamsQuery["catheter"] = this.form.catheter
293
+            ParamsQuery["cruor"] = this.form.cruor
294
+            if(this.dialysis_order.finish_creator  != this.$store.getters.xt_user.user.id){
295
+              ParamsQuery["mode"] = "3"
276 296
             }
277
-            console.log(response.data.data.after)
278
-            this.$emit('assessmentAfterDislysis', response.data.data.after)
279
-          }
280
-        });
281
-
297
+            PostModifyFinishDialysis(ParamsQuery).then(response => {
298
+              if (response.data.state == 0) {
299
+                this.$message.error(response.data.msg)
282 300
 
301
+                return false;
302
+              } else {
303
+                this.$message.success("修改成功")
304
+                var record = this.dialysis_order;
305
+                for (const key in response.data.data.dialysis_order) {
306
+                  this.$set(record, key, response.data.data.dialysis_order[key]);
307
+                }
308
+                console.log(response.data.data.after)
309
+                this.$emit('assessmentAfterDislysis', response.data.data.after)
310
+              }
311
+            });
312
+          }
313
+        })
283 314
       },
284
-      submit: function() {
285
-        this.loading = true
286
-        let mode = "1"
287
-        finishDialysis(this.patient_id,this.schedule_date ? parseTime(this.schedule_date, '{y}-{m}-{d}') : parseTime(new Date(), '{y}-{m}-{d}'), this.end_time, this.form.nurse_id,mode,parseInt(this.form.puncture_point_haematoma),this.form.internal_fistula,this.form.catheter,this.form.cruor).then(rs => {
288
-          this.loading = false
289
-          var resp = rs.data
290
-          if (resp.state == 1) {
291
-            var dialysis_order = resp.data.dialysis_order
292
-            var this_order = this.dialysis_order
293
-            for (const key in dialysis_order) {
294
-              this.$set(this_order, key, dialysis_order[key])
295
-            }
296
-            let orgId = parseInt(sessionStorage.getItem("org_id"));
297
-            this.hide()
298
-            this.$emit('assessmentAfterDislysis', resp.data.assessmentAfterDislysis)
315
+      submit: function(formName) {
316
+        
317
+        this.$refs[formName].validate(valid=>{
318
+          if(valid){
319
+             if(this.isWrite("内瘘") == true && this.form.internal_fistula == ""){
320
+              this.$message.error("请选择内瘘")
321
+              return
322
+             }
323
+            if(this.isWrite("导管") == true && this.form.catheter == ""){
324
+              this.$message.error("请选择导管")
325
+              return
326
+             }
327
+            if(this.isWrite("透析器凝血") == true && this.form.cruor == ""){
328
+              this.$message.error("请选择透析器凝血")
329
+              return
330
+             }
331
+             this.loading = true
332
+             let mode = "1"
333
+            finishDialysis(this.patient_id,this.schedule_date ? parseTime(this.schedule_date, '{y}-{m}-{d}') : parseTime(new Date(), '{y}-{m}-{d}'), this.end_time, this.form.nurse_id,mode,parseInt(this.form.puncture_point_haematoma),this.form.internal_fistula,this.form.catheter,this.form.cruor).then(rs => {
334
+              this.loading = false
335
+              var resp = rs.data
336
+              if (resp.state == 1) {
337
+                var dialysis_order = resp.data.dialysis_order
338
+                var this_order = this.dialysis_order
339
+                for (const key in dialysis_order) {
340
+                  this.$set(this_order, key, dialysis_order[key])
341
+                }
342
+                let orgId = parseInt(sessionStorage.getItem("org_id"));
343
+                this.hide()
344
+                this.$emit('assessmentAfterDislysis', resp.data.assessmentAfterDislysis)
299 345
 
300
-          } else {
301
-            this.$message.error(resp.msg)
346
+              } else {
347
+                this.$message.error(resp.msg)
348
+              }
349
+            })
302 350
           }
303 351
         })
352
+    
304 353
       }, getTime(value, temp) {
305 354
         if (value != undefined) {
306 355
           return parseTime(value, temp)
@@ -364,7 +413,7 @@
364 413
             this.InnerDialogProps.selected = this.form.cruor
365 414
             this.InnerDialogProps.isShowTextArea = false
366 415
             break
367
-          
416
+
368 417
         }
369 418
       },
370 419
       innerDialogComfirm: function(val) {
@@ -383,7 +432,7 @@
383 432
       },
384 433
       innerDialogCancle: function() {
385 434
         this.InnerDialogProps.visibility = false
386
-      }, 
435
+      },
387 436
     }
388 437
   }
389 438
 </script>

+ 14 - 7
src/xt_pages/dialysis/details/dialog/monitor_dialog.vue View File

@@ -707,7 +707,7 @@
707 707
             align="center"
708 708
             label="累计血容量(ml)"
709 709
             width="100"
710
-            v-if="isShow('累计血容量') && template_id != 41"
710
+            v-if="isShow('累计血容量') && template_id != 41 && org_id != 9538 && org_id != 9671"
711 711
           >
712 712
              <template slot-scope="scope">
713 713
               {{ scope.row.accumulated_blood_volume }}
@@ -718,7 +718,7 @@
718 718
             align="center"
719 719
             label="累计血容量(L)"
720 720
             width="100"
721
-            v-if="isShow('累计血容量') && template_id == 41"
721
+            v-if="isShow('累计血容量') && (template_id == 41  || org_id == 9538 || org_id == 9671)"
722 722
           >
723 723
             <template slot-scope="scope">
724 724
               {{ scope.row.accumulated_blood_volume }}
@@ -1384,13 +1384,13 @@
1384 1384
             </el-form-item>
1385 1385
           </el-col>
1386 1386
 
1387
-          <el-col :span="8" v-if="isShow('累计血容量') && template_id == 41">
1387
+          <el-col :span="8" v-if="isShow('累计血容量') && (template_id == 41 || org_id == 9671 || org_id == 9538)">
1388 1388
             <el-form-item label="累计血容量(L):">
1389 1389
               <el-input v-model="form.accumulated_blood_volume"></el-input>
1390 1390
             </el-form-item>
1391 1391
           </el-col>
1392
-         
1393
-          <el-col :span="8" v-if="isShow('累计血容量') && template_id  != 41">
1392
+
1393
+          <el-col :span="8" v-if="isShow('累计血容量') && (template_id  != 41 && template_id !=9671 && template_id!=9538)">
1394 1394
             <el-form-item label="累计血容量(ml):">
1395 1395
               <el-input v-model="form.accumulated_blood_volume"></el-input>
1396 1396
             </el-form-item>
@@ -1553,7 +1553,7 @@
1553 1553
 
1554 1554
       <div slot="footer" class="dialog-footer" v-show="edit">
1555 1555
         <el-button @click="cancelEditAction">取 消</el-button>
1556
-        <el-button type="primary" @click="submitAction">保 存</el-button>
1556
+        <el-button :loading="loading" type="primary"  @click="submitAction">保 存</el-button>
1557 1557
       </div>
1558 1558
       <!--</div>-->
1559 1559
     </el-dialog>
@@ -1576,6 +1576,7 @@ export default {
1576 1576
   name: "MonitorDialog",
1577 1577
   data() {
1578 1578
     return {
1579
+      loading: false,
1579 1580
       is_has_create: true,
1580 1581
       is_has_modify: true,
1581 1582
       is_has_modify_other: true,
@@ -1685,7 +1686,7 @@ export default {
1685 1686
     // this.form.monitoring_time = parseTime(new Date(), "{h}:{i}")
1686 1687
     this.form.operate_time = new Date().getTime();
1687 1688
     var symptoms = getDataConfig("hemodialysis", "symptoms");
1688
-    
1689
+
1689 1690
     this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit;
1690 1691
     //console.log("抗凝剂",this.anticoagulantsConfit)
1691 1692
     this.bloodPressureMmonitoringSite = getDataConfig(
@@ -1803,6 +1804,7 @@ export default {
1803 1804
     },
1804 1805
 
1805 1806
     newRecordAction: function () {
1807
+      console.log("111111111")
1806 1808
       this.setEditMonitor(null);
1807 1809
       this.$refs.table.setCurrentRow(null);
1808 1810
       console.log(this.dispose_options,'oop')
@@ -1953,12 +1955,14 @@ export default {
1953 1955
         return;
1954 1956
       }
1955 1957
       this.creator = this.table_current_row.creator;
1958
+      console.log("22222222222")
1956 1959
       this.setEditMonitor(this.table_current_row);
1957 1960
       this.$refs.table.setCurrentRow(null);
1958 1961
       this.edit = true;
1959 1962
       this.isAdd = false;
1960 1963
     },
1961 1964
     cancelEditAction: function () {
1965
+      console.log("3333333333")
1962 1966
       this.setEditMonitor(null);
1963 1967
       this.$refs.table.setCurrentRow(null);
1964 1968
       this.edit = false;
@@ -2127,6 +2131,8 @@ export default {
2127 2131
 
2128 2132
     submitAction: function () {
2129 2133
       // TODO loading
2134
+      this.loading = true
2135
+      console.log("aaaa")
2130 2136
       var is_new = this.form.id;
2131 2137
       this.form.operate_time = parseInt(this.form.operate_time / 1000);
2132 2138
       this.form.systolic_bp =
@@ -2419,6 +2425,7 @@ export default {
2419 2425
           }
2420 2426
         }
2421 2427
       );
2428
+      this.loading = false
2422 2429
     },
2423 2430
 
2424 2431
     symptomTextareaBlur: function () {

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

@@ -33,8 +33,8 @@
33 33
           <th v-if="isShow('肝素用量余量')" width="92px">肝素用量余量(ml)</th>
34 34
           <th v-if="isShow('抗凝剂')" width="92px">抗凝剂</th>
35 35
           <th v-if="isShow('累计血容量')" width="92px">累计血容量 
36
-            <span v-if="template_id !=41">(ml)</span>
37
-            <span v-if="template_id == 41">(L)</span>
36
+            <span v-if="template_id !=41 && org_id!=9671 && org_id!=9538">(ml)</span>
37
+            <span v-if="template_id == 41 || org_id == 9671 || org_id == 9538">(L)</span>
38 38
           </th>
39 39
           <th v-if="isShow('血容量')" width="92px">血容量(L)</th>
40 40
           <th v-if="isShow('血温监测')" width="92px">血温监测</th>

+ 1 - 0
src/xt_pages/dialysis/dialysisPrintOrder.vue View File

@@ -1797,6 +1797,7 @@ export default {
1797 1797
           style: style12,
1798 1798
           scanStyles: false,
1799 1799
         });
1800
+        
1800 1801
       }else if (
1801 1802
         this.org_template_info.template_id == 54
1802 1803
       ) {

+ 3 - 3
src/xt_pages/dialysis/schedualPatient.vue View File

@@ -87,7 +87,7 @@
87 87
           <div v-if="zone_schedule.schedules.length > 0 && patientStateVal != 1" style="font-size:16px;font-weight: bold;color: #34495e;margin-right:10px;line-height:30px;">{{zone_schedule.zone_name}}</div>
88 88
           <patient-box :schedules="zone_schedule.schedules" :patientStateVal='patientStateVal' :selected_date="selected_date" style="flex:1"></patient-box>
89 89
         </div>
90
-        
90
+
91 91
         <div class="NoData" v-show="filtedSchedules.length == 0">
92 92
           <img src="@/assets/img/data.jpg" alt="">
93 93
         </div>
@@ -392,7 +392,7 @@ import { getDialysisRecordInitData, getDialysisSchedules } from '@/api/dialysis_
392 392
         this.websocket.onmessage = e => {
393 393
           let res = JSON.parse(e.data);
394 394
           // let res = re.data;
395
-          console.log('res3333333333',res)
395
+          console.log('res333adasda3333333',res)
396 396
           if(res.channel == 'queue/join'){
397 397
             let timeType = null
398 398
             if(this.schedule_type_selected == 1){
@@ -423,7 +423,7 @@ import { getDialysisRecordInitData, getDialysisSchedules } from '@/api/dialysis_
423 423
                 }
424 424
             }
425 425
             this.fisrtQueueInfo = fisrtQueueInfo
426
-            
426
+
427 427
             // this.fisrtQueueInfo = res.data.fisrtQueueInfo
428 428
             let arr = res.data.patientQueueList.data
429 429
             let waitingCalledArr = []

+ 23 - 15
src/xt_pages/dialysis/template/DialysisPrintOrderFiftyFour.vue View File

@@ -226,7 +226,7 @@
226 226
               ></label-box>
227 227
             </td>
228 228
           </tr>
229
-          <tr class="list_table_1" style="line-height:40px;">
229
+          <tr class="list_table_1" style="line-height: 40px">
230 230
             <td
231 231
               width="250"
232 232
               style="border-right: none; padding-left: 10px"
@@ -821,9 +821,11 @@
821 821
             <td v-if="advice_index === 1">体重增加量:</td>
822 822
             <td v-if="advice_index === 1">
823 823
               {{
824
-                (
825
-                  predialysis.weight_before - assessmentafter.weight_after
826
-                ).toFixed(2)
824
+                (assessmentafter.weight_after == 0
825
+                  ? 0
826
+                  : (
827
+                      predialysis.weight_before - assessmentafter.weight_after
828
+                    ).toFixed(2))
827 829
               }}kg
828 830
             </td>
829 831
             <td v-if="advice_index === 2">干体重(DW):</td>
@@ -831,9 +833,11 @@
831 833
             <td v-if="advice_index === 3">较干体重增加量:</td>
832 834
             <td v-if="advice_index === 3">
833 835
               {{
834
-                (afterdialysis.weight_after - predialysis.dry_weight).toFixed(
835
-                  2
836
-                )
836
+                afterdialysis.weight_after == 0
837
+                  ? 0
838
+                  : (
839
+                      afterdialysis.weight_after - predialysis.dry_weight
840
+                    ).toFixed(2)
837 841
               }}kg
838 842
             </td>
839 843
             <td v-if="advice_index === 4">净脱水量:</td>
@@ -847,9 +851,11 @@
847 851
             <td v-if="advice_index === 6">本次透析体重下降量:</td>
848 852
             <td v-if="advice_index === 6">
849 853
               {{
850
-                (
851
-                  predialysis.weight_before - afterdialysis.weight_after
852
-                ).toFixed(2)
854
+                afterdialysis.weight_after == 0
855
+                  ? 0
856
+                  : (
857
+                      predialysis.weight_before - afterdialysis.weight_after
858
+                    ).toFixed(2)
853 859
               }}kg
854 860
             </td>
855 861
             <td v-if="advice_index > 6"></td>
@@ -886,9 +892,11 @@
886 892
               >
887 893
                 {{
888 894
                   getAdminUser(
889
-                    prescription == null? 0: prescription.creater ? prescription.prescription_doctor: ""
890
-                     
891
-                     
895
+                    prescription == null
896
+                      ? 0
897
+                      : prescription.creater
898
+                      ? prescription.prescription_doctor
899
+                      : ""
892 900
                   )
893 901
                 }}
894 902
               </span>
@@ -901,8 +909,8 @@
901 909
                       : prescription.creater
902 910
                       ? prescription.creater
903 911
                       : ''
904
-                  ) "
905
-               
912
+                  )
913
+                "
906 914
                 alt=""
907 915
                 srcset=""
908 916
                 v-else

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

@@ -573,7 +573,7 @@
573 573
                           {{ monitor.systolic_blood_pressure ? monitor.systolic_blood_pressure + "/" : "" }}
574 574
                           {{ monitor.diastolic_blood_pressure ? monitor.diastolic_blood_pressure : "" }}
575 575
                         </td>
576
-                        <td>{{ monitor.monitor_temperature ? monitor.monitor_temperature : "" }}</td>
576
+                        <td>{{ monitor.temperature ? monitor.temperature : "" }}</td>
577 577
                         <td>{{ monitor.pulse_frequency ? monitor.pulse_frequency : "" }}</td>
578 578
                         <td>{{ monitor.breathing_rate ? monitor.breathing_rate : "" }}</td>
579 579
                         <td>{{ monitor.blood_flow_volume ? monitor.blood_flow_volume : "" }}

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

@@ -385,7 +385,8 @@
385 385
                             border-right: 1px solid;
386 386
                           "
387 387
                         >
388
-                          透析机:{{
388
+                          透析机:
389
+                         <span v-if="dialysisOrder!=null">{{
389 390
                             dialysisOrder &&
390 391
                             dialysisOrder.DeviceNumber &&
391 392
                             dialysisOrder.DeviceNumber.number.length > 0
@@ -393,6 +394,7 @@
393 394
                               : patientInfo.DialysisSchedule.device_number
394 395
                                   .number
395 396
                           }}
397
+                          </span> 
396 398
                         </div>
397 399
                         <div
398 400
                           style="
@@ -767,36 +769,36 @@
767 769
             <td>
768 770
               <table class="print-table" border="1" style="text-align: center">
769 771
                 <tr>
770
-                  <td style="height: 20px" width="50">
772
+                  <td style="height: 20px" width="60">
771 773
                     <p style="height: 20px; line-height: 20px">时间</p>
772 774
                   </td>
773 775
                   <td
774 776
                     style="height: 20px"
775
-                    width="100"
776
-                    v-if="org_id == 10346 || org_id == 9675"
777
+                    width="90"
778
+                    v-if="org_id == 10346 || org_id == 9675 || org_id == 0"
777 779
                   >
778 780
                     <p style="height: 20px; line-height: 20px">开嘱医生</p>
779 781
                   </td>
780
-                  <td style="height: 20px" width="420">
782
+                  <td style="height: 20px" width="344">
781 783
                     <p style="height: 20px; line-height: 20px">医嘱执行记录</p>
782 784
                   </td>
783 785
                   <td
784 786
                     style="height: 20px"
785
-                    width="100"
786
-                    v-if="org_id == 10346 || org_id == 9675"
787
+                    width="70"
788
+                    v-if="org_id == 10346 || org_id == 9675 || org_id == 0"
787 789
                   >
788 790
                     <p style="height: 20px; line-height: 20px">执行时间</p>
789 791
                   </td>
790
-                  <td style="height: 20px" width="85">
792
+                  <td style="height: 20px" width="90">
791 793
                     <p style="height: 20px; line-height: 20px">执行</p>
792 794
                   </td>
793
-                  <td style="height: 20px" width="85">
795
+                  <td style="height: 20px" width="90">
794 796
                     <p style="height: 20px; line-height: 20px">核对</p>
795 797
                   </td>
796
-                  <td style="height: 20px" width="145">
798
+                  <td style="height: 20px" width="144">
797 799
                     <p style="height: 20px; line-height: 20px">上次透后体重</p>
798 800
                   </td>
799
-                  <td style="height: 20px">
801
+                  <td style="height: 20px" width="60">
800 802
                     {{
801 803
                       patientInfo.total_dialysis +
802 804
                         patientInfo.user_sys_before_count >
@@ -817,35 +819,25 @@
817 819
             <td>
818 820
               <table class="print-table" border="1">
819 821
                 <tr>
820
-                  <td width="50">
822
+                  <td width="60">
821 823
                     {{ getTime(advice.start_time, "{h}:{i}") }}
822 824
                   </td>
823 825
                   <td
824 826
                     style="line-height: 30px"
825
-                    width="100"
826
-                    v-if="org_id == 10346 || org_id == 9675"
827
+                    width="90"
828
+                    v-if="org_id == 10346 || org_id == 9675 || org_id == 0"
827 829
                   >
828 830
                     <span v-if="setAdminUserES(advice.advice_doctor) == ''">
829 831
                       {{ getAdminUser(advice.advice_doctor) }}
830 832
                     </span>
831
-                    <span
832
-                      v-else
833
-                      style="
834
-                        display: flex;
835
-                        align-items: center;
836
-                        justify-content: space-around;
837
-                        height: 36px;
838
-                      "
839
-                    >
840
-                      <img
841
-                        style="height: 30px"
842
-                        :src="setAdminUserES(advice.advice_doctor)"
843
-                        alt
844
-                        srcset
845
-                      />
846
-                    </span>
833
+                    <img
834
+                      style="height: 30px"
835
+                      :src="setAdminUserES(advice.advice_doctor)"
836
+                      alt=""
837
+                      srcset=""
838
+                    />
847 839
                   </td>
848
-                  <td style="text-align: left; padding-left: 5px" width="415">
840
+                  <td style="text-align: left; padding-left: 5px" width="340">
849 841
                     <span v-if="advice.parent_id > 0">---></span>
850 842
                     <span>{{ advice.advice_name }}</span>
851 843
                     <span v-if="advice && advice.advice_desc"
@@ -870,15 +862,15 @@
870 862
                     <span>{{ advice.remark }}</span>
871 863
                   </td>
872 864
                   <td
873
-                    style="line-height: 30px"
874
-                    width="100"
875
-                    v-if="org_id == 10346 || org_id == 9675"
865
+                    style="line-height: 10px"
866
+                    width="70"
867
+                    v-if="org_id == 10346 || org_id == 9675 || org_id == 0"
876 868
                   >
877 869
                     <span v-if="advice.execution_time">{{
878 870
                       getTime(advice.execution_time, "{h}:{i}")
879 871
                     }}</span>
880 872
                   </td>
881
-                  <td style="line-height: 30px" width="85">
873
+                  <td style="line-height: 10px" width="90">
882 874
                     <span v-if="setAdminUserES(advice.execution_staff) == ''">{{
883 875
                       getAdminUser(advice.execution_staff)
884 876
                     }}</span>
@@ -887,10 +879,9 @@
887 879
                       :src="setAdminUserES(advice.execution_staff)"
888 880
                       alt=""
889 881
                       srcset=""
890
-                      v-else
891 882
                     />
892 883
                   </td>
893
-                  <td style="line-height: 30px" width="85">
884
+                  <td style="line-height: 30px" width="90">
894 885
                     <span v-if="setAdminUserES(advice.checker) == ''">{{
895 886
                       getAdminUser(advice.checker)
896 887
                     }}</span>
@@ -904,7 +895,7 @@
904 895
                   </td>
905 896
 
906 897
                   <td v-if="advice_index === 0" width="145">透前体重:</td>
907
-                  <td v-if="advice_index === 0">
898
+                  <td v-if="advice_index === 0" width="60">
908 899
                     {{
909 900
                       patientInfo.total_dialysis +
910 901
                         patientInfo.user_sys_before_count >
@@ -914,20 +905,20 @@
914 905
                     }}kg
915 906
                   </td>
916 907
                   <td v-if="advice_index === 1" width="145">体重增加量:</td>
917
-                  <td v-if="advice_index === 1">
908
+                  <td v-if="advice_index === 1" width="60">
918 909
                     {{
919 910
                       patientInfo.total_dialysis +
920 911
                         patientInfo.user_sys_before_count >
921
-                      0
912
+                        0 && assessmentafter.weight_after != 0
922 913
                         ? (
923 914
                             predialysis.weight_before -
924 915
                             assessmentafter.weight_after
925 916
                           ).toFixed(2)
926
-                        : "/"
917
+                        : 0
927 918
                     }}kg
928 919
                   </td>
929 920
                   <td v-if="advice_index === 2" width="145">干体重(DW):</td>
930
-                  <td v-if="advice_index === 2">
921
+                  <td v-if="advice_index === 2" width="60">
931 922
                     {{
932 923
                       patientInfo.total_dialysis +
933 924
                         patientInfo.user_sys_before_count >
@@ -937,19 +928,19 @@
937 928
                     }}kg
938 929
                   </td>
939 930
                   <td v-if="advice_index === 3" width="145">较干体重增加量:</td>
940
-                  <td v-if="advice_index === 3">
931
+                  <td v-if="advice_index === 3" width="60">
941 932
                     {{
942 933
                       patientInfo.total_dialysis +
943 934
                         patientInfo.user_sys_before_count >
944
-                      0
935
+                        0 && afterdialysis.weight_after != 0
945 936
                         ? (
946 937
                             afterdialysis.weight_after - predialysis.dry_weight
947 938
                           ).toFixed(2)
948
-                        : "/"
939
+                        : 0
949 940
                     }}kg
950 941
                   </td>
951 942
                   <td v-if="advice_index === 4" width="145">净脱水量:</td>
952
-                  <td v-if="advice_index === 4">
943
+                  <td v-if="advice_index === 4" width="60">
953 944
                     {{
954 945
                       patientInfo.total_dialysis +
955 946
                         patientInfo.user_sys_before_count >
@@ -959,7 +950,7 @@
959 950
                     }}ml
960 951
                   </td>
961 952
                   <td v-if="advice_index === 5" width="145">透后体重:</td>
962
-                  <td v-if="advice_index === 5">
953
+                  <td v-if="advice_index === 5" width="60">
963 954
                     {{
964 955
                       patientInfo.total_dialysis +
965 956
                         patientInfo.user_sys_before_count >
@@ -971,20 +962,20 @@
971 962
                   <td v-if="advice_index === 6" width="145">
972 963
                     本次透析体重下降量:
973 964
                   </td>
974
-                  <td v-if="advice_index === 6">
965
+                  <td v-if="advice_index === 6" width="60">
975 966
                     {{
976 967
                       patientInfo.total_dialysis +
977 968
                         patientInfo.user_sys_before_count >
978
-                      0
969
+                        0 && afterdialysis.weight_after != 0
979 970
                         ? (
980 971
                             predialysis.weight_before -
981 972
                             afterdialysis.weight_after
982 973
                           ).toFixed(2)
983
-                        : "/"
974
+                        : 0
984 975
                     }}kg
985 976
                   </td>
986 977
                   <td v-if="advice_index > 6" width="145"></td>
987
-                  <td v-if="advice_index > 6"></td>
978
+                  <td v-if="advice_index > 6" width="60"></td>
988 979
                 </tr>
989 980
               </table>
990 981
             </td>

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

@@ -425,13 +425,13 @@
425 425
                     <div class="inline_block" style="flex:1;">
426 426
                       置换方式:
427 427
                       <div class="under_line" style="width: 60px;text-align: center">
428
-                        {{ getDisplaceLiquiPart(prescription.displace_liqui_part) }}
428
+                        <span v-if="prescription.mode_id != 2 && prescription.mode_id!=5 && prescription.mode_id!=12"> {{ getDisplaceLiquiPart(prescription.displace_liqui_part) }} </span>
429 429
                       </div>
430 430
                     </div>
431 431
                     <div class="inline_block" style="flex:1;">
432 432
                       置换总量:
433 433
                       <div class="under_line" style="width: 50px;text-align: center">
434
-                        {{ prescription.displace_liqui_value ? prescription.displace_liqui_value : "/" }}
434
+                         <span v-if="prescription.mode_id != 2 && prescription.mode_id!=5 && prescription.mode_id!=12"> {{ prescription.displace_liqui_value ? prescription.displace_liqui_value : "/" }}</span>
435 435
                       </div>
436 436
                       L
437 437
                     </div>
@@ -628,7 +628,7 @@
628 628
                   <table class="inside_table">
629 629
                     <tbody>
630 630
                       <tr>
631
-                        <td colspan="11" style="letter-spacing:5px;text-align:center;font-weight:520;font-size:16px;padding: 0px 8px;line-height: 30px;">
631
+                        <td colspan="12" style="letter-spacing:5px;text-align:center;font-weight:520;font-size:16px;padding: 0px 8px;line-height: 30px;">
632 632
                           监测记录
633 633
                         </td>
634 634
                       </tr>
@@ -680,7 +680,7 @@
680 680
                         </td>
681 681
                       </tr>
682 682
                       <tr>
683
-                        <td colspan="11" style="line-height:25px;text-align:left;">
683
+                        <td colspan="12" style="line-height:25px;text-align:left;">
684 684
                           医师记录:{{ summary.special_record ? summary.special_record : '' }}
685 685
                         </td>
686 686
                       </tr>

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

@@ -674,9 +674,7 @@
674 674
                         class="under_line"
675 675
                         style="width: 100px; text-align: center"
676 676
                       >
677
-                        {{
678
-                          getDisplaceLiquiPart(prescription.displace_liqui_part)
679
-                        }}
677
+                       <span v-if="prescription.mode_id == 2 || prescription.mode_id == 5 || prescription.mode_id == 12">{{getDisplaceLiquiPart(prescription.displace_liqui_part)}}</span> 
680 678
                       </div>
681 679
                     </div>
682 680
                     <div
@@ -688,11 +686,7 @@
688 686
                         class="under_line"
689 687
                         style="width: 70px; text-align: center"
690 688
                       >
691
-                        {{
692
-                          prescription.displace_liqui_value
693
-                            ? prescription.displace_liqui_value
694
-                            : "/"
695
-                        }}
689
+                       <span v-if="prescription.mode_id == 2 || prescription.mode_id == 5 || prescription.mode_id == 12">{{ prescription.displace_liqui_value ? prescription.displace_liqui_value: "/"}} </span> 
696 690
                       </div>
697 691
                       L
698 692
                     </div>

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

@@ -2083,7 +2083,7 @@
2083 2083
                           white-space: normal;
2084 2084
                         "
2085 2085
                       >
2086
-                        <!-- {{ afterdialysis.cruor ? afterdialysis.cruor : "/" }} -->
2086
+                        {{ afterdialysis.accumulated_blood_volume ? afterdialysis.accumulated_blood_volume : "/" }}
2087 2087
                       </div>
2088 2088
                     </div>
2089 2089
                   </div>

+ 1 - 0
src/xt_pages/hospitalStation/chargeDetailManagement.vue View File

@@ -1776,6 +1776,7 @@ export default {
1776 1776
   height: 36px;
1777 1777
   display: flex;
1778 1778
   align-items: center;
1779
+  padding-top: 10px;
1779 1780
 }
1780 1781
 
1781 1782
 .fixedCell {

+ 6 - 2
src/xt_pages/hospitalStation/components/deskPrescription.vue View File

@@ -365,7 +365,7 @@
365 365
                   <el-input style="width:50%;" @input="searchProjectAction"
366 366
                             @keyup.enter.native='searchProjectAction'
367 367
                             v-model.trim="search_project_keyword"
368
-                            placeholder="请输入项目名称"></el-input>
368
+                            placeholder="请输入项目名称"></el-input><!--住院工作站-->
369 369
 
370 370
                   <el-select style="float: right;width: 49%;" v-model="value" placeholder=""
371 371
                              @change="changeClass">
@@ -667,16 +667,20 @@ export default {
667 667
   methods: {
668 668
 
669 669
     changeClass(id) {
670
+      console.log("asdaff,id",id)
671
+      console.log("asdaff,this.value",this.value)
672
+      console.log("asdaff,this.allProject",this.allProject)
670 673
       this.tabProject = []
671 674
       if (id == 0) {
672 675
         this.tabProject = this.allProject
673 676
       } else {
674 677
         for (let i = 0; i < this.allProject.length; i++) {
675
-          if (this.allProject[i].cost_classify == id) {
678
+          if (this.allProject[i].project.cost_classify == id) {
676 679
             this.tabProject.push(this.allProject[i])
677 680
           }
678 681
         }
679 682
       }
683
+
680 684
     },
681 685
     setMonthPrescription(month_prescriptions) {
682 686
       console.log('~~~~~~~~')

+ 4 - 4
src/xt_pages/hospitalStation/components/prescriptionTable.vue View File

@@ -471,14 +471,14 @@
471 471
               this.$message.error(scope.row.drug_name + '库存不足')
472 472
             }
473 473
           }
474
-         
474
+
475 475
         } else {
476 476
           if(scope.row.drug.is_user!=1){
477 477
             if ((parseInt(scope.row.prescribing_number) * scope.row.drug.min_number) > scope.row.drug.sum_count) {
478 478
               this.$message.error(scope.row.drug_name + '库存不足')
479 479
             }
480 480
           }
481
-        
481
+
482 482
           // scope.row.retail_price = scope.row.drug.retail_price * scope.row.prescribing_number
483 483
         }
484 484
 
@@ -521,14 +521,14 @@
521 521
               this.$message.error(scope.row.drug_name + '库存不足')
522 522
            }
523 523
           }
524
-        
524
+
525 525
         } else {
526 526
           if(scope.row.drug.is_user!=1){
527 527
             if ((parseInt(scope.row.prescribing_number) * scope.row.drug.min_number) > scope.row.drug.sum_count) {
528 528
               this.$message.error(scope.row.drug_name + '库存不足')
529 529
             }
530 530
           }
531
-         
531
+
532 532
         }
533 533
       },
534 534
       getProjectSingleDose(scope) {

+ 19 - 14
src/xt_pages/management/components/RepairForm.vue View File

@@ -35,7 +35,7 @@
35 35
         ></el-date-picker>
36 36
       </el-col>
37 37
       <el-col :span="2">
38
-        <el-button @click="queryRepair()">查询</el-button>
38
+        <el-button style="background-color:#409eff;color: #DCDFE6" @click="queryRepair()">查询</el-button>
39 39
       </el-col>
40 40
     </el-row>
41 41
     <el-row style="display: flex;align-items: center;">
@@ -406,6 +406,7 @@
406 406
         </el-row>
407 407
       </el-form>
408 408
       <span slot="footer" class="dialog-footer">
409
+<!--        <button @click="lili">调试</button>-->
409 410
         <el-button @click="dialogVisible = false">取 消</el-button>
410 411
         <el-button type="primary" @click="UpdateRepair('guaForm')"
411 412
           >保存</el-button
@@ -482,10 +483,12 @@ export default {
482 483
       limit: 10,
483 484
       page: 1,
484 485
       total: 0,
485
-      filename: ""
486 486
     };
487 487
   },
488 488
   methods: {
489
+    lili(){
490
+      console.log("this.guaForm",this.guaForm)
491
+    },
489 492
     changeCheck() {
490 493
       this.$refs.multipleTable.clearSelection();
491 494
       if (this.checkAllStatus) {
@@ -655,19 +658,21 @@ export default {
655 658
       window.location.href = this.guaForm.images;
656 659
     },
657 660
     UpdateRepair(formName) {
661
+      console.log("formName",formName)
662
+      console.log("this.guaForm",this.guaForm)
658 663
       this.$refs[formName].validate(valid => {
659
-        this.guaForm.start_time = uParseTime(
660
-          this.guaForm.start_time,
661
-          "{y}-{m}-{d} {h}:{i}"
662
-        );
663
-        this.guaForm.arrive_time = uParseTime(
664
-          this.guaForm.arrive_time,
665
-          "{y}-{m}-{d} {h}:{i}"
666
-        );
667
-        this.guaForm.finish_time = uParseTime(
668
-          this.guaForm.finish_time,
669
-          "{y}-{m}-{d} {h}:{i}"
670
-        );
664
+        // this.guaForm.start_time = uParseTime(
665
+        //   this.guaForm.start_time,
666
+        //   "{y}-{m}-{d} {h}:{i}"
667
+        // );
668
+        // this.guaForm.arrive_time = uParseTime(
669
+        //   this.guaForm.arrive_time,
670
+        //   "{y}-{m}-{d} {h}:{i}"
671
+        // );
672
+        // this.guaForm.finish_time = uParseTime(
673
+        //   this.guaForm.finish_time,
674
+        //   "{y}-{m}-{d} {h}:{i}"
675
+        // );
671 676
 
672 677
         if (this.guaForm.failure_stage === "") {
673 678
           this.guaForm.failure_stage = 0;

+ 828 - 0
src/xt_pages/outpatientDoctorStation/batch_delete.vue View File

@@ -0,0 +1,828 @@
1
+<template>
2
+  <!--批量删除-->
3
+  <div class="main-contain">
4
+    <div class="app-container">
5
+    <div class="bannar_list">
6
+      <div class="banner_left">
7
+        <div>
8
+          透析模式:
9
+          <el-select
10
+            v-model="modeOptions_value"
11
+            placeholder="请选择"
12
+            @change="getUsername"
13
+          >
14
+            <el-option
15
+              v-for="item in modeOptions"
16
+              :key="item.id"
17
+              :label="item.name"
18
+              :value="item.id"
19
+            >
20
+            </el-option>
21
+          </el-select>
22
+        </div>
23
+        <div>
24
+          删除类型:
25
+          <el-select
26
+            v-model="new_type"
27
+            placeholder="请选择"
28
+            @change="changetype"
29
+          >
30
+            <el-option
31
+              v-for="item in options"
32
+              :key="item.id"
33
+              :label="item.name"
34
+              :value="item.id"
35
+            >
36
+            </el-option>
37
+          </el-select>
38
+        </div>
39
+        <div v-if="new_type == 1">
40
+          请输入需要删除的药品:
41
+          <el-select
42
+            filterable
43
+            v-model="id"
44
+            placeholder="请选择"
45
+            @change="getUsername"
46
+          >
47
+            <el-option
48
+              v-for="item in druglist"
49
+              :key="item.id"
50
+              :label="item.name"
51
+              :value="item.id"
52
+            >
53
+            </el-option>
54
+          </el-select>
55
+        </div>
56
+        <div v-if="new_type == 2">
57
+          请输入需要删除的项目:
58
+          <el-select
59
+            filterable
60
+            v-model="id"
61
+            placeholder="请选择"
62
+            @change="getUsername"
63
+          >
64
+            <el-option
65
+              v-for="item in projectlist"
66
+              :key="item.id"
67
+              :label="item.name"
68
+              :value="item.id"
69
+            >
70
+            </el-option>
71
+          </el-select>
72
+        </div>
73
+      </div>
74
+
75
+      <!--        <button @click="lili">调试</button>-->
76
+      <el-button type="primary" @click="save">保存</el-button>
77
+    </div>
78
+
79
+    <el-container>
80
+      <div class="left_table" style="width: 211px;height: 70vh;border: 1px solid #DCDFE6;box-shadow: 0 2px 4px 0 rgb(0 0 0 / 12%), 0 0 6px 0 rgb(0 0 0 / 4%);">
81
+        <el-table
82
+          border
83
+          height="70vh"
84
+          ref="multipleTable"
85
+          :data="tableData"
86
+          tooltip-effect="dark"
87
+          style="width: 100%;"
88
+          @selection-change="handleSelectionChange"
89
+          @current-change="test"
90
+          :row-style="{ color: '#303133' }"
91
+          :header-cell-style="{
92
+            backgroundColor: 'rgb(245, 247, 250)',
93
+            color: '#606266',
94
+          }"
95
+        >
96
+          <el-table-column type="selection" width="55" align="center"> </el-table-column>
97
+          <el-table-column label="患者姓名" width="155" align="center">
98
+            <template slot-scope="scope">{{ scope.row.name }}</template>
99
+          </el-table-column>
100
+        </el-table>
101
+      </div>
102
+
103
+      <el-main>
104
+        <el-tabs type="border-card" v-if="isshow == 1 && list.length > 0" style="min-height: 70vh;">
105
+        <el-tab-pane
106
+          v-for="(item, index) in list"
107
+          :key="index"
108
+          :label="'处方' + (index + 1)"
109
+          :name="index"
110
+        >
111
+          <el-table
112
+            v-if="item.advices.length > 0"
113
+            :data="item.advices"
114
+            style="width: 100%"
115
+            max-height="250"
116
+            border
117
+            :row-style="{ color: '#303133' }"
118
+            :header-cell-style="{
119
+              backgroundColor: 'rgb(245, 247, 250)',
120
+              color: '#606266',
121
+            }"
122
+          >
123
+            <el-table-column fixed label="药品名称" width="230" align="center">
124
+              <template slot-scope="scope">
125
+                {{ scope.row.advice_name }}
126
+              </template>
127
+            </el-table-column>
128
+            <el-table-column label="单次用量" width="200" align="center">
129
+              <template slot-scope="scope">
130
+                {{ scope.row.single_dose }}{{ scope.row.single_dose_unit }}
131
+              </template>
132
+            </el-table-column>
133
+            <el-table-column label="用法" width="120" align="center">
134
+              <template slot-scope="scope">
135
+                {{ scope.row.delivery_way }}
136
+              </template>
137
+            </el-table-column>
138
+            <el-table-column label="频率" width="120" align="center">
139
+              <template slot-scope="scope">
140
+                {{ scope.row.execution_frequency }}
141
+              </template>
142
+            </el-table-column>
143
+            <el-table-column label="天数" width="110" align="center">
144
+              <template slot-scope="scope"> {{ scope.row.day }}天 </template>
145
+            </el-table-column>
146
+            <el-table-column label="总量" width="200" align="center">
147
+              <template slot-scope="scope">
148
+                {{ scope.row.prescribing_number
149
+                }}{{ scope.row.prescribing_number_unit }}
150
+              </template>
151
+            </el-table-column>
152
+            <el-table-column label="单价" width="120" align="center">
153
+              <template slot-scope="scope"> {{ scope.row.price }}元 </template>
154
+            </el-table-column>
155
+            <el-table-column label="备注" width="120" align="center">
156
+              <template slot-scope="scope">
157
+                {{ scope.row.remark }}
158
+              </template>
159
+            </el-table-column>
160
+            <el-table-column label="操作" width="120" align="center">
161
+              <template slot-scope="scope">
162
+                <el-button
163
+                  @click.native.prevent="delects(scope.$index, scope, item)"
164
+                  type="danger"
165
+                  size="small"
166
+                >
167
+                  删除
168
+                </el-button>
169
+              </template>
170
+            </el-table-column>
171
+          </el-table>
172
+
173
+          <el-table
174
+            v-if="item.project.length > 0"
175
+            :data="item.project"
176
+            style="width: 100%"
177
+            max-height="250"
178
+            border
179
+            :row-style="{ color: '#303133' }"
180
+            :header-cell-style="{
181
+              backgroundColor: 'rgb(245, 247, 250)',
182
+              color: '#606266',
183
+            }"
184
+          >
185
+            <el-table-column fixed label="项目名称" width="230" align="center">
186
+              <template slot-scope="scope">
187
+                <div v-if="scope.row.type == 2">
188
+                  {{ scope.row.project.project_name }}
189
+                </div>
190
+                <div v-if="scope.row.type == 3">
191
+                  {{ scope.row.good_info.good_name }}
192
+                </div>
193
+              </template>
194
+            </el-table-column>
195
+            <el-table-column label="组" width="120" align="center">
196
+              <template slot-scope="scope">
197
+                <div v-if="scope.row.type == 2">
198
+                  {{ scope.row.project.translate }}
199
+                </div>
200
+                <div v-if="scope.row.type == 3">
201
+                  {{ scope.row.good_info.translate }}
202
+                </div>
203
+              </template>
204
+            </el-table-column>
205
+            <el-table-column label="单次用量" width="120" align="center">
206
+              <template slot-scope="scope">
207
+                {{ scope.row.single_dose }}
208
+                {{ scope.row.unit }}
209
+              </template>
210
+            </el-table-column>
211
+            <el-table-column label="用法" width="120" align="center">
212
+              <template slot-scope="scope">
213
+                {{ scope.row.delivery_way }}
214
+              </template>
215
+            </el-table-column>
216
+            <el-table-column label="频率" width="120" align="center">
217
+              <template slot-scope="scope">
218
+                {{ scope.row.execution_frequency }}
219
+              </template>
220
+            </el-table-column>
221
+            <el-table-column label="天数" width="110" align="center">
222
+              <template slot-scope="scope"> {{ scope.row.day }}天 </template>
223
+            </el-table-column>
224
+            <el-table-column label="总量" width="100" align="center">
225
+              <template slot-scope="scope">
226
+                {{ scope.row.count }}
227
+                {{ scope.row.unit }}
228
+              </template>
229
+            </el-table-column>
230
+            <el-table-column label="单价" width="120" align="center">
231
+              <template slot-scope="scope"> {{ scope.row.price }}元 </template>
232
+            </el-table-column>
233
+            <el-table-column label="备注" width="120" align="center">
234
+              <template slot-scope="scope">
235
+                {{ scope.row.remark }}
236
+              </template>
237
+            </el-table-column>
238
+            <el-table-column label="推送频率" width="120" align="center">
239
+              <template slot-scope="scope">
240
+                <div v-if="scope.row.frequency_type == 1">
241
+                  {{ "每次必推" }}
242
+                </div>
243
+                <div v-if="scope.row.frequency_type == 2">
244
+                  {{ scope.row.day_count }}天/次
245
+                </div>
246
+                <div v-if="scope.row.frequency_type == 3">
247
+                  {{ scope.row.week_days }}
248
+                </div>
249
+              </template>
250
+            </el-table-column>
251
+            <el-table-column fixed="right" label="操作" width="102" align="center">
252
+              <template slot-scope="scope">
253
+                <el-button
254
+                  @click.native.prevent="delects(scope.$index, scope, item)"
255
+                  type="danger"
256
+                  size="small"
257
+                >
258
+                  删除
259
+                </el-button>
260
+              </template>
261
+            </el-table-column>
262
+          </el-table>
263
+        </el-tab-pane>
264
+      </el-tabs>
265
+      </el-main>
266
+      
267
+    </el-container>
268
+  
269
+  </div>
270
+  </div>
271
+</template>
272
+<script>
273
+import { gethisusertoalive } from "@/api/deposit";
274
+import {
275
+  getdrugsinformation,
276
+  replacepeoplename,
277
+  replaceconfig,
278
+  deletedrugsbatch,
279
+  batchdeleteitems,
280
+  getmodeconfigs,
281
+  ptemplateinformation,
282
+  deleteone,
283
+} from "@/api/batch/batch";
284
+
285
+export default {
286
+  data() {
287
+    return {
288
+      dialogVisible: false,
289
+      tableList: [],
290
+      editableTabsValue: "1",
291
+      modeOptions: {},
292
+      tableDatas: [
293
+        {
294
+          id: "",
295
+          drug_name: "",
296
+          single_dose: "",
297
+          single_dose_unit: "",
298
+          delivery_way: "",
299
+          execution_frequency: "",
300
+          day: "",
301
+          prescribing_number: "",
302
+          prescribing_number_unit: "",
303
+          price: "",
304
+          remark: "",
305
+        },
306
+      ], //药品
307
+      project: [
308
+        {
309
+          id: "",
310
+          drug_name: "",
311
+          translate: "",
312
+          single_dose: "",
313
+          unit: "",
314
+          delivery_way: "",
315
+          execution_frequency: "",
316
+          day: "",
317
+          prescribing_number: "",
318
+          price: "",
319
+          remark: "",
320
+          frequency_type: 1,
321
+          day_count: "",
322
+          week_days: "",
323
+        },
324
+      ], //项目
325
+      tabIndex: 2,
326
+      modeOptions_value: 1, //透析模式
327
+      multipleSelection: [], //选中的患者
328
+      tableData: [],
329
+      options: [
330
+        { id: 1, name: "药品" },
331
+        { id: 2, name: "项目" },
332
+      ],
333
+      options_patient: [
334
+        { id: 1, name: "是" },
335
+        { id: 2, name: "否" },
336
+      ],
337
+      options_2: [
338
+        { id: 1, name: "普通门诊" },
339
+        { id: 2, name: "门诊特殊病" },
340
+      ],
341
+      new_type: 1, //新增类型
342
+      druglist: [], //药品列表
343
+      projectlist: [], //项目列表
344
+      id: "", //药品、项目、耗材
345
+      tmplist: [], //临时
346
+      unit: [
347
+        { id: 1, name: "g" },
348
+        { id: 2, name: "mg" },
349
+        { id: 3, name: "u" },
350
+        { id: 4, name: "ml" },
351
+        { id: 5, name: "万U" },
352
+        { id: 6, name: "枚" },
353
+        { id: 7, name: "粒" },
354
+        { id: 8, name: "片" },
355
+        { id: 9, name: "支" },
356
+        { id: 10, name: "μg" },
357
+        { id: 11, name: "iu" },
358
+        { id: 12, name: "包" },
359
+        { id: 13, name: "袋" },
360
+        { id: 14, name: "万" },
361
+        { id: 15, name: "万iu" },
362
+        { id: 16, name: "丸" },
363
+        { id: 17, name: "盒" },
364
+        { id: 18, name: "瓶" },
365
+        { id: 19, name: "瓶(袋)" },
366
+        { id: 20, name: "次" },
367
+      ],
368
+      usage: [], //用法
369
+      frequency: [], //频率
370
+      frequency_type: "", //周期提醒
371
+      day_count: "", //周期提醒天
372
+      week_days: [], //周期提醒星期
373
+      tabhang: 0, //tab的下标
374
+      hang: 0, //行数
375
+      list: [],
376
+      isshow: 0, //是否显示处方
377
+      tmpid: 0,
378
+    };
379
+  },
380
+  created() {
381
+    // console.log("this.$store.getters.treatment_mode",this.$store.getters.treatment_mode)
382
+    for (let key in this.$store.getters.treatment_mode) {
383
+      this.modeOptions[key] = this.$store.getters.treatment_mode[key];
384
+    }
385
+    // console.log("this.modeOptions",this.modeOptions)
386
+    this.getdrugconfigs();
387
+    this.isshow = 0;
388
+    this.tmpid = 0;
389
+  },
390
+  methods: {
391
+    save() {
392
+      var tmp = this.modeOptions[this.modeOptions_value].name;
393
+      var tmp2 = "";
394
+      if (this.druglist != null) {
395
+        for (let i = 0; i < this.druglist.length; i++) {
396
+          if (this.id == this.druglist[i].id) {
397
+            tmp2 = this.druglist[i].name;
398
+          }
399
+        }
400
+      }
401
+      if (this.projectlist != null) {
402
+        for (let j = 0; j < this.projectlist.length; j++) {
403
+          if (this.id == this.projectlist[j].id) {
404
+            tmp2 = this.projectlist[j].name;
405
+          }
406
+        }
407
+      }
408
+      this.$confirm(
409
+        "请确定是否删除?", //注:该操作将会把所选患者的"+tmp+"透析模式中的"+tmp2+"进行删除,
410
+        "",
411
+        {
412
+          confirmButtonText: "确 定",
413
+          cancelButtonText: "取 消",
414
+          type: "warning",
415
+        }
416
+      ).then(() => {
417
+        if (this.multipleSelection.length == 0) {
418
+          this.$message.error("没有选中有效信息");
419
+          return;
420
+        }
421
+        let st = "";
422
+        for (let i = 0; i < this.multipleSelection.length; i++) {
423
+          st = st + this.multipleSelection[i].id + ",";
424
+        }
425
+        console.log("string", st);
426
+        let params = {
427
+          mode_id: this.modeOptions_value,
428
+          patient_id: st,
429
+          type: this.new_type,
430
+          replaced: this.id,
431
+        };
432
+        if (this.new_type == 1) {
433
+          deletedrugsbatch(params).then((res) => {
434
+            if (res.data.state == 1) {
435
+              this.$message.success("删除成功");
436
+              this.getUsername();
437
+            } else {
438
+              this.$message.error(res.data.msg);
439
+            }
440
+          });
441
+        } else {
442
+          batchdeleteitems(params).then((res) => {
443
+            if (res.data.state == 1) {
444
+              this.$message.success("删除成功");
445
+              this.getUsername();
446
+            } else {
447
+              this.$message.error(res.data.msg);
448
+            }
449
+          });
450
+        }
451
+      });
452
+    },
453
+    test(val) {
454
+      console.log("val?:", val);
455
+      this.tmpid = val.id;
456
+      var params = {
457
+        mode_id: this.modeOptions_value,
458
+        patient_id: val.id,
459
+      };
460
+      ptemplateinformation(params).then((res) => {
461
+        if (res.data.state == 1) {
462
+          this.list = res.data.data.list;
463
+          this.isshow = 1;
464
+        }
465
+      });
466
+    },
467
+    lili() {
468
+      console.log("this.list", this.list);
469
+      console.log("this.multipleSelection", this.multipleSelection);
470
+      // console.log("this.mode",this.modeOptions_value)
471
+      // console.log("this.projectlist2",this.projectlist2)
472
+      // console.log("patient_value",this.patient_value)
473
+    },
474
+    delects(hang, sc, item) {
475
+      this.$confirm("删除后不可恢复,是否确认删除?", "删除", {
476
+        confirmButtonText: "确定",
477
+        cancelButtonText: "取消",
478
+        type: "warning",
479
+      })
480
+        .then(() => {
481
+          var params = {
482
+            type: item.type, //1药品2项目
483
+            id: sc.row.id,
484
+          };
485
+          var params2 = {
486
+            mode_id: this.modeOptions_value,
487
+            patient_id: this.tmpid,
488
+          };
489
+          deleteone(params).then((res) => {
490
+            if (res.data.state == 1) {
491
+              this.$message.success("删除成功");
492
+              ptemplateinformation(params2).then((res) => {
493
+                if (res.data.state == 1) {
494
+                  this.list = res.data.data.list;
495
+                  this.isshow = 1;
496
+                }
497
+              });
498
+            }
499
+          });
500
+        })
501
+        .catch(() => {
502
+          this.$message({
503
+            type: 'success',
504
+            message: "已取消删除",
505
+          });
506
+        });
507
+      // console.log("hang",hang)
508
+      // console.log("sc",sc)
509
+      // console.log("item",item)
510
+    },
511
+    changetype() {
512
+      console.log(">>>>>>>", this.new_type);
513
+      this.id = "";
514
+      this.tableData = [];
515
+    },
516
+    changeid(item, index) {
517
+      item.id = item.drug_name;
518
+      var params = {
519
+        id: item.id,
520
+      };
521
+      getdrugsinformation(params).then((res) => {
522
+        if (res.data.state == 1) {
523
+          console.log("res??", res);
524
+          this.tableDatas[0].single_dose = res.data.data.list[0].single_dose;
525
+          this.tableDatas[0].single_dose_unit =
526
+            res.data.data.list[0].single_dose_unit;
527
+          this.tableDatas[0].delivery_way = res.data.data.list[0].delivery_way;
528
+          this.tableDatas[0].execution_frequency =
529
+            res.data.data.list[0].execution_frequency;
530
+          this.tableDatas[0].day = res.data.data.list[0].drug_day;
531
+          this.tableDatas[0].prescribing_number =
532
+            res.data.data.list[0].prescribing_number;
533
+          this.tableDatas[0].prescribing_number_unit =
534
+            res.data.data.list[0].prescribing_number_unit;
535
+          this.tableDatas[0].price = res.data.data.list[0].retail_price;
536
+          this.tableDatas[0].remark = res.data.data.list[0].remark;
537
+        }
538
+      });
539
+    },
540
+    handleSelectionChange(val) {
541
+      this.multipleSelection = val;
542
+    },
543
+    changeid2(item, index) {
544
+      item.id = item.drug_name;
545
+      var params = {
546
+        id: item.id,
547
+      };
548
+      getdrugsinformation(params).then((res) => {
549
+        if (res.data.state == 1) {
550
+          console.log("res??", res);
551
+          this.project[0].single_dose = res.data.data.list[0].single_dose;
552
+          this.project[0].translate = res.data.data.list[0].translate;
553
+          this.project[0].delivery_way = res.data.data.list[0].delivery_way;
554
+          this.project[0].execution_frequency =
555
+            res.data.data.list[0].execution_frequency;
556
+          this.project[0].day = res.data.data.list[0].day;
557
+          this.project[0].prescribing_number =
558
+            res.data.data.list[0].prescribing_number;
559
+          this.project[0].unit = res.data.data.list[0].unit;
560
+          this.project[0].price = res.data.data.list[0].retail_price;
561
+          this.project[0].remark = res.data.data.list[0].remark;
562
+        }
563
+      });
564
+    },
565
+    //获取配置
566
+    getdrugconfigs() {
567
+      var params = {};
568
+      replaceconfig(params).then((res) => {
569
+        if (res.data.state == 1) {
570
+          this.druglist = res.data.data.list;
571
+          this.projectlist = res.data.data.list2;
572
+        }
573
+      });
574
+      getmodeconfigs(params).then((res) => {
575
+        if (res.data.state == 1) {
576
+          this.frequency = res.data.data.efs;
577
+          this.usage = res.data.data.drugways;
578
+        }
579
+      });
580
+    },
581
+    getUsername() {
582
+      var params = {
583
+        id: this.id,
584
+        mode: this.modeOptions_value,
585
+      };
586
+      replacepeoplename(params).then((res) => {
587
+        if (res.data.state == 1) {
588
+          this.tableData = res.data.data.list;
589
+        }
590
+      });
591
+    },
592
+    handleClose(done) {
593
+      this.$confirm("确认关闭?")
594
+        .then((_) => {
595
+          done();
596
+        })
597
+        .catch((_) => {});
598
+    },
599
+  },
600
+};
601
+</script>
602
+
603
+
604
+
605
+<style lang="scss" scoped>
606
+::v-deep .el-tabs__content {
607
+  padding: 8px;
608
+}
609
+
610
+/deep/ .el-table__fixed {
611
+  bottom: 0px !important;
612
+}
613
+.app-container {
614
+  padding: 10px;
615
+  background: #f6f8f9;
616
+}
617
+::v-deep .el-table__body-wrapper {
618
+  height: 500px;
619
+  overflow-y: scroll;
620
+
621
+}
622
+.bannar_list {
623
+  margin-bottom: 10px;
624
+  display: flex;
625
+  justify-content: space-between;
626
+  .banner_left {
627
+    width: 960px;
628
+    display: flex;
629
+    justify-content: space-around;
630
+    div {
631
+      white-space: nowrap;
632
+      font-size: 14px;
633
+      color: #606266;
634
+    }
635
+  }
636
+}
637
+.left_table{
638
+  /deep/ .el-table{
639
+    .el-table__body-wrapper{
640
+      overflow-x: hidden;
641
+    }
642
+  }
643
+}
644
+.frequence {
645
+  text-align: center;
646
+}
647
+/deep/ .el-button--small {
648
+  padding: 9px 6px;
649
+}
650
+.zone {
651
+  //  margin-left: 30px;
652
+  //  text-align: left;
653
+  width: 70px;
654
+  display: inline-block;
655
+  color: #606266;
656
+}
657
+.disinfect {
658
+  position: relative;
659
+  .newButton {
660
+    // position: absolute;
661
+    // right: 2%;
662
+    // top:4px;
663
+    // z-index: 9;
664
+    margin-bottom: 10px;
665
+    margin-left: 90%;
666
+  }
667
+}
668
+.disinfectOne {
669
+  position: relative;
670
+  .newButtonOne {
671
+    position: absolute;
672
+    right: 0;
673
+    top: -10;
674
+    z-index: 18;
675
+  }
676
+}
677
+.but {
678
+  width: 200px;
679
+  height: 50px;
680
+  // border: solid 1px red;
681
+  margin-left: 77%;
682
+}
683
+.clearn {
684
+  width: 460px;
685
+  height: 50px;
686
+  // border:solid 1px red;
687
+  margin-left: 650px;
688
+}
689
+
690
+.zClass {
691
+  width: 200px;
692
+  height: 200px;
693
+  // border:solid 1px red;
694
+  margin-left: 450px;
695
+  margin-top: 200px;
696
+}
697
+.warn {
698
+  color: red;
699
+  font-size: 14px;
700
+  width: 100%;
701
+  display: inline-block;
702
+  margin-left: 96px;
703
+}
704
+
705
+.userbutton {
706
+  margin-bottom: 10px;
707
+  margin-left: 82%;
708
+}
709
+</style>
710
+<style lang="scss" >
711
+.a {
712
+  margin-bottom: 10px;
713
+  margin-top: 6px;
714
+}
715
+
716
+.b {
717
+  .el-button {
718
+    margin-left: 90%;
719
+    margin-bottom: 10px;
720
+  }
721
+}
722
+
723
+.stoppage {
724
+  .el-form-item__label {
725
+    width: 190px;
726
+  }
727
+}
728
+.st {
729
+  .el-form-item__label {
730
+    width: -10px;
731
+  }
732
+}
733
+.main {
734
+  position: relative;
735
+  .newButtonOne {
736
+    position: absolute;
737
+    right: 0;
738
+    z-index: 2;
739
+  }
740
+}
741
+
742
+.elbutton {
743
+  // border: solid 1px red;
744
+  height: 50px;
745
+  width: 400px;
746
+  margin-left: 650px;
747
+}
748
+// .el-form-item__label {
749
+//   width: 130px;
750
+//   font-size: 14px;
751
+// }
752
+.el-form-item__error {
753
+  margin-left: 130px;
754
+}
755
+
756
+.el-upload-list__item-name {
757
+  color: #606266;
758
+  display: block;
759
+  margin-right: 40px;
760
+  overflow: hidden;
761
+  padding-left: 4px;
762
+  text-overflow: ellipsis;
763
+  transition: color 0.3s;
764
+  white-space: nowrap;
765
+}
766
+.el-main {
767
+  padding-top: 0px;
768
+  padding-left: 18px;
769
+  padding-right: 0px;
770
+  .el-tabs{
771
+    .el-tabs__content{
772
+      padding: 12px;
773
+      .el-table .el-table__header-wrapper table{
774
+        width: 100% !important;
775
+      }
776
+      .el-table .el-table__body-wrapper table{
777
+        width: 100% !important;
778
+      }
779
+    }
780
+  }
781
+}
782
+
783
+.newMain {
784
+  .el-form-item__label {
785
+    width: 104px;
786
+  }
787
+}
788
+.newDisinfectOne {
789
+  .el-input--prefix .el-input__inner {
790
+    // padding-left: 15px;
791
+    padding-right: 0px !important;
792
+  }
793
+}
794
+.stoppage {
795
+  .el-form-item__label {
796
+    width: 18%;
797
+  }
798
+}
799
+.newItem {
800
+  .el-form-item__label {
801
+    width: 130px;
802
+  }
803
+}
804
+.formItem {
805
+  .el-form-item__label {
806
+    width: 104px;
807
+    line-height: 30px;
808
+  }
809
+}
810
+.newname {
811
+  .el-form-item__label {
812
+    width: 60px;
813
+  }
814
+}
815
+::-webkit-scrollbar {
816
+  height: 20px;
817
+}
818
+
819
+.el-table td .cell {
820
+  padding: 0 5px !important;
821
+}
822
+.addTab {
823
+  position: absolute;
824
+  right: 8px;
825
+  top: 3px;
826
+  z-index: 20;
827
+}
828
+</style>

File diff suppressed because it is too large
+ 1240 - 260
src/xt_pages/outpatientDoctorStation/batch_mode_template.vue


File diff suppressed because it is too large
+ 1337 - 0
src/xt_pages/outpatientDoctorStation/batch_replacement.vue


+ 10 - 5
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue View File

@@ -667,12 +667,15 @@
667 667
     methods: {
668 668
 
669 669
       changeClass(id) {
670
+        console.log("asdaff,id",id)
671
+        console.log("asdaff,this.value",this.value)
672
+        console.log("asdaff,this.allProject",this.allProject)
670 673
         this.tabProject = []
671 674
         if (id == 0) {
672 675
           this.tabProject = this.allProject
673 676
         } else {
674 677
           for (let i = 0; i < this.allProject.length; i++) {
675
-            if (this.allProject[i].cost_classify == id) {
678
+            if (this.allProject[i].project.cost_classify == id) {
676 679
               this.tabProject.push(this.allProject[i])
677 680
             }
678 681
           }
@@ -1818,7 +1821,7 @@
1818 1821
       },
1819 1822
 
1820 1823
       tabclickEvent(val) {
1821
-
1824
+        console.log("li3333333333333li")
1822 1825
         for (let i = 0; i < this.prescriptions.length; i++) {
1823 1826
           if (this.prescriptions[i].name == val.name) {
1824 1827
             this.prescription_id = this.prescriptions[i].id
@@ -2154,10 +2157,12 @@
2154 2157
       },
2155 2158
 
2156 2159
       moreState(tab, event) {
2160
+        console.log("li222222222")
2157 2161
         if (tab == 'more') {
2158 2162
           return false
2159 2163
         }
2160
-      }, open_three() {
2164
+      },
2165
+      open_three() {
2161 2166
         for (let i = 0; i < this.prescriptions.length; i++) {
2162 2167
           for (let b = 0; b < this.prescriptions[i].advices.length; b++) {
2163 2168
             if (this.prescriptions[i].advices[b].prescribing_number == 0 || this.prescriptions[i].advices[b].prescribing_number == '') {
@@ -2654,7 +2659,7 @@
2654 2659
       },
2655 2660
       addTab(targetName) {
2656 2661
 
2657
-        console.log("this.prescriptions",this.prescriptions)
2662
+        console.log("this.prescriptionsaaaaaa",this.prescriptions)
2658 2663
         for(let i = 0; i < this.prescriptions.length; i++){
2659 2664
           if (this.prescriptions[i].is_medicine_status) {
2660 2665
             this.$message.error('处方中包含已发药处方,无法新增')
@@ -2741,7 +2746,7 @@
2741 2746
 
2742 2747
       },
2743 2748
       removeTab(targetName) {
2744
-
2749
+        console.log("1111111111111111")
2745 2750
         if (this.curPrescriptions.order_status == 2 || this.curPrescriptions.order_status == 5 || this.curPrescriptions.is_medicine_status) {
2746 2751
           this.$message.error('该处方已经结算或者记账或者已发药,无法删除')
2747 2752
           return

+ 22 - 13
src/xt_pages/outpatientDoctorStation/components/prescriptionTemplateTable.vue View File

@@ -4,19 +4,19 @@
4 4
         <el-table v-if="prescription.advices && prescription.advices.length > 0" :data="prescription.advices" border
5 5
                   style="width: 99%;" :row-style="{ color: '#303133' }"
6 6
                   :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}" highlight-current-row>
7
-            <el-table-column align="center" width="70" label="序号">
7
+            <el-table-column align="center" width="50" label="序号">
8 8
                 <template slot-scope="scope">
9 9
                     <div style="display:flex;align-items:center;">
10 10
                         <el-input v-model="scope.row.groupno" placeholder=""></el-input>
11 11
                     </div>
12 12
                 </template>
13 13
             </el-table-column>
14
-            <el-table-column align="center" prop="drug_name" label="名称">
14
+            <el-table-column align="center" prop="drug_name" label="名称"  width="297" >
15 15
                 <template slot-scope="scope"><span :title="scope.row.drug_name">{{ scope.row.drug_name }}</span>
16 16
                 </template>
17 17
             </el-table-column>
18 18
 
19
-          <el-table-column align="center" prop="single_dose" width="120" label="单次用量">
19
+          <el-table-column align="center" prop="single_dose" width="150" label="单次用量">
20 20
             <template slot-scope="scope">
21 21
               <div style="display:flex;align-items:center;">
22 22
                 <el-input v-model="scope.row.single_dose" @input="getAllChange(scope)"
@@ -32,7 +32,7 @@
32 32
               </div>
33 33
             </template>
34 34
           </el-table-column>
35
-            <el-table-column align="center" prop="delivery_way" width="100" label="用法">
35
+            <el-table-column align="center" prop="delivery_way" width="110" label="用法">
36 36
                 <template slot-scope="scope">
37 37
                     <el-select v-model="scope.row.delivery_way" placeholder="请选择">
38 38
                         <el-option
@@ -44,7 +44,7 @@
44 44
                     </el-select>
45 45
                 </template>
46 46
             </el-table-column>
47
-            <el-table-column align="center" prop="execution_frequency" width="100" label="频率">
47
+            <el-table-column align="center" prop="execution_frequency" width="110" label="频率">
48 48
                 <template slot-scope="scope">
49 49
                     <el-select v-model="scope.row.execution_frequency" placehold er="请选择" @change="getAllChange(scope)">
50 50
                         <el-option
@@ -58,7 +58,7 @@
58 58
             </el-table-column>
59 59
 
60 60
 
61
-            <el-table-column align="center" prop="day" width="70" label="天数">
61
+            <el-table-column align="center" prop="day" width="90" label="天数">
62 62
                 <template slot-scope="scope">
63 63
                     <div style="display:flex;align-items:center;">
64 64
                         <el-input v-model="scope.row.day" @input="getAllChange(scope)" placeholder=""></el-input>
@@ -83,7 +83,7 @@
83 83
                     </div>
84 84
                 </template>
85 85
             </el-table-column>
86
-            <el-table-column align="center" prop="retail_price" width="80" label="单价">
86
+            <el-table-column align="center" prop="retail_price" width="100" label="单价">
87 87
                 <template slot-scope="scope">
88 88
                     <div style="display:flex;align-items:center;">
89 89
                         <el-input v-model="scope.row.retail_price" placeholder="" readonly></el-input>
@@ -92,13 +92,13 @@
92 92
 
93 93
                 </template>
94 94
             </el-table-column>
95
-            <el-table-column align="center" prop="remark" width="50" label="备注">
95
+            <el-table-column align="center" prop="remark" width="100" label="备注">
96 96
                 <template slot-scope="scope">
97 97
                     <el-input v-model="scope.row.remark" :title="scope.row.remark" placeholder=""></el-input>
98 98
                 </template>
99 99
             </el-table-column>
100 100
 
101
-            <el-table-column align="center" prop="remark" width="50" label="推送频率">
101
+            <el-table-column align="center" prop="remark" width="80" label="推送频率">
102 102
                 <template slot-scope="scope">
103 103
                     <div v-if="scope.row.frequency_type == 1">{{'每次必推'}}</div>
104 104
                     <div v-if="scope.row.frequency_type == 2">{{scope.row.day_count}}天/次</div>
@@ -108,7 +108,7 @@
108 108
             </el-table-column>
109 109
 
110 110
 
111
-            <el-table-column align="center" width="100" prop="name" label="操作">
111
+            <el-table-column align="center" width="140" prop="name" label="操作">
112 112
                 <template slot-scope="scope">
113 113
                     <!--<i class="el-icon-delete" @click="deleteDrug(scope.$index, scope.row)"></i>-->
114 114
                     <el-button size="mini" type="primary" @click="handleEdit(scope.row,scope.$index)">推送</el-button>
@@ -120,7 +120,11 @@
120 120
         <el-table v-if="prescription.project &&prescription.project.length > 0" :data="prescription.project" border
121 121
                   style="width: 99%;" :row-style="{ color: '#303133' }"
122 122
                   :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}" highlight-current-row>
123
-            <el-table-column align="center" type="index" width="40" label="序号"></el-table-column>
123
+            <el-table-column align="center" width="40" label="序号">
124
+              <template slot-scope="scope">
125
+                {{scope.$index+1}}
126
+              </template>
127
+            </el-table-column>
124 128
             <el-table-column align="center" prop="project_name" label="名称">
125 129
                 <template slot-scope="scope"><span :title="scope.row.project_name">{{ scope.row.project_name }}</span>
126 130
                 </template>
@@ -136,6 +140,7 @@
136 140
                         <el-input v-model="scope.row.single_dose" @input="getProjectSingleDose(scope)"
137 141
                                   placeholder=""></el-input>
138 142
                         <div>{{scope.row.unit}}</div>
143
+                      <div v-if="scope.row.unit == ''">{{scope.row.good_info.default_count_unit}}</div>
139 144
                     </div>
140 145
 
141 146
                 </template>
@@ -170,7 +175,7 @@
170 175
                     <div style="display:flex;align-items:center;">
171 176
                         <el-input v-model="scope.row.total" style="width:60%" placeholder=""></el-input>
172 177
                         <div>{{scope.row.unit}}</div>
173
-
178
+                      <div v-if="scope.row.unit == ''">{{scope.row.good_info.default_count_unit}}</div>
174 179
                     </div>
175 180
                 </template>
176 181
             </el-table-column>
@@ -355,6 +360,10 @@
355 360
         this.templateFormVisible = true
356 361
 
357 362
 
363
+      },
364
+      lili(data){
365
+        console.log("data",this.prescription)
366
+
358 367
       },
359 368
       createFilter(queryString) {
360 369
         return (restaurant) => {
@@ -413,7 +422,7 @@
413 422
           }
414 423
         })
415 424
 
416
-      }, 
425
+      },
417 426
       deleteDrug: function(row, index) {
418 427
 
419 428
         this.$confirm('药品删除后不可恢复,是否确认删除', '删除', {

+ 7 - 7
src/xt_pages/outpatientDoctorStation/modeTemplate.vue View File

@@ -87,11 +87,11 @@
87 87
     },
88 88
     methods: {
89 89
       searchAction() {
90
-      
90
+
91 91
       },
92 92
       handleSizeChange(val) {
93 93
         this.limit = val
94
-      
94
+
95 95
       },
96 96
       getTime(val, temp) {
97 97
         if (val != 0) {
@@ -114,7 +114,7 @@
114 114
 
115 115
            this.templates = modeTeplate
116 116
          }
117
-       })   
117
+       })
118 118
       },
119 119
       handleCurrentChange(row){
120 120
         this.mode_id = row.id
@@ -126,7 +126,7 @@
126 126
           if(id == this.tablelist[i].id){
127 127
             mode_name = this.tablelist[i].name
128 128
           }
129
-        } 
129
+        }
130 130
         return mode_name
131 131
       },
132 132
       deleteModeTemplate(row,index) {
@@ -152,9 +152,9 @@
152 152
        jumpDetail(row) {
153 153
         this.$router.push('/hisTool/modeTemplateDetail?id=' + row.id + '&patient_id=' + this.patient_id + '&patient_name=' + this.patient_name +"&modes="+this.mode_str)
154 154
       },
155
-      batchAdd(){
156
-        this.$router.push("/hisTool/batchTemplate")
157
-      }
155
+      // batchAdd(){
156
+      //   this.$router.push("/hisTool/batchTemplate")
157
+      // }
158 158
     },
159 159
     created() {
160 160
       this.tablelist =  Object.values(this.$store.getters.treatment_mode)

+ 3 - 2
src/xt_pages/outpatientDoctorStation/modeTemplateDetail.vue View File

@@ -56,7 +56,8 @@
56 56
                             <prescription-template-mode-table ref="prescription_tables"
57 57
                                                          :prescription="curPrescriptions"
58 58
                                                          :preDrugs="preDrugs"
59
-                                                         :activeType="customTabIndex"></prescription-template-mode-table>
59
+                                                         :activeType="customTabIndex">
60
+                            </prescription-template-mode-table>
60 61
                         </el-tabs>
61 62
                     </div>
62 63
                 </div>
@@ -1988,7 +1989,7 @@
1988 1989
         display: flex;
1989 1990
         flex-direction: column;
1990 1991
         position: relative;
1991
-
1992
+        
1992 1993
     .el-form-item {
1993 1994
         width: 33%;
1994 1995
         margin-bottom: 14px;

File diff suppressed because it is too large
+ 579 - 493
src/xt_pages/outpatientDoctorStation/prescriptionTemplate.vue


+ 3 - 1
src/xt_pages/outpatientDoctorStation/prescriptionTemplatedetail.vue View File

@@ -1288,6 +1288,7 @@
1288 1288
           this.showOne = true
1289 1289
           this.showTwo = false
1290 1290
           this.$nextTick(() => {
1291
+            console.log("lilili1111111111111111111111111111111111111111111",this.prescriptions[this.prescriptions.length - 1])
1291 1292
             this.$refs.prescription_tables.setNewData(this.prescriptions[this.prescriptions.length - 1])
1292 1293
           })
1293 1294
           this.customTabIndex = 1
@@ -1299,6 +1300,7 @@
1299 1300
           this.showTwo = true
1300 1301
           this.showOne = false
1301 1302
           this.$nextTick(() => {
1303
+            console.log("lilili1111111111111111111111111111111111111111111",this.prescriptions[this.prescriptions.length - 1])
1302 1304
             this.$refs.prescription_tables.setNewData(this.prescriptions[this.prescriptions.length - 1])
1303 1305
           })
1304 1306
           this.customTabIndex = 2
@@ -2140,7 +2142,7 @@
2140 2142
         display: flex;
2141 2143
         flex-direction: column;
2142 2144
         position: relative;
2143
-
2145
+        overflow-x: auto;
2144 2146
     .el-form-item {
2145 2147
         width: 33%;
2146 2148
         margin-bottom: 14px;

+ 6 - 6
src/xt_pages/sign/components/beforeDialysisCalling.vue View File

@@ -116,7 +116,7 @@ export default {
116 116
         websocketSend(data) {
117 117
             try {
118 118
                 this.websocket.send(JSON.stringify(data))
119
-                
119
+
120 120
             } catch (error) {
121 121
                 this.showError = true;
122 122
                 this.showIndex = 4;
@@ -128,8 +128,8 @@ export default {
128 128
             this.websocket.onmessage = e => {
129 129
                 let res = JSON.parse(e.data);
130 130
                 // let res = re.data;
131
-                console.log('res3333333333',res)
132
-                
131
+                console.log('res3333ssss333333',res)
132
+
133 133
                     if(res.channel == 'queue/join'){
134 134
                         if(res.data.type == 3){
135 135
                             let fisrtQueueInfo = []
@@ -237,7 +237,7 @@ export default {
237 237
                         }
238 238
                         this.fisrtQueueInfo = fisrtQueueInfo
239 239
                     }
240
-                
240
+
241 241
             }
242 242
         },
243 243
         handleStateChange: function(index) {
@@ -249,7 +249,7 @@ export default {
249 249
             //         if(item.schedule_type == 1){
250 250
             //             newArr.push(item)
251 251
             //         }
252
-            //     }) 
252
+            //     })
253 253
             //     this.waitingCalledAm = newArr
254 254
             // }else if(index == 1){
255 255
             //     let arr = this.waitingCalledPm
@@ -258,7 +258,7 @@ export default {
258 258
             //         if(item.schedule_type == 2){
259 259
             //             newArr.push(item)
260 260
             //         }
261
-            //     }) 
261
+            //     })
262 262
             //     this.waitingCalledPm = newArr
263 263
             // }
264 264
             if(index == 2){

+ 4 - 0
src/xt_pages/stock/drugs/drugStockInOrder.vue View File

@@ -112,6 +112,7 @@
112 112
         <el-button size="small" type="primary" @click="toExport()"
113 113
           >导出</el-button
114 114
         >
115
+        <el-button @click="lili">调试</el-button>
115 116
         <div>
116 117
           <span>&nbsp;&nbsp;</span>
117 118
           <label class="title"><span class="name">审核状态</span> :</label>
@@ -997,6 +998,9 @@ export default {
997 998
       });
998 999
     },
999 1000
 
1001
+    lili(){
1002
+      console.log("exportList",this.exportList)
1003
+    },
1000 1004
     toExport() {
1001 1005
       if (this.order_id == "") {
1002 1006
         this.$message.error("请勾选入库单");

+ 29 - 22
src/xt_pages/user/dialysisSolution.vue View File

@@ -286,7 +286,7 @@
286 286
               ></el-input>
287 287
             </el-form-item>
288 288
             </div>
289
-            
289
+
290 290
           </el-col>
291 291
           <el-col
292 292
             :span="8"
@@ -397,7 +397,7 @@
397 397
               ></el-input>
398 398
             </el-form-item>
399 399
           </el-col>
400
-         
400
+
401 401
 
402 402
           <el-col :span="8" v-if="isShows('钾')">
403 403
             <el-form-item label="钾(mmol/L): " prop="kalium">
@@ -895,7 +895,7 @@ export default {
895 895
         epo:"",
896 896
         epo_count:"",
897 897
         max_ultrafiltration_rate:"",
898
-        
898
+
899 899
       },
900 900
       childPlan: {
901 901
         mode: '',
@@ -1063,7 +1063,7 @@ export default {
1063 1063
          this.addPlan.anticoagulant_zongliang = ""
1064 1064
          this.addPlan.anticoagulant_zongliang = parseInt(this.addPlan.anticoagulant_shouji) + parseInt(this.addPlan.anticoagulant_weichi)
1065 1065
       }
1066
-      
1066
+
1067 1067
     },
1068 1068
     'addPlan.anticoagulant_weichi': function() {
1069 1069
       this.addPlan.anticoagulant_zongliang = calculateAnticoagulantZL(
@@ -1401,7 +1401,7 @@ export default {
1401 1401
                 type: 'success',
1402 1402
                 duration: 2000
1403 1403
               })
1404
-              
1404
+
1405 1405
               this.dialogFormVisible = false
1406 1406
               this.tableData[this.current_index].doctor =
1407 1407
                 response.data.data.solution.doctor
@@ -1486,6 +1486,10 @@ export default {
1486 1486
           this.addPlan.dialysis_dialyszers = this.dialysis_dialyszers
1487 1487
           this.addPlan.dialysis_irrigation = this.dialysis_irrigation
1488 1488
           this.addPlan.mode_id = parseInt(this.addPlan.mode_id)
1489
+          if(this.addPlan.mode_id!=2 && this.addPlan.mode_id!=5&&this.addPlan.mode_id!=12){
1490
+            this.addPlan.displace_liqui_part = 0
1491
+            this.addPlan.displace_liqui_value = 0
1492
+          }
1489 1493
           editPatientDialysisSolution(this.patientID,this.addPlan.id,this.addPlan, mode).then(response => {
1490 1494
             if (response.data.state == 0) {
1491 1495
               this.$message.error(response.data.msg)
@@ -1519,7 +1523,10 @@ export default {
1519 1523
       })
1520 1524
     },
1521 1525
     submitNewSolution(formName) {
1522
-
1526
+       if(this.addPlan.mode_id!=2 && this.addPlan.mode_id!=5&&this.addPlan.mode_id!=12){
1527
+          this.addPlan.displace_liqui_part = 0
1528
+          this.addPlan.displace_liqui_value = 0
1529
+       }
1523 1530
       this.addPlan.anticoagulant_zongliang = this.addPlan.anticoagulant_zongliang.toString()
1524 1531
       this.$refs[formName].validate(valid => {
1525 1532
         if (valid) {
@@ -1569,7 +1576,7 @@ export default {
1569 1576
       this.fetchPatientDialysisSolutions()
1570 1577
     },
1571 1578
     openEdit(index, row) {
1572
-      console.log("ro2333333",row)
1579
+      console.log("ro233344433344444444",row)
1573 1580
       this.current_index = index
1574 1581
       this.addPlan.id = row.id
1575 1582
       this.addPlan.mode = row.mode_id
@@ -1595,7 +1602,7 @@ export default {
1595 1602
       if(row.blood_flow_volume!="" || row.blood_flow_volume!=undefined){
1596 1603
         this.addPlan.blood_flow_volume = row.blood_flow_volume.toString()
1597 1604
       }
1598
-     
1605
+
1599 1606
       if (row.anticoagulant == 3) {
1600 1607
         this.addPlan.anticoagulant = '低分子肝素'
1601 1608
       }
@@ -1614,7 +1621,7 @@ export default {
1614 1621
       if(row.target_ultrafiltration!="" || row.target_ultrafiltration!=undefined){
1615 1622
         this.addPlan.target_ultrafiltration = row.target_ultrafiltration.toString()
1616 1623
       }
1617
-   
1624
+
1618 1625
 
1619 1626
       this.addPlan.dialysis_duration = parseFloat(row.dialysis_duration_hour) + parseFloat((row.dialysis_duration_minute / 60).toFixed(2))
1620 1627
       this.addPlan.dialysis_duration_hour = row.dialysis_duration_hour
@@ -1643,7 +1650,7 @@ export default {
1643 1650
       if(row.calcium!=""||row.calcium!=undefined){
1644 1651
          this.addPlan.calcium = row.calcium.toString()
1645 1652
       }
1646
-     
1653
+
1647 1654
      if(row.bicarbonate!=""||  row.bicarbonate!=undefined){
1648 1655
        this.addPlan.bicarbonate = row.bicarbonate.toString()
1649 1656
      }
@@ -1660,8 +1667,8 @@ export default {
1660 1667
     if(row.conductivity!="" ||row.conductivity!=undefined ){
1661 1668
        this.addPlan.conductivity = row.conductivity.toString()
1662 1669
     }
1663
-     
1664
-    
1670
+
1671
+
1665 1672
       this.addPlan.remark = row.remark
1666 1673
 
1667 1674
       this.addPlan.hemodialysis_pipelines  = row.hemodialysis_pipelines
@@ -1669,30 +1676,30 @@ export default {
1669 1676
       if(row.hemodialysis_pipelines_count!="" || row.hemodialysis_pipelines_count!=undefined){
1670 1677
         this.addPlan.hemodialysis_pipelines_count  = row.hemodialysis_pipelines_count.toString()
1671 1678
       }
1672
-     
1679
+
1673 1680
       this.addPlan.puncture_needle  = row.puncture_needle
1674 1681
 
1675 1682
       if(row.puncture_needle_count!=null || row.puncture_needle_count!=undefined){
1676 1683
         this.addPlan.puncture_needle_count = row.puncture_needle_count.toString()
1677 1684
       }
1678
-     
1685
+
1679 1686
       this.addPlan.epo  = row.epo
1680 1687
 
1681 1688
       if(row.epo_count!="" || row.epo_count!=undefined){
1682 1689
         this.addPlan.epo_count  = row.epo_count.toString()
1683 1690
       }
1684
-    
1691
+
1685 1692
       if(row.dialyzer_perfusion_apparatus!="" ||  row.dialyzer_perfusion_apparatus!=undefined){
1686 1693
          this.addPlan.dialyzer_perfusion_apparatus = row.dialyzer_perfusion_apparatus.toString()
1687 1694
       }
1688 1695
       if(row.plasma_separator!="" || row.plasma_separator!=undefined){
1689 1696
         this.addPlan.plasma_separator = row.plasma_separator.toString()
1690 1697
       }
1691
-     
1698
+
1692 1699
       if(row.bilirubin_adsorption_column!="" || row.bilirubin_adsorption_column!=undefined){
1693 1700
          this.addPlan.bilirubin_adsorption_column = row.bilirubin_adsorption_column.toString()
1694 1701
       }
1695
-    
1702
+
1696 1703
       this.addPlan.dialysis_irrigation = row.dialysis_irrigation
1697 1704
       this.addPlan.dialysis_dialyszers = row.dialysis_dialyszers
1698 1705
       this.dialysis_irrigation = row.dialysis_irrigation
@@ -1717,12 +1724,12 @@ export default {
1717 1724
       if(row.body_fluid_other!=''|| row.body_fluid_other!=undefined){
1718 1725
         this.addPlan.body_fluid_other = row.body_fluid_other.toString()
1719 1726
       }
1720
-     
1727
+
1721 1728
       this.addPlan.special_medicine = row.special_medicine
1722 1729
       if(row.special_medicine_other!=""||row.special_medicine_other!=undefined){
1723 1730
         this.addPlan.special_medicine_other = row.special_medicine_other.toString()
1724 1731
       }
1725
-   
1732
+
1726 1733
       this.addPlan.displace_liqui_part = row.displace_liqui_part
1727 1734
       if(row.displace_liqui_value!=''||row.displace_liqui_value!=undefined){
1728 1735
         this.addPlan.displace_liqui_value = row.displace_liqui_value.toString()
@@ -1730,7 +1737,7 @@ export default {
1730 1737
       if(row.ultrafiltration!='' ||  row.ultrafiltration!=undefined){
1731 1738
         this.addPlan.ultrafiltration = row.ultrafiltration.toString()
1732 1739
       }
1733
-     
1740
+
1734 1741
       this.addPlan.blood_access = row.blood_access
1735 1742
 
1736 1743
       this.addPlan.registrars_id = row.registrars_id
@@ -1749,7 +1756,7 @@ export default {
1749 1756
     },
1750 1757
     isShows(name) {
1751 1758
       var filedList = store.getters.xt_user.fileds
1752
-      
1759
+
1753 1760
       for (let i = 0; i < filedList.length; i++) {
1754 1761
         if (
1755 1762
           filedList[i].module == 1 &&
@@ -2196,7 +2203,7 @@ export default {
2196 2203
     this.plasmaSeparatorList = getDataConfig('hemodialysis','plasma_separator')
2197 2204
     this.bilirubinAdsorptionColumn = getDataConfig('hemodialysis','bilirubin_adsorption_column')
2198 2205
     this.queryParams.id = this.patientID
2199
-  
2206
+
2200 2207
 
2201 2208
   }
2202 2209
 }

File diff suppressed because it is too large
+ 597 - 690
src/xt_pages/workforce/components/template_table.vue