gcs-ui-lib 1.2.8 → 1.2.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gcs-ui-lib",
3
- "version": "1.2.8",
3
+ "version": "1.2.9",
4
4
  "private": false,
5
5
  "main": "./lib/gcs-ui-lib.common.js",
6
6
  "scripts": {
@@ -527,14 +527,6 @@ const AutoFillListHeader = [
527
527
  return row.isAutoConfirm ? "是" : "否";
528
528
  },
529
529
  },
530
- {
531
- label: "失效时间",
532
- prop: "effectiveTime",
533
- align: "center",
534
- width: "180",
535
- sortable: true,
536
- "show-overflow-tooltip": true,
537
- },
538
530
  {
539
531
  label: "生效时间",
540
532
  prop: "updateTime",
@@ -0,0 +1,670 @@
1
+ /*
2
+ * @Author: yuehong yuehong@nstc.com.cn
3
+ * @Date: 2023-10-09 17:51:51
4
+ * @LastEditors: 龚珂 gongke@nstc.com.cn
5
+ * @LastEditTime: 2023-11-14 09:55:12
6
+ * @FilePath: \gcs-rec_web\payee-web\payee\src\views\Settings\AutoFillingRules\components\config.js
7
+ * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
8
+ */
9
+ import { $l } from "n20-common-lib/src/utils/i18n";
10
+ // 适用范围
11
+ const SCOPE_OPTIONS = [
12
+ {
13
+ label: $l(`全集团`), //全集团
14
+ value: "all",
15
+ },
16
+ {
17
+ label: $l(`所选单位`), //所选单位
18
+ value: "unit",
19
+ },
20
+ {
21
+ label: $l(`所选单位及所有下级`), //所选单位及所有下级
22
+ value: "unit_and_sub",
23
+ },
24
+ ];
25
+
26
+ // 补填方式
27
+ const FILL_METHOD_OPTIONS = [
28
+ {
29
+ label: $l(`资金池`), //正向匹配补填
30
+ value: "FTS",
31
+ },
32
+ {
33
+ label: $l(`退票`), //逆向匹配补填
34
+ value: "REFUND",
35
+ },
36
+ {
37
+ label: $l(`同名账户划转`), //逆向匹配补填
38
+ value: "TRANSFER",
39
+ },
40
+ {
41
+ label: $l(`内部借款`), //内部借款
42
+ value: "INTERNAL_BORROWING",
43
+ },
44
+ {
45
+ label: $l(`通用`), //逆向匹配补填
46
+ value: "COMMON",
47
+ },
48
+ ];
49
+
50
+ // 匹配要求
51
+ const MATCHE_OPTIONS = [
52
+ {
53
+ label: $l(`精确匹配`), //精确匹配
54
+ value: "PRECISION",
55
+ },
56
+ {
57
+ label: $l(`模糊匹配`), //模糊匹配
58
+ value: "BLUR",
59
+ },
60
+ ];
61
+
62
+ // 匹配字段设置
63
+ const MATCHE_FIELD = {
64
+ payBankNo: {
65
+ prop: "payBankNo",
66
+ type: "select",
67
+ multiple: false,
68
+ url: "/bems/1.0/bank",
69
+ params: { isEnable: "1" },
70
+ valueKey: "bankNo",
71
+ labelKey: "bankName",
72
+ },
73
+ payBranchBankNo: {
74
+ prop: "payBranchBankNo",
75
+ type: "select",
76
+ multiple: false,
77
+ url: "/bems/1.0/branchBank",
78
+ params: { isEnable: "1" },
79
+ valueKey: "cnapsNo",
80
+ labelKey: "branchBankName",
81
+ },
82
+ payAccountNo: {
83
+ prop: "payAccountNo",
84
+ type: "input",
85
+ },
86
+ currencyNo: {
87
+ prop: "currencyNo",
88
+ type: "select",
89
+ multiple: false,
90
+ url: "/api/nstc-mdm/1.0/currency",
91
+ params: { isEnable: "1" },
92
+ valueKey: "currencyNo",
93
+ labelKey: "currencyName",
94
+ },
95
+ recAccountNo: {
96
+ prop: "recAccountNo",
97
+ type: "input",
98
+ },
99
+ recAccountName: {
100
+ prop: "recAccountName",
101
+ type: "input",
102
+ },
103
+ recBranchBankName: {
104
+ prop: "recBranchBankName",
105
+ type: "input",
106
+ // multiple: false,
107
+ // url: "/bems/1.0/branchBank",
108
+ // params: { isEnable: "1" },
109
+ // valueKey: "cnapsNo",
110
+ // labelKey: "branchBankName"
111
+ },
112
+ manageUnitNo: {
113
+ prop: "manageUnitNo",
114
+ type: "select",
115
+ multiple: false,
116
+ url: "/api/nstc-mdm/1.0/mdmDataDoc",
117
+ params: { isEnable: "1" },
118
+ valueKey: "code",
119
+ labelKey: "name",
120
+ },
121
+ explain: {
122
+ prop: "explain",
123
+ type: "input",
124
+ },
125
+ };
126
+
127
+ // 补填字段设置
128
+ const FILL_FIELD = [
129
+ {
130
+ label: $l(`预算科目`), //预算科目
131
+ prop: "branchBank",
132
+ value: 1,
133
+ isDefault: true,
134
+ isUse: true,
135
+ },
136
+ {
137
+ label: $l(`现金流`), //现金流
138
+ prop: "cashFlowNo",
139
+ value: 2,
140
+ isDefault: true,
141
+ isUse: true,
142
+ },
143
+ {
144
+ label: $l(`款项类别`), //款项类别
145
+ prop: "paymentCategory",
146
+ value: 3,
147
+ isDefault: true,
148
+ isUse: true,
149
+ },
150
+ {
151
+ label: $l(`关联业务`), //关联业务
152
+ prop: "guanlian",
153
+ value: 4,
154
+ isDefault: true,
155
+ isUse: true,
156
+ },
157
+ {
158
+ label: $l(`关联业务1`), //关联业务1
159
+ prop: "guanlian1",
160
+ value: 5,
161
+ isDefault: true,
162
+ isUse: true,
163
+ },
164
+ {
165
+ label: $l(`关联业务2`), //关联业务2
166
+ prop: "guanlian2",
167
+ value: 6,
168
+ isDefault: false,
169
+ isUse: true,
170
+ },
171
+ {
172
+ label: $l(`关联业务3`), //关联业务3
173
+ prop: "guanlian3",
174
+ value: 7,
175
+ isDefault: true,
176
+ isUse: true,
177
+ },
178
+ ];
179
+
180
+ // 关联业务
181
+ const ASSOCIATED_BUSINESS_OPTIONS = [
182
+ {
183
+ label: $l("资金上收"),
184
+ name: $l("资金上收"),
185
+ code: "FTS_001",
186
+ typeCode: "FTS.FLOW.001",
187
+ type: "up",
188
+ isCross: false,
189
+ },
190
+ {
191
+ label: $l("资金下拨"),
192
+ name: $l("资金下拨"),
193
+ code: "FTS_002",
194
+ typeCode: "FTS.FLOW.002",
195
+ type: "down",
196
+ isCross: false,
197
+ },
198
+ {
199
+ label: $l("主动上存"),
200
+ name: $l("主动上存"),
201
+ code: "FTS_003",
202
+ typeCode: "FTS.FLOW.006",
203
+ type: "up",
204
+ isCross: false,
205
+ },
206
+ {
207
+ label: $l("请款下拨"),
208
+ name: $l("请款下拨"),
209
+ code: "FTS_004",
210
+ typeCode: "FTS.FLOW.009",
211
+ type: "down",
212
+ isCross: false,
213
+ },
214
+ {
215
+ label: $l("资金调入"),
216
+ name: $l("资金调入"),
217
+ code: "FTS_005",
218
+ typeCode: "FTS.FLOW.003",
219
+ type: "up",
220
+ isCross: false,
221
+ },
222
+ {
223
+ label: $l("资金调出"),
224
+ name: $l("资金调出"),
225
+ code: "FTS_006",
226
+ typeCode: "FTS.FLOW.004",
227
+ type: "down",
228
+ isCross: false,
229
+ },
230
+ {
231
+ label: $l("外债借入"),
232
+ name: $l("外债借入"),
233
+ code: "FTS_007",
234
+ typeCode: "FTS.FLOW.017",
235
+ type: "up",
236
+ isCross: true,
237
+ },
238
+ {
239
+ label: $l("对外放款"),
240
+ name: $l("对外放款"),
241
+ code: "FTS_008",
242
+ typeCode: "FTS.FLOW.018",
243
+ type: "down",
244
+ isCross: true,
245
+ },
246
+ {
247
+ label: $l("外债借入还款"),
248
+ name: $l("外债借入还款"),
249
+ code: "FTS_009",
250
+ typeCode: "FTS.FLOW.019",
251
+ type: "down",
252
+ isCross: true,
253
+ },
254
+ {
255
+ label: $l("对外放款还款"),
256
+ name: $l("对外放款还款"),
257
+ code: "FTS_010",
258
+ typeCode: "FTS.FLOW.020",
259
+ type: "up",
260
+ isCross: true,
261
+ },
262
+ {
263
+ label: $l("结息"),
264
+ name: $l("结息"),
265
+ code: "FTS_011",
266
+ typeCode: "",
267
+ type: "",
268
+ isCross: false,
269
+ },
270
+ {
271
+ label: $l("手续费"),
272
+ name: $l("手续费"),
273
+ code: "FTS_012",
274
+ typeCode: "",
275
+ type: "",
276
+ isCross: true,
277
+ },
278
+ ];
279
+ const tableHeader = [
280
+ {
281
+ label: $l(`收款单位`), // '收款单位'
282
+ prop: "RULEID",
283
+ align: "left",
284
+ width: "200",
285
+ isDefault: true,
286
+ },
287
+ {
288
+ label: $l(`规则名称`), // '规则名称'
289
+ prop: "RULENAME",
290
+ align: "left",
291
+ width: "200",
292
+ isDefault: true,
293
+ },
294
+ {
295
+ label: $l(`适用范围`), // '适用范围'
296
+ prop: "APPLYRANGENAME",
297
+ align: "left",
298
+ width: "200",
299
+ isDefault: true,
300
+ },
301
+ {
302
+ label: $l(`适用单位`), // '适用单位'
303
+ prop: "CLTNO",
304
+ align: "left",
305
+ width: "200",
306
+ isDefault: true,
307
+ },
308
+ {
309
+ label: $l(`匹配优先级`), // '匹配优先级'
310
+ prop: "MATCHPRIORITY",
311
+ align: "left",
312
+ width: "200",
313
+ isDefault: true,
314
+ },
315
+ {
316
+ label: $l(`匹配补填方式`), // '匹配补填方式'
317
+ prop: "FILLWAYNAME",
318
+ align: "left",
319
+ width: "200",
320
+ isDefault: true,
321
+ },
322
+ {
323
+ label: $l(`收款金融机构(大行)`), // '收款金融机构(大行)'
324
+ prop: "payBankNo",
325
+ align: "left",
326
+ width: "200",
327
+ isDefault: true,
328
+ },
329
+ {
330
+ label: $l(`收款金融机构(支行)`), // '收款金融机构(支行)'
331
+ prop: "payBranchBankNo",
332
+ align: "left",
333
+ width: "200",
334
+ isDefault: true,
335
+ },
336
+ {
337
+ label: $l(`收款账号`), // '收款账号'
338
+ prop: "recAcc",
339
+ align: "left",
340
+ width: "200",
341
+ isDefault: true,
342
+ },
343
+ {
344
+ label: $l(`对方户名`), // '对方户名'
345
+ prop: "recAccountName",
346
+ align: "left",
347
+ width: "200",
348
+ isDefault: true,
349
+ },
350
+ {
351
+ label: $l(`摘要`), // '摘要'
352
+ prop: "explain",
353
+ align: "left",
354
+ width: "200",
355
+ isDefault: true,
356
+ },
357
+ {
358
+ label: $l(`预算科目`), // '预算科目'
359
+ prop: "budgetCode",
360
+ align: "left",
361
+ width: "200",
362
+ isDefault: true,
363
+ },
364
+ {
365
+ label: $l(`现金流`), // '现金流'
366
+ prop: "cashFlowNo",
367
+ align: "left",
368
+ width: "200",
369
+ isDefault: true,
370
+ },
371
+ {
372
+ label: $l(`款项类别`), // '款项类别'
373
+ prop: "propNo",
374
+ align: "left",
375
+ width: "200",
376
+ isDefault: true,
377
+ },
378
+ {
379
+ label: $l(`关联业务`), // '关联业务'
380
+ prop: "docmType",
381
+ align: "left",
382
+ width: "200",
383
+ isDefault: true,
384
+ },
385
+ {
386
+ label: $l(`自动确认`), // '自动确认'
387
+ prop: "AUTOSUBMIT",
388
+ align: "left",
389
+ width: "200",
390
+ isDefault: true,
391
+ },
392
+ {
393
+ label: $l(`生效时间`), // '生效时间'
394
+ prop: "EFFECTTIME",
395
+ align: "left",
396
+ width: "200",
397
+ isDefault: true,
398
+ },
399
+ {
400
+ label: $l(`操作人`), // '操作人'
401
+ prop: "CREATORNO",
402
+ align: "left",
403
+ width: "200",
404
+ isDefault: true,
405
+ },
406
+ ];
407
+ const NODE_GROUP = {
408
+ matchingFieldCode: "accountNo",
409
+ logicalOperation: "",
410
+ matchingOperation: "",
411
+ matchingFieldName: "本方账号",
412
+ mValues: "",
413
+ key: Math.random(),
414
+ };
415
+ const AutoFillListHeader = [
416
+ {
417
+ type: "checkbox",
418
+ fixed: "left",
419
+ static: "pre", // 静态不被"显示列"显示的,且最终会被拼接到"显示列"排序后的表格的"前面"
420
+ },
421
+ {
422
+ type: "seq",
423
+ label: "序号",
424
+ width: "56",
425
+ fixed: "left",
426
+ align: "center",
427
+ },
428
+ {
429
+ slotName: "matchingId",
430
+ label: "规则编号",
431
+ prop: "matchingId",
432
+ align: "center",
433
+ minWidth: "114",
434
+ "show-overflow-tooltip": true,
435
+ },
436
+ {
437
+ label: "规则名称",
438
+ prop: "matchingRuleName",
439
+ width: "240",
440
+ "show-overflow-tooltip": true,
441
+ },
442
+ {
443
+ label: $l("规则类型"),
444
+ prop: "matchingRuleType",
445
+ align: "center",
446
+ minWidth: "114",
447
+ "show-overflow-tooltip": true,
448
+ formatter: ({ cellValue }) => {
449
+ let doc = {
450
+ GENERAL: $l("预先补填"),
451
+ INDEPENDENT: $l("完结补填"),
452
+ };
453
+ return doc[cellValue] || "--";
454
+ },
455
+ },
456
+ {
457
+ label: $l("适用账户"),
458
+ prop: "usedAccountType",
459
+ align: "center",
460
+ minWidth: "114",
461
+ "show-overflow-tooltip": true,
462
+ formatter: ({ cellValue }) => {
463
+ let doc = {
464
+ BANK_ACCOUNT: $l("银行账户"),
465
+ THIRD_ACCOUNT: $l("三方账户"),
466
+ };
467
+ return doc[cellValue] || "--";
468
+ },
469
+ },
470
+ {
471
+ label: "适用范围",
472
+ prop: "usedScope",
473
+ align: "center",
474
+ width: "200",
475
+ formatter: ({ row }) => {
476
+ let doc = {
477
+ all: $l(`全集团`),
478
+ unit: $l(`所选单位`),
479
+ unit_and_sub: $l(`所选单位及所有下级`),
480
+ };
481
+ return doc[row.usedScope] || "--";
482
+ },
483
+ },
484
+ {
485
+ label: "适用单位",
486
+ prop: "usedUnit",
487
+ slotName: "usedUnit",
488
+ align: "center",
489
+ width: "200",
490
+ },
491
+ // {
492
+ // label: "适用业务",
493
+ // prop: "usedBusiness",
494
+ // align: "center",
495
+ // width: "200",
496
+ // formatter: ({ row }) => {
497
+ // const o = FILL_METHOD_OPTIONS.find(
498
+ // (item) => item.value === row.usedBusiness
499
+ // );
500
+ // if (!o) return "--";
501
+ // return o.label;
502
+ // },
503
+ // },
504
+ {
505
+ label: "匹配优先级",
506
+ prop: "matchingPriority",
507
+ align: "center",
508
+ width: "130",
509
+ formatter: ({ row }) => {
510
+ return row.matchingPriority;
511
+ },
512
+ },
513
+ {
514
+ label: "补填信息",
515
+ prop: "fillInfo",
516
+ align: "center",
517
+ slotName: "fillInfo",
518
+ width: "120",
519
+ },
520
+ {
521
+ label: "自动确认",
522
+ prop: "isAutoConfirm",
523
+ align: "center",
524
+ width: "120",
525
+ formatter: ({ row }) => {
526
+ return row.isAutoConfirm ? "是" : "否";
527
+ },
528
+ },
529
+ {
530
+ label: "失效时间",
531
+ prop: "updateTime",
532
+ align: "center",
533
+ width: "180",
534
+ sortable: true,
535
+ "show-overflow-tooltip": true,
536
+ },
537
+ {
538
+ label: "生效时间",
539
+ prop: "effectiveTime",
540
+ align: "center",
541
+ width: "180",
542
+ sortable: true,
543
+ "show-overflow-tooltip": true,
544
+ },
545
+
546
+ {
547
+ label: "操作人",
548
+ prop: "updator",
549
+ align: "center",
550
+ width: "160",
551
+ "show-overflow-tooltip": true,
552
+ },
553
+ {
554
+ slotName: "operate",
555
+ label: "操作",
556
+ static: "next", // 静态不被"显示列"显示的,且最终会被拼接到"显示列"排序后的表格的"后面"
557
+ },
558
+ ];
559
+ const AutoFillListFilter = [
560
+ {
561
+ id: "usedUnitLike",
562
+ label: $l("适用单位"), //适用单位
563
+ type: "text",
564
+ value: "usedUnitLike",
565
+ isDefault: true,
566
+ // static: true,
567
+ props: {
568
+ clearable: true,
569
+ },
570
+ },
571
+ {
572
+ id: "matchingIdLike",
573
+ label: $l("规则编号"), //规则编号
574
+ type: "text",
575
+ value: "matchingIdLike",
576
+ isDefault: true,
577
+ // static: true,
578
+ props: {
579
+ clearable: true,
580
+ },
581
+ },
582
+ {
583
+ id: "matchingRuleNameLike",
584
+ label: $l("规则名称"), //规则名称
585
+ type: "text",
586
+ value: "matchingRuleNameLike",
587
+ isDefault: true,
588
+ props: {
589
+ clearable: true,
590
+ },
591
+ },
592
+ {
593
+ id: "usedScope",
594
+ label: $l("适用范围"), //适用范围
595
+ type: "select",
596
+ value: "usedScope",
597
+ width: "200px",
598
+ options: SCOPE_OPTIONS,
599
+ props: {
600
+ clearable: true,
601
+ filterable: true,
602
+ },
603
+ },
604
+ {
605
+ id: "matchingPriority",
606
+ label: $l("匹配优先级"), //匹配优先级
607
+ type: "number",
608
+ value: "matchingPriority",
609
+ props: {
610
+ min: 0,
611
+ max: 9999999999999,
612
+ clearable: true,
613
+ isClearable: true,
614
+ "d-num": 0,
615
+ },
616
+ },
617
+ {
618
+ id: "usedBusiness",
619
+ label: $l("适用业务"), //适用业务
620
+ type: "select",
621
+ value: "usedBusiness",
622
+ options: FILL_METHOD_OPTIONS,
623
+ props: {
624
+ clearable: true,
625
+ filterable: true,
626
+ },
627
+ },
628
+ {
629
+ id: "isAutoConfirm",
630
+ label: $l("自动确认"), //自动确认
631
+ type: "select",
632
+ value: "isAutoConfirm",
633
+ isDefault: false,
634
+ options: [
635
+ { value: 1, label: $l("是") },
636
+ { value: 0, label: $l("否") },
637
+ ],
638
+ props: {
639
+ clearable: true,
640
+ filterable: true,
641
+ },
642
+ },
643
+ {
644
+ id: "usedAccountType",
645
+ label: $l("适用账户"), //自动确认
646
+ type: "select",
647
+ value: "usedAccountType",
648
+ isDefault: false,
649
+ options: [
650
+ { value: "BANK_ACCOUNT", label: $l("银行账户") },
651
+ { value: "THIRD_ACCOUNT", label: $l("三方账户") },
652
+ ],
653
+ props: {
654
+ clearable: true,
655
+ filterable: true,
656
+ },
657
+ },
658
+ ];
659
+ export {
660
+ SCOPE_OPTIONS,
661
+ FILL_METHOD_OPTIONS,
662
+ MATCHE_FIELD,
663
+ MATCHE_OPTIONS,
664
+ FILL_FIELD,
665
+ ASSOCIATED_BUSINESS_OPTIONS,
666
+ tableHeader,
667
+ NODE_GROUP,
668
+ AutoFillListFilter,
669
+ AutoFillListHeader,
670
+ };
@@ -157,7 +157,7 @@ import {
157
157
  import {
158
158
  AutoFillListFilter,
159
159
  AutoFillListHeader,
160
- } from "^/AutoFillList/src/components/config";
160
+ } from "./components/config";
161
161
  import { matchingHisList, matchingSetting } from "@/api/setting";
162
162
  import downloadBlob from "n20-common-lib/src/utils/downloadBlob";
163
163
  import { deepClone } from "@/utils/index";
@@ -119,7 +119,7 @@
119
119
  v-model="form.matchingPriority"
120
120
  clearable
121
121
  class="input-w"
122
- :min="0"
122
+ :min="1"
123
123
  :placeholder="$l('请输入')"
124
124
  :max="9999"
125
125
  />
@@ -157,7 +157,7 @@ export default {
157
157
  isAutoConfirm: 1,
158
158
  matchingRuleName: "",
159
159
  usedBusiness: "",
160
- matchingPriority: 0,
160
+ matchingPriority: 1,
161
161
  matchingFillCommons: [], // 补填字段规则集合
162
162
  matchingFillDimensions: [],
163
163
  },