kts-component-invoice-operate 3.2.219-chinaship → 3.2.219

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 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, Cascader, Input as Input$2, Select as Select$2 } from 'kts-components-antd-x4';
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';
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
 
@@ -10652,7 +10652,7 @@ var Statistics = (function () {
10652
10652
  }, /*#__PURE__*/React.createElement("label", null, "\uFF08\u5C0F\u5199\uFF09 ", lineAmountIncludeTax === '' ? '' : parseFloat(lineAmountIncludeTax).toFixed(2)))));
10653
10653
  });
10654
10654
 
10655
- var AddRowButton = (function () {
10655
+ var AddRowButton = (function (props) {
10656
10656
  var controller = Invoice.useInvoiceController();
10657
10657
  var model = controller.useMemo(function (s) {
10658
10658
  return s.model;
@@ -10690,14 +10690,26 @@ var AddRowButton = (function () {
10690
10690
  while (1) {
10691
10691
  switch (_context.prev = _context.next) {
10692
10692
  case 0:
10693
- _context.next = 2;
10694
- return addGood$1(controller);
10693
+ _context.t0 = props.addGoodsCheck;
10694
+
10695
+ if (!_context.t0) {
10696
+ _context.next = 4;
10697
+ break;
10698
+ }
10695
10699
 
10696
- case 2:
10697
10700
  _context.next = 4;
10698
- return rollBottom(controller, rootElement);
10701
+ return props.addGoodsCheck();
10699
10702
 
10700
10703
  case 4:
10704
+ console.log('continue');
10705
+ _context.next = 7;
10706
+ return addGood$1(controller);
10707
+
10708
+ case 7:
10709
+ _context.next = 9;
10710
+ return rollBottom(controller, rootElement);
10711
+
10712
+ case 9:
10701
10713
  case "end":
10702
10714
  return _context.stop();
10703
10715
  }
@@ -16603,7 +16615,9 @@ var Main = decorator(Form.create())(function (props) {
16603
16615
  className: "kts-invoice-operate-goods-list-able"
16604
16616
  }, /*#__PURE__*/React.createElement("div", {
16605
16617
  className: "kts-invoice-operate-goods-list-able-list"
16606
- }, /*#__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", {
16618
+ }, /*#__PURE__*/React.createElement(AddRowButton, {
16619
+ addGoodsCheck: props.addGoodsCheck
16620
+ }), endowCodeButton.button, delRowButton.button, mergeDetails.button, mergeDiscount.button, addDiscountRowButton.drawer, salesDiscount.button, salesGifts.button, /*#__PURE__*/React.createElement(Search, null)), /*#__PURE__*/React.createElement("div", {
16607
16621
  className: "kts-invoice-operate-goods-list-able-extend"
16608
16622
  }, props.menuExpansion, /*#__PURE__*/React.createElement(DescribeSwitch, null), /*#__PURE__*/React.createElement(TaxIncludedSwitch, null))), /*#__PURE__*/React.createElement("div", {
16609
16623
  className: classnames('kts-invoice-operate-goods-list-table', {
@@ -17607,7 +17621,7 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
17607
17621
  placeholder: "\u8BF7\u8F93\u5165\u7EDF\u4E00\u793E\u4F1A\u4FE1\u7528\u4EE3\u7801/\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7",
17608
17622
  autoComplete: "off"
17609
17623
  })))), /*#__PURE__*/React.createElement(Col, {
17610
- span: 10 + leqispanW,
17624
+ span: 10 + riskspanW,
17611
17625
  style: {
17612
17626
  display: isExpand ? undefined : 'none'
17613
17627
  }
@@ -17624,7 +17638,7 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
17624
17638
  placeholder: "\u8BF7\u8F93\u5165\u8D2D\u4E70\u65B9\u5730\u5740",
17625
17639
  autoComplete: "off"
17626
17640
  })))), /*#__PURE__*/React.createElement(Col, {
17627
- span: 10 + leqispanW,
17641
+ span: 10 + riskspanW,
17628
17642
  style: {
17629
17643
  display: isExpand ? undefined : 'none'
17630
17644
  }
@@ -17638,22 +17652,7 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
17638
17652
  readOnly: isReadOnly('buyerPhone'),
17639
17653
  placeholder: "\u8BF7\u8F93\u5165\u7535\u8BDD",
17640
17654
  autoComplete: "off"
17641
- })))), props.leqi && /*#__PURE__*/React.createElement(Col, {
17642
- span: 4,
17643
- style: {
17644
- display: isExpand ? undefined : 'none'
17645
- }
17646
- }, /*#__PURE__*/React.createElement(Form.Item, {
17647
- colon: false
17648
- }, getFieldDecorator('buyerAddressPhoneFlag', {
17649
- valuePropName: 'checked'
17650
- })( /*#__PURE__*/React.createElement(Checkbox$1, {
17651
- onChange: props === null || props === void 0 ? void 0 : props.invoiceMarkCallback,
17652
- disabled: isReadOnly('buyerAddressPhoneFlag'),
17653
- style: {
17654
- whiteSpace: 'nowrap'
17655
- }
17656
- }, "\u662F\u5426\u5C55\u793A")))), /*#__PURE__*/React.createElement(Col, {
17655
+ })))), /*#__PURE__*/React.createElement(Col, {
17657
17656
  span: 10 + leqispanW,
17658
17657
  style: {
17659
17658
  display: isExpand ? undefined : 'none'
@@ -17745,7 +17744,7 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
17745
17744
  placeholder: "\u8BF7\u8F93\u5165\u7EDF\u4E00\u793E\u4F1A\u4FE1\u7528\u4EE3\u7801/\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7",
17746
17745
  autoComplete: "off"
17747
17746
  })))), /*#__PURE__*/React.createElement(Col, {
17748
- span: 10 + leqispanW,
17747
+ span: 10 + riskspanW,
17749
17748
  style: {
17750
17749
  display: isExpand ? undefined : 'none'
17751
17750
  }
@@ -17762,7 +17761,7 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
17762
17761
  placeholder: "\u8BF7\u8F93\u5165\u9500\u552E\u65B9\u5730\u5740",
17763
17762
  autoComplete: "off"
17764
17763
  })))), /*#__PURE__*/React.createElement(Col, {
17765
- span: 10 + leqispanW,
17764
+ span: 10 + riskspanW,
17766
17765
  style: {
17767
17766
  display: isExpand ? undefined : 'none'
17768
17767
  }
@@ -17776,22 +17775,7 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
17776
17775
  readOnly: isReadOnly('sellerPhone'),
17777
17776
  placeholder: "\u8BF7\u8F93\u5165\u7535\u8BDD",
17778
17777
  autoComplete: "off"
17779
- })))), props.leqi && /*#__PURE__*/React.createElement(Col, {
17780
- span: 4,
17781
- style: {
17782
- display: isExpand ? undefined : 'none'
17783
- }
17784
- }, /*#__PURE__*/React.createElement(Form.Item, {
17785
- colon: false
17786
- }, getFieldDecorator('sellerAddressPhoneFlag', {
17787
- valuePropName: 'checked'
17788
- })( /*#__PURE__*/React.createElement(Checkbox$1, {
17789
- onChange: props === null || props === void 0 ? void 0 : props.invoiceMarkCallback,
17790
- disabled: isReadOnly('sellerAddressPhoneFlag'),
17791
- style: {
17792
- whiteSpace: 'nowrap'
17793
- }
17794
- }, "\u662F\u5426\u5C55\u793A")))), /*#__PURE__*/React.createElement(Col, {
17778
+ })))), /*#__PURE__*/React.createElement(Col, {
17795
17779
  span: 10 + leqispanW,
17796
17780
  style: {
17797
17781
  display: isExpand ? undefined : 'none'
@@ -19174,43 +19158,74 @@ function addGood$2(_x) {
19174
19158
 
19175
19159
 
19176
19160
  function _addGood$1() {
19177
- _addGood$1 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(controller) {
19178
- return _regeneratorRuntime().wrap(function _callee4$(_context4) {
19161
+ _addGood$1 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(controller) {
19162
+ var _controller$formList$;
19163
+
19164
+ return _regeneratorRuntime().wrap(function _callee5$(_context5) {
19179
19165
  while (1) {
19180
- switch (_context4.prev = _context4.next) {
19166
+ switch (_context5.prev = _context5.next) {
19181
19167
  case 0:
19182
- _context4.next = 2;
19183
- return controller.saveEditGood();
19168
+ _context5.next = 2;
19169
+ return (_controller$formList$ = controller.formList.get('realEstateInfo')) === null || _controller$formList$ === void 0 ? void 0 : _controller$formList$.validateFields( /*#__PURE__*/function () {
19170
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(err, values) {
19171
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
19172
+ while (1) {
19173
+ switch (_context2.prev = _context2.next) {
19174
+ case 0:
19175
+ if (!err) {
19176
+ _context2.next = 3;
19177
+ break;
19178
+ }
19179
+
19180
+ message$1.error('请先填写发票行信息,再添加新的行');
19181
+ return _context2.abrupt("return");
19182
+
19183
+ case 3:
19184
+ case "end":
19185
+ return _context2.stop();
19186
+ }
19187
+ }
19188
+ }, _callee2);
19189
+ }));
19190
+
19191
+ return function (_x4, _x5) {
19192
+ return _ref2.apply(this, arguments);
19193
+ };
19194
+ }());
19184
19195
 
19185
19196
  case 2:
19186
- _context4.next = 4;
19187
- return controller.wait();
19197
+ _context5.next = 4;
19198
+ return controller.saveEditGood();
19188
19199
 
19189
19200
  case 4:
19190
- _context4.next = 6;
19201
+ _context5.next = 6;
19202
+ return controller.wait();
19203
+
19204
+ case 6:
19205
+ _context5.next = 8;
19191
19206
  return controller.run( /*#__PURE__*/function () {
19192
- var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(s) {
19207
+ var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(s) {
19193
19208
  var _controller$state$goo;
19194
19209
 
19195
- return _regeneratorRuntime().wrap(function _callee3$(_context3) {
19210
+ return _regeneratorRuntime().wrap(function _callee4$(_context4) {
19196
19211
  while (1) {
19197
- switch (_context3.prev = _context3.next) {
19212
+ switch (_context4.prev = _context4.next) {
19198
19213
  case 0:
19199
19214
  if (!s.goodsListState.editGood) {
19200
- _context3.next = 3;
19215
+ _context4.next = 3;
19201
19216
  break;
19202
19217
  }
19203
19218
 
19204
- _context3.next = 3;
19219
+ _context4.next = 3;
19205
19220
  return (_controller$state$goo = controller.state.goodsListState.form) === null || _controller$state$goo === void 0 ? void 0 : _controller$state$goo.validateFields( /*#__PURE__*/function () {
19206
- var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(err, values) {
19221
+ var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(err, values) {
19207
19222
  var firstError;
19208
- return _regeneratorRuntime().wrap(function _callee2$(_context2) {
19223
+ return _regeneratorRuntime().wrap(function _callee3$(_context3) {
19209
19224
  while (1) {
19210
- switch (_context2.prev = _context2.next) {
19225
+ switch (_context3.prev = _context3.next) {
19211
19226
  case 0:
19212
19227
  if (!err) {
19213
- _context2.next = 4;
19228
+ _context3.next = 4;
19214
19229
  break;
19215
19230
  }
19216
19231
 
@@ -19219,50 +19234,50 @@ function _addGood$1() {
19219
19234
  content: firstError.errors[0].message,
19220
19235
  key: '你正在编辑一个货物'
19221
19236
  });
19222
- return _context2.abrupt("return");
19237
+ return _context3.abrupt("return");
19223
19238
 
19224
19239
  case 4:
19225
19240
  case "end":
19226
- return _context2.stop();
19241
+ return _context3.stop();
19227
19242
  }
19228
19243
  }
19229
- }, _callee2);
19244
+ }, _callee3);
19230
19245
  }));
19231
19246
 
19232
- return function (_x5, _x6) {
19233
- return _ref3.apply(this, arguments);
19247
+ return function (_x7, _x8) {
19248
+ return _ref4.apply(this, arguments);
19234
19249
  };
19235
19250
  }());
19236
19251
 
19237
19252
  case 3:
19238
- _context3.next = 5;
19253
+ _context4.next = 5;
19239
19254
  return controller.addGood({
19240
19255
  taxRate: s.goodsListState.defaultRate,
19241
19256
  lineAttribute: LineAttributeType$1.正常
19242
19257
  });
19243
19258
 
19244
19259
  case 5:
19245
- s.goodsListState.editGood = _context3.sent;
19260
+ s.goodsListState.editGood = _context4.sent;
19246
19261
 
19247
19262
  case 6:
19248
19263
  case "end":
19249
- return _context3.stop();
19264
+ return _context4.stop();
19250
19265
  }
19251
19266
  }
19252
- }, _callee3);
19267
+ }, _callee4);
19253
19268
  }));
19254
19269
 
19255
- return function (_x4) {
19256
- return _ref2.apply(this, arguments);
19270
+ return function (_x6) {
19271
+ return _ref3.apply(this, arguments);
19257
19272
  };
19258
19273
  }());
19259
19274
 
19260
- case 6:
19275
+ case 8:
19261
19276
  case "end":
19262
- return _context4.stop();
19277
+ return _context5.stop();
19263
19278
  }
19264
19279
  }
19265
- }, _callee4);
19280
+ }, _callee5);
19266
19281
  }));
19267
19282
  return _addGood$1.apply(this, arguments);
19268
19283
  }
@@ -19272,34 +19287,34 @@ function rollBottom$1(_x2, _x3) {
19272
19287
  }
19273
19288
 
19274
19289
  function _rollBottom$1() {
19275
- _rollBottom$1 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(controller, rootElement) {
19290
+ _rollBottom$1 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6(controller, rootElement) {
19276
19291
  var cont;
19277
- return _regeneratorRuntime().wrap(function _callee5$(_context5) {
19292
+ return _regeneratorRuntime().wrap(function _callee6$(_context6) {
19278
19293
  while (1) {
19279
- switch (_context5.prev = _context5.next) {
19294
+ switch (_context6.prev = _context6.next) {
19280
19295
  case 0:
19281
- _context5.next = 2;
19296
+ _context6.next = 2;
19282
19297
  return controller.wait();
19283
19298
 
19284
19299
  case 2:
19285
19300
  cont = rootElement === null || rootElement === void 0 ? void 0 : rootElement.querySelector('.ktsAntX-table-body');
19286
19301
 
19287
19302
  if (cont) {
19288
- _context5.next = 5;
19303
+ _context6.next = 5;
19289
19304
  break;
19290
19305
  }
19291
19306
 
19292
- return _context5.abrupt("return");
19307
+ return _context6.abrupt("return");
19293
19308
 
19294
19309
  case 5:
19295
19310
  cont.scrollTop = cont.scrollHeight;
19296
19311
 
19297
19312
  case 6:
19298
19313
  case "end":
19299
- return _context5.stop();
19314
+ return _context6.stop();
19300
19315
  }
19301
19316
  }
19302
- }, _callee5);
19317
+ }, _callee6);
19303
19318
  }));
19304
19319
  return _rollBottom$1.apply(this, arguments);
19305
19320
  }
@@ -21880,34 +21895,24 @@ var useColumns$1 = (function (form) {
21880
21895
  while (1) {
21881
21896
  switch (_context6.prev = _context6.next) {
21882
21897
  case 0:
21883
- if (!isValidateGood) {
21884
- _context6.next = 10;
21885
- break;
21886
- }
21887
-
21888
- _context6.next = 3;
21898
+ _context6.next = 2;
21889
21899
  return controller.wait();
21890
21900
 
21891
- case 3:
21901
+ case 2:
21892
21902
  isvalue = !!value || value === 0;
21893
21903
  isPrice = !!getFieldValue(isTaxIncluded ? 'priceIncludeTax' : 'priceExcludeTax') || getFieldValue(isTaxIncluded ? 'priceIncludeTax' : 'priceExcludeTax') === 0;
21894
21904
 
21895
21905
  if (!(isvalue || isPrice === isvalue)) {
21896
- _context6.next = 7;
21906
+ _context6.next = 6;
21897
21907
  break;
21898
21908
  }
21899
21909
 
21900
21910
  return _context6.abrupt("return");
21901
21911
 
21902
- case 7:
21912
+ case 6:
21903
21913
  callback('请输入数量');
21904
- _context6.next = 11;
21905
- break;
21906
-
21907
- case 10:
21908
- callback();
21909
21914
 
21910
- case 11:
21915
+ case 7:
21911
21916
  case "end":
21912
21917
  return _context6.stop();
21913
21918
  }
@@ -22196,7 +22201,7 @@ var useColumns$1 = (function (form) {
22196
22201
  style: {
22197
22202
  padding: '0 10px'
22198
22203
  }
22199
- }, value && formatSearch$1(parseFloat(value).toFixed(2), searchValue));
22204
+ }, formatSearch$1(parseFloat(value).toFixed(2), searchValue));
22200
22205
  }
22201
22206
  }
