瀏覽代碼

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

csx 3 年之前
父節點
當前提交
3b9768bcda

+ 2 - 2
src/xt_pages/hospitalStation/components/deskPrescription.vue 查看文件

1689
       for (let i = 0; i < this.month_prescriptions.length; i++) {
1689
       for (let i = 0; i < this.month_prescriptions.length; i++) {
1690
         if (this.month_prescriptions[i].advices != null) {
1690
         if (this.month_prescriptions[i].advices != null) {
1691
           for (let a = 0; a < this.month_prescriptions[i].advices.length; a++) {
1691
           for (let a = 0; a < this.month_prescriptions[i].advices.length; a++) {
1692
-            total = total + (this.month_prescriptions[i].advices[a].retail_price.toFixed(2) * this.month_prescriptions[i].advices[a].prescribing_number)
1692
+            total = total + (this.month_prescriptions[i].advices[a].retail_price* this.month_prescriptions[i].advices[a].prescribing_number)
1693
           }
1693
           }
1694
         }
1694
         }
1695
         if (this.month_prescriptions[i].project != null) {
1695
         if (this.month_prescriptions[i].project != null) {
1696
           for (let b = 0; b < this.month_prescriptions[i].project.length; b++) {
1696
           for (let b = 0; b < this.month_prescriptions[i].project.length; b++) {
1697
-            total = total+ (this.month_prescriptions[i].project[b].price.toFixed(2) * this.month_prescriptions[i].project[b].total)
1697
+            total = total+ (this.month_prescriptions[i].project[b].price * this.month_prescriptions[i].project[b].total)
1698
           }
1698
           }
1699
         }
1699
         }
1700
 
1700
 

+ 4 - 6
src/xt_pages/hospitalStation/components/settlePrescriptionTable.vue 查看文件

66
       </el-table-column>
66
       </el-table-column>
67
       <el-table-column align="center" prop="name" width="60" label="单价">
67
       <el-table-column align="center" prop="name" width="60" label="单价">
68
         <template slot-scope="scope">
68
         <template slot-scope="scope">
69
-          <div>{{ scope.row.retail_price }}元</div>
69
+          <div>{{ scope.row.retail_price}}元</div>
70
 
70
 
71
           <!--<el-input v-model="scope.row.retail_price" placeholder="" readonly></el-input>-->
71
           <!--<el-input v-model="scope.row.retail_price" placeholder="" readonly></el-input>-->
72
         </template>
72
         </template>
75
         <template slot-scope="scope">
75
         <template slot-scope="scope">
76
           <div>
76
           <div>
77
             {{
77
             {{
78
-              (scope.row.prescribing_number * scope.row.retail_price).toFixed(
79
-                2
80
-              )
78
+              (scope.row.prescribing_number * scope.row.retail_price).toFixed(2)
81
             }}元
79
             }}元
82
           </div>
80
           </div>
83
 
81
 
211
       <el-table-column align="center" prop="name" width="50" label="单价">
209
       <el-table-column align="center" prop="name" width="50" label="单价">
212
         <template slot-scope="scope">
210
         <template slot-scope="scope">
213
           <!--<el-input v-model="scope.row.price" placeholder="" readonly></el-input>-->
211
           <!--<el-input v-model="scope.row.price" placeholder="" readonly></el-input>-->
214
-          {{ scope.row.price }}元
212
+          {{ scope.row.price.toFixed(2) }}元
215
         </template>
213
         </template>
216
       </el-table-column>
214
       </el-table-column>
217
 
215
 
218
       <el-table-column align="center" prop="name" width="60" label="总价">
216
       <el-table-column align="center" prop="name" width="60" label="总价">
219
         <template slot-scope="scope">
217
         <template slot-scope="scope">
220
-          <div>{{ (scope.row.total * scope.row.price).toFixed(2) }}元</div>
218
+          <div>{{ (scope.row.total * scope.row.price.toFixed(2)) }}元</div>
221
 
219
 
222
           <!--<el-input v-model="scope.row.retail_price" placeholder="" readonly></el-input>-->
220
           <!--<el-input v-model="scope.row.retail_price" placeholder="" readonly></el-input>-->
223
         </template>
221
         </template>

+ 2 - 2
src/xt_pages/hospitalStation/invoiceTemplate/printTwo.vue 查看文件

6
         </div>
6
         </div>
7
         <div style="display:flex;justify-content: space-between;">
7
         <div style="display:flex;justify-content: space-between;">
8
             <!-- <div>{{ list.department_name }}</div> -->
8
             <!-- <div>{{ list.department_name }}</div> -->
9
-            <div  style="position: absolute;top:50px;left:260px">{{ list.his_hospital_record.id_card_no }}</div>
9
+            <div  style="position: absolute;top:50px;left:260px">{{ list.his_hospital_record.id_card_no?list.order.certno:''}}</div>
10
             <div></div>
10
             <div></div>
11
         </div>
11
         </div>
12
         <div style="display:flex;justify-content: space-between;">
12
         <div style="display:flex;justify-content: space-between;">
13
             <!-- <div>{{ list.department_name }}</div> -->
13
             <!-- <div>{{ list.department_name }}</div> -->
14
             <div  style="position: absolute;top:70px;left:90px">门诊</div>
14
             <div  style="position: absolute;top:70px;left:90px">门诊</div>
15
             <div></div>
15
             <div></div>
16
-            <div  style="position: absolute;top:70px;left:240px">{{ list.his_hospital_record.number }}</div>
16
+            <div  style="position: absolute;top:70px;left:240px">{{ list.his_hospital_record.number?list.order.mdtrt_id:''}}</div>
17
             <div  style="position: absolute;left:470px;top:70px;">
17
             <div  style="position: absolute;left:470px;top:70px;">
18
                 <span>{{  paramsObj.setl_time ? paramsObj.setl_time.split(' ')[0].slice(0,4) : getTime(list.date, '{y}-{m}-{d}').slice(0,4) }}</span>
18
                 <span>{{  paramsObj.setl_time ? paramsObj.setl_time.split(' ')[0].slice(0,4) : getTime(list.date, '{y}-{m}-{d}').slice(0,4) }}</span>
19
             </div>
19
             </div>

+ 3 - 3
src/xt_pages/hospitalStation/outpatientChargesManagement.vue 查看文件

1211
       if (this.curSettlePrescriptions.type == 1) {
1211
       if (this.curSettlePrescriptions.type == 1) {
1212
         if (this.curSettlePrescriptions.advices != null) {
1212
         if (this.curSettlePrescriptions.advices != null) {
1213
           for (let a = 0; a < this.curSettlePrescriptions.advices.length; a++) {
1213
           for (let a = 0; a < this.curSettlePrescriptions.advices.length; a++) {
1214
-            total = parseFloat(total) + parseFloat(this.curSettlePrescriptions.advices[a].retail_price * this.curSettlePrescriptions.advices[a].prescribing_number)
1214
+            total = parseFloat(total) + parseFloat(this.curSettlePrescriptions.advices[a].retail_price.toFixed(2)  * this.curSettlePrescriptions.advices[a].prescribing_number)
1215
 
1215
 
1216
           }
1216
           }
1217
         }
1217
         }
1218
       } else {
1218
       } else {
1219
         if (this.curSettlePrescriptions.project != null) {
1219
         if (this.curSettlePrescriptions.project != null) {
1220
           for (let b = 0; b < this.curSettlePrescriptions.project.length; b++) {
1220
           for (let b = 0; b < this.curSettlePrescriptions.project.length; b++) {
1221
-            total = parseFloat(total) + parseFloat(this.curSettlePrescriptions.project[b].price  * this.curSettlePrescriptions.project[b].total)
1221
+            total = parseFloat(total) + parseFloat(this.curSettlePrescriptions.project[b].price.toFixed(2)   * this.curSettlePrescriptions.project[b].total)
1222
 
1222
 
1223
           }
1223
           }
1224
         }
1224
         }
1249
         }
1249
         }
1250
 
1250
 
1251
       }
1251
       }
