kts-component-invoice-operate 3.0.22 → 3.1.0
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/TableVirtual/index.d.ts +2 -2
- package/dist/Invoice/ui/GoodsList/ui/TableVirtual.o/index.d.ts +4 -0
- package/dist/index.esm.js +39 -23
- package/dist/index.js +38 -22
- package/docs/index.md +2 -2
- package/docs-dist/umi.css +19 -19
- package/docs-dist/umi.js +1 -1
- package/package.json +3 -3
- package/src/Invoice/_test/endowCode/index.tsx +2 -2
- package/src/Invoice/ui/GoodsList/hook/useColumns/index.tsx +3 -2
- package/src/Invoice/ui/GoodsList/index.less +99 -71
- package/src/Invoice/ui/GoodsList/index.tsx +1 -1
- package/src/Invoice/ui/GoodsList/ui/Statistics/index.less +5 -5
- package/src/Invoice/ui/GoodsList/ui/Statistics/index.tsx +7 -8
- package/src/Invoice/ui/GoodsList/ui/TableVirtual/index.less +30 -35
- package/src/Invoice/ui/GoodsList/ui/TableVirtual/index.tsx +104 -94
- package/src/Invoice/ui/GoodsList/ui/TableVirtual.o/index.less +44 -0
- package/src/Invoice/ui/GoodsList/ui/TableVirtual.o/index.tsx +96 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { TableProps } from
|
|
2
|
+
import { TableProps } from "kts-xui";
|
|
3
3
|
import './index.less';
|
|
4
|
-
export default function <T = any>(props: TableProps<T>): JSX.Element;
|
|
4
|
+
export default function <T extends object = any>(props: TableProps<T>): JSX.Element;
|
package/dist/index.esm.js
CHANGED
|
@@ -2,12 +2,12 @@ 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, Button, Switch, Tooltip, Typography, Menu, Dropdown, AutoComplete, Spin, Checkbox, Drawer, Descriptions, Empty, Divider, Popover, Table, Tree, Modal, Row, Col } from 'kts-components-antd-x3';
|
|
6
6
|
import { v4 } from 'uuid';
|
|
7
7
|
import classnames from 'classnames';
|
|
8
|
+
import { TableManual, Form as Form$1, Drawer as Drawer$1 } from 'kts-xui';
|
|
8
9
|
import { Input as Input$1, NumberPicker } from '@formily/antd-components';
|
|
9
10
|
import { createAsyncFormActions, FormEffectHooks, SchemaForm, FormButtonGroup, SchemaMarkupField } from '@formily/antd';
|
|
10
|
-
import { Form as Form$1, Drawer as Drawer$1 } from 'kts-xui';
|
|
11
11
|
|
|
12
12
|
function ownKeys(object, enumerableOnly) {
|
|
13
13
|
var keys = Object.keys(object);
|
|
@@ -1839,10 +1839,12 @@ var FormSpanString = /*#__PURE__*/function (_React$Component) {
|
|
|
1839
1839
|
// }
|
|
1840
1840
|
// }
|
|
1841
1841
|
|
|
1842
|
-
var css_248z$2 = ".kts-invoice-operate-goods-table-virtual .
|
|
1842
|
+
var css_248z$2 = ".kts-invoice-operate-goods-table-virtual .ktsAntX-table-body {\n height: 280px;\n}\n.kts-invoice-operate-goods-table-virtual .ktsAntX-table.ktsAntX-table-bordered > .ktsAntX-table-container > .ktsAntX-table-header > table > thead > tr > th {\n padding: 0 10px;\n height: 32px;\n background: #f4f4f4;\n}\n.kts-invoice-operate-goods-table-virtual .ktsAntX-table.ktsAntX-table-bordered > .ktsAntX-table-container > .ktsAntX-table-body > table > tbody > tr > td {\n padding: 0;\n height: 32px;\n}\n.kts-invoice-operate-goods-table-virtual .ktsAntX-table .ktsAntX-table-body {\n position: relative;\n}\n.kts-invoice-operate-goods-table-virtual .ktsAntX-table .ktsAntX-table-body > table {\n position: absolute;\n left: 0;\n top: 0;\n}\n.kts-invoice-operate-goods-table-virtual .ktsAntX-table .ktsAntX-table-tbody {\n position: relative;\n}\n.kts-invoice-operate-goods-table-virtual .ktsAntX-checkbox-wrapper .ktsAntX-checkbox-inner {\n width: 16px;\n height: 16px;\n border: 1px solid #d9d9d9;\n border-radius: 2px;\n top: 1px;\n}\n";
|
|
1843
1843
|
styleInject(css_248z$2);
|
|
1844
1844
|
|
|
1845
1845
|
function TableVirtual (props) {
|
|
1846
|
+
var _props$dataSource2;
|
|
1847
|
+
|
|
1846
1848
|
var _React$useState = React.useState(null),
|
|
1847
1849
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
1848
1850
|
self = _React$useState2[0],
|
|
@@ -1850,7 +1852,7 @@ function TableVirtual (props) {
|
|
|
1850
1852
|
|
|
1851
1853
|
var tableBody = React.useMemo(function () {
|
|
1852
1854
|
if (!self) return;
|
|
1853
|
-
return self.querySelector('.
|
|
1855
|
+
return self.querySelector('.ktsAntX-table-body');
|
|
1854
1856
|
}, [self]);
|
|
1855
1857
|
/** 显示指针 */
|
|
1856
1858
|
|
|
@@ -1863,7 +1865,7 @@ function TableVirtual (props) {
|
|
|
1863
1865
|
|
|
1864
1866
|
var rowHeight = React.useMemo(function () {
|
|
1865
1867
|
if (!self) return 33;
|
|
1866
|
-
var td = self.querySelector('.
|
|
1868
|
+
var td = self.querySelector('.ktsAntX-table-tbody .ktsAntX-table-row');
|
|
1867
1869
|
if (!td) return 33;
|
|
1868
1870
|
return td.clientHeight;
|
|
1869
1871
|
}, [self, props.dataSource]);
|
|
@@ -1921,16 +1923,22 @@ function TableVirtual (props) {
|
|
|
1921
1923
|
|
|
1922
1924
|
React.useEffect(function () {
|
|
1923
1925
|
if (!self) return;
|
|
1924
|
-
var table = self.querySelector('.
|
|
1926
|
+
var table = self.querySelector('.ktsAntX-table .ktsAntX-table-body>table');
|
|
1925
1927
|
if (!table) return;
|
|
1926
1928
|
table.style.top = "".concat(pointer * rowHeight, "px");
|
|
1927
1929
|
}, [pointer, self, rowHeight]);
|
|
1930
|
+
React.useEffect(function () {
|
|
1931
|
+
if (!self) return;
|
|
1932
|
+
var cont = self.querySelector('.kts-invoice-operate-goods-table-virtual .ktsAntX-table-body');
|
|
1933
|
+
if (!cont) return;
|
|
1934
|
+
cont.scrollTop = 0;
|
|
1935
|
+
}, [(_props$dataSource2 = props.dataSource) === null || _props$dataSource2 === void 0 ? void 0 : _props$dataSource2.length]);
|
|
1928
1936
|
return React.createElement("span", {
|
|
1929
1937
|
className: "kts-invoice-operate-goods-table-virtual",
|
|
1930
1938
|
ref: function ref(e) {
|
|
1931
1939
|
setSelf(e);
|
|
1932
1940
|
}
|
|
1933
|
-
}, React.createElement(
|
|
1941
|
+
}, React.createElement(TableManual, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
1934
1942
|
dataSource: dataSource
|
|
1935
1943
|
})));
|
|
1936
1944
|
}
|
|
@@ -2028,13 +2036,27 @@ var Statistics = (function () {
|
|
|
2028
2036
|
}
|
|
2029
2037
|
}, React.createElement("label", null, "\u5408\u8BA1")), React.createElement("div", {
|
|
2030
2038
|
style: {
|
|
2031
|
-
width: 119
|
|
2039
|
+
width: 119,
|
|
2040
|
+
textAlign: 'right',
|
|
2041
|
+
border: 'none'
|
|
2032
2042
|
}
|
|
2033
2043
|
}, React.createElement("label", null, parseFloat(isTaxIncluded ? lineAmountIncludeTax : lineAmountExcludeTax).toFixed(2))), React.createElement("div", {
|
|
2034
2044
|
style: {
|
|
2035
|
-
width:
|
|
2045
|
+
width: 70,
|
|
2046
|
+
border: 'none'
|
|
2036
2047
|
}
|
|
2037
|
-
}
|
|
2048
|
+
}), React.createElement("div", {
|
|
2049
|
+
style: {
|
|
2050
|
+
width: 119,
|
|
2051
|
+
textAlign: 'right',
|
|
2052
|
+
border: 'none'
|
|
2053
|
+
}
|
|
2054
|
+
}, React.createElement("label", null, parseFloat(taxAmount).toFixed(2))), React.createElement("div", {
|
|
2055
|
+
style: {
|
|
2056
|
+
width: 111,
|
|
2057
|
+
border: 'none'
|
|
2058
|
+
}
|
|
2059
|
+
})), React.createElement("div", {
|
|
2038
2060
|
className: "kts-invoice-operate-goods-list-statistics-row"
|
|
2039
2061
|
}, React.createElement("div", {
|
|
2040
2062
|
style: {
|
|
@@ -2042,24 +2064,17 @@ var Statistics = (function () {
|
|
|
2042
2064
|
}
|
|
2043
2065
|
}), React.createElement("div", {
|
|
2044
2066
|
style: {
|
|
2045
|
-
flex:
|
|
2067
|
+
flex: 5,
|
|
2046
2068
|
border: 'none'
|
|
2047
2069
|
}
|
|
2048
2070
|
}, React.createElement("label", null, "\u4EF7\u7A0E\u5408\u8BA1\uFF08\u5927\u5199\uFF09"), React.createElement("label", null, nzhcn.toMoney(lineAmountIncludeTax, {
|
|
2049
2071
|
outSymbol: false
|
|
2050
2072
|
}))), React.createElement("div", {
|
|
2051
2073
|
style: {
|
|
2052
|
-
flex:
|
|
2053
|
-
border: 'none',
|
|
2054
|
-
textAlign: 'right'
|
|
2055
|
-
}
|
|
2056
|
-
}, React.createElement("label", null, "\uFF08\u5C0F\u5199\uFF09")), React.createElement("div", {
|
|
2057
|
-
style: {
|
|
2058
|
-
flex: 'none',
|
|
2059
|
-
width: 359,
|
|
2074
|
+
flex: 5,
|
|
2060
2075
|
border: 'none'
|
|
2061
2076
|
}
|
|
2062
|
-
}, React.createElement("label", null, parseFloat(lineAmountIncludeTax).toFixed(2)))));
|
|
2077
|
+
}, React.createElement("label", null, "\uFF08\u5C0F\u5199\uFF09 ", parseFloat(lineAmountIncludeTax).toFixed(2)))));
|
|
2063
2078
|
});
|
|
2064
2079
|
|
|
2065
2080
|
var AddRowButton = (function () {
|
|
@@ -10364,7 +10379,8 @@ var useColumns = (function (form) {
|
|
|
10364
10379
|
title: '操作',
|
|
10365
10380
|
key: 'operating',
|
|
10366
10381
|
align: 'right',
|
|
10367
|
-
width:
|
|
10382
|
+
width: 130,
|
|
10383
|
+
fixed: 'right',
|
|
10368
10384
|
render: function render(_value, record) {
|
|
10369
10385
|
return React.createElement(RowMenu, {
|
|
10370
10386
|
key: record.lineAttribute,
|
|
@@ -11047,7 +11063,7 @@ var useRowSelection = (function () {
|
|
|
11047
11063
|
};
|
|
11048
11064
|
});
|
|
11049
11065
|
|
|
11050
|
-
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
|
|
11066
|
+
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-search-protrude {\n background: #ff0;\n color: #000;\n font-weight: bold;\n}\n.kts-invoice-operate-goods-table-virtual .ktsAntX-table .ktsAntX-table-tbody .ktsAnt3x-form-item {\n margin: 0;\n}\n.kts-invoice-operate-goods-table-virtual .ktsAntX-table .ktsAntX-table-tbody .ktsAnt3x-form-item-control {\n line-height: 1;\n}\n.kts-invoice-operate-goods-table-virtual .ktsAntX-table .ktsAntX-table-tbody .ktsAnt3x-input:focus {\n box-shadow: none;\n}\n.kts-invoice-operate-goods-table-virtual .ktsAntX-table .ktsAntX-table-tbody .ktsAnt3x-input,\n.kts-invoice-operate-goods-table-virtual .ktsAntX-table .ktsAntX-table-tbody .ktsAnt3x-select-selection--single {\n border: none;\n border-radius: 0;\n}\n.kts-invoice-operate-goods-table-virtual .ktsAntX-table .ktsAntX-table-tbody .ktsAnt3x-form-explain {\n display: none;\n}\n.kts-invoice-operate-goods-table-virtual .ktsAntX-table .ktsAntX-table-tbody .has-error .ktsAnt3x-input {\n border: #f5222d solid 1px;\n}\n";
|
|
11051
11067
|
styleInject(css_248z$7);
|
|
11052
11068
|
|
|
11053
11069
|
var keys$1 = {};
|
|
@@ -11879,7 +11895,7 @@ var Main = decorator(Form.create())(function (props) {
|
|
|
11879
11895
|
rowKey: "$index",
|
|
11880
11896
|
pagination: false,
|
|
11881
11897
|
scroll: {
|
|
11882
|
-
y:
|
|
11898
|
+
y: 280
|
|
11883
11899
|
},
|
|
11884
11900
|
components: {
|
|
11885
11901
|
body: {
|
package/dist/index.js
CHANGED
|
@@ -9,9 +9,9 @@ var mathjs = require('mathjs');
|
|
|
9
9
|
var ktsComponentsAntdX3 = require('kts-components-antd-x3');
|
|
10
10
|
var uuid = require('uuid');
|
|
11
11
|
var classnames = require('classnames');
|
|
12
|
+
var ktsXui = require('kts-xui');
|
|
12
13
|
var antdComponents = require('@formily/antd-components');
|
|
13
14
|
var antd = require('@formily/antd');
|
|
14
|
-
var ktsXui = require('kts-xui');
|
|
15
15
|
|
|
16
16
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
17
17
|
|
|
@@ -1849,10 +1849,12 @@ var FormSpanString = /*#__PURE__*/function (_React$Component) {
|
|
|
1849
1849
|
// }
|
|
1850
1850
|
// }
|
|
1851
1851
|
|
|
1852
|
-
var css_248z$2 = ".kts-invoice-operate-goods-table-virtual .
|
|
1852
|
+
var css_248z$2 = ".kts-invoice-operate-goods-table-virtual .ktsAntX-table-body {\n height: 280px;\n}\n.kts-invoice-operate-goods-table-virtual .ktsAntX-table.ktsAntX-table-bordered > .ktsAntX-table-container > .ktsAntX-table-header > table > thead > tr > th {\n padding: 0 10px;\n height: 32px;\n background: #f4f4f4;\n}\n.kts-invoice-operate-goods-table-virtual .ktsAntX-table.ktsAntX-table-bordered > .ktsAntX-table-container > .ktsAntX-table-body > table > tbody > tr > td {\n padding: 0;\n height: 32px;\n}\n.kts-invoice-operate-goods-table-virtual .ktsAntX-table .ktsAntX-table-body {\n position: relative;\n}\n.kts-invoice-operate-goods-table-virtual .ktsAntX-table .ktsAntX-table-body > table {\n position: absolute;\n left: 0;\n top: 0;\n}\n.kts-invoice-operate-goods-table-virtual .ktsAntX-table .ktsAntX-table-tbody {\n position: relative;\n}\n.kts-invoice-operate-goods-table-virtual .ktsAntX-checkbox-wrapper .ktsAntX-checkbox-inner {\n width: 16px;\n height: 16px;\n border: 1px solid #d9d9d9;\n border-radius: 2px;\n top: 1px;\n}\n";
|
|
1853
1853
|
styleInject(css_248z$2);
|
|
1854
1854
|
|
|
1855
1855
|
function TableVirtual (props) {
|
|
1856
|
+
var _props$dataSource2;
|
|
1857
|
+
|
|
1856
1858
|
var _React$useState = React__default['default'].useState(null),
|
|
1857
1859
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
1858
1860
|
self = _React$useState2[0],
|
|
@@ -1860,7 +1862,7 @@ function TableVirtual (props) {
|
|
|
1860
1862
|
|
|
1861
1863
|
var tableBody = React__default['default'].useMemo(function () {
|
|
1862
1864
|
if (!self) return;
|
|
1863
|
-
return self.querySelector('.
|
|
1865
|
+
return self.querySelector('.ktsAntX-table-body');
|
|
1864
1866
|
}, [self]);
|
|
1865
1867
|
/** 显示指针 */
|
|
1866
1868
|
|
|
@@ -1873,7 +1875,7 @@ function TableVirtual (props) {
|
|
|
1873
1875
|
|
|
1874
1876
|
var rowHeight = React__default['default'].useMemo(function () {
|
|
1875
1877
|
if (!self) return 33;
|
|
1876
|
-
var td = self.querySelector('.
|
|
1878
|
+
var td = self.querySelector('.ktsAntX-table-tbody .ktsAntX-table-row');
|
|
1877
1879
|
if (!td) return 33;
|
|
1878
1880
|
return td.clientHeight;
|
|
1879
1881
|
}, [self, props.dataSource]);
|
|
@@ -1931,16 +1933,22 @@ function TableVirtual (props) {
|
|
|
1931
1933
|
|
|
1932
1934
|
React__default['default'].useEffect(function () {
|
|
1933
1935
|
if (!self) return;
|
|
1934
|
-
var table = self.querySelector('.
|
|
1936
|
+
var table = self.querySelector('.ktsAntX-table .ktsAntX-table-body>table');
|
|
1935
1937
|
if (!table) return;
|
|
1936
1938
|
table.style.top = "".concat(pointer * rowHeight, "px");
|
|
1937
1939
|
}, [pointer, self, rowHeight]);
|
|
1940
|
+
React__default['default'].useEffect(function () {
|
|
1941
|
+
if (!self) return;
|
|
1942
|
+
var cont = self.querySelector('.kts-invoice-operate-goods-table-virtual .ktsAntX-table-body');
|
|
1943
|
+
if (!cont) return;
|
|
1944
|
+
cont.scrollTop = 0;
|
|
1945
|
+
}, [(_props$dataSource2 = props.dataSource) === null || _props$dataSource2 === void 0 ? void 0 : _props$dataSource2.length]);
|
|
1938
1946
|
return React__default['default'].createElement("span", {
|
|
1939
1947
|
className: "kts-invoice-operate-goods-table-virtual",
|
|
1940
1948
|
ref: function ref(e) {
|
|
1941
1949
|
setSelf(e);
|
|
1942
1950
|
}
|
|
1943
|
-
}, React__default['default'].createElement(
|
|
1951
|
+
}, React__default['default'].createElement(ktsXui.TableManual, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
1944
1952
|
dataSource: dataSource
|
|
1945
1953
|
})));
|
|
1946
1954
|
}
|
|
@@ -2038,13 +2046,27 @@ var Statistics = (function () {
|
|
|
2038
2046
|
}
|
|
2039
2047
|
}, React__default['default'].createElement("label", null, "\u5408\u8BA1")), React__default['default'].createElement("div", {
|
|
2040
2048
|
style: {
|
|
2041
|
-
width: 119
|
|
2049
|
+
width: 119,
|
|
2050
|
+
textAlign: 'right',
|
|
2051
|
+
border: 'none'
|
|
2042
2052
|
}
|
|
2043
2053
|
}, React__default['default'].createElement("label", null, parseFloat(isTaxIncluded ? lineAmountIncludeTax : lineAmountExcludeTax).toFixed(2))), React__default['default'].createElement("div", {
|
|
2044
2054
|
style: {
|
|
2045
|
-
width:
|
|
2055
|
+
width: 70,
|
|
2056
|
+
border: 'none'
|
|
2046
2057
|
}
|
|
2047
|
-
}
|
|
2058
|
+
}), React__default['default'].createElement("div", {
|
|
2059
|
+
style: {
|
|
2060
|
+
width: 119,
|
|
2061
|
+
textAlign: 'right',
|
|
2062
|
+
border: 'none'
|
|
2063
|
+
}
|
|
2064
|
+
}, React__default['default'].createElement("label", null, parseFloat(taxAmount).toFixed(2))), React__default['default'].createElement("div", {
|
|
2065
|
+
style: {
|
|
2066
|
+
width: 111,
|
|
2067
|
+
border: 'none'
|
|
2068
|
+
}
|
|
2069
|
+
})), React__default['default'].createElement("div", {
|
|
2048
2070
|
className: "kts-invoice-operate-goods-list-statistics-row"
|
|
2049
2071
|
}, React__default['default'].createElement("div", {
|
|
2050
2072
|
style: {
|
|
@@ -2052,24 +2074,17 @@ var Statistics = (function () {
|
|
|
2052
2074
|
}
|
|
2053
2075
|
}), React__default['default'].createElement("div", {
|
|
2054
2076
|
style: {
|
|
2055
|
-
flex:
|
|
2077
|
+
flex: 5,
|
|
2056
2078
|
border: 'none'
|
|
2057
2079
|
}
|
|
2058
2080
|
}, React__default['default'].createElement("label", null, "\u4EF7\u7A0E\u5408\u8BA1\uFF08\u5927\u5199\uFF09"), React__default['default'].createElement("label", null, nzhcn.toMoney(lineAmountIncludeTax, {
|
|
2059
2081
|
outSymbol: false
|
|
2060
2082
|
}))), React__default['default'].createElement("div", {
|
|
2061
2083
|
style: {
|
|
2062
|
-
flex:
|
|
2063
|
-
border: 'none',
|
|
2064
|
-
textAlign: 'right'
|
|
2065
|
-
}
|
|
2066
|
-
}, React__default['default'].createElement("label", null, "\uFF08\u5C0F\u5199\uFF09")), React__default['default'].createElement("div", {
|
|
2067
|
-
style: {
|
|
2068
|
-
flex: 'none',
|
|
2069
|
-
width: 359,
|
|
2084
|
+
flex: 5,
|
|
2070
2085
|
border: 'none'
|
|
2071
2086
|
}
|
|
2072
|
-
}, React__default['default'].createElement("label", null, parseFloat(lineAmountIncludeTax).toFixed(2)))));
|
|
2087
|
+
}, React__default['default'].createElement("label", null, "\uFF08\u5C0F\u5199\uFF09 ", parseFloat(lineAmountIncludeTax).toFixed(2)))));
|
|
2073
2088
|
});
|
|
2074
2089
|
|
|
2075
2090
|
var AddRowButton = (function () {
|
|
@@ -10374,7 +10389,8 @@ var useColumns = (function (form) {
|
|
|
10374
10389
|
title: '操作',
|
|
10375
10390
|
key: 'operating',
|
|
10376
10391
|
align: 'right',
|
|
10377
|
-
width:
|
|
10392
|
+
width: 130,
|
|
10393
|
+
fixed: 'right',
|
|
10378
10394
|
render: function render(_value, record) {
|
|
10379
10395
|
return React__default['default'].createElement(RowMenu, {
|
|
10380
10396
|
key: record.lineAttribute,
|
|
@@ -11057,7 +11073,7 @@ var useRowSelection = (function () {
|
|
|
11057
11073
|
};
|
|
11058
11074
|
});
|
|
11059
11075
|
|
|
11060
|
-
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
|
|
11076
|
+
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-search-protrude {\n background: #ff0;\n color: #000;\n font-weight: bold;\n}\n.kts-invoice-operate-goods-table-virtual .ktsAntX-table .ktsAntX-table-tbody .ktsAnt3x-form-item {\n margin: 0;\n}\n.kts-invoice-operate-goods-table-virtual .ktsAntX-table .ktsAntX-table-tbody .ktsAnt3x-form-item-control {\n line-height: 1;\n}\n.kts-invoice-operate-goods-table-virtual .ktsAntX-table .ktsAntX-table-tbody .ktsAnt3x-input:focus {\n box-shadow: none;\n}\n.kts-invoice-operate-goods-table-virtual .ktsAntX-table .ktsAntX-table-tbody .ktsAnt3x-input,\n.kts-invoice-operate-goods-table-virtual .ktsAntX-table .ktsAntX-table-tbody .ktsAnt3x-select-selection--single {\n border: none;\n border-radius: 0;\n}\n.kts-invoice-operate-goods-table-virtual .ktsAntX-table .ktsAntX-table-tbody .ktsAnt3x-form-explain {\n display: none;\n}\n.kts-invoice-operate-goods-table-virtual .ktsAntX-table .ktsAntX-table-tbody .has-error .ktsAnt3x-input {\n border: #f5222d solid 1px;\n}\n";
|
|
11061
11077
|
styleInject(css_248z$7);
|
|
11062
11078
|
|
|
11063
11079
|
var keys$1 = {};
|
|
@@ -11889,7 +11905,7 @@ var Main = GreyReactBox.decorator(ktsComponentsAntdX3.Form.create())(function (p
|
|
|
11889
11905
|
rowKey: "$index",
|
|
11890
11906
|
pagination: false,
|
|
11891
11907
|
scroll: {
|
|
11892
|
-
y:
|
|
11908
|
+
y: 280
|
|
11893
11909
|
},
|
|
11894
11910
|
components: {
|
|
11895
11911
|
body: {
|
package/docs/index.md
CHANGED