kts-component-invoice-operate 3.2.41 → 3.2.43
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 +10 -7
- package/dist/index.js +10 -7
- package/package.json +1 -1
- package/src/Invoice/InvoiceController/fns/mergeDetails.ts +1 -0
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/ItemNameInput/index.tsx +1 -1
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/ItemNameInput/index.tsx +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -1792,25 +1792,28 @@ function _mergeDetails() {
|
|
|
1792
1792
|
return state.goodsListState.selectedGoodIndex.indexOf(e.$index) < 0;
|
|
1793
1793
|
});
|
|
1794
1794
|
state.goodsListState.goodsList.splice(p, 0, sum);
|
|
1795
|
+
state.goodsListState.goodsList = state.goodsListState.goodsList.filter(function (e) {
|
|
1796
|
+
return e.lineAmountExcludeTax !== 0;
|
|
1797
|
+
});
|
|
1795
1798
|
state.goodsListState.goodsMap = new Map();
|
|
1796
1799
|
state.goodsListState.goodsList.forEach(function (e) {
|
|
1797
1800
|
state.goodsListState.goodsMap.set(e.$index, e);
|
|
1798
1801
|
});
|
|
1799
1802
|
state.goodsListState.selectedGoodIndex = [];
|
|
1800
|
-
_context.next =
|
|
1803
|
+
_context.next = 40;
|
|
1801
1804
|
break;
|
|
1802
1805
|
|
|
1803
|
-
case
|
|
1804
|
-
_context.prev =
|
|
1806
|
+
case 37:
|
|
1807
|
+
_context.prev = 37;
|
|
1805
1808
|
_context.t0 = _context["catch"](5);
|
|
1806
1809
|
showError(_context.t0);
|
|
1807
1810
|
|
|
1808
|
-
case
|
|
1811
|
+
case 40:
|
|
1809
1812
|
case "end":
|
|
1810
1813
|
return _context.stop();
|
|
1811
1814
|
}
|
|
1812
1815
|
}
|
|
1813
|
-
}, _callee, null, [[5,
|
|
1816
|
+
}, _callee, null, [[5, 37]]);
|
|
1814
1817
|
}));
|
|
1815
1818
|
return _mergeDetails.apply(this, arguments);
|
|
1816
1819
|
}
|
|
@@ -10635,7 +10638,7 @@ function ItemNameInput(props) {
|
|
|
10635
10638
|
value: e.itemName
|
|
10636
10639
|
};
|
|
10637
10640
|
}),
|
|
10638
|
-
|
|
10641
|
+
onSelect: onChangeAutoComplete
|
|
10639
10642
|
}, React.createElement(Input, {
|
|
10640
10643
|
style: {
|
|
10641
10644
|
height: '100%',
|
|
@@ -16830,7 +16833,7 @@ function ItemNameInput$1(props) {
|
|
|
16830
16833
|
value: e.itemName
|
|
16831
16834
|
};
|
|
16832
16835
|
}),
|
|
16833
|
-
|
|
16836
|
+
onSelect: onChangeAutoComplete
|
|
16834
16837
|
}, React.createElement(Input$1, {
|
|
16835
16838
|
style: {
|
|
16836
16839
|
height: '100%'
|
package/dist/index.js
CHANGED
|
@@ -1802,25 +1802,28 @@ function _mergeDetails() {
|
|
|
1802
1802
|
return state.goodsListState.selectedGoodIndex.indexOf(e.$index) < 0;
|
|
1803
1803
|
});
|
|
1804
1804
|
state.goodsListState.goodsList.splice(p, 0, sum);
|
|
1805
|
+
state.goodsListState.goodsList = state.goodsListState.goodsList.filter(function (e) {
|
|
1806
|
+
return e.lineAmountExcludeTax !== 0;
|
|
1807
|
+
});
|
|
1805
1808
|
state.goodsListState.goodsMap = new Map();
|
|
1806
1809
|
state.goodsListState.goodsList.forEach(function (e) {
|
|
1807
1810
|
state.goodsListState.goodsMap.set(e.$index, e);
|
|
1808
1811
|
});
|
|
1809
1812
|
state.goodsListState.selectedGoodIndex = [];
|
|
1810
|
-
_context.next =
|
|
1813
|
+
_context.next = 40;
|
|
1811
1814
|
break;
|
|
1812
1815
|
|
|
1813
|
-
case
|
|
1814
|
-
_context.prev =
|
|
1816
|
+
case 37:
|
|
1817
|
+
_context.prev = 37;
|
|
1815
1818
|
_context.t0 = _context["catch"](5);
|
|
1816
1819
|
showError(_context.t0);
|
|
1817
1820
|
|
|
1818
|
-
case
|
|
1821
|
+
case 40:
|
|
1819
1822
|
case "end":
|
|
1820
1823
|
return _context.stop();
|
|
1821
1824
|
}
|
|
1822
1825
|
}
|
|
1823
|
-
}, _callee, null, [[5,
|
|
1826
|
+
}, _callee, null, [[5, 37]]);
|
|
1824
1827
|
}));
|
|
1825
1828
|
return _mergeDetails.apply(this, arguments);
|
|
1826
1829
|
}
|
|
@@ -10645,7 +10648,7 @@ function ItemNameInput(props) {
|
|
|
10645
10648
|
value: e.itemName
|
|
10646
10649
|
};
|
|
10647
10650
|
}),
|
|
10648
|
-
|
|
10651
|
+
onSelect: onChangeAutoComplete
|
|
10649
10652
|
}, React__default['default'].createElement(ktsComponentsAntdX3.Input, {
|
|
10650
10653
|
style: {
|
|
10651
10654
|
height: '100%',
|
|
@@ -16840,7 +16843,7 @@ function ItemNameInput$1(props) {
|
|
|
16840
16843
|
value: e.itemName
|
|
16841
16844
|
};
|
|
16842
16845
|
}),
|
|
16843
|
-
|
|
16846
|
+
onSelect: onChangeAutoComplete
|
|
16844
16847
|
}, React__default['default'].createElement(ktsXui.Input, {
|
|
16845
16848
|
style: {
|
|
16846
16849
|
height: '100%'
|
package/package.json
CHANGED
|
@@ -43,6 +43,7 @@ export default async function mergeDetails(state: InvoiceControllerState) {
|
|
|
43
43
|
const p = state.goodsListState.goodsList.indexOf(goodsList[0]);
|
|
44
44
|
state.goodsListState.goodsList = state.goodsListState.goodsList.filter(e => state.goodsListState.selectedGoodIndex.indexOf(e.$index) < 0);
|
|
45
45
|
state.goodsListState.goodsList.splice(p, 0, sum);
|
|
46
|
+
state.goodsListState.goodsList = state.goodsListState.goodsList.filter(e => e.lineAmountExcludeTax !== 0);
|
|
46
47
|
state.goodsListState.goodsMap = new Map();
|
|
47
48
|
state.goodsListState.goodsList.forEach(e => { state.goodsListState.goodsMap.set(e.$index, e) });
|
|
48
49
|
state.goodsListState.selectedGoodIndex = [];
|
|
@@ -99,7 +99,7 @@ export default function ItemNameInput(props: { onChange?: (e: ChangeEvent<HTMLIn
|
|
|
99
99
|
return (
|
|
100
100
|
<div className='kts-invoice-operate-goods-list-itemName-input'>
|
|
101
101
|
{props.shorthand && <span style={{ alignSelf: 'center', fontSize: 12 }} >*{props.shorthand}*</span>}
|
|
102
|
-
<AutoComplete onSearch={onSearch} value={props.value} options={options.map(e => ({ value: e.itemName }))}
|
|
102
|
+
<AutoComplete onSearch={onSearch} value={props.value} options={options.map(e => ({ value: e.itemName }))} onSelect={onChangeAutoComplete} >
|
|
103
103
|
<Input style={{ height: '100%', border: 'none' }} onChange={onChange} />
|
|
104
104
|
</AutoComplete>
|
|
105
105
|
</div>
|
|
@@ -42,7 +42,7 @@ export default function ItemNameInput(props: {
|
|
|
42
42
|
return (
|
|
43
43
|
<div className='kts-invoice-operate-goods-list-itemName-input'>
|
|
44
44
|
{props.shorthand && <span style={{ alignSelf: 'center', fontSize: 12 }} >*{props.shorthand}*</span>}
|
|
45
|
-
<AutoComplete onSearch={onSearch} value={props.value} options={options.map(e => ({ value: e.itemName }))}
|
|
45
|
+
<AutoComplete onSearch={onSearch} value={props.value} options={options.map(e => ({ value: e.itemName }))} onSelect={onChangeAutoComplete} >
|
|
46
46
|
<Input style={{ height: '100%' }} onChange={onChange} suffix={props.suffix} />
|
|
47
47
|
</AutoComplete>
|
|
48
48
|
</div>
|