kts-component-invoice-operate 3.2.130 → 3.2.132

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
@@ -15606,52 +15606,68 @@ function useSalesGifts() {
15606
15606
  while (1) {
15607
15607
  switch (_context.prev = _context.next) {
15608
15608
  case 0:
15609
+ _context.next = 2;
15610
+ return controller.saveEditGood();
15611
+
15612
+ case 2:
15613
+ _context.next = 4;
15614
+ return controller.wait();
15615
+
15616
+ case 4:
15617
+ if (!controller.state.goodsListState.editGood) {
15618
+ _context.next = 6;
15619
+ break;
15620
+ }
15621
+
15622
+ return _context.abrupt("return");
15623
+
15624
+ case 6:
15609
15625
  _iterator = _createForOfIteratorHelper(giveaways);
15610
- _context.prev = 1;
15626
+ _context.prev = 7;
15611
15627
 
15612
15628
  _iterator.s();
15613
15629
 
15614
- case 3:
15630
+ case 9:
15615
15631
  if ((_step = _iterator.n()).done) {
15616
- _context.next = 10;
15632
+ _context.next = 16;
15617
15633
  break;
15618
15634
  }
15619
15635
 
15620
15636
  g = _step.value;
15621
15637
  g.lineAttribute = LineAttributeType$1.正常;
15622
- _context.next = 8;
15638
+ _context.next = 14;
15623
15639
  return controller.addGoodDiscountV2([{
15624
15640
  $index: g.$index,
15625
15641
  discolineAmountunt: g.lineAmountIncludeTax || 0
15626
15642
  }]);
15627
15643
 
15628
- case 8:
15629
- _context.next = 3;
15644
+ case 14:
15645
+ _context.next = 9;
15630
15646
  break;
15631
15647
 
15632
- case 10:
15633
- _context.next = 15;
15648
+ case 16:
15649
+ _context.next = 21;
15634
15650
  break;
15635
15651
 
15636
- case 12:
15637
- _context.prev = 12;
15638
- _context.t0 = _context["catch"](1);
15652
+ case 18:
15653
+ _context.prev = 18;
15654
+ _context.t0 = _context["catch"](7);
15639
15655
 
15640
15656
  _iterator.e(_context.t0);
15641
15657
 
15642
- case 15:
15643
- _context.prev = 15;
15658
+ case 21:
15659
+ _context.prev = 21;
15644
15660
 
15645
15661
  _iterator.f();
15646
15662
 
15647
- return _context.finish(15);
15663
+ return _context.finish(21);
15648
15664
 
15649
- case 18:
15665
+ case 24:
15650
15666
  case "end":
15651
15667
  return _context.stop();
15652
15668
  }
15653
15669
  }
15654
- }, _callee, null, [[1, 12, 15, 18]]);
15670
+ }, _callee, null, [[7, 18, 21, 24]]);
15655
15671
  })), [controller, giveaways]);
15656
15672
  var onClickManual = React.useCallback( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
15657
15673
  var _controller$state$goo, goodsMap, _selectedGoodIndex, _giveaways, _iterator2, _step2, g;
@@ -15661,70 +15677,86 @@ function useSalesGifts() {
15661
15677
  switch (_context2.prev = _context2.next) {
15662
15678
  case 0:
15663
15679
  _context2.prev = 0;
15680
+ _context2.next = 3;
15681
+ return controller.saveEditGood();
15682
+
15683
+ case 3:
15684
+ _context2.next = 5;
15685
+ return controller.wait();
15686
+
15687
+ case 5:
15688
+ if (!controller.state.goodsListState.editGood) {
15689
+ _context2.next = 7;
15690
+ break;
15691
+ }
15692
+
15693
+ return _context2.abrupt("return");
15694
+
15695
+ case 7:
15664
15696
  _controller$state$goo = controller.state.goodsListState, goodsMap = _controller$state$goo.goodsMap, _selectedGoodIndex = _controller$state$goo.selectedGoodIndex;
15665
15697
  _giveaways = _selectedGoodIndex.map(function (e) {
15666
15698
  return goodsMap.get(e);
15667
15699
  }).filter(function (e) {
15668
15700
  return !!e;
15669
15701
  });
15670
- _context2.next = 5;
15702
+ _context2.next = 11;
15671
15703
  return checkLineAttribute(_giveaways);
15672
15704
 
15673
- case 5:
15705
+ case 11:
15674
15706
  _iterator2 = _createForOfIteratorHelper(_giveaways);
15675
- _context2.prev = 6;
15707
+ _context2.prev = 12;
15676
15708
 
15677
15709
  _iterator2.s();
15678
15710
 
15679
- case 8:
15711
+ case 14:
15680
15712
  if ((_step2 = _iterator2.n()).done) {
15681
- _context2.next = 14;
15713
+ _context2.next = 20;
15682
15714
  break;
15683
15715
  }
15684
15716
 
15685
15717
  g = _step2.value;
15686
- _context2.next = 12;
15718
+ _context2.next = 18;
15687
15719
  return controller.addGoodDiscountV2([{
15688
15720
  $index: g.$index,
15689
15721
  discolineAmountunt: g.lineAmountIncludeTax || 0
15690
15722
  }]);
15691
15723
 
15692
- case 12:
15693
- _context2.next = 8;
15724
+ case 18:
15725
+ _context2.next = 14;
15694
15726
  break;
15695
15727
 
15696
- case 14:
15697
- _context2.next = 19;
15728
+ case 20:
15729
+ _context2.next = 25;
15698
15730
  break;
15699
15731
 
15700
- case 16:
15701
- _context2.prev = 16;
15702
- _context2.t0 = _context2["catch"](6);
15732
+ case 22:
15733
+ _context2.prev = 22;
15734
+ _context2.t0 = _context2["catch"](12);
15703
15735
 
15704
15736
  _iterator2.e(_context2.t0);
15705
15737
 
15706
- case 19:
15707
- _context2.prev = 19;
15738
+ case 25:
15739
+ _context2.prev = 25;
15708
15740
 
15709
15741
  _iterator2.f();
15710
15742
 
15711
- return _context2.finish(19);
15743
+ return _context2.finish(25);
15712
15744
 
15713
- case 22:
15745
+ case 28:
15714
15746
  controller.state.goodsListState.selectedGoodIndex = [];
15715
- _context2.next = 27;
15747
+ _context2.next = 33;
15716
15748
  break;
15717
15749
 
15718
- case 25:
15719
- _context2.prev = 25;
15750
+ case 31:
15751
+ _context2.prev = 31;
15720
15752
  _context2.t1 = _context2["catch"](0);
15721
15753
 
15722
- case 27:
15754
+ case 33:
15723
15755
  case "end":
15724
15756
  return _context2.stop();
15725
15757
  }
15726
15758
  }
15727
- }, _callee2, null, [[0, 25], [6, 16, 19, 22]]);
15759
+ }, _callee2, null, [[0, 31], [12, 22, 25, 28]]);
15728
15760
  })), [controller]);
15729
15761
  var items = React.useMemo(function () {
15730
15762
  return [{
@@ -16797,7 +16829,7 @@ function SvgPlus(props) {
16797
16829
  })))));
16798
16830
  }
16799
16831
 
