kts-component-invoice-operate 1.1.8 → 1.2.2

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.
@@ -12,6 +12,24 @@ export interface IFormItem {
12
12
  node: React.ReactNode;
13
13
  options: GetFieldDecoratorOptions;
14
14
  }
15
+ export interface IBuyerInfo {
16
+ /** 购买方名称 */
17
+ buyerName?: string;
18
+ /** 购买方纳税人识别号 */
19
+ buyerNo?: string;
20
+ /** 购买方地址及电话 */
21
+ buyerAddress?: string;
22
+ /** 购买方开户行及账号 */
23
+ buyerBank?: string;
24
+ }
25
+ /** 自动填充 */
26
+ export interface IAutoContainer {
27
+ /** 购买方变化 */
28
+ onBuyNameChange: (e?: string) => Promise<{
29
+ recent: IBuyerInfo[];
30
+ list: IBuyerInfo[];
31
+ }>;
32
+ }
15
33
  export default class BuyerState {
16
34
  /** 表头 */
17
35
  columns: ColumnProps<any>[];
@@ -25,4 +43,6 @@ export default class BuyerState {
25
43
  isVisibleDrawer: boolean;
26
44
  /** 顶部扩展 */
27
45
  topExpand?: React.ReactNode;
46
+ /** 自动填充 */
47
+ autoContainer?: IAutoContainer;
28
48
  }
@@ -0,0 +1,2 @@
1
+ declare const _default: () => JSX.Element;
2
+ export default _default;
@@ -0,0 +1,6 @@
1
+ export interface IBuyerNameInputProps {
2
+ value?: string;
3
+ onChange?: (e: string) => void;
4
+ }
5
+ declare const _default: (props: IBuyerNameInputProps) => JSX.Element;
6
+ export default _default;
package/dist/index.esm.js CHANGED
@@ -2,7 +2,7 @@ import 'kts-components-antd-x3/dist/kts-components-antd-x3.css';
2
2
  import React, { createElement } from 'react';
3
3
  import GreyReactBox, { decorator } from 'grey-react-box';
4
4
  import { chain as chain$1, bignumber, create, all } from 'mathjs';
5
- import { message, Form, Input, Icon, Tag, Select, Row, Col, Table, Button, Switch, Typography, Drawer, Menu, Dropdown, AutoComplete, Spin, Checkbox, Descriptions, Tree, Modal } from 'kts-components-antd-x3';
5
+ import { message, Form, Input, Icon, Tag, Select, Row, Col, Table, Button, Switch, Typography, Drawer, Menu, Dropdown, AutoComplete, Spin, Checkbox, Descriptions, Divider, Popover, Tree, Modal } from 'kts-components-antd-x3';
6
6
  import { v4 } from 'uuid';
7
7
  import classnames from 'classnames';
8
8
  import { Input as Input$1, NumberPicker } from '@formily/antd-components';
@@ -711,6 +711,7 @@ var BuyerState = function BuyerState() {
711
711
  this.pagination = {};
712
712
  this.isVisibleDrawer = false;
713
713
  this.topExpand = void 0;
714
+ this.autoContainer = void 0;
714
715
  };
715
716
 
716
717
  var InvoiceControllerState = function InvoiceControllerState() {
@@ -5042,7 +5043,232 @@ var ImportBuyerButton = (function () {
5042
5043
  }));
5043
5044
  });
5044
5045
 
