Browse Source

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

XMLWAN 3 years ago
parent
commit
cb0357cc44

+ 1 - 1
src/xt_pages/dialysis/dialysisPrintOrder.vue View File

511
             icon="el-icon-printer"
511
             icon="el-icon-printer"
512
             @click="printThisOnePage"
512
             @click="printThisOnePage"
513
             type="primary"
513
             type="primary"
514
-            >打印录单</el-button
514
+            >打印录单</el-button
515
           >
515
           >
516
           <el-button
516
           <el-button
517
             :loading="loading"
517
             :loading="loading"

+ 2 - 5
src/xt_pages/dialysis/template/DialysisPrintOrderThirtySix.vue View File

262
                     </td>
262
                     </td>
263
                     <td width='30'></td>
263
                     <td width='30'></td>
264
                     <td width='50'>导管:</td>
264
                     <td width='50'>导管:</td>
265
-                    <td width='60'>腔外露</td>
265
+                    <td width='60'>腔外露</td>
266
                     <td width="60">
266
                     <td width="60">
267
                       <div class="under-line">
267
                       <div class="under-line">
268
                         &nbsp;
268
                         &nbsp;
573
                     <img class="es-img" style="height:38px" :src="setAdminUserES(dialysisOrder==null?0:dialysisOrder.washpipe_nurse)" alt="" srcset="" v-else>
573
                     <img class="es-img" style="height:38px" :src="setAdminUserES(dialysisOrder==null?0:dialysisOrder.washpipe_nurse)" alt="" srcset="" v-else>
574
                 </div>
574
                 </div>
575
             </td>
575
             </td>
576
-            <td width="100">穿刺/开管护士:</td>
576
+            <td width="100">穿刺护士:</td>
577
             <td width="100">
577
             <td width="100">
578
 
578
 
579
                 <div>
579
                 <div>
580
                     <span v-if="setAdminUserES(dialysisOrder==null?0:dialysisOrder.puncture_nurse) == ''">{{getAdminUser(dialysisOrder==null?0:dialysisOrder.puncture_nurse)}}</span>
580
                     <span v-if="setAdminUserES(dialysisOrder==null?0:dialysisOrder.puncture_nurse) == ''">{{getAdminUser(dialysisOrder==null?0:dialysisOrder.puncture_nurse)}}</span>
581
                     <img class="es-img" style="height:38px" :src="setAdminUserES(dialysisOrder==null?0:dialysisOrder.puncture_nurse)" alt="" srcset="" v-else>
581
                     <img class="es-img" style="height:38px" :src="setAdminUserES(dialysisOrder==null?0:dialysisOrder.puncture_nurse)" alt="" srcset="" v-else>
582
-                    /
583
-                    <span v-if="setAdminUserES(dialysisOrder==null?0:dialysisOrder.new_fistula_nurse) == ''">{{getAdminUser(dialysisOrder==null?0:dialysisOrder.new_fistula_nurse)}}</span>
584
-                    <img class="es-img" style="height:38px" :src="setAdminUserES(dialysisOrder==null?0:dialysisOrder.new_fistula_nurse)" alt="" srcset="" v-else>
585
                 </div>
582
                 </div>
586
             </td>
583
             </td>
587
             <td width="70">核对护士:</td>
584
             <td width="70">核对护士:</td>

+ 5 - 76
src/xt_pages/hospitalStation/outpatientChargesManagement.vue View File

1205
           }
1205
           }
1206
         }
1206
         }
1207
 
1207
 
1208
-        if (this.curPrescriptions.addition != null) {
1209
-          for (let b = 0; b < this.curPrescriptions.addition.length; b++) {
1210
-            total = parseFloat(total) + parseFloat(this.curPrescriptions.addition[b].price * this.curPrescriptions.addition[b].count)
1211
-          }
1212
-        }
1208
+
1213
         return total.toFixed(2)
1209
         return total.toFixed(2)
1214
 
1210
 
1215
       }, getMonthTotalOne() {
1211
       }, getMonthTotalOne() {
1230
           }
1226
           }
1231
         }
1227
         }
1232
 
1228
 
1233
-        if (this.curMonthPrescriptions.addition != null) {
1234
-          for (let b = 0; b < this.curMonthPrescriptions.addition.length; b++) {
1235
-            total = parseFloat(total) + parseFloat(this.curMonthPrescriptions.addition[b].price * this.curMonthPrescriptions.addition[b].count)
1236
-          }
1237
-        }
1238
         return total.toFixed(2)
1229
         return total.toFixed(2)
1239
 
1230
 
1240
       },
1231
       },
1252
               total = parseFloat(total) + parseFloat(this.prescriptions[i].project[b].price * this.prescriptions[i].project[b].total)
1243
               total = parseFloat(total) + parseFloat(this.prescriptions[i].project[b].price * this.prescriptions[i].project[b].total)
1253
             }
1244
             }
1254
           }
1245
           }
1255
-          if (this.prescriptions[i].addition != null) {
1256
-            for (let b = 0; b < this.prescriptions[i].addition.length; b++) {
1257
-              total = parseFloat(total) + parseFloat(this.prescriptions[i].addition[b].price * this.prescriptions[i].addition[b].count)
1258
-            }
1259
-          }
1246
+
1260
         }
