kts-component-invoice-operate 3.2.63 → 3.2.65

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
@@ -1542,6 +1542,7 @@ var addGoodDiscountV2 = /*#__PURE__*/(function () {
1542
1542
  lineAttribute: LineAttributeType$1.折扣行,
1543
1543
  taxRate: good.taxRate,
1544
1544
  itemName: good.itemName,
1545
+ shorthand: good.shorthand,
1545
1546
  taxAmount: -1 * taxAmount,
1546
1547
  lineAmountExcludeTax: -1 * lineAmountExcludeTax,
1547
1548
  lineAmountIncludeTax: -1 * e.discolineAmountunt,
@@ -12146,9 +12147,9 @@ function Drag$1(props) {
12146
12147
  return e.$index;
12147
12148
  }).indexOf(container) - 1;
12148
12149
  s.goodsListState.drag.container = s.goodsListState.goodsList[t].$index;
12149
- s.goodsListState.drag.site = 'u';
12150
- } else if (row.lineAttribute === LineAttributeType$1.被折扣行) {
12151
12150
  s.goodsListState.drag.site = 'd';
12151
+ } else if (row.lineAttribute === LineAttributeType$1.被折扣行) {
12152
+ s.goodsListState.drag.site = 'u';
12152
12153
  } else {
12153
12154
  rect = rowDom.getBoundingClientRect();
12154
12155
  mouseY = e.clientY - rect.top;
@@ -18358,9 +18359,9 @@ function Drag$2(props) {
18358
18359
  return e.$index;
18359
18360
  }).indexOf(container) - 1;
18360
18361
  s.goodsListState.drag.container = s.goodsListState.goodsList[t].$index;
18361
- s.goodsListState.drag.site = 'u';
18362
- } else if (row.lineAttribute === LineAttributeType$1.被折扣行) {
18363
18362
  s.goodsListState.drag.site = 'd';
18363
+ } else if (row.lineAttribute === LineAttributeType$1.被折扣行) {
18364
+ s.goodsListState.drag.site = 'u';
18364
18365
  } else {
18365
18366
  rect = rowDom.getBoundingClientRect();
18366
18367
  mouseY = e.clientY - rect.top;
package/dist/index.js CHANGED
@@ -1552,6 +1552,7 @@ var addGoodDiscountV2 = /*#__PURE__*/(function () {
1552
1552
  lineAttribute: LineAttributeType$1.折扣行,
1553
1553
  taxRate: good.taxRate,
1554
1554
  itemName: good.itemName,
1555
+ shorthand: good.shorthand,
1555
1556
  taxAmount: -1 * taxAmount,
1556
1557
  lineAmountExcludeTax: -1 * lineAmountExcludeTax,
1557
1558
  lineAmountIncludeTax: -1 * e.discolineAmountunt,
@@ -12156,9 +12157,9 @@ function Drag$1(props) {
12156
12157
  return e.$index;
12157
12158
  }).indexOf(container) - 1;
12158
12159
  s.goodsListState.drag.container = s.goodsListState.goodsList[t].$index;
12159
- s.goodsListState.drag.site = 'u';
12160
- } else if (row.lineAttribute === LineAttributeType$1.被折扣行) {
12161
12160
  s.goodsListState.drag.site = 'd';
12161
+ } else if (row.lineAttribute === LineAttributeType$1.被折扣行) {
12162
+ s.goodsListState.drag.site = 'u';
12162
12163
  } else {
12163
12164
  rect = rowDom.getBoundingClientRect();
12164
12165
  mouseY = e.clientY - rect.top;
@@ -18368,9 +18369,9 @@ function Drag$2(props) {
18368
18369
  return e.$index;
18369
18370
  }).indexOf(container) - 1;
18370
18371
  s.goodsListState.drag.container = s.goodsListState.goodsList[t].$index;
18371
- s.goodsListState.drag.site = 'u';
18372
- } else if (row.lineAttribute === LineAttributeType$1.被折扣行) {
18373
18372
  s.goodsListState.drag.site = 'd';
18373
+ } else if (row.lineAttribute === LineAttributeType$1.被折扣行) {
18374
+ s.goodsListState.drag.site = 'u';
18374
18375
  } else {
18375
18376
  rect = rowDom.getBoundingClientRect();
18376
18377
  mouseY = e.clientY - rect.top;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kts-component-invoice-operate",
3
- "version": "3.2.63",
3
+ "version": "3.2.65",
4
4
  "scripts": {
5
5
  "dev": "dumi dev",
6
6
  "start": "dumi dev",
@@ -41,6 +41,7 @@ export default async (state: InvoiceControllerState, options?: IOptions[]) => {
41
41
  lineAttribute: LineAttributeType.折扣行,
42
42
  taxRate: good.taxRate,
43
43
  itemName: good.itemName,
44
+ shorthand: good.shorthand,
44
45
 
45
46
  taxAmount: -1 * taxAmount,
46
47
  lineAmountExcludeTax: -1 * lineAmountExcludeTax,
@@ -74,9 +74,9 @@ export default function Drag(props: IDragProps) {
74
74
  if (row.lineAttribute === LineAttributeType.折扣行) {
75
75
  const t = s.goodsListState.goodsList.map(e => e.$index).indexOf(container) - 1;
76
76
  s.goodsListState.drag.container = s.goodsListState.goodsList[t].$index;
77
- s.goodsListState.drag.site = 'u'
78
- } else if (row.lineAttribute === LineAttributeType.被折扣行) {
79
77
  s.goodsListState.drag.site = 'd'
78
+ } else if (row.lineAttribute === LineAttributeType.被折扣行) {
79
+ s.goodsListState.drag.site = 'u'
80
80
  } else {
81
81
  const rect = rowDom.getBoundingClientRect();
82
82
  const mouseY = e.clientY - rect.top;
@@ -21,7 +21,7 @@ export default function uaeSalesDiscount() {
21
21
 
22
22
  if (selectedGood.filter(e => e?.lineAttribute === LineAttributeType.折扣行 || e?.lineAttribute === LineAttributeType.被折扣行).length > 0) {
23
23
  const content = '不能选择折扣行和被折扣行';
24
- message.error({ content, key: content })
24
+ message.error({ content, key: content });
25
25
  return;
26
26
  }
27
27
 
@@ -6,8 +6,8 @@ import { Button } from "kts-components-antd-x3";
6
6
  import { IGood, Invoice } from '../../../../../../../..';
7
7
  import mounting from "../../../../../../../tools/mounting";
8
8
  import { LineAttributeType } from "../../../../../../../InvoiceController";
9
- import './index.less';
10
9
  import { Popover } from "kts-xui";
10
+ import './index.less';
11
11
 
12
12
  export interface IDragProps {
13
13
  record: IGood
@@ -74,9 +74,9 @@ export default function Drag(props: IDragProps) {
74
74
  if (row.lineAttribute === LineAttributeType.折扣行) {
75
75
  const t = s.goodsListState.goodsList.map(e => e.$index).indexOf(container) - 1;
76
76
  s.goodsListState.drag.container = s.goodsListState.goodsList[t].$index;
77
- s.goodsListState.drag.site = 'u'
78
- } else if (row.lineAttribute === LineAttributeType.被折扣行) {
79
77
  s.goodsListState.drag.site = 'd'
78
+ } else if (row.lineAttribute === LineAttributeType.被折扣行) {
79
+ s.goodsListState.drag.site = 'u'
80
80
  } else {
81
81
  const rect = rowDom.getBoundingClientRect();
82
82
  const mouseY = e.clientY - rect.top;