kts-component-invoice-operate 3.2.155 → 3.2.157

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/dist/Invoice/InvoiceController/index.d.ts +2 -0
  2. package/dist/Invoice/index.d.ts +2 -0
  3. package/dist/Invoice/ui/digtal/StakeFarmerholder/index.d.ts +20 -0
  4. package/dist/index.esm.js +806 -226
  5. package/dist/index.js +806 -226
  6. package/docs-dist/umi.css +1 -1
  7. package/docs-dist/umi.js +1 -1
  8. package/package.json +1 -1
  9. package/src/Invoice/Invoice-digtal/_test/easiest/index.tsx +1 -0
  10. package/src/Invoice/InvoiceController/index.ts +2 -0
  11. package/src/Invoice/_test/children/index.tsx +12 -0
  12. package/src/Invoice/index.tsx +4 -0
  13. package/src/Invoice/ui/default/GoodsList/hook/useColumns/index.tsx +3 -2
  14. package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/Expand/index.tsx +10 -6
  15. package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/RowMenu/hook/useDelItem/dist/index.js +32 -0
  16. package/src/Invoice/ui/default/GoodsList/ui/TableRow/index.less +12 -1
  17. package/src/Invoice/ui/default/GoodsList/ui/TableRow/index.tsx +19 -5
  18. package/src/Invoice/ui/default/GoodsList/ui/TableVirtual/index.tsx +0 -1
  19. package/src/Invoice/ui/digtal/RealEstateInfo/index.tsx +6 -8
  20. package/src/Invoice/ui/digtal/StakeFarmerholder/index.less +100 -0
  21. package/src/Invoice/ui/digtal/StakeFarmerholder/index.tsx +398 -0
  22. package/src/Invoice/ui/digtal/StakeFarmerholder/svg/arrowDown.svg +3 -0
  23. package/src/Invoice/ui/digtal/StakeFarmerholder/svg/arrowUp.svg +3 -0
  24. package/src/Invoice/ui/digtal/StakeFarmerholder/svg/plus.svg +12 -0
  25. package/docs-dist/static/I001.4ff48f20.svg +0 -1
  26. package/docs-dist/static/I002.38b94da1.svg +0 -1
  27. /package/docs-dist/static/{arrowDown.22c7885c.svg → arrowDown.a1cbf0d8.svg} +0 -0
  28. /package/docs-dist/static/{arrowUp.d707a3e4.svg → arrowUp.4c482054.svg} +0 -0
  29. /package/docs-dist/static/{fork.43eb4ffa.svg → fork.5431267d.svg} +0 -0
  30. /package/docs-dist/static/{plus.384f41d9.svg → plus.44013ce3.svg} +0 -0
  31. /package/docs-dist/static/{plus.0e60e9ea.svg → plus.4fd1af30.svg} +0 -0
package/dist/index.esm.js CHANGED
@@ -9741,6 +9741,7 @@ var InvoiceController = /*#__PURE__*/function (_InvoiceControllerFor) {
9741
9741
  _this.getTaxCategoryCodeList = void 0;
9742
9742
  _this.getGoodsSearch = getGoodsSearch;
9743
9743
  _this.getGoodsTaxRateList = void 0;
9744
+ _this.setColumnsConfig = void 0;
9744
9745
  return _this;
9745
9746
  } // ----------------- 发票头 模块相关 -----------------
9746
9747
 
@@ -10676,7 +10677,7 @@ function Search() {
10676
10677
  });
10677
10678
  }
10678
10679
 
10679
- var css_248z$5 = ".kts-invoice-operate-goods-list-itemName-drag-container-u {\n position: relative;\n}\n.kts-invoice-operate-goods-list-itemName-drag-container-u::after {\n content: \" \";\n width: 100%;\n height: 2px;\n background: #0074ff;\n position: absolute;\n left: 0;\n top: 0;\n z-index: 9999;\n}\n.kts-invoice-operate-goods-list-itemName-drag-container-d {\n position: relative;\n}\n.kts-invoice-operate-goods-list-itemName-drag-container-d::after {\n content: \" \";\n width: 100%;\n height: 2px;\n background: #0074ff;\n position: absolute;\n left: 0;\n bottom: 0;\n z-index: 9999;\n}\n";
10680
+ var css_248z$5 = ".kts-invoice-operate-goods-list-itemName-drag-container-u {\n position: relative;\n}\n.kts-invoice-operate-goods-list-itemName-drag-container-u::after {\n content: \" \";\n width: 100%;\n height: 2px;\n background: #0074ff;\n position: absolute;\n left: 0;\n top: 0;\n z-index: 9999;\n}\n.kts-invoice-operate-goods-list-itemName-drag-container-d {\n position: relative;\n}\n.kts-invoice-operate-goods-list-itemName-drag-container-d::after {\n content: \" \";\n width: 100%;\n height: 2px;\n background: #0074ff;\n position: absolute;\n left: 0;\n bottom: 0;\n z-index: 9999;\n}\n.ktsAntX-table .ktsAntX-table-row.ktsAntX-table-row-level-0.kts-invoice-operate-goods-expanded .ktsAntX-table-cell-ellipsis,\n.ktsAntX-table .ktsAntX-table-row.ktsAntX-table-row-level-0.kts-invoice-operate-goods-expanded {\n background: #f0f0f0;\n}\n.ktsAntX-table .ktsAntX-table-row.ktsAntX-table-row-level-0.kts-invoice-operate-goods-expanded-level-1 .ktsAntX-table-cell-ellipsis,\n.ktsAntX-table .ktsAntX-table-row.ktsAntX-table-row-level-0.kts-invoice-operate-goods-expanded-level-1 {\n background: #f6f6f6;\n}\n";
10680
10681
  styleInject(css_248z$5);
10681
10682
 
10682
10683
  function TableRow(props) {
@@ -10685,6 +10686,11 @@ function TableRow(props) {
10685
10686
  var goodsMap = controller.useMemo(function (s) {
10686
10687
  return s.goodsListState.goodsMap;
10687
10688
  }, []);
10689
+ /** 子级展开的货物 */
10690
+
10691
+ var expandedRowKeys = controller.useMemo(function (s) {
10692
+ return s.goodsListState.expandedRowKeys;
10693
+ }, []);
10688
10694
  /** 当前拖动中的货品索引 */
10689
10695
 
10690
10696
  var current = controller.useMemo(function (s) {
@@ -10715,6 +10721,19 @@ function TableRow(props) {
10715
10721
  return undefined;
10716
10722
  }
10717
10723
  }, [good, goodsMap]);
10724
+ /** 扩展行样式 */
10725
+
10726
+ var expandedRow = React.useMemo(function () {
10727
+ if (expandedRowKeys.indexOf(rowKey) > -1) return 'kts-invoice-operate-goods-expanded';
10728
+ if (expandedRowKeys.map(function (e) {
10729
+ return goodsMap.get(e);
10730
+ }).map(function (e) {
10731
+ return e === null || e === void 0 ? void 0 : e.children;
10732
+ }).flat(1).map(function (e) {
10733
+ return e === null || e === void 0 ? void 0 : e.$index;
10734
+ }).indexOf(rowKey) > -1) return 'kts-invoice-operate-goods-expanded-level-1';
10735
+ return undefined;
10736
+ }, [rowKey, expandedRowKeys, good]);
10718
10737
  return rowKey === current && current ? /*#__PURE__*/React.createElement("tr", {
10719
10738
  style: {
10720
10739
  height: 32.67,
@@ -10730,7 +10749,7 @@ function TableRow(props) {
10730
10749
  bottom: 0
10731
10750
  }
10732
10751
  })) : /*#__PURE__*/React.createElement("tr", _objectSpread2(_objectSpread2({}, props), {}, {
10733
- className: classNames(props.className, discount, rowKey === container && current ? 'kts-invoice-operate-goods-list-itemName-drag-container-' + site : undefined)
10752
+ className: classNames(props.className, discount, expandedRow, rowKey === container && current ? 'kts-invoice-operate-goods-list-itemName-drag-container-' + site : undefined)
10734
10753
  }));
10735
10754
  }
10736
10755
 
@@ -13044,44 +13063,6 @@ function DragDiv(props) {
13044
13063
  }, /*#__PURE__*/React.createElement("span", null, props.itemName), /*#__PURE__*/React.createElement("span", null, props.itemModelName), /*#__PURE__*/React.createElement("span", null, props.unit));
13045
13064
  }
13046
13065
 
13047
- var _path$4, _path2$1, _path3$1;
13048
-
13049
- function _extends$4() { _extends$4 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$4.apply(this, arguments); }
13050
-
13051
- function SvgI001$1(props) {
13052
- return /*#__PURE__*/createElement("svg", _extends$4({
13053
- className: "I001_svg__icon",
13054
- viewBox: "0 0 1024 1024",
13055
- xmlns: "http://www.w3.org/2000/svg",
13056
- width: 200,
13057
- height: 200
13058
- }, props), _path$4 || (_path$4 = /*#__PURE__*/createElement("path", {
13059
- d: "M879.973 997.088H146.455c-67.235 0-122.213-54.978-122.213-122.213V141.236c0-67.235 54.978-122.212 122.213-122.212h733.639c67.235 0 122.212 54.977 122.212 122.212v733.64c0 67.113-54.977 122.212-122.333 122.212zM146.455 80.069c-36.652 0-61.167 24.394-61.167 61.167v733.64c0 36.65 24.394 61.166 61.167 61.166h733.639c36.651 0 61.167-24.394 61.167-61.167V141.236c0-36.651-24.394-61.167-61.167-61.167h-733.64zm0 0"
13060
- })), _path2$1 || (_path2$1 = /*#__PURE__*/createElement("path", {
13061
- d: "M757.76 538.578H268.667c-18.326 0-30.583-12.257-30.583-30.583s12.257-30.583 30.583-30.583H757.76c18.326 0 30.583 12.257 30.583 30.583s-12.257 30.583-30.583 30.583zm0 0"
13062
- })), _path3$1 || (_path3$1 = /*#__PURE__*/createElement("path", {
13063
- d: "M513.214 783.125c-18.326 0-30.584-12.258-30.584-30.584V263.45c0-18.326 12.258-30.584 30.584-30.584s30.583 12.258 30.583 30.584V752.54c0 18.326-12.258 30.584-30.583 30.584zm0 0"
13064
- })));
13065
- }
13066
-
13067
- var _path$5, _path2$2;
13068
-
13069
- function _extends$5() { _extends$5 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$5.apply(this, arguments); }
13070
-
13071
- function SvgI002(props) {
13072
- return /*#__PURE__*/createElement("svg", _extends$5({
13073
- className: "I002_svg__icon",
13074
- viewBox: "0 0 1024 1024",
13075
- xmlns: "http://www.w3.org/2000/svg",
13076
- width: 200,
13077
- height: 200
13078
- }, props), _path$5 || (_path$5 = /*#__PURE__*/createElement("path", {
13079
- d: "M879.973 997.088H146.455c-67.235 0-122.213-54.978-122.213-122.213V141.236c0-67.235 54.978-122.212 122.213-122.212h733.639c67.235 0 122.212 54.977 122.212 122.212v733.64c0 67.113-54.977 122.212-122.333 122.212zM146.455 80.069c-36.652 0-61.167 24.394-61.167 61.167v733.64c0 36.65 24.394 61.166 61.167 61.166h733.639c36.651 0 61.167-24.394 61.167-61.167V141.236c0-36.651-24.394-61.167-61.167-61.167h-733.64zm0 0"
13080
- })), _path2$2 || (_path2$2 = /*#__PURE__*/createElement("path", {
13081
- d: "M757.76 538.578H268.667c-18.326 0-30.583-12.257-30.583-30.583s12.257-30.583 30.583-30.583H757.76c18.326 0 30.583 12.257 30.583 30.583s-12.257 30.583-30.583 30.583zm0 0"
13082
- })));
13083
- }
13084
-
13085
13066
  function Expand(props) {
13086
13067
  var _goodsMap$get;
13087
13068
 
@@ -13100,11 +13081,10 @@ function Expand(props) {
13100
13081
  type: 'text',
13101
13082
  style: {
13102
13083
  width: 'auto',
13103
- color: "#0074ff"
13084
+ color: "#0074ff",
13085
+ padding: 0
13104
13086
  },
13105
- icon: /*#__PURE__*/React.createElement(Icon, {
13106
- component: SvgI002
13107
- }),
13087
+ // icon={<Icon component={I002Svg} />}
13108
13088
  onClick: controller.pipeline( /*#__PURE__*/function () {
13109
13089
  var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(s, e) {
13110
13090
  return _regeneratorRuntime().wrap(function _callee$(_context) {
@@ -13128,17 +13108,16 @@ function Expand(props) {
13128
13108
  return _ref.apply(this, arguments);
13129
13109
  };
13130
13110
  }())
13131
- });
13111
+ }, "\u6536\u8D77");
13132
13112
  } else {
13133
13113
  return /*#__PURE__*/React.createElement(Button$1, {
13134
13114
  type: 'text',
13135
13115
  style: {
13136
13116
  width: 'auto',
13137
- color: "#0074ff"
13117
+ color: "#0074ff",
13118
+ padding: 0
13138
13119
  },
13139
- icon: /*#__PURE__*/React.createElement(Icon, {
13140
- component: SvgI001$1
13141
- }),
13120
+ // icon={<Icon component={I001Svg} />}
13142
13121
  onClick: controller.pipeline( /*#__PURE__*/function () {
13143
13122
  var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(s, e) {
13144
13123
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
@@ -13160,7 +13139,7 @@ function Expand(props) {
13160
13139
  return _ref2.apply(this, arguments);
13161
13140
  };
13162
13141
  }())
13163
- });
13142
+ }, "\u5C55\u5F00");
13164
13143
  }
