Browse Source

非开票日期设置

master_hella_20240701
赵雪冰 9 months ago
parent
commit
6b37f2218d
  1. 6
      src/api/wms/supplierinvoiceRequestMain/index.ts
  2. 11
      src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue

6
src/api/wms/supplierinvoiceRequestMain/index.ts

@ -56,6 +56,12 @@ export const deleteSupplierinvoiceRequestMain = async (id: number) => {
return await request.delete({ url: `/wms/supplierinvoice-request-main/delete?id=` + id }) return await request.delete({ url: `/wms/supplierinvoice-request-main/delete?id=` + id })
} }
// 校验控制是否可以开票逻辑
export const checkInvoicingCalendar = async (params) => {
return await request.get({ url: `/wms/supplierinvoice-request-main/checkInvoicingCalendar`, params })
}
// 打开供应商发货申请主 // 打开供应商发货申请主
export const opeSupplierinvoiceRequestMain = async (id: number) => { export const opeSupplierinvoiceRequestMain = async (id: number) => {
return await request.post({ url: `/wms/supplierinvoice-request-main/open?id=` + id }) return await request.post({ url: `/wms/supplierinvoice-request-main/open?id=` + id })

11
src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue

@ -395,8 +395,15 @@ const handleImport = () => {
/** 添加/修改操作 */ /** 添加/修改操作 */
const formRef = ref() const formRef = ref()
const openForm = async (type : string, row ?: number) => { 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)
})
} }
// //

Loading…
Cancel
Save