kts-component-invoice-operate 1.2.22 → 1.2.23
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/InvoiceControllerState/GoodsListState/index.d.ts +2 -0
- package/dist/Invoice/InvoiceController/fns/getGoodsSearch.d.ts +2 -0
- package/dist/Invoice/InvoiceController/index.d.ts +3 -0
- package/dist/Invoice/_test/buyerNameSearch/index.d.ts +1 -0
- package/dist/Invoice/_test/deduction/index.d.ts +1 -0
- package/dist/Invoice/_test/draft/index.d.ts +1 -0
- package/dist/Invoice/_test/easiest/index.d.ts +1 -0
- package/dist/Invoice/_test/endowCode/index.d.ts +1 -0
- package/dist/Invoice/_test/goodsMenuExpand/index.d.ts +1 -0
- package/dist/Invoice/_test/importBuyer/index.d.ts +1 -0
- package/dist/Invoice/_test/importGoods/index.d.ts +1 -0
- package/dist/Invoice/_test/invoiceType/index.d.ts +1 -0
- package/dist/Invoice/_test/isInvoiceNo/index.d.ts +1 -0
- package/dist/Invoice/_test/replaceHead/index.d.ts +1 -0
- package/dist/Invoice/_test/retrieveData/index.d.ts +1 -0
- package/dist/Invoice/_test/seller/index.d.ts +1 -0
- package/dist/Invoice/_test/setDataSource/index.d.ts +1 -0
- package/dist/Invoice/_test/unit/index.d.ts +1 -0
- package/dist/Invoice/ui/Buyer/ui/BuyerNameInput/index.d.ts +1 -0
- package/dist/Invoice/ui/Buyer/ui/ImportBuyerButton/index.d.ts +1 -0
- package/dist/Invoice/ui/EndowCodeDrawer/index.d.ts +1 -0
- package/dist/Invoice/ui/GoodsList/hook/useColumns/ui/RowEditButton/index.d.ts +1 -0
- package/dist/Invoice/ui/GoodsList/hook/useColumns/ui/RowMenu/hook/useAddDiscount/index.d.ts +1 -0
- package/dist/Invoice/ui/GoodsList/hook/useColumns/ui/RowMenu/hook/useDelItem/index.d.ts +1 -0
- package/dist/Invoice/ui/GoodsList/hook/useColumns/ui/RowMenu/hook/useEndowCode/index.d.ts +1 -0
- package/dist/Invoice/ui/GoodsList/hook/useColumns/ui/RowMenu/index.d.ts +1 -0
- package/dist/Invoice/ui/GoodsList/hook/useColumns/ui/RowSaveButton/index.d.ts +1 -0
- package/dist/Invoice/ui/GoodsList/hook/useRowSelection/index.d.ts +1 -0
- package/dist/Invoice/ui/GoodsList/ui/AddRowButton/index.d.ts +1 -0
- package/dist/Invoice/ui/GoodsList/ui/DelRowButton/index.d.ts +1 -0
- package/dist/Invoice/ui/GoodsList/ui/EndowCodeButton/index.d.ts +1 -0
- package/dist/Invoice/ui/GoodsList/ui/Search/index.d.ts +3 -0
- package/dist/Invoice/ui/GoodsList/ui/Statistics/index.d.ts +1 -0
- package/dist/Invoice/ui/GoodsList/ui/TableRow/index.d.ts +1 -0
- package/dist/Invoice/ui/GoodsList/ui/TableVirtual/index.d.ts +1 -0
- package/dist/Invoice/ui/GoodsList/ui/TaxIncludedSwitch/index.d.ts +1 -0
- package/dist/Invoice/ui/ImportBuyerDrawer/index.d.ts +1 -0
- package/dist/Invoice/ui/ImportGoodsDrawer/index.d.ts +1 -0
- package/dist/index.esm.js +326 -111
- package/dist/index.js +326 -111
- package/docs/index.md +1 -1
- package/docs-dist/404.html +1 -1
- package/docs-dist/index.html +1 -1
- package/docs-dist/static/magnifier.2b26be6e.svg +1 -0
- package/docs-dist/umi.css +2 -2
- package/docs-dist/umi.js +1 -1
- package/package.json +1 -1
- package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/index.ts +4 -1
- package/src/Invoice/InvoiceController/fns/getGoodsSearch.ts +17 -0
- package/src/Invoice/InvoiceController/index.ts +4 -0
- package/src/Invoice/ui/GoodsList/hook/useColumns/index.tsx +17 -4
- package/src/Invoice/ui/GoodsList/hook/useRowSelection/index.tsx +34 -8
- package/src/Invoice/ui/GoodsList/index.less +41 -33
- package/src/Invoice/ui/GoodsList/index.tsx +11 -1
- package/src/Invoice/ui/GoodsList/ui/AddRowButton/index.tsx +5 -2
- package/src/Invoice/ui/GoodsList/ui/Search/icon/magnifier.svg +1 -0
- package/src/Invoice/ui/GoodsList/ui/Search/index.less +10 -0
- package/src/Invoice/ui/GoodsList/ui/Search/index.tsx +47 -0
package/dist/index.esm.js
CHANGED
|
@@ -985,6 +985,7 @@ var GoodsListState = /*#__PURE__*/_createClass(function GoodsListState() {
|
|
|
985
985
|
this.unitList = [];
|
|
986
986
|
this.defaultRate = 3;
|
|
987
987
|
this.taxRateList = [0, 3, 5, 6, 9, 13];
|
|
988
|
+
this.searchValue = '';
|
|
988
989
|
this.goodsList = [];
|
|
989
990
|
this.goodsMap = new Map();
|
|
990
991
|
this.goodsMenuExpand = [];
|
|
@@ -1509,6 +1510,23 @@ var validateFields = function validateFields(form) {
|
|
|
1509
1510
|
});
|
|
1510
1511
|
};
|
|
1511
1512
|
|
|
1513
|
+
function getGoodsSearch(goodsList, search) {
|
|
1514
|
+
if (!search) return goodsList;
|
|
1515
|
+
return goodsList.filter(function (e) {
|
|
1516
|
+
var _e$itemName$indexOf, _e$itemName, _e$itemModelName$inde, _e$itemModelName;
|
|
1517
|
+
|
|
1518
|
+
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) {
|
|
1519
|
+
return true;
|
|
1520
|
+
} 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) {
|
|
1521
|
+
return true;
|
|
1522
|
+
} else if ("".concat(e.lineAmountIncludeTax).indexOf(search) >= 0) {
|
|
1523
|
+
return true;
|
|
1524
|
+
} else {
|
|
1525
|
+
return false;
|
|
1526
|
+
}
|
|
1527
|
+
});
|
|
1528
|
+
}
|
|
1529
|
+
|
|
1512
1530
|
var InvoiceController = /*#__PURE__*/function (_InvoiceControllerFor) {
|
|
1513
1531
|
_inherits(InvoiceController, _InvoiceControllerFor);
|
|
1514
1532
|
|
|
@@ -1532,6 +1550,7 @@ var InvoiceController = /*#__PURE__*/function (_InvoiceControllerFor) {
|
|
|
1532
1550
|
_this.addGoodDiscount = _this.pipeline(addGoodDiscount);
|
|
1533
1551
|
_this.getGoodsList = void 0;
|
|
1534
1552
|
_this.getTaxCategoryCodeList = void 0;
|
|
1553
|
+
_this.getGoodsSearch = getGoodsSearch;
|
|
1535
1554
|
return _this;
|
|
1536
1555
|
} // ----------------- 发票头 模块相关 -----------------
|
|
1537
1556
|
|
|
@@ -2010,6 +2029,11 @@ var AddRowButton = (function () {
|
|
|
2010
2029
|
var goodsNum = controller.useMemo(function (s) {
|
|
2011
2030
|
return s.goodsListState.goodsList.length;
|
|
2012
2031
|
}, []);
|
|
2032
|
+
/** 搜索条件 */
|
|
2033
|
+
|
|
2034
|
+
var searchValue = controller.useMemo(function (s) {
|
|
2035
|
+
return s.goodsListState.searchValue;
|
|
2036
|
+
}, []);
|
|
2013
2037
|
/** 产品最大数 */
|
|
2014
2038
|
|
|
2015
2039
|
var goodMax = controller.useMemo(function (s) {
|
|
@@ -2018,8 +2042,8 @@ var AddRowButton = (function () {
|
|
|
2018
2042
|
/** 按钮是否禁用 */
|
|
2019
2043
|
|
|
2020
2044
|
var disabled = React.useMemo(function () {
|
|
2021
|
-
return typeof goodMax === 'number' ? goodsNum >= goodMax :
|
|
2022
|
-
}, [goodMax, goodsNum]);
|
|
2045
|
+
return typeof goodMax === 'number' ? goodsNum >= goodMax : !!searchValue;
|
|
2046
|
+
}, [goodMax, goodsNum, searchValue]);
|
|
2023
2047
|
var onClick = React.useCallback( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
2024
2048
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
2025
2049
|
while (1) {
|
|
@@ -2135,6 +2159,108 @@ var TaxIncludedSwitch = (function () {
|
|
|
2135
2159
|
}));
|
|
2136
2160
|
});
|
|
2137
2161
|
|
|
2162
|
+
var _path$1;
|
|
2163
|
+
|
|
2164
|
+
function _extends$1() { _extends$1 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1.apply(this, arguments); }
|
|
2165
|
+
|
|
2166
|
+
function SvgMagnifier(props) {
|
|
2167
|
+
return /*#__PURE__*/createElement("svg", _extends$1({
|
|
2168
|
+
className: "magnifier_svg__icon",
|
|
2169
|
+
viewBox: "0 0 1024 1024",
|
|
2170
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2171
|
+
width: 200,
|
|
2172
|
+
height: 200
|
|
2173
|
+
}, props), _path$1 || (_path$1 = /*#__PURE__*/createElement("path", {
|
|
2174
|
+
d: "M985.781 918.594L820.773 765.526c27.373-32.973 49.655-69.577 66.437-109.258 22.933-54.219 34.56-111.795 34.56-171.13 0-59.333-11.627-116.91-34.56-171.13-22.143-52.354-53.838-99.365-94.2-139.729s-87.377-72.056-139.73-94.199c-54.219-22.933-111.795-34.561-171.13-34.561S365.24 57.148 311.022 80.08c-52.354 22.143-99.365 53.837-139.73 94.2s-72.057 87.375-94.2 139.73c-22.932 54.218-34.56 111.795-34.56 171.13 0 59.334 11.628 116.91 34.56 171.129 22.144 52.354 53.838 99.365 94.2 139.729s87.376 72.057 139.73 94.2c54.219 22.933 111.795 34.56 171.13 34.56s116.91-11.627 171.13-34.56c45.352-19.181 86.686-45.543 123.171-78.487l165.803 153.804a31.886 31.886 0 0021.756 8.54c8.593 0 17.163-3.442 23.467-10.238 12.019-12.956 11.26-33.205-1.698-45.223zm-503.63-57.836c-207.117 0-375.62-168.502-375.62-375.62 0-207.117 168.503-375.62 375.62-375.62s375.62 168.503 375.62 375.62c0 207.118-168.503 375.62-375.62 375.62z"
|
|
2175
|
+
})));
|
|
2176
|
+
}
|
|
2177
|
+
|
|
2178
|
+
var css_248z$4 = ".kts-invoice-operate-goods-list-able-list .kts-invoice-operate-goods-list-search {\n width: 330px;\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";
|
|
2179
|
+
styleInject(css_248z$4);
|
|
2180
|
+
|
|
2181
|
+
function Search() {
|
|
2182
|
+
var controller = default_1.useInvoiceController();
|
|
2183
|
+
|
|
2184
|
+
var _React$useState = React.useState(''),
|
|
2185
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
2186
|
+
value = _React$useState2[0],
|
|
2187
|
+
setValue = _React$useState2[1];
|
|
2188
|
+
|
|
2189
|
+
var readOnly = controller.useMemo(function (s) {
|
|
2190
|
+
return !!s.goodsListState.editGood;
|
|
2191
|
+
}, []);
|
|
2192
|
+
var onClick = React.useCallback( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
2193
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
2194
|
+
while (1) {
|
|
2195
|
+
switch (_context.prev = _context.next) {
|
|
2196
|
+
case 0:
|
|
2197
|
+
_context.next = 2;
|
|
2198
|
+
return controller.saveEditGood();
|
|
2199
|
+
|
|
2200
|
+
case 2:
|
|
2201
|
+
_context.next = 4;
|
|
2202
|
+
return controller.wait();
|
|
2203
|
+
|
|
2204
|
+
case 4:
|
|
2205
|
+
if (!controller.state.goodsListState.editGood) {
|
|
2206
|
+
_context.next = 7;
|
|
2207
|
+
break;
|
|
2208
|
+
}
|
|
2209
|
+
|
|
2210
|
+
message.error({
|
|
2211
|
+
content: '你正在编辑一个货物',
|
|
2212
|
+
key: '你正在编辑一个货物'
|
|
2213
|
+
});
|
|
2214
|
+
return _context.abrupt("return");
|
|
2215
|
+
|
|
2216
|
+
case 7:
|
|
2217
|
+
case "end":
|
|
2218
|
+
return _context.stop();
|
|
2219
|
+
}
|
|
2220
|
+
}
|
|
2221
|
+
}, _callee);
|
|
2222
|
+
})), []);
|
|
2223
|
+
React.useEffect(function () {
|
|
2224
|
+
controller.run( /*#__PURE__*/function () {
|
|
2225
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(s) {
|
|
2226
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
2227
|
+
while (1) {
|
|
2228
|
+
switch (_context2.prev = _context2.next) {
|
|
2229
|
+
case 0:
|
|
2230
|
+
s.goodsListState.searchValue = value;
|
|
2231
|
+
|
|
2232
|
+
case 1:
|
|
2233
|
+
case "end":
|
|
2234
|
+
return _context2.stop();
|
|
2235
|
+
}
|
|
2236
|
+
}
|
|
2237
|
+
}, _callee2);
|
|
2238
|
+
}));
|
|
2239
|
+
|
|
2240
|
+
return function (_x) {
|
|
2241
|
+
return _ref2.apply(this, arguments);
|
|
2242
|
+
};
|
|
2243
|
+
}());
|
|
2244
|
+
}, [value, controller]);
|
|
2245
|
+
return /*#__PURE__*/React.createElement(Input, {
|
|
2246
|
+
size: "small",
|
|
2247
|
+
readOnly: readOnly,
|
|
2248
|
+
value: value,
|
|
2249
|
+
className: "kts-invoice-operate-goods-list-search",
|
|
2250
|
+
placeholder: "\u8BF7\u60A8\u8F93\u5165\u8D27\u7269\u540D\u79F0\u3001\u89C4\u683C\u578B\u53F7\u3001\u91D1\u989D(\u542B\u7A0E)\u641C\u7D22",
|
|
2251
|
+
prefix: /*#__PURE__*/React.createElement(Icon, {
|
|
2252
|
+
component: SvgMagnifier,
|
|
2253
|
+
style: {
|
|
2254
|
+
color: "#b8b8b8"
|
|
2255
|
+
}
|
|
2256
|
+
}),
|
|
2257
|
+
onChange: function onChange(e) {
|
|
2258
|
+
setValue(e.target.value);
|
|
2259
|
+
},
|
|
2260
|
+
onClick: onClick
|
|
2261
|
+
});
|
|
2262
|
+
}
|
|
2263
|
+
|
|
2138
2264
|
function TableRow(props) {
|
|
2139
2265
|
var controller = default_1.useInvoiceController();
|
|
2140
2266
|
var goodsMap = controller.useMemo(function (s) {
|
|
@@ -2185,8 +2311,8 @@ var evaluate = (function (expr) {
|
|
|
2185
2311
|
return parseFloat(math.evaluate(expr).toFixed(fractionDigits));
|
|
2186
2312
|
});
|
|
2187
2313
|
|
|
2188
|
-
var css_248z$
|
|
2189
|
-
styleInject(css_248z$
|
|
2314
|
+
var css_248z$5 = ".kts-invoice-operate-goods-list-add-discount-row .ktsAnt3x-drawer-wrapper-body {\n display: flex;\n flex-direction: column;\n}\n.kts-invoice-operate-goods-list-add-discount-row .ktsAnt3x-drawer-wrapper-body .ktsAnt3x-drawer-body {\n flex: 1;\n display: flex;\n flex-direction: column;\n}\n.kts-invoice-operate-goods-list-add-discount-row .ktsAnt3x-drawer-wrapper-body .ktsAnt3x-drawer-body .add-discount-row-body {\n flex: 1;\n overflow: auto;\n}\n.kts-invoice-operate-goods-list-add-discount-row .ktsAnt3x-drawer-wrapper-body .ktsAnt3x-drawer-body .add-discount-row-footer {\n flex: none;\n}\n";
|
|
2315
|
+
styleInject(css_248z$5);
|
|
2190
2316
|
|
|
2191
2317
|
var Text = Typography.Text;
|
|
2192
2318
|
|
|
@@ -2723,16 +2849,16 @@ var DelRowButton = (function () {
|
|
|
2723
2849
|
}, "\u5220\u9664\u884C");
|
|
2724
2850
|
});
|
|
2725
2851
|
|
|
2726
|
-
var _defs$1, _path$
|
|
2852
|
+
var _defs$1, _path$2;
|
|
2727
2853
|
|
|
2728
|
-
function _extends$
|
|
2854
|
+
function _extends$2() { _extends$2 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$2.apply(this, arguments); }
|
|
2729
2855
|
|
|
2730
2856
|
function SvgSpot(props) {
|
|
2731
|
-
return /*#__PURE__*/createElement("svg", _extends$
|
|
2857
|
+
return /*#__PURE__*/createElement("svg", _extends$2({
|
|
2732
2858
|
className: "spot_svg__icon",
|
|
2733
2859
|
viewBox: "0 0 1024 1024",
|
|
2734
2860
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2735
|
-
}, props), _defs$1 || (_defs$1 = /*#__PURE__*/createElement("defs", null, /*#__PURE__*/createElement("style", null))), _path$
|
|
2861
|
+
}, props), _defs$1 || (_defs$1 = /*#__PURE__*/createElement("defs", null, /*#__PURE__*/createElement("style", null))), _path$2 || (_path$2 = /*#__PURE__*/createElement("path", {
|
|
2736
2862
|
d: "M416 512a1.5 1.5 0 10192 0 1.5 1.5 0 10-192 0zM416 96.64a1.5 1.5 0 10192 0 1.5 1.5 0 10-192 0zM416 927.36a1.5 1.5 0 10192 0 1.5 1.5 0 10-192 0z"
|
|
2737
2863
|
})));
|
|
2738
2864
|
}
|
|
@@ -9520,8 +9646,8 @@ var useEndowCode = (function (goods) {
|
|
|
9520
9646
|
}, [goods.lineAttribute, onClick]);
|
|
9521
9647
|
});
|
|
9522
9648
|
|
|
9523
|
-
var css_248z$
|
|
9524
|
-
styleInject(css_248z$
|
|
9649
|
+
var css_248z$6 = ".ktsAnt3x-btn.kts-invoice-operate-goods-list-columns-row-menu:focus,\n.ktsAnt3x-btn.kts-invoice-operate-goods-list-columns-row-menu:hover,\n.ktsAnt3x-btn.kts-invoice-operate-goods-list-columns-row-menu {\n font-size: 16px;\n color: #000;\n text-align: center;\n padding: 0;\n}\n.ktsAnt3x-btn.kts-invoice-operate-goods-list-columns-row-menu:hover,\n.ktsAnt3x-btn.kts-invoice-operate-goods-list-columns-row-menu.ktsAnt3x-dropdown-open {\n background: #ebebeb;\n border-radius: 9999px;\n}\n";
|
|
9650
|
+
styleInject(css_248z$6);
|
|
9525
9651
|
|
|
9526
9652
|
var RowMenu = (function (props) {
|
|
9527
9653
|
var controller = default_1.useInvoiceController();
|
|
@@ -9590,6 +9716,11 @@ var useColumns = (function (form) {
|
|
|
9590
9716
|
var editGood = controller.useMemo(function (e) {
|
|
9591
9717
|
return e.goodsListState.editGood;
|
|
9592
9718
|
}, []);
|
|
9719
|
+
/** 搜索条件 */
|
|
9720
|
+
|
|
9721
|
+
var searchValue = controller.useMemo(function (e) {
|
|
9722
|
+
return e.goodsListState.searchValue;
|
|
9723
|
+
}, []);
|
|
9593
9724
|
/** 税率列表 */
|
|
9594
9725
|
|
|
9595
9726
|
var taxRateList = controller.useMemo(function (e) {
|
|
@@ -9681,7 +9812,7 @@ var useColumns = (function (form) {
|
|
|
9681
9812
|
style: {
|
|
9682
9813
|
padding: '0 10px'
|
|
9683
9814
|
}
|
|
9684
|
-
}, value);
|
|
9815
|
+
}, formatSearch(value, searchValue));
|
|
9685
9816
|
}
|
|
9686
9817
|
}
|
|
9687
9818
|
}, {
|
|
@@ -9703,7 +9834,7 @@ var useColumns = (function (form) {
|
|
|
9703
9834
|
style: {
|
|
9704
9835
|
padding: '0 10px'
|
|
9705
9836
|
}
|
|
9706
|
-
}, value);
|
|
9837
|
+
}, formatSearch(value, searchValue));
|
|
9707
9838
|
}
|
|
9708
9839
|
}
|
|
9709
9840
|
}, {
|
|
@@ -10032,7 +10163,7 @@ var useColumns = (function (form) {
|
|
|
10032
10163
|
style: {
|
|
10033
10164
|
padding: '0 10px'
|
|
10034
10165
|
}
|
|
10035
|
-
}, parseFloat(value).toFixed(2));
|
|
10166
|
+
}, formatSearch(parseFloat(value).toFixed(2), searchValue));
|
|
10036
10167
|
}
|
|
10037
10168
|
}
|
|
10038
10169
|
}, {
|
|
@@ -10184,7 +10315,7 @@ var useColumns = (function (form) {
|
|
|
10184
10315
|
ellipsis: true
|
|
10185
10316
|
});
|
|
10186
10317
|
});
|
|
10187
|
-
}, [isTaxIncluded, editGood, controller, changeField, deduction]);
|
|
10318
|
+
}, [isTaxIncluded, editGood, controller, changeField, deduction, searchValue]);
|
|
10188
10319
|
React.useEffect(function () {
|
|
10189
10320
|
if (!changeField) return;
|
|
10190
10321
|
var t = setTimeout(function () {
|
|
@@ -10258,6 +10389,20 @@ var MyDiv = /*#__PURE__*/function (_React$Component2) {
|
|
|
10258
10389
|
|
|
10259
10390
|
return MyDiv;
|
|
10260
10391
|
}(React.Component);
|
|
10392
|
+
/** 格式搜索结果 */
|
|
10393
|
+
|
|
10394
|
+
|
|
10395
|
+
function formatSearch(value, search) {
|
|
10396
|
+
if (!value || !search) return value;
|
|
10397
|
+
|
|
10398
|
+
var __html = value.split(new RegExp(search, 'g')).join("<span class=\"kts-invoice-operate-goods-list-table-search-protrude\" >".concat(search, "</span>"));
|
|
10399
|
+
|
|
10400
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
10401
|
+
dangerouslySetInnerHTML: {
|
|
10402
|
+
__html: __html
|
|
10403
|
+
}
|
|
10404
|
+
});
|
|
10405
|
+
}
|
|
10261
10406
|
|
|
10262
10407
|
var useOnRow = (function () {
|
|
10263
10408
|
/** 控制器 */
|
|
@@ -10455,105 +10600,168 @@ var useRowSelection = (function () {
|
|
|
10455
10600
|
var goodsList = controller.useMemo(function (s) {
|
|
10456
10601
|
return s.goodsListState.goodsList;
|
|
10457
10602
|
}, []);
|
|
10603
|
+
/** 搜索条件 */
|
|
10604
|
+
|
|
10605
|
+
var searchValue = controller.useMemo(function (s) {
|
|
10606
|
+
return s.goodsListState.searchValue;
|
|
10607
|
+
}, []);
|
|
10458
10608
|
/** 是否全选 */
|
|
10609
|
+
// const isAll = controller.useMemo(s => s.goodsListState.goodsList.length > 0 && s.goodsListState.selectedGoodIndex.length === s.goodsListState.goodsList.length, [])
|
|
10459
10610
|
|
|
10460
10611
|
var isAll = controller.useMemo(function (s) {
|
|
10461
|
-
|
|
10612
|
+
if (s.goodsListState.selectedGoodIndex.length <= 0) return false;
|
|
10613
|
+
var seeGoodsIndex = controller.getGoodsSearch(s.goodsListState.goodsList, s.goodsListState.searchValue).map(function (e) {
|
|
10614
|
+
return e.$index;
|
|
10615
|
+
});
|
|
10616
|
+
var selectedGoodIndex = s.goodsListState.selectedGoodIndex.filter(function (e) {
|
|
10617
|
+
return seeGoodsIndex.some(function (t) {
|
|
10618
|
+
return e === t;
|
|
10619
|
+
});
|
|
10620
|
+
});
|
|
10621
|
+
return selectedGoodIndex.length === seeGoodsIndex.length;
|
|
10622
|
+
}, []);
|
|
10623
|
+
var indeterminate = controller.useMemo(function (s) {
|
|
10624
|
+
var seeGoodsIndex = controller.getGoodsSearch(s.goodsListState.goodsList, s.goodsListState.searchValue).map(function (e) {
|
|
10625
|
+
return e.$index;
|
|
10626
|
+
});
|
|
10627
|
+
var selectedGoodIndex = s.goodsListState.selectedGoodIndex.filter(function (e) {
|
|
10628
|
+
return seeGoodsIndex.some(function (t) {
|
|
10629
|
+
return e === t;
|
|
10630
|
+
});
|
|
10631
|
+
});
|
|
10632
|
+
if (selectedGoodIndex.length === 0) return false;
|
|
10633
|
+
return selectedGoodIndex.length < seeGoodsIndex.length;
|
|
10462
10634
|
}, []);
|
|
10463
10635
|
/** 点击了全选 */
|
|
10464
10636
|
|
|
10465
|
-
var onClickSelectAll = React.useCallback(function () {
|
|
10466
|
-
|
|
10467
|
-
|
|
10468
|
-
|
|
10469
|
-
|
|
10470
|
-
|
|
10471
|
-
|
|
10472
|
-
|
|
10473
|
-
s.goodsListState.selectedGoodIndex = [];
|
|
10474
|
-
|
|
10475
|
-
case 1:
|
|
10476
|
-
case "end":
|
|
10477
|
-
return _context.stop();
|
|
10478
|
-
}
|
|
10637
|
+
var onClickSelectAll = React.useCallback( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
10638
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
10639
|
+
while (1) {
|
|
10640
|
+
switch (_context3.prev = _context3.next) {
|
|
10641
|
+
case 0:
|
|
10642
|
+
if (!isAll) {
|
|
10643
|
+
_context3.next = 5;
|
|
10644
|
+
break;
|
|
10479
10645
|
}
|
|
10480
|
-
}, _callee);
|
|
10481
|
-
}));
|
|
10482
10646
|
|
|
10483
|
-
|
|
10484
|
-
|
|
10485
|
-
|
|
10486
|
-
|
|
10487
|
-
|
|
10488
|
-
|
|
10489
|
-
|
|
10490
|
-
|
|
10491
|
-
|
|
10492
|
-
|
|
10493
|
-
|
|
10494
|
-
|
|
10495
|
-
|
|
10496
|
-
|
|
10647
|
+
_context3.next = 3;
|
|
10648
|
+
return controller.pipeline( /*#__PURE__*/function () {
|
|
10649
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(s) {
|
|
10650
|
+
var seeGoodsIndex;
|
|
10651
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
10652
|
+
while (1) {
|
|
10653
|
+
switch (_context.prev = _context.next) {
|
|
10654
|
+
case 0:
|
|
10655
|
+
seeGoodsIndex = controller.getGoodsSearch(s.goodsListState.goodsList, s.goodsListState.searchValue).map(function (e) {
|
|
10656
|
+
return e.$index;
|
|
10657
|
+
});
|
|
10658
|
+
s.goodsListState.selectedGoodIndex = s.goodsListState.selectedGoodIndex.filter(function (e) {
|
|
10659
|
+
return !seeGoodsIndex.some(function (t) {
|
|
10660
|
+
return e === t;
|
|
10661
|
+
});
|
|
10662
|
+
});
|
|
10497
10663
|
|
|
10498
|
-
|
|
10499
|
-
|
|
10500
|
-
|
|
10501
|
-
|
|
10502
|
-
|
|
10503
|
-
|
|
10504
|
-
|
|
10664
|
+
case 2:
|
|
10665
|
+
case "end":
|
|
10666
|
+
return _context.stop();
|
|
10667
|
+
}
|
|
10668
|
+
}
|
|
10669
|
+
}, _callee);
|
|
10670
|
+
}));
|
|
10505
10671
|
|
|
10506
|
-
|
|
10507
|
-
|
|
10508
|
-
|
|
10509
|
-
|
|
10510
|
-
|
|
10511
|
-
|
|
10672
|
+
return function (_x) {
|
|
10673
|
+
return _ref2.apply(this, arguments);
|
|
10674
|
+
};
|
|
10675
|
+
}())();
|
|
10676
|
+
|
|
10677
|
+
case 3:
|
|
10678
|
+
_context3.next = 7;
|
|
10679
|
+
break;
|
|
10680
|
+
|
|
10681
|
+
case 5:
|
|
10682
|
+
_context3.next = 7;
|
|
10683
|
+
return controller.pipeline( /*#__PURE__*/function () {
|
|
10684
|
+
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(s) {
|
|
10685
|
+
var seeGoodsIndex;
|
|
10686
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
10687
|
+
while (1) {
|
|
10688
|
+
switch (_context2.prev = _context2.next) {
|
|
10689
|
+
case 0:
|
|
10690
|
+
seeGoodsIndex = controller.getGoodsSearch(s.goodsListState.goodsList, s.goodsListState.searchValue).map(function (e) {
|
|
10691
|
+
return e.$index;
|
|
10692
|
+
});
|
|
10693
|
+
s.goodsListState.selectedGoodIndex = [].concat(_toConsumableArray(s.goodsListState.selectedGoodIndex), _toConsumableArray(seeGoodsIndex));
|
|
10694
|
+
s.goodsListState.selectedGoodIndex = Array.from(new Set(s.goodsListState.selectedGoodIndex));
|
|
10695
|
+
|
|
10696
|
+
case 3:
|
|
10697
|
+
case "end":
|
|
10698
|
+
return _context2.stop();
|
|
10699
|
+
}
|
|
10700
|
+
}
|
|
10701
|
+
}, _callee2);
|
|
10702
|
+
}));
|
|
10703
|
+
|
|
10704
|
+
return function (_x2) {
|
|
10705
|
+
return _ref3.apply(this, arguments);
|
|
10706
|
+
};
|
|
10707
|
+
}())();
|
|
10708
|
+
|
|
10709
|
+
case 7:
|
|
10710
|
+
_context3.next = 9;
|
|
10711
|
+
return sortOut(true);
|
|
10712
|
+
|
|
10713
|
+
case 9:
|
|
10714
|
+
case "end":
|
|
10715
|
+
return _context3.stop();
|
|
10716
|
+
}
|
|
10717
|
+
}
|
|
10718
|
+
}, _callee3);
|
|
10719
|
+
})), [controller, isAll]);
|
|
10512
10720
|
var onSelect = React.useCallback( /*#__PURE__*/function () {
|
|
10513
|
-
var
|
|
10514
|
-
return _regeneratorRuntime().wrap(function
|
|
10721
|
+
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6(record, selected) {
|
|
10722
|
+
return _regeneratorRuntime().wrap(function _callee6$(_context6) {
|
|
10515
10723
|
while (1) {
|
|
10516
|
-
switch (
|
|
10724
|
+
switch (_context6.prev = _context6.next) {
|
|
10517
10725
|
case 0:
|
|
10518
10726
|
if (!selected) {
|
|
10519
|
-
|
|
10727
|
+
_context6.next = 5;
|
|
10520
10728
|
break;
|
|
10521
10729
|
}
|
|
10522
10730
|
|
|
10523
|
-
|
|
10731
|
+
_context6.next = 3;
|
|
10524
10732
|
return controller.pipeline( /*#__PURE__*/function () {
|
|
10525
|
-
var
|
|
10526
|
-
return _regeneratorRuntime().wrap(function
|
|
10733
|
+
var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(s) {
|
|
10734
|
+
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
10527
10735
|
while (1) {
|
|
10528
|
-
switch (
|
|
10736
|
+
switch (_context4.prev = _context4.next) {
|
|
10529
10737
|
case 0:
|
|
10530
10738
|
s.goodsListState.selectedGoodIndex = [].concat(_toConsumableArray(s.goodsListState.selectedGoodIndex), [record.$index]);
|
|
10531
10739
|
s.goodsListState = _objectSpread2({}, s.goodsListState);
|
|
10532
10740
|
|
|
10533
10741
|
case 2:
|
|
10534
10742
|
case "end":
|
|
10535
|
-
return
|
|
10743
|
+
return _context4.stop();
|
|
10536
10744
|
}
|
|
10537
10745
|
}
|
|
10538
|
-
},
|
|
10746
|
+
}, _callee4);
|
|
10539
10747
|
}));
|
|
10540
10748
|
|
|
10541
10749
|
return function (_x5) {
|
|
10542
|
-
return
|
|
10750
|
+
return _ref5.apply(this, arguments);
|
|
10543
10751
|
};
|
|
10544
10752
|
}())();
|
|
10545
10753
|
|
|
10546
10754
|
case 3:
|
|
10547
|
-
|
|
10755
|
+
_context6.next = 7;
|
|
10548
10756
|
break;
|
|
10549
10757
|
|
|
10550
10758
|
case 5:
|
|
10551
|
-
|
|
10759
|
+
_context6.next = 7;
|
|
10552
10760
|
return controller.pipeline( /*#__PURE__*/function () {
|
|
10553
|
-
var
|
|
10554
|
-
return _regeneratorRuntime().wrap(function
|
|
10761
|
+
var _ref6 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(s) {
|
|
10762
|
+
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
10555
10763
|
while (1) {
|
|
10556
|
-
switch (
|
|
10764
|
+
switch (_context5.prev = _context5.next) {
|
|
10557
10765
|
case 0:
|
|
10558
10766
|
s.goodsListState.selectedGoodIndex = s.goodsListState.selectedGoodIndex.filter(function (e) {
|
|
10559
10767
|
return e !== record.$index;
|
|
@@ -10562,58 +10770,58 @@ var useRowSelection = (function () {
|
|
|
10562
10770
|
|
|
10563
10771
|
case 2:
|
|
10564
10772
|
case "end":
|
|
10565
|
-
return
|
|
10773
|
+
return _context5.stop();
|
|
10566
10774
|
}
|
|
10567
10775
|
}
|
|
10568
|
-
},
|
|
10776
|
+
}, _callee5);
|
|
10569
10777
|
}));
|
|
10570
10778
|
|
|
10571
10779
|
return function (_x6) {
|
|
10572
|
-
return
|
|
10780
|
+
return _ref6.apply(this, arguments);
|
|
10573
10781
|
};
|
|
10574
10782
|
}())();
|
|
10575
10783
|
|
|
10576
10784
|
case 7:
|
|
10577
|
-
|
|
10785
|
+
_context6.next = 9;
|
|
10578
10786
|
return sortOut(selected);
|
|
10579
10787
|
|
|
10580
10788
|
case 9:
|
|
10581
10789
|
case "end":
|
|
10582
|
-
return
|
|
10790
|
+
return _context6.stop();
|
|
10583
10791
|
}
|
|
10584
10792
|
}
|
|
10585
|
-
},
|
|
10793
|
+
}, _callee6);
|
|
10586
10794
|
}));
|
|
10587
10795
|
|
|
10588
10796
|
return function (_x3, _x4) {
|
|
10589
|
-
return
|
|
10797
|
+
return _ref4.apply(this, arguments);
|
|
10590
10798
|
};
|
|
10591
10799
|
}(), [controller]);
|
|
10592
10800
|
var columnTitle = React.useMemo(function () {
|
|
10593
10801
|
return /*#__PURE__*/React.createElement(Checkbox, {
|
|
10594
10802
|
onChange: onClickSelectAll,
|
|
10595
|
-
indeterminate:
|
|
10803
|
+
indeterminate: indeterminate,
|
|
10596
10804
|
checked: isAll
|
|
10597
10805
|
});
|
|
10598
|
-
}, [goodsList, selectedRowKeys, onClickSelectAll, isAll]);
|
|
10806
|
+
}, [goodsList, selectedRowKeys, onClickSelectAll, isAll, indeterminate]);
|
|
10599
10807
|
/** 选择了商品后 调整 折扣行 和 被折扣行 */
|
|
10600
10808
|
|
|
10601
10809
|
var sortOut = React.useCallback( /*#__PURE__*/function () {
|
|
10602
|
-
var
|
|
10603
|
-
return _regeneratorRuntime().wrap(function
|
|
10810
|
+
var _ref7 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee8(selected) {
|
|
10811
|
+
return _regeneratorRuntime().wrap(function _callee8$(_context8) {
|
|
10604
10812
|
while (1) {
|
|
10605
|
-
switch (
|
|
10813
|
+
switch (_context8.prev = _context8.next) {
|
|
10606
10814
|
case 0:
|
|
10607
|
-
|
|
10815
|
+
_context8.next = 2;
|
|
10608
10816
|
return controller.wait();
|
|
10609
10817
|
|
|
10610
10818
|
case 2:
|
|
10611
|
-
|
|
10819
|
+
_context8.next = 4;
|
|
10612
10820
|
return controller.pipeline( /*#__PURE__*/function () {
|
|
10613
|
-
var
|
|
10614
|
-
return _regeneratorRuntime().wrap(function
|
|
10821
|
+
var _ref8 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7(s) {
|
|
10822
|
+
return _regeneratorRuntime().wrap(function _callee7$(_context7) {
|
|
10615
10823
|
while (1) {
|
|
10616
|
-
switch (
|
|
10824
|
+
switch (_context7.prev = _context7.next) {
|
|
10617
10825
|
case 0:
|
|
10618
10826
|
s.goodsListState.selectedGoodIndex.forEach(function ($index) {
|
|
10619
10827
|
var goods = s.goodsListState.goodsMap.get($index);
|
|
@@ -10634,27 +10842,27 @@ var useRowSelection = (function () {
|
|
|
10634
10842
|
|
|
10635
10843
|
case 1:
|
|
10636
10844
|
case "end":
|
|
10637
|
-
return
|
|
10845
|
+
return _context7.stop();
|
|
10638
10846
|
}
|
|
10639
10847
|
}
|
|
10640
|
-
},
|
|
10848
|
+
}, _callee7);
|
|
10641
10849
|
}));
|
|
10642
10850
|
|
|
10643
10851
|
return function (_x8) {
|
|
10644
|
-
return
|
|
10852
|
+
return _ref8.apply(this, arguments);
|
|
10645
10853
|
};
|
|
10646
10854
|
}())();
|
|
10647
10855
|
|
|
10648
10856
|
case 4:
|
|
10649
10857
|
case "end":
|
|
10650
|
-
return
|
|
10858
|
+
return _context8.stop();
|
|
10651
10859
|
}
|
|
10652
10860
|
}
|
|
10653
|
-
},
|
|
10861
|
+
}, _callee8);
|
|
10654
10862
|
}));
|
|
10655
10863
|
|
|
10656
10864
|
return function (_x7) {
|
|
10657
|
-
return
|
|
10865
|
+
return _ref7.apply(this, arguments);
|
|
10658
10866
|
};
|
|
10659
10867
|
}(), [controller]);
|
|
10660
10868
|
React.useEffect(function () {
|
|
@@ -10668,8 +10876,8 @@ var useRowSelection = (function () {
|
|
|
10668
10876
|
};
|
|
10669
10877
|
});
|
|
10670
10878
|
|
|
10671
|
-
var css_248z$
|
|
10672
|
-
styleInject(css_248z$
|
|
10879
|
+
var css_248z$7 = ".kts-invoice-operate-goods-list .kts-invoice-operate-goods-list-table-tax-rate .ktsAnt3x-select-selection-selected-value {\n float: right;\n}\n.kts-invoice-operate-goods-list .kts-invoice-operate-goods-list-able {\n display: flex;\n padding: 10px;\n border-bottom: 1px solid #dcdcdc;\n}\n.kts-invoice-operate-goods-list .kts-invoice-operate-goods-list-able-list {\n flex: 1;\n display: flex;\n gap: 10px;\n padding-right: 10px;\n}\n.kts-invoice-operate-goods-list .kts-invoice-operate-goods-list-able-list button {\n padding-left: 10px;\n padding-right: 10px;\n border-radius: 12px;\n color: #0074ff;\n border: 1px solid #0074ff;\n height: 24px;\n line-height: 22px;\n cursor: pointer;\n font-size: 12px;\n}\n.kts-invoice-operate-goods-list .kts-invoice-operate-goods-list-able-list button[disabled] {\n color: rgba(0, 0, 0, 0.25);\n border: 1px solid;\n}\n.kts-invoice-operate-goods-list .kts-invoice-operate-goods-list-able-extend {\n flex: none;\n display: flex;\n}\n.kts-invoice-operate-goods-list .kts-invoice-operate-goods-list-able-extend label {\n margin-right: 5px;\n}\n.kts-invoice-operate-goods-list-table.kts-invoice-operate-prefab .ktsAnt3x-table-row {\n color: rgba(0, 0, 0, 0.25);\n background: #f5f5f5;\n}\n.kts-invoice-operate-goods-list-table {\n border-bottom: 1px solid #dcdcdc;\n}\n.kts-invoice-operate-goods-list-table .kts-invoice-operate-goods-discount {\n color: rgba(0, 0, 0, 0.25);\n background: #f5f5f5;\n}\n.kts-invoice-operate-goods-list-table .kts-invoice-operate-goods-list-able-list-itemName-import {\n display: flex;\n}\n.kts-invoice-operate-goods-list-table .kts-invoice-operate-goods-list-able-list-itemName-import .ktsAnt3x-btn {\n display: block;\n line-height: 0;\n width: auto;\n padding-right: 5px;\n}\n.kts-invoice-operate-goods-list-table .ktsAnt3x-form-item-children {\n height: 30px;\n display: block;\n}\n.kts-invoice-operate-goods-list-table .ktsAnt3x-table-body {\n height: 263px;\n}\n.kts-invoice-operate-goods-list-table .ktsAnt3x-form-explain {\n position: absolute;\n right: 6px;\n top: 6px;\n}\n.kts-invoice-operate-goods-list-table table {\n border-bottom: 1px solid #d9d9d9 !important;\n}\n.kts-invoice-operate-goods-list-table table > .ktsAnt3x-table-tbody > tr > td {\n padding: 0 !important;\n}\n.kts-invoice-operate-goods-list-table table > .ktsAnt3x-table-tbody > tr > td .ktsAnt3x-form-explain {\n display: none;\n}\n.kts-invoice-operate-goods-list-table table > .ktsAnt3x-table-tbody > tr > td .ktsAnt3x-form-item {\n padding: 0;\n margin: 0;\n}\n.kts-invoice-operate-goods-list-table table > .ktsAnt3x-table-tbody > tr > td .ktsAnt3x-form-item .ktsAnt3x-form-item-control {\n line-height: inherit;\n}\n.kts-invoice-operate-goods-list-table table > .ktsAnt3x-table-tbody > tr > td .has-error .ktsAnt3x-select-selection,\n.kts-invoice-operate-goods-list-table table > .ktsAnt3x-table-tbody > tr > td .has-error .ktsAnt3x-input,\n.kts-invoice-operate-goods-list-table table > .ktsAnt3x-table-tbody > tr > td .has-error .ktsAnt3x-input:hover {\n border-right-width: 1px !important;\n border-top-width: 1px;\n border-left-width: 1px;\n border-bottom-width: 1px;\n}\n.kts-invoice-operate-goods-list-table table > .ktsAnt3x-table-tbody > tr > td .ktsAnt3x-select-selection--single,\n.kts-invoice-operate-goods-list-table table > .ktsAnt3x-table-tbody > tr > td .ktsAnt3x-select-auto-complete.ktsAnt3x-select .ktsAnt3x-input:hover,\n.kts-invoice-operate-goods-list-table table > .ktsAnt3x-table-tbody > tr > td .ktsAnt3x-input {\n height: 30px;\n border-radius: 0;\n border-right-width: 0 !important;\n border-top-width: 0;\n border-left-width: 0;\n border-bottom-width: 0;\n box-shadow: none;\n}\n.kts-invoice-operate-goods-list-table-search-protrude {\n background: #ff0;\n color: #000;\n font-weight: bold;\n}\n";
|
|
10880
|
+
styleInject(css_248z$7);
|
|
10673
10881
|
|
|
10674
10882
|
var GoodsList = /*#__PURE__*/function (_React$Component) {
|
|
10675
10883
|
_inherits(GoodsList, _React$Component);
|
|
@@ -10700,6 +10908,15 @@ var Main = decorator(Form.create())(function (props) {
|
|
|
10700
10908
|
var isprefab = controller.useMemo(function (s) {
|
|
10701
10909
|
return s.model === 'prefab';
|
|
10702
10910
|
}, []);
|
|
10911
|
+
var dataSource = controller.useMemo(function (s) {
|
|
10912
|
+
return s.goodsListState.goodsList;
|
|
10913
|
+
}, []);
|
|
10914
|
+
var searchValue = controller.useMemo(function (s) {
|
|
10915
|
+
return s.goodsListState.searchValue;
|
|
10916
|
+
}, []);
|
|
10917
|
+
var dataSourceSearch = React.useMemo(function () {
|
|
10918
|
+
return controller.getGoodsSearch(dataSource, searchValue);
|
|
10919
|
+
}, [dataSource, searchValue, controller]);
|
|
10703
10920
|
/** 表格行事件 */
|
|
10704
10921
|
|
|
10705
10922
|
var _onRow = useOnRow();
|
|
@@ -10863,7 +11080,7 @@ var Main = decorator(Form.create())(function (props) {
|
|
|
10863
11080
|
className: "kts-invoice-operate-goods-list-able"
|
|
10864
11081
|
}, /*#__PURE__*/React.createElement("div", {
|
|
10865
11082
|
className: "kts-invoice-operate-goods-list-able-list"
|
|
10866
|
-
}, /*#__PURE__*/React.createElement(AddRowButton, null), /*#__PURE__*/React.createElement(DelRowButton, null), /*#__PURE__*/React.createElement(AddDiscountRowButton, null), /*#__PURE__*/React.createElement(EndowCodeButton, null)), /*#__PURE__*/React.createElement("div", {
|
|
11083
|
+
}, /*#__PURE__*/React.createElement(AddRowButton, null), /*#__PURE__*/React.createElement(DelRowButton, null), /*#__PURE__*/React.createElement(AddDiscountRowButton, null), /*#__PURE__*/React.createElement(EndowCodeButton, null), /*#__PURE__*/React.createElement(Search, null)), /*#__PURE__*/React.createElement("div", {
|
|
10867
11084
|
className: "kts-invoice-operate-goods-list-able-extend"
|
|
10868
11085
|
}, props.menuExpansion, /*#__PURE__*/React.createElement(TaxIncludedSwitch, null))), /*#__PURE__*/React.createElement("div", {
|
|
10869
11086
|
className: classnames('kts-invoice-operate-goods-list-table', {
|
|
@@ -10882,9 +11099,7 @@ var Main = decorator(Form.create())(function (props) {
|
|
|
10882
11099
|
row: TableRow
|
|
10883
11100
|
}
|
|
10884
11101
|
},
|
|
10885
|
-
dataSource:
|
|
10886
|
-
return s.goodsListState.goodsList;
|
|
10887
|
-
}, [controller]),
|
|
11102
|
+
dataSource: dataSourceSearch,
|
|
10888
11103
|
columns: useColumns(props.form),
|
|
10889
11104
|
rowSelection: useRowSelection(),
|
|
10890
11105
|
onRow: function onRow(record) {
|
|
@@ -10897,8 +11112,8 @@ var Main = decorator(Form.create())(function (props) {
|
|
|
10897
11112
|
})), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Statistics, null)));
|
|
10898
11113
|
});
|
|
10899
11114
|
|
|
10900
|
-
var css_248z$
|
|
10901
|
-
styleInject(css_248z$
|
|
11115
|
+
var css_248z$8 = ".kts-invoice-operate-seller {\n display: flex;\n}\n.kts-invoice-operate-seller .kts-invoice-operate-seller-message {\n flex: 1;\n display: flex;\n}\n.kts-invoice-operate-seller .kts-invoice-operate-seller-message .ktsAnt3x-descriptions-item-label {\n width: 179px;\n}\n.kts-invoice-operate-seller .kts-invoice-operate-seller-message .kts-invoice-operate-seller-message-list {\n width: 100%;\n}\n.kts-invoice-operate-seller .kts-invoice-operate-seller-message .kts-invoice-operate-seller-message-list .ktsAnt3x-descriptions-view {\n border: none;\n}\n.kts-invoice-operate-seller .kts-invoice-operate-seller-message .kts-invoice-operate-seller-message-list .ktsAnt3x-descriptions-item-label {\n padding: 0 10px;\n font-size: 12px;\n background-color: #fff;\n line-height: 30px;\n}\n.kts-invoice-operate-seller .kts-invoice-operate-seller-message .kts-invoice-operate-seller-message-list .ktsAnt3x-descriptions-item-label::before {\n content: '*';\n position: relative;\n color: red;\n font-weight: bold;\n margin-right: 2px;\n}\n.kts-invoice-operate-seller .kts-invoice-operate-seller-message .kts-invoice-operate-seller-message-list .ktsAnt3x-descriptions-item-content {\n padding: 0;\n}\n.kts-invoice-operate-seller .kts-invoice-operate-seller-message .kts-invoice-operate-seller-message-list .ktsAnt3x-descriptions-item-content .ktsAnt3x-input {\n box-shadow: none;\n border-color: #fff;\n border-radius: 0;\n padding: 0 10px;\n font-size: 12px;\n line-height: 30px;\n width: 100%;\n height: 30px;\n}\n.kts-invoice-operate-seller .kts-invoice-operate-seller-message .kts-invoice-operate-seller-message-list .ktsAnt3x-descriptions-item-content .ktsAnt3x-input:hover {\n border: 1 solid;\n border-color: #40a9ff;\n border-right-width: 1px !important;\n}\n.kts-invoice-operate-seller .kts-invoice-operate-seller-message .kts-invoice-operate-seller-message-list .ktsAnt3x-descriptions-item-content .has-error .ktsAnt3x-input,\n.kts-invoice-operate-seller .kts-invoice-operate-seller-message .kts-invoice-operate-seller-message-list .ktsAnt3x-descriptions-item-content .has-error .ktsAnt3x-input:hover {\n background-color: #fff;\n border: 1 solid;\n border-color: #f5222d;\n}\n.kts-invoice-operate-seller .kts-invoice-operate-seller-message .kts-invoice-operate-seller-message-list .ktsAnt3x-form-item {\n margin: 0;\n}\n.kts-invoice-operate-seller .kts-invoice-operate-seller-message .kts-invoice-operate-seller-message-list .ktsAnt3x-form-item-control {\n line-height: 0;\n}\n.kts-invoice-operate-seller .kts-invoice-operate-seller-message .kts-invoice-operate-seller-message-list .ktsAnt3x-form-explain {\n position: absolute;\n right: 5px;\n top: 6px;\n z-index: 10;\n}\n.kts-invoice-operate-seller .kts-invoice-operate-seller-remarks {\n border-left: 1px solid #dcdcdc;\n display: flex;\n flex: none;\n width: 458px;\n}\n.kts-invoice-operate-seller .kts-invoice-operate-seller-remarks-value {\n flex: 1;\n display: flex;\n flex-direction: column;\n}\n.kts-invoice-operate-seller .kts-invoice-operate-seller-remarks-value textarea {\n flex: 1;\n margin-bottom: 0;\n border: none;\n border-radius: 0;\n}\n.kts-invoice-operate-seller .kts-invoice-operate-seller-title {\n flex: none;\n width: 30px;\n height: 100%;\n text-align: center;\n border-right: 1px solid #dcdcdc;\n display: table;\n padding: 0 5px;\n}\n.kts-invoice-operate-seller .kts-invoice-operate-seller-title label {\n display: table-cell;\n vertical-align: middle;\n}\n";
|
|
11116
|
+
styleInject(css_248z$8);
|
|
10902
11117
|
|
|
10903
11118
|
var TextArea = Input.TextArea;
|
|
10904
11119
|
|
|
@@ -11042,8 +11257,8 @@ var Main$1 = decorator(Form.create())(function (props) {
|
|
|
11042
11257
|
})( /*#__PURE__*/React.createElement(TextArea, null))))));
|
|
11043
11258
|
});
|
|
11044
11259
|
|
|
11045
|
-
var css_248z$
|
|
11046
|
-
styleInject(css_248z$
|
|
11260
|
+
var css_248z$9 = ".kts-invoice-operate-sign form {\n display: flex;\n}\n.kts-invoice-operate-sign form .ktsAnt3x-row.ktsAnt3x-form-item {\n margin: 0;\n}\n.kts-invoice-operate-sign form > div {\n flex: 1;\n text-align: center;\n}\n";
|
|
11261
|
+
styleInject(css_248z$9);
|
|
11047
11262
|
|
|
11048
11263
|
var Sign = decorator(Form.create())(function (props) {
|
|
11049
11264
|
var form = props.form;
|
|
@@ -11365,8 +11580,8 @@ function interval(i, t) {
|
|
|
11365
11580
|
}
|
|
11366
11581
|
}
|
|
11367
11582
|
|
|
11368
|
-
var css_248z$
|
|
11369
|
-
styleInject(css_248z$
|
|
11583
|
+
var css_248z$a = ".kts-invoice-operate-buyer {\n display: flex;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-message {\n flex: 1;\n display: flex;\n position: relative;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-message .ktsAnt3x-descriptions-item-label {\n width: 179px;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-message .kts-invoice-operate-buyer-message-list {\n width: 100%;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-message .kts-invoice-operate-buyer-message-list .ktsAnt3x-descriptions-view {\n border: none;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-message .kts-invoice-operate-buyer-message-list .ktsAnt3x-descriptions-item-label {\n padding: 0 10px;\n font-size: 12px;\n background-color: #fff;\n line-height: 30px;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-message .kts-invoice-operate-buyer-message-list .ktsAnt3x-descriptions-item-content {\n padding: 0;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-message .kts-invoice-operate-buyer-message-list .ktsAnt3x-descriptions-item-content .ktsAnt3x-input {\n box-shadow: none;\n border-color: #fff;\n border-radius: 0;\n padding: 0 10px;\n font-size: 12px;\n line-height: 30px;\n width: 100%;\n height: 100%;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-message .kts-invoice-operate-buyer-message-list .ktsAnt3x-descriptions-item-content .ktsAnt3x-input:hover {\n border: 1 solid;\n border-color: #40a9ff;\n border-right-width: 1px !important;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-message .kts-invoice-operate-buyer-message-list .ktsAnt3x-descriptions-item-content .has-error .ktsAnt3x-input,\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-message .kts-invoice-operate-buyer-message-list .ktsAnt3x-descriptions-item-content .has-error .ktsAnt3x-input:hover {\n background-color: #fff;\n border: 1 solid;\n border-color: #f5222d;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-message .kts-invoice-operate-buyer-message-list .ktsAnt3x-form-item {\n margin: 0;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-message .kts-invoice-operate-buyer-message-list .ktsAnt3x-form-item-control {\n line-height: 0;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-message .kts-invoice-operate-buyer-message-list .ktsAnt3x-form-item-children {\n height: 30px;\n display: block;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-message .kts-invoice-operate-buyer-message-list .ktsAnt3x-form-item-children .ktsAnt3x-btn {\n line-height: 0;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-message .kts-invoice-operate-buyer-message-list .ktsAnt3x-form-explain {\n position: absolute;\n left: 5px;\n top: 6px;\n z-index: 10;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-message .kts-invoice-operate-buyer-message-Import {\n position: absolute;\n right: 0px;\n top: 0px;\n z-index: 10;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-password {\n border-left: 1px solid #dcdcdc;\n display: flex;\n flex: none;\n width: 458px;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-title {\n flex: none;\n width: 30px;\n height: 100%;\n text-align: center;\n border-right: 1px solid #dcdcdc;\n display: table;\n padding: 0 5px;\n}\n.kts-invoice-operate-buyer .kts-invoice-operate-buyer-title label {\n display: table-cell;\n vertical-align: middle;\n}\n.ktsAnt3x-popover.kts-invoice-operate-buyer-name-popover {\n padding-top: 0;\n}\n.ktsAnt3x-popover.kts-invoice-operate-buyer-name-popover .ktsAnt3x-popover-inner-content {\n padding: 6px 0;\n display: flex;\n flex-direction: column;\n overflow-y: auto;\n overflow-x: hidden;\n}\n.ktsAnt3x-popover.kts-invoice-operate-buyer-name-popover .ktsAnt3x-popover-arrow {\n display: none;\n}\n.ktsAnt3x-popover.kts-invoice-operate-buyer-name-popover .kts-invoice-operate-buyer-name-content {\n width: 567px;\n}\n.ktsAnt3x-popover.kts-invoice-operate-buyer-name-popover .kts-invoice-operate-buyer-name-content .kts-invoice-operate-buyer-name-content-block {\n padding: 14px 0;\n}\n.ktsAnt3x-popover.kts-invoice-operate-buyer-name-popover .kts-invoice-operate-buyer-name-content .kts-invoice-operate-buyer-name-content-block label {\n display: block;\n font-size: 12px;\n color: #666666;\n}\n.ktsAnt3x-popover.kts-invoice-operate-buyer-name-popover .kts-invoice-operate-buyer-name-content .kts-invoice-operate-buyer-name-content-recently-issued {\n padding: 0;\n margin: 0;\n}\n.ktsAnt3x-popover.kts-invoice-operate-buyer-name-popover .kts-invoice-operate-buyer-name-content .kts-invoice-operate-buyer-name-content-recently-issued li {\n list-style: none;\n width: 50%;\n float: left;\n margin-bottom: 20px;\n padding: 0 10px;\n}\n.ktsAnt3x-popover.kts-invoice-operate-buyer-name-popover .kts-invoice-operate-buyer-name-content .kts-invoice-operate-buyer-name-content-recently-issued::after {\n content: \".\";\n display: block;\n height: 0;\n clear: left;\n visibility: hidden;\n}\n.ktsAnt3x-popover.kts-invoice-operate-buyer-name-popover .kts-invoice-operate-buyer-name-content .kts-invoice-operate-buyer-name-content-select-company {\n padding: 0;\n margin: 0;\n font-size: 12px;\n padding: 10px;\n font-weight: bold;\n color: #000000;\n cursor: pointer;\n transition: background 0.4s;\n}\n.ktsAnt3x-popover.kts-invoice-operate-buyer-name-popover .kts-invoice-operate-buyer-name-content .kts-invoice-operate-buyer-name-content-select-company:hover {\n background: #e6e6e6e6;\n}\n.ktsAnt3x-popover.kts-invoice-operate-buyer-name-popover .kts-invoice-operate-buyer-name-content .kts-invoice-operate-buyer-name-content-select-company:last-child {\n margin-bottom: 0;\n}\n.ktsAnt3x-popover.kts-invoice-operate-buyer-name-popover .kts-invoice-operate-buyer-name-content .kts-invoice-operate-buyer-name-content-select-company li {\n list-style: none;\n width: 50%;\n float: left;\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden;\n padding-right: 10px;\n}\n.ktsAnt3x-popover.kts-invoice-operate-buyer-name-popover .kts-invoice-operate-buyer-name-content .kts-invoice-operate-buyer-name-content-select-company::after {\n content: \".\";\n display: block;\n height: 0;\n clear: left;\n visibility: hidden;\n}\n.ktsAnt3x-popover.kts-invoice-operate-buyer-name-popover .kts-invoice-operate-buyer-name-content-tag {\n line-height: 1;\n padding: 4px 12px;\n background: #F3F3F3;\n border-radius: 9999px;\n font-size: 12px;\n font-weight: bold;\n color: #000;\n cursor: pointer;\n transition: background 0.4s;\n display: inline-block;\n max-width: 100%;\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden;\n}\n.ktsAnt3x-popover.kts-invoice-operate-buyer-name-popover .kts-invoice-operate-buyer-name-content-tag:hover {\n background: #e6e6e6e6;\n}\n";
|
|
11584
|
+
styleInject(css_248z$a);
|
|
11370
11585
|
|
|
11371
11586
|
var Text$5 = Typography.Text;
|
|
11372
11587
|
|
|
@@ -11874,8 +12089,8 @@ function cutStr(str, L) {
|
|
|
11874
12089
|
}
|
|
11875
12090
|
}
|
|
11876
12091
|
|
|
11877
|
-
var css_248z$
|
|
11878
|
-
styleInject(css_248z$
|
|
12092
|
+
var css_248z$b = ".kts-invoice-operate-goods-endow-code-button-list {\n display: flex;\n flex-direction: column;\n}\n.kts-invoice-operate-goods-endow-code-button-list > button {\n margin-bottom: 10px;\n}\n";
|
|
12093
|
+
styleInject(css_248z$b);
|
|
11879
12094
|
|
|
11880
12095
|
var TreeNode = Tree.TreeNode;
|
|
11881
12096
|
var confirm = Modal.confirm;
|