22202
22207
  }, {
@@ -22259,7 +22264,7 @@ var useColumns$1 = (function (form) {
22259
22264
  style: {
22260
22265
  padding: '0 10px'
22261
22266
  }
22262
- }, value && formatSearch$1(parseFloat(value).toFixed(2), searchValue));
22267
+ }, formatSearch$1(parseFloat(value).toFixed(2), searchValue));
22263
22268
  }
22264
22269
  }
22265
22270
  }, {
@@ -22371,7 +22376,7 @@ var useColumns$1 = (function (form) {
22371
22376
  style: {
22372
22377
  padding: '0 10px'
22373
22378
  }
22374
- }, isDutyFree$1(record) ? '***' : value && parseFloat(value).toFixed(2));
22379
+ }, isDutyFree$1(record) ? '***' : parseFloat(value).toFixed(2));
22375
22380
  }
22376
22381
  }
22377
22382
  }] // 含税不含税
@@ -24349,7 +24354,7 @@ var Main$3 = decorator(Form.create())(function (props) {
24349
24354
  })), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Statistics$1, null)));
24350
24355
  });
24351
24356
 
24352
- 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";
24357
+ 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";
24353
24358
  styleInject(css_248z$r);
24354
24359
 
24355
24360
  var RangePicker = DatePicker.RangePicker;
