export const COLUMNS = [
	{
		label: '审批流编码',
		prop: 'billNo',
		disabled: false,
		style: 'width:330px ',
		isCode: true,
	},
	{
		label: '审批流版本号',
		prop: 'versionNo',
		disabled: false,
		style: 'width:382px ',
	},
	{
		label: '审批流名称',
		prop: 'name',
		disabled: false,
		style: 'width:382px ',
	},
	{
		label: '应用单据',
		prop: 'useOrderType',
		style: 'width:302px',
	},
	{
		label: '单据状态',
		prop: 'documentStatus',
		style: 'width:285px',
	},
	{
		label: '维护时间',
		prop: 'date',
		style: 'width:357px',
	},
	{
		label: '维护人员',
		prop: 'maintainerName',
		style: 'width:88px',
	},
];
export const BTNS = [
	{
		name: '新增',
		icon: 'el-icon-circle-plus',
		style: 'width: 76px;height: 30px;font-size: 12px;background: rgba(65, 120, 213, 1);border-radius: 4px;display: flex;justify-content:center;align-items: center;color: #fff',
		type: 'add',
	},
	{
		name: '保存',
		icon: 'iconfont icon-baocun iconfont-mg',
		style: 'width: 76px;height: 30px;background: rgba(255, 255, 255, 1);margin-left:8px',
		type: 'save',
	},
	{
		name: '提交',
		icon: '',
		style: 'width: 56px;height: 30px;background: rgba(255, 255, 255, 1);margin-left:24px',
		type: 'submit',
	},
	{
		name: '审核',
		icon: '',
		style: 'width: 56px;height: 30px;background: rgba(255, 255, 255, 1);margin-left:24px',
		type: 'audit',
	},
	{
		name: '反审核',
		icon: '',
		style: 'width: 56px;height: 30px;background: rgba(255, 255, 255, 1);margin-left:8px',
		type: 'noAudit',
	},
	// {
	// 	name: '删除',
	// 	icon: 'delete',
	// 	style: 'width: 56px;height: 30px;background: rgba(255, 255, 255, 1);margin-left:8px',
	// },
];

export const BTNS1 = [
	{
		name: '新增',
		icon: 'el-icon-circle-plus',
		style: 'width: 76px;height: 30px;font-size: 12px;background: rgba(65, 120, 213, 1);border-radius: 4px;display: flex;justify-content:center;align-items: center;color: #fff',
		type: 'add',
	},

	{
		name: '提交',
		icon: '',
		style: 'width: 56px;height: 30px;background: rgba(255, 255, 255, 1);margin-left:24px',
		type: 'submit',
	},
	{
		name: '审核',
		icon: '',
		style: 'width: 56px;height: 30px;background: rgba(255, 255, 255, 1);margin-left:24px',
		type: 'audit',
	},
	{
		name: '反审核',
		icon: '',
		style: 'width: 56px;height: 30px;background: rgba(255, 255, 255, 1);margin-left:8px',
		type: 'noAudit',
	},
	// {
	// 	name: '删除',
	// 	icon: 'delete',
	// 	style: 'width: 56px;height: 30px;background: rgba(255, 255, 255, 1);margin-left:8px',
	// },
];

