新版本
This commit is contained in:
@@ -0,0 +1,61 @@
|
||||
{
|
||||
"suppliers": [
|
||||
{
|
||||
"name": "蓉城易购",
|
||||
"description": "蓉城易购供应商订单处理",
|
||||
"filename_patterns": ["*蓉城*", "*rongcheng*", "*易*"],
|
||||
"content_indicators": ["蓉城易购", "商品编码", "订货数量"],
|
||||
"column_mapping": {
|
||||
"商品编码": "barcode",
|
||||
"商品名称": "name",
|
||||
"订货数量": "quantity",
|
||||
"单价": "unit_price"
|
||||
},
|
||||
"cleaning_rules": [
|
||||
{
|
||||
"type": "remove_rows",
|
||||
"condition": "订货数量 == 0 or 订货数量.isna()"
|
||||
},
|
||||
{
|
||||
"type": "fill_na",
|
||||
"columns": ["unit_price"],
|
||||
"value": 0
|
||||
}
|
||||
],
|
||||
"calculations": [
|
||||
{
|
||||
"type": "multiply",
|
||||
"source_column": "quantity",
|
||||
"target_column": "quantity",
|
||||
"factor": 1
|
||||
}
|
||||
],
|
||||
"output_suffix": "_蓉城易购_银豹采购单"
|
||||
},
|
||||
{
|
||||
"name": "通用食品供应商",
|
||||
"description": "通用食品类供应商订单",
|
||||
"filename_patterns": ["*食品*", "*配送*", "*供货*"],
|
||||
"content_indicators": ["产品条码", "订购量", "进货价"],
|
||||
"column_mapping": {
|
||||
"产品条码": "barcode",
|
||||
"产品名称": "name",
|
||||
"订购量": "quantity",
|
||||
"进货价": "unit_price"
|
||||
},
|
||||
"cleaning_rules": [
|
||||
{
|
||||
"type": "convert_type",
|
||||
"columns": ["unit_price"],
|
||||
"target_type": "float"
|
||||
},
|
||||
{
|
||||
"type": "fill_na",
|
||||
"columns": ["barcode", "name", "quantity"],
|
||||
"value": 0
|
||||
}
|
||||
],
|
||||
"output_suffix": "_食品供应商_银豹采购单"
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user