陈少旭 1 tydzień temu
rodzic
commit
4be4699baa

+ 1 - 1
src/xt_pages/outpatientTool/components/allgather.vue Wyświetl plik

@@ -179,7 +179,7 @@ export default {
179 179
             let price = 0
180 180
             for (let d = 0; d < tempPatientsTwo.length; d++) {
181 181
               if (tempPatientsTwo[d].cost_classify == infos[e].cost_classify) {
182
-                price = parseFloat(price.toString()) + parseFloat((parseFloat(tempPatientsTwo[d].cnt.toString()) * parseFloat(tempPatientsTwo[d].pric.toString()).toFixed(2)).toString())
182
+                price = parseFloat(price.toString()) + parseFloat((tempPatientsTwo[d].det_item_fee_sumamt))
183 183
               }
184 184
               obj.price = price
185 185
             }

+ 26 - 22
src/xt_pages/outpatientTool/components/settle.vue Wyświetl plik

@@ -408,41 +408,45 @@ import { uParseTime } from '@/utils/tools'
408 408
       },getTypeName(row){
409 409
         let name = ""
410 410
         if(row.insutype == '390'){
411
-          // let c =  this.config.mdtrtarea_admvs.slice(0, 4); //就医地前4位编码
412
-          let a =  this.config.mdtrtarea_admvs.slice(0, 3); //就医地前3位编码
413
-
414 411
           let e =  this.config.mdtrtarea_admvs.slice(0, 2); //就医地前3位编码
415
-
416
-
417 412
           let f=  row.his.insuplc_admdvs.slice(0, 2); //参保地前4位编码
418
-
419
-          // let d=  row.his.insuplc_admdvs.slice(0, 4); //参保地前4位编码
420 413
           let b=  row.his.insuplc_admdvs.slice(0, 3); //参保地前3位编码
421
-          if(a == b){
422
-              name = "本地城乡"
423
-          }else{
424
-            if(e == f){
414
+          let a =  this.config.mdtrtarea_admvs.slice(0, 3); //就医地前3位编码
415
+          let c =  this.config.mdtrtarea_admvs.slice(0, 4); //就医地前4位编码
416
+          let k=  row.his.insuplc_admdvs.slice(0, 4); //参保地前3位编码
417
+          if (e == f) {
418
+            if (a == b) {
419
+              if (c ==k) {
420
+                name = "本地城乡"
421
+              } else {
422
+                name = "省内异地城乡"
423
+              }
424
+            } else {
425 425
               name = "省内异地城乡"
426
-            }else{
427
-              name = "省外异地城乡"
428 426
             }
427
+          } else {
428
+            name = "省外异地城乡"
429 429
           }
430 430
 
431 431
         }else if(row.insutype == '310'){
432
-          // let c =  this.config.mdtrtarea_admvs.slice(0, 4); //就医地前4位编码
433
-          let a = this.config.mdtrtarea_admvs.slice(0, 3); //就医地前3位编码
434 432
           let e =  this.config.mdtrtarea_admvs.slice(0, 2); //就医地前3位编码
435 433
           let f=  row.his.insuplc_admdvs.slice(0, 2); //参保地前4位编码
436
-          // let d=  row.his.insuplc_admdvs.slice(0, 4); //参保地前4位编码
437 434
           let b=  row.his.insuplc_admdvs.slice(0, 3); //参保地前3位编码
438
-          if(a == b){
439
-            name = "本地职工"
440
-          }else{
441
-            if (e == f){
435
+          let a =  this.config.mdtrtarea_admvs.slice(0, 3); //就医地前3位编码
436
+          let c =  this.config.mdtrtarea_admvs.slice(0, 4); //就医地前4位编码
437
+          let k=  row.his.insuplc_admdvs.slice(0, 4); //参保地前3位编码
438
+          if (e == f) {
439
+            if (a == b) {
440
+              if (c == k) {
441
+                name = "本地职工"
442
+              } else {
443
+                name = "省内异地职工"
444
+              }
445
+            } else {
442 446
               name = "省内异地职工"
443
-            }else{
444
-              name = "省外异地职工"
445 447
             }
448
+          } else {
449
+            name = "省外异地职工"
446 450
           }
447 451
         }else{
448 452
           name = "其他"

+ 20 - 2
src/xt_pages/outpatientTool/gatherPrint.vue Wyświetl plik

@@ -23,8 +23,9 @@
23 23
          <div class="listInfo" style="border-bottom: 2px solid;margin-bottom: 20px;padding-bottom: 20px;">
24 24
             <div>预交款:</div>
25 25
             <div>总费用:{{getAllPice()}}</div>
26
-           <div v-if=" this.$store.getters.xt_user.org_id != 10387">门诊日期:{{this.$route.query.end_time}}</div>
26
+           <div v-if=" this.$store.getters.xt_user.org_id != 10387 && this.$store.getters.xt_user.org_id != 9478 && this.$store.getters.xt_user.org_id != 0">门诊日期:{{this.$route.query.end_time}}</div>
27 27
            <div v-if=" this.$store.getters.xt_user.org_id == 10387">门诊日期:{{this.$route.query.start_time}} ~ {{this.$route.query.end_time}}</div>
28
+           <div v-if=" this.$store.getters.xt_user.org_id == 9478 || this.$store.getters.xt_user.org_id == 0">门诊日期:{{getData()}}</div>
28 29
 
29 30
         </div>
30 31
         <div class="listInfo">
@@ -148,6 +149,7 @@
148 149
           orderList:[],
149 150
           org_id:0,
150 151
           list:[],
152
+          datas:[],
151 153
         }
152 154
     },
153 155
     methods:{
@@ -200,7 +202,12 @@
200 202
           var list = response.data.data.list
201 203
           this.list = list
202 204
           this.orderList = response.data.data.orderList
203
-          console.log("orderlist23323223",this.orderList)
205
+
206
+
207
+            for(let i = 0; i < this.orderList.length; i++){
208
+              this.datas.push(this.orderList[i].settle_accounts_date)
209
+            }
210
+
204 211
           var new_arr = []
205 212
 
206 213
           for(let i=0;i<list.length;i++){
@@ -607,6 +614,17 @@
607 614
 
608 615
         }
609 616
 
617
+      }, findMinMax(arr) {
618
+          if (arr.length === 0) return { min: null, max: null };
619
+          const sorted = [...arr].sort((a, b) => a.timestamp - b.timestamp);
620
+          return { max: sorted[sorted.length - 1], min: sorted[0] };
621
+        },getData(){
622
+        const result = this.findMinMax(this.datas);
623
+        console.log('最大:', result.max); // { id: 3, timestamp: 1629466000000 }
624
+        console.log('最小:', result.min);
625
+
626
+        return this.getTimes( result.min) + "~" + this.getTimes( result.max)
627
+
610 628
       },
611 629
        getType(med_chrgitm_type){
612 630
         switch (med_chrgitm_type) {