XMLWAN 2 yıl önce
ebeveyn
işleme
d35a29f04f

+ 16 - 0
src/api/dialysis.js Dosyayı Görüntüle

@@ -315,3 +315,19 @@ export function getDialysisAdviceTemplateList(params) {
315 315
     params: params
316 316
   })
317 317
 }
318
+
319
+export function saveDialysisSetting(params) {
320
+  return request({
321
+    url: '/api/patient/savedialysissetting',
322
+    method: 'get',
323
+    params: params
324
+  })
325
+}
326
+
327
+export function getDialysisSetting(params) {
328
+  return request({
329
+    url: '/api/patient/getdialysissetting',
330
+    method: 'get',
331
+    params: params
332
+  })
333
+}

+ 2 - 2
src/views/layout/Layout.vue Dosyayı Görüntüle

@@ -28,9 +28,9 @@
28 28
           <i class="iconfont icon-kccx navIcon"></i>
29 29
           <p>库房管理</p>
30 30
         </div>
31
-        <div v-if="kuyishoppingShow" :class="index == 4 ? 'navOne navActive' : 'navOne'" @click="clickActive(4,'酷医商城')">
31
+        <div v-if="kuyishoppingShow" :class="index == 4 ? 'navOne navActive' : 'navOne'" @click="clickActive(4,'圣械通')">
32 32
           <i class="iconfont icon-shangcheng-1 navIcon"></i>
33
-          <p>酷医商城</p>
33
+          <p>圣械通</p>
34 34
         </div>
35 35
 
36 36
         <div class="navOne" @click="open">

+ 363 - 15
src/xt_pages/dialysis/details/consumable/dialysisParameter.vue Dosyayı Görüntüle

@@ -79,24 +79,36 @@
79 79
       </el-table>
80 80
 
81 81
       <el-dialog
82
-        title="提示"
82
+        title="统计类型设置"
83 83
         :visible.sync="dialogVisible"
84 84
         width="30%">
85 85
         <span>
86
-          <el-checkbox-group v-model="form.predialysis_condition">
87
-            <el-checkbox
88
-              v-for="item in predialysisConditionOptions"
89
-              :label="item.filed_name_cn"
90
-              :key="item.value"
91
-              :value="item.filed_name_cn"
92
-              disabled
93
-              >{{ item.filed_name_cn }}</el-checkbox
94
-            >
95
-          </el-checkbox-group>
86
+           <el-checkbox v-model="device_number" label="透析机号"></el-checkbox>
87
+           <el-checkbox v-model="device_type" label="设备型号"></el-checkbox>
88
+           <el-checkbox v-model="name" label="姓名"></el-checkbox>
89
+           <el-checkbox v-model="admission_number" label="住院(门诊)号"></el-checkbox>
90
+           <el-checkbox v-model="dialysis_no" label="透析号"></el-checkbox>
91
+           <el-checkbox v-model="weight_befor" label="透前体重"></el-checkbox>
92
+           <el-checkbox v-model="dry_weight" label="干体重"></el-checkbox>
93
+           <el-checkbox v-model="blood_pressure" label="透前血压"></el-checkbox>
94
+           <el-checkbox v-model="ultrafiltration_volume" label="目标脱水量"></el-checkbox>
95
+           <el-checkbox v-model="internal_fistula" label="血管通路"></el-checkbox>
96
+           <el-checkbox v-model="blood_flow_volume" label="血流量"></el-checkbox>
97
+           <el-checkbox v-model="anticoagulant" label="抗凝剂(首剂)(维持)(总量)"></el-checkbox>
98
+           <el-checkbox v-model="sealing_fluid_dispose" label="封管液"></el-checkbox>
99
+           <el-checkbox v-model="mode_id" label="透析模式"></el-checkbox>
100
+           <el-checkbox v-model="dialysis_time" label="透析时长"></el-checkbox>
101
+           <el-checkbox v-model="dialysis_dialyszers" label="透析器"></el-checkbox>
102
+           <el-checkbox v-model="dialysis_irrigation" label="灌流器"></el-checkbox>
103
+           <el-checkbox v-model="gaijiliang" label="钙"></el-checkbox>
104
+           <el-checkbox v-model="kalium" label="钾"></el-checkbox>
105
+           <el-checkbox v-model="displace_liqui_value" label="置换总量"></el-checkbox>
106
+           <el-checkbox v-model="bicarbonate" label="碳酸氢根"></el-checkbox>
107
+           <el-checkbox v-model="glucose" label="葡萄糖"></el-checkbox>
96 108
         </span>
97 109
         <span slot="footer" class="dialog-footer">
98 110
           <el-button @click="dialogVisible = false">取 消</el-button>
99
-          <el-button type="primary" @click="dialogVisible = false">确 定</el-button>
111
+          <el-button type="primary" @click="saveDialysisSetting">确 定</el-button>
100 112
        </span>
101 113
       </el-dialog>
102 114
 
@@ -119,10 +131,9 @@
119 131
 
120 132
 
121 133
 <script>
122
-  import { GetAllZone } from '@/api/dialysis'
123
-
134
+  import { GetAllZone,saveDialysisSetting,getDialysisSetting } from '@/api/dialysis'
124 135
   import { uParseTime } from "@/utils/tools";
125
-
136
+  import store from "@/store";
126 137
   export default {
127 138
     components: {
128 139
       
@@ -173,6 +184,30 @@
173 184
         total:0,
174 185
         dialogVisible:false,
175 186
         predialysisConditionOptions:[],
187
+        predialysis_condition:false,
188
+
189
+        device_number:false,
190
+        device_type:false,
191
+        name:false,
192
+        admission_number:false,
193
+        dialysis_no:false,
194
+        weight_befor:false,
195
+        dry_weight:false,
196
+        blood_pressure:false,
197
+        ultrafiltration_volume:false,
198
+        internal_fistula:false,
199
+        blood_flow_volume:false,
200
+        anticoagulant:false,
201
+        sealing_fluid_dispose:false,
202
+        mode_id:false,
203
+        dialysis_time:false,
204
+        dialysis_dialyszers:false,
205
+        dialysis_irrigation:false,
206
+        gaijiliang:false,
207
+        kalium:false,
208
+        displace_liqui_value:false,
209
+        bicarbonate:false,
210
+        glucose:false
176 211
       }
177 212
     },
178 213
     created() {
@@ -211,6 +246,9 @@
211 246
      
212 247
     },
