kts-component-invoice-operate 2.0.0 → 2.0.1
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 +0 -1
- package/dist/Invoice/_test/deduction/index.d.ts +0 -1
- package/dist/Invoice/_test/draft/index.d.ts +0 -1
- package/dist/Invoice/_test/easiest/index.d.ts +0 -1
- package/dist/Invoice/_test/endowCode/index.d.ts +0 -1
- package/dist/Invoice/_test/goodsMenuExpand/index.d.ts +0 -1
- package/dist/Invoice/_test/importBuyer/index.d.ts +0 -1
- package/dist/Invoice/_test/importGoods/index.d.ts +0 -1
- package/dist/Invoice/_test/invoiceType/index.d.ts +0 -1
- package/dist/Invoice/_test/isInvoiceNo/index.d.ts +0 -1
- package/dist/Invoice/_test/replaceHead/index.d.ts +0 -1
- package/dist/Invoice/_test/retrieveData/index.d.ts +0 -1
- package/dist/Invoice/_test/seller/index.d.ts +0 -1
- package/dist/Invoice/_test/setDataSource/index.d.ts +0 -1
- package/dist/Invoice/_test/unit/index.d.ts +0 -1
- package/dist/Invoice/ui/AddComparisonDrawer/index.d.ts +1 -1
- package/dist/Invoice/ui/Buyer/ui/BuyerNameInput/index.d.ts +0 -1
- package/dist/Invoice/ui/Buyer/ui/ImportBuyerButton/index.d.ts +0 -1
- package/dist/Invoice/ui/EndowCodeDrawer/index.d.ts +0 -1
- package/dist/Invoice/ui/GoodsList/hook/useColumns/ui/RowEditButton/index.d.ts +0 -1
- package/dist/Invoice/ui/GoodsList/hook/useColumns/ui/RowMenu/hook/useAddComparison/index.d.ts +0 -1
- package/dist/Invoice/ui/GoodsList/hook/useColumns/ui/RowMenu/hook/useAddDiscount/index.d.ts +0 -1
- package/dist/Invoice/ui/GoodsList/hook/useColumns/ui/RowMenu/hook/useDelItem/index.d.ts +0 -1
- package/dist/Invoice/ui/GoodsList/hook/useColumns/ui/RowMenu/hook/useEndowCode/index.d.ts +0 -1
- package/dist/Invoice/ui/GoodsList/hook/useColumns/ui/RowMenu/index.d.ts +0 -1
- package/dist/Invoice/ui/GoodsList/hook/useColumns/ui/RowSaveButton/index.d.ts +0 -1
- package/dist/Invoice/ui/GoodsList/hook/useRowSelection/index.d.ts +0 -1
- package/dist/Invoice/ui/GoodsList/ui/AddRowButton/index.d.ts +0 -1
- package/dist/Invoice/ui/GoodsList/ui/{AddDiscountRowButton → BulkMenu/hooks/useAddDiscountRowButton}/index.d.ts +4 -2
- package/dist/Invoice/ui/GoodsList/ui/BulkMenu/hooks/useCommodityComparisonButton/index.d.ts +4 -0
- package/dist/Invoice/ui/GoodsList/ui/BulkMenu/hooks/useDelRowButton/index.d.ts +4 -0
- package/dist/Invoice/ui/GoodsList/ui/BulkMenu/hooks/useEndowCodeButton/index.d.ts +4 -0
- package/dist/Invoice/ui/GoodsList/ui/BulkMenu/index.d.ts +1 -0
- package/dist/Invoice/ui/GoodsList/ui/DescribeSwitch/index.d.ts +0 -1
- package/dist/Invoice/ui/GoodsList/ui/Search/index.d.ts +2 -0
- package/dist/Invoice/ui/GoodsList/ui/Statistics/index.d.ts +0 -1
- package/dist/Invoice/ui/GoodsList/ui/TableRow/index.d.ts +0 -1
- package/dist/Invoice/ui/GoodsList/ui/TableVirtual/index.d.ts +0 -1
- package/dist/Invoice/ui/GoodsList/ui/TaxIncludedSwitch/index.d.ts +0 -1
- package/dist/Invoice/ui/ImportBuyerDrawer/index.d.ts +0 -1
- package/dist/Invoice/ui/ImportGoodsDrawer/index.d.ts +0 -1
- package/dist/index.esm.js +715 -457
- package/dist/index.js +714 -456
- package/package.json +3 -1
- package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/index.ts +3 -0
- package/src/Invoice/InvoiceController/fns/getGoodsSearch.ts +17 -0
- package/src/Invoice/InvoiceController/index.ts +4 -0
- package/src/Invoice/ui/AddComparisonDrawer/index.tsx +154 -158
- package/src/Invoice/ui/GoodsList/hook/useColumns/index.tsx +34 -8
- package/src/Invoice/ui/GoodsList/hook/useRowSelection/index.tsx +34 -8
- package/src/Invoice/ui/GoodsList/index.less +10 -2
- package/src/Invoice/ui/GoodsList/index.tsx +17 -21
- package/src/Invoice/ui/GoodsList/ui/AddRowButton/index.tsx +5 -2
- package/src/Invoice/ui/GoodsList/ui/{AddDiscountRowButton → BulkMenu/hooks/useAddDiscountRowButton}/index.less +0 -0
- package/src/Invoice/ui/GoodsList/ui/{AddDiscountRowButton → BulkMenu/hooks/useAddDiscountRowButton}/index.tsx +20 -17
- package/src/Invoice/ui/GoodsList/ui/{CommodityComparisonButton → BulkMenu/hooks/useCommodityComparisonButton}/index.tsx +17 -11
- package/src/Invoice/ui/GoodsList/ui/{DelRowButton → BulkMenu/hooks/useDelRowButton}/index.tsx +15 -7
- package/src/Invoice/ui/GoodsList/ui/{EndowCodeButton → BulkMenu/hooks/useEndowCodeButton}/index.tsx +13 -9
- package/src/Invoice/ui/GoodsList/ui/BulkMenu/index.tsx +43 -0
- 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/yarn.e.lock +14331 -0
- package/dist/Invoice/ui/GoodsList/ui/CommodityComparisonButton/index.d.ts +0 -3
- package/dist/Invoice/ui/GoodsList/ui/DelRowButton/index.d.ts +0 -3
- package/dist/Invoice/ui/GoodsList/ui/EndowCodeButton/index.d.ts +0 -3
- package/docs-dist/404.html +0 -33
- package/docs-dist/index.html +0 -33
- package/docs-dist/static/auto.a6cd905c.svg +0 -1
- package/docs-dist/static/spot.42e620e1.svg +0 -1
- package/docs-dist/umi.css +0 -20
- package/docs-dist/umi.js +0 -1
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, Row, Col, Table, Button, Switch, Tooltip, Typography, Drawer,
|
|
5
|
+
import { message, Form, Input, Icon, Tag, Select, Row, Col, Table, Button, Switch, Tooltip, Menu, Typography, Drawer, Dropdown, AutoComplete, Spin, Checkbox, Descriptions, Empty, Divider, Popover, Tree, Modal } 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';
|
|
@@ -993,6 +993,7 @@ var GoodsListState = /*#__PURE__*/_createClass(function GoodsListState() {
|
|
|
993
993
|
this.unitList = [];
|
|
994
994
|
this.defaultRate = 3;
|
|
995
995
|
this.taxRateList = [0, 3, 5, 6, 9, 13];
|
|
996
|
+
this.searchValue = '';
|
|
996
997
|
this.goodsList = [];
|
|
997
998
|
this.goodsMap = new Map();
|
|
998
999
|
this.goodsMenuExpand = [];
|
|
@@ -1519,6 +1520,23 @@ var validateFields = function validateFields(form) {
|
|
|
1519
1520
|
});
|
|
1520
1521
|
};
|
|
1521
1522
|
|
|
1523
|
+
function getGoodsSearch(goodsList, search) {
|
|
1524
|
+
if (!search) return goodsList;
|
|
1525
|
+
return goodsList.filter(function (e) {
|
|
1526
|
+
var _e$itemName$indexOf, _e$itemName, _e$itemModelName$inde, _e$itemModelName;
|
|
1527
|
+
|
|
1528
|
+
if (((_e$itemName$indexOf = (_e$itemName = e.itemName) === null || _e$itemName === void 0 ? void 0 : _e$itemName.indexOf(search)) !== null && _e$itemName$indexOf !== void 0 ? _e$itemName$indexOf : -1) >= 0) {
|
|
1529
|
+
return true;
|
|
1530
|
+
} else if (((_e$itemModelName$inde = (_e$itemModelName = e.itemModelName) === null || _e$itemModelName === void 0 ? void 0 : _e$itemModelName.indexOf(search)) !== null && _e$itemModelName$inde !== void 0 ? _e$itemModelName$inde : -1) >= 0) {
|
|
1531
|
+
return true;
|
|
1532
|
+
} else if ("".concat(e.lineAmountIncludeTax).indexOf(search) >= 0) {
|
|
1533
|
+
return true;
|
|
1534
|
+
} else {
|
|
1535
|
+
return false;
|
|
1536
|
+
}
|
|
1537
|
+
});
|
|
1538
|
+
}
|
|
1539
|
+
|
|
1522
1540
|
var InvoiceController = /*#__PURE__*/function (_InvoiceControllerFor) {
|
|
1523
1541
|
_inherits(InvoiceController, _InvoiceControllerFor);
|
|
1524
1542
|
|
|
@@ -1542,6 +1560,7 @@ var InvoiceController = /*#__PURE__*/function (_InvoiceControllerFor) {
|
|
|
1542
1560
|
_this.addGoodDiscount = _this.pipeline(addGoodDiscount);
|
|
1543
1561
|
_this.getGoodsList = void 0;
|
|
1544
1562
|
_this.getTaxCategoryCodeList = void 0;
|
|
1563
|
+
_this.getGoodsSearch = getGoodsSearch;
|
|
1545
1564
|
return _this;
|
|
1546
1565
|
} // ----------------- 发票头 模块相关 -----------------
|
|
1547
1566
|
|
|
@@ -1622,7 +1641,7 @@ var InvoiceHeader = decorator(Form.create())(function (props) {
|
|
|
1622
1641
|
render: function render(form) {
|
|
1623
1642
|
return form.getFieldDecorator('code', {
|
|
1624
1643
|
initialValue: props.defaultCode
|
|
1625
|
-
})(
|
|
1644
|
+
})(React.createElement(FormSpanString, null));
|
|
1626
1645
|
}
|
|
1627
1646
|
});
|
|
1628
1647
|
}
|
|
@@ -1635,7 +1654,7 @@ var InvoiceHeader = decorator(Form.create())(function (props) {
|
|
|
1635
1654
|
render: function render(form) {
|
|
1636
1655
|
return form.getFieldDecorator('no', {
|
|
1637
1656
|
initialValue: props.defaultNo
|
|
1638
|
-
})(
|
|
1657
|
+
})(React.createElement(FormSpanString, null));
|
|
1639
1658
|
}
|
|
1640
1659
|
});
|
|
1641
1660
|
}
|
|
@@ -1646,7 +1665,7 @@ var InvoiceHeader = decorator(Form.create())(function (props) {
|
|
|
1646
1665
|
render: function render(form) {
|
|
1647
1666
|
return form.getFieldDecorator('invoicingDate', {
|
|
1648
1667
|
initialValue: props.defaultInvoicingDate
|
|
1649
|
-
})(
|
|
1668
|
+
})(React.createElement(FormSpanString, null));
|
|
1650
1669
|
}
|
|
1651
1670
|
});
|
|
1652
1671
|
}
|
|
@@ -1657,7 +1676,7 @@ var InvoiceHeader = decorator(Form.create())(function (props) {
|
|
|
1657
1676
|
render: function render(form) {
|
|
1658
1677
|
return form.getFieldDecorator('defaultValidationCode', {
|
|
1659
1678
|
initialValue: props.defaultValidationCode
|
|
1660
|
-
})(
|
|
1679
|
+
})(React.createElement(FormSpanString, null));
|
|
1661
1680
|
}
|
|
1662
1681
|
});
|
|
1663
1682
|
}
|
|
@@ -1677,21 +1696,21 @@ var InvoiceHeader = decorator(Form.create())(function (props) {
|
|
|
1677
1696
|
React.useEffect(function () {
|
|
1678
1697
|
setTypeIndex(props.typeOptionIndex || 0);
|
|
1679
1698
|
}, [props.typeOption]);
|
|
1680
|
-
return
|
|
1699
|
+
return React.createElement("div", {
|
|
1681
1700
|
className: "kts-invoice-operate-invoice-header"
|
|
1682
|
-
},
|
|
1701
|
+
}, React.createElement("div", {
|
|
1683
1702
|
className: "invoice-header-title"
|
|
1684
|
-
}, title),
|
|
1703
|
+
}, title), React.createElement("div", {
|
|
1685
1704
|
className: "invoice-header-no"
|
|
1686
|
-
}, isInvoiceNo ?
|
|
1705
|
+
}, isInvoiceNo ? React.createElement("div", null, React.createElement("label", null, "\u53D1\u7968\u5355\u636E\u7F16\u53F7 :"), getFieldDecorator('id', {
|
|
1687
1706
|
initialValue: props.defaultId
|
|
1688
|
-
})(
|
|
1707
|
+
})(React.createElement(Input, {
|
|
1689
1708
|
disabled: readOnlyInvoiceNo,
|
|
1690
1709
|
style: {
|
|
1691
1710
|
width: 230
|
|
1692
1711
|
},
|
|
1693
1712
|
size: "small",
|
|
1694
|
-
suffix: controller.updateInvoiceNo &&
|
|
1713
|
+
suffix: controller.updateInvoiceNo && React.createElement(Icon, {
|
|
1695
1714
|
style: {
|
|
1696
1715
|
cursor: 'pointer'
|
|
1697
1716
|
},
|
|
@@ -1735,15 +1754,15 @@ var InvoiceHeader = decorator(Form.create())(function (props) {
|
|
|
1735
1754
|
return onClick;
|
|
1736
1755
|
}()
|
|
1737
1756
|
})
|
|
1738
|
-
}))) :
|
|
1757
|
+
}))) : React.createElement("div", {
|
|
1739
1758
|
style: {
|
|
1740
1759
|
height: 20
|
|
1741
1760
|
}
|
|
1742
|
-
}), tag &&
|
|
1761
|
+
}), tag && React.createElement(Tag, null, tag), React.createElement("div", {
|
|
1743
1762
|
className: "invoice-header-type"
|
|
1744
1763
|
}, props.typeOption ? getFieldDecorator('type', {
|
|
1745
1764
|
initialValue: typeIndex
|
|
1746
|
-
})(
|
|
1765
|
+
})(React.createElement(Select, {
|
|
1747
1766
|
size: "small",
|
|
1748
1767
|
style: {
|
|
1749
1768
|
width: 230
|
|
@@ -1752,20 +1771,20 @@ var InvoiceHeader = decorator(Form.create())(function (props) {
|
|
|
1752
1771
|
setTypeIndex(e);
|
|
1753
1772
|
}
|
|
1754
1773
|
}, props.typeOption.map(function (e, i) {
|
|
1755
|
-
return
|
|
1774
|
+
return React.createElement(Select.Option, {
|
|
1756
1775
|
key: i,
|
|
1757
1776
|
value: i
|
|
1758
1777
|
}, e.title);
|
|
1759
|
-
}))) : props.renderExpand && props.renderExpand(props.form))), props.typeOption &&
|
|
1778
|
+
}))) : props.renderExpand && props.renderExpand(props.form))), props.typeOption && React.createElement("div", {
|
|
1760
1779
|
style: {
|
|
1761
1780
|
marginTop: 10
|
|
1762
1781
|
}
|
|
1763
|
-
}, props.renderExpand && props.renderExpand(props.form)),
|
|
1782
|
+
}, props.renderExpand && props.renderExpand(props.form)), React.createElement("div", {
|
|
1764
1783
|
className: "invoice-header-property"
|
|
1765
|
-
}, _toConsumableArray(props.fieldExpand || []).map(function (e) {}),
|
|
1766
|
-
return
|
|
1784
|
+
}, _toConsumableArray(props.fieldExpand || []).map(function (e) {}), React.createElement(Row, null, fieldExpand.map(function (e) {
|
|
1785
|
+
return React.createElement(Col, {
|
|
1767
1786
|
span: 24 / fieldExpand.length
|
|
1768
|
-
},
|
|
1787
|
+
}, React.createElement("label", null, e.label), e.render(form));
|
|
1769
1788
|
}))));
|
|
1770
1789
|
});
|
|
1771
1790
|
|
|
@@ -1784,7 +1803,7 @@ var FormSpanString = /*#__PURE__*/function (_React$Component) {
|
|
|
1784
1803
|
key: "render",
|
|
1785
1804
|
value: function render() {
|
|
1786
1805
|
// return <span>{this.props.value}</span>;
|
|
1787
|
-
return
|
|
1806
|
+
return React.createElement(Input, {
|
|
1788
1807
|
size: "small",
|
|
1789
1808
|
disabled: true,
|
|
1790
1809
|
value: this.props.value
|
|
@@ -1887,12 +1906,12 @@ function TableVirtual (props) {
|
|
|
1887
1906
|
if (!table) return;
|
|
1888
1907
|
table.style.top = "".concat(pointer * rowHeight, "px");
|
|
1889
1908
|
}, [pointer, self, rowHeight]);
|
|
1890
|
-
return
|
|
1909
|
+
return React.createElement("span", {
|
|
1891
1910
|
className: "kts-invoice-operate-goods-table-virtual",
|
|
1892
1911
|
ref: function ref(e) {
|
|
1893
1912
|
setSelf(e);
|
|
1894
1913
|
}
|
|
1895
|
-
},
|
|
1914
|
+
}, React.createElement(Table, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
1896
1915
|
dataSource: dataSource
|
|
1897
1916
|
})));
|
|
1898
1917
|
}
|
|
@@ -1964,50 +1983,50 @@ var Statistics = (function () {
|
|
|
1964
1983
|
});
|
|
1965
1984
|
return sum.done().toNumber();
|
|
1966
1985
|
}, []);
|
|
1967
|
-
return
|
|
1986
|
+
return React.createElement("div", {
|
|
1968
1987
|
className: "kts-invoice-operate-goods-list-statistics"
|
|
1969
|
-
},
|
|
1988
|
+
}, React.createElement("div", {
|
|
1970
1989
|
className: "kts-invoice-operate-goods-list-statistics-row"
|
|
1971
|
-
},
|
|
1990
|
+
}, React.createElement("div", {
|
|
1972
1991
|
style: {
|
|
1973
1992
|
width: 45
|
|
1974
1993
|
}
|
|
1975
|
-
}),
|
|
1994
|
+
}), React.createElement("div", {
|
|
1976
1995
|
style: {
|
|
1977
1996
|
flex: 1
|
|
1978
1997
|
}
|
|
1979
|
-
},
|
|
1998
|
+
}, React.createElement("label", null, "\u5408\u8BA1")), React.createElement("div", {
|
|
1980
1999
|
style: {
|
|
1981
2000
|
width: 119 + 70
|
|
1982
2001
|
}
|
|
1983
|
-
},
|
|
2002
|
+
}, React.createElement("label", null, parseFloat(isTaxIncluded ? lineAmountIncludeTax : lineAmountExcludeTax).toFixed(2))), React.createElement("div", {
|
|
1984
2003
|
style: {
|
|
1985
2004
|
width: 119 + 50 + 1
|
|
1986
2005
|
}
|
|
1987
|
-
},
|
|
2006
|
+
}, React.createElement("label", null, parseFloat(taxAmount).toFixed(2)))), React.createElement("div", {
|
|
1988
2007
|
className: "kts-invoice-operate-goods-list-statistics-row"
|
|
1989
|
-
},
|
|
2008
|
+
}, React.createElement("div", {
|
|
1990
2009
|
style: {
|
|
1991
2010
|
width: 45
|
|
1992
2011
|
}
|
|
1993
|
-
}),
|
|
2012
|
+
}), React.createElement("div", {
|
|
1994
2013
|
style: {
|
|
1995
2014
|
flex: 4,
|
|
1996
2015
|
border: 'none'
|
|
1997
2016
|
}
|
|
1998
|
-
},
|
|
2017
|
+
}, React.createElement("label", null, "\u4EF7\u7A0E\u5408\u8BA1\uFF08\u5927\u5199\uFF09"), React.createElement("label", null, nzhcn.toMoney(lineAmountIncludeTax, {
|
|
1999
2018
|
outSymbol: false
|
|
2000
|
-
}))),
|
|
2019
|
+
}))), React.createElement("div", {
|
|
2001
2020
|
style: {
|
|
2002
2021
|
flex: 1,
|
|
2003
2022
|
border: 'none'
|
|
2004
2023
|
}
|
|
2005
|
-
},
|
|
2024
|
+
}, React.createElement("label", null, "\uFF08\u5C0F\u5199\uFF09")), React.createElement("div", {
|
|
2006
2025
|
style: {
|
|
2007
2026
|
flex: 3,
|
|
2008
2027
|
border: 'none'
|
|
2009
2028
|
}
|
|
2010
|
-
},
|
|
2029
|
+
}, React.createElement("label", null, parseFloat(lineAmountIncludeTax).toFixed(2)))));
|
|
2011
2030
|
});
|
|
2012
2031
|
|
|
2013
2032
|
var AddRowButton = (function () {
|
|
@@ -2020,6 +2039,11 @@ var AddRowButton = (function () {
|
|
|
2020
2039
|
var goodsNum = controller.useMemo(function (s) {
|
|
2021
2040
|
return s.goodsListState.goodsList.length;
|
|
2022
2041
|
}, []);
|
|
2042
|
+
/** 搜索条件 */
|
|
2043
|
+
|
|
2044
|
+
var searchValue = controller.useMemo(function (s) {
|
|
2045
|
+
return s.goodsListState.searchValue;
|
|
2046
|
+
}, []);
|
|
2023
2047
|
/** 产品最大数 */
|
|
2024
2048
|
|
|
2025
2049
|
var goodMax = controller.useMemo(function (s) {
|
|
@@ -2028,8 +2052,8 @@ var AddRowButton = (function () {
|
|
|
2028
2052
|
/** 按钮是否禁用 */
|
|
2029
2053
|
|
|
2030
2054
|
var disabled = React.useMemo(function () {
|
|
2031
|
-
return typeof goodMax === 'number' ? goodsNum >= goodMax :
|
|
2032
|
-
}, [goodMax, goodsNum]);
|
|
2055
|
+
return typeof goodMax === 'number' ? goodsNum >= goodMax : !!searchValue;
|
|
2056
|
+
}, [goodMax, goodsNum, searchValue]);
|
|
2033
2057
|
var onClick = React.useCallback( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
2034
2058
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
2035
2059
|
while (1) {
|
|
@@ -2091,8 +2115,8 @@ var AddRowButton = (function () {
|
|
|
2091
2115
|
}
|
|
2092
2116
|
}, _callee2);
|
|
2093
2117
|
})), [controller]);
|
|
2094
|
-
if (model === 'prefab') return
|
|
2095
|
-
return
|
|
2118
|
+
if (model === 'prefab') return React.createElement(React.Fragment, null);
|
|
2119
|
+
return React.createElement(Button, {
|
|
2096
2120
|
icon: "plus-circle",
|
|
2097
2121
|
onClick: onClick,
|
|
2098
2122
|
disabled: disabled
|
|
@@ -2135,11 +2159,11 @@ var TaxIncludedSwitch = (function () {
|
|
|
2135
2159
|
};
|
|
2136
2160
|
}())();
|
|
2137
2161
|
}, []);
|
|
2138
|
-
return
|
|
2162
|
+
return React.createElement("span", null, React.createElement("label", {
|
|
2139
2163
|
style: {
|
|
2140
2164
|
marginRight: 2
|
|
2141
2165
|
}
|
|
2142
|
-
}, "\u542B\u7A0E:"),
|
|
2166
|
+
}, "\u542B\u7A0E:"), React.createElement(Switch, {
|
|
2143
2167
|
disabled: isSwitchTax === false,
|
|
2144
2168
|
checked: isTaxIncluded,
|
|
2145
2169
|
checkedChildren: "\u5F00",
|
|
@@ -2179,19 +2203,19 @@ var DescribeSwitch = (function () {
|
|
|
2179
2203
|
};
|
|
2180
2204
|
}());
|
|
2181
2205
|
}, []);
|
|
2182
|
-
if (!productComparison.onComply) return
|
|
2183
|
-
return
|
|
2206
|
+
if (!productComparison.onComply) return React.createElement(React.Fragment, null);
|
|
2207
|
+
return React.createElement("span", null, React.createElement("label", {
|
|
2184
2208
|
style: {
|
|
2185
2209
|
marginRight: 2
|
|
2186
2210
|
}
|
|
2187
|
-
},
|
|
2211
|
+
}, React.createElement(Tooltip, {
|
|
2188
2212
|
title: "\u84DD\u8272\u4EE3\u8868\u6211\u65B9\u5546\u54C1\u63CF\u8FF0\uFF0C\u9ED1\u8272\u4EE3\u8868\u5BF9\u65B9\u7684\u5546\u54C1\u63CF\u8FF0\u3002"
|
|
2189
|
-
},
|
|
2213
|
+
}, React.createElement(Icon, {
|
|
2190
2214
|
style: {
|
|
2191
2215
|
marginRight: 3
|
|
2192
2216
|
},
|
|
2193
2217
|
type: "info-circle"
|
|
2194
|
-
})), "\u4F7F\u7528\u54EA\u65B9\u5546\u54C1\u63CF\u8FF0:"),
|
|
2218
|
+
})), "\u4F7F\u7528\u54EA\u65B9\u5546\u54C1\u63CF\u8FF0:"), React.createElement(Switch, {
|
|
2195
2219
|
checked: isMyShow,
|
|
2196
2220
|
checkedChildren: "\u6211\u65B9",
|
|
2197
2221
|
unCheckedChildren: "\u5BF9\u65B9",
|
|
@@ -2200,6 +2224,108 @@ var DescribeSwitch = (function () {
|
|
|
2200
2224
|
}));
|
|
2201
2225
|
});
|
|
2202
2226
|
|
|
2227
|
+
var _path$1;
|
|
2228
|
+
|
|
2229
|
+
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); }
|
|
2230
|
+
|
|
2231
|
+
function SvgMagnifier(props) {
|
|
2232
|
+
return /*#__PURE__*/createElement("svg", _extends$1({
|
|
2233
|
+
className: "magnifier_svg__icon",
|
|
2234
|
+
viewBox: "0 0 1024 1024",
|
|
2235
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2236
|
+
width: 200,
|
|
2237
|
+
height: 200
|
|
2238
|
+
}, props), _path$1 || (_path$1 = /*#__PURE__*/createElement("path", {
|
|
2239
|
+
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"
|
|
2240
|
+
})));
|
|
2241
|
+
}
|
|
2242
|
+
|
|
2243
|
+
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";
|
|
2244
|
+
styleInject(css_248z$4);
|
|
2245
|
+
|
|
2246
|
+
function Search() {
|
|
2247
|
+
var controller = Invoice.useInvoiceController();
|
|
2248
|
+
|
|
2249
|
+
var _React$useState = React.useState(''),
|
|
2250
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
2251
|
+
value = _React$useState2[0],
|
|
2252
|
+
setValue = _React$useState2[1];
|
|
2253
|
+
|
|
2254
|
+
var readOnly = controller.useMemo(function (s) {
|
|
2255
|
+
return !!s.goodsListState.editGood;
|
|
2256
|
+
}, []);
|
|
2257
|
+
var onClick = React.useCallback( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
2258
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
2259
|
+
while (1) {
|
|
2260
|
+
switch (_context.prev = _context.next) {
|
|
2261
|
+
case 0:
|
|
2262
|
+
_context.next = 2;
|
|
2263
|
+
return controller.saveEditGood();
|
|
2264
|
+
|
|
2265
|
+
case 2:
|
|
2266
|
+
_context.next = 4;
|
|
2267
|
+
return controller.wait();
|
|
2268
|
+
|
|
2269
|
+
case 4:
|
|
2270
|
+
if (!controller.state.goodsListState.editGood) {
|
|
2271
|
+
_context.next = 7;
|
|
2272
|
+
break;
|
|
2273
|
+
}
|
|
2274
|
+
|
|
2275
|
+
message.error({
|
|
2276
|
+
content: '你正在编辑一个货物',
|
|
2277
|
+
key: '你正在编辑一个货物'
|
|
2278
|
+
});
|
|
2279
|
+
return _context.abrupt("return");
|
|
2280
|
+
|
|
2281
|
+
case 7:
|
|
2282
|
+
case "end":
|
|
2283
|
+
return _context.stop();
|
|
2284
|
+
}
|
|
2285
|
+
}
|
|
2286
|
+
}, _callee);
|
|
2287
|
+
})), []);
|
|
2288
|
+
React.useEffect(function () {
|
|
2289
|
+
controller.run( /*#__PURE__*/function () {
|
|
2290
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(s) {
|
|
2291
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
2292
|
+
while (1) {
|
|
2293
|
+
switch (_context2.prev = _context2.next) {
|
|
2294
|
+
case 0:
|
|
2295
|
+
s.goodsListState.searchValue = value;
|
|
2296
|
+
|
|
2297
|
+
case 1:
|
|
2298
|
+
case "end":
|
|
2299
|
+
return _context2.stop();
|
|
2300
|
+
}
|
|
2301
|
+
}
|
|
2302
|
+
}, _callee2);
|
|
2303
|
+
}));
|
|
2304
|
+
|
|
2305
|
+
return function (_x) {
|
|
2306
|
+
return _ref2.apply(this, arguments);
|
|
2307
|
+
};
|
|
2308
|
+
}());
|
|
2309
|
+
}, [value, controller]);
|
|
2310
|
+
return React.createElement(Input, {
|
|
2311
|
+
size: "small",
|
|
2312
|
+
readOnly: readOnly,
|
|
2313
|
+
value: value,
|
|
2314
|
+
className: "kts-invoice-operate-goods-list-search",
|
|
2315
|
+
placeholder: "\u8BF7\u60A8\u8F93\u5165\u8D27\u7269\u540D\u79F0\u3001\u89C4\u683C\u578B\u53F7\u3001\u91D1\u989D(\u542B\u7A0E)\u641C\u7D22",
|
|
2316
|
+
prefix: React.createElement(Icon, {
|
|
2317
|
+
component: SvgMagnifier,
|
|
2318
|
+
style: {
|
|
2319
|
+
color: "#b8b8b8"
|
|
2320
|
+
}
|
|
2321
|
+
}),
|
|
2322
|
+
onChange: function onChange(e) {
|
|
2323
|
+
setValue(e.target.value);
|
|
2324
|
+
},
|
|
2325
|
+
onClick: onClick
|
|
2326
|
+
});
|
|
2327
|
+
}
|
|
2328
|
+
|
|
2203
2329
|
function TableRow(props) {
|
|
2204
2330
|
var controller = Invoice.useInvoiceController();
|
|
2205
2331
|
var goodsMap = controller.useMemo(function (s) {
|
|
@@ -2210,11 +2336,75 @@ function TableRow(props) {
|
|
|
2210
2336
|
if (!i) return false;
|
|
2211
2337
|
return i.lineAttribute !== LineAttributeType$1.正常;
|
|
2212
2338
|
}, [props['data-row-key'], goodsMap]);
|
|
2213
|
-
return
|
|
2339
|
+
return React.createElement("tr", _objectSpread2(_objectSpread2({}, props), {}, {
|
|
2214
2340
|
className: "".concat(isR ? 'kts-invoice-operate-goods-discount ' : '').concat(props.className)
|
|
2215
2341
|
}));
|
|
2216
2342
|
}
|
|
2217
2343
|
|
|
2344
|
+
var useDelRowButton = (function () {
|
|
2345
|
+
var controller = Invoice.useInvoiceController();
|
|
2346
|
+
var model = controller.useMemo(function (s) {
|
|
2347
|
+
return s.model;
|
|
2348
|
+
}, []);
|
|
2349
|
+
/** 是否禁用 */
|
|
2350
|
+
|
|
2351
|
+
var disabled = controller.useMemo(function (s) {
|
|
2352
|
+
if (s.goodsListState.selectedGoodIndex.length <= 0) return true;
|
|
2353
|
+
return s.goodsListState.selectedGoodIndex.some(function (e) {
|
|
2354
|
+
var good = s.goodsListState.goodsMap.get(e);
|
|
2355
|
+
if (!good) return true;
|
|
2356
|
+
return good.lineAttribute !== LineAttributeType$1.正常;
|
|
2357
|
+
});
|
|
2358
|
+
}, []);
|
|
2359
|
+
var onClick = React.useCallback(function () {
|
|
2360
|
+
controller.pipeline( /*#__PURE__*/function () {
|
|
2361
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(s) {
|
|
2362
|
+
var goodsList;
|
|
2363
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
2364
|
+
while (1) {
|
|
2365
|
+
switch (_context.prev = _context.next) {
|
|
2366
|
+
case 0:
|
|
2367
|
+
goodsList = s.goodsListState.goodsList.filter(function (e) {
|
|
2368
|
+
return s.goodsListState.selectedGoodIndex.indexOf(e.$index) < 0;
|
|
2369
|
+
});
|
|
2370
|
+
|
|
2371
|
+
if (s.goodsListState.editGood) {
|
|
2372
|
+
if (s.goodsListState.selectedGoodIndex.indexOf(s.goodsListState.editGood.$index) >= 0) {
|
|
2373
|
+
controller.setEditGood();
|
|
2374
|
+
}
|
|
2375
|
+
}
|
|
2376
|
+
|
|
2377
|
+
s.goodsListState = _objectSpread2(_objectSpread2({}, s.goodsListState), {}, {
|
|
2378
|
+
goodsList: goodsList,
|
|
2379
|
+
selectedGoodIndex: []
|
|
2380
|
+
});
|
|
2381
|
+
|
|
2382
|
+
case 3:
|
|
2383
|
+
case "end":
|
|
2384
|
+
return _context.stop();
|
|
2385
|
+
}
|
|
2386
|
+
}
|
|
2387
|
+
}, _callee);
|
|
2388
|
+
}));
|
|
2389
|
+
|
|
2390
|
+
return function (_x) {
|
|
2391
|
+
return _ref.apply(this, arguments);
|
|
2392
|
+
};
|
|
2393
|
+
}())();
|
|
2394
|
+
}, [controller]);
|
|
2395
|
+
var menuItem = React.useMemo(function () {
|
|
2396
|
+
if (model === 'prefab') return React.createElement(React.Fragment, null);
|
|
2397
|
+
return React.createElement(Menu.Item, {
|
|
2398
|
+
key: "1",
|
|
2399
|
+
onClick: onClick,
|
|
2400
|
+
disabled: disabled
|
|
2401
|
+
}, "\u5220\u9664\u884C");
|
|
2402
|
+
}, [model, onClick, disabled]);
|
|
2403
|
+
return {
|
|
2404
|
+
menuItem: menuItem
|
|
2405
|
+
};
|
|
2406
|
+
});
|
|
2407
|
+
|
|
2218
2408
|
/** 延迟函数 */
|
|
2219
2409
|
var lazyFn = (function (fn) {
|
|
2220
2410
|
var delayed = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 200;
|
|
@@ -2250,8 +2440,8 @@ var evaluate = (function (expr) {
|
|
|
2250
2440
|
return parseFloat(math.evaluate(expr).toFixed(fractionDigits));
|
|
2251
2441
|
});
|
|
2252
2442
|
|
|
2253
|
-
var css_248z$
|
|
2254
|
-
styleInject(css_248z$
|
|
2443
|
+
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";
|
|
2444
|
+
styleInject(css_248z$5);
|
|
2255
2445
|
|
|
2256
2446
|
var Text = Typography.Text;
|
|
2257
2447
|
|
|
@@ -2261,7 +2451,7 @@ var _create = create(all, {
|
|
|
2261
2451
|
}),
|
|
2262
2452
|
chain = _create.chain;
|
|
2263
2453
|
|
|
2264
|
-
var
|
|
2454
|
+
var useAddDiscountRowButton = (function () {
|
|
2265
2455
|
/** 控制器 */
|
|
2266
2456
|
var controller = Invoice.useInvoiceController();
|
|
2267
2457
|
var model = controller.useMemo(function (s) {
|
|
@@ -2407,20 +2597,28 @@ var AddDiscountRowButton = decorator(Form.create())(function (props) {
|
|
|
2407
2597
|
}
|
|
2408
2598
|
}, _callee3);
|
|
2409
2599
|
})), [controller]);
|
|
2410
|
-
|
|
2411
|
-
|
|
2412
|
-
|
|
2413
|
-
|
|
2414
|
-
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
|
|
2418
|
-
|
|
2419
|
-
|
|
2420
|
-
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
|
|
2600
|
+
var menuItem = React.useMemo(function () {
|
|
2601
|
+
return model === 'prefab' ? React.createElement(React.Fragment, null) : isAddDiscount !== false ? React.createElement(Menu.Item, {
|
|
2602
|
+
key: "0",
|
|
2603
|
+
onClick: onClick,
|
|
2604
|
+
disabled: disabled
|
|
2605
|
+
}, "\u6DFB\u52A0\u6298\u6263\u884C") : undefined;
|
|
2606
|
+
}, [isAddDiscount, disabled, onClick]);
|
|
2607
|
+
var drawer = React.useMemo(function () {
|
|
2608
|
+
return React.createElement(Drawer, {
|
|
2609
|
+
className: "kts-invoice-operate-goods-list-add-discount-row",
|
|
2610
|
+
width: 540,
|
|
2611
|
+
title: "\u6DFB\u52A0\u6298\u6263\u884C",
|
|
2612
|
+
placement: "right",
|
|
2613
|
+
destroyOnClose: true,
|
|
2614
|
+
onClose: onClose,
|
|
2615
|
+
visible: visible
|
|
2616
|
+
}, React.createElement(DrawerBody, null));
|
|
2617
|
+
}, [visible, onClose]);
|
|
2618
|
+
return {
|
|
2619
|
+
menuItem: menuItem,
|
|
2620
|
+
drawer: drawer
|
|
2621
|
+
};
|
|
2424
2622
|
});
|
|
2425
2623
|
var DrawerBody = decorator(Form.create())(function (props) {
|
|
2426
2624
|
var form = props.form;
|
|
@@ -2532,13 +2730,13 @@ var DrawerBody = decorator(Form.create())(function (props) {
|
|
|
2532
2730
|
});
|
|
2533
2731
|
});
|
|
2534
2732
|
}, 300), [form, lineAmountSum]);
|
|
2535
|
-
return
|
|
2733
|
+
return React.createElement(React.Fragment, null, React.createElement("div", {
|
|
2536
2734
|
className: "add-discount-row-body"
|
|
2537
|
-
},
|
|
2735
|
+
}, React.createElement("p", null, "\u5F53\u524D\u9009\u62E9", React.createElement(Text, {
|
|
2538
2736
|
type: "danger"
|
|
2539
|
-
}, discountGoodIndex.length), "\u884C\u88AB\u6298\u6263\u5546\u54C1\u884C\uFF0C\u91D1\u989D\u5408\u8BA1\xA5",
|
|
2737
|
+
}, discountGoodIndex.length), "\u884C\u88AB\u6298\u6263\u5546\u54C1\u884C\uFF0C\u91D1\u989D\u5408\u8BA1\xA5", React.createElement(Text, {
|
|
2540
2738
|
type: "danger"
|
|
2541
|
-
}, lineAmountSum.toFixed(2))),
|
|
2739
|
+
}, lineAmountSum.toFixed(2))), React.createElement(Form.Item, {
|
|
2542
2740
|
label: "\u6298\u6263\u7387\uFF1A"
|
|
2543
2741
|
}, getFieldDecorator('discount', {
|
|
2544
2742
|
rules: [{
|
|
@@ -2568,11 +2766,11 @@ var DrawerBody = decorator(Form.create())(function (props) {
|
|
|
2568
2766
|
callback();
|
|
2569
2767
|
}
|
|
2570
2768
|
}]
|
|
2571
|
-
})(
|
|
2769
|
+
})(React.createElement(Input, {
|
|
2572
2770
|
placeholder: "\u8BF7\u8F93\u5165\u5927\u4E8E0\u5C0F\u4E8E100\u7684\u6570\u5B57",
|
|
2573
2771
|
suffix: "%",
|
|
2574
2772
|
onChange: onChangeDiscount
|
|
2575
|
-
}))),
|
|
2773
|
+
}))), React.createElement(Form.Item, {
|
|
2576
2774
|
label: "\u6298\u6263\u91D1\u989D\uFF1A"
|
|
2577
2775
|
}, getFieldDecorator('discolineAmountunt', {
|
|
2578
2776
|
rules: [{
|
|
@@ -2602,19 +2800,19 @@ var DrawerBody = decorator(Form.create())(function (props) {
|
|
|
2602
2800
|
callback();
|
|
2603
2801
|
}
|
|
2604
2802
|
}]
|
|
2605
|
-
})(
|
|
2803
|
+
})(React.createElement(Input, {
|
|
2606
2804
|
placeholder: "\u8BF7\u8F93\u5165\u5927\u4E8E0\u5C0F\u4E8E\u91D1\u989D\u5408\u8BA1\u7684\u6570\u5B57",
|
|
2607
2805
|
suffix: "\xA5",
|
|
2608
2806
|
onChange: onChangeDiscolineAmountunt
|
|
2609
|
-
})))),
|
|
2807
|
+
})))), React.createElement("div", {
|
|
2610
2808
|
className: "add-discount-row-footer"
|
|
2611
|
-
},
|
|
2809
|
+
}, React.createElement(Button, {
|
|
2612
2810
|
block: true,
|
|
2613
2811
|
style: {
|
|
2614
2812
|
marginBottom: 12
|
|
2615
2813
|
},
|
|
2616
2814
|
onClick: onClose
|
|
2617
|
-
}, "\u53D6\u6D88"),
|
|
2815
|
+
}, "\u53D6\u6D88"), React.createElement(Button, {
|
|
2618
2816
|
type: "primary",
|
|
2619
2817
|
block: true,
|
|
2620
2818
|
onClick: onClickSave
|
|
@@ -2644,7 +2842,7 @@ var coolingFn = (function () {
|
|
|
2644
2842
|
}
|
|
2645
2843
|
});
|
|
2646
2844
|
|
|
2647
|
-
var
|
|
2845
|
+
var useEndowCodeButton = (function () {
|
|
2648
2846
|
var controller = Invoice.useInvoiceController();
|
|
2649
2847
|
/** 是否禁用 */
|
|
2650
2848
|
|
|
@@ -2722,70 +2920,16 @@ var EndowCodeButton = (function () {
|
|
|
2722
2920
|
}
|
|
2723
2921
|
}, _callee2);
|
|
2724
2922
|
})), [controller]);
|
|
2725
|
-
|
|
2726
|
-
|
|
2727
|
-
|
|
2728
|
-
|
|
2729
|
-
|
|
2730
|
-
});
|
|
2731
|
-
|
|
2732
|
-
|
|
2733
|
-
|
|
2734
|
-
|
|
2735
|
-
return s.model;
|
|
2736
|
-
}, []);
|
|
2737
|
-
/** 是否禁用 */
|
|
2738
|
-
|
|
2739
|
-
var disabled = controller.useMemo(function (s) {
|
|
2740
|
-
if (s.goodsListState.selectedGoodIndex.length <= 0) return true;
|
|
2741
|
-
return s.goodsListState.selectedGoodIndex.some(function (e) {
|
|
2742
|
-
var good = s.goodsListState.goodsMap.get(e);
|
|
2743
|
-
if (!good) return true;
|
|
2744
|
-
return good.lineAttribute !== LineAttributeType$1.正常;
|
|
2745
|
-
});
|
|
2746
|
-
}, []);
|
|
2747
|
-
var onClick = React.useCallback(function () {
|
|
2748
|
-
controller.pipeline( /*#__PURE__*/function () {
|
|
2749
|
-
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(s) {
|
|
2750
|
-
var goodsList;
|
|
2751
|
-
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
2752
|
-
while (1) {
|
|
2753
|
-
switch (_context.prev = _context.next) {
|
|
2754
|
-
case 0:
|
|
2755
|
-
goodsList = s.goodsListState.goodsList.filter(function (e) {
|
|
2756
|
-
return s.goodsListState.selectedGoodIndex.indexOf(e.$index) < 0;
|
|
2757
|
-
});
|
|
2758
|
-
|
|
2759
|
-
if (s.goodsListState.editGood) {
|
|
2760
|
-
if (s.goodsListState.selectedGoodIndex.indexOf(s.goodsListState.editGood.$index) >= 0) {
|
|
2761
|
-
controller.setEditGood();
|
|
2762
|
-
}
|
|
2763
|
-
}
|
|
2764
|
-
|
|
2765
|
-
s.goodsListState = _objectSpread2(_objectSpread2({}, s.goodsListState), {}, {
|
|
2766
|
-
goodsList: goodsList,
|
|
2767
|
-
selectedGoodIndex: []
|
|
2768
|
-
});
|
|
2769
|
-
|
|
2770
|
-
case 3:
|
|
2771
|
-
case "end":
|
|
2772
|
-
return _context.stop();
|
|
2773
|
-
}
|
|
2774
|
-
}
|
|
2775
|
-
}, _callee);
|
|
2776
|
-
}));
|
|
2777
|
-
|
|
2778
|
-
return function (_x) {
|
|
2779
|
-
return _ref.apply(this, arguments);
|
|
2780
|
-
};
|
|
2781
|
-
}())();
|
|
2782
|
-
}, [controller]);
|
|
2783
|
-
if (model === 'prefab') return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
2784
|
-
return /*#__PURE__*/React.createElement(Button, {
|
|
2785
|
-
icon: "delete",
|
|
2786
|
-
onClick: onClick,
|
|
2787
|
-
disabled: disabled
|
|
2788
|
-
}, "\u5220\u9664\u884C");
|
|
2923
|
+
var menuItem = React.useMemo(function () {
|
|
2924
|
+
return React.createElement(Menu.Item, {
|
|
2925
|
+
key: "2",
|
|
2926
|
+
onClick: onClick,
|
|
2927
|
+
disabled: disabled
|
|
2928
|
+
}, "\u6279\u91CF\u8D4B\u7801");
|
|
2929
|
+
}, [onClick, disabled]);
|
|
2930
|
+
return {
|
|
2931
|
+
menuItem: menuItem
|
|
2932
|
+
};
|
|
2789
2933
|
});
|
|
2790
2934
|
|
|
2791
2935
|
/** 拆分全称加简称 */
|
|
@@ -2825,7 +2969,7 @@ var setShorthand = function setShorthand(name, shorthand) {
|
|
|
2825
2969
|
return getItemName(sn);
|
|
2826
2970
|
};
|
|
2827
2971
|
|
|
2828
|
-
var
|
|
2972
|
+
var useCommodityComparisonButton = (function () {
|
|
2829
2973
|
var controller = Invoice.useInvoiceController();
|
|
2830
2974
|
|
|
2831
2975
|
var _controller$useMemo = controller.useMemo(function (s) {
|
|
@@ -2934,26 +3078,49 @@ var CommodityComparisonButton = (function () {
|
|
|
2934
3078
|
}
|
|
2935
3079
|
}
|
|
2936
3080
|
}, _callee2);
|
|
2937
|
-
})), []);
|
|
2938
|
-
|
|
2939
|
-
|
|
2940
|
-
|
|
2941
|
-
|
|
2942
|
-
|
|
2943
|
-
|
|
2944
|
-
|
|
3081
|
+
})), []);
|
|
3082
|
+
var menuItem = React.useMemo(function () {
|
|
3083
|
+
// 没用 执行商品对照 的方法 不显示按钮
|
|
3084
|
+
if (!onComply) return React.createElement(React.Fragment, null);
|
|
3085
|
+
return React.createElement(Menu.Item, {
|
|
3086
|
+
key: "3",
|
|
3087
|
+
disabled: disabled,
|
|
3088
|
+
onClick: onClick
|
|
3089
|
+
}, "\u6267\u884C\u5546\u54C1\u5BF9\u7167");
|
|
3090
|
+
}, []);
|
|
3091
|
+
return {
|
|
3092
|
+
menuItem: menuItem
|
|
3093
|
+
};
|
|
2945
3094
|
});
|
|
2946
3095
|
|
|
2947
|
-
|
|
3096
|
+
function BulkMenu() {
|
|
3097
|
+
/** 删除行 */
|
|
3098
|
+
var delRowButton = useDelRowButton();
|
|
3099
|
+
/** 添加折扣行 */
|
|
2948
3100
|
|
|
2949
|
-
|
|
3101
|
+
var addDiscountRowButton = useAddDiscountRowButton();
|
|
3102
|
+
/** 批量赋码 */
|
|
3103
|
+
|
|
3104
|
+
var endowCodeButton = useEndowCodeButton();
|
|
3105
|
+
/** 执行商品对照 */
|
|
3106
|
+
|
|
3107
|
+
var commodityComparisonButton = useCommodityComparisonButton();
|
|
3108
|
+
var menu = React.createElement(Menu, null, delRowButton.menuItem, addDiscountRowButton.menuItem, endowCodeButton.menuItem, commodityComparisonButton.menuItem);
|
|
3109
|
+
return React.createElement(React.Fragment, null, React.createElement(Dropdown, {
|
|
3110
|
+
overlay: menu
|
|
3111
|
+
}, React.createElement(Button, null, "\u6279\u91CF\u64CD\u4F5C\u884C")), addDiscountRowButton.drawer);
|
|
3112
|
+
}
|
|
3113
|
+
|
|
3114
|
+
var _defs$1, _path$2;
|
|
3115
|
+
|
|
3116
|
+
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); }
|
|
2950
3117
|
|
|
2951
3118
|
function SvgSpot(props) {
|
|
2952
|
-
return /*#__PURE__*/createElement("svg", _extends$
|
|
3119
|
+
return /*#__PURE__*/createElement("svg", _extends$2({
|
|
2953
3120
|
className: "spot_svg__icon",
|
|
2954
3121
|
viewBox: "0 0 1024 1024",
|
|
2955
3122
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2956
|
-
}, props), _defs$1 || (_defs$1 = /*#__PURE__*/createElement("defs", null, /*#__PURE__*/createElement("style", null))), _path$
|
|
3123
|
+
}, props), _defs$1 || (_defs$1 = /*#__PURE__*/createElement("defs", null, /*#__PURE__*/createElement("style", null))), _path$2 || (_path$2 = /*#__PURE__*/createElement("path", {
|
|
2957
3124
|
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"
|
|
2958
3125
|
})));
|
|
2959
3126
|
}
|
|
@@ -2970,10 +3137,10 @@ var useDelItem = (function (goods) {
|
|
|
2970
3137
|
}
|
|
2971
3138
|
|
|
2972
3139
|
return React.useMemo(function () {
|
|
2973
|
-
return
|
|
3140
|
+
return React.createElement(Menu.Item, {
|
|
2974
3141
|
key: "delItem",
|
|
2975
3142
|
onClick: onClick
|
|
2976
|
-
},
|
|
3143
|
+
}, React.createElement(Text$1, {
|
|
2977
3144
|
strong: true,
|
|
2978
3145
|
type: "danger"
|
|
2979
3146
|
}, "\u5220\u9664"));
|
|
@@ -3092,10 +3259,10 @@ var useAddDiscount = (function (goods) {
|
|
|
3092
3259
|
return undefined;
|
|
3093
3260
|
}
|
|
3094
3261
|
|
|
3095
|
-
return
|
|
3262
|
+
return React.createElement(Menu.Item, {
|
|
3096
3263
|
key: "addDiscount",
|
|
3097
3264
|
onClick: onClick
|
|
3098
|
-
},
|
|
3265
|
+
}, React.createElement(Text$2, {
|
|
3099
3266
|
strong: true
|
|
3100
3267
|
}, "\u6DFB\u52A0\u6298\u6263\u884C"));
|
|
3101
3268
|
}, [onClick, goods.lineAttribute]);
|
|
@@ -9785,10 +9952,10 @@ var useEndowCode = (function (goods) {
|
|
|
9785
9952
|
}, _callee);
|
|
9786
9953
|
})), [controller, goods]);
|
|
9787
9954
|
return React.useMemo(function () {
|
|
9788
|
-
return
|
|
9955
|
+
return React.createElement(Menu.Item, {
|
|
9789
9956
|
key: "endowCode",
|
|
9790
9957
|
onClick: onClick
|
|
9791
|
-
},
|
|
9958
|
+
}, React.createElement(Text$3, {
|
|
9792
9959
|
strong: true
|
|
9793
9960
|
}, "\u8D4B\u7801"));
|
|
9794
9961
|
}, [goods.lineAttribute, onClick]);
|
|
@@ -9873,20 +10040,20 @@ var useAddComparison = (function (goods) {
|
|
|
9873
10040
|
})), [controller, goods.$index]);
|
|
9874
10041
|
return React.useMemo(function () {
|
|
9875
10042
|
if (productComparison.onComply) {
|
|
9876
|
-
return
|
|
10043
|
+
return React.createElement(Menu.Item, {
|
|
9877
10044
|
key: "delItem",
|
|
9878
10045
|
onClick: onClick
|
|
9879
|
-
},
|
|
10046
|
+
}, React.createElement(Text$4, {
|
|
9880
10047
|
strong: true
|
|
9881
10048
|
}, "\u6DFB\u52A0\u5546\u54C1\u5BF9\u7167"));
|
|
9882
10049
|
} else {
|
|
9883
|
-
return
|
|
10050
|
+
return React.createElement(React.Fragment, null);
|
|
9884
10051
|
}
|
|
9885
10052
|
}, [onClick, productComparison]);
|
|
9886
10053
|
});
|
|
9887
10054
|
|
|
9888
|
-
var css_248z$
|
|
9889
|
-
styleInject(css_248z$
|
|
10055
|
+
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";
|
|
10056
|
+
styleInject(css_248z$6);
|
|
9890
10057
|
|
|
9891
10058
|
var RowMenu = (function (props) {
|
|
9892
10059
|
var controller = Invoice.useInvoiceController();
|
|
@@ -9916,7 +10083,7 @@ var RowMenu = (function (props) {
|
|
|
9916
10083
|
model !== 'prefab' && delItem && arr.push(delItem); // 删除
|
|
9917
10084
|
|
|
9918
10085
|
if (!goodsMenuExpand || goodsMenuExpand.length === 0) return arr;
|
|
9919
|
-
arr.unshift(
|
|
10086
|
+
arr.unshift(React.createElement(Menu.Divider, {
|
|
9920
10087
|
key: "divider-1"
|
|
9921
10088
|
}));
|
|
9922
10089
|
|
|
@@ -9929,16 +10096,16 @@ var RowMenu = (function (props) {
|
|
|
9929
10096
|
}, [controller, endowCode, addDiscount, delItem, goodsMenuExpand, props.goods, model, isAddDiscount]);
|
|
9930
10097
|
|
|
9931
10098
|
if (itemList.length === 0) {
|
|
9932
|
-
return
|
|
10099
|
+
return React.createElement(React.Fragment, null);
|
|
9933
10100
|
}
|
|
9934
10101
|
|
|
9935
|
-
return
|
|
9936
|
-
overlay:
|
|
10102
|
+
return React.createElement(Dropdown, {
|
|
10103
|
+
overlay: React.createElement(Menu, null, itemList),
|
|
9937
10104
|
trigger: ['click']
|
|
9938
|
-
},
|
|
10105
|
+
}, React.createElement(Button, {
|
|
9939
10106
|
className: "kts-invoice-operate-goods-list-columns-row-menu ant-btn-icon-only",
|
|
9940
10107
|
type: "link"
|
|
9941
|
-
},
|
|
10108
|
+
}, React.createElement(Icon, {
|
|
9942
10109
|
component: SvgSpot
|
|
9943
10110
|
})));
|
|
9944
10111
|
});
|
|
@@ -9963,6 +10130,11 @@ var useColumns = (function (form) {
|
|
|
9963
10130
|
var editGood = controller.useMemo(function (e) {
|
|
9964
10131
|
return e.goodsListState.editGood;
|
|
9965
10132
|
}, []);
|
|
10133
|
+
/** 搜索条件 */
|
|
10134
|
+
|
|
10135
|
+
var searchValue = controller.useMemo(function (e) {
|
|
10136
|
+
return e.goodsListState.searchValue;
|
|
10137
|
+
}, []);
|
|
9966
10138
|
/** 税率列表 */
|
|
9967
10139
|
|
|
9968
10140
|
var taxRateList = controller.useMemo(function (e) {
|
|
@@ -9989,7 +10161,7 @@ var useColumns = (function (form) {
|
|
|
9989
10161
|
|
|
9990
10162
|
var columns = React.useMemo(function () {
|
|
9991
10163
|
return [{
|
|
9992
|
-
title:
|
|
10164
|
+
title: React.createElement(React.Fragment, null, React.createElement(Text$5, {
|
|
9993
10165
|
type: "danger"
|
|
9994
10166
|
}, "*"), "\u8D27\u7269\u540D\u79F0"),
|
|
9995
10167
|
key: 'itemName',
|
|
@@ -9997,7 +10169,7 @@ var useColumns = (function (form) {
|
|
|
9997
10169
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
9998
10170
|
var _editGood$itemName;
|
|
9999
10171
|
|
|
10000
|
-
return
|
|
10172
|
+
return React.createElement(Form.Item, null, React.createElement("div", {
|
|
10001
10173
|
style: {
|
|
10002
10174
|
display: 'flex'
|
|
10003
10175
|
}
|
|
@@ -10044,22 +10216,22 @@ var useColumns = (function (form) {
|
|
|
10044
10216
|
return validator;
|
|
10045
10217
|
}()
|
|
10046
10218
|
}]
|
|
10047
|
-
})(
|
|
10219
|
+
})(React.createElement(MyInput, {
|
|
10048
10220
|
style: {
|
|
10049
10221
|
flex: 1
|
|
10050
10222
|
},
|
|
10051
10223
|
onChange: function onChange() {
|
|
10052
10224
|
onChangeItemName(controller, form, record);
|
|
10053
10225
|
}
|
|
10054
|
-
})),
|
|
10226
|
+
})), React.createElement("div", {
|
|
10055
10227
|
className: "kts-invoice-operate-goods-list-able-list-itemName-import"
|
|
10056
|
-
}, !((_editGood$itemName = editGood.itemName) === null || _editGood$itemName === void 0 ? void 0 : _editGood$itemName.match(/\*[^*]+\*/)) &&
|
|
10228
|
+
}, !((_editGood$itemName = editGood.itemName) === null || _editGood$itemName === void 0 ? void 0 : _editGood$itemName.match(/\*[^*]+\*/)) && React.createElement(Button, {
|
|
10057
10229
|
onClick: function onClick() {
|
|
10058
10230
|
endowCode(controller, record);
|
|
10059
10231
|
},
|
|
10060
10232
|
type: "link",
|
|
10061
10233
|
icon: "file-add"
|
|
10062
|
-
}), controller.getGoodsList &&
|
|
10234
|
+
}), controller.getGoodsList && React.createElement(Button, {
|
|
10063
10235
|
onClick: controller.pipeline( /*#__PURE__*/function () {
|
|
10064
10236
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(s) {
|
|
10065
10237
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
@@ -10084,11 +10256,13 @@ var useColumns = (function (form) {
|
|
|
10084
10256
|
icon: "plus-circle"
|
|
10085
10257
|
}))));
|
|
10086
10258
|
} else {
|
|
10087
|
-
return
|
|
10088
|
-
valueT: record.itemName,
|
|
10259
|
+
return React.createElement(MyItemNameDiv, {
|
|
10260
|
+
valueT: formatSearch(record.itemName, searchValue),
|
|
10089
10261
|
valueF: record.itemNameOther,
|
|
10090
10262
|
isMyShow: isMyShow
|
|
10091
|
-
});
|
|
10263
|
+
}); // return (
|
|
10264
|
+
// <span style={{ padding: '0 10px' }}>{formatSearch(value, searchValue)}</span>
|
|
10265
|
+
// );
|
|
10092
10266
|
}
|
|
10093
10267
|
}
|
|
10094
10268
|
}, {
|
|
@@ -10097,9 +10271,9 @@ var useColumns = (function (form) {
|
|
|
10097
10271
|
width: 119,
|
|
10098
10272
|
render: function render(_, record) {
|
|
10099
10273
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
10100
|
-
return
|
|
10274
|
+
return React.createElement(Form.Item, null, getFieldDecorator('itemModelName', {
|
|
10101
10275
|
initialValue: isMyShow ? editGood.itemModelName : editGood.itemModelNameOther
|
|
10102
|
-
})(
|
|
10276
|
+
})(React.createElement(MyInput, {
|
|
10103
10277
|
onChange: function () {
|
|
10104
10278
|
var _onChange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
10105
10279
|
var key, value;
|
|
@@ -10132,11 +10306,11 @@ var useColumns = (function (form) {
|
|
|
10132
10306
|
}()
|
|
10133
10307
|
})));
|
|
10134
10308
|
} else {
|
|
10135
|
-
return
|
|
10136
|
-
valueT: record.itemModelName,
|
|
10137
|
-
valueF: record.itemModelNameOther,
|
|
10309
|
+
return React.createElement(MyItemNameDiv, {
|
|
10310
|
+
valueT: formatSearch(record.itemModelName, searchValue),
|
|
10311
|
+
valueF: formatSearch(record.itemModelNameOther, searchValue),
|
|
10138
10312
|
isMyShow: isMyShow
|
|
10139
|
-
});
|
|
10313
|
+
}); // return <span style={{ padding: '0 10px' }}>{formatSearch(value, searchValue)}</span>;
|
|
10140
10314
|
}
|
|
10141
10315
|
}
|
|
10142
10316
|
}, {
|
|
@@ -10145,9 +10319,9 @@ var useColumns = (function (form) {
|
|
|
10145
10319
|
width: 70,
|
|
10146
10320
|
render: function render(_, record) {
|
|
10147
10321
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
10148
|
-
return
|
|
10322
|
+
return React.createElement(Form.Item, null, getFieldDecorator('unit', {
|
|
10149
10323
|
initialValue: editGood.unit
|
|
10150
|
-
})(
|
|
10324
|
+
})(React.createElement(AutoComplete, {
|
|
10151
10325
|
style: {
|
|
10152
10326
|
width: '100%'
|
|
10153
10327
|
},
|
|
@@ -10184,7 +10358,7 @@ var useColumns = (function (form) {
|
|
|
10184
10358
|
}()
|
|
10185
10359
|
})));
|
|
10186
10360
|
} else {
|
|
10187
|
-
return
|
|
10361
|
+
return React.createElement(MyItemNameDiv, {
|
|
10188
10362
|
valueT: record.unit,
|
|
10189
10363
|
valueF: record.unitOther,
|
|
10190
10364
|
isMyShow: isMyShow
|
|
@@ -10199,7 +10373,7 @@ var useColumns = (function (form) {
|
|
|
10199
10373
|
width: 149,
|
|
10200
10374
|
render: function render(value, record) {
|
|
10201
10375
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
10202
|
-
return
|
|
10376
|
+
return React.createElement(Form.Item, null, getFieldDecorator('quantity', {
|
|
10203
10377
|
initialValue: editGood.quantity,
|
|
10204
10378
|
rules: [{
|
|
10205
10379
|
pattern: /^[+-]?(0|([1-9]\d*))(\.\d+)?$/,
|
|
@@ -10244,7 +10418,7 @@ var useColumns = (function (form) {
|
|
|
10244
10418
|
return validator;
|
|
10245
10419
|
}()
|
|
10246
10420
|
}]
|
|
10247
|
-
})(
|
|
10421
|
+
})(React.createElement(MyInput, {
|
|
10248
10422
|
style: {
|
|
10249
10423
|
textAlign: 'right'
|
|
10250
10424
|
},
|
|
@@ -10256,7 +10430,7 @@ var useColumns = (function (form) {
|
|
|
10256
10430
|
}
|
|
10257
10431
|
})));
|
|
10258
10432
|
} else {
|
|
10259
|
-
return
|
|
10433
|
+
return React.createElement("span", {
|
|
10260
10434
|
style: {
|
|
10261
10435
|
padding: '0 10px'
|
|
10262
10436
|
}
|
|
@@ -10271,7 +10445,7 @@ var useColumns = (function (form) {
|
|
|
10271
10445
|
width: 149,
|
|
10272
10446
|
render: function render(value, record) {
|
|
10273
10447
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
10274
|
-
return
|
|
10448
|
+
return React.createElement(Form.Item, null, getFieldDecorator('priceIncludeTax', {
|
|
10275
10449
|
initialValue: editGood.priceIncludeTax,
|
|
10276
10450
|
rules: [{
|
|
10277
10451
|
pattern: /^[+-]?(0|([1-9]\d*))(\.\d+)?$/,
|
|
@@ -10316,7 +10490,7 @@ var useColumns = (function (form) {
|
|
|
10316
10490
|
return validator;
|
|
10317
10491
|
}()
|
|
10318
10492
|
}]
|
|
10319
|
-
})(
|
|
10493
|
+
})(React.createElement(MyInput, {
|
|
10320
10494
|
style: {
|
|
10321
10495
|
textAlign: 'right'
|
|
10322
10496
|
},
|
|
@@ -10328,7 +10502,7 @@ var useColumns = (function (form) {
|
|
|
10328
10502
|
}
|
|
10329
10503
|
})));
|
|
10330
10504
|
} else {
|
|
10331
|
-
return
|
|
10505
|
+
return React.createElement("span", {
|
|
10332
10506
|
style: {
|
|
10333
10507
|
padding: '0 10px'
|
|
10334
10508
|
}
|
|
@@ -10343,7 +10517,7 @@ var useColumns = (function (form) {
|
|
|
10343
10517
|
width: 149,
|
|
10344
10518
|
render: function render(value, record) {
|
|
10345
10519
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
10346
|
-
return
|
|
10520
|
+
return React.createElement(Form.Item, null, getFieldDecorator('priceExcludeTax', {
|
|
10347
10521
|
initialValue: editGood.priceExcludeTax,
|
|
10348
10522
|
rules: [{
|
|
10349
10523
|
pattern: /^[+-]?(0|([1-9]\d*))(\.\d+)?$/,
|
|
@@ -10388,7 +10562,7 @@ var useColumns = (function (form) {
|
|
|
10388
10562
|
return validator;
|
|
10389
10563
|
}()
|
|
10390
10564
|
}]
|
|
10391
|
-
})(
|
|
10565
|
+
})(React.createElement(MyInput, {
|
|
10392
10566
|
style: {
|
|
10393
10567
|
textAlign: 'right'
|
|
10394
10568
|
},
|
|
@@ -10400,7 +10574,7 @@ var useColumns = (function (form) {
|
|
|
10400
10574
|
}
|
|
10401
10575
|
})));
|
|
10402
10576
|
} else {
|
|
10403
|
-
return
|
|
10577
|
+
return React.createElement("span", {
|
|
10404
10578
|
style: {
|
|
10405
10579
|
padding: '0 10px'
|
|
10406
10580
|
}
|
|
@@ -10408,7 +10582,7 @@ var useColumns = (function (form) {
|
|
|
10408
10582
|
}
|
|
10409
10583
|
}
|
|
10410
10584
|
}, {
|
|
10411
|
-
title:
|
|
10585
|
+
title: React.createElement(React.Fragment, null, React.createElement(Text$5, {
|
|
10412
10586
|
type: "danger"
|
|
10413
10587
|
}, "*"), "\u91D1\u989D(\u542B\u7A0E)"),
|
|
10414
10588
|
dataIndex: 'lineAmountIncludeTax',
|
|
@@ -10417,7 +10591,7 @@ var useColumns = (function (form) {
|
|
|
10417
10591
|
align: 'right',
|
|
10418
10592
|
render: function render(value, record) {
|
|
10419
10593
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
10420
|
-
return
|
|
10594
|
+
return React.createElement(Form.Item, null, getFieldDecorator('lineAmountIncludeTax', {
|
|
10421
10595
|
initialValue: editGood.lineAmountIncludeTax,
|
|
10422
10596
|
rules: [{
|
|
10423
10597
|
required: true,
|
|
@@ -10476,7 +10650,7 @@ var useColumns = (function (form) {
|
|
|
10476
10650
|
return validator;
|
|
10477
10651
|
}()
|
|
10478
10652
|
}]
|
|
10479
|
-
})(
|
|
10653
|
+
})(React.createElement(MyInput, {
|
|
10480
10654
|
style: {
|
|
10481
10655
|
textAlign: 'right'
|
|
10482
10656
|
},
|
|
@@ -10487,15 +10661,15 @@ var useColumns = (function (form) {
|
|
|
10487
10661
|
}
|
|
10488
10662
|
})));
|
|
10489
10663
|
} else {
|
|
10490
|
-
return
|
|
10664
|
+
return React.createElement("span", {
|
|
10491
10665
|
style: {
|
|
10492
10666
|
padding: '0 10px'
|
|
10493
10667
|
}
|
|
10494
|
-
}, parseFloat(value).toFixed(2));
|
|
10668
|
+
}, formatSearch(parseFloat(value).toFixed(2), searchValue));
|
|
10495
10669
|
}
|
|
10496
10670
|
}
|
|
10497
10671
|
}, {
|
|
10498
|
-
title:
|
|
10672
|
+
title: React.createElement(React.Fragment, null, React.createElement(Text$5, {
|
|
10499
10673
|
type: "danger"
|
|
10500
10674
|
}, "*"), "\u91D1\u989D(\u4E0D\u542B\u7A0E)"),
|
|
10501
10675
|
dataIndex: 'lineAmountExcludeTax',
|
|
@@ -10504,7 +10678,7 @@ var useColumns = (function (form) {
|
|
|
10504
10678
|
width: 119,
|
|
10505
10679
|
render: function render(value, record) {
|
|
10506
10680
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
10507
|
-
return
|
|
10681
|
+
return React.createElement(Form.Item, null, getFieldDecorator('lineAmountExcludeTax', {
|
|
10508
10682
|
initialValue: editGood.lineAmountExcludeTax,
|
|
10509
10683
|
rules: [{
|
|
10510
10684
|
required: true,
|
|
@@ -10538,7 +10712,7 @@ var useColumns = (function (form) {
|
|
|
10538
10712
|
return validator;
|
|
10539
10713
|
}()
|
|
10540
10714
|
}]
|
|
10541
|
-
})(
|
|
10715
|
+
})(React.createElement(MyInput, {
|
|
10542
10716
|
style: {
|
|
10543
10717
|
textAlign: 'right'
|
|
10544
10718
|
},
|
|
@@ -10549,7 +10723,7 @@ var useColumns = (function (form) {
|
|
|
10549
10723
|
}
|
|
10550
10724
|
})));
|
|
10551
10725
|
} else {
|
|
10552
|
-
return
|
|
10726
|
+
return React.createElement("span", {
|
|
10553
10727
|
style: {
|
|
10554
10728
|
padding: '0 10px'
|
|
10555
10729
|
}
|
|
@@ -10557,7 +10731,7 @@ var useColumns = (function (form) {
|
|
|
10557
10731
|
}
|
|
10558
10732
|
}
|
|
10559
10733
|
}, {
|
|
10560
|
-
title:
|
|
10734
|
+
title: React.createElement(React.Fragment, null, React.createElement(Text$5, {
|
|
10561
10735
|
type: "danger"
|
|
10562
10736
|
}, "*"), "\u7A0E\u7387"),
|
|
10563
10737
|
dataIndex: 'taxRate',
|
|
@@ -10566,7 +10740,7 @@ var useColumns = (function (form) {
|
|
|
10566
10740
|
width: 70,
|
|
10567
10741
|
render: function render(value, record) {
|
|
10568
10742
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
10569
|
-
return
|
|
10743
|
+
return React.createElement(Form.Item, null, getFieldDecorator('taxRate', {
|
|
10570
10744
|
initialValue: editGood.taxRate,
|
|
10571
10745
|
rules: [{
|
|
10572
10746
|
required: true,
|
|
@@ -10575,7 +10749,7 @@ var useColumns = (function (form) {
|
|
|
10575
10749
|
pattern: /^[+-]?(0|([1-9]\d*))(\.\d+)?$/,
|
|
10576
10750
|
message: ' '
|
|
10577
10751
|
}]
|
|
10578
|
-
})(
|
|
10752
|
+
})(React.createElement(Select, {
|
|
10579
10753
|
className: "kts-invoice-operate-goods-list-table-tax-rate",
|
|
10580
10754
|
dropdownMenuStyle: {
|
|
10581
10755
|
textAlign: "right"
|
|
@@ -10588,13 +10762,13 @@ var useColumns = (function (form) {
|
|
|
10588
10762
|
onChangeTaxRate(controller, form, record);
|
|
10589
10763
|
}
|
|
10590
10764
|
}, taxRateList.map(function (e, i) {
|
|
10591
|
-
return
|
|
10765
|
+
return React.createElement(Select.Option, {
|
|
10592
10766
|
key: i,
|
|
10593
10767
|
value: e
|
|
10594
10768
|
}, e, "%");
|
|
10595
10769
|
}))));
|
|
10596
10770
|
} else {
|
|
10597
|
-
return
|
|
10771
|
+
return React.createElement("span", {
|
|
10598
10772
|
style: {
|
|
10599
10773
|
padding: '0 10px'
|
|
10600
10774
|
}
|
|
@@ -10611,9 +10785,9 @@ var useColumns = (function (form) {
|
|
|
10611
10785
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
10612
10786
|
return getFieldDecorator('taxAmount', {
|
|
10613
10787
|
initialValue: editGood.taxAmount
|
|
10614
|
-
})(
|
|
10788
|
+
})(React.createElement(MyDiv, null));
|
|
10615
10789
|
} else {
|
|
10616
|
-
return
|
|
10790
|
+
return React.createElement("span", {
|
|
10617
10791
|
style: {
|
|
10618
10792
|
padding: '0 10px'
|
|
10619
10793
|
}
|
|
@@ -10627,7 +10801,7 @@ var useColumns = (function (form) {
|
|
|
10627
10801
|
width: 50,
|
|
10628
10802
|
align: 'center',
|
|
10629
10803
|
render: function render(_value, record) {
|
|
10630
|
-
return
|
|
10804
|
+
return React.createElement(RowMenu, {
|
|
10631
10805
|
key: record.lineAttribute,
|
|
10632
10806
|
goods: record
|
|
10633
10807
|
});
|
|
@@ -10643,7 +10817,7 @@ var useColumns = (function (form) {
|
|
|
10643
10817
|
ellipsis: true
|
|
10644
10818
|
});
|
|
10645
10819
|
});
|
|
10646
|
-
}, [isTaxIncluded, editGood, controller, changeField, deduction, isMyShow]);
|
|
10820
|
+
}, [isTaxIncluded, editGood, controller, changeField, deduction, isMyShow, searchValue]);
|
|
10647
10821
|
React.useEffect(function () {
|
|
10648
10822
|
if (!changeField) return;
|
|
10649
10823
|
var t = setTimeout(function () {
|
|
@@ -10677,13 +10851,13 @@ var MyInput = /*#__PURE__*/function (_React$Component) {
|
|
|
10677
10851
|
key: "render",
|
|
10678
10852
|
value: function render() {
|
|
10679
10853
|
if (this.props.loading) {
|
|
10680
|
-
return
|
|
10854
|
+
return React.createElement(Spin, {
|
|
10681
10855
|
size: "small"
|
|
10682
|
-
},
|
|
10856
|
+
}, React.createElement(Input, _objectSpread2(_objectSpread2({}, this.props), {}, {
|
|
10683
10857
|
autoComplete: "off"
|
|
10684
10858
|
})));
|
|
10685
10859
|
} else {
|
|
10686
|
-
return
|
|
10860
|
+
return React.createElement(Input, _objectSpread2(_objectSpread2({}, this.props), {}, {
|
|
10687
10861
|
autoComplete: "off"
|
|
10688
10862
|
}));
|
|
10689
10863
|
}
|
|
@@ -10707,7 +10881,7 @@ var MyDiv = /*#__PURE__*/function (_React$Component2) {
|
|
|
10707
10881
|
_createClass(MyDiv, [{
|
|
10708
10882
|
key: "render",
|
|
10709
10883
|
value: function render() {
|
|
10710
|
-
return
|
|
10884
|
+
return React.createElement("span", {
|
|
10711
10885
|
style: {
|
|
10712
10886
|
padding: '0 10px'
|
|
10713
10887
|
}
|
|
@@ -10739,14 +10913,14 @@ var MyItemNameDiv = /*#__PURE__*/function (_React$Component3) {
|
|
|
10739
10913
|
|
|
10740
10914
|
if (isMyShow) {
|
|
10741
10915
|
if (valueT) {
|
|
10742
|
-
return
|
|
10916
|
+
return React.createElement("span", {
|
|
10743
10917
|
style: {
|
|
10744
10918
|
padding: '0 10px',
|
|
10745
10919
|
color: '#0074ff'
|
|
10746
10920
|
}
|
|
10747
10921
|
}, valueT);
|
|
10748
10922
|
} else {
|
|
10749
|
-
return
|
|
10923
|
+
return React.createElement("span", {
|
|
10750
10924
|
style: {
|
|
10751
10925
|
padding: '0 10px'
|
|
10752
10926
|
}
|
|
@@ -10754,13 +10928,13 @@ var MyItemNameDiv = /*#__PURE__*/function (_React$Component3) {
|
|
|
10754
10928
|
}
|
|
10755
10929
|
} else {
|
|
10756
10930
|
if (valueF) {
|
|
10757
|
-
return
|
|
10931
|
+
return React.createElement("span", {
|
|
10758
10932
|
style: {
|
|
10759
10933
|
padding: '0 10px'
|
|
10760
10934
|
}
|
|
10761
10935
|
}, valueF);
|
|
10762
10936
|
} else {
|
|
10763
|
-
return
|
|
10937
|
+
return React.createElement("span", {
|
|
10764
10938
|
style: {
|
|
10765
10939
|
padding: '0 10px',
|
|
10766
10940
|
color: '#0074ff'
|
|
@@ -10773,6 +10947,20 @@ var MyItemNameDiv = /*#__PURE__*/function (_React$Component3) {
|
|
|
10773
10947
|
|
|
10774
10948
|
return MyItemNameDiv;
|
|
10775
10949
|
}(React.Component);
|
|
10950
|
+
/** 格式搜索结果 */
|
|
10951
|
+
|
|
10952
|
+
|
|
10953
|
+
function formatSearch(value, search) {
|
|
10954
|
+
if (!value || !search) return value;
|
|
10955
|
+
|
|
10956
|
+
var __html = value.split(new RegExp(search, 'g')).join("<span class=\"kts-invoice-operate-goods-list-table-search-protrude\" >".concat(search, "</span>"));
|
|
10957
|
+
|
|
10958
|
+
return React.createElement("span", {
|
|
10959
|
+
dangerouslySetInnerHTML: {
|
|
10960
|
+
__html: __html
|
|
10961
|
+
}
|
|
10962
|
+
});
|
|
10963
|
+
}
|
|
10776
10964
|
|
|
10777
10965
|
var useOnRow = (function () {
|
|
10778
10966
|
/** 控制器 */
|
|
@@ -10970,105 +11158,168 @@ var useRowSelection = (function () {
|
|
|
10970
11158
|
var goodsList = controller.useMemo(function (s) {
|
|
10971
11159
|
return s.goodsListState.goodsList;
|
|
10972
11160
|
}, []);
|
|
11161
|
+
/** 搜索条件 */
|
|
11162
|
+
|
|
11163
|
+
var searchValue = controller.useMemo(function (s) {
|
|
11164
|
+
return s.goodsListState.searchValue;
|
|
11165
|
+
}, []);
|
|
10973
11166
|
/** 是否全选 */
|
|
11167
|
+
// const isAll = controller.useMemo(s => s.goodsListState.goodsList.length > 0 && s.goodsListState.selectedGoodIndex.length === s.goodsListState.goodsList.length, [])
|
|
10974
11168
|
|
|
10975
11169
|
var isAll = controller.useMemo(function (s) {
|
|
10976
|
-
|
|
11170
|
+
if (s.goodsListState.selectedGoodIndex.length <= 0) return false;
|
|
11171
|
+
var seeGoodsIndex = controller.getGoodsSearch(s.goodsListState.goodsList, s.goodsListState.searchValue).map(function (e) {
|
|
11172
|
+
return e.$index;
|
|
11173
|
+
});
|
|
11174
|
+
var selectedGoodIndex = s.goodsListState.selectedGoodIndex.filter(function (e) {
|
|
11175
|
+
return seeGoodsIndex.some(function (t) {
|
|
11176
|
+
return e === t;
|
|
11177
|
+
});
|
|
11178
|
+
});
|
|
11179
|
+
return selectedGoodIndex.length === seeGoodsIndex.length;
|
|
11180
|
+
}, []);
|
|
11181
|
+
var indeterminate = controller.useMemo(function (s) {
|
|
11182
|
+
var seeGoodsIndex = controller.getGoodsSearch(s.goodsListState.goodsList, s.goodsListState.searchValue).map(function (e) {
|
|
11183
|
+
return e.$index;
|
|
11184
|
+
});
|
|
11185
|
+
var selectedGoodIndex = s.goodsListState.selectedGoodIndex.filter(function (e) {
|
|
11186
|
+
return seeGoodsIndex.some(function (t) {
|
|
11187
|
+
return e === t;
|
|
11188
|
+
});
|
|
11189
|
+
});
|
|
11190
|
+
if (selectedGoodIndex.length === 0) return false;
|
|
11191
|
+
return selectedGoodIndex.length < seeGoodsIndex.length;
|
|
10977
11192
|
}, []);
|
|
10978
11193
|
/** 点击了全选 */
|
|
10979
11194
|
|
|
10980
|
-
var onClickSelectAll = React.useCallback(function () {
|
|
10981
|
-
|
|
10982
|
-
|
|
10983
|
-
|
|
10984
|
-
|
|
10985
|
-
|
|
10986
|
-
|
|
10987
|
-
|
|
10988
|
-
s.goodsListState.selectedGoodIndex = [];
|
|
10989
|
-
|
|
10990
|
-
case 1:
|
|
10991
|
-
case "end":
|
|
10992
|
-
return _context.stop();
|
|
10993
|
-
}
|
|
11195
|
+
var onClickSelectAll = React.useCallback( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
11196
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
11197
|
+
while (1) {
|
|
11198
|
+
switch (_context3.prev = _context3.next) {
|
|
11199
|
+
case 0:
|
|
11200
|
+
if (!isAll) {
|
|
11201
|
+
_context3.next = 5;
|
|
11202
|
+
break;
|
|
10994
11203
|
}
|
|
10995
|
-
}, _callee);
|
|
10996
|
-
}));
|
|
10997
11204
|
|
|
10998
|
-
|
|
10999
|
-
|
|
11000
|
-
|
|
11001
|
-
|
|
11002
|
-
|
|
11003
|
-
|
|
11004
|
-
|
|
11005
|
-
|
|
11006
|
-
|
|
11007
|
-
|
|
11008
|
-
|
|
11009
|
-
|
|
11010
|
-
|
|
11011
|
-
|
|
11205
|
+
_context3.next = 3;
|
|
11206
|
+
return controller.pipeline( /*#__PURE__*/function () {
|
|
11207
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(s) {
|
|
11208
|
+
var seeGoodsIndex;
|
|
11209
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
11210
|
+
while (1) {
|
|
11211
|
+
switch (_context.prev = _context.next) {
|
|
11212
|
+
case 0:
|
|
11213
|
+
seeGoodsIndex = controller.getGoodsSearch(s.goodsListState.goodsList, s.goodsListState.searchValue).map(function (e) {
|
|
11214
|
+
return e.$index;
|
|
11215
|
+
});
|
|
11216
|
+
s.goodsListState.selectedGoodIndex = s.goodsListState.selectedGoodIndex.filter(function (e) {
|
|
11217
|
+
return !seeGoodsIndex.some(function (t) {
|
|
11218
|
+
return e === t;
|
|
11219
|
+
});
|
|
11220
|
+
});
|
|
11012
11221
|
|
|
11013
|
-
|
|
11014
|
-
|
|
11015
|
-
|
|
11016
|
-
|
|
11017
|
-
|
|
11018
|
-
|
|
11019
|
-
|
|
11222
|
+
case 2:
|
|
11223
|
+
case "end":
|
|
11224
|
+
return _context.stop();
|
|
11225
|
+
}
|
|
11226
|
+
}
|
|
11227
|
+
}, _callee);
|
|
11228
|
+
}));
|
|
11020
11229
|
|
|
11021
|
-
|
|
11022
|
-
|
|
11023
|
-
|
|
11024
|
-
|
|
11025
|
-
|
|
11026
|
-
|
|
11230
|
+
return function (_x) {
|
|
11231
|
+
return _ref2.apply(this, arguments);
|
|
11232
|
+
};
|
|
11233
|
+
}())();
|
|
11234
|
+
|
|
11235
|
+
case 3:
|
|
11236
|
+
_context3.next = 7;
|
|
11237
|
+
break;
|
|
11238
|
+
|
|
11239
|
+
case 5:
|
|
11240
|
+
_context3.next = 7;
|
|
11241
|
+
return controller.pipeline( /*#__PURE__*/function () {
|
|
11242
|
+
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(s) {
|
|
11243
|
+
var seeGoodsIndex;
|
|
11244
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
11245
|
+
while (1) {
|
|
11246
|
+
switch (_context2.prev = _context2.next) {
|
|
11247
|
+
case 0:
|
|
11248
|
+
seeGoodsIndex = controller.getGoodsSearch(s.goodsListState.goodsList, s.goodsListState.searchValue).map(function (e) {
|
|
11249
|
+
return e.$index;
|
|
11250
|
+
});
|
|
11251
|
+
s.goodsListState.selectedGoodIndex = [].concat(_toConsumableArray(s.goodsListState.selectedGoodIndex), _toConsumableArray(seeGoodsIndex));
|
|
11252
|
+
s.goodsListState.selectedGoodIndex = Array.from(new Set(s.goodsListState.selectedGoodIndex));
|
|
11253
|
+
|
|
11254
|
+
case 3:
|
|
11255
|
+
case "end":
|
|
11256
|
+
return _context2.stop();
|
|
11257
|
+
}
|
|
11258
|
+
}
|
|
11259
|
+
}, _callee2);
|
|
11260
|
+
}));
|
|
11261
|
+
|
|
11262
|
+
return function (_x2) {
|
|
11263
|
+
return _ref3.apply(this, arguments);
|
|
11264
|
+
};
|
|
11265
|
+
}())();
|
|
11266
|
+
|
|
11267
|
+
case 7:
|
|
11268
|
+
_context3.next = 9;
|
|
11269
|
+
return sortOut(true);
|
|
11270
|
+
|
|
11271
|
+
case 9:
|
|
11272
|
+
case "end":
|
|
11273
|
+
return _context3.stop();
|
|
11274
|
+
}
|
|
11275
|
+
}
|
|
11276
|
+
}, _callee3);
|
|
11277
|
+
})), [controller, isAll]);
|
|
11027
11278
|
var onSelect = React.useCallback( /*#__PURE__*/function () {
|
|
11028
|
-
var
|
|
11029
|
-
return _regeneratorRuntime().wrap(function
|
|
11279
|
+
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6(record, selected) {
|
|
11280
|
+
return _regeneratorRuntime().wrap(function _callee6$(_context6) {
|
|
11030
11281
|
while (1) {
|
|
11031
|
-
switch (
|
|
11282
|
+
switch (_context6.prev = _context6.next) {
|
|
11032
11283
|
case 0:
|
|
11033
11284
|
if (!selected) {
|
|
11034
|
-
|
|
11285
|
+
_context6.next = 5;
|
|
11035
11286
|
break;
|
|
11036
11287
|
}
|
|
11037
11288
|
|
|
11038
|
-
|
|
11289
|
+
_context6.next = 3;
|
|
11039
11290
|
return controller.pipeline( /*#__PURE__*/function () {
|
|
11040
|
-
var
|
|
11041
|
-
return _regeneratorRuntime().wrap(function
|
|
11291
|
+
var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(s) {
|
|
11292
|
+
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
11042
11293
|
while (1) {
|
|
11043
|
-
switch (
|
|
11294
|
+
switch (_context4.prev = _context4.next) {
|
|
11044
11295
|
case 0:
|
|
11045
11296
|
s.goodsListState.selectedGoodIndex = [].concat(_toConsumableArray(s.goodsListState.selectedGoodIndex), [record.$index]);
|
|
11046
11297
|
s.goodsListState = _objectSpread2({}, s.goodsListState);
|
|
11047
11298
|
|
|
11048
11299
|
case 2:
|
|
11049
11300
|
case "end":
|
|
11050
|
-
return
|
|
11301
|
+
return _context4.stop();
|
|
11051
11302
|
}
|
|
11052
11303
|
}
|
|
11053
|
-
},
|
|
11304
|
+
}, _callee4);
|
|
11054
11305
|
}));
|
|
11055
11306
|
|
|
11056
11307
|
return function (_x5) {
|
|
11057
|
-
return
|
|
11308
|
+
return _ref5.apply(this, arguments);
|
|
11058
11309
|
};
|
|
11059
11310
|
}())();
|
|
11060
11311
|
|
|
11061
11312
|
case 3:
|
|
11062
|
-
|
|
11313
|
+
_context6.next = 7;
|
|
11063
11314
|
break;
|
|
11064
11315
|
|
|
11065
11316
|
case 5:
|
|
11066
|
-
|
|
11317
|
+
_context6.next = 7;
|
|
11067
11318
|
return controller.pipeline( /*#__PURE__*/function () {
|
|
11068
|
-
var
|
|
11069
|
-
return _regeneratorRuntime().wrap(function
|
|
11319
|
+
var _ref6 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(s) {
|
|
11320
|
+
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
11070
11321
|
while (1) {
|
|
11071
|
-
switch (
|
|
11322
|
+
switch (_context5.prev = _context5.next) {
|
|
11072
11323
|
case 0:
|
|
11073
11324
|
s.goodsListState.selectedGoodIndex = s.goodsListState.selectedGoodIndex.filter(function (e) {
|
|
11074
11325
|
return e !== record.$index;
|
|
@@ -11077,58 +11328,58 @@ var useRowSelection = (function () {
|
|
|
11077
11328
|
|
|
11078
11329
|
case 2:
|
|
11079
11330
|
case "end":
|
|
11080
|
-
return
|
|
11331
|
+
return _context5.stop();
|
|
11081
11332
|
}
|
|
11082
11333
|
}
|
|
11083
|
-
},
|
|
11334
|
+
}, _callee5);
|
|
11084
11335
|
}));
|
|
11085
11336
|
|
|
11086
11337
|
return function (_x6) {
|
|
11087
|
-
return
|
|
11338
|
+
return _ref6.apply(this, arguments);
|
|
11088
11339
|
};
|
|
11089
11340
|
}())();
|
|
11090
11341
|
|
|
11091
11342
|
case 7:
|
|
11092
|
-
|
|
11343
|
+
_context6.next = 9;
|
|
11093
11344
|
return sortOut(selected);
|
|
11094
11345
|
|
|
11095
11346
|
case 9:
|
|
11096
11347
|
case "end":
|
|
11097
|
-
return
|
|
11348
|
+
return _context6.stop();
|
|
11098
11349
|
}
|
|
11099
11350
|
}
|
|
11100
|
-
},
|
|
11351
|
+
}, _callee6);
|
|
11101
11352
|
}));
|
|
11102
11353
|
|
|
11103
11354
|
return function (_x3, _x4) {
|
|
11104
|
-
return
|
|
11355
|
+
return _ref4.apply(this, arguments);
|
|
11105
11356
|
};
|
|
11106
11357
|
}(), [controller]);
|
|
11107
11358
|
var columnTitle = React.useMemo(function () {
|
|
11108
|
-
return
|
|
11359
|
+
return React.createElement(Checkbox, {
|
|
11109
11360
|
onChange: onClickSelectAll,
|
|
11110
|
-
indeterminate:
|
|
11361
|
+
indeterminate: indeterminate,
|
|
11111
11362
|
checked: isAll
|
|
11112
11363
|
});
|
|
11113
|
-
}, [goodsList, selectedRowKeys, onClickSelectAll, isAll]);
|
|
11364
|
+
}, [goodsList, selectedRowKeys, onClickSelectAll, isAll, indeterminate]);
|
|
11114
11365
|
/** 选择了商品后 调整 折扣行 和 被折扣行 */
|
|
11115
11366
|
|
|
11116
11367
|
var sortOut = React.useCallback( /*#__PURE__*/function () {
|
|
11117
|
-
var
|
|
11118
|
-
return _regeneratorRuntime().wrap(function
|
|
11368
|
+
var _ref7 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee8(selected) {
|
|
11369
|
+
return _regeneratorRuntime().wrap(function _callee8$(_context8) {
|
|
11119
11370
|
while (1) {
|
|
11120
|
-
switch (
|
|
11371
|
+
switch (_context8.prev = _context8.next) {
|
|
11121
11372
|
case 0:
|
|
11122
|
-
|
|
11373
|
+
_context8.next = 2;
|
|
11123
11374
|
return controller.wait();
|
|
11124
11375
|
|
|
11125
11376
|
case 2:
|
|
11126
|
-
|
|
11377
|
+
_context8.next = 4;
|
|
11127
11378
|
return controller.pipeline( /*#__PURE__*/function () {
|
|
11128
|
-
var
|
|
11129
|
-
return _regeneratorRuntime().wrap(function
|
|
11379
|
+
var _ref8 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7(s) {
|
|
11380
|
+
return _regeneratorRuntime().wrap(function _callee7$(_context7) {
|
|
11130
11381
|
while (1) {
|
|
11131
|
-
switch (
|
|
11382
|
+
switch (_context7.prev = _context7.next) {
|
|
11132
11383
|
case 0:
|
|
11133
11384
|
s.goodsListState.selectedGoodIndex.forEach(function ($index) {
|
|
11134
11385
|
var goods = s.goodsListState.goodsMap.get($index);
|
|
@@ -11149,27 +11400,27 @@ var useRowSelection = (function () {
|
|
|
11149
11400
|
|
|
11150
11401
|
case 1:
|
|
11151
11402
|
case "end":
|
|
11152
|
-
return
|
|
11403
|
+
return _context7.stop();
|
|
11153
11404
|
}
|
|
11154
11405
|
}
|
|
11155
|
-
},
|
|
11406
|
+
}, _callee7);
|
|
11156
11407
|
}));
|
|
11157
11408
|
|
|
11158
11409
|
return function (_x8) {
|
|
11159
|
-
return
|
|
11410
|
+
return _ref8.apply(this, arguments);
|
|
11160
11411
|
};
|
|
11161
11412
|
}())();
|
|
11162
11413
|
|
|
11163
11414
|
case 4:
|
|
11164
11415
|
case "end":
|
|
11165
|
-
return
|
|
11416
|
+
return _context8.stop();
|
|
11166
11417
|
}
|
|
11167
11418
|
}
|
|
11168
|
-
},
|
|
11419
|
+
}, _callee8);
|
|
11169
11420
|
}));
|
|
11170
11421
|
|
|
11171
11422
|
return function (_x7) {
|
|
11172
|
-
return
|
|
11423
|
+
return _ref7.apply(this, arguments);
|
|
11173
11424
|
};
|
|
11174
11425
|
}(), [controller]);
|
|
11175
11426
|
React.useEffect(function () {
|
|
@@ -11183,8 +11434,8 @@ var useRowSelection = (function () {
|
|
|
11183
11434
|
};
|
|
11184
11435
|
});
|
|
11185
11436
|
|
|
11186
|
-
var css_248z$
|
|
11187
|
-
styleInject(css_248z$
|
|
11437
|
+
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";
|
|
11438
|
+
styleInject(css_248z$7);
|
|
11188
11439
|
|
|
11189
11440
|
var GoodsList = /*#__PURE__*/function (_React$Component) {
|
|
11190
11441
|
_inherits(GoodsList, _React$Component);
|
|
@@ -11200,7 +11451,7 @@ var GoodsList = /*#__PURE__*/function (_React$Component) {
|
|
|
11200
11451
|
_createClass(GoodsList, [{
|
|
11201
11452
|
key: "render",
|
|
11202
11453
|
value: function render() {
|
|
11203
|
-
return
|
|
11454
|
+
return React.createElement(Main, _objectSpread2({}, this.props));
|
|
11204
11455
|
}
|
|
11205
11456
|
}]);
|
|
11206
11457
|
|
|
@@ -11215,6 +11466,15 @@ var Main = decorator(Form.create())(function (props) {
|
|
|
11215
11466
|
var isprefab = controller.useMemo(function (s) {
|
|
11216
11467
|
return s.model === 'prefab';
|
|
11217
11468
|
}, []);
|
|
11469
|
+
var dataSource = controller.useMemo(function (s) {
|
|
11470
|
+
return s.goodsListState.goodsList;
|
|
11471
|
+
}, []);
|
|
11472
|
+
var searchValue = controller.useMemo(function (s) {
|
|
11473
|
+
return s.goodsListState.searchValue;
|
|
11474
|
+
}, []);
|
|
11475
|
+
var dataSourceSearch = React.useMemo(function () {
|
|
11476
|
+
return controller.getGoodsSearch(dataSource, searchValue);
|
|
11477
|
+
}, [dataSource, searchValue, controller]);
|
|
11218
11478
|
/** 表格行事件 */
|
|
11219
11479
|
|
|
11220
11480
|
var _onRow = useOnRow();
|
|
@@ -11273,7 +11533,7 @@ var Main = decorator(Form.create())(function (props) {
|
|
|
11273
11533
|
}, [controller, props.form]); // 跟新 货物
|
|
11274
11534
|
|
|
11275
11535
|
React.useEffect(function () {
|
|
11276
|
-
controller.
|
|
11536
|
+
controller.run( /*#__PURE__*/function () {
|
|
11277
11537
|
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(s) {
|
|
11278
11538
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
11279
11539
|
while (1) {
|
|
@@ -11295,7 +11555,7 @@ var Main = decorator(Form.create())(function (props) {
|
|
|
11295
11555
|
return function (_x4) {
|
|
11296
11556
|
return _ref3.apply(this, arguments);
|
|
11297
11557
|
};
|
|
11298
|
-
}())
|
|
11558
|
+
}());
|
|
11299
11559
|
}, [controller, goodsList]);
|
|
11300
11560
|
/** props 产品最大数 更新 */
|
|
11301
11561
|
|
|
@@ -11369,22 +11629,22 @@ var Main = decorator(Form.create())(function (props) {
|
|
|
11369
11629
|
};
|
|
11370
11630
|
}())();
|
|
11371
11631
|
}, [controller, props.isSwitchTax]);
|
|
11372
|
-
return
|
|
11632
|
+
return React.createElement("div", {
|
|
11373
11633
|
className: "kts-invoice-operate-goods-list",
|
|
11374
11634
|
onClick: function onClick(e) {
|
|
11375
11635
|
e.stopPropagation();
|
|
11376
11636
|
}
|
|
11377
|
-
},
|
|
11637
|
+
}, React.createElement("div", {
|
|
11378
11638
|
className: "kts-invoice-operate-goods-list-able"
|
|
11379
|
-
},
|
|
11639
|
+
}, React.createElement("div", {
|
|
11380
11640
|
className: "kts-invoice-operate-goods-list-able-list"
|
|
11381
|
-
},
|
|
11641
|
+
}, React.createElement(AddRowButton, null), React.createElement(BulkMenu, null), React.createElement(Search, null)), React.createElement("div", {
|
|
11382
11642
|
className: "kts-invoice-operate-goods-list-able-extend"
|
|
11383
|
-
}, props.menuExpansion,
|
|
11643
|
+
}, props.menuExpansion, React.createElement(DescribeSwitch, null), React.createElement(TaxIncludedSwitch, null))), React.createElement("div", {
|
|
11384
11644
|
className: classnames('kts-invoice-operate-goods-list-table', {
|
|
11385
11645
|
'kts-invoice-operate-prefab': isprefab
|
|
11386
11646
|
})
|
|
11387
|
-
},
|
|
11647
|
+
}, React.createElement(TableVirtual, {
|
|
11388
11648
|
bordered: true,
|
|
11389
11649
|
size: "small",
|
|
11390
11650
|
rowKey: "$index",
|
|
@@ -11397,9 +11657,7 @@ var Main = decorator(Form.create())(function (props) {
|
|
|
11397
11657
|
row: TableRow
|
|
11398
11658
|
}
|
|
11399
11659
|
},
|
|
11400
|
-
dataSource:
|
|
11401
|
-
return s.goodsListState.goodsList;
|
|
11402
|
-
}, [controller]),
|
|
11660
|
+
dataSource: dataSourceSearch,
|
|
11403
11661
|
columns: useColumns(props.form),
|
|
11404
11662
|
rowSelection: useRowSelection(),
|
|
11405
11663
|
onRow: function onRow(record) {
|
|
@@ -11409,11 +11667,11 @@ var Main = decorator(Form.create())(function (props) {
|
|
|
11409
11667
|
}
|
|
11410
11668
|
};
|
|
11411
11669
|
}
|
|
11412
|
-
})),
|
|
11670
|
+
})), React.createElement("div", null, React.createElement(Statistics, null)));
|
|
11413
11671
|
});
|
|
11414
11672
|
|
|
11415
|
-
var css_248z$
|
|
11416
|
-
styleInject(css_248z$
|
|
11673
|
+
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";
|
|
11674
|
+
styleInject(css_248z$8);
|
|
11417
11675
|
|
|
11418
11676
|
var TextArea = Input.TextArea;
|
|
11419
11677
|
|
|
@@ -11434,7 +11692,7 @@ var Buyer = /*#__PURE__*/function (_React$Component) {
|
|
|
11434
11692
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
11435
11693
|
|
|
11436
11694
|
_this.render = function () {
|
|
11437
|
-
return
|
|
11695
|
+
return React.createElement(Main$1, _objectSpread2({}, _this.props));
|
|
11438
11696
|
};
|
|
11439
11697
|
|
|
11440
11698
|
return _this;
|
|
@@ -11465,7 +11723,7 @@ var Main$1 = decorator(Form.create())(function (props) {
|
|
|
11465
11723
|
return [{
|
|
11466
11724
|
id: 'sellerName',
|
|
11467
11725
|
label: '销售方名称',
|
|
11468
|
-
node:
|
|
11726
|
+
node: React.createElement(Input, {
|
|
11469
11727
|
readOnly: model === 'prefab',
|
|
11470
11728
|
size: "small"
|
|
11471
11729
|
}),
|
|
@@ -11478,7 +11736,7 @@ var Main$1 = decorator(Form.create())(function (props) {
|
|
|
11478
11736
|
}, {
|
|
11479
11737
|
id: 'sellerNo',
|
|
11480
11738
|
label: '销售方纳税人识别号',
|
|
11481
|
-
node:
|
|
11739
|
+
node: React.createElement(Input, {
|
|
11482
11740
|
readOnly: model === 'prefab',
|
|
11483
11741
|
size: "small"
|
|
11484
11742
|
}),
|
|
@@ -11491,7 +11749,7 @@ var Main$1 = decorator(Form.create())(function (props) {
|
|
|
11491
11749
|
}, {
|
|
11492
11750
|
id: 'sellerAddress',
|
|
11493
11751
|
label: '销售方地址及电话',
|
|
11494
|
-
node:
|
|
11752
|
+
node: React.createElement(Input, {
|
|
11495
11753
|
readOnly: model === 'prefab',
|
|
11496
11754
|
size: "small"
|
|
11497
11755
|
}),
|
|
@@ -11504,7 +11762,7 @@ var Main$1 = decorator(Form.create())(function (props) {
|
|
|
11504
11762
|
}, {
|
|
11505
11763
|
id: 'sellerBank',
|
|
11506
11764
|
label: '销售方开户行及账号',
|
|
11507
|
-
node:
|
|
11765
|
+
node: React.createElement(Input, {
|
|
11508
11766
|
readOnly: model === 'prefab',
|
|
11509
11767
|
size: "small"
|
|
11510
11768
|
}),
|
|
@@ -11530,35 +11788,35 @@ var Main$1 = decorator(Form.create())(function (props) {
|
|
|
11530
11788
|
return getFieldDecorator(e.id, e.options)(e.node);
|
|
11531
11789
|
}
|
|
11532
11790
|
}, [props.formRender]);
|
|
11533
|
-
return
|
|
11791
|
+
return React.createElement(Form, null, React.createElement("div", {
|
|
11534
11792
|
className: "kts-invoice-operate-seller"
|
|
11535
|
-
},
|
|
11793
|
+
}, React.createElement("div", {
|
|
11536
11794
|
className: "kts-invoice-operate-seller-message"
|
|
11537
|
-
},
|
|
11795
|
+
}, React.createElement("div", {
|
|
11538
11796
|
className: "kts-invoice-operate-seller-title"
|
|
11539
|
-
},
|
|
11797
|
+
}, React.createElement("label", null, "\u9500\u552E\u65B9")), React.createElement(Descriptions, {
|
|
11540
11798
|
className: "kts-invoice-operate-seller-message-list",
|
|
11541
11799
|
size: "small",
|
|
11542
11800
|
column: 1,
|
|
11543
11801
|
bordered: true
|
|
11544
11802
|
}, formItem.map(function (e, i) {
|
|
11545
|
-
return
|
|
11803
|
+
return React.createElement(Descriptions.Item, {
|
|
11546
11804
|
key: i,
|
|
11547
11805
|
label: e.label
|
|
11548
|
-
},
|
|
11549
|
-
}))),
|
|
11806
|
+
}, React.createElement(Form.Item, null, createFormItem(e)));
|
|
11807
|
+
}))), React.createElement("div", {
|
|
11550
11808
|
className: "kts-invoice-operate-seller-remarks"
|
|
11551
|
-
},
|
|
11809
|
+
}, React.createElement("div", {
|
|
11552
11810
|
className: "kts-invoice-operate-seller-title"
|
|
11553
|
-
},
|
|
11811
|
+
}, React.createElement("label", null, "\u5907\u6CE8")), React.createElement("div", {
|
|
11554
11812
|
className: "kts-invoice-operate-seller-remarks-value"
|
|
11555
11813
|
}, getFieldDecorator('remarks', {
|
|
11556
11814
|
initialValue: props.defaultsellerRemarks
|
|
11557
|
-
})(
|
|
11815
|
+
})(React.createElement(TextArea, null))))));
|
|
11558
11816
|
});
|
|
11559
11817
|
|
|
11560
|
-
var css_248z$
|
|
11561
|
-
styleInject(css_248z$
|
|
11818
|
+
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";
|
|
11819
|
+
styleInject(css_248z$9);
|
|
11562
11820
|
|
|
11563
11821
|
var Sign = decorator(Form.create())(function (props) {
|
|
11564
11822
|
var form = props.form;
|
|
@@ -11571,21 +11829,21 @@ var Sign = decorator(Form.create())(function (props) {
|
|
|
11571
11829
|
}, []); // 注册 form
|
|
11572
11830
|
|
|
11573
11831
|
controller.useForm('sign', form);
|
|
11574
|
-
return
|
|
11832
|
+
return React.createElement("div", {
|
|
11575
11833
|
className: "kts-invoice-operate-sign"
|
|
11576
|
-
},
|
|
11834
|
+
}, React.createElement(Form, _objectSpread2({}, formItemLayout), React.createElement("div", null, React.createElement(Form.Item, {
|
|
11577
11835
|
label: "\u6536\u6B3E\u4EBA"
|
|
11578
11836
|
}, getFieldDecorator('payee', {
|
|
11579
11837
|
initialValue: props.defaultPayee
|
|
11580
|
-
})(
|
|
11838
|
+
})(React.createElement(Input, {
|
|
11581
11839
|
size: "small"
|
|
11582
|
-
})))),
|
|
11840
|
+
})))), React.createElement("div", null, React.createElement(Form.Item, {
|
|
11583
11841
|
label: "\u590D\u6838\u4EBA"
|
|
11584
11842
|
}, getFieldDecorator('reviewer', {
|
|
11585
11843
|
initialValue: props.defaultReviewer
|
|
11586
|
-
})(
|
|
11844
|
+
})(React.createElement(Input, {
|
|
11587
11845
|
size: "small"
|
|
11588
|
-
})))),
|
|
11846
|
+
})))), React.createElement("div", null, React.createElement(Form.Item, {
|
|
11589
11847
|
label: "\u5F00\u7968\u4EBA"
|
|
11590
11848
|
}, getFieldDecorator('issuer', {
|
|
11591
11849
|
initialValue: props.defaultIssuer,
|
|
@@ -11593,7 +11851,7 @@ var Sign = decorator(Form.create())(function (props) {
|
|
|
11593
11851
|
required: true,
|
|
11594
11852
|
message: '请输入开票人'
|
|
11595
11853
|
}]
|
|
11596
|
-
})(
|
|
11854
|
+
})(React.createElement(Input, {
|
|
11597
11855
|
size: "small"
|
|
11598
11856
|
}))))));
|
|
11599
11857
|
});
|
|
@@ -11630,7 +11888,7 @@ var ImportBuyerButton = (function () {
|
|
|
11630
11888
|
};
|
|
11631
11889
|
}())();
|
|
11632
11890
|
}, [controller]);
|
|
11633
|
-
return
|
|
11891
|
+
return React.createElement(React.Fragment, null, controller.getBuyerList && React.createElement(Button, {
|
|
11634
11892
|
type: "link",
|
|
11635
11893
|
icon: "plus-circle",
|
|
11636
11894
|
onClick: onClick
|
|
@@ -11669,29 +11927,29 @@ var BuyerNameInput = (function (props) {
|
|
|
11669
11927
|
var content = React.useMemo(function () {
|
|
11670
11928
|
var _dataSource$recent;
|
|
11671
11929
|
|
|
11672
|
-
return
|
|
11930
|
+
return React.createElement("div", {
|
|
11673
11931
|
className: 'kts-invoice-operate-buyer-name-content'
|
|
11674
|
-
}, loading ?
|
|
11932
|
+
}, loading ? React.createElement("div", {
|
|
11675
11933
|
style: {
|
|
11676
11934
|
textAlign: 'center'
|
|
11677
11935
|
}
|
|
11678
|
-
},
|
|
11936
|
+
}, React.createElement(Spin, null)) : React.createElement(React.Fragment, null, React.createElement("div", {
|
|
11679
11937
|
className: 'kts-invoice-operate-buyer-name-content-block',
|
|
11680
11938
|
style: {
|
|
11681
11939
|
padding: '14px 10px'
|
|
11682
11940
|
}
|
|
11683
|
-
},
|
|
11941
|
+
}, React.createElement("label", {
|
|
11684
11942
|
style: {
|
|
11685
11943
|
marginBottom: 10
|
|
11686
11944
|
}
|
|
11687
|
-
}, "\u6700\u8FD1\u5F00\u5177"),
|
|
11945
|
+
}, "\u6700\u8FD1\u5F00\u5177"), React.createElement("ul", {
|
|
11688
11946
|
className: 'kts-invoice-operate-buyer-name-content-recently-issued'
|
|
11689
|
-
}, !dataSource.recent || dataSource.recent.length <= 0 ?
|
|
11947
|
+
}, !dataSource.recent || dataSource.recent.length <= 0 ? React.createElement(Empty, {
|
|
11690
11948
|
image: Empty.PRESENTED_IMAGE_SIMPLE
|
|
11691
11949
|
}) : (_dataSource$recent = dataSource.recent) === null || _dataSource$recent === void 0 ? void 0 : _dataSource$recent.map(function (e, i) {
|
|
11692
11950
|
var _dataSource$recent$le, _dataSource$recent2;
|
|
11693
11951
|
|
|
11694
|
-
return
|
|
11952
|
+
return React.createElement("li", {
|
|
11695
11953
|
key: i,
|
|
11696
11954
|
onClick: function onClick() {
|
|
11697
11955
|
onClickItem(e);
|
|
@@ -11699,37 +11957,37 @@ var BuyerNameInput = (function (props) {
|
|
|
11699
11957
|
style: {
|
|
11700
11958
|
marginBottom: interval(i, (_dataSource$recent$le = (_dataSource$recent2 = dataSource.recent) === null || _dataSource$recent2 === void 0 ? void 0 : _dataSource$recent2.length) !== null && _dataSource$recent$le !== void 0 ? _dataSource$recent$le : 0)
|
|
11701
11959
|
}
|
|
11702
|
-
},
|
|
11703
|
-
}))),
|
|
11960
|
+
}, React.createElement(MyTag, null, e.buyerName));
|
|
11961
|
+
}))), React.createElement(Divider, {
|
|
11704
11962
|
style: {
|
|
11705
11963
|
margin: "0 6px"
|
|
11706
11964
|
}
|
|
11707
|
-
}),
|
|
11965
|
+
}), React.createElement("div", {
|
|
11708
11966
|
className: 'kts-invoice-operate-buyer-name-content-block',
|
|
11709
11967
|
style: {
|
|
11710
11968
|
padding: '14px 10px 4px'
|
|
11711
11969
|
}
|
|
11712
|
-
},
|
|
11970
|
+
}, React.createElement("label", {
|
|
11713
11971
|
style: {
|
|
11714
11972
|
padding: '0 10px'
|
|
11715
11973
|
}
|
|
11716
|
-
}, "\u9009\u62E9\u516C\u53F8"),
|
|
11974
|
+
}, "\u9009\u62E9\u516C\u53F8"), React.createElement("div", {
|
|
11717
11975
|
style: {
|
|
11718
11976
|
maxHeight: 200,
|
|
11719
11977
|
overflow: "auto"
|
|
11720
11978
|
}
|
|
11721
|
-
}, !dataSource.list || dataSource.list.length <= 0 ?
|
|
11979
|
+
}, !dataSource.list || dataSource.list.length <= 0 ? React.createElement(Empty, {
|
|
11722
11980
|
image: Empty.PRESENTED_IMAGE_SIMPLE
|
|
11723
11981
|
}) : dataSource.list.map(function (e, i) {
|
|
11724
|
-
return
|
|
11982
|
+
return React.createElement("ul", {
|
|
11725
11983
|
key: i,
|
|
11726
11984
|
onClick: function onClick() {
|
|
11727
11985
|
onClickItem(e);
|
|
11728
11986
|
},
|
|
11729
11987
|
className: 'kts-invoice-operate-buyer-name-content-select-company'
|
|
11730
|
-
},
|
|
11988
|
+
}, React.createElement("li", {
|
|
11731
11989
|
title: e.buyerName
|
|
11732
|
-
}, e.buyerName),
|
|
11990
|
+
}, e.buyerName), React.createElement("li", {
|
|
11733
11991
|
title: e.buyerNo
|
|
11734
11992
|
}, e.buyerNo));
|
|
11735
11993
|
})))));
|
|
@@ -11770,7 +12028,7 @@ var BuyerNameInput = (function (props) {
|
|
|
11770
12028
|
}, [visible, props.value]);
|
|
11771
12029
|
|
|
11772
12030
|
if (model === 'prefab' || !autoContainer) {
|
|
11773
|
-
return
|
|
12031
|
+
return React.createElement(Input, {
|
|
11774
12032
|
size: "small",
|
|
11775
12033
|
autoComplete: "off",
|
|
11776
12034
|
value: props.value,
|
|
@@ -11781,14 +12039,14 @@ var BuyerNameInput = (function (props) {
|
|
|
11781
12039
|
});
|
|
11782
12040
|
}
|
|
11783
12041
|
|
|
11784
|
-
return
|
|
12042
|
+
return React.createElement(Popover, {
|
|
11785
12043
|
onVisibleChange: setVisible,
|
|
11786
12044
|
overlayClassName: 'kts-invoice-operate-buyer-name-popover',
|
|
11787
12045
|
placement: "bottomLeft",
|
|
11788
12046
|
trigger: "click",
|
|
11789
12047
|
visible: visible,
|
|
11790
12048
|
content: content
|
|
11791
|
-
},
|
|
12049
|
+
}, React.createElement(Input, {
|
|
11792
12050
|
size: "small",
|
|
11793
12051
|
autoComplete: "off",
|
|
11794
12052
|
value: props.value,
|
|
@@ -11866,7 +12124,7 @@ function useDataSource() {
|
|
|
11866
12124
|
}
|
|
11867
12125
|
|
|
11868
12126
|
function MyTag(props) {
|
|
11869
|
-
return
|
|
12127
|
+
return React.createElement("span", {
|
|
11870
12128
|
className: 'kts-invoice-operate-buyer-name-content-tag',
|
|
11871
12129
|
title: props.children
|
|
11872
12130
|
}, props.children);
|
|
@@ -11880,8 +12138,8 @@ function interval(i, t) {
|
|
|
11880
12138
|
}
|
|
11881
12139
|
}
|
|
11882
12140
|
|
|
11883
|
-
var css_248z$
|
|
11884
|
-
styleInject(css_248z$
|
|
12141
|
+
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";
|
|
12142
|
+
styleInject(css_248z$a);
|
|
11885
12143
|
|
|
11886
12144
|
var Text$6 = Typography.Text;
|
|
11887
12145
|
|
|
@@ -11902,7 +12160,7 @@ var Buyer$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
11902
12160
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
11903
12161
|
|
|
11904
12162
|
_this.render = function () {
|
|
11905
|
-
return
|
|
12163
|
+
return React.createElement(Main$2, _objectSpread2({}, _this.props));
|
|
11906
12164
|
};
|
|
11907
12165
|
|
|
11908
12166
|
return _this;
|
|
@@ -11933,7 +12191,7 @@ var Main$2 = decorator(Form.create())(function (props) {
|
|
|
11933
12191
|
return [{
|
|
11934
12192
|
id: 'buyerName',
|
|
11935
12193
|
label: '购买方名称',
|
|
11936
|
-
node:
|
|
12194
|
+
node: React.createElement(Input, {
|
|
11937
12195
|
size: "small",
|
|
11938
12196
|
autoComplete: "off",
|
|
11939
12197
|
readOnly: model === 'prefab'
|
|
@@ -11947,7 +12205,7 @@ var Main$2 = decorator(Form.create())(function (props) {
|
|
|
11947
12205
|
}, {
|
|
11948
12206
|
id: 'buyerNo',
|
|
11949
12207
|
label: '购买方纳税人识别号',
|
|
11950
|
-
node:
|
|
12208
|
+
node: React.createElement(Input, {
|
|
11951
12209
|
size: "small",
|
|
11952
12210
|
autoComplete: "off",
|
|
11953
12211
|
readOnly: model === 'prefab'
|
|
@@ -11961,7 +12219,7 @@ var Main$2 = decorator(Form.create())(function (props) {
|
|
|
11961
12219
|
}, {
|
|
11962
12220
|
id: 'buyerAddress',
|
|
11963
12221
|
label: '购买方地址及电话',
|
|
11964
|
-
node:
|
|
12222
|
+
node: React.createElement(Input, {
|
|
11965
12223
|
size: "small",
|
|
11966
12224
|
autoComplete: "off",
|
|
11967
12225
|
readOnly: model === 'prefab'
|
|
@@ -11975,7 +12233,7 @@ var Main$2 = decorator(Form.create())(function (props) {
|
|
|
11975
12233
|
}, {
|
|
11976
12234
|
id: 'buyerBank',
|
|
11977
12235
|
label: '购买方开户行及账号',
|
|
11978
|
-
node:
|
|
12236
|
+
node: React.createElement(Input, {
|
|
11979
12237
|
size: "small",
|
|
11980
12238
|
autoComplete: "off",
|
|
11981
12239
|
readOnly: model === 'prefab'
|
|
@@ -11997,7 +12255,7 @@ var Main$2 = decorator(Form.create())(function (props) {
|
|
|
11997
12255
|
if (e.options.rules.some(function (e) {
|
|
11998
12256
|
return e.required;
|
|
11999
12257
|
})) {
|
|
12000
|
-
return
|
|
12258
|
+
return React.createElement(React.Fragment, null, React.createElement(Text$6, {
|
|
12001
12259
|
type: "danger"
|
|
12002
12260
|
}, "*"), e.label);
|
|
12003
12261
|
} else {
|
|
@@ -12007,29 +12265,29 @@ var Main$2 = decorator(Form.create())(function (props) {
|
|
|
12007
12265
|
return e.label;
|
|
12008
12266
|
}
|
|
12009
12267
|
}, []);
|
|
12010
|
-
return
|
|
12268
|
+
return React.createElement(Form, null, React.createElement("div", {
|
|
12011
12269
|
className: "kts-invoice-operate-buyer"
|
|
12012
|
-
},
|
|
12270
|
+
}, React.createElement("div", {
|
|
12013
12271
|
className: "kts-invoice-operate-buyer-message"
|
|
12014
|
-
},
|
|
12272
|
+
}, React.createElement("div", {
|
|
12015
12273
|
className: "kts-invoice-operate-buyer-title"
|
|
12016
|
-
},
|
|
12274
|
+
}, React.createElement("label", null, "\u8D2D\u4E70\u65B9")), React.createElement("div", {
|
|
12017
12275
|
className: "kts-invoice-operate-buyer-message-Import"
|
|
12018
|
-
}, model !== 'prefab' &&
|
|
12276
|
+
}, model !== 'prefab' && React.createElement(ImportBuyerButton, null)), React.createElement(Descriptions, {
|
|
12019
12277
|
className: "kts-invoice-operate-buyer-message-list",
|
|
12020
12278
|
size: "small",
|
|
12021
12279
|
column: 1,
|
|
12022
12280
|
bordered: true
|
|
12023
12281
|
}, formItem.map(function (item, i) {
|
|
12024
|
-
return
|
|
12282
|
+
return React.createElement(Descriptions.Item, {
|
|
12025
12283
|
key: i,
|
|
12026
12284
|
label: getlabel(item)
|
|
12027
|
-
},
|
|
12028
|
-
}))),
|
|
12285
|
+
}, React.createElement(Form.Item, null, getFieldDecorator(item.id, item.options)(autoContainer ? item.id === 'buyerName' ? React.createElement(BuyerNameInput, null) : item.node : item.node)));
|
|
12286
|
+
}))), React.createElement("div", {
|
|
12029
12287
|
className: "kts-invoice-operate-buyer-password"
|
|
12030
|
-
},
|
|
12288
|
+
}, React.createElement("div", {
|
|
12031
12289
|
className: "kts-invoice-operate-buyer-title"
|
|
12032
|
-
},
|
|
12290
|
+
}, React.createElement("label", null, "\u5BC6\u7801\u533A")), React.createElement("div", null))));
|
|
12033
12291
|
});
|
|
12034
12292
|
|
|
12035
12293
|
var ImportBuyerDrawer = (function () {
|
|
@@ -12063,7 +12321,7 @@ var ImportBuyerDrawer = (function () {
|
|
|
12063
12321
|
};
|
|
12064
12322
|
}())();
|
|
12065
12323
|
}, [controller]);
|
|
12066
|
-
return
|
|
12324
|
+
return React.createElement(Drawer, {
|
|
12067
12325
|
title: "\u8D2D\u65B9\u5217\u8868",
|
|
12068
12326
|
placement: "right",
|
|
12069
12327
|
// closable={false}
|
|
@@ -12071,7 +12329,7 @@ var ImportBuyerDrawer = (function () {
|
|
|
12071
12329
|
width: 983,
|
|
12072
12330
|
onClose: onClose,
|
|
12073
12331
|
visible: visible
|
|
12074
|
-
}, topExpand,
|
|
12332
|
+
}, topExpand, React.createElement(DrawerBody$1, null));
|
|
12075
12333
|
});
|
|
12076
12334
|
|
|
12077
12335
|
var DrawerBody$1 = function DrawerBody() {
|
|
@@ -12092,7 +12350,7 @@ var DrawerBody$1 = function DrawerBody() {
|
|
|
12092
12350
|
}
|
|
12093
12351
|
});
|
|
12094
12352
|
}, [controller]);
|
|
12095
|
-
return
|
|
12353
|
+
return React.createElement(Table, {
|
|
12096
12354
|
bordered: true,
|
|
12097
12355
|
size: "small",
|
|
12098
12356
|
columns: columns,
|
|
@@ -12193,7 +12451,7 @@ var ImportGoodsDrawer = (function () {
|
|
|
12193
12451
|
};
|
|
12194
12452
|
}())();
|
|
12195
12453
|
}, [controller]);
|
|
12196
|
-
return
|
|
12454
|
+
return React.createElement(Drawer, {
|
|
12197
12455
|
title: "\u5546\u54C1\u5217\u8868",
|
|
12198
12456
|
placement: "right",
|
|
12199
12457
|
// closable={false}
|
|
@@ -12201,11 +12459,11 @@ var ImportGoodsDrawer = (function () {
|
|
|
12201
12459
|
width: 983,
|
|
12202
12460
|
onClose: onClose,
|
|
12203
12461
|
visible: visible
|
|
12204
|
-
}, topExpand &&
|
|
12462
|
+
}, topExpand && React.createElement("div", {
|
|
12205
12463
|
style: {
|
|
12206
12464
|
marginBottom: 10
|
|
12207
12465
|
}
|
|
12208
|
-
}, topExpand),
|
|
12466
|
+
}, topExpand), React.createElement(DrawerBody$2, null));
|
|
12209
12467
|
});
|
|
12210
12468
|
|
|
12211
12469
|
var DrawerBody$2 = function DrawerBody() {
|
|
@@ -12227,7 +12485,7 @@ var DrawerBody$2 = function DrawerBody() {
|
|
|
12227
12485
|
}
|
|
12228
12486
|
});
|
|
12229
12487
|
}, [controller]);
|
|
12230
|
-
return
|
|
12488
|
+
return React.createElement(Table, {
|
|
12231
12489
|
bordered: true,
|
|
12232
12490
|
size: "small",
|
|
12233
12491
|
columns: columns,
|
|
@@ -12436,8 +12694,8 @@ function cutStr(str, L) {
|
|
|
12436
12694
|
}
|
|
12437
12695
|
}
|
|
12438
12696
|
|
|
12439
|
-
var css_248z$
|
|
12440
|
-
styleInject(css_248z$
|
|
12697
|
+
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";
|
|
12698
|
+
styleInject(css_248z$b);
|
|
12441
12699
|
|
|
12442
12700
|
var TreeNode = Tree.TreeNode;
|
|
12443
12701
|
var confirm = Modal.confirm;
|
|
@@ -12541,7 +12799,7 @@ var EndowCodeDrawer = (function () {
|
|
|
12541
12799
|
setDefaultValue(undefined);
|
|
12542
12800
|
}
|
|
12543
12801
|
}, [visible]);
|
|
12544
|
-
return
|
|
12802
|
+
return React.createElement(Drawer, {
|
|
12545
12803
|
title: "\u8D4B\u7801",
|
|
12546
12804
|
placement: "right",
|
|
12547
12805
|
destroyOnClose: true,
|
|
@@ -12549,7 +12807,7 @@ var EndowCodeDrawer = (function () {
|
|
|
12549
12807
|
width: 383,
|
|
12550
12808
|
onClose: onClose,
|
|
12551
12809
|
visible: visible
|
|
12552
|
-
}, defaultValue &&
|
|
12810
|
+
}, defaultValue && React.createElement(DrawerBody$3, {
|
|
12553
12811
|
defaultValue: defaultValue
|
|
12554
12812
|
}));
|
|
12555
12813
|
});
|
|
@@ -12689,7 +12947,7 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
12689
12947
|
};
|
|
12690
12948
|
}());
|
|
12691
12949
|
}, [actions, dataSource, readOnlyTaxRate]);
|
|
12692
|
-
return
|
|
12950
|
+
return React.createElement(Select, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
12693
12951
|
showSearch: true,
|
|
12694
12952
|
showArrow: false,
|
|
12695
12953
|
notFoundContent: null,
|
|
@@ -12697,7 +12955,7 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
12697
12955
|
onSearch: onSearch,
|
|
12698
12956
|
onChange: onChange
|
|
12699
12957
|
}), dataSource.map(function (e) {
|
|
12700
|
-
return
|
|
12958
|
+
return React.createElement(Select.Option, {
|
|
12701
12959
|
key: e.value,
|
|
12702
12960
|
value: e.value
|
|
12703
12961
|
}, e.label);
|
|
@@ -12727,14 +12985,14 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
12727
12985
|
|
|
12728
12986
|
|
|
12729
12987
|
var createTreeNode = React.useCallback(function () {
|
|
12730
|
-
if (!list) return
|
|
12988
|
+
if (!list) return React.createElement(React.Fragment, null);
|
|
12731
12989
|
return ctn(list);
|
|
12732
12990
|
|
|
12733
12991
|
function title(label) {
|
|
12734
12992
|
if (!filter) return label;
|
|
12735
12993
|
label = (filter.taxCategoryCode ? label.split(new RegExp(filter.taxCategoryCode, 'g')) : [label]).join("<span style=\"color: #1890ff;\">".concat(filter.taxCategoryCode, "</span>"));
|
|
12736
12994
|
label = (filter.val ? label.split(new RegExp(filter.val, 'g')) : [label]).join("<span style=\"color: #1890ff;\">".concat(filter.val, "</span>"));
|
|
12737
|
-
return
|
|
12995
|
+
return React.createElement("span", {
|
|
12738
12996
|
dangerouslySetInnerHTML: {
|
|
12739
12997
|
__html: label
|
|
12740
12998
|
}
|
|
@@ -12743,11 +13001,11 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
12743
13001
|
|
|
12744
13002
|
function ctn(l) {
|
|
12745
13003
|
var p = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '0';
|
|
12746
|
-
if (!l || !l.length) return [
|
|
13004
|
+
if (!l || !l.length) return [React.createElement(React.Fragment, null)];
|
|
12747
13005
|
return l.filter(function (e) {
|
|
12748
13006
|
return e.pid === p;
|
|
12749
13007
|
}).map(function (e) {
|
|
12750
|
-
return
|
|
13008
|
+
return React.createElement(TreeNode, {
|
|
12751
13009
|
title: title(e.label),
|
|
12752
13010
|
key: e.id
|
|
12753
13011
|
}, ctn(l, e.id));
|
|
@@ -12877,46 +13135,46 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
12877
13135
|
setList([]);
|
|
12878
13136
|
}
|
|
12879
13137
|
}, [visible]);
|
|
12880
|
-
return
|
|
13138
|
+
return React.createElement(React.Fragment, null, React.createElement(Input, {
|
|
12881
13139
|
readOnly: true,
|
|
12882
13140
|
value: props.value,
|
|
12883
|
-
addonAfter:
|
|
13141
|
+
addonAfter: React.createElement(Button, {
|
|
12884
13142
|
size: "small",
|
|
12885
13143
|
type: "link",
|
|
12886
13144
|
onClick: function onClick() {
|
|
12887
13145
|
setVisible(true);
|
|
12888
13146
|
}
|
|
12889
13147
|
}, "\u70B9\u51FB\u9009\u62E9")
|
|
12890
|
-
}),
|
|
13148
|
+
}), React.createElement(Drawer, {
|
|
12891
13149
|
title: "\u7A0E\u6536\u5206\u7C7B\u7F16\u7801",
|
|
12892
13150
|
visible: visible,
|
|
12893
13151
|
width: 500,
|
|
12894
13152
|
onClose: function onClose() {
|
|
12895
13153
|
setVisible(false);
|
|
12896
13154
|
}
|
|
12897
|
-
},
|
|
13155
|
+
}, React.createElement(Form, {
|
|
12898
13156
|
key: "".concat(visible)
|
|
12899
|
-
},
|
|
13157
|
+
}, React.createElement(Form.Item, {
|
|
12900
13158
|
label: "\u4EA7\u54C1\u6216\u670D\u52A1\u7B80\u79F0"
|
|
12901
|
-
},
|
|
13159
|
+
}, React.createElement(Input, {
|
|
12902
13160
|
onChange: function onChange(e) {
|
|
12903
13161
|
setFilter(_objectSpread2(_objectSpread2({}, filter), {}, {
|
|
12904
13162
|
val: e.target.value
|
|
12905
13163
|
}));
|
|
12906
13164
|
}
|
|
12907
|
-
})),
|
|
13165
|
+
})), React.createElement(Form.Item, {
|
|
12908
13166
|
label: "\u7A0E\u6536\u5206\u7C7B\u7F16\u7801"
|
|
12909
|
-
},
|
|
13167
|
+
}, React.createElement(Input, {
|
|
12910
13168
|
onChange: function onChange(e) {
|
|
12911
13169
|
setFilter(_objectSpread2(_objectSpread2({}, filter), {}, {
|
|
12912
13170
|
taxCategoryCode: e.target.value
|
|
12913
13171
|
}));
|
|
12914
13172
|
}
|
|
12915
|
-
}))), list && list.length > 0 ?
|
|
13173
|
+
}))), list && list.length > 0 ? React.createElement(Tree, {
|
|
12916
13174
|
defaultExpandAll: true,
|
|
12917
13175
|
selectedKeys: [],
|
|
12918
13176
|
onSelect: onSelect
|
|
12919
|
-
}, createTreeNode()) :
|
|
13177
|
+
}, createTreeNode()) : React.createElement("span", {
|
|
12920
13178
|
style: {
|
|
12921
13179
|
color: '#00000073'
|
|
12922
13180
|
}
|
|
@@ -13074,13 +13332,13 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
13074
13332
|
React.useEffect(function () {
|
|
13075
13333
|
if (controller.getTaxCategoryCodeList) controller.getTaxCategoryCodeList();
|
|
13076
13334
|
}, [controller]);
|
|
13077
|
-
return
|
|
13335
|
+
return React.createElement(SchemaForm, {
|
|
13078
13336
|
actions: actions,
|
|
13079
13337
|
components: _objectSpread2(_objectSpread2({}, components), {}, {
|
|
13080
13338
|
showSearch: !!controller.state.goodsListState.endowCode.getTaxCategoryCodeTree ? ShowSearch2 : ShowSearch
|
|
13081
13339
|
}),
|
|
13082
13340
|
effects: effects
|
|
13083
|
-
},
|
|
13341
|
+
}, React.createElement(FormButtonGroup, null, React.createElement(SchemaMarkupField, {
|
|
13084
13342
|
name: "taxClassificationCode",
|
|
13085
13343
|
type: "showSearch",
|
|
13086
13344
|
title: "\u7A0E\u6536\u5206\u7C7B\u7F16\u7801",
|
|
@@ -13090,12 +13348,12 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
13090
13348
|
message: '请选择税收分类编码',
|
|
13091
13349
|
required: true
|
|
13092
13350
|
}]
|
|
13093
|
-
}),
|
|
13351
|
+
}), React.createElement(SchemaMarkupField, {
|
|
13094
13352
|
name: "shorthand",
|
|
13095
13353
|
type: "string",
|
|
13096
13354
|
default: getShorthand(defaultValue === null || defaultValue === void 0 ? void 0 : defaultValue.itemName),
|
|
13097
13355
|
title: "\u5546\u54C1\u548C\u670D\u52A1\u5206\u7C7B\u7B80\u79F0"
|
|
13098
|
-
}),
|
|
13356
|
+
}), React.createElement(SchemaMarkupField, {
|
|
13099
13357
|
name: "taxRate",
|
|
13100
13358
|
type: "string",
|
|
13101
13359
|
title: "\u7A0E\u7387",
|
|
@@ -13108,7 +13366,7 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
13108
13366
|
message: '请选择税率',
|
|
13109
13367
|
required: true
|
|
13110
13368
|
}]
|
|
13111
|
-
}), taxRate === 0 &&
|
|
13369
|
+
}), taxRate === 0 && React.createElement(SchemaMarkupField, {
|
|
13112
13370
|
name: "taxFreeType",
|
|
13113
13371
|
type: "string",
|
|
13114
13372
|
title: "\u514D\u7A0E\u7C7B\u578B",
|
|
@@ -13118,7 +13376,7 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
13118
13376
|
message: '请选择免税类型',
|
|
13119
13377
|
required: true
|
|
13120
13378
|
}]
|
|
13121
|
-
}),
|
|
13379
|
+
}), React.createElement(SchemaMarkupField, {
|
|
13122
13380
|
name: "favouredPolicyMark",
|
|
13123
13381
|
type: "number",
|
|
13124
13382
|
title: "\u662F\u5426\u4EAB\u53D7\u4F18\u60E0\u653F\u7B56",
|
|
@@ -13134,7 +13392,7 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
13134
13392
|
message: '请选择是否享受优惠政策',
|
|
13135
13393
|
required: true
|
|
13136
13394
|
}]
|
|
13137
|
-
}), favouredPolicyMark === 1 &&
|
|
13395
|
+
}), favouredPolicyMark === 1 && React.createElement(SchemaMarkupField, {
|
|
13138
13396
|
name: "favouredPolicyName",
|
|
13139
13397
|
type: "string",
|
|
13140
13398
|
title: "\u4F18\u60E0\u653F\u7B56\u7C7B\u578B",
|
|
@@ -13144,14 +13402,14 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
13144
13402
|
message: '请选择是否享受优惠政策',
|
|
13145
13403
|
required: true
|
|
13146
13404
|
}]
|
|
13147
|
-
})),
|
|
13405
|
+
})), React.createElement("span", {
|
|
13148
13406
|
className: "kts-invoice-operate-goods-endow-code-button-list"
|
|
13149
|
-
},
|
|
13407
|
+
}, React.createElement(Button, {
|
|
13150
13408
|
onClick: function onClick() {
|
|
13151
13409
|
actions.submit(onSubmit);
|
|
13152
13410
|
},
|
|
13153
13411
|
type: "primary"
|
|
13154
|
-
}, "\u786E\u5B9A"),
|
|
13412
|
+
}, "\u786E\u5B9A"), React.createElement(Button, {
|
|
13155
13413
|
onClick: function onClick() {
|
|
13156
13414
|
controller.pipeline( /*#__PURE__*/function () {
|
|
13157
13415
|
var _ref14 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee14(s) {
|
|
@@ -13320,7 +13578,7 @@ var AddComparisonDrawer = decorator(Form.create())(function (props) {
|
|
|
13320
13578
|
}));
|
|
13321
13579
|
}
|
|
13322
13580
|
}, [good]);
|
|
13323
|
-
return
|
|
13581
|
+
return React.createElement(Drawer, {
|
|
13324
13582
|
width: 500,
|
|
13325
13583
|
onClose: onClose,
|
|
13326
13584
|
placement: "right",
|
|
@@ -13335,82 +13593,82 @@ var AddComparisonDrawer = decorator(Form.create())(function (props) {
|
|
|
13335
13593
|
display: 'flex',
|
|
13336
13594
|
flexDirection: 'column'
|
|
13337
13595
|
}
|
|
13338
|
-
},
|
|
13596
|
+
}, React.createElement(Form, {
|
|
13339
13597
|
layout: "vertical",
|
|
13340
13598
|
style: {
|
|
13341
13599
|
flex: 1
|
|
13342
13600
|
}
|
|
13343
|
-
},
|
|
13601
|
+
}, React.createElement(Row, {
|
|
13344
13602
|
gutter: [8, 8]
|
|
13345
|
-
},
|
|
13603
|
+
}, React.createElement(Col, {
|
|
13346
13604
|
span: 12
|
|
13347
|
-
}, getFieldDecorator('itemCode', {})(
|
|
13605
|
+
}, getFieldDecorator('itemCode', {})(React.createElement(Form.Item, {
|
|
13348
13606
|
label: "\u6211\u65B9\u5546\u54C1\u7F16\u7801"
|
|
13349
|
-
},
|
|
13607
|
+
}, React.createElement(Input, null)))), React.createElement(Col, {
|
|
13350
13608
|
span: 12
|
|
13351
|
-
}, getFieldDecorator('itemCodeOther', {})(
|
|
13609
|
+
}, getFieldDecorator('itemCodeOther', {})(React.createElement(Form.Item, {
|
|
13352
13610
|
label: "\u5BF9\u65B9\u5546\u54C1\u7F16\u7801"
|
|
13353
|
-
},
|
|
13611
|
+
}, React.createElement(Input, null)))), React.createElement(Col, {
|
|
13354
13612
|
span: 12
|
|
13355
13613
|
}, getFieldDecorator('itemName', {
|
|
13356
13614
|
rules: [{
|
|
13357
13615
|
required: true,
|
|
13358
13616
|
message: "请输入我方商品名称"
|
|
13359
13617
|
}]
|
|
13360
|
-
})(
|
|
13618
|
+
})(React.createElement(Form.Item, {
|
|
13361
13619
|
label: "\u6211\u65B9\u5546\u54C1\u540D\u79F0"
|
|
13362
|
-
},
|
|
13620
|
+
}, React.createElement(Input, null)))), React.createElement(Col, {
|
|
13363
13621
|
span: 12
|
|
13364
13622
|
}, getFieldDecorator('itemNameOther', {
|
|
13365
13623
|
rules: [{
|
|
13366
13624
|
required: true,
|
|
13367
13625
|
message: "请输入对方商品名称"
|
|
13368
13626
|
}]
|
|
13369
|
-
})(
|
|
13627
|
+
})(React.createElement(Form.Item, {
|
|
13370
13628
|
label: "\u5BF9\u65B9\u5546\u54C1\u540D\u79F0"
|
|
13371
|
-
},
|
|
13629
|
+
}, React.createElement(Input, null)))), React.createElement(Col, {
|
|
13372
13630
|
span: 12
|
|
13373
|
-
},
|
|
13631
|
+
}, React.createElement(Form.Item, {
|
|
13374
13632
|
label: "\u6211\u65B9\u89C4\u683C\u578B\u53F7"
|
|
13375
|
-
},
|
|
13633
|
+
}, React.createElement(Input, null))), React.createElement(Col, {
|
|
13376
13634
|
span: 12
|
|
13377
13635
|
}, getFieldDecorator('itemModelNameOther', {
|
|
13378
13636
|
rules: [{
|
|
13379
13637
|
required: true,
|
|
13380
13638
|
message: "请输入对方规格型号"
|
|
13381
13639
|
}]
|
|
13382
|
-
})(
|
|
13640
|
+
})(React.createElement(Form.Item, {
|
|
13383
13641
|
label: "\u5BF9\u65B9\u89C4\u683C\u578B\u53F7"
|
|
13384
|
-
},
|
|
13642
|
+
}, React.createElement(Input, null)))), React.createElement(Col, {
|
|
13385
13643
|
span: 12
|
|
13386
13644
|
}, getFieldDecorator('unit', {
|
|
13387
13645
|
rules: [{
|
|
13388
13646
|
required: true,
|
|
13389
13647
|
message: "请输入对方规格型号"
|
|
13390
13648
|
}]
|
|
13391
|
-
})(
|
|
13649
|
+
})(React.createElement(Form.Item, {
|
|
13392
13650
|
label: "\u6211\u65B9\u8BA1\u91CF\u5355\u4F4D"
|
|
13393
|
-
},
|
|
13651
|
+
}, React.createElement(Input, null)))), React.createElement(Col, {
|
|
13394
13652
|
span: 12
|
|
13395
13653
|
}, getFieldDecorator('unitOther', {
|
|
13396
13654
|
rules: [{
|
|
13397
13655
|
required: true,
|
|
13398
13656
|
message: "请输入对方计量单位"
|
|
13399
13657
|
}]
|
|
13400
|
-
})(
|
|
13658
|
+
})(React.createElement(Form.Item, {
|
|
13401
13659
|
label: "\u5BF9\u65B9\u8BA1\u91CF\u5355\u4F4D"
|
|
13402
|
-
},
|
|
13660
|
+
}, React.createElement(Input, null)))), React.createElement(Col, {
|
|
13403
13661
|
span: 24
|
|
13404
|
-
}, getFieldDecorator('isUpdate', {})(
|
|
13662
|
+
}, getFieldDecorator('isUpdate', {})(React.createElement(Form.Item, null, React.createElement(Checkbox, null, "\u66F4\u65B0\u5230\u5546\u54C1\u5BF9\u7167\u8868\u4E2D")))))), React.createElement("div", {
|
|
13405
13663
|
style: {
|
|
13406
13664
|
display: 'flex',
|
|
13407
13665
|
justifyContent: 'flex-end',
|
|
13408
13666
|
gap: 10
|
|
13409
13667
|
}
|
|
13410
|
-
},
|
|
13668
|
+
}, React.createElement(Button, {
|
|
13411
13669
|
type: "primary",
|
|
13412
13670
|
onClick: onSubmit
|
|
13413
|
-
}, "\u63D0\u4EA4"),
|
|
13671
|
+
}, "\u63D0\u4EA4"), React.createElement(Button, {
|
|
13414
13672
|
onClick: onClose
|
|
13415
13673
|
}, "\u53D6\u6D88")));
|
|
13416
13674
|
});
|
|
@@ -13428,7 +13686,7 @@ function validateFields$1(form) {
|
|
|
13428
13686
|
|
|
13429
13687
|
/** 发票组件的上下文 */
|
|
13430
13688
|
|
|
13431
|
-
var InvoiceContext =
|
|
13689
|
+
var InvoiceContext = React.createContext(undefined);
|
|
13432
13690
|
|
|
13433
13691
|
var Invoice = /*#__PURE__*/function (_React$PureComponent) {
|
|
13434
13692
|
_inherits(Invoice, _React$PureComponent);
|
|
@@ -13460,7 +13718,7 @@ var Invoice = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
13460
13718
|
|
|
13461
13719
|
/** 获取控制器钩子 */
|
|
13462
13720
|
function render() {
|
|
13463
|
-
return
|
|
13721
|
+
return React.createElement(Main$3, _objectSpread2({}, this.props));
|
|
13464
13722
|
}
|
|
13465
13723
|
}]);
|
|
13466
13724
|
|
|
@@ -13492,22 +13750,22 @@ var Main$3 = function Main(props) {
|
|
|
13492
13750
|
React.useEffect(function () {
|
|
13493
13751
|
setKey(key + 1);
|
|
13494
13752
|
}, [controller]);
|
|
13495
|
-
return
|
|
13753
|
+
return React.createElement(InvoiceContext.Provider, {
|
|
13496
13754
|
key: key,
|
|
13497
13755
|
value: controller
|
|
13498
|
-
},
|
|
13756
|
+
}, React.createElement("div", {
|
|
13499
13757
|
className: "kts-invoice-operate"
|
|
13500
|
-
}, props.invoiceHeader ||
|
|
13758
|
+
}, props.invoiceHeader || React.createElement(InvoiceHeader, null)
|
|
13501
13759
|
/** 发票头 */
|
|
13502
|
-
, props.buyer ||
|
|
13760
|
+
, props.buyer || React.createElement(Buyer$1, null)
|
|
13503
13761
|
/** 购买方 */
|
|
13504
|
-
, props.goodsList ||
|
|
13762
|
+
, props.goodsList || React.createElement(GoodsList, null)
|
|
13505
13763
|
/** 货物列表 */
|
|
13506
|
-
, props.seller ||
|
|
13764
|
+
, props.seller || React.createElement(Buyer, null)
|
|
13507
13765
|
/** 销售方 */
|
|
13508
|
-
, props.sign ||
|
|
13766
|
+
, props.sign || React.createElement(Sign, null)
|
|
13509
13767
|
/** 落款 */
|
|
13510
|
-
, props.footExpand),
|
|
13768
|
+
, props.footExpand), React.createElement(ImportBuyerDrawer, null), React.createElement(ImportGoodsDrawer, null), React.createElement(EndowCodeDrawer, null), React.createElement(AddComparisonDrawer, null));
|
|
13511
13769
|
};
|
|
13512
13770
|
|
|
13513
13771
|
export { Invoice, InvoiceController };
|