Browse Source

需求和bug修改

XMLWAN 4 years ago
parent
commit
f1b21aa381
34 changed files with 1569 additions and 782 deletions
  1. 44 47
      src/api/schedule.js
  2. 15 0
      src/store/modules/globalConfig.js
  3. 14 14
      src/xt_pages/data/components/tableson.vue
  4. 62 47
      src/xt_pages/data/prescription.vue
  5. 131 104
      src/xt_pages/data/showConfig.vue
  6. 2 2
      src/xt_pages/dialysis/batch_print/batch_print_order_eight.vue
  7. 7 5
      src/xt_pages/dialysis/batch_print/batch_print_order_seven.vue
  8. 144 19
      src/xt_pages/dialysis/batch_print/batch_print_order_six.vue
  9. 1 1
      src/xt_pages/dialysis/details/dialog/MultiSelectBox/index.vue
  10. 25 4
      src/xt_pages/dialysis/details/dialog/assessmentBeforeDislysisDialog.vue
  11. 324 28
      src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue
  12. 8 4
      src/xt_pages/dialysis/details/dialog/monitor_dialog.vue
  13. 234 153
      src/xt_pages/dialysis/details/dialog/treatmentSummaryDialog.vue
  14. 2 2
      src/xt_pages/dialysis/details/index.vue
  15. 44 20
      src/xt_pages/dialysis/details/treatmentOf.vue
  16. 8 4
      src/xt_pages/dialysis/template/DialysisPrintOrderEight.vue
  17. 14 3
      src/xt_pages/dialysis/template/DialysisPrintOrderSeven.vue
  18. 8 1
      src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue
  19. 7 0
      src/xt_pages/stock/cancelStockOrder.vue
  20. 7 1
      src/xt_pages/stock/detail/cancelStockDetail.vue
  21. 7 1
      src/xt_pages/stock/detail/salesReturnDetail.vue
  22. 7 1
      src/xt_pages/stock/detail/stockInDetail.vue
  23. 7 1
      src/xt_pages/stock/detail/stockOutDetail.vue
  24. 7 1
      src/xt_pages/stock/otherCancelStockOrder.vue
  25. 8 2
      src/xt_pages/stock/otherSalesReturnOrder.vue
  26. 7 1
      src/xt_pages/stock/otherStockInOrder.vue
  27. 7 1
      src/xt_pages/stock/otherStockOutOrder.vue
  28. 7 0
      src/xt_pages/stock/salesReturnOrder.vue
  29. 383 312
      src/xt_pages/stock/stockDetail.vue
  30. 8 1
      src/xt_pages/stock/stockInOrder.vue
  31. 7 0
      src/xt_pages/stock/stockOutOrder.vue
  32. 3 0
      src/xt_pages/user/components/PatientForm.vue
  33. 9 1
      src/xt_pages/user/patients.vue
  34. 1 1
      src/xt_pages/workforce/components/tableData.vue

+ 44 - 47
src/api/schedule.js View File

1
 import request from '@/utils/request'
1
 import request from '@/utils/request'
2
 
2
 
3
-export function getWeekPanels(t){
4
-    return request({
5
-        url:'/api/schedule/weekpanel?data='+t,
6
-        method:'get',
7
-    })
3
+export function getWeekPanels(t) {
4
+  return request({
5
+    url: '/api/schedule/weekpanel?data=' + t,
6
+    method: 'get'
7
+  })
8
 }
8
 }
9
 
9
 
10
-export function getSchedules(week){
11
-    return request({
12
-        url:'/api/schedule/schedules?weekTime=' + week,
13
-        method:'get',
14
-    })
10
+export function getSchedules(week) {
11
+  return request({
12
+    url: '/api/schedule/schedules?weekTime=' + week,
13
+    method: 'get'
14
+  })
15
 }
15
 }
16
 
16
 
17
-export function getSchedulePatients(params){
18
-    return request({
19
-        url:'/api/schedule/patients',
20
-        method:'get',
21
-        params:params,
22
-    })
17
+export function getSchedulePatients(params) {
18
+  return request({
19
+    url: '/api/schedule/patients',
20
+    method: 'get',
21
+    params: params
22
+  })
23
 }
23
 }
24
 
24
 
25
-export function CreateSchedule(id, schedule){
26
-    return request({
27
-        url:'/api/schedule/create?patient_id='+id,
28
-        method:'Post',
29
-        data:schedule,
30
-    })
25
+export function CreateSchedule(id, schedule) {
26
+  return request({
27
+    url: '/api/schedule/create?patient_id=' + id,
28
+    method: 'Post',
29
+    data: schedule
30
+  })
31
 }
31
 }
32
 
32
 
33
 export function CancelSchedule(id) {
33
 export function CancelSchedule(id) {
34
-    return request({
35
-        url:'/api/schedule/delete?id='+id,
36
-        method:"Delete",
37
-    });
34
+  return request({
35
+    url: '/api/schedule/delete?id=' + id,
36
+    method: 'Delete'
37
+  })
38
 }
38
 }
39
 
39
 
40
-export function ChangeSchedule(id, schedule){
41
-    return request({
42
-        url:'/api/schedule/change?id='+id,
43
-        method:'Put',
44
-        data:schedule,
45
-    })
40
+export function ChangeSchedule(id, schedule) {
41
+  console.log('schedule', schedule)
42
+  return request({
43
+    url: '/api/schedule/change?id=' + id,
44
+    method: 'Put',
45
+    data: schedule
46
+  })
46
 }
47
 }
47
 
48
 
48
 export function GetPatientSchedules(id) {
49
 export function GetPatientSchedules(id) {
49
-    return request({
50
-        url:'/api/patients/schedules?id='+id,
51
-        method:'Get',
52
-    })
50
+  return request({
51
+    url: '/api/patients/schedules?id=' + id,
52
+    method: 'Get'
53
+  })
53
 }
54
 }
54
 
55
 
55
 export function GetWeekSchedulePrintInitData(date) {
56
 export function GetWeekSchedulePrintInitData(date) {
56
-    return request({
57
-        url: '/api/schedule/print/initdata',
58
-        method: 'get',
59
-        params: { date: date },
60
-    })
57
+  return request({
58
+    url: '/api/schedule/print/initdata',
59
+    method: 'get',
60
+    params: {
61
+      date: date
62
+    }
63
+  })
61
 }
64
 }
62
 
65
 
63
-
64
 export function getUrgentScheduleInitData(params) {
66
 export function getUrgentScheduleInitData(params) {
65
   return request({
67
   return request({
66
     url: '/api/schedule/urgentinit',
68
     url: '/api/schedule/urgentinit',
69
   })
71
   })
70
 }
72
 }
71
 
73
 
72
-
73
-
74
 export function getSearchResult(params) {
74
 export function getSearchResult(params) {
75
   return request({
75
   return request({
76
     url: '/api/schedule/search',
76
     url: '/api/schedule/search',
79
   })
79
   })
80
 }
80
 }
81
 
81
 
82
-
83
-
84
-
85
 export function getScheduleWeekDay(params) {
82
 export function getScheduleWeekDay(params) {
86
   return request({
83
   return request({
87
     url: '/api/schedule/week',
84
     url: '/api/schedule/week',

+ 15 - 0
src/store/modules/globalConfig.js View File

475
         sodium: 2,
475
         sodium: 2,
476
         calcium: 2,
476
         calcium: 2,
477
         bicarbonate: 2
477
         bicarbonate: 2
478
+      },
479
+      19: {
480
+        id: 19,
481
+        name: 'IUF+HD',
482
+        dialysis_duration: 1,
483
+        replacement_way: 1,
484
+        hemodialysis_machine: 2,
485
+        blood_filter: 1,
486
+        perfusion_apparatus: 2,
487
+        blood_flow_volume: 1,
488
+        dialysate_flow: 1,
489
+        kalium: 1,
490
+        sodium: 1,
491
+        calcium: 1,
492
+        bicarbonate: 1
478
       }
493
       }
479
       // 15: { id: 15, name: 'HD前置换', dialysis_duration: 1, replacement_way: 2, hemodialysis_machine: 1, blood_filter: 2, perfusion_apparatus: 2, blood_flow_volume: 1, dialysate_flow: 1, kalium: 1, sodium: 1, calcium: 1, bicarbonate: 1 },
494
       // 15: { id: 15, name: 'HD前置换', dialysis_duration: 1, replacement_way: 2, hemodialysis_machine: 1, blood_filter: 2, perfusion_apparatus: 2, blood_flow_volume: 1, dialysate_flow: 1, kalium: 1, sodium: 1, calcium: 1, bicarbonate: 1 },
480
       // 16: { id: 16, name: 'HD后置换', dialysis_duration: 1, replacement_way: 2, hemodialysis_machine: 1, blood_filter: 2, perfusion_apparatus: 2, blood_flow_volume: 1, dialysate_flow: 1, kalium: 1, sodium: 1, calcium: 1, bicarbonate: 1 },
495
       // 16: { id: 16, name: 'HD后置换', dialysis_duration: 1, replacement_way: 2, hemodialysis_machine: 1, blood_filter: 2, perfusion_apparatus: 2, blood_flow_volume: 1, dialysate_flow: 1, kalium: 1, sodium: 1, calcium: 1, bicarbonate: 1 },

+ 14 - 14
src/xt_pages/data/components/tableson.vue View File

355
       };
355
       };
356
     },
356
     },