1252
-      return total
1252
+      return total.toFixed(2)
1253
 
1253
 
1254
     },
1254
     },
1255
     getTotal() {
1255
     getTotal() {

+ 2 - 2
src/xt_pages/outpatientCharges/invoiceTemplate/printFour.vue 查看文件

6
         </div>
6
         </div>
7
         <div style="display:flex;justify-content: space-between;">
7
         <div style="display:flex;justify-content: space-between;">
8
             <!-- <div>{{ list.department_name }}</div> -->
8
             <!-- <div>{{ list.department_name }}</div> -->
9
-            <div  style="position: absolute;top:50px;left:260px">{{ list.id_card_no }}</div>
9
+            <div  style="position: absolute;top:50px;left:260px">{{ list.order.certno }}</div>
10
             <div></div>
10
             <div></div>
11
         </div>
11
         </div>
12
         <div style="display:flex;justify-content: space-between;">
12
         <div style="display:flex;justify-content: space-between;">
13
             <!-- <div>{{ list.department_name }}</div> -->
13
             <!-- <div>{{ list.department_name }}</div> -->
14
             <div  style="position: absolute;top:70px;left:90px">门诊</div>
14
             <div  style="position: absolute;top:70px;left:90px">门诊</div>
15
             <div></div>
15
             <div></div>
16
-            <div  style="position: absolute;top:70px;left:240px">{{ list.number }}</div>
16
+            <div  style="position: absolute;top:70px;left:240px">{{ list.order.mdtrt_id }}</div>
17
             <div  style="position: absolute;left:470px;top:70px;">
17
             <div  style="position: absolute;left:470px;top:70px;">
18
                 <span>{{  paramsObj.setl_time ? paramsObj.setl_time.split(' ')[0].slice(0,4) : getTime(list.date, '{y}-{m}-{d}').slice(0,4) }}</span>
18
                 <span>{{  paramsObj.setl_time ? paramsObj.setl_time.split(' ')[0].slice(0,4) : getTime(list.date, '{y}-{m}-{d}').slice(0,4) }}</span>
19
             </div>
19
             </div>