Browse Source

Merge branch '20201109_pc_vue_new_branch' of http://git.shengws.com/csx/Vue_New into 20201109_pc_vue_new_branch

XMLWAN 4 years ago
parent
commit
da06284396

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

56
         <div class="tabsBox">
56
         <div class="tabsBox">
57
 
57
 
58
           <el-button type="text" class="addTab" @click="addCharges" icon="el-icon-circle-plus">附加收费</el-button>
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
                    :before-leave="moreState" @tab-click="tabclickEvent">
60
                    :before-leave="moreState" @tab-click="tabclickEvent">
61
             <el-tab-pane
61
             <el-tab-pane
62
               v-for="(item, index) in prescriptions"
62
               v-for="(item, index) in prescriptions"
1203
 
1203
 
1204
   .addTab {
1204
   .addTab {
1205
     position: absolute;
1205
     position: absolute;
1206
-    right: 0;
1207
-    top: 6px;
1206
+    right: 3px;
1207
+    top: 3px;
1208
     z-index: 20;
1208
     z-index: 20;
1209
   }
1209
   }
1210
 
1210
 

+ 8 - 7
src/xt_pages/outpatientDoctorStation/doctorDesk.vue View File

67
         <!--<desk-prescription ref="prescriptions"   :prescriptions="prescriptions" :patientInfo="patientInfo" :hisPatientInfo="hisPatientInfo"-->
67
         <!--<desk-prescription ref="prescriptions"   :prescriptions="prescriptions" :patientInfo="patientInfo" :hisPatientInfo="hisPatientInfo"-->
68
         <!--v-if="titleType == '处方'" style="flex:1;"></desk-prescription>-->
68
         <!--v-if="titleType == '处方'" style="flex:1;"></desk-prescription>-->
69
         <desk-prescription  :addtions_charge="addtions_charge" :diagnoses="diagnoses" :other_sick="other_sick" :record_date="record_date"
69
         <desk-prescription  :addtions_charge="addtions_charge" :diagnoses="diagnoses" :other_sick="other_sick" :record_date="record_date"
70
-                           ref="prescriptions" :prescriptions="prescriptions" :patientInfo="patientInfo"
71
-                           :hisPatientInfo="hisPatientInfo" @event1="changetwo($event)"
72
-                           v-show="titleType == '电子处方'" style="flex:1;"></desk-prescription>
70
+                          ref="prescriptions" :prescriptions="prescriptions" :patientInfo="patientInfo"
71
+                          :hisPatientInfo="hisPatientInfo" @event1="changetwo($event)"
72
+                          v-show="titleType == '电子处方'" style="flex:1;"></desk-prescription>
73
         <desk-record :record_date="record_date" :case_history="case_history" :patientInfo="patientInfo"
73
         <desk-record :record_date="record_date" :case_history="case_history" :patientInfo="patientInfo"
74
-                     :hisPatientInfo="hisPatientInfo"   v-show="titleType == '电子病历'" :detalid="detalid" ref="child"></desk-record>
74
+                    :hisPatientInfo="hisPatientInfo"   v-show="titleType == '电子病历'" :detalid="detalid" ref="child"></desk-record>
75
 
75
 
76
-         <medicalRecord ref='medicalRecord' @func="getMsgFormSon" ></medicalRecord>
77
-         <saveRecordTemplate ref='saveRecordTemplate'></saveRecordTemplate>
76
+        <medicalRecord ref='medicalRecord' @func="getMsgFormSon" ></medicalRecord>
77
+        <saveRecordTemplate ref='saveRecordTemplate'></saveRecordTemplate>
78
       </div>
78
       </div>
79
 
79
 
80
     </div>
80
     </div>
179
         centerDialogVisible:false,
179
         centerDialogVisible:false,
180
         tableData:[],
180
         tableData:[],
181
         selecting_schs: [],
181
         selecting_schs: [],
182
-        index:0
182
+        index:0,
183
       }
183
       }
184
     },
184
     },
185
     methods: {
185
     methods: {
241
         })
241
         })
242
       },
242
       },
