Browse Source

HL-5834新增时应该校验退货数量不能为0

hella_online_20240924
yufei_wang 2 months ago
parent
commit
c77bc86f15
  1. 9
      src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMOrderTypeMain/index.vue

9
src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMOrderTypeMain/index.vue

@ -193,7 +193,7 @@ import { getJmreportBaseUrl } from '@/utils/systemParam'
import { formatDate } from '@/utils/formatTime' import { formatDate } from '@/utils/formatTime'
import { usePageLoading } from '@/hooks/web/usePageLoading' import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading() const { loadStart, loadDone } = usePageLoading()
// 退 // M退
defineOptions({ name: 'PurchasereturnRequestMainNew' }) defineOptions({ name: 'PurchasereturnRequestMainNew' })
const message = useMessage() // const message = useMessage() //
@ -994,7 +994,12 @@ const submitForm = async (formType, submitData) => {
tableData.value.forEach((row, index) => { tableData.value.forEach((row, index) => {
row['expireDate'] = row['expireTime']?addDay(row['produceDate'],row['expireTime']).valueOf():dayjs('2099-12-31').valueOf() 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 formRef.value.formLoading = true
try { try {
if (formType === 'create') { if (formType === 'create') {

Loading…
Cancel
Save