kts-components-document-access-point 1.1.12 → 1.1.17

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.
@@ -25,4 +25,5 @@ export interface IPageMeta {
25
25
  total?: number;
26
26
  }
27
27
  export interface IParams extends IFilter, IPageMeta {
28
+ type?: string | number;
28
29
  }
package/dist/index.esm.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import React, { createElement, useState, useEffect, useCallback, useMemo, useRef, createContext } from 'react';
2
- import { Breadcrumb as Breadcrumb$1, Button, Select, Input, Form, Drawer, Space, Radio, Switch, Table, Popconfirm, Tooltip, DatePicker, Collapse, Divider, message, Menu, ConfigProvider, PageHeader as PageHeader$1, Card, Row, Col, Modal as Modal$1 } from 'kts-components-antd-x4';
2
+ import { Breadcrumb as Breadcrumb$1, Button, Select, Input, Form, Drawer, Space, Radio, Switch, Table, Popconfirm, Tooltip, DatePicker, Collapse, message, Divider, Menu, ConfigProvider, PageHeader as PageHeader$1, Card, Row, Col, Modal as Modal$1 } from 'kts-components-antd-x4';
3
3
  import GreyReactBox from 'grey-react-box';
4
4
  import { v4 } from 'uuid';
5
5
  import Icon, { InfoCircleOutlined } from '@ant-design/icons';
@@ -655,7 +655,8 @@ var editProperties = /*#__PURE__*/(function () {
655
655
  return _context.abrupt("return");
656
656
 
657
657
  case 2:
658
- editProperties = options.editProperties, properties = options.properties, current = options.current; // 对象数据
658
+ editProperties = options.editProperties, properties = options.properties, current = options.current;
659
+ debugger; // 对象数据
659
660
 
660
661
  current.properties[properties.$name].alias = properties.title;
661
662
  current.properties[properties.$name].detailed = properties.description; // 修改了类型 清空规则
@@ -696,11 +697,13 @@ var editProperties = /*#__PURE__*/(function () {
696
697
  title: properties.items.title,
697
698
  properties: pro
698
699
  });
700
+ } else {
701
+ delete s.schema.definitions[editProperties.ref.$name]['items'];
699
702
  }
700
703
 
701
704
  s.schema = _objectSpread2({}, s.schema);
702
705
 
703
- case 12:
706
+ case 13:
704
707
  case "end":
705
708
  return _context.stop();
706
709
  }