16800
- var css_248z$g = ".kts-invoice-operate-invoice-digtal-stakeholder {\n display: flex;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder .digtal-stakeholder-expand-button {\n cursor: pointer;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder > div {\n border-right: 2px solid #9F613E;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder > div:nth-child(even) {\n flex: 1;\n display: flex;\n flex-direction: column;\n justify-content: end;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder > div:nth-child(odd) {\n flex: none;\n text-align: center;\n color: #9F613E;\n display: flex;\n flex-direction: column;\n justify-content: center;\n justify-items: center;\n padding: 0 4px;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder > div:last-child {\n border-right: none;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder .digtal-stakeholder-form {\n padding: 20px 10px;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder .digtal-stakeholder-form .ktsAntX-col {\n margin-bottom: 15px;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder .digtal-stakeholder-form .ktsAntX-col:last-child {\n margin-bottom: 0;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder .digtal-stakeholder-form .ktsAnt3x-row.ktsAnt3x-form-item {\n display: flex;\n margin-bottom: 0;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder .digtal-stakeholder-form .ktsAnt3x-row.ktsAnt3x-form-item .ktsAnt3x-form-item-label {\n flex: none;\n font-weight: 500;\n line-height: 29px;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder .digtal-stakeholder-form .ktsAnt3x-row.ktsAnt3x-form-item .ktsAnt3x-form-item-label label {\n color: #9F603D;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder .digtal-stakeholder-form .ktsAnt3x-row.ktsAnt3x-form-item .ktsAnt3x-form-item-control {\n line-height: 1.4;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder .digtal-stakeholder-form .ktsAnt3x-row.ktsAnt3x-form-item .ktsAnt3x-form-item-control .digtal-stakeholder-form-text {\n word-break: break-all;\n line-height: 29px;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder .digtal-stakeholder-form .ktsAnt3x-row.ktsAnt3x-form-item .ktsAnt3x-form-item-control-wrapper {\n flex: 1;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder.readOnly > div:nth-child(even) {\n justify-content: start;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder.readOnly .digtal-stakeholder-form .ktsAnt3x-row.ktsAnt3x-form-item .ktsAnt3x-form-item-label {\n line-height: 1.4;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder.readOnly .digtal-stakeholder-form .ktsAnt3x-row.ktsAnt3x-form-item .ktsAnt3x-form-item-control .digtal-stakeholder-form-text {\n line-height: 1.4;\n}\n";
16832
+ var css_248z$g = ".kts-invoice-operate-invoice-digtal-stakeholder {\n display: flex;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder .digtal-stakeholder-expand-button {\n cursor: pointer;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder > div {\n border-right: 2px solid #9F613E;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder > div:nth-child(even) {\n flex: 1;\n display: flex;\n flex-direction: column;\n justify-content: end;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder > div:nth-child(odd) {\n flex: none;\n text-align: center;\n color: #9F613E;\n display: flex;\n flex-direction: column;\n justify-content: center;\n justify-items: center;\n padding: 0 4px;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder > div:last-child {\n border-right: none;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder .digtal-stakeholder-form {\n padding: 12px 10px 5px;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder .digtal-stakeholder-form .ktsAntX-col {\n margin-bottom: 15px;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder .digtal-stakeholder-form .ktsAnt3x-row.ktsAnt3x-form-item {\n display: flex;\n margin-bottom: 0;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder .digtal-stakeholder-form .ktsAnt3x-row.ktsAnt3x-form-item .ktsAnt3x-form-item-label {\n flex: none;\n font-weight: 500;\n line-height: 29px;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder .digtal-stakeholder-form .ktsAnt3x-row.ktsAnt3x-form-item .ktsAnt3x-form-item-label label {\n color: #9F603D;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder .digtal-stakeholder-form .ktsAnt3x-row.ktsAnt3x-form-item .ktsAnt3x-form-item-control {\n line-height: 1.4;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder .digtal-stakeholder-form .ktsAnt3x-row.ktsAnt3x-form-item .ktsAnt3x-form-item-control .digtal-stakeholder-form-text {\n word-break: break-all;\n line-height: 29px;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder .digtal-stakeholder-form .ktsAnt3x-row.ktsAnt3x-form-item .ktsAnt3x-form-item-control-wrapper {\n flex: 1;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder .natural-person-flag {\n padding: 0 8px;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder .natural-person-flag .ktsAnt3x-form-item-control {\n line-height: 32px;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder .natural-person-flag .ktsAnt3x-row.ktsAnt3x-form-item {\n margin-bottom: 0;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder.readOnly > div:nth-child(even) {\n justify-content: start;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder.readOnly .digtal-stakeholder-form .ktsAnt3x-row.ktsAnt3x-form-item .ktsAnt3x-form-item-label {\n line-height: 1.4;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder.readOnly .digtal-stakeholder-form .ktsAnt3x-row.ktsAnt3x-form-item .ktsAnt3x-form-item-control .digtal-stakeholder-form-text {\n line-height: 1.4;\n}\n";
16801
16833
  styleInject(css_248z$g);
16802
16834
 
