kts-component-invoice-operate 3.2.38 → 3.2.40

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
@@ -1797,16 +1797,15 @@ function _mergeDetails() {
1797
1797
  state.goodsListState.goodsMap.set(e.$index, e);
1798
1798
  });
1799
1799
  state.goodsListState.selectedGoodIndex = [];
1800
- _context.next = 40;
1800
+ _context.next = 39;
1801
1801
  break;
1802
1802
 
1803
1803
  case 36:
1804
1804
  _context.prev = 36;
1805
1805
  _context.t0 = _context["catch"](5);
1806
- debugger;
1807
1806
  showError(_context.t0);
1808
1807
 
1809
- case 40:
1808
+ case 39:
1810
1809
  case "end":
1811
1810
  return _context.stop();
1812
1811
  }
@@ -14446,7 +14445,7 @@ function useMergeDetails() {
14446
14445
  onClick: onClick,
14447
14446
  disabled: selectedGoodIndex.length <= 1
14448
14447
  }, "\u5408\u5E76\u660E\u7EC6");
14449
- }, [selectedGoodIndex.length]);
14448
+ }, [selectedGoodIndex.length, isMergeDetails]);
14450
14449
  return {
14451
14450
  /** 按钮 */
14452
14451
  button: button
package/dist/index.js CHANGED
@@ -1807,16 +1807,15 @@ function _mergeDetails() {
1807
1807
  state.goodsListState.goodsMap.set(e.$index, e);
1808
1808
  });
1809
1809
  state.goodsListState.selectedGoodIndex = [];
1810
- _context.next = 40;
1810
+ _context.next = 39;
1811
1811
  break;
1812
1812
 
1813
1813
  case 36:
1814
1814
  _context.prev = 36;
1815
1815
  _context.t0 = _context["catch"](5);
1816
- debugger;
1817
1816
  showError(_context.t0);
1818
1817
 
1819
- case 40:
1818
+ case 39:
1820
1819
  case "end":
1821
1820
  return _context.stop();
1822
1821
  }
@@ -14456,7 +14455,7 @@ function useMergeDetails() {
14456
14455
  onClick: onClick,
14457
14456
  disabled: selectedGoodIndex.length <= 1
14458
14457
  }, "\u5408\u5E76\u660E\u7EC6");
14459
- }, [selectedGoodIndex.length]);
14458
+ }, [selectedGoodIndex.length, isMergeDetails]);
14460
14459
  return {
14461
14460
  /** 按钮 */
14462
14461
  button: button
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kts-component-invoice-operate",
3
- "version": "3.2.38",
3
+ "version": "3.2.40",
4
4
  "scripts": {
5
5
  "start": "dumi dev",
6
6
  "docs:build": "dumi build",
@@ -46,7 +46,6 @@ export default async function mergeDetails(state: InvoiceControllerState) {
46
46
  state.goodsListState.goodsList.forEach(e => { state.goodsListState.goodsMap.set(e.$index, e) });
47
47
  state.goodsListState.selectedGoodIndex = [];
48
48
  } catch (error: any) {
49
- debugger;
50
49
  showError(error)
51
50
  }
52
51
  }
@@ -28,7 +28,7 @@ export default function useMergeDetails() {
28
28
  合并明细
29
29
  </Button>
30
30
  )
31
- }, [selectedGoodIndex.length])
31
+ }, [selectedGoodIndex.length, isMergeDetails])
32
32
 
33
33
  return {
34
34
  /** 按钮 */