n20-common-lib 2.1.36 → 2.2.2
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/package.json +1 -1
- package/src/components/ApprovalButtons/index.vue +45 -12
- package/src/components/ApprovalButtons/setCarboncopyProp.vue +2 -2
- package/src/components/ApprovalButtons/showAppOpi.vue +13 -3
- package/src/components/ApprovalButtons/showOtherAttr.vue +1 -1
- package/src/components/ApprovalCard/index.vue +14 -5
- package/src/components/ApprovalRecord/index-zjk.vue +19 -3
- package/src/components/ApprovalRecord/index.vue +19 -3
- package/src/components/Layout/HeaderWrap/index.vue +2 -2
- package/src/components/LoginTemporary/form.vue +15 -5
- package/src/components/LoginTemporary/index.vue +8 -3
- package/src/components/LoginTemporary/indexN.vue +9 -2
- package/src/utils/axios.js +2 -2
- package/style/index.css +3 -3
- package/theme/blue.css +2 -2
- package/theme/cctcRed.css +2 -2
- package/theme/fonts/iconfont.022f36c4.woff2 +0 -0
- package/theme/fonts/iconfont.4a1b2c93.woff +0 -0
- package/theme/fonts/iconfont.a9febaa2.ttf +0 -0
- package/theme/green.css +2 -2
- package/theme/lightBlue.css +2 -2
- package/theme/orange.css +2 -2
- package/theme/purple.css +2 -2
- package/theme/red.css +2 -2
- package/theme/yellow.css +2 -2
package/package.json
CHANGED
|
@@ -52,7 +52,14 @@
|
|
|
52
52
|
/>
|
|
53
53
|
</el-form-item>
|
|
54
54
|
<template v-if="taskId && showBtn">
|
|
55
|
-
<show-app-opi
|
|
55
|
+
<show-app-opi
|
|
56
|
+
v-if="opiAndUser || authList.includes('showAppOpi')"
|
|
57
|
+
class="flex-1 m-l-s"
|
|
58
|
+
:task-id="taskId"
|
|
59
|
+
:message.sync="messageC"
|
|
60
|
+
:and-user="opiAndUser"
|
|
61
|
+
style="width: 20%"
|
|
62
|
+
/>
|
|
56
63
|
<show-other-att
|
|
57
64
|
v-if="authList.includes('showOtherAtt')"
|
|
58
65
|
class="flex-1 m-l"
|
|
@@ -122,6 +129,11 @@ import CarboncopyProp from './setCarboncopyProp.vue'
|
|
|
122
129
|
import RejectToProp from './setRejectToProp.vue'
|
|
123
130
|
import ShowAppOpi from './showAppOpi.vue'
|
|
124
131
|
import ShowOtherAtt from './showOtherAttr.vue'
|
|
132
|
+
// window._approvalExtend = { 'addtask.chdUserInfo.extend': {}, 'appOpi.queryAppOpiAndUser.exist': undefined, 'card.countermand.suggestion': false }
|
|
133
|
+
if (!window._approvalExtend) window._approvalExtend = {}
|
|
134
|
+
if (!window._approvalExtend['addtask.chdUserInfo.extend']) {
|
|
135
|
+
window._approvalExtend['addtask.chdUserInfo.extend'] = window._isAddtask_get_userlist_extend_data_ || {}
|
|
136
|
+
}
|
|
125
137
|
|
|
126
138
|
export default {
|
|
127
139
|
name: 'ApprovalButtons',
|
|
@@ -190,6 +202,7 @@ export default {
|
|
|
190
202
|
rejectToV: false,
|
|
191
203
|
approvalToV: false,
|
|
192
204
|
showApprovalTo: false,
|
|
205
|
+
opiAndUser: false,
|
|
193
206
|
otherAtt: {}
|
|
194
207
|
}
|
|
195
208
|
},
|
|
@@ -208,19 +221,11 @@ export default {
|
|
|
208
221
|
}
|
|
209
222
|
},
|
|
210
223
|
created() {
|
|
211
|
-
this.taskId = this.$route.query.taskId
|
|
224
|
+
this.taskId = this.$route.query.taskId || this.$route.params.taskId
|
|
212
225
|
this.showBtn = this.$route.query.habtn !== 'true'
|
|
213
226
|
this.getBtns()
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
.get(`/bems/activiti/sample/getTaskMoveVos/${this.$route.query.taskId}/1`, null, {
|
|
217
|
-
loading: false,
|
|
218
|
-
noMsg: true
|
|
219
|
-
})
|
|
220
|
-
.then(() => {
|
|
221
|
-
this.showApprovalTo = true
|
|
222
|
-
})
|
|
223
|
-
}
|
|
227
|
+
this.getShowApprovalTo()
|
|
228
|
+
this.getHasQueryAppOpiAndUser()
|
|
224
229
|
},
|
|
225
230
|
methods: {
|
|
226
231
|
// 换回到发起页
|
|
@@ -255,6 +260,34 @@ export default {
|
|
|
255
260
|
this.authList = this.btnList
|
|
256
261
|
})
|
|
257
262
|
},
|
|
263
|
+
// 获取是否显示驳回至按钮
|
|
264
|
+
getShowApprovalTo() {
|
|
265
|
+
if (this.showBtn && this.$route.query.state === '2') {
|
|
266
|
+
axios
|
|
267
|
+
.get(`/bems/activiti/sample/getTaskMoveVos/${this.$route.query.taskId}/1`, null, {
|
|
268
|
+
loading: false,
|
|
269
|
+
noMsg: true
|
|
270
|
+
})
|
|
271
|
+
.then(() => {
|
|
272
|
+
this.showApprovalTo = true
|
|
273
|
+
})
|
|
274
|
+
}
|
|
275
|
+
},
|
|
276
|
+
// 刺探审批意见接口是否存在
|
|
277
|
+
getHasQueryAppOpiAndUser() {
|
|
278
|
+
if (this.showBtn && window._approvalExtend['appOpi.queryAppOpiAndUser.exist'] === undefined) {
|
|
279
|
+
axios
|
|
280
|
+
.post('/bems/activiti/actAppOpi/queryAppOpiAndUser', null, { loading: false, noMsg: true })
|
|
281
|
+
.then(() => {
|
|
282
|
+
this.opiAndUser = window._approvalExtend['appOpi.queryAppOpiAndUser.exist'] = true
|
|
283
|
+
})
|
|
284
|
+
.catch(() => {
|
|
285
|
+
window._approvalExtend['appOpi.queryAppOpiAndUser.exist'] = false
|
|
286
|
+
})
|
|
287
|
+
} else {
|
|
288
|
+
this.opiAndUser = window._approvalExtend['appOpi.queryAppOpiAndUser.exist']
|
|
289
|
+
}
|
|
290
|
+
},
|
|
258
291
|
// 获取提交参数
|
|
259
292
|
getParam() {
|
|
260
293
|
let { typeCode, taskId, groupNo, isAgentcy } = this.$route.query
|
|
@@ -118,8 +118,8 @@ export default {
|
|
|
118
118
|
},
|
|
119
119
|
methods: {
|
|
120
120
|
getList() {
|
|
121
|
-
if (this.type === 'addtask'
|
|
122
|
-
this.searchObj = Object.assign(this.searchObj, window.
|
|
121
|
+
if (this.type === 'addtask') {
|
|
122
|
+
this.searchObj = Object.assign(this.searchObj, window._approvalExtend['addtask.chdUserInfo.extend'])
|
|
123
123
|
}
|
|
124
124
|
axios
|
|
125
125
|
.post('/bems/activiti/online/chdUserInfo', {
|
|
@@ -26,6 +26,10 @@ export default {
|
|
|
26
26
|
message: {
|
|
27
27
|
type: String,
|
|
28
28
|
default: ''
|
|
29
|
+
},
|
|
30
|
+
andUser: {
|
|
31
|
+
type: Boolean,
|
|
32
|
+
default: false
|
|
29
33
|
}
|
|
30
34
|
},
|
|
31
35
|
data() {
|
|
@@ -39,9 +43,15 @@ export default {
|
|
|
39
43
|
},
|
|
40
44
|
methods: {
|
|
41
45
|
getData() {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
46
|
+
if (this.andUser) {
|
|
47
|
+
axios.post('/bems/activiti/actAppOpi/queryAppOpiAndUser').then(({ data }) => {
|
|
48
|
+
this.approveMsgList = data || []
|
|
49
|
+
})
|
|
50
|
+
} else {
|
|
51
|
+
axios.post('/bems/activiti/actAppOpi/queryAppOpi').then(({ data }) => {
|
|
52
|
+
this.approveMsgList = data.list || []
|
|
53
|
+
})
|
|
54
|
+
}
|
|
45
55
|
},
|
|
46
56
|
changeFn() {
|
|
47
57
|
// if (this.approveMsgSlt?.length) {
|
|
@@ -50,10 +50,12 @@
|
|
|
50
50
|
<div v-if="item.addTaskName" class="n20-description-c m-t">
|
|
51
51
|
{{ '加签审批人:' | $lc }}{{ item.addTaskName }}
|
|
52
52
|
</div>
|
|
53
|
-
<
|
|
54
|
-
<
|
|
55
|
-
|
|
56
|
-
|
|
53
|
+
<template v-if="item.resultName !== '撤回' || showCtdMsg">
|
|
54
|
+
<div v-if="item.suggestion" class="n20-description-c n20-description-bgc m-t p-a-s">
|
|
55
|
+
<span v-if="item.result !== status.waiting">{{ '审批意见:' | $lc }}</span>
|
|
56
|
+
<span>{{ item.suggestion }}</span>
|
|
57
|
+
</div>
|
|
58
|
+
</template>
|
|
57
59
|
</div>
|
|
58
60
|
</el-timeline-item>
|
|
59
61
|
</el-timeline>
|
|
@@ -63,6 +65,8 @@
|
|
|
63
65
|
<script>
|
|
64
66
|
import { $lc } from '../../utils/i18n/index'
|
|
65
67
|
import axios from '../../utils/axios'
|
|
68
|
+
if (!window._approvalExtend) window._approvalExtend = {}
|
|
69
|
+
|
|
66
70
|
export default {
|
|
67
71
|
name: 'ApprovalCard',
|
|
68
72
|
filters: {
|
|
@@ -119,6 +123,12 @@ export default {
|
|
|
119
123
|
default: undefined
|
|
120
124
|
}
|
|
121
125
|
},
|
|
126
|
+
data() {
|
|
127
|
+
return {
|
|
128
|
+
// 显示撤回意见,默认不显示
|
|
129
|
+
showCtdMsg: window._approvalExtend['card.countermand.suggestion'] === true
|
|
130
|
+
}
|
|
131
|
+
},
|
|
122
132
|
created() {
|
|
123
133
|
if (this.procInstId) {
|
|
124
134
|
axios
|
|
@@ -141,7 +151,6 @@ export default {
|
|
|
141
151
|
resultName = resultName.split('-')
|
|
142
152
|
resultName = resultName[resultName.length - 1]
|
|
143
153
|
_item.resultName = resultName === $lc('推进') ? $lc('批准') : resultName
|
|
144
|
-
console.log(item, 99)
|
|
145
154
|
if (item.taskName === $lc('开始')) {
|
|
146
155
|
_item.result = 1
|
|
147
156
|
} else if (_item.resultName === $lc('加签推进')) {
|
|
@@ -1,16 +1,32 @@
|
|
|
1
1
|
/* 审批记录 */
|
|
2
2
|
<template>
|
|
3
3
|
<div>
|
|
4
|
-
<expandableWrap :title="'审批记录' | $lc" :show-expand="false">
|
|
4
|
+
<expandableWrap :title="'审批记录' | $lc" :show-expand="false" :icon="false">
|
|
5
5
|
<template slot="tips">
|
|
6
6
|
<el-button plain size="mini" :disabled="false" @click="cardV = true">{{ '审批进度查看' | $lc }}</el-button>
|
|
7
7
|
<el-button plain size="mini" :disabled="false" @click="imgV = true">{{ '流程图查看' | $lc }}</el-button>
|
|
8
8
|
</template>
|
|
9
9
|
</expandableWrap>
|
|
10
|
-
<el-dialog
|
|
10
|
+
<el-dialog
|
|
11
|
+
v-drag
|
|
12
|
+
:title="'审批记录' | $lc"
|
|
13
|
+
:visible.sync="cardV"
|
|
14
|
+
width="1100px"
|
|
15
|
+
class="p-a-0"
|
|
16
|
+
append-to-body
|
|
17
|
+
top="10vh"
|
|
18
|
+
>
|
|
11
19
|
<approvalCard class="p-a" :proc-inst-id="$route.query.processInstanceId" style="height: 70vh; overflow: auto" />
|
|
12
20
|
</el-dialog>
|
|
13
|
-
<el-dialog
|
|
21
|
+
<el-dialog
|
|
22
|
+
v-drag
|
|
23
|
+
:title="'查看流程' | $lc"
|
|
24
|
+
:visible.sync="imgV"
|
|
25
|
+
width="1100px"
|
|
26
|
+
class="p-a-0"
|
|
27
|
+
append-to-body
|
|
28
|
+
top="10vh"
|
|
29
|
+
>
|
|
14
30
|
<approvalImg
|
|
15
31
|
class="text-c p-a"
|
|
16
32
|
:proc-inst-id="$route.query.processInstanceId"
|
|
@@ -1,16 +1,32 @@
|
|
|
1
1
|
/* 审批记录 */
|
|
2
2
|
<template>
|
|
3
3
|
<div>
|
|
4
|
-
<expandableWrap :title="'审批记录' | $lc" :show-expand="false">
|
|
4
|
+
<expandableWrap :title="'审批记录' | $lc" :show-expand="false" :icon="false">
|
|
5
5
|
<template slot="tips">
|
|
6
6
|
<el-button plain size="mini" :disabled="false" @click="cardV = true">{{ '审批进度查看' | $lc }}</el-button>
|
|
7
7
|
<el-button plain size="mini" :disabled="false" @click="imgV = true">{{ '流程图查看' | $lc }}</el-button>
|
|
8
8
|
</template>
|
|
9
9
|
</expandableWrap>
|
|
10
|
-
<el-dialog
|
|
10
|
+
<el-dialog
|
|
11
|
+
v-drag
|
|
12
|
+
:title="'审批记录' | $lc"
|
|
13
|
+
:visible.sync="cardV"
|
|
14
|
+
width="80%"
|
|
15
|
+
class="p-a-0"
|
|
16
|
+
append-to-body
|
|
17
|
+
top="10vh"
|
|
18
|
+
>
|
|
11
19
|
<approvalCard class="p-a" :proc-inst-id="$route.query.processInstanceId" style="height: 70vh; overflow: auto" />
|
|
12
20
|
</el-dialog>
|
|
13
|
-
<el-dialog
|
|
21
|
+
<el-dialog
|
|
22
|
+
v-drag
|
|
23
|
+
:title="'查看流程' | $lc"
|
|
24
|
+
:visible.sync="imgV"
|
|
25
|
+
width="80%"
|
|
26
|
+
class="p-a-0"
|
|
27
|
+
append-to-body
|
|
28
|
+
top="10vh"
|
|
29
|
+
>
|
|
14
30
|
<approvalImg
|
|
15
31
|
class="text-c p-a"
|
|
16
32
|
:proc-inst-id="$route.query.processInstanceId"
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
<slot name="header-ectad">
|
|
26
26
|
<sapn v-if="ectad" class="f-s-s">
|
|
27
27
|
<span class="m-r-ss">
|
|
28
|
-
{{ '用户' | $lc }}: <span class="color-666">{{ userInfo.userName }}</span>
|
|
28
|
+
{{ '用户' | $lc }}: <span class="color-666">{{ userInfo.userName || userNo }}</span>
|
|
29
29
|
</span>
|
|
30
30
|
<span class="m-r-ss b-center">
|
|
31
31
|
{{ '角色' | $lc }}:
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
|
|
83
83
|
<el-dropdown-menu slot="dropdown">
|
|
84
84
|
<div class="user-info-name flex-box p-l p-r p-t-s p-b-s" style="max-width: 300px">
|
|
85
|
-
<span :class="{ pointer: customOpt.userMd }" @click="goMdmUser">{{ userInfo.userName }}</span>
|
|
85
|
+
<span :class="{ pointer: customOpt.userMd }" @click="goMdmUser">{{ userInfo.userName || userNo }}</span>
|
|
86
86
|
<div class="flex-column flex-l">
|
|
87
87
|
<span
|
|
88
88
|
v-title="userInfo.companyName"
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
</el-input>
|
|
44
44
|
不自动填充密码End -->
|
|
45
45
|
</el-form-item>
|
|
46
|
-
<el-form-item class="m-b" :label="'图形验证码' | $lc" prop="imageCode">
|
|
46
|
+
<el-form-item v-if="showImageCode" class="m-b" :label="'图形验证码' | $lc" prop="imageCode">
|
|
47
47
|
<br />
|
|
48
48
|
<div class="flex-box">
|
|
49
49
|
<el-input v-model="form.imageCode" class="flex-item m-r-s" :placeholder="'请输入图形验证码' | $lc" />
|
|
@@ -186,6 +186,10 @@ export default {
|
|
|
186
186
|
extraForm: {
|
|
187
187
|
type: Object,
|
|
188
188
|
default: () => ({})
|
|
189
|
+
},
|
|
190
|
+
showImageCode: {
|
|
191
|
+
type: Boolean,
|
|
192
|
+
default: false
|
|
189
193
|
}
|
|
190
194
|
},
|
|
191
195
|
data() {
|
|
@@ -256,12 +260,18 @@ export default {
|
|
|
256
260
|
}
|
|
257
261
|
},
|
|
258
262
|
getImgCode() {
|
|
259
|
-
if (this.theType === 'account') {
|
|
263
|
+
if (this.theType === 'account' && this.showImageCode) {
|
|
260
264
|
this.$set(this.form, 'imageCode', '')
|
|
261
265
|
this.imageUrl && URL.revokeObjectURL(this.imageUrl)
|
|
262
|
-
axios
|
|
263
|
-
|
|
264
|
-
|
|
266
|
+
axios
|
|
267
|
+
.get('/bems/prod_1.0/uas/api/authorization/captcha/image', null, {
|
|
268
|
+
responseType: 'blob',
|
|
269
|
+
loading: false,
|
|
270
|
+
noMsg: true
|
|
271
|
+
})
|
|
272
|
+
.then((blob) => {
|
|
273
|
+
this.imageUrl = URL.createObjectURL(blob)
|
|
274
|
+
})
|
|
265
275
|
}
|
|
266
276
|
},
|
|
267
277
|
// 发送短信
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div v-if="alV" v-loading="alV" class="login-wrap">
|
|
2
|
+
<div v-if="alV" v-loading="alV" class="login-wrap" element-loading-custom-class="auto-login-loading">
|
|
3
3
|
<loginForm
|
|
4
4
|
ref="login-form"
|
|
5
|
+
class="login-form"
|
|
5
6
|
:before-login="beforeLogin"
|
|
6
7
|
:login-types="loginTypes"
|
|
7
8
|
:login-then="loginThen"
|
|
8
9
|
:async-rela-nos="asyncRelaNos"
|
|
9
|
-
class="login-form"
|
|
10
10
|
style="display: none"
|
|
11
11
|
/>
|
|
12
12
|
</div>
|
|
@@ -20,11 +20,12 @@
|
|
|
20
20
|
<div doc="登录页标语" v-html="loginSloganHtml"></div>
|
|
21
21
|
<loginForm
|
|
22
22
|
v-if="operateType === 'login'"
|
|
23
|
+
class="login-form"
|
|
23
24
|
:before-login="beforeLogin"
|
|
24
25
|
:login-types="loginTypes"
|
|
25
26
|
:login-then="loginThen"
|
|
26
27
|
:async-rela-nos="asyncRelaNos"
|
|
27
|
-
|
|
28
|
+
:show-image-code="showImageCode"
|
|
28
29
|
@changType="getChangetype"
|
|
29
30
|
>
|
|
30
31
|
<div slot="header" class="login-form-header m-b text-c">{{ '欢 迎 登 录' | $lc }}</div>
|
|
@@ -84,6 +85,10 @@ export default {
|
|
|
84
85
|
asyncRelaNos: {
|
|
85
86
|
type: Boolean,
|
|
86
87
|
default: false
|
|
88
|
+
},
|
|
89
|
+
showImageCode: {
|
|
90
|
+
type: Boolean,
|
|
91
|
+
default: false
|
|
87
92
|
}
|
|
88
93
|
},
|
|
89
94
|
data() {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div style="width: 100vw; height: 100vh; overflow: hidden">
|
|
3
|
-
<div v-if="alV" v-loading="alV" class="login-wrap">
|
|
3
|
+
<div v-if="alV" v-loading="alV" class="login-wrap" element-loading-custom-class="auto-login-loading">
|
|
4
4
|
<loginForm
|
|
5
5
|
ref="login-form"
|
|
6
6
|
:before-login="beforeLogin"
|
|
@@ -87,6 +87,7 @@
|
|
|
87
87
|
:login-then="loginThenT"
|
|
88
88
|
:async-rela-nos="asyncRelaNos"
|
|
89
89
|
:extra-form="extraForm"
|
|
90
|
+
:show-image-code="showImageCode"
|
|
90
91
|
@changType="getChangetype"
|
|
91
92
|
>
|
|
92
93
|
<div slot="header" class="login-form-header m-b text-c">{{ '欢 迎 登 录' | $lc }}</div>
|
|
@@ -173,6 +174,10 @@ export default {
|
|
|
173
174
|
asyncRelaNos: {
|
|
174
175
|
type: Boolean,
|
|
175
176
|
default: false
|
|
177
|
+
},
|
|
178
|
+
showImageCode: {
|
|
179
|
+
type: Boolean,
|
|
180
|
+
default: true
|
|
176
181
|
}
|
|
177
182
|
},
|
|
178
183
|
data() {
|
|
@@ -531,8 +536,10 @@ export default {
|
|
|
531
536
|
position: absolute;
|
|
532
537
|
right: 103px;
|
|
533
538
|
top: 50%;
|
|
534
|
-
|
|
539
|
+
width: 324px;
|
|
540
|
+
min-height: 360px;
|
|
535
541
|
padding: 30px 30px 18px !important;
|
|
542
|
+
transform: translateY(-50%);
|
|
536
543
|
background: #f7f6f6;
|
|
537
544
|
}
|
|
538
545
|
.login-bg-light .login-form {
|
package/src/utils/axios.js
CHANGED
|
@@ -111,9 +111,9 @@ function errorFn(status, msg, noMsg, isErr, res) {
|
|
|
111
111
|
} else if (status === 500 || (isErr && msg.includes('500'))) {
|
|
112
112
|
noMsg || showMsg($lc('500,服务器链接失败!'))
|
|
113
113
|
} else if (status === 'ECONNABORTED' && msg.includes('timeout')) {
|
|
114
|
-
showMsg($lc('请求超时'))
|
|
114
|
+
noMsg || showMsg($lc('请求超时'))
|
|
115
115
|
} else if (msg === 'Network Error') {
|
|
116
|
-
showMsg($lc('请求错误'))
|
|
116
|
+
noMsg || showMsg($lc('请求错误'))
|
|
117
117
|
} else if (status >= 900 || status === -1) {
|
|
118
118
|
noMsg || showMsg(msg)
|
|
119
119
|
} else {
|