213 248
     methods: {
249
+      open(){
250
+
251
+      },
214 252
       getlist(){
215 253
 
216 254
       },
@@ -337,7 +375,317 @@
337 375
       formatJson(filterVal, jsonData) {
338 376
         return jsonData.map(v => filterVal.map(j => v[j]));
339 377
       },
378
+     toDialog(){
379
+      console.log("触发222222222222222我v")
380
+      getDialysisSetting().then(response=>{
381
+        if(response.data.state == 1){
382
+           this.dialogVisible = true
383
+          var dialysisSett = response.data.data.dialysisSett
384
+          if(dialysisSett!=undefined){
385
+           if(dialysisSett.device_number == 1){
386
+                this.device_number = true
387
+            }else{
388
+              this.device_number = false
389
+            }
390
+            if(dialysisSett.device_type == 1){
391
+                this.device_type = true
392
+            }else{
393
+              this.device_type = false
394
+            }
395
+            if(dialysisSett.name == 1){
396
+              this.name = true
397
+            }else{
398
+              this.name = false
399
+            }
400
+            if(dialysisSett.admission_number == 1){
401
+              this.admission_number = true
402
+            }else{
403
+              this.admission_number = false
404
+            }
405
+            if(dialysisSett.dialysis_no == 1){
406
+              this.dialysis_no = true
407
+            }else{
408
+              this.dialysis_no = false
409
+            }
410
+            if(dialysisSett.weight_befor == 1){
411
+              this.weight_befor = true
412
+            }else{
413
+              this.weight_befor = false
414
+            }
415
+            if(dialysisSett.dry_weight == 1){
416
+              this.dry_weight = true
417
+            }else{
418
+              this.dry_weight = false
419
+            }
420
+            if(dialysisSett.blood_pressure == 1){
421
+              this.blood_pressure = true
422
+            }else{
423
+              this.blood_pressure = false
424
+            }
425
+            if(dialysisSett.ultrafiltration_volume == 1){
426
+                this.ultrafiltration_volume = true
427
+            }else{
428
+              this.ultrafiltration_volume = false
429
+            }
430
+            if(dialysisSett.internal_fistula == 1){
431
+              this.internal_fistula = true
432
+            }else{
433
+              this.internal_fistula = false
434
+            }
435
+            if(dialysisSett.blood_flow_volume == 1){
436
+              this.blood_flow_volume = true
437
+            }else{
438
+              this.blood_flow_volume = false
439
+            }
440
+            if(dialysisSett.anticoagulant == 1){
441
+              this.anticoagulant = true
442
+            }else{
443
+              this.anticoagulant = false
444
+            }
445
+            if(dialysisSett.sealing_fluid_dispose == 1){
446
+              this.sealing_fluid_dispose = true
447
+            }else{
448
+              this.sealing_fluid_dispose = false
449
+            }
450
+            if(dialysisSett.mode_id == 1){
451
+              this.mode_id = true
452
+            }else{
453
+              this.mode_id = false
454
+            }
455
+            if(dialysisSett.dialysis_time == 1){
456
+                this.dialysis_time = true
457
+            }else{
458
+              this.dialysis_time = false
459
+            }
460
+            if(dialysisSett.dialysis_dialyszers == 1){
461
+              this.dialysis_dialyszers = true
462
+            }else{
463
+              this.dialysis_dialyszers = false
464
+            }
465
+
466
+            if(dialysisSett.dialysis_irrigation == 1){
467
+              this.dialysis_irrigation = true
468
+            }else{
469
+              this.dialysis_irrigation = false
470
+            }
340 471
 
472
+            if(dialysisSett.gaijiliang ==1){
473
+              this.gaijiliang =true
474
+            }else{
475
+              this.gaijiliang = false
476
+            }
477
+            if(dialysisSett.kalium == 1){
478
+              this.kalium =true
479
+            }else{
480
+              this.kalium = false
481
+            }
482
+            if(dialysisSett.displace_liqui_value == 1){
483
+              this.displace_liqui_value = true
484
+            }else{
485
+              this.displace_liqui_value = false
486
+            }
487
+            if(dialysisSett.bicarbonate == 1){
488
+              this.bicarbonate =true
489
+            }else{
490
+              this.bicarbonate = false
491
+            }
492
+            if(dialysisSett.glucose == 1){
493
+            this.glucose =true
494
+            }else{
495
+              this.glucose = false
496
+            }
497
+          }
498
+     
499
+        }
500
+      })
501
+      
502
+     },
503
+     saveDialysisSetting(){
504
+       var device_number_set = 0 
505
+       var device_type_set = 0
506
+       var name_set = 0
507
+       var admission_number_set = 0
508
+       var dialysis_no_set = 0
509
+       var weight_befor_set = 0
510
+       var dry_weight_set = 0
511
+       var blood_pressure_set = 0
512
+       var ultrafiltration_volume_set= 0
513
+       var internal_fistula_set = 0
514
+       var blood_flow_volume_set = 0
515
+       var anticoagulant_set = 0
516
+       var sealing_fluid_dispose_set = 0
517
+       var mode_id_set =0
518
+       var dialysis_time_set =0
519
+       var dialysis_dialyszers_set =0
520
+       var dialysis_irrigation_set =0
521
+       var gaijiliang_set = 0
522
+       var kalium_set = 0
523
+       var displace_liqui_value_set =0
524
+       var bicarbonate_set =0
525
+       var glucose_set = 0
526
+       if(this.device_number == false){
527
+          device_number_set = 2
528
+        }
529
+       if(this.device_number == true){
530
+          device_number_set = 1
531
+        }
532
+        if(this.device_type == false){
533
+          device_type_set = 2
534
+        }
535
+        if(this.device_type == true){
536
+          device_type_set = 1
537
+        }
538
+        if(this.name == false){
539
+          name_set = 2
540
+        }
541
+        if(this.name == true){
542
+          name_set = 1
543
+        }
544
+        if(this.admission_number == false){
545
+          admission_number_set = 2
546
+        }
547
+        if(this.admission_number== true){
548
+          admission_number_set = 1
549
+        }
550
+        if(this.dialysis_no == false){
551
+           dialysis_no_set = 2
552
+        }
553
+        if(this.dialysis_no == true){
554
+           dialysis_no_set = 1
555
+        }
556
+        if(this.weight_befor == false){
557
+           weight_befor_set = 2
558
+        } 
559
+        if(this.weight_befor == true){
560
+           weight_befor_set = 1
561
+        }
562
+        if(this.dry_weight == false){
563
+           dry_weight_set = 2
564
+        }
565
+        if(this.dry_weight == true){
566
+           dry_weight_set = 1
567
+        }   
568
+        if(this.blood_pressure == false){
569
+          blood_pressure_set = 2
570
+        }
571
+        if(this.blood_pressure == true){
572
+           blood_pressure_set = 1
573
+        }
574
+        if(this.ultrafiltration_volume == false){
575
+           ultrafiltration_volume_set = 2
576
+        }
577
+        if(this.ultrafiltration_volume == true){
578
+           ultrafiltration_volume_set = 1
579
+        }
580
+        if(this.internal_fistula == false){
581
+            internal_fistula_set = 2
582
+        }
583
+        if(this.internal_fistula == true){
584
+          internal_fistula_set= 1
585
+        }
586
+        if(this.blood_flow_volume == false){
587
+           blood_flow_volume_set = 2
588
+        }
589
+        if(this.blood_flow_volume == true){
590
+         blood_flow_volume_set = 1
591
+        }
592
+        if(this.anticoagulant == false){
593
+           anticoagulant_set = 2
594
+        }
595
+        if(this.anticoagulant == true){
596
+          anticoagulant_set = 1
597
+        }
598
+        if(this.sealing_fluid_dispose == false){
599
+          sealing_fluid_dispose_set = 2
600
+        }
601
+        if(this.sealing_fluid_dispose == true){
602
+          sealing_fluid_dispose_set = 1
603
+        }
604
+        if(this.mode_id == false){
605
+          mode_id_set = 2
606
+        }
607
+        if(this.mode_id == true){
608
+          mode_id_set = 1
609
+        }
610
+        if(this.dialysis_time == false){
611
+          dialysis_time_set = 2
612
+        }
613
+         if(this.dialysis_time == true){
614
+          dialysis_time_set = 1
615
+        }
616
+        if(this.dialysis_dialyszers == false){
617
+          dialysis_dialyszers_set = 2
618
+        }
619
+        if(this.dialysis_dialyszers == true){
620
+           dialysis_dialyszers_set = 1
621
+        }
622
+        if(this.dialysis_irrigation == false){
623
+           dialysis_irrigation_set = 2
624
+        }
625
+        if(this.dialysis_irrigation == true){
626
+           dialysis_irrigation_set = 1
627
+        }
628
+        if(this.gaijiliang == false){
629
+          this.gaijiliang = 2
630
+        }
631
+        if(this.gaijiliang == true){
632
+          this.gaijiliang = 1
633
+        }
634
+        if(this.kalium == false){
635
+          kalium = 2
636
+        }
637
+        if(this.kalium == true){
638
+          kalium = 1
639
+        }
640
+        if(this.displace_liqui_value == false){
641
+          displace_liqui_value_set = 2
642
+        }
643
+        if(this.displace_liqui_value == true){
644
+          displace_liqui_value_set = 1
645
+        }
646
+        if(this.bicarbonate == false){
647
+          bicarbonate_set = 2
648
+        }
649
+        if(this.bicarbonate == true){
650
+          bicarbonate_set = 1
651
+        }
652
+        if(this.glucose == false){
653
+           glucose_set = 2
654
+        }
655
+        if(this.glucose == true){
656
+           glucose_set = 1
657
+        }
658
+        var params = {
659
+          device_number_set:device_number_set,
660
+          device_type_set:device_type_set,
661
+          name_set:name_set,
662
+          admission_number_set:admission_number_set,
663
+          dialysis_no_set:dialysis_no_set,
664
+          weight_befor_set:weight_befor_set,
665
+          dry_weight_set:dry_weight_set,
666
+          blood_pressure_set:blood_pressure_set,
667
+          ultrafiltration_volume_set:ultrafiltration_volume_set,
668
+          internal_fistula_set:internal_fistula_set,
669
+          blood_flow_volume_set:blood_flow_volume_set,
670
+          anticoagulant_set:anticoagulant_set,
671
+          sealing_fluid_dispose_set:sealing_fluid_dispose_set,
672
+          mode_id_set:mode_id_set,
673
+          dialysis_time_set:dialysis_time_set,
674
+          dialysis_dialyszers_set:dialysis_dialyszers_set,
675
+          dialysis_irrigation_set:dialysis_irrigation_set,
676
+          gaijiliang_set:gaijiliang_set,
677
+          kalium_set:kalium_set,
678
+          displace_liqui_value_set:displace_liqui_value_set,
679
+          bicarbonate_set:bicarbonate_set,
680
+          glucose_set:glucose_set,
681
+        }
682
+       saveDialysisSetting(params).then(response=>{
683
+         if(response.data.state == 1){
684
+           var dialysisSetting = response.data.data.dialysisSetting
685
+           this.dialogVisible = false
686
+         }
687
+       })
688
+     }
341 689
     }
