kts-component-invoice-operate 3.2.115 → 3.2.117

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kts-component-invoice-operate",
3
- "version": "3.2.115",
3
+ "version": "3.2.117",
4
4
  "scripts": {
5
5
  "dev": "dumi dev",
6
6
  "start": "dumi dev",
@@ -49,7 +49,7 @@ export default class GoodsListState {
49
49
  unitList: string[] = [];
50
50
 
51
51
  /** 默认税率 */
52
- defaultRate = 3;
52
+ defaultRate: any = null;
53
53
 
54
54
  /** 税率列表 */
55
55
  taxRateList: number[] = [0, 3, 5, 6, 9, 13];
@@ -26,7 +26,7 @@ export default function ItemNameInput(props: { onChange?: (e: ChangeEvent<HTMLIn
26
26
  const onBlur = React.useCallback(async (searchText: any) => {
27
27
  try {
28
28
  if (autoComplete.onItemNameBlur) {
29
- if (!selectLine?.shorthand) {
29
+ if (!selectLine?.shorthand && !!searchText?.target?.value) {
30
30
  const taxCategoryData: any = await autoComplete.onItemNameBlur(searchText);
31
31
  if (taxCategoryData && taxCategoryData[0]) {
32
32
  const params = {