/*
 *    Copyright (c) 2018-2025, cyweb All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 *
 */

export const stateList=[
  {
    label:'已撤销',
    value:'-1'
  },
  {
    label:'待提交',
    value:'0'
  },
  {
    label:'待部门复查',
    value:'1'
  },
  {
    label:'部门复查驳回',
    value:'2'
  },
  {
    label:'待部门审核',
    value:'3'
  },

  {
    label:'部门审核驳回',
    value:'4'
  },
  {
    label:'待报价',
    value:'5'
  },
  {
    label:'待部门批准',
    value:'6'
  },
  {
    label:'部门批准驳回',
    value:'7'
  },
  {
    label:'维修中',
    value:'8'
  },
  {
    label:'待报修人验收',
    value:'9'
  },
  {
    label:'待报修人验收驳回',
    value:'10'
  }, {
    label:'待实训室审批',
    value:'11'
  },
  {
    label:'实训室审批驳回',
    value:'12'
  },
  {
    label:'报修完结',
    value:'13'
  },
]
export const tableOption = {
  border: true,
  index: true,
  indexLabel: '序号',
  stripe: true,
  menuAlign: 'center',
  align: 'center',
  editBtn: false,
  delBtn: false,
  addBtn: false,
  dic: [],
  column: [
    {
      label: '所属区域',
      prop: 'buildId',
      type:"select",
      dicUrl: '/asset/checkbuilding/list',
      props:{
        label:'areaName',
        value:'id'
      },
      addDisplay: false,
      editDisplay: false
    },
    {
      label: '设备',
      prop: 'assetId',
      search: true,
      type:"select",
      dicUrl: '/asset/checkdevice/list',
      props: {
        label: 'goodsName',
        value: 'id'
      },
      rules: [{
        required: true,
        message: '设备名称不能为空',
        trigger: 'blur'
      }],
      addDisabled: false,
      editDisabled: true
    },
	  {
      label: '维修申请原因',
      prop: 'name'
    },
    {
      label: '维修报价',
      prop: 'wxPrice',

      addDisplay: false,
      editDisplay: false
    },
	  {
      label: '状态',
      prop: 'state',
      search:true,
      dicData: stateList,
      type:'select',
      props:{
        label:'label',
        value:'value'
      },
      addDisplay: false,
      editDisplay: false
    },
    {
      label: '审核意见',
      prop: 'examRemark',
      addDisplay: false,
      editDisplay: false
    },
    {
      label: '申请时间',
      prop: 'createTime',
      addDisplay: false,
      editDisplay: false
    },
    {
      label: '备注',
      type:'textarea',
      row:true,
      span:24,
      prop: 'remark'
    },

  ]
}
export const tablestaticOption = {
  border: true,
  index: true,
  indexLabel: '序号',
  stripe: true,
  menuAlign: 'center',
  align: 'center',
  editBtn: false,
  delBtn: false,
  addBtn: false,
  dic: [],
  column: [
    {
      label: '所属区域',
      prop: 'buildId',
      search: true
    },
    {
      label: '故障时间',
      prop: 'gztime',
    },
    {
      label: '故障类型',
      prop: 'gzname',
      search: true
    },
    {
      label: '故障次数',
      prop: 'gznum',
    },
  ]
}