@@ -24365,126 +24370,210 @@ var RealEstateInfo = decorator(Form.create())(function (props) {
24365
24370
  }, []);
24366
24371
  var readOnly = React.useMemo(function () {
24367
24372
  return model === 'readOnly';
24368
- }, [model]); // 注册 form
24373
+ }, [model]);
24374
+ var goodsList = controller.useMemo(function (s) {
24375
+ return s.goodsListState.goodsList;
24376
+ }, []);
24377
+ var indexRef = React.useRef([]);
24378
+ useEffect(function () {
24379
+ var dd = goodsList === null || goodsList === void 0 ? void 0 : goodsList.reduce(function (acc, cur) {
24380
+ if (cur.lineAttribute !== 1) {
24381
+ acc.push(cur.$index);
24382
+ }
24383
+
24384
+ return acc;
24385
+ }, []);
24386
+ indexRef.current = dd;
24387
+ }, [goodsList, indexRef]); // 注册 form
24369
24388
 
24370
24389
  controller.useForm('realEstateInfo', form);
24390
+
24391
+ var getList = function getList() {
24392
+ var decrease = indexRef.current.length > goodsList.length;
24393
+
24394
+ if (decrease) {
24395
+ //已删行列表
24396
+ var diff = indexRef.current.filter(function (item) {
24397
+ return !goodsList.find(function (i) {
24398
+ return i.$index === item;
24399
+ });
24400
+ });
24401
+ var formData = form.getFieldValue('realEstateDataDto');
24402
+
24403
+ if (Array.isArray(formData) && diff.length > 0) {
24404
+ var newForm = formData === null || formData === void 0 ? void 0 : formData.filter(function (item) {
24405
+ return !diff.find(function (i) {
24406
+ return i === item.$index;
24407
+ });
24408
+ });
24409
+ form.setFieldsValue({
24410
+ realEstateDataDto: newForm
24411
+ });
24412
+ } else {
24413
+ form.setFieldsValue({
24414
+ realEstateDataDto: undefined
24415
+ });
24416
+ }
24417
+ }
24418
+
24419
+ console.log('goodsList', goodsList);
24420
+ return goodsList.filter(function (item) {
24421
+ return item.lineAttribute !== 1;
24422
+ }).map(function (item, index) {
24423
+ if (item.lineAttribute !== 1) {
24424
+ return /*#__PURE__*/React.createElement(Row$1, {
24425
+ gutter: [17, 0]
24426
+ }, /*#__PURE__*/React.createElement(Col$1, {
24427
+ span: 6
24428
+ }, /*#__PURE__*/React.createElement(Form.Item, {
24429
+ style: {
24430
+ display: 'none'
24431
+ }
24432
+ }, getFieldDecorator("realEstateDataDto[".concat(index, "].$index"), {
24433
+ initialValue: item.$index
24434
+ })( /*#__PURE__*/React.createElement(Input$2, null))), /*#__PURE__*/React.createElement(Form.Item, {
24435
+ label: "\u4E0D\u52A8\u4EA7\u5730\u5740"
24436
+ }, getFieldDecorator("realEstateDataDto[".concat(index, "].realEstateAddress"), {
24437
+ rules: readOnly ? [] : [{
24438
+ required: true,
24439
+ message: '请选择不动产地址'
24440
+ }]
24441
+ })(readOnly ? /*#__PURE__*/React.createElement(MyArrString, null) : /*#__PURE__*/React.createElement(Cascader, {
24442
+ style: {
24443
+ width: '100%'
24444
+ },
24445
+ options: props.realEstateAddressOptions,
24446
+ fieldNames: props.realEstateAddressFieldNames,
24447
+ placeholder: "\u8BF7\u9009\u62E9\u7701\u5E02\u533A\u53BF"
24448
+ })))), /*#__PURE__*/React.createElement(Col$1, {
24449
+ span: 6
24450
+ }, /*#__PURE__*/React.createElement(Form.Item, {
24451
+ label: "\u8BE6\u7EC6\u5730\u5740"
24452
+ }, getFieldDecorator("realEstateDataDto[".concat(index, "].realEstateDetailedAddress"), {
24453
+ rules: readOnly ? [] : [{
24454
+ required: true,
24455
+ message: '请输入详细地址'
24456
+ }, {
24457
+ max: 120,
24458
+ message: '详细地址最多120个字符'
24459
+ }, {
24460
+ validator: function () {
24461
+ var _validator = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(_, value, callback) {
24462
+ var pattern;
24463
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
24464
+ while (1) {
24465
+ switch (_context.prev = _context.next) {
24466
+ case 0:
24467
+ pattern = /街|路|村|乡|镇|道|巷|号/;
24468
+
24469
+ if (pattern.test(value)) {
24470
+ callback();
24471
+ } else {
24472
+ callback('地址必须包含“街”、“路”、“村”、“乡”、“镇”、“道”、“巷”、“号”等任意一个关键词');
24473
+ }
24474
+
24475
+ case 2:
24476
+ case "end":
24477
+ return _context.stop();
24478
+ }
24479
+ }
24480
+ }, _callee);
24481
+ }));
24482
+
24483
+ function validator(_x, _x2, _x3) {
24484
+ return _validator.apply(this, arguments);
24485
+ }
24486
+
24487
+ return validator;
24488
+ }()
24489
+ }]
24490
+ })(readOnly ? /*#__PURE__*/React.createElement(MyDiv$3, null) : /*#__PURE__*/React.createElement(Input$2, {
24491
+ autoComplete: 'off',
24492
+ placeholder: "\u8BF7\u8F93\u5165\u8BE6\u7EC6\u5730\u5740"
24493
+ })))), /*#__PURE__*/React.createElement(Col$1, {
24494
+ span: 6
24495
+ }, /*#__PURE__*/React.createElement(Form.Item, {
24496
+ label: "\u79DF\u8D41\u671F\u8D77\u6B62"
24497
+ }, getFieldDecorator("realEstateDataDto[".concat(index, "].leaseTerm"), {
24498
+ rules: readOnly ? [] : [{
24499
+ required: true,
24500
+ message: '请输入租赁期'
24501
+ }]
24502
+ })(readOnly ? /*#__PURE__*/React.createElement(MyArrMoment, null) : /*#__PURE__*/React.createElement(RangePicker, {
24503
+ style: {
24504
+ width: '100%'
24505
+ }
24506
+ })))), /*#__PURE__*/React.createElement(Col$1, {
24507
+ span: 6
24508
+ }, /*#__PURE__*/React.createElement(Form.Item, {
24509
+ label: "\u8DE8\u5730\uFF08\u5E02\uFF09\u6807\u5FD7"
24510
+ }, getFieldDecorator("realEstateDataDto[".concat(index, "].crossCitiesSign"), {
24511
+ rules: readOnly ? [] : [{
24512
+ required: true,
24513
+ message: '请选择跨地(市)标志'
24514
+ }]
24515
+ })(readOnly ? /*#__PURE__*/React.createElement(MyNY, null) : /*#__PURE__*/React.createElement(Select$2, {
24516
+ placeholder: "\u8BF7\u9009\u62E9",
24517
+ style: {
24518
+ width: '100%'
24519
+ }
24520
+ }, /*#__PURE__*/React.createElement(Select$2.Option, {
24521
+ value: 'Y'
24522
+ }, "\u662F"), /*#__PURE__*/React.createElement(Select$2.Option, {
24523
+ value: 'N'
24524
+ }, "\u5426"))))), /*#__PURE__*/React.createElement(Col$1, {
24525
+ span: 6
24526
+ }, /*#__PURE__*/React.createElement(Form.Item, {
24527
+ label: "\u4EA7\u6743\u8BC1\u4E66/\u4E0D\u52A8\u4EA7\u6743\u8BC1\u53F7"
24528
+ }, getFieldDecorator("realEstateDataDto[".concat(index, "].realEstateNumber"), {
24529
+ rules: readOnly ? [] : [{
24530
+ required: true,
24531
+ message: '请输入证书编号,若没有证书填写“无”'
24532
+ }, {
24533
+ max: 40,
24534
+ message: '证书编号最多40个字符'
24535
+ }]
24536
+ })(readOnly ? /*#__PURE__*/React.createElement(MyDiv$3, null) : /*#__PURE__*/React.createElement(Input$2, {
24537
+ autoComplete: 'off',
24538
+ placeholder: "\u8BF7\u8F93\u5165\u8BC1\u4E66\u7F16\u53F7\uFF0C\u82E5\u6CA1\u6709\u8BC1\u4E66\u586B\u5199\u201C\u65E0\u201D"
24539
+ })))), /*#__PURE__*/React.createElement(Col$1, {
24540
+ span: 6
24541
+ }, /*#__PURE__*/React.createElement(Form.Item, {
24542
+ label: "\u9762\u79EF\u5355\u4F4D"
24543
+ }, getFieldDecorator("realEstateDataDto[".concat(index, "].realEstateUnit"), {
24544
+ rules: readOnly ? [] : [{
24545
+ required: true,
24546
+ message: '请选择面积单位'
24547
+ }]
24548
+ })(readOnly ? /*#__PURE__*/React.createElement(MyDiv$3, null) : /*#__PURE__*/React.createElement(Select$2, {
24549
+ placeholder: "\u8BF7\u9009\u62E9",
24550
+ style: {
24551
+ width: '100%'
24552
+ }
24553
+ }, /*#__PURE__*/React.createElement(Select$2.Option, {
24554
+ value: "\u5E73\u65B9\u5343\u7C73"
24555
+ }, "\u5E73\u65B9\u5343\u7C73"), /*#__PURE__*/React.createElement(Select$2.Option, {
24556
+ value: "\u5E73\u65B9\u7C73"
24557
+ }, "\u5E73\u65B9\u7C73"), /*#__PURE__*/React.createElement(Select$2.Option, {
24558
+ value: "\u516C\u9877"
24559
+ }, "\u516C\u9877"), /*#__PURE__*/React.createElement(Select$2.Option, {
24560
+ value: "\u4EA9"
24561
+ }, "\u4EA9"), /*#__PURE__*/React.createElement(Select$2.Option, {
24562
+ value: "h\u33A1"
24563
+ }, "h\u33A1"), /*#__PURE__*/React.createElement(Select$2.Option, {
24564
+ value: "k\u33A1"
24565
+ }, "k\u33A1"), /*#__PURE__*/React.createElement(Select$2.Option, {
24566
+ value: "\u33A1"
24567
+ }, "\u33A1"))))));
24568
+ }
24569
+ });
24570
+ };
24571
+
24371
24572
  return /*#__PURE__*/React.createElement("div", {
24372
24573
  className: "kts-invoice-operate-real-estate-info-digtal"
24373
24574
  }, /*#__PURE__*/React.createElement("div", {
24374
24575
  className: 'real-estate-info-digtal-label'
24375
- }, "\u7279\u6B8A\u4FE1\u606F-\u4E0D\u52A8\u4EA7\u7ECF\u8425\u79DF\u8D41\u670D\u52A1"), /*#__PURE__*/React.createElement(Row$1, {
24376
- gutter: [17, 0]
24377
- }, /*#__PURE__*/React.createElement(Col$1, {
24378
- span: 6
24379
- }, /*#__PURE__*/React.createElement(Form.Item, {
24380
- label: "\u4E0D\u52A8\u4EA7\u5730\u5740"
24381
- }, getFieldDecorator('realEstateAddress', {
24382
- rules: readOnly ? [] : [{
24383
- required: true,
24384
- message: '请选择不动产地址'
24385
- }]
24386
- })(readOnly ? /*#__PURE__*/React.createElement(MyArrString, null) : /*#__PURE__*/React.createElement(Cascader, {
24387
- style: {
24388
- width: '100%'
24389
- },
24390
- options: props.realEstateAddressOptions,
24391
- fieldNames: props.realEstateAddressFieldNames,
24392
- placeholder: "\u8BF7\u9009\u62E9\u7701\u5E02\u533A\u53BF"
24393
- })))), /*#__PURE__*/React.createElement(Col$1, {
24394
- span: 6
24395
- }, /*#__PURE__*/React.createElement(Form.Item, {
24396
- label: "\u8BE6\u7EC6\u5730\u5740"
24397
- }, getFieldDecorator('realEstateDetailedAddress', {
24398
- rules: readOnly ? [] : [{
24399
- required: true,
24400
- message: '请输入详细地址'
24401
- }, {
24402
- max: 120,
24403
- message: '详细地址最多120个字符'
24404
- }, {
24405
- validator: function validator(_, value) {
24406
- var pattern = /街|路|村|乡|镇|道|巷|号/;
24407
- return pattern.test(value) ? Promise.resolve() : Promise.reject('地址必须包含“街”、“路”、“村”、“乡”、“镇”、“道”、“巷”、“号”等任意一个关键词');
24408
- }
24409
- }]
24410
- })(readOnly ? /*#__PURE__*/React.createElement(MyDiv$3, null) : /*#__PURE__*/React.createElement(Input$2, {
24411
- autoComplete: 'off',
24412
- placeholder: "\u8BF7\u8F93\u5165\u8BE6\u7EC6\u5730\u5740"
24413
- })))), /*#__PURE__*/React.createElement(Col$1, {
24414
- span: 6
24415
- }, /*#__PURE__*/React.createElement(Form.Item, {
24416
- label: "\u79DF\u8D41\u671F\u8D77\u6B62"
24417
- }, getFieldDecorator('leaseTerm', {
24418
- rules: readOnly ? [] : [{
24419
- required: true,
24420
- message: '请输入租赁期'
24421
- }]
24422
- })(readOnly ? /*#__PURE__*/React.createElement(MyArrMoment, null) : /*#__PURE__*/React.createElement(RangePicker, {
24423
- style: {
24424
- width: '100%'
24425
- }
24426
- })))), /*#__PURE__*/React.createElement(Col$1, {
24427
- span: 6
24428
- }, /*#__PURE__*/React.createElement(Form.Item, {
24429
- label: "\u8DE8\u5730\uFF08\u5E02\uFF09\u6807\u5FD7"
24430
- }, getFieldDecorator('crossCitiesSign', {
24431
- rules: readOnly ? [] : [{
24432
- required: true,
24433
- message: '请选择跨地(市)标志'
24434
- }]
24435
- })(readOnly ? /*#__PURE__*/React.createElement(MyNY, null) : /*#__PURE__*/React.createElement(Select$2, {
24436
- placeholder: "\u8BF7\u9009\u62E9",
24437
- style: {
24438
- width: '100%'
24439
- }
24440
- }, /*#__PURE__*/React.createElement(Select$2.Option, {
24441
- value: 'Y'
24442
- }, "\u662F"), /*#__PURE__*/React.createElement(Select$2.Option, {
24443
- value: 'N'
24444
- }, "\u5426"))))), /*#__PURE__*/React.createElement(Col$1, {
24445
- span: 6
24446
- }, /*#__PURE__*/React.createElement(Form.Item, {
24447
- label: "\u4EA7\u6743\u8BC1\u4E66/\u4E0D\u52A8\u4EA7\u6743\u8BC1\u53F7"
24448
- }, getFieldDecorator('realEstateNumber', {
24449
- rules: readOnly ? [] : [{
24450
- required: true,
24451
- message: '请输入证书编号,若没有证书填写“无”'
24452
- }, {
24453
- max: 40,
24454
- message: '证书编号最多40个字符'
24455
- }]
24456
- })(readOnly ? /*#__PURE__*/React.createElement(MyDiv$3, null) : /*#__PURE__*/React.createElement(Input$2, {
24457
- autoComplete: 'off',
24458
- placeholder: "\u8BF7\u8F93\u5165\u8BC1\u4E66\u7F16\u53F7\uFF0C\u82E5\u6CA1\u6709\u8BC1\u4E66\u586B\u5199\u201C\u65E0\u201D"
24459
- })))), /*#__PURE__*/React.createElement(Col$1, {
24460
- span: 6
24461
- }, /*#__PURE__*/React.createElement(Form.Item, {
24462
- label: "\u9762\u79EF\u5355\u4F4D"
24463
- }, getFieldDecorator('realEstateUnit', {
24464
- rules: readOnly ? [] : [{
24465
- required: true,
24466
- message: '请选择面积单位'
24467
- }]
24468
- })(readOnly ? /*#__PURE__*/React.createElement(MyDiv$3, null) : /*#__PURE__*/React.createElement(Select$2, {
24469
- placeholder: "\u8BF7\u9009\u62E9",
24470
- style: {
24471
- width: '100%'
24472
- }
24473
- }, /*#__PURE__*/React.createElement(Select$2.Option, {
24474
- value: "\u5E73\u65B9\u5343\u7C73"
24475
- }, "\u5E73\u65B9\u5343\u7C73"), /*#__PURE__*/React.createElement(Select$2.Option, {
24476
- value: "\u5E73\u65B9\u7C73"
24477
- }, "\u5E73\u65B9\u7C73"), /*#__PURE__*/React.createElement(Select$2.Option, {
24478
- value: "\u516C\u9877"
24479
- }, "\u516C\u9877"), /*#__PURE__*/React.createElement(Select$2.Option, {
24480
- value: "\u4EA9"
24481
- }, "\u4EA9"), /*#__PURE__*/React.createElement(Select$2.Option, {
24482
- value: "h\u33A1"
24483
- }, "h\u33A1"), /*#__PURE__*/React.createElement(Select$2.Option, {
24484
- value: "k\u33A1"
24485
- }, "k\u33A1"), /*#__PURE__*/React.createElement(Select$2.Option, {
24486
- value: "\u33A1"
24487
- }, "\u33A1")))))));
24576
+ }, "\u7279\u5B9A\u4FE1\u606F-\u4E0D\u52A8\u4EA7\u7ECF\u8425\u79DF\u8D41\u670D\u52A1"), getList());
24488
24577
  });
