kts-component-invoice-operate 2.0.12 → 2.0.15

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.esm.js CHANGED
@@ -2247,7 +2247,7 @@ function SvgMagnifier(props) {
2247
2247
  })));
2248
2248
  }
2249
2249
 
2250
- var css_248z$4 = ".kts-invoice-operate-goods-list-able-list .kts-invoice-operate-goods-list-search {\n width: 350px;\n}\n.kts-invoice-operate-goods-list-able-list .kts-invoice-operate-goods-list-search input {\n border-radius: 999px;\n border-color: #b8b8b8;\n}\n";
2250
+ var css_248z$4 = ".kts-invoice-operate-goods-list-able-list .kts-invoice-operate-goods-list-search {\n width: 350px;\n}\n.kts-invoice-operate-goods-list-able-list .kts-invoice-operate-goods-list-search input {\n border-radius: 999px;\n border-color: #b8b8b8;\n font-size: 12px;\n}\n";
2251
2251
  styleInject(css_248z$4);
2252
2252
 
2253
2253
  function Search() {
@@ -10932,33 +10932,41 @@ var MyItemNameDiv = /*#__PURE__*/function (_React$Component3) {
10932
10932
 
10933
10933
  if (isMyShow) {
10934
10934
  if (valueT) {
10935
- return React.createElement("span", {
10935
+ return React.createElement(Tooltip, {
10936
+ title: valueT
10937
+ }, React.createElement("span", {
10936
10938
  style: {
10937
10939
  padding: '0 10px',
10938
10940
  color: '#0074ff'
10939
10941
  }
10940
- }, valueT);
10942
+ }, valueT));
10941
10943
  } else {
10942
- return React.createElement("span", {
10944
+ return React.createElement(Tooltip, {
10945
+ title: valueF
10946
+ }, React.createElement("span", {
10943
10947
  style: {
10944
10948
  padding: '0 10px'
10945
10949
  }
10946
- }, valueF);
10950
+ }, valueF));
10947
10951
  }
10948
10952
  } else {
10949
10953
  if (valueF) {
10950
- return React.createElement("span", {
10954
+ return React.createElement(Tooltip, {
10955
+ title: valueF
10956
+ }, React.createElement("span", {
10951
10957
  style: {
10952
10958
  padding: '0 10px'
10953
10959
  }
10954
- }, valueF);
10960
+ }, valueF));
10955
10961
  } else {
10956
- return React.createElement("span", {
10962
+ return React.createElement(Tooltip, {
10963
+ title: valueT
10964
+ }, React.createElement("span", {
10957
10965
  style: {
10958
10966
  padding: '0 10px',
10959
10967
  color: '#0074ff'
10960
10968
  }
10961
- }, valueT);
10969
+ }, valueT));
10962
10970
  }
10963
10971
  }
10964
10972
  }
@@ -13541,7 +13549,7 @@ function AddComparisonDrawer() {
13541
13549
  var onSubmit = React.useCallback(function () {
13542
13550
  controller.run( /*#__PURE__*/function () {
13543
13551
  var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(s) {
13544
- var _getSN, _getSN2, values, shorthand;
13552
+ var _getSN, _getSN2, values, shorthand, setGood, c, g;
13545
13553
 
13546
13554
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
13547
13555
  while (1) {
@@ -13562,28 +13570,40 @@ function AddComparisonDrawer() {
13562
13570
  case 5:
13563
13571
  values = _context2.sent;
13564
13572
  shorthand = s.goodsListState.isMyShow ? (_getSN = getSN(good.itemNameSelf)) === null || _getSN === void 0 ? void 0 : _getSN.shorthand : (_getSN2 = getSN(good.itemName)) === null || _getSN2 === void 0 ? void 0 : _getSN2.shorthand;
13565
- good.itemCode = values.itemCode;
13566
- good.itemCodeSelf = values.itemCodeSelf;
13567
- good.itemName = shorthand ? "*".concat(shorthand, "*").concat(values.itemName) : values.itemName;
13568
- good.itemNameSelf = shorthand ? "*".concat(shorthand, "*").concat(values.itemNameSelf) : values.itemNameSelf;
13569
- good.itemModelName = values.itemModelName;
13570
- good.itemModelNameSelf = values.itemModelNameSelf;
13573
+
13574
+ setGood = function setGood(good) {
13575
+ good.itemCode = values.itemCode;
13576
+ good.itemCodeSelf = values.itemCodeSelf;
13577
+ good.itemName = shorthand ? "*".concat(shorthand, "*").concat(values.itemName) : values.itemName;
13578
+ good.itemNameSelf = shorthand ? "*".concat(shorthand, "*").concat(values.itemNameSelf) : values.itemNameSelf;
13579
+ good.itemModelName = values.itemModelName;
13580
+ good.itemModelNameSelf = values.itemModelNameSelf;
13581
+ };
13582
+
13583
+ setGood(good);
13584
+
13585
+ if (good.lineAttribute !== LineAttributeType$1.正常) {
13586
+ c = good.lineAttribute === LineAttributeType$1.折扣行 ? -1 : good.lineAttribute === LineAttributeType$1.被折扣行 ? 1 : 0;
13587
+ g = s.goodsListState.goodsList[s.goodsListState.goodsList.indexOf(good) + c];
13588
+ setGood(g);
13589
+ }
13590
+
13571
13591
  s.goodsListState.addComparisonIndex = undefined;
13572
13592
  s.goodsListState.goodsList = _toConsumableArray(s.goodsListState.goodsList);
13573
13593
  message.success('商品映射成功');
13574
- _context2.next = 20;
13594
+ _context2.next = 17;
13575
13595
  break;
13576
13596
 
13577
- case 18:
13578
- _context2.prev = 18;
13597
+ case 15:
13598
+ _context2.prev = 15;
13579
13599
  _context2.t0 = _context2["catch"](2);
13580
13600
 
13581
- case 20:
13601
+ case 17:
13582
13602
  case "end":
13583
13603
  return _context2.stop();
13584
13604
  }
13585
13605
  }
13586
- }, _callee2, null, [[2, 18]]);
13606
+ }, _callee2, null, [[2, 15]]);
13587
13607
  }));
