Bladeren bron

8月15日

XMLWAN 2 jaren geleden
bovenliggende
commit
d35a29f04f

+ 16 - 0
src/api/dialysis.js Bestand weergeven

315
     params: params
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 Bestand weergeven

28
           <i class="iconfont icon-kccx navIcon"></i>
28
           <i class="iconfont icon-kccx navIcon"></i>
29
           <p>库房管理</p>
29
           <p>库房管理</p>
30
         </div>
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
           <i class="iconfont icon-shangcheng-1 navIcon"></i>
32
           <i class="iconfont icon-shangcheng-1 navIcon"></i>
33
-          <p>酷医商城</p>
33
+          <p>圣械通</p>
34
         </div>
34
         </div>
35
 
35
 
36
         <div class="navOne" @click="open">
36
         <div class="navOne" @click="open">

+ 363 - 15
src/xt_pages/dialysis/details/consumable/dialysisParameter.vue Bestand weergeven

79
       </el-table>
79
       </el-table>
80
 
80
 
81
       <el-dialog
81
       <el-dialog
82
-        title="提示"
82
+        title="统计类型设置"
83
         :visible.sync="dialogVisible"
83
         :visible.sync="dialogVisible"
84
         width="30%">
84
         width="30%">
85
         <span>
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
         </span>
108
         </span>
97
         <span slot="footer" class="dialog-footer">
109
         <span slot="footer" class="dialog-footer">
98
           <el-button @click="dialogVisible = false">取 消</el-button>
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
        </span>
112
        </span>
101
       </el-dialog>
113
       </el-dialog>
102
 
114
 
119
 
131
 
120
 
132
 
121
 <script>
133
 <script>
122
-  import { GetAllZone } from '@/api/dialysis'
123
-
134
+  import { GetAllZone,saveDialysisSetting,getDialysisSetting } from '@/api/dialysis'
124
   import { uParseTime } from "@/utils/tools";
135
   import { uParseTime } from "@/utils/tools";
