kts-components-document-access-point 1.1.23 → 1.1.24
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/DocumentsList/ui/PageHeader/SendHeader.d.ts +2 -0
- package/dist/DocumentsList/ui/{PageUi → PageUI}/index.d.ts +0 -0
- package/dist/index.esm.js +167 -78
- package/dist/index.js +167 -78
- package/package.json +1 -1
- package/src/DocumentsList/index.tsx +2 -2
- package/src/DocumentsList/ui/ModalComfirm/index.tsx +2 -2
- package/src/DocumentsList/ui/PageHeader/SendHeader.tsx +230 -0
- package/src/DocumentsList/ui/PageHeader/index.tsx +129 -61
- package/src/DocumentsList/ui/RuleTable/index.tsx +6 -5
- package/src/DocumentsList/ui/sendlist/index.tsx +34 -10
- package/src/DocumentsRule/ui/main/index.tsx +1 -1
|
File without changes
|
package/dist/index.esm.js
CHANGED
|
@@ -2739,7 +2739,7 @@ function modalcomfirm(props) {
|
|
|
2739
2739
|
case 0:
|
|
2740
2740
|
data = selectItems.map(function (item) {
|
|
2741
2741
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
2742
|
-
|
|
2742
|
+
senderPartitionId: targetId,
|
|
2743
2743
|
privateList: [],
|
|
2744
2744
|
sendPublic: true
|
|
2745
2745
|
});
|
|
@@ -2797,7 +2797,7 @@ function modalcomfirm(props) {
|
|
|
2797
2797
|
};
|
|
2798
2798
|
}, []);
|
|
2799
2799
|
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Modal, {
|
|
2800
|
-
title: "\u8BF7\u9009\u62E9",
|
|
2800
|
+
title: "\u8BF7\u9009\u62E9\u6211\u53F8\u5BF9\u5E94DID",
|
|
2801
2801
|
visible: true,
|
|
2802
2802
|
onOk: handleOk,
|
|
2803
2803
|
onCancel: handleCancel
|
|
@@ -2983,62 +2983,129 @@ var PageHeader = (function () {
|
|
|
2983
2983
|
}())();
|
|
2984
2984
|
}, [controller]);
|
|
2985
2985
|
useEffect(function () {
|
|
2986
|
-
|
|
2987
|
-
|
|
2988
|
-
|
|
2989
|
-
|
|
2990
|
-
|
|
2991
|
-
|
|
2992
|
-
|
|
2993
|
-
|
|
2994
|
-
|
|
2995
|
-
|
|
2996
|
-
|
|
2997
|
-
|
|
2998
|
-
|
|
2999
|
-
|
|
3000
|
-
|
|
3001
|
-
|
|
3002
|
-
|
|
3003
|
-
|
|
3004
|
-
|
|
3005
|
-
|
|
3006
|
-
|
|
3007
|
-
|
|
3008
|
-
|
|
3009
|
-
|
|
3010
|
-
|
|
3011
|
-
|
|
3012
|
-
|
|
3013
|
-
|
|
3014
|
-
|
|
3015
|
-
|
|
3016
|
-
|
|
3017
|
-
|
|
3018
|
-
|
|
3019
|
-
|
|
3020
|
-
|
|
3021
|
-
|
|
3022
|
-
|
|
3023
|
-
|
|
3024
|
-
|
|
2986
|
+
if (type === 1) {
|
|
2987
|
+
var obj = {
|
|
2988
|
+
type: "object",
|
|
2989
|
+
properties: {
|
|
2990
|
+
configName: {
|
|
2991
|
+
type: "string",
|
|
2992
|
+
title: "配置名称"
|
|
2993
|
+
},
|
|
2994
|
+
attributionList: {
|
|
2995
|
+
type: "string",
|
|
2996
|
+
title: "发送对象",
|
|
2997
|
+
visible: false
|
|
2998
|
+
},
|
|
2999
|
+
type: {
|
|
3000
|
+
type: "string",
|
|
3001
|
+
title: "单据大类",
|
|
3002
|
+
enum: billEnum
|
|
3003
|
+
},
|
|
3004
|
+
profile: {
|
|
3005
|
+
type: "string",
|
|
3006
|
+
title: "单据子类",
|
|
3007
|
+
enum: profileEnum,
|
|
3008
|
+
visible: false
|
|
3009
|
+
},
|
|
3010
|
+
attribution: {
|
|
3011
|
+
type: "string",
|
|
3012
|
+
title: "单据类型",
|
|
3013
|
+
enum: [{
|
|
3014
|
+
"label": "发送方",
|
|
3015
|
+
"value": '1'
|
|
3016
|
+
}, {
|
|
3017
|
+
"label": "接收方",
|
|
3018
|
+
"value": '0'
|
|
3019
|
+
}],
|
|
3020
|
+
'x-props': {
|
|
3021
|
+
mode: "multiple"
|
|
3022
|
+
}
|
|
3023
|
+
},
|
|
3024
|
+
'[beginCreateTime,endCreateTime]': {
|
|
3025
|
+
key: "[beginCreateTime,endCreateTime",
|
|
3026
|
+
name: "[beginCreateTime,endCreateTime",
|
|
3027
|
+
type: "daterange",
|
|
3028
|
+
title: "创建时间"
|
|
3029
|
+
},
|
|
3030
|
+
'[beginSendTime,endSendTime]': {
|
|
3031
|
+
key: "[beginSendTime,endSendTime",
|
|
3032
|
+
name: "[beginSendTime,endSendTime",
|
|
3033
|
+
type: "daterange",
|
|
3034
|
+
title: "更新时间"
|
|
3025
3035
|
}
|
|
3026
|
-
},
|
|
3027
|
-
'[beginCreateTime,endCreateTime]': {
|
|
3028
|
-
key: "[beginCreateTime,endCreateTime",
|
|
3029
|
-
name: "[beginCreateTime,endCreateTime",
|
|
3030
|
-
type: "daterange",
|
|
3031
|
-
title: "创建时间"
|
|
3032
|
-
},
|
|
3033
|
-
'[beginSendTime,endSendTime]': {
|
|
3034
|
-
key: "[beginSendTime,endSendTime",
|
|
3035
|
-
name: "[beginSendTime,endSendTime",
|
|
3036
|
-
type: "daterange",
|
|
3037
|
-
title: "更新时间"
|
|
3038
3036
|
}
|
|
3039
|
-
}
|
|
3040
|
-
|
|
3041
|
-
|
|
3037
|
+
};
|
|
3038
|
+
setSchema(obj);
|
|
3039
|
+
} else if (type === 2) {
|
|
3040
|
+
var _obj = {
|
|
3041
|
+
type: "object",
|
|
3042
|
+
properties: {
|
|
3043
|
+
configName: {
|
|
3044
|
+
type: "string",
|
|
3045
|
+
title: "配置名称"
|
|
3046
|
+
},
|
|
3047
|
+
biaoshi: {
|
|
3048
|
+
type: "string",
|
|
3049
|
+
title: "标识"
|
|
3050
|
+
},
|
|
3051
|
+
attributionList: {
|
|
3052
|
+
type: "string",
|
|
3053
|
+
title: "发送对象",
|
|
3054
|
+
visible: true
|
|
3055
|
+
},
|
|
3056
|
+
did: {
|
|
3057
|
+
type: "string",
|
|
3058
|
+
title: "我司对应DID"
|
|
3059
|
+
},
|
|
3060
|
+
duixiang: {
|
|
3061
|
+
type: "string",
|
|
3062
|
+
title: "接受对象"
|
|
3063
|
+
},
|
|
3064
|
+
duixianggongsi: {
|
|
3065
|
+
type: "string",
|
|
3066
|
+
title: "接受对象所属公司"
|
|
3067
|
+
},
|
|
3068
|
+
type: {
|
|
3069
|
+
type: "string",
|
|
3070
|
+
title: "单据大类",
|
|
3071
|
+
enum: billEnum
|
|
3072
|
+
},
|
|
3073
|
+
profile: {
|
|
3074
|
+
type: "string",
|
|
3075
|
+
title: "单据子类",
|
|
3076
|
+
enum: profileEnum,
|
|
3077
|
+
visible: false
|
|
3078
|
+
},
|
|
3079
|
+
attribution: {
|
|
3080
|
+
type: "string",
|
|
3081
|
+
title: "单据类型",
|
|
3082
|
+
enum: [{
|
|
3083
|
+
"label": "发送方",
|
|
3084
|
+
"value": '1'
|
|
3085
|
+
}, {
|
|
3086
|
+
"label": "接收方",
|
|
3087
|
+
"value": '0'
|
|
3088
|
+
}],
|
|
3089
|
+
'x-props': {
|
|
3090
|
+
mode: "multiple"
|
|
3091
|
+
}
|
|
3092
|
+
},
|
|
3093
|
+
'[beginCreateTime,endCreateTime]': {
|
|
3094
|
+
key: "[beginCreateTime,endCreateTime",
|
|
3095
|
+
name: "[beginCreateTime,endCreateTime",
|
|
3096
|
+
type: "daterange",
|
|
3097
|
+
title: "创建时间"
|
|
3098
|
+
},
|
|
3099
|
+
'[beginSendTime,endSendTime]': {
|
|
3100
|
+
key: "[beginSendTime,endSendTime",
|
|
3101
|
+
name: "[beginSendTime,endSendTime",
|
|
3102
|
+
type: "daterange",
|
|
3103
|
+
title: "更新时间"
|
|
3104
|
+
}
|
|
3105
|
+
}
|
|
3106
|
+
};
|
|
3107
|
+
setSchema(_obj);
|
|
3108
|
+
}
|
|
3042
3109
|
}, [billEnum, type, profileEnum]);
|
|
3043
3110
|
var onCreateType = useCallback(function (category, record) {
|
|
3044
3111
|
history.push({
|
|
@@ -3062,7 +3129,7 @@ var PageHeader = (function () {
|
|
|
3062
3129
|
value: 1
|
|
3063
3130
|
}, "\u5355\u636E\u6821\u9A8C\u89C4\u5219\u914D\u7F6E"), /*#__PURE__*/React.createElement(Radio$1.Button, {
|
|
3064
3131
|
value: 2
|
|
3065
|
-
}, "\u53D1\
|
|
3132
|
+
}, "\u53D1\u5E03\u8BB0\u5F55"))), /*#__PURE__*/React.createElement(AdvancedSearch, {
|
|
3066
3133
|
width: 480,
|
|
3067
3134
|
height: 44,
|
|
3068
3135
|
compact: true,
|
|
@@ -3076,16 +3143,15 @@ var PageHeader = (function () {
|
|
|
3076
3143
|
labelAlign: 'left',
|
|
3077
3144
|
compact: true,
|
|
3078
3145
|
schema: schema,
|
|
3079
|
-
defaultValue: _.pick(params, ['
|
|
3146
|
+
defaultValue: _.pick(params, ['configName', 'type', 'profile', 'attributionList', 'attribution', '[beginCreateTime,endCreateTime]', '[beginSendTime,endSendTime]']),
|
|
3080
3147
|
effects: function effects($, actions) {
|
|
3081
3148
|
$(LifeCycleTypes.ON_FIELD_VALUE_CHANGE, 'type').subscribe(function (fieldState) {
|
|
3082
3149
|
if (fieldState.value) {
|
|
3083
|
-
var value = fieldState.value;
|
|
3084
3150
|
var target = billEnum.find(function (item) {
|
|
3085
|
-
return item.value === value;
|
|
3151
|
+
return item.value === fieldState.value;
|
|
3086
3152
|
});
|
|
3087
3153
|
|
|
3088
|
-
if (target.profileList) {
|
|
3154
|
+
if (target && target.profileList) {
|
|
3089
3155
|
actions.setFieldState('profile', function (state) {
|
|
3090
3156
|
state.visible = true;
|
|
3091
3157
|
});
|
|
@@ -3111,7 +3177,7 @@ var PageHeader = (function () {
|
|
|
3111
3177
|
});
|
|
3112
3178
|
}
|
|
3113
3179
|
})));
|
|
3114
|
-
}, [type]);
|
|
3180
|
+
}, [type, schema]);
|
|
3115
3181
|
var menu = useMemo(function () {
|
|
3116
3182
|
return /*#__PURE__*/React.createElement(Menu, null, billEnum && billEnum.map(function (item, key) {
|
|
3117
3183
|
if (item.profileList) {
|
|
@@ -3150,7 +3216,7 @@ var PageHeader = (function () {
|
|
|
3150
3216
|
style: {
|
|
3151
3217
|
marginRight: 10
|
|
3152
3218
|
}
|
|
3153
|
-
}, "\u6279\u91CF\u53D1\
|
|
3219
|
+
}, "\u6279\u91CF\u53D1\u5E03"), /*#__PURE__*/React.createElement(Dropdown, {
|
|
3154
3220
|
key: "2",
|
|
3155
3221
|
overlay: menu
|
|
3156
3222
|
}, /*#__PURE__*/React.createElement(Button$1, {
|
|
@@ -3397,12 +3463,12 @@ function validaterule(props) {
|
|
|
3397
3463
|
onClick: function onClick() {
|
|
3398
3464
|
onSendCheck(record);
|
|
3399
3465
|
}
|
|
3400
|
-
}, "\u53D1\
|
|
3466
|
+
}, "\u53D1\u5E03"), record.publishStatus === 1 && /*#__PURE__*/React.createElement("a", {
|
|
3401
3467
|
className: "tabel-action",
|
|
3402
3468
|
onClick: function onClick() {
|
|
3403
3469
|
onBillSendList(record);
|
|
3404
3470
|
}
|
|
3405
|
-
}, "\u53D1\
|
|
3471
|
+
}, "\u53D1\u5E03\u8BB0\u5F55"));
|
|
3406
3472
|
}
|
|
3407
3473
|
}];
|
|
3408
3474
|
var rowSelection = useMemo(function () {
|
|
@@ -3515,7 +3581,7 @@ function validaterule(props) {
|
|
|
3515
3581
|
};
|
|
3516
3582
|
}())();
|
|
3517
3583
|
}, []);
|
|
3518
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(AutoTableContainer, {
|
|
3584
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(PageHeader, null), /*#__PURE__*/React.createElement(AutoTableContainer, {
|
|
3519
3585
|
style: {
|
|
3520
3586
|
flex: 1,
|
|
3521
3587
|
padding: '0 20px',
|
|
@@ -3748,7 +3814,10 @@ function validaterule$1(props) {
|
|
|
3748
3814
|
title: '配置名称',
|
|
3749
3815
|
dataIndex: 'configName'
|
|
3750
3816
|
}, {
|
|
3751
|
-
title: '
|
|
3817
|
+
title: '使用标识',
|
|
3818
|
+
dataIndex: 'biaoshi'
|
|
3819
|
+
}, {
|
|
3820
|
+
title: '单据类型',
|
|
3752
3821
|
dataIndex: 'type',
|
|
3753
3822
|
render: function render(text) {
|
|
3754
3823
|
return bill[text];
|
|
@@ -3768,11 +3837,29 @@ function validaterule$1(props) {
|
|
|
3768
3837
|
}
|
|
3769
3838
|
}
|
|
3770
3839
|
}, {
|
|
3771
|
-
title: '
|
|
3840
|
+
title: '我的收发角色',
|
|
3772
3841
|
dataIndex: 'attribution',
|
|
3773
3842
|
render: function render(text) {
|
|
3774
3843
|
return attributionEnum[text];
|
|
3775
3844
|
}
|
|
3845
|
+
}, {
|
|
3846
|
+
title: '我司对应DID',
|
|
3847
|
+
dataIndex: 'did',
|
|
3848
|
+
render: function render(text) {
|
|
3849
|
+
return attributionEnum[text];
|
|
3850
|
+
}
|
|
3851
|
+
}, {
|
|
3852
|
+
title: '接受对象',
|
|
3853
|
+
dataIndex: 'object',
|
|
3854
|
+
render: function render(text) {
|
|
3855
|
+
return attributionEnum[text];
|
|
3856
|
+
}
|
|
3857
|
+
}, {
|
|
3858
|
+
title: '接受对象所属公司',
|
|
3859
|
+
dataIndex: 'objectCompany',
|
|
3860
|
+
render: function render(text) {
|
|
3861
|
+
return attributionEnum[text];
|
|
3862
|
+
}
|
|
3776
3863
|
}, // {
|
|
3777
3864
|
// title: '发送对象',
|
|
3778
3865
|
// dataIndex: 'sender',
|
|
@@ -3781,18 +3868,20 @@ function validaterule$1(props) {
|
|
|
3781
3868
|
// }
|
|
3782
3869
|
// },
|
|
3783
3870
|
{
|
|
3784
|
-
title: '
|
|
3871
|
+
title: '发布时间',
|
|
3785
3872
|
dataIndex: 'createAt',
|
|
3786
3873
|
render: function render(text) {
|
|
3787
3874
|
return moment(text).format('YYYY-MM-DD hh:mm');
|
|
3788
3875
|
}
|
|
3789
3876
|
}, {
|
|
3790
|
-
title: '
|
|
3791
|
-
dataIndex: '
|
|
3792
|
-
|
|
3793
|
-
|
|
3794
|
-
|
|
3795
|
-
|
|
3877
|
+
title: '详细内容',
|
|
3878
|
+
dataIndex: 'neirong'
|
|
3879
|
+
}, // {
|
|
3880
|
+
// title: '最近更新时间',
|
|
3881
|
+
// dataIndex: 'updateAt',
|
|
3882
|
+
// render: (text: any) => moment(text).format('YYYY-MM-DD hh:mm')
|
|
3883
|
+
// },
|
|
3884
|
+
{
|
|
3796
3885
|
title: '操作',
|
|
3797
3886
|
dataIndex: 'console',
|
|
3798
3887
|
render: function render(text, record) {
|
|
@@ -3805,7 +3894,7 @@ function validaterule$1(props) {
|
|
|
3805
3894
|
}
|
|
3806
3895
|
}];
|
|
3807
3896
|
}, [bill]);
|
|
3808
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(AutoTableContainer, {
|
|
3897
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(PageHeader, null), /*#__PURE__*/React.createElement(AutoTableContainer, {
|
|
3809
3898
|
style: {
|
|
3810
3899
|
flex: 1,
|
|
3811
3900
|
padding: '0 20px',
|
|
@@ -3880,7 +3969,7 @@ var Main$1 = function Main(props) {
|
|
|
3880
3969
|
display: 'flex',
|
|
3881
3970
|
flexDirection: 'column'
|
|
3882
3971
|
}
|
|
3883
|
-
},
|
|
3972
|
+
}, type === 1 && /*#__PURE__*/React.createElement(validaterule, null), type === 2 && /*#__PURE__*/React.createElement(validaterule$1, null)));
|
|
3884
3973
|
};
|
|
3885
3974
|
|
|
3886
3975
|
var DocumentsService = /*#__PURE__*/function () {
|
|
@@ -4352,7 +4441,7 @@ function Rule(props) {
|
|
|
4352
4441
|
switch (_context6.prev = _context6.next) {
|
|
4353
4442
|
case 0:
|
|
4354
4443
|
data = _objectSpread2(_objectSpread2({}, record), {}, {
|
|
4355
|
-
|
|
4444
|
+
senderPartitionId: targetId,
|
|
4356
4445
|
privateList: [],
|
|
4357
4446
|
sendPublic: true
|
|
4358
4447
|
});
|