소스 검색

批量打印

XMLWAN 4 년 전
부모
커밋
328b6be20a

+ 23 - 61
src/xt_pages/outpatientDoctorStation/template/printOne.vue 파일 보기

1
 <template>
1
 <template>
2
-  <div>
3
-    <div id='prescription-print' class="prescription-print"  v-for="(item,index) in advicePrint" :key="index">
4
-        <div class="printTitle">血液透析中心处方笺</div>
5
-        <div class="infoTitle">
6
-            <p>姓名:{{item.patient.name?item.patient.name:""}}</p>
7
-            <p>性别:
8
-               <span v-if="item.patient.gender == 1">男</span>
9
-               <span v-if="item.patient.gender == 2">女</span>
10
-            </p>
11
-            <p>年龄:{{item.patient.age?item.patient.age:""}}岁</p>
12
-        </div>
13
-        <div class="infoMain">
14
-            <div style="margin-bottom: 10px;">门诊号:{{item.hisPatient.number?item.hisPatient.number:""}}</div>
15
-            <div style="margin-bottom: 10px;">科室:{{getDepart(item.hisPatient.departments?item.hisPatient.departments:"")}}</div>
16
-            <div style="margin-bottom: 10px;">医保卡号:{{item.hisPatient.number?item.hisPatient.number:""}}</div>
17
-            <div style="margin-bottom: 10px;">电话:{{item.patient.phone}}</div>
18
-            <div>地址:{{item.patient.home_address}}</div>
19
-            <div style="display:flex;width:50%;">临床诊断:{{item.patient.diagnose}}</div>
20
-        </div>
21
-        <div class="prescriptionBox">
22
-            <div class="Rp">Rp:</div>
23
-            <div class="drugsBox" v-for="(it,index) in item.advices" :key="index">
24
-                <div class="drugsOne">{{it.advice_name?it.advice_name:""}}&nbsp;&nbsp;{{it.single_dose}}{{it.single_dose_unit}}&nbsp;×&nbsp; {{it.prescribing_number}}{{it.prescribing_number_unit}}</div>
25
-                <div style="margin-left:100px;"><span>用法:{{it.single_dose}}{{it.single_dose_unit}}</span>&nbsp;&nbsp;<span>{{it.execution_frequency}}</span>&nbsp;&nbsp;<span>{{it.advice_desc}}</span></div>
26
-            </div>
27
-            <div class="drugsBox" v-for="(it,i) in item.additionalcharge" :key="i">
28
-                <div class="drugsOne">{{it.item_name?it.item_name:""}}:&nbsp;{{it.price}}元/{{it.count}}次</div>
29
-            </div>
30
-        </div>
31
-        <div class="doctorBox">
32
-            <p>医师:{{item.doctor?item.doctor:""}}</p>
33
-            <p>日期:{{getTime(item.ctime)?getTime(item.ctime):""}}</p>
34
-        </div>
35
-        <div class="actionBar">
36
-            <p>审核:{{getDoctor(item.advices[0].checker)?getDoctor(item.advices[0].checker):""}}</p>
37
-            <p>配对:{{getDoctor(item.advices[0].advice_doctor)?getDoctor(item.advices[0].advice_doctor):""}}</p>
38
-            <p>核对:{{getDoctor(item.advices[0].checker)?getDoctor(item.advices[0].checker):""}}</p>
39
-            <p>发药:{{getDoctor(item.advices[0].execution_staff)?getDoctor(item.advices[0].execution_staff):""}}</p>
40
-            <p>药费:{{getTotalOne(item.id)?getTotalOne(item.id):0}}元</p>
41
-        </div>
42
   <div id='prescriptionPrint'>
2
   <div id='prescriptionPrint'>
43
     <div v-for="(item,index) in advicePrint" :key="index">
3
     <div v-for="(item,index) in advicePrint" :key="index">
44
       <div id='prescription-print' class="prescription-print" style="page-break-after: always;">
4
       <div id='prescription-print' class="prescription-print" style="page-break-after: always;">
65
                   <div class="drugsOne">{{it.advice_name?it.advice_name:""}}&nbsp;&nbsp;{{it.single_dose}}{{it.single_dose_unit}}&nbsp;×&nbsp; {{it.prescribing_number}}{{it.prescribing_number_unit}}</div>
