版本比较

标识

  • 该行被添加。
  • 该行被删除。
  • 格式已经改变。

...

1. 国家 → 服务列表联动

2. 服务 → 服务选项联动

3. 服务 + 国家 → 付税方式联动4. 服务ID → 付税方式可选值规则

代码块
// 服务ID与付税方式可选值对应关系:
服务ID=28,35,36,37:仅DDU
服务ID=29:美国(US)只能DDP,其他可DDU/DDP
服务ID=57:仅DDP
服务ID=58:仅DDU
服务ID=67,139:仅DDP
服务ID=140,141,142:DDP、DDU
服务ID=174:仅DDP
服务ID=198:DDP、DDU
服务ID=238:DDP、DDU
服务ID=249:DDP、DDU
服务ID=273:仅DDP
服务ID=274:仅DDU
服务ID=377:DDP、DDU
其他服务:DDU、DDP(默认)

54. 国家 → 储物柜服务显示

代码块
// 显示条件:addressCountry === 'RU'
// 字段:lockerService(Boolean)
// 仅俄罗斯显示储物柜选项

65. 服务 → ATL授权放置显示

代码块
// 显示条件:channel ∈ [2, 3, 42, 585, 586, 587]
// 字段:authorityToLeave(Boolean)
// 仅特定服务渠道显示ATL选项

76. 国家 → 澳洲特定字段显示

代码块
// 显示条件:addressCountry === 'AU'
// 显示字段:
//   - abnnumber(澳洲生意注册号码)
//   - gstexemptioncode(免税码)

87. 报价弹框 → 表单回填

代码块
// 触发条件:从报价弹框返回数据(getQuotationData)
// 回填字段:
//   - channel(服务ID)
//   - facility(发件人网点)
//   - addressCountry(国家)
//   - weight(重量)
//   - length, width, height(尺寸)
//   - invoiceCurrency(发票币种)
//   - invoiceValue(发票金额)
//   - addressCity(城市)
//   - addressState(省/州)
//   - addressPostcode(邮编)
//   - weightUnit(重量单位)
//   - dimensionUnit(体积单位)
// 注意:报价数据会覆盖用户已填写的数据

9. 重置数据联动

代码块
// 触发条件:调用resetData()
// 重置内容:
//   - 调用所有子组件的resetData()方法
//   - 清空channelOptions
//   - 重置各表单为初始状态

请求示例

代码块
curl 'https://tracking-qa.etowertech.com/parcel/order/create' \
  -H 'Accept: application/json, text/plain, */*' \
  -H 'language: zh_CN' \
  -H 'sessionId: MuETuXqSzpU_QQFiSD-dbQ' \
  -H 'Content-Type: application/json' \
  -d '{
  "facility": "*",
  "addressCountry": "GB",
  "channel": 3,
  "serviceOption": "STANDARD",
  "billingPartyName": "Test Company",
  "platform": "eBay",
  "lockerService": false,
  "authorityToLeave": true,
  "recipientName": "John Smith",
  "recipientCompany": "Smith Ltd",
  "phone": "+44 20 1234 5678",
  "email": "john.smith@example.com",
  "addressLine1": "123 Main Street",
  "addressLine2": "Apt 4B",
  "addressLine3": "London",
  "city": "London",
  "state": "England",
  "postcode": "SW1A 1AA",
  "refNo": "REF123456",
  "refNo1": "REF789012",
  "dangerousGoods": false,
  "incoterm": "DDU",
  "invoiceCurrency": "GBP",
  "invoiceValue": 25.99,
  "instruction": "Please call before delivery",
  "weight": 1.5,
  "weightUnit": "kg",
  "volume": 0.003,
  "description": "Cotton T-Shirt",
  "nativeDescription": "纯棉T恤",
  "length": 30,
  "width": 20,
  "height": 5,
  "dimensionUnit": "cm",
  "batteryPacking": "NOBATTERY",
  "batteryType": "NOBATTERY",
  "recipientTaxId": "GB123456789",
  "extendData": {
    "vendorid": "VENDOR001",
    "agentID": "AGENT001",
    "sortCode": "SORT001",
    "purpose": "GIFT",
    "material": "COTTON",
    "codAmount": 0,
    "codCurrency": "",
    "receiverKycType": "INDIVIDUAL",
    "receiverKycNo": "KYC123456",
    "injectPort": "LHR",
    "abnnumber": "",
    "gstexemptioncode": "",
    "platformorderno": "EBAY-ORDER-123",
    "coveramount": 100,
    "senderTaxId": "CN123456789",
    "postage": "",
    "icms": "",
    "vat": "GB20",
    "originPort": "CN",
    "osnr": "",
    "specialHandlingType": "",
    "holdForPickup": "",
    "residentialSignatureRequired": "",
    "saturdayDelivery": "",
    "exportInvoiceValue": 30,
    "exportInvoiceCurrency": "GBP",
    "imei1": "",
    "imei2": "",
    "warehouseID": "",
    "shipperOrganizationCode": "91310000MA1X4QC",
    "shipperCompanyName": "Shenzhen Tech Co., Ltd"
  },
  "parcelItems": [
    {
      "sku": "ITEM001",
      "description": "Cotton T-Shirt - Blue",
      "nativeDescription": "纯棉T恤-蓝色",
      "hsCode": "61091000",
      "originCountry": "CN",
      "unitValue": 12.99,
      "itemCount": 2,
      "weight": 0.3,
      "productURL": "https://example.com/product/123",
      "warehouseNo": "WH-SZ-001",
      "itemExportInvoiceValue": 15,
      "itemExportInvoiceCurrency": "GBP",
      "pictures": [
        "https://example.com/images/item1-front.jpg",
        "https://example.com/images/item1-back.jpg"
      ]
    }
  ],
  "shipperAddress": {
    "country": "CN",
    "addressLine1": "456 Shipping Street, Suite 100",
    "addressLine2": "Futian District",
    "addressLine3": "Shenzhen",
    "city": "Shenzhen",
    "state": "Guangdong",
    "postcode": "518000",
    "shipperOrganizationCode": "91310000MA1X4QC",
    "shipperCompanyName": "Shenzhen Tech Co., Ltd"
  },
  "returnAddress": {
    "addressLine1": "789 Return Street",
    "addressLine2": "Warehouse B",
    "addressLine3": "Industrial Zone",
    "city": "Shenzhen",
    "state": "Guangdong",
    "postcode": "518001",
    "country": "CN",
    "returnOption": "Return",
    "returnPhone": "+86 13900139000"
  },
  "insur": {
    "cancel": false,
    "insureType": "01",
    "insuredContackName": "Zhang San",
    "insuredName": "Li Si",
    "insureAmount": 100,
    "insureCurrency": "GBP",
    "insureCardNo": "110101199001001234"
  }
}'

...