Przeglądaj źródła

Merge remote-tracking branch 'origin/20230223_pc_vue_new_branch' into 20230223_pc_vue_new_branch

yq1 6 miesięcy temu
rodzic
commit
d7d76eff06

+ 12 - 0
src/router/modules/dialysis.js Wyświetl plik

@@ -108,6 +108,18 @@ export default {
108 108
       }
109 109
     },
110 110
 
111
+    {
112
+      path: '/dialysis/doctorAdvicePrint/two',
113
+      component: () => import('@/xt_pages/dialysis/doctorAdvicePrintTwo'),
114
+      name: '透析医嘱打印',
115
+      hidden: true,
116
+      is_menu: false,
117
+      meta: {
118
+        title: '透析医嘱打印',
119
+        noCache: true
120
+      }
121
+    },
122
+
111 123
     {
112 124
       path: '/dialysis/doctorAdviceStaticPrint',
113 125
       component: () => import('@/xt_pages/dialysis/doctorAdviceStaticPrint'),

+ 4 - 3
src/xt_pages/Pharmacy/drugCode.vue Wyświetl plik

@@ -106,11 +106,11 @@
106 106
       <el-pagination
107 107
         @size-change="handleSizeChange"
108 108
         @current-change="handleCurrentChange"
109
-        :page-size="5"
109
+        :page-size="10"
110 110
         :page-sizes="[10, 20, 50, 100,500,1000,2000]"
111 111
         background
112 112
         style="margin-top:20px;float: right"
113
-        :total="value"
113
+        :total="total"
114 114
       ></el-pagination>
115 115
 
116 116
 
@@ -148,7 +148,7 @@
148 148
   import { getDictionaryDataConfig } from "@/utils/data";
149 149
   import { uParseTime } from '@/utils/tools'
150 150
   import { changeDrugCode } from "@/api/pharmacy";
151
-  
151
+
152 152
   import axios from 'axios'
153 153
   const moment = require('moment')
154 154
   export default {
@@ -353,6 +353,7 @@
353 353
             this.$message.error(response.data.msg)
354 354
             return false
355 355
           } else {
356
+
356 357
              this.tableData = response.data.data.list
357 358
              this.total = response.data.data.total
358 359
              this.drugList = response.data.data.drug

+ 4 - 1
src/xt_pages/dialysis/batch_print/batch_print_order_eightyone.vue Wyświetl plik

@@ -1898,7 +1898,8 @@ export default {
1898 1898
                   // console.log("itemwowowowowo",item)
1899 1899
                   let { new_groupno } = item
1900 1900
                   if(item.delivery_way !='口服' && item.delivery_way!='中药口服'){
1901
-                    if(!objInfo[new_groupno] ){
1901
+                    if(item.execution_frequency.indexOf('上机前')==-1){
1902
+                      if(!objInfo[new_groupno] ){
1902 1903
                       console.log('66666666',item);
1903 1904
                       objInfo[new_groupno] = {
1904 1905
                         new_groupno,
@@ -1925,7 +1926,9 @@ export default {
1925 1926
                         remark:item.remark,
1926 1927
 
1927 1928
                       }
1929
+                     }
1928 1930
                     }
1931
+                    
1929 1932
                   }
1930 1933
                 })
1931 1934
                 let newArr = Object.values(objInfo);

+ 85 - 80
src/xt_pages/dialysis/batch_print/batch_print_order_twenty.vue Wyświetl plik

@@ -611,6 +611,85 @@
611 611
                     </tbody>
612 612
                 </table>
613 613
 
614
+                <table class="print-table" border="1">
615
+                    <tbody>
616
+                    <tr>
617
+                        <td :rowspan="record.monitor_records.length + 1" width="30px" class="title-box">
618
+                        透析中记录
619
+                        </td>
620
+
621
+                        <td width="100">时间</td>
622
+                        <td width="80">血压<br />mmHg</td>
623
+                        <td width="40">脉搏<br />次/分</td>
624
+                        <td width="40">呼吸<br />次/分</td>
625
+                        <td width="60">血流量<br />ml/min</td>
626
+                        <td width="60">超滤量<br />ml</td>
627
+                        <td width="60">静脉压<br />mmHg</td>
628
+                        <td width="60">跨膜压<br />mmHg</td>
629
+                        <td width="60">电导度<br />ms/cm</td>
630
+                        <td width="60">液温<br />℃</td>
631
+                        <!-- <td width="60">钠浓度<br/>mmol/L</td>
632
+                    <td width="80">透析液温度<br/>℃</td>
633
+                    <td width="60">置换率<br/>ml/min</td> -->
634
+
635
+                        <td width="">备 注</td>
636
+                        <td width="70">执行护士</td>
637
+                    </tr>
638
+
639
+                    <tr v-for="monitor in record.monitor_records" :key="monitor.id">
640
+                        <td>
641
+                        &nbsp;
642
+                        <!-- <template>
643
+                            <span v-if="monitor.monitoring_date">
644
+                                {{monitor.monitoring_date | parseTime('{y}-{m}-{d}')}}
645
+                            </span>
646
+                        </template>     -->
647
+                        {{ getTime(monitor.operate_time, "{h}:{i}") }}
648
+                        </td>
649
+                        <td>
650
+                        &nbsp;{{ monitor.systolic_blood_pressure ? monitor.systolic_blood_pressure : "" }}/
651
+                        {{ monitor.diastolic_blood_pressure ? monitor.diastolic_blood_pressure : "" }}
652
+                        </td>
653
+                        <td>
654
+                        &nbsp;{{ monitor.pulse_frequency ? monitor.pulse_frequency : "" }}
655
+                        </td>
656
+                        <td>
657
+                        &nbsp;{{ monitor.breathing_rate ? monitor.breathing_rate : "" }}
658
+                        </td>
659
+                        <td>
660
+                        &nbsp;{{ monitor.blood_flow_volume ? monitor.blood_flow_volume : "" }}
661
+                        </td>
662
+
663
+
664
+                        <td>
665
+                        &nbsp;{{ monitor.ultrafiltration_volume ? monitor.ultrafiltration_volume : "" }}
666
+                        </td>
667
+                        <td>
668
+                        &nbsp;{{ monitor.venous_pressure ? monitor.venous_pressure : "" }}
669
+                        </td>
670
+                        <td>
671
+                        &nbsp;{{ monitor.transmembrane_pressure ? monitor.transmembrane_pressure : "" }}
672
+                        </td>
673
+                        <td>&nbsp;{{ monitor.conductivity ? monitor.conductivity : "" }}</td>
674
+                        <td>&nbsp;{{ monitor.dialysate_temperature ? monitor.dialysate_temperature : "" }}</td>
675
+                        <!-- <td>&nbsp;{{monitor.sodium_concentration}}</td>
676
+                    <td>&nbsp;{{monitor.dialysate_temperature}}</td>
677
+                    <td>&nbsp;{{monitor.replacement_rate}}</td> -->
678
+                        <td>
679
+                        &nbsp;{{ monitor.symptom }} &nbsp;{{ monitor.dispose }} &nbsp;{{ monitor.result }}
680
+                        </td>
681
+                        <td>
682
+                        <span v-if="setAdminUserES(monitor, 'monitoring_nurse') == ''">
683
+                        {{ getAdminUser(monitor, 'monitoring_nurse') }}
684
+                        </span>
685
+                        <span v-else style="display:flex;align-items:center;justify-content:space-around;height:36px;">
686
+                        <img style="height:30px;" :src="setAdminUserES(monitor, 'monitoring_nurse')" alt srcset />
687
+                        </span>
688
+                        </td>
689
+                    </tr>
690
+                    </tbody>
691
+                </table>
692
+
614 693
                 <table class="print-table" border="1">
615 694
                     <tr>
616 695
                     <td>时间</td>
@@ -702,84 +781,7 @@
702 781
                     </tr>
703 782
                 </table>
704 783
 
705
-                <table class="print-table" border="1">
706
-                    <tbody>
707
-                    <tr>
708
-                        <td :rowspan="record.monitor_records.length + 1" width="30px" class="title-box">
709
-                        透析中记录
710
-                        </td>
711
-
712
-                        <td width="100">时间</td>
713
-                        <td width="80">血压<br />mmHg</td>
714
-                        <td width="40">脉搏<br />次/分</td>
715
-                        <td width="40">呼吸<br />次/分</td>
716
-                        <td width="60">血流量<br />ml/min</td>
717
-                        <td width="60">超滤量<br />ml</td>
718
-                        <td width="60">静脉压<br />mmHg</td>
719
-                        <td width="60">跨膜压<br />mmHg</td>
720
-                        <td width="60">电导度<br />ms/cm</td>
721
-                        <td width="60">液温<br />℃</td>
722
-                        <!-- <td width="60">钠浓度<br/>mmol/L</td>
723
-                    <td width="80">透析液温度<br/>℃</td>
724
-                    <td width="60">置换率<br/>ml/min</td> -->
725
-
726
-                        <td width="">备 注</td>
727
-                        <td width="70">执行护士</td>
728
-                    </tr>
729
-
730
-                    <tr v-for="monitor in record.monitor_records" :key="monitor.id">
731
-                        <td>
732
-                        &nbsp;
733
-                        <!-- <template>
734
-                            <span v-if="monitor.monitoring_date">
735
-                                {{monitor.monitoring_date | parseTime('{y}-{m}-{d}')}}
736
-                            </span>
737
-                        </template>     -->
738
-                        {{ getTime(monitor.operate_time, "{h}:{i}") }}
739
-                        </td>
740
-                        <td>
741
-                        &nbsp;{{ monitor.systolic_blood_pressure ? monitor.systolic_blood_pressure : "" }}/
742
-                        {{ monitor.diastolic_blood_pressure ? monitor.diastolic_blood_pressure : "" }}
743
-                        </td>
744
-                        <td>
745
-                        &nbsp;{{ monitor.pulse_frequency ? monitor.pulse_frequency : "" }}
746
-                        </td>
747
-                        <td>
748
-                        &nbsp;{{ monitor.breathing_rate ? monitor.breathing_rate : "" }}
749
-                        </td>
750
-                        <td>
751
-                        &nbsp;{{ monitor.blood_flow_volume ? monitor.blood_flow_volume : "" }}
752
-                        </td>
753
-
754
-
755
-                        <td>
756
-                        &nbsp;{{ monitor.ultrafiltration_volume ? monitor.ultrafiltration_volume : "" }}
757
-                        </td>
758
-                        <td>
759
-                        &nbsp;{{ monitor.venous_pressure ? monitor.venous_pressure : "" }}
760
-                        </td>
761
-                        <td>
762
-                        &nbsp;{{ monitor.transmembrane_pressure ? monitor.transmembrane_pressure : "" }}
763
-                        </td>
764
-                        <td>&nbsp;{{ monitor.conductivity ? monitor.conductivity : "" }}</td>
765
-                        <td>&nbsp;{{ monitor.dialysate_temperature ? monitor.dialysate_temperature : "" }}</td>
766
-                        <!-- <td>&nbsp;{{monitor.sodium_concentration}}</td>
767
-                    <td>&nbsp;{{monitor.dialysate_temperature}}</td>
768
-                    <td>&nbsp;{{monitor.replacement_rate}}</td> -->
769
-                        <td>
770
-                        &nbsp;{{ monitor.symptom }} &nbsp;{{ monitor.dispose }} &nbsp;{{ monitor.result }}
771
-                        </td>
772
-                        <td>
773
-                        <span v-if="setAdminUserES(monitor, 'monitoring_nurse') == ''">
774
-                        {{ getAdminUser(monitor, 'monitoring_nurse') }}
775
-                        </span>
776
-                        <span v-else style="display:flex;align-items:center;justify-content:space-around;height:36px;">
777
-                        <img style="height:30px;" :src="setAdminUserES(monitor, 'monitoring_nurse')" alt srcset />
778
-                        </span>
779
-                        </td>
780
-                    </tr>
781
-                    </tbody>
782
-                </table>
784
+            
783 785
 
784 786
                 <table class="print-table" border="1">
785 787
                     <tbody>
@@ -945,11 +947,14 @@
945 947
                                 <label-box :isChecked="record.assessment_after_dislysis.patient_gose == 3 ? true : false" showValue="住院"></label-box>
946 948
                                 </td>
947 949
                                 <td width="10">(</td>
948
-                                <td width="35">科室</td>
950
+                                <td width="35">医生签名</td>
949 951
                                 <td width="100">
950 952
                                 <div class="under-line">
951 953
                                     &nbsp;
952
-                                    <span v-if="record.assessment_after_dislysis.patient_gose == 3">{{ record.assessment_after_dislysis.inpatient_department }}</span>
954
+                                    <!-- <span v-if="record.assessment_after_dislysis.patient_gose == 3">{{ record.assessment_after_dislysis.inpatient_department }}</span> -->
955
+                                    <span v-if="setAdminUserES(record.prescription, 'creater') == ''">
956
+                                    {{ getAdminUser(record.prescription, 'creater') }}</span>
957
+                                    <img class="es-img" style="height:30px" :src="setAdminUserES(record.prescription, 'creater')" alt="" srcset="" v-else />
953 958
                                 </div>
954 959
                                 </td>
955 960
                                 <td width="70">护士签名:</td>

+ 350 - 0
src/xt_pages/dialysis/doctorAdvicePrintTwo.vue Wyświetl plik

@@ -0,0 +1,350 @@
1
+<template>
2
+    <div class="main-contain">
3
+        <div class="position">
4
+        <bread-crumb :crumbs="crumbs"></bread-crumb>
5
+        <el-row style="float:right;">
6
+            <el-col :span="24">
7
+            <el-button size="small" icon="el-icon-printer" type="primary" @click="printAction">打印</el-button>
8
+            </el-col>
9
+        </el-row>
10
+        </div>
11
+        <div class="app-container" style="background-color: white;" v-show="show">
12
+            <div id="dialysisTable">
13
+                <div class="order_title_panl">
14
+                    <span class="main_title">临时医嘱</span>
15
+                </div>
16
+                <p style="width: 960px;text-align: right;margin: 0 auto 10px;">日期:{{ time }}</p>
17
+                <table class="table dialysisTable" border="1" cellspacing="0" cellpadding="0">
18
+                    <tr>
19
+                      <th width="20px">序号</th>
20
+                      <th width="100px">姓名</th>
21
+                      <th width="50px">医嘱名称</th>
22
+                      <th width="50px">药品规格</th>
23
+                      <th width="50px">单位</th>
24
+                      <th width="50px">数量</th>
25
+                    </tr>
26
+
27
+                    <tr v-for="(item,index) in tableData" :key="index">
28
+                      <th width="20px">
29
+                        {{ index+1 }}
30
+                      </th>
31
+                      <th width="100px">
32
+                        {{ item.patient_name }}
33
+                      </th>
34
+                      <th width="50px">
35
+                        {{ item.advice_name }}
36
+                      </th>
37
+                      <th width="50px">
38
+                        {{ getSpecicalName(item.drug_id) }}
39
+                      </th>
40
+                      <th width="50px">
41
+                        {{ item.prescribing_number_unit }}
42
+                      </th>
43
+                      <th width="50px">
44
+                        {{ item.prescribing_number }}
45
+                      </th>
46
+                    </tr>
47
+                   
48
+                </table>
49
+            </div>
50
+        </div>
51
+
52
+        
53
+    </div>
54
+</template>
55
+
56
+<script>
57
+import BreadCrumb from '@/xt_pages/components/bread-crumb'
58
+import { getSchedualDoctors } from '@/api/advice'
59
+import { parseTime } from '@/utils'
60
+import { jsGetAge } from "@/utils/tools";
61
+import print from 'print-js'
62
+const moment = require('moment')
63
+export default {
64
+    components:{
65
+        BreadCrumb
66
+    },
67
+    data(){
68
+        return{
69
+            crumbs: [
70
+                { path: false, name: '药品' },
71
+                { path: false, name: '打印' }
72
+            ],
73
+            tableData:[],
74
+            start_time:"",
75
+            end_time:"",
76
+            print_time:moment(new Date()).add('year', 0).format('YYYY-MM-DD'),
77
+
78
+            zone_selected: 0,
79
+            scheduleMap:[],
80
+            time:'',
81
+            show:true,
82
+            showOne:false,
83
+            delivery_way:"",
84
+            org_id:0,
85
+            drugList:[]
86
+        }
87
+    },
88
+    methods:{
89
+        getAge: function (val) {
90
+            var thisLen = val.patient.id_card_no.length;
91
+            var birth = "";
92
+            if (thisLen == 15) {
93
+                birth = "19" + val.patient.id_card_no.substr(6, 6);
94
+            } else {
95
+                birth = val.patient.id_card_no.substr(6, 8);
96
+            }
97
+            var birthtwo =
98
+                birth.substr(0, 4) +
99
+                "-" +
100
+                birth.substr(4, 2) +
101
+                "-" +
102
+                birth.substr(6, 2);
103
+
104
+            var age = jsGetAge(birthtwo, "-");
105
+            return age;
106
+        },
107
+        printAction: function() {
108
+            const style = '@media print { .dialysisTable{width:960px;margin: 0 auto;text-align: center;border-collapse: collapse;}.order_title_panl {text-align: center;.main_title {font-size: 18px;line-height: 40px;font-weight: 500;}}.dialysisTable tr{padding: 10px 0;}.dialysisTable th {color: #000;padding: 0;margin: 0;height: 30px;}.dialysisTable tr td {padding: 12px 0;}.subadvice_content {text-align: left;padding-left: 25px !important;padding-right: 5px !important;}.advice_content {text-align: left;padding-left: 5px !important;padding-right: 5px !important;padding: 15px 5px !important;} }'
109
+
110
+            printJS({
111
+            printable: 'dialysisTable',
112
+            type: 'html',
113
+            documentTitle: '  ',
114
+            style: style,
115
+            scanStyles: false
116
+            })
117
+        },
118
+        requestSchedualDoctors (time) {
119
+            let newTime =  moment(time).format('YYYY-MM-DD')
120
+            getSchedualDoctors({
121
+            date: newTime,
122
+            patient_type: 0,
123
+            advice_type: 2,
124
+            delivery_way:this.delivery_way,
125
+            }).then(rs => {
126
+                var resp = rs.data
127
+                if (resp.state == 1) {
128
+                this.admin_user = resp.data.adminUser
129
+                var config = resp.data.config
130
+                let project_config = resp.data.project_config
131
+                var hisAdvices = resp.data.hisAdvices
132
+                var drugList = resp.data.drug
133
+                this.drugList = []
134
+                this.drugList = drugList
135
+                var newArr = []
136
+                if(hisAdvices!=null && hisAdvices.length>0){
137
+                   for(let i=0;i<hisAdvices.length>0;i++){
138
+                     for(let j=0;j<hisAdvices[i].doctor_advice.length;j++){
139
+                        hisAdvices[i].doctor_advice[j].patient_name = ""
140
+                        hisAdvices[i].doctor_advice[j].patient_name = hisAdvices[i].patient.name
141
+                        if(hisAdvices[i].doctor_advice[j].delivery_way !='口服' && hisAdvices[i].doctor_advice[j].delivery_way!='中药口服'){
142
+                          if(hisAdvices[i].doctor_advice[j].execution_frequency.indexOf('上机前')==-1){
143
+                             newArr.push(hisAdvices[i].doctor_advice[j])
144
+                          }
145
+                        }
146
+                     }
147
+                   }
148
+                }
149
+                this.tableData = []
150
+                this.tableData = newArr
151
+                console.log("newArr------",newArr)
152
+               
153
+               }
154
+            })
155
+        },
156
+        compare (property) {
157
+            return function (a, b) {
158
+                var value1 = a[property]
159
+                var value2 = b[property]
160
+                return value1 - value2
161
+            }
162
+        },
163
+        parseTime: function (time, layout) {
164
+            if (time == 0) {
165
+                return ''
166
+            }
167
+            return parseTime(time, layout)
168
+        },
169
+        getName (val) {
170
+            for (let i = 0; i < this.admin_user.length; i++) {
171
+                if (this.admin_user[i].id == val) {
172
+                    return this.admin_user[i].name
173
+                }
174
+            }
175
+        },
176
+        getSpecicalName(drug_id){
177
+          var specification_name = ""
178
+          for(let i=0;i<this.drugList.length;i++){
179
+            if(drug_id == this.drugList[i].id){
180
+               specification_name = this.drugList[i].dose + this.drugList[i].dose_unit + "*"+this.drugList[i].min_number+this.drugList[i].min_unit+"/"+this.drugList[i].max_unit
181
+            }
182
+          }
183
+          return specification_name
184
+        }
185
+    },
186
+    computed: {
187
+    filtedScheduals: function () {
188
+        var scheduleMap = new Object()
189
+        if (this.zone_selected == 0) {
190
+            for (const key in this.scheduleMap) {
191
+            scheduleMap[key] = this.scheduleMap[key]
192
+            }
193
+        } else {
194
+            var zone_name = this.zones[this.zone_selected].text
195
+            scheduleMap[zone_name] = this.scheduleMap[zone_name]
196
+        }
197
+
198
+        if (this.schedule_type_selected != 0) {
199
+            var _scheduleMap = {}
200
+            for (const key in scheduleMap) {
201
+            var origin_schedules = scheduleMap[key]
202
+            var schedules = []
203
+            for (let index = 0; index < origin_schedules.length; index++) {
204
+                const schedule = origin_schedules[index]
205
+                if (schedule.schedule_type == this.schedule_type_selected) {
206
+                schedules.push(schedule)
207
+                }
208
+            }
209
+            if (schedules.length > 0) {
210
+                _scheduleMap[key] = schedules
211
+            }
212
+            }
213
+
214
+            scheduleMap = _scheduleMap
215
+        }
216
+        for (var key in scheduleMap) {
217
+            let mapArr = scheduleMap[key]
218
+            for (let i = 0; i < mapArr.length; i++) {
219
+            mapArr[i]['new_advice'] = []
220
+            }
221
+        }
222
+
223
+        for (var key in scheduleMap) {
224
+            let mapArr = scheduleMap[key]
225
+            for (let i = 0; i < mapArr.length; i++) {
226
+            var maps = mapArr[i]
227
+            var resp_advices = maps.doctor_advice
228
+            if (resp_advices.length > 0) {
229
+                var newGroupObject = function () {
230
+                return Object.assign(
231
+                    {},
232
+                    {
233
+                    group_no: 0,
234
+                    advices: []
235
+                    }
236
+                )
237
+                }
238
+                var initGroupBlock = function (group, advice) {
239
+                group.group_no = advice.groupno
240
+                }
241
+
242
+                var advice_groups = []
243
+                var group = newGroupObject()
244
+                for (let index = 0; index < resp_advices.length; index++) {
245
+                const advice = resp_advices[index]
246
+                if (advice.groupno == 0) {
247
+                    // 老版本的医嘱
248
+                    if (advice.parent_id > 0) {
249
+                    if (advice_groups.length > 0) {
250
+                        var parent_group = advice_groups[advice_groups.length - 1]
251
+                        if (parent_group.advices.length > 0) {
252
+                        if (parent_group.advices[0].id == advice.parent_id) {
253
+                            parent_group.advices.push(advice)
254
+                        }
255
+                        }
256
+                    }
257
+                    continue
258
+                    } else {
259
+                    if (group.group_no > 0) {
260
+                        advice_groups.push(group)
261
+                        group = newGroupObject()
262
+                    }
263
+
264
+                    initGroupBlock(group, advice)
265
+                    group.advices.push(advice)
266
+                    advice_groups.push(group)
267
+                    group = newGroupObject()
268
+                    continue
269
+                    }
270
+                } else {
271
+                    if (group.group_no > 0 && group.group_no != advice.groupno) {
272
+                    advice_groups.push(group)
273
+                    group = newGroupObject()
274
+                    }
275
+                    if (group.group_no == 0) {
276
+                    initGroupBlock(group, advice)
277
+                    }
278
+                    if (group.group_no == advice.groupno) {
279
+                    group.advices.push(advice)
280
+                    }
281
+                }
282
+                }
283
+                if (group.group_no > 0) {
284
+                // 上述的算法会导致最后一组没有加到advice_groups,这里要手动加
285
+                advice_groups.push(group)
286
+                }
287
+                advice_groups = advice_groups
288
+            } else {
289
+                advice_groups = []
290
+            }
291
+            maps.new_advice = advice_groups
292
+            }
293
+        }
294
+        console.log("222222",scheduleMap)
295
+        return scheduleMap
296
+        }
297
+    },
298
+    created(){
299
+      var time = this.$route.query.time
300
+      var delivery_way = this.$route.query.delivery_way
301
+      this.delivery_way = delivery_way
302
+      this.time = moment(time).format('YYYY-MM-DD')
303
+      console.log(11,this.$route.query)
304
+      this.requestSchedualDoctors(time)
305
+      this.org_id = this.$store.getters.xt_user.template_info.org_id;
306
+    }
307
+}
308
+</script>
309
+
310
+
311
+<style rel="stylesheet/scss" lang="scss" scoped>
312
+.dialysisTable{
313
+    width:960px;
314
+    margin: 0 auto;
315
+    text-align: center;
316
+    border-collapse: collapse;
317
+}
318
+.order_title_panl {
319
+    text-align: center;
320
+
321
+    .main_title {
322
+      font-size: 18px;
323
+      line-height: 40px;
324
+      font-weight: 500;
325
+    }
326
+}
327
+.dialysisTable tr{
328
+    padding: 10px 0;
329
+}
330
+.dialysisTable th {
331
+    color: #000;
332
+    padding: 0;
333
+    margin: 0;
334
+    height: 30px;
335
+}
336
+.dialysisTable tr td {
337
+    padding: 12px 0;
338
+}
339
+.subadvice_content {
340
+    text-align: left;
341
+    padding-left: 25px !important;
342
+    padding-right: 5px !important;
343
+}
344
+.advice_content {
345
+    text-align: left;
346
+    padding-left: 5px !important;
347
+    padding-right: 5px !important;
348
+    padding: 15px 5px !important;
349
+}
350
+</style>

+ 5 - 1
src/xt_pages/dialysis/newDoctorAdvice.vue Wyświetl plik

@@ -1546,10 +1546,14 @@ export default {
1546 1546
           name = ""
1547 1547
        }
1548 1548
 
1549
-       if(this.org_id == 9671 || this.org_id == 10340 || this.org_id == 0){
1549
+       if(this.org_id == 9671 || this.org_id == 10340){
1550 1550
         this.$router.push({ path: "/dialysis/doctorAdvicePrint/one",query:{time: new Date(this.time).getTime(),delivery_way:name,excution_way:this.excution_way} });
1551 1551
        }
1552 1552
 
1553
+       if(this.org_id == 0 || this.org_id == 10721){
1554
+         this.$router.push({ path: "/dialysis/doctorAdvicePrint/two",query:{time: new Date(this.time).getTime(),delivery_way:name,excution_way:this.excution_way} });
1555
+       }
1556
+
1553 1557
        if(this.org_id != 9671 && this.org_id != 10340 && this.org_id!=0){
1554 1558
         this.$router.push({ path: "/dialysis/doctorAdvicePrint",query:{time: new Date(this.time).getTime(),delivery_way:name,excution_way:this.excution_way} });
1555 1559
        }

+ 63 - 56
src/xt_pages/dialysis/template/DialysisPrintOrderTwenty.vue Wyświetl plik

@@ -604,59 +604,6 @@
604 604
           </tbody>
605 605
         </table>
606 606
 
607
-        <table class="print-table" border="1">
608
-          <tr>
609
-            <td>时间</td>
610
-            <td width='430'>临时医嘱</td>
611
-            <td>医生签名</td>
612
-            <td>执行护士</td>
613
-            <td>执行时间</td>
614
-            <td>核对护士</td>
615
-          </tr>
616
-          <tr v-for="(advice, advice_index) in tableAdvice" :key="advice_index">
617
-            <td style="height:30px;line-height:30px">{{ getTime(advice.start_time, "{y}-{m}-{d} {h}:{i}") }}</td>
618
-            <td class="parent" style="text-align:left;padding-left: 20px !important;">
619
-              <span v-if="advice.parent_id > 0">&nbsp;&nbsp;&nbsp;</span>
620
-              <span>{{ advice.advice_name }}</span>
621
-              <span v-if="advice && advice.advice_desc">({{ advice.advice_desc }}{{ advice.drug_spec_unit }})</span>
622
-              <span v-if="advice.prescribing_number">
623
-                &nbsp;&nbsp; {{ advice.prescribing_number }}{{ advice.prescribing_number_unit }}
624
-              </span>
625
-              <span v-if="advice.single_dose != 0">{{ advice.single_dose }}{{ advice.single_dose_unit }}</span>
626
-              <span v-if="advice.parent_id == 0">{{ advice.delivery_way }}</span>
627
-              <span v-if="advice.parent_id == 0">
628
-                {{ advice.execution_frequency }}
629
-              </span>
630
-              <span v-if="advice.parent_id == 0 && advice.remark.length > 0">({{ advice.remark }})</span>
631
-            </td>
632
-            <td>
633
-              <span v-if="setAdminUserES(advice.advice_doctor) == ''">
634
-                {{ getAdminUser(advice.advice_doctor) }}
635
-              </span>
636
-              <span v-else style="display:flex;align-items:center;justify-content:space-around;height:36px;">
637
-                <img style="height:30px;" :src="setAdminUserES(advice.advice_doctor)" alt srcset />
638
-              </span>
639
-            </td>
640
-            <td>
641
-              <span v-if="setAdminUserES(advice.execution_staff) == ''">
642
-                {{ getAdminUser(advice.execution_staff) }}
643
-              </span>
644
-              <span v-else style="display:flex;align-items:center;justify-content:space-around;height:36px;">
645
-                <img style="height:30px;" :src="setAdminUserES(advice.execution_staff)" alt srcset />
646
-              </span>
647
-            </td>
648
-            <td>{{ getTime(advice.execution_time, "{y}-{m}-{d} {h}:{i}") }}</td>
649
-            <td>
650
-              <span v-if="setAdminUserES(advice.checker) == ''">
651
-                {{ getAdminUser(advice.checker) }}
652
-              </span>
653
-              <span v-else style="display:flex;align-items:center;justify-content:space-around;height:36px;">
654
-                <img style="height:30px;" :src="setAdminUserES(advice.checker)" alt srcset />
655
-              </span>
656
-            </td>
657
-          </tr>
658
-        </table>
659
-
660 607
         <table class="print-table" border="1">
661 608
           <tbody>
662 609
             <tr>
@@ -738,6 +685,61 @@
738 685
           </tbody>
739 686
         </table>
740 687
 
688
+        <table class="print-table" border="1">
689
+          <tr>
690
+            <td>时间</td>
691
+            <td width='430'>临时医嘱</td>
692
+            <td>医生签名</td>
693
+            <td>执行护士</td>
694
+            <td>执行时间</td>
695
+            <td>核对护士</td>
696
+          </tr>
697
+          <tr v-for="(advice, advice_index) in tableAdvice" :key="advice_index">
698
+            <td style="height:30px;line-height:30px">{{ getTime(advice.start_time, "{y}-{m}-{d} {h}:{i}") }}</td>
699
+            <td class="parent" style="text-align:left;padding-left: 20px !important;">
700
+              <span v-if="advice.parent_id > 0">&nbsp;&nbsp;&nbsp;</span>
701
+              <span>{{ advice.advice_name }}</span>
702
+              <span v-if="advice && advice.advice_desc">({{ advice.advice_desc }}{{ advice.drug_spec_unit }})</span>
703
+              <span v-if="advice.prescribing_number">
704
+                &nbsp;&nbsp; {{ advice.prescribing_number }}{{ advice.prescribing_number_unit }}
705
+              </span>
706
+              <span v-if="advice.single_dose != 0">{{ advice.single_dose }}{{ advice.single_dose_unit }}</span>
707
+              <span v-if="advice.parent_id == 0">{{ advice.delivery_way }}</span>
708
+              <span v-if="advice.parent_id == 0">
709
+                {{ advice.execution_frequency }}
710
+              </span>
711
+              <span v-if="advice.parent_id == 0 && advice.remark.length > 0">({{ advice.remark }})</span>
712
+            </td>
713
+            <td>
714
+              <span v-if="setAdminUserES(advice.advice_doctor) == ''">
715
+                {{ getAdminUser(advice.advice_doctor) }}
716
+              </span>
717
+              <span v-else style="display:flex;align-items:center;justify-content:space-around;height:36px;">
718
+                <img style="height:30px;" :src="setAdminUserES(advice.advice_doctor)" alt srcset />
719
+              </span>
720
+            </td>
721
+            <td>
722
+              <span v-if="setAdminUserES(advice.execution_staff) == ''">
723
+                {{ getAdminUser(advice.execution_staff) }}
724
+              </span>
725
+              <span v-else style="display:flex;align-items:center;justify-content:space-around;height:36px;">
726
+                <img style="height:30px;" :src="setAdminUserES(advice.execution_staff)" alt srcset />
727
+              </span>
728
+            </td>
729
+            <td>{{ getTime(advice.execution_time, "{y}-{m}-{d} {h}:{i}") }}</td>
730
+            <td>
731
+              <span v-if="setAdminUserES(advice.checker) == ''">
732
+                {{ getAdminUser(advice.checker) }}
733
+              </span>
734
+              <span v-else style="display:flex;align-items:center;justify-content:space-around;height:36px;">
735
+                <img style="height:30px;" :src="setAdminUserES(advice.checker)" alt srcset />
736
+              </span>
737
+            </td>
738
+          </tr>
739
+        </table>
740
+
741
+     
742
+
741 743
         <table class="print-table" border="1">
742 744
           <tbody>
743 745
             <tr>
@@ -902,11 +904,16 @@
902 904
                         <label-box :isChecked="afterdialysis.patient_gose == 3 ? true : false" showValue="住院"></label-box>
903 905
                       </td>
904 906
                       <td width="10">(</td>
905
-                      <td width="35">科室</td>
906
-                      <td width="100">
907
+                      <td width="35">医生签名:</td>
908
+                      <td width="120">
907 909
                         <div class="under-line">
908 910
                           &nbsp;
909
-                          <span v-if="afterdialysis.patient_gose == 3">{{ afterdialysis.inpatient_department }}</span>
911
+                          <!-- <span v-if="afterdialysis.patient_gose == 3">
912
+                            {{ afterdialysis.inpatient_department }}
913
+                          </span> -->
914
+                          <span v-if="setAdminUserES(dialysisPrescription == null ? 0 : dialysisPrescription.creater) == ''">
915
+                            {{ getAdminUser(dialysisPrescription == null ? 0 : dialysisPrescription.creater) }}</span>
916
+                          <img class="es-img" style="height:30px" :src="setAdminUserES(dialysisPrescription == null ? 0 : dialysisPrescription.creater)" alt="" srcset="" v-else />
910 917
                         </div>
911 918
                       </td>
912 919
                       <td width="70">护士签名:</td>

+ 2 - 0
src/xt_pages/dialysis/template/DialysisPrintOrdereightyone.vue Wyświetl plik

@@ -2479,7 +2479,9 @@ export default {
2479 2479
           if(this.doctor_advices!=null && this.doctor_advices.length>0){
2480 2480
             for(let i=0;i<this.doctor_advices.length;i++){
2481 2481
               if(this.doctor_advices[i].delivery_way!='口服' && this.doctor_advices[i].delivery_way!='中药口服'){
2482
+                if(this.doctor_advices[i].execution_frequency.indexOf("上机前") == -1 ){
2482 2483
                   docArr.push(this.doctor_advices[i])
2484
+                 }  
2483 2485
               }
2484 2486
             }
2485 2487
           }

+ 6 - 3
src/xt_pages/eleFaPiao/newSettleDetail.vue Wyświetl plik

@@ -151,7 +151,7 @@
151 151
 <!--              开票-->
152 152
 <!--            </el-button>-->
153 153
             <el-button v-if="scope.row.result.id == 0" size="mini" type="primary"
154
-                       @click="blueDailog()">
154
+                       @click="blueDailog(scope.row)">
155 155
               开票
156 156
             </el-button>
157 157
             <el-button v-if="scope.row.result.id == 0 && scope.row.result.fapiao_status == 1" disabled="true" size="mini" type="primary"
@@ -333,7 +333,9 @@ export default {
333 333
         }
334 334
       }).catch(function(error) {
335 335
       })
336
-    },blueDailog(){
336
+    },blueDailog(row){
337
+      this.selecting_schs.push(row.id)
338
+      console.log(this.selecting_schs)
337 339
       var order_ids = ""
338 340
       for(let i = 0; i < this.selecting_schs.length;i++){
339 341
         if(order_ids.length == 0){
@@ -351,7 +353,8 @@ export default {
351 353
       this.settlementVisible = true
352 354
       this.paramsObj = paramsObj
353 355
     },
354
-    blue(){
356
+    blue(row){
357
+
355 358
       var order_ids = ""
356 359
       for(let i = 0; i < this.selecting_schs.length;i++){
357 360
         if(order_ids.length == 0){

+ 290 - 1
src/xt_pages/outpatientCharges/statementPrint.vue Wyświetl plik

@@ -75,7 +75,7 @@
75 75
             org_id != 10610 && org_id !=10537 && org_id !=10697 &&
76 76
             org_id != 10278 && org_id != 10387 && org_id != 10191 &&
77 77
             org_id != 10210 &&org_id != 10485 &&org_id != 10480 &&
78
-            org_id != 10510 &&org_id != 10088 &&org_id != 10633 &&org_id != 0 && this.paramsObj.balance_accounts_type == 1">
78
+            org_id != 10510 &&org_id != 10088 && org_id != 10721 &&org_id != 10633 &&org_id != 0 && this.paramsObj.balance_accounts_type == 1">
79 79
       </printOne>
80 80
       <privateChargePrint :info="info" v-if="org_id != 9990 &&
81 81
             org_id != 10138 && org_id != 9504 &&  org_id != 10028 && org_id !=10697 &&
@@ -1556,6 +1556,295 @@ export default {
1556 1556
 
1557 1557
 
1558 1558
 
1559
+          } if(this.org_id == 10721){
1560
+            let params = {
1561
+              order_id: obj.order_id,
1562
+              admin_user_id: this.$store.getters.xt_user.user.id
1563
+            }
1564
+            getPrivateExpensesOrder(params).then((response) => {
1565
+              if (response.data.state == 0) {
1566
+                // this.$message.error(response.data.msg)
1567
+
1568
+                return false
1569
+              } else {
1570
+                var that = this
1571
+                that.info = response.data.data.info
1572
+                that.p_admin = response.data.data.printor_admin
1573
+                that.charge_admin = response.data.data.charge_admin
1574
+                that.info['new_order'] = response.data.data.info
1575
+                that.info['p_admin'] = that.p_admin
1576
+                that.info['charge_admin'] = that.charge_admin
1577
+                that.info['order_number'] = response.data.data.order_number
1578
+                that.info['patient'] = response.data.data.patient
1579
+                that.info['date'] = response.data.data.date
1580
+                that.info['number'] = response.data.data.number
1581
+                that.info['order_infos'] = response.data.data.order_infos
1582
+                that.info['diagnosis'] = response.data.data.diagnosis
1583
+                that.info['fixmedins_name'] = response.data.data.org_name
1584
+                that.info['fixmedins_code'] = response.data.data.org_code
1585
+                // that.info["doctor_code"] = response.data.data.doctor_code;
1586
+                // that.info["department"] = response.data.data.department;
1587
+                // that.info["health_card_no"] = response.data.data.health_card_no;
1588
+
1589
+                that.info['bed_cost_total'] = response.data.data.bedCostTotal
1590
+                that.info['bed_cost_self_total'] =
1591
+                  response.data.data.bedCostSelfTotal
1592
+                that.info['bed_cost_part_self_total'] =
1593
+                  response.data.data.bedCostPartSelfTotal
1594
+
1595
+                that.info['operation_cost_total'] =
1596
+                  response.data.data.operationCostTotal
1597
+                that.info['operation_cost_self_total'] =
1598
+                  response.data.data.operationCostSelfTotal
1599
+                that.info['operation_cost_part_self_total'] =
1600
+                  response.data.data.operationCostPartSelfTotal
1601
+
1602
+                that.info['other_cost_total'] = response.data.data.otherCostTotal
1603
+                that.info['other_cost_self_total'] =
1604
+                  response.data.data.otherCostSelfTotal
1605
+                that.info['other_cost_part_self_total'] =
1606
+                  response.data.data.otherCostPartSelfTotal
1607
+
1608
+                that.info['material_cost_total'] =
1609
+                  response.data.data.materialCostTotal
1610
+                that.info['material_cost_self_total'] =
1611
+                  response.data.data.materialCostSelfTotal
1612
+                that.info['material_cost_part_self_total'] =
1613
+                  response.data.data.materialCostPartSelfTotal
1614
+
1615
+                that.info['western_medicine_cost_total'] =
1616
+                  response.data.data.westernMedicineCostTotal
1617
+                that.info['western_medicine_cost_self_total'] =
1618
+                  response.data.data.westernMedicineCostSelfTotal
1619
+                that.info['western_medicine_cost_part_self_total'] =
1620
+                  response.data.data.westernMedicineCostPartSelfTotal
1621
+
1622
+                that.info['chinese_traditional_medicine_cost_total'] =
1623
+                  response.data.data.chineseTraditionalMedicineCostTotal
1624
+                that.info['chinese_traditional_medicine_cost_self_total'] =
1625
+                  response.data.data.chineseTraditionalMedicineCostSelfTotal
1626
+                that.info['chinese_traditional_medicine_cost_part_self_total'] =
1627
+                  response.data.data.chineseTraditionalMedicineCostPartSelfTotal
1628
+
1629
+                that.info['check_cost_total'] = response.data.data.checkCostTotal
1630
+                that.info['check_cost_self_total'] =
1631
+                  response.data.data.checkCostSelfTotal
1632
+                that.info['check_cost_part_self_total'] =
1633
+                  response.data.data.checkCostPartSelfTotal
1634
+
1635
+                that.info['laboratory_cost_total'] =
1636
+                  response.data.data.laboratoryCostTotal
1637
+                that.info['laboratory_cost_self_total'] =
1638
+                  response.data.data.laboratoryCostSelfTotal
1639
+                that.info['laboratory_cost_part_self_total'] =
1640
+                  response.data.data.laboratoryCostPartSelfTotal
1641
+
1642
+                that.info['treat_cost_total'] = response.data.data.treatCostTotal
1643
+                that.info['treat_cost_self_total'] =
1644
+                  response.data.data.treatCostSelfTotal
1645
+                that.info['treat_cost_part_self_total'] =
1646
+                  response.data.data.treatCostPartSelfTotal
1647
+
1648
+
1649
+
1650
+                that.info['date'] = response.data.data.date
1651
+                that.info['number'] = response.data.data.number
1652
+                that.info['order_infos'] = response.data.data.order_infos
1653
+                that.info['diagnosis'] = response.data.data.diagnosis
1654
+                that.info['his'] = response.data.data.his
1655
+                that.info['dia_config'] = response.data.data.dia_config
1656
+
1657
+
1658
+                for (let i = 0; i < response.data.data.order_infos.length; i++) {
1659
+                  if (response.data.data.order_infos[i].advice_id > 0 && response.data.data.order_infos[i].project_id == 0) {
1660
+                    response.data.data.order_infos[i].med_chrgitm_type = '09'
1661
+                  }
1662
+                  if (response.data.data.order_infos[i].advice_id == 0 && response.data.data.order_infos[i].project_id > 0) {
1663
+                    if (response.data.data.order_infos[i].project.type == 2) { //项目
1664
+                      if (response.data.data.order_infos[i].project.project.cost_classify == 2) {
1665
+                        response.data.data.order_infos[i].med_chrgitm_type = '05'
1666
+                      } else if (response.data.data.order_infos[i].project.project.cost_classify == 3) {
1667
+                        response.data.data.order_infos[i].med_chrgitm_type = '04'
1668
+                      } else {
1669
+                        response.data.data.order_infos[i].med_chrgitm_type = '14'
1670
+                      }
1671
+                    } else if (response.data.data.order_infos[i].project.type == 3) { //耗材
1672
+                      response.data.data.order_infos[i].med_chrgitm_type = '08'
1673
+                    }
1674
+                  }
1675
+                }
1676
+                console.log(response.data.data.order_infos)
1677
+                console.log(that.info)
1678
+
1679
+                let list = []
1680
+                for (let i = 0; i < response.data.data.order_infos.length; i++) {
1681
+                  let order = response.data.data.order_infos[i]
1682
+                  let obj = {
1683
+                    name: '',
1684
+                    spec: '',
1685
+                    cnt: '',
1686
+                    det_item_fee_sumamt: '',
1687
+                    price:'',
1688
+                  }
1689
+
1690
+                  if (order.advice_id > 0 && order.project_id == 0) {
1691
+                    obj.name = order.advice.advice_name
1692
+                    let spec = order.advice.drug.dose + order.advice.drug.dose_unit + '*' + order.advice.drug.min_number + order.advice.drug.min_unit + '/' + order.advice.drug.max_unit
1693
+                    obj.spec = spec
1694
+                    obj.cnt = order.cnt
1695
+                    obj.det_item_fee_sumamt = order.det_item_fee_sumamt
1696
+                    obj.price = order.pric
1697
+                    list.push(obj)
1698
+
1699
+                  } else if (order.advice_id == 0 && order.project_id > 0) {
1700
+                    if (order.project.type == 2) {
1701
+                      obj.name = order.project.project.project_name
1702
+                      obj.spec = ''
1703
+                      obj.cnt = order.cnt
1704
+                      obj.det_item_fee_sumamt = order.det_item_fee_sumamt
1705
+                      obj.price = order.pric
1706
+                    } else {
1707
+                      obj.name = order.project.good_info.good_name
1708
+                      obj.spec = order.project.good_info.specification_name
1709
+                      obj.cnt = order.cnt
1710
+                      obj.det_item_fee_sumamt = order.det_item_fee_sumamt
1711
+                      obj.price = order.pric
1712
+                    }
1713
+                    list.push(obj)
1714
+                  }
1715
+
1716
+                }
1717
+                that.info['Z_list'] = list
1718
+
1719
+                //获取所有项目类型进行去重
1720
+                let med_chrgitm_types = []
1721
+                for (let i = 0; i < response.data.data.order_infos.length; i++) {
1722
+                  med_chrgitm_types.push(response.data.data.order_infos[i].med_chrgitm_type)
1723
+                }
1724
+                const obj10 = {}
1725
+                med_chrgitm_types = med_chrgitm_types.reduce((cur, next) => {
1726
+                  obj10[next] ? '' : obj10[next] = true && cur.push(next)
1727
+                  return cur
1728
+                }, []) // 设置cur默认类型为数组,并且初始值为空的数组
1729
+                let tempOrderInfo = []
1730
+                for (let i = 0; i < med_chrgitm_types.length; i++) {
1731
+
1732
+                  let obj9 = {
1733
+                    details: [],
1734
+                    med_chrgitm_name: that.getType(med_chrgitm_types[i]),
1735
+                    total:0,
1736
+                  }
1737
+
1738
+                  // if(med_chrgitm_types[i] == '09'){
1739
+                  //   obj.sort = 99
1740
+                  // } else if(med_chrgitm_types[i] == '05'){
1741
+                  //   obj.sort = 98
1742
+                  // } else if(med_chrgitm_types[i] == '08'){
1743
+                  //   obj.sort = 97
1744
+                  // }else if(med_chrgitm_types[i] == '03'){
1745
+                  //   obj.sort = 96
1746
+                  // }
1747
+
1748
+                  let tempDetails = []
1749
+                  for (let b = 0; b < response.data.data.order_infos.length; b++) {
1750
+                    if (med_chrgitm_types[i] == response.data.data.order_infos[b].med_chrgitm_type) {
1751
+                      tempDetails.push(response.data.data.order_infos[b])
1752
+                    }
1753
+                  }
1754
+                  console.log(med_chrgitm_types[i])
1755
+                  console.log(tempDetails)
1756
+                  obj9.total = that.getTotal(tempDetails)
1757
+                  obj9.details = that.set10265NewData(tempDetails)
1758
+                  list.push(obj9)
1759
+                }
1760
+                that.info['new_list'] = list
1761
+                // list.sort((a,b) => a.sort < b.sort ? 1 : a.sort > b.sort ? -1 : 0)
1762
+
1763
+                let obj = {
1764
+                  type: 1,
1765
+                  details: [],
1766
+                  total: 0
1767
+                }
1768
+                let obj2 = {
1769
+                  type: 2,
1770
+                  details: [],
1771
+                  total: 0
1772
+                }
1773
+                let obj3 = {
1774
+                  type: 3,
1775
+                  details: [],
1776
+                  total: 0
1777
+                }
1778
+
1779
+                let obj4 = {
1780
+                  type: 4,
1781
+                  details: [],
1782
+                  total: 0
1783
+                }
1784
+                let num = 0
1785
+                that.info.order_infos.map((item) => {
1786
+                  if (item.advice_id > 0) {
1787
+                    obj.details.push(item)
1788
+                    obj.total += item.pric * item.advice.prescribing_number
1789
+                    num++
1790
+                  } else {
1791
+                    if (item.project.type == 2) {
1792
+                      obj2.details.push(item)
1793
+                      obj2.total += item.pric * item.project.count
1794
+                      num++
1795
+                    } else {
1796
+                      obj3.details.push(item)
1797
+                      obj3.total += item.pric * item.project.count
1798
+                      num++
1799
+                    }
1800
+                  }
1801
+                })
1802
+
1803
+                // this.info.order_infos.map(item => {
1804
+                //   obj4.total = item.Total
1805
+                //   obj4.details.push(item)
1806
+                //   num++
1807
+                //
1808
+                // })
1809
+                var funds = []
1810
+                for(let i = 0; i <  response.data.data.funds.length; i++){
1811
+                  var objs = {}
1812
+                  objs["number"] = i + 1
1813
+                  objs["fund_pay"] = response.data.data.funds[i].fund_payamt
1814
+                  objs["limit_pay"] = response.data.data.funds[i].inscp_scp_amt
1815
+                  objs["insp_pay"] = response.data.data.funds[i].inscp_scp_amt
1816
+                  for(let b = 0; b < that.fundsArray.length; b++){
1817
+                    if(response.data.data.funds[i].fund_pay_type ==  that.fundsArray[b].code){
1818
+                      objs["name"] =that.fundsArray[b].name
1819
+                    }
1820
+                  }
1821
+                  funds.push(objs)
1822
+                }
1823
+                that.info['funds'] = funds
1824
+                console.log(that.info)
1825
+
1826
+                that.info.new_detail_list = []
1827
+                that.info.new_detail_list.push(obj)
1828
+                that.info.new_detail_list.push(obj2)
1829
+                that.info.new_detail_list.push(obj3)
1830
+                // that.info.new_detail_list.push(obj4)
1831
+
1832
+                that.num = num
1833
+
1834
+                if (that.paramsObj.settle_type != 1) {
1835
+                  that.info.begndate = that.getTimes(that.paramsObj.start_time)
1836
+                  that.info.enddate = that.getTimes(that.paramsObj.end_time)
1837
+                }
1838
+
1839
+                that.info.order_infos.map((item) => {
1840
+
1841
+                })
1842
+
1843
+              }
1844
+            })
1845
+
1846
+
1847
+
1559 1848
           }else{
1560 1849
             var that = this
1561 1850
             axios

+ 2 - 2
src/xt_pages/outpatientCharges/statementTemplate/printSeventheen.vue Wyświetl plik

@@ -29,7 +29,7 @@
29 29
         <div style="flex: 1;text-align: right;">收费员:{{info.charge_admin.user_name}}</div>
30 30
       </div>
31 31
       <div style="width: 100%;display: flex;padding: 5px 0;">
32
-        <div style="flex: 1;">帐户支付总额:{{info.new_order.medfee_sumamt}}</div>
32
+        <div style="flex: 1;">帐户支付总额:{{info.new_order.acct_pay}}</div>
33 33
         <div style="flex: 1;text-align: right;">现金支付:{{info.new_order.psn_cash_pay}}</div>
34 34
       </div>
35 35
       <div style="width: 100%;display: flex;">
@@ -42,7 +42,7 @@
42 42
       </div>
43 43
       <div style="width: 100%;display: flex;">
44 44
         <div style="flex: 1;">大病保险支付:{{info.new_order.hifmi_pay}}</div>
45
-        <div style="flex: 1;text-align: right;">账户余额:{{info.new_order.acct_pay}}</div>
45
+        <div style="flex: 1;text-align: right;">账户余额:{{info.new_order.blac}}</div>
46 46
       </div>
47 47
 
48 48
      <!-- <div style="border: 1px solid black;width: 100%;">

+ 181 - 15
src/xt_pages/outpatientDoctorStation/doctorDesk.vue Wyświetl plik

@@ -944,7 +944,7 @@ export default {
944 944
         } else {
945 945
           //挂号
946 946
           console.log('response.data.data12121212134',response.data.data);
947
-          
947
+
948 948
           for (let i = 0; i < response.data.data.list.length; i++) {
949 949
             for (let b = 0; b < response.data.data.list[i].his_patient.length; b++) {
950 950
               //未就诊
@@ -1885,8 +1885,8 @@ export default {
1885 1885
 
1886 1886
           this.all_data = this.all_data.concat(this.cure_data)
1887 1887
           this.all_data = this.all_data.concat(this.un_cure_data)
1888
-          
1889
-          
1888
+
1889
+
1890 1890
           this.cure_data_two = this.cure_data
1891 1891
           this.un_cure_data_two = this.un_cure_data
1892 1892
           this.all_data_two = this.all_data
@@ -2132,13 +2132,15 @@ export default {
2132 2132
 
2133 2133
 
2134 2134
               var preTime = nowTime
2135
-              if ( this.$store.getters.xt_user.org.id != 9919 && this.$store.getters.xt_user.org.id != 10485 && this.$store.getters.xt_user.org.id != 10191 && this.$store.getters.xt_user.org.id != 10375) {
2135
+              if ( this.$store.getters.xt_user.org.id != 9919 && this.$store.getters.xt_user.org.id != 10485 && this.$store.getters.xt_user.org.id != 10191 && this.$store.getters.xt_user.org.id != 10375 ) {
2136 2136
                 if (prescription.pre_time == 0) {
2137 2137
                   if (this.schedule.schedule_type == 1) {
2138 2138
                     if (this.org_id == 10028 || this.org_id == 10571  || this.org_id == 10633) {
2139 2139
                       preTime = this.record_date + ' ' + '6:30'
2140 2140
                     } else if(this.org_id == 10206 || this.org_id == 10598){
2141 2141
                       preTime = this.record_date + ' ' + '6:00'
2142
+                    }else if(this.org_id == 10721){
2143
+                      preTime = this.record_date + ' ' + '05:30'
2142 2144
                     } else {
2143 2145
                       preTime = this.record_date + ' ' + '7:00'
2144 2146
 
@@ -2149,6 +2151,8 @@ export default {
2149 2151
                     }else if(this.org_id == 10598){
2150 2152
                        preTime = this.record_date + ' ' + '09:00'
2151 2153
 
2154
+                     }else if(this.org_id == 10721){
2155
+                       preTime = this.record_date + ' ' + '10:00'
2152 2156
                      }else{
2153 2157
                      preTime = this.record_date + ' ' + '11:00'
2154 2158
                    }
@@ -2174,12 +2178,16 @@ export default {
2174 2178
                     if(this.schedule.schedule_type == 1){
2175 2179
                       if(this.org_id == 10206   || this.org_id == 10598) {
2176 2180
                         preTime = this.record_date+ ' ' + '6:00'
2181
+                      } else if(this.org_id == 10721){
2182
+                        preTime = this.record_date + ' ' + '05:30'
2177 2183
                       }else {
2178 2184
                         preTime = this.record_date + ' ' + '7:00'
2179 2185
                       }
2180 2186
                     }else if(this.schedule.schedule_type == 2){
2181 2187
                       if(this.org_id == 10206  || this.org_id == 0){
2182 2188
                         preTime = this.record_date + ' ' + '10:30'
2189
+                      }else if(this.org_id == 10721){
2190
+                        preTime = this.record_date + ' ' + '10:00'
2183 2191
                       }else if(this.org_id == 10598){
2184 2192
                         preTime = this.record_date + ' ' + '09:00'
2185 2193
 
@@ -2348,6 +2356,8 @@ export default {
2348 2356
                       preTime = this.record_date + ' ' + '6:30'
2349 2357
                     } else if(this.org_id == 10206  || this.org_id == 10598) {
2350 2358
                       preTime = this.record_date+ ' ' + '6:00'
2359
+                    } else if(this.org_id == 10721 ) {
2360
+                      preTime = this.record_date+ ' ' + '05:30'
2351 2361
                     } else {
2352 2362
                       preTime = this.record_date + ' ' + '7:00'
2353 2363
                     }
@@ -2358,6 +2368,8 @@ export default {
2358 2368
                     }else if(this.org_id == 10598){
2359 2369
                       preTime = this.record_date + ' ' + '09:00'
2360 2370
 
2371
+                    }  else if(this.org_id == 10721 ) {
2372
+                      preTime = this.record_date+ ' ' + '10:00'
2361 2373
                     }else {
2362 2374
                       preTime = this.record_date + ' ' + '11:00'
2363 2375
                     }
@@ -2374,6 +2386,8 @@ export default {
2374 2386
                   if(this.schedule.schedule_type == 1){
2375 2387
                     if(this.org_id == 10206  || this.org_id == 0 ||  this.org_id == 10598) {
2376 2388
                       preTime = this.record_date+ ' ' + '6:00'
2389
+                    } else if(this.org_id == 10721 ) {
2390
+                      preTime = this.record_date+ ' ' + '05:30'
2377 2391
                     }else {
2378 2392
                       preTime = this.record_date + ' ' + '7:00'
2379 2393
                     }
@@ -2383,7 +2397,9 @@ export default {
2383 2397
                     }else if(this.org_id == 10598){
2384 2398
                       preTime = this.record_date + ' ' + '09:00'
2385 2399
 
2386
-                    }else {
2400
+                    }else if(this.org_id == 10721 ) {
2401
+                      preTime = this.record_date+ ' ' + '10:00'
2402
+                    } else {
2387 2403
                       preTime = this.record_date + ' ' + '11:00'
2388 2404
                     }
2389 2405
                   }else{
@@ -2415,6 +2431,10 @@ export default {
2415 2431
                 if (obj.med_type == 0 || obj.med_type == '') {
2416 2432
                   if (this.org_id != 10206 && this.org_id != 0) {
2417 2433
                     obj.med_type = 14
2434
+                    if (this.org_id == 10721){
2435
+
2436
+                      obj.med_type = 992102
2437
+                    }
2418 2438
                   } else {
2419 2439
                     obj.med_type = 1
2420 2440
                   }
@@ -2433,15 +2453,18 @@ export default {
2433 2453
                 if(this.schedule.schedule_type == 1){
2434 2454
                   if(this.org_id == 10206  || this.org_id == 0 || this.org_id == 10598) {
2435 2455
                     preTime = this.record_date+ ' ' + '6:00'
2456
+                  }else if(this.org_id == 10721 ) {
2457
+                    preTime = this.record_date+ ' ' + '05:30'
2436 2458
                   }else {
2437 2459
                     preTime = this.record_date + ' ' + '7:00'
2438 2460
                   }
2439 2461
                 }else if(this.schedule.schedule_type == 2){
2440 2462
                   if(this.org_id == 10206  || this.org_id == 0){
2441 2463
                     preTime = this.record_date + ' ' + '10:30'
2464
+                  }else if(this.org_id == 10721 ) {
2465
+                    preTime = this.record_date+ ' ' + '10:00'
2442 2466
                   }else if(this.org_id == 10598){
2443 2467
                     preTime = this.record_date + ' ' + '09:00'
2444
-
2445 2468
                   }else {
2446 2469
                     preTime = this.record_date + ' ' + '11:00'
2447 2470
                   }
@@ -2466,6 +2489,10 @@ export default {
2466 2489
               }
2467 2490
               if (this.org_id != 10206) {
2468 2491
                 obj.med_type = 14
2492
+                if (this.org_id == 10721){
2493
+
2494
+                  obj.med_type = 992102
2495
+                }
2469 2496
               }else{
2470 2497
 
2471 2498
                 obj.med_type = 1
@@ -2740,6 +2767,8 @@ export default {
2740 2767
                             preTime = this.record_date + ' ' + '6:30'
2741 2768
                           } else if(this.org_id == 10206 || this.org_id == 10598){
2742 2769
                             preTime = this.record_date + ' ' + '6:00'
2770
+                          } else if(this.org_id == 10721 ){
2771
+                            preTime = this.record_date + ' ' + '05:30'
2743 2772
                           } else {
2744 2773
                             preTime = this.record_date + ' ' + '7:00'
2745 2774
 
@@ -2748,7 +2777,9 @@ export default {
2748 2777
                         } else if (this.schedule.schedule_type == 2) {
2749 2778
                           if(this.org_id == 10206  || this.org_id == 0){
2750 2779
                             preTime = this.record_date + ' ' + '10:30'
2751
-                          }else if(this.org_id == 10598){
2780
+                          }else if(this.org_id == 10721 ){
2781
+                            preTime = this.record_date + ' ' + '10:00'
2782
+                          } else if(this.org_id == 10598){
2752 2783
                             preTime = this.record_date + ' ' + '09:00'
2753 2784
 
2754 2785
                           }else{
@@ -2770,12 +2801,16 @@ export default {
2770 2801
                           if(this.schedule.schedule_type == 1){
2771 2802
                             if(this.org_id == 10206  || this.org_id == 10598) {
2772 2803
                               preTime = this.record_date+ ' ' + '6:00'
2804
+                            } else if(this.org_id == 10721) {
2805
+                              preTime = this.record_date+ ' ' + '05:30'
2773 2806
                             }else {
2774 2807
                               preTime = this.record_date + ' ' + '7:00'
2775 2808
                             }
2776 2809
                           }else if(this.schedule.schedule_type == 2){
2777 2810
                             if(this.org_id == 10206  || this.org_id == 0){
2778 2811
                               preTime = this.record_date + ' ' + '10:30'
2812
+                            } else if(this.org_id == 10721) {
2813
+                              preTime = this.record_date+ ' ' + '10:00'
2779 2814
                             }else if(this.org_id == 10598){
2780 2815
                               preTime = this.record_date + ' ' + '09:00'
2781 2816
 
@@ -2941,6 +2976,8 @@ export default {
2941 2976
                             preTime = this.record_date + ' ' + '6:30'
2942 2977
                           } else if(this.org_id == 10206 || this.org_id == 10598){
2943 2978
                             preTime = this.record_date + ' ' + '6:00'
2979
+                          } else if(this.org_id == 10721){
2980
+                            preTime = this.record_date + ' ' + '05:30'
2944 2981
                           } else {
2945 2982
                             preTime = this.record_date + ' ' + '7:00'
2946 2983
 
@@ -2952,6 +2989,9 @@ export default {
2952 2989
                           }else if(this.org_id == 10598){
2953 2990
                             preTime = this.record_date + ' ' + '09:00'
2954 2991
 
2992
+                          }else if(this.org_id == 10721){
2993
+                            preTime = this.record_date + ' ' + '10:00'
2994
+
2955 2995
                           }else{
2956 2996
                             preTime = this.record_date + ' ' + '11:00'
2957 2997
                           }
@@ -2967,6 +3007,8 @@ export default {
2967 3007
                         if(this.schedule.schedule_type == 1){
2968 3008
                           if(this.org_id == 10206  || this.org_id == 0 || this.org_id == 10598) {
2969 3009
                             preTime = this.record_date+ ' ' + '6:00'
3010
+                          } else if(this.org_id == 10721) {
3011
+                            preTime = this.record_date+ ' ' + '05:30'
2970 3012
                           }else {
2971 3013
                             preTime = this.record_date + ' ' + '7:00'
2972 3014
                           }
@@ -2976,6 +3018,9 @@ export default {
2976 3018
                           }else if(this.org_id == 10598){
2977 3019
                             preTime = this.record_date + ' ' + '09:00'
2978 3020
 
3021
+                          }else if(this.org_id == 10721){
3022
+                            preTime = this.record_date + ' ' + '10:00'
3023
+
2979 3024
                           }else {
2980 3025
                             preTime = this.record_date + ' ' + '11:00'
2981 3026
                           }
@@ -3010,6 +3055,10 @@ export default {
3010 3055
                           obj.med_type = 14
3011 3056
 
3012 3057
                         }
3058
+                        if (this.org_id == 10721){
3059
+
3060
+                          obj.med_type = 992102
3061
+                        }
3013 3062
                       }
3014 3063
                       this.prescriptions.push(obj)
3015 3064
                     }
@@ -3019,6 +3068,8 @@ export default {
3019 3068
                       if(this.schedule.schedule_type == 1){
3020 3069
                         if(this.org_id == 10206  || this.org_id == 0 || this.org_id == 10598) {
3021 3070
                           preTime = this.record_date+ ' ' + '6:00'
3071
+                        }else if(this.org_id == 10721) {
3072
+                          preTime = this.record_date+ ' ' + '05:30'
3022 3073
                         }else {
3023 3074
                           preTime = this.record_date + ' ' + '7:00'
3024 3075
                         }
@@ -3028,6 +3079,9 @@ export default {
3028 3079
                         } else if(this.org_id == 10598){
3029 3080
                           preTime = this.record_date + ' ' + '09:00'
3030 3081
 
3082
+                        } else if(this.org_id == 10721){
3083
+                          preTime = this.record_date + ' ' + '10:00'
3084
+
3031 3085
                         }else {
3032 3086
                           preTime = this.record_date + ' ' + '11:00'
3033 3087
                         }
@@ -3051,6 +3105,10 @@ export default {
3051 3105
 
3052 3106
                     if (this.org_id != 10206) {
3053 3107
                       obj.med_type = 14
3108
+                      if (this.org_id == 10721){
3109
+
3110
+                        obj.med_type = 992102
3111
+                      }
3054 3112
                     }
3055 3113
 
3056 3114
                     this.prescriptions.push(obj)
@@ -3409,12 +3467,16 @@ export default {
3409 3467
                         if(this.schedule.schedule_type == 1){
3410 3468
                           if(this.org_id == 10206  || this.org_id == 0 || this.org_id == 10598) {
3411 3469
                             preTime = this.record_date+ ' ' + '6:00'
3470
+                          }else if(this.org_id == 10721) {
3471
+                            preTime = this.record_date+ ' ' + '05:30'
3412 3472
                           }else {
3413 3473
                             preTime = this.record_date + ' ' + '7:00'
3414 3474
                           }
3415 3475
                         }else if(this.schedule.schedule_type == 2){
3416 3476
                           if(this.org_id == 10206  || this.org_id == 0){
3417 3477
                             preTime = this.record_date + ' ' + '10:30'
3478
+                          }else if(this.org_id == 10721) {
3479
+                            preTime = this.record_date+ ' ' + '10:00'
3418 3480
                           }else if(this.org_id == 10598){
3419 3481
                             preTime = this.record_date + ' ' + '09:00'
3420 3482
 
@@ -3572,12 +3634,18 @@ export default {
3572 3634
                         if(this.schedule.schedule_type == 1){
3573 3635
                           if(this.org_id == 10206  || this.org_id == 0 || this.org_id == 10598) {
3574 3636
                             preTime = this.record_date+ ' ' + '6:00'
3637
+                          }else if (this.org_id == 10721){
3638
+                            preTime = this.record_date+ ' ' + '05:30'
3639
+
3575 3640
                           }else {
3576 3641
                             preTime = this.record_date + ' ' + '7:00'
3577 3642
                           }
3578 3643
                         }else if(this.schedule.schedule_type == 2){
3579 3644
                           if(this.org_id == 10206  || this.org_id == 0){
3580 3645
                             preTime = this.record_date + ' ' + '10:30'
3646
+                          }else if (this.org_id == 10721){
3647
+                            preTime = this.record_date+ ' ' + '10:00'
3648
+
3581 3649
                           }else if(this.org_id == 10598){
3582 3650
                             preTime = this.record_date + ' ' + '09:00'
3583 3651
 
@@ -3613,6 +3681,10 @@ export default {
3613 3681
                         if (obj.med_type == 0 || obj.med_type == '') {
3614 3682
                           obj.med_type = 14
3615 3683
                         }
3684
+                        if (this.org_id == 10721){
3685
+
3686
+                          obj.med_type = 992102
3687
+                        }
3616 3688
                       }
3617 3689
                       this.prescriptions.push(obj)
3618 3690
                     }
@@ -3622,12 +3694,16 @@ export default {
3622 3694
                       if(this.schedule.schedule_type == 1){
3623 3695
                         if(this.org_id == 10206  || this.org_id == 0 || this.org_id == 10598) {
3624 3696
                           preTime = this.record_date+ ' ' + '6:00'
3697
+                        }else if(this.org_id == 10721) {
3698
+                          preTime = this.record_date+ ' ' + '05:30'
3625 3699
                         }else {
3626 3700
                           preTime = this.record_date + ' ' + '7:00'
3627 3701
                         }
3628 3702
                       }else if(this.schedule.schedule_type == 2){
3629 3703
                         if(this.org_id == 10206  || this.org_id == 0){
3630 3704
                           preTime = this.record_date + ' ' + '10:30'
3705
+                        }else if(this.org_id == 10721) {
3706
+                          preTime = this.record_date+ ' ' + '10:00'
3631 3707
                         }else if(this.org_id == 10598){
3632 3708
                           preTime = this.record_date + ' ' + '09:00'
3633 3709
 
@@ -3654,6 +3730,10 @@ export default {
3654 3730
                     }
3655 3731
                     if (this.org_id != 10206) {
3656 3732
                       obj.med_type = 14
3733
+                      if (this.org_id == 10721){
3734
+
3735
+                        obj.med_type = 992102
3736
+                      }
3657 3737
                     }
3658 3738
 
3659 3739
                     this.prescriptions.push(obj)
@@ -3998,12 +4078,18 @@ export default {
3998 4078
                       if(this.schedule.schedule_type == 1){
3999 4079
                         if(this.org_id == 10206  || this.org_id == 0 || this.org_id == 10598) {
4000 4080
                           preTime = this.record_date+ ' ' + '6:00'
4081
+                        }else if(this.org_id == 10721){
4082
+                          preTime = this.record_date+ ' ' + '05:30'
4083
+
4001 4084
                         }else {
4002 4085
                           preTime = this.record_date + ' ' + '7:00'
4003 4086
                         }
4004 4087
                       }else if(this.schedule.schedule_type == 2){
4005 4088
                         if(this.org_id == 10206  || this.org_id == 0){
4006 4089
                           preTime = this.record_date + ' ' + '10:30'
4090
+                        }else if(this.org_id == 10721){
4091
+                          preTime = this.record_date+ ' ' + '10:00'
4092
+
4007 4093
                         }else if(this.org_id == 10598){
4008 4094
                           preTime = this.record_date + ' ' + '09:00'
4009 4095
 
@@ -4160,12 +4246,16 @@ export default {
4160 4246
                       if(this.schedule.schedule_type == 1){
4161 4247
                         if(this.org_id == 10206  || this.org_id == 0 || this.org_id == 10598) {
4162 4248
                           preTime = this.record_date+ ' ' + '6:00'
4249
+                        }else if(this.org_id == 10721) {
4250
+                          preTime = this.record_date+ ' ' + '05:30'
4163 4251
                         }else {
4164 4252
                           preTime = this.record_date + ' ' + '7:00'
4165 4253
                         }
4166 4254
                       }else if(this.schedule.schedule_type == 2){
4167 4255
                         if(this.org_id == 10206  || this.org_id == 0){
4168 4256
                           preTime = this.record_date + ' ' + '10:30'
4257
+                        }else if(this.org_id == 10721) {
4258
+                          preTime = this.record_date+ ' ' + '10:00'
4169 4259
                         }else if(this.org_id == 10598){
4170 4260
                           preTime = this.record_date + ' ' + '09:00'
4171 4261
 
@@ -4202,6 +4292,10 @@ export default {
4202 4292
                         obj.med_type = 14
4203 4293
 
4204 4294
                       }
4295
+                      if (this.org_id == 10721){
4296
+
4297
+                        obj.med_type = 992102
4298
+                      }
4205 4299
                     }
4206 4300
                     this.prescriptions.push(obj)
4207 4301
                   }
@@ -4211,12 +4305,16 @@ export default {
4211 4305
                     if(this.schedule.schedule_type == 1){
4212 4306
                       if(this.org_id == 10206  || this.org_id == 0 || this.org_id == 10598) {
4213 4307
                         preTime = this.record_date+ ' ' + '6:00'
4308
+                      }else if(this.org_id == 10721) {
4309
+                        preTime = this.record_date+ ' ' + '05:30'
4214 4310
                       }else {
4215 4311
                         preTime = this.record_date + ' ' + '7:00'
4216 4312
                       }
4217 4313
                     }else if(this.schedule.schedule_type == 2){
4218 4314
                       if(this.org_id == 10206  || this.org_id == 0){
4219 4315
                         preTime = this.record_date + ' ' + '10:30'
4316
+                      }else if(this.org_id == 10721) {
4317
+                        preTime = this.record_date+ ' ' + '10:00'
4220 4318
                       }else if(this.org_id == 10598){
4221 4319
                         preTime = this.record_date + ' ' + '09:00'
4222 4320
 
@@ -4244,6 +4342,10 @@ export default {
4244 4342
 
4245 4343
                   if (this.org_id != 10206) {
4246 4344
                     obj.med_type = 14
4345
+                    if (this.org_id == 10721){
4346
+
4347
+                      obj.med_type = 992102
4348
+                    }
4247 4349
                   }
4248 4350
 
4249 4351
                   this.prescriptions.push(obj)
@@ -4676,6 +4778,10 @@ export default {
4676 4778
 
4677 4779
                             preTime = this.record_date + ' ' + '6:00'
4678 4780
 
4781
+                          } else if(this.org_id == 10721){
4782
+
4783
+                            preTime = this.record_date + ' ' + '05:30'
4784
+
4679 4785
                           } else {
4680 4786
                             preTime = this.record_date + ' ' + '7:00'
4681 4787
 
@@ -4688,6 +4794,9 @@ export default {
4688 4794
                           }else if(this.org_id == 10598){
4689 4795
                             preTime = this.record_date + ' ' + '09:00'
4690 4796
 
4797
+                          }else if(this.org_id == 10721){
4798
+                            preTime = this.record_date + ' ' + '10:00'
4799
+
4691 4800
                           }else {
4692 4801
                             preTime = this.record_date + ' ' + '11:00'
4693 4802
                           }
@@ -4710,12 +4819,18 @@ export default {
4710 4819
                           if(this.schedule.schedule_type == 1){
4711 4820
                             if(this.org_id == 10206  || this.org_id == 10598) {
4712 4821
                               preTime = this.record_date+ ' ' + '6:00'
4822
+                            }else if(this.org_id == 10721){
4823
+                              preTime = this.record_date + ' ' + '05:30'
4824
+
4713 4825
                             }else {
4714 4826
                               preTime = this.record_date + ' ' + '7:00'
4715 4827
                             }
4716 4828
                           }else if(this.schedule.schedule_type == 2){
4717 4829
                             if(this.org_id == 10206  || this.org_id == 0){
4718 4830
                               preTime = this.record_date + ' ' + '10:30'
4831
+                            }else if(this.org_id == 10721){
4832
+                              preTime = this.record_date + ' ' + '10:00'
4833
+
4719 4834
                             }else if(this.org_id == 10598){
4720 4835
                               preTime = this.record_date + ' ' + '09:00'
4721 4836
 
@@ -4880,6 +4995,8 @@ export default {
4880 4995
                             preTime = this.record_date + ' ' + '6:30'
4881 4996
                           } else if(this.org_id == 10206 || this.org_id == 10598){
4882 4997
                             preTime = this.record_date+ ' ' + '6:00'
4998
+                          } else if(this.org_id == 10721){
4999
+                            preTime = this.record_date+ ' ' + '05:30'
4883 5000
                           } else {
4884 5001
                             preTime = this.record_date + ' ' + '7:00'
4885 5002
                           }
@@ -4890,7 +5007,9 @@ export default {
4890 5007
                           }else if(this.org_id == 10598){
4891 5008
                             preTime = this.record_date + ' ' + '09:00'
4892 5009
 
4893
-                          }else{
5010
+                          }else if(this.org_id == 10721){
5011
+                            preTime = this.record_date+ ' ' + '10:00'
5012
+                          } else{
4894 5013
                             preTime = this.record_date + ' ' + '11:00'
4895 5014
                           }
4896 5015
                         } else if (this.schedule.schedule_type == 3) {
@@ -4905,6 +5024,8 @@ export default {
4905 5024
                         if(this.schedule.schedule_type == 1){
4906 5025
                           if(this.org_id == 10206  || this.org_id == 0 || this.org_id == 10598) {
4907 5026
                             preTime = this.record_date+ ' ' + '6:00'
5027
+                          } else if(this.org_id == 10721){
5028
+                            preTime = this.record_date+ ' ' + '05:30'
4908 5029
                           }else {
4909 5030
                             preTime = this.record_date + ' ' + '7:00'
4910 5031
                           }
@@ -4914,6 +5035,8 @@ export default {
4914 5035
                           }else if(this.org_id == 10598){
4915 5036
                             preTime = this.record_date + ' ' + '09:00'
4916 5037
 
5038
+                          }else if(this.org_id == 10721){
5039
+                            preTime = this.record_date+ ' ' + '10:00'
4917 5040
                           }else {
4918 5041
                             preTime = this.record_date + ' ' + '11:00'
4919 5042
                           }
@@ -4944,10 +5067,15 @@ export default {
4944 5067
                           obj.med_type = parseInt(prescription.med_type)
4945 5068
                         }
4946 5069
                         if (obj.med_type == 0 || obj.med_type == '') {
4947
-
4948 5070
                           obj.med_type = 14
5071
+                        }
5072
+                        if (this.org_id == 10721){
4949 5073
 
5074
+                          obj.med_type = 992102
4950 5075
                         }
5076
+
5077
+
5078
+
4951 5079
                       }else{
4952 5080
                         obj.med_type = parseInt(prescription.med_type)
4953 5081
                         if (obj.med_type == 0 || obj.med_type == '') {
@@ -4963,6 +5091,8 @@ export default {
4963 5091
                       if(this.schedule.schedule_type == 1){
4964 5092
                         if(this.org_id == 10206  || this.org_id == 0 || this.org_id == 10598) {
4965 5093
                           preTime = this.record_date+ ' ' + '6:00'
5094
+                        }else if(this.org_id == 10721){
5095
+                          preTime = this.record_date+ ' ' + '05:30'
4966 5096
                         }else {
4967 5097
                           preTime = this.record_date + ' ' + '7:00'
4968 5098
                         }
@@ -4972,6 +5102,8 @@ export default {
4972 5102
                         }else if(this.org_id == 10598){
4973 5103
                           preTime = this.record_date + ' ' + '09:00'
4974 5104
 
5105
+                        }else if(this.org_id == 10721){
5106
+                          preTime = this.record_date+ ' ' + '10:00'
4975 5107
                         }else {
4976 5108
                           preTime = this.record_date + ' ' + '11:00'
4977 5109
                         }
@@ -4996,6 +5128,10 @@ export default {
4996 5128
                     }
4997 5129
                     if (this.org_id != 10206) {
4998 5130
                       obj.med_type = 14
5131
+                      if (this.org_id == 10721){
5132
+
5133
+                        obj.med_type = 992102
5134
+                      }
4999 5135
                     }else{
5000 5136
                       obj.med_type = 1
5001 5137
                     }
@@ -5329,7 +5465,9 @@ export default {
5329 5465
                             preTime = this.record_date + ' ' + '6:30'
5330 5466
                           } else if(this.org_id == 10206 || this.org_id == 10598){
5331 5467
                             preTime = this.record_date + ' ' + '6:00'
5332
-                          } else {
5468
+                          } else if(this.org_id == 10721){
5469
+                            preTime = this.record_date+ ' ' + '05:30'
5470
+                          }else {
5333 5471
                             preTime = this.record_date + ' ' + '7:00'
5334 5472
                           }
5335 5473
                           // preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '7:00'
@@ -5339,6 +5477,8 @@ export default {
5339 5477
                           }else if(this.org_id == 10598){
5340 5478
                             preTime = this.record_date + ' ' + '09:00'
5341 5479
 
5480
+                          }else if(this.org_id == 10721){
5481
+                            preTime = this.record_date+ ' ' + '10:00'
5342 5482
                           }else{
5343 5483
                             preTime = this.record_date + ' ' + '11:00'
5344 5484
 
@@ -5361,6 +5501,8 @@ export default {
5361 5501
                           if(this.schedule.schedule_type == 1){
5362 5502
                             if(this.org_id == 10206  || this.org_id == 0 || this.org_id == 10598) {
5363 5503
                               preTime = this.record_date+ ' ' + '6:00'
5504
+                            }else if(this.org_id == 10721){
5505
+                              preTime = this.record_date+ ' ' + '05:30'
5364 5506
                             }else {
5365 5507
                               preTime = this.record_date + ' ' + '7:00'
5366 5508
                             }
@@ -5370,6 +5512,8 @@ export default {
5370 5512
                             }else if(this.org_id == 10598){
5371 5513
                               preTime = this.record_date + ' ' + '09:00'
5372 5514
 
5515
+                            }else if(this.org_id == 10721){
5516
+                              preTime = this.record_date+ ' ' + '10:00'
5373 5517
                             }else {
5374 5518
                               preTime = this.record_date + ' ' + '11:00'
5375 5519
                             }
@@ -5531,7 +5675,9 @@ export default {
5531 5675
                             preTime = this.record_date + ' ' + '6:30'
5532 5676
                           } else if(this.org_id == 10206 || this.org_id == 10598){
5533 5677
                             preTime = this.record_date + ' ' + '6:00'
5534
-                          } else {
5678
+                          } else if(this.org_id == 10721){
5679
+                            preTime = this.record_date+ ' ' + '05:30'
5680
+                          }else {
5535 5681
                             preTime = this.record_date + ' ' + '7:00'
5536 5682
                           }
5537 5683
                           // preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '7:00'
@@ -5542,6 +5688,8 @@ export default {
5542 5688
                           }else if(this.org_id == 10598){
5543 5689
                             preTime = this.record_date + ' ' + '09:00'
5544 5690
 
5691
+                          }else if(this.org_id == 10721){
5692
+                            preTime = this.record_date+ ' ' + '10:00'
5545 5693
                           }else{
5546 5694
                             preTime = this.record_date + ' ' + '11:00'
5547 5695
                           }
@@ -5557,12 +5705,16 @@ export default {
5557 5705
                         if(this.schedule.schedule_type == 1){
5558 5706
                           if(this.org_id == 10206  || this.org_id == 0 || this.org_id == 10598) {
5559 5707
                             preTime = this.record_date+ ' ' + '6:00'
5708
+                          }else if(this.org_id == 10721){
5709
+                            preTime = this.record_date+ ' ' + '05:30'
5560 5710
                           }else {
5561 5711
                             preTime = this.record_date + ' ' + '7:00'
5562 5712
                           }
5563 5713
                         }else if(this.schedule.schedule_type == 2){
5564 5714
                           if(this.org_id == 10206  || this.org_id == 0){
5565 5715
                             preTime = this.record_date + ' ' + '10:30'
5716
+                          }else if(this.org_id == 10721){
5717
+                            preTime = this.record_date+ ' ' + '10:00'
5566 5718
                           }else if(this.org_id == 10598){
5567 5719
                             preTime = this.record_date + ' ' + '09:00'
5568 5720
 
@@ -5599,6 +5751,10 @@ export default {
5599 5751
                           obj.med_type = 14
5600 5752
 
5601 5753
                         }
5754
+                        if (this.org_id == 10721){
5755
+
5756
+                          obj.med_type = 992102
5757
+                        }
5602 5758
                       }else{
5603 5759
                         obj.med_type = parseInt(prescription.med_type)
5604 5760
                         if (obj.med_type == 0 || obj.med_type == '') {
@@ -5614,12 +5770,18 @@ export default {
5614 5770
                       if(this.schedule.schedule_type == 1){
5615 5771
                         if(this.org_id == 10206  || this.org_id == 0 || this.org_id == 10598) {
5616 5772
                           preTime = this.record_date+ ' ' + '6:00'
5773
+                        }else if(this.org_id == 10721){
5774
+                          preTime = this.record_date + ' ' + '05:30'
5775
+
5617 5776
                         }else {
5618 5777
                           preTime = this.record_date + ' ' + '7:00'
5619 5778
                         }
5620 5779
                       }else if(this.schedule.schedule_type == 2){
5621 5780
                         if(this.org_id == 10206  || this.org_id == 0){
5622 5781
                           preTime = this.record_date + ' ' + '10:30'
5782
+                        }else if(this.org_id == 10721){
5783
+                          preTime = this.record_date + ' ' + '10:00'
5784
+
5623 5785
                         }else if(this.org_id == 10598){
5624 5786
                           preTime = this.record_date + ' ' + '09:00'
5625 5787
 
@@ -5649,6 +5811,10 @@ export default {
5649 5811
                     if (this.org_id != 10206 && this.org_id != 0) {
5650 5812
 
5651 5813
                       obj.med_type = 14
5814
+                      if (this.org_id == 10721){
5815
+
5816
+                        obj.med_type = 992102
5817
+                      }
5652 5818
                     }else{
5653 5819
 
5654 5820
                       obj.med_type = 1
@@ -5836,16 +6002,16 @@ export default {
5836 6002
     },
5837 6003
 
5838 6004
     getPrescriptionList(id, record_date, type, checkType) {
5839
-      
6005
+
5840 6006
       getPrescriptionList(id, 2, record_date).then(response => {
5841 6007
         console.log('123456response.data.data',response.data.data,checkType);
5842 6008
         if (response.data.state == 1) {
5843
-          
6009
+
5844 6010
           if (checkType != 3) {
5845 6011
             this.centerDialogVisible = true
5846 6012
             var list = response.data.data.list
5847
-           
5848
-            
6013
+
6014
+
5849 6015
             let arr1 = []
5850 6016
             let arr2 = []
5851 6017
             let arr3 = []

+ 19 - 2
src/xt_pages/user/coursePrint.vue Wyświetl plik

@@ -27,7 +27,7 @@
27 27
 
28 28
             <div style="flex:1;text-align: center;" v-if="org_id == 9671 || org_id == 10215" >
29 29
               病案号:
30
-              <div  style="width: 120px;text-align: left;display:inline-block;">
30
+              <div  style="width: 240px;text-align: left;display:inline-block;">
31 31
                 {{patient.dialysis_no?patient.dialysis_no:"/"}}
32 32
               </div>
33 33
             </div>
@@ -62,13 +62,20 @@
62 62
               </div>
63 63
             </div>
64 64
 
65
-            <div style="flex:1;text-align: center;" >
65
+            <div style="flex:1;text-align: center;" v-if="org_id!=10206 && org_id!=0">
66 66
               年龄:
67 67
               <div  style="text-align: left;display:inline-block;">
68 68
                 {{patient.age}}
69 69
               </div>
70 70
             </div>
71 71
 
72
+            <div style="flex:1.5;text-align: center;" v-if="org_id==10206 || org_id == 0">
73
+              出生日期:
74
+              <div  style="text-align: left;display:inline-block;">
75
+                 {{  getTime(patient.birthday, '{y}-{m}-{d}') }}
76
+              </div>
77
+            </div>
78
+
72 79
             <div style="flex:1.5;text-align: left;" >
73 80
               日期:
74 81
               <div style="text-align: left;display:inline-block;" >
@@ -182,6 +189,16 @@
182 189
       })
183 190
     },
184 191
     methods: {
192
+      getIdCard(idCard) {
193
+        
194
+        console.log("idCard-----------",idCard)
195
+        const year = idCard.substring(6, 10);
196
+        const month = idCard.substring(10, 12);
197
+        const day = idCard.substring(12, 14);
198
+      
199
+        return year - month - day 
200
+        
201
+      },
185 202
       printAction: function() {
186 203
         const style1 = '@media print{.print_page_main_content:background-color: white;}'
187 204
       // const style = '@media print {.printP div{margin-bottom:5px;} .option_panel { margin: 0 5px 0 0; } .option_panel .check_box_panel { white-space: nowrap; outline: none; display: inline-block; line-height: 1; position: relative; vertical-align: middle; } .dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px}.option_panel .check_box_panel .check_box { display: inline-block; position: relative; border: 1px solid #000; box-sizing: border-box; width: 14px; height: 12px; background-color: #fff; } .check_box_panel .did_checked::after { content: "√"; font-size: 15px; } .print_page_main_content {background-color: white;width: 960px;margin: 0 auto 50px;padding: 0 0 0 0; }.print_page_main_content .order-yy-name {margin: auto;text-align: center;font-size: 20px;letter-spacing: 5px;}.print_page_main_content .order_title {text-align: center;font-size: 23px; line-height: 50px;font-weight: 500;} .row {font-size: 20px;line-height: 20px;padding: 5px 0;}.inline_block { display: inline-block;}.under_line_two {display: inline-block;border-bottom: 1px solid #999;text-align: left;white-space: nowrap;width: 50%;}.under_line {display: inline-block;border-bottom: 1px solid #999;text-align: center;white-space: nowrap; width: 50%;}.flex {display: -webkit-box;display: -moz-box; display: -ms-flexbox; display: -webkit-flex;display: flex;align-items: center;-webkit-align-items: center;box-align: center;-moz-box-align: center;-webkit-box-align: center;text-align: center;-webkit-justify-content: space-between;justify-content: space-between;-moz-box-pack: space-between;-webkit--moz-box-pack: space-between;box-pack: space-between;}.print_page_main_content .proj_table {width: 100%;border: 1px solid;border-collapse: collapse;padding: 2px;}.print_page_main_content .proj_table tbody tr td {border: 1px solid;font-size: 16px;padding: 5px 8px;line-height: 30px;}.print_page_main_content .proj_table .inside_table {width: 100%;border: hidden; border-collapse: collapse;}.print_page_main_content .proj_table .inside_table tr td {border: 1px solid; text-align: center;font-size: 14px;padding: 6px 5px;line-height: 16px;}.print-table-no {width: 100%;text-align: center;border-collapse: collapse;font-size: 14px;}.es-img {height: 30px;}.advice-name {text-align: left !important;line-height: 16px !important;}.advice-children {display: flex;}}.margin-bottom-300 {margin-bottom:450px;}.margin-bottom-600 {margin-bottom:600px;}.margin-bottom-900 {margin-bottom:1000px;}.print-yema{ position: absolute;top: 920px;left: 50%;} .print-yema2{ position: absolute;top: 400px;left: 50%;}.print-yema3{position: absolute;top: 1230px;left: 50%;}.print-yema4{position: absolute;top:1050px;left: 50%;}.print-yema5{position: absolute;top:1370px;left: 50%;}.check_box{width:15px !important;height:15px !important;}.did_checke::after {font-size: 8px;margin-left: 2px;margin-top: 12px !important;position: absolute;}'

+ 2 - 2
src/xt_pages/workforce/next_remind_print.vue Wyświetl plik

@@ -35,7 +35,7 @@
35 35
                   <td width="100" v-if="printObj.dialyzers == 1 && printObj.perfusion_apparatus == 1">透析器/灌流器</td>
36 36
                   <td width="120" v-if="printObj.anticoagulant==1">抗凝剂(商品名称)</td>
37 37
                   <td width="100" v-if="printObj.anticoagulant_zongliang == 1">总量</td>
38
-                  <td width="100" >血管通路</td>
38
+                  <td width="100" v-if="org_id!=10723">血管通路</td>
39 39
                   <td width="" v-if="org_id == 0 || org_id ==10567">管路</td>
40 40
                   <td width="300" v-if="printObj.doctor_advice == 1">长期医嘱</td>
41 41
                 </tr>
@@ -96,7 +96,7 @@
96 96
                   <span v-if="main_collection.dialysissolution.anticoagulant == 10">{{main_collection.dialysissolution.anticoagulant_zongliang?main_collection.dialysissolution.anticoagulant_zongliang+'iu':''}}</span>
97 97
                   <span v-if="main_collection.dialysissolution.anticoagulant == 11">{{main_collection.dialysissolution.anticoagulant_zongliang?main_collection.dialysissolution.anticoagulant_zongliang+'iu':''}}</span>
98 98
                 </td>
99
-                <td :width="td_1_width">
99
+                <td :width="td_1_width" v-if="org_id!=10723">
100 100
                   <span>{{getBloodName(main_collection.dialysissolution.blood_access)  }}</span>
101 101
                 </td>
102 102
                 <td v-if="org_id == 0 || org_id ==10567">

+ 2 - 2
src/xt_pages/workforce/remind_print.vue Wyświetl plik

@@ -36,7 +36,7 @@
36 36
                   <td width="30" v-if="printObj.anticoagulant_zongliang == 1">首剂</td>
37 37
                   <td width="30" v-if="printObj.anticoagulant_zongliang == 1">维持</td>
38 38
                   <td width="30" v-if="printObj.anticoagulant_zongliang == 1">总量</td>
39
-                  <td width="">血管通路</td>
39
+                  <td width="" v-if="org_id!=10723">血管通路</td>
40 40
                   <td width="" v-if="org_id ==10567">管路</td>
41 41
                   <td width="300" v-if="printObj.doctor_advice == 1">长期医嘱</td>
42 42
                 </tr>
@@ -123,7 +123,7 @@
123 123
                   <span v-if="main_collection.dialysissolution.anticoagulant == 10">{{main_collection.dialysissolution.anticoagulant_zongliang?main_collection.dialysissolution.anticoagulant_zongliang+'iu':''}}</span>
124 124
                   <span v-if="main_collection.dialysissolution.anticoagulant == 11">{{main_collection.dialysissolution.anticoagulant_zongliang?main_collection.dialysissolution.anticoagulant_zongliang+'iu':''}}</span>
125 125
                 </td>
126
-                <td >
126
+                <td v-if="org_id!=10723">
127 127
                    <span>{{getBloodName(main_collection.prescription.blood_access)  }}</span>
128 128
                 </td>
129 129
                 <td v-if="org_id ==10567">