|
|
@ -448,6 +448,7 @@ import { getAccessToken } from '@/utils/auth' |
|
|
|
import { ElMessageBox } from 'element-plus' |
|
|
|
import { getJmreportBaseUrl } from '@/utils/systemParam' |
|
|
|
import { accountantFormart } from '@/utils/formatter' |
|
|
|
import * as FileApi from '@/api/wms/file' |
|
|
|
|
|
|
|
import { formatDate } from '@/utils/formatTime' |
|
|
|
import { usePageLoading } from '@/hooks/web/usePageLoading' |
|
|
@ -870,6 +871,16 @@ const buttonTableClick = async (val, row) => { |
|
|
|
} else if (val == 'purchase_mainPlanSub') { |
|
|
|
// 采购审批通过 |
|
|
|
// handleApp(row.id) |
|
|
|
// 校验是否上传调差附件,、价差合计、返利未税金额、索赔税额有一项是0的时候或者调差附件未上传的时候要提示未 |
|
|
|
|
|
|
|
const fileList = await FileApi.getFileList({ |
|
|
|
tableId: row.masterId || row.id, |
|
|
|
tableName: 'adjustmentAttachment' |
|
|
|
}) |
|
|
|
if (row.differencePriceTotalMain || row.discountAmount1 || row.claimTaxAmount || !fileList || fileList.length == 0) { |
|
|
|
message.alertWarning('请上传调差附件!') |
|
|
|
return |
|
|
|
} |
|
|
|
// 校验是否可以开票 |
|
|
|
const res = await checkInvoicingCalendar() |
|
|
|
if (res?.flag) { |
|
|
@ -1142,6 +1153,12 @@ const detailAnnexTable = ref([ |
|
|
|
tableName: 'statement', |
|
|
|
fileSize: 20 |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: t('ts.调差附件'), |
|
|
|
prop: 'Annex', |
|
|
|
tableName: 'adjustmentAttachment', |
|
|
|
fileSize: 20 |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: t('ts.其他附件'), |
|
|
|
prop: 'Annex', |
|
|
|