|
@@ -68,6 +68,9 @@ const outMaterial = (value) => {
|
|
|
})
|
|
|
});
|
|
|
}
|
|
|
+const changeMaxNum = () => {
|
|
|
+ option.value.column.find(item => item.prop == 'outNum').max = props.materialInfo.num - props.materialInfo.receiveNum
|
|
|
+}
|
|
|
const props = defineProps({
|
|
|
materialInfo: {
|
|
|
type: Object,
|
|
@@ -85,6 +88,7 @@ const props = defineProps({
|
|
|
watch(
|
|
|
() => props.materialInfo,
|
|
|
() => {
|
|
|
+ changeMaxNum()
|
|
|
search.value.materialNo = props.materialInfo.materialCode
|
|
|
queryDataList();
|
|
|
}
|