kts-component-invoice-operate 2.0.6 → 2.0.9
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/Invoice/InvoiceController/fns/getGoodsSearch.d.ts +8 -1
- package/dist/index.esm.js +35 -19
- package/dist/index.js +35 -19
- package/docs-dist/umi.css +1 -1
- package/docs-dist/umi.js +1 -1
- package/package.json +1 -1
- package/src/Invoice/InvoiceController/fns/getGoodsSearch.ts +9 -2
- package/src/Invoice/ui/GoodsList/hook/useColumns/index.tsx +5 -5
- package/src/Invoice/ui/GoodsList/hook/useRowSelection/index.tsx +5 -9
- package/src/Invoice/ui/GoodsList/index.tsx +3 -1
- package/src/Invoice/ui/GoodsList/ui/Search/index.less +1 -1
- package/src/Invoice/ui/GoodsList/ui/Search/index.tsx +5 -2
|
@@ -1,2 +1,9 @@
|
|
|
1
1
|
import IGood from "../InvoiceControllerState/GoodsListState/IGood";
|
|
2
|
-
|
|
2
|
+
/**
|
|
3
|
+
* 计算搜索商品
|
|
4
|
+
* @param goodsList 被搜索列表
|
|
5
|
+
* @param search 搜索条件
|
|
6
|
+
* @param isTaxIncluded 是否含税
|
|
7
|
+
* @returns
|
|
8
|
+
*/
|
|
9
|
+
export default function getGoodsSearch(goodsList: IGood[], search: string, isTaxIncluded: boolean): IGood[];
|
package/dist/index.esm.js
CHANGED
|
@@ -1520,16 +1520,23 @@ var validateFields = function validateFields(form) {
|
|
|
1520
1520
|
});
|
|
1521
1521
|
};
|
|
1522
1522
|
|
|
1523
|
-
|
|
1523
|
+
/**
|
|
1524
|
+
* 计算搜索商品
|
|
1525
|
+
* @param goodsList 被搜索列表
|
|
1526
|
+
* @param search 搜索条件
|
|
1527
|
+
* @param isTaxIncluded 是否含税
|
|
1528
|
+
* @returns
|
|
1529
|
+
*/
|
|
1530
|
+
function getGoodsSearch(goodsList, search, isTaxIncluded) {
|
|
1524
1531
|
if (!search) return goodsList;
|
|
1525
1532
|
return goodsList.filter(function (e) {
|
|
1526
|
-
var _e$itemName$indexOf, _e$itemName, _e$itemModelName$inde, _e$itemModelName;
|
|
1533
|
+
var _e$itemName$indexOf, _e$itemName, _e$itemModelName$inde, _e$itemModelName, _e$lineAmountIncludeT, _e$lineAmountExcludeT;
|
|
1527
1534
|
|
|
1528
1535
|
if (((_e$itemName$indexOf = (_e$itemName = e.itemName) === null || _e$itemName === void 0 ? void 0 : _e$itemName.indexOf(search)) !== null && _e$itemName$indexOf !== void 0 ? _e$itemName$indexOf : -1) >= 0) {
|
|
1529
1536
|
return true;
|
|
1530
1537
|
} else if (((_e$itemModelName$inde = (_e$itemModelName = e.itemModelName) === null || _e$itemModelName === void 0 ? void 0 : _e$itemModelName.indexOf(search)) !== null && _e$itemModelName$inde !== void 0 ? _e$itemModelName$inde : -1) >= 0) {
|
|
1531
1538
|
return true;
|
|
1532
|
-
} else if ("".concat(e.lineAmountIncludeTax).indexOf(search) >= 0) {
|
|
1539
|
+
} else if ("".concat(isTaxIncluded ? (_e$lineAmountIncludeT = e.lineAmountIncludeTax) === null || _e$lineAmountIncludeT === void 0 ? void 0 : _e$lineAmountIncludeT.toFixed(2) : (_e$lineAmountExcludeT = e.lineAmountExcludeTax) === null || _e$lineAmountExcludeT === void 0 ? void 0 : _e$lineAmountExcludeT.toFixed(2)).indexOf(search) >= 0) {
|
|
1533
1540
|
return true;
|
|
1534
1541
|
} else {
|
|
1535
1542
|
return false;
|
|
@@ -2240,7 +2247,7 @@ function SvgMagnifier(props) {
|
|
|
2240
2247
|
})));
|
|
2241
2248
|
}
|
|
2242
2249
|
|
|
2243
|
-
var css_248z$4 = ".kts-invoice-operate-goods-list-able-list .kts-invoice-operate-goods-list-search {\n width:
|
|
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";
|
|
2244
2251
|
styleInject(css_248z$4);
|
|
2245
2252
|
|
|
2246
2253
|
function Search() {
|
|
@@ -2254,6 +2261,11 @@ function Search() {
|
|
|
2254
2261
|
var readOnly = controller.useMemo(function (s) {
|
|
2255
2262
|
return !!s.goodsListState.editGood;
|
|
2256
2263
|
}, []);
|
|
2264
|
+
/** 是否含税 */
|
|
2265
|
+
|
|
2266
|
+
var isTaxIncluded = controller.useMemo(function (s) {
|
|
2267
|
+
return s.goodsListState.isTaxIncluded;
|
|
2268
|
+
}, []);
|
|
2257
2269
|
var onClick = React.useCallback( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
2258
2270
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
2259
2271
|
while (1) {
|
|
@@ -2292,7 +2304,7 @@ function Search() {
|
|
|
2292
2304
|
while (1) {
|
|
2293
2305
|
switch (_context2.prev = _context2.next) {
|
|
2294
2306
|
case 0:
|
|
2295
|
-
s.goodsListState.searchValue = value.
|
|
2307
|
+
s.goodsListState.searchValue = value.trim();
|
|
2296
2308
|
|
|
2297
2309
|
case 1:
|
|
2298
2310
|
case "end":
|
|
@@ -2312,7 +2324,7 @@ function Search() {
|
|
|
2312
2324
|
readOnly: readOnly,
|
|
2313
2325
|
value: value,
|
|
2314
2326
|
className: "kts-invoice-operate-goods-list-search",
|
|
2315
|
-
placeholder: "\u8BF7\u60A8\u8F93\u5165\u8D27\u7269\u540D\u79F0\u3001\u89C4\u683C\u578B\u53F7\u3001\u91D1\u989D(
|
|
2327
|
+
placeholder: "\u8BF7\u60A8\u8F93\u5165\u8D27\u7269\u540D\u79F0\u3001\u89C4\u683C\u578B\u53F7\u3001\u91D1\u989D(".concat(isTaxIncluded ? '含税' : '不含税', ")\u641C\u7D22"),
|
|
2316
2328
|
prefix: React.createElement(Icon, {
|
|
2317
2329
|
component: SvgMagnifier,
|
|
2318
2330
|
style: {
|
|
@@ -10325,7 +10337,6 @@ var useColumns = (function (form) {
|
|
|
10325
10337
|
dataSource: unitList,
|
|
10326
10338
|
onChange: function () {
|
|
10327
10339
|
var _onChange2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
10328
|
-
var key, value;
|
|
10329
10340
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
10330
10341
|
while (1) {
|
|
10331
10342
|
switch (_context4.prev = _context4.next) {
|
|
@@ -10334,12 +10345,14 @@ var useColumns = (function (form) {
|
|
|
10334
10345
|
return controller.wait();
|
|
10335
10346
|
|
|
10336
10347
|
case 2:
|
|
10337
|
-
key = isMyShow ? 'unit' : 'unitOther';
|
|
10338
|
-
value = {};
|
|
10339
|
-
value[key] = form.getFieldsValue().unit;
|
|
10340
|
-
controller.setEditGood(
|
|
10348
|
+
// const key = isMyShow ? 'unit' : 'unitOther';
|
|
10349
|
+
// const value = {} as any;
|
|
10350
|
+
// value[key] = form.getFieldsValue().unit;
|
|
10351
|
+
controller.setEditGood({
|
|
10352
|
+
unit: form.getFieldsValue().unit
|
|
10353
|
+
});
|
|
10341
10354
|
|
|
10342
|
-
case
|
|
10355
|
+
case 3:
|
|
10343
10356
|
case "end":
|
|
10344
10357
|
return _context4.stop();
|
|
10345
10358
|
}
|
|
@@ -10720,7 +10733,7 @@ var useColumns = (function (form) {
|
|
|
10720
10733
|
style: {
|
|
10721
10734
|
padding: '0 10px'
|
|
10722
10735
|
}
|
|
10723
|
-
}, parseFloat(value).toFixed(2));
|
|
10736
|
+
}, formatSearch(parseFloat(value).toFixed(2), searchValue));
|
|
10724
10737
|
}
|
|
10725
10738
|
}
|
|
10726
10739
|
}, {
|
|
@@ -11192,7 +11205,7 @@ var useRowSelection = (function () {
|
|
|
11192
11205
|
|
|
11193
11206
|
var isAll = controller.useMemo(function (s) {
|
|
11194
11207
|
if (s.goodsListState.selectedGoodIndex.length <= 0) return false;
|
|
11195
|
-
var seeGoodsIndex = controller.getGoodsSearch(s.goodsListState.goodsList, s.goodsListState.searchValue).map(function (e) {
|
|
11208
|
+
var seeGoodsIndex = controller.getGoodsSearch(s.goodsListState.goodsList, s.goodsListState.searchValue, s.goodsListState.isTaxIncluded).map(function (e) {
|
|
11196
11209
|
return e.$index;
|
|
11197
11210
|
});
|
|
11198
11211
|
var selectedGoodIndex = s.goodsListState.selectedGoodIndex.filter(function (e) {
|
|
@@ -11203,7 +11216,7 @@ var useRowSelection = (function () {
|
|
|
11203
11216
|
return selectedGoodIndex.length === seeGoodsIndex.length;
|
|
11204
11217
|
}, []);
|
|
11205
11218
|
var indeterminate = controller.useMemo(function (s) {
|
|
11206
|
-
var seeGoodsIndex = controller.getGoodsSearch(s.goodsListState.goodsList, s.goodsListState.searchValue).map(function (e) {
|
|
11219
|
+
var seeGoodsIndex = controller.getGoodsSearch(s.goodsListState.goodsList, s.goodsListState.searchValue, s.goodsListState.isTaxIncluded).map(function (e) {
|
|
11207
11220
|
return e.$index;
|
|
11208
11221
|
});
|
|
11209
11222
|
var selectedGoodIndex = s.goodsListState.selectedGoodIndex.filter(function (e) {
|
|
@@ -11234,7 +11247,7 @@ var useRowSelection = (function () {
|
|
|
11234
11247
|
while (1) {
|
|
11235
11248
|
switch (_context.prev = _context.next) {
|
|
11236
11249
|
case 0:
|
|
11237
|
-
seeGoodsIndex = controller.getGoodsSearch(s.goodsListState.goodsList, s.goodsListState.searchValue).map(function (e) {
|
|
11250
|
+
seeGoodsIndex = controller.getGoodsSearch(s.goodsListState.goodsList, s.goodsListState.searchValue, s.goodsListState.isTaxIncluded).map(function (e) {
|
|
11238
11251
|
return e.$index;
|
|
11239
11252
|
});
|
|
11240
11253
|
s.goodsListState.selectedGoodIndex = s.goodsListState.selectedGoodIndex.filter(function (e) {
|
|
@@ -11269,7 +11282,7 @@ var useRowSelection = (function () {
|
|
|
11269
11282
|
while (1) {
|
|
11270
11283
|
switch (_context2.prev = _context2.next) {
|
|
11271
11284
|
case 0:
|
|
11272
|
-
seeGoodsIndex = controller.getGoodsSearch(s.goodsListState.goodsList, s.goodsListState.searchValue).map(function (e) {
|
|
11285
|
+
seeGoodsIndex = controller.getGoodsSearch(s.goodsListState.goodsList, s.goodsListState.searchValue, s.goodsListState.isTaxIncluded).map(function (e) {
|
|
11273
11286
|
return e.$index;
|
|
11274
11287
|
});
|
|
11275
11288
|
s.goodsListState.selectedGoodIndex = [].concat(_toConsumableArray(s.goodsListState.selectedGoodIndex), _toConsumableArray(seeGoodsIndex));
|
|
@@ -11496,9 +11509,12 @@ var Main = decorator(Form.create())(function (props) {
|
|
|
11496
11509
|
var searchValue = controller.useMemo(function (s) {
|
|
11497
11510
|
return s.goodsListState.searchValue;
|
|
11498
11511
|
}, []);
|
|
11512
|
+
var isTaxIncluded = controller.useMemo(function (s) {
|
|
11513
|
+
return s.goodsListState.isTaxIncluded;
|
|
11514
|
+
}, []);
|
|
11499
11515
|
var dataSourceSearch = React.useMemo(function () {
|
|
11500
|
-
return controller.getGoodsSearch(dataSource, searchValue);
|
|
11501
|
-
}, [dataSource, searchValue, controller]);
|
|
11516
|
+
return controller.getGoodsSearch(dataSource, searchValue, isTaxIncluded);
|
|
11517
|
+
}, [dataSource, searchValue, controller, isTaxIncluded]);
|
|
11502
11518
|
/** 表格行事件 */
|
|
11503
11519
|
|
|
11504
11520
|
var _onRow = useOnRow();
|
package/dist/index.js
CHANGED
|
@@ -1530,16 +1530,23 @@ var validateFields = function validateFields(form) {
|
|
|
1530
1530
|
});
|
|
1531
1531
|
};
|
|
1532
1532
|
|
|
1533
|
-
|
|
1533
|
+
/**
|
|
1534
|
+
* 计算搜索商品
|
|
1535
|
+
* @param goodsList 被搜索列表
|
|
1536
|
+
* @param search 搜索条件
|
|
1537
|
+
* @param isTaxIncluded 是否含税
|
|
1538
|
+
* @returns
|
|
1539
|
+
*/
|
|
1540
|
+
function getGoodsSearch(goodsList, search, isTaxIncluded) {
|
|
1534
1541
|
if (!search) return goodsList;
|
|
1535
1542
|
return goodsList.filter(function (e) {
|
|
1536
|
-
var _e$itemName$indexOf, _e$itemName, _e$itemModelName$inde, _e$itemModelName;
|
|
1543
|
+
var _e$itemName$indexOf, _e$itemName, _e$itemModelName$inde, _e$itemModelName, _e$lineAmountIncludeT, _e$lineAmountExcludeT;
|
|
1537
1544
|
|
|
1538
1545
|
if (((_e$itemName$indexOf = (_e$itemName = e.itemName) === null || _e$itemName === void 0 ? void 0 : _e$itemName.indexOf(search)) !== null && _e$itemName$indexOf !== void 0 ? _e$itemName$indexOf : -1) >= 0) {
|
|
1539
1546
|
return true;
|
|
1540
1547
|
} else if (((_e$itemModelName$inde = (_e$itemModelName = e.itemModelName) === null || _e$itemModelName === void 0 ? void 0 : _e$itemModelName.indexOf(search)) !== null && _e$itemModelName$inde !== void 0 ? _e$itemModelName$inde : -1) >= 0) {
|
|
1541
1548
|
return true;
|
|
1542
|
-
} else if ("".concat(e.lineAmountIncludeTax).indexOf(search) >= 0) {
|
|
1549
|
+
} else if ("".concat(isTaxIncluded ? (_e$lineAmountIncludeT = e.lineAmountIncludeTax) === null || _e$lineAmountIncludeT === void 0 ? void 0 : _e$lineAmountIncludeT.toFixed(2) : (_e$lineAmountExcludeT = e.lineAmountExcludeTax) === null || _e$lineAmountExcludeT === void 0 ? void 0 : _e$lineAmountExcludeT.toFixed(2)).indexOf(search) >= 0) {
|
|
1543
1550
|
return true;
|
|
1544
1551
|
} else {
|
|
1545
1552
|
return false;
|
|
@@ -2250,7 +2257,7 @@ function SvgMagnifier(props) {
|
|
|
2250
2257
|
})));
|
|
2251
2258
|
}
|
|
2252
2259
|
|
|
2253
|
-
var css_248z$4 = ".kts-invoice-operate-goods-list-able-list .kts-invoice-operate-goods-list-search {\n width:
|
|
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";
|
|
2254
2261
|
styleInject(css_248z$4);
|
|
2255
2262
|
|
|
2256
2263
|
function Search() {
|
|
@@ -2264,6 +2271,11 @@ function Search() {
|
|
|
2264
2271
|
var readOnly = controller.useMemo(function (s) {
|
|
2265
2272
|
return !!s.goodsListState.editGood;
|
|
2266
2273
|
}, []);
|
|
2274
|
+
/** 是否含税 */
|
|
2275
|
+
|
|
2276
|
+
var isTaxIncluded = controller.useMemo(function (s) {
|
|
2277
|
+
return s.goodsListState.isTaxIncluded;
|
|
2278
|
+
}, []);
|
|
2267
2279
|
var onClick = React__default['default'].useCallback( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
2268
2280
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
2269
2281
|
while (1) {
|
|
@@ -2302,7 +2314,7 @@ function Search() {
|
|
|
2302
2314
|
while (1) {
|
|
2303
2315
|
switch (_context2.prev = _context2.next) {
|
|
2304
2316
|
case 0:
|
|
2305
|
-
s.goodsListState.searchValue = value.
|
|
2317
|
+
s.goodsListState.searchValue = value.trim();
|
|
2306
2318
|
|
|
2307
2319
|
case 1:
|
|
2308
2320
|
case "end":
|
|
@@ -2322,7 +2334,7 @@ function Search() {
|
|
|
2322
2334
|
readOnly: readOnly,
|
|
2323
2335
|
value: value,
|
|
2324
2336
|
className: "kts-invoice-operate-goods-list-search",
|
|
2325
|
-
placeholder: "\u8BF7\u60A8\u8F93\u5165\u8D27\u7269\u540D\u79F0\u3001\u89C4\u683C\u578B\u53F7\u3001\u91D1\u989D(
|
|
2337
|
+
placeholder: "\u8BF7\u60A8\u8F93\u5165\u8D27\u7269\u540D\u79F0\u3001\u89C4\u683C\u578B\u53F7\u3001\u91D1\u989D(".concat(isTaxIncluded ? '含税' : '不含税', ")\u641C\u7D22"),
|
|
2326
2338
|
prefix: React__default['default'].createElement(ktsComponentsAntdX3.Icon, {
|
|
2327
2339
|
component: SvgMagnifier,
|
|
2328
2340
|
style: {
|
|
@@ -10335,7 +10347,6 @@ var useColumns = (function (form) {
|
|
|
10335
10347
|
dataSource: unitList,
|
|
10336
10348
|
onChange: function () {
|
|
10337
10349
|
var _onChange2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
10338
|
-
var key, value;
|
|
10339
10350
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
10340
10351
|
while (1) {
|
|
10341
10352
|
switch (_context4.prev = _context4.next) {
|
|
@@ -10344,12 +10355,14 @@ var useColumns = (function (form) {
|
|
|
10344
10355
|
return controller.wait();
|
|
10345
10356
|
|
|
10346
10357
|
case 2:
|
|
10347
|
-
key = isMyShow ? 'unit' : 'unitOther';
|
|
10348
|
-
value = {};
|
|
10349
|
-
value[key] = form.getFieldsValue().unit;
|
|
10350
|
-
controller.setEditGood(
|
|
10358
|
+
// const key = isMyShow ? 'unit' : 'unitOther';
|
|
10359
|
+
// const value = {} as any;
|
|
10360
|
+
// value[key] = form.getFieldsValue().unit;
|
|
10361
|
+
controller.setEditGood({
|
|
10362
|
+
unit: form.getFieldsValue().unit
|
|
10363
|
+
});
|
|
10351
10364
|
|
|
10352
|
-
case
|
|
10365
|
+
case 3:
|
|
10353
10366
|
case "end":
|
|
10354
10367
|
return _context4.stop();
|
|
10355
10368
|
}
|
|
@@ -10730,7 +10743,7 @@ var useColumns = (function (form) {
|
|
|
10730
10743
|
style: {
|
|
10731
10744
|
padding: '0 10px'
|
|
10732
10745
|
}
|
|
10733
|
-
}, parseFloat(value).toFixed(2));
|
|
10746
|
+
}, formatSearch(parseFloat(value).toFixed(2), searchValue));
|
|
10734
10747
|
}
|
|
10735
10748
|
}
|
|
10736
10749
|
}, {
|
|
@@ -11202,7 +11215,7 @@ var useRowSelection = (function () {
|
|
|
11202
11215
|
|
|
11203
11216
|
var isAll = controller.useMemo(function (s) {
|
|
11204
11217
|
if (s.goodsListState.selectedGoodIndex.length <= 0) return false;
|
|
11205
|
-
var seeGoodsIndex = controller.getGoodsSearch(s.goodsListState.goodsList, s.goodsListState.searchValue).map(function (e) {
|
|
11218
|
+
var seeGoodsIndex = controller.getGoodsSearch(s.goodsListState.goodsList, s.goodsListState.searchValue, s.goodsListState.isTaxIncluded).map(function (e) {
|
|
11206
11219
|
return e.$index;
|
|
11207
11220
|
});
|
|
11208
11221
|
var selectedGoodIndex = s.goodsListState.selectedGoodIndex.filter(function (e) {
|
|
@@ -11213,7 +11226,7 @@ var useRowSelection = (function () {
|
|
|
11213
11226
|
return selectedGoodIndex.length === seeGoodsIndex.length;
|
|
11214
11227
|
}, []);
|
|
11215
11228
|
var indeterminate = controller.useMemo(function (s) {
|
|
11216
|
-
var seeGoodsIndex = controller.getGoodsSearch(s.goodsListState.goodsList, s.goodsListState.searchValue).map(function (e) {
|
|
11229
|
+
var seeGoodsIndex = controller.getGoodsSearch(s.goodsListState.goodsList, s.goodsListState.searchValue, s.goodsListState.isTaxIncluded).map(function (e) {
|
|
11217
11230
|
return e.$index;
|
|
11218
11231
|
});
|
|
11219
11232
|
var selectedGoodIndex = s.goodsListState.selectedGoodIndex.filter(function (e) {
|
|
@@ -11244,7 +11257,7 @@ var useRowSelection = (function () {
|
|
|
11244
11257
|
while (1) {
|
|
11245
11258
|
switch (_context.prev = _context.next) {
|
|
11246
11259
|
case 0:
|
|
11247
|
-
seeGoodsIndex = controller.getGoodsSearch(s.goodsListState.goodsList, s.goodsListState.searchValue).map(function (e) {
|
|
11260
|
+
seeGoodsIndex = controller.getGoodsSearch(s.goodsListState.goodsList, s.goodsListState.searchValue, s.goodsListState.isTaxIncluded).map(function (e) {
|
|
11248
11261
|
return e.$index;
|
|
11249
11262
|
});
|
|
11250
11263
|
s.goodsListState.selectedGoodIndex = s.goodsListState.selectedGoodIndex.filter(function (e) {
|
|
@@ -11279,7 +11292,7 @@ var useRowSelection = (function () {
|
|
|
11279
11292
|
while (1) {
|
|
11280
11293
|
switch (_context2.prev = _context2.next) {
|
|
11281
11294
|
case 0:
|
|
11282
|
-
seeGoodsIndex = controller.getGoodsSearch(s.goodsListState.goodsList, s.goodsListState.searchValue).map(function (e) {
|
|
11295
|
+
seeGoodsIndex = controller.getGoodsSearch(s.goodsListState.goodsList, s.goodsListState.searchValue, s.goodsListState.isTaxIncluded).map(function (e) {
|
|
11283
11296
|
return e.$index;
|
|
11284
11297
|
});
|
|
11285
11298
|
s.goodsListState.selectedGoodIndex = [].concat(_toConsumableArray(s.goodsListState.selectedGoodIndex), _toConsumableArray(seeGoodsIndex));
|
|
@@ -11506,9 +11519,12 @@ var Main = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(function (p
|
|
|
11506
11519
|
var searchValue = controller.useMemo(function (s) {
|
|
11507
11520
|
return s.goodsListState.searchValue;
|
|
11508
11521
|
}, []);
|
|
11522
|
+
var isTaxIncluded = controller.useMemo(function (s) {
|
|
11523
|
+
return s.goodsListState.isTaxIncluded;
|
|
11524
|
+
}, []);
|
|
11509
11525
|
var dataSourceSearch = React__default['default'].useMemo(function () {
|
|
11510
|
-
return controller.getGoodsSearch(dataSource, searchValue);
|
|
11511
|
-
}, [dataSource, searchValue, controller]);
|
|
11526
|
+
return controller.getGoodsSearch(dataSource, searchValue, isTaxIncluded);
|
|
11527
|
+
}, [dataSource, searchValue, controller, isTaxIncluded]);
|
|
11512
11528
|
/** 表格行事件 */
|
|
11513
11529
|
|
|
11514
11530
|
var _onRow = useOnRow();
|
package/docs-dist/umi.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.kts-invoice-operate{border:1px solid #dcdcdc;font-size:12px}.kts-invoice-operate>*{border-bottom:1px solid #dcdcdc}.kts-invoice-operate>:last-child{border-bottom:none}.kts-invoice-operate-invoice-header{padding:20px 8px;background:#f6f7f9;position:relative;color:rgba(0,0,0,.85);font-weight:500}.kts-invoice-operate-invoice-header label{margin-right:5px;white-space:nowrap}.kts-invoice-operate-invoice-header .invoice-header-title{top:20px;left:0;position:absolute;color:#e28b89;font-weight:500;font-size:22px;text-align:center;width:100%;pointer-events:none;z-index:1}.kts-invoice-operate-invoice-header .invoice-header-no{display:flex}.kts-invoice-operate-invoice-header .invoice-header-no .ktsAnt3x-tag{margin-left:10px;height:24px}.kts-invoice-operate-invoice-header .invoice-header-type{flex:1 1;text-align:right}.kts-invoice-operate-invoice-header .invoice-header-property{margin:20px 0 0}.kts-invoice-operate-invoice-header .invoice-header-property .ktsAnt3x-col{display:flex;flex-direction:inherit;padding-right:20px}.kts-invoice-operate-invoice-header .invoice-header-property .ktsAnt3x-col span{color:#999}.kts-invoice-operate-goods-table-virtual .ktsAnt3x-table-placeholder{position:absolute;top:50px;left:0;width:100%;border:none}.kts-invoice-operate-goods-table-virtual .ktsAnt3x-table{font-size:12px;border:none;border-radius:0}.kts-invoice-operate-goods-table-virtual .ktsAnt3x-table .ktsAnt3x-table-content{border-right:none}.kts-invoice-operate-goods-table-virtual .ktsAnt3x-table .ktsAnt3x-table-content .ktsAnt3x-table-body{margin:0}.kts-invoice-operate-goods-table-virtual .ktsAnt3x-table .ktsAnt3x-table-content .ktsAnt3x-table-body table{position:absolute;top:0;left:0;border-bottom:1px solid #e8e8e8}.kts-invoice-operate-goods-table-virtual .ktsAnt3x-table .ktsAnt3x-table-content .ktsAnt3x-table-body table tr{height:32px}.kts-invoice-operate-goods-table-virtual .ktsAnt3x-table .ktsAnt3x-table-content .ktsAnt3x-table-body table tr:hover td{background:none}.kts-invoice-operate-goods-table-virtual .ktsAnt3x-table .ktsAnt3x-table-thead>tr{background-color:#f6f7f9}.kts-invoice-operate-goods-list-statistics{background:#fafafa;overflow-y:scroll}.kts-invoice-operate-goods-list-statistics .kts-invoice-operate-goods-list-statistics-row{height:30px;line-height:30px;border-bottom:1px solid #e8e8e8;display:flex}.kts-invoice-operate-goods-list-statistics .kts-invoice-operate-goods-list-statistics-row>div{border-right:1px solid #e8e8e8}.kts-invoice-operate-goods-list-statistics .kts-invoice-operate-goods-list-statistics-row>div label{padding:0 10px}.kts-invoice-operate-goods-list-able-list .kts-invoice-operate-goods-list-search{width:
|
|
1
|
+
.kts-invoice-operate{border:1px solid #dcdcdc;font-size:12px}.kts-invoice-operate>*{border-bottom:1px solid #dcdcdc}.kts-invoice-operate>:last-child{border-bottom:none}.kts-invoice-operate-invoice-header{padding:20px 8px;background:#f6f7f9;position:relative;color:rgba(0,0,0,.85);font-weight:500}.kts-invoice-operate-invoice-header label{margin-right:5px;white-space:nowrap}.kts-invoice-operate-invoice-header .invoice-header-title{top:20px;left:0;position:absolute;color:#e28b89;font-weight:500;font-size:22px;text-align:center;width:100%;pointer-events:none;z-index:1}.kts-invoice-operate-invoice-header .invoice-header-no{display:flex}.kts-invoice-operate-invoice-header .invoice-header-no .ktsAnt3x-tag{margin-left:10px;height:24px}.kts-invoice-operate-invoice-header .invoice-header-type{flex:1 1;text-align:right}.kts-invoice-operate-invoice-header .invoice-header-property{margin:20px 0 0}.kts-invoice-operate-invoice-header .invoice-header-property .ktsAnt3x-col{display:flex;flex-direction:inherit;padding-right:20px}.kts-invoice-operate-invoice-header .invoice-header-property .ktsAnt3x-col span{color:#999}.kts-invoice-operate-goods-table-virtual .ktsAnt3x-table-placeholder{position:absolute;top:50px;left:0;width:100%;border:none}.kts-invoice-operate-goods-table-virtual .ktsAnt3x-table{font-size:12px;border:none;border-radius:0}.kts-invoice-operate-goods-table-virtual .ktsAnt3x-table .ktsAnt3x-table-content{border-right:none}.kts-invoice-operate-goods-table-virtual .ktsAnt3x-table .ktsAnt3x-table-content .ktsAnt3x-table-body{margin:0}.kts-invoice-operate-goods-table-virtual .ktsAnt3x-table .ktsAnt3x-table-content .ktsAnt3x-table-body table{position:absolute;top:0;left:0;border-bottom:1px solid #e8e8e8}.kts-invoice-operate-goods-table-virtual .ktsAnt3x-table .ktsAnt3x-table-content .ktsAnt3x-table-body table tr{height:32px}.kts-invoice-operate-goods-table-virtual .ktsAnt3x-table .ktsAnt3x-table-content .ktsAnt3x-table-body table tr:hover td{background:none}.kts-invoice-operate-goods-table-virtual .ktsAnt3x-table .ktsAnt3x-table-thead>tr{background-color:#f6f7f9}.kts-invoice-operate-goods-list-statistics{background:#fafafa;overflow-y:scroll}.kts-invoice-operate-goods-list-statistics .kts-invoice-operate-goods-list-statistics-row{height:30px;line-height:30px;border-bottom:1px solid #e8e8e8;display:flex}.kts-invoice-operate-goods-list-statistics .kts-invoice-operate-goods-list-statistics-row>div{border-right:1px solid #e8e8e8}.kts-invoice-operate-goods-list-statistics .kts-invoice-operate-goods-list-statistics-row>div label{padding:0 10px}.kts-invoice-operate-goods-list-able-list .kts-invoice-operate-goods-list-search{width:350px}.kts-invoice-operate-goods-list-able-list .kts-invoice-operate-goods-list-search input{border-radius:999px;border-color:#b8b8b8}.kts-invoice-operate-goods-list-add-discount-row .ktsAnt3x-drawer-wrapper-body{display:flex;flex-direction:column}.kts-invoice-operate-goods-list-add-discount-row .ktsAnt3x-drawer-wrapper-body .ktsAnt3x-drawer-body{flex:1 1;display:flex;flex-direction:column}.kts-invoice-operate-goods-list-add-discount-row .ktsAnt3x-drawer-wrapper-body .ktsAnt3x-drawer-body .add-discount-row-body{flex:1 1;overflow:auto}.kts-invoice-operate-goods-list-add-discount-row .ktsAnt3x-drawer-wrapper-body .ktsAnt3x-drawer-body .add-discount-row-footer{flex:none}
|
|
2
2
|
|
|
3
3
|
/*!
|
|
4
4
|
*
|