|
@@ -304,7 +304,7 @@
|
304
|
304
|
<td style="border-right: none; border-inline-end:none;text-align: center">
|
305
|
305
|
<span v-if="is_sys==1 || is_sys == 5">{{getOutCountSix(item.warehousing_detail_id,scope.row.max_unit,scope.row.min_unit,scope.row.min_number,scope.row.drug_id)}}</span>
|
306
|
306
|
<span v-if="is_sys == 12">{{getOutCountTen(item.count,scope.row.max_unit,scope.row.min_unit,scope.row.min_number)}}</span>
|
307
|
|
- <span v-if="is_sys == 0"> {{getOutCountOne(item.batch_number,scope.row.max_unit,scope.row.min_unit,scope.row.min_number)}} </span>
|
|
307
|
+ <span v-if="is_sys == 0"> {{getOutCountOne(item.batch_number,scope.row.max_unit,scope.row.min_unit,scope.row.min_number,scope.row.drug_id)}} </span>
|
308
|
308
|
</td>
|
309
|
309
|
</tr>
|
310
|
310
|
</template>
|
|
@@ -1222,9 +1222,10 @@ export default {
|
1222
|
1222
|
this.dealerList = response.data.data.dealerList;
|
1223
|
1223
|
var drugFlowList = response.data.data.drugFlowList;
|
1224
|
1224
|
var drugList = response.data.data.drugList
|
1225
|
|
-
|
|
1225
|
+
|
1226
|
1226
|
this.tabList = drugList
|
1227
|
1227
|
var drugListOne = response.data.data.drugListFlow
|
|
1228
|
+ console.log("drugListOne----------",drugListOne)
|
1228
|
1229
|
//按批号分组
|
1229
|
1230
|
var drugListTwo= response.data.data.drugListOne
|
1230
|
1231
|
console.log("drugListTwo9922wo",drugListTwo)
|
|
@@ -1247,6 +1248,9 @@ export default {
|
1247
|
1248
|
drugFlowList[i].childOne.push(drugListOne[j])
|
1248
|
1249
|
}
|
1249
|
1250
|
}
|
|
1251
|
+ if(drugFlowList[i].drug_id == 1154){
|
|
1252
|
+ console.log("drugflowlist------",drugFlowList[i].count)
|
|
1253
|
+ }
|
1250
|
1254
|
}
|
1251
|
1255
|
}
|
1252
|
1256
|
|
|
@@ -1311,6 +1315,7 @@ export default {
|
1311
|
1315
|
}
|
1312
|
1316
|
}
|
1313
|
1317
|
}
|
|
1318
|
+ console.log("list表格---------",list)
|
1314
|
1319
|
this.tableList = list;
|
1315
|
1320
|
}
|
1316
|
1321
|
if(is_sys == 12){
|
|
@@ -1821,14 +1826,16 @@ export default {
|
1821
|
1826
|
}
|
1822
|
1827
|
return max_str + min_str;
|
1823
|
1828
|
},
|
1824
|
|
- getOutCountOne(batch_number,max_unit,min_unit,min_number){
|
1825
|
|
-
|
|
1829
|
+ getOutCountOne(batch_number,max_unit,min_unit,min_number,drug_id){
|
|
1830
|
+ console.log("drug_id-----",drug_id)
|
1826
|
1831
|
var arr = []
|
1827
|
1832
|
var total = 0
|
1828
|
1833
|
var max_str = ""
|
1829
|
1834
|
var min_str = ""
|
|
1835
|
+ console.log("tablelost----",this.tabList)
|
1830
|
1836
|
for(let j=0;j<this.tabList.length;j++){
|
1831
|
|
- if(batch_number == this.tabList[j].batch_number){
|
|
1837
|
+
|
|
1838
|
+ if(batch_number == this.tabList[j].batch_number && drug_id == this.tabList[j].drug_id){
|
1832
|
1839
|
arr.push(this.tabList[j])
|
1833
|
1840
|
}
|
1834
|
1841
|
}
|