1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
| 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;
| };
|
|