24489
24578
 
24490
24579
  var MyDiv$3 = /*#__PURE__*/function (_React$Component) {
@@ -24560,7 +24649,7 @@ var MyArrMoment = /*#__PURE__*/function (_React$Component3) {
24560
24649
  color: '#9F603D',
24561
24650
  fontWeight: 600
24562
24651
  }
24563
- }, " - "), /*#__PURE__*/React.createElement("span", null, hooks.isMoment(value[1]) && value[0].format('YYYY-MM-DD')));
24652
+ }, " - "), /*#__PURE__*/React.createElement("span", null, hooks.isMoment(value[1]) && value[1].format('YYYY-MM-DD')));
24564
24653
  }
24565
24654
  }]);
24566
24655
 
@@ -24612,7 +24701,7 @@ var Architecture = decorator(Form.create())(function (props) {
24612
24701
  className: "kts-invoice-operate-real-estate-info-digtal"
24613
24702
  }, /*#__PURE__*/React.createElement("div", {
24614
24703
  className: 'real-estate-info-digtal-label'
24615
- }, "\u7279\u6B8A\u4FE1\u606F-\u5EFA\u7B51\u670D\u52A1"), /*#__PURE__*/React.createElement(Row$1, {
24704
+ }, "\u7279\u5B9A\u4FE1\u606F-\u5EFA\u7B51\u670D\u52A1"), /*#__PURE__*/React.createElement(Row$1, {
24616
24705
  gutter: [17, 0]
24617
24706
  }, /*#__PURE__*/React.createElement(Col$1, {
24618
24707
  span: 6
@@ -26218,7 +26307,7 @@ var Main$4 = decorator(Form.create())(function (props) {
26218
26307
  className: "kts-invoice-operate-freight"
26219
26308
  }, /*#__PURE__*/React.createElement("div", {
26220
26309
  className: 'real-estate-info-digtal-label'
26221
- }, "\u7279\u6B8A\u4FE1\u606F-\u8D27\u7269\u8FD0\u8F93"), /*#__PURE__*/React.createElement("div", {
26310
+ }, "\u7279\u5B9A\u4FE1\u606F-\u8D27\u7269\u8FD0\u8F93"), /*#__PURE__*/React.createElement("div", {
26222
26311
  className: "kts-invoice-operate-goods-list-digtal",
26223
26312
  onClick: function onClick(e) {
26224
26313
  e.stopPropagation();