342 690
   }
343 691
 </script>

+ 5 - 2
src/xt_pages/stock/cancelStockOrder.vue Dosyayı Görüntüle

@@ -82,7 +82,7 @@
82 82
         >
83 83
         <el-button size="small" icon="el-icon-delete" @click="batchDelete">删除</el-button>
84 84
         <el-button size="small" type="primary" @click="toPrint">打印</el-button>
85
-        <el-button size="small" type="primary" @click="toExport">导出</el-button>
85
+        <el-button size="small" type="primary" @click="toExport" :disabled="exportLoding">导出</el-button>
86 86
 
87 87
         <span>&nbsp;&nbsp;</span>
88 88
         <label class="title"><span class="name">审核状态</span> :</label>
@@ -368,7 +368,8 @@ export default {
368 368
        {id:0,name:"全部"},
369 369
        {id:1,name:"已审核"},
370 370
        {id:2,name:"未审核"},
371
-      ]
371
+      ],
372
+      exportLoding:false,
372 373
     };
373 374
   },
374 375
   methods: {
@@ -673,6 +674,7 @@ export default {
673 674
       }
674 675
     },
675 676
     getCancelExportList(){
677
+      this.exportLoding = true
676 678
        const Params = {
677 679
         start_time: this.start_time,
678 680
         end_time: this.end_time,
@@ -683,6 +685,7 @@ export default {
683 685
         if(response.data.state == 1){
684 686
           var list =  response.data.data.list
685 687
           this.exportList = list
688
+          this.exportLoding = false
686 689
         }
687 690
      })
688 691
     },

+ 10 - 3
src/xt_pages/stock/detail/stockOutDetail.vue Dosyayı Görüntüle

@@ -337,7 +337,11 @@ export default {
337 337
         } else {
338 338
 
339 339
           this.total = response.data.data.total;
340
+          this.wareOutList = []
341
+          this.wareOutList =  response.data.data.list
342
+          console.log("党的20大长长",this.wareOutList)
340 343
           var total = 0
344
+
341 345
           for (let i = 0; i < response.data.data.list.length; i++) {
342 346
             this.tableData.push(response.data.data.list[i])
343 347
 
@@ -393,6 +397,7 @@ export default {
393 397
            this.houseList.push(response.data.data.houseList[i])
394 398
           }
395 399
           this.wareOutList =  response.data.data.list
400
+          console.log("党的20大长长",this.wareOutList)
396 401
           var total = 0
397 402
           for (let i = 0; i < response.data.data.list.length; i++) {
398 403
             this.tableData.push(response.data.data.list[i])
@@ -785,7 +790,9 @@ export default {
785 790
           this.tableOut[i].total_price = (this.getMySelfCount(this.tableOut[i].good_id) * this.tableOut[i].retail_price).toFixed(2)
786 791
         }else if(this.orgId == 10210){
787 792
           this.tableOut[i].total_price = (this.getWarehouseOut(this.tableOut[i].good_id) * this.tableOut[i].retail_price).toFixed(2)
788
-        }else if(this.orgId == 9671){
793
+        }else if(this.orgId == 9675){
794
+          this.tableOut[i].total_price = (this.getWarehouseOut(this.tableOut[i].good_id) * this.tableOut[i].retail_price).toFixed(2)
795
+        }else if(this.orgId == 9679){
789 796
           this.tableOut[i].total_price = (this.getWarehouseOut(this.tableOut[i].good_id) * this.tableOut[i].retail_price).toFixed(2)
790 797
         }else if(this.orgId == 9956){
791 798
           this.tableOut[i].total_price = (this.getWarehouseOut(this.tableOut[i].good_id) * this.tableOut[i].retail_price).toFixed(2)
@@ -803,11 +810,11 @@ export default {
803 810
 
804 811
          this.tableOut[i].out_count = this.getMySelfCount(this.tableOut[i].good_id)
805 812
         }
806
-        if(this.orgId == 10210 || this.orgId == 9671 || this.orgId == 10210 || this.orgId == 9956 || this.orgId == 10217 || this.orgId == 10188 || this.orgId == 10191){
813
+        if(this.orgId == 10210 || this.orgId == 9675 || this.orgId == 9679 || this.orgId == 10210 || this.orgId == 9956 || this.orgId == 10217 || this.orgId == 10188 || this.orgId == 10191){
807 814
           this.tableOut[i].out_count = this.getWarehouseOut(this.tableOut[i].good_id)
808 815
           console.log("out_count232233232332",this.tableOut[i].out_count)
809 816
         }
810
-        if(this.orgId!=10265 && this.orgId !=10215 && this.orgId!=10210&&this.orgId!=9671 && this.orgId!=9956&& this.orgId!=10217 && this.orgId!=10188 && this.orgId!=10191){
817
+        if(this.orgId!=10265 && this.orgId !=10215  && this.orgId == 9679 &&this.orgId!=10210&&this.orgId!=9675 && this.orgId!=9956&& this.orgId!=10217 && this.orgId!=10188 && this.orgId!=10191){
811 818
           this.tableOut[i].out_count = this.getStockCount(this.tableOut[i].good_id)
812 819
         }
813 820
        }

+ 5 - 5
src/xt_pages/stock/drugs/cancelDrugStockOrder.vue Dosyayı Görüntüle

@@ -90,9 +90,7 @@
90 90
           >删除</el-button
91 91
         >
92 92
         <el-button size="small" type="primary" @click="toPrint">打印</el-button>
93
-        <el-button size="small" type="primary" @click="toExport"
94
-          >导出</el-button
95
-        >
93
+        <el-button size="small" type="primary" @click="toExport" :disabled="exportLoding">导出</el-button>
96 94
         <span>&nbsp;&nbsp;</span>
97 95
         <label class="title"><span class="name">审核状态</span> :</label>
98 96
         <el-select size="small" v-model="check_type" filterable placeholder="请选择仓库" style="width:200px" @change="changeCheckType">
@@ -388,7 +386,8 @@ export default {
388 386
        {id:0,name:"全部"},
389 387
        {id:1,name:"已审核"},
390 388
        {id:2,name:"未审核"},
391
-      ]
389
+      ],
390
+      exportLoding:false,
392 391
     };
393 392
   },
394 393
   methods: {
@@ -712,14 +711,15 @@ export default {
712 711
       });
713 712
     },
714 713
     getDrugCancelExportList() {
714
+      this.exportLoding = true
715 715
       const params = {
716 716
         order_id: this.order_id,
717 717
       };
718 718
       getDrugCancelExportList(params).then((response) => {
719 719
         if (response.data.state == 1) {
720 720
           var list = response.data.data.list;
721
-          //  console.log("导出数据222",list)
722 721
           this.exportList = list;
722
+          this.exportLoding = false
723 723
         }
724 724
       });
725 725
     },

+ 40 - 19
src/xt_pages/stock/drugs/components/purchaseDrugQuery.vue Dosyayı Görüntüle

@@ -507,10 +507,10 @@ export default {
507 507
       totalfive += arr5[i].count
508 508
      } 
509 509
   }