243
       choosePatient(val) {
243
       choosePatient(val) {
244
+        
244
         this.patientid = val.patients.id
245
         this.patientid = val.patients.id
245
         let params = {
246
         let params = {
246
           'record_date': this.record_date,
247
           'record_date': this.record_date,

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

81
       this.print_time = uParseTime(ptime, "{y}-{m}-{d} {h}:{i}");
81
       this.print_time = uParseTime(ptime, "{y}-{m}-{d} {h}:{i}");
82
 
82
 
83
       const style =
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
       printJS({
85
       printJS({
86
-        printable: "prescription-print",
86
+        printable: "prescriptionPrint",
87
         type: "html",
87
         type: "html",
88
         style: style,
88
         style: style,
89
         scanStyles: false
89
         scanStyles: false

+ 52 - 14
src/xt_pages/outpatientDoctorStation/template/printOne.vue View File

39
             <p>发药:{{getDoctor(item.advices[0].execution_staff)?getDoctor(item.advices[0].execution_staff):""}}</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>
40
             <p>药费:{{getTotalOne(item.id)?getTotalOne(item.id):0}}元</p>
41
         </div>
41
         </div>
42
+  <div id='prescriptionPrint'>
43
+    <div v-for="(item,index) in advicePrint" :key="index">
44
+      <div id='prescription-print' class="prescription-print" style="page-break-after: always;">
45
+          <div class="printTitle">血液透析中心处方笺</div>
46
+          <div class="infoTitle">
47
+              <p>姓名:{{item.patient.name?item.patient.name:""}}</p>
48
+              <p>性别:
49
+                <span v-if="item.patient.gender == 1">男</span>
50
+                <span v-if="item.patient.gender == 2">女</span>
51
+              </p>
52
+              <p>年龄:{{item.patient.age?item.patient.age:""}}岁</p>
53
+          </div>
54
+          <div class="infoMain">
55
+              <div style="margin-bottom: 10px;">门诊号:{{item.hisPatient.number?item.hisPatient.number:""}}</div>
56
+              <div style="margin-bottom: 10px;">科室:{{getDepart(item.hisPatient.departments?item.hisPatient.departments:"")}}</div>
57
+              <div style="margin-bottom: 10px;">医保卡号:{{item.hisPatient.number?item.hisPatient.number:""}}</div>
58
+              <div style="margin-bottom: 10px;">电话:{{item.patient.phone}}</div>
59
+              <div>地址:{{item.patient.home_address}}</div>
60
+              <div style="display:flex;width:50%;">临床诊断:{{item.patient.diagnose}}</div>
61
+          </div>
62
+          <div class="prescriptionBox">
63
+              <div class="Rp">Rp:</div>
64
+              <div class="drugsBox" v-for="(it,index) in item.advices" :key="index">
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>
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>
67
+              </div>
68
+          </div>
69
+          <div class="doctorBox">
70
+              <p>医师:{{getDoctor(item.doctor)?getDoctor(item.doctor):""}}</p>
71
+              <p>日期:{{getTime(item.ctime)?getTime(item.ctime):""}}</p>
72
+          </div>
73
+          <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>
79
+          </div>
80
+          <div style="page-break-after:always"></div>
81
+      </div>
42
     </div>
82
     </div>
43
 
83
 
84
+  </div>
44
 
85
 
45
-    
46
-</div>
47
 
86
 
48
-    
49
 </template>
87
 </template>
50
 <script>
88
 <script>
51
 import { jsGetAge, uParseTime } from '@/utils/tools'
89
 import { jsGetAge, uParseTime } from '@/utils/tools'
56
       patient_id:Number,
94
       patient_id:Number,
57
       record_date:String,
95
       record_date:String,
58
       prescription_id:Number
96
       prescription_id:Number
59
-    }, 
97
+    },
60
     data(){
98
     data(){
61
       return {
99
       return {
62
         doctorList:[],
100
         doctorList:[],
70
       }
108
       }
71
     },
109
     },
72
    methods:{
110
    methods:{
73
-     
111
+
74
      getAllDoctorList(){
112
      getAllDoctorList(){
75
       getAllDoctorList().then(response=>{
113
       getAllDoctorList().then(response=>{
76
         if(response.data.state == 1){
114
         if(response.data.state == 1){
78
                console.log("医生列表数据",doctor)
116
                console.log("医生列表数据",doctor)
79
                this.doctorList = doctor
117
                this.doctorList = doctor
80
              }
118
              }
81
-         })   
119
+         })
82
      },
120
      },
83
 
121
 
84
       getDoctor(id){
122
       getDoctor(id){
113
             console.log("adviceprint9999",advicePrint)
151
             console.log("adviceprint9999",advicePrint)
114
             this.advicePrint = advicePrint
152
             this.advicePrint = advicePrint
115
             this.prescriptions = advicePrint
153
             this.prescriptions = advicePrint
116
-           
154
+
117
           }
155
           }
118
        })
156
        })
119
      },
157
      },
133
        getInitData().then(response=>{
171
        getInitData().then(response=>{
134
           if(response.data.state == 1){
172
           if(response.data.state == 1){
135
             this.department = response.data.data.department
173
             this.department = response.data.data.department
136
-           
174
+
137
           }
175
           }
138
        })
176
        })
139
      },
177
      },
