eoss-mobiles 0.2.28 → 0.2.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. package/lib/action-sheet.js +2 -2
  2. package/lib/calendar.js +2 -2
  3. package/lib/cascader.js +2 -2
  4. package/lib/checkbox.js +57 -32
  5. package/lib/config/api.js +8 -2
  6. package/lib/count-down.js +2 -2
  7. package/lib/eoss-mobile.common.js +1402 -150
  8. package/lib/esign.js +2 -2
  9. package/lib/flow-btn.js +2702 -0
  10. package/lib/flow-list.js +2613 -0
  11. package/lib/flow.js +62 -52
  12. package/lib/form.js +2 -2
  13. package/lib/image-preview.js +2 -2
  14. package/lib/image.js +2 -2
  15. package/lib/index.js +1 -1
  16. package/lib/notice-bar.js +2 -2
  17. package/lib/pagination.js +2 -2
  18. package/lib/picker.js +37 -27
  19. package/lib/popover.js +2 -2
  20. package/lib/popup.js +2 -2
  21. package/lib/pull-refresh.js +2 -2
  22. package/lib/radio.js +58 -35
  23. package/lib/rate.js +2 -2
  24. package/lib/retrial-auth.js +41 -31
  25. package/lib/selector.js +95 -72
  26. package/lib/skeleton.js +2 -2
  27. package/lib/stepper.js +2 -2
  28. package/lib/swipe.js +2 -2
  29. package/lib/table-column.js +37 -27
  30. package/lib/table.js +3 -2
  31. package/lib/theme-chalk/flow-btn.css +1 -0
  32. package/lib/theme-chalk/flow-list.css +1 -0
  33. package/lib/theme-chalk/index.css +1 -1
  34. package/lib/utils/util.js +1 -0
  35. package/package.json +1 -1
  36. package/packages/checkbox/src/main.vue +8 -1
  37. package/packages/flow-btn/index.js +5 -0
  38. package/packages/flow-btn/src/main.vue +475 -0
  39. package/packages/flow-list/index.js +5 -0
  40. package/packages/flow-list/src/main.vue +225 -0
  41. package/packages/radio/src/main.vue +7 -5
  42. package/packages/selector/src/selector-tree.vue +23 -10
  43. package/packages/selector/src/tree.vue +4 -6
  44. package/packages/theme-chalk/lib/flow-btn.css +1 -0
  45. package/packages/theme-chalk/lib/flow-list.css +1 -0
  46. package/packages/theme-chalk/lib/index.css +1 -1
  47. package/packages/theme-chalk/src/flow-btn.scss +94 -0
  48. package/packages/theme-chalk/src/flow-list.scss +122 -0
  49. package/packages/theme-chalk/src/index.scss +2 -0
  50. package/src/config/api.js +10 -2
  51. package/src/index.js +7 -1
  52. package/src/utils/util.js +1 -0
