kts-component-invoice-operate 2.0.15 → 2.0.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1607,7 +1607,7 @@ function SvgAuto(props) {
1607
1607
  })));
1608
1608
  }
1609
1609
 
1610
- var css_248z$1 = ".kts-invoice-operate-invoice-header {\n padding: 20px 8px;\n background: #f6f7f9;\n position: relative;\n color: rgba(0, 0, 0, 0.85);\n font-weight: 500;\n}\n.kts-invoice-operate-invoice-header label {\n margin-right: 5px;\n white-space: nowrap;\n}\n.kts-invoice-operate-invoice-header .invoice-header-title {\n top: 20px;\n left: 0;\n position: absolute;\n color: #e28b89;\n font-weight: 500;\n font-size: 22px;\n text-align: center;\n width: 100%;\n pointer-events: none;\n z-index: 1;\n}\n.kts-invoice-operate-invoice-header .invoice-header-no {\n display: flex;\n}\n.kts-invoice-operate-invoice-header .invoice-header-no .ktsAnt3x-tag {\n margin-left: 10px;\n height: 24px;\n}\n.kts-invoice-operate-invoice-header .invoice-header-type {\n flex: 1;\n text-align: right;\n}\n.kts-invoice-operate-invoice-header .invoice-header-property {\n margin: 20px 0 0;\n}\n.kts-invoice-operate-invoice-header .invoice-header-property .ktsAnt3x-col {\n display: flex;\n flex-direction: inherit;\n padding-right: 20px;\n}\n.kts-invoice-operate-invoice-header .invoice-header-property .ktsAnt3x-col span {\n color: #999;\n}\n";
1610
+ var css_248z$1 = ".kts-invoice-operate-invoice-header {\n padding: 20px 8px;\n background: #f6f7f9;\n position: relative;\n color: rgba(0, 0, 0, 0.85);\n font-weight: 500;\n}\n.kts-invoice-operate-invoice-header label {\n margin-right: 5px;\n white-space: nowrap;\n}\n.kts-invoice-operate-invoice-header .invoice-header-title {\n top: 20px;\n left: 0;\n position: absolute;\n color: #e28b89;\n font-weight: 500;\n font-size: 22px;\n text-align: center;\n width: 100%;\n pointer-events: none;\n z-index: 1;\n}\n.kts-invoice-operate-invoice-header .invoice-header-no {\n display: flex;\n}\n.kts-invoice-operate-invoice-header .invoice-header-no .ktsAnt3x-tag {\n margin-left: 10px;\n height: 24px;\n}\n.kts-invoice-operate-invoice-header .invoice-header-type {\n flex: 1;\n text-align: right;\n}\n.kts-invoice-operate-invoice-header .invoice-header-property {\n margin: 20px 0 0;\n}\n.kts-invoice-operate-invoice-header .invoice-header-property .ktsAnt3x-col {\n display: flex;\n flex-direction: inherit;\n padding-right: 20px;\n}\n.kts-invoice-operate-invoice-header .invoice-header-property .ktsAnt3x-col span {\n color: #999;\n}\n.kts-invoice-operate-invoice-header .invoice-header-property-fieldExpand {\n display: flex;\n margin: 0;\n padding: 0;\n list-style-type: none;\n gap: 10px;\n align-items: center;\n}\n.kts-invoice-operate-invoice-header .invoice-header-property-fieldExpand li {\n display: flex;\n align-items: center;\n flex: 1;\n}\n";
1611
1611
  styleInject(css_248z$1);
1612
1612
 
