146 lines
5.3 KiB
JSON
146 lines
5.3 KiB
JSON
{
|
|
"schemaVersion": "quote-template-mapping-v1",
|
|
"description": "报价模板常变版:原 Excel 几乎不改;黄色=固定区;映射点=系统字段→单元格;千问只辅助映射不发明价格。",
|
|
"rules": {
|
|
"yellowMeansFixed": true,
|
|
"yellowNote": "黄色填充单元格为版式固定内容,生成与预览时永不覆盖。",
|
|
"clearFillableBeforeWrite": true,
|
|
"layoutAuthority": "uploaded_excel",
|
|
"noUnifiedColumns": true,
|
|
"llmRole": "suggest_field_to_cell_mapping_only",
|
|
"priceSource": "frozen_quote_facts_only",
|
|
"versionFreeze": "generated_quote_binds_templateId_plus_templateVersion"
|
|
},
|
|
"modes": {
|
|
"auto": "可自动生成报价文件",
|
|
"manual": "仅下载给人工填写,不进自动生成"
|
|
},
|
|
"mappingJsonShape": {
|
|
"schemaVersion": "quote-template-mapping-v1",
|
|
"sheet": "主工作表名(可空,默认第一个)",
|
|
"fields": {
|
|
"customer_name": "SheetName!C3",
|
|
"quote_no": "SheetName!F4"
|
|
},
|
|
"fee_rows": {
|
|
"anchor": "SheetName!A15",
|
|
"columns": {
|
|
"name": "B",
|
|
"amount": "D",
|
|
"remark": "F"
|
|
},
|
|
"styleCopyRows": 1
|
|
},
|
|
"fixedYellowCells": ["SheetName!A1", "SheetName!B2"],
|
|
"candidates": [],
|
|
"unmappedRequired": []
|
|
},
|
|
"systemFields": [
|
|
{ "code": "customer_name", "label": "客户名称", "requiredHint": true },
|
|
{ "code": "contact_name", "label": "联系人", "requiredHint": false },
|
|
{ "code": "contact_phone", "label": "电话", "requiredHint": false },
|
|
{ "code": "quote_no", "label": "报价单编号", "requiredHint": true },
|
|
{ "code": "quote_date", "label": "报价日期", "requiredHint": true },
|
|
{ "code": "valid_until", "label": "有效期至", "requiredHint": false },
|
|
{ "code": "currency", "label": "币别", "requiredHint": false },
|
|
{ "code": "sales_name", "label": "业务员", "requiredHint": false },
|
|
{ "code": "pol", "label": "起运港", "requiredHint": false },
|
|
{ "code": "pod", "label": "目的港", "requiredHint": false },
|
|
{ "code": "origin", "label": "始发地", "requiredHint": false },
|
|
{ "code": "destination", "label": "目的地", "requiredHint": false },
|
|
{ "code": "commodity", "label": "品名", "requiredHint": false },
|
|
{ "code": "quantity", "label": "货物数量", "requiredHint": false },
|
|
{ "code": "container_type_qty", "label": "箱型箱量", "requiredHint": false },
|
|
{ "code": "fcl_or_lcl", "label": "整柜或拼柜", "requiredHint": false },
|
|
{ "code": "trade_terms", "label": "贸易条款", "requiredHint": false },
|
|
{ "code": "cargo_ready_date", "label": "货好时间", "requiredHint": false },
|
|
{ "code": "pieces", "label": "件数", "requiredHint": false },
|
|
{ "code": "weight_kg", "label": "重量", "requiredHint": false },
|
|
{ "code": "volume_cbm", "label": "体积", "requiredHint": false },
|
|
{ "code": "total_amount", "label": "报价合计", "requiredHint": false },
|
|
{ "code": "fee_rows", "label": "费用明细行", "requiredHint": false }
|
|
],
|
|
"labelDictionary": {
|
|
"客户名称": "customer_name",
|
|
"客户": "customer_name",
|
|
"客户:": "customer_name",
|
|
"联系人": "contact_name",
|
|
"联系人:": "contact_name",
|
|
"电话": "contact_phone",
|
|
"电话:": "contact_phone",
|
|
"报价单编号": "quote_no",
|
|
"报价编号": "quote_no",
|
|
"报价日期": "quote_date",
|
|
"询价日期": "quote_date",
|
|
"有效期至": "valid_until",
|
|
"报价有效期": "valid_until",
|
|
"币别": "currency",
|
|
"业务员": "sales_name",
|
|
"起运港": "pol",
|
|
"起 运 港": "pol",
|
|
"目的港": "pod",
|
|
"目 的 港": "pod",
|
|
"始发地": "origin",
|
|
"始发站": "origin",
|
|
"目的地": "destination",
|
|
"品名": "commodity",
|
|
"品 名": "commodity",
|
|
"货物数量": "quantity",
|
|
"箱型箱量": "container_type_qty",
|
|
"整柜或拼柜": "fcl_or_lcl",
|
|
"贸易条款": "trade_terms",
|
|
"货好时间": "cargo_ready_date",
|
|
"件数": "pieces",
|
|
"件 数": "pieces",
|
|
"重量": "weight_kg",
|
|
"重 量": "weight_kg",
|
|
"体积": "volume_cbm",
|
|
"体 积": "volume_cbm"
|
|
},
|
|
"samplePreviewFacts": {
|
|
"customer_name": "ABC Trading Co.",
|
|
"contact_name": "张三",
|
|
"contact_phone": "13800000000",
|
|
"quote_no": "QT-202607020001",
|
|
"quote_date": "2026-07-02",
|
|
"valid_until": "2026-07-05",
|
|
"currency": "USD",
|
|
"sales_name": "张敏",
|
|
"pol": "CNSHA",
|
|
"pod": "USLAX",
|
|
"origin": "深圳",
|
|
"destination": "洛杉矶",
|
|
"commodity": "通用货物",
|
|
"quantity": "2",
|
|
"container_type_qty": "40HQ x 2",
|
|
"fcl_or_lcl": "FCL",
|
|
"trade_terms": "FOB",
|
|
"cargo_ready_date": "2026-07-10",
|
|
"pieces": "10",
|
|
"weight_kg": "1200",
|
|
"volume_cbm": "8.5",
|
|
"total_amount": "3680.00",
|
|
"fee_rows": [
|
|
{ "name": "O/F 海运费", "amount": "2900", "remark": "" },
|
|
{ "name": "THC + DOC + SEAL", "amount": "780", "remark": "" }
|
|
]
|
|
},
|
|
"categories": {
|
|
"海运": ["海运报价单模板"],
|
|
"空运": ["空运到港报价单模板", "空运到门报价单模板"],
|
|
"陆运": [
|
|
"双清或中越",
|
|
"国内整车",
|
|
"国内拼车",
|
|
"跨境整车",
|
|
"跨境集拼",
|
|
"中港",
|
|
"凭祥保税仓&普仓仓储"
|
|
]
|
|
},
|
|
"seedModeHints": {
|
|
"manualKeywords": ["人工报价", "双清", "保税仓", "仓储"],
|
|
"autoDefault": true
|
|
}
|
|
}
|