Browse Source

供应商发票申请

master_hella_20240701
wangyufei 5 months ago
parent
commit
8e152cb445
  1. 5
      src/api/wms/itembasic/index.ts
  2. 5
      src/api/wms/productreceiptRequestDetail/index.ts
  3. 2
      src/views/wms/productionManage/productreceiptscrap/productreceiptscrapRequestMain/index.vue
  4. 1
      src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue
  5. 5
      src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/supplierinvoiceRequestMain.data.ts

5
src/api/wms/itembasic/index.ts

@ -108,4 +108,9 @@ export const selectConfigToItembasic = async (params) => {
} else {
return await request.get({ url: `/wms/itembasic/pageConfigToItembasic`, params })
}
}
// 根据物料代码查计量单位
export const getQueryItemCodeInfo = async (data) => {
return await request.post({ url: 'wms/itembasic/queryItemCodeInfo', data })
}

5
src/api/wms/productreceiptRequestDetail/index.ts

@ -65,10 +65,7 @@ export const getProductreceiptRequestDetailPageScrap = async (params) => {
return await request.get({ url: `/wms/productreceipt-request-detail/page`, params })
}
}
// 根据物料代码查计量单位
export const getQueryItemCodeInfo = async (data) => {
return await request.post({ url: 'wms/itembasic/queryItemCodeInfo', data })
}
// 查询制品收货申请子详情
export const getProductreceiptRequestDetail = async (id: number) => {

2
src/views/wms/productionManage/productreceiptscrap/productreceiptscrapRequestMain/index.vue

@ -193,7 +193,7 @@ const searchTableSuccess = async (formField, searchField, val, formRef, type, ro
row['secondPackQty'] = val[0]['packQty']
}else if(formField == 'itemCode'){
let res = await ProductreceiptRequestDetailApi.getQueryItemCodeInfo({itemCodes:val.map(item=>item.itemCode).join(',')})
let res = await ItembasicApi.getQueryItemCodeInfo({itemCodes:val.map(item=>item.itemCode).join(',')})
if(res.length>0){
row['uom'] = res[0]['uom']
}

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

@ -268,6 +268,7 @@ const searchTableSuccessDetail = async (formField, searchField, val, formRef,sea
newRow['invoicableQuantity'] = item['invoicableQuantity']
newRow['itemCode'] = item['itemCode']
newRow['planArriveTime'] = item['prhRcpDate']
newRow['arrivalQty'] = item['prhRcvd']
}
tableData.value.push(newRow)
})

5
src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/supplierinvoiceRequestMain.data.ts

@ -1099,9 +1099,12 @@ export const SupplierinvoiceRequestDetail = useCrudSchemas(reactive<CrudSchema[]
},
sortTableDefault:6,
isForm:false,
isTableForm:false,
isTableForm:true,
isDetail: false,
isTable: true,
tableForm:{
disabled:true
}
},
{
label: '物料名称',

Loading…
Cancel
Save