export const SHOWS = {
	isApplicableScope: true,
	isSetConditions: true,
	isMethod: true,
};
export const TITLES = {
	isApplicableScope: '审批流适用范围',
	isSetConditions: '设置审批条件',
	isMethod: '审批流审批方式',
};
export const WIDTHS = {
	isApplicableScope: '800px',
	isSetConditions: '400px',
	isMethod: '688px',
};
export const RULEFORM = {
	billNo: '',
	name: '', //审批流名称
	orgId: 0,
	versionStr: '', //版本
	useOrderType: '', //y应用单据
	documentStatus: 'a', //单据状态
	date: '',
	CurrentVersionDetailsId: 0,
	details: [
		{
			id: 0,
			fid: 0, //单据头ID
			versionNo: 0, //版本号
			remark: '', //备注
			ranges: [
				{
					id: 0,
					detailsId: 0, //上级明细ID
					deptId: 0, //部门ID
				},
			], //使用范围
			ways: [
				{
					id: 0,
					detailsId: 0, //上级明细ID
					type: 0, //审批类型设置
					method: 0, //审批方式
					sort: 1, //排序
					//审批方式审批人选择
					wayApprovers: [],
				},
				// {
				// 	id: 0,
				// 	detailsId: 0, //上级明细ID
				// 	type: 0, //审批类型设置
				// 	method: 0, //审批方式
				// 	sort: 2, //排序
				// 	//审批方式审批人选择
				// 	wayApprovers: [],
				// },
				// {
				// 	id: 0,
				// 	detailsId: 0, //上级明细ID
				// 	type: 0, //审批类型设置
				// 	method: 0, //审批方式
				// 	sort: 3, //排序
				// 	//审批方式审批人选择
				// 	wayApprovers: [],
				// },
			],
		},
	],
};
export const WAYSITEM = {
	id: 0,
	detailsId: 0, //上级明细ID
	type: 0, //审批类型设置
	method: 0, //审批方式

	//审批方式审批人选择
	wayApprovers: [],
};
export const RULEFORMINIT = {
	billNo: '',
	name: '', //审批流名称
	useOrderType: '', //y应用单据
	version: '',
	documentStatus: 'a', //单据状态
	date: '',
	details: [
		{
			id: 0,
			fid: 0, //单据头ID
			versionNo: '', //版本号
			remark: '', //备注
			ranges: [
				{
					id: 0,
					detailsId: 0, //上级明细ID
					deptId: 0, //部门ID
				},
			], //使用范围
			ways: [
				{
					id: 0,
					detailsId: 0, //上级明细ID
					type: 0, //审批类型设置
					method: 0, //审批方式
					sort: 0, //排序
					//审批方式审批人选择
					wayApprovers: [],
				},
			],
		},
	],
};
// billNo name useOrderType documentStatus date maintainerName
export const SEARCHDATA = [
	{
		label: '审批流编号',
		prop: 'billNo',
		type: 'input',
		disabled: true,
		class: 'form-item',
		placeholder: '(保存时自动生成)',
	},
	{
		label: '审批流名称',
		prop: 'name',
		type: 'input',
		disabled: false,
		required: true,
		class: 'form-item',
		placeholder: '请输入关键词',
		reg: true,
		maxLength: 10,
	},
	{
		label: '应用单据',
		prop: 'useOrderType',
		type: 'select',
		disabled: false,
		required: true,
		options: [],
		class: 'form-item',
		placeholder: '请选择应用单据',
	},
	{
		label: '审批流版本号',
		type: 'input',
		prop: 'versionStr',
		disabled: true,
		class: 'form-item',
		placeholder: '(保存时自动生成)',
	},
	{
		label: '单据状态',
		prop: 'documentStatus',
		type: 'select',
		disabled: true,
		placeholder: '请选择单据状态',
		class: 'form-item',
		options: [
			{ value: 'a', label: '创建' },
			{ value: 'b', label: '审核中' },
			{ value: 'c', label: '已审核' },
			{ value: 'd', label: '重新审核' },
		],
	},
	{
		label: '维护日期',
		prop: 'date',
		type: 'date',
		disabled: true,
		class: 'form-item',
		style: 'width:280px',
		placeholder: '(保存时自动生成)',
	},
];
//不同状态下的时间线
//新增
export const ADDTIMELINE = [
	{
		title: '开始',
		content: [], //审核人/审核部门
		isDelete: false, //控制编辑状态下的删除按钮
		statuss: [], //审核状态
		method: {}, //审核方式
		rTitle: '审批流适用范围', //编辑状态下的右边文字内容
		isAdd: false, //编辑状态下的添加按钮
		text: '审批流适用范围', //新增标题下的文字
		isNewAdd: false, //控制新增的添加按钮
		setName: '', //新增的右边文字内容
		isLine: true,
		isShowM: true,
		tag: 'isApplicableScope',
		isDis: false,
		id: 0,
	},
	{
		title: '审批条件',
		content: [],
		statuss: [],
		method: {},
		isDelete: false,
		rTitle: '设置审批条件',
		isAdd: false,
		isShowM: true,
		text: '单据触发审批的条件',
		isNewAdd: false, //控制新增的添加按钮
		setName: '',
		isLine: false,
		tag: 'isSetConditions',
		isDis: false,
		id: 1,
	},
	{
		title: '审批方式',
		content: [],
		statuss: [],
		method: {},
		isDelete: true,
		isShowM: true,
		rTitle: '选择审批方式',
		isAdd: false,
		text: '审批流审批方式',
		isNewAdd: true, //控制新增的添加按钮
		setName: '',
		isLine: false,
		tag: 'isMethod',
		isDis: false,
		id: 2,
	},
	{
		title: '结束',
		content: [],
		statuss: [],
		method: {},
		isDelete: false,
		isShowM: false,
		rTitle: '',
		setName: '',
		isLine: false,
		isAdd: true, //控制编辑的添加按钮
		isNewAdd: false, //控制新增的添加按钮
		text: '审批流程结束',
		isDis: false,
		id: 5,
	},
];
export const ADDTIMELINEITEM = {
	title: '审批方式',
	content: [],
	statuss: [],
	method: {},
	isDelete: true,
	isShowM: true,
	rTitle: '选择审批方式',
	isAdd: false,
	text: '审批流审批方式',
	isNewAdd: true, //控制新增的添加按钮
	setName: '',
	isLine: false,
	isLine: false,
	tag: 'isMethod',
	isDis: false,
};
export const EDITTIMELINEITEM = {
	title: '审批方式',
	content: [],
	statuss: [],
	isShowM: false,
	method: {
		//name: '部门负责人审批', status: '会签'
	},
	text: '审批流审批方式',
	isDelete: true,
	rTitle: '编辑审批方式',
	isAdd: false,
	isDis: false,
	tag: 'isMethod',
	isDis: false,
	isLine: false,
};
//编辑
export const EDITTIMELNE = [
	{
		title: '审批适用范围',
		content: [
			// 'ORICO京东',
			// '客户服务部',
			// '客户服务部',
			// '客户服务部',
			// '客户服务部',
			// 'F2B211项目组',
			// 'F2B211项目组',
			// 'OPS',
		],
		isShowM: false,
		isDelete: false,
		statuss: [],
		method: {},
		role: {},
		rTitle: '编辑适用范围',
		isAdd: false,
		isDis: false,
		id: 0,
		isLine: false,
		tag: 'isApplicableScope',
	},
	{
		title: '单据触发审批的条件',
		content: [],
		statuss: [
			//{ name: '单据状态 : ', status: '审核中' }
		],
		isShowM: false,
		method: {},
		isDelete: false,
		rTitle: '编辑触发条件',
		isAdd: false,
		isDis: false,
		id: 1,
		isLine: false,
		tag: 'isSetConditions',
	},
	{
		title: '',
		content: [],
		statuss: [],
		isDis: false,
		isShowM: false,
		method: {
			//name: '部门负责人审批', status: '会签'
		},
		isLine: false,
		isDelete: true,
		rTitle: '编辑审批方式',
		tag: 'isMethod',
		isAdd: false,
		id: 2,
	},
	// {
	// 	title: '指定角色',
	// 	content: [],
	// 	statuss: [],
	// 	method: {
	// 		// name: '超级管理员、财务、采购、PMC、深圳教练、深圳团长、长沙教练、长沙团长、长沙人事、长沙行政、长沙财务、长沙教练审批组、长沙IT管理员',
	// 		// status: '会签',
	// 	},
	// 	isDelete: true,
	// 	rTitle: '编辑审批方式',
	// },
	{
		title: '结束',
		content: [],
		statuss: [],
		method: {},
		isShowM: false,
		isDelete: false,
		isDis: false,
		rTitle: 'false',
		isAdd: true,
		id: 5,
	},
];
//已审核
// timelineList: [
// 	{
// 		title: '审批流使用范围',
// 		content: [
// 			'ORICO京东',
// 			'客户服务部',
// 			'客户服务部',
// 			'客户服务部',
// 			'客户服务部',
// 			'F2B211项目组',
// 			'F2B211项目组',
// 			'OPS',
// 		],
// 		isDelete: false,
// 		statuss: [],
// 		method: {},
// 		role: {},
// 		rTitle: '',
// 		isAdd: false,
// 	},
// 	{
// 		title: '单据触发审批的条件',
// 		content: [],
// 		statuss: [{ name: '单据状态 : ', status: '审核中' }],
// 		method: {},
// 		isDelete: false,
// 		rTitle: '',
// 		isAdd: false,
// 	},
// 	{
// 		title: '部门负责人审批',
// 		content: [],
// 		statuss: [],
// 		method: { name: '部门负责人审批', status: '会签' },
// 		isDelete: false,
// 		rTitle: '',
// 		isAdd: false,
// 	},
// 	{
// 		title: '指定角色',
// 		content: [],
// 		statuss: [],
// 		method: {
// 			name: '超级管理员、财务、采购、PMC、深圳教练、深圳团长、长沙教练、长沙团长、长沙人事、长沙行政、长沙财务、长沙教练审批组、长沙IT管理员',
// 			status: '会签',
// 		},
// 		isDelete: false,
// 		rTitle: '',
// 	},
// 	{
// 		title: '结束',
// 		content: [],
// 		statuss: [],
// 		method: {},
// 		isDelete: false,
// 		rTitle: '',
// 		isAdd: false,
// 	},
// ],