357
     handleCreate() {
357
     handleCreate() {
358
-      for (let i = 0; i < this.list.length; i++) {
359
-        if (
360
-          this.list[i].name == "无肝素" ||
361
-          this.list[i].name == "普通肝素" ||
362
-          this.list[i].name == "低分子肝素钠" ||
363
-          this.list[i].name == "低分子肝素钙" ||
364
-          this.list[i].name == "阿加曲班" ||
365
-          this.list[i].name == "枸橼酸钠"
366
-        ) {
367
-          this.$message.error("该项暂不支持新增");
368
-          return false;
369
-        }
370
-      }
371
-
372
       this.resetTemp();
358
       this.resetTemp();
373
       this.dialogStatus = "create";
359
       this.dialogStatus = "create";
360
+      // for (let i = 0; i < this.list.length; i++) {
361
+      //  if (
362
+      //    this.list[i].name == "无肝素" ||
363
+      //   this.list[i].name == "普通肝素" ||
364
+      //   this.list[i].name == "低分子肝素钠" ||
365
+      //    this.list[i].name == "低分子肝素钙" ||
366
+      //   this.list[i].name == "阿加曲班" ||
367
+      //    this.list[i].name == "枸橼酸钠"
368
+      //  ) {
369
+      //    this.$message.error("该项暂不支持新增");
370
+      //    return false;
371
+      //  }
372
+      // }
373
+
374
       this.dialogFormVisible = true;
374
       this.dialogFormVisible = true;
375
       this.$nextTick(() => {
375
       this.$nextTick(() => {
376
         this.$refs["dataForm"].clearValidate();
376
         this.$refs["dataForm"].clearValidate();

+ 62 - 47
src/xt_pages/data/prescription.vue View File

640
           calcium: 2,
640
           calcium: 2,
641
           bicarbonate: 2
641
           bicarbonate: 2
642
         },
642
         },
643
+        // {
644
+        //   id: 15,
645
+        //   name: "HD前置换",
646
+        //   dialysis_duration: 1,
647
+        //   replacement_way: 2,
648
+        //   hemodialysis_machine: 1,
649
+        //   blood_filter: 2,
650
+        //   perfusion_apparatus: 2,
651
+        //   blood_flow_volume: 1,
652
+        //   dialysate_flow: 1,
653
+        //   kalium: 1,
654
+        //   sodium: 1,
655
+        //   calcium: 1,
656
+        //   bicarbonate: 1
657
+        // },
658
+        // {
659
+        //   id: 16,
660
+        //   name: "HD后置换",
661
+        //   dialysis_duration: 1,
662
+        //   replacement_way: 2,
663
+        //   hemodialysis_machine: 1,
664
+        //   blood_filter: 2,
665
+        //   perfusion_apparatus: 2,
666
+        //   blood_flow_volume: 1,
667
+        //   dialysate_flow: 1,
668
+        //   kalium: 1,
669
+        //   sodium: 1,
670
+        //   calcium: 1,
671
+        //   bicarbonate: 1
672
+        // },
673
+        // {
674
+        //   id: 17,
675
+        //   name: "HDF前置换",
676
+        //   dialysis_duration: 1,
677
+        //   replacement_way: 1,
678
+        //   hemodialysis_machine: 2,
679
+        //   blood_filter: 1,
680
+        //   perfusion_apparatus: 2,
681
+        //   blood_flow_volume: 1,
682
+        //   dialysate_flow: 1,
683
+        //   kalium: 1,
684
+        //   sodium: 1,
685
+        //   calcium: 1,
686
+        //   bicarbonate: 1
687
+        // },
688
+        // {
689
+        //   id: 18,
690
+        //   name: "HDF后置换",
691
+        //   dialysis_duration: 1,
692
+        //   replacement_way: 1,
693
+        //   hemodialysis_machine: 2,
694
+        //   blood_filter: 1,
695
+        //   perfusion_apparatus: 2,
696
+        //   blood_flow_volume: 1,
697
+        //   dialysate_flow: 1,
698
+        //   kalium: 1,
699
+        //   sodium: 1,
700
+        //   calcium: 1,
701
+        //   bicarbonate: 1
702
+        // },
643
         {
703
         {
644
-          id: 15,
645
-          name: "HD前置换",
704
+          id: 19,
705
+          name: "IUF+HD",
646
           dialysis_duration: 1,
706
           dialysis_duration: 1,
647
           replacement_way: 2,
707
           replacement_way: 2,
648
           hemodialysis_machine: 1,
708
           hemodialysis_machine: 1,
654
           sodium: 1,
714
           sodium: 1,
655
           calcium: 1,
715
           calcium: 1,
656
           bicarbonate: 1
716
           bicarbonate: 1
657
-        },
658
-        {
659
-          id: 16,
660
-          name: "HD后置换",
661
-          dialysis_duration: 1,
662
-          replacement_way: 2,
663
-          hemodialysis_machine: 1,
664
-          blood_filter: 2,
665
-          perfusion_apparatus: 2,
666
-          blood_flow_volume: 1,
667
-          dialysate_flow: 1,
668
-          kalium: 1,
669
-          sodium: 1,
670
-          calcium: 1,
671
-          bicarbonate: 1
672
-        },
673
-        {
674
-          id: 17,
675
-          name: "HDF前置换",
676
-          dialysis_duration: 1,
677
-          replacement_way: 1,
678
-          hemodialysis_machine: 2,
679
-          blood_filter: 1,
680
-          perfusion_apparatus: 2,
681
-          blood_flow_volume: 1,
682
-          dialysate_flow: 1,
683
-          kalium: 1,
684
-          sodium: 1,
685
-          calcium: 1,
686
-          bicarbonate: 1
687
-        },
688
-        {
689
-          id: 18,
690
-          name: "HDF后置换",
691
-          dialysis_duration: 1,
692
-          replacement_way: 1,
693
-          hemodialysis_machine: 2,
694
-          blood_filter: 1,
695
-          perfusion_apparatus: 2,
696
-          blood_flow_volume: 1,
697
-          dialysate_flow: 1,
698
-          kalium: 1,
699
-          sodium: 1,
700
-          calcium: 1,
701
-          bicarbonate: 1
702
         }
717
         }
703
       ],
718
       ],
704
       addPlan: {
719
       addPlan: {

+ 131 - 104
src/xt_pages/data/showConfig.vue View File

1
 <template>
1
 <template>
2
   <div class="main-contain">
2
   <div class="main-contain">
3
     <div class="position">
3
     <div class="position">
4
-      <bread-crumb :crumbs='crumbs'></bread-crumb>
4
+      <bread-crumb :crumbs="crumbs"></bread-crumb>
5
     </div>
5
     </div>
6
     <div class="app-container">
6
     <div class="app-container">
7
       <div class="service-box">
7
       <div class="service-box">
8
         <el-tabs v-model="activeName">
8
         <el-tabs v-model="activeName">
9
           <el-tab-pane label="透析处方" name="first">
9
           <el-tab-pane label="透析处方" name="first">
10
-            <dialysis-prescription :dialysis_prescription_data="dialysis_prescription_data" @change="changePrescriptionData"></dialysis-prescription>
10
+            <dialysis-prescription
11
+              :dialysis_prescription_data="dialysis_prescription_data"
12
+              @change="changePrescriptionData"
13
+            ></dialysis-prescription>
11
           </el-tab-pane>
14
           </el-tab-pane>
12
           <el-tab-pane label="接诊评估">
15
           <el-tab-pane label="接诊评估">
13
-            <receive-treatment-asses :receive_treatment_asses_data="receive_treatment_asses_data" @change="changeAssesData"></receive-treatment-asses>
16
+            <receive-treatment-asses
17
+              :receive_treatment_asses_data="receive_treatment_asses_data"
18
+              @change="changeAssesData"
19
+            ></receive-treatment-asses>
14
           </el-tab-pane>
20
           </el-tab-pane>
15
           <el-tab-pane label="透前评估">
21
           <el-tab-pane label="透前评估">
16
-            <dialysis-before :dialysis_before_data="dialysis_before_data" @change="changeBeforeData"></dialysis-before>
22
+            <dialysis-before
23
+              :dialysis_before_data="dialysis_before_data"
24
+              @change="changeBeforeData"
25
+            ></dialysis-before>
17
           </el-tab-pane>
26
           </el-tab-pane>
18
           <el-tab-pane label="透析监测">
27
           <el-tab-pane label="透析监测">
19
-            <dialysis-monitor :dialysis_monitor_data="dialysis_monitor_data" @change="changeMonitorData"></dialysis-monitor>
28
+            <dialysis-monitor
29
+              :dialysis_monitor_data="dialysis_monitor_data"
30
+              @change="changeMonitorData"
31
+            ></dialysis-monitor>
20
           </el-tab-pane>
32
           </el-tab-pane>
21
           <el-tab-pane label="透后评估">
33
           <el-tab-pane label="透后评估">
22
-            <dialysis-after :dialysis_after_data="dialysis_after_data" @change="changeAfterData"></dialysis-after>
34
+            <dialysis-after
35
+              :dialysis_after_data="dialysis_after_data"
36
+              @change="changeAfterData"
37
+            ></dialysis-after>
38
+          </el-tab-pane>
39
+          <el-tab-pane label="透析小结">
40
+            <dialysis-summary
41
+              :dialysis_summary_data="dialysis_summary_data"
42
+              @change="changeSummaryData"
43
+            ></dialysis-summary>
23
           </el-tab-pane>
44
           </el-tab-pane>
24
-
25
         </el-tabs>
45
         </el-tabs>
26
       </div>
46
       </div>
27
     </div>
47
     </div>
29
 </template>
49
 </template>
30
 
50
 
31
 <script>
51
 <script>
32
-
33
-  import BreadCrumb from '@/xt_pages/components/bread-crumb'
34
-  import DialysisAfter from './components/dialysisAfter'
35
-  import DialysisPrescription from './components/dialysisPrescription'
36
-  import DialysisBefore from './components/dialysisBefore'
37
-  import DialysisMonitor from './components/dialysisMonitor'
38
-  import ReceiveTreatmentAsses from './components/receiveTreatmentAsses'
39
-  import { getFiledConfigList } from '@/utils/data_config' // getConfigList from sessionStorage
40
-  import store from '@/store'
41
-
42
-  export default {
43
-    name: 'showConfig',
44
-    components: {
45
-      ReceiveTreatmentAsses,
46
-      DialysisMonitor,
47
-      DialysisBefore,
48
-      DialysisPrescription,
49
-      DialysisAfter,
50
-      BreadCrumb
52
+import BreadCrumb from "@/xt_pages/components/bread-crumb";
53
+import DialysisAfter from "./components/dialysisAfter";
54
+import DialysisPrescription from "./components/dialysisPrescription";
55
+import DialysisBefore from "./components/dialysisBefore";
56
+import DialysisMonitor from "./components/dialysisMonitor";
57
+import ReceiveTreatmentAsses from "./components/receiveTreatmentAsses";
58
+import DialysisSummary from "./components/dialysisSummary";
59
+import { getFiledConfigList } from "@/utils/data_config"; // getConfigList from sessionStorage
60
+import store from "@/store";
61
+
62
+export default {
63
+  name: "showConfig",
64
+  components: {
65
+    ReceiveTreatmentAsses,
66
+    DialysisMonitor,
67
+    DialysisBefore,
68
+    DialysisPrescription,
69
+    DialysisAfter,
70
+    BreadCrumb,
71
+    DialysisSummary
72
+  },
73
+  data() {
74
+    return {
75
+      crumbs: [
76
+        { path: false, name: "管理中心" },
77
+        { path: "/data/showconfig", name: "显示配置" }
78
+      ],
79
+      activeName: "first",
80
+      dialysis_prescription_data: [],
81
+      receive_treatment_asses_data: [],
82
+      dialysis_before_data: [],
83
+      dialysis_monitor_data: [],
84
+      dialysis_after_data: [],
85
+      dialysis_summary_data: []
86
+    };
87
+  },
88
+  methods: {
89
+    handleClick(tab, event) {
90
+      console.log(tab, event, this.activeName);
51
     },
91
     },
52
-    data() {
53
-      return {
54
-        crumbs: [
55
-          { path: false, name: '管理中心' },
56
-          { path: '/data/showconfig', name: '显示配置' }
57
-        ],
58
-        activeName: 'first',
59
-        dialysis_prescription_data:[],
60
-        receive_treatment_asses_data:[],
61
-        dialysis_before_data:[],
62
-        dialysis_monitor_data:[],
63
-        dialysis_after_data:[],
92
+    changePrescriptionData: function(object) {
93
+      for (let i = 0; i < this.dialysis_prescription_data.length; i++) {
94
+        if (this.dialysis_prescription_data[i].id == object.id) {
95
+          this.dialysis_prescription_data[i].is_show = object.is_show;
96
+        }
64
       }
97
       }
65
     },
98
     },
66
-    methods: {
67
-      handleClick(tab, event) {
68
-        console.log(tab, event, this.activeName)
69
-      },changePrescriptionData:function(object) {
70
-        for (let i = 0; i< this.dialysis_prescription_data.length; i++){
71
-          if( this.dialysis_prescription_data[i].id ==object.id){
72
-            this.dialysis_prescription_data[i].is_show = object.is_show
73
-          }
74
-
75
-        }
76
-
77
-      },changeAssesData:function(object) {
78
-        for (let i = 0; i< this.receive_treatment_asses_data.length; i++){
79
-          if( this.receive_treatment_asses_data[i].id ==object.id){
80
-            this.receive_treatment_asses_data[i].is_show = object.is_show
81
-          }
82
-
99
+    changeAssesData: function(object) {
100
+      for (let i = 0; i < this.receive_treatment_asses_data.length; i++) {
101
+        if (this.receive_treatment_asses_data[i].id == object.id) {
102
+          this.receive_treatment_asses_data[i].is_show = object.is_show;
83
         }
103
         }
84
-
85
-
86
-      },changeBeforeData:function(object) {
87
-        for (let i = 0; i< this.dialysis_before_data.length; i++){
88
-          if( this.dialysis_before_data[i].id ==object.id){
89
-            this.dialysis_before_data[i].is_show = object.is_show
90
-          }
91
-
104
+      }
105
+    },
106
+    changeBeforeData: function(object) {
107
+      for (let i = 0; i < this.dialysis_before_data.length; i++) {
108
+        if (this.dialysis_before_data[i].id == object.id) {
109
+          this.dialysis_before_data[i].is_show = object.is_show;
92
         }
110
         }
93
-
94
-
95
-      },changeMonitorData:function(object) {
96
-        for (let i = 0; i< this.dialysis_monitor_data.length; i++){
97
-          if( this.dialysis_monitor_data[i].id ==object.id){
98
-            this.dialysis_monitor_data[i].is_show = object.is_show
99
-          }
100
-
111
+      }
112
+    },
113
+    changeMonitorData: function(object) {
114
+      for (let i = 0; i < this.dialysis_monitor_data.length; i++) {
115
+        if (this.dialysis_monitor_data[i].id == object.id) {
116
+          this.dialysis_monitor_data[i].is_show = object.is_show;
101
         }
117
         }
102
-
103
-
104
-      },changeAfterData:function(object) {
105
-        for (let i = 0; i< this.dialysis_after_data.length; i++){
106
-          if( this.dialysis_after_data[i].id ==object.id){
107
-            this.dialysis_after_data[i].is_show = object.is_show
108
-          }
109
-
118
+      }
119
+    },
120
+    changeAfterData: function(object) {
121
+      for (let i = 0; i < this.dialysis_after_data.length; i++) {
122
+        if (this.dialysis_after_data[i].id == object.id) {
123
+          this.dialysis_after_data[i].is_show = object.is_show;
110
         }
124
         }
111
-
112
-
113
       }
125
       }
114
     },
126
     },
115
-    created(){
116
-      var filedList = store.getters.xt_user.fileds
117
-      for (let i = 0; i < filedList.length;i++){
118
-        switch (filedList[i].module) {
119
-          case 1:
120
-            this.dialysis_prescription_data.push(filedList[i])
121
-            break
122
-          case 2:
123
-            this.receive_treatment_asses_data.push(filedList[i])
124
-            break
125
-          case 3:
126
-            this.dialysis_before_data.push(filedList[i])
127
-            break
128
-          case 4:
129
-            this.dialysis_monitor_data.push(filedList[i])
130
-            break
131
-          case 5:
132
-            this.dialysis_after_data.push(filedList[i])
133
-            break
127
+    changeSummaryData: function(object) {
128
+      for (let i = 0; i < this.dialysis_summary_data.length; i++) {
129
+        if (this.dialysis_summary_data[i].id == object.id) {
130
+          this.dialysis_summary_data[i].is_show = object.is_show;
134
         }
131
         }
135
       }
132
       }
136
-
137
-
133
+    }
134
+  },
135
+  created() {
136
+    var filedList = store.getters.xt_user.fileds;
137
+    console.log("filedList", filedList);
138
+    var arr = [];
139
+    for (let i = 0; i < filedList.length; i++) {
140
+      if (filedList[i].module == 6) {
141
+        arr.push(filedList[i]);
142
+      }
143
+    }
144
+    console.log("arr", arr);
145
+    for (let i = 0; i < filedList.length; i++) {
146
+      switch (filedList[i].module) {
147
+        case 1:
148
+          this.dialysis_prescription_data.push(filedList[i]);
149
+          break;
150
+        case 2:
151
+          this.receive_treatment_asses_data.push(filedList[i]);
152
+          break;
153
+        case 3:
154
+          this.dialysis_before_data.push(filedList[i]);
155
+          break;
156
+        case 4:
157
+          this.dialysis_monitor_data.push(filedList[i]);
158
+          break;
159
+        case 5:
160
+          this.dialysis_after_data.push(filedList[i]);
161
+          break;
162
+        case 6:
163
+          this.dialysis_summary_data.push(filedList[i]);
164
+          break;
165
+      }
138
     }
166
     }
139
   }
167
   }
168
+};
140
 </script>
169
 </script>
141
-
142
-

+ 2 - 2
src/xt_pages/dialysis/batch_print/batch_print_order_eight.vue View File

896
         </tr>
896
         </tr>
897
          <tr>
897
          <tr>
898
           <td style="text-align:left;" colspan="12">
898
           <td style="text-align:left;" colspan="12">
899
-            <span style="display:inline-block;margin-left:15px;">透析护理记录:</span>
899
+            <span style="display:inline-block;margin-left:15px;">透析护理记录:{{record.summer && record.summer.nursing_record? record.summer.nursing_record: '/'}}</span>
900
           </td>
900
           </td>
901
         </tr>
901
         </tr>
902
         <tr>
902
         <tr>
1164
         </tr>
1164
         </tr>
1165
         <tr>
1165
         <tr>
1166
           <td style="text-align:left;"  colspan="6">
1166
           <td style="text-align:left;"  colspan="6">
1167
-            <span style="margin-left:15px">特殊记录:{{record.summer && record.summer.dialysis_summary? record.summer.dialysis_summary: '/'}}</span>
1167
+            <span style="margin-left:15px">特殊记录:{{record.summer && record.summer.special_record? record.summer.special_record: '/'}}</span>
1168
           </td>
1168
           </td>
1169
         </tr>
1169
         </tr>
1170
         <tr>
1170
         <tr>

+ 7 - 5
src/xt_pages/dialysis/batch_print/batch_print_order_seven.vue View File

187
                           透析次数:
187
                           透析次数:
188
                           <span class="under-line"
188
                           <span class="under-line"
189
                           >&nbsp;
189
                           >&nbsp;
190
-                            {{
191
-                              record.patient.total_dialysis
192
-                                ? record.patient.total_dialysis + + record.patient.user_sys_before_count
193
-                                : '/'
194
-                            }}</span
190
+                           {{
191
+                            record.patient.total_dialysis +
192
+                            record.patient.user_sys_before_count
193
+                              ? record.patient.total_dialysis +
194
+                                record.patient.user_sys_before_count
195
+                              : "/"
196
+                          }}</span
195
                           >
197
                           >
196
                         </td>
198
                         </td>
197
                       </tr>
199
                       </tr>

+ 144 - 19
src/xt_pages/dialysis/batch_print/batch_print_order_six.vue View File

450
                           >
450
                           >
451
                             HF
451
                             HF
452
                           </div>
452
                           </div>
453
+                          <div
454
+                            class="under_line"
455
+                            style="width: 100px;text-align: center;font-weight:600;"
456
+                            v-if="record.prescription.mode_id == 6"
457
+                          >
458
+                            SCUF
459
+                          </div>
460
+                          <div
461
+                            class="under_line"
462
+                            style="width: 100px;text-align: center;font-weight:600;"
463
+                            v-if="record.prescription.mode_id == 7"
464
+                          >
465
+                            IUF
466
+                          </div>
467
+                          <div
468
+                            class="under_line"
469
+                            style="width: 100px;text-align: center;font-weight:600;"
470
+                            v-if="record.prescription.mode_id == 8"
471
+                          >
472
+                            HFHD
473
+                          </div>
474
+                          <div
475
+                            class="under_line"
476
+                            style="width: 100px;text-align: center;font-weight:600;"
477
+                            v-if="record.prescription.mode_id == 9"
478
+                          >
479
+                            HFHD+HP
480
+                          </div>
481
+                          <div
482
+                            class="under_line"
483
+                            style="width: 100px;text-align: center;font-weight:600;"
484
+                            v-if="record.prescription.mode_id == 10"
485
+                          >
486
+                            PHF
487
+                          </div>
488
+                          <div
489
+                            class="under_line"
490
+                            style="width: 100px;text-align: center;font-weight:600;"
491
+                            v-if="record.prescription.mode_id == 11"
492
+                          >
493
+                            HFR
494
+                          </div>
495
+                          <div
496
+                            class="under_line"
497
+                            style="width: 100px;text-align: center;font-weight:600;"
498
+                            v-if="record.prescription.mode_id == 12"
499
+                          >
500
+                            HDF+HP
501
+                          </div>
502
+                          <div
503
+                            class="under_line"
504
+                            style="width: 100px;text-align: center;font-weight:600;"
505
+                            v-if="record.prescription.mode_id == 13"
506
+                          >
507
+                            CRRT
508
+                          </div>
509
+                          <div
510
+                            class="under_line"
511
+                            style="width: 100px;text-align: center;font-weight:600;"
512
+                            v-if="record.prescription.mode_id == 14"
513
+                          >
514
+                            腹水回输
515
+                          </div>
516
+                          <div
517
+                            class="under_line"
518
+                            style="width: 100px;text-align: center;font-weight:600;"
519
+                            v-if="record.prescription.mode_id == 19"
520
+                          >
521
+                            IUF+HD
522
+                          </div>
453
                         </div>
523
                         </div>
454
                       </div>
524
                       </div>
455
 
525
 
707
                           class="under_line"
777
                           class="under_line"
708
                           style="width: 150px;text-align: center"
778
                           style="width: 150px;text-align: center"
709
                         >
779
                         >
710
-                          {{
711
-                            record.prescription &&
712
-                            record.prescription.anticoagulant_name
713
-                              ? record.prescription.anticoagulant_name
714
-                              : "/"
715
-                          }}
780
+                          <span v-if="record.prescription.anticoagulant == 0"
781
+                            >&nbsp;/</span
782
+                          >
783
+                          <span v-if="record.prescription.anticoagulant == 1"
784
+                            >&nbsp;无肝素</span
785
+                          >
786
+                          <span v-if="record.prescription.anticoagulant == 2"
787
+                            >&nbsp;普通肝素</span
788
+                          >
789
+                          <span v-if="record.prescription.anticoagulant == 3"
790
+                            >&nbsp;低分子肝素</span
791
+                          >
792
+                          <span v-if="record.prescription.anticoagulant == 4"
793
+                            >&nbsp;阿加曲班</span
794
+                          >
795
+                          <span v-if="record.prescription.anticoagulant == 5"
796
+                            >&nbsp;枸橼酸钠</span
797
+                          >
798
+                          <span v-if="record.prescription.anticoagulant == 6"
799
+                            >&nbsp;低分子肝素钙</span
800
+                          >
801
+                          <span v-if="record.prescription.anticoagulant == 7"
802
+                            >&nbsp;低分子肝素钠</span
803
+                          >
716
                         </div>
804
                         </div>
717
                       </div>
805
                       </div>
718
                       <div class="inline_block" style="margin-left:20px;">
806
                       <div class="inline_block" style="margin-left:20px;">
728
                               : "/"
816
                               : "/"
729
                           }}
817
                           }}
730
                         </div>
818
                         </div>
731
-                        lu
819
+                        <span v-if="record.prescription.anticoagulant == 4"
820
+                          >mg</span
821
+                        >
822
+                        <span v-if="record.prescription.anticoagulant == 3"
823
+                          >iu</span
824
+                        >
825
+                        <span v-if="record.prescription.anticoagulant == 2"
826
+                          >iu</span
827
+                        >
828
+                        <span v-if="record.prescription.anticoagulant == 1"
829
+                          >mg</span
830
+                        >
732
                       </div>
831
                       </div>
733
                       <div class="inline_block" style="margin-left:20px;">
832
                       <div class="inline_block" style="margin-left:20px;">
734
                         维持:
833
                         维持:
762
                               : 0
861
                               : 0
763
                           }}
862
                           }}
764
                         </div>
863
                         </div>
765
-                        lu
864
+                        <span v-if="record.prescription.anticoagulant == 5"
865
+                          >ml/h</span
866
+                        >
867
+                        <span v-if="record.prescription.anticoagulant == 4"
868
+                          >mg/h</span
869
+                        >
870
+                        <span v-if="record.prescription.anticoagulant == 3"
871
+                          >iu/h</span
872
+                        >
873
+                        <span v-if="record.prescription.anticoagulant == 2"
874
+                          >iu/h</span
875
+                        >
876
+                        <span v-if="record.prescription.anticoagulant == 1"
877
+                          >mg/h</span
878
+                        >
766
                       </div>
879
                       </div>
767
                       <div class="inline_block" style="margin-left:20px;">
880
                       <div class="inline_block" style="margin-left:20px;">
768
                         总量:
881
                         总量:
777
                               : "/"
890
                               : "/"
778
                           }}
891
                           }}
779
                         </div>
892
                         </div>
780
-                        lu
893
+                        <span v-if="record.prescription.anticoagulant == 4"
894
+                          >mg</span
895
+                        >
896
+                        <span v-if="record.prescription.anticoagulant == 3"
897
+                          >iu</span
898
+                        >
899
+                        <span v-if="record.prescription.anticoagulant == 2"
900
+                          >iu</span
901
+                        >
902
+                        <span v-if="record.prescription.anticoagulant == 1"
903
+                          >mg</span
904
+                        >
781
                       </div>
905
                       </div>
782
                       <div class="inline_block" style="margin-left:20px;">
906
                       <div class="inline_block" style="margin-left:20px;">
783
                         透析机号:
907
                         透析机号:
1022
                             <span v-if="advice[0].parent_id > 0">---></span>
1146
                             <span v-if="advice[0].parent_id > 0">---></span>
1023
                             <span>{{ advice[0].advice_name }}</span>
1147
                             <span>{{ advice[0].advice_name }}</span>
