Selaa lähdekoodia

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

XMLWAN 3 vuotta sitten
vanhempi
commit
a7ba2c4530

+ 12 - 2
src/xt_pages/outpatientCharges/invoiceTemplate/printTwo.vue Näytä tiedosto

@@ -18,8 +18,8 @@
18 18
             <div style="position: absolute;top:60px;left:120px;"> {{ paramsObj.name }}</div>
19 19
             <div style="position: absolute;top:60px;left:210px;">√</div>
20 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 23
         </div>
24 24
         <div style="display:flex;justify-content: space-between;">
25 25
             <!-- <div>{{ paramsObj.gend == 1 ? '男' : '女' }}</div> -->
@@ -115,6 +115,7 @@
115 115
 
116 116
 <script>
117 117
 import { getInvoice } from '@/api/project/project'
118
+import { uParseTime } from '@/utils/tools'
118 119
 export default {
119 120
     props:{
120 121
         paramsObj:Object
@@ -202,6 +203,15 @@ export default {
202 203
             this.zhongwen =  str.replace(/零(仟|佰|拾|角)/g, "零").replace(/(零)+/g, "零").replace(/零(万|亿|元)/g, "$1").replace(/(亿)万|壹(拾)/g, "$1$2").replace(/^元零?|零分/g, "").replace(/元$/g, "元整");
203 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 217
     watch:{

+ 1 - 1
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue Näytä tiedosto

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

+ 30 - 7
src/xt_pages/outpatientDoctorStation/doctorDesk.vue Näytä tiedosto

@@ -190,7 +190,7 @@
190 190
             <span slot="footer" class="dialog-footer">
191 191
         <el-button @click="centerDialogVisible = false">取 消</el-button>
192 192
         <el-button type="primary" @click="savePrint">确 定</el-button>
193
-      </span>
193
+      </span>
194 194
         </el-dialog>
195 195
         <el-dialog
196 196
                 class="centerDialog"
@@ -3577,7 +3577,7 @@
3577 3577
           this.$refs.prescriptions.open(1, this.saveLoading)
3578 3578
         } else if (index == 2) {
3579 3579
 
3580
-          this.getPrescriptionList(this.patientInfo.id)
3580
+          this.getPrescriptionList(this.patientInfo.id,1)
3581 3581
           // this.$router.push("/outpatientDoctorStation/print?record="+this.record_date+"&prescription_id="+this.prescription_id)
3582 3582
         } else if (index == 3) {
3583 3583
           this.$refs.prescriptions.open(3)
@@ -3585,7 +3585,7 @@
3585 3585
           this.$refs.prescriptions.open(4)
3586 3586
         } else if (index == 6) {
3587 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 3589
           // this.$router.push("/outpatientDoctorStation/treatPrint?record="+this.record_date+"&prescription_id="+this.prescription_id)
3590 3590
 
3591 3591
         }
@@ -3626,15 +3626,20 @@
3626 3626
         this.prescription_id = data
3627 3627
       },
3628 3628
 
3629
-      getPrescriptionList(id) {
3629
+      getPrescriptionList(id,type) {
3630 3630
         getPrescriptionList(id,2).then(response => {
3631 3631
           if (response.data.state == 1) {
3632 3632
             this.centerDialogVisible = true
3633 3633
             var list = response.data.data.list
3634
+            let arr = []
3634 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,7 +3648,25 @@
3643 3648
       },
3644 3649
       handleClick() {
3645 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 Näytä tiedosto

@@ -24,7 +24,7 @@
24 24
                               highlight-current-row
25 25
                               ref="tab">
26 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 28
                         </el-table-column>
29 29
                     </el-table>
30 30
                 </div>

+ 2 - 2
src/xt_pages/outpatientDoctorStation/template/printThree.vue Näytä tiedosto

@@ -35,7 +35,7 @@
35 35
               <div class="Rp">Rp:</div>
36 36
               <div class="drugsBox" v-for="(it,index) in item.advices.slice(pageIndex * 5,(pageIndex * 5) + item.pageArr[pageIndex])" :key="index">
37 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 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 40
               </div>
41 41
               <div class="drugsBox" v-for="(it,i) in item.additionalcharge" :key="i">
@@ -43,7 +43,7 @@
43 43
                </div>
44 44
                
45 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 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 48
               </div>
49 49
               <div class="drugsBox" v-for="(it,i) in item.additionalcharge" :key="i">

+ 5 - 5
src/xt_pages/outpatientDoctorStation/treatTemplate/printTwo.vue Näytä tiedosto

@@ -5,9 +5,9 @@
5 5
         <img src="../../../assets/img/bailinTop.jpg" style="width:100%" alt="">
6 6
         <div class="printTitle">治疗单</div>
7 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 11
         </div>
12 12
 
13 13
 
@@ -72,10 +72,10 @@
72 72
               <div class="Rp">Rp:</div>
73 73
               <div class="drugsBox" v-for="(it,index) in item.advices" :key="index">
74 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 76
               </div>
77 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 79
               </div>
80 80
               <div style="text-align:center;" >(以下空白)</div>
81 81
         </div>