kts-component-invoice-operate 3.2.153 → 3.2.154

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 (26) hide show
  1. package/dist/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/IGood/index.d.ts +4 -0
  2. package/dist/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/index.d.ts +2 -0
  3. package/dist/Invoice/_test/children/index.d.ts +4 -0
  4. package/dist/Invoice/ui/default/GoodsList/hook/useColumns/ui/Expand/index.d.ts +6 -0
  5. package/dist/Invoice/ui/default/GoodsList/hook/useRowSelection/index.d.ts +6 -0
  6. package/dist/index.esm.js +253 -60
  7. package/dist/index.js +252 -59
  8. package/docs-dist/static/I001.4ff48f20.svg +1 -0
  9. package/docs-dist/static/I002.38b94da1.svg +1 -0
  10. package/docs-dist/umi.css +1 -1
  11. package/docs-dist/umi.js +1 -1
  12. package/package.json +1 -1
  13. package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/IGood/index.ts +6 -0
  14. package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/index.ts +3 -0
  15. package/src/Invoice/InvoiceController/fns/saveEditGood.ts +1 -1
  16. package/src/Invoice/_test/children/index.tsx +203 -0
  17. package/src/Invoice/index.md +3 -0
  18. package/src/Invoice/ui/default/GoodsList/hook/useColumns/index.tsx +14 -1
  19. package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/Expand/index.tsx +53 -0
  20. package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/Expand/svg/I001.svg +1 -0
  21. package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/Expand/svg/I002.svg +1 -0
  22. package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/RowMenu/index.tsx +1 -0
  23. package/src/Invoice/ui/default/GoodsList/hook/useOnRow/index.tsx +1 -0
  24. package/src/Invoice/ui/default/GoodsList/hook/useRowSelection/index.tsx +8 -2
  25. package/src/Invoice/ui/default/GoodsList/index.less +8 -1
  26. package/src/Invoice/ui/default/GoodsList/ui/TableVirtual/index.tsx +35 -12
package/dist/index.js CHANGED
@@ -1120,6 +1120,7 @@ var GoodsListState = /*#__PURE__*/_createClass(function GoodsListState() {
1120
1120
  this.searchValue = '';
1121
1121
  this.goodsList = [];
1122
1122
  this.goodsMap = new Map();
1123
+ this.expandedRowKeys = [];
1123
1124
  this.goodsMenuExpand = [];
1124
1125
  this.amountIncludeTax = void 0;
1125
1126
  this.amountExcludeTax = void 0;
@@ -10057,7 +10058,12 @@ var css_248z$2 = ".kts-invoice-operate-goods-table-virtual .ktsAntX-table-body {
10057
10058
  styleInject(css_248z$2);
10058
10059
 
10059
10060
  function TableVirtual (props) {
10060
- var _props$dataSource2;
10061
+ var _props$dataSource;
10062
+
10063
+ var controller = Invoice.useInvoiceController();
10064
+ var expandedRowKeys = controller.useMemo(function (s) {
10065
+ return s.goodsListState.expandedRowKeys;
10066
+ }, []);
10061
10067
 
10062
10068
  var _React$useState = React__default['default'].useState(null),
10063
10069
  _React$useState2 = _slicedToArray(_React$useState, 2),
@@ -10096,14 +10102,39 @@ function TableVirtual (props) {
10096
10102
  }
10097
10103
 
10098
10104
  return placeholder;
10099
- }, [self, tableBody]); // 设置占位dom的搞
10105
+ }, [self, tableBody]);
10106
+ /** 处理扩展行 */
10107
+
10108
+ var goodsList = React__default['default'].useMemo(function () {
10109
+ if (!props.dataSource) return [];
10110
+ var gl = props.dataSource.map(function (e) {
10111
+ return _objectSpread2(_objectSpread2({}, e), {}, {
10112
+ level: 0
10113
+ });
10114
+ });
10115
+
10116
+ for (var i = 0; i < gl.length; i++) {
10117
+ var e = gl[i];
10118
+
10119
+ if (expandedRowKeys.includes(e.$index) && e.children) {
10120
+ var c = e.children.map(function (t) {
10121
+ return _objectSpread2(_objectSpread2({}, t), {}, {
10122
+ level: 1
10123
+ });
10124
+ });
10125
+ gl.splice.apply(gl, [i + 1, 0].concat(_toConsumableArray(c)));
10126
+ }
10127
+ }
10128
+
10129
+ return gl;
10130
+ }, [props.dataSource, expandedRowKeys]); // 设置占位dom的搞
10100
10131
 
