kts-component-invoice-operate 3.2.147 → 3.2.149
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 +51 -5
- package/dist/index.js +51 -5
- package/package.json +1 -1
- package/src/Invoice/index.less +2 -0
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/index.tsx +4 -0
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/ItemCodeInput/index.tsx +3 -1
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/ItemNameInput/index.tsx +3 -0
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/index.tsx +4 -0
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/ItemNameInput/index.tsx +3 -0
- package/src/Invoice/ui/digtal/GoodsList/ui/Statistics/index.tsx +3 -3
- package/src/Invoice/ui/digtal/Sign/index.tsx +1 -1
- package/src/Invoice/ui/digtal/Stakeholder/index.tsx +3 -0
package/dist/index.esm.js
CHANGED
|
@@ -701,7 +701,7 @@ function styleInject(css, ref) {
|
|
|
701
701
|
}
|
|
702
702
|
}
|
|
703
703
|
|
|
704
|
-
var css_248z = ".kts-invoice-operate {\n border: 1px solid #dcdcdc;\n font-size: 12px;\n}\n.kts-invoice-operate > * {\n border-bottom: 1px solid #dcdcdc;\n}\n.kts-invoice-operate > *:last-child {\n border-bottom: none;\n}\n.kts-invoice-operate-digtal {\n font-family: PingFang SC;\n font-size: 14px;\n}\n.kts-invoice-operate-digtal .kts-invoice-operate-digtal-cont {\n border: 2px solid #9F613E;\n}\n.kts-invoice-operate-digtal .kts-invoice-operate-digtal-cont > * {\n border-bottom: 2px solid #9F613E;\n}\n.kts-invoice-operate-digtal .kts-invoice-operate-digtal-cont > *:last-child {\n border-bottom: none;\n}\n";
|
|
704
|
+
var css_248z = ".kts-invoice-operate {\n border: 1px solid #dcdcdc;\n font-size: 12px;\n position: relative;\n}\n.kts-invoice-operate > * {\n border-bottom: 1px solid #dcdcdc;\n}\n.kts-invoice-operate > *:last-child {\n border-bottom: none;\n}\n.kts-invoice-operate-digtal {\n font-family: PingFang SC;\n font-size: 14px;\n position: relative;\n}\n.kts-invoice-operate-digtal .kts-invoice-operate-digtal-cont {\n border: 2px solid #9F613E;\n}\n.kts-invoice-operate-digtal .kts-invoice-operate-digtal-cont > * {\n border-bottom: 2px solid #9F613E;\n}\n.kts-invoice-operate-digtal .kts-invoice-operate-digtal-cont > *:last-child {\n border-bottom: none;\n}\n";
|
|
705
705
|
styleInject(css_248z);
|
|
706
706
|
|
|
707
707
|
var LineAttributeType;
|
|
@@ -11167,6 +11167,9 @@ styleInject(css_248z$7);
|
|
|
11167
11167
|
|
|
11168
11168
|
function ItemNameInput(props) {
|
|
11169
11169
|
var controller = Invoice.useInvoiceController();
|
|
11170
|
+
var rootElement = controller.useMemo(function (s) {
|
|
11171
|
+
return s.rootElement;
|
|
11172
|
+
}, []);
|
|
11170
11173
|
var autoComplete = controller.useMemo(function (s) {
|
|
11171
11174
|
return s.autoComplete;
|
|
11172
11175
|
}, []);
|
|
@@ -11366,6 +11369,9 @@ function ItemNameInput(props) {
|
|
|
11366
11369
|
label: e.itemName
|
|
11367
11370
|
};
|
|
11368
11371
|
}),
|
|
11372
|
+
getPopupContainer: function getPopupContainer() {
|
|
11373
|
+
return rootElement || document.body;
|
|
11374
|
+
},
|
|
11369
11375
|
onSelect: onChangeAutoComplete
|
|
11370
11376
|
}, /*#__PURE__*/React.createElement(Input, {
|
|
11371
11377
|
style: {
|
|
@@ -11383,6 +11389,9 @@ styleInject(css_248z$8);
|
|
|
11383
11389
|
|
|
11384
11390
|
function ItemCodeInput(props) {
|
|
11385
11391
|
var controller = Invoice.useInvoiceController();
|
|
11392
|
+
var rootElement = controller.useMemo(function (s) {
|
|
11393
|
+
return s.rootElement;
|
|
11394
|
+
}, []);
|
|
11386
11395
|
var autoComplete = controller.useMemo(function (s) {
|
|
11387
11396
|
return s.autoComplete;
|
|
11388
11397
|
}, []);
|
|
@@ -11486,6 +11495,9 @@ function ItemCodeInput(props) {
|
|
|
11486
11495
|
value: e.itemCode
|
|
11487
11496
|
};
|
|
11488
11497
|
}),
|
|
11498
|
+
getPopupContainer: function getPopupContainer() {
|
|
11499
|
+
return rootElement || document.body;
|
|
11500
|
+
},
|
|
11489
11501
|
onSelect: onChangeAutoComplete
|
|
11490
11502
|
}, /*#__PURE__*/React.createElement(Input, {
|
|
11491
11503
|
style: {
|
|
@@ -12978,6 +12990,9 @@ var useColumns = (function (form) {
|
|
|
12978
12990
|
var getFieldDecorator = form.getFieldDecorator,
|
|
12979
12991
|
getFieldValue = form.getFieldValue;
|
|
12980
12992
|
var controller = Invoice.useInvoiceController();
|
|
12993
|
+
var rootElement = controller.useMemo(function (s) {
|
|
12994
|
+
return s.rootElement;
|
|
12995
|
+
}, []);
|
|
12981
12996
|
/** 是否含税 */
|
|
12982
12997
|
|
|
12983
12998
|
var isTaxIncluded = controller.useMemo(function (e) {
|
|
@@ -13322,6 +13337,9 @@ var useColumns = (function (form) {
|
|
|
13322
13337
|
width: '100%'
|
|
13323
13338
|
},
|
|
13324
13339
|
dataSource: unitList,
|
|
13340
|
+
getPopupContainer: function getPopupContainer() {
|
|
13341
|
+
return rootElement || document.body;
|
|
13342
|
+
},
|
|
13325
13343
|
onChange: function () {
|
|
13326
13344
|
var _onChange3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6() {
|
|
13327
13345
|
return _regeneratorRuntime().wrap(function _callee6$(_context6) {
|
|
@@ -13783,6 +13801,9 @@ var useColumns = (function (form) {
|
|
|
13783
13801
|
style: {
|
|
13784
13802
|
width: '100%'
|
|
13785
13803
|
},
|
|
13804
|
+
getPopupContainer: function getPopupContainer() {
|
|
13805
|
+
return rootElement || document.body;
|
|
13806
|
+
},
|
|
13786
13807
|
onChange: function onChange() {
|
|
13787
13808
|
setChangeField('taxRate');
|
|
13788
13809
|
onChangeTaxRate(controller, form, record);
|
|
@@ -17213,6 +17234,9 @@ function BuyerNameInput$1(props) {
|
|
|
17213
17234
|
var fieldName = props.fieldName,
|
|
17214
17235
|
form = props.myform;
|
|
17215
17236
|
var controller = Invoice.useInvoiceController();
|
|
17237
|
+
var rootElement = controller.useMemo(function (s) {
|
|
17238
|
+
return s.rootElement;
|
|
17239
|
+
}, []);
|
|
17216
17240
|
var autoComplete = controller.useMemo(function (s) {
|
|
17217
17241
|
return s.autoComplete;
|
|
17218
17242
|
}, []);
|
|
@@ -17317,6 +17341,9 @@ function BuyerNameInput$1(props) {
|
|
|
17317
17341
|
}),
|
|
17318
17342
|
onChange: onChangeAutoComplete,
|
|
17319
17343
|
value: props.value,
|
|
17344
|
+
getPopupContainer: function getPopupContainer() {
|
|
17345
|
+
return rootElement || document.body;
|
|
17346
|
+
},
|
|
17320
17347
|
style: {
|
|
17321
17348
|
width: '100%'
|
|
17322
17349
|
}
|
|
@@ -17418,7 +17445,8 @@ var SignDigtal = decorator(Form.create())(function (props) {
|
|
|
17418
17445
|
}
|
|
17419
17446
|
}) : /*#__PURE__*/React.createElement(MyDiv$1, {
|
|
17420
17447
|
style: {
|
|
17421
|
-
whiteSpace: 'pre-wrap'
|
|
17448
|
+
whiteSpace: 'pre-wrap',
|
|
17449
|
+
wordBreak: 'break-all'
|
|
17422
17450
|
}
|
|
17423
17451
|
})))), /*#__PURE__*/React.createElement(Form, {
|
|
17424
17452
|
layout: 'inline',
|
|
@@ -17698,13 +17726,15 @@ var Statistics$1 = (function () {
|
|
|
17698
17726
|
}
|
|
17699
17727
|
}), /*#__PURE__*/React.createElement("div", {
|
|
17700
17728
|
style: {
|
|
17701
|
-
|
|
17729
|
+
minWidth: 119,
|
|
17730
|
+
maxWidth: 300,
|
|
17702
17731
|
textAlign: 'right',
|
|
17703
17732
|
paddingRight: 15
|
|
17704
17733
|
}
|
|
17705
17734
|
}, "\xA5", parseFloat(isTaxIncluded ? lineAmountIncludeTax : lineAmountExcludeTax).toFixed(2)), /*#__PURE__*/React.createElement("div", {
|
|
17706
17735
|
style: {
|
|
17707
|
-
|
|
17736
|
+
minWidth: 119,
|
|
17737
|
+
maxWidth: 300,
|
|
17708
17738
|
textAlign: 'right',
|
|
17709
17739
|
paddingRight: 15
|
|
17710
17740
|
}
|
|
@@ -17735,7 +17765,8 @@ var Statistics$1 = (function () {
|
|
|
17735
17765
|
}
|
|
17736
17766
|
}, "\uFF08\u5C0F\u5199\uFF09"), /*#__PURE__*/React.createElement("div", {
|
|
17737
17767
|
style: {
|
|
17738
|
-
|
|
17768
|
+
minWidth: 119,
|
|
17769
|
+
maxWidth: 300
|
|
17739
17770
|
}
|
|
17740
17771
|
}, "\xA5", parseFloat(lineAmountIncludeTax).toFixed(2))));
|
|
17741
17772
|
});
|
|
@@ -19371,6 +19402,9 @@ styleInject(css_248z$m);
|
|
|
19371
19402
|
|
|
19372
19403
|
function ItemNameInput$1(props) {
|
|
19373
19404
|
var controller = Invoice.useInvoiceController();
|
|
19405
|
+
var rootElement = controller.useMemo(function (s) {
|
|
19406
|
+
return s.rootElement;
|
|
19407
|
+
}, []);
|
|
19374
19408
|
var autoComplete = controller.useMemo(function (s) {
|
|
19375
19409
|
return s.autoComplete;
|
|
19376
19410
|
}, []);
|
|
@@ -19560,6 +19594,9 @@ function ItemNameInput$1(props) {
|
|
|
19560
19594
|
label: e.itemName
|
|
19561
19595
|
};
|
|
19562
19596
|
}),
|
|
19597
|
+
getPopupContainer: function getPopupContainer() {
|
|
19598
|
+
return rootElement || document.body;
|
|
19599
|
+
},
|
|
19563
19600
|
onSelect: onChangeAutoComplete
|
|
19564
19601
|
}, /*#__PURE__*/React.createElement(Input$1, {
|
|
19565
19602
|
style: {
|
|
@@ -19941,6 +19978,9 @@ var useColumns$1 = (function (form) {
|
|
|
19941
19978
|
var getFieldDecorator = form.getFieldDecorator,
|
|
19942
19979
|
getFieldValue = form.getFieldValue;
|
|
19943
19980
|
var controller = Invoice.useInvoiceController();
|
|
19981
|
+
var rootElement = controller.useMemo(function (s) {
|
|
19982
|
+
return s.rootElement;
|
|
19983
|
+
}, []);
|
|
19944
19984
|
/** 是否含税 */
|
|
19945
19985
|
|
|
19946
19986
|
var isTaxIncluded = controller.useMemo(function (e) {
|
|
@@ -20247,6 +20287,9 @@ var useColumns$1 = (function (form) {
|
|
|
20247
20287
|
width: '100%'
|
|
20248
20288
|
},
|
|
20249
20289
|
dataSource: unitList,
|
|
20290
|
+
getPopupContainer: function getPopupContainer() {
|
|
20291
|
+
return rootElement || document.body;
|
|
20292
|
+
},
|
|
20250
20293
|
onChange: function () {
|
|
20251
20294
|
var _onChange2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5() {
|
|
20252
20295
|
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
@@ -20706,6 +20749,9 @@ var useColumns$1 = (function (form) {
|
|
|
20706
20749
|
style: {
|
|
20707
20750
|
width: '100%'
|
|
20708
20751
|
},
|
|
20752
|
+
getPopupContainer: function getPopupContainer() {
|
|
20753
|
+
return rootElement || document.body;
|
|
20754
|
+
},
|
|
20709
20755
|
onChange: function onChange() {
|
|
20710
20756
|
setChangeField('taxRate');
|
|
20711
20757
|
onChangeTaxRate$1(controller, form, record);
|
package/dist/index.js
CHANGED
|
@@ -711,7 +711,7 @@ function styleInject(css, ref) {
|
|
|
711
711
|
}
|
|
712
712
|
}
|
|
713
713
|
|
|
714
|
-
var css_248z = ".kts-invoice-operate {\n border: 1px solid #dcdcdc;\n font-size: 12px;\n}\n.kts-invoice-operate > * {\n border-bottom: 1px solid #dcdcdc;\n}\n.kts-invoice-operate > *:last-child {\n border-bottom: none;\n}\n.kts-invoice-operate-digtal {\n font-family: PingFang SC;\n font-size: 14px;\n}\n.kts-invoice-operate-digtal .kts-invoice-operate-digtal-cont {\n border: 2px solid #9F613E;\n}\n.kts-invoice-operate-digtal .kts-invoice-operate-digtal-cont > * {\n border-bottom: 2px solid #9F613E;\n}\n.kts-invoice-operate-digtal .kts-invoice-operate-digtal-cont > *:last-child {\n border-bottom: none;\n}\n";
|
|
714
|
+
var css_248z = ".kts-invoice-operate {\n border: 1px solid #dcdcdc;\n font-size: 12px;\n position: relative;\n}\n.kts-invoice-operate > * {\n border-bottom: 1px solid #dcdcdc;\n}\n.kts-invoice-operate > *:last-child {\n border-bottom: none;\n}\n.kts-invoice-operate-digtal {\n font-family: PingFang SC;\n font-size: 14px;\n position: relative;\n}\n.kts-invoice-operate-digtal .kts-invoice-operate-digtal-cont {\n border: 2px solid #9F613E;\n}\n.kts-invoice-operate-digtal .kts-invoice-operate-digtal-cont > * {\n border-bottom: 2px solid #9F613E;\n}\n.kts-invoice-operate-digtal .kts-invoice-operate-digtal-cont > *:last-child {\n border-bottom: none;\n}\n";
|
|
715
715
|
styleInject(css_248z);
|
|
716
716
|
|
|
717
717
|
var LineAttributeType;
|
|
@@ -11177,6 +11177,9 @@ styleInject(css_248z$7);
|
|
|
11177
11177
|
|
|
11178
11178
|
function ItemNameInput(props) {
|
|
11179
11179
|
var controller = Invoice.useInvoiceController();
|
|
11180
|
+
var rootElement = controller.useMemo(function (s) {
|
|
11181
|
+
return s.rootElement;
|
|
11182
|
+
}, []);
|
|
11180
11183
|
var autoComplete = controller.useMemo(function (s) {
|
|
11181
11184
|
return s.autoComplete;
|
|
11182
11185
|
}, []);
|
|
@@ -11376,6 +11379,9 @@ function ItemNameInput(props) {
|
|
|
11376
11379
|
label: e.itemName
|
|
11377
11380
|
};
|
|
11378
11381
|
}),
|
|
11382
|
+
getPopupContainer: function getPopupContainer() {
|
|
11383
|
+
return rootElement || document.body;
|
|
11384
|
+
},
|
|
11379
11385
|
onSelect: onChangeAutoComplete
|
|
11380
11386
|
}, /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX3.Input, {
|
|
11381
11387
|
style: {
|
|
@@ -11393,6 +11399,9 @@ styleInject(css_248z$8);
|
|
|
11393
11399
|
|
|
11394
11400
|
function ItemCodeInput(props) {
|
|
11395
11401
|
var controller = Invoice.useInvoiceController();
|
|
11402
|
+
var rootElement = controller.useMemo(function (s) {
|
|
11403
|
+
return s.rootElement;
|
|
11404
|
+
}, []);
|
|
11396
11405
|
var autoComplete = controller.useMemo(function (s) {
|
|
11397
11406
|
return s.autoComplete;
|
|
11398
11407
|
}, []);
|
|
@@ -11496,6 +11505,9 @@ function ItemCodeInput(props) {
|
|
|
11496
11505
|
value: e.itemCode
|
|
11497
11506
|
};
|
|
11498
11507
|
}),
|
|
11508
|
+
getPopupContainer: function getPopupContainer() {
|
|
11509
|
+
return rootElement || document.body;
|
|
11510
|
+
},
|
|
11499
11511
|
onSelect: onChangeAutoComplete
|
|
11500
11512
|
}, /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX3.Input, {
|
|
11501
11513
|
style: {
|
|
@@ -12988,6 +13000,9 @@ var useColumns = (function (form) {
|
|
|
12988
13000
|
var getFieldDecorator = form.getFieldDecorator,
|
|
12989
13001
|
getFieldValue = form.getFieldValue;
|
|
12990
13002
|
var controller = Invoice.useInvoiceController();
|
|
13003
|
+
var rootElement = controller.useMemo(function (s) {
|
|
13004
|
+
return s.rootElement;
|
|
13005
|
+
}, []);
|
|
12991
13006
|
/** 是否含税 */
|
|
12992
13007
|
|
|
12993
13008
|
var isTaxIncluded = controller.useMemo(function (e) {
|
|
@@ -13332,6 +13347,9 @@ var useColumns = (function (form) {
|
|
|
13332
13347
|
width: '100%'
|
|
13333
13348
|
},
|
|
13334
13349
|
dataSource: unitList,
|
|
13350
|
+
getPopupContainer: function getPopupContainer() {
|
|
13351
|
+
return rootElement || document.body;
|
|
13352
|
+
},
|
|
13335
13353
|
onChange: function () {
|
|
13336
13354
|
var _onChange3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6() {
|
|
13337
13355
|
return _regeneratorRuntime().wrap(function _callee6$(_context6) {
|
|
@@ -13793,6 +13811,9 @@ var useColumns = (function (form) {
|
|
|
13793
13811
|
style: {
|
|
13794
13812
|
width: '100%'
|
|
13795
13813
|
},
|
|
13814
|
+
getPopupContainer: function getPopupContainer() {
|
|
13815
|
+
return rootElement || document.body;
|
|
13816
|
+
},
|
|
13796
13817
|
onChange: function onChange() {
|
|
13797
13818
|
setChangeField('taxRate');
|
|
13798
13819
|
onChangeTaxRate(controller, form, record);
|
|
@@ -17223,6 +17244,9 @@ function BuyerNameInput$1(props) {
|
|
|
17223
17244
|
var fieldName = props.fieldName,
|
|
17224
17245
|
form = props.myform;
|
|
17225
17246
|
var controller = Invoice.useInvoiceController();
|
|
17247
|
+
var rootElement = controller.useMemo(function (s) {
|
|
17248
|
+
return s.rootElement;
|
|
17249
|
+
}, []);
|
|
17226
17250
|
var autoComplete = controller.useMemo(function (s) {
|
|
17227
17251
|
return s.autoComplete;
|
|
17228
17252
|
}, []);
|
|
@@ -17327,6 +17351,9 @@ function BuyerNameInput$1(props) {
|
|
|
17327
17351
|
}),
|
|
17328
17352
|
onChange: onChangeAutoComplete,
|
|
17329
17353
|
value: props.value,
|
|
17354
|
+
getPopupContainer: function getPopupContainer() {
|
|
17355
|
+
return rootElement || document.body;
|
|
17356
|
+
},
|
|
17330
17357
|
style: {
|
|
17331
17358
|
width: '100%'
|
|
17332
17359
|
}
|
|
@@ -17428,7 +17455,8 @@ var SignDigtal = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(funct
|
|
|
17428
17455
|
}
|
|
17429
17456
|
}) : /*#__PURE__*/React__default['default'].createElement(MyDiv$1, {
|
|
17430
17457
|
style: {
|
|
17431
|
-
whiteSpace: 'pre-wrap'
|
|
17458
|
+
whiteSpace: 'pre-wrap',
|
|
17459
|
+
wordBreak: 'break-all'
|
|
17432
17460
|
}
|
|
17433
17461
|
})))), /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX3.Form, {
|
|
17434
17462
|
layout: 'inline',
|
|
@@ -17708,13 +17736,15 @@ var Statistics$1 = (function () {
|
|
|
17708
17736
|
}
|
|
17709
17737
|
}), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
17710
17738
|
style: {
|
|
17711
|
-
|
|
17739
|
+
minWidth: 119,
|
|
17740
|
+
maxWidth: 300,
|
|
17712
17741
|
textAlign: 'right',
|
|
17713
17742
|
paddingRight: 15
|
|
17714
17743
|
}
|
|
17715
17744
|
}, "\xA5", parseFloat(isTaxIncluded ? lineAmountIncludeTax : lineAmountExcludeTax).toFixed(2)), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
17716
17745
|
style: {
|
|
17717
|
-
|
|
17746
|
+
minWidth: 119,
|
|
17747
|
+
maxWidth: 300,
|
|
17718
17748
|
textAlign: 'right',
|
|
17719
17749
|
paddingRight: 15
|
|
17720
17750
|
}
|
|
@@ -17745,7 +17775,8 @@ var Statistics$1 = (function () {
|
|
|
17745
17775
|
}
|
|
17746
17776
|
}, "\uFF08\u5C0F\u5199\uFF09"), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
17747
17777
|
style: {
|
|
17748
|
-
|
|
17778
|
+
minWidth: 119,
|
|
17779
|
+
maxWidth: 300
|
|
17749
17780
|
}
|
|
17750
17781
|
}, "\xA5", parseFloat(lineAmountIncludeTax).toFixed(2))));
|
|
17751
17782
|
});
|
|
@@ -19381,6 +19412,9 @@ styleInject(css_248z$m);
|
|
|
19381
19412
|
|
|
19382
19413
|
function ItemNameInput$1(props) {
|
|
19383
19414
|
var controller = Invoice.useInvoiceController();
|
|
19415
|
+
var rootElement = controller.useMemo(function (s) {
|
|
19416
|
+
return s.rootElement;
|
|
19417
|
+
}, []);
|
|
19384
19418
|
var autoComplete = controller.useMemo(function (s) {
|
|
19385
19419
|
return s.autoComplete;
|
|
19386
19420
|
}, []);
|
|
@@ -19570,6 +19604,9 @@ function ItemNameInput$1(props) {
|
|
|
19570
19604
|
label: e.itemName
|
|
19571
19605
|
};
|
|
19572
19606
|
}),
|
|
19607
|
+
getPopupContainer: function getPopupContainer() {
|
|
19608
|
+
return rootElement || document.body;
|
|
19609
|
+
},
|
|
19573
19610
|
onSelect: onChangeAutoComplete
|
|
19574
19611
|
}, /*#__PURE__*/React__default['default'].createElement(ktsXui.Input, {
|
|
19575
19612
|
style: {
|
|
@@ -19951,6 +19988,9 @@ var useColumns$1 = (function (form) {
|
|
|
19951
19988
|
var getFieldDecorator = form.getFieldDecorator,
|
|
19952
19989
|
getFieldValue = form.getFieldValue;
|
|
19953
19990
|
var controller = Invoice.useInvoiceController();
|
|
19991
|
+
var rootElement = controller.useMemo(function (s) {
|
|
19992
|
+
return s.rootElement;
|
|
19993
|
+
}, []);
|
|
19954
19994
|
/** 是否含税 */
|
|
19955
19995
|
|
|
19956
19996
|
var isTaxIncluded = controller.useMemo(function (e) {
|
|
@@ -20257,6 +20297,9 @@ var useColumns$1 = (function (form) {
|
|
|
20257
20297
|
width: '100%'
|
|
20258
20298
|
},
|
|
20259
20299
|
dataSource: unitList,
|
|
20300
|
+
getPopupContainer: function getPopupContainer() {
|
|
20301
|
+
return rootElement || document.body;
|
|
20302
|
+
},
|
|
20260
20303
|
onChange: function () {
|
|
20261
20304
|
var _onChange2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5() {
|
|
20262
20305
|
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
@@ -20716,6 +20759,9 @@ var useColumns$1 = (function (form) {
|
|
|
20716
20759
|
style: {
|
|
20717
20760
|
width: '100%'
|
|
20718
20761
|
},
|
|
20762
|
+
getPopupContainer: function getPopupContainer() {
|
|
20763
|
+
return rootElement || document.body;
|
|
20764
|
+
},
|
|
20719
20765
|
onChange: function onChange() {
|
|
20720
20766
|
setChangeField('taxRate');
|
|
20721
20767
|
onChangeTaxRate$1(controller, form, record);
|
package/package.json
CHANGED
package/src/Invoice/index.less
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
.kts-invoice-operate {
|
|
2
2
|
border : 1px solid #dcdcdc;
|
|
3
3
|
font-size: 12px;
|
|
4
|
+
position: relative;
|
|
4
5
|
|
|
5
6
|
&>* {
|
|
6
7
|
border-bottom: 1px solid #dcdcdc;
|
|
@@ -15,6 +16,7 @@
|
|
|
15
16
|
|
|
16
17
|
font-family: PingFang SC;
|
|
17
18
|
font-size : 14px;
|
|
19
|
+
position: relative;
|
|
18
20
|
|
|
19
21
|
.kts-invoice-operate-digtal-cont {
|
|
20
22
|
border: 2px solid #9F613E;
|
|
@@ -27,6 +27,8 @@ export default (form: WrappedFormUtils) => {
|
|
|
27
27
|
|
|
28
28
|
const controller = Invoice.useInvoiceController();
|
|
29
29
|
|
|
30
|
+
const rootElement = controller.useMemo(s => s.rootElement, []);
|
|
31
|
+
|
|
30
32
|
/** 是否含税 */
|
|
31
33
|
const isTaxIncluded = controller.useMemo(e => e.goodsListState.isTaxIncluded, []);
|
|
32
34
|
|
|
@@ -235,6 +237,7 @@ export default (form: WrappedFormUtils) => {
|
|
|
235
237
|
<AutoComplete
|
|
236
238
|
style={{ width: '100%' }}
|
|
237
239
|
dataSource={unitList}
|
|
240
|
+
getPopupContainer={() => rootElement || document.body}
|
|
238
241
|
onChange={async () => {
|
|
239
242
|
await controller.wait()
|
|
240
243
|
controller.setEditGood({ unit: form.getFieldsValue().unit });
|
|
@@ -494,6 +497,7 @@ export default (form: WrappedFormUtils) => {
|
|
|
494
497
|
dropdownMenuStyle={{ textAlign: "right" }}
|
|
495
498
|
showArrow={false}
|
|
496
499
|
style={{ width: '100%' }}
|
|
500
|
+
getPopupContainer={() => rootElement || document.body}
|
|
497
501
|
onChange={() => {
|
|
498
502
|
setChangeField('taxRate');
|
|
499
503
|
onChangeTaxRate(controller, form, record);
|
|
@@ -9,6 +9,8 @@ export default function ItemCodeInput(props: { onChange?: (e: ChangeEvent<HTMLIn
|
|
|
9
9
|
|
|
10
10
|
const controller = Invoice.useInvoiceController();
|
|
11
11
|
|
|
12
|
+
const rootElement = controller.useMemo(s => s.rootElement, []);
|
|
13
|
+
|
|
12
14
|
const autoComplete = controller.useMemo(s => s.autoComplete, [])
|
|
13
15
|
|
|
14
16
|
const editGood = controller.useMemo((e) => e.goodsListState.editGood, []);
|
|
@@ -39,7 +41,7 @@ export default function ItemCodeInput(props: { onChange?: (e: ChangeEvent<HTMLIn
|
|
|
39
41
|
|
|
40
42
|
return (
|
|
41
43
|
<div className='kts-invoice-operate-goods-list-itemCode-input'>
|
|
42
|
-
<AutoComplete onSearch={onSearch} value={props.value} options={options.map(e => ({ value: e.itemCode }))} onSelect={onChangeAutoComplete} >
|
|
44
|
+
<AutoComplete onSearch={onSearch} value={props.value} options={options.map(e => ({ value: e.itemCode }))} getPopupContainer={() => rootElement || document.body} onSelect={onChangeAutoComplete} >
|
|
43
45
|
<Input style={{ height: '100%', border: 'none' }} onChange={onChange} />
|
|
44
46
|
</AutoComplete>
|
|
45
47
|
</div>
|
|
@@ -10,6 +10,8 @@ export default function ItemNameInput(props: { onChange?: (e: ChangeEvent<HTMLIn
|
|
|
10
10
|
|
|
11
11
|
const controller = Invoice.useInvoiceController();
|
|
12
12
|
|
|
13
|
+
const rootElement = controller.useMemo(s => s.rootElement, []);
|
|
14
|
+
|
|
13
15
|
const autoComplete = controller.useMemo(s => s.autoComplete, [])
|
|
14
16
|
|
|
15
17
|
const [options, setOptions] = React.useState<IGood[]>([]);
|
|
@@ -79,6 +81,7 @@ export default function ItemNameInput(props: { onChange?: (e: ChangeEvent<HTMLIn
|
|
|
79
81
|
onSearch={onSearch}
|
|
80
82
|
value={props.value}
|
|
81
83
|
options={options.map(e => ({ value: e.$index, label: e.itemName }))}
|
|
84
|
+
getPopupContainer={() => rootElement || document.body}
|
|
82
85
|
onSelect={onChangeAutoComplete}
|
|
83
86
|
>
|
|
84
87
|
<Input style={{ height: '100%', border: 'none' }} value={value} onChange={onChange} onBlur={onBlur} />
|
|
@@ -27,6 +27,8 @@ export default (form: WrappedFormUtils) => {
|
|
|
27
27
|
|
|
28
28
|
const controller = Invoice.useInvoiceController();
|
|
29
29
|
|
|
30
|
+
const rootElement = controller.useMemo(s => s.rootElement, []);
|
|
31
|
+
|
|
30
32
|
/** 是否含税 */
|
|
31
33
|
const isTaxIncluded = controller.useMemo(e => e.goodsListState.isTaxIncluded, []);
|
|
32
34
|
|
|
@@ -208,6 +210,7 @@ export default (form: WrappedFormUtils) => {
|
|
|
208
210
|
<AutoComplete
|
|
209
211
|
style={{ width: '100%' }}
|
|
210
212
|
dataSource={unitList}
|
|
213
|
+
getPopupContainer={() => rootElement || document.body}
|
|
211
214
|
onChange={async () => {
|
|
212
215
|
await controller.wait()
|
|
213
216
|
controller.setEditGood({ unit: form.getFieldsValue().unit });
|
|
@@ -467,6 +470,7 @@ export default (form: WrappedFormUtils) => {
|
|
|
467
470
|
// dropdownMenuStyle={{ textAlign: "right" }}
|
|
468
471
|
showArrow={false}
|
|
469
472
|
style={{ width: '100%' }}
|
|
473
|
+
getPopupContainer={() => rootElement || document.body}
|
|
470
474
|
onChange={() => {
|
|
471
475
|
setChangeField('taxRate');
|
|
472
476
|
onChangeTaxRate(controller, form, record);
|
|
@@ -15,6 +15,8 @@ export default function ItemNameInput(props: {
|
|
|
15
15
|
|
|
16
16
|
const controller = Invoice.useInvoiceController();
|
|
17
17
|
|
|
18
|
+
const rootElement = controller.useMemo(s => s.rootElement, []);
|
|
19
|
+
|
|
18
20
|
const autoComplete = controller.useMemo(s => s.autoComplete, [])
|
|
19
21
|
|
|
20
22
|
const [options, setOptions] = React.useState<IGood[]>([])
|
|
@@ -75,6 +77,7 @@ export default function ItemNameInput(props: {
|
|
|
75
77
|
onSearch={onSearch}
|
|
76
78
|
value={props.value}
|
|
77
79
|
options={options.map(e => ({ value: e.$index, label: e.itemName }))}
|
|
80
|
+
getPopupContainer={() => rootElement || document.body}
|
|
78
81
|
onSelect={onChangeAutoComplete}
|
|
79
82
|
>
|
|
80
83
|
<Input style={{ height: '100%' }} onChange={onChange} suffix={props.suffix} onBlur={onBlur} />
|
|
@@ -80,8 +80,8 @@ export default () => {
|
|
|
80
80
|
<div className='statistics-digtal-total' >
|
|
81
81
|
<div>合计</div>
|
|
82
82
|
<div style={{ flex: 1 }} />
|
|
83
|
-
<div style={{
|
|
84
|
-
<div style={{
|
|
83
|
+
<div style={{ minWidth: 119, maxWidth: 300, textAlign: 'right', paddingRight: 15 }} >¥{parseFloat(isTaxIncluded ? lineAmountIncludeTax : lineAmountExcludeTax).toFixed(2)}</div>
|
|
84
|
+
<div style={{ minWidth: 119, maxWidth: 300, textAlign: 'right', paddingRight: 15 }} >¥{parseFloat(taxAmount).toFixed(2)}</div>
|
|
85
85
|
</div>
|
|
86
86
|
<div className='statistics-digtal-total-tax' >
|
|
87
87
|
<div>价税合计(大写)</div>
|
|
@@ -91,7 +91,7 @@ export default () => {
|
|
|
91
91
|
</div>
|
|
92
92
|
<div style={{ flex: 1 }} />
|
|
93
93
|
<div style={{ width: 90, color: '#9F613E' }} >(小写)</div>
|
|
94
|
-
<div style={{
|
|
94
|
+
<div style={{ minWidth: 119, maxWidth: 300 }} >¥{parseFloat(lineAmountIncludeTax).toFixed(2)}</div>
|
|
95
95
|
</div>
|
|
96
96
|
</div >
|
|
97
97
|
);
|
|
@@ -56,7 +56,7 @@ export default decorator<IBuyerProps, IBuyerProps & FormComponentProps>(Form.cre
|
|
|
56
56
|
})(
|
|
57
57
|
isEnables('remarks')
|
|
58
58
|
? <Input.TextArea placeholder='请输入' style={{ height: '100%' }} />
|
|
59
|
-
: <MyDiv style={{whiteSpace: 'pre-wrap'}} />
|
|
59
|
+
: <MyDiv style={{whiteSpace: 'pre-wrap', wordBreak: 'break-all'}} />
|
|
60
60
|
)}
|
|
61
61
|
</div>
|
|
62
62
|
</div>
|
|
@@ -324,6 +324,8 @@ function BuyerNameInput(props: InputProps & { fieldName: string; myform: Wrapped
|
|
|
324
324
|
|
|
325
325
|
const controller = Invoice.useInvoiceController();
|
|
326
326
|
|
|
327
|
+
const rootElement = controller.useMemo(s => s.rootElement, []);
|
|
328
|
+
|
|
327
329
|
const autoComplete = controller.useMemo(s => s.autoComplete, [])
|
|
328
330
|
|
|
329
331
|
const [options, setOptions] = React.useState<any[]>([])
|
|
@@ -363,6 +365,7 @@ function BuyerNameInput(props: InputProps & { fieldName: string; myform: Wrapped
|
|
|
363
365
|
options={options.map(e => ({ value: e[fieldName] }))}
|
|
364
366
|
onChange={onChangeAutoComplete}
|
|
365
367
|
value={props.value}
|
|
368
|
+
getPopupContainer={() => rootElement || document.body}
|
|
366
369
|
style={{ width: '100%' }}
|
|
367
370
|
>
|
|
368
371
|
<Input {...props} style={{ width: '100%', ...props.style }} />
|