148
      },
186
      },
149
 
187
 
150
      getTotalOne(id) {
188
      getTotalOne(id) {
151
-        
189
+
152
         var total = 0
190
         var total = 0
153
         var addtotal = 0
191
         var addtotal = 0
154
         for (let i = 0; i < this.prescriptions.length; i++) {
192
         for (let i = 0; i < this.prescriptions.length; i++) {
158
                 total = total + this.prescriptions[i].advices[a].price * this.prescriptions[i].advices[a].prescribing_number
196
                 total = total + this.prescriptions[i].advices[a].price * this.prescriptions[i].advices[a].prescribing_number
159
               }
197
               }
160
             }
198
             }
161
-          
199
+
162
             if (this.prescriptions[i].additionalcharge != null) {
200
             if (this.prescriptions[i].additionalcharge != null) {
163
               for (let a = 0; a < this.prescriptions[i].additionalcharge.length; a++) {
201
               for (let a = 0; a < this.prescriptions[i].additionalcharge.length; a++) {
164
                 addtotal = addtotal + this.prescriptions[i].additionalcharge[a].price * this.prescriptions[i].additionalcharge[a].count
202
                 addtotal = addtotal + this.prescriptions[i].additionalcharge[a].price * this.prescriptions[i].additionalcharge[a].count
168
         }
206
         }
169
         return total + addtotal
207
         return total + addtotal
170
        }
208
        }
171
-      }, 
209
+      },
210
+
172
 
211
 
173
 
212
 
174
-      
175
    },
213
    },
176
    created(){
214
    created(){
177
       this.getAllDoctorList()
215
       this.getAllDoctorList()
179
       this.getPrescriptionPrint()
217
       this.getPrescriptionPrint()
180
       this.getHisPatientDetail()
218
       this.getHisPatientDetail()
181
 
219
 
182
-     
220
+
183
    },
221
    },
184
   //  watch:{
222
   //  watch:{
185
   //    patient_id:function(val){
223
   //    patient_id:function(val){
248
 }
286
 }
249
 .actionBar{
287
 .actionBar{
250
     display: flex;
288
     display: flex;
251
-    justify-content: space-between; 
289
+    justify-content: space-between;
252
     line-height: 24px;
290
     line-height: 24px;
253
     padding:0 10px;
291
     padding:0 10px;
254
 }
292
 }

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

1
 <template>
1
 <template>
2
   <div class="main-contain">
2
   <div class="main-contain">
3
     <div class="position">
3
     <div class="position">
4
-      <!-- <bread-crumb :crumbs="crumbs"></bread-crumb> -->
4
+      <bread-crumb :crumbs="crumbs"></bread-crumb>
5
        <template>
5
        <template>
6
         <el-button
6
         <el-button
7
           :loading="loading"
7
           :loading="loading"
59
   },
59
   },
