基于VBA生成订单并实现整车计划制作的方法

2021-04-02 20:45:16侯照君
时代汽车 2021年4期

侯照君

摘 要:通过VBA编程,将大颗粒的销售预测信息转化为小颗粒的订单信息,为生产计划的制作提供基本素材,大量节约生产计划编制时间,生成的订单在完整体现预测信息的同时还更加贴合实际需求。运用此方法生成订单编制的生产计划用时短,信息准确。细化后的订单对计划的调整可快速应对,从而确保了物料需求信息的及时、准确传递。

关键词:VBA 订单 均匀分布 透视表

A Method of Generating Orders Based on VBA and Finalizing the Planning of the Vehicle

Hou Zhaojun

Abstract:Through VBA programming, the large-particle sales forecast information is converted into the small-particle order information, which provides basic materials for the production plans, which greatly saves the time for preparing production plans. The generated orders not only fully reflect the forecast information, but also are more similar to the demand. Using this method to generate the production plan for order preparation takes a short time and the information is accurate. The detailed order can quickly respond to plan adjustments, thereby ensuring timely and accurate delivery of material demand information

Key words:VBA, order, even distribution, pivot table

1 引言

随着汽车市场的飞速发展,终端市场需求的多样化对整车企业提出了更高的要求。为了加快市场响应速度,整车生产企业需缩短订单的冻结周期,提高生产灵活性。这就要求生产计划员根据有限的预测信息制作完整的生产计划,实现“少米之炊”。

2 需求分析

由图1可以看出,订单冻结周期缩短后,可用来制作生产计划的订单仅剩余2周,从N+3到N+12周之间不再有订单,仅为预测信息(细分车型、外饰、内饰及选装包比例)。若要实现生产计划的快速制作,必须将这些预测信息转化为订单。考虑整车生产及物料供应的需求,各种配置的整车订单的均匀化排产更有利于供应商供货。因此预测信息转化为订单后,要保证各种配置的订单均匀分布,更有利于生产安排及供货。

3 设计思路

已获取配置信息如图2所示,接下来的任务是根据订单总量以及以下配置比例模拟生成订单,生成的订单数量上不仅要符合以下比例,同时要满足物料供应需求。

最终的目标信息如……

登录APP查看全文