16803
16835
  var RULES = {
@@ -16920,18 +16952,20 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
16920
16952
  className: "digtal-stakeholder-expand-button",
16921
16953
  component: isExpand ? SvgArrowUp : SvgArrowDown,
16922
16954
  onClick: onExpand
16923
- })), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Form, {
16924
- className: "digtal-stakeholder-form"
16925
- }, /*#__PURE__*/React.createElement(Row, {
16926
- gutter: [16, 0]
16927
- }, props.isNaturalPerson === true && /*#__PURE__*/React.createElement(Col, {
16928
- span: 24
16929
- }, /*#__PURE__*/React.createElement(Form.Item, {
16930
- label: "\u8D2D\u4E70\u65B9\u4FE1\u606F",
16955
+ })), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
16956
+ style: {
16957
+ marginTop: 20
16958
+ },
16959
+ className: 'natural-person-flag'
16960
+ }, props.isNaturalPerson === true && /*#__PURE__*/React.createElement(Form.Item, {
16931
16961
  colon: false
16932
16962
  }, getFieldDecorator('naturalPersonFlag', {})( /*#__PURE__*/React.createElement(NaturalPersonFlag, {
16933
16963
  readOnly: isReadOnly('naturalPersonFlag')
16934
- })))), /*#__PURE__*/React.createElement(Col, {
16964
+ })))), /*#__PURE__*/React.createElement(Form, {
16965
+ className: "digtal-stakeholder-form"
16966
+ }, /*#__PURE__*/React.createElement(Row, {
16967
+ gutter: [16, 0]
16968
+ }, /*#__PURE__*/React.createElement(Col, {
16935
16969
  span: 24
16936
16970
  }, /*#__PURE__*/React.createElement(Form.Item, {
16937
16971
  label: "\u540D\u79F0",
@@ -16942,7 +16976,7 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
16942
16976
  myform: form,
16943
16977
  fieldName: 'buyerName',
16944
16978
  readOnly: isReadOnly('buyerName'),
16945
- placeholder: "\u8BF7\u8F93\u5165",
16979
+ placeholder: "\u8BF7\u8F93\u5165\u540D\u79F0",
16946
16980
  autoComplete: "off",
16947
16981
  suffix: isShowImportButton === true && /*#__PURE__*/React.createElement(Button$1, {
16948
16982
  type: 'link',
@@ -16972,10 +17006,10 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
16972
17006
  myform: form,
16973
17007
  fieldName: 'buyerTaxId',
16974
17008
  readOnly: isReadOnly('buyerTaxId'),
16975
- placeholder: "\u8BF7\u8F93\u5165",
17009
+ placeholder: "\u8BF7\u8F93\u5165\u7EDF\u4E00\u793E\u4F1A\u4FE1\u7528\u4EE3\u7801/\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7",
16976
17010
  autoComplete: "off"
16977
17011
  })))), isExpand && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Col, {
16978
- span: 15
17012
+ span: 14
16979
17013
  }, /*#__PURE__*/React.createElement(Form.Item, {
16980
17014
  label: "\u8D2D\u4E70\u65B9\u5730\u5740",
16981
17015
  colon: false
@@ -16986,21 +17020,22 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
16986
17020
  }])
16987
17021
  })( /*#__PURE__*/React.createElement(MyInput$1, {
16988
17022
  readOnly: isReadOnly('buyerAddress'),
16989
- placeholder: "\u8BF7\u8F93\u5165",
17023
+ placeholder: "\u8BF7\u8F93\u5165\u8D2D\u4E70\u65B9\u5730\u5740",
16990
17024
  autoComplete: "off"
16991
17025
  })))), /*#__PURE__*/React.createElement(Col, {
16992
- span: 9
17026
+ span: 10
16993
17027
  }, /*#__PURE__*/React.createElement(Form.Item, {
16994
17028
  label: "\u7535\u8BDD",
16995
- colon: false
17029
+ colon: false,
17030
+ className: 'telephone'
16996
17031
  }, getFieldDecorator('buyerPhone', {
16997
17032
  rules: getRules('buyerPhone', RULES.buyerTelPhone('购买方电话'))
16998
17033
  })( /*#__PURE__*/React.createElement(MyInput$1, {
16999
17034
  readOnly: isReadOnly('buyerPhone'),
17000
- placeholder: "\u8BF7\u8F93\u5165",
17035
+ placeholder: "\u8BF7\u8F93\u5165\u7535\u8BDD",
17001
17036
  autoComplete: "off"
17002
17037
  })))), /*#__PURE__*/React.createElement(Col, {
17003
- span: 12
17038
+ span: 14
17004
17039
  }, /*#__PURE__*/React.createElement(Form.Item, {
17005
17040
  label: "\u8D2D\u4E70\u65B9\u5F00\u6237\u94F6\u884C",
17006
17041
  colon: false
@@ -17008,10 +17043,10 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
17008
17043
  rules: getRules('buyerBank', RULES.bankName('购买方开户银行'))
17009
17044
  })( /*#__PURE__*/React.createElement(MyInput$1, {
17010
17045
  readOnly: isReadOnly('buyerBank'),
17011
- placeholder: "\u8BF7\u8F93\u5165",
17046
+ placeholder: "\u8BF7\u8F93\u5165\u8D2D\u4E70\u65B9\u5F00\u6237\u94F6\u884C",
17012
17047
  autoComplete: "off"
17013
17048
  })))), /*#__PURE__*/React.createElement(Col, {
17014
- span: 12
17049
+ span: 10
17015
17050
  }, /*#__PURE__*/React.createElement(Form.Item, {
17016
17051
  label: "\u94F6\u884C\u8D26\u53F7",
17017
17052
  colon: false
@@ -17019,7 +17054,7 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
17019
17054
  rules: getRules('buyerAccount', RULES.bankAccount('购买方银行账号'))
17020
17055
  })( /*#__PURE__*/React.createElement(MyInput$1, {
17021
17056
  readOnly: isReadOnly('buyerAccount'),
17022
- placeholder: "\u8BF7\u8F93\u5165",
17057
+ placeholder: "\u8BF7\u8F93\u5165\u94F6\u884C\u8D26\u53F7",
17023
17058
  autoComplete: "off"
17024
17059
  })))))))), /*#__PURE__*/React.createElement("div", null, '销售方信息'.split('').map(function (e) {
17025
17060
  return /*#__PURE__*/React.createElement("span", null, e);
@@ -17035,7 +17070,10 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
17035
17070
  trigger: "click",
17036
17071
  title: props.lineCredit
17037
17072
  }, /*#__PURE__*/React.createElement(Button$1, {
17038
- type: "link"
17073
+ type: "link",
17074
+ style: {
17075
+ padding: "0px 8px"
17076
+ }
17039
17077
  }, "\u67E5\u770B\u5F53\u524D\u53EF\u7528\u6388\u4FE1\u989D\u5EA6"))), /*#__PURE__*/React.createElement(Form, {
17040
17078
  className: "digtal-stakeholder-form"
17041
17079
  }, /*#__PURE__*/React.createElement(Row, {
@@ -17050,7 +17088,7 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
17050
17088
  getValueFromEvent: formatCompanyName
17051
17089
  })( /*#__PURE__*/React.createElement(MyInput$1, {
17052
17090
  readOnly: isReadOnly('supplierName'),
17053
- placeholder: "\u8BF7\u8F93\u5165",
17091
+ placeholder: "\u8BF7\u8F93\u5165\u540D\u79F0",
17054
17092
  autoComplete: "off"
17055
17093
  })))), /*#__PURE__*/React.createElement(Col, {
17056
17094
  span: 24
@@ -17064,10 +17102,10 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
17064
17102
  }].concat(_toConsumableArray(RULES.taxId('销售方纳税人识别号'))))
17065
17103
  })( /*#__PURE__*/React.createElement(MyInput$1, {
17066
17104
  readOnly: isReadOnly('supplierTaxId'),
17067
- placeholder: "\u8BF7\u8F93\u5165",
17105
+ placeholder: "\u8BF7\u8F93\u5165\u7EDF\u4E00\u793E\u4F1A\u4FE1\u7528\u4EE3\u7801/\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7",
17068
17106
  autoComplete: "off"
17069
17107
  })))), isExpand && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Col, {
17070
- span: 15
17108
+ span: 12
17071
17109
  }, /*#__PURE__*/React.createElement(Form.Item, {
17072
17110
  label: "\u9500\u552E\u65B9\u5730\u5740",
17073
17111
  colon: false
@@ -17078,18 +17116,19 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
17078
17116
  }])
17079
17117
  })( /*#__PURE__*/React.createElement(MyInput$1, {
17080
17118
  readOnly: isReadOnly('sellerAddress'),
17081
- placeholder: "\u8BF7\u8F93\u5165",
17119
+ placeholder: "\u8BF7\u8F93\u5165\u9500\u552E\u65B9\u5730\u5740",
17082
17120
  autoComplete: "off"
17083
17121
  })))), /*#__PURE__*/React.createElement(Col, {
17084
- span: 9
17122
+ span: 12
17085
17123
  }, /*#__PURE__*/React.createElement(Form.Item, {
17086
17124
  label: "\u7535\u8BDD",
17087
- colon: false
17125
+ colon: false,
17126
+ className: 'telephone'
17088
17127
  }, getFieldDecorator('sellerPhone', {
17089
17128
  rules: getRules('sellerPhone', RULES.sellerTelPhone('销售方电话'))
17090
17129
  })( /*#__PURE__*/React.createElement(MyInput$1, {
17091
17130
  readOnly: isReadOnly('sellerPhone'),
17092
- placeholder: "\u8BF7\u8F93\u5165",
17131
+ placeholder: "\u8BF7\u8F93\u5165\u7535\u8BDD",
17093
17132
  autoComplete: "off"
17094
17133
  })))), /*#__PURE__*/React.createElement(Col, {
17095
17134
  span: 12
@@ -17100,7 +17139,7 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
17100
17139
  rules: getRules('sellerBank', RULES.bankName('销售方开户银行'))
17101
17140
  })( /*#__PURE__*/React.createElement(MyInput$1, {
17102
17141
  readOnly: isReadOnly('sellerBank'),
17103
- placeholder: "\u8BF7\u8F93\u5165",
17142
+ placeholder: "\u8BF7\u8F93\u5165\u9500\u552E\u65B9\u5F00\u6237\u94F6\u884C",
17104
17143
  autoComplete: "off"
17105
17144
  })))), /*#__PURE__*/React.createElement(Col, {
17106
17145
  span: 12
@@ -17111,7 +17150,7 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
17111
17150
  rules: getRules('sellerAccount', RULES.bankAccount('销售方银行账号'))
17112
17151
  })( /*#__PURE__*/React.createElement(MyInput$1, {
17113
17152
  readOnly: isReadOnly('sellerAccount'),
17114
- placeholder: "\u8BF7\u8F93\u5165",
17153
+ placeholder: "\u8BF7\u8F93\u5165\u94F6\u884C\u8D26\u53F7",
17115
17154
  autoComplete: "off"
17116
17155
  })))))))));