5045
- var css_248z$9 = ".kts-invoice-operate-buyer {\n display: flex;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-message {\n flex: 1;\n display: flex;\n position: relative;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-message .ktsAnt3x-descriptions-item-label {\n width: 179px;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-message .kts-invoice-operate-buyer-message-list {\n width: 100%;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-message .kts-invoice-operate-buyer-message-list .ktsAnt3x-descriptions-view {\n border: none;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-message .kts-invoice-operate-buyer-message-list .ktsAnt3x-descriptions-item-label {\n padding: 0 10px;\n font-size: 12px;\n background-color: #fff;\n line-height: 30px;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-message .kts-invoice-operate-buyer-message-list .ktsAnt3x-descriptions-item-content {\n padding: 0;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-message .kts-invoice-operate-buyer-message-list .ktsAnt3x-descriptions-item-content .ktsAnt3x-input {\n box-shadow: none;\n border-color: #fff;\n border-radius: 0;\n padding: 0 10px;\n font-size: 12px;\n line-height: 30px;\n width: 100%;\n height: 100%;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-message .kts-invoice-operate-buyer-message-list .ktsAnt3x-descriptions-item-content .ktsAnt3x-input:hover {\n border: 1 solid;\n border-color: #40a9ff;\n border-right-width: 1px !important;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-message .kts-invoice-operate-buyer-message-list .ktsAnt3x-descriptions-item-content .has-error .ktsAnt3x-input,\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-message .kts-invoice-operate-buyer-message-list .ktsAnt3x-descriptions-item-content .has-error .ktsAnt3x-input:hover {\n background-color: #fff;\n border: 1 solid;\n border-color: #f5222d;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-message .kts-invoice-operate-buyer-message-list .ktsAnt3x-form-item {\n margin: 0;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-message .kts-invoice-operate-buyer-message-list .ktsAnt3x-form-item-control {\n line-height: 0;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-message .kts-invoice-operate-buyer-message-list .ktsAnt3x-form-item-children {\n height: 30px;\n display: block;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-message .kts-invoice-operate-buyer-message-list .ktsAnt3x-form-item-children .ktsAnt3x-btn {\n line-height: 0;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-message .kts-invoice-operate-buyer-message-list .ktsAnt3x-form-explain {\n position: absolute;\n left: 5px;\n top: 6px;\n z-index: 10;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-message .kts-invoice-operate-buyer-message-Import {\n position: absolute;\n right: 0px;\n top: 0px;\n z-index: 10;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-password {\n border-left: 1px solid #dcdcdc;\n display: flex;\n flex: none;\n width: 458px;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-title {\n flex: none;\n width: 30px;\n height: 100%;\n text-align: center;\n border-right: 1px solid #dcdcdc;\n display: table;\n padding: 0 5px;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-title label {\n display: table-cell;\n vertical-align: middle;\n}\n";
5046
+ var BuyerNameInput = (function (props) {
5047
+ /** 控制器 */
5048
+ var controller = default_1.useInvoiceController();
5049
+ /** 组件模式 */
5050
+
5051
+ var model = controller.useMemo(function (s) {
5052
+ return s.model;
5053
+ }, []);
5054
+ /** 是否显示 */
5055
+
5056
+ var _React$useState = React.useState(false),
5057
+ _React$useState2 = _slicedToArray(_React$useState, 2),
5058
+ visible = _React$useState2[0],
5059
+ setVisible = _React$useState2[1];
5060
+ /** 自动填充 */
5061
+
5062
+
5063
+ var autoContainer = controller.useMemo(function (s) {
5064
+ return s.buyerState.autoContainer;
5065
+ }, []);
5066
+ /** 自动填充数据 */
5067
+
5068
+ var _useDataSource = useDataSource(),
5069
+ dataSource = _useDataSource.dataSource,
5070
+ onBuyNameChange = _useDataSource.onBuyNameChange,
5071
+ loading = _useDataSource.loading;
5072
+ /** 悬浮内容 */
5073
+
5074
+
5075
+ var content = React.useMemo(function () {
5076
+ return /*#__PURE__*/React.createElement("div", {
5077
+ className: 'kts-invoice-operate-buyer-name-content'
5078
+ }, loading ? /*#__PURE__*/React.createElement("div", {
5079
+ style: {
5080
+ textAlign: 'center'
5081
+ }
5082
+ }, /*#__PURE__*/React.createElement(Spin, null)) : /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
5083
+ className: 'kts-invoice-operate-buyer-name-content-block',
5084
+ style: {
5085
+ padding: '14px 10px'
5086
+ }
5087
+ }, /*#__PURE__*/React.createElement("label", {
5088
+ style: {
5089
+ marginBottom: 10
5090
+ }
5091
+ }, "\u6700\u8FD1\u5F00\u5177"), /*#__PURE__*/React.createElement("ul", {
5092
+ className: 'kts-invoice-operate-buyer-name-content-recently-issued'
5093
+ }, dataSource.recent.map(function (e, i) {
5094
+ return /*#__PURE__*/React.createElement("li", {
5095
+ key: i,
5096
+ onClick: function onClick() {
5097
+ onClickItem(e);
5098
+ },
5099
+ style: {
5100
+ marginBottom: interval(i, dataSource.recent.length)
5101
+ }
5102
+ }, /*#__PURE__*/React.createElement(MyTag, null, e.buyerName));
5103
+ }))), /*#__PURE__*/React.createElement(Divider, {
5104
+ style: {
5105
+ margin: "0 6px"
5106
+ }
5107
+ }), /*#__PURE__*/React.createElement("div", {
5108
+ className: 'kts-invoice-operate-buyer-name-content-block',
5109
+ style: {
5110
+ padding: '14px 10px 4px'
5111
+ }
5112
+ }, /*#__PURE__*/React.createElement("label", {
5113
+ style: {
5114
+ padding: '0 10px'
5115
+ }
5116
+ }, "\u9009\u62E9\u516C\u53F8"), dataSource.list.map(function (e, i) {
5117
+ return /*#__PURE__*/React.createElement("ul", {
5118
+ key: i,
5119
+ onClick: function onClick() {
5120
+ onClickItem(e);
5121
+ },
5122
+ className: 'kts-invoice-operate-buyer-name-content-select-company'
5123
+ }, /*#__PURE__*/React.createElement("li", null, e.buyerName), /*#__PURE__*/React.createElement("li", null, e.buyerAddress));
5124
+ }))));
5125
+ }, [dataSource, loading]);
5126
+ /** 点击了选择项 */
5127
+
5128
+ var onClickItem = React.useCallback( /*#__PURE__*/function () {
5129
+ var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(e) {
5130
+ var _controller$formList$;
5131
+
5132
+ return regeneratorRuntime.wrap(function _callee$(_context) {
5133
+ while (1) {
5134
+ switch (_context.prev = _context.next) {
5135
+ case 0:
5136
+ (_controller$formList$ = controller.formList.get('buyer')) === null || _controller$formList$ === void 0 ? void 0 : _controller$formList$.setFieldsValue(e);
5137
+ setVisible(false);
5138
+
5139
+ case 2:
5140
+ case "end":
5141
+ return _context.stop();
5142
+ }
5143
+ }
5144
+ }, _callee);
5145
+ }));
5146
+
5147
+ return function (_x) {
5148
+ return _ref.apply(this, arguments);
5149
+ };
5150
+ }(), [controller]);
5151
+ /** 输入框数据改变 */
5152
+
5153
+ var onChangeInput = React.useCallback(function (e) {
5154
+ props.onChange && props.onChange(e.target.value);
5155
+ onBuyNameChange(e.target.value);
5156
+ }, [dataSource]);
5157
+ React.useEffect(function () {
5158
+ visible && onBuyNameChange(props.value);
5159
+ }, [visible, props.value]);
5160
+
5161
+ if (model === 'prefab' || !autoContainer) {
5162
+ return /*#__PURE__*/React.createElement(Input, {
5163
+ size: "small",
5164
+ autoComplete: "off",
5165
+ value: props.value,
5166
+ readOnly: model === 'prefab',
5167
+ onChange: function onChange(e) {
5168
+ props.onChange && props.onChange(e.target.value);
5169
+ }
5170
+ });
5171
+ }
5172
+
5173
+ return /*#__PURE__*/React.createElement(Popover, {
5174
+ onVisibleChange: setVisible,
5175
+ overlayClassName: 'kts-invoice-operate-buyer-name-popover',
5176
+ placement: "bottomLeft",
5177
+ trigger: "click",
5178
+ visible: visible,
5179
+ content: content
5180
+ }, /*#__PURE__*/React.createElement(Input, {
5181
+ size: "small",
5182
+ autoComplete: "off",
5183
+ value: props.value,
5184
+ onChange: onChangeInput
5185
+ }));
5186
+ });
5187
+ /** 获取自动填充数据 */
5188
+
5189
+ function useDataSource() {
5190
+ /** 控制器 */
5191
+ var controller = default_1.useInvoiceController();
5192
+
5193
+ var _React$useState3 = React.useState(false),
5194
+ _React$useState4 = _slicedToArray(_React$useState3, 2),
5195
+ loading = _React$useState4[0],
5196
+ setLoading = _React$useState4[1];
5197
+
5198
+ var _React$useState5 = React.useState({
5199
+ recent: [],
5200
+ list: []
5201
+ }),
5202
+ _React$useState6 = _slicedToArray(_React$useState5, 2),
5203
+ dataSource = _React$useState6[0],
5204
+ setDataSource = _React$useState6[1];
5205
+
5206
+ var autoContainer = controller.useMemo(function (s) {
5207
+ return s.buyerState.autoContainer;
5208
+ }, []);
5209
+ var onBuyNameChange = React.useCallback( /*#__PURE__*/function () {
5210
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2(e) {
5211
+ return regeneratorRuntime.wrap(function _callee2$(_context2) {
5212
+ while (1) {
5213
+ switch (_context2.prev = _context2.next) {
5214
+ case 0:
5215
+ if (autoContainer) {
5216
+ _context2.next = 2;
5217
+ break;
5218
+ }
5219
+
5220
+ return _context2.abrupt("return");
5221
+
5222
+ case 2:
5223
+ setLoading(true);
5224
+ _context2.t0 = setDataSource;
5225
+ _context2.next = 6;
5226
+ return autoContainer.onBuyNameChange(e);
5227
+
5228
+ case 6:
5229
+ _context2.t1 = _context2.sent;
5230
+ (0, _context2.t0)(_context2.t1);
5231
+ setLoading(false);
5232
+
5233
+ case 9:
5234
+ case "end":
5235
+ return _context2.stop();
5236
+ }
5237
+ }
5238
+ }, _callee2);
5239
+ }));
5240
+
5241
+ return function (_x2) {
5242
+ return _ref2.apply(this, arguments);
5243
+ };
5244
+ }(), [autoContainer]);
5245
+ return {
5246
+ /** 购买方变化 */
5247
+ onBuyNameChange: onBuyNameChange,
5248
+
5249
+ /** 获取自动填充数据 */
5250
+ dataSource: dataSource,
5251
+
5252
+ /** 加载中 */
5253
+ loading: loading
5254
+ };
5255
+ }
5256
+
5257
+ function MyTag(props) {
5258
+ return /*#__PURE__*/React.createElement("span", {
5259
+ className: 'kts-invoice-operate-buyer-name-content-tag'
5260
+ }, props.children);
5261
+ }
5262
+
5263
+ function interval(i, t) {
5264
+ if (t % 2 === 0) {
5265
+ return i > t - 3 ? 0 : 20;
5266
+ } else {
5267
+ return i > t - 2 ? 0 : 20;
5268
+ }
5269
+ }
5270
+
5271
+ var css_248z$9 = ".kts-invoice-operate-buyer {\n display: flex;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-message {\n flex: 1;\n display: flex;\n position: relative;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-message .ktsAnt3x-descriptions-item-label {\n width: 179px;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-message .kts-invoice-operate-buyer-message-list {\n width: 100%;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-message .kts-invoice-operate-buyer-message-list .ktsAnt3x-descriptions-view {\n border: none;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-message .kts-invoice-operate-buyer-message-list .ktsAnt3x-descriptions-item-label {\n padding: 0 10px;\n font-size: 12px;\n background-color: #fff;\n line-height: 30px;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-message .kts-invoice-operate-buyer-message-list .ktsAnt3x-descriptions-item-content {\n padding: 0;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-message .kts-invoice-operate-buyer-message-list .ktsAnt3x-descriptions-item-content .ktsAnt3x-input {\n box-shadow: none;\n border-color: #fff;\n border-radius: 0;\n padding: 0 10px;\n font-size: 12px;\n line-height: 30px;\n width: 100%;\n height: 100%;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-message .kts-invoice-operate-buyer-message-list .ktsAnt3x-descriptions-item-content .ktsAnt3x-input:hover {\n border: 1 solid;\n border-color: #40a9ff;\n border-right-width: 1px !important;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-message .kts-invoice-operate-buyer-message-list .ktsAnt3x-descriptions-item-content .has-error .ktsAnt3x-input,\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-message .kts-invoice-operate-buyer-message-list .ktsAnt3x-descriptions-item-content .has-error .ktsAnt3x-input:hover {\n background-color: #fff;\n border: 1 solid;\n border-color: #f5222d;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-message .kts-invoice-operate-buyer-message-list .ktsAnt3x-form-item {\n margin: 0;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-message .kts-invoice-operate-buyer-message-list .ktsAnt3x-form-item-control {\n line-height: 0;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-message .kts-invoice-operate-buyer-message-list .ktsAnt3x-form-item-children {\n height: 30px;\n display: block;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-message .kts-invoice-operate-buyer-message-list .ktsAnt3x-form-item-children .ktsAnt3x-btn {\n line-height: 0;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-message .kts-invoice-operate-buyer-message-list .ktsAnt3x-form-explain {\n position: absolute;\n left: 5px;\n top: 6px;\n z-index: 10;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-message .kts-invoice-operate-buyer-message-Import {\n position: absolute;\n right: 0px;\n top: 0px;\n z-index: 10;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-password {\n border-left: 1px solid #dcdcdc;\n display: flex;\n flex: none;\n width: 458px;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-title {\n flex: none;\n width: 30px;\n height: 100%;\n text-align: center;\n border-right: 1px solid #dcdcdc;\n display: table;\n padding: 0 5px;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-title label {\n display: table-cell;\n vertical-align: middle;\n}\n.ktsAnt3x-popover.kts-invoice-operate-buyer-name-popover {\n padding-top: 0;\n}\n.ktsAnt3x-popover.kts-invoice-operate-buyer-name-popover .ktsAnt3x-popover-inner-content {\n padding: 6px 0;\n display: flex;\n flex-direction: column;\n max-height: 400px;\n overflow-y: auto;\n overflow-x: hidden;\n}\n.ktsAnt3x-popover.kts-invoice-operate-buyer-name-popover .ktsAnt3x-popover-arrow {\n display: none;\n}\n.ktsAnt3x-popover.kts-invoice-operate-buyer-name-popover .kts-invoice-operate-buyer-name-content {\n width: 567px;\n}\n.ktsAnt3x-popover.kts-invoice-operate-buyer-name-popover .kts-invoice-operate-buyer-name-content .kts-invoice-operate-buyer-name-content-block {\n padding: 14px 0;\n}\n.ktsAnt3x-popover.kts-invoice-operate-buyer-name-popover .kts-invoice-operate-buyer-name-content .kts-invoice-operate-buyer-name-content-block label {\n display: block;\n font-size: 12px;\n color: #666666;\n}\n.ktsAnt3x-popover.kts-invoice-operate-buyer-name-popover .kts-invoice-operate-buyer-name-content .kts-invoice-operate-buyer-name-content-recently-issued {\n padding: 0;\n margin: 0;\n}\n.ktsAnt3x-popover.kts-invoice-operate-buyer-name-popover .kts-invoice-operate-buyer-name-content .kts-invoice-operate-buyer-name-content-recently-issued li {\n list-style: none;\n width: 50%;\n float: left;\n margin-bottom: 20px;\n}\n.ktsAnt3x-popover.kts-invoice-operate-buyer-name-popover .kts-invoice-operate-buyer-name-content .kts-invoice-operate-buyer-name-content-recently-issued::after {\n content: \".\";\n display: block;\n height: 0;\n clear: left;\n visibility: hidden;\n}\n.ktsAnt3x-popover.kts-invoice-operate-buyer-name-popover .kts-invoice-operate-buyer-name-content .kts-invoice-operate-buyer-name-content-select-company {\n padding: 0;\n margin: 0;\n font-size: 12px;\n padding: 10px;\n font-weight: bold;\n color: #000000;\n cursor: pointer;\n transition: background 0.4s;\n}\n.ktsAnt3x-popover.kts-invoice-operate-buyer-name-popover .kts-invoice-operate-buyer-name-content .kts-invoice-operate-buyer-name-content-select-company:hover {\n background: #e6e6e6e6;\n}\n.ktsAnt3x-popover.kts-invoice-operate-buyer-name-popover .kts-invoice-operate-buyer-name-content .kts-invoice-operate-buyer-name-content-select-company:last-child {\n margin-bottom: 0;\n}\n.ktsAnt3x-popover.kts-invoice-operate-buyer-name-popover .kts-invoice-operate-buyer-name-content .kts-invoice-operate-buyer-name-content-select-company li {\n list-style: none;\n width: 50%;\n float: left;\n}\n.ktsAnt3x-popover.kts-invoice-operate-buyer-name-popover .kts-invoice-operate-buyer-name-content .kts-invoice-operate-buyer-name-content-select-company::after {\n content: \".\";\n display: block;\n height: 0;\n clear: left;\n visibility: hidden;\n}\n.ktsAnt3x-popover.kts-invoice-operate-buyer-name-popover .kts-invoice-operate-buyer-name-content-tag {\n line-height: 1;\n padding: 4px 12px;\n background: #F3F3F3;\n border-radius: 9999px;\n font-size: 12px;\n font-weight: bold;\n color: #000;\n cursor: pointer;\n transition: background 0.4s;\n}\n.ktsAnt3x-popover.kts-invoice-operate-buyer-name-popover .kts-invoice-operate-buyer-name-content-tag:hover {\n background: #e6e6e6e6;\n}\n";
5046
5272
  styleInject(css_248z$9);
