Преглед на файлове

11月14日 库存扣减更新

XMLWAN преди 3 години
родител
ревизия
c48eded290

+ 2 - 1
src/xt_pages/stock/cancelStockOrder.vue Целия файл

@@ -479,7 +479,8 @@ export default {
479 479
       const params = {
480 480
         ids: idStr
481 481
       };
482
-
482
+      console.log("params233223232323232323",params)
483
+     
483 484
       this.$confirm("确认删除退库单记录?", "删除退库单记录", {
484 485
         confirmButtonText: "确定",
485 486
         cancelButtonText: "取消",

+ 2 - 2
src/xt_pages/stock/cancelStockOrderEdit.vue Целия файл

@@ -514,7 +514,7 @@
514 514
               }
515 515
               array[i].price = array[i].price.toString()
516 516
             }
517
-            console.log("hh2332322323",this.recordInfo.recordData)
517
+           
518 518
             for(let i=0;i<this.recordInfo.recordData.length;i++){
519 519
                if(this.recordInfo.recordData[i].good_id == 0){
520 520
                   this.$message.error("耗材规格不能为空")
@@ -536,7 +536,7 @@
536 536
             const params = {
537 537
               'cancelStock': this.recordInfo.recordData
538 538
             }
539
-            console.log("parasm23232",params)
539
+            
540 540
            
541 541
             editCancelStockInfo(params, this.return_time, this.$route.query.id, this.$route.query.type,this.form.manufacturer,this.form.dealer).then(response => {
542 542
               if (response.data.state == 0) {

+ 1 - 1
src/xt_pages/stock/drugs/drugStockInOrderEdit.vue Целия файл

@@ -686,7 +686,7 @@ export default {
686 686
             stockIn: this.recordInfo.recordData
687 687
           };
688 688
           console.log("params22222222222",params)
689
-     
689
+        
690 690
           EditDrugWarehouse(
691 691
             params,
692 692
             this.warehousing_time,

+ 11 - 15
src/xt_pages/stock/drugs/inventory.vue Целия файл

@@ -230,10 +230,10 @@ export default {
230 230
             if (keyword != undefined) {
231 231
                 key = keyword
232 232
             }
233
-            console.log("keyword23323232323223",keyword)
234 233
              var params = {
235 234
                 keyword:key,
236 235
              }
236
+            
237 237
             postSearchDrugWarehouseList(params).then(response => {
238 238
             if (response.data.state == 1) {
239 239
             
@@ -282,7 +282,6 @@ export default {
282 282
            getDrugWarehouseInfoList(params).then(response=>{
283 283
              if(response.data.state == 1){
284 284
                 var list =  response.data.data.list
285
-               console.log("表哥323322332232323",this.tableData)
286 285
                 for(let i=0;i<list.length;i++){
287 286
                    list[i].drug_name = list[i].XtBaseDrug.drug_name
288 287
                    list[i].specification_name = list[i].XtBaseDrug.dose +list[i].XtBaseDrug.dose_unit + "*"+list[i].XtBaseDrug.min_number +list[i].XtBaseDrug.min_unit+"/"+list[i].XtBaseDrug.max_unit
@@ -330,7 +329,7 @@ export default {
330 329
                       }
331 330
                    }
332 331
                  }
333
-                console.log("newlist23233223323222323232332",newList)
332
+               
334 333
                 this.tableData = newList
335 334
                 this.showSearch = false
336 335
                 this.showTable = true
@@ -575,7 +574,6 @@ export default {
575 574
             arr.push(val[i].id)
576 575
         }
577 576
         var str = arr.join(",") 
578
-        console.log("str",str)
579 577
         this.ids = str
580 578
         },
581 579
       toCheck(){
@@ -592,7 +590,6 @@ export default {
592 590
             check_time:this.getTime(this.check_time),
593 591
             checker:this.checker,
594 592
          }
595
-       console.log("params",params)
596 593
        SaveDrugCheckedInventory(params).then(response=>{
597 594
          if(response.data.state == 1){
598 595
            this.$message.success("保存成功")
@@ -611,7 +608,7 @@ export default {
611 608
        getDrugInventoryDetail(id).then(response=>{
612 609
          if(response.data.state == 1){
613 610
             var detail = response.data.data.detail
614
-            console.log("detial2323223",detail)
611
+            
615 612
             this.id = detail.id
616 613
             this.form.drug_id = detail.drug_id
617 614
             this.form.drug_name = detail.drug_name
@@ -659,7 +656,7 @@ export default {
659 656
           min_count:parseInt(this.form.min_count),
660 657
           min_unit:this.form.min_unit,
661 658
        }
662
-       console.log("params2222",params)
659
+    
663 660
       
664 661
       modifyInventory(params).then(response=>{
665 662
          if(response.data.state == 1){
@@ -692,7 +689,7 @@ export default {
692 689
         });   
693 690
      },
694 691
     toMove(item,index){
695
-      console.log("index",item)
692
+      
696 693
        this.$confirm('此操作将移除药品整个批次, 是否继续?', '提示', {
697 694
           confirmButtonText: '确定',
698 695
           cancelButtonText: '取消',
@@ -701,13 +698,13 @@ export default {
701 698
           this.tableData.splice(index,1)
702 699
           this.WarehouseList = []
703 700
           this.activeNames = [0,1,2,3,4,5,6,7,8,9,10]
704
-          console.log("hhhh233232",this.tableData)
701
+         
705 702
         }).catch(() => {
706 703
           this.loading = false
707 704
         });   
708 705
     },
709 706
     toDelete(index,drug_id){
710
-      console.log("oo2o323323223",this.tableData)
707
+      
711 708
       for(let i=0;i<this.tableData.length;i++){
712 709
          if(drug_id == this.tableData[i].drug_id){
713 710
            this.tableData[i].child.splice(index,1)
@@ -745,7 +742,6 @@ export default {
745 742
           getDrugBatchNumber(params).then(response=>{
746 743
             if(response.data.state == 1){
747 744
               var list = response.data.data.list
748
-              console.log("list2222",list)
749 745
               this.numberList = list
750 746
             }
751 747
           })
@@ -754,7 +750,6 @@ export default {
754 750
          getDrugInventoryDetail(id).then(response=>{
755 751
           if(response.data.state == 1){
756 752
             var detail = response.data.data.detail
757
-            console.log("detail22222222",detail)
758 753
             this.id = detail.id
759 754
             this.form.drug_id = detail.drug_id
760 755
             this.form.drug_name = detail.drug_name
@@ -783,11 +778,11 @@ export default {
783 778
              remark:this.remark,
784 779
              proof_count:parseInt(this.form.proof_count),
785 780
            }
786
-          console.log("params",params)
781
+         
787 782
          SaveDrugProofInventory(params).then(response=>{
788 783
             if(response.data.state == 1){
789 784
               var inventory = response.data.data.inventory
790
-              console.log("inventory",inventory)
785
+             
791 786
               this.profdialogVisible = false
792 787
               this.getlist()
793 788
             }
@@ -808,7 +803,6 @@ export default {
808 803
       getDrugWarehouseInfoTotal(params).then(response=>{
809 804
          if(response.data.state == 1){
810 805
            var list = response.data.data.list
811
-           console.log("list",list)
812 806
           
813 807
           var max_total = 0
814 808
           var min_total = 0
@@ -859,7 +853,9 @@ export default {
859 853
         if(response.data.state == 1){
860 854
            var inventory = response.data.data.inventory
861 855
            this.$message.success("保存成功")
856
+           this.WarehouseList = []
862 857
            this.tableData = []
858
+          
863 859
         }
864 860
       })
865 861
     }

+ 3 - 3
src/xt_pages/user/coursePrint.vue Целия файл

@@ -108,16 +108,16 @@
108 108
         ids:ids,
109 109
         patient_id:patient_id,
110 110
       }
111
-      console.log("para2333223233223",params)
111
+   
112 112
       GetCoursePrintData(params).then(rs => {
113 113
         var resp = rs.data
114 114
         if (resp.state == 1) {
115 115
           this.record = resp.data.record
116
-          console.log("h2232323223",this.record)
116
+         
117 117
           // for(let i=0;i<this.record.length;i++){
118 118
           //   this.record[i].content = this.record[i].content.replace(new RegExp('<p>','g'),"<div>").replace(new RegExp('</p>','g'),"</div>")
119 119
           // }
120
-          console.log("h2232323223",this.record)
120
+  
121 121
           this.patient = resp.data.patient
122 122
 
123 123
           this.loading = false