kts-component-invoice-operate 3.2.199 → 3.2.201

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
@@ -1661,7 +1661,7 @@ function countPrice(amount, quantity, calculatingDigits) {
1661
1661
  function countPriceNoLimit(amount, quantity, calculatingDigits) {
1662
1662
  if (!amount && amount !== 0) return undefined;
1663
1663
  if (!quantity && quantity !== 0) return undefined;
1664
- return chain$1(bignumber(amount)).divide(bignumber(quantity)).done().toNumber();
1664
+ return chain$1(bignumber(amount)).divide(bignumber(quantity)).done().toString().substr(0, 25);
1665
1665
  }
1666
1666
  /**
1667
1667
  * 数量 = 金额/单价
@@ -26608,7 +26608,13 @@ var EndowCodeDrawer = (function () {
26608
26608
  return _ref.apply(this, arguments);
26609
26609
  };
26610
26610
  }())();
26611
- }, [controller]); // 计算赋码默认值
26611
+ }, [controller]); // React.useEffect(()=>{
26612
+ // const a=chain(bignumber('21.00')).divide(bignumber('10.4999999999999123341231'))
26613
+ // .done()
26614
+ // .toString()
26615
+ // console.log(a)
26616
+ // },[])
26617
+ // 计算赋码默认值
26612
26618
 
26613
26619
  React.useEffect(function () {
26614
26620
  if (visible) {
package/dist/index.js CHANGED
@@ -1671,7 +1671,7 @@ function countPrice(amount, quantity, calculatingDigits) {
1671
1671
  function countPriceNoLimit(amount, quantity, calculatingDigits) {
1672
1672
  if (!amount && amount !== 0) return undefined;
1673
1673
  if (!quantity && quantity !== 0) return undefined;
1674
- return mathjs.chain(mathjs.bignumber(amount)).divide(mathjs.bignumber(quantity)).done().toNumber();
1674
+ return mathjs.chain(mathjs.bignumber(amount)).divide(mathjs.bignumber(quantity)).done().toString().substr(0, 25);
1675
1675
  }
1676
1676
  /**
1677
1677
  * 数量 = 金额/单价
@@ -26618,7 +26618,13 @@ var EndowCodeDrawer = (function () {
26618
26618
  return _ref.apply(this, arguments);
26619
26619
  };
26620
26620
  }())();
26621
- }, [controller]); // 计算赋码默认值
26621
+ }, [controller]); // React.useEffect(()=>{
26622
+ // const a=chain(bignumber('21.00')).divide(bignumber('10.4999999999999123341231'))
26623
+ // .done()
26624
+ // .toString()
26625
+ // console.log(a)
26626
+ // },[])
26627
+ // 计算赋码默认值
26622
26628
 
26623
26629
  React__default['default'].useEffect(function () {
26624
26630
  if (visible) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kts-component-invoice-operate",
3
- "version": "3.2.199",
3
+ "version": "3.2.201",
4
4
  "scripts": {
5
5
  "dev": "dumi dev --max-old-space-size=6096",
6
6
  "start": "dumi dev",
@@ -99,10 +99,9 @@ export function countPrice(amount: string | number, quantity: string | number, c
99
99
  export function countPriceNoLimit(amount: string | number, quantity: string | number, calculatingDigits?: number): number | undefined | '' {
100
100
  if (!amount && amount !== 0) return undefined;
101
101
  if (!quantity && quantity !== 0) return undefined;
102
-
103
102
  return chain(bignumber(amount)).divide(bignumber(quantity))
104
103
  .done()
105
- .toNumber()
104
+ .toString().substr(0,25)
106
105
  }
107
106
 
108
107
  /**
@@ -33,7 +33,12 @@ export default () => {
33
33
  s.goodsListState.endowCode.endowcodeGoodIndex = [];
34
34
  })();
35
35
  }, [controller]);
36
-
36
+ // React.useEffect(()=>{
37
+ // const a=chain(bignumber('21.00')).divide(bignumber('10.4999999999999123341231'))
38
+ // .done()
39
+ // .toString()
40
+ // console.log(a)
41
+ // },[])
37
42
  // 计算赋码默认值
38
43
  React.useEffect(() => {
39
44
  if (visible) {