1024
                             <span v-if="advice[0].advice_desc != ''"
1148
                             <span v-if="advice[0].advice_desc != ''"
1025
-                              >{{ advice[0].advice_desc
1026
-                              }}{{ advice[0].drug_spec_unit }}</span
1149
+                              >({{ advice[0].advice_desc
1150
+                              }}{{ advice[0].drug_spec_unit }})</span
1027
                             >
1151
                             >
1028
                             <span v-if="advice[0].prescribing_number"
1152
                             <span v-if="advice[0].prescribing_number"
1029
                               >&nbsp;&nbsp; {{ advice[0].prescribing_number
1153
                               >&nbsp;&nbsp; {{ advice[0].prescribing_number
1082
                           <td height="35px">
1206
                           <td height="35px">
1083
                             <span
1207
                             <span
1084
                               v-if="
1208
                               v-if="
1085
-                                setAdminUserES(advice[0].execution_staff) == ''
1209
+                                setAdminUserES(advice[0], 'execution_staff') ==
1210
+                                  ''
1086
                               "
1211
                               "
1087
                               >{{
1212
                               >{{
1088
-                                getAdminUser(advice[0].execution_staff)
1213
+                                getAdminUser(advice[0], "execution_staff")
1089
                               }}</span
1214
                               }}</span
1090
                             >
1215
                             >
1091
                             <img
1216
                             <img
1092
-                              style="height:20px;"
1093
-                              :src="setAdminUserES(advice[0].execution_staff)"
1217
+                              class="es-img"
1218
+                              :src="
1219
+                                setAdminUserES(advice[0], 'execution_staff')
1220
+                              "
1094
                               alt=""
1221
                               alt=""
1095
                               srcset=""
1222
                               srcset=""
1096
                               v-else
1223
                               v-else
1224
+                              style="height: 40px;"
1097
                             />
1225
                             />
1098
                           </td>
1226
                           </td>
1099
                           <td height="35px">
1227
                           <td height="35px">
1100
                             <span v-if="advice[0].execution_time">{{
1228
                             <span v-if="advice[0].execution_time">{{
1101
-                              getTime(
1102
-                                advice[0].execution_time,
1103
-                                "{y}-{m}-{d} {h}:{i}"
1104
-                              )
1229
+                              getTime(advice[0].execution_time, " {h}:{i}")
1105
                             }}</span>
1230
                             }}</span>
1106
                           </td>
1231
                           </td>
1107
                         </tr>
1232
                         </tr>

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

79
     }
79
     }
80
   },
80
   },
81
   created() {
81
   created() {
82
-    console.log(11111111111, this.propsForm);
82
+    //console.log(11111111111, this.propsForm);
83
   },
83
   },
84
   watch: {
84
   watch: {
85
     "propsForm.type": function() {
85
     "propsForm.type": function() {

+ 25 - 4
src/xt_pages/dialysis/details/dialog/assessmentBeforeDislysisDialog.vue View File

43
             </el-form-item>
43
             </el-form-item>
44
           </el-col>
44
           </el-col>
45
 
45
 
46
+<!--          <el-col :span="8">-->
47
+<!--            <el-form-item label="透析机型号:" v-if="isShow('透析机型号')">-->
48
+<!--              <el-input v-model="assessmentBeforeDislysis.machine_type"></el-input>-->
49
+<!--            </el-form-item>-->
50
+<!--          </el-col>-->
51
+
46
           <el-col :span="8">
52
           <el-col :span="8">
47
-            <el-form-item label="透析机型号:" v-if="isShow('透析机型号')">
48
-              <el-input v-model="assessmentBeforeDislysis.machine_type"></el-input>
53
+            <el-form-item label="透析机型号" v-if="isShow('透析机型号')">
54
+              <el-select v-model="assessmentBeforeDislysis.machine_type">
55
+                <el-option :key="0" label="请选择" :value="0"></el-option>
56
+
57
+                <el-option v-for="item in machineType" :label="item.name" :value="item.id"
58
+                           :key="item.id"></el-option>
59
+              </el-select>
49
             </el-form-item>
60
             </el-form-item>
50
           </el-col>
61
           </el-col>
51
 
62
 
581
           customContent: '',
592
           customContent: '',
582
           titles: '',
593
           titles: '',
583
           type: '' // 不同弹框类型,用来匹配数据
594
           type: '' // 不同弹框类型,用来匹配数据
584
-        }
595
+        },
596
+        machineType:[],
585
 
597
 
586
       }
598
       }
587
     },
599
     },
805
       }, innerDialogCancle: function() {
817
       }, innerDialogCancle: function() {
806
         this.InnerDialogProps.visibility = false
818
         this.InnerDialogProps.visibility = false
807
       }, handleComfirm: function() {
819
       }, handleComfirm: function() {
808
-        const ParamsQuery = this.assessmentBeforeDislysis
820
+         var arr = this.assessmentBeforeDislysis
821
+         for(let i=0;i<this.machineType.length;i++){
822
+           if(arr.machine_type == this.machineType[i].id){
823
+                arr.machine_type = this.machineType[i].name
824
+           }
825
+         }
826
+         console.log("arr",arr)
827
+        const ParamsQuery = arr
828
+        console.log("paramsquery",ParamsQuery)
809
         ParamsQuery['patient'] = this.patient.id
829
         ParamsQuery['patient'] = this.patient.id
810
         ParamsQuery['record_date'] = this.record_date
830
         ParamsQuery['record_date'] = this.record_date
811
         ParamsQuery['mode'] = "1"
831
         ParamsQuery['mode'] = "1"
935
       this.internal_fistula = getDataConfig('hemodialysis', 'internal_fistula')
955
       this.internal_fistula = getDataConfig('hemodialysis', 'internal_fistula')
936
       this.internal_fistula_skin = getDataConfig('hemodialysis', 'internal_fistula_skin')
956
       this.internal_fistula_skin = getDataConfig('hemodialysis', 'internal_fistula_skin')
937
       this.puncture_method = getDataConfig('hemodialysis', 'puncture_method')
957
       this.puncture_method = getDataConfig('hemodialysis', 'puncture_method')
958
+      this.machineType = getDataConfig('hemodialysis','machine_type')
938
       this.blood_access_noise = this.$store.getters.blood_access_noise
959
       this.blood_access_noise = this.$store.getters.blood_access_noise
939
       var date = this.$route.query && this.$route.query.date
960
       var date = this.$route.query && this.$route.query.date
940
       this.record_date = uParseTime(date, '{y}-{m}-{d}')
961
       this.record_date = uParseTime(date, '{y}-{m}-{d}')

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

283
             </el-form-item>
283
             </el-form-item>
284
           </el-col>
284
           </el-col>
285
 
285
 
286
+          <!--          <el-col :span="8" v-if="isShows('透析器/灌流器')">-->
287
+          <!--            <el-form-item label="透析器/灌流器:">-->
288
+          <!--              <el-input-->
289
+          <!--                v-model="dialysisPrescription.dialyzer_perfusion_apparatus"-->
290
+          <!--              ></el-input>-->
291
+          <!--            </el-form-item>-->
292
+          <!--          </el-col>-->
293
+
286
           <el-col :span="8" v-if="isShows('透析器/灌流器')">
294
           <el-col :span="8" v-if="isShows('透析器/灌流器')">
287
-            <el-form-item label="透析器/灌流器:">
288
-              <el-input
295
+            <el-form-item label="透析器/灌流器">
296
+              <el-select
289
                 v-model="dialysisPrescription.dialyzer_perfusion_apparatus"
297
                 v-model="dialysisPrescription.dialyzer_perfusion_apparatus"
290
-              ></el-input>
298
+                placeholder="请选择"
299
+                style="width:100%;"
300
+              >
301
+                <el-option :key="0" label="请选择" :value="0"></el-option>
302
+
303
+                <el-option
304
+                  v-for="(item, index) in dialyzerPerfusionApparatus"
305
+                  :label="item.name"
306
+                  :key="index"
307
+                  :value="item.id"
308
+                ></el-option>
309
+              </el-select>
291
             </el-form-item>
310
             </el-form-item>
292
           </el-col>
311
           </el-col>
293
 
312
 
1130
         gaijiliang_unit: ""
1149
         gaijiliang_unit: ""
1131
       },
1150
       },
1132
 
1151
 
1133
-      doctorAdvices: []
1152
+      doctorAdvices: [],
1153
+      dialyzerPerfusionApparatus: []
1134
     };
1154
     };
1135
   },
1155
   },
1136
   methods: {
1156
   methods: {
1230
         "hemodialysis",
1250
         "hemodialysis",
1231
         "vascular_access_desc"
1251
         "vascular_access_desc"
1232
       );
1252
       );
1233
-      // console.log("血管通路", this.blood_access_option);
1253
+
1254
+      console.log("血管通路", this.blood_access_option);
1255
+      this.dialyzerPerfusionApparatus = getDataConfig(
1256
+        "hemodialysis",
1257
+        "dialyzer_perfusion_apparatus"
1258
+      );
1259
+      console.log("灌流器", this.dialyzerPerfusionApparatus);
1234
       var date = this.$route.query && this.$route.query.date;
1260
       var date = this.$route.query && this.$route.query.date;
1235
       this.record_date = uParseTime(date, "{y}-{m}-{d}");
1261
       this.record_date = uParseTime(date, "{y}-{m}-{d}");
1236
 
1262
 
1273
           }
1299
           }
1274
         }
1300
         }
1275
       } else {
1301
       } else {
1302
+        console.log("排班----------", schedual.mode_id);
1276
         if (
1303
         if (
1277
           schedual.mode_id == 2 ||
1304
           schedual.mode_id == 2 ||
1278
           schedual.mode_id == 5 ||
1305
           schedual.mode_id == 5 ||
1279
           schedual.mode_id == 12
1306
           schedual.mode_id == 12
1280
         ) {
1307
         ) {
1308
+          console.log("进来----");
1281
           this.zhiShow = true;
1309
           this.zhiShow = true;
1282
           this.huShow = true;
1310
           this.huShow = true;
1283
           this.totalShow = true;
1311
           this.totalShow = true;
1579
         this.zhiShow = true;
1607
         this.zhiShow = true;
1580
         this.huShow = true;
1608
         this.huShow = true;
1581
         this.totalShow = true;
1609
         this.totalShow = true;
1582
-      } else {
1610
+      } else if (
1611
+        pre.mode_id == 1 ||
1612
+        pre.mode_id == 3 ||
1613
+        pre.mode_id == 4 ||
1614
+        pre.mode_id == 6 ||
1615
+        pre.mode_id == 7 ||
1616
+        pre.mode_id == 8 ||
1617
+        pre.mode_id == 9 ||
1618
+        pre.mode_id == 10 ||
1619
+        pre.mode_id == 11 ||
1620
+        pre.mode_id == 13 ||
1621
+        pre.mode_id == 14 ||
1622
+        pre.mode_id == 19
1623
+      ) {
1583
         this.zhiShow = false;
1624
         this.zhiShow = false;
1584
         this.huShow = false;
1625
         this.huShow = false;
1585
         this.totalShow = false;
1626
         this.totalShow = false;
1677
             return;
1718
             return;
1678
           }
1719
           }
1679
 
1720
 
1680
-          const ParamsQuery = this.dialysisPrescription;
1721
+          var arr = this.dialysisPrescription;
1722
+          console.log("arr", arr);
1723
+          for (let i = 0; i < this.dialyzerPerfusionApparatus.length; i++) {
1724
+            if (
1725
+              parseInt(arr.dialyzer_perfusion_apparatus) ==
1726
+              this.dialyzerPerfusionApparatus[i].id
1727
+            ) {
1728
+              arr.dialyzer_perfusion_apparatus = this.dialyzerPerfusionApparatus[
1729
+                i
1730
+              ].name;
1731
+            }
1732
+          }
1733
+
1734
+          const ParamsQuery = arr;
1735
+          console.log("night", ParamsQuery);
1681
           ParamsQuery["patient"] = this.patient.id;
1736
           ParamsQuery["patient"] = this.patient.id;
1682
           ParamsQuery["record_date"] = this.record_date;
1737
           ParamsQuery["record_date"] = this.record_date;
1683
           ParamsQuery["mode"] = "1";
1738
           ParamsQuery["mode"] = "1";
1715
               return;
1770
               return;
1716
             }
1771
             }
1717
 
1772
 
1718
-            const ParamsQuery = this.dialysisPrescription;
1773
+            var arr = this.dialysisPrescription;
1774
+            console.log("arr", arr);
1775
+            for (let i = 0; i < this.dialyzerPerfusionApparatus.length; i++) {
1776
+              if (
1777
+                parseInt(arr.dialyzer_perfusion_apparatus) ==
1778
+                this.dialyzerPerfusionApparatus[i].id
1779
+              ) {
1780
+                arr.dialyzer_perfusion_apparatus = this.dialyzerPerfusionApparatus[
1781
+                  i
1782
+                ].name;
1783
+              }
1784
+            }
1785
+
1786
+            const ParamsQuery = arr;
1787
+            console.log("ParamsQuerytwo", ParamsQuery);
1719
             ParamsQuery["patient"] = this.patient.id;
1788
             ParamsQuery["patient"] = this.patient.id;
1720
             ParamsQuery["record_date"] = this.record_date;
1789
             ParamsQuery["record_date"] = this.record_date;
1721
             ParamsQuery["mode"] = "1";
1790
             ParamsQuery["mode"] = "1";
1759
               return;
1828
               return;
1760
             }
1829
             }
1761
 
1830
 
1762
-            const ParamsQuery = this.dialysisPrescription;
1831
+            var arr = this.dialysisPrescription;
1832
+            console.log("arr", arr);
1833
+            for (let i = 0; i < this.dialyzerPerfusionApparatus.length; i++) {
1834
+              if (
1835
+                parseInt(arr.dialyzer_perfusion_apparatus) ==
1836
+                this.dialyzerPerfusionApparatus[i].id
1837
+              ) {
1838
+                arr.dialyzer_perfusion_apparatus = this.dialyzerPerfusionApparatus[
1839
+                  i
1840
+                ].name;
1841
+              }
1842
+            }
1843
+
1844
+            const ParamsQuery = arr;
1845
+            console.log("paramsquerythree", ParamsQuery);
1763
             ParamsQuery["patient"] = this.patient.id;
1846
             ParamsQuery["patient"] = this.patient.id;
1764
             ParamsQuery["record_date"] = this.record_date;
1847
             ParamsQuery["record_date"] = this.record_date;
1765
             ParamsQuery["mode"] = "1";
1848
             ParamsQuery["mode"] = "1";
1822
               return;
1905
               return;
1823
             }
1906
             }
1824
 
1907
 
1825
-            const ParamsQuery = this.dialysisPrescription;
1826
-            ParamsQuery["patient"] = this.patient.id;
1827
-            ParamsQuery["record_date"] = this.record_date;
1828
-            // console.log(this.prescription);
1908
+            var arr = this.dialysisPrescription;
1909
+            console.log("arr", arr);
1910
+            for (let i = 0; i < this.dialyzerPerfusionApparatus.length; i++) {
1911
+              if (
1912
+                parseInt(arr.dialyzer_perfusion_apparatus) ==
1913
+                this.dialyzerPerfusionApparatus[i].id
1914
+              ) {
1915
+                arr.dialyzer_perfusion_apparatus = this.dialyzerPerfusionApparatus[
1916
+                  i
1917
+                ].name;
1918
+              }
1919
+            }
1829
 
1920
 
1921
+            const ParamsQuery = arr;
1922
+            console.log("paramsqueryfour", ParamsQuery);
1830
             if (this.prescription.creater <= 0) {
1923
             if (this.prescription.creater <= 0) {
1831
               mode = 1;
1924
               mode = 1;
1832
             } else {
1925
             } else {
1833
               mode = 2;
1926
               mode = 2;
1834
             }
1927
             }
1928
+            ParamsQuery["patient"] = this.patient.id;
1929
+            ParamsQuery["record_date"] = this.record_date;
1930
+            // console.log(this.prescription);
1835
 
1931
 
1836
             postPrescription(ParamsQuery).then(response => {
1932
             postPrescription(ParamsQuery).then(response => {
1837
               if (response.data.state == 0) {
1933
               if (response.data.state == 0) {
1866
               return;
1962
               return;
1867
             }
1963
             }
1868
 
1964
 
1869
-            const ParamsQuery = this.dialysisPrescription;
1965
+            var arr = this.dialysisPrescription;
1966
+            console.log("arr", arr);
1967
+            for (let i = 0; i < this.dialyzerPerfusionApparatus.length; i++) {
1968
+              if (
1969
+                parseInt(arr.dialyzer_perfusion_apparatus) ==
1970
+                this.dialyzerPerfusionApparatus[i].id
1971
+              ) {
1972
+                arr.dialyzer_perfusion_apparatus = this.dialyzerPerfusionApparatus[
1973
+                  i
1974
+                ].name;
1975
+              }
1976
+            }
1977
+
1978
+            const ParamsQuery = arr;
1979
+            console.log("paramsqueryfive", ParamsQuery);
1870
             ParamsQuery["patient"] = this.patient.id;
1980
             ParamsQuery["patient"] = this.patient.id;
1871
             ParamsQuery["record_date"] = this.record_date;
1981
             ParamsQuery["record_date"] = this.record_date;
1872
             ParamsQuery["mode"] = "1";
1982
             ParamsQuery["mode"] = "1";
1904
                 return;
2014
                 return;
1905
               }
2015
               }
1906
 
2016
 
1907
-              const ParamsQuery = this.dialysisPrescription;
2017
+              var arr = this.dialysisPrescription;
2018
+              console.log("arr", arr);
2019
+              for (let i = 0; i < this.dialyzerPerfusionApparatus.length; i++) {
2020
+                if (
2021
+                  parseInt(arr.dialyzer_perfusion_apparatus) ==
2022
+                  this.dialyzerPerfusionApparatus[i].id
2023
+                ) {
2024
+                  arr.dialyzer_perfusion_apparatus = this.dialyzerPerfusionApparatus[
2025
+                    i
2026
+                  ].name;
2027
+                }
2028
+              }
2029
+
2030
+              const ParamsQuery = arr;
2031
+              console.log("ParamsQuerysix", ParamsQuery);
1908
               ParamsQuery["patient"] = this.patient.id;
2032
               ParamsQuery["patient"] = this.patient.id;
1909
               ParamsQuery["record_date"] = this.record_date;
2033
               ParamsQuery["record_date"] = this.record_date;
1910
               ParamsQuery["mode"] = "1";
2034
               ParamsQuery["mode"] = "1";
1948
                 return;
2072
                 return;
1949
               }
2073
               }
