Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
lichenggang
/
bom_identify
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
c82b2a08
authored
Jun 03, 2020
by
lichenggang
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
更新static_config
parent
f8f1f3ec
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
static_config.py
static_config.py
View file @
c82b2a08
...
@@ -2,17 +2,18 @@
...
@@ -2,17 +2,18 @@
# -*- coding:utf-8 -*-
# -*- coding:utf-8 -*-
# 可能的头部字段
# 可能的头部字段
PROB_FIELDS
=
[
"序号"
,
"名称"
,
"规格"
,
"mpn"
,
"用量(pcs)"
,
"用量"
,
"pcs"
,
"位号"
,
"描述"
,
"值"
,
"数量"
,
"封装"
,
"类别"
,
"a面位置"
,
"b面位置"
,
"备注"
,
PROB_FIELDS
=
[
"序号"
,
"名称"
,
"规格"
,
"mpn"
,
"用量(pcs)"
,
"用量"
,
"pcs"
,
"位号"
,
"描述"
,
"值"
,
"数量"
,
"封装"
,
"类别"
,
"a面位置"
,
"b面位置"
,
"备注"
,
"需求数量"
,
"售价"
,
"封装"
,
"封装规格"
,
'型号'
,
'参数'
,
'数量'
,
'品牌'
,
'型号'
,
'类型'
,
"quantity"
,
"qty"
,
"buy qty"
,
"buy quantity"
,
"需求数量"
,
"售价"
,
"封装"
,
"封装规格"
,
'型号'
,
'参数'
,
'数量'
,
'品牌'
,
'型号'
,
'类型'
,
"quantity"
,
"qty"
,
"buy qty"
,
"参考品牌"
,
"品牌"
,
"item"
,
"厂商编码"
,
"品牌/厂商"
,
"参考料号"
,
"参考供应商"
,
"top面"
,
"bottom面"
,
"designator"
,
"remark"
]
"buy quantity"
,
"参考品牌"
,
"品牌"
,
"item"
,
"厂商编码"
,
"品牌/厂商"
,
"参考料号"
,
"参考供应商"
,
"top面"
,
"bottom面"
,
"designator"
,
"remark"
,
"元器件"
,
"标号"
]
PROB_FIELDS_1
=
[
'*'
+
i
for
i
in
PROB_FIELDS
]
PROB_FIELDS_1
=
[
'*'
+
i
for
i
in
PROB_FIELDS
]
PROB_FIELDS
.
extend
(
PROB_FIELDS_1
)
PROB_FIELDS
.
extend
(
PROB_FIELDS_1
)
# 标准名和代名词的映射
# 标准名和代名词的映射
STD_FIELDS_MAP
=
{
STD_FIELDS_MAP
=
{
"类别"
:
[
"类别"
,
"分类"
,
"名称"
,
"类别名称"
,
"类型"
],
"类别"
:
[
"类别"
,
"分类"
,
"名称"
,
"类别名称"
,
"类型"
],
"参数"
:
[
"参数"
,
"*参数"
,
"规格"
,
"描述"
,
"值"
],
"参数"
:
[
"参数"
,
"*参数"
,
"规格"
,
"描述"
,
"值"
],
"型号"
:
[
"型号"
,
"*型号"
,
"参考料号"
,
"料号"
,
"mpn"
,
"厂商编码"
],
"型号"
:
[
"型号"
,
"*型号"
,
"参考料号"
,
"料号"
,
"mpn"
,
"厂商编码"
,
"元器件"
],
"数量"
:
[
"数量"
,
"*数量"
,
"用量(pcs)"
,
"用量"
,
"pcs"
,
"quantity"
,
"qty"
,
"buy qty"
,
"buy quantity"
],
"数量"
:
[
"数量"
,
"*数量"
,
"用量(pcs)"
,
"用量"
,
"pcs"
,
"quantity"
,
"qty"
,
"buy qty"
,
"buy quantity"
],
"品牌"
:
[
"品牌"
,
"*品牌"
,
"品牌/厂商"
,
"参考品牌"
,
"参考供应商"
,
"厂商"
,
"参考供应商"
,
"参考厂商"
]}
"品牌"
:
[
"品牌"
,
"*品牌"
,
"品牌/厂商"
,
"参考品牌"
,
"参考供应商"
,
"厂商"
,
"参考供应商"
,
"参考厂商"
]}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment