kts-component-invoice-operate 3.2.208 → 3.2.210
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 +6 -6
- package/dist/index.js +6 -6
- package/package.json +1 -1
- package/src/Invoice/Invoice-digtal/_test/easiest/index.tsx +5 -3
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/index.tsx +2 -2
- package/src/Invoice/ui/default/GoodsList/ui/Statistics/index.tsx +2 -2
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/index.tsx +1 -1
- package/src/Invoice/ui/digtal/GoodsList/ui/Statistics/index.tsx +2 -2
package/dist/index.esm.js
CHANGED
|
@@ -10642,12 +10642,12 @@ var Statistics = (function () {
|
|
|
10642
10642
|
flex: 5,
|
|
10643
10643
|
border: 'none'
|
|
10644
10644
|
}
|
|
10645
|
-
}, /*#__PURE__*/React.createElement("label", null, "\u4EF7\u7A0E\u5408\u8BA1\uFF08\u5927\u5199\uFF09"), /*#__PURE__*/React.createElement("label", null, toStringChinese(lineAmountIncludeTax))), /*#__PURE__*/React.createElement("div", {
|
|
10645
|
+
}, /*#__PURE__*/React.createElement("label", null, "\u4EF7\u7A0E\u5408\u8BA1\uFF08\u5927\u5199\uFF09"), /*#__PURE__*/React.createElement("label", null, lineAmountIncludeTax === null ? '' : toStringChinese(lineAmountIncludeTax))), /*#__PURE__*/React.createElement("div", {
|
|
10646
10646
|
style: {
|
|
10647
10647
|
flex: 5,
|
|
10648
10648
|
border: 'none'
|
|
10649
10649
|
}
|
|
10650
|
-
}, /*#__PURE__*/React.createElement("label", null, "\uFF08\u5C0F\u5199\uFF09 ", parseFloat(lineAmountIncludeTax).toFixed(2)))));
|
|
10650
|
+
}, /*#__PURE__*/React.createElement("label", null, "\uFF08\u5C0F\u5199\uFF09 ", lineAmountIncludeTax === null ? '' : parseFloat(lineAmountIncludeTax).toFixed(2)))));
|
|
10651
10651
|
});
|
|
10652
10652
|
|
|
10653
10653
|
var AddRowButton = (function () {
|
|
@@ -14281,7 +14281,7 @@ var useColumns = (function (form) {
|
|
|
14281
14281
|
style: {
|
|
14282
14282
|
padding: '0 10px'
|
|
14283
14283
|
}
|
|
14284
|
-
}, formatSearch(parseFloat(value).toFixed(2), searchValue));
|
|
14284
|
+
}, value === null ? '' : formatSearch(parseFloat(value).toFixed(2), searchValue));
|
|
14285
14285
|
}
|
|
14286
14286
|
}
|
|
14287
14287
|
}, {
|
|
@@ -19054,7 +19054,7 @@ var Statistics$1 = (function () {
|
|
|
19054
19054
|
fontWeight: 'bold',
|
|
19055
19055
|
marginLeft: 4
|
|
19056
19056
|
}
|
|
19057
|
-
}, toStringChinese(lineAmountIncludeTax))), /*#__PURE__*/React.createElement("div", {
|
|
19057
|
+
}, lineAmountIncludeTax === null ? '' : toStringChinese(lineAmountIncludeTax))), /*#__PURE__*/React.createElement("div", {
|
|
19058
19058
|
style: {
|
|
19059
19059
|
flex: 1
|
|
19060
19060
|
}
|
|
@@ -19068,7 +19068,7 @@ var Statistics$1 = (function () {
|
|
|
19068
19068
|
minWidth: 119,
|
|
19069
19069
|
maxWidth: 300
|
|
19070
19070
|
}
|
|
19071
|
-
}, "\xA5", parseFloat(lineAmountIncludeTax).toFixed(2))));
|
|
19071
|
+
}, "\xA5", lineAmountIncludeTax === null ? '' : parseFloat(lineAmountIncludeTax).toFixed(2))));
|
|
19072
19072
|
});
|
|
19073
19073
|
|
|
19074
19074
|
var AddRowButton$1 = (function () {
|
|
@@ -22201,7 +22201,7 @@ var useColumns$1 = (function (form) {
|
|
|
22201
22201
|
style: {
|
|
22202
22202
|
padding: '0 10px'
|
|
22203
22203
|
}
|
|
22204
|
-
}, formatSearch$1(parseFloat(value).toFixed(2), searchValue));
|
|
22204
|
+
}, value === null ? '' : formatSearch$1(parseFloat(value).toFixed(2), searchValue));
|
|
22205
22205
|
}
|
|
22206
22206
|
}
|
|
22207
22207
|
}, {
|
package/dist/index.js
CHANGED
|
@@ -10652,12 +10652,12 @@ var Statistics = (function () {
|
|
|
10652
10652
|
flex: 5,
|
|
10653
10653
|
border: 'none'
|
|
10654
10654
|
}
|
|
10655
|
-
}, /*#__PURE__*/React__default['default'].createElement("label", null, "\u4EF7\u7A0E\u5408\u8BA1\uFF08\u5927\u5199\uFF09"), /*#__PURE__*/React__default['default'].createElement("label", null, toStringChinese(lineAmountIncludeTax))), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
10655
|
+
}, /*#__PURE__*/React__default['default'].createElement("label", null, "\u4EF7\u7A0E\u5408\u8BA1\uFF08\u5927\u5199\uFF09"), /*#__PURE__*/React__default['default'].createElement("label", null, lineAmountIncludeTax === null ? '' : toStringChinese(lineAmountIncludeTax))), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
10656
10656
|
style: {
|
|
10657
10657
|
flex: 5,
|
|
10658
10658
|
border: 'none'
|
|
10659
10659
|
}
|
|
10660
|
-
}, /*#__PURE__*/React__default['default'].createElement("label", null, "\uFF08\u5C0F\u5199\uFF09 ", parseFloat(lineAmountIncludeTax).toFixed(2)))));
|
|
10660
|
+
}, /*#__PURE__*/React__default['default'].createElement("label", null, "\uFF08\u5C0F\u5199\uFF09 ", lineAmountIncludeTax === null ? '' : parseFloat(lineAmountIncludeTax).toFixed(2)))));
|
|
10661
10661
|
});
|
|
10662
10662
|
|
|
10663
10663
|
var AddRowButton = (function () {
|
|
@@ -14291,7 +14291,7 @@ var useColumns = (function (form) {
|
|
|
14291
14291
|
style: {
|
|
14292
14292
|
padding: '0 10px'
|
|
14293
14293
|
}
|
|
14294
|
-
}, formatSearch(parseFloat(value).toFixed(2), searchValue));
|
|
14294
|
+
}, value === null ? '' : formatSearch(parseFloat(value).toFixed(2), searchValue));
|
|
14295
14295
|
}
|
|
14296
14296
|
}
|
|
14297
14297
|
}, {
|
|
@@ -19064,7 +19064,7 @@ var Statistics$1 = (function () {
|
|
|
19064
19064
|
fontWeight: 'bold',
|
|
19065
19065
|
marginLeft: 4
|
|
19066
19066
|
}
|
|
19067
|
-
}, toStringChinese(lineAmountIncludeTax))), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
19067
|
+
}, lineAmountIncludeTax === null ? '' : toStringChinese(lineAmountIncludeTax))), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
19068
19068
|
style: {
|
|
19069
19069
|
flex: 1
|
|
19070
19070
|
}
|
|
@@ -19078,7 +19078,7 @@ var Statistics$1 = (function () {
|
|
|
19078
19078
|
minWidth: 119,
|
|
19079
19079
|
maxWidth: 300
|
|
19080
19080
|
}
|
|
19081
|
-
}, "\xA5", parseFloat(lineAmountIncludeTax).toFixed(2))));
|
|
19081
|
+
}, "\xA5", lineAmountIncludeTax === null ? '' : parseFloat(lineAmountIncludeTax).toFixed(2))));
|
|
19082
19082
|
});
|
|
19083
19083
|
|
|
19084
19084
|
var AddRowButton$1 = (function () {
|
|
@@ -22211,7 +22211,7 @@ var useColumns$1 = (function (form) {
|
|
|
22211
22211
|
style: {
|
|
22212
22212
|
padding: '0 10px'
|
|
22213
22213
|
}
|
|
22214
|
-
}, formatSearch$1(parseFloat(value).toFixed(2), searchValue));
|
|
22214
|
+
}, value === null ? '' : formatSearch$1(parseFloat(value).toFixed(2), searchValue));
|
|
22215
22215
|
}
|
|
22216
22216
|
}
|
|
22217
22217
|
}, {
|
package/package.json
CHANGED
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import Invoice from '../../..';
|
|
3
3
|
import 'antd/dist/antd.css';
|
|
4
|
+
import { Money } from '../../../tools/utils';
|
|
4
5
|
import { chain, bignumber } from 'mathjs';
|
|
5
6
|
export default () => {
|
|
6
7
|
const callback = (e: any) => {
|
|
7
8
|
console.log(e.target.checked)
|
|
8
9
|
}
|
|
9
|
-
console.log(
|
|
10
|
-
console.log(chain(bignumber(
|
|
11
|
-
console.log(
|
|
10
|
+
console.log(Money.toStringChinese(0))
|
|
11
|
+
// console.log(chain(bignumber(null)))
|
|
12
|
+
// console.log(chain(bignumber(5.01)).multiply(bignumber(5)).divide(bignumber(100)).done().toNumber())
|
|
13
|
+
// console.log(Math.abs(chain(bignumber(5.01)).multiply(bignumber(5)).divide(bignumber(100)).subtract(bignumber(0.24)).done().toNumber()))
|
|
12
14
|
const controller = React.useMemo(() => new Invoice.InvoiceController(), [])
|
|
13
15
|
|
|
14
16
|
React.useEffect(() => {
|
|
@@ -484,7 +484,7 @@ export default (form: WrappedFormUtils) => {
|
|
|
484
484
|
</Form.Item>
|
|
485
485
|
);
|
|
486
486
|
} else {
|
|
487
|
-
return <span style={{ padding: '0 10px' }}>{formatSearch(parseFloat(value).toFixed(2), searchValue)}</span>;
|
|
487
|
+
return <span style={{ padding: '0 10px' }}>{value === null ? '' : formatSearch(parseFloat(value).toFixed(2), searchValue)}</span>;
|
|
488
488
|
}
|
|
489
489
|
},
|
|
490
490
|
},
|
|
@@ -612,7 +612,7 @@ export default (form: WrappedFormUtils) => {
|
|
|
612
612
|
};
|
|
613
613
|
}) as any[];
|
|
614
614
|
}, [isTaxIncluded, editGood, goodsList, controller, changeField, deduction, isMyShow, searchValue, model, columnsReplenish, columnshide, isStart]);
|
|
615
|
-
|
|
615
|
+
|
|
616
616
|
return controller.setColumnsConfig ? controller.setColumnsConfig(columns) : columns;
|
|
617
617
|
};
|
|
618
618
|
|
|
@@ -102,11 +102,11 @@ export default () => {
|
|
|
102
102
|
<div style={{ flex: 5, border: 'none' }}>
|
|
103
103
|
<label>价税合计(大写)</label>
|
|
104
104
|
<label>
|
|
105
|
-
{Money.toStringChinese(lineAmountIncludeTax)}
|
|
105
|
+
{lineAmountIncludeTax === null ? '' : Money.toStringChinese(lineAmountIncludeTax)}
|
|
106
106
|
</label>
|
|
107
107
|
</div>
|
|
108
108
|
<div style={{ flex: 5, border: 'none' }}>
|
|
109
|
-
<label>(小写) {parseFloat(lineAmountIncludeTax).toFixed(2)}</label>
|
|
109
|
+
<label>(小写) {lineAmountIncludeTax === null ? '' : parseFloat(lineAmountIncludeTax).toFixed(2)}</label>
|
|
110
110
|
</div>
|
|
111
111
|
</div>
|
|
112
112
|
</div>
|
|
@@ -453,7 +453,7 @@ export default (form: WrappedFormUtils) => {
|
|
|
453
453
|
</Form.Item>
|
|
454
454
|
);
|
|
455
455
|
} else {
|
|
456
|
-
return <span style={{ padding: '0 10px' }}>{formatSearch(parseFloat(value).toFixed(2), searchValue)}</span>;
|
|
456
|
+
return <span style={{ padding: '0 10px' }}>{value === null ? '' :formatSearch(parseFloat(value).toFixed(2), searchValue)}</span>;
|
|
457
457
|
}
|
|
458
458
|
},
|
|
459
459
|
},
|
|
@@ -87,11 +87,11 @@ export default () => {
|
|
|
87
87
|
<div>价税合计(大写)</div>
|
|
88
88
|
<div style={{ paddingLeft: 30 }} >
|
|
89
89
|
<Icon style={{fontSize: 16}} component={ForkSvg} />
|
|
90
|
-
<span style={{ fontWeight: 'bold', marginLeft: 4 }} >{Money.toStringChinese(lineAmountIncludeTax)}</span>
|
|
90
|
+
<span style={{ fontWeight: 'bold', marginLeft: 4 }} >{lineAmountIncludeTax === null ? '' :Money.toStringChinese(lineAmountIncludeTax)}</span>
|
|
91
91
|
</div>
|
|
92
92
|
<div style={{ flex: 1 }} />
|
|
93
93
|
<div style={{ width: 90, color: '#9F613E' }} >(小写)</div>
|
|
94
|
-
<div style={{ minWidth: 119, maxWidth: 300 }} >¥{parseFloat(lineAmountIncludeTax).toFixed(2)}</div>
|
|
94
|
+
<div style={{ minWidth: 119, maxWidth: 300 }} >¥{lineAmountIncludeTax === null ? '' :parseFloat(lineAmountIncludeTax).toFixed(2)}</div>
|
|
95
95
|
</div>
|
|
96
96
|
</div >
|
|
97
97
|
);
|