-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#17] 采购物料 为材料代用和材料执行添加了字段查询功能
- Loading branch information
Showing
5 changed files
with
32 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
from django_filters import rest_framework as filters | ||
from Procurement import models | ||
|
||
|
||
# 根据代用单编号模糊查询 | ||
class MaterialExcutionFilter(filters.FilterSet): | ||
uid = filters.CharFilter(name='uid', lookup_expr='icontains') | ||
|
||
class Meta: | ||
model = models.MaterialExecution | ||
fields = ('uid',) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
from django_filters import rest_framework as filters | ||
from Procurement import models | ||
|
||
|
||
# 根据代用单编号模糊查询 | ||
class MaterialSubApplyFilter(filters.FilterSet): | ||
uid = filters.CharFilter(name='uid', lookup_expr='icontains') | ||
|
||
class Meta: | ||
model = models.MaterialSubApply | ||
fields = ('uid',) |