浏览代码

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

XMLWAN 4 年前
父节点
当前提交
885ecb6372

+ 13 - 15
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue 查看文件

82
                         <el-date-picker
82
                         <el-date-picker
83
                           v-model="record_date"
83
                           v-model="record_date"
84
                           type="date"
84
                           type="date"
85
+                          :clearable="false"
85
                           @change="changeDate"
86
                           @change="changeDate"
86
                           format="yyyy-MM-dd"
87
                           format="yyyy-MM-dd"
87
                           value-format="yyyy-MM-dd"
88
                           value-format="yyyy-MM-dd"
416
         if (this.curPrescriptions.type == 1) {
417
         if (this.curPrescriptions.type == 1) {
417
           if (this.curPrescriptions.advices != null) {
418
           if (this.curPrescriptions.advices != null) {
418
             for (let a = 0; a < this.curPrescriptions.advices.length; a++) {
419
             for (let a = 0; a < this.curPrescriptions.advices.length; a++) {
419
-              console.log(this.curPrescriptions.advices[a].retail_price)
420
-              console.log(this.curPrescriptions.advices[a].prescribing_number)
420
+              total = total +  Math.floor((this.curPrescriptions.advices[a].retail_price * this.curPrescriptions.advices[a].prescribing_number)* 100) / 100
421
 
421
 
422
-              total = total + this.curPrescriptions.advices[a].retail_price * this.curPrescriptions.advices[a].prescribing_number
423
             }
422
             }
424
           }
423
           }
425
-          return total
424
+          return Math.floor(total * 100) / 100
426
 
425
 
427
         } else {
426
         } else {
428
           var total = 0
427
           var total = 0
429
           if (this.curPrescriptions.project != null) {
428
           if (this.curPrescriptions.project != null) {
430
             for (let b = 0; b < this.curPrescriptions.project.length; b++) {
429
             for (let b = 0; b < this.curPrescriptions.project.length; b++) {
431
-              console.log(this.curPrescriptions.project[b].price)
432
-              console.log(this.curPrescriptions.project[b].total)
433
-              total = total + this.curPrescriptions.project[b].price * this.curPrescriptions.project[b].total
430
+              total = total +  Math.floor((this.curPrescriptions.project[b].price * this.curPrescriptions.project[b].total) * 100) / 100
431
+
434
             }
432
             }
435
           }
433
           }
436
-          return total
434
+          return Math.floor(total * 100) / 100
437
 
435
 
438
         }
436
         }
439
 
437
 
443
         for (let i = 0; i < this.prescriptions.length; i++) {
441
         for (let i = 0; i < this.prescriptions.length; i++) {
444
           if (this.prescriptions[i].advices != null) {
442
           if (this.prescriptions[i].advices != null) {
445
             for (let a = 0; a < this.prescriptions[i].advices.length; a++) {
443
             for (let a = 0; a < this.prescriptions[i].advices.length; a++) {
446
-              total = total + this.prescriptions[i].advices[a].retail_price * this.prescriptions[i].advices[a].prescribing_number
444
+              total = total + Math.floor((this.prescriptions[i].advices[a].retail_price * this.prescriptions[i].advices[a].prescribing_number) * 100) / 100
447
             }
445
             }
448
           }
446
           }
449
           if (this.prescriptions[i].project != null) {
447
           if (this.prescriptions[i].project != null) {
450
             for (let b = 0; b < this.prescriptions[i].project.length; b++) {
448
             for (let b = 0; b < this.prescriptions[i].project.length; b++) {
451
-              total = total + this.prescriptions[i].project[b].price * this.prescriptions[i].project[b].total
449
+
450
+              total = total + Math.floor((this.prescriptions[i].project[b].price * this.prescriptions[i].project[b].total) * 100) / 100
452
             }
451
             }
453
           }
452
           }
454
 
453
 
454
+          for (let i = 0; i < this.addtions_charge.length; i++) {
455
+            total = total + Math.floor(this.addtions_charge[i].price * 100) / 100
456
+          }
457
+          return Math.floor(total * 100) / 100
455
         }
458
         }
456
-        for (let i = 0; i < this.addtions_charge.length; i++){
457
-          total = total +  this.addtions_charge[i].price
458
-        }
459
-        return Math.floor(total * 100) / 100
460
-
461
       },
459
       },
