|
@@ -935,15 +935,18 @@ export default {
|
935
|
935
|
this.dealerList = response.data.data.dealerList
|
936
|
936
|
var drugFlowList = response.data.data.drugFlowList
|
937
|
937
|
if (is_sys == 1){
|
|
938
|
+ if(drugFlowList.length >0){
|
938
|
939
|
for(let i=0;i<drugFlowList.length;i++){
|
939
|
|
- if(drugFlowList[i].count_unit == drugFlowList[i].XtBaseDrug.max_unit){
|
940
|
|
- drugFlowList[i].count = drugFlowList[i].count * drugFlowList[i].XtBaseDrug.min_number
|
941
|
|
- }
|
942
|
|
- if(drugFlowList[i].count_unit == drugFlowList[i].XtBaseDrug.min_unit){
|
943
|
|
- drugFlowList[i].count = drugFlowList[i].count
|
944
|
|
- }
|
|
940
|
+ if(drugFlowList[i].count_unit == drugFlowList[i].XtBaseDrug.max_unit){
|
|
941
|
+ drugFlowList[i].count = drugFlowList[i].count * drugFlowList[i].XtBaseDrug.min_number
|
|
942
|
+ }
|
|
943
|
+ if(drugFlowList[i].count_unit == drugFlowList[i].XtBaseDrug.min_unit){
|
|
944
|
+ drugFlowList[i].count = drugFlowList[i].count
|
|
945
|
+ }
|
945
|
946
|
|
|
947
|
+ }
|
946
|
948
|
}
|
|
949
|
+
|
947
|
950
|
this.drugFlowList = drugFlowList
|
948
|
951
|
}
|
949
|
952
|
if(is_sys == 0){
|
|
@@ -951,7 +954,7 @@ export default {
|
951
|
954
|
this.drugFlowList = []
|
952
|
955
|
for(let i=0;i<flowlist.length;i++){
|
953
|
956
|
if(flowlist[i].count_unit == flowlist[i].max_unit){
|
954
|
|
- flowlist[i].count = flowlist[i].count * list[i].min_number
|
|
957
|
+ flowlist[i].count = flowlist[i].count * flowlist[i].min_number
|
955
|
958
|
}
|
956
|
959
|
if(flowlist[i].count_unit == flowlist[i].min_unit){
|
957
|
960
|
flowlist[i].count = flowlist[i].count
|