kts-component-invoice-operate 3.2.220 → 3.2.221-chinaship
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 +126 -36
- package/dist/index.js +126 -36
- package/package.json +1 -1
- package/src/Invoice/Invoice-digtal/index.md +0 -3
- package/src/Invoice/InvoiceController/fns/saveEditGood.ts +2 -2
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/index.tsx +19 -14
- package/src/Invoice/ui/digtal/GoodsList/ui/AddRowButton/index.tsx +13 -11
- package/src/Invoice/ui/digtal/GoodsList/ui/TableVirtual/index.tsx +11 -6
- package/src/Invoice/ui/digtal/StakeFarmerholder/index.tsx +29 -15
- package/src/Invoice/ui/digtal/Stakeholder/index.tsx +22 -4
package/dist/index.esm.js
CHANGED
|
@@ -1995,7 +1995,7 @@ var saveEditGood = /*#__PURE__*/(function () {
|
|
|
1995
1995
|
switch (_context.prev = _context.next) {
|
|
1996
1996
|
case 0:
|
|
1997
1997
|
editGood = state.goodsListState.editGood;
|
|
1998
|
-
form = state.goodsListState.form;
|
|
1998
|
+
form = state.goodsListState.form; // const isValidateGood = state.goodsListState.isValidateGood
|
|
1999
1999
|
|
|
2000
2000
|
if (!(!editGood || !form || state.goodsListState.importGoods.isVisibleDrawer || state.calculatingField)) {
|
|
2001
2001
|
_context.next = 4;
|
|
@@ -17640,7 +17640,7 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
17640
17640
|
placeholder: "\u8BF7\u8F93\u5165\u7EDF\u4E00\u793E\u4F1A\u4FE1\u7528\u4EE3\u7801/\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7",
|
|
17641
17641
|
autoComplete: "off"
|
|
17642
17642
|
})))), /*#__PURE__*/React.createElement(Col, {
|
|
17643
|
-
span: 10 +
|
|
17643
|
+
span: 10 + leqispanW,
|
|
17644
17644
|
style: {
|
|
17645
17645
|
display: isExpand ? undefined : 'none'
|
|
17646
17646
|
}
|
|
@@ -17657,7 +17657,7 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
17657
17657
|
placeholder: "\u8BF7\u8F93\u5165\u8D2D\u4E70\u65B9\u5730\u5740",
|
|
17658
17658
|
autoComplete: "off"
|
|
17659
17659
|
})))), /*#__PURE__*/React.createElement(Col, {
|
|
17660
|
-
span: 10 +
|
|
17660
|
+
span: 10 + leqispanW,
|
|
17661
17661
|
style: {
|
|
17662
17662
|
display: isExpand ? undefined : 'none'
|
|
17663
17663
|
}
|
|
@@ -17671,7 +17671,22 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
17671
17671
|
readOnly: isReadOnly('buyerPhone'),
|
|
17672
17672
|
placeholder: "\u8BF7\u8F93\u5165\u7535\u8BDD",
|
|
17673
17673
|
autoComplete: "off"
|
|
17674
|
-
})))), /*#__PURE__*/React.createElement(Col, {
|
|
17674
|
+
})))), props.leqi && /*#__PURE__*/React.createElement(Col, {
|
|
17675
|
+
span: 4,
|
|
17676
|
+
style: {
|
|
17677
|
+
display: isExpand ? undefined : 'none'
|
|
17678
|
+
}
|
|
17679
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
17680
|
+
colon: false
|
|
17681
|
+
}, getFieldDecorator('buyerAddressPhoneFlag', {
|
|
17682
|
+
valuePropName: 'checked'
|
|
17683
|
+
})( /*#__PURE__*/React.createElement(Checkbox$1, {
|
|
17684
|
+
onChange: props === null || props === void 0 ? void 0 : props.invoiceMarkCallback,
|
|
17685
|
+
disabled: isReadOnly('buyerAddressPhoneFlag'),
|
|
17686
|
+
style: {
|
|
17687
|
+
whiteSpace: 'nowrap'
|
|
17688
|
+
}
|
|
17689
|
+
}, "\u662F\u5426\u5C55\u793A")))), /*#__PURE__*/React.createElement(Col, {
|
|
17675
17690
|
span: 10 + leqispanW,
|
|
17676
17691
|
style: {
|
|
17677
17692
|
display: isExpand ? undefined : 'none'
|
|
@@ -17763,7 +17778,7 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
17763
17778
|
placeholder: "\u8BF7\u8F93\u5165\u7EDF\u4E00\u793E\u4F1A\u4FE1\u7528\u4EE3\u7801/\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7",
|
|
17764
17779
|
autoComplete: "off"
|
|
17765
17780
|
})))), /*#__PURE__*/React.createElement(Col, {
|
|
17766
|
-
span: 10 +
|
|
17781
|
+
span: 10 + leqispanW,
|
|
17767
17782
|
style: {
|
|
17768
17783
|
display: isExpand ? undefined : 'none'
|
|
17769
17784
|
}
|
|
@@ -17780,7 +17795,7 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
17780
17795
|
placeholder: "\u8BF7\u8F93\u5165\u9500\u552E\u65B9\u5730\u5740",
|
|
17781
17796
|
autoComplete: "off"
|
|
17782
17797
|
})))), /*#__PURE__*/React.createElement(Col, {
|
|
17783
|
-
span: 10 +
|
|
17798
|
+
span: 10 + leqispanW,
|
|
17784
17799
|
style: {
|
|
17785
17800
|
display: isExpand ? undefined : 'none'
|
|
17786
17801
|
}
|
|
@@ -17794,7 +17809,22 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
17794
17809
|
readOnly: isReadOnly('sellerPhone'),
|
|
17795
17810
|
placeholder: "\u8BF7\u8F93\u5165\u7535\u8BDD",
|
|
17796
17811
|
autoComplete: "off"
|
|
17797
|
-
})))), /*#__PURE__*/React.createElement(Col, {
|
|
17812
|
+
})))), props.leqi && /*#__PURE__*/React.createElement(Col, {
|
|
17813
|
+
span: 4,
|
|
17814
|
+
style: {
|
|
17815
|
+
display: isExpand ? undefined : 'none'
|
|
17816
|
+
}
|
|
17817
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
17818
|
+
colon: false
|
|
17819
|
+
}, getFieldDecorator('sellerAddressPhoneFlag', {
|
|
17820
|
+
valuePropName: 'checked'
|
|
17821
|
+
})( /*#__PURE__*/React.createElement(Checkbox$1, {
|
|
17822
|
+
onChange: props === null || props === void 0 ? void 0 : props.invoiceMarkCallback,
|
|
17823
|
+
disabled: isReadOnly('sellerAddressPhoneFlag'),
|
|
17824
|
+
style: {
|
|
17825
|
+
whiteSpace: 'nowrap'
|
|
17826
|
+
}
|
|
17827
|
+
}, "\u662F\u5426\u5C55\u793A")))), /*#__PURE__*/React.createElement(Col, {
|
|
17798
17828
|
span: 10 + leqispanW,
|
|
17799
17829
|
style: {
|
|
17800
17830
|
display: isExpand ? undefined : 'none'
|
|
@@ -18281,7 +18311,7 @@ var StakeFarmerholder = decorator(Form.create())(function (props) {
|
|
|
18281
18311
|
placeholder: "\u8BF7\u8F93\u5165\u7EDF\u4E00\u793E\u4F1A\u4FE1\u7528\u4EE3\u7801/\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7",
|
|
18282
18312
|
autoComplete: "off"
|
|
18283
18313
|
})))), /*#__PURE__*/React.createElement(Col, {
|
|
18284
|
-
span: 10 +
|
|
18314
|
+
span: 10 + leqispanW,
|
|
18285
18315
|
style: {
|
|
18286
18316
|
display: isExpand ? undefined : 'none'
|
|
18287
18317
|
}
|
|
@@ -18298,7 +18328,7 @@ var StakeFarmerholder = decorator(Form.create())(function (props) {
|
|
|
18298
18328
|
placeholder: "\u8BF7\u8F93\u5165\u9500\u552E\u65B9\u5730\u5740",
|
|
18299
18329
|
autoComplete: "off"
|
|
18300
18330
|
})))), /*#__PURE__*/React.createElement(Col, {
|
|
18301
|
-
span: 10 +
|
|
18331
|
+
span: 10 + leqispanW,
|
|
18302
18332
|
style: {
|
|
18303
18333
|
display: isExpand ? undefined : 'none'
|
|
18304
18334
|
}
|
|
@@ -18326,7 +18356,22 @@ var StakeFarmerholder = decorator(Form.create())(function (props) {
|
|
|
18326
18356
|
readOnly: isReadOnly('sellerBank'),
|
|
18327
18357
|
placeholder: "\u8BF7\u8F93\u5165\u9500\u552E\u65B9\u5F00\u6237\u94F6\u884C",
|
|
18328
18358
|
autoComplete: "off"
|
|
18329
|
-
})))), /*#__PURE__*/React.createElement(Col, {
|
|
18359
|
+
})))), props.leqi && /*#__PURE__*/React.createElement(Col, {
|
|
18360
|
+
span: 4,
|
|
18361
|
+
style: {
|
|
18362
|
+
display: isExpand ? undefined : 'none'
|
|
18363
|
+
}
|
|
18364
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
18365
|
+
colon: false
|
|
18366
|
+
}, getFieldDecorator('sellerAddressPhoneFlag', {
|
|
18367
|
+
valuePropName: 'checked'
|
|
18368
|
+
})( /*#__PURE__*/React.createElement(Checkbox$1, {
|
|
18369
|
+
onChange: props === null || props === void 0 ? void 0 : props.invoiceMarkCallback,
|
|
18370
|
+
disabled: isReadOnly('sellerAddressPhoneFlag'),
|
|
18371
|
+
style: {
|
|
18372
|
+
whiteSpace: 'nowrap'
|
|
18373
|
+
}
|
|
18374
|
+
}, "\u662F\u5426\u5C55\u793A")))), /*#__PURE__*/React.createElement(Col, {
|
|
18330
18375
|
span: 10 + leqispanW,
|
|
18331
18376
|
style: {
|
|
18332
18377
|
display: isExpand ? undefined : 'none'
|
|
@@ -18421,7 +18466,7 @@ var StakeFarmerholder = decorator(Form.create())(function (props) {
|
|
|
18421
18466
|
placeholder: "\u8BF7\u8F93\u5165\u7EDF\u4E00\u793E\u4F1A\u4FE1\u7528\u4EE3\u7801/\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7",
|
|
18422
18467
|
autoComplete: "off"
|
|
18423
18468
|
})))), /*#__PURE__*/React.createElement(Col, {
|
|
18424
|
-
span: 10 +
|
|
18469
|
+
span: 10 + leqispanW,
|
|
18425
18470
|
style: {
|
|
18426
18471
|
display: isExpand ? undefined : 'none'
|
|
18427
18472
|
}
|
|
@@ -18438,7 +18483,7 @@ var StakeFarmerholder = decorator(Form.create())(function (props) {
|
|
|
18438
18483
|
placeholder: "\u8BF7\u8F93\u5165\u8D2D\u4E70\u65B9\u5730\u5740",
|
|
18439
18484
|
autoComplete: "off"
|
|
18440
18485
|
})))), /*#__PURE__*/React.createElement(Col, {
|
|
18441
|
-
span: 10 +
|
|
18486
|
+
span: 10 + leqispanW,
|
|
18442
18487
|
style: {
|
|
18443
18488
|
display: isExpand ? undefined : 'none'
|
|
18444
18489
|
}
|
|
@@ -18471,6 +18516,20 @@ var StakeFarmerholder = decorator(Form.create())(function (props) {
|
|
|
18471
18516
|
style: {
|
|
18472
18517
|
display: isExpand ? undefined : 'none'
|
|
18473
18518
|
}
|
|
18519
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
18520
|
+
label: "\u8D2D\u4E70\u65B9\u5F00\u6237\u94F6\u884C",
|
|
18521
|
+
colon: false
|
|
18522
|
+
}, getFieldDecorator('buyerBank', {
|
|
18523
|
+
rules: getRules('buyerBank', RULES$1.bankName('购买方开户银行'))
|
|
18524
|
+
})( /*#__PURE__*/React.createElement(MyInput$2, {
|
|
18525
|
+
readOnly: isReadOnly('buyerBank'),
|
|
18526
|
+
placeholder: "\u8BF7\u8F93\u5165\u8D2D\u4E70\u65B9\u5F00\u6237\u94F6\u884C",
|
|
18527
|
+
autoComplete: "off"
|
|
18528
|
+
})))), /*#__PURE__*/React.createElement(Col, {
|
|
18529
|
+
span: 10 + leqispanW,
|
|
18530
|
+
style: {
|
|
18531
|
+
display: isExpand ? undefined : 'none'
|
|
18532
|
+
}
|
|
18474
18533
|
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
18475
18534
|
label: "\u94F6\u884C\u8D26\u53F7",
|
|
18476
18535
|
colon: false
|
|
@@ -18845,7 +18904,7 @@ var css_248z$j = ".kts-invoice-operate-goods-table-virtual .ktsAntX-table-body {
|
|
|
18845
18904
|
styleInject(css_248z$j);
|
|
18846
18905
|
|
|
18847
18906
|
function TableVirtual$1 (props) {
|
|
18848
|
-
var _props$
|
|
18907
|
+
var _props$dataSource4, _props$dataSource5;
|
|
18849
18908
|
|
|
18850
18909
|
var _React$useState = React.useState(null),
|
|
18851
18910
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
@@ -18887,8 +18946,10 @@ function TableVirtual$1 (props) {
|
|
|
18887
18946
|
}, [self, tableBody]); // 设置占位dom的搞
|
|
18888
18947
|
|
|
18889
18948
|
var placeholderHeight = React.useMemo(function () {
|
|
18890
|
-
|
|
18891
|
-
|
|
18949
|
+
var _props$dataSource = props.dataSource,
|
|
18950
|
+
dataSource = _props$dataSource === void 0 ? [] : _props$dataSource;
|
|
18951
|
+
if (!self || !rowHeight || !dataSource || !placeholder) return;
|
|
18952
|
+
var placeholderHeight = rowHeight * dataSource.length;
|
|
18892
18953
|
placeholder.style.height = "".concat(placeholderHeight, "px");
|
|
18893
18954
|
return placeholderHeight;
|
|
18894
18955
|
}, [self, rowHeight, props.dataSource, placeholder]);
|
|
@@ -18900,12 +18961,12 @@ function TableVirtual$1 (props) {
|
|
|
18900
18961
|
}, [tableBody, rowHeight, placeholderHeight]); // 计算渲染的行
|
|
18901
18962
|
|
|
18902
18963
|
var dataSource = React.useMemo(function () {
|
|
18903
|
-
var _props$
|
|
18964
|
+
var _props$dataSource2;
|
|
18904
18965
|
|
|
18905
18966
|
if (!props.dataSource) return [];
|
|
18906
18967
|
if (props.dataSource.length < 10) return props.dataSource;
|
|
18907
18968
|
if (!rowSize) return [props.dataSource[0]];
|
|
18908
|
-
return (_props$
|
|
18969
|
+
return (_props$dataSource2 = props.dataSource) === null || _props$dataSource2 === void 0 ? void 0 : _props$dataSource2.slice(pointer, pointer + 2 * rowSize);
|
|
18909
18970
|
}, [props.dataSource, pointer, rowSize]); // 监听滚动
|
|
18910
18971
|
|
|
18911
18972
|
React.useEffect(function () {
|
|
@@ -18924,17 +18985,24 @@ function TableVirtual$1 (props) {
|
|
|
18924
18985
|
}, [self, placeholder, props.dataSource, rowHeight, rowSize]); // 移动列表
|
|
18925
18986
|
|
|
18926
18987
|
React.useEffect(function () {
|
|
18988
|
+
var _props$dataSource3;
|
|
18989
|
+
|
|
18927
18990
|
if (!self) return;
|
|
18928
18991
|
var table = self.querySelector('.ktsAntX-table .ktsAntX-table-body>table');
|
|
18929
18992
|
if (!table) return;
|
|
18930
|
-
|
|
18931
|
-
|
|
18993
|
+
|
|
18994
|
+
if ((((_props$dataSource3 = props.dataSource) === null || _props$dataSource3 === void 0 ? void 0 : _props$dataSource3.length) || 0) < 10) {
|
|
18995
|
+
table.style.top = '0px';
|
|
18996
|
+
} else {
|
|
18997
|
+
table.style.top = "".concat(pointer * rowHeight, "px");
|
|
18998
|
+
}
|
|
18999
|
+
}, [pointer, self, rowHeight, (_props$dataSource4 = props.dataSource) === null || _props$dataSource4 === void 0 ? void 0 : _props$dataSource4.length]);
|
|
18932
19000
|
React.useEffect(function () {
|
|
18933
19001
|
if (!self) return;
|
|
18934
19002
|
var cont = self.querySelector('.kts-invoice-operate-goods-table-virtual .ktsAntX-table-body');
|
|
18935
19003
|
if (!cont) return;
|
|
18936
19004
|
cont.scrollTop = 0;
|
|
18937
|
-
}, [(_props$
|
|
19005
|
+
}, [(_props$dataSource5 = props.dataSource) === null || _props$dataSource5 === void 0 ? void 0 : _props$dataSource5.length]);
|
|
18938
19006
|
return /*#__PURE__*/React.createElement("span", {
|
|
18939
19007
|
className: "kts-invoice-operate-goods-table-virtual",
|
|
18940
19008
|
ref: function ref(e) {
|
|
@@ -19224,18 +19292,30 @@ function _addGood$1() {
|
|
|
19224
19292
|
_context5.next = 8;
|
|
19225
19293
|
return controller.run( /*#__PURE__*/function () {
|
|
19226
19294
|
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(s) {
|
|
19227
|
-
var _controller$state$goo;
|
|
19295
|
+
var isValidateGood, _controller$state$goo;
|
|
19228
19296
|
|
|
19229
19297
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
19230
19298
|
while (1) {
|
|
19231
19299
|
switch (_context4.prev = _context4.next) {
|
|
19232
19300
|
case 0:
|
|
19233
19301
|
if (!s.goodsListState.editGood) {
|
|
19234
|
-
_context4.next =
|
|
19302
|
+
_context4.next = 5;
|
|
19235
19303
|
break;
|
|
19236
19304
|
}
|
|
19237
19305
|
|
|
19238
|
-
|
|
19306
|
+
// message.error({
|
|
19307
|
+
// content: '你正在编辑一个货物',
|
|
19308
|
+
// key: '你正在编辑一个货物',
|
|
19309
|
+
// });
|
|
19310
|
+
// return;
|
|
19311
|
+
isValidateGood = controller.state.goodsListState.isValidateGood;
|
|
19312
|
+
|
|
19313
|
+
if (!isValidateGood) {
|
|
19314
|
+
_context4.next = 5;
|
|
19315
|
+
break;
|
|
19316
|
+
}
|
|
19317
|
+
|
|
19318
|
+
_context4.next = 5;
|
|
19239
19319
|
return (_controller$state$goo = controller.state.goodsListState.form) === null || _controller$state$goo === void 0 ? void 0 : _controller$state$goo.validateFields( /*#__PURE__*/function () {
|
|
19240
19320
|
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(err, values) {
|
|
19241
19321
|
var firstError;
|
|
@@ -19268,17 +19348,17 @@ function _addGood$1() {
|
|
|
19268
19348
|
};
|
|
19269
19349
|
}());
|
|
19270
19350
|
|
|
19271
|
-
case
|
|
19272
|
-
_context4.next =
|
|
19351
|
+
case 5:
|
|
19352
|
+
_context4.next = 7;
|
|
19273
19353
|
return controller.addGood({
|
|
19274
19354
|
taxRate: s.goodsListState.defaultRate,
|
|
19275
19355
|
lineAttribute: LineAttributeType$1.正常
|
|
19276
19356
|
});
|
|
19277
19357
|
|
|
19278
|
-
case
|
|
19358
|
+
case 7:
|
|
19279
19359
|
s.goodsListState.editGood = _context4.sent;
|
|
19280
19360
|
|
|
19281
|
-
case
|
|
19361
|
+
case 8:
|
|
19282
19362
|
case "end":
|
|
19283
19363
|
return _context4.stop();
|
|
19284
19364
|
}
|
|
@@ -21914,24 +21994,34 @@ var useColumns$1 = (function (form) {
|
|
|
21914
21994
|
while (1) {
|
|
21915
21995
|
switch (_context6.prev = _context6.next) {
|
|
21916
21996
|
case 0:
|
|
21917
|
-
|
|
21997
|
+
if (!isValidateGood) {
|
|
21998
|
+
_context6.next = 10;
|
|
21999
|
+
break;
|
|
22000
|
+
}
|
|
22001
|
+
|
|
22002
|
+
_context6.next = 3;
|
|
21918
22003
|
return controller.wait();
|
|
21919
22004
|
|
|
21920
|
-
case
|
|
22005
|
+
case 3:
|
|
21921
22006
|
isvalue = !!value || value === 0;
|
|
21922
22007
|
isPrice = !!getFieldValue(isTaxIncluded ? 'priceIncludeTax' : 'priceExcludeTax') || getFieldValue(isTaxIncluded ? 'priceIncludeTax' : 'priceExcludeTax') === 0;
|
|
21923
22008
|
|
|
21924
22009
|
if (!(isvalue || isPrice === isvalue)) {
|
|
21925
|
-
_context6.next =
|
|
22010
|
+
_context6.next = 7;
|
|
21926
22011
|
break;
|
|
21927
22012
|
}
|
|
21928
22013
|
|
|
21929
22014
|
return _context6.abrupt("return");
|
|
21930
22015
|
|
|
21931
|
-
case
|
|
22016
|
+
case 7:
|
|
21932
22017
|
callback('请输入数量');
|
|
22018
|
+
_context6.next = 11;
|
|
22019
|
+
break;
|
|
21933
22020
|
|
|
21934
|
-
case
|
|
22021
|
+
case 10:
|
|
22022
|
+
callback();
|
|
22023
|
+
|
|
22024
|
+
case 11:
|
|
21935
22025
|
case "end":
|
|
21936
22026
|
return _context6.stop();
|
|
21937
22027
|
}
|
|
@@ -22220,7 +22310,7 @@ var useColumns$1 = (function (form) {
|
|
|
22220
22310
|
style: {
|
|
22221
22311
|
padding: '0 10px'
|
|
22222
22312
|
}
|
|
22223
|
-
}, formatSearch$1(parseFloat(value).toFixed(2), searchValue));
|
|
22313
|
+
}, value && formatSearch$1(parseFloat(value).toFixed(2), searchValue));
|
|
22224
22314
|
}
|
|
22225
22315
|
}
|
|
22226
22316
|
}, {
|
|
@@ -22283,7 +22373,7 @@ var useColumns$1 = (function (form) {
|
|
|
22283
22373
|
style: {
|
|
22284
22374
|
padding: '0 10px'
|
|
22285
22375
|
}
|
|
22286
|
-
}, formatSearch$1(parseFloat(value).toFixed(2), searchValue));
|
|
22376
|
+
}, value && formatSearch$1(parseFloat(value).toFixed(2), searchValue));
|
|
22287
22377
|
}
|
|
22288
22378
|
}
|
|
22289
22379
|
}, {
|
|
@@ -22326,7 +22416,7 @@ var useColumns$1 = (function (form) {
|
|
|
22326
22416
|
}, e, "%");
|
|
22327
22417
|
}))));
|
|
22328
22418
|
} else {
|
|
22329
|
-
if (value || value === '0') {
|
|
22419
|
+
if (value || value === '0' || value === 0) {
|
|
22330
22420
|
return /*#__PURE__*/React.createElement("span", {
|
|
22331
22421
|
style: {
|
|
22332
22422
|
padding: '0 10px'
|
|
@@ -22395,7 +22485,7 @@ var useColumns$1 = (function (form) {
|
|
|
22395
22485
|
style: {
|
|
22396
22486
|
padding: '0 10px'
|
|
22397
22487
|
}
|
|
22398
|
-
}, isDutyFree$1(record) ? '***' : parseFloat(value).toFixed(2));
|
|
22488
|
+
}, isDutyFree$1(record) ? '***' : value && parseFloat(value).toFixed(2));
|
|
22399
22489
|
}
|
|
22400
22490
|
}
|
|
22401
22491
|
}] // 含税不含税
|
package/dist/index.js
CHANGED
|
@@ -2005,7 +2005,7 @@ var saveEditGood = /*#__PURE__*/(function () {
|
|
|
2005
2005
|
switch (_context.prev = _context.next) {
|
|
2006
2006
|
case 0:
|
|
2007
2007
|
editGood = state.goodsListState.editGood;
|
|
2008
|
-
form = state.goodsListState.form;
|
|
2008
|
+
form = state.goodsListState.form; // const isValidateGood = state.goodsListState.isValidateGood
|
|
2009
2009
|
|
|
2010
2010
|
if (!(!editGood || !form || state.goodsListState.importGoods.isVisibleDrawer || state.calculatingField)) {
|
|
2011
2011
|
_context.next = 4;
|
|
@@ -17650,7 +17650,7 @@ var Stakeholder$1 = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(fu
|
|
|
17650
17650
|
placeholder: "\u8BF7\u8F93\u5165\u7EDF\u4E00\u793E\u4F1A\u4FE1\u7528\u4EE3\u7801/\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7",
|
|
17651
17651
|
autoComplete: "off"
|
|
17652
17652
|
})))), /*#__PURE__*/React__default['default'].createElement(ktsXui.Col, {
|
|
17653
|
-
span: 10 +
|
|
17653
|
+
span: 10 + leqispanW,
|
|
17654
17654
|
style: {
|
|
17655
17655
|
display: isExpand ? undefined : 'none'
|
|
17656
17656
|
}
|
|
@@ -17667,7 +17667,7 @@ var Stakeholder$1 = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(fu
|
|
|
17667
17667
|
placeholder: "\u8BF7\u8F93\u5165\u8D2D\u4E70\u65B9\u5730\u5740",
|
|
17668
17668
|
autoComplete: "off"
|
|
17669
17669
|
})))), /*#__PURE__*/React__default['default'].createElement(ktsXui.Col, {
|
|
17670
|
-
span: 10 +
|
|
17670
|
+
span: 10 + leqispanW,
|
|
17671
17671
|
style: {
|
|
17672
17672
|
display: isExpand ? undefined : 'none'
|
|
17673
17673
|
}
|
|
@@ -17681,7 +17681,22 @@ var Stakeholder$1 = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(fu
|
|
|
17681
17681
|
readOnly: isReadOnly('buyerPhone'),
|
|
17682
17682
|
placeholder: "\u8BF7\u8F93\u5165\u7535\u8BDD",
|
|
17683
17683
|
autoComplete: "off"
|
|
17684
|
-
})))), /*#__PURE__*/React__default['default'].createElement(ktsXui.Col, {
|
|
17684
|
+
})))), props.leqi && /*#__PURE__*/React__default['default'].createElement(ktsXui.Col, {
|
|
17685
|
+
span: 4,
|
|
17686
|
+
style: {
|
|
17687
|
+
display: isExpand ? undefined : 'none'
|
|
17688
|
+
}
|
|
17689
|
+
}, /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX3.Form.Item, {
|
|
17690
|
+
colon: false
|
|
17691
|
+
}, getFieldDecorator('buyerAddressPhoneFlag', {
|
|
17692
|
+
valuePropName: 'checked'
|
|
17693
|
+
})( /*#__PURE__*/React__default['default'].createElement(ktsXui.Checkbox, {
|
|
17694
|
+
onChange: props === null || props === void 0 ? void 0 : props.invoiceMarkCallback,
|
|
17695
|
+
disabled: isReadOnly('buyerAddressPhoneFlag'),
|
|
17696
|
+
style: {
|
|
17697
|
+
whiteSpace: 'nowrap'
|
|
17698
|
+
}
|
|
17699
|
+
}, "\u662F\u5426\u5C55\u793A")))), /*#__PURE__*/React__default['default'].createElement(ktsXui.Col, {
|
|
17685
17700
|
span: 10 + leqispanW,
|
|
17686
17701
|
style: {
|
|
17687
17702
|
display: isExpand ? undefined : 'none'
|
|
@@ -17773,7 +17788,7 @@ var Stakeholder$1 = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(fu
|
|
|
17773
17788
|
placeholder: "\u8BF7\u8F93\u5165\u7EDF\u4E00\u793E\u4F1A\u4FE1\u7528\u4EE3\u7801/\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7",
|
|
17774
17789
|
autoComplete: "off"
|
|
17775
17790
|
})))), /*#__PURE__*/React__default['default'].createElement(ktsXui.Col, {
|
|
17776
|
-
span: 10 +
|
|
17791
|
+
span: 10 + leqispanW,
|
|
17777
17792
|
style: {
|
|
17778
17793
|
display: isExpand ? undefined : 'none'
|
|
17779
17794
|
}
|
|
@@ -17790,7 +17805,7 @@ var Stakeholder$1 = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(fu
|
|
|
17790
17805
|
placeholder: "\u8BF7\u8F93\u5165\u9500\u552E\u65B9\u5730\u5740",
|
|
17791
17806
|
autoComplete: "off"
|
|
17792
17807
|
})))), /*#__PURE__*/React__default['default'].createElement(ktsXui.Col, {
|
|
17793
|
-
span: 10 +
|
|
17808
|
+
span: 10 + leqispanW,
|
|
17794
17809
|
style: {
|
|
17795
17810
|
display: isExpand ? undefined : 'none'
|
|
17796
17811
|
}
|
|
@@ -17804,7 +17819,22 @@ var Stakeholder$1 = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(fu
|
|
|
17804
17819
|
readOnly: isReadOnly('sellerPhone'),
|
|
17805
17820
|
placeholder: "\u8BF7\u8F93\u5165\u7535\u8BDD",
|
|
17806
17821
|
autoComplete: "off"
|
|
17807
|
-
})))), /*#__PURE__*/React__default['default'].createElement(ktsXui.Col, {
|
|
17822
|
+
})))), props.leqi && /*#__PURE__*/React__default['default'].createElement(ktsXui.Col, {
|
|
17823
|
+
span: 4,
|
|
17824
|
+
style: {
|
|
17825
|
+
display: isExpand ? undefined : 'none'
|
|
17826
|
+
}
|
|
17827
|
+
}, /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX3.Form.Item, {
|
|
17828
|
+
colon: false
|
|
17829
|
+
}, getFieldDecorator('sellerAddressPhoneFlag', {
|
|
17830
|
+
valuePropName: 'checked'
|
|
17831
|
+
})( /*#__PURE__*/React__default['default'].createElement(ktsXui.Checkbox, {
|
|
17832
|
+
onChange: props === null || props === void 0 ? void 0 : props.invoiceMarkCallback,
|
|
17833
|
+
disabled: isReadOnly('sellerAddressPhoneFlag'),
|
|
17834
|
+
style: {
|
|
17835
|
+
whiteSpace: 'nowrap'
|
|
17836
|
+
}
|
|
17837
|
+
}, "\u662F\u5426\u5C55\u793A")))), /*#__PURE__*/React__default['default'].createElement(ktsXui.Col, {
|
|
17808
17838
|
span: 10 + leqispanW,
|
|
17809
17839
|
style: {
|
|
17810
17840
|
display: isExpand ? undefined : 'none'
|
|
@@ -18291,7 +18321,7 @@ var StakeFarmerholder = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create()
|
|
|
18291
18321
|
placeholder: "\u8BF7\u8F93\u5165\u7EDF\u4E00\u793E\u4F1A\u4FE1\u7528\u4EE3\u7801/\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7",
|
|
18292
18322
|
autoComplete: "off"
|
|
18293
18323
|
})))), /*#__PURE__*/React__default['default'].createElement(ktsXui.Col, {
|
|
18294
|
-
span: 10 +
|
|
18324
|
+
span: 10 + leqispanW,
|
|
18295
18325
|
style: {
|
|
18296
18326
|
display: isExpand ? undefined : 'none'
|
|
18297
18327
|
}
|
|
@@ -18308,7 +18338,7 @@ var StakeFarmerholder = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create()
|
|
|
18308
18338
|
placeholder: "\u8BF7\u8F93\u5165\u9500\u552E\u65B9\u5730\u5740",
|
|
18309
18339
|
autoComplete: "off"
|
|
18310
18340
|
})))), /*#__PURE__*/React__default['default'].createElement(ktsXui.Col, {
|
|
18311
|
-
span: 10 +
|
|
18341
|
+
span: 10 + leqispanW,
|
|
18312
18342
|
style: {
|
|
18313
18343
|
display: isExpand ? undefined : 'none'
|
|
18314
18344
|
}
|
|
@@ -18336,7 +18366,22 @@ var StakeFarmerholder = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create()
|
|
|
18336
18366
|
readOnly: isReadOnly('sellerBank'),
|
|
18337
18367
|
placeholder: "\u8BF7\u8F93\u5165\u9500\u552E\u65B9\u5F00\u6237\u94F6\u884C",
|
|
18338
18368
|
autoComplete: "off"
|
|
18339
|
-
})))), /*#__PURE__*/React__default['default'].createElement(ktsXui.Col, {
|
|
18369
|
+
})))), props.leqi && /*#__PURE__*/React__default['default'].createElement(ktsXui.Col, {
|
|
18370
|
+
span: 4,
|
|
18371
|
+
style: {
|
|
18372
|
+
display: isExpand ? undefined : 'none'
|
|
18373
|
+
}
|
|
18374
|
+
}, /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX3.Form.Item, {
|
|
18375
|
+
colon: false
|
|
18376
|
+
}, getFieldDecorator('sellerAddressPhoneFlag', {
|
|
18377
|
+
valuePropName: 'checked'
|
|
18378
|
+
})( /*#__PURE__*/React__default['default'].createElement(ktsXui.Checkbox, {
|
|
18379
|
+
onChange: props === null || props === void 0 ? void 0 : props.invoiceMarkCallback,
|
|
18380
|
+
disabled: isReadOnly('sellerAddressPhoneFlag'),
|
|
18381
|
+
style: {
|
|
18382
|
+
whiteSpace: 'nowrap'
|
|
18383
|
+
}
|
|
18384
|
+
}, "\u662F\u5426\u5C55\u793A")))), /*#__PURE__*/React__default['default'].createElement(ktsXui.Col, {
|
|
18340
18385
|
span: 10 + leqispanW,
|
|
18341
18386
|
style: {
|
|
18342
18387
|
display: isExpand ? undefined : 'none'
|
|
@@ -18431,7 +18476,7 @@ var StakeFarmerholder = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create()
|
|
|
18431
18476
|
placeholder: "\u8BF7\u8F93\u5165\u7EDF\u4E00\u793E\u4F1A\u4FE1\u7528\u4EE3\u7801/\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7",
|
|
18432
18477
|
autoComplete: "off"
|
|
18433
18478
|
})))), /*#__PURE__*/React__default['default'].createElement(ktsXui.Col, {
|
|
18434
|
-
span: 10 +
|
|
18479
|
+
span: 10 + leqispanW,
|
|
18435
18480
|
style: {
|
|
18436
18481
|
display: isExpand ? undefined : 'none'
|
|
18437
18482
|
}
|
|
@@ -18448,7 +18493,7 @@ var StakeFarmerholder = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create()
|
|
|
18448
18493
|
placeholder: "\u8BF7\u8F93\u5165\u8D2D\u4E70\u65B9\u5730\u5740",
|
|
18449
18494
|
autoComplete: "off"
|
|
18450
18495
|
})))), /*#__PURE__*/React__default['default'].createElement(ktsXui.Col, {
|
|
18451
|
-
span: 10 +
|
|
18496
|
+
span: 10 + leqispanW,
|
|
18452
18497
|
style: {
|
|
18453
18498
|
display: isExpand ? undefined : 'none'
|
|
18454
18499
|
}
|
|
@@ -18481,6 +18526,20 @@ var StakeFarmerholder = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create()
|
|
|
18481
18526
|
style: {
|
|
18482
18527
|
display: isExpand ? undefined : 'none'
|
|
18483
18528
|
}
|
|
18529
|
+
}, /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX3.Form.Item, {
|
|
18530
|
+
label: "\u8D2D\u4E70\u65B9\u5F00\u6237\u94F6\u884C",
|
|
18531
|
+
colon: false
|
|
18532
|
+
}, getFieldDecorator('buyerBank', {
|
|
18533
|
+
rules: getRules('buyerBank', RULES$1.bankName('购买方开户银行'))
|
|
18534
|
+
})( /*#__PURE__*/React__default['default'].createElement(MyInput$2, {
|
|
18535
|
+
readOnly: isReadOnly('buyerBank'),
|
|
18536
|
+
placeholder: "\u8BF7\u8F93\u5165\u8D2D\u4E70\u65B9\u5F00\u6237\u94F6\u884C",
|
|
18537
|
+
autoComplete: "off"
|
|
18538
|
+
})))), /*#__PURE__*/React__default['default'].createElement(ktsXui.Col, {
|
|
18539
|
+
span: 10 + leqispanW,
|
|
18540
|
+
style: {
|
|
18541
|
+
display: isExpand ? undefined : 'none'
|
|
18542
|
+
}
|
|
18484
18543
|
}, /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX3.Form.Item, {
|
|
18485
18544
|
label: "\u94F6\u884C\u8D26\u53F7",
|
|
18486
18545
|
colon: false
|
|
@@ -18855,7 +18914,7 @@ var css_248z$j = ".kts-invoice-operate-goods-table-virtual .ktsAntX-table-body {
|
|
|
18855
18914
|
styleInject(css_248z$j);
|
|
18856
18915
|
|
|
18857
18916
|
function TableVirtual$1 (props) {
|
|
18858
|
-
var _props$
|
|
18917
|
+
var _props$dataSource4, _props$dataSource5;
|
|
18859
18918
|
|
|
18860
18919
|
var _React$useState = React__default['default'].useState(null),
|
|
18861
18920
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
@@ -18897,8 +18956,10 @@ function TableVirtual$1 (props) {
|
|
|
18897
18956
|
}, [self, tableBody]); // 设置占位dom的搞
|
|
18898
18957
|
|
|
18899
18958
|
var placeholderHeight = React__default['default'].useMemo(function () {
|
|
18900
|
-
|
|
18901
|
-
|
|
18959
|
+
var _props$dataSource = props.dataSource,
|
|
18960
|
+
dataSource = _props$dataSource === void 0 ? [] : _props$dataSource;
|
|
18961
|
+
if (!self || !rowHeight || !dataSource || !placeholder) return;
|
|
18962
|
+
var placeholderHeight = rowHeight * dataSource.length;
|
|
18902
18963
|
placeholder.style.height = "".concat(placeholderHeight, "px");
|
|
18903
18964
|
return placeholderHeight;
|
|
18904
18965
|
}, [self, rowHeight, props.dataSource, placeholder]);
|
|
@@ -18910,12 +18971,12 @@ function TableVirtual$1 (props) {
|
|
|
18910
18971
|
}, [tableBody, rowHeight, placeholderHeight]); // 计算渲染的行
|
|
18911
18972
|
|
|
18912
18973
|
var dataSource = React__default['default'].useMemo(function () {
|
|
18913
|
-
var _props$
|
|
18974
|
+
var _props$dataSource2;
|
|
18914
18975
|
|
|
18915
18976
|
if (!props.dataSource) return [];
|
|
18916
18977
|
if (props.dataSource.length < 10) return props.dataSource;
|
|
18917
18978
|
if (!rowSize) return [props.dataSource[0]];
|
|
18918
|
-
return (_props$
|
|
18979
|
+
return (_props$dataSource2 = props.dataSource) === null || _props$dataSource2 === void 0 ? void 0 : _props$dataSource2.slice(pointer, pointer + 2 * rowSize);
|
|
18919
18980
|
}, [props.dataSource, pointer, rowSize]); // 监听滚动
|
|
18920
18981
|
|
|
18921
18982
|
React__default['default'].useEffect(function () {
|
|
@@ -18934,17 +18995,24 @@ function TableVirtual$1 (props) {
|
|
|
18934
18995
|
}, [self, placeholder, props.dataSource, rowHeight, rowSize]); // 移动列表
|
|
18935
18996
|
|
|
18936
18997
|
React__default['default'].useEffect(function () {
|
|
18998
|
+
var _props$dataSource3;
|
|
18999
|
+
|
|
18937
19000
|
if (!self) return;
|
|
18938
19001
|
var table = self.querySelector('.ktsAntX-table .ktsAntX-table-body>table');
|
|
18939
19002
|
if (!table) return;
|
|
18940
|
-
|
|
18941
|
-
|
|
19003
|
+
|
|
19004
|
+
if ((((_props$dataSource3 = props.dataSource) === null || _props$dataSource3 === void 0 ? void 0 : _props$dataSource3.length) || 0) < 10) {
|
|
19005
|
+
table.style.top = '0px';
|
|
19006
|
+
} else {
|
|
19007
|
+
table.style.top = "".concat(pointer * rowHeight, "px");
|
|
19008
|
+
}
|
|
19009
|
+
}, [pointer, self, rowHeight, (_props$dataSource4 = props.dataSource) === null || _props$dataSource4 === void 0 ? void 0 : _props$dataSource4.length]);
|
|
18942
19010
|
React__default['default'].useEffect(function () {
|
|
18943
19011
|
if (!self) return;
|
|
18944
19012
|
var cont = self.querySelector('.kts-invoice-operate-goods-table-virtual .ktsAntX-table-body');
|
|
18945
19013
|
if (!cont) return;
|
|
18946
19014
|
cont.scrollTop = 0;
|
|
18947
|
-
}, [(_props$
|
|
19015
|
+
}, [(_props$dataSource5 = props.dataSource) === null || _props$dataSource5 === void 0 ? void 0 : _props$dataSource5.length]);
|
|
18948
19016
|
return /*#__PURE__*/React__default['default'].createElement("span", {
|
|
18949
19017
|
className: "kts-invoice-operate-goods-table-virtual",
|
|
18950
19018
|
ref: function ref(e) {
|
|
@@ -19234,18 +19302,30 @@ function _addGood$1() {
|
|
|
19234
19302
|
_context5.next = 8;
|
|
19235
19303
|
return controller.run( /*#__PURE__*/function () {
|
|
19236
19304
|
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(s) {
|
|
19237
|
-
var _controller$state$goo;
|
|
19305
|
+
var isValidateGood, _controller$state$goo;
|
|
19238
19306
|
|
|
19239
19307
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
19240
19308
|
while (1) {
|
|
19241
19309
|
switch (_context4.prev = _context4.next) {
|
|
19242
19310
|
case 0:
|
|
19243
19311
|
if (!s.goodsListState.editGood) {
|
|
19244
|
-
_context4.next =
|
|
19312
|
+
_context4.next = 5;
|
|
19245
19313
|
break;
|
|
19246
19314
|
}
|
|
19247
19315
|
|
|
19248
|
-
|
|
19316
|
+
// message.error({
|
|
19317
|
+
// content: '你正在编辑一个货物',
|
|
19318
|
+
// key: '你正在编辑一个货物',
|
|
19319
|
+
// });
|
|
19320
|
+
// return;
|
|
19321
|
+
isValidateGood = controller.state.goodsListState.isValidateGood;
|
|
19322
|
+
|
|
19323
|
+
if (!isValidateGood) {
|
|
19324
|
+
_context4.next = 5;
|
|
19325
|
+
break;
|
|
19326
|
+
}
|
|
19327
|
+
|
|
19328
|
+
_context4.next = 5;
|
|
19249
19329
|
return (_controller$state$goo = controller.state.goodsListState.form) === null || _controller$state$goo === void 0 ? void 0 : _controller$state$goo.validateFields( /*#__PURE__*/function () {
|
|
19250
19330
|
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(err, values) {
|
|
19251
19331
|
var firstError;
|
|
@@ -19278,17 +19358,17 @@ function _addGood$1() {
|
|
|
19278
19358
|
};
|
|
19279
19359
|
}());
|
|
19280
19360
|
|
|
19281
|
-
case
|
|
19282
|
-
_context4.next =
|
|
19361
|
+
case 5:
|
|
19362
|
+
_context4.next = 7;
|
|
19283
19363
|
return controller.addGood({
|
|
19284
19364
|
taxRate: s.goodsListState.defaultRate,
|
|
19285
19365
|
lineAttribute: LineAttributeType$1.正常
|
|
19286
19366
|
});
|
|
19287
19367
|
|
|
19288
|
-
case
|
|
19368
|
+
case 7:
|
|
19289
19369
|
s.goodsListState.editGood = _context4.sent;
|
|
19290
19370
|
|
|
19291
|
-
case
|
|
19371
|
+
case 8:
|
|
19292
19372
|
case "end":
|
|
19293
19373
|
return _context4.stop();
|
|
19294
19374
|
}
|
|
@@ -21924,24 +22004,34 @@ var useColumns$1 = (function (form) {
|
|
|
21924
22004
|
while (1) {
|
|
21925
22005
|
switch (_context6.prev = _context6.next) {
|
|
21926
22006
|
case 0:
|
|
21927
|
-
|
|
22007
|
+
if (!isValidateGood) {
|
|
22008
|
+
_context6.next = 10;
|
|
22009
|
+
break;
|
|
22010
|
+
}
|
|
22011
|
+
|
|
22012
|
+
_context6.next = 3;
|
|
21928
22013
|
return controller.wait();
|
|
21929
22014
|
|
|
21930
|
-
case
|
|
22015
|
+
case 3:
|
|
21931
22016
|
isvalue = !!value || value === 0;
|
|
21932
22017
|
isPrice = !!getFieldValue(isTaxIncluded ? 'priceIncludeTax' : 'priceExcludeTax') || getFieldValue(isTaxIncluded ? 'priceIncludeTax' : 'priceExcludeTax') === 0;
|
|
21933
22018
|
|
|
21934
22019
|
if (!(isvalue || isPrice === isvalue)) {
|
|
21935
|
-
_context6.next =
|
|
22020
|
+
_context6.next = 7;
|
|
21936
22021
|
break;
|
|
21937
22022
|
}
|
|
21938
22023
|
|
|
21939
22024
|
return _context6.abrupt("return");
|
|
21940
22025
|
|
|
21941
|
-
case
|
|
22026
|
+
case 7:
|
|
21942
22027
|
callback('请输入数量');
|
|
22028
|
+
_context6.next = 11;
|
|
22029
|
+
break;
|
|
21943
22030
|
|
|
21944
|
-
case
|
|
22031
|
+
case 10:
|
|
22032
|
+
callback();
|
|
22033
|
+
|
|
22034
|
+
case 11:
|
|
21945
22035
|
case "end":
|
|
21946
22036
|
return _context6.stop();
|
|
21947
22037
|
}
|
|
@@ -22230,7 +22320,7 @@ var useColumns$1 = (function (form) {
|
|
|
22230
22320
|
style: {
|
|
22231
22321
|
padding: '0 10px'
|
|
22232
22322
|
}
|
|
22233
|
-
}, formatSearch$1(parseFloat(value).toFixed(2), searchValue));
|
|
22323
|
+
}, value && formatSearch$1(parseFloat(value).toFixed(2), searchValue));
|
|
22234
22324
|
}
|
|
22235
22325
|
}
|
|
22236
22326
|
}, {
|
|
@@ -22293,7 +22383,7 @@ var useColumns$1 = (function (form) {
|
|
|
22293
22383
|
style: {
|
|
22294
22384
|
padding: '0 10px'
|
|
22295
22385
|
}
|
|
22296
|
-
}, formatSearch$1(parseFloat(value).toFixed(2), searchValue));
|
|
22386
|
+
}, value && formatSearch$1(parseFloat(value).toFixed(2), searchValue));
|
|
22297
22387
|
}
|
|
22298
22388
|
}
|
|
22299
22389
|
}, {
|
|
@@ -22336,7 +22426,7 @@ var useColumns$1 = (function (form) {
|
|
|
22336
22426
|
}, e, "%");
|
|
22337
22427
|
}))));
|
|
22338
22428
|
} else {
|
|
22339
|
-
if (value || value === '0') {
|
|
22429
|
+
if (value || value === '0' || value === 0) {
|
|
22340
22430
|
return /*#__PURE__*/React__default['default'].createElement("span", {
|
|
22341
22431
|
style: {
|
|
22342
22432
|
padding: '0 10px'
|
|
@@ -22405,7 +22495,7 @@ var useColumns$1 = (function (form) {
|
|
|
22405
22495
|
style: {
|
|
22406
22496
|
padding: '0 10px'
|
|
22407
22497
|
}
|
|
22408
|
-
}, isDutyFree$1(record) ? '***' : parseFloat(value).toFixed(2));
|
|
22498
|
+
}, isDutyFree$1(record) ? '***' : value && parseFloat(value).toFixed(2));
|
|
22409
22499
|
}
|
|
22410
22500
|
}
|
|
22411
22501
|
}] // 含税不含税
|
package/package.json
CHANGED
|
@@ -4,10 +4,10 @@ import { InvoiceControllerState } from '../';
|
|
|
4
4
|
* 保存正在编辑的货物
|
|
5
5
|
*/
|
|
6
6
|
export default async (state: InvoiceControllerState) => {
|
|
7
|
-
|
|
7
|
+
|
|
8
8
|
const editGood = state.goodsListState.editGood;
|
|
9
9
|
const form = state.goodsListState.form;
|
|
10
|
-
|
|
10
|
+
// const isValidateGood = state.goodsListState.isValidateGood
|
|
11
11
|
if (!editGood || !form || state.goodsListState.importGoods.isVisibleDrawer || state.calculatingField) return;
|
|
12
12
|
if ((await validateFields(form)).err) return;
|
|
13
13
|
|
|
@@ -257,11 +257,16 @@ export default (form: WrappedFormUtils) => {
|
|
|
257
257
|
{ pattern: /^[+-]?(0|([1-9]\d*))(\.\d+)?$/, message: '数量必须为数字' },
|
|
258
258
|
{
|
|
259
259
|
validator: async (_, value, callback) => {
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
260
|
+
|
|
261
|
+
if (isValidateGood) {
|
|
262
|
+
await controller.wait();
|
|
263
|
+
const isvalue = !!value || value === 0;
|
|
264
|
+
const isPrice = !!getFieldValue(isTaxIncluded ? 'priceIncludeTax' : 'priceExcludeTax') || getFieldValue(isTaxIncluded ? 'priceIncludeTax' : 'priceExcludeTax') === 0;
|
|
265
|
+
if (isvalue || isPrice === isvalue) return;
|
|
266
|
+
callback('请输入数量');
|
|
267
|
+
} else {
|
|
268
|
+
callback();
|
|
269
|
+
}
|
|
265
270
|
}
|
|
266
271
|
}
|
|
267
272
|
],
|
|
@@ -416,7 +421,7 @@ export default (form: WrappedFormUtils) => {
|
|
|
416
421
|
</Form.Item>
|
|
417
422
|
);
|
|
418
423
|
} else {
|
|
419
|
-
return <span style={{ padding: '0 10px' }}>{formatSearch(parseFloat(value).toFixed(2), searchValue)}</span>;
|
|
424
|
+
return <span style={{ padding: '0 10px' }}>{value && formatSearch(parseFloat(value).toFixed(2), searchValue)}</span>;
|
|
420
425
|
}
|
|
421
426
|
},
|
|
422
427
|
},
|
|
@@ -458,7 +463,7 @@ export default (form: WrappedFormUtils) => {
|
|
|
458
463
|
</Form.Item>
|
|
459
464
|
);
|
|
460
465
|
} else {
|
|
461
|
-
return <span style={{ padding: '0 10px' }}>{formatSearch(parseFloat(value).toFixed(2), searchValue)}</span>;
|
|
466
|
+
return <span style={{ padding: '0 10px' }}>{value && formatSearch(parseFloat(value).toFixed(2), searchValue)}</span>;
|
|
462
467
|
}
|
|
463
468
|
},
|
|
464
469
|
},
|
|
@@ -468,7 +473,7 @@ export default (form: WrappedFormUtils) => {
|
|
|
468
473
|
key: 'taxRate',
|
|
469
474
|
align: 'right',
|
|
470
475
|
width: 70,
|
|
471
|
-
render: (value: string, record: IGood) => {
|
|
476
|
+
render: (value: string|number, record: IGood) => {
|
|
472
477
|
if (editGood?.$index === record.$index && !disableds.includes('taxRate') && !(model === 'prefab' && calculateType === '3')) {
|
|
473
478
|
return (
|
|
474
479
|
<Form.Item>
|
|
@@ -503,7 +508,7 @@ export default (form: WrappedFormUtils) => {
|
|
|
503
508
|
</Form.Item>
|
|
504
509
|
);
|
|
505
510
|
} else {
|
|
506
|
-
if (value || value === '0') {
|
|
511
|
+
if (value || value === '0' || value === 0) {
|
|
507
512
|
return <span style={{ padding: '0 10px' }}>{isDutyFree(record) ? '免税' : `${value}%`}</span>;
|
|
508
513
|
} else {
|
|
509
514
|
return ''
|
|
@@ -518,7 +523,7 @@ export default (form: WrappedFormUtils) => {
|
|
|
518
523
|
align: 'right',
|
|
519
524
|
width: 119,
|
|
520
525
|
render: (value: string, record: IGood) => {
|
|
521
|
-
if (editGood?.$index === record.$index && !disableds.includes('taxAmount')&& model !== 'prefab') {
|
|
526
|
+
if (editGood?.$index === record.$index && !disableds.includes('taxAmount') && model !== 'prefab') {
|
|
522
527
|
return (
|
|
523
528
|
<Form.Item>
|
|
524
529
|
{getFieldDecorator('taxAmount', {
|
|
@@ -532,13 +537,13 @@ export default (form: WrappedFormUtils) => {
|
|
|
532
537
|
const lineAmountIncludeTax = editGood?.lineAmountIncludeTax || 0;
|
|
533
538
|
//不含税金额
|
|
534
539
|
// const lineAmountExcludeTax = lineAmountIncludeTax-value;
|
|
535
|
-
const lineAmountExcludeTax = chain(bignumber(lineAmountIncludeTax||0)).subtract(bignumber(value||0));
|
|
540
|
+
const lineAmountExcludeTax = chain(bignumber(lineAmountIncludeTax || 0)).subtract(bignumber(value || 0));
|
|
536
541
|
const taxRate = editGood?.taxRate;
|
|
537
542
|
if (lineAmountExcludeTax && taxRate && lineAmountIncludeTax) {
|
|
538
543
|
// const total = bignumber(lineAmountExcludeTax * taxRate / 100);
|
|
539
|
-
const total = lineAmountExcludeTax.multiply(bignumber(taxRate||0)).divide(bignumber(100));
|
|
544
|
+
const total = lineAmountExcludeTax.multiply(bignumber(taxRate || 0)).divide(bignumber(100));
|
|
540
545
|
// if (Number(Math.abs(Number(total) - Number(value)).toFixed(4)) <= 0.01) {
|
|
541
|
-
if (Math.abs(total.subtract(bignumber(value||0)).done().toNumber()) <= 0.01) {
|
|
546
|
+
if (Math.abs(total.subtract(bignumber(value || 0)).done().toNumber()) <= 0.01) {
|
|
542
547
|
callback();
|
|
543
548
|
} else {
|
|
544
549
|
callback('税额填写错误,请重新输入')
|
|
@@ -568,7 +573,7 @@ export default (form: WrappedFormUtils) => {
|
|
|
568
573
|
</Form.Item>
|
|
569
574
|
)
|
|
570
575
|
} else {
|
|
571
|
-
return <span style={{ padding: '0 10px' }}>{isDutyFree(record) ? '***' : parseFloat(value).toFixed(2)}</span>;
|
|
576
|
+
return <span style={{ padding: '0 10px' }}>{isDutyFree(record) ? '***' : value && parseFloat(value).toFixed(2)}</span>;
|
|
572
577
|
}
|
|
573
578
|
},
|
|
574
579
|
},
|
|
@@ -61,17 +61,19 @@ async function addGood(controller: InvoiceController) {
|
|
|
61
61
|
// key: '你正在编辑一个货物',
|
|
62
62
|
// });
|
|
63
63
|
// return;
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
64
|
+
const isValidateGood = controller.state.goodsListState.isValidateGood;
|
|
65
|
+
if (isValidateGood) {
|
|
66
|
+
await controller.state.goodsListState.form?.validateFields(async (err: any, values: any) => {
|
|
67
|
+
if (err) {
|
|
68
|
+
const firstError: any = Object.values(err)[0];
|
|
69
|
+
message.error({
|
|
70
|
+
content: firstError.errors[0].message,
|
|
71
|
+
key: '你正在编辑一个货物',
|
|
72
|
+
});
|
|
73
|
+
return;
|
|
74
|
+
}
|
|
75
|
+
});
|
|
76
|
+
}
|
|
75
77
|
}
|
|
76
78
|
s.goodsListState.editGood = await controller.addGood({ taxRate: s.goodsListState.defaultRate, lineAttribute: LineAttributeType.正常 });
|
|
77
79
|
});
|
|
@@ -40,8 +40,9 @@ export default function <T extends object = any>(props: TableProps<T>) {
|
|
|
40
40
|
|
|
41
41
|
// 设置占位dom的搞
|
|
42
42
|
const placeholderHeight = React.useMemo(() => {
|
|
43
|
-
|
|
44
|
-
|
|
43
|
+
const { dataSource = [] } = props
|
|
44
|
+
if (!self || !rowHeight || !dataSource || !placeholder) return;
|
|
45
|
+
const placeholderHeight = rowHeight * dataSource.length;
|
|
45
46
|
placeholder.style.height = `${placeholderHeight}px`;
|
|
46
47
|
return placeholderHeight;
|
|
47
48
|
}, [self, rowHeight, props.dataSource, placeholder]);
|
|
@@ -80,19 +81,23 @@ export default function <T extends object = any>(props: TableProps<T>) {
|
|
|
80
81
|
|
|
81
82
|
// 移动列表
|
|
82
83
|
React.useEffect(() => {
|
|
83
|
-
if (!self) return
|
|
84
|
+
if (!self) return
|
|
84
85
|
|
|
85
86
|
const table = self.querySelector('.ktsAntX-table .ktsAntX-table-body>table') as HTMLDivElement;
|
|
87
|
+
|
|
86
88
|
if (!table) return;
|
|
89
|
+
if ((props.dataSource?.length || 0) < 10) {
|
|
90
|
+
table.style.top = '0px';
|
|
91
|
+
} else {
|
|
92
|
+
table.style.top = `${pointer * rowHeight}px`;
|
|
93
|
+
}
|
|
87
94
|
|
|
88
|
-
|
|
89
|
-
}, [pointer, self, rowHeight]);
|
|
95
|
+
}, [pointer, self, rowHeight, props.dataSource?.length]);
|
|
90
96
|
|
|
91
97
|
React.useEffect(() => {
|
|
92
98
|
if (!self) return;
|
|
93
99
|
const cont = self.querySelector('.kts-invoice-operate-goods-table-virtual .ktsAntX-table-body');
|
|
94
100
|
if (!cont) return;
|
|
95
|
-
|
|
96
101
|
cont.scrollTop = 0;
|
|
97
102
|
}, [props.dataSource?.length])
|
|
98
103
|
|
|
@@ -30,7 +30,7 @@ const RULES = {
|
|
|
30
30
|
{ pattern: /^[0-9\s\-\+]+$/g, message: `${label}仅能数字、空格、-、+` }
|
|
31
31
|
],
|
|
32
32
|
sellerTelPhone: (label: string) => [
|
|
33
|
-
|
|
33
|
+
|
|
34
34
|
{ max: 100, message: `${label}内容超长` },
|
|
35
35
|
{ pattern: /^[0-9\s\-\+]+$/g, message: `${label}仅能数字、空格、-、+` }
|
|
36
36
|
],
|
|
@@ -206,7 +206,7 @@ export default decorator<IStakeholder, IStakeholder & FormComponentProps>(Form.c
|
|
|
206
206
|
</Form.Item>
|
|
207
207
|
</Col>
|
|
208
208
|
|
|
209
|
-
<Col span={10+
|
|
209
|
+
<Col span={10 + leqispanW} style={{ display: isExpand ? undefined : 'none' }} >
|
|
210
210
|
<Form.Item label='销售方地址' colon={false}>
|
|
211
211
|
{getFieldDecorator('sellerAddress', {
|
|
212
212
|
rules: getRules('sellerAddress', [{ max: 300, message: '销售方地址内容超长' }])
|
|
@@ -214,7 +214,7 @@ export default decorator<IStakeholder, IStakeholder & FormComponentProps>(Form.c
|
|
|
214
214
|
</Form.Item>
|
|
215
215
|
</Col>
|
|
216
216
|
|
|
217
|
-
<Col span={10+
|
|
217
|
+
<Col span={10 + leqispanW} style={{ display: isExpand ? undefined : 'none' }} >
|
|
218
218
|
<Form.Item label='电话' colon={false} className='telephone' >
|
|
219
219
|
{getFieldDecorator('sellerPhone', {
|
|
220
220
|
rules: getRules('sellerPhone', RULES.sellerTelPhone('销售方电话'))
|
|
@@ -229,7 +229,15 @@ export default decorator<IStakeholder, IStakeholder & FormComponentProps>(Form.c
|
|
|
229
229
|
})(<MyInput readOnly={isReadOnly('sellerBank')} placeholder="请输入销售方开户银行" autoComplete="off" />)}
|
|
230
230
|
</Form.Item>
|
|
231
231
|
</Col>
|
|
232
|
-
|
|
232
|
+
{(props.leqi) &&
|
|
233
|
+
<Col span={4} style={{ display: isExpand ? undefined : 'none' }}>
|
|
234
|
+
<Form.Item colon={false}>
|
|
235
|
+
{getFieldDecorator('sellerAddressPhoneFlag', {
|
|
236
|
+
valuePropName: 'checked',
|
|
237
|
+
})(<Checkbox onChange={props?.invoiceMarkCallback} disabled={isReadOnly('sellerAddressPhoneFlag')} style={{ whiteSpace: 'nowrap' }}>是否展示</Checkbox>)}
|
|
238
|
+
</Form.Item>
|
|
239
|
+
</Col>
|
|
240
|
+
}
|
|
233
241
|
<Col span={10 + leqispanW} style={{ display: isExpand ? undefined : 'none' }} >
|
|
234
242
|
<Form.Item label='银行账号' colon={false}>
|
|
235
243
|
{getFieldDecorator('sellerAccount', {
|
|
@@ -241,8 +249,8 @@ export default decorator<IStakeholder, IStakeholder & FormComponentProps>(Form.c
|
|
|
241
249
|
<Col span={4} style={{ display: isExpand ? undefined : 'none' }}>
|
|
242
250
|
<Form.Item colon={false}>
|
|
243
251
|
{getFieldDecorator('sellerBankAccountFlag', {
|
|
244
|
-
|
|
245
|
-
})(<Checkbox onChange={props?.invoiceMarkCallback} disabled={isReadOnly('sellerBankAccountFlag')} style={{whiteSpace:'nowrap'}}>是否展示</Checkbox>)}
|
|
252
|
+
valuePropName: 'checked',
|
|
253
|
+
})(<Checkbox onChange={props?.invoiceMarkCallback} disabled={isReadOnly('sellerBankAccountFlag')} style={{ whiteSpace: 'nowrap' }}>是否展示</Checkbox>)}
|
|
246
254
|
</Form.Item>
|
|
247
255
|
</Col>
|
|
248
256
|
}
|
|
@@ -313,7 +321,7 @@ export default decorator<IStakeholder, IStakeholder & FormComponentProps>(Form.c
|
|
|
313
321
|
</Form.Item>
|
|
314
322
|
</Col>
|
|
315
323
|
|
|
316
|
-
<Col span={10+
|
|
324
|
+
<Col span={10 + leqispanW} style={{ display: isExpand ? undefined : 'none' }} >
|
|
317
325
|
<Form.Item label='购买方地址' colon={false}>
|
|
318
326
|
{getFieldDecorator('buyerAddress', {
|
|
319
327
|
rules: getRules('buyerAddress', [{ max: 100, message: '购买方地址内容超长' }])
|
|
@@ -321,14 +329,20 @@ export default decorator<IStakeholder, IStakeholder & FormComponentProps>(Form.c
|
|
|
321
329
|
</Form.Item>
|
|
322
330
|
</Col>
|
|
323
331
|
|
|
324
|
-
<Col span={10+
|
|
332
|
+
<Col span={10 + leqispanW} style={{ display: isExpand ? undefined : 'none' }} >
|
|
325
333
|
<Form.Item label='电话' colon={false} className='telephone'>
|
|
326
334
|
{getFieldDecorator('buyerPhone', {
|
|
327
335
|
rules: getRules('buyerPhone', RULES.buyerTelPhone('购买方电话'))
|
|
328
336
|
})(<MyInput readOnly={isReadOnly('buyerPhone')} placeholder="请输入电话" autoComplete="off" />)}
|
|
329
337
|
</Form.Item>
|
|
330
338
|
</Col>
|
|
331
|
-
|
|
339
|
+
<Col span={10 + leqispanW} style={{ display: isExpand ? undefined : 'none' }} >
|
|
340
|
+
<Form.Item label='购买方开户银行' colon={false}>
|
|
341
|
+
{getFieldDecorator('buyerBank', {
|
|
342
|
+
rules: getRules('buyerBank', RULES.bankName('购买方开户银行'))
|
|
343
|
+
})(<MyInput readOnly={isReadOnly('buyerBank')} placeholder="请输入购买方开户银行" autoComplete="off" />)}
|
|
344
|
+
</Form.Item>
|
|
345
|
+
</Col>
|
|
332
346
|
<Col span={10 + leqispanW} style={{ display: isExpand ? undefined : 'none' }} >
|
|
333
347
|
<Form.Item label='购买方开户银行' colon={false}>
|
|
334
348
|
{getFieldDecorator('buyerBank', {
|
|
@@ -346,10 +360,10 @@ export default decorator<IStakeholder, IStakeholder & FormComponentProps>(Form.c
|
|
|
346
360
|
</Col>
|
|
347
361
|
{(props.leqi || props.riskData?.code === 'success') &&
|
|
348
362
|
<Col span={4} style={{ display: isExpand ? undefined : 'none' }}>
|
|
349
|
-
<Form.Item
|
|
363
|
+
<Form.Item colon={false}>
|
|
350
364
|
{getFieldDecorator('buyerBankAccountFlag', {
|
|
351
365
|
valuePropName: 'checked',
|
|
352
|
-
})(<Checkbox onChange={props?.invoiceMarkCallback} disabled={isReadOnly('buyerBankAccountFlag')}
|
|
366
|
+
})(<Checkbox onChange={props?.invoiceMarkCallback} disabled={isReadOnly('buyerBankAccountFlag')} style={{ whiteSpace: 'nowrap' }}>是否展示</Checkbox>)}
|
|
353
367
|
</Form.Item>
|
|
354
368
|
</Col>
|
|
355
369
|
}
|
|
@@ -414,19 +428,19 @@ function BuyerNameInput(props: InputProps & { fieldName: string; myform: Wrapped
|
|
|
414
428
|
const onSearch = React.useCallback(async (searchText: string) => {
|
|
415
429
|
await Discontinue.start();
|
|
416
430
|
try {
|
|
417
|
-
if (fieldName === 'buyerName'
|
|
431
|
+
if (fieldName === 'buyerName') {
|
|
418
432
|
if (autoComplete.onBuyerNameSearch) {
|
|
419
433
|
setOptions(await autoComplete.onBuyerNameSearch(searchText));
|
|
420
434
|
}
|
|
421
|
-
} else if (fieldName === 'buyerTaxId'
|
|
435
|
+
} else if (fieldName === 'buyerTaxId') {
|
|
422
436
|
if (autoComplete.onBuyerTaxIdSearch) {
|
|
423
437
|
setOptions(await autoComplete.onBuyerTaxIdSearch(searchText));
|
|
424
438
|
}
|
|
425
|
-
}else if(fieldName === 'supplierName'){
|
|
439
|
+
} else if (fieldName === 'supplierName') {
|
|
426
440
|
if (autoComplete.onSupplierNameSearch) {
|
|
427
441
|
setOptions(await autoComplete.onSupplierNameSearch(searchText));
|
|
428
442
|
}
|
|
429
|
-
}else if(fieldName === 'supplierTaxId'){
|
|
443
|
+
} else if (fieldName === 'supplierTaxId') {
|
|
430
444
|
if (autoComplete.onSupplierTaxIdSearch) {
|
|
431
445
|
setOptions(await autoComplete.onSupplierTaxIdSearch(searchText));
|
|
432
446
|
}
|
|
@@ -200,7 +200,7 @@ export default decorator<IStakeholder, IStakeholder & FormComponentProps>(Form.c
|
|
|
200
200
|
</Form.Item>
|
|
201
201
|
</Col>
|
|
202
202
|
|
|
203
|
-
<Col span={10+
|
|
203
|
+
<Col span={10+leqispanW} style={{ display: isExpand ? undefined : 'none' }} >
|
|
204
204
|
<Form.Item label='购买方地址' colon={false}>
|
|
205
205
|
{getFieldDecorator('buyerAddress', {
|
|
206
206
|
rules: getRules('buyerAddress', [{ max: 100, message: '购买方地址内容超长' }])
|
|
@@ -208,13 +208,22 @@ export default decorator<IStakeholder, IStakeholder & FormComponentProps>(Form.c
|
|
|
208
208
|
</Form.Item>
|
|
209
209
|
</Col>
|
|
210
210
|
|
|
211
|
-
<Col span={10+
|
|
211
|
+
<Col span={10+leqispanW} style={{ display: isExpand ? undefined : 'none' }} >
|
|
212
212
|
<Form.Item label='电话' colon={false} className='telephone'>
|
|
213
213
|
{getFieldDecorator('buyerPhone', {
|
|
214
214
|
rules: getRules('buyerPhone', RULES.buyerTelPhone('购买方电话'))
|
|
215
215
|
})(<MyInput readOnly={isReadOnly('buyerPhone')} placeholder="请输入电话" autoComplete="off" />)}
|
|
216
216
|
</Form.Item>
|
|
217
217
|
</Col>
|
|
218
|
+
{(props.leqi) &&
|
|
219
|
+
<Col span={4} style={{ display: isExpand ? undefined : 'none' }}>
|
|
220
|
+
<Form.Item colon={false}>
|
|
221
|
+
{getFieldDecorator('buyerAddressPhoneFlag', {
|
|
222
|
+
valuePropName: 'checked',
|
|
223
|
+
})(<Checkbox onChange={props?.invoiceMarkCallback} disabled={isReadOnly('buyerAddressPhoneFlag')} style={{whiteSpace:'nowrap'}}>是否展示</Checkbox>)}
|
|
224
|
+
</Form.Item>
|
|
225
|
+
</Col>
|
|
226
|
+
}
|
|
218
227
|
<Col span={10 + leqispanW} style={{ display: isExpand ? undefined : 'none' }} >
|
|
219
228
|
<Form.Item label='购买方开户银行' colon={false}>
|
|
220
229
|
{getFieldDecorator('buyerBank', {
|
|
@@ -281,7 +290,7 @@ export default decorator<IStakeholder, IStakeholder & FormComponentProps>(Form.c
|
|
|
281
290
|
</Form.Item>
|
|
282
291
|
</Col>
|
|
283
292
|
|
|
284
|
-
<Col span={10+
|
|
293
|
+
<Col span={10+leqispanW} style={{ display: isExpand ? undefined : 'none' }} >
|
|
285
294
|
<Form.Item label='销售方地址' colon={false}>
|
|
286
295
|
{getFieldDecorator('sellerAddress', {
|
|
287
296
|
rules: getRules('sellerAddress', [{ max: 300, message: '销售方地址内容超长' }])
|
|
@@ -289,13 +298,22 @@ export default decorator<IStakeholder, IStakeholder & FormComponentProps>(Form.c
|
|
|
289
298
|
</Form.Item>
|
|
290
299
|
</Col>
|
|
291
300
|
|
|
292
|
-
<Col span={10+
|
|
301
|
+
<Col span={10+leqispanW} style={{ display: isExpand ? undefined : 'none' }} >
|
|
293
302
|
<Form.Item label='电话' colon={false} className='telephone' >
|
|
294
303
|
{getFieldDecorator('sellerPhone', {
|
|
295
304
|
rules: getRules('sellerPhone', RULES.sellerTelPhone('销售方电话'))
|
|
296
305
|
})(<MyInput readOnly={isReadOnly('sellerPhone')} placeholder="请输入电话" autoComplete="off" />)}
|
|
297
306
|
</Form.Item>
|
|
298
307
|
</Col>
|
|
308
|
+
{(props.leqi) &&
|
|
309
|
+
<Col span={4} style={{ display: isExpand ? undefined : 'none' }}>
|
|
310
|
+
<Form.Item colon={false}>
|
|
311
|
+
{getFieldDecorator('sellerAddressPhoneFlag', {
|
|
312
|
+
valuePropName: 'checked',
|
|
313
|
+
})(<Checkbox onChange={props?.invoiceMarkCallback} disabled={isReadOnly('sellerAddressPhoneFlag')} style={{whiteSpace:'nowrap'}}>是否展示</Checkbox>)}
|
|
314
|
+
</Form.Item>
|
|
315
|
+
</Col>
|
|
316
|
+
}
|
|
299
317
|
<Col span={10 + leqispanW} style={{ display: isExpand ? undefined : 'none' }} >
|
|
300
318
|
<Form.Item label='销售方开户银行' colon={false}>
|
|
301
319
|
{getFieldDecorator('sellerBank', {
|