kts-component-invoice-operate 3.2.64 → 3.2.66

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
@@ -12062,7 +12062,7 @@ function Drag$1(props) {
12062
12062
  var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(s) {
12063
12063
  var _rowDom$dataset;
12064
12064
 
12065
- var rowDom, container, row, currentGood, currentIndex, containerIndex, _currentIndex, _containerIndex, t, rect, mouseY;
12065
+ var rowDom, container, row, currentGood, currentIndex, containerIndex, _currentIndex, _containerIndex, rect, mouseY;
12066
12066
 
12067
12067
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
12068
12068
  while (1) {
@@ -12143,13 +12143,11 @@ function Drag$1(props) {
12143
12143
  case 20:
12144
12144
  // 折扣行 拖动的 相当于 自己的 被折扣行
12145
12145
  if (row.lineAttribute === LineAttributeType$1.折扣行) {
12146
- t = s.goodsListState.goodsList.map(function (e) {
12147
- return e.$index;
12148
- }).indexOf(container) - 1;
12149
- s.goodsListState.drag.container = s.goodsListState.goodsList[t].$index;
12150
- s.goodsListState.drag.site = 'u';
12151
- } else if (row.lineAttribute === LineAttributeType$1.被折扣行) {
12146
+ // const t = s.goodsListState.goodsList.map(e => e.$index).indexOf(container) - 1;
12147
+ // s.goodsListState.drag.container = s.goodsListState.goodsList[t].$index;
12152
12148
  s.goodsListState.drag.site = 'd';
12149
+ } else if (row.lineAttribute === LineAttributeType$1.被折扣行) {
12150
+ s.goodsListState.drag.site = 'u';
12153
12151
  } else {
12154
12152
  rect = rowDom.getBoundingClientRect();
12155
12153
  mouseY = e.clientY - rect.top;
@@ -18274,7 +18272,7 @@ function Drag$2(props) {
18274
18272
  var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(s) {
18275
18273
  var _rowDom$dataset;
18276
18274
 
18277
- var rowDom, container, row, currentGood, currentIndex, containerIndex, _currentIndex, _containerIndex, t, rect, mouseY;
18275
+ var rowDom, container, row, currentGood, currentIndex, containerIndex, _currentIndex, _containerIndex, rect, mouseY;
18278
18276
 
18279
18277
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
18280
18278
  while (1) {
@@ -18355,13 +18353,11 @@ function Drag$2(props) {
18355
18353
  case 20:
18356
18354
  // 折扣行 拖动的 相当于 自己的 被折扣行
18357
18355
  if (row.lineAttribute === LineAttributeType$1.折扣行) {
18358
- t = s.goodsListState.goodsList.map(function (e) {
18359
- return e.$index;
18360
- }).indexOf(container) - 1;
18361
- s.goodsListState.drag.container = s.goodsListState.goodsList[t].$index;
18362
- s.goodsListState.drag.site = 'u';
18363
- } else if (row.lineAttribute === LineAttributeType$1.被折扣行) {
18356
+ // const t = s.goodsListState.goodsList.map(e => e.$index).indexOf(container) - 1;
18357
+ // s.goodsListState.drag.container = s.goodsListState.goodsList[t].$index;
18364
18358
  s.goodsListState.drag.site = 'd';
18359
+ } else if (row.lineAttribute === LineAttributeType$1.被折扣行) {
18360
+ s.goodsListState.drag.site = 'u';
18365
18361
  } else {
18366
18362
  rect = rowDom.getBoundingClientRect();
18367
18363
  mouseY = e.clientY - rect.top;
package/dist/index.js CHANGED
@@ -12072,7 +12072,7 @@ function Drag$1(props) {
12072
12072
  var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(s) {
12073
12073
  var _rowDom$dataset;
12074
12074
 
12075
- var rowDom, container, row, currentGood, currentIndex, containerIndex, _currentIndex, _containerIndex, t, rect, mouseY;
12075
+ var rowDom, container, row, currentGood, currentIndex, containerIndex, _currentIndex, _containerIndex, rect, mouseY;
12076
12076
 
12077
12077
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
12078
12078
  while (1) {
@@ -12153,13 +12153,11 @@ function Drag$1(props) {
12153
12153
  case 20:
12154
12154
  // 折扣行 拖动的 相当于 自己的 被折扣行
12155
12155
  if (row.lineAttribute === LineAttributeType$1.折扣行) {
12156
- t = s.goodsListState.goodsList.map(function (e) {
12157
- return e.$index;
12158
- }).indexOf(container) - 1;
12159
- s.goodsListState.drag.container = s.goodsListState.goodsList[t].$index;
12160
- s.goodsListState.drag.site = 'u';
12161
- } else if (row.lineAttribute === LineAttributeType$1.被折扣行) {
12156
+ // const t = s.goodsListState.goodsList.map(e => e.$index).indexOf(container) - 1;
12157
+ // s.goodsListState.drag.container = s.goodsListState.goodsList[t].$index;
12162
12158
  s.goodsListState.drag.site = 'd';
12159
+ } else if (row.lineAttribute === LineAttributeType$1.被折扣行) {
12160
+ s.goodsListState.drag.site = 'u';
12163
12161
  } else {
12164
12162
  rect = rowDom.getBoundingClientRect();
12165
12163
  mouseY = e.clientY - rect.top;
@@ -18284,7 +18282,7 @@ function Drag$2(props) {
18284
18282
  var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(s) {
18285
18283
  var _rowDom$dataset;
18286
18284
 
18287
- var rowDom, container, row, currentGood, currentIndex, containerIndex, _currentIndex, _containerIndex, t, rect, mouseY;
18285
+ var rowDom, container, row, currentGood, currentIndex, containerIndex, _currentIndex, _containerIndex, rect, mouseY;
18288
18286
 
18289
18287
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
18290
18288
  while (1) {
@@ -18365,13 +18363,11 @@ function Drag$2(props) {
18365
18363
  case 20:
18366
18364
  // 折扣行 拖动的 相当于 自己的 被折扣行
18367
18365
  if (row.lineAttribute === LineAttributeType$1.折扣行) {
18368
- t = s.goodsListState.goodsList.map(function (e) {
18369
- return e.$index;
18370
- }).indexOf(container) - 1;
18371
- s.goodsListState.drag.container = s.goodsListState.goodsList[t].$index;
18372
- s.goodsListState.drag.site = 'u';
18373
- } else if (row.lineAttribute === LineAttributeType$1.被折扣行) {
18366
+ // const t = s.goodsListState.goodsList.map(e => e.$index).indexOf(container) - 1;
18367
+ // s.goodsListState.drag.container = s.goodsListState.goodsList[t].$index;
18374
18368
  s.goodsListState.drag.site = 'd';
18369
+ } else if (row.lineAttribute === LineAttributeType$1.被折扣行) {
18370
+ s.goodsListState.drag.site = 'u';
18375
18371
  } else {
18376
18372
  rect = rowDom.getBoundingClientRect();
18377
18373
  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.64",
3
+ "version": "3.2.66",
4
4
  "scripts": {
5
5
  "dev": "dumi dev",
6
6
  "start": "dumi dev",
@@ -72,11 +72,11 @@ export default function Drag(props: IDragProps) {
72
72
 
73
73
  // 折扣行 拖动的 相当于 自己的 被折扣行
74
74
  if (row.lineAttribute === LineAttributeType.折扣行) {
75
- const t = s.goodsListState.goodsList.map(e => e.$index).indexOf(container) - 1;
76
- s.goodsListState.drag.container = s.goodsListState.goodsList[t].$index;
77
- s.goodsListState.drag.site = 'u'
78
- } else if (row.lineAttribute === LineAttributeType.被折扣行) {
75
+ // const t = s.goodsListState.goodsList.map(e => e.$index).indexOf(container) - 1;
76
+ // s.goodsListState.drag.container = s.goodsListState.goodsList[t].$index;
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;
@@ -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
@@ -72,11 +72,11 @@ export default function Drag(props: IDragProps) {
72
72
 
73
73
  // 折扣行 拖动的 相当于 自己的 被折扣行
74
74
  if (row.lineAttribute === LineAttributeType.折扣行) {
75
- const t = s.goodsListState.goodsList.map(e => e.$index).indexOf(container) - 1;
76
- s.goodsListState.drag.container = s.goodsListState.goodsList[t].$index;
77
- s.goodsListState.drag.site = 'u'
78
- } else if (row.lineAttribute === LineAttributeType.被折扣行) {
75
+ // const t = s.goodsListState.goodsList.map(e => e.$index).indexOf(container) - 1;
76
+ // s.goodsListState.drag.container = s.goodsListState.goodsList[t].$index;
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;