
const apiVersion = process.env.VUE_APP_API_VERSION.replace(/\./g, '_')
const baseUrl = process.env.VUE_APP_API_BASEURL + apiVersion + '/'

// 私有 - 按钮组 - 配置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:'',field:'sn'},
    {label:'任务名称',type:'ipt_disable',value:'',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:'',field:'task_status_text'},
    {label:'任务审核状态',type:'ipt_disable',value:'',field:'examine_status_text'},
    {label:'所属项目编号',type:'ipt_disable',value:'',field:'project_id'},
    {label:'所属项目名称',type:'ipt_disable',value:'',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: 'text', field: 'title', title: '文件名称', width: '412', align: 'center' },
    { type: 'text', field: 'create_time', title: '上传时间', width: '412', align: 'center' },
    { type: 'operation',field:'operation',title:'操作',width:'412',align: 'center' },
    { type: 'editable_ipt', field: 'remark', title: '备注', width: '412', align: 'center' },
]

// 私有 表格 - 默认值
export const tableDefaultVal = []

// 私有 表头按钮
export const tableHeaderBtns = [
    // {name:'下载模板',type:'download',style_self:'btn'},
    {name:'文件上传',type:'upload_file',style_self:'btn_upload',upload_url:baseUrl + 'project/upload/file'},
    {name:'填写共享盘链接',type:'write_links',style_self:'btn'}
]

export const _data = {
    // 按钮组
    topBtns:[],
    isShowDialog:false,
    isShowDialogIndex:1,
    title:'项目输出资料表',
    personType:'',
    project_id:null,
    tasklist:[],
    projectList:[],
    // 基础信息
    baseInfoList:[],
    // 表格
    loading:false,
    table_title:'输出文件',
    listHeader:[],
    defaultRow:[],
    tableHeader:[],
    notShowCol:[],
    staticList:{},
    beforeStrList:[],
    tableHeigth:372,
    linksTitle:'填写共享盘链接',
    isShowLinksDialog:false,
    isShowLinksDialogIndex:1,
    btnTamplteList:[],
    // 公共弹窗
    LcSingleIndex:1,
    isShowDialogBtns:false,
    dia_type:null,
    dia_label:'',
    dia_title:'',
    dia_list:[],
    // 备注
    remarksIndex:1,
    remarks_title:'备注',
    remarks_vale:'',
}