1950
 
2074
 
1951
-              const ParamsQuery = this.dialysisPrescription;
2075
+              var arr = this.dialysisPrescription;
2076
+              console.log("arr", arr);
2077
+              for (let i = 0; i < this.dialyzerPerfusionApparatus.length; i++) {
2078
+                if (
2079
+                  parseInt(arr.dialyzer_perfusion_apparatus) ==
2080
+                  this.dialyzerPerfusionApparatus[i].id
2081
+                ) {
2082
+                  arr.dialyzer_perfusion_apparatus = this.dialyzerPerfusionApparatus[
2083
+                    i
2084
+                  ].name;
2085
+                }
2086
+              }
2087
+
2088
+              const ParamsQuery = arr;
2089
+              console.log("parasmqueryseven", parasmqueryseven);
1952
               ParamsQuery["patient"] = this.patient.id;
2090
               ParamsQuery["patient"] = this.patient.id;
1953
               ParamsQuery["record_date"] = this.record_date;
2091
               ParamsQuery["record_date"] = this.record_date;
1954
               ParamsQuery["mode"] = "1";
2092
               ParamsQuery["mode"] = "1";
2013
                 return;
2151
                 return;
2014
               }
2152
               }
2015
 
2153
 
2016
-              const ParamsQuery = this.dialysisPrescription;
2154
+              var arr = this.dialysisPrescription;
2155
+              console.log("arr", arr);
2156
+              for (let i = 0; i < this.dialyzerPerfusionApparatus.length; i++) {
2157
+                if (
2158
+                  parseInt(arr.dialyzer_perfusion_apparatus) ==
2159
+                  this.dialyzerPerfusionApparatus[i].id
2160
+                ) {
2161
+                  arr.dialyzer_perfusion_apparatus = this.dialyzerPerfusionApparatus[
2162
+                    i
2163
+                  ].name;
2164
+                }
2165
+              }
2166
+              const ParamsQuery = arr;
2167
+              console.log("eight", ParamsQuery);
2017
               ParamsQuery["patient"] = this.patient.id;
2168
               ParamsQuery["patient"] = this.patient.id;
2018
               ParamsQuery["record_date"] = this.record_date;
2169
               ParamsQuery["record_date"] = this.record_date;
2019
               ParamsQuery["mode"] = "1";
2170
               ParamsQuery["mode"] = "1";
2048
             return;
2199
             return;
2049
           }
2200
           }
2050
 
2201
 
2051
-          const ParamsQuery = this.dialysisPrescription;
2202
+          var arr = this.dialysisPrescription;
2203
+          console.log("arr", arr);
2204
+          for (let i = 0; i < this.dialyzerPerfusionApparatus.length; i++) {
2205
+            if (
2206
+              parseInt(arr.dialyzer_perfusion_apparatus) ==
2207
+              this.dialyzerPerfusionApparatus[i].id
2208
+            ) {
2209
+              arr.dialyzer_perfusion_apparatus = this.dialyzerPerfusionApparatus[
2210
+                i
2211
+              ].name;
2212
+            }
2213
+          }
2214
+
2215
+          const ParamsQuery = arr;
2216
+          console.log("night", ParamsQuery);
2052
           ParamsQuery["patient"] = this.patient.id;
2217
           ParamsQuery["patient"] = this.patient.id;
2053
           ParamsQuery["record_date"] = this.record_date;
2218
           ParamsQuery["record_date"] = this.record_date;
2054
           ParamsQuery["mode"] = "2";
2219
           ParamsQuery["mode"] = "2";
2115
             this.loading = false;
2280
             this.loading = false;
2116
             return;
2281
             return;
2117
           }
2282
           }
2118
-          const ParamsQuery = this.dialysisPrescription;
2283
+          var arr = this.dialysisPrescription;
2284
+          console.log("arr", arr);
2285
+          for (let i = 0; i < this.dialyzerPerfusionApparatus.length; i++) {
2286
+            if (
2287
+              parseInt(arr.dialyzer_perfusion_apparatus) ==
2288
+              this.dialyzerPerfusionApparatus[i].id
2289
+            ) {
2290
+              arr.dialyzer_perfusion_apparatus = this.dialyzerPerfusionApparatus[
2291
+                i
2292
+              ].name;
2293
+            }
2294
+          }
2295
+
2296
+          const ParamsQuery = arr;
2297
+          console.log("长期处方1", ParamsQuery);
2119
           ParamsQuery["patient"] = this.patient.id;
2298
           ParamsQuery["patient"] = this.patient.id;
2120
           ParamsQuery["record_date"] = this.record_date;
2299
           ParamsQuery["record_date"] = this.record_date;
2121
           ParamsQuery["mode"] = "1";
2300
           ParamsQuery["mode"] = "1";
2158
               this.loading = false;
2337
               this.loading = false;
2159
               return;
2338
               return;
2160
             }
2339
             }
2161
-            const ParamsQuery = this.dialysisPrescription;
2340
+            var arr = this.dialysisPrescription;
2341
+            console.log("arr", arr);
2342
+            for (let i = 0; i < this.dialyzerPerfusionApparatus.length; i++) {
2343
+              if (
2344
+                parseInt(arr.dialyzer_perfusion_apparatus) ==
2345
+                this.dialyzerPerfusionApparatus[i].id
2346
+              ) {
2347
+                arr.dialyzer_perfusion_apparatus = this.dialyzerPerfusionApparatus[
2348
+                  i
2349
+                ].name;
2350
+              }
2351
+            }
2352
+
2353
+            const ParamsQuery = arr;
2354
+            console.log("长期处方2", ParamsQuery);
2355
+
2162
             ParamsQuery["patient"] = this.patient.id;
2356
             ParamsQuery["patient"] = this.patient.id;
2163
             ParamsQuery["record_date"] = this.record_date;
2357
             ParamsQuery["record_date"] = this.record_date;
2164
             ParamsQuery["mode"] = "1";
2358
             ParamsQuery["mode"] = "1";
2208
               return;
2402
               return;
2209
             }
2403
             }
2210
 
2404
 
2211
-            const ParamsQuery = this.dialysisPrescription;
2405
+            var arr = this.dialysisPrescription;
2406
+            console.log("arr", arr);
2407
+            for (let i = 0; i < this.dialyzerPerfusionApparatus.length; i++) {
2408
+              if (
2409
+                parseInt(arr.dialyzer_perfusion_apparatus) ==
2410
+                this.dialyzerPerfusionApparatus[i].id
2411
+              ) {
2412
+                arr.dialyzer_perfusion_apparatus = this.dialyzerPerfusionApparatus[
2413
+                  i
2414
+                ].name;
2415
+              }
2416
+            }
2417
+
2418
+            const ParamsQuery = arr;
2419
+            console.log("长期处方3", ParamsQuery);
2420
+
2212
             ParamsQuery["patient"] = this.patient.id;
2421
             ParamsQuery["patient"] = this.patient.id;
2213
             ParamsQuery["record_date"] = this.record_date;
2422
             ParamsQuery["record_date"] = this.record_date;
2214
             console.log(this.prescription);
2423
             console.log(this.prescription);
2271
               this.loading = false;
2480
               this.loading = false;
2272
               return;
2481
               return;
2273
             }
2482
             }
2274
-            const ParamsQuery = this.dialysisPrescription;
2483
+            var arr = this.dialysisPrescription;
2484
+            console.log("arr", arr);
2485
+            for (let i = 0; i < this.dialyzerPerfusionApparatus.length; i++) {
2486
+              if (
2487
+                parseInt(arr.dialyzer_perfusion_apparatus) ==
2488
+                this.dialyzerPerfusionApparatus[i].id
2489
+              ) {
2490
+                arr.dialyzer_perfusion_apparatus = this.dialyzerPerfusionApparatus[
2491
+                  i
2492
+                ].name;
2493
+              }
2494
+            }
2495
+
2496
+            const ParamsQuery = arr;
2497
+            console.log("长期处方5", ParamsQuery);
2498
+
2275
             ParamsQuery["patient"] = this.patient.id;
2499
             ParamsQuery["patient"] = this.patient.id;
2276
             ParamsQuery["record_date"] = this.record_date;
2500
             ParamsQuery["record_date"] = this.record_date;
2277
             ParamsQuery["mode"] = "1";
2501
             ParamsQuery["mode"] = "1";
2313
               this.loading = false;
2537
               this.loading = false;
2314
               return;
2538
               return;
2315
             }
2539
             }
2316
-            const ParamsQuery = this.dialysisPrescription;
2540
+            var arr = this.dialysisPrescription;
2541
+            console.log("arr", arr);
2542
+            for (let i = 0; i < this.dialyzerPerfusionApparatus.length; i++) {
2543
+              if (
2544
+                parseInt(arr.dialyzer_perfusion_apparatus) ==
2545
+                this.dialyzerPerfusionApparatus[i].id
2546
+              ) {
2547
+                arr.dialyzer_perfusion_apparatus = this.dialyzerPerfusionApparatus[
2548
+                  i
2549
+                ].name;
2550
+              }
2551
+            }
2552
+
2553
+            const ParamsQuery = arr;
2554
+            console.log("长期处方6", ParamsQuery);
2317
             ParamsQuery["patient"] = this.patient.id;
2555
             ParamsQuery["patient"] = this.patient.id;
2318
             ParamsQuery["record_date"] = this.record_date;
2556
             ParamsQuery["record_date"] = this.record_date;
2319
             ParamsQuery["mode"] = "1";
2557
             ParamsQuery["mode"] = "1";
2356
                 this.loading = false;
2594
                 this.loading = false;
2357
                 return;
2595
                 return;
2358
               }
2596
               }
2359
-              const ParamsQuery = this.dialysisPrescription;
2597
+              var arr = this.dialysisPrescription;
2598
+              console.log("arr", arr);
2599
+              for (let i = 0; i < this.dialyzerPerfusionApparatus.length; i++) {
2600
+                if (
2601
+                  parseInt(arr.dialyzer_perfusion_apparatus) ==
2602
+                  this.dialyzerPerfusionApparatus[i].id
2603
+                ) {
2604
+                  arr.dialyzer_perfusion_apparatus = this.dialyzerPerfusionApparatus[
2605
+                    i
2606
+                  ].name;
2607
+                }
2608
+              }
2609
+
2610
+              const ParamsQuery = arr;
2611
+              console.log("长期处方7", ParamsQuery);
2360
               ParamsQuery["patient"] = this.patient.id;
2612
               ParamsQuery["patient"] = this.patient.id;
2361
               ParamsQuery["record_date"] = this.record_date;
2613
               ParamsQuery["record_date"] = this.record_date;
2362
               ParamsQuery["mode"] = "1";
2614
               ParamsQuery["mode"] = "1";
2405
                 this.loading = false;
2657
                 this.loading = false;
2406
                 return;
2658
                 return;
2407
               }
2659
               }
2408
-              const ParamsQuery = this.dialysisPrescription;
2660
+              var arr = this.dialysisPrescription;
2661
+              console.log("arr", arr);
2662
+              for (let i = 0; i < this.dialyzerPerfusionApparatus.length; i++) {
2663
+                if (
2664
+                  parseInt(arr.dialyzer_perfusion_apparatus) ==
2665
+                  this.dialyzerPerfusionApparatus[i].id
2666
+                ) {
2667
+                  arr.dialyzer_perfusion_apparatus = this.dialyzerPerfusionApparatus[
2668
+                    i
2669
+                  ].name;
2670
+                }
2671
+              }
2672
+
2673
+              const ParamsQuery = arr;
2674
+              console.log("长期处方8", ParamsQuery);
2409
               ParamsQuery["patient"] = this.patient.id;
2675
               ParamsQuery["patient"] = this.patient.id;
2410
               ParamsQuery["record_date"] = this.record_date;
2676
               ParamsQuery["record_date"] = this.record_date;
2411
               ParamsQuery["mode"] = "1";
2677
               ParamsQuery["mode"] = "1";
2474
                 this.loading = false;
2740
                 this.loading = false;
2475
                 return;
2741
                 return;
2476
               }
2742
               }
2477
-              const ParamsQuery = this.dialysisPrescription;
2743
+              var arr = this.dialysisPrescription;
2744
+              console.log("arr", arr);
2745
+              for (let i = 0; i < this.dialyzerPerfusionApparatus.length; i++) {
2746
+                if (
2747
+                  parseInt(arr.dialyzer_perfusion_apparatus) ==
2748
+                  this.dialyzerPerfusionApparatus[i].id
2749
+                ) {
2750
+                  arr.dialyzer_perfusion_apparatus = this.dialyzerPerfusionApparatus[
2751
+                    i
2752
+                  ].name;
2753
+                }
2754
+              }
2755
+
2756
+              const ParamsQuery = arr;
2757
+              console.log("长期处方9", ParamsQuery);
2478
               ParamsQuery["patient"] = this.patient.id;
2758
               ParamsQuery["patient"] = this.patient.id;
2479
               ParamsQuery["record_date"] = this.record_date;
2759
               ParamsQuery["record_date"] = this.record_date;
2480
               ParamsQuery["mode"] = "1";
2760
               ParamsQuery["mode"] = "1";
2514
             this.loading = false;
2794
             this.loading = false;
2515
             return;
2795
             return;
2516
           }
2796
           }
2517
-          const ParamsQuery = this.dialysisPrescription;
2797
+          var arr = this.dialysisPrescription;
2798
+          console.log("arr", arr);
2799
+          for (let i = 0; i < this.dialyzerPerfusionApparatus.length; i++) {
2800
+            if (
2801
+              parseInt(arr.dialyzer_perfusion_apparatus) ==
2802
+              this.dialyzerPerfusionApparatus[i].id
2803
+            ) {
2804
+              arr.dialyzer_perfusion_apparatus = this.dialyzerPerfusionApparatus[
2805
+                i
2806
+              ].name;
2807
+            }
2808
+          }
2809
+
2810
+          const ParamsQuery = arr;
2811
+          console.log("长期处方10", ParamsQuery);
2812
+
2518
           ParamsQuery["patient"] = this.patient.id;
2813
           ParamsQuery["patient"] = this.patient.id;
2519
           ParamsQuery["record_date"] = this.record_date;
2814
           ParamsQuery["record_date"] = this.record_date;
2520
           ParamsQuery["mode"] = "1";
2815
           ParamsQuery["mode"] = "1";
2734
         id === 13 ||
3029
         id === 13 ||
2735
         id === 14 ||
3030
         id === 14 ||
2736
         id === 15 ||
3031
         id === 15 ||
2737
-        id === 16
3032
+        id === 16 ||
3033
+        id === 19
2738
       ) {
3034
       ) {
2739
         this.zhiShow = false;
3035
         this.zhiShow = false;
2740
         this.huShow = false;
3036
         this.huShow = false;

+ 8 - 4
src/xt_pages/dialysis/details/dialog/monitor_dialog.vue View File

471
               <el-input v-model="form.ultrafiltration_rate"></el-input>
471
               <el-input v-model="form.ultrafiltration_rate"></el-input>
472
             </el-form-item>
472
             </el-form-item>
473
           </el-col>
473
           </el-col>
474
+
474
           <el-col
475
           <el-col
475
             :span="8"
476
             :span="8"
476
             v-if="
477
             v-if="
477
               isShow('超滤量') &&
478
               isShow('超滤量') &&
478
-                (template_id != 6 ||
479
-                  template_id != 10 ||
480
-                  template_id != 11 ||
481
-                  template_id != 12)
479
+                (template_id == 6 ||
480
+                  template_id == 10 ||
481
+                  template_id == 11 ||
482
+                  template_id == 12)
482
             "
483
             "
483
           >
484
           >
484
             <el-form-item label="超滤量(ml):">
485
             <el-form-item label="超滤量(ml):">
485
               <el-input v-model="form.ultrafiltration_volume"></el-input>
486
               <el-input v-model="form.ultrafiltration_volume"></el-input>
486
             </el-form-item>
487
             </el-form-item>
487
           </el-col>
488
           </el-col>
489
+
488
           <el-col
490
           <el-col
489
             :span="8"
491
             :span="8"
490
             v-if="
492
             v-if="
499
               <el-input v-model="form.ultrafiltration_volume"></el-input>
501
               <el-input v-model="form.ultrafiltration_volume"></el-input>
500
             </el-form-item>
502
             </el-form-item>
501
           </el-col>
503
           </el-col>
504
+
502
           <el-col :span="8" v-if="isShow('钠浓度')">
505
           <el-col :span="8" v-if="isShow('钠浓度')">
503
             <el-form-item label="钠浓度(mmol/L):">
506
             <el-form-item label="钠浓度(mmol/L):">
504
               <el-input v-model="form.sodium_concentration"></el-input>
507
               <el-input v-model="form.sodium_concentration"></el-input>
753
   },
756
   },
