import React from "react";
import { WeaLocaleProvider } from "ecCom";

const { getLabel } = WeaLocaleProvider;
export const submitStatus = [
  {
    key: "ALL",
    showname: "全部（报送状态）",
    lanId: 111
  }
];


export const advanceConditions = [
  {
    items: [
      {
        colSpan: 1,
        conditionType: "INPUT",
        domkey: ["keyword"],
        fieldcol: 18,
        label: "姓名或工号",
        lanId: 111,
        labelcol: 6,
        value: ""
      },
      {
        browserConditionParam: {
          completeParams: {},
          conditionDataParams: {},
          dataParams: {},
          destDataParams: {},
          hasAddBtn: false,
          hasAdvanceSerach: true,
          idSeparator: ",",
          isAutoComplete: 1,
          isDetail: 0,
          isMultCheckbox: false,
          isSingle: false,
          linkUrl: "",
          pageSize: 10,
          quickSearchName: "",
          replaceDatas: [],
          title: "",
          type: "57"
        },
        colSpan: 1,
        conditionType: "BROWSER",
        domkey: ["departmentIds"],
        fieldcol: 18,
        label: "部门",
        lanId: 27511,
        labelcol: 6
      },
      {
        browserConditionParam: {
          completeParams: {},
          conditionDataParams: {},
          dataParams: {},
          destDataParams: {},
          hasAddBtn: false,
          hasAdvanceSerach: true,
          idSeparator: ",",
          isAutoComplete: 1,
          isDetail: 0,
          isMultCheckbox: false,
          isSingle: false,
          linkUrl: "",
          pageSize: 10,
          quickSearchName: "",
          replaceDatas: [],
          title: "",
          type: "278"
        },
        colSpan: 1,
        conditionType: "BROWSER",
        domkey: ["positionIds"],
        fieldcol: 18,
        label: "岗位",
        lanId: 6086,
        labelcol: 6
      },
      {
        colSpan: 1,
        conditionType: "SELECT",
        domkey: ["employmentStatus"],
        fieldcol: 18,
        label: "人员状态",
        lanId: 382300,
        labelcol: 6,
        value: "",
        options: []
      },
      {
        colSpan: 1,
        conditionType: "SELECT",
        domkey: ["employmentType"],
        fieldcol: 18,
        label: "任职受雇从业类型",
        lanId: 111,
        labelcol: 6,
        value: "",
        options: []
      },
      {
        colSpan: 1,
        conditionType: "RANGEPICKER",
        domkey: ["fromEmploymentDate", "endEmploymentDate"],
        fieldcol: 18,
        label: "任职受雇日期",
        lanId: 111,
        labelcol: 6,
        value: ""
      },
      {
        colSpan: 1,
        conditionType: "RANGEPICKER",
        domkey: ["fromDismissDate", "endDismissDate"],
        fieldcol: 18,
        label: "离职日期",
        lanId: 111,
        labelcol: 6,
        value: ""
      },
      {
        colSpan: 1,
        conditionType: "SELECT",
        domkey: ["disability"],
        fieldcol: 18,
        label: "是否残疾",
        lanId: 111,
        labelcol: 6,
        value: "",
        options: []
      },
      {
        colSpan: 1,
        conditionType: "SELECT",
        domkey: ["lonelyOld"],
        fieldcol: 18,
        label: "是否孤老",
        lanId: 111,
        labelcol: 6,
        value: "",
        options: []
      },
      {
        colSpan: 1,
        conditionType: "SELECT",
        domkey: ["martyrDependents"],
        fieldcol: 18,
        label: "是否是烈属",
        lanId: 111,
        labelcol: 6,
        value: "",
        options: []
      },
      {
        colSpan: 1,
        conditionType: "SELECT",
        domkey: ["deductExpenses"],
        fieldcol: 18,
        label: "是否扣除减除费用",
        lanId: 111,
        labelcol: 6,
        value: "",
        options: []
      }
    ],
    defaultshow: true
  }
];
export const declareConditions = [
  {
    items: [
      {
        colSpan: 1,
        fieldcol: 12,
        labelcol: 6,
        rules: "selectLinkageRequired",
        conditionType: "SELECT_LINKAGE",
        selectLinkageDatas: {
          "ORGANIZATION": {
            browserConditionParam: {
              completeParams: {},
              conditionDataParams: {},
              dataParams: {},
              destDataParams: {},
              hasAddBtn: false,
              hasAdvanceSerach: true,
              idSeparator: ",",
              isAutoComplete: 1,
              isDetail: 0,
              isMultCheckbox: false,
              isSingle: true,
              linkUrl: "",
              pageSize: 10,
              quickSearchName: "",
              replaceDatas: [],
              title: "",
              type: "1"
            },
            conditionType: "BROWSER",
            domkey: ["employeeId"]
          },
          "EXT_EMPLOYEE": {
            conditionType: "BROWSER",
            domkey: ["INPUT2"]
          }
        },
        options: [],
        domkey: ["employeeType"],
        label: "系统名称",
        lanId: 111,
        viewAttr: 3
      },
      {
        colSpan: 1,
        conditionType: "INPUT",
        domkey: ["employeeName"],
        fieldcol: 12,
        label: "证件姓名",
        lanId: 111,
        labelcol: 6,
        value: "",
        rules: "required",
        viewAttr: 3
      },
      {
        colSpan: 1,
        conditionType: "INPUT",
        domkey: ["jobNum"],
        fieldcol: 12,
        label: "工号",
        lanId: 1933,
        labelcol: 6,
        value: "",
        viewAttr: 2
      },
      {
        colSpan: 1,
        conditionType: "INPUT",
        domkey: ["nationality"],
        fieldcol: 12,
        label: "国籍",
        lanId: 111,
        labelcol: 6,
        value: "",
        rules: "required|string",
        viewAttr: 3
      },
      {
        colSpan: 1,
        conditionType: "SELECT",
        domkey: ["cardType"],
        fieldcol: 12,
        label: "证件类型",
        lanId: 111,
        labelcol: 6,
        value: "",
        options: [],
        rules: "required|string",
        viewAttr: 3
      },
      {
        colSpan: 1,
        conditionType: "INPUT",
        domkey: ["cardNum"],
        fieldcol: 12,
        label: "证件号码",
        lanId: 1839,
        labelcol: 6,
        value: "",
        rules: "required",
        viewAttr: 3
      },
      {
        colSpan: 1,
        conditionType: "SELECT",
        domkey: ["gender"],
        fieldcol: 12,
        label: "性别",
        lanId: 111,
        labelcol: 6,
        value: "",
        viewAttr: 3,
        rules: "required",
        options: []
      },
      {
        colSpan: 1,
        conditionType: "INPUT",
        domkey: ["birthplace"],
        fieldcol: 12,
        label: "出生地",
        lanId: 111,
        labelcol: 6,
        value: "",
        viewAttr: 2
      },
      {
        colSpan: 1,
        conditionType: "DATEPICKER",
        domkey: ["birthday"],
        fieldcol: 12,
        label: "出生日期",
        lanId: 111,
        labelcol: 6,
        rules: "required",
        value: "",
        viewAttr: 3
      },
      {
        colSpan: 1,
        conditionType: "SELECT",
        domkey: ["employmentStatus"],
        fieldcol: 12,
        label: "状态",
        lanId: 535101,
        labelcol: 6,
        value: "",
        viewAttr: 3,
        rules: "required",
        detailtype: 3,
        options: []
      },
      {
        colSpan: 1,
        conditionType: "INPUT",
        domkey: ["mobile"],
        fieldcol: 12,
        label: "手机号码",
        lanId: 111,
        labelcol: 6,
        value: "",
        rules: "required",
        viewAttr: 3
      },
      {
        colSpan: 1,
        conditionType: "SELECT",
        domkey: ["employmentType"],
        fieldcol: 12,
        label: "任职受雇从业类型",
        lanId: 111,
        labelcol: 6,
        value: "",
        viewAttr: 3,
        rules: "required",
        options: []
      },
      {
        colSpan: 1,
        conditionType: "DATEPICKER",
        domkey: ["employmentDate"],
        fieldcol: 12,
        label: "任职受雇从业日期",
        lanId: 111,
        labelcol: 6,
        value: "",
        viewAttr: 3
      },
      {
        colSpan: 1,
        conditionType: "DATEPICKER",
        domkey: ["dismissDate"],
        fieldcol: 12,
        label: "离职日期",
        lanId: 111,
        labelcol: 6,
        value: "",
        viewAttr: 2
      },
      {
        colSpan: 1,
        conditionType: "SELECT",
        domkey: ["reissueSalary"],
        fieldcol: 12,
        label: "是否离职后补发工资",
        lanId: 111,
        labelcol: 6,
        value: "OFF",
        viewAttr: 2,
        detailtype: 3,
        options: []
      },
      {
        colSpan: 1,
        conditionType: "MONTHPICKER",
        domkey: ["reissueTaxCycle"],
        fieldcol: 12,
        label: "补发税款所属月份",
        lanId: 111,
        labelcol: 6,
        value: "",
        viewAttr: 2
      },
      {
        colSpan: 1,
        conditionType: "DATEPICKER",
        domkey: ["entryDate"],
        fieldcol: 12,
        label: "首次入境时间",
        lanId: 111,
        labelcol: 6,
        value: "",
        viewAttr: 2
      },
      {
        colSpan: 1,
        conditionType: "DATEPICKER",
        domkey: ["departureDate"],
        fieldcol: 12,
        label: "预计离境时间",
        lanId: 111,
        labelcol: 6,
        value: "",
        viewAttr: 2
      },
      {
        colSpan: 1,
        conditionType: "SELECT",
        domkey: ["taxReasons"],
        fieldcol: 12,
        label: "涉税事由",
        lanId: 111,
        labelcol: 6,
        value: "",
        multiple: true,
        viewAttr: 2,
        options: [
          { key: getLabel(111, "任职受雇"), showname: getLabel(111, "任职受雇") },
          { key: getLabel(111, "提供临时劳务"), showname: getLabel(111, "提供临时劳务") },
          { key: getLabel(111, "转让财产"), showname: getLabel(111, "转让财产") },
          { key: getLabel(111, "从事投资和经营活动"), showname: getLabel(111, "从事投资和经营活动") },
          { key: getLabel(111, "其他"), showname: getLabel(111, "其他") }
        ]
      },
      {
        colSpan: 1,
        conditionType: "SELECT",
        domkey: ["disability"],
        fieldcol: 12,
        label: "是否残疾",
        lanId: 111,
        labelcol: 6,
        value: "OFF",
        viewAttr: 2,
        detailtype: 3,
        options: []
      },
      {
        colSpan: 1,
        conditionType: "INPUT",
        domkey: ["disabilityCardNo"],
        fieldcol: 12,
        label: "残疾证号",
        lanId: 111,
        labelcol: 6,
        value: "",
        viewAttr: 2
      },
      {
        colSpan: 1,
        conditionType: "SELECT",
        domkey: ["lonelyOld"],
        fieldcol: 12,
        label: "是否孤老",
        lanId: 111,
        labelcol: 6,
        value: "OFF",
        viewAttr: 2,
        detailtype: 3,
        options: []
      },
      {
        colSpan: 1,
        conditionType: "SELECT",
        domkey: ["martyrDependents"],
        fieldcol: 12,
        label: "是否是烈属",
        lanId: 111,
        labelcol: 6,
        value: "OFF",
        viewAttr: 2,
        detailtype: 3,
        options: []
      },
      {
        colSpan: 1,
        conditionType: "INPUT",
        domkey: ["martyrDependentsCardNo"],
        fieldcol: 12,
        label: "烈属证号",
        lanId: 111,
        labelcol: 6,
        value: "",
        viewAttr: 2
      },
      {
        colSpan: 1,
        conditionType: "SELECT",
        domkey: ["deductExpenses"],
        fieldcol: 12,
        label: "是否扣除减除费用",
        lanId: 111,
        labelcol: 6,
        value: "ON",
        viewAttr: 2,
        detailtype: 3,
        options: []
      }
    ],
    defaultshow: true
  }
];
// 扣除名单确认
export const deductConditions = [
  {
    items: [
      {
        conditionType: "INPUT",
        domkey: ["employeeName"],
        fieldcol: 12,
        label: "姓名",
        lanId: 111,
        labelcol: 6,
        value: "",
        viewAttr: 1
      },
      {
        conditionType: "SWITCH",
        domkey: ["deductFlag"],
        fieldcol: 12,
        label: "是否扣除",
        lanId: 111,
        labelcol: 6,
        value: "",
        viewAttr: 2
      },
    ],
    defaultshow: true
  }
];