see999 3 years ago
parent
commit
3429e92c6f

+ 12 - 2
src/xt_pages/outpatientCharges/invoiceTemplate/printTwo.vue View File

18
             <div style="position: absolute;top:60px;left:120px;"> {{ paramsObj.name }}</div>
18
             <div style="position: absolute;top:60px;left:120px;"> {{ paramsObj.name }}</div>
19
             <div style="position: absolute;top:60px;left:210px;">√</div>
19
             <div style="position: absolute;top:60px;left:210px;">√</div>
20
             <!-- <div>{{ list.pay_way }}</div> -->
20
             <!-- <div>{{ list.pay_way }}</div> -->
21
-            <div style="position: absolute;top:60px;left:460px;">{{ paramsObj.setl_time.split(' ')[0] }}</div>
22
-            <div style="position: absolute;top:60px;left:640px;">{{ paramsObj.setl_time.split(' ')[0] }}</div>
21
+            <div style="position: absolute;top:60px;left:460px;">{{ getTime(list.date, '{y}-{m}-{d}') }}</div>
22
+            <div style="position: absolute;top:60px;left:640px;">{{ getTime(list.date, '{y}-{m}-{d}') }}</div>
23
         </div>
23
         </div>
24
         <div style="display:flex;justify-content: space-between;">
24
         <div style="display:flex;justify-content: space-between;">
25
             <!-- <div>{{ paramsObj.gend == 1 ? '男' : '女' }}</div> -->
25
             <!-- <div>{{ paramsObj.gend == 1 ? '男' : '女' }}</div> -->
115
 
115
 
116
 <script>
116
 <script>
117
 import { getInvoice } from '@/api/project/project'
117
 import { getInvoice } from '@/api/project/project'
118
+import { uParseTime } from '@/utils/tools'
118
 export default {
119
 export default {
119
     props:{
120
     props:{
120
         paramsObj:Object
121
         paramsObj:Object
202
             this.zhongwen =  str.replace(/零(仟|佰|拾|角)/g, "零").replace(/(零)+/g, "零").replace(/零(万|亿|元)/g, "$1").replace(/(亿)万|壹(拾)/g, "$1$2").replace(/^元零?|零分/g, "").replace(/元$/g, "元整");
203
             this.zhongwen =  str.replace(/零(仟|佰|拾|角)/g, "零").replace(/(零)+/g, "零").replace(/零(万|亿|元)/g, "$1").replace(/(亿)万|壹(拾)/g, "$1$2").replace(/^元零?|零分/g, "").replace(/元$/g, "元整");
203
             console.log(this.zhongwen)
204
             console.log(this.zhongwen)
204
         },
205
         },
206
+        getTime(value, temp) {
207
+            if (value == 0) {
208
+                return ''
209
+            }
210
+            if (value != undefined) {
211
+                return uParseTime(value, temp)
212
+            }
213
+            return ''
214
+        },
205
 
215
 
206
     },
216
     },
