Browse Source

退料修改添加明细

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

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

8
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 //
// 退 isOK
data.isOK = false // false
try {
if (formType === 'create') {
//
if (tableData.value.length == 0) {
formRef.value.formLoading = false
return message.warning('请添加明细数据!')
}
// 退 isOK
data.isOK = false // false
try {
if (formType === 'create') {
await ProductionreturnRequestMainNoApi.createProductionreturnRequestMain(data)
message.success(t('common.createSuccess'))
} else {

Loading…
Cancel
Save