Commit d2f58f38 authored by XieZhiXiong's avatar XieZhiXiong

转换类型

parent 235c459c
......@@ -47,7 +47,7 @@ const AddBills: React.FC<{}> = (props: any) => {
pageStatus,
preview,
id,
invoicesTypeId, // 单据类型编码
invoicesTypeId, // 单据类型ID
relevanceInvoices, // 对应单据
relevanceInvoicesId, // 单据id,可能是待新增销售发货单,待新增采购入库单跳转过来的
} = usePageStatus();
......@@ -186,7 +186,9 @@ const AddBills: React.FC<{}> = (props: any) => {
return;
}
switch (invoicesTypeId) {
const intInvoicesTypeId = +invoicesTypeId;
switch (intInvoicesTypeId) {
// 采购入库单
case DOC_TYPE_PURCHASE_RECEIPT: {
setInfoLoading(true);
......@@ -216,7 +218,7 @@ const AddBills: React.FC<{}> = (props: any) => {
}
);
setBillInfo({
invoicesTypeId,
invoicesTypeId: intInvoicesTypeId,
relevanceInvoices: +relevanceInvoices,
orderNo:
relevanceInvoicesId ?
......@@ -271,7 +273,7 @@ const AddBills: React.FC<{}> = (props: any) => {
}
);
setBillInfo({
invoicesTypeId,
invoicesTypeId: intInvoicesTypeId,
relevanceInvoices: +relevanceInvoices,
orderNo:
relevanceInvoicesId ?
......
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