207
     watch:{
217
     watch:{

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

286
                                             <template slot-scope="scope">{{ scope.row.retail_price }}</template>
286
                                             <template slot-scope="scope">{{ scope.row.retail_price }}</template>
287
                                         </el-table-column>
287
                                         </el-table-column>
288
                                     </el-table>
288
                                     </el-table>
289
-                                    <div>{{3*(2/3)}}</div>
289
+                                    <!-- <div>{{3*(2/3)}}</div> -->
290
                                 </div>
290
                                 </div>
291
 
291
 
292
                             </el-tab-pane>
292
                             </el-tab-pane>

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

190
             <span slot="footer" class="dialog-footer">
190
             <span slot="footer" class="dialog-footer">
191
         <el-button @click="centerDialogVisible = false">取 消</el-button>
191
         <el-button @click="centerDialogVisible = false">取 消</el-button>
192
         <el-button type="primary" @click="savePrint">确 定</el-button>
192
         <el-button type="primary" @click="savePrint">确 定</el-button>
193
-      </span>
193
+      </span>
194
         </el-dialog>
194
         </el-dialog>
195
         <el-dialog
195
         <el-dialog
196
                 class="centerDialog"
196
                 class="centerDialog"
3577
           this.$refs.prescriptions.open(1, this.saveLoading)
3577
           this.$refs.prescriptions.open(1, this.saveLoading)
3578
         } else if (index == 2) {
3578
         } else if (index == 2) {
3579
 
3579
 
3580
-          this.getPrescriptionList(this.patientInfo.id)
3580
+          this.getPrescriptionList(this.patientInfo.id,1)
3581
           // this.$router.push("/outpatientDoctorStation/print?record="+this.record_date+"&prescription_id="+this.prescription_id)
3581
           // this.$router.push("/outpatientDoctorStation/print?record="+this.record_date+"&prescription_id="+this.prescription_id)
3582
         } else if (index == 3) {
3582
         } else if (index == 3) {
3583
           this.$refs.prescriptions.open(3)
3583
           this.$refs.prescriptions.open(3)
3585
           this.$refs.prescriptions.open(4)
3585
           this.$refs.prescriptions.open(4)
3586
         } else if (index == 6) {
3586
         } else if (index == 6) {
3587
           // this.$router.push("/outpatientDoctorStation/treatPrint?record="+this.record_date+"&prescription_id="+this.prescription_id)
3587
           // this.$router.push("/outpatientDoctorStation/treatPrint?record="+this.record_date+"&prescription_id="+this.prescription_id)
3588
-          this.getPrescriptionList(this.patientInfo.id)
3588
+          this.getPrescriptionList(this.patientInfo.id,2)
3589
           // this.$router.push("/outpatientDoctorStation/treatPrint?record="+this.record_date+"&prescription_id="+this.prescription_id)
3589
           // this.$router.push("/outpatientDoctorStation/treatPrint?record="+this.record_date+"&prescription_id="+this.prescription_id)
3590
 
3590
 
3591
         }
3591
         }
3626
         this.prescription_id = data
3626
         this.prescription_id = data
3627
       },
3627
       },
3628
 
3628
 
3629
-      getPrescriptionList(id) {
3629
+      getPrescriptionList(id,type) {
3630
         getPrescriptionList(id,2).then(response => {
3630
         getPrescriptionList(id,2).then(response => {
3631
           if (response.data.state == 1) {
3631
           if (response.data.state == 1) {
3632
             this.centerDialogVisible = true
3632
             this.centerDialogVisible = true
3633
             var list = response.data.data.list
3633
             var list = response.data.data.list
3634
+            let arr = []
3634
             for (let i = 0; i < list.length; i++) {
3635
             for (let i = 0; i < list.length; i++) {
3635
-              list[i].prescription_number = list[i].prescription_number + i
3636
+              if(list[i].type == type){
3637
+                list[i].prescription_number = list[i].prescription_number + i
3638
+                arr.push(list[i])
3639
+              }
3640
+              
3636
             }
3641
             }
3637
-            this.tableData = list
3642
+            this.tableData = arr
3638
           }
3643
           }
3639
         })
3644
         })
3640
       },
3645
       },
3643
       },
3648
       },
3644
       handleClick() {
3649
       handleClick() {
3645
         if(this.titleType == "电子处方"){
3650
         if(this.titleType == "电子处方"){
3646
-          this.getPatientInfo()
3651
+          if(this.radio == 1){
3652
+            this.un_cure_data.map(item => {
3653
+              if(item.id == this.patientid){
3654
+                this.getPatientInfo(item)
3655
+              }
3656
+            })
3657
+          }else if(this.radio == 2){
3658
+            this.cure_data.map(item => {
3659
+              if(item.id == this.patientid){
3660
+                this.getPatientInfo(item)
3661
+              }
3662
+            })
3663
+          }else{
3664
+            this.all_data.map(item => {
3665
+              if(item.id == this.patientid){
3666
+                this.getPatientInfo(item)
3667
+              }
3668
+            })
3669
+          }
3647
         }
3670
         }
3648
 
3671
 
3649
       },
3672
       },

+ 1 - 1
src/xt_pages/outpatientDoctorStation/prescriptionTemplate.vue View File

24
                               highlight-current-row
24
                               highlight-current-row
25
                               ref="tab">
25
                               ref="tab">
26
                         <el-table-column prop="name" label="姓名">
26
                         <el-table-column prop="name" label="姓名">