10101
10132
  var placeholderHeight = React__default['default'].useMemo(function () {
10102
- if (!self || !rowHeight || !props.dataSource || !placeholder) return;
10103
- var placeholderHeight = rowHeight * props.dataSource.length;
10133
+ if (!self || !rowHeight || !goodsList || !placeholder) return;
10134
+ var placeholderHeight = rowHeight * goodsList.length;
10104
10135
  placeholder.style.height = "".concat(placeholderHeight, "px");
10105
10136
  return placeholderHeight;
10106
- }, [self, rowHeight, props.dataSource, placeholder]);
10137
+ }, [self, rowHeight, goodsList, placeholder]);
10107
10138
  /** 可以容纳的行数 */
10108
10139
 
10109
10140
  var rowSize = React__default['default'].useMemo(function () {
@@ -10112,20 +10143,17 @@ function TableVirtual (props) {
10112
10143
  }, [tableBody, rowHeight, placeholderHeight]); // 计算渲染的行
10113
10144
 
10114
10145
  var dataSource = React__default['default'].useMemo(function () {
10115
- var _props$dataSource;
10116
-
10117
- if (!props.dataSource) return [];
10118
- if (props.dataSource.length < 10) return props.dataSource;
10119
- if (!rowSize) return [props.dataSource[0]];
10120
- return (_props$dataSource = props.dataSource) === null || _props$dataSource === void 0 ? void 0 : _props$dataSource.slice(pointer, pointer + 2 * rowSize);
10121
- }, [props.dataSource, pointer, rowSize]); // 监听滚动
10146
+ if (goodsList.length < 10) return goodsList;
10147
+ if (!rowSize) return [goodsList[0]];
10148
+ return goodsList === null || goodsList === void 0 ? void 0 : goodsList.slice(pointer, pointer + 2 * rowSize);
10149
+ }, [pointer, rowSize, goodsList]); // 监听滚动
10122
10150
 
10123
10151
  React__default['default'].useEffect(function () {
10124
- if (!self || !placeholder || !props.dataSource || !rowHeight || !tableBody) return;
10152
+ if (!self || !placeholder || !goodsList || !rowHeight || !tableBody) return;
10125
10153
 
10126
10154
  var onScroll = function onScroll() {
10127
- if (!props.dataSource || !tableBody) return;
10128
- setPointer(Math.floor((props.dataSource.length - rowSize) * (tableBody.scrollTop / (placeholder.clientHeight - tableBody.clientHeight))));
10155
+ if (!goodsList || !tableBody) return;
10156
+ setPointer(Math.floor((goodsList.length - rowSize) * (tableBody.scrollTop / (placeholder.clientHeight - tableBody.clientHeight))));
10129
10157
  };
10130
10158
 
10131
10159
  onScroll();
@@ -10133,7 +10161,7 @@ function TableVirtual (props) {
10133
10161
  return function () {
10134
10162
  tableBody.removeEventListener('scroll', onScroll);
10135
10163
  };
10136
- }, [self, placeholder, props.dataSource, rowHeight, rowSize]); // 移动列表
10164
+ }, [self, placeholder, goodsList, rowHeight, rowSize]); // 移动列表
10137
10165
 
10138
10166
  React__default['default'].useEffect(function () {
10139
10167
  if (!self) return;
@@ -10146,7 +10174,8 @@ function TableVirtual (props) {
10146
10174
  var cont = self.querySelector('.kts-invoice-operate-goods-table-virtual .ktsAntX-table-body');
10147
10175
  if (!cont) return;
10148
10176
  cont.scrollTop = 0;
10149
- }, [(_props$dataSource2 = props.dataSource) === null || _props$dataSource2 === void 0 ? void 0 : _props$dataSource2.length]);
10177
+ }, [(_props$dataSource = props.dataSource) === null || _props$dataSource === void 0 ? void 0 : _props$dataSource.length]);
10178
+ console.log('===> pointer', pointer, dataSource);
10150
10179
  return /*#__PURE__*/React__default['default'].createElement("span", {
10151
10180
  className: "kts-invoice-operate-goods-table-virtual",
10152
10181
  ref: function ref(e) {
@@ -11161,6 +11190,10 @@ var RowMenu = (function (props) {
11161
11190
  }));
11162
11191
  }, [itemList]);
11163
11192
 
11193
+ if (props.goods.level && props.goods.level > 0) {
11194
+ return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null);
11195
+ }
11196
+
11164
11197
  if (itemList.length === 0) {
11165
11198
  return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null);
11166
11199
  }
@@ -13019,6 +13052,129 @@ function DragDiv(props) {
13019
13052
  }, /*#__PURE__*/React__default['default'].createElement("span", null, props.itemName), /*#__PURE__*/React__default['default'].createElement("span", null, props.itemModelName), /*#__PURE__*/React__default['default'].createElement("span", null, props.unit));
13020
13053
  }
13021
13054
 
