kts-component-invoice-operate 2.0.16 → 2.0.17
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/ui/GoodsList/ui/BulkMenu/hooks/useEndowCodeButton/index.d.ts +1 -0
- package/dist/index.esm.js +108 -101
- package/dist/index.js +107 -100
- package/docs-dist/umi.css +1 -1
- package/docs-dist/umi.js +1 -1
- package/package.json +1 -1
- package/src/Invoice/_test/draft/index.tsx +3 -1
- package/src/Invoice/ui/GoodsList/index.tsx +8 -0
- package/src/Invoice/ui/GoodsList/ui/BulkMenu/hooks/useEndowCodeButton/index.tsx +10 -2
- package/src/Invoice/ui/GoodsList/ui/BulkMenu/index.tsx +0 -5
- package/src/Invoice/ui/InvoiceHeader/index.less +35 -20
- package/src/Invoice/ui/InvoiceHeader/index.tsx +16 -4
package/dist/index.esm.js
CHANGED
|
@@ -2,7 +2,7 @@ import 'kts-components-antd-x3/dist/kts-components-antd-x3.css';
|
|
|
2
2
|
import React, { createElement } from 'react';
|
|
3
3
|
import GreyReactBox, { decorator } from 'grey-react-box';
|
|
4
4
|
import { chain as chain$1, bignumber, create, all } from 'mathjs';
|
|
5
|
-
import { message, Form, Input, Icon, Tag, Select,
|
|
5
|
+
import { message, Form, Input, Icon, Tag, Select, Table, Button, Switch, Tooltip, Menu, Typography, Drawer, Dropdown, AutoComplete, Spin, Checkbox, Descriptions, Empty, Divider, Popover, Tree, Modal, Row, Col } from 'kts-components-antd-x3';
|
|
6
6
|
import { v4 } from 'uuid';
|
|
7
7
|
import classnames from 'classnames';
|
|
8
8
|
import { Input as Input$1, NumberPicker } from '@formily/antd-components';
|
|
@@ -1597,7 +1597,7 @@ function SvgAuto(props) {
|
|
|
1597
1597
|
})));
|
|
1598
1598
|
}
|
|
1599
1599
|
|
|
1600
|
-
var css_248z$1 = ".kts-invoice-operate-invoice-header {\n padding: 20px 8px;\n background: #f6f7f9;\n position: relative;\n color: rgba(0, 0, 0, 0.85);\n font-weight: 500;\n}\n.kts-invoice-operate-invoice-header label {\n margin-right: 5px;\n white-space: nowrap;\n}\n.kts-invoice-operate-invoice-header .invoice-header-title {\n top: 20px;\n left: 0;\n position: absolute;\n color: #e28b89;\n font-weight: 500;\n font-size: 22px;\n text-align: center;\n width: 100%;\n pointer-events: none;\n z-index: 1;\n}\n.kts-invoice-operate-invoice-header .invoice-header-no {\n display: flex;\n}\n.kts-invoice-operate-invoice-header .invoice-header-no .ktsAnt3x-tag {\n margin-left: 10px;\n height: 24px;\n}\n.kts-invoice-operate-invoice-header .invoice-header-type {\n flex: 1;\n text-align: right;\n}\n.kts-invoice-operate-invoice-header .invoice-header-property {\n margin: 20px 0 0;\n}\n.kts-invoice-operate-invoice-header .invoice-header-property .ktsAnt3x-col {\n display: flex;\n flex-direction: inherit;\n padding-right: 20px;\n}\n.kts-invoice-operate-invoice-header .invoice-header-property .ktsAnt3x-col span {\n color: #999;\n}\n";
|
|
1600
|
+
var css_248z$1 = ".kts-invoice-operate-invoice-header {\n padding: 20px 8px;\n background: #f6f7f9;\n position: relative;\n color: rgba(0, 0, 0, 0.85);\n font-weight: 500;\n}\n.kts-invoice-operate-invoice-header label {\n margin-right: 5px;\n white-space: nowrap;\n}\n.kts-invoice-operate-invoice-header .invoice-header-title {\n top: 20px;\n left: 0;\n position: absolute;\n color: #e28b89;\n font-weight: 500;\n font-size: 22px;\n text-align: center;\n width: 100%;\n pointer-events: none;\n z-index: 1;\n}\n.kts-invoice-operate-invoice-header .invoice-header-no {\n display: flex;\n}\n.kts-invoice-operate-invoice-header .invoice-header-no .ktsAnt3x-tag {\n margin-left: 10px;\n height: 24px;\n}\n.kts-invoice-operate-invoice-header .invoice-header-type {\n flex: 1;\n text-align: right;\n}\n.kts-invoice-operate-invoice-header .invoice-header-property {\n margin: 20px 0 0;\n}\n.kts-invoice-operate-invoice-header .invoice-header-property .ktsAnt3x-col {\n display: flex;\n flex-direction: inherit;\n padding-right: 20px;\n}\n.kts-invoice-operate-invoice-header .invoice-header-property .ktsAnt3x-col span {\n color: #999;\n}\n.kts-invoice-operate-invoice-header .invoice-header-property-fieldExpand {\n display: flex;\n margin: 0;\n padding: 0;\n list-style-type: none;\n gap: 10px;\n align-items: center;\n}\n.kts-invoice-operate-invoice-header .invoice-header-property-fieldExpand li {\n display: flex;\n align-items: center;\n flex: 1;\n}\n";
|
|
1601
1601
|
styleInject(css_248z$1);
|
|
1602
1602
|
|
|
1603
1603
|
var InvoiceHeader = decorator(Form.create())(function (props) {
|
|
@@ -1788,10 +1788,10 @@ var InvoiceHeader = decorator(Form.create())(function (props) {
|
|
|
1788
1788
|
}
|
|
1789
1789
|
}, props.renderExpand && props.renderExpand(props.form)), React.createElement("div", {
|
|
1790
1790
|
className: "invoice-header-property"
|
|
1791
|
-
}, _toConsumableArray(props.fieldExpand || []).map(function (e) {}), React.createElement(
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1791
|
+
}, _toConsumableArray(props.fieldExpand || []).map(function (e) {}), React.createElement("ul", {
|
|
1792
|
+
className: 'invoice-header-property-fieldExpand'
|
|
1793
|
+
}, fieldExpand.map(function (e) {
|
|
1794
|
+
return React.createElement("li", null, React.createElement("label", null, e.label), e.render(form));
|
|
1795
1795
|
}))));
|
|
1796
1796
|
});
|
|
1797
1797
|
|
|
@@ -2854,96 +2854,6 @@ var coolingFn = (function () {
|
|
|
2854
2854
|
}
|
|
2855
2855
|
});
|
|
2856
2856
|
|
|
2857
|
-
var useEndowCodeButton = (function () {
|
|
2858
|
-
var controller = Invoice.useInvoiceController();
|
|
2859
|
-
/** 是否禁用 */
|
|
2860
|
-
|
|
2861
|
-
var disabled = controller.useMemo(function (s) {
|
|
2862
|
-
if (s.goodsListState.selectedGoodIndex.length <= 0) return true;
|
|
2863
|
-
}, []);
|
|
2864
|
-
var onClick = React.useCallback( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
2865
|
-
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
2866
|
-
while (1) {
|
|
2867
|
-
switch (_context2.prev = _context2.next) {
|
|
2868
|
-
case 0:
|
|
2869
|
-
_context2.next = 2;
|
|
2870
|
-
return controller.saveEditGood();
|
|
2871
|
-
|
|
2872
|
-
case 2:
|
|
2873
|
-
_context2.next = 4;
|
|
2874
|
-
return controller.wait();
|
|
2875
|
-
|
|
2876
|
-
case 4:
|
|
2877
|
-
_context2.next = 6;
|
|
2878
|
-
return controller.pipeline( /*#__PURE__*/function () {
|
|
2879
|
-
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(s) {
|
|
2880
|
-
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
2881
|
-
while (1) {
|
|
2882
|
-
switch (_context.prev = _context.next) {
|
|
2883
|
-
case 0:
|
|
2884
|
-
if (!(s.goodsListState.editGood && s.goodsListState.selectedGoodIndex.indexOf(s.goodsListState.editGood.$index) >= 0)) {
|
|
2885
|
-
_context.next = 3;
|
|
2886
|
-
break;
|
|
2887
|
-
}
|
|
2888
|
-
|
|
2889
|
-
coolingFn('不能给正在编辑的货物赋码', 3000, function () {
|
|
2890
|
-
message.error('不能给正在编辑的货物赋码');
|
|
2891
|
-
});
|
|
2892
|
-
return _context.abrupt("return");
|
|
2893
|
-
|
|
2894
|
-
case 3:
|
|
2895
|
-
if (!s.goodsListState.selectedGoodIndex.map(function (e) {
|
|
2896
|
-
return s.goodsListState.goodsMap.get(e);
|
|
2897
|
-
}).some(function (e, _, arr) {
|
|
2898
|
-
var _arr$;
|
|
2899
|
-
|
|
2900
|
-
return (e === null || e === void 0 ? void 0 : e.taxRate) !== ((_arr$ = arr[0]) === null || _arr$ === void 0 ? void 0 : _arr$.taxRate);
|
|
2901
|
-
})) {
|
|
2902
|
-
_context.next = 6;
|
|
2903
|
-
break;
|
|
2904
|
-
}
|
|
2905
|
-
|
|
2906
|
-
coolingFn('商品税率不一致不能操作批量赋码', 3000, function () {
|
|
2907
|
-
message.error('商品税率不一致不能操作批量赋码');
|
|
2908
|
-
});
|
|
2909
|
-
return _context.abrupt("return");
|
|
2910
|
-
|
|
2911
|
-
case 6:
|
|
2912
|
-
// 设置赋码
|
|
2913
|
-
s.goodsListState.endowCode.endowcodeGoodIndex = s.goodsListState.selectedGoodIndex;
|
|
2914
|
-
|
|
2915
|
-
case 7:
|
|
2916
|
-
case "end":
|
|
2917
|
-
return _context.stop();
|
|
2918
|
-
}
|
|
2919
|
-
}
|
|
2920
|
-
}, _callee);
|
|
2921
|
-
}));
|
|
2922
|
-
|
|
2923
|
-
return function (_x) {
|
|
2924
|
-
return _ref2.apply(this, arguments);
|
|
2925
|
-
};
|
|
2926
|
-
}())();
|
|
2927
|
-
|
|
2928
|
-
case 6:
|
|
2929
|
-
case "end":
|
|
2930
|
-
return _context2.stop();
|
|
2931
|
-
}
|
|
2932
|
-
}
|
|
2933
|
-
}, _callee2);
|
|
2934
|
-
})), [controller]);
|
|
2935
|
-
var menuItem = React.useMemo(function () {
|
|
2936
|
-
return React.createElement(Menu.Item, {
|
|
2937
|
-
key: "2",
|
|
2938
|
-
onClick: onClick,
|
|
2939
|
-
disabled: disabled
|
|
2940
|
-
}, "\u6279\u91CF\u8D4B\u7801");
|
|
2941
|
-
}, [onClick, disabled]);
|
|
2942
|
-
return {
|
|
2943
|
-
menuItem: menuItem
|
|
2944
|
-
};
|
|
2945
|
-
});
|
|
2946
|
-
|
|
2947
2857
|
/** 拆分全称加简称 */
|
|
2948
2858
|
var getSN = function getSN(value) {
|
|
2949
2859
|
if (!value) return undefined;
|
|
@@ -3108,13 +3018,10 @@ function BulkMenu() {
|
|
|
3108
3018
|
/** 添加折扣行 */
|
|
3109
3019
|
|
|
3110
3020
|
var addDiscountRowButton = useAddDiscountRowButton();
|
|
3111
|
-
/** 批量赋码 */
|
|
3112
|
-
|
|
3113
|
-
var endowCodeButton = useEndowCodeButton();
|
|
3114
3021
|
/** 执行商品对照 */
|
|
3115
3022
|
|
|
3116
3023
|
var commodityComparisonButton = useCommodityComparisonButton();
|
|
3117
|
-
var menu = React.createElement(Menu, null, delRowButton.menuItem, addDiscountRowButton.menuItem,
|
|
3024
|
+
var menu = React.createElement(Menu, null, delRowButton.menuItem, addDiscountRowButton.menuItem, commodityComparisonButton.menuItem);
|
|
3118
3025
|
return React.createElement(React.Fragment, null, React.createElement(Dropdown, {
|
|
3119
3026
|
overlay: menu
|
|
3120
3027
|
}, React.createElement(Button, null, "\u6279\u91CF\u64CD\u4F5C\u884C")), addDiscountRowButton.drawer);
|
|
@@ -11482,6 +11389,103 @@ var useRowSelection = (function () {
|
|
|
11482
11389
|
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 gap: 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";
|
|
11483
11390
|
styleInject(css_248z$7);
|
|
11484
11391
|
|
|
11392
|
+
var useEndowCodeButton = (function () {
|
|
11393
|
+
var controller = Invoice.useInvoiceController();
|
|
11394
|
+
/** 是否禁用 */
|
|
11395
|
+
|
|
11396
|
+
var disabled = controller.useMemo(function (s) {
|
|
11397
|
+
if (s.goodsListState.selectedGoodIndex.length <= 0) return true;
|
|
11398
|
+
}, []);
|
|
11399
|
+
var onClick = React.useCallback( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
11400
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
11401
|
+
while (1) {
|
|
11402
|
+
switch (_context2.prev = _context2.next) {
|
|
11403
|
+
case 0:
|
|
11404
|
+
_context2.next = 2;
|
|
11405
|
+
return controller.saveEditGood();
|
|
11406
|
+
|
|
11407
|
+
case 2:
|
|
11408
|
+
_context2.next = 4;
|
|
11409
|
+
return controller.wait();
|
|
11410
|
+
|
|
11411
|
+
case 4:
|
|
11412
|
+
_context2.next = 6;
|
|
11413
|
+
return controller.pipeline( /*#__PURE__*/function () {
|
|
11414
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(s) {
|
|
11415
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
11416
|
+
while (1) {
|
|
11417
|
+
switch (_context.prev = _context.next) {
|
|
11418
|
+
case 0:
|
|
11419
|
+
if (!(s.goodsListState.editGood && s.goodsListState.selectedGoodIndex.indexOf(s.goodsListState.editGood.$index) >= 0)) {
|
|
11420
|
+
_context.next = 3;
|
|
11421
|
+
break;
|
|
11422
|
+
}
|
|
11423
|
+
|
|
11424
|
+
coolingFn('不能给正在编辑的货物赋码', 3000, function () {
|
|
11425
|
+
message.error('不能给正在编辑的货物赋码');
|
|
11426
|
+
});
|
|
11427
|
+
return _context.abrupt("return");
|
|
11428
|
+
|
|
11429
|
+
case 3:
|
|
11430
|
+
if (!s.goodsListState.selectedGoodIndex.map(function (e) {
|
|
11431
|
+
return s.goodsListState.goodsMap.get(e);
|
|
11432
|
+
}).some(function (e, _, arr) {
|
|
11433
|
+
var _arr$;
|
|
11434
|
+
|
|
11435
|
+
return (e === null || e === void 0 ? void 0 : e.taxRate) !== ((_arr$ = arr[0]) === null || _arr$ === void 0 ? void 0 : _arr$.taxRate);
|
|
11436
|
+
})) {
|
|
11437
|
+
_context.next = 6;
|
|
11438
|
+
break;
|
|
11439
|
+
}
|
|
11440
|
+
|
|
11441
|
+
coolingFn('商品税率不一致不能操作批量赋码', 3000, function () {
|
|
11442
|
+
message.error('商品税率不一致不能操作批量赋码');
|
|
11443
|
+
});
|
|
11444
|
+
return _context.abrupt("return");
|
|
11445
|
+
|
|
11446
|
+
case 6:
|
|
11447
|
+
// 设置赋码
|
|
11448
|
+
s.goodsListState.endowCode.endowcodeGoodIndex = s.goodsListState.selectedGoodIndex;
|
|
11449
|
+
|
|
11450
|
+
case 7:
|
|
11451
|
+
case "end":
|
|
11452
|
+
return _context.stop();
|
|
11453
|
+
}
|
|
11454
|
+
}
|
|
11455
|
+
}, _callee);
|
|
11456
|
+
}));
|
|
11457
|
+
|
|
11458
|
+
return function (_x) {
|
|
11459
|
+
return _ref2.apply(this, arguments);
|
|
11460
|
+
};
|
|
11461
|
+
}())();
|
|
11462
|
+
|
|
11463
|
+
case 6:
|
|
11464
|
+
case "end":
|
|
11465
|
+
return _context2.stop();
|
|
11466
|
+
}
|
|
11467
|
+
}
|
|
11468
|
+
}, _callee2);
|
|
11469
|
+
})), [controller]);
|
|
11470
|
+
var menuItem = React.useMemo(function () {
|
|
11471
|
+
return React.createElement(Menu.Item, {
|
|
11472
|
+
key: "2",
|
|
11473
|
+
onClick: onClick,
|
|
11474
|
+
disabled: disabled
|
|
11475
|
+
}, "\u6279\u91CF\u8D4B\u7801");
|
|
11476
|
+
}, [onClick, disabled]);
|
|
11477
|
+
var buuton = React.useMemo(function () {
|
|
11478
|
+
return React.createElement(Button, {
|
|
11479
|
+
onClick: onClick,
|
|
11480
|
+
disabled: disabled
|
|
11481
|
+
}, "\u6279\u91CF\u8D4B\u7801");
|
|
11482
|
+
}, [onClick, disabled]);
|
|
11483
|
+
return {
|
|
11484
|
+
menuItem: menuItem,
|
|
11485
|
+
buuton: buuton
|
|
11486
|
+
};
|
|
11487
|
+
});
|
|
11488
|
+
|
|
11485
11489
|
var GoodsList = /*#__PURE__*/function (_React$Component) {
|
|
11486
11490
|
_inherits(GoodsList, _React$Component);
|
|
11487
11491
|
|
|
@@ -11529,6 +11533,9 @@ var Main = decorator(Form.create())(function (props) {
|
|
|
11529
11533
|
|
|
11530
11534
|
useDeduction(controller, props.deduction);
|
|
11531
11535
|
useWindowClick(controller);
|
|
11536
|
+
/** 批量赋码 */
|
|
11537
|
+
|
|
11538
|
+
var endowCodeButton = useEndowCodeButton();
|
|
11532
11539
|
/** 清空自动赋码缓存 */
|
|
11533
11540
|
|
|
11534
11541
|
React.useEffect(function () {
|
|
@@ -11686,7 +11693,7 @@ var Main = decorator(Form.create())(function (props) {
|
|
|
11686
11693
|
className: "kts-invoice-operate-goods-list-able"
|
|
11687
11694
|
}, React.createElement("div", {
|
|
11688
11695
|
className: "kts-invoice-operate-goods-list-able-list"
|
|
11689
|
-
}, React.createElement(AddRowButton, null), React.createElement(BulkMenu, null), React.createElement(Search, null)), React.createElement("div", {
|
|
11696
|
+
}, React.createElement(AddRowButton, null), React.createElement(BulkMenu, null), endowCodeButton.buuton, React.createElement(Search, null)), React.createElement("div", {
|
|
11690
11697
|
className: "kts-invoice-operate-goods-list-able-extend"
|
|
11691
11698
|
}, props.menuExpansion, React.createElement(DescribeSwitch, null), React.createElement(TaxIncludedSwitch, null))), React.createElement("div", {
|
|
11692
11699
|
className: classnames('kts-invoice-operate-goods-list-table', {
|
package/dist/index.js
CHANGED
|
@@ -1607,7 +1607,7 @@ function SvgAuto(props) {
|
|
|
1607
1607
|
})));
|
|
1608
1608
|
}
|
|
1609
1609
|
|
|
1610
|
-
var css_248z$1 = ".kts-invoice-operate-invoice-header {\n padding: 20px 8px;\n background: #f6f7f9;\n position: relative;\n color: rgba(0, 0, 0, 0.85);\n font-weight: 500;\n}\n.kts-invoice-operate-invoice-header label {\n margin-right: 5px;\n white-space: nowrap;\n}\n.kts-invoice-operate-invoice-header .invoice-header-title {\n top: 20px;\n left: 0;\n position: absolute;\n color: #e28b89;\n font-weight: 500;\n font-size: 22px;\n text-align: center;\n width: 100%;\n pointer-events: none;\n z-index: 1;\n}\n.kts-invoice-operate-invoice-header .invoice-header-no {\n display: flex;\n}\n.kts-invoice-operate-invoice-header .invoice-header-no .ktsAnt3x-tag {\n margin-left: 10px;\n height: 24px;\n}\n.kts-invoice-operate-invoice-header .invoice-header-type {\n flex: 1;\n text-align: right;\n}\n.kts-invoice-operate-invoice-header .invoice-header-property {\n margin: 20px 0 0;\n}\n.kts-invoice-operate-invoice-header .invoice-header-property .ktsAnt3x-col {\n display: flex;\n flex-direction: inherit;\n padding-right: 20px;\n}\n.kts-invoice-operate-invoice-header .invoice-header-property .ktsAnt3x-col span {\n color: #999;\n}\n";
|
|
1610
|
+
var css_248z$1 = ".kts-invoice-operate-invoice-header {\n padding: 20px 8px;\n background: #f6f7f9;\n position: relative;\n color: rgba(0, 0, 0, 0.85);\n font-weight: 500;\n}\n.kts-invoice-operate-invoice-header label {\n margin-right: 5px;\n white-space: nowrap;\n}\n.kts-invoice-operate-invoice-header .invoice-header-title {\n top: 20px;\n left: 0;\n position: absolute;\n color: #e28b89;\n font-weight: 500;\n font-size: 22px;\n text-align: center;\n width: 100%;\n pointer-events: none;\n z-index: 1;\n}\n.kts-invoice-operate-invoice-header .invoice-header-no {\n display: flex;\n}\n.kts-invoice-operate-invoice-header .invoice-header-no .ktsAnt3x-tag {\n margin-left: 10px;\n height: 24px;\n}\n.kts-invoice-operate-invoice-header .invoice-header-type {\n flex: 1;\n text-align: right;\n}\n.kts-invoice-operate-invoice-header .invoice-header-property {\n margin: 20px 0 0;\n}\n.kts-invoice-operate-invoice-header .invoice-header-property .ktsAnt3x-col {\n display: flex;\n flex-direction: inherit;\n padding-right: 20px;\n}\n.kts-invoice-operate-invoice-header .invoice-header-property .ktsAnt3x-col span {\n color: #999;\n}\n.kts-invoice-operate-invoice-header .invoice-header-property-fieldExpand {\n display: flex;\n margin: 0;\n padding: 0;\n list-style-type: none;\n gap: 10px;\n align-items: center;\n}\n.kts-invoice-operate-invoice-header .invoice-header-property-fieldExpand li {\n display: flex;\n align-items: center;\n flex: 1;\n}\n";
|
|
1611
1611
|
styleInject(css_248z$1);
|
|
1612
1612
|
|
|
1613
1613
|
var InvoiceHeader = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(function (props) {
|
|
@@ -1798,10 +1798,10 @@ var InvoiceHeader = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(fu
|
|
|
1798
1798
|
}
|
|
1799
1799
|
}, props.renderExpand && props.renderExpand(props.form)), React__default['default'].createElement("div", {
|
|
1800
1800
|
className: "invoice-header-property"
|
|
1801
|
-
}, _toConsumableArray(props.fieldExpand || []).map(function (e) {}), React__default['default'].createElement(
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1801
|
+
}, _toConsumableArray(props.fieldExpand || []).map(function (e) {}), React__default['default'].createElement("ul", {
|
|
1802
|
+
className: 'invoice-header-property-fieldExpand'
|
|
1803
|
+
}, fieldExpand.map(function (e) {
|
|
1804
|
+
return React__default['default'].createElement("li", null, React__default['default'].createElement("label", null, e.label), e.render(form));
|
|
1805
1805
|
}))));
|
|
1806
1806
|
});
|
|
1807
1807
|
|
|
@@ -2864,96 +2864,6 @@ var coolingFn = (function () {
|
|
|
2864
2864
|
}
|
|
2865
2865
|
});
|
|
2866
2866
|
|
|
2867
|
-
var useEndowCodeButton = (function () {
|
|
2868
|
-
var controller = Invoice.useInvoiceController();
|
|
2869
|
-
/** 是否禁用 */
|
|
2870
|
-
|
|
2871
|
-
var disabled = controller.useMemo(function (s) {
|
|
2872
|
-
if (s.goodsListState.selectedGoodIndex.length <= 0) return true;
|
|
2873
|
-
}, []);
|
|
2874
|
-
var onClick = React__default['default'].useCallback( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
2875
|
-
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
2876
|
-
while (1) {
|
|
2877
|
-
switch (_context2.prev = _context2.next) {
|
|
2878
|
-
case 0:
|
|
2879
|
-
_context2.next = 2;
|
|
2880
|
-
return controller.saveEditGood();
|
|
2881
|
-
|
|
2882
|
-
case 2:
|
|
2883
|
-
_context2.next = 4;
|
|
2884
|
-
return controller.wait();
|
|
2885
|
-
|
|
2886
|
-
case 4:
|
|
2887
|
-
_context2.next = 6;
|
|
2888
|
-
return controller.pipeline( /*#__PURE__*/function () {
|
|
2889
|
-
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(s) {
|
|
2890
|
-
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
2891
|
-
while (1) {
|
|
2892
|
-
switch (_context.prev = _context.next) {
|
|
2893
|
-
case 0:
|
|
2894
|
-
if (!(s.goodsListState.editGood && s.goodsListState.selectedGoodIndex.indexOf(s.goodsListState.editGood.$index) >= 0)) {
|
|
2895
|
-
_context.next = 3;
|
|
2896
|
-
break;
|
|
2897
|
-
}
|
|
2898
|
-
|
|
2899
|
-
coolingFn('不能给正在编辑的货物赋码', 3000, function () {
|
|
2900
|
-
ktsComponentsAntdX3.message.error('不能给正在编辑的货物赋码');
|
|
2901
|
-
});
|
|
2902
|
-
return _context.abrupt("return");
|
|
2903
|
-
|
|
2904
|
-
case 3:
|
|
2905
|
-
if (!s.goodsListState.selectedGoodIndex.map(function (e) {
|
|
2906
|
-
return s.goodsListState.goodsMap.get(e);
|
|
2907
|
-
}).some(function (e, _, arr) {
|
|
2908
|
-
var _arr$;
|
|
2909
|
-
|
|
2910
|
-
return (e === null || e === void 0 ? void 0 : e.taxRate) !== ((_arr$ = arr[0]) === null || _arr$ === void 0 ? void 0 : _arr$.taxRate);
|
|
2911
|
-
})) {
|
|
2912
|
-
_context.next = 6;
|
|
2913
|
-
break;
|
|
2914
|
-
}
|
|
2915
|
-
|
|
2916
|
-
coolingFn('商品税率不一致不能操作批量赋码', 3000, function () {
|
|
2917
|
-
ktsComponentsAntdX3.message.error('商品税率不一致不能操作批量赋码');
|
|
2918
|
-
});
|
|
2919
|
-
return _context.abrupt("return");
|
|
2920
|
-
|
|
2921
|
-
case 6:
|
|
2922
|
-
// 设置赋码
|
|
2923
|
-
s.goodsListState.endowCode.endowcodeGoodIndex = s.goodsListState.selectedGoodIndex;
|
|
2924
|
-
|
|
2925
|
-
case 7:
|
|
2926
|
-
case "end":
|
|
2927
|
-
return _context.stop();
|
|
2928
|
-
}
|
|
2929
|
-
}
|
|
2930
|
-
}, _callee);
|
|
2931
|
-
}));
|
|
2932
|
-
|
|
2933
|
-
return function (_x) {
|
|
2934
|
-
return _ref2.apply(this, arguments);
|
|
2935
|
-
};
|
|
2936
|
-
}())();
|
|
2937
|
-
|
|
2938
|
-
case 6:
|
|
2939
|
-
case "end":
|
|
2940
|
-
return _context2.stop();
|
|
2941
|
-
}
|
|
2942
|
-
}
|
|
2943
|
-
}, _callee2);
|
|
2944
|
-
})), [controller]);
|
|
2945
|
-
var menuItem = React__default['default'].useMemo(function () {
|
|
2946
|
-
return React__default['default'].createElement(ktsComponentsAntdX3.Menu.Item, {
|
|
2947
|
-
key: "2",
|
|
2948
|
-
onClick: onClick,
|
|
2949
|
-
disabled: disabled
|
|
2950
|
-
}, "\u6279\u91CF\u8D4B\u7801");
|
|
2951
|
-
}, [onClick, disabled]);
|
|
2952
|
-
return {
|
|
2953
|
-
menuItem: menuItem
|
|
2954
|
-
};
|
|
2955
|
-
});
|
|
2956
|
-
|
|
2957
2867
|
/** 拆分全称加简称 */
|
|
2958
2868
|
var getSN = function getSN(value) {
|
|
2959
2869
|
if (!value) return undefined;
|
|
@@ -3118,13 +3028,10 @@ function BulkMenu() {
|
|
|
3118
3028
|
/** 添加折扣行 */
|
|
3119
3029
|
|
|
3120
3030
|
var addDiscountRowButton = useAddDiscountRowButton();
|
|
3121
|
-
/** 批量赋码 */
|
|
3122
|
-
|
|
3123
|
-
var endowCodeButton = useEndowCodeButton();
|
|
3124
3031
|
/** 执行商品对照 */
|
|
3125
3032
|
|
|
3126
3033
|
var commodityComparisonButton = useCommodityComparisonButton();
|
|
3127
|
-
var menu = React__default['default'].createElement(ktsComponentsAntdX3.Menu, null, delRowButton.menuItem, addDiscountRowButton.menuItem,
|
|
3034
|
+
var menu = React__default['default'].createElement(ktsComponentsAntdX3.Menu, null, delRowButton.menuItem, addDiscountRowButton.menuItem, commodityComparisonButton.menuItem);
|
|
3128
3035
|
return React__default['default'].createElement(React__default['default'].Fragment, null, React__default['default'].createElement(ktsComponentsAntdX3.Dropdown, {
|
|
3129
3036
|
overlay: menu
|
|
3130
3037
|
}, React__default['default'].createElement(ktsComponentsAntdX3.Button, null, "\u6279\u91CF\u64CD\u4F5C\u884C")), addDiscountRowButton.drawer);
|
|
@@ -11492,6 +11399,103 @@ var useRowSelection = (function () {
|
|
|
11492
11399
|
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 gap: 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";
|
|
11493
11400
|
styleInject(css_248z$7);
|
|
11494
11401
|
|
|
11402
|
+
var useEndowCodeButton = (function () {
|
|
11403
|
+
var controller = Invoice.useInvoiceController();
|
|
11404
|
+
/** 是否禁用 */
|
|
11405
|
+
|
|
11406
|
+
var disabled = controller.useMemo(function (s) {
|
|
11407
|
+
if (s.goodsListState.selectedGoodIndex.length <= 0) return true;
|
|
11408
|
+
}, []);
|
|
11409
|
+
var onClick = React__default['default'].useCallback( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
11410
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
11411
|
+
while (1) {
|
|
11412
|
+
switch (_context2.prev = _context2.next) {
|
|
11413
|
+
case 0:
|
|
11414
|
+
_context2.next = 2;
|
|
11415
|
+
return controller.saveEditGood();
|
|
11416
|
+
|
|
11417
|
+
case 2:
|
|
11418
|
+
_context2.next = 4;
|
|
11419
|
+
return controller.wait();
|
|
11420
|
+
|
|
11421
|
+
case 4:
|
|
11422
|
+
_context2.next = 6;
|
|
11423
|
+
return controller.pipeline( /*#__PURE__*/function () {
|
|
11424
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(s) {
|
|
11425
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
11426
|
+
while (1) {
|
|
11427
|
+
switch (_context.prev = _context.next) {
|
|
11428
|
+
case 0:
|
|
11429
|
+
if (!(s.goodsListState.editGood && s.goodsListState.selectedGoodIndex.indexOf(s.goodsListState.editGood.$index) >= 0)) {
|
|
11430
|
+
_context.next = 3;
|
|
11431
|
+
break;
|
|
11432
|
+
}
|
|
11433
|
+
|
|
11434
|
+
coolingFn('不能给正在编辑的货物赋码', 3000, function () {
|
|
11435
|
+
ktsComponentsAntdX3.message.error('不能给正在编辑的货物赋码');
|
|
11436
|
+
});
|
|
11437
|
+
return _context.abrupt("return");
|
|
11438
|
+
|
|
11439
|
+
case 3:
|
|
11440
|
+
if (!s.goodsListState.selectedGoodIndex.map(function (e) {
|
|
11441
|
+
return s.goodsListState.goodsMap.get(e);
|
|
11442
|
+
}).some(function (e, _, arr) {
|
|
11443
|
+
var _arr$;
|
|
11444
|
+
|
|
11445
|
+
return (e === null || e === void 0 ? void 0 : e.taxRate) !== ((_arr$ = arr[0]) === null || _arr$ === void 0 ? void 0 : _arr$.taxRate);
|
|
11446
|
+
})) {
|
|
11447
|
+
_context.next = 6;
|
|
11448
|
+
break;
|
|
11449
|
+
}
|
|
11450
|
+
|
|
11451
|
+
coolingFn('商品税率不一致不能操作批量赋码', 3000, function () {
|
|
11452
|
+
ktsComponentsAntdX3.message.error('商品税率不一致不能操作批量赋码');
|
|
11453
|
+
});
|
|
11454
|
+
return _context.abrupt("return");
|
|
11455
|
+
|
|
11456
|
+
case 6:
|
|
11457
|
+
// 设置赋码
|
|
11458
|
+
s.goodsListState.endowCode.endowcodeGoodIndex = s.goodsListState.selectedGoodIndex;
|
|
11459
|
+
|
|
11460
|
+
case 7:
|
|
11461
|
+
case "end":
|
|
11462
|
+
return _context.stop();
|
|
11463
|
+
}
|
|
11464
|
+
}
|
|
11465
|
+
}, _callee);
|
|
11466
|
+
}));
|
|
11467
|
+
|
|
11468
|
+
return function (_x) {
|
|
11469
|
+
return _ref2.apply(this, arguments);
|
|
11470
|
+
};
|
|
11471
|
+
}())();
|
|
11472
|
+
|
|
11473
|
+
case 6:
|
|
11474
|
+
case "end":
|
|
11475
|
+
return _context2.stop();
|
|
11476
|
+
}
|
|
11477
|
+
}
|
|
11478
|
+
}, _callee2);
|
|
11479
|
+
})), [controller]);
|
|
11480
|
+
var menuItem = React__default['default'].useMemo(function () {
|
|
11481
|
+
return React__default['default'].createElement(ktsComponentsAntdX3.Menu.Item, {
|
|
11482
|
+
key: "2",
|
|
11483
|
+
onClick: onClick,
|
|
11484
|
+
disabled: disabled
|
|
11485
|
+
}, "\u6279\u91CF\u8D4B\u7801");
|
|
11486
|
+
}, [onClick, disabled]);
|
|
11487
|
+
var buuton = React__default['default'].useMemo(function () {
|
|
11488
|
+
return React__default['default'].createElement(ktsComponentsAntdX3.Button, {
|
|
11489
|
+
onClick: onClick,
|
|
11490
|
+
disabled: disabled
|
|
11491
|
+
}, "\u6279\u91CF\u8D4B\u7801");
|
|
11492
|
+
}, [onClick, disabled]);
|
|
11493
|
+
return {
|
|
11494
|
+
menuItem: menuItem,
|
|
11495
|
+
buuton: buuton
|
|
11496
|
+
};
|
|
11497
|
+
});
|
|
11498
|
+
|
|
11495
11499
|
var GoodsList = /*#__PURE__*/function (_React$Component) {
|
|
11496
11500
|
_inherits(GoodsList, _React$Component);
|
|
11497
11501
|
|
|
@@ -11539,6 +11543,9 @@ var Main = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(function (p
|
|
|
11539
11543
|
|
|
11540
11544
|
useDeduction(controller, props.deduction);
|
|
11541
11545
|
useWindowClick(controller);
|
|
11546
|
+
/** 批量赋码 */
|
|
11547
|
+
|
|
11548
|
+
var endowCodeButton = useEndowCodeButton();
|
|
11542
11549
|
/** 清空自动赋码缓存 */
|
|
11543
11550
|
|
|
11544
11551
|
React__default['default'].useEffect(function () {
|
|
@@ -11696,7 +11703,7 @@ var Main = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(function (p
|
|
|
11696
11703
|
className: "kts-invoice-operate-goods-list-able"
|
|
11697
11704
|
}, React__default['default'].createElement("div", {
|
|
11698
11705
|
className: "kts-invoice-operate-goods-list-able-list"
|
|
11699
|
-
}, React__default['default'].createElement(AddRowButton, null), React__default['default'].createElement(BulkMenu, null), React__default['default'].createElement(Search, null)), React__default['default'].createElement("div", {
|
|
11706
|
+
}, React__default['default'].createElement(AddRowButton, null), React__default['default'].createElement(BulkMenu, null), endowCodeButton.buuton, React__default['default'].createElement(Search, null)), React__default['default'].createElement("div", {
|
|
11700
11707
|
className: "kts-invoice-operate-goods-list-able-extend"
|
|
11701
11708
|
}, props.menuExpansion, React__default['default'].createElement(DescribeSwitch, null), React__default['default'].createElement(TaxIncludedSwitch, null))), React__default['default'].createElement("div", {
|
|
11702
11709
|
className: classnames__default['default']('kts-invoice-operate-goods-list-table', {
|
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:350px}.kts-invoice-operate-goods-list-able-list .kts-invoice-operate-goods-list-search input{border-radius:999px;border-color:#b8b8b8;font-size:12px}.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}
|
|
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-invoice-header .invoice-header-property-fieldExpand{display:flex;margin:0;padding:0;list-style-type:none;grid-gap:10px;gap:10px;align-items:center}.kts-invoice-operate-invoice-header .invoice-header-property-fieldExpand li{display:flex;align-items:center;flex:1 1}.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;font-size:12px}.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
|
*
|