停发填写样例图,同群只跟当前工单,重量体积统一为 KG/CBM。 Co-authored-by: Cursor <cursoragent@cursor.com>
220 lines
8.4 KiB
JSON
220 lines
8.4 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",
|
||
"transportMode": "sea|air|land",
|
||
"sheet": "主工作表名(可空,默认第一个)",
|
||
"layoutType": "sea_fee_list|air_fee_list|fee_list_vertical|route_matrix|mixed|other",
|
||
"fields": {
|
||
"customer_name": "SheetName!C3",
|
||
"quote_no": "SheetName!F4"
|
||
},
|
||
"fieldMeta": {
|
||
"quote_no": { "sameCellAfterColon": true }
|
||
},
|
||
"fee_rows": {
|
||
"anchor": "SheetName!A15",
|
||
"columns": {
|
||
"name": "B",
|
||
"amount": "D",
|
||
"remark": "F"
|
||
},
|
||
"styleCopyRows": 1
|
||
},
|
||
"feeRegions": [
|
||
{
|
||
"id": "origin_charges",
|
||
"title": "始发港费用",
|
||
"tmsSource": "polCostItems",
|
||
"headerRow": 18,
|
||
"anchor": "Sheet!A19",
|
||
"stopAtText": ["始发港费用汇总", "海运费用"],
|
||
"columns": { "name": "A", "currency": "B", "amount": "H" },
|
||
"styleCopyRows": 1,
|
||
"grow": "insert_before_stop"
|
||
}
|
||
],
|
||
"routeRegions": [
|
||
{
|
||
"id": "route_block_1",
|
||
"title": "项目一",
|
||
"tmsSource": "landSegments",
|
||
"headerRow": 8,
|
||
"dataStartRow": 10,
|
||
"stopAtText": ["项目二", "交易条件说明"],
|
||
"columns": {
|
||
"origin": "C",
|
||
"destination": "D",
|
||
"vehicleRates": { "3T": "E" },
|
||
"currency": "J"
|
||
},
|
||
"grow": "insert_before_stop",
|
||
"styleCopyRows": 1
|
||
}
|
||
],
|
||
"fixedYellowCells": ["SheetName!A1", "SheetName!B2"],
|
||
"fixedCells": ["SheetName!A1"],
|
||
"candidates": [],
|
||
"unmappedRequired": [],
|
||
"unmappedLabels": [],
|
||
"mappingGaps": [],
|
||
"confidence": 0.85,
|
||
"notes": []
|
||
},
|
||
"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": "重量(KG)", "requiredHint": false },
|
||
{ "code": "volume_cbm", "label": "体积(CBM)", "requiredHint": false },
|
||
{ "code": "chargeable_weight_kg", "label": "计费重", "requiredHint": false },
|
||
{ "code": "delivery_address", "label": "派送地址", "requiredHint": false },
|
||
{ "code": "pickup_address", "label": "提货地址", "requiredHint": false },
|
||
{ "code": "transit_time", "label": "时效", "requiredHint": false },
|
||
{ "code": "cargo_value", "label": "货值", "requiredHint": false },
|
||
{ "code": "hs_code", "label": "HS编码", "requiredHint": false },
|
||
{ "code": "oil_elec_mag", "label": "是否含油电磁", "requiredHint": false },
|
||
{ "code": "has_battery", "label": "是否含电", "requiredHint": false },
|
||
{ "code": "on_board_date", "label": "开船日", "requiredHint": false },
|
||
{ "code": "special_remarks", "label": "特别说明", "requiredHint": false },
|
||
{ "code": "eta_request", "label": "要求抵达时间", "requiredHint": false },
|
||
{ "code": "sailing_schedule", "label": "船期航班", "requiredHint": false },
|
||
{ "code": "shipping_line", "label": "船公司航司", "requiredHint": false },
|
||
{ "code": "flight_no", "label": "航班号", "requiredHint": false },
|
||
{ "code": "transfer_airport", "label": "中转港", "requiredHint": false },
|
||
{ "code": "total_amount", "label": "报价合计", "requiredHint": false },
|
||
{ "code": "effective_date", "label": "生效时间", "requiredHint": false },
|
||
{ "code": "fuel_surcharge_rate", "label": "燃油附加费率", "requiredHint": false },
|
||
{ "code": "tax_rate", "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",
|
||
"走货日期": "quote_date",
|
||
"询价时间": "quote_date",
|
||
"走货时间": "quote_date",
|
||
"发货时间": "quote_date",
|
||
"发货日期": "quote_date",
|
||
"出货日期": "quote_date",
|
||
"出货时间": "quote_date",
|
||
"提货时间": "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",
|
||
"重量(KG)": "weight_kg",
|
||
"重 量": "weight_kg",
|
||
"体积": "volume_cbm",
|
||
"体积(CBM)": "volume_cbm",
|
||
"体 积": "volume_cbm",
|
||
"费用总计": "total_amount",
|
||
"报价合计": "total_amount",
|
||
"RFQ No": "quote_no",
|
||
"询价单号": "quote_no"
|
||
},
|
||
"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
|
||
}
|
||
}
|