|
@@ -29,7 +29,7 @@
|
|
|
<div></div>
|
|
|
<div class="operate" >
|
|
|
<div class="describeText operateText">录入数量</div>
|
|
|
- <NumberInput v-model="itemNum" :min="1" :max="showInfo.needNum-showInfo.realNum" style="margin-left: 140px;margin-bottom: 10px"/>
|
|
|
+ <NumberInput v-model="itemNum" :min="1" :max="showInfo.needNum-showInfo.realNum" style="margin-left: 140px;margin-bottom: 10px" />
|
|
|
</div>
|
|
|
</div>
|
|
|
<div
|
|
@@ -71,9 +71,19 @@ const props = defineProps({
|
|
|
const submit=()=>{
|
|
|
emits("submitItem",itemNum);
|
|
|
}
|
|
|
+watch(
|
|
|
+ () => props.modelValue,
|
|
|
+ () => {
|
|
|
+ itemNum.value=1;
|
|
|
+ },
|
|
|
+ {
|
|
|
+ deep: true,
|
|
|
+ }
|
|
|
+);
|
|
|
const scanCode = ref("");
|
|
|
const itemNum=ref(1);
|
|
|
const handleClose = () => {
|
|
|
+ itemNum.value =1
|
|
|
emits("update:modelValue", false);
|
|
|
};
|
|
|
</script>
|