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

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

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

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

@@ -1205,11 +1205,7 @@
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 1209
         return total.toFixed(2)
1214 1210
 
1215 1211
       }, getMonthTotalOne() {
@@ -1230,11 +1226,6 @@
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 1229
         return total.toFixed(2)
1239 1230
 
1240 1231
       },
@@ -1252,11 +1243,7 @@
1252 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 1248
         return total.toFixed(2)
1262 1249
 
@@ -1275,11 +1262,7 @@
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 1267
         return total.toFixed(2)
1285 1268
 
@@ -1374,9 +1357,7 @@
1374 1357
               for (let a = 0; a < this.prescriptions[i].advices.length; a++) {
1375 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 1362
               for (let a = 0; a < this.prescriptions[i].project.length; a++) {
1382 1363
                 ids.push(this.prescriptions[i].project[a].id)
@@ -1394,10 +1375,6 @@
1394 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 1378
               for (let a = 0; a < this.month_prescriptions[i].project.length; a++) {
1402 1379
                 ids.push(this.month_prescriptions[i].project[a].id)
1403 1380
               }
@@ -1832,9 +1809,6 @@
1832 1809
               for (let a = 0; a < this.prescriptions[i].advices.length; a++) {
1833 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 1813
               for (let a = 0; a < this.prescriptions[i].project.length; a++) {
1840 1814
                 ids.push(this.prescriptions[i].project[a].id)
@@ -1850,9 +1824,6 @@
1850 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 1828
               for (let a = 0; a < this.month_prescriptions[i].project.length; a++) {
1858 1829
                 ids.push(this.month_prescriptions[i].project[a].id)
@@ -1922,9 +1893,6 @@
1922 1893
               for (let a = 0; a < this.prescriptions[i].advices.length; a++) {
1923 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 1897
               for (let a = 0; a < this.prescriptions[i].project.length; a++) {
1930 1898
                 ids.push(this.prescriptions[i].project[a].id)
@@ -1941,9 +1909,6 @@
1941 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 1913
               for (let a = 0; a < this.month_prescriptions[i].project.length; a++) {
1949 1914
                 ids.push(this.month_prescriptions[i].project[a].id)
@@ -2545,17 +2510,7 @@
2545 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,23 +2586,6 @@
2631 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 2590
         let p1 = {
2653 2591
           name: '处方' + 1,
@@ -2843,16 +2781,7 @@
2843 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 2785
               let index = i + 1
2857 2786
               let obj = {
2858 2787
                 id: prescription.id,

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

@@ -1185,8 +1185,8 @@
1185 1185
             var drugs = response.data.data.drugs
1186 1186
             for(let i=0;i<drugs.length;i++){
1187 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 1190
                   for (let j = 0; j < drugs[i].stock_in.length; j++) {
1191 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,7 +194,7 @@
194 194
         this.current_project_name = row.project_name
195 195
         this.current_name = row.patient_name
196 196
         this.$nextTick(() => {
197
-          JsBarcode('#barcode',row.p_project_id, {
197
+          JsBarcode('#barcode',row.id, {
198 198
             format: 'CODE39',
199 199
             lineColor: '#000',
200 200
             background: '#EBEEF5',