25
                   <div class="drugsOne">{{it.advice_name?it.advice_name:""}}&nbsp;&nbsp;{{it.single_dose}}{{it.single_dose_unit}}&nbsp;×&nbsp; {{it.prescribing_number}}{{it.prescribing_number_unit}}</div>
66
                   <div style="margin-left:100px;"><span>用法:{{it.single_dose}}{{it.single_dose_unit}}</span>&nbsp;&nbsp;<span>{{it.execution_frequency}}</span>&nbsp;&nbsp;<span>{{it.advice_desc}}</span></div>
26
                   <div style="margin-left:100px;"><span>用法:{{it.single_dose}}{{it.single_dose_unit}}</span>&nbsp;&nbsp;<span>{{it.execution_frequency}}</span>&nbsp;&nbsp;<span>{{it.advice_desc}}</span></div>
67
               </div>
27
               </div>
28
+              <div class="drugsBox" v-for="(it,i) in item.additionalcharge" :key="i">
29
+                <div class="drugsOne">{{it.item_name?it.item_name:""}}:&nbsp;{{it.price}}元/{{it.count}}次</div>
30
+               </div>
31
+
68
           </div>
32
           </div>
69
           <div class="doctorBox">
33
           <div class="doctorBox">
70
               <p>医师:{{getDoctor(item.doctor)?getDoctor(item.doctor):""}}</p>
34
               <p>医师:{{getDoctor(item.doctor)?getDoctor(item.doctor):""}}</p>
71
               <p>日期:{{getTime(item.ctime)?getTime(item.ctime):""}}</p>
35
               <p>日期:{{getTime(item.ctime)?getTime(item.ctime):""}}</p>
72
           </div>
36
           </div>
73
           <div class="actionBar">
37
           <div class="actionBar">
74
-              <p>审核:{{getDoctor(item.advices[0].checker)?getDoctor(item.advices[0].checker):""}}</p>
75
-              <p>配对:{{getDoctor(item.doctor)?getDoctor(item.doctor):""}}</p>
76
-              <p>核对:{{getDoctor(item.advices[0].checker)?getDoctor(item.advices[0].checker):""}}</p>
77
-              <p>发药:{{getDoctor(item.advices[0].execution_staff)?getDoctor(item.advices[0].execution_staff):""}}</p>
78
-              <p>药费:</p>
38
+                 <p>审核:{{getDoctor(item.advices[0].checker)?getDoctor(item.advices[0].checker):""}}</p>
39
+                 <p>配对:{{getDoctor(item.advices[0].advice_doctor)?getDoctor(item.advices[0].advice_doctor):""}}</p>
40
+                 <p>核对:{{getDoctor(item.advices[0].checker)?getDoctor(item.advices[0].checker):""}}</p>
41
+                 <p>发药:{{getDoctor(item.advices[0].execution_staff)?getDoctor(item.advices[0].execution_staff):""}}</p>
42
+                 <p>药费:{{getTotalOne(item.id)?getTotalOne(item.id):0}}元</p>
79
           </div>
43
           </div>
80
           <div style="page-break-after:always"></div>
44
           <div style="page-break-after:always"></div>
81
       </div>
45
       </div>
82
     </div>
46
     </div>
83
-
47
+    
84
   </div>
48
   </div>
85
 
49
 
86
-
50
+    
87
 </template>
51
 </template>
88
 <script>
52
 <script>
89
 import { jsGetAge, uParseTime } from '@/utils/tools'
53
 import { jsGetAge, uParseTime } from '@/utils/tools'
94
       patient_id:Number,
58
       patient_id:Number,
95
       record_date:String,
59
       record_date:String,
96
       prescription_id:Number
60
       prescription_id:Number
97
-    },
61
+    }, 
98
     data(){
62
     data(){
99
       return {
63
       return {
100
         doctorList:[],
64
         doctorList:[],
105
         hisPatient:{},
69
         hisPatient:{},
106
         department:[],
70
         department:[],
107
         prescriptions:[]
71
         prescriptions:[]
72
+
108
       }
73
       }
109
     },
74
     },
