n20-common-lib 2.9.13 → 2.9.14
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/nstc-g6/components/NstcCharts/NstcCharts.vue +16 -8
- package/package.json +8 -5
- package/src/assets/css/approve-card.scss +1 -1
- package/src/assets/css/date-quarter.scss +8 -0
- package/src/assets/css/expandable-pane.scss +7 -0
- package/src/assets/css/file-upload-table.scss +2 -3
- package/src/assets/css/font-icon.scss +3 -1
- package/src/assets/css/message.scss +6 -6
- package/src/assets/css/normalize.scss +4 -1
- package/src/assets/css/table.scss +16 -11
- package/src/assets/iconFont/SIMSUN.ttf +0 -0
- package/src/assets/iconFont/font.css +4 -0
- package/src/components/AIButton/index.vue +101 -0
- package/src/components/AdvancedFilter/formItemRender.vue +7 -4
- package/src/components/AdvancedFilter/index.vue +6 -7
- package/src/components/Anchor/index.vue +1 -0
- package/src/components/ApprovalButtons/index.vue +404 -82
- package/src/components/ApprovalButtons/indexApp.vue +1102 -0
- package/src/components/ApprovalButtons/selectSpr.vue +128 -0
- package/src/components/ApprovalButtons/setCarboncopyProp.vue +1 -1
- package/src/components/ApprovalButtons/setRejectToProp.vue +45 -5
- package/src/components/ApprovalButtons/showAppOpi.vue +265 -8
- package/src/components/ApprovalButtons/showOtherAttrNew.vue +161 -0
- package/src/components/ApprovalCard/index.vue +190 -44
- package/src/components/ApprovalCard/indexApp.vue +592 -0
- package/src/components/ApprovalRecord/approvalImgPro/child.vue +1 -1
- package/src/components/ApprovalRecord/approvalImgPro/index.vue +42 -5
- package/src/components/ApprovalRecord/index.vue +23 -6
- package/src/components/ApprovalRecord/indexApp.vue +79 -0
- package/src/components/AttachmentPass/index.vue +286 -0
- package/src/components/Button/button-group.vue +3 -1
- package/src/components/CascaderArea/index.vue +5 -6
- package/src/components/DatePicker/por.vue +31 -1
- package/src/components/DateSelect/quarterDatePicker.vue +23 -1
- package/src/components/Descriptions/index.vue +7 -3
- package/src/components/Dialog/index.vue +4 -0
- package/src/components/Diff/index.vue +4 -2
- package/src/components/DynamicField/DynamicField.vue +29 -6
- package/src/components/DynamicField/DynamicFieldMixin.js +13 -5
- package/src/components/DynamicField/DynamicFieldOptions.vue +135 -62
- package/src/components/DynamicField/DynamicTable.vue +11 -1
- package/src/components/DynamicField/contentPop.vue +110 -0
- package/src/components/DynamicField/tableList.vue +5 -1
- package/src/components/DynamicField/tableView.vue +143 -0
- package/src/components/ECharts/index.vue +15 -9
- package/src/components/Expandable/main.vue +17 -2
- package/src/components/FileImport/index.vue +4 -5
- package/src/components/FileUploadTable/FileUploadTableV3.vue +937 -0
- package/src/components/FileUploadTable/aiCheckDialog.vue +139 -0
- package/src/components/FileUploadTable/index.vue +251 -33
- package/src/components/FileUploadTable/jytg.svg +6 -0
- package/src/components/FileUploadTable/wsc.svg +3 -0
- package/src/components/FileUploadTable/ysc.svg +3 -0
- package/src/components/HandlingAdvice/index.vue +191 -0
- package/src/components/InputAccount/index.vue +105 -0
- package/src/components/InputNumber/index.vue +16 -4
- package/src/components/InputNumber/numberRange.vue +14 -0
- package/src/components/InputSearch/index.vue +8 -0
- package/src/components/Layout/HeaderWrap/changePwd.vue +50 -23
- package/src/components/Layout/HeaderWrap/index.vue +2 -2
- package/src/components/Layout/HeaderWrap/indexN.vue +296 -119
- package/src/components/Layout/SubContent/index.vue +45 -14
- package/src/components/Layout/indexN.vue +26 -5
- package/src/components/LoginTemporary/form.vue +126 -34
- package/src/components/LoginTemporary/index.vue +14 -3
- package/src/components/LoginTemporary/indexN.vue +35 -13
- package/src/components/Preview/index.vue +199 -0
- package/src/components/SelectDatePickerPro/customDatePicker.vue +7 -0
- package/src/components/SelectDatePickerPro/halfYearPicker.vue +165 -0
- package/src/components/SelectDatePickerPro/index.vue +44 -4
- package/src/components/SelectDatePickerPro/quarterDatePicker.vue +32 -10
- package/src/components/SelectTree/index.vue +10 -4
- package/src/components/SelectTree/pro.vue +3 -0
- package/src/components/ShowColumn/index copy 2.vue +545 -0
- package/src/components/ShowColumn/index copy.vue +566 -0
- package/src/components/ShowColumn/index.vue +11 -7
- package/src/components/Statis/statisItem.vue +8 -7
- package/src/components/Table/filters.js +13 -0
- package/src/components/Table/index.vue +4 -4
- package/src/components/TablePro/filterContent.vue +18 -8
- package/src/components/TablePro/index.js +41 -1
- package/src/components/TablePro/index.vue +117 -6
- package/src/components/TableProOperateColumn/OperateBtns.vue +11 -53
- package/src/components/TableProOperateColumn/OperateBtns_copy.vue +141 -0
- package/src/components/TableProOperateColumn/childrenOperateBtn.vue +108 -0
- package/src/components/TableProOperateColumn/index.vue +3 -6
- package/src/components/TableSetSize/index.vue +1 -1
- package/src/components/Tree/index.vue +21 -5
- package/src/components/Upload/index.vue +25 -10
- package/src/components/Upload/uploadMsg.vue +30 -25
- package/src/components/operatingStatus/index.vue +3 -4
- package/src/directives/VTitle/index.js +15 -5
- package/src/directives/watermark/index.js +140 -56
- package/src/i18n.json +146 -18
- package/src/index.js +31 -3
- package/src/plugins/Sign/CaMap.js +47 -8
- package/src/plugins/Sign/Itrus/index.js +1 -1
- package/src/plugins/Sign/Itrus/sign_3720.js +2 -1
- package/src/plugins/Sign/NetSM3/index.js +20 -11
- package/src/plugins/Sign/NetV3/index.js +163 -22
- package/src/plugins/Sign/SkfSign/index.js +55 -52
- package/src/plugins/Sign/bjca/index.js +229 -9
- package/src/plugins/Sign/hnca/index.js +5064 -0
- package/src/plugins/Sign/index.js +155 -103
- package/src/plugins/Sign/kySign/base64.js +160 -0
- package/src/plugins/Sign/kySign/hex.js +92 -0
- package/src/plugins/Sign/kySign/index.js +186 -0
- package/src/plugins/Sign/kySign/skf.js +937 -0
- package/src/plugins/Sign/kySign/test.html +463 -0
- package/src/plugins/Sign/sdca/index.js +73 -0
- package/src/plugins/Sign/sign.js +72 -52
- package/src/plugins/Sign/signV3/InfosecNetSignCNGAgent.min.js +1 -0
- package/src/plugins/Sign/signV3/sign.js +187 -0
- package/src/plugins/Sign/sign_back.js +172 -0
- package/src/utils/accountFormat.js +7 -0
- package/src/utils/asyncGetRelaNos.js +79 -46
- package/src/utils/axios.js +3 -5
- package/src/utils/i18n/index.js +1 -1
- package/src/utils/importGlobal.js +23 -12
- package/style/fonts/SIMSUN.5e0c362c.ttf +0 -0
- package/style/index.css +2 -2
- package/theme/blue.css +2 -2
- package/theme/cctcRed.css +2 -2
- package/theme/fonts/SIMSUN.5e0c362c.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
|
@@ -0,0 +1,592 @@
|
|
|
1
|
+
/* 审批进度 */
|
|
2
|
+
<template>
|
|
3
|
+
<div class="n20-approve-wrap">
|
|
4
|
+
<el-timeline :reverse="true">
|
|
5
|
+
<el-timeline-item v-for="(item, i) in approvalData" :key="i" :type="item | typeF(status)" :hide-timestamp="true">
|
|
6
|
+
<div class="n20-time">
|
|
7
|
+
<div>{{ item.endTime | dataF }}</div>
|
|
8
|
+
<div>{{ item.endTime | timeF }}</div>
|
|
9
|
+
</div>
|
|
10
|
+
<div>
|
|
11
|
+
<div v-if="item.result === 0" class="flex-box flex-v">
|
|
12
|
+
<div v-title="item.assignee" class="w-full n20-worker p-r-s" :show-overflow-tooltip="true">
|
|
13
|
+
{{ $lc(item.assignee) }}
|
|
14
|
+
</div>
|
|
15
|
+
</div>
|
|
16
|
+
<div v-if="item.result === 5" class="flex-box">
|
|
17
|
+
<div class="result-left-name" :class="item | typeF(status, 'color-')">
|
|
18
|
+
{{ $lc(item.resultName) }}
|
|
19
|
+
</div>
|
|
20
|
+
</div>
|
|
21
|
+
<div v-else class="flex-box">
|
|
22
|
+
<div class="result-left-name" :class="item | typeF(status, 'color-')">
|
|
23
|
+
{{ $lc(item.resultName) }}
|
|
24
|
+
</div>
|
|
25
|
+
<div
|
|
26
|
+
v-title="item.assignee"
|
|
27
|
+
class="flex-box flex-item n20-worker m-r-s text-ellipsis"
|
|
28
|
+
:show-overflow-tooltip="true"
|
|
29
|
+
>
|
|
30
|
+
<!-- <div
|
|
31
|
+
v-title="item.memberName"
|
|
32
|
+
:show-overflow-tooltip="true"
|
|
33
|
+
class="flex-item n20-worker m-r-s text-ellipsis"
|
|
34
|
+
style="width: 250px"
|
|
35
|
+
>
|
|
36
|
+
{{ item.memberName }}
|
|
37
|
+
</div>
|
|
38
|
+
<div
|
|
39
|
+
v-title="item.deptName"
|
|
40
|
+
:show-overflow-tooltip="true"
|
|
41
|
+
class="flex-item n20-worker m-r-s text-ellipsis"
|
|
42
|
+
style="width: 250px"
|
|
43
|
+
>
|
|
44
|
+
{{ item.deptName }}
|
|
45
|
+
</div>
|
|
46
|
+
<div
|
|
47
|
+
v-if="item.job"
|
|
48
|
+
v-title="item.job"
|
|
49
|
+
:show-overflow-tooltip="true"
|
|
50
|
+
class="flex-item n20-worker m-r-s text-ellipsis"
|
|
51
|
+
style="width: 250px"
|
|
52
|
+
>
|
|
53
|
+
{{ item.job }}
|
|
54
|
+
</div>
|
|
55
|
+
<div
|
|
56
|
+
v-title="item.roleName"
|
|
57
|
+
class="flex-item n20-worker text-ellipsis"
|
|
58
|
+
:show-overflow-tooltip="true"
|
|
59
|
+
style="width: 250px"
|
|
60
|
+
>
|
|
61
|
+
{{ item.roleName }}
|
|
62
|
+
</div> -->
|
|
63
|
+
<div
|
|
64
|
+
v-if="item.result !== 0"
|
|
65
|
+
v-title="item.assignee"
|
|
66
|
+
class="n20-worker text-ellipsis"
|
|
67
|
+
style="width: 180px"
|
|
68
|
+
:show-overflow-tooltip="true"
|
|
69
|
+
>
|
|
70
|
+
<span class="worker-icon n20-icon-user"></span>{{ item.assignee }}
|
|
71
|
+
</div>
|
|
72
|
+
<!-- <div
|
|
73
|
+
v-if="item.result !== 0 && item.appOrPc !== null && item.appOrPc !== '' && item.appOrPc !== undefined"
|
|
74
|
+
>
|
|
75
|
+
{{ item.appOrPc === '1' ? 'PC端审批' : item.appOrPc === '2' ? '外部系统审批' : 'App端审批' | $lc }}
|
|
76
|
+
</div>
|
|
77
|
+
<div v-if="item.showConnect === '1'" class="m-l-s">
|
|
78
|
+
<span class="pointer color-ccc f-s-s" @click="seeDetail(item)"
|
|
79
|
+
>{{ '查看详情' | $lc }} <i class="el-icon-arrow-right"></i
|
|
80
|
+
></span>
|
|
81
|
+
</div> -->
|
|
82
|
+
</div>
|
|
83
|
+
</div>
|
|
84
|
+
|
|
85
|
+
<div v-if="item.ccUserName" class="n20-description-c m-t">{{ '抄送人:' | $lc }}{{ item.ccUserName }}</div>
|
|
86
|
+
<div class="n20-description-c m-t flex-box flex-v">
|
|
87
|
+
<el-tag v-if="item.addTaskTag" class="m-r-s" effect="plain" type="info">{{
|
|
88
|
+
item.addTaskTag | remarkF(remarkOpt)
|
|
89
|
+
}}</el-tag>
|
|
90
|
+
<span v-if="item.addTaskName">{{ '加签审批人:' | $lc }}{{ item.addTaskName }}</span>
|
|
91
|
+
</div>
|
|
92
|
+
|
|
93
|
+
<template v-if="item.resultName !== '撤回' || showCtdMsg">
|
|
94
|
+
<!-- 子流程app暂时屏蔽 -->
|
|
95
|
+
<!-- <div v-if="item.subProcInitId" class="n20-description-c n20-description-bgc m-t p-a-s">
|
|
96
|
+
<span class="color-primary pointer" @click="seeApproveChild(item.subProcInitId)"
|
|
97
|
+
>{{ item.suggestion }}<i class="n20-icon-shouqizhedie f-s-m"></i
|
|
98
|
+
></span>
|
|
99
|
+
<div v-if="showChildTimeline" class="n20-approve-wrap-children">
|
|
100
|
+
<el-timeline :reverse="true">
|
|
101
|
+
<div
|
|
102
|
+
v-for="(row, i) in approvalChildrenData"
|
|
103
|
+
:key="i"
|
|
104
|
+
:type="row | typeF(status)"
|
|
105
|
+
:hide-timestamp="true"
|
|
106
|
+
>
|
|
107
|
+
<div class="n20-time">
|
|
108
|
+
<div>{{ row.endTime | dataF }}</div>
|
|
109
|
+
<div>{{ row.endTime | timeF }}</div>
|
|
110
|
+
</div>
|
|
111
|
+
<template>
|
|
112
|
+
<div v-if="row.result === 0" class="flex-box flex-v">
|
|
113
|
+
<div
|
|
114
|
+
v-title="row.assignee"
|
|
115
|
+
class="w-full n20-worker p-r-s text-ellipsis"
|
|
116
|
+
:show-overflow-tooltip="true"
|
|
117
|
+
>
|
|
118
|
+
{{ row.assignee }}
|
|
119
|
+
</div>
|
|
120
|
+
</div>
|
|
121
|
+
<div v-if="row.result === 5" class="flex-box">
|
|
122
|
+
<div class="result-left-name" :class="row | typeF(status, 'color-')">
|
|
123
|
+
{{ $lc(row.resultName) }}
|
|
124
|
+
</div>
|
|
125
|
+
</div>
|
|
126
|
+
<div v-else class="flex-box">
|
|
127
|
+
<div class="result-left-name" :class="row | typeF(status, 'color-')">
|
|
128
|
+
{{ $lc(row.resultName) }}
|
|
129
|
+
</div>
|
|
130
|
+
<div
|
|
131
|
+
v-title="row.assignee"
|
|
132
|
+
class="flex-box flex-item n20-worker m-r-s text-ellipsis"
|
|
133
|
+
:show-overflow-tooltip="true"
|
|
134
|
+
>
|
|
135
|
+
<div
|
|
136
|
+
v-title="row.memberName"
|
|
137
|
+
:show-overflow-tooltip="true"
|
|
138
|
+
class="flex-item n20-worker m-r-s text-ellipsis"
|
|
139
|
+
style="width: 250px"
|
|
140
|
+
>
|
|
141
|
+
{{ row.memberName }}
|
|
142
|
+
</div>
|
|
143
|
+
<div
|
|
144
|
+
v-title="row.deptName"
|
|
145
|
+
:show-overflow-tooltip="true"
|
|
146
|
+
class="flex-item n20-worker m-r-s text-ellipsis"
|
|
147
|
+
style="width: 250px"
|
|
148
|
+
>
|
|
149
|
+
{{ row.deptName }}
|
|
150
|
+
</div>
|
|
151
|
+
<div
|
|
152
|
+
v-title="row.roleName"
|
|
153
|
+
class="flex-item n20-worker text-ellipsis"
|
|
154
|
+
:show-overflow-tooltip="true"
|
|
155
|
+
style="width: 250px"
|
|
156
|
+
>
|
|
157
|
+
{{ row.roleName }}
|
|
158
|
+
</div>
|
|
159
|
+
<div
|
|
160
|
+
v-if="row.result !== 0"
|
|
161
|
+
v-title="row.assignee"
|
|
162
|
+
class="n20-worker text-ellipsis"
|
|
163
|
+
style="width: 180px"
|
|
164
|
+
:show-overflow-tooltip="true"
|
|
165
|
+
>
|
|
166
|
+
<span class="worker-icon n20-icon-user"></span>{{ row.assignee }}
|
|
167
|
+
</div>
|
|
168
|
+
</div>
|
|
169
|
+
</div>
|
|
170
|
+
<div v-if="row.ccUserName" class="n20-description-c m-t">
|
|
171
|
+
{{ '抄送人:' | $lc }}{{ row.ccUserName }}
|
|
172
|
+
</div>
|
|
173
|
+
<div v-if="row.addTaskName" class="n20-description-c m-t">
|
|
174
|
+
{{ '加签审批人:' | $lc }}{{ row.addTaskName }}
|
|
175
|
+
</div>
|
|
176
|
+
<div v-if="row.resultName !== '撤回' || showCtdMsg">
|
|
177
|
+
<div v-if="row.suggestion" class="n20-description-c n20-description-bgc m-t p-a-s">
|
|
178
|
+
<span v-if="row.result !== status.waiting">{{ '审批意见:' | $lc }}</span>
|
|
179
|
+
<span style="line-height: 22px">{{ row.suggestion }} </span>
|
|
180
|
+
</div>
|
|
181
|
+
<div
|
|
182
|
+
v-if="row.flowHistoryCfgs && row.flowHistoryCfgs.length"
|
|
183
|
+
class="n20-description-c m-t p-a-s"
|
|
184
|
+
>
|
|
185
|
+
<span
|
|
186
|
+
v-if="row.result !== status.waiting"
|
|
187
|
+
class="color-primary pointer"
|
|
188
|
+
@click="showFlowHistoryChild = !showFlowHistoryChild"
|
|
189
|
+
>{{ '审查意见:' | $lc }} <i class="n20-icon-shouqizhedie f-s-m"></i
|
|
190
|
+
></span>
|
|
191
|
+
<div v-show="showFlowHistoryChild" class="n20-description-bgc p-a-s">
|
|
192
|
+
<div v-for="(s, i) in row.flowHistoryCfgs" :key="i">
|
|
193
|
+
{{ s.cfgName }}:{{ s.cfgText ? s.cfgText : s.cfgVal }}
|
|
194
|
+
</div>
|
|
195
|
+
</div>
|
|
196
|
+
</div>
|
|
197
|
+
</div>
|
|
198
|
+
<div
|
|
199
|
+
v-if="row.flowHisFileList"
|
|
200
|
+
class="n20-description-c n20-description-bgc"
|
|
201
|
+
style="margin-top: 0 !important"
|
|
202
|
+
>
|
|
203
|
+
<span>{{ '附件信息' | $lc }}:</span>
|
|
204
|
+
<div class="flex-box">
|
|
205
|
+
<div
|
|
206
|
+
v-for="(res, i) in row.flowHisFileList"
|
|
207
|
+
:key="i"
|
|
208
|
+
class="m-a-ss color-primary pointer"
|
|
209
|
+
@click="preview(res)"
|
|
210
|
+
>
|
|
211
|
+
{{ res.fileName }}
|
|
212
|
+
</div>
|
|
213
|
+
</div>
|
|
214
|
+
<Dialog
|
|
215
|
+
v-drag
|
|
216
|
+
class="p-a-0"
|
|
217
|
+
:title="'附件预览' | $lc"
|
|
218
|
+
:visible.sync="visibleP"
|
|
219
|
+
top="2vh"
|
|
220
|
+
width="96%"
|
|
221
|
+
:close-on-click-modal="false"
|
|
222
|
+
@close="closeSee"
|
|
223
|
+
>
|
|
224
|
+
<span class="file-upload-table_preview-pn">
|
|
225
|
+
<el-button plain size="mini" @click="downFile(seeRow)">下载</el-button>
|
|
226
|
+
</span>
|
|
227
|
+
<div v-if="visibleP" class="p-a" style="height: 82vh">
|
|
228
|
+
<component
|
|
229
|
+
:is="previewSameOrg ? 'object' : 'div'"
|
|
230
|
+
:key="previewUrl"
|
|
231
|
+
:data="previewUrl"
|
|
232
|
+
style="width: 100%; height: 100%"
|
|
233
|
+
>
|
|
234
|
+
<div class="flex-column flex-c flex-v" style="height: 100%">
|
|
235
|
+
<i class="el-icon-s-release" style="font-size: 60px; color: #999"></i>
|
|
236
|
+
<span style="margin-top: 16px">
|
|
237
|
+
{{ '不支持在线预览,请' | $lc
|
|
238
|
+
}}<el-link type="primary" @click="downFile(seeRow)">{{ '下载' | $lc }}</el-link
|
|
239
|
+
>{{ '到本地查看' | $lc }}
|
|
240
|
+
</span>
|
|
241
|
+
</div>
|
|
242
|
+
</component>
|
|
243
|
+
</div>
|
|
244
|
+
</Dialog>
|
|
245
|
+
</div>
|
|
246
|
+
</template>
|
|
247
|
+
</div>
|
|
248
|
+
</el-timeline>
|
|
249
|
+
</div>
|
|
250
|
+
</div> -->
|
|
251
|
+
<!-- app暂时屏蔽 -->
|
|
252
|
+
<!-- <div v-if="!item.subProcInitId && item.suggestion" class="n20-description-c n20-description-bgc m-t p-a-s">
|
|
253
|
+
<span v-if="item.result !== status.waiting">{{ '审批意见:' | $lc }}</span>
|
|
254
|
+
<span style="line-height: 22px">{{ item.suggestion }} </span>
|
|
255
|
+
</div>
|
|
256
|
+
<div v-if="item.flowHistoryCfgs && item.flowHistoryCfgs.length" class="n20-description-c m-t p-a-s">
|
|
257
|
+
<span
|
|
258
|
+
v-if="item.result !== status.waiting"
|
|
259
|
+
class="color-primary pointer"
|
|
260
|
+
@click="showFlowHistory = !showFlowHistory"
|
|
261
|
+
>{{ '审查意见:' | $lc }}<i class="n20-icon-shouqizhedie f-s-m"></i
|
|
262
|
+
></span>
|
|
263
|
+
<div v-show="showFlowHistory" class="n20-description-bgc p-a-s">
|
|
264
|
+
<div v-for="(s, i) in item.flowHistoryCfgs" :key="i" class="p-b-s">
|
|
265
|
+
<div>{{ s.cfgName }}:{{ s.cfgText ? s.cfgText : s.cfgVal }}</div>
|
|
266
|
+
<div>{{ s.cfgRemark }}</div>
|
|
267
|
+
</div>
|
|
268
|
+
</div>
|
|
269
|
+
</div> -->
|
|
270
|
+
<!-- <div v-if="item.flowHisFileList" class="n20-description-c n20-description-bgc m-t p-a-s">
|
|
271
|
+
<span>{{ '附件信息' | $lc }}:</span>
|
|
272
|
+
<div class="flex-box">
|
|
273
|
+
<div
|
|
274
|
+
v-for="(res, i) in item.flowHisFileList"
|
|
275
|
+
:key="i"
|
|
276
|
+
class="m-a-ss color-primary pointer"
|
|
277
|
+
@click="preview(res)"
|
|
278
|
+
>
|
|
279
|
+
{{ res.fileName }}
|
|
280
|
+
</div>
|
|
281
|
+
</div>
|
|
282
|
+
<Dialog
|
|
283
|
+
v-drag
|
|
284
|
+
class="p-a-0"
|
|
285
|
+
:title="'附件预览' | $lc"
|
|
286
|
+
:visible.sync="visibleP"
|
|
287
|
+
top="2vh"
|
|
288
|
+
width="96%"
|
|
289
|
+
:close-on-click-modal="false"
|
|
290
|
+
@close="closeSee"
|
|
291
|
+
>
|
|
292
|
+
<span class="file-upload-table_preview-pn">
|
|
293
|
+
<el-button plain size="mini" @click="downFile(seeRow)">下载</el-button>
|
|
294
|
+
</span>
|
|
295
|
+
<div v-if="visibleP" class="p-a" style="height: 82vh">
|
|
296
|
+
<component
|
|
297
|
+
:is="previewSameOrg ? 'object' : 'div'"
|
|
298
|
+
:key="previewUrl"
|
|
299
|
+
:data="previewUrl"
|
|
300
|
+
style="width: 100%; height: 100%"
|
|
301
|
+
>
|
|
302
|
+
<div class="flex-column flex-c flex-v" style="height: 100%">
|
|
303
|
+
<i class="el-icon-s-release" style="font-size: 60px; color: #999"></i>
|
|
304
|
+
<span style="margin-top: 16px">
|
|
305
|
+
{{ '不支持在线预览,请' | $lc
|
|
306
|
+
}}<el-link type="primary" @click="downFile(seeRow)">{{ '下载' | $lc }}</el-link
|
|
307
|
+
>{{ '到本地查看' | $lc }}
|
|
308
|
+
</span>
|
|
309
|
+
</div>
|
|
310
|
+
</component>
|
|
311
|
+
</div>
|
|
312
|
+
</Dialog>
|
|
313
|
+
</div> -->
|
|
314
|
+
</template>
|
|
315
|
+
</div>
|
|
316
|
+
</el-timeline-item>
|
|
317
|
+
</el-timeline>
|
|
318
|
+
</div>
|
|
319
|
+
</template>
|
|
320
|
+
|
|
321
|
+
<script>
|
|
322
|
+
import 'viewerjs/dist/viewer.css'
|
|
323
|
+
import getJsonc from 'n20-common-lib/src/assets/getJsonc.js'
|
|
324
|
+
import axios from 'n20-common-lib/src/utils/axios.js'
|
|
325
|
+
import { $lc } from 'n20-common-lib/src/utils/i18n/index.js'
|
|
326
|
+
import importG from 'n20-common-lib/src/utils/importGlobal.js'
|
|
327
|
+
import { linkPush } from 'n20-common-lib/src/utils/urlToGo.js'
|
|
328
|
+
import Dialog from '../Dialog/index.vue'
|
|
329
|
+
const ViewerImg = async function () {
|
|
330
|
+
let { component } = await importG('v-viewer', () => import(/*webpackChunkName: "v-viewer"*/ 'v-viewer'))
|
|
331
|
+
return component
|
|
332
|
+
}
|
|
333
|
+
if (!window._approvalExtend) window._approvalExtend = {}
|
|
334
|
+
|
|
335
|
+
export default {
|
|
336
|
+
name: 'ApprovalCard',
|
|
337
|
+
components: {
|
|
338
|
+
Dialog,
|
|
339
|
+
ViewerImg
|
|
340
|
+
},
|
|
341
|
+
filters: {
|
|
342
|
+
typeF(item, status, prefix = '') {
|
|
343
|
+
let result = item.result
|
|
344
|
+
switch (result) {
|
|
345
|
+
case status.submit:
|
|
346
|
+
return prefix + 'primary'
|
|
347
|
+
case status.approval:
|
|
348
|
+
return prefix + 'primary'
|
|
349
|
+
case status.reject:
|
|
350
|
+
return prefix + 'danger'
|
|
351
|
+
case status.invalid:
|
|
352
|
+
return prefix + 'danger'
|
|
353
|
+
case status.end:
|
|
354
|
+
return prefix + 'primary'
|
|
355
|
+
case status.revocation:
|
|
356
|
+
return prefix + 'warning'
|
|
357
|
+
default:
|
|
358
|
+
return undefined
|
|
359
|
+
}
|
|
360
|
+
},
|
|
361
|
+
dataF(_t) {
|
|
362
|
+
let t = _t || ''
|
|
363
|
+
let ts = t.split(' ') || ['', '']
|
|
364
|
+
return ts[0]
|
|
365
|
+
},
|
|
366
|
+
timeF(_t) {
|
|
367
|
+
let t = _t || ''
|
|
368
|
+
let ts = t.split(' ') || ['', '']
|
|
369
|
+
return ts[1]
|
|
370
|
+
},
|
|
371
|
+
remarkF(val, list) {
|
|
372
|
+
return list?.find((item) => item.code === val)?.name || val
|
|
373
|
+
}
|
|
374
|
+
},
|
|
375
|
+
props: {
|
|
376
|
+
apiPrefix: {
|
|
377
|
+
type: String,
|
|
378
|
+
default: undefined
|
|
379
|
+
},
|
|
380
|
+
close: {
|
|
381
|
+
type: Boolean,
|
|
382
|
+
default: false
|
|
383
|
+
},
|
|
384
|
+
status: {
|
|
385
|
+
type: Object,
|
|
386
|
+
default: () => ({
|
|
387
|
+
waiting: 0,
|
|
388
|
+
submit: 1,
|
|
389
|
+
approval: 2,
|
|
390
|
+
reject: 3,
|
|
391
|
+
invalid: 4,
|
|
392
|
+
end: 5,
|
|
393
|
+
revocation: 6
|
|
394
|
+
})
|
|
395
|
+
},
|
|
396
|
+
approvalData: {
|
|
397
|
+
type: Array,
|
|
398
|
+
default: () => []
|
|
399
|
+
},
|
|
400
|
+
procInstId: {
|
|
401
|
+
type: String,
|
|
402
|
+
default: undefined
|
|
403
|
+
},
|
|
404
|
+
hideLoading: {
|
|
405
|
+
type: Boolean,
|
|
406
|
+
default: false
|
|
407
|
+
}
|
|
408
|
+
},
|
|
409
|
+
data() {
|
|
410
|
+
this.viewerOptions = {
|
|
411
|
+
debug: true,
|
|
412
|
+
inline: true,
|
|
413
|
+
scalable: false, // 不显示水平(垂直)翻转
|
|
414
|
+
navbar: false,
|
|
415
|
+
button: false,
|
|
416
|
+
title: true,
|
|
417
|
+
|
|
418
|
+
toolbar: {
|
|
419
|
+
zoomIn: true,
|
|
420
|
+
zoomOut: true,
|
|
421
|
+
oneToOne: true,
|
|
422
|
+
reset: true,
|
|
423
|
+
rotateLeft: true,
|
|
424
|
+
rotateRight: true,
|
|
425
|
+
flipHorizontal: true,
|
|
426
|
+
flipVertical: true,
|
|
427
|
+
prev: false,
|
|
428
|
+
play: false,
|
|
429
|
+
next: false
|
|
430
|
+
}
|
|
431
|
+
}
|
|
432
|
+
return {
|
|
433
|
+
remarkOpt: [],
|
|
434
|
+
showChildTimeline: false,
|
|
435
|
+
approvalChildrenData: [],
|
|
436
|
+
// 显示撤回意见,默认不显示
|
|
437
|
+
showCtdMsg: window._approvalExtend['card.countermand.suggestion'] === true,
|
|
438
|
+
visibleP: false,
|
|
439
|
+
previewUrl: '',
|
|
440
|
+
imgType: /\.(jpg|png1|gif|svg)$/i,
|
|
441
|
+
previewName: '',
|
|
442
|
+
previewSameOrg: false,
|
|
443
|
+
seeTypes: /\.(jpg|png|gif|svg|pdf|swf|xlsx|xls|docx|doc)$/i,
|
|
444
|
+
seeRow: {},
|
|
445
|
+
showFlowHistory: true,
|
|
446
|
+
showFlowHistoryChild: true
|
|
447
|
+
}
|
|
448
|
+
},
|
|
449
|
+
async created() {
|
|
450
|
+
if (this.procInstId) {
|
|
451
|
+
const data = await this.getProcInstData(this.procInstId)
|
|
452
|
+
this.approvalData.push(...data)
|
|
453
|
+
}
|
|
454
|
+
},
|
|
455
|
+
methods: {
|
|
456
|
+
async seeDetail(item) {
|
|
457
|
+
const { appUrl = {} } = await getJsonc('activiti/server-config.jsonc', null, true)
|
|
458
|
+
if (appUrl[item._details.appNo]) {
|
|
459
|
+
let path = appUrl[item._details.appNo] + '/' + item._details.typeCode
|
|
460
|
+
linkPush(path, {
|
|
461
|
+
taskId: item._details.taskId,
|
|
462
|
+
typeCode: item._details.typeCode,
|
|
463
|
+
processInstanceId: item._details.procInstId,
|
|
464
|
+
appNo: item._details.appNo,
|
|
465
|
+
businessId: item._details.businessId
|
|
466
|
+
})
|
|
467
|
+
} else {
|
|
468
|
+
this.$message.error('未配置审批详情链接')
|
|
469
|
+
}
|
|
470
|
+
},
|
|
471
|
+
async seeApproveChild(id) {
|
|
472
|
+
this.showChildTimeline = !this.showChildTimeline
|
|
473
|
+
if (this.showChildTimeline) {
|
|
474
|
+
const data = await this.getProcInstData(id)
|
|
475
|
+
this.approvalChildrenData = data
|
|
476
|
+
} else {
|
|
477
|
+
this.approvalChildrenData = []
|
|
478
|
+
}
|
|
479
|
+
},
|
|
480
|
+
async getProcInstData(procInstId) {
|
|
481
|
+
const { data } = await axios.get(
|
|
482
|
+
`/bems/activiti/sample/Q003?r=${Math.random()}`,
|
|
483
|
+
{
|
|
484
|
+
procInstId
|
|
485
|
+
},
|
|
486
|
+
{ loading: !this.hideLoading }
|
|
487
|
+
)
|
|
488
|
+
|
|
489
|
+
let approvalData = []
|
|
490
|
+
data?.forEach((item) => {
|
|
491
|
+
let _item = {
|
|
492
|
+
job: item.job || '',
|
|
493
|
+
isShow: item.isShow, //是否显示
|
|
494
|
+
endTime: item.endTime || '',
|
|
495
|
+
assignee: item.assignee,
|
|
496
|
+
suggestion: item.suggestion,
|
|
497
|
+
roleName: item.roleName,
|
|
498
|
+
flowHisFileList: item.flowHisFileList || null, //附件信息
|
|
499
|
+
ccUserName: item.ccUserName, // 抄送人
|
|
500
|
+
addTaskName: item.addTaskName, // 加签审批人
|
|
501
|
+
memberName: item.memberName, // 审批人单位
|
|
502
|
+
subProcInitId: item.subProcInitId, // 子流程id
|
|
503
|
+
appOrPc: item.appOrPc, // 终端标识 1 PC 2 APP
|
|
504
|
+
showConnect: item.showConnect, // 是否显示查看详情
|
|
505
|
+
_details: item,
|
|
506
|
+
deptName: item.deptName, // 部门
|
|
507
|
+
addTaskTag: item.addTaskTag, // 加签备注
|
|
508
|
+
flowHistoryCfgs: item.flowHistoryCfgs // 自定义字段
|
|
509
|
+
}
|
|
510
|
+
if (_item.addTaskTag && this.remarkOpt?.length === 0) {
|
|
511
|
+
this.getMdmDataDoc()
|
|
512
|
+
}
|
|
513
|
+
let resultName = item.optResult || ''
|
|
514
|
+
resultName = resultName.split('-')
|
|
515
|
+
resultName = resultName[resultName.length - 1]
|
|
516
|
+
_item.resultName = resultName === $lc('推进') ? $lc('批准') : resultName
|
|
517
|
+
_item.resultNameA = resultName === $lc('推进') ? $lc('批准') : resultName
|
|
518
|
+
if (item.optName) {
|
|
519
|
+
_item.resultName = item.optName
|
|
520
|
+
}
|
|
521
|
+
if (item.taskName === $lc('开始')) {
|
|
522
|
+
_item.result = 1
|
|
523
|
+
} else if (_item.resultNameA === $lc('加签推进')) {
|
|
524
|
+
_item.result = 2
|
|
525
|
+
} else if (_item.resultNameA === $lc('作废')) {
|
|
526
|
+
_item.result = 4
|
|
527
|
+
} else if (item.taskName === $lc('结束')) {
|
|
528
|
+
_item.result = 5
|
|
529
|
+
} else if ('approvalState' in item) {
|
|
530
|
+
_item.result = item.approvalState
|
|
531
|
+
} else if (!item.endTime) {
|
|
532
|
+
_item.result = 0
|
|
533
|
+
} else if (item.rejectFlag === 1) {
|
|
534
|
+
_item.result = 3
|
|
535
|
+
} else {
|
|
536
|
+
_item.result = 2
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
approvalData.push(_item)
|
|
540
|
+
})
|
|
541
|
+
return (
|
|
542
|
+
approvalData?.filter((item) => {
|
|
543
|
+
return item.isShow !== '0'
|
|
544
|
+
}) || []
|
|
545
|
+
)
|
|
546
|
+
},
|
|
547
|
+
// 获取数据字典加签备注
|
|
548
|
+
async getMdmDataDoc() {
|
|
549
|
+
const { code, data } = await axios.get(`/bems/1.0/mdmDataDoc?t=${Math.random()}`, { typeCode: 'ADD_TASK_TAG' })
|
|
550
|
+
if (code === 200) {
|
|
551
|
+
this.remarkOpt = data || []
|
|
552
|
+
}
|
|
553
|
+
},
|
|
554
|
+
async preview(row) {
|
|
555
|
+
this.visibleP = true
|
|
556
|
+
this.seeRow = row
|
|
557
|
+
this.previewUrl = `/api/onlinePreview?beid=${row.beid}`
|
|
558
|
+
this.previewName = row.fileName
|
|
559
|
+
this.previewSameOrg = this.seeTypes.test(row.fileName)
|
|
560
|
+
},
|
|
561
|
+
closeSee() {
|
|
562
|
+
this.previewUrl && URL.revokeObjectURL(this.previewUrl)
|
|
563
|
+
this.previewUrl = undefined
|
|
564
|
+
this.visibleP = false
|
|
565
|
+
},
|
|
566
|
+
async downFile(row) {
|
|
567
|
+
const blob = await axios.get(
|
|
568
|
+
this.apiPrefix
|
|
569
|
+
? this.apiPrefix + `/neams/eamsbaserecord/download/${row.beid}`
|
|
570
|
+
: `/neams/eamsbaserecord/download/${row.beid}`,
|
|
571
|
+
null,
|
|
572
|
+
{
|
|
573
|
+
responseType: 'blob',
|
|
574
|
+
loading: false
|
|
575
|
+
}
|
|
576
|
+
)
|
|
577
|
+
this.$downloadBlob(blob, blob.name)
|
|
578
|
+
}
|
|
579
|
+
}
|
|
580
|
+
}
|
|
581
|
+
</script>
|
|
582
|
+
<style scoped>
|
|
583
|
+
.file-upload-table_preview-pn {
|
|
584
|
+
position: absolute;
|
|
585
|
+
right: 46px;
|
|
586
|
+
top: 10px;
|
|
587
|
+
}
|
|
588
|
+
.n20-approve-wrap .el-timeline {
|
|
589
|
+
padding-left: 80px;
|
|
590
|
+
padding-top: 10px;
|
|
591
|
+
}
|
|
592
|
+
</style>
|