cloud-web-corejs 1.0.54-dev.265 → 1.0.54-dev.266

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.
@@ -71,10 +71,9 @@
71
71
  <div class="title-tab">
72
72
  <div>
73
73
  <b :class="{on:tabIndex=='1'}" @click="tabIndex='1'">{{ $t2('任务情况', 'components.wf.taskInfo') }}</b>
74
- <b :class="{on:tabIndex=='2'}" @click="tabIndex='2'"
75
- v-if="toTalk">{{ $t2('流程沟通', 'components.wf.wfTalk') }}</b>
76
- <b :class="{on:tabIndex=='3'}" @click="tabIndex='3'"
77
- v-if="showAllWfOpinon">{{ $t2('全部任务情况', 'components.wf.allTaskInfo') }}</b>
74
+ <b :class="{on:tabIndex=='2'}" @click="tabIndex='2'" v-if="toTalk">{{ $t2('流程沟通', 'components.wf.wfTalk') }}</b>
75
+ <b :class="{on:tabIndex=='4'}" @click="tabIndex='4'">{{ $t1('流程附言') }}</b>
76
+ <b :class="{on:tabIndex=='3'}" @click="tabIndex='3'" v-if="showAllWfOpinon">{{ $t2('全部任务情况', 'components.wf.allTaskInfo') }}</b>
78
77
  </div>
79
78
  </div>
80
79
  <div class="task-situation" v-show="tabIndex=='1'" style="max-height: 500px; overflow: hidden auto;">
@@ -178,6 +177,29 @@
178
177
  </template>
179
178
  </vxe-grid>
180
179
  </div>
180
+ <div class="task-situation" v-show="tabIndex=='4'">
181
+ <vxe-grid
182
+ ref="table-wfMemo"
183
+ :auto-resize="true"
184
+ v-bind="wfMemoOption"
185
+ @resizable-change="$vxeTableUtil.onColumnWitchChange"
186
+ @custom="$vxeTableUtil.customHandle"
187
+ >
188
+ <template #form>
189
+ <div style="margin-bottom: 8px;" class="clearfix">
190
+ <div class="fl">
191
+ <el-button type="primary" class="button-sty" @click="openWfMemoDialog()"
192
+ icon="el-icon-plus" v-if="wfInfo.toAddMemo">{{ $t2('新增') }}
193
+ </el-button>
194
+ </div>
195
+ <div class="fr">
196
+ <!-- <vxe-button status="warning" icon="el-icon-search" class="button-sty" @click="wfMemoSearchEvent">搜索
197
+ </vxe-button> -->
198
+ </div>
199
+ </div>
200
+ </template>
201
+ </vxe-grid>
202
+ </div>
181
203
  <div class="task-situation" v-show="showAllWfOpinon && tabIndex=='3'"
182
204
  style="max-height: 500px; overflow: hidden auto;">
183
205
  <div class="item" v-for="wftaskLineData in allWfTaskOpinions" :key="'allWfTaskOpinions'+wftaskLineData.id">
@@ -206,6 +228,7 @@
206
228
  </div>
207
229
  </div>
208
230
  </div>
231
+ <!--沟通-->
209
232
  <el-dialog
210
233
  v-if="showTalkDialog"
211
234
  :visible.sync="showTalkDialog"
@@ -295,6 +318,69 @@
295
318
  </span>
296
319
  </el-dialog>
297
320
 