13055
+ var _path$4, _path2$1, _path3$1;
13056
+
13057
+ 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); }
13058
+
13059
+ function SvgI001$1(props) {
13060
+ return /*#__PURE__*/React.createElement("svg", _extends$4({
13061
+ className: "I001_svg__icon",
13062
+ viewBox: "0 0 1024 1024",
13063
+ xmlns: "http://www.w3.org/2000/svg",
13064
+ width: 200,
13065
+ height: 200
13066
+ }, props), _path$4 || (_path$4 = /*#__PURE__*/React.createElement("path", {
13067
+ 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"
13068
+ })), _path2$1 || (_path2$1 = /*#__PURE__*/React.createElement("path", {
13069
+ 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"
13070
+ })), _path3$1 || (_path3$1 = /*#__PURE__*/React.createElement("path", {
13071
+ 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"
13072
+ })));
13073
+ }
13074
+
13075
+ var _path$5, _path2$2;
13076
+
13077
+ 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); }
13078
+
13079
+ function SvgI002(props) {
13080
+ return /*#__PURE__*/React.createElement("svg", _extends$5({
13081
+ className: "I002_svg__icon",
13082
+ viewBox: "0 0 1024 1024",
13083
+ xmlns: "http://www.w3.org/2000/svg",
13084
+ width: 200,
13085
+ height: 200
13086
+ }, props), _path$5 || (_path$5 = /*#__PURE__*/React.createElement("path", {
13087
+ 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"
13088
+ })), _path2$2 || (_path2$2 = /*#__PURE__*/React.createElement("path", {
13089
+ 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"
13090
+ })));
13091
+ }
13092
+
13093
+ function Expand(props) {
13094
+ var _goodsMap$get;
13095
+
13096
+ var record = props.record;
13097
+ var controller = Invoice.useInvoiceController();
13098
+ var goodsMap = controller.useMemo(function (s) {
13099
+ return s.goodsListState.goodsMap;
13100
+ }, []);
13101
+ var expandedRowKeys = controller.useMemo(function (s) {
13102
+ return s.goodsListState.expandedRowKeys;
13103
+ }, []);
13104
+
13105
+ if ((_goodsMap$get = goodsMap.get(record.$index)) === null || _goodsMap$get === void 0 ? void 0 : _goodsMap$get.children) {
13106
+ if (expandedRowKeys.includes(record.$index)) {
13107
+ return /*#__PURE__*/React__default['default'].createElement(ktsXui.Button, {
13108
+ type: 'text',
13109
+ style: {
13110
+ width: 'auto',
13111
+ color: "#0074ff"
13112
+ },
13113
+ icon: /*#__PURE__*/React__default['default'].createElement(Icon, {
13114
+ component: SvgI002
13115
+ }),
13116
+ onClick: controller.pipeline( /*#__PURE__*/function () {
13117
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(s, e) {
13118
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
13119
+ while (1) {
13120
+ switch (_context.prev = _context.next) {
13121
+ case 0:
13122
+ e === null || e === void 0 ? void 0 : e.stopPropagation();
13123
+ s.goodsListState.expandedRowKeys = s.goodsListState.expandedRowKeys.filter(function (e) {
13124
+ return e !== record.$index;
13125
+ });
13126
+
13127
+ case 2:
13128
+ case "end":
13129
+ return _context.stop();
13130
+ }
13131
+ }
13132
+ }, _callee);
13133
+ }));
13134
+
13135
+ return function (_x, _x2) {
13136
+ return _ref.apply(this, arguments);
13137
+ };
13138
+ }())
13139
+ });
13140
+ } else {
13141
+ return /*#__PURE__*/React__default['default'].createElement(ktsXui.Button, {
13142
+ type: 'text',
13143
+ style: {
13144
+ width: 'auto',
13145
+ color: "#0074ff"
13146
+ },
13147
+ icon: /*#__PURE__*/React__default['default'].createElement(Icon, {
13148
+ component: SvgI001$1
13149
+ }),
13150
+ onClick: controller.pipeline( /*#__PURE__*/function () {
13151
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(s, e) {
13152
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
13153
+ while (1) {
13154
+ switch (_context2.prev = _context2.next) {
13155
+ case 0:
13156
+ e === null || e === void 0 ? void 0 : e.stopPropagation();
13157
+ s.goodsListState.expandedRowKeys = [].concat(_toConsumableArray(s.goodsListState.expandedRowKeys), [record.$index]);
13158
+
13159
+ case 2:
13160
+ case "end":
13161
+ return _context2.stop();
13162
+ }
13163
+ }
13164
+ }, _callee2);
13165
+ }));
13166
+
13167
+ return function (_x3, _x4) {
13168
+ return _ref2.apply(this, arguments);
13169
+ };
13170
+ }())
13171
+ });
13172
+ }
13173
+ } else {
13174
+ return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null);
13175
+ }
13176
+ }
13177
+
13022
13178
  var useColumns = (function (form) {
13023
13179
  var getFieldDecorator = form.getFieldDecorator,
13024
13180
  getFieldValue = form.getFieldValue;
@@ -13056,6 +13212,11 @@ var useColumns = (function (form) {
13056
13212
  var editGood = controller.useMemo(function (e) {
13057
13213
  return e.goodsListState.editGood;
13058
13214
  }, []);
13215
+ /** 正在编辑的货物 */
13216
+
13217
+ var goodsList = controller.useMemo(function (e) {
13218
+ return e.goodsListState.goodsList;
13219
+ }, []);
13059
13220
  /** 商品表格隐藏列 */
13060
13221
 
13061
13222
  var columnshide = controller.useMemo(function (e) {
@@ -13149,6 +13310,16 @@ var useColumns = (function (form) {
13149
13310
  record: record
13150
13311
  });
13151
13312
  }
13313
+ }, {
13314
+ title: ' ',
13315
+ key: 'expand',
13316
+ width: 40,
13317
+ align: 'center',
13318
+ render: function render(_, record) {
13319
+ return /*#__PURE__*/React__default['default'].createElement(Expand, {
13320
+ record: record
13321
+ });
13322
+ }
13152
13323
  }, {
13153
13324
  title: '序号',
13154
13325
  key: 'serialNo',
@@ -13959,6 +14130,11 @@ var useColumns = (function (form) {
13959
14130
  }) // 是否启动拖拽
13960
14131
  .filter(function (e) {
13961
14132
  return e.key !== 'drag' || isStart;
14133
+ }) // 是否启动展开
14134
+ .filter(function (e) {
14135
+ return e.key === 'expand' ? goodsList.some(function (e) {
14136
+ return !!e.children;
14137
+ }) : true;
13962
14138
  }) // 只读
13963
14139
  .filter(function (e) {
13964
14140
  if (model === 'readOnly') {
@@ -13971,7 +14147,7 @@ var useColumns = (function (form) {
13971
14147
  ellipsis: true
13972
14148
  });
13973
14149
  });
13974
- }, [isTaxIncluded, editGood, controller, changeField, deduction, isMyShow, searchValue, model, columnsReplenish, columnshide, isStart]);
14150
+ }, [isTaxIncluded, editGood, goodsList, controller, changeField, deduction, isMyShow, searchValue, model, columnsReplenish, columnshide, isStart]);
13975
14151
  return columns;
13976
14152
  });
