|
@@ -718,6 +718,13 @@ export default {
|
718
|
718
|
}
|
719
|
719
|
|
720
|
720
|
for(let i=0;i<this.recordInfo.recordData.length;i++){
|
|
721
|
+
|
|
722
|
+ if( this.recordInfo.recordData[i].count == 0){
|
|
723
|
+ this.$message.error("出库数量不能为空!")
|
|
724
|
+ this.loading = false
|
|
725
|
+ return
|
|
726
|
+ }
|
|
727
|
+
|
721
|
728
|
if(this.recordInfo.recordData[i].dealer == ""){
|
722
|
729
|
this.recordInfo.recordData[i].dealer = 0
|
723
|
730
|
}
|
|
@@ -736,6 +743,8 @@ export default {
|
736
|
743
|
|
737
|
744
|
this.recordInfo.recordData[i].count = this.recordInfo.recordData[i].count.toString()
|
738
|
745
|
|
|
746
|
+
|
|
747
|
+
|
739
|
748
|
}
|
740
|
749
|
|
741
|
750
|
for(let i=0;i<this.recordInfo.recordData.length;i++){
|
|
@@ -795,10 +804,12 @@ export default {
|
795
|
804
|
if (response.data.state == 0) {
|
796
|
805
|
this.$message.error("库存不足")
|
797
|
806
|
loading.close()
|
|
807
|
+ this.loading = false
|
798
|
808
|
return false;
|
799
|
809
|
} else {
|
800
|
810
|
var msg = response.data.data.msg
|
801
|
811
|
this.loading = false
|
|
812
|
+ loading.close()
|
802
|
813
|
var good_name = response.data.data.good_name
|
803
|
814
|
var specification_name = response.data.data.specification_name
|
804
|
815
|
var storehose_name = response.data.data.storehose_name
|
|
@@ -821,12 +832,12 @@ export default {
|
821
|
832
|
var doctorList = response.data.data.doctorList
|
822
|
833
|
for(let i=0;i<warehouseOutInfoList.length;i++){
|
823
|
834
|
for(let j=0;j<manufacturerList.length;j++){
|
824
|
|
- if(warehouseOutInfoList[i].manufacturer_id == manufacturerList[i].id){
|
825
|
|
- warehouseOutInfoList[i].manufacturer_id = manufacturerList[i].manufacturer_name
|
|
835
|
+ if(warehouseOutInfoList[i].manufacturer == manufacturerList[i].id){
|
|
836
|
+ warehouseOutInfoList[i].manufacturer = manufacturerList[i].manufacturer_name
|
826
|
837
|
}
|
827
|
838
|
}
|
828
|
839
|
for(let z=0;z<dealerList.length;z++){
|
829
|
|
- if(warehouseOutInfoList[i].dealer_id == dealerList[z].id){
|
|
840
|
+ if(warehouseOutInfoList[i].dealer == dealerList[z].id){
|
830
|
841
|
warehouseOutInfoList[i].dealer_id = dealerList[z].dealer_name
|
831
|
842
|
}
|
832
|
843
|
}
|
|
@@ -849,6 +860,8 @@ export default {
|
849
|
860
|
this.showCheck = true
|
850
|
861
|
}
|
851
|
862
|
loading.close()
|
|
863
|
+ this.loading = false
|
|
864
|
+ loading.close()
|
852
|
865
|
|
853
|
866
|
}
|
854
|
867
|
});
|
|
@@ -966,12 +979,12 @@ export default {
|
966
|
979
|
this.recordInfo.recordData[i].dealer = val.dealer
|
967
|
980
|
}
|
968
|
981
|
|
969
|
|
- for(let i=0;i<this.recordInfo.recordData.length;i++){
|
970
|
|
- this.recordInfo.recordData[i].warehouse_info_str = ""
|
971
|
|
- for(let j=0;j<this.recordInfo.recordData[i].xt_warehouse_info.length;j++){
|
972
|
|
- this.recordInfo.recordData[i].warehouse_info_str += "批次:"+this.recordInfo.recordData[i].xt_warehouse_info[j].number+" " + "剩余:"+this.recordInfo.recordData[i].xt_warehouse_info[j].stock_count+this.recordInfo.recordData[i].packing_unit +"\n"
|
973
|
|
- }
|
974
|
|
- }
|
|
982
|
+ // for(let i=0;i<this.recordInfo.recordData.length;i++){
|
|
983
|
+ // this.recordInfo.recordData[i].warehouse_info_str = ""
|
|
984
|
+ // for(let j=0;j<this.recordInfo.recordData[i].xt_warehouse_info.length;j++){
|
|
985
|
+ // this.recordInfo.recordData[i].warehouse_info_str += "批次:"+this.recordInfo.recordData[i].xt_warehouse_info[j].number+" " + "剩余:"+this.recordInfo.recordData[i].xt_warehouse_info[j].stock_count+this.recordInfo.recordData[i].packing_unit +"\n"
|
|
986
|
+ // }
|
|
987
|
+ // }
|
975
|
988
|
|
976
|
989
|
console.log("日期我我我哦我", this.recordInfo.recordData)
|
977
|
990
|
}
|
|
@@ -1117,6 +1130,9 @@ export default {
|
1117
|
1130
|
tempObj['register_number'] = ''
|
1118
|
1131
|
tempObj['patient_id'] = 0
|
1119
|
1132
|
tempObj["class_type"] = ""
|
|
1133
|
+ tempObj["product_date"] = ""
|
|
1134
|
+ tempObj["expiry_date"] = ""
|
|
1135
|
+ tempObj["count"] = ""
|
1120
|
1136
|
|
1121
|
1137
|
this.recordInfo.recordData.push(tempObj);
|
1122
|
1138
|
this.GetConfigInfo();
|