321
+ <!--流程附言-->
322
+ <el-dialog
323
+ v-if="showWfMemoDialog"
324
+ :visible.sync="showWfMemoDialog"
325
+ :modal-append-to-body="false"
326
+ :close-on-click-modal="false"
327
+ :modal="false"
328
+ custom-class="dialog-style wf-dialog"
329
+ :append-to-body="true"
330
+ v-el-drag-dialog
331
+ v-el-dialog-center
332
+ >
333
+ <template #title>
334
+ <span class="el-dialog__title">{{ $t1('流程附言') }}<span
335
+ style="margin-left: 10px;margin-right: 10px;">—</span><b
336
+ class="f-red" style="font-size: 12px;">{{ $t2('节点', 'components.wf.node') }}:{{
337
+ wfInfo.taskName
338
+ }}</b></span>
339
+ </template>
340
+ <el-form :model="wfMemoForm">
341
+ <div id="containt" style="height: 500px;">
342
+ <table class="table-detail">
343
+ <tbody>
344
+ <tr>
345
+ <th>
346
+ <span class="t">
347
+ {{ $t1('内容') }}
348
+ </span>
349
+ </th>
350
+ <td>
351
+ <el-form-item field="content">
352
+ <el-input type="textarea" :rows="8"
353
+ :placeholder="$t1('内容')"
354
+ v-model="wfMemoForm.content"></el-input>
355
+ </el-form-item>
356
+ </td>
357
+ </tr>
358
+ <tr>
359
+ <th>
360
+ <span class="t">
361
+ {{ $t1('附件') }}
362
+ </span>
363
+ </th>
364
+ <td>
365
+ <baseUpload accept="file" multi="true" :file.sync="wfMemoForm.attachmentDTOs"></baseUpload>
366
+ </td>
367
+ </tr>
368
+ </tbody>
369
+ </table>
370
+ </div>
371
+ </el-form>
372
+ <span slot="footer" class="dialog-footer">
373
+ <el-button type="primary" plain class="button-sty" @click="showWfMemoDialog = false">
374
+ <i class="el-icon-close el-icon"></i>
375
+ {{ $t2('取 消', 'system.button.cancel2') }}
376
+ </el-button>
377
+ <el-button type="primary" @click="submitWfMemoForm" class="button-sty">
378
+ <i class="el-icon-check el-icon"></i>
379
+ {{ $t2('确 定', 'system.button.confirm2') }}
380
+ </el-button>
381
+ </span>
382
+ </el-dialog>
383
+
298
384
  <el-dialog
299
385
  v-if="rejectDialogVisible"
300
386
  :visible.sync="rejectDialogVisible"
@@ -363,7 +363,16 @@ wfContentMixin = {
363
363
 
364
364
  revokeDialogVisible: false,
365
365
  revokeForm: {opinion: null},
366
- showWfInfoTab: false
366
+ showWfInfoTab: false,
367
+
368
+ wfMemoOption: {},
369
+ wfMemoForm: {
370
+ receiverName: null,
371
+ content: null,
372
+ attachmentDTOs: [],
373
+ replyId: null
374
+ },
375
+ showWfMemoDialog: false,
367
376
  };
368
377
  },
369
378
  provide() {
@@ -412,6 +421,7 @@ wfContentMixin = {
412
421
  this.initWfUserParam();
413
422
  this.initTabIndex();
414
423
  this.initShowTaskInfo();
424
+ this.initWfMemo();
415
425
  }
416
426
  });
417
427
  },
@@ -1025,6 +1035,7 @@ wfContentMixin = {
1025
1035
  h("base-attachment", {
1026
1036
  props: {
1027
1037
  option: option,
1038
+ imageLazy: false
1028
1039
  },
1029
1040
  }),
1030
1041
  ];
@@ -1309,6 +1320,120 @@ wfContentMixin = {
1309
1320
  },
1310
1321
  });
1311
1322
  },