@@ -0,0 +1,94 @@
1
+ @import './common/var.scss';
2
+ .em-flow-btn{
3
+ .btn-list {
4
+ position: fixed;
5
+ width: 100%;
6
+ display: flex;
7
+ background-color: #fff;
8
+ padding: 10px 10px 34px 10px;
9
+ justify-content: flex-end;
10
+ flex-wrap: wrap;
11
+ align-items: center;
12
+ justify-content: space-between;
13
+ bottom: -1px;
14
+ left: 0px;
15
+ z-index: 998;
16
+ box-shadow: 0px -7px 7px -7px #ddd;
17
+ .left {
18
+ display: flex;
19
+ .item {
20
+ display: flex;
21
+ flex-direction: column;
22
+ align-items: center;
23
+ justify-content: center;
24
+ margin-right: 35px;
25
+ &:last-child {
26
+ margin-right: 0px;
27
+ }
28
+ .icon {
29
+ width: 18px;
30
+ height: auto;
31
+ }
32
+ .label {
33
+ color: #666666;
34
+ font-weight: 400;
35
+ font-size: 14px;
36
+ margin-top: 4px;
37
+ }
38
+ }
39
+ }
40
+ .right-one {
41
+ .audit {
42
+ width: 160px;
43
+ height: 40px;
44
+ line-height: 40px;
45
+ background-color:$--color-primary;
46
+ color: #fff;
47
+ border-radius: 20px;
48
+ text-align: center;
49
+ font-size: 18px;
50
+ }
51
+ }
52
+ .right-two {
53
+ display: flex;
54
+ .reject {
55
+ width: 80px;
56
+ height: 40px;
57
+ line-height: 40px;
58
+ background-color: #fff;
59
+ color:$--color-primary;
60
+ text-align: center;
61
+ border: 1px solid $--color-primary;
62
+ font-size: 18px;
63
+ border-radius: 20px 0px 0px 20px;
64
+ }
65
+ .audit {
66
+ width: 80px;
67
+ height: 40px;
68
+ line-height: 40px;
69
+ background-color:$--color-primary;
70
+ color: #fff;
71
+ border: 1px solid $--color-primary;
72
+ border-radius: 0px 20px 20px 0px;
73
+ text-align: center;
74
+ font-size: 18px;
75
+ }
76
+ }
77
+ }
78
+
79
+ .btn-list-1 {
80
+ justify-content: flex-end;
81
+ }
82
+ .more-list {
83
+ position: fixed;
84
+ background-color: #fff;
85
+ width: 100%;
86
+ bottom: 83px;
87
+ color: #999999;
88
+ padding: 10px;
89
+ .item {
90
+ padding: 10px;
91
+ border-bottom: 1px solid #999999;
92
+ }
93
+ }
94
+ }
@@ -0,0 +1,122 @@
1
+ @import './common/var.scss';
2
+ .em-flow-list {
3
+ width: 100%;
4
+ background-color: #fff;
5
+
6
+ .list {
7
+ padding: 32px 16px 0px 16px;
8
+
9
+ .item {
10
+ margin-left: 16px;
11
+ position: relative;
12
+ border-left: 1px solid #eeeeee;
13
+ padding: 10px 0px;
14
+ margin: 10px 0px;
15
+ .icon-gou {
16
+ position: absolute;
17
+ top: -15px;
18
+ left: -8px;
19
+ color: $--color-primary;
20
+ }
21
+ .process-pending {
22
+ position: absolute;
23
+ top: -15px;
24
+ left: -8.5px;
25
+ width: 16px;
26
+ height: 16px;
27
+ border-radius: 50%;
28
+ background: rgba( $--color-primary, 0.1);
29
+ display: flex;
30
+ align-items: center;
31
+ justify-content: center;
32
+ .process-pending-yuan {
33
+ display: inline-block;
34
+ width: 6px;
35
+ height: 6px;
36
+ border-radius: 50%;
37
+ background: $--color-primary;
38
+ }
39
+ }
40
+ &:last-child {
41
+ border-left-color: transparent;
42
+ height: auto;
43
+ }
44
+ .icon-finish {
45
+ width: 16px;
46
+ height: auto;
47
+ position: relative;
48
+ left: -8px;
49
+ }
50
+ .icon-ing {
51
+ width: 34px;
52
+ height: auto;
53
+ position: relative;
54
+ left: -14px;
55
+ }
56
+ .item-box {
57
+ padding-left: 29px;
58
+ width: 100%;
59
+ // position: relative;
60
+
61
+ // top: -34px;
62
+ .one {
63
+ display: flex;
64
+ justify-content: space-between;
65
+ align-items: center;
66
+ // width: 100%;
67
+ position: absolute;
68
+ top: -18px;
69
+ .label {
70
+ font-size: 14px;
71
+ font-family: PingFang SC;
72
+ font-weight: 400;
73
+ color: #666666;
74
+ }
75
+ .time {
76
+ font-size: 12px;
77
+ font-family: PingFang SC;
78
+ font-weight: 400;
79
+ color: #999999;
80
+ }
81
+ }
82
+ .two {
83
+ font-size: 16px;
84
+ font-family: PingFang SC;
85
+ font-weight: 400;
86
+ color: #333333;
87
+ padding-bottom: 10px;
88
+ border-bottom: 1px solid #eeeeee;
89
+ }
90
+ .tree {
91
+ display: flex;
92
+ justify-content: space-between;
93
+ font-size: 12px;
94
+ font-family: PingFang SC;
95
+ color: #999999;
96
+ line-height: 16px;
97
+ margin-bottom: 16px;
98
+ margin-top: 10px;
99
+ }
100
+ }
101
+
102
+ .time {
103
+ text-align: right;
104
+ color: #333;
105
+ font-size: 13px;
106
+ padding-top: 10px;
107
+ height: 16px;
108
+ line-height: 15px;
109
+ }
110
+ }
111
+ .success-icon {
112
+ border-left-color: $--color-primary;
113
+ }
114
+ }
115
+ .more{
116
+ color: $--color-primary;
117
+ }
118
+ .custom-image .van-empty__image {
119
+ width: 90px;
120
+ height: 90px;
121
+ }
122
+ }
@@ -23,6 +23,8 @@
23
23
  @import "./nav-bar.scss";
24
24
  @import "./list.scss";
