kts-components-document-access-point 1.3.11 → 1.3.12
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 +108 -85
- package/dist/index.js +108 -85
- package/package.json +1 -1
- package/src/DocumentWhiteList/ui/main/black.tsx +0 -1
- package/src/DocumentWhiteList/ui/main/white.tsx +0 -1
- package/src/DocumentsCont/___demo___/base/index.tsx +1 -1
- package/src/DocumentsList/DocumentsListController/DocumentsListControllerState/index.ts +4 -4
- package/src/DocumentsList/ui/PageHeader/index.tsx +3 -7
- package/src/DocumentsList/ui/RuleTable/index.tsx +6 -4
- package/src/DocumentsList/ui/sendlist/index.tsx +7 -4
package/dist/index.esm.js
CHANGED
|
@@ -3287,7 +3287,8 @@ var PageHeader = (function () {
|
|
|
3287
3287
|
var onSearchFormSubmit = React.useCallback(function (value) {
|
|
3288
3288
|
value = _objectSpread2(_objectSpread2({}, value), {}, {
|
|
3289
3289
|
typeList: value['typeList'] && [value['typeList']],
|
|
3290
|
-
pageNum: 1
|
|
3290
|
+
pageNum: 1,
|
|
3291
|
+
pageSize: 10
|
|
3291
3292
|
});
|
|
3292
3293
|
controller.pipeline( /*#__PURE__*/function () {
|
|
3293
3294
|
var _ref3 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3(s) {
|
|
@@ -3318,7 +3319,10 @@ var PageHeader = (function () {
|
|
|
3318
3319
|
switch (_context4.prev = _context4.next) {
|
|
3319
3320
|
case 0:
|
|
3320
3321
|
s.type = e.target.value;
|
|
3321
|
-
s.params = {
|
|
3322
|
+
s.params = {
|
|
3323
|
+
pageNum: 1,
|
|
3324
|
+
pageSize: 10
|
|
3325
|
+
};
|
|
3322
3326
|
history.push({
|
|
3323
3327
|
pathname: '/rulelist',
|
|
3324
3328
|
state: {
|
|
@@ -3399,11 +3403,6 @@ var PageHeader = (function () {
|
|
|
3399
3403
|
type: "string",
|
|
3400
3404
|
title: "配置名称"
|
|
3401
3405
|
},
|
|
3402
|
-
// attributionList: {
|
|
3403
|
-
// type: "string",
|
|
3404
|
-
// title: "发送对象",
|
|
3405
|
-
// visible: false
|
|
3406
|
-
// },
|
|
3407
3406
|
type: {
|
|
3408
3407
|
type: "string",
|
|
3409
3408
|
title: "单据大类",
|
|
@@ -3665,30 +3664,23 @@ function validaterule(props) {
|
|
|
3665
3664
|
}),
|
|
3666
3665
|
_useState2 = _slicedToArray(_useState, 2),
|
|
3667
3666
|
pageMeta = _useState2[0],
|
|
3668
|
-
setpageMeta = _useState2[1];
|
|
3667
|
+
setpageMeta = _useState2[1]; // const [pageParams, setpageParams] = useState<{ pageSize: number, pageNum: number, total?: number }>({ pageSize: 10, pageNum: 1 });
|
|
3669
3668
|
|
|
3670
|
-
|
|
3671
|
-
|
|
3672
|
-
pageNum: 1
|
|
3673
|
-
}),
|
|
3669
|
+
|
|
3670
|
+
var _useState3 = useState([]),
|
|
3674
3671
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
3675
|
-
|
|
3676
|
-
|
|
3672
|
+
list = _useState4[0],
|
|
3673
|
+
setList = _useState4[1];
|
|
3677
3674
|
|
|
3678
|
-
var _useState5 = useState(
|
|
3675
|
+
var _useState5 = useState({}),
|
|
3679
3676
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
3680
|
-
|
|
3681
|
-
|
|
3677
|
+
bill = _useState6[0],
|
|
3678
|
+
setConfig = _useState6[1];
|
|
3682
3679
|
|
|
3683
|
-
var _useState7 = useState(
|
|
3680
|
+
var _useState7 = useState([]),
|
|
3684
3681
|
_useState8 = _slicedToArray(_useState7, 2),
|
|
3685
|
-
|
|
3686
|
-
|
|
3687
|
-
|
|
3688
|
-
var _useState9 = useState([]),
|
|
3689
|
-
_useState10 = _slicedToArray(_useState9, 2),
|
|
3690
|
-
billEnum = _useState10[0],
|
|
3691
|
-
setBill = _useState10[1];
|
|
3682
|
+
billEnum = _useState8[0],
|
|
3683
|
+
setBill = _useState8[1];
|
|
3692
3684
|
|
|
3693
3685
|
useEffect(function () {
|
|
3694
3686
|
_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
@@ -3702,7 +3694,7 @@ function validaterule(props) {
|
|
|
3702
3694
|
_context.next = 2;
|
|
3703
3695
|
return (_DocumentsService$ins = DocumentsService.instance.service) === null || _DocumentsService$ins === void 0 ? void 0 : _DocumentsService$ins.call({
|
|
3704
3696
|
url: '/schema/config/queryConfigSchemaPage',
|
|
3705
|
-
data:
|
|
3697
|
+
data: params,
|
|
3706
3698
|
type: 'post'
|
|
3707
3699
|
});
|
|
3708
3700
|
|
|
@@ -3729,7 +3721,7 @@ function validaterule(props) {
|
|
|
3729
3721
|
}
|
|
3730
3722
|
}, _callee);
|
|
3731
3723
|
}))();
|
|
3732
|
-
}, [params
|
|
3724
|
+
}, [params]);
|
|
3733
3725
|
useEffect(function () {
|
|
3734
3726
|
_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {
|
|
3735
3727
|
var _DocumentsService$ins2;
|
|
@@ -3822,10 +3814,29 @@ function validaterule(props) {
|
|
|
3822
3814
|
}, []);
|
|
3823
3815
|
|
|
3824
3816
|
var onPageChange = function onPageChange(pageNum, pageSize) {
|
|
3825
|
-
|
|
3826
|
-
|
|
3827
|
-
|
|
3828
|
-
|
|
3817
|
+
controller.pipeline( /*#__PURE__*/function () {
|
|
3818
|
+
var _ref4 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee4(s) {
|
|
3819
|
+
return regeneratorRuntime.wrap(function _callee4$(_context4) {
|
|
3820
|
+
while (1) {
|
|
3821
|
+
switch (_context4.prev = _context4.next) {
|
|
3822
|
+
case 0:
|
|
3823
|
+
s.params = _objectSpread2(_objectSpread2({}, s.params), {}, {
|
|
3824
|
+
pageNum: pageNum,
|
|
3825
|
+
pageSize: pageSize
|
|
3826
|
+
});
|
|
3827
|
+
|
|
3828
|
+
case 1:
|
|
3829
|
+
case "end":
|
|
3830
|
+
return _context4.stop();
|
|
3831
|
+
}
|
|
3832
|
+
}
|
|
3833
|
+
}, _callee4);
|
|
3834
|
+
}));
|
|
3835
|
+
|
|
3836
|
+
return function (_x2) {
|
|
3837
|
+
return _ref4.apply(this, arguments);
|
|
3838
|
+
};
|
|
3839
|
+
}())();
|
|
3829
3840
|
};
|
|
3830
3841
|
|
|
3831
3842
|
var columns = [{
|
|
@@ -3901,89 +3912,89 @@ function validaterule(props) {
|
|
|
3901
3912
|
});
|
|
3902
3913
|
});
|
|
3903
3914
|
controller.pipeline( /*#__PURE__*/function () {
|
|
3904
|
-
var
|
|
3905
|
-
return regeneratorRuntime.wrap(function
|
|
3915
|
+
var _ref5 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee5(s) {
|
|
3916
|
+
return regeneratorRuntime.wrap(function _callee5$(_context5) {
|
|
3906
3917
|
while (1) {
|
|
3907
|
-
switch (
|
|
3918
|
+
switch (_context5.prev = _context5.next) {
|
|
3908
3919
|
case 0:
|
|
3909
3920
|
s.selectedRowKey = data;
|
|
3910
3921
|
|
|
3911
3922
|
case 1:
|
|
3912
3923
|
case "end":
|
|
3913
|
-
return
|
|
3924
|
+
return _context5.stop();
|
|
3914
3925
|
}
|
|
3915
3926
|
}
|
|
3916
|
-
},
|
|
3927
|
+
}, _callee5);
|
|
3917
3928
|
}));
|
|
3918
3929
|
|
|
3919
|
-
return function (
|
|
3920
|
-
return
|
|
3930
|
+
return function (_x3) {
|
|
3931
|
+
return _ref5.apply(this, arguments);
|
|
3921
3932
|
};
|
|
3922
3933
|
}())();
|
|
3923
3934
|
}
|
|
3924
3935
|
};
|
|
3925
3936
|
}, []);
|
|
3926
3937
|
var onSendCheck = useCallback(function (record) {
|
|
3927
|
-
_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function
|
|
3938
|
+
_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee7() {
|
|
3928
3939
|
var data;
|
|
3929
|
-
return regeneratorRuntime.wrap(function
|
|
3940
|
+
return regeneratorRuntime.wrap(function _callee7$(_context7) {
|
|
3930
3941
|
while (1) {
|
|
3931
|
-
switch (
|
|
3942
|
+
switch (_context7.prev = _context7.next) {
|
|
3932
3943
|
case 0:
|
|
3933
3944
|
data = [_objectSpread2(_objectSpread2({}, record), {}, {
|
|
3934
3945
|
privateList: [],
|
|
3935
3946
|
sendPublic: true
|
|
3936
3947
|
})];
|
|
3937
3948
|
controller.pipeline( /*#__PURE__*/function () {
|
|
3938
|
-
var
|
|
3939
|
-
return regeneratorRuntime.wrap(function
|
|
3949
|
+
var _ref7 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee6(s) {
|
|
3950
|
+
return regeneratorRuntime.wrap(function _callee6$(_context6) {
|
|
3940
3951
|
while (1) {
|
|
3941
|
-
switch (
|
|
3952
|
+
switch (_context6.prev = _context6.next) {
|
|
3942
3953
|
case 0:
|
|
3943
3954
|
s.selectedRowKey = data;
|
|
3944
3955
|
|
|
3945
3956
|
case 1:
|
|
3946
3957
|
case "end":
|
|
3947
|
-
return
|
|
3958
|
+
return _context6.stop();
|
|
3948
3959
|
}
|
|
3949
3960
|
}
|
|
3950
|
-
},
|
|
3961
|
+
}, _callee6);
|
|
3951
3962
|
}));
|
|
3952
3963
|
|
|
3953
|
-
return function (
|
|
3954
|
-
return
|
|
3964
|
+
return function (_x4) {
|
|
3965
|
+
return _ref7.apply(this, arguments);
|
|
3955
3966
|
};
|
|
3956
3967
|
}())();
|
|
3957
3968
|
handleCancel(true);
|
|
3958
3969
|
|
|
3959
3970
|
case 3:
|
|
3960
3971
|
case "end":
|
|
3961
|
-
return
|
|
3972
|
+
return _context7.stop();
|
|
3962
3973
|
}
|
|
3963
3974
|
}
|
|
3964
|
-
},
|
|
3975
|
+
}, _callee7);
|
|
3965
3976
|
}))();
|
|
3966
3977
|
}, []);
|
|
3967
3978
|
var handleCancel = useCallback(function () {
|
|
3968
3979
|
var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
|
3969
3980
|
controller.pipeline( /*#__PURE__*/function () {
|
|
3970
|
-
var
|
|
3971
|
-
return regeneratorRuntime.wrap(function
|
|
3981
|
+
var _ref8 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee8(s) {
|
|
3982
|
+
return regeneratorRuntime.wrap(function _callee8$(_context8) {
|
|
3972
3983
|
while (1) {
|
|
3973
|
-
switch (
|
|
3984
|
+
switch (_context8.prev = _context8.next) {
|
|
3974
3985
|
case 0:
|
|
3975
3986
|
s.visible = value;
|
|
3976
3987
|
|
|
3977
3988
|
case 1:
|
|
3978
3989
|
case "end":
|
|
3979
|
-
return
|
|
3990
|
+
return _context8.stop();
|
|
3980
3991
|
}
|
|
3981
3992
|
}
|
|
3982
|
-
},
|
|
3993
|
+
}, _callee8);
|
|
3983
3994
|
}));
|
|
3984
3995
|
|
|
3985
|
-
return function (
|
|
3986
|
-
return
|
|
3996
|
+
return function (_x5) {
|
|
3997
|
+
return _ref8.apply(this, arguments);
|
|
3987
3998
|
};
|
|
3988
3999
|
}())();
|
|
3989
4000
|
}, []);
|
|
@@ -4021,7 +4032,10 @@ var DocumentsListControllerState = function DocumentsListControllerState() {
|
|
|
4021
4032
|
this.type = 1;
|
|
4022
4033
|
this.selectedRowKey = [];
|
|
4023
4034
|
this.billEnum = [];
|
|
4024
|
-
this.params = {
|
|
4035
|
+
this.params = {
|
|
4036
|
+
pageSize: 10,
|
|
4037
|
+
pageNum: 1
|
|
4038
|
+
};
|
|
4025
4039
|
this.visible = false;
|
|
4026
4040
|
this.schema = void 0;
|
|
4027
4041
|
this.targetId = '';
|
|
@@ -4090,25 +4104,18 @@ function validaterule$1(props) {
|
|
|
4090
4104
|
}),
|
|
4091
4105
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
4092
4106
|
pageMeta = _useState4[0],
|
|
4093
|
-
setpageMeta = _useState4[1];
|
|
4107
|
+
setpageMeta = _useState4[1]; // const [pageParams, setpageParams] = useState<{ pageSize: number, pageNum: number, total?: number }>({ pageSize: 10, pageNum: 1, });
|
|
4094
4108
|
|
|
4095
|
-
|
|
4096
|
-
|
|
4097
|
-
pageNum: 1
|
|
4098
|
-
}),
|
|
4109
|
+
|
|
4110
|
+
var _useState5 = useState([]),
|
|
4099
4111
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
4100
|
-
|
|
4101
|
-
|
|
4112
|
+
list = _useState6[0],
|
|
4113
|
+
setList = _useState6[1];
|
|
4102
4114
|
|
|
4103
|
-
var _useState7 = useState(
|
|
4115
|
+
var _useState7 = useState({}),
|
|
4104
4116
|
_useState8 = _slicedToArray(_useState7, 2),
|
|
4105
|
-
|
|
4106
|
-
|
|
4107
|
-
|
|
4108
|
-
var _useState9 = useState({}),
|
|
4109
|
-
_useState10 = _slicedToArray(_useState9, 2),
|
|
4110
|
-
bill = _useState10[0],
|
|
4111
|
-
setConfig = _useState10[1];
|
|
4117
|
+
bill = _useState8[0],
|
|
4118
|
+
setConfig = _useState8[1];
|
|
4112
4119
|
|
|
4113
4120
|
useEffect(function () {
|
|
4114
4121
|
_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
@@ -4122,7 +4129,7 @@ function validaterule$1(props) {
|
|
|
4122
4129
|
_context.next = 2;
|
|
4123
4130
|
return (_DocumentsService$ins = DocumentsService.instance.service) === null || _DocumentsService$ins === void 0 ? void 0 : _DocumentsService$ins.call({
|
|
4124
4131
|
url: '/schema/config/querySendRecordPage',
|
|
4125
|
-
data:
|
|
4132
|
+
data: params,
|
|
4126
4133
|
type: 'post'
|
|
4127
4134
|
});
|
|
4128
4135
|
|
|
@@ -4149,7 +4156,7 @@ function validaterule$1(props) {
|
|
|
4149
4156
|
}
|
|
4150
4157
|
}, _callee);
|
|
4151
4158
|
}))();
|
|
4152
|
-
}, [params
|
|
4159
|
+
}, [params]);
|
|
4153
4160
|
useEffect(function () {
|
|
4154
4161
|
_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {
|
|
4155
4162
|
var _DocumentsService$ins2;
|
|
@@ -4210,10 +4217,30 @@ function validaterule$1(props) {
|
|
|
4210
4217
|
});
|
|
4211
4218
|
}, []);
|
|
4212
4219
|
var onPageChange = useCallback(function (pageNum, pageSize) {
|
|
4213
|
-
setpageParams({
|
|
4214
|
-
|
|
4215
|
-
|
|
4216
|
-
|
|
4220
|
+
// setpageParams({ pageNum, pageSize });
|
|
4221
|
+
controller.pipeline( /*#__PURE__*/function () {
|
|
4222
|
+
var _ref3 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3(s) {
|
|
4223
|
+
return regeneratorRuntime.wrap(function _callee3$(_context3) {
|
|
4224
|
+
while (1) {
|
|
4225
|
+
switch (_context3.prev = _context3.next) {
|
|
4226
|
+
case 0:
|
|
4227
|
+
s.params = _objectSpread2(_objectSpread2({}, s.params), {}, {
|
|
4228
|
+
pageNum: pageNum,
|
|
4229
|
+
pageSize: pageSize
|
|
4230
|
+
});
|
|
4231
|
+
|
|
4232
|
+
case 1:
|
|
4233
|
+
case "end":
|
|
4234
|
+
return _context3.stop();
|
|
4235
|
+
}
|
|
4236
|
+
}
|
|
4237
|
+
}, _callee3);
|
|
4238
|
+
}));
|
|
4239
|
+
|
|
4240
|
+
return function (_x) {
|
|
4241
|
+
return _ref3.apply(this, arguments);
|
|
4242
|
+
};
|
|
4243
|
+
}())();
|
|
4217
4244
|
}, []);
|
|
4218
4245
|
var columns = useMemo(function () {
|
|
4219
4246
|
return [{
|
|
@@ -6703,9 +6730,7 @@ function Rule$1(props) {
|
|
|
6703
6730
|
case 2:
|
|
6704
6731
|
res = _context2.sent;
|
|
6705
6732
|
|
|
6706
|
-
if (res.res)
|
|
6707
|
-
message.success('操作成功');
|
|
6708
|
-
}
|
|
6733
|
+
if (res.res) ;
|
|
6709
6734
|
|
|
6710
6735
|
case 4:
|
|
6711
6736
|
case "end":
|
|
@@ -7170,9 +7195,7 @@ function Rule$2(props) {
|
|
|
7170
7195
|
case 2:
|
|
7171
7196
|
res = _context2.sent;
|
|
7172
7197
|
|
|
7173
|
-
if (res.res)
|
|
7174
|
-
message$1.success('操作成功');
|
|
7175
|
-
}
|
|
7198
|
+
if (res.res) ;
|
|
7176
7199
|
|
|
7177
7200
|
case 4:
|
|
7178
7201
|
case "end":
|
package/dist/index.js
CHANGED
|
@@ -3301,7 +3301,8 @@ var PageHeader = (function () {
|
|
|
3301
3301
|
var onSearchFormSubmit = React__default['default'].useCallback(function (value) {
|
|
3302
3302
|
value = _objectSpread2(_objectSpread2({}, value), {}, {
|
|
3303
3303
|
typeList: value['typeList'] && [value['typeList']],
|
|
3304
|
-
pageNum: 1
|
|
3304
|
+
pageNum: 1,
|
|
3305
|
+
pageSize: 10
|
|
3305
3306
|
});
|
|
3306
3307
|
controller.pipeline( /*#__PURE__*/function () {
|
|
3307
3308
|
var _ref3 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3(s) {
|
|
@@ -3332,7 +3333,10 @@ var PageHeader = (function () {
|
|
|
3332
3333
|
switch (_context4.prev = _context4.next) {
|
|
3333
3334
|
case 0:
|
|
3334
3335
|
s.type = e.target.value;
|
|
3335
|
-
s.params = {
|
|
3336
|
+
s.params = {
|
|
3337
|
+
pageNum: 1,
|
|
3338
|
+
pageSize: 10
|
|
3339
|
+
};
|
|
3336
3340
|
history.push({
|
|
3337
3341
|
pathname: '/rulelist',
|
|
3338
3342
|
state: {
|
|
@@ -3413,11 +3417,6 @@ var PageHeader = (function () {
|
|
|
3413
3417
|
type: "string",
|
|
3414
3418
|
title: "配置名称"
|
|
3415
3419
|
},
|
|
3416
|
-
// attributionList: {
|
|
3417
|
-
// type: "string",
|
|
3418
|
-
// title: "发送对象",
|
|
3419
|
-
// visible: false
|
|
3420
|
-
// },
|
|
3421
3420
|
type: {
|
|
3422
3421
|
type: "string",
|
|
3423
3422
|
title: "单据大类",
|
|
@@ -3679,30 +3678,23 @@ function validaterule(props) {
|
|
|
3679
3678
|
}),
|
|
3680
3679
|
_useState2 = _slicedToArray(_useState, 2),
|
|
3681
3680
|
pageMeta = _useState2[0],
|
|
3682
|
-
setpageMeta = _useState2[1];
|
|
3681
|
+
setpageMeta = _useState2[1]; // const [pageParams, setpageParams] = useState<{ pageSize: number, pageNum: number, total?: number }>({ pageSize: 10, pageNum: 1 });
|
|
3683
3682
|
|
|
3684
|
-
|
|
3685
|
-
|
|
3686
|
-
pageNum: 1
|
|
3687
|
-
}),
|
|
3683
|
+
|
|
3684
|
+
var _useState3 = React.useState([]),
|
|
3688
3685
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
3689
|
-
|
|
3690
|
-
|
|
3686
|
+
list = _useState4[0],
|
|
3687
|
+
setList = _useState4[1];
|
|
3691
3688
|
|
|
3692
|
-
var _useState5 = React.useState(
|
|
3689
|
+
var _useState5 = React.useState({}),
|
|
3693
3690
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
3694
|
-
|
|
3695
|
-
|
|
3691
|
+
bill = _useState6[0],
|
|
3692
|
+
setConfig = _useState6[1];
|
|
3696
3693
|
|
|
3697
|
-
var _useState7 = React.useState(
|
|
3694
|
+
var _useState7 = React.useState([]),
|
|
3698
3695
|
_useState8 = _slicedToArray(_useState7, 2),
|
|
3699
|
-
|
|
3700
|
-
|
|
3701
|
-
|
|
3702
|
-
var _useState9 = React.useState([]),
|
|
3703
|
-
_useState10 = _slicedToArray(_useState9, 2),
|
|
3704
|
-
billEnum = _useState10[0],
|
|
3705
|
-
setBill = _useState10[1];
|
|
3696
|
+
billEnum = _useState8[0],
|
|
3697
|
+
setBill = _useState8[1];
|
|
3706
3698
|
|
|
3707
3699
|
React.useEffect(function () {
|
|
3708
3700
|
_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
@@ -3716,7 +3708,7 @@ function validaterule(props) {
|
|
|
3716
3708
|
_context.next = 2;
|
|
3717
3709
|
return (_DocumentsService$ins = DocumentsService.instance.service) === null || _DocumentsService$ins === void 0 ? void 0 : _DocumentsService$ins.call({
|
|
3718
3710
|
url: '/schema/config/queryConfigSchemaPage',
|
|
3719
|
-
data:
|
|
3711
|
+
data: params,
|
|
3720
3712
|
type: 'post'
|
|
3721
3713
|
});
|
|
3722
3714
|
|
|
@@ -3743,7 +3735,7 @@ function validaterule(props) {
|
|
|
3743
3735
|
}
|
|
3744
3736
|
}, _callee);
|
|
3745
3737
|
}))();
|
|
3746
|
-
}, [params
|
|
3738
|
+
}, [params]);
|
|
3747
3739
|
React.useEffect(function () {
|
|
3748
3740
|
_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {
|
|
3749
3741
|
var _DocumentsService$ins2;
|
|
@@ -3836,10 +3828,29 @@ function validaterule(props) {
|
|
|
3836
3828
|
}, []);
|
|
3837
3829
|
|
|
3838
3830
|
var onPageChange = function onPageChange(pageNum, pageSize) {
|
|
3839
|
-
|
|
3840
|
-
|
|
3841
|
-
|
|
3842
|
-
|
|
3831
|
+
controller.pipeline( /*#__PURE__*/function () {
|
|
3832
|
+
var _ref4 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee4(s) {
|
|
3833
|
+
return regeneratorRuntime.wrap(function _callee4$(_context4) {
|
|
3834
|
+
while (1) {
|
|
3835
|
+
switch (_context4.prev = _context4.next) {
|
|
3836
|
+
case 0:
|
|
3837
|
+
s.params = _objectSpread2(_objectSpread2({}, s.params), {}, {
|
|
3838
|
+
pageNum: pageNum,
|
|
3839
|
+
pageSize: pageSize
|
|
3840
|
+
});
|
|
3841
|
+
|
|
3842
|
+
case 1:
|
|
3843
|
+
case "end":
|
|
3844
|
+
return _context4.stop();
|
|
3845
|
+
}
|
|
3846
|
+
}
|
|
3847
|
+
}, _callee4);
|
|
3848
|
+
}));
|
|
3849
|
+
|
|
3850
|
+
return function (_x2) {
|
|
3851
|
+
return _ref4.apply(this, arguments);
|
|
3852
|
+
};
|
|
3853
|
+
}())();
|
|
3843
3854
|
};
|
|
3844
3855
|
|
|
3845
3856
|
var columns = [{
|
|
@@ -3915,89 +3926,89 @@ function validaterule(props) {
|
|
|
3915
3926
|
});
|
|
3916
3927
|
});
|
|
3917
3928
|
controller.pipeline( /*#__PURE__*/function () {
|
|
3918
|
-
var
|
|
3919
|
-
return regeneratorRuntime.wrap(function
|
|
3929
|
+
var _ref5 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee5(s) {
|
|
3930
|
+
return regeneratorRuntime.wrap(function _callee5$(_context5) {
|
|
3920
3931
|
while (1) {
|
|
3921
|
-
switch (
|
|
3932
|
+
switch (_context5.prev = _context5.next) {
|
|
3922
3933
|
case 0:
|
|
3923
3934
|
s.selectedRowKey = data;
|
|
3924
3935
|
|
|
3925
3936
|
case 1:
|
|
3926
3937
|
case "end":
|
|
3927
|
-
return
|
|
3938
|
+
return _context5.stop();
|
|
3928
3939
|
}
|
|
3929
3940
|
}
|
|
3930
|
-
},
|
|
3941
|
+
}, _callee5);
|
|
3931
3942
|
}));
|
|
3932
3943
|
|
|
3933
|
-
return function (
|
|
3934
|
-
return
|
|
3944
|
+
return function (_x3) {
|
|
3945
|
+
return _ref5.apply(this, arguments);
|
|
3935
3946
|
};
|
|
3936
3947
|
}())();
|
|
3937
3948
|
}
|
|
3938
3949
|
};
|
|
3939
3950
|
}, []);
|
|
3940
3951
|
var onSendCheck = React.useCallback(function (record) {
|
|
3941
|
-
_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function
|
|
3952
|
+
_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee7() {
|
|
3942
3953
|
var data;
|
|
3943
|
-
return regeneratorRuntime.wrap(function
|
|
3954
|
+
return regeneratorRuntime.wrap(function _callee7$(_context7) {
|
|
3944
3955
|
while (1) {
|
|
3945
|
-
switch (
|
|
3956
|
+
switch (_context7.prev = _context7.next) {
|
|
3946
3957
|
case 0:
|
|
3947
3958
|
data = [_objectSpread2(_objectSpread2({}, record), {}, {
|
|
3948
3959
|
privateList: [],
|
|
3949
3960
|
sendPublic: true
|
|
3950
3961
|
})];
|
|
3951
3962
|
controller.pipeline( /*#__PURE__*/function () {
|
|
3952
|
-
var
|
|
3953
|
-
return regeneratorRuntime.wrap(function
|
|
3963
|
+
var _ref7 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee6(s) {
|
|
3964
|
+
return regeneratorRuntime.wrap(function _callee6$(_context6) {
|
|
3954
3965
|
while (1) {
|
|
3955
|
-
switch (
|
|
3966
|
+
switch (_context6.prev = _context6.next) {
|
|
3956
3967
|
case 0:
|
|
3957
3968
|
s.selectedRowKey = data;
|
|
3958
3969
|
|
|
3959
3970
|
case 1:
|
|
3960
3971
|
case "end":
|
|
3961
|
-
return
|
|
3972
|
+
return _context6.stop();
|
|
3962
3973
|
}
|
|
3963
3974
|
}
|
|
3964
|
-
},
|
|
3975
|
+
}, _callee6);
|
|
3965
3976
|
}));
|
|
3966
3977
|
|
|
3967
|
-
return function (
|
|
3968
|
-
return
|
|
3978
|
+
return function (_x4) {
|
|
3979
|
+
return _ref7.apply(this, arguments);
|
|
3969
3980
|
};
|
|
3970
3981
|
}())();
|
|
3971
3982
|
handleCancel(true);
|
|
3972
3983
|
|
|
3973
3984
|
case 3:
|
|
3974
3985
|
case "end":
|
|
3975
|
-
return
|
|
3986
|
+
return _context7.stop();
|
|
3976
3987
|
}
|
|
3977
3988
|
}
|
|
3978
|
-
},
|
|
3989
|
+
}, _callee7);
|
|
3979
3990
|
}))();
|
|
3980
3991
|
}, []);
|
|
3981
3992
|
var handleCancel = React.useCallback(function () {
|
|
3982
3993
|
var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
|
3983
3994
|
controller.pipeline( /*#__PURE__*/function () {
|
|
3984
|
-
var
|
|
3985
|
-
return regeneratorRuntime.wrap(function
|
|
3995
|
+
var _ref8 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee8(s) {
|
|
3996
|
+
return regeneratorRuntime.wrap(function _callee8$(_context8) {
|
|
3986
3997
|
while (1) {
|
|
3987
|
-
switch (
|
|
3998
|
+
switch (_context8.prev = _context8.next) {
|
|
3988
3999
|
case 0:
|
|
3989
4000
|
s.visible = value;
|
|
3990
4001
|
|
|
3991
4002
|
case 1:
|
|
3992
4003
|
case "end":
|
|
3993
|
-
return
|
|
4004
|
+
return _context8.stop();
|
|
3994
4005
|
}
|
|
3995
4006
|
}
|
|
3996
|
-
},
|
|
4007
|
+
}, _callee8);
|
|
3997
4008
|
}));
|
|
3998
4009
|
|
|
3999
|
-
return function (
|
|
4000
|
-
return
|
|
4010
|
+
return function (_x5) {
|
|
4011
|
+
return _ref8.apply(this, arguments);
|
|
4001
4012
|
};
|
|
4002
4013
|
}())();
|
|
4003
4014
|
}, []);
|
|
@@ -4035,7 +4046,10 @@ var DocumentsListControllerState = function DocumentsListControllerState() {
|
|
|
4035
4046
|
this.type = 1;
|
|
4036
4047
|
this.selectedRowKey = [];
|
|
4037
4048
|
this.billEnum = [];
|
|
4038
|
-
this.params = {
|
|
4049
|
+
this.params = {
|
|
4050
|
+
pageSize: 10,
|
|
4051
|
+
pageNum: 1
|
|
4052
|
+
};
|
|
4039
4053
|
this.visible = false;
|
|
4040
4054
|
this.schema = void 0;
|
|
4041
4055
|
this.targetId = '';
|
|
@@ -4104,25 +4118,18 @@ function validaterule$1(props) {
|
|
|
4104
4118
|
}),
|
|
4105
4119
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
4106
4120
|
pageMeta = _useState4[0],
|
|
4107
|
-
setpageMeta = _useState4[1];
|
|
4121
|
+
setpageMeta = _useState4[1]; // const [pageParams, setpageParams] = useState<{ pageSize: number, pageNum: number, total?: number }>({ pageSize: 10, pageNum: 1, });
|
|
4108
4122
|
|
|
4109
|
-
|
|
4110
|
-
|
|
4111
|
-
pageNum: 1
|
|
4112
|
-
}),
|
|
4123
|
+
|
|
4124
|
+
var _useState5 = React.useState([]),
|
|
4113
4125
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
4114
|
-
|
|
4115
|
-
|
|
4126
|
+
list = _useState6[0],
|
|
4127
|
+
setList = _useState6[1];
|
|
4116
4128
|
|
|
4117
|
-
var _useState7 = React.useState(
|
|
4129
|
+
var _useState7 = React.useState({}),
|
|
4118
4130
|
_useState8 = _slicedToArray(_useState7, 2),
|
|
4119
|
-
|
|
4120
|
-
|
|
4121
|
-
|
|
4122
|
-
var _useState9 = React.useState({}),
|
|
4123
|
-
_useState10 = _slicedToArray(_useState9, 2),
|
|
4124
|
-
bill = _useState10[0],
|
|
4125
|
-
setConfig = _useState10[1];
|
|
4131
|
+
bill = _useState8[0],
|
|
4132
|
+
setConfig = _useState8[1];
|
|
4126
4133
|
|
|
4127
4134
|
React.useEffect(function () {
|
|
4128
4135
|
_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
@@ -4136,7 +4143,7 @@ function validaterule$1(props) {
|
|
|
4136
4143
|
_context.next = 2;
|
|
4137
4144
|
return (_DocumentsService$ins = DocumentsService.instance.service) === null || _DocumentsService$ins === void 0 ? void 0 : _DocumentsService$ins.call({
|
|
4138
4145
|
url: '/schema/config/querySendRecordPage',
|
|
4139
|
-
data:
|
|
4146
|
+
data: params,
|
|
4140
4147
|
type: 'post'
|
|
4141
4148
|
});
|
|
4142
4149
|
|
|
@@ -4163,7 +4170,7 @@ function validaterule$1(props) {
|
|
|
4163
4170
|
}
|
|
4164
4171
|
}, _callee);
|
|
4165
4172
|
}))();
|
|
4166
|
-
}, [params
|
|
4173
|
+
}, [params]);
|
|
4167
4174
|
React.useEffect(function () {
|
|
4168
4175
|
_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {
|
|
4169
4176
|
var _DocumentsService$ins2;
|
|
@@ -4224,10 +4231,30 @@ function validaterule$1(props) {
|
|
|
4224
4231
|
});
|
|
4225
4232
|
}, []);
|
|
4226
4233
|
var onPageChange = React.useCallback(function (pageNum, pageSize) {
|
|
4227
|
-
setpageParams({
|
|
4228
|
-
|
|
4229
|
-
|
|
4230
|
-
|
|
4234
|
+
// setpageParams({ pageNum, pageSize });
|
|
4235
|
+
controller.pipeline( /*#__PURE__*/function () {
|
|
4236
|
+
var _ref3 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3(s) {
|
|
4237
|
+
return regeneratorRuntime.wrap(function _callee3$(_context3) {
|
|
4238
|
+
while (1) {
|
|
4239
|
+
switch (_context3.prev = _context3.next) {
|
|
4240
|
+
case 0:
|
|
4241
|
+
s.params = _objectSpread2(_objectSpread2({}, s.params), {}, {
|
|
4242
|
+
pageNum: pageNum,
|
|
4243
|
+
pageSize: pageSize
|
|
4244
|
+
});
|
|
4245
|
+
|
|
4246
|
+
case 1:
|
|
4247
|
+
case "end":
|
|
4248
|
+
return _context3.stop();
|
|
4249
|
+
}
|
|
4250
|
+
}
|
|
4251
|
+
}, _callee3);
|
|
4252
|
+
}));
|
|
4253
|
+
|
|
4254
|
+
return function (_x) {
|
|
4255
|
+
return _ref3.apply(this, arguments);
|
|
4256
|
+
};
|
|
4257
|
+
}())();
|
|
4231
4258
|
}, []);
|
|
4232
4259
|
var columns = React.useMemo(function () {
|
|
4233
4260
|
return [{
|
|
@@ -6717,9 +6744,7 @@ function Rule$1(props) {
|
|
|
6717
6744
|
case 2:
|
|
6718
6745
|
res = _context2.sent;
|
|
6719
6746
|
|
|
6720
|
-
if (res.res)
|
|
6721
|
-
ktsComponentsAntdX4.message.success('操作成功');
|
|
6722
|
-
}
|
|
6747
|
+
if (res.res) ;
|
|
6723
6748
|
|
|
6724
6749
|
case 4:
|
|
6725
6750
|
case "end":
|
|
@@ -7184,9 +7209,7 @@ function Rule$2(props) {
|
|
|
7184
7209
|
case 2:
|
|
7185
7210
|
res = _context2.sent;
|
|
7186
7211
|
|
|
7187
|
-
if (res.res)
|
|
7188
|
-
ktsXui.message.success('操作成功');
|
|
7189
|
-
}
|
|
7212
|
+
if (res.res) ;
|
|
7190
7213
|
|
|
7191
7214
|
case 4:
|
|
7192
7215
|
case "end":
|
package/package.json
CHANGED
|
@@ -39,8 +39,8 @@ export interface IParams extends ISelectedRowKey {
|
|
|
39
39
|
pageNum?: number;
|
|
40
40
|
}
|
|
41
41
|
export interface IBillType {
|
|
42
|
-
lable:string;
|
|
43
|
-
value:string;
|
|
42
|
+
lable: string;
|
|
43
|
+
value: string;
|
|
44
44
|
}
|
|
45
45
|
export default class DocumentsListControllerState {
|
|
46
46
|
|
|
@@ -48,9 +48,9 @@ export default class DocumentsListControllerState {
|
|
|
48
48
|
type: number = 1;
|
|
49
49
|
selectedRowKey: ISelectedRowKey[] = [];
|
|
50
50
|
billEnum: IBillEnum[] = [];
|
|
51
|
-
params: IParams = {
|
|
51
|
+
params: IParams = { pageSize: 10, pageNum: 1 };
|
|
52
52
|
visible: boolean = false;
|
|
53
53
|
schema: any;
|
|
54
54
|
targetId: string = '';
|
|
55
|
-
billTypes:IBillType[]=[];
|
|
55
|
+
billTypes: IBillType[] = [];
|
|
56
56
|
}
|
|
@@ -46,7 +46,8 @@ export default () => {
|
|
|
46
46
|
value = {
|
|
47
47
|
...value,
|
|
48
48
|
typeList: value['typeList'] && [value['typeList']],
|
|
49
|
-
pageNum: 1
|
|
49
|
+
pageNum: 1,
|
|
50
|
+
pageSize: 10
|
|
50
51
|
}
|
|
51
52
|
controller.pipeline(async s => {
|
|
52
53
|
s.params = value;
|
|
@@ -56,7 +57,7 @@ export default () => {
|
|
|
56
57
|
const switchType = React.useCallback((e) => {
|
|
57
58
|
controller.pipeline(async s => {
|
|
58
59
|
s.type = e.target.value;
|
|
59
|
-
s.params = {}
|
|
60
|
+
s.params = { pageNum: 1, pageSize: 10 }
|
|
60
61
|
history.push({ pathname: '/rulelist', state: { type: e.target.value } })
|
|
61
62
|
})()
|
|
62
63
|
}, [])
|
|
@@ -82,11 +83,6 @@ export default () => {
|
|
|
82
83
|
type: "string",
|
|
83
84
|
title: "配置名称",
|
|
84
85
|
},
|
|
85
|
-
// attributionList: {
|
|
86
|
-
// type: "string",
|
|
87
|
-
// title: "发送对象",
|
|
88
|
-
// visible: false
|
|
89
|
-
// },
|
|
90
86
|
type: {
|
|
91
87
|
type: "string",
|
|
92
88
|
title: "单据大类",
|
|
@@ -13,14 +13,14 @@ export default function validaterule(props: any) {
|
|
|
13
13
|
const history = useHistory();
|
|
14
14
|
const params = controller.useMemo(s => s.params, [])
|
|
15
15
|
const [pageMeta, setpageMeta] = useState<{ pageSize: number, pageNum: number, total?: number }>({ pageSize: 10, pageNum: 1, total: 0, });
|
|
16
|
-
const [pageParams, setpageParams] = useState<{ pageSize: number, pageNum: number, total?: number }>({ pageSize: 10, pageNum: 1 });
|
|
16
|
+
// const [pageParams, setpageParams] = useState<{ pageSize: number, pageNum: number, total?: number }>({ pageSize: 10, pageNum: 1 });
|
|
17
17
|
const [list, setList] = useState([]);
|
|
18
18
|
const [bill, setConfig] = useState<{ [key: string]: string }>({});
|
|
19
19
|
const [billEnum, setBill] = useState<any[]>([]);
|
|
20
20
|
useEffect(() => {
|
|
21
21
|
(async () => {
|
|
22
22
|
const res = await DocumentsService.instance.service?.call({
|
|
23
|
-
url: '/schema/config/queryConfigSchemaPage', data:
|
|
23
|
+
url: '/schema/config/queryConfigSchemaPage', data: params, type: 'post'
|
|
24
24
|
}) as any;
|
|
25
25
|
|
|
26
26
|
if (res.err) {
|
|
@@ -31,7 +31,7 @@ export default function validaterule(props: any) {
|
|
|
31
31
|
setpageMeta(res.res.pageMeta);
|
|
32
32
|
}
|
|
33
33
|
})()
|
|
34
|
-
}, [params
|
|
34
|
+
}, [params]);
|
|
35
35
|
useEffect(() => {
|
|
36
36
|
(async () => {
|
|
37
37
|
|
|
@@ -64,7 +64,9 @@ export default function validaterule(props: any) {
|
|
|
64
64
|
})()
|
|
65
65
|
}, []);
|
|
66
66
|
const onPageChange = (pageNum: any, pageSize: any) => {
|
|
67
|
-
|
|
67
|
+
controller.pipeline(async s => {
|
|
68
|
+
s.params = { ...s.params, pageNum, pageSize };
|
|
69
|
+
})()
|
|
68
70
|
}
|
|
69
71
|
const columns = [
|
|
70
72
|
{
|
|
@@ -12,12 +12,12 @@ export default function validaterule(props: any) {
|
|
|
12
12
|
const params = controller.useMemo(s => s.params, [])
|
|
13
13
|
const [billEnum, setBill] = useState([]);
|
|
14
14
|
const [pageMeta, setpageMeta] = useState<{ pageSize: number, pageNum: number, total?: number }>({ pageSize: 10, pageNum: 1, total: 0, });
|
|
15
|
-
const [pageParams, setpageParams] = useState<{ pageSize: number, pageNum: number, total?: number }>({ pageSize: 10, pageNum: 1, });
|
|
15
|
+
// const [pageParams, setpageParams] = useState<{ pageSize: number, pageNum: number, total?: number }>({ pageSize: 10, pageNum: 1, });
|
|
16
16
|
const [list, setList] = useState([]);
|
|
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
|
}
|
|
@@ -26,7 +26,7 @@ export default function validaterule(props: any) {
|
|
|
26
26
|
setpageMeta(res.res.pageMeta);
|
|
27
27
|
}
|
|
28
28
|
})()
|
|
29
|
-
}, [params
|
|
29
|
+
}, [params]);
|
|
30
30
|
useEffect(() => {
|
|
31
31
|
(async () => {
|
|
32
32
|
const res = await DocumentsService.instance.service?.call({ url: '/schema/config/getDefaultTypeList', data: {}, type: 'get' }) as any;
|
|
@@ -51,7 +51,10 @@ export default function validaterule(props: any) {
|
|
|
51
51
|
history.push({ pathname: `/rule`, search: `?id=${id}&type=record` })
|
|
52
52
|
}, []);
|
|
53
53
|
const onPageChange = useCallback((pageNum, pageSize) => {
|
|
54
|
-
setpageParams({ pageNum, pageSize });
|
|
54
|
+
// setpageParams({ pageNum, pageSize });
|
|
55
|
+
controller.pipeline(async s => {
|
|
56
|
+
s.params = { ...s.params, pageNum, pageSize };
|
|
57
|
+
})()
|
|
55
58
|
}, []);
|
|
56
59
|
const columns = useMemo(() => [
|
|
57
60
|
{
|