1323
+
1324
+ initWfMemo() {
1325
+ let h = this.$createElement;
1326
+ let tableOption = {
1327
+ vue: this,
1328
+ tableRef: "table-wfMemo",
1329
+ tableName: "wf_table-wfMemo",
1330
+ path: this.current_prefix + "/wf_memo/listPage",
1331
+ param: () => {
1332
+ return {
1333
+ uuid: this.wfInfo.uuid,
1334
+ };
1335
+ },
1336
+ config: {
1337
+ height: 350
1338
+ },
1339
+ columns: [
1340
+ {type: "checkbox", width: 48, resizable: false, fixed: "left"},
1341
+ {
1342
+ title: this.$t1('操作人'),
1343
+ field: "operatorName",
1344
+ width: 150,
1345
+ fixed: "left",
1346
+ },
1347
+ {
1348
+ title: this.$t1('内容'),
1349
+ field: "content",
1350
+ width: 250,
1351
+ showOverflow: false
1352
+ },
1353
+ {
1354
+ width: 150,
1355
+ title: this.$t1('附件'),
1356
+ field: "attachmentImage",
1357
+ sortable: false,
1358
+ slots: {
1359
+ default: ({row, rowIndex}) => {
1360
+ let option = {
1361
+ title: this.$t1('附件'),
1362
+ edit: false,
1363
+ rows: (done) => {
1364
+ done(row.attachmentDTOs);
1365
+ },
1366
+ };
1367
+ return [
1368
+ h("base-attachment", {
1369
+ props: {
1370
+ option: option,
1371
+ imageLazy: false
1372
+ },
1373
+ }),
1374
+ ];
1375
+ },
1376
+ },
1377
+ },
1378
+ {
1379
+ title: this.$t2('创建时间', 'system.label.createDate'),
1380
+ field: "createDate",
1381
+ width: 150,
1382
+ },
1383
+ {
1384
+ width: 80,
1385
+ fixed: "right",
1386
+ title: "",
1387
+ sortable: false
1388
+ },
1389
+ ]
1390
+ };
1391
+ this.$vxeTableUtil.initVxeTable(tableOption).then((opts) => {
1392
+ this.wfMemoOption = opts;
1393
+ });
1394
+ },
1395
+ wfMemoSearchEvent(){
1396
+ this.$refs['table-wfMemo'].commitProxy('reload');
1397
+ },
1398
+ openWfMemoDialog(row) {
1399
+ if(row){
1400
+ this.wfMemoForm = this.$baseLodash.cloneDeep(row);
1401
+ }else{
1402
+ this.wfMemoForm = {
1403
+ uuid: this.wfInfo.uuid,
1404
+ content:null,
1405
+ attachmentDTOs: []
1406
+ }
1407
+ }
1408
+ this.showWfMemoDialog = true;
1409
+ },
1410
+ submitWfMemoForm() {
1411
+ let that = getTarget(this);
1412
+
1413
+ if (!this.wfMemoForm.content) {
1414
+ that.$message({
1415
+ message: this.$t1('请输入内容'),
1416
+ type: "error",
1417
+ duration: 2 * 1000,
1418
+ });
1419
+ return false;
1420
+ }
1421
+
1422
+ this.showWfMemoDialog = false;
1423
+ that.$http({
1424
+ url: this.current_prefix + "/wf_memo/save",
1425
+ data: this.wfMemoForm,
1426
+ method: "post",
1427
+ isLoading: true,
1428
+ success: (resultMsg) => {
1429
+ that.$message({
1430
+ message: resultMsg.content,
1431
+ type: "success"
1432
+ });
1433
+ this.wfMemoSearchEvent();
1434
+ },
1435
+ });
1436
+ },
1312
1437
  }
1313
1438
  };
1314
1439
 
@@ -28,8 +28,8 @@
28
28
  <i class="el-icon-arrow-right" ayadmin-event="rightPage"
29
29
  one-link-mark="yes" @click="$refs.scrollPane.handleScrollRight()"/>
30
30
  </el-tooltip>
31
- <el-dropdown style="margin-right:10px">
32
- <span class="el-dropdown-link">
31
+ <el-dropdown >
32
+ <span class="el-dropdown-link" style="padding-right:10px;padding-left:4px;">
33
33
  <i class="el-icon-more el-icon--right"></i>
34
34
  </span>
35
35
  <el-dropdown-menu slot="dropdown">
@@ -20,13 +20,35 @@
20
20
  <tr>
21
21
  <th>{{ $t1('任务编码') }}</th>
22
22
  <td>{{ pushData.taskCode }}</td>
23
- <th>{{ $t1('服务名') }}</th>
24
- <td>{{ pushData.serverName }}</td>
25
- <th>{{ $t1('操作对象') }}</th>
26
- <td>{{ pushData.code }}</td>
27
- <th>{{ $t1('产生日志时间') }}</th>
28
- <td>{{ pushData.operDate }}</td>
23
+ <th>{{ $t1('产生业务数据时间') }}</th>
24
+ <td>{{ pushData.generateDate }}</td>
25
+ </tr>
26
+ <tr>
27
+ <th>{{ $t1('回传的数据类型') }}</th>
28
+ <td>{{ pushData.callbackDataType }}</td>
29
+ <th>{{ $t1('回传的单据数据编码或ID') }}</th>
30
+ <td>{{ pushData.callbackCode }}</td>
31
+ <th>{{ $t1('回传的组织编码') }}</th>
32
+ <td>{{ pushData.callbackCompanyCode }}</td>
33
+ </tr>
34
+ <tr>
35
+ <th>{{ $t1('备注') }}</th>
36
+ <td colspan="7">{{ pushData.remark }}</td>
37
+ </tr>
38
+ <tr>
39
+ <th>{{ $t1('真实数据') }}</th>
40
+ <td colspan="7">{{ pushData.data }}</td>
29
41
  </tr>
