Browse Source

11月14日 库存扣减更新

XMLWAN 3 years ago
parent
commit
c48eded290

+ 2 - 1
src/xt_pages/stock/cancelStockOrder.vue View File

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

+ 2 - 2
src/xt_pages/stock/cancelStockOrderEdit.vue View File

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

+ 1 - 1
src/xt_pages/stock/drugs/drugStockInOrderEdit.vue View File

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

+ 11 - 15
src/xt_pages/stock/drugs/inventory.vue View File

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

+ 3 - 3
src/xt_pages/user/coursePrint.vue View File

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