See999 4 years ago
parent
commit
b098416f58

+ 21 - 2
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue View File

208
       </div>
208
       </div>
209
     </div>
209
     </div>
210
     <additionalCharges ref='additionalCharges' @click="addCharges" :addtions_charge="addtions_charge"></additionalCharges>
210
     <additionalCharges ref='additionalCharges' @click="addCharges" :addtions_charge="addtions_charge"></additionalCharges>
211
+    <el-dialog
212
+      class="centerDialog"
213
+      width="900px"
214
+      title="打印"
215
+      :visible.sync="treatVisible">
216
+      <treatPrint :paramsObj='paramsObj'></treatPrint>
217
+    </el-dialog>
211
   </div>
218
   </div>
212
 </template>
219
 </template>
213
 
220
 
221
   import additionalCharges from './components/additionalCharges'
228
   import additionalCharges from './components/additionalCharges'
222
   import { getPatientInformation, getPatientList } from '@/api/project/project'
229
   import { getPatientInformation, getPatientList } from '@/api/project/project'
223
   import { getPatientInfo, getSchedulePatientList, register, upload,Refund } from '@/api/his/his'
230
   import { getPatientInfo, getSchedulePatientList, register, upload,Refund } from '@/api/his/his'
231
+  import treatPrint from './treatPrint'
224
 
232
 
225
   const moment = require('moment')
233
   const moment = require('moment')
226
   export default {
234
   export default {
230
       charged,
238
       charged,
231
       medicalInsuranceRefund,
239
       medicalInsuranceRefund,
232
       prescriptionTable,
240
       prescriptionTable,
233
-      additionalCharges
241
+      additionalCharges,
242
+      treatPrint,
243
+      
234
     },
244
     },
235
     data() {
245
     data() {
236
       return {
246
       return {
276
         all_table_data:[],
286
         all_table_data:[],
277
         order:{},
287
         order:{},
278
         addtions_charge:[],
288
         addtions_charge:[],
289
+        treatVisible:false,
290
+        paramsObj:{}
279
       }
291
       }
280
     },
292
     },
281
     created() {
293
     created() {
478
           this.$router.push('/outpatientDoctorStation/printtwo?record=' + this.record_date)
490
           this.$router.push('/outpatientDoctorStation/printtwo?record=' + this.record_date)
479
 
491
 
480
         } else if (index == 3) {
492
         } else if (index == 3) {
481
-          this.$router.push('/outpatientCharges/treatPrint?record_date=' + this.record_date + '&patient_id=' + this.patient_id + '&prescription_id=' + this.prescription_id)
493
+          let obj = {
494
+            record_date:this.record_date,
495
+            patient_id:this.patient_id,
496
+            prescription_id:this.prescription_id
497
+          }
498
+          this.paramsObj = obj
499
+          this.treatVisible = true
500
+          // this.$router.push('/outpatientCharges/treatPrint?record_date=' + this.record_date + '&patient_id=' + this.patient_id + '&prescription_id=' + this.prescription_id)
482
         } else if (index == 4) {
501
         } else if (index == 4) {
483
 
502
 
484
           if(this.hisPatientInfo.id == 0){
503
           if(this.hisPatientInfo.id == 0){

+ 28 - 17
src/xt_pages/outpatientCharges/treatPrint.vue View File

1
 <template>
1
 <template>
2
-  <div class="main-contain">
3
-    <div class="position">
4
-      <bread-crumb :crumbs="crumbs"></bread-crumb>
5
-       <template>
6
-        <el-button
7
-          :loading="loading"
8
-          size="small"
9
-          icon="el-icon-printer"
10
-          @click="printThisPage"
11
-          type="primary"
12
-          >打印</el-button
13
-        >
14
-      </template>
15
-    </div>
16
-    <div class="app-container" style="min-height:0;">
17
-        <div class='dialysisPage' style="flex: 1;height: calc(100vh - 178px);overflow-x:auto;::-webkit-scrollbar:height:15px">
18
-            <printOne v-bind:childResponse="childResponse"></printOne>
2
+  <div>
3
+    <template>
4
+      <el-button
5
+        style="position:fixed;right:25px;z-index:999"
6
+        :loading="loading"
7
+        size="small"
8
+        icon="el-icon-printer"
9
+        @click="printThisPage"
10
+        type="primary"
11
+        >打印</el-button
12
+      >
13
+    </template>
14
+    <div class="app-container" style="padding-top:40px;">
15
+        <div class='dialysisPage'>
16
+            <printOne v-bind:childResponse="childResponse" :paramsObj="paramsObj"></printOne>
19
         </div>
17
         </div>
20
     </div>
18
     </div>
21
   </div>
19
   </div>
41
     BreadCrumb,
39
     BreadCrumb,
42
     printOne
40
     printOne
43
   },
41
   },
42
+  props:{
43
+    paramsObj:Object
44
+  },
44
   data() {
45
   data() {
45
     return {
46
     return {
46
       crumbs: [
47
       crumbs: [
48
         { path: false, name: "打印单" }
49
         { path: false, name: "打印单" }
49
       ],
50
       ],
50
       childResponse: {},
51
       childResponse: {},
52
+      paramsObj:{}
51
       
53
       
52
 
54
 
53
     };
55
     };
100
   },
102
   },
101
   created() {
103
   created() {
102
   },
104
   },
105
+  watch:{
106
+    paramsObj:{//深度监听,可监听到对象、数组的变化
107
+      handler(val, oldVal){
108
+        this.paramsObj = val
109
+        
110
+      },
111
+      deep:true
112
+    }
113
+  }
103
 };
114
 };
