kts-component-invoice-operate 3.2.57 → 3.2.59

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
@@ -10766,37 +10766,38 @@ function ItemCodeInput(props) {
10766
10766
  while (1) {
10767
10767
  switch (_context.prev = _context.next) {
10768
10768
  case 0:
10769
- _context.prev = 0;
10769
+ debugger;
10770
+ _context.prev = 1;
10770
10771
 
10771
10772
  if (!autoComplete.onItemCodeSearch) {
10772
- _context.next = 7;
10773
+ _context.next = 8;
10773
10774
  break;
10774
10775
  }
10775
10776
 
10776
10777
  _context.t0 = setOptions;
10777
- _context.next = 5;
10778
+ _context.next = 6;
10778
10779
  return autoComplete.onItemCodeSearch(searchText, editGood === null || editGood === void 0 ? void 0 : editGood.itemName);
10779
10780
 
10780
- case 5:
10781
+ case 6:
10781
10782
  _context.t1 = _context.sent;
10782
10783
  (0, _context.t0)(_context.t1);
10783
10784
 
10784
- case 7:
10785
- _context.next = 13;
10785
+ case 8:
10786
+ _context.next = 14;
10786
10787
  break;
10787
10788
 
10788
- case 9:
10789
- _context.prev = 9;
10790
- _context.t2 = _context["catch"](0);
10789
+ case 10:
10790
+ _context.prev = 10;
10791
+ _context.t2 = _context["catch"](1);
10791
10792
  setOptions([]);
10792
10793
  throw _context.t2;
10793
10794
 
10794
- case 13:
10795
+ case 14:
10795
10796
  case "end":
10796
10797
  return _context.stop();
10797
10798
  }
10798
10799
  }
10799
- }, _callee, null, [[0, 9]]);
10800
+ }, _callee, null, [[1, 10]]);
10800
10801
  }));
10801
10802
 
10802
10803
  return function (_x) {
@@ -10822,9 +10823,10 @@ function ItemCodeInput(props) {
10822
10823
  return _context2.abrupt("return");
10823
10824
 
10824
10825
  case 3:
10826
+ debugger;
10825
10827
  controller.importGoodsDrawer(record);
10826
10828
 
10827
- case 4:
10829
+ case 5:
10828
10830
  case "end":
10829
10831
  return _context2.stop();
10830
10832
  }
@@ -21312,7 +21314,9 @@ var DrawerBody$2 = function DrawerBody() {
21312
21314
  // 导入时清空之前输入的值,使用导入的单价和税率(参考税局系统)
21313
21315
  record.quantity = undefined;
21314
21316
  record.lineAmountExcludeTax = undefined;
21315
- record.lineAmountIncludeTax = undefined; // 中间数据
21317
+ record.lineAmountIncludeTax = undefined;
21318
+ record.itemModelName = undefined;
21319
+ record.itemModelNameSelf = undefined; // 中间数据
21316
21320
 
21317
21321
  between = _objectSpread2({}, record);
21318
21322
  between.itemName = getItemName(record, s.goodsListState.editGood);
@@ -21352,22 +21356,22 @@ var DrawerBody$2 = function DrawerBody() {
21352
21356
  s.goodsListState.importGoods.isVisibleDrawer = false;
21353
21357
 
21354
21358
  if (!s.goodsListState.isTaxIncluded) {
21355
- _context2.next = 26;
21359
+ _context2.next = 28;
21356
21360
  break;
21357
21361
  }
21358
21362
 
21359
- _context2.next = 24;
21363
+ _context2.next = 26;
21360
21364
  return updateUnitPriceExcludingTax(controller, s.goodsListState.form, record);
21361
21365
 
21362
- case 24:
21363
- _context2.next = 28;
21366
+ case 26:
21367
+ _context2.next = 30;
21364
21368
  break;
21365
21369
 
21366
- case 26:
21367
- _context2.next = 28;
21370
+ case 28:
21371
+ _context2.next = 30;
21368
21372
  return updateUnitPriceTax(controller, s.goodsListState.form, record);
21369
21373
 
21370
- case 28:
21374
+ case 30:
21371
21375
  case "end":
21372
21376
  return _context2.stop();
21373
21377
  }
package/dist/index.js CHANGED
@@ -10776,37 +10776,38 @@ function ItemCodeInput(props) {
10776
10776
  while (1) {
10777
10777
  switch (_context.prev = _context.next) {
10778
10778
  case 0:
10779
- _context.prev = 0;
10779
+ debugger;
10780
+ _context.prev = 1;
10780
10781
 
10781
10782
  if (!autoComplete.onItemCodeSearch) {
10782
- _context.next = 7;
10783
+ _context.next = 8;
10783
10784
  break;
10784
10785
  }
10785
10786
 
10786
10787
  _context.t0 = setOptions;
10787
- _context.next = 5;
10788
+ _context.next = 6;
10788
10789
  return autoComplete.onItemCodeSearch(searchText, editGood === null || editGood === void 0 ? void 0 : editGood.itemName);
10789
10790
 
10790
- case 5:
10791
+ case 6:
10791
10792
  _context.t1 = _context.sent;
10792
10793
  (0, _context.t0)(_context.t1);
10793
10794
 
10794
- case 7:
10795
- _context.next = 13;
10795
+ case 8:
10796
+ _context.next = 14;
10796
10797
  break;
10797
10798
 
10798
- case 9:
10799
- _context.prev = 9;
10800
- _context.t2 = _context["catch"](0);
10799
+ case 10:
10800
+ _context.prev = 10;
10801
+ _context.t2 = _context["catch"](1);
10801
10802
  setOptions([]);
10802
10803
  throw _context.t2;
10803
10804
 
10804
- case 13:
10805
+ case 14:
10805
10806
  case "end":
10806
10807
  return _context.stop();
10807
10808
  }
10808
10809
  }
10809
- }, _callee, null, [[0, 9]]);
10810
+ }, _callee, null, [[1, 10]]);
10810
10811
  }));
