export default {
  columnBtn:false,
  sortable: false,
  addBtn: false,
  editBtn: false,
  addRowBtn: false,
  cellBtn: false,
  cancelBtn: false,
  deleteBtn: false,
  menuWidth: 100,
  menu: true,
  column: [
    {
      label: "主键",
      prop: "id",
      type: "input",
      addDisplay: false,
      editDisplay: false,
      viewDisplay: false,
      hide: true,
    },
    {
      label: "租户ID",
      prop: "tenantId",
      type: "input",
      addDisplay: false,
      editDisplay: false,
      viewDisplay: false,
      hide: true,
    },
    {
      label: "工序id",
      prop: "processId",
      type: "input",
      addDisplay: false,
      editDisplay: false,
      viewDisplay: false,
      hide: true,
    },
    {
      label: "追溯范围",
      prop: "name",
      type: "input",
      cell: true,
      rules: [{
        required: true,
        message: "请输入追溯范围",
        trigger: "blur"
      }],
    },
    {
      label: "追溯范围值类型",
      prop: "valueType",
      type: 'radio',
      dicData: [{
        label: '判断结果',
        value: '1'
      }, {
        label: '判断数值',
        value: '2'
      }],
      value: '1',
      cell: true,
      rules: [{
        required: true,
        message: "请选择追溯范围值类型",
        trigger: "blur"
      }],
      cascader: ['value'],
      control: (val, form) => {
      // change: (data) => {
      //   let val = data.value
        debugger
        if (val == '1') {
          return {
            value: {display: true},
            minValue:{display: false},
            maxValue:{display: false}
          }
        } else {
          return {
            value: {display: false},
            minValue:{display: true},
            maxValue:{display: true}
          }
        }
      },
    },
    // {
    //   label: "预设达标值",
    //   prop: "value",
    //   type: "input",
    //   cell: true,
    //   display: true,
    //   rules: [{
    //     required: false,
    //     message: "请输入预设达标值",
    //     trigger: "blur"
    //   }],
    // },
    {
      label: "预设最小达标值",
      prop: "minValue",
      type: "number",
      cell: true,
      rules: [{
        required: false,
        message: "请输入预设最小达标值",
        trigger: "blur"
      }],
    },
    {
      label: "预设最大达标值",
      prop: "maxValue",
      type: "number",
      cell: true,
      rules: [{
        required: false,
        message: "请输入预设最大达标值",
        trigger: "blur"
      }],
    },
    {
      label: "单位",
      prop: "unit",
      type: "input",
      cell: true,
      rules: [{
        required: false,
        message: "请输入单位",
        trigger: "blur"
      }],
    },
    {
      label: "创建人",
      prop: "createUser",
      type: "input",
      addDisplay: false,
      editDisplay: false,
      viewDisplay: false,
      hide: true,
    },
    {
      label: "创建部门",
      prop: "createDept",
      type: "input",
      addDisplay: false,
      editDisplay: false,
      viewDisplay: false,
      hide: true,
    },
    {
      label: "创建时间",
      prop: "createTime",
      type: "input",
      addDisplay: false,
      editDisplay: false,
      viewDisplay: false,
      hide: true,
    },
    {
      label: "修改人",
      prop: "updateUser",
      type: "input",
      addDisplay: false,
      editDisplay: false,
      viewDisplay: false,
      hide: true,
    },
    {
      label: "修改时间",
      prop: "updateTime",
      type: "input",
      addDisplay: false,
      editDisplay: false,
      viewDisplay: false,
      hide: true,
    },
    {
      label: "状态",
      prop: "status",
      type: "input",
      addDisplay: false,
      editDisplay: false,
      viewDisplay: false,
      hide: true,
    },
    {
      label: "是否已删除",
      prop: "isDeleted",
      type: "input",
      addDisplay: false,
      editDisplay: false,
      viewDisplay: false,
      hide: true,
    },
  ]
}
