See999 4 years ago
parent
commit
8457b00a10

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

@@ -56,7 +56,7 @@
56 56
         <div class="tabsBox">
57 57
 
58 58
           <el-button type="text" class="addTab" @click="addCharges" icon="el-icon-circle-plus">附加收费</el-button>
59
-          <el-tabs class="preTabs" v-model="editableTabsValue" type="card" closable @tab-remove="removeTab"
59
+          <el-tabs class="preTabs" v-model="editableTabsValue" type="border-card" closable @tab-remove="removeTab"
60 60
                    :before-leave="moreState" @tab-click="tabclickEvent">
61 61
             <el-tab-pane
62 62
               v-for="(item, index) in prescriptions"
@@ -1201,8 +1201,8 @@
1201 1201
 
1202 1202
   .addTab {
1203 1203
     position: absolute;
1204
-    right: 0;
1205
-    top: 6px;
1204
+    right: 3px;
1205
+    top: 3px;
1206 1206
     z-index: 20;
1207 1207
   }
1208 1208
 

+ 2 - 2
src/xt_pages/outpatientDoctorStation/print.vue View File

@@ -81,9 +81,9 @@ export default {
81 81
       this.print_time = uParseTime(ptime, "{y}-{m}-{d} {h}:{i}");
82 82
 
83 83
       const style =
84
-        '@media print {#prescription-print{font-size:14px;}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}.infoTitle{display: flex;border-bottom: 2px solid #000;margin-top:10px;line-height: 1px; padding:0 10px;}.infoTitle p{width: 200px;font-size:14px;}.infoMain{display: flex;flex-wrap: wrap;border-bottom: 2px solid #000;padding:0 10px;}.infoMain div{width: 50%;line-height: 24px;}.prescriptionBox{padding:0 10px;min-height:450px;}.Rp{font-size: 22px;font-weight: bold;}.drugsBox{padding-left: 40px;margin-bottom: 10px;margin-bottom: 10px;}.drugsBox div{line-height: 20px;} .drugsOne{line-height: 1px;} .drugsOne span{margin-right: 20px;} .doctorBox{display: flex; justify-content: space-between; padding:0 10px; line-height: 1px; border-bottom: 2px solid #000;} .actionBar{display: flex; justify-content: space-between; line-height: 1px; padding:0 10px;} .actionBar p{width:150px;}}';
84
+        '@media print {#prescription-print{font-size:14px;}.prescription-print:last-child {page-break-after: auto;}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}.infoTitle{display: flex;border-bottom: 2px solid #000;margin-top:10px;line-height: 1px; padding:0 10px;}.infoTitle p{width: 200px;font-size:14px;}.infoMain{display: flex;flex-wrap: wrap;border-bottom: 2px solid #000;padding:0 10px;}.infoMain div{width: 50%;line-height: 24px;}.prescriptionBox{padding:0 10px;min-height:450px;}.Rp{font-size: 22px;font-weight: bold;}.drugsBox{padding-left: 40px;margin-bottom: 10px;margin-bottom: 10px;}.drugsBox div{line-height: 20px;} .drugsOne{line-height: 1px;} .drugsOne span{margin-right: 20px;} .doctorBox{display: flex; justify-content: space-between; padding:0 10px; line-height: 1px; border-bottom: 2px solid #000;} .actionBar{display: flex; justify-content: space-between; line-height: 1px; padding:0 10px;} .actionBar p{width:150px;}}';
85 85
       printJS({
86
-        printable: "prescription-print",
86
+        printable: "prescriptionPrint",
87 87
         type: "html",
88 88
         style: style,
89 89
         scanStyles: false

+ 41 - 40
src/xt_pages/outpatientDoctorStation/template/printOne.vue View File

@@ -1,46 +1,47 @@
1 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>
28
-        <div class="doctorBox">
29
-            <p>医师:{{getDoctor(item.doctor)?getDoctor(item.doctor):""}}</p>
30
-            <p>日期:{{getTime(item.ctime)?getTime(item.ctime):""}}</p>
31
-        </div>
32
-        <div class="actionBar">
33
-            <p>审核:{{getDoctor(item.advices[0].checker)?getDoctor(item.advices[0].checker):""}}</p>
34
-            <p>配对:{{getDoctor(item.doctor)?getDoctor(item.doctor):""}}</p>
35
-            <p>核对:{{getDoctor(item.advices[0].checker)?getDoctor(item.advices[0].checker):""}}</p>
36
-            <p>发药:{{getDoctor(item.advices[0].execution_staff)?getDoctor(item.advices[0].execution_staff):""}}</p>
37
-            <p>药费:</p>
38
-        </div>
2
+  <div id='prescriptionPrint'>
3
+    <div v-for="(item,index) in advicePrint" :key="index">
4
+      <div id='prescription-print' class="prescription-print" style="page-break-after: always;">
5
+          <div class="printTitle">血液透析中心处方笺</div>
6
+          <div class="infoTitle">
7
+              <p>姓名:{{item.patient.name?item.patient.name:""}}</p>
8
+              <p>性别:
9
+                <span v-if="item.patient.gender == 1">男</span>
10
+                <span v-if="item.patient.gender == 2">女</span>
11
+              </p>
12
+              <p>年龄:{{item.patient.age?item.patient.age:""}}岁</p>
13
+          </div>
14
+          <div class="infoMain">
15
+              <div style="margin-bottom: 10px;">门诊号:{{item.hisPatient.number?item.hisPatient.number:""}}</div>
16
+              <div style="margin-bottom: 10px;">科室:{{getDepart(item.hisPatient.departments?item.hisPatient.departments:"")}}</div>
17
+              <div style="margin-bottom: 10px;">医保卡号:{{item.hisPatient.number?item.hisPatient.number:""}}</div>
18
+              <div style="margin-bottom: 10px;">电话:{{item.patient.phone}}</div>
19
+              <div>地址:{{item.patient.home_address}}</div>
20
+              <div style="display:flex;width:50%;">临床诊断:{{item.patient.diagnose}}</div>
21
+          </div>
22
+          <div class="prescriptionBox">
23
+              <div class="Rp">Rp:</div>
24
+              <div class="drugsBox" v-for="(it,index) in item.advices" :key="index">
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>
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>
27
+              </div>
28
+          </div>
29
+          <div class="doctorBox">
30
+              <p>医师:{{getDoctor(item.doctor)?getDoctor(item.doctor):""}}</p>
31
+              <p>日期:{{getTime(item.ctime)?getTime(item.ctime):""}}</p>
32
+          </div>
33
+          <div class="actionBar">
34
+              <p>审核:{{getDoctor(item.advices[0].checker)?getDoctor(item.advices[0].checker):""}}</p>
35
+              <p>配对:{{getDoctor(item.doctor)?getDoctor(item.doctor):""}}</p>
36
+              <p>核对:{{getDoctor(item.advices[0].checker)?getDoctor(item.advices[0].checker):""}}</p>
37
+              <p>发药:{{getDoctor(item.advices[0].execution_staff)?getDoctor(item.advices[0].execution_staff):""}}</p>
38
+              <p>药费:</p>
39
+          </div>
40
+          <div style="page-break-after:always"></div>
41
+      </div>
39 42
     </div>
40
-
41
-
42 43
     
43
-</div>
44
+  </div>
44 45
 
45 46
     
46 47
 </template>

+ 16 - 12
src/xt_pages/outpatientDoctorStation/treatPrint.vue View File

@@ -1,7 +1,7 @@
1 1
 <template>
2 2
   <div class="main-contain">
3 3
     <div class="position">
4
-      <!-- <bread-crumb :crumbs="crumbs"></bread-crumb> -->
4
+      <bread-crumb :crumbs="crumbs"></bread-crumb>
5 5
        <template>
6 6
         <el-button
7 7
           :loading="loading"
@@ -59,15 +59,19 @@ export default {
59 59
   },
60 60
   data() {
61 61
     return {
62
-       record_date:"",
63
-       patientTableData:[],
64
-       advicePrint:[],
65
-       hisPatient:{},
66
-       patient:{},
67
-       search_input:"",
68
-       loading:false,
69
-       patient_id:0,
70
-       prescription_id:0
62
+      crumbs: [
63
+        { path: false, name: '门诊医生站' },
64
+        { path: false, name: '打印' }
65
+      ],
66
+      record_date:"",
67
+      patientTableData:[],
68
+      advicePrint:[],
69
+      hisPatient:{},
70
+      patient:{},
71
+      search_input:"",
72
+      loading:false,
73
+      patient_id:0,
74
+      prescription_id:0
71 75
     };
72 76
   },
73 77
   methods:{
@@ -76,9 +80,9 @@ export default {
76 80
       this.print_time = uParseTime(ptime, "{y}-{m}-{d} {h}:{i}");
77 81
 
78 82
       const style =
79
-        '@media print {.printTitle{font-size: 22px;text-align: center;font-weight: bold;}.infoTitle{display: flex;border-bottom: 2px solid #000;margin-top:10px;line-height: 1px; padding:0 10px;}.infoTitle p{width: 300px;}.infoMain{display: flex;flex-wrap: wrap;border-bottom: 2px solid #000;padding:0 10px;}.infoMain p{width: 50%;line-height: 1px;}.prescriptionBox{padding:0 10px;min-height:600px;}.Rp{font-size: 22px;font-weight: bold;line-height:1px;}.drugsBox{padding-left: 40px;margin-bottom: 10px;margin-bottom: 10px;}.drugsBox p{line-height: 1px;padding-bottom:10px !important;} .drugsOne{line-height: 1px;margin-bottom:10px !important;} .drugsOne span{margin-right: 20px;} .doctorBox{display: flex; justify-content: space-between; padding:0 10px; line-height: 1px; border-bottom: 2px solid #000;} .actionBar{display: flex; justify-content: space-between; line-height: 1px; padding:0 10px;} .actionBar p{width:150px;}}';
83
+        '@media print {#prescription-print{font-size:14px;}.prescription-print:last-child {page-break-after: auto;}.prescription-print{font-size: 14px;}.printTitle{font-size: 18px;text-align: center;font-weight: bold;}.infoTitle{display: flex;border-bottom: 2px solid #000;margin-top:5px;padding:0 10px;}.infoTitle div{width: 300px;margin-bottom:5px;}.infoMain{display: flex;flex-wrap: wrap;border-bottom: 2px solid #000;padding:0 10px;}.infoMain div{width: 50%;}.prescriptionBox{padding:0 10px;min-height:380px;}.Rp{font-size: 22px;font-weight: bold;line-height:1px;}.drugsBox{padding-left: 40px;margin-bottom: 10px;margin-bottom: 10px;}.drugsBox p{line-height: 1px;padding-bottom:10px !important;} .drugsOne{line-height: 1px;margin-bottom:10px !important;} .drugsOne span{margin-right: 20px;} .doctorBox{display: flex; justify-content: space-between; padding:0 10px; border-bottom: 2px solid #000;} .actionBar{display: flex; justify-content: space-between; padding:0 10px;margin:5px 0;} .actionBar div{width:150px;}}';
80 84
       printJS({
81
-        printable: "prescription-print",
85
+        printable: "prescriptionPrint",
82 86
         type: "html",
83 87
         style: style,
84 88
         scanStyles: false

+ 100 - 95
src/xt_pages/outpatientDoctorStation/treatTemplate/printOne.vue View File

@@ -1,96 +1,98 @@
1 1
 <template>
2
-   <div>
3
-    <div id='prescription-print' class="prescription-print" v-for="(item,index) in advicePrint" :key="index">
4
-        <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
-                <span>费别</span>
7
-                <span>自费</span>
8
-                <span>公费</span>
9
-                <span>保险</span>
10
-                <span>其他</span>
11
-            </p>
12
-            <p>就诊日期:{{getTime(item.ctime)}}</p>
2
+    <div id='prescriptionPrint'>
3
+        <div v-for="(item,index) in advicePrint" :key="index">
4
+            <div id='prescription-print' class="prescription-print" style="page-break-after: always;">
5
+                <div style="display:flex;justify-content: space-between;font-weight:bold;">
6
+                    <div style="width:200px;display:flex;justify-content: space-between;font-weight:bold;">
7
+                        <span>费别</span>
8
+                        <span>自费</span>
9
+                        <span>公费</span>
10
+                        <span>保险</span>
11
+                        <span>其他</span>
12
+                    </div>
13
+                    <div>就诊日期:{{getTime(item.ctime)}}</div>
14
+                </div>
15
+                <div class="printTitle">血液透析中心</div>
16
+                <div class="printTitle">处方、治疗单</div>
17
+                <div class="infoTitle">
18
+                    <div>门诊编号:</div>
19
+                    <div>电脑号:</div>
20
+                </div>
21
+                <div class="infoMain">
22
+                    <div style="margin-bottom: 10px;width:25%">姓名:{{item.patient.name}}</div>
23
+                    <div style="margin-bottom: 10px;width:25%">性别:
24
+                        <span v-if="item.patient.gender == 1">男</span>
25
+                        <span v-if="item.patient.gender == 2">女</span>
26
+                    </div>
27
+                    <div style="margin-bottom: 10px;width:25%">年龄:
28
+                        <span>{{item.patient.age}}</span>
29
+                    </div>
30
+                    <div style="margin-bottom: 10px;width:25%">参保类型:</div>
31
+                    <div style="margin-bottom: 10px;width:50%;">联系电话:{{item.patient.phone}}</div>
32
+                    <div style="width:50%;">地址:{{item.patient.unit_address}}</div>
33
+                    <div style="width:100%;">诊断:{{item.patient.diagnose}}</div>
34
+                </div>
35
+                <div class="prescriptionBox">
36
+                    <table style="width:100%;text-align:center;line-height:25px;">
37
+                        <tr>
38
+                            <td>序号</td>
39
+                            <td>项目名称</td>
40
+                            <td>数量</td>
41
+                            <td>单位</td>
42
+                            <td>单价</td>
43
+                            <td>部位</td>
44
+                            <td>备注</td>
45
+                            <td>天数</td>
46
+                        </tr>
47
+                        <tr v-for="(it,index) in item.project" :key="index">
48
+                            <td>{{index+1}}</td>
49
+                            <td>{{getProjectName(it.project_id)}}</td>
50
+                            <td>{{it.single_dose}}</td>
51
+                            <td>{{getUnit(it.unit)}}</td>
52
+                            <td>{{it.price}}</td>
53
+                            <td></td>
54
+                            <td>{{it.remark}}</td>
55
+                            <td>{{it.day}}</td>
56
+                        
57
+                        </tr>
58
+                    </table>
59
+                </div>
60
+                <div class="infoTitle">
61
+                    <div>开单医生:{{getDoctor(item.doctor)?getDoctor(item.doctor):""}}</div>
62
+                    <div>签章:</div>
63
+                </div>
64
+                <div class="actionBar">
65
+                    <div>执行医生:{{getDoctor(item.doctor)?getDoctor(item.doctor):""}}</div>
66
+                    <div>费用:</div>
67
+                </div>
68
+                <table style="width:100%;text-align:center;line-height:25px;border-collapse: collapse;" border="1">
69
+                    <tr>
70
+                        <td style="width:16%;">治疗时间</td>
71
+                        <td style="width:16%;"></td>
72
+                        <td style="width:16%;"></td>
73
+                        <td style="width:16%;"></td>
74
+                        <td style="width:16%;"></td>
75
+                        <td style="width:16%;"></td>
76
+                    </tr>
77
+                    <tr>
78
+                        <td style="width:16%;">医生签字</td>
79
+                        <td style="width:16%;"></td>
80
+                        <td style="width:16%;"></td>
81
+                        <td style="width:16%;"></td>
82
+                        <td style="width:16%;"></td>
83
+                        <td style="width:16%;"></td>
84
+                    </tr>
85
+                    <tr>
86
+                        <td style="width:16px;">患者签字</td>
87
+                        <td style="width:16px;"></td>
88
+                        <td style="width:16px;"></td>
89
+                        <td style="width:16px;"></td>
90
+                        <td style="width:16px;"></td>
91
+                        <td style="width:16px;"></td>
92
+                    </tr>
93
+                </table>
94
+            </div>
13 95
         </div>
14
-        <div class="printTitle">血液透析中心</div>
15
-        <div class="printTitle">处方、治疗单</div>
16
-        <div class="infoTitle">
17
-            <p>门诊编号:</p>
18
-            <p>电脑号:</p>
19
-        </div>
20
-        <div class="infoMain">
21
-            <p style="margin-bottom: 10px;width:25%">姓名:{{item.patient.name}}</p>
22
-            <p style="margin-bottom: 10px;width:25%">性别:
23
-                <span v-if="item.patient.gender == 1">男</span>
24
-                <span v-if="item.patient.gender == 2">女</span>
25
-            </p>
26
-            <p style="margin-bottom: 10px;width:25%">年龄:
27
-                <span>{{item.patient.age}}</span>
28
-            </p>
29
-            <p style="margin-bottom: 10px;width:25%">参保类型:</p>
30
-            <p style="margin-bottom: 10px;width:50%;">联系电话:{{item.patient.phone}}</p>
31
-            <p style="width:50%;">地址:{{item.patient.unit_address}}</p>
32
-            <p style="width:50%;">诊断:{{item.patient.diagnose}}</p>
33
-        </div>
34
-        <div class="prescriptionBox">
35
-            <table style="width:100%;text-align:center;line-height:25px;">
36
-                <tr>
37
-                    <td>序号</td>
38
-                    <td>项目名称</td>
39
-                    <td>数量</td>
40
-                    <td>单位</td>
41
-                    <td>单价</td>
42
-                    <td>部位</td>
43
-                    <td>备注</td>
44
-                    <td>天数</td>
45
-                </tr>
46
-                <tr v-for="(it,index) in item.project" :key="index">
47
-                    <td>{{index+1}}</td>
48
-                    <td>{{getProjectName(it.project_id)}}</td>
49
-                    <td>{{it.single_dose}}</td>
50
-                    <td>{{getUnit(it.unit)}}</td>
51
-                    <td>{{it.price}}</td>
52
-                    <td></td>
53
-                    <td>{{it.remark}}</td>
54
-                    <td>{{it.day}}</td>
55
-                   
56
-                </tr>
57
-            </table>
58
-        </div>
59
-        <div class="infoTitle">
60
-            <p>开单医生:{{getDoctor(item.doctor)?getDoctor(item.doctor):""}}</p>
61
-            <p>签章:</p>
62
-        </div>
63
-        <div class="actionBar">
64
-            <p>执行医生:{{getDoctor(item.doctor)?getDoctor(item.doctor):""}}</p>
65
-            <p>费用:</p>
66
-        </div>
67
-        <table style="width:100%;text-align:center;line-height:25px;border-collapse: collapse;" border="1">
68
-            <tr>
69
-                <td style="width:16%;">治疗时间</td>
70
-                <td style="width:16%;"></td>
71
-                <td style="width:16%;"></td>
72
-                <td style="width:16%;"></td>
73
-                <td style="width:16%;"></td>
74
-                <td style="width:16%;"></td>
75
-            </tr>
76
-            <tr>
77
-                <td style="width:16%;">医生签字</td>
78
-                <td style="width:16%;"></td>
79
-                <td style="width:16%;"></td>
80
-                <td style="width:16%;"></td>
81
-                <td style="width:16%;"></td>
82
-                <td style="width:16%;"></td>
83
-            </tr>
84
-            <tr>
85
-                <td style="width:16px;">患者签字</td>
86
-                <td style="width:16px;"></td>
87
-                <td style="width:16px;"></td>
88
-                <td style="width:16px;"></td>
89
-                <td style="width:16px;"></td>
90
-                <td style="width:16px;"></td>
91
-            </tr>
92
-        </table>
93
-     </div>
94 96
     </div>
95 97
 </template>
96 98
 <script>
@@ -207,8 +209,11 @@ export default {
207 209
 
208 210
 
209 211
 <style lang="scss" scoped>
212
+.prescription-print{
213
+    font-size: 14px;
214
+}
210 215
 .printTitle{
211
-    font-size: 22px;
216
+    font-size: 18px;
212 217
     text-align: center;
213 218
     font-weight: bold;
214 219
 }
@@ -219,7 +224,7 @@ export default {
219 224
     line-height: 24px;
220 225
     padding:0 10px;
221 226
 }
222
-.infoTitle p{
227
+.infoTitle div{
223 228
     width: 300px;
224 229
 }
225 230
 .infoMain{
@@ -228,7 +233,7 @@ export default {
228 233
     border-bottom: 2px solid #000;
229 234
     padding:0 10px;
230 235
 }
231
-.infoMain p{
236
+.infoMain div{
232 237
     width: 50%;
233 238
     line-height: 24px;
234 239
 }
@@ -259,7 +264,7 @@ export default {
259 264
     line-height: 24px;
260 265
     padding:0 10px;
261 266
 }
262
-.actionBar p{
267
+.actionBar div{
263 268
     width:150px;
264 269
 }
265 270
 </style>

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

@@ -2,7 +2,7 @@
2 2
     <div >
3 3
         <el-tooltip placement="right" :disabled="scheduleDetail.patient.length>0?false:true" >
4 4
             <div slot="content">
5
-                {{scheduleDetail.patient}}11
5
+                {{scheduleDetail.patient}}
6 6
                 <br/>
7 7
                 <span v-if="scheduleDetail.mode_name.length>0">({{scheduleDetail.mode_name}})</span>
8 8
             </div>