// 私有 - 按钮组 - 配置json
export const btns = [
  {name:'保存',type:'btn_save',style_self:'btn_n_drag',color:true},
  {name:'状态操作',type:'oper_status',style_self:'btn_y_drag',color:true,drag:[{ id: 1, name: '排期',type:'pq' }, { id: 2, name: '转派',type:'zp' }, { id: 3, name: '暂停',type:'zt' }]},
  {name:'提交',type:'oper_commit',style_self:'btn_y_drag',color:true,drag:[{ id: 1, name: '提交',type:'tj' }, { id: 2, name: '撤消',type:'cx' }]},
  {name:'审核',type:'oper_process',style_self:'btn_y_drag',color:true,drag:[{ id: 1, name: '通过',type:'tg' }, { id: 2, name: '驳回',type:'bh' }]},
  {name:'项目资料',type:'btn_info',style_self:'btn_n_drag',color:true,btn_type:'popup'},
  {name:'人员变更',type:'btn_person',style_self:'btn_n_drag',color:true,btn_type:'popup'}
]

// 私有 - 基础信息 - 配置json
export const baseInfos = [
  {label:'任务编码',type:'ipt_disable',value:'SCFX001',field:'sn'},
  {label:'任务名称',type:'ipt_disable',value:'SCFX001',field:'name'},
  {label:'任务负责人',type:'sel',value:null,field:'leader_user_id',list:[]},
  {label:'任务审核人',type:'sel',value:null,field:'reviewer_user_id',list:[]},
  {label:'业务状态',type:'ipt_disable',value:'SCFX001',field:'task_status_text'},
  {label:'任务审核状态',type:'ipt_disable',value:'SCFX001',field:'examine_status_text'},
  {label:'所属项目编号',type:'ipt_disable',value:'SCFX001',field:'project_id'},
  {label:'所属项目名称',type:'ipt_disable',value:'SCFX001',field:'project_name'},
  {label:'预计开始',type:'date',value:[],field:'plan_start_time_text'},
  {label:'预计完成',type:'date',value:[],field:'plan_end_time_text'},
  {label:'完成日期',type:'date_disable',value:[],field:'end_time_text'},
]

// 私有 表格 - 输出文件 - columns
export const tableColumns = [
  { type: 'checkbox', align: 'center', width: '50' },
  { type: 'text', field: 'index', title: '序号', width: '50', align: 'center' },
  { type: 'img',field:'image',title:'图片',width:'100',align: 'center' },
  { type: 'text', field: 'bom_code', title: '零件编码', width: '200', align: 'center' },
  { type: 'text', field: 'bom_name', title: '零件名称', width: '200', align: 'center' },
  { type: 'text',field:'spec',title:'零件规格型号',width:'200',align: 'center' },
  { type: 'editable_ipt', field: 'molecule', title: '用量(分子)', width: '200', align: 'center' },
  { type: 'editable_ipt', field: 'denominator', title: '用量(分母)', width: '200', align: 'center' },
  { type: 'editable_ipt', field: 'price', title: '单价(￥)', width: '200', align: 'center'},
  { type: 'editable_ipt', field: 'total_price', title: '总价(￥)', width: '200', align: 'center'},
  { type: 'editable_ipt', field: 'remark', title: '备注', width: '200', align: 'center'},
]

// 私有 表格 - 输出文件 - 默认值
export const tableDefaultVal = []

// 私有 表格 - 输出文件 - 表头按钮 
export const tableHeaderBtns = [
  {name:'新增行',type:'add',style_self:'btn'},
  {name:'删除行',type:'del',style_self:'btn'}
]

export const _data = {
  // 按钮组
  personType:'',
  project_id:null,
  tasklist:[],
  projectList:[],
  topBtns:[],
  isShowDialog:false,
  isShowDialogIndex:1,
  title:'项目输出资料表',
  // 基础信息
  baseInfoList:[],
  // 表格
  table_title:'标准零件选型',
  listHeader:[],
  defaultRow:[],
  tableHeader:[],
  notShowCol:[],
  staticList:{},
  beforeStrList:[],
  tableHeigth:400,
  // 公共弹窗
  LcSingleIndex:1,
  isShowDialogBtns:false,
  dia_type:null,
  dia_label:'',
  dia_title:'',
  dia_list:[],
  // 备注
  remarks_title:'备注',
  remarks_vale:''
}