Commit e8115f98 authored by XieZhiXiong's avatar XieZhiXiong

修改单据编号为单据ID

parent 7ac1b447
......@@ -364,14 +364,14 @@ export const MEMBER_ROLE_TYPE_SERVICE_PROVIDER = 1; // 服务提供
export const MEMBER_ROLE_TYPE_SERVICE_CONSUMER = 2; // 服务消费者
// 单据类型
export const DOC_TYPE_PURCHASE_RECEIPT = 'S001'; // 采购入库单
export const DOC_TYPE_SALES_INVOICE = 'S002'; // 销售发货单
export const DOC_TYPE_PROCESS_RECEIPT = 'S003'; // 加工入库单
export const DOC_TYPE_PROCESS_INVOICE = 'S004'; // 加工发货单
export const DOC_TYPE_RETURN_INVOICE = 'S005'; // 退货发货单
export const DOC_TYPE_RETURN_RECEIPT = 'S006'; // 退货入库单
export const DOC_TYPE_EXCHANGE_INVOICE = 'S007'; // 换货发货单
export const DOC_TYPE_EXCHANGE_RECEIPT = 'S008'; // 换货入库单
export const DOC_TYPE_PURCHASE_RECEIPT = 1; // 采购入库单
export const DOC_TYPE_SALES_INVOICE = 2; // 销售发货单
export const DOC_TYPE_PROCESS_RECEIPT = 3; // 加工入库单
export const DOC_TYPE_PROCESS_INVOICE = 4; // 加工发货单
export const DOC_TYPE_RETURN_INVOICE = 5; // 退货发货单
export const DOC_TYPE_RETURN_RECEIPT = 6; // 退货入库单
export const DOC_TYPE_EXCHANGE_INVOICE = 7; // 换货发货单
export const DOC_TYPE_EXCHANGE_RECEIPT = 8; // 换货入库单
// 单据状态
export const DOC_STATUS_UNREVIEWED = 1; // 未审核
......
......@@ -33,6 +33,6 @@ const fetchInventory = (): Promise<any[]> => {
export const createEffects = (context, actions) => {
useBusinessEffects(context, actions);
useAsyncSelect('invoicesTypeId', fetchInvoicesType, ['name', 'number']);
useAsyncSelect('invoicesTypeId', fetchInvoicesType, ['name', 'id']);
useAsyncSelect('inventoryId', fetchInventory, ['name', 'id']);
};
\ No newline at end of file
......@@ -170,7 +170,6 @@ const AddBills: React.FC<{}> = (props: any) => {
,
invoicesDetailsRequests: details,
...rest,
// invoicesTypeId: 'S002',
});
productRowCtl.setSelectRow(details);
......
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