Commit da7f2c08 authored by xiexiuxing's avatar xiexiuxing

请购单详情曾加字段

parent 89b1531e
......@@ -33,9 +33,9 @@ export const useBillDetail = (options: BillDetailHookProps) => {
switch (type) {
case 'requestBill': api = getPurchaseRequisitionDetail;
break;
break;
case 'transformBill': api = getPurchaseRequisitionTransferPurchaseDetail
break;
break;
default:
api = getPurchaseRequisitionDetail;
}
......@@ -46,7 +46,7 @@ export const useBillDetail = (options: BillDetailHookProps) => {
if (id || requisitionNo) {
const fn = getDetailsApi(type)
// @ts-ignore
fn( id ? { id } : { requisitionNo }, { ctlType: "none" }).then(res => {
fn(id ? { id } : { requisitionNo }, { ctlType: "none" }).then(res => {
const { code, data, message: msg } = res
if (code === 1000) {
setFormData(data)
......@@ -61,7 +61,9 @@ export const useBillDetail = (options: BillDetailHookProps) => {
const anchorTitleList = [
{ title: '流转进度', id: 'transferProcess', componentName: "TransferProcess" },
{ title: '基本信息', id: 'baseicInfo', type: "basicInfo" },
{ title: '送货/交期信息', id: 'BillDelivery', type: "BillDelivery", componentName: "BillDelivery" },
{ title: '请购物料', id: 'billMaterial', componentName: "BillMaterial" },
{ title: "附件", id: 'BilEnclosure', componentName: "BilEnclosure" },
{ title: '流转记录', id: 'transferRecord', componentName: "TransformRecord" },
]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment