cloud-web-corejs 1.0.128 → 1.0.130

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.
Files changed (55) hide show
  1. package/package.json +1 -1
  2. package/src/components/VabUpload/view.vue +138 -55
  3. package/src/components/baseInputExport/mixins.js +1 -1
  4. package/src/components/errorMsg/mixins.js +1 -2
  5. package/src/components/excelImport/mixins.js +2 -1
  6. package/src/components/jsonImport/mixins.js +2 -1
  7. package/src/components/langImport/mixins.js +17 -16
  8. package/src/components/wf/content.vue +772 -411
  9. package/src/components/wf/mixins/wfFlowEleScriptDialog.js +3 -0
  10. package/src/components/wf/wf.js +1 -1
  11. package/src/components/wf/wfFlowEleScriptDialog.vue +89 -0
  12. package/src/components/xform/form-designer/designer.js +3 -2
  13. package/src/components/xform/form-designer/form-widget/container-widget/containerMixin.js +3 -3
  14. package/src/components/xform/form-designer/form-widget/container-widget/data-table-mixin.js +9 -9
  15. package/src/components/xform/form-designer/form-widget/container-widget/data-table-widget.vue +4 -1
  16. package/src/components/xform/form-designer/form-widget/dialog/importDialogMixin.js +2 -1
  17. package/src/components/xform/form-designer/form-widget/field-widget/fieldMixin.js +3 -1
  18. package/src/components/xform/form-designer/form-widget/field-widget/form-item-wrapper.vue +17 -4
  19. package/src/components/xform/form-designer/form-widget/field-widget/import-button-widget.vue +4 -0
  20. package/src/components/xform/form-designer/form-widget/field-widget/oplog-widget.vue +185 -0
  21. package/src/components/xform/form-designer/form-widget/field-widget/print-button-widget.vue +1 -1
  22. package/src/components/xform/form-designer/form-widget/field-widget/print-detail-button-widget.vue +108 -0
  23. package/src/components/xform/form-designer/form-widget/field-widget/singleUpload-widget.vue +145 -0
  24. package/src/components/xform/form-designer/form-widget/field-widget/status-widget.vue +13 -4
  25. package/src/components/xform/form-designer/form-widget/field-widget/vabUpload2-widget.vue +725 -0
  26. package/src/components/xform/form-designer/indexMixin.js +3 -2
  27. package/src/components/xform/form-designer/setting-panel/form-setting.vue +1 -1
  28. package/src/components/xform/form-designer/setting-panel/option-items-setting.vue +376 -366
  29. package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/columnRenderDialog.vue +0 -1
  30. package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/data-table-editor.vue +372 -253
  31. package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/table-column-dialog.vue +9 -43
  32. package/src/components/xform/form-designer/setting-panel/property-editor/field-import-button/import-button-editor.vue +7 -0
  33. package/src/components/xform/form-designer/setting-panel/property-editor/field-print-button/print-button-editor.vue +8 -0
  34. package/src/components/xform/form-designer/setting-panel/property-editor/field-print-button/print-detail-button-editor.vue +91 -0
  35. package/src/components/xform/form-designer/setting-panel/property-editor/field-status/field-status-editor.vue +37 -30
  36. package/src/components/xform/form-designer/setting-panel/property-editor/field-vabUpload2/field-vabUpload2-editor.vue +62 -0
  37. package/src/components/xform/form-designer/setting-panel/property-editor/formScriptEnabled-editor.vue +19 -14
  38. package/src/components/xform/form-designer/setting-panel/property-editor/oplog-editor.vue +31 -0
  39. package/src/components/xform/form-designer/setting-panel/propertyRegister.js +5 -1
  40. package/src/components/xform/form-designer/widget-panel/indexMixin.js +19 -19
  41. package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +132 -0
  42. package/src/components/xform/form-render/container-item/containerItemMixin.js +12 -11
  43. package/src/components/xform/form-render/container-item/data-table-item.vue +13 -10
  44. package/src/components/xform/form-render/container-item/data-table-mixin.js +5 -4
  45. package/src/components/xform/form-render/indexMixin.js +3 -2
  46. package/src/components/xform/lang/zh-CN.js +3 -0
  47. package/src/components/xform/utils/util.js +1 -1451
  48. package/src/utils/request.js +1 -1
  49. package/src/utils/vab.js +1 -1
  50. package/src/views/user/notify_message/dialog.vue +24 -19
  51. package/src/views/user/outLink/form_view.vue +211 -211
  52. package/src/views/user/wf/wfReport/index.vue +448 -0
  53. package/src/views/user/wf/wf_manage/list.vue +344 -251
  54. package/src/views/user/wf/wf_transfer_setting/edit.vue +229 -0
  55. package/src/views/user/wf/wf_transfer_setting/list.vue +308 -0
@@ -1,137 +1,277 @@
1
1
  <template>
2
- <baseTabPane :label="$t2('流程信息', 'components.wf.wfInfo')" :showFold="showWfFold"
3
- :defaultShowContent="showWfContent" v-if="!isHideWf">
2
+ <baseTabPane
3
+ :label="$t2('流程信息', 'components.wf.wfInfo')"
4
+ :showFold="showWfFold"
5
+ :defaultShowContent="showWfContent"
6
+ v-if="!isHideWf"
7
+ >
4
8
  <template #default>
5
- <div style="margin: -36px 0 8px 124px;position: relative;z-index: 2;height:28px">
6
- <el-button type="success" class="button-sty" @click="openAgreeDialog" v-show="wfInfo.toSubmit"
7
- icon="iconfont icon-tongguo">{{ $t2('通过', 'components.wf.agree') }}
9
+ <div
10
+ style="margin: -36px 0 8px 124px; position: relative; z-index: 2; height: 28px"
11
+ >
12
+ <el-button
13
+ type="success"
14
+ class="button-sty"
15
+ @click="openAgreeDialog"
16
+ v-show="wfInfo.toSubmit"
17
+ icon="iconfont icon-tongguo"
18
+ >{{ $t2("通过", "components.wf.agree") }}
19
+ </el-button>
20
+ <el-button
21
+ type="warning"
22
+ class="button-sty"
23
+ @click="openManualDialog"
24
+ v-show="wfInfo.toInterrupt"
25
+ icon="iconfont icon-caozuozhongduan"
26
+ >{{ $t2("中断", "components.wf.manual") }}
8
27
  </el-button>
9
- <el-button type="warning" class="button-sty" @click="openManualDialog" v-show="wfInfo.toInterrupt"
10
- icon="iconfont icon-caozuozhongduan">{{ $t2('中断', 'components.wf.manual') }}
28
+ <el-button
29
+ type="danger"
30
+ class="button-sty"
31
+ @click="rejectWfTask"
32
+ v-show="wfInfo.toReject"
33
+ icon="iconfont icon-a-bohui1"
34
+ >{{ $t2("驳回", "components.wf.reject") }}
11
35
  </el-button>
12
- <el-button type="danger" class="button-sty" @click="rejectWfTask" v-show="wfInfo.toReject"
13
- icon="iconfont icon-a-bohui1">{{ $t2('驳回', 'components.wf.reject') }}
36
+ <el-button
37
+ type="primary"
38
+ class="button-sty"
39
+ @click="openChangeWfForm"
40
+ v-show="
41
+ wfInfo.toTransfer === null || wfInfo.toTransfer === undefined
42
+ ? wfInfo.toSubmit
43
+ : wfInfo.toTransfer
44
+ "
45
+ icon="iconfont icon-zhuanban"
46
+ >{{ $t2("转办", "components.wf.transfer") }}
14
47
  </el-button>
15
- <el-button type="primary" class="button-sty" @click="openChangeWfForm"
16
- v-show="(wfInfo.toTransfer===null || wfInfo.toTransfer===undefined) ? wfInfo.toSubmit: wfInfo.toTransfer"
17
- icon="iconfont icon-zhuanban">{{ $t2('转办', 'components.wf.transfer') }}
48
+ <el-button
49
+ type="primary"
50
+ class="button-sty"
51
+ @click="openUrgingDialog"
52
+ v-show="wfInfo.toInterrupt"
53
+ icon="iconfont icon-cuiban"
54
+ >{{ $t2("催办", "components.wf.urging") }}
18
55
  </el-button>
19
- <el-button type="primary" class="button-sty" @click="openUrgingDialog" v-show="wfInfo.toInterrupt"
20
- icon="iconfont icon-cuiban">{{ $t2('催办', 'components.wf.urging') }}
56
+ <el-button
57
+ type="primary"
58
+ class="button-sty"
59
+ @click="openAddIncreaseSign"
60
+ v-show="wfInfo.toAddIncreaseSign"
61
+ icon="el-icon-plus"
62
+ >{{ $t2("加签", "components.wf.addIncreaseSign") }}
21
63
  </el-button>
22
- <el-button type="primary" class="button-sty" @click="openAddIncreaseSign" v-show="wfInfo.toAddIncreaseSign"
23
- icon="el-icon-plus">{{ $t2('加签', 'components.wf.addIncreaseSign') }}
64
+ <el-button
65
+ type="primary"
66
+ class="button-sty"
67
+ @click="openDeleteTaskUserDialog"
68
+ v-show="wfInfo.toDeleteIncreaseSign"
69
+ icon="el-icon-delete"
70
+ >{{ $t2("减签", "components.wf.deleteIncreaseSign") }}
24
71
  </el-button>
25
- <el-button type="primary" class="button-sty" @click="openDeleteTaskUserDialog"
26
- v-show="wfInfo.toDeleteIncreaseSign"
27
- icon="el-icon-delete">{{ $t2('减签', 'components.wf.deleteIncreaseSign') }}
72
+ <el-button
73
+ type="primary"
74
+ class="button-sty"
75
+ @click="openTalkDialog()"
76
+ icon="el-icon-chat-dot-square"
77
+ v-if="toTalk && wfInfo.toLinkup"
78
+ >
79
+ {{ $t2("沟通", "components.wf.talk") }}
28
80
  </el-button>
29
- <el-button type="primary" class="button-sty" @click="openTalkDialog()"
30
- icon="el-icon-chat-dot-square" v-if="toTalk && wfInfo.toLinkup">
31
- {{ $t2('沟通', 'components.wf.talk') }}
81
+ <el-button
82
+ type="primary"
83
+ class="button-sty"
84
+ @click="openSetCandidateDialog(null)"
85
+ v-show="wfInfo.toSetCandidate"
86
+ icon="el-icon-user"
87
+ >{{ $t2("修改候选人", "components.wf.setCandidate") }}
32
88
  </el-button>
33
- <el-button type="primary" class="button-sty" @click="openSetCandidateDialog(null)"
34
- v-show="wfInfo.toSetCandidate"
35
- icon="el-icon-user">{{ $t2('修改候选人', 'components.wf.setCandidate') }}
89
+ <el-button
90
+ type="danger"
91
+ class="button-sty"
92
+ @click="openRevokeDialog(null)"
93
+ v-show="wfInfo.toRevoke"
94
+ icon="el-icon-document-delete"
95
+ >{{ $t2("撤回", "components.wf.revoke") }}
36
96
  </el-button>
37
- <el-button type="danger" class="button-sty" @click="openRevokeDialog(null)"
38
- v-show="wfInfo.toRevoke"
39
- icon="el-icon-document-delete">{{ $t2('撤回', 'components.wf.revoke') }}
97
+ <addOpinionButton
98
+ v-if="showAddOpinionButton"
99
+ @confirm="reloadContent()"
100
+ :wfInfo="wfInfo"
101
+ :wfSendTaskId="wfSendTaskId"
102
+ :current_prefix="current_prefix"
103
+ ></addOpinionButton>
104
+ <el-button
105
+ type="primary"
106
+ class="button-sty"
107
+ @click="openWfFlowEleScriptDialog"
108
+ v-if="wfInfo.wfAdmin"
109
+ icon="el-icon-edit"
110
+ >{{ $t1("修改脚本") }}
40
111
  </el-button>
41
- <addOpinionButton v-if="showAddOpinionButton" @confirm="reloadContent()" :wfInfo="wfInfo" :wfSendTaskId="wfSendTaskId" :current_prefix="current_prefix"></addOpinionButton>
42
112
  </div>
43
113
  <div class="title-name">
44
114
  <b>
45
- <em>{{ $t2('流程主题', 'components.wf.theme') }}:</em>
115
+ <em>{{ $t2("流程主题", "components.wf.theme") }}:</em>
46
116
  {{ wfInfo.name }}
47
117
  </b>
48
118
  <span v-html="wfInfo.statusStr" class="status"></span>
49
119
  </div>
50
- <div class="title-second" @click="showFlowImg = !showFlowImg"
51
- style="margin: 14px 0 24px;line-height: 29px;cursor: pointer;">
52
- <b>{{ $t2('流程图', 'components.wf.wfImage') }}</b>
53
- <div class="fr" v-if="showFlowImg == true" style="font-weight: 400;">
54
- <span>{{ $t2('收起', 'components.wf.collapse') }}</span>
120
+ <div
121
+ class="title-second"
122
+ @click="showFlowImg = !showFlowImg"
123
+ style="margin: 14px 0 24px; line-height: 29px; cursor: pointer"
124
+ >
125
+ <b>{{ $t2("流程图", "components.wf.wfImage") }}</b>
126
+ <div class="fr" v-if="showFlowImg == true" style="font-weight: 400">
127
+ <span>{{ $t2("收起", "components.wf.collapse") }}</span>
55
128
  <i class="el-icon-arrow-up"></i>
56
129
  </div>
57
- <div class="fr" v-else style="font-weight: 400;">
58
- <span>{{ $t2('展开', 'components.wf.expand') }}</span>
130
+ <div class="fr" v-else style="font-weight: 400">
131
+ <span>{{ $t2("展开", "components.wf.expand") }}</span>
59
132
  <i class="el-icon-arrow-down"></i>
60
133
  </div>
61
134
  </div>
62
- <div class="flow-tree" style="padding-right:0" v-show="showFlowImg == true">
135
+ <div class="flow-tree" style="padding-right: 0" v-show="showFlowImg == true">
63
136
  <div class="flow-box">
64
- <img :src="wfImage"/>
65
- <el-tooltip :enterable="false" class="item" effect="dark" :content="$t2('放大', 'components.wf.enlarge')"
66
- placement="bottom">
67
- <i class="el-icon-zoom-in btn-magnifier" @click="$window.open(wfImage)" style="right:0;"></i>
137
+ <img :src="wfImage" />
138
+ <el-tooltip
139
+ :enterable="false"
140
+ class="item"
141
+ effect="dark"
142
+ :content="$t2('放大', 'components.wf.enlarge')"
143
+ placement="bottom"
144
+ >
145
+ <i
146
+ class="el-icon-zoom-in btn-magnifier"
147
+ @click="$window.open(wfImage)"
148
+ style="right: 0"
149
+ ></i>
68
150
  </el-tooltip>
69
151
  </div>
70
152
  </div>
71
153
  <div v-show="showWfInfoTab">
72
154
  <div class="title-tab">
73
155
  <div>
74
- <b :class="{on:tabIndex=='1'}" @click="tabIndex='1'">{{ $t2('任务情况', 'components.wf.taskInfo') }}</b>
75
- <b :class="{on:tabIndex=='2'}" @click="tabIndex='2'" v-if="toTalk">{{ $t2('流程沟通', 'components.wf.wfTalk') }}</b>
76
- <b :class="{on:tabIndex=='4'}" @click="tabIndex='4'" v-if="showCandidate">{{ $t1('节点候选人') }}</b>
77
- <b :class="{on:tabIndex=='3'}" @click="tabIndex='3'" v-if="showAllWfOpinon">{{ $t2('全部任务情况', 'components.wf.allTaskInfo') }}</b>
156
+ <b :class="{ on: tabIndex == '1' }" @click="tabIndex = '1'">{{
157
+ $t2("任务情况", "components.wf.taskInfo")
158
+ }}</b>
159
+ <b :class="{ on: tabIndex == '2' }" @click="tabIndex = '2'" v-if="toTalk">{{
160
+ $t2("流程沟通", "components.wf.wfTalk")
161
+ }}</b>
162
+ <b
163
+ :class="{ on: tabIndex == '4' }"
164
+ @click="tabIndex = '4'"
165
+ v-if="showCandidate"
166
+ >{{ $t1("节点候选人") }}</b
167
+ >
168
+ <b
169
+ :class="{ on: tabIndex == '3' }"
170
+ @click="tabIndex = '3'"
171
+ v-if="showAllWfOpinon"
172
+ >{{ $t2("全部任务情况", "components.wf.allTaskInfo") }}</b
173
+ >
78
174
  </div>
79
175
  </div>
80
- <div v-show="tabIndex=='1'">
176
+ <div v-show="tabIndex == '1'">
81
177
  <div class="title-five"><b>任务流程</b></div>
82
- <div class="task-situation" style="padding-left: 14px;">
83
- <div class="item" v-for="wftaskLineData in wftaskData" :key="wftaskLineData.id">
178
+ <div class="task-situation" style="padding-left: 14px">
179
+ <div
180
+ class="item"
181
+ v-for="wftaskLineData in wftaskData"
182
+ :key="wftaskLineData.id"
183
+ >
84
184
  <div class="time">
85
- {{ wftaskLineData.approveTime ? wftaskLineData.approveTime.substring(0, 10) : '' }}
86
- <br/>
87
- {{ wftaskLineData.approveTime ? wftaskLineData.approveTime.substring(11) : '' }}
185
+ {{
186
+ wftaskLineData.approveTime
187
+ ? wftaskLineData.approveTime.substring(0, 10)
188
+ : ""
189
+ }}
190
+ <br />
191
+ {{
192
+ wftaskLineData.approveTime
193
+ ? wftaskLineData.approveTime.substring(11)
194
+ : ""
195
+ }}
88
196
  </div>
89
- <div class="status" :class="taskStatuses[wftaskLineData.type]?taskStatuses[wftaskLineData.type].class:''">
90
- {{ taskStatuses[wftaskLineData.type] ? taskStatuses[wftaskLineData.type].value : null }}
197
+ <div
198
+ class="status"
199
+ :class="
200
+ taskStatuses[wftaskLineData.type]
201
+ ? taskStatuses[wftaskLineData.type].class
202
+ : ''
203
+ "
204
+ >
205
+ {{
206
+ taskStatuses[wftaskLineData.type]
207
+ ? taskStatuses[wftaskLineData.type].value
208
+ : null
209
+ }}
91
210
  </div>
92
211
  <i class="circle"></i>
93
212
  <div class="info">
94
213
  <p>
95
214
  <span class="name">{{ wftaskLineData.taskName }}</span>
96
- <span>{{ $t2('执行人', 'components.wf.approverName') }}:{{ wftaskLineData.approverName }}</span>
215
+ <span
216
+ >{{ $t2("执行人", "components.wf.approverName") }}:{{
217
+ wftaskLineData.approverName
218
+ }}</span
219
+ >
97
220
  <span>
98
- {{ $t2('候选人', 'components.wf.candidateName') }}:
221
+ {{ $t2("候选人", "components.wf.candidateName") }}:
99
222
  <span>
100
- <span style="float:left;width:auto;margin-right:10px;">{{ wftaskLineData.candidateNames }}</span>
223
+ <span style="float: left; width: auto; margin-right: 10px">{{
224
+ wftaskLineData.candidateNames
225
+ }}</span>
101
226
  <setCandidateButton
102
- v-if="wftaskLineData.flag==1"
103
- style="float:left;width:auto;"
104
- :current_prefix="current_prefix"
105
- :wfInfo="wfInfo"
106
- :checkRow="wftaskLineData"
107
- @confirm="reloadContent()"
227
+ v-if="wftaskLineData.flag == 1"
228
+ style="float: left; width: auto"
229
+ :current_prefix="current_prefix"
230
+ :wfInfo="wfInfo"
231
+ :checkRow="wftaskLineData"
232
+ @confirm="reloadContent()"
108
233
  ></setCandidateButton>
234
+ </span>
109
235
  </span>
110
-
111
- </span>
112
236
  </p>
113
- <p class="t"><span class="t1">{{ $t2('备注/意见', 'components.wf.opinion') }}:</span><span>{{
114
- wftaskLineData.opinion
115
- }}</span></p>
237
+ <p class="t">
238
+ <span class="t1">{{ $t2("备注/意见", "components.wf.opinion") }}:</span
239
+ ><span>{{ wftaskLineData.opinion }}</span>
240
+ </p>
116
241
  </div>
117
242
  </div>
118
-
119
243
  </div>
120
244
  <div class="title-five" v-if="showWfMemo">
121
- <b>{{$t1("发起人附言")}}</b>
122
- <el-button v-if="wfInfo.toAddMemo" class="button-sty" icon="el-icon-plus" @click="openWfMemoDialog()" type="primary">{{$t1("新增")}}</el-button>
245
+ <b>{{ $t1("发起人附言") }}</b>
246
+ <el-button
247
+ v-if="wfInfo.toAddMemo"
248
+ class="button-sty"
249
+ icon="el-icon-plus"
250
+ @click="openWfMemoDialog()"
251
+ type="primary"
252
+ >{{ $t1("新增") }}</el-button
253
+ >
123
254
  </div>
124
255
  <div class="postscript-box">
125
- <div class='item' v-for="(item,index) in wfMemoData" :key="index">
126
- <div class="txt" style="white-space: pre-wrap;">{{item.content}}</div>
127
- <div class="attach-box" v-if="item.attachmentDTOs && item.attachmentDTOs.length">
128
- <baseUpload accept="file" multi="true" :edit="false" :widgetSize="1" :file.sync="item.attachmentDTOs"></baseUpload>
256
+ <div class="item" v-for="(item, index) in wfMemoData" :key="index">
257
+ <div class="txt" style="white-space: pre-wrap">{{ item.content }}</div>
258
+ <div
259
+ class="attach-box"
260
+ v-if="item.attachmentDTOs && item.attachmentDTOs.length"
261
+ >
262
+ <baseUpload
263
+ accept="file"
264
+ multi="true"
265
+ :edit="false"
266
+ :widgetSize="1"
267
+ :file.sync="item.attachmentDTOs"
268
+ ></baseUpload>
129
269
  </div>
130
- <div class="time">{{item.createDate}}</div>
270
+ <div class="time">{{ item.createDate }}</div>
131
271
  </div>
132
272
  </div>
133
273
  </div>
134
- <div class="task-situation" v-show="toTalk && tabIndex=='2'">
274
+ <div class="task-situation" v-show="toTalk && tabIndex == '2'">
135
275
  <vxe-grid
136
276
  ref="table-linkup"
137
277
  :auto-resize="true"
@@ -140,10 +280,15 @@
140
280
  @custom="$vxeTableUtil.customHandle"
141
281
  >
142
282
  <template #form>
143
- <div style="margin-bottom: 8px;" class="clearfix">
283
+ <div style="margin-bottom: 8px" class="clearfix">
144
284
  <div class="fl">
145
- <el-button type="primary" class="button-sty" @click="openTalkDialog()"
146
- icon="el-icon-chat-dot-square" v-if="wfInfo.toLinkup">{{ $t2('沟通', 'components.wf.talk') }}
285
+ <el-button
286
+ type="primary"
287
+ class="button-sty"
288
+ @click="openTalkDialog()"
289
+ icon="el-icon-chat-dot-square"
290
+ v-if="wfInfo.toLinkup"
291
+ >{{ $t2("沟通", "components.wf.talk") }}
147
292
  </el-button>
148
293
  </div>
149
294
  <div class="fr">
@@ -152,15 +297,20 @@
152
297
  </div>
153
298
  </div>
154
299
  </template>
155
- <template #sender="{row}">
300
+ <template #sender="{ row }">
156
301
  <a
157
302
  href="javascript:void(0);"
158
303
  class="a-link"
159
- @click="openTalkDialog(row.sender,row.senderName,null,null,row.id)"
304
+ @click="openTalkDialog(row.sender, row.senderName, null, null, row.id)"
160
305
  v-if="row.replyToSender"
161
306
  >
162
- <el-tooltip :enterable="false" effect="dark" :content="$t2('沟通', 'components.wf.talk')" placement="top"
163
- popper-class="tooltip-skin">
307
+ <el-tooltip
308
+ :enterable="false"
309
+ effect="dark"
310
+ :content="$t2('沟通', 'components.wf.talk')"
311
+ placement="top"
312
+ popper-class="tooltip-skin"
313
+ >
164
314
  <div>
165
315
  <i class="el-icon-chat-dot-square"></i>
166
316
  <span>{{ row.senderName }}</span>
@@ -169,15 +319,22 @@
169
319
  </a>
170
320
  <span v-else>{{ row.senderName }}</span>
171
321
  </template>
172
- <template #receiver="{row}">
322
+ <template #receiver="{ row }">
173
323
  <a
174
324
  href="javascript:void(0);"
175
325
  class="a-link"
176
- @click="openTalkDialog(row.receiver,row.receiverName,null,null,row.id)"
326
+ @click="
327
+ openTalkDialog(row.receiver, row.receiverName, null, null, row.id)
328
+ "
177
329
  v-if="row.replyToReceiver"
178
330
  >
179
- <el-tooltip :enterable="false" effect="dark" :content="$t2('沟通', 'components.wf.talk')" placement="top"
180
- popper-class="tooltip-skin">
331
+ <el-tooltip
332
+ :enterable="false"
333
+ effect="dark"
334
+ :content="$t2('沟通', 'components.wf.talk')"
335
+ placement="top"
336
+ popper-class="tooltip-skin"
337
+ >
181
338
  <div>
182
339
  <i class="el-icon-chat-dot-square"></i>
183
340
  <span>{{ row.receiverName }}</span>
@@ -186,67 +343,99 @@
186
343
  </a>
187
344
  <span v-else>{{ row.receiverName }}</span>
188
345
  </template>
189
- <template #operate="{row}">
346
+ <template #operate="{ row }">
190
347
  <a
191
348
  href="javascript:void(0);"
192
349
  class="a-link"
193
- style="font-weight: bold; text-decoration: underline;"
350
+ style="font-weight: bold; text-decoration: underline"
194
351
  @click="cancelTalk(row)"
195
352
  v-if="row.toCancel"
196
353
  >
197
- <el-tooltip :enterable="false" effect="dark" :content="$t2('取消', 'system.button.cancel')"
198
- placement="top"
199
- popper-class="tooltip-skin">
354
+ <el-tooltip
355
+ :enterable="false"
356
+ effect="dark"
357
+ :content="$t2('取消', 'system.button.cancel')"
358
+ placement="top"
359
+ popper-class="tooltip-skin"
360
+ >
200
361
  <div class="vxe-grid">
