|
@@ -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
|
}
|