eoss-mobiles 0.3.20 → 0.3.21
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.
- package/lib/button-group.js +2 -2
- package/lib/button.js +2 -2
- package/lib/cell.js +2 -2
- package/lib/checkbox.js +59 -48
- package/lib/circle.js +2 -2
- package/lib/config/api.js +11 -3
- package/lib/empty.js +2 -2
- package/lib/eoss-mobile.common.js +643 -76
- package/lib/field.js +2 -2
- package/lib/flow-btn.js +60 -49
- package/lib/flow-list.js +687 -117
- package/lib/flow.js +149 -143
- package/lib/grid-item.js +2 -2
- package/lib/grid.js +2 -2
- package/lib/index.js +1 -1
- package/lib/list.js +2 -2
- package/lib/loading.js +2 -2
- package/lib/nav-bar.js +2 -2
- package/lib/picker.js +62 -50
- package/lib/radio.js +62 -50
- package/lib/retrial-auth.js +61 -50
- package/lib/search.js +2 -2
- package/lib/selector.js +77 -66
- package/lib/switch.js +2 -2
- package/lib/tab.js +2 -2
- package/lib/table-column.js +62 -50
- package/lib/tabs.js +2 -2
- package/lib/tag.js +2 -2
- package/lib/theme-chalk/flow-list-task-read.css +1 -0
- package/lib/theme-chalk/flow-list.css +1 -1
- package/lib/theme-chalk/flow.css +1 -1
- package/lib/theme-chalk/index.css +1 -1
- package/lib/uploader.js +2 -2
- package/package.json +1 -1
- package/packages/flow/src/components/Message.vue +7 -3
- package/packages/flow/src/components/supervise.vue +72 -64
- package/packages/flow-list/src/main.vue +42 -23
- package/packages/flow-list/src/taskRead.vue +234 -0
- package/packages/theme-chalk/lib/flow-list-task-read.css +1 -0
- package/packages/theme-chalk/lib/flow-list.css +1 -1
- package/packages/theme-chalk/lib/flow.css +1 -1
- package/packages/theme-chalk/lib/index.css +1 -1
- package/packages/theme-chalk/src/flow-list-task-read.scss +112 -0
- package/packages/theme-chalk/src/flow-list.scss +2 -2
- package/packages/theme-chalk/src/flow.scss +5 -0
- package/src/config/api.js +13 -2
- package/src/index.js +1 -1
package/lib/uploader.js
CHANGED
|
@@ -82,7 +82,7 @@ module.exports =
|
|
|
82
82
|
/******/
|
|
83
83
|
/******/
|
|
84
84
|
/******/ // Load entry module and return exports
|
|
85
|
-
/******/ return __webpack_require__(__webpack_require__.s =
|
|
85
|
+
/******/ return __webpack_require__(__webpack_require__.s = 26);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -192,7 +192,7 @@ function normalizeComponent(
|
|
|
192
192
|
|
|
193
193
|
/***/ }),
|
|
194
194
|
|
|
195
|
-
/***/
|
|
195
|
+
/***/ 26:
|
|
196
196
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
197
197
|
|
|
198
198
|
"use strict";
|
package/package.json
CHANGED
|
@@ -79,6 +79,10 @@ export default {
|
|
|
79
79
|
type: Boolean,
|
|
80
80
|
default: true
|
|
81
81
|
},
|
|
82
|
+
showCheckType: {
|
|
83
|
+
type: Boolean,
|
|
84
|
+
default: true
|
|
85
|
+
},
|
|
82
86
|
baseUrl: String,
|
|
83
87
|
userId: {
|
|
84
88
|
type: String,
|
|
@@ -142,7 +146,7 @@ export default {
|
|
|
142
146
|
});
|
|
143
147
|
});
|
|
144
148
|
this.form.notificationType = JSON.parse(JSON.stringify(arr));
|
|
145
|
-
this.showCheck =
|
|
149
|
+
this.showCheck = this.showCheckType
|
|
146
150
|
// this.$emit('onInputMsg', this.form);
|
|
147
151
|
}
|
|
148
152
|
|
|
@@ -177,10 +181,10 @@ export default {
|
|
|
177
181
|
});
|
|
178
182
|
});
|
|
179
183
|
this.form.notificationType = arr;
|
|
180
|
-
this.showCheck =
|
|
184
|
+
this.showCheck = this.showCheckType
|
|
181
185
|
this.$emit('onInputMsg', this.form);
|
|
182
186
|
}else if(this.onlyShowType){
|
|
183
|
-
this.showCheck =
|
|
187
|
+
this.showCheck = this.showCheckType
|
|
184
188
|
}
|
|
185
189
|
} else {
|
|
186
190
|
this.$toast(message);
|
|
@@ -1,21 +1,30 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="flow-supervise">
|
|
3
|
-
<em-input v-model="form.pendTitle" label-width="90" label="标题" readonly />
|
|
3
|
+
<!-- <em-input v-model="form.pendTitle" label-width="90" label="标题" readonly />
|
|
4
4
|
<em-input v-model="form.currentHandleNode" label-width="90" label="当前办理节点" readonly />
|
|
5
|
-
<em-input v-model="form.pendingUserNames" label-width="90" label="当前办理人" readonly />
|
|
5
|
+
<em-input v-model="form.pendingUserNames" label-width="90" label="当前办理人" readonly /> -->
|
|
6
6
|
<Message
|
|
7
7
|
ref="message"
|
|
8
8
|
:code="'notification_type'"
|
|
9
9
|
:baseUrl="baseUrl"
|
|
10
|
+
:showCheckType="false"
|
|
10
11
|
:showMsg="true"
|
|
12
|
+
label=""
|
|
11
13
|
:defaultNotificationType="form.noticeType"
|
|
12
14
|
:defaultNotificationMsg="form.notifyMessage"
|
|
13
15
|
onlyShowType
|
|
14
16
|
@onInputMsg="onInputMsg"
|
|
15
17
|
></Message>
|
|
18
|
+
<em-flow-list
|
|
19
|
+
style="flex: 1; overflow-y: auto"
|
|
20
|
+
type="4"
|
|
21
|
+
ref="flowList"
|
|
22
|
+
businessId="7358f2ba425d49018e13386eb987cd45"
|
|
23
|
+
:show-btn="false"
|
|
24
|
+
/>
|
|
16
25
|
<div class="btn-list">
|
|
17
26
|
<div class="btn" @click="goBack">取消</div>
|
|
18
|
-
<div class="btn" @click="onSubmit"
|
|
27
|
+
<div class="btn" @click="onSubmit">发送</div>
|
|
19
28
|
</div>
|
|
20
29
|
</div>
|
|
21
30
|
</template>
|
|
@@ -23,16 +32,16 @@
|
|
|
23
32
|
<script>
|
|
24
33
|
import Message from './Message.vue';
|
|
25
34
|
import {
|
|
26
|
-
|
|
27
|
-
|
|
35
|
+
toTaskSupervise,
|
|
36
|
+
toTaskSuperviseSub
|
|
28
37
|
} from '../../../../src/config/api';
|
|
29
38
|
import request from '../../../../src/utils/http.js';
|
|
30
39
|
import util from '../../../../src/utils/util.js';
|
|
31
40
|
export default {
|
|
32
41
|
components: { Message },
|
|
33
|
-
props: {
|
|
42
|
+
props: {
|
|
34
43
|
baseUrl: String,
|
|
35
|
-
businessId:String
|
|
44
|
+
businessId: String
|
|
36
45
|
},
|
|
37
46
|
data() {
|
|
38
47
|
return {
|
|
@@ -45,74 +54,73 @@ export default {
|
|
|
45
54
|
this.getFlowInfo();
|
|
46
55
|
},
|
|
47
56
|
methods: {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
}
|
|
57
|
+
onSubmit() {
|
|
58
|
+
console.log('点击了提交');
|
|
59
|
+
let selectInfo = this.$refs.flowList.$children[0].selectedData;
|
|
60
|
+
if(selectInfo.length == 0) return this.$toast('请选择需要督办的流程');
|
|
61
|
+
console.log(selectInfo)
|
|
62
|
+
return;
|
|
63
|
+
if (!this.form.notificationMsg) {
|
|
64
|
+
this.$toast('请填写通知消息内容');
|
|
65
|
+
return;
|
|
66
|
+
}
|
|
67
|
+
let { noticeType, notificationMsg, pendingUserIds } = this.form;
|
|
68
|
+
let params = {
|
|
69
|
+
url: toTaskSuperviseSub,
|
|
70
|
+
params: {
|
|
71
|
+
userId: util.getStorage('userId'),
|
|
72
|
+
urgeUserIds: pendingUserIds,
|
|
73
|
+
notificationType: noticeType,
|
|
74
|
+
notificationMessage: notificationMsg,
|
|
75
|
+
businessId: this.businessId
|
|
68
76
|
}
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
77
|
+
};
|
|
78
|
+
this.$toast.loading({
|
|
79
|
+
duration: 0,
|
|
80
|
+
forbidClick: true,
|
|
81
|
+
message: '提交中...'
|
|
82
|
+
});
|
|
83
|
+
request(params).then((res) => {
|
|
84
|
+
this.$toast.clear();
|
|
85
|
+
if (res.rCode == 0 || res.status == 'success') {
|
|
86
|
+
this.$toast('提交成功');
|
|
87
|
+
this.$parent.$emit('success');
|
|
88
|
+
} else {
|
|
89
|
+
this.$message.error(res.message || '系统错误,请联系管理员!');
|
|
81
90
|
}
|
|
82
|
-
|
|
91
|
+
});
|
|
83
92
|
},
|
|
84
93
|
goBack() {
|
|
85
94
|
this.$parent.$emit('close');
|
|
86
95
|
},
|
|
87
96
|
getFlowInfo() {
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
97
|
+
this.$toast.loading({
|
|
98
|
+
duration: 0,
|
|
99
|
+
forbidClick: true,
|
|
100
|
+
message: '加载中...'
|
|
101
|
+
});
|
|
93
102
|
request({
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
.
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
});
|
|
103
|
+
url: toTaskSupervise,
|
|
104
|
+
params: {
|
|
105
|
+
businessId: this.businessId,
|
|
106
|
+
userId: util.getStorage('userId')
|
|
107
|
+
}
|
|
108
|
+
}).then((res) => {
|
|
109
|
+
this.$toast.clear();
|
|
110
|
+
if (res.rCode == 0) {
|
|
111
|
+
this.form = res.results;
|
|
112
|
+
this.form.noticeType = res.results.defaultNotificationType.split(',');
|
|
113
|
+
} else {
|
|
114
|
+
this.$toast(res.msg);
|
|
115
|
+
this.goBack();
|
|
116
|
+
}
|
|
117
|
+
});
|
|
110
118
|
},
|
|
111
|
-
|
|
119
|
+
// 通知消息回调
|
|
112
120
|
onInputMsg(obj) {
|
|
113
121
|
this.form.noticeType = obj.notificationType.join(',');
|
|
114
122
|
this.form.notificationMsg = obj.notificationMsg;
|
|
115
|
-
}
|
|
116
|
-
}
|
|
123
|
+
}
|
|
124
|
+
}
|
|
117
125
|
};
|
|
118
126
|
</script>
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div
|
|
3
|
-
|
|
2
|
+
<div
|
|
3
|
+
class="em-flow-list"
|
|
4
|
+
:style="`background:${type == '3' ? 'unset' : '#fff'}`"
|
|
5
|
+
>
|
|
6
|
+
<TaskRead v-if="type == '3' || type == '4'" :businessId="businessId" :type="type" v-bind="$attrs" />
|
|
7
|
+
<div v-else-if="isgw && processList.length > 0" class="list">
|
|
4
8
|
<div
|
|
5
9
|
v-for="(item, index) in processList"
|
|
6
10
|
:key="index"
|
|
@@ -16,7 +20,11 @@
|
|
|
16
20
|
串行会签预备("串行会签预备", 5),
|
|
17
21
|
自动办理("自动办理", 6); -->
|
|
18
22
|
<i class="iconfont icon-gou" v-if="item.flowList.length > 0" />
|
|
19
|
-
<div
|
|
23
|
+
<div
|
|
24
|
+
v-else
|
|
25
|
+
class="process-pending"
|
|
26
|
+
:style="` background: rgba( ${rgbColor}, 0.1)`"
|
|
27
|
+
>
|
|
20
28
|
<i class="process-pending-yuan" />
|
|
21
29
|
</div>
|
|
22
30
|
<div class="item-box">
|
|
@@ -33,20 +41,20 @@
|
|
|
33
41
|
>
|
|
34
42
|
<div class="two">
|
|
35
43
|
<img
|
|
36
|
-
style="width:100px;height:100px"
|
|
44
|
+
style="width: 100px; height: 100px"
|
|
37
45
|
v-if="x.doresult && x.doresult.startsWith('http')"
|
|
38
46
|
:src="x.doresult"
|
|
39
47
|
alt=""
|
|
40
48
|
/>
|
|
41
49
|
<span v-else>{{ x.doresult }}</span>
|
|
42
|
-
<span v-if="x.handleInfo" style="color
|
|
50
|
+
<span v-if="x.handleInfo" style="color: #adada5">{{
|
|
43
51
|
(x.doresult ? '&' : '') + x.handleInfo
|
|
44
52
|
}}</span>
|
|
45
53
|
</div>
|
|
46
54
|
<div class="tree">
|
|
47
|
-
<div style="display:flex;align-items:center">
|
|
55
|
+
<div style="display: flex; align-items: center">
|
|
48
56
|
<span>{{ x.userName }}</span>
|
|
49
|
-
<span style="margin-left:10px">{{
|
|
57
|
+
<span style="margin-left: 10px">{{
|
|
50
58
|
x.createtime | transformTimestamp
|
|
51
59
|
}}</span>
|
|
52
60
|
</div>
|
|
@@ -68,7 +76,7 @@
|
|
|
68
76
|
<span
|
|
69
77
|
v-if="item.flowList.length > 2"
|
|
70
78
|
class="more"
|
|
71
|
-
style="display:inline-block;width: 100%;text-align: center
|
|
79
|
+
style="display: inline-block; width: 100%; text-align: center"
|
|
72
80
|
@click="changeMore(index)"
|
|
73
81
|
>{{ item.showMore ? '收起' : '展示更多' }}</span
|
|
74
82
|
>
|
|
@@ -94,7 +102,11 @@
|
|
|
94
102
|
class="iconfont icon-gou"
|
|
95
103
|
v-if="item.pendstate == 2 || item.pendstate == 6"
|
|
96
104
|
/>
|
|
97
|
-
<div
|
|
105
|
+
<div
|
|
106
|
+
v-else
|
|
107
|
+
class="process-pending"
|
|
108
|
+
:style="` background: rgba( ${rgbColor}, 0.1)`"
|
|
109
|
+
>
|
|
98
110
|
<i class="process-pending-yuan" />
|
|
99
111
|
</div>
|
|
100
112
|
<div class="item-box">
|
|
@@ -105,20 +117,20 @@
|
|
|
105
117
|
</div>
|
|
106
118
|
<div class="two">
|
|
107
119
|
<img
|
|
108
|
-
style="width:100px;height:100px"
|
|
120
|
+
style="width: 100px; height: 100px"
|
|
109
121
|
v-if="item.isImageOpinion == 1"
|
|
110
122
|
:src="item.doresult"
|
|
111
123
|
alt=""
|
|
112
124
|
/>
|
|
113
125
|
<span v-else>{{ item.doresult }}</span>
|
|
114
|
-
<span v-if="item.handleInfo" style="color
|
|
126
|
+
<span v-if="item.handleInfo" style="color: #adada5">{{
|
|
115
127
|
(item.doresult ? '&' : '') + item.handleInfo
|
|
116
128
|
}}</span>
|
|
117
129
|
</div>
|
|
118
130
|
<div class="tree">
|
|
119
|
-
<div style="display:flex;align-items:center">
|
|
131
|
+
<div style="display: flex; align-items: center">
|
|
120
132
|
<span>{{ item.userid }}</span>
|
|
121
|
-
<span style="margin-left:10px">{{
|
|
133
|
+
<span style="margin-left: 10px">{{
|
|
122
134
|
item.createTime | transformTimestamp
|
|
123
135
|
}}</span>
|
|
124
136
|
</div>
|
|
@@ -154,6 +166,7 @@
|
|
|
154
166
|
<script>
|
|
155
167
|
import { pendedhistoryList } from '../../../src/config/api.js';
|
|
156
168
|
import request from '../../../src/utils/http.js';
|
|
169
|
+
import TaskRead from './taskRead.vue';
|
|
157
170
|
import $ from '../../../src/utils/util';
|
|
158
171
|
export default {
|
|
159
172
|
name: 'EmFlowList',
|
|
@@ -161,7 +174,7 @@ export default {
|
|
|
161
174
|
businessId: {
|
|
162
175
|
type: String,
|
|
163
176
|
default: ''
|
|
164
|
-
},
|
|
177
|
+
},
|
|
165
178
|
type: {
|
|
166
179
|
type: String,
|
|
167
180
|
default: '0'
|
|
@@ -175,6 +188,9 @@ export default {
|
|
|
175
188
|
default: false
|
|
176
189
|
}
|
|
177
190
|
},
|
|
191
|
+
components: {
|
|
192
|
+
TaskRead
|
|
193
|
+
},
|
|
178
194
|
filters: {
|
|
179
195
|
transformTimestamp(val) {
|
|
180
196
|
return $.formatDate(Number(val), 'yyyy-MM-dd');
|
|
@@ -183,16 +199,19 @@ export default {
|
|
|
183
199
|
data() {
|
|
184
200
|
return {
|
|
185
201
|
processList: [],
|
|
186
|
-
rgbColor:''
|
|
202
|
+
rgbColor: ''
|
|
187
203
|
};
|
|
188
204
|
},
|
|
189
|
-
mounted(){
|
|
190
|
-
|
|
191
|
-
|
|
205
|
+
mounted() {
|
|
206
|
+
let bgColor =
|
|
207
|
+
document.documentElement.style.getPropertyValue('--theme-primary') ||
|
|
208
|
+
'#12278B';
|
|
209
|
+
this.rgbColor = $.getRgb(bgColor).join(',');
|
|
192
210
|
},
|
|
193
211
|
watch: {
|
|
194
212
|
businessId: {
|
|
195
213
|
handler(val) {
|
|
214
|
+
if (this.type == 3 || this.type == 4) return;
|
|
196
215
|
if (val && this.data.length === 0) {
|
|
197
216
|
this.getFlowList(val);
|
|
198
217
|
} else {
|
|
@@ -211,12 +230,12 @@ export default {
|
|
|
211
230
|
type: 'post',
|
|
212
231
|
params: {
|
|
213
232
|
type: this.type,
|
|
214
|
-
apprecordId
|
|
233
|
+
apprecordid: apprecordId
|
|
215
234
|
}
|
|
216
|
-
}).then(res => {
|
|
217
|
-
const {
|
|
218
|
-
if (
|
|
219
|
-
this.processList =
|
|
235
|
+
}).then((res) => {
|
|
236
|
+
const { status, data } = res;
|
|
237
|
+
if (status == 'success') {
|
|
238
|
+
this.processList = this.type == '0'? data.wfHistoryList : data.fyHistoryList;
|
|
220
239
|
} else {
|
|
221
240
|
this.$toast(msg);
|
|
222
241
|
}
|
|
@@ -0,0 +1,234 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="process-page">
|
|
3
|
+
<div class="main">
|
|
4
|
+
<div v-if="type == 4" class="box">
|
|
5
|
+
<div class="title">
|
|
6
|
+
流程列表
|
|
7
|
+
<div
|
|
8
|
+
class="check-btn"
|
|
9
|
+
v-if="handleUserList.length"
|
|
10
|
+
@click="handleToggel"
|
|
11
|
+
>
|
|
12
|
+
<van-checkbox v-model="isSelectAll">全选</van-checkbox>
|
|
13
|
+
</div>
|
|
14
|
+
</div>
|
|
15
|
+
<div v-if="isLoad && !handleUserList.length" class="no-data">
|
|
16
|
+
暂无数据
|
|
17
|
+
</div>
|
|
18
|
+
<div class="list-area">
|
|
19
|
+
<van-checkbox-group
|
|
20
|
+
v-model="selectedIds"
|
|
21
|
+
@change="handleSelectChange"
|
|
22
|
+
>
|
|
23
|
+
<van-checkbox
|
|
24
|
+
v-for="(item, index) in handleUserList"
|
|
25
|
+
:key="index"
|
|
26
|
+
:name="item.id"
|
|
27
|
+
class="list-item"
|
|
28
|
+
>
|
|
29
|
+
<p class="name-area">
|
|
30
|
+
<span class="handle-name-flow">{{ item.userName }}</span>
|
|
31
|
+
<span class="user-name-flow">{{ item.itemname }}</span>
|
|
32
|
+
<span :class="`handle-status ${item.pendstate == 1?'success' : ''}`">{{ item.querykeywords }}</span>
|
|
33
|
+
</p>
|
|
34
|
+
<p class="time">{{ item.createtime }}</p>
|
|
35
|
+
</van-checkbox>
|
|
36
|
+
</van-checkbox-group>
|
|
37
|
+
</div>
|
|
38
|
+
</div>
|
|
39
|
+
<div v-if="type == 3" class="box">
|
|
40
|
+
<div class="title">
|
|
41
|
+
未处理分阅列表
|
|
42
|
+
<div
|
|
43
|
+
class="check-btn"
|
|
44
|
+
v-if="handleUserList.length"
|
|
45
|
+
@click="handleToggel"
|
|
46
|
+
>
|
|
47
|
+
<van-checkbox v-model="isSelectAll">全选</van-checkbox>
|
|
48
|
+
</div>
|
|
49
|
+
</div>
|
|
50
|
+
<div v-if="isLoad && !handleUserList.length" class="no-data">
|
|
51
|
+
暂无数据
|
|
52
|
+
</div>
|
|
53
|
+
<div class="list-area">
|
|
54
|
+
<van-checkbox-group
|
|
55
|
+
v-model="selectedIds"
|
|
56
|
+
@change="handleSelectChange"
|
|
57
|
+
>
|
|
58
|
+
<van-checkbox
|
|
59
|
+
v-for="(item, index) in handleUserList"
|
|
60
|
+
:key="index"
|
|
61
|
+
:name="item.id"
|
|
62
|
+
class="list-item"
|
|
63
|
+
>
|
|
64
|
+
<p class="name-area">
|
|
65
|
+
<span class="user-name">{{ item.itemname }}</span>
|
|
66
|
+
<span class="handle-name">{{ item.userName }}</span>
|
|
67
|
+
<span class="handle-status">{{ item.pendstate }}</span>
|
|
68
|
+
</p>
|
|
69
|
+
<p class="time">创建时间:{{ item.createtime }}</p>
|
|
70
|
+
</van-checkbox>
|
|
71
|
+
</van-checkbox-group>
|
|
72
|
+
</div>
|
|
73
|
+
</div>
|
|
74
|
+
<div v-if="type == 3" class="box" style="margin-top: 12px">
|
|
75
|
+
<div class="title">已处理分阅列表</div>
|
|
76
|
+
<div v-if="isLoad && !hadDoUserList.length" class="no-data">
|
|
77
|
+
暂无数据
|
|
78
|
+
</div>
|
|
79
|
+
<div class="list-area list-area2">
|
|
80
|
+
<div
|
|
81
|
+
v-for="(item, index) in hadDoUserList"
|
|
82
|
+
:key="index"
|
|
83
|
+
class="list-item list-item2"
|
|
84
|
+
>
|
|
85
|
+
<p class="name-area">
|
|
86
|
+
<span class="user-name">{{ item.itemname }}</span>
|
|
87
|
+
<span class="handle-name">{{ item.userName }}</span>
|
|
88
|
+
<span class="handle-status success">已办理</span>
|
|
89
|
+
</p>
|
|
90
|
+
<p class="time">办理时间:{{ item.doendtime || item.doetime }}</p>
|
|
91
|
+
<p class="time">代办人:{{ item.doUserName || item.doetime }}</p>
|
|
92
|
+
<p class="time">意见:{{ item.doresult }}</p>
|
|
93
|
+
</div>
|
|
94
|
+
</div>
|
|
95
|
+
</div>
|
|
96
|
+
</div>
|
|
97
|
+
<div class="btn-area" v-if="showBtn">
|
|
98
|
+
<van-button round class="btn" @click="handleClose">取消</van-button>
|
|
99
|
+
<van-button type="primary" round class="btn" @click="handleConfirm"
|
|
100
|
+
>撤销分阅</van-button
|
|
101
|
+
>
|
|
102
|
+
</div>
|
|
103
|
+
</div>
|
|
104
|
+
</template>
|
|
105
|
+
|
|
106
|
+
<script>
|
|
107
|
+
import {
|
|
108
|
+
taskReadList,
|
|
109
|
+
cancelTaskRead,
|
|
110
|
+
pendedhistoryList
|
|
111
|
+
} from '../../../src/config/api.js';
|
|
112
|
+
import request from '../../../src/utils/http.js';
|
|
113
|
+
export default {
|
|
114
|
+
props: {
|
|
115
|
+
businessId: {
|
|
116
|
+
type: String,
|
|
117
|
+
default: ''
|
|
118
|
+
},
|
|
119
|
+
type: {
|
|
120
|
+
type: String,
|
|
121
|
+
default: '3'
|
|
122
|
+
},
|
|
123
|
+
showBtn:{
|
|
124
|
+
type: Boolean,
|
|
125
|
+
default: true
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
data() {
|
|
129
|
+
return {
|
|
130
|
+
isLoad: false,
|
|
131
|
+
hadDoUserList: [],
|
|
132
|
+
handleUserList: [],
|
|
133
|
+
isSelectAll: false,
|
|
134
|
+
selectedIds: [],
|
|
135
|
+
selectedData: [],
|
|
136
|
+
};
|
|
137
|
+
},
|
|
138
|
+
mounted() {
|
|
139
|
+
if (this.type == 3) {
|
|
140
|
+
this.getReadData(1);
|
|
141
|
+
this.getReadData(2);
|
|
142
|
+
} else if (this.type == 4) {
|
|
143
|
+
this.getpendedhistoryList();
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
methods: {
|
|
147
|
+
getpendedhistoryList() {
|
|
148
|
+
request({
|
|
149
|
+
url: pendedhistoryList,
|
|
150
|
+
type: 'post',
|
|
151
|
+
params: {
|
|
152
|
+
type: 0,
|
|
153
|
+
apprecordid: this.businessId
|
|
154
|
+
}
|
|
155
|
+
}).then((res) => {
|
|
156
|
+
const { status, data } = res;
|
|
157
|
+
if (status == 'success') {
|
|
158
|
+
this.handleUserList = data.wfHistoryList.filter(x => x.pendstate == 0 || x.pendstate == 1);
|
|
159
|
+
} else {
|
|
160
|
+
this.$toast(msg);
|
|
161
|
+
}
|
|
162
|
+
});
|
|
163
|
+
},
|
|
164
|
+
getReadData(status) {
|
|
165
|
+
request({
|
|
166
|
+
url: taskReadList,
|
|
167
|
+
params: {
|
|
168
|
+
appRecordId: this.businessId,
|
|
169
|
+
status
|
|
170
|
+
}
|
|
171
|
+
}).then((res) => {
|
|
172
|
+
this.isLoad = true;
|
|
173
|
+
if (status == 1) {
|
|
174
|
+
this.handleUserList = res.data || [];
|
|
175
|
+
} else {
|
|
176
|
+
this.hadDoUserList = res.data || [];
|
|
177
|
+
}
|
|
178
|
+
});
|
|
179
|
+
},
|
|
180
|
+
handleConfirm() {
|
|
181
|
+
if (!this.selectedIds.length) {
|
|
182
|
+
this.$toast('请选择需要撤销的分阅数据!');
|
|
183
|
+
return;
|
|
184
|
+
}
|
|
185
|
+
this.$toast.loading({
|
|
186
|
+
message: '提交中...',
|
|
187
|
+
forbidClick: true,
|
|
188
|
+
loadingType: 'spinner',
|
|
189
|
+
overlay: true,
|
|
190
|
+
duration: 0
|
|
191
|
+
});
|
|
192
|
+
request({
|
|
193
|
+
url: cancelTaskRead,
|
|
194
|
+
params: {
|
|
195
|
+
appRecordId: this.businessId,
|
|
196
|
+
pendingIds: this.selectedIds.join(',')
|
|
197
|
+
}
|
|
198
|
+
}).then((res) => {
|
|
199
|
+
this.$toast.clear();
|
|
200
|
+
if (res.rCode == 0) {
|
|
201
|
+
this.$toast('操作成功');
|
|
202
|
+
this.selectedIds = [];
|
|
203
|
+
this.selectedData = []
|
|
204
|
+
this.getReadData(1);
|
|
205
|
+
this.getReadData(2);
|
|
206
|
+
} else {
|
|
207
|
+
this.$toast(res.msg);
|
|
208
|
+
}
|
|
209
|
+
});
|
|
210
|
+
},
|
|
211
|
+
handleClose() {
|
|
212
|
+
this.$parent.$emit('close');
|
|
213
|
+
},
|
|
214
|
+
handleSelectChange(val) {
|
|
215
|
+
console.log(val,'点击了')
|
|
216
|
+
this.selectedData = this.handleUserList.filter(x => val.includes(x.id))
|
|
217
|
+
if (this.selectedIds.length === this.handleUserList.length) {
|
|
218
|
+
this.isSelectAll = true;
|
|
219
|
+
} else {
|
|
220
|
+
this.isSelectAll = false;
|
|
221
|
+
}
|
|
222
|
+
},
|
|
223
|
+
handleToggel() {
|
|
224
|
+
if (!this.isSelectAll) {
|
|
225
|
+
this.selectedIds = this.handleUserList.map((i) => i.id);
|
|
226
|
+
this.selectedData = this.handleUserList
|
|
227
|
+
} else {
|
|
228
|
+
this.selectedIds = [];
|
|
229
|
+
this.selectedData = [];
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
};
|
|
234
|
+
</script>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@charset "UTF-8";.process-page{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;height:100%}.process-page .main{padding:20px 12px;-webkit-box-flex:1;-ms-flex:1;flex:1;overflow-y:auto}.process-page .box{background:#fff;border-radius:8px;height:auto}.process-page .box .title{font-size:16px;color:#3a3211;padding:16px;border-bottom:1px solid #f0f0f0}.process-page .box .title .check-btn{float:right}.process-page .box .list-area{padding:0 12px}.process-page .box .list-area .van-checkbox__label{-webkit-box-flex:1;-ms-flex:1;flex:1;border-bottom:1px solid #f0f0f0;padding:14px 0 14px 4px}.process-page .box .list-area .list-item .name-area{font-size:12px;color:#222;display:-webkit-box;display:-ms-flexbox;display:flex}.process-page .box .list-area .list-item .name-area span{display:inline-block}.process-page .box .list-area .list-item .name-area .user-name,.process-page .box .list-area .list-item .name-area .user-name-flow{display:inline-block;margin-right:8px;border-right:1px solid #f0f0f0;width:36px}.process-page .box .list-area .list-item .name-area .handle-name,.process-page .box .list-area .list-item .name-area .handle-name-flow{-webkit-box-flex:1;-ms-flex:1;flex:1;padding-right:8px}.process-page .box .list-area .list-item .name-area .handle-name-flow{-webkit-box-flex:unset;-ms-flex:unset;flex:unset}.process-page .box .list-area .list-item .name-area .user-name-flow{border:unset;-webkit-box-flex:1;-ms-flex:1;flex:1;width:unset}.process-page .box .list-area .list-item .name-area .handle-status{width:44px;height:22px;float:right;border-radius:4px;background:rgba(232,35,52,.1);color:#e82334;font-size:12px;text-align:center;line-height:22px}.process-page .box .list-area .list-item .name-area .handle-status.success{background:rgba(41,225,41,.1);color:#29e129}.process-page .box .list-area .list-item .time{font-size:12px;color:#999;margin-top:12px}.process-page .box .list-area .list-item.list-item2{border-bottom:1px solid #f0f0f0;padding:14px 0}.btn-area{width:100%;height:90px;background:#fff;padding:12px 16px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.btn-area .btn{width:calc(50% - 10px);color:#12278B;border:1px solid #12278B;font-size:16px}.btn-area .btn:last-child{color:#fff}.no-data{text-align:center;padding:20px 0;color:#999}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
@charset "UTF-8";.em-flow-list{width:100%;
|
|
1
|
+
@charset "UTF-8";.em-flow-list{width:100%;height:100%}.em-flow-list .list{padding:32px 16px 0}.em-flow-list .list .item{position:relative;border-left:1px solid #eee;padding:10px 0;margin:10px 0}.em-flow-list .list .item .icon-gou{position:absolute;top:-15px;left:-8px;color:#12278B}.em-flow-list .list .item .process-pending{position:absolute;top:-15px;left:-8.5px;width:16px;height:16px;border-radius:50%;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.em-flow-list .list .item .process-pending .process-pending-yuan{display:inline-block;width:6px;height:6px;border-radius:50%;background:#12278B}.em-flow-list .list .item:last-child{border-left-color:transparent;height:auto}.em-flow-list .list .item .icon-finish{width:16px;height:auto;position:relative;left:-8px}.em-flow-list .list .item .icon-ing{width:34px;height:auto;position:relative;left:-14px}.em-flow-list .list .item .item-box{padding-left:29px;width:100%}.em-flow-list .list .item .item-box .one{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center;position:absolute;top:-18px}.em-flow-list .list .item .item-box .one .label{font-size:14px;font-family:PingFang SC;font-weight:400;color:#666}.em-flow-list .list .item .item-box .one .time{font-size:12px;font-family:PingFang SC;font-weight:400;color:#999}.em-flow-list .list .item .item-box .two{font-size:16px;font-family:PingFang SC;font-weight:400;color:#333;padding-bottom:10px;border-bottom:1px solid #eee}.em-flow-list .list .item .item-box .tree{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;font-size:12px;font-family:PingFang SC;color:#999;line-height:16px;margin-bottom:16px;margin-top:10px}.em-flow-list .list .item .time{text-align:right;color:#333;font-size:13px;padding-top:10px;height:16px;line-height:15px}.em-flow-list .list .success-icon{border-left-color:#12278B}.em-flow-list .more{color:#12278B}.em-flow-list .custom-image .van-empty__image{width:90px;height:90px}
|