Przeglądaj źródła

Merge branch '20200710_pc_vue_new_branch' into 20200916_pc_vue_new_branch

csx 4 lat temu
rodzic
commit
d276408d99

+ 13 - 15
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue Wyświetl plik

@@ -82,6 +82,7 @@
82 82
                         <el-date-picker
83 83
                           v-model="record_date"
84 84
                           type="date"
85
+                          :clearable="false"
85 86
                           @change="changeDate"
86 87
                           format="yyyy-MM-dd"
87 88
                           value-format="yyyy-MM-dd"
@@ -416,24 +417,21 @@
416 417
         if (this.curPrescriptions.type == 1) {
417 418
           if (this.curPrescriptions.advices != null) {
418 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 426
         } else {
428 427
           var total = 0
429 428
           if (this.curPrescriptions.project != null) {
430 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,21 +441,21 @@
443 441
         for (let i = 0; i < this.prescriptions.length; i++) {
444 442
           if (this.prescriptions[i].advices != null) {
445 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 447
           if (this.prescriptions[i].project != null) {
450 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 460
       moreState(tab, event) {
463 461
         if (tab == 'more') {

+ 36 - 12
src/xt_pages/outpatientDoctorStation/components/newPrescriptionTable.vue Wyświetl plik

@@ -15,32 +15,42 @@
15 15
       </el-table-column>
16 16
       <el-table-column align="center" prop="name" width="50" label="用法">
17 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 22
         </template>
21 23
       </el-table-column>
22 24
       <el-table-column align="center" prop="name" width="50" label="频率">
23 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 29
         </template>
26 30
       </el-table-column>
27 31
 
28 32
       <el-table-column align="center" prop="name" width="100" label="总量">
29 33
         <template slot-scope="scope">
30 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 38
             <div>{{scope.row.prescribing_number_unit}}</div>
33 39
           </div>
34 40
         </template>
35 41
       </el-table-column>
36 42
       <el-table-column align="center" prop="name" width="50" label="单价">
37 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 47
         </template>
40 48
       </el-table-column>
41 49
       <el-table-column align="center" prop="name" width="50" label="备注">
42 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 54
         </template>
45 55
       </el-table-column>
46 56
     </el-table>
@@ -58,39 +68,53 @@
58 68
       </el-table-column>
59 69
       <el-table-column align="center" prop="single_dose" width="130" :label="'单次\n用量'">
60 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 74
         </template>
63 75
       </el-table-column>
64 76
       <el-table-column align="center" prop="delivery_way" width="130" label="用法">
65 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 81
         </template>
68 82
       </el-table-column>
69 83
       <el-table-column align="center" prop="execution_frequency" width="130" label="频率">
70 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 88
         </template>
73 89
       </el-table-column>
74 90
       <el-table-column align="center" prop="number_days" width="130" label="天数">
75 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 95
         </template>
78 96
       </el-table-column>
79 97
       <el-table-column align="center" prop="total" width="100" label="总量">
80 98
         <template slot-scope="scope">
81 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 103
           </div>
84 104
         </template>
85 105
       </el-table-column>
86 106
       <el-table-column align="center" prop="name" width="50" label="单价">
87 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 111
         </template>
90 112
       </el-table-column>
91 113
       <el-table-column align="center" prop="name" width="120" label="备注">
92 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 118
         </template>
95 119
       </el-table-column>
96 120
     </el-table>

+ 1 - 2
src/xt_pages/outpatientDoctorStation/doctorDesk.vue Wyświetl plik

@@ -253,6 +253,7 @@
253 253
           } else {
254 254
 
255 255
             this.prescriptions = []
256
+            this.addtions_charge = []
256 257
             this.patientInfo = response.data.data.xt_info
257 258
             this.hisPatientInfo = response.data.data.his_info
258 259
             this.case_history = response.data.data.case_history
@@ -262,8 +263,6 @@
262 263
             this.addtions_charge = response.data.data.addtions_charge
263 264
 
264 265
 
265
-
266
-
267 266
             this.patientInfo.birth = uParseTime(this.patientInfo.birthday, '{y}-{m}-{d}')
268 267
             if (this.case_history.temperature <= 0) {
269 268
               this.case_history.temperature = ''