17117
17156
  });
@@ -17244,7 +17283,10 @@ function BuyerNameInput$1(props) {
17244
17283
  };
17245
17284
  }),
17246
17285
  onChange: onChangeAutoComplete,
17247
- value: props.value
17286
+ value: props.value,
17287
+ style: {
17288
+ width: '100%'
17289
+ }
17248
17290
  }, /*#__PURE__*/React.createElement(Input$1, _objectSpread2(_objectSpread2({}, props), {}, {
17249
17291
  style: _objectSpread2({
17250
17292
  width: '100%'
package/dist/index.js CHANGED
@@ -15616,52 +15616,68 @@ function useSalesGifts() {
15616
15616
  while (1) {
15617
15617
  switch (_context.prev = _context.next) {
15618
15618
  case 0:
15619
+ _context.next = 2;
15620
+ return controller.saveEditGood();
15621
+
15622
+ case 2:
15623
+ _context.next = 4;
15624
+ return controller.wait();
15625
+
15626
+ case 4:
15627
+ if (!controller.state.goodsListState.editGood) {
15628
+ _context.next = 6;
15629
+ break;
15630
+ }
15631
+
15632
+ return _context.abrupt("return");
15633
+
15634
+ case 6:
15619
15635
  _iterator = _createForOfIteratorHelper(giveaways);
15620
- _context.prev = 1;
15636
+ _context.prev = 7;
15621
15637
 
15622
15638
  _iterator.s();
15623
15639
 
15624
- case 3:
15640
+ case 9:
15625
15641
  if ((_step = _iterator.n()).done) {
15626
- _context.next = 10;
15642
+ _context.next = 16;
15627
15643
  break;
15628
15644
  }
15629
15645
 
15630
15646
  g = _step.value;
15631
15647
  g.lineAttribute = LineAttributeType$1.正常;
15632
- _context.next = 8;
15648
+ _context.next = 14;
15633
15649
  return controller.addGoodDiscountV2([{
15634
15650
  $index: g.$index,
15635
15651
  discolineAmountunt: g.lineAmountIncludeTax || 0
15636
15652
  }]);
15637
15653
 
15638
- case 8:
15639
- _context.next = 3;
15654
+ case 14:
15655
+ _context.next = 9;
15640
15656
  break;
15641
15657
 
15642
- case 10:
15643
- _context.next = 15;
15658
+ case 16:
15659
+ _context.next = 21;
15644
15660
  break;
15645
15661
 
15646
- case 12:
15647
- _context.prev = 12;
15648
- _context.t0 = _context["catch"](1);
15662
+ case 18:
15663
+ _context.prev = 18;
15664
+ _context.t0 = _context["catch"](7);
15649
15665
 
15650
15666
  _iterator.e(_context.t0);
15651
15667
 
15652
- case 15:
15653
- _context.prev = 15;
15668
+ case 21:
15669
+ _context.prev = 21;
15654
15670
 
15655
15671
  _iterator.f();
15656
15672
 
15657
- return _context.finish(15);
15673
+ return _context.finish(21);
15658
15674
 
15659
- case 18:
15675
+ case 24:
15660
15676
  case "end":
15661
15677
  return _context.stop();
15662
15678
  }
15663
15679
  }
15664
- }, _callee, null, [[1, 12, 15, 18]]);
15680
+ }, _callee, null, [[7, 18, 21, 24]]);
15665
15681
  })), [controller, giveaways]);
15666
15682
  var onClickManual = React__default['default'].useCallback( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
15667
15683
  var _controller$state$goo, goodsMap, _selectedGoodIndex, _giveaways, _iterator2, _step2, g;
@@ -15671,70 +15687,86 @@ function useSalesGifts() {
15671
15687
  switch (_context2.prev = _context2.next) {
15672
15688
  case 0:
15673
15689
  _context2.prev = 0;
15690
+ _context2.next = 3;
15691
+ return controller.saveEditGood();
15692
+
15693
+ case 3:
15694
+ _context2.next = 5;
15695
+ return controller.wait();
15696
+
15697
+ case 5:
15698
+ if (!controller.state.goodsListState.editGood) {
15699
+ _context2.next = 7;
15700
+ break;
15701
+ }
15702
+
15703
+ return _context2.abrupt("return");
15704
+
15705
+ case 7:
15674
15706
  _controller$state$goo = controller.state.goodsListState, goodsMap = _controller$state$goo.goodsMap, _selectedGoodIndex = _controller$state$goo.selectedGoodIndex;
15675
15707
  _giveaways = _selectedGoodIndex.map(function (e) {
15676
15708
  return goodsMap.get(e);
15677
15709
  }).filter(function (e) {
15678
15710
  return !!e;
15679
15711
  });
15680
- _context2.next = 5;
15712
+ _context2.next = 11;
15681
15713
  return checkLineAttribute(_giveaways);
15682
15714
 
15683
- case 5:
15715
+ case 11:
15684
15716
  _iterator2 = _createForOfIteratorHelper(_giveaways);
15685
- _context2.prev = 6;
15717
+ _context2.prev = 12;
15686
15718
 
15687
15719
  _iterator2.s();
15688
15720
 
15689
- case 8:
15721
+ case 14:
15690
15722
  if ((_step2 = _iterator2.n()).done) {
15691
- _context2.next = 14;
15723
+ _context2.next = 20;
15692
15724
  break;
15693
15725
  }
15694
15726
 
15695
15727
  g = _step2.value;
15696
- _context2.next = 12;
15728
+ _context2.next = 18;
15697
15729
  return controller.addGoodDiscountV2([{
15698
15730
  $index: g.$index,
15699
15731
  discolineAmountunt: g.lineAmountIncludeTax || 0
15700
15732
  }]);
15701
15733
 
15702
- case 12:
15703
- _context2.next = 8;
15734
+ case 18:
15735
+ _context2.next = 14;
15704
15736
  break;
15705
15737
 
15706
- case 14:
15707
- _context2.next = 19;
15738
+ case 20:
15739
+ _context2.next = 25;
15708
15740
  break;
15709
15741
 
15710
- case 16:
15711
- _context2.prev = 16;
15712
- _context2.t0 = _context2["catch"](6);
15742
+ case 22:
15743
+ _context2.prev = 22;
15744
+ _context2.t0 = _context2["catch"](12);
15713
15745
 
15714
15746
  _iterator2.e(_context2.t0);
15715
15747
 
15716
- case 19:
15717
- _context2.prev = 19;
15748
+ case 25:
15749
+ _context2.prev = 25;
15718
15750
 
15719
15751
  _iterator2.f();
15720
15752
 
15721
- return _context2.finish(19);
15753
+ return _context2.finish(25);
15722
15754
 
15723
- case 22:
15755
+ case 28:
15724
15756
  controller.state.goodsListState.selectedGoodIndex = [];
15725
- _context2.next = 27;
15757
+ _context2.next = 33;
15726
15758
  break;
15727
15759
 
15728
- case 25:
15729
- _context2.prev = 25;
15760
+ case 31:
15761
+ _context2.prev = 31;
15730
15762
  _context2.t1 = _context2["catch"](0);
15731
15763
 
15732
- case 27:
15764
+ case 33:
15733
15765
  case "end":
15734
15766
  return _context2.stop();
15735
15767
  }
15736
15768
  }
15737
- }, _callee2, null, [[0, 25], [6, 16, 19, 22]]);
15769
+ }, _callee2, null, [[0, 31], [12, 22, 25, 28]]);
15738
15770
  })), [controller]);
