Browse Source

11月14日 库存扣减更新

XMLWAN 3 years ago
parent
commit
e87c3eab1b
2 changed files with 3 additions and 7 deletions
  1. 2 6
      src/xt_pages/stock/drugs/inventory.vue
  2. 1 1
      src/xt_pages/stock/inventory.vue

+ 2 - 6
src/xt_pages/stock/drugs/inventory.vue View File

530
            var params = {
530
            var params = {
531
               tableData:this.tableData
531
               tableData:this.tableData
532
            }
532
            }
533
-          //  console.log("parasm222",params)
534
-           
535
           saveDrugInventory(params).then(response=>{
533
           saveDrugInventory(params).then(response=>{
536
             if(response.data.state == 1){
534
             if(response.data.state == 1){
537
               var msg = response.data.data.msg
535
               var msg = response.data.data.msg
550
             start_time:this.start_time,
548
             start_time:this.start_time,
551
             end_time:this.end_time,
549
             end_time:this.end_time,
552
           }
550
           }
553
-          // console.log("params2332332",params)
554
           getDrugInventoryList(params).then(response=>{
551
           getDrugInventoryList(params).then(response=>{
555
 
552
 
556
             if(response.data.state == 1){
553
             if(response.data.state == 1){
557
               this.total =  response.data.data.total
554
               this.total =  response.data.data.total
558
               this.tableList = response.data.data.list
555
               this.tableList = response.data.data.list
559
-              // console.log("09999999",this.tableList)
560
-              // console.log("表格",this.tableList)
556
+             
561
               this.doctorList =  response.data.data.doctorList
557
               this.doctorList =  response.data.data.doctorList
562
-              // console.log("医生",this.doctorList)
558
+              
563
 
559
 
564
             }
560
             }
565
           })
561
           })

+ 1 - 1
src/xt_pages/stock/inventory.vue View File

549
         if(response.data.state == 1){
549
         if(response.data.state == 1){
550
            var inventory = response.data.data.inventory
550
            var inventory = response.data.data.inventory
551
            this.$message.success("保存成功")
551
            this.$message.success("保存成功")
552
-           
552
+           this.WarehouseList = []
553
            this.tableData = []
553
            this.tableData = []
554
         }
554
         }
555
       })
555
       })