kts-component-invoice-operate 3.2.234 → 3.2.235-fuling

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.
Files changed (34) hide show
  1. package/README.md +0 -4
  2. package/dist/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/IGood/index.d.ts +0 -1
  3. package/dist/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/ImportGoods/index.d.ts +0 -2
  4. package/dist/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/index.d.ts +0 -2
  5. package/dist/Invoice/ui/default/GoodsList/index.d.ts +0 -1
  6. package/dist/Invoice/ui/default/GoodsList/ui/AddRowButton/index.d.ts +1 -1
  7. package/dist/Invoice/ui/digtal/GoodsList/index.d.ts +0 -1
  8. package/dist/Invoice/ui/digtal/GoodsList/ui/TaxIncludedSwitch/index.d.ts +1 -4
  9. package/dist/index.esm.js +254 -708
  10. package/dist/index.js +253 -707
  11. package/package.json +1 -1
  12. package/src/Invoice/Invoice-digtal/_test/easiest/index.tsx +1 -1
  13. package/src/Invoice/Invoice-digtal/_test/realEstateInfo/index.tsx +7 -69
  14. package/src/Invoice/Invoice-digtal/index.md +9 -2
  15. package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/IGood/index.ts +0 -2
  16. package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/ImportGoods/index.ts +0 -3
  17. package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/index.ts +0 -3
  18. package/src/Invoice/InvoiceController/fns/saveEditGood.ts +2 -2
  19. package/src/Invoice/_test/deduction/index.tsx +6 -28
  20. package/src/Invoice/index.md +4 -4
  21. package/src/Invoice/ui/default/GoodsList/index.tsx +1 -3
  22. package/src/Invoice/ui/default/GoodsList/ui/AddRowButton/index.tsx +1 -8
  23. package/src/Invoice/ui/default/ImportGoodsDrawer/index.tsx +1 -4
  24. package/src/Invoice/ui/digtal/Architecture/index.tsx +1 -1
  25. package/src/Invoice/ui/digtal/FreightList/index.tsx +1 -1
  26. package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/index.tsx +23 -37
  27. package/src/Invoice/ui/digtal/GoodsList/index.tsx +1 -3
  28. package/src/Invoice/ui/digtal/GoodsList/ui/AddRowButton/index.tsx +10 -20
  29. package/src/Invoice/ui/digtal/GoodsList/ui/TableVirtual/index.tsx +6 -11
  30. package/src/Invoice/ui/digtal/GoodsList/ui/TaxIncludedSwitch/index.tsx +2 -5
  31. package/src/Invoice/ui/digtal/RealEstateInfo/index.less +0 -7
  32. package/src/Invoice/ui/digtal/RealEstateInfo/index.tsx +104 -363
  33. package/src/Invoice/ui/digtal/StakeFarmerholder/index.tsx +9 -9
  34. package/src/Invoice/ui/digtal/Stakeholder/index.tsx +4 -22
