From bba8d60dd0d94aee280c922c96aeda2f5f47d067 Mon Sep 17 00:00:00 2001 From: allen_xiong Date: Tue, 24 Mar 2026 14:43:42 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=9C=8D=E5=8A=A1=E5=99=A8?= =?UTF-8?q?=E8=BF=81=E7=A7=BB=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...3_remove_pricetemplate_creator_and_more.py | 57 +++++++++++++++++++ ..._quotationmaster_validity_days_and_more.py | 23 ++++++++ 2 files changed, 80 insertions(+) create mode 100644 backend/apps/pisadmin/miscprocurement/migrations/0003_remove_pricetemplate_creator_and_more.py create mode 100644 backend/apps/pissupplier/migrations/0002_quotationmaster_validity_days_and_more.py diff --git a/backend/apps/pisadmin/miscprocurement/migrations/0003_remove_pricetemplate_creator_and_more.py b/backend/apps/pisadmin/miscprocurement/migrations/0003_remove_pricetemplate_creator_and_more.py new file mode 100644 index 0000000..c0c2d63 --- /dev/null +++ b/backend/apps/pisadmin/miscprocurement/migrations/0003_remove_pricetemplate_creator_and_more.py @@ -0,0 +1,57 @@ +# Generated by Django 4.2.14 on 2026-03-24 14:04 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('miscprocurement', '0002_initial'), + ] + + operations = [ + migrations.RemoveField( + model_name='pricetemplate', + name='creator', + ), + migrations.AddField( + model_name='costestimatetemplatebody', + name='version', + field=models.IntegerField(db_column='Version', default=1, verbose_name='版本号'), + ), + migrations.AddField( + model_name='costestimatetemplatehead', + name='status', + field=models.IntegerField(choices=[(0, '未确认'), (1, '已确认'), (2, '作废')], db_column='Status', default=0, verbose_name='状态'), + ), + migrations.AddField( + model_name='costestimatetemplatehead', + name='version', + field=models.IntegerField(db_column='Version', default=1, verbose_name='版本号'), + ), + migrations.AlterField( + model_name='costestimatetemplatebody', + name='template_no', + field=models.CharField(db_column='TemplateNo', max_length=20, verbose_name='模板编号'), + ), + migrations.AlterField( + model_name='costestimatetemplatehead', + name='template_no', + field=models.CharField(db_column='TemplateNo', db_index=True, max_length=20, verbose_name='模板编号'), + ), + migrations.AddIndex( + model_name='costestimatetemplatebody', + index=models.Index(fields=['template_no', 'version'], name='idx_cost_template_body_no_ver'), + ), + migrations.AddIndex( + model_name='costestimatetemplatehead', + index=models.Index(fields=['template_no', 'version'], name='idx_cost_template_head_no_ver'), + ), + migrations.AddConstraint( + model_name='costestimatetemplatehead', + constraint=models.UniqueConstraint(fields=('template_no', 'version'), name='uq_cost_template_head_no_ver'), + ), + migrations.DeleteModel( + name='PriceTemplate', + ), + ] diff --git a/backend/apps/pissupplier/migrations/0002_quotationmaster_validity_days_and_more.py b/backend/apps/pissupplier/migrations/0002_quotationmaster_validity_days_and_more.py new file mode 100644 index 0000000..e06e690 --- /dev/null +++ b/backend/apps/pissupplier/migrations/0002_quotationmaster_validity_days_and_more.py @@ -0,0 +1,23 @@ +# Generated by Django 4.2.14 on 2026-03-24 14:04 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('pissupplier', '0001_initial'), + ] + + operations = [ + migrations.AddField( + model_name='quotationmaster', + name='validity_days', + field=models.IntegerField(blank=True, null=True, verbose_name='有效天数'), + ), + migrations.AlterField( + model_name='quotationprocess', + name='unit', + field=models.CharField(blank=True, db_column='Unit', max_length=20, null=True, verbose_name='单位'), + ), + ]