1247
         }
1261
         return total.toFixed(2)
1248
         return total.toFixed(2)
1262
 
1249
 
1275
             }
1262
             }
1276
           }
1263
           }
1277
 
1264
 
1278
-          if (this.month_prescriptions[i].addition != null) {
1279
-            for (let b = 0; b < this.month_prescriptions[i].addition.length; b++) {
1280
-              total = parseFloat(total) + parseFloat(this.month_prescriptions[i].addition[a].price * this.month_prescriptions[i].addition[b].count)
1281
-            }
1282
-          }
1265
+
1283
         }
1266
         }
1284
         return total.toFixed(2)
1267
         return total.toFixed(2)
1285
 
1268
 
1374
               for (let a = 0; a < this.prescriptions[i].advices.length; a++) {
1357
               for (let a = 0; a < this.prescriptions[i].advices.length; a++) {
1375
                 ids.push(this.prescriptions[i].advices[a].id)
1358
                 ids.push(this.prescriptions[i].advices[a].id)
1376
               }
1359
               }
1377
-              for (let a = 0; a < this.prescriptions[i].addition.length; a++) {
1378
-                ids.push(this.prescriptions[i].addition[a].id)
1379
-              }
1360
+
1380
 
1361
 
1381
               for (let a = 0; a < this.prescriptions[i].project.length; a++) {
1362
               for (let a = 0; a < this.prescriptions[i].project.length; a++) {
1382
                 ids.push(this.prescriptions[i].project[a].id)
1363
                 ids.push(this.prescriptions[i].project[a].id)
1394
                 ids.push(this.month_prescriptions[i].advices[a].id)
1375
                 ids.push(this.month_prescriptions[i].advices[a].id)
1395
               }
1376
               }
1396
 
1377
 
1397
-              for (let a = 0; a < this.month_prescriptions[i].addition.length; a++) {
1398
-                ids.push(this.month_prescriptions[i].addition[a].id)
1399
-              }
1400
-
1401
               for (let a = 0; a < this.month_prescriptions[i].project.length; a++) {
1378
               for (let a = 0; a < this.month_prescriptions[i].project.length; a++) {
1402
                 ids.push(this.month_prescriptions[i].project[a].id)
1379
                 ids.push(this.month_prescriptions[i].project[a].id)
1403
               }
1380
               }
1832
               for (let a = 0; a < this.prescriptions[i].advices.length; a++) {
1809
               for (let a = 0; a < this.prescriptions[i].advices.length; a++) {
1833
                 ids.push(this.prescriptions[i].advices[a].id)
1810
                 ids.push(this.prescriptions[i].advices[a].id)
1834
               }
1811
               }
1835
-              for (let a = 0; a < this.prescriptions[i].addition.length; a++) {
1836
-                ids.push(this.prescriptions[i].addition[a].id)
1837
-              }
1838
 
1812
 
1839
               for (let a = 0; a < this.prescriptions[i].project.length; a++) {
1813
               for (let a = 0; a < this.prescriptions[i].project.length; a++) {
1840
                 ids.push(this.prescriptions[i].project[a].id)
1814
                 ids.push(this.prescriptions[i].project[a].id)
1850
                 ids.push(this.month_prescriptions[i].advices[a].id)
1824
                 ids.push(this.month_prescriptions[i].advices[a].id)
1851
               }
1825
               }
1852
 
1826
 
1853
-              for (let a = 0; a < this.month_prescriptions[i].addition.length; a++) {
1854
-                ids.push(this.month_prescriptions[i].addition[a].id)
1855
-              }
1856
 
1827
 
1857
               for (let a = 0; a < this.month_prescriptions[i].project.length; a++) {
1828
               for (let a = 0; a < this.month_prescriptions[i].project.length; a++) {
1858
                 ids.push(this.month_prescriptions[i].project[a].id)
1829
                 ids.push(this.month_prescriptions[i].project[a].id)
1922
               for (let a = 0; a < this.prescriptions[i].advices.length; a++) {
1893
               for (let a = 0; a < this.prescriptions[i].advices.length; a++) {
1923
                 ids.push(this.prescriptions[i].advices[a].id)
1894
                 ids.push(this.prescriptions[i].advices[a].id)
1924
               }
1895
               }
1925
-              for (let a = 0; a < this.prescriptions[i].addition.length; a++) {
1926
-                ids.push(this.prescriptions[i].addition[a].id)
1927
-              }
1928
 
1896
 
1929
               for (let a = 0; a < this.prescriptions[i].project.length; a++) {
1897
               for (let a = 0; a < this.prescriptions[i].project.length; a++) {
1930
                 ids.push(this.prescriptions[i].project[a].id)
1898
                 ids.push(this.prescriptions[i].project[a].id)
1941
                 ids.push(this.month_prescriptions[i].advices[a].id)
1909
                 ids.push(this.month_prescriptions[i].advices[a].id)
1942
               }
1910
               }
1943
 
1911
 
1944
-              for (let a = 0; a < this.month_prescriptions[i].addition.length; a++) {
1945
-                ids.push(this.month_prescriptions[i].addition[a].id)
1946
-              }
1947
 
1912
 
1948
               for (let a = 0; a < this.month_prescriptions[i].project.length; a++) {
1913
               for (let a = 0; a < this.month_prescriptions[i].project.length; a++) {
1949
                 ids.push(this.month_prescriptions[i].project[a].id)
1914
                 ids.push(this.month_prescriptions[i].project[a].id)
2545
               project_month_prescriptions.project.push(month_prescriptions[i].project[a])
2510
               project_month_prescriptions.project.push(month_prescriptions[i].project[a])
2546
             }
2511
             }
2547
           }
2512
           }
