diff --git a/src/pages/material/material-edit.vue b/src/pages/material/material-edit.vue index 09b2912..5f1e71b 100644 --- a/src/pages/material/material-edit.vue +++ b/src/pages/material/material-edit.vue @@ -330,7 +330,7 @@ export default { }, // 提交表单 async handleSubmit () { - if (this.dataForm.replaceTime && this.dataForm.materialId && this.dataForm.equipmentId) { + if (this.dataForm.replaceTime && this.dataForm.materialId && this.dataForm.equipmentId && this.dataForm.num) { let result = {} if (this.$route.query.id) { result = await update(this.dataForm) @@ -348,7 +348,7 @@ export default { }) } } else { - this.$notify('物料、设备、换料时间必须选择!') + this.$notify('物料、设备、换料时间、数量必填!') } }, // 重置表单 diff --git a/src/pages/material/material.vue b/src/pages/material/material.vue index 120e551..c253187 100644 --- a/src/pages/material/material.vue +++ b/src/pages/material/material.vue @@ -22,7 +22,7 @@