754
   created() {
757
   created() {
755
     this.template_id = this.$store.getters.xt_user.template_info.template_id;
758
     this.template_id = this.$store.getters.xt_user.template_info.template_id;
759
+    console.log("模版ID", this.template_id);
756
     var date = this.$route.query.date;
760
     var date = this.$route.query.date;
757
     var patient_id = this.$route.query.patient_id;
761
     var patient_id = this.$route.query.patient_id;
758
     this.patient_id = patient_id;
762
     this.patient_id = patient_id;

+ 234 - 153
src/xt_pages/dialysis/details/dialog/treatmentSummaryDialog.vue View File

5
     width="854px"
5
     width="854px"
6
     :visible.sync="isVisibility"
6
     :visible.sync="isVisibility"
7
     :modal-append-to-body="false"
7
     :modal-append-to-body="false"
8
-  > 
8
+  >
9
     <div class="warnTxt" v-if="showTxt != ''">{{ showTxt }}</div>
9
     <div class="warnTxt" v-if="showTxt != ''">{{ showTxt }}</div>
10
     <el-form :model="treatmentSummary">
10
     <el-form :model="treatmentSummary">
11
       <el-row :gutter="20">
11
       <el-row :gutter="20">
12
         <el-col :span="24">
12
         <el-col :span="24">
13
           <el-form-item label="宣教知识:">
13
           <el-form-item label="宣教知识:">
14
             <el-select @change="dialysisAfterTeachSelectChange" v-model="value">
14
             <el-select @change="dialysisAfterTeachSelectChange" v-model="value">
15
-              <el-option v-for="(item,index) in education" :label="item.text" :value="item.value" :key="index"></el-option>
15
+              <el-option
16
+                v-for="(item, index) in education"
17
+                :label="item.text"
18
+                :value="item.value"
19
+                :key="index"
20
+              ></el-option>
16
             </el-select>
21
             </el-select>
17
           </el-form-item>
22
           </el-form-item>
18
         </el-col>
23
         </el-col>
19
       </el-row>
24
       </el-row>
20
       <el-form-item>
25
       <el-form-item>
21
-        <el-input type="textarea" v-model="treatmentSummary.mission" :rows="4"></el-input>
26
+        <el-input
27
+          type="textarea"
28
+          v-model="treatmentSummary.mission"
29
+          :rows="4"
30
+        ></el-input>
22
       </el-form-item>
31
       </el-form-item>
23
       <el-row :gutter="20">
32
       <el-row :gutter="20">
24
         <el-col :span="24">
33
         <el-col :span="24">
25
           <el-form-item label="透析小结:">
34
           <el-form-item label="透析小结:">
26
             <el-select @change="dialysisSummarySelectChange" v-model="value2">
35
             <el-select @change="dialysisSummarySelectChange" v-model="value2">
27
-              <el-option v-for="(item,index) in summary" :label="item.text" :value="item.value" :key="index"></el-option>
36
+              <el-option
37
+                v-for="(item, index) in summary"
38
+                :label="item.text"
39
+                :value="item.value"
40
+                :key="index"
41
+              ></el-option>
28
             </el-select>
42
             </el-select>
29
           </el-form-item>
43
           </el-form-item>
30
         </el-col>
44
         </el-col>
31
       </el-row>
45
       </el-row>
32
       <el-form-item>
46
       <el-form-item>
33
-        <el-input type="textarea" v-model="treatmentSummary.dialysis_summary" :rows="4"></el-input>
47
+        <el-input
48
+          type="textarea"
49
+          v-model="treatmentSummary.dialysis_summary"
50
+          :rows="4"
51
+        ></el-input>
34
       </el-form-item>
52
       </el-form-item>
53
+      <el-row :gutter="20">
54
+        <el-col :span="24" v-if="isShow('透析护理记录')">
55
+          <el-form-item label="透析护理记录:">
56
+            <el-input
57
+              type="textarea"
58
+              v-model="treatmentSummary.nursing_record"
59
+              :rows="4"
60
+            ></el-input>
61
+          </el-form-item>
62
+        </el-col>
63
+      </el-row>
64
+      <el-row :gutter="20">
65
+        <el-col :span="24" v-if="isShow('特殊记录')">
66
+          <el-form-item label="特殊记录:">
67
+            <el-input
68
+              type="textarea"
69
+              v-model="treatmentSummary.special_record"
70
+              :rows="4"
71
+            ></el-input>
72
+          </el-form-item>
73
+        </el-col>
74
+      </el-row>
35
     </el-form>
75
     </el-form>
36
     <div slot="footer" class="dialog-footer">
76
     <div slot="footer" class="dialog-footer">
37
       <el-button @click="handleCancle">取 消</el-button>
77
       <el-button @click="handleCancle">取 消</el-button>
38
-      <el-button type="primary" @click="handleComfirm" v-if="hasPermission">保 存</el-button>
78
+      <el-button type="primary" @click="handleComfirm" v-if="hasPermission"
79
+        >保 存</el-button
80
+      >
39
     </div>
81
     </div>
40
   </el-dialog>
82
   </el-dialog>
41
 </template>
83
 </template>
42
 
84
 
43
 <script>
85
 <script>
44
-  import { getDataConfig } from '@/utils/data'
45
-import { postTreatmentsummary } from '@/api/dialysis'
46
-import { uParseTime } from '@/utils/tools'
47
-
48
-import request from '@/utils/request'
86
+import { getDataConfig } from "@/utils/data";
87
+import { postTreatmentsummary } from "@/api/dialysis";
88
+import { uParseTime } from "@/utils/tools";
89
+import store from "@/store";
90
+import request from "@/utils/request";
49
 
91
 
50
 export default {
92
 export default {
51
-    name: 'treatmentSummaryDialog',
93
+  name: "treatmentSummaryDialog",
52
 
94
 
53
-    props: {
54
-      treatment_summary: { // 治疗小结
55
-        type: Object,
56
-        default: () => {
57
-          return { id: 0 }
58
-        }
59
-      }, patient: { // 患者信息
60
-        type: Object,
61
-        default: () => {
62
-          return { id: 0 }
63
-        }
95
+  props: {
96
+    treatment_summary: {
97
+      // 治疗小结
98
+      type: Object,
99
+      default: () => {
100
+        return { id: 0 };
64
       }
101
       }
65
-
66
     },
102
     },
67
-    data() {
68
-      return {
69
-        showTxt:'',
70
-        hasPermission:true,
71
-        value: '',
72
-        value2: '',
103
+    patient: {
104
+      // 患者信息
105
+      type: Object,
106
+      default: () => {
107
+        return { id: 0 };
108
+      }
109
+    }
110
+  },
111
+  data() {
112
+    return {
113
+      showTxt: "",
114
+      hasPermission: true,
115
+      value: "",
116
+      value2: "",
73
 
117
 
74
-        isVisibility: false,
75
-        record_date: '',
76
-        education: [],
77
-        summary: [],
78
-        treatmentSummary: {
79
-          mission: '',
80
-          dialysis_summary: '',
81
-          sj_nurse: '',
82
-          zl_nurse: '',
83
-          hd_nurse: '',
84
-          xj_nurse: '',
85
-          zl_doctor: ''
86
-        }
118
+      isVisibility: false,
119
+      record_date: "",
120
+      education: [],
121
+      summary: [],
122
+      treatmentSummary: {
123
+        mission: "",
124
+        dialysis_summary: "",
125
+        sj_nurse: "",
126
+        zl_nurse: "",
127
+        hd_nurse: "",
128
+        xj_nurse: "",
129
+        zl_doctor: "",
130
+        nursing_record: "",
131
+        special_record: ""
87
       }
132
       }
133
+    };
88
   },
134
   },
89
-    methods: {
90
-      show(record) {
91
-        this.isVisibility = true
92
-        this.record = record
93
-        console.log("治疗小结",record)
94
-        this.getPermission()
95
-      },
96
-      hide() {
97
-        this.isVisibility = false
98
-      },
99
-      dialysisAfterTeachSelectChange: function(values) {
100
-        if (this.treatmentSummary.mission == '') {
101
-          this.treatmentSummary.mission = values
102
-        } else {
103
-          if (this.treatmentSummary.mission.indexOf(values) == -1) {
104
-            if (this.treatmentSummary.mission.charAt(this.treatmentSummary.mission.length - 1).indexOf('。') == -1) {
105
-              this.treatmentSummary.mission = this.treatmentSummary.mission + ',' + values
106
-            } else {
107
-              this.treatmentSummary.mission = this.treatmentSummary.mission + values
108
-            }
135
+  methods: {
136
+    show(record) {
137
+      this.isVisibility = true;
138
+      this.record = record;
139
+      console.log("治疗小结", record);
140
+      this.getPermission();
141
+    },
142
+    hide() {
143
+      this.isVisibility = false;
144
+    },
145
+    dialysisAfterTeachSelectChange: function(values) {
146
+      if (this.treatmentSummary.mission == "") {
147
+        this.treatmentSummary.mission = values;
148
+      } else {
149
+        if (this.treatmentSummary.mission.indexOf(values) == -1) {
150
+          if (
151
+            this.treatmentSummary.mission
152
+              .charAt(this.treatmentSummary.mission.length - 1)
153
+              .indexOf("。") == -1
154
+          ) {
155
+            this.treatmentSummary.mission =
156
+              this.treatmentSummary.mission + "," + values;
157
+          } else {
158
+            this.treatmentSummary.mission =
159
+              this.treatmentSummary.mission + values;
109
           }
160
           }
110
         }
161
         }
111
-      }, dialysisSummarySelectChange: function(values) {
112
-        if (this.treatmentSummary.dialysis_summary == '') {
113
-          this.treatmentSummary.dialysis_summary = values
114
-        } else {
115
-          if (this.treatmentSummary.dialysis_summary.indexOf(values) == -1) {
116
-            if (this.treatmentSummary.dialysis_summary.charAt(this.treatmentSummary.dialysis_summary.length - 1).indexOf('。') == -1) {
117
-              this.treatmentSummary.dialysis_summary = this.treatmentSummary.dialysis_summary + ',' + values
118
-            } else {
119
-              this.treatmentSummary.dialysis_summary = this.treatmentSummary.dialysis_summary + ',' + values
120
-              this.treatmentSummary.dialysis_summary = this.treatmentSummary.dialysis_summary + values
121
-            }
162
+      }
163
+    },
164
+    dialysisSummarySelectChange: function(values) {
165
+      if (this.treatmentSummary.dialysis_summary == "") {
166
+        this.treatmentSummary.dialysis_summary = values;
167
+      } else {
168
+        if (this.treatmentSummary.dialysis_summary.indexOf(values) == -1) {
169
+          if (
170
+            this.treatmentSummary.dialysis_summary
171
+              .charAt(this.treatmentSummary.dialysis_summary.length - 1)
172
+              .indexOf("。") == -1
173
+          ) {
174
+            this.treatmentSummary.dialysis_summary =
175
+              this.treatmentSummary.dialysis_summary + "," + values;
176
+          } else {
177
+            this.treatmentSummary.dialysis_summary =
178
+              this.treatmentSummary.dialysis_summary + "," + values;
179
+            this.treatmentSummary.dialysis_summary =
180
+              this.treatmentSummary.dialysis_summary + values;
122
           }
181
           }
123
         }
182
         }
124
-      }, handleCancle: function() {
125
-        this.isVisibility = false
126
-      }, handleComfirm: function() {
127
-        const ParamsQuery = this.treatmentSummary
128
-        ParamsQuery['patient'] = this.patient.id
129
-        ParamsQuery['record_date'] = this.record_date
130
-        ParamsQuery['mode'] = "1"
131
-        if(this.treatment_summary.id > 0){
132
-          ParamsQuery['mode'] = "2"
133
-          if(this.treatment_summary.creater != this.$store.getters.xt_user.user.id){
134
-            ParamsQuery['mode'] = "3"
135
-          }
183
+      }
184
+    },
185
+    handleCancle: function() {
186
+      this.isVisibility = false;
187
+    },
188
+    handleComfirm: function() {
189
+      const ParamsQuery = this.treatmentSummary;
190
+      ParamsQuery["patient"] = this.patient.id;
191
+      ParamsQuery["record_date"] = this.record_date;
192
+      ParamsQuery["mode"] = "1";
193
+      if (this.treatment_summary.id > 0) {
194
+        ParamsQuery["mode"] = "2";
195
+        if (
196
+          this.treatment_summary.creater != this.$store.getters.xt_user.user.id
197
+        ) {
198
+          ParamsQuery["mode"] = "3";
136
         }
199
         }
137
-        postTreatmentsummary(ParamsQuery).then(response => {
138
-          if (response.data.state == 0) {
139
-            this.$message.error(response.data.msg)
140
-            return false
141
-          } else {
142
-            this.$notify({
143
-              title: '成功',
144
-              message: '提交成功',
145
-              type: 'success',
146
-              duration: 2000
147
-            })
200
+      }
201
+      postTreatmentsummary(ParamsQuery).then(response => {
202
+        if (response.data.state == 0) {
203
+          this.$message.error(response.data.msg);
204
+          return false;
205
+        } else {
206
+          this.$notify({
207
+            title: "成功",
208
+            message: "提交成功",
209
+            type: "success",
210
+            duration: 2000
211
+          });
148
 
212
 
149
-            const summary_resp = response.data.data.summary
150
-            // prop
151
-            var treatment_summary = this.treatment_summary
152
-            for (var index in summary_resp) {
153
-              // treatment_summary[index] = summary_resp[index];
154
-              this.$set(treatment_summary, index, summary_resp[index])
155
-            }
213
+          const summary_resp = response.data.data.summary;
214
+          // prop
215
+          var treatment_summary = this.treatment_summary;
216
+          for (var index in summary_resp) {
217
+            // treatment_summary[index] = summary_resp[index];
218
+            this.$set(treatment_summary, index, summary_resp[index]);
219
+          }
156
 
220
 
157
-            this.hide()
221
+          this.hide();
222
+        }
223
+      });
224
+    },
225
+    getPermission() {
226
+      request
227
+        .get("/api/func_per/get", {
228
+          params: {
229
+            create_url: "/api/dialysis/treatmentsummary?mode=1",
230
+            modify_url: "/api/dialysis/treatmentsummary?mode=2",
231
+            modify_other_url: "/api/dialysis/treatmentsummary?mode=3",
232
+            module: 9
158
           }
233
           }
159
         })
234
         })
160
-      },
161
-      getPermission(){
162
-        request.get("/api/func_per/get",{
163
-          params:{
164
-            create_url:"/api/dialysis/treatmentsummary?mode=1",
165
-            modify_url:"/api/dialysis/treatmentsummary?mode=2",
166
-            modify_other_url:"/api/dialysis/treatmentsummary?mode=3",
167
-            module:9
168
-          }
169
-        }).then(res => {
170
-          console.log(res)
171
-          console.log("小结",this.record)
172
-          if(res.data.state == 0){
173
-            this.hasPermission = false
174
-          }else if(res.data.state == 1){
175
-            if(this.record.id != "" && this.record.creater != 0){//有数据
176
-              if(this.record.creater == this.$store.getters.user.admin.id){//创建人是自己
177
-                if(res.data.data.is_has_modify == false){
178
-                  this.hasPermission = false
179
-                  this.showTxt = "你没有修改治疗小结权限"
235
+        .then(res => {
236
+          if (res.data.state == 0) {
237
+            this.hasPermission = false;
238
+          } else if (res.data.state == 1) {
239
+            if (this.record.id != "" && this.record.creater != 0) {
240
+              //有数据
241
+              if (this.record.creater == this.$store.getters.user.admin.id) {
242
+                //创建人是自己
243
+                if (res.data.data.is_has_modify == false) {
244
+                  this.hasPermission = false;
245
+                  this.showTxt = "你没有修改治疗小结权限";
180
                 }
246
                 }
181
-              }else{//创建人不是自己
182
-                if(res.data.data.is_has_modify_other == false){
183
-                  this.hasPermission = false
184
-                  this.showTxt = "你没有修改他人治疗小结权限"
247
+              } else {
248
+                //创建人不是自己
249
+                if (res.data.data.is_has_modify_other == false) {
250
+                  this.hasPermission = false;
251
+                  this.showTxt = "你没有修改他人治疗小结权限";
185
                 }
252
                 }
186
               }
253
               }
187
-            }else if(this.record.id == "" || this.record.creater == 0){
188
-              if(res.data.data.is_has_create  == false){
189
-                this.hasPermission = false
190
-                this.showTxt = "你没有新增治疗小结权限"
254
+            } else if (this.record.id == "" || this.record.creater == 0) {
255
+              if (res.data.data.is_has_create == false) {
256
+                this.hasPermission = false;
257
+                this.showTxt = "你没有新增治疗小结权限";
191
               }
258
               }
192
             }
259
             }
193
           }
260
           }
194
-        })
195
-      }
196
-    }, watch: {
197
-      isVisibility(val) {
261
+        });
262
+    },
263
+    isShow(name) {
264
+      var filedList = store.getters.xt_user.fileds;
198
 
265
 
199
-      },
200
-      'treatment_summary.id': function() {
201
-        if (this.treatment_summary.id > 0) {
202
-          for (var index in this.treatmentSummary) {
203
-            this.treatmentSummary[index] = this.treatment_summary[index]
204
-          }
266
+      for (let i = 0; i < filedList.length; i++) {
267
+        if (
268
+          filedList[i].module == 6 &&
269
+          filedList[i].filed_name_cn == name &&
270
+          filedList[i].is_show == 1
271
+        ) {
272
+          return true;
205
         }
273
         }
206
       }
274
       }
207
-    }, created() {
208
-      this.education = getDataConfig('education', 'education')
209
-      this.summary = getDataConfig('summary', 'summary')
275
+      return false;
276
+    }
277
+  },
278
+  watch: {
279
+    isVisibility(val) {},
280
+    "treatment_summary.id": function() {
281
+      if (this.treatment_summary.id > 0) {
282
+        for (var index in this.treatmentSummary) {
283
+          this.treatmentSummary[index] = this.treatment_summary[index];
284
+        }
285
+      }
286
+    }
287
+  },
288
+  created() {
289
+    this.education = getDataConfig("education", "education");
290
+    this.summary = getDataConfig("summary", "summary");
210
 
291
 
211
-      var date = this.$route.query && this.$route.query.date
212
-      this.record_date = uParseTime(date, '{y}-{m}-{d}')
213
-  }
292
+    var date = this.$route.query && this.$route.query.date;
293
+    this.record_date = uParseTime(date, "{y}-{m}-{d}");
214
   }
294
   }
295
+};
215
 </script>
296
 </script>
216
 
297
 
217
 <style scoped>
298
 <style scoped>
218
-.warnTxt{
299
+.warnTxt {
219
   text-align: center;
300
   text-align: center;
220
   margin: 0 auto;
301
   margin: 0 auto;
221
   background: #faa331;
302
   background: #faa331;
223
   padding: 10px 20px;
304
   padding: 10px 20px;
224
   border-radius: 4px;
305
   border-radius: 4px;
225
   margin-bottom: 10px;
306
   margin-bottom: 10px;
226
-  color:#fff;
307
+  color: #fff;
227
 }
308
 }
228
 </style>
309
 </style>
229
 <style lang="scss">
310
 <style lang="scss">
230
-.newDialog{
231
-  .el-dialog__body{
311
+.newDialog {
312
+  .el-dialog__body {
232
     padding: 10px 20px 30px;
313
     padding: 10px 20px 30px;
233
   }
314
   }
234
 }
315
 }

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

544
           var receiver_treatment_access = resp.data.receiver_treatment_access; // 接诊评估
544
           var receiver_treatment_access = resp.data.receiver_treatment_access; // 接诊评估
545
           var predialysis_evaluation = resp.data.predialysis_evaluation; // 透前评估
545
           var predialysis_evaluation = resp.data.predialysis_evaluation; // 透前评估
546
           var doctor_advices = resp.data.doctor_advices; // 临时医嘱
546
           var doctor_advices = resp.data.doctor_advices; // 临时医嘱
547
-          console.log("力气-------", doctor_advices);
547
+          //console.log("力气-------", doctor_advices);
548
           var double_check = resp.data.double_check; // 双人核对
548
           var double_check = resp.data.double_check; // 双人核对
549
           var assessment_after_dislysis = resp.data.assessment_after_dislysis; // 透后评估
549
           var assessment_after_dislysis = resp.data.assessment_after_dislysis; // 透后评估
550
-          console.log("透后品谷数", assessment_after_dislysis);
550
+          //console.log("透后品谷数", assessment_after_dislysis);
551
           var treatment_summary = resp.data.treatment_summary; // 治疗小结
551
           var treatment_summary = resp.data.treatment_summary; // 治疗小结
552
           var monitor_records = resp.data.monitor_records; // 透析监测
552
           var monitor_records = resp.data.monitor_records; // 透析监测
553
           var dialysis_order = resp.data.dialysis_order; // 透析记录
553
           var dialysis_order = resp.data.dialysis_order; // 透析记录

+ 44 - 20
src/xt_pages/dialysis/details/treatmentOf.vue View File

1
 <template>
1
 <template>
2
   <div class="plate-box">
2
   <div class="plate-box">
3
-    <h2 class="DetailsTit"><span>{{ title }}</span></h2>
4
-    <div class="plate " >   
3
+    <h2 class="DetailsTit">
4
+      <span>{{ title }}</span>
5
+    </h2>
6
+    <div class="plate ">
5
       <ul>
7
       <ul>
6
         <li>
8
         <li>
7
           <label>透后宣教 : </label>
9
           <label>透后宣教 : </label>
9
         </li>
11
         </li>
10
       </ul>
12
       </ul>
11
       <ul>
13
       <ul>
12
-         <li>
14
+        <li>
13
           <label>透析小结 : </label>
15
           <label>透析小结 : </label>
14
           <span class="content">{{ dialysis_summary }}</span>
16
           <span class="content">{{ dialysis_summary }}</span>
15
         </li>
17
         </li>
16
       </ul>
18
       </ul>
17
     </div>
19
     </div>
20
+    <div class="plate ">
21
+      <ul>
22
+        <li>
23
+          <label>透析护理记录 : </label>
24
+          <span class="content">{{ nursing_record }}</span>
25
+        </li>
26
+      </ul>
27
+      <ul>
28
+        <li>
29
+          <label>特殊记录 : </label>
30
+          <span class="content">{{ special_record }}</span>
31
+        </li>
32
+      </ul>
33
+    </div>
18
     <div class="middleLine"></div>
34
     <div class="middleLine"></div>
19
-  </div>    
35
+  </div>
20
 </template>
36
 </template>
21
 
37
 
22
 <script>
38
 <script>
23
 export default {
39
 export default {
24
-  name: 'DialysisPrescription',
40
+  name: "DialysisPrescription",
25
   data() {
41
   data() {
26
     return {
42
     return {
27
-      title: '治疗小结'
28
-    }
43
+      title: "治疗小结"
44
+    };
29
   },
45
   },
30
   props: {
46
   props: {
31
     record: {
47
     record: {
35
   computed: {
51
   computed: {
36
     mission: function() {
52
     mission: function() {
37
       if (this.record.id == 0) {
53
       if (this.record.id == 0) {
38
-        return ''
54
+        return "";
39
       }
55
       }
40
-      return this.record.mission
56
+      return this.record.mission;
41
     },
57
     },
42
     dialysis_summary: function() {
58
     dialysis_summary: function() {
43
       if (this.record.id == 0) {
59
       if (this.record.id == 0) {
44
-        return ''
60
+        return "";
45
       }
61
       }
46
-      return this.record.dialysis_summary
62
+      return this.record.dialysis_summary;
63
+    },
64
+    nursing_record: function() {
65
+      if (this.record.id == 0) {
66
+        return "";
67
+      }
68
+
69
+      return this.record.nursing_record;
70
+    },
71
+    special_record: function() {
72
+      if (this.record.id == 0) {
73
+        return "";
74
+      }
75
+
76
+      return this.record.special_record;
47
     }
77
     }
48
   },
78
   },
49
-  methods: {
50
-
51
-  }
52
-}
79
+  methods: {}
80
+};
53
 </script>
81
 </script>
54
 
82
 
55
-<style rel="stylesheet/scss" lang="scss" scoped>
56
-</style>
57
-
58
-
59
-
83
+<style rel="stylesheet/scss" lang="scss" scoped></style>

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

861
         <tr>
861
         <tr>
862
           <td style="text-align:left;" colspan="12">
862
           <td style="text-align:left;" colspan="12">
863
             <span style="display:inline-block;margin-left:15px;"
863
             <span style="display:inline-block;margin-left:15px;"
864
-              >透析护理记录:</span
864
+              >透析护理记录:{{ nursing_record }}</span
865
             >
865
             >
866
           </td>
866
           </td>
867
         </tr>
867
         </tr>
1142
         <tr>
1142
         <tr>
1143
           <td style="text-align:left;" colspan="6">
1143
           <td style="text-align:left;" colspan="6">
1144
             <span style="display:inline-block;margin-left:15px;"
1144
             <span style="display:inline-block;margin-left:15px;"
1145
-              >特殊记录:{{ mission }}{{ dialysis_summary }}</span
1145
+              >特殊记录:{{ special_record }}</span
1146
             >
1146
             >
1147
           </td>
1147
           </td>
1148
         </tr>
1148
         </tr>
1347
       arr: [],
1347
       arr: [],
1348
       arrtwo: [],
1348
       arrtwo: [],
1349
       bloodAccess: [],
1349
       bloodAccess: [],
1350
-      vascularAccess: []
1350
+      vascularAccess: [],
1351
+      nursing_record: "",
1352
+      special_record: ""
1351
     };
1353
     };
1352
   },
1354
   },
1353
   methods: {
1355
   methods: {
1824
           this.monitors = response.data.data.monitors;
1826
           this.monitors = response.data.data.monitors;
1825
           //console.log("透析监测", this.monitors);
1827
           //console.log("透析监测", this.monitors);
1826
           var summary = response.data.data.summary;
1828
           var summary = response.data.data.summary;
1827
-          //  console.log('透析小结', summary)
1829
+          console.log("透析小结", summary);
1828
           this.mission = summary.mission;
1830
           this.mission = summary.mission;
1829
           this.dialysis_summary = summary.dialysis_summary;
1831
           this.dialysis_summary = summary.dialysis_summary;
1832
+          this.nursing_record = summary.nursing_record;
1833
+          this.special_record = summary.special_record;
1830
           this.org_template_info = response.data.data.org_template_info;
1834
           this.org_template_info = response.data.data.org_template_info;
1831
           if (this.monitors.length < 7) {
1835
           if (this.monitors.length < 7) {
1832
             var nl = 8 - this.monitors.length;
1836
             var nl = 8 - this.monitors.length;

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

123
                   <td style="text-align:left;margin-left:15px" colspan="2">
123
                   <td style="text-align:left;margin-left:15px" colspan="2">
124
                     透析次数:
124
                     透析次数:
125
                     <span class="under-line"
125
                     <span class="under-line"
126
-                      >&nbsp;{{
126
+                      >&nbsp;
127
+                      {{
127
                         patientInfo.total_dialysis +
128
                         patientInfo.total_dialysis +
128
-                          patientInfo.user_sys_before_count
129
+                        patientInfo.user_sys_before_count
130
+                          ? patientInfo.total_dialysis +
131
+                            patientInfo.user_sys_before_count -
132
+                            1
133
+                          : "/"
129
                       }}</span
134
                       }}</span
130
                     >
135
                     >
131
                   </td>
136
                   </td>
652
             <td v-if="advice_index === 0">透前体重:</td>
657
             <td v-if="advice_index === 0">透前体重:</td>
653
             <td v-if="advice_index === 0">{{ predialysis.weight_before }}kg</td>
658
             <td v-if="advice_index === 0">{{ predialysis.weight_before }}kg</td>
654
             <td v-if="advice_index === 1">体重增加量:</td>
659
             <td v-if="advice_index === 1">体重增加量:</td>
655
-            <td v-if="advice_index === 1"></td>
660
+            <td v-if="advice_index === 1">
661
+              {{
662
+                (
663
+                  predialysis.weight_before - assessmentafter.weight_after
664
+                ).toFixed(1)
665
+              }}kg
666
+            </td>
656
             <td v-if="advice_index === 2">干体重(DW):</td>
667
             <td v-if="advice_index === 2">干体重(DW):</td>
657
             <td v-if="advice_index === 2">{{ predialysis.dry_weight }}kg</td>
668
             <td v-if="advice_index === 2">{{ predialysis.dry_weight }}kg</td>
658
             <td v-if="advice_index === 3">较干体重增加量:</td>
669
             <td v-if="advice_index === 3">较干体重增加量:</td>

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

475
                     >
475
                     >
476
                       HDF后置换
476
                       HDF后置换
477
                     </div>
477
                     </div>
478
+                    <div
479
+                      class="under_line"
480
+                      style="width: 100px;text-align: center;font-weight:600;"
481
+                      v-if="prescription.mode_id == 19"
482
+                    >
483
+                      IUF+HD
484
+                    </div>
478
                   </div>
485
                   </div>
479
 
486
 
480
                   <div class="inline_block" style="margin-left:10px;flex:1;">
487
                   <div class="inline_block" style="margin-left:10px;flex:1;">
2313
         );
2320
         );
2314
 
2321
 
2315
         this.prescription = response.data.data.dialysisPrescription;
2322
         this.prescription = response.data.data.dialysisPrescription;
2316
-        // console.log("透析处方", this.prescription);
2323
+        console.log("透析处方", this.prescription);
2317
         this.receiverTreatmentAccess =
2324
         this.receiverTreatmentAccess =
2318
           response.data.data.receiverTreatmentAccess;
2325
           response.data.data.receiverTreatmentAccess;
2319
         this.prescription.mode = this.modeName(this.prescription.mode_id);
2326
         this.prescription.mode = this.modeName(this.prescription.mode_id);

+ 7 - 0
src/xt_pages/stock/cancelStockOrder.vue View File

336
       this.GetCancelStock();
336
       this.GetCancelStock();
337
     },
337
     },
338
     startTimeChange(val) {
338
     startTimeChange(val) {
339
+      var time = this.getTimestamp(val) - this.getTimestamp(this.end_time);
340
+      if (time > 0) {
341
+        this.$message.error("结束时间不能小于开始时间");
342
+        this.start_time = "";
343
+      } else {
344
+        this.GetCancelStock();
345
+      }
339
       this.GetCancelStock();
346
       this.GetCancelStock();
340
     },
347
     },
341
     endTimeChange(val) {
348
     endTimeChange(val) {

+ 7 - 1
src/xt_pages/stock/detail/cancelStockDetail.vue View File

378
       this.GetCancelStock();
378
       this.GetCancelStock();
379
     },
379
     },
380
     startTimeChange(val) {
380
     startTimeChange(val) {
381
-      this.GetCancelStock();
381
+      var time = this.getTimestamp(val) - this.getTimestamp(this.end_time);
382
+      if (time > 0) {
383
+        this.$message.error("结束时间不能小于开始时间");
384
+        this.start_time = "";
385
+      } else {
386
+        this.GetCancelStock();
387
+      }
382
     },
388
     },
383
     endTimeChange(val) {
389
     endTimeChange(val) {
384
       var time = this.getTimestamp(val) - this.getTimestamp(this.start_time);
390
       var time = this.getTimestamp(val) - this.getTimestamp(this.start_time);

+ 7 - 1
src/xt_pages/stock/detail/salesReturnDetail.vue View File

377
       this.GetCancelStock();
377
       this.GetCancelStock();
378
     },
378
     },
379
     startTimeChange(val) {
379
     startTimeChange(val) {
380
-      this.GetCancelStock();
380
+      var time = this.getTimestamp(val) - this.getTimestamp(this.end_time);
381
+      if (time > 0) {
382
+        this.$message.error("结束时间不能小于开始时间");
383
+        this.start_time = "";
384
+      } else {
385
+        this.GetCancelStock();
386
+      }
381
     },
387
     },
382
     endTimeChange(val) {
388
     endTimeChange(val) {
383
       var time = this.getTimestamp(val) - this.getTimestamp(this.start_time);
389
       var time = this.getTimestamp(val) - this.getTimestamp(this.start_time);

+ 7 - 1
src/xt_pages/stock/detail/stockInDetail.vue View File

419
       this.GetCancelStock();
419
       this.GetCancelStock();
420
     },
420
     },
421
     startTimeChange(val) {
421
     startTimeChange(val) {
422
-      this.GetCancelStock();
422
+      var time = this.getTimestamp(val) - this.getTimestamp(this.end_time);
423
+      if (time > 0) {
424
+        this.$message.error("结束时间不能小于开始时间");
425
+        this.start_time = "";
426
+      } else {
427
+        this.GetCancelStock();
428
+      }
423
     },
429
     },
424
     endTimeChange(val) {
430
     endTimeChange(val) {
425
       var time = this.getTimestamp(val) - this.getTimestamp(this.start_time);
431
       var time = this.getTimestamp(val) - this.getTimestamp(this.start_time);

+ 7 - 1
src/xt_pages/stock/detail/stockOutDetail.vue View File

401
       this.GetCancelStock();
401
       this.GetCancelStock();
402
     },
402
     },
403
     startTimeChange(val) {
403
     startTimeChange(val) {
404
-      this.GetCancelStock();
404
+      var time = this.getTimestamp(val) - this.getTimestamp(this.end_time);
405
+      if (time > 0) {
406
+        this.$message.error("结束时间不能小于开始时间");
407
+        this.start_time = "";
408
+      } else {
409
+        this.GetCancelStock();
410
+      }
405
     },
411
     },
406
     endTimeChange(val) {
412
     endTimeChange(val) {
407
       var time = this.getTimestamp(val) - this.getTimestamp(this.start_time);
413
       var time = this.getTimestamp(val) - this.getTimestamp(this.start_time);

+ 7 - 1
src/xt_pages/stock/otherCancelStockOrder.vue View File

334
       this.GetCancelStock();
334
       this.GetCancelStock();
335
     },
335
     },
336
     startTimeChange(val) {
336
     startTimeChange(val) {
337
-      this.GetCancelStock();
337
+      var time = this.getTimestamp(val) - this.getTimestamp(this.end_time);
338
+      if (time > 0) {
339
+        this.$message.error("结束时间不能小于开始时间");
340
+        this.start_time = "";
341
+      } else {
342
+        this.GetCancelStock();
343
+      }
338
     },
344
     },
339
     endTimeChange(val) {
345
     endTimeChange(val) {
340
       var time = this.getTimestamp(val) - this.getTimestamp(this.start_time);
346
       var time = this.getTimestamp(val) - this.getTimestamp(this.start_time);

+ 8 - 2
src/xt_pages/stock/otherSalesReturnOrder.vue View File

340
       this.GetSalesReturn();
340
       this.GetSalesReturn();
341
     },
341
     },
342
     startTimeChange(val) {
342
     startTimeChange(val) {
343
-      this.startTime = this.getTimestamp(val);
344
-      this.GetSalesReturn();
343
+      var time = this.getTimestamp(val) - this.getTimestamp(this.end_time);
344
+      if (time > 0) {
345
+        this.$message.error("结束时间不能小于开始时间");
346
+        this.start_time = "";
347
+      } else {
348
+        this.startTime = this.getTimestamp(val);
349
+        this.GetSalesReturn();
350
+      }
345
     },
351
     },
346
     endTimeChange(val) {
352
     endTimeChange(val) {
347
       var time = this.getTimestamp(val) - this.getTimestamp(this.start_time);
353
       var time = this.getTimestamp(val) - this.getTimestamp(this.start_time);

+ 7 - 1
src/xt_pages/stock/otherStockInOrder.vue View File

450
       this.GetWarehouse();
450
       this.GetWarehouse();
451
     },
451
     },
452
     startTimeChange(val) {
452
     startTimeChange(val) {
453
-      this.GetWarehouse();
453
+      var time = this.getTimestamp(val) - this.getTimestamp(this.end_time);
454
+      if (time > 0) {
455
+        this.$message.error("结束时间不能小于开始时间");
456
+        this.start_time = "";
457
+      } else {
458
+        this.GetWarehouse();
459
+      }
454
     },
460
     },
455
     endTimeChange(val) {
461
     endTimeChange(val) {
456
       var time = this.getTimestamp(val) - this.getTimestamp(this.start_time);
462
       var time = this.getTimestamp(val) - this.getTimestamp(this.start_time);

+ 7 - 1
src/xt_pages/stock/otherStockOutOrder.vue View File

333
       this.GetWarehouseOut();
333
       this.GetWarehouseOut();
334
     },
334
     },
335
     startTimeChange(val) {
335
     startTimeChange(val) {
336
-      this.GetWarehouseOut();
336
+      var time = this.getTimestamp(val) - this.getTimestamp(this.end_time);
337
+      if (time > 0) {
338
+        this.$message.error("结束时间不能小于开始时间");
339
+        this.start_time = "";
340
+      } else {
341
+        this.GetWarehouseOut();
342
+      }
337
     },
343
     },
338
     endTimeChange(val) {
344
     endTimeChange(val) {
339
       var time = this.getTimestamp(val) - this.getTimestamp(this.start_time);
345
       var time = this.getTimestamp(val) - this.getTimestamp(this.start_time);

+ 7 - 0
src/xt_pages/stock/salesReturnOrder.vue View File

335
       this.GetSalesReturn();
335
       this.GetSalesReturn();
336
     },
336
     },
337
     startTimeChange(val) {
337
     startTimeChange(val) {
338
+      var time = this.getTimestamp(val) - this.getTimestamp(this.end_time);
339
+      if (time > 0) {
340
+        this.$message.error("结束时间不能小于开始时间");
341
+        this.start_time = "";
342
+      } else {
343
+        this.GetSalesReturn();
344
+      }
338
       this.GetSalesReturn();
345
       this.GetSalesReturn();
339
     },
346
     },
340
     endTimeChange(val) {
347
     endTimeChange(val) {

+ 383 - 312
src/xt_pages/stock/stockDetail.vue View File

1
 <template>
1
 <template>
2
-
3
   <div class="main-contain">
2
   <div class="main-contain">
4
     <div class="position">
3
     <div class="position">
5
-      <bread-crumb :crumbs='crumbs'></bread-crumb>
6
-      <el-button size="small" @click="AddNewOrder" class="filter-item" style="float:right;" type="primary"
7
-                 icon="el-icon-circle-plus-outline">新增
4
+      <bread-crumb :crumbs="crumbs"></bread-crumb>
5
+      <el-button
6
+        size="small"
7
+        @click="AddNewOrder"
8
+        class="filter-item"
9
+        style="float:right;"
10
+        type="primary"
11
+        icon="el-icon-circle-plus-outline"
12
+        >新增
8
       </el-button>
13
       </el-button>
9
     </div>
14
     </div>
10
 
15
 
11
     <div class="app-container">
16
     <div class="app-container">
12
-
13
-
14
-      <div class="cell clearfix" >
15
-        <el-input size="small" style="width: 400px;" class="filter-item" v-model.trim="searchKey" placeholder="单据编码/制单人/厂商"/>
16
-        <el-button size="small" class="filter-item" type="primary" icon="el-icon-search" @click="search">搜索</el-button>
17
+      <div class="cell clearfix">
18
+        <el-input
19
+          size="small"
20
+          style="width: 400px;"
21
+          class="filter-item"
22
+          v-model.trim="searchKey"
23
+          placeholder="单据编码/制单人/厂商"
24
+        />
25
+        <el-button
26
+          size="small"
27
+          class="filter-item"
28
+          type="primary"
29
+          icon="el-icon-search"
30
+          @click="search"
31
+          >搜索</el-button
32
+        >
17
       </div>
33
       </div>
18
 
34
 
19
       <div class="cell clearfix">
35
       <div class="cell clearfix">
20
         <label class="title"><span class="name">日期查询</span> : </label>
36
         <label class="title"><span class="name">日期查询</span> : </label>
21
-        <el-date-picker v-model="start_time" prefix-icon="el-icon-date" :editable="false" style="width: 196px;"
22
-                        type="date" placeholder="选择日期时间" align="right" format="yyyy-MM-dd"
23
-                        value-format="yyyy-MM-dd" @change="startTimeChange"></el-date-picker>
37
+        <el-date-picker
38
+          v-model="start_time"
39
+          prefix-icon="el-icon-date"
40
+          :editable="false"
41
+          style="width: 196px;"
42
+          type="date"
43
+          placeholder="选择日期时间"
44
+          align="right"
45
+          format="yyyy-MM-dd"
46
+          value-format="yyyy-MM-dd"
47
+          @change="startTimeChange"
48
+        ></el-date-picker>
24
         <span class="cellLine"> - </span>
49
         <span class="cellLine"> - </span>
25
-        <el-date-picker v-model="end_time" prefix-icon="el-icon-date" :editable="false" style="width: 196px;"
26
-                        type="date" placeholder="选择日期时间" align="right" format="yyyy-MM-dd"
27
-                        value-format="yyyy-MM-dd" @change="endTimeChange"></el-date-picker>
50
+        <el-date-picker
51
+          v-model="end_time"
52
+          prefix-icon="el-icon-date"
53
+          :editable="false"
54
+          style="width: 196px;"
55
+          type="date"
56
+          placeholder="选择日期时间"
57
+          align="right"
58
+          format="yyyy-MM-dd"
59
+          value-format="yyyy-MM-dd"
60
+          @change="endTimeChange"
61
+        ></el-date-picker>
28
       </div>
62
       </div>
29
 
63
 
30
       <div class="filter-container" style="margin-top: 10px">
64
       <div class="filter-container" style="margin-top: 10px">
31
-        <el-checkbox style="width: 30px" v-model="checked" @change="changeAllSelected">全选</el-checkbox>
32
-        <el-button size="small" icon="el-icon-delete" @click="batchDelete">删除</el-button>
33
-
65
+        <el-checkbox
66
+          style="width: 30px"
67
+          v-model="checked"
68
+          @change="changeAllSelected"
69
+          >全选</el-checkbox
70
+        >
71
+        <el-button size="small" icon="el-icon-delete" @click="batchDelete"
72
+          >删除</el-button
73
+        >
34
       </div>
74
       </div>
35
 
75
 
36
       <el-row :gutter="12" style="margin-top: 10px">
76
       <el-row :gutter="12" style="margin-top: 10px">
41
           highlight-current-row
81
           highlight-current-row
42
           ref="multipleTable"
82
           ref="multipleTable"
43
           @selection-change="select"
83
           @selection-change="select"
44
-          :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)'}"
45
-
84
+          :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)' }"
46
         >
85
         >
47
-
48
-
49
-
50
           <el-table-column label="单据编号" align="center">
86
           <el-table-column label="单据编号" align="center">
51
             <template slot-scope="scope">
87
             <template slot-scope="scope">
52
-              {{scope.row.warehousing_order}}
88
+              {{ scope.row.warehousing_order }}
53
             </template>
89
             </template>
54
           </el-table-column>
90
           </el-table-column>
55
 
91
 
56
           <el-table-column label="商品类型" align="center">
92
           <el-table-column label="商品类型" align="center">
57
             <template slot-scope="scope">
93
             <template slot-scope="scope">
58
-              {{specificationName(scope.row.good_id)}}
94
+              {{ specificationName(scope.row.good_id) }}
59
             </template>
95
             </template>
60
           </el-table-column>
96
           </el-table-column>
61
 
97
 
62
-
63
           <el-table-column label="单据类型" align="center">
98
           <el-table-column label="单据类型" align="center">
64
             <template slot-scope="scope">
99
             <template slot-scope="scope">
65
-              {{getTypeName(scope.row)}}
100
+              {{ getTypeName(scope.row) }}
66
             </template>
101
             </template>
67
           </el-table-column>
102
           </el-table-column>
68
 
103
 
69
           <el-table-column label="操作时间" align="center">
104
           <el-table-column label="操作时间" align="center">
70
             <template slot-scope="scope">
105
             <template slot-scope="scope">
71
-              {{ scope.row.warehousing_time | parseTime('{y}-{m}-{d}')}}
106
+              {{ scope.row.warehousing_time | parseTime("{y}-{m}-{d}") }}
72
             </template>
107
             </template>
73
           </el-table-column>
108
           </el-table-column>
74
           <el-table-column label="制单人" align="center">
109
           <el-table-column label="制单人" align="center">
75
             <template slot-scope="scope">
110
             <template slot-scope="scope">
76
-              {{getXuserName(scope.row.creater)}}
77
-
111
+              {{ getXuserName(scope.row.creater) }}
78
             </template>
112
             </template>
79
           </el-table-column>
113
           </el-table-column>
80
           <el-table-column label="单价" align="center">
114
           <el-table-column label="单价" align="center">
81
             <template slot-scope="scope">
115
             <template slot-scope="scope">
82
-              {{scope.row.price}}
116
+              {{ scope.row.price }}
83
             </template>
117
             </template>
84
           </el-table-column>
118
           </el-table-column>
85
           <el-table-column label="数量" align="center">
119
           <el-table-column label="数量" align="center">
86
             <template slot-scope="scope">
120
             <template slot-scope="scope">
87
-              {{scope.row.warehousing_count}}
121
+              {{ scope.row.warehousing_count }}
88
             </template>
122
             </template>
89
           </el-table-column>
123
           </el-table-column>
90
           <el-table-column label="总价" align="center">
124
           <el-table-column label="总价" align="center">
91
             <template slot-scope="scope">
125
             <template slot-scope="scope">
92
-              {{scope.row.price *  scope.row.warehousing_count}}
126
+              {{ scope.row.price * scope.row.warehousing_count }}
93
             </template>
127
             </template>
94
           </el-table-column>
128
           </el-table-column>
95
-
96
         </el-table>
129
         </el-table>
97
 
130
 
98
         <el-pagination
131
         <el-pagination
103
           background
136
           background
104
           style="margin-top:20px;float: right"
137
           style="margin-top:20px;float: right"
105
           layout="total, sizes, prev, pager, next, jumper"
138
           layout="total, sizes, prev, pager, next, jumper"
106
-          :total="total">
139
+          :total="total"
140
+        >
107
         </el-pagination>
141
         </el-pagination>
108
-
109
       </el-row>
142
       </el-row>
110
     </div>
143
     </div>
111
   </div>
144
   </div>
112
 </template>
145
 </template>
113
 
146
 
114
 <script>
147
 <script>
115
-  import { uParseTime } from '@/utils/tools'
116
-  import { fetchAllAdminUsers, fetchAllDoctorAndNurse } from '@/api/doctor'
117
-  import { deleteCancelStock, GetAllConfig, getStockDetail } from '@/api/stock'
118
-  import BreadCrumb from '../components/bread-crumb'
119
-
120
-  export default {
121
-    name: 'salesReturnOrder',
122
-    components: { BreadCrumb },
123
-    created() {
124
-      var year = new Date().getFullYear()
125
-      var month = new Date().getMonth() + 1
126
-      var day = new Date().getDate()
127
-      if (parseInt(month) < 10) {
128
-        month = '0' + month
129
-      }
130
-      if (parseInt(day) < 10) {
131
-        day = '0' + day
132
-      }
133
-      const endTime = year + '-' + month + '-' + day
134
-      this.end_time = endTime
135
-
136
-      var year = new Date().getFullYear()
137
-      var month = new Date().getMonth()
138
-      var day = new Date().getDate()
139
-      if (parseInt(month) < 10) {
140
-        month = '0' + month
148
+import { uParseTime } from "@/utils/tools";
149
+import { fetchAllAdminUsers, fetchAllDoctorAndNurse } from "@/api/doctor";
150
+import { deleteCancelStock, GetAllConfig, getStockDetail } from "@/api/stock";
151
+import BreadCrumb from "../components/bread-crumb";
152
+
153
+export default {
154
+  name: "salesReturnOrder",
155
+  components: { BreadCrumb },
156
+  created() {
157
+    var year = new Date().getFullYear();
158
+    var month = new Date().getMonth() + 1;
159
+    var day = new Date().getDate();
160
+    if (parseInt(month) < 10) {
161
+      month = "0" + month;
162
+    }
163
+    if (parseInt(day) < 10) {
164
+      day = "0" + day;
165
+    }
166
+    const endTime = year + "-" + month + "-" + day;
167
+    this.end_time = endTime;
168
+
169
+    var year = new Date().getFullYear();
170
+    var month = new Date().getMonth();
171
+    var day = new Date().getDate();
172
+    if (parseInt(month) < 10) {
173
+      month = "0" + month;
174
+    }
175
+    if (parseInt(day) < 10) {
176
+      day = "0" + day;
177
+    }
178
+    const startTime = year + "-" + month + "-" + day;
179
+    this.start_time = startTime;
180
+    this.GetCancelStock();
181
+    this.GetConfigInfo();
182
+    this.fetchAllAdminUsers();
183
+  },
184
+  data() {
185
+    return {
186
+      crumbs: [
187
+        { path: false, name: "库存管理" },
188
+        { path: "/stock/detail", name: "出入库明细查询" }
189
+      ],
190
+      searchKey: "",
191
+      type: 1,
192
+      page: 1,
193
+      limit: 7,
194
+      checked: false,
195
+      total: 0,
196
+      pageTotal: 0,
197
+      pageSelect: 0,
198
+      adminUserOptions: [],
199
+      multipleSelection: [],
200
+      signAndWeighBoxPatients: "sign-and-weigh-box-patients",
201
+      start_time: "",
202
+      cancelStockDate: [],
203
+      end_time: "",
204
+      goodType: [],
205
+      goodInfo: [],
206
+      manufacturer: [],
207
+      selectedTableData: [],
208
+      dealer: []
209
+    };
210
+  },
211
+  methods: {
212
+    getTypeName: function(row) {
213
+      let name = "";
214
+      let name2 = "";
215
+      if (row.type == 1) {
216
+        name = "耗材";
217
+      } else if (row.type == 2) {
218
+        name = "其他";
141
       }
219
       }
142
-      if (parseInt(day) < 10) {
143
-        day = '0' + day
220
+      if (row.types == 1) {
221
+        name2 = "入库单";
222
+      } else if (row.types == 2) {
223
+        name2 = "出库单";
224
+      } else if (row.types == 3) {
225
+        name2 = "退货单";
226
+      } else if (row.types == 4) {
227
+        name2 = "退库单";
144
       }
228
       }
145
-      const startTime = year + '-' + month + '-' + day
146
-      this.start_time = startTime
147
-      this.GetCancelStock()
148
-      this.GetConfigInfo()
149
-      this.fetchAllAdminUsers()
229
+      return name + name2;
150
     },
230
     },
151
-    data() {
152
-      return {
153
-        crumbs: [
154
-          { path: false, name: '库存管理' },
155
-          { path: '/stock/detail', name: '出入库明细查询' }
156
-        ],
157
-        searchKey: '',
158
-        type: 1,
159
-        page: 1,
160
-        limit: 7,
161
-        checked: false,
162
-        total: 0,
163
-        pageTotal: 0,
164
-        pageSelect: 0,
165
-        adminUserOptions: [],
166
-        multipleSelection: [],
167
-        signAndWeighBoxPatients: 'sign-and-weigh-box-patients',
168
-        start_time: '',
169
-        cancelStockDate: [],
170
-        end_time: '',
171
-        goodType: [],
172
-        goodInfo: [],
173
-        manufacturer: [],
174
-        selectedTableData: [],
175
-        dealer: []
176
-
231
+    specificationName: function(good_info_id) {
232
+      let name = "";
233
+      for (let i = 0; i < this.goodInfo.length; i++) {
234
+        if (this.goodInfo[i].id == good_info_id) {
235
+          name = this.goodInfo[i].specification_name;
236
+        }
177
       }
237
       }
238
+      return name;
178
     },
239
     },
179
-    methods: {
180
-      getTypeName: function(row) {
181
-        let name = ''
182
-        let name2 = ''
183
-        if (row.type == 1) {
184
-          name = '耗材'
185
-        } else if (row.type == 2) {
186
-          name = '其他'
187
-        }
188
-        if (row.types == 1) {
189
-          name2 = '入库单'
190
-        } else if (row.types == 2) {
191
-          name2 = '出库单'
192
-        } else if (row.types == 3) {
193
-          name2 = '退货单'
194
-        } else if (row.types == 4) {
195
-          name2 = '退库单'
196
-        }
197
-        return name + name2
198
-      },
199
-      specificationName: function(good_info_id) {
200
-        let name = ''
201
-        for (let i = 0; i < this.goodInfo.length; i++) {
202
-          if (this.goodInfo[i].id == good_info_id) {
203
-            name = this.goodInfo[i].specification_name
204
-          }
205
-        }
206
-        return name
207
-      },
208
-      search: function() {
209
-        const Params = {
210
-          page: this.page,
211
-          limit: this.limit,
212
-          start_time: this.start_time,
213
-          end_time: this.end_time,
214
-          type: this.type,
215
-          keywords: this.searchKey
216
-        }
217
-        this.cancelStockDate = []
218
-        getStockDetail(Params).then(response => {
219
-          if (response.data.state == 0) {
220
-            this.$message.error(response.data.msg)
221
-            return false
222
-          } else {
223
-            this.total = response.data.data.total
224
-            for (let i = 0; i < response.data.data.list.length; i++) {
225
-              this.cancelStockDate.push(response.data.data.list[i])
226
-            }
240
+    search: function() {
241
+      const Params = {
242
+        page: this.page,
243
+        limit: this.limit,
244
+        start_time: this.start_time,
245
+        end_time: this.end_time,
246
+        type: this.type,
247
+        keywords: this.searchKey
248
+      };
249
+      this.cancelStockDate = [];
250
+      getStockDetail(Params).then(response => {
251
+        if (response.data.state == 0) {
252
+          this.$message.error(response.data.msg);
253
+          return false;
254
+        } else {
255
+          this.total = response.data.data.total;
256
+          for (let i = 0; i < response.data.data.list.length; i++) {
257
+            this.cancelStockDate.push(response.data.data.list[i]);
227
           }
258
           }
228
-        })
229
-      },
230
-      AddNewOrder: function() {
231
-        this.$router.push({ name: 'cancelStockOrderAdd', query: { type: this.type }})
232
-      },
233
-      GetCancelStock: function() {
234
-        const Params = {
235
-          page: this.page,
236
-          limit: this.limit,
237
-          start_time: this.start_time,
238
-          end_time: this.end_time,
239
-          type: this.type
240
         }
259
         }
241
-        this.cancelStockDate = []
242
-        getStockDetail(Params).then(response => {
243
-          if (response.data.state == 0) {
244
-            this.$message.error(response.data.msg)
245
-            return false
246
-          } else {
247
-            this.total = response.data.data.total
248
-            for (let i = 0; i < response.data.data.list.length; i++) {
249
-              this.cancelStockDate.push(response.data.data.list[i])
250
-            }
260
+      });
261
+    },
262
+    AddNewOrder: function() {
263
+      this.$router.push({
264
+        name: "cancelStockOrderAdd",
265
+        query: { type: this.type }
266
+      });
267
+    },
268
+    GetCancelStock: function() {
269
+      const Params = {
270
+        page: this.page,
271
+        limit: this.limit,
272
+        start_time: this.start_time,
273
+        end_time: this.end_time,
274
+        type: this.type
275
+      };
276
+      this.cancelStockDate = [];
277
+      getStockDetail(Params).then(response => {
278
+        if (response.data.state == 0) {
279
+          this.$message.error(response.data.msg);
280
+          return false;
281
+        } else {
282
+          this.total = response.data.data.total;
283
+          for (let i = 0; i < response.data.data.list.length; i++) {
284
+            this.cancelStockDate.push(response.data.data.list[i]);
251
           }
285
           }
252
-        })
253
-      }, getXuserName(id) {
254
-        if (id <= 0) {
255
-          return ''
256
         }
286
         }
257
-        var name = ''
258
-        if (this.adminUserOptions == null || typeof (this.adminUserOptions.length) === 'undefined') {
259
-          return name
260
-        }
261
-        var leng = this.adminUserOptions.length
262
-        if (leng == 0) {
263
-          return name
264
-        }
265
-        for (let index = 0; index < leng; index++) {
266
-          if (this.adminUserOptions[index].id == id) {
267
-            name = this.adminUserOptions[index].name
268
-            break
269
-          }
287
+      });
288
+    },
289
+    getXuserName(id) {
290
+      if (id <= 0) {
291
+        return "";
292
+      }
293
+      var name = "";
294
+      if (
295
+        this.adminUserOptions == null ||
296
+        typeof this.adminUserOptions.length === "undefined"
297
+      ) {
298
+        return name;
299
+      }
300
+      var leng = this.adminUserOptions.length;
301
+      if (leng == 0) {
302
+        return name;
303
+      }
304
+      for (let index = 0; index < leng; index++) {
305
+        if (this.adminUserOptions[index].id == id) {
306
+          name = this.adminUserOptions[index].name;
307
+          break;
270
         }
308
         }
271
-        return name
272
-      }, fetchAllAdminUsers() {
273
-        fetchAllAdminUsers().then(response => {
274
-          console.log(response)
275
-          if (response.data.state == 1) {
276
-            this.adminUserOptions = response.data.data.users
277
-            var alen = this.adminUserOptions.length
278
-            for (let index = 0; index < alen; index++) {
279
-              if (this.adminUserOptions[index].user_type == 2) {
280
-                // this.doctorOptions.push(this.adminUserOptions[index]);
281
-              }
309
+      }
310
+      return name;
311
+    },
312
+    fetchAllAdminUsers() {
313
+      fetchAllAdminUsers().then(response => {
314
+        console.log(response);
315
+        if (response.data.state == 1) {
316
+          this.adminUserOptions = response.data.data.users;
317
+          var alen = this.adminUserOptions.length;
318
+          for (let index = 0; index < alen; index++) {
319
+            if (this.adminUserOptions[index].user_type == 2) {
320
+              // this.doctorOptions.push(this.adminUserOptions[index]);
282
             }
321
             }
283
           }
322
           }
284
-        })
285
-      }, handleSelectionChange: function(val) {
286
-        this.multipleSelection = val
287
-      }, handleSizeChange(val) {
288
-        this.limit = val
289
-        this.GetWarehouse()
290
-      }, handleCurrentChange(val) {
291
-        this.page = val
292
-        this.GetWarehouse()
293
-      }, startTimeChange(val) {
294
-        this.GetWarehouse()
295
-      }, endTimeChange(val) {
296
-        this.GetWarehouse()
297
-      }, calculate: function(val) {
298
-        return Math.round(parseFloat(val) * 100) / 100
299
-      }, GetConfigInfo: function() {
300
-        GetAllConfig().then(response => {
301
-          if (response.data.state == 0) {
302
-            this.$message.error(response.data.msg)
303
-            return false
304
-          } else {
305
-            this.manufacturer = response.data.data.manufacturer
306
-            this.dealer = response.data.data.dealer
307
-            this.goodInfo = response.data.data.goodInfo
308
-          }
309
-        })
310
-      }, getManufactuerName: function(manufacturer_id) {
311
-        for (let i = 0; i < this.manufacturer.length; i++) {
312
-          if (this.manufacturer[i].id == manufacturer_id) {
313
-            return this.manufacturer[i].manufacturer_name
314
-          }
315
         }
323
         }
316
-      }, getDealerName: function(dealer_id) {
317
-        for (let i = 0; i < this.dealer.length; i++) {
318
-          if (this.dealer[i].id == dealer_id) {
319
-            return this.dealer[i].dealer_name
320
-          }
324
+      });
325
+    },
326
+    handleSelectionChange: function(val) {
327
+      this.multipleSelection = val;
328
+    },
329
+    handleSizeChange(val) {
330
+      this.limit = val;
331
+      this.GetWarehouse();
332
+    },
333
+    handleCurrentChange(val) {
334
+      this.page = val;
335
+      this.GetWarehouse();
336
+    },
337
+    startTimeChange(val) {
338
+      var time = this.getTimestamp(val) - this.getTimestamp(this.end_time);
339
+      console.log("time是-----", time);
340
+      if (time > 0) {
341
+        this.$message.error("结束时间不能小于开始时间");
342
+        this.start_time = "";
343
+      } else {
344
+        this.GetWarehouse();
345
+      }
346
+    },
347
+    endTimeChange(val) {
348
+      var time = this.getTimestamp(val) - this.getTimestamp(this.start_time);
349
+      if (time < 0) {
350
+        this.$message.error("结束时间不能小于开始时间");
351
+        this.end_time = "";
352
+      } else {
353
+        this.GetWarehouse();
354
+      }
355
+    },
356
+    getTimestamp(time) {
357
+      // 把时间日期转成时间戳
358
+      return new Date(time).getTime() / 1000;
359
+    },
360
+    calculate: function(val) {
361
+      return Math.round(parseFloat(val) * 100) / 100;
362
+    },
363
+    GetConfigInfo: function() {
364
+      GetAllConfig().then(response => {
365
+        if (response.data.state == 0) {
366
+          this.$message.error(response.data.msg);
367
+          return false;
368
+        } else {
369
+          this.manufacturer = response.data.data.manufacturer;
370
+          this.dealer = response.data.data.dealer;
371
+          this.goodInfo = response.data.data.goodInfo;
321
         }
372
         }
322
-      }, handleEdit: function(index, row) {
323
-        this.$router.push({ name: 'cancelStockDetail', query: { id: row.id, type: this.type }})
324
-      }, handleDelete: function(index, row) {
325
-        const ids = []
326
-        ids.push(row.id)
327
-        const idStr = ids.join(',')
328
-
329
-        const params = {
330
-          ids: idStr
373
+      });
374
+    },
375
+    getManufactuerName: function(manufacturer_id) {
376
+      for (let i = 0; i < this.manufacturer.length; i++) {
377
+        if (this.manufacturer[i].id == manufacturer_id) {
378
+          return this.manufacturer[i].manufacturer_name;
331
         }
379
         }
332
-
333
-        this.$confirm('确认删除出库退库单记录?', '删除出库退库单记录', {
334
-          confirmButtonText: '确定',
335
-          cancelButtonText: '取消',
336
-          type: 'warning'
337
-        }).then(() => {
380
+      }
381
+    },
382
+    getDealerName: function(dealer_id) {
383
+      for (let i = 0; i < this.dealer.length; i++) {
384
+        if (this.dealer[i].id == dealer_id) {
385
+          return this.dealer[i].dealer_name;
386
+        }
387
+      }
388
+    },
389
+    handleEdit: function(index, row) {
390
+      this.$router.push({
391
+        name: "cancelStockDetail",
392
+        query: { id: row.id, type: this.type }
393
+      });
394
+    },
395
+    handleDelete: function(index, row) {
396
+      const ids = [];
397
+      ids.push(row.id);
398
+      const idStr = ids.join(",");
399
+
400
+      const params = {
401
+        ids: idStr
402
+      };
403
+
404
+      this.$confirm("确认删除出库退库单记录?", "删除出库退库单记录", {
405
+        confirmButtonText: "确定",
406
+        cancelButtonText: "取消",
407
+        type: "warning"
408
+      })
409
+        .then(() => {
338
           deleteCancelStock(params).then(response => {
410
           deleteCancelStock(params).then(response => {
339
             if (response.data.state == 0) {
411
             if (response.data.state == 0) {
340
-              this.$message.error(response.data.msg)
341
-              return false
412
+              this.$message.error(response.data.msg);
413
+              return false;
342
             } else {
414
             } else {
343
               this.$notify({
415
               this.$notify({
344
-                title: '成功',
345
-                message: '删除成功',
346
-                type: 'success',
416
+                title: "成功",
417
+                message: "删除成功",
418
+                type: "success",
347
                 duration: 2000
419
                 duration: 2000
348
-              })
420
+              });
349
               for (let i = 0; i < ids.length; i++) {
421
               for (let i = 0; i < ids.length; i++) {
350
                 for (let y = 0; y < this.cancelStockDate.length; y++) {
422
                 for (let y = 0; y < this.cancelStockDate.length; y++) {
351
                   if (ids[i] == this.cancelStockDate[y].id) {
423
                   if (ids[i] == this.cancelStockDate[y].id) {
352
-                    this.cancelStockDate.splice(y, 1)
424
+                    this.cancelStockDate.splice(y, 1);
353
                   }
425
                   }
354
                 }
426
                 }
355
               }
427
               }
356
             }
428
             }
357
-          })
358
-        }).catch(() => {
429
+          });
359
         })
430
         })
360
-      }, changeAllSelected: function(val) {
361
-        if (val) {
362
-          this.$refs.multipleTable.toggleAllSelection()
363
-        } else {
364
-          this.$refs.multipleTable.clearSelection()
365
-        }
366
-      }, select(selection) {
367
-        this.selectedTableData = selection
368
-      }, batchDelete() {
369
-        if (this.selectedTableData.length <= 0) {
370
-          this.$message.error('请选择要删除的记录')
371
-          return
372
-        }
373
-        const ids = []
374
-        for (let i = 0; i < this.selectedTableData.length; i++) {
375
-          ids.push(this.selectedTableData[i].id)
376
-        }
377
-        const idStr = ids.join(',')
378
-        const params = {
379
-          ids: idStr
380
-        }
381
-        this.$confirm('确认删除出库退库单记录?', '删除出库退库单记录', {
382
-          confirmButtonText: '确定',
383
-          cancelButtonText: '取消',
384
-          type: 'warning'
385
-        }).then(() => {
431
+        .catch(() => {});
432
+    },
433
+    changeAllSelected: function(val) {
434
+      if (val) {
435
+        this.$refs.multipleTable.toggleAllSelection();
436
+      } else {
437
+        this.$refs.multipleTable.clearSelection();
438
+      }
439
+    },
440
+    select(selection) {
441
+      this.selectedTableData = selection;
442
+    },
443
+    batchDelete() {
444
+      if (this.selectedTableData.length <= 0) {
445
+        this.$message.error("请选择要删除的记录");
446
+        return;
447
+      }
448
+      const ids = [];
449
+      for (let i = 0; i < this.selectedTableData.length; i++) {
450
+        ids.push(this.selectedTableData[i].id);
451
+      }
452
+      const idStr = ids.join(",");
453
+      const params = {
454
+        ids: idStr
455
+      };
456
+      this.$confirm("确认删除出库退库单记录?", "删除出库退库单记录", {
457
+        confirmButtonText: "确定",
458
+        cancelButtonText: "取消",
459
+        type: "warning"
460
+      })
461
+        .then(() => {
386
           deleteCancelStock(params).then(response => {
462
           deleteCancelStock(params).then(response => {
387
             if (response.data.state == 0) {
463
             if (response.data.state == 0) {
388
-              this.$message.error(response.data.msg)
389
-              return false
464
+              this.$message.error(response.data.msg);
465
+              return false;
390
             } else {
466
             } else {
391
               this.$notify({
467
               this.$notify({
392
-                title: '成功',
393
-                message: '删除成功',
394
-                type: 'success',
468
+                title: "成功",
469
+                message: "删除成功",
470
+                type: "success",
395
                 duration: 2000
471
                 duration: 2000
396
-              })
472
+              });
397
 
473
 
398
               for (let i = 0; i < ids.length; i++) {
474
               for (let i = 0; i < ids.length; i++) {
399
                 for (let y = 0; y < this.cancelStockDate.length; y++) {
475
                 for (let y = 0; y < this.cancelStockDate.length; y++) {
400
                   if (ids[i] == this.cancelStockDate[y].id) {
476
                   if (ids[i] == this.cancelStockDate[y].id) {
401
-                    this.cancelStockDate.splice(y, 1)
477
+                    this.cancelStockDate.splice(y, 1);
402
                   }
478
                   }
403
                 }
479
                 }
404
               }
480
               }
405
             }
481
             }
406
-          })
407
-        }).catch(() => {
482
+          });
408
         })
483
         })
409
-      }
484
+        .catch(() => {});
410
     }
485
     }
411
   }
486
   }
487
+};
412
 </script>
488
 </script>
413
 
489
 
414
 <style rel="stylesheet/css" lang="scss" scoped>
490
 <style rel="stylesheet/css" lang="scss" scoped>
415
-  .information {
416
-    border: 1px #dcdfe6 solid;
417
-    padding: 30px 20px 30px 20px;
491
+.information {
492
+  border: 1px #dcdfe6 solid;
493
+  padding: 30px 20px 30px 20px;
418
 
494
 
419
   .border {
495
   .border {
420
     border-bottom: 1px #dcdfe6 solid;
496
     border-bottom: 1px #dcdfe6 solid;
421
     margin: 0px 0 20px 0;
497
     margin: 0px 0 20px 0;
422
   }
498
   }
499
+}
423
 
500
 
424
-  }
425
-
426
-
427
-  .edit_separater {
428
-    border-top: 1px solid rgb(233, 233, 233);
429
-    margin-top: 15px;
430
-    margin-bottom: 15px;
431
-  }
432
-
501
+.edit_separater {
502
+  border-top: 1px solid rgb(233, 233, 233);
503
+  margin-top: 15px;
504
+  margin-bottom: 15px;
505
+}
433
 </style>
506
 </style>
434
 
507
 
435
 <style>
508
 <style>
436
-  .sign-and-weigh-box .sign-and-weigh-box-patients .cell {
437
-    font-size: 12px;
438
-  }
439
-
440
-  .sign-and-weigh-box .sign-and-weigh-box-patients .current-row > td {
441
-    background: #6fb5fa;
442
-  }
443
-
444
-  .count {
445
-    color: #bd2c00;
509
+.sign-and-weigh-box .sign-and-weigh-box-patients .cell {
510
+  font-size: 12px;
511
+}
446
 
512
 
447
-  }
513
+.sign-and-weigh-box .sign-and-weigh-box-patients .current-row > td {
514
+  background: #6fb5fa;
515
+}
448
 
516
 
517
+.count {
518
+  color: #bd2c00;
519
+}
449
 </style>
520
 </style>

+ 8 - 1
src/xt_pages/stock/stockInOrder.vue View File

480
       this.GetWarehouse();
480
       this.GetWarehouse();
481
     },
481
     },