510
-  console.log("totalONE223323232323232",totalOne)
511
-  console.log("totalTwo2oo2o32o3o32o23",totalTwo)
512
-  console.log("totalfive",totalfive)
513
-  console.log("00-------------------------")
510
+  // console.log("totalONE223323232323232",totalOne)
511
+  // console.log("totalTwo2oo2o32o3o32o23",totalTwo)
512
+  // console.log("totalfive",totalfive)
513
+  // console.log("00-------------------------")
514 514
   total = totalOne - totalTwo + totalthree - totalfour + totalfive
515 515
   if (total < min_number) {
516 516
      min_str = total + min_unit;
@@ -527,7 +527,14 @@ export default {
527 527
       min_str = (total % min_number) + min_unit;
528 528
     }
529 529
    }
530
-  return max_str + min_str;  
530
+  console.log("max_str",max_str)
531
+  console.log("min_str",min_str)
532
+  if(max_str == "" && min_str == ""){
533
+    return "0"
534
+  }else{
535
+   return max_str + min_str 
536
+  }
537
+ 
531 538
 
532 539
   },
533 540
   getDrugWarehouseInfo(arr,arr4,min_number,min_unit,max_unit,arr2,arr3,arr5){
@@ -585,7 +592,11 @@ export default {
585 592
       min_str = (total % min_number) + min_unit;
586 593
     }
587 594
    }
588
-  return max_str + min_str;  
595
+   if(max_str == "" && min_str == ""){
596
+     return "0"
597
+   }else{
598
+     return max_str + min_str;  
599
+   }
589 600
 
590 601
   },
591 602
   getDrugWarehouseInfoStart(arr,min_number,min_unit,max_unit,outArr){
@@ -779,7 +790,7 @@ export default {
779 790
    if(total_price >0){
780 791
     return total_price
781 792
    }else{
782
-    return 0
793
+    return "0.00"
783 794
    }
784 795
   
785 796
   },
@@ -825,7 +836,7 @@ export default {
825 836
    if(total_price > 0){
826 837
      return total_price.toFixed(2)
827 838
    }else{
828
-    return 0
839
+    return "0.00"
829 840
    }
830 841
   },
831 842
   getSaleMoney(arr,arr4,min_number,min_unit,max_unit,arr2,arr3,arr5){
@@ -871,7 +882,7 @@ export default {
871 882
    if(total_price >0){
872 883
      return total_price.toFixed(2)
873 884
    }else{
874
-    return 0
885
+    return "0.00"
875 886
    }
876 887
   
877 888
   },
@@ -911,17 +922,17 @@ export default {
911 922
       total_five+=arr5[i].count * arr5[i].xt_drug_warehouse_info.retail_price
912 923
      }
913 924
    }
914
-   console.log("total_one",totalOne)
915
-   console.log("totalTwo",totalTwo)
916
-   console.log("total_three",total_three)
917
-   console.log("total_four",total_four)
925
+  //  console.log("total_one",totalOne)
926
+  //  console.log("totalTwo",totalTwo)
927
+  //  console.log("total_three",total_three)
928
+  //  console.log("total_four",total_four)
918 929
   
919
-   console.log("total_pricewode",(totalOne - totalTwo+total_three - total_four).toFixed(2))
930
+  //  console.log("total_pricewode",(totalOne - totalTwo+total_three - total_four).toFixed(2))
920 931
    total_price =(totalOne - totalTwo+total_three - total_four + total_five).toFixed(2)
921 932
    if(total_price > 0){
922 933
       return total_price
923 934
    }else{
924
-     return 0
935
+     return "0.00"
925 936
    }
926 937
   
927 938
   },
@@ -1015,7 +1026,12 @@ export default {
1015 1026
         min_str = (total % min_number) + min_unit;
1016 1027
       }
1017 1028
     }
1018
-    return max_str + min_str;  
1029
+    if(max_str == "" && min_str == ""){
1030
+      return "0"
1031
+    }else{
1032
+      return max_str + min_str  
1033
+    }
1034
+   
1019 1035
    },
1020 1036
    getdrugAddPrice(arr,min_number,min_unit,max_unit,arr2){
1021 1037
     var total = 0
@@ -1098,7 +1114,12 @@ export default {
1098 1114
         min_str = (total % min_number) + min_unit;
1099 1115
       }
1100 1116
    }
1101
-   return max_str + min_str;  
1117
+   if(max_str == "" && min_str == ""){
1118
+     return "0"
1119
+   }else{
1120
+    return max_str + min_str;  
1121
+   }
1122
+ 
1102 1123
    },
