kts-component-invoice-operate 3.2.104 → 3.2.105
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/.dumi/theme/builtins/API.tsx +66 -66
- package/.editorconfig +16 -16
- package/.fatherrc.ts +4 -4
- package/.prettierignore +7 -7
- package/.prettierrc +11 -11
- package/.umirc.ts +8 -8
- package/README.md +9 -9
- package/dist/index.esm.js +764 -707
- package/dist/index.js +764 -707
- package/docs/index.md +5 -5
- package/docs-dist/static/arrowDown.a1cbf0d8.svg +2 -2
- package/docs-dist/static/arrowUp.4c482054.svg +2 -2
- package/docs-dist/static/fork.5431267d.svg +11 -11
- package/docs-dist/static/plus.44013ce3.svg +11 -11
- package/docs-dist/static/plus.4fd1af30.svg +11 -11
- package/index.html +12 -12
- package/package.json +61 -61
- package/src/Invoice/Invoice-digtal/_test/disabled/index.tsx +38 -38
- package/src/Invoice/Invoice-digtal/_test/easiest/index.tsx +16 -16
- package/src/Invoice/Invoice-digtal/_test/header/index.tsx +84 -84
- package/src/Invoice/Invoice-digtal/_test/importGoods/index.tsx +471 -554
- package/src/Invoice/Invoice-digtal/_test/importStakeholder/index.tsx +17 -17
- package/src/Invoice/Invoice-digtal/_test/lineCredit/index.tsx +20 -20
- package/src/Invoice/Invoice-digtal/_test/prefab/index.tsx +150 -150
- package/src/Invoice/Invoice-digtal/_test/readOnly/index.tsx +42 -42
- package/src/Invoice/Invoice-digtal/_test/stakeholder/index.tsx +12 -12
- package/src/Invoice/Invoice-digtal/_test/typeSelection/index.tsx +29 -29
- package/src/Invoice/Invoice-digtal/index.md +30 -30
- package/src/Invoice/InvoiceController/InvoiceControllerForm/index.ts +95 -95
- package/src/Invoice/InvoiceController/InvoiceControllerState/AutoComplete/index.ts +20 -20
- package/src/Invoice/InvoiceController/InvoiceControllerState/BuyerState/index.tsx +88 -88
- package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/Drag/index.ts +15 -15
- package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/EndowCode/index.tsx +104 -104
- package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/IColumnsReplenish/index.ts +10 -10
- package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/IGood/index.ts +78 -78
- package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/ImportGoods/index.ts +80 -80
- package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/LineAttributeType/index.ts +7 -7
- package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/ProductComparison/index.ts +9 -9
- package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/index.ts +113 -113
- package/src/Invoice/InvoiceController/InvoiceControllerState/Stakeholder/index.ts +13 -13
- package/src/Invoice/InvoiceController/InvoiceControllerState/index.ts +65 -65
- package/src/Invoice/InvoiceController/fns/addGood.ts +11 -11
- package/src/Invoice/InvoiceController/fns/addGoodDiscount.ts +126 -126
- package/src/Invoice/InvoiceController/fns/addGoodDiscountV2.ts +86 -86
- package/src/Invoice/InvoiceController/fns/delGood.ts +41 -41
- package/src/Invoice/InvoiceController/fns/getGoodsSearch.ts +26 -26
- package/src/Invoice/InvoiceController/fns/importGoodsDrawer.ts +79 -79
- package/src/Invoice/InvoiceController/fns/mergeDetails.ts +198 -165
- package/src/Invoice/InvoiceController/fns/mergeDiscount.ts +34 -34
- package/src/Invoice/InvoiceController/fns/saveEditGood.ts +24 -24
- package/src/Invoice/InvoiceController/fns/setEditGood.ts +16 -16
- package/src/Invoice/InvoiceController/fns/setGoods.ts +10 -10
- package/src/Invoice/InvoiceController/fns/updateInvoiceNo.ts +8 -8
- package/src/Invoice/InvoiceController/index.ts +77 -77
- package/src/Invoice/_test/buyerNameSearch/index.tsx +42 -42
- package/src/Invoice/_test/deduction/index.tsx +935 -935
- package/src/Invoice/_test/draft/index.tsx +40 -40
- package/src/Invoice/_test/easiest/index.tsx +5 -5
- package/src/Invoice/_test/endowCode/index.tsx +1156 -1156
- package/src/Invoice/_test/goodsMenuExpand/index.tsx +32 -32
- package/src/Invoice/_test/importBuyer/index.tsx +74 -74
- package/src/Invoice/_test/importGoods/index.tsx +516 -1161
- package/src/Invoice/_test/invoiceType/index.tsx +59 -59
- package/src/Invoice/_test/isInvoiceNo/index.tsx +12 -12
- package/src/Invoice/_test/replaceHead/index.tsx +22 -22
- package/src/Invoice/_test/retrieveData/index.tsx +22 -22
- package/src/Invoice/_test/seller/index.tsx +28 -28
- package/src/Invoice/_test/setDataSource/index.tsx +73 -73
- package/src/Invoice/_test/unit/index.tsx +19 -19
- package/src/Invoice/index.less +29 -29
- package/src/Invoice/index.md +53 -53
- package/src/Invoice/index.tsx +167 -167
- package/src/Invoice/tools/calculate/index.ts +112 -112
- package/src/Invoice/tools/coolingFn/index.ts +17 -17
- package/src/Invoice/tools/evaluate/index.ts +7 -7
- package/src/Invoice/tools/idGenerator/index.ts +2 -2
- package/src/Invoice/tools/itemName/index.ts +55 -55
- package/src/Invoice/tools/lazyFn/index.ts +19 -19
- package/src/Invoice/tools/mounting/index.ts +13 -13
- package/src/Invoice/tools/strringFn/index.ts +40 -40
- package/src/Invoice/tools/useToGenerateId/index.ts +8 -8
- package/src/Invoice/ui/default/AddComparisonDrawer/index.tsx +149 -149
- package/src/Invoice/ui/default/Buyer/index.less +219 -219
- package/src/Invoice/ui/default/Buyer/index.tsx +114 -114
- package/src/Invoice/ui/default/Buyer/ui/BuyerNameInput/index.tsx +166 -166
- package/src/Invoice/ui/default/Buyer/ui/ImportBuyerButton/index.tsx +21 -21
- package/src/Invoice/ui/default/EndowCodeDrawer/index.less +8 -8
- package/src/Invoice/ui/default/EndowCodeDrawer/index.tsx +543 -543
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/autoFillFn/index.ts +533 -533
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/index.tsx +687 -687
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/Drag/index.less +20 -20
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/Drag/index.tsx +205 -205
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/ItemCodeInput/index.less +18 -18
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/ItemCodeInput/index.tsx +47 -47
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/ItemNameInput/index.less +17 -17
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/ItemNameInput/index.tsx +89 -89
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/RowEditButton/index.tsx +30 -30
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/RowMenu/hook/_useAddComparison/index.tsx +43 -43
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/RowMenu/hook/useAddDiscount/index.tsx +118 -118
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/RowMenu/hook/useDelItem/index.tsx +41 -41
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/RowMenu/hook/useEndowCode/index.tsx +25 -25
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/RowMenu/index.less +13 -13
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/RowMenu/index.tsx +98 -98
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/RowSaveButton/index.tsx +14 -14
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/TitleText/index.tsx +20 -20
- package/src/Invoice/ui/default/GoodsList/hook/useDeduction/index.tsx +24 -24
- package/src/Invoice/ui/default/GoodsList/hook/useOnRow/index.tsx +39 -39
- package/src/Invoice/ui/default/GoodsList/hook/useRowSelection/index.tsx +114 -114
- package/src/Invoice/ui/default/GoodsList/hook/useWindowClick/index.tsx +23 -23
- package/src/Invoice/ui/default/GoodsList/index.less +179 -179
- package/src/Invoice/ui/default/GoodsList/index.tsx +205 -205
- package/src/Invoice/ui/default/GoodsList/ui/AddRowButton/index.tsx +65 -65
- package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/hooks/useAddDiscountRowButton/index.less +21 -21
- package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/hooks/useAddDiscountRowButton/index.tsx +244 -244
- package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/hooks/useCommodityComparisonButton/index.tsx +75 -75
- package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/hooks/useDelRowButton/index.tsx +69 -69
- package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/hooks/useEndowCodeButton/index.tsx +65 -65
- package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/hooks/useMergeDetails/index.tsx +91 -91
- package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/hooks/useMergeDiscount/index.tsx +36 -36
- package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/hooks/useSalesDiscount/index.tsx +109 -109
- package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/hooks/useSalesGifts/index.tsx +88 -88
- package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/index.tsx +37 -37
- package/src/Invoice/ui/default/GoodsList/ui/DescribeSwitch/index.tsx +36 -36
- package/src/Invoice/ui/default/GoodsList/ui/Search/index.less +10 -10
- package/src/Invoice/ui/default/GoodsList/ui/Search/index.tsx +52 -52
- package/src/Invoice/ui/default/GoodsList/ui/Statistics/index.less +18 -18
- package/src/Invoice/ui/default/GoodsList/ui/Statistics/index.tsx +113 -113
- package/src/Invoice/ui/default/GoodsList/ui/TableRow/index.less +28 -28
- package/src/Invoice/ui/default/GoodsList/ui/TableRow/index.tsx +57 -57
- package/src/Invoice/ui/default/GoodsList/ui/TableVirtual/index.less +38 -38
- package/src/Invoice/ui/default/GoodsList/ui/TableVirtual/index.tsx +108 -108
- package/src/Invoice/ui/default/GoodsList/ui/TableVirtual.o/index.less +44 -44
- package/src/Invoice/ui/default/GoodsList/ui/TableVirtual.o/index.tsx +96 -96
- package/src/Invoice/ui/default/GoodsList/ui/TaxIncludedSwitch/index.tsx +30 -30
- package/src/Invoice/ui/default/ImportBuyerDrawer/index.tsx +75 -75
- package/src/Invoice/ui/default/ImportGoodsDrawer/index.tsx +201 -201
- package/src/Invoice/ui/default/InvoiceHeader/index.less +68 -68
- package/src/Invoice/ui/default/InvoiceHeader/index.tsx +246 -246
- package/src/Invoice/ui/default/Seller/index.less +113 -113
- package/src/Invoice/ui/default/Seller/index.tsx +98 -98
- package/src/Invoice/ui/default/Sign/index.less +14 -14
- package/src/Invoice/ui/default/Sign/index.tsx +71 -71
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/autoFillFn/index.ts +519 -519
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/index.tsx +650 -650
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/svg/plus.svg +11 -11
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/Drag/index.less +20 -20
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/Drag/index.tsx +205 -205
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/ItemNameInput/index.less +9 -9
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/ItemNameInput/index.tsx +78 -78
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowEditButton/index.tsx +30 -30
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowMenu/hook/_useAddComparison/index.tsx +43 -43
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowMenu/hook/useAddDiscount/index.tsx +76 -76
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowMenu/hook/useDelItem/index.tsx +41 -41
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowMenu/hook/useEndowCode/index.tsx +34 -34
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowMenu/index.less +13 -13
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowMenu/index.tsx +98 -98
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowSaveButton/index.tsx +14 -14
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/TitleText/index.tsx +20 -20
- package/src/Invoice/ui/digtal/GoodsList/hook/useOnRow/index.tsx +39 -39
- package/src/Invoice/ui/digtal/GoodsList/hook/useRowSelection/index.tsx +121 -121
- package/src/Invoice/ui/digtal/GoodsList/hook/useWindowClick/index.tsx +23 -23
- package/src/Invoice/ui/digtal/GoodsList/index.less +56 -56
- package/src/Invoice/ui/digtal/GoodsList/index.tsx +180 -180
- package/src/Invoice/ui/digtal/GoodsList/ui/AddRowButton/index.tsx +65 -65
- package/src/Invoice/ui/digtal/GoodsList/ui/BulkMenu/hooks/useAddDiscountRowButton/index.tsx +339 -339
- package/src/Invoice/ui/digtal/GoodsList/ui/BulkMenu/hooks/useAddDiscountRowButton/svg/add.svg +11 -11
- package/src/Invoice/ui/digtal/GoodsList/ui/BulkMenu/hooks/useCommodityComparisonButton/index.tsx +75 -75
- package/src/Invoice/ui/digtal/GoodsList/ui/BulkMenu/hooks/useDelRowButton/index.tsx +50 -50
- package/src/Invoice/ui/digtal/GoodsList/ui/BulkMenu/hooks/useEmptyRefill/index.tsx +35 -35
- package/src/Invoice/ui/digtal/GoodsList/ui/BulkMenu/hooks/useEndowCodeButton/index.tsx +82 -82
- package/src/Invoice/ui/digtal/GoodsList/ui/BulkMenu/hooks/useReselectInvoiceType/index.tsx +57 -57
- package/src/Invoice/ui/digtal/GoodsList/ui/DescribeSwitch/index.tsx +36 -36
- package/src/Invoice/ui/digtal/GoodsList/ui/Search/index.less +11 -11
- package/src/Invoice/ui/digtal/GoodsList/ui/Search/index.tsx +50 -50
- package/src/Invoice/ui/digtal/GoodsList/ui/Statistics/index.less +53 -53
- package/src/Invoice/ui/digtal/GoodsList/ui/Statistics/index.tsx +99 -99
- package/src/Invoice/ui/digtal/GoodsList/ui/Statistics/svg/fork.svg +11 -11
- package/src/Invoice/ui/digtal/GoodsList/ui/TableRow/index.less +28 -28
- package/src/Invoice/ui/digtal/GoodsList/ui/TableRow/index.tsx +53 -53
- package/src/Invoice/ui/digtal/GoodsList/ui/TableVirtual/index.less +38 -38
- package/src/Invoice/ui/digtal/GoodsList/ui/TableVirtual/index.tsx +108 -108
- package/src/Invoice/ui/digtal/GoodsList/ui/TableVirtual.o/index.less +44 -44
- package/src/Invoice/ui/digtal/GoodsList/ui/TableVirtual.o/index.tsx +96 -96
- package/src/Invoice/ui/digtal/GoodsList/ui/TaxIncludedSwitch/index.tsx +30 -30
- package/src/Invoice/ui/digtal/InvoiceHeader/index.less +57 -57
- package/src/Invoice/ui/digtal/InvoiceHeader/index.tsx +77 -77
- package/src/Invoice/ui/digtal/Sign/index.less +48 -48
- package/src/Invoice/ui/digtal/Sign/index.tsx +99 -99
- package/src/Invoice/ui/digtal/Stakeholder/index.less +75 -75
- package/src/Invoice/ui/digtal/Stakeholder/index.tsx +394 -394
- package/src/Invoice/ui/digtal/Stakeholder/svg/arrowDown.svg +2 -2
- package/src/Invoice/ui/digtal/Stakeholder/svg/arrowUp.svg +2 -2
- package/src/Invoice/ui/digtal/Stakeholder/svg/plus.svg +11 -11
- package/src/InvoiceTypeModal/_test/easiest/index.tsx +31 -31
- package/src/InvoiceTypeModal/index.less +7 -7
- package/src/InvoiceTypeModal/index.md +5 -5
- package/src/InvoiceTypeModal/index.tsx +153 -153
- package/src/TaxClassificationCodeModal/_test/easiest/index.tsx +177 -177
- package/src/TaxClassificationCodeModal/index.md +6 -6
- package/src/TaxClassificationCodeModal/index.tsx +74 -74
- package/src/index.ts +12 -12
- package/tsconfig.json +31 -31
- package/typings.d.ts +3 -3
- package/yarn.e.lock +14331 -14331
package/dist/index.esm.js
CHANGED
|
@@ -1813,111 +1813,170 @@ function mergeDetails(_x, _x2) {
|
|
|
1813
1813
|
/** 计算单价(含税) */
|
|
1814
1814
|
|
|
1815
1815
|
function _mergeDetails() {
|
|
1816
|
-
_mergeDetails = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
1817
|
-
var goodsList,
|
|
1818
|
-
|
|
1816
|
+
_mergeDetails = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(state, selectedGoodIndex) {
|
|
1817
|
+
var goodsList, grouping, merge, _merge;
|
|
1818
|
+
|
|
1819
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
1819
1820
|
while (1) {
|
|
1820
|
-
switch (
|
|
1821
|
+
switch (_context2.prev = _context2.next) {
|
|
1821
1822
|
case 0:
|
|
1822
|
-
|
|
1823
|
+
_merge = function _merge3() {
|
|
1824
|
+
_merge = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(goodsList) {
|
|
1825
|
+
var selectedGoodIndex, sum, p;
|
|
1826
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
1827
|
+
while (1) {
|
|
1828
|
+
switch (_context.prev = _context.next) {
|
|
1829
|
+
case 0:
|
|
1830
|
+
if (!(goodsList.length < 2)) {
|
|
1831
|
+
_context.next = 2;
|
|
1832
|
+
break;
|
|
1833
|
+
}
|
|
1823
1834
|
|
|
1824
|
-
|
|
1825
|
-
_context.next = 3;
|
|
1826
|
-
break;
|
|
1827
|
-
}
|
|
1835
|
+
return _context.abrupt("return");
|
|
1828
1836
|
|
|
1829
|
-
|
|
1837
|
+
case 2:
|
|
1838
|
+
selectedGoodIndex = goodsList.map(function (e) {
|
|
1839
|
+
return e.$index;
|
|
1840
|
+
});
|
|
1841
|
+
_context.prev = 3;
|
|
1842
|
+
// 创建合并后的商品对象
|
|
1843
|
+
sum = {
|
|
1844
|
+
$index: idGenerator(),
|
|
1845
|
+
lineAttribute: goodsList[0].lineAttribute
|
|
1846
|
+
}; // 存在税率不一样的明细,不能合并
|
|
1830
1847
|
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
// const goodsList = state.goodsListState.goodsList.filter(e => state.goodsListState.selectedGoodIndex.indexOf(e.$index) >= 0)
|
|
1834
|
-
goodsList = state.goodsListState.goodsList.filter(function (e) {
|
|
1835
|
-
return selectedGoodIndex.indexOf(e.$index) >= 0;
|
|
1836
|
-
});
|
|
1848
|
+
_context.next = 7;
|
|
1849
|
+
return checkTaxTate(goodsList);
|
|
1837
1850
|
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
}
|
|
1851
|
+
case 7:
|
|
1852
|
+
_context.next = 9;
|
|
1853
|
+
return fillingInformationGood(goodsList, sum);
|
|
1842
1854
|
|
|
1843
|
-
|
|
1855
|
+
case 9:
|
|
1856
|
+
sum = _context.sent;
|
|
1857
|
+
_context.next = 12;
|
|
1858
|
+
return mergeQuantity(goodsList);
|
|
1844
1859
|
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
$index: idGenerator(),
|
|
1850
|
-
lineAttribute: LineAttributeType$1.正常
|
|
1851
|
-
}; // 存在税率不一样的明细,不能合并
|
|
1860
|
+
case 12:
|
|
1861
|
+
sum.quantity = _context.sent;
|
|
1862
|
+
_context.next = 15;
|
|
1863
|
+
return mergeLineAmountExcludeTax(goodsList);
|
|
1852
1864
|
|
|
1853
|
-
|
|
1854
|
-
|
|
1865
|
+
case 15:
|
|
1866
|
+
sum.lineAmountExcludeTax = _context.sent;
|
|
1867
|
+
_context.next = 18;
|
|
1868
|
+
return mergeLineAmountIncludeTax(goodsList);
|
|
1855
1869
|
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1870
|
+
case 18:
|
|
1871
|
+
sum.lineAmountIncludeTax = _context.sent;
|
|
1872
|
+
_context.next = 21;
|
|
1873
|
+
return calculatePriceExcludeTax(sum, state.calculatingDigits);
|
|
1874
|
+
|
|
1875
|
+
case 21:
|
|
1876
|
+
sum.priceExcludeTax = _context.sent;
|
|
1877
|
+
_context.next = 24;
|
|
1878
|
+
return calculatePriceIncludeTax(sum, state.calculatingDigits);
|
|
1879
|
+
|
|
1880
|
+
case 24:
|
|
1881
|
+
sum.priceIncludeTax = _context.sent;
|
|
1882
|
+
// 计算税额
|
|
1883
|
+
sum.taxAmount = chain$1(bignumber(sum.lineAmountIncludeTax)).subtract(bignumber(sum.lineAmountExcludeTax)).done().toNumber(); // 校验数据 是否数量和金额是否同号
|
|
1884
|
+
|
|
1885
|
+
_context.next = 28;
|
|
1886
|
+
return checkSameNumber(sum);
|
|
1887
|
+
|
|
1888
|
+
case 28:
|
|
1889
|
+
p = state.goodsListState.goodsList.indexOf(goodsList[0]);
|
|
1890
|
+
state.goodsListState.goodsList = state.goodsListState.goodsList.filter(function (e) {
|
|
1891
|
+
return selectedGoodIndex.indexOf(e.$index) < 0;
|
|
1892
|
+
});
|
|
1893
|
+
state.goodsListState.goodsList.splice(p, 0, sum);
|
|
1894
|
+
state.goodsListState.goodsList = state.goodsListState.goodsList.filter(function (e) {
|
|
1895
|
+
return e.lineAmountExcludeTax !== 0;
|
|
1896
|
+
});
|
|
1897
|
+
state.goodsListState.goodsMap = new Map();
|
|
1898
|
+
state.goodsListState.goodsList.forEach(function (e) {
|
|
1899
|
+
state.goodsListState.goodsMap.set(e.$index, e);
|
|
1900
|
+
});
|
|
1901
|
+
state.goodsListState.selectedGoodIndex = [];
|
|
1902
|
+
_context.next = 40;
|
|
1903
|
+
break;
|
|
1859
1904
|
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1905
|
+
case 37:
|
|
1906
|
+
_context.prev = 37;
|
|
1907
|
+
_context.t0 = _context["catch"](3);
|
|
1908
|
+
showError(_context.t0);
|
|
1864
1909
|
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1910
|
+
case 40:
|
|
1911
|
+
case "end":
|
|
1912
|
+
return _context.stop();
|
|
1913
|
+
}
|
|
1914
|
+
}
|
|
1915
|
+
}, _callee, null, [[3, 37]]);
|
|
1916
|
+
}));
|
|
1917
|
+
return _merge.apply(this, arguments);
|
|
1918
|
+
};
|
|
1869
1919
|
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
return mergeLineAmountIncludeTax(goodsList);
|
|
1920
|
+
merge = function _merge2(_x14) {
|
|
1921
|
+
return _merge.apply(this, arguments);
|
|
1922
|
+
};
|
|
1874
1923
|
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1924
|
+
grouping = function _grouping(goodsList) {
|
|
1925
|
+
var grouped = {};
|
|
1926
|
+
goodsList.forEach(function (good) {
|
|
1927
|
+
var key = function () {
|
|
1928
|
+
switch (good.lineAttribute) {
|
|
1929
|
+
case LineAttributeType$1.折让行:
|
|
1930
|
+
return LineAttributeType$1.折让行;
|
|
1879
1931
|
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
_context.next = 27;
|
|
1883
|
-
return calculatePriceIncludeTax(sum, state.calculatingDigits);
|
|
1932
|
+
case LineAttributeType$1.赠品行:
|
|
1933
|
+
return LineAttributeType$1.赠品行;
|
|
1884
1934
|
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
|
|
1935
|
+
default:
|
|
1936
|
+
return LineAttributeType$1.正常;
|
|
1937
|
+
}
|
|
1938
|
+
}();
|
|
1889
1939
|
|
|
1890
|
-
|
|
1891
|
-
|
|
1940
|
+
if (!grouped[key]) {
|
|
1941
|
+
grouped[key] = [];
|
|
1942
|
+
}
|
|
1892
1943
|
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1944
|
+
grouped[key].push(_objectSpread2(_objectSpread2({}, good), {}, {
|
|
1945
|
+
lineAttribute: key
|
|
1946
|
+
}));
|
|
1947
|
+
});
|
|
1948
|
+
return Object.values(grouped);
|
|
1949
|
+
};
|
|
1950
|
+
|
|
1951
|
+
if (!(state.goodsListState.editGood || !selectedGoodIndex || selectedGoodIndex.length < 2)) {
|
|
1952
|
+
_context2.next = 5;
|
|
1953
|
+
break;
|
|
1954
|
+
}
|
|
1955
|
+
|
|
1956
|
+
return _context2.abrupt("return");
|
|
1957
|
+
|
|
1958
|
+
case 5:
|
|
1959
|
+
goodsList = state.goodsListState.goodsList.filter(function (e) {
|
|
1960
|
+
return selectedGoodIndex.indexOf(e.$index) >= 0;
|
|
1905
1961
|
});
|
|
1906
|
-
state.goodsListState.selectedGoodIndex = [];
|
|
1907
|
-
_context.next = 43;
|
|
1908
|
-
break;
|
|
1909
1962
|
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1963
|
+
if (!(goodsList.length < 2)) {
|
|
1964
|
+
_context2.next = 8;
|
|
1965
|
+
break;
|
|
1966
|
+
}
|
|
1967
|
+
|
|
1968
|
+
return _context2.abrupt("return");
|
|
1969
|
+
|
|
1970
|
+
case 8:
|
|
1971
|
+
grouping(goodsList).forEach(merge);
|
|
1972
|
+
/** 分组 */
|
|
1914
1973
|
|
|
1915
|
-
case
|
|
1974
|
+
case 9:
|
|
1916
1975
|
case "end":
|
|
1917
|
-
return
|
|
1976
|
+
return _context2.stop();
|
|
1918
1977
|
}
|
|
1919
1978
|
}
|
|
1920
|
-
},
|
|
1979
|
+
}, _callee2);
|
|
1921
1980
|
}));
|
|
1922
1981
|
return _mergeDetails.apply(this, arguments);
|
|
1923
1982
|
}
|
|
@@ -1929,29 +1988,29 @@ function calculatePriceIncludeTax(_x3, _x4) {
|
|
|
1929
1988
|
|
|
1930
1989
|
|
|
1931
1990
|
function _calculatePriceIncludeTax() {
|
|
1932
|
-
_calculatePriceIncludeTax = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
1991
|
+
_calculatePriceIncludeTax = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(sum, calculatingDigits) {
|
|
1933
1992
|
var value;
|
|
1934
|
-
return _regeneratorRuntime().wrap(function
|
|
1993
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
1935
1994
|
while (1) {
|
|
1936
|
-
switch (
|
|
1995
|
+
switch (_context3.prev = _context3.next) {
|
|
1937
1996
|
case 0:
|
|
1938
1997
|
if (sum.quantity) {
|
|
1939
|
-
|
|
1998
|
+
_context3.next = 2;
|
|
1940
1999
|
break;
|
|
1941
2000
|
}
|
|
1942
2001
|
|
|
1943
|
-
return
|
|
2002
|
+
return _context3.abrupt("return", undefined);
|
|
1944
2003
|
|
|
1945
2004
|
case 2:
|
|
1946
2005
|
value = chain$1(bignumber(sum.lineAmountIncludeTax)).divide(bignumber(sum.quantity)).done().toNumber();
|
|
1947
|
-
return
|
|
2006
|
+
return _context3.abrupt("return", format15(value, calculatingDigits) || undefined);
|
|
1948
2007
|
|
|
1949
2008
|
case 4:
|
|
1950
2009
|
case "end":
|
|
1951
|
-
return
|
|
2010
|
+
return _context3.stop();
|
|
1952
2011
|
}
|
|
1953
2012
|
}
|
|
1954
|
-
},
|
|
2013
|
+
}, _callee3);
|
|
1955
2014
|
}));
|
|
1956
2015
|
return _calculatePriceIncludeTax.apply(this, arguments);
|
|
1957
2016
|
}
|
|
@@ -1963,29 +2022,29 @@ function calculatePriceExcludeTax(_x5, _x6) {
|
|
|
1963
2022
|
|
|
1964
2023
|
|
|
1965
2024
|
function _calculatePriceExcludeTax() {
|
|
1966
|
-
_calculatePriceExcludeTax = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
2025
|
+
_calculatePriceExcludeTax = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(sum, calculatingDigits) {
|
|
1967
2026
|
var value;
|
|
1968
|
-
return _regeneratorRuntime().wrap(function
|
|
2027
|
+
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
1969
2028
|
while (1) {
|
|
1970
|
-
switch (
|
|
2029
|
+
switch (_context4.prev = _context4.next) {
|
|
1971
2030
|
case 0:
|
|
1972
2031
|
if (sum.quantity) {
|
|
1973
|
-
|
|
2032
|
+
_context4.next = 2;
|
|
1974
2033
|
break;
|
|
1975
2034
|
}
|
|
1976
2035
|
|
|
1977
|
-
return
|
|
2036
|
+
return _context4.abrupt("return", undefined);
|
|
1978
2037
|
|
|
1979
2038
|
case 2:
|
|
1980
2039
|
value = format15(chain$1(bignumber(sum.lineAmountExcludeTax)).divide(bignumber(sum.quantity)).done().toNumber());
|
|
1981
|
-
return
|
|
2040
|
+
return _context4.abrupt("return", format15(value, calculatingDigits) || undefined);
|
|
1982
2041
|
|
|
1983
2042
|
case 5:
|
|
1984
2043
|
case "end":
|
|
1985
|
-
return
|
|
2044
|
+
return _context4.stop();
|
|
1986
2045
|
}
|
|
1987
2046
|
}
|
|
1988
|
-
},
|
|
2047
|
+
}, _callee4);
|
|
1989
2048
|
}));
|
|
1990
2049
|
return _calculatePriceExcludeTax.apply(this, arguments);
|
|
1991
2050
|
}
|
|
@@ -1997,24 +2056,24 @@ function mergeLineAmountIncludeTax(_x7) {
|
|
|
1997
2056
|
|
|
1998
2057
|
|
|
1999
2058
|
function _mergeLineAmountIncludeTax() {
|
|
2000
|
-
_mergeLineAmountIncludeTax = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
2059
|
+
_mergeLineAmountIncludeTax = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(goodsList) {
|
|
2001
2060
|
var sum;
|
|
2002
|
-
return _regeneratorRuntime().wrap(function
|
|
2061
|
+
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
2003
2062
|
while (1) {
|
|
2004
|
-
switch (
|
|
2063
|
+
switch (_context5.prev = _context5.next) {
|
|
2005
2064
|
case 0:
|
|
2006
2065
|
sum = chain$1(bignumber(0));
|
|
2007
2066
|
goodsList.forEach(function (e) {
|
|
2008
2067
|
sum = sum.add(bignumber(e.lineAmountIncludeTax || 0));
|
|
2009
2068
|
});
|
|
2010
|
-
return
|
|
2069
|
+
return _context5.abrupt("return", sum.done().toNumber());
|
|
2011
2070
|
|
|
2012
2071
|
case 3:
|
|
2013
2072
|
case "end":
|
|
2014
|
-
return
|
|
2073
|
+
return _context5.stop();
|
|
2015
2074
|
}
|
|
2016
2075
|
}
|
|
2017
|
-
},
|
|
2076
|
+
}, _callee5);
|
|
2018
2077
|
}));
|
|
2019
2078
|
return _mergeLineAmountIncludeTax.apply(this, arguments);
|
|
2020
2079
|
}
|
|
@@ -2026,24 +2085,24 @@ function mergeLineAmountExcludeTax(_x8) {
|
|
|
2026
2085
|
|
|
2027
2086
|
|
|
2028
2087
|
function _mergeLineAmountExcludeTax() {
|
|
2029
|
-
_mergeLineAmountExcludeTax = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
2088
|
+
_mergeLineAmountExcludeTax = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6(goodsList) {
|
|
2030
2089
|
var sum;
|
|
2031
|
-
return _regeneratorRuntime().wrap(function
|
|
2090
|
+
return _regeneratorRuntime().wrap(function _callee6$(_context6) {
|
|
2032
2091
|
while (1) {
|
|
2033
|
-
switch (
|
|
2092
|
+
switch (_context6.prev = _context6.next) {
|
|
2034
2093
|
case 0:
|
|
2035
2094
|
sum = chain$1(bignumber(0));
|
|
2036
2095
|
goodsList.forEach(function (e) {
|
|
2037
2096
|
sum = sum.add(bignumber(e.lineAmountExcludeTax || 0));
|
|
2038
2097
|
});
|
|
2039
|
-
return
|
|
2098
|
+
return _context6.abrupt("return", sum.done().toNumber());
|
|
2040
2099
|
|
|
2041
2100
|
case 3:
|
|
2042
2101
|
case "end":
|
|
2043
|
-
return
|
|
2102
|
+
return _context6.stop();
|
|
2044
2103
|
}
|
|
2045
2104
|
}
|
|
2046
|
-
},
|
|
2105
|
+
}, _callee6);
|
|
2047
2106
|
}));
|
|
2048
2107
|
return _mergeLineAmountExcludeTax.apply(this, arguments);
|
|
2049
2108
|
}
|
|
@@ -2055,24 +2114,24 @@ function mergeQuantity(_x9) {
|
|
|
2055
2114
|
|
|
2056
2115
|
|
|
2057
2116
|
function _mergeQuantity() {
|
|
2058
|
-
_mergeQuantity = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
2117
|
+
_mergeQuantity = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7(goodsList) {
|
|
2059
2118
|
var sum;
|
|
2060
|
-
return _regeneratorRuntime().wrap(function
|
|
2119
|
+
return _regeneratorRuntime().wrap(function _callee7$(_context7) {
|
|
2061
2120
|
while (1) {
|
|
2062
|
-
switch (
|
|
2121
|
+
switch (_context7.prev = _context7.next) {
|
|
2063
2122
|
case 0:
|
|
2064
2123
|
sum = chain$1(bignumber(0));
|
|
2065
2124
|
goodsList.forEach(function (e) {
|
|
2066
2125
|
sum = sum.add(bignumber(e.quantity || 0));
|
|
2067
2126
|
});
|
|
2068
|
-
return
|
|
2127
|
+
return _context7.abrupt("return", sum.done().toNumber() || undefined);
|
|
2069
2128
|
|
|
2070
2129
|
case 3:
|
|
2071
2130
|
case "end":
|
|
2072
|
-
return
|
|
2131
|
+
return _context7.stop();
|
|
2073
2132
|
}
|
|
2074
2133
|
}
|
|
2075
|
-
},
|
|
2134
|
+
}, _callee7);
|
|
2076
2135
|
}));
|
|
2077
2136
|
return _mergeQuantity.apply(this, arguments);
|
|
2078
2137
|
}
|
|
@@ -2084,26 +2143,26 @@ function fillingInformationGood(_x10, _x11) {
|
|
|
2084
2143
|
|
|
2085
2144
|
|
|
2086
2145
|
function _fillingInformationGood() {
|
|
2087
|
-
_fillingInformationGood = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
2146
|
+
_fillingInformationGood = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee8(goodsList, sum) {
|
|
2088
2147
|
var goods;
|
|
2089
|
-
return _regeneratorRuntime().wrap(function
|
|
2148
|
+
return _regeneratorRuntime().wrap(function _callee8$(_context8) {
|
|
2090
2149
|
while (1) {
|
|
2091
|
-
switch (
|
|
2150
|
+
switch (_context8.prev = _context8.next) {
|
|
2092
2151
|
case 0:
|
|
2093
2152
|
sum = _objectSpread2({}, sum);
|
|
2094
2153
|
goods = goodsList[findMaxIndex(goodsList.map(function (e) {
|
|
2095
2154
|
return e.lineAmountIncludeTax || 0;
|
|
2096
2155
|
}))];
|
|
2097
|
-
return
|
|
2098
|
-
lineAttribute:
|
|
2156
|
+
return _context8.abrupt("return", _objectSpread2(_objectSpread2({}, goods), {}, {
|
|
2157
|
+
lineAttribute: sum.lineAttribute
|
|
2099
2158
|
}));
|
|
2100
2159
|
|
|
2101
2160
|
case 3:
|
|
2102
2161
|
case "end":
|
|
2103
|
-
return
|
|
2162
|
+
return _context8.stop();
|
|
2104
2163
|
}
|
|
2105
2164
|
}
|
|
2106
|
-
},
|
|
2165
|
+
}, _callee8);
|
|
2107
2166
|
}));
|
|
2108
2167
|
return _fillingInformationGood.apply(this, arguments);
|
|
2109
2168
|
}
|
|
@@ -2115,23 +2174,23 @@ function checkTaxTate(_x12) {
|
|
|
2115
2174
|
|
|
2116
2175
|
|
|
2117
2176
|
function _checkTaxTate() {
|
|
2118
|
-
_checkTaxTate = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
2177
|
+
_checkTaxTate = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee9(goodsList) {
|
|
2119
2178
|
var tax, i;
|
|
2120
|
-
return _regeneratorRuntime().wrap(function
|
|
2179
|
+
return _regeneratorRuntime().wrap(function _callee9$(_context9) {
|
|
2121
2180
|
while (1) {
|
|
2122
|
-
switch (
|
|
2181
|
+
switch (_context9.prev = _context9.next) {
|
|
2123
2182
|
case 0:
|
|
2124
2183
|
tax = goodsList[0].taxRate;
|
|
2125
2184
|
i = 1;
|
|
2126
2185
|
|
|
2127
2186
|
case 2:
|
|
2128
2187
|
if (!(i < goodsList.length)) {
|
|
2129
|
-
|
|
2188
|
+
_context9.next = 8;
|
|
2130
2189
|
break;
|
|
2131
2190
|
}
|
|
2132
2191
|
|
|
2133
2192
|
if (!(tax !== goodsList[i].taxRate)) {
|
|
2134
|
-
|
|
2193
|
+
_context9.next = 5;
|
|
2135
2194
|
break;
|
|
2136
2195
|
}
|
|
2137
2196
|
|
|
@@ -2139,15 +2198,15 @@ function _checkTaxTate() {
|
|
|
2139
2198
|
|
|
2140
2199
|
case 5:
|
|
2141
2200
|
i++;
|
|
2142
|
-
|
|
2201
|
+
_context9.next = 2;
|
|
2143
2202
|
break;
|
|
2144
2203
|
|
|
2145
2204
|
case 8:
|
|
2146
2205
|
case "end":
|
|
2147
|
-
return
|
|
2206
|
+
return _context9.stop();
|
|
2148
2207
|
}
|
|
2149
2208
|
}
|
|
2150
|
-
},
|
|
2209
|
+
}, _callee9);
|
|
2151
2210
|
}));
|
|
2152
2211
|
return _checkTaxTate.apply(this, arguments);
|
|
2153
2212
|
}
|
|
@@ -2159,23 +2218,23 @@ function checkSameNumber(_x13) {
|
|
|
2159
2218
|
|
|
2160
2219
|
|
|
2161
2220
|
function _checkSameNumber() {
|
|
2162
|
-
_checkSameNumber = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
2221
|
+
_checkSameNumber = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee10(good) {
|
|
2163
2222
|
var content, _content;
|
|
2164
2223
|
|
|
2165
|
-
return _regeneratorRuntime().wrap(function
|
|
2224
|
+
return _regeneratorRuntime().wrap(function _callee10$(_context10) {
|
|
2166
2225
|
while (1) {
|
|
2167
|
-
switch (
|
|
2226
|
+
switch (_context10.prev = _context10.next) {
|
|
2168
2227
|
case 0:
|
|
2169
2228
|
if (good.quantity) {
|
|
2170
|
-
|
|
2229
|
+
_context10.next = 2;
|
|
2171
2230
|
break;
|
|
2172
2231
|
}
|
|
2173
2232
|
|
|
2174
|
-
return
|
|
2233
|
+
return _context10.abrupt("return");
|
|
2175
2234
|
|
|
2176
2235
|
case 2:
|
|
2177
2236
|
if (!(!good.lineAmountExcludeTax && good.lineAmountExcludeTax !== 0)) {
|
|
2178
|
-
|
|
2237
|
+
_context10.next = 6;
|
|
2179
2238
|
break;
|
|
2180
2239
|
}
|
|
2181
2240
|
|
|
@@ -2188,11 +2247,11 @@ function _checkSameNumber() {
|
|
|
2188
2247
|
|
|
2189
2248
|
case 6:
|
|
2190
2249
|
if (!(good.quantity >= 0 && good.lineAmountExcludeTax >= 0 || good.lineAmountExcludeTax === 0 || good.quantity < 0 && good.lineAmountExcludeTax < 0)) {
|
|
2191
|
-
|
|
2250
|
+
_context10.next = 10;
|
|
2192
2251
|
break;
|
|
2193
2252
|
}
|
|
2194
2253
|
|
|
2195
|
-
return
|
|
2254
|
+
return _context10.abrupt("return");
|
|
2196
2255
|
|
|
2197
2256
|
case 10:
|
|
2198
2257
|
_content = '合并失败,合并后“数量”和“金额”必须同时为正数或同时为负数。';
|
|
@@ -2204,10 +2263,10 @@ function _checkSameNumber() {
|
|
|
2204
2263
|
|
|
2205
2264
|
case 13:
|
|
2206
2265
|
case "end":
|
|
2207
|
-
return
|
|
2266
|
+
return _context10.stop();
|
|
2208
2267
|
}
|
|
2209
2268
|
}
|
|
2210
|
-
},
|
|
2269
|
+
}, _callee10);
|
|
2211
2270
|
}));
|
|
2212
2271
|
return _checkSameNumber.apply(this, arguments);
|
|
2213
2272
|
}
|
|
@@ -9466,7 +9525,7 @@ var InvoiceHeader = decorator(Form.create())(function (props) {
|
|
|
9466
9525
|
render: function render(form) {
|
|
9467
9526
|
return form.getFieldDecorator('code', {
|
|
9468
9527
|
initialValue: props.defaultCode
|
|
9469
|
-
})(
|
|
9528
|
+
})(React.createElement(FormSpanString, null));
|
|
9470
9529
|
}
|
|
9471
9530
|
});
|
|
9472
9531
|
}
|
|
@@ -9479,7 +9538,7 @@ var InvoiceHeader = decorator(Form.create())(function (props) {
|
|
|
9479
9538
|
render: function render(form) {
|
|
9480
9539
|
return form.getFieldDecorator('no', {
|
|
9481
9540
|
initialValue: props.defaultNo
|
|
9482
|
-
})(
|
|
9541
|
+
})(React.createElement(FormSpanString, null));
|
|
9483
9542
|
}
|
|
9484
9543
|
});
|
|
9485
9544
|
}
|
|
@@ -9490,7 +9549,7 @@ var InvoiceHeader = decorator(Form.create())(function (props) {
|
|
|
9490
9549
|
render: function render(form) {
|
|
9491
9550
|
return form.getFieldDecorator('invoicingDate', {
|
|
9492
9551
|
initialValue: props.defaultInvoicingDate
|
|
9493
|
-
})(
|
|
9552
|
+
})(React.createElement(FormSpanString, null));
|
|
9494
9553
|
}
|
|
9495
9554
|
});
|
|
9496
9555
|
}
|
|
@@ -9501,7 +9560,7 @@ var InvoiceHeader = decorator(Form.create())(function (props) {
|
|
|
9501
9560
|
render: function render(form) {
|
|
9502
9561
|
return form.getFieldDecorator('defaultValidationCode', {
|
|
9503
9562
|
initialValue: props.defaultValidationCode
|
|
9504
|
-
})(
|
|
9563
|
+
})(React.createElement(FormSpanString, null));
|
|
9505
9564
|
}
|
|
9506
9565
|
});
|
|
9507
9566
|
}
|
|
@@ -9521,21 +9580,21 @@ var InvoiceHeader = decorator(Form.create())(function (props) {
|
|
|
9521
9580
|
React.useEffect(function () {
|
|
9522
9581
|
setTypeIndex(props.typeOptionIndex || 0);
|
|
9523
9582
|
}, [props.typeOption]);
|
|
9524
|
-
return
|
|
9583
|
+
return React.createElement("div", {
|
|
9525
9584
|
className: "kts-invoice-operate-invoice-header"
|
|
9526
|
-
},
|
|
9585
|
+
}, React.createElement("div", {
|
|
9527
9586
|
className: "invoice-header-title"
|
|
9528
|
-
}, title),
|
|
9587
|
+
}, title), React.createElement("div", {
|
|
9529
9588
|
className: "invoice-header-no"
|
|
9530
|
-
}, isInvoiceNo ?
|
|
9589
|
+
}, isInvoiceNo ? React.createElement("div", null, React.createElement("label", null, "\u53D1\u7968\u5355\u636E\u7F16\u53F7 :"), getFieldDecorator('id', {
|
|
9531
9590
|
initialValue: props.defaultId
|
|
9532
|
-
})(
|
|
9591
|
+
})(React.createElement(Input, {
|
|
9533
9592
|
disabled: readOnlyInvoiceNo,
|
|
9534
9593
|
style: {
|
|
9535
9594
|
width: 230
|
|
9536
9595
|
},
|
|
9537
9596
|
size: "small",
|
|
9538
|
-
suffix: controller.updateInvoiceNo &&
|
|
9597
|
+
suffix: controller.updateInvoiceNo && React.createElement(Icon$1, {
|
|
9539
9598
|
style: {
|
|
9540
9599
|
cursor: 'pointer'
|
|
9541
9600
|
},
|
|
@@ -9579,15 +9638,15 @@ var InvoiceHeader = decorator(Form.create())(function (props) {
|
|
|
9579
9638
|
return onClick;
|
|
9580
9639
|
}()
|
|
9581
9640
|
})
|
|
9582
|
-
}))) :
|
|
9641
|
+
}))) : React.createElement("div", {
|
|
9583
9642
|
style: {
|
|
9584
9643
|
height: 20
|
|
9585
9644
|
}
|
|
9586
|
-
}), tag &&
|
|
9645
|
+
}), tag && React.createElement(Tag$1, null, tag), React.createElement("div", {
|
|
9587
9646
|
className: "invoice-header-type"
|
|
9588
9647
|
}, props.typeOption ? getFieldDecorator('type', {
|
|
9589
9648
|
initialValue: typeIndex
|
|
9590
|
-
})(
|
|
9649
|
+
})(React.createElement(Select, {
|
|
9591
9650
|
size: "small",
|
|
9592
9651
|
style: {
|
|
9593
9652
|
width: 230
|
|
@@ -9596,20 +9655,20 @@ var InvoiceHeader = decorator(Form.create())(function (props) {
|
|
|
9596
9655
|
setTypeIndex(e);
|
|
9597
9656
|
}
|
|
9598
9657
|
}, props.typeOption.map(function (e, i) {
|
|
9599
|
-
return
|
|
9658
|
+
return React.createElement(Select.Option, {
|
|
9600
9659
|
key: i,
|
|
9601
9660
|
value: i
|
|
9602
9661
|
}, e.title);
|
|
9603
|
-
}))) : props.renderExpand && props.renderExpand(props.form))), props.typeOption &&
|
|
9662
|
+
}))) : props.renderExpand && props.renderExpand(props.form))), props.typeOption && React.createElement("div", {
|
|
9604
9663
|
style: {
|
|
9605
9664
|
marginTop: 10
|
|
9606
9665
|
}
|
|
9607
|
-
}, props.renderExpand && props.renderExpand(props.form)),
|
|
9666
|
+
}, props.renderExpand && props.renderExpand(props.form)), React.createElement("div", {
|
|
9608
9667
|
className: "invoice-header-property"
|
|
9609
|
-
}, _toConsumableArray(props.fieldExpand || []).map(function (e) {}),
|
|
9668
|
+
}, _toConsumableArray(props.fieldExpand || []).map(function (e) {}), React.createElement("ul", {
|
|
9610
9669
|
className: 'invoice-header-property-fieldExpand'
|
|
9611
9670
|
}, fieldExpand.map(function (e) {
|
|
9612
|
-
return
|
|
9671
|
+
return React.createElement("li", null, React.createElement("label", null, e.label), e.render(form));
|
|
9613
9672
|
}))));
|
|
9614
9673
|
});
|
|
9615
9674
|
|
|
@@ -9628,7 +9687,7 @@ var FormSpanString = /*#__PURE__*/function (_React$Component) {
|
|
|
9628
9687
|
key: "render",
|
|
9629
9688
|
value: function render() {
|
|
9630
9689
|
// return <span>{this.props.value}</span>;
|
|
9631
|
-
return
|
|
9690
|
+
return React.createElement(Input, {
|
|
9632
9691
|
size: "small",
|
|
9633
9692
|
disabled: true,
|
|
9634
9693
|
value: this.props.value
|
|
@@ -9739,12 +9798,12 @@ function TableVirtual (props) {
|
|
|
9739
9798
|
if (!cont) return;
|
|
9740
9799
|
cont.scrollTop = 0;
|
|
9741
9800
|
}, [(_props$dataSource2 = props.dataSource) === null || _props$dataSource2 === void 0 ? void 0 : _props$dataSource2.length]);
|
|
9742
|
-
return
|
|
9801
|
+
return React.createElement("span", {
|
|
9743
9802
|
className: "kts-invoice-operate-goods-table-virtual",
|
|
9744
9803
|
ref: function ref(e) {
|
|
9745
9804
|
setSelf(e);
|
|
9746
9805
|
}
|
|
9747
|
-
},
|
|
9806
|
+
}, React.createElement(TableManual, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
9748
9807
|
dataSource: dataSource,
|
|
9749
9808
|
// 新版本Table会有输入框无法连续输入的问题,先兼容老版本
|
|
9750
9809
|
tableComponent: Table
|
|
@@ -9836,59 +9895,59 @@ var Statistics = (function () {
|
|
|
9836
9895
|
});
|
|
9837
9896
|
return sum.done().toNumber();
|
|
9838
9897
|
}, []);
|
|
9839
|
-
return
|
|
9898
|
+
return React.createElement("div", {
|
|
9840
9899
|
className: "kts-invoice-operate-goods-list-statistics"
|
|
9841
|
-
},
|
|
9900
|
+
}, React.createElement("div", {
|
|
9842
9901
|
className: "kts-invoice-operate-goods-list-statistics-row"
|
|
9843
|
-
},
|
|
9902
|
+
}, React.createElement("div", {
|
|
9844
9903
|
style: {
|
|
9845
9904
|
width: 45.92
|
|
9846
9905
|
}
|
|
9847
|
-
}),
|
|
9906
|
+
}), React.createElement("div", {
|
|
9848
9907
|
style: {
|
|
9849
9908
|
flex: 1
|
|
9850
9909
|
}
|
|
9851
|
-
},
|
|
9910
|
+
}, React.createElement("label", null, "\u5408\u8BA1")), React.createElement("div", {
|
|
9852
9911
|
style: {
|
|
9853
9912
|
width: 119,
|
|
9854
9913
|
textAlign: 'right',
|
|
9855
9914
|
border: 'none'
|
|
9856
9915
|
}
|
|
9857
|
-
},
|
|
9916
|
+
}, React.createElement("label", null, parseFloat(isTaxIncluded ? lineAmountIncludeTax : lineAmountExcludeTax).toFixed(2))), React.createElement("div", {
|
|
9858
9917
|
style: {
|
|
9859
9918
|
width: 70,
|
|
9860
9919
|
border: 'none'
|
|
9861
9920
|
}
|
|
9862
|
-
}),
|
|
9921
|
+
}), React.createElement("div", {
|
|
9863
9922
|
style: {
|
|
9864
9923
|
width: 119,
|
|
9865
9924
|
textAlign: 'right',
|
|
9866
9925
|
border: 'none'
|
|
9867
9926
|
}
|
|
9868
|
-
},
|
|
9927
|
+
}, React.createElement("label", null, parseFloat(taxAmount).toFixed(2))), React.createElement("div", {
|
|
9869
9928
|
style: {
|
|
9870
9929
|
width: 111,
|
|
9871
9930
|
border: 'none'
|
|
9872
9931
|
}
|
|
9873
|
-
})),
|
|
9932
|
+
})), React.createElement("div", {
|
|
9874
9933
|
className: "kts-invoice-operate-goods-list-statistics-row"
|
|
9875
|
-
},
|
|
9934
|
+
}, React.createElement("div", {
|
|
9876
9935
|
style: {
|
|
9877
9936
|
width: 45.92
|
|
9878
9937
|
}
|
|
9879
|
-
}),
|
|
9938
|
+
}), React.createElement("div", {
|
|
9880
9939
|
style: {
|
|
9881
9940
|
flex: 5,
|
|
9882
9941
|
border: 'none'
|
|
9883
9942
|
}
|
|
9884
|
-
},
|
|
9943
|
+
}, React.createElement("label", null, "\u4EF7\u7A0E\u5408\u8BA1\uFF08\u5927\u5199\uFF09"), React.createElement("label", null, nzhcn.toMoney(lineAmountIncludeTax, {
|
|
9885
9944
|
outSymbol: false
|
|
9886
|
-
}))),
|
|
9945
|
+
}))), React.createElement("div", {
|
|
9887
9946
|
style: {
|
|
9888
9947
|
flex: 5,
|
|
9889
9948
|
border: 'none'
|
|
9890
9949
|
}
|
|
9891
|
-
},
|
|
9950
|
+
}, React.createElement("label", null, "\uFF08\u5C0F\u5199\uFF09 ", parseFloat(lineAmountIncludeTax).toFixed(2)))));
|
|
9892
9951
|
});
|
|
9893
9952
|
|
|
9894
9953
|
var AddRowButton = (function () {
|
|
@@ -9943,10 +10002,10 @@ var AddRowButton = (function () {
|
|
|
9943
10002
|
}
|
|
9944
10003
|
}, _callee);
|
|
9945
10004
|
})), [controller, rootElement]);
|
|
9946
|
-
if (isAddRow === false) return
|
|
9947
|
-
if (model === 'prefab') return
|
|
9948
|
-
if (model === 'readOnly') return
|
|
9949
|
-
return
|
|
10005
|
+
if (isAddRow === false) return React.createElement(React.Fragment, null);
|
|
10006
|
+
if (model === 'prefab') return React.createElement(React.Fragment, null);
|
|
10007
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
10008
|
+
return React.createElement(Button, {
|
|
9950
10009
|
onClick: onClick,
|
|
9951
10010
|
disabled: disabled
|
|
9952
10011
|
}, "\u6DFB\u52A0\u884C");
|
|
@@ -10097,11 +10156,11 @@ var TaxIncludedSwitch = (function () {
|
|
|
10097
10156
|
};
|
|
10098
10157
|
}())();
|
|
10099
10158
|
}, []);
|
|
10100
|
-
return
|
|
10159
|
+
return React.createElement("span", null, React.createElement("label", {
|
|
10101
10160
|
style: {
|
|
10102
10161
|
marginRight: 2
|
|
10103
10162
|
}
|
|
10104
|
-
}, "\u542B\u7A0E:"),
|
|
10163
|
+
}, "\u542B\u7A0E:"), React.createElement(Switch, {
|
|
10105
10164
|
disabled: isSwitchTax === false,
|
|
10106
10165
|
checked: isTaxIncluded,
|
|
10107
10166
|
defaultChecked: true,
|
|
@@ -10139,19 +10198,19 @@ var DescribeSwitch = (function () {
|
|
|
10139
10198
|
};
|
|
10140
10199
|
}());
|
|
10141
10200
|
}, []);
|
|
10142
|
-
if (!productComparison.onComply) return
|
|
10143
|
-
return
|
|
10201
|
+
if (!productComparison.onComply) return React.createElement(React.Fragment, null);
|
|
10202
|
+
return React.createElement("span", null, React.createElement("label", {
|
|
10144
10203
|
style: {
|
|
10145
10204
|
marginRight: 2
|
|
10146
10205
|
}
|
|
10147
|
-
},
|
|
10206
|
+
}, React.createElement(Tooltip, {
|
|
10148
10207
|
title: "\u84DD\u8272\u4EE3\u8868\u6211\u65B9\u5546\u54C1\u63CF\u8FF0\uFF0C\u9ED1\u8272\u4EE3\u8868\u5BF9\u65B9\u7684\u5546\u54C1\u63CF\u8FF0\u3002"
|
|
10149
|
-
},
|
|
10208
|
+
}, React.createElement(Icon$1, {
|
|
10150
10209
|
style: {
|
|
10151
10210
|
marginRight: 3
|
|
10152
10211
|
},
|
|
10153
10212
|
type: "info-circle"
|
|
10154
|
-
})), "\u4F7F\u7528\u54EA\u65B9\u5546\u54C1\u63CF\u8FF0:"),
|
|
10213
|
+
})), "\u4F7F\u7528\u54EA\u65B9\u5546\u54C1\u63CF\u8FF0:"), React.createElement(Switch$1, {
|
|
10155
10214
|
checked: isMyShow,
|
|
10156
10215
|
checkedChildren: "\u6211\u65B9",
|
|
10157
10216
|
unCheckedChildren: "\u5BF9\u65B9",
|
|
@@ -10251,13 +10310,13 @@ function Search() {
|
|
|
10251
10310
|
};
|
|
10252
10311
|
}());
|
|
10253
10312
|
}, [value, controller]);
|
|
10254
|
-
return
|
|
10313
|
+
return React.createElement(Input, {
|
|
10255
10314
|
size: "small",
|
|
10256
10315
|
readOnly: readOnly,
|
|
10257
10316
|
value: value,
|
|
10258
10317
|
className: "kts-invoice-operate-goods-list-search",
|
|
10259
10318
|
placeholder: "\u8BF7\u60A8\u8F93\u5165".concat(columnshide.includes('itemCode') ? '' : '商品编码、', "\u9879\u76EE\u540D\u79F0\u3001\u89C4\u683C\u578B\u53F7\u3001\u91D1\u989D(").concat(isTaxIncluded ? '含税' : '不含税', ")\u641C\u7D22"),
|
|
10260
|
-
prefix:
|
|
10319
|
+
prefix: React.createElement(Icon$1, {
|
|
10261
10320
|
component: SvgMagnifier,
|
|
10262
10321
|
style: {
|
|
10263
10322
|
color: "#b8b8b8"
|
|
@@ -10309,13 +10368,13 @@ function TableRow(props) {
|
|
|
10309
10368
|
return undefined;
|
|
10310
10369
|
}
|
|
10311
10370
|
}, [good, goodsMap]);
|
|
10312
|
-
return rowKey === current && current ?
|
|
10371
|
+
return rowKey === current && current ? React.createElement("tr", {
|
|
10313
10372
|
style: {
|
|
10314
10373
|
height: 32.67,
|
|
10315
10374
|
borderBottom: '1px solid #E6E6E6',
|
|
10316
10375
|
position: 'relative'
|
|
10317
10376
|
}
|
|
10318
|
-
},
|
|
10377
|
+
}, React.createElement("div", {
|
|
10319
10378
|
style: {
|
|
10320
10379
|
height: 1,
|
|
10321
10380
|
width: '100%',
|
|
@@ -10323,7 +10382,7 @@ function TableRow(props) {
|
|
|
10323
10382
|
position: 'absolute',
|
|
10324
10383
|
bottom: 0
|
|
10325
10384
|
}
|
|
10326
|
-
})) :
|
|
10385
|
+
})) : React.createElement("tr", _objectSpread2(_objectSpread2({}, props), {}, {
|
|
10327
10386
|
className: classNames(props.className, discount, rowKey === container && current ? 'kts-invoice-operate-goods-list-itemName-drag-container-' + site : undefined)
|
|
10328
10387
|
}));
|
|
10329
10388
|
}
|
|
@@ -10731,7 +10790,7 @@ var RowMenu = (function (props) {
|
|
|
10731
10790
|
// addComparison && arr.push(addComparison); // 添加商品对照
|
|
10732
10791
|
|
|
10733
10792
|
if (!goodsMenuExpand || goodsMenuExpand.length === 0) return arr;
|
|
10734
|
-
arr.unshift(
|
|
10793
|
+
arr.unshift(React.createElement(Menu.Divider, {
|
|
10735
10794
|
key: "divider-1"
|
|
10736
10795
|
}));
|
|
10737
10796
|
|
|
@@ -10747,17 +10806,17 @@ var RowMenu = (function (props) {
|
|
|
10747
10806
|
return undefined;
|
|
10748
10807
|
}
|
|
10749
10808
|
|
|
10750
|
-
return
|
|
10751
|
-
return
|
|
10809
|
+
return React.createElement(Menu, null, itemList.slice(2).map(function (e) {
|
|
10810
|
+
return React.createElement(Menu.Item, {
|
|
10752
10811
|
key: e.key,
|
|
10753
10812
|
onClick: e.onClick
|
|
10754
|
-
},
|
|
10813
|
+
}, React.createElement(Text$1, {
|
|
10755
10814
|
strong: true
|
|
10756
10815
|
}, e.title));
|
|
10757
10816
|
}));
|
|
10758
10817
|
}, [itemList]);
|
|
10759
10818
|
var buttonList = React.useMemo(function () {
|
|
10760
|
-
return
|
|
10819
|
+
return React.createElement("div", {
|
|
10761
10820
|
style: {
|
|
10762
10821
|
flex: 1,
|
|
10763
10822
|
textAlign: 'left',
|
|
@@ -10765,7 +10824,7 @@ var RowMenu = (function (props) {
|
|
|
10765
10824
|
gap: 10
|
|
10766
10825
|
}
|
|
10767
10826
|
}, itemList.slice(0, 2).map(function (e) {
|
|
10768
|
-
return
|
|
10827
|
+
return React.createElement(Button, {
|
|
10769
10828
|
key: e.key,
|
|
10770
10829
|
type: 'link',
|
|
10771
10830
|
onClick: e.onClick,
|
|
@@ -10777,21 +10836,21 @@ var RowMenu = (function (props) {
|
|
|
10777
10836
|
}, [itemList]);
|
|
10778
10837
|
|
|
10779
10838
|
if (itemList.length === 0) {
|
|
10780
|
-
return
|
|
10839
|
+
return React.createElement(React.Fragment, null);
|
|
10781
10840
|
}
|
|
10782
10841
|
|
|
10783
|
-
return
|
|
10842
|
+
return React.createElement("span", {
|
|
10784
10843
|
style: {
|
|
10785
10844
|
padding: '0 0 0 10px',
|
|
10786
10845
|
display: 'flex'
|
|
10787
10846
|
}
|
|
10788
|
-
}, buttonList, overlay &&
|
|
10847
|
+
}, buttonList, overlay && React.createElement(Dropdown, {
|
|
10789
10848
|
overlay: overlay,
|
|
10790
10849
|
trigger: ['click']
|
|
10791
|
-
},
|
|
10850
|
+
}, React.createElement(Button, {
|
|
10792
10851
|
className: "kts-invoice-operate-goods-list-columns-row-menu ant-btn-icon-only",
|
|
10793
10852
|
type: "link"
|
|
10794
|
-
},
|
|
10853
|
+
}, React.createElement(Icon$1, {
|
|
10795
10854
|
component: SvgSpot
|
|
10796
10855
|
}))));
|
|
10797
10856
|
});
|
|
@@ -10805,9 +10864,9 @@ var TitleText = (function (props) {
|
|
|
10805
10864
|
return !!e.required;
|
|
10806
10865
|
})) || props.required;
|
|
10807
10866
|
}, [rules, props.required]);
|
|
10808
|
-
return
|
|
10867
|
+
return React.createElement(React.Fragment, null, required ? React.createElement(Text$2, {
|
|
10809
10868
|
type: "danger"
|
|
10810
|
-
}, "*") :
|
|
10869
|
+
}, "*") : React.createElement(React.Fragment, null), children);
|
|
10811
10870
|
});
|
|
10812
10871
|
|
|
10813
10872
|
var css_248z$7 = ".kts-invoice-operate-goods-list-itemName-input {\n display: flex;\n flex: 1;\n padding-left: 10px;\n height: 31px;\n}\n.kts-invoice-operate-goods-list-itemName-input .ktsAntX-select {\n width: 100%;\n}\n.kts-invoice-operate-goods-list-itemName-input .ktsAntX-select .ktsAntX-select-selector {\n height: 100%;\n}\n.has-error .kts-invoice-operate-goods-list-itemName-input {\n border: 1px solid #f5222d;\n}\n";
|
|
@@ -10997,14 +11056,14 @@ function ItemNameInput(props) {
|
|
|
10997
11056
|
React.useEffect(function () {
|
|
10998
11057
|
setValue(props.value);
|
|
10999
11058
|
}, [props.value]);
|
|
11000
|
-
return
|
|
11059
|
+
return React.createElement("div", {
|
|
11001
11060
|
className: 'kts-invoice-operate-goods-list-itemName-input'
|
|
11002
|
-
}, props.shorthand &&
|
|
11061
|
+
}, props.shorthand && React.createElement("span", {
|
|
11003
11062
|
style: {
|
|
11004
11063
|
alignSelf: 'center',
|
|
11005
11064
|
fontSize: 12
|
|
11006
11065
|
}
|
|
11007
|
-
}, "*", props.shorthand, "*"),
|
|
11066
|
+
}, "*", props.shorthand, "*"), React.createElement(AutoComplete$1, {
|
|
11008
11067
|
onSearch: onSearch,
|
|
11009
11068
|
value: props.value,
|
|
11010
11069
|
options: options.map(function (e) {
|
|
@@ -11014,7 +11073,7 @@ function ItemNameInput(props) {
|
|
|
11014
11073
|
};
|
|
11015
11074
|
}),
|
|
11016
11075
|
onSelect: onChangeAutoComplete
|
|
11017
|
-
},
|
|
11076
|
+
}, React.createElement(Input, {
|
|
11018
11077
|
style: {
|
|
11019
11078
|
height: '100%',
|
|
11020
11079
|
border: 'none'
|
|
@@ -11123,9 +11182,9 @@ function ItemCodeInput(props) {
|
|
|
11123
11182
|
return _ref2.apply(this, arguments);
|
|
11124
11183
|
};
|
|
11125
11184
|
}(), [options, controller]);
|
|
11126
|
-
return
|
|
11185
|
+
return React.createElement("div", {
|
|
11127
11186
|
className: 'kts-invoice-operate-goods-list-itemCode-input'
|
|
11128
|
-
},
|
|
11187
|
+
}, React.createElement(AutoComplete$1, {
|
|
11129
11188
|
onSearch: onSearch,
|
|
11130
11189
|
value: props.value,
|
|
11131
11190
|
options: options.map(function (e) {
|
|
@@ -11134,7 +11193,7 @@ function ItemCodeInput(props) {
|
|
|
11134
11193
|
};
|
|
11135
11194
|
}),
|
|
11136
11195
|
onSelect: onChangeAutoComplete
|
|
11137
|
-
},
|
|
11196
|
+
}, React.createElement(Input, {
|
|
11138
11197
|
style: {
|
|
11139
11198
|
height: '100%',
|
|
11140
11199
|
border: 'none'
|
|
@@ -12315,7 +12374,7 @@ function Drag$1(props) {
|
|
|
12315
12374
|
var currentGood = controller.state.goodsListState.goodsList.filter(function (e) {
|
|
12316
12375
|
return e.$index === record.$index;
|
|
12317
12376
|
})[0];
|
|
12318
|
-
mounting(
|
|
12377
|
+
mounting(React.createElement(DragDiv, _objectSpread2({}, currentGood)));
|
|
12319
12378
|
rowList.forEach(function (e) {
|
|
12320
12379
|
e.addEventListener('mousemove', onMousemove);
|
|
12321
12380
|
});
|
|
@@ -12476,7 +12535,7 @@ function Drag$1(props) {
|
|
|
12476
12535
|
|
|
12477
12536
|
|
|
12478
12537
|
function insert() {
|
|
12479
|
-
mounting(
|
|
12538
|
+
mounting(React.createElement(React.Fragment, null));
|
|
12480
12539
|
controller.run( /*#__PURE__*/function () {
|
|
12481
12540
|
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(s) {
|
|
12482
12541
|
var _s$goodsListState$dra, container, current, site, goodsList, goodsMap, _currentGood, currentIndex, moveGoods;
|
|
@@ -12555,7 +12614,7 @@ function Drag$1(props) {
|
|
|
12555
12614
|
}
|
|
12556
12615
|
}, [controller, record, disabled]);
|
|
12557
12616
|
var renderButton = React.useMemo(function () {
|
|
12558
|
-
return
|
|
12617
|
+
return React.createElement(Button, {
|
|
12559
12618
|
type: 'link',
|
|
12560
12619
|
style: {
|
|
12561
12620
|
padding: 0
|
|
@@ -12566,13 +12625,13 @@ function Drag$1(props) {
|
|
|
12566
12625
|
},
|
|
12567
12626
|
className: "kts-invoice-operate-goods-list-itemName-drag",
|
|
12568
12627
|
onMouseOver: controller.saveEditGood
|
|
12569
|
-
},
|
|
12628
|
+
}, React.createElement(Icon, {
|
|
12570
12629
|
component: SvgI001
|
|
12571
12630
|
}));
|
|
12572
12631
|
}, [onMouseDown, controller]);
|
|
12573
12632
|
|
|
12574
12633
|
if (disabled) {
|
|
12575
|
-
return
|
|
12634
|
+
return React.createElement(Popover, {
|
|
12576
12635
|
content: '您还有未编辑完成的商品',
|
|
12577
12636
|
trigger: 'focus'
|
|
12578
12637
|
}, renderButton);
|
|
@@ -12612,13 +12671,13 @@ function DragDiv(props) {
|
|
|
12612
12671
|
window.removeEventListener('mousemove', onMousemove);
|
|
12613
12672
|
};
|
|
12614
12673
|
});
|
|
12615
|
-
return
|
|
12674
|
+
return React.createElement("div", {
|
|
12616
12675
|
className: "kts-invoice-operate-goods-list-itemName-drag-div",
|
|
12617
12676
|
style: {
|
|
12618
12677
|
top: y,
|
|
12619
12678
|
left: x
|
|
12620
12679
|
}
|
|
12621
|
-
},
|
|
12680
|
+
}, React.createElement("span", null, props.itemName), React.createElement("span", null, props.itemModelName), React.createElement("span", null, props.unit));
|
|
12622
12681
|
}
|
|
12623
12682
|
|
|
12624
12683
|
var useColumns = (function (form) {
|
|
@@ -12739,7 +12798,7 @@ var useColumns = (function (form) {
|
|
|
12739
12798
|
width: 40,
|
|
12740
12799
|
align: 'center',
|
|
12741
12800
|
render: function render(_, record) {
|
|
12742
|
-
return
|
|
12801
|
+
return React.createElement(Drag$1, {
|
|
12743
12802
|
record: record
|
|
12744
12803
|
});
|
|
12745
12804
|
}
|
|
@@ -12749,7 +12808,7 @@ var useColumns = (function (form) {
|
|
|
12749
12808
|
dataIndex: 'serialNo',
|
|
12750
12809
|
width: 50,
|
|
12751
12810
|
render: function render(e) {
|
|
12752
|
-
return
|
|
12811
|
+
return React.createElement("span", {
|
|
12753
12812
|
style: {
|
|
12754
12813
|
padding: '0 10px'
|
|
12755
12814
|
}
|
|
@@ -12761,13 +12820,13 @@ var useColumns = (function (form) {
|
|
|
12761
12820
|
width: 119,
|
|
12762
12821
|
render: function render(_, record) {
|
|
12763
12822
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
12764
|
-
return
|
|
12823
|
+
return React.createElement(Form.Item, null, getFieldDecorator('itemCode', {
|
|
12765
12824
|
initialValue: editGood.itemCode,
|
|
12766
12825
|
rules: [].concat(_toConsumableArray(getReplenishRules('itemCode')), [{
|
|
12767
12826
|
pattern: /^.{1,19}$/,
|
|
12768
12827
|
message: '商品编码长度不能超过19位'
|
|
12769
12828
|
}])
|
|
12770
|
-
})(
|
|
12829
|
+
})(React.createElement(ItemCodeInput, {
|
|
12771
12830
|
onChange: function () {
|
|
12772
12831
|
var _onChange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
12773
12832
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
@@ -12793,7 +12852,7 @@ var useColumns = (function (form) {
|
|
|
12793
12852
|
}()
|
|
12794
12853
|
})));
|
|
12795
12854
|
} else {
|
|
12796
|
-
return
|
|
12855
|
+
return React.createElement("span", {
|
|
12797
12856
|
style: {
|
|
12798
12857
|
padding: '0 10px'
|
|
12799
12858
|
}
|
|
@@ -12801,13 +12860,13 @@ var useColumns = (function (form) {
|
|
|
12801
12860
|
}
|
|
12802
12861
|
}
|
|
12803
12862
|
}, {
|
|
12804
|
-
title:
|
|
12863
|
+
title: React.createElement(TitleText, {
|
|
12805
12864
|
required: true
|
|
12806
12865
|
}, "\u9879\u76EE\u540D\u79F0"),
|
|
12807
12866
|
key: 'itemName',
|
|
12808
12867
|
render: function render(_, record) {
|
|
12809
12868
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
12810
|
-
return
|
|
12869
|
+
return React.createElement(Form.Item, null, React.createElement("div", {
|
|
12811
12870
|
style: {
|
|
12812
12871
|
display: 'flex'
|
|
12813
12872
|
}
|
|
@@ -12854,17 +12913,17 @@ var useColumns = (function (form) {
|
|
|
12854
12913
|
return validator;
|
|
12855
12914
|
}()
|
|
12856
12915
|
}])
|
|
12857
|
-
})(
|
|
12916
|
+
})(React.createElement(ItemNameInput, {
|
|
12858
12917
|
editGood: editGood,
|
|
12859
12918
|
shorthand: editGood.shorthand,
|
|
12860
12919
|
onChange: function onChange() {
|
|
12861
12920
|
onChangeItemName(controller, form, record);
|
|
12862
12921
|
}
|
|
12863
|
-
})),
|
|
12922
|
+
})), React.createElement("div", {
|
|
12864
12923
|
className: "kts-invoice-operate-goods-list-able-list-itemName-import"
|
|
12865
|
-
}, controller.getGoodsList && model !== 'readOnly' &&
|
|
12924
|
+
}, controller.getGoodsList && model !== 'readOnly' && React.createElement(Tooltip, {
|
|
12866
12925
|
title: "\u70B9\u51FB\u4ECE\u5546\u54C1\u7BA1\u7406\u4E2D\u6DFB\u52A0\u5546\u54C1\u4FE1\u606F"
|
|
12867
|
-
},
|
|
12926
|
+
}, React.createElement(Button, {
|
|
12868
12927
|
onClick: controller.pipeline( /*#__PURE__*/function () {
|
|
12869
12928
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(s) {
|
|
12870
12929
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
@@ -12889,7 +12948,7 @@ var useColumns = (function (form) {
|
|
|
12889
12948
|
icon: "plus-circle"
|
|
12890
12949
|
})))));
|
|
12891
12950
|
} else {
|
|
12892
|
-
return
|
|
12951
|
+
return React.createElement(MyItemNameDiv, {
|
|
12893
12952
|
valueT: formatSearch(getItemNameWithShorthand({
|
|
12894
12953
|
shorthand: record.shorthand,
|
|
12895
12954
|
full: record.itemNameSelf || ''
|
|
@@ -12903,17 +12962,17 @@ var useColumns = (function (form) {
|
|
|
12903
12962
|
}
|
|
12904
12963
|
}
|
|
12905
12964
|
}, {
|
|
12906
|
-
title:
|
|
12965
|
+
title: React.createElement(TitleText, {
|
|
12907
12966
|
rules: (_columnsReplenish$ite = columnsReplenish['itemModelName']) === null || _columnsReplenish$ite === void 0 ? void 0 : _columnsReplenish$ite.rules
|
|
12908
12967
|
}, "\u89C4\u683C\u578B\u53F7"),
|
|
12909
12968
|
key: 'itemModelName',
|
|
12910
12969
|
width: 119,
|
|
12911
12970
|
render: function render(_, record) {
|
|
12912
12971
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
12913
|
-
return
|
|
12972
|
+
return React.createElement(Form.Item, null, getFieldDecorator('itemModelName', {
|
|
12914
12973
|
initialValue: isMyShow ? editGood.itemModelNameSelf : editGood.itemModelName,
|
|
12915
12974
|
rules: getReplenishRules('itemModelName')
|
|
12916
|
-
})(
|
|
12975
|
+
})(React.createElement(MyInput, {
|
|
12917
12976
|
onChange: function () {
|
|
12918
12977
|
var _onChange2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5() {
|
|
12919
12978
|
var key, value;
|
|
@@ -12946,7 +13005,7 @@ var useColumns = (function (form) {
|
|
|
12946
13005
|
}()
|
|
12947
13006
|
})));
|
|
12948
13007
|
} else {
|
|
12949
|
-
return
|
|
13008
|
+
return React.createElement(MyItemNameDiv, {
|
|
12950
13009
|
valueT: formatSearch(record.itemModelNameSelf, searchValue),
|
|
12951
13010
|
valueF: formatSearch(record.itemModelName, searchValue),
|
|
12952
13011
|
isMyShow: isMyShow
|
|
@@ -12954,17 +13013,17 @@ var useColumns = (function (form) {
|
|
|
12954
13013
|
}
|
|
12955
13014
|
}
|
|
12956
13015
|
}, {
|
|
12957
|
-
title:
|
|
13016
|
+
title: React.createElement(TitleText, {
|
|
12958
13017
|
rules: (_columnsReplenish$uni = columnsReplenish['unit']) === null || _columnsReplenish$uni === void 0 ? void 0 : _columnsReplenish$uni.rules
|
|
12959
13018
|
}, "\u5355\u4F4D"),
|
|
12960
13019
|
key: 'unit',
|
|
12961
13020
|
width: 70,
|
|
12962
13021
|
render: function render(_, record) {
|
|
12963
13022
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
12964
|
-
return
|
|
13023
|
+
return React.createElement(Form.Item, null, getFieldDecorator('unit', {
|
|
12965
13024
|
initialValue: editGood.unit,
|
|
12966
13025
|
rules: getReplenishRules('unit')
|
|
12967
|
-
})(
|
|
13026
|
+
})(React.createElement(AutoComplete$2, {
|
|
12968
13027
|
style: {
|
|
12969
13028
|
width: '100%'
|
|
12970
13029
|
},
|
|
@@ -13002,7 +13061,7 @@ var useColumns = (function (form) {
|
|
|
13002
13061
|
}()
|
|
13003
13062
|
})));
|
|
13004
13063
|
} else {
|
|
13005
|
-
return
|
|
13064
|
+
return React.createElement("span", {
|
|
13006
13065
|
style: {
|
|
13007
13066
|
padding: '0 10px'
|
|
13008
13067
|
}
|
|
@@ -13010,7 +13069,7 @@ var useColumns = (function (form) {
|
|
|
13010
13069
|
}
|
|
13011
13070
|
}
|
|
13012
13071
|
}, {
|
|
13013
|
-
title:
|
|
13072
|
+
title: React.createElement(TitleText, {
|
|
13014
13073
|
rules: (_columnsReplenish$qua = columnsReplenish['quantity']) === null || _columnsReplenish$qua === void 0 ? void 0 : _columnsReplenish$qua.rules
|
|
13015
13074
|
}, "\u6570\u91CF"),
|
|
13016
13075
|
dataIndex: 'quantity',
|
|
@@ -13019,7 +13078,7 @@ var useColumns = (function (form) {
|
|
|
13019
13078
|
width: 149,
|
|
13020
13079
|
render: function render(value, record) {
|
|
13021
13080
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
13022
|
-
return
|
|
13081
|
+
return React.createElement(Form.Item, null, getFieldDecorator('quantity', {
|
|
13023
13082
|
initialValue: editGood.quantity,
|
|
13024
13083
|
getValueFromEvent: onNumberValueChange,
|
|
13025
13084
|
rules: [].concat(_toConsumableArray(getReplenishRules('quantity')), [{
|
|
@@ -13065,7 +13124,7 @@ var useColumns = (function (form) {
|
|
|
13065
13124
|
return validator;
|
|
13066
13125
|
}()
|
|
13067
13126
|
}])
|
|
13068
|
-
})(
|
|
13127
|
+
})(React.createElement(MyInput, {
|
|
13069
13128
|
style: {
|
|
13070
13129
|
textAlign: 'right'
|
|
13071
13130
|
},
|
|
@@ -13097,7 +13156,7 @@ var useColumns = (function (form) {
|
|
|
13097
13156
|
}()
|
|
13098
13157
|
})));
|
|
13099
13158
|
} else {
|
|
13100
|
-
return
|
|
13159
|
+
return React.createElement("span", {
|
|
13101
13160
|
style: {
|
|
13102
13161
|
padding: '0 10px'
|
|
13103
13162
|
}
|
|
@@ -13105,7 +13164,7 @@ var useColumns = (function (form) {
|
|
|
13105
13164
|
}
|
|
13106
13165
|
}
|
|
13107
13166
|
}, {
|
|
13108
|
-
title:
|
|
13167
|
+
title: React.createElement(TitleText, {
|
|
13109
13168
|
rules: (_columnsReplenish$pri = columnsReplenish['priceIncludeTax']) === null || _columnsReplenish$pri === void 0 ? void 0 : _columnsReplenish$pri.rules
|
|
13110
13169
|
}, "\u5355\u4EF7(\u542B\u7A0E)"),
|
|
13111
13170
|
dataIndex: 'priceIncludeTax',
|
|
@@ -13114,7 +13173,7 @@ var useColumns = (function (form) {
|
|
|
13114
13173
|
width: 149,
|
|
13115
13174
|
render: function render(value, record) {
|
|
13116
13175
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
13117
|
-
return
|
|
13176
|
+
return React.createElement(Form.Item, null, getFieldDecorator('priceIncludeTax', {
|
|
13118
13177
|
initialValue: editGood.priceIncludeTax,
|
|
13119
13178
|
getValueFromEvent: onNumberValueChange,
|
|
13120
13179
|
rules: [].concat(_toConsumableArray(getReplenishRules('priceIncludeTax')), [{
|
|
@@ -13160,7 +13219,7 @@ var useColumns = (function (form) {
|
|
|
13160
13219
|
return validator;
|
|
13161
13220
|
}()
|
|
13162
13221
|
}])
|
|
13163
|
-
})(
|
|
13222
|
+
})(React.createElement(MyInput, {
|
|
13164
13223
|
style: {
|
|
13165
13224
|
textAlign: 'right'
|
|
13166
13225
|
},
|
|
@@ -13172,7 +13231,7 @@ var useColumns = (function (form) {
|
|
|
13172
13231
|
}
|
|
13173
13232
|
})));
|
|
13174
13233
|
} else {
|
|
13175
|
-
return
|
|
13234
|
+
return React.createElement("span", {
|
|
13176
13235
|
style: {
|
|
13177
13236
|
padding: '0 10px'
|
|
13178
13237
|
}
|
|
@@ -13180,7 +13239,7 @@ var useColumns = (function (form) {
|
|
|
13180
13239
|
}
|
|
13181
13240
|
}
|
|
13182
13241
|
}, {
|
|
13183
|
-
title:
|
|
13242
|
+
title: React.createElement(TitleText, {
|
|
13184
13243
|
rules: (_columnsReplenish$pri2 = columnsReplenish['priceExcludeTax']) === null || _columnsReplenish$pri2 === void 0 ? void 0 : _columnsReplenish$pri2.rules
|
|
13185
13244
|
}, "\u5355\u4EF7(\u4E0D\u542B\u7A0E)"),
|
|
13186
13245
|
dataIndex: 'priceExcludeTax',
|
|
@@ -13189,7 +13248,7 @@ var useColumns = (function (form) {
|
|
|
13189
13248
|
width: 149,
|
|
13190
13249
|
render: function render(value, record) {
|
|
13191
13250
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
13192
|
-
return
|
|
13251
|
+
return React.createElement(Form.Item, null, getFieldDecorator('priceExcludeTax', {
|
|
13193
13252
|
initialValue: editGood.priceExcludeTax,
|
|
13194
13253
|
getValueFromEvent: onNumberValueChange,
|
|
13195
13254
|
rules: [].concat(_toConsumableArray(getReplenishRules('priceExcludeTax')), [{
|
|
@@ -13235,7 +13294,7 @@ var useColumns = (function (form) {
|
|
|
13235
13294
|
return validator;
|
|
13236
13295
|
}()
|
|
13237
13296
|
}])
|
|
13238
|
-
})(
|
|
13297
|
+
})(React.createElement(MyInput, {
|
|
13239
13298
|
style: {
|
|
13240
13299
|
textAlign: 'right'
|
|
13241
13300
|
},
|
|
@@ -13247,7 +13306,7 @@ var useColumns = (function (form) {
|
|
|
13247
13306
|
}
|
|
13248
13307
|
})));
|
|
13249
13308
|
} else {
|
|
13250
|
-
return
|
|
13309
|
+
return React.createElement("span", {
|
|
13251
13310
|
style: {
|
|
13252
13311
|
padding: '0 10px'
|
|
13253
13312
|
}
|
|
@@ -13255,7 +13314,7 @@ var useColumns = (function (form) {
|
|
|
13255
13314
|
}
|
|
13256
13315
|
}
|
|
13257
13316
|
}, {
|
|
13258
|
-
title:
|
|
13317
|
+
title: React.createElement(TitleText, {
|
|
13259
13318
|
required: true
|
|
13260
13319
|
}, "\u91D1\u989D(\u542B\u7A0E)"),
|
|
13261
13320
|
dataIndex: 'lineAmountIncludeTax',
|
|
@@ -13264,7 +13323,7 @@ var useColumns = (function (form) {
|
|
|
13264
13323
|
align: 'right',
|
|
13265
13324
|
render: function render(value, record) {
|
|
13266
13325
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
13267
|
-
return
|
|
13326
|
+
return React.createElement(Form.Item, null, getFieldDecorator('lineAmountIncludeTax', {
|
|
13268
13327
|
initialValue: editGood.lineAmountIncludeTax,
|
|
13269
13328
|
getValueFromEvent: onNumberValueChange,
|
|
13270
13329
|
rules: [].concat(_toConsumableArray(getReplenishRules('lineAmountIncludeTax')), [{
|
|
@@ -13324,7 +13383,7 @@ var useColumns = (function (form) {
|
|
|
13324
13383
|
return validator;
|
|
13325
13384
|
}()
|
|
13326
13385
|
}])
|
|
13327
|
-
})(
|
|
13386
|
+
})(React.createElement(MyInput, {
|
|
13328
13387
|
style: {
|
|
13329
13388
|
textAlign: 'right'
|
|
13330
13389
|
},
|
|
@@ -13335,7 +13394,7 @@ var useColumns = (function (form) {
|
|
|
13335
13394
|
}
|
|
13336
13395
|
})));
|
|
13337
13396
|
} else {
|
|
13338
|
-
return
|
|
13397
|
+
return React.createElement("span", {
|
|
13339
13398
|
style: {
|
|
13340
13399
|
padding: '0 10px'
|
|
13341
13400
|
}
|
|
@@ -13343,7 +13402,7 @@ var useColumns = (function (form) {
|
|
|
13343
13402
|
}
|
|
13344
13403
|
}
|
|
13345
13404
|
}, {
|
|
13346
|
-
title:
|
|
13405
|
+
title: React.createElement(TitleText, {
|
|
13347
13406
|
required: true
|
|
13348
13407
|
}, "\u91D1\u989D(\u4E0D\u542B\u7A0E)"),
|
|
13349
13408
|
dataIndex: 'lineAmountExcludeTax',
|
|
@@ -13352,7 +13411,7 @@ var useColumns = (function (form) {
|
|
|
13352
13411
|
width: 119,
|
|
13353
13412
|
render: function render(value, record) {
|
|
13354
13413
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
13355
|
-
return
|
|
13414
|
+
return React.createElement(Form.Item, null, getFieldDecorator('lineAmountExcludeTax', {
|
|
13356
13415
|
initialValue: editGood.lineAmountExcludeTax,
|
|
13357
13416
|
getValueFromEvent: onNumberValueChange,
|
|
13358
13417
|
rules: [].concat(_toConsumableArray(getReplenishRules('lineAmountExcludeTax')), [{
|
|
@@ -13387,7 +13446,7 @@ var useColumns = (function (form) {
|
|
|
13387
13446
|
return validator;
|
|
13388
13447
|
}()
|
|
13389
13448
|
}])
|
|
13390
|
-
})(
|
|
13449
|
+
})(React.createElement(MyInput, {
|
|
13391
13450
|
style: {
|
|
13392
13451
|
textAlign: 'right'
|
|
13393
13452
|
},
|
|
@@ -13398,7 +13457,7 @@ var useColumns = (function (form) {
|
|
|
13398
13457
|
}
|
|
13399
13458
|
})));
|
|
13400
13459
|
} else {
|
|
13401
|
-
return
|
|
13460
|
+
return React.createElement("span", {
|
|
13402
13461
|
style: {
|
|
13403
13462
|
padding: '0 10px'
|
|
13404
13463
|
}
|
|
@@ -13406,7 +13465,7 @@ var useColumns = (function (form) {
|
|
|
13406
13465
|
}
|
|
13407
13466
|
}
|
|
13408
13467
|
}, {
|
|
13409
|
-
title:
|
|
13468
|
+
title: React.createElement(TitleText, {
|
|
13410
13469
|
required: true
|
|
13411
13470
|
}, "\u7A0E\u7387%"),
|
|
13412
13471
|
dataIndex: 'taxRate',
|
|
@@ -13415,7 +13474,7 @@ var useColumns = (function (form) {
|
|
|
13415
13474
|
width: 75,
|
|
13416
13475
|
render: function render(value, record) {
|
|
13417
13476
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
13418
|
-
return
|
|
13477
|
+
return React.createElement(Form.Item, null, getFieldDecorator('taxRate', {
|
|
13419
13478
|
initialValue: editGood.taxRate,
|
|
13420
13479
|
rules: [].concat(_toConsumableArray(getReplenishRules('taxRate')), [{
|
|
13421
13480
|
required: true,
|
|
@@ -13424,7 +13483,7 @@ var useColumns = (function (form) {
|
|
|
13424
13483
|
pattern: /^[+-]?(0|([1-9]\d*))(\.\d+)?$/,
|
|
13425
13484
|
message: '请选择正确税率'
|
|
13426
13485
|
}])
|
|
13427
|
-
})(
|
|
13486
|
+
})(React.createElement(Select, {
|
|
13428
13487
|
className: "kts-invoice-operate-goods-list-table-tax-rate",
|
|
13429
13488
|
dropdownMenuStyle: {
|
|
13430
13489
|
textAlign: "right"
|
|
@@ -13438,13 +13497,13 @@ var useColumns = (function (form) {
|
|
|
13438
13497
|
onChangeTaxRate(controller, form, record);
|
|
13439
13498
|
}
|
|
13440
13499
|
}, taxRateList.map(function (e, i) {
|
|
13441
|
-
return
|
|
13500
|
+
return React.createElement(Select.Option, {
|
|
13442
13501
|
key: i,
|
|
13443
13502
|
value: e
|
|
13444
13503
|
}, e, "%");
|
|
13445
13504
|
}))));
|
|
13446
13505
|
} else {
|
|
13447
|
-
return
|
|
13506
|
+
return React.createElement("span", {
|
|
13448
13507
|
style: {
|
|
13449
13508
|
padding: '0 10px'
|
|
13450
13509
|
}
|
|
@@ -13452,7 +13511,7 @@ var useColumns = (function (form) {
|
|
|
13452
13511
|
}
|
|
13453
13512
|
}
|
|
13454
13513
|
}, {
|
|
13455
|
-
title:
|
|
13514
|
+
title: React.createElement(TitleText, {
|
|
13456
13515
|
rules: (_columnsReplenish$tax = columnsReplenish['taxAmount']) === null || _columnsReplenish$tax === void 0 ? void 0 : _columnsReplenish$tax.rules
|
|
13457
13516
|
}, "\u7A0E\u989D"),
|
|
13458
13517
|
dataIndex: 'taxAmount',
|
|
@@ -13464,11 +13523,11 @@ var useColumns = (function (form) {
|
|
|
13464
13523
|
return getFieldDecorator('taxAmount', {
|
|
13465
13524
|
initialValue: editGood.taxAmount,
|
|
13466
13525
|
rules: getReplenishRules('taxAmount')
|
|
13467
|
-
})(
|
|
13526
|
+
})(React.createElement(MyDiv, {
|
|
13468
13527
|
loading: isCipher(changeField, 'taxAmount')
|
|
13469
13528
|
}));
|
|
13470
13529
|
} else {
|
|
13471
|
-
return
|
|
13530
|
+
return React.createElement("span", {
|
|
13472
13531
|
style: {
|
|
13473
13532
|
padding: '0 10px'
|
|
13474
13533
|
}
|
|
@@ -13483,42 +13542,42 @@ var useColumns = (function (form) {
|
|
|
13483
13542
|
render: function render(e) {
|
|
13484
13543
|
switch (e) {
|
|
13485
13544
|
case LineAttributeType$1.折扣行:
|
|
13486
|
-
return
|
|
13545
|
+
return React.createElement("span", {
|
|
13487
13546
|
style: {
|
|
13488
13547
|
padding: '0 10px'
|
|
13489
13548
|
}
|
|
13490
13549
|
}, "\u6298\u6263\u884C");
|
|
13491
13550
|
|
|
13492
13551
|
case LineAttributeType$1.被折扣行:
|
|
13493
|
-
return
|
|
13552
|
+
return React.createElement("span", {
|
|
13494
13553
|
style: {
|
|
13495
13554
|
padding: '0 10px'
|
|
13496
13555
|
}
|
|
13497
13556
|
}, "\u88AB\u6298\u6263\u884C");
|
|
13498
13557
|
|
|
13499
13558
|
case LineAttributeType$1.赠品行:
|
|
13500
|
-
return
|
|
13559
|
+
return React.createElement("span", {
|
|
13501
13560
|
style: {
|
|
13502
13561
|
padding: '0 10px'
|
|
13503
13562
|
}
|
|
13504
13563
|
}, "\u8D60\u54C1\u884C");
|
|
13505
13564
|
|
|
13506
13565
|
case LineAttributeType$1.折让行:
|
|
13507
|
-
return
|
|
13566
|
+
return React.createElement("span", {
|
|
13508
13567
|
style: {
|
|
13509
13568
|
padding: '0 10px'
|
|
13510
13569
|
}
|
|
13511
13570
|
}, "\u6298\u8BA9\u884C");
|
|
13512
13571
|
|
|
13513
13572
|
case LineAttributeType$1.正常:
|
|
13514
|
-
return
|
|
13573
|
+
return React.createElement("span", {
|
|
13515
13574
|
style: {
|
|
13516
13575
|
padding: '0 10px'
|
|
13517
13576
|
}
|
|
13518
13577
|
}, "\u6B63\u5E38\u884C");
|
|
13519
13578
|
|
|
13520
13579
|
default:
|
|
13521
|
-
return
|
|
13580
|
+
return React.createElement("span", {
|
|
13522
13581
|
style: {
|
|
13523
13582
|
padding: '0 10px'
|
|
13524
13583
|
}
|
|
@@ -13532,7 +13591,7 @@ var useColumns = (function (form) {
|
|
|
13532
13591
|
width: 130,
|
|
13533
13592
|
fixed: 'right',
|
|
13534
13593
|
render: function render(_value, record) {
|
|
13535
|
-
return
|
|
13594
|
+
return React.createElement(RowMenu, {
|
|
13536
13595
|
key: record.lineAttribute,
|
|
13537
13596
|
goods: record
|
|
13538
13597
|
});
|
|
@@ -13587,13 +13646,13 @@ var MyInput = /*#__PURE__*/function (_React$Component) {
|
|
|
13587
13646
|
key: "render",
|
|
13588
13647
|
value: function render() {
|
|
13589
13648
|
if (this.props.loading) {
|
|
13590
|
-
return
|
|
13649
|
+
return React.createElement(Spin, {
|
|
13591
13650
|
size: "small"
|
|
13592
|
-
},
|
|
13651
|
+
}, React.createElement(Input, _objectSpread2(_objectSpread2({}, this.props), {}, {
|
|
13593
13652
|
autoComplete: "off"
|
|
13594
13653
|
})));
|
|
13595
13654
|
} else {
|
|
13596
|
-
return
|
|
13655
|
+
return React.createElement(Input, _objectSpread2(_objectSpread2({}, this.props), {}, {
|
|
13597
13656
|
autoComplete: "off"
|
|
13598
13657
|
}));
|
|
13599
13658
|
}
|
|
@@ -13618,15 +13677,15 @@ var MyDiv = /*#__PURE__*/function (_React$Component2) {
|
|
|
13618
13677
|
key: "render",
|
|
13619
13678
|
value: function render() {
|
|
13620
13679
|
if (this.props.loading) {
|
|
13621
|
-
return
|
|
13680
|
+
return React.createElement(Spin, {
|
|
13622
13681
|
size: "small"
|
|
13623
|
-
},
|
|
13682
|
+
}, React.createElement("span", {
|
|
13624
13683
|
style: {
|
|
13625
13684
|
padding: '0 10px'
|
|
13626
13685
|
}
|
|
13627
13686
|
}, this.props.value));
|
|
13628
13687
|
} else {
|
|
13629
|
-
return
|
|
13688
|
+
return React.createElement("span", {
|
|
13630
13689
|
style: {
|
|
13631
13690
|
padding: '0 10px'
|
|
13632
13691
|
}
|
|
@@ -13659,18 +13718,18 @@ var MyItemNameDiv = /*#__PURE__*/function (_React$Component3) {
|
|
|
13659
13718
|
|
|
13660
13719
|
if (isMyShow) {
|
|
13661
13720
|
if (valueT) {
|
|
13662
|
-
return
|
|
13721
|
+
return React.createElement(Tooltip, {
|
|
13663
13722
|
title: valueT
|
|
13664
|
-
},
|
|
13723
|
+
}, React.createElement("span", {
|
|
13665
13724
|
style: {
|
|
13666
13725
|
padding: '0 10px',
|
|
13667
13726
|
color: '#0074ff'
|
|
13668
13727
|
}
|
|
13669
13728
|
}, valueT));
|
|
13670
13729
|
} else {
|
|
13671
|
-
return
|
|
13730
|
+
return React.createElement(Tooltip, {
|
|
13672
13731
|
title: valueF
|
|
13673
|
-
},
|
|
13732
|
+
}, React.createElement("span", {
|
|
13674
13733
|
style: {
|
|
13675
13734
|
padding: '0 10px'
|
|
13676
13735
|
}
|
|
@@ -13678,17 +13737,17 @@ var MyItemNameDiv = /*#__PURE__*/function (_React$Component3) {
|
|
|
13678
13737
|
}
|
|
13679
13738
|
} else {
|
|
13680
13739
|
if (valueF) {
|
|
13681
|
-
return
|
|
13740
|
+
return React.createElement(Tooltip, {
|
|
13682
13741
|
title: valueF
|
|
13683
|
-
},
|
|
13742
|
+
}, React.createElement("span", {
|
|
13684
13743
|
style: {
|
|
13685
13744
|
padding: '0 10px'
|
|
13686
13745
|
}
|
|
13687
13746
|
}, valueF));
|
|
13688
13747
|
} else {
|
|
13689
|
-
return
|
|
13748
|
+
return React.createElement(Tooltip, {
|
|
13690
13749
|
title: valueT
|
|
13691
|
-
},
|
|
13750
|
+
}, React.createElement("span", {
|
|
13692
13751
|
style: {
|
|
13693
13752
|
padding: '0 10px',
|
|
13694
13753
|
color: '#0074ff'
|
|
@@ -13711,7 +13770,7 @@ function formatSearch(value, search) {
|
|
|
13711
13770
|
return dcoding(e);
|
|
13712
13771
|
}).join("<span class=\"kts-invoice-operate-goods-list-table-search-protrude\" >".concat(search, "</span>"));
|
|
13713
13772
|
|
|
13714
|
-
return
|
|
13773
|
+
return React.createElement("span", {
|
|
13715
13774
|
dangerouslySetInnerHTML: {
|
|
13716
13775
|
__html: __html
|
|
13717
13776
|
}
|
|
@@ -14136,7 +14195,7 @@ var useRowSelection = (function () {
|
|
|
14136
14195
|
};
|
|
14137
14196
|
}(), [controller]);
|
|
14138
14197
|
var columnTitle = React.useMemo(function () {
|
|
14139
|
-
return
|
|
14198
|
+
return React.createElement(Checkbox, {
|
|
14140
14199
|
onChange: onClickSelectAll,
|
|
14141
14200
|
indeterminate: indeterminate,
|
|
14142
14201
|
checked: isAll
|
|
@@ -14337,16 +14396,16 @@ var useEndowCodeButton = (function () {
|
|
|
14337
14396
|
}, _callee2);
|
|
14338
14397
|
})), [controller]);
|
|
14339
14398
|
var menuItem = React.useMemo(function () {
|
|
14340
|
-
if (model === 'readOnly') return
|
|
14341
|
-
return
|
|
14399
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
14400
|
+
return React.createElement(Menu.Item, {
|
|
14342
14401
|
key: "2",
|
|
14343
14402
|
onClick: onClick,
|
|
14344
14403
|
disabled: disabled
|
|
14345
14404
|
}, "\u6279\u91CF\u8D4B\u7801");
|
|
14346
14405
|
}, [onClick, disabled, model]);
|
|
14347
14406
|
var button = React.useMemo(function () {
|
|
14348
|
-
if (model === 'readOnly') return
|
|
14349
|
-
return
|
|
14407
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
14408
|
+
return React.createElement(Button, {
|
|
14350
14409
|
onClick: onClick,
|
|
14351
14410
|
disabled: disabled
|
|
14352
14411
|
}, "\u6279\u91CF\u8D4B\u7801");
|
|
@@ -14412,19 +14471,19 @@ var useDelRowButton = (function () {
|
|
|
14412
14471
|
}())();
|
|
14413
14472
|
}, [controller]);
|
|
14414
14473
|
var menuItem = React.useMemo(function () {
|
|
14415
|
-
if (model === 'prefab') return
|
|
14416
|
-
if (model === 'readOnly') return
|
|
14417
|
-
return
|
|
14474
|
+
if (model === 'prefab') return React.createElement(React.Fragment, null);
|
|
14475
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
14476
|
+
return React.createElement(Menu.Item, {
|
|
14418
14477
|
key: "1",
|
|
14419
14478
|
onClick: onClick,
|
|
14420
14479
|
disabled: disabled
|
|
14421
14480
|
}, " \u5220\u9664\u884C ");
|
|
14422
14481
|
}, [model, onClick, disabled]);
|
|
14423
14482
|
var button = React.useMemo(function () {
|
|
14424
|
-
if (isRemRow === false) return
|
|
14425
|
-
if (model === 'prefab') return
|
|
14426
|
-
if (model === 'readOnly') return
|
|
14427
|
-
return
|
|
14483
|
+
if (isRemRow === false) return React.createElement(React.Fragment, null);
|
|
14484
|
+
if (model === 'prefab') return React.createElement(React.Fragment, null);
|
|
14485
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
14486
|
+
return React.createElement(Button, {
|
|
14428
14487
|
onClick: onClick,
|
|
14429
14488
|
disabled: disabled
|
|
14430
14489
|
}, "\u6279\u91CF\u5220\u9664");
|
|
@@ -14619,14 +14678,14 @@ var useAddDiscountRowButton = (function () {
|
|
|
14619
14678
|
}, _callee3);
|
|
14620
14679
|
})), [controller]);
|
|
14621
14680
|
var menuItem = React.useMemo(function () {
|
|
14622
|
-
return model === 'prefab' ?
|
|
14681
|
+
return model === 'prefab' ? React.createElement(React.Fragment, null) : isAddDiscount !== false ? React.createElement(Menu.Item, {
|
|
14623
14682
|
key: "0",
|
|
14624
14683
|
onClick: onClick,
|
|
14625
14684
|
disabled: disabled
|
|
14626
14685
|
}, "\u6DFB\u52A0\u6298\u6263\u884C") : undefined;
|
|
14627
14686
|
}, [isAddDiscount, disabled, onClick]);
|
|
14628
14687
|
var drawer = React.useMemo(function () {
|
|
14629
|
-
return
|
|
14688
|
+
return React.createElement(Drawer, {
|
|
14630
14689
|
className: "kts-invoice-operate-goods-list-add-discount-row",
|
|
14631
14690
|
width: 540,
|
|
14632
14691
|
title: "\u6DFB\u52A0\u6298\u6263\u884C",
|
|
@@ -14634,7 +14693,7 @@ var useAddDiscountRowButton = (function () {
|
|
|
14634
14693
|
destroyOnClose: true,
|
|
14635
14694
|
onClose: onClose,
|
|
14636
14695
|
visible: visible
|
|
14637
|
-
},
|
|
14696
|
+
}, React.createElement(DrawerBody, null));
|
|
14638
14697
|
}, [visible, onClose]);
|
|
14639
14698
|
return {
|
|
14640
14699
|
menuItem: menuItem,
|
|
@@ -14751,13 +14810,13 @@ var DrawerBody = decorator(Form.create())(function (props) {
|
|
|
14751
14810
|
});
|
|
14752
14811
|
});
|
|
14753
14812
|
}, 300), [form, lineAmountSum]);
|
|
14754
|
-
return
|
|
14813
|
+
return React.createElement(React.Fragment, null, React.createElement("div", {
|
|
14755
14814
|
className: "add-discount-row-body"
|
|
14756
|
-
},
|
|
14815
|
+
}, React.createElement("p", null, "\u5F53\u524D\u9009\u62E9", React.createElement(Text$3, {
|
|
14757
14816
|
type: "danger"
|
|
14758
|
-
}, discountGoodIndex.length), "\u884C\u88AB\u6298\u6263\u5546\u54C1\u884C\uFF0C\u91D1\u989D\u5408\u8BA1\xA5",
|
|
14817
|
+
}, discountGoodIndex.length), "\u884C\u88AB\u6298\u6263\u5546\u54C1\u884C\uFF0C\u91D1\u989D\u5408\u8BA1\xA5", React.createElement(Text$3, {
|
|
14759
14818
|
type: "danger"
|
|
14760
|
-
}, lineAmountSum.toFixed(2))),
|
|
14819
|
+
}, lineAmountSum.toFixed(2))), React.createElement(Form.Item, {
|
|
14761
14820
|
label: "\u6298\u6263\u7387\uFF1A"
|
|
14762
14821
|
}, getFieldDecorator('discount', {
|
|
14763
14822
|
rules: [{
|
|
@@ -14787,11 +14846,11 @@ var DrawerBody = decorator(Form.create())(function (props) {
|
|
|
14787
14846
|
callback();
|
|
14788
14847
|
}
|
|
14789
14848
|
}]
|
|
14790
|
-
})(
|
|
14849
|
+
})(React.createElement(Input, {
|
|
14791
14850
|
placeholder: "\u8BF7\u8F93\u5165\u5927\u4E8E0\u5C0F\u4E8E100\u7684\u6570\u5B57",
|
|
14792
14851
|
suffix: "%",
|
|
14793
14852
|
onChange: onChangeDiscount
|
|
14794
|
-
}))),
|
|
14853
|
+
}))), React.createElement(Form.Item, {
|
|
14795
14854
|
label: "\u6298\u6263\u91D1\u989D\uFF1A"
|
|
14796
14855
|
}, getFieldDecorator('discolineAmountunt', {
|
|
14797
14856
|
rules: [{
|
|
@@ -14821,19 +14880,19 @@ var DrawerBody = decorator(Form.create())(function (props) {
|
|
|
14821
14880
|
callback();
|
|
14822
14881
|
}
|
|
14823
14882
|
}]
|
|
14824
|
-
})(
|
|
14883
|
+
})(React.createElement(Input, {
|
|
14825
14884
|
placeholder: "\u8BF7\u8F93\u5165\u5927\u4E8E0\u5C0F\u4E8E\u91D1\u989D\u5408\u8BA1\u7684\u6570\u5B57",
|
|
14826
14885
|
suffix: "\xA5",
|
|
14827
14886
|
onChange: onChangeDiscolineAmountunt
|
|
14828
|
-
})))),
|
|
14887
|
+
})))), React.createElement("div", {
|
|
14829
14888
|
className: "add-discount-row-footer"
|
|
14830
|
-
},
|
|
14889
|
+
}, React.createElement(Button, {
|
|
14831
14890
|
block: true,
|
|
14832
14891
|
style: {
|
|
14833
14892
|
marginBottom: 12
|
|
14834
14893
|
},
|
|
14835
14894
|
onClick: onClose
|
|
14836
|
-
}, "\u53D6\u6D88"),
|
|
14895
|
+
}, "\u53D6\u6D88"), React.createElement(Button, {
|
|
14837
14896
|
type: "primary",
|
|
14838
14897
|
block: true,
|
|
14839
14898
|
onClick: onClickSave
|
|
@@ -14930,13 +14989,13 @@ function useMergeDetails() {
|
|
|
14930
14989
|
}];
|
|
14931
14990
|
}, [selectedGoodIndex, onClickManual, onClickAuto]);
|
|
14932
14991
|
var button = React.useMemo(function () {
|
|
14933
|
-
if (!isMergeDetails) return
|
|
14934
|
-
return
|
|
14992
|
+
if (!isMergeDetails) return React.createElement(React.Fragment, null);
|
|
14993
|
+
return React.createElement(Dropdown$1, {
|
|
14935
14994
|
menu: {
|
|
14936
14995
|
items: items
|
|
14937
14996
|
},
|
|
14938
14997
|
trigger: ['click']
|
|
14939
|
-
},
|
|
14998
|
+
}, React.createElement(Button, null, "\u5408\u5E76\u660E\u7EC6"));
|
|
14940
14999
|
}, [selectedGoodIndex.length, isMergeDetails]);
|
|
14941
15000
|
return {
|
|
14942
15001
|
/** 按钮 */
|
|
@@ -15022,8 +15081,8 @@ function useMergeDiscount() {
|
|
|
15022
15081
|
}, _callee);
|
|
15023
15082
|
})), [controller]);
|
|
15024
15083
|
var button = React.useMemo(function () {
|
|
15025
|
-
if (!isMergeDiscount) return
|
|
15026
|
-
return
|
|
15084
|
+
if (!isMergeDiscount) return React.createElement(React.Fragment, null);
|
|
15085
|
+
return React.createElement(Button, {
|
|
15027
15086
|
onClick: onClick,
|
|
15028
15087
|
disabled: goodsList.length <= 1
|
|
15029
15088
|
}, "\u5408\u5E76\u6298\u6263");
|
|
@@ -15201,8 +15260,8 @@ function useSalesDiscount() {
|
|
|
15201
15260
|
}).length <= 0;
|
|
15202
15261
|
}, [goodsList]);
|
|
15203
15262
|
var button = React.useMemo(function () {
|
|
15204
|
-
if (!isSalesDiscount) return
|
|
15205
|
-
return
|
|
15263
|
+
if (!isSalesDiscount) return React.createElement(React.Fragment, null);
|
|
15264
|
+
return React.createElement(Button, {
|
|
15206
15265
|
onClick: onClick,
|
|
15207
15266
|
disabled: disabled
|
|
15208
15267
|
}, "\u9500\u552E\u6298\u8BA9");
|
|
@@ -15373,12 +15432,12 @@ function useSalesGifts() {
|
|
|
15373
15432
|
}, [selectedGoodIndex, onClickManual, onClickAuto]);
|
|
15374
15433
|
var button = React.useMemo(function () {
|
|
15375
15434
|
if (!isSalesGifts) return;
|
|
15376
|
-
return
|
|
15435
|
+
return React.createElement(Dropdown$1, {
|
|
15377
15436
|
menu: {
|
|
15378
15437
|
items: items
|
|
15379
15438
|
},
|
|
15380
15439
|
trigger: ['click']
|
|
15381
|
-
},
|
|
15440
|
+
}, React.createElement(Button, null, "\u9500\u552E\u8D60\u54C1"));
|
|
15382
15441
|
}, [items, isSalesGifts]);
|
|
15383
15442
|
return {
|
|
15384
15443
|
/** 按钮 */
|
|
@@ -15416,7 +15475,7 @@ var GoodsList = /*#__PURE__*/function (_React$Component) {
|
|
|
15416
15475
|
_createClass(GoodsList, [{
|
|
15417
15476
|
key: "render",
|
|
15418
15477
|
value: function render() {
|
|
15419
|
-
return
|
|
15478
|
+
return React.createElement(Main, _objectSpread2({}, this.props));
|
|
15420
15479
|
}
|
|
15421
15480
|
}]);
|
|
15422
15481
|
|
|
@@ -15618,22 +15677,22 @@ var Main = decorator(Form.create())(function (props) {
|
|
|
15618
15677
|
};
|
|
15619
15678
|
}())();
|
|
15620
15679
|
}, [controller, props.isSwitchTax]);
|
|
15621
|
-
return
|
|
15680
|
+
return React.createElement("div", {
|
|
15622
15681
|
className: "kts-invoice-operate-goods-list",
|
|
15623
15682
|
onClick: function onClick(e) {
|
|
15624
15683
|
e.stopPropagation();
|
|
15625
15684
|
}
|
|
15626
|
-
},
|
|
15685
|
+
}, React.createElement("div", {
|
|
15627
15686
|
className: "kts-invoice-operate-goods-list-able"
|
|
15628
|
-
},
|
|
15687
|
+
}, React.createElement("div", {
|
|
15629
15688
|
className: "kts-invoice-operate-goods-list-able-list"
|
|
15630
|
-
},
|
|
15689
|
+
}, React.createElement(AddRowButton, null), endowCodeButton.button, delRowButton.button, mergeDetails.button, mergeDiscount.button, addDiscountRowButton.drawer, salesDiscount.button, salesGifts.button, React.createElement(Search, null)), React.createElement("div", {
|
|
15631
15690
|
className: "kts-invoice-operate-goods-list-able-extend"
|
|
15632
|
-
}, props.menuExpansion,
|
|
15691
|
+
}, props.menuExpansion, React.createElement(DescribeSwitch, null), React.createElement(TaxIncludedSwitch, null))), React.createElement("div", {
|
|
15633
15692
|
className: classNames('kts-invoice-operate-goods-list-table', {
|
|
15634
15693
|
'kts-invoice-operate-prefab': isprefab
|
|
15635
15694
|
})
|
|
15636
|
-
},
|
|
15695
|
+
}, React.createElement(TableVirtual, {
|
|
15637
15696
|
bordered: true,
|
|
15638
15697
|
size: "small",
|
|
15639
15698
|
rowKey: "$index",
|
|
@@ -15656,7 +15715,7 @@ var Main = decorator(Form.create())(function (props) {
|
|
|
15656
15715
|
}
|
|
15657
15716
|
};
|
|
15658
15717
|
}
|
|
15659
|
-
})),
|
|
15718
|
+
})), React.createElement("div", null, React.createElement(Statistics, null)));
|
|
15660
15719
|
});
|
|
15661
15720
|
|
|
15662
15721
|
var css_248z$c = ".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";
|
|
@@ -15681,7 +15740,7 @@ var Buyer = /*#__PURE__*/function (_React$Component) {
|
|
|
15681
15740
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
15682
15741
|
|
|
15683
15742
|
_this.render = function () {
|
|
15684
|
-
return
|
|
15743
|
+
return React.createElement(Main$1, _objectSpread2({}, _this.props));
|
|
15685
15744
|
};
|
|
15686
15745
|
|
|
15687
15746
|
return _this;
|
|
@@ -15712,7 +15771,7 @@ var Main$1 = decorator(Form.create())(function (props) {
|
|
|
15712
15771
|
return [{
|
|
15713
15772
|
id: 'sellerName',
|
|
15714
15773
|
label: '销售方名称',
|
|
15715
|
-
node:
|
|
15774
|
+
node: React.createElement(Input, {
|
|
15716
15775
|
readOnly: model === 'prefab',
|
|
15717
15776
|
size: "small"
|
|
15718
15777
|
}),
|
|
@@ -15725,7 +15784,7 @@ var Main$1 = decorator(Form.create())(function (props) {
|
|
|
15725
15784
|
}, {
|
|
15726
15785
|
id: 'sellerNo',
|
|
15727
15786
|
label: '销售方纳税人识别号',
|
|
15728
|
-
node:
|
|
15787
|
+
node: React.createElement(Input, {
|
|
15729
15788
|
readOnly: model === 'prefab',
|
|
15730
15789
|
size: "small"
|
|
15731
15790
|
}),
|
|
@@ -15738,7 +15797,7 @@ var Main$1 = decorator(Form.create())(function (props) {
|
|
|
15738
15797
|
}, {
|
|
15739
15798
|
id: 'sellerAddress',
|
|
15740
15799
|
label: '销售方地址及电话',
|
|
15741
|
-
node:
|
|
15800
|
+
node: React.createElement(Input, {
|
|
15742
15801
|
readOnly: model === 'prefab',
|
|
15743
15802
|
size: "small"
|
|
15744
15803
|
}),
|
|
@@ -15751,7 +15810,7 @@ var Main$1 = decorator(Form.create())(function (props) {
|
|
|
15751
15810
|
}, {
|
|
15752
15811
|
id: 'sellerBank',
|
|
15753
15812
|
label: '销售方开户行及账号',
|
|
15754
|
-
node:
|
|
15813
|
+
node: React.createElement(Input, {
|
|
15755
15814
|
readOnly: model === 'prefab',
|
|
15756
15815
|
size: "small"
|
|
15757
15816
|
}),
|
|
@@ -15777,31 +15836,31 @@ var Main$1 = decorator(Form.create())(function (props) {
|
|
|
15777
15836
|
return getFieldDecorator(e.id, e.options)(e.node);
|
|
15778
15837
|
}
|
|
15779
15838
|
}, [props.formRender]);
|
|
15780
|
-
return
|
|
15839
|
+
return React.createElement(Form, null, React.createElement("div", {
|
|
15781
15840
|
className: "kts-invoice-operate-seller"
|
|
15782
|
-
},
|
|
15841
|
+
}, React.createElement("div", {
|
|
15783
15842
|
className: "kts-invoice-operate-seller-message"
|
|
15784
|
-
},
|
|
15843
|
+
}, React.createElement("div", {
|
|
15785
15844
|
className: "kts-invoice-operate-seller-title"
|
|
15786
|
-
},
|
|
15845
|
+
}, React.createElement("label", null, "\u9500\u552E\u65B9")), React.createElement(Descriptions, {
|
|
15787
15846
|
className: "kts-invoice-operate-seller-message-list",
|
|
15788
15847
|
size: "small",
|
|
15789
15848
|
column: 1,
|
|
15790
15849
|
bordered: true
|
|
15791
15850
|
}, formItem.map(function (e, i) {
|
|
15792
|
-
return
|
|
15851
|
+
return React.createElement(Descriptions.Item, {
|
|
15793
15852
|
key: i,
|
|
15794
15853
|
label: e.label
|
|
15795
|
-
},
|
|
15796
|
-
}))),
|
|
15854
|
+
}, React.createElement(Form.Item, null, createFormItem(e)));
|
|
15855
|
+
}))), React.createElement("div", {
|
|
15797
15856
|
className: "kts-invoice-operate-seller-remarks"
|
|
15798
|
-
},
|
|
15857
|
+
}, React.createElement("div", {
|
|
15799
15858
|
className: "kts-invoice-operate-seller-title"
|
|
15800
|
-
},
|
|
15859
|
+
}, React.createElement("label", null, "\u5907\u6CE8")), React.createElement("div", {
|
|
15801
15860
|
className: "kts-invoice-operate-seller-remarks-value"
|
|
15802
15861
|
}, getFieldDecorator('remarks', {
|
|
15803
15862
|
initialValue: props.defaultsellerRemarks
|
|
15804
|
-
})(
|
|
15863
|
+
})(React.createElement(TextArea, null))))));
|
|
15805
15864
|
});
|
|
15806
15865
|
|
|
15807
15866
|
var ImportBuyerButton = (function () {
|
|
@@ -15828,7 +15887,7 @@ var ImportBuyerButton = (function () {
|
|
|
15828
15887
|
};
|
|
15829
15888
|
}())();
|
|
15830
15889
|
}, [controller]);
|
|
15831
|
-
return
|
|
15890
|
+
return React.createElement(React.Fragment, null, controller.getBuyerList && React.createElement(Button, {
|
|
15832
15891
|
type: "link",
|
|
15833
15892
|
icon: "plus-circle",
|
|
15834
15893
|
onClick: onClick
|
|
@@ -15867,29 +15926,29 @@ var BuyerNameInput = (function (props) {
|
|
|
15867
15926
|
var content = React.useMemo(function () {
|
|
15868
15927
|
var _dataSource$recent;
|
|
15869
15928
|
|
|
15870
|
-
return
|
|
15929
|
+
return React.createElement("div", {
|
|
15871
15930
|
className: 'kts-invoice-operate-buyer-name-content'
|
|
15872
|
-
}, loading ?
|
|
15931
|
+
}, loading ? React.createElement("div", {
|
|
15873
15932
|
style: {
|
|
15874
15933
|
textAlign: 'center'
|
|
15875
15934
|
}
|
|
15876
|
-
},
|
|
15935
|
+
}, React.createElement(Spin, null)) : React.createElement(React.Fragment, null, React.createElement("div", {
|
|
15877
15936
|
className: 'kts-invoice-operate-buyer-name-content-block',
|
|
15878
15937
|
style: {
|
|
15879
15938
|
padding: '14px 10px'
|
|
15880
15939
|
}
|
|
15881
|
-
},
|
|
15940
|
+
}, React.createElement("label", {
|
|
15882
15941
|
style: {
|
|
15883
15942
|
marginBottom: 10
|
|
15884
15943
|
}
|
|
15885
|
-
}, "\u6700\u8FD1\u5F00\u5177"),
|
|
15944
|
+
}, "\u6700\u8FD1\u5F00\u5177"), React.createElement("ul", {
|
|
15886
15945
|
className: 'kts-invoice-operate-buyer-name-content-recently-issued'
|
|
15887
|
-
}, !dataSource.recent || dataSource.recent.length <= 0 ?
|
|
15946
|
+
}, !dataSource.recent || dataSource.recent.length <= 0 ? React.createElement(Empty, {
|
|
15888
15947
|
image: Empty.PRESENTED_IMAGE_SIMPLE
|
|
15889
15948
|
}) : (_dataSource$recent = dataSource.recent) === null || _dataSource$recent === void 0 ? void 0 : _dataSource$recent.map(function (e, i) {
|
|
15890
15949
|
var _dataSource$recent$le, _dataSource$recent2;
|
|
15891
15950
|
|
|
15892
|
-
return
|
|
15951
|
+
return React.createElement("li", {
|
|
15893
15952
|
key: i,
|
|
15894
15953
|
onClick: function onClick() {
|
|
15895
15954
|
onClickItem(e);
|
|
@@ -15897,37 +15956,37 @@ var BuyerNameInput = (function (props) {
|
|
|
15897
15956
|
style: {
|
|
15898
15957
|
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)
|
|
15899
15958
|
}
|
|
15900
|
-
},
|
|
15901
|
-
}))),
|
|
15959
|
+
}, React.createElement(MyTag, null, e.buyerName));
|
|
15960
|
+
}))), React.createElement(Divider, {
|
|
15902
15961
|
style: {
|
|
15903
15962
|
margin: "0 6px"
|
|
15904
15963
|
}
|
|
15905
|
-
}),
|
|
15964
|
+
}), React.createElement("div", {
|
|
15906
15965
|
className: 'kts-invoice-operate-buyer-name-content-block',
|
|
15907
15966
|
style: {
|
|
15908
15967
|
padding: '14px 10px 4px'
|
|
15909
15968
|
}
|
|
15910
|
-
},
|
|
15969
|
+
}, React.createElement("label", {
|
|
15911
15970
|
style: {
|
|
15912
15971
|
padding: '0 10px'
|
|
15913
15972
|
}
|
|
15914
|
-
}, "\u9009\u62E9\u516C\u53F8"),
|
|
15973
|
+
}, "\u9009\u62E9\u516C\u53F8"), React.createElement("div", {
|
|
15915
15974
|
style: {
|
|
15916
15975
|
maxHeight: 200,
|
|
15917
15976
|
overflow: "auto"
|
|
15918
15977
|
}
|
|
15919
|
-
}, !dataSource.list || dataSource.list.length <= 0 ?
|
|
15978
|
+
}, !dataSource.list || dataSource.list.length <= 0 ? React.createElement(Empty, {
|
|
15920
15979
|
image: Empty.PRESENTED_IMAGE_SIMPLE
|
|
15921
15980
|
}) : dataSource.list.map(function (e, i) {
|
|
15922
|
-
return
|
|
15981
|
+
return React.createElement("ul", {
|
|
15923
15982
|
key: i,
|
|
15924
15983
|
onClick: function onClick() {
|
|
15925
15984
|
onClickItem(e);
|
|
15926
15985
|
},
|
|
15927
15986
|
className: 'kts-invoice-operate-buyer-name-content-select-company'
|
|
15928
|
-
},
|
|
15987
|
+
}, React.createElement("li", {
|
|
15929
15988
|
title: e.buyerName
|
|
15930
|
-
}, e.buyerName),
|
|
15989
|
+
}, e.buyerName), React.createElement("li", {
|
|
15931
15990
|
title: e.buyerNo
|
|
15932
15991
|
}, e.buyerNo));
|
|
15933
15992
|
})))));
|
|
@@ -15968,7 +16027,7 @@ var BuyerNameInput = (function (props) {
|
|
|
15968
16027
|
}, [visible, props.value]);
|
|
15969
16028
|
|
|
15970
16029
|
if (model === 'prefab' || !autoContainer) {
|
|
15971
|
-
return
|
|
16030
|
+
return React.createElement(Input, {
|
|
15972
16031
|
size: "small",
|
|
15973
16032
|
autoComplete: "off",
|
|
15974
16033
|
value: props.value,
|
|
@@ -15979,14 +16038,14 @@ var BuyerNameInput = (function (props) {
|
|
|
15979
16038
|
});
|
|
15980
16039
|
}
|
|
15981
16040
|
|
|
15982
|
-
return
|
|
16041
|
+
return React.createElement(Popover$1, {
|
|
15983
16042
|
onVisibleChange: setVisible,
|
|
15984
16043
|
overlayClassName: 'kts-invoice-operate-buyer-name-popover',
|
|
15985
16044
|
placement: "bottomLeft",
|
|
15986
16045
|
trigger: "click",
|
|
15987
16046
|
visible: visible,
|
|
15988
16047
|
content: content
|
|
15989
|
-
},
|
|
16048
|
+
}, React.createElement(Input, {
|
|
15990
16049
|
size: "small",
|
|
15991
16050
|
autoComplete: "off",
|
|
15992
16051
|
value: props.value,
|
|
@@ -16064,7 +16123,7 @@ function useDataSource() {
|
|
|
16064
16123
|
}
|
|
16065
16124
|
|
|
16066
16125
|
function MyTag(props) {
|
|
16067
|
-
return
|
|
16126
|
+
return React.createElement("span", {
|
|
16068
16127
|
className: 'kts-invoice-operate-buyer-name-content-tag',
|
|
16069
16128
|
title: props.children
|
|
16070
16129
|
}, props.children);
|
|
@@ -16100,7 +16159,7 @@ var Buyer$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
16100
16159
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
16101
16160
|
|
|
16102
16161
|
_this.render = function () {
|
|
16103
|
-
return
|
|
16162
|
+
return React.createElement(Main$2, _objectSpread2({}, _this.props));
|
|
16104
16163
|
};
|
|
16105
16164
|
|
|
16106
16165
|
return _this;
|
|
@@ -16131,7 +16190,7 @@ var Main$2 = decorator(Form.create())(function (props) {
|
|
|
16131
16190
|
return [{
|
|
16132
16191
|
id: 'buyerName',
|
|
16133
16192
|
label: '购买方名称',
|
|
16134
|
-
node:
|
|
16193
|
+
node: React.createElement(Input, {
|
|
16135
16194
|
size: "small",
|
|
16136
16195
|
autoComplete: "off",
|
|
16137
16196
|
readOnly: model === 'prefab'
|
|
@@ -16145,7 +16204,7 @@ var Main$2 = decorator(Form.create())(function (props) {
|
|
|
16145
16204
|
}, {
|
|
16146
16205
|
id: 'buyerNo',
|
|
16147
16206
|
label: '购买方纳税人识别号',
|
|
16148
|
-
node:
|
|
16207
|
+
node: React.createElement(Input, {
|
|
16149
16208
|
size: "small",
|
|
16150
16209
|
autoComplete: "off",
|
|
16151
16210
|
readOnly: model === 'prefab'
|
|
@@ -16159,7 +16218,7 @@ var Main$2 = decorator(Form.create())(function (props) {
|
|
|
16159
16218
|
}, {
|
|
16160
16219
|
id: 'buyerAddress',
|
|
16161
16220
|
label: '购买方地址及电话',
|
|
16162
|
-
node:
|
|
16221
|
+
node: React.createElement(Input, {
|
|
16163
16222
|
size: "small",
|
|
16164
16223
|
autoComplete: "off",
|
|
16165
16224
|
readOnly: model === 'prefab'
|
|
@@ -16173,7 +16232,7 @@ var Main$2 = decorator(Form.create())(function (props) {
|
|
|
16173
16232
|
}, {
|
|
16174
16233
|
id: 'buyerBank',
|
|
16175
16234
|
label: '购买方开户行及账号',
|
|
16176
|
-
node:
|
|
16235
|
+
node: React.createElement(Input, {
|
|
16177
16236
|
size: "small",
|
|
16178
16237
|
autoComplete: "off",
|
|
16179
16238
|
readOnly: model === 'prefab'
|
|
@@ -16195,7 +16254,7 @@ var Main$2 = decorator(Form.create())(function (props) {
|
|
|
16195
16254
|
if (e.options.rules.some(function (e) {
|
|
16196
16255
|
return e.required;
|
|
16197
16256
|
})) {
|
|
16198
|
-
return
|
|
16257
|
+
return React.createElement(React.Fragment, null, React.createElement(Text$4, {
|
|
16199
16258
|
type: "danger"
|
|
16200
16259
|
}, "*"), e.label);
|
|
16201
16260
|
} else {
|
|
@@ -16205,29 +16264,29 @@ var Main$2 = decorator(Form.create())(function (props) {
|
|
|
16205
16264
|
return e.label;
|
|
16206
16265
|
}
|
|
16207
16266
|
}, []);
|
|
16208
|
-
return
|
|
16267
|
+
return React.createElement(Form, null, React.createElement("div", {
|
|
16209
16268
|
className: "kts-invoice-operate-buyer"
|
|
16210
|
-
},
|
|
16269
|
+
}, React.createElement("div", {
|
|
16211
16270
|
className: "kts-invoice-operate-buyer-message"
|
|
16212
|
-
},
|
|
16271
|
+
}, React.createElement("div", {
|
|
16213
16272
|
className: "kts-invoice-operate-buyer-title"
|
|
16214
|
-
},
|
|
16273
|
+
}, React.createElement("label", null, "\u8D2D\u4E70\u65B9")), React.createElement("div", {
|
|
16215
16274
|
className: "kts-invoice-operate-buyer-message-Import"
|
|
16216
|
-
}, model !== 'prefab' &&
|
|
16275
|
+
}, model !== 'prefab' && React.createElement(ImportBuyerButton, null)), React.createElement(Descriptions, {
|
|
16217
16276
|
className: "kts-invoice-operate-buyer-message-list",
|
|
16218
16277
|
size: "small",
|
|
16219
16278
|
column: 1,
|
|
16220
16279
|
bordered: true
|
|
16221
16280
|
}, formItem.map(function (item, i) {
|
|
16222
|
-
return
|
|
16281
|
+
return React.createElement(Descriptions.Item, {
|
|
16223
16282
|
key: i,
|
|
16224
16283
|
label: getlabel(item)
|
|
16225
|
-
},
|
|
16226
|
-
}))),
|
|
16284
|
+
}, React.createElement(Form.Item, null, getFieldDecorator(item.id, item.options)(autoContainer ? item.id === 'buyerName' ? React.createElement(BuyerNameInput, null) : item.node : item.node)));
|
|
16285
|
+
}))), React.createElement("div", {
|
|
16227
16286
|
className: "kts-invoice-operate-buyer-password"
|
|
16228
|
-
},
|
|
16287
|
+
}, React.createElement("div", {
|
|
16229
16288
|
className: "kts-invoice-operate-buyer-title"
|
|
16230
|
-
},
|
|
16289
|
+
}, React.createElement("label", null, "\u5BC6\u7801\u533A")), React.createElement("div", null))));
|
|
16231
16290
|
});
|
|
16232
16291
|
|
|
16233
16292
|
var css_248z$e = ".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";
|
|
@@ -16244,21 +16303,21 @@ var Sign = decorator(Form.create())(function (props) {
|
|
|
16244
16303
|
}, []); // 注册 form
|
|
16245
16304
|
|
|
16246
16305
|
controller.useForm('sign', form);
|
|
16247
|
-
return
|
|
16306
|
+
return React.createElement("div", {
|
|
16248
16307
|
className: "kts-invoice-operate-sign"
|
|
16249
|
-
},
|
|
16308
|
+
}, React.createElement(Form, _objectSpread2({}, formItemLayout), React.createElement("div", null, React.createElement(Form.Item, {
|
|
16250
16309
|
label: "\u6536\u6B3E\u4EBA"
|
|
16251
16310
|
}, getFieldDecorator('payee', {
|
|
16252
16311
|
initialValue: props.defaultPayee
|
|
16253
|
-
})(
|
|
16312
|
+
})(React.createElement(Input, {
|
|
16254
16313
|
size: "small"
|
|
16255
|
-
})))),
|
|
16314
|
+
})))), React.createElement("div", null, React.createElement(Form.Item, {
|
|
16256
16315
|
label: "\u590D\u6838\u4EBA"
|
|
16257
16316
|
}, getFieldDecorator('reviewer', {
|
|
16258
16317
|
initialValue: props.defaultReviewer
|
|
16259
|
-
})(
|
|
16318
|
+
})(React.createElement(Input, {
|
|
16260
16319
|
size: "small"
|
|
16261
|
-
})))),
|
|
16320
|
+
})))), React.createElement("div", null, React.createElement(Form.Item, {
|
|
16262
16321
|
label: "\u5F00\u7968\u4EBA"
|
|
16263
16322
|
}, getFieldDecorator('issuer', {
|
|
16264
16323
|
initialValue: props.defaultIssuer,
|
|
@@ -16266,7 +16325,7 @@ var Sign = decorator(Form.create())(function (props) {
|
|
|
16266
16325
|
required: true,
|
|
16267
16326
|
message: '请输入开票人'
|
|
16268
16327
|
}]
|
|
16269
|
-
})(
|
|
16328
|
+
})(React.createElement(Input, {
|
|
16270
16329
|
size: "small"
|
|
16271
16330
|
}))))));
|
|
16272
16331
|
});
|
|
@@ -16295,21 +16354,21 @@ var InvoiceHeaderDigtal = decorator(Form.create())(function (props) {
|
|
|
16295
16354
|
return '电子发票(增值税专用发票)';
|
|
16296
16355
|
}, [props.title]);
|
|
16297
16356
|
controller.useForm('invoiceHeader', form);
|
|
16298
|
-
return
|
|
16357
|
+
return React.createElement("div", {
|
|
16299
16358
|
className: "kts-invoice-operate-invoice-digtal-header"
|
|
16300
|
-
},
|
|
16359
|
+
}, React.createElement("div", {
|
|
16301
16360
|
className: "digtal-header-title"
|
|
16302
16361
|
}, title), form.getFieldDecorator('tag', {
|
|
16303
16362
|
initialValue: props.defaultTag
|
|
16304
|
-
})(
|
|
16363
|
+
})(React.createElement(Tag, null)), React.createElement("div", {
|
|
16305
16364
|
className: "digtal-header-fields"
|
|
16306
16365
|
}, form.getFieldDecorator('no', {
|
|
16307
16366
|
initialValue: props.defaultNo
|
|
16308
|
-
})(
|
|
16367
|
+
})(React.createElement(Field, {
|
|
16309
16368
|
title: "\u53D1\u7968\u53F7\u7801\uFF1A"
|
|
16310
16369
|
})), form.getFieldDecorator('invoicingDate', {
|
|
16311
16370
|
initialValue: props.defaultInvoicingDate
|
|
16312
|
-
})(
|
|
16371
|
+
})(React.createElement(Field, {
|
|
16313
16372
|
title: "\u5F00\u7968\u65E5\u671F\uFF1A"
|
|
16314
16373
|
}))));
|
|
16315
16374
|
});
|
|
@@ -16334,15 +16393,15 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
16334
16393
|
value = _this$props.value;
|
|
16335
16394
|
|
|
16336
16395
|
if (value) {
|
|
16337
|
-
return
|
|
16396
|
+
return React.createElement("div", {
|
|
16338
16397
|
className: "digtal-header-field"
|
|
16339
|
-
},
|
|
16398
|
+
}, React.createElement("div", {
|
|
16340
16399
|
className: "digtal-header-field-title"
|
|
16341
|
-
}, title),
|
|
16400
|
+
}, title), React.createElement("div", {
|
|
16342
16401
|
className: "digtal-header-field-value"
|
|
16343
16402
|
}, value));
|
|
16344
16403
|
} else {
|
|
16345
|
-
return
|
|
16404
|
+
return React.createElement(React.Fragment, null);
|
|
16346
16405
|
}
|
|
16347
16406
|
}
|
|
16348
16407
|
}]);
|
|
@@ -16364,9 +16423,9 @@ var Tag = /*#__PURE__*/function (_React$Component2) {
|
|
|
16364
16423
|
_createClass(Tag, [{
|
|
16365
16424
|
key: "render",
|
|
16366
16425
|
value: function render() {
|
|
16367
|
-
return this.props.value ?
|
|
16426
|
+
return this.props.value ? React.createElement("div", {
|
|
16368
16427
|
className: "digtal-header-tag"
|
|
16369
|
-
}, this.props.value) :
|
|
16428
|
+
}, this.props.value) : React.createElement(React.Fragment, null);
|
|
16370
16429
|
}
|
|
16371
16430
|
}]);
|
|
16372
16431
|
|
|
@@ -16542,57 +16601,57 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
16542
16601
|
return rulesMap[field] || defaultRules;
|
|
16543
16602
|
}, [rulesMap, isReadOnly, isReadOnly]);
|
|
16544
16603
|
controller.useForm('stakeholder', form);
|
|
16545
|
-
return
|
|
16604
|
+
return React.createElement("div", {
|
|
16546
16605
|
className: classNames("kts-invoice-operate-invoice-digtal-stakeholder", {
|
|
16547
16606
|
readOnly: readOnly
|
|
16548
16607
|
})
|
|
16549
|
-
},
|
|
16550
|
-
return
|
|
16551
|
-
}), !readOnly &&
|
|
16608
|
+
}, React.createElement("div", null, '购买方信息'.split('').map(function (e) {
|
|
16609
|
+
return React.createElement("span", null, e);
|
|
16610
|
+
}), !readOnly && React.createElement(Icon, {
|
|
16552
16611
|
className: "digtal-stakeholder-expand-button",
|
|
16553
16612
|
component: isExpand ? SvgArrowUp : SvgArrowDown,
|
|
16554
16613
|
onClick: onExpand
|
|
16555
|
-
})),
|
|
16614
|
+
})), React.createElement("div", null, React.createElement(Form, {
|
|
16556
16615
|
className: "digtal-stakeholder-form"
|
|
16557
|
-
},
|
|
16616
|
+
}, React.createElement(Row, {
|
|
16558
16617
|
gutter: [16, 0]
|
|
16559
|
-
}, props.isNaturalPerson === true &&
|
|
16618
|
+
}, props.isNaturalPerson === true && React.createElement(Col, {
|
|
16560
16619
|
span: 24
|
|
16561
|
-
},
|
|
16620
|
+
}, React.createElement(Form.Item, {
|
|
16562
16621
|
label: "\u8D2D\u4E70\u65B9\u4FE1\u606F",
|
|
16563
16622
|
colon: false
|
|
16564
|
-
}, getFieldDecorator('naturalPersonFlag', {})(
|
|
16623
|
+
}, getFieldDecorator('naturalPersonFlag', {})(React.createElement(NaturalPersonFlag, {
|
|
16565
16624
|
readOnly: isReadOnly('naturalPersonFlag')
|
|
16566
|
-
})))),
|
|
16625
|
+
})))), React.createElement(Col, {
|
|
16567
16626
|
span: 24
|
|
16568
|
-
},
|
|
16627
|
+
}, React.createElement(Form.Item, {
|
|
16569
16628
|
label: "\u540D\u79F0",
|
|
16570
16629
|
colon: false
|
|
16571
16630
|
}, getFieldDecorator('buyerName', {
|
|
16572
16631
|
rules: getRules('buyerName', RULES.companyName('购买方名称'))
|
|
16573
|
-
})(
|
|
16632
|
+
})(React.createElement(BuyerNameInput$1, {
|
|
16574
16633
|
myform: form,
|
|
16575
16634
|
fieldName: 'buyerName',
|
|
16576
16635
|
readOnly: isReadOnly('buyerName'),
|
|
16577
16636
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
16578
16637
|
autoComplete: "off",
|
|
16579
|
-
suffix: isShowImportButton === true &&
|
|
16638
|
+
suffix: isShowImportButton === true && React.createElement(Button$1, {
|
|
16580
16639
|
type: 'link',
|
|
16581
16640
|
style: {
|
|
16582
16641
|
padding: 0,
|
|
16583
16642
|
width: 20,
|
|
16584
16643
|
height: '100%'
|
|
16585
16644
|
},
|
|
16586
|
-
icon:
|
|
16645
|
+
icon: React.createElement(Icon, {
|
|
16587
16646
|
component: SvgPlus
|
|
16588
16647
|
}),
|
|
16589
16648
|
onClick: function onClick() {
|
|
16590
16649
|
onClickImportButton && onClickImportButton(controller);
|
|
16591
16650
|
}
|
|
16592
16651
|
})
|
|
16593
|
-
})))),
|
|
16652
|
+
})))), React.createElement(Col, {
|
|
16594
16653
|
span: 24
|
|
16595
|
-
},
|
|
16654
|
+
}, React.createElement(Form.Item, {
|
|
16596
16655
|
label: "\u7EDF\u4E00\u793E\u4F1A\u4FE1\u7528\u4EE3\u7801/\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7",
|
|
16597
16656
|
colon: false
|
|
16598
16657
|
}, getFieldDecorator('buyerTaxId', {
|
|
@@ -16600,15 +16659,15 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
16600
16659
|
required: !isVatNormal,
|
|
16601
16660
|
message: '购买方纳税人识别号必填'
|
|
16602
16661
|
}].concat(_toConsumableArray(RULES.taxId('购买方纳税人识别号'))))
|
|
16603
|
-
})(
|
|
16662
|
+
})(React.createElement(BuyerNameInput$1, {
|
|
16604
16663
|
myform: form,
|
|
16605
16664
|
fieldName: 'buyerTaxId',
|
|
16606
16665
|
readOnly: isReadOnly('buyerTaxId'),
|
|
16607
16666
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
16608
16667
|
autoComplete: "off"
|
|
16609
|
-
})))), isExpand &&
|
|
16668
|
+
})))), isExpand && React.createElement(React.Fragment, null, React.createElement(Col, {
|
|
16610
16669
|
span: 15
|
|
16611
|
-
},
|
|
16670
|
+
}, React.createElement(Form.Item, {
|
|
16612
16671
|
label: "\u8D2D\u4E70\u65B9\u5730\u5740",
|
|
16613
16672
|
colon: false
|
|
16614
16673
|
}, getFieldDecorator('buyerAddress', {
|
|
@@ -16616,77 +16675,77 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
16616
16675
|
max: 100,
|
|
16617
16676
|
message: '购买方地址内容超长'
|
|
16618
16677
|
}])
|
|
16619
|
-
})(
|
|
16678
|
+
})(React.createElement(MyInput$1, {
|
|
16620
16679
|
readOnly: isReadOnly('buyerAddress'),
|
|
16621
16680
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
16622
16681
|
autoComplete: "off"
|
|
16623
|
-
})))),
|
|
16682
|
+
})))), React.createElement(Col, {
|
|
16624
16683
|
span: 9
|
|
16625
|
-
},
|
|
16684
|
+
}, React.createElement(Form.Item, {
|
|
16626
16685
|
label: "\u7535\u8BDD",
|
|
16627
16686
|
colon: false
|
|
16628
16687
|
}, getFieldDecorator('buyerPhone', {
|
|
16629
16688
|
rules: getRules('buyerPhone', RULES.buyerTelPhone('购买方电话'))
|
|
16630
|
-
})(
|
|
16689
|
+
})(React.createElement(MyInput$1, {
|
|
16631
16690
|
readOnly: isReadOnly('buyerPhone'),
|
|
16632
16691
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
16633
16692
|
autoComplete: "off"
|
|
16634
|
-
})))),
|
|
16693
|
+
})))), React.createElement(Col, {
|
|
16635
16694
|
span: 12
|
|
16636
|
-
},
|
|
16695
|
+
}, React.createElement(Form.Item, {
|
|
16637
16696
|
label: "\u8D2D\u4E70\u65B9\u5F00\u6237\u94F6\u884C",
|
|
16638
16697
|
colon: false
|
|
16639
16698
|
}, getFieldDecorator('buyerBank', {
|
|
16640
16699
|
rules: getRules('buyerBank', RULES.bankName('购买方开户银行'))
|
|
16641
|
-
})(
|
|
16700
|
+
})(React.createElement(MyInput$1, {
|
|
16642
16701
|
readOnly: isReadOnly('buyerBank'),
|
|
16643
16702
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
16644
16703
|
autoComplete: "off"
|
|
16645
|
-
})))),
|
|
16704
|
+
})))), React.createElement(Col, {
|
|
16646
16705
|
span: 12
|
|
16647
|
-
},
|
|
16706
|
+
}, React.createElement(Form.Item, {
|
|
16648
16707
|
label: "\u94F6\u884C\u8D26\u53F7",
|
|
16649
16708
|
colon: false
|
|
16650
16709
|
}, getFieldDecorator('buyerAccount', {
|
|
16651
16710
|
rules: getRules('buyerAccount', RULES.bankAccount('购买方银行账号'))
|
|
16652
|
-
})(
|
|
16711
|
+
})(React.createElement(MyInput$1, {
|
|
16653
16712
|
readOnly: isReadOnly('buyerAccount'),
|
|
16654
16713
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
16655
16714
|
autoComplete: "off"
|
|
16656
|
-
})))))))),
|
|
16657
|
-
return
|
|
16658
|
-
}), !readOnly &&
|
|
16715
|
+
})))))))), React.createElement("div", null, '销售方信息'.split('').map(function (e) {
|
|
16716
|
+
return React.createElement("span", null, e);
|
|
16717
|
+
}), !readOnly && React.createElement(Icon, {
|
|
16659
16718
|
className: "digtal-stakeholder-expand-button",
|
|
16660
16719
|
component: isExpand ? SvgArrowUp : SvgArrowDown,
|
|
16661
16720
|
onClick: onExpand
|
|
16662
|
-
})),
|
|
16721
|
+
})), React.createElement("div", null, !readOnly && props.lineCredit && React.createElement("div", {
|
|
16663
16722
|
style: {
|
|
16664
16723
|
marginTop: 20
|
|
16665
16724
|
}
|
|
16666
|
-
},
|
|
16725
|
+
}, React.createElement(Tooltip$1, {
|
|
16667
16726
|
trigger: "click",
|
|
16668
16727
|
title: props.lineCredit
|
|
16669
|
-
},
|
|
16728
|
+
}, React.createElement(Button$1, {
|
|
16670
16729
|
type: "link"
|
|
16671
|
-
}, "\u67E5\u770B\u5F53\u524D\u53EF\u7528\u6388\u4FE1\u989D\u5EA6"))),
|
|
16730
|
+
}, "\u67E5\u770B\u5F53\u524D\u53EF\u7528\u6388\u4FE1\u989D\u5EA6"))), React.createElement(Form, {
|
|
16672
16731
|
className: "digtal-stakeholder-form"
|
|
16673
|
-
},
|
|
16732
|
+
}, React.createElement(Row, {
|
|
16674
16733
|
gutter: [16, 0]
|
|
16675
|
-
},
|
|
16734
|
+
}, React.createElement(Col, {
|
|
16676
16735
|
span: 24
|
|
16677
|
-
},
|
|
16736
|
+
}, React.createElement(Form.Item, {
|
|
16678
16737
|
label: "\u540D\u79F0",
|
|
16679
16738
|
colon: false
|
|
16680
16739
|
}, getFieldDecorator('supplierName', {
|
|
16681
16740
|
rules: getRules('supplierName', RULES.companyName('销售方名称')),
|
|
16682
16741
|
getValueFromEvent: formatCompanyName
|
|
16683
|
-
})(
|
|
16742
|
+
})(React.createElement(MyInput$1, {
|
|
16684
16743
|
readOnly: isReadOnly('supplierName'),
|
|
16685
16744
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
16686
16745
|
autoComplete: "off"
|
|
16687
|
-
})))),
|
|
16746
|
+
})))), React.createElement(Col, {
|
|
16688
16747
|
span: 24
|
|
16689
|
-
},
|
|
16748
|
+
}, React.createElement(Form.Item, {
|
|
16690
16749
|
label: "\u7EDF\u4E00\u793E\u4F1A\u4FE1\u7528\u4EE3\u7801/\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7",
|
|
16691
16750
|
colon: false
|
|
16692
16751
|
}, getFieldDecorator('supplierTaxId', {
|
|
@@ -16694,13 +16753,13 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
16694
16753
|
required: true,
|
|
16695
16754
|
message: '销售方纳税人识别号必填'
|
|
16696
16755
|
}].concat(_toConsumableArray(RULES.taxId('销售方纳税人识别号'))))
|
|
16697
|
-
})(
|
|
16756
|
+
})(React.createElement(MyInput$1, {
|
|
16698
16757
|
readOnly: isReadOnly('supplierTaxId'),
|
|
16699
16758
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
16700
16759
|
autoComplete: "off"
|
|
16701
|
-
})))), isExpand &&
|
|
16760
|
+
})))), isExpand && React.createElement(React.Fragment, null, React.createElement(Col, {
|
|
16702
16761
|
span: 15
|
|
16703
|
-
},
|
|
16762
|
+
}, React.createElement(Form.Item, {
|
|
16704
16763
|
label: "\u9500\u552E\u65B9\u5730\u5740",
|
|
16705
16764
|
colon: false
|
|
16706
16765
|
}, getFieldDecorator('sellerAddress', {
|
|
@@ -16708,40 +16767,40 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
16708
16767
|
max: 300,
|
|
16709
16768
|
message: '销售方地址内容超长'
|
|
16710
16769
|
}])
|
|
16711
|
-
})(
|
|
16770
|
+
})(React.createElement(MyInput$1, {
|
|
16712
16771
|
readOnly: isReadOnly('sellerAddress'),
|
|
16713
16772
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
16714
16773
|
autoComplete: "off"
|
|
16715
|
-
})))),
|
|
16774
|
+
})))), React.createElement(Col, {
|
|
16716
16775
|
span: 9
|
|
16717
|
-
},
|
|
16776
|
+
}, React.createElement(Form.Item, {
|
|
16718
16777
|
label: "\u7535\u8BDD",
|
|
16719
16778
|
colon: false
|
|
16720
16779
|
}, getFieldDecorator('sellerPhone', {
|
|
16721
16780
|
rules: getRules('sellerPhone', RULES.sellerTelPhone('销售方电话'))
|
|
16722
|
-
})(
|
|
16781
|
+
})(React.createElement(MyInput$1, {
|
|
16723
16782
|
readOnly: isReadOnly('sellerPhone'),
|
|
16724
16783
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
16725
16784
|
autoComplete: "off"
|
|
16726
|
-
})))),
|
|
16785
|
+
})))), React.createElement(Col, {
|
|
16727
16786
|
span: 12
|
|
16728
|
-
},
|
|
16787
|
+
}, React.createElement(Form.Item, {
|
|
16729
16788
|
label: "\u9500\u552E\u65B9\u5F00\u6237\u94F6\u884C",
|
|
16730
16789
|
colon: false
|
|
16731
16790
|
}, getFieldDecorator('sellerBank', {
|
|
16732
16791
|
rules: getRules('sellerBank', RULES.bankName('销售方开户银行'))
|
|
16733
|
-
})(
|
|
16792
|
+
})(React.createElement(MyInput$1, {
|
|
16734
16793
|
readOnly: isReadOnly('sellerBank'),
|
|
16735
16794
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
16736
16795
|
autoComplete: "off"
|
|
16737
|
-
})))),
|
|
16796
|
+
})))), React.createElement(Col, {
|
|
16738
16797
|
span: 12
|
|
16739
|
-
},
|
|
16798
|
+
}, React.createElement(Form.Item, {
|
|
16740
16799
|
label: "\u94F6\u884C\u8D26\u53F7",
|
|
16741
16800
|
colon: false
|
|
16742
16801
|
}, getFieldDecorator('sellerAccount', {
|
|
16743
16802
|
rules: getRules('sellerAccount', RULES.bankAccount('销售方银行账号'))
|
|
16744
|
-
})(
|
|
16803
|
+
})(React.createElement(MyInput$1, {
|
|
16745
16804
|
readOnly: isReadOnly('sellerAccount'),
|
|
16746
16805
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
16747
16806
|
autoComplete: "off"
|
|
@@ -16762,7 +16821,7 @@ function NaturalPersonFlag(props) {
|
|
|
16762
16821
|
React.useEffect(function () {
|
|
16763
16822
|
setValue(props.value || 'COMPANY');
|
|
16764
16823
|
}, [props.value]);
|
|
16765
|
-
return
|
|
16824
|
+
return React.createElement(Checkbox$1, {
|
|
16766
16825
|
disabled: props.readOnly,
|
|
16767
16826
|
checked: value === 'NATURAL',
|
|
16768
16827
|
onChange: onChange
|
|
@@ -16865,8 +16924,8 @@ function BuyerNameInput$1(props) {
|
|
|
16865
16924
|
return _ref.apply(this, arguments);
|
|
16866
16925
|
};
|
|
16867
16926
|
}(), [autoComplete.onBuyerNameSearch, fieldName]);
|
|
16868
|
-
if (props.readOnly) return
|
|
16869
|
-
return
|
|
16927
|
+
if (props.readOnly) return React.createElement("span", null, props.value);
|
|
16928
|
+
return React.createElement(AutoComplete$1, {
|
|
16870
16929
|
onSearch: onSearch,
|
|
16871
16930
|
options: options.map(function (e) {
|
|
16872
16931
|
return {
|
|
@@ -16875,7 +16934,7 @@ function BuyerNameInput$1(props) {
|
|
|
16875
16934
|
}),
|
|
16876
16935
|
onChange: onChangeAutoComplete,
|
|
16877
16936
|
value: props.value
|
|
16878
|
-
},
|
|
16937
|
+
}, React.createElement(Input$1, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
16879
16938
|
style: _objectSpread2({
|
|
16880
16939
|
width: '100%'
|
|
16881
16940
|
}, props.style)
|
|
@@ -16899,9 +16958,9 @@ var MyInput$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
16899
16958
|
var props = this.props;
|
|
16900
16959
|
|
|
16901
16960
|
if (props.readOnly) {
|
|
16902
|
-
return
|
|
16961
|
+
return React.createElement("span", null, props.value);
|
|
16903
16962
|
} else {
|
|
16904
|
-
return
|
|
16963
|
+
return React.createElement(Input$1, _objectSpread2({}, props));
|
|
16905
16964
|
}
|
|
16906
16965
|
}
|
|
16907
16966
|
}]);
|
|
@@ -16958,43 +17017,43 @@ var SignDigtal = decorator(Form.create())(function (props) {
|
|
|
16958
17017
|
controller.useForm('sign', form);
|
|
16959
17018
|
|
|
16960
17019
|
if (readOnly) {
|
|
16961
|
-
return
|
|
17020
|
+
return React.createElement("div", {
|
|
16962
17021
|
className: "kts-invoice-operate-sign-digtal-readOnly"
|
|
16963
|
-
},
|
|
17022
|
+
}, React.createElement("div", {
|
|
16964
17023
|
className: 'sign-digtal-readOnly-cont'
|
|
16965
|
-
},
|
|
17024
|
+
}, React.createElement("div", null, React.createElement("span", null, "\u5907"), React.createElement("span", null, "\u6CE8")), React.createElement("div", null, getFieldDecorator('remarks', {
|
|
16966
17025
|
initialValue: props.defaultRemark
|
|
16967
|
-
})(isEnables('remarks') ?
|
|
17026
|
+
})(isEnables('remarks') ? React.createElement(Input$1.TextArea, {
|
|
16968
17027
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
16969
17028
|
style: {
|
|
16970
17029
|
height: '100%'
|
|
16971
17030
|
}
|
|
16972
|
-
}) :
|
|
17031
|
+
}) : React.createElement(MyDiv$1, null)))), React.createElement(Form, {
|
|
16973
17032
|
layout: 'inline',
|
|
16974
17033
|
className: 'digtal-readOnly-form'
|
|
16975
|
-
},
|
|
17034
|
+
}, React.createElement(Form.Item, {
|
|
16976
17035
|
label: "\u5F00\u7968\u4EBA"
|
|
16977
17036
|
}, getFieldDecorator('drawer', {
|
|
16978
17037
|
initialValue: props.defaultRemark
|
|
16979
|
-
})(
|
|
17038
|
+
})(React.createElement(MyDiv$1, null)))));
|
|
16980
17039
|
} else {
|
|
16981
|
-
return
|
|
17040
|
+
return React.createElement("div", {
|
|
16982
17041
|
className: "kts-invoice-operate-sign-digtal"
|
|
16983
|
-
},
|
|
17042
|
+
}, React.createElement("div", {
|
|
16984
17043
|
className: 'sign-digtal-label'
|
|
16985
|
-
}, "\u5907\u6CE8\u4FE1\u606F"),
|
|
17044
|
+
}, "\u5907\u6CE8\u4FE1\u606F"), React.createElement(Form, null, React.createElement(Form.Item, {
|
|
16986
17045
|
label: "\u5907\u6CE8"
|
|
16987
17046
|
}, getFieldDecorator('remarks', {
|
|
16988
17047
|
initialValue: props.defaultRemark
|
|
16989
|
-
})(
|
|
17048
|
+
})(React.createElement(Input$1.TextArea, {
|
|
16990
17049
|
readOnly: isReadOnly('remarks'),
|
|
16991
17050
|
autoSize: true,
|
|
16992
17051
|
placeholder: "\u8BF7\u8F93\u5165"
|
|
16993
|
-
}))),
|
|
17052
|
+
}))), React.createElement(Form.Item, {
|
|
16994
17053
|
label: "\u5F00\u7968\u4EBA"
|
|
16995
17054
|
}, getFieldDecorator('drawer', {
|
|
16996
17055
|
initialValue: props.defaultIssuer
|
|
16997
|
-
})(
|
|
17056
|
+
})(React.createElement(Input$1, {
|
|
16998
17057
|
readOnly: isReadOnly('drawer'),
|
|
16999
17058
|
style: {
|
|
17000
17059
|
width: 313
|
|
@@ -17018,7 +17077,7 @@ var MyDiv$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
17018
17077
|
_createClass(MyDiv, [{
|
|
17019
17078
|
key: "render",
|
|
17020
17079
|
value: function render() {
|
|
17021
|
-
return
|
|
17080
|
+
return React.createElement("div", null, this.props.value);
|
|
17022
17081
|
}
|
|
17023
17082
|
}]);
|
|
17024
17083
|
|
|
@@ -17119,12 +17178,12 @@ function TableVirtual$1 (props) {
|
|
|
17119
17178
|
if (!cont) return;
|
|
17120
17179
|
cont.scrollTop = 0;
|
|
17121
17180
|
}, [(_props$dataSource2 = props.dataSource) === null || _props$dataSource2 === void 0 ? void 0 : _props$dataSource2.length]);
|
|
17122
|
-
return
|
|
17181
|
+
return React.createElement("span", {
|
|
17123
17182
|
className: "kts-invoice-operate-goods-table-virtual",
|
|
17124
17183
|
ref: function ref(e) {
|
|
17125
17184
|
setSelf(e);
|
|
17126
17185
|
}
|
|
17127
|
-
},
|
|
17186
|
+
}, React.createElement(TableManual, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
17128
17187
|
dataSource: dataSource,
|
|
17129
17188
|
// 新版本Table会有输入框无法连续输入的问题,先兼容老版本
|
|
17130
17189
|
tableComponent: Table
|
|
@@ -17237,51 +17296,51 @@ var Statistics$1 = (function () {
|
|
|
17237
17296
|
});
|
|
17238
17297
|
return sum.done().toNumber();
|
|
17239
17298
|
}, []);
|
|
17240
|
-
return
|
|
17299
|
+
return React.createElement("div", {
|
|
17241
17300
|
className: 'kts-invoice-operate-goods-list-statistics-digtal'
|
|
17242
|
-
},
|
|
17301
|
+
}, React.createElement("div", {
|
|
17243
17302
|
className: 'statistics-digtal-total'
|
|
17244
|
-
},
|
|
17303
|
+
}, React.createElement("div", null, "\u5408\u8BA1"), React.createElement("div", {
|
|
17245
17304
|
style: {
|
|
17246
17305
|
flex: 1
|
|
17247
17306
|
}
|
|
17248
|
-
}),
|
|
17307
|
+
}), React.createElement("div", {
|
|
17249
17308
|
style: {
|
|
17250
17309
|
width: 119,
|
|
17251
17310
|
textAlign: 'right',
|
|
17252
17311
|
paddingRight: 15
|
|
17253
17312
|
}
|
|
17254
|
-
}, "\xA5", parseFloat(isTaxIncluded ? lineAmountIncludeTax : lineAmountExcludeTax).toFixed(2)),
|
|
17313
|
+
}, "\xA5", parseFloat(isTaxIncluded ? lineAmountIncludeTax : lineAmountExcludeTax).toFixed(2)), React.createElement("div", {
|
|
17255
17314
|
style: {
|
|
17256
17315
|
width: 119,
|
|
17257
17316
|
textAlign: 'right',
|
|
17258
17317
|
paddingRight: 15
|
|
17259
17318
|
}
|
|
17260
|
-
}, "\xA5", parseFloat(taxAmount).toFixed(2))),
|
|
17319
|
+
}, "\xA5", parseFloat(taxAmount).toFixed(2))), React.createElement("div", {
|
|
17261
17320
|
className: 'statistics-digtal-total-tax'
|
|
17262
|
-
},
|
|
17321
|
+
}, React.createElement("div", null, "\u4EF7\u7A0E\u5408\u8BA1\uFF08\u5927\u5199\uFF09"), React.createElement("div", {
|
|
17263
17322
|
style: {
|
|
17264
17323
|
paddingLeft: 30
|
|
17265
17324
|
}
|
|
17266
|
-
},
|
|
17325
|
+
}, React.createElement(Icon, {
|
|
17267
17326
|
component: SvgFork
|
|
17268
|
-
}),
|
|
17327
|
+
}), React.createElement("span", {
|
|
17269
17328
|
style: {
|
|
17270
17329
|
fontWeight: 'bold',
|
|
17271
17330
|
marginLeft: 4
|
|
17272
17331
|
}
|
|
17273
17332
|
}, nzhcn$1.toMoney(lineAmountIncludeTax, {
|
|
17274
17333
|
outSymbol: false
|
|
17275
|
-
}))),
|
|
17334
|
+
}))), React.createElement("div", {
|
|
17276
17335
|
style: {
|
|
17277
17336
|
flex: 1
|
|
17278
17337
|
}
|
|
17279
|
-
}),
|
|
17338
|
+
}), React.createElement("div", {
|
|
17280
17339
|
style: {
|
|
17281
17340
|
width: 90,
|
|
17282
17341
|
color: '#9F613E'
|
|
17283
17342
|
}
|
|
17284
|
-
}, "\uFF08\u5C0F\u5199\uFF09"),
|
|
17343
|
+
}, "\uFF08\u5C0F\u5199\uFF09"), React.createElement("div", {
|
|
17285
17344
|
style: {
|
|
17286
17345
|
width: 119
|
|
17287
17346
|
}
|
|
@@ -17340,10 +17399,10 @@ var AddRowButton$1 = (function () {
|
|
|
17340
17399
|
}
|
|
17341
17400
|
}, _callee);
|
|
17342
17401
|
})), [controller, rootElement]);
|
|
17343
|
-
if (isAddRow === false) return
|
|
17344
|
-
if (model === 'prefab') return
|
|
17345
|
-
if (model === 'readOnly') return
|
|
17346
|
-
return
|
|
17402
|
+
if (isAddRow === false) return React.createElement(React.Fragment, null);
|
|
17403
|
+
if (model === 'prefab') return React.createElement(React.Fragment, null);
|
|
17404
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
17405
|
+
return React.createElement(Button$1, {
|
|
17347
17406
|
size: 'small',
|
|
17348
17407
|
type: 'primary',
|
|
17349
17408
|
onClick: onClick,
|
|
@@ -17496,11 +17555,11 @@ var TaxIncludedSwitch$1 = (function () {
|
|
|
17496
17555
|
};
|
|
17497
17556
|
}())();
|
|
17498
17557
|
}, []);
|
|
17499
|
-
return
|
|
17558
|
+
return React.createElement("span", null, React.createElement("label", {
|
|
17500
17559
|
style: {
|
|
17501
17560
|
marginRight: 2
|
|
17502
17561
|
}
|
|
17503
|
-
}, "\u542B\u7A0E"),
|
|
17562
|
+
}, "\u542B\u7A0E"), React.createElement(Switch, {
|
|
17504
17563
|
disabled: isSwitchTax === false,
|
|
17505
17564
|
checked: isTaxIncluded,
|
|
17506
17565
|
defaultChecked: true,
|
|
@@ -17596,12 +17655,12 @@ function Search$1() {
|
|
|
17596
17655
|
};
|
|
17597
17656
|
}());
|
|
17598
17657
|
}, [value, controller]);
|
|
17599
|
-
return
|
|
17658
|
+
return React.createElement(Input$1, {
|
|
17600
17659
|
readOnly: readOnly,
|
|
17601
17660
|
value: value,
|
|
17602
17661
|
className: "kts-invoice-operate-goods-list-search",
|
|
17603
17662
|
placeholder: "\u8BF7\u60A8\u8F93\u5165\u9879\u76EE\u540D\u79F0\u3001\u89C4\u683C\u578B\u53F7\u3001\u91D1\u989D(".concat(isTaxIncluded ? '含税' : '不含税', ")\u641C\u7D22"),
|
|
17604
|
-
prefix:
|
|
17663
|
+
prefix: React.createElement(Icon$1, {
|
|
17605
17664
|
component: SvgMagnifier$1,
|
|
17606
17665
|
style: {
|
|
17607
17666
|
color: "#b8b8b8"
|
|
@@ -17646,12 +17705,12 @@ function TableRow$1(props) {
|
|
|
17646
17705
|
return undefined;
|
|
17647
17706
|
}
|
|
17648
17707
|
}, [rowKey, goodsMap]);
|
|
17649
|
-
return rowKey === current && current ?
|
|
17708
|
+
return rowKey === current && current ? React.createElement("tr", {
|
|
17650
17709
|
style: {
|
|
17651
17710
|
height: 50,
|
|
17652
17711
|
position: 'relative'
|
|
17653
17712
|
}
|
|
17654
|
-
},
|
|
17713
|
+
}, React.createElement("div", {
|
|
17655
17714
|
style: {
|
|
17656
17715
|
height: 0.5,
|
|
17657
17716
|
width: '100%',
|
|
@@ -17659,9 +17718,7 @@ function TableRow$1(props) {
|
|
|
17659
17718
|
position: 'absolute',
|
|
17660
17719
|
bottom: 0
|
|
17661
17720
|
}
|
|
17662
|
-
})) :
|
|
17663
|
-
/*#__PURE__*/
|
|
17664
|
-
// <tr {...props} className={classnames(props.className, discount, (rowKey === container && current) ? 'kts-invoice-operate-goods-list-itemName-drag-container' : '')} />
|
|
17721
|
+
})) : // <tr {...props} className={classnames(props.className, discount, (rowKey === container && current) ? 'kts-invoice-operate-goods-list-itemName-drag-container' : '')} />
|
|
17665
17722
|
React.createElement("tr", _objectSpread2(_objectSpread2({}, props), {}, {
|
|
17666
17723
|
className: classNames(props.className, discount, rowKey === container && current ? 'kts-invoice-operate-goods-list-itemName-drag-container-' + site : undefined)
|
|
17667
17724
|
}));
|
|
@@ -17701,9 +17758,9 @@ var TitleText$1 = (function (props) {
|
|
|
17701
17758
|
return !!e.required;
|
|
17702
17759
|
})) || props.required;
|
|
17703
17760
|
}, [rules, props.required]);
|
|
17704
|
-
return
|
|
17761
|
+
return React.createElement(React.Fragment, null, required ? React.createElement(Text$5, {
|
|
17705
17762
|
type: "danger"
|
|
17706
|
-
}, "*") :
|
|
17763
|
+
}, "*") : React.createElement(React.Fragment, null), children);
|
|
17707
17764
|
});
|
|
17708
17765
|
|
|
17709
17766
|
var css_248z$m = ".kts-invoice-operate-goods-list-itemName-input {\n display: flex;\n flex: 1;\n padding-left: 0;\n height: 31px;\n}\n.has-error .kts-invoice-operate-goods-list-itemName-input {\n border: 1px solid #f5222d;\n}\n";
|
|
@@ -17841,14 +17898,14 @@ function ItemNameInput$1(props) {
|
|
|
17841
17898
|
};
|
|
17842
17899
|
}(), [autoComplete.onItemNameSearch]);
|
|
17843
17900
|
console.log('===> options', options);
|
|
17844
|
-
return
|
|
17901
|
+
return React.createElement("div", {
|
|
17845
17902
|
className: 'kts-invoice-operate-goods-list-itemName-input'
|
|
17846
|
-
}, props.shorthand &&
|
|
17903
|
+
}, props.shorthand && React.createElement("span", {
|
|
17847
17904
|
style: {
|
|
17848
17905
|
alignSelf: 'center',
|
|
17849
17906
|
fontSize: 12
|
|
17850
17907
|
}
|
|
17851
|
-
}, "*", props.shorthand, "*"),
|
|
17908
|
+
}, "*", props.shorthand, "*"), React.createElement(AutoComplete$1, {
|
|
17852
17909
|
onSearch: onSearch,
|
|
17853
17910
|
value: props.value,
|
|
17854
17911
|
options: options.map(function (e) {
|
|
@@ -17857,7 +17914,7 @@ function ItemNameInput$1(props) {
|
|
|
17857
17914
|
};
|
|
17858
17915
|
}),
|
|
17859
17916
|
onSelect: onChangeAutoComplete
|
|
17860
|
-
},
|
|
17917
|
+
}, React.createElement(Input$1, {
|
|
17861
17918
|
style: {
|
|
17862
17919
|
height: '100%'
|
|
17863
17920
|
},
|
|
@@ -18964,7 +19021,7 @@ function Drag$2(props) {
|
|
|
18964
19021
|
var currentGood = controller.state.goodsListState.goodsList.filter(function (e) {
|
|
18965
19022
|
return e.$index === record.$index;
|
|
18966
19023
|
})[0];
|
|
18967
|
-
mounting(
|
|
19024
|
+
mounting(React.createElement(DragDiv$1, _objectSpread2({}, currentGood)));
|
|
18968
19025
|
rowList.forEach(function (e) {
|
|
18969
19026
|
e.addEventListener('mousemove', onMousemove);
|
|
18970
19027
|
});
|
|
@@ -19125,7 +19182,7 @@ function Drag$2(props) {
|
|
|
19125
19182
|
|
|
19126
19183
|
|
|
19127
19184
|
function insert() {
|
|
19128
|
-
mounting(
|
|
19185
|
+
mounting(React.createElement(React.Fragment, null));
|
|
19129
19186
|
controller.run( /*#__PURE__*/function () {
|
|
19130
19187
|
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(s) {
|
|
19131
19188
|
var _s$goodsListState$dra, container, current, site, goodsList, goodsMap, _currentGood, currentIndex, moveGoods;
|
|
@@ -19204,7 +19261,7 @@ function Drag$2(props) {
|
|
|
19204
19261
|
}
|
|
19205
19262
|
}, [controller, record, disabled]);
|
|
19206
19263
|
var renderButton = React.useMemo(function () {
|
|
19207
|
-
return
|
|
19264
|
+
return React.createElement(Button, {
|
|
19208
19265
|
type: 'link',
|
|
19209
19266
|
style: {
|
|
19210
19267
|
padding: 0
|
|
@@ -19215,13 +19272,13 @@ function Drag$2(props) {
|
|
|
19215
19272
|
},
|
|
19216
19273
|
className: "kts-invoice-operate-goods-list-itemName-drag",
|
|
19217
19274
|
onMouseOver: controller.saveEditGood
|
|
19218
|
-
},
|
|
19275
|
+
}, React.createElement(Icon, {
|
|
19219
19276
|
component: SvgI001$1
|
|
19220
19277
|
}));
|
|
19221
19278
|
}, [onMouseDown, controller]);
|
|
19222
19279
|
|
|
19223
19280
|
if (disabled) {
|
|
19224
|
-
return
|
|
19281
|
+
return React.createElement(Popover, {
|
|
19225
19282
|
content: '您还有未编辑完成的商品',
|
|
19226
19283
|
trigger: 'focus'
|
|
19227
19284
|
}, renderButton);
|
|
@@ -19261,13 +19318,13 @@ function DragDiv$1(props) {
|
|
|
19261
19318
|
window.removeEventListener('mousemove', onMousemove);
|
|
19262
19319
|
};
|
|
19263
19320
|
});
|
|
19264
|
-
return
|
|
19321
|
+
return React.createElement("div", {
|
|
19265
19322
|
className: "kts-invoice-operate-goods-list-itemName-drag-div",
|
|
19266
19323
|
style: {
|
|
19267
19324
|
top: y,
|
|
19268
19325
|
left: x
|
|
19269
19326
|
}
|
|
19270
|
-
},
|
|
19327
|
+
}, React.createElement("span", null, props.itemName), React.createElement("span", null, props.itemModelName), React.createElement("span", null, props.unit));
|
|
19271
19328
|
}
|
|
19272
19329
|
|
|
19273
19330
|
var useColumns$1 = (function (form) {
|
|
@@ -19383,7 +19440,7 @@ var useColumns$1 = (function (form) {
|
|
|
19383
19440
|
width: 40,
|
|
19384
19441
|
align: 'center',
|
|
19385
19442
|
render: function render(_, record) {
|
|
19386
|
-
return
|
|
19443
|
+
return React.createElement(Drag$2, {
|
|
19387
19444
|
record: record
|
|
19388
19445
|
});
|
|
19389
19446
|
}
|
|
@@ -19393,20 +19450,20 @@ var useColumns$1 = (function (form) {
|
|
|
19393
19450
|
dataIndex: 'serialNo',
|
|
19394
19451
|
width: 50,
|
|
19395
19452
|
render: function render(e) {
|
|
19396
|
-
return
|
|
19453
|
+
return React.createElement("span", {
|
|
19397
19454
|
style: {
|
|
19398
19455
|
padding: '0 10px'
|
|
19399
19456
|
}
|
|
19400
19457
|
}, e);
|
|
19401
19458
|
}
|
|
19402
19459
|
}, {
|
|
19403
|
-
title:
|
|
19460
|
+
title: React.createElement(TitleText$1, {
|
|
19404
19461
|
required: true
|
|
19405
19462
|
}, "\u9879\u76EE\u540D\u79F0"),
|
|
19406
19463
|
key: 'itemName',
|
|
19407
19464
|
render: function render(_, record) {
|
|
19408
19465
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
19409
|
-
return
|
|
19466
|
+
return React.createElement(Form.Item, null, React.createElement("div", {
|
|
19410
19467
|
style: {
|
|
19411
19468
|
display: 'flex'
|
|
19412
19469
|
}
|
|
@@ -19453,12 +19510,12 @@ var useColumns$1 = (function (form) {
|
|
|
19453
19510
|
return validator;
|
|
19454
19511
|
}()
|
|
19455
19512
|
}])
|
|
19456
|
-
})(
|
|
19513
|
+
})(React.createElement(ItemNameInput$1, {
|
|
19457
19514
|
editGood: editGood,
|
|
19458
19515
|
shorthand: editGood.shorthand,
|
|
19459
|
-
suffix:
|
|
19516
|
+
suffix: React.createElement(Tooltip$1, {
|
|
19460
19517
|
title: "\u70B9\u51FB\u4ECE\u5546\u54C1\u7BA1\u7406\u4E2D\u6DFB\u52A0\u5546\u54C1\u4FE1\u606F"
|
|
19461
|
-
},
|
|
19518
|
+
}, React.createElement(Button$1, {
|
|
19462
19519
|
type: "link",
|
|
19463
19520
|
style: {
|
|
19464
19521
|
padding: 0,
|
|
@@ -19466,7 +19523,7 @@ var useColumns$1 = (function (form) {
|
|
|
19466
19523
|
fontSize: 20,
|
|
19467
19524
|
fill: '#0074ff'
|
|
19468
19525
|
},
|
|
19469
|
-
icon:
|
|
19526
|
+
icon: React.createElement(SvgPlus$1, null),
|
|
19470
19527
|
onClick: controller.pipeline( /*#__PURE__*/function () {
|
|
19471
19528
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(s) {
|
|
19472
19529
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
@@ -19493,9 +19550,9 @@ var useColumns$1 = (function (form) {
|
|
|
19493
19550
|
}
|
|
19494
19551
|
}))));
|
|
19495
19552
|
} else {
|
|
19496
|
-
return
|
|
19553
|
+
return React.createElement("span", null, record.lineAttribute === LineAttributeType$1.折扣行 ? React.createElement("span", {
|
|
19497
19554
|
className: 'goods-list-digtal-discount-tag'
|
|
19498
|
-
}, "\u6298\u6263") :
|
|
19555
|
+
}, "\u6298\u6263") : React.createElement(React.Fragment, null), React.createElement(MyItemNameDiv$1, {
|
|
19499
19556
|
valueT: formatSearch$1(getItemNameWithShorthand({
|
|
19500
19557
|
shorthand: record.shorthand,
|
|
19501
19558
|
full: record.itemNameSelf || ''
|
|
@@ -19509,17 +19566,17 @@ var useColumns$1 = (function (form) {
|
|
|
19509
19566
|
}
|
|
19510
19567
|
}
|
|
19511
19568
|
}, {
|
|
19512
|
-
title:
|
|
19569
|
+
title: React.createElement(TitleText$1, {
|
|
19513
19570
|
rules: (_columnsReplenish$ite = columnsReplenish['itemModelName']) === null || _columnsReplenish$ite === void 0 ? void 0 : _columnsReplenish$ite.rules
|
|
19514
19571
|
}, "\u89C4\u683C\u578B\u53F7"),
|
|
19515
19572
|
key: 'itemModelName',
|
|
19516
19573
|
width: 119,
|
|
19517
19574
|
render: function render(_, record) {
|
|
19518
19575
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
19519
|
-
return
|
|
19576
|
+
return React.createElement(Form.Item, null, getFieldDecorator('itemModelName', {
|
|
19520
19577
|
initialValue: isMyShow ? editGood.itemModelNameSelf : editGood.itemModelName,
|
|
19521
19578
|
rules: getReplenishRules('itemModelName')
|
|
19522
|
-
})(
|
|
19579
|
+
})(React.createElement(MyInput$2, {
|
|
19523
19580
|
onChange: function () {
|
|
19524
19581
|
var _onChange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
19525
19582
|
var key, value;
|
|
@@ -19552,7 +19609,7 @@ var useColumns$1 = (function (form) {
|
|
|
19552
19609
|
}()
|
|
19553
19610
|
})));
|
|
19554
19611
|
} else {
|
|
19555
|
-
return
|
|
19612
|
+
return React.createElement(MyItemNameDiv$1, {
|
|
19556
19613
|
valueT: formatSearch$1(record.itemModelNameSelf, searchValue),
|
|
19557
19614
|
valueF: formatSearch$1(record.itemModelName, searchValue),
|
|
19558
19615
|
isMyShow: isMyShow
|
|
@@ -19560,17 +19617,17 @@ var useColumns$1 = (function (form) {
|
|
|
19560
19617
|
}
|
|
19561
19618
|
}
|
|
19562
19619
|
}, {
|
|
19563
|
-
title:
|
|
19620
|
+
title: React.createElement(TitleText$1, {
|
|
19564
19621
|
rules: (_columnsReplenish$uni = columnsReplenish['unit']) === null || _columnsReplenish$uni === void 0 ? void 0 : _columnsReplenish$uni.rules
|
|
19565
19622
|
}, "\u5355\u4F4D"),
|
|
19566
19623
|
key: 'unit',
|
|
19567
19624
|
width: 70,
|
|
19568
19625
|
render: function render(_, record) {
|
|
19569
19626
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
19570
|
-
return
|
|
19627
|
+
return React.createElement(Form.Item, null, getFieldDecorator('unit', {
|
|
19571
19628
|
initialValue: editGood.unit,
|
|
19572
19629
|
rules: getReplenishRules('unit')
|
|
19573
|
-
})(
|
|
19630
|
+
})(React.createElement(AutoComplete$1, {
|
|
19574
19631
|
style: {
|
|
19575
19632
|
width: '100%'
|
|
19576
19633
|
},
|
|
@@ -19608,7 +19665,7 @@ var useColumns$1 = (function (form) {
|
|
|
19608
19665
|
}()
|
|
19609
19666
|
})));
|
|
19610
19667
|
} else {
|
|
19611
|
-
return
|
|
19668
|
+
return React.createElement("span", {
|
|
19612
19669
|
style: {
|
|
19613
19670
|
padding: '0 10px'
|
|
19614
19671
|
}
|
|
@@ -19616,7 +19673,7 @@ var useColumns$1 = (function (form) {
|
|
|
19616
19673
|
}
|
|
19617
19674
|
}
|
|
19618
19675
|
}, {
|
|
19619
|
-
title:
|
|
19676
|
+
title: React.createElement(TitleText$1, {
|
|
19620
19677
|
rules: (_columnsReplenish$qua = columnsReplenish['quantity']) === null || _columnsReplenish$qua === void 0 ? void 0 : _columnsReplenish$qua.rules
|
|
19621
19678
|
}, "\u6570\u91CF"),
|
|
19622
19679
|
dataIndex: 'quantity',
|
|
@@ -19625,7 +19682,7 @@ var useColumns$1 = (function (form) {
|
|
|
19625
19682
|
width: 149,
|
|
19626
19683
|
render: function render(value, record) {
|
|
19627
19684
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
19628
|
-
return
|
|
19685
|
+
return React.createElement(Form.Item, null, getFieldDecorator('quantity', {
|
|
19629
19686
|
initialValue: editGood.quantity,
|
|
19630
19687
|
getValueFromEvent: onNumberValueChange,
|
|
19631
19688
|
rules: [].concat(_toConsumableArray(getReplenishRules('quantity')), [{
|
|
@@ -19671,7 +19728,7 @@ var useColumns$1 = (function (form) {
|
|
|
19671
19728
|
return validator;
|
|
19672
19729
|
}()
|
|
19673
19730
|
}])
|
|
19674
|
-
})(
|
|
19731
|
+
})(React.createElement(MyInput$2, {
|
|
19675
19732
|
style: {
|
|
19676
19733
|
textAlign: 'right'
|
|
19677
19734
|
},
|
|
@@ -19703,7 +19760,7 @@ var useColumns$1 = (function (form) {
|
|
|
19703
19760
|
}()
|
|
19704
19761
|
})));
|
|
19705
19762
|
} else {
|
|
19706
|
-
return
|
|
19763
|
+
return React.createElement("span", {
|
|
19707
19764
|
style: {
|
|
19708
19765
|
padding: '0 10px'
|
|
19709
19766
|
}
|
|
@@ -19711,7 +19768,7 @@ var useColumns$1 = (function (form) {
|
|
|
19711
19768
|
}
|
|
19712
19769
|
}
|
|
19713
19770
|
}, {
|
|
19714
|
-
title:
|
|
19771
|
+
title: React.createElement(TitleText$1, {
|
|
19715
19772
|
rules: (_columnsReplenish$pri = columnsReplenish['priceIncludeTax']) === null || _columnsReplenish$pri === void 0 ? void 0 : _columnsReplenish$pri.rules
|
|
19716
19773
|
}, "\u5355\u4EF7(\u542B\u7A0E)"),
|
|
19717
19774
|
dataIndex: 'priceIncludeTax',
|
|
@@ -19720,7 +19777,7 @@ var useColumns$1 = (function (form) {
|
|
|
19720
19777
|
width: 149,
|
|
19721
19778
|
render: function render(value, record) {
|
|
19722
19779
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
19723
|
-
return
|
|
19780
|
+
return React.createElement(Form.Item, null, getFieldDecorator('priceIncludeTax', {
|
|
19724
19781
|
initialValue: editGood.priceIncludeTax,
|
|
19725
19782
|
getValueFromEvent: onNumberValueChange,
|
|
19726
19783
|
rules: [].concat(_toConsumableArray(getReplenishRules('priceIncludeTax')), [{
|
|
@@ -19766,7 +19823,7 @@ var useColumns$1 = (function (form) {
|
|
|
19766
19823
|
return validator;
|
|
19767
19824
|
}()
|
|
19768
19825
|
}])
|
|
19769
|
-
})(
|
|
19826
|
+
})(React.createElement(MyInput$2, {
|
|
19770
19827
|
style: {
|
|
19771
19828
|
textAlign: 'right'
|
|
19772
19829
|
},
|
|
@@ -19778,7 +19835,7 @@ var useColumns$1 = (function (form) {
|
|
|
19778
19835
|
}
|
|
19779
19836
|
})));
|
|
19780
19837
|
} else {
|
|
19781
|
-
return
|
|
19838
|
+
return React.createElement("span", {
|
|
19782
19839
|
style: {
|
|
19783
19840
|
padding: '0 10px'
|
|
19784
19841
|
}
|
|
@@ -19786,7 +19843,7 @@ var useColumns$1 = (function (form) {
|
|
|
19786
19843
|
}
|
|
19787
19844
|
}
|
|
19788
19845
|
}, {
|
|
19789
|
-
title:
|
|
19846
|
+
title: React.createElement(TitleText$1, {
|
|
19790
19847
|
rules: (_columnsReplenish$pri2 = columnsReplenish['priceExcludeTax']) === null || _columnsReplenish$pri2 === void 0 ? void 0 : _columnsReplenish$pri2.rules
|
|
19791
19848
|
}, "\u5355\u4EF7(\u4E0D\u542B\u7A0E)"),
|
|
19792
19849
|
dataIndex: 'priceExcludeTax',
|
|
@@ -19795,7 +19852,7 @@ var useColumns$1 = (function (form) {
|
|
|
19795
19852
|
width: 149,
|
|
19796
19853
|
render: function render(value, record) {
|
|
19797
19854
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
19798
|
-
return
|
|
19855
|
+
return React.createElement(Form.Item, null, getFieldDecorator('priceExcludeTax', {
|
|
19799
19856
|
initialValue: editGood.priceExcludeTax,
|
|
19800
19857
|
getValueFromEvent: onNumberValueChange,
|
|
19801
19858
|
rules: [].concat(_toConsumableArray(getReplenishRules('priceExcludeTax')), [{
|
|
@@ -19841,7 +19898,7 @@ var useColumns$1 = (function (form) {
|
|
|
19841
19898
|
return validator;
|
|
19842
19899
|
}()
|
|
19843
19900
|
}])
|
|
19844
|
-
})(
|
|
19901
|
+
})(React.createElement(MyInput$2, {
|
|
19845
19902
|
style: {
|
|
19846
19903
|
textAlign: 'right'
|
|
19847
19904
|
},
|
|
@@ -19853,7 +19910,7 @@ var useColumns$1 = (function (form) {
|
|
|
19853
19910
|
}
|
|
19854
19911
|
})));
|
|
19855
19912
|
} else {
|
|
19856
|
-
return
|
|
19913
|
+
return React.createElement("span", {
|
|
19857
19914
|
style: {
|
|
19858
19915
|
padding: '0 10px'
|
|
19859
19916
|
}
|
|
@@ -19861,7 +19918,7 @@ var useColumns$1 = (function (form) {
|
|
|
19861
19918
|
}
|
|
19862
19919
|
}
|
|
19863
19920
|
}, {
|
|
19864
|
-
title:
|
|
19921
|
+
title: React.createElement(TitleText$1, {
|
|
19865
19922
|
required: true
|
|
19866
19923
|
}, "\u91D1\u989D(\u542B\u7A0E)"),
|
|
19867
19924
|
dataIndex: 'lineAmountIncludeTax',
|
|
@@ -19870,7 +19927,7 @@ var useColumns$1 = (function (form) {
|
|
|
19870
19927
|
align: 'right',
|
|
19871
19928
|
render: function render(value, record) {
|
|
19872
19929
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
19873
|
-
return
|
|
19930
|
+
return React.createElement(Form.Item, null, getFieldDecorator('lineAmountIncludeTax', {
|
|
19874
19931
|
initialValue: editGood.lineAmountIncludeTax,
|
|
19875
19932
|
getValueFromEvent: onNumberValueChange,
|
|
19876
19933
|
rules: [].concat(_toConsumableArray(getReplenishRules('lineAmountIncludeTax')), [{
|
|
@@ -19930,7 +19987,7 @@ var useColumns$1 = (function (form) {
|
|
|
19930
19987
|
return validator;
|
|
19931
19988
|
}()
|
|
19932
19989
|
}])
|
|
19933
|
-
})(
|
|
19990
|
+
})(React.createElement(MyInput$2, {
|
|
19934
19991
|
style: {
|
|
19935
19992
|
textAlign: 'right'
|
|
19936
19993
|
},
|
|
@@ -19941,7 +19998,7 @@ var useColumns$1 = (function (form) {
|
|
|
19941
19998
|
}
|
|
19942
19999
|
})));
|
|
19943
20000
|
} else {
|
|
19944
|
-
return
|
|
20001
|
+
return React.createElement("span", {
|
|
19945
20002
|
style: {
|
|
19946
20003
|
padding: '0 10px'
|
|
19947
20004
|
}
|
|
@@ -19949,7 +20006,7 @@ var useColumns$1 = (function (form) {
|
|
|
19949
20006
|
}
|
|
19950
20007
|
}
|
|
19951
20008
|
}, {
|
|
19952
|
-
title:
|
|
20009
|
+
title: React.createElement(TitleText$1, {
|
|
19953
20010
|
required: true
|
|
19954
20011
|
}, "\u91D1\u989D(\u4E0D\u542B\u7A0E)"),
|
|
19955
20012
|
dataIndex: 'lineAmountExcludeTax',
|
|
@@ -19958,7 +20015,7 @@ var useColumns$1 = (function (form) {
|
|
|
19958
20015
|
width: 119,
|
|
19959
20016
|
render: function render(value, record) {
|
|
19960
20017
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
19961
|
-
return
|
|
20018
|
+
return React.createElement(Form.Item, null, getFieldDecorator('lineAmountExcludeTax', {
|
|
19962
20019
|
initialValue: editGood.lineAmountExcludeTax,
|
|
19963
20020
|
getValueFromEvent: onNumberValueChange,
|
|
19964
20021
|
rules: [].concat(_toConsumableArray(getReplenishRules('lineAmountExcludeTax')), [{
|
|
@@ -19993,7 +20050,7 @@ var useColumns$1 = (function (form) {
|
|
|
19993
20050
|
return validator;
|
|
19994
20051
|
}()
|
|
19995
20052
|
}])
|
|
19996
|
-
})(
|
|
20053
|
+
})(React.createElement(MyInput$2, {
|
|
19997
20054
|
style: {
|
|
19998
20055
|
textAlign: 'right'
|
|
19999
20056
|
},
|
|
@@ -20004,7 +20061,7 @@ var useColumns$1 = (function (form) {
|
|
|
20004
20061
|
}
|
|
20005
20062
|
})));
|
|
20006
20063
|
} else {
|
|
20007
|
-
return
|
|
20064
|
+
return React.createElement("span", {
|
|
20008
20065
|
style: {
|
|
20009
20066
|
padding: '0 10px'
|
|
20010
20067
|
}
|
|
@@ -20012,7 +20069,7 @@ var useColumns$1 = (function (form) {
|
|
|
20012
20069
|
}
|
|
20013
20070
|
}
|
|
20014
20071
|
}, {
|
|
20015
|
-
title:
|
|
20072
|
+
title: React.createElement(TitleText$1, {
|
|
20016
20073
|
required: true
|
|
20017
20074
|
}, "\u7A0E\u7387%"),
|
|
20018
20075
|
dataIndex: 'taxRate',
|
|
@@ -20021,7 +20078,7 @@ var useColumns$1 = (function (form) {
|
|
|
20021
20078
|
width: 70,
|
|
20022
20079
|
render: function render(value, record) {
|
|
20023
20080
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
20024
|
-
return
|
|
20081
|
+
return React.createElement(Form.Item, null, getFieldDecorator('taxRate', {
|
|
20025
20082
|
initialValue: editGood.taxRate,
|
|
20026
20083
|
rules: [].concat(_toConsumableArray(getReplenishRules('taxRate')), [{
|
|
20027
20084
|
required: true,
|
|
@@ -20030,7 +20087,7 @@ var useColumns$1 = (function (form) {
|
|
|
20030
20087
|
pattern: /^[+-]?(0|([1-9]\d*))(\.\d+)?$/,
|
|
20031
20088
|
message: ' '
|
|
20032
20089
|
}])
|
|
20033
|
-
})(
|
|
20090
|
+
})(React.createElement(Select$1, {
|
|
20034
20091
|
className: "kts-invoice-operate-goods-list-table-tax-rate",
|
|
20035
20092
|
// dropdownMenuStyle={{ textAlign: "right" }}
|
|
20036
20093
|
showArrow: false,
|
|
@@ -20042,13 +20099,13 @@ var useColumns$1 = (function (form) {
|
|
|
20042
20099
|
onChangeTaxRate$1(controller, form, record);
|
|
20043
20100
|
}
|
|
20044
20101
|
}, taxRateList.map(function (e, i) {
|
|
20045
|
-
return
|
|
20102
|
+
return React.createElement(Select$1.Option, {
|
|
20046
20103
|
key: i,
|
|
20047
20104
|
value: e
|
|
20048
20105
|
}, e, "%");
|
|
20049
20106
|
}))));
|
|
20050
20107
|
} else {
|
|
20051
|
-
return
|
|
20108
|
+
return React.createElement("span", {
|
|
20052
20109
|
style: {
|
|
20053
20110
|
padding: '0 10px'
|
|
20054
20111
|
}
|
|
@@ -20056,7 +20113,7 @@ var useColumns$1 = (function (form) {
|
|
|
20056
20113
|
}
|
|
20057
20114
|
}
|
|
20058
20115
|
}, {
|
|
20059
|
-
title:
|
|
20116
|
+
title: React.createElement(TitleText$1, {
|
|
20060
20117
|
rules: (_columnsReplenish$tax = columnsReplenish['taxAmount']) === null || _columnsReplenish$tax === void 0 ? void 0 : _columnsReplenish$tax.rules
|
|
20061
20118
|
}, "\u7A0E\u989D"),
|
|
20062
20119
|
dataIndex: 'taxAmount',
|
|
@@ -20068,11 +20125,11 @@ var useColumns$1 = (function (form) {
|
|
|
20068
20125
|
return getFieldDecorator('taxAmount', {
|
|
20069
20126
|
initialValue: editGood.taxAmount,
|
|
20070
20127
|
rules: getReplenishRules('taxAmount')
|
|
20071
|
-
})(
|
|
20128
|
+
})(React.createElement(MyDiv$2, {
|
|
20072
20129
|
loading: isCipher$1(changeField, 'taxAmount')
|
|
20073
20130
|
}));
|
|
20074
20131
|
} else {
|
|
20075
|
-
return
|
|
20132
|
+
return React.createElement("span", {
|
|
20076
20133
|
style: {
|
|
20077
20134
|
padding: '0 10px'
|
|
20078
20135
|
}
|
|
@@ -20139,13 +20196,13 @@ var MyInput$2 = /*#__PURE__*/function (_React$Component) {
|
|
|
20139
20196
|
key: "render",
|
|
20140
20197
|
value: function render() {
|
|
20141
20198
|
if (this.props.loading) {
|
|
20142
|
-
return
|
|
20199
|
+
return React.createElement(Spin$1, {
|
|
20143
20200
|
size: "small"
|
|
20144
|
-
},
|
|
20201
|
+
}, React.createElement(Input$1, _objectSpread2(_objectSpread2({}, this.props), {}, {
|
|
20145
20202
|
autoComplete: "off"
|
|
20146
20203
|
})));
|
|
20147
20204
|
} else {
|
|
20148
|
-
return
|
|
20205
|
+
return React.createElement(Input$1, _objectSpread2(_objectSpread2({}, this.props), {}, {
|
|
20149
20206
|
autoComplete: "off"
|
|
20150
20207
|
}));
|
|
20151
20208
|
}
|
|
@@ -20170,15 +20227,15 @@ var MyDiv$2 = /*#__PURE__*/function (_React$Component2) {
|
|
|
20170
20227
|
key: "render",
|
|
20171
20228
|
value: function render() {
|
|
20172
20229
|
if (this.props.loading) {
|
|
20173
|
-
return
|
|
20230
|
+
return React.createElement(Spin$1, {
|
|
20174
20231
|
size: "small"
|
|
20175
|
-
},
|
|
20232
|
+
}, React.createElement("span", {
|
|
20176
20233
|
style: {
|
|
20177
20234
|
padding: '0 10px'
|
|
20178
20235
|
}
|
|
20179
20236
|
}, this.props.value));
|
|
20180
20237
|
} else {
|
|
20181
|
-
return
|
|
20238
|
+
return React.createElement("span", {
|
|
20182
20239
|
style: {
|
|
20183
20240
|
padding: '0 10px'
|
|
20184
20241
|
}
|
|
@@ -20211,18 +20268,18 @@ var MyItemNameDiv$1 = /*#__PURE__*/function (_React$Component3) {
|
|
|
20211
20268
|
|
|
20212
20269
|
if (isMyShow) {
|
|
20213
20270
|
if (valueT) {
|
|
20214
|
-
return
|
|
20271
|
+
return React.createElement(Tooltip$1, {
|
|
20215
20272
|
title: valueT
|
|
20216
|
-
},
|
|
20273
|
+
}, React.createElement("span", {
|
|
20217
20274
|
style: {
|
|
20218
20275
|
padding: '0 10px',
|
|
20219
20276
|
color: '#0074ff'
|
|
20220
20277
|
}
|
|
20221
20278
|
}, valueT));
|
|
20222
20279
|
} else {
|
|
20223
|
-
return
|
|
20280
|
+
return React.createElement(Tooltip$1, {
|
|
20224
20281
|
title: valueF
|
|
20225
|
-
},
|
|
20282
|
+
}, React.createElement("span", {
|
|
20226
20283
|
style: {
|
|
20227
20284
|
padding: '0 10px'
|
|
20228
20285
|
}
|
|
@@ -20230,17 +20287,17 @@ var MyItemNameDiv$1 = /*#__PURE__*/function (_React$Component3) {
|
|
|
20230
20287
|
}
|
|
20231
20288
|
} else {
|
|
20232
20289
|
if (valueF) {
|
|
20233
|
-
return
|
|
20290
|
+
return React.createElement(Tooltip$1, {
|
|
20234
20291
|
title: valueF
|
|
20235
|
-
},
|
|
20292
|
+
}, React.createElement("span", {
|
|
20236
20293
|
style: {
|
|
20237
20294
|
padding: '0 10px'
|
|
20238
20295
|
}
|
|
20239
20296
|
}, valueF));
|
|
20240
20297
|
} else {
|
|
20241
|
-
return
|
|
20298
|
+
return React.createElement(Tooltip$1, {
|
|
20242
20299
|
title: valueT
|
|
20243
|
-
},
|
|
20300
|
+
}, React.createElement("span", {
|
|
20244
20301
|
style: {
|
|
20245
20302
|
padding: '0 10px',
|
|
20246
20303
|
color: '#0074ff'
|
|
@@ -20263,7 +20320,7 @@ function formatSearch$1(value, search) {
|
|
|
20263
20320
|
return dcoding$1(e);
|
|
20264
20321
|
}).join("<span class=\"kts-invoice-operate-goods-list-table-search-protrude\" >".concat(search, "</span>"));
|
|
20265
20322
|
|
|
20266
|
-
return
|
|
20323
|
+
return React.createElement("span", {
|
|
20267
20324
|
dangerouslySetInnerHTML: {
|
|
20268
20325
|
__html: __html
|
|
20269
20326
|
}
|
|
@@ -20642,7 +20699,7 @@ var useRowSelection$1 = (function () {
|
|
|
20642
20699
|
};
|
|
20643
20700
|
}(), [controller]);
|
|
20644
20701
|
var columnTitle = React.useMemo(function () {
|
|
20645
|
-
return
|
|
20702
|
+
return React.createElement(Checkbox, {
|
|
20646
20703
|
onChange: onClickSelectAll,
|
|
20647
20704
|
indeterminate: indeterminate,
|
|
20648
20705
|
checked: isAll
|
|
@@ -20791,19 +20848,19 @@ var useDelRowButton$1 = (function () {
|
|
|
20791
20848
|
}, _callee2);
|
|
20792
20849
|
})), []);
|
|
20793
20850
|
var menuItem = React.useMemo(function () {
|
|
20794
|
-
if (model === 'prefab') return
|
|
20795
|
-
if (model === 'readOnly') return
|
|
20796
|
-
return
|
|
20851
|
+
if (model === 'prefab') return React.createElement(React.Fragment, null);
|
|
20852
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
20853
|
+
return React.createElement(Menu$1.Item, {
|
|
20797
20854
|
key: "1",
|
|
20798
20855
|
onClick: onClick,
|
|
20799
20856
|
disabled: disabled
|
|
20800
20857
|
}, " \u5220\u9664\u884C ");
|
|
20801
20858
|
}, [model, onClick, disabled]);
|
|
20802
20859
|
var button = React.useMemo(function () {
|
|
20803
|
-
if (isRemRow === false) return
|
|
20804
|
-
if (model === 'prefab') return
|
|
20805
|
-
if (model === 'readOnly') return
|
|
20806
|
-
return
|
|
20860
|
+
if (isRemRow === false) return React.createElement(React.Fragment, null);
|
|
20861
|
+
if (model === 'prefab') return React.createElement(React.Fragment, null);
|
|
20862
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
20863
|
+
return React.createElement(Button$1, {
|
|
20807
20864
|
size: 'small',
|
|
20808
20865
|
onClick: onClick,
|
|
20809
20866
|
disabled: disabled
|
|
@@ -21034,16 +21091,16 @@ var useAddDiscountRowButton$1 = (function () {
|
|
|
21034
21091
|
}, [isAddDiscount, model]);
|
|
21035
21092
|
var button = React.useMemo(function () {
|
|
21036
21093
|
if (isEnable) {
|
|
21037
|
-
return
|
|
21094
|
+
return React.createElement(React.Fragment, null, React.createElement(Button$1, {
|
|
21038
21095
|
size: 'small',
|
|
21039
21096
|
onClick: onOpen,
|
|
21040
21097
|
disabled: disabled
|
|
21041
|
-
}, "\u6DFB\u52A0\u6298\u6263"),
|
|
21098
|
+
}, "\u6DFB\u52A0\u6298\u6263"), React.createElement(AddDiscountRowDrawer, {
|
|
21042
21099
|
open: open,
|
|
21043
21100
|
onClose: onClose
|
|
21044
21101
|
}));
|
|
21045
21102
|
} else {
|
|
21046
|
-
return
|
|
21103
|
+
return React.createElement(React.Fragment, null);
|
|
21047
21104
|
}
|
|
21048
21105
|
}, [open, onOpen, onClose, isEnable, disabled]);
|
|
21049
21106
|
return {
|
|
@@ -21224,35 +21281,35 @@ function AddDiscountRowDrawer(props) {
|
|
|
21224
21281
|
discolineValue: undefined
|
|
21225
21282
|
}));
|
|
21226
21283
|
}, [formValues === null || formValues === void 0 ? void 0 : formValues.discolineType]);
|
|
21227
|
-
return
|
|
21284
|
+
return React.createElement(Drawer$1, {
|
|
21228
21285
|
title: "\u6DFB\u52A0\u6298\u6263",
|
|
21229
21286
|
placement: "right",
|
|
21230
21287
|
width: 350,
|
|
21231
21288
|
onClose: onClose,
|
|
21232
21289
|
open: open,
|
|
21233
|
-
footer:
|
|
21290
|
+
footer: React.createElement(Space, {
|
|
21234
21291
|
size: "middle",
|
|
21235
21292
|
style: {
|
|
21236
21293
|
display: 'flex',
|
|
21237
21294
|
justifyContent: 'end'
|
|
21238
21295
|
}
|
|
21239
|
-
},
|
|
21296
|
+
}, React.createElement(Button$1, {
|
|
21240
21297
|
onClick: onDefine,
|
|
21241
21298
|
type: 'primary'
|
|
21242
|
-
}, "\u786E\u5B9A"),
|
|
21299
|
+
}, "\u786E\u5B9A"), React.createElement(Button$1, {
|
|
21243
21300
|
onClick: onClose
|
|
21244
21301
|
}, "\u53D6\u6D88"))
|
|
21245
|
-
},
|
|
21302
|
+
}, React.createElement(Form$1, {
|
|
21246
21303
|
form: form,
|
|
21247
21304
|
layout: 'vertical',
|
|
21248
21305
|
onChange: onChangeForm
|
|
21249
|
-
},
|
|
21306
|
+
}, React.createElement(Form$1.Item, {
|
|
21250
21307
|
label: "\u5546\u54C1\u91D1\u989D\uFF08\u542B\u7A0E\uFF09"
|
|
21251
|
-
}, totalAmount.toFixed(2), "\uFF08\u5171 ", discountGood.length, " \u884C\uFF09"),
|
|
21308
|
+
}, totalAmount.toFixed(2), "\uFF08\u5171 ", discountGood.length, " \u884C\uFF09"), React.createElement(Form$1.Item, {
|
|
21252
21309
|
label: "\u6298\u6263\u65B9\u5F0F",
|
|
21253
21310
|
name: 'discolineType',
|
|
21254
21311
|
initialValue: '1'
|
|
21255
|
-
},
|
|
21312
|
+
}, React.createElement(Radio.Group, {
|
|
21256
21313
|
options: [{
|
|
21257
21314
|
label: '按金额折扣',
|
|
21258
21315
|
value: '1'
|
|
@@ -21260,7 +21317,7 @@ function AddDiscountRowDrawer(props) {
|
|
|
21260
21317
|
label: '按比例折扣',
|
|
21261
21318
|
value: '2'
|
|
21262
21319
|
}]
|
|
21263
|
-
})), (formValues === null || formValues === void 0 ? void 0 : formValues.discolineType) === '1' ?
|
|
21320
|
+
})), (formValues === null || formValues === void 0 ? void 0 : formValues.discolineType) === '1' ? React.createElement(Form$1.Item, {
|
|
21264
21321
|
label: "\u6298\u6263\u91D1\u989D\uFF08\u5143\uFF09\uFF08\u542B\u7A0E\uFF09",
|
|
21265
21322
|
name: 'discolineValue',
|
|
21266
21323
|
rules: [{
|
|
@@ -21311,11 +21368,11 @@ function AddDiscountRowDrawer(props) {
|
|
|
21311
21368
|
return validator;
|
|
21312
21369
|
}()
|
|
21313
21370
|
}]
|
|
21314
|
-
},
|
|
21371
|
+
}, React.createElement(InputNumber, {
|
|
21315
21372
|
style: {
|
|
21316
21373
|
width: '100%'
|
|
21317
21374
|
}
|
|
21318
|
-
})) :
|
|
21375
|
+
})) : React.createElement(Form$1.Item, {
|
|
21319
21376
|
label: "\u6298\u6263\u6BD4\u4F8B\uFF08%\uFF09\uFF08\u542B\u7A0E\uFF09",
|
|
21320
21377
|
name: 'discolineValue',
|
|
21321
21378
|
rules: [{
|
|
@@ -21366,7 +21423,7 @@ function AddDiscountRowDrawer(props) {
|
|
|
21366
21423
|
return validator;
|
|
21367
21424
|
}()
|
|
21368
21425
|
}]
|
|
21369
|
-
},
|
|
21426
|
+
}, React.createElement(InputNumber, {
|
|
21370
21427
|
style: {
|
|
21371
21428
|
width: '100%'
|
|
21372
21429
|
}
|
|
@@ -21510,16 +21567,16 @@ var useEndowCodeButton$1 = (function () {
|
|
|
21510
21567
|
}, _callee2);
|
|
21511
21568
|
})), [controller]);
|
|
21512
21569
|
var menuItem = React.useMemo(function () {
|
|
21513
|
-
if (model === 'readOnly') return
|
|
21514
|
-
return
|
|
21570
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
21571
|
+
return React.createElement(Menu$1.Item, {
|
|
21515
21572
|
key: "2",
|
|
21516
21573
|
onClick: onClick,
|
|
21517
21574
|
disabled: disabled
|
|
21518
21575
|
}, "\u6279\u91CF\u8D4B\u7801");
|
|
21519
21576
|
}, [onClick, disabled, model]);
|
|
21520
21577
|
var button = React.useMemo(function () {
|
|
21521
|
-
if (model === 'readOnly') return
|
|
21522
|
-
return
|
|
21578
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
21579
|
+
return React.createElement(Button$1, {
|
|
21523
21580
|
onClick: onClick,
|
|
21524
21581
|
disabled: disabled,
|
|
21525
21582
|
size: 'small'
|
|
@@ -21579,14 +21636,14 @@ var useEmptyRefill = (function () {
|
|
|
21579
21636
|
}());
|
|
21580
21637
|
}, [controller]);
|
|
21581
21638
|
var button = React.useMemo(function () {
|
|
21582
|
-
if (model === 'readOnly') return
|
|
21583
|
-
if (model === 'prefab') return
|
|
21584
|
-
return
|
|
21639
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
21640
|
+
if (model === 'prefab') return React.createElement(React.Fragment, null);
|
|
21641
|
+
return React.createElement(Popconfirm, {
|
|
21585
21642
|
title: "\u5C06\u8981\u6E05\u7A7A\u6240\u6709\u9879\u76EE\u4FE1\u606F\uFF0C\u662F\u5426\u7EE7\u7EED",
|
|
21586
21643
|
onConfirm: confirm,
|
|
21587
21644
|
okText: "\u786E\u5B9A",
|
|
21588
21645
|
cancelText: "\u53D6\u6D88"
|
|
21589
|
-
},
|
|
21646
|
+
}, React.createElement(Button$1, {
|
|
21590
21647
|
size: 'small'
|
|
21591
21648
|
}, "\u6E05\u7A7A\u91CD\u586B"));
|
|
21592
21649
|
}, [model, confirm]);
|
|
@@ -21653,14 +21710,14 @@ function InvoiceTypeModal(props) {
|
|
|
21653
21710
|
setValues(values);
|
|
21654
21711
|
}
|
|
21655
21712
|
}, [props.open, props.defaultBillingType, props.defaultBusiness, props.defaultInvoiceType, form]);
|
|
21656
|
-
return
|
|
21713
|
+
return React.createElement(Modal, {
|
|
21657
21714
|
title: props.modalTitle || "选择开具信息",
|
|
21658
21715
|
open: props.open,
|
|
21659
21716
|
onOk: onConfirm,
|
|
21660
21717
|
onCancel: props.onCancel,
|
|
21661
21718
|
okText: "\u786E\u5B9A",
|
|
21662
21719
|
cancelText: "\u53D6\u6D88"
|
|
21663
|
-
},
|
|
21720
|
+
}, React.createElement(Form$1, {
|
|
21664
21721
|
form: form,
|
|
21665
21722
|
layout: "vertical",
|
|
21666
21723
|
style: {
|
|
@@ -21669,13 +21726,13 @@ function InvoiceTypeModal(props) {
|
|
|
21669
21726
|
onValuesChange: function onValuesChange(_, e) {
|
|
21670
21727
|
setValues(e);
|
|
21671
21728
|
}
|
|
21672
|
-
},
|
|
21729
|
+
}, React.createElement(Row, {
|
|
21673
21730
|
gutter: [16, 16]
|
|
21674
|
-
},
|
|
21731
|
+
}, React.createElement(Col, {
|
|
21675
21732
|
span: 24
|
|
21676
|
-
},
|
|
21733
|
+
}, React.createElement(Form$1.Item, {
|
|
21677
21734
|
name: 'billingType'
|
|
21678
|
-
},
|
|
21735
|
+
}, React.createElement(Radio.Group, {
|
|
21679
21736
|
size: 'large',
|
|
21680
21737
|
className: "goods-list-digtal-reselect-invoice-typeModal-radio",
|
|
21681
21738
|
optionType: "button",
|
|
@@ -21688,27 +21745,27 @@ function InvoiceTypeModal(props) {
|
|
|
21688
21745
|
label: '税控发票',
|
|
21689
21746
|
value: 'taxation'
|
|
21690
21747
|
}]
|
|
21691
|
-
}))),
|
|
21748
|
+
}))), React.createElement(Col, {
|
|
21692
21749
|
span: 12
|
|
21693
|
-
},
|
|
21750
|
+
}, React.createElement(Form$1.Item, {
|
|
21694
21751
|
name: 'invoiceType',
|
|
21695
21752
|
label: "\u9009\u62E9\u7968\u7C7B",
|
|
21696
21753
|
rules: [{
|
|
21697
21754
|
required: true,
|
|
21698
21755
|
message: '选择票类必填'
|
|
21699
21756
|
}]
|
|
21700
|
-
},
|
|
21757
|
+
}, React.createElement(Select$1, {
|
|
21701
21758
|
size: 'large',
|
|
21702
21759
|
allowClear: true,
|
|
21703
21760
|
placeholder: "\u8BF7\u9009\u62E9\uFF08\u5FC5\u586B\u9879\uFF09",
|
|
21704
21761
|
disabled: disableds.indexOf('invoiceType') >= 0,
|
|
21705
21762
|
options: props.invoiceTypeOptions
|
|
21706
|
-
}))),
|
|
21763
|
+
}))), React.createElement(Col, {
|
|
21707
21764
|
span: 12
|
|
21708
|
-
},
|
|
21765
|
+
}, React.createElement(Form$1.Item, {
|
|
21709
21766
|
name: 'business',
|
|
21710
21767
|
label: "\u7279\u5B9A\u4E1A\u52A1"
|
|
21711
|
-
},
|
|
21768
|
+
}, React.createElement(Select$1, {
|
|
21712
21769
|
size: 'large',
|
|
21713
21770
|
allowClear: true,
|
|
21714
21771
|
placeholder: "\u8BF7\u9009\u62E9\uFF08\u975E\u5FC5\u586B\u9879\uFF09",
|
|
@@ -21753,11 +21810,11 @@ var useReselectInvoiceType = (function () {
|
|
|
21753
21810
|
return true;
|
|
21754
21811
|
}, [model, typeModalProps === null || typeModalProps === void 0 ? void 0 : typeModalProps.isDisabled]);
|
|
21755
21812
|
var button = React.useMemo(function () {
|
|
21756
|
-
if (isEnable === false) return
|
|
21757
|
-
return
|
|
21813
|
+
if (isEnable === false) return React.createElement(React.Fragment, null);
|
|
21814
|
+
return React.createElement(React.Fragment, null, React.createElement(Button$1, {
|
|
21758
21815
|
size: 'small',
|
|
21759
21816
|
onClick: onOpen
|
|
21760
|
-
}, "\u91CD\u9009\u53D1\u7968\u7C7B\u578B"),
|
|
21817
|
+
}, "\u91CD\u9009\u53D1\u7968\u7C7B\u578B"), React.createElement(InvoiceTypeModal, _objectSpread2(_objectSpread2({}, typeModalProps), {}, {
|
|
21761
21818
|
open: open,
|
|
21762
21819
|
onCancel: onClose,
|
|
21763
21820
|
onOk: onOk
|
|
@@ -21785,7 +21842,7 @@ var GoodsList$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
21785
21842
|
_createClass(GoodsList, [{
|
|
21786
21843
|
key: "render",
|
|
21787
21844
|
value: function render() {
|
|
21788
|
-
return
|
|
21845
|
+
return React.createElement(Main$3, _objectSpread2({}, this.props));
|
|
21789
21846
|
}
|
|
21790
21847
|
}]);
|
|
21791
21848
|
|
|
@@ -21986,20 +22043,20 @@ var Main$3 = decorator(Form.create())(function (props) {
|
|
|
21986
22043
|
};
|
|
21987
22044
|
}())();
|
|
21988
22045
|
}, [controller, props.isSwitchTax]);
|
|
21989
|
-
return
|
|
22046
|
+
return React.createElement("div", {
|
|
21990
22047
|
className: "kts-invoice-operate-goods-list-digtal",
|
|
21991
22048
|
onClick: function onClick(e) {
|
|
21992
22049
|
e.stopPropagation();
|
|
21993
22050
|
}
|
|
21994
|
-
},
|
|
22051
|
+
}, React.createElement("div", {
|
|
21995
22052
|
className: "kts-invoice-operate-goods-list-able"
|
|
21996
|
-
},
|
|
22053
|
+
}, React.createElement(AddRowButton$1, null), delRowButton.button, addDiscountRowButton.button, endowCodeButton.button, React.createElement(TaxIncludedSwitch$1, null), React.createElement(Search$1, null), React.createElement("div", {
|
|
21997
22054
|
style: {
|
|
21998
22055
|
flex: 1
|
|
21999
22056
|
}
|
|
22000
|
-
}), props.menuExpansion, reselectInvoiceType.button, emptyRefill.button),
|
|
22057
|
+
}), props.menuExpansion, reselectInvoiceType.button, emptyRefill.button), React.createElement("div", {
|
|
22001
22058
|
className: classNames('kts-invoice-operate-goods-list-table-digtal')
|
|
22002
|
-
},
|
|
22059
|
+
}, React.createElement(TableVirtual$1, {
|
|
22003
22060
|
size: "small",
|
|
22004
22061
|
rowKey: "$index",
|
|
22005
22062
|
pagination: false,
|
|
@@ -22021,7 +22078,7 @@ var Main$3 = decorator(Form.create())(function (props) {
|
|
|
22021
22078
|
}
|
|
22022
22079
|
};
|
|
22023
22080
|
}
|
|
22024
|
-
})),
|
|
22081
|
+
})), React.createElement("div", null, React.createElement(Statistics$1, null)));
|
|
22025
22082
|
});
|
|
22026
22083
|
|
|
22027
22084
|
var ImportBuyerDrawer = (function () {
|
|
@@ -22055,7 +22112,7 @@ var ImportBuyerDrawer = (function () {
|
|
|
22055
22112
|
};
|
|
22056
22113
|
}())();
|
|
22057
22114
|
}, [controller]);
|
|
22058
|
-
return
|
|
22115
|
+
return React.createElement(Drawer, {
|
|
22059
22116
|
title: "\u8D2D\u65B9\u5217\u8868",
|
|
22060
22117
|
placement: "right",
|
|
22061
22118
|
// closable={false}
|
|
@@ -22063,7 +22120,7 @@ var ImportBuyerDrawer = (function () {
|
|
|
22063
22120
|
width: 983,
|
|
22064
22121
|
onClose: onClose,
|
|
22065
22122
|
visible: visible
|
|
22066
|
-
}, topExpand,
|
|
22123
|
+
}, topExpand, React.createElement(DrawerBody$1, null));
|
|
22067
22124
|
});
|
|
22068
22125
|
|
|
22069
22126
|
var DrawerBody$1 = function DrawerBody() {
|
|
@@ -22084,7 +22141,7 @@ var DrawerBody$1 = function DrawerBody() {
|
|
|
22084
22141
|
}
|
|
22085
22142
|
});
|
|
22086
22143
|
}, [controller]);
|
|
22087
|
-
return
|
|
22144
|
+
return React.createElement(Table$1, {
|
|
22088
22145
|
bordered: true,
|
|
22089
22146
|
size: "small",
|
|
22090
22147
|
columns: columns,
|
|
@@ -22184,7 +22241,7 @@ var ImportGoodsDrawer = (function () {
|
|
|
22184
22241
|
};
|
|
22185
22242
|
}())();
|
|
22186
22243
|
}, [controller]);
|
|
22187
|
-
return
|
|
22244
|
+
return React.createElement(Drawer, {
|
|
22188
22245
|
title: "\u5546\u54C1\u5217\u8868",
|
|
22189
22246
|
placement: "right",
|
|
22190
22247
|
// closable={false}
|
|
@@ -22192,11 +22249,11 @@ var ImportGoodsDrawer = (function () {
|
|
|
22192
22249
|
width: 983,
|
|
22193
22250
|
onClose: onClose,
|
|
22194
22251
|
visible: visible
|
|
22195
|
-
}, topExpand &&
|
|
22252
|
+
}, topExpand && React.createElement("div", {
|
|
22196
22253
|
style: {
|
|
22197
22254
|
marginBottom: 10
|
|
22198
22255
|
}
|
|
22199
|
-
}, topExpand),
|
|
22256
|
+
}, topExpand), React.createElement(DrawerBody$2, null));
|
|
22200
22257
|
});
|
|
22201
22258
|
|
|
22202
22259
|
var DrawerBody$2 = function DrawerBody() {
|
|
@@ -22218,7 +22275,7 @@ var DrawerBody$2 = function DrawerBody() {
|
|
|
22218
22275
|
}
|
|
22219
22276
|
});
|
|
22220
22277
|
}, [controller]);
|
|
22221
|
-
return
|
|
22278
|
+
return React.createElement(Table$1, {
|
|
22222
22279
|
bordered: true,
|
|
22223
22280
|
size: "small",
|
|
22224
22281
|
columns: columns,
|
|
@@ -22510,7 +22567,7 @@ var EndowCodeDrawer = (function () {
|
|
|
22510
22567
|
setDefaultValue(undefined);
|
|
22511
22568
|
}
|
|
22512
22569
|
}, [visible]);
|
|
22513
|
-
return
|
|
22570
|
+
return React.createElement(Drawer, {
|
|
22514
22571
|
title: "\u8D4B\u7801",
|
|
22515
22572
|
placement: "right",
|
|
22516
22573
|
destroyOnClose: true,
|
|
@@ -22518,7 +22575,7 @@ var EndowCodeDrawer = (function () {
|
|
|
22518
22575
|
width: 383,
|
|
22519
22576
|
onClose: onClose,
|
|
22520
22577
|
visible: visible
|
|
22521
|
-
}, defaultValue &&
|
|
22578
|
+
}, defaultValue && React.createElement(DrawerBody$3, {
|
|
22522
22579
|
defaultValue: defaultValue
|
|
22523
22580
|
}));
|
|
22524
22581
|
});
|
|
@@ -22675,7 +22732,7 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
22675
22732
|
};
|
|
22676
22733
|
}());
|
|
22677
22734
|
}, [actions, dataSource, readOnlyTaxRate]);
|
|
22678
|
-
return
|
|
22735
|
+
return React.createElement(Select, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
22679
22736
|
showSearch: true,
|
|
22680
22737
|
showArrow: false,
|
|
22681
22738
|
notFoundContent: null,
|
|
@@ -22683,7 +22740,7 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
22683
22740
|
onSearch: onSearch,
|
|
22684
22741
|
onChange: onChange
|
|
22685
22742
|
}), dataSource.map(function (e) {
|
|
22686
|
-
return
|
|
22743
|
+
return React.createElement(Select.Option, {
|
|
22687
22744
|
key: e.value,
|
|
22688
22745
|
value: e.value
|
|
22689
22746
|
}, e.label);
|
|
@@ -22713,14 +22770,14 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
22713
22770
|
|
|
22714
22771
|
|
|
22715
22772
|
var createTreeNode = React.useCallback(function () {
|
|
22716
|
-
if (!list) return
|
|
22773
|
+
if (!list) return React.createElement(React.Fragment, null);
|
|
22717
22774
|
return ctn(list);
|
|
22718
22775
|
|
|
22719
22776
|
function title(label) {
|
|
22720
22777
|
if (!filter) return label;
|
|
22721
22778
|
label = (filter.taxCategoryCode ? label.split(new RegExp(filter.taxCategoryCode, 'g')) : [label]).join("<span style=\"color: #1890ff;\">".concat(filter.taxCategoryCode, "</span>"));
|
|
22722
22779
|
label = (filter.val ? label.split(new RegExp(filter.val, 'g')) : [label]).join("<span style=\"color: #1890ff;\">".concat(filter.val, "</span>"));
|
|
22723
|
-
return
|
|
22780
|
+
return React.createElement("span", {
|
|
22724
22781
|
dangerouslySetInnerHTML: {
|
|
22725
22782
|
__html: label
|
|
22726
22783
|
}
|
|
@@ -22729,11 +22786,11 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
22729
22786
|
|
|
22730
22787
|
function ctn(l) {
|
|
22731
22788
|
var p = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '0';
|
|
22732
|
-
if (!l || !l.length) return [
|
|
22789
|
+
if (!l || !l.length) return [React.createElement(React.Fragment, null)];
|
|
22733
22790
|
return l.filter(function (e) {
|
|
22734
22791
|
return e.pid === p;
|
|
22735
22792
|
}).map(function (e) {
|
|
22736
|
-
return
|
|
22793
|
+
return React.createElement(TreeNode, {
|
|
22737
22794
|
title: title(e.label),
|
|
22738
22795
|
key: e.id
|
|
22739
22796
|
}, ctn(l, e.id));
|
|
@@ -22863,46 +22920,46 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
22863
22920
|
setList([]);
|
|
22864
22921
|
}
|
|
22865
22922
|
}, [visible]);
|
|
22866
|
-
return
|
|
22923
|
+
return React.createElement(React.Fragment, null, React.createElement(Input, {
|
|
22867
22924
|
readOnly: true,
|
|
22868
22925
|
value: props.value,
|
|
22869
|
-
addonAfter:
|
|
22926
|
+
addonAfter: React.createElement(Button, {
|
|
22870
22927
|
size: "small",
|
|
22871
22928
|
type: "link",
|
|
22872
22929
|
onClick: function onClick() {
|
|
22873
22930
|
setVisible(true);
|
|
22874
22931
|
}
|
|
22875
22932
|
}, "\u70B9\u51FB\u9009\u62E9")
|
|
22876
|
-
}),
|
|
22933
|
+
}), React.createElement(Drawer, {
|
|
22877
22934
|
title: "\u7A0E\u6536\u5206\u7C7B\u7F16\u7801",
|
|
22878
22935
|
visible: visible,
|
|
22879
22936
|
width: 500,
|
|
22880
22937
|
onClose: function onClose() {
|
|
22881
22938
|
setVisible(false);
|
|
22882
22939
|
}
|
|
22883
|
-
},
|
|
22940
|
+
}, React.createElement(Form, {
|
|
22884
22941
|
key: "".concat(visible)
|
|
22885
|
-
},
|
|
22942
|
+
}, React.createElement(Form.Item, {
|
|
22886
22943
|
label: "\u4EA7\u54C1\u6216\u670D\u52A1\u7B80\u79F0"
|
|
22887
|
-
},
|
|
22944
|
+
}, React.createElement(Input, {
|
|
22888
22945
|
onChange: function onChange(e) {
|
|
22889
22946
|
setFilter(_objectSpread2(_objectSpread2({}, filter), {}, {
|
|
22890
22947
|
val: e.target.value
|
|
22891
22948
|
}));
|
|
22892
22949
|
}
|
|
22893
|
-
})),
|
|
22950
|
+
})), React.createElement(Form.Item, {
|
|
22894
22951
|
label: "\u7A0E\u6536\u5206\u7C7B\u7F16\u7801"
|
|
22895
|
-
},
|
|
22952
|
+
}, React.createElement(Input, {
|
|
22896
22953
|
onChange: function onChange(e) {
|
|
22897
22954
|
setFilter(_objectSpread2(_objectSpread2({}, filter), {}, {
|
|
22898
22955
|
taxCategoryCode: e.target.value
|
|
22899
22956
|
}));
|
|
22900
22957
|
}
|
|
22901
|
-
}))), list && list.length > 0 ?
|
|
22958
|
+
}))), list && list.length > 0 ? React.createElement(Tree, {
|
|
22902
22959
|
defaultExpandAll: true,
|
|
22903
22960
|
selectedKeys: [],
|
|
22904
22961
|
onSelect: onSelect
|
|
22905
|
-
}, createTreeNode()) :
|
|
22962
|
+
}, createTreeNode()) : React.createElement("span", {
|
|
22906
22963
|
style: {
|
|
22907
22964
|
color: '#00000073'
|
|
22908
22965
|
}
|
|
@@ -23119,11 +23176,11 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23119
23176
|
return data;
|
|
23120
23177
|
};
|
|
23121
23178
|
|
|
23122
|
-
return
|
|
23179
|
+
return React.createElement(React.Fragment, null, React.createElement(Input, {
|
|
23123
23180
|
readOnly: true,
|
|
23124
23181
|
onClick: onClick,
|
|
23125
23182
|
value: props.value
|
|
23126
|
-
}),
|
|
23183
|
+
}), React.createElement(TaxClassificationModal, {
|
|
23127
23184
|
list: list,
|
|
23128
23185
|
open: open,
|
|
23129
23186
|
onSelect: onSelect,
|
|
@@ -23239,14 +23296,14 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23239
23296
|
React.useEffect(function () {
|
|
23240
23297
|
if (controller.getTaxCategoryCodeList) controller.getTaxCategoryCodeList();
|
|
23241
23298
|
}, [controller]);
|
|
23242
|
-
return
|
|
23299
|
+
return React.createElement(SchemaForm, {
|
|
23243
23300
|
actions: actions,
|
|
23244
23301
|
previewPlaceholder: " ",
|
|
23245
23302
|
components: _objectSpread2(_objectSpread2({}, components), {}, {
|
|
23246
23303
|
showSearch: !!controller.state.goodsListState.endowCode.onLoadTaxClassificationCode ? ShowSearch3 : ShowSearch
|
|
23247
23304
|
}),
|
|
23248
23305
|
effects: effects
|
|
23249
|
-
},
|
|
23306
|
+
}, React.createElement(FormButtonGroup, null, React.createElement(SchemaMarkupField, {
|
|
23250
23307
|
name: "taxClassificationCode",
|
|
23251
23308
|
type: "showSearch",
|
|
23252
23309
|
title: "\u7A0E\u6536\u5206\u7C7B\u7F16\u7801",
|
|
@@ -23256,13 +23313,13 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23256
23313
|
message: '请选择税收分类编码',
|
|
23257
23314
|
required: true
|
|
23258
23315
|
}]
|
|
23259
|
-
}),
|
|
23316
|
+
}), React.createElement(SchemaMarkupField, {
|
|
23260
23317
|
name: "shorthand",
|
|
23261
23318
|
type: "string",
|
|
23262
23319
|
readOnly: true,
|
|
23263
23320
|
default: defaultValue === null || defaultValue === void 0 ? void 0 : defaultValue.shorthand,
|
|
23264
23321
|
title: "\u5546\u54C1\u548C\u670D\u52A1\u5206\u7C7B\u7B80\u79F0"
|
|
23265
|
-
}),
|
|
23322
|
+
}), React.createElement(SchemaMarkupField, {
|
|
23266
23323
|
name: "taxRate",
|
|
23267
23324
|
type: "string",
|
|
23268
23325
|
title: "\u7A0E\u7387",
|
|
@@ -23275,7 +23332,7 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23275
23332
|
message: '请选择税率',
|
|
23276
23333
|
required: true
|
|
23277
23334
|
}]
|
|
23278
|
-
}), taxRate === 0 && isTaxFreeTypeNeeded &&
|
|
23335
|
+
}), taxRate === 0 && isTaxFreeTypeNeeded && React.createElement(SchemaMarkupField, {
|
|
23279
23336
|
name: "taxFreeType",
|
|
23280
23337
|
type: "string",
|
|
23281
23338
|
title: "\u514D\u7A0E\u7C7B\u578B",
|
|
@@ -23288,7 +23345,7 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23288
23345
|
message: '请选择免税类型',
|
|
23289
23346
|
required: true
|
|
23290
23347
|
}]
|
|
23291
|
-
}),
|
|
23348
|
+
}), React.createElement(SchemaMarkupField, {
|
|
23292
23349
|
name: "favouredPolicyMark",
|
|
23293
23350
|
type: "number",
|
|
23294
23351
|
title: "\u662F\u5426\u4EAB\u53D7\u4F18\u60E0\u653F\u7B56",
|
|
@@ -23307,7 +23364,7 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23307
23364
|
message: '请选择是否享受优惠政策',
|
|
23308
23365
|
required: true
|
|
23309
23366
|
}]
|
|
23310
|
-
}), favouredPolicyMark === 1 &&
|
|
23367
|
+
}), favouredPolicyMark === 1 && React.createElement(SchemaMarkupField, {
|
|
23311
23368
|
name: "favouredPolicyName",
|
|
23312
23369
|
type: "string",
|
|
23313
23370
|
title: "\u4F18\u60E0\u653F\u7B56\u7C7B\u578B",
|
|
@@ -23320,14 +23377,14 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23320
23377
|
message: '请选择是否享受优惠政策',
|
|
23321
23378
|
required: true
|
|
23322
23379
|
}]
|
|
23323
|
-
})),
|
|
23380
|
+
})), React.createElement("span", {
|
|
23324
23381
|
className: "kts-invoice-operate-goods-endow-code-button-list"
|
|
23325
|
-
},
|
|
23382
|
+
}, React.createElement(Button, {
|
|
23326
23383
|
onClick: function onClick() {
|
|
23327
23384
|
actions.submit(onSubmit);
|
|
23328
23385
|
},
|
|
23329
23386
|
type: "primary"
|
|
23330
|
-
}, "\u786E\u5B9A"),
|
|
23387
|
+
}, "\u786E\u5B9A"), React.createElement(Button, {
|
|
23331
23388
|
onClick: function onClick() {
|
|
23332
23389
|
controller.pipeline( /*#__PURE__*/function () {
|
|
23333
23390
|
var _ref20 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee20(s) {
|
|
@@ -23487,53 +23544,53 @@ function AddComparisonDrawer() {
|
|
|
23487
23544
|
}));
|
|
23488
23545
|
}
|
|
23489
23546
|
}, [good]);
|
|
23490
|
-
return
|
|
23547
|
+
return React.createElement(Drawer$1, {
|
|
23491
23548
|
width: 500,
|
|
23492
23549
|
onClose: onClose,
|
|
23493
23550
|
placement: "right",
|
|
23494
23551
|
title: "\u5546\u54C1\u6620\u5C04",
|
|
23495
23552
|
visible: !!good,
|
|
23496
|
-
footer:
|
|
23553
|
+
footer: React.createElement("div", {
|
|
23497
23554
|
style: {
|
|
23498
23555
|
display: 'flex',
|
|
23499
23556
|
justifyContent: 'flex-end',
|
|
23500
23557
|
gap: 10
|
|
23501
23558
|
}
|
|
23502
|
-
},
|
|
23559
|
+
}, React.createElement(Button, {
|
|
23503
23560
|
type: "primary",
|
|
23504
23561
|
onClick: onSubmit
|
|
23505
|
-
}, "\u63D0\u4EA4"),
|
|
23562
|
+
}, "\u63D0\u4EA4"), React.createElement(Button, {
|
|
23506
23563
|
onClick: onClose
|
|
23507
23564
|
}, "\u53D6\u6D88"))
|
|
23508
|
-
}, !!good &&
|
|
23565
|
+
}, !!good && React.createElement(Form$1, {
|
|
23509
23566
|
layout: "vertical",
|
|
23510
23567
|
style: {
|
|
23511
23568
|
flex: 1
|
|
23512
23569
|
},
|
|
23513
23570
|
form: form
|
|
23514
|
-
},
|
|
23571
|
+
}, React.createElement(Row$1, {
|
|
23515
23572
|
gutter: [8, 8]
|
|
23516
|
-
},
|
|
23573
|
+
}, React.createElement(Col$1, {
|
|
23517
23574
|
span: 12
|
|
23518
|
-
},
|
|
23575
|
+
}, React.createElement(Form$1.Item, {
|
|
23519
23576
|
name: "itemNameSelf",
|
|
23520
23577
|
label: "\u6211\u65B9\u5546\u54C1\u540D\u79F0"
|
|
23521
|
-
},
|
|
23578
|
+
}, React.createElement(Input, null))), React.createElement(Col$1, {
|
|
23522
23579
|
span: 12
|
|
23523
|
-
},
|
|
23580
|
+
}, React.createElement(Form$1.Item, {
|
|
23524
23581
|
name: "itemName",
|
|
23525
23582
|
label: "\u5BF9\u65B9\u5546\u54C1\u540D\u79F0"
|
|
23526
|
-
},
|
|
23583
|
+
}, React.createElement(Input, null))), React.createElement(Col$1, {
|
|
23527
23584
|
span: 12
|
|
23528
|
-
},
|
|
23585
|
+
}, React.createElement(Form$1.Item, {
|
|
23529
23586
|
name: 'itemModelNameSelf',
|
|
23530
23587
|
label: "\u6211\u65B9\u89C4\u683C\u578B\u53F7"
|
|
23531
|
-
},
|
|
23588
|
+
}, React.createElement(Input, null))), React.createElement(Col$1, {
|
|
23532
23589
|
span: 12
|
|
23533
|
-
},
|
|
23590
|
+
}, React.createElement(Form$1.Item, {
|
|
23534
23591
|
name: "itemModelName",
|
|
23535
23592
|
label: "\u5BF9\u65B9\u89C4\u683C\u578B\u53F7"
|
|
23536
|
-
},
|
|
23593
|
+
}, React.createElement(Input, null))))));
|
|
23537
23594
|
} // function validateFields(form: WrappedFormUtils<any>) {
|
|
23538
23595
|
// return new Promise<{ err: any, values: any }>(resolve => {
|
|
23539
23596
|
// form.validateFields((err, values) => {
|
|
@@ -23544,7 +23601,7 @@ function AddComparisonDrawer() {
|
|
|
23544
23601
|
|
|
23545
23602
|
/** 发票组件的上下文 */
|
|
23546
23603
|
|
|
23547
|
-
var InvoiceContext =
|
|
23604
|
+
var InvoiceContext = React.createContext(undefined);
|
|
23548
23605
|
|
|
23549
23606
|
var Invoice = /*#__PURE__*/function (_React$PureComponent) {
|
|
23550
23607
|
_inherits(Invoice, _React$PureComponent);
|
|
@@ -23587,9 +23644,9 @@ var Invoice = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
23587
23644
|
/** 获取控制器钩子 */
|
|
23588
23645
|
function render() {
|
|
23589
23646
|
if (this.props.invoiceType === 'digtal') {
|
|
23590
|
-
return
|
|
23647
|
+
return React.createElement(Digtal, _objectSpread2({}, this.props));
|
|
23591
23648
|
} else {
|
|
23592
|
-
return
|
|
23649
|
+
return React.createElement(Main$4, _objectSpread2({}, this.props));
|
|
23593
23650
|
}
|
|
23594
23651
|
}
|
|
23595
23652
|
}]);
|
|
@@ -23630,10 +23687,10 @@ var Main$4 = function Main(props) {
|
|
|
23630
23687
|
React.useEffect(function () {
|
|
23631
23688
|
setKey(key + 1);
|
|
23632
23689
|
}, [controller]);
|
|
23633
|
-
return
|
|
23690
|
+
return React.createElement(InvoiceContext.Provider, {
|
|
23634
23691
|
key: key,
|
|
23635
23692
|
value: controller
|
|
23636
|
-
},
|
|
23693
|
+
}, React.createElement("div", {
|
|
23637
23694
|
className: "kts-invoice-operate",
|
|
23638
23695
|
ref: controller.pipeline( /*#__PURE__*/function () {
|
|
23639
23696
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(s, e) {
|
|
@@ -23655,17 +23712,17 @@ var Main$4 = function Main(props) {
|
|
|
23655
23712
|
return _ref.apply(this, arguments);
|
|
23656
23713
|
};
|
|
23657
23714
|
}())
|
|
23658
|
-
}, props.invoiceHeader ||
|
|
23715
|
+
}, props.invoiceHeader || React.createElement(InvoiceHeader, null)
|
|
23659
23716
|
/** 发票头 */
|
|
23660
|
-
, props.buyer ||
|
|
23717
|
+
, props.buyer || React.createElement(Buyer$1, null)
|
|
23661
23718
|
/** 购买方 */
|
|
23662
|
-
, props.goodsList ||
|
|
23719
|
+
, props.goodsList || React.createElement(GoodsList, null)
|
|
23663
23720
|
/** 货物列表 */
|
|
23664
|
-
, props.seller ||
|
|
23721
|
+
, props.seller || React.createElement(Buyer, null)
|
|
23665
23722
|
/** 销售方 */
|
|
23666
|
-
, props.sign ||
|
|
23723
|
+
, props.sign || React.createElement(Sign, null)
|
|
23667
23724
|
/** 落款 */
|
|
23668
|
-
, props.footExpand),
|
|
23725
|
+
, props.footExpand), React.createElement(ImportBuyerDrawer, null), React.createElement(ImportGoodsDrawer, null), React.createElement(EndowCodeDrawer, null), React.createElement(AddComparisonDrawer, null));
|
|
23669
23726
|
};
|
|
23670
23727
|
/** 数电 */
|
|
23671
23728
|
|
|
@@ -23684,10 +23741,10 @@ var Digtal = function Digtal(props) {
|
|
|
23684
23741
|
React.useEffect(function () {
|
|
23685
23742
|
setKey(key + 1);
|
|
23686
23743
|
}, [controller]);
|
|
23687
|
-
return
|
|
23744
|
+
return React.createElement(InvoiceContext.Provider, {
|
|
23688
23745
|
key: key,
|
|
23689
23746
|
value: controller
|
|
23690
|
-
},
|
|
23747
|
+
}, React.createElement("div", {
|
|
23691
23748
|
className: "kts-invoice-operate-digtal",
|
|
23692
23749
|
ref: controller.pipeline( /*#__PURE__*/function () {
|
|
23693
23750
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(s, e) {
|
|
@@ -23709,17 +23766,17 @@ var Digtal = function Digtal(props) {
|
|
|
23709
23766
|
return _ref2.apply(this, arguments);
|
|
23710
23767
|
};
|
|
23711
23768
|
}())
|
|
23712
|
-
}, props.invoiceHeader ||
|
|
23769
|
+
}, props.invoiceHeader || React.createElement(InvoiceHeaderDigtal, null)
|
|
23713
23770
|
/** 发票头 */
|
|
23714
|
-
,
|
|
23771
|
+
, React.createElement("div", {
|
|
23715
23772
|
className: 'kts-invoice-operate-digtal-cont'
|
|
23716
|
-
}, props.stakeholder ||
|
|
23773
|
+
}, props.stakeholder || React.createElement(Stakeholder$1, null)
|
|
23717
23774
|
/** 干系人 */
|
|
23718
|
-
, props.goodsList ||
|
|
23775
|
+
, props.goodsList || React.createElement(GoodsList$1
|
|
23719
23776
|
/** 货物列表 */
|
|
23720
|
-
, null)), props.sign ||
|
|
23777
|
+
, null)), props.sign || React.createElement(SignDigtal, null)
|
|
23721
23778
|
/** 落款 */
|
|
23722
|
-
),
|
|
23779
|
+
), React.createElement(ImportGoodsDrawer, null), React.createElement(EndowCodeDrawer, null));
|
|
23723
23780
|
};
|
|
23724
23781
|
|
|
23725
23782
|
function TaxClassificationModal(props) {
|
|
@@ -23760,26 +23817,26 @@ function TaxClassificationModal(props) {
|
|
|
23760
23817
|
}, 500);
|
|
23761
23818
|
}
|
|
23762
23819
|
}, [form, props.open]);
|
|
23763
|
-
return
|
|
23820
|
+
return React.createElement(Drawer$1, {
|
|
23764
23821
|
title: "\u5546\u54C1\u548C\u670D\u52A1\u7A0E\u6536\u5206\u7C7B\u7F16\u7801",
|
|
23765
23822
|
placement: "right",
|
|
23766
23823
|
open: props.open,
|
|
23767
23824
|
width: 503,
|
|
23768
23825
|
onClose: props.onCancel
|
|
23769
|
-
},
|
|
23826
|
+
}, React.createElement(Form$1, {
|
|
23770
23827
|
form: form
|
|
23771
|
-
},
|
|
23828
|
+
}, React.createElement(Form$1.Item, {
|
|
23772
23829
|
name: 'search'
|
|
23773
|
-
},
|
|
23830
|
+
}, React.createElement(Input$1, {
|
|
23774
23831
|
placeholder: "\u8BF7\u8F93\u5165\u7A0E\u6536\u5206\u7C7B\u7F16\u7801\u3001\u7A0E\u6536\u5206\u7C7B\u540D\u79F0\u8FDB\u884C\u68C0\u7D22",
|
|
23775
23832
|
onChange: searchTax
|
|
23776
|
-
})),
|
|
23833
|
+
})), React.createElement(Form$1.Item, {
|
|
23777
23834
|
name: 'tree'
|
|
23778
|
-
},
|
|
23835
|
+
}, React.createElement(Tree$1, {
|
|
23779
23836
|
onSelect: props.onSelect,
|
|
23780
23837
|
loadData: props.onLoad,
|
|
23781
23838
|
treeData: props.list,
|
|
23782
|
-
switcherIcon:
|
|
23839
|
+
switcherIcon: React.createElement(Icon$1, {
|
|
23783
23840
|
type: "down"
|
|
23784
23841
|
})
|
|
23785
23842
|
}))));
|