kts-components-document-access-point 1.4.7 → 1.4.10
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/dist/index.esm.js +111 -28
- package/dist/index.js +111 -28
- package/package.json +4 -4
- package/src/DocumentWhiteList/ui/main/black.tsx +10 -3
- package/src/DocumentWhiteList/ui/main/white.tsx +14 -6
- package/src/DocumentsCont/index.tsx +2 -5
- package/src/DocumentsList/index.less +19 -1
- package/src/DocumentsList/ui/ModalComfirm/index.tsx +14 -10
- package/src/DocumentsList/ui/PageHeader/index.tsx +2 -2
- package/src/DocumentsList/ui/RuleTable/index.tsx +16 -3
- package/src/DocumentsList/ui/sendlist/index.tsx +21 -3
package/dist/index.esm.js
CHANGED
|
@@ -3048,10 +3048,15 @@ function modalcomfirm(props) {
|
|
|
3048
3048
|
return s.targetId;
|
|
3049
3049
|
}, []);
|
|
3050
3050
|
|
|
3051
|
-
var _useState = useState(
|
|
3051
|
+
var _useState = useState(false),
|
|
3052
3052
|
_useState2 = _slicedToArray(_useState, 2),
|
|
3053
|
-
|
|
3054
|
-
|
|
3053
|
+
loading = _useState2[0],
|
|
3054
|
+
setloading = _useState2[1];
|
|
3055
|
+
|
|
3056
|
+
var _useState3 = useState([]),
|
|
3057
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
3058
|
+
targetList = _useState4[0],
|
|
3059
|
+
setTargetList = _useState4[1];
|
|
3055
3060
|
|
|
3056
3061
|
useEffect(function () {
|
|
3057
3062
|
_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
@@ -3089,9 +3094,8 @@ function modalcomfirm(props) {
|
|
|
3089
3094
|
}, []);
|
|
3090
3095
|
var handleOk = useCallback(function () {
|
|
3091
3096
|
_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {
|
|
3092
|
-
var _DocumentsService$ins2;
|
|
3097
|
+
var note, data, _DocumentsService$ins2, res;
|
|
3093
3098
|
|
|
3094
|
-
var note, data, res;
|
|
3095
3099
|
return regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
3096
3100
|
while (1) {
|
|
3097
3101
|
switch (_context2.prev = _context2.next) {
|
|
@@ -3107,14 +3111,21 @@ function modalcomfirm(props) {
|
|
|
3107
3111
|
senderParticipantNote: note && note.remarkName
|
|
3108
3112
|
});
|
|
3109
3113
|
});
|
|
3110
|
-
|
|
3114
|
+
|
|
3115
|
+
if (loading) {
|
|
3116
|
+
_context2.next = 9;
|
|
3117
|
+
break;
|
|
3118
|
+
}
|
|
3119
|
+
|
|
3120
|
+
setloading(true);
|
|
3121
|
+
_context2.next = 6;
|
|
3111
3122
|
return (_DocumentsService$ins2 = DocumentsService.instance.service) === null || _DocumentsService$ins2 === void 0 ? void 0 : _DocumentsService$ins2.call({
|
|
3112
3123
|
url: '/schema/config/batchSend',
|
|
3113
3124
|
data: data,
|
|
3114
3125
|
type: 'post'
|
|
3115
3126
|
});
|
|
3116
3127
|
|
|
3117
|
-
case
|
|
3128
|
+
case 6:
|
|
3118
3129
|
res = _context2.sent;
|
|
3119
3130
|
|
|
3120
3131
|
if (res.res) {
|
|
@@ -3123,14 +3134,16 @@ function modalcomfirm(props) {
|
|
|
3123
3134
|
props.handleCancel();
|
|
3124
3135
|
}
|
|
3125
3136
|
|
|
3126
|
-
|
|
3137
|
+
setloading(false);
|
|
3138
|
+
|
|
3139
|
+
case 9:
|
|
3127
3140
|
case "end":
|
|
3128
3141
|
return _context2.stop();
|
|
3129
3142
|
}
|
|
3130
3143
|
}
|
|
3131
3144
|
}, _callee2);
|
|
3132
3145
|
}))();
|
|
3133
|
-
}, [targetId, targetList]);
|
|
3146
|
+
}, [targetId, targetList, loading]);
|
|
3134
3147
|
var gotoSendlist = useCallback(function () {
|
|
3135
3148
|
controller.pipeline( /*#__PURE__*/function () {
|
|
3136
3149
|
var _ref3 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3(s) {
|
|
@@ -3197,12 +3210,10 @@ function modalcomfirm(props) {
|
|
|
3197
3210
|
};
|
|
3198
3211
|
}, []);
|
|
3199
3212
|
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Modal, {
|
|
3200
|
-
title: "\u8BF7\u9009\u62E9\u6211\u53F8\u5BF9\
|
|
3213
|
+
title: "\u8BF7\u9009\u62E9\u6211\u53F8\u5BF9\u5E94DID",
|
|
3201
3214
|
visible: true,
|
|
3202
3215
|
onOk: handleOk,
|
|
3203
|
-
onCancel: handleCancel
|
|
3204
|
-
okText: "\u786E\u5B9A",
|
|
3205
|
-
cancelText: "\u53D6\u6D88"
|
|
3216
|
+
onCancel: handleCancel
|
|
3206
3217
|
}, /*#__PURE__*/React.createElement(Radio.Group, {
|
|
3207
3218
|
onChange: targetSelect,
|
|
3208
3219
|
value: targetId
|
|
@@ -3604,9 +3615,15 @@ var PageHeader = (function () {
|
|
|
3604
3615
|
value: type,
|
|
3605
3616
|
onChange: switchType
|
|
3606
3617
|
}, /*#__PURE__*/React.createElement(Radio$1.Button, {
|
|
3607
|
-
value: 1
|
|
3618
|
+
value: 1,
|
|
3619
|
+
style: {
|
|
3620
|
+
whiteSpace: 'nowrap'
|
|
3621
|
+
}
|
|
3608
3622
|
}, "\u5355\u636E\u6821\u9A8C\u89C4\u5219\u914D\u7F6E"), /*#__PURE__*/React.createElement(Radio$1.Button, {
|
|
3609
|
-
value: 2
|
|
3623
|
+
value: 2,
|
|
3624
|
+
style: {
|
|
3625
|
+
whiteSpace: 'nowrap'
|
|
3626
|
+
}
|
|
3610
3627
|
}, "\u53D1\u5E03\u8BB0\u5F55"))), /*#__PURE__*/React.createElement(AdvancedSearch, {
|
|
3611
3628
|
width: 480,
|
|
3612
3629
|
height: 44,
|
|
@@ -3907,15 +3924,19 @@ function validaterule(props) {
|
|
|
3907
3924
|
|
|
3908
3925
|
var columns = [{
|
|
3909
3926
|
title: '配置名称',
|
|
3910
|
-
dataIndex: 'configName'
|
|
3927
|
+
dataIndex: 'configName',
|
|
3928
|
+
width: 160,
|
|
3929
|
+
ellipsis: true
|
|
3911
3930
|
}, {
|
|
3912
3931
|
title: '单据大类',
|
|
3913
3932
|
dataIndex: 'type',
|
|
3933
|
+
width: 120,
|
|
3914
3934
|
render: function render(text) {
|
|
3915
3935
|
return bill[text];
|
|
3916
3936
|
}
|
|
3917
3937
|
}, {
|
|
3918
3938
|
title: '单据子类',
|
|
3939
|
+
width: 120,
|
|
3919
3940
|
dataIndex: 'profile',
|
|
3920
3941
|
render: function render(text, record) {
|
|
3921
3942
|
if (text) {
|
|
@@ -3931,24 +3952,31 @@ function validaterule(props) {
|
|
|
3931
3952
|
}, {
|
|
3932
3953
|
title: '收发角色',
|
|
3933
3954
|
dataIndex: 'attribution',
|
|
3955
|
+
width: 120,
|
|
3934
3956
|
render: function render(text) {
|
|
3935
3957
|
return attributionEnum[text];
|
|
3936
3958
|
}
|
|
3937
3959
|
}, {
|
|
3938
3960
|
title: '创建时间',
|
|
3939
3961
|
dataIndex: 'createAt',
|
|
3962
|
+
ellipsis: true,
|
|
3963
|
+
width: 160,
|
|
3940
3964
|
render: function render(text) {
|
|
3941
3965
|
return moment(text).format('YYYY-MM-DD HH:mm');
|
|
3942
3966
|
}
|
|
3943
3967
|
}, {
|
|
3944
3968
|
title: '更新时间',
|
|
3945
3969
|
dataIndex: 'updateAt',
|
|
3970
|
+
ellipsis: true,
|
|
3971
|
+
width: 160,
|
|
3946
3972
|
render: function render(text) {
|
|
3947
3973
|
return moment(text).format('YYYY-MM-DD HH:mm');
|
|
3948
3974
|
}
|
|
3949
3975
|
}, {
|
|
3950
3976
|
title: '操作',
|
|
3977
|
+
width: 170,
|
|
3951
3978
|
dataIndex: 'console',
|
|
3979
|
+
fixed: 'right',
|
|
3952
3980
|
render: function render(text, record) {
|
|
3953
3981
|
return /*#__PURE__*/React.createElement("span", null, /*#__PURE__*/React.createElement("a", {
|
|
3954
3982
|
className: "tabel-action",
|
|
@@ -4064,13 +4092,20 @@ function validaterule(props) {
|
|
|
4064
4092
|
};
|
|
4065
4093
|
}())();
|
|
4066
4094
|
}, []);
|
|
4067
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(
|
|
4095
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
4096
|
+
style: {
|
|
4097
|
+
flex: 'none',
|
|
4098
|
+
position: 'relative',
|
|
4099
|
+
zIndex: 1
|
|
4100
|
+
}
|
|
4101
|
+
}, /*#__PURE__*/React.createElement(PageHeader, null)), /*#__PURE__*/React.createElement(AutoTableContainer, {
|
|
4068
4102
|
style: {
|
|
4069
4103
|
flex: 1,
|
|
4070
4104
|
padding: '0 20px',
|
|
4071
|
-
|
|
4105
|
+
background: '#F4F4F4'
|
|
4072
4106
|
}
|
|
4073
4107
|
}, /*#__PURE__*/React.createElement(Table$1, {
|
|
4108
|
+
className: 'fixheight',
|
|
4074
4109
|
columns: columns,
|
|
4075
4110
|
rowKey: "configNumber",
|
|
4076
4111
|
rowSelection: rowSelection,
|
|
@@ -4311,10 +4346,14 @@ function validaterule$1(props) {
|
|
|
4311
4346
|
var columns = useMemo(function () {
|
|
4312
4347
|
return [{
|
|
4313
4348
|
title: '配置名称',
|
|
4314
|
-
dataIndex: 'configName'
|
|
4349
|
+
dataIndex: 'configName',
|
|
4350
|
+
ellipsis: true,
|
|
4351
|
+
width: 160
|
|
4315
4352
|
}, {
|
|
4316
4353
|
title: '使用标识',
|
|
4317
4354
|
dataIndex: 'effectStatus',
|
|
4355
|
+
width: 120,
|
|
4356
|
+
ellipsis: true,
|
|
4318
4357
|
render: function render(text) {
|
|
4319
4358
|
if (text === 0) {
|
|
4320
4359
|
return /*#__PURE__*/React.createElement("span", null, "\u5DF2\u5931\u6548");
|
|
@@ -4330,12 +4369,14 @@ function validaterule$1(props) {
|
|
|
4330
4369
|
}
|
|
4331
4370
|
}, {
|
|
4332
4371
|
title: '单据类型',
|
|
4372
|
+
width: 120,
|
|
4333
4373
|
dataIndex: 'type',
|
|
4334
4374
|
render: function render(text) {
|
|
4335
4375
|
return bill[text];
|
|
4336
4376
|
}
|
|
4337
4377
|
}, {
|
|
4338
4378
|
title: '单据子类',
|
|
4379
|
+
width: 120,
|
|
4339
4380
|
dataIndex: 'profile',
|
|
4340
4381
|
render: function render(text, record) {
|
|
4341
4382
|
if (text) {
|
|
@@ -4351,28 +4392,40 @@ function validaterule$1(props) {
|
|
|
4351
4392
|
}, {
|
|
4352
4393
|
title: '我的收发角色',
|
|
4353
4394
|
dataIndex: 'attribution',
|
|
4395
|
+
width: 160,
|
|
4396
|
+
ellipsis: true,
|
|
4354
4397
|
render: function render(text) {
|
|
4355
4398
|
return attributionEnum[text];
|
|
4356
4399
|
}
|
|
4357
4400
|
}, {
|
|
4358
4401
|
title: '我司对应DID',
|
|
4359
4402
|
dataIndex: 'senderParticipantId',
|
|
4403
|
+
ellipsis: true,
|
|
4404
|
+
width: 200,
|
|
4360
4405
|
render: function render(text, record) {
|
|
4361
4406
|
if (record.senderParticipantNote) {
|
|
4362
|
-
return /*#__PURE__*/React.createElement("
|
|
4407
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
4408
|
+
title: record.senderParticipantNote + '' + text
|
|
4409
|
+
}, record.senderParticipantNote, text);
|
|
4363
4410
|
} else {
|
|
4364
4411
|
return /*#__PURE__*/React.createElement("span", null, text);
|
|
4365
4412
|
}
|
|
4366
4413
|
}
|
|
4367
4414
|
}, {
|
|
4368
4415
|
title: '接受对象',
|
|
4416
|
+
width: 120,
|
|
4417
|
+
ellipsis: true,
|
|
4369
4418
|
dataIndex: 'receiverParticipantId'
|
|
4370
4419
|
}, {
|
|
4371
4420
|
title: '接受对象所属公司',
|
|
4421
|
+
width: 160,
|
|
4422
|
+
ellipsis: true,
|
|
4372
4423
|
dataIndex: 'receiverCompany'
|
|
4373
4424
|
}, {
|
|
4374
4425
|
title: '发布时间',
|
|
4375
4426
|
dataIndex: 'createAt',
|
|
4427
|
+
width: 160,
|
|
4428
|
+
ellipsis: true,
|
|
4376
4429
|
render: function render(text) {
|
|
4377
4430
|
return moment(text).format('YYYY-MM-DD HH:mm');
|
|
4378
4431
|
}
|
|
@@ -4388,6 +4441,8 @@ function validaterule$1(props) {
|
|
|
4388
4441
|
{
|
|
4389
4442
|
title: '操作',
|
|
4390
4443
|
dataIndex: 'console',
|
|
4444
|
+
width: 80,
|
|
4445
|
+
fixed: 'right',
|
|
4391
4446
|
render: function render(text, record) {
|
|
4392
4447
|
return /*#__PURE__*/React.createElement("span", null, /*#__PURE__*/React.createElement("a", {
|
|
4393
4448
|
className: "tabel-action",
|
|
@@ -4405,6 +4460,7 @@ function validaterule$1(props) {
|
|
|
4405
4460
|
backgroundColor: '#efefef'
|
|
4406
4461
|
}
|
|
4407
4462
|
}, /*#__PURE__*/React.createElement(Table$1, {
|
|
4463
|
+
className: 'fixheight',
|
|
4408
4464
|
columns: columns,
|
|
4409
4465
|
rowKey: "id",
|
|
4410
4466
|
dataSource: list,
|
|
@@ -4556,9 +4612,7 @@ var DocumentsCont = /*#__PURE__*/function (_React$Component) {
|
|
|
4556
4612
|
}(React.Component);
|
|
4557
4613
|
|
|
4558
4614
|
var Main$2 = function Main(props) {
|
|
4559
|
-
var initRoute = props.path || '/
|
|
4560
|
-
// console.log(uploadConfig);
|
|
4561
|
-
|
|
4615
|
+
var initRoute = props.path || '/rulelist';
|
|
4562
4616
|
return /*#__PURE__*/React.createElement(ConfigProvider, {
|
|
4563
4617
|
locale: zhCN
|
|
4564
4618
|
}, /*#__PURE__*/React.createElement(MemoryRouter, null, /*#__PURE__*/React.createElement(Switch$1, null, /*#__PURE__*/React.createElement(Route, {
|
|
@@ -6748,9 +6802,13 @@ function Rule$1(props) {
|
|
|
6748
6802
|
return [{
|
|
6749
6803
|
title: 'DID',
|
|
6750
6804
|
dataIndex: 'customerDid',
|
|
6805
|
+
width: 200,
|
|
6806
|
+
ellipsis: true,
|
|
6751
6807
|
render: function render(text, record) {
|
|
6752
6808
|
if (text) {
|
|
6753
|
-
return /*#__PURE__*/React.createElement("
|
|
6809
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
6810
|
+
title: record.customerDidNote + ' ' + text
|
|
6811
|
+
}, record.customerDidNote, " ", text);
|
|
6754
6812
|
} else {
|
|
6755
6813
|
return '';
|
|
6756
6814
|
}
|
|
@@ -6758,11 +6816,13 @@ function Rule$1(props) {
|
|
|
6758
6816
|
}, {
|
|
6759
6817
|
title: '所属公司',
|
|
6760
6818
|
dataIndex: 'customerName',
|
|
6761
|
-
width: 200
|
|
6819
|
+
width: 200,
|
|
6820
|
+
ellipsis: true
|
|
6762
6821
|
}, {
|
|
6763
6822
|
title: '数据状态',
|
|
6764
6823
|
dataIndex: 'dataStatus',
|
|
6765
6824
|
width: 100,
|
|
6825
|
+
ellipsis: true,
|
|
6766
6826
|
render: function render(text) {
|
|
6767
6827
|
if (text === 2) {
|
|
6768
6828
|
return /*#__PURE__*/React.createElement("span", null, "\u505C\u7528");
|
|
@@ -6779,9 +6839,13 @@ function Rule$1(props) {
|
|
|
6779
6839
|
}, {
|
|
6780
6840
|
title: '我司对应DID',
|
|
6781
6841
|
dataIndex: 'companyDid',
|
|
6842
|
+
width: 200,
|
|
6843
|
+
ellipsis: true,
|
|
6782
6844
|
render: function render(text, record) {
|
|
6783
6845
|
if (text) {
|
|
6784
|
-
return /*#__PURE__*/React.createElement("
|
|
6846
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
6847
|
+
title: record.companyDidNote + '' + text
|
|
6848
|
+
}, record.companyDidNote, " ", text);
|
|
6785
6849
|
} else {
|
|
6786
6850
|
return '';
|
|
6787
6851
|
}
|
|
@@ -6790,6 +6854,7 @@ function Rule$1(props) {
|
|
|
6790
6854
|
title: '加入时间',
|
|
6791
6855
|
dataIndex: 'createTime',
|
|
6792
6856
|
width: 200,
|
|
6857
|
+
ellipsis: true,
|
|
6793
6858
|
render: function render(text) {
|
|
6794
6859
|
return moment(text).format('YYYY-MM-DD HH:mm');
|
|
6795
6860
|
}
|
|
@@ -6874,6 +6939,10 @@ function Rule$1(props) {
|
|
|
6874
6939
|
}
|
|
6875
6940
|
}, /*#__PURE__*/React.createElement(Table$1, {
|
|
6876
6941
|
rowSelection: rowSelection,
|
|
6942
|
+
scroll: {
|
|
6943
|
+
x: '1400',
|
|
6944
|
+
y: 'max-content'
|
|
6945
|
+
},
|
|
6877
6946
|
columns: columns,
|
|
6878
6947
|
rowKey: "index",
|
|
6879
6948
|
dataSource: list,
|
|
@@ -7219,9 +7288,13 @@ function Rule$2(props) {
|
|
|
7219
7288
|
return [{
|
|
7220
7289
|
title: 'DID',
|
|
7221
7290
|
dataIndex: 'customerDid',
|
|
7291
|
+
width: 200,
|
|
7292
|
+
ellipsis: true,
|
|
7222
7293
|
render: function render(text, record) {
|
|
7223
7294
|
if (text) {
|
|
7224
|
-
return /*#__PURE__*/React.createElement("
|
|
7295
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
7296
|
+
title: record.customerDidNote + '' + text
|
|
7297
|
+
}, record.customerDidNote, text);
|
|
7225
7298
|
} else {
|
|
7226
7299
|
return '';
|
|
7227
7300
|
}
|
|
@@ -7229,6 +7302,7 @@ function Rule$2(props) {
|
|
|
7229
7302
|
}, {
|
|
7230
7303
|
title: '所属公司',
|
|
7231
7304
|
width: 200,
|
|
7305
|
+
ellipsis: true,
|
|
7232
7306
|
dataIndex: 'customerName'
|
|
7233
7307
|
}, {
|
|
7234
7308
|
title: '数据状态',
|
|
@@ -7249,10 +7323,14 @@ function Rule$2(props) {
|
|
|
7249
7323
|
}
|
|
7250
7324
|
}, {
|
|
7251
7325
|
title: '我司对应DID',
|
|
7326
|
+
width: 200,
|
|
7327
|
+
ellipsis: true,
|
|
7252
7328
|
dataIndex: 'companyDid',
|
|
7253
7329
|
render: function render(text, record) {
|
|
7254
7330
|
if (text) {
|
|
7255
|
-
return /*#__PURE__*/React.createElement("
|
|
7331
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
7332
|
+
title: record.companyDidNote + '' + text
|
|
7333
|
+
}, record.companyDidNote, " ", text);
|
|
7256
7334
|
} else {
|
|
7257
7335
|
return '';
|
|
7258
7336
|
}
|
|
@@ -7260,6 +7338,7 @@ function Rule$2(props) {
|
|
|
7260
7338
|
}, {
|
|
7261
7339
|
title: '加入时间',
|
|
7262
7340
|
dataIndex: 'createTime',
|
|
7341
|
+
ellipsis: true,
|
|
7263
7342
|
width: 200,
|
|
7264
7343
|
render: function render(text) {
|
|
7265
7344
|
return moment(text).format('YYYY-MM-DD HH:mm');
|
|
@@ -7344,6 +7423,10 @@ function Rule$2(props) {
|
|
|
7344
7423
|
backgroundColor: '#efefef'
|
|
7345
7424
|
}
|
|
7346
7425
|
}, /*#__PURE__*/React.createElement(Table$1, {
|
|
7426
|
+
scroll: {
|
|
7427
|
+
x: '1400',
|
|
7428
|
+
y: 'max-content'
|
|
7429
|
+
},
|
|
7347
7430
|
rowSelection: rowSelection,
|
|
7348
7431
|
columns: columns,
|
|
7349
7432
|
rowKey: "index",
|
package/dist/index.js
CHANGED
|
@@ -3062,10 +3062,15 @@ function modalcomfirm(props) {
|
|
|
3062
3062
|
return s.targetId;
|
|
3063
3063
|
}, []);
|
|
3064
3064
|
|
|
3065
|
-
var _useState = React.useState(
|
|
3065
|
+
var _useState = React.useState(false),
|
|
3066
3066
|
_useState2 = _slicedToArray(_useState, 2),
|
|
3067
|
-
|
|
3068
|
-
|
|
3067
|
+
loading = _useState2[0],
|
|
3068
|
+
setloading = _useState2[1];
|
|
3069
|
+
|
|
3070
|
+
var _useState3 = React.useState([]),
|
|
3071
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
3072
|
+
targetList = _useState4[0],
|
|
3073
|
+
setTargetList = _useState4[1];
|
|
3069
3074
|
|
|
3070
3075
|
React.useEffect(function () {
|
|
3071
3076
|
_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
@@ -3103,9 +3108,8 @@ function modalcomfirm(props) {
|
|
|
3103
3108
|
}, []);
|
|
3104
3109
|
var handleOk = React.useCallback(function () {
|
|
3105
3110
|
_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {
|
|
3106
|
-
var _DocumentsService$ins2;
|
|
3111
|
+
var note, data, _DocumentsService$ins2, res;
|
|
3107
3112
|
|
|
3108
|
-
var note, data, res;
|
|
3109
3113
|
return regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
3110
3114
|
while (1) {
|
|
3111
3115
|
switch (_context2.prev = _context2.next) {
|
|
@@ -3121,14 +3125,21 @@ function modalcomfirm(props) {
|
|
|
3121
3125
|
senderParticipantNote: note && note.remarkName
|
|
3122
3126
|
});
|
|
3123
3127
|
});
|
|
3124
|
-
|
|
3128
|
+
|
|
3129
|
+
if (loading) {
|
|
3130
|
+
_context2.next = 9;
|
|
3131
|
+
break;
|
|
3132
|
+
}
|
|
3133
|
+
|
|
3134
|
+
setloading(true);
|
|
3135
|
+
_context2.next = 6;
|
|
3125
3136
|
return (_DocumentsService$ins2 = DocumentsService.instance.service) === null || _DocumentsService$ins2 === void 0 ? void 0 : _DocumentsService$ins2.call({
|
|
3126
3137
|
url: '/schema/config/batchSend',
|
|
3127
3138
|
data: data,
|
|
3128
3139
|
type: 'post'
|
|
3129
3140
|
});
|
|
3130
3141
|
|
|
3131
|
-
case
|
|
3142
|
+
case 6:
|
|
3132
3143
|
res = _context2.sent;
|
|
3133
3144
|
|
|
3134
3145
|
if (res.res) {
|
|
@@ -3137,14 +3148,16 @@ function modalcomfirm(props) {
|
|
|
3137
3148
|
props.handleCancel();
|
|
3138
3149
|
}
|
|
3139
3150
|
|
|
3140
|
-
|
|
3151
|
+
setloading(false);
|
|
3152
|
+
|
|
3153
|
+
case 9:
|
|
3141
3154
|
case "end":
|
|
3142
3155
|
return _context2.stop();
|
|
3143
3156
|
}
|
|
3144
3157
|
}
|
|
3145
3158
|
}, _callee2);
|
|
3146
3159
|
}))();
|
|
3147
|
-
}, [targetId, targetList]);
|
|
3160
|
+
}, [targetId, targetList, loading]);
|
|
3148
3161
|
var gotoSendlist = React.useCallback(function () {
|
|
3149
3162
|
controller.pipeline( /*#__PURE__*/function () {
|
|
3150
3163
|
var _ref3 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3(s) {
|
|
@@ -3211,12 +3224,10 @@ function modalcomfirm(props) {
|
|
|
3211
3224
|
};
|
|
3212
3225
|
}, []);
|
|
3213
3226
|
return /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement(ktsXui.Modal, {
|
|
3214
|
-
title: "\u8BF7\u9009\u62E9\u6211\u53F8\u5BF9\
|
|
3227
|
+
title: "\u8BF7\u9009\u62E9\u6211\u53F8\u5BF9\u5E94DID",
|
|
3215
3228
|
visible: true,
|
|
3216
3229
|
onOk: handleOk,
|
|
3217
|
-
onCancel: handleCancel
|
|
3218
|
-
okText: "\u786E\u5B9A",
|
|
3219
|
-
cancelText: "\u53D6\u6D88"
|
|
3230
|
+
onCancel: handleCancel
|
|
3220
3231
|
}, /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX4.Radio.Group, {
|
|
3221
3232
|
onChange: targetSelect,
|
|
3222
3233
|
value: targetId
|
|
@@ -3618,9 +3629,15 @@ var PageHeader = (function () {
|
|
|
3618
3629
|
value: type,
|
|
3619
3630
|
onChange: switchType
|
|
3620
3631
|
}, /*#__PURE__*/React__default['default'].createElement(ktsXui.Radio.Button, {
|
|
3621
|
-
value: 1
|
|
3632
|
+
value: 1,
|
|
3633
|
+
style: {
|
|
3634
|
+
whiteSpace: 'nowrap'
|
|
3635
|
+
}
|
|
3622
3636
|
}, "\u5355\u636E\u6821\u9A8C\u89C4\u5219\u914D\u7F6E"), /*#__PURE__*/React__default['default'].createElement(ktsXui.Radio.Button, {
|
|
3623
|
-
value: 2
|
|
3637
|
+
value: 2,
|
|
3638
|
+
style: {
|
|
3639
|
+
whiteSpace: 'nowrap'
|
|
3640
|
+
}
|
|
3624
3641
|
}, "\u53D1\u5E03\u8BB0\u5F55"))), /*#__PURE__*/React__default['default'].createElement(ktsComponents.AdvancedSearch, {
|
|
3625
3642
|
width: 480,
|
|
3626
3643
|
height: 44,
|
|
@@ -3921,15 +3938,19 @@ function validaterule(props) {
|
|
|
3921
3938
|
|
|
3922
3939
|
var columns = [{
|
|
3923
3940
|
title: '配置名称',
|
|
3924
|
-
dataIndex: 'configName'
|
|
3941
|
+
dataIndex: 'configName',
|
|
3942
|
+
width: 160,
|
|
3943
|
+
ellipsis: true
|
|
3925
3944
|
}, {
|
|
3926
3945
|
title: '单据大类',
|
|
3927
3946
|
dataIndex: 'type',
|
|
3947
|
+
width: 120,
|
|
3928
3948
|
render: function render(text) {
|
|
3929
3949
|
return bill[text];
|
|
3930
3950
|
}
|
|
3931
3951
|
}, {
|
|
3932
3952
|
title: '单据子类',
|
|
3953
|
+
width: 120,
|
|
3933
3954
|
dataIndex: 'profile',
|
|
3934
3955
|
render: function render(text, record) {
|
|
3935
3956
|
if (text) {
|
|
@@ -3945,24 +3966,31 @@ function validaterule(props) {
|
|
|
3945
3966
|
}, {
|
|
3946
3967
|
title: '收发角色',
|
|
3947
3968
|
dataIndex: 'attribution',
|
|
3969
|
+
width: 120,
|
|
3948
3970
|
render: function render(text) {
|
|
3949
3971
|
return attributionEnum[text];
|
|
3950
3972
|
}
|
|
3951
3973
|
}, {
|
|
3952
3974
|
title: '创建时间',
|
|
3953
3975
|
dataIndex: 'createAt',
|
|
3976
|
+
ellipsis: true,
|
|
3977
|
+
width: 160,
|
|
3954
3978
|
render: function render(text) {
|
|
3955
3979
|
return moment__default['default'](text).format('YYYY-MM-DD HH:mm');
|
|
3956
3980
|
}
|
|
3957
3981
|
}, {
|
|
3958
3982
|
title: '更新时间',
|
|
3959
3983
|
dataIndex: 'updateAt',
|
|
3984
|
+
ellipsis: true,
|
|
3985
|
+
width: 160,
|
|
3960
3986
|
render: function render(text) {
|
|
3961
3987
|
return moment__default['default'](text).format('YYYY-MM-DD HH:mm');
|
|
3962
3988
|
}
|
|
3963
3989
|
}, {
|
|
3964
3990
|
title: '操作',
|
|
3991
|
+
width: 170,
|
|
3965
3992
|
dataIndex: 'console',
|
|
3993
|
+
fixed: 'right',
|
|
3966
3994
|
render: function render(text, record) {
|
|
3967
3995
|
return /*#__PURE__*/React__default['default'].createElement("span", null, /*#__PURE__*/React__default['default'].createElement("a", {
|
|
3968
3996
|
className: "tabel-action",
|
|
@@ -4078,13 +4106,20 @@ function validaterule(props) {
|
|
|
4078
4106
|
};
|
|
4079
4107
|
}())();
|
|
4080
4108
|
}, []);
|
|
4081
|
-
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(
|
|
4109
|
+
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
4110
|
+
style: {
|
|
4111
|
+
flex: 'none',
|
|
4112
|
+
position: 'relative',
|
|
4113
|
+
zIndex: 1
|
|
4114
|
+
}
|
|
4115
|
+
}, /*#__PURE__*/React__default['default'].createElement(PageHeader, null)), /*#__PURE__*/React__default['default'].createElement(ktsXui.AutoTableContainer, {
|
|
4082
4116
|
style: {
|
|
4083
4117
|
flex: 1,
|
|
4084
4118
|
padding: '0 20px',
|
|
4085
|
-
|
|
4119
|
+
background: '#F4F4F4'
|
|
4086
4120
|
}
|
|
4087
4121
|
}, /*#__PURE__*/React__default['default'].createElement(ktsXui.Table, {
|
|
4122
|
+
className: 'fixheight',
|
|
4088
4123
|
columns: columns,
|
|
4089
4124
|
rowKey: "configNumber",
|
|
4090
4125
|
rowSelection: rowSelection,
|
|
@@ -4325,10 +4360,14 @@ function validaterule$1(props) {
|
|
|
4325
4360
|
var columns = React.useMemo(function () {
|
|
4326
4361
|
return [{
|
|
4327
4362
|
title: '配置名称',
|
|
4328
|
-
dataIndex: 'configName'
|
|
4363
|
+
dataIndex: 'configName',
|
|
4364
|
+
ellipsis: true,
|
|
4365
|
+
width: 160
|
|
4329
4366
|
}, {
|
|
4330
4367
|
title: '使用标识',
|
|
4331
4368
|
dataIndex: 'effectStatus',
|
|
4369
|
+
width: 120,
|
|
4370
|
+
ellipsis: true,
|
|
4332
4371
|
render: function render(text) {
|
|
4333
4372
|
if (text === 0) {
|
|
4334
4373
|
return /*#__PURE__*/React__default['default'].createElement("span", null, "\u5DF2\u5931\u6548");
|
|
@@ -4344,12 +4383,14 @@ function validaterule$1(props) {
|
|
|
4344
4383
|
}
|
|
4345
4384
|
}, {
|
|
4346
4385
|
title: '单据类型',
|
|
4386
|
+
width: 120,
|
|
4347
4387
|
dataIndex: 'type',
|
|
4348
4388
|
render: function render(text) {
|
|
4349
4389
|
return bill[text];
|
|
4350
4390
|
}
|
|
4351
4391
|
}, {
|
|
4352
4392
|
title: '单据子类',
|
|
4393
|
+
width: 120,
|
|
4353
4394
|
dataIndex: 'profile',
|
|
4354
4395
|
render: function render(text, record) {
|
|
4355
4396
|
if (text) {
|
|
@@ -4365,28 +4406,40 @@ function validaterule$1(props) {
|
|
|
4365
4406
|
}, {
|
|
4366
4407
|
title: '我的收发角色',
|
|
4367
4408
|
dataIndex: 'attribution',
|
|
4409
|
+
width: 160,
|
|
4410
|
+
ellipsis: true,
|
|
4368
4411
|
render: function render(text) {
|
|
4369
4412
|
return attributionEnum[text];
|
|
4370
4413
|
}
|
|
4371
4414
|
}, {
|
|
4372
4415
|
title: '我司对应DID',
|
|
4373
4416
|
dataIndex: 'senderParticipantId',
|
|
4417
|
+
ellipsis: true,
|
|
4418
|
+
width: 200,
|
|
4374
4419
|
render: function render(text, record) {
|
|
4375
4420
|
if (record.senderParticipantNote) {
|
|
4376
|
-
return /*#__PURE__*/React__default['default'].createElement("
|
|
4421
|
+
return /*#__PURE__*/React__default['default'].createElement("span", {
|
|
4422
|
+
title: record.senderParticipantNote + '' + text
|
|
4423
|
+
}, record.senderParticipantNote, text);
|
|
4377
4424
|
} else {
|
|
4378
4425
|
return /*#__PURE__*/React__default['default'].createElement("span", null, text);
|
|
4379
4426
|
}
|
|
4380
4427
|
}
|
|
4381
4428
|
}, {
|
|
4382
4429
|
title: '接受对象',
|
|
4430
|
+
width: 120,
|
|
4431
|
+
ellipsis: true,
|
|
4383
4432
|
dataIndex: 'receiverParticipantId'
|
|
4384
4433
|
}, {
|
|
4385
4434
|
title: '接受对象所属公司',
|
|
4435
|
+
width: 160,
|
|
4436
|
+
ellipsis: true,
|
|
4386
4437
|
dataIndex: 'receiverCompany'
|
|
4387
4438
|
}, {
|
|
4388
4439
|
title: '发布时间',
|
|
4389
4440
|
dataIndex: 'createAt',
|
|
4441
|
+
width: 160,
|
|
4442
|
+
ellipsis: true,
|
|
4390
4443
|
render: function render(text) {
|
|
4391
4444
|
return moment__default['default'](text).format('YYYY-MM-DD HH:mm');
|
|
4392
4445
|
}
|
|
@@ -4402,6 +4455,8 @@ function validaterule$1(props) {
|
|
|
4402
4455
|
{
|
|
4403
4456
|
title: '操作',
|
|
4404
4457
|
dataIndex: 'console',
|
|
4458
|
+
width: 80,
|
|
4459
|
+
fixed: 'right',
|
|
4405
4460
|
render: function render(text, record) {
|
|
4406
4461
|
return /*#__PURE__*/React__default['default'].createElement("span", null, /*#__PURE__*/React__default['default'].createElement("a", {
|
|
4407
4462
|
className: "tabel-action",
|
|
@@ -4419,6 +4474,7 @@ function validaterule$1(props) {
|
|
|
4419
4474
|
backgroundColor: '#efefef'
|
|
4420
4475
|
}
|
|
4421
4476
|
}, /*#__PURE__*/React__default['default'].createElement(ktsXui.Table, {
|
|
4477
|
+
className: 'fixheight',
|
|
4422
4478
|
columns: columns,
|
|
4423
4479
|
rowKey: "id",
|
|
4424
4480
|
dataSource: list,
|
|
@@ -4570,9 +4626,7 @@ var DocumentsCont = /*#__PURE__*/function (_React$Component) {
|
|
|
4570
4626
|
}(React__default['default'].Component);
|
|
4571
4627
|
|
|
4572
4628
|
var Main$2 = function Main(props) {
|
|
4573
|
-
var initRoute = props.path || '/
|
|
4574
|
-
// console.log(uploadConfig);
|
|
4575
|
-
|
|
4629
|
+
var initRoute = props.path || '/rulelist';
|
|
4576
4630
|
return /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX4.ConfigProvider, {
|
|
4577
4631
|
locale: zhCN__default['default']
|
|
4578
4632
|
}, /*#__PURE__*/React__default['default'].createElement(reactRouterDom.MemoryRouter, null, /*#__PURE__*/React__default['default'].createElement(reactRouterDom.Switch, null, /*#__PURE__*/React__default['default'].createElement(reactRouterDom.Route, {
|
|
@@ -6762,9 +6816,13 @@ function Rule$1(props) {
|
|
|
6762
6816
|
return [{
|
|
6763
6817
|
title: 'DID',
|
|
6764
6818
|
dataIndex: 'customerDid',
|
|
6819
|
+
width: 200,
|
|
6820
|
+
ellipsis: true,
|
|
6765
6821
|
render: function render(text, record) {
|
|
6766
6822
|
if (text) {
|
|
6767
|
-
return /*#__PURE__*/React__default['default'].createElement("
|
|
6823
|
+
return /*#__PURE__*/React__default['default'].createElement("span", {
|
|
6824
|
+
title: record.customerDidNote + ' ' + text
|
|
6825
|
+
}, record.customerDidNote, " ", text);
|
|
6768
6826
|
} else {
|
|
6769
6827
|
return '';
|
|
6770
6828
|
}
|
|
@@ -6772,11 +6830,13 @@ function Rule$1(props) {
|
|
|
6772
6830
|
}, {
|
|
6773
6831
|
title: '所属公司',
|
|
6774
6832
|
dataIndex: 'customerName',
|
|
6775
|
-
width: 200
|
|
6833
|
+
width: 200,
|
|
6834
|
+
ellipsis: true
|
|
6776
6835
|
}, {
|
|
6777
6836
|
title: '数据状态',
|
|
6778
6837
|
dataIndex: 'dataStatus',
|
|
6779
6838
|
width: 100,
|
|
6839
|
+
ellipsis: true,
|
|
6780
6840
|
render: function render(text) {
|
|
6781
6841
|
if (text === 2) {
|
|
6782
6842
|
return /*#__PURE__*/React__default['default'].createElement("span", null, "\u505C\u7528");
|
|
@@ -6793,9 +6853,13 @@ function Rule$1(props) {
|
|
|
6793
6853
|
}, {
|
|
6794
6854
|
title: '我司对应DID',
|
|
6795
6855
|
dataIndex: 'companyDid',
|
|
6856
|
+
width: 200,
|
|
6857
|
+
ellipsis: true,
|
|
6796
6858
|
render: function render(text, record) {
|
|
6797
6859
|
if (text) {
|
|
6798
|
-
return /*#__PURE__*/React__default['default'].createElement("
|
|
6860
|
+
return /*#__PURE__*/React__default['default'].createElement("span", {
|
|
6861
|
+
title: record.companyDidNote + '' + text
|
|
6862
|
+
}, record.companyDidNote, " ", text);
|
|
6799
6863
|
} else {
|
|
6800
6864
|
return '';
|
|
6801
6865
|
}
|
|
@@ -6804,6 +6868,7 @@ function Rule$1(props) {
|
|
|
6804
6868
|
title: '加入时间',
|
|
6805
6869
|
dataIndex: 'createTime',
|
|
6806
6870
|
width: 200,
|
|
6871
|
+
ellipsis: true,
|
|
6807
6872
|
render: function render(text) {
|
|
6808
6873
|
return moment__default['default'](text).format('YYYY-MM-DD HH:mm');
|
|
6809
6874
|
}
|
|
@@ -6888,6 +6953,10 @@ function Rule$1(props) {
|
|
|
6888
6953
|
}
|
|
6889
6954
|
}, /*#__PURE__*/React__default['default'].createElement(ktsXui.Table, {
|
|
6890
6955
|
rowSelection: rowSelection,
|
|
6956
|
+
scroll: {
|
|
6957
|
+
x: '1400',
|
|
6958
|
+
y: 'max-content'
|
|
6959
|
+
},
|
|
6891
6960
|
columns: columns,
|
|
6892
6961
|
rowKey: "index",
|
|
6893
6962
|
dataSource: list,
|
|
@@ -7233,9 +7302,13 @@ function Rule$2(props) {
|
|
|
7233
7302
|
return [{
|
|
7234
7303
|
title: 'DID',
|
|
7235
7304
|
dataIndex: 'customerDid',
|
|
7305
|
+
width: 200,
|
|
7306
|
+
ellipsis: true,
|
|
7236
7307
|
render: function render(text, record) {
|
|
7237
7308
|
if (text) {
|
|
7238
|
-
return /*#__PURE__*/React__default['default'].createElement("
|
|
7309
|
+
return /*#__PURE__*/React__default['default'].createElement("span", {
|
|
7310
|
+
title: record.customerDidNote + '' + text
|
|
7311
|
+
}, record.customerDidNote, text);
|
|
7239
7312
|
} else {
|
|
7240
7313
|
return '';
|
|
7241
7314
|
}
|
|
@@ -7243,6 +7316,7 @@ function Rule$2(props) {
|
|
|
7243
7316
|
}, {
|
|
7244
7317
|
title: '所属公司',
|
|
7245
7318
|
width: 200,
|
|
7319
|
+
ellipsis: true,
|
|
7246
7320
|
dataIndex: 'customerName'
|
|
7247
7321
|
}, {
|
|
7248
7322
|
title: '数据状态',
|
|
@@ -7263,10 +7337,14 @@ function Rule$2(props) {
|
|
|
7263
7337
|
}
|
|
7264
7338
|
}, {
|
|
7265
7339
|
title: '我司对应DID',
|
|
7340
|
+
width: 200,
|
|
7341
|
+
ellipsis: true,
|
|
7266
7342
|
dataIndex: 'companyDid',
|
|
7267
7343
|
render: function render(text, record) {
|
|
7268
7344
|
if (text) {
|
|
7269
|
-
return /*#__PURE__*/React__default['default'].createElement("
|
|
7345
|
+
return /*#__PURE__*/React__default['default'].createElement("span", {
|
|
7346
|
+
title: record.companyDidNote + '' + text
|
|
7347
|
+
}, record.companyDidNote, " ", text);
|
|
7270
7348
|
} else {
|
|
7271
7349
|
return '';
|
|
7272
7350
|
}
|
|
@@ -7274,6 +7352,7 @@ function Rule$2(props) {
|
|
|
7274
7352
|
}, {
|
|
7275
7353
|
title: '加入时间',
|
|
7276
7354
|
dataIndex: 'createTime',
|
|
7355
|
+
ellipsis: true,
|
|
7277
7356
|
width: 200,
|
|
7278
7357
|
render: function render(text) {
|
|
7279
7358
|
return moment__default['default'](text).format('YYYY-MM-DD HH:mm');
|
|
@@ -7358,6 +7437,10 @@ function Rule$2(props) {
|
|
|
7358
7437
|
backgroundColor: '#efefef'
|
|
7359
7438
|
}
|
|
7360
7439
|
}, /*#__PURE__*/React__default['default'].createElement(ktsXui.Table, {
|
|
7440
|
+
scroll: {
|
|
7441
|
+
x: '1400',
|
|
7442
|
+
y: 'max-content'
|
|
7443
|
+
},
|
|
7361
7444
|
rowSelection: rowSelection,
|
|
7362
7445
|
columns: columns,
|
|
7363
7446
|
rowKey: "index",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kts-components-document-access-point",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.10",
|
|
4
4
|
"private": false,
|
|
5
5
|
"scripts": {
|
|
6
6
|
"start": "dumi dev",
|
|
@@ -31,13 +31,13 @@
|
|
|
31
31
|
"@formily/antd-components": "^1.3.17",
|
|
32
32
|
"@types/uuid": "^8.3.1",
|
|
33
33
|
"antd": "3.26.20",
|
|
34
|
-
"grey-react-box": "
|
|
34
|
+
"grey-react-box": "0.2.15",
|
|
35
35
|
"kts-component-service": "^1.0.4",
|
|
36
36
|
"kts-components": "^1.2.26",
|
|
37
37
|
"kts-components-antd-x4": "^4.0.3",
|
|
38
|
-
"kts-xui": "^1.0.
|
|
38
|
+
"kts-xui": "^1.0.31",
|
|
39
39
|
"lodash": "^4.17.21",
|
|
40
|
-
"moment": "
|
|
40
|
+
"moment": "2.29.1",
|
|
41
41
|
"query-string": "^7.0.1",
|
|
42
42
|
"react": "^16.12.0",
|
|
43
43
|
"react-router-dom": "^5.2.0",
|
|
@@ -31,9 +31,11 @@ export default function Rule(props: any) {
|
|
|
31
31
|
{
|
|
32
32
|
title: 'DID',
|
|
33
33
|
dataIndex: 'customerDid',
|
|
34
|
+
width: 200,
|
|
35
|
+
ellipsis: true,
|
|
34
36
|
render: (text: any, record: any) => {
|
|
35
37
|
if (text) {
|
|
36
|
-
return <
|
|
38
|
+
return <span title={record.customerDidNote+''+text}>{record.customerDidNote}{text}</span>
|
|
37
39
|
} else {
|
|
38
40
|
return ''
|
|
39
41
|
}
|
|
@@ -42,12 +44,14 @@ export default function Rule(props: any) {
|
|
|
42
44
|
{
|
|
43
45
|
title: '所属公司',
|
|
44
46
|
width: 200,
|
|
47
|
+
ellipsis: true,
|
|
45
48
|
dataIndex: 'customerName',
|
|
46
49
|
},
|
|
47
50
|
{
|
|
48
51
|
title: '数据状态',
|
|
49
52
|
dataIndex: 'dataStatus',
|
|
50
53
|
width: 100,
|
|
54
|
+
|
|
51
55
|
render: (text: any) => {
|
|
52
56
|
if (text === 2) {
|
|
53
57
|
return <span>停用</span>
|
|
@@ -59,10 +63,12 @@ export default function Rule(props: any) {
|
|
|
59
63
|
},
|
|
60
64
|
{
|
|
61
65
|
title: '我司对应DID',
|
|
66
|
+
width: 200,
|
|
67
|
+
ellipsis: true,
|
|
62
68
|
dataIndex: 'companyDid',
|
|
63
69
|
render: (text: any, record: any) => {
|
|
64
70
|
if (text) {
|
|
65
|
-
return <
|
|
71
|
+
return <span title={record.companyDidNote+''+text}>{record.companyDidNote} {text}</span>
|
|
66
72
|
} else {
|
|
67
73
|
return ''
|
|
68
74
|
}
|
|
@@ -71,6 +77,7 @@ export default function Rule(props: any) {
|
|
|
71
77
|
{
|
|
72
78
|
title: '加入时间',
|
|
73
79
|
dataIndex: 'createTime',
|
|
80
|
+
ellipsis: true,
|
|
74
81
|
width: 200,
|
|
75
82
|
render: (text: any) => moment(text).format('YYYY-MM-DD HH:mm')
|
|
76
83
|
},
|
|
@@ -120,7 +127,7 @@ export default function Rule(props: any) {
|
|
|
120
127
|
<>
|
|
121
128
|
<Header />
|
|
122
129
|
<AutoTableContainer style={{ flex: 1, padding: '0 20px', backgroundColor: '#efefef' }} >
|
|
123
|
-
<Table rowSelection={rowSelection} columns={columns} rowKey="index" dataSource={list} pagination={false} />
|
|
130
|
+
<Table scroll={{ x: '1400', y: 'max-content' }} rowSelection={rowSelection} columns={columns} rowKey="index" dataSource={list} pagination={false} />
|
|
124
131
|
</AutoTableContainer>
|
|
125
132
|
{pageMeta && <Pagination onChange={onPageChange} style={{ padding: '16px 0', flex: 'none', background: 'white', textAlign: 'center' }} total={pageMeta.total} pageSize={pageMeta.pageSize} current={pageMeta.pageNum} showSizeChanger={true} />}
|
|
126
133
|
</>);
|
|
@@ -14,7 +14,7 @@ export default function Rule(props: any) {
|
|
|
14
14
|
})()
|
|
15
15
|
}, []);
|
|
16
16
|
const onEnablehander = useCallback((type: number, record: any) => {
|
|
17
|
-
|
|
17
|
+
|
|
18
18
|
(async () => {
|
|
19
19
|
const res = await controller.enablewhitelist({
|
|
20
20
|
flag: type,
|
|
@@ -29,9 +29,11 @@ export default function Rule(props: any) {
|
|
|
29
29
|
{
|
|
30
30
|
title: 'DID',
|
|
31
31
|
dataIndex: 'customerDid',
|
|
32
|
+
width: 200,
|
|
33
|
+
ellipsis: true,
|
|
32
34
|
render: (text: any, record: any) => {
|
|
33
35
|
if (text) {
|
|
34
|
-
return <
|
|
36
|
+
return <span title={record.customerDidNote + ' ' + text}>{record.customerDidNote} {text}</span>
|
|
35
37
|
} else {
|
|
36
38
|
return ''
|
|
37
39
|
}
|
|
@@ -40,12 +42,15 @@ export default function Rule(props: any) {
|
|
|
40
42
|
{
|
|
41
43
|
title: '所属公司',
|
|
42
44
|
dataIndex: 'customerName',
|
|
43
|
-
width: 200
|
|
45
|
+
width: 200,
|
|
46
|
+
ellipsis: true,
|
|
47
|
+
|
|
44
48
|
},
|
|
45
49
|
{
|
|
46
50
|
title: '数据状态',
|
|
47
51
|
dataIndex: 'dataStatus',
|
|
48
52
|
width: 100,
|
|
53
|
+
ellipsis: true,
|
|
49
54
|
render: (text: any) => {
|
|
50
55
|
if (text === 2) {
|
|
51
56
|
return <span>停用</span>
|
|
@@ -58,9 +63,11 @@ export default function Rule(props: any) {
|
|
|
58
63
|
{
|
|
59
64
|
title: '我司对应DID',
|
|
60
65
|
dataIndex: 'companyDid',
|
|
66
|
+
width: 200,
|
|
67
|
+
ellipsis: true,
|
|
61
68
|
render: (text: any, record: any) => {
|
|
62
69
|
if (text) {
|
|
63
|
-
return <
|
|
70
|
+
return <span title={record.companyDidNote + '' + text}>{record.companyDidNote} {text}</span>
|
|
64
71
|
} else {
|
|
65
72
|
return ''
|
|
66
73
|
}
|
|
@@ -70,6 +77,7 @@ export default function Rule(props: any) {
|
|
|
70
77
|
title: '加入时间',
|
|
71
78
|
dataIndex: 'createTime',
|
|
72
79
|
width: 200,
|
|
80
|
+
ellipsis: true,
|
|
73
81
|
render: (text: any) => moment(text).format('YYYY-MM-DD HH:mm')
|
|
74
82
|
},
|
|
75
83
|
{
|
|
@@ -96,7 +104,7 @@ export default function Rule(props: any) {
|
|
|
96
104
|
}
|
|
97
105
|
})()
|
|
98
106
|
}, [whiteParams]);
|
|
99
|
-
|
|
107
|
+
|
|
100
108
|
useEffect(() => {
|
|
101
109
|
refreshList();
|
|
102
110
|
}, [whiteParams]);
|
|
@@ -113,7 +121,7 @@ export default function Rule(props: any) {
|
|
|
113
121
|
<>
|
|
114
122
|
<Header />
|
|
115
123
|
<AutoTableContainer style={{ flex: 1, padding: '0 20px', backgroundColor: '#efefef' }} >
|
|
116
|
-
<Table rowSelection={rowSelection} columns={columns} rowKey="index" dataSource={list} pagination={false} />
|
|
124
|
+
<Table rowSelection={rowSelection} scroll={{ x: '1400', y: 'max-content' }} columns={columns} rowKey="index" dataSource={list} pagination={false} />
|
|
117
125
|
</AutoTableContainer>
|
|
118
126
|
{pageMeta && <Pagination onChange={onPageChange} style={{ padding: '16px 0', flex: 'none', background: 'white', textAlign: 'center' }} total={pageMeta.total} pageSize={pageMeta.pageSize} current={pageMeta.pageNum} showSizeChanger={true} />}
|
|
119
127
|
</>);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// import { Tabs } from 'kts-components-antd-x4';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { MemoryRouter, Switch, Route, Redirect } from 'react-router-dom';
|
|
4
|
-
import { DocumentsList, DocumentsRule, DocumentWhiteList
|
|
4
|
+
import { DocumentsList, DocumentsRule, DocumentWhiteList } from '../';
|
|
5
5
|
import { ConfigProvider } from 'kts-components-antd-x4';
|
|
6
6
|
import zhCN from 'kts-components-antd-x4/lib/locale/zh_CN';
|
|
7
7
|
|
|
@@ -10,9 +10,7 @@ export default class DocumentsCont extends React.Component<any> {
|
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
const Main = (props: any) => {
|
|
13
|
-
const initRoute = props.path || '/
|
|
14
|
-
// const uploadConfig = { domain: (DocumentsService.instance.service as any).sdk.service.domain, token: (DocumentsService.instance.service as any).sdk.user.cToken };
|
|
15
|
-
// console.log(uploadConfig);
|
|
13
|
+
const initRoute = props.path || '/rulelist'
|
|
16
14
|
return (
|
|
17
15
|
<ConfigProvider locale={zhCN}>
|
|
18
16
|
<MemoryRouter>
|
|
@@ -21,7 +19,6 @@ const Main = (props: any) => {
|
|
|
21
19
|
<Route path="/rulelist" component={DocumentsList} />
|
|
22
20
|
<Route path="/billwhiteliest" component={DocumentWhiteList} />
|
|
23
21
|
<Route path="/rule/:id?/:type?/:profile?" component={DocumentsRule} />
|
|
24
|
-
|
|
25
22
|
<Route render={() => <Redirect to={initRoute} />} />
|
|
26
23
|
</Switch>
|
|
27
24
|
</MemoryRouter>
|
|
@@ -20,4 +20,22 @@
|
|
|
20
20
|
color: #0074ff;
|
|
21
21
|
white-space: nowrap;
|
|
22
22
|
cursor: pointer;
|
|
23
|
-
}
|
|
23
|
+
}
|
|
24
|
+
// .ktsAntX-xui-page-header-foot{
|
|
25
|
+
// overflow: inherit !important;
|
|
26
|
+
// }
|
|
27
|
+
// .ktsAntX-table .ktsAntX-table-thead > tr > th{
|
|
28
|
+
// background:#fafafa !important
|
|
29
|
+
// }
|
|
30
|
+
// .ktsAntX-table-ping-left:not(.ktsAntX-table-has-fix-left) .ktsAntX-table-container::before{
|
|
31
|
+
// box-shadow:none !important;
|
|
32
|
+
// }
|
|
33
|
+
// .fixheight {
|
|
34
|
+
// .ktsAntX-table .ktsAntX-table-thead > tr > th, .ktsAntX-table .ktsAntX-table-tbody > tr > td, .ktsAntX-table .ktsAntX-table tfoot > tr > th, .ktsAntX-table .ktsAntX-table tfoot > tr > td{
|
|
35
|
+
// padding: 5px 16px;
|
|
36
|
+
// height: 50px;
|
|
37
|
+
// }
|
|
38
|
+
// }
|
|
39
|
+
// .ktsAntX-table-thead > tr > th:not(:last-child):not(.ktsAntX-table-selection-column):not(.ktsAntX-table-row-expand-icon-cell):not([colspan])::before{
|
|
40
|
+
// opacity: 0;
|
|
41
|
+
// }
|
|
@@ -10,6 +10,7 @@ export default function modalcomfirm(props: any) {
|
|
|
10
10
|
const history = useHistory();
|
|
11
11
|
const controller = Main.useController();
|
|
12
12
|
const targetId = controller.useMemo(s => s.targetId, [])
|
|
13
|
+
const [loading, setloading] = useState(false);
|
|
13
14
|
const [targetList, setTargetList] = useState<any[]>([]);
|
|
14
15
|
useEffect(() => {
|
|
15
16
|
(async () => {
|
|
@@ -34,20 +35,25 @@ export default function modalcomfirm(props: any) {
|
|
|
34
35
|
senderParticipantNote: note && note.remarkName
|
|
35
36
|
};
|
|
36
37
|
});
|
|
37
|
-
|
|
38
|
-
if (
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
38
|
+
|
|
39
|
+
if (!loading) {
|
|
40
|
+
setloading(true)
|
|
41
|
+
const res = await DocumentsService.instance.service?.call({ url: '/schema/config/batchSend', data: data, type: 'post' }) as any;
|
|
42
|
+
if (res.res) {
|
|
43
|
+
gotoSendlist();
|
|
44
|
+
message.success('操作成功');
|
|
45
|
+
props.handleCancel()
|
|
46
|
+
}
|
|
47
|
+
setloading(false)
|
|
42
48
|
}
|
|
43
49
|
})()
|
|
44
|
-
}, [targetId,targetList]);
|
|
50
|
+
}, [targetId, targetList,loading]);
|
|
45
51
|
const gotoSendlist = useCallback(() => {
|
|
46
52
|
controller.pipeline(async s => {
|
|
47
53
|
s.type = 2;
|
|
48
54
|
if (selectItems.length === 1) {
|
|
49
55
|
s.params = { configNumber: selectItems[0].configNumber }
|
|
50
|
-
s.selectedRowKey=[];
|
|
56
|
+
s.selectedRowKey = [];
|
|
51
57
|
}
|
|
52
58
|
history.push({ pathname: `/rulelist`, state: { type: 2 } })
|
|
53
59
|
})()
|
|
@@ -68,12 +74,10 @@ export default function modalcomfirm(props: any) {
|
|
|
68
74
|
return (
|
|
69
75
|
<div>
|
|
70
76
|
<Modal
|
|
71
|
-
title="请选择我司对应
|
|
77
|
+
title="请选择我司对应DID"
|
|
72
78
|
visible={true}
|
|
73
79
|
onOk={handleOk}
|
|
74
80
|
onCancel={handleCancel}
|
|
75
|
-
okText="确定"
|
|
76
|
-
cancelText="取消"
|
|
77
81
|
>
|
|
78
82
|
<Radio.Group onChange={targetSelect} value={targetId} >
|
|
79
83
|
{
|
|
@@ -216,8 +216,8 @@ export default () => {
|
|
|
216
216
|
<div style={{ display: 'flex' }}>
|
|
217
217
|
<div style={{ marginRight: 10 }}>
|
|
218
218
|
<Radio.Group value={type} onChange={switchType}>
|
|
219
|
-
<Radio.Button value={1}>单据校验规则配置</Radio.Button>
|
|
220
|
-
<Radio.Button value={2}>发布记录</Radio.Button>
|
|
219
|
+
<Radio.Button value={1} style={{whiteSpace:'nowrap'}}>单据校验规则配置</Radio.Button>
|
|
220
|
+
<Radio.Button value={2} style={{whiteSpace:'nowrap'}}>发布记录</Radio.Button>
|
|
221
221
|
</Radio.Group>
|
|
222
222
|
</div>
|
|
223
223
|
<AdvancedSearch
|
|
@@ -72,16 +72,20 @@ export default function validaterule(props: any) {
|
|
|
72
72
|
{
|
|
73
73
|
title: '配置名称',
|
|
74
74
|
dataIndex: 'configName',
|
|
75
|
+
width: 160,
|
|
76
|
+
ellipsis: true,
|
|
75
77
|
},
|
|
76
78
|
{
|
|
77
79
|
title: '单据大类',
|
|
78
80
|
dataIndex: 'type',
|
|
81
|
+
width: 120,
|
|
79
82
|
render: (text: any) => {
|
|
80
83
|
return bill[text];
|
|
81
84
|
}
|
|
82
85
|
},
|
|
83
86
|
{
|
|
84
87
|
title: '单据子类',
|
|
88
|
+
width: 120,
|
|
85
89
|
dataIndex: 'profile',
|
|
86
90
|
render: (text: any, record: any) => {
|
|
87
91
|
if (text) {
|
|
@@ -94,21 +98,28 @@ export default function validaterule(props: any) {
|
|
|
94
98
|
{
|
|
95
99
|
title: '收发角色',
|
|
96
100
|
dataIndex: 'attribution',
|
|
101
|
+
width: 120,
|
|
97
102
|
render: (text: string) => attributionEnum[text]
|
|
98
103
|
},
|
|
99
104
|
{
|
|
100
105
|
title: '创建时间',
|
|
101
106
|
dataIndex: 'createAt',
|
|
107
|
+
ellipsis: true,
|
|
108
|
+
width: 160,
|
|
102
109
|
render: (text: any) => moment(text).format('YYYY-MM-DD HH:mm')
|
|
103
110
|
},
|
|
104
111
|
{
|
|
105
112
|
title: '更新时间',
|
|
106
113
|
dataIndex: 'updateAt',
|
|
114
|
+
ellipsis: true,
|
|
115
|
+
width: 160,
|
|
107
116
|
render: (text: any) => moment(text).format('YYYY-MM-DD HH:mm')
|
|
108
117
|
},
|
|
109
118
|
{
|
|
110
119
|
title: '操作',
|
|
120
|
+
width: 170,
|
|
111
121
|
dataIndex: 'console',
|
|
122
|
+
fixed: 'right',
|
|
112
123
|
render: (text: any, record: any) => (
|
|
113
124
|
<span>
|
|
114
125
|
<a className="tabel-action" onClick={() => { onBillView(record) }}>查看</a>
|
|
@@ -155,9 +166,11 @@ export default function validaterule(props: any) {
|
|
|
155
166
|
}, [])
|
|
156
167
|
return (
|
|
157
168
|
<>
|
|
158
|
-
<
|
|
159
|
-
|
|
160
|
-
|
|
169
|
+
<div style={{ flex: 'none', position: 'relative', zIndex: 1 }}>
|
|
170
|
+
<PageHeader />
|
|
171
|
+
</div>
|
|
172
|
+
<AutoTableContainer style={{ flex: 1, padding: '0 20px', background: '#F4F4F4' }} >
|
|
173
|
+
<Table className='fixheight' columns={columns as any} rowKey="configNumber" rowSelection={rowSelection} dataSource={list} pagination={false} />
|
|
161
174
|
</AutoTableContainer>
|
|
162
175
|
{pageMeta && <Pagination onChange={onPageChange} style={{ padding: '16px 0', flex: 'none', background: 'white', textAlign: 'center' }} total={pageMeta.total} pageSize={pageMeta.pageSize} current={pageMeta.pageNum} showSizeChanger={true} />}
|
|
163
176
|
</>);
|
|
@@ -17,7 +17,7 @@ export default function validaterule(props: any) {
|
|
|
17
17
|
const [bill, setConfig] = useState<{ [key: string]: string }>({});
|
|
18
18
|
useEffect(() => {
|
|
19
19
|
(async () => {
|
|
20
|
-
const res = await DocumentsService.instance.service?.call({ url: '/schema/config/querySendRecordPage', data:
|
|
20
|
+
const res = await DocumentsService.instance.service?.call({ url: '/schema/config/querySendRecordPage', data: params, type: 'post' }) as any;
|
|
21
21
|
if (res.err) {
|
|
22
22
|
return false;
|
|
23
23
|
}
|
|
@@ -60,10 +60,14 @@ export default function validaterule(props: any) {
|
|
|
60
60
|
{
|
|
61
61
|
title: '配置名称',
|
|
62
62
|
dataIndex: 'configName',
|
|
63
|
+
ellipsis: true,
|
|
64
|
+
width: 160,
|
|
63
65
|
},
|
|
64
66
|
{
|
|
65
67
|
title: '使用标识',
|
|
66
68
|
dataIndex: 'effectStatus',
|
|
69
|
+
width: 120,
|
|
70
|
+
ellipsis: true,
|
|
67
71
|
render: (text: any) => {
|
|
68
72
|
if (text === 0) {
|
|
69
73
|
return <span>已失效</span>
|
|
@@ -75,6 +79,7 @@ export default function validaterule(props: any) {
|
|
|
75
79
|
},
|
|
76
80
|
{
|
|
77
81
|
title: '单据类型',
|
|
82
|
+
width: 120,
|
|
78
83
|
dataIndex: 'type',
|
|
79
84
|
render: (text: any) => {
|
|
80
85
|
return bill[text];
|
|
@@ -82,6 +87,7 @@ export default function validaterule(props: any) {
|
|
|
82
87
|
},
|
|
83
88
|
{
|
|
84
89
|
title: '单据子类',
|
|
90
|
+
width: 120,
|
|
85
91
|
dataIndex: 'profile',
|
|
86
92
|
render: (text: string, record: any) => {
|
|
87
93
|
if (text) {
|
|
@@ -94,14 +100,18 @@ export default function validaterule(props: any) {
|
|
|
94
100
|
{
|
|
95
101
|
title: '我的收发角色',
|
|
96
102
|
dataIndex: 'attribution',
|
|
103
|
+
width: 160,
|
|
104
|
+
ellipsis: true,
|
|
97
105
|
render: (text: any) => attributionEnum[text]
|
|
98
106
|
},
|
|
99
107
|
{
|
|
100
108
|
title: '我司对应DID',
|
|
101
109
|
dataIndex: 'senderParticipantId',
|
|
110
|
+
ellipsis: true,
|
|
111
|
+
width: 200,
|
|
102
112
|
render: (text: any, record: any) => {
|
|
103
113
|
if (record.senderParticipantNote) {
|
|
104
|
-
return <
|
|
114
|
+
return <span title={record.senderParticipantNote+''+text}>{record.senderParticipantNote}{text}</span>
|
|
105
115
|
} else {
|
|
106
116
|
return <span>{text}</span>
|
|
107
117
|
}
|
|
@@ -110,16 +120,22 @@ export default function validaterule(props: any) {
|
|
|
110
120
|
},
|
|
111
121
|
{
|
|
112
122
|
title: '接受对象',
|
|
123
|
+
width: 120,
|
|
124
|
+
ellipsis: true,
|
|
113
125
|
dataIndex: 'receiverParticipantId',
|
|
114
126
|
|
|
115
127
|
},
|
|
116
128
|
{
|
|
117
129
|
title: '接受对象所属公司',
|
|
130
|
+
width: 160,
|
|
131
|
+
ellipsis: true,
|
|
118
132
|
dataIndex: 'receiverCompany',
|
|
119
133
|
},
|
|
120
134
|
{
|
|
121
135
|
title: '发布时间',
|
|
122
136
|
dataIndex: 'createAt',
|
|
137
|
+
width: 160,
|
|
138
|
+
ellipsis: true,
|
|
123
139
|
render: (text: any) => moment(text).format('YYYY-MM-DD HH:mm')
|
|
124
140
|
},
|
|
125
141
|
// {
|
|
@@ -134,6 +150,8 @@ export default function validaterule(props: any) {
|
|
|
134
150
|
{
|
|
135
151
|
title: '操作',
|
|
136
152
|
dataIndex: 'console',
|
|
153
|
+
width: 80,
|
|
154
|
+
fixed: 'right',
|
|
137
155
|
render: (text: any, record: any) => (
|
|
138
156
|
<span>
|
|
139
157
|
<a className="tabel-action" onClick={() => { onBillView(record.id) }}>查看</a>
|
|
@@ -145,7 +163,7 @@ export default function validaterule(props: any) {
|
|
|
145
163
|
<>
|
|
146
164
|
<PageHeader />
|
|
147
165
|
<AutoTableContainer style={{ flex: 1, padding: '0 20px', backgroundColor: '#efefef' }} >
|
|
148
|
-
<Table columns={columns} rowKey="id" dataSource={list} pagination={false} />
|
|
166
|
+
<Table className='fixheight' columns={columns as any} rowKey="id" dataSource={list} pagination={false} />
|
|
149
167
|
</AutoTableContainer>
|
|
150
168
|
{pageMeta && <Pagination onChange={onPageChange} style={{ padding: '16px 0', flex: 'none', background: 'white', textAlign: 'center' }} total={pageMeta.total} pageSize={pageMeta.pageSize} current={pageMeta.pageNum} showSizeChanger={true} />}
|
|
151
169
|
</>);
|