25
25
  @import "./flow.scss";
26
+ @import "./flow-list.scss";
27
+ @import "./flow-btn.scss";
26
28
  @import "./popover.scss";
27
29
  @import "./checkbox.scss";
28
30
  @import "./calendar.scss";
package/src/config/api.js CHANGED
@@ -4,7 +4,7 @@ var pending = '/bpm';
4
4
  var mecp = $.getStorage('flowPath') || '';
5
5
  export const initRetrialAuth = '/sso2/retrialAuth/initRetrialAuth'; // 初始化二级身份权限验证页面
6
6
  export const getRetrialAuthCode = '/sso2/retrialAuth/getRetrialAuthCode'; // 获取二级身份验证验证码
7
- export const codeRetrialAuth = '/sso2/retrialAuth/codeRetrialAuth';// 二级身份验证-验证码验证
7
+ export const codeRetrialAuth = '/sso2/retrialAuth/codeRetrialAuth'; // 二级身份验证-验证码验证
8
8
  // 获取机构/用户/角色/群组等选择器
9
9
  export const selectObject = '/api/v1/mecpSys/selectObject.json';
10
10
  // // 获取代码表数据
@@ -25,7 +25,8 @@ export const getNodeInfoHtml = pending + '/task/taskHandle/getNodeInfo.dhtml';
25
25
  // 提交办理(为H5提供接口)
26
26
  // export const taskHandleHtml = '/api/mecp/v1/mecpItask/taskHandleHtml.json';
27
27
  export const taskHandleHtml = pending + '/task/taskHandle/taskHandle.dhtml';
28
- export const taskHandleHtmlImg = pending + '/task/taskHandle/taskHandleWithHandwrittenOpinion.dhtml';
28
+ export const taskHandleHtmlImg =
29
+ pending + '/task/taskHandle/taskHandleWithHandwrittenOpinion.dhtml';
29
30
 
30
31
  // 发起流程
31
32
  export const registerNew = '/api/v1/mecpItask/registerNew.json';
@@ -93,3 +94,10 @@ export const twoOfficesDispatch =
93
94
  // 是否允许启动子流程(必经节点)
94
95
  export const isCanStartSubFlow =
95
96
  activiti + '/task/taskHandle/isCanStartSubFlow.dhtml';
97
+ // 流程列表
98
+ export const pendedhistoryList = '/api/v1/mecpIpending/pendedhistoryList.json';
99
+ // 获取流程按钮
100
+ export const getHandleButtonHtml =
101
+ '/api/mecp/v1/mecpItask/getHandleButtonHtml.json';
102
+ // 获取系统参数
103
+ export const getSysParam = '/api/v1/mecpSys/getSysParam.json';
package/src/index.js CHANGED
@@ -24,6 +24,8 @@ import Tag from '../packages/tag/index.js';
24
24
  import NavBar from '../packages/nav-bar/index.js';
25
25
  import List from '../packages/list/index.js';
26
26
  import Flow from '../packages/flow/index.js';
27
+ import FlowList from '../packages/flow-list/index.js';
28
+ import FlowBtn from '../packages/flow-btn/index.js';
27
29
  import Popover from '../packages/popover/index.js';
28
30
  import Checkbox from '../packages/checkbox/index.js';
29
31
  import Calendar from '../packages/calendar/index.js';
@@ -69,6 +71,8 @@ const components = [
69
71
  NavBar,
70
72
  List,
71
73
  Flow,
74
+ FlowList,
75
+ FlowBtn,
72
76
  Popover,
73
77
  Checkbox,
74
78
  Calendar,
@@ -101,7 +105,7 @@ if (typeof window !== 'undefined' && window.Vue) {
101
105
  }
102
106
 
103
107
  export default {
104
- version: '0.2.28',
108
+ version: '0.2.30',
105
109
  install,
106
110
  Button,
107
111
  ButtonGroup,
@@ -126,6 +130,8 @@ export default {
126
130
  NavBar,
127
131
  List,
128
132
  Flow,
133
+ FlowList,
134
+ FlowBtn,
129
135
  Popover,
130
136
  Checkbox,
131
137
  Calendar,
package/src/utils/util.js CHANGED
@@ -597,6 +597,7 @@ const formatDate = function(date, fmt) {
597
597
  'q+': quarter[Math.ceil((obj.getMonth() + 1) / 3) - 1], // 季度
598
598
  S: obj.getMilliseconds() // 毫秒
599
599
  };
600
+ console.log(o, 'o');
600
601
  if (/(y+)/.test(fmt)) {
601
602
  fmt = fmt.replace(
602
603
  RegExp.$1,