kts-component-invoice-operate 1.2.22 → 1.2.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/index.d.ts +2 -0
- package/dist/Invoice/InvoiceController/fns/getGoodsSearch.d.ts +2 -0
- package/dist/Invoice/InvoiceController/index.d.ts +3 -0
- package/dist/Invoice/_test/buyerNameSearch/index.d.ts +1 -0
- package/dist/Invoice/_test/deduction/index.d.ts +1 -0
- package/dist/Invoice/_test/draft/index.d.ts +1 -0
- package/dist/Invoice/_test/easiest/index.d.ts +1 -0
- package/dist/Invoice/_test/endowCode/index.d.ts +1 -0
- package/dist/Invoice/_test/goodsMenuExpand/index.d.ts +1 -0
- package/dist/Invoice/_test/importBuyer/index.d.ts +1 -0
- package/dist/Invoice/_test/importGoods/index.d.ts +1 -0
- package/dist/Invoice/_test/invoiceType/index.d.ts +1 -0
- package/dist/Invoice/_test/isInvoiceNo/index.d.ts +1 -0
- package/dist/Invoice/_test/replaceHead/index.d.ts +1 -0
- package/dist/Invoice/_test/retrieveData/index.d.ts +1 -0
- package/dist/Invoice/_test/seller/index.d.ts +1 -0
- package/dist/Invoice/_test/setDataSource/index.d.ts +1 -0
- package/dist/Invoice/_test/unit/index.d.ts +1 -0
- package/dist/Invoice/ui/Buyer/ui/BuyerNameInput/index.d.ts +1 -0
- package/dist/Invoice/ui/Buyer/ui/ImportBuyerButton/index.d.ts +1 -0
- package/dist/Invoice/ui/EndowCodeDrawer/index.d.ts +1 -0
- package/dist/Invoice/ui/GoodsList/hook/useColumns/ui/RowEditButton/index.d.ts +1 -0
- package/dist/Invoice/ui/GoodsList/hook/useColumns/ui/RowMenu/hook/useAddDiscount/index.d.ts +1 -0
- package/dist/Invoice/ui/GoodsList/hook/useColumns/ui/RowMenu/hook/useDelItem/index.d.ts +1 -0
- package/dist/Invoice/ui/GoodsList/hook/useColumns/ui/RowMenu/hook/useEndowCode/index.d.ts +1 -0
- package/dist/Invoice/ui/GoodsList/hook/useColumns/ui/RowMenu/index.d.ts +1 -0
- package/dist/Invoice/ui/GoodsList/hook/useColumns/ui/RowSaveButton/index.d.ts +1 -0
- package/dist/Invoice/ui/GoodsList/hook/useRowSelection/index.d.ts +1 -0
- package/dist/Invoice/ui/GoodsList/ui/AddRowButton/index.d.ts +1 -0
- package/dist/Invoice/ui/GoodsList/ui/DelRowButton/index.d.ts +1 -0
- package/dist/Invoice/ui/GoodsList/ui/EndowCodeButton/index.d.ts +1 -0
- package/dist/Invoice/ui/GoodsList/ui/Search/index.d.ts +3 -0
- package/dist/Invoice/ui/GoodsList/ui/Statistics/index.d.ts +1 -0
- package/dist/Invoice/ui/GoodsList/ui/TableRow/index.d.ts +1 -0
- package/dist/Invoice/ui/GoodsList/ui/TableVirtual/index.d.ts +1 -0
- package/dist/Invoice/ui/GoodsList/ui/TaxIncludedSwitch/index.d.ts +1 -0
- package/dist/Invoice/ui/ImportBuyerDrawer/index.d.ts +1 -0
- package/dist/Invoice/ui/ImportGoodsDrawer/index.d.ts +1 -0
- package/dist/index.esm.js +566 -333
- package/dist/index.js +566 -333
- package/docs/index.md +1 -1
- package/docs-dist/404.html +1 -1
- package/docs-dist/index.html +1 -1
- package/docs-dist/static/magnifier.2b26be6e.svg +1 -0
- package/docs-dist/umi.css +20 -20
- package/docs-dist/umi.js +1 -1
- package/package.json +1 -1
- package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/index.ts +4 -1
- package/src/Invoice/InvoiceController/fns/getGoodsSearch.ts +17 -0
- package/src/Invoice/InvoiceController/index.ts +4 -0
- package/src/Invoice/ui/GoodsList/hook/useColumns/index.tsx +27 -4
- package/src/Invoice/ui/GoodsList/hook/useRowSelection/index.tsx +34 -8
- package/src/Invoice/ui/GoodsList/index.less +41 -33
- package/src/Invoice/ui/GoodsList/index.tsx +11 -1
- package/src/Invoice/ui/GoodsList/ui/AddRowButton/index.tsx +5 -2
- package/src/Invoice/ui/GoodsList/ui/Search/icon/magnifier.svg +1 -0
- package/src/Invoice/ui/GoodsList/ui/Search/index.less +10 -0
- package/src/Invoice/ui/GoodsList/ui/Search/index.tsx +47 -0
package/dist/index.esm.js
CHANGED
|
@@ -985,6 +985,7 @@ var GoodsListState = /*#__PURE__*/_createClass(function GoodsListState() {
|
|
|
985
985
|
this.unitList = [];
|
|
986
986
|
this.defaultRate = 3;
|
|
987
987
|
this.taxRateList = [0, 3, 5, 6, 9, 13];
|
|
988
|
+
this.searchValue = '';
|
|
988
989
|
this.goodsList = [];
|
|
989
990
|
this.goodsMap = new Map();
|
|
990
991
|
this.goodsMenuExpand = [];
|
|
@@ -1509,6 +1510,23 @@ var validateFields = function validateFields(form) {
|
|
|
1509
1510
|
});
|
|
1510
1511
|
};
|
|
1511
1512
|
|
|
1513
|
+
function getGoodsSearch(goodsList, search) {
|
|
1514
|
+
if (!search) return goodsList;
|
|
1515
|
+
return goodsList.filter(function (e) {
|
|
1516
|
+
var _e$itemName$indexOf, _e$itemName, _e$itemModelName$inde, _e$itemModelName;
|
|
1517
|
+
|
|
1518
|
+
if (((_e$itemName$indexOf = (_e$itemName = e.itemName) === null || _e$itemName === void 0 ? void 0 : _e$itemName.indexOf(search)) !== null && _e$itemName$indexOf !== void 0 ? _e$itemName$indexOf : -1) >= 0) {
|
|
1519
|
+
return true;
|
|
1520
|
+
} else if (((_e$itemModelName$inde = (_e$itemModelName = e.itemModelName) === null || _e$itemModelName === void 0 ? void 0 : _e$itemModelName.indexOf(search)) !== null && _e$itemModelName$inde !== void 0 ? _e$itemModelName$inde : -1) >= 0) {
|
|
1521
|
+
return true;
|
|
1522
|
+
} else if ("".concat(e.lineAmountIncludeTax).indexOf(search) >= 0) {
|
|
1523
|
+
return true;
|
|
1524
|
+
} else {
|
|
1525
|
+
return false;
|
|
1526
|
+
}
|
|
1527
|
+
});
|
|
1528
|
+
}
|
|
1529
|
+
|
|
1512
1530
|
var InvoiceController = /*#__PURE__*/function (_InvoiceControllerFor) {
|
|
1513
1531
|
_inherits(InvoiceController, _InvoiceControllerFor);
|
|
1514
1532
|
|
|
@@ -1532,6 +1550,7 @@ var InvoiceController = /*#__PURE__*/function (_InvoiceControllerFor) {
|
|
|
1532
1550
|
_this.addGoodDiscount = _this.pipeline(addGoodDiscount);
|
|
1533
1551
|
_this.getGoodsList = void 0;
|
|
1534
1552
|
_this.getTaxCategoryCodeList = void 0;
|
|
1553
|
+
_this.getGoodsSearch = getGoodsSearch;
|
|
1535
1554
|
return _this;
|
|
1536
1555
|
} // ----------------- 发票头 模块相关 -----------------
|
|
1537
1556
|
|
|
@@ -1612,7 +1631,7 @@ var InvoiceHeader = decorator(Form.create())(function (props) {
|
|
|
1612
1631
|
render: function render(form) {
|
|
1613
1632
|
return form.getFieldDecorator('code', {
|
|
1614
1633
|
initialValue: props.defaultCode
|
|
1615
|
-
})(
|
|
1634
|
+
})(React.createElement(FormSpanString, null));
|
|
1616
1635
|
}
|
|
1617
1636
|
});
|
|
1618
1637
|
}
|
|
@@ -1625,7 +1644,7 @@ var InvoiceHeader = decorator(Form.create())(function (props) {
|
|
|
1625
1644
|
render: function render(form) {
|
|
1626
1645
|
return form.getFieldDecorator('no', {
|
|
1627
1646
|
initialValue: props.defaultNo
|
|
1628
|
-
})(
|
|
1647
|
+
})(React.createElement(FormSpanString, null));
|
|
1629
1648
|
}
|
|
1630
1649
|
});
|
|
1631
1650
|
}
|
|
@@ -1636,7 +1655,7 @@ var InvoiceHeader = decorator(Form.create())(function (props) {
|
|
|
1636
1655
|
render: function render(form) {
|
|
1637
1656
|
return form.getFieldDecorator('invoicingDate', {
|
|
1638
1657
|
initialValue: props.defaultInvoicingDate
|
|
1639
|
-
})(
|
|
1658
|
+
})(React.createElement(FormSpanString, null));
|
|
1640
1659
|
}
|
|
1641
1660
|
});
|
|
1642
1661
|
}
|
|
@@ -1647,7 +1666,7 @@ var InvoiceHeader = decorator(Form.create())(function (props) {
|
|
|
1647
1666
|
render: function render(form) {
|
|
1648
1667
|
return form.getFieldDecorator('defaultValidationCode', {
|
|
1649
1668
|
initialValue: props.defaultValidationCode
|
|
1650
|
-
})(
|
|
1669
|
+
})(React.createElement(FormSpanString, null));
|
|
1651
1670
|
}
|
|
1652
1671
|
});
|
|
1653
1672
|
}
|
|
@@ -1667,21 +1686,21 @@ var InvoiceHeader = decorator(Form.create())(function (props) {
|
|
|
1667
1686
|
React.useEffect(function () {
|
|
1668
1687
|
setTypeIndex(props.typeOptionIndex || 0);
|
|
1669
1688
|
}, [props.typeOption]);
|
|
1670
|
-
return
|
|
1689
|
+
return React.createElement("div", {
|
|
1671
1690
|
className: "kts-invoice-operate-invoice-header"
|
|
1672
|
-
},
|
|
1691
|
+
}, React.createElement("div", {
|
|
1673
1692
|
className: "invoice-header-title"
|
|
1674
|
-
}, title),
|
|
1693
|
+
}, title), React.createElement("div", {
|
|
1675
1694
|
className: "invoice-header-no"
|
|
1676
|
-
}, isInvoiceNo ?
|
|
1695
|
+
}, isInvoiceNo ? React.createElement("div", null, React.createElement("label", null, "\u53D1\u7968\u5355\u636E\u7F16\u53F7 :"), getFieldDecorator('id', {
|
|
1677
1696
|
initialValue: props.defaultId
|
|
1678
|
-
})(
|
|
1697
|
+
})(React.createElement(Input, {
|
|
1679
1698
|
disabled: readOnlyInvoiceNo,
|
|
1680
1699
|
style: {
|
|
1681
1700
|
width: 230
|
|
1682
1701
|
},
|
|
1683
1702
|
size: "small",
|
|
1684
|
-
suffix: controller.updateInvoiceNo &&
|
|
1703
|
+
suffix: controller.updateInvoiceNo && React.createElement(Icon, {
|
|
1685
1704
|
style: {
|
|
1686
1705
|
cursor: 'pointer'
|
|
1687
1706
|
},
|
|
@@ -1725,15 +1744,15 @@ var InvoiceHeader = decorator(Form.create())(function (props) {
|
|
|
1725
1744
|
return onClick;
|
|
1726
1745
|
}()
|
|
1727
1746
|
})
|
|
1728
|
-
}))) :
|
|
1747
|
+
}))) : React.createElement("div", {
|
|
1729
1748
|
style: {
|
|
1730
1749
|
height: 20
|
|
1731
1750
|
}
|
|
1732
|
-
}), tag &&
|
|
1751
|
+
}), tag && React.createElement(Tag, null, tag), React.createElement("div", {
|
|
1733
1752
|
className: "invoice-header-type"
|
|
1734
1753
|
}, props.typeOption ? getFieldDecorator('type', {
|
|
1735
1754
|
initialValue: typeIndex
|
|
1736
|
-
})(
|
|
1755
|
+
})(React.createElement(Select, {
|
|
1737
1756
|
size: "small",
|
|
1738
1757
|
style: {
|
|
1739
1758
|
width: 230
|
|
@@ -1742,20 +1761,20 @@ var InvoiceHeader = decorator(Form.create())(function (props) {
|
|
|
1742
1761
|
setTypeIndex(e);
|
|
1743
1762
|
}
|
|
1744
1763
|
}, props.typeOption.map(function (e, i) {
|
|
1745
|
-
return
|
|
1764
|
+
return React.createElement(Select.Option, {
|
|
1746
1765
|
key: i,
|
|
1747
1766
|
value: i
|
|
1748
1767
|
}, e.title);
|
|
1749
|
-
}))) : props.renderExpand && props.renderExpand(props.form))), props.typeOption &&
|
|
1768
|
+
}))) : props.renderExpand && props.renderExpand(props.form))), props.typeOption && React.createElement("div", {
|
|
1750
1769
|
style: {
|
|
1751
1770
|
marginTop: 10
|
|
1752
1771
|
}
|
|
1753
|
-
}, props.renderExpand && props.renderExpand(props.form)),
|
|
1772
|
+
}, props.renderExpand && props.renderExpand(props.form)), React.createElement("div", {
|
|
1754
1773
|
className: "invoice-header-property"
|
|
1755
|
-
}, _toConsumableArray(props.fieldExpand || []).map(function (e) {}),
|
|
1756
|
-
return
|
|
1774
|
+
}, _toConsumableArray(props.fieldExpand || []).map(function (e) {}), React.createElement(Row, null, fieldExpand.map(function (e) {
|
|
1775
|
+
return React.createElement(Col, {
|
|
1757
1776
|
span: 24 / fieldExpand.length
|
|
1758
|
-
},
|
|
1777
|
+
}, React.createElement("label", null, e.label), e.render(form));
|
|
1759
1778
|
}))));
|
|
1760
1779
|
});
|
|
1761
1780
|
|
|
@@ -1774,7 +1793,7 @@ var FormSpanString = /*#__PURE__*/function (_React$Component) {
|
|
|
1774
1793
|
key: "render",
|
|
1775
1794
|
value: function render() {
|
|
1776
1795
|
// return <span>{this.props.value}</span>;
|
|
1777
|
-
return
|
|
1796
|
+
return React.createElement(Input, {
|
|
1778
1797
|
size: "small",
|
|
1779
1798
|
disabled: true,
|
|
1780
1799
|
value: this.props.value
|
|
@@ -1877,12 +1896,12 @@ function TableVirtual (props) {
|
|
|
1877
1896
|
if (!table) return;
|
|
1878
1897
|
table.style.top = "".concat(pointer * rowHeight, "px");
|
|
1879
1898
|
}, [pointer, self, rowHeight]);
|
|
1880
|
-
return
|
|
1899
|
+
return React.createElement("span", {
|
|
1881
1900
|
className: "kts-invoice-operate-goods-table-virtual",
|
|
1882
1901
|
ref: function ref(e) {
|
|
1883
1902
|
setSelf(e);
|
|
1884
1903
|
}
|
|
1885
|
-
},
|
|
1904
|
+
}, React.createElement(Table, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
1886
1905
|
dataSource: dataSource
|
|
1887
1906
|
})));
|
|
1888
1907
|
}
|
|
@@ -1954,50 +1973,50 @@ var Statistics = (function () {
|
|
|
1954
1973
|
});
|
|
1955
1974
|
return sum.done().toNumber();
|
|
1956
1975
|
}, []);
|
|
1957
|
-
return
|
|
1976
|
+
return React.createElement("div", {
|
|
1958
1977
|
className: "kts-invoice-operate-goods-list-statistics"
|
|
1959
|
-
},
|
|
1978
|
+
}, React.createElement("div", {
|
|
1960
1979
|
className: "kts-invoice-operate-goods-list-statistics-row"
|
|
1961
|
-
},
|
|
1980
|
+
}, React.createElement("div", {
|
|
1962
1981
|
style: {
|
|
1963
1982
|
width: 45
|
|
1964
1983
|
}
|
|
1965
|
-
}),
|
|
1984
|
+
}), React.createElement("div", {
|
|
1966
1985
|
style: {
|
|
1967
1986
|
flex: 1
|
|
1968
1987
|
}
|
|
1969
|
-
},
|
|
1988
|
+
}, React.createElement("label", null, "\u5408\u8BA1")), React.createElement("div", {
|
|
1970
1989
|
style: {
|
|
1971
1990
|
width: 119 + 70
|
|
1972
1991
|
}
|
|
1973
|
-
},
|
|
1992
|
+
}, React.createElement("label", null, parseFloat(isTaxIncluded ? lineAmountIncludeTax : lineAmountExcludeTax).toFixed(2))), React.createElement("div", {
|
|
1974
1993
|
style: {
|
|
1975
1994
|
width: 119 + 50 + 1
|
|
1976
1995
|
}
|
|
1977
|
-
},
|
|
1996
|
+
}, React.createElement("label", null, parseFloat(taxAmount).toFixed(2)))), React.createElement("div", {
|
|
1978
1997
|
className: "kts-invoice-operate-goods-list-statistics-row"
|
|
1979
|
-
},
|
|
1998
|
+
}, React.createElement("div", {
|
|
1980
1999
|
style: {
|
|
1981
2000
|
width: 45
|
|
1982
2001
|
}
|
|
1983
|
-
}),
|
|
2002
|
+
}), React.createElement("div", {
|
|
1984
2003
|
style: {
|
|
1985
2004
|
flex: 4,
|
|
1986
2005
|
border: 'none'
|
|
1987
2006
|
}
|
|
1988
|
-
},
|
|
2007
|
+
}, React.createElement("label", null, "\u4EF7\u7A0E\u5408\u8BA1\uFF08\u5927\u5199\uFF09"), React.createElement("label", null, nzhcn.toMoney(lineAmountIncludeTax, {
|
|
1989
2008
|
outSymbol: false
|
|
1990
|
-
}))),
|
|
2009
|
+
}))), React.createElement("div", {
|
|
1991
2010
|
style: {
|
|
1992
2011
|
flex: 1,
|
|
1993
2012
|
border: 'none'
|
|
1994
2013
|
}
|
|
1995
|
-
},
|
|
2014
|
+
}, React.createElement("label", null, "\uFF08\u5C0F\u5199\uFF09")), React.createElement("div", {
|
|
1996
2015
|
style: {
|
|
1997
2016
|
flex: 3,
|
|
1998
2017
|
border: 'none'
|
|
1999
2018
|
}
|
|
2000
|
-
},
|
|
2019
|
+
}, React.createElement("label", null, parseFloat(lineAmountIncludeTax).toFixed(2)))));
|
|
2001
2020
|
});
|
|
2002
2021
|
|
|
2003
2022
|
var AddRowButton = (function () {
|
|
@@ -2010,6 +2029,11 @@ var AddRowButton = (function () {
|
|
|
2010
2029
|
var goodsNum = controller.useMemo(function (s) {
|
|
2011
2030
|
return s.goodsListState.goodsList.length;
|
|
2012
2031
|
}, []);
|
|
2032
|
+
/** 搜索条件 */
|
|
2033
|
+
|
|
2034
|
+
var searchValue = controller.useMemo(function (s) {
|
|
2035
|
+
return s.goodsListState.searchValue;
|
|
2036
|
+
}, []);
|
|
2013
2037
|
/** 产品最大数 */
|
|
2014
2038
|
|
|
2015
2039
|
var goodMax = controller.useMemo(function (s) {
|
|
@@ -2018,8 +2042,8 @@ var AddRowButton = (function () {
|
|
|
2018
2042
|
/** 按钮是否禁用 */
|
|
2019
2043
|
|
|
2020
2044
|
var disabled = React.useMemo(function () {
|
|
2021
|
-
return typeof goodMax === 'number' ? goodsNum >= goodMax :
|
|
2022
|
-
}, [goodMax, goodsNum]);
|
|
2045
|
+
return typeof goodMax === 'number' ? goodsNum >= goodMax : !!searchValue;
|
|
2046
|
+
}, [goodMax, goodsNum, searchValue]);
|
|
2023
2047
|
var onClick = React.useCallback( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
2024
2048
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
2025
2049
|
while (1) {
|
|
@@ -2081,8 +2105,8 @@ var AddRowButton = (function () {
|
|
|
2081
2105
|
}
|
|
2082
2106
|
}, _callee2);
|
|
2083
2107
|
})), [controller]);
|
|
2084
|
-
if (model === 'prefab') return
|
|
2085
|
-
return
|
|
2108
|
+
if (model === 'prefab') return React.createElement(React.Fragment, null);
|
|
2109
|
+
return React.createElement(Button, {
|
|
2086
2110
|
icon: "plus-circle",
|
|
2087
2111
|
onClick: onClick,
|
|
2088
2112
|
disabled: disabled
|
|
@@ -2125,7 +2149,7 @@ var TaxIncludedSwitch = (function () {
|
|
|
2125
2149
|
};
|
|
2126
2150
|
}())();
|
|
2127
2151
|
}, []);
|
|
2128
|
-
return
|
|
2152
|
+
return React.createElement("span", null, React.createElement("label", null, "\u542B\u7A0E:"), React.createElement(Switch, {
|
|
2129
2153
|
disabled: isSwitchTax === false,
|
|
2130
2154
|
checked: isTaxIncluded,
|
|
2131
2155
|
checkedChildren: "\u5F00",
|
|
@@ -2135,6 +2159,108 @@ var TaxIncludedSwitch = (function () {
|
|
|
2135
2159
|
}));
|
|
2136
2160
|
});
|
|
2137
2161
|
|
|
2162
|
+
var _path$1;
|
|
2163
|
+
|
|
2164
|
+
function _extends$1() { _extends$1 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1.apply(this, arguments); }
|
|
2165
|
+
|
|
2166
|
+
function SvgMagnifier(props) {
|
|
2167
|
+
return /*#__PURE__*/createElement("svg", _extends$1({
|
|
2168
|
+
className: "magnifier_svg__icon",
|
|
2169
|
+
viewBox: "0 0 1024 1024",
|
|
2170
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2171
|
+
width: 200,
|
|
2172
|
+
height: 200
|
|
2173
|
+
}, props), _path$1 || (_path$1 = /*#__PURE__*/createElement("path", {
|
|
2174
|
+
d: "M985.781 918.594L820.773 765.526c27.373-32.973 49.655-69.577 66.437-109.258 22.933-54.219 34.56-111.795 34.56-171.13 0-59.333-11.627-116.91-34.56-171.13-22.143-52.354-53.838-99.365-94.2-139.729s-87.377-72.056-139.73-94.199c-54.219-22.933-111.795-34.561-171.13-34.561S365.24 57.148 311.022 80.08c-52.354 22.143-99.365 53.837-139.73 94.2s-72.057 87.375-94.2 139.73c-22.932 54.218-34.56 111.795-34.56 171.13 0 59.334 11.628 116.91 34.56 171.129 22.144 52.354 53.838 99.365 94.2 139.729s87.376 72.057 139.73 94.2c54.219 22.933 111.795 34.56 171.13 34.56s116.91-11.627 171.13-34.56c45.352-19.181 86.686-45.543 123.171-78.487l165.803 153.804a31.886 31.886 0 0021.756 8.54c8.593 0 17.163-3.442 23.467-10.238 12.019-12.956 11.26-33.205-1.698-45.223zm-503.63-57.836c-207.117 0-375.62-168.502-375.62-375.62 0-207.117 168.503-375.62 375.62-375.62s375.62 168.503 375.62 375.62c0 207.118-168.503 375.62-375.62 375.62z"
|
|
2175
|
+
})));
|
|
2176
|
+
}
|
|
2177
|
+
|
|
2178
|
+
var css_248z$4 = ".kts-invoice-operate-goods-list-able-list .kts-invoice-operate-goods-list-search {\n width: 330px;\n}\n.kts-invoice-operate-goods-list-able-list .kts-invoice-operate-goods-list-search input {\n border-radius: 999px;\n border-color: #b8b8b8;\n}\n";
|
|
2179
|
+
styleInject(css_248z$4);
|
|
2180
|
+
|
|
2181
|
+
function Search() {
|
|
2182
|
+
var controller = default_1.useInvoiceController();
|
|
2183
|
+
|
|
2184
|
+
var _React$useState = React.useState(''),
|
|
2185
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
2186
|
+
value = _React$useState2[0],
|
|
2187
|
+
setValue = _React$useState2[1];
|
|
2188
|
+
|
|
2189
|
+
var readOnly = controller.useMemo(function (s) {
|
|
2190
|
+
return !!s.goodsListState.editGood;
|
|
2191
|
+
}, []);
|
|
2192
|
+
var onClick = React.useCallback( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
2193
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
2194
|
+
while (1) {
|
|
2195
|
+
switch (_context.prev = _context.next) {
|
|
2196
|
+
case 0:
|
|
2197
|
+
_context.next = 2;
|
|
2198
|
+
return controller.saveEditGood();
|
|
2199
|
+
|
|
2200
|
+
case 2:
|
|
2201
|
+
_context.next = 4;
|
|
2202
|
+
return controller.wait();
|
|
2203
|
+
|
|
2204
|
+
case 4:
|
|
2205
|
+
if (!controller.state.goodsListState.editGood) {
|
|
2206
|
+
_context.next = 7;
|
|
2207
|
+
break;
|
|
2208
|
+
}
|
|
2209
|
+
|
|
2210
|
+
message.error({
|
|
2211
|
+
content: '你正在编辑一个货物',
|
|
2212
|
+
key: '你正在编辑一个货物'
|
|
2213
|
+
});
|
|
2214
|
+
return _context.abrupt("return");
|
|
2215
|
+
|
|
2216
|
+
case 7:
|
|
2217
|
+
case "end":
|
|
2218
|
+
return _context.stop();
|
|
2219
|
+
}
|
|
2220
|
+
}
|
|
2221
|
+
}, _callee);
|
|
2222
|
+
})), []);
|
|
2223
|
+
React.useEffect(function () {
|
|
2224
|
+
controller.run( /*#__PURE__*/function () {
|
|
2225
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(s) {
|
|
2226
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
2227
|
+
while (1) {
|
|
2228
|
+
switch (_context2.prev = _context2.next) {
|
|
2229
|
+
case 0:
|
|
2230
|
+
s.goodsListState.searchValue = value;
|
|
2231
|
+
|
|
2232
|
+
case 1:
|
|
2233
|
+
case "end":
|
|
2234
|
+
return _context2.stop();
|
|
2235
|
+
}
|
|
2236
|
+
}
|
|
2237
|
+
}, _callee2);
|
|
2238
|
+
}));
|
|
2239
|
+
|
|
2240
|
+
return function (_x) {
|
|
2241
|
+
return _ref2.apply(this, arguments);
|
|
2242
|
+
};
|
|
2243
|
+
}());
|
|
2244
|
+
}, [value, controller]);
|
|
2245
|
+
return React.createElement(Input, {
|
|
2246
|
+
size: "small",
|
|
2247
|
+
readOnly: readOnly,
|
|
2248
|
+
value: value,
|
|
2249
|
+
className: "kts-invoice-operate-goods-list-search",
|
|
2250
|
+
placeholder: "\u8BF7\u60A8\u8F93\u5165\u8D27\u7269\u540D\u79F0\u3001\u89C4\u683C\u578B\u53F7\u3001\u91D1\u989D(\u542B\u7A0E)\u641C\u7D22",
|
|
2251
|
+
prefix: React.createElement(Icon, {
|
|
2252
|
+
component: SvgMagnifier,
|
|
2253
|
+
style: {
|
|
2254
|
+
color: "#b8b8b8"
|
|
2255
|
+
}
|
|
2256
|
+
}),
|
|
2257
|
+
onChange: function onChange(e) {
|
|
2258
|
+
setValue(e.target.value);
|
|
2259
|
+
},
|
|
2260
|
+
onClick: onClick
|
|
2261
|
+
});
|
|
2262
|
+
}
|
|
2263
|
+
|
|
2138
2264
|
function TableRow(props) {
|
|
2139
2265
|
var controller = default_1.useInvoiceController();
|
|
2140
2266
|
var goodsMap = controller.useMemo(function (s) {
|
|
@@ -2145,7 +2271,7 @@ function TableRow(props) {
|
|
|
2145
2271
|
if (!i) return false;
|
|
2146
2272
|
return i.lineAttribute !== LineAttributeType$1.正常;
|
|
2147
2273
|
}, [props['data-row-key'], goodsMap]);
|
|
2148
|
-
return
|
|
2274
|
+
return React.createElement("tr", _objectSpread2(_objectSpread2({}, props), {}, {
|
|
2149
2275
|
className: "".concat(isR ? 'kts-invoice-operate-goods-discount ' : '').concat(props.className)
|
|
2150
2276
|
}));
|
|
2151
2277
|
}
|
|
@@ -2185,8 +2311,8 @@ var evaluate = (function (expr) {
|
|
|
2185
2311
|
return parseFloat(math.evaluate(expr).toFixed(fractionDigits));
|
|
2186
2312
|
});
|
|
2187
2313
|
|
|
2188
|
-
var css_248z$
|
|
2189
|
-
styleInject(css_248z$
|
|
2314
|
+
var css_248z$5 = ".kts-invoice-operate-goods-list-add-discount-row .ktsAnt3x-drawer-wrapper-body {\n display: flex;\n flex-direction: column;\n}\n.kts-invoice-operate-goods-list-add-discount-row .ktsAnt3x-drawer-wrapper-body .ktsAnt3x-drawer-body {\n flex: 1;\n display: flex;\n flex-direction: column;\n}\n.kts-invoice-operate-goods-list-add-discount-row .ktsAnt3x-drawer-wrapper-body .ktsAnt3x-drawer-body .add-discount-row-body {\n flex: 1;\n overflow: auto;\n}\n.kts-invoice-operate-goods-list-add-discount-row .ktsAnt3x-drawer-wrapper-body .ktsAnt3x-drawer-body .add-discount-row-footer {\n flex: none;\n}\n";
|
|
2315
|
+
styleInject(css_248z$5);
|
|
2190
2316
|
|
|
2191
2317
|
var Text = Typography.Text;
|
|
2192
2318
|
|
|
@@ -2342,12 +2468,12 @@ var AddDiscountRowButton = decorator(Form.create())(function (props) {
|
|
|
2342
2468
|
}
|
|
2343
2469
|
}, _callee3);
|
|
2344
2470
|
})), [controller]);
|
|
2345
|
-
if (model === 'prefab') return
|
|
2346
|
-
return
|
|
2471
|
+
if (model === 'prefab') return React.createElement(React.Fragment, null);
|
|
2472
|
+
return React.createElement(React.Fragment, null, isAddDiscount !== false && React.createElement(Button, {
|
|
2347
2473
|
icon: "plus-circle",
|
|
2348
2474
|
disabled: disabled,
|
|
2349
2475
|
onClick: onClick
|
|
2350
|
-
}, "\u6DFB\u52A0\u6298\u6263\u884C"),
|
|
2476
|
+
}, "\u6DFB\u52A0\u6298\u6263\u884C"), React.createElement(Drawer, {
|
|
2351
2477
|
className: "kts-invoice-operate-goods-list-add-discount-row",
|
|
2352
2478
|
width: 540,
|
|
2353
2479
|
title: "\u6DFB\u52A0\u6298\u6263\u884C",
|
|
@@ -2355,7 +2481,7 @@ var AddDiscountRowButton = decorator(Form.create())(function (props) {
|
|
|
2355
2481
|
destroyOnClose: true,
|
|
2356
2482
|
onClose: onClose,
|
|
2357
2483
|
visible: visible
|
|
2358
|
-
},
|
|
2484
|
+
}, React.createElement(DrawerBody, null)));
|
|
2359
2485
|
});
|
|
2360
2486
|
var DrawerBody = decorator(Form.create())(function (props) {
|
|
2361
2487
|
var form = props.form;
|
|
@@ -2467,13 +2593,13 @@ var DrawerBody = decorator(Form.create())(function (props) {
|
|
|
2467
2593
|
});
|
|
2468
2594
|
});
|
|
2469
2595
|
}, 300), [form, lineAmountSum]);
|
|
2470
|
-
return
|
|
2596
|
+
return React.createElement(React.Fragment, null, React.createElement("div", {
|
|
2471
2597
|
className: "add-discount-row-body"
|
|
2472
|
-
},
|
|
2598
|
+
}, React.createElement("p", null, "\u5F53\u524D\u9009\u62E9", React.createElement(Text, {
|
|
2473
2599
|
type: "danger"
|
|
2474
|
-
}, discountGoodIndex.length), "\u884C\u88AB\u6298\u6263\u5546\u54C1\u884C\uFF0C\u91D1\u989D\u5408\u8BA1\xA5",
|
|
2600
|
+
}, discountGoodIndex.length), "\u884C\u88AB\u6298\u6263\u5546\u54C1\u884C\uFF0C\u91D1\u989D\u5408\u8BA1\xA5", React.createElement(Text, {
|
|
2475
2601
|
type: "danger"
|
|
2476
|
-
}, lineAmountSum.toFixed(2))),
|
|
2602
|
+
}, lineAmountSum.toFixed(2))), React.createElement(Form.Item, {
|
|
2477
2603
|
label: "\u6298\u6263\u7387\uFF1A"
|
|
2478
2604
|
}, getFieldDecorator('discount', {
|
|
2479
2605
|
rules: [{
|
|
@@ -2503,11 +2629,11 @@ var DrawerBody = decorator(Form.create())(function (props) {
|
|
|
2503
2629
|
callback();
|
|
2504
2630
|
}
|
|
2505
2631
|
}]
|
|
2506
|
-
})(
|
|
2632
|
+
})(React.createElement(Input, {
|
|
2507
2633
|
placeholder: "\u8BF7\u8F93\u5165\u5927\u4E8E0\u5C0F\u4E8E100\u7684\u6570\u5B57",
|
|
2508
2634
|
suffix: "%",
|
|
2509
2635
|
onChange: onChangeDiscount
|
|
2510
|
-
}))),
|
|
2636
|
+
}))), React.createElement(Form.Item, {
|
|
2511
2637
|
label: "\u6298\u6263\u91D1\u989D\uFF1A"
|
|
2512
2638
|
}, getFieldDecorator('discolineAmountunt', {
|
|
2513
2639
|
rules: [{
|
|
@@ -2537,19 +2663,19 @@ var DrawerBody = decorator(Form.create())(function (props) {
|
|
|
2537
2663
|
callback();
|
|
2538
2664
|
}
|
|
2539
2665
|
}]
|
|
2540
|
-
})(
|
|
2666
|
+
})(React.createElement(Input, {
|
|
2541
2667
|
placeholder: "\u8BF7\u8F93\u5165\u5927\u4E8E0\u5C0F\u4E8E\u91D1\u989D\u5408\u8BA1\u7684\u6570\u5B57",
|
|
2542
2668
|
suffix: "\xA5",
|
|
2543
2669
|
onChange: onChangeDiscolineAmountunt
|
|
2544
|
-
})))),
|
|
2670
|
+
})))), React.createElement("div", {
|
|
2545
2671
|
className: "add-discount-row-footer"
|
|
2546
|
-
},
|
|
2672
|
+
}, React.createElement(Button, {
|
|
2547
2673
|
block: true,
|
|
2548
2674
|
style: {
|
|
2549
2675
|
marginBottom: 12
|
|
2550
2676
|
},
|
|
2551
2677
|
onClick: onClose
|
|
2552
|
-
}, "\u53D6\u6D88"),
|
|
2678
|
+
}, "\u53D6\u6D88"), React.createElement(Button, {
|
|
2553
2679
|
type: "primary",
|
|
2554
2680
|
block: true,
|
|
2555
2681
|
onClick: onClickSave
|
|
@@ -2657,7 +2783,7 @@ var EndowCodeButton = (function () {
|
|
|
2657
2783
|
}
|
|
2658
2784
|
}, _callee2);
|
|
2659
2785
|
})), [controller]);
|
|
2660
|
-
return
|
|
2786
|
+
return React.createElement(Button, {
|
|
2661
2787
|
icon: "file-add",
|
|
2662
2788
|
disabled: disabled,
|
|
2663
2789
|
onClick: onClick
|
|
@@ -2715,24 +2841,24 @@ var DelRowButton = (function () {
|
|
|
2715
2841
|
};
|
|
2716
2842
|
}())();
|
|
2717
2843
|
}, [controller]);
|
|
2718
|
-
if (model === 'prefab') return
|
|
2719
|
-
return
|
|
2844
|
+
if (model === 'prefab') return React.createElement(React.Fragment, null);
|
|
2845
|
+
return React.createElement(Button, {
|
|
2720
2846
|
icon: "delete",
|
|
2721
2847
|
onClick: onClick,
|
|
2722
2848
|
disabled: disabled
|
|
2723
2849
|
}, "\u5220\u9664\u884C");
|
|
2724
2850
|
});
|
|
2725
2851
|
|
|
2726
|
-
var _defs$1, _path$
|
|
2852
|
+
var _defs$1, _path$2;
|
|
2727
2853
|
|
|
2728
|
-
function _extends$
|
|
2854
|
+
function _extends$2() { _extends$2 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$2.apply(this, arguments); }
|
|
2729
2855
|
|
|
2730
2856
|
function SvgSpot(props) {
|
|
2731
|
-
return /*#__PURE__*/createElement("svg", _extends$
|
|
2857
|
+
return /*#__PURE__*/createElement("svg", _extends$2({
|
|
2732
2858
|
className: "spot_svg__icon",
|
|
2733
2859
|
viewBox: "0 0 1024 1024",
|
|
2734
2860
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2735
|
-
}, props), _defs$1 || (_defs$1 = /*#__PURE__*/createElement("defs", null, /*#__PURE__*/createElement("style", null))), _path$
|
|
2861
|
+
}, props), _defs$1 || (_defs$1 = /*#__PURE__*/createElement("defs", null, /*#__PURE__*/createElement("style", null))), _path$2 || (_path$2 = /*#__PURE__*/createElement("path", {
|
|
2736
2862
|
d: "M416 512a1.5 1.5 0 10192 0 1.5 1.5 0 10-192 0zM416 96.64a1.5 1.5 0 10192 0 1.5 1.5 0 10-192 0zM416 927.36a1.5 1.5 0 10192 0 1.5 1.5 0 10-192 0z"
|
|
2737
2863
|
})));
|
|
2738
2864
|
}
|
|
@@ -2749,10 +2875,10 @@ var useDelItem = (function (goods) {
|
|
|
2749
2875
|
}
|
|
2750
2876
|
|
|
2751
2877
|
return React.useMemo(function () {
|
|
2752
|
-
return
|
|
2878
|
+
return React.createElement(Menu.Item, {
|
|
2753
2879
|
key: "delItem",
|
|
2754
2880
|
onClick: onClick
|
|
2755
|
-
},
|
|
2881
|
+
}, React.createElement(Text$1, {
|
|
2756
2882
|
strong: true,
|
|
2757
2883
|
type: "danger"
|
|
2758
2884
|
}, "\u5220\u9664"));
|
|
@@ -2871,10 +2997,10 @@ var useAddDiscount = (function (goods) {
|
|
|
2871
2997
|
return undefined;
|
|
2872
2998
|
}
|
|
2873
2999
|
|
|
2874
|
-
return
|
|
3000
|
+
return React.createElement(Menu.Item, {
|
|
2875
3001
|
key: "addDiscount",
|
|
2876
3002
|
onClick: onClick
|
|
2877
|
-
},
|
|
3003
|
+
}, React.createElement(Text$2, {
|
|
2878
3004
|
strong: true
|
|
2879
3005
|
}, "\u6DFB\u52A0\u6298\u6263\u884C"));
|
|
2880
3006
|
}, [onClick, goods.lineAttribute]);
|
|
@@ -9511,17 +9637,17 @@ var useEndowCode = (function (goods) {
|
|
|
9511
9637
|
}, _callee);
|
|
9512
9638
|
})), [controller, goods]);
|
|
9513
9639
|
return React.useMemo(function () {
|
|
9514
|
-
return
|
|
9640
|
+
return React.createElement(Menu.Item, {
|
|
9515
9641
|
key: "endowCode",
|
|
9516
9642
|
onClick: onClick
|
|
9517
|
-
},
|
|
9643
|
+
}, React.createElement(Text$3, {
|
|
9518
9644
|
strong: true
|
|
9519
9645
|
}, "\u8D4B\u7801"));
|
|
9520
9646
|
}, [goods.lineAttribute, onClick]);
|
|
9521
9647
|
});
|
|
9522
9648
|
|
|
9523
|
-
var css_248z$
|
|
9524
|
-
styleInject(css_248z$
|
|
9649
|
+
var css_248z$6 = ".ktsAnt3x-btn.kts-invoice-operate-goods-list-columns-row-menu:focus,\n.ktsAnt3x-btn.kts-invoice-operate-goods-list-columns-row-menu:hover,\n.ktsAnt3x-btn.kts-invoice-operate-goods-list-columns-row-menu {\n font-size: 16px;\n color: #000;\n text-align: center;\n padding: 0;\n}\n.ktsAnt3x-btn.kts-invoice-operate-goods-list-columns-row-menu:hover,\n.ktsAnt3x-btn.kts-invoice-operate-goods-list-columns-row-menu.ktsAnt3x-dropdown-open {\n background: #ebebeb;\n border-radius: 9999px;\n}\n";
|
|
9650
|
+
styleInject(css_248z$6);
|
|
9525
9651
|
|
|
9526
9652
|
var RowMenu = (function (props) {
|
|
9527
9653
|
var controller = default_1.useInvoiceController();
|
|
@@ -9548,7 +9674,7 @@ var RowMenu = (function (props) {
|
|
|
9548
9674
|
model !== 'prefab' && delItem && arr.push(delItem); // 删除
|
|
9549
9675
|
|
|
9550
9676
|
if (!goodsMenuExpand || goodsMenuExpand.length === 0) return arr;
|
|
9551
|
-
arr.unshift(
|
|
9677
|
+
arr.unshift(React.createElement(Menu.Divider, {
|
|
9552
9678
|
key: "divider-1"
|
|
9553
9679
|
}));
|
|
9554
9680
|
|
|
@@ -9561,16 +9687,16 @@ var RowMenu = (function (props) {
|
|
|
9561
9687
|
}, [controller, endowCode, addDiscount, delItem, goodsMenuExpand, props.goods, model, isAddDiscount]);
|
|
9562
9688
|
|
|
9563
9689
|
if (itemList.length === 0) {
|
|
9564
|
-
return
|
|
9690
|
+
return React.createElement(React.Fragment, null);
|
|
9565
9691
|
}
|
|
9566
9692
|
|
|
9567
|
-
return
|
|
9568
|
-
overlay:
|
|
9693
|
+
return React.createElement(Dropdown, {
|
|
9694
|
+
overlay: React.createElement(Menu, null, itemList),
|
|
9569
9695
|
trigger: ['click']
|
|
9570
|
-
},
|
|
9696
|
+
}, React.createElement(Button, {
|
|
9571
9697
|
className: "kts-invoice-operate-goods-list-columns-row-menu ant-btn-icon-only",
|
|
9572
9698
|
type: "link"
|
|
9573
|
-
},
|
|
9699
|
+
}, React.createElement(Icon, {
|
|
9574
9700
|
component: SvgSpot
|
|
9575
9701
|
})));
|
|
9576
9702
|
});
|
|
@@ -9590,6 +9716,11 @@ var useColumns = (function (form) {
|
|
|
9590
9716
|
var editGood = controller.useMemo(function (e) {
|
|
9591
9717
|
return e.goodsListState.editGood;
|
|
9592
9718
|
}, []);
|
|
9719
|
+
/** 搜索条件 */
|
|
9720
|
+
|
|
9721
|
+
var searchValue = controller.useMemo(function (e) {
|
|
9722
|
+
return e.goodsListState.searchValue;
|
|
9723
|
+
}, []);
|
|
9593
9724
|
/** 税率列表 */
|
|
9594
9725
|
|
|
9595
9726
|
var taxRateList = controller.useMemo(function (e) {
|
|
@@ -9616,7 +9747,7 @@ var useColumns = (function (form) {
|
|
|
9616
9747
|
|
|
9617
9748
|
var columns = React.useMemo(function () {
|
|
9618
9749
|
return [{
|
|
9619
|
-
title:
|
|
9750
|
+
title: React.createElement(React.Fragment, null, React.createElement(Text$4, {
|
|
9620
9751
|
type: "danger"
|
|
9621
9752
|
}, "*"), "\u8D27\u7269\u540D\u79F0"),
|
|
9622
9753
|
dataIndex: 'itemName',
|
|
@@ -9625,7 +9756,7 @@ var useColumns = (function (form) {
|
|
|
9625
9756
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
9626
9757
|
var _editGood$itemName;
|
|
9627
9758
|
|
|
9628
|
-
return
|
|
9759
|
+
return React.createElement(Form.Item, null, React.createElement("div", {
|
|
9629
9760
|
style: {
|
|
9630
9761
|
display: 'flex'
|
|
9631
9762
|
}
|
|
@@ -9635,22 +9766,22 @@ var useColumns = (function (form) {
|
|
|
9635
9766
|
required: true,
|
|
9636
9767
|
message: '货物名称不能为空'
|
|
9637
9768
|
}]
|
|
9638
|
-
})(
|
|
9769
|
+
})(React.createElement(MyInput, {
|
|
9639
9770
|
style: {
|
|
9640
9771
|
flex: 1
|
|
9641
9772
|
},
|
|
9642
9773
|
onChange: function onChange() {
|
|
9643
9774
|
onSaveEditGood(controller, form, record, 'itemName');
|
|
9644
9775
|
}
|
|
9645
|
-
})),
|
|
9776
|
+
})), React.createElement("div", {
|
|
9646
9777
|
className: "kts-invoice-operate-goods-list-able-list-itemName-import"
|
|
9647
|
-
}, !((_editGood$itemName = editGood.itemName) === null || _editGood$itemName === void 0 ? void 0 : _editGood$itemName.match(/\*[^*]+\*/)) &&
|
|
9778
|
+
}, !((_editGood$itemName = editGood.itemName) === null || _editGood$itemName === void 0 ? void 0 : _editGood$itemName.match(/\*[^*]+\*/)) && React.createElement(Button, {
|
|
9648
9779
|
onClick: function onClick() {
|
|
9649
9780
|
endowCode(controller, record);
|
|
9650
9781
|
},
|
|
9651
9782
|
type: "link",
|
|
9652
9783
|
icon: "file-add"
|
|
9653
|
-
}), controller.getGoodsList &&
|
|
9784
|
+
}), controller.getGoodsList && React.createElement(Button, {
|
|
9654
9785
|
onClick: function onClick() {
|
|
9655
9786
|
controller.pipeline( /*#__PURE__*/function () {
|
|
9656
9787
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(s) {
|
|
@@ -9677,11 +9808,11 @@ var useColumns = (function (form) {
|
|
|
9677
9808
|
icon: "plus-circle"
|
|
9678
9809
|
}))));
|
|
9679
9810
|
} else {
|
|
9680
|
-
return
|
|
9811
|
+
return React.createElement("span", {
|
|
9681
9812
|
style: {
|
|
9682
9813
|
padding: '0 10px'
|
|
9683
9814
|
}
|
|
9684
|
-
}, value);
|
|
9815
|
+
}, formatSearch(value, searchValue));
|
|
9685
9816
|
}
|
|
9686
9817
|
}
|
|
9687
9818
|
}, {
|
|
@@ -9691,19 +9822,19 @@ var useColumns = (function (form) {
|
|
|
9691
9822
|
width: 119,
|
|
9692
9823
|
render: function render(value, record) {
|
|
9693
9824
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
9694
|
-
return
|
|
9825
|
+
return React.createElement(Form.Item, null, getFieldDecorator('itemModelName', {
|
|
9695
9826
|
initialValue: editGood.itemModelName
|
|
9696
|
-
})(
|
|
9827
|
+
})(React.createElement(MyInput, {
|
|
9697
9828
|
onChange: function onChange() {
|
|
9698
9829
|
onSaveEditGood(controller, form, record, 'itemModelName');
|
|
9699
9830
|
}
|
|
9700
9831
|
})));
|
|
9701
9832
|
} else {
|
|
9702
|
-
return
|
|
9833
|
+
return React.createElement("span", {
|
|
9703
9834
|
style: {
|
|
9704
9835
|
padding: '0 10px'
|
|
9705
9836
|
}
|
|
9706
|
-
}, value);
|
|
9837
|
+
}, formatSearch(value, searchValue));
|
|
9707
9838
|
}
|
|
9708
9839
|
}
|
|
9709
9840
|
}, {
|
|
@@ -9713,9 +9844,9 @@ var useColumns = (function (form) {
|
|
|
9713
9844
|
width: 70,
|
|
9714
9845
|
render: function render(value, record) {
|
|
9715
9846
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
9716
|
-
return
|
|
9847
|
+
return React.createElement(Form.Item, null, getFieldDecorator('unit', {
|
|
9717
9848
|
initialValue: editGood.unit
|
|
9718
|
-
})(
|
|
9849
|
+
})(React.createElement(AutoComplete, {
|
|
9719
9850
|
style: {
|
|
9720
9851
|
width: '100%'
|
|
9721
9852
|
},
|
|
@@ -9725,7 +9856,7 @@ var useColumns = (function (form) {
|
|
|
9725
9856
|
}
|
|
9726
9857
|
})));
|
|
9727
9858
|
} else {
|
|
9728
|
-
return
|
|
9859
|
+
return React.createElement("span", {
|
|
9729
9860
|
style: {
|
|
9730
9861
|
padding: '0 10px'
|
|
9731
9862
|
}
|
|
@@ -9740,7 +9871,7 @@ var useColumns = (function (form) {
|
|
|
9740
9871
|
width: 149,
|
|
9741
9872
|
render: function render(value, record) {
|
|
9742
9873
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
9743
|
-
return
|
|
9874
|
+
return React.createElement(Form.Item, null, getFieldDecorator('quantity', {
|
|
9744
9875
|
initialValue: editGood.quantity,
|
|
9745
9876
|
rules: [{
|
|
9746
9877
|
pattern: /^[+-]?(0|([1-9]\d*))(\.\d+)?$/,
|
|
@@ -9785,7 +9916,7 @@ var useColumns = (function (form) {
|
|
|
9785
9916
|
return validator;
|
|
9786
9917
|
}()
|
|
9787
9918
|
}]
|
|
9788
|
-
})(
|
|
9919
|
+
})(React.createElement(MyInput, {
|
|
9789
9920
|
style: {
|
|
9790
9921
|
textAlign: 'right'
|
|
9791
9922
|
},
|
|
@@ -9797,7 +9928,7 @@ var useColumns = (function (form) {
|
|
|
9797
9928
|
}
|
|
9798
9929
|
})));
|
|
9799
9930
|
} else {
|
|
9800
|
-
return
|
|
9931
|
+
return React.createElement("span", {
|
|
9801
9932
|
style: {
|
|
9802
9933
|
padding: '0 10px'
|
|
9803
9934
|
}
|
|
@@ -9812,7 +9943,7 @@ var useColumns = (function (form) {
|
|
|
9812
9943
|
width: 149,
|
|
9813
9944
|
render: function render(value, record) {
|
|
9814
9945
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
9815
|
-
return
|
|
9946
|
+
return React.createElement(Form.Item, null, getFieldDecorator('priceIncludeTax', {
|
|
9816
9947
|
initialValue: editGood.priceIncludeTax,
|
|
9817
9948
|
rules: [{
|
|
9818
9949
|
pattern: /^[+-]?(0|([1-9]\d*))(\.\d+)?$/,
|
|
@@ -9857,7 +9988,7 @@ var useColumns = (function (form) {
|
|
|
9857
9988
|
return validator;
|
|
9858
9989
|
}()
|
|
9859
9990
|
}]
|
|
9860
|
-
})(
|
|
9991
|
+
})(React.createElement(MyInput, {
|
|
9861
9992
|
style: {
|
|
9862
9993
|
textAlign: 'right'
|
|
9863
9994
|
},
|
|
@@ -9869,7 +10000,7 @@ var useColumns = (function (form) {
|
|
|
9869
10000
|
}
|
|
9870
10001
|
})));
|
|
9871
10002
|
} else {
|
|
9872
|
-
return
|
|
10003
|
+
return React.createElement("span", {
|
|
9873
10004
|
style: {
|
|
9874
10005
|
padding: '0 10px'
|
|
9875
10006
|
}
|
|
@@ -9884,7 +10015,7 @@ var useColumns = (function (form) {
|
|
|
9884
10015
|
width: 149,
|
|
9885
10016
|
render: function render(value, record) {
|
|
9886
10017
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
9887
|
-
return
|
|
10018
|
+
return React.createElement(Form.Item, null, getFieldDecorator('priceExcludeTax', {
|
|
9888
10019
|
initialValue: editGood.priceExcludeTax,
|
|
9889
10020
|
rules: [{
|
|
9890
10021
|
pattern: /^[+-]?(0|([1-9]\d*))(\.\d+)?$/,
|
|
@@ -9929,7 +10060,7 @@ var useColumns = (function (form) {
|
|
|
9929
10060
|
return validator;
|
|
9930
10061
|
}()
|
|
9931
10062
|
}]
|
|
9932
|
-
})(
|
|
10063
|
+
})(React.createElement(MyInput, {
|
|
9933
10064
|
style: {
|
|
9934
10065
|
textAlign: 'right'
|
|
9935
10066
|
},
|
|
@@ -9941,7 +10072,7 @@ var useColumns = (function (form) {
|
|
|
9941
10072
|
}
|
|
9942
10073
|
})));
|
|
9943
10074
|
} else {
|
|
9944
|
-
return
|
|
10075
|
+
return React.createElement("span", {
|
|
9945
10076
|
style: {
|
|
9946
10077
|
padding: '0 10px'
|
|
9947
10078
|
}
|
|
@@ -9949,7 +10080,7 @@ var useColumns = (function (form) {
|
|
|
9949
10080
|
}
|
|
9950
10081
|
}
|
|
9951
10082
|
}, {
|
|
9952
|
-
title:
|
|
10083
|
+
title: React.createElement(React.Fragment, null, React.createElement(Text$4, {
|
|
9953
10084
|
type: "danger"
|
|
9954
10085
|
}, "*"), "\u91D1\u989D(\u542B\u7A0E)"),
|
|
9955
10086
|
dataIndex: 'lineAmountIncludeTax',
|
|
@@ -9958,7 +10089,7 @@ var useColumns = (function (form) {
|
|
|
9958
10089
|
align: 'right',
|
|
9959
10090
|
render: function render(value, record) {
|
|
9960
10091
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
9961
|
-
return
|
|
10092
|
+
return React.createElement(Form.Item, null, getFieldDecorator('lineAmountIncludeTax', {
|
|
9962
10093
|
initialValue: editGood.lineAmountIncludeTax,
|
|
9963
10094
|
rules: [{
|
|
9964
10095
|
required: true,
|
|
@@ -10017,7 +10148,7 @@ var useColumns = (function (form) {
|
|
|
10017
10148
|
return validator;
|
|
10018
10149
|
}()
|
|
10019
10150
|
}]
|
|
10020
|
-
})(
|
|
10151
|
+
})(React.createElement(MyInput, {
|
|
10021
10152
|
style: {
|
|
10022
10153
|
textAlign: 'right'
|
|
10023
10154
|
},
|
|
@@ -10028,15 +10159,15 @@ var useColumns = (function (form) {
|
|
|
10028
10159
|
}
|
|
10029
10160
|
})));
|
|
10030
10161
|
} else {
|
|
10031
|
-
return
|
|
10162
|
+
return React.createElement("span", {
|
|
10032
10163
|
style: {
|
|
10033
10164
|
padding: '0 10px'
|
|
10034
10165
|
}
|
|
10035
|
-
}, parseFloat(value).toFixed(2));
|
|
10166
|
+
}, formatSearch(parseFloat(value).toFixed(2), searchValue));
|
|
10036
10167
|
}
|
|
10037
10168
|
}
|
|
10038
10169
|
}, {
|
|
10039
|
-
title:
|
|
10170
|
+
title: React.createElement(React.Fragment, null, React.createElement(Text$4, {
|
|
10040
10171
|
type: "danger"
|
|
10041
10172
|
}, "*"), "\u91D1\u989D(\u4E0D\u542B\u7A0E)"),
|
|
10042
10173
|
dataIndex: 'lineAmountExcludeTax',
|
|
@@ -10045,7 +10176,7 @@ var useColumns = (function (form) {
|
|
|
10045
10176
|
width: 119,
|
|
10046
10177
|
render: function render(value, record) {
|
|
10047
10178
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
10048
|
-
return
|
|
10179
|
+
return React.createElement(Form.Item, null, getFieldDecorator('lineAmountExcludeTax', {
|
|
10049
10180
|
initialValue: editGood.lineAmountExcludeTax,
|
|
10050
10181
|
rules: [{
|
|
10051
10182
|
required: true,
|
|
@@ -10079,7 +10210,7 @@ var useColumns = (function (form) {
|
|
|
10079
10210
|
return validator;
|
|
10080
10211
|
}()
|
|
10081
10212
|
}]
|
|
10082
|
-
})(
|
|
10213
|
+
})(React.createElement(MyInput, {
|
|
10083
10214
|
style: {
|
|
10084
10215
|
textAlign: 'right'
|
|
10085
10216
|
},
|
|
@@ -10090,7 +10221,7 @@ var useColumns = (function (form) {
|
|
|
10090
10221
|
}
|
|
10091
10222
|
})));
|
|
10092
10223
|
} else {
|
|
10093
|
-
return
|
|
10224
|
+
return React.createElement("span", {
|
|
10094
10225
|
style: {
|
|
10095
10226
|
padding: '0 10px'
|
|
10096
10227
|
}
|
|
@@ -10098,7 +10229,7 @@ var useColumns = (function (form) {
|
|
|
10098
10229
|
}
|
|
10099
10230
|
}
|
|
10100
10231
|
}, {
|
|
10101
|
-
title:
|
|
10232
|
+
title: React.createElement(React.Fragment, null, React.createElement(Text$4, {
|
|
10102
10233
|
type: "danger"
|
|
10103
10234
|
}, "*"), "\u7A0E\u7387"),
|
|
10104
10235
|
dataIndex: 'taxRate',
|
|
@@ -10107,7 +10238,7 @@ var useColumns = (function (form) {
|
|
|
10107
10238
|
width: 70,
|
|
10108
10239
|
render: function render(value, record) {
|
|
10109
10240
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
10110
|
-
return
|
|
10241
|
+
return React.createElement(Form.Item, null, getFieldDecorator('taxRate', {
|
|
10111
10242
|
initialValue: editGood.taxRate,
|
|
10112
10243
|
rules: [{
|
|
10113
10244
|
required: true,
|
|
@@ -10116,7 +10247,7 @@ var useColumns = (function (form) {
|
|
|
10116
10247
|
pattern: /^[+-]?(0|([1-9]\d*))(\.\d+)?$/,
|
|
10117
10248
|
message: ' '
|
|
10118
10249
|
}]
|
|
10119
|
-
})(
|
|
10250
|
+
})(React.createElement(Select, {
|
|
10120
10251
|
className: "kts-invoice-operate-goods-list-table-tax-rate",
|
|
10121
10252
|
dropdownMenuStyle: {
|
|
10122
10253
|
textAlign: "right"
|
|
@@ -10129,13 +10260,13 @@ var useColumns = (function (form) {
|
|
|
10129
10260
|
onChangeTaxRate(controller, form, record);
|
|
10130
10261
|
}
|
|
10131
10262
|
}, taxRateList.map(function (e, i) {
|
|
10132
|
-
return
|
|
10263
|
+
return React.createElement(Select.Option, {
|
|
10133
10264
|
key: i,
|
|
10134
10265
|
value: e
|
|
10135
10266
|
}, e, "%");
|
|
10136
10267
|
}))));
|
|
10137
10268
|
} else {
|
|
10138
|
-
return
|
|
10269
|
+
return React.createElement("span", {
|
|
10139
10270
|
style: {
|
|
10140
10271
|
padding: '0 10px'
|
|
10141
10272
|
}
|
|
@@ -10152,9 +10283,9 @@ var useColumns = (function (form) {
|
|
|
10152
10283
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
10153
10284
|
return getFieldDecorator('taxAmount', {
|
|
10154
10285
|
initialValue: editGood.taxAmount
|
|
10155
|
-
})(
|
|
10286
|
+
})(React.createElement(MyDiv, null));
|
|
10156
10287
|
} else {
|
|
10157
|
-
return
|
|
10288
|
+
return React.createElement("span", {
|
|
10158
10289
|
style: {
|
|
10159
10290
|
padding: '0 10px'
|
|
10160
10291
|
}
|
|
@@ -10168,7 +10299,7 @@ var useColumns = (function (form) {
|
|
|
10168
10299
|
width: 50,
|
|
10169
10300
|
align: 'center',
|
|
10170
10301
|
render: function render(_value, record) {
|
|
10171
|
-
return
|
|
10302
|
+
return React.createElement(RowMenu, {
|
|
10172
10303
|
key: record.lineAttribute,
|
|
10173
10304
|
goods: record
|
|
10174
10305
|
});
|
|
@@ -10184,7 +10315,7 @@ var useColumns = (function (form) {
|
|
|
10184
10315
|
ellipsis: true
|
|
10185
10316
|
});
|
|
10186
10317
|
});
|
|
10187
|
-
}, [isTaxIncluded, editGood, controller, changeField, deduction]);
|
|
10318
|
+
}, [isTaxIncluded, editGood, controller, changeField, deduction, searchValue]);
|
|
10188
10319
|
React.useEffect(function () {
|
|
10189
10320
|
if (!changeField) return;
|
|
10190
10321
|
var t = setTimeout(function () {
|
|
@@ -10218,13 +10349,13 @@ var MyInput = /*#__PURE__*/function (_React$Component) {
|
|
|
10218
10349
|
key: "render",
|
|
10219
10350
|
value: function render() {
|
|
10220
10351
|
if (this.props.loading) {
|
|
10221
|
-
return
|
|
10352
|
+
return React.createElement(Spin, {
|
|
10222
10353
|
size: "small"
|
|
10223
|
-
},
|
|
10354
|
+
}, React.createElement(Input, _objectSpread2(_objectSpread2({}, this.props), {}, {
|
|
10224
10355
|
autoComplete: "off"
|
|
10225
10356
|
})));
|
|
10226
10357
|
} else {
|
|
10227
|
-
return
|
|
10358
|
+
return React.createElement(Input, _objectSpread2(_objectSpread2({}, this.props), {}, {
|
|
10228
10359
|
autoComplete: "off"
|
|
10229
10360
|
}));
|
|
10230
10361
|
}
|
|
@@ -10248,7 +10379,7 @@ var MyDiv = /*#__PURE__*/function (_React$Component2) {
|
|
|
10248
10379
|
_createClass(MyDiv, [{
|
|
10249
10380
|
key: "render",
|
|
10250
10381
|
value: function render() {
|
|
10251
|
-
return
|
|
10382
|
+
return React.createElement("span", {
|
|
10252
10383
|
style: {
|
|
10253
10384
|
padding: '0 10px'
|
|
10254
10385
|
}
|
|
@@ -10258,6 +10389,38 @@ var MyDiv = /*#__PURE__*/function (_React$Component2) {
|
|
|
10258
10389
|
|
|
10259
10390
|
return MyDiv;
|
|
10260
10391
|
}(React.Component);
|
|
10392
|
+
/** 格式搜索结果 */
|
|
10393
|
+
|
|
10394
|
+
|
|
10395
|
+
function formatSearch(value, search) {
|
|
10396
|
+
if (!value || !search) return value;
|
|
10397
|
+
|
|
10398
|
+
var __html = ucoding(value).split(new RegExp(ucoding(search), 'g')).map(function (e) {
|
|
10399
|
+
return dcoding(e);
|
|
10400
|
+
}).join("<span class=\"kts-invoice-operate-goods-list-table-search-protrude\" >".concat(search, "</span>"));
|
|
10401
|
+
|
|
10402
|
+
return React.createElement("span", {
|
|
10403
|
+
dangerouslySetInnerHTML: {
|
|
10404
|
+
__html: __html
|
|
10405
|
+
}
|
|
10406
|
+
});
|
|
10407
|
+
}
|
|
10408
|
+
/** 编码 */
|
|
10409
|
+
|
|
10410
|
+
|
|
10411
|
+
function ucoding(v) {
|
|
10412
|
+
return v.split('').map(function (e) {
|
|
10413
|
+
return "U".concat(e.charCodeAt(0), "E");
|
|
10414
|
+
}).join('');
|
|
10415
|
+
}
|
|
10416
|
+
/** 解码 */
|
|
10417
|
+
|
|
10418
|
+
|
|
10419
|
+
function dcoding(v) {
|
|
10420
|
+
return v.split('U').map(function (e) {
|
|
10421
|
+
return e ? String.fromCharCode(parseInt(e.replace('E', ''))) : '';
|
|
10422
|
+
}).join('');
|
|
10423
|
+
}
|
|
10261
10424
|
|
|
10262
10425
|
var useOnRow = (function () {
|
|
10263
10426
|
/** 控制器 */
|
|
@@ -10455,105 +10618,168 @@ var useRowSelection = (function () {
|
|
|
10455
10618
|
var goodsList = controller.useMemo(function (s) {
|
|
10456
10619
|
return s.goodsListState.goodsList;
|
|
10457
10620
|
}, []);
|
|
10621
|
+
/** 搜索条件 */
|
|
10622
|
+
|
|
10623
|
+
var searchValue = controller.useMemo(function (s) {
|
|
10624
|
+
return s.goodsListState.searchValue;
|
|
10625
|
+
}, []);
|
|
10458
10626
|
/** 是否全选 */
|
|
10627
|
+
// const isAll = controller.useMemo(s => s.goodsListState.goodsList.length > 0 && s.goodsListState.selectedGoodIndex.length === s.goodsListState.goodsList.length, [])
|
|
10459
10628
|
|
|
10460
10629
|
var isAll = controller.useMemo(function (s) {
|
|
10461
|
-
|
|
10630
|
+
if (s.goodsListState.selectedGoodIndex.length <= 0) return false;
|
|
10631
|
+
var seeGoodsIndex = controller.getGoodsSearch(s.goodsListState.goodsList, s.goodsListState.searchValue).map(function (e) {
|
|
10632
|
+
return e.$index;
|
|
10633
|
+
});
|
|
10634
|
+
var selectedGoodIndex = s.goodsListState.selectedGoodIndex.filter(function (e) {
|
|
10635
|
+
return seeGoodsIndex.some(function (t) {
|
|
10636
|
+
return e === t;
|
|
10637
|
+
});
|
|
10638
|
+
});
|
|
10639
|
+
return selectedGoodIndex.length === seeGoodsIndex.length;
|
|
10640
|
+
}, []);
|
|
10641
|
+
var indeterminate = controller.useMemo(function (s) {
|
|
10642
|
+
var seeGoodsIndex = controller.getGoodsSearch(s.goodsListState.goodsList, s.goodsListState.searchValue).map(function (e) {
|
|
10643
|
+
return e.$index;
|
|
10644
|
+
});
|
|
10645
|
+
var selectedGoodIndex = s.goodsListState.selectedGoodIndex.filter(function (e) {
|
|
10646
|
+
return seeGoodsIndex.some(function (t) {
|
|
10647
|
+
return e === t;
|
|
10648
|
+
});
|
|
10649
|
+
});
|
|
10650
|
+
if (selectedGoodIndex.length === 0) return false;
|
|
10651
|
+
return selectedGoodIndex.length < seeGoodsIndex.length;
|
|
10462
10652
|
}, []);
|
|
10463
10653
|
/** 点击了全选 */
|
|
10464
10654
|
|
|
10465
|
-
var onClickSelectAll = React.useCallback(function () {
|
|
10466
|
-
|
|
10467
|
-
|
|
10468
|
-
|
|
10469
|
-
|
|
10470
|
-
|
|
10471
|
-
|
|
10472
|
-
|
|
10473
|
-
s.goodsListState.selectedGoodIndex = [];
|
|
10474
|
-
|
|
10475
|
-
case 1:
|
|
10476
|
-
case "end":
|
|
10477
|
-
return _context.stop();
|
|
10478
|
-
}
|
|
10655
|
+
var onClickSelectAll = React.useCallback( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
10656
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
10657
|
+
while (1) {
|
|
10658
|
+
switch (_context3.prev = _context3.next) {
|
|
10659
|
+
case 0:
|
|
10660
|
+
if (!isAll) {
|
|
10661
|
+
_context3.next = 5;
|
|
10662
|
+
break;
|
|
10479
10663
|
}
|
|
10480
|
-
}, _callee);
|
|
10481
|
-
}));
|
|
10482
10664
|
|
|
10483
|
-
|
|
10484
|
-
|
|
10485
|
-
|
|
10486
|
-
|
|
10487
|
-
|
|
10488
|
-
|
|
10489
|
-
|
|
10490
|
-
|
|
10491
|
-
|
|
10492
|
-
|
|
10493
|
-
|
|
10494
|
-
|
|
10495
|
-
|
|
10496
|
-
|
|
10665
|
+
_context3.next = 3;
|
|
10666
|
+
return controller.pipeline( /*#__PURE__*/function () {
|
|
10667
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(s) {
|
|
10668
|
+
var seeGoodsIndex;
|
|
10669
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
10670
|
+
while (1) {
|
|
10671
|
+
switch (_context.prev = _context.next) {
|
|
10672
|
+
case 0:
|
|
10673
|
+
seeGoodsIndex = controller.getGoodsSearch(s.goodsListState.goodsList, s.goodsListState.searchValue).map(function (e) {
|
|
10674
|
+
return e.$index;
|
|
10675
|
+
});
|
|
10676
|
+
s.goodsListState.selectedGoodIndex = s.goodsListState.selectedGoodIndex.filter(function (e) {
|
|
10677
|
+
return !seeGoodsIndex.some(function (t) {
|
|
10678
|
+
return e === t;
|
|
10679
|
+
});
|
|
10680
|
+
});
|
|
10497
10681
|
|
|
10498
|
-
|
|
10499
|
-
|
|
10500
|
-
|
|
10501
|
-
|
|
10502
|
-
|
|
10503
|
-
|
|
10504
|
-
|
|
10682
|
+
case 2:
|
|
10683
|
+
case "end":
|
|
10684
|
+
return _context.stop();
|
|
10685
|
+
}
|
|
10686
|
+
}
|
|
10687
|
+
}, _callee);
|
|
10688
|
+
}));
|
|
10505
10689
|
|
|
10506
|
-
|
|
10507
|
-
|
|
10508
|
-
|
|
10509
|
-
|
|
10510
|
-
|
|
10511
|
-
|
|
10690
|
+
return function (_x) {
|
|
10691
|
+
return _ref2.apply(this, arguments);
|
|
10692
|
+
};
|
|
10693
|
+
}())();
|
|
10694
|
+
|
|
10695
|
+
case 3:
|
|
10696
|
+
_context3.next = 7;
|
|
10697
|
+
break;
|
|
10698
|
+
|
|
10699
|
+
case 5:
|
|
10700
|
+
_context3.next = 7;
|
|
10701
|
+
return controller.pipeline( /*#__PURE__*/function () {
|
|
10702
|
+
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(s) {
|
|
10703
|
+
var seeGoodsIndex;
|
|
10704
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
10705
|
+
while (1) {
|
|
10706
|
+
switch (_context2.prev = _context2.next) {
|
|
10707
|
+
case 0:
|
|
10708
|
+
seeGoodsIndex = controller.getGoodsSearch(s.goodsListState.goodsList, s.goodsListState.searchValue).map(function (e) {
|
|
10709
|
+
return e.$index;
|
|
10710
|
+
});
|
|
10711
|
+
s.goodsListState.selectedGoodIndex = [].concat(_toConsumableArray(s.goodsListState.selectedGoodIndex), _toConsumableArray(seeGoodsIndex));
|
|
10712
|
+
s.goodsListState.selectedGoodIndex = Array.from(new Set(s.goodsListState.selectedGoodIndex));
|
|
10713
|
+
|
|
10714
|
+
case 3:
|
|
10715
|
+
case "end":
|
|
10716
|
+
return _context2.stop();
|
|
10717
|
+
}
|
|
10718
|
+
}
|
|
10719
|
+
}, _callee2);
|
|
10720
|
+
}));
|
|
10721
|
+
|
|
10722
|
+
return function (_x2) {
|
|
10723
|
+
return _ref3.apply(this, arguments);
|
|
10724
|
+
};
|
|
10725
|
+
}())();
|
|
10726
|
+
|
|
10727
|
+
case 7:
|
|
10728
|
+
_context3.next = 9;
|
|
10729
|
+
return sortOut(true);
|
|
10730
|
+
|
|
10731
|
+
case 9:
|
|
10732
|
+
case "end":
|
|
10733
|
+
return _context3.stop();
|
|
10734
|
+
}
|
|
10735
|
+
}
|
|
10736
|
+
}, _callee3);
|
|
10737
|
+
})), [controller, isAll]);
|
|
10512
10738
|
var onSelect = React.useCallback( /*#__PURE__*/function () {
|
|
10513
|
-
var
|
|
10514
|
-
return _regeneratorRuntime().wrap(function
|
|
10739
|
+
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6(record, selected) {
|
|
10740
|
+
return _regeneratorRuntime().wrap(function _callee6$(_context6) {
|
|
10515
10741
|
while (1) {
|
|
10516
|
-
switch (
|
|
10742
|
+
switch (_context6.prev = _context6.next) {
|
|
10517
10743
|
case 0:
|
|
10518
10744
|
if (!selected) {
|
|
10519
|
-
|
|
10745
|
+
_context6.next = 5;
|
|
10520
10746
|
break;
|
|
10521
10747
|
}
|
|
10522
10748
|
|
|
10523
|
-
|
|
10749
|
+
_context6.next = 3;
|
|
10524
10750
|
return controller.pipeline( /*#__PURE__*/function () {
|
|
10525
|
-
var
|
|
10526
|
-
return _regeneratorRuntime().wrap(function
|
|
10751
|
+
var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(s) {
|
|
10752
|
+
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
10527
10753
|
while (1) {
|
|
10528
|
-
switch (
|
|
10754
|
+
switch (_context4.prev = _context4.next) {
|
|
10529
10755
|
case 0:
|
|
10530
10756
|
s.goodsListState.selectedGoodIndex = [].concat(_toConsumableArray(s.goodsListState.selectedGoodIndex), [record.$index]);
|
|
10531
10757
|
s.goodsListState = _objectSpread2({}, s.goodsListState);
|
|
10532
10758
|
|
|
10533
10759
|
case 2:
|
|
10534
10760
|
case "end":
|
|
10535
|
-
return
|
|
10761
|
+
return _context4.stop();
|
|
10536
10762
|
}
|
|
10537
10763
|
}
|
|
10538
|
-
},
|
|
10764
|
+
}, _callee4);
|
|
10539
10765
|
}));
|
|
10540
10766
|
|
|
10541
10767
|
return function (_x5) {
|
|
10542
|
-
return
|
|
10768
|
+
return _ref5.apply(this, arguments);
|
|
10543
10769
|
};
|
|
10544
10770
|
}())();
|
|
10545
10771
|
|
|
10546
10772
|
case 3:
|
|
10547
|
-
|
|
10773
|
+
_context6.next = 7;
|
|
10548
10774
|
break;
|
|
10549
10775
|
|
|
10550
10776
|
case 5:
|
|
10551
|
-
|
|
10777
|
+
_context6.next = 7;
|
|
10552
10778
|
return controller.pipeline( /*#__PURE__*/function () {
|
|
10553
|
-
var
|
|
10554
|
-
return _regeneratorRuntime().wrap(function
|
|
10779
|
+
var _ref6 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(s) {
|
|
10780
|
+
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
10555
10781
|
while (1) {
|
|
10556
|
-
switch (
|
|
10782
|
+
switch (_context5.prev = _context5.next) {
|
|
10557
10783
|
case 0:
|
|
10558
10784
|
s.goodsListState.selectedGoodIndex = s.goodsListState.selectedGoodIndex.filter(function (e) {
|
|
10559
10785
|
return e !== record.$index;
|
|
@@ -10562,58 +10788,58 @@ var useRowSelection = (function () {
|
|
|
10562
10788
|
|
|
10563
10789
|
case 2:
|
|
10564
10790
|
case "end":
|
|
10565
|
-
return
|
|
10791
|
+
return _context5.stop();
|
|
10566
10792
|
}
|
|
10567
10793
|
}
|
|
10568
|
-
},
|
|
10794
|
+
}, _callee5);
|
|
10569
10795
|
}));
|
|
10570
10796
|
|
|
10571
10797
|
return function (_x6) {
|
|
10572
|
-
return
|
|
10798
|
+
return _ref6.apply(this, arguments);
|
|
10573
10799
|
};
|
|
10574
10800
|
}())();
|
|
10575
10801
|
|
|
10576
10802
|
case 7:
|
|
10577
|
-
|
|
10803
|
+
_context6.next = 9;
|
|
10578
10804
|
return sortOut(selected);
|
|
10579
10805
|
|
|
10580
10806
|
case 9:
|
|
10581
10807
|
case "end":
|
|
10582
|
-
return
|
|
10808
|
+
return _context6.stop();
|
|
10583
10809
|
}
|
|
10584
10810
|
}
|
|
10585
|
-
},
|
|
10811
|
+
}, _callee6);
|
|
10586
10812
|
}));
|
|
10587
10813
|
|
|
10588
10814
|
return function (_x3, _x4) {
|
|
10589
|
-
return
|
|
10815
|
+
return _ref4.apply(this, arguments);
|
|
10590
10816
|
};
|
|
10591
10817
|
}(), [controller]);
|
|
10592
10818
|
var columnTitle = React.useMemo(function () {
|
|
10593
|
-
return
|
|
10819
|
+
return React.createElement(Checkbox, {
|
|
10594
10820
|
onChange: onClickSelectAll,
|
|
10595
|
-
indeterminate:
|
|
10821
|
+
indeterminate: indeterminate,
|
|
10596
10822
|
checked: isAll
|
|
10597
10823
|
});
|
|
10598
|
-
}, [goodsList, selectedRowKeys, onClickSelectAll, isAll]);
|
|
10824
|
+
}, [goodsList, selectedRowKeys, onClickSelectAll, isAll, indeterminate]);
|
|
10599
10825
|
/** 选择了商品后 调整 折扣行 和 被折扣行 */
|
|
10600
10826
|
|
|
10601
10827
|
var sortOut = React.useCallback( /*#__PURE__*/function () {
|
|
10602
|
-
var
|
|
10603
|
-
return _regeneratorRuntime().wrap(function
|
|
10828
|
+
var _ref7 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee8(selected) {
|
|
10829
|
+
return _regeneratorRuntime().wrap(function _callee8$(_context8) {
|
|
10604
10830
|
while (1) {
|
|
10605
|
-
switch (
|
|
10831
|
+
switch (_context8.prev = _context8.next) {
|
|
10606
10832
|
case 0:
|
|
10607
|
-
|
|
10833
|
+
_context8.next = 2;
|
|
10608
10834
|
return controller.wait();
|
|
10609
10835
|
|
|
10610
10836
|
case 2:
|
|
10611
|
-
|
|
10837
|
+
_context8.next = 4;
|
|
10612
10838
|
return controller.pipeline( /*#__PURE__*/function () {
|
|
10613
|
-
var
|
|
10614
|
-
return _regeneratorRuntime().wrap(function
|
|
10839
|
+
var _ref8 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7(s) {
|
|
10840
|
+
return _regeneratorRuntime().wrap(function _callee7$(_context7) {
|
|
10615
10841
|
while (1) {
|
|
10616
|
-
switch (
|
|
10842
|
+
switch (_context7.prev = _context7.next) {
|
|
10617
10843
|
case 0:
|
|
10618
10844
|
s.goodsListState.selectedGoodIndex.forEach(function ($index) {
|
|
10619
10845
|
var goods = s.goodsListState.goodsMap.get($index);
|
|
@@ -10634,27 +10860,27 @@ var useRowSelection = (function () {
|
|
|
10634
10860
|
|
|
10635
10861
|
case 1:
|
|
10636
10862
|
case "end":
|
|
10637
|
-
return
|
|
10863
|
+
return _context7.stop();
|
|
10638
10864
|
}
|
|
10639
10865
|
}
|
|
10640
|
-
},
|
|
10866
|
+
}, _callee7);
|
|
10641
10867
|
}));
|
|
10642
10868
|
|
|
10643
10869
|
return function (_x8) {
|
|
10644
|
-
return
|
|
10870
|
+
return _ref8.apply(this, arguments);
|
|
10645
10871
|
};
|
|
10646
10872
|
}())();
|
|
10647
10873
|
|
|
10648
10874
|
case 4:
|
|
10649
10875
|
case "end":
|
|
10650
|
-
return
|
|
10876
|
+
return _context8.stop();
|
|
10651
10877
|
}
|
|
10652
10878
|
}
|
|
10653
|
-
},
|
|
10879
|
+
}, _callee8);
|
|
10654
10880
|
}));
|
|
10655
10881
|
|
|
10656
10882
|
return function (_x7) {
|
|
10657
|
-
return
|
|
10883
|
+
return _ref7.apply(this, arguments);
|
|
10658
10884
|
};
|
|
10659
10885
|
}(), [controller]);
|
|
10660
10886
|
React.useEffect(function () {
|
|
@@ -10668,8 +10894,8 @@ var useRowSelection = (function () {
|
|
|
10668
10894
|
};
|
|
10669
10895
|
});
|
|
10670
10896
|
|
|
10671
|
-
var css_248z$
|
|
10672
|
-
styleInject(css_248z$
|
|
10897
|
+
var css_248z$7 = ".kts-invoice-operate-goods-list .kts-invoice-operate-goods-list-table-tax-rate .ktsAnt3x-select-selection-selected-value {\n float: right;\n}\n.kts-invoice-operate-goods-list .kts-invoice-operate-goods-list-able {\n display: flex;\n padding: 10px;\n border-bottom: 1px solid #dcdcdc;\n}\n.kts-invoice-operate-goods-list .kts-invoice-operate-goods-list-able-list {\n flex: 1;\n display: flex;\n gap: 10px;\n padding-right: 10px;\n}\n.kts-invoice-operate-goods-list .kts-invoice-operate-goods-list-able-list button {\n padding-left: 10px;\n padding-right: 10px;\n border-radius: 12px;\n color: #0074ff;\n border: 1px solid #0074ff;\n height: 24px;\n line-height: 22px;\n cursor: pointer;\n font-size: 12px;\n}\n.kts-invoice-operate-goods-list .kts-invoice-operate-goods-list-able-list button[disabled] {\n color: rgba(0, 0, 0, 0.25);\n border: 1px solid;\n}\n.kts-invoice-operate-goods-list .kts-invoice-operate-goods-list-able-extend {\n flex: none;\n display: flex;\n}\n.kts-invoice-operate-goods-list .kts-invoice-operate-goods-list-able-extend label {\n margin-right: 5px;\n}\n.kts-invoice-operate-goods-list-table.kts-invoice-operate-prefab .ktsAnt3x-table-row {\n color: rgba(0, 0, 0, 0.25);\n background: #f5f5f5;\n}\n.kts-invoice-operate-goods-list-table {\n border-bottom: 1px solid #dcdcdc;\n}\n.kts-invoice-operate-goods-list-table .kts-invoice-operate-goods-discount {\n color: rgba(0, 0, 0, 0.25);\n background: #f5f5f5;\n}\n.kts-invoice-operate-goods-list-table .kts-invoice-operate-goods-list-able-list-itemName-import {\n display: flex;\n}\n.kts-invoice-operate-goods-list-table .kts-invoice-operate-goods-list-able-list-itemName-import .ktsAnt3x-btn {\n display: block;\n line-height: 0;\n width: auto;\n padding-right: 5px;\n}\n.kts-invoice-operate-goods-list-table .ktsAnt3x-form-item-children {\n height: 30px;\n display: block;\n}\n.kts-invoice-operate-goods-list-table .ktsAnt3x-table-body {\n height: 263px;\n}\n.kts-invoice-operate-goods-list-table .ktsAnt3x-form-explain {\n position: absolute;\n right: 6px;\n top: 6px;\n}\n.kts-invoice-operate-goods-list-table table {\n border-bottom: 1px solid #d9d9d9 !important;\n}\n.kts-invoice-operate-goods-list-table table > .ktsAnt3x-table-tbody > tr > td {\n padding: 0 !important;\n}\n.kts-invoice-operate-goods-list-table table > .ktsAnt3x-table-tbody > tr > td .ktsAnt3x-form-explain {\n display: none;\n}\n.kts-invoice-operate-goods-list-table table > .ktsAnt3x-table-tbody > tr > td .ktsAnt3x-form-item {\n padding: 0;\n margin: 0;\n}\n.kts-invoice-operate-goods-list-table table > .ktsAnt3x-table-tbody > tr > td .ktsAnt3x-form-item .ktsAnt3x-form-item-control {\n line-height: inherit;\n}\n.kts-invoice-operate-goods-list-table table > .ktsAnt3x-table-tbody > tr > td .has-error .ktsAnt3x-select-selection,\n.kts-invoice-operate-goods-list-table table > .ktsAnt3x-table-tbody > tr > td .has-error .ktsAnt3x-input,\n.kts-invoice-operate-goods-list-table table > .ktsAnt3x-table-tbody > tr > td .has-error .ktsAnt3x-input:hover {\n border-right-width: 1px !important;\n border-top-width: 1px;\n border-left-width: 1px;\n border-bottom-width: 1px;\n}\n.kts-invoice-operate-goods-list-table table > .ktsAnt3x-table-tbody > tr > td .ktsAnt3x-select-selection--single,\n.kts-invoice-operate-goods-list-table table > .ktsAnt3x-table-tbody > tr > td .ktsAnt3x-select-auto-complete.ktsAnt3x-select .ktsAnt3x-input:hover,\n.kts-invoice-operate-goods-list-table table > .ktsAnt3x-table-tbody > tr > td .ktsAnt3x-input {\n height: 30px;\n border-radius: 0;\n border-right-width: 0 !important;\n border-top-width: 0;\n border-left-width: 0;\n border-bottom-width: 0;\n box-shadow: none;\n}\n.kts-invoice-operate-goods-list-table-search-protrude {\n background: #ff0;\n color: #000;\n font-weight: bold;\n}\n";
|
|
10898
|
+
styleInject(css_248z$7);
|
|
10673
10899
|
|
|
10674
10900
|
var GoodsList = /*#__PURE__*/function (_React$Component) {
|
|
10675
10901
|
_inherits(GoodsList, _React$Component);
|
|
@@ -10685,7 +10911,7 @@ var GoodsList = /*#__PURE__*/function (_React$Component) {
|
|
|
10685
10911
|
_createClass(GoodsList, [{
|
|
10686
10912
|
key: "render",
|
|
10687
10913
|
value: function render() {
|
|
10688
|
-
return
|
|
10914
|
+
return React.createElement(Main, _objectSpread2({}, this.props));
|
|
10689
10915
|
}
|
|
10690
10916
|
}]);
|
|
10691
10917
|
|
|
@@ -10700,6 +10926,15 @@ var Main = decorator(Form.create())(function (props) {
|
|
|
10700
10926
|
var isprefab = controller.useMemo(function (s) {
|
|
10701
10927
|
return s.model === 'prefab';
|
|
10702
10928
|
}, []);
|
|
10929
|
+
var dataSource = controller.useMemo(function (s) {
|
|
10930
|
+
return s.goodsListState.goodsList;
|
|
10931
|
+
}, []);
|
|
10932
|
+
var searchValue = controller.useMemo(function (s) {
|
|
10933
|
+
return s.goodsListState.searchValue;
|
|
10934
|
+
}, []);
|
|
10935
|
+
var dataSourceSearch = React.useMemo(function () {
|
|
10936
|
+
return controller.getGoodsSearch(dataSource, searchValue);
|
|
10937
|
+
}, [dataSource, searchValue, controller]);
|
|
10703
10938
|
/** 表格行事件 */
|
|
10704
10939
|
|
|
10705
10940
|
var _onRow = useOnRow();
|
|
@@ -10854,22 +11089,22 @@ var Main = decorator(Form.create())(function (props) {
|
|
|
10854
11089
|
};
|
|
10855
11090
|
}())();
|
|
10856
11091
|
}, [controller, props.isSwitchTax]);
|
|
10857
|
-
return
|
|
11092
|
+
return React.createElement("div", {
|
|
10858
11093
|
className: "kts-invoice-operate-goods-list",
|
|
10859
11094
|
onClick: function onClick(e) {
|
|
10860
11095
|
e.stopPropagation();
|
|
10861
11096
|
}
|
|
10862
|
-
},
|
|
11097
|
+
}, React.createElement("div", {
|
|
10863
11098
|
className: "kts-invoice-operate-goods-list-able"
|
|
10864
|
-
},
|
|
11099
|
+
}, React.createElement("div", {
|
|
10865
11100
|
className: "kts-invoice-operate-goods-list-able-list"
|
|
10866
|
-
},
|
|
11101
|
+
}, React.createElement(AddRowButton, null), React.createElement(DelRowButton, null), React.createElement(AddDiscountRowButton, null), React.createElement(EndowCodeButton, null), React.createElement(Search, null)), React.createElement("div", {
|
|
10867
11102
|
className: "kts-invoice-operate-goods-list-able-extend"
|
|
10868
|
-
}, props.menuExpansion,
|
|
11103
|
+
}, props.menuExpansion, React.createElement(TaxIncludedSwitch, null))), React.createElement("div", {
|
|
10869
11104
|
className: classnames('kts-invoice-operate-goods-list-table', {
|
|
10870
11105
|
'kts-invoice-operate-prefab': isprefab
|
|
10871
11106
|
})
|
|
10872
|
-
},
|
|
11107
|
+
}, React.createElement(TableVirtual, {
|
|
10873
11108
|
bordered: true,
|
|
10874
11109
|
size: "small",
|
|
10875
11110
|
rowKey: "$index",
|
|
@@ -10882,9 +11117,7 @@ var Main = decorator(Form.create())(function (props) {
|
|
|
10882
11117
|
row: TableRow
|
|
10883
11118
|
}
|
|
10884
11119
|
},
|
|
10885
|
-
dataSource:
|
|
10886
|
-
return s.goodsListState.goodsList;
|
|
10887
|
-
}, [controller]),
|
|
11120
|
+
dataSource: dataSourceSearch,
|
|
10888
11121
|
columns: useColumns(props.form),
|
|
10889
11122
|
rowSelection: useRowSelection(),
|
|
10890
11123
|
onRow: function onRow(record) {
|
|
@@ -10894,11 +11127,11 @@ var Main = decorator(Form.create())(function (props) {
|
|
|
10894
11127
|
}
|
|
10895
11128
|
};
|
|
10896
11129
|
}
|
|
10897
|
-
})),
|
|
11130
|
+
})), React.createElement("div", null, React.createElement(Statistics, null)));
|
|
10898
11131
|
});
|
|
10899
11132
|
|
|
10900
|
-
var css_248z$
|
|
10901
|
-
styleInject(css_248z$
|
|
11133
|
+
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";
|
|
11134
|
+
styleInject(css_248z$8);
|
|
10902
11135
|
|
|
10903
11136
|
var TextArea = Input.TextArea;
|
|
10904
11137
|
|
|
@@ -10919,7 +11152,7 @@ var Buyer = /*#__PURE__*/function (_React$Component) {
|
|
|
10919
11152
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
10920
11153
|
|
|
10921
11154
|
_this.render = function () {
|
|
10922
|
-
return
|
|
11155
|
+
return React.createElement(Main$1, _objectSpread2({}, _this.props));
|
|
10923
11156
|
};
|
|
10924
11157
|
|
|
10925
11158
|
return _this;
|
|
@@ -10950,7 +11183,7 @@ var Main$1 = decorator(Form.create())(function (props) {
|
|
|
10950
11183
|
return [{
|
|
10951
11184
|
id: 'sellerName',
|
|
10952
11185
|
label: '销售方名称',
|
|
10953
|
-
node:
|
|
11186
|
+
node: React.createElement(Input, {
|
|
10954
11187
|
readOnly: model === 'prefab',
|
|
10955
11188
|
size: "small"
|
|
10956
11189
|
}),
|
|
@@ -10963,7 +11196,7 @@ var Main$1 = decorator(Form.create())(function (props) {
|
|
|
10963
11196
|
}, {
|
|
10964
11197
|
id: 'sellerNo',
|
|
10965
11198
|
label: '销售方纳税人识别号',
|
|
10966
|
-
node:
|
|
11199
|
+
node: React.createElement(Input, {
|
|
10967
11200
|
readOnly: model === 'prefab',
|
|
10968
11201
|
size: "small"
|
|
10969
11202
|
}),
|
|
@@ -10976,7 +11209,7 @@ var Main$1 = decorator(Form.create())(function (props) {
|
|
|
10976
11209
|
}, {
|
|
10977
11210
|
id: 'sellerAddress',
|
|
10978
11211
|
label: '销售方地址及电话',
|
|
10979
|
-
node:
|
|
11212
|
+
node: React.createElement(Input, {
|
|
10980
11213
|
readOnly: model === 'prefab',
|
|
10981
11214
|
size: "small"
|
|
10982
11215
|
}),
|
|
@@ -10989,7 +11222,7 @@ var Main$1 = decorator(Form.create())(function (props) {
|
|
|
10989
11222
|
}, {
|
|
10990
11223
|
id: 'sellerBank',
|
|
10991
11224
|
label: '销售方开户行及账号',
|
|
10992
|
-
node:
|
|
11225
|
+
node: React.createElement(Input, {
|
|
10993
11226
|
readOnly: model === 'prefab',
|
|
10994
11227
|
size: "small"
|
|
10995
11228
|
}),
|
|
@@ -11015,35 +11248,35 @@ var Main$1 = decorator(Form.create())(function (props) {
|
|
|
11015
11248
|
return getFieldDecorator(e.id, e.options)(e.node);
|
|
11016
11249
|
}
|
|
11017
11250
|
}, [props.formRender]);
|
|
11018
|
-
return
|
|
11251
|
+
return React.createElement(Form, null, React.createElement("div", {
|
|
11019
11252
|
className: "kts-invoice-operate-seller"
|
|
11020
|
-
},
|
|
11253
|
+
}, React.createElement("div", {
|
|
11021
11254
|
className: "kts-invoice-operate-seller-message"
|
|
11022
|
-
},
|
|
11255
|
+
}, React.createElement("div", {
|
|
11023
11256
|
className: "kts-invoice-operate-seller-title"
|
|
11024
|
-
},
|
|
11257
|
+
}, React.createElement("label", null, "\u9500\u552E\u65B9")), React.createElement(Descriptions, {
|
|
11025
11258
|
className: "kts-invoice-operate-seller-message-list",
|
|
11026
11259
|
size: "small",
|
|
11027
11260
|
column: 1,
|
|
11028
11261
|
bordered: true
|
|
11029
11262
|
}, formItem.map(function (e, i) {
|
|
11030
|
-
return
|
|
11263
|
+
return React.createElement(Descriptions.Item, {
|
|
11031
11264
|
key: i,
|
|
11032
11265
|
label: e.label
|
|
11033
|
-
},
|
|
11034
|
-
}))),
|
|
11266
|
+
}, React.createElement(Form.Item, null, createFormItem(e)));
|
|
11267
|
+
}))), React.createElement("div", {
|
|
11035
11268
|
className: "kts-invoice-operate-seller-remarks"
|
|
11036
|
-
},
|
|
11269
|
+
}, React.createElement("div", {
|
|
11037
11270
|
className: "kts-invoice-operate-seller-title"
|
|
11038
|
-
},
|
|
11271
|
+
}, React.createElement("label", null, "\u5907\u6CE8")), React.createElement("div", {
|
|
11039
11272
|
className: "kts-invoice-operate-seller-remarks-value"
|
|
11040
11273
|
}, getFieldDecorator('remarks', {
|
|
11041
11274
|
initialValue: props.defaultsellerRemarks
|
|
11042
|
-
})(
|
|
11275
|
+
})(React.createElement(TextArea, null))))));
|
|
11043
11276
|
});
|
|
11044
11277
|
|
|
11045
|
-
var css_248z$
|
|
11046
|
-
styleInject(css_248z$
|
|
11278
|
+
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";
|
|
11279
|
+
styleInject(css_248z$9);
|
|
11047
11280
|
|
|
11048
11281
|
var Sign = decorator(Form.create())(function (props) {
|
|
11049
11282
|
var form = props.form;
|
|
@@ -11056,21 +11289,21 @@ var Sign = decorator(Form.create())(function (props) {
|
|
|
11056
11289
|
}, []); // 注册 form
|
|
11057
11290
|
|
|
11058
11291
|
controller.useForm('sign', form);
|
|
11059
|
-
return
|
|
11292
|
+
return React.createElement("div", {
|
|
11060
11293
|
className: "kts-invoice-operate-sign"
|
|
11061
|
-
},
|
|
11294
|
+
}, React.createElement(Form, _objectSpread2({}, formItemLayout), React.createElement("div", null, React.createElement(Form.Item, {
|
|
11062
11295
|
label: "\u6536\u6B3E\u4EBA"
|
|
11063
11296
|
}, getFieldDecorator('payee', {
|
|
11064
11297
|
initialValue: props.defaultPayee
|
|
11065
|
-
})(
|
|
11298
|
+
})(React.createElement(Input, {
|
|
11066
11299
|
size: "small"
|
|
11067
|
-
})))),
|
|
11300
|
+
})))), React.createElement("div", null, React.createElement(Form.Item, {
|
|
11068
11301
|
label: "\u590D\u6838\u4EBA"
|
|
11069
11302
|
}, getFieldDecorator('reviewer', {
|
|
11070
11303
|
initialValue: props.defaultReviewer
|
|
11071
|
-
})(
|
|
11304
|
+
})(React.createElement(Input, {
|
|
11072
11305
|
size: "small"
|
|
11073
|
-
})))),
|
|
11306
|
+
})))), React.createElement("div", null, React.createElement(Form.Item, {
|
|
11074
11307
|
label: "\u5F00\u7968\u4EBA"
|
|
11075
11308
|
}, getFieldDecorator('issuer', {
|
|
11076
11309
|
initialValue: props.defaultIssuer,
|
|
@@ -11078,7 +11311,7 @@ var Sign = decorator(Form.create())(function (props) {
|
|
|
11078
11311
|
required: true,
|
|
11079
11312
|
message: '请输入开票人'
|
|
11080
11313
|
}]
|
|
11081
|
-
})(
|
|
11314
|
+
})(React.createElement(Input, {
|
|
11082
11315
|
size: "small"
|
|
11083
11316
|
}))))));
|
|
11084
11317
|
});
|
|
@@ -11115,7 +11348,7 @@ var ImportBuyerButton = (function () {
|
|
|
11115
11348
|
};
|
|
11116
11349
|
}())();
|
|
11117
11350
|
}, [controller]);
|
|
11118
|
-
return
|
|
11351
|
+
return React.createElement(React.Fragment, null, controller.getBuyerList && React.createElement(Button, {
|
|
11119
11352
|
type: "link",
|
|
11120
11353
|
icon: "plus-circle",
|
|
11121
11354
|
onClick: onClick
|
|
@@ -11154,29 +11387,29 @@ var BuyerNameInput = (function (props) {
|
|
|
11154
11387
|
var content = React.useMemo(function () {
|
|
11155
11388
|
var _dataSource$recent;
|
|
11156
11389
|
|
|
11157
|
-
return
|
|
11390
|
+
return React.createElement("div", {
|
|
11158
11391
|
className: 'kts-invoice-operate-buyer-name-content'
|
|
11159
|
-
}, loading ?
|
|
11392
|
+
}, loading ? React.createElement("div", {
|
|
11160
11393
|
style: {
|
|
11161
11394
|
textAlign: 'center'
|
|
11162
11395
|
}
|
|
11163
|
-
},
|
|
11396
|
+
}, React.createElement(Spin, null)) : React.createElement(React.Fragment, null, React.createElement("div", {
|
|
11164
11397
|
className: 'kts-invoice-operate-buyer-name-content-block',
|
|
11165
11398
|
style: {
|
|
11166
11399
|
padding: '14px 10px'
|
|
11167
11400
|
}
|
|
11168
|
-
},
|
|
11401
|
+
}, React.createElement("label", {
|
|
11169
11402
|
style: {
|
|
11170
11403
|
marginBottom: 10
|
|
11171
11404
|
}
|
|
11172
|
-
}, "\u6700\u8FD1\u5F00\u5177"),
|
|
11405
|
+
}, "\u6700\u8FD1\u5F00\u5177"), React.createElement("ul", {
|
|
11173
11406
|
className: 'kts-invoice-operate-buyer-name-content-recently-issued'
|
|
11174
|
-
}, !dataSource.recent || dataSource.recent.length <= 0 ?
|
|
11407
|
+
}, !dataSource.recent || dataSource.recent.length <= 0 ? React.createElement(Empty, {
|
|
11175
11408
|
image: Empty.PRESENTED_IMAGE_SIMPLE
|
|
11176
11409
|
}) : (_dataSource$recent = dataSource.recent) === null || _dataSource$recent === void 0 ? void 0 : _dataSource$recent.map(function (e, i) {
|
|
11177
11410
|
var _dataSource$recent$le, _dataSource$recent2;
|
|
11178
11411
|
|
|
11179
|
-
return
|
|
11412
|
+
return React.createElement("li", {
|
|
11180
11413
|
key: i,
|
|
11181
11414
|
onClick: function onClick() {
|
|
11182
11415
|
onClickItem(e);
|
|
@@ -11184,37 +11417,37 @@ var BuyerNameInput = (function (props) {
|
|
|
11184
11417
|
style: {
|
|
11185
11418
|
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)
|
|
11186
11419
|
}
|
|
11187
|
-
},
|
|
11188
|
-
}))),
|
|
11420
|
+
}, React.createElement(MyTag, null, e.buyerName));
|
|
11421
|
+
}))), React.createElement(Divider, {
|
|
11189
11422
|
style: {
|
|
11190
11423
|
margin: "0 6px"
|
|
11191
11424
|
}
|
|
11192
|
-
}),
|
|
11425
|
+
}), React.createElement("div", {
|
|
11193
11426
|
className: 'kts-invoice-operate-buyer-name-content-block',
|
|
11194
11427
|
style: {
|
|
11195
11428
|
padding: '14px 10px 4px'
|
|
11196
11429
|
}
|
|
11197
|
-
},
|
|
11430
|
+
}, React.createElement("label", {
|
|
11198
11431
|
style: {
|
|
11199
11432
|
padding: '0 10px'
|
|
11200
11433
|
}
|
|
11201
|
-
}, "\u9009\u62E9\u516C\u53F8"),
|
|
11434
|
+
}, "\u9009\u62E9\u516C\u53F8"), React.createElement("div", {
|
|
11202
11435
|
style: {
|
|
11203
11436
|
maxHeight: 200,
|
|
11204
11437
|
overflow: "auto"
|
|
11205
11438
|
}
|
|
11206
|
-
}, !dataSource.list || dataSource.list.length <= 0 ?
|
|
11439
|
+
}, !dataSource.list || dataSource.list.length <= 0 ? React.createElement(Empty, {
|
|
11207
11440
|
image: Empty.PRESENTED_IMAGE_SIMPLE
|
|
11208
11441
|
}) : dataSource.list.map(function (e, i) {
|
|
11209
|
-
return
|
|
11442
|
+
return React.createElement("ul", {
|
|
11210
11443
|
key: i,
|
|
11211
11444
|
onClick: function onClick() {
|
|
11212
11445
|
onClickItem(e);
|
|
11213
11446
|
},
|
|
11214
11447
|
className: 'kts-invoice-operate-buyer-name-content-select-company'
|
|
11215
|
-
},
|
|
11448
|
+
}, React.createElement("li", {
|
|
11216
11449
|
title: e.buyerName
|
|
11217
|
-
}, e.buyerName),
|
|
11450
|
+
}, e.buyerName), React.createElement("li", {
|
|
11218
11451
|
title: e.buyerNo
|
|
11219
11452
|
}, e.buyerNo));
|
|
11220
11453
|
})))));
|
|
@@ -11255,7 +11488,7 @@ var BuyerNameInput = (function (props) {
|
|
|
11255
11488
|
}, [visible, props.value]);
|
|
11256
11489
|
|
|
11257
11490
|
if (model === 'prefab' || !autoContainer) {
|
|
11258
|
-
return
|
|
11491
|
+
return React.createElement(Input, {
|
|
11259
11492
|
size: "small",
|
|
11260
11493
|
autoComplete: "off",
|
|
11261
11494
|
value: props.value,
|
|
@@ -11266,14 +11499,14 @@ var BuyerNameInput = (function (props) {
|
|
|
11266
11499
|
});
|
|
11267
11500
|
}
|
|
11268
11501
|
|
|
11269
|
-
return
|
|
11502
|
+
return React.createElement(Popover, {
|
|
11270
11503
|
onVisibleChange: setVisible,
|
|
11271
11504
|
overlayClassName: 'kts-invoice-operate-buyer-name-popover',
|
|
11272
11505
|
placement: "bottomLeft",
|
|
11273
11506
|
trigger: "click",
|
|
11274
11507
|
visible: visible,
|
|
11275
11508
|
content: content
|
|
11276
|
-
},
|
|
11509
|
+
}, React.createElement(Input, {
|
|
11277
11510
|
size: "small",
|
|
11278
11511
|
autoComplete: "off",
|
|
11279
11512
|
value: props.value,
|
|
@@ -11351,7 +11584,7 @@ function useDataSource() {
|
|
|
11351
11584
|
}
|
|
11352
11585
|
|
|
11353
11586
|
function MyTag(props) {
|
|
11354
|
-
return
|
|
11587
|
+
return React.createElement("span", {
|
|
11355
11588
|
className: 'kts-invoice-operate-buyer-name-content-tag',
|
|
11356
11589
|
title: props.children
|
|
11357
11590
|
}, props.children);
|
|
@@ -11365,8 +11598,8 @@ function interval(i, t) {
|
|
|
11365
11598
|
}
|
|
11366
11599
|
}
|
|
11367
11600
|
|
|
11368
|
-
var css_248z$
|
|
11369
|
-
styleInject(css_248z$
|
|
11601
|
+
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";
|
|
11602
|
+
styleInject(css_248z$a);
|
|
11370
11603
|
|
|
11371
11604
|
var Text$5 = Typography.Text;
|
|
11372
11605
|
|
|
@@ -11387,7 +11620,7 @@ var Buyer$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
11387
11620
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
11388
11621
|
|
|
11389
11622
|
_this.render = function () {
|
|
11390
|
-
return
|
|
11623
|
+
return React.createElement(Main$2, _objectSpread2({}, _this.props));
|
|
11391
11624
|
};
|
|
11392
11625
|
|
|
11393
11626
|
return _this;
|
|
@@ -11418,7 +11651,7 @@ var Main$2 = decorator(Form.create())(function (props) {
|
|
|
11418
11651
|
return [{
|
|
11419
11652
|
id: 'buyerName',
|
|
11420
11653
|
label: '购买方名称',
|
|
11421
|
-
node:
|
|
11654
|
+
node: React.createElement(Input, {
|
|
11422
11655
|
size: "small",
|
|
11423
11656
|
autoComplete: "off",
|
|
11424
11657
|
readOnly: model === 'prefab'
|
|
@@ -11432,7 +11665,7 @@ var Main$2 = decorator(Form.create())(function (props) {
|
|
|
11432
11665
|
}, {
|
|
11433
11666
|
id: 'buyerNo',
|
|
11434
11667
|
label: '购买方纳税人识别号',
|
|
11435
|
-
node:
|
|
11668
|
+
node: React.createElement(Input, {
|
|
11436
11669
|
size: "small",
|
|
11437
11670
|
autoComplete: "off",
|
|
11438
11671
|
readOnly: model === 'prefab'
|
|
@@ -11446,7 +11679,7 @@ var Main$2 = decorator(Form.create())(function (props) {
|
|
|
11446
11679
|
}, {
|
|
11447
11680
|
id: 'buyerAddress',
|
|
11448
11681
|
label: '购买方地址及电话',
|
|
11449
|
-
node:
|
|
11682
|
+
node: React.createElement(Input, {
|
|
11450
11683
|
size: "small",
|
|
11451
11684
|
autoComplete: "off",
|
|
11452
11685
|
readOnly: model === 'prefab'
|
|
@@ -11460,7 +11693,7 @@ var Main$2 = decorator(Form.create())(function (props) {
|
|
|
11460
11693
|
}, {
|
|
11461
11694
|
id: 'buyerBank',
|
|
11462
11695
|
label: '购买方开户行及账号',
|
|
11463
|
-
node:
|
|
11696
|
+
node: React.createElement(Input, {
|
|
11464
11697
|
size: "small",
|
|
11465
11698
|
autoComplete: "off",
|
|
11466
11699
|
readOnly: model === 'prefab'
|
|
@@ -11482,7 +11715,7 @@ var Main$2 = decorator(Form.create())(function (props) {
|
|
|
11482
11715
|
if (e.options.rules.some(function (e) {
|
|
11483
11716
|
return e.required;
|
|
11484
11717
|
})) {
|
|
11485
|
-
return
|
|
11718
|
+
return React.createElement(React.Fragment, null, React.createElement(Text$5, {
|
|
11486
11719
|
type: "danger"
|
|
11487
11720
|
}, "*"), e.label);
|
|
11488
11721
|
} else {
|
|
@@ -11492,29 +11725,29 @@ var Main$2 = decorator(Form.create())(function (props) {
|
|
|
11492
11725
|
return e.label;
|
|
11493
11726
|
}
|
|
11494
11727
|
}, []);
|
|
11495
|
-
return
|
|
11728
|
+
return React.createElement(Form, null, React.createElement("div", {
|
|
11496
11729
|
className: "kts-invoice-operate-buyer"
|
|
11497
|
-
},
|
|
11730
|
+
}, React.createElement("div", {
|
|
11498
11731
|
className: "kts-invoice-operate-buyer-message"
|
|
11499
|
-
},
|
|
11732
|
+
}, React.createElement("div", {
|
|
11500
11733
|
className: "kts-invoice-operate-buyer-title"
|
|
11501
|
-
},
|
|
11734
|
+
}, React.createElement("label", null, "\u8D2D\u4E70\u65B9")), React.createElement("div", {
|
|
11502
11735
|
className: "kts-invoice-operate-buyer-message-Import"
|
|
11503
|
-
}, model !== 'prefab' &&
|
|
11736
|
+
}, model !== 'prefab' && React.createElement(ImportBuyerButton, null)), React.createElement(Descriptions, {
|
|
11504
11737
|
className: "kts-invoice-operate-buyer-message-list",
|
|
11505
11738
|
size: "small",
|
|
11506
11739
|
column: 1,
|
|
11507
11740
|
bordered: true
|
|
11508
11741
|
}, formItem.map(function (item, i) {
|
|
11509
|
-
return
|
|
11742
|
+
return React.createElement(Descriptions.Item, {
|
|
11510
11743
|
key: i,
|
|
11511
11744
|
label: getlabel(item)
|
|
11512
|
-
},
|
|
11513
|
-
}))),
|
|
11745
|
+
}, React.createElement(Form.Item, null, getFieldDecorator(item.id, item.options)(autoContainer ? item.id === 'buyerName' ? React.createElement(BuyerNameInput, null) : item.node : item.node)));
|
|
11746
|
+
}))), React.createElement("div", {
|
|
11514
11747
|
className: "kts-invoice-operate-buyer-password"
|
|
11515
|
-
},
|
|
11748
|
+
}, React.createElement("div", {
|
|
11516
11749
|
className: "kts-invoice-operate-buyer-title"
|
|
11517
|
-
},
|
|
11750
|
+
}, React.createElement("label", null, "\u5BC6\u7801\u533A")), React.createElement("div", null))));
|
|
11518
11751
|
});
|
|
11519
11752
|
|
|
11520
11753
|
var ImportBuyerDrawer = (function () {
|
|
@@ -11548,7 +11781,7 @@ var ImportBuyerDrawer = (function () {
|
|
|
11548
11781
|
};
|
|
11549
11782
|
}())();
|
|
11550
11783
|
}, [controller]);
|
|
11551
|
-
return
|
|
11784
|
+
return React.createElement(Drawer, {
|
|
11552
11785
|
title: "\u8D2D\u65B9\u5217\u8868",
|
|
11553
11786
|
placement: "right",
|
|
11554
11787
|
// closable={false}
|
|
@@ -11556,7 +11789,7 @@ var ImportBuyerDrawer = (function () {
|
|
|
11556
11789
|
width: 983,
|
|
11557
11790
|
onClose: onClose,
|
|
11558
11791
|
visible: visible
|
|
11559
|
-
}, topExpand,
|
|
11792
|
+
}, topExpand, React.createElement(DrawerBody$1, null));
|
|
11560
11793
|
});
|
|
11561
11794
|
|
|
11562
11795
|
var DrawerBody$1 = function DrawerBody() {
|
|
@@ -11577,7 +11810,7 @@ var DrawerBody$1 = function DrawerBody() {
|
|
|
11577
11810
|
}
|
|
11578
11811
|
});
|
|
11579
11812
|
}, [controller]);
|
|
11580
|
-
return
|
|
11813
|
+
return React.createElement(Table, {
|
|
11581
11814
|
bordered: true,
|
|
11582
11815
|
size: "small",
|
|
11583
11816
|
columns: columns,
|
|
@@ -11678,7 +11911,7 @@ var ImportGoodsDrawer = (function () {
|
|
|
11678
11911
|
};
|
|
11679
11912
|
}())();
|
|
11680
11913
|
}, [controller]);
|
|
11681
|
-
return
|
|
11914
|
+
return React.createElement(Drawer, {
|
|
11682
11915
|
title: "\u5546\u54C1\u5217\u8868",
|
|
11683
11916
|
placement: "right",
|
|
11684
11917
|
// closable={false}
|
|
@@ -11686,11 +11919,11 @@ var ImportGoodsDrawer = (function () {
|
|
|
11686
11919
|
width: 983,
|
|
11687
11920
|
onClose: onClose,
|
|
11688
11921
|
visible: visible
|
|
11689
|
-
}, topExpand &&
|
|
11922
|
+
}, topExpand && React.createElement("div", {
|
|
11690
11923
|
style: {
|
|
11691
11924
|
marginBottom: 10
|
|
11692
11925
|
}
|
|
11693
|
-
}, topExpand),
|
|
11926
|
+
}, topExpand), React.createElement(DrawerBody$2, null));
|
|
11694
11927
|
});
|
|
11695
11928
|
|
|
11696
11929
|
var DrawerBody$2 = function DrawerBody() {
|
|
@@ -11712,7 +11945,7 @@ var DrawerBody$2 = function DrawerBody() {
|
|
|
11712
11945
|
}
|
|
11713
11946
|
});
|
|
11714
11947
|
}, [controller]);
|
|
11715
|
-
return
|
|
11948
|
+
return React.createElement(Table, {
|
|
11716
11949
|
bordered: true,
|
|
11717
11950
|
size: "small",
|
|
11718
11951
|
columns: columns,
|
|
@@ -11874,8 +12107,8 @@ function cutStr(str, L) {
|
|
|
11874
12107
|
}
|
|
11875
12108
|
}
|
|
11876
12109
|
|
|
11877
|
-
var css_248z$
|
|
11878
|
-
styleInject(css_248z$
|
|
12110
|
+
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";
|
|
12111
|
+
styleInject(css_248z$b);
|
|
11879
12112
|
|
|
11880
12113
|
var TreeNode = Tree.TreeNode;
|
|
11881
12114
|
var confirm = Modal.confirm;
|
|
@@ -11979,7 +12212,7 @@ var EndowCodeDrawer = (function () {
|
|
|
11979
12212
|
setDefaultValue(undefined);
|
|
11980
12213
|
}
|
|
11981
12214
|
}, [visible]);
|
|
11982
|
-
return
|
|
12215
|
+
return React.createElement(Drawer, {
|
|
11983
12216
|
title: "\u8D4B\u7801",
|
|
11984
12217
|
placement: "right",
|
|
11985
12218
|
destroyOnClose: true,
|
|
@@ -11987,7 +12220,7 @@ var EndowCodeDrawer = (function () {
|
|
|
11987
12220
|
width: 383,
|
|
11988
12221
|
onClose: onClose,
|
|
11989
12222
|
visible: visible
|
|
11990
|
-
}, defaultValue &&
|
|
12223
|
+
}, defaultValue && React.createElement(DrawerBody$3, {
|
|
11991
12224
|
defaultValue: defaultValue
|
|
11992
12225
|
}));
|
|
11993
12226
|
});
|
|
@@ -12127,7 +12360,7 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
12127
12360
|
};
|
|
12128
12361
|
}());
|
|
12129
12362
|
}, [actions, dataSource, readOnlyTaxRate]);
|
|
12130
|
-
return
|
|
12363
|
+
return React.createElement(Select, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
12131
12364
|
showSearch: true,
|
|
12132
12365
|
showArrow: false,
|
|
12133
12366
|
notFoundContent: null,
|
|
@@ -12135,7 +12368,7 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
12135
12368
|
onSearch: onSearch,
|
|
12136
12369
|
onChange: onChange
|
|
12137
12370
|
}), dataSource.map(function (e) {
|
|
12138
|
-
return
|
|
12371
|
+
return React.createElement(Select.Option, {
|
|
12139
12372
|
key: e.value,
|
|
12140
12373
|
value: e.value
|
|
12141
12374
|
}, e.label);
|
|
@@ -12165,14 +12398,14 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
12165
12398
|
|
|
12166
12399
|
|
|
12167
12400
|
var createTreeNode = React.useCallback(function () {
|
|
12168
|
-
if (!list) return
|
|
12401
|
+
if (!list) return React.createElement(React.Fragment, null);
|
|
12169
12402
|
return ctn(list);
|
|
12170
12403
|
|
|
12171
12404
|
function title(label) {
|
|
12172
12405
|
if (!filter) return label;
|
|
12173
12406
|
label = (filter.taxCategoryCode ? label.split(new RegExp(filter.taxCategoryCode, 'g')) : [label]).join("<span style=\"color: #1890ff;\">".concat(filter.taxCategoryCode, "</span>"));
|
|
12174
12407
|
label = (filter.val ? label.split(new RegExp(filter.val, 'g')) : [label]).join("<span style=\"color: #1890ff;\">".concat(filter.val, "</span>"));
|
|
12175
|
-
return
|
|
12408
|
+
return React.createElement("span", {
|
|
12176
12409
|
dangerouslySetInnerHTML: {
|
|
12177
12410
|
__html: label
|
|
12178
12411
|
}
|
|
@@ -12181,11 +12414,11 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
12181
12414
|
|
|
12182
12415
|
function ctn(l) {
|
|
12183
12416
|
var p = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '0';
|
|
12184
|
-
if (!l || !l.length) return [
|
|
12417
|
+
if (!l || !l.length) return [React.createElement(React.Fragment, null)];
|
|
12185
12418
|
return l.filter(function (e) {
|
|
12186
12419
|
return e.pid === p;
|
|
12187
12420
|
}).map(function (e) {
|
|
12188
|
-
return
|
|
12421
|
+
return React.createElement(TreeNode, {
|
|
12189
12422
|
title: title(e.label),
|
|
12190
12423
|
key: e.id
|
|
12191
12424
|
}, ctn(l, e.id));
|
|
@@ -12315,46 +12548,46 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
12315
12548
|
setList([]);
|
|
12316
12549
|
}
|
|
12317
12550
|
}, [visible]);
|
|
12318
|
-
return
|
|
12551
|
+
return React.createElement(React.Fragment, null, React.createElement(Input, {
|
|
12319
12552
|
readOnly: true,
|
|
12320
12553
|
value: props.value,
|
|
12321
|
-
addonAfter:
|
|
12554
|
+
addonAfter: React.createElement(Button, {
|
|
12322
12555
|
size: "small",
|
|
12323
12556
|
type: "link",
|
|
12324
12557
|
onClick: function onClick() {
|
|
12325
12558
|
setVisible(true);
|
|
12326
12559
|
}
|
|
12327
12560
|
}, "\u70B9\u51FB\u9009\u62E9")
|
|
12328
|
-
}),
|
|
12561
|
+
}), React.createElement(Drawer, {
|
|
12329
12562
|
title: "\u7A0E\u6536\u5206\u7C7B\u7F16\u7801",
|
|
12330
12563
|
visible: visible,
|
|
12331
12564
|
width: 500,
|
|
12332
12565
|
onClose: function onClose() {
|
|
12333
12566
|
setVisible(false);
|
|
12334
12567
|
}
|
|
12335
|
-
},
|
|
12568
|
+
}, React.createElement(Form, {
|
|
12336
12569
|
key: "".concat(visible)
|
|
12337
|
-
},
|
|
12570
|
+
}, React.createElement(Form.Item, {
|
|
12338
12571
|
label: "\u4EA7\u54C1\u6216\u670D\u52A1\u7B80\u79F0"
|
|
12339
|
-
},
|
|
12572
|
+
}, React.createElement(Input, {
|
|
12340
12573
|
onChange: function onChange(e) {
|
|
12341
12574
|
setFilter(_objectSpread2(_objectSpread2({}, filter), {}, {
|
|
12342
12575
|
val: e.target.value
|
|
12343
12576
|
}));
|
|
12344
12577
|
}
|
|
12345
|
-
})),
|
|
12578
|
+
})), React.createElement(Form.Item, {
|
|
12346
12579
|
label: "\u7A0E\u6536\u5206\u7C7B\u7F16\u7801"
|
|
12347
|
-
},
|
|
12580
|
+
}, React.createElement(Input, {
|
|
12348
12581
|
onChange: function onChange(e) {
|
|
12349
12582
|
setFilter(_objectSpread2(_objectSpread2({}, filter), {}, {
|
|
12350
12583
|
taxCategoryCode: e.target.value
|
|
12351
12584
|
}));
|
|
12352
12585
|
}
|
|
12353
|
-
}))), list && list.length > 0 ?
|
|
12586
|
+
}))), list && list.length > 0 ? React.createElement(Tree, {
|
|
12354
12587
|
defaultExpandAll: true,
|
|
12355
12588
|
selectedKeys: [],
|
|
12356
12589
|
onSelect: onSelect
|
|
12357
|
-
}, createTreeNode()) :
|
|
12590
|
+
}, createTreeNode()) : React.createElement("span", {
|
|
12358
12591
|
style: {
|
|
12359
12592
|
color: '#00000073'
|
|
12360
12593
|
}
|
|
@@ -12511,13 +12744,13 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
12511
12744
|
React.useEffect(function () {
|
|
12512
12745
|
if (controller.getTaxCategoryCodeList) controller.getTaxCategoryCodeList();
|
|
12513
12746
|
}, [controller]);
|
|
12514
|
-
return
|
|
12747
|
+
return React.createElement(SchemaForm, {
|
|
12515
12748
|
actions: actions,
|
|
12516
12749
|
components: _objectSpread2(_objectSpread2({}, components), {}, {
|
|
12517
12750
|
showSearch: !!controller.state.goodsListState.endowCode.getTaxCategoryCodeTree ? ShowSearch2 : ShowSearch
|
|
12518
12751
|
}),
|
|
12519
12752
|
effects: effects
|
|
12520
|
-
},
|
|
12753
|
+
}, React.createElement(FormButtonGroup, null, React.createElement(SchemaMarkupField, {
|
|
12521
12754
|
name: "taxClassificationCode",
|
|
12522
12755
|
type: "showSearch",
|
|
12523
12756
|
title: "\u7A0E\u6536\u5206\u7C7B\u7F16\u7801",
|
|
@@ -12527,12 +12760,12 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
12527
12760
|
message: '请选择税收分类编码',
|
|
12528
12761
|
required: true
|
|
12529
12762
|
}]
|
|
12530
|
-
}),
|
|
12763
|
+
}), React.createElement(SchemaMarkupField, {
|
|
12531
12764
|
name: "shorthand",
|
|
12532
12765
|
type: "string",
|
|
12533
12766
|
default: getShorthand(defaultValue === null || defaultValue === void 0 ? void 0 : defaultValue.itemName),
|
|
12534
12767
|
title: "\u5546\u54C1\u548C\u670D\u52A1\u5206\u7C7B\u7B80\u79F0"
|
|
12535
|
-
}),
|
|
12768
|
+
}), React.createElement(SchemaMarkupField, {
|
|
12536
12769
|
name: "taxRate",
|
|
12537
12770
|
type: "string",
|
|
12538
12771
|
title: "\u7A0E\u7387",
|
|
@@ -12545,7 +12778,7 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
12545
12778
|
message: '请选择税率',
|
|
12546
12779
|
required: true
|
|
12547
12780
|
}]
|
|
12548
|
-
}), taxRate === 0 &&
|
|
12781
|
+
}), taxRate === 0 && React.createElement(SchemaMarkupField, {
|
|
12549
12782
|
name: "taxFreeType",
|
|
12550
12783
|
type: "string",
|
|
12551
12784
|
title: "\u514D\u7A0E\u7C7B\u578B",
|
|
@@ -12555,7 +12788,7 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
12555
12788
|
message: '请选择免税类型',
|
|
12556
12789
|
required: true
|
|
12557
12790
|
}]
|
|
12558
|
-
}),
|
|
12791
|
+
}), React.createElement(SchemaMarkupField, {
|
|
12559
12792
|
name: "favouredPolicyMark",
|
|
12560
12793
|
type: "number",
|
|
12561
12794
|
title: "\u662F\u5426\u4EAB\u53D7\u4F18\u60E0\u653F\u7B56",
|
|
@@ -12571,7 +12804,7 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
12571
12804
|
message: '请选择是否享受优惠政策',
|
|
12572
12805
|
required: true
|
|
12573
12806
|
}]
|
|
12574
|
-
}), favouredPolicyMark === 1 &&
|
|
12807
|
+
}), favouredPolicyMark === 1 && React.createElement(SchemaMarkupField, {
|
|
12575
12808
|
name: "favouredPolicyName",
|
|
12576
12809
|
type: "string",
|
|
12577
12810
|
title: "\u4F18\u60E0\u653F\u7B56\u7C7B\u578B",
|
|
@@ -12581,14 +12814,14 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
12581
12814
|
message: '请选择是否享受优惠政策',
|
|
12582
12815
|
required: true
|
|
12583
12816
|
}]
|
|
12584
|
-
})),
|
|
12817
|
+
})), React.createElement("span", {
|
|
12585
12818
|
className: "kts-invoice-operate-goods-endow-code-button-list"
|
|
12586
|
-
},
|
|
12819
|
+
}, React.createElement(Button, {
|
|
12587
12820
|
onClick: function onClick() {
|
|
12588
12821
|
actions.submit(onSubmit);
|
|
12589
12822
|
},
|
|
12590
12823
|
type: "primary"
|
|
12591
|
-
}, "\u786E\u5B9A"),
|
|
12824
|
+
}, "\u786E\u5B9A"), React.createElement(Button, {
|
|
12592
12825
|
onClick: function onClick() {
|
|
12593
12826
|
controller.pipeline( /*#__PURE__*/function () {
|
|
12594
12827
|
var _ref14 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee14(s) {
|
|
@@ -12651,7 +12884,7 @@ var getItemName$1 = function getItemName(value, shorthand) {
|
|
|
12651
12884
|
|
|
12652
12885
|
/** 发票组件的上下文 */
|
|
12653
12886
|
|
|
12654
|
-
var InvoiceContext =
|
|
12887
|
+
var InvoiceContext = React.createContext(undefined);
|
|
12655
12888
|
|
|
12656
12889
|
var default_1 = /*#__PURE__*/function (_React$PureComponent) {
|
|
12657
12890
|
_inherits(default_1, _React$PureComponent);
|
|
@@ -12683,7 +12916,7 @@ var default_1 = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
12683
12916
|
|
|
12684
12917
|
/** 获取控制器钩子 */
|
|
12685
12918
|
function render() {
|
|
12686
|
-
return
|
|
12919
|
+
return React.createElement(Main$3, _objectSpread2({}, this.props));
|
|
12687
12920
|
}
|
|
12688
12921
|
}]);
|
|
12689
12922
|
|
|
@@ -12715,22 +12948,22 @@ var Main$3 = function Main(props) {
|
|
|
12715
12948
|
React.useEffect(function () {
|
|
12716
12949
|
setKey(key + 1);
|
|
12717
12950
|
}, [controller]);
|
|
12718
|
-
return
|
|
12951
|
+
return React.createElement(InvoiceContext.Provider, {
|
|
12719
12952
|
key: key,
|
|
12720
12953
|
value: controller
|
|
12721
|
-
},
|
|
12954
|
+
}, React.createElement("div", {
|
|
12722
12955
|
className: "kts-invoice-operate"
|
|
12723
|
-
}, props.invoiceHeader ||
|
|
12956
|
+
}, props.invoiceHeader || React.createElement(InvoiceHeader, null)
|
|
12724
12957
|
/** 发票头 */
|
|
12725
|
-
, props.buyer ||
|
|
12958
|
+
, props.buyer || React.createElement(Buyer$1, null)
|
|
12726
12959
|
/** 购买方 */
|
|
12727
|
-
, props.goodsList ||
|
|
12960
|
+
, props.goodsList || React.createElement(GoodsList, null)
|
|
12728
12961
|
/** 货物列表 */
|
|
12729
|
-
, props.seller ||
|
|
12962
|
+
, props.seller || React.createElement(Buyer, null)
|
|
12730
12963
|
/** 销售方 */
|
|
12731
|
-
, props.sign ||
|
|
12964
|
+
, props.sign || React.createElement(Sign, null)
|
|
12732
12965
|
/** 落款 */
|
|
12733
|
-
, props.footExpand),
|
|
12966
|
+
, props.footExpand), React.createElement(ImportBuyerDrawer, null), React.createElement(ImportGoodsDrawer, null), React.createElement(EndowCodeDrawer, null));
|
|
12734
12967
|
};
|
|
12735
12968
|
|
|
12736
12969
|
export { default_1 as Invoice, InvoiceController };
|