Browse Source

退料修改添加明细

master
陈薪名 10 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) => { const submitForm = async (formType, data) => {
data.subList = tableData.value // data.subList = tableData.value //
//
if (tableData.value.length == 0) {
formRef.value.formLoading = false
return message.warning('请添加明细数据!')
}
// 退 isOK // 退 isOK
data.isOK = true data.isOK = true
try { try {
if (formType === 'create') { if (formType === 'create') {
//
if (tableData.value.length == 0) {
formRef.value.formLoading = false
return message.warning('请添加明细数据!')
}
await ProductionreturnRequestMainApi.createProductionreturnRequestMain(data) await ProductionreturnRequestMainApi.createProductionreturnRequestMain(data)
message.success(t('common.createSuccess')) message.success(t('common.createSuccess'))
} else { } else {

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

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

Loading…
Cancel
Save