kts-component-invoice-operate 3.2.57 → 3.2.58

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 CHANGED
@@ -10766,37 +10766,38 @@ function ItemCodeInput(props) {
10766
10766
  while (1) {
10767
10767
  switch (_context.prev = _context.next) {
10768
10768
  case 0:
10769
- _context.prev = 0;
10769
+ debugger;
10770
+ _context.prev = 1;
10770
10771
 
10771
10772
  if (!autoComplete.onItemCodeSearch) {
10772
- _context.next = 7;
10773
+ _context.next = 8;
10773
10774
  break;
10774
10775
  }
10775
10776
 
10776
10777
  _context.t0 = setOptions;
10777
- _context.next = 5;
10778
+ _context.next = 6;
10778
10779
  return autoComplete.onItemCodeSearch(searchText, editGood === null || editGood === void 0 ? void 0 : editGood.itemName);
10779
10780
 
10780
- case 5:
10781
+ case 6:
10781
10782
  _context.t1 = _context.sent;
10782
10783
  (0, _context.t0)(_context.t1);
10783
10784
 
10784
- case 7:
10785
- _context.next = 13;
10785
+ case 8:
10786
+ _context.next = 14;
10786
10787
  break;
10787
10788
 
10788
- case 9:
10789
- _context.prev = 9;
10790
- _context.t2 = _context["catch"](0);
10789
+ case 10:
10790
+ _context.prev = 10;
10791
+ _context.t2 = _context["catch"](1);
10791
10792
  setOptions([]);
10792
10793
  throw _context.t2;
10793
10794
 
10794
- case 13:
10795
+ case 14:
10795
10796
  case "end":
10796
10797
  return _context.stop();
10797
10798
  }
10798
10799
  }
10799
- }, _callee, null, [[0, 9]]);
10800
+ }, _callee, null, [[1, 10]]);
10800
10801
  }));
10801
10802
 
10802
10803
  return function (_x) {
@@ -10822,9 +10823,10 @@ function ItemCodeInput(props) {
10822
10823
  return _context2.abrupt("return");
10823
10824
 
10824
10825
  case 3:
10826
+ debugger;
10825
10827
  controller.importGoodsDrawer(record);
10826
10828
 
10827
- case 4:
10829
+ case 5:
10828
10830
  case "end":
10829
10831
  return _context2.stop();
10830
10832
  }
package/dist/index.js CHANGED
@@ -10776,37 +10776,38 @@ function ItemCodeInput(props) {
10776
10776
  while (1) {
10777
10777
  switch (_context.prev = _context.next) {
10778
10778
  case 0:
10779
- _context.prev = 0;
10779
+ debugger;
10780
+ _context.prev = 1;
10780
10781
 
10781
10782
  if (!autoComplete.onItemCodeSearch) {
10782
- _context.next = 7;
10783
+ _context.next = 8;
10783
10784
  break;
10784
10785
  }
10785
10786
 
10786
10787
  _context.t0 = setOptions;
10787
- _context.next = 5;
10788
+ _context.next = 6;
10788
10789
  return autoComplete.onItemCodeSearch(searchText, editGood === null || editGood === void 0 ? void 0 : editGood.itemName);
10789
10790
 
10790
- case 5:
10791
+ case 6:
10791
10792
  _context.t1 = _context.sent;
10792
10793
  (0, _context.t0)(_context.t1);
10793
10794
 
10794
- case 7:
10795
- _context.next = 13;
10795
+ case 8:
10796
+ _context.next = 14;
10796
10797
  break;
10797
10798
 
10798
- case 9:
10799
- _context.prev = 9;
10800
- _context.t2 = _context["catch"](0);
10799
+ case 10:
10800
+ _context.prev = 10;
10801
+ _context.t2 = _context["catch"](1);
10801
10802
  setOptions([]);
10802
10803
  throw _context.t2;
10803
10804
 
10804
- case 13:
10805
+ case 14:
10805
10806
  case "end":
10806
10807
  return _context.stop();
10807
10808
  }
10808
10809
  }
10809
- }, _callee, null, [[0, 9]]);
10810
+ }, _callee, null, [[1, 10]]);
10810
10811
  }));
10811
10812
 
10812
10813
  return function (_x) {
@@ -10832,9 +10833,10 @@ function ItemCodeInput(props) {
10832
10833
  return _context2.abrupt("return");
10833
10834
 
10834
10835
  case 3:
10836
+ debugger;
10835
10837
  controller.importGoodsDrawer(record);
10836
10838
 
10837
- case 4:
10839
+ case 5:
10838
10840
  case "end":
10839
10841
  return _context2.stop();
10840
10842
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kts-component-invoice-operate",
3
- "version": "3.2.57",
3
+ "version": "3.2.58",
4
4
  "scripts": {
5
5
  "start": "dumi dev",
6
6
  "docs:build": "dumi build",
@@ -21,6 +21,7 @@ export default function ItemCodeInput(props: { onChange?: (e: ChangeEvent<HTMLIn
21
21
  }, [])
22
22
 
23
23
  const onSearch = React.useCallback(async (searchText: string) => {
24
+ debugger;
24
25
  try {
25
26
  if (autoComplete.onItemCodeSearch) {
26
27
  setOptions(await autoComplete.onItemCodeSearch(searchText, editGood?.itemName))
@@ -34,7 +35,7 @@ export default function ItemCodeInput(props: { onChange?: (e: ChangeEvent<HTMLIn
34
35
  const onChangeAutoComplete = React.useCallback(async itemName => {
35
36
  const record = options.filter(e => e.itemCode === itemName)[0] as any;
36
37
  if (!record) return;
37
-
38
+ debugger;
38
39
  controller.importGoodsDrawer(record);
39
40
  }, [options, controller])
40
41