Browse Source

制品报废增加校验

master
zhaoxuebing 11 months ago
parent
commit
bfd6db0739
  1. 13
      src/views/wms/productionManage/productrepair/productrepairRequestMain/index.vue
  2. 13
      src/views/wms/productionManage/productscrap/productscrapRequestMain/index.vue

13
src/views/wms/productionManage/productrepair/productrepairRequestMain/index.vue

@ -472,6 +472,19 @@ const handleDeleteTable = (item, index) => {
//
const submitForm = async (formType, data) => {
data.subList = tableData.value //
// bom
let childListRs = true
//
tableData.value.forEach((item) => {
if (!item.childList) {
childListRs = false
}
})
if (!childListRs) {
message.warning('请填写Bom信息!')
formRef.value.dialogVisible = false
return
}
try {
if (formType === 'create') {
await ProductrepairRequestMainApi.createProductrepairRequestMain(data)

13
src/views/wms/productionManage/productscrap/productscrapRequestMain/index.vue

@ -479,6 +479,19 @@ const handleDeleteTable = (item, index) => {
//
const submitForm = async (formType, data) => {
data.subList = tableData.value //
// bom
let childListRs = true
//
tableData.value.forEach((item) => {
if (!item.childList) {
childListRs = false
}
})
if (!childListRs) {
message.warning('请填写Bom信息!')
formRef.value.dialogVisible = false
return
}
try {
if (formType === 'create') {
await ProductscrapRequestMainApi.createProductscrapRequestMain(data)

Loading…
Cancel
Save