104
 </script>
115
 </script>
105
 
116
 

+ 27 - 3
src/xt_pages/outpatientCharges/treatTemplate/printOne.vue View File

93
           patient:{},
93
           patient:{},
94
       } 
94
       } 
95
     },
95
     },
96
+    props:{
97
+        paramsObj:Object
98
+    },
96
     methods:{
99
     methods:{
97
        getChargePrint(record_date,patient_id,prescription_id){
100
        getChargePrint(record_date,patient_id,prescription_id){
98
            var params = {
101
            var params = {
117
        }
120
        }
118
     },
121
     },
119
     created(){
122
     created(){
120
-       var record_date =  this.$route.query.record_date
123
+       var record_date =  this.paramsObj.record_date
121
        console.log("record_date",record_date)
124
        console.log("record_date",record_date)
122
-       var patient_id = this.$route.query.patient_id
125
+       var patient_id = this.paramsObj.patient_id
123
        console.log("patient_id",patient_id)
126
        console.log("patient_id",patient_id)
124
-       var prescription_id = this.$route.query.prescription_id
127
+       var prescription_id = this.paramsObj.prescription_id
125
        this.getChargePrint(record_date,patient_id,prescription_id)
128
        this.getChargePrint(record_date,patient_id,prescription_id)
126
 
129
 
130
+    },
131
+    watch:{
132
+        paramsObj:{//深度监听,可监听到对象、数组的变化
133
+        handler(val, oldVal){
134
+            this.paramsObj = val
135
+            this.patient_id = this.paramsObj.patient_id
136
+            var record_date = this.paramsObj.record
137
+            this.record_date = record_date
138
+            var prescription_id = this.paramsObj.prescription_id
139
+            this.prescription_id = prescription_id
140
+            
141
+        },
142
+        deep:true
143
+        }
127
     }
144
     }
128
 }
145
 }
129
 </script>
146
 </script>
130
 
147
 
131
 
148
 
132
 <style lang="scss" scoped>
149
 <style lang="scss" scoped>