42
+ <tr>
43
+ <th>{{ $t1('别的服务传输数据过来的数据标识') }}</th>
44
+ <td colspan="7">{{ pushData.transfer }}</td>
45
+ </tr>
46
+
47
+ <tr>
48
+ <th>{{ $t1('数据唯一标识') }}</th>
49
+ <td colspan="7">{{ pushData.sid }}</td>
50
+ </tr>
51
+
30
52
  <tr>
31
53
  <th>{{ $t1('冗余字段1') }}</th>
32
54
  <td>{{ pushData.field1 }}</td>
@@ -47,10 +69,6 @@
47
69
  <th>{{ $t1('创建时间') }}</th>
48
70
  <td>{{ pushData.createDate }}</td>
49
71
  </tr>
50
- <tr>
51
- <th>{{ $t1('内容') }}</th>
52
- <td colspan="7">{{ pushData.content }}</td>
53
- </tr>
54
72
  </tbody>
55
73
  </table>
56
74
  </template>
@@ -4,9 +4,9 @@
4
4
  <template #form>
5
5
  <div class="clearfix screen-btns">
6
6
  <div class="fl">
7
- <vxe-button status="primary" class="button-sty" icon="el-icon-plus" @click="openEditDialog">
7
+ <!-- <vxe-button status="primary" class="button-sty" icon="el-icon-plus" @click="openEditDialog">
8
8
  {{ $t1('新增') }}
9
- </vxe-button>
9
+ </vxe-button>-->
10
10
  </div>
11
11
  <div class="fr">
12
12
  <vxe-button icon="el-icon-brush" class="button-sty" @click="resetEvent" type="text" status="primary"
@@ -21,7 +21,7 @@
21
21
  @submit="searchEvent" @reset="searchEvent">
22
22
  <vxe-form-item :title="$t1('服务名')+':'">
23
23
  <template v-slot>
24
- <el-select v-model="formData.serverName">
24
+ <el-select v-model="serverName">
25
25
  <el-option v-for="(serviceId,index) in serviceIds" :key="index" :value="serviceId"
26
26
  :label="serviceId"></el-option>
27
27
  </el-select>
@@ -37,6 +37,29 @@
37
37
  <el-input v-model="formData.remark" size="small" clearable/>
38
38
  </template>
39
39
  </vxe-form-item>
40
+ <vxe-form-item title="查询时间:">
41
+ <template v-slot>
42
+ <el-date-picker
43
+ v-model="formData.startTime"
44
+ type="datetime"
45
+ placeholder=""
46
+ size="small"
47
+ clearable
48
+ value-format="yyyy-MM-dd HH:mm:ss"
49
+ :picker-options="$baseStartPickerOptions(formData.endTime)"
50
+ ></el-date-picker>
51
+ <span>-</span>
52
+ <el-date-picker
53
+ v-model="formData.endTime"
54
+ type="datetime"
55
+ placeholder=""
56
+ size="small"
57
+ clearable
58
+ value-format="yyyy-MM-dd HH:mm:ss"
59
+ :picker-options="$baseEndPickerOptions(formData.startTime)"
60
+ ></el-date-picker>
61
+ </template>
62
+ </vxe-form-item>
40
63
  </vxe-form>
41
64
  </template>
42
65
  </vxe-grid>
@@ -47,9 +70,6 @@ import editView from './edit.vue';
47
70
 
