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.
- package/lib/action-sheet.js +2 -2
- package/lib/calendar.js +2 -2
- package/lib/cascader.js +2 -2
- package/lib/checkbox.js +57 -32
- package/lib/config/api.js +8 -2
- package/lib/count-down.js +2 -2
- package/lib/eoss-mobile.common.js +1402 -150
- package/lib/esign.js +2 -2
- package/lib/flow-btn.js +2702 -0
- package/lib/flow-list.js +2613 -0
- package/lib/flow.js +62 -52
- package/lib/form.js +2 -2
- package/lib/image-preview.js +2 -2
- package/lib/image.js +2 -2
- package/lib/index.js +1 -1
- package/lib/notice-bar.js +2 -2
- package/lib/pagination.js +2 -2
- package/lib/picker.js +37 -27
- package/lib/popover.js +2 -2
- package/lib/popup.js +2 -2
- package/lib/pull-refresh.js +2 -2
- package/lib/radio.js +58 -35
- package/lib/rate.js +2 -2
- package/lib/retrial-auth.js +41 -31
- package/lib/selector.js +95 -72
- package/lib/skeleton.js +2 -2
- package/lib/stepper.js +2 -2
- package/lib/swipe.js +2 -2
- package/lib/table-column.js +37 -27
- package/lib/table.js +3 -2
- package/lib/theme-chalk/flow-btn.css +1 -0
- package/lib/theme-chalk/flow-list.css +1 -0
- package/lib/theme-chalk/index.css +1 -1
- package/lib/utils/util.js +1 -0
- package/package.json +1 -1
- package/packages/checkbox/src/main.vue +8 -1
- package/packages/flow-btn/index.js +5 -0
- package/packages/flow-btn/src/main.vue +475 -0
- package/packages/flow-list/index.js +5 -0
- package/packages/flow-list/src/main.vue +225 -0
- package/packages/radio/src/main.vue +7 -5
- package/packages/selector/src/selector-tree.vue +23 -10
- package/packages/selector/src/tree.vue +4 -6
- package/packages/theme-chalk/lib/flow-btn.css +1 -0
- package/packages/theme-chalk/lib/flow-list.css +1 -0
- package/packages/theme-chalk/lib/index.css +1 -1
- package/packages/theme-chalk/src/flow-btn.scss +94 -0
- package/packages/theme-chalk/src/flow-list.scss +122 -0
- package/packages/theme-chalk/src/index.scss +2 -0
- package/src/config/api.js +10 -2
- package/src/index.js +7 -1
- package/src/utils/util.js +1 -0
package/package.json
CHANGED
|
@@ -12,9 +12,10 @@
|
|
|
12
12
|
v-for="item in newData"
|
|
13
13
|
class="em-checkbox"
|
|
14
14
|
:key="item[labelKey]"
|
|
15
|
-
v-bind="item"
|
|
15
|
+
v-bind="exclAttribute({ data: item, attrs: 'checkedColor' })"
|
|
16
16
|
v-on="$listeners"
|
|
17
17
|
:disabled="item.disabled"
|
|
18
|
+
:checked-color="checkedColor || item.checkedColor"
|
|
18
19
|
:name="item[valueKey]"
|
|
19
20
|
>
|
|
20
21
|
<span v-html="item[labelKey]"></span>
|
|
@@ -30,6 +31,7 @@
|
|
|
30
31
|
v-bind="$attrs"
|
|
31
32
|
v-model="newValue"
|
|
32
33
|
v-on="$listeners"
|
|
34
|
+
:checked-color="checkedColor"
|
|
33
35
|
:disabled="item.disabled"
|
|
34
36
|
:name="$attrs[valueKey]"
|
|
35
37
|
>{{ $attrs[labelKey] }}
|
|
@@ -40,6 +42,7 @@
|
|
|
40
42
|
<script>
|
|
41
43
|
import { findSysCode } from '../../../src/config/api';
|
|
42
44
|
import request from '../../../src/utils/http.js';
|
|
45
|
+
import util from '../../../src/utils/util'
|
|
43
46
|
export default {
|
|
44
47
|
name: 'EmCheckboxGroup',
|
|
45
48
|
inheritAttrs: false,
|
|
@@ -49,6 +52,7 @@ export default {
|
|
|
49
52
|
};
|
|
50
53
|
},
|
|
51
54
|
props: {
|
|
55
|
+
checkedColor:String,
|
|
52
56
|
disabled: {
|
|
53
57
|
type: Boolean,
|
|
54
58
|
default: false
|
|
@@ -130,6 +134,9 @@ export default {
|
|
|
130
134
|
}
|
|
131
135
|
},
|
|
132
136
|
methods: {
|
|
137
|
+
exclAttribute({ data, attrs }) {
|
|
138
|
+
return util.exclAttribute({ data, attrs });
|
|
139
|
+
},
|
|
133
140
|
handleChange() {
|
|
134
141
|
this.$emit('change', this.value);
|
|
135
142
|
},
|
|
@@ -0,0 +1,475 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<!-- 审核按钮 -->
|
|
3
|
+
<div class="em-flow-btn" v-if="isShowBtnList">
|
|
4
|
+
<div class="btn-list btn-list-1" v-if="type === 'fenyue'">
|
|
5
|
+
<div class="right-one" @click="toRead" v-if="!rejectObj.fun">
|
|
6
|
+
<div class="audit">阅结</div>
|
|
7
|
+
</div>
|
|
8
|
+
</div>
|
|
9
|
+
<div class="btn-list" v-else>
|
|
10
|
+
<div class="left">
|
|
11
|
+
<div
|
|
12
|
+
class="item"
|
|
13
|
+
v-if="pointsReadingObj.fun"
|
|
14
|
+
@click="toStartTaskRead(pointsReadingObj)"
|
|
15
|
+
>
|
|
16
|
+
<img class="icon" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAjCAYAAAD8BaggAAAAAXNSR0IArs4c6QAABNBJREFUWEftmE9oXFUUxr/z3vxNbKpUitpaEbGghbYbK11IN5a2JI2VNFELiU2cdzObbhR1YQtdKS6Ki4AhL/Mmo5WmOiAK0kVdmKQ0UouIVLS10FKotUIkUcdM83LvPXLDi7xMpp036Sx7IQTmnnvP753zvXvPeYTbD8pmszu01h3MvI2IngYQu4N9XVPMrIjoCoDzWuuTc3Nzk8ePH/+Xqu2SzWbXKqXeBtAN4EEiKgO4CWC+Lq9VjJmZAbQAeJiIZgGkmflvIvp0fn7+SDUgEkK8CeBdADe01gVjbNv2jNZaSymrPkRUUCKK27Z9DEArM2csy1rNzG8A2MDMJ5Zt7jjODgAniChBRB1DQ0MTUZ1FsRNCNAHIA3iBmXcPDw+PCyFaAXwGYGoZkBDifQBvEdHApUuXXh8bG5NRHEW16e7ubk6lUnkialdK7fI8b6Kvr+8R27YniGjdMqD+/v7PmdkYv+J5XjGqo6h2FUBdSqkzAB5KJBJfAHisWspMirYC2GvCGdVRVLsQ0H4AlwNBx5h5IxHFqkVoQmu9WWvdbsIZdiSEiJfL5URU5+l0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C" />
|
|
17
|
+
<div class="label">{{ pointsReadingObj.value }}</div>
|
|
18
|
+
</div>
|
|
19
|
+
<div
|
|
20
|
+
class="item"
|
|
21
|
+
v-if="moreList.length > 0"
|
|
22
|
+
@click="isShowMore = !isShowMore"
|
|
23
|
+
>
|
|
24
|
+
<img class="icon" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACMAAAAjCAYAAAAe2bNZAAAAAXNSR0IArs4c6QAABjVJREFUWEftWG2MXFUZft5z794VdrPMbmkRulHiD2oiHwohUELjF9EYERQcCG1qprP33tldbAGTohXUQUwr1q9km92ZO5PdiaFV2JoGmroGYiLyQxJJJIoGogRad0n4WKfVLilzZ85D3nWmmd3O7FYZf5h4/uzHPffc57zneZ/3eY/gX0PS6XSv4zgXWmsTxhjW/7/4w1orIlJbu3btsfn5+eNRFMXNz9v8LmEYbgDgk7wWwFsi8jiAn0VR9Gard2T79u3dp06d+jSAewBcIiJum8UpIv8g+SiAH7dbsPFuJpPZSHIfgMsBnABgAHSTfEpEtkdR9NLy74jv+3cYY6b0AckXAbyuYWieSFKBCMkNInIRgAkA90ZR9FYr4EEQXCciOd0cyYMAfm6Mcay1GQAfF5EnrbWjxWLx5eb3JQiCpwFcAeB7AB6N4/j1SqWyBIzneVxYWDCJROI6AHtF5AKSXygUCk8tB1OPiIL9IMlcHMfZUql0XOcNDQ293xiTF5EbADwBYEmE9FxnSb5K8pZisTi7Ehey2ayZm5vbLSJfBbCrXC7vnZ6erjV4FwTBRo2aiGyw1uattfdPTk7+s3nNkZERfZaz1m4SkSNxHH95amrqb4vEDcPwNZJ/iOM42djBSoCCIBgWkQmSD4nINxpkDsPwSpJTCgRAvlqtngGksW4YhpeRjETkagAPVyqVu/Xbi2AA/PHkyZPJAwcOlFfLkjAMRwCMN4PZsmVLX09PzwEAN+jRiMi3oihS0rYdQRAokKKIXALgoXK5vLsjYHzfv8oY8wsArwK4OYqiY6ttSp+HYbgDwB4Reb5Wq93UETBBEHxGRPaT/O3s7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Xadd2b1N907BZidHS011qrRn0rgL/r0evVTqsbDQB9AD6k1y8ktxQKhUOLczt5P1O3sNr+biXZt4KFjbWDAPCjOI6PNOxnw88s3lzpVYeIaHN1xlA3v27dutdWu7nKZrPu0aNH+40xulZLbxTH8UK1Wn1j//796o9PN3vvAJM7pkb7KNEiAAAAAElFTkSuQmCC" />
|
|
25
|
+
<div class="label">更多</div>
|
|
26
|
+
</div>
|
|
27
|
+
</div>
|
|
28
|
+
<div class="right-one" @click="toAudit" v-if="!rejectObj.fun">
|
|
29
|
+
<div class="audit">
|
|
30
|
+
{{ (currentNodeAttr && currentNodeAttr.submitButtonText) || '审核' }}
|
|
31
|
+
</div>
|
|
32
|
+
</div>
|
|
33
|
+
<div class="right-two" v-else>
|
|
34
|
+
<div class="reject" @click="reject(rejectObj)">
|
|
35
|
+
{{ rejectObj.value }}
|
|
36
|
+
</div>
|
|
37
|
+
<div class="audit" @click="toAudit">
|
|
38
|
+
{{ (currentNodeAttr && currentNodeAttr.submitButtonText) || '审核' }}
|
|
39
|
+
</div>
|
|
40
|
+
</div>
|
|
41
|
+
</div>
|
|
42
|
+
<div class="more-list" v-if="isShowMore && moreList.length > 0">
|
|
43
|
+
<div
|
|
44
|
+
@click="toView(res)"
|
|
45
|
+
v-for="(res, index) in moreList"
|
|
46
|
+
:key="index"
|
|
47
|
+
class="item"
|
|
48
|
+
>
|
|
49
|
+
{{ res.value }}
|
|
50
|
+
</div>
|
|
51
|
+
</div>
|
|
52
|
+
</div>
|
|
53
|
+
</template>
|
|
54
|
+
<script>
|
|
55
|
+
import { getHandleButtonHtml, getSysParam } from '../../../src/config/api';
|
|
56
|
+
import request from '../../../src/utils/http.js';
|
|
57
|
+
// import {
|
|
58
|
+
// getHandleButtonHtml,
|
|
59
|
+
// endFlowHtml,
|
|
60
|
+
// rejectAndEndHtml,
|
|
61
|
+
// getSysParam,
|
|
62
|
+
// } from "@/http/http.js";
|
|
63
|
+
|
|
64
|
+
export default {
|
|
65
|
+
name: 'EmFlowBtn',
|
|
66
|
+
props: {
|
|
67
|
+
pendingId: String, //待办id 必传
|
|
68
|
+
appid: String, //业务id
|
|
69
|
+
type: {
|
|
70
|
+
type: String,
|
|
71
|
+
default: ''
|
|
72
|
+
}, // 按钮类型是抄送我 还是待处理
|
|
73
|
+
save: Function,
|
|
74
|
+
businessId: String //
|
|
75
|
+
},
|
|
76
|
+
data() {
|
|
77
|
+
return {
|
|
78
|
+
moreList: [], //更多数组
|
|
79
|
+
pointsReadingObj: {
|
|
80
|
+
value: '分阅',
|
|
81
|
+
fun: undefined
|
|
82
|
+
}, // 分阅
|
|
83
|
+
rejectObj: {
|
|
84
|
+
value: '驳回',
|
|
85
|
+
fun: undefined
|
|
86
|
+
},
|
|
87
|
+
noNodeList: [], // 不能手机端办理节点数组
|
|
88
|
+
isShowMore: false, //用来判断是否展示更多数组
|
|
89
|
+
isShowBtnList: false, // 用来判断是否显示审核按钮
|
|
90
|
+
currentNodeAttr: {}
|
|
91
|
+
};
|
|
92
|
+
},
|
|
93
|
+
watch: {
|
|
94
|
+
pendingId: {
|
|
95
|
+
handler(val) {
|
|
96
|
+
if (this.type !== 'fenyue' && val) {
|
|
97
|
+
Promise.all([this.getBtnList(), this.getNoNode()]).then(() => {
|
|
98
|
+
let name = this.$route.query.itemname;
|
|
99
|
+
let is = this.noNodeList.includes(name);
|
|
100
|
+
this.isShowBtnList = !is ? true : false;
|
|
101
|
+
if (is) {
|
|
102
|
+
this.$toast('当前节点不支持app办理,请去pc端办理');
|
|
103
|
+
}
|
|
104
|
+
});
|
|
105
|
+
} else {
|
|
106
|
+
this.isShowBtnList = true;
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
deep: true,
|
|
110
|
+
immediate: true
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
created() {},
|
|
114
|
+
methods: {
|
|
115
|
+
// 获取不可办理节点
|
|
116
|
+
getNoNode() {
|
|
117
|
+
return new Promise((resolve, reject) => {
|
|
118
|
+
request({
|
|
119
|
+
url: getSysParam,
|
|
120
|
+
params: {
|
|
121
|
+
name: 'app_MECP_appNonSupportNode'
|
|
122
|
+
}
|
|
123
|
+
}).then(res => {
|
|
124
|
+
if (res.rCode == 0) {
|
|
125
|
+
this.noNodeList = res.results.split(',');
|
|
126
|
+
resolve();
|
|
127
|
+
} else {
|
|
128
|
+
this.$toast(res.msg);
|
|
129
|
+
reject();
|
|
130
|
+
}
|
|
131
|
+
});
|
|
132
|
+
});
|
|
133
|
+
},
|
|
134
|
+
toRead() {
|
|
135
|
+
this.$emit('click', {
|
|
136
|
+
name: 'newProcessAudit',
|
|
137
|
+
type: 'handle',
|
|
138
|
+
typeCode: 'fenyue',
|
|
139
|
+
h5HeadTitle: '阅结',
|
|
140
|
+
pendingId: this.pendingId,
|
|
141
|
+
businessId: this.businessId
|
|
142
|
+
});
|
|
143
|
+
// this.$router.push({
|
|
144
|
+
// name: "newProcessAudit",
|
|
145
|
+
// query: {
|
|
146
|
+
// h5HeadTitle: "阅结",
|
|
147
|
+
// pendingId: this.pendingId,
|
|
148
|
+
// businessId: this.businessId,
|
|
149
|
+
// typeCode: "fenyue",
|
|
150
|
+
// },
|
|
151
|
+
// });
|
|
152
|
+
},
|
|
153
|
+
// 获取审核按钮
|
|
154
|
+
getBtnList() {
|
|
155
|
+
return new Promise((resolve, reject) => {
|
|
156
|
+
request({
|
|
157
|
+
url: getHandleButtonHtml,
|
|
158
|
+
params: {
|
|
159
|
+
pendingId: this.pendingId
|
|
160
|
+
}
|
|
161
|
+
}).then(res => {
|
|
162
|
+
if (res.rCode == 0) {
|
|
163
|
+
let data = res.results.taskButtonList;
|
|
164
|
+
this.moreList = [];
|
|
165
|
+
if (data) {
|
|
166
|
+
for (let i = 0; i < data.length; i++) {
|
|
167
|
+
if (data[i].fun === 'reject()') {
|
|
168
|
+
this.rejectObj = data[i];
|
|
169
|
+
} else if (data[i].fun === 'toStartTaskRead()') {
|
|
170
|
+
this.pointsReadingObj = data[i];
|
|
171
|
+
} else if (data[i].fun === 'toSendMsg()') {
|
|
172
|
+
// return
|
|
173
|
+
} else {
|
|
174
|
+
this.moreList.push(data[i]);
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
this.currentNodeAttr = res.results.currentNodeAttr;
|
|
178
|
+
}
|
|
179
|
+
resolve();
|
|
180
|
+
} else {
|
|
181
|
+
this.$toast(res.msg);
|
|
182
|
+
reject();
|
|
183
|
+
}
|
|
184
|
+
});
|
|
185
|
+
});
|
|
186
|
+
},
|
|
187
|
+
toView(res) {
|
|
188
|
+
// 驳回并办结:rejectAndEndHtml
|
|
189
|
+
// 获取转办页面:toTaskTransferHtml
|
|
190
|
+
// 转办:taskTransferHtml
|
|
191
|
+
// 获取分阅页面信息:toStartTaskReadHtml
|
|
192
|
+
// 分阅:taskReadHtml
|
|
193
|
+
// 获取驳回页面信息:toTaskRejectHtml(注释有误:appId改为pendingId)
|
|
194
|
+
// 驳回:taskRejectHtml
|
|
195
|
+
// 直接办结:endFlowHtml
|
|
196
|
+
if (res.fun === 'toStartTaskRead()') {
|
|
197
|
+
// 分阅
|
|
198
|
+
this.toStartTaskRead(res);
|
|
199
|
+
} else if (res.fun === 'reject()') {
|
|
200
|
+
// 驳回
|
|
201
|
+
this.reject(res);
|
|
202
|
+
} else if (res.fun === 'endFlow()') {
|
|
203
|
+
// 直接办结
|
|
204
|
+
this.endFlow(res);
|
|
205
|
+
} else if (res.fun === 'rejectAndEnd()') {
|
|
206
|
+
// 驳回并办结
|
|
207
|
+
this.rejectAndEnd(res);
|
|
208
|
+
} else if (res.fun === 'toTransfer()') {
|
|
209
|
+
// 转办
|
|
210
|
+
this.toTransfer(res);
|
|
211
|
+
} else if (res.fun === 'toTaskReadAndEnd()') {
|
|
212
|
+
this.toTaskReadAndEnd(res);
|
|
213
|
+
} else if (res.fun === 'toSendMsg()') {
|
|
214
|
+
this.toSendMsg(res);
|
|
215
|
+
} else if (
|
|
216
|
+
res.fun === 'toUnionExamine()' ||
|
|
217
|
+
res.fun === 'toTakeAdvice()' ||
|
|
218
|
+
res.fun === 'toStartDraf()'
|
|
219
|
+
) {
|
|
220
|
+
const { itemname, appid } = this.$route.query;
|
|
221
|
+
this.$emit('click', {
|
|
222
|
+
name: 'newProcessAudit',
|
|
223
|
+
type:
|
|
224
|
+
res.fun == 'toUnionExamine()'
|
|
225
|
+
? 'unionExamine'
|
|
226
|
+
: res.fun == 'toTakeAdvice()'
|
|
227
|
+
? 'takeAdvice'
|
|
228
|
+
: res.fun === 'toStartDraf()'
|
|
229
|
+
? 'startDraf'
|
|
230
|
+
: '',
|
|
231
|
+
h5HeadTitle: '阅结',
|
|
232
|
+
h5HeadTitle: res.value,
|
|
233
|
+
pendingId: this.pendingId,
|
|
234
|
+
businessId: this.businessId,
|
|
235
|
+
// appid: this.businessId,
|
|
236
|
+
itemname
|
|
237
|
+
});
|
|
238
|
+
// this.$router.push({
|
|
239
|
+
// name: "newProcessAudit",
|
|
240
|
+
// query: {
|
|
241
|
+
// h5HeadTitle: res.value,
|
|
242
|
+
// pendingId: this.pendingId,
|
|
243
|
+
// itemname,
|
|
244
|
+
// type:
|
|
245
|
+
// res.fun == "toUnionExamine()"
|
|
246
|
+
// ? "unionExamine"
|
|
247
|
+
// : res.fun == "toTakeAdvice()"
|
|
248
|
+
// ? "takeAdvice"
|
|
249
|
+
// : res.fun === "toStartDraf()"
|
|
250
|
+
// ? "startDraf"
|
|
251
|
+
// : "",
|
|
252
|
+
// appid:this.businessId,
|
|
253
|
+
// userId: localStorage.getItem("userId"),
|
|
254
|
+
// },
|
|
255
|
+
// });
|
|
256
|
+
}
|
|
257
|
+
},
|
|
258
|
+
toAudit() {
|
|
259
|
+
if (
|
|
260
|
+
this.$route.query.bcode &&
|
|
261
|
+
this.$route.query.bcode.indexOf('form_') != -1
|
|
262
|
+
) {
|
|
263
|
+
this.save()
|
|
264
|
+
.then(res => {
|
|
265
|
+
this.$emit('click', {
|
|
266
|
+
name: 'newProcessAudit',
|
|
267
|
+
h5HeadTitle: '审核',
|
|
268
|
+
type: 'handle',
|
|
269
|
+
pendingId: this.pendingId,
|
|
270
|
+
taskRead: this.$route.query.taskRead,
|
|
271
|
+
taskReadName: this.$route.query.taskReadName,
|
|
272
|
+
businessId: this.businessId
|
|
273
|
+
});
|
|
274
|
+
// this.$router.push({
|
|
275
|
+
// name: "newProcessAudit",
|
|
276
|
+
// query: {
|
|
277
|
+
// h5HeadTitle: "审核",
|
|
278
|
+
// pendingId: this.pendingId,
|
|
279
|
+
// taskRead: this.$route.query.taskRead,
|
|
280
|
+
// taskReadName: this.$route.query.taskReadName,
|
|
281
|
+
// businessId: this.$route.query.apprecordid,
|
|
282
|
+
// },
|
|
283
|
+
// });
|
|
284
|
+
})
|
|
285
|
+
.catch(err => {
|
|
286
|
+
console.log('失败');
|
|
287
|
+
})
|
|
288
|
+
.finally(() => {
|
|
289
|
+
console.log(333);
|
|
290
|
+
});
|
|
291
|
+
} else {
|
|
292
|
+
this.$emit('click', {
|
|
293
|
+
name: 'newProcessAudit',
|
|
294
|
+
h5HeadTitle: '审核',
|
|
295
|
+
type: 'handle',
|
|
296
|
+
pendingId: this.pendingId,
|
|
297
|
+
businessId: this.businessId
|
|
298
|
+
});
|
|
299
|
+
// this.$router.push({
|
|
300
|
+
// name: "newProcessAudit",
|
|
301
|
+
// query: {
|
|
302
|
+
// h5HeadTitle: "审核",
|
|
303
|
+
// pendingId: this.pendingId,
|
|
304
|
+
// businessId: this.$route.query.apprecordid,
|
|
305
|
+
// },
|
|
306
|
+
// });
|
|
307
|
+
}
|
|
308
|
+
},
|
|
309
|
+
toStartDraf(res) {
|
|
310
|
+
this.$emit('click', {
|
|
311
|
+
name: 'ProcessStartDraf',
|
|
312
|
+
type: 'startDraf',
|
|
313
|
+
h5HeadTitle: res.value,
|
|
314
|
+
pendingId: this.pendingId,
|
|
315
|
+
businessId: this.businessId
|
|
316
|
+
// appid: this.businessId
|
|
317
|
+
});
|
|
318
|
+
// this.$router.push({
|
|
319
|
+
// name: 'ProcessStartDraf',
|
|
320
|
+
// query: {
|
|
321
|
+
// h5HeadTitle: res.value,
|
|
322
|
+
// pendingId: this.pendingId,
|
|
323
|
+
// appid: this.businessId
|
|
324
|
+
// }
|
|
325
|
+
// });
|
|
326
|
+
},
|
|
327
|
+
reject(res) {
|
|
328
|
+
this.$emit('click', {
|
|
329
|
+
name: 'ProcessReject',
|
|
330
|
+
type: 'reject',
|
|
331
|
+
h5HeadTitle: res.value,
|
|
332
|
+
pendingId: this.pendingId,
|
|
333
|
+
businessId: this.businessId
|
|
334
|
+
// appid: this.businessId
|
|
335
|
+
});
|
|
336
|
+
// this.$router.push({
|
|
337
|
+
// name: 'ProcessReject',
|
|
338
|
+
// query: {
|
|
339
|
+
// h5HeadTitle: res.value,
|
|
340
|
+
// pendingId: this.pendingId,
|
|
341
|
+
// appid: this.businessId
|
|
342
|
+
// }
|
|
343
|
+
// });
|
|
344
|
+
},
|
|
345
|
+
toStartTaskRead(res) {
|
|
346
|
+
this.$emit('click', {
|
|
347
|
+
name: 'ProcessTaskRead',
|
|
348
|
+
type: 'taskRead',
|
|
349
|
+
h5HeadTitle: res.value,
|
|
350
|
+
pendingId: this.pendingId,
|
|
351
|
+
businessId: this.businessId
|
|
352
|
+
// appid: this.businessId
|
|
353
|
+
});
|
|
354
|
+
// this.$router.push({
|
|
355
|
+
// name: "ProcessTaskRead",
|
|
356
|
+
// query: {
|
|
357
|
+
// h5HeadTitle: res.value,
|
|
358
|
+
// pendingId: this.pendingId,
|
|
359
|
+
// appid: this.businessId,
|
|
360
|
+
// },
|
|
361
|
+
// });
|
|
362
|
+
},
|
|
363
|
+
endFlow(res) {
|
|
364
|
+
this.$dialog
|
|
365
|
+
.confirm({
|
|
366
|
+
title: '标题',
|
|
367
|
+
message: '确认' + res.value + '?'
|
|
368
|
+
})
|
|
369
|
+
.then(() => {
|
|
370
|
+
this.$toast.loading({
|
|
371
|
+
message: '加载中...',
|
|
372
|
+
forbidClick: true,
|
|
373
|
+
loadingType: 'spinner',
|
|
374
|
+
overlay: true,
|
|
375
|
+
duration: 0
|
|
376
|
+
});
|
|
377
|
+
request({
|
|
378
|
+
url: endFlowHtml,
|
|
379
|
+
params: {
|
|
380
|
+
pendingId: this.pendingId
|
|
381
|
+
}
|
|
382
|
+
}).then(res => {
|
|
383
|
+
if (res.rCode == 0) {
|
|
384
|
+
this.$toast(res.msg);
|
|
385
|
+
localStorage.setItem('taskEndFlow', true);
|
|
386
|
+
this.$router.go(-1);
|
|
387
|
+
} else {
|
|
388
|
+
this.$toast(res.msg);
|
|
389
|
+
}
|
|
390
|
+
});
|
|
391
|
+
})
|
|
392
|
+
.catch(() => {
|
|
393
|
+
// on cancel
|
|
394
|
+
});
|
|
395
|
+
},
|
|
396
|
+
rejectAndEnd(res) {
|
|
397
|
+
this.$dialog
|
|
398
|
+
.confirm({
|
|
399
|
+
title: '标题',
|
|
400
|
+
message: '确认' + res.value + '?'
|
|
401
|
+
})
|
|
402
|
+
.then(() => {
|
|
403
|
+
request({
|
|
404
|
+
url: rejectAndEndHtml,
|
|
405
|
+
params: {
|
|
406
|
+
pendingId: this.pendingId
|
|
407
|
+
}
|
|
408
|
+
}).then(res => {
|
|
409
|
+
if (res.rCode == 0) {
|
|
410
|
+
this.$toast(res.msg);
|
|
411
|
+
localStorage.setItem('taskEndFlow', true);
|
|
412
|
+
this.$router.go(-1);
|
|
413
|
+
} else {
|
|
414
|
+
this.$toast(res.msg);
|
|
415
|
+
}
|
|
416
|
+
});
|
|
417
|
+
})
|
|
418
|
+
.catch(() => {
|
|
419
|
+
// on cancel
|
|
420
|
+
});
|
|
421
|
+
},
|
|
422
|
+
toTransfer(res) {
|
|
423
|
+
this.$emit('click', {
|
|
424
|
+
name: 'ProcessTransfer',
|
|
425
|
+
type: 'transfer',
|
|
426
|
+
h5HeadTitle: res.value,
|
|
427
|
+
pendingId: this.pendingId
|
|
428
|
+
});
|
|
429
|
+
// this.$router.push({
|
|
430
|
+
// name: 'ProcessTransfer',
|
|
431
|
+
// query: {
|
|
432
|
+
// h5HeadTitle: res.btnName,
|
|
433
|
+
// pendingId: this.pendingId
|
|
434
|
+
// }
|
|
435
|
+
// });
|
|
436
|
+
},
|
|
437
|
+
toTaskReadAndEnd(res) {
|
|
438
|
+
this.$emit('click', {
|
|
439
|
+
name: 'ProcessTaskRead',
|
|
440
|
+
type: 'taskRead',
|
|
441
|
+
h5HeadTitle: res.value,
|
|
442
|
+
businessId: this.businessId,
|
|
443
|
+
// appid: this.businessId,
|
|
444
|
+
pendingId: this.pendingId,
|
|
445
|
+
taskAction: 'taskAction'
|
|
446
|
+
});
|
|
447
|
+
// this.$router.push({
|
|
448
|
+
// name: 'ProcessTaskRead',
|
|
449
|
+
// query: {
|
|
450
|
+
// h5HeadTitle: res.value,
|
|
451
|
+
// businessId: this.businessId,
|
|
452
|
+
// // appid: this.businessId,
|
|
453
|
+
// pendingId: this.pendingId,
|
|
454
|
+
// taskAction: 'taskAction'
|
|
455
|
+
// }
|
|
456
|
+
// });
|
|
457
|
+
},
|
|
458
|
+
toSendMsg(res) {
|
|
459
|
+
this.$emit('click', {
|
|
460
|
+
name: 'ProcessSendMsg',
|
|
461
|
+
type: 'sendMsg',
|
|
462
|
+
h5HeadTitle: res.value,
|
|
463
|
+
title: '测试表单'
|
|
464
|
+
});
|
|
465
|
+
// this.$router.push({
|
|
466
|
+
// name: 'ProcessSendMsg',
|
|
467
|
+
// query: {
|
|
468
|
+
// h5HeadTitle: res.value,
|
|
469
|
+
// title: '测试表单'
|
|
470
|
+
// }
|
|
471
|
+
// });
|
|
472
|
+
}
|
|
473
|
+
}
|
|
474
|
+
};
|
|
475
|
+
</script>
|