110
    methods:{
75
    methods:{
111
-
76
+     
112
      getAllDoctorList(){
77
      getAllDoctorList(){
113
       getAllDoctorList().then(response=>{
78
       getAllDoctorList().then(response=>{
114
         if(response.data.state == 1){
79
         if(response.data.state == 1){
115
                var doctor =  response.data.data.doctor
80
                var doctor =  response.data.data.doctor
116
-               console.log("医生列表数据",doctor)
81
+               
117
                this.doctorList = doctor
82
                this.doctorList = doctor
118
              }
83
              }
119
-         })
84
+         })   
120
      },
85
      },
121
 
86
 
122
       getDoctor(id){
87
       getDoctor(id){
144
           prescription_id:this.$route.query.prescription_id,
109
           prescription_id:this.$route.query.prescription_id,
145
           ids:this.$route.query.ids
110
           ids:this.$route.query.ids
146
         }
111
         }
147
-        console.log("params---",params)
112
+        console.log("params",params)
148
        getPrescriptionPrint(params).then(response=>{
113
        getPrescriptionPrint(params).then(response=>{
149
          if(response.data.state == 1){
114
          if(response.data.state == 1){
150
             var advicePrint =  response.data.data.advicePrint
115
             var advicePrint =  response.data.data.advicePrint
151
             console.log("adviceprint9999",advicePrint)
116
             console.log("adviceprint9999",advicePrint)
152
             this.advicePrint = advicePrint
117
             this.advicePrint = advicePrint
153
             this.prescriptions = advicePrint
118
             this.prescriptions = advicePrint
154
-
155
           }
119
           }
156
        })
120
        })
157
      },
121
      },
171
        getInitData().then(response=>{
135
        getInitData().then(response=>{
172
           if(response.data.state == 1){
136
           if(response.data.state == 1){
173
             this.department = response.data.data.department
137
             this.department = response.data.data.department
174
-
138
+           
175
           }
139
           }
176
        })
140
        })
177
      },
141
      },
184
        }
148
        }
185
        return name
149
        return name
186
      },
150
      },
187
-
188
      getTotalOne(id) {
151
      getTotalOne(id) {
189
-
152
+        
190
         var total = 0
153
         var total = 0
191
         var addtotal = 0
154
         var addtotal = 0
192
         for (let i = 0; i < this.prescriptions.length; i++) {
155
         for (let i = 0; i < this.prescriptions.length; i++) {
196
                 total = total + this.prescriptions[i].advices[a].price * this.prescriptions[i].advices[a].prescribing_number
159
                 total = total + this.prescriptions[i].advices[a].price * this.prescriptions[i].advices[a].prescribing_number
197
               }
160
               }
198
             }
161
             }
199
-
162
+          
200
             if (this.prescriptions[i].additionalcharge != null) {
163
             if (this.prescriptions[i].additionalcharge != null) {
201
               for (let a = 0; a < this.prescriptions[i].additionalcharge.length; a++) {
164
               for (let a = 0; a < this.prescriptions[i].additionalcharge.length; a++) {
202
                 addtotal = addtotal + this.prescriptions[i].additionalcharge[a].price * this.prescriptions[i].additionalcharge[a].count
165
                 addtotal = addtotal + this.prescriptions[i].additionalcharge[a].price * this.prescriptions[i].additionalcharge[a].count
206
         }
169
         }
207
         return total + addtotal
170
         return total + addtotal
208
        }
171
        }
209
-      },
210
-
172
+      }, 
211
 
173
 
212
 
174
 
213
    },
175
    },
217
       this.getPrescriptionPrint()
179
       this.getPrescriptionPrint()
218
       this.getHisPatientDetail()
180
       this.getHisPatientDetail()
219
 
181
 
220
-
182
+     
221
    },
183
    },
222
   //  watch:{
184
   //  watch:{
223
   //    patient_id:function(val){
185
   //    patient_id:function(val){
286
 }
248
 }
287
 .actionBar{
249
 .actionBar{
288
     display: flex;
250
     display: flex;
289
-    justify-content: space-between;
251
+    justify-content: space-between; 
290
     line-height: 24px;
252
     line-height: 24px;
291
     padding:0 10px;
253
     padding:0 10px;
292
 }
254
 }

+ 20 - 0
src/xt_pages/outpatientDoctorStation/treatTemplate/printOne.vue 파일 보기

1
 <template>
1
 <template>
2
    <div>
2
    <div>
3
     <div id='prescription-print' class="prescription-print" v-for="(item,index) in advicePrint" :key="index">
3
     <div id='prescription-print' class="prescription-print" v-for="(item,index) in advicePrint" :key="index">
4
+
4
         <div style="display:flex;justify-content: space-between;font-weight:bold;">
5
         <div style="display:flex;justify-content: space-between;font-weight:bold;">
5
             <p style="width:300px;display:flex;justify-content: space-between;font-weight:bold;">
