This commit is contained in:
gtz 2022-08-25 13:34:33 +08:00
parent 4685447c1e
commit d19522bd6f
2 changed files with 3 additions and 3 deletions

View File

@ -330,7 +330,7 @@ export default {
}, },
// //
async handleSubmit () { 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 = {} let result = {}
if (this.$route.query.id) { if (this.$route.query.id) {
result = await update(this.dataForm) result = await update(this.dataForm)
@ -348,7 +348,7 @@ export default {
}) })
} }
} else { } else {
this.$notify('物料、设备、换料时间必须选择') this.$notify('物料、设备、换料时间、数量必填')
} }
}, },
// //

View File

@ -22,7 +22,7 @@
<van-col :span="15" :offset="1" class="eq-search-item-input"> <van-col :span="15" :offset="1" class="eq-search-item-input">
<van-field <van-field
v-model="queryList.key" v-model="queryList.key"
placeholder="批次号/物料编码/名称" placeholder="物料编码/名称"
/> />
</van-col> </van-col>
</van-row> </van-row>