|
|
@ -193,7 +193,7 @@ import { getJmreportBaseUrl } from '@/utils/systemParam' |
|
|
|
import { formatDate } from '@/utils/formatTime' |
|
|
|
import { usePageLoading } from '@/hooks/web/usePageLoading' |
|
|
|
const { loadStart, loadDone } = usePageLoading() |
|
|
|
// 采购退货申请 |
|
|
|
// M类型采购退货申请 |
|
|
|
defineOptions({ name: 'PurchasereturnRequestMainNew' }) |
|
|
|
|
|
|
|
const message = useMessage() // 消息弹窗 |
|
|
@ -994,7 +994,12 @@ const submitForm = async (formType, submitData) => { |
|
|
|
tableData.value.forEach((row, index) => { |
|
|
|
row['expireDate'] = row['expireTime']?addDay(row['produceDate'],row['expireTime']).valueOf():dayjs('2099-12-31').valueOf() |
|
|
|
}) |
|
|
|
data.subList = tableData.value // 拼接子表数据参数 |
|
|
|
// data.subList = tableData.value // 拼接子表数据参数 |
|
|
|
data.subList = tableData.value.filter(item=>Number(item['qty'])>0) // 拼接子表数据参数 |
|
|
|
if(data.subList.length<1){ |
|
|
|
message.warning('至少有一条数据') |
|
|
|
return |
|
|
|
} |
|
|
|
formRef.value.formLoading = true |
|
|
|
try { |
|
|
|
if (formType === 'create') { |
|
|
|