150
+.prescription-print{
151
+    -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 60px rgba(0, 0, 0, 0.06) inset;
152
+    -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset; 
153
+    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
154
+    margin-bottom: 20px;
155
+    padding:20px 10px;
156
+}
133
 .printTitle{
157
 .printTitle{
134
     font-size: 22px;
158
     font-size: 22px;
135
     text-align: center;
159
     text-align: center;

+ 30 - 6
src/xt_pages/outpatientDoctorStation/doctorDesk.vue View File

114
     </el-table>
114
     </el-table>
115
     <el-dialog
115
     <el-dialog
116
       class="centerDialog"
116
       class="centerDialog"
117
-      width="560px"
117
+      width="600px"
118
       title="打印"
118
       title="打印"
119
       :visible.sync="innerVisible"
119
       :visible.sync="innerVisible"
120
       append-to-body>
120
       append-to-body>
121
       
121
       
122
-      <print :paramsObj='paramsObj'></print>
122
+      <print v-if="index == 2" :paramsObj='paramsObj'></print>
123
+      <treatPrint v-if="index == 6" :paramsObj='paramsObj'></treatPrint>
123
     </el-dialog>
124
     </el-dialog>
124
       <span slot="footer" class="dialog-footer">
125
       <span slot="footer" class="dialog-footer">
125
         <el-button @click="centerDialogVisible = false">取 消</el-button>
126
         <el-button @click="centerDialogVisible = false">取 消</el-button>
126
         <el-button type="primary" @click="savePrint">确 定</el-button>
127
         <el-button type="primary" @click="savePrint">确 定</el-button>
127
       </span>
128
       </span>
128
     </el-dialog>
129
     </el-dialog>
130
+    <el-dialog
131
+      class="centerDialog"
132
+      width="600px"
133
+      title="打印"
134
+      :visible.sync="recordVisible">
135
+      <recordPrint :patientid="patientid"></recordPrint>
136
+    </el-dialog>
129
 
137
 
130
   </div>
138
   </div>
131
 </template>
139
 </template>
141
   import { uParseTime } from '@/utils/tools'
149
   import { uParseTime } from '@/utils/tools'
142
   import { getPrescriptionList } from "@/api/project/project"
150
   import { getPrescriptionList } from "@/api/project/project"
143
   import print from './print'
151
   import print from './print'
152
+  import treatPrint from './treatPrint'
153
+  import recordPrint from './recordPrint'
144
   export default {
154
   export default {
145
     components: {
155
     components: {
146
       BreadCrumb,
156
       BreadCrumb,
148
       deskRecord,
158
       deskRecord,
149
       medicalRecord,
159
       medicalRecord,
150
       saveRecordTemplate,
160
       saveRecordTemplate,
151
-      print
161
+      print,
162
+      treatPrint,
163
+      recordPrint
152
     },
164
     },
153
     data() {
165
     data() {
154
       return {
166
       return {
196
         admin_info:{},
208
         admin_info:{},
197
         saveLoading:false,
209
         saveLoading:false,
198
         innerVisible:false,
210
         innerVisible:false,
199
-        paramsObj:{}
211
+        paramsObj:{},
212
+        recordVisible:false,
213
+        recordObj:{}
200
 
214
 
201
       }
215
       }
202
     },
216
     },
640
           }
654
           }
641
           this.$refs.child.createCaseHistory()
655
           this.$refs.child.createCaseHistory()
642
         } else if (index == 2) {
656
         } else if (index == 2) {
643
-          this.$router.push('/outpatientDoctorStation/recordPrint?record='+this.record_date+"&patient_id="+this.patientid)
657
+          this.recordVisible = true
658
+          // this.$router.push('/outpatientDoctorStation/recordPrint?record='+this.record_date+"&patient_id="+this.patientid)
644
         } else if (index == 3) {
659
         } else if (index == 3) {
645
            var mode_status =   this.$refs.saveRecordTemplate.mode_status
660
            var mode_status =   this.$refs.saveRecordTemplate.mode_status
646
            console.log("数据返回",mode_status)
661
            console.log("数据返回",mode_status)
713
           //  this.$router.push("/outpatientDoctorStation/print?record="+this.record_date+"&prescription_id="+this.prescription_id+"&ids="+ids+"&patient_id="+this.patientid)
728
           //  this.$router.push("/outpatientDoctorStation/print?record="+this.record_date+"&prescription_id="+this.prescription_id+"&ids="+ids+"&patient_id="+this.patientid)
714
          }
729
          }
715
          if(this.index == 6){
730
          if(this.index == 6){
716
-            this.$router.push("/outpatientDoctorStation/treatPrint?record="+this.record_date+"&prescription_id="+this.prescription_id+"&ids="+ids+"&patient_id="+this.patientid)
731
+          let obj = {
732
+            record:this.record_date,
733
+            prescription_id:this.prescription_id,
734
+            ids:ids,
735
+            patient_id:this.patientid
736
+          }
737
+          this.paramsObj = obj
738
+          this.innerVisible = true
739
+          // this.$router.push("/outpatientDoctorStation/treatPrint?record="+this.record_date+"&prescription_id="+this.prescription_id+"&ids="+ids+"&patient_id="+this.patientid)
717
          }
740
          }