@@ -730,17 +733,22 @@ var delProperties = /*#__PURE__*/(function () {
730
733
  return _context.abrupt("return");
731
734
 
732
735
  case 2:
733
- properties = ((_s$propertyTableState = s.propertyTableState.current) === null || _s$propertyTableState === void 0 ? void 0 : _s$propertyTableState.items) ? (_s$propertyTableState2 = s.propertyTableState.current) === null || _s$propertyTableState2 === void 0 ? void 0 : _s$propertyTableState2.items.properties : (_s$propertyTableState3 = s.propertyTableState.current) === null || _s$propertyTableState3 === void 0 ? void 0 : _s$propertyTableState3.properties;
736
+ properties = ((_s$propertyTableState = s.propertyTableState.current) === null || _s$propertyTableState === void 0 ? void 0 : _s$propertyTableState.items) ? (_s$propertyTableState2 = s.propertyTableState.current) === null || _s$propertyTableState2 === void 0 ? void 0 : _s$propertyTableState2.items.properties : (_s$propertyTableState3 = s.propertyTableState.current) === null || _s$propertyTableState3 === void 0 ? void 0 : _s$propertyTableState3.properties; // 删除必填
737
+
738
+ options.required = options.required.filter(function (e) {
739
+ return e !== options.value.$name;
740
+ }); // 删除引用
734
741
 
735
742
  if (properties) {
736
- _context.next = 5;
743
+ _context.next = 6;
737
744
  break;
738
745
  }
739
746
 
740
747
  return _context.abrupt("return");
741
748
 
742
- case 5:
743
- delete properties[options.value.$name];
749
+ case 6:
750
+ delete properties[options.value.$name]; // 删除对象
751
+
744
752
  s.schema.definitions[options.value.$refName].$count--;
745
753
 
746
754
  if (s.schema.definitions[options.value.$refName].$count <= 0) {
@@ -749,7 +757,7 @@ var delProperties = /*#__PURE__*/(function () {
749
757
 
750
758
  s.schema = _objectSpread2({}, s.schema);
751
759
 
752
- case 9:
760
+ case 10:
753
761
  case "end":
754
762
  return _context.stop();
755
763
  }
@@ -862,6 +870,7 @@ var Breadcrumb = (function () {
862
870
  };
863
871
  }())();
864
872
  }, []);
873
+ if (breadcrumbState.length === 0) return /*#__PURE__*/React.createElement("span", null);
865
874
  return /*#__PURE__*/React.createElement(Breadcrumb$1, {
866
875
  separator: ">"
867
876
  }, /*#__PURE__*/React.createElement(Breadcrumb$1.Item, {
@@ -1190,6 +1199,7 @@ var propertyColumns = [{
1190
1199
  }
1191
1200
  }, {
1192
1201
  title: '是否必填',
1202
+ width: 80,
1193
1203
  render: function render(_, v) {
1194
1204
  return /*#__PURE__*/React.createElement(MySpan, null, v.required.indexOf(v.value.$name) >= 0 ? '是' : '否');
1195
1205
  }
@@ -1201,6 +1211,7 @@ var propertyColumns = [{
1201
1211
  }, {
1202
1212
  title: '是否已添加校验规则',
1203
1213
  key: 'isRules',
1214
+ width: 130,
1204
1215
  render: function render(_, v) {
1205
1216
  return /*#__PURE__*/React.createElement(MySpan, null, v.ref.rules ? v.ref.rules.length > 0 ? '是' : '否' : '否');
1206
1217
  }
@@ -1408,7 +1419,7 @@ function styleInject(css, ref) {
1408
1419
  }
1409
1420
  }
1410
1421
 
1411
- var css_248z = ".kts-documents-edit-property-table-button-list .ktsAntX-btn-link {\n padding: 4px;\n}\n";
1422
+ var css_248z = ".kts-documents-edit-property-table-button-list .ktsAntX-btn-link {\n padding: 4px !important;\n}\n";
1412
1423
  styleInject(css_248z);
1413
1424
 
1414
1425
  var useTableProps = (function () {
@@ -1467,7 +1478,7 @@ var PropertyTable = (function () {
1467
1478
  rowKey: "$name",
1468
1479
  pagination: false,
1469
1480
  scroll: {
1470
- y: 240,
1481
+ y: '100%',
1471
1482
  x: true
1472
1483
  }
1473
1484
  }, useTableProps()));
@@ -1692,11 +1703,13 @@ var EditProperty = (function () {
1692
1703
  label: "\u7C7B\u578B",
1693
1704
  initialValue: "string",
1694
1705
  hasFeedback: true,
1695
- help: isChangeType ? "修改类型后,系统将自动清空被字段的校验规则。" : undefined,
1706
+ help: isChangeType ? "修改类型后,系统将自动清空该字段的校验规则。" : undefined,
1696
1707
  validateStatus: isChangeType ? "warning" : ''
1697
1708
  }, /*#__PURE__*/React.createElement(Select, {
1698
- onSelect: function onSelect() {
1699
- setIsChangeType(true);
1709
+ onChange: function onChange(e) {
1710
+ var _editProperties$ref$t;
1711
+
1712
+ setIsChangeType(e !== getType((_editProperties$ref$t = editProperties === null || editProperties === void 0 ? void 0 : editProperties.ref.type) !== null && _editProperties$ref$t !== void 0 ? _editProperties$ref$t : ''));
1700
1713
  }
1701
1714
  }, /*#__PURE__*/React.createElement(Option$1, {
1702
1715
  key: "00",
@@ -2303,7 +2316,7 @@ var EditRule = (function () {
2303
2316
  }())();
2304
2317
  }, [controller]);
2305
2318
  var onSubmit = React.useCallback( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3() {
2306
- var formList, sum, i;
2319
+ var formList, sum, i, ms;
2307
2320
  return regeneratorRuntime.wrap(function _callee3$(_context3) {
2308
2321
  while (1) {
2309
2322
  switch (_context3.prev = _context3.next) {
@@ -2318,8 +2331,8 @@ var EditRule = (function () {
2318
2331
  case 2:
2319
2332
  formList = controller.state.ruleState.formList;
2320
2333
  sum = [];
2321
- _context3.prev = 4;
2322
2334
  i = 0;
2335
+ _context3.prev = 5;
2323
2336
 
2324
2337
  case 6:
2325
2338
  if (!(i < formList.length)) {
@@ -2379,20 +2392,25 @@ var EditRule = (function () {
2379
2392
  }())();
2380
2393
 
2381
2394
  case 21:
2382
- _context3.next = 26;
2395
+ _context3.next = 28;
2383
2396
  break;
2384
2397
 
2385
2398
  case 23:
2386
2399
  _context3.prev = 23;
2387
- _context3.t6 = _context3["catch"](4);
2388
- console.error('===> 表单有错', _context3.t6);
2400
+ _context3.t6 = _context3["catch"](5);
2401
+ ms = "[\u89C4\u5219".concat(i + 1, "] ").concat(_context3.t6.errorFields[0].errors[0]);
2402
+ message.error({
2403
+ key: ms,
2404
+ content: ms
2405
+ });
2406
+ console.error('===> 表单有错', _context3.t6.errorFields[0].errors[0], i);
2389
2407
 
2390
- case 26:
2408
+ case 28:
2391
2409
  case "end":
2392
2410
  return _context3.stop();
2393
2411
  }
2394
2412
  }
2395
- }, _callee3, null, [[4, 23]]);
2413
+ }, _callee3, null, [[5, 23]]);
2396
2414
  })), [controller, operatorMap, ruleProperties]);
2397
2415
  return /*#__PURE__*/React.createElement(Drawer, {
2398
2416
  title: "\u7F16\u8F91\u9A8C\u8BC1\u89C4\u5219",
@@ -2469,7 +2487,7 @@ function algorithmFormat(operator, operatorMap, type) {
2469
2487
  return operator;
2470
2488
  }
2471
2489
 
2472
- var css_248z$2 = ".kts-documents-edit .kts-documents-edit-head {\n display: flex;\n margin-bottom: 10px;\n}\n.kts-documents-edit .kts-documents-edit-head .ktsAntX-space-item:first-child {\n flex: 1;\n}\n";
2490
+ var css_248z$2 = ".kts-documents-edit {\n min-height: 600px;\n height: 100%;\n display: flex;\n flex-direction: column;\n}\n.kts-documents-edit .kts-documents-edit-head {\n display: flex;\n margin-bottom: 10px;\n}\n.kts-documents-edit .kts-documents-edit-head .ktsAntX-space-item:first-child {\n flex: 1;\n}\n.kts-documents-edit .kts-documents-edit-property {\n flex: 1;\n overflow: auto;\n}\n.kts-documents-edit .kts-documents-edit-property .ktsAntX-table,\n.kts-documents-edit .kts-documents-edit-property .ktsAntX-spin-container,\n.kts-documents-edit .kts-documents-edit-property .ktsAntX-spin-nested-loading,\n.kts-documents-edit .kts-documents-edit-property .ktsAntX-table-wrapper {\n height: 100%;\n overflow: auto;\n}\n.kts-documents-edit .kts-documents-edit-property .ktsAntX-table-container {\n height: 100%;\n overflow: auto;\n display: flex;\n flex-direction: column;\n}\n.kts-documents-edit .kts-documents-edit-property .ktsAntX-table-container .ktsAntX-table-header {\n flex: none;\n}\n.kts-documents-edit .kts-documents-edit-property .ktsAntX-table-container .ktsAntX-table-body {\n flex: 1;\n overflow: auto;\n}\n";
2473
2491
  styleInject(css_248z$2);
2474
2492
 
2475
2493
  /** 发票组件的上下文 */
@@ -2927,7 +2945,7 @@ var PageHeader = (function () {
2927
2945
  while (1) {
2928
2946
  switch (_context4.prev = _context4.next) {
2929
2947
  case 0:
2930
- s.visible = true;
2948
+ s.visible = false;
2931
2949
 
2932
2950
  case 1:
2933
2951
  case "end":
@@ -3485,7 +3503,7 @@ function validaterule(props) {
3485
3503
  res = _context7.sent;
3486
3504
 
3487
3505
  if (res.res) {
3488
- _handleCancel(true);
3506
+ handleCancel(true);
3489
3507
  }
3490
3508
 
3491
3509
  case 6:
@@ -3496,8 +3514,7 @@ function validaterule(props) {
3496
3514
  }, _callee7);
3497
3515
  }))();
3498
3516
  }, []);
3499
-
3500
- var _handleCancel = useCallback(function () {
3517
+ var handleCancel = useCallback(function () {
3501
3518
  var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
3502
3519
  controller.pipeline( /*#__PURE__*/function () {
3503
3520
  var _ref8 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee8(s) {
@@ -3520,7 +3537,6 @@ function validaterule(props) {
3520
3537
  };
3521
3538
  }())();
3522
3539
  }, []);
3523
-
3524
3540
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(AutoTableContainer, {
3525
3541
  style: {
3526
3542
  flex: 1,
@@ -3545,11 +3561,6 @@ function validaterule(props) {
3545
3561
  pageSize: pageMeta.pageSize,
3546
3562
  current: pageMeta.pageNum,
3547
3563
  showSizeChanger: true
3548
- }), visible && /*#__PURE__*/React.createElement(modalcomfirm, {
3549
- handleCancel: function handleCancel() {
3550
- _handleCancel(false);
3551
- },
3552
- list: selectedRowKey
3553
3564
  }));
3554
3565
  }
3555
3566
 
@@ -3813,18 +3824,14 @@ function validaterule$1(props) {
3813
3824
  render: function render(text) {
3814
3825
  return attributionEnum[text];
3815
3826
  }
3816
- }, {
3817
- title: '发送对象',
3818
- dataIndex: 'sender',
3819
- render: function render(text, record) {
3820
- return /*#__PURE__*/React.createElement("a", {
3821
- className: "tabel-action",
3822
- onClick: function onClick() {
3823
- onCompanyList(record);
3824
- }
3825
- }, "\u67E5\u770B");
3826
- }
3827
- }, {
3827
+ }, // {
3828
+ // title: '发送对象',
3829
+ // dataIndex: 'sender',
3830
+ // render: (text: any, record: any) => {
3831
+ // return <a className="tabel-action" onClick={() => { onCompanyList(record); }}>查看</a>
3832
+ // }
3833
+ // },
3834
+ {
3828
3835
  title: '创建时间',
3829
3836
  dataIndex: 'createAt',
3830
3837
  render: function render(text) {
@@ -4117,7 +4124,6 @@ function Rule(props) {
4117
4124
  var queryType = search && search.billtype;
4118
4125
  var profile = search && search.profile;
4119
4126
  var disabled = type === 'record' ? true : false;
4120
- console.log(search);
4121
4127
  useEffect(function () {
4122
4128
  var target = billEnum.find(function (item) {
4123
4129
  return item.value === queryType;
@@ -4133,6 +4139,10 @@ function Rule(props) {
4133
4139
  setProfile(list);
4134
4140
  }
4135
4141
  }, [billEnum]);
4142
+ /**
4143
+ * 获取schema
4144
+ */
4145
+
4136
4146
  useEffect(function () {
4137
4147
  _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
4138
4148
  var _DocumentsService$ins;
@@ -6314,6 +6324,7 @@ function modalcomfirm$1(props) {
6314
6324
  switch (_context2.prev = _context2.next) {
6315
6325
  case 0:
6316
6326
  values = _objectSpread2(_objectSpread2({}, values), {}, {
6327
+ type: listNature,
6317
6328
  companyDidNote: companyDidNote
6318
6329
  });
6319
6330
 
@@ -6638,8 +6649,10 @@ function modalcomfirm$2(props) {
6638
6649
  var rowSelection = useMemo(function () {
6639
6650
  return {
6640
6651
  onChange: function onChange(selectedRowKeys, rows) {
6641
- rows = _objectSpread2(_objectSpread2({}, rows), {}, {
6642
- type: listNature
6652
+ rows = rows && rows.map(function (item) {
6653
+ return _objectSpread2(_objectSpread2({}, item), {}, {
6654
+ type: listNature
6655
+ });
6643
6656
  });
6644
6657
  setKey(rows);
6645
6658
  }
@@ -6669,28 +6682,32 @@ function modalcomfirm$2(props) {
6669
6682
  }, []);
6670
6683
  var onSubmit = useCallback(function () {
6671
6684
  _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3() {
6672
- var res;
6685
+ var res, data;
6673
6686
  return regeneratorRuntime.wrap(function _callee3$(_context3) {
6674
6687
  while (1) {
6675
6688
  switch (_context3.prev = _context3.next) {
6676
6689
  case 0:
6677
- _context3.next = 2;
6678
- return controller.addWhite(selectedRowKeys);
6690
+ console.log(selectedRowKeys);
6691
+ return _context3.abrupt("return", false);
6679
6692
 
6680
- case 2:
6693
+ case 4:
6681
6694
  res = _context3.sent;
6682
6695
 
6683
6696
  if (res.res) {
6697
+ data = _objectSpread2(_objectSpread2({}, params), {}, {
6698
+ type: listNature
6699
+ });
6700
+
6684
6701
  if (listNature === '1') {
6685
- controller.getWhitelist(params);
6702
+ controller.getWhitelist(data);
6686
6703
  } else {
6687
- controller.getBlacklist(params);
6704
+ controller.getBlacklist(data);
6688
6705
  }
6689
6706
  }
6690
6707
 
6691
6708
  handleCancel();
6692
6709
 
6693
- case 5:
6710
+ case 7:
6694
6711
  case "end":
6695
6712
  return _context3.stop();
6696
6713
  }
package/dist/index.js CHANGED
@@ -669,7 +669,8 @@ var editProperties = /*#__PURE__*/(function () {
669
669
  return _context.abrupt("return");
670
670
 
671
671
  case 2:
672
- editProperties = options.editProperties, properties = options.properties, current = options.current; // 对象数据
672
+ editProperties = options.editProperties, properties = options.properties, current = options.current;
673
+ debugger; // 对象数据
673
674
 
674
675
  current.properties[properties.$name].alias = properties.title;
675
676
  current.properties[properties.$name].detailed = properties.description; // 修改了类型 清空规则
@@ -710,11 +711,13 @@ var editProperties = /*#__PURE__*/(function () {
710
711
  title: properties.items.title,
711
712
  properties: pro
712
713
  });
714
+ } else {
715
+ delete s.schema.definitions[editProperties.ref.$name]['items'];
713
716
  }
714
717
 
715
718
  s.schema = _objectSpread2({}, s.schema);
716
719
 
717
- case 12:
720
+ case 13:
718
721
  case "end":
719
722
  return _context.stop();
720
723
  }
@@ -744,17 +747,22 @@ var delProperties = /*#__PURE__*/(function () {
744
747
  return _context.abrupt("return");
745
748
 
746
749
  case 2:
747
- properties = ((_s$propertyTableState = s.propertyTableState.current) === null || _s$propertyTableState === void 0 ? void 0 : _s$propertyTableState.items) ? (_s$propertyTableState2 = s.propertyTableState.current) === null || _s$propertyTableState2 === void 0 ? void 0 : _s$propertyTableState2.items.properties : (_s$propertyTableState3 = s.propertyTableState.current) === null || _s$propertyTableState3 === void 0 ? void 0 : _s$propertyTableState3.properties;
750
+ properties = ((_s$propertyTableState = s.propertyTableState.current) === null || _s$propertyTableState === void 0 ? void 0 : _s$propertyTableState.items) ? (_s$propertyTableState2 = s.propertyTableState.current) === null || _s$propertyTableState2 === void 0 ? void 0 : _s$propertyTableState2.items.properties : (_s$propertyTableState3 = s.propertyTableState.current) === null || _s$propertyTableState3 === void 0 ? void 0 : _s$propertyTableState3.properties; // 删除必填
751
+
752
+ options.required = options.required.filter(function (e) {
753
+ return e !== options.value.$name;
754
+ }); // 删除引用
748
755
 
749
756
  if (properties) {
750
- _context.next = 5;
757
+ _context.next = 6;
751
758
  break;
752
759
  }
753
760
 
754
761
  return _context.abrupt("return");
755
762
 
756
- case 5:
757
- delete properties[options.value.$name];
763
+ case 6:
764
+ delete properties[options.value.$name]; // 删除对象
765
+
758
766
  s.schema.definitions[options.value.$refName].$count--;
759
767
 
760
768
  if (s.schema.definitions[options.value.$refName].$count <= 0) {
@@ -763,7 +771,7 @@ var delProperties = /*#__PURE__*/(function () {
763
771
 
764
772
  s.schema = _objectSpread2({}, s.schema);
765
773
 
766
- case 9:
774
+ case 10:
767
775
  case "end":
768
776
  return _context.stop();
769
777
  }
@@ -876,6 +884,7 @@ var Breadcrumb = (function () {
876
884
  };
877
885
  }())();
878
886
  }, []);
887
+ if (breadcrumbState.length === 0) return /*#__PURE__*/React__default['default'].createElement("span", null);
879
888
  return /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX4.Breadcrumb, {
880
889
  separator: ">"
881
890
  }, /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX4.Breadcrumb.Item, {
@@ -1204,6 +1213,7 @@ var propertyColumns = [{
1204
1213
  }
1205
1214
  }, {
1206
1215
  title: '是否必填',
1216
+ width: 80,
1207
1217
  render: function render(_, v) {
1208
1218
  return /*#__PURE__*/React__default['default'].createElement(MySpan, null, v.required.indexOf(v.value.$name) >= 0 ? '是' : '否');
1209
1219
  }
@@ -1215,6 +1225,7 @@ var propertyColumns = [{
1215
1225
  }, {
1216
1226
  title: '是否已添加校验规则',
1217
1227
  key: 'isRules',
1228
+ width: 130,
1218
1229
  render: function render(_, v) {
1219
1230
  return /*#__PURE__*/React__default['default'].createElement(MySpan, null, v.ref.rules ? v.ref.rules.length > 0 ? '是' : '否' : '否');
1220
1231
  }
@@ -1422,7 +1433,7 @@ function styleInject(css, ref) {
1422
1433
  }
1423
1434
  }
1424
1435
 
1425
- var css_248z = ".kts-documents-edit-property-table-button-list .ktsAntX-btn-link {\n padding: 4px;\n}\n";
1436
+ var css_248z = ".kts-documents-edit-property-table-button-list .ktsAntX-btn-link {\n padding: 4px !important;\n}\n";
1426
1437
  styleInject(css_248z);
1427
1438
 
1428
1439
  var useTableProps = (function () {
@@ -1481,7 +1492,7 @@ var PropertyTable = (function () {
1481
1492
  rowKey: "$name",
1482
1493
  pagination: false,
1483
1494
  scroll: {
1484
- y: 240,
1495
+ y: '100%',
1485
1496
  x: true
1486
1497
  }
1487
1498
  }, useTableProps()));
@@ -1706,11 +1717,13 @@ var EditProperty = (function () {
1706
1717
  label: "\u7C7B\u578B",
1707
1718
  initialValue: "string",
1708
1719
  hasFeedback: true,
1709
- help: isChangeType ? "修改类型后,系统将自动清空被字段的校验规则。" : undefined,
1720
+ help: isChangeType ? "修改类型后,系统将自动清空该字段的校验规则。" : undefined,
1710
1721
  validateStatus: isChangeType ? "warning" : ''
1711
1722
  }, /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX4.Select, {
1712
- onSelect: function onSelect() {
1713
- setIsChangeType(true);
1723
+ onChange: function onChange(e) {
1724
+ var _editProperties$ref$t;
1725
+
1726
+ setIsChangeType(e !== getType((_editProperties$ref$t = editProperties === null || editProperties === void 0 ? void 0 : editProperties.ref.type) !== null && _editProperties$ref$t !== void 0 ? _editProperties$ref$t : ''));
1714
1727
  }
1715
1728
  }, /*#__PURE__*/React__default['default'].createElement(Option$1, {
1716
1729
  key: "00",
@@ -2317,7 +2330,7 @@ var EditRule = (function () {
2317
2330
  }())();
2318
2331
  }, [controller]);
2319
2332
  var onSubmit = React__default['default'].useCallback( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3() {
2320
- var formList, sum, i;
2333
+ var formList, sum, i, ms;
2321
2334
  return regeneratorRuntime.wrap(function _callee3$(_context3) {
2322
2335
  while (1) {
2323
2336
  switch (_context3.prev = _context3.next) {
@@ -2332,8 +2345,8 @@ var EditRule = (function () {
2332
2345
  case 2:
2333
2346
  formList = controller.state.ruleState.formList;
2334
2347
  sum = [];
2335
- _context3.prev = 4;
2336
2348
  i = 0;
2349
+ _context3.prev = 5;
2337
2350
 
2338
2351
  case 6:
2339
2352
  if (!(i < formList.length)) {
@@ -2393,20 +2406,25 @@ var EditRule = (function () {
2393
2406
  }())();
2394
2407
 
2395
2408
  case 21:
2396
- _context3.next = 26;
2409
+ _context3.next = 28;
2397
2410
  break;
2398
2411
 
2399
2412
  case 23:
2400
2413
  _context3.prev = 23;
2401
- _context3.t6 = _context3["catch"](4);
2402
- console.error('===> 表单有错', _context3.t6);
2414
+ _context3.t6 = _context3["catch"](5);
2415
+ ms = "[\u89C4\u5219".concat(i + 1, "] ").concat(_context3.t6.errorFields[0].errors[0]);
2416
+ ktsComponentsAntdX4.message.error({
2417
+ key: ms,
2418
+ content: ms
2419
+ });
2420
+ console.error('===> 表单有错', _context3.t6.errorFields[0].errors[0], i);
2403
2421
 
2404
- case 26:
2422
+ case 28:
2405
2423
  case "end":
2406
2424
  return _context3.stop();
2407
2425
  }
2408
2426
  }
2409
- }, _callee3, null, [[4, 23]]);
2427
+ }, _callee3, null, [[5, 23]]);
2410
2428
  })), [controller, operatorMap, ruleProperties]);
2411
2429
  return /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX4.Drawer, {
2412
2430
  title: "\u7F16\u8F91\u9A8C\u8BC1\u89C4\u5219",
@@ -2483,7 +2501,7 @@ function algorithmFormat(operator, operatorMap, type) {
2483
2501
  return operator;
2484
2502
  }
2485
2503
 
2486
- var css_248z$2 = ".kts-documents-edit .kts-documents-edit-head {\n display: flex;\n margin-bottom: 10px;\n}\n.kts-documents-edit .kts-documents-edit-head .ktsAntX-space-item:first-child {\n flex: 1;\n}\n";
2504
+ var css_248z$2 = ".kts-documents-edit {\n min-height: 600px;\n height: 100%;\n display: flex;\n flex-direction: column;\n}\n.kts-documents-edit .kts-documents-edit-head {\n display: flex;\n margin-bottom: 10px;\n}\n.kts-documents-edit .kts-documents-edit-head .ktsAntX-space-item:first-child {\n flex: 1;\n}\n.kts-documents-edit .kts-documents-edit-property {\n flex: 1;\n overflow: auto;\n}\n.kts-documents-edit .kts-documents-edit-property .ktsAntX-table,\n.kts-documents-edit .kts-documents-edit-property .ktsAntX-spin-container,\n.kts-documents-edit .kts-documents-edit-property .ktsAntX-spin-nested-loading,\n.kts-documents-edit .kts-documents-edit-property .ktsAntX-table-wrapper {\n height: 100%;\n overflow: auto;\n}\n.kts-documents-edit .kts-documents-edit-property .ktsAntX-table-container {\n height: 100%;\n overflow: auto;\n display: flex;\n flex-direction: column;\n}\n.kts-documents-edit .kts-documents-edit-property .ktsAntX-table-container .ktsAntX-table-header {\n flex: none;\n}\n.kts-documents-edit .kts-documents-edit-property .ktsAntX-table-container .ktsAntX-table-body {\n flex: 1;\n overflow: auto;\n}\n";
2487
2505
  styleInject(css_248z$2);
2488
2506
 
2489
2507
  /** 发票组件的上下文 */
@@ -2941,7 +2959,7 @@ var PageHeader = (function () {
2941
2959
  while (1) {
2942
2960
  switch (_context4.prev = _context4.next) {
2943
2961
  case 0:
2944
- s.visible = true;
2962
+ s.visible = false;
2945
2963
 
2946
2964
  case 1:
2947
2965
  case "end":
@@ -3499,7 +3517,7 @@ function validaterule(props) {
3499
3517
  res = _context7.sent;
3500
3518
 
3501
3519
  if (res.res) {
3502
- _handleCancel(true);
3520
+ handleCancel(true);
3503
3521
  }
3504
3522
 
3505
3523
  case 6:
@@ -3510,8 +3528,7 @@ function validaterule(props) {
3510
3528
  }, _callee7);
3511
3529
  }))();
3512
3530
  }, []);
3513
-
3514
- var _handleCancel = React.useCallback(function () {
3531
+ var handleCancel = React.useCallback(function () {
3515
3532
  var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
3516
3533
  controller.pipeline( /*#__PURE__*/function () {
3517
3534
  var _ref8 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee8(s) {
@@ -3534,7 +3551,6 @@ function validaterule(props) {
3534
3551
  };
3535
3552
  }())();
3536
3553
  }, []);
3537
-
3538
3554
  return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(ktsXui.AutoTableContainer, {
3539
3555
  style: {
3540
3556
  flex: 1,
@@ -3559,11 +3575,6 @@ function validaterule(props) {
3559
3575
  pageSize: pageMeta.pageSize,
3560
3576
  current: pageMeta.pageNum,
3561
3577
  showSizeChanger: true
3562
- }), visible && /*#__PURE__*/React__default['default'].createElement(modalcomfirm, {
3563
- handleCancel: function handleCancel() {
3564
- _handleCancel(false);
3565
- },
3566
- list: selectedRowKey
3567
3578
  }));
3568
3579
  }
3569
3580
 
@@ -3827,18 +3838,14 @@ function validaterule$1(props) {
3827
3838
  render: function render(text) {
3828
3839
  return attributionEnum[text];
3829
3840
  }
3830
- }, {
3831
- title: '发送对象',
3832
- dataIndex: 'sender',
3833
- render: function render(text, record) {
3834
- return /*#__PURE__*/React__default['default'].createElement("a", {
3835
- className: "tabel-action",
3836
- onClick: function onClick() {
3837
- onCompanyList(record);
3838
- }
3839
- }, "\u67E5\u770B");
3840
- }
3841
- }, {
3841
+ }, // {
3842
+ // title: '发送对象',
3843
+ // dataIndex: 'sender',
3844
+ // render: (text: any, record: any) => {
3845
+ // return <a className="tabel-action" onClick={() => { onCompanyList(record); }}>查看</a>
3846
+ // }
3847
+ // },
3848
+ {
3842
3849
  title: '创建时间',
3843
3850
  dataIndex: 'createAt',
3844
3851
  render: function render(text) {
@@ -4131,7 +4138,6 @@ function Rule(props) {
4131
4138
  var queryType = search && search.billtype;
4132
4139
  var profile = search && search.profile;
4133
4140
  var disabled = type === 'record' ? true : false;
4134
- console.log(search);
4135
4141
  React.useEffect(function () {
4136
4142
  var target = billEnum.find(function (item) {
4137
4143
  return item.value === queryType;
@@ -4147,6 +4153,10 @@ function Rule(props) {
4147
4153
  setProfile(list);
4148
4154
  }
4149
4155
  }, [billEnum]);
4156
+ /**
4157
+ * 获取schema
4158
+ */
4159
+
4150
4160
  React.useEffect(function () {
4151
4161
  _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
4152
4162
  var _DocumentsService$ins;
@@ -6328,6 +6338,7 @@ function modalcomfirm$1(props) {
6328
6338
  switch (_context2.prev = _context2.next) {
6329
6339
  case 0:
6330
6340
  values = _objectSpread2(_objectSpread2({}, values), {}, {
6341
+ type: listNature,
6331
6342
  companyDidNote: companyDidNote
6332
6343
  });
6333
6344
 
@@ -6652,8 +6663,10 @@ function modalcomfirm$2(props) {
6652
6663
  var rowSelection = React.useMemo(function () {
6653
6664
  return {
6654
6665
  onChange: function onChange(selectedRowKeys, rows) {
6655
- rows = _objectSpread2(_objectSpread2({}, rows), {}, {
6656
- type: listNature
6666
+ rows = rows && rows.map(function (item) {
6667
+ return _objectSpread2(_objectSpread2({}, item), {}, {
6668
+ type: listNature
6669
+ });
6657
6670
  });
6658
6671
  setKey(rows);
6659
6672
  }
@@ -6683,28 +6696,32 @@ function modalcomfirm$2(props) {
6683
6696
  }, []);
6684
6697
  var onSubmit = React.useCallback(function () {
6685
6698
  _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3() {
6686
- var res;
6699
+ var res, data;
6687
6700
  return regeneratorRuntime.wrap(function _callee3$(_context3) {
6688
6701
  while (1) {
6689
6702
  switch (_context3.prev = _context3.next) {
6690
6703
  case 0:
6691
- _context3.next = 2;
6692
- return controller.addWhite(selectedRowKeys);
6704
+ console.log(selectedRowKeys);
6705
+ return _context3.abrupt("return", false);
6693
6706
 
6694
- case 2:
6707
+ case 4:
6695
6708
  res = _context3.sent;
6696
6709
 
6697
6710
  if (res.res) {
6711
+ data = _objectSpread2(_objectSpread2({}, params), {}, {
6712
+ type: listNature
6713
+ });
6714
+
6698
6715
  if (listNature === '1') {
6699
- controller.getWhitelist(params);
6716
+ controller.getWhitelist(data);
6700
6717
  } else {
6701
- controller.getBlacklist(params);
6718
+ controller.getBlacklist(data);
6702
6719
  }
6703
6720
  }
6704
6721
 
6705
6722
  handleCancel();
6706
6723
 
6707
- case 5:
6724
+ case 7:
6708
6725
  case "end":
6709
6726
  return _context3.stop();
6710
6727
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kts-components-document-access-point",
3
- "version": "1.1.12",
3
+ "version": "1.1.17",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "start": "dumi dev",
@@ -25,5 +25,5 @@ export interface IPageMeta {
25
25
  total?: number
26
26
  }
27
27
  export interface IParams extends IFilter, IPageMeta {
28
-
28
+ type?: string | number;
29
29
  }
@@ -82,10 +82,13 @@ export default function modalcomfirm(props: any) {
82
82
  const rowSelection = useMemo(() => {
83
83
  return {
84
84
  onChange: (selectedRowKeys: any, rows: any) => {
85
- rows = {
86
- ...rows,
87
- type: listNature
88
- }
85
+
86
+ rows = rows && rows.map((item: any) => {
87
+ return {
88
+ ...item,
89
+ type: listNature
90
+ }
91
+ })
89
92
  setKey(rows)
90
93
  }
91
94
  }
@@ -97,12 +100,18 @@ export default function modalcomfirm(props: any) {
97
100
  }, [])
98
101
  const onSubmit = useCallback(() => {
99
102
  (async () => {
103
+ console.log(selectedRowKeys);
104
+ return false
100
105
  const res = await controller.addWhite(selectedRowKeys) as any;
101
106
  if (res.res) {
107
+ const data = {
108
+ ...params,
109
+ type: listNature
110
+ }
102
111
  if (listNature === '1') {
103
- controller.getWhitelist(params);
112
+ controller.getWhitelist(data);
104
113
  } else {
105
- controller.getBlacklist(params);
114
+ controller.getBlacklist(data);
106
115
  }
107
116
  }
108
117
  handleCancel();
@@ -35,6 +35,7 @@ export default function modalcomfirm(props: any) {
35
35
  (async () => {
36
36
  values = {
37
37
  ...values,
38
+ type:listNature,
38
39
  companyDidNote
39
40
  }
40
41
  let res;
@@ -3,14 +3,19 @@ import DocumentsEditControllerState, { IDataSource } from '../../DocumentsEditCo
3
3
 
4
4
  export default async (s: DocumentsEditControllerState, options?: IDataSource) => {
5
5
  if (!options) return;
6
+
7
+ const properties = s.propertyTableState.current?.items
8
+ ? s.propertyTableState.current?.items.properties
9
+ : s.propertyTableState.current?.properties
6
10
 
7
- const properties = s.propertyTableState.current?.items
8
- ? s.propertyTableState.current?.items.properties
9
- : s.propertyTableState.current?.properties
11
+ // 删除必填
12
+ options.required = options.required.filter(e => e !== options.value.$name);
10
13
 
14
+ // 删除引用
11
15
  if (!properties) return;
12
16
  delete properties[options.value.$name];
13
17
 
18
+ // 删除对象
14
19
  s.schema.definitions[options.value.$refName].$count--;
15
20
  if (s.schema.definitions[options.value.$refName].$count <= 0) {
16
21
  delete s.schema.definitions[options.value.$refName];
@@ -7,6 +7,8 @@ export default async (s: DocumentsEditControllerState, options: any) => {
7
7
 
8
8
  const { editProperties, properties, current } = options;
9
9
 
10
+ debugger;
11
+
10
12
  // 对象数据
11
13
  current.properties[properties.$name].alias = properties.title;
12
14
  current.properties[properties.$name].detailed = properties.description;
@@ -29,7 +31,7 @@ export default async (s: DocumentsEditControllerState, options: any) => {
29
31
  return editProperties.ref.properties;
30
32
  }
31
33
  })()
32
-
34
+
33
35
  // 设置数据
34
36
  s.schema.definitions[editProperties.ref.$name] = {
35
37
  ...editProperties.ref,
@@ -47,6 +49,8 @@ export default async (s: DocumentsEditControllerState, options: any) => {
47
49
  title: properties.items.title,
48
50
  properties: pro,
49
51
  }
52
+ } else {
53
+ delete s.schema.definitions[editProperties.ref.$name]['items']
50
54
  }
51
55
 
52
56
  s.schema = { ...s.schema };
@@ -2,5 +2,9 @@ import React from 'react';
2
2
  import { DocumentsEdit } from '../../../';
3
3
 
4
4
  export default () => {
5
- return <DocumentsEdit />;
5
+ return (
6
+ <div style={{ height: 800 }} >
7
+ <DocumentsEdit />
8
+ </div>
9
+ );
6
10
  };
@@ -8,19 +8,19 @@ const { createSchema } = DocumentsEdit;
8
8
 
9
9
  export default () => {
10
10
 
11
- const [schema, setScheme] = React.useState(createSchema('对账单'));
11
+ const [schema, setScheme] = React.useState<any>();
12
12
 
13
13
  const onChange = React.useCallback((schema: ISchema) => {
14
- console.log(schema);
14
+ console.log('===> onChange', schema);
15
15
  }, [])
16
16
 
17
17
  return (
18
18
  <div>
19
19
  <Button onClick={() => { setScheme(createSchema('对账单')) }} >更新文档</Button>
20
- <DocumentsEdit
21
- schema={schema} // 初始化文档
22
- onChange={onChange} // 文档变化事件
23
- />
20
+ {schema && <DocumentsEdit
21
+ schema={schema} // 初始化文档
22
+ onChange={onChange} // 文档变化事件
23
+ />}
24
24
  </div>
25
25
  );
26
26
  };
@@ -25,6 +25,7 @@ const propertyColumns: ColumnType<any>[] = [
25
25
  },
26
26
  {
27
27
  title: '是否必填',
28
+ width: 80,
28
29
  render: (_, v) => {
29
30
  return <MySpan>{v.required.indexOf(v.value.$name) >= 0 ? '是' : '否'}</MySpan>;
30
31
  },
@@ -38,6 +39,7 @@ const propertyColumns: ColumnType<any>[] = [
38
39
  {
39
40
  title: '是否已添加校验规则',
40
41
  key: 'isRules',
42
+ width: 130,
41
43
  render: (_, v) => {
42
44
  return <MySpan>{v.ref.rules ? v.ref.rules.length > 0 ? '是' : '否' : '否'}</MySpan>;
43
45
  },
@@ -1,4 +1,10 @@
1
1
  .kts-documents-edit {
2
+
3
+ min-height: 600px;
4
+ height: 100%;
5
+ display: flex;
6
+ flex-direction: column;
7
+
2
8
  .kts-documents-edit-head {
3
9
  display: flex;
4
10
  margin-bottom: 10px;
@@ -7,4 +13,33 @@
7
13
  flex: 1;
8
14
  }
9
15
  }
16
+
17
+ .kts-documents-edit-property {
18
+ flex: 1;
19
+ overflow: auto;
20
+
21
+ .ktsAntX-table,
22
+ .ktsAntX-spin-container,
23
+ .ktsAntX-spin-nested-loading,
24
+ .ktsAntX-table-wrapper{
25
+ height: 100%;
26
+ overflow: auto;
27
+ }
28
+
29
+ .ktsAntX-table-container{
30
+ height: 100%;
31
+ overflow: auto;
32
+ display: flex;
33
+ flex-direction: column;
34
+
35
+ .ktsAntX-table-header{
36
+ flex: none;
37
+ }
38
+
39
+ .ktsAntX-table-body{
40
+ flex: 1;
41
+ overflow: auto;
42
+ }
43
+ }
44
+ }
10
45
  }
@@ -101,7 +101,7 @@ const Main = (props: IDocumentsEdit) => {
101
101
 
102
102
  return (
103
103
  <DocumentsEditContext.Provider value={controller}>
104
- <div className="kts-documents-edit">
104
+ <div className="kts-documents-edit" >
105
105
  <Space className="kts-documents-edit-head">
106
106
  <Breadcrumb />
107
107
  <AddPropertyButton />
@@ -1,14 +1,14 @@
1
1
  import React from 'react';
2
2
  import { Breadcrumb, Button } from 'kts-components-antd-x4';
3
3
  import DocumentsEdit from '../../';
4
- import IProperties from '../../DocumentsEditController/DocumentsEditControllerState/IProperties';
4
+ // import IProperties from '../../DocumentsEditController/DocumentsEditControllerState/IProperties';
5
5
  import { IDataSource } from '../../../DocumentsEdit/DocumentsEditController/DocumentsEditControllerState';
6
6
 
7
7
  export default () => {
8
8
 
9
9
  const controller = DocumentsEdit.useDocumentsEditController();
10
10
 
11
- const title = controller.useMemo(s=>s.schema.title, [])
11
+ const title = controller.useMemo(s => s.schema.title, [])
12
12
 
13
13
  const breadcrumbState = controller.useMemo(s => s.breadcrumbState, []);
14
14
 
@@ -30,6 +30,8 @@ export default () => {
30
30
  })()
31
31
  }, [])
32
32
 
33
+ if (breadcrumbState.length === 0) return <span></span>;
34
+
33
35
  return (
34
36
  <Breadcrumb separator=">">
35
37
  <Breadcrumb.Item key="root" >
@@ -159,10 +159,10 @@ export default () => {
159
159
  label="类型"
160
160
  initialValue="string"
161
161
  hasFeedback
162
- help={isChangeType ? "修改类型后,系统将自动清空被字段的校验规则。" : undefined}
162
+ help={isChangeType ? "修改类型后,系统将自动清空该字段的校验规则。" : undefined}
163
163
  validateStatus={isChangeType ? "warning" : ''}
164
164
  >
165
- <Select onSelect={() => { setIsChangeType(true) }} >
165
+ <Select onChange={e => { setIsChangeType(e !== tools.getType(editProperties?.ref.type ?? '')) }} >
166
166
  <Option key="00" value="string">{tools.getTypeName('string')}</Option>
167
167
  <Option key="01" value="string|date">{tools.getTypeName('string|date')}</Option>
168
168
  <Option key="02" value="string|time">{tools.getTypeName('string|time')}</Option>
@@ -5,6 +5,7 @@ import {
5
5
  Drawer,
6
6
  Space,
7
7
  Divider,
8
+ message,
8
9
  } from 'kts-components-antd-x4';
9
10
  import DocumentsEdit from '../../';
10
11
  import AddRuleButton from './ui/AddRuleButton';
@@ -30,7 +31,7 @@ export default () => {
30
31
 
31
32
  /** 正在编辑规则的字段 */
32
33
  const rules = controller.useMemo(s => s.ruleState.ruleProperties?.ref?.rules ?? [], []);
33
-
34
+
34
35
  const onClose = React.useCallback(() => { controller.pipeline(async s => s.ruleState.ruleProperties = undefined)() }, [controller]);
35
36
 
36
37
  const onSubmit = React.useCallback(async () => {
@@ -38,8 +39,9 @@ export default () => {
38
39
 
39
40
  const formList = controller.state.ruleState.formList;
40
41
  const sum: any[] = [];
42
+ let i = 0
41
43
  try {
42
- for (let i = 0; i < formList.length; i++) {
44
+ for (; i < formList.length; i++) {
43
45
  sum.push(algorithmFormat(await formList[i].validateFields(), operatorMap, ruleProperties.ref.type))
44
46
  }
45
47
  await controller.pipeline(async s => {
@@ -48,8 +50,10 @@ export default () => {
48
50
  s.schema = { ...s.schema };
49
51
  s.ruleState.ruleProperties = undefined;
50
52
  })()
51
- } catch (error) {
52
- console.error('===> 表单有错', error)
53
+ } catch (error: any) {
54
+ const ms = `[规则${i + 1}] ${error.errorFields[0].errors[0]}`
55
+ message.error({ key: ms, content: ms });
56
+ console.error('===> 表单有错', error.errorFields[0].errors[0], i);
53
57
  }
54
58
  }, [controller, operatorMap, ruleProperties])
55
59
 
@@ -1,5 +1,5 @@
1
1
  .kts-documents-edit-property-table-button-list{
2
2
  .ktsAntX-btn-link{
3
- padding: 4px;
3
+ padding: 4px !important;
4
4
  }
5
5
  }
@@ -11,7 +11,7 @@ export default () => {
11
11
  size="small"
12
12
  rowKey="$name"
13
13
  pagination={false}
14
- scroll={{ y: 240, x: true }}
14
+ scroll={{ y: '100%', x: true }}
15
15
  {...useTableProps()}
16
16
  />
17
17
  );
@@ -51,7 +51,7 @@ export default () => {
51
51
  }, [])
52
52
  const handleCancel = React.useCallback(() => {
53
53
  controller.pipeline(async s => {
54
- s.visible = true;
54
+ s.visible = false;
55
55
  })()
56
56
  }, []);
57
57
  const batchSend = React.useCallback(() => {
@@ -168,8 +168,8 @@ export default function validaterule(props: any) {
168
168
  </AutoTableContainer>
169
169
  {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} />}
170
170
  {/* {pageMeta && <PageUI data={pageMeta} onChange={onPageChange} />} */}
171
- {
171
+ {/* {
172
172
  visible && <ModalComfirm handleCancel={() => { handleCancel(false); }} list={selectedRowKey} />
173
- }
173
+ } */}
174
174
  </>);
175
175
  }
@@ -96,13 +96,13 @@ export default function validaterule(props: any) {
96
96
  dataIndex: 'attribution',
97
97
  render: (text: any) => attributionEnum[text]
98
98
  },
99
- {
100
- title: '发送对象',
101
- dataIndex: 'sender',
102
- render: (text: any, record: any) => {
103
- return <a className="tabel-action" onClick={() => { onCompanyList(record); }}>查看</a>
104
- }
105
- },
99
+ // {
100
+ // title: '发送对象',
101
+ // dataIndex: 'sender',
102
+ // render: (text: any, record: any) => {
103
+ // return <a className="tabel-action" onClick={() => { onCompanyList(record); }}>查看</a>
104
+ // }
105
+ // },
106
106
  {
107
107
  title: '创建时间',
108
108
  dataIndex: 'createAt',
@@ -23,7 +23,6 @@ export default function Rule(props: any) {
23
23
  const queryType = search && search.billtype;
24
24
  const profile = search && search.profile;
25
25
  const disabled = type === 'record' ? true : false;
26
- console.log(search)
27
26
  useEffect(() => {
28
27
  const target: any = billEnum.find((item: any) => item.value === queryType);
29
28
  if (target) {
@@ -36,6 +35,9 @@ export default function Rule(props: any) {
36
35
  setProfile(list);
37
36
  }
38
37
  }, [billEnum]);
38
+ /**
39
+ * 获取schema
40
+ */
39
41
  useEffect(() => {
40
42
  (async () => {
41
43
  if (!id) {