15739
15771
  var items = React__default['default'].useMemo(function () {
15740
15772
  return [{
@@ -16807,7 +16839,7 @@ function SvgPlus(props) {
16807
16839
  })))));
16808
16840
  }
16809
16841
 
16810
- var css_248z$g = ".kts-invoice-operate-invoice-digtal-stakeholder {\n display: flex;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder .digtal-stakeholder-expand-button {\n cursor: pointer;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder > div {\n border-right: 2px solid #9F613E;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder > div:nth-child(even) {\n flex: 1;\n display: flex;\n flex-direction: column;\n justify-content: end;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder > div:nth-child(odd) {\n flex: none;\n text-align: center;\n color: #9F613E;\n display: flex;\n flex-direction: column;\n justify-content: center;\n justify-items: center;\n padding: 0 4px;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder > div:last-child {\n border-right: none;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder .digtal-stakeholder-form {\n padding: 20px 10px;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder .digtal-stakeholder-form .ktsAntX-col {\n margin-bottom: 15px;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder .digtal-stakeholder-form .ktsAntX-col:last-child {\n margin-bottom: 0;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder .digtal-stakeholder-form .ktsAnt3x-row.ktsAnt3x-form-item {\n display: flex;\n margin-bottom: 0;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder .digtal-stakeholder-form .ktsAnt3x-row.ktsAnt3x-form-item .ktsAnt3x-form-item-label {\n flex: none;\n font-weight: 500;\n line-height: 29px;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder .digtal-stakeholder-form .ktsAnt3x-row.ktsAnt3x-form-item .ktsAnt3x-form-item-label label {\n color: #9F603D;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder .digtal-stakeholder-form .ktsAnt3x-row.ktsAnt3x-form-item .ktsAnt3x-form-item-control {\n line-height: 1.4;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder .digtal-stakeholder-form .ktsAnt3x-row.ktsAnt3x-form-item .ktsAnt3x-form-item-control .digtal-stakeholder-form-text {\n word-break: break-all;\n line-height: 29px;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder .digtal-stakeholder-form .ktsAnt3x-row.ktsAnt3x-form-item .ktsAnt3x-form-item-control-wrapper {\n flex: 1;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder.readOnly > div:nth-child(even) {\n justify-content: start;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder.readOnly .digtal-stakeholder-form .ktsAnt3x-row.ktsAnt3x-form-item .ktsAnt3x-form-item-label {\n line-height: 1.4;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder.readOnly .digtal-stakeholder-form .ktsAnt3x-row.ktsAnt3x-form-item .ktsAnt3x-form-item-control .digtal-stakeholder-form-text {\n line-height: 1.4;\n}\n";
16842
+ var css_248z$g = ".kts-invoice-operate-invoice-digtal-stakeholder {\n display: flex;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder .digtal-stakeholder-expand-button {\n cursor: pointer;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder > div {\n border-right: 2px solid #9F613E;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder > div:nth-child(even) {\n flex: 1;\n display: flex;\n flex-direction: column;\n justify-content: end;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder > div:nth-child(odd) {\n flex: none;\n text-align: center;\n color: #9F613E;\n display: flex;\n flex-direction: column;\n justify-content: center;\n justify-items: center;\n padding: 0 4px;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder > div:last-child {\n border-right: none;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder .digtal-stakeholder-form {\n padding: 12px 10px 5px;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder .digtal-stakeholder-form .ktsAntX-col {\n margin-bottom: 15px;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder .digtal-stakeholder-form .ktsAnt3x-row.ktsAnt3x-form-item {\n display: flex;\n margin-bottom: 0;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder .digtal-stakeholder-form .ktsAnt3x-row.ktsAnt3x-form-item .ktsAnt3x-form-item-label {\n flex: none;\n font-weight: 500;\n line-height: 29px;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder .digtal-stakeholder-form .ktsAnt3x-row.ktsAnt3x-form-item .ktsAnt3x-form-item-label label {\n color: #9F603D;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder .digtal-stakeholder-form .ktsAnt3x-row.ktsAnt3x-form-item .ktsAnt3x-form-item-control {\n line-height: 1.4;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder .digtal-stakeholder-form .ktsAnt3x-row.ktsAnt3x-form-item .ktsAnt3x-form-item-control .digtal-stakeholder-form-text {\n word-break: break-all;\n line-height: 29px;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder .digtal-stakeholder-form .ktsAnt3x-row.ktsAnt3x-form-item .ktsAnt3x-form-item-control-wrapper {\n flex: 1;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder .natural-person-flag {\n padding: 0 8px;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder .natural-person-flag .ktsAnt3x-form-item-control {\n line-height: 32px;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder .natural-person-flag .ktsAnt3x-row.ktsAnt3x-form-item {\n margin-bottom: 0;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder.readOnly > div:nth-child(even) {\n justify-content: start;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder.readOnly .digtal-stakeholder-form .ktsAnt3x-row.ktsAnt3x-form-item .ktsAnt3x-form-item-label {\n line-height: 1.4;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder.readOnly .digtal-stakeholder-form .ktsAnt3x-row.ktsAnt3x-form-item .ktsAnt3x-form-item-control .digtal-stakeholder-form-text {\n line-height: 1.4;\n}\n";
16811
16843
  styleInject(css_248z$g);
16812
16844
 