1103 1124
    getDrugOutPrice(arr,min_number,min_unit,max_unit,arr2,arr3){
1104 1125
     
@@ -1133,7 +1154,7 @@ export default {
1133 1154
     if(total_price > 0){
1134 1155
       return total_price.toFixed(2)
1135 1156
     }else{
1136
-     return 0
1157
+     return "0.00"
1137 1158
     }
1138 1159
     
1139 1160
    },
@@ -1165,7 +1186,7 @@ export default {
1165 1186
     if(total_price > 0){
1166 1187
       return total_price.toFixed(2)
1167 1188
     }else{
1168
-     return 0
1189
+     return "0.00"
1169 1190
     }
1170 1191
     
1171 1192
    },

+ 29 - 11
src/xt_pages/stock/drugs/components/purchaseDrugQueryPrint.vue Dosyayı Görüntüle

@@ -421,7 +421,12 @@ export default {
421 421
       min_str = (total % min_number) + min_unit;
422 422
     }
423 423
    }
424
-  return max_str + min_str;  
424
+   if(max_str == "" && min_str == ""){
425
+    return "0"
426
+   }else{
427
+     return max_str + min_str;  
428
+   }
429
+ 
425 430
 
426 431
   },
427 432
   getDrugWarehouseInfo(arr,arr4,min_number,min_unit,max_unit,arr2,arr3,arr5){
@@ -479,8 +484,11 @@ export default {
479 484
       min_str = (total % min_number) + min_unit;
480 485
     }
481 486
    }
482
-  return max_str + min_str;  
483
-
487
+  if(max_str == ""&&min_str == ""){
488
+    return "0"
489
+  }else{
490
+   return max_str + min_str;  
491
+  }
484 492
   },
485 493
   getDrugWarehouseInfoStart(arr,min_number,min_unit,max_unit,outArr){
486 494
    var total = 0
@@ -674,7 +682,7 @@ export default {
674 682
    if(total_price >0){
675 683
     return total_price
676 684
    }else{
677
-    return 0
685
+    return "0.00"
678 686
    }
679 687
   
680 688
   },
@@ -720,7 +728,7 @@ export default {
720 728
    if(total_price > 0){
721 729
      return total_price.toFixed(2)
722 730
    }else{
723
-    return 0
731
+    return "0.00"
724 732
    }
725 733
   },
726 734
   getSaleMoney(arr,arr4,min_number,min_unit,max_unit,arr2,arr3,arr5){
@@ -766,7 +774,7 @@ export default {
766 774
    if(total_price >0){
767 775
      return total_price.toFixed(2)
768 776
    }else{
769
-    return 0
777
+    return "0.00"
770 778
    }
771 779
   
772 780
   },
@@ -811,7 +819,7 @@ export default {
811 819
    if(total_price > 0){
812 820
       return total_price
813 821
    }else{
814
-     return 0
822
+     return "0.00"
815 823
    }
816 824
   
817 825
   },
@@ -898,7 +906,12 @@ export default {
898 906
         min_str = (total % min_number) + min_unit;
899 907
       }
900 908
     }
901
-    return max_str + min_str;  
909
+    if(max_str == ""&& min_str == ""){
910
+      return "0"
911
+    }else{
912
+      return max_str + min_str;  
913
+    }
914
+   
902 915
    },
903 916
     getdrugAddPrice(arr,min_number,min_unit,max_unit,arr2){
904 917
     var total = 0
@@ -981,7 +994,12 @@ export default {
981 994
         min_str = (total % min_number) + min_unit;
982 995
       }
983 996
    }
984
-   return max_str + min_str;  
997
+   if(max_str == "" && min_str == ""){
998
+     return "0"
999
+   }else{
1000
+     return max_str + min_str; 
1001
+   }
1002
+   
985 1003
    },
986 1004
      getDrugOutPrice(arr,min_number,min_unit,max_unit,arr2,arr3){
987 1005
     
@@ -1016,7 +1034,7 @@ export default {
1016 1034
     if(total_price > 0){
1017 1035
       return total_price.toFixed(2)
1018 1036
     }else{
1019
-     return 0
1037
+     return "0.00"
1020 1038
     }
1021 1039
     
1022 1040
    },
@@ -1048,7 +1066,7 @@ export default {
1048 1066
     if(total_price > 0){
1049 1067
       return total_price.toFixed(2)
1050 1068
     }else{
1051
-     return 0
1069
+     return "0.00"
1052 1070
     }
1053 1071
     
1054 1072
    },

+ 4 - 4
src/xt_pages/stock/drugs/drugStockInOrder.vue Dosyayı Görüntüle

@@ -109,10 +109,7 @@
109 109
         <el-button size="small" type="primary" @click="drugPrint()"
110 110
           >打印</el-button
111 111
         >
112
-        <el-button size="small" type="primary" @click="toExport()"
113
-          >导出</el-button
114
-        >
115
-        <el-button @click="lili">调试</el-button>
112
+        <el-button size="small" type="primary" @click="toExport()" :disabled="exportLoding">导出</el-button>
116 113
         <div>
117 114
           <span>&nbsp;&nbsp;</span>
118 115
           <label class="title"><span class="name">审核状态</span> :</label>
@@ -532,6 +529,7 @@ export default {
532 529
         { id: 1, name: "已审核" },
533 530
         { id: 2, name: "未审核" },
534 531
       ],
532
+      exportLoding:false,
535 533
     };
536 534
   },
537 535
 