1613
1613
  var InvoiceHeader = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(function (props) {
@@ -1798,10 +1798,10 @@ var InvoiceHeader = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(fu
1798
1798
  }
1799
1799
  }, props.renderExpand && props.renderExpand(props.form)), React__default['default'].createElement("div", {
1800
1800
  className: "invoice-header-property"
1801
- }, _toConsumableArray(props.fieldExpand || []).map(function (e) {}), React__default['default'].createElement(ktsComponentsAntdX3.Row, null, fieldExpand.map(function (e) {
1802
- return React__default['default'].createElement(ktsComponentsAntdX3.Col, {
1803
- span: 24 / fieldExpand.length
1804
- }, React__default['default'].createElement("label", null, e.label), e.render(form));
1801
+ }, _toConsumableArray(props.fieldExpand || []).map(function (e) {}), React__default['default'].createElement("ul", {
1802
+ className: 'invoice-header-property-fieldExpand'
1803
+ }, fieldExpand.map(function (e) {
1804
+ return React__default['default'].createElement("li", null, React__default['default'].createElement("label", null, e.label), e.render(form));
1805
1805
  }))));
1806
1806
  });
1807
1807
 
@@ -2864,96 +2864,6 @@ var coolingFn = (function () {
2864
2864
  }
2865
2865
  });
2866
2866
 
2867
- var useEndowCodeButton = (function () {
2868
- var controller = Invoice.useInvoiceController();
2869
- /** 是否禁用 */
2870
-
2871
- var disabled = controller.useMemo(function (s) {
2872
- if (s.goodsListState.selectedGoodIndex.length <= 0) return true;
2873
- }, []);
2874
- var onClick = React__default['default'].useCallback( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
2875
- return _regeneratorRuntime().wrap(function _callee2$(_context2) {
2876
- while (1) {
2877
- switch (_context2.prev = _context2.next) {
2878
- case 0:
2879
- _context2.next = 2;
2880
- return controller.saveEditGood();
2881
-
2882
- case 2:
2883
- _context2.next = 4;
2884
- return controller.wait();
2885
-
2886
- case 4:
2887
- _context2.next = 6;
2888
- return controller.pipeline( /*#__PURE__*/function () {
2889
- var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(s) {
2890
- return _regeneratorRuntime().wrap(function _callee$(_context) {
2891
- while (1) {
2892
- switch (_context.prev = _context.next) {
2893
- case 0:
2894
- if (!(s.goodsListState.editGood && s.goodsListState.selectedGoodIndex.indexOf(s.goodsListState.editGood.$index) >= 0)) {
2895
- _context.next = 3;
2896
- break;
2897
- }
2898
-
2899
- coolingFn('不能给正在编辑的货物赋码', 3000, function () {
2900
- ktsComponentsAntdX3.message.error('不能给正在编辑的货物赋码');
2901
- });
2902
- return _context.abrupt("return");
2903
-
2904
- case 3:
2905
- if (!s.goodsListState.selectedGoodIndex.map(function (e) {
2906
- return s.goodsListState.goodsMap.get(e);
2907
- }).some(function (e, _, arr) {
2908
- var _arr$;
2909
-
2910
- return (e === null || e === void 0 ? void 0 : e.taxRate) !== ((_arr$ = arr[0]) === null || _arr$ === void 0 ? void 0 : _arr$.taxRate);
2911
- })) {
2912
- _context.next = 6;
2913
- break;
2914
- }
2915
-
2916
- coolingFn('商品税率不一致不能操作批量赋码', 3000, function () {
2917
- ktsComponentsAntdX3.message.error('商品税率不一致不能操作批量赋码');
2918
- });
2919
- return _context.abrupt("return");
2920
-
2921
- case 6:
2922
- // 设置赋码
2923
- s.goodsListState.endowCode.endowcodeGoodIndex = s.goodsListState.selectedGoodIndex;
2924
-
2925
- case 7:
2926
- case "end":
2927
- return _context.stop();
2928
- }
2929
- }
2930
- }, _callee);
2931
- }));
2932
-
2933
- return function (_x) {
2934
- return _ref2.apply(this, arguments);
2935
- };
2936
- }())();
2937
-
2938
- case 6:
2939
- case "end":
2940
- return _context2.stop();
2941
- }
2942
- }
2943
- }, _callee2);
2944
- })), [controller]);
2945
- var menuItem = React__default['default'].useMemo(function () {
2946
- return React__default['default'].createElement(ktsComponentsAntdX3.Menu.Item, {
2947
- key: "2",
2948
- onClick: onClick,
2949
- disabled: disabled
2950
- }, "\u6279\u91CF\u8D4B\u7801");
2951
- }, [onClick, disabled]);
2952
- return {
2953
- menuItem: menuItem
2954
- };
2955
- });
2956
-
2957
2867
  /** 拆分全称加简称 */
