- 安装 python 3.9
- 安装依赖
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple -r requirements.txt
- 设置 processdata.py 里的以下参数:
- header_dict: 设置 平台名称对应的 缩写代码, 用于生成 json 文件的 header 数据
- orderline_setup: Sales Invoice 文件的 orderline 数据需要的 列名,以及对应的 excel 表头的名称
- scmline_setup: SCM 文件的 orderline 数据需要的 列名,以及对应的 excel 表头的名称
- 在当前文件夹下 新建一个 out 文件夹,用于存放输出的文件
- 把需要处理的 excel 文件放在 当前文件夹下
- 运行
python processdata.py