6
             <p style="width:300px;display:flex;justify-content: space-between;font-weight:bold;">
6
                 <span>费别</span>
7
                 <span>费别</span>
11
             </p>
12
             </p>
12
             <p>就诊日期:{{getTime(item.ctime)}}</p>
13
             <p>就诊日期:{{getTime(item.ctime)}}</p>
13
         </div>
14
         </div>
15
+
14
         <div class="printTitle">血液透析中心</div>
16
         <div class="printTitle">血液透析中心</div>
17
+
15
         <div class="printTitle">处方、治疗单</div>
18
         <div class="printTitle">处方、治疗单</div>
19
+
16
         <div class="infoTitle">
20
         <div class="infoTitle">
17
             <p>门诊编号:</p>
21
             <p>门诊编号:</p>
18
             <p>电脑号:</p>
22
             <p>电脑号:</p>
19
         </div>
23
         </div>
24
+
20
         <div class="infoMain">
25
         <div class="infoMain">
21
             <p style="margin-bottom: 10px;width:25%">姓名:{{item.patient.name}}</p>
26
             <p style="margin-bottom: 10px;width:25%">姓名:{{item.patient.name}}</p>
22
             <p style="margin-bottom: 10px;width:25%">性别:
27
             <p style="margin-bottom: 10px;width:25%">性别:
31
             <p style="width:50%;">地址:{{item.patient.unit_address}}</p>
36
             <p style="width:50%;">地址:{{item.patient.unit_address}}</p>
32
             <p style="width:50%;">诊断:{{item.patient.diagnose}}</p>
37
             <p style="width:50%;">诊断:{{item.patient.diagnose}}</p>
33
         </div>
38
         </div>
39
+
34
         <div class="prescriptionBox">
40
         <div class="prescriptionBox">
35
             <table style="width:100%;text-align:center;line-height:25px;">
41
             <table style="width:100%;text-align:center;line-height:25px;">
36
                 <tr>
42
                 <tr>
56
                 </tr>
62
                 </tr>
57
             </table>
63
             </table>
58
         </div>
64
         </div>
65
+
59
         <div class="infoTitle">
66
         <div class="infoTitle">
60
             <p>开单医生:{{item.doctor?item.doctor:""}}</p>
67
             <p>开单医生:{{item.doctor?item.doctor:""}}</p>
61
             <p>签章:</p>
68
             <p>签章:</p>
62
         </div>
69
         </div>
70
+
63
         <div class="actionBar">
71
         <div class="actionBar">
64
             <p>执行医生:{{item.doctor?item.doctor:""}}</p>
72
             <p>执行医生:{{item.doctor?item.doctor:""}}</p>
65
             <p>费用:{{getTotalOne(item.id)?getTotalOne(item.id):''}}元</p>
73
             <p>费用:{{getTotalOne(item.id)?getTotalOne(item.id):''}}元</p>
66
         </div>
74
         </div>
75
+
67
         <table style="width:100%;text-align:center;line-height:25px;border-collapse: collapse;" border="1">
76
         <table style="width:100%;text-align:center;line-height:25px;border-collapse: collapse;" border="1">
68
             <tr>
77
             <tr>
69
                 <td style="width:16%;">治疗时间</td>
78
                 <td style="width:16%;">治疗时间</td>
91
             </tr>
100
             </tr>
92
         </table>
101
         </table>
93
      </div>
102
      </div>
103
+
104
+
94
     <div id='prescriptionPrint'>
105
     <div id='prescriptionPrint'>
106
+
95
         <div v-for="(item,index) in advicePrint" :key="index">
107
         <div v-for="(item,index) in advicePrint" :key="index">
96
             <div id='prescription-print' class="prescription-print" style="page-break-after: always;">
108
             <div id='prescription-print' class="prescription-print" style="page-break-after: always;">
97
                 <div style="display:flex;justify-content: space-between;font-weight:bold;">
109
                 <div style="display:flex;justify-content: space-between;font-weight:bold;">
104
                     </div>
116
                     </div>
105
                     <div>就诊日期:{{getTime(item.ctime)}}</div>
117
                     <div>就诊日期:{{getTime(item.ctime)}}</div>
106
                 </div>
118
                 </div>
119
+
107
                 <div class="printTitle">血液透析中心</div>
120
                 <div class="printTitle">血液透析中心</div>
121
+
108
                 <div class="printTitle">处方、治疗单</div>
122
                 <div class="printTitle">处方、治疗单</div>
123
+
109
                 <div class="infoTitle">
124
                 <div class="infoTitle">
110
                     <div>门诊编号:</div>
125
                     <div>门诊编号:</div>
111
                     <div>电脑号:</div>
126
                     <div>电脑号:</div>
112
                 </div>
127
                 </div>
128
+
113
                 <div class="infoMain">
129
                 <div class="infoMain">
114
                     <div style="margin-bottom: 10px;width:25%">姓名:{{item.patient.name}}</div>
130
                     <div style="margin-bottom: 10px;width:25%">姓名:{{item.patient.name}}</div>
115
                     <div style="margin-bottom: 10px;width:25%">性别:
131
                     <div style="margin-bottom: 10px;width:25%">性别:
124
                     <div style="width:50%;">地址:{{item.patient.unit_address}}</div>
140
                     <div style="width:50%;">地址:{{item.patient.unit_address}}</div>
125
                     <div style="width:100%;">诊断:{{item.patient.diagnose}}</div>
141
                     <div style="width:100%;">诊断:{{item.patient.diagnose}}</div>
126
                 </div>
142
                 </div>
143
+                
127
                 <div class="prescriptionBox">
144
                 <div class="prescriptionBox">
128
                     <table style="width:100%;text-align:center;line-height:25px;">
145
                     <table style="width:100%;text-align:center;line-height:25px;">
129
                         <tr>
146
                         <tr>
184
                     </tr>
201
                     </tr>
185
                 </table>
202
                 </table>
186
             </div>
203
             </div>
204
+
187
         </div>
205
         </div>
206
+
188
     </div>
207
     </div>
208
+  </div>
189
 </template>
209
 </template>
190
 <script>
210
 <script>
191
 import { jsGetAge, uParseTime } from '@/utils/tools'
211
 import { jsGetAge, uParseTime } from '@/utils/tools'

+ 1 - 0
src/xt_pages/workforce/components/tableData.vue 파일 보기

733
   watch: {
733
   watch: {
734
     weekTime: function() {
734
     weekTime: function() {
735
       var theType = this.weekType(this.weekTime);
735
       var theType = this.weekType(this.weekTime);
736
+      console.log("999999999",theType)
736
       this.getSchedules(theType);
737
       this.getSchedules(theType);
737
     },
738
     },
738
     scheduleZoneRow: function() {
739
     scheduleZoneRow: function() {

+ 5 - 4
src/xt_pages/workforce/remind.vue 파일 보기

10
         <el-tab-pane name="thisWeek">
10
         <el-tab-pane name="thisWeek">
11
             <span slot="label"><i class="el-icon-date"></i> 本周({{theWeek.thisWeek}})</span>
11
             <span slot="label"><i class="el-icon-date"></i> 本周({{theWeek.thisWeek}})</span>
12
         </el-tab-pane>
12
         </el-tab-pane>
13
-        <!--<el-tab-pane name="nextWeek">-->
14
-            <!--<span slot="label"><i class="el-icon-date"></i> 下周({{theWeek.nextWeek}})</span>-->
15
-        <!--</el-tab-pane>-->
13
+        <!-- <el-tab-pane name="nextWeek">
14
+            <span slot="label"><i class="el-icon-date"></i> 下周({{theWeek.nextWeek}})</span>
15
+        </el-tab-pane>  -->
16
     </el-tabs>
16
     </el-tabs>
17
     <table-push v-if="activeName=='pushTime'"></table-push>
17
     <table-push v-if="activeName=='pushTime'"></table-push>
18
     <table-weeks v-else :week-time="activeName"> </table-weeks>
18
     <table-weeks v-else :week-time="activeName"> </table-weeks>
50
             return false
50
             return false
51
           }
51
           }
52
           this.theWeek.thisWeek = response.data.data.theWeek;
52
           this.theWeek.thisWeek = response.data.data.theWeek;
53
-          this.theWeek.nextWeek = this.theWeek.thisWeek+1;
53
+         console.log("上一周",this.theWeek.thisWeek)
54
+        //  this.theWeek.nextWeek = this.theWeek.thisWeek+1;
54
 
55
 
55
           let childrenRefs = this.$refs.elTabs.$children
56
           let childrenRefs = this.$refs.elTabs.$children
56
           this.$nextTick(() => {
57
           this.$nextTick(() => {