diff --git a/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue b/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue index 3fa00debf..ee8f443de 100644 --- a/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue +++ b/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue @@ -873,14 +873,16 @@ const buttonTableClick = async (val, row) => { // 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 fileList = await FileApi.getFileList({ + tableId: row.masterId || row.id, + tableName: 'adjustmentAttachment' + }) + if (row.differencePriceTotalMain || row.discountAmount1 || row.claimTaxAmount) { + if (!fileList || fileList.length == 0) { + message.alertWarning('请上传调差附件!') + return + } + } // 校验是否可以开票 const res = await checkInvoicingCalendar() if (res?.flag) {