Browse Source

退料修改添加明细

master
陈薪名 8 months ago
parent
commit
b24e729551
  1. 10
      src/views/wms/issueManage/productionreturn/productionreturnRequestMain/index.vue
  2. 10
      src/views/wms/issueManage/productionreturn/productionreturnRequestMainNo/index.vue

10
src/views/wms/issueManage/productionreturn/productionreturnRequestMain/index.vue

@ -543,15 +543,15 @@ const handleDeleteTable = (item, index) => {
//
const submitForm = async (formType, data) => {
data.subList = tableData.value //
//
if (tableData.value.length == 0) {
formRef.value.formLoading = false
return message.warning('请添加明细数据!')
}
// 退 isOK
data.isOK = true
try {
if (formType === 'create') {
//
if (tableData.value.length == 0) {
formRef.value.formLoading = false
return message.warning('请添加明细数据!')
}
await ProductionreturnRequestMainApi.createProductionreturnRequestMain(data)
message.success(t('common.createSuccess'))
} else {

10
src/views/wms/issueManage/productionreturn/productionreturnRequestMainNo/index.vue

@ -541,15 +541,15 @@ const handleDeleteTable = (item, index) => {
//
const submitForm = async (formType, data) => {
data.subList = tableData.value //
//
if (tableData.value.length == 0) {
formRef.value.formLoading = false
return message.warning('请添加明细数据!')
}
// 退 isOK
data.isOK = false // false
try {
if (formType === 'create') {
//
if (tableData.value.length == 0) {
formRef.value.formLoading = false
return message.warning('请添加明细数据!')
}
await ProductionreturnRequestMainNoApi.createProductionreturnRequestMain(data)
message.success(t('common.createSuccess'))
} else {

Loading…
Cancel
Save