Browse Source

备件归还验证

master
zhang_li 8 months ago
parent
commit
66c5f5ecb0
  1. 8
      src/pages/sparePartsReturn/addForm.vue

8
src/pages/sparePartsReturn/addForm.vue

@ -75,7 +75,7 @@
<u-form-item label="数量" prop="qty" required>
<u-input v-model="form1.qty" type="number" placeholder="请输入数量" />
</u-form-item>
<u-form-item label="描述" prop="qty" required>
<u-form-item label="描述" prop="describes" required>
<u-input v-model="form1.describes" placeholder="请输入描述" />
</u-form-item>
</u-form>
@ -249,6 +249,12 @@ const singleColumnShow = ref(false)
proxy.$modal.showToast(`请输入数量`)
return;
}
if (!form1.value.describes) {
proxy.$modal.showToast(`请输入描述`)
return;
}
if (form.value.itemNumbers && form.value.itemNumbers.length > 0) {
let arr =form.value.itemNumbers.filter(item => item.itemNumber == form1.value.itemNumber)
if (arr && arr.length > 0) {

Loading…
Cancel
Save