kts-component-invoice-operate 3.2.86 → 3.2.87
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
|
@@ -10350,10 +10350,6 @@ var useDelItem = (function (goods) {
|
|
|
10350
10350
|
controller.delGood(goods.$index);
|
|
10351
10351
|
}, [controller, goods.$index]);
|
|
10352
10352
|
|
|
10353
|
-
if (goods.lineAttribute === LineAttributeType$1.折让行) {
|
|
10354
|
-
return undefined;
|
|
10355
|
-
}
|
|
10356
|
-
|
|
10357
10353
|
if (goods.lineAttribute === LineAttributeType$1.被折扣行) {
|
|
10358
10354
|
return undefined;
|
|
10359
10355
|
}
|
|
@@ -14153,7 +14149,7 @@ var useDelRowButton = (function () {
|
|
|
14153
14149
|
return s.goodsListState.selectedGoodIndex.some(function (e) {
|
|
14154
14150
|
var good = s.goodsListState.goodsMap.get(e);
|
|
14155
14151
|
if (!good) return true;
|
|
14156
|
-
return good.lineAttribute
|
|
14152
|
+
return good.lineAttribute === LineAttributeType$1.折扣行;
|
|
14157
14153
|
});
|
|
14158
14154
|
}, []);
|
|
14159
14155
|
var onClick = React.useCallback(function () {
|
package/dist/index.js
CHANGED
|
@@ -10360,10 +10360,6 @@ var useDelItem = (function (goods) {
|
|
|
10360
10360
|
controller.delGood(goods.$index);
|
|
10361
10361
|
}, [controller, goods.$index]);
|
|
10362
10362
|
|
|
10363
|
-
if (goods.lineAttribute === LineAttributeType$1.折让行) {
|
|
10364
|
-
return undefined;
|
|
10365
|
-
}
|
|
10366
|
-
|
|
10367
10363
|
if (goods.lineAttribute === LineAttributeType$1.被折扣行) {
|
|
10368
10364
|
return undefined;
|
|
10369
10365
|
}
|
|
@@ -14163,7 +14159,7 @@ var useDelRowButton = (function () {
|
|
|
14163
14159
|
return s.goodsListState.selectedGoodIndex.some(function (e) {
|
|
14164
14160
|
var good = s.goodsListState.goodsMap.get(e);
|
|
14165
14161
|
if (!good) return true;
|
|
14166
|
-
return good.lineAttribute
|
|
14162
|
+
return good.lineAttribute === LineAttributeType$1.折扣行;
|
|
14167
14163
|
});
|
|
14168
14164
|
}, []);
|
|
14169
14165
|
var onClick = React__default['default'].useCallback(function () {
|
package/package.json
CHANGED
package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/RowMenu/hook/useDelItem/index.tsx
CHANGED
|
@@ -17,10 +17,6 @@ export default (goods: IGood) => {
|
|
|
17
17
|
controller.delGood(goods.$index);
|
|
18
18
|
}, [controller, goods.$index]);
|
|
19
19
|
|
|
20
|
-
if (goods.lineAttribute === LineAttributeType.折让行) {
|
|
21
|
-
return undefined;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
20
|
if (goods.lineAttribute === LineAttributeType.被折扣行) {
|
|
25
21
|
return undefined;
|
|
26
22
|
}
|
|
@@ -18,7 +18,7 @@ export default () => {
|
|
|
18
18
|
return s.goodsListState.selectedGoodIndex.some((e) => {
|
|
19
19
|
const good = s.goodsListState.goodsMap.get(e);
|
|
20
20
|
if (!good) return true;
|
|
21
|
-
return good.lineAttribute
|
|
21
|
+
return good.lineAttribute === LineAttributeType.折扣行;
|
|
22
22
|
});
|
|
23
23
|
}, []);
|
|
24
24
|
|