718
       }
741
       }
719
     },
742
     },
1003
   .centerDialog{
1026
   .centerDialog{
1004
     .el-dialog__body{
1027
     .el-dialog__body{
1005
       max-height: calc(100vh - 100px) !important;
1028
       max-height: calc(100vh - 100px) !important;
1029
+      padding: 0 20px;
1006
     }
1030
     }
1007
   }
1031
   }
1008
 </style>
1032
 </style>

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

1
 <template>
1
 <template>
2
   <div>
2
   <div>
3
-       <template>
3
+      <template>
4
         <el-button
4
         <el-button
5
+          style="position:fixed;right:25px;z-index:999"
5
           :loading="loading"
6
           :loading="loading"
6
           size="small"
7
           size="small"
7
           icon="el-icon-printer"
8
           icon="el-icon-printer"
11
         >
12
         >
12
       </template>
13
       </template>
13
             
14
             
14
-    <div class='dialysisPage'>
15
+    <div class='dialysisPage' style="padding-top:40px;">
15
       <printOne v-bind:childResponse="childResponse" :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :doctorPorject="doctorPorject" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id"></printOne>
16
       <printOne v-bind:childResponse="childResponse" :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :doctorPorject="doctorPorject" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id"></printOne>
16
     </div>
17
     </div>
17
   </div>
18
   </div>

+ 19 - 39
src/xt_pages/outpatientDoctorStation/recordPrint.vue View File

1
 <template>
1
 <template>
2
-  <div class="main-contain">
3
-    <div class="position">
4
-      <bread-crumb :crumbs="crumbs"></bread-crumb>
5
-       <template>
6
-        <el-button
7
-          size="small"
8
-          icon="el-icon-printer"
9
-          @click="printThisPage"
10
-          type="primary"
11
-          >打印</el-button
12
-        >
13
-      </template>
14
-    </div>
15
-    <div class="app-container" style="min-height:0;">
16
-        <el-container class="newContainer">
17
-            <!-- <div style="width:270px;margin-right:20px;">
18
-                <div class="cell clearfix" style="margin-bottom:10px;">
19
-                    <el-input size="small"  v-model.trim="search_input" class="filter-item"/>
20
-                    <el-button size="small" class="filter-item" type="primary" :model="keyword" @click="searchAction">搜索</el-button>
21
-                </div>
22
-                <el-table ref="tab" @row-click="changePatient" highlight-current-row :data="patientTableData" height="480" border style="width: 100%">
23
-                    <el-table-column prop="date"  label="患者">
24
-                        <template slot-scope="scope">
25
-                            {{scope.row.patients.name?scope.row.patients.name:''}}
26
-                        </template>
27
-                    </el-table-column>
28
-                    <el-table-column prop="name" label="就诊号">
29
-                        <template slot-scope="scope">
30
-                           {{ scope.row.his_patient.number ?scope.row.his_patient.number:''}}
31
-                        </template>
32
-                    </el-table-column>
33
-                </el-table>
34
-            </div> -->
2
+  <div>
3
+    <template>
4
+      <el-button
5
+        style="position:fixed;right:25px;z-index:999"
6
+        size="small"
7
+        icon="el-icon-printer"
8
+        @click="printThisPage"
9
+        type="primary"
10
+        >打印</el-button
11
+      >
12
+    </template>
35
             
13
             
36
-            <div class='dialysisPage' style="flex: 1;height: calc(100vh - 178px);overflow-x:auto;::-webkit-scrollbar:height:15px">
37
-              <printOne v-bind:childResponse="childResponse" :patient="patient" :hispatient = "hispatient" :history="history"></printOne>
38
-            </div>
39
-        </el-container>
14
+    <div class='dialysisPage' style="padding-top:40px;">
15
+      <printOne v-bind:childResponse="childResponse" :patient="patient" :hispatient="hispatient" :history="history" :patientid="patientid"></printOne>
40
     </div>
16
     </div>
41
   </div>
17
   </div>
42
 </template>
18
 </template>
57
     BreadCrumb,
33
     BreadCrumb,
58
     printOne
34
     printOne
59
   },
35
   },
