|
@@ -152,7 +152,7 @@
|
152
|
152
|
>
|
153
|
153
|
<div style="display:flex;">
|
154
|
154
|
<el-input
|
155
|
|
- @input="getSupplyCount(scope.row.count,scope.row.max_unit,scope.row.min_unit,scope.$index,scope.row.total_count,scope.row.max_unit_fisrt,scope.row.min_unit_fisrt)"
|
|
155
|
+ @input="getSupplyCount(scope.row.count,scope.row.max_unit,scope.row.min_number,scope.$index,scope.row.total_count,scope.row.max_unit_fisrt,scope.row.min_unit_fisrt)"
|
156
|
156
|
oninput="value=value.replace(/\D|^0/g,'')"
|
157
|
157
|
style="width:80px"
|
158
|
158
|
placeholder="请输入出库数量"
|
|
@@ -921,7 +921,7 @@ export default {
|
921
|
921
|
return total
|
922
|
922
|
},
|
923
|
923
|
getSupplyCount(count,max_unit,min_number,index,total_count,max_unit_fisrt,min_unit_fisrt){
|
924
|
|
-
|
|
924
|
+
|
925
|
925
|
var count_total = 0
|
926
|
926
|
if(max_unit == max_unit_fisrt){
|
927
|
927
|
count_total = count * min_number
|
|
@@ -930,7 +930,7 @@ export default {
|
930
|
930
|
if(max_unit == min_unit_fisrt){
|
931
|
931
|
count_total = count
|
932
|
932
|
}
|
933
|
|
-
|
|
933
|
+
|
934
|
934
|
if(count_total > total_count){
|
935
|
935
|
this.$message.error("出库数量不能大于剩余库存")
|
936
|
936
|
for(let i=0;i<this.recordInfo.recordData.length;i++){
|