16813
16845
  var RULES = {
@@ -16930,18 +16962,20 @@ var Stakeholder$1 = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(fu
16930
16962
  className: "digtal-stakeholder-expand-button",
16931
16963
  component: isExpand ? SvgArrowUp : SvgArrowDown,
16932
16964
  onClick: onExpand
16933
- })), /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX3.Form, {
16934
- className: "digtal-stakeholder-form"
16935
- }, /*#__PURE__*/React__default['default'].createElement(ktsXui.Row, {
16936
- gutter: [16, 0]
16937
- }, props.isNaturalPerson === true && /*#__PURE__*/React__default['default'].createElement(ktsXui.Col, {
16938
- span: 24
16939
- }, /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX3.Form.Item, {
16940
- label: "\u8D2D\u4E70\u65B9\u4FE1\u606F",
16965
+ })), /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("div", {
16966
+ style: {
16967
+ marginTop: 20
16968
+ },
16969
+ className: 'natural-person-flag'
16970
+ }, props.isNaturalPerson === true && /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX3.Form.Item, {
16941
16971
  colon: false
16942
16972
  }, getFieldDecorator('naturalPersonFlag', {})( /*#__PURE__*/React__default['default'].createElement(NaturalPersonFlag, {
16943
16973
  readOnly: isReadOnly('naturalPersonFlag')
16944
- })))), /*#__PURE__*/React__default['default'].createElement(ktsXui.Col, {
16974
+ })))), /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX3.Form, {
16975
+ className: "digtal-stakeholder-form"
16976
+ }, /*#__PURE__*/React__default['default'].createElement(ktsXui.Row, {
16977
+ gutter: [16, 0]
16978
+ }, /*#__PURE__*/React__default['default'].createElement(ktsXui.Col, {
16945
16979
  span: 24
16946
16980
  }, /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX3.Form.Item, {
16947
16981
  label: "\u540D\u79F0",
@@ -16952,7 +16986,7 @@ var Stakeholder$1 = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(fu
16952
16986
  myform: form,
16953
16987
  fieldName: 'buyerName',
16954
16988
  readOnly: isReadOnly('buyerName'),
16955
- placeholder: "\u8BF7\u8F93\u5165",
16989
+ placeholder: "\u8BF7\u8F93\u5165\u540D\u79F0",
16956
16990
  autoComplete: "off",
16957
16991
  suffix: isShowImportButton === true && /*#__PURE__*/React__default['default'].createElement(ktsXui.Button, {
16958
16992
  type: 'link',
@@ -16982,10 +17016,10 @@ var Stakeholder$1 = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(fu
16982
17016
  myform: form,
16983
17017
  fieldName: 'buyerTaxId',
16984
17018
  readOnly: isReadOnly('buyerTaxId'),
16985
- placeholder: "\u8BF7\u8F93\u5165",
17019
+ placeholder: "\u8BF7\u8F93\u5165\u7EDF\u4E00\u793E\u4F1A\u4FE1\u7528\u4EE3\u7801/\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7",
16986
17020
  autoComplete: "off"
16987
17021
  })))), isExpand && /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(ktsXui.Col, {
16988
- span: 15
17022
+ span: 14
16989
17023
  }, /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX3.Form.Item, {
16990
17024
  label: "\u8D2D\u4E70\u65B9\u5730\u5740",
16991
17025
  colon: false
@@ -16996,21 +17030,22 @@ var Stakeholder$1 = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(fu
16996
17030
  }])
16997
17031
  })( /*#__PURE__*/React__default['default'].createElement(MyInput$1, {
16998
17032
  readOnly: isReadOnly('buyerAddress'),
16999
- placeholder: "\u8BF7\u8F93\u5165",
17033
+ placeholder: "\u8BF7\u8F93\u5165\u8D2D\u4E70\u65B9\u5730\u5740",
17000
17034
  autoComplete: "off"
17001
17035
  })))), /*#__PURE__*/React__default['default'].createElement(ktsXui.Col, {
17002
- span: 9
17036
+ span: 10
17003
17037
  }, /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX3.Form.Item, {
17004
17038
  label: "\u7535\u8BDD",
17005
- colon: false
17039
+ colon: false,
17040
+ className: 'telephone'
17006
17041
  }, getFieldDecorator('buyerPhone', {
17007
17042
  rules: getRules('buyerPhone', RULES.buyerTelPhone('购买方电话'))
17008
17043
  })( /*#__PURE__*/React__default['default'].createElement(MyInput$1, {
17009
17044
  readOnly: isReadOnly('buyerPhone'),
17010
- placeholder: "\u8BF7\u8F93\u5165",
17045
+ placeholder: "\u8BF7\u8F93\u5165\u7535\u8BDD",
17011
17046
  autoComplete: "off"
17012
17047
  })))), /*#__PURE__*/React__default['default'].createElement(ktsXui.Col, {
17013
- span: 12
17048
+ span: 14
17014
17049
  }, /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX3.Form.Item, {
17015
17050
  label: "\u8D2D\u4E70\u65B9\u5F00\u6237\u94F6\u884C",
17016
17051
  colon: false
@@ -17018,10 +17053,10 @@ var Stakeholder$1 = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(fu
17018
17053
  rules: getRules('buyerBank', RULES.bankName('购买方开户银行'))
17019
17054
  })( /*#__PURE__*/React__default['default'].createElement(MyInput$1, {
17020
17055
  readOnly: isReadOnly('buyerBank'),
17021
- placeholder: "\u8BF7\u8F93\u5165",
17056
+ placeholder: "\u8BF7\u8F93\u5165\u8D2D\u4E70\u65B9\u5F00\u6237\u94F6\u884C",
17022
17057
  autoComplete: "off"
17023
17058
  })))), /*#__PURE__*/React__default['default'].createElement(ktsXui.Col, {
17024
- span: 12
17059
+ span: 10
17025
17060
  }, /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX3.Form.Item, {
17026
17061
  label: "\u94F6\u884C\u8D26\u53F7",
17027
17062
  colon: false
@@ -17029,7 +17064,7 @@ var Stakeholder$1 = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(fu
17029
17064
  rules: getRules('buyerAccount', RULES.bankAccount('购买方银行账号'))
17030
17065
  })( /*#__PURE__*/React__default['default'].createElement(MyInput$1, {
17031
17066
  readOnly: isReadOnly('buyerAccount'),
17032
- placeholder: "\u8BF7\u8F93\u5165",
17067
+ placeholder: "\u8BF7\u8F93\u5165\u94F6\u884C\u8D26\u53F7",
17033
17068
  autoComplete: "off"
17034
17069
  })))))))), /*#__PURE__*/React__default['default'].createElement("div", null, '销售方信息'.split('').map(function (e) {
17035
17070
  return /*#__PURE__*/React__default['default'].createElement("span", null, e);
@@ -17045,7 +17080,10 @@ var Stakeholder$1 = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(fu
17045
17080
  trigger: "click",
17046
17081
  title: props.lineCredit
17047
17082
  }, /*#__PURE__*/React__default['default'].createElement(ktsXui.Button, {
17048
- type: "link"
17083
+ type: "link",
17084
+ style: {
17085
+ padding: "0px 8px"
17086
+ }
17049
17087
  }, "\u67E5\u770B\u5F53\u524D\u53EF\u7528\u6388\u4FE1\u989D\u5EA6"))), /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX3.Form, {
17050
17088
  className: "digtal-stakeholder-form"
17051
17089
  }, /*#__PURE__*/React__default['default'].createElement(ktsXui.Row, {
@@ -17060,7 +17098,7 @@ var Stakeholder$1 = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(fu
17060
17098
  getValueFromEvent: formatCompanyName
17061
17099
  })( /*#__PURE__*/React__default['default'].createElement(MyInput$1, {
17062
17100
  readOnly: isReadOnly('supplierName'),
17063
- placeholder: "\u8BF7\u8F93\u5165",
17101
+ placeholder: "\u8BF7\u8F93\u5165\u540D\u79F0",
17064
17102
  autoComplete: "off"
17065
17103
  })))), /*#__PURE__*/React__default['default'].createElement(ktsXui.Col, {
17066
17104
  span: 24
@@ -17074,10 +17112,10 @@ var Stakeholder$1 = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(fu
17074
17112
  }].concat(_toConsumableArray(RULES.taxId('销售方纳税人识别号'))))
17075
17113
  })( /*#__PURE__*/React__default['default'].createElement(MyInput$1, {
17076
17114
  readOnly: isReadOnly('supplierTaxId'),
17077
- placeholder: "\u8BF7\u8F93\u5165",
17115
+ placeholder: "\u8BF7\u8F93\u5165\u7EDF\u4E00\u793E\u4F1A\u4FE1\u7528\u4EE3\u7801/\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7",
17078
17116
  autoComplete: "off"
17079
17117
  })))), isExpand && /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(ktsXui.Col, {
17080
- span: 15
17118
+ span: 12
17081
17119
  }, /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX3.Form.Item, {
17082
17120
  label: "\u9500\u552E\u65B9\u5730\u5740",
17083
17121
  colon: false
@@ -17088,18 +17126,19 @@ var Stakeholder$1 = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(fu
17088
17126
  }])