36
+  props:{
37
+    patientid:Number,
38
+  },
60
   data() {
39
   data() {
61
     return {
40
     return {
62
       crumbs: [
41
       crumbs: [
70
       hispatient:{},
49
       hispatient:{},
71
       educationOptions:[],
50
       educationOptions:[],
72
       history:{},
51
       history:{},
73
-      keyword:""
52
+      keyword:"",
53
+      patientid:''
74
     };
54
     };
75
   },
55
   },
76
   methods: {
56
   methods: {
160
     
140
     
161
   },
141
   },
162
   created() {
142
   created() {
163
-    this.getPatientList() 
143
+    // this.getPatientList() 
164
    
144
    
165
   },
145
   },
166
   // computed:{
146
   // computed:{

+ 14 - 3
src/xt_pages/outpatientDoctorStation/recordTemplate/printOne.vue View File

1
 <template>
1
 <template>
2
-    <div id='prescription-print' class="prescription-print">
2
+<div id='prescription-print'>
3
+    <div class="prescription-print">
3
         <div class="printTitle">门诊病历</div>
4
         <div class="printTitle">门诊病历</div>
4
         <div class="infoTitle">
5
         <div class="infoTitle">
5
             <div>姓名:{{patient.name?patient.name:''}}</div>
6
             <div>姓名:{{patient.name?patient.name:''}}</div>
37
             <div style="flex:1;">{{patient.id?patient.id:''}}</div>
38
             <div style="flex:1;">{{patient.id?patient.id:''}}</div>
38
         </div>
39
         </div>
39
         <div style="page-break-after:always;margin-top:50px;"></div>
40
         <div style="page-break-after:always;margin-top:50px;"></div>
41
+    </div>
40
 
42
 
41
-
43
+    <div class="prescription-print">
42
         <div class="printTitle">病历内容</div>
44
         <div class="printTitle">病历内容</div>
43
         <div class="recordTitle">
45
         <div class="recordTitle">
44
             <div>科别:{{getDeparment(hispatient.departments)?getDeparment(hispatient.departments):''}}</div>
46
             <div>科别:{{getDeparment(hispatient.departments)?getDeparment(hispatient.departments):''}}</div>
89
             医生签名:{{getDoctor(history.doctor)?getDoctor(history.doctor):''}}
91
             医生签名:{{getDoctor(history.doctor)?getDoctor(history.doctor):''}}
90
         </div>
92
         </div>
91
     </div>
93
     </div>
94
+</div>
92
 </template>
95
 </template>
93
 <script>
96
 <script>
94
 
97
 
98
     props:{
101
     props:{
99
       patient:Object,
102
       patient:Object,
100
       hispatient:Object,
103
       hispatient:Object,
104
+      patientid:Number
101
     //   history:Object,
105
     //   history:Object,
102
     },
106
     },
103
     data(){
107
     data(){
140
       getPatientCaseHistory(){
144
       getPatientCaseHistory(){
141
 
145
 
142
         const params = {
146
         const params = {
143
-          patient_id:this.$route.query.patient_id
147
+          patient_id:this.patientid
144
         }
148
         }
145
       console.log("病历22222",params)
149
       console.log("病历22222",params)
146
       getPatientCaseHistory(params).then(response=>{
150
       getPatientCaseHistory(params).then(response=>{
179
 
183
 
180
 
184
 
181
 <style lang="scss" scoped>
185
 <style lang="scss" scoped>
186
+.prescription-print{
187
+    -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 60px rgba(0, 0, 0, 0.06) inset;
188
+    -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset; 
189
+    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
190
+    margin-bottom: 20px;
191
+    padding:20px 10px;
192
+}
182
 .printTitle{
193
 .printTitle{
183
     font-size: 22px;
194
     font-size: 22px;
184
     text-align: center;
195
     text-align: center;

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

183
 
183
 
184
      
184
      
185
    },
185
    },
186
-  //  watch:{
187
-  //    patient_id:function(val){
188
-  //      console.log("101000010101010",this.patient_id,this.record_date,this.prescription_id)
189
-  //      this.getPrescriptionPrint()
190
-  //      this.getHisPatientDetail()
191
-  //    }
192
-  //  }
186
+   watch:{
187
+    ids:function(val){
188
+      this.ids = val
189
+      this.getPrescriptionPrint()
190
+    }
191
+   }
193
 }
192
 }
194
 </script>
193
 </script>
195
 
194
 
200
     -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset; 
199
     -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset; 
201
     box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
200
     box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
202
     margin-bottom: 20px;
201
     margin-bottom: 20px;
203
-    padding:20px 0px;
202
+    padding:20px 10px;
204
 }
203
 }
205
 .printTitle{
204
 .printTitle{
206
     font-size: 22px;
205
     font-size: 22px;

+ 32 - 32
src/xt_pages/outpatientDoctorStation/treatPrint.vue View File

1
 <template>
1
 <template>
2
-  <div class="main-contain">
3
-    <div class="position">
4
-      <bread-crumb :crumbs="crumbs"></bread-crumb>
2
+  <div>
5
        <template>
3
        <template>
6
         <el-button
4
         <el-button
5
+          style="position:fixed;right:25px;z-index:999"
7
           :loading="loading"
6
           :loading="loading"
8
           size="small"
7
           size="small"
9
           icon="el-icon-printer"
8
           icon="el-icon-printer"
12
           >打印</el-button
11
           >打印</el-button
13
         >
12
         >
14
       </template>
13
       </template>
15
-    </div>
16
-    <div class="app-container" style="min-height:0;">
17
-        <el-container class="newContainer">
18
-            <!-- <div style="width:270px;margin-right:20px;">
19
-                <div class="cell clearfix" style="margin-bottom:10px;">
20
-                    <el-input size="small"  v-model.trim="search_input" class="filter-item"/>
21
-                    <el-button size="small" class="filter-item" type="primary" @click="searchAction">搜索</el-button>
22
-                </div>
23
-                <el-table ref="tab"   @current-change="changePatient" highlight-current-row :data="patientTableData" 
24
-                 height="480" border style="width: 100%">
25
-                    <el-table-column prop="date"  label="患者">   
26
-                      <template slot-scope="scope">{{scope.row.patients?scope.row.patients.name:''}}</template> 
27
-                    </el-table-column>
28
-                    <el-table-column prop="name" label="就诊号">
29
-                        <template slot-scope="scope">{{ scope.row.his_patient ?scope.row.his_patient.number:''}}</template>
30
-                    </el-table-column>
31
-                </el-table>
32
-            </div> -->
33
             
14
             
34
-            <div class='dialysisPage' style="flex: 1;height: calc(100vh - 178px);overflow-x:auto;::-webkit-scrollbar:height:15px;margin:0 auto;width:960px;">
35
-              <printOne v-bind:childResponse="childResponse" :advicePrint="advicePrint" :patient="patient" :hisPatient="hisPatient" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id"></printOne>
36
-            </div>
37
-        </el-container>
38
-    </div>
15
+      <div class='dialysisPage' style="padding-top:40px;">
16
+        <printOne v-bind:childResponse="childResponse" :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id"></printOne>
17
+      </div>
39
   </div>
18
   </div>
40
 </template>
19
 </template>
41
 
20
 
57
     BreadCrumb,
36
     BreadCrumb,
58
     printOne
37
     printOne
59
   },
38
   },
39
+  props:{
40
+    paramsObj:Object
41
+  },
60
   data() {
42
   data() {
61
     return {
43
     return {
62
       crumbs: [
44
       crumbs: [
71
       search_input:"",
53
       search_input:"",
72
       loading:false,
54
       loading:false,
73
       patient_id:0,
55
       patient_id:0,
74
-      prescription_id:0
56
+      prescription_id:0,
57
+      ids:''
75
     };
58
     };
76
   },
59
   },
77
   methods:{
60
   methods:{
126
                 cal_two = cal_two + 1
109
                 cal_two = cal_two + 1
127
               }
110
               }
128
             }
111
             }
129
-            this.$refs.tab.setCurrentRow(this.patientTableData[0])
130
-            console.log(this.patientTableData[0])
131
-            this.choosePatient(this.patientTableData[0])
112
+            // this.$refs.tab.setCurrentRow(this.patientTableData[0])
113
+            // console.log(this.patientTableData[0])
114
+            // this.choosePatient(this.patientTableData[0])
132
             this.cal_one = cal_one
115
             this.cal_one = cal_one
133
             this.cal_two = cal_two   
116
             this.cal_two = cal_two   
134
          }
117
          }
169
 
152
 
170
   created() {
153
   created() {
171
     this.getAllDoctorList()
154
     this.getAllDoctorList()
172
-    var record_date = this.$route.query.record
155
+    var record_date = this.paramsObj.record
173
     this.record_date = record_date
156
     this.record_date = record_date
174
     console.log("record_date",record_date)
157
     console.log("record_date",record_date)
175
-    this.prescription_id = this.$route.query.prescription_id
158
+    this.prescription_id = this.paramsObj.prescription_id
159
+    this.patient_id = this.paramsObj.patient_id
160
+    this.ids = this.paramsObj.ids
176
     this.getAllHisPatientList(record_date)
161
     this.getAllHisPatientList(record_date)
177
   },
162
   },
163
+  watch:{
164
+    paramsObj:{//深度监听,可监听到对象、数组的变化
165
+      handler(val, oldVal){
166
+        this.paramsObj = val
167
+        this.patient_id = this.paramsObj.patient_id
168
+        var record_date = this.paramsObj.record
169
+        this.record_date = record_date
170
+        var prescription_id = this.paramsObj.prescription_id
171
+        this.prescription_id = prescription_id
172
+        this.ids = this.paramsObj.ids
173
+        
174
+      },
175
+      deep:true
176
+    }
177
+  }
178
 
178
 
179
 };
179
 };
180
 </script>
180
 </script>

+ 20 - 7
src/xt_pages/outpatientDoctorStation/treatTemplate/printOne.vue View File

102
      </div>
102
      </div>
103
 
103
 
104
 
104
 
105
-    <div id='prescriptionPrint'>
105
+    <!-- <div id='prescriptionPrint'>
106
 
106
 
107
         <div v-for="(item,index) in advicePrint" :key="index">
107
         <div v-for="(item,index) in advicePrint" :key="index">
108
             <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;">
204
 
204
 
205
         </div>
205
         </div>
206
 
206
 
207
-    </div>
207
+    </div> -->
208
   </div>
208
   </div>
209
 </template>
209
 </template>
210
 <script>
210
 <script>
214
     props:{
214
     props:{
215
       patient_id:Number,
215
       patient_id:Number,
216
       record_date:String,
216
       record_date:String,
217
-      prescription_id:Number
217
+      prescription_id:Number,
218
+      ids:String
218
     },
219
     },
219
     data(){
220
     data(){
220
       return {
221
       return {
271
         //   patient_id:this.patient_id,
272
         //   patient_id:this.patient_id,
272
         //   record_date:this.record_date,
273
         //   record_date:this.record_date,
273
         //   prescription_id:this.prescription_id,
274
         //   prescription_id:this.prescription_id,
274
-          patient_id:this.$route.query.patient_id,
275
-          record_date:this.$route.query.record,
276
-          prescription_id:this.$route.query.prescription_id,
277
-          ids:this.$route.query.ids,
275
+          patient_id:this.patient_id,
276
+          record_date:this.record_date,
277
+          prescription_id:this.prescription_id,
278
+          ids:this.ids,
278
         }
279
         }
279
         console.log("999999",params)
280
         console.log("999999",params)
280
        getPrescriptionPrint(params).then(response=>{
281
        getPrescriptionPrint(params).then(response=>{
340
      patient_id:function(val){
341
      patient_id:function(val){
341
        console.log("101000010101010",this.patient_id,this.record_date,this.prescription_id)
342
        console.log("101000010101010",this.patient_id,this.record_date,this.prescription_id)
342
     //    this.getPrescriptionPrint()
343
     //    this.getPrescriptionPrint()
344
+     },
345
+     ids:function(val){
346
+         this.ids = val
347
+         console.log('this.idsids',this.ids)
348
+         this.getPrescriptionPrint()
343
      }
349
      }
344
    }
350
    }
345
 }
351
 }
347
 
353
 
348
 
354
 
349
 <style lang="scss" scoped>
355
 <style lang="scss" scoped>
356
+.prescription-print{
357
+    -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 60px rgba(0, 0, 0, 0.06) inset;
358
+    -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset; 
359
+    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
360
+    margin-bottom: 20px;
361
+    padding:20px 10px;
362
+}
350
 .prescription-print{
363
 .prescription-print{
351
     font-size: 14px;
364
     font-size: 14px;
352
 }
365
 }