import { MessageBox } from 'element-ui' // 产品类型 export const flownos = { // 案场 CreditFlowCase: 'CreditFlowCase', // 非案场 CreditFlowCommon: 'CreditFlowCommon', // 抵押 MortgageFlow: 'MortgageFlow', // 赎楼/快贷 BuildingBusinessFlow: 'BuildingBusinessFlow', // 招标贷 ZBDCreditFlow: 'ZBDCreditFlow', // 保理 CreditFlowPublic:'CreditFlowPublic', // 招标贷企业修改 ZBDEntInfoAlterFlow: 'ZBDEntInfoAlterFlow' } // 产品类型 export const objectTypes = { // 案场 CreditApplyCase: 'CreditApplyCase', // 非案场 CreditApplyCommon: 'CreditApplyCommon', // 抵押 MortgageApply: 'MortgageApply', // 赎楼 BuildingBusinessApply: 'BuildingBusinessApply' } // 定义主题颜色 export const colors = { // 已完成 done: '#67C23A', // 当前节点 current: '#409EFF', // 未完成 info: '#909399', waring: '#E6A23C', danger: '#F56C6C' } // 定义comfirm样式 export const comfirm = (title,content,callback) => { MessageBox.confirm(content, title, { confirmButtonText: '是', cancelButtonText: '否', center: true }).then(() => { callback(); }).catch(() => {}); } // 自定义alert样式 export const alert = (title,content,func) => { MessageBox.alert(content, title, { confirmButtonText: '确定', center: true, callback: action => { func() } }); } //金额变为数字 export const setMoneyToValue = (value) => { let normalValue value ? (normalValue = parseFloat(value.toString().replace(/,/g, ""))) : (normalValue = 0); return normalValue; };