export const customerOptions = {
  customerName: [
    { label: "广州铁路局", value: "广州铁路局" },
    { label: "深圳地铁", value: "深圳地铁" },
  ],
  customerAddress: [
    { label: "广州市天河区", value: "广州市天河区" },
    { label: "深圳市福田区", value: "深圳市福田区" },
    { label: "广州市越秀区", value: "广州市越秀区" },
  ],
  linkman: [
    { label: "张三", value: "张三" },
    { label: "李四", value: "李四" },
  ],
  linkway: [
    { label: "13921000000", value: "13921000000" },
    { label: "13921000001", value: "13921000001" },
  ],
};

export const carTypeOptions = [
  // {
  //   label: "最常选择",
  //   options: [
  //     {
  //       value: "CR400AF",
  //       label: "CR400AF",
  //       description: "中国标准动车组，最高运营速度350km/h",
  //       specifications: {
  //         "最高运营速度": "350km/h",
  //         "编组方式": "8辆编组",
  //         "定员": "556人",
  //         "轴重": "≤17t"
  //       },
  //       image: "/images/cars/CR400AF.jpg"
  //     }
  //   ]
  // },
  {
    label: "高速动车组",
    options: [
      {
        value: "CR400AF",
        label: "CR400AF",
        description: "中国标准动车组，最高运营速度350km/h",
        specifications: {
          "最高运营速度": "350km/h",
          "编组方式": "8辆编组",
          "定员": "556人",
          "轴重": "≤17t"
        },
        image: "/images/cars/CR400AF.jpg"
      },
      {
        value: "CR400BF",
        label: "CR400BF",
        description: "中国标准动车组，最高运营速度350km/h",
        specifications: {
          "最高运营速度": "350km/h",
          "编组方式": "8辆编组",
          "定员": "556人",
          "轴重": "≤17t"
        },
        image: "/images/cars/CR400BF.jpg"
      }
    ]
  },
  {
    label: "城际动车组",
    options: [
      {
        value: "CRH3A",
        label: "CRH3A",
        description: "城际动车组，最高运营速度250km/h",
        specifications: {
          "最高运营速度": "250km/h",
          "编组方式": "8辆编组",
          "定员": "613人",
          "轴重": "≤16t"
        },
        image: "/images/cars/CRH3A.jpg"
      }
    ]
  },
  {
    label: "其他",
    options: [
      {
        value: "其他",
        label: "其他"
      }
    ]
  }
];

export const defaultPaymentTerms = "货物出厂验收合格前，买方需将所提货物全额货款支付给卖方。";
export const defaultObjectionTerms = "买方提出对产品质量异议的时间为收到货物起5个工作日内，卖方应在收到异议书次日起3个工作日内与买方沟通，通过技术指导方式解决问题，如不能解决，买方可以要求卖方前往修理，如修理后仍不能使用，买方可以提出更换请求。如买方在收到货物后5日内未提出异议，则视为同意卖方处理意见。";
export const defaultForceTerms = "如因不可抗力的原因，致使卖方推迟或不能交货，卖方不需为此承担责任。但卖方需在上述事件发生次日起七天内，以传真等书面方式通知买方，同时，卖方应采取一切必要措施及早交货。";
export const defaultDisputeTerms = "合同双方因履行本合同发生争议时，应本着友好合作的精神共同协商解决。如协商后双方仍然无法达成一致则向买方所在地法院申请裁决。";

// 商品参数选择静态树形数据
export const productTreeData = [
  {
    code: "D310000000032",
    label: "D310000000032,动力轮对轴箱组成（带联轴节）",
    replaceable: false,
    image: '/images/cars/totle.jpg',
    children: [
      {
        code: "D311000000013",
        label: "D311000000013,动力轮对（带轴承+联轴节）",
        replaceable: false,
        image: '/images/cars/1.jpg',
        children: [
          {
            code: "D311001000011",
            label: "D311001000011,动力轮对",
            replaceable: false,
            image: '/images/cars/1_1_1.jpg',
            children: [
              {
                code: "D351200000018",
                label: "D351200000018,动车组联轴节（鼓形齿式）",
                replaceable: true,
                image: '/images/cars/1_2_1.jpg',
                children: []
              },
              {
                code: "D312000000013",
                label: "D312000000013,齿轮箱组成",
                replaceable: true,
                image: '/images/cars/1_2_1_1.jpg',
                children: []
              },
              {
                code: "D311101000008",
                label: "D311101000008,动力车轮组成（带喷漆）",
                replaceable: false,
                image: '/images/cars/1_2_1_1.jpg',
                children: []
              },
              {
                code: "D311299000016",
                label: "D311299000016,动力车轴（带喷漆）",
                replaceable: false,
                image: '/images/cars/1_2_1_1_1.jpg',
                children: []
              }
            ]
          },
          {
            code: "D311303000007",
            label: "D311303000007,后挡圈",
            replaceable: false,
            image: '/images/cars/1_1_2.jpg',
            children: []
          },
          {
            code: "3627401100024",
            label: "3627401100024,O形橡胶密封圈",
            replaceable: false,
            image: '/images/cars/1_2.jpg',
            children: []
          },
          {
            code: "3627401100023",
            label: "3627401100023,O形橡胶密封圈",
            replaceable: false,
            image: '/images/cars/1_2_1.jpg',
            children: []
          },
          {
            code: "D311300000020",
            label: "D311300000020,轴箱轴承",
            replaceable: false,
            image: '/images/cars/1_2_1_1.jpg',
            children: []
          }
        ]
      },
      {
        code: "D325000000013",
        label: "D325000000013,左轴箱组成",
        replaceable: false,
        image: '/images/cars/2.jpg',
        children: []
      },
      {
        code: "D325000000014",
        label: "D325000000014,右轴箱组成",
        replaceable: false,
        image: '/images/cars/3.jpg',
        children: []
      },
      {
        code: "D326000000037",
        label: "D326000000037,左轴端装置",
        replaceable: false,
        image: '/images/cars/4.jpg',
        children: []
      }
    ]
  }
];

// 替换部件列表
export const replacePartsMap = {
  "D351200000018": [
    {
      code: "D351200000002",
      label: "D351200000002,动车组联轴节（鼓形齿式）",
      replaceable: true,
      image: '/images/cars/1_1_1.jpg',
      children: []
    }
  ],
  "D312000000013": [
    {
      code: "D312000000014",
      label: "D312000000014,齿轮箱组成",
      replaceable: true,
      image: '/images/cars/1_2_1.jpg',
      children: []
    },
    {
      code: "312000000015",
      label: "D312000000015，齿轮箱组成",
      replaceable: true,
      image: '/images/cars/4.jpg',
      children: []
    }
  ]
};