17089
17127
  })( /*#__PURE__*/React__default['default'].createElement(MyInput$1, {
17090
17128
  readOnly: isReadOnly('sellerAddress'),
17091
- placeholder: "\u8BF7\u8F93\u5165",
17129
+ placeholder: "\u8BF7\u8F93\u5165\u9500\u552E\u65B9\u5730\u5740",
17092
17130
  autoComplete: "off"
17093
17131
  })))), /*#__PURE__*/React__default['default'].createElement(ktsXui.Col, {
17094
- span: 9
17132
+ span: 12
17095
17133
  }, /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX3.Form.Item, {
17096
17134
  label: "\u7535\u8BDD",
17097
- colon: false
17135
+ colon: false,
17136
+ className: 'telephone'
17098
17137
  }, getFieldDecorator('sellerPhone', {
17099
17138
  rules: getRules('sellerPhone', RULES.sellerTelPhone('销售方电话'))
17100
17139
  })( /*#__PURE__*/React__default['default'].createElement(MyInput$1, {
17101
17140
  readOnly: isReadOnly('sellerPhone'),
17102
- placeholder: "\u8BF7\u8F93\u5165",
17141
+ placeholder: "\u8BF7\u8F93\u5165\u7535\u8BDD",
17103
17142
  autoComplete: "off"
17104
17143
  })))), /*#__PURE__*/React__default['default'].createElement(ktsXui.Col, {
17105
17144
  span: 12
@@ -17110,7 +17149,7 @@ var Stakeholder$1 = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(fu
17110
17149
  rules: getRules('sellerBank', RULES.bankName('销售方开户银行'))
17111
17150
  })( /*#__PURE__*/React__default['default'].createElement(MyInput$1, {
17112
17151
  readOnly: isReadOnly('sellerBank'),
17113
- placeholder: "\u8BF7\u8F93\u5165",
17152
+ placeholder: "\u8BF7\u8F93\u5165\u9500\u552E\u65B9\u5F00\u6237\u94F6\u884C",
17114
17153
  autoComplete: "off"
17115
17154
  })))), /*#__PURE__*/React__default['default'].createElement(ktsXui.Col, {
17116
17155
  span: 12
@@ -17121,7 +17160,7 @@ var Stakeholder$1 = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(fu
17121
17160
  rules: getRules('sellerAccount', RULES.bankAccount('销售方银行账号'))
17122
17161
  })( /*#__PURE__*/React__default['default'].createElement(MyInput$1, {
17123
17162
  readOnly: isReadOnly('sellerAccount'),
17124
- placeholder: "\u8BF7\u8F93\u5165",
17163
+ placeholder: "\u8BF7\u8F93\u5165\u94F6\u884C\u8D26\u53F7",
17125
17164
  autoComplete: "off"
17126
17165
  })))))))));
17127
17166
  });
@@ -17254,7 +17293,10 @@ function BuyerNameInput$1(props) {
17254
17293
  };
17255
17294
  }),
17256
17295
  onChange: onChangeAutoComplete,