5047
5273
 
5048
5274
  var Text$5 = Typography.Text;
@@ -5083,6 +5309,11 @@ var Main$2 = decorator(Form.create())(function (props) {
5083
5309
  var model = controller.useMemo(function (s) {
5084
5310
  return s.model;
5085
5311
  }, []);
5312
+ /** 自动填充 */
5313
+
5314
+ var autoContainer = controller.useMemo(function (s) {
5315
+ return s.buyerState.autoContainer;
5316
+ }, []);
5086
5317
  var formItem = React.useMemo(function () {
5087
5318
  if (props.formItem) {
5088
5319
  return props.formItem;
@@ -5092,6 +5323,7 @@ var Main$2 = decorator(Form.create())(function (props) {
5092
5323
  label: '购买方名称',
5093
5324
  node: /*#__PURE__*/React.createElement(Input, {
5094
5325
  size: "small",
5326
+ autoComplete: "off",
5095
5327
  readOnly: model === 'prefab'
5096
5328
  }),
5097
5329
  options: {
@@ -5105,6 +5337,7 @@ var Main$2 = decorator(Form.create())(function (props) {
5105
5337
  label: '购买方纳税人识别号',
5106
5338
  node: /*#__PURE__*/React.createElement(Input, {
5107
5339
  size: "small",
5340
+ autoComplete: "off",
5108
5341
  readOnly: model === 'prefab'
5109
5342
  }),
5110
5343
  options: {
@@ -5118,6 +5351,7 @@ var Main$2 = decorator(Form.create())(function (props) {
5118
5351
  label: '购买方地址及电话',
5119
5352
  node: /*#__PURE__*/React.createElement(Input, {
5120
5353
  size: "small",
5354
+ autoComplete: "off",
5121
5355
  readOnly: model === 'prefab'
5122
5356
  }),
5123
5357
  options: {
@@ -5131,6 +5365,7 @@ var Main$2 = decorator(Form.create())(function (props) {
5131
5365
  label: '购买方开户行及账号',
5132
5366
  node: /*#__PURE__*/React.createElement(Input, {
5133
5367
  size: "small",
5368
+ autoComplete: "off",
5134
5369
  readOnly: model === 'prefab'
5135
5370
  }),
5136
5371
  options: {
@@ -5177,7 +5412,7 @@ var Main$2 = decorator(Form.create())(function (props) {
5177
5412
  return /*#__PURE__*/React.createElement(Descriptions.Item, {
5178
5413
  key: i,
5179
5414
  label: getlabel(item)
5180
- }, /*#__PURE__*/React.createElement(Form.Item, null, getFieldDecorator(item.id, item.options)(item.node)));
5415
+ }, /*#__PURE__*/React.createElement(Form.Item, null, getFieldDecorator(item.id, item.options)(autoContainer ? item.id === 'buyerName' ? /*#__PURE__*/React.createElement(BuyerNameInput, null) : item.node : item.node)));
5181
5416
  }))), /*#__PURE__*/React.createElement("div", {
5182
5417
  className: "kts-invoice-operate-buyer-password"
5183
5418
  }, /*#__PURE__*/React.createElement("div", {
@@ -6377,15 +6612,15 @@ var Main$3 = function Main(props) {
6377
6612
  }, /*#__PURE__*/React.createElement("div", {
6378
6613
  className: "kts-invoice-operate"
6379
6614
  }, props.invoiceHeader || /*#__PURE__*/React.createElement(InvoiceHeader, null)
6380
- /** 发票头 */
6615
+ /** 发票头 */
6381
6616
  , props.buyer || /*#__PURE__*/React.createElement(Buyer$1, null)
6382
- /** 购买方 */
6617
+ /** 购买方 */
6383
6618
  , props.goodsList || /*#__PURE__*/React.createElement(GoodsList, null)
6384
- /** 货物列表 */
6619
+ /** 货物列表 */
6385
6620
  , props.seller || /*#__PURE__*/React.createElement(Buyer, null)
6386
- /** 销售方 */
6621
+ /** 销售方 */
6387
6622
  , props.sign || /*#__PURE__*/React.createElement(Sign, null)
6388
- /** 落款 */
6623
+ /** 落款 */
6389
6624
  , props.footExpand), /*#__PURE__*/React.createElement(ImportBuyerDrawer, null), /*#__PURE__*/React.createElement(ImportGoodsDrawer, null), /*#__PURE__*/React.createElement(EndowCodeDrawer, null));
6390
6625
  };
6391
6626