201
362
  <i class="el-icon-document-delete"></i>
202
- <span>{{ $t2('取消', 'system.button.cancel') }}</span>
363
+ <span>{{ $t2("取消", "system.button.cancel") }}</span>
203
364
  </div>
204
365
  </el-tooltip>
205
366
  </a>
206
367
  </template>
207
368
  </vxe-grid>
208
369
  </div>
209
- <div class="task-situation" v-show="showAllWfOpinon && tabIndex=='3'"
210
- style="max-height: 500px; overflow: hidden auto;">
211
- <div class="item" v-for="wftaskLineData in allWfTaskOpinions" :key="'allWfTaskOpinions'+wftaskLineData.id">
370
+ <div
371
+ class="task-situation"
372
+ v-show="showAllWfOpinon && tabIndex == '3'"
373
+ style="max-height: 500px; overflow: hidden auto"
374
+ >
375
+ <div
376
+ class="item"
377
+ v-for="wftaskLineData in allWfTaskOpinions"
378
+ :key="'allWfTaskOpinions' + wftaskLineData.id"
379
+ >
212
380
  <div class="time">
213
- {{ wftaskLineData.approveTime ? wftaskLineData.approveTime.substring(0, 10) : '' }}
214
- <br/>
215
- {{ wftaskLineData.approveTime ? wftaskLineData.approveTime.substring(11) : '' }}
381
+ {{
382
+ wftaskLineData.approveTime
383
+ ? wftaskLineData.approveTime.substring(0, 10)
384
+ : ""
385
+ }}
386
+ <br />
387
+ {{
388
+ wftaskLineData.approveTime ? wftaskLineData.approveTime.substring(11) : ""
389
+ }}
216
390
  </div>
217
- <div class="status" :class="taskStatuses[wftaskLineData.type]?taskStatuses[wftaskLineData.type].class:''">
218
- {{ taskStatuses[wftaskLineData.type] ? taskStatuses[wftaskLineData.type].value : null }}
391
+ <div
392
+ class="status"
393
+ :class="
394
+ taskStatuses[wftaskLineData.type]
395
+ ? taskStatuses[wftaskLineData.type].class
396
+ : ''
397
+ "
398
+ >
399
+ {{
400
+ taskStatuses[wftaskLineData.type]
401
+ ? taskStatuses[wftaskLineData.type].value
402
+ : null
403
+ }}
219
404
  </div>
220
405
  <i class="circle"></i>
221
406
  <div class="info">
222
407
  <p>
223
408
  <span class="name">{{ wftaskLineData.taskName }}</span>
224
- <span>{{ $t2('执行人', 'components.wf.approverName') }}:{{ wftaskLineData.approverName }}</span>
409
+ <span
410
+ >{{ $t2("执行人", "components.wf.approverName") }}:{{
411
+ wftaskLineData.approverName
412
+ }}</span
413
+ >
225
414
  <span>
226
- {{ $t2('候选人', 'components.wf.candidateName') }}:
227
- <span class="">{{ wftaskLineData.candidateNames }}</span>
228
- </span>
415
+ {{ $t2("候选人", "components.wf.candidateName") }}:
416
+ <span class="">{{ wftaskLineData.candidateNames }}</span>
417
+ </span>
418
+ </p>
419
+ <p class="t">
420
+ <span class="t1">{{ $t2("备注/意见", "components.wf.opinion") }}:</span
421
+ ><span>{{ wftaskLineData.opinion }}</span>
229
422
  </p>
230
- <p class="t"><span class="t1">{{ $t2('备注/意见', 'components.wf.opinion') }}:</span><span>{{
231
- wftaskLineData.opinion
232
- }}</span></p>
233
423
  </div>
234
424
  </div>
235
425
  </div>
236
426
  <template v-if="showCandidate">
237
- <div v-show="tabIndex=='4'">
238
- <div style="width:800px">
239
- <vxe-grid
240
- ref="table-candidate"
241
- v-bind="candidateOption"
242
- :data="candidateDatas"
243
- @resizable-change="$vxeTableUtil.onColumnWitchChange"
244
- @custom="$vxeTableUtil.customHandle"
245
- ></vxe-grid>
246
- </div>
427
+ <div v-show="tabIndex == '4'">
428
+ <div style="width: 800px">
429
+ <vxe-grid
430
+ ref="table-candidate"
431
+ v-bind="candidateOption"
432
+ :data="candidateDatas"
433
+ @resizable-change="$vxeTableUtil.onColumnWitchChange"
434
+ @custom="$vxeTableUtil.customHandle"
435
+ ></vxe-grid>
436
+ </div>
247
437
  </div>
248
438
  </template>
249
-
250
439
  </div>
251
440
  <!--沟通-->
252
441
  <el-dialog
@@ -261,79 +450,99 @@
261
450
  v-el-dialog-center
262
451
  >
263
452
  <template #title>
264
- <span class="el-dialog__title">{{ $t2('沟通', 'components.wf.talk') }}<span
265
- style="margin-left: 10px;margin-right: 10px;">—</span><b
266
- class="f-red" style="font-size: 12px;">{{ $t2('节点', 'components.wf.node') }}:{{
267
- wfInfo.taskName
268
- }}</b></span>
453
+ <span class="el-dialog__title"
454
+ >{{ $t2("沟通", "components.wf.talk")
455
+ }}<span style="margin-left: 10px; margin-right: 10px">—</span
456
+ ><b class="f-red" style="font-size: 12px"
457
+ >{{ $t2("节点", "components.wf.node") }}:{{ wfInfo.taskName }}</b
458
+ ></span
459
+ >
269
460
  </template>
270
461
  <el-form :model="talkForm">
271
- <div id="containt" style="height: 500px;">
462
+ <div id="containt" style="height: 500px">
272
463
  <table class="table-detail">
273
464
  <tbody>
274
- <tr>
275
- <th>
465
+ <tr>
466
+ <th>
276
467
  <span class="t">
277
- {{ $t2('接收人', 'components.wf.receiverName') }}
468
+ {{ $t2("接收人", "components.wf.receiverName") }}
278
469
  </span>
279
- </th>
280
- <td>
281
- <el-form-item field="receiverName">
282
- <el-input
283
- class="search-input"
284
- max="200"
285
- v-model="talkForm.receiverName"
286
- @clear="
470
+ </th>
471
+ <td>
472
+ <el-form-item field="receiverName">
473
+ <el-input
474
+ class="search-input"
475
+ max="200"
476
+ v-model="talkForm.receiverName"
477
+ @clear="
287
478
  talkForm.receiver = null;
288
479
  talkForm.replyId = null;
289
480
  $forceUpdate();
290
481
  "
291
- :placeholder="$t2('接收人', 'components.wf.receiverName')"
292
- v-el-readonly
293
- clearable
294
- :disabled="!!talkForm.replyId"
295
- >
296
- <i slot="suffix" class="el-input__icon el-icon-search" @click="openTalkUserDialog"></i>
297
- </el-input>
298
- </el-form-item>
299
- </td>
300
- </tr>
301
- <tr>
302
- <th>
482
+ :placeholder="$t2('接收人', 'components.wf.receiverName')"
483
+ v-el-readonly
484
+ clearable
485
+ :disabled="!!talkForm.replyId"
486
+ >
487
+ <i
488
+ slot="suffix"
489
+ class="el-input__icon el-icon-search"
490
+ @click="openTalkUserDialog"
491
+ ></i>
492
+ </el-input>
493
+ </el-form-item>
494
+ </td>
495
+ </tr>
496
+ <tr>
497
+ <th>
303
498
  <span class="t">
304
- {{ $t2('沟通内容', 'components.wf.talkContent') }}
499
+ {{ $t2("沟通内容", "components.wf.talkContent") }}
305
500
  </span>
306
- </th>
307
- <td>
308
- <el-form-item field="content">
309
- <el-input type="textarea" :rows="8"
310
- :placeholder="$t2('沟通内容', 'components.wf.talkContentPlaceholder')"
311
- v-model="talkForm.content"></el-input>
312
- </el-form-item>
313
- </td>
314
- </tr>
315
- <tr>
316
- <th>
501
+ </th>
502
+ <td>
503
+ <el-form-item field="content">
504
+ <el-input
505
+ type="textarea"
506
+ :rows="8"
507
+ :placeholder="
508
+ $t2('沟通内容', 'components.wf.talkContentPlaceholder')
509
+ "
510
+ v-model="talkForm.content"
511
+ ></el-input>
512
+ </el-form-item>
513
+ </td>
514
+ </tr>
515
+ <tr>
516
+ <th>
317
517
  <span class="t">
318
- {{ $t2('沟通资料', 'components.wf.talkAttachment') }}
518
+ {{ $t2("沟通资料", "components.wf.talkAttachment") }}
319
519
  </span>
