|
|
@ -395,8 +395,15 @@ const handleImport = () => { |
|
|
|
/** 添加/修改操作 */ |
|
|
|
const formRef = ref() |
|
|
|
const openForm = async (type : string, row ?: number) => { |
|
|
|
tableData.value = [] // 重置明细数据 |
|
|
|
formRef.value.open(type, row) |
|
|
|
// 校验是否可以开票 |
|
|
|
SupplierinvoiceRequestMainApi.checkInvoicingCalendar({}).then(res => { |
|
|
|
if(res.flag){ |
|
|
|
message.alertWarning(res.msg) |
|
|
|
return |
|
|
|
} |
|
|
|
tableData.value = [] // 重置明细数据 |
|
|
|
formRef.value.open(type, row) |
|
|
|
}) |
|
|
|
} |
|
|
|
|
|
|
|
// 获取部门 用于详情 部门回显 |
|
|
|