n20-common-lib 2.22.51 → 2.22.53
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/AIButton/index.vue +6 -5
- package/src/components/ApprovalButtons/index.vue +3 -3
- package/src/components/ApprovalButtons/indexApp.vue +10 -29
- package/src/components/ApprovalButtons/selectSpr.vue +1 -1
- package/src/components/ApprovalButtons/showAppOpi.vue +5 -5
- package/src/components/ApprovalButtons/showOtherAttr.vue +2 -2
- package/src/components/ApprovalButtons/showOtherAttrNew.vue +8 -6
- package/src/components/ApprovalCard/index.vue +6 -6
- package/src/components/ApprovalCard/indexApp.vue +2 -2
- package/src/components/ApprovalRecord/approvalImg.vue +1 -1
- package/src/components/ApprovalRecord/approvalImgPro/child.vue +3 -3
- package/src/components/ApprovalRecord/approvalImgPro/index.vue +40 -39
- package/src/components/AttachmentPass/index.vue +7 -7
- package/src/components/DateChoose/index.vue +41 -36
- package/src/components/DatePicker/index.vue +2 -2
- package/src/components/DateSelect/busiDate.vue +5 -4
- package/src/components/DateSelect/index.vue +9 -8
- package/src/components/DateSelect/quarterDatePicker.vue +12 -11
- package/src/components/Diff/index.vue +2 -1
- package/src/components/DynamicField/DynamicField.vue +1 -1
- package/src/components/DynamicField/DynamicFieldMixin.js +3 -2
- package/src/components/DynamicField/DynamicFieldOptions.vue +80 -58
- package/src/components/DynamicField/DynamicTable.vue +4 -4
- package/src/components/DynamicField/contentPop.vue +8 -6
- package/src/components/DynamicField/tableList.vue +7 -5
- package/src/components/DynamicField/tableView.vue +20 -6
- package/src/components/ElectronicArchive/index.vue +18 -16
- package/src/components/EventBubble/demo/c.vue +2 -1
- package/src/components/FileExportAsync/index.vue +11 -10
- package/src/components/FileImport/index.vue +2 -1
- package/src/components/FileUploadTable/FileUploadTableV3.vue +10 -11
- package/src/components/FileUploadTable/aiCheckDialog.vue +13 -11
- package/src/components/FileUploadTable/index.vue +15 -14
- package/src/components/Filters/indexO.vue +3 -2
- package/src/components/HandlingAdvice/index.vue +4 -3
- package/src/components/InputNumber/index.vue +2 -1
- package/src/components/Layout/HeaderWrap/changePwd.vue +8 -7
- package/src/components/Layout/HeaderWrap/index.vue +11 -10
- package/src/components/Layout/HeaderWrap/indexN.vue +21 -20
- package/src/components/Layout/HeaderWrap/noticePop.vue +8 -7
- package/src/components/Layout/HeaderWrap/switchUser.vue +1 -1
- package/src/components/Layout/index.vue +2 -1
- package/src/components/Layout/indexN.vue +2 -1
- package/src/components/LoginSetting/index.vue +14 -13
- package/src/components/LoginSetting/indexN.vue +11 -10
- package/src/components/LoginSetting/setItem.vue +22 -21
- package/src/components/LoginTemporary/form.vue +17 -16
- package/src/components/LoginTemporary/index.vue +5 -4
- package/src/components/LoginTemporary/indexN.vue +20 -19
- package/src/components/LoginTemporary/retrievePw.vue +11 -10
- package/src/components/PageHeader/index.vue +2 -1
- package/src/components/SelectDatePickerPro/busiDate.vue +6 -4
- package/src/components/SelectDatePickerPro/halfYearPicker.vue +3 -2
- package/src/components/SelectDatePickerPro/index.vue +13 -11
- package/src/components/SelectDatePickerPro/quarterDatePicker.vue +6 -4
- package/src/components/SelectTree/pro.vue +1 -1
- package/src/components/ShowColumn/index.vue +13 -12
- package/src/components/Stamp/index.vue +8 -7
- package/src/components/Statis/index.vue +9 -8
- package/src/components/Statis/statisItem.vue +4 -3
- package/src/components/Table/indexO.vue +2 -1
- package/src/components/TablePro/filterContent.vue +2 -2
- package/src/components/TablePro/filterContent_tree.vue +6 -5
- package/src/components/TablePro/index.js +2 -1
- package/src/components/TablePro/index.vue +2 -1
- package/src/components/TableTransfer/index.vue +2 -1
- package/src/components/Upload/index.vue +9 -8
- package/src/components/Upload/uploadMsg.vue +2 -1
- package/src/components/WornPagination/index.vue +3 -1
- package/src/components/operatingStatus/index.vue +9 -7
- package/src/i18n.json +5800 -714
- package/src/index.js +2 -2
- package/src/plugins/SetMenuTree/index.vue +1 -1
- package/src/plugins/SetMenuTree/setmenutree.vue +36 -34
- package/src/plugins/Sign/CaMap.js +12 -11
- package/src/plugins/Sign/Itrus/index.js +58 -56
- package/src/plugins/Sign/Itrus/sign_3720.js +53 -51
- package/src/plugins/Sign/NetSM3/index.js +12 -10
- package/src/plugins/Sign/NetV3/index.js +20 -18
- package/src/plugins/Sign/SkfSign/index.js +12 -10
- package/src/plugins/Sign/bjca/XTXSAB.js +17 -16
- package/src/plugins/Sign/bjca/index.js +19 -17
- package/src/plugins/Sign/cfca/index.js +11 -9
- package/src/plugins/Sign/codeMap.js +151 -150
- package/src/plugins/Sign/hnca/index.js +51 -49
- package/src/plugins/Sign/index.js +6 -4
- package/src/plugins/Sign/kySign/index.js +11 -9
- package/src/plugins/Sign/netca/index.js +9 -7
- package/src/plugins/Sign/netca/netca.base.1.1.0.js +29 -28
- package/src/plugins/Sign/sdca/index.js +17 -15
- package/src/plugins/Sign/sign.js +10 -8
- package/src/plugins/Sign/signV3/sign.js +14 -12
- package/src/plugins/Sign/sign_back.js +11 -9
- package/src/utils/amountInWords.js +8 -6
- package/src/utils/axios.js +9 -8
- package/src/utils/relaNo.js +3 -1
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<span>
|
|
3
3
|
<slot :customEvent="aiFn">
|
|
4
|
-
<el-button v-title="'AI识别'" type="text" icon="n20-icon-query" @click="aiFn" />
|
|
4
|
+
<el-button v-title="$lc('AI识别')" type="text" icon="n20-icon-query" @click="aiFn" />
|
|
5
5
|
</slot>
|
|
6
|
-
<Dialog v-drag :visible.sync="visible" title="AI识别" :destroy-on-open="true" width="690px">
|
|
6
|
+
<Dialog v-drag :visible.sync="visible" :title="$lc('AI识别')" :destroy-on-open="true" width="690px">
|
|
7
7
|
<cl-upload
|
|
8
8
|
:drag="true"
|
|
9
9
|
:file-name.sync="fileName"
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
>
|
|
16
16
|
<template slot="trigger">
|
|
17
17
|
<i class="drag-icon n20-icon-shangchuan"></i>
|
|
18
|
-
<span class="drag-text"
|
|
18
|
+
<span class="drag-text">{{ $lc('点击或将文件拖拽到这里上传') }}</span>
|
|
19
19
|
</template>
|
|
20
20
|
</cl-upload>
|
|
21
21
|
</Dialog>
|
|
@@ -26,6 +26,7 @@
|
|
|
26
26
|
import Dialog from '../Dialog/index.vue'
|
|
27
27
|
import clUpload from '../Upload/index.vue'
|
|
28
28
|
import axios from '../../utils/axios.js'
|
|
29
|
+
import { $lc } from '../../utils/i18n/index.js'
|
|
29
30
|
let dayjs = undefined
|
|
30
31
|
import('../../index.js').then((res) => {
|
|
31
32
|
dayjs = res.dayjs
|
|
@@ -79,7 +80,7 @@ export default {
|
|
|
79
80
|
async AiFn(beid) {
|
|
80
81
|
const uploadTime = dayjs().format('YYYY-MM-DD HH:mm:ss')
|
|
81
82
|
if (!this.AIOptions.bussType) {
|
|
82
|
-
this.$message.error('请先配置bussType')
|
|
83
|
+
this.$message.error($lc('请先配置bussType'))
|
|
83
84
|
return false
|
|
84
85
|
}
|
|
85
86
|
const { data, code } = await axios.post(
|
|
@@ -93,7 +94,7 @@ export default {
|
|
|
93
94
|
if (code === 200) {
|
|
94
95
|
this.$emit('aiFn', { AiResult: data, beid: beid, fileName: this.fileName, uploadTime: uploadTime })
|
|
95
96
|
this.visible = false
|
|
96
|
-
this.$message.success('识别成功')
|
|
97
|
+
this.$message.success($lc(' 识别成功'))
|
|
97
98
|
}
|
|
98
99
|
}
|
|
99
100
|
}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<!-- 自定义项 -->
|
|
5
5
|
<ExpandablePane
|
|
6
6
|
v-if="taskId && showBtn && authList.includes('isShowOtherAtt')"
|
|
7
|
-
title="自定义项"
|
|
7
|
+
:title="$lc('自定义项')"
|
|
8
8
|
:default-expand="otherExpand"
|
|
9
9
|
>
|
|
10
10
|
<el-form ref="approveBtnGroup" label-position="top">
|
|
@@ -600,7 +600,7 @@ export default {
|
|
|
600
600
|
}
|
|
601
601
|
// addTaskTip 是否给出加签提示
|
|
602
602
|
if (res.code === 200 && res.data && res.data.addTaskTip && !this.addTaskList.length) {
|
|
603
|
-
this.$confirm('请检查是否向后加签', $lc('提示'), {
|
|
603
|
+
this.$confirm($lc('请检查是否向后加签'), $lc('提示'), {
|
|
604
604
|
confirmButtonText: $lc('确定'),
|
|
605
605
|
cancelButtonText: $lc('取消'),
|
|
606
606
|
type: 'warning'
|
|
@@ -984,7 +984,7 @@ export default {
|
|
|
984
984
|
onContinue() {
|
|
985
985
|
if (this.isWyfk) {
|
|
986
986
|
this.attributes = {
|
|
987
|
-
ebsPaymentRiskWarning: '核实无误'
|
|
987
|
+
ebsPaymentRiskWarning: $lc('核实无误')
|
|
988
988
|
}
|
|
989
989
|
} else {
|
|
990
990
|
this.attributes = undefined
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
/* 审批按钮组 */
|
|
2
1
|
<template>
|
|
3
2
|
<div :class="prefixCls">
|
|
4
|
-
<!-- 自定义项 -->
|
|
5
3
|
<ExpandablePane
|
|
6
4
|
v-if="taskId && showBtn && authList.includes('isShowOtherAtt')"
|
|
7
|
-
title="自定义项"
|
|
5
|
+
:title="$lc('自定义项')"
|
|
8
6
|
:default-expand="false"
|
|
9
7
|
>
|
|
10
8
|
<el-form ref="approveBtnGroup" label-position="right" :label-width="_lang === 'zh' ? '12em' : '12em'">
|
|
@@ -16,16 +14,6 @@
|
|
|
16
14
|
</div>
|
|
17
15
|
</el-form>
|
|
18
16
|
</ExpandablePane>
|
|
19
|
-
<!-- <div class="n20-form-expandable-pane">
|
|
20
|
-
<div class="n20-title flex-box flex-lr flex-v" :class="titleClass">
|
|
21
|
-
<span class="n20-tips flex-item">
|
|
22
|
-
<slot name="title">
|
|
23
|
-
<span>{{ $lc('流程处理') }}</span>
|
|
24
|
-
</slot>
|
|
25
|
-
</span>
|
|
26
|
-
</div>
|
|
27
|
-
</div> -->
|
|
28
|
-
<!-- 抄送加签 -->
|
|
29
17
|
<el-form ref="approveBtnGroup" label-position="right" :label-width="_lang === 'zh' ? '6em' : '12em'">
|
|
30
18
|
<div v-if="taskId && showBtn" class="flex-box">
|
|
31
19
|
<el-form-item v-if="authList.includes('isCarboncopy')" :label="'抄送' | $lc" class="flex-1 m-b-s">
|
|
@@ -44,13 +32,6 @@
|
|
|
44
32
|
>
|
|
45
33
|
<label slot="label">
|
|
46
34
|
<span>{{ '加签' | $lc }}</span>
|
|
47
|
-
<!-- <el-tooltip placement="top">
|
|
48
|
-
<span class="n20-icon-xinxitishi m-l-ss" style="position: static"></span>
|
|
49
|
-
<div slot="content" style="width: 16em; line-height: 1.6">
|
|
50
|
-
{{ '会签并行:增加一个会签节点,全部审批人同意才可通过审批' | $lc }}<br />
|
|
51
|
-
{{ '普通串行:按照加签人数增加节点,每个节点审批通过才可完成当前加签流程' | $lc }}
|
|
52
|
-
</div>
|
|
53
|
-
</el-tooltip> -->
|
|
54
35
|
</label>
|
|
55
36
|
<div class="flex-box">
|
|
56
37
|
<el-select
|
|
@@ -106,7 +87,7 @@
|
|
|
106
87
|
ref="msg-input"
|
|
107
88
|
v-model="messageC"
|
|
108
89
|
type="textarea"
|
|
109
|
-
placeholder="请输入审批意见"
|
|
90
|
+
:placeholder="$lc('请输入审批意见')"
|
|
110
91
|
:maxlength="messageMax"
|
|
111
92
|
show-word-limit
|
|
112
93
|
:autosize="{ minRows: 2 }"
|
|
@@ -145,7 +126,7 @@
|
|
|
145
126
|
</div>
|
|
146
127
|
|
|
147
128
|
<div v-else-if="!authList.includes('byAddTask')" class="text-c">
|
|
148
|
-
<div v-if="!approveBtns" style="text-align: center; font-size: 18px"
|
|
129
|
+
<div v-if="!approveBtns" style="text-align: center; font-size: 18px">{{ $lc('请点击左上角返回处,进入OA待办页面') }}</div>
|
|
149
130
|
<!-- 特殊会签按钮 START -->
|
|
150
131
|
<el-button v-if="authList.includes('pass')" type="primary" @click="checkFlowFn">{{
|
|
151
132
|
btnsNames['pass']
|
|
@@ -288,23 +269,23 @@
|
|
|
288
269
|
<span slot="footer">
|
|
289
270
|
<div v-if="promptType === '1'">
|
|
290
271
|
<el-button v-if="checkSum !== errorCount" type="primary" @click="onContinue">{{
|
|
291
|
-
$
|
|
272
|
+
$lc(isWyfk ? '核实无误' : '继续审批')
|
|
292
273
|
}}</el-button>
|
|
293
|
-
<el-button plain @click="onceCancelFn">{{ $
|
|
274
|
+
<el-button plain @click="onceCancelFn">{{ $lc('取消') }}</el-button>
|
|
294
275
|
<div v-if="checkSum !== errorCount" class="m-t-s color-danger f-s-s">
|
|
295
276
|
<span v-if="isWyfk">
|
|
296
|
-
{{ $
|
|
277
|
+
{{ $lc('*点击【核实无误】将提交校验通过和待确认数据,未通过数据需要到待审核详情页处理。') }}</span
|
|
297
278
|
>
|
|
298
279
|
<span v-else>{{
|
|
299
|
-
$
|
|
280
|
+
$lc('*点击【继续审批】将提交校验通过和待确认数据,未通过数据需要到待审核详情页处理。')
|
|
300
281
|
}}</span>
|
|
301
282
|
</div>
|
|
302
283
|
</div>
|
|
303
284
|
<div v-if="promptType === '2'">
|
|
304
285
|
<el-button v-if="checkSum !== errorCount" type="primary" @click="onContinue">{{
|
|
305
|
-
$
|
|
286
|
+
$lc(isWyfk ? '核实无误' : '继续审批')
|
|
306
287
|
}}</el-button>
|
|
307
|
-
<el-button plain @click="onceCancelFn">{{ $
|
|
288
|
+
<el-button plain @click="onceCancelFn">{{ $lc('取消') }}</el-button>
|
|
308
289
|
</div>
|
|
309
290
|
</span>
|
|
310
291
|
</cl-dialog>
|
|
@@ -879,7 +860,7 @@ export default {
|
|
|
879
860
|
if (this.isWyfk) {
|
|
880
861
|
this.attributes = {
|
|
881
862
|
appOrPc: '3',
|
|
882
|
-
ebsPaymentRiskWarning:
|
|
863
|
+
ebsPaymentRiskWarning: $lc("核实无误")
|
|
883
864
|
}
|
|
884
865
|
} else {
|
|
885
866
|
this.attributes = { appOrPc: '3' }
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
</div>
|
|
49
49
|
<template slot="footer">
|
|
50
50
|
<div class="flex-box m-t m-b" style="margin-left: calc(30% + 50px)">
|
|
51
|
-
<cl-statis-item type="已选合计" :list="[{ label: '笔数', value: personList.length }]" show-w />
|
|
51
|
+
<cl-statis-item :type="$lc('已选合计')" :list="[{ label: $lc('笔数'), value: personList.length }]" show-w />
|
|
52
52
|
</div>
|
|
53
53
|
<div class="text-c">
|
|
54
54
|
<el-button type="primary" @click="confirmFn">{{ '确定' | $lc }}</el-button>
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
<el-input
|
|
76
76
|
v-model="row.suggestion"
|
|
77
77
|
slot-scope="{ row }"
|
|
78
|
-
placeholder="请输入"
|
|
78
|
+
:placeholder="$lc('请输入')"
|
|
79
79
|
size="normal"
|
|
80
80
|
clearable
|
|
81
81
|
maxlength="500"
|
|
@@ -200,14 +200,14 @@ export default {
|
|
|
200
200
|
case '保存为常用语':
|
|
201
201
|
axios.post('/bems/activiti/actAppOpi/saveAppOpi', { message: this.message }).then((res) => {
|
|
202
202
|
if (res.code === 200) {
|
|
203
|
-
this.$message.success('保存成功')
|
|
203
|
+
this.$message.success($lc('保存成功'))
|
|
204
204
|
}
|
|
205
205
|
})
|
|
206
206
|
break
|
|
207
207
|
case '保存':
|
|
208
208
|
V = this.tableDataA.some((d) => !d.suggestion)
|
|
209
209
|
if (V) {
|
|
210
|
-
return this.$message.error('审批意见不能为空')
|
|
210
|
+
return this.$message.error($lc('审批意见不能为空'))
|
|
211
211
|
}
|
|
212
212
|
list = []
|
|
213
213
|
this.tableDataA.forEach((d) => {
|
|
@@ -218,7 +218,7 @@ export default {
|
|
|
218
218
|
})
|
|
219
219
|
axios.post('/bems/activiti/actAppOpi/saveList', list).then((res) => {
|
|
220
220
|
if (res.code === 200) {
|
|
221
|
-
this.$message.success('保存成功')
|
|
221
|
+
this.$message.success($lc('保存成功'))
|
|
222
222
|
this.setSpr = false
|
|
223
223
|
this.show = true
|
|
224
224
|
this.getData()
|
|
@@ -241,7 +241,7 @@ export default {
|
|
|
241
241
|
break
|
|
242
242
|
case '批量删除':
|
|
243
243
|
if (this.selectValue.length === 0) {
|
|
244
|
-
this.$message.warning('请选择要删除的数据')
|
|
244
|
+
this.$message.warning($lc('请选择要删除的数据'))
|
|
245
245
|
return false
|
|
246
246
|
}
|
|
247
247
|
this.selectValue.forEach((item) => {
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
</template>
|
|
9
9
|
|
|
10
10
|
<script>
|
|
11
|
-
|
|
11
|
+
import { $lc } from '../../utils/i18n/index'
|
|
12
12
|
import axios from '../../utils/axios'
|
|
13
13
|
export default {
|
|
14
14
|
props: {
|
|
@@ -44,7 +44,7 @@ export default {
|
|
|
44
44
|
try {
|
|
45
45
|
this.otherattjson = JSON.parse(other.otherattjson) || []
|
|
46
46
|
} catch (error) {
|
|
47
|
-
console.warn(other.otherattjson, '配置的不对')
|
|
47
|
+
console.warn(other.otherattjson, $lc('配置的不对'))
|
|
48
48
|
}
|
|
49
49
|
if (!Array.isArray(this.otherattjson)) {
|
|
50
50
|
this.otherattjson = []
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
v-if="['11'].includes(item.cfgType)"
|
|
18
18
|
v-model="item.cfgVal"
|
|
19
19
|
:type="'text'"
|
|
20
|
-
placeholder="请输入"
|
|
20
|
+
:placeholder="$lc('请输入')"
|
|
21
21
|
class="input-w"
|
|
22
22
|
clearable
|
|
23
23
|
/>
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
v-if="['12'].includes(item.cfgType)"
|
|
26
26
|
v-model="item.cfgVal"
|
|
27
27
|
:type="'textarea'"
|
|
28
|
-
placeholder="请输入"
|
|
28
|
+
:placeholder="$lc('请输入')"
|
|
29
29
|
clearable
|
|
30
30
|
/>
|
|
31
31
|
<el-select
|
|
@@ -62,15 +62,15 @@
|
|
|
62
62
|
value-format="yyyy-MM-dd"
|
|
63
63
|
type="date"
|
|
64
64
|
class="input-w"
|
|
65
|
-
placeholder="选择日期"
|
|
65
|
+
:placeholder="$lc('选择日期')"
|
|
66
66
|
/>
|
|
67
67
|
</el-form-item>
|
|
68
68
|
<el-form-item
|
|
69
69
|
v-if="item.cfgHasRemark === '1' && !['11', '12'].includes(item.cfgType)"
|
|
70
70
|
class="m-r-ss m-b-s flex-1"
|
|
71
|
-
label="备注"
|
|
71
|
+
:label="$lc('备注')"
|
|
72
72
|
>
|
|
73
|
-
<el-input v-model="item.cfgRemark" class="input-w" placeholder="请输入备注" />
|
|
73
|
+
<el-input v-model="item.cfgRemark" class="input-w" :placeholder="$lc('请输入备注')" />
|
|
74
74
|
</el-form-item>
|
|
75
75
|
</div>
|
|
76
76
|
</div>
|
|
@@ -78,6 +78,8 @@
|
|
|
78
78
|
|
|
79
79
|
<script>
|
|
80
80
|
import axios from '../../utils/axios'
|
|
81
|
+
import { $lc } from '../../utils/i18n/index'
|
|
82
|
+
|
|
81
83
|
export default {
|
|
82
84
|
name: 'ShowOtherAttrNew',
|
|
83
85
|
props: {
|
|
@@ -162,7 +164,7 @@ export default {
|
|
|
162
164
|
}
|
|
163
165
|
}
|
|
164
166
|
} catch (e) {
|
|
165
|
-
console.error('解析cfgJson失败', e)
|
|
167
|
+
console.error($lc('解析cfgJson失败'), e)
|
|
166
168
|
}
|
|
167
169
|
},
|
|
168
170
|
getData(data) {
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
</span>
|
|
81
81
|
</div>
|
|
82
82
|
<div v-if="item.approvalCost" class="approval-info-cost">
|
|
83
|
-
<span
|
|
83
|
+
<span>{{ $lc('审批时长:') }}</span>
|
|
84
84
|
<span>{{ item.approvalCost }}</span>
|
|
85
85
|
</div>
|
|
86
86
|
<div v-if="item.showConnect === '1'" class="approval-info-detail">
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
<span v-if="item.addTaskName">{{ '加签审批人:' | $lc }}{{ item.addTaskName }}</span>
|
|
100
100
|
</div>
|
|
101
101
|
|
|
102
|
-
<template v-if="item.resultName !== '撤回' || showCtdMsg">
|
|
102
|
+
<template v-if="item.resultName !== $lc('撤回') || showCtdMsg">
|
|
103
103
|
<div v-if="item.subProcInitId" class="n20-description-c n20-description-bgc m-t p-a-s">
|
|
104
104
|
<span class="color-primary pointer" @click="seeApproveChild(item.subProcInitId)"
|
|
105
105
|
>{{ item.suggestion }}<i class="n20-icon-shouqizhedie f-s-m"></i
|
|
@@ -192,7 +192,7 @@
|
|
|
192
192
|
<div v-if="row.addTaskName" class="n20-description-c m-t">
|
|
193
193
|
{{ '加签审批人:' | $lc }}{{ row.addTaskName }}
|
|
194
194
|
</div>
|
|
195
|
-
<div v-if="row.resultName !== '撤回' || showCtdMsg">
|
|
195
|
+
<div v-if="row.resultName !== $lc('撤回') || showCtdMsg">
|
|
196
196
|
<div v-if="row.suggestion" class="n20-description-c n20-description-bgc m-t p-a-s">
|
|
197
197
|
<span v-if="row.result !== status.waiting">{{ '审批意见:' | $lc }}</span>
|
|
198
198
|
<span style="line-height: 22px">{{ row.suggestion }} </span>
|
|
@@ -247,7 +247,7 @@
|
|
|
247
247
|
@close="closeSee"
|
|
248
248
|
>
|
|
249
249
|
<span class="file-upload-table_preview-pn">
|
|
250
|
-
<el-button plain size="mini" @click="downFile(seeRow)"
|
|
250
|
+
<el-button plain size="mini" @click="downFile(seeRow)">{{ $lc('下载') }}</el-button>
|
|
251
251
|
</span>
|
|
252
252
|
<div v-if="visibleP" class="p-a" style="height: 82vh">
|
|
253
253
|
<!-- <ViewerImg v-if="imgType.test(previewName)" :options="viewerOptions" style="height: 100%">
|
|
@@ -323,7 +323,7 @@
|
|
|
323
323
|
@close="closeSee"
|
|
324
324
|
>
|
|
325
325
|
<span class="file-upload-table_preview-pn">
|
|
326
|
-
<el-button plain size="mini" @click="downFile(seeRow)"
|
|
326
|
+
<el-button plain size="mini" @click="downFile(seeRow)">{{ $lc('下载') }}</el-button>
|
|
327
327
|
</span>
|
|
328
328
|
<div v-if="visibleP" class="p-a" style="height: 82vh">
|
|
329
329
|
<!-- <ViewerImg v-if="imgType.test(previewName)" :options="viewerOptions" style="height: 100%">
|
|
@@ -509,7 +509,7 @@ export default {
|
|
|
509
509
|
businessId: item._details.businessId
|
|
510
510
|
})
|
|
511
511
|
} else {
|
|
512
|
-
this.$message.error(
|
|
512
|
+
this.$message.error($lc("未配置审批详情链接"))
|
|
513
513
|
}
|
|
514
514
|
},
|
|
515
515
|
async seeApproveChild(id) {
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
<span v-if="item.addTaskName">{{ '加签审批人:' | $lc }}{{ item.addTaskName }}</span>
|
|
91
91
|
</div>
|
|
92
92
|
|
|
93
|
-
<template v-if="item.resultName !== '撤回' || showCtdMsg">
|
|
93
|
+
<template v-if="item.resultName !== $lc('撤回') || showCtdMsg">
|
|
94
94
|
<!-- 子流程app暂时屏蔽 -->
|
|
95
95
|
<!-- <div v-if="item.subProcInitId" class="n20-description-c n20-description-bgc m-t p-a-s">
|
|
96
96
|
<span class="color-primary pointer" @click="seeApproveChild(item.subProcInitId)"
|
|
@@ -465,7 +465,7 @@ export default {
|
|
|
465
465
|
businessId: item._details.businessId
|
|
466
466
|
})
|
|
467
467
|
} else {
|
|
468
|
-
this.$message.error(
|
|
468
|
+
this.$message.error($lc("未配置审批详情链接"))
|
|
469
469
|
}
|
|
470
470
|
},
|
|
471
471
|
async seeApproveChild(id) {
|
|
@@ -55,9 +55,9 @@
|
|
|
55
55
|
<div v-if="assignee" :class="{ 'm-t-s': assigneeEnd }">{{ assignee }}</div>
|
|
56
56
|
|
|
57
57
|
<div v-if="taskCandidate" class="m-t-ss m-b-ss">
|
|
58
|
-
<div v-if="taskCandidate.cltNames.length"
|
|
59
|
-
<div v-if="taskCandidate.roleNames.length"
|
|
60
|
-
<div v-if="taskCandidate.unames.length"
|
|
58
|
+
<div v-if="taskCandidate.cltNames.length">{{ $lc('待审批单位:') }}{{ taskCandidate.cltNames.join('、') }}</div>
|
|
59
|
+
<div v-if="taskCandidate.roleNames.length">{{ $lc('待审批角色:') }}{{ taskCandidate.roleNames.join('、') }}</div>
|
|
60
|
+
<div v-if="taskCandidate.unames.length">{{ $lc('待审批人:') }}{{ taskCandidate.unames.join('、') }}</div>
|
|
61
61
|
</div>
|
|
62
62
|
</div>
|
|
63
63
|
</el-popover>
|
|
@@ -79,9 +79,9 @@
|
|
|
79
79
|
<div v-if="assignee" :class="{ 'm-t-s': assigneeEnd }">{{ assignee }}</div>
|
|
80
80
|
|
|
81
81
|
<div v-if="taskCandidate" class="m-t-ss m-b-ss">
|
|
82
|
-
<div v-if="taskCandidate.cltNames.length"
|
|
83
|
-
<div v-if="taskCandidate.roleNames.length"
|
|
84
|
-
<div v-if="taskCandidate.unames.length"
|
|
82
|
+
<div v-if="taskCandidate.cltNames.length">{{ $lc('待审批单位:') }}{{ taskCandidate.cltNames.join('、') }}</div>
|
|
83
|
+
<div v-if="taskCandidate.roleNames.length">{{ $lc('待审批角色:') }}{{ taskCandidate.roleNames.join('、') }}</div>
|
|
84
|
+
<div v-if="taskCandidate.unames.length">{{ $lc('待审批人:') }}{{ taskCandidate.unames.join('、') }}</div>
|
|
85
85
|
</div>
|
|
86
86
|
</div>
|
|
87
87
|
</el-popover>
|
|
@@ -231,7 +231,7 @@ export default {
|
|
|
231
231
|
this.setSvgAttrs(flowSvg)
|
|
232
232
|
this.setPendingUserInfo(unApplayUserTaskCandidate)
|
|
233
233
|
this.bindTaskEvents({ currentActivityIdList, currAssMap, taskDefIdMap, addTask, addTaskPre, seqRecords })
|
|
234
|
-
await this.
|
|
234
|
+
await this.initPanZoom()
|
|
235
235
|
document.body.addEventListener('click', this.addTaskFn)
|
|
236
236
|
},
|
|
237
237
|
|
|
@@ -266,48 +266,49 @@ export default {
|
|
|
266
266
|
this.setTaskRecord(obj)
|
|
267
267
|
})
|
|
268
268
|
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
269
|
+
// 非加签节点添加事件
|
|
270
|
+
currentActivityIdList.forEach((currentActivityId) => {
|
|
271
|
+
let assignee = currAssMap[currentActivityId]
|
|
272
|
+
let assigneeEnd = taskDefIdMap[currentActivityId]
|
|
273
|
+
let task = this.svgW.querySelector(`[data-element-id="${currentActivityId}"]`)
|
|
274
|
+
if (task) {
|
|
275
|
+
task.classList.add('activiti-node-at')
|
|
276
|
+
if (!currentActivityId.includes('@addTaskType')) {
|
|
277
|
+
this.addEvent(task, { assignee, assigneeEnd }, 'pending')
|
|
278
|
+
}
|
|
278
279
|
}
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
280
|
+
})
|
|
281
|
+
for (let k in currAssMap) {
|
|
282
|
+
let submitter = currAssMap[k]
|
|
283
|
+
if (
|
|
284
|
+
!currentActivityIdList.includes(k) &&
|
|
285
|
+
!k.includes('@addTaskType') &&
|
|
286
|
+
typeof submitter === 'string' &&
|
|
287
|
+
submitter.trim()
|
|
288
|
+
) {
|
|
289
|
+
let taskK = this.svgW.querySelector(`[data-element-id="${k}"]`)
|
|
290
|
+
if (taskK) {
|
|
291
|
+
this.addEvent(taskK, { assignee: `${$lc('发起人')}:${submitter.trim()}` }, 'pending')
|
|
292
|
+
}
|
|
292
293
|
}
|
|
293
294
|
}
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
295
|
+
for (let k in taskDefIdMap) {
|
|
296
|
+
if (!currentActivityIdList.includes(k)) {
|
|
297
|
+
let taskK = this.svgW.querySelector(`[data-element-id="${k}"]`)
|
|
298
|
+
if (taskK) {
|
|
299
|
+
if (!k.includes('@addTaskType')) {
|
|
300
|
+
this.addEvent(taskK, taskDefIdMap[k])
|
|
301
|
+
this.addChildEvent(taskK, taskDefIdMap[k])
|
|
302
|
+
}
|
|
302
303
|
}
|
|
303
304
|
}
|
|
304
305
|
}
|
|
306
|
+
} catch (error) {
|
|
307
|
+
console.warn('setTaskErr:', error)
|
|
305
308
|
}
|
|
306
|
-
}
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
let { default: panzoom } = await importG('panzoom', () => import(/*webpackChunkName: "panzoom"*/ 'panzoom'))
|
|
309
|
+
},
|
|
310
|
+
async initPanZoom() {
|
|
311
|
+
let { default: panzoom } = await importG('panzoom', () => import(/*webpackChunkName: "panzoom"*/ 'panzoom'))
|
|
311
312
|
|
|
312
313
|
this.svgPanzoom = panzoom(this.svgElement, {
|
|
313
314
|
maxZoom: this.max,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<Dialog v-drag :visible.sync="visibleC" width="75%" title="补传附件" v-bind="$attrs" v-on="$listeners">
|
|
2
|
+
<Dialog v-drag :visible.sync="visibleC" width="75%" :title="$lc('补传附件')" v-bind="$attrs" v-on="$listeners">
|
|
3
3
|
<el-form ref="form" :model="paramValues" label-width="8em" class="label-width-14em">
|
|
4
4
|
<el-form-item
|
|
5
5
|
v-for="item in defaultModel"
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
v-model="paramValues[item.value]"
|
|
14
14
|
value-key="label"
|
|
15
15
|
class="input-w"
|
|
16
|
-
placeholder="请选择"
|
|
16
|
+
:placeholder="$lc('请选择')"
|
|
17
17
|
v-bind="item.props"
|
|
18
18
|
v-on="item.on"
|
|
19
19
|
>
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
type="date"
|
|
31
31
|
class="input-w"
|
|
32
32
|
value-format="yyyy-MM-dd"
|
|
33
|
-
placeholder="请选择"
|
|
33
|
+
:placeholder="$lc('请选择')"
|
|
34
34
|
v-bind="item.props"
|
|
35
35
|
v-on="item.on"
|
|
36
36
|
/>
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
v-if="item.type === 'text'"
|
|
39
39
|
v-model="paramValues[item.value]"
|
|
40
40
|
v-bind="item.props"
|
|
41
|
-
placeholder="请选择"
|
|
41
|
+
:placeholder="$lc('请选择')"
|
|
42
42
|
v-on="item.on"
|
|
43
43
|
/>
|
|
44
44
|
</el-form-item>
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
@delete-rows="deleteRows"
|
|
54
54
|
@down-rows="downRows"
|
|
55
55
|
>
|
|
56
|
-
<el-table-column slot="slotCol" label="归档名称" width="140" prop="archiveName" show-overflow-tooltip />
|
|
56
|
+
<el-table-column slot="slotCol" :label="$lc('归档名称')" width="140" prop="archiveName" show-overflow-tooltip />
|
|
57
57
|
</FileUploadTable>
|
|
58
58
|
<slot name="dialogFoot"></slot>
|
|
59
59
|
</Dialog>
|
|
@@ -159,7 +159,7 @@ export default {
|
|
|
159
159
|
async downRows(rows) {
|
|
160
160
|
const filesId = rows.map(({ beid }) => beid).filter(Boolean)
|
|
161
161
|
if (!filesId.length) {
|
|
162
|
-
return this.$message.warning(
|
|
162
|
+
return this.$message.warning($lc("请勾选附件"))
|
|
163
163
|
}
|
|
164
164
|
const res = await axios.post(
|
|
165
165
|
this.apiPrefix
|
|
@@ -218,7 +218,7 @@ export default {
|
|
|
218
218
|
|
|
219
219
|
if (res.code === 200) {
|
|
220
220
|
this.tableData = this.tableData.filter((item) => !filesId.includes(item.beid)) || []
|
|
221
|
-
this.$message.success(
|
|
221
|
+
this.$message.success($lc("删除成功"))
|
|
222
222
|
}
|
|
223
223
|
}
|
|
224
224
|
|