48
71
  export default {
49
72
  name: 'push_data:list',
50
- props: {
51
- flag: String
52
- },
53
73
  components: {editView},
54
74
  data() {
55
75
  return {
@@ -94,12 +114,6 @@ export default {
94
114
  openEditDialog(id) {
95
115
  this.dataId = !id || typeof id == 'object' ? 0 : id;
96
116
  this.$emit('openEditDialog', this.dataId);
97
- /*if (this.flag !== 1) {
98
- this.activeName = 'first';
99
- this.$openEditView('showEdit');
100
- } else {
101
- this.$emit('openEditDialog', this.dataId);
102
- }*/
103
117
  },
104
118
  initTableList() {
105
119
  let that = this;
@@ -123,114 +137,80 @@ export default {
123
137
  columns: [
124
138
  {type: 'checkbox', width: 48, resizable: false, fixed: 'left'},
125
139
  {
126
- title: '推送名称',
127
- field: 'reqName',
140
+ title: '任务编码',
141
+ field: 'taskCode',
128
142
  width: 150,
129
143
  fixed: 'left'
130
144
  },
131
145
  {
132
- title: '推送编码',
133
- field: 'reqCode',
134
- width: 150,
135
- fixed: 'left'
146
+ title: '产生业务数据时间',
147
+ field: 'generateDate',
148
+ width: 200,
136
149
  },
150
+
137
151
  {
138
- title: '请求Url',
139
- field: 'url',
152
+ title: '回传的数据类型',
153
+ field: 'callbackDataType',
140
154
  width: 150
141
155
  },
142
156
  {
143
- title: '请求头',
144
- field: 'header',
145
- width: 150
157
+ title: '回传的单据数据编码或ID',
158
+ field: 'callbackCode',
159
+ width: 200
146
160
  },
147
- /*{
148
- title: '连接超时',
149
- field: 'connectTimeout',
161
+ {
162
+ title: '回传的组织编码',
163
+ field: 'callbackCompanyCode',
150
164
  width: 150
151
165
  },
152
166
  {
153
- title: '读取超时',
154
- field: 'readTimeout',
155
- width: 150
156
- },*/
167
+ title: '别的服务传输数据过来的数据标识',
168
+ field: 'transfer',
169
+ width: 250
170
+ },
157
171
  {
158
- field: 'enabled',
159
- title: this.$t1('是否启用'),
160
- width: 150,
161
- slots: {
162
- default: ({row}) => {
163
- if (row.enabled) {
164
- return [
165
- <div class="txt-status">
166
- <span>启用</span>
167
- </div>
168
- ];
169
- } else {
170
- return [
171
- <div class="txt-status disable">
172
- <span>禁用</span>
173
- </div>
174
- ];
175
- }
176
- }
177
- }
172
+ title: '数据唯一标识',
173
+ field: 'sid',
174
+ width: 150
178
175
  },
179
176
  {
180
- title: '调度任务编码',
181
- field: 'taskCode',
177
+ title: '冗余字段1',
178
+ field: 'field1',
182
179
  width: 150
183
180
  },
184
181
  {
185
- title: '备注',
186
- field: 'remark',
182
+ title: '冗余字段2',
183
+ field: 'field2',
187
184
  width: 150
188
185
  },
189
186
  {
190
- title: '执行组织编码',
191
- field: 'exeCompanyCode',
187
+ title: '冗余字段3',
188
+ field: 'field3',
192
189
  width: 150
193
190
  },
194
191
  {
195
- field: 'enabled',
196
- title: this.$t1('是否启用'),
197
- width: 150,
198
- slots: {
199
- default: ({row}) => {
200
- if (row.enabled) {
201
- return [
202
- <div class="txt-status">
203
- <span>启用</span>
204
- </div>
205
- ];
206
- } else {
207
- return [
208
- <div class="txt-status disable">
209
- <span>禁用</span>
210
- </div>
211
- ];
212
- }
213
- }
214
- }
192
+ title: '冗余字段4',
193
+ field: 'field4',
194
+ width: 150
215
195
  },
216
196
  {
217
- field: 'createBy',
218
- title: this.$t1('创建人'),
197
+ title: '冗余字段5',
198
+ field: 'field5',
219
199
  width: 150
220
200
  },
221
201
  {
222
- field: 'createDate',
223
- title: this.$t1('创建时间'),
202
+ title: '服务名',
203
+ field: 'serverName',
224
204
  width: 150
225
205
  },
226
206
  {
227
- field: 'modifyBy',
228
- title: this.$t1('更新人'),
207
+ field: 'createBy',
208
+ title: this.$t1('创建人'),
229
209
  width: 150
230
210
  },
231
211
  {
232
- field: 'modifyDate',
233
- title: this.$t1('更新时间'),
212
+ field: 'createDate',
213
+ title: this.$t1('创建时间'),
234
214
  width: 150
235
215
  },
236
216
  {