2958
2868
  var getSN = function getSN(value) {
2959
2869
  if (!value) return undefined;
@@ -3118,13 +3028,10 @@ function BulkMenu() {
3118
3028
  /** 添加折扣行 */
3119
3029
 
3120
3030
  var addDiscountRowButton = useAddDiscountRowButton();
3121
- /** 批量赋码 */
3122
-
3123
- var endowCodeButton = useEndowCodeButton();
3124
3031
  /** 执行商品对照 */
3125
3032
 
3126
3033
  var commodityComparisonButton = useCommodityComparisonButton();
3127
- var menu = React__default['default'].createElement(ktsComponentsAntdX3.Menu, null, delRowButton.menuItem, addDiscountRowButton.menuItem, endowCodeButton.menuItem, commodityComparisonButton.menuItem);
3034
+ var menu = React__default['default'].createElement(ktsComponentsAntdX3.Menu, null, delRowButton.menuItem, addDiscountRowButton.menuItem, commodityComparisonButton.menuItem);
3128
3035
  return React__default['default'].createElement(React__default['default'].Fragment, null, React__default['default'].createElement(ktsComponentsAntdX3.Dropdown, {
3129
3036
  overlay: menu
3130
3037
  }, React__default['default'].createElement(ktsComponentsAntdX3.Button, null, "\u6279\u91CF\u64CD\u4F5C\u884C")), addDiscountRowButton.drawer);
@@ -11492,6 +11399,103 @@ var useRowSelection = (function () {
11492
11399
  var css_248z$7 = ".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-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 {\n border-bottom: 1px solid #dcdcdc;\n}\n.kts-invoice-operate-goods-list-table .kts-invoice-operate-goods-discount {\n color: rgba(0, 0, 0, 0.25);\n background: #f5f5f5;\n}\n.kts-invoice-operate-goods-list-table .kts-invoice-operate-goods-list-able-list-itemName-import {\n display: flex;\n}\n.kts-invoice-operate-goods-list-table .kts-invoice-operate-goods-list-able-list-itemName-import .ktsAnt3x-btn {\n display: block;\n line-height: 0;\n width: auto;\n padding-right: 5px;\n}\n.kts-invoice-operate-goods-list-table .ktsAnt3x-form-item-children {\n height: 30px;\n display: block;\n}\n.kts-invoice-operate-goods-list-table .ktsAnt3x-table-body {\n height: 263px;\n}\n.kts-invoice-operate-goods-list-table .ktsAnt3x-form-explain {\n position: absolute;\n right: 6px;\n top: 6px;\n}\n.kts-invoice-operate-goods-list-table table {\n border-bottom: 1px solid #d9d9d9 !important;\n}\n.kts-invoice-operate-goods-list-table table > .ktsAnt3x-table-tbody > tr > td {\n padding: 0 !important;\n}\n.kts-invoice-operate-goods-list-table table > .ktsAnt3x-table-tbody > tr > td .ktsAnt3x-form-explain {\n display: none;\n}\n.kts-invoice-operate-goods-list-table table > .ktsAnt3x-table-tbody > tr > td .ktsAnt3x-form-item {\n padding: 0;\n margin: 0;\n}\n.kts-invoice-operate-goods-list-table table > .ktsAnt3x-table-tbody > tr > td .ktsAnt3x-form-item .ktsAnt3x-form-item-control {\n line-height: inherit;\n}\n.kts-invoice-operate-goods-list-table table > .ktsAnt3x-table-tbody > tr > td .has-error .ktsAnt3x-select-selection,\n.kts-invoice-operate-goods-list-table table > .ktsAnt3x-table-tbody > tr > td .has-error .ktsAnt3x-input,\n.kts-invoice-operate-goods-list-table table > .ktsAnt3x-table-tbody > tr > td .has-error .ktsAnt3x-input:hover {\n border-right-width: 1px !important;\n border-top-width: 1px;\n border-left-width: 1px;\n border-bottom-width: 1px;\n}\n.kts-invoice-operate-goods-list-table table > .ktsAnt3x-table-tbody > tr > td .ktsAnt3x-select-selection--single,\n.kts-invoice-operate-goods-list-table table > .ktsAnt3x-table-tbody > tr > td .ktsAnt3x-select-auto-complete.ktsAnt3x-select .ktsAnt3x-input:hover,\n.kts-invoice-operate-goods-list-table table > .ktsAnt3x-table-tbody > tr > td .ktsAnt3x-input {\n height: 30px;\n border-radius: 0;\n border-right-width: 0 !important;\n border-top-width: 0;\n border-left-width: 0;\n border-bottom-width: 0;\n box-shadow: none;\n}\n.kts-invoice-operate-goods-list-table-search-protrude {\n background: #ff0;\n color: #000;\n font-weight: bold;\n}\n";
11493
11400
  styleInject(css_248z$7);
11494
11401
 
11402
+ var useEndowCodeButton = (function () {
11403
+ var controller = Invoice.useInvoiceController();
11404
+ /** 是否禁用 */
11405
+
11406
+ var disabled = controller.useMemo(function (s) {
11407
+ if (s.goodsListState.selectedGoodIndex.length <= 0) return true;
11408
+ }, []);
11409
+ var onClick = React__default['default'].useCallback( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
11410
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
11411
+ while (1) {
11412
+ switch (_context2.prev = _context2.next) {
11413
+ case 0:
11414
+ _context2.next = 2;
11415
+ return controller.saveEditGood();
11416
+
11417
+ case 2:
11418
+ _context2.next = 4;
11419
+ return controller.wait();
11420
+
11421
+ case 4:
11422
+ _context2.next = 6;
11423
+ return controller.pipeline( /*#__PURE__*/function () {
11424
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(s) {
11425
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
11426
+ while (1) {
11427
+ switch (_context.prev = _context.next) {
11428
+ case 0:
11429
+ if (!(s.goodsListState.editGood && s.goodsListState.selectedGoodIndex.indexOf(s.goodsListState.editGood.$index) >= 0)) {
11430
+ _context.next = 3;
11431
+ break;
11432
+ }
11433
+
11434
+ coolingFn('不能给正在编辑的货物赋码', 3000, function () {
11435
+ ktsComponentsAntdX3.message.error('不能给正在编辑的货物赋码');
11436
+ });
11437
+ return _context.abrupt("return");
11438
+
11439
+ case 3:
11440
+ if (!s.goodsListState.selectedGoodIndex.map(function (e) {
11441
+ return s.goodsListState.goodsMap.get(e);
11442
+ }).some(function (e, _, arr) {
11443
+ var _arr$;
11444
+
11445
+ return (e === null || e === void 0 ? void 0 : e.taxRate) !== ((_arr$ = arr[0]) === null || _arr$ === void 0 ? void 0 : _arr$.taxRate);
11446
+ })) {
11447
+ _context.next = 6;
11448
+ break;
11449
+ }
11450
+
11451
+ coolingFn('商品税率不一致不能操作批量赋码', 3000, function () {
11452
+ ktsComponentsAntdX3.message.error('商品税率不一致不能操作批量赋码');
11453
+ });
11454
+ return _context.abrupt("return");
11455
+
11456
+ case 6:
11457
+ // 设置赋码
11458
+ s.goodsListState.endowCode.endowcodeGoodIndex = s.goodsListState.selectedGoodIndex;
11459
+
11460
+ case 7:
11461
+ case "end":
11462
+ return _context.stop();
11463
+ }
11464
+ }
11465
+ }, _callee);
11466
+ }));
11467
+
11468
+ return function (_x) {
11469
+ return _ref2.apply(this, arguments);
11470
+ };
11471
+ }())();
11472
+
11473
+ case 6:
11474
+ case "end":
11475
+ return _context2.stop();
11476
+ }
11477
+ }
11478
+ }, _callee2);
11479
+ })), [controller]);
11480
+ var menuItem = React__default['default'].useMemo(function () {
11481
+ return React__default['default'].createElement(ktsComponentsAntdX3.Menu.Item, {
11482
+ key: "2",
11483
+ onClick: onClick,
11484
+ disabled: disabled
11485
+ }, "\u6279\u91CF\u8D4B\u7801");
11486
+ }, [onClick, disabled]);
11487
+ var buuton = React__default['default'].useMemo(function () {
11488
+ return React__default['default'].createElement(ktsComponentsAntdX3.Button, {
11489
+ onClick: onClick,
11490
+ disabled: disabled
11491
+ }, "\u6279\u91CF\u8D4B\u7801");
11492
+ }, [onClick, disabled]);
11493
+ return {
11494
+ menuItem: menuItem,
11495
+ buuton: buuton
11496
+ };
11497
+ });
11498
+
11495
11499
  var GoodsList = /*#__PURE__*/function (_React$Component) {
11496
11500
  _inherits(GoodsList, _React$Component);
11497
11501
 
@@ -11539,6 +11543,9 @@ var Main = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(function (p
11539
11543
 
11540
11544
  useDeduction(controller, props.deduction);
11541
11545
  useWindowClick(controller);
11546
+ /** 批量赋码 */
11547
+
11548
+ var endowCodeButton = useEndowCodeButton();
11542
11549
  /** 清空自动赋码缓存 */
11543
11550
 
11544
11551
  React__default['default'].useEffect(function () {
@@ -11696,7 +11703,7 @@ var Main = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(function (p
11696
11703
  className: "kts-invoice-operate-goods-list-able"
11697
11704
  }, React__default['default'].createElement("div", {
11698
11705
  className: "kts-invoice-operate-goods-list-able-list"
11699
- }, React__default['default'].createElement(AddRowButton, null), React__default['default'].createElement(BulkMenu, null), React__default['default'].createElement(Search, null)), React__default['default'].createElement("div", {
11706
+ }, React__default['default'].createElement(AddRowButton, null), React__default['default'].createElement(BulkMenu, null), endowCodeButton.buuton, React__default['default'].createElement(Search, null)), React__default['default'].createElement("div", {
11700
11707
  className: "kts-invoice-operate-goods-list-able-extend"
11701
11708
  }, props.menuExpansion, React__default['default'].createElement(DescribeSwitch, null), React__default['default'].createElement(TaxIncludedSwitch, null))), React__default['default'].createElement("div", {
11702
11709
  className: classnames__default['default']('kts-invoice-operate-goods-list-table', {
@@ -12700,57 +12707,6 @@ var getItemNameOther = function getItemNameOther(record, editGood) {
12700
12707
  return record.itemName;
12701
12708
  };
12702
12709
 
12703
- /**
12704
- * 判断一个字符串得字节长度
12705
- * @param str
12706
- * @returns
12707
- */
12708
- function bytesLnegth(str) {
12709
- var count = str.length;
12710
-
12711
- for (var i = 0; i < str.length; i++) {
12712
- if (str.charCodeAt(i) > 255) {
12713
- count++;
12714
- }
12715
- }
12716
-
12717
- return count;
12718
- }
12719
- /*
12720
- * param str 要截取的字符串
12721
- * param L 要截取的字节长度,注意是字节不是字符,一个汉字两个字节
12722
- * return 截取后的字符串
12723
- */
12724
-
12725
- function cutStr(str, L) {
12726
- var result = '',
12727
- strlen = str.length,
12728
- // 字符串长度
12729
- chrlen = str.replace(/[^\x00-\xff]/g, '**').length; // 字节长度
12730
-
12731
- if (chrlen <= L) {
12732
- return str;
12733
- }
12734
-
12735
- for (var i = 0, j = 0; i < strlen; i++) {
12736
- var chr = str.charAt(i);
12737
-
12738
- if (/[\x00-\xff]/.test(chr)) {
12739
- j++; // ascii码为0-255,一个字符就是一个字节的长度
12740
- } else {
12741
- j += 2; // ascii码为0-255以外,一个字符就是两个字节的长度
12742
- }
12743
-
12744
- if (j <= L) {
12745
- // 当加上当前字符以后,如果总字节长度小于等于L,则将当前字符真实的+在result后
12746
- result += chr;
12747
- } else {
12748
- // 反之则说明result已经是不拆分字符的情况下最接近L的值了,直接返回
12749
- return result;
12750
- }
12751
- }
12752
- }
12753
-
12754
12710
  var css_248z$b = ".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";
12755
12711
  styleInject(css_248z$b);
12756
12712
 
@@ -13286,43 +13242,31 @@ var DrawerBody$3 = function DrawerBody(props) {
13286
13242
 
13287
13243
  good.taxAmount = countTaxAmount(good.lineAmountIncludeTax || 0, s.goodsListState.deduction, values.taxRate);
13288
13244
  }); //截取名称
13245
+ // if (endowCodeGood.some(e => bytesLnegth(e?.itemName || '') > 92)) {
13246
+ // await (() => new Promise<void>(resolve => {
13247
+ // confirm({
13248
+ // title: '温馨提示',
13249
+ // content: '商品名称长度过长,是否截取名称',
13250
+ // okText: '确定',
13251
+ // cancelText: '取消',
13252
+ // onOk() {
13253
+ // endowCodeGood.forEach(e => {
13254
+ // if (e && e.itemName) { e.itemName = cutStr(e.itemName, 91) }
13255
+ // })
13256
+ // message.success('商品名称截取成功!')
13257
+ // resolve()
13258
+ // },
13259
+ // onCancel() {
13260
+ // resolve()
13261
+ // },
13262
+ // });
13263
+ // }))()
13264
+ // }
13289
13265
 
13290
- if (!endowCodeGood.some(function (e) {
13291
- return bytesLnegth((e === null || e === void 0 ? void 0 : e.itemName) || '') > 92;
13292
- })) {
13293
- _context11.next = 5;
13294
- break;
13295
- }
13296
-
13297
- _context11.next = 5;
13298
- return function () {
13299
- return new Promise(function (resolve) {
13300
- confirm({
13301
- title: '温馨提示',
13302
- content: '商品名称长度过长,是否截取名称',
13303
- okText: '确定',
13304
- cancelText: '取消',
13305
- onOk: function onOk() {
13306
- endowCodeGood.forEach(function (e) {
13307
- if (e && e.itemName) {
13308
- e.itemName = cutStr(e.itemName, 91);
13309
- }
13310
- });
13311
- ktsComponentsAntdX3.message.success('商品名称截取成功!');
13312
- resolve();
13313
- },
13314
- onCancel: function onCancel() {
13315
- resolve();
13316
- }
13317
- });
13318
- });
13319
- }();
13320
-
13321
- case 5:
13322
13266
  s.goodsListState.goodsList = s.goodsListState.goodsList.slice();
13323
13267
  s.goodsListState.endowCode.endowcodeGoodIndex = [];
13324
13268
 
13325
- case 7:
13269
+ case 4:
13326
13270
  case "end":
13327
13271
  return _context11.stop();
13328
13272
  }
package/docs-dist/umi.css CHANGED
@@ -1,4 +1,4 @@
1
- .kts-invoice-operate{border:1px solid #dcdcdc;font-size:12px}.kts-invoice-operate>*{border-bottom:1px solid #dcdcdc}.kts-invoice-operate>:last-child{border-bottom:none}.kts-invoice-operate-invoice-header{padding:20px 8px;background:#f6f7f9;position:relative;color:rgba(0,0,0,.85);font-weight:500}.kts-invoice-operate-invoice-header label{margin-right:5px;white-space:nowrap}.kts-invoice-operate-invoice-header .invoice-header-title{top:20px;left:0;position:absolute;color:#e28b89;font-weight:500;font-size:22px;text-align:center;width:100%;pointer-events:none;z-index:1}.kts-invoice-operate-invoice-header .invoice-header-no{display:flex}.kts-invoice-operate-invoice-header .invoice-header-no .ktsAnt3x-tag{margin-left:10px;height:24px}.kts-invoice-operate-invoice-header .invoice-header-type{flex:1 1;text-align:right}.kts-invoice-operate-invoice-header .invoice-header-property{margin:20px 0 0}.kts-invoice-operate-invoice-header .invoice-header-property .ktsAnt3x-col{display:flex;flex-direction:inherit;padding-right:20px}.kts-invoice-operate-invoice-header .invoice-header-property .ktsAnt3x-col span{color:#999}.kts-invoice-operate-goods-table-virtual .ktsAnt3x-table-placeholder{position:absolute;top:50px;left:0;width:100%;border:none}.kts-invoice-operate-goods-table-virtual .ktsAnt3x-table{font-size:12px;border:none;border-radius:0}.kts-invoice-operate-goods-table-virtual .ktsAnt3x-table .ktsAnt3x-table-content{border-right:none}.kts-invoice-operate-goods-table-virtual .ktsAnt3x-table .ktsAnt3x-table-content .ktsAnt3x-table-body{margin:0}.kts-invoice-operate-goods-table-virtual .ktsAnt3x-table .ktsAnt3x-table-content .ktsAnt3x-table-body table{position:absolute;top:0;left:0;border-bottom:1px solid #e8e8e8}.kts-invoice-operate-goods-table-virtual .ktsAnt3x-table .ktsAnt3x-table-content .ktsAnt3x-table-body table tr{height:32px}.kts-invoice-operate-goods-table-virtual .ktsAnt3x-table .ktsAnt3x-table-content .ktsAnt3x-table-body table tr:hover td{background:none}.kts-invoice-operate-goods-table-virtual .ktsAnt3x-table .ktsAnt3x-table-thead>tr{background-color:#f6f7f9}.kts-invoice-operate-goods-list-statistics{background:#fafafa;overflow-y:scroll}.kts-invoice-operate-goods-list-statistics .kts-invoice-operate-goods-list-statistics-row{height:30px;line-height:30px;border-bottom:1px solid #e8e8e8;display:flex}.kts-invoice-operate-goods-list-statistics .kts-invoice-operate-goods-list-statistics-row>div{border-right:1px solid #e8e8e8}.kts-invoice-operate-goods-list-statistics .kts-invoice-operate-goods-list-statistics-row>div label{padding:0 10px}.kts-invoice-operate-goods-list-able-list .kts-invoice-operate-goods-list-search{width:350px}.kts-invoice-operate-goods-list-able-list .kts-invoice-operate-goods-list-search input{border-radius:999px;border-color:#b8b8b8;font-size:12px}.kts-invoice-operate-goods-list-add-discount-row .ktsAnt3x-drawer-wrapper-body{display:flex;flex-direction:column}.kts-invoice-operate-goods-list-add-discount-row .ktsAnt3x-drawer-wrapper-body .ktsAnt3x-drawer-body{flex:1 1;display:flex;flex-direction:column}.kts-invoice-operate-goods-list-add-discount-row .ktsAnt3x-drawer-wrapper-body .ktsAnt3x-drawer-body .add-discount-row-body{flex:1 1;overflow:auto}.kts-invoice-operate-goods-list-add-discount-row .ktsAnt3x-drawer-wrapper-body .ktsAnt3x-drawer-body .add-discount-row-footer{flex:none}
1
+ .kts-invoice-operate{border:1px solid #dcdcdc;font-size:12px}.kts-invoice-operate>*{border-bottom:1px solid #dcdcdc}.kts-invoice-operate>:last-child{border-bottom:none}.kts-invoice-operate-invoice-header{padding:20px 8px;background:#f6f7f9;position:relative;color:rgba(0,0,0,.85);font-weight:500}.kts-invoice-operate-invoice-header label{margin-right:5px;white-space:nowrap}.kts-invoice-operate-invoice-header .invoice-header-title{top:20px;left:0;position:absolute;color:#e28b89;font-weight:500;font-size:22px;text-align:center;width:100%;pointer-events:none;z-index:1}.kts-invoice-operate-invoice-header .invoice-header-no{display:flex}.kts-invoice-operate-invoice-header .invoice-header-no .ktsAnt3x-tag{margin-left:10px;height:24px}.kts-invoice-operate-invoice-header .invoice-header-type{flex:1 1;text-align:right}.kts-invoice-operate-invoice-header .invoice-header-property{margin:20px 0 0}.kts-invoice-operate-invoice-header .invoice-header-property .ktsAnt3x-col{display:flex;flex-direction:inherit;padding-right:20px}.kts-invoice-operate-invoice-header .invoice-header-property .ktsAnt3x-col span{color:#999}.kts-invoice-operate-invoice-header .invoice-header-property-fieldExpand{display:flex;margin:0;padding:0;list-style-type:none;grid-gap:10px;gap:10px;align-items:center}.kts-invoice-operate-invoice-header .invoice-header-property-fieldExpand li{display:flex;align-items:center;flex:1 1}.kts-invoice-operate-goods-table-virtual .ktsAnt3x-table-placeholder{position:absolute;top:50px;left:0;width:100%;border:none}.kts-invoice-operate-goods-table-virtual .ktsAnt3x-table{font-size:12px;border:none;border-radius:0}.kts-invoice-operate-goods-table-virtual .ktsAnt3x-table .ktsAnt3x-table-content{border-right:none}.kts-invoice-operate-goods-table-virtual .ktsAnt3x-table .ktsAnt3x-table-content .ktsAnt3x-table-body{margin:0}.kts-invoice-operate-goods-table-virtual .ktsAnt3x-table .ktsAnt3x-table-content .ktsAnt3x-table-body table{position:absolute;top:0;left:0;border-bottom:1px solid #e8e8e8}.kts-invoice-operate-goods-table-virtual .ktsAnt3x-table .ktsAnt3x-table-content .ktsAnt3x-table-body table tr{height:32px}.kts-invoice-operate-goods-table-virtual .ktsAnt3x-table .ktsAnt3x-table-content .ktsAnt3x-table-body table tr:hover td{background:none}.kts-invoice-operate-goods-table-virtual .ktsAnt3x-table .ktsAnt3x-table-thead>tr{background-color:#f6f7f9}.kts-invoice-operate-goods-list-statistics{background:#fafafa;overflow-y:scroll}.kts-invoice-operate-goods-list-statistics .kts-invoice-operate-goods-list-statistics-row{height:30px;line-height:30px;border-bottom:1px solid #e8e8e8;display:flex}.kts-invoice-operate-goods-list-statistics .kts-invoice-operate-goods-list-statistics-row>div{border-right:1px solid #e8e8e8}.kts-invoice-operate-goods-list-statistics .kts-invoice-operate-goods-list-statistics-row>div label{padding:0 10px}.kts-invoice-operate-goods-list-able-list .kts-invoice-operate-goods-list-search{width:350px}.kts-invoice-operate-goods-list-able-list .kts-invoice-operate-goods-list-search input{border-radius:999px;border-color:#b8b8b8;font-size:12px}.kts-invoice-operate-goods-list-add-discount-row .ktsAnt3x-drawer-wrapper-body{display:flex;flex-direction:column}.kts-invoice-operate-goods-list-add-discount-row .ktsAnt3x-drawer-wrapper-body .ktsAnt3x-drawer-body{flex:1 1;display:flex;flex-direction:column}.kts-invoice-operate-goods-list-add-discount-row .ktsAnt3x-drawer-wrapper-body .ktsAnt3x-drawer-body .add-discount-row-body{flex:1 1;overflow:auto}.kts-invoice-operate-goods-list-add-discount-row .ktsAnt3x-drawer-wrapper-body .ktsAnt3x-drawer-body .add-discount-row-footer{flex:none}
2
2
 
3
3
  /*!
4
4
  *