482
     startTimeChange(val) {
482
     startTimeChange(val) {
483
-      this.startTime = this.getTimestamp(val);
483
+      var time = this.getTimestamp(val) - this.getTimestamp(this.end_time);
484
+      if (time > 0) {
485
+        this.$message.error("结束时间不能小于开始时间");
486
+        this.start_time = "";
487
+      } else {
488
+        this.startTime = this.getTimestamp(val);
489
+        this.GetWarehouse();
490
+      }
484
     },
491
     },
485
     endTimeChange(val) {
492
     endTimeChange(val) {
486
       var time = this.getTimestamp(val) - this.getTimestamp(this.start_time);
493
       var time = this.getTimestamp(val) - this.getTimestamp(this.start_time);

+ 7 - 0
src/xt_pages/stock/stockOutOrder.vue View File

332
       this.GetWarehouseOut();
332
       this.GetWarehouseOut();
333
     },
333
     },
334
     startTimeChange(val) {
334
     startTimeChange(val) {
335
+      var time = this.getTimestamp(val) - this.getTimestamp(this.end_time);
336
+      if (time > 0) {
337
+        this.$message.error("结束时间不能小于开始时间");
338
+        this.start_time = "";
339
+      } else {
340
+        this.GetWarehouseOut();
341
+      }
335
       this.GetWarehouseOut();
342
       this.GetWarehouseOut();
336
     },
343
     },
