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.
@@ -1,5 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  declare const _default: () => {
3
3
  menuItem: JSX.Element;
4
+ buuton: JSX.Element;
4
5
  };
5
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, Tooltip, Menu, Typography, Drawer, Dropdown, AutoComplete, Spin, Checkbox, Descriptions, Empty, Divider, Popover, Tree, Modal } from 'kts-components-antd-x3';
5
+ import { message, Form, Input, Icon, Tag, Select, Table, Button, Switch, Tooltip, Menu, Typography, Drawer, Dropdown, AutoComplete, Spin, Checkbox, Descriptions, Empty, Divider, Popover, Tree, Modal, Row, Col } 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';
@@ -1597,7 +1597,7 @@ function SvgAuto(props) {
1597
1597
  })));
1598
1598
  }
1599
1599
 
1600
- 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";
1600
+ 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";
1601
1601
  styleInject(css_248z$1);
1602
1602
 
1603
1603
  var InvoiceHeader = decorator(Form.create())(function (props) {
@@ -1788,10 +1788,10 @@ var InvoiceHeader = decorator(Form.create())(function (props) {
1788
1788
  }
1789
1789
  }, props.renderExpand && props.renderExpand(props.form)), React.createElement("div", {
1790
1790
  className: "invoice-header-property"
1791
- }, _toConsumableArray(props.fieldExpand || []).map(function (e) {}), React.createElement(Row, null, fieldExpand.map(function (e) {
1792
- return React.createElement(Col, {
1793
- span: 24 / fieldExpand.length
1794
- }, React.createElement("label", null, e.label), e.render(form));
1791
+ }, _toConsumableArray(props.fieldExpand || []).map(function (e) {}), React.createElement("ul", {
1792
+ className: 'invoice-header-property-fieldExpand'
1793
+ }, fieldExpand.map(function (e) {
1794
+ return React.createElement("li", null, React.createElement("label", null, e.label), e.render(form));
1795
1795
  }))));
1796
1796
  });
1797
1797
 
@@ -2854,96 +2854,6 @@ var coolingFn = (function () {
2854
2854
  }
2855
2855
  });
2856
2856
 
2857
- var useEndowCodeButton = (function () {
2858
- var controller = Invoice.useInvoiceController();
2859
- /** 是否禁用 */
2860
-
2861
- var disabled = controller.useMemo(function (s) {
2862
- if (s.goodsListState.selectedGoodIndex.length <= 0) return true;
2863
- }, []);
2864
- var onClick = React.useCallback( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
2865
- return _regeneratorRuntime().wrap(function _callee2$(_context2) {
2866
- while (1) {
2867
- switch (_context2.prev = _context2.next) {
2868
- case 0:
2869
- _context2.next = 2;
2870
- return controller.saveEditGood();
2871
-
2872
- case 2:
2873
- _context2.next = 4;
2874
- return controller.wait();
2875
-
2876
- case 4:
2877
- _context2.next = 6;
2878
- return controller.pipeline( /*#__PURE__*/function () {
2879
- var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(s) {
2880
- return _regeneratorRuntime().wrap(function _callee$(_context) {
2881
- while (1) {
2882
- switch (_context.prev = _context.next) {
2883
- case 0:
2884
- if (!(s.goodsListState.editGood && s.goodsListState.selectedGoodIndex.indexOf(s.goodsListState.editGood.$index) >= 0)) {
2885
- _context.next = 3;
2886
- break;
2887
- }
2888
-
2889
- coolingFn('不能给正在编辑的货物赋码', 3000, function () {
2890
- message.error('不能给正在编辑的货物赋码');
2891
- });
2892
- return _context.abrupt("return");
2893
-
2894
- case 3:
2895
- if (!s.goodsListState.selectedGoodIndex.map(function (e) {
2896
- return s.goodsListState.goodsMap.get(e);
2897
- }).some(function (e, _, arr) {
2898
- var _arr$;
2899
-
2900
- return (e === null || e === void 0 ? void 0 : e.taxRate) !== ((_arr$ = arr[0]) === null || _arr$ === void 0 ? void 0 : _arr$.taxRate);
2901
- })) {
2902
- _context.next = 6;
2903
- break;
2904
- }
2905
-
2906
- coolingFn('商品税率不一致不能操作批量赋码', 3000, function () {
2907
- message.error('商品税率不一致不能操作批量赋码');
2908
- });
2909
- return _context.abrupt("return");
2910
-
2911
- case 6:
2912
- // 设置赋码
2913
- s.goodsListState.endowCode.endowcodeGoodIndex = s.goodsListState.selectedGoodIndex;
2914
-
2915
- case 7:
2916
- case "end":
2917
- return _context.stop();
2918
- }
2919
- }
2920
- }, _callee);
2921
- }));
2922
-
2923
- return function (_x) {
2924
- return _ref2.apply(this, arguments);
2925
- };
2926
- }())();
2927
-
2928
- case 6:
2929
- case "end":
2930
- return _context2.stop();
2931
- }
2932
- }
2933
- }, _callee2);
2934
- })), [controller]);
2935
- var menuItem = React.useMemo(function () {
2936
- return React.createElement(Menu.Item, {
2937
- key: "2",
2938
- onClick: onClick,
2939
- disabled: disabled
2940
- }, "\u6279\u91CF\u8D4B\u7801");
2941
- }, [onClick, disabled]);
2942
- return {
2943
- menuItem: menuItem
2944
- };
2945
- });
2946
-
2947
2857
  /** 拆分全称加简称 */