60
   data() {
60
   data() {
61
     return {
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
   methods:{
77
   methods:{
76
       this.print_time = uParseTime(ptime, "{y}-{m}-{d} {h}:{i}");
80
       this.print_time = uParseTime(ptime, "{y}-{m}-{d} {h}:{i}");
77
 
81
 
78
       const style =
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
       printJS({
84
       printJS({
81
-        printable: "prescription-print",
85
+        printable: "prescriptionPrint",
82
         type: "html",
86
         type: "html",
83
         style: style,
87
         style: style,
84
         scanStyles: false
88
         scanStyles: false

+ 111 - 14
src/xt_pages/outpatientDoctorStation/treatTemplate/printOne.vue View File

52
                     <td></td>
52
                     <td></td>
53
                     <td>{{it.remark}}</td>
53
                     <td>{{it.remark}}</td>
54
                     <td>{{it.day}}</td>
54
                     <td>{{it.day}}</td>
55
-                   
55
+
56
                 </tr>
56
                 </tr>
57
             </table>
57
             </table>
58
         </div>
58
         </div>
91
             </tr>
91
             </tr>
92
         </table>
92
         </table>
93
      </div>
93
      </div>
94
+    <div id='prescriptionPrint'>
95
+        <div v-for="(item,index) in advicePrint" :key="index">
96
+            <div id='prescription-print' class="prescription-print" style="page-break-after: always;">
97
+                <div style="display:flex;justify-content: space-between;font-weight:bold;">
98
+                    <div style="width:200px;display:flex;justify-content: space-between;font-weight:bold;">
99
+                        <span>费别</span>
100
+                        <span>自费</span>
101
+                        <span>公费</span>
102
+                        <span>保险</span>
103
+                        <span>其他</span>
104
+                    </div>
105
+                    <div>就诊日期:{{getTime(item.ctime)}}</div>
106
+                </div>
107
+                <div class="printTitle">血液透析中心</div>
108
+                <div class="printTitle">处方、治疗单</div>
109
+                <div class="infoTitle">
110
+                    <div>门诊编号:</div>
111
+                    <div>电脑号:</div>
112
+                </div>
113
+                <div class="infoMain">
114
+                    <div style="margin-bottom: 10px;width:25%">姓名:{{item.patient.name}}</div>
115
+                    <div style="margin-bottom: 10px;width:25%">性别:
116
+                        <span v-if="item.patient.gender == 1">男</span>
117
+                        <span v-if="item.patient.gender == 2">女</span>
118
+                    </div>
119
+                    <div style="margin-bottom: 10px;width:25%">年龄:
120
+                        <span>{{item.patient.age}}</span>
121
+                    </div>
122
+                    <div style="margin-bottom: 10px;width:25%">参保类型:</div>
123
+                    <div style="margin-bottom: 10px;width:50%;">联系电话:{{item.patient.phone}}</div>
124
+                    <div style="width:50%;">地址:{{item.patient.unit_address}}</div>
125
+                    <div style="width:100%;">诊断:{{item.patient.diagnose}}</div>
126
+                </div>
127
+                <div class="prescriptionBox">
128
+                    <table style="width:100%;text-align:center;line-height:25px;">
129
+                        <tr>
130
+                            <td>序号</td>
131
+                            <td>项目名称</td>
132
+                            <td>数量</td>
133
+                            <td>单位</td>
134
+                            <td>单价</td>
135
+                            <td>部位</td>
136
+                            <td>备注</td>
137
+                            <td>天数</td>
138
+                        </tr>
139
+                        <tr v-for="(it,index) in item.project" :key="index">
140
+                            <td>{{index+1}}</td>
141
+                            <td>{{getProjectName(it.project_id)}}</td>
142
+                            <td>{{it.single_dose}}</td>
143
+                            <td>{{getUnit(it.unit)}}</td>
144
+                            <td>{{it.price}}</td>
145
+                            <td></td>
146
+                            <td>{{it.remark}}</td>
147
+                            <td>{{it.day}}</td>
148
+
149
+                        </tr>
150
+                    </table>
151
+                </div>
152
+                <div class="infoTitle">
153
+                    <div>开单医生:{{getDoctor(item.doctor)?getDoctor(item.doctor):""}}</div>
154
+                    <div>签章:</div>
155
+                </div>
156
+                <div class="actionBar">
157
+                    <div>执行医生:{{getDoctor(item.doctor)?getDoctor(item.doctor):""}}</div>
158
+                    <div>费用:</div>
159
+                </div>
160
+                <table style="width:100%;text-align:center;line-height:25px;border-collapse: collapse;" border="1">
161
+                    <tr>
162
+                        <td style="width:16%;">治疗时间</td>
163
+                        <td style="width:16%;"></td>
164
+                        <td style="width:16%;"></td>
165
+                        <td style="width:16%;"></td>
166
+                        <td style="width:16%;"></td>
167
+                        <td style="width:16%;"></td>
168
+                    </tr>
169
+                    <tr>
170
+                        <td style="width:16%;">医生签字</td>
171
+                        <td style="width:16%;"></td>
172
+                        <td style="width:16%;"></td>
173
+                        <td style="width:16%;"></td>
174
+                        <td style="width:16%;"></td>
175
+                        <td style="width:16%;"></td>
176
+                    </tr>
177
+                    <tr>
178
+                        <td style="width:16px;">患者签字</td>
179
+                        <td style="width:16px;"></td>
180
+                        <td style="width:16px;"></td>
181
+                        <td style="width:16px;"></td>
182
+                        <td style="width:16px;"></td>
183
+                        <td style="width:16px;"></td>
184
+                    </tr>
185
+                </table>
186
+            </div>
187
+        </div>
94
     </div>
188
     </div>
95
 </template>
189
 </template>
96
 <script>
190
 <script>
101
       patient_id:Number,
195
       patient_id:Number,
102
       record_date:String,
196
       record_date:String,
103
       prescription_id:Number
197
       prescription_id:Number
104
-    }, 
198
+    },
105
     data(){
199
     data(){
106
       return {
200
       return {
107
         doctorList:[],
201
         doctorList:[],
131
       getAllDoctorList().then(response=>{
225
       getAllDoctorList().then(response=>{
132
         if(response.data.state == 1){
226
         if(response.data.state == 1){
133
                var doctor =  response.data.data.doctor
227
                var doctor =  response.data.data.doctor
134
-               
228
+
135
                this.doctorList = doctor
229
                this.doctorList = doctor
136
              }
230
              }
137
-         })   
231
+         })
138
      },
232
      },
139
 
233
 
140
       getDoctor(id){
234
       getDoctor(id){
160
           patient_id:this.$route.query.patient_id,
254
           patient_id:this.$route.query.patient_id,
161
           record_date:this.$route.query.record,
255
           record_date:this.$route.query.record,
162
           prescription_id:this.$route.query.prescription_id,
256
           prescription_id:this.$route.query.prescription_id,
163
-          ids:this.$route.query.ids, 
257
+          ids:this.$route.query.ids,
164
         }
258
         }
165
         console.log("999999",params)
259
         console.log("999999",params)
166
        getPrescriptionPrint(params).then(response=>{
260
        getPrescriptionPrint(params).then(response=>{
172
             var projectlist =  response.data.data.projectlist
266
             var projectlist =  response.data.data.projectlist
173
             console.log("所有项目列表",projectlist)
267
             console.log("所有项目列表",projectlist)
174
             this.projectList = projectlist
268
             this.projectList = projectlist
175
-            
269
+
176
           }
270
           }
177
        })
271
        })
178
      },
272
      },
196
      },
290
      },
197
 
291
 
198
        getTotalOne(id) {
292
        getTotalOne(id) {
199
-        
293
+
200
         var total = 0
294
         var total = 0
201
         var addtotal = 0
295
         var addtotal = 0
202
         for (let i = 0; i < this.prescriptions.length; i++) {
296
         for (let i = 0; i < this.prescriptions.length; i++) {
206
                 total = total + this.prescriptions[i].project[a].price * this.prescriptions[i].project[a].count
300
                 total = total + this.prescriptions[i].project[a].price * this.prescriptions[i].project[a].count
207
               }
301
               }
208
             }
302
             }
209
-          
303
+
210
             if (this.prescriptions[i].additionalcharge != null) {
304
             if (this.prescriptions[i].additionalcharge != null) {
211
               for (let a = 0; a < this.prescriptions[i].additionalcharge.length; a++) {
305
               for (let a = 0; a < this.prescriptions[i].additionalcharge.length; a++) {
212
                 addtotal = addtotal + this.prescriptions[i].additionalcharge[a].price * this.prescriptions[i].additionalcharge[a].count
306
                 addtotal = addtotal + this.prescriptions[i].additionalcharge[a].price * this.prescriptions[i].additionalcharge[a].count
216
         }
310
         }
217
         return total + addtotal
311
         return total + addtotal
218
        }
312
        }
219
-      }, 
313
+      },
220
    },
