XMLWAN hace 4 años
padre
commit
328b6be20a

+ 23 - 61
src/xt_pages/outpatientDoctorStation/template/printOne.vue Ver fichero

@@ -1,44 +1,4 @@
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 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 2
   <div id='prescriptionPrint'>
43 3
     <div v-for="(item,index) in advicePrint" :key="index">
44 4
       <div id='prescription-print' class="prescription-print" style="page-break-after: always;">
@@ -65,25 +25,29 @@
65 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 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 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 32
           </div>
69 33
           <div class="doctorBox">
70 34
               <p>医师:{{getDoctor(item.doctor)?getDoctor(item.doctor):""}}</p>
71 35
               <p>日期:{{getTime(item.ctime)?getTime(item.ctime):""}}</p>
72 36
           </div>
73 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 43
           </div>
80 44
           <div style="page-break-after:always"></div>
81 45
       </div>
82 46
     </div>
83
-
47
+    
84 48
   </div>
85 49
 
86
-
50
+    
87 51
 </template>
88 52
 <script>
89 53
 import { jsGetAge, uParseTime } from '@/utils/tools'
@@ -94,7 +58,7 @@ export default {
94 58
       patient_id:Number,
95 59
       record_date:String,
96 60
       prescription_id:Number
97
-    },
61
+    }, 
98 62
     data(){
99 63
       return {
100 64
         doctorList:[],
@@ -105,18 +69,19 @@ export default {
105 69
         hisPatient:{},
106 70
         department:[],
107 71
         prescriptions:[]
72
+
108 73
       }
109 74
     },
110 75
    methods:{
111
-
76
+     
112 77
      getAllDoctorList(){
113 78
       getAllDoctorList().then(response=>{
114 79
         if(response.data.state == 1){
115 80
                var doctor =  response.data.data.doctor
116
-               console.log("医生列表数据",doctor)
81
+               
117 82
                this.doctorList = doctor
118 83
              }
119
-         })
84
+         })   
120 85
      },
121 86
 
122 87
       getDoctor(id){
@@ -144,14 +109,13 @@ export default {
144 109
           prescription_id:this.$route.query.prescription_id,
145 110
           ids:this.$route.query.ids
146 111
         }
147
-        console.log("params---",params)
112
+        console.log("params",params)
148 113
        getPrescriptionPrint(params).then(response=>{
149 114
          if(response.data.state == 1){
150 115
             var advicePrint =  response.data.data.advicePrint
151 116
             console.log("adviceprint9999",advicePrint)
152 117
             this.advicePrint = advicePrint
153 118
             this.prescriptions = advicePrint
154
-
155 119
           }
156 120
        })
157 121
      },
@@ -171,7 +135,7 @@ export default {
171 135
        getInitData().then(response=>{
172 136
           if(response.data.state == 1){
173 137
             this.department = response.data.data.department
174
-
138
+           
175 139
           }
176 140
        })
177 141
      },
@@ -184,9 +148,8 @@ export default {
184 148
        }
185 149
        return name
186 150
      },
187
-
188 151
      getTotalOne(id) {
189
-
152
+        
190 153
         var total = 0
191 154
         var addtotal = 0
192 155
         for (let i = 0; i < this.prescriptions.length; i++) {
@@ -196,7 +159,7 @@ export default {
196 159
                 total = total + this.prescriptions[i].advices[a].price * this.prescriptions[i].advices[a].prescribing_number
197 160
               }
198 161
             }
199
-
162
+          
200 163
             if (this.prescriptions[i].additionalcharge != null) {
201 164
               for (let a = 0; a < this.prescriptions[i].additionalcharge.length; a++) {
202 165
                 addtotal = addtotal + this.prescriptions[i].additionalcharge[a].price * this.prescriptions[i].additionalcharge[a].count
@@ -206,8 +169,7 @@ export default {
206 169
         }
207 170
         return total + addtotal
208 171
        }
209
-      },
210
-
172
+      }, 
211 173
 
212 174
 
213 175
    },
@@ -217,7 +179,7 @@ export default {
217 179
       this.getPrescriptionPrint()
218 180
       this.getHisPatientDetail()
219 181
 
220
-
182
+     
221 183
    },
222 184
   //  watch:{
223 185
   //    patient_id:function(val){
@@ -286,7 +248,7 @@ export default {
286 248
 }
287 249
 .actionBar{
288 250
     display: flex;
289
-    justify-content: space-between;
251
+    justify-content: space-between; 
290 252
     line-height: 24px;
291 253
     padding:0 10px;
292 254
 }

+ 20 - 0
src/xt_pages/outpatientDoctorStation/treatTemplate/printOne.vue Ver fichero

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

+ 1 - 0
src/xt_pages/workforce/components/tableData.vue Ver fichero

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

+ 5 - 4
src/xt_pages/workforce/remind.vue Ver fichero

@@ -10,9 +10,9 @@
10 10
         <el-tab-pane name="thisWeek">
11 11
             <span slot="label"><i class="el-icon-date"></i> 本周({{theWeek.thisWeek}})</span>
12 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 16
     </el-tabs>
17 17
     <table-push v-if="activeName=='pushTime'"></table-push>
18 18
     <table-weeks v-else :week-time="activeName"> </table-weeks>
@@ -50,7 +50,8 @@ export default {
50 50
             return false
51 51
           }
52 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 56
           let childrenRefs = this.$refs.elTabs.$children
56 57
           this.$nextTick(() => {