@@ -980,6 +978,7 @@ export default {
980 978
       var params = {
981 979
         order_id: this.order_id,
982 980
       };
981
+      this.exportLoding = true
983 982
       exportDrugList(params).then((response) => {
984 983
         if (response.data.state == 1) {
985 984
           var list = response.data.data.list;
@@ -989,6 +988,7 @@ export default {
989 988
             list[i].expiry_date = this.getTime(list[i].expiry_date);
990 989
           }
991 990
           this.exportList = list;
991
+          this.exportLoding = false
992 992
           var manufacturerList = response.data.data.manufacturerList;
993 993
           this.manufacturerList = manufacturerList;
994 994
           var dealerList = response.data.data.dealerList;

+ 25 - 28
src/xt_pages/stock/drugs/drugStockOutOrder.vue Dosyayı Görüntüle

@@ -108,9 +108,7 @@
108 108
           >删除</el-button
109 109
         >
110 110
         <el-button size="small" type="primary" @click="toPrint">打印</el-button>
111
-        <el-button size="small" type="primary" @click="toExport"
112
-          >导出</el-button
113
-        >
111
+        <el-button size="small" type="primary" @click="toExport" :disabled="exportLoding">导出</el-button>
114 112
 
115 113
         <span>&nbsp;&nbsp;</span>
116 114
         <label class="title"><span class="name">出库方式</span> :</label>
@@ -666,6 +664,7 @@ export default {
666 664
       tabListOne:[],
667 665
       outList:[],
668 666
       warehouseOutList:[],
667
+      exportLoding:false,
669 668
     };
670 669
   },
671 670
   methods: {
@@ -1098,26 +1097,26 @@ export default {
1098 1097
       });
1099 1098
       this.sameRowArr = sameRowArr;
1100 1099
     },
1101
-    getDrugAutoMaticList(id, recordTime, warehouse_out_order_number) {
1102
-      var params = {
1103
-        warehous_out_id: id,
1104
-        record_time: recordTime,
1105
-        warehouse_out_order_number: warehouse_out_order_number,
1106
-      };
1107
-      getDrugAutoMaticList(params).then((response) => {
1108
-        if (response.data.state == 1) {
1109
-          var list = response.data.data.list;
1110
-          this.list = list;
1111
-          var drugConfig = response.data.data.drugConfig;
1112
-
1113
-          this.drugConfig = drugConfig;
1114
-          var drugList = response.data.data.drugList;
1115
-          this.drugList = drugList;
1116
-          var manulist = response.data.data.manufacturerList;
1117
-          this.manufacturerList = manulist;
1118
-        }
1119
-      });
1120
-    },
1100
+    // getDrugAutoMaticList(id, recordTime, warehouse_out_order_number) {
1101
+    //   var params = {
1102
+    //     warehous_out_id: id,
1103
+    //     record_time: recordTime,
1104
+    //     warehouse_out_order_number: warehouse_out_order_number,
1105
+    //   };
1106
+    //   getDrugAutoMaticList(params).then((response) => {
1107
+    //     if (response.data.state == 1) {
1108
+    //       var list = response.data.data.list;
1109
+    //       this.list = list;
1110
+    //       var drugConfig = response.data.data.drugConfig;
1111
+
1112
+    //       this.drugConfig = drugConfig;
1113
+    //       var drugList = response.data.data.drugList;
1114
+    //       this.drugList = drugList;
1115
+    //       var manulist = response.data.data.manufacturerList;
1116
+    //       this.manufacturerList = manulist;
1117
+    //     }
1118
+    //   });
1119
+    // },
1121 1120
     getDrugCount(id) {
1122 1121
       var count = 0;
1123 1122
       for (let i = 0; i < this.list.length; i++) {
@@ -1451,9 +1450,6 @@ export default {
1451 1450
       return total_price;
1452 1451
     },
1453 1452
     getDrugBatchNumber(drugid, count) {
1454
-      // console.log("drug_id2323", drugid);
1455
-      // console.log("count", count);
1456
-      // console.log("hhhhhhhhhhh", this.batchNumberList);
1457 1453
       var arr = [];
1458 1454
       for (let i = 0; i < this.batchNumberList.length; i++) {
1459 1455
         if (
@@ -1470,11 +1466,13 @@ export default {
1470 1466
       var params = {
1471 1467
         order_id: this.order_id,
1472 1468
       };
1469
+      this.exportLoding = true
1473 1470
       getExportOutOrderDrugList(params).then((response) => {
1474 1471
         if (response.data.state == 1) {
1475 1472
           var list = response.data.data.list;
1476 1473
         
1477 1474
           this.exportList = list;
1475
+          this.exportLoding = false
1478 1476
           this.manufacturerList = response.data.data.manufacturerList;
1479 1477
           this.dealerList = response.data.data.dealerList;
1480 1478
         }
@@ -1513,8 +1511,7 @@ export default {
1513 1511
         );
1514 1512
         for (let j = 0; j < this.manufacturerList.length; j++) {
1515 1513
           if (this.exportList[i].manufacturer == this.manufacturerList[j].id) {
1516
-            this.exportList[i].manufacturer =
1517
-              this.manufacturerList[j].manufacturer_name;
1514
+            this.exportList[i].manufacturer = this.manufacturerList[j].manufacturer_name;
1518 1515
           }
1519 1516
         }
1520 1517
 

+ 16 - 16
src/xt_pages/stock/query/purchaseStockQuery.vue Dosyayı Görüntüle

@@ -245,12 +245,12 @@ export default {
245 245
               list[i].stockMoney = this.getWarehouseInfoStartMoney(list[i].StartFlowInfo,list[i].StartOutFlowInfo,list[i].WareStartStockInventoryProfit,list[i].WareStartStockInventoryLosses,list[i].StartCancelFlowInfo)
246 246
               
247 247
               list[i].stockAdd = this.getWarehouseInfoOne(list[i].StartFlowWarehouseInfo,list[i].WareStartEndStockInventoryProfit)//期间增加
248
-              list[i].addStockMoney = (this.getAddStockMony(list[i].StartFlowWarehouseInfo,list[i].WareStartEndStockInventoryProfit)).toFixed(2)
249
-              list[i].saleStockMoney = (this.getSaleStockMony(list[i].StartFlowWarehouseInfo,list[i].WareStartEndStockInventoryProfit)).toFixed(2)
248
+              list[i].addStockMoney = this.getAddStockMony(list[i].StartFlowWarehouseInfo,list[i].WareStartEndStockInventoryProfit)
249
+              list[i].saleStockMoney = this.getSaleStockMony(list[i].StartFlowWarehouseInfo,list[i].WareStartEndStockInventoryProfit)
250 250
 
251 251
               list[i].outStock = this.getWarehosueOutInfo(list[i].WarehouseOutInfoStart,list[i].WareStartEndStockInventoryLosses,list[i].StartEndCancelFLowInfo)//本期减少
252
-              list[i].stockOutprice = (this.stockOutprice(list[i].WarehouseOutInfoStart,list[i].WareStartEndStockInventoryLosses,list[i].StartEndCancelFLowInfo)).toFixed(2)
253
-              list[i].saleOutMoney = (this.saleOutprice(list[i].WarehouseOutInfoStart,list[i].WareStartEndStockInventoryLosses,list[i].StartEndCancelFLowInfo)).toFixed(2)
252
+              list[i].stockOutprice = this.stockOutprice(list[i].WarehouseOutInfoStart,list[i].WareStartEndStockInventoryLosses,list[i].StartEndCancelFLowInfo)
253
+              list[i].saleOutMoney = this.getSaleStockMony(list[i].WarehouseOutInfoStart,list[i].WareStartEndStockInventoryLosses,list[i].StartEndCancelFLowInfo)
254 254
               
255 255
               list[i].overStock= this.getEndWarehouseInfo(list[i].EndFlowInfo,list[i].EndFlowOutInfo,list[i].WareEndStockInventoryProfit,list[i].WareEndStockInventoryLosses,list[i].EndCancelFLowInfo)
256 256
               list[i].overPrice= this.getEndOverPrice(list[i].EndFlowInfo,list[i].EndFlowOutInfo,list[i].WareEndStockInventoryProfit,list[i].WareEndStockInventoryLosses,list[i].EndCancelFLowInfo)
@@ -624,9 +624,9 @@ export default {
624 624
     }
625 625
   all_price = total_price + total_price_one
626 626
    if(all_price >0 ){
627
-    return total_price
627
+    return total_price.toFixed(2)
628 628
    }else{
629
-    return 0
629
+    return "0.00"
630 630
    }
631 631
   },
632 632
   getSaleStockMony(val,val2){
@@ -645,9 +645,9 @@ export default {
645 645
    }
646 646
    all_price = total_price + total_price_one
647 647
    if(all_price >0 ){
648
-    return all_price
648
+    return all_price.toFixed(2)
649 649
    }else{
650
-    return 0
650
+    return "0.00"
651 651
    }
652 652
   },
653 653
   getWarehouseOut(val){
@@ -708,7 +708,7 @@ export default {
708 708
      if (total_price_all > 0) {
709 709
        return total_price_all.toFixed(2)
710 710
      }else{
711
-      return  0
711
+      return  "0.00"
712 712
      }
713 713
    },
714 714
    getWarehouseInfoStartMoney(arr,arr1,arr2,arr3,arr4){
@@ -751,7 +751,7 @@ export default {
751 751
     if (total_price_all > 0) {
752 752
        return total_price_all.toFixed(2)
753 753
      }else{
754
-      return  0
754
+      return  "0.00"
755 755
      }
756 756
    },
757 757
    getWarehosueOutInfo(val,val2,val3){
@@ -803,9 +803,9 @@ export default {
803 803
      }
804 804
      all_price = total_price + total_price_one - total_price_two
805 805
      if(all_price >0){
806
-       return all_price
806
+       return all_price.toFixed(2)
807 807
      }else{
808
-      return 0
808
+      return "0.00"
809 809
      }
810 810
    },
811 811
   saleOutprice(val,val2,val3){
@@ -830,9 +830,9 @@ export default {
830 830
      }
831 831
      all_price = total_price + total_price_one - total_price_two
832 832
      if(all_price >0){
833
-       return total_price
833
+       return all_price.toFixed(2)
834 834
      }else{
835
-      return 0
835
+      return "0.00"
836 836
      }
837 837
    },
838 838
    getEndWarehouseInfo(val,val3,val1,val2,val4){
@@ -916,7 +916,7 @@ export default {
916 916
      if(all_price >0){
917 917
        return all_price.toFixed(2)
918 918
      }else{
919
-      return 0
919
+      return "0.00"
920 920
      }
921 921
    },
922 922
    getEndSalePrice(val,val3,val1,val2,val4){
@@ -955,7 +955,7 @@ export default {
955 955
      if(all_price >0){
956 956
        return all_price.toFixed(2)
957 957
      }else{
958
-      return 0
958
+      return "0.00"
959 959
      }
960 960
    },
961 961
    toPrint(){

+ 21 - 21
src/xt_pages/stock/query/purchaseStockQueryPrint.vue Dosyayı Görüntüle

@@ -165,12 +165,12 @@ export default {
165 165
                   list[i].stockMoney = this.getWarehouseInfoStartMoney(list[i].StartFlowInfo,list[i].StartOutFlowInfo,list[i].WareStartStockInventoryProfit,list[i].WareStartStockInventoryLosses,list[i].StartCancelFlowInfo)
166 166
                   
167 167
                   list[i].stockAdd = this.getWarehouseInfoOne(list[i].StartFlowWarehouseInfo,list[i].WareStartEndStockInventoryProfit)//期间增加
168
-                  list[i].addStockMoney = (this.getAddStockMony(list[i].StartFlowWarehouseInfo,list[i].WareStartEndStockInventoryProfit)).toFixed(2)
169
-                  list[i].saleStockMoney = (this.getSaleStockMony(list[i].StartFlowWarehouseInfo,list[i].WareStartEndStockInventoryProfit)).toFixed(2)
168
+                  list[i].addStockMoney = this.getAddStockMony(list[i].StartFlowWarehouseInfo,list[i].WareStartEndStockInventoryProfit)
169
+                  list[i].saleStockMoney = this.getSaleStockMony(list[i].StartFlowWarehouseInfo,list[i].WareStartEndStockInventoryProfit)
170 170
 
171 171
                   list[i].outStock = this.getWarehosueOutInfo(list[i].WarehouseOutInfoStart,list[i].WareStartEndStockInventoryLosses,list[i].StartEndCancelFLowInfo)//本期减少
172
-                  list[i].stockOutprice = (this.stockOutprice(list[i].WarehouseOutInfoStart,list[i].WareStartEndStockInventoryLosses,list[i].StartEndCancelFLowInfo)).toFixed(2)
173
-                  list[i].saleOutMoney = (this.saleOutprice(list[i].WarehouseOutInfoStart,list[i].WareStartEndStockInventoryLosses,list[i].StartEndCancelFLowInfo)).toFixed(2)
172
+                  list[i].stockOutprice = this.stockOutprice(list[i].WarehouseOutInfoStart,list[i].WareStartEndStockInventoryLosses,list[i].StartEndCancelFLowInfo)
173
+                  list[i].saleOutMoney = this.saleOutprice(list[i].WarehouseOutInfoStart,list[i].WareStartEndStockInventoryLosses,list[i].StartEndCancelFLowInfo)
174 174
                   
175 175
                   list[i].overStock= this.getEndWarehouseInfo(list[i].EndFlowInfo,list[i].EndFlowOutInfo,list[i].WareEndStockInventoryProfit,list[i].WareEndStockInventoryLosses,list[i].EndCancelFLowInfo)
176 176
                   list[i].overPrice= this.getEndOverPrice(list[i].EndFlowInfo,list[i].EndFlowOutInfo,list[i].WareEndStockInventoryProfit,list[i].WareEndStockInventoryLosses,list[i].EndCancelFLowInfo)
@@ -224,7 +224,7 @@ export default {
224 224
     if (total_price_all > 0) {
225 225
        return total_price_all.toFixed(2)
226 226
      }else{
227
-      return  0
227
+      return  "0.00"
228 228
      }
229 229
    },
230 230
     getWarehosueOutInfo(val,val2,val3){
@@ -276,9 +276,9 @@ export default {
276 276
      }
277 277
      all_price = total_price + total_price_one - total_price_two
278 278
      if(all_price >0){
279
-       return all_price
279
+       return all_price.toFixed(2)
280 280
      }else{
281
-      return 0
281
+      return "0.00"
282 282
      }
283 283
    },
284 284
      saleOutprice(val,val2,val3){
@@ -303,9 +303,9 @@ export default {
303 303
      }
304 304
      all_price = total_price + total_price_one - total_price_two
305 305
      if(all_price >0){
306
-       return total_price
306
+       return all_price.toFixed(2)
307 307
      }else{
308
-      return 0
308
+      return "0.00"
309 309
      }
310 310
    },
311 311
    getEndWarehouseInfo(val,val3,val1,val2,val4){
@@ -416,7 +416,7 @@ export default {
416 416
      if(all_price >0){
417 417
        return all_price.toFixed(2)
418 418
      }else{
419
-      return 0
419
+      return "0.00"
420 420
      }
421 421
    },
422 422
    getEndSalePrice(val,val3,val1,val2,val4){
@@ -551,7 +551,7 @@ export default {
551 551
      if (total_price_all > 0) {
552 552
        return total_price_all.toFixed(2)
553 553
      }else{
554
-      return  0
554
+      return  "0.00"
555 555
      }
556 556
    },
557 557
   getWarehouseInfoOne(val,val2){
@@ -595,9 +595,9 @@ export default {
595 595
     }
596 596
   all_price = total_price + total_price_one
597 597
    if(all_price >0 ){
598
-    return total_price
598
+    return total_price.toFixed(2)
599 599
    }else{
600
-    return 0
600
+    return "0.00"
601 601
    }
602 602
   },
603 603
    getSaleStockMony(val,val2){
@@ -616,9 +616,9 @@ export default {
616 616
    }
617 617
    all_price = total_price + total_price_one
618 618
    if(all_price >0 ){
619
-    return all_price
619
+    return all_price.toFixed(2)
620 620
    }else{
621
-    return 0
621
+    return "0.00"
622 622
    }
623 623
   },
624 624
     getWarehouseOut(val){
@@ -673,17 +673,17 @@ export default {
673 673
          total_price_four +=val4[i].count * val4[i].buy_price
674 674
        }
675 675
      }
676
-     console.log("total_price",total_price)
677
-     console.log("total_price_three",total_price_three)
678
-     console.log("total_price_two",total_price_two)
679
-     console.log("total_price_one",total_price_one)
680
-     console.log("total_price_four",total_price_four)
676
+    //  console.log("total_price",total_price)
677
+    //  console.log("total_price_three",total_price_three)
678
+    //  console.log("total_price_two",total_price_two)
679
+    //  console.log("total_price_one",total_price_one)
680
+    //  console.log("total_price_four",total_price_four)
681 681
      all_price = total_price- total_price_three +total_price_one - total_price_two + total_price_four
682 682
      console.log("arrll_price",all_price)
683 683
      if(all_price >0){
684 684
        return all_price.toFixed(2)
685 685
      }else{
686
-      return 0
686
+      return "0.00"
687 687
      }
688 688
    },
689 689
    },

+ 5 - 2
src/xt_pages/stock/stockInOrder.vue Dosyayı Görüntüle

@@ -104,7 +104,7 @@
104 104
 
105 105
         <el-button size="small" type="primary" @click="toPrint">打印</el-button>
106 106
 
107
-        <el-button size="small" type="primary" @click="toExport">导出</el-button>
107
+        <el-button size="small" type="primary" @click="toExport" @disabled="exportLoding">导出</el-button>
108 108
 
109 109
           <span>&nbsp;&nbsp;</span>
110 110
           <label class="title"><span class="name">审核状态</span> :</label>
@@ -854,6 +854,7 @@ export default {
854 854
        {id:2,name:"未审核"},
855 855
       ],
856 856
       check_id: 0,
857
+      exportLoding:false,
857 858
     };
858 859
 
859 860
 
@@ -1606,6 +1607,7 @@ export default {
1606 1607
       }
1607 1608
     },
1608 1609
     getlist(){
1610
+      this.exportLoding = true
1609 1611
       var params = {
1610 1612
         id:this.order_id,
1611 1613
         start_time:this.start_time,
@@ -1616,7 +1618,7 @@ export default {
1616 1618
       getExportStockList(params).then(response=>{
1617 1619
         if(response.data.state == 1){
1618 1620
            var list = response.data.data.list
1619
-
1621
+          
1620 1622
            for(let i=0;i<this.goodType.length;i++){
1621 1623
              for(let j=0;j<list.length;j++){
1622 1624
                if(this.goodType[i].id == list[j].good_type_id){
@@ -1640,6 +1642,7 @@ export default {
1640 1642
                }
1641 1643
             }
1642 1644
           }
1645
+          this.exportLoding = false
1643 1646
           this.exportList = list
1644 1647
         }
1645 1648
       })

+ 32 - 40
src/xt_pages/stock/stockOutOrder.vue Dosyayı Görüntüle

@@ -106,9 +106,7 @@
106 106
           >删除</el-button
107 107
         >
108 108
         <el-button size="small" type="primary" @click="toPrint">打印</el-button>
109
-        <el-button size="small" type="primary" @click="toExport"
110
-          >导出</el-button
111
-        >
109
+        <el-button size="small" type="primary" @click="toExport" :disabled="exportLoding">导出</el-button>
112 110
         <span>&nbsp;&nbsp;</span>
113 111
         <label class="title"><span class="name">出库方式</span> :</label>
114 112
         <el-select size="small" v-model="way_type" filterable placeholder="请选择仓库" style="width:200px" @change="changeWay">
@@ -1039,32 +1037,35 @@ export default {
1039 1037
       check_id: 0,
1040 1038
       flowList:[],
1041 1039
       cancelInfoList:[],
1040
+      exportLoding:false,
1042 1041
     };
1043 1042
   },
1044 1043
   methods: {
1045 1044
     changeTypeName() {
1046 1045
       this.getlist();
1047 1046
     },
1048
-    getlist() {
1049
-      var params = {
1050
-        check_id: this.check_id,
1051
-        start_time: this.start_time,
1052
-        end_time: this.end_time,
1053
-        keyword: this.keywords,
1054
-        page: this.page,
1055
-        limit: this.limit,
1056
-      };
1057
-      getAllSecondOrderList(params).then((response) => {
1058
-        if (response.data.state == 1) {
1059
-          var list = response.data.data.list;
1060
-          this.tableList = list;
1061
-          var total = response.data.data.total;
1062
-          this.total = total;
1063
-          this.houseList = response.data.data.houseList;
1064
-          this.doctorList = response.data.data.doctorList;
1065
-        }
1066
-      });
1067
-    },
1047
+    // getlist() {
1048
+     
1049
+    //   var params = {
1050
+    //     check_id: this.check_id,
1051
+    //     start_time: this.start_time,
1052
+    //     end_time: this.end_time,
1053
+    //     keyword: this.keywords,
1054
+    //     page: this.page,
1055
+    //     limit: this.limit,
1056
+    //   };
1057
+    //   getAllSecondOrderList(params).then((response) => {
1058
+    //     if (response.data.state == 1) {
1059
+         
1060
+    //       var list = response.data.data.list;
1061
+    //       this.tableList = list;
1062
+    //       var total = response.data.data.total;
1063
+    //       this.total = total;
1064
+    //       this.houseList = response.data.data.houseList;
1065
+    //       this.doctorList = response.data.data.doctorList;
1066
+    //     }
1067
+    //   });
1068
+    // },
1068 1069
     search: function () {
1069 1070
       const Params = {
1070 1071
         page: this.page,
@@ -1301,7 +1302,6 @@ export default {
1301 1302
       }
1302 1303
     },
1303 1304
     select(selection) {
1304
-     
1305 1305
       var ids = [];
1306 1306
       for (let i = 0; i < selection.length; i++) {
1307 1307
         ids.push(selection[i].id);
@@ -1989,31 +1989,22 @@ export default {
1989 1989
       }
1990 1990
     },
1991 1991
     getlist() {
1992
+      this.exportLoding = true
1992 1993
       var params = {
1993 1994
         id: this.order_id,
1994 1995
         start_time: this.start_time,
1995 1996
         end_time: this.end_time,
1996 1997
       };
1997
-      console.log("params2332323232de",params)
1998 1998
       getOutExportList(params).then((response) => {
1999 1999
         if (response.data.state == 1) {
2000 2000
           var list = response.data.data.list;
2001 2001
           var outCount = response.data.data.outCount;
2002
-
2002
+          
2003 2003
           for (let i = 0; i < list.length; i++) {
2004
-            list[i].unit =
2005
-              list[i].specification_name + "/" + list[i].packing_unit;
2006
-            list[i].total_price = (list[i].total_count * list[i].price).toFixed(
2007
-              2
2008
-            );
2009
-            list[i].expiry_date = this.getTime(
2010
-              list[i].expiry_date,
2011
-              "{y}-{m}-{d}"
2012
-            );
2013
-            list[i].product_date = this.getTime(
2014
-              list[i].product_date,
2015
-              "{y}-{m}-{d}"
2016
-            );
2004
+            list[i].unit = list[i].specification_name + "/" + list[i].packing_unit;
2005
+            list[i].total_price = (list[i].total_count * list[i].price).toFixed(2);
2006
+            list[i].expiry_date = this.getTime(list[i].expiry_date,"{y}-{m}-{d}");
2007
+            list[i].product_date = this.getTime(list[i].product_date,"{y}-{m}-{d}");
2017 2008
             for (let j = 0; j < this.manufacturer.length; j++) {
2018 2009
               if (list[i].manufacturer == this.manufacturer[j].id) {
2019 2010
                 list[i].manufacturer = this.manufacturer[j].manufacturer_name;
@@ -2030,8 +2021,9 @@ export default {
2030 2021
               }
2031 2022
             }
2032 2023
           }
2033
-
2024
+          console.log("list232332232332323223",list)
2034 2025
           this.exportList = list;
2026
+          this.exportLoding = false
2035 2027
         }
2036 2028
       });
2037 2029
     },