2548
-          //附加收费
2549
-          for (let a = 0; a < month_prescriptions[i].addition.length; a++) {
2550
-            let obj = {
2551
-              id: month_prescriptions[i].addition[a].item_id,
2552
-              price: month_prescriptions[i].addition[a].price
2553
-
2554
-            }
2555
-            additions_ids.push(obj)
2556
-            addition_month_prescriptions.addition.push(month_prescriptions[i].addition[a])
2557
 
2513
 
2558
-          }
2559
 
2514
 
2560
         }
2515
         }
2561
 
2516
 
2631
           projects.push(obj)
2586
           projects.push(obj)
2632
         }
2587
         }
2633
 
2588
 
2634
-        for (let i = 0; i < additions_ids.length; i++) {
2635
-          let obj = {}
2636
-          let count = 0
2637
-          if (addition_month_prescriptions.addition) {
2638
-            for (let a = 0; a < addition_month_prescriptions.addition.length; a++) {
2639
-              if (additions_ids[i].price == addition_month_prescriptions.addition[a].price && additions_ids[i].id == addition_month_prescriptions.addition[a].item_id) {
2640
-                obj['item_name'] = addition_month_prescriptions.addition[a].item_name
2641
-                obj['id'] = addition_month_prescriptions.addition[a].id
2642
-                obj['item_id'] = addition_month_prescriptions.addition[a].item_id
2643
-                count = count + addition_month_prescriptions.addition[a].count
2644
-                obj['price'] = parseFloat(addition_month_prescriptions.addition[a].price)
2645
-              }
2646
-            }
2647
-            obj['count'] = count
2648
-            additions.push(obj)
2649
-          }
2650
-        }
2651
 
2589
 
2652
         let p1 = {
2590
         let p1 = {
2653
           name: '处方' + 1,
2591
           name: '处方' + 1,
2843
                 tempProject.push(obj)
2781
                 tempProject.push(obj)
2844
               }
2782
               }
2845
 
2783
 
2846
-              for (let b = 0; b < prescription.addition.length; b++) {
2847
-                let obj = {
2848
-                  id: prescription.addition[b].id,
2849
-                  item_name: prescription.addition[b].item_name,
2850
-                  price: prescription.addition[b].price,
2851
-                  count: prescription.addition[b].count,
2852
-                  item_id: prescription.addition[b].item_id
2853
-                }
2854
-                tempAddition.push(obj)
2855
-              }
2784
+
2856
               let index = i + 1
2785
               let index = i + 1
2857
               let obj = {
2786
               let obj = {
2858
                 id: prescription.id,
2787
                 id: prescription.id,

+ 2 - 2
src/xt_pages/outpatientDoctorStation/doctorDesk.vue View File

1185
             var drugs = response.data.data.drugs
1185
             var drugs = response.data.data.drugs
1186
             for(let i=0;i<drugs.length;i++){
1186
             for(let i=0;i<drugs.length;i++){
1187
                 drugs[i].count = 0
1187
                 drugs[i].count = 0
1188
-              if(drugs[i].stock_in.length > 0){
1189
-                if(drugs[i].stock_in != null) {
1188
+              if(drugs[i].stock_in != null) {
1189
+                if(drugs[i].stock_in.length > 0){
1190
                   for (let j = 0; j < drugs[i].stock_in.length; j++) {
1190
                   for (let j = 0; j < drugs[i].stock_in.length; j++) {
1191
                     drugs[i].count += (drugs[i].stock_in[j].stock_max_number * drugs[i].min_number + drugs[i].stock_in[j].stock_min_number)
1191
                     drugs[i].count += (drugs[i].stock_in[j].stock_max_number * drugs[i].min_number + drugs[i].stock_in[j].stock_min_number)
1192
                   }
1192
                   }

+ 1 - 1
src/xt_pages/outpatientTool/labelPrint.vue View File

194
         this.current_project_name = row.project_name
194
         this.current_project_name = row.project_name
195
         this.current_name = row.patient_name
195
         this.current_name = row.patient_name
196
         this.$nextTick(() => {
196
         this.$nextTick(() => {
197
-          JsBarcode('#barcode',row.p_project_id, {
197
+          JsBarcode('#barcode',row.id, {
198
             format: 'CODE39',
198
             format: 'CODE39',
199
             lineColor: '#000',
199
             lineColor: '#000',
200
             background: '#EBEEF5',
200
             background: '#EBEEF5',