瀏覽代碼

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

csx 3 年之前
父節點
當前提交
62af382aa2
共有 1 個文件被更改,包括 33 次插入33 次删除
  1. 33 33
      src/xt_pages/outpatientCharges/newStatementPrintTwo.vue

+ 33 - 33
src/xt_pages/outpatientCharges/newStatementPrintTwo.vue 查看文件

@@ -25,15 +25,15 @@
25 25
 <script>
26 26
 
27 27
 
28
-  import { parseTime } from "@/utils";
29
-  import { getDialysisRecord } from "@/api/dialysis";
30
-  import { getDataConfig } from "@/utils/data";
31
-  import { jsGetAge, uParseTime } from "@/utils/tools";
28
+  import { parseTime } from '@/utils'
29
+  import { getDialysisRecord } from '@/api/dialysis'
30
+  import { getDataConfig } from '@/utils/data'
31
+  import { jsGetAge, uParseTime } from '@/utils/tools'
32 32
   import axios from 'axios'
33
-  import BreadCrumb from "@/xt_pages/components/bread-crumb";
34
-  import print from "print-js";
35
-  import printOne from "./newTreatTemplate/printOne"
36
-  import printTwo from "./newTreatTemplate/printTwo"
33
+  import BreadCrumb from '@/xt_pages/components/bread-crumb'
34
+  import printOne from './newTreatTemplate/printOne'
35
+  import printTwo from './newTreatTemplate/printTwo'
36
+
37 37
   export default {
38 38
     name: "newStatementPrintTwo",
39 39
     components: {
@@ -185,31 +185,31 @@
185 185
                   console.log("~~" + that.info)
186 186
 
187 187
 
188
-                  // let type_arr = []
189
-                  // for (let i = 0; i < that.info.transBody.outputlist1.length; i++) {
190
-                  //   type_arr.push(that.info.transBody.outputlist1[i].aka111)
191
-                  // }
192
-                  //
193
-                  //
194
-                  // let  typeArr =  that.unique(type_arr)
195
-                  //
196
-                  // that.info['new_detail_list'] = []
197
-                  //
198
-                  // for(let i = 0; i <  typeArr.length; i++){
199
-                  //   let obj = {
200
-                  //     aka111:typeArr[i],
201
-                  //     details:[],
202
-                  //     total:0
203
-                  //   }
204
-                  //
205
-                  //   for(let b = 0; b < that.info.transBody.outputlist1.length;b++){
206
-                  //       if(typeArr[i] == that.info.transBody.outputlist1[b]){
207
-                  //         obj.details.push(that.info.transBody.outputlist1[b])
208
-                  //         obj.total += that.info.transBody.outputlist1[b].akc264
209
-                  //       }
210
-                  //   }
211
-                  //   that.info.new_detail_list.push(obj)
212
-                  // }
188
+                  let type_arr = []
189
+                  for (let i = 0; i < that.info.transBody.outputlist1.length; i++) {
190
+                    type_arr.push(that.info.transBody.outputlist1[i].aka111)
191
+                  }
192
+
193
+
194
+                  let  typeArr =  that.unique(type_arr)
195
+
196
+                  that.info['new_detail_list'] = []
197
+
198
+                  for(let i = 0; i <  typeArr.length; i++){
199
+                    let obj = {
200
+                      aka111:typeArr[i],
201
+                      details:[],
202
+                      total:0
203
+                    }
204
+
205
+                    for(let b = 0; b < that.info.transBody.outputlist1.length;b++){
206
+                        if(typeArr[i] == that.info.transBody.outputlist1[b]){
207
+                          obj.details.push(that.info.transBody.outputlist1[b])
208
+                          obj.total += that.info.transBody.outputlist1[b].akc264
209
+                        }
210
+                    }
211
+                    that.info.new_detail_list.push(obj)
212
+                  }
213 213
 
214 214
 
215 215
                 }