see999 3 years ago
parent
commit
b2d9b863c6
1 changed files with 13 additions and 8 deletions
  1. 13 8
      src/xt_pages/outpatientCharges/newStatementPrintTwo.vue

+ 13 - 8
src/xt_pages/outpatientCharges/newStatementPrintTwo.vue View File

330
 
330
 
331
                     that.info['org_name'] = that.$store.getters.xt_user.org.org_name;
331
                     that.info['org_name'] = that.$store.getters.xt_user.org.org_name;
332
                     console.log("~~~~" + that.info);
332
                     console.log("~~~~" + that.info);
333
+                    let newTotal = 0
334
+                    for (var i = that.info.transBody.outputlist2.length - 1; i >= 0; i--) {
335
+                      if(that.info.transBody.outputlist2[i].aka111 == '07') {
336
+                        that.info.transBody.outputlist2.splice(i, 1);
337
+                        newTotal += that.info.transBody.outputlist2[i].bka058
338
+                      }
339
+                      if(that.info.transBody.outputlist2[i].aka111 == '19'){
340
+                        that.info.transBody.outputlist2.splice(i, 1);
341
+                        newTotal += that.info.transBody.outputlist2[i].bka058
342
+                      }
343
+                    }
344
+                    that.info.transBody.outputlist2.push({aka111:'99',bka058:newTotal})
333
 
345
 
334
                     var name_arr = [];
346
                     var name_arr = [];
335
                     var spec_arr = [];
347
                     var spec_arr = [];
390
                     })
402
                     })
391
                     that.num = num
403
                     that.num = num
392
                     console.log('this.num222',that.num)
404
                     console.log('this.num222',that.num)
393
-                    let newTotal = 0
394
-                    for (var i = that.info.transBody.outputlist2.length - 1; i >= 0; i--) {
395
-                      if(that.info.transBody.outputlist2[i].aka111 == '07' || that.info.transBody.outputlist2[i].aka111 == '19') {
396
-                        that.info.transBody.outputlist2.splice(i, 1);
397
-                        newTotal += that.info.transBody.outputlist2[i].bka058
398
-                      }
399
-                    }
400
-                    that.info.transBody.outputlist2.push({aka111:'99',bka058:newTotal})
405
+                    
401
                   }
406
                   }
402
                 }
407
                 }
403
               })
408
               })