kts-component-invoice-operate 3.0.18 → 3.0.20

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.
@@ -45,6 +45,8 @@ export default class GoodsListState {
45
45
  amountIncludeTax?: number;
46
46
  /** 金额不含税(受控,输入后不再自动计算) */
47
47
  amountExcludeTax?: number;
48
+ /** 税额(受控,输入后不再自动计算) */
49
+ amountTax?: number;
48
50
  /** 列表选中的货物索引列表 */
49
51
  selectedGoodIndex: string[];
50
52
  /** 准备添加折扣的货物索引列表 */
package/dist/index.esm.js CHANGED
@@ -1003,6 +1003,7 @@ var GoodsListState = /*#__PURE__*/_createClass(function GoodsListState() {
1003
1003
  this.goodsMenuExpand = [];
1004
1004
  this.amountIncludeTax = void 0;
1005
1005
  this.amountExcludeTax = void 0;
1006
+ this.amountTax = void 0;
1006
1007
  this.selectedGoodIndex = [];
1007
1008
  this.discountGoodIndex = [];
1008
1009
  this.endowCode = new EndowCode();
@@ -1996,6 +1997,10 @@ var Statistics = (function () {
1996
1997
  /** 税额 */
1997
1998
 
1998
1999
  var taxAmount = controller.useMemo(function (s) {
2000
+ if (typeof s.goodsListState.amountTax === 'number') {
2001
+ return s.goodsListState.amountTax;
2002
+ }
2003
+
1999
2004
  var sum = chain$1(bignumber(0));
2000
2005
  var editGood = s.goodsListState.editGood; // 正在编辑的货物
2001
2006
 
package/dist/index.js CHANGED
@@ -1013,6 +1013,7 @@ var GoodsListState = /*#__PURE__*/_createClass(function GoodsListState() {
1013
1013
  this.goodsMenuExpand = [];
1014
1014
  this.amountIncludeTax = void 0;
1015
1015
  this.amountExcludeTax = void 0;
1016
+ this.amountTax = void 0;
1016
1017
  this.selectedGoodIndex = [];
1017
1018
  this.discountGoodIndex = [];
1018
1019
  this.endowCode = new EndowCode();
@@ -2006,6 +2007,10 @@ var Statistics = (function () {
2006
2007
  /** 税额 */
2007
2008
 
2008
2009
  var taxAmount = controller.useMemo(function (s) {
2010
+ if (typeof s.goodsListState.amountTax === 'number') {
2011
+ return s.goodsListState.amountTax;
2012
+ }
2013
+
2009
2014
  var sum = mathjs.chain(mathjs.bignumber(0));
2010
2015
  var editGood = s.goodsListState.editGood; // 正在编辑的货物
2011
2016
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kts-component-invoice-operate",
3
- "version": "3.0.18",
3
+ "version": "3.0.20",
4
4
  "scripts": {
5
5
  "start": "dumi dev",
6
6
  "docs:build": "dumi build",
@@ -62,6 +62,9 @@ export default class GoodsListState {
62
62
  /** 金额不含税(受控,输入后不再自动计算) */
63
63
  amountExcludeTax?: number;
64
64
 
65
+ /** 税额(受控,输入后不再自动计算) */
66
+ amountTax?: number;
67
+
65
68
  /** 列表选中的货物索引列表 */
66
69
  selectedGoodIndex: string[] = [];
67
70
 
@@ -58,6 +58,10 @@ export default () => {
58
58
 
59
59
  /** 税额 */
60
60
  const taxAmount = controller.useMemo((s) => {
61
+ if (typeof s.goodsListState.amountTax === 'number') {
62
+ return s.goodsListState.amountTax;
63
+ }
64
+
61
65
  let sum = chain(bignumber(0));
62
66
  const editGood = s.goodsListState.editGood; // 正在编辑的货物
63
67
  s.goodsListState.goodsList.forEach((e) => {