125
-
136
+  import store from "@/store";
126
   export default {
137
   export default {
127
     components: {
138
     components: {
128
       
139
       
173
         total:0,
184
         total:0,
174
         dialogVisible:false,
185
         dialogVisible:false,
175
         predialysisConditionOptions:[],
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
     created() {
213
     created() {
211
      
246
      
212
     },
247
     },
213
     methods: {
248
     methods: {
249
+      open(){
250
+
251
+      },
214
       getlist(){
252
       getlist(){
215
 
253
 
216
       },
254
       },
337
       formatJson(filterVal, jsonData) {
375
       formatJson(filterVal, jsonData) {
338
         return jsonData.map(v => filterVal.map(j => v[j]));
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
 </script>
691
 </script>

+ 5 - 2
src/xt_pages/stock/cancelStockOrder.vue Bestand weergeven

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

+ 10 - 3
src/xt_pages/stock/detail/stockOutDetail.vue Bestand weergeven

337
         } else {
337
         } else {
338
 
338
 
339
           this.total = response.data.data.total;
339
           this.total = response.data.data.total;
340
+          this.wareOutList = []
341
+          this.wareOutList =  response.data.data.list
342
+          console.log("党的20大长长",this.wareOutList)
340
           var total = 0
343
           var total = 0
344
+
341
           for (let i = 0; i < response.data.data.list.length; i++) {
345
           for (let i = 0; i < response.data.data.list.length; i++) {
342
             this.tableData.push(response.data.data.list[i])
346
             this.tableData.push(response.data.data.list[i])
343
 
347
 
393
            this.houseList.push(response.data.data.houseList[i])
397
            this.houseList.push(response.data.data.houseList[i])
394
           }
398
           }
395
           this.wareOutList =  response.data.data.list
399
           this.wareOutList =  response.data.data.list
400
+          console.log("党的20大长长",this.wareOutList)
396
           var total = 0
401
           var total = 0
397
           for (let i = 0; i < response.data.data.list.length; i++) {
402
           for (let i = 0; i < response.data.data.list.length; i++) {
398
             this.tableData.push(response.data.data.list[i])
403
             this.tableData.push(response.data.data.list[i])
785
           this.tableOut[i].total_price = (this.getMySelfCount(this.tableOut[i].good_id) * this.tableOut[i].retail_price).toFixed(2)
790
           this.tableOut[i].total_price = (this.getMySelfCount(this.tableOut[i].good_id) * this.tableOut[i].retail_price).toFixed(2)
786
         }else if(this.orgId == 10210){
791
         }else if(this.orgId == 10210){
787
           this.tableOut[i].total_price = (this.getWarehouseOut(this.tableOut[i].good_id) * this.tableOut[i].retail_price).toFixed(2)
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
           this.tableOut[i].total_price = (this.getWarehouseOut(this.tableOut[i].good_id) * this.tableOut[i].retail_price).toFixed(2)
796
           this.tableOut[i].total_price = (this.getWarehouseOut(this.tableOut[i].good_id) * this.tableOut[i].retail_price).toFixed(2)
790
         }else if(this.orgId == 9956){
797
         }else if(this.orgId == 9956){
791
           this.tableOut[i].total_price = (this.getWarehouseOut(this.tableOut[i].good_id) * this.tableOut[i].retail_price).toFixed(2)
798
           this.tableOut[i].total_price = (this.getWarehouseOut(this.tableOut[i].good_id) * this.tableOut[i].retail_price).toFixed(2)
803
 
810
 
804
          this.tableOut[i].out_count = this.getMySelfCount(this.tableOut[i].good_id)
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
           this.tableOut[i].out_count = this.getWarehouseOut(this.tableOut[i].good_id)
814
           this.tableOut[i].out_count = this.getWarehouseOut(this.tableOut[i].good_id)
808
           console.log("out_count232233232332",this.tableOut[i].out_count)
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
           this.tableOut[i].out_count = this.getStockCount(this.tableOut[i].good_id)
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 Bestand weergeven

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

+ 40 - 19
src/xt_pages/stock/drugs/components/purchaseDrugQuery.vue Bestand weergeven

507
       totalfive += arr5[i].count
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
   total = totalOne - totalTwo + totalthree - totalfour + totalfive
514
   total = totalOne - totalTwo + totalthree - totalfour + totalfive
515
   if (total < min_number) {
515
   if (total < min_number) {
516
      min_str = total + min_unit;
516
      min_str = total + min_unit;
527
       min_str = (total % min_number) + min_unit;
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
   getDrugWarehouseInfo(arr,arr4,min_number,min_unit,max_unit,arr2,arr3,arr5){
540
   getDrugWarehouseInfo(arr,arr4,min_number,min_unit,max_unit,arr2,arr3,arr5){
585
       min_str = (total % min_number) + min_unit;
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
   getDrugWarehouseInfoStart(arr,min_number,min_unit,max_unit,outArr){
602
   getDrugWarehouseInfoStart(arr,min_number,min_unit,max_unit,outArr){
779
    if(total_price >0){
790
    if(total_price >0){
780
     return total_price
791
     return total_price
781
    }else{
792
    }else{
782
-    return 0
793
+    return "0.00"
783
    }
794
    }
784
   
795
   
785
   },
796
   },
825
    if(total_price > 0){
836
    if(total_price > 0){
826
      return total_price.toFixed(2)
837
      return total_price.toFixed(2)
827
    }else{
838
    }else{
828
-    return 0
839
+    return "0.00"
829
    }
840
    }
830
   },
841
   },
831
   getSaleMoney(arr,arr4,min_number,min_unit,max_unit,arr2,arr3,arr5){
842
   getSaleMoney(arr,arr4,min_number,min_unit,max_unit,arr2,arr3,arr5){
871
    if(total_price >0){
882
    if(total_price >0){
872
      return total_price.toFixed(2)
883
      return total_price.toFixed(2)
873
    }else{
884
    }else{
874
-    return 0
885
+    return "0.00"
875
    }
886
    }
876
   
887
   
877
   },
888
   },
911
       total_five+=arr5[i].count * arr5[i].xt_drug_warehouse_info.retail_price
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
    total_price =(totalOne - totalTwo+total_three - total_four + total_five).toFixed(2)
931
    total_price =(totalOne - totalTwo+total_three - total_four + total_five).toFixed(2)
921
    if(total_price > 0){
932
    if(total_price > 0){
922
       return total_price
933
       return total_price
923
    }else{
934
    }else{
924
-     return 0
935
+     return "0.00"
925
    }
936
    }
926
   
937
   
927
   },
938
   },
1015
         min_str = (total % min_number) + min_unit;
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
    getdrugAddPrice(arr,min_number,min_unit,max_unit,arr2){
1036
    getdrugAddPrice(arr,min_number,min_unit,max_unit,arr2){
1021
     var total = 0
1037
     var total = 0
1098
         min_str = (total % min_number) + min_unit;
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
    getDrugOutPrice(arr,min_number,min_unit,max_unit,arr2,arr3){
1124
    getDrugOutPrice(arr,min_number,min_unit,max_unit,arr2,arr3){
1104
     
1125
     
1133
     if(total_price > 0){
1154
     if(total_price > 0){
1134
       return total_price.toFixed(2)
1155
       return total_price.toFixed(2)
1135
     }else{
1156
     }else{
1136
-     return 0
1157
+     return "0.00"
1137
     }
1158
     }
1138
     
1159
     
1139
    },
1160
    },
1165
     if(total_price > 0){
1186
     if(total_price > 0){
1166
       return total_price.toFixed(2)
1187
       return total_price.toFixed(2)
1167
     }else{
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 Bestand weergeven

421
       min_str = (total % min_number) + min_unit;
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
   getDrugWarehouseInfo(arr,arr4,min_number,min_unit,max_unit,arr2,arr3,arr5){
432
   getDrugWarehouseInfo(arr,arr4,min_number,min_unit,max_unit,arr2,arr3,arr5){
479
       min_str = (total % min_number) + min_unit;
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
   getDrugWarehouseInfoStart(arr,min_number,min_unit,max_unit,outArr){
493
   getDrugWarehouseInfoStart(arr,min_number,min_unit,max_unit,outArr){
486
    var total = 0
494
    var total = 0
674
    if(total_price >0){
682
    if(total_price >0){
675
     return total_price
683
     return total_price
676
    }else{
684
    }else{
677
-    return 0
685
+    return "0.00"
678
    }
686
    }
679
   
687
   
680
   },
688
   },
720
    if(total_price > 0){
728
    if(total_price > 0){
721
      return total_price.toFixed(2)
729
      return total_price.toFixed(2)
722
    }else{
730
    }else{
723
-    return 0
731
+    return "0.00"
724
    }
732
    }
725
   },
733
   },
726
   getSaleMoney(arr,arr4,min_number,min_unit,max_unit,arr2,arr3,arr5){
734
   getSaleMoney(arr,arr4,min_number,min_unit,max_unit,arr2,arr3,arr5){
766
    if(total_price >0){
774
    if(total_price >0){
767
      return total_price.toFixed(2)
775
      return total_price.toFixed(2)
768
    }else{
776
    }else{
769
-    return 0
777
+    return "0.00"
770
    }
778
    }
771
   
779
   
772
   },
780
   },
811
    if(total_price > 0){
819
    if(total_price > 0){
812
       return total_price
820
       return total_price
813
    }else{
821
    }else{
814
-     return 0
822
+     return "0.00"
815
    }
823
    }
816
   
824
   
817
   },
825
   },
898
         min_str = (total % min_number) + min_unit;
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
     getdrugAddPrice(arr,min_number,min_unit,max_unit,arr2){
916
     getdrugAddPrice(arr,min_number,min_unit,max_unit,arr2){
904
     var total = 0
917
     var total = 0
981
         min_str = (total % min_number) + min_unit;
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
      getDrugOutPrice(arr,min_number,min_unit,max_unit,arr2,arr3){
1004
      getDrugOutPrice(arr,min_number,min_unit,max_unit,arr2,arr3){
987
     
1005
     
1016
     if(total_price > 0){
1034
     if(total_price > 0){
1017
       return total_price.toFixed(2)
1035
       return total_price.toFixed(2)
1018
     }else{
1036
     }else{
1019
-     return 0
1037
+     return "0.00"
1020
     }
1038
     }
1021
     
1039
     
1022
    },
1040
    },
1048
     if(total_price > 0){
1066
     if(total_price > 0){
1049
       return total_price.toFixed(2)
1067
       return total_price.toFixed(2)
1050
     }else{
1068
     }else{
1051
-     return 0
1069
+     return "0.00"
1052
     }
1070
     }
1053
     
1071
     
1054
    },
1072
    },

+ 4 - 4
src/xt_pages/stock/drugs/drugStockInOrder.vue Bestand weergeven

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

+ 25 - 28
src/xt_pages/stock/drugs/drugStockOutOrder.vue Bestand weergeven

108
           >删除</el-button
108
           >删除</el-button
109
         >
109
         >
110
         <el-button size="small" type="primary" @click="toPrint">打印</el-button>
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
         <span>&nbsp;&nbsp;</span>
113
         <span>&nbsp;&nbsp;</span>
116
         <label class="title"><span class="name">出库方式</span> :</label>
114
         <label class="title"><span class="name">出库方式</span> :</label>
666
       tabListOne:[],
664
       tabListOne:[],
667
       outList:[],
665
       outList:[],
668
       warehouseOutList:[],
666
       warehouseOutList:[],
667
+      exportLoding:false,
669
     };
668
     };
670
   },
669
   },
671
   methods: {
670
   methods: {
1098
       });
1097
       });
1099
       this.sameRowArr = sameRowArr;
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
     getDrugCount(id) {
1120
     getDrugCount(id) {
1122
       var count = 0;
1121
       var count = 0;
1123
       for (let i = 0; i < this.list.length; i++) {
1122
       for (let i = 0; i < this.list.length; i++) {
1451
       return total_price;
1450
       return total_price;
1452
     },
1451
     },
1453
     getDrugBatchNumber(drugid, count) {
1452
     getDrugBatchNumber(drugid, count) {
1454
-      // console.log("drug_id2323", drugid);
1455
-      // console.log("count", count);
1456
-      // console.log("hhhhhhhhhhh", this.batchNumberList);
1457
       var arr = [];
1453
       var arr = [];
1458
       for (let i = 0; i < this.batchNumberList.length; i++) {
1454
       for (let i = 0; i < this.batchNumberList.length; i++) {
1459
         if (
1455
         if (
1470
       var params = {
1466
       var params = {
1471
         order_id: this.order_id,
1467
         order_id: this.order_id,
1472
       };
1468
       };
1469
+      this.exportLoding = true
1473
       getExportOutOrderDrugList(params).then((response) => {
1470
       getExportOutOrderDrugList(params).then((response) => {
1474
         if (response.data.state == 1) {
1471
         if (response.data.state == 1) {
1475
           var list = response.data.data.list;
1472
           var list = response.data.data.list;
1476
         
1473
         
1477
           this.exportList = list;
1474
           this.exportList = list;
1475
+          this.exportLoding = false
1478
           this.manufacturerList = response.data.data.manufacturerList;
1476
           this.manufacturerList = response.data.data.manufacturerList;
1479
           this.dealerList = response.data.data.dealerList;
1477
           this.dealerList = response.data.data.dealerList;
1480
         }
1478
         }
1513
         );
1511
         );
1514
         for (let j = 0; j < this.manufacturerList.length; j++) {
1512
         for (let j = 0; j < this.manufacturerList.length; j++) {
1515
           if (this.exportList[i].manufacturer == this.manufacturerList[j].id) {
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 Bestand weergeven

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

+ 21 - 21
src/xt_pages/stock/query/purchaseStockQueryPrint.vue Bestand weergeven

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

+ 5 - 2
src/xt_pages/stock/stockInOrder.vue Bestand weergeven

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

+ 32 - 40
src/xt_pages/stock/stockOutOrder.vue Bestand weergeven

106
           >删除</el-button
106
           >删除</el-button
107
         >
107
         >
108
         <el-button size="small" type="primary" @click="toPrint">打印</el-button>
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
         <span>&nbsp;&nbsp;</span>
110
         <span>&nbsp;&nbsp;</span>
113
         <label class="title"><span class="name">出库方式</span> :</label>
111
         <label class="title"><span class="name">出库方式</span> :</label>
114
         <el-select size="small" v-model="way_type" filterable placeholder="请选择仓库" style="width:200px" @change="changeWay">
112
         <el-select size="small" v-model="way_type" filterable placeholder="请选择仓库" style="width:200px" @change="changeWay">
1039
       check_id: 0,
1037
       check_id: 0,
1040
       flowList:[],
1038
       flowList:[],
1041
       cancelInfoList:[],
1039
       cancelInfoList:[],
1040
+      exportLoding:false,
1042
     };
1041
     };
1043
   },
1042
   },
1044
   methods: {
1043
   methods: {
1045
     changeTypeName() {
1044
     changeTypeName() {
1046
       this.getlist();
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
     search: function () {
1069
     search: function () {
1069
       const Params = {
1070
       const Params = {
1070
         page: this.page,
1071
         page: this.page,
1301
       }
1302
       }
1302
     },
1303
     },
1303
     select(selection) {
1304
     select(selection) {
1304
-     
1305
       var ids = [];
1305
       var ids = [];
1306
       for (let i = 0; i < selection.length; i++) {
1306
       for (let i = 0; i < selection.length; i++) {
1307
         ids.push(selection[i].id);
1307
         ids.push(selection[i].id);
1989
       }
1989
       }
1990
     },
1990
     },
1991
     getlist() {
1991
     getlist() {
1992
+      this.exportLoding = true
1992
       var params = {
1993
       var params = {
1993
         id: this.order_id,
1994
         id: this.order_id,
1994
         start_time: this.start_time,
1995
         start_time: this.start_time,
1995
         end_time: this.end_time,
1996
         end_time: this.end_time,
1996
       };
1997
       };
1997
-      console.log("params2332323232de",params)
1998
       getOutExportList(params).then((response) => {
1998
       getOutExportList(params).then((response) => {
1999
         if (response.data.state == 1) {
1999
         if (response.data.state == 1) {
2000
           var list = response.data.data.list;
2000
           var list = response.data.data.list;
2001
           var outCount = response.data.data.outCount;
2001
           var outCount = response.data.data.outCount;
2002
-
2002
+          
2003
           for (let i = 0; i < list.length; i++) {
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
             for (let j = 0; j < this.manufacturer.length; j++) {
2008
             for (let j = 0; j < this.manufacturer.length; j++) {
2018
               if (list[i].manufacturer == this.manufacturer[j].id) {
2009
               if (list[i].manufacturer == this.manufacturer[j].id) {
2019
                 list[i].manufacturer = this.manufacturer[j].manufacturer_name;
2010
                 list[i].manufacturer = this.manufacturer[j].manufacturer_name;
2030
               }
2021
               }
2031
             }
2022
             }
2032
           }
2023
           }
2033
-
2024
+          console.log("list232332232332323223",list)
2034
           this.exportList = list;
2025
           this.exportList = list;
2026
+          this.exportLoding = false
2035
         }
2027
         }
2036
       });
2028
       });
2037
     },
2029
     },