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) => {
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) => {
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') {
item.componentProps.isSearchList = false
item.componentProps.disabled = true
claimDetails(defaultSupplierCode.value)
}
//
if (item.field == 'orderType') {
@ -909,6 +908,7 @@ const openForm = async (type: string, row?: any) => {
}
}
})
await claimDetailsForUpdate(row.supplierCode,row.id)
} else {
//
SupplierinvoiceRequestMain.allSchemas.formSchema.forEach((item) => {
@ -918,7 +918,6 @@ const openForm = async (type: string, row?: any) => {
item.value = defaultSupplierCode.value
item.componentProps.isSearchList = true
item.componentProps.disabled = false
claimDetails(defaultSupplierCode.value)
}
//
if (item.field == 'orderType') {
@ -969,6 +968,11 @@ const claimDetailsList = ref([])
const claimDetails = async (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)
}
//
const claimDetailsForUpdate = async (supplierCode,id) => {
claimDetailsList.value = await PurchaseClaimRequestDetailApi.getPurchaseClaimRequestDetailListForUpdate(supplierCode,id)
}
//
const checkInvoicingCalendar = async () => {

Loading…
Cancel
Save