27
-                            <template slot-scope="scope">{{scope.row.name}}</template>
27
+                            <template slot-scope="scope">{{scope.row.name}}({{ scope.row.dialysis_no }})</template>
28
                         </el-table-column>
28
                         </el-table-column>
29
                     </el-table>
29
                     </el-table>
30
                 </div>
30
                 </div>

+ 2 - 2
src/xt_pages/outpatientDoctorStation/template/printThree.vue View File

35
               <div class="Rp">Rp:</div>
35
               <div class="Rp">Rp:</div>
36
               <div class="drugsBox" v-for="(it,index) in item.advices.slice(pageIndex * 5,(pageIndex * 5) + item.pageArr[pageIndex])" :key="index">
36
               <div class="drugsBox" v-for="(it,index) in item.advices.slice(pageIndex * 5,(pageIndex * 5) + item.pageArr[pageIndex])" :key="index">
37
                   <!-- <div class="drugsOne"><span style="font-weight:bold;">{{ index+1 + '.' }}</span>{{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> -->
37
                   <!-- <div class="drugsOne"><span style="font-weight:bold;">{{ index+1 + '.' }}</span>{{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> -->
38
-                  <div class="drugsOne"><span style="font-weight:bold;">{{ index+1 + '.' }}</span>{{it.advice_name?it.advice_name:""}}&nbsp;&nbsp;{{it.drug.drug_spec}}&nbsp;×&nbsp; {{it.prescribing_number}}{{it.prescribing_number_unit}}</div>
38
+                  <div class="drugsOne"><span style="font-weight:bold;">{{ index+1 + '.' }}</span>{{it.advice_name?it.advice_name:""}}&nbsp;&nbsp;<span v-if="it.drug.min_unit != it.drug.dose_unit">{{it.drug.dose}}{{it.drug.dose_unit}}&nbsp;* &nbsp;</span>{{it.drug.min_number}}{{it.drug.min_unit}}/{{it.drug.max_unit}}&nbsp;×&nbsp; {{it.prescribing_number}}{{it.prescribing_number_unit}}</div>
39
                   <div style="margin-left:100px;"><span>用法:{{it.single_dose}}{{it.single_dose_unit}}</span>&nbsp;&nbsp;<span>{{it.execution_frequency}}&nbsp;{{it.delivery_way}}&nbsp;</span>&nbsp;&nbsp;<span>{{it.advice_desc}}</span></div>
39
                   <div style="margin-left:100px;"><span>用法:{{it.single_dose}}{{it.single_dose_unit}}</span>&nbsp;&nbsp;<span>{{it.execution_frequency}}&nbsp;{{it.delivery_way}}&nbsp;</span>&nbsp;&nbsp;<span>{{it.advice_desc}}</span></div>
40
               </div>
40
               </div>
41
               <div class="drugsBox" v-for="(it,i) in item.additionalcharge" :key="i">
41
               <div class="drugsBox" v-for="(it,i) in item.additionalcharge" :key="i">
43
                </div>
43
                </div>
44
                
44
                
45
               <div class="drugsBox" v-for="(it,index) in item.project" :key="index">
45
               <div class="drugsBox" v-for="(it,index) in item.project" :key="index">
46
-                  <div class="drugsOne"><span style="font-weight:bold;">{{ index+1 + '.' }}</span>{{getProjectName(it.project_id)?getProjectName(it.project_id):""}}&nbsp;&nbsp;{{it.single_dose}}{{it.single_dose_unit}}&nbsp;×&nbsp; {{it.count}}{{unit}}</div>
46
+                  <div class="drugsOne"><span style="font-weight:bold;">{{ index+1 + '.' }}</span>{{ it.type == 2 ? it.project.project_name : it.good_info.good_name }}&nbsp;&nbsp;{{it.single_dose}}{{it.single_dose_unit}}&nbsp;×&nbsp; {{it.count}}{{unit}}</div>
47
                   <div style="margin-left:100px;"><span>用法:{{it.single_dose}}{{it.single_dose_unit}}</span>&nbsp;&nbsp;<span>{{it.delivery_way}}</span>&nbsp;&nbsp;<span>{{it.advice_desc}}</span></div>
47
                   <div style="margin-left:100px;"><span>用法:{{it.single_dose}}{{it.single_dose_unit}}</span>&nbsp;&nbsp;<span>{{it.delivery_way}}</span>&nbsp;&nbsp;<span>{{it.advice_desc}}</span></div>
48
               </div>
48
               </div>
49
               <div class="drugsBox" v-for="(it,i) in item.additionalcharge" :key="i">
49
               <div class="drugsBox" v-for="(it,i) in item.additionalcharge" :key="i">

+ 5 - 5
src/xt_pages/outpatientDoctorStation/treatTemplate/printTwo.vue View File

5
         <img src="../../../assets/img/bailinTop.jpg" style="width:100%" alt="">
5
         <img src="../../../assets/img/bailinTop.jpg" style="width:100%" alt="">
6
         <div class="printTitle">治疗单</div>
6
         <div class="printTitle">治疗单</div>
7
         <div style="display:flex;">
7
         <div style="display:flex;">
8
-            <div style="width:33%;display:flex;">费别:<span class="under_line">深圳医保1档</span></div>
9
-            <div style="width:33%;display:flex;">电脑号:<span class="under_line">1111111</span></div>
10
-            <div style="width:33%;display:flex;">处方编号:<span class="under_line">8972392771</span></div>
8
+            <div style="width:33%;display:flex;">费别:<span class="under_line"></span></div>
9
+            <div style="width:33%;display:flex;">电脑号:<span class="under_line"></span></div>
10
+            <div style="width:33%;display:flex;">处方编号:<span class="under_line"></span></div>
11
         </div>
11
         </div>
12
 
12
 
13
 
13
 
72
               <div class="Rp">Rp:</div>
72
               <div class="Rp">Rp:</div>
73
               <div class="drugsBox" v-for="(it,index) in item.advices" :key="index">
73
               <div class="drugsBox" v-for="(it,index) in item.advices" :key="index">
74
                   <!-- <div class="drugsOne"><span style="font-weight:bold;">{{ index+1 + '.' }}</span>{{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> -->
74
                   <!-- <div class="drugsOne"><span style="font-weight:bold;">{{ index+1 + '.' }}</span>{{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> -->
75
-                  <div class="drugsOne"><span style="font-weight:bold;">{{ index+1 + '.' }}</span>{{it.advice_name?it.advice_name:""}}&nbsp;&nbsp;{{it.drug.drug_spec}}&nbsp;×&nbsp; {{it.prescribing_number}}{{it.prescribing_number_unit}}</div>
75
+                  <div class="drugsOne"><span style="font-weight:bold;">{{ index+1 + '.' }}</span>{{it.advice_name?it.advice_name:""}}&nbsp;&nbsp;<span v-if="it.drug.min_unit != it.drug.dose_unit">{{it.drug.dose}}{{it.drug.dose_unit}}&nbsp;* &nbsp;</span>{{it.drug.min_number}}{{it.drug.min_unit}}/{{it.drug.max_unit}}&nbsp;×&nbsp; {{it.prescribing_number}}{{it.prescribing_number_unit}}</div>
76
               </div>
76
               </div>
77
               <div class="drugsBox" v-for="(it,index) in item.project" :key="index">
77
               <div class="drugsBox" v-for="(it,index) in item.project" :key="index">
78
-                  <div class="drugsOne"><span style="font-weight:bold;">{{ index+1 + '.' }}</span>{{getProjectName(it.project_id)?getProjectName(it.project_id):""}}&nbsp;&nbsp;{{it.single_dose}}{{it.single_dose_unit}}&nbsp;×&nbsp; {{it.count}}{{unit}}</div>
78
+                  <div class="drugsOne"><span style="font-weight:bold;">{{ index+1 + '.' }}</span>{{ it.type == 2 ? it.project.project_name : it.good_info.good_name }}&nbsp;&nbsp;{{it.single_dose}}{{it.single_dose_unit}}&nbsp;×&nbsp; {{it.count}}{{unit}}</div>
79
               </div>
79
               </div>
80
               <div style="text-align:center;" >(以下空白)</div>
80
               <div style="text-align:center;" >(以下空白)</div>
81
         </div>
81
         </div>