13165
13144
  } else {
13166
13145
  return /*#__PURE__*/React.createElement(React.Fragment, null);
@@ -13305,7 +13284,7 @@ var useColumns = (function (form) {
13305
13284
  }, {
13306
13285
  title: ' ',
13307
13286
  key: 'expand',
13308
- width: 40,
13287
+ width: 50,
13309
13288
  align: 'center',
13310
13289
  render: function render(_, record) {
13311
13290
  return /*#__PURE__*/React.createElement(Expand, {
@@ -14140,7 +14119,7 @@ var useColumns = (function (form) {
14140
14119
  });
14141
14120
  });
14142
14121
  }, [isTaxIncluded, editGood, goodsList, controller, changeField, deduction, isMyShow, searchValue, model, columnsReplenish, columnshide, isStart]);
14143
- return columns;
14122
+ return controller.setColumnsConfig ? controller.setColumnsConfig(columns) : columns;
14144
14123
  });
14145
14124
  /** 字段 */
14146
14125
 
@@ -17037,12 +17016,610 @@ var Tag = /*#__PURE__*/function (_React$Component2) {
17037
17016
  return Tag;
17038
17017
  }(React.Component);
17039
17018
 
17040
- var _path$6;
17019
+ var _path$4;
17020
+
17021
+ function _extends$4() { _extends$4 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$4.apply(this, arguments); }
17022
+
17023
+ function SvgArrowUp(props) {
17024
+ return /*#__PURE__*/createElement("svg", _extends$4({
17025
+ xmlns: "http://www.w3.org/2000/svg",
17026
+ width: 13,
17027
+ height: 13,
17028
+ fill: "none"
17029
+ }, props), _path$4 || (_path$4 = /*#__PURE__*/createElement("path", {
17030
+ d: "M9.557 8.573a.338.338 0 01-.252-.114L6.508 5.367 3.711 8.46a.333.333 0 01-.497.005.404.404 0 01-.005-.538l3.048-3.37a.339.339 0 01.251-.114c.095 0 .185.041.252.114l3.048 3.37a.404.404 0 01-.005.538.337.337 0 01-.246.11z"
17031
+ })));
17032
+ }
17033
+
17034
+ var _path$5;
17035
+
17036
+ function _extends$5() { _extends$5 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$5.apply(this, arguments); }
17037
+
17038
+ function SvgArrowDown(props) {
17039
+ return /*#__PURE__*/createElement("svg", _extends$5({
17040
+ xmlns: "http://www.w3.org/2000/svg",
17041
+ width: 12,
17042
+ height: 13,
17043
+ fill: "none"
17044
+ }, props), _path$5 || (_path$5 = /*#__PURE__*/createElement("path", {
17045
+ d: "M2.943 4.427c.092 0 .183.038.252.114l2.797 3.092L8.789 4.54a.333.333 0 01.497-.005.404.404 0 01.005.538l-3.048 3.37a.339.339 0 01-.251.114.339.339 0 01-.252-.114l-3.048-3.37a.404.404 0 01.005-.538.337.337 0 01.246-.11z"
17046
+ })));
17047
+ }
17048
+
17049
+ var _g, _defs$2;
17041
17050
 
17042
17051
  function _extends$6() { _extends$6 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$6.apply(this, arguments); }
17043
17052
 