314
    },
221
    created(){
315
    created(){
222
       this.getAllDoctorList()
316
       this.getAllDoctorList()
233
 
327
 
234
 
328
 
235
 <style lang="scss" scoped>
329
 <style lang="scss" scoped>
330
+.prescription-print{
331
+    font-size: 14px;
332
+}
236
 .printTitle{
333
 .printTitle{
237
-    font-size: 22px;
334
+    font-size: 18px;
238
     text-align: center;
335
     text-align: center;
239
     font-weight: bold;
336
     font-weight: bold;
240
 }
337
 }
245
     line-height: 24px;
342
     line-height: 24px;
246
     padding:0 10px;
343
     padding:0 10px;
247
 }
344
 }
248
-.infoTitle p{
345
+.infoTitle div{
249
     width: 300px;
346
     width: 300px;
250
 }
347
 }
251
 .infoMain{
348
 .infoMain{
254
     border-bottom: 2px solid #000;
351
     border-bottom: 2px solid #000;
255
     padding:0 10px;
352
     padding:0 10px;
256
 }
353
 }
257
-.infoMain p{
354
+.infoMain div{
258
     width: 50%;
355
     width: 50%;
259
     line-height: 24px;
356
     line-height: 24px;
260
 }
357
 }
281
 }
378
 }
282
 .actionBar{
379
 .actionBar{
283
     display: flex;
380
     display: flex;
284
-    justify-content: space-between; 
381
+    justify-content: space-between;
285
     line-height: 24px;
382
     line-height: 24px;
286
     padding:0 10px;
383
     padding:0 10px;
287
 }
384
 }
288
-.actionBar p{
385
+.actionBar div{
289
     width:150px;
386
     width:150px;
290
 }
387
 }
291
 </style>
388
 </style>

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

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