kts-component-invoice-operate 3.2.36 → 3.2.37

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
@@ -1798,21 +1798,21 @@ function _mergeDetails() {
1798
1798
  state.goodsListState.goodsMap.set(e.$index, e);
1799
1799
  });
1800
1800
  state.goodsListState.selectedGoodIndex = [];
1801
- _context.next = 40;
1801
+ _context.next = 41;
1802
1802
  break;
1803
1803
 
1804
- case 36:
1805
- _context.prev = 36;
1804
+ case 37:
1805
+ _context.prev = 37;
1806
1806
  _context.t0 = _context["catch"](5);
1807
1807
  debugger;
1808
1808
  showError(_context.t0);
1809
1809
 
1810
- case 40:
1810
+ case 41:
1811
1811
  case "end":
1812
1812
  return _context.stop();
1813
1813
  }
1814
1814
  }
1815
- }, _callee, null, [[5, 36]]);
1815
+ }, _callee, null, [[5, 37]]);
1816
1816
  }));
1817
1817
  return _mergeDetails.apply(this, arguments);
1818
1818
  }
@@ -1985,7 +1985,9 @@ function _fillingInformationGood() {
1985
1985
  goods = goodsList[findMaxIndex(goodsList.map(function (e) {
1986
1986
  return e.lineAmountIncludeTax || 0;
1987
1987
  }))];
1988
- return _context7.abrupt("return", _objectSpread2({}, goods));
1988
+ return _context7.abrupt("return", _objectSpread2(_objectSpread2({}, goods), {}, {
1989
+ lineAttribute: LineAttributeType$1.正常
1990
+ }));
1989
1991
 
1990
1992
  case 3:
1991
1993
  case "end":
package/dist/index.js CHANGED
@@ -1808,21 +1808,21 @@ function _mergeDetails() {
1808
1808
  state.goodsListState.goodsMap.set(e.$index, e);
1809
1809
  });
1810
1810
  state.goodsListState.selectedGoodIndex = [];
1811
- _context.next = 40;
1811
+ _context.next = 41;
1812
1812
  break;
1813
1813
 
1814
- case 36:
1815
- _context.prev = 36;
1814
+ case 37:
1815
+ _context.prev = 37;
1816
1816
  _context.t0 = _context["catch"](5);
1817
1817
  debugger;
1818
1818
  showError(_context.t0);
1819
1819
 
1820
- case 40:
1820
+ case 41:
1821
1821
  case "end":
1822
1822
  return _context.stop();
1823
1823
  }
1824
1824
  }
1825
- }, _callee, null, [[5, 36]]);
1825
+ }, _callee, null, [[5, 37]]);
1826
1826
  }));
1827
1827
  return _mergeDetails.apply(this, arguments);
1828
1828
  }
@@ -1995,7 +1995,9 @@ function _fillingInformationGood() {
1995
1995
  goods = goodsList[findMaxIndex(goodsList.map(function (e) {
1996
1996
  return e.lineAmountIncludeTax || 0;
1997
1997
  }))];
1998
- return _context7.abrupt("return", _objectSpread2({}, goods));
1998
+ return _context7.abrupt("return", _objectSpread2(_objectSpread2({}, goods), {}, {
1999
+ lineAttribute: LineAttributeType$1.正常
2000
+ }));
1999
2001
 
2000
2002
  case 3:
2001
2003
  case "end":
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kts-component-invoice-operate",
3
- "version": "3.2.36",
3
+ "version": "3.2.37",
4
4
  "scripts": {
5
5
  "start": "dumi dev",
6
6
  "docs:build": "dumi build",
@@ -38,7 +38,7 @@ export default async function mergeDetails(state: InvoiceControllerState) {
38
38
  // 计算税额
39
39
  sum.taxAmount = chain(bignumber(sum.lineAmountIncludeTax)).subtract(bignumber(sum.lineAmountExcludeTax)).done().toNumber()
40
40
 
41
- const p = state.goodsListState.goodsList.indexOf(goodsList[0]);
41
+ const p = state.goodsListState.goodsList.indexOf(goodsList[0]);9
42
42
  state.goodsListState.goodsList = state.goodsListState.goodsList.filter(e => state.goodsListState.selectedGoodIndex.indexOf(e.$index) < 0);
43
43
  state.goodsListState.goodsList.splice(p, 0, sum);
44
44
  state.goodsListState.goodsMap = new Map();
@@ -95,7 +95,7 @@ async function fillingInformationGood(goodsList: IGood[], sum: IGood) {
95
95
 
96
96
  const goods = goodsList[findMaxIndex(goodsList.map(e => e.lineAmountIncludeTax || 0))]
97
97
 
98
- return { ...goods };
98
+ return { ...goods, lineAttribute: LineAttributeType.正常 };
99
99
  }
100
100
 
101
101
  /** 存在税率不一样的明细,不能合并 */