320
- </th>
321
- <td>
322
- <baseUpload accept="file" multi="true" :file.sync="talkForm.attachmentDTOs"></baseUpload>
323
- </td>
324
- </tr>
520
+ </th>
521
+ <td>
522
+ <baseUpload
523
+ accept="file"
524
+ multi="true"
525
+ :file.sync="talkForm.attachmentDTOs"
526
+ ></baseUpload>
527
+ </td>
528
+ </tr>
325
529
  </tbody>
326
530
  </table>
327
531
  </div>
328
532
  </el-form>
329
533
  <span slot="footer" class="dialog-footer">
330
- <el-button type="primary" plain class="button-sty" @click="showTalkDialog = false">
534
+ <el-button
535
+ type="primary"
536
+ plain
537
+ class="button-sty"
538
+ @click="showTalkDialog = false"
539
+ >
331
540
  <i class="el-icon-close el-icon"></i>
332
- {{ $t2('取 消', 'system.button.cancel2') }}
541
+ {{ $t2("取 消", "system.button.cancel2") }}
333
542
  </el-button>
334
543
  <el-button type="primary" @click="submitTalkForm" class="button-sty">
335
544
  <i class="el-icon-check el-icon"></i>
336
- {{ $t2('确 定', 'system.button.confirm2') }}
545
+ {{ $t2("确 定", "system.button.confirm2") }}
337
546
  </el-button>
338
547
  </span>
339
548
  </el-dialog>
@@ -351,52 +560,66 @@
351
560
  v-el-dialog-center
352
561
  >
353
562
  <template #title>
354
- <span class="el-dialog__title">{{ $t1('发起人附言') }}<span
355
- style="margin-left: 10px;margin-right: 10px;">—</span><b
356
- class="f-red" style="font-size: 12px;">{{ $t2('节点', 'components.wf.node') }}:{{
357
- wfInfo.taskName
358
- }}</b></span>
563
+ <span class="el-dialog__title"
564
+ >{{ $t1("发起人附言")
565
+ }}<span style="margin-left: 10px; margin-right: 10px">—</span
566
+ ><b class="f-red" style="font-size: 12px"
567
+ >{{ $t2("节点", "components.wf.node") }}:{{ wfInfo.taskName }}</b
568
+ ></span
569
+ >
359
570
  </template>
360
571
  <el-form :model="wfMemoForm">
361
- <div id="containt" style="height: 500px;">
572
+ <div id="containt" style="height: 500px">
362
573
  <table class="table-detail">
363
574
  <tbody>
364
- <tr>
365
- <th>
575
+ <tr>
576
+ <th>
366
577
  <span class="t">
367
- {{ $t1('内容') }}
578
+ {{ $t1("内容") }}
368
579
  </span>
369
- </th>
370
- <td>
371
- <el-form-item field="content">
372
- <el-input type="textarea" :rows="8"
373
- :placeholder="$t1('内容')"
374
- v-model="wfMemoForm.content"></el-input>
375
- </el-form-item>
376
- </td>
377
- </tr>
378
- <tr>
379
- <th>
580
+ </th>
581
+ <td>
582
+ <el-form-item field="content">
583
+ <el-input
584
+ type="textarea"
585
+ :rows="8"
586
+ :placeholder="$t1('内容')"
587
+ v-model="wfMemoForm.content"
588
+ ></el-input>
589
+ </el-form-item>
590
+ </td>
591
+ </tr>
592
+ <tr>
593
+ <th>
380
594
  <span class="t">
381
- {{ $t1('附件') }}
595
+ {{ $t1("附件") }}
382
596
  </span>
383
- </th>
384
- <td>
385
- <baseUpload accept="file" multi="true" :file.sync="wfMemoForm.attachmentDTOs"></baseUpload>
386
- </td>
387
- </tr>
597
+ </th>
598
+ <td>
599
+ <baseUpload
600
+ accept="file"
601
+ multi="true"
602
+ :file.sync="wfMemoForm.attachmentDTOs"
603
+ ></baseUpload>
604
+ </td>
605
+ </tr>
388
606
  </tbody>
389
607
  </table>
390
608
  </div>
391
609
  </el-form>
392
610
  <span slot="footer" class="dialog-footer">
393
- <el-button type="primary" plain class="button-sty" @click="showWfMemoDialog = false">
611
+ <el-button
612
+ type="primary"
613
+ plain
614
+ class="button-sty"
615
+ @click="showWfMemoDialog = false"
616
+ >
394
617
  <i class="el-icon-close el-icon"></i>
395
- {{ $t2('取 消', 'system.button.cancel2') }}
618
+ {{ $t2("取 消", "system.button.cancel2") }}
396
619
  </el-button>
397
620
  <el-button type="primary" @click="submitWfMemoForm" class="button-sty">
398
621
  <i class="el-icon-check el-icon"></i>
399
- {{ $t2('确 定', 'system.button.confirm2') }}
622
+ {{ $t2("确 定", "system.button.confirm2") }}
400
623
  </el-button>
401
624
  </span>
402
625
  </el-dialog>
@@ -412,58 +635,78 @@
412
635
  v-el-dialog-center
413
636
  >
414
637
  <template #title>
415
- <span class="el-dialog__title">{{ $t2('流程驳回', 'components.wf.wfReject') }}<span
416
- style="margin-left: 10px;margin-right: 10px;">—</span><b
417
- class="f-red" style="font-size: 12px;">{{ $t2('节点', 'components.wf.node') }}:{{
418
- wfInfo.taskName
419
- }}</b></span>
638
+ <span class="el-dialog__title"
639
+ >{{ $t2("流程驳回", "components.wf.wfReject")
640
+ }}<span style="margin-left: 10px; margin-right: 10px">—</span
641
+ ><b class="f-red" style="font-size: 12px"
642
+ >{{ $t2("节点", "components.wf.node") }}:{{ wfInfo.taskName }}</b
643
+ ></span
644
+ >
420
645
  </template>
421
646
  <el-form :model="rejectForm">
422
647
  <div id="containt">
423
648
  <table class="table-detail">
424
649
  <tbody>
425
- <tr>
426
- <th>
650
+ <tr>
651
+ <th>
427
652
  <span class="t">
428
- {{ $t2('驳回节点', 'components.wf.rejectNode') }}
653
+ {{ $t2("驳回节点", "components.wf.rejectNode") }}
429
654
  </span>
430
- </th>
431
- <td>
432
- <el-form-item label="" field="nodeId">
433
- <el-select v-model="rejectForm.nodeId"
434
- :placeholder="$t2('请选择驳回节点', 'components.wf.rejectNodePlaceholder')">
435
- <el-option v-for="(rejectNode,index) in rejectNodes" :label="rejectNode.nodeName"
436
- :value="rejectNode.nodeId" :key="index"></el-option>
437
- </el-select>
438
- </el-form-item>
439
- </td>
440
- </tr>
441
- <tr>
442
- <th>
655
+ </th>
656
+ <td>
657
+ <el-form-item label="" field="nodeId">
658
+ <el-select
659
+ v-model="rejectForm.nodeId"
660
+ :placeholder="
661
+ $t2('请选择驳回节点', 'components.wf.rejectNodePlaceholder')
662
+ "
663
+ >
664
+ <el-option
665
+ v-for="(rejectNode, index) in rejectNodes"
666
+ :label="rejectNode.nodeName"
667
+ :value="rejectNode.nodeId"
668
+ :key="index"
669
+ ></el-option>
670
+ </el-select>
671
+ </el-form-item>
672
+ </td>
673
+ </tr>
674
+ <tr>
675
+ <th>
443
676
  <span class="t">
444
- {{ $t2('驳回意见', 'components.wf.rejectOpinion') }}
677
+ {{ $t2("驳回意见", "components.wf.rejectOpinion") }}
445
678
  </span>
446
- </th>
447
- <td>
448
- <el-form-item label="" field="opinion">
449
- <el-input type="textarea" :rows="8"
450
- :placeholder="$t2('请输入内容', 'components.wf.rejectOpinionPlaceholder')"
451
- v-model="rejectForm.opinion"></el-input>
452
- </el-form-item>
453
- </td>
454
- </tr>
679
+ </th>
680
+ <td>
681
+ <el-form-item label="" field="opinion">
682
+ <el-input
683
+ type="textarea"
684
+ :rows="8"
685
+ :placeholder="
686
+ $t2('请输入内容', 'components.wf.rejectOpinionPlaceholder')
687
+ "
688
+ v-model="rejectForm.opinion"
689
+ ></el-input>
690
+ </el-form-item>
691
+ </td>
692
+ </tr>
455
693
  </tbody>
456
694
  </table>
457
695
  </div>
458
696
  </el-form>
459
697
  <span slot="footer" class="dialog-footer">
460
- <el-button type="primary" plain class="button-sty" @click="rejectDialogVisible = false">
698
+ <el-button
699
+ type="primary"
700
+ plain
701
+ class="button-sty"
702
+ @click="rejectDialogVisible = false"
703
+ >
461
704
  <i class="el-icon-close el-icon"></i>
