kts-component-invoice-operate 3.2.55 → 3.2.56
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
|
@@ -10771,37 +10771,38 @@ function ItemCodeInput(props) {
|
|
|
10771
10771
|
while (1) {
|
|
10772
10772
|
switch (_context.prev = _context.next) {
|
|
10773
10773
|
case 0:
|
|
10774
|
-
|
|
10774
|
+
debugger;
|
|
10775
|
+
_context.prev = 1;
|
|
10775
10776
|
|
|
10776
10777
|
if (!autoComplete.onItemCodeSearch) {
|
|
10777
|
-
_context.next =
|
|
10778
|
+
_context.next = 8;
|
|
10778
10779
|
break;
|
|
10779
10780
|
}
|
|
10780
10781
|
|
|
10781
10782
|
_context.t0 = setOptions;
|
|
10782
|
-
_context.next =
|
|
10783
|
+
_context.next = 6;
|
|
10783
10784
|
return autoComplete.onItemCodeSearch(searchText, editGood === null || editGood === void 0 ? void 0 : editGood.itemName);
|
|
10784
10785
|
|
|
10785
|
-
case
|
|
10786
|
+
case 6:
|
|
10786
10787
|
_context.t1 = _context.sent;
|
|
10787
10788
|
(0, _context.t0)(_context.t1);
|
|
10788
10789
|
|
|
10789
|
-
case
|
|
10790
|
-
_context.next =
|
|
10790
|
+
case 8:
|
|
10791
|
+
_context.next = 14;
|
|
10791
10792
|
break;
|
|
10792
10793
|
|
|
10793
|
-
case
|
|
10794
|
-
_context.prev =
|
|
10795
|
-
_context.t2 = _context["catch"](
|
|
10794
|
+
case 10:
|
|
10795
|
+
_context.prev = 10;
|
|
10796
|
+
_context.t2 = _context["catch"](1);
|
|
10796
10797
|
setOptions([]);
|
|
10797
10798
|
throw _context.t2;
|
|
10798
10799
|
|
|
10799
|
-
case
|
|
10800
|
+
case 14:
|
|
10800
10801
|
case "end":
|
|
10801
10802
|
return _context.stop();
|
|
10802
10803
|
}
|
|
10803
10804
|
}
|
|
10804
|
-
}, _callee, null, [[
|
|
10805
|
+
}, _callee, null, [[1, 10]]);
|
|
10805
10806
|
}));
|
|
10806
10807
|
|
|
10807
10808
|
return function (_x) {
|
|
@@ -10815,21 +10816,22 @@ function ItemCodeInput(props) {
|
|
|
10815
10816
|
while (1) {
|
|
10816
10817
|
switch (_context2.prev = _context2.next) {
|
|
10817
10818
|
case 0:
|
|
10819
|
+
debugger;
|
|
10818
10820
|
record = options.filter(function (e) {
|
|
10819
10821
|
return e.itemCode === itemName;
|
|
10820
10822
|
})[0];
|
|
10821
10823
|
|
|
10822
10824
|
if (record) {
|
|
10823
|
-
_context2.next =
|
|
10825
|
+
_context2.next = 4;
|
|
10824
10826
|
break;
|
|
10825
10827
|
}
|
|
10826
10828
|
|
|
10827
10829
|
return _context2.abrupt("return");
|
|
10828
10830
|
|
|
10829
|
-
case
|
|
10831
|
+
case 4:
|
|
10830
10832
|
controller.importGoodsDrawer(record);
|
|
10831
10833
|
|
|
10832
|
-
case
|
|
10834
|
+
case 5:
|
|
10833
10835
|
case "end":
|
|
10834
10836
|
return _context2.stop();
|
|
10835
10837
|
}
|
|
@@ -10844,7 +10846,7 @@ function ItemCodeInput(props) {
|
|
|
10844
10846
|
return React.createElement("div", {
|
|
10845
10847
|
className: 'kts-invoice-operate-goods-list-itemCode-input'
|
|
10846
10848
|
}, React.createElement(AutoComplete$1, {
|
|
10847
|
-
|
|
10849
|
+
onSelect: onSearch,
|
|
10848
10850
|
defaultValue: props.value,
|
|
10849
10851
|
value: editGood === null || editGood === void 0 ? void 0 : editGood.itemCode,
|
|
10850
10852
|
options: options.map(function (e) {
|
|
@@ -10852,7 +10854,7 @@ function ItemCodeInput(props) {
|
|
|
10852
10854
|
value: e.itemCode
|
|
10853
10855
|
};
|
|
10854
10856
|
}),
|
|
10855
|
-
|
|
10857
|
+
onChange: onChangeAutoComplete
|
|
10856
10858
|
}, React.createElement(Input, {
|
|
10857
10859
|
style: {
|
|
10858
10860
|
height: '100%',
|
package/dist/index.js
CHANGED
|
@@ -10781,37 +10781,38 @@ function ItemCodeInput(props) {
|
|
|
10781
10781
|
while (1) {
|
|
10782
10782
|
switch (_context.prev = _context.next) {
|
|
10783
10783
|
case 0:
|
|
10784
|
-
|
|
10784
|
+
debugger;
|
|
10785
|
+
_context.prev = 1;
|
|
10785
10786
|
|
|
10786
10787
|
if (!autoComplete.onItemCodeSearch) {
|
|
10787
|
-
_context.next =
|
|
10788
|
+
_context.next = 8;
|
|
10788
10789
|
break;
|
|
10789
10790
|
}
|
|
10790
10791
|
|
|
10791
10792
|
_context.t0 = setOptions;
|
|
10792
|
-
_context.next =
|
|
10793
|
+
_context.next = 6;
|
|
10793
10794
|
return autoComplete.onItemCodeSearch(searchText, editGood === null || editGood === void 0 ? void 0 : editGood.itemName);
|
|
10794
10795
|
|
|
10795
|
-
case
|
|
10796
|
+
case 6:
|
|
10796
10797
|
_context.t1 = _context.sent;
|
|
10797
10798
|
(0, _context.t0)(_context.t1);
|
|
10798
10799
|
|
|
10799
|
-
case
|
|
10800
|
-
_context.next =
|
|
10800
|
+
case 8:
|
|
10801
|
+
_context.next = 14;
|
|
10801
10802
|
break;
|
|
10802
10803
|
|
|
10803
|
-
case
|
|
10804
|
-
_context.prev =
|
|
10805
|
-
_context.t2 = _context["catch"](
|
|
10804
|
+
case 10:
|
|
10805
|
+
_context.prev = 10;
|
|
10806
|
+
_context.t2 = _context["catch"](1);
|
|
10806
10807
|
setOptions([]);
|
|
10807
10808
|
throw _context.t2;
|
|
10808
10809
|
|
|
10809
|
-
case
|
|
10810
|
+
case 14:
|
|
10810
10811
|
case "end":
|
|
10811
10812
|
return _context.stop();
|
|
10812
10813
|
}
|
|
10813
10814
|
}
|
|
10814
|
-
}, _callee, null, [[
|
|
10815
|
+
}, _callee, null, [[1, 10]]);
|
|
10815
10816
|
}));
|
|
10816
10817
|
|
|
10817
10818
|
return function (_x) {
|
|
@@ -10825,21 +10826,22 @@ function ItemCodeInput(props) {
|
|
|
10825
10826
|
while (1) {
|
|
10826
10827
|
switch (_context2.prev = _context2.next) {
|
|
10827
10828
|
case 0:
|
|
10829
|
+
debugger;
|
|
10828
10830
|
record = options.filter(function (e) {
|
|
10829
10831
|
return e.itemCode === itemName;
|
|
10830
10832
|
})[0];
|
|
10831
10833
|
|
|
10832
10834
|
if (record) {
|
|
10833
|
-
_context2.next =
|
|
10835
|
+
_context2.next = 4;
|
|
10834
10836
|
break;
|
|
10835
10837
|
}
|
|
10836
10838
|
|
|
10837
10839
|
return _context2.abrupt("return");
|
|
10838
10840
|
|
|
10839
|
-
case
|
|
10841
|
+
case 4:
|
|
10840
10842
|
controller.importGoodsDrawer(record);
|
|
10841
10843
|
|
|
10842
|
-
case
|
|
10844
|
+
case 5:
|
|
10843
10845
|
case "end":
|
|
10844
10846
|
return _context2.stop();
|
|
10845
10847
|
}
|
|
@@ -10854,7 +10856,7 @@ function ItemCodeInput(props) {
|
|
|
10854
10856
|
return React__default['default'].createElement("div", {
|
|
10855
10857
|
className: 'kts-invoice-operate-goods-list-itemCode-input'
|
|
10856
10858
|
}, React__default['default'].createElement(ktsXui.AutoComplete, {
|
|
10857
|
-
|
|
10859
|
+
onSelect: onSearch,
|
|
10858
10860
|
defaultValue: props.value,
|
|
10859
10861
|
value: editGood === null || editGood === void 0 ? void 0 : editGood.itemCode,
|
|
10860
10862
|
options: options.map(function (e) {
|
|
@@ -10862,7 +10864,7 @@ function ItemCodeInput(props) {
|
|
|
10862
10864
|
value: e.itemCode
|
|
10863
10865
|
};
|
|
10864
10866
|
}),
|
|
10865
|
-
|
|
10867
|
+
onChange: onChangeAutoComplete
|
|
10866
10868
|
}, React__default['default'].createElement(ktsComponentsAntdX3.Input, {
|
|
10867
10869
|
style: {
|
|
10868
10870
|
height: '100%',
|
package/package.json
CHANGED
|
@@ -66,6 +66,7 @@ class MyController1 extends Invoice.InvoiceController {
|
|
|
66
66
|
this.state.model = 'default'
|
|
67
67
|
this.state.goodsListState.isMergeDetails = true;
|
|
68
68
|
this.state.goodsListState.drag.isStart = true;
|
|
69
|
+
this.state.goodsListState.columnshide = [];
|
|
69
70
|
}
|
|
70
71
|
|
|
71
72
|
getTaxCategoryCodeList = this.pipeline(async (s) => {
|
|
@@ -92,6 +93,7 @@ class MyController2 extends Invoice.InvoiceController {
|
|
|
92
93
|
this.state.model = 'prefab'
|
|
93
94
|
this.state.goodsListState.isMergeDetails = true;
|
|
94
95
|
this.state.goodsListState.drag.isStart = true;
|
|
96
|
+
this.state.goodsListState.columnshide = [];
|
|
95
97
|
}
|
|
96
98
|
|
|
97
99
|
getTaxCategoryCodeList = this.pipeline(async (s) => {
|
|
@@ -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))
|
|
@@ -32,6 +33,7 @@ export default function ItemCodeInput(props: { onChange?: (e: ChangeEvent<HTMLIn
|
|
|
32
33
|
}, [autoComplete.onItemCodeSearch, editGood])
|
|
33
34
|
|
|
34
35
|
const onChangeAutoComplete = React.useCallback(async itemName => {
|
|
36
|
+
debugger
|
|
35
37
|
const record = options.filter(e => e.itemCode === itemName)[0] as any;
|
|
36
38
|
if (!record) return;
|
|
37
39
|
|
|
@@ -40,7 +42,7 @@ export default function ItemCodeInput(props: { onChange?: (e: ChangeEvent<HTMLIn
|
|
|
40
42
|
|
|
41
43
|
return (
|
|
42
44
|
<div className='kts-invoice-operate-goods-list-itemCode-input'>
|
|
43
|
-
<AutoComplete
|
|
45
|
+
<AutoComplete onSelect={onSearch} defaultValue={props.value} value={editGood?.itemCode} options={options.map(e => ({ value: e.itemCode }))} onChange={onChangeAutoComplete} >
|
|
44
46
|
<Input style={{ height: '100%', border: 'none' }} value={props.value} onChange={onChange} />
|
|
45
47
|
</AutoComplete>
|
|
46
48
|
</div>
|