Commit f593766b authored by XieZhiXiong's avatar XieZhiXiong

chore: 添加类型提示

parent 4da83bd0
......@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Date: 2021-08-04 13:59:33
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-08-04 18:06:51
* @LastEditTime: 2021-08-10 19:53:31
* @Description:
*/
import { ISchema } from '@formily/antd';
......@@ -49,7 +49,7 @@ const RELATED_BILL_TYPE_MAP = {
};
// 单据类型 换 单据类型名称
const BILL_NAME_MAP = {
const BILL_NAME_MAP: { [key: number]: '订单' | '加工' | '退货' | '换货' } = {
[DOC_TYPE_PURCHASE_RECEIPT]: '订单',
[DOC_TYPE_SALES_INVOICE]: '订单',
[DOC_TYPE_PROCESS_RECEIPT]: '加工',
......@@ -63,7 +63,7 @@ const BILL_NAME_MAP = {
};
// 单据类型 换 单据方向名称
const BILL_DIRECTION_NAME_MAP = {
const BILL_DIRECTION_NAME_MAP: { [key: number]: '收货' | '入库' | '发货' } = {
[DOC_TYPE_PURCHASE_RECEIPT]: '收货',
[DOC_TYPE_SALES_INVOICE]: '发货',
[DOC_TYPE_PROCESS_RECEIPT]: '入库',
......
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