462
- {{ $t2('取 消', 'system.button.cancel2') }}
705
+ {{ $t2("取 消", "system.button.cancel2") }}
463
706
  </el-button>
464
707
  <el-button type="primary" @click="subRejectForm" class="button-sty">
465
708
  <i class="el-icon-check el-icon"></i>
466
- {{ $t2('确 定', 'system.button.confirm2') }}
709
+ {{ $t2("确 定", "system.button.confirm2") }}
467
710
  </el-button>
468
711
  </span>
469
712
  </el-dialog>
@@ -478,59 +721,84 @@
478
721
  v-el-dialog-center
479
722
  >
480
723
  <template #title>
481
- <span class="el-dialog__title">{{ $t2('流程通过', 'components.wf.wfAgree') }}<span
482
- style="margin-left: 10px;margin-right: 10px;">—</span><b
483
- class="f-red" style="font-size: 12px;">{{ $t2('节点', 'components.wf.node') }}:{{
484
- wfInfo.taskName
485
- }}</b></span>
724
+ <span class="el-dialog__title"
725
+ >{{ $t2("流程通过", "components.wf.wfAgree")
726
+ }}<span style="margin-left: 10px; margin-right: 10px">—</span
727
+ ><b class="f-red" style="font-size: 12px"
728
+ >{{ $t2("节点", "components.wf.node") }}:{{ wfInfo.taskName }}</b
729
+ ></span
730
+ >
486
731
  </template>
487
732
  <el-form :model="agreeForm">
488
733
  <div id="containt">
489
734
  <table class="table-detail">
490
735
  <tbody>
491
- <tr v-if="agreeNodes.length>0">
492
- <th>
736
+ <tr v-if="agreeNodes.length > 0">
737
+ <th>
493
738
  <span class="t">
494
- {{ $t2('通过节点', 'components.wf.agreeNode') }}
739
+ {{ $t2("通过节点", "components.wf.agreeNode") }}
495
740
  </span>
496
- </th>
497
- <td>
498
- <el-form-item label="" field="nodeId">
499
- <el-select v-model="agreeForm.nodeId"
500
- :placeholder="$t2('请选择通过节点', 'components.wf.agreeNodePlaceholder')">
501
- <el-option v-for="(node,index) in agreeNodes" :label="node.nodeName"
502
- :value="node.nodeId" :key="index"></el-option>
503
- </el-select>
504
- </el-form-item>
505
- </td>
506
- </tr>
507
- <tr>
508
- <th>
741
+ </th>
742
+ <td>
743
+ <el-form-item label="" field="nodeId">
744
+ <el-select
745
+ v-model="agreeForm.nodeId"
746
+ :placeholder="
747
+ $t2('请选择通过节点', 'components.wf.agreeNodePlaceholder')
748
+ "
749
+ >
750
+ <el-option
751
+ v-for="(node, index) in agreeNodes"
752
+ :label="node.nodeName"
753
+ :value="node.nodeId"
754
+ :key="index"
755
+ ></el-option>
756
+ </el-select>
757
+ </el-form-item>
758
+ </td>
759
+ </tr>
760
+ <tr>
761
+ <th>
509
762
  <span class="t">
510
- {{ $t2('通过意见', 'components.wf.agreeOpinion') }}
763
+ {{ $t2("通过意见", "components.wf.agreeOpinion") }}
511
764
  </span>