337
     endTimeChange(val) {
344
     endTimeChange(val) {

+ 3 - 0
src/xt_pages/user/components/PatientForm.vue View File

1124
   },
1124
   },
1125
   data() {
1125
   data() {
1126
     var checkContagions = (rule, value, callback) => {
1126
     var checkContagions = (rule, value, callback) => {
1127
+      if (this.form.is_infectious == 0) {
1128
+        return callback(new Error("至少选择一项传染病"));
1129
+      }
1127
       if (this.form.is_infectious == "2" && value.length == 0) {
1130
       if (this.form.is_infectious == "2" && value.length == 0) {
1128
         return callback(new Error("至少选择一项传染病"));
1131
         return callback(new Error("至少选择一项传染病"));
1129
       }
1132
       }

+ 9 - 1
src/xt_pages/user/patients.vue View File

673
       this.getList();
673
       this.getList();
674
     },
674
     },
675
     changeTimeOne(val) {
675
     changeTimeOne(val) {
676
-      this.startTime = this.getTimestamp(val);
676
+      var time = this.getTimestamp(val) - this.end_time;
677
+      if (time > 0) {
678
+        this.$message.error("结束时间不能小于开始时间");
679
+        this.listQuery.start_time = "";
680
+      } else {
681
+        this.getList();
682
+        this.startTime = this.getTimestamp(val);
683
+      }
677
     },
684
     },
678
     changeTime(val) {
685
     changeTime(val) {
679
       var time = this.getTimestamp(val) - this.startTime;
686
       var time = this.getTimestamp(val) - this.startTime;
682
         this.listQuery.end_time = "";
689
         this.listQuery.end_time = "";
683
       } else {
690
       } else {
684
         this.getList();
691
         this.getList();
692
+        this.end_time = this.getTimestamp(val);
685
       }
693
       }
686
     },
694
     },
687
     getTimestamp(time) {
695
     getTimestamp(time) {

+ 1 - 1
src/xt_pages/workforce/components/tableData.vue View File

1020
                 }
1020
                 }
1021
               });
1021
               });
1022
             }
1022
             }
1023
-            console.log(that.scheduleZone);
1023
+            console.log("hhhh", that.scheduleZone);
1024
             console.log(theSchedules);
1024
             console.log(theSchedules);
1025
           });
1025
           });
1026
         } else {
1026
         } else {