kts-component-invoice-operate 3.2.214 → 3.2.216-fix
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/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/ImportGoods/index.d.ts +2 -0
- package/dist/index.esm.js +4 -2
- package/dist/index.js +4 -2
- package/package.json +1 -1
- package/src/Invoice/Invoice-digtal/_test/easiest/index.tsx +9 -7
- package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/ImportGoods/index.ts +3 -0
- package/src/Invoice/ui/default/ImportGoodsDrawer/index.tsx +4 -1
- package/src/Invoice/ui/digtal/RealEstateInfo/index.tsx +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -958,6 +958,7 @@ var ImportGoods = /*#__PURE__*/_createClass(function ImportGoods() {
|
|
|
958
958
|
this.dataSource = [];
|
|
959
959
|
this.pagination = {};
|
|
960
960
|
this.isVisibleDrawer = false;
|
|
961
|
+
this.filter = {};
|
|
961
962
|
this.topExpand = void 0;
|
|
962
963
|
|
|
963
964
|
this.verifyFn = /*#__PURE__*/function () {
|
|
@@ -24496,7 +24497,7 @@ var MyArrMoment = /*#__PURE__*/function (_React$Component3) {
|
|
|
24496
24497
|
color: '#9F603D',
|
|
24497
24498
|
fontWeight: 600
|
|
24498
24499
|
}
|
|
24499
|
-
}, " - "), /*#__PURE__*/React.createElement("span", null, hooks.isMoment(value[1]) && value[
|
|
24500
|
+
}, " - "), /*#__PURE__*/React.createElement("span", null, hooks.isMoment(value[1]) && value[1].format('YYYY-MM-DD')));
|
|
24500
24501
|
}
|
|
24501
24502
|
}]);
|
|
24502
24503
|
|
|
@@ -26337,9 +26338,10 @@ var ImportGoodsDrawer = (function () {
|
|
|
26337
26338
|
while (1) {
|
|
26338
26339
|
switch (_context.prev = _context.next) {
|
|
26339
26340
|
case 0:
|
|
26341
|
+
s.goodsListState.importGoods.filter = {};
|
|
26340
26342
|
s.goodsListState.importGoods.isVisibleDrawer = false;
|
|
26341
26343
|
|
|
26342
|
-
case
|
|
26344
|
+
case 2:
|
|
26343
26345
|
case "end":
|
|
26344
26346
|
return _context.stop();
|
|
26345
26347
|
}
|
package/dist/index.js
CHANGED
|
@@ -968,6 +968,7 @@ var ImportGoods = /*#__PURE__*/_createClass(function ImportGoods() {
|
|
|
968
968
|
this.dataSource = [];
|
|
969
969
|
this.pagination = {};
|
|
970
970
|
this.isVisibleDrawer = false;
|
|
971
|
+
this.filter = {};
|
|
971
972
|
this.topExpand = void 0;
|
|
972
973
|
|
|
973
974
|
this.verifyFn = /*#__PURE__*/function () {
|
|
@@ -24506,7 +24507,7 @@ var MyArrMoment = /*#__PURE__*/function (_React$Component3) {
|
|
|
24506
24507
|
color: '#9F603D',
|
|
24507
24508
|
fontWeight: 600
|
|
24508
24509
|
}
|
|
24509
|
-
}, " - "), /*#__PURE__*/React__default['default'].createElement("span", null, hooks.isMoment(value[1]) && value[
|
|
24510
|
+
}, " - "), /*#__PURE__*/React__default['default'].createElement("span", null, hooks.isMoment(value[1]) && value[1].format('YYYY-MM-DD')));
|
|
24510
24511
|
}
|
|
24511
24512
|
}]);
|
|
24512
24513
|
|
|
@@ -26347,9 +26348,10 @@ var ImportGoodsDrawer = (function () {
|
|
|
26347
26348
|
while (1) {
|
|
26348
26349
|
switch (_context.prev = _context.next) {
|
|
26349
26350
|
case 0:
|
|
26351
|
+
s.goodsListState.importGoods.filter = {};
|
|
26350
26352
|
s.goodsListState.importGoods.isVisibleDrawer = false;
|
|
26351
26353
|
|
|
26352
|
-
case
|
|
26354
|
+
case 2:
|
|
26353
26355
|
case "end":
|
|
26354
26356
|
return _context.stop();
|
|
26355
26357
|
}
|
package/package.json
CHANGED
|
@@ -122,14 +122,16 @@ export default () => {
|
|
|
122
122
|
}
|
|
123
123
|
React.useEffect(() => {
|
|
124
124
|
controller.run(async s => {
|
|
125
|
-
s.
|
|
126
|
-
s.priceIntegerDigit = 25;
|
|
127
|
-
s.calculatingDigits = 25;
|
|
125
|
+
s.goodsListState.isRecalculateWhenSwitchTax = true;
|
|
128
126
|
s.goodsListState.isTaxIncluded = false;
|
|
129
|
-
s.
|
|
130
|
-
s.
|
|
131
|
-
s.
|
|
132
|
-
s.goodsListState.
|
|
127
|
+
// s.stakeholder.enables = ['taxAmount'];
|
|
128
|
+
// s.priceIntegerDigit = 25;
|
|
129
|
+
// s.calculatingDigits = 25;
|
|
130
|
+
// s.goodsListState.isTaxIncluded = false;
|
|
131
|
+
// s.goodsListState.amountExcludeTax = parseFloat(data?.invoiceAmount) || undefined;
|
|
132
|
+
// s.goodsListState.amountIncludeTax = parseFloat(data?.totalAmount) || undefined;
|
|
133
|
+
// s.goodsListState.amountTax = parseFloat(data?.taxAmount) || undefined;
|
|
134
|
+
// s.goodsListState.goodsList = data?.detailList?.map(e => sToCi(e)) ?? [];
|
|
133
135
|
})
|
|
134
136
|
}, [controller])
|
|
135
137
|
return (
|
|
@@ -14,7 +14,10 @@ export default () => {
|
|
|
14
14
|
const topExpand = controller.useMemo(s => s.goodsListState.importGoods.topExpand, []);
|
|
15
15
|
|
|
16
16
|
const onClose = React.useCallback(() => {
|
|
17
|
-
controller.pipeline(async s => {
|
|
17
|
+
controller.pipeline(async s => {
|
|
18
|
+
s.goodsListState.importGoods.filter = {};
|
|
19
|
+
s.goodsListState.importGoods.isVisibleDrawer = false;
|
|
20
|
+
})();
|
|
18
21
|
}, [controller]);
|
|
19
22
|
|
|
20
23
|
return (
|
|
@@ -172,7 +172,7 @@ class MyArrMoment extends React.Component<{ value?: moment.Moment[], style?: Rea
|
|
|
172
172
|
<div style={this.props.style}>
|
|
173
173
|
<span>{moment.isMoment(value[0]) && value[0].format('YYYY-MM-DD')}</span>
|
|
174
174
|
<span style={{ color: '#9F603D', fontWeight: 600 }} > - </span>
|
|
175
|
-
<span>{moment.isMoment(value[1]) && value[
|
|
175
|
+
<span>{moment.isMoment(value[1]) && value[1].format('YYYY-MM-DD')}</span>
|
|
176
176
|
</div>
|
|
177
177
|
)
|
|
178
178
|
}
|