fix: 后端数量字段纳入RBAC — StockBuy/Semi/Product 的 in_quantity/stock_quantity/available_quantity 从 None 改为显式权限码
This commit is contained in:
@ -23,7 +23,7 @@ STOCK_FIELD_RBAC_MAPPING = {
|
|||||||
},
|
},
|
||||||
"StockBuy": {
|
"StockBuy": {
|
||||||
"id": None, "request_id": None, "request_no": None,
|
"id": None, "request_id": None, "request_no": None,
|
||||||
"in_quantity": None, "stock_quantity": None, "available_quantity": None,
|
"in_quantity": "inbound_buy:in_quantity", "stock_quantity": "inbound_buy:stock_quantity", "available_quantity": "inbound_buy:available_quantity",
|
||||||
"warehouse_loc": None, "status": None, "global_print_id": None,
|
"warehouse_loc": None, "status": None, "global_print_id": None,
|
||||||
"company_name": "material_list:companyName", "material_name": "material_list:name",
|
"company_name": "material_list:companyName", "material_name": "material_list:name",
|
||||||
"spec_model": "material_list:spec", "category": "material_list:category",
|
"spec_model": "material_list:spec", "category": "material_list:category",
|
||||||
@ -41,7 +41,7 @@ STOCK_FIELD_RBAC_MAPPING = {
|
|||||||
"inspection_report": "inbound_buy:inspection_report",
|
"inspection_report": "inbound_buy:inspection_report",
|
||||||
},
|
},
|
||||||
"StockSemi": {
|
"StockSemi": {
|
||||||
"id": None, "in_quantity": None, "stock_quantity": None, "available_quantity": None,
|
"id": None, "in_quantity": "inbound_semi:in_quantity", "stock_quantity": "inbound_semi:stock_quantity", "available_quantity": "inbound_semi:available_quantity",
|
||||||
"warehouse_loc": None, "status": None, "global_print_id": None,
|
"warehouse_loc": None, "status": None, "global_print_id": None,
|
||||||
"company_name": "material_list:companyName", "material_name": "material_list:name",
|
"company_name": "material_list:companyName", "material_name": "material_list:name",
|
||||||
"spec_model": "material_list:spec", "category": "material_list:category",
|
"spec_model": "material_list:spec", "category": "material_list:category",
|
||||||
@ -61,7 +61,7 @@ STOCK_FIELD_RBAC_MAPPING = {
|
|||||||
"detail_link": "inbound_semi:detail_link",
|
"detail_link": "inbound_semi:detail_link",
|
||||||
},
|
},
|
||||||
"StockProduct": {
|
"StockProduct": {
|
||||||
"id": None, "in_quantity": None, "stock_quantity": None, "available_quantity": None,
|
"id": None, "in_quantity": "inbound_product:in_quantity", "stock_quantity": "inbound_product:stock_quantity", "available_quantity": "inbound_product:available_quantity",
|
||||||
"warehouse_loc": None, "status": None, "global_print_id": None,
|
"warehouse_loc": None, "status": None, "global_print_id": None,
|
||||||
"company_name": "material_list:companyName", "material_name": "material_list:name",
|
"company_name": "material_list:companyName", "material_name": "material_list:name",
|
||||||
"spec_model": "material_list:spec", "category": "material_list:category",
|
"spec_model": "material_list:spec", "category": "material_list:category",
|
||||||
|
|||||||
Reference in New Issue
Block a user