2948
2858
  var getSN = function getSN(value) {
2949
2859
  if (!value) return undefined;
@@ -3108,13 +3018,10 @@ function BulkMenu() {
3108
3018
  /** 添加折扣行 */
3109
3019
 
3110
3020
  var addDiscountRowButton = useAddDiscountRowButton();
3111
- /** 批量赋码 */
3112
-
3113
- var endowCodeButton = useEndowCodeButton();
3114
3021
  /** 执行商品对照 */
3115
3022
 
3116
3023
  var commodityComparisonButton = useCommodityComparisonButton();
3117
- var menu = React.createElement(Menu, null, delRowButton.menuItem, addDiscountRowButton.menuItem, endowCodeButton.menuItem, commodityComparisonButton.menuItem);
3024
+ var menu = React.createElement(Menu, null, delRowButton.menuItem, addDiscountRowButton.menuItem, commodityComparisonButton.menuItem);
3118
3025
  return React.createElement(React.Fragment, null, React.createElement(Dropdown, {
3119
3026
  overlay: menu
3120
3027
  }, React.createElement(Button, null, "\u6279\u91CF\u64CD\u4F5C\u884C")), addDiscountRowButton.drawer);
@@ -11482,6 +11389,103 @@ var useRowSelection = (function () {
11482
11389
  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";
11483
11390
  styleInject(css_248z$7);
11484
11391
 
11392
+ var useEndowCodeButton = (function () {
11393
+ var controller = Invoice.useInvoiceController();
11394
+ /** 是否禁用 */
11395
+
11396
+ var disabled = controller.useMemo(function (s) {
11397
+ if (s.goodsListState.selectedGoodIndex.length <= 0) return true;
11398
+ }, []);
11399
+ var onClick = React.useCallback( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
11400
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
11401
+ while (1) {
11402
+ switch (_context2.prev = _context2.next) {
11403
+ case 0:
11404
+ _context2.next = 2;
11405
+ return controller.saveEditGood();
11406
+
11407
+ case 2:
11408
+ _context2.next = 4;
11409
+ return controller.wait();
11410
+
11411
+ case 4:
11412
+ _context2.next = 6;
11413
+ return controller.pipeline( /*#__PURE__*/function () {
11414
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(s) {
11415
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
11416
+ while (1) {
11417
+ switch (_context.prev = _context.next) {
11418
+ case 0:
11419
+ if (!(s.goodsListState.editGood && s.goodsListState.selectedGoodIndex.indexOf(s.goodsListState.editGood.$index) >= 0)) {
11420
+ _context.next = 3;
11421
+ break;
11422
+ }
11423
+
11424
+ coolingFn('不能给正在编辑的货物赋码', 3000, function () {
11425
+ message.error('不能给正在编辑的货物赋码');
11426
+ });
11427
+ return _context.abrupt("return");
11428
+
11429
+ case 3:
11430
+ if (!s.goodsListState.selectedGoodIndex.map(function (e) {
11431
+ return s.goodsListState.goodsMap.get(e);
11432
+ }).some(function (e, _, arr) {
11433
+ var _arr$;
11434
+
11435
+ return (e === null || e === void 0 ? void 0 : e.taxRate) !== ((_arr$ = arr[0]) === null || _arr$ === void 0 ? void 0 : _arr$.taxRate);
11436
+ })) {
11437
+ _context.next = 6;
11438
+ break;
11439
+ }
11440
+
11441
+ coolingFn('商品税率不一致不能操作批量赋码', 3000, function () {
11442
+ message.error('商品税率不一致不能操作批量赋码');
11443
+ });
11444
+ return _context.abrupt("return");
11445
+
11446
+ case 6:
11447
+ // 设置赋码
11448
+ s.goodsListState.endowCode.endowcodeGoodIndex = s.goodsListState.selectedGoodIndex;
11449
+
11450
+ case 7:
11451
+ case "end":
11452
+ return _context.stop();
11453
+ }
11454
+ }
11455
+ }, _callee);
11456
+ }));
11457
+
11458
+ return function (_x) {
11459
+ return _ref2.apply(this, arguments);
11460
+ };
11461
+ }())();
11462
+
11463
+ case 6:
11464
+ case "end":
11465
+ return _context2.stop();
11466
+ }
11467
+ }
11468
+ }, _callee2);
11469
+ })), [controller]);
11470
+ var menuItem = React.useMemo(function () {
11471
+ return React.createElement(Menu.Item, {
11472
+ key: "2",
11473
+ onClick: onClick,
11474
+ disabled: disabled
11475
+ }, "\u6279\u91CF\u8D4B\u7801");
11476
+ }, [onClick, disabled]);
11477
+ var buuton = React.useMemo(function () {
11478
+ return React.createElement(Button, {
11479
+ onClick: onClick,
11480
+ disabled: disabled
11481
+ }, "\u6279\u91CF\u8D4B\u7801");
11482
+ }, [onClick, disabled]);
11483
+ return {
11484
+ menuItem: menuItem,
11485
+ buuton: buuton
11486
+ };
11487
+ });
11488
+
11485
11489
  var GoodsList = /*#__PURE__*/function (_React$Component) {
11486
11490
  _inherits(GoodsList, _React$Component);
11487
11491
 
@@ -11529,6 +11533,9 @@ var Main = decorator(Form.create())(function (props) {
11529
11533
 
11530
11534
  useDeduction(controller, props.deduction);
11531
11535
  useWindowClick(controller);
11536
+ /** 批量赋码 */
11537
+
11538
+ var endowCodeButton = useEndowCodeButton();
11532
11539
  /** 清空自动赋码缓存 */
11533
11540
 
11534
11541
  React.useEffect(function () {
@@ -11686,7 +11693,7 @@ var Main = decorator(Form.create())(function (props) {
11686
11693
  className: "kts-invoice-operate-goods-list-able"
11687
11694
  }, React.createElement("div", {
11688
11695
  className: "kts-invoice-operate-goods-list-able-list"
11689
- }, React.createElement(AddRowButton, null), React.createElement(BulkMenu, null), React.createElement(Search, null)), React.createElement("div", {
11696
+ }, React.createElement(AddRowButton, null), React.createElement(BulkMenu, null), endowCodeButton.buuton, React.createElement(Search, null)), React.createElement("div", {
11690
11697
  className: "kts-invoice-operate-goods-list-able-extend"
11691
11698
  }, props.menuExpansion, React.createElement(DescribeSwitch, null), React.createElement(TaxIncludedSwitch, null))), React.createElement("div", {
11692
11699
  className: classnames('kts-invoice-operate-goods-list-table', {
@@ -12690,57 +12697,6 @@ var getItemNameOther = function getItemNameOther(record, editGood) {
12690
12697
  return record.itemName;
12691
12698
  };
12692
12699
 
12693
- /**
12694
- * 判断一个字符串得字节长度
12695
- * @param str
12696
- * @returns
12697
- */
12698
- function bytesLnegth(str) {
12699
- var count = str.length;
12700
-
12701
- for (var i = 0; i < str.length; i++) {
12702
- if (str.charCodeAt(i) > 255) {
12703
- count++;
12704
- }
12705
- }
12706
-
12707
- return count;
12708
- }
12709
- /*
12710
- * param str 要截取的字符串
12711
- * param L 要截取的字节长度,注意是字节不是字符,一个汉字两个字节
12712
- * return 截取后的字符串
12713
- */
12714
-
12715
- function cutStr(str, L) {
12716
- var result = '',
12717
- strlen = str.length,
12718
- // 字符串长度
12719
- chrlen = str.replace(/[^\x00-\xff]/g, '**').length; // 字节长度
12720
-
12721
- if (chrlen <= L) {
12722
- return str;
12723
- }
12724
-
12725
- for (var i = 0, j = 0; i < strlen; i++) {
12726
- var chr = str.charAt(i);
12727
-
12728
- if (/[\x00-\xff]/.test(chr)) {
12729
- j++; // ascii码为0-255,一个字符就是一个字节的长度
12730
- } else {
12731
- j += 2; // ascii码为0-255以外,一个字符就是两个字节的长度
12732
- }
12733
-
12734
- if (j <= L) {
12735
- // 当加上当前字符以后,如果总字节长度小于等于L,则将当前字符真实的+在result后
12736
- result += chr;
12737
- } else {
12738
- // 反之则说明result已经是不拆分字符的情况下最接近L的值了,直接返回
12739
- return result;
12740
- }
12741
- }
12742
- }
12743
-
12744
12700
  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";
12745
12701
  styleInject(css_248z$b);
12746
12702
 
@@ -13276,43 +13232,31 @@ var DrawerBody$3 = function DrawerBody(props) {
13276
13232
 
13277
13233
  good.taxAmount = countTaxAmount(good.lineAmountIncludeTax || 0, s.goodsListState.deduction, values.taxRate);
13278
13234
  }); //截取名称
13235
+ // if (endowCodeGood.some(e => bytesLnegth(e?.itemName || '') > 92)) {
13236
+ // await (() => new Promise<void>(resolve => {
13237
+ // confirm({
13238
+ // title: '温馨提示',
13239
+ // content: '商品名称长度过长,是否截取名称',
13240
+ // okText: '确定',
13241
+ // cancelText: '取消',
13242
+ // onOk() {
13243
+ // endowCodeGood.forEach(e => {
13244
+ // if (e && e.itemName) { e.itemName = cutStr(e.itemName, 91) }
13245
+ // })
13246
+ // message.success('商品名称截取成功!')
13247
+ // resolve()
13248
+ // },
13249
+ // onCancel() {
13250
+ // resolve()
13251
+ // },
13252
+ // });
13253
+ // }))()
13254
+ // }
13279
13255
 
13280
- if (!endowCodeGood.some(function (e) {
13281
- return bytesLnegth((e === null || e === void 0 ? void 0 : e.itemName) || '') > 92;
13282
- })) {
13283
- _context11.next = 5;
13284
- break;
13285
- }
13286
-
13287
- _context11.next = 5;
13288
- return function () {
13289
- return new Promise(function (resolve) {
13290
- confirm({
13291
- title: '温馨提示',
13292
- content: '商品名称长度过长,是否截取名称',
13293
- okText: '确定',
13294
- cancelText: '取消',
13295
- onOk: function onOk() {
13296
- endowCodeGood.forEach(function (e) {
13297
- if (e && e.itemName) {
13298
- e.itemName = cutStr(e.itemName, 91);
13299
- }
13300
- });
13301
- message.success('商品名称截取成功!');
13302
- resolve();
13303
- },
13304
- onCancel: function onCancel() {
13305
- resolve();
13306
- }
13307
- });
13308
- });
13309
- }();
13310
-
13311
- case 5:
13312
13256
  s.goodsListState.goodsList = s.goodsListState.goodsList.slice();
13313
13257
  s.goodsListState.endowCode.endowcodeGoodIndex = [];
13314
13258
 
13315
- case 7:
13259
+ case 4:
13316
13260
  case "end":
13317
13261
  return _context11.stop();
13318
13262
  }