n20-common-lib 2.7.28 → 2.7.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/package.json
CHANGED
|
@@ -124,10 +124,12 @@
|
|
|
124
124
|
</el-form-item>
|
|
125
125
|
</el-form>
|
|
126
126
|
<div v-if="authList.includes('byAddTask') && addTaskList.length > 0" class="text-c">
|
|
127
|
-
<el-button v-if="authList.includes('approval')" type="primary" @click="
|
|
127
|
+
<el-button v-if="authList.includes('approval')" type="primary" @click="checkFlowFn">{{
|
|
128
|
+
'加 签' | $lc
|
|
129
|
+
}}</el-button>
|
|
128
130
|
</div>
|
|
129
131
|
<div v-if="authList.includes('byAddTask') && !addTaskList.length" class="text-c">
|
|
130
|
-
<el-button type="primary" @click="
|
|
132
|
+
<el-button type="primary" @click="checkFlowFn">{{ '批 准' | $lc }}</el-button>
|
|
131
133
|
<el-button type="primary" @click="approvalToV = true">{{ '批准至' | $lc }}</el-button>
|
|
132
134
|
<el-button plain @click="rejectToB">{{ '驳回至' | $lc }}</el-button>
|
|
133
135
|
<el-button plain @click="rejectFn">{{ '驳回至发起人' | $lc }}</el-button>
|
|
@@ -139,7 +141,9 @@
|
|
|
139
141
|
<el-button plain @click="goFrom">{{ '返 回' | $lc }}</el-button>
|
|
140
142
|
</div>
|
|
141
143
|
<div v-else-if="!authList.includes('byAddTask')" class="text-c">
|
|
142
|
-
<el-button v-if="authList.includes('approval')" type="primary" @click="
|
|
144
|
+
<el-button v-if="authList.includes('approval')" type="primary" @click="checkFlowFn">{{
|
|
145
|
+
'批 准' | $lc
|
|
146
|
+
}}</el-button>
|
|
143
147
|
<el-button v-if="authList.includes('approval') && nextApproval && nextBtn" type="primary" @click="approvalNext">{{
|
|
144
148
|
'批准并审批下一条' | $lc
|
|
145
149
|
}}</el-button>
|
|
@@ -624,6 +628,9 @@ export default {
|
|
|
624
628
|
})
|
|
625
629
|
})
|
|
626
630
|
},
|
|
631
|
+
onContinue() {
|
|
632
|
+
this.approvalFn()
|
|
633
|
+
},
|
|
627
634
|
async checkFlowFn() {
|
|
628
635
|
if (this.requiredC && !this.messageC) {
|
|
629
636
|
return this.errMsgFn(
|
|
@@ -633,14 +640,24 @@ export default {
|
|
|
633
640
|
if (this.addTaskList.length > 0 && !this.addTaskType) {
|
|
634
641
|
return this.addErrFn()
|
|
635
642
|
}
|
|
636
|
-
let { isCheck } = this.$route.query
|
|
643
|
+
let { isCheck, taskId, appNo, groupNo, typeCode, orderId } = this.$route.query
|
|
637
644
|
let params = {
|
|
638
645
|
plainText: '',
|
|
639
646
|
signText: '',
|
|
640
647
|
isCheck,
|
|
641
|
-
auditAdvanceDtos:
|
|
648
|
+
auditAdvanceDtos: [
|
|
649
|
+
{
|
|
650
|
+
appNo: appNo,
|
|
651
|
+
taskId,
|
|
652
|
+
groupNo,
|
|
653
|
+
typeCode,
|
|
654
|
+
isAgentcy,
|
|
655
|
+
isCheck,
|
|
656
|
+
businessId: orderId
|
|
657
|
+
}
|
|
658
|
+
]
|
|
642
659
|
}
|
|
643
|
-
const { code, data } = await this.$axios.post(`/bems/activiti/admin/todo/checkFlowNew
|
|
660
|
+
const { code, data } = await this.$axios.post(`/bems/activiti/admin/todo/checkFlowNew`, params)
|
|
644
661
|
if (code === 200) {
|
|
645
662
|
this.promptType = data.promptType
|
|
646
663
|
switch (data.promptType) {
|
|
@@ -662,7 +679,6 @@ export default {
|
|
|
662
679
|
},
|
|
663
680
|
// 审批
|
|
664
681
|
approvalFn() {
|
|
665
|
-
this.checkFlowFn()
|
|
666
682
|
if (this.requiredC && !this.messageC) {
|
|
667
683
|
return this.errMsgFn(
|
|
668
684
|
this.authList.includes('byAddTask') && this.addTaskList.length > 0 ? $lc('加签') : $lc('批准')
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
:data="row['_fileData'] || fileData"
|
|
99
99
|
:msg-type="null"
|
|
100
100
|
:show-clear="false"
|
|
101
|
-
:action="action"
|
|
101
|
+
:action="apiPrefix ? apiPrefix + action : action"
|
|
102
102
|
:multiple="multiple"
|
|
103
103
|
:headers="headers"
|
|
104
104
|
:disabled="!row[keys.type] || row._typeDisabled"
|
|
@@ -231,7 +231,7 @@
|
|
|
231
231
|
:auto-upload="false"
|
|
232
232
|
:multiple="true"
|
|
233
233
|
:show-file-list="true"
|
|
234
|
-
:action="action"
|
|
234
|
+
:action="apiPrefix ? apiPrefix + action : action"
|
|
235
235
|
:data="fileData"
|
|
236
236
|
:headers="headers"
|
|
237
237
|
:accept="fileAccept"
|
|
@@ -257,14 +257,14 @@
|
|
|
257
257
|
</template>
|
|
258
258
|
|
|
259
259
|
<script>
|
|
260
|
-
import { $lc } from '../../utils/i18n/index'
|
|
261
260
|
import dayjs from 'dayjs'
|
|
262
|
-
import axios from '../../utils/axios'
|
|
263
|
-
import Upload from '../Upload/index.vue'
|
|
264
|
-
import Dialog from '../Dialog/index.vue'
|
|
265
261
|
import cloneDeep from 'lodash/cloneDeep'
|
|
266
262
|
import 'viewerjs/dist/viewer.css'
|
|
263
|
+
import axios from '../../utils/axios'
|
|
264
|
+
import { $lc } from '../../utils/i18n/index'
|
|
267
265
|
import importG from '../../utils/importGlobal.js'
|
|
266
|
+
import Dialog from '../Dialog/index.vue'
|
|
267
|
+
import Upload from '../Upload/index.vue'
|
|
268
268
|
|
|
269
269
|
const ViewerImg = async function () {
|
|
270
270
|
let { component } = await importG('v-viewer', () => import(/*webpackChunkName: "v-viewer"*/ 'v-viewer'))
|
|
@@ -321,10 +321,18 @@ export default {
|
|
|
321
321
|
type: String,
|
|
322
322
|
default: '/bems/1.0/attach'
|
|
323
323
|
},
|
|
324
|
+
batchPrintMethod: {
|
|
325
|
+
type: Function,
|
|
326
|
+
default: undefined
|
|
327
|
+
},
|
|
324
328
|
headers: {
|
|
325
329
|
type: Object,
|
|
326
330
|
default: undefined
|
|
327
331
|
},
|
|
332
|
+
apiPrefix: {
|
|
333
|
+
type: String,
|
|
334
|
+
default: undefined
|
|
335
|
+
},
|
|
328
336
|
seePrefix: {
|
|
329
337
|
type: String,
|
|
330
338
|
default: undefined
|
|
@@ -435,8 +443,11 @@ export default {
|
|
|
435
443
|
showClose: true
|
|
436
444
|
})
|
|
437
445
|
}
|
|
438
|
-
|
|
439
|
-
|
|
446
|
+
if (this.batchPrintMethod) {
|
|
447
|
+
return this.batchPrintMethod(this.selectionList)
|
|
448
|
+
}
|
|
449
|
+
const { code, data } = await axios.post(
|
|
450
|
+
apiPrefix ? apiPrefix + `/neams/eamsbaserecord/mergeDownladPdf` : `/neams/eamsbaserecord/mergeDownladPdf`,
|
|
440
451
|
this.selectionList.map((res) => res.beid) || [],
|
|
441
452
|
{
|
|
442
453
|
responseType: 'blob'
|
|
@@ -539,9 +550,15 @@ export default {
|
|
|
539
550
|
}
|
|
540
551
|
} else {
|
|
541
552
|
// 下载
|
|
542
|
-
let blob = await axios.get(
|
|
543
|
-
|
|
544
|
-
|
|
553
|
+
let blob = await axios.get(
|
|
554
|
+
apiPrefix
|
|
555
|
+
? apiPrefix + `/neams/eamsbaserecord/download/${row[this.keys.rowKey]}`
|
|
556
|
+
: `/neams/eamsbaserecord/download/${row[this.keys.rowKey]}`,
|
|
557
|
+
null,
|
|
558
|
+
{
|
|
559
|
+
responseType: 'blob'
|
|
560
|
+
}
|
|
561
|
+
)
|
|
545
562
|
let name = row[this.keys.name] || blob.name
|
|
546
563
|
return {
|
|
547
564
|
url: URL.createObjectURL(blob),
|