Browse Source

YT-1108供应商确认审批,编辑供应商发票申请索赔明细不显示

intex
zhang_li 3 days ago
parent
commit
976ba754b4
  1. 4
      src/api/wms/purchaseClaimRequestDetail/index.ts
  2. 8
      src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue

4
src/api/wms/purchaseClaimRequestDetail/index.ts

@ -13,6 +13,10 @@ export const getPurchaseClaimRequestDetailPage = async (params) => {
export const getPurchaseClaimRequestDetailList = async (supplierCode) => { export const getPurchaseClaimRequestDetailList = async (supplierCode) => {
return await request.get({ url: `/wms/purchaseClaim-request-detail/getPurchaseclaim?supplierCode=` + supplierCode }) return await request.get({ url: `/wms/purchaseClaim-request-detail/getPurchaseclaim?supplierCode=` + supplierCode })
} }
//获得采购索赔子列表
export const getPurchaseClaimRequestDetailListForUpdate = async (supplierCode, id) => {
return await request.get({ url: `/wms/purchaseClaim-request-detail/getPurchaseclaimForUpdate?supplierCode=${supplierCode}&id=${id}`})
}
// 创建采购索赔子 // 创建采购索赔子
export const createPurchaseClaimRequestDetail = async (data) => { export const createPurchaseClaimRequestDetail = async (data) => {
return await request.post({ url: `/wms/purchaseClaim-request-detail/create`, data }) return await request.post({ url: `/wms/purchaseClaim-request-detail/create`, data })

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

@ -879,7 +879,6 @@ const openForm = async (type: string, row?: any) => {
if (item.field == 'supplierCode') { if (item.field == 'supplierCode') {
item.componentProps.isSearchList = false item.componentProps.isSearchList = false
item.componentProps.disabled = true item.componentProps.disabled = true
claimDetails(defaultSupplierCode.value)
} }
// //
if (item.field == 'orderType') { if (item.field == 'orderType') {
@ -909,6 +908,7 @@ const openForm = async (type: string, row?: any) => {
} }
} }
}) })
await claimDetailsForUpdate(row.supplierCode,row.id)
} else { } else {
// //
SupplierinvoiceRequestMain.allSchemas.formSchema.forEach((item) => { SupplierinvoiceRequestMain.allSchemas.formSchema.forEach((item) => {
@ -918,7 +918,6 @@ const openForm = async (type: string, row?: any) => {
item.value = defaultSupplierCode.value item.value = defaultSupplierCode.value
item.componentProps.isSearchList = true item.componentProps.isSearchList = true
item.componentProps.disabled = false item.componentProps.disabled = false
claimDetails(defaultSupplierCode.value)
} }
// //
if (item.field == 'orderType') { if (item.field == 'orderType') {
@ -969,6 +968,11 @@ const claimDetailsList = ref([])
const claimDetails = async (supplierCode) => { const claimDetails = async (supplierCode) => {
claimDetailsList.value = await PurchaseClaimRequestDetailApi.getPurchaseClaimRequestDetailList(supplierCode) claimDetailsList.value = await PurchaseClaimRequestDetailApi.getPurchaseClaimRequestDetailList(supplierCode)
formRef.value.formRef.formModel.claimAmount = claimDetailsList.value.map(item => item.claimAmount).reduce((prev, item) => prev + item).toFixed(5) formRef.value.formRef.formModel.claimAmount = claimDetailsList.value.map(item => item.claimAmount).reduce((prev, item) => prev + item).toFixed(5)
}
//
const claimDetailsForUpdate = async (supplierCode,id) => {
claimDetailsList.value = await PurchaseClaimRequestDetailApi.getPurchaseClaimRequestDetailListForUpdate(supplierCode,id)
} }
// //
const checkInvoicingCalendar = async () => { const checkInvoicingCalendar = async () => {

Loading…
Cancel
Save