10811
10812
 
10812
10813
  return function (_x) {
@@ -10832,9 +10833,10 @@ function ItemCodeInput(props) {
10832
10833
  return _context2.abrupt("return");
10833
10834
 
10834
10835
  case 3:
10836
+ debugger;
10835
10837
  controller.importGoodsDrawer(record);
10836
10838
 
10837
- case 4:
10839
+ case 5:
10838
10840
  case "end":
10839
10841
  return _context2.stop();
10840
10842
  }
@@ -21322,7 +21324,9 @@ var DrawerBody$2 = function DrawerBody() {
21322
21324
  // 导入时清空之前输入的值,使用导入的单价和税率(参考税局系统)
21323
21325
  record.quantity = undefined;
21324
21326
  record.lineAmountExcludeTax = undefined;
21325
- record.lineAmountIncludeTax = undefined; // 中间数据
21327
+ record.lineAmountIncludeTax = undefined;
21328
+ record.itemModelName = undefined;
21329
+ record.itemModelNameSelf = undefined; // 中间数据
21326
21330
 
21327
21331
  between = _objectSpread2({}, record);
21328
21332
  between.itemName = getItemName(record, s.goodsListState.editGood);
@@ -21362,22 +21366,22 @@ var DrawerBody$2 = function DrawerBody() {
21362
21366
  s.goodsListState.importGoods.isVisibleDrawer = false;
21363
21367
 
21364
21368
  if (!s.goodsListState.isTaxIncluded) {
21365
- _context2.next = 26;
21369
+ _context2.next = 28;
21366
21370
  break;
21367
21371
  }
21368
21372
 
21369
- _context2.next = 24;
21373
+ _context2.next = 26;
21370
21374
  return updateUnitPriceExcludingTax(controller, s.goodsListState.form, record);
21371
21375
 
21372
- case 24:
21373
- _context2.next = 28;
21376
+ case 26:
21377
+ _context2.next = 30;
21374
21378
  break;
21375
21379
 
21376
- case 26:
21377
- _context2.next = 28;
21380
+ case 28:
21381
+ _context2.next = 30;
21378
21382
  return updateUnitPriceTax(controller, s.goodsListState.form, record);
21379
21383
 
21380
- case 28:
21384
+ case 30:
21381
21385
  case "end":
21382
21386
  return _context2.stop();
21383
21387
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kts-component-invoice-operate",
3
- "version": "3.2.57",
3
+ "version": "3.2.59",
4
4
  "scripts": {
5
5
  "start": "dumi dev",
6
6
  "docs:build": "dumi build",
@@ -21,6 +21,7 @@ export default function ItemCodeInput(props: { onChange?: (e: ChangeEvent<HTMLIn
21
21
  }, [])
22
22
 
23
23
  const onSearch = React.useCallback(async (searchText: string) => {
24
+ debugger;
24
25
  try {
25
26
  if (autoComplete.onItemCodeSearch) {
26
27
  setOptions(await autoComplete.onItemCodeSearch(searchText, editGood?.itemName))
@@ -34,7 +35,7 @@ export default function ItemCodeInput(props: { onChange?: (e: ChangeEvent<HTMLIn
34
35
  const onChangeAutoComplete = React.useCallback(async itemName => {
35
36
  const record = options.filter(e => e.itemCode === itemName)[0] as any;
36
37
  if (!record) return;
37
-
38
+ debugger;
38
39
  controller.importGoodsDrawer(record);
39
40
  }, [options, controller])
40
41
 
@@ -75,6 +75,8 @@ const DrawerBody = () => {
75
75
  record.quantity = undefined;
76
76
  record.lineAmountExcludeTax = undefined;
77
77
  record.lineAmountIncludeTax = undefined;
78
+ record.itemModelName = undefined;
79
+ record.itemModelNameSelf = undefined;
78
80
 
79
81
  // 中间数据
80
82
  const between = { ...record };