瀏覽代碼

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

XMLWAN 4 年之前
父節點
當前提交
551743c714

+ 28 - 1
src/xt_pages/outpatientCharges/summary.vue 查看文件

106
                         <el-button size="mini" type="primary" @click="toRefund(scope.row)" v-if="(scope.row.order_status == 2 && $store.getters.xt_user.org_id == 10106)">
106
                         <el-button size="mini" type="primary" @click="toRefund(scope.row)" v-if="(scope.row.order_status == 2 && $store.getters.xt_user.org_id == 10106)">
107
                             退费
107
                             退费
108
                         </el-button>
108
                         </el-button>
109
+                        <!-- <el-button size="mini" type="primary" @click="invoicePrint(scope.row)">打印发票</el-button> -->
109
                     </template>
110
                     </template>
110
                 </el-table-column>
111
                 </el-table-column>
111
             </el-table>
112
             </el-table>
156
             <new-statement-print-two ref="print" :paramsObj='orderObj9504'></new-statement-print-two>
157
             <new-statement-print-two ref="print" :paramsObj='orderObj9504'></new-statement-print-two>
157
         </el-dialog>
158
         </el-dialog>
158
 
159
 
160
+        <!-- <el-dialog
161
+                class="centerDialog"
162
+                width="1200px"
163
+                title="打印"
164
+                :visible.sync="invoiceVisible">
165
+            <invoice-print ref="print" :invoiceParams='invoiceParams'></invoice-print>
166
+        </el-dialog> -->
167
+
159
 
168
 
160
     </div>
169
     </div>
161
 </template>
170
 </template>
171
   import NewStatementPrintTwo from './newStatementPrintTwo'
180
   import NewStatementPrintTwo from './newStatementPrintTwo'
172
   import { fetchAllAdminUsers } from '@/api/doctor'
181
   import { fetchAllAdminUsers } from '@/api/doctor'
173
   import axios from 'axios'
182
   import axios from 'axios'
183
+  // import invoicePrint from './invoicePrint'
174
 
184
 
175
   export default {
185
   export default {
176
     components: {
186
     components: {
178
       NewStatementPrint,
188
       NewStatementPrint,
179
       BreadCrumb,
189
       BreadCrumb,
180
       listPrint,
190
       listPrint,
181
-      allListPrint
191
+      allListPrint,
192
+      // invoicePrint
182
     },
193
     },
183
     data() {
194
     data() {
184
       return {
195
       return {
202
         listVisible: false,
213
         listVisible: false,
203
         allListVisible: false,
214
         allListVisible: false,
204
         adminUserOptions:[],
215
         adminUserOptions:[],
216
+        invoiceVisible:false,
217
+        paramsObj:{},
218
+        invoiceParams:{}
205
 
219
 
206
       }
220
       }
207
     },
221
     },
475
         } else if (index == 2) {
489
         } else if (index == 2) {
476
           this.allListVisible = true
490
           this.allListVisible = true
477
         }
491
         }
492
+      },
493
+      invoicePrint(obj){
494
+        console.log(obj)
495
+        let paramsObj = {
496
+          order_id: obj.order_info.order_id,
497
+          patient_id: obj.patient_id,
498
+          name:obj.patient.name,
499
+          age:obj.age,
500
+          gend:obj.gend,
501
+          setl_time:obj.setl_time
502
+        }
503
+        this.invoiceParams = paramsObj
504
+        this.invoiceVisible = true
478
       }
505
       }
479
     }, created() {
506
     }, created() {
480
 
507
 

+ 19 - 10
src/xt_pages/outpatientDoctorStation/recordTemplate/printOne.vue 查看文件

66
         </div>
66
         </div>
67
         <div class="otherInfo">
67
         <div class="otherInfo">
68
             <div class="otherName">药物过敏史:</div>
68
             <div class="otherName">药物过敏史:</div>
69
-            <div style="flex:1;">{{history.past_history?history.past_history:''}}</div>
69
+            <div style="flex:1;">{{history.allergic_history?history.allergic_history:''}}</div>
70
         </div>
70
         </div>
71
         <div class="otherInfo">
71
         <div class="otherInfo">
72
             <div class="otherName">个人史:</div>
72
             <div class="otherName">个人史:</div>
88
             <div class="otherName">门诊医嘱:</div>
88
             <div class="otherName">门诊医嘱:</div>
89
             <div style="flex:1;">{{history.doctor_advice?history.doctor_advice:''}}</div>
89
             <div style="flex:1;">{{history.doctor_advice?history.doctor_advice:''}}</div>
90
         </div>
90
         </div>
91
-        <div style="margin-top:20px;text-align:right;">
92
-            医生签名:{{getDoctor(history.doctor)?getDoctor(history.doctor):''}}
91
+        <div style="display:flex;justify-content: space-between;">
92
+            <div style="margin-top:20px;">
93
+                打印日期:{{ printDate }}
94
+            </div>
95
+            <div style="margin-top:20px;text-align:right;">
96
+                医生签名:{{getDoctor(history.doctor)?getDoctor(history.doctor):''}}
97
+            </div>
93
         </div>
98
         </div>
94
     </div>
99
     </div>
95
 </div>
100
 </div>
110
             educationOptions:[],
115
             educationOptions:[],
111
             departmentList:[],
116
             departmentList:[],
112
             orgname:'',
117
             orgname:'',
113
-            history:{}
118
+            history:{},
119
+            printDate:''
114
         }                   
120
         }                   
115
     },
121
     },
116
     methods:{
122
     methods:{
176
     }
182
     }
177
     },
183
     },
178
     created(){
184
     created(){
179
-      this.educationOptions = getDataConfig("patient", "education_types");
180
-      console.log("22222",this.educationOptions)
181
-      this.getAllDoctorList()
182
-      this.getPatientCaseHistory()
185
+        this.educationOptions = getDataConfig("patient", "education_types");
186
+        this.getAllDoctorList()
187
+        this.getPatientCaseHistory()
183
 
188
 
184
-     var xtuser = this.$store.getters.xt_user
185
-     this.orgname = xtuser.org.org_name
189
+        var xtuser = this.$store.getters.xt_user
190
+        this.orgname = xtuser.org.org_name
191
+        var data = new Date();
192
+        var month =data.getMonth() < 9 ? "0" + (data.getMonth() + 1) : data.getMonth() + 1;
193
+        var date = data.getDate() <= 9 ? "0" + data.getDate() : data.getDate();
194
+        this.printDate = data.getFullYear() + "-" + month + "-" + date;
186
     }
195
     }
187
 }
196
 }
188
 </script>
197
 </script>