13588
13608
 
13589
13609
  return function (_x2) {
package/dist/index.js CHANGED
@@ -2257,7 +2257,7 @@ function SvgMagnifier(props) {
2257
2257
  })));
2258
2258
  }
2259
2259
 
2260
- var css_248z$4 = ".kts-invoice-operate-goods-list-able-list .kts-invoice-operate-goods-list-search {\n width: 350px;\n}\n.kts-invoice-operate-goods-list-able-list .kts-invoice-operate-goods-list-search input {\n border-radius: 999px;\n border-color: #b8b8b8;\n}\n";
2260
+ var css_248z$4 = ".kts-invoice-operate-goods-list-able-list .kts-invoice-operate-goods-list-search {\n width: 350px;\n}\n.kts-invoice-operate-goods-list-able-list .kts-invoice-operate-goods-list-search input {\n border-radius: 999px;\n border-color: #b8b8b8;\n font-size: 12px;\n}\n";
2261
2261
  styleInject(css_248z$4);
2262
2262
 
2263
2263
  function Search() {
@@ -10942,33 +10942,41 @@ var MyItemNameDiv = /*#__PURE__*/function (_React$Component3) {
10942
10942
 
10943
10943
  if (isMyShow) {
10944
10944
  if (valueT) {
10945
- return React__default['default'].createElement("span", {
10945
+ return React__default['default'].createElement(ktsComponentsAntdX3.Tooltip, {
10946
+ title: valueT
10947
+ }, React__default['default'].createElement("span", {
10946
10948
  style: {
10947
10949
  padding: '0 10px',
10948
10950
  color: '#0074ff'
10949
10951
  }
10950
- }, valueT);
10952
+ }, valueT));
10951
10953
  } else {
10952
- return React__default['default'].createElement("span", {
10954
+ return React__default['default'].createElement(ktsComponentsAntdX3.Tooltip, {
10955
+ title: valueF
10956
+ }, React__default['default'].createElement("span", {
10953
10957
  style: {
10954
10958
  padding: '0 10px'
10955
10959
  }
10956
- }, valueF);
10960
+ }, valueF));
10957
10961
  }
10958
10962
  } else {
10959
10963
  if (valueF) {
10960
- return React__default['default'].createElement("span", {
10964
+ return React__default['default'].createElement(ktsComponentsAntdX3.Tooltip, {
10965
+ title: valueF
10966
+ }, React__default['default'].createElement("span", {
10961
10967
  style: {
10962
10968
  padding: '0 10px'
10963
10969
  }
10964
- }, valueF);
10970
+ }, valueF));
10965
10971
  } else {
10966
- return React__default['default'].createElement("span", {
10972
+ return React__default['default'].createElement(ktsComponentsAntdX3.Tooltip, {
10973
+ title: valueT
10974
+ }, React__default['default'].createElement("span", {
10967
10975
  style: {
10968
10976
  padding: '0 10px',
10969
10977
  color: '#0074ff'
10970
10978
  }
10971
- }, valueT);
10979
+ }, valueT));
10972
10980
  }
10973
10981
  }
10974
10982
  }
@@ -13551,7 +13559,7 @@ function AddComparisonDrawer() {
13551
13559
  var onSubmit = React__default['default'].useCallback(function () {
13552
13560
  controller.run( /*#__PURE__*/function () {
13553
13561
  var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(s) {
13554
- var _getSN, _getSN2, values, shorthand;
13562
+ var _getSN, _getSN2, values, shorthand, setGood, c, g;
13555
13563
 
13556
13564
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
13557
13565
  while (1) {
@@ -13572,28 +13580,40 @@ function AddComparisonDrawer() {
13572
13580
  case 5:
13573
13581
  values = _context2.sent;
13574
13582
  shorthand = s.goodsListState.isMyShow ? (_getSN = getSN(good.itemNameSelf)) === null || _getSN === void 0 ? void 0 : _getSN.shorthand : (_getSN2 = getSN(good.itemName)) === null || _getSN2 === void 0 ? void 0 : _getSN2.shorthand;
13575
- good.itemCode = values.itemCode;
13576
- good.itemCodeSelf = values.itemCodeSelf;
13577
- good.itemName = shorthand ? "*".concat(shorthand, "*").concat(values.itemName) : values.itemName;
13578
- good.itemNameSelf = shorthand ? "*".concat(shorthand, "*").concat(values.itemNameSelf) : values.itemNameSelf;
13579
- good.itemModelName = values.itemModelName;
13580
- good.itemModelNameSelf = values.itemModelNameSelf;
13583
+
13584
+ setGood = function setGood(good) {
13585
+ good.itemCode = values.itemCode;
13586
+ good.itemCodeSelf = values.itemCodeSelf;
13587
+ good.itemName = shorthand ? "*".concat(shorthand, "*").concat(values.itemName) : values.itemName;
13588
+ good.itemNameSelf = shorthand ? "*".concat(shorthand, "*").concat(values.itemNameSelf) : values.itemNameSelf;
13589
+ good.itemModelName = values.itemModelName;
13590
+ good.itemModelNameSelf = values.itemModelNameSelf;
13591
+ };
13592
+
13593
+ setGood(good);
13594
+
13595
+ if (good.lineAttribute !== LineAttributeType$1.正常) {
13596
+ c = good.lineAttribute === LineAttributeType$1.折扣行 ? -1 : good.lineAttribute === LineAttributeType$1.被折扣行 ? 1 : 0;
13597
+ g = s.goodsListState.goodsList[s.goodsListState.goodsList.indexOf(good) + c];
13598
+ setGood(g);
13599
+ }
13600
+
13581
13601
  s.goodsListState.addComparisonIndex = undefined;
13582
13602
  s.goodsListState.goodsList = _toConsumableArray(s.goodsListState.goodsList);
13583
13603
  ktsComponentsAntdX3.message.success('商品映射成功');
13584
- _context2.next = 20;
13604
+ _context2.next = 17;
13585
13605
  break;
13586
13606
 
13587
- case 18:
13588
- _context2.prev = 18;
13607
+ case 15:
13608
+ _context2.prev = 15;
13589
13609
  _context2.t0 = _context2["catch"](2);
13590
13610
 
13591
- case 20:
13611
+ case 17:
13592
13612
  case "end":
13593
13613
  return _context2.stop();
13594
13614
  }
13595
13615
  }
13596
- }, _callee2, null, [[2, 18]]);
13616
+ }, _callee2, null, [[2, 15]]);
13597
13617
  }));
13598
13618
 
13599
13619
  return function (_x2) {