512
- </th>
513
- <td>
514
- <el-form-item label="" field="opinion">
515
- <el-input type="textarea" :rows="8" :placeholder="$t2(`请填写您的意见~
765
+ </th>
766
+ <td>
767
+ <el-form-item label="" field="opinion">
768
+ <el-input
769
+ type="textarea"
770
+ :rows="8"
771
+ :placeholder="
772
+ $t2(
773
+ `请填写您的意见~
516
774
  注:
517
775
  通过默认意见为“同意”
518
- `, 'components.wf.agreeOpinionPlaceholder')" v-model="agreeForm.opinion"></el-input>
519
- </el-form-item>
520
- </td>
521
- </tr>
776
+ `,
777
+ 'components.wf.agreeOpinionPlaceholder'
778
+ )
779
+ "
780
+ v-model="agreeForm.opinion"
781
+ ></el-input>
782
+ </el-form-item>
783
+ </td>
784
+ </tr>
522
785
  </tbody>
523
786
  </table>
524
787
  </div>
525
788
  </el-form>
526
789
  <span slot="footer" class="dialog-footer">
527
- <el-button type="primary" plain class="button-sty" @click="agreeDialogVisible = false">
790
+ <el-button
791
+ type="primary"
792
+ plain
793
+ class="button-sty"
794
+ @click="agreeDialogVisible = false"
795
+ >
528
796
  <i class="el-icon-close el-icon"></i>
529
- {{ $t2('取 消', 'system.button.cancel2') }}
797
+ {{ $t2("取 消", "system.button.cancel2") }}
530
798
  </el-button>
531
799
  <el-button type="primary" @click="subAgreeForm" class="button-sty">
532
800
  <i class="el-icon-check el-icon"></i>
533
- {{ $t2('确 定', 'system.button.confirm2') }}
801
+ {{ $t2("确 定", "system.button.confirm2") }}
534
802
  </el-button>
535
803
  </span>
536
804
  </el-dialog>
@@ -546,67 +814,83 @@
546
814
  :append-to-body="true"
547
815
  >
548
816
  <template #title>
549
- <span class="el-dialog__title">{{ $t2('流程转办', 'components.wf.wfTransfer') }}<span
550
- style="margin-left: 10px;margin-right: 10px;">—</span><b
551
- class="f-red" style="font-size: 12px;">{{ $t2('节点', 'components.wf.node') }}:{{
552
- wfInfo.taskName
553
- }}</b></span>
817
+ <span class="el-dialog__title"
818
+ >{{ $t2("流程转办", "components.wf.wfTransfer")
819
+ }}<span style="margin-left: 10px; margin-right: 10px">—</span
820
+ ><b class="f-red" style="font-size: 12px"
821
+ >{{ $t2("节点", "components.wf.node") }}:{{ wfInfo.taskName }}</b
822
+ ></span
823
+ >
554
824
  </template>
555
825
  <el-form :model="changeWfForm">
556
826
  <div id="containt">
557
827
  <table class="table-detail">
558
828
  <tbody>
559
- <tr>
560
- <th>
829
+ <tr>
830
+ <th>
561
831
  <span class="t">
562
- {{ $t2('转办人', 'components.wf.transferUser') }}
832
+ {{ $t2("转办人", "components.wf.transferUser") }}
563
833
  </span>
564
- </th>
565
- <td>
566
- <el-form-item label="" field="nodeId">
567
- <el-input
568
- class="search-input"
569
- max="200"
570
- v-model="changeWfForm.userNickNames"
571
- @clear="
834
+ </th>
835
+ <td>
836
+ <el-form-item label="" field="nodeId">
837
+ <el-input
838
+ class="search-input"
839
+ max="200"
840
+ v-model="changeWfForm.userNickNames"
841
+ @clear="
572
842
  changeWfForm.userIds = '';
573
843
  changeUserRows = [];
574
844
  $forceUpdate();
575
845
  "
576
- v-el-readonly
577
- clearable
578
- >
579
- <i slot="suffix" class="el-input__icon el-icon-search" @click="showUserDialog = true"></i>
580
- </el-input>
581
- </el-form-item>
582
- </td>
583
- </tr>
584
- <tr>
585
- <th>
846
+ v-el-readonly
847
+ clearable
848
+ >
849
+ <i
850
+ slot="suffix"
851
+ class="el-input__icon el-icon-search"
852
+ @click="showUserDialog = true"
853
+ ></i>
854
+ </el-input>
855
+ </el-form-item>
856
+ </td>
857
+ </tr>
858
+ <tr>
859
+ <th>
586
860
  <span class="t">
587
- {{ $t2('转办意见', 'components.wf.transferOpinion') }}
861
+ {{ $t2("转办意见", "components.wf.transferOpinion") }}
588
862
  </span>
589
- </th>
590
- <td>
591
- <el-form-item label="" field="opinion">
592
- <el-input type="textarea" :rows="8"
593
- :placeholder="$t2('请输入内容', 'components.wf.transferOpinionPlaceholder')"
594
- v-model="changeWfForm.opinion"></el-input>
595
- </el-form-item>
596
- </td>
597
- </tr>
863
+ </th>
864
+ <td>
865
+ <el-form-item label="" field="opinion">
866
+ <el-input
867
+ type="textarea"
868
+ :rows="8"
869
+ :placeholder="
870
+ $t2('请输入内容', 'components.wf.transferOpinionPlaceholder')
871
+ "
872
+ v-model="changeWfForm.opinion"
873
+ ></el-input>
874
+ </el-form-item>
875
+ </td>
876
+ </tr>
598
877
  </tbody>
599
878
  </table>
600
879
  </div>
601
880
  </el-form>
602
881
  <span slot="footer" class="dialog-footer">
603
- <el-button type="primary" plain class="button-sty" @click="changeWfDialogVisible = false">
882
+ <el-button
883
+ type="primary"
884
+ plain
885
+ class="button-sty"
886
+ @click="changeWfDialogVisible = false"
887
+ >
604
888
  <i class="el-icon-close el-icon"></i>
605
- {{ $t2('取 消', 'system.button.cancel2') }}
889
+ {{ $t2("取 消", "system.button.cancel2") }}
606
890
  </el-button>
607
891
  <el-button type="primary" @click="subChangeWfForm" class="button-sty">
608
892
  <i class="el-icon-check el-icon"></i>
609
- {{ $t2('确认转办', 'components.wf.confirmTransfer') }}
893
+ {{ $t2("确认转办", "components.wf.confirmTransfer") }}
610
894
  </el-button>
611
895
  </span>
612
896
  </el-dialog>
@@ -624,21 +908,31 @@
624
908
  v-el-dialog-center
625
909
  >
626
910
  <template #title>
627
- <span class="el-dialog__title">{{ $t2('流程中断', 'components.wf.wfManual') }}<span
628
- style="margin-left: 10px;margin-right: 10px;">—</span><b
629
- class="f-red" style="font-size: 12px;">{{ $t2('节点', 'components.wf.node') }}:{{
630
- wfInfo.taskName
631
- }}</b></span>
911
+ <span class="el-dialog__title"
912
+ >{{ $t2("流程中断", "components.wf.wfManual")
913
+ }}<span style="margin-left: 10px; margin-right: 10px">—</span
914
+ ><b class="f-red" style="font-size: 12px"
915
+ >{{ $t2("节点", "components.wf.node") }}:{{ wfInfo.taskName }}</b
916
+ ></span
917
+ >
632
918
  </template>
633
919
  <div class="cont">
634
- {{ $t2('您确定要中断流程吗?', 'components.wf.manualTip') }}
920
+ {{ $t2("您确定要中断流程吗?", "components.wf.manualTip") }}
635
921
  </div>
636
922
  <span slot="footer" class="dialog-footer">
637
- <el-button type="primary" plain class="button-sty" @click="showWfManualDialog = false"><i
638
- class="el-icon-close el-icon"></i>{{ $t2('取 消', 'system.button.cancel2') }}</el-button>
639
- <el-button type="primary" @click="manualEndWf" class="button-sty"><i
640
- class="el-icon-check el-icon"></i>{{ $t2('确 定', 'system.button.confirm2') }}</el-button>
641
- </span>
923
+ <el-button
924
+ type="primary"
925
+ plain
926
+ class="button-sty"
927
+ @click="showWfManualDialog = false"
928
+ ><i class="el-icon-close el-icon"></i
929
+ >{{ $t2("取 消", "system.button.cancel2") }}</el-button
930
+ >
931
+ <el-button type="primary" @click="manualEndWf" class="button-sty"
932
+ ><i class="el-icon-check el-icon"></i
933
+ >{{ $t2("确 定", "system.button.confirm2") }}</el-button
934
+ >
935
+ </span>
642
936
  </el-dialog>
643
937
  <el-dialog
644
938
  v-if="revokeDialogVisible"
@@ -651,42 +945,54 @@
651
945
  v-el-dialog-center
652
946
  >
653
947
  <template #title>
654
- <span class="el-dialog__title">{{ $t2('流程撤回', 'components.wf.wfRevoke') }}<span
655
- style="margin-left: 10px;margin-right: 10px;">—</span><b
656
- class="f-red" style="font-size: 12px;">{{ $t2('节点', 'components.wf.node') }}:{{
657
- wfInfo.taskName
658
- }}</b></span>
948
+ <span class="el-dialog__title"
949
+ >{{ $t2("流程撤回", "components.wf.wfRevoke")
950
+ }}<span style="margin-left: 10px; margin-right: 10px">—</span
951
+ ><b class="f-red" style="font-size: 12px"
952
+ >{{ $t2("节点", "components.wf.node") }}:{{ wfInfo.taskName }}</b
953
+ ></span
954
+ >
659
955
  </template>
660
956
  <el-form :model="revokeForm">
661
957
  <div id="containt">
662
958
  <table class="table-detail">
663
959
  <tbody>
664
- <tr>
665
- <th>
960
+ <tr>
961
+ <th>
666
962
  <span class="t">
667
- {{ $t2('撤回意见', 'components.wf.revokeOpinion') }}
963
+ {{ $t2("撤回意见", "components.wf.revokeOpinion") }}
668
964
  </span>
669
- </th>
670
- <td>
671
- <el-form-item label="" field="opinion">
672
- <el-input type="textarea" :rows="8"
673
- :placeholder="$t2('请输入内容', 'components.wf.revokeOpinionPlaceholder')"
674
- v-model="revokeForm.opinion"></el-input>
675
- </el-form-item>
676
- </td>
677
- </tr>
965
+ </th>
966
+ <td>
967
+ <el-form-item label="" field="opinion">
968
+ <el-input
969
+ type="textarea"
970
+ :rows="8"
971
+ :placeholder="
972
+ $t2('请输入内容', 'components.wf.revokeOpinionPlaceholder')
973
+ "
974
+ v-model="revokeForm.opinion"
975
+ ></el-input>
976
+ </el-form-item>
977
+ </td>
978
+ </tr>
678
979
  </tbody>
679
980
  </table>
680
981
  </div>
681
982
  </el-form>
682
983
  <span slot="footer" class="dialog-footer">
683
- <el-button type="primary" plain class="button-sty" @click="revokeDialogVisible = false">
984
+ <el-button
985
+ type="primary"
986
+ plain
987
+ class="button-sty"
988
+ @click="revokeDialogVisible = false"
989
+ >
684
990
  <i class="el-icon-close el-icon"></i>
685
- {{ $t2('取 消', 'system.button.cancel2') }}
991
+ {{ $t2("取 消", "system.button.cancel2") }}
686
992
  </el-button>
687
993
  <el-button type="primary" @click="subRevokeForm(0)" class="button-sty">
688
994
  <i class="el-icon-check el-icon"></i>
689
- {{ $t2('确 定', 'system.button.confirm2') }}
995
+ {{ $t2("确 定", "system.button.confirm2") }}
690
996
  </el-button>
691
997
  </span>
692
998
  </el-dialog>
@@ -702,111 +1008,166 @@
702
1008
  :append-to-body="true"
703
1009
  >
704
1010
  <template #title>
705
- <span class="el-dialog__title">{{ $t2('流程加签', 'components.wf.wfAddIncreaseSign') }}<span
706
- style="margin-left: 10px;margin-right: 10px;">—</span><b
707
- class="f-red" style="font-size: 12px;">{{ $t2('节点', 'components.wf.node') }}:{{
708
- wfInfo.taskName
709
- }}</b></span>
1011
+ <span class="el-dialog__title"
1012
+ >{{ $t2("流程加签", "components.wf.wfAddIncreaseSign")
1013
+ }}<span style="margin-left: 10px; margin-right: 10px">—</span
1014
+ ><b class="f-red" style="font-size: 12px"
1015
+ >{{ $t2("节点", "components.wf.node") }}:{{ wfInfo.taskName }}</b
1016
+ ></span
1017
+ >
710
1018
  </template>
711
1019
  <el-form :model="addIncreaseSignForm">
712
1020
  <div id="containt">
713
1021
  <table class="table-detail">
714
1022
  <tbody>
715
- <tr>
716
- <th>
717
- <span class="t">
718
- {{ $t2('候选人', 'components.wf.addIncreaseSignUser') }}
719
- </span>
720
- </th>
721
- <td>
722
- <el-form-item field="receiverName">
723
- <el-input
724
- class="search-input"
725
- max="200"
726
- v-model="addIncreaseSignForm.userNickNames"
727
- @clear="
728
- addIncreaseSignUsers = [];
729
- $forceUpdate();
730
- "
731
- :placeholder="$t2('候选人', 'components.wf.addIncreaseSignUser')"
732
- v-el-readonly
733
- clearable
734
- >
735
- <i slot="suffix" class="el-input__icon el-icon-search"
736
- @click="showAddTaskUserDialog = true"></i>
737
- </el-input>
738
- </el-form-item>
739
- </td>
740
- </tr>
741
- <tr>
742
- <th>
1023
+ <tr>
1024
+ <th>
1025
+ <span class="t">
1026
+ {{ $t2("候选人", "components.wf.addIncreaseSignUser") }}
1027
+ </span>
1028
+ </th>
1029
+ <td>
1030
+ <el-form-item field="receiverName">
1031
+ <el-input
1032
+ class="search-input"
1033
+ max="200"
1034
+ v-model="addIncreaseSignForm.userNickNames"
1035
+ @clear="
1036
+ addIncreaseSignUsers = [];
1037
+ $forceUpdate();
1038
+ "
1039
+ :placeholder="$t2('候选人', 'components.wf.addIncreaseSignUser')"
1040
+ v-el-readonly
1041
+ clearable
1042
+ >
1043
+ <i
1044
+ slot="suffix"
1045
+ class="el-input__icon el-icon-search"
1046
+ @click="showAddTaskUserDialog = true"
1047
+ ></i>
1048
+ </el-input>
1049
+ </el-form-item>
1050
+ </td>
1051
+ </tr>
1052
+ <tr>
1053
+ <th>
743
1054
  <span class="t">
744
- {{ $t2('加签意见', 'components.wf.addIncreaseSignOpinion') }}
1055
+ {{ $t2("加签意见", "components.wf.addIncreaseSignOpinion") }}
745
1056
  </span>
746
- </th>
747
- <td colspan="3">
748
- <el-form-item field="opinion">
749
- <el-input type="textarea" :rows="8"
750
- :placeholder="$t2('请输入内容', 'components.wf.addIncreaseSignOpinionPlaceholder')"
751
- v-model="addIncreaseSignForm.opinion"></el-input>
752
- </el-form-item>
753
- </td>
754
- </tr>
1057
+ </th>
1058
+ <td colspan="3">
1059
+ <el-form-item field="opinion">
1060
+ <el-input
1061
+ type="textarea"
1062
+ :rows="8"
1063
+ :placeholder="
1064
+ $t2(
1065
+ '请输入内容',
1066
+ 'components.wf.addIncreaseSignOpinionPlaceholder'
1067
+ )
1068
+ "
1069
+ v-model="addIncreaseSignForm.opinion"
1070
+ ></el-input>
1071
+ </el-form-item>
1072
+ </td>
1073
+ </tr>
755
1074
  </tbody>
756
1075
  </table>
757
1076
  </div>
758
1077
  </el-form>
759
1078
  <span slot="footer" class="dialog-footer">
760
- <el-button type="primary" plain class="button-sty" @click="showAddIncreaseSignDialog = false">
1079
+ <el-button
1080
+ type="primary"
1081
+ plain
1082
+ class="button-sty"
1083
+ @click="showAddIncreaseSignDialog = false"
1084
+ >
761
1085
  <i class="el-icon-close el-icon"></i>
762
- {{ $t2('取 消', 'system.button.cancel2') }}
1086
+ {{ $t2("取 消", "system.button.cancel2") }}
763
1087
  </el-button>
764
1088
  <el-button type="primary" @click="submitAddTaskUserForm(0)" class="button-sty">
765
1089
  <i class="el-icon-check el-icon"></i>
766
- {{ $t2('确认加签', 'components.wf.confirmAddIncreaseSign') }}
1090
+ {{ $t2("确认加签", "components.wf.confirmAddIncreaseSign") }}
767
1091
  </el-button>
768
1092
  </span>
769
1093
  </el-dialog>
770
- <user-dialog v-if="showUserDialog" :visiable.sync="showUserDialog" @close="showUserDialog = false"
771
- @confirm="userConfirm" multi="true" :param.sync="wfUserParamForTransfer"
772
- :rows="changeUserRows"></user-dialog>
773
-
774
- <urgingDialog v-if="urgingDialogVisible" :visiable.sync="urgingDialogVisible" :wfInfo="wfInfo"
775
- :current_prefix="current_prefix"
776
- @confirm="reloadContent" multi="true"></urgingDialog>
777
- <deleteTaskUserDialog v-if="showDeleteTaskUserDialog" :visiable.sync="showDeleteTaskUserDialog" :wfInfo="wfInfo"
778
- :current_prefix="current_prefix"
779
- @confirm="reloadContent" multi="true"></deleteTaskUserDialog>
1094
+ <user-dialog
1095
+ v-if="showUserDialog"
1096
+ :visiable.sync="showUserDialog"
1097
+ @close="showUserDialog = false"
1098
+ @confirm="userConfirm"
1099
+ multi="true"
1100
+ :param.sync="wfUserParamForTransfer"
1101
+ :rows="changeUserRows"
1102
+ ></user-dialog>
780
1103
 
1104
+ <urgingDialog
1105
+ v-if="urgingDialogVisible"
1106
+ :visiable.sync="urgingDialogVisible"
1107
+ :wfInfo="wfInfo"
1108
+ :current_prefix="current_prefix"
1109
+ @confirm="reloadContent"
1110
+ multi="true"
1111
+ ></urgingDialog>
1112
+ <deleteTaskUserDialog
1113
+ v-if="showDeleteTaskUserDialog"
1114
+ :visiable.sync="showDeleteTaskUserDialog"
1115
+ :wfInfo="wfInfo"
1116
+ :current_prefix="current_prefix"
1117
+ @confirm="reloadContent"
1118
+ multi="true"
1119
+ ></deleteTaskUserDialog>
781
1120
 
782
- <addTaskUserdialog v-if="showAddTaskUserDialog" :visiable.sync="showAddTaskUserDialog" :wfInfo="wfInfo"
783
- :current_prefix="current_prefix" :rows.sync="addIncreaseSignUsers"
784
- @confirm="confirmAddTaskUser" multi="true"
785
- :param.sync="wfUserParamForAddSign"></addTaskUserdialog>
786
- <user-dialog v-if="showTalkUserDialog" :visiable.sync="showTalkUserDialog" @close="showTalkUserDialog = false"
787
- @confirm="confirmTalkUserDialog" multi="false" :param.sync="wfUserParamForTalk"></user-dialog>
788
- <setCandidateDialog v-if="showSetCandidateDialog" :visiable.sync="showSetCandidateDialog"
789
- @close="closeSetCandidateDialog"
790
- :wfInfo="wfInfo"
791
- :current_prefix="current_prefix"></setCandidateDialog>
1121
+ <addTaskUserdialog
1122
+ v-if="showAddTaskUserDialog"
1123
+ :visiable.sync="showAddTaskUserDialog"
1124
+ :wfInfo="wfInfo"
1125
+ :current_prefix="current_prefix"
1126
+ :rows.sync="addIncreaseSignUsers"
1127
+ @confirm="confirmAddTaskUser"
1128
+ multi="true"
1129
+ :param.sync="wfUserParamForAddSign"
1130
+ ></addTaskUserdialog>
1131
+ <user-dialog
1132
+ v-if="showTalkUserDialog"
1133
+ :visiable.sync="showTalkUserDialog"
1134
+ @close="showTalkUserDialog = false"
1135
+ @confirm="confirmTalkUserDialog"
1136
+ multi="false"
1137
+ :param.sync="wfUserParamForTalk"
1138
+ ></user-dialog>
1139
+ <setCandidateDialog
1140
+ v-if="showSetCandidateDialog"
1141
+ :visiable.sync="showSetCandidateDialog"
1142
+ @close="closeSetCandidateDialog"
1143
+ :wfInfo="wfInfo"
1144
+ :current_prefix="current_prefix"
1145
+ ></setCandidateDialog>
1146
+ <wfFlowEleScriptDialog
1147
+ v-if="showWfFlowEleScriptDialog"
1148
+ :visiable.sync="showWfFlowEleScriptDialog"
1149
+ :wfInfo="wfInfo"
1150
+ :current_prefix="current_prefix"
1151
+ ></wfFlowEleScriptDialog>
792
1152
  </template>
793
1153
  </baseTabPane>
794
1154
  <div v-else></div>
795
1155
  </template>
796
1156
 
797
1157
  <script>
798
- import {wfContentMixin} from './wf.js';
1158
+ import { wfContentMixin } from "./wf.js";
799
1159
 
800
1160
  export default {
801
1161
  components: {
802
- UserDialog: () => import('../../views/user/user/dialog.vue'),
803
- urgingDialog: () => import('./urgingDialog'),
804
- deleteTaskUserDialog: () => import('./deleteTaskUserDialog'),
805
- addTaskUserdialog: () => import('./addTaskUserdialog'),
806
- setCandidateDialog: () => import('./setCandidateDialog'),
807
- setCandidateButton: () => import('./setCandidateButton'),
808
- addOpinionButton: () => import('./addOpinionButton'),
1162
+ UserDialog: () => import("../../views/user/user/dialog.vue"),
1163
+ urgingDialog: () => import("./urgingDialog"),
1164
+ deleteTaskUserDialog: () => import("./deleteTaskUserDialog"),
1165
+ addTaskUserdialog: () => import("./addTaskUserdialog"),
1166
+ setCandidateDialog: () => import("./setCandidateDialog"),
1167
+ setCandidateButton: () => import("./setCandidateButton"),
1168
+ addOpinionButton: () => import("./addOpinionButton"),
1169
+ wfFlowEleScriptDialog: () => import("./wfFlowEleScriptDialog"),
809
1170
  },
810
- mixins: [wfContentMixin]
1171
+ mixins: [wfContentMixin],
811
1172
  };
812
1173
  </script>