|
@@ -643,7 +643,7 @@ func (c *HisApiController) ChangeDrug() {
|
643
|
643
|
if res3.Infcode != -1{
|
644
|
644
|
item.IsChange = 1
|
645
|
645
|
item.Bchno = item.NewDrugWarehouseInfo.Bchno
|
646
|
|
- service.SaveDF(item)
|
|
646
|
+ service.SaveDF2(item)
|
647
|
647
|
}else{
|
648
|
648
|
err = append(err,item.HisDoctorAdviceInfo.AdviceName +",销售变更失败:"+res3.ErrMsg)
|
649
|
649
|
}
|
|
@@ -690,7 +690,7 @@ func (c *HisApiController) ChangeDrug() {
|
690
|
690
|
if res3.Infcode != -1 {
|
691
|
691
|
item.IsChange = 1
|
692
|
692
|
item.Bchno = item.NewDrugWarehouseInfo.Bchno
|
693
|
|
- service.SaveDF(item)
|
|
693
|
+ service.SaveDF2(item)
|
694
|
694
|
} else {
|
695
|
695
|
err = append(err, item.HisDoctorAdviceInfo.AdviceName+",销售变更失败:"+res3.ErrMsg)
|
696
|
696
|
}
|
|
@@ -720,7 +720,7 @@ func (c *HisApiController) ChangeDrug() {
|
720
|
720
|
if res3.Infcode != -1{
|
721
|
721
|
item.IsChange = 1
|
722
|
722
|
item.Bchno = item.NewDrugWarehouseInfo.Bchno
|
723
|
|
- service.SaveDF(item)
|
|
723
|
+ service.SaveDF2(item)
|
724
|
724
|
}else{
|
725
|
725
|
err = append(err,item.HisDoctorAdviceInfo.AdviceName +",销售变更失败:"+res3.ErrMsg)
|
726
|
726
|
}
|
|
@@ -735,7 +735,7 @@ func (c *HisApiController) ChangeDrug() {
|
735
|
735
|
if item.IsSale == 1 { //是否已经销售,1是 0否
|
736
|
736
|
//是否已经变更 1是 0否
|
737
|
737
|
if item.IsChange == 0 { //没变更,进行变更操作
|
738
|
|
- result, result2 :=ChangeStock(item.Count, item, miConfig, "107", roles)
|
|
738
|
+ result, result2 := ChangeStock(item.Count, item, miConfig, "107", roles)
|
739
|
739
|
saveLog(result, result2, "3502", "自动出库,未销售,未变更3502")
|
740
|
740
|
|
741
|
741
|
var respJSON3 map[string]interface{}
|
|
@@ -753,7 +753,7 @@ func (c *HisApiController) ChangeDrug() {
|
753
|
753
|
if res3.Infcode != -1{
|
754
|
754
|
item.IsChange = 1
|
755
|
755
|
item.Bchno = item.NewDrugWarehouseInfo.Bchno
|
756
|
|
- service.SaveDF(item)
|
|
756
|
+ service.SaveDF2(item)
|
757
|
757
|
}else{
|
758
|
758
|
err = append(err,item.HisDoctorAdviceInfo.AdviceName +",销售变更失败:"+res3.ErrMsg)
|
759
|
759
|
}
|
|
@@ -781,7 +781,7 @@ func (c *HisApiController) ChangeDrug() {
|
781
|
781
|
if res3.Infcode != -1{
|
782
|
782
|
item.IsChange = 1
|
783
|
783
|
item.Bchno = item.NewDrugWarehouseInfo.Bchno
|
784
|
|
- service.SaveDF(item)
|
|
784
|
+ service.SaveDF2(item)
|
785
|
785
|
}else{
|
786
|
786
|
err = append(err,item.HisDoctorAdviceInfo.AdviceName +",销售变更失败:"+res3.ErrMsg)
|
787
|
787
|
}
|
|
@@ -807,7 +807,7 @@ func (c *HisApiController) ChangeDrug() {
|
807
|
807
|
if res3.Infcode != -1{
|
808
|
808
|
item.IsChange = 1
|
809
|
809
|
item.Bchno = item.NewDrugWarehouseInfo.Bchno
|
810
|
|
- service.SaveDF(item)
|
|
810
|
+ service.SaveDF2(item)
|
811
|
811
|
}else{
|
812
|
812
|
err = append(err,item.HisDoctorAdviceInfo.AdviceName +",销售变更失败:"+res3.ErrMsg)
|
813
|
813
|
}
|
|
@@ -835,7 +835,7 @@ func (c *HisApiController) ChangeDrug() {
|
835
|
835
|
if res3.Infcode != -1{
|
836
|
836
|
item.IsChange = 1
|
837
|
837
|
item.Bchno = item.NewDrugWarehouseInfo.Bchno
|
838
|
|
- service.SaveDF(item)
|
|
838
|
+ service.SaveDF2(item)
|
839
|
839
|
}else{
|
840
|
840
|
err = append(err,item.HisDoctorAdviceInfo.AdviceName +",销售变更失败:"+res3.ErrMsg)
|
841
|
841
|
}
|