批量入库bug

This commit is contained in:
caoqianming 2021-12-08 14:43:22 +08:00
parent 90802f418f
commit cd3d7b7d18
2 changed files with 5 additions and 1 deletions

View File

@ -140,6 +140,10 @@ class RecordFormField(CommonAModel):
FIELD_RADIO = 'radio'
FIELD_CHECKBOX = 'checkbox'
FIELD_SELECT = 'select'
FIELD_SELECTS = 'selects'
FIELD_TEXTAREA = 'textarea'
FIELD_DRAW = 'draw'
FIELD_FROMSYSTEM = 'fromsystem'
field_type_choices = (
('string', '字符串'),
('int', '整型'),

View File

@ -276,7 +276,7 @@ class WProductViewSet(ListModelMixin, GenericViewSet):
fifoitem.is_tested = True
fifoitem.is_testok = True
fifoitem.warehouse = warehouse
fifoitem.material = i['material']
fifoitem.material = Material.objects.get(pk=i['material'])
fifoitem.count = i['total']
fifoitem.batch = spi.number
fifoitem.fifo = fifo