kts-component-invoice-operate 3.2.179 → 3.2.181

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
@@ -24247,7 +24247,7 @@ var Architecture = decorator(Form.create())(function (props) {
24247
24247
  return model === 'readOnly';
24248
24248
  }, [model]); // 注册 form
24249
24249
 
24250
- controller.useForm('realEstateInfo', form);
24250
+ controller.useForm('serviceDataDtoInfo', form);
24251
24251
  return /*#__PURE__*/React.createElement("div", {
24252
24252
  className: "kts-invoice-operate-real-estate-info-digtal"
24253
24253
  }, /*#__PURE__*/React.createElement("div", {
@@ -24258,7 +24258,13 @@ var Architecture = decorator(Form.create())(function (props) {
24258
24258
  span: 6
24259
24259
  }, /*#__PURE__*/React.createElement(Form.Item, {
24260
24260
  label: "\u571F\u5730\u589E\u503C\u7A0E\u9879\u76EE\u7F16\u53F7"
24261
- }, getFieldDecorator('landNumber', {})(readOnly ? /*#__PURE__*/React.createElement(MyDiv$4, null) : /*#__PURE__*/React.createElement(Input$2, {
24261
+ }, getFieldDecorator('landNumber', {
24262
+ rules: [{
24263
+ max: 16,
24264
+ message: '最多16个字符'
24265
+ }]
24266
+ })(readOnly ? /*#__PURE__*/React.createElement(MyDiv$4, null) : /*#__PURE__*/React.createElement(Input$2, {
24267
+ maxLength: 16,
24262
24268
  autoComplete: 'off',
24263
24269
  placeholder: "\u8BF7\u8F93\u5165"
24264
24270
  })))), /*#__PURE__*/React.createElement(Col$1, {
@@ -26869,14 +26875,15 @@ var DrawerBody$3 = function DrawerBody(props) {
26869
26875
  // s.value = info.node.taxRate
26870
26876
  // }
26871
26877
  // });
26878
+ var node = info.node || info;
26872
26879
  actions.setFieldState('taxClassificationCode', /*#__PURE__*/function () {
26873
26880
  var _ref12 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee12(s) {
26874
26881
  return _regeneratorRuntime().wrap(function _callee12$(_context12) {
26875
26882
  while (1) {
26876
26883
  switch (_context12.prev = _context12.next) {
26877
26884
  case 0:
26878
- if (info.taxCategoryCode) {
26879
- s.value = info.taxCategoryCode;
26885
+ if (node.taxCategoryCode) {
26886
+ s.value = node.taxCategoryCode;
26880
26887
  }
26881
26888
 
26882
26889
  case 1:
@@ -26897,8 +26904,8 @@ var DrawerBody$3 = function DrawerBody(props) {
26897
26904
  while (1) {
26898
26905
  switch (_context13.prev = _context13.next) {
26899
26906
  case 0:
26900
- if (info.shorthand) {
26901
- s.value = info.shorthand;
26907
+ if (node.shorthand) {
26908
+ s.value = node.shorthand;
26902
26909
  }
26903
26910
 
26904
26911
  case 1:
@@ -26916,24 +26923,26 @@ var DrawerBody$3 = function DrawerBody(props) {
26916
26923
  setOpen(false);
26917
26924
  }, [controller, actions]);
26918
26925
  var onSelect = React.useCallback(function (key, info) {
26926
+ var node = info.node || info;
26927
+
26919
26928
  if (controller.state.goodsListState.isUpdateGoodsTaxRateList) {
26920
- var _info$node$taxRateLis;
26929
+ var _node$taxRateList;
26921
26930
 
26922
- if ((_info$node$taxRateLis = info.node.taxRateList) === null || _info$node$taxRateLis === void 0 ? void 0 : _info$node$taxRateLis.length) {
26923
- setGoodsTaxRateList(info.node.taxRateList);
26931
+ if ((_node$taxRateList = node.taxRateList) === null || _node$taxRateList === void 0 ? void 0 : _node$taxRateList.length) {
26932
+ setGoodsTaxRateList(node.taxRateList);
26924
26933
  }
26925
26934
 
26926
26935
  if (!readOnlyTaxRate) {
26927
26936
  actions.setFieldState('taxRate', /*#__PURE__*/function () {
26928
26937
  var _ref14 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee14(s) {
26929
- var _info$node$taxRateLis2;
26938
+ var _node$taxRateList2;
26930
26939
 
26931
26940
  return _regeneratorRuntime().wrap(function _callee14$(_context14) {
26932
26941
  while (1) {
26933
26942
  switch (_context14.prev = _context14.next) {
26934
26943
  case 0:
26935
- if (info.node.taxRateList && ((_info$node$taxRateLis2 = info.node.taxRateList) === null || _info$node$taxRateLis2 === void 0 ? void 0 : _info$node$taxRateLis2.length) === 1) {
26936
- s.value = info.node.taxRateList[0];
26944
+ if (node.taxRateList && ((_node$taxRateList2 = node.taxRateList) === null || _node$taxRateList2 === void 0 ? void 0 : _node$taxRateList2.length) === 1) {
26945
+ s.value = node.taxRateList[0];
26937
26946
  } else {
26938
26947
  s.value = undefined;
26939
26948
  }
@@ -27002,6 +27011,7 @@ var DrawerBody$3 = function DrawerBody(props) {
27002
27011
  onSubmit: onSubmit1,
27003
27012
  onCancel: function onCancel() {
27004
27013
  setOpen(false);
27014
+ setInfo({});
27005
27015
  },
27006
27016
  onSearch: onSearch,
27007
27017
  onLoad: onLoad
@@ -27616,11 +27626,11 @@ var Digtal = function Digtal(props) {
27616
27626
  ), /*#__PURE__*/React.createElement(ImportGoodsDrawer, null), /*#__PURE__*/React.createElement(EndowCodeDrawer, null));
27617
27627
  };
27618
27628
 
27619
- var css_248z$x = ".taxdetailsbox {\n display: flex;\n justify-content: flex-start;\n flex-direction: row;\n}\n.taxdetailsbox .taxrightbox {\n width: 340px;\n position: absolute;\n right: 30px;\n}\n";
27629
+ var css_248z$x = ".taxdetailsbox {\n display: flex;\n justify-content: flex-start;\n flex-direction: row;\n}\n.taxdetailsbox .taxrightbox {\n width: 340px;\n position: absolute;\n right: 30px;\n top: 79px;\n bottom: 50px;\n min-height: 300px;\n}\n.taxdetailsbox .taxrightbox .taxdesc {\n height: calc(100vh - 323px);\n min-height: 105px;\n overflow: auto;\n}\n";
27620
27630
  styleInject(css_248z$x);
27621
27631
 
27622
27632
  function TaxClassificationModal(props) {
27623
- var _props$info2, _props$info3;
27633
+ var _props$info6;
27624
27634
 
27625
27635
  var _Form$useForm = Form$1.useForm(),
27626
27636
  _Form$useForm2 = _slicedToArray(_Form$useForm, 1),
@@ -27692,7 +27702,6 @@ function TaxClassificationModal(props) {
27692
27702
  return;
27693
27703
  }
27694
27704
 
27695
- props.onCancel && props.onCancel();
27696
27705
  onChildrenDrawerClose();
27697
27706
  props.onSubmit && props.onSubmit((_props$info = props.info) === null || _props$info === void 0 ? void 0 : _props$info.key, _objectSpread2(_objectSpread2({}, props.info), values));
27698
27707
  }).catch(function (errorInfo) {
@@ -27700,6 +27709,16 @@ function TaxClassificationModal(props) {
27700
27709
  });
27701
27710
  };
27702
27711
 
27712
+ React.useEffect(function () {
27713
+ var _props$info2, _props$info3, _props$info4, _props$info5;
27714
+
27715
+ form.setFieldsValue(_objectSpread2(_objectSpread2({}, form.getFieldsValue()), {}, {
27716
+ taxCategoryCode: props === null || props === void 0 ? void 0 : (_props$info2 = props.info) === null || _props$info2 === void 0 ? void 0 : _props$info2.taxCategoryCode,
27717
+ productName: props === null || props === void 0 ? void 0 : (_props$info3 = props.info) === null || _props$info3 === void 0 ? void 0 : _props$info3.productName,
27718
+ shorthand: props === null || props === void 0 ? void 0 : (_props$info4 = props.info) === null || _props$info4 === void 0 ? void 0 : _props$info4.shorthand,
27719
+ taxDesc: props === null || props === void 0 ? void 0 : (_props$info5 = props.info) === null || _props$info5 === void 0 ? void 0 : _props$info5.taxDesc
27720
+ }));
27721
+ }, [props === null || props === void 0 ? void 0 : (_props$info6 = props.info) === null || _props$info6 === void 0 ? void 0 : _props$info6.key]);
27703
27722
  return /*#__PURE__*/React.createElement(Drawer$1, {
27704
27723
  title: "\u5546\u54C1\u548C\u670D\u52A1\u7A0E\u6536\u5206\u7C7B\u7F16\u7801",
27705
27724
  placement: "right",
@@ -27745,16 +27764,10 @@ function TaxClassificationModal(props) {
27745
27764
  }))), /*#__PURE__*/React.createElement(Card, {
27746
27765
  className: "taxrightbox"
27747
27766
  }, /*#__PURE__*/React.createElement(Form$1, _objectSpread2(_objectSpread2({
27748
- form: form,
27749
- key: props === null || props === void 0 ? void 0 : (_props$info2 = props.info) === null || _props$info2 === void 0 ? void 0 : _props$info2.key
27767
+ form: form
27750
27768
  }, layout), {}, {
27751
27769
  initialValues: props.info
27752
27770
  }), /*#__PURE__*/React.createElement(Form$1.Item, {
27753
- rules: [{
27754
- required: true,
27755
- message: '请勾选税收分类编码'
27756
- }],
27757
- initialValue: (_props$info3 = props.info) === null || _props$info3 === void 0 ? void 0 : _props$info3.taxCategoryCode,
27758
27771
  name: "taxCategoryCode",
27759
27772
  label: "\u7F16\u7801"
27760
27773
  }, /*#__PURE__*/React.createElement(FormReadOnly, null)), /*#__PURE__*/React.createElement(Form$1.Item, {
@@ -27764,7 +27777,8 @@ function TaxClassificationModal(props) {
27764
27777
  name: "shorthand",
27765
27778
  label: "\u7B80\u79F0"
27766
27779
  }, /*#__PURE__*/React.createElement(FormReadOnly, null)), /*#__PURE__*/React.createElement(Form$1.Item, {
27767
- name: "desc",
27780
+ name: "taxDesc",
27781
+ className: "taxdesc",
27768
27782
  label: "\u8BF4\u660E"
27769
27783
  }, /*#__PURE__*/React.createElement(FormReadOnly, null))))));
27770
27784
  }
package/dist/index.js CHANGED
@@ -24257,7 +24257,7 @@ var Architecture = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(fun
24257
24257
  return model === 'readOnly';
24258
24258
  }, [model]); // 注册 form
24259
24259
 
24260
- controller.useForm('realEstateInfo', form);
24260
+ controller.useForm('serviceDataDtoInfo', form);
24261
24261
  return /*#__PURE__*/React__default['default'].createElement("div", {
24262
24262
  className: "kts-invoice-operate-real-estate-info-digtal"
24263
24263
  }, /*#__PURE__*/React__default['default'].createElement("div", {
@@ -24268,7 +24268,13 @@ var Architecture = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(fun
24268
24268
  span: 6
24269
24269
  }, /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX3.Form.Item, {
24270
24270
  label: "\u571F\u5730\u589E\u503C\u7A0E\u9879\u76EE\u7F16\u53F7"
24271
- }, getFieldDecorator('landNumber', {})(readOnly ? /*#__PURE__*/React__default['default'].createElement(MyDiv$4, null) : /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX4.Input, {
24271
+ }, getFieldDecorator('landNumber', {
24272
+ rules: [{
24273
+ max: 16,
24274
+ message: '最多16个字符'
24275
+ }]
24276
+ })(readOnly ? /*#__PURE__*/React__default['default'].createElement(MyDiv$4, null) : /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX4.Input, {
24277
+ maxLength: 16,
24272
24278
  autoComplete: 'off',
24273
24279
  placeholder: "\u8BF7\u8F93\u5165"
24274
24280
  })))), /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX4.Col, {
@@ -26879,14 +26885,15 @@ var DrawerBody$3 = function DrawerBody(props) {
26879
26885
  // s.value = info.node.taxRate
26880
26886
  // }
26881
26887
  // });
26888
+ var node = info.node || info;
26882
26889
  actions.setFieldState('taxClassificationCode', /*#__PURE__*/function () {
26883
26890
  var _ref12 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee12(s) {
26884
26891
  return _regeneratorRuntime().wrap(function _callee12$(_context12) {
26885
26892
  while (1) {
26886
26893
  switch (_context12.prev = _context12.next) {
26887
26894
  case 0:
26888
- if (info.taxCategoryCode) {
26889
- s.value = info.taxCategoryCode;
26895
+ if (node.taxCategoryCode) {
26896
+ s.value = node.taxCategoryCode;
26890
26897
  }
26891
26898
 
26892
26899
  case 1:
@@ -26907,8 +26914,8 @@ var DrawerBody$3 = function DrawerBody(props) {
26907
26914
  while (1) {
26908
26915
  switch (_context13.prev = _context13.next) {
26909
26916
  case 0:
26910
- if (info.shorthand) {
26911
- s.value = info.shorthand;
26917
+ if (node.shorthand) {
26918
+ s.value = node.shorthand;
26912
26919
  }
26913
26920
 
26914
26921
  case 1:
@@ -26926,24 +26933,26 @@ var DrawerBody$3 = function DrawerBody(props) {
26926
26933
  setOpen(false);
26927
26934
  }, [controller, actions]);
26928
26935
  var onSelect = React__default['default'].useCallback(function (key, info) {
26936
+ var node = info.node || info;
26937
+
26929
26938
  if (controller.state.goodsListState.isUpdateGoodsTaxRateList) {
26930
- var _info$node$taxRateLis;
26939
+ var _node$taxRateList;
26931
26940
 
26932
- if ((_info$node$taxRateLis = info.node.taxRateList) === null || _info$node$taxRateLis === void 0 ? void 0 : _info$node$taxRateLis.length) {
26933
- setGoodsTaxRateList(info.node.taxRateList);
26941
+ if ((_node$taxRateList = node.taxRateList) === null || _node$taxRateList === void 0 ? void 0 : _node$taxRateList.length) {
26942
+ setGoodsTaxRateList(node.taxRateList);
26934
26943
  }
26935
26944
 
26936
26945
  if (!readOnlyTaxRate) {
26937
26946
  actions.setFieldState('taxRate', /*#__PURE__*/function () {
26938
26947
  var _ref14 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee14(s) {
26939
- var _info$node$taxRateLis2;
26948
+ var _node$taxRateList2;
26940
26949
 
26941
26950
  return _regeneratorRuntime().wrap(function _callee14$(_context14) {
26942
26951
  while (1) {
26943
26952
  switch (_context14.prev = _context14.next) {
26944
26953
  case 0:
26945
- if (info.node.taxRateList && ((_info$node$taxRateLis2 = info.node.taxRateList) === null || _info$node$taxRateLis2 === void 0 ? void 0 : _info$node$taxRateLis2.length) === 1) {
26946
- s.value = info.node.taxRateList[0];
26954
+ if (node.taxRateList && ((_node$taxRateList2 = node.taxRateList) === null || _node$taxRateList2 === void 0 ? void 0 : _node$taxRateList2.length) === 1) {
26955
+ s.value = node.taxRateList[0];
26947
26956
  } else {
26948
26957
  s.value = undefined;
26949
26958
  }
@@ -27012,6 +27021,7 @@ var DrawerBody$3 = function DrawerBody(props) {
27012
27021
  onSubmit: onSubmit1,
27013
27022
  onCancel: function onCancel() {
27014
27023
  setOpen(false);
27024
+ setInfo({});
27015
27025
  },
27016
27026
  onSearch: onSearch,
27017
27027
  onLoad: onLoad
@@ -27626,11 +27636,11 @@ var Digtal = function Digtal(props) {
27626
27636
  ), /*#__PURE__*/React__default['default'].createElement(ImportGoodsDrawer, null), /*#__PURE__*/React__default['default'].createElement(EndowCodeDrawer, null));
27627
27637
  };
27628
27638
 
27629
- var css_248z$x = ".taxdetailsbox {\n display: flex;\n justify-content: flex-start;\n flex-direction: row;\n}\n.taxdetailsbox .taxrightbox {\n width: 340px;\n position: absolute;\n right: 30px;\n}\n";
27639
+ var css_248z$x = ".taxdetailsbox {\n display: flex;\n justify-content: flex-start;\n flex-direction: row;\n}\n.taxdetailsbox .taxrightbox {\n width: 340px;\n position: absolute;\n right: 30px;\n top: 79px;\n bottom: 50px;\n min-height: 300px;\n}\n.taxdetailsbox .taxrightbox .taxdesc {\n height: calc(100vh - 323px);\n min-height: 105px;\n overflow: auto;\n}\n";
27630
27640
  styleInject(css_248z$x);
27631
27641
 
27632
27642
  function TaxClassificationModal(props) {
27633
- var _props$info2, _props$info3;
27643
+ var _props$info6;
27634
27644
 
27635
27645
  var _Form$useForm = ktsXui.Form.useForm(),
27636
27646
  _Form$useForm2 = _slicedToArray(_Form$useForm, 1),
@@ -27702,7 +27712,6 @@ function TaxClassificationModal(props) {
27702
27712
  return;
27703
27713
  }
27704
27714
 
27705
- props.onCancel && props.onCancel();
27706
27715
  onChildrenDrawerClose();
27707
27716
  props.onSubmit && props.onSubmit((_props$info = props.info) === null || _props$info === void 0 ? void 0 : _props$info.key, _objectSpread2(_objectSpread2({}, props.info), values));
27708
27717
  }).catch(function (errorInfo) {
@@ -27710,6 +27719,16 @@ function TaxClassificationModal(props) {
27710
27719
  });
27711
27720
  };
27712
27721
 
27722
+ React__default['default'].useEffect(function () {
27723
+ var _props$info2, _props$info3, _props$info4, _props$info5;
27724
+
27725
+ form.setFieldsValue(_objectSpread2(_objectSpread2({}, form.getFieldsValue()), {}, {
27726
+ taxCategoryCode: props === null || props === void 0 ? void 0 : (_props$info2 = props.info) === null || _props$info2 === void 0 ? void 0 : _props$info2.taxCategoryCode,
27727
+ productName: props === null || props === void 0 ? void 0 : (_props$info3 = props.info) === null || _props$info3 === void 0 ? void 0 : _props$info3.productName,
27728
+ shorthand: props === null || props === void 0 ? void 0 : (_props$info4 = props.info) === null || _props$info4 === void 0 ? void 0 : _props$info4.shorthand,
27729
+ taxDesc: props === null || props === void 0 ? void 0 : (_props$info5 = props.info) === null || _props$info5 === void 0 ? void 0 : _props$info5.taxDesc
27730
+ }));
27731
+ }, [props === null || props === void 0 ? void 0 : (_props$info6 = props.info) === null || _props$info6 === void 0 ? void 0 : _props$info6.key]);
27713
27732
  return /*#__PURE__*/React__default['default'].createElement(ktsXui.Drawer, {
27714
27733
  title: "\u5546\u54C1\u548C\u670D\u52A1\u7A0E\u6536\u5206\u7C7B\u7F16\u7801",
27715
27734
  placement: "right",
@@ -27755,16 +27774,10 @@ function TaxClassificationModal(props) {
27755
27774
  }))), /*#__PURE__*/React__default['default'].createElement(ktsXui.Card, {
27756
27775
  className: "taxrightbox"
27757
27776
  }, /*#__PURE__*/React__default['default'].createElement(ktsXui.Form, _objectSpread2(_objectSpread2({
27758
- form: form,
27759
- key: props === null || props === void 0 ? void 0 : (_props$info2 = props.info) === null || _props$info2 === void 0 ? void 0 : _props$info2.key
27777
+ form: form
27760
27778
  }, layout), {}, {
27761
27779
  initialValues: props.info
27762
27780
  }), /*#__PURE__*/React__default['default'].createElement(ktsXui.Form.Item, {
27763
- rules: [{
27764
- required: true,
27765
- message: '请勾选税收分类编码'
27766
- }],
27767
- initialValue: (_props$info3 = props.info) === null || _props$info3 === void 0 ? void 0 : _props$info3.taxCategoryCode,
27768
27781
  name: "taxCategoryCode",
27769
27782
  label: "\u7F16\u7801"
27770
27783
  }, /*#__PURE__*/React__default['default'].createElement(ktsXui.FormReadOnly, null)), /*#__PURE__*/React__default['default'].createElement(ktsXui.Form.Item, {
@@ -27774,7 +27787,8 @@ function TaxClassificationModal(props) {
27774
27787
  name: "shorthand",
27775
27788
  label: "\u7B80\u79F0"
27776
27789
  }, /*#__PURE__*/React__default['default'].createElement(ktsXui.FormReadOnly, null)), /*#__PURE__*/React__default['default'].createElement(ktsXui.Form.Item, {
27777
- name: "desc",
27790
+ name: "taxDesc",
27791
+ className: "taxdesc",
27778
27792
  label: "\u8BF4\u660E"
27779
27793
  }, /*#__PURE__*/React__default['default'].createElement(ktsXui.FormReadOnly, null))))));
27780
27794
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kts-component-invoice-operate",
3
- "version": "3.2.179",
3
+ "version": "3.2.181",
4
4
  "scripts": {
5
5
  "dev": "dumi dev --max-old-space-size=6096",
6
6
  "start": "dumi dev",
@@ -379,30 +379,31 @@ const DrawerBody = (props: { defaultValue: IGood }) => {
379
379
  // s.value = info.node.taxRate
380
380
  // }
381
381
  // });
382
-
382
+ let node = info.node || info;
383
383
  actions.setFieldState('taxClassificationCode', async s => {
384
- if(info.taxCategoryCode) {
385
- s.value = info.taxCategoryCode
384
+ if(node.taxCategoryCode) {
385
+ s.value = node.taxCategoryCode
386
386
  }
387
387
  });
388
388
 
389
389
  actions.setFieldState('shorthand', async (s) => {
390
- if (info.shorthand){
391
- s.value = info.shorthand
390
+ if (node.shorthand){
391
+ s.value = node.shorthand
392
392
  }
393
393
  });
394
394
  setOpen(false);
395
395
  }, [controller, actions]);
396
396
 
397
397
  const onSelect = React.useCallback((key: any, info: any) => {
398
+ let node = info.node || info;
398
399
  if (controller.state.goodsListState.isUpdateGoodsTaxRateList) {
399
- if (info.node.taxRateList?.length) {
400
- setGoodsTaxRateList(info.node.taxRateList);
400
+ if (node.taxRateList?.length) {
401
+ setGoodsTaxRateList(node.taxRateList);
401
402
  }
402
403
  if (!readOnlyTaxRate) {
403
404
  actions.setFieldState('taxRate', async s => {
404
- if (info.node.taxRateList && info.node.taxRateList?.length === 1) {
405
- s.value = info.node.taxRateList[0]
405
+ if (node.taxRateList && node.taxRateList?.length === 1) {
406
+ s.value = node.taxRateList[0]
406
407
  } else {
407
408
  s.value = undefined
408
409
  }
@@ -453,7 +454,7 @@ const DrawerBody = (props: { defaultValue: IGood }) => {
453
454
  info={info}
454
455
  onSelect={onSelect}
455
456
  onSubmit={onSubmit1}
456
- onCancel={()=> {setOpen(false)}}
457
+ onCancel={()=> {setOpen(false); setInfo({})}}
457
458
  onSearch={onSearch}
458
459
  onLoad={onLoad}
459
460
  />
@@ -36,7 +36,7 @@ export default decorator<RealEstateInfoProps, FormComponentProps & RealEstateInf
36
36
  const readOnly = React.useMemo(() => model === 'readOnly', [model]);
37
37
 
38
38
  // 注册 form
39
- controller.useForm('realEstateInfo', form);
39
+ controller.useForm('serviceDataDtoInfo', form);
40
40
 
41
41
  return (
42
42
  <div className="kts-invoice-operate-real-estate-info-digtal">
@@ -45,10 +45,13 @@ export default decorator<RealEstateInfoProps, FormComponentProps & RealEstateInf
45
45
  <Col span={6} >
46
46
  <Form.Item label='土地增值税项目编号' >
47
47
  {getFieldDecorator('landNumber', {
48
+ rules: [
49
+ { max: 16, message: '最多16个字符' },
50
+ ]
48
51
  })(
49
52
  readOnly
50
53
  ? <MyDiv />
51
- : <Input autoComplete='off' placeholder="请输入" />
54
+ : <Input maxLength={16} autoComplete='off' placeholder="请输入" />
52
55
  )}
53
56
  </Form.Item>
54
57
  </Col>
@@ -6,5 +6,13 @@
6
6
  width: 340px;
7
7
  position: absolute;
8
8
  right: 30px;
9
+ top: 79px;
10
+ bottom: 50px;
11
+ min-height: 300px;
12
+ .taxdesc{
13
+ height: calc(100vh - 323px);
14
+ min-height: 105px;
15
+ overflow:auto
16
+ }
9
17
  }
10
18
  }
@@ -72,14 +72,22 @@ export default function TaxClassificationModal(props: TaxClassificationProps) {
72
72
  if(!values.taxCategoryCode){
73
73
  message.warn('请选择税收分类编码');
74
74
  return;
75
- }
76
- props.onCancel && props.onCancel();
75
+ }
77
76
  onChildrenDrawerClose();
78
77
  props.onSubmit && props.onSubmit(props.info?.key, {...props.info,...values});
79
78
  }).catch(errorInfo => {
80
79
  console.log('errorInfo', errorInfo);
81
80
  });
82
- }
81
+ }
82
+ React.useEffect(() => {
83
+ form.setFieldsValue({
84
+ ...form.getFieldsValue(),
85
+ taxCategoryCode: props?.info?.taxCategoryCode,
86
+ productName: props?.info?.productName,
87
+ shorthand: props?.info?.shorthand,
88
+ taxDesc: props?.info?.taxDesc,
89
+ })
90
+ },[props?.info?.key])
83
91
  return (
84
92
  <Drawer
85
93
  title="商品和服务税收分类编码"
@@ -123,8 +131,8 @@ export default function TaxClassificationModal(props: TaxClassificationProps) {
123
131
  </Form.Item>
124
132
  </Form>
125
133
  <Card className="taxrightbox">
126
- <Form form={form} key={props?.info?.key} {...layout} initialValues={props.info} >
127
- <Form.Item rules={[{ required: true, message: '请勾选税收分类编码' }, ]} initialValue={props.info?.taxCategoryCode} name={"taxCategoryCode"} label="编码">
134
+ <Form form={form} {...layout} initialValues={props.info} >
135
+ <Form.Item name={"taxCategoryCode"} label="编码">
128
136
  <FormReadOnly />
129
137
  </Form.Item>
130
138
  <Form.Item name={"productName"} label="货物和劳务名称">
@@ -133,7 +141,7 @@ export default function TaxClassificationModal(props: TaxClassificationProps) {
133
141
  <Form.Item name={"shorthand"} label="简称">
134
142
  <FormReadOnly />
135
143
  </Form.Item>
136
- <Form.Item name={"desc"} label="说明">
144
+ <Form.Item name={"taxDesc"} className="taxdesc" label="说明">
137
145
  <FormReadOnly />
138
146
  </Form.Item>
139
147
  </Form>