462
       moreState(tab, event) {
460
       moreState(tab, event) {
463
         if (tab == 'more') {
461
         if (tab == 'more') {

+ 36 - 12
src/xt_pages/outpatientDoctorStation/components/newPrescriptionTable.vue 查看文件

15
       </el-table-column>
15
       </el-table-column>
16
       <el-table-column align="center" prop="name" width="50" label="用法">
16
       <el-table-column align="center" prop="name" width="50" label="用法">
17
         <template slot-scope="scope">
17
         <template slot-scope="scope">
18
-          <el-input v-model="scope.row.delivery_way" readonly></el-input>
18
+          <!--<el-input v-model="scope.row.delivery_way" readonly></el-input>-->
19
+          <div> {{scope.row.delivery_way}}</div>
20
+
19
 
21
 
20
         </template>
22
         </template>
21
       </el-table-column>
23
       </el-table-column>
22
       <el-table-column align="center" prop="name" width="50" label="频率">
24
       <el-table-column align="center" prop="name" width="50" label="频率">
23
         <template slot-scope="scope">
25
         <template slot-scope="scope">
24
-          <el-input v-model="scope.row.execution_frequency" readonly></el-input>
26
+          <!--<el-input v-model="scope.row.execution_frequency" readonly></el-input>-->
27
+          <div> {{scope.row.execution_frequency}}</div>
28
+
25
         </template>
29
         </template>
26
       </el-table-column>
30
       </el-table-column>
27
 
31
 
28
       <el-table-column align="center" prop="name" width="100" label="总量">
32
       <el-table-column align="center" prop="name" width="100" label="总量">
29
         <template slot-scope="scope">
33
         <template slot-scope="scope">
30
           <div style="display:flex;">
34
           <div style="display:flex;">
31
-            <el-input v-model="scope.row.prescribing_number" style="width:50%" readonly placeholder=""></el-input>
35
+            <!--<el-input v-model="scope.row.prescribing_number" style="width:50%" readonly placeholder=""></el-input>-->
36
+            <div> {{scope.row.prescribing_number}}</div>
37
+
32
             <div>{{scope.row.prescribing_number_unit}}</div>
38
             <div>{{scope.row.prescribing_number_unit}}</div>
33
           </div>
39
           </div>
34
         </template>
40
         </template>
35
       </el-table-column>
41
       </el-table-column>
36
       <el-table-column align="center" prop="name" width="50" label="单价">
42
       <el-table-column align="center" prop="name" width="50" label="单价">
37
         <template slot-scope="scope">
43
         <template slot-scope="scope">
38
-          <el-input v-model="scope.row.retail_price" placeholder="" readonly></el-input>
44
+          <div> {{scope.row.retail_price}}</div>
45
+
46
+          <!--<el-input v-model="scope.row.retail_price" placeholder="" readonly></el-input>-->
39
         </template>
47
         </template>
40
       </el-table-column>
48
       </el-table-column>
41
       <el-table-column align="center" prop="name" width="50" label="备注">
49
       <el-table-column align="center" prop="name" width="50" label="备注">
42
         <template slot-scope="scope">
50
         <template slot-scope="scope">
43
-          <el-input v-model="scope.row.remark" style="width:50%" placeholder="" readonly></el-input>
51
+          <!--<el-input v-model="scope.row.remark" style="width:50%" placeholder="" readonly></el-input>-->
52
+          <div> {{scope.row.remark}}</div>
53
+
44
         </template>
54
         </template>
45
       </el-table-column>
55
       </el-table-column>
46
     </el-table>
56
     </el-table>
58
       </el-table-column>
68
       </el-table-column>
59
       <el-table-column align="center" prop="single_dose" width="130" :label="'单次\n用量'">
69
       <el-table-column align="center" prop="single_dose" width="130" :label="'单次\n用量'">
60
         <template slot-scope="scope">
70
         <template slot-scope="scope">
61
-          <el-input v-model="scope.row.single_dose" placeholder="" readonly></el-input>
71
+          <!--<el-input v-model="scope.row.single_dose" placeholder="" readonly></el-input>-->
72
+          <div> {{scope.row.single_dose}}</div>
73
+
62
         </template>
74
         </template>
63
       </el-table-column>
75
       </el-table-column>
64
       <el-table-column align="center" prop="delivery_way" width="130" label="用法">
76
       <el-table-column align="center" prop="delivery_way" width="130" label="用法">
65
         <template slot-scope="scope">
77
         <template slot-scope="scope">
66
-          <el-input v-model="scope.row.delivery_way" placeholder="" readonly></el-input>
78
+          <!--<el-input v-model="scope.row.delivery_way" placeholder="" readonly></el-input>-->
79
+          <div> {{scope.row.delivery_way}}</div>
80
+
67
         </template>
81
         </template>
68
       </el-table-column>
82
       </el-table-column>
69
       <el-table-column align="center" prop="execution_frequency" width="130" label="频率">
83
       <el-table-column align="center" prop="execution_frequency" width="130" label="频率">
70
         <template slot-scope="scope">
84
         <template slot-scope="scope">
71
-          <el-input v-model="scope.row.execution_frequency" placeholder="" readonly></el-input>
85
+          <!--<el-input v-model="scope.row.execution_frequency" placeholder="" readonly></el-input>-->
86
+          <div> {{scope.row.execution_frequency}}</div>
87
+
72
         </template>
88
         </template>
73
       </el-table-column>
89
       </el-table-column>
74
       <el-table-column align="center" prop="number_days" width="130" label="天数">
90
       <el-table-column align="center" prop="number_days" width="130" label="天数">
75
         <template slot-scope="scope">
91
         <template slot-scope="scope">
76
-          <el-input v-model="scope.row.number_days" placeholder="" readonly></el-input>
92
+          <!--<el-input v-model="scope.row.number_days" placeholder="" readonly></el-input>-->
93
+          <div> {{scope.row.number_days}}</div>
94
+
77
         </template>
95
         </template>
78
       </el-table-column>
96
       </el-table-column>
79
       <el-table-column align="center" prop="total" width="100" label="总量">
97
       <el-table-column align="center" prop="total" width="100" label="总量">
80
         <template slot-scope="scope">
98
         <template slot-scope="scope">
81
           <div style="display:flex;">
99
           <div style="display:flex;">
82
-            <el-input v-model="scope.row.total" style="width:50" placeholder="" readonly></el-input>
100
+            <!--<el-input v-model="scope.row.total" style="width:50" placeholder="" readonly></el-input>-->
101
+            <div> {{scope.row.total}}</div>
102
+
83
           </div>
103
           </div>
84
         </template>
104
         </template>
85
       </el-table-column>
105
       </el-table-column>
86
       <el-table-column align="center" prop="name" width="50" label="单价">
106
       <el-table-column align="center" prop="name" width="50" label="单价">
87
         <template slot-scope="scope">
107
         <template slot-scope="scope">
88
-          <el-input v-model="scope.row.price" placeholder="" readonly></el-input>
108
+          <!--<el-input v-model="scope.row.price" placeholder="" readonly></el-input>-->
109
+          <div> {{scope.row.price}}</div>
110
+
89
         </template>
111
         </template>
90
       </el-table-column>
112
       </el-table-column>
91
       <el-table-column align="center" prop="name" width="120" label="备注">
113
       <el-table-column align="center" prop="name" width="120" label="备注">
92
         <template slot-scope="scope">
114
         <template slot-scope="scope">
93
-          <el-input v-model="scope.row.remark" readonly></el-input>
115
+          <!--<el-input v-model="scope.row.remark" readonly></el-input>-->
116
+          <div> {{scope.row.remark}}</div>
117
+
94
         </template>
118
         </template>
95
       </el-table-column>
119
       </el-table-column>
96
     </el-table>
120
     </el-table>

+ 2 - 3
src/xt_pages/outpatientDoctorStation/doctorDesk.vue 查看文件

253
           } else {
253
           } else {
254
 
254
 
255
             this.prescriptions = []
255
             this.prescriptions = []
256
+            this.addtions_charge = []
256
             this.patientInfo = response.data.data.xt_info
257
             this.patientInfo = response.data.data.xt_info
257
             this.hisPatientInfo = response.data.data.his_info
258
             this.hisPatientInfo = response.data.data.his_info
258
             this.case_history = response.data.data.case_history
259
             this.case_history = response.data.data.case_history
262
             this.addtions_charge = response.data.data.addtions_charge
263
             this.addtions_charge = response.data.data.addtions_charge
263
 
264
 
264
 
265
 
265
-
266
-
267
             this.patientInfo.birth = uParseTime(this.patientInfo.birthday, '{y}-{m}-{d}')
266
             this.patientInfo.birth = uParseTime(this.patientInfo.birthday, '{y}-{m}-{d}')
268
             if (this.case_history.temperature <= 0) {
267
             if (this.case_history.temperature <= 0) {
269
               this.case_history.temperature = ''
268
               this.case_history.temperature = ''
371
         })
370
         })
372
       },
371
       },
373
       open(index) {
372
       open(index) {
374
-        if(this.prescriptionList.length == 0){
373
+        if(this.prescriptions.length == 0){
375
            this.$message.error("请先开处方")
374
            this.$message.error("请先开处方")
376
            return
375
            return
377
         }
376
         }