From 8805237a44aea0a4600f67a0f2e354106082d74f Mon Sep 17 00:00:00 2001 From: caoqianming Date: Wed, 18 Jun 2025 16:29:38 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E7=89=A9=E6=96=99=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E4=B8=BB=E5=BA=93=E4=BD=8D=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../0059_material_bin_number_main.py | 18 ++++++++++++++++++ apps/mtm/models.py | 1 + 2 files changed, 19 insertions(+) create mode 100644 apps/mtm/migrations/0059_material_bin_number_main.py diff --git a/apps/mtm/migrations/0059_material_bin_number_main.py b/apps/mtm/migrations/0059_material_bin_number_main.py new file mode 100644 index 00000000..80574563 --- /dev/null +++ b/apps/mtm/migrations/0059_material_bin_number_main.py @@ -0,0 +1,18 @@ +# Generated by Django 3.2.12 on 2025-06-18 08:29 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('mtm', '0058_process_wpr_number_rule'), + ] + + operations = [ + migrations.AddField( + model_name='material', + name='bin_number_main', + field=models.CharField(blank=True, max_length=50, null=True, verbose_name='主库位号'), + ), + ] diff --git a/apps/mtm/models.py b/apps/mtm/models.py index 2c3fa008..8e941d93 100644 --- a/apps/mtm/models.py +++ b/apps/mtm/models.py @@ -101,6 +101,7 @@ class Material(CommonAModel): brothers = models.JSONField('兄弟件', default=list, null=False, blank=True) unit_price = models.DecimalField('单价', max_digits=14, decimal_places=2, null=True, blank=True) into_wm = models.BooleanField('是否进入车间库存', default=True) + bin_number_main = models.CharField('主库位号', max_length=50, null=True, blank=True) class Meta: verbose_name = '物料表'