17044
- function SvgArrowUp(props) {
17045
- return /*#__PURE__*/createElement("svg", _extends$6({
17053
+ function SvgPlus(props) {
17054
+ return /*#__PURE__*/createElement("svg", _extends$6({
17055
+ xmlns: "http://www.w3.org/2000/svg",
17056
+ width: 16,
17057
+ height: 15,
17058
+ fill: "none"
17059
+ }, props), _g || (_g = /*#__PURE__*/createElement("g", {
17060
+ clipPath: "url(#plus_svg__clip0_715_360)"
17061
+ }, /*#__PURE__*/createElement("path", {
17062
+ d: "M8 14.531A7.031 7.031 0 118 .468a7.031 7.031 0 010 14.063zm0-.937A6.094 6.094 0 108 1.406a6.094 6.094 0 000 12.188z"
17063
+ }), /*#__PURE__*/createElement("path", {
17064
+ d: "M4.25 7.969a.469.469 0 010-.938h7.5a.47.47 0 010 .938h-7.5z"
17065
+ }), /*#__PURE__*/createElement("path", {
17066
+ d: "M7.531 3.75a.469.469 0 01.938 0v7.5a.47.47 0 01-.938 0v-7.5z"
17067
+ }))), _defs$2 || (_defs$2 = /*#__PURE__*/createElement("defs", null, /*#__PURE__*/createElement("clipPath", {
17068
+ id: "plus_svg__clip0_715_360"
17069
+ }, /*#__PURE__*/createElement("path", {
17070
+ transform: "translate(.5)",
17071
+ d: "M0 0h15v15H0z"
17072
+ })))));
17073
+ }
17074
+
17075
+ 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";
17076
+ styleInject(css_248z$g);
17077
+
17078
+ var RULES = {
17079
+ companyName: function companyName(label) {
17080
+ return [{
17081
+ required: true,
17082
+ message: "".concat(label, "\u5FC5\u586B")
17083
+ }, {
17084
+ max: 100,
17085
+ message: "".concat(label, "\u5185\u5BB9\u8D85\u957F")
17086
+ }];
17087
+ },
17088
+ taxId: function taxId(label) {
17089
+ return [{
17090
+ max: 20,
17091
+ message: "".concat(label, "\u5185\u5BB9\u8D85\u957F")
17092
+ }, {
17093
+ pattern: /^([a-zA-Z0-9])*$/g,
17094
+ message: "".concat(label, "\u4EC5\u80FD\u6570\u5B57\u3001\u82F1\u6587")
17095
+ }];
17096
+ },
17097
+ buyerTelPhone: function buyerTelPhone(label) {
17098
+ return [{
17099
+ max: 100,
17100
+ message: "".concat(label, "\u5185\u5BB9\u8D85\u957F")
17101
+ }, {
17102
+ pattern: /^[0-9\s\-\+]+$/g,
17103
+ message: "".concat(label, "\u4EC5\u80FD\u6570\u5B57\u3001\u7A7A\u683C\u3001-\u3001+")
17104
+ }];
17105
+ },
17106
+ sellerTelPhone: function sellerTelPhone(label) {
17107
+ return [{
17108
+ required: true,
17109
+ message: "".concat(label, "\u5FC5\u586B")
17110
+ }, {
17111
+ max: 100,
17112
+ message: "".concat(label, "\u5185\u5BB9\u8D85\u957F")
17113
+ }, {
17114
+ pattern: /^[0-9\s\-\+]+$/g,
17115
+ message: "".concat(label, "\u4EC5\u80FD\u6570\u5B57\u3001\u7A7A\u683C\u3001-\u3001+")
17116
+ }];
17117
+ },
17118
+ bankName: function bankName(label) {
17119
+ return [{
17120
+ max: 100,
17121
+ message: "".concat(label, "\u5185\u5BB9\u8D85\u957F")
17122
+ }];
17123
+ },
17124
+ bankAccount: function bankAccount(label) {
17125
+ return [{
17126
+ max: 100,
17127
+ message: "".concat(label, "\u5185\u5BB9\u8D85\u957F")
17128
+ }, {
17129
+ pattern: /^([0-9a-zA-Z-\s])*$/g,
17130
+ message: "".concat(label, "\u4EC5\u80FD\u6570\u5B57\u3001\u5B57\u6BCD\u3001-\u3001\u7A7A\u683C")
17131
+ }];
17132
+ }
17133
+ };
17134
+
17135
+ var formatCompanyName = function formatCompanyName(e) {
17136
+ var _e$target;
17137
+
17138
+ var value = e === null || e === void 0 ? void 0 : (_e$target = e.target) === null || _e$target === void 0 ? void 0 : _e$target.value;
17139
+
17140
+ if (value) {
17141
+ return value.replace('(', '(').replace(')', ')').replace(' ', '');
17142
+ }
17143
+ };
17144
+ /** 干系人 */
17145
+
17146
+
17147
+ var Stakeholder$1 = decorator(Form.create())(function (props) {
17148
+ var form = props.form,
17149
+ isShowImportButton = props.isShowImportButton,
17150
+ onClickImportButton = props.onClickImportButton,
17151
+ _props$isVatNormal = props.isVatNormal,
17152
+ isVatNormal = _props$isVatNormal === void 0 ? false : _props$isVatNormal;
17153
+
17154
+ var _React$useState = React.useState(typeof props.isExpand === 'boolean' ? props.isExpand : true),
17155
+ _React$useState2 = _slicedToArray(_React$useState, 2),
17156
+ isExpand = _React$useState2[0],
17157
+ setExpand = _React$useState2[1];
17158
+
17159
+ var getFieldDecorator = form.getFieldDecorator;
17160
+ var controller = Invoice.useInvoiceController();
17161
+ var model = controller.useMemo(function (s) {
17162
+ return s.model;
17163
+ }, []);
17164
+ var disableds = controller.useMemo(function (s) {
17165
+ return s.stakeholder.disableds || [];
17166
+ }, []);
17167
+ var rulesMap = controller.useMemo(function (s) {
17168
+ return s.stakeholder.rulesMap || {};
17169
+ }, []);
17170
+ var readOnly = React.useMemo(function () {
17171
+ if (model === 'readOnly') return true;
17172
+ if (model === 'prefab') return true;
17173
+ return false;
17174
+ }, [model]);
17175
+ var onExpand = React.useCallback(function () {
17176
+ setExpand(function (e) {
17177
+ return !e;
17178
+ });
17179
+ }, []);
17180
+ var isReadOnly = React.useCallback(function (field) {
17181
+ return readOnly || disableds.indexOf(field) >= 0;
17182
+ }, [disableds, readOnly]);
17183
+ var getRules = React.useCallback(function (field, defaultRules) {
17184
+ if (isReadOnly(field)) return [];
17185
+ return rulesMap[field] || defaultRules;
17186
+ }, [rulesMap, isReadOnly, isReadOnly]);
17187
+ controller.useForm('stakeholder', form); // props.isExpand 变化的时候更新
17188
+
17189
+ React.useEffect(function () {
17190
+ setExpand(typeof props.isExpand === 'boolean' ? props.isExpand : true);
17191
+ }, [props.isExpand]);
17192
+ return /*#__PURE__*/React.createElement("div", {
17193
+ className: classNames("kts-invoice-operate-invoice-digtal-stakeholder", {
17194
+ readOnly: readOnly
17195
+ })
17196
+ }, /*#__PURE__*/React.createElement("div", null, '购买方信息'.split('').map(function (e) {
17197
+ return /*#__PURE__*/React.createElement("span", null, e);
17198
+ }), !readOnly && /*#__PURE__*/React.createElement(Icon, {
17199
+ className: "digtal-stakeholder-expand-button",
17200
+ component: isExpand ? SvgArrowUp : SvgArrowDown,
17201
+ onClick: onExpand
17202
+ })), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
17203
+ style: {
17204
+ marginTop: 20
17205
+ },
17206
+ className: 'natural-person-flag'
17207
+ }, props.isNaturalPerson === true && /*#__PURE__*/React.createElement(Form.Item, {
17208
+ colon: false
17209
+ }, getFieldDecorator('naturalPersonFlag', {})( /*#__PURE__*/React.createElement(NaturalPersonFlag, {
17210
+ readOnly: isReadOnly('naturalPersonFlag')
17211
+ })))), /*#__PURE__*/React.createElement(Form, {
17212
+ className: "digtal-stakeholder-form"
17213
+ }, /*#__PURE__*/React.createElement(Row, {
17214
+ gutter: [16, 0]
17215
+ }, /*#__PURE__*/React.createElement(Col, {
17216
+ span: 24
17217
+ }, /*#__PURE__*/React.createElement(Form.Item, {
17218
+ label: "\u540D\u79F0",
17219
+ colon: false
17220
+ }, getFieldDecorator('buyerName', {
17221
+ rules: getRules('buyerName', RULES.companyName('购买方名称'))
17222
+ })( /*#__PURE__*/React.createElement(BuyerNameInput$1, {
17223
+ myform: form,
17224
+ fieldName: 'buyerName',
17225
+ readOnly: isReadOnly('buyerName'),
17226
+ placeholder: "\u8BF7\u8F93\u5165\u540D\u79F0",
17227
+ autoComplete: "off",
17228
+ suffix: isShowImportButton === true && /*#__PURE__*/React.createElement(Button$1, {
17229
+ type: 'link',
17230
+ style: {
17231
+ padding: 0,
17232
+ width: 20,
17233
+ height: '100%'
17234
+ },
17235
+ icon: /*#__PURE__*/React.createElement(Icon, {
17236
+ component: SvgPlus
17237
+ }),
17238
+ onClick: function onClick() {
17239
+ onClickImportButton && onClickImportButton(controller);
17240
+ }
17241
+ })
17242
+ })))), /*#__PURE__*/React.createElement(Col, {
17243
+ span: 24
17244
+ }, /*#__PURE__*/React.createElement(Form.Item, {
17245
+ label: "\u7EDF\u4E00\u793E\u4F1A\u4FE1\u7528\u4EE3\u7801/\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7",
17246
+ colon: false
17247
+ }, getFieldDecorator('buyerTaxId', {
17248
+ rules: getRules('buyerTaxId', [{
17249
+ required: !isVatNormal,
17250
+ message: '购买方纳税人识别号必填'
17251
+ }].concat(_toConsumableArray(RULES.taxId('购买方纳税人识别号'))))
17252
+ })( /*#__PURE__*/React.createElement(BuyerNameInput$1, {
17253
+ myform: form,
17254
+ fieldName: 'buyerTaxId',
17255
+ readOnly: isReadOnly('buyerTaxId'),
17256
+ placeholder: "\u8BF7\u8F93\u5165\u7EDF\u4E00\u793E\u4F1A\u4FE1\u7528\u4EE3\u7801/\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7",
17257
+ autoComplete: "off"
17258
+ })))), /*#__PURE__*/React.createElement(Col, {
17259
+ span: 14,
17260
+ style: {
17261
+ display: isExpand ? undefined : 'none'
17262
+ }
17263
+ }, /*#__PURE__*/React.createElement(Form.Item, {
17264
+ label: "\u8D2D\u4E70\u65B9\u5730\u5740",
17265
+ colon: false
17266
+ }, getFieldDecorator('buyerAddress', {
17267
+ rules: getRules('buyerAddress', [{
17268
+ max: 100,
17269
+ message: '购买方地址内容超长'
17270
+ }])
17271
+ })( /*#__PURE__*/React.createElement(MyInput$1, {
17272
+ readOnly: isReadOnly('buyerAddress'),
17273
+ placeholder: "\u8BF7\u8F93\u5165\u8D2D\u4E70\u65B9\u5730\u5740",
17274
+ autoComplete: "off"
17275
+ })))), /*#__PURE__*/React.createElement(Col, {
17276
+ span: 10,
17277
+ style: {
17278
+ display: isExpand ? undefined : 'none'
17279
+ }
17280
+ }, /*#__PURE__*/React.createElement(Form.Item, {
17281
+ label: "\u7535\u8BDD",
17282
+ colon: false,
17283
+ className: 'telephone'
17284
+ }, getFieldDecorator('buyerPhone', {
17285
+ rules: getRules('buyerPhone', RULES.buyerTelPhone('购买方电话'))
17286
+ })( /*#__PURE__*/React.createElement(MyInput$1, {
17287
+ readOnly: isReadOnly('buyerPhone'),
17288
+ placeholder: "\u8BF7\u8F93\u5165\u7535\u8BDD",
17289
+ autoComplete: "off"
17290
+ })))), /*#__PURE__*/React.createElement(Col, {
17291
+ span: 14,
17292
+ style: {
17293
+ display: isExpand ? undefined : 'none'
17294
+ }
17295
+ }, /*#__PURE__*/React.createElement(Form.Item, {
17296
+ label: "\u8D2D\u4E70\u65B9\u5F00\u6237\u94F6\u884C",
17297
+ colon: false
17298
+ }, getFieldDecorator('buyerBank', {
17299
+ rules: getRules('buyerBank', RULES.bankName('购买方开户银行'))
17300
+ })( /*#__PURE__*/React.createElement(MyInput$1, {
17301
+ readOnly: isReadOnly('buyerBank'),
17302
+ placeholder: "\u8BF7\u8F93\u5165\u8D2D\u4E70\u65B9\u5F00\u6237\u94F6\u884C",
17303
+ autoComplete: "off"
17304
+ })))), /*#__PURE__*/React.createElement(Col, {
17305
+ span: 10,
17306
+ style: {
17307
+ display: isExpand ? undefined : 'none'
17308
+ }
17309
+ }, /*#__PURE__*/React.createElement(Form.Item, {
17310
+ label: "\u94F6\u884C\u8D26\u53F7",
17311
+ colon: false
17312
+ }, getFieldDecorator('buyerAccount', {
17313
+ rules: getRules('buyerAccount', RULES.bankAccount('购买方银行账号'))
17314
+ })( /*#__PURE__*/React.createElement(MyInput$1, {
17315
+ readOnly: isReadOnly('buyerAccount'),
17316
+ placeholder: "\u8BF7\u8F93\u5165\u94F6\u884C\u8D26\u53F7",
17317
+ autoComplete: "off"
17318
+ }))))))), /*#__PURE__*/React.createElement("div", null, '销售方信息'.split('').map(function (e) {
17319
+ return /*#__PURE__*/React.createElement("span", null, e);
17320
+ }), !readOnly && /*#__PURE__*/React.createElement(Icon, {
17321
+ className: "digtal-stakeholder-expand-button",
17322
+ component: isExpand ? SvgArrowUp : SvgArrowDown,
17323
+ onClick: onExpand
17324
+ })), /*#__PURE__*/React.createElement("div", null, !readOnly && props.lineCredit && /*#__PURE__*/React.createElement("div", {
17325
+ style: {
17326
+ marginTop: 20
17327
+ }
17328
+ }, /*#__PURE__*/React.createElement(Tooltip$1, {
17329
+ trigger: "click",
17330
+ title: props.lineCredit
17331
+ }, /*#__PURE__*/React.createElement(Button$1, {
17332
+ type: "link",
17333
+ style: {
17334
+ padding: "0px 8px"
17335
+ }
17336
+ }, "\u67E5\u770B\u5F53\u524D\u53EF\u7528\u6388\u4FE1\u989D\u5EA6"))), /*#__PURE__*/React.createElement(Form, {
17337
+ className: "digtal-stakeholder-form"
17338
+ }, /*#__PURE__*/React.createElement(Row, {
17339
+ gutter: [16, 0]
17340
+ }, /*#__PURE__*/React.createElement(Col, {
17341
+ span: 24
17342
+ }, /*#__PURE__*/React.createElement(Form.Item, {
17343
+ label: "\u540D\u79F0",
17344
+ colon: false
17345
+ }, getFieldDecorator('supplierName', {
17346
+ rules: getRules('supplierName', RULES.companyName('销售方名称')),
17347
+ getValueFromEvent: formatCompanyName
17348
+ })( /*#__PURE__*/React.createElement(MyInput$1, {
17349
+ readOnly: isReadOnly('supplierName'),
17350
+ placeholder: "\u8BF7\u8F93\u5165\u540D\u79F0",
17351
+ autoComplete: "off"
17352
+ })))), /*#__PURE__*/React.createElement(Col, {
17353
+ span: 24
17354
+ }, /*#__PURE__*/React.createElement(Form.Item, {
17355
+ label: "\u7EDF\u4E00\u793E\u4F1A\u4FE1\u7528\u4EE3\u7801/\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7",
17356
+ colon: false
17357
+ }, getFieldDecorator('supplierTaxId', {
17358
+ rules: getRules('supplierTaxId', [{
17359
+ required: true,
17360
+ message: '销售方纳税人识别号必填'
17361
+ }].concat(_toConsumableArray(RULES.taxId('销售方纳税人识别号'))))
17362
+ })( /*#__PURE__*/React.createElement(MyInput$1, {
17363
+ readOnly: isReadOnly('supplierTaxId'),
17364
+ placeholder: "\u8BF7\u8F93\u5165\u7EDF\u4E00\u793E\u4F1A\u4FE1\u7528\u4EE3\u7801/\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7",
17365
+ autoComplete: "off"
17366
+ })))), /*#__PURE__*/React.createElement(Col, {
17367
+ span: 12,
17368
+ style: {
17369
+ display: isExpand ? undefined : 'none'
17370
+ }
17371
+ }, /*#__PURE__*/React.createElement(Form.Item, {
17372
+ label: "\u9500\u552E\u65B9\u5730\u5740",
17373
+ colon: false
17374
+ }, getFieldDecorator('sellerAddress', {
17375
+ rules: getRules('sellerAddress', [{
17376
+ max: 300,
17377
+ message: '销售方地址内容超长'
17378
+ }])
17379
+ })( /*#__PURE__*/React.createElement(MyInput$1, {
17380
+ readOnly: isReadOnly('sellerAddress'),
17381
+ placeholder: "\u8BF7\u8F93\u5165\u9500\u552E\u65B9\u5730\u5740",
17382
+ autoComplete: "off"
17383
+ })))), /*#__PURE__*/React.createElement(Col, {
17384
+ span: 12,
17385
+ style: {
17386
+ display: isExpand ? undefined : 'none'
17387
+ }
17388
+ }, /*#__PURE__*/React.createElement(Form.Item, {
17389
+ label: "\u7535\u8BDD",
17390
+ colon: false,
17391
+ className: 'telephone'
17392
+ }, getFieldDecorator('sellerPhone', {
17393
+ rules: getRules('sellerPhone', RULES.sellerTelPhone('销售方电话'))
17394
+ })( /*#__PURE__*/React.createElement(MyInput$1, {
17395
+ readOnly: isReadOnly('sellerPhone'),
17396
+ placeholder: "\u8BF7\u8F93\u5165\u7535\u8BDD",
17397
+ autoComplete: "off"
17398
+ })))), /*#__PURE__*/React.createElement(Col, {
17399
+ span: 12,
17400
+ style: {
17401
+ display: isExpand ? undefined : 'none'
17402
+ }
17403
+ }, /*#__PURE__*/React.createElement(Form.Item, {
17404
+ label: "\u9500\u552E\u65B9\u5F00\u6237\u94F6\u884C",
17405
+ colon: false
17406
+ }, getFieldDecorator('sellerBank', {
17407
+ rules: getRules('sellerBank', RULES.bankName('销售方开户银行'))
17408
+ })( /*#__PURE__*/React.createElement(MyInput$1, {
17409
+ readOnly: isReadOnly('sellerBank'),
17410
+ placeholder: "\u8BF7\u8F93\u5165\u9500\u552E\u65B9\u5F00\u6237\u94F6\u884C",
17411
+ autoComplete: "off"
17412
+ })))), /*#__PURE__*/React.createElement(Col, {
17413
+ span: 12,
17414
+ style: {
17415
+ display: isExpand ? undefined : 'none'
17416
+ }
17417
+ }, /*#__PURE__*/React.createElement(Form.Item, {
17418
+ label: "\u94F6\u884C\u8D26\u53F7",
17419
+ colon: false
17420
+ }, getFieldDecorator('sellerAccount', {
17421
+ rules: getRules('sellerAccount', RULES.bankAccount('销售方银行账号'))
17422
+ })( /*#__PURE__*/React.createElement(MyInput$1, {
17423
+ readOnly: isReadOnly('sellerAccount'),
17424
+ placeholder: "\u8BF7\u8F93\u5165\u94F6\u884C\u8D26\u53F7",
17425
+ autoComplete: "off"
17426
+ }))))))));
17427
+ });
17428
+
17429
+ function NaturalPersonFlag(props) {
17430
+ var _React$useState3 = React.useState(props.value || 'COMPANY'),
17431
+ _React$useState4 = _slicedToArray(_React$useState3, 2),
17432
+ value = _React$useState4[0],
17433
+ setValue = _React$useState4[1];
17434
+
17435
+ var onChange = React.useCallback(function (e) {
17436
+ if (props.readOnly) return;
17437
+ setValue(e.target.checked ? 'NATURAL' : 'COMPANY');
17438
+ props.onChange && props.onChange(e.target.checked ? 'NATURAL' : 'COMPANY');
17439
+ }, [props.onChange, props.readOnly]);
17440
+ React.useEffect(function () {
17441
+ setValue(props.value || 'COMPANY');
17442
+ }, [props.value]);
17443
+ return /*#__PURE__*/React.createElement(Checkbox$1, {
17444
+ disabled: props.readOnly,
17445
+ checked: value === 'NATURAL',
17446
+ onChange: onChange
17447
+ }, "\u662F\u5426\u5F00\u7968\u7ED9\u81EA\u7136\u4EBA");
17448
+ }
17449
+
17450
+ function BuyerNameInput$1(props) {
17451
+ var fieldName = props.fieldName,
17452
+ form = props.myform;
17453
+ var controller = Invoice.useInvoiceController();
17454
+ var rootElement = controller.useMemo(function (s) {
17455
+ return s.rootElement;
17456
+ }, []);
17457
+ var autoComplete = controller.useMemo(function (s) {
17458
+ return s.autoComplete;
17459
+ }, []);
17460
+
17461
+ var _React$useState5 = React.useState([]),
17462
+ _React$useState6 = _slicedToArray(_React$useState5, 2),
17463
+ options = _React$useState6[0],
17464
+ setOptions = _React$useState6[1];
17465
+
17466
+ var onChangeAutoComplete = React.useCallback(function (value) {
17467
+ var record = options.filter(function (e) {
17468
+ return e[fieldName] === value;
17469
+ })[0];
17470
+ if (!record || !form) return;
17471
+ form.setFieldsValue(record);
17472
+ setOptions([]);
17473
+ }, [options, fieldName, form]);
17474
+ var onSearch = React.useCallback( /*#__PURE__*/function () {
17475
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(searchText) {
17476
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
17477
+ while (1) {
17478
+ switch (_context.prev = _context.next) {
17479
+ case 0:
17480
+ _context.next = 2;
17481
+ return Discontinue.start();
17482
+
17483
+ case 2:
17484
+ _context.prev = 2;
17485
+
17486
+ if (!(fieldName === 'buyerName')) {
17487
+ _context.next = 12;
17488
+ break;
17489
+ }
17490
+
17491
+ if (!autoComplete.onBuyerNameSearch) {
17492
+ _context.next = 10;
17493
+ break;
17494
+ }
17495
+
17496
+ _context.t0 = setOptions;
17497
+ _context.next = 8;
17498
+ return autoComplete.onBuyerNameSearch(searchText);
17499
+
17500
+ case 8:
17501
+ _context.t1 = _context.sent;
17502
+ (0, _context.t0)(_context.t1);
17503
+
17504
+ case 10:
17505
+ _context.next = 19;
17506
+ break;
17507
+
17508
+ case 12:
17509
+ if (!(fieldName === 'buyerTaxId')) {
17510
+ _context.next = 19;
17511
+ break;
17512
+ }
17513
+
17514
+ if (!autoComplete.onBuyerTaxIdSearch) {
17515
+ _context.next = 19;
17516
+ break;
17517
+ }
17518
+
17519
+ _context.t2 = setOptions;
17520
+ _context.next = 17;
17521
+ return autoComplete.onBuyerTaxIdSearch(searchText);
17522
+
17523
+ case 17:
17524
+ _context.t3 = _context.sent;
17525
+ (0, _context.t2)(_context.t3);
17526
+
17527
+ case 19:
17528
+ _context.next = 25;
17529
+ break;
17530
+
17531
+ case 21:
17532
+ _context.prev = 21;
17533
+ _context.t4 = _context["catch"](2);
17534
+ setOptions([]);
17535
+ throw _context.t4;
17536
+
17537
+ case 25:
17538
+ case "end":
17539
+ return _context.stop();
17540
+ }
17541
+ }
17542
+ }, _callee, null, [[2, 21]]);
17543
+ }));
17544
+
17545
+ return function (_x) {
17546
+ return _ref.apply(this, arguments);
17547
+ };
17548
+ }(), [autoComplete.onBuyerNameSearch, fieldName]);
17549
+ if (props.readOnly) return /*#__PURE__*/React.createElement("span", {
17550
+ className: 'digtal-stakeholder-form-text'
17551
+ }, props.value);
17552
+ return /*#__PURE__*/React.createElement(AutoComplete$1, {
17553
+ onSearch: onSearch,
17554
+ options: options.map(function (e) {
17555
+ return {
17556
+ value: e[fieldName]
17557
+ };
17558
+ }),
17559
+ onChange: onChangeAutoComplete,
17560
+ value: props.value,
17561
+ getPopupContainer: function getPopupContainer() {
17562
+ return rootElement || document.body;
17563
+ },
17564
+ style: {
17565
+ width: '100%'
17566
+ }
17567
+ }, /*#__PURE__*/React.createElement(Input$1, _objectSpread2(_objectSpread2({}, props), {}, {
17568
+ style: _objectSpread2({
17569
+ width: '100%'
17570
+ }, props.style)
17571
+ })));
17572
+ }
17573
+
17574
+ var MyInput$1 = /*#__PURE__*/function (_React$Component) {
17575
+ _inherits(MyInput, _React$Component);
17576
+
17577
+ var _super = _createSuper(MyInput);
17578
+
17579
+ function MyInput() {
17580
+ _classCallCheck(this, MyInput);
17581
+
17582
+ return _super.apply(this, arguments);
17583
+ }
17584
+
17585
+ _createClass(MyInput, [{
17586
+ key: "render",
17587
+ value: function render() {
17588
+ var props = this.props;
17589
+
17590
+ if (props.readOnly) {
17591
+ return /*#__PURE__*/React.createElement("span", {
17592
+ className: 'digtal-stakeholder-form-text'
17593
+ }, props.value);
17594
+ } else {
17595
+ return /*#__PURE__*/React.createElement(Input$1, _objectSpread2({}, props));
17596
+ }
17597
+ }
17598
+ }]);
17599
+
17600
+ return MyInput;
17601
+ }(React.Component);
17602
+
17603
+ var Discontinue = /*#__PURE__*/_createClass(function Discontinue() {
17604
+ _classCallCheck(this, Discontinue);
17605
+ });
17606
+
17607
+ Discontinue.timer = void 0;
17608
+
17609
+ Discontinue.start = function () {
17610
+ var interval = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 200;
17611
+ return new Promise(function (resolve) {
17612
+ clearTimeout(Discontinue.timer);
17613
+ Discontinue.timer = setTimeout(resolve, interval);
17614
+ });
17615
+ };
17616
+
17617
+ var _path$6;
17618
+
17619
+ function _extends$7() { _extends$7 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$7.apply(this, arguments); }
17620
+
17621
+ function SvgArrowUp$1(props) {
17622
+ return /*#__PURE__*/createElement("svg", _extends$7({
17046
17623
  xmlns: "http://www.w3.org/2000/svg",
17047
17624
  width: 13,
17048
17625
  height: 13,
@@ -17054,10 +17631,10 @@ function SvgArrowUp(props) {
17054
17631
 
17055
17632
  var _path$7;
17056
17633
 
17057
- function _extends$7() { _extends$7 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$7.apply(this, arguments); }
17634
+ function _extends$8() { _extends$8 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$8.apply(this, arguments); }
17058
17635
 
17059
- function SvgArrowDown(props) {
17060
- return /*#__PURE__*/createElement("svg", _extends$7({
17636
+ function SvgArrowDown$1(props) {
17637
+ return /*#__PURE__*/createElement("svg", _extends$8({
17061
17638
  xmlns: "http://www.w3.org/2000/svg",
17062
17639
  width: 12,
17063
17640
  height: 13,
@@ -17067,17 +17644,17 @@ function SvgArrowDown(props) {
17067
17644
  })));
17068
17645
  }
17069
17646
 
17070
- var _g, _defs$2;
17647
+ var _g$1, _defs$3;
17071
17648
 
17072
- function _extends$8() { _extends$8 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$8.apply(this, arguments); }
17649
+ function _extends$9() { _extends$9 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$9.apply(this, arguments); }
17073
17650
 
17074
- function SvgPlus(props) {
17075
- return /*#__PURE__*/createElement("svg", _extends$8({
17651
+ function SvgPlus$1(props) {
17652
+ return /*#__PURE__*/createElement("svg", _extends$9({
17076
17653
  xmlns: "http://www.w3.org/2000/svg",
17077
17654
  width: 16,
17078
17655
  height: 15,
17079
17656
  fill: "none"
17080
- }, props), _g || (_g = /*#__PURE__*/createElement("g", {
17657
+ }, props), _g$1 || (_g$1 = /*#__PURE__*/createElement("g", {
17081
17658
  clipPath: "url(#plus_svg__clip0_715_360)"
17082
17659
  }, /*#__PURE__*/createElement("path", {
17083
17660
  d: "M8 14.531A7.031 7.031 0 118 .468a7.031 7.031 0 010 14.063zm0-.937A6.094 6.094 0 108 1.406a6.094 6.094 0 000 12.188z"
@@ -17085,7 +17662,7 @@ function SvgPlus(props) {
17085
17662
  d: "M4.25 7.969a.469.469 0 010-.938h7.5a.47.47 0 010 .938h-7.5z"
17086
17663
  }), /*#__PURE__*/createElement("path", {
17087
17664
  d: "M7.531 3.75a.469.469 0 01.938 0v7.5a.47.47 0 01-.938 0v-7.5z"
17088
- }))), _defs$2 || (_defs$2 = /*#__PURE__*/createElement("defs", null, /*#__PURE__*/createElement("clipPath", {
17665
+ }))), _defs$3 || (_defs$3 = /*#__PURE__*/createElement("defs", null, /*#__PURE__*/createElement("clipPath", {
17089
17666
  id: "plus_svg__clip0_715_360"
17090
17667
  }, /*#__PURE__*/createElement("path", {
17091
17668
  transform: "translate(.5)",
@@ -17093,10 +17670,10 @@ function SvgPlus(props) {
17093
17670
  })))));
17094
17671
  }
17095
17672
 
17096
- 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";
17097
- styleInject(css_248z$g);
17673
+ var css_248z$h = ".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";
17674
+ styleInject(css_248z$h);
17098
17675
 
17099
- var RULES = {
17676
+ var RULES$1 = {
17100
17677
  companyName: function companyName(label) {
17101
17678
  return [{
17102
17679
  required: true,
@@ -17153,7 +17730,7 @@ var RULES = {
17153
17730
  }
17154
17731
  };
17155
17732
 
17156
- var formatCompanyName = function formatCompanyName(e) {
17733
+ var formatCompanyName$1 = function formatCompanyName(e) {
17157
17734
  var _e$target;
17158
17735
 
17159
17736
  var value = e === null || e === void 0 ? void 0 : (_e$target = e.target) === null || _e$target === void 0 ? void 0 : _e$target.value;
@@ -17162,10 +17739,10 @@ var formatCompanyName = function formatCompanyName(e) {
17162
17739
  return value.replace('(', '(').replace(')', ')').replace(' ', '');
17163
17740
  }
17164
17741
  };
17165
- /** 干系人 */
17742
+ /** 农产品干系人 */
17166
17743
 
17167
17744
 
17168
- var Stakeholder$1 = decorator(Form.create())(function (props) {
17745
+ var StakeFarmerholder = decorator(Form.create())(function (props) {
17169
17746
  var form = props.form,
17170
17747
  isShowImportButton = props.isShowImportButton,
17171
17748
  onClickImportButton = props.onClickImportButton,
@@ -17214,11 +17791,11 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
17214
17791
  className: classNames("kts-invoice-operate-invoice-digtal-stakeholder", {
17215
17792
  readOnly: readOnly
17216
17793
  })
17217
- }, /*#__PURE__*/React.createElement("div", null, '购买方信息'.split('').map(function (e) {
17794
+ }, /*#__PURE__*/React.createElement("div", null, '销售方信息'.split('').map(function (e) {
17218
17795
  return /*#__PURE__*/React.createElement("span", null, e);
17219
17796
  }), !readOnly && /*#__PURE__*/React.createElement(Icon, {
17220
17797
  className: "digtal-stakeholder-expand-button",
17221
- component: isExpand ? SvgArrowUp : SvgArrowDown,
17798
+ component: isExpand ? SvgArrowUp$1 : SvgArrowDown$1,
17222
17799
  onClick: onExpand
17223
17800
  })), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
17224
17801
  style: {
@@ -17227,7 +17804,7 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
17227
17804
  className: 'natural-person-flag'
17228
17805
  }, props.isNaturalPerson === true && /*#__PURE__*/React.createElement(Form.Item, {
17229
17806
  colon: false
17230
- }, getFieldDecorator('naturalPersonFlag', {})( /*#__PURE__*/React.createElement(NaturalPersonFlag, {
17807
+ }, getFieldDecorator('naturalPersonFlag', {})( /*#__PURE__*/React.createElement(NaturalPersonFlag$1, {
17231
17808
  readOnly: isReadOnly('naturalPersonFlag')
17232
17809
  })))), /*#__PURE__*/React.createElement(Form, {
17233
17810
  className: "digtal-stakeholder-form"
@@ -17238,63 +17815,46 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
17238
17815
  }, /*#__PURE__*/React.createElement(Form.Item, {
17239
17816
  label: "\u540D\u79F0",
17240
17817
  colon: false
17241
- }, getFieldDecorator('buyerName', {
17242
- rules: getRules('buyerName', RULES.companyName('购买方名称'))
17243
- })( /*#__PURE__*/React.createElement(BuyerNameInput$1, {
17244
- myform: form,
17245
- fieldName: 'buyerName',
17246
- readOnly: isReadOnly('buyerName'),
17818
+ }, getFieldDecorator('supplierName', {
17819
+ rules: getRules('supplierName', RULES$1.companyName('销售方名称')),
17820
+ getValueFromEvent: formatCompanyName$1
17821
+ })( /*#__PURE__*/React.createElement(MyInput$2, {
17822
+ readOnly: isReadOnly('supplierName'),
17247
17823
  placeholder: "\u8BF7\u8F93\u5165\u540D\u79F0",
17248
- autoComplete: "off",
17249
- suffix: isShowImportButton === true && /*#__PURE__*/React.createElement(Button$1, {
17250
- type: 'link',
17251
- style: {
17252
- padding: 0,
17253
- width: 20,
17254
- height: '100%'
17255
- },
17256
- icon: /*#__PURE__*/React.createElement(Icon, {
17257
- component: SvgPlus
17258
- }),
17259
- onClick: function onClick() {
17260
- onClickImportButton && onClickImportButton(controller);
17261
- }
17262
- })
17824
+ autoComplete: "off"
17263
17825
  })))), /*#__PURE__*/React.createElement(Col, {
17264
17826
  span: 24
17265
17827
  }, /*#__PURE__*/React.createElement(Form.Item, {
17266
17828
  label: "\u7EDF\u4E00\u793E\u4F1A\u4FE1\u7528\u4EE3\u7801/\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7",
17267
17829
  colon: false
17268
- }, getFieldDecorator('buyerTaxId', {
17269
- rules: getRules('buyerTaxId', [{
17270
- required: !isVatNormal,
17271
- message: '购买方纳税人识别号必填'
17272
- }].concat(_toConsumableArray(RULES.taxId('购买方纳税人识别号'))))
17273
- })( /*#__PURE__*/React.createElement(BuyerNameInput$1, {
17274
- myform: form,
17275
- fieldName: 'buyerTaxId',
17276
- readOnly: isReadOnly('buyerTaxId'),
17830
+ }, getFieldDecorator('supplierTaxId', {
17831
+ rules: getRules('supplierTaxId', [{
17832
+ required: true,
17833
+ message: '销售方纳税人识别号必填'
17834
+ }].concat(_toConsumableArray(RULES$1.taxId('销售方纳税人识别号'))))
17835
+ })( /*#__PURE__*/React.createElement(MyInput$2, {
17836
+ readOnly: isReadOnly('supplierTaxId'),
17277
17837
  placeholder: "\u8BF7\u8F93\u5165\u7EDF\u4E00\u793E\u4F1A\u4FE1\u7528\u4EE3\u7801/\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7",
17278
17838
  autoComplete: "off"
17279
17839
  })))), /*#__PURE__*/React.createElement(Col, {
17280
- span: 14,
17840
+ span: 12,
17281
17841
  style: {
17282
17842
  display: isExpand ? undefined : 'none'
17283
17843
  }
17284
17844
  }, /*#__PURE__*/React.createElement(Form.Item, {
17285
- label: "\u8D2D\u4E70\u65B9\u5730\u5740",
17845
+ label: "\u9500\u552E\u65B9\u5730\u5740",
17286
17846
  colon: false
17287
- }, getFieldDecorator('buyerAddress', {
17288
- rules: getRules('buyerAddress', [{
17289
- max: 100,
17290
- message: '购买方地址内容超长'
17847
+ }, getFieldDecorator('sellerAddress', {
17848
+ rules: getRules('sellerAddress', [{
17849
+ max: 300,
17850
+ message: '销售方地址内容超长'
17291
17851
  }])
17292
- })( /*#__PURE__*/React.createElement(MyInput$1, {
17293
- readOnly: isReadOnly('buyerAddress'),
17294
- placeholder: "\u8BF7\u8F93\u5165\u8D2D\u4E70\u65B9\u5730\u5740",
17852
+ })( /*#__PURE__*/React.createElement(MyInput$2, {
17853
+ readOnly: isReadOnly('sellerAddress'),
17854
+ placeholder: "\u8BF7\u8F93\u5165\u9500\u552E\u65B9\u5730\u5740",
17295
17855
  autoComplete: "off"
17296
17856
  })))), /*#__PURE__*/React.createElement(Col, {
17297
- span: 10,
17857
+ span: 12,
17298
17858
  style: {
17299
17859
  display: isExpand ? undefined : 'none'
17300
17860
  }
@@ -17302,45 +17862,45 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
17302
17862
  label: "\u7535\u8BDD",
17303
17863
  colon: false,
17304
17864
  className: 'telephone'
17305
- }, getFieldDecorator('buyerPhone', {
17306
- rules: getRules('buyerPhone', RULES.buyerTelPhone('购买方电话'))
17307
- })( /*#__PURE__*/React.createElement(MyInput$1, {
17308
- readOnly: isReadOnly('buyerPhone'),
17865
+ }, getFieldDecorator('sellerPhone', {
17866
+ rules: getRules('sellerPhone', RULES$1.sellerTelPhone('销售方电话'))
17867
+ })( /*#__PURE__*/React.createElement(MyInput$2, {
17868
+ readOnly: isReadOnly('sellerPhone'),
17309
17869
  placeholder: "\u8BF7\u8F93\u5165\u7535\u8BDD",
17310
17870
  autoComplete: "off"
17311
17871
  })))), /*#__PURE__*/React.createElement(Col, {
17312
- span: 14,
17872
+ span: 12,
17313
17873
  style: {
17314
17874
  display: isExpand ? undefined : 'none'
17315
17875
  }
17316
17876
  }, /*#__PURE__*/React.createElement(Form.Item, {
17317
- label: "\u8D2D\u4E70\u65B9\u5F00\u6237\u94F6\u884C",
17877
+ label: "\u9500\u552E\u65B9\u5F00\u6237\u94F6\u884C",
17318
17878
  colon: false
17319
- }, getFieldDecorator('buyerBank', {
17320
- rules: getRules('buyerBank', RULES.bankName('购买方开户银行'))
17321
- })( /*#__PURE__*/React.createElement(MyInput$1, {
17322
- readOnly: isReadOnly('buyerBank'),
17323
- placeholder: "\u8BF7\u8F93\u5165\u8D2D\u4E70\u65B9\u5F00\u6237\u94F6\u884C",
17879
+ }, getFieldDecorator('sellerBank', {
17880
+ rules: getRules('sellerBank', RULES$1.bankName('销售方开户银行'))
17881
+ })( /*#__PURE__*/React.createElement(MyInput$2, {
17882
+ readOnly: isReadOnly('sellerBank'),
17883
+ placeholder: "\u8BF7\u8F93\u5165\u9500\u552E\u65B9\u5F00\u6237\u94F6\u884C",
17324
17884
  autoComplete: "off"
17325
17885
  })))), /*#__PURE__*/React.createElement(Col, {
17326
- span: 10,
17886
+ span: 12,
17327
17887
  style: {
17328
17888
  display: isExpand ? undefined : 'none'
17329
17889
  }
17330
17890
  }, /*#__PURE__*/React.createElement(Form.Item, {
17331
17891
  label: "\u94F6\u884C\u8D26\u53F7",
17332
17892
  colon: false
17333
- }, getFieldDecorator('buyerAccount', {
17334
- rules: getRules('buyerAccount', RULES.bankAccount('购买方银行账号'))
17335
- })( /*#__PURE__*/React.createElement(MyInput$1, {
17336
- readOnly: isReadOnly('buyerAccount'),
17893
+ }, getFieldDecorator('sellerAccount', {
17894
+ rules: getRules('sellerAccount', RULES$1.bankAccount('销售方银行账号'))
17895
+ })( /*#__PURE__*/React.createElement(MyInput$2, {
17896
+ readOnly: isReadOnly('sellerAccount'),
17337
17897
  placeholder: "\u8BF7\u8F93\u5165\u94F6\u884C\u8D26\u53F7",
17338
17898
  autoComplete: "off"
17339
- }))))))), /*#__PURE__*/React.createElement("div", null, '销售方信息'.split('').map(function (e) {
17899
+ }))))))), /*#__PURE__*/React.createElement("div", null, '购买方信息'.split('').map(function (e) {
17340
17900
  return /*#__PURE__*/React.createElement("span", null, e);
17341
17901
  }), !readOnly && /*#__PURE__*/React.createElement(Icon, {
17342
17902
  className: "digtal-stakeholder-expand-button",
17343
- component: isExpand ? SvgArrowUp : SvgArrowDown,
17903
+ component: isExpand ? SvgArrowUp$1 : SvgArrowDown$1,
17344
17904
  onClick: onExpand
17345
17905
  })), /*#__PURE__*/React.createElement("div", null, !readOnly && props.lineCredit && /*#__PURE__*/React.createElement("div", {
17346
17906
  style: {
@@ -17363,46 +17923,63 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
17363
17923
  }, /*#__PURE__*/React.createElement(Form.Item, {
17364
17924
  label: "\u540D\u79F0",
17365
17925
  colon: false
17366
- }, getFieldDecorator('supplierName', {
17367
- rules: getRules('supplierName', RULES.companyName('销售方名称')),
17368
- getValueFromEvent: formatCompanyName
17369
- })( /*#__PURE__*/React.createElement(MyInput$1, {
17370
- readOnly: isReadOnly('supplierName'),
17926
+ }, getFieldDecorator('buyerName', {
17927
+ rules: getRules('buyerName', RULES$1.companyName('购买方名称'))
17928
+ })( /*#__PURE__*/React.createElement(BuyerNameInput$2, {
17929
+ myform: form,
17930
+ fieldName: 'buyerName',
17931
+ readOnly: isReadOnly('buyerName'),
17371
17932
  placeholder: "\u8BF7\u8F93\u5165\u540D\u79F0",
17372
- autoComplete: "off"
17933
+ autoComplete: "off",
17934
+ suffix: isShowImportButton === true && /*#__PURE__*/React.createElement(Button$1, {
17935
+ type: 'link',
17936
+ style: {
17937
+ padding: 0,
17938
+ width: 20,
17939
+ height: '100%'
17940
+ },
17941
+ icon: /*#__PURE__*/React.createElement(Icon, {
17942
+ component: SvgPlus$1
17943
+ }),
17944
+ onClick: function onClick() {
17945
+ onClickImportButton && onClickImportButton(controller);
17946
+ }
17947
+ })
17373
17948
  })))), /*#__PURE__*/React.createElement(Col, {
17374
17949
  span: 24
17375
17950
  }, /*#__PURE__*/React.createElement(Form.Item, {
17376
17951
  label: "\u7EDF\u4E00\u793E\u4F1A\u4FE1\u7528\u4EE3\u7801/\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7",
17377
17952
  colon: false
17378
- }, getFieldDecorator('supplierTaxId', {
17379
- rules: getRules('supplierTaxId', [{
17380
- required: true,
17381
- message: '销售方纳税人识别号必填'
17382
- }].concat(_toConsumableArray(RULES.taxId('销售方纳税人识别号'))))
17383
- })( /*#__PURE__*/React.createElement(MyInput$1, {
17384
- readOnly: isReadOnly('supplierTaxId'),
17953
+ }, getFieldDecorator('buyerTaxId', {
17954
+ rules: getRules('buyerTaxId', [{
17955
+ required: !isVatNormal,
17956
+ message: '购买方纳税人识别号必填'
17957
+ }].concat(_toConsumableArray(RULES$1.taxId('购买方纳税人识别号'))))
17958
+ })( /*#__PURE__*/React.createElement(BuyerNameInput$2, {
17959
+ myform: form,
17960
+ fieldName: 'buyerTaxId',
17961
+ readOnly: isReadOnly('buyerTaxId'),
17385
17962
  placeholder: "\u8BF7\u8F93\u5165\u7EDF\u4E00\u793E\u4F1A\u4FE1\u7528\u4EE3\u7801/\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7",
17386
17963
  autoComplete: "off"
17387
17964
  })))), /*#__PURE__*/React.createElement(Col, {
17388
- span: 12,
17965
+ span: 14,
17389
17966
  style: {
17390
17967
  display: isExpand ? undefined : 'none'
17391
17968
  }
17392
17969
  }, /*#__PURE__*/React.createElement(Form.Item, {
17393
- label: "\u9500\u552E\u65B9\u5730\u5740",
17970
+ label: "\u8D2D\u4E70\u65B9\u5730\u5740",
17394
17971
  colon: false
17395
- }, getFieldDecorator('sellerAddress', {
17396
- rules: getRules('sellerAddress', [{
17397
- max: 300,
17398
- message: '销售方地址内容超长'
17972
+ }, getFieldDecorator('buyerAddress', {
17973
+ rules: getRules('buyerAddress', [{
17974
+ max: 100,
17975
+ message: '购买方地址内容超长'
17399
17976
  }])
17400
- })( /*#__PURE__*/React.createElement(MyInput$1, {
17401
- readOnly: isReadOnly('sellerAddress'),
17402
- placeholder: "\u8BF7\u8F93\u5165\u9500\u552E\u65B9\u5730\u5740",
17977
+ })( /*#__PURE__*/React.createElement(MyInput$2, {
17978
+ readOnly: isReadOnly('buyerAddress'),
17979
+ placeholder: "\u8BF7\u8F93\u5165\u8D2D\u4E70\u65B9\u5730\u5740",
17403
17980
  autoComplete: "off"
17404
17981
  })))), /*#__PURE__*/React.createElement(Col, {
17405
- span: 12,
17982
+ span: 10,
17406
17983
  style: {
17407
17984
  display: isExpand ? undefined : 'none'
17408
17985
  }
@@ -17410,44 +17987,44 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
17410
17987
  label: "\u7535\u8BDD",
17411
17988
  colon: false,
17412
17989
  className: 'telephone'
17413
- }, getFieldDecorator('sellerPhone', {
17414
- rules: getRules('sellerPhone', RULES.sellerTelPhone('销售方电话'))
17415
- })( /*#__PURE__*/React.createElement(MyInput$1, {
17416
- readOnly: isReadOnly('sellerPhone'),
17990
+ }, getFieldDecorator('buyerPhone', {
17991
+ rules: getRules('buyerPhone', RULES$1.buyerTelPhone('购买方电话'))
17992
+ })( /*#__PURE__*/React.createElement(MyInput$2, {
17993
+ readOnly: isReadOnly('buyerPhone'),
17417
17994
  placeholder: "\u8BF7\u8F93\u5165\u7535\u8BDD",
17418
17995
  autoComplete: "off"
17419
17996
  })))), /*#__PURE__*/React.createElement(Col, {
17420
- span: 12,
17997
+ span: 14,
17421
17998
  style: {
17422
17999
  display: isExpand ? undefined : 'none'
17423
18000
  }
17424
18001
  }, /*#__PURE__*/React.createElement(Form.Item, {
17425
- label: "\u9500\u552E\u65B9\u5F00\u6237\u94F6\u884C",
18002
+ label: "\u8D2D\u4E70\u65B9\u5F00\u6237\u94F6\u884C",
17426
18003
  colon: false
17427
- }, getFieldDecorator('sellerBank', {
17428
- rules: getRules('sellerBank', RULES.bankName('销售方开户银行'))
17429
- })( /*#__PURE__*/React.createElement(MyInput$1, {
17430
- readOnly: isReadOnly('sellerBank'),
17431
- placeholder: "\u8BF7\u8F93\u5165\u9500\u552E\u65B9\u5F00\u6237\u94F6\u884C",
18004
+ }, getFieldDecorator('buyerBank', {
18005
+ rules: getRules('buyerBank', RULES$1.bankName('购买方开户银行'))
18006
+ })( /*#__PURE__*/React.createElement(MyInput$2, {
18007
+ readOnly: isReadOnly('buyerBank'),
18008
+ placeholder: "\u8BF7\u8F93\u5165\u8D2D\u4E70\u65B9\u5F00\u6237\u94F6\u884C",
17432
18009
  autoComplete: "off"
17433
18010
  })))), /*#__PURE__*/React.createElement(Col, {
17434
- span: 12,
18011
+ span: 10,
17435
18012
  style: {
17436
18013
  display: isExpand ? undefined : 'none'
17437
18014
  }
17438
18015
  }, /*#__PURE__*/React.createElement(Form.Item, {
17439
18016
  label: "\u94F6\u884C\u8D26\u53F7",
17440
18017
  colon: false
17441
- }, getFieldDecorator('sellerAccount', {
17442
- rules: getRules('sellerAccount', RULES.bankAccount('销售方银行账号'))
17443
- })( /*#__PURE__*/React.createElement(MyInput$1, {
17444
- readOnly: isReadOnly('sellerAccount'),
18018
+ }, getFieldDecorator('buyerAccount', {
18019
+ rules: getRules('buyerAccount', RULES$1.bankAccount('购买方银行账号'))
18020
+ })( /*#__PURE__*/React.createElement(MyInput$2, {
18021
+ readOnly: isReadOnly('buyerAccount'),
17445
18022
  placeholder: "\u8BF7\u8F93\u5165\u94F6\u884C\u8D26\u53F7",
17446
18023
  autoComplete: "off"
17447
18024
  }))))))));
17448
18025
  });
17449
18026
 
17450
- function NaturalPersonFlag(props) {
18027
+ function NaturalPersonFlag$1(props) {
17451
18028
  var _React$useState3 = React.useState(props.value || 'COMPANY'),
17452
18029
  _React$useState4 = _slicedToArray(_React$useState3, 2),
17453
18030
  value = _React$useState4[0],
@@ -17468,7 +18045,7 @@ function NaturalPersonFlag(props) {
17468
18045
  }, "\u662F\u5426\u5F00\u7968\u7ED9\u81EA\u7136\u4EBA");
17469
18046
  }
17470
18047
 
17471
- function BuyerNameInput$1(props) {
18048
+ function BuyerNameInput$2(props) {
17472
18049
  var fieldName = props.fieldName,
17473
18050
  form = props.myform;
17474
18051
  var controller = Invoice.useInvoiceController();
@@ -17499,7 +18076,7 @@ function BuyerNameInput$1(props) {
17499
18076
  switch (_context.prev = _context.next) {
17500
18077
  case 0:
17501
18078
  _context.next = 2;
17502
- return Discontinue.start();
18079
+ return Discontinue$1.start();
17503
18080
 
17504
18081
  case 2:
17505
18082
  _context.prev = 2;
@@ -17592,7 +18169,7 @@ function BuyerNameInput$1(props) {
17592
18169
  })));
17593
18170
  }
17594
18171
 
17595
- var MyInput$1 = /*#__PURE__*/function (_React$Component) {
18172
+ var MyInput$2 = /*#__PURE__*/function (_React$Component) {
17596
18173
  _inherits(MyInput, _React$Component);
17597
18174
 
17598
18175
  var _super = _createSuper(MyInput);
@@ -17621,22 +18198,22 @@ var MyInput$1 = /*#__PURE__*/function (_React$Component) {
17621
18198
  return MyInput;
17622
18199
  }(React.Component);
17623
18200
 
17624
- var Discontinue = /*#__PURE__*/_createClass(function Discontinue() {
18201
+ var Discontinue$1 = /*#__PURE__*/_createClass(function Discontinue() {
17625
18202
  _classCallCheck(this, Discontinue);
17626
18203
  });
17627
18204
 
17628
- Discontinue.timer = void 0;
18205
+ Discontinue$1.timer = void 0;
17629
18206
 
17630
- Discontinue.start = function () {
18207
+ Discontinue$1.start = function () {
17631
18208
  var interval = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 200;
17632
18209
  return new Promise(function (resolve) {
17633
- clearTimeout(Discontinue.timer);
17634
- Discontinue.timer = setTimeout(resolve, interval);
18210
+ clearTimeout(Discontinue$1.timer);
18211
+ Discontinue$1.timer = setTimeout(resolve, interval);
17635
18212
  });
17636
18213
  };
17637
18214
 
17638
- var css_248z$h = ".kts-invoice-operate-sign-digtal {\n padding: 20px 20px 0;\n border-bottom: 2px solid #9F613E;\n border-left: 2px solid #9F613E;\n border-right: 2px solid #9F613E;\n}\n.kts-invoice-operate-sign-digtal .sign-digtal-label {\n color: #9F613E;\n font-weight: bold;\n}\n.kts-invoice-operate-sign-digtal-readOnly .sign-digtal-readOnly-cont {\n border-bottom: 2px solid #9F613E;\n border-left: 2px solid #9F613E;\n border-right: 2px solid #9F613E;\n display: flex;\n}\n.kts-invoice-operate-sign-digtal-readOnly .sign-digtal-readOnly-cont > div:nth-child(even) {\n flex: 1;\n display: flex;\n flex-direction: column;\n padding: 10px;\n min-height: 189px;\n}\n.kts-invoice-operate-sign-digtal-readOnly .sign-digtal-readOnly-cont > 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 border-right: 2px solid #9F613E;\n}\n.kts-invoice-operate-sign-digtal-readOnly .digtal-readOnly-form {\n padding-left: 30px;\n}\n.kts-invoice-operate-sign-digtal-readOnly .digtal-readOnly-form .ktsAnt3x-form-item-label label {\n color: #9F613E;\n font-weight: bold;\n}\n";
17639
- styleInject(css_248z$h);
18215
+ var css_248z$i = ".kts-invoice-operate-sign-digtal {\n padding: 20px 20px 0;\n border-bottom: 2px solid #9F613E;\n border-left: 2px solid #9F613E;\n border-right: 2px solid #9F613E;\n}\n.kts-invoice-operate-sign-digtal .sign-digtal-label {\n color: #9F613E;\n font-weight: bold;\n}\n.kts-invoice-operate-sign-digtal-readOnly .sign-digtal-readOnly-cont {\n border-bottom: 2px solid #9F613E;\n border-left: 2px solid #9F613E;\n border-right: 2px solid #9F613E;\n display: flex;\n}\n.kts-invoice-operate-sign-digtal-readOnly .sign-digtal-readOnly-cont > div:nth-child(even) {\n flex: 1;\n display: flex;\n flex-direction: column;\n padding: 10px;\n min-height: 189px;\n}\n.kts-invoice-operate-sign-digtal-readOnly .sign-digtal-readOnly-cont > 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 border-right: 2px solid #9F613E;\n}\n.kts-invoice-operate-sign-digtal-readOnly .digtal-readOnly-form {\n padding-left: 30px;\n}\n.kts-invoice-operate-sign-digtal-readOnly .digtal-readOnly-form .ktsAnt3x-form-item-label label {\n color: #9F613E;\n font-weight: bold;\n}\n";
18216
+ styleInject(css_248z$i);
17640
18217
 
17641
18218
  var SignDigtal = decorator(Form.create())(function (props) {
17642
18219
  var form = props.form;
@@ -17744,8 +18321,8 @@ var MyDiv$1 = /*#__PURE__*/function (_React$Component) {
17744
18321
  return MyDiv;
17745
18322
  }(React.Component);
17746
18323
 
17747
- var css_248z$i = ".kts-invoice-operate-goods-table-virtual .ktsAntX-table-body {\n height: 280px;\n}\n.kts-invoice-operate-goods-table-virtual .ktsAntX-table.ktsAntX-table-bordered > .ktsAntX-table-container > .ktsAntX-table-header > table > thead > tr > th {\n padding: 0 10px;\n height: 32px;\n background: #f4f4f4;\n}\n.kts-invoice-operate-goods-table-virtual .ktsAntX-table.ktsAntX-table-bordered > .ktsAntX-table-container > .ktsAntX-table-body > table > tbody > tr > td {\n padding: 0;\n height: 32px;\n}\n.kts-invoice-operate-goods-table-virtual .ktsAntX-table .ktsAntX-table-body {\n position: relative;\n}\n.kts-invoice-operate-goods-table-virtual .ktsAntX-table .ktsAntX-table-body > table {\n position: absolute;\n left: 0;\n top: 0;\n}\n.kts-invoice-operate-goods-table-virtual .ktsAntX-table .ktsAntX-table-tbody {\n position: relative;\n}\n.kts-invoice-operate-goods-table-virtual .ktsAntX-checkbox-wrapper .ktsAntX-checkbox-inner {\n width: 16px;\n height: 16px;\n border: 1px solid #d9d9d9;\n border-radius: 2px;\n top: 1px;\n}\n";
17748
- styleInject(css_248z$i);
18324
+ var css_248z$j = ".kts-invoice-operate-goods-table-virtual .ktsAntX-table-body {\n height: 280px;\n}\n.kts-invoice-operate-goods-table-virtual .ktsAntX-table.ktsAntX-table-bordered > .ktsAntX-table-container > .ktsAntX-table-header > table > thead > tr > th {\n padding: 0 10px;\n height: 32px;\n background: #f4f4f4;\n}\n.kts-invoice-operate-goods-table-virtual .ktsAntX-table.ktsAntX-table-bordered > .ktsAntX-table-container > .ktsAntX-table-body > table > tbody > tr > td {\n padding: 0;\n height: 32px;\n}\n.kts-invoice-operate-goods-table-virtual .ktsAntX-table .ktsAntX-table-body {\n position: relative;\n}\n.kts-invoice-operate-goods-table-virtual .ktsAntX-table .ktsAntX-table-body > table {\n position: absolute;\n left: 0;\n top: 0;\n}\n.kts-invoice-operate-goods-table-virtual .ktsAntX-table .ktsAntX-table-tbody {\n position: relative;\n}\n.kts-invoice-operate-goods-table-virtual .ktsAntX-checkbox-wrapper .ktsAntX-checkbox-inner {\n width: 16px;\n height: 16px;\n border: 1px solid #d9d9d9;\n border-radius: 2px;\n top: 1px;\n}\n";
18325
+ styleInject(css_248z$j);
17749
18326
 
17750
18327
  function TableVirtual$1 (props) {
17751
18328
  var _props$dataSource2;
@@ -17850,17 +18427,17 @@ function TableVirtual$1 (props) {
17850
18427
  })));
17851
18428
  }
17852
18429
 
17853
- var _g$1, _defs$3;
18430
+ var _g$2, _defs$4;
17854
18431
 
17855
- function _extends$9() { _extends$9 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$9.apply(this, arguments); }
18432
+ function _extends$a() { _extends$a = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$a.apply(this, arguments); }
17856
18433
 
17857
18434
  function SvgFork(props) {
17858
- return /*#__PURE__*/createElement("svg", _extends$9({
18435
+ return /*#__PURE__*/createElement("svg", _extends$a({
17859
18436
  xmlns: "http://www.w3.org/2000/svg",
17860
18437
  width: 16,
17861
18438
  height: 16,
17862
18439
  fill: "none"
17863
- }, props), _g$1 || (_g$1 = /*#__PURE__*/createElement("g", {
18440
+ }, props), _g$2 || (_g$2 = /*#__PURE__*/createElement("g", {
17864
18441
  clipPath: "url(#fork_svg__clip0_695_1221)",
17865
18442
  fill: "#333"
17866
18443
  }, /*#__PURE__*/createElement("path", {
@@ -17869,7 +18446,7 @@ function SvgFork(props) {
17869
18446
  d: "M10.702 11.329l-5.973-5.97.629-.63 5.971 5.971-.627.629z"
17870
18447
  }), /*#__PURE__*/createElement("path", {
17871
18448
  d: "M4.669 10.702l5.97-5.971.63.628-5.972 5.972-.628-.629z"
17872
- }))), _defs$3 || (_defs$3 = /*#__PURE__*/createElement("defs", null, /*#__PURE__*/createElement("clipPath", {
18449
+ }))), _defs$4 || (_defs$4 = /*#__PURE__*/createElement("defs", null, /*#__PURE__*/createElement("clipPath", {
17873
18450
  id: "fork_svg__clip0_695_1221"
17874
18451
  }, /*#__PURE__*/createElement("path", {
17875
18452
  fill: "#fff",
@@ -17877,8 +18454,8 @@ function SvgFork(props) {
17877
18454
  })))));
17878
18455
  }
17879
18456
 
17880
- var css_248z$j = ".kts-invoice-operate-goods-list-statistics-digtal {\n overflow-y: scroll;\n /* 设置滚动条滑块颜色 */\n}\n.kts-invoice-operate-goods-list-statistics-digtal::-webkit-scrollbar-track {\n background-color: #f1f1f1;\n}\n.kts-invoice-operate-goods-list-statistics-digtal .statistics-digtal-total-tax,\n.kts-invoice-operate-goods-list-statistics-digtal .statistics-digtal-total {\n height: 42px;\n display: flex;\n align-items: center;\n}\n.kts-invoice-operate-goods-list-statistics-digtal .statistics-digtal-total-tax > div:first-child,\n.kts-invoice-operate-goods-list-statistics-digtal .statistics-digtal-total > div:first-child {\n width: 225px;\n color: #9F613E;\n font-family: PingFang SC;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n.kts-invoice-operate-goods-list-statistics-digtal .statistics-digtal-total-tax {\n border-top: 2px solid #9F613E;\n}\n.kts-invoice-operate-goods-list-statistics-digtal .statistics-digtal-total-tax > div:first-child {\n border-right: 2px solid #9F613E;\n}\n";
17881
- styleInject(css_248z$j);
18457
+ var css_248z$k = ".kts-invoice-operate-goods-list-statistics-digtal {\n overflow-y: scroll;\n /* 设置滚动条滑块颜色 */\n}\n.kts-invoice-operate-goods-list-statistics-digtal::-webkit-scrollbar-track {\n background-color: #f1f1f1;\n}\n.kts-invoice-operate-goods-list-statistics-digtal .statistics-digtal-total-tax,\n.kts-invoice-operate-goods-list-statistics-digtal .statistics-digtal-total {\n height: 42px;\n display: flex;\n align-items: center;\n}\n.kts-invoice-operate-goods-list-statistics-digtal .statistics-digtal-total-tax > div:first-child,\n.kts-invoice-operate-goods-list-statistics-digtal .statistics-digtal-total > div:first-child {\n width: 225px;\n color: #9F613E;\n font-family: PingFang SC;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n.kts-invoice-operate-goods-list-statistics-digtal .statistics-digtal-total-tax {\n border-top: 2px solid #9F613E;\n}\n.kts-invoice-operate-goods-list-statistics-digtal .statistics-digtal-total-tax > div:first-child {\n border-right: 2px solid #9F613E;\n}\n";
18458
+ styleInject(css_248z$k);
17882
18459
 
17883
18460
  var Statistics$1 = (function () {
17884
18461
  var controller = Invoice.useInvoiceController();
@@ -19461,10 +20038,10 @@ var TaxIncludedSwitch$1 = (function () {
19461
20038
 
19462
20039
  var _path$8;
19463
20040
 
19464
- function _extends$a() { _extends$a = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$a.apply(this, arguments); }
20041
+ function _extends$b() { _extends$b = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$b.apply(this, arguments); }
19465
20042
 
19466
20043
  function SvgMagnifier$1(props) {
19467
- return /*#__PURE__*/createElement("svg", _extends$a({
20044
+ return /*#__PURE__*/createElement("svg", _extends$b({
19468
20045
  className: "magnifier_svg__icon",
19469
20046
  viewBox: "0 0 1024 1024",
19470
20047
  xmlns: "http://www.w3.org/2000/svg",
@@ -19475,8 +20052,8 @@ function SvgMagnifier$1(props) {
19475
20052
  })));
19476
20053
  }
19477
20054
 
19478
- var css_248z$k = ".kts-invoice-operate-goods-list-able .kts-invoice-operate-goods-list-search {\n width: 350px;\n border-radius: 999px;\n}\n.kts-invoice-operate-goods-list-able .kts-invoice-operate-goods-list-search input {\n border-radius: 999px;\n border-color: #b8b8b8;\n font-size: 12px;\n}\n";
19479
- styleInject(css_248z$k);
20055
+ var css_248z$l = ".kts-invoice-operate-goods-list-able .kts-invoice-operate-goods-list-search {\n width: 350px;\n border-radius: 999px;\n}\n.kts-invoice-operate-goods-list-able .kts-invoice-operate-goods-list-search input {\n border-radius: 999px;\n border-color: #b8b8b8;\n font-size: 12px;\n}\n";
20056
+ styleInject(css_248z$l);
19480
20057
 
19481
20058
  function Search$1() {
19482
20059
  var controller = Invoice.useInvoiceController();
@@ -19565,8 +20142,8 @@ function Search$1() {
19565
20142
  });
19566
20143
  }
19567
20144
 
19568
- var css_248z$l = ".kts-invoice-operate-goods-list-itemName-drag-container-u {\n position: relative;\n}\n.kts-invoice-operate-goods-list-itemName-drag-container-u::after {\n content: \" \";\n width: 100%;\n height: 2px;\n background: #0074ff;\n position: absolute;\n left: 0;\n top: 0;\n z-index: 9999;\n}\n.kts-invoice-operate-goods-list-itemName-drag-container-d {\n position: relative;\n}\n.kts-invoice-operate-goods-list-itemName-drag-container-d::after {\n content: \" \";\n width: 100%;\n height: 2px;\n background: #0074ff;\n position: absolute;\n left: 0;\n bottom: 0;\n z-index: 9999;\n}\n";
19569
- styleInject(css_248z$l);
20145
+ var css_248z$m = ".kts-invoice-operate-goods-list-itemName-drag-container-u {\n position: relative;\n}\n.kts-invoice-operate-goods-list-itemName-drag-container-u::after {\n content: \" \";\n width: 100%;\n height: 2px;\n background: #0074ff;\n position: absolute;\n left: 0;\n top: 0;\n z-index: 9999;\n}\n.kts-invoice-operate-goods-list-itemName-drag-container-d {\n position: relative;\n}\n.kts-invoice-operate-goods-list-itemName-drag-container-d::after {\n content: \" \";\n width: 100%;\n height: 2px;\n background: #0074ff;\n position: absolute;\n left: 0;\n bottom: 0;\n z-index: 9999;\n}\n";
20146
+ styleInject(css_248z$m);
19570
20147
 
19571
20148
  function TableRow$1(props) {
19572
20149
  var rowKey = props['data-row-key'];
@@ -19618,16 +20195,16 @@ function TableRow$1(props) {
19618
20195
  }));
19619
20196
  }
19620
20197
 
19621
- var _g$2, _defs$4;
20198
+ var _g$3, _defs$5;
19622
20199
 
19623
- function _extends$b() { _extends$b = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$b.apply(this, arguments); }
20200
+ function _extends$c() { _extends$c = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$c.apply(this, arguments); }
19624
20201
 
19625
- function SvgPlus$1(props) {
19626
- return /*#__PURE__*/createElement("svg", _extends$b({
20202
+ function SvgPlus$2(props) {
20203
+ return /*#__PURE__*/createElement("svg", _extends$c({
19627
20204
  xmlns: "http://www.w3.org/2000/svg",
19628
20205
  width: 16,
19629
20206
  height: 15
19630
- }, props), _g$2 || (_g$2 = /*#__PURE__*/createElement("g", {
20207
+ }, props), _g$3 || (_g$3 = /*#__PURE__*/createElement("g", {
19631
20208
  clipPath: "url(#plus_svg__clip0_715_360)"
19632
20209
  }, /*#__PURE__*/createElement("path", {
19633
20210
  d: "M8 14.531A7.031 7.031 0 118 .468a7.031 7.031 0 010 14.063zm0-.937A6.094 6.094 0 108 1.406a6.094 6.094 0 000 12.188z"
@@ -19635,7 +20212,7 @@ function SvgPlus$1(props) {
19635
20212
  d: "M4.25 7.969a.469.469 0 010-.938h7.5a.47.47 0 010 .938h-7.5z"
19636
20213
  }), /*#__PURE__*/createElement("path", {
19637
20214
  d: "M7.531 3.75a.469.469 0 01.938 0v7.5a.47.47 0 01-.938 0v-7.5z"
19638
- }))), _defs$4 || (_defs$4 = /*#__PURE__*/createElement("defs", null, /*#__PURE__*/createElement("clipPath", {
20215
+ }))), _defs$5 || (_defs$5 = /*#__PURE__*/createElement("defs", null, /*#__PURE__*/createElement("clipPath", {
19639
20216
  id: "plus_svg__clip0_715_360"
19640
20217
  }, /*#__PURE__*/createElement("path", {
19641
20218
  transform: "translate(.5)",
@@ -19657,8 +20234,8 @@ var TitleText$1 = (function (props) {
19657
20234
  }, "*") : /*#__PURE__*/React.createElement(React.Fragment, null), children);
19658
20235
  });
19659
20236
 
19660
- var css_248z$m = ".kts-invoice-operate-goods-list-itemName-input {\n display: flex;\n flex: 1;\n padding-left: 0;\n height: 31px;\n}\n";
19661
- styleInject(css_248z$m);
20237
+ var css_248z$n = ".kts-invoice-operate-goods-list-itemName-input {\n display: flex;\n flex: 1;\n padding-left: 0;\n height: 31px;\n}\n";
20238
+ styleInject(css_248z$n);
19662
20239
 
19663
20240
  function ItemNameInput$1(props) {
19664
20241
  var controller = Invoice.useInvoiceController();
@@ -19870,10 +20447,10 @@ function ItemNameInput$1(props) {
19870
20447
 
19871
20448
  var _path$9;
19872
20449
 
19873
- function _extends$c() { _extends$c = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$c.apply(this, arguments); }
20450
+ function _extends$d() { _extends$d = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$d.apply(this, arguments); }
19874
20451
 
19875
- function SvgI001$2(props) {
19876
- return /*#__PURE__*/createElement("svg", _extends$c({
20452
+ function SvgI001$1(props) {
20453
+ return /*#__PURE__*/createElement("svg", _extends$d({
19877
20454
  className: "I001_svg__icon",
19878
20455
  viewBox: "0 0 1024 1024",
19879
20456
  xmlns: "http://www.w3.org/2000/svg",
@@ -19884,8 +20461,8 @@ function SvgI001$2(props) {
19884
20461
  })));
19885
20462
  }
19886
20463
 
19887
- var css_248z$n = ".kts-invoice-operate-goods-list-itemName-drag {\n cursor: all-scroll;\n}\n.kts-invoice-operate-goods-list-itemName-drag-div {\n z-index: 999;\n border: 1px solid #E6E6E6;\n width: 400px;\n height: 50px;\n display: flex;\n gap: 10px;\n align-items: center;\n position: fixed;\n padding: 0 20px;\n top: 100px;\n background: #fff;\n pointer-events: none;\n opacity: 0.4;\n}\n";
19888
- styleInject(css_248z$n);
20464
+ var css_248z$o = ".kts-invoice-operate-goods-list-itemName-drag {\n cursor: all-scroll;\n}\n.kts-invoice-operate-goods-list-itemName-drag-div {\n z-index: 999;\n border: 1px solid #E6E6E6;\n width: 400px;\n height: 50px;\n display: flex;\n gap: 10px;\n align-items: center;\n position: fixed;\n padding: 0 20px;\n top: 100px;\n background: #fff;\n pointer-events: none;\n opacity: 0.4;\n}\n";
20465
+ styleInject(css_248z$o);
19889
20466
 
19890
20467
  function Drag$2(props) {
19891
20468
  var record = props.record;
@@ -20180,7 +20757,7 @@ function Drag$2(props) {
20180
20757
  className: "kts-invoice-operate-goods-list-itemName-drag",
20181
20758
  onMouseOver: controller.saveEditGood
20182
20759
  }, /*#__PURE__*/React.createElement(Icon, {
20183
- component: SvgI001$2
20760
+ component: SvgI001$1
20184
20761
  }));
20185
20762
  }, [onMouseDown, controller]);
20186
20763
 
@@ -20443,7 +21020,7 @@ var useColumns$1 = (function (form) {
20443
21020
  fontSize: 20,
20444
21021
  fill: '#0074ff'
20445
21022
  },
20446
- icon: /*#__PURE__*/React.createElement(SvgPlus$1, null),
21023
+ icon: /*#__PURE__*/React.createElement(SvgPlus$2, null),
20447
21024
  onClick: controller.pipeline( /*#__PURE__*/function () {
20448
21025
  var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(s) {
20449
21026
  return _regeneratorRuntime().wrap(function _callee3$(_context3) {
@@ -20496,7 +21073,7 @@ var useColumns$1 = (function (form) {
20496
21073
  return /*#__PURE__*/React.createElement(Form.Item, null, getFieldDecorator('itemModelName', {
20497
21074
  initialValue: isMyShow ? editGood.itemModelNameSelf : editGood.itemModelName,
20498
21075
  rules: getReplenishRules('itemModelName')
20499
- })( /*#__PURE__*/React.createElement(MyInput$2, {
21076
+ })( /*#__PURE__*/React.createElement(MyInput$3, {
20500
21077
  onChange: function () {
20501
21078
  var _onChange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
20502
21079
  var key, value;
@@ -20648,7 +21225,7 @@ var useColumns$1 = (function (form) {
20648
21225
  return validator;
20649
21226
  }()
20650
21227
  }])
20651
- })( /*#__PURE__*/React.createElement(MyInput$2, {
21228
+ })( /*#__PURE__*/React.createElement(MyInput$3, {
20652
21229
  style: {
20653
21230
  textAlign: 'right'
20654
21231
  },
@@ -20743,7 +21320,7 @@ var useColumns$1 = (function (form) {
20743
21320
  return validator;
20744
21321
  }()
20745
21322
  }])
20746
- })( /*#__PURE__*/React.createElement(MyInput$2, {
21323
+ })( /*#__PURE__*/React.createElement(MyInput$3, {
20747
21324
  style: {
20748
21325
  textAlign: 'right'
20749
21326
  },
@@ -20818,7 +21395,7 @@ var useColumns$1 = (function (form) {
20818
21395
  return validator;
20819
21396
  }()
20820
21397
  }])
20821
- })( /*#__PURE__*/React.createElement(MyInput$2, {
21398
+ })( /*#__PURE__*/React.createElement(MyInput$3, {
20822
21399
  style: {
20823
21400
  textAlign: 'right'
20824
21401
  },
@@ -20907,7 +21484,7 @@ var useColumns$1 = (function (form) {
20907
21484
  return validator;
20908
21485
  }()
20909
21486
  }])
20910
- })( /*#__PURE__*/React.createElement(MyInput$2, {
21487
+ })( /*#__PURE__*/React.createElement(MyInput$3, {
20911
21488
  style: {
20912
21489
  textAlign: 'right'
20913
21490
  },
@@ -20970,7 +21547,7 @@ var useColumns$1 = (function (form) {
20970
21547
  return validator;
20971
21548
  }()
20972
21549
  }])
20973
- })( /*#__PURE__*/React.createElement(MyInput$2, {
21550
+ })( /*#__PURE__*/React.createElement(MyInput$3, {
20974
21551
  style: {
20975
21552
  textAlign: 'right'
20976
21553
  },
@@ -21104,7 +21681,7 @@ function isCipher$1(name, field) {
21104
21681
  return name !== field;
21105
21682
  }
21106
21683
 
21107
- var MyInput$2 = /*#__PURE__*/function (_React$Component) {
21684
+ var MyInput$3 = /*#__PURE__*/function (_React$Component) {
21108
21685
  _inherits(MyInput, _React$Component);
21109
21686
 
21110
21687
  var _super = _createSuper(MyInput);
@@ -22603,8 +23180,8 @@ var useEmptyRefill = (function () {
22603
23180
  };
22604
23181
  });
22605
23182
 
22606
- var css_248z$o = ".goods-list-digtal-reselect-invoice-typeModal-radio {\n width: 100%;\n display: flex !important;\n}\n.goods-list-digtal-reselect-invoice-typeModal-radio > label {\n flex: 1;\n}\n";
22607
- styleInject(css_248z$o);
23183
+ var css_248z$p = ".goods-list-digtal-reselect-invoice-typeModal-radio {\n width: 100%;\n display: flex !important;\n}\n.goods-list-digtal-reselect-invoice-typeModal-radio > label {\n flex: 1;\n}\n";
23184
+ styleInject(css_248z$p);
22608
23185
 
22609
23186
  function InvoiceTypeModal(props) {
22610
23187
  var _props$disableds = props.disableds,
@@ -22776,8 +23353,8 @@ var useReselectInvoiceType = (function () {
22776
23353
  };
22777
23354
  });
22778
23355
 
22779
- var css_248z$p = ".kts-invoice-operate-goods-list-digtal .goods-list-digtal-discount-tag {\n display: inline-block;\n height: 20px;\n line-height: 20px;\n border: 1px solid;\n padding: 0 5px;\n border-radius: 4px;\n}\n.kts-invoice-operate-goods-list-digtal .kts-invoice-operate-goods-list-table-tax-rate .ktsAnt3x-select-selection-selected-value {\n float: right;\n}\n.kts-invoice-operate-goods-list-digtal .kts-invoice-operate-goods-list-able {\n display: flex;\n padding: 10px;\n border-bottom: 2px solid #9F613E;\n gap: 10px;\n align-items: center;\n height: 48px;\n}\n.kts-invoice-operate-goods-list-digtal .ktsAntX-table .ktsAntX-table-row.kts-invoice-operate-goods-be-discount .ktsAntX-table-cell {\n color: #f00;\n}\n.kts-invoice-operate-goods-list-table-digtal .ktsAnt3x-form-item-control.has-error {\n border: 1px solid #f00;\n}\n.kts-invoice-operate-goods-list-table-digtal .kts-invoice-operate-goods-list-table.kts-invoice-operate-prefab .ktsAnt3x-table-row {\n color: rgba(0, 0, 0, 0.25);\n background: #f5f5f5;\n}\n.kts-invoice-operate-goods-list-table-digtal .kts-invoice-operate-goods-list-table-search-protrude {\n background: #ff0;\n color: #000;\n font-weight: bold;\n}\n";
22780
- styleInject(css_248z$p);
23356
+ var css_248z$q = ".kts-invoice-operate-goods-list-digtal .goods-list-digtal-discount-tag {\n display: inline-block;\n height: 20px;\n line-height: 20px;\n border: 1px solid;\n padding: 0 5px;\n border-radius: 4px;\n}\n.kts-invoice-operate-goods-list-digtal .kts-invoice-operate-goods-list-table-tax-rate .ktsAnt3x-select-selection-selected-value {\n float: right;\n}\n.kts-invoice-operate-goods-list-digtal .kts-invoice-operate-goods-list-able {\n display: flex;\n padding: 10px;\n border-bottom: 2px solid #9F613E;\n gap: 10px;\n align-items: center;\n height: 48px;\n}\n.kts-invoice-operate-goods-list-digtal .ktsAntX-table .ktsAntX-table-row.kts-invoice-operate-goods-be-discount .ktsAntX-table-cell {\n color: #f00;\n}\n.kts-invoice-operate-goods-list-table-digtal .ktsAnt3x-form-item-control.has-error {\n border: 1px solid #f00;\n}\n.kts-invoice-operate-goods-list-table-digtal .kts-invoice-operate-goods-list-table.kts-invoice-operate-prefab .ktsAnt3x-table-row {\n color: rgba(0, 0, 0, 0.25);\n background: #f5f5f5;\n}\n.kts-invoice-operate-goods-list-table-digtal .kts-invoice-operate-goods-list-table-search-protrude {\n background: #ff0;\n color: #000;\n font-weight: bold;\n}\n";
23357
+ styleInject(css_248z$q);
22781
23358
 
22782
23359
  var GoodsList$1 = /*#__PURE__*/function (_React$Component) {
22783
23360
  _inherits(GoodsList, _React$Component);
@@ -23032,8 +23609,8 @@ var Main$3 = decorator(Form.create())(function (props) {
23032
23609
  })), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Statistics$1, null)));
23033
23610
  });
23034
23611
 
23035
- var css_248z$q = ".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";
23036
- styleInject(css_248z$q);
23612
+ 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";
23613
+ styleInject(css_248z$r);
23037
23614
 
23038
23615
  var RangePicker = DatePicker.RangePicker;
23039
23616
  /** 特殊信息-不动产经营租赁服务 */
@@ -23649,8 +24226,8 @@ var getItemCode = function getItemCode(record, editGood) {
23649
24226
  return record.productCode;
23650
24227
  };
23651
24228
 
23652
- var css_248z$r = ".kts-invoice-operate-goods-endow-code-button-list {\n display: flex;\n flex-direction: column;\n}\n.kts-invoice-operate-goods-endow-code-button-list > button {\n margin-bottom: 10px;\n}\n";
23653
- styleInject(css_248z$r);
24229
+ var css_248z$s = ".kts-invoice-operate-goods-endow-code-button-list {\n display: flex;\n flex-direction: column;\n}\n.kts-invoice-operate-goods-endow-code-button-list > button {\n margin-bottom: 10px;\n}\n";
24230
+ styleInject(css_248z$s);
23654
24231
 
23655
24232
  var TreeNode = Tree.TreeNode;
23656
24233
  var confirm = Modal$1.confirm;
@@ -24851,6 +25428,8 @@ var Invoice = /*#__PURE__*/function (_React$PureComponent) {
24851
25428
 
24852
25429
  /** 干系人(数电) */
24853
25430
 
25431
+ /** 农产品干系人(数电) */
25432
+
24854
25433
  /** 落款(数电) */
24855
25434
 
24856
25435
  /** 特殊信息-不动产经营租赁服务(数电) */
@@ -24886,6 +25465,7 @@ Invoice.Sign = Sign;
24886
25465
  Invoice.Buyer = Buyer$1;
24887
25466
  Invoice.InvoiceHeaderDigtal = InvoiceHeaderDigtal;
24888
25467
  Invoice.Stakeholder = Stakeholder$1;
25468
+ Invoice.StakeFarmerholder = StakeFarmerholder;
24889
25469
  Invoice.SignDigtal = SignDigtal;
24890
25470
  Invoice.RealEstateInfo = RealEstateInfo;
24891
25471
  Invoice.GoodsListDigtal = GoodsList$1;