formConfig.js 2.09 KB
export const formConfig = [
  {
    label: "航班号",
    type: "Input",
    name: "purposeOfFlightNo",
    prop: "purposeOfFlightNo",
    placeholder: "请输入航班号",
    span: 4,
    trigger: "blur",
    labelWidth: "55px",
    disable: false,
  },
  {
    label: "航班日期",
    type: "Date",
    name: "flightDate",
    prop: "flightDate",
    placeholder: "请选择航班日期",
    format: "yyyy-MM-dd",
    colWidth: "18%",
    inputWidth: "100%",
    disable: false,
    hidden: false,
  },
  {
    label: "航线",
    type: "Input",
    name: "flightRouteListStr",
    prop: "flightRouteListStr",
    placeholder: "",
    span: 6,
    labelWidth: "40px",
    trigger: "blur", // 事件名
    disable: false,
    hidden: false,
  },
  {
    label: "航线优先级",
    type: "slot",
    name: "flightRoute",
    prop: "flightRoute",
    placeholder: "",
    colWidth: "23%",
    labelWidth: "85px",
    trigger: "blur", // 事件名
  },
];
// 航线规则表单
export const routeRuleForm = {
  config: true,
  purposeOfFlightNo: "",
  flightRoute: "", // 飞行航线
  routeSpecifyDateSeq: "", // 航线优先级
  declarationCategory: "",
  location: null, // 包含始发站
  notLocation: null, // 不包含始发站
  destinationSite: null, // 包含目的站
  notDestinationSite: null, // 不包含目的站
  includeUrsa: "", // URSA包含
  notIncludeUrsa: "", // URSA不包含
  minNumOfPieces: "", // 最小件数
  maxNumOfPieces: "", // 最大件数
  minWeight: "", // 最小重量
  maxWeight: "", // 最大重量
  typeOfGoods: [], // 申报类别
  cargoType: [], // 货物类型
  puporpuxCode: [], // 取件扫描号
  serviceCode: [], // Service Code
  handlingCode: [], // Handling Code
  subCategory: [], // Sub Category
  ruleDate: "",
};
// 校验表单域的选项
export const validateForm = [
  "location",
  "notLocation",
  "destinationSite",
  "notDestinationSite",
  "includeUrsa",
  "notIncludeUrsa",
  "minNumOfPieces",
  "maxNumOfPieces",
  "minWeight",
  "maxWeight",
  "typeOfGoods",
  "cargoType",
  "puporpuxCode",
  "serviceCode",
  "handlingCode",
  "subCategory",
];