package/dist/index.esm.js CHANGED
@@ -8,7 +8,7 @@ import { message as message$1, TableManual, Switch, AutoComplete as AutoComplete
8
8
  import classnames from 'classnames';
9
9
  import { Table } from 'kts-components-antd-x4-v4';
10
10
  import { render } from 'react-dom';
11
- import { DatePicker, Row as Row$1, Col as Col$1, Input as Input$2, Cascader, Select as Select$2 } from 'kts-components-antd-x4';
11
+ import { DatePicker, Row as Row$1, Col as Col$1, Cascader, Input as Input$2, Select as Select$2 } from 'kts-components-antd-x4';
12
12
  import { Input as Input$3, NumberPicker } from '@formily/antd-components';
13
13
  import { createAsyncFormActions, FormEffectHooks, SchemaForm, FormButtonGroup, SchemaMarkupField } from '@formily/antd';
14
14
 
@@ -981,7 +981,6 @@ var ImportGoods = /*#__PURE__*/_createClass(function ImportGoods() {
981
981
  this.dataSource = [];
982
982
  this.pagination = {};
983
983
  this.isVisibleDrawer = false;
984
- this.filter = {};
985
984
  this.topExpand = void 0;
986
985
 
987
986
  this.verifyFn = /*#__PURE__*/function () {
@@ -1175,7 +1174,6 @@ var GoodsListState = /*#__PURE__*/_createClass(function GoodsListState() {
1175
1174
  this.isSalesGifts = false;
1176
1175
  this.addComparisonIndex = void 0;
1177
1176
  this.drag = new Drag();
1178
- this.isValidateGood = true;
1179
1177
  });
1180
1178
 
1181
1179
  var FreightListState = /*#__PURE__*/_createClass(function FreightListState() {
@@ -2219,7 +2217,7 @@ var saveEditGood = /*#__PURE__*/(function () {
2219
2217
  switch (_context.prev = _context.next) {
2220
2218
  case 0:
2221
2219
  editGood = state.goodsListState.editGood;
2222
- form = state.goodsListState.form; // const isValidateGood = state.goodsListState.isValidateGood
2220
+ form = state.goodsListState.form;
2223
2221
 
2224
2222
  if (!(!editGood || !form || state.goodsListState.importGoods.isVisibleDrawer || state.calculatingField)) {
2225
2223
  _context.next = 4;
@@ -10969,7 +10967,7 @@ var Statistics = (function () {
10969
10967
  }, /*#__PURE__*/React.createElement("label", null, "\uFF08\u5C0F\u5199\uFF09 ", lineAmountIncludeTax === '' ? '' : parseFloat(lineAmountIncludeTax).toFixed(2)))));
10970
10968
  });
10971
10969
 
10972
- var AddRowButton = (function (props) {
10970
+ var AddRowButton = (function () {
10973
10971
  var controller = Invoice.useInvoiceController();
10974
10972
  var model = controller.useMemo(function (s) {
10975
10973
  return s.model;
@@ -11002,54 +11000,24 @@ var AddRowButton = (function (props) {
11002
11000
  var disabled = React.useMemo(function () {
11003
11001
  return typeof goodMax === 'number' ? goodsNum >= goodMax : !!searchValue;
11004
11002
  }, [goodMax, goodsNum, searchValue]);
11005
- var onClick = React.useCallback( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
11006
- return _regeneratorRuntime().wrap(function _callee2$(_context2) {
11003
+ var onClick = React.useCallback( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
11004
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
11007
11005
  while (1) {
11008
- switch (_context2.prev = _context2.next) {
11006
+ switch (_context.prev = _context.next) {
11009
11007
  case 0:
11010
- _context2.next = 2;
11011
- return controller.run( /*#__PURE__*/function () {
11012
- var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(s) {
11013
- return _regeneratorRuntime().wrap(function _callee$(_context) {
11014
- while (1) {
11015
- switch (_context.prev = _context.next) {
11016
- case 0:
11017
- if (!s.addGoodsCheck) {
11018
- _context.next = 3;
11019
- break;
11020
- }
11021
-
11022
- _context.next = 3;
11023
- return s.addGoodsCheck();
11024
-
11025
- case 3:
11026
- case "end":
11027
- return _context.stop();
11028
- }
11029
- }
11030
- }, _callee);
11031
- }));
11032
-
11033
- return function (_x) {
11034
- return _ref2.apply(this, arguments);
11035
- };
11036
- }());
11037
-
11038
- case 2:
11039
- console.log('continue');
11040
- _context2.next = 5;
11008
+ _context.next = 2;
11041
11009
  return addGood$1(controller);
11042
11010
 
11043
- case 5:
11044
- _context2.next = 7;
11011
+ case 2:
11012
+ _context.next = 4;
11045
11013
  return rollBottom(controller, rootElement);
11046
11014
 
11047
- case 7:
11015
+ case 4:
11048
11016
  case "end":
11049
- return _context2.stop();
11017
+ return _context.stop();
11050
11018
  }
11051
11019
  }
11052
- }, _callee2);
11020
+ }, _callee);
11053
11021
  })), [controller, rootElement]);
11054
11022
  if (isAddRow === false) return /*#__PURE__*/React.createElement(React.Fragment, null);
11055
11023
  if (model === 'prefab') return /*#__PURE__*/React.createElement(React.Fragment, null);
@@ -11061,35 +11029,35 @@ var AddRowButton = (function (props) {
11061
11029
  });
11062
11030
  /** 添加一个空货物 */
11063
11031
 
11064
- function addGood$1(_x2) {
11032
+ function addGood$1(_x) {
11065
11033
  return _addGood.apply(this, arguments);
11066
11034
  }
11067
11035
  /** 货物列表,滚动到底部 */
11068
11036
 
11069
11037
 
11070
11038
  function _addGood() {
11071
- _addGood = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(controller) {
11072
- return _regeneratorRuntime().wrap(function _callee4$(_context4) {
11039
+ _addGood = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(controller) {
11040
+ return _regeneratorRuntime().wrap(function _callee3$(_context3) {
11073
11041
  while (1) {
11074
- switch (_context4.prev = _context4.next) {
11042
+ switch (_context3.prev = _context3.next) {
11075
11043
  case 0:
11076
- _context4.next = 2;
11044
+ _context3.next = 2;
11077
11045
  return controller.saveEditGood();
11078
11046
 
11079
11047
  case 2:
11080
- _context4.next = 4;
11048
+ _context3.next = 4;
11081
11049
  return controller.wait();
11082
11050
 
11083
11051
  case 4:
11084
- _context4.next = 6;
11052
+ _context3.next = 6;
11085
11053
  return controller.run( /*#__PURE__*/function () {
11086
- var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(s) {
11087
- return _regeneratorRuntime().wrap(function _callee3$(_context3) {
11054
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(s) {
11055
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
11088
11056
  while (1) {
11089
- switch (_context3.prev = _context3.next) {
11057
+ switch (_context2.prev = _context2.next) {
11090
11058
  case 0:
11091
11059
  if (!s.goodsListState.editGood) {
11092
- _context3.next = 3;
11060
+ _context2.next = 3;
11093
11061
  break;
11094
11062
  }
11095
11063
 
@@ -11097,74 +11065,74 @@ function _addGood() {
11097
11065
  content: '你正在编辑一个货物',
11098
11066
  key: '你正在编辑一个货物'
11099
11067
  });
11100
- return _context3.abrupt("return");
11068
+ return _context2.abrupt("return");
11101
11069
 
11102
11070
  case 3:
11103
- _context3.next = 5;
11071
+ _context2.next = 5;
11104
11072
  return controller.addGood({
11105
11073
  taxRate: s.goodsListState.defaultRate,
11106
11074
  lineAttribute: LineAttributeType$1.正常
11107
11075
  });
11108
11076
 
11109
11077
  case 5:
11110
- s.goodsListState.editGood = _context3.sent;
11078
+ s.goodsListState.editGood = _context2.sent;
11111
11079
 
11112
11080
  case 6:
11113
11081
  case "end":
11114
- return _context3.stop();
11082
+ return _context2.stop();
11115
11083
  }
11116
11084
  }
11117
- }, _callee3);
11085
+ }, _callee2);
11118
11086
  }));
11119
11087
 
11120
- return function (_x5) {
11121
- return _ref3.apply(this, arguments);
11088
+ return function (_x4) {
11089
+ return _ref2.apply(this, arguments);
11122
11090
  };
11123
11091
  }());
11124
11092
 
11125
11093
  case 6:
11126
11094
  case "end":
11127
- return _context4.stop();
11095
+ return _context3.stop();
11128
11096
  }
11129
11097
  }
11130
- }, _callee4);
11098
+ }, _callee3);
11131
11099
  }));
11132
11100
  return _addGood.apply(this, arguments);
11133
11101
  }
11134
11102
 
11135
- function rollBottom(_x3, _x4) {
11103
+ function rollBottom(_x2, _x3) {
11136
11104
  return _rollBottom.apply(this, arguments);
11137
11105
  }
11138
11106
 
11139
11107
  function _rollBottom() {
11140
- _rollBottom = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(controller, rootElement) {
11108
+ _rollBottom = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(controller, rootElement) {
11141
11109
  var cont;
11142
- return _regeneratorRuntime().wrap(function _callee5$(_context5) {
11110
+ return _regeneratorRuntime().wrap(function _callee4$(_context4) {
11143
11111
  while (1) {
11144
- switch (_context5.prev = _context5.next) {
11112
+ switch (_context4.prev = _context4.next) {
11145
11113
  case 0:
11146
- _context5.next = 2;
11114
+ _context4.next = 2;
11147
11115
  return controller.wait();
11148
11116
 
11149
11117
  case 2:
11150
11118
  cont = rootElement === null || rootElement === void 0 ? void 0 : rootElement.querySelector('.ktsAntX-table-body');
11151
11119
 
11152
11120
  if (cont) {
11153
- _context5.next = 5;
11121
+ _context4.next = 5;
11154
11122
  break;
11155
11123
  }
11156
11124
 
11157
- return _context5.abrupt("return");
11125
+ return _context4.abrupt("return");
11158
11126
 
11159
11127
  case 5:
11160
11128
  cont.scrollTop = cont.scrollHeight;
11161
11129
 
11162
11130
  case 6:
11163
11131
  case "end":
11164
- return _context5.stop();
11132
+ return _context4.stop();
11165
11133
  }
11166
11134
  }
11167
- }, _callee5);
11135
+ }, _callee4);
11168
11136
  }));
11169
11137
  return _rollBottom.apply(this, arguments);
11170
11138
  }
@@ -16950,9 +16918,7 @@ var Main = decorator(Form.create())(function (props) {
16950
16918
  className: "kts-invoice-operate-goods-list-able"
16951
16919
  }, /*#__PURE__*/React.createElement("div", {
16952
16920
  className: "kts-invoice-operate-goods-list-able-list"
16953
- }, /*#__PURE__*/React.createElement(AddRowButton, {
16954
- addGoodsCheck: props.addGoodsCheck
16955
- }), endowCodeButton.button, delRowButton.button, mergeDetails.button, mergeDiscount.button, addDiscountRowButton.drawer, salesDiscount.button, salesGifts.button, /*#__PURE__*/React.createElement(Search, null)), /*#__PURE__*/React.createElement("div", {
16921
+ }, /*#__PURE__*/React.createElement(AddRowButton, null), endowCodeButton.button, delRowButton.button, mergeDetails.button, mergeDiscount.button, addDiscountRowButton.drawer, salesDiscount.button, salesGifts.button, /*#__PURE__*/React.createElement(Search, null)), /*#__PURE__*/React.createElement("div", {
16956
16922
  className: "kts-invoice-operate-goods-list-able-extend"
16957
16923
  }, props.menuExpansion, /*#__PURE__*/React.createElement(DescribeSwitch, null), /*#__PURE__*/React.createElement(TaxIncludedSwitch, null))), /*#__PURE__*/React.createElement("div", {
16958
16924
  className: classnames('kts-invoice-operate-goods-list-table', {
@@ -17956,7 +17922,7 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
17956
17922
  placeholder: "\u8BF7\u8F93\u5165\u7EDF\u4E00\u793E\u4F1A\u4FE1\u7528\u4EE3\u7801/\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7",
17957
17923
  autoComplete: "off"
17958
17924
  })))), /*#__PURE__*/React.createElement(Col, {
17959
- span: 10 + leqispanW,
17925
+ span: 10 + riskspanW,
17960
17926
  style: {
17961
17927
  display: isExpand ? undefined : 'none'
17962
17928
  }
@@ -17973,7 +17939,7 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
17973
17939
  placeholder: "\u8BF7\u8F93\u5165\u8D2D\u4E70\u65B9\u5730\u5740",
17974
17940
  autoComplete: "off"
17975
17941
  })))), /*#__PURE__*/React.createElement(Col, {
17976
- span: 10 + leqispanW,
17942
+ span: 10 + riskspanW,
17977
17943
  style: {
17978
17944
  display: isExpand ? undefined : 'none'
17979
17945
  }
@@ -17987,22 +17953,7 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
17987
17953
  readOnly: isReadOnly('buyerPhone'),
17988
17954
  placeholder: "\u8BF7\u8F93\u5165\u7535\u8BDD",
17989
17955
  autoComplete: "off"
17990
- })))), props.leqi && /*#__PURE__*/React.createElement(Col, {
17991
- span: 4,
17992
- style: {
17993
- display: isExpand ? undefined : 'none'
17994
- }
17995
- }, /*#__PURE__*/React.createElement(Form.Item, {
17996
- colon: false
17997
- }, getFieldDecorator('buyerAddressPhoneFlag', {
17998
- valuePropName: 'checked'
17999
- })( /*#__PURE__*/React.createElement(Checkbox$1, {
18000
- onChange: props === null || props === void 0 ? void 0 : props.invoiceMarkCallback,
18001
- disabled: isReadOnly('buyerAddressPhoneFlag'),
18002
- style: {
18003
- whiteSpace: 'nowrap'
18004
- }
18005
- }, "\u662F\u5426\u5C55\u793A")))), /*#__PURE__*/React.createElement(Col, {
17956
+ })))), /*#__PURE__*/React.createElement(Col, {
18006
17957
  span: 10 + leqispanW,
18007
17958
  style: {
18008
17959
  display: isExpand ? undefined : 'none'
@@ -18094,7 +18045,7 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
18094
18045
  placeholder: "\u8BF7\u8F93\u5165\u7EDF\u4E00\u793E\u4F1A\u4FE1\u7528\u4EE3\u7801/\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7",
18095
18046
  autoComplete: "off"
18096
18047
  })))), /*#__PURE__*/React.createElement(Col, {
18097
- span: 10 + leqispanW,
18048
+ span: 10 + riskspanW,
18098
18049
  style: {
18099
18050
  display: isExpand ? undefined : 'none'
18100
18051
  }
@@ -18111,7 +18062,7 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
18111
18062
  placeholder: "\u8BF7\u8F93\u5165\u9500\u552E\u65B9\u5730\u5740",
18112
18063
  autoComplete: "off"
18113
18064
  })))), /*#__PURE__*/React.createElement(Col, {
18114
- span: 10 + leqispanW,
18065
+ span: 10 + riskspanW,
18115
18066
  style: {
18116
18067
  display: isExpand ? undefined : 'none'
18117
18068
  }
@@ -18125,22 +18076,7 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
18125
18076
  readOnly: isReadOnly('sellerPhone'),
18126
18077
  placeholder: "\u8BF7\u8F93\u5165\u7535\u8BDD",
18127
18078
  autoComplete: "off"
18128
- })))), props.leqi && /*#__PURE__*/React.createElement(Col, {
18129
- span: 4,
18130
- style: {
18131
- display: isExpand ? undefined : 'none'
18132
- }
18133
- }, /*#__PURE__*/React.createElement(Form.Item, {
18134
- colon: false
18135
- }, getFieldDecorator('sellerAddressPhoneFlag', {
18136
- valuePropName: 'checked'
18137
- })( /*#__PURE__*/React.createElement(Checkbox$1, {
18138
- onChange: props === null || props === void 0 ? void 0 : props.invoiceMarkCallback,
18139
- disabled: isReadOnly('sellerAddressPhoneFlag'),
18140
- style: {
18141
- whiteSpace: 'nowrap'
18142
- }
18143
- }, "\u662F\u5426\u5C55\u793A")))), /*#__PURE__*/React.createElement(Col, {
18079
+ })))), /*#__PURE__*/React.createElement(Col, {
18144
18080
  span: 10 + leqispanW,
18145
18081
  style: {
18146
18082
  display: isExpand ? undefined : 'none'
@@ -19256,13 +19192,14 @@ var CardSelect = /*#__PURE__*/function (_React$Component2) {
19256
19192
  label: "中华人民共和国台湾居民居住证",
19257
19193
  value: "238"
19258
19194
  }];
19259
- var getLable = React.useCallback(function (value) {
19195
+
19196
+ function getLable(value) {
19260
19197
  var _option$find;
19261
19198
 
19262
19199
  return ((_option$find = option.find(function (e) {
19263
19200
  return e.value === value;
19264
19201
  })) === null || _option$find === void 0 ? void 0 : _option$find.label) || '';
19265
- }, []);
19202
+ }
19266
19203
 
19267
19204
  if (props.readOnly) {
19268
19205
  return /*#__PURE__*/React.createElement("span", {
@@ -20036,13 +19973,14 @@ var NationalSelect = /*#__PURE__*/function (_React$Component3) {
20036
19973
  value: "A00",
20037
19974
  label: "科索沃"
20038
19975
  }];
20039
- var getLable = React.useCallback(function (value) {
19976
+
19977
+ function getLable(value) {
20040
19978
  var _option$find2;
20041
19979
 
20042
19980
  return ((_option$find2 = option.find(function (e) {
20043
19981
  return e.value === value;
20044
19982
  })) === null || _option$find2 === void 0 ? void 0 : _option$find2.label) || '';
20045
- }, []);
19983
+ }
20046
19984
 
20047
19985
  if (props.readOnly) {
20048
19986
  return /*#__PURE__*/React.createElement("span", {
@@ -20186,7 +20124,7 @@ var css_248z$j = ".kts-invoice-operate-goods-table-virtual .ktsAntX-table-body {
20186
20124
  styleInject(css_248z$j);
20187
20125
 
20188
20126
  function TableVirtual$1 (props) {
20189
- var _props$dataSource4, _props$dataSource5;
20127
+ var _props$dataSource2;
20190
20128
 
20191
20129
  var _React$useState = React.useState(null),
20192
20130
  _React$useState2 = _slicedToArray(_React$useState, 2),
@@ -20228,10 +20166,8 @@ function TableVirtual$1 (props) {
20228
20166
  }, [self, tableBody]); // 设置占位dom的搞
20229
20167
 
20230
20168
  var placeholderHeight = React.useMemo(function () {
20231
- var _props$dataSource = props.dataSource,
20232
- dataSource = _props$dataSource === void 0 ? [] : _props$dataSource;
20233
- if (!self || !rowHeight || !dataSource || !placeholder) return;
20234
- var placeholderHeight = rowHeight * dataSource.length;
20169
+ if (!self || !rowHeight || !props.dataSource || !placeholder) return;
20170
+ var placeholderHeight = rowHeight * props.dataSource.length;
20235
20171
  placeholder.style.height = "".concat(placeholderHeight, "px");
20236
20172
  return placeholderHeight;
20237
20173
  }, [self, rowHeight, props.dataSource, placeholder]);
@@ -20243,12 +20179,12 @@ function TableVirtual$1 (props) {
20243
20179
  }, [tableBody, rowHeight, placeholderHeight]); // 计算渲染的行
20244
20180
 
20245
20181
  var dataSource = React.useMemo(function () {
20246
- var _props$dataSource2;
20182
+ var _props$dataSource;
20247
20183
 
20248
20184
  if (!props.dataSource) return [];
20249
20185
  if (props.dataSource.length < 10) return props.dataSource;
20250
20186
  if (!rowSize) return [props.dataSource[0]];
20251
- return (_props$dataSource2 = props.dataSource) === null || _props$dataSource2 === void 0 ? void 0 : _props$dataSource2.slice(pointer, pointer + 2 * rowSize);
20187
+ return (_props$dataSource = props.dataSource) === null || _props$dataSource === void 0 ? void 0 : _props$dataSource.slice(pointer, pointer + 2 * rowSize);
20252
20188
  }, [props.dataSource, pointer, rowSize]); // 监听滚动
20253
20189
 
20254
20190
  React.useEffect(function () {
@@ -20267,24 +20203,17 @@ function TableVirtual$1 (props) {
20267
20203
  }, [self, placeholder, props.dataSource, rowHeight, rowSize]); // 移动列表
20268
20204
 
20269
20205
  React.useEffect(function () {
20270
- var _props$dataSource3;
20271
-
20272
20206
  if (!self) return;
20273
20207
  var table = self.querySelector('.ktsAntX-table .ktsAntX-table-body>table');
20274
20208
  if (!table) return;
20275
-
20276
- if ((((_props$dataSource3 = props.dataSource) === null || _props$dataSource3 === void 0 ? void 0 : _props$dataSource3.length) || 0) < 10) {
20277
- table.style.top = '0px';
20278
- } else {
20279
- table.style.top = "".concat(pointer * rowHeight, "px");
20280
- }
20281
- }, [pointer, self, rowHeight, (_props$dataSource4 = props.dataSource) === null || _props$dataSource4 === void 0 ? void 0 : _props$dataSource4.length]);
20209
+ table.style.top = "".concat(pointer * rowHeight, "px");
20210
+ }, [pointer, self, rowHeight]);
20282
20211
  React.useEffect(function () {
20283
20212
  if (!self) return;
20284
20213
  var cont = self.querySelector('.kts-invoice-operate-goods-table-virtual .ktsAntX-table-body');
20285
20214
  if (!cont) return;
20286
20215
  cont.scrollTop = 0;
20287
- }, [(_props$dataSource5 = props.dataSource) === null || _props$dataSource5 === void 0 ? void 0 : _props$dataSource5.length]);
20216
+ }, [(_props$dataSource2 = props.dataSource) === null || _props$dataSource2 === void 0 ? void 0 : _props$dataSource2.length]);
20288
20217
  return /*#__PURE__*/React.createElement("span", {
20289
20218
  className: "kts-invoice-operate-goods-table-virtual",
20290
20219
  ref: function ref(e) {
@@ -20527,86 +20456,43 @@ function addGood$2(_x) {
20527
20456
 
20528
20457
 
20529
20458
  function _addGood$1() {
20530
- _addGood$1 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(controller) {
20531
- var _controller$formList$;
20532
-
20533
- return _regeneratorRuntime().wrap(function _callee5$(_context5) {
20459
+ _addGood$1 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(controller) {
20460
+ return _regeneratorRuntime().wrap(function _callee4$(_context4) {
20534
20461
  while (1) {
20535
- switch (_context5.prev = _context5.next) {
20462
+ switch (_context4.prev = _context4.next) {
20536
20463
  case 0:
20537
- _context5.next = 2;
20538
- return (_controller$formList$ = controller.formList.get('realEstateInfo')) === null || _controller$formList$ === void 0 ? void 0 : _controller$formList$.validateFields( /*#__PURE__*/function () {
20539
- var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(err, values) {
20540
- return _regeneratorRuntime().wrap(function _callee2$(_context2) {
20541
- while (1) {
20542
- switch (_context2.prev = _context2.next) {
20543
- case 0:
20544
- if (!err) {
20545
- _context2.next = 3;
20546
- break;
20547
- }
20548
-
20549
- message$1.error('请先填写发票行信息,再添加新的行');
20550
- return _context2.abrupt("return");
20551
-
20552
- case 3:
20553
- case "end":
20554
- return _context2.stop();
20555
- }
20556
- }
20557
- }, _callee2);
20558
- }));
20559
-
20560
- return function (_x4, _x5) {
20561
- return _ref2.apply(this, arguments);
20562
- };
20563
- }());
20564
-
20565
- case 2:
20566
- _context5.next = 4;
20464
+ _context4.next = 2;
20567
20465
  return controller.saveEditGood();
20568
20466
 
20569
- case 4:
20570
- _context5.next = 6;
20467
+ case 2:
20468
+ _context4.next = 4;
20571
20469
  return controller.wait();
20572
20470
 
20573
- case 6:
20574
- _context5.next = 8;
20471
+ case 4:
20472
+ _context4.next = 6;
20575
20473
  return controller.run( /*#__PURE__*/function () {
20576
- var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(s) {
20577
- var isValidateGood, _controller$state$goo;
20474
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(s) {
20475
+ var _controller$state$goo;
20578
20476
 
20579
- return _regeneratorRuntime().wrap(function _callee4$(_context4) {
20477
+ return _regeneratorRuntime().wrap(function _callee3$(_context3) {
20580
20478
  while (1) {
20581
- switch (_context4.prev = _context4.next) {
20479
+ switch (_context3.prev = _context3.next) {
20582
20480
  case 0:
20583
20481
  if (!s.goodsListState.editGood) {
20584
- _context4.next = 5;
20585
- break;
20586
- }
20587
-
20588
- // message.error({
20589
- // content: '你正在编辑一个货物',
20590
- // key: '你正在编辑一个货物',
20591
- // });
20592
- // return;
20593
- isValidateGood = controller.state.goodsListState.isValidateGood;
20594
-
20595
- if (!isValidateGood) {
20596
- _context4.next = 5;
20482
+ _context3.next = 3;
20597
20483
  break;
20598
20484
  }
20599
20485
 
20600
- _context4.next = 5;
20486
+ _context3.next = 3;
20601
20487
  return (_controller$state$goo = controller.state.goodsListState.form) === null || _controller$state$goo === void 0 ? void 0 : _controller$state$goo.validateFields( /*#__PURE__*/function () {
20602
- var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(err, values) {
20488
+ var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(err, values) {
20603
20489
  var firstError;
20604
- return _regeneratorRuntime().wrap(function _callee3$(_context3) {
20490
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
20605
20491
  while (1) {
20606
- switch (_context3.prev = _context3.next) {
20492
+ switch (_context2.prev = _context2.next) {
20607
20493
  case 0:
20608
20494
  if (!err) {
20609
- _context3.next = 4;
20495
+ _context2.next = 4;
20610
20496
  break;
20611
20497
  }
20612
20498
 
@@ -20615,50 +20501,50 @@ function _addGood$1() {
20615
20501
  content: firstError.errors[0].message,
20616
20502
  key: '你正在编辑一个货物'
20617
20503
  });
20618
- return _context3.abrupt("return");
20504
+ return _context2.abrupt("return");
20619
20505
 
20620
20506
  case 4:
20621
20507
  case "end":
20622
- return _context3.stop();
20508
+ return _context2.stop();
20623
20509
  }
20624
20510
  }
20625
- }, _callee3);
20511
+ }, _callee2);
20626
20512
  }));
20627
20513
 
20628
- return function (_x7, _x8) {
20629
- return _ref4.apply(this, arguments);
20514
+ return function (_x5, _x6) {
20515
+ return _ref3.apply(this, arguments);
20630
20516
  };
20631
20517
  }());
20632
20518
 
20633
- case 5:
20634
- _context4.next = 7;
20519
+ case 3:
20520
+ _context3.next = 5;
20635
20521
  return controller.addGood({
20636
20522
  taxRate: s.goodsListState.defaultRate,
20637
20523
  lineAttribute: LineAttributeType$1.正常
20638
20524
  });
20639
20525
 
20640
- case 7:
20641
- s.goodsListState.editGood = _context4.sent;
20526
+ case 5:
20527
+ s.goodsListState.editGood = _context3.sent;
20642
20528
 
20643
- case 8:
20529
+ case 6:
20644
20530
  case "end":
20645
- return _context4.stop();
20531
+ return _context3.stop();
20646
20532
  }
20647
20533
  }
20648
- }, _callee4);
20534
+ }, _callee3);
20649
20535
  }));
20650
20536
 
20651
- return function (_x6) {
20652
- return _ref3.apply(this, arguments);
20537
+ return function (_x4) {
20538
+ return _ref2.apply(this, arguments);
20653
20539
  };
20654
20540
  }());
20655
20541
 
20656
- case 8:
20542
+ case 6:
20657
20543
  case "end":
20658
- return _context5.stop();
20544
+ return _context4.stop();
20659
20545
  }
20660
20546
  }
20661
- }, _callee5);
20547
+ }, _callee4);
20662
20548
  }));
20663
20549
  return _addGood$1.apply(this, arguments);
20664
20550
  }
@@ -20668,34 +20554,34 @@ function rollBottom$1(_x2, _x3) {
20668
20554
  }
20669
20555
 
20670
20556
  function _rollBottom$1() {
20671
- _rollBottom$1 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6(controller, rootElement) {
20557
+ _rollBottom$1 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(controller, rootElement) {
20672
20558
  var cont;
20673
- return _regeneratorRuntime().wrap(function _callee6$(_context6) {
20559
+ return _regeneratorRuntime().wrap(function _callee5$(_context5) {
20674
20560
  while (1) {
20675
- switch (_context6.prev = _context6.next) {
20561
+ switch (_context5.prev = _context5.next) {
20676
20562
  case 0:
20677
- _context6.next = 2;
20563
+ _context5.next = 2;
20678
20564
  return controller.wait();
20679
20565
 
20680
20566
  case 2:
20681
20567
  cont = rootElement === null || rootElement === void 0 ? void 0 : rootElement.querySelector('.ktsAntX-table-body');
20682
20568
 
20683
20569
  if (cont) {
20684
- _context6.next = 5;
20570
+ _context5.next = 5;
20685
20571
  break;
20686
20572
  }
20687
20573
 
20688
- return _context6.abrupt("return");
20574
+ return _context5.abrupt("return");
20689
20575
 
20690
20576
  case 5:
20691
20577
  cont.scrollTop = cont.scrollHeight;
20692
20578
 
20693
20579
  case 6:
20694
20580
  case "end":
20695
- return _context6.stop();
20581
+ return _context5.stop();
20696
20582
  }
20697
20583
  }
20698
- }, _callee6);
20584
+ }, _callee5);
20699
20585
  }));
20700
20586
  return _rollBottom$1.apply(this, arguments);
20701
20587
  }
@@ -22022,7 +21908,7 @@ var onChangeSwitchTax$1 = /*#__PURE__*/function () {
22022
21908
  };
22023
21909
  }();
22024
21910
 
22025
- var TaxIncludedSwitch$1 = (function (props) {
21911
+ var TaxIncludedSwitch$1 = (function () {
22026
21912
  var controller = Invoice.useInvoiceController();
22027
21913
  /** 是否含税 */
22028
21914
 
@@ -22041,9 +21927,8 @@ var TaxIncludedSwitch$1 = (function (props) {
22041
21927
  switch (_context.prev = _context.next) {
22042
21928
  case 0:
22043
21929
  onChangeSwitchTax$1(controller, e);
22044
- props.onChange && props.onChange(e);
22045
21930
 
22046
- case 2:
21931
+ case 1:
22047
21932
  case "end":
22048
21933
  return _context.stop();
22049
21934
  }
@@ -22948,9 +22833,6 @@ var useColumns$1 = (function (form) {
22948
22833
  var changeField = controller.useMemo(function (e) {
22949
22834
  return e.calculatingField;
22950
22835
  }, []);
22951
- var isValidateGood = controller.useMemo(function (s) {
22952
- return s.goodsListState.isValidateGood;
22953
- }, []);
22954
22836
  /** 计算中启动字段 */
22955
22837
 
22956
22838
  var setChangeField = React.useCallback(function (value) {
@@ -23045,37 +22927,25 @@ var useColumns$1 = (function (form) {
23045
22927
  while (1) {
23046
22928
  switch (_context2.prev = _context2.next) {
23047
22929
  case 0:
23048
- if (!isValidateGood) {
23049
- _context2.next = 11;
23050
- break;
23051
- }
23052
-
23053
- _context2.next = 3;
22930
+ _context2.next = 2;
23054
22931
  return controller.wait();
23055
22932
 
23056
- case 3:
22933
+ case 2:
23057
22934
  value = controller.state.goodsListState.editGood;
23058
22935
 
23059
22936
  if (!(!(value === null || value === void 0 ? void 0 : value.itemName) && !(value === null || value === void 0 ? void 0 : value.itemNameSelf))) {
23060
- _context2.next = 8;
22937
+ _context2.next = 7;
23061
22938
  break;
23062
22939
  }
23063
22940
 
23064
22941
  callback('项目名称不能为空');
23065
- _context2.next = 9;
22942
+ _context2.next = 8;
23066
22943
  break;
23067
22944
 
23068
- case 8:
22945
+ case 7:
23069
22946
  return _context2.abrupt("return");
23070
22947
 
23071
- case 9:
23072
- _context2.next = 12;
23073
- break;
23074
-
23075
- case 11:
23076
- callback();
23077
-
23078
- case 12:
22948
+ case 8:
23079
22949
  case "end":
23080
22950
  return _context2.stop();
23081
22951
  }
@@ -23276,34 +23146,24 @@ var useColumns$1 = (function (form) {
23276
23146
  while (1) {
23277
23147
  switch (_context6.prev = _context6.next) {
23278
23148
  case 0:
23279
- if (!isValidateGood) {
23280
- _context6.next = 10;
23281
- break;
23282
- }
23283
-
23284
- _context6.next = 3;
23149
+ _context6.next = 2;
23285
23150
  return controller.wait();
23286
23151
 
23287
- case 3:
23152
+ case 2:
23288
23153
  isvalue = !!value || value === 0;
23289
23154
  isPrice = !!getFieldValue(isTaxIncluded ? 'priceIncludeTax' : 'priceExcludeTax') || getFieldValue(isTaxIncluded ? 'priceIncludeTax' : 'priceExcludeTax') === 0;
23290
23155
 
23291
23156
  if (!(isvalue || isPrice === isvalue)) {
23292
- _context6.next = 7;
23157
+ _context6.next = 6;
23293
23158
  break;
23294
23159
  }
23295
23160
 
23296
23161
  return _context6.abrupt("return");
23297
23162
 
23298
- case 7:
23163
+ case 6:
23299
23164
  callback('请输入数量');
23300
- _context6.next = 11;
23301
- break;
23302
-
23303
- case 10:
23304
- callback();
23305
23165
 
23306
- case 11:
23166
+ case 7:
23307
23167
  case "end":
23308
23168
  return _context6.stop();
23309
23169
  }
@@ -23521,7 +23381,7 @@ var useColumns$1 = (function (form) {
23521
23381
  initialValue: editGood.lineAmountIncludeTax,
23522
23382
  getValueFromEvent: onNumberValueChange,
23523
23383
  rules: [].concat(_toConsumableArray(getReplenishRules('lineAmountIncludeTax')), [{
23524
- required: isValidateGood,
23384
+ required: true,
23525
23385
  message: '金额不能为空'
23526
23386
  }, {
23527
23387
  pattern: /^[+-]?(0|([1-9]\d*))(\.\d+)?$/,
@@ -23592,7 +23452,7 @@ var useColumns$1 = (function (form) {
23592
23452
  style: {
23593
23453
  padding: '0 10px'
23594
23454
  }
23595
- }, value && formatSearch$1(parseFloat(value).toFixed(2), searchValue));
23455
+ }, formatSearch$1(parseFloat(value).toFixed(2), searchValue));
23596
23456
  }
23597
23457
  }
23598
23458
  }, {
@@ -23609,7 +23469,7 @@ var useColumns$1 = (function (form) {
23609
23469
  initialValue: editGood.lineAmountExcludeTax,
23610
23470
  getValueFromEvent: onNumberValueChange,
23611
23471
  rules: [].concat(_toConsumableArray(getReplenishRules('lineAmountExcludeTax')), [{
23612
- required: isValidateGood,
23472
+ required: true,
23613
23473
  message: '金额不能为空'
23614
23474
  }, {
23615
23475
  pattern: /^[+-]?(0|([1-9]\d*))(\.\d+)?$/,
@@ -23655,7 +23515,7 @@ var useColumns$1 = (function (form) {
23655
23515
  style: {
23656
23516
  padding: '0 10px'
23657
23517
  }
23658
- }, value && formatSearch$1(parseFloat(value).toFixed(2), searchValue));
23518
+ }, formatSearch$1(parseFloat(value).toFixed(2), searchValue));
23659
23519
  }
23660
23520
  }
23661
23521
  }, {
@@ -23671,7 +23531,7 @@ var useColumns$1 = (function (form) {
23671
23531
  return /*#__PURE__*/React.createElement(Form.Item, null, getFieldDecorator('taxRate', {
23672
23532
  initialValue: editGood.taxRate,
23673
23533
  rules: [].concat(_toConsumableArray(getReplenishRules('taxRate')), [{
23674
- required: isValidateGood,
23534
+ required: true,
23675
23535
  message: '请选择税率'
23676
23536
  }, {
23677
23537
  pattern: /^[+-]?(0|([1-9]\d*))(\.\d+)?$/,
@@ -23698,15 +23558,11 @@ var useColumns$1 = (function (form) {
23698
23558
  }, e, "%");
23699
23559
  }))));
23700
23560
  } else {
23701
- if (value || value === '0' || value === 0) {
23702
- return /*#__PURE__*/React.createElement("span", {
23703
- style: {
23704
- padding: '0 10px'
23705
- }
23706
- }, isDutyFree$1(record) ? '免税' : "".concat(value, "%"));
23707
- } else {
23708
- return '';
23709
- }
23561
+ return /*#__PURE__*/React.createElement("span", {
23562
+ style: {
23563
+ padding: '0 10px'
23564
+ }
23565
+ }, isDutyFree$1(record) ? '免税' : "".concat(value, "%"));
23710
23566
  }
23711
23567
  }
23712
23568
  }, {
@@ -23722,7 +23578,7 @@ var useColumns$1 = (function (form) {
23722
23578
  return /*#__PURE__*/React.createElement(Form.Item, null, getFieldDecorator('taxAmount', {
23723
23579
  initialValue: editGood.taxAmount,
23724
23580
  rules: [].concat(_toConsumableArray(getReplenishRules('taxAmount')), [{
23725
- required: isValidateGood,
23581
+ required: true,
23726
23582
  message: '税额不能为空'
23727
23583
  }, {
23728
23584
  validator: function validator(rule, value, callback) {
@@ -23767,7 +23623,7 @@ var useColumns$1 = (function (form) {
23767
23623
  style: {
23768
23624
  padding: '0 10px'
23769
23625
  }
23770
- }, isDutyFree$1(record) ? '***' : value && parseFloat(value).toFixed(2));
23626
+ }, isDutyFree$1(record) ? '***' : parseFloat(value).toFixed(2));
23771
23627
  }
23772
23628
  }
23773
23629
  }] // 含税不含税
@@ -25712,9 +25568,7 @@ var Main$3 = decorator(Form.create())(function (props) {
25712
25568
  }
25713
25569
  }, /*#__PURE__*/React.createElement("div", {
25714
25570
  className: "kts-invoice-operate-goods-list-able"
25715
- }, /*#__PURE__*/React.createElement(AddRowButton$1, null), delRowButton.button, addDiscountRowButton.button, endowCodeButton.button, /*#__PURE__*/React.createElement(TaxIncludedSwitch$1, {
25716
- onChange: props.onTaxSwitchChange
25717
- }), /*#__PURE__*/React.createElement(Search$1, null), /*#__PURE__*/React.createElement("div", {
25571
+ }, /*#__PURE__*/React.createElement(AddRowButton$1, null), delRowButton.button, addDiscountRowButton.button, endowCodeButton.button, /*#__PURE__*/React.createElement(TaxIncludedSwitch$1, null), /*#__PURE__*/React.createElement(Search$1, null), /*#__PURE__*/React.createElement("div", {
25718
25572
  style: {
25719
25573
  flex: 1
25720
25574
  }
@@ -25745,7 +25599,7 @@ var Main$3 = decorator(Form.create())(function (props) {
25745
25599
  })), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Statistics$1, null)));
25746
25600
  });
25747
25601
 
25748
- var css_248z$r = ".kts-invoice-operate-real-estate-info-digtal {\n padding: 20px;\n border-bottom: 2px solid #9F613E;\n border-left: 2px solid #9F613E;\n border-right: 2px solid #9F613E;\n}\n.kts-invoice-operate-real-estate-info-digtal .real-estate-info-digtal-label {\n color: #9F613E;\n font-weight: bold;\n}\n.kts-invoice-operate-real-estate-info-digtal .ktsAnt3x-row.ktsAnt3x-form-item {\n margin-bottom: 0;\n}\n.kts-invoice-operate-real-estate-info-digtal .ktsAntX-row {\n border-bottom: 1px dashed #9F613E;\n}\n.kts-invoice-operate-real-estate-info-digtal .ktsAntX-row:last-child {\n border-bottom: none;\n}\n";
25602
+ var css_248z$r = ".kts-invoice-operate-real-estate-info-digtal {\n padding: 20px;\n border-bottom: 2px solid #9F613E;\n border-left: 2px solid #9F613E;\n border-right: 2px solid #9F613E;\n}\n.kts-invoice-operate-real-estate-info-digtal .real-estate-info-digtal-label {\n color: #9F613E;\n font-weight: bold;\n}\n.kts-invoice-operate-real-estate-info-digtal .ktsAnt3x-row.ktsAnt3x-form-item {\n margin-bottom: 0;\n}\n";
25749
25603
  styleInject(css_248z$r);
25750
25604
 
25751
25605
  var RangePicker = DatePicker.RangePicker;
@@ -25761,272 +25615,126 @@ var RealEstateInfo = decorator(Form.create())(function (props) {
25761
25615
  }, []);
25762
25616
  var readOnly = React.useMemo(function () {
25763
25617
  return model === 'readOnly';
25764
- }, [model]);
25765
- var goodsList = controller.useMemo(function (s) {
25766
- return s.goodsListState.goodsList;
25767
- }, []); //outcome-104 任务 https://wiki.dev.kingxunlian.com/pages/viewpage.action?pageId=180355189
25768
- //商品和服务税收分类合并编码为“3040502020200000000”时,视为停车费业务,针对停车费业务,蓝字发票增加以下判断:
25769
- // 单位必须为“平方米”;
25770
- // 项目名称必须为“车辆停放服务”;
25771
- // 车牌号必填,最多支持填写3个车牌号;除该场景车牌号必须为空;
25772
- // 租赁期起止格式必须为“yyyy-MM-dd HH:mm(租赁期起)”+“空格”+“yyyy-MM-dd HH:mm(租赁期止)。
25773
-
25774
- var isParkFee = React.useCallback(function (taxClassificationCode) {
25775
- if (taxClassificationCode === '3040502020200000000') {
25776
- return true;
25777
- } else {
25778
- return false;
25779
- }
25780
- }, []);
25781
- var indexRef = React.useRef([]);
25782
- useEffect(function () {
25783
- var dd = goodsList === null || goodsList === void 0 ? void 0 : goodsList.reduce(function (acc, cur) {
25784
- if (cur.lineAttribute !== 1) {
25785
- acc.push(cur.$index);
25786
- }
25787
-
25788
- return acc;
25789
- }, []);
25790
- indexRef.current = dd;
25791
- }, [goodsList, indexRef]); // 注册 form
25618
+ }, [model]); // 注册 form
25792
25619
 
25793
25620
  controller.useForm('realEstateInfo', form);
25794
-
25795
- var getList = function getList() {
25796
- var decrease = indexRef.current.length > goodsList.length;
25797
-
25798
- if (decrease) {
25799
- //已删行列表
25800
- var diff = indexRef.current.filter(function (item) {
25801
- return !goodsList.find(function (i) {
25802
- return i.$index === item;
25803
- });
25804
- });
25805
- var formData = form.getFieldValue('realEstateDataDto');
25806
-
25807
- if (Array.isArray(formData) && diff.length > 0) {
25808
- var newForm = formData === null || formData === void 0 ? void 0 : formData.filter(function (item) {
25809
- return !diff.find(function (i) {
25810
- return i === item.$index;
25811
- });
25812
- });
25813
- form.setFieldsValue({
25814
- realEstateDataDto: newForm
25815
- });
25816
- } else {
25817
- form.setFieldsValue({
25818
- realEstateDataDto: undefined
25819
- });
25820
- }
25821
- }
25822
-
25823
- return goodsList.filter(function (item) {
25824
- return item.lineAttribute !== 1;
25825
- }).map(function (item, index) {
25826
- if (item.lineAttribute !== 1) {
25827
- var isParkFeeItem = isParkFee(item.taxClassificationCode);
25828
- return /*#__PURE__*/React.createElement(Row$1, {
25829
- gutter: [17, 0]
25830
- }, /*#__PURE__*/React.createElement(Col$1, {
25831
- span: 6
25832
- }, /*#__PURE__*/React.createElement(Form.Item, {
25833
- style: {
25834
- display: 'none'
25835
- }
25836
- }, getFieldDecorator("realEstateDataDto[".concat(index, "].$index"), {
25837
- initialValue: item.$index
25838
- })( /*#__PURE__*/React.createElement(Input$2, null))), /*#__PURE__*/React.createElement(Form.Item, {
25839
- label: "\u4E0D\u52A8\u4EA7\u5730\u5740"
25840
- }, getFieldDecorator("realEstateDataDto[".concat(index, "].realEstateAddress"), {
25841
- rules: readOnly ? [] : [{
25842
- required: true,
25843
- message: '请选择不动产地址'
25844
- }]
25845
- })(readOnly ? /*#__PURE__*/React.createElement(MyArrString, null) : /*#__PURE__*/React.createElement(Cascader, {
25846
- style: {
25847
- width: '100%'
25848
- },
25849
- options: props.realEstateAddressOptions,
25850
- fieldNames: props.realEstateAddressFieldNames,
25851
- placeholder: "\u8BF7\u9009\u62E9\u7701\u5E02\u533A\u53BF"
25852
- })))), /*#__PURE__*/React.createElement(Col$1, {
25853
- span: 6
25854
- }, /*#__PURE__*/React.createElement(Form.Item, {
25855
- label: "\u8BE6\u7EC6\u5730\u5740"
25856
- }, getFieldDecorator("realEstateDataDto[".concat(index, "].realEstateDetailedAddress"), {
25857
- rules: readOnly ? [] : [{
25858
- required: true,
25859
- message: '请输入详细地址'
25860
- }, {
25861
- max: 120,
25862
- message: '详细地址最多120个字符'
25863
- }, {
25864
- validator: function () {
25865
- var _validator = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(_, value, callback) {
25866
- var pattern;
25867
- return _regeneratorRuntime().wrap(function _callee$(_context) {
25868
- while (1) {
25869
- switch (_context.prev = _context.next) {
25870
- case 0:
25871
- pattern = /街|路|村|乡|镇|道|巷|号/;
25872
-
25873
- if (pattern.test(value)) {
25874
- callback();
25875
- } else {
25876
- callback('地址必须包含“街”、“路”、“村”、“乡”、“镇”、“道”、“巷”、“号”等任意一个关键词');
25877
- }
25878
-
25879
- case 2:
25880
- case "end":
25881
- return _context.stop();
25882
- }
25883
- }
25884
- }, _callee);
25885
- }));
25886
-
25887
- function validator(_x, _x2, _x3) {
25888
- return _validator.apply(this, arguments);
25889
- }
25890
-
25891
- return validator;
25892
- }()
25893
- }]
25894
- })(readOnly ? /*#__PURE__*/React.createElement(MyDiv$3, null) : /*#__PURE__*/React.createElement(Input$2, {
25895
- autoComplete: 'off',
25896
- placeholder: "\u8BF7\u8F93\u5165\u8BE6\u7EC6\u5730\u5740"
25897
- })))), !isParkFeeItem && /*#__PURE__*/React.createElement(Col$1, {
25898
- span: 6
25899
- }, /*#__PURE__*/React.createElement(Form.Item, {
25900
- label: "\u79DF\u8D41\u671F\u8D77\u6B62"
25901
- }, getFieldDecorator("realEstateDataDto[".concat(index, "].leaseTerm"), {
25902
- rules: readOnly ? [] : [{
25903
- required: true,
25904
- message: '请输入租赁期'
25905
- }]
25906
- })(readOnly ? /*#__PURE__*/React.createElement(MyArrMoment, null) : /*#__PURE__*/React.createElement(RangePicker, {
25907
- style: {
25908
- width: '100%'
25909
- }
25910
- })))), isParkFeeItem && /*#__PURE__*/React.createElement(Col$1, {
25911
- span: 6
25912
- }, /*#__PURE__*/React.createElement(Form.Item, {
25913
- label: "\u79DF\u8D41\u671F\u8D77\u6B62"
25914
- }, getFieldDecorator("realEstateDataDto[".concat(index, "].leaseTerm"), {
25915
- rules: readOnly ? [] : [{
25916
- required: true,
25917
- message: '请输入租赁期'
25918
- }]
25919
- })(readOnly ? /*#__PURE__*/React.createElement(MyArrMomentTime, null) : /*#__PURE__*/React.createElement(RangePicker, {
25920
- style: {
25921
- width: '100%'
25922
- },
25923
- showTime: {
25924
- format: 'HH:mm'
25925
- },
25926
- format: "YYYY-MM-DD HH:mm"
25927
- })))), /*#__PURE__*/React.createElement(Col$1, {
25928
- span: 6
25929
- }, /*#__PURE__*/React.createElement(Form.Item, {
25930
- label: "\u8DE8\u5730\uFF08\u5E02\uFF09\u6807\u5FD7"
25931
- }, getFieldDecorator("realEstateDataDto[".concat(index, "].crossCitiesSign"), {
25932
- rules: readOnly ? [] : [{
25933
- required: true,
25934
- message: '请选择跨地(市)标志'
25935
- }]
25936
- })(readOnly ? /*#__PURE__*/React.createElement(MyNY, null) : /*#__PURE__*/React.createElement(Select$2, {
25937
- placeholder: "\u8BF7\u9009\u62E9",
25938
- style: {
25939
- width: '100%'
25940
- }
25941
- }, /*#__PURE__*/React.createElement(Select$2.Option, {
25942
- value: 'Y'
25943
- }, "\u662F"), /*#__PURE__*/React.createElement(Select$2.Option, {
25944
- value: 'N'
25945
- }, "\u5426"))))), /*#__PURE__*/React.createElement(Col$1, {
25946
- span: 6
25947
- }, /*#__PURE__*/React.createElement(Form.Item, {
25948
- label: "\u4EA7\u6743\u8BC1\u4E66/\u4E0D\u52A8\u4EA7\u6743\u8BC1\u53F7"
25949
- }, getFieldDecorator("realEstateDataDto[".concat(index, "].realEstateNumber"), {
25950
- rules: readOnly ? [] : [{
25951
- required: true,
25952
- message: '请输入证书编号,若没有证书填写“无”'
25953
- }, {
25954
- max: 40,
25955
- message: '证书编号最多40个字符'
25956
- }]
25957
- })(readOnly ? /*#__PURE__*/React.createElement(MyDiv$3, null) : /*#__PURE__*/React.createElement(Input$2, {
25958
- autoComplete: 'off',
25959
- placeholder: "\u8BF7\u8F93\u5165\u8BC1\u4E66\u7F16\u53F7\uFF0C\u82E5\u6CA1\u6709\u8BC1\u4E66\u586B\u5199\u201C\u65E0\u201D"
25960
- })))), !isParkFeeItem && /*#__PURE__*/React.createElement(Col$1, {
25961
- span: 6
25962
- }, /*#__PURE__*/React.createElement(Form.Item, {
25963
- label: "\u9762\u79EF\u5355\u4F4D"
25964
- }, getFieldDecorator("realEstateDataDto[".concat(index, "].realEstateUnit"), {
25965
- rules: readOnly ? [] : [{
25966
- required: true,
25967
- message: '请选择面积单位'
25968
- }]
25969
- })(readOnly ? /*#__PURE__*/React.createElement(MyDiv$3, null) : /*#__PURE__*/React.createElement(Select$2, {
25970
- placeholder: "\u8BF7\u9009\u62E9",
25971
- style: {
25972
- width: '100%'
25973
- }
25974
- }, /*#__PURE__*/React.createElement(Select$2.Option, {
25975
- value: "\u5E73\u65B9\u5343\u7C73"
25976
- }, "\u5E73\u65B9\u5343\u7C73"), /*#__PURE__*/React.createElement(Select$2.Option, {
25977
- value: "\u5E73\u65B9\u7C73"
25978
- }, "\u5E73\u65B9\u7C73"), /*#__PURE__*/React.createElement(Select$2.Option, {
25979
- value: "\u516C\u9877"
25980
- }, "\u516C\u9877"), /*#__PURE__*/React.createElement(Select$2.Option, {
25981
- value: "\u4EA9"
25982
- }, "\u4EA9"), /*#__PURE__*/React.createElement(Select$2.Option, {
25983
- value: "h\u33A1"
25984
- }, "h\u33A1"), /*#__PURE__*/React.createElement(Select$2.Option, {
25985
- value: "k\u33A1"
25986
- }, "k\u33A1"), /*#__PURE__*/React.createElement(Select$2.Option, {
25987
- value: "\u33A1"
25988
- }, "\u33A1"))))), isParkFeeItem && /*#__PURE__*/React.createElement(Col$1, {
25989
- span: 6
25990
- }, /*#__PURE__*/React.createElement(Form.Item, {
25991
- label: "\u9762\u79EF\u5355\u4F4D"
25992
- }, getFieldDecorator("realEstateDataDto[".concat(index, "].realEstateUnit"), {
25993
- rules: readOnly ? [] : [{
25994
- required: true,
25995
- message: '请选择面积单位'
25996
- }]
25997
- })(readOnly ? /*#__PURE__*/React.createElement(MyDiv$3, null) : /*#__PURE__*/React.createElement(Select$2, {
25998
- placeholder: "\u8BF7\u9009\u62E9",
25999
- style: {
26000
- width: '100%'
26001
- }
26002
- }, /*#__PURE__*/React.createElement(Select$2.Option, {
26003
- value: "\u5E73\u65B9\u7C73"
26004
- }, "\u5E73\u65B9\u7C73"))))), isParkFeeItem && /*#__PURE__*/React.createElement(LicensePlateNumber, {
26005
- form: form,
26006
- index: index,
26007
- cd: item.cd,
26008
- readOnly: readOnly
26009
- }) // <Col span={6} >
26010
- // <Form.Item label='车牌号' >
26011
- // {getFieldDecorator(`realEstateDataDto[${index}].licensePlateNumber`, {
26012
- // rules: readOnly ? [] : [{ required: true, message: '请选择面积单位' }]
26013
- // })(
26014
- // readOnly
26015
- // ? <MyDiv />
26016
- // : <LicensePlateNumber form={form}/>
26017
- // )}
26018
- // </Form.Item>
26019
- // </Col>
26020
- );
26021
- }
26022
- });
26023
- };
26024
-
26025
25621
  return /*#__PURE__*/React.createElement("div", {
26026
25622
  className: "kts-invoice-operate-real-estate-info-digtal"
26027
25623
  }, /*#__PURE__*/React.createElement("div", {
26028
25624
  className: 'real-estate-info-digtal-label'
26029
- }, "\u7279\u5B9A\u4FE1\u606F-\u4E0D\u52A8\u4EA7\u7ECF\u8425\u79DF\u8D41\u670D\u52A1"), getList());
25625
+ }, "\u7279\u6B8A\u4FE1\u606F-\u4E0D\u52A8\u4EA7\u7ECF\u8425\u79DF\u8D41\u670D\u52A1"), /*#__PURE__*/React.createElement(Row$1, {
25626
+ gutter: [17, 0]
25627
+ }, /*#__PURE__*/React.createElement(Col$1, {
25628
+ span: 6
25629
+ }, /*#__PURE__*/React.createElement(Form.Item, {
25630
+ label: "\u4E0D\u52A8\u4EA7\u5730\u5740"
25631
+ }, getFieldDecorator('realEstateAddress', {
25632
+ rules: readOnly ? [] : [{
25633
+ required: true,
25634
+ message: '请选择不动产地址'
25635
+ }]
25636
+ })(readOnly ? /*#__PURE__*/React.createElement(MyArrString, null) : /*#__PURE__*/React.createElement(Cascader, {
25637
+ style: {
25638
+ width: '100%'
25639
+ },
25640
+ options: props.realEstateAddressOptions,
25641
+ fieldNames: props.realEstateAddressFieldNames,
25642
+ placeholder: "\u8BF7\u9009\u62E9\u7701\u5E02\u533A\u53BF"
25643
+ })))), /*#__PURE__*/React.createElement(Col$1, {
25644
+ span: 6
25645
+ }, /*#__PURE__*/React.createElement(Form.Item, {
25646
+ label: "\u8BE6\u7EC6\u5730\u5740"
25647
+ }, getFieldDecorator('realEstateDetailedAddress', {
25648
+ rules: readOnly ? [] : [{
25649
+ required: true,
25650
+ message: '请输入详细地址'
25651
+ }, {
25652
+ max: 120,
25653
+ message: '详细地址最多120个字符'
25654
+ }, {
25655
+ validator: function validator(_, value) {
25656
+ var pattern = /街|路|村|乡|镇|道|巷|号/;
25657
+ return pattern.test(value) ? Promise.resolve() : Promise.reject('地址必须包含“街”、“路”、“村”、“乡”、“镇”、“道”、“巷”、“号”等任意一个关键词');
25658
+ }
25659
+ }]
25660
+ })(readOnly ? /*#__PURE__*/React.createElement(MyDiv$3, null) : /*#__PURE__*/React.createElement(Input$2, {
25661
+ autoComplete: 'off',
25662
+ placeholder: "\u8BF7\u8F93\u5165\u8BE6\u7EC6\u5730\u5740"
25663
+ })))), /*#__PURE__*/React.createElement(Col$1, {
25664
+ span: 6
25665
+ }, /*#__PURE__*/React.createElement(Form.Item, {
25666
+ label: "\u79DF\u8D41\u671F\u8D77\u6B62"
25667
+ }, getFieldDecorator('leaseTerm', {
25668
+ rules: readOnly ? [] : [{
25669
+ required: true,
25670
+ message: '请输入租赁期'
25671
+ }]
25672
+ })(readOnly ? /*#__PURE__*/React.createElement(MyArrMoment, null) : /*#__PURE__*/React.createElement(RangePicker, {
25673
+ style: {
25674
+ width: '100%'
25675
+ }
25676
+ })))), /*#__PURE__*/React.createElement(Col$1, {
25677
+ span: 6
25678
+ }, /*#__PURE__*/React.createElement(Form.Item, {
25679
+ label: "\u8DE8\u5730\uFF08\u5E02\uFF09\u6807\u5FD7"
25680
+ }, getFieldDecorator('crossCitiesSign', {
25681
+ rules: readOnly ? [] : [{
25682
+ required: true,
25683
+ message: '请选择跨地(市)标志'
25684
+ }]
25685
+ })(readOnly ? /*#__PURE__*/React.createElement(MyNY, null) : /*#__PURE__*/React.createElement(Select$2, {
25686
+ placeholder: "\u8BF7\u9009\u62E9",
25687
+ style: {
25688
+ width: '100%'
25689
+ }
25690
+ }, /*#__PURE__*/React.createElement(Select$2.Option, {
25691
+ value: 'Y'
25692
+ }, "\u662F"), /*#__PURE__*/React.createElement(Select$2.Option, {
25693
+ value: 'N'
25694
+ }, "\u5426"))))), /*#__PURE__*/React.createElement(Col$1, {
25695
+ span: 6
25696
+ }, /*#__PURE__*/React.createElement(Form.Item, {
25697
+ label: "\u4EA7\u6743\u8BC1\u4E66/\u4E0D\u52A8\u4EA7\u6743\u8BC1\u53F7"
25698
+ }, getFieldDecorator('realEstateNumber', {
25699
+ rules: readOnly ? [] : [{
25700
+ required: true,
25701
+ message: '请输入证书编号,若没有证书填写“无”'
25702
+ }, {
25703
+ max: 40,
25704
+ message: '证书编号最多40个字符'
25705
+ }]
25706
+ })(readOnly ? /*#__PURE__*/React.createElement(MyDiv$3, null) : /*#__PURE__*/React.createElement(Input$2, {
25707
+ autoComplete: 'off',
25708
+ placeholder: "\u8BF7\u8F93\u5165\u8BC1\u4E66\u7F16\u53F7\uFF0C\u82E5\u6CA1\u6709\u8BC1\u4E66\u586B\u5199\u201C\u65E0\u201D"
25709
+ })))), /*#__PURE__*/React.createElement(Col$1, {
25710
+ span: 6
25711
+ }, /*#__PURE__*/React.createElement(Form.Item, {
25712
+ label: "\u9762\u79EF\u5355\u4F4D"
25713
+ }, getFieldDecorator('realEstateUnit', {
25714
+ rules: readOnly ? [] : [{
25715
+ required: true,
25716
+ message: '请选择面积单位'
25717
+ }]
25718
+ })(readOnly ? /*#__PURE__*/React.createElement(MyDiv$3, null) : /*#__PURE__*/React.createElement(Select$2, {
25719
+ placeholder: "\u8BF7\u9009\u62E9",
25720
+ style: {
25721
+ width: '100%'
25722
+ }
25723
+ }, /*#__PURE__*/React.createElement(Select$2.Option, {
25724
+ value: "\u5E73\u65B9\u5343\u7C73"
25725
+ }, "\u5E73\u65B9\u5343\u7C73"), /*#__PURE__*/React.createElement(Select$2.Option, {
25726
+ value: "\u5E73\u65B9\u7C73"
25727
+ }, "\u5E73\u65B9\u7C73"), /*#__PURE__*/React.createElement(Select$2.Option, {
25728
+ value: "\u516C\u9877"
25729
+ }, "\u516C\u9877"), /*#__PURE__*/React.createElement(Select$2.Option, {
25730
+ value: "\u4EA9"
25731
+ }, "\u4EA9"), /*#__PURE__*/React.createElement(Select$2.Option, {
25732
+ value: "h\u33A1"
25733
+ }, "h\u33A1"), /*#__PURE__*/React.createElement(Select$2.Option, {
25734
+ value: "k\u33A1"
25735
+ }, "k\u33A1"), /*#__PURE__*/React.createElement(Select$2.Option, {
25736
+ value: "\u33A1"
25737
+ }, "\u33A1")))))));
26030
25738
  });
26031
25739
 
26032
25740
  var MyDiv$3 = /*#__PURE__*/function (_React$Component) {
@@ -26102,52 +25810,22 @@ var MyArrMoment = /*#__PURE__*/function (_React$Component3) {
26102
25810
  color: '#9F603D',
26103
25811
  fontWeight: 600
26104
25812
  }
26105
- }, " - "), /*#__PURE__*/React.createElement("span", null, hooks.isMoment(value[1]) && value[1].format('YYYY-MM-DD')));
25813
+ }, " - "), /*#__PURE__*/React.createElement("span", null, hooks.isMoment(value[1]) && value[0].format('YYYY-MM-DD')));
26106
25814
  }
26107
25815
  }]);
26108
25816
 
26109
25817
  return MyArrMoment;
26110
25818
  }(React.Component);
26111
25819
 
26112
- var MyArrMomentTime = /*#__PURE__*/function (_React$Component4) {
26113
- _inherits(MyArrMomentTime, _React$Component4);
26114
-
26115
- var _super4 = _createSuper(MyArrMomentTime);
26116
-
26117
- function MyArrMomentTime() {
26118
- _classCallCheck(this, MyArrMomentTime);
26119
-
26120
- return _super4.apply(this, arguments);
26121
- }
26122
-
26123
- _createClass(MyArrMomentTime, [{
26124
- key: "render",
26125
- value: function render() {
26126
- var _this$props$value3 = this.props.value,
26127
- value = _this$props$value3 === void 0 ? [] : _this$props$value3;
26128
- return /*#__PURE__*/React.createElement("div", {
26129
- style: this.props.style
26130
- }, /*#__PURE__*/React.createElement("span", null, hooks.isMoment(value[0]) && value[0].format('YYYY-MM-DD HH:mm')), /*#__PURE__*/React.createElement("span", {
26131
- style: {
26132
- color: '#9F603D',
26133
- fontWeight: 600
26134
- }
26135
- }, " - "), /*#__PURE__*/React.createElement("span", null, hooks.isMoment(value[1]) && value[1].format('YYYY-MM-DD HH:mm')));
26136
- }
26137
- }]);
26138
-
26139
- return MyArrMomentTime;
26140
- }(React.Component);
26141
-
26142
- var MyNY = /*#__PURE__*/function (_React$Component5) {
26143
- _inherits(MyNY, _React$Component5);
25820
+ var MyNY = /*#__PURE__*/function (_React$Component4) {
25821
+ _inherits(MyNY, _React$Component4);
26144
25822
 
26145
- var _super5 = _createSuper(MyNY);
25823
+ var _super4 = _createSuper(MyNY);
26146
25824
 
26147
25825
  function MyNY() {
26148
25826
  _classCallCheck(this, MyNY);
26149
25827
 
26150
- return _super5.apply(this, arguments);
25828
+ return _super4.apply(this, arguments);
26151
25829
  }
26152
25830
 
26153
25831
  _createClass(MyNY, [{
@@ -26162,137 +25840,6 @@ var MyNY = /*#__PURE__*/function (_React$Component5) {
26162
25840
  return MyNY;
26163
25841
  }(React.Component);
26164
25842
 
26165
- var LicensePlateNumber = function LicensePlateNumber(props) {
26166
- var _formData$props$index2;
26167
-
26168
- var form = props.form,
26169
- readOnly = props.readOnly;
26170
- var getFieldDecorator = form.getFieldDecorator;
26171
- var licenceLimit = 3; // 最多支持填写3个车牌号
26172
-
26173
- var formData = form.getFieldValue('realEstateDataDto');
26174
-
26175
- var _React$useState = React.useState(new Array(props.cd || 1).fill('')),
26176
- _React$useState2 = _slicedToArray(_React$useState, 2),
26177
- value = _React$useState2[0],
26178
- setVal = _React$useState2[1];
26179
-
26180
- var cd = React.useMemo(function () {
26181
- var _formData$props$index;
26182
-
26183
- return (_formData$props$index = formData[props.index]) === null || _formData$props$index === void 0 ? void 0 : _formData$props$index.cd;
26184
- }, [(_formData$props$index2 = formData[props.index]) === null || _formData$props$index2 === void 0 ? void 0 : _formData$props$index2.cd]); // useEffect(() => {
26185
- // if (cd) {
26186
- // const dd = value.concat(new Array(cd.length-1).fill(''))
26187
- // setVal(dd);
26188
- // }
26189
- // }, [cd])
26190
-
26191
- var onAdd = function onAdd() {
26192
- if (value.length < licenceLimit) {
26193
- setVal([].concat(_toConsumableArray(value), ['']));
26194
- } else {
26195
- message.warn('最多支持填写3个车牌号');
26196
- }
26197
- }; // 删除车牌号
26198
-
26199
-
26200
- var onDelete = function onDelete() {
26201
- if (value.length > 0) {
26202
- var dd = value.slice(0, -1);
26203
- setVal(dd);
26204
- }
26205
- };
26206
-
26207
- return /*#__PURE__*/React.createElement(React.Fragment, null, value.length > 0 && value.map(function (item, key) {
26208
- return /*#__PURE__*/React.createElement(Col$1, {
26209
- span: 6
26210
- }, /*#__PURE__*/React.createElement(Form.Item, {
26211
- label: "\u8F66\u724C\u53F7",
26212
- key: key
26213
- }, getFieldDecorator("realEstateDataDto[".concat(props.index, "].cphList[").concat(key, "]"), {
26214
- rules: readOnly ? [] : [{
26215
- required: true,
26216
- message: '请输入车牌号,最多20位'
26217
- }]
26218
- })(readOnly ? /*#__PURE__*/React.createElement(MyDiv$3, null) : /*#__PURE__*/React.createElement(Input$2, {
26219
- style: {
26220
- width: '100%'
26221
- },
26222
- maxLength: 20,
26223
- autoComplete: 'off',
26224
- placeholder: "\u8BF7\u8F93\u5165\u8F66\u724C\u53F7"
26225
- }))));
26226
- }), !readOnly && /*#__PURE__*/React.createElement(Col$1, {
26227
- span: 6
26228
- }, /*#__PURE__*/React.createElement(Form.Item, null, /*#__PURE__*/React.createElement("div", {
26229
- style: {
26230
- color: 'white'
26231
- }
26232
- }, "1"), /*#__PURE__*/React.createElement("a", {
26233
- style: {
26234
- marginRight: 10
26235
- },
26236
- onClick: onAdd
26237
- }, "\u6DFB\u52A0\u8F66\u724C\u53F7"), value.length > 1 && /*#__PURE__*/React.createElement("a", {
26238
- onClick: onDelete
26239
- }, "\u5220\u9664"))));
26240
- }; // const LicensePlateNumber: React.FC<PriceInputProps> = (props) => {
26241
- // const { form } = props;
26242
- // const { getFieldDecorator } = form;
26243
- // const licenceLimit = 3; // 最多支持填写3个车牌号
26244
- // // const { value = [] } = this.props;
26245
- // const [value, setVal] = React.useState(props.value || ['']);
26246
- // // const newArr = value.filter(e => !!e);
26247
- // const newArrLength = value.length;
26248
- // console.log(value, newArrLength)
26249
- // // 新增车牌号
26250
- // const onAdd = () => {
26251
- // if (newArrLength < licenceLimit) {
26252
- // setVal([...value, '']);
26253
- // props.onChange?.([...value, ''])
26254
- // }
26255
- // }
26256
- // // 删除车牌号
26257
- // const onDelete = () => {
26258
- // if (newArrLength > 0) {
26259
- // const dd = value.slice(0, -1)
26260
- // setVal(dd);
26261
- // props.onChange?.(dd)
26262
- // }
26263
- // }
26264
- // const onInputChange = (e: React.ChangeEvent<HTMLInputElement>, index: number) => {
26265
- // console.log(e.target.value);
26266
- // const dd = value.map((item, i) => {
26267
- // if (i === index) {
26268
- // return e.target.value
26269
- // }
26270
- // return item
26271
- // })
26272
- // setVal(dd);
26273
- // props.onChange?.(dd)
26274
- // }
26275
- // return (
26276
- // <>
26277
- // {newArrLength > 0 && value.map((item, index) => {
26278
- // return
26279
- // <Form.Item label='车牌号' >
26280
- // {getFieldDecorator(`realEstateDataDto[${index}].licensePlateNumber`, {
26281
- // rules: [{ required: true, }]
26282
- // })(
26283
- // <Input onChange={(e) => { onInputChange(e, index) }} key={index} style={{ width: '100%' }} autoComplete='off' placeholder="请输入车牌号" />
26284
- // )}
26285
- // </Form.Item>
26286
- // // <Col span={6} >
26287
- // // <Input onChange={(e) => { onInputChange(e, index) }} key={index} style={{ width: '100%' }} autoComplete='off' placeholder="请输入车牌号" />
26288
- // // </Col>
26289
- // })}
26290
- // <Button type="link" onClick={onAdd}>添加车牌号</Button>
26291
- // {newArrLength > 1 && <Button type="link" onClick={onDelete}>删除</Button>}
26292
- // </>
26293
- // )
26294
- // }
26295
-
26296
25843
  var css_248z$s = ".kts-invoice-operate-real-estate-info-digtal {\n padding: 20px;\n border-bottom: 2px solid #9F613E;\n border-left: 2px solid #9F613E;\n border-right: 2px solid #9F613E;\n}\n.kts-invoice-operate-real-estate-info-digtal .real-estate-info-digtal-label {\n color: #9F613E;\n font-weight: bold;\n}\n.kts-invoice-operate-real-estate-info-digtal .ktsAnt3x-row.ktsAnt3x-form-item {\n margin-bottom: 0;\n}\n.kts-invoice-operate-real-estate-info-digtal .break-word {\n word-break: break-word;\n}\n";
26297
25844
  styleInject(css_248z$s);
26298
25845
 
@@ -26315,7 +25862,7 @@ var Architecture = decorator(Form.create())(function (props) {
26315
25862
  className: "kts-invoice-operate-real-estate-info-digtal"
26316
25863
  }, /*#__PURE__*/React.createElement("div", {
26317
25864
  className: 'real-estate-info-digtal-label'
26318
- }, "\u7279\u5B9A\u4FE1\u606F-\u5EFA\u7B51\u670D\u52A1"), /*#__PURE__*/React.createElement(Row$1, {
25865
+ }, "\u7279\u6B8A\u4FE1\u606F-\u5EFA\u7B51\u670D\u52A1"), /*#__PURE__*/React.createElement(Row$1, {
26319
25866
  gutter: [17, 0]
26320
25867
  }, /*#__PURE__*/React.createElement(Col$1, {
26321
25868
  span: 6
@@ -27921,7 +27468,7 @@ var Main$4 = decorator(Form.create())(function (props) {
27921
27468
  className: "kts-invoice-operate-freight"
27922
27469
  }, /*#__PURE__*/React.createElement("div", {
27923
27470
  className: 'real-estate-info-digtal-label'
27924
- }, "\u7279\u5B9A\u4FE1\u606F-\u8D27\u7269\u8FD0\u8F93"), /*#__PURE__*/React.createElement("div", {
27471
+ }, "\u7279\u6B8A\u4FE1\u606F-\u8D27\u7269\u8FD0\u8F93"), /*#__PURE__*/React.createElement("div", {
27925
27472
  className: "kts-invoice-operate-goods-list-digtal",
27926
27473
  onClick: function onClick(e) {
27927
27474
  e.stopPropagation();
@@ -29384,10 +28931,9 @@ var ImportGoodsDrawer = (function () {
29384
28931
  while (1) {
29385
28932
  switch (_context.prev = _context.next) {
29386
28933
  case 0:
29387
- s.goodsListState.importGoods.filter = {};
29388
28934
  s.goodsListState.importGoods.isVisibleDrawer = false;
29389
28935
 
29390
- case 2:
28936
+ case 1:
29391
28937
  case "end":
29392
28938
  return _context.stop();
29393
28939
  }