Newer
Older
Nanping_sponge_JXKH / src / utils / rules.js
@liyingjing liyingjing on 25 Oct 2023 5 KB 海绵绩效考个
export const projectTableRules={
  province: [
    { required: true, message: "省份不能为空", trigger: ["change",'blur'] },
  ],
  city: [
    { required: true, message: "城市不能为空", trigger: ["change",'blur'] },
  ],
    chargeUser: [
      { required: true, message: "责任人不能为空", trigger: "change" },
    ],
    totalInvest: [
      { required: true, message: "项目总投资不能为空", trigger: "change" },
    ],
    startTime: [
      { required: true, message: "项目开始日期不能为空", trigger: "change" },
    ],
    endTime: [
      { required: true, message: "项目交付日期不能为空", trigger: "change" },
    ],
  
    projectTypeId: [
      { required: true, message: "项目类别不能为空", trigger: "change" },
    ],
    projectNo: [{ required: true, message: "项目编号不能为空", trigger: "blur" }],
    projectName: [
      { required: true, message: "项目名称不能为空", trigger: "blur" },
    ],
    buildCategory: [
      { required: true, message: "建设类别不能为空", trigger: "change" },
    ],
  
    drainagePartition: [
      { required: true, message: "所属排水分区不能为空", trigger: "change" },
    ],
    primaryConcatPersonTelephone: [
      { required: true, message: "主要联系人电话不能为空", trigger: "blur" },
    ],
    approveComment:[
      { required: true, message: "请您输入处理意见", trigger: "blur" },
    ],
  }

  export const projectEstimateRules={
    projectName: [
      { required: true, message: "项目名称能为空", trigger: ["change"] },
    ],
    fundSource: [
      { required: true, message: "资金来源不能为空", trigger: ["change"] },
    ],
    quoteDate: [
      { required: true, message: "报价日期不能为空", trigger: ["change"] },
    ],
  }

  export const projectInformationRules={
    chargeUser: [{ required: true, message: "责任人不能为空", trigger: "blur" }],
    totalInvest: [
      { required: true, message: "项目总投资不能为空", trigger: "blur" },
    ],
    startTime: [
      { required: true, message: "项目开始日期不能为空", trigger: "blur" },
    ],
    endTime: [
      { required: true, message: "项目交付日期不能为空", trigger: "blur" },
    ],
  
    projectTypeId: [
      { required: true, message: "项目类别不能为空", trigger: ["blur" ,'change']},
    ],
    projectNo: [{ required: true, message: "项目编号不能为空", trigger: "blur" }],
    projectName: [
      { required: true, message: "项目名称不能为空", trigger: "blur" },
    ],
    buildCategory: [
      { required: true, message: "建设类别不能为空", trigger: "change" },
    ],
  
    drainagePartition: [
      { required: true, message: "所属排水分区不能为空", trigger: "change" },
    ],
    primaryConcatPersonTelephone: [
      { required: true, message: "主要联系人电话不能为空", trigger: "blur" },
    ],
  }

  export const projectPlanRules={
    projectNo: [
      { required: true, message: "项目名称人不能为空", trigger: "change" },
    ],
    startTime: [
      {
        required: true,
        message: "项目开始日期不能为空",
        trigger: ["change", "blur"],
      },
    ],
    endTime: [
      {
        required: true,
        message: "项目交付日期不能为空",
        trigger: ["change", "blur"],
      },
    ],
    projectFillTime: [
      { required: true, message: "项目填报日期不能为空", trigger: "change" },
    ],
    chargeUser: [
      { required: true, message: "项目责任人期不能为空", trigger: "change" },
    ],
  }

  export const contractManagementRules={
    contractNo: [
      { required: true, message: "合同编号不能为空", trigger: "blur" },
    ],
    projectNo: [
      { required: true, message: "项目名称不能为空", trigger: "blur" },
    ],
    signTime: [
      { required: true, message: "签约日期不能为空", trigger: "blur" },
    ],
    money: [{ required: true, message: "金额不能为空", trigger: "blur" }],
    businessPrimaryPerson: [
      { required: true, message: "业务负责人不能为空", trigger: "blur" },
    ],
  }

  export const xmlxwhRules={
    projectTypeCode: [
    { required: true, message: "项目类型编码不能为空", trigger: ["change"] },
  ],
  projectTypeName: [
    { required: true, message: "项目类型名称不能为空", trigger: ["blur"] },
  ],
  ownership: [
    { required: true, message: "请选择所属类型不能为空", trigger: ["change"] },
  ],
  status: [
    { required: true, message: "是否启用能为空", trigger: ["change"] },
  ],
}

export const AndEvaluationComponentsRules={
  checkUnitName: [
    { required: true, message: "检查单位不能为空", trigger: "blur" },
  ],
  hiddenTroubleType: [
    { required: true, message: "隐患类型不能为空", trigger: "change" },
  ],
  hiddenTroubleLevel: [
    { required: true, message: "隐患级别不能为空", trigger: "change" },
  ],
  abarbeitungDeadline: [
    { required: true, message: "整改完成期限不能为空", trigger: "blur" },
  ],
  projectNo: [
    { required: true, message: "项目名称/编号不能为空", trigger: "change" },
  ],
  buildCategory: [
    { required: true, message: "建设类别不能为空", trigger: "change" },
  ],

  drainagePartition: [
    { required: true, message: "所属排水分区不能为空", trigger: "change" },
  ],
  primaryConcatPersonTelephone: [
    { required: true, message: "主要联系人电话不能为空", trigger: "blur" },
  ],
  approveComment: [
    { required: true, message: "请您输入处理意见", trigger: "blur" },
  ],
}