17257
- value: props.value
17296
+ value: props.value,
17297
+ style: {
17298
+ width: '100%'
17299
+ }
17258
17300
  }, /*#__PURE__*/React__default['default'].createElement(ktsXui.Input, _objectSpread2(_objectSpread2({}, props), {}, {
17259
17301
  style: _objectSpread2({
17260
17302
  width: '100%'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kts-component-invoice-operate",
3
- "version": "3.2.130",
3
+ "version": "3.2.132",
4
4
  "scripts": {
5
5
  "dev": "dumi dev",
6
6
  "start": "dumi dev",
@@ -7,7 +7,7 @@ export default () => {
7
7
  <Invoice
8
8
  invoiceType='digtal'
9
9
  stakeholder={
10
- <Invoice.Stakeholder lineCredit={<LineCredit />} />
10
+ <Invoice.Stakeholder lineCredit={LineCredit} isNaturalPerson />
11
11
  }
12
12
  />
13
13
  )
@@ -19,6 +19,9 @@ export default function useSalesGifts() {
19
19
  const giveaways = React.useMemo(() => goodsList.filter(e => e.lineAttribute === LineAttributeType.赠品行), [goodsList])
20
20
 
21
21
  const onClickAuto = React.useCallback(async () => {
22
+ await controller.saveEditGood();
23
+ await controller.wait();
24
+ if (controller.state.goodsListState.editGood) return;
22
25
  for (let g of giveaways) {
23
26
  g.lineAttribute = LineAttributeType.正常;
24
27
  await controller.addGoodDiscountV2([{ $index: g.$index, discolineAmountunt: g.lineAmountIncludeTax || 0 }]);
@@ -27,6 +30,9 @@ export default function useSalesGifts() {
27
30
 
28
31
  const onClickManual = React.useCallback(async () => {
29
32
  try {
33
+ await controller.saveEditGood();
34
+ await controller.wait();
35
+ if (controller.state.goodsListState.editGood) return;
30
36
  const { goodsMap, selectedGoodIndex } = controller.state.goodsListState;
31
37
  const giveaways = selectedGoodIndex.map(e => goodsMap.get(e) as IGood).filter(e => !!e);
32
38
 
@@ -34,14 +34,10 @@
34
34
 
35
35
  .digtal-stakeholder-form {
36
36
 
37
- padding: 20px 10px;
37
+ padding: 12px 10px 5px;
38
38
 
39
39
  .ktsAntX-col {
40
40
  margin-bottom: 15px;
41
-
42
- &:last-child {
43
- margin-bottom: 0;
44
- }
45
41
  }
46
42
 
47
43
  .ktsAnt3x-row.ktsAnt3x-form-item {
@@ -62,7 +58,7 @@
62
58
  line-height: 1.4;
63
59
 
64
60
  .digtal-stakeholder-form-text {
65
- word-break: break-all;
61
+ word-break : break-all;
66
62
  line-height: 29px;
67
63
  }
68
64
  }
@@ -72,6 +68,19 @@
72
68
  }
73
69
  }
74
70
  }
71
+
72
+ .natural-person-flag {
73
+
74
+ padding: 0 8px;
75
+
76
+ .ktsAnt3x-form-item-control {
77
+ line-height: 32px
78
+ }
79
+
80
+ .ktsAnt3x-row.ktsAnt3x-form-item {
81
+ margin-bottom: 0
82
+ }
83
+ }
75
84
  }
76
85
 
77
86
  .kts-invoice-operate-invoice-digtal-stakeholder.readOnly {
@@ -115,19 +115,19 @@ export default decorator<IStakeholder, IStakeholder & FormComponentProps>(Form.c
115
115
  }
116
116
  </div>
117
117
  <div>
118
+ <div style={{ marginTop: 20 }} className='natural-person-flag' >
119
+ {
120
+ props.isNaturalPerson === true &&
121
+ <Form.Item colon={false}>
122
+ {getFieldDecorator('naturalPersonFlag', {
123
+ })(
124
+ <NaturalPersonFlag readOnly={isReadOnly('naturalPersonFlag')} />
125
+ )}
126
+ </Form.Item>
127
+ }
128
+ </div>
118
129
  <Form className="digtal-stakeholder-form" >
119
130
  <Row gutter={[16, 0]}>
120
- {
121
- props.isNaturalPerson === true &&
122
- <Col span={24} >
123
- <Form.Item label='购买方信息' colon={false}>
124
- {getFieldDecorator('naturalPersonFlag', {
125
- })(
126
- <NaturalPersonFlag readOnly={isReadOnly('naturalPersonFlag')} />
127
- )}
128
- </Form.Item>
129
- </Col>
130
- }
131
131
  <Col span={24} >
132
132
  <Form.Item label='名称' colon={false}>
133
133
  {getFieldDecorator('buyerName', {
@@ -137,7 +137,7 @@ export default decorator<IStakeholder, IStakeholder & FormComponentProps>(Form.c
137
137
  myform={form}
138
138
  fieldName='buyerName'
139
139
  readOnly={isReadOnly('buyerName')}
140
- placeholder="请输入"
140
+ placeholder="请输入名称"
141
141
  autoComplete="off"
142
142
  suffix={
143
143
  isShowImportButton === true &&
@@ -162,7 +162,7 @@ export default decorator<IStakeholder, IStakeholder & FormComponentProps>(Form.c
162
162
  myform={form}
163
163
  fieldName='buyerTaxId'
164
164
  readOnly={isReadOnly('buyerTaxId')}
165
- placeholder="请输入"
165
+ placeholder="请输入统一社会信用代码/纳税人识别号"
166
166
  autoComplete="off"
167
167
  />
168
168
  )}
@@ -171,35 +171,35 @@ export default decorator<IStakeholder, IStakeholder & FormComponentProps>(Form.c
171
171
  {
172
172
  isExpand && (
173
173
  <>
174
- <Col span={15} >
174
+ <Col span={14} >
175
175
  <Form.Item label='购买方地址' colon={false}>
176
176
  {getFieldDecorator('buyerAddress', {
177
177
  rules: getRules('buyerAddress', [{ max: 100, message: '购买方地址内容超长' }])
178
- })(<MyInput readOnly={isReadOnly('buyerAddress')} placeholder="请输入" autoComplete="off" />)}
178
+ })(<MyInput readOnly={isReadOnly('buyerAddress')} placeholder="请输入购买方地址" autoComplete="off" />)}
179
179
  </Form.Item>
180
180
  </Col>
181
181
 
182
- <Col span={9} >
183
- <Form.Item label='电话' colon={false}>
182
+ <Col span={10} >
183
+ <Form.Item label='电话' colon={false} className='telephone'>
184
184
  {getFieldDecorator('buyerPhone', {
185
185
  rules: getRules('buyerPhone', RULES.buyerTelPhone('购买方电话'))
186
- })(<MyInput readOnly={isReadOnly('buyerPhone')} placeholder="请输入" autoComplete="off" />)}
186
+ })(<MyInput readOnly={isReadOnly('buyerPhone')} placeholder="请输入电话" autoComplete="off" />)}
187
187
  </Form.Item>
188
188
  </Col>
189
189
 
190
- <Col span={12} >
190
+ <Col span={14} >
191
191
  <Form.Item label='购买方开户银行' colon={false}>
192
192
  {getFieldDecorator('buyerBank', {
193
193
  rules: getRules('buyerBank', RULES.bankName('购买方开户银行'))
194
- })(<MyInput readOnly={isReadOnly('buyerBank')} placeholder="请输入" autoComplete="off" />)}
194
+ })(<MyInput readOnly={isReadOnly('buyerBank')} placeholder="请输入购买方开户银行" autoComplete="off" />)}
195
195
  </Form.Item>
196
196
  </Col>
197
197
 
198
- <Col span={12} >
198
+ <Col span={10} >
199
199
  <Form.Item label='银行账号' colon={false}>
200
200
  {getFieldDecorator('buyerAccount', {
201
201
  rules: getRules('buyerAccount', RULES.bankAccount('购买方银行账号'))
202
- })(<MyInput readOnly={isReadOnly('buyerAccount')} placeholder="请输入" autoComplete="off" />)}
202
+ })(<MyInput readOnly={isReadOnly('buyerAccount')} placeholder="请输入银行账号" autoComplete="off" />)}
203
203
  </Form.Item>
204
204
  </Col>
205
205
  </>
@@ -224,7 +224,7 @@ export default decorator<IStakeholder, IStakeholder & FormComponentProps>(Form.c
224
224
  !readOnly && props.lineCredit &&
225
225
  <div style={{ marginTop: 20 }} >
226
226
  <Tooltip trigger="click" title={props.lineCredit} >
227
- <Button type="link" >查看当前可用授信额度</Button>
227
+ <Button type="link" style={{ padding: `0px 8px` }} >查看当前可用授信额度</Button>
228
228
  </Tooltip>
229
229
  </div>
230
230
  }
@@ -235,7 +235,7 @@ export default decorator<IStakeholder, IStakeholder & FormComponentProps>(Form.c
235
235
  {getFieldDecorator('supplierName', {
236
236
  rules: getRules('supplierName', RULES.companyName('销售方名称')),
237
237
  getValueFromEvent: formatCompanyName
238
- })(<MyInput readOnly={isReadOnly('supplierName')} placeholder="请输入" autoComplete="off" />)}
238
+ })(<MyInput readOnly={isReadOnly('supplierName')} placeholder="请输入名称" autoComplete="off" />)}
239
239
  </Form.Item>
240
240
  </Col>
241
241
 
@@ -243,25 +243,25 @@ export default decorator<IStakeholder, IStakeholder & FormComponentProps>(Form.c
243
243
  <Form.Item label='统一社会信用代码/纳税人识别号' colon={false}>
244
244
  {getFieldDecorator('supplierTaxId', {
245
245
  rules: getRules('supplierTaxId', [{ required: true, message: '销售方纳税人识别号必填' }, ...RULES.taxId('销售方纳税人识别号')])
246
- })(<MyInput readOnly={isReadOnly('supplierTaxId')} placeholder="请输入" autoComplete="off" />)}
246
+ })(<MyInput readOnly={isReadOnly('supplierTaxId')} placeholder="请输入统一社会信用代码/纳税人识别号" autoComplete="off" />)}
247
247
  </Form.Item>
248
248
  </Col>
249
249
  {
250
250
  isExpand && (
251
251
  <>
252
- <Col span={15} >
252
+ <Col span={12} >
253
253
  <Form.Item label='销售方地址' colon={false}>
254
254
  {getFieldDecorator('sellerAddress', {
255
255
  rules: getRules('sellerAddress', [{ max: 300, message: '销售方地址内容超长' }])
256
- })(<MyInput readOnly={isReadOnly('sellerAddress')} placeholder="请输入" autoComplete="off" />)}
256
+ })(<MyInput readOnly={isReadOnly('sellerAddress')} placeholder="请输入销售方地址" autoComplete="off" />)}
257
257
  </Form.Item>
258
258
  </Col>
259
259
 
260
- <Col span={9} >
261
- <Form.Item label='电话' colon={false}>
260
+ <Col span={12} >
261
+ <Form.Item label='电话' colon={false} className='telephone' >
262
262
  {getFieldDecorator('sellerPhone', {
263
263
  rules: getRules('sellerPhone', RULES.sellerTelPhone('销售方电话'))
264
- })(<MyInput readOnly={isReadOnly('sellerPhone')} placeholder="请输入" autoComplete="off" />)}
264
+ })(<MyInput readOnly={isReadOnly('sellerPhone')} placeholder="请输入电话" autoComplete="off" />)}
265
265
  </Form.Item>
266
266
  </Col>
267
267
 
@@ -269,7 +269,7 @@ export default decorator<IStakeholder, IStakeholder & FormComponentProps>(Form.c
269
269
  <Form.Item label='销售方开户银行' colon={false}>
270
270
  {getFieldDecorator('sellerBank', {
271
271
  rules: getRules('sellerBank', RULES.bankName('销售方开户银行'))
272
- })(<MyInput readOnly={isReadOnly('sellerBank')} placeholder="请输入" autoComplete="off" />)}
272
+ })(<MyInput readOnly={isReadOnly('sellerBank')} placeholder="请输入销售方开户银行" autoComplete="off" />)}
273
273
  </Form.Item>
274
274
  </Col>
275
275
 
@@ -277,7 +277,7 @@ export default decorator<IStakeholder, IStakeholder & FormComponentProps>(Form.c
277
277
  <Form.Item label='银行账号' colon={false}>
278
278
  {getFieldDecorator('sellerAccount', {
279
279
  rules: getRules('sellerAccount', RULES.bankAccount('销售方银行账号'))
280
- })(<MyInput readOnly={isReadOnly('sellerAccount')} placeholder="请输入" autoComplete="off" />)}
280
+ })(<MyInput readOnly={isReadOnly('sellerAccount')} placeholder="请输入银行账号" autoComplete="off" />)}
281
281
  </Form.Item>
282
282
  </Col>
283
283
  </>
@@ -365,6 +365,7 @@ function BuyerNameInput(props: InputProps & { fieldName: string; myform: Wrapped
365
365
  options={options.map(e => ({ value: e[fieldName] }))}
366
366
  onChange={onChangeAutoComplete}
367
367
  value={props.value}
368
+ style={{ width: '100%' }}
368
369
  >
369
370
  <Input {...props} style={{ width: '100%', ...props.style }} />
370
371
  </AutoComplete>