13977
14153
  /** 字段 */
@@ -14178,7 +14354,7 @@ var useOnRow = (function () {
14178
14354
  while (1) {
14179
14355
  switch (_context2.prev = _context2.next) {
14180
14356
  case 0:
14181
- if (!(model === 'readOnly')) {
14357
+ if (!(record.level && record.level > 0)) {
14182
14358
  _context2.next = 2;
14183
14359
  break;
14184
14360
  }
@@ -14186,38 +14362,46 @@ var useOnRow = (function () {
14186
14362
  return _context2.abrupt("return");
14187
14363
 
14188
14364
  case 2:
14365
+ if (!(model === 'readOnly')) {
14366
+ _context2.next = 4;
14367
+ break;
14368
+ }
14369
+
14370
+ return _context2.abrupt("return");
14371
+
14372
+ case 4:
14189
14373
  editGood = controller.state.goodsListState.editGood;
14190
14374
 
14191
14375
  if (!(record.lineAttribute !== LineAttributeType$1.正常)) {
14192
- _context2.next = 5;
14376
+ _context2.next = 7;
14193
14377
  break;
14194
14378
  }
14195
14379
 
14196
14380
  return _context2.abrupt("return");
14197
14381
 
14198
- case 5:
14382
+ case 7:
14199
14383
  if (!editGood) {
14200
- _context2.next = 16;
14384
+ _context2.next = 18;
14201
14385
  break;
14202
14386
  }
14203
14387
 
14204
14388
  if (!(editGood.$index === record.$index)) {
14205
- _context2.next = 8;
14389
+ _context2.next = 10;
14206
14390
  break;
14207
14391
  }
14208
14392
 
14209
14393
  return _context2.abrupt("return");
14210
14394
 
14211
- case 8:
14212
- _context2.next = 10;
14213
- return controller.saveEditGood();
14214
-
14215
14395
  case 10:
14216
14396
  _context2.next = 12;
14217
- return controller.wait();
14397
+ return controller.saveEditGood();
14218
14398
 
14219
14399
  case 12:
14220
14400
  _context2.next = 14;
14401
+ return controller.wait();
14402
+
14403
+ case 14:
14404
+ _context2.next = 16;
14221
14405
  return controller.pipeline( /*#__PURE__*/function () {
14222
14406
  var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(s) {
14223
14407
  return _regeneratorRuntime().wrap(function _callee$(_context) {
@@ -14247,15 +14431,15 @@ var useOnRow = (function () {
14247
14431
  };
14248
14432
  }())();
14249
14433
 
14250
- case 14:
14251
- _context2.next = 18;
14434
+ case 16:
14435
+ _context2.next = 20;
14252
14436
  break;
14253
14437
 
14254
- case 16:
14255
- _context2.next = 18;
14438
+ case 18:
14439
+ _context2.next = 20;
14256
14440
  return controller.setEditGood(record);
14257
14441
 
14258
- case 18:
14442
+ case 20:
14259
14443
  case "end":
14260
14444
  return _context2.stop();
14261
14445
  }
@@ -14633,11 +14817,20 @@ var useRowSelection = (function () {
14633
14817
  columnWidth: 45,
14634
14818
  columnTitle: columnTitle,
14635
14819
  onSelect: onSelect,
14636
- selectedRowKeys: selectedRowKeys
14820
+ selectedRowKeys: selectedRowKeys,
14821
+ getCheckboxProps: function getCheckboxProps(record) {
14822
+ console.log('===> getCheckboxProps', record, record.level);
14823
+ return {
14824
+ disabled: record.level > 0,
14825
+ style: record.level > 0 ? {
14826
+ display: 'none'
14827
+ } : undefined
14828
+ };
14829
+ }
14637
14830
  };
14638
14831
  });
14639
14832
 
14640
- var css_248z$a = ".kts-invoice-operate-goods-list .kts-invoice-operate-goods-list-table-tax-rate .ktsAnt3x-select-selection-selected-value {\n float: right;\n}\n.kts-invoice-operate-goods-list .kts-invoice-operate-goods-list-able {\n display: flex;\n padding: 10px;\n border-bottom: 1px solid #dcdcdc;\n}\n.kts-invoice-operate-goods-list .kts-invoice-operate-goods-list-able-list {\n flex: 1;\n display: flex;\n gap: 10px;\n padding-right: 10px;\n}\n.kts-invoice-operate-goods-list .kts-invoice-operate-goods-list-able-list button {\n padding-left: 10px;\n padding-right: 10px;\n border-radius: 12px;\n color: #0074ff;\n border: 1px solid #0074ff;\n height: 24px;\n line-height: 22px;\n cursor: pointer;\n font-size: 12px;\n}\n.kts-invoice-operate-goods-list .kts-invoice-operate-goods-list-able-list button[disabled] {\n color: rgba(0, 0, 0, 0.25);\n border: 1px solid;\n}\n.kts-invoice-operate-goods-list .kts-invoice-operate-goods-list-able-extend {\n flex: none;\n display: flex;\n gap: 5px;\n}\n.kts-invoice-operate-goods-list .ktsAntX-table .ktsAntX-table-row.kts-invoice-operate-goods-be-discount .ktsAntX-table-cell,\n.kts-invoice-operate-goods-list .ktsAntX-table .ktsAntX-table-row.kts-invoice-operate-goods-discount .ktsAntX-table-cell {\n background: #f5f5f5;\n}\n.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-search-protrude {\n background: #ff0;\n color: #000;\n font-weight: bold;\n}\n.kts-invoice-operate-goods-table-virtual .ktsAntX-table .ktsAntX-table-tbody .ktsAnt3x-form-item {\n margin: 0;\n}\n.kts-invoice-operate-goods-table-virtual .ktsAntX-table .ktsAntX-table-tbody .ktsAnt3x-form-item-control {\n line-height: 1;\n}\n.kts-invoice-operate-goods-table-virtual .ktsAntX-table .ktsAntX-table-tbody .ktsAnt3x-input:focus {\n box-shadow: none;\n}\n.kts-invoice-operate-goods-table-virtual .ktsAntX-table .ktsAntX-table-tbody .ktsAnt3x-input,\n.kts-invoice-operate-goods-table-virtual .ktsAntX-table .ktsAntX-table-tbody .ktsAnt3x-select-selection--single {\n border: none;\n border-radius: 0;\n}\n.kts-invoice-operate-goods-table-virtual .ktsAntX-table .ktsAntX-table-tbody .ktsAnt3x-form-explain {\n display: none;\n}\n.kts-invoice-operate-goods-table-virtual .ktsAntX-table .ktsAntX-table-tbody .ktsAntX-checkbox-wrapper .ktsAntX-checkbox-checked .ktsAntX-checkbox-inner::after {\n width: 5px;\n height: 10px;\n}\n.kts-invoice-operate-goods-list-table .ktsAnt3x-form-item-control.has-error {\n border: 1px solid #f00;\n}\n";
14833
+ var css_248z$a = ".kts-invoice-operate-goods-list .kts-invoice-operate-goods-list-table-tax-rate .ktsAnt3x-select-selection-selected-value {\n float: right;\n}\n.kts-invoice-operate-goods-list .kts-invoice-operate-goods-list-able {\n display: flex;\n padding: 10px;\n border-bottom: 1px solid #dcdcdc;\n}\n.kts-invoice-operate-goods-list .kts-invoice-operate-goods-list-able-list {\n flex: 1;\n display: flex;\n gap: 10px;\n padding-right: 10px;\n}\n.kts-invoice-operate-goods-list .kts-invoice-operate-goods-list-able-list button {\n padding-left: 10px;\n padding-right: 10px;\n border-radius: 12px;\n color: #0074ff;\n border: 1px solid #0074ff;\n height: 24px;\n line-height: 22px;\n cursor: pointer;\n font-size: 12px;\n}\n.kts-invoice-operate-goods-list .kts-invoice-operate-goods-list-able-list button[disabled] {\n color: rgba(0, 0, 0, 0.25);\n border: 1px solid;\n}\n.kts-invoice-operate-goods-list .kts-invoice-operate-goods-list-able-extend {\n flex: none;\n display: flex;\n gap: 5px;\n}\n.kts-invoice-operate-goods-list .ktsAntX-table .ktsAntX-table-row.kts-invoice-operate-goods-be-discount .ktsAntX-table-cell,\n.kts-invoice-operate-goods-list .ktsAntX-table .ktsAntX-table-row.kts-invoice-operate-goods-discount .ktsAntX-table-cell {\n background: #f5f5f5;\n}\n.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-search-protrude {\n background: #ff0;\n color: #000;\n font-weight: bold;\n}\n.kts-invoice-operate-goods-table-virtual .ktsAntX-table .ktsAntX-table-tbody .ktsAnt3x-form-item {\n margin: 0;\n}\n.kts-invoice-operate-goods-table-virtual .ktsAntX-table .ktsAntX-table-tbody .ktsAnt3x-form-item-control {\n line-height: 1;\n}\n.kts-invoice-operate-goods-table-virtual .ktsAntX-table .ktsAntX-table-tbody .ktsAnt3x-input:focus {\n box-shadow: none;\n}\n.kts-invoice-operate-goods-table-virtual .ktsAntX-table .ktsAntX-table-tbody .ktsAnt3x-input,\n.kts-invoice-operate-goods-table-virtual .ktsAntX-table .ktsAntX-table-tbody .ktsAnt3x-select-selection--single {\n border: none;\n border-radius: 0;\n}\n.kts-invoice-operate-goods-table-virtual .ktsAntX-table .ktsAntX-table-tbody .ktsAnt3x-form-explain {\n display: none;\n}\n.kts-invoice-operate-goods-table-virtual .ktsAntX-table .ktsAntX-table-tbody .ktsAntX-checkbox-wrapper .ktsAntX-checkbox-checked .ktsAntX-checkbox-inner::after {\n width: 5px;\n height: 10px;\n}\n.kts-invoice-operate-goods-list-table .ktsAntX-table-row-indent + .ktsAntX-table-row-expand-icon {\n display: none;\n}\n.kts-invoice-operate-goods-list-table .ktsAnt3x-form-item-control.has-error {\n border: 1px solid #f00;\n}\n";
14641
14834
  styleInject(css_248z$a);
14642
14835
 
14643
14836
  var keys$1 = {};
@@ -16828,42 +17021,42 @@ var Tag = /*#__PURE__*/function (_React$Component2) {
16828
17021
  return Tag;
16829
17022
  }(React__default['default'].Component);
16830
17023
 
16831
- var _path$4;
17024
+ var _path$6;
16832
17025
 
16833
- 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); }
17026
+ 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); }
16834
17027
 
16835
17028
  function SvgArrowUp(props) {
16836
- return /*#__PURE__*/React.createElement("svg", _extends$4({
17029
+ return /*#__PURE__*/React.createElement("svg", _extends$6({
16837
17030
  xmlns: "http://www.w3.org/2000/svg",
16838
17031
  width: 13,
16839
17032
  height: 13,
16840
17033
  fill: "none"
16841
- }, props), _path$4 || (_path$4 = /*#__PURE__*/React.createElement("path", {
17034
+ }, props), _path$6 || (_path$6 = /*#__PURE__*/React.createElement("path", {
16842
17035
  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"
16843
17036
  })));
16844
17037
  }
16845
17038
 
16846
- var _path$5;
17039
+ var _path$7;
16847
17040
 
16848
- 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); }
17041
+ 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); }
16849
17042
 
16850
17043
  function SvgArrowDown(props) {
16851
- return /*#__PURE__*/React.createElement("svg", _extends$5({
17044
+ return /*#__PURE__*/React.createElement("svg", _extends$7({
16852
17045
  xmlns: "http://www.w3.org/2000/svg",
16853
17046
  width: 12,
16854
17047
  height: 13,
16855
17048
  fill: "none"
16856
- }, props), _path$5 || (_path$5 = /*#__PURE__*/React.createElement("path", {
17049
+ }, props), _path$7 || (_path$7 = /*#__PURE__*/React.createElement("path", {
16857
17050
  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"
16858
17051
  })));
16859
17052
  }
16860
17053
 
16861
17054
  var _g, _defs$2;
16862
17055
 
16863
- 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); }
17056
+ 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); }
16864
17057
 
16865
17058
  function SvgPlus(props) {
16866
- return /*#__PURE__*/React.createElement("svg", _extends$6({
17059
+ return /*#__PURE__*/React.createElement("svg", _extends$8({
16867
17060
  xmlns: "http://www.w3.org/2000/svg",
16868
17061
  width: 16,
16869
17062
  height: 15,
@@ -17643,10 +17836,10 @@ function TableVirtual$1 (props) {
17643
17836
 
17644
17837
  var _g$1, _defs$3;
17645
17838
 
17646
- 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); }
17839
+ 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); }
17647
17840
 
17648
17841
  function SvgFork(props) {
17649
- return /*#__PURE__*/React.createElement("svg", _extends$7({
17842
+ return /*#__PURE__*/React.createElement("svg", _extends$9({
17650
17843
  xmlns: "http://www.w3.org/2000/svg",
17651
17844
  width: 16,
17652
17845
  height: 16,
@@ -19250,18 +19443,18 @@ var TaxIncludedSwitch$1 = (function () {
19250
19443
  }));
19251
19444
  });
19252
19445
 
19253
- var _path$6;
19446
+ var _path$8;
19254
19447
 
19255
- 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); }
19448
+ 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); }
19256
19449
 
19257
19450
  function SvgMagnifier$1(props) {
19258
- return /*#__PURE__*/React.createElement("svg", _extends$8({
19451
+ return /*#__PURE__*/React.createElement("svg", _extends$a({
19259
19452
  className: "magnifier_svg__icon",
19260
19453
  viewBox: "0 0 1024 1024",
19261
19454
  xmlns: "http://www.w3.org/2000/svg",
19262
19455
  width: 200,
19263
19456
  height: 200
19264
- }, props), _path$6 || (_path$6 = /*#__PURE__*/React.createElement("path", {
19457
+ }, props), _path$8 || (_path$8 = /*#__PURE__*/React.createElement("path", {
19265
19458
  d: "M985.781 918.594L820.773 765.526c27.373-32.973 49.655-69.577 66.437-109.258 22.933-54.219 34.56-111.795 34.56-171.13 0-59.333-11.627-116.91-34.56-171.13-22.143-52.354-53.838-99.365-94.2-139.729s-87.377-72.056-139.73-94.199c-54.219-22.933-111.795-34.561-171.13-34.561S365.24 57.148 311.022 80.08c-52.354 22.143-99.365 53.837-139.73 94.2s-72.057 87.375-94.2 139.73c-22.932 54.218-34.56 111.795-34.56 171.13 0 59.334 11.628 116.91 34.56 171.129 22.144 52.354 53.838 99.365 94.2 139.729s87.376 72.057 139.73 94.2c54.219 22.933 111.795 34.56 171.13 34.56s116.91-11.627 171.13-34.56c45.352-19.181 86.686-45.543 123.171-78.487l165.803 153.804a31.886 31.886 0 0021.756 8.54c8.593 0 17.163-3.442 23.467-10.238 12.019-12.956 11.26-33.205-1.698-45.223zm-503.63-57.836c-207.117 0-375.62-168.502-375.62-375.62 0-207.117 168.503-375.62 375.62-375.62s375.62 168.503 375.62 375.62c0 207.118-168.503 375.62-375.62 375.62z"
19266
19459
  })));
19267
19460
  }
@@ -19411,10 +19604,10 @@ function TableRow$1(props) {
19411
19604
 
19412
19605
  var _g$2, _defs$4;
19413
19606
 
19414
- 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); }
19607
+ 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); }
19415
19608
 
19416
19609
  function SvgPlus$1(props) {
19417
- return /*#__PURE__*/React.createElement("svg", _extends$9({
19610
+ return /*#__PURE__*/React.createElement("svg", _extends$b({
19418
19611
  xmlns: "http://www.w3.org/2000/svg",
19419
19612
  width: 16,
19420
19613
  height: 15
@@ -19659,18 +19852,18 @@ function ItemNameInput$1(props) {
19659
19852
  })));
19660
19853
  }
19661
19854
 
19662
- var _path$7;
19855
+ var _path$9;
19663
19856
 
19664
- 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); }
19857
+ 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); }
19665
19858
 
19666
- function SvgI001$1(props) {
19667
- return /*#__PURE__*/React.createElement("svg", _extends$a({
19859
+ function SvgI001$2(props) {
19860
+ return /*#__PURE__*/React.createElement("svg", _extends$c({
19668
19861
  className: "I001_svg__icon",
19669
19862
  viewBox: "0 0 1024 1024",
19670
19863
  xmlns: "http://www.w3.org/2000/svg",
19671
19864
  width: 200,
19672
19865
  height: 200
19673
- }, props), _path$7 || (_path$7 = /*#__PURE__*/React.createElement("path", {
19866
+ }, props), _path$9 || (_path$9 = /*#__PURE__*/React.createElement("path", {
19674
19867
  d: "M304.874-5.815h123.758v123.758H304.874V-5.815zm281.277 0H709.91v123.758H586.151V-5.815zM304.874 286.75h123.758v123.758H304.874V286.75zm281.277 0H709.91v123.758H586.151V286.75zM304.874 579.212h123.758V702.97H304.874V579.212zm281.277 0H709.91V702.97H586.151V579.212zM304.874 871.83h123.758v123.758H304.874V871.83zm281.277 0H709.91v123.758H586.151V871.83z"
19675
19868
  })));
19676
19869
  }
@@ -19971,7 +20164,7 @@ function Drag$2(props) {
19971
20164
  className: "kts-invoice-operate-goods-list-itemName-drag",
19972
20165
  onMouseOver: controller.saveEditGood
19973
20166
  }, /*#__PURE__*/React__default['default'].createElement(Icon, {
19974
- component: SvgI001$1
20167
+ component: SvgI001$2
19975
20168
  }));
19976
20169
  }, [onMouseDown, controller]);
19977
20170
 
@@ -0,0 +1 @@
1
+ <svg t="1719031046892" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5456" width="200" height="200"><path d="M879.9725037 997.08776297H146.45475555c-67.23508148 0-122.2125037-54.97742222-122.2125037-122.21250372V141.23614815c0-67.23508148 54.97742222-122.2125037 122.2125037-122.2125037h733.63911112c67.23508148 0 122.2125037 54.97742222 122.2125037 122.2125037V874.87525925c0 67.11371852-54.97742222 122.2125037-122.33386667 122.21250372zM146.45475555 80.06921482c-36.65161482 0-61.16693333 24.39395555-61.16693333 61.16693333V874.87525925c0 36.65161482 24.39395555 61.16693333 61.16693333 61.16693334h733.63911112c36.65161482 0 61.16693333-24.39395555 61.16693333-61.16693334V141.23614815c0-36.65161482-24.39395555-61.16693333-61.16693333-61.16693333H146.45475555z m0 0" p-id="5457"></path><path d="M757.76 538.57848889h-489.09274075c-18.32580741 0-30.58346667-12.25765925-30.58346666-30.58346667s12.25765925-30.58346667 30.58346666-30.58346667h489.09274075c18.32580741 0 30.58346667 12.25765925 30.58346667 30.58346667s-12.25765925 30.58346667-30.58346667 30.58346667z m0 0" p-id="5458"></path><path d="M513.21362963 783.12485925c-18.32580741 0-30.58346667-12.25765925-30.58346666-30.58346666v-489.09274074c0-18.32580741 12.25765925-30.58346667 30.58346666-30.58346667s30.58346667 12.25765925 30.58346667 30.58346667v489.09274074c0 18.32580741-12.25765925 30.58346667-30.58346667 30.58346666z m0 0" p-id="5459"></path></svg>
@@ -0,0 +1 @@
1
+ <svg t="1719031078613" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5605" width="200" height="200"><path d="M879.9725037 997.08776297H146.45475555c-67.23508148 0-122.2125037-54.97742222-122.2125037-122.21250372V141.23614815c0-67.23508148 54.97742222-122.2125037 122.2125037-122.2125037h733.63911112c67.23508148 0 122.2125037 54.97742222 122.2125037 122.2125037V874.87525925c0 67.11371852-54.97742222 122.2125037-122.33386667 122.21250372zM146.45475555 80.06921482c-36.65161482 0-61.16693333 24.39395555-61.16693333 61.16693333V874.87525925c0 36.65161482 24.39395555 61.16693333 61.16693333 61.16693334h733.63911112c36.65161482 0 61.16693333-24.39395555 61.16693333-61.16693334V141.23614815c0-36.65161482-24.39395555-61.16693333-61.16693333-61.16693333H146.45475555z m0 0" p-id="5606"></path><path d="M757.76 538.57848889h-489.09274075c-18.32580741 0-30.58346667-12.25765925-30.58346666-30.58346667s12.25765925-30.58346667 30.58346666-30.58346667h489.09274075c18.32580741 0 30.58346667 12.25765925 30.58346667 30.58346667s-12.25765925 30.58346667-30.58346667 30.58346667z m0 0" p-id="5607"></path></svg>