kts-component-invoice-operate 3.2.92 → 3.2.94
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 +567 -567
- package/dist/index.js +567 -567
- 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 +470 -470
- 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 +17 -17
- 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 -85
- 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 +165 -165
- package/src/Invoice/InvoiceController/fns/mergeDiscount.ts +28 -28
- 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 -1155
- 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 -1078
- 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 +66 -66
- 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 +686 -686
- 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 +75 -75
- 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 +648 -648
- 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 +50 -50
- 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
|
@@ -1633,6 +1633,7 @@ var addGoodDiscountV2 = /*#__PURE__*/(function () {
|
|
|
1633
1633
|
taxRate: good.taxRate,
|
|
1634
1634
|
itemName: good.itemName,
|
|
1635
1635
|
shorthand: good.shorthand,
|
|
1636
|
+
taxClassificationCode: good.taxClassificationCode,
|
|
1636
1637
|
taxAmount: -1 * taxAmount,
|
|
1637
1638
|
lineAmountExcludeTax: -1 * lineAmountExcludeTax,
|
|
1638
1639
|
lineAmountIncludeTax: -1 * e.discolineAmountunt,
|
|
@@ -2271,6 +2272,7 @@ function _mergeDiscount() {
|
|
|
2271
2272
|
zk = goodsList[i + 1];
|
|
2272
2273
|
sum.lineAmountExcludeTax = chain$1(bignumber(good.lineAmountExcludeTax)).subtract(bignumber(Math.abs(zk.lineAmountExcludeTax || 0))).done().toNumber();
|
|
2273
2274
|
sum.lineAmountIncludeTax = chain$1(bignumber(good.lineAmountIncludeTax)).subtract(bignumber(Math.abs(zk.lineAmountIncludeTax || 0))).done().toNumber();
|
|
2275
|
+
sum.taxAmount = chain$1(bignumber(sum.lineAmountIncludeTax)).subtract(bignumber(sum.lineAmountExcludeTax)).done().toNumber();
|
|
2274
2276
|
sum.quantity = good.quantity;
|
|
2275
2277
|
|
|
2276
2278
|
if (sum.quantity) {
|
|
@@ -9462,7 +9464,7 @@ var InvoiceHeader = decorator(Form.create())(function (props) {
|
|
|
9462
9464
|
render: function render(form) {
|
|
9463
9465
|
return form.getFieldDecorator('code', {
|
|
9464
9466
|
initialValue: props.defaultCode
|
|
9465
|
-
})(
|
|
9467
|
+
})(React.createElement(FormSpanString, null));
|
|
9466
9468
|
}
|
|
9467
9469
|
});
|
|
9468
9470
|
}
|
|
@@ -9475,7 +9477,7 @@ var InvoiceHeader = decorator(Form.create())(function (props) {
|
|
|
9475
9477
|
render: function render(form) {
|
|
9476
9478
|
return form.getFieldDecorator('no', {
|
|
9477
9479
|
initialValue: props.defaultNo
|
|
9478
|
-
})(
|
|
9480
|
+
})(React.createElement(FormSpanString, null));
|
|
9479
9481
|
}
|
|
9480
9482
|
});
|
|
9481
9483
|
}
|
|
@@ -9486,7 +9488,7 @@ var InvoiceHeader = decorator(Form.create())(function (props) {
|
|
|
9486
9488
|
render: function render(form) {
|
|
9487
9489
|
return form.getFieldDecorator('invoicingDate', {
|
|
9488
9490
|
initialValue: props.defaultInvoicingDate
|
|
9489
|
-
})(
|
|
9491
|
+
})(React.createElement(FormSpanString, null));
|
|
9490
9492
|
}
|
|
9491
9493
|
});
|
|
9492
9494
|
}
|
|
@@ -9497,7 +9499,7 @@ var InvoiceHeader = decorator(Form.create())(function (props) {
|
|
|
9497
9499
|
render: function render(form) {
|
|
9498
9500
|
return form.getFieldDecorator('defaultValidationCode', {
|
|
9499
9501
|
initialValue: props.defaultValidationCode
|
|
9500
|
-
})(
|
|
9502
|
+
})(React.createElement(FormSpanString, null));
|
|
9501
9503
|
}
|
|
9502
9504
|
});
|
|
9503
9505
|
}
|
|
@@ -9517,21 +9519,21 @@ var InvoiceHeader = decorator(Form.create())(function (props) {
|
|
|
9517
9519
|
React.useEffect(function () {
|
|
9518
9520
|
setTypeIndex(props.typeOptionIndex || 0);
|
|
9519
9521
|
}, [props.typeOption]);
|
|
9520
|
-
return
|
|
9522
|
+
return React.createElement("div", {
|
|
9521
9523
|
className: "kts-invoice-operate-invoice-header"
|
|
9522
|
-
},
|
|
9524
|
+
}, React.createElement("div", {
|
|
9523
9525
|
className: "invoice-header-title"
|
|
9524
|
-
}, title),
|
|
9526
|
+
}, title), React.createElement("div", {
|
|
9525
9527
|
className: "invoice-header-no"
|
|
9526
|
-
}, isInvoiceNo ?
|
|
9528
|
+
}, isInvoiceNo ? React.createElement("div", null, React.createElement("label", null, "\u53D1\u7968\u5355\u636E\u7F16\u53F7 :"), getFieldDecorator('id', {
|
|
9527
9529
|
initialValue: props.defaultId
|
|
9528
|
-
})(
|
|
9530
|
+
})(React.createElement(Input, {
|
|
9529
9531
|
disabled: readOnlyInvoiceNo,
|
|
9530
9532
|
style: {
|
|
9531
9533
|
width: 230
|
|
9532
9534
|
},
|
|
9533
9535
|
size: "small",
|
|
9534
|
-
suffix: controller.updateInvoiceNo &&
|
|
9536
|
+
suffix: controller.updateInvoiceNo && React.createElement(Icon$1, {
|
|
9535
9537
|
style: {
|
|
9536
9538
|
cursor: 'pointer'
|
|
9537
9539
|
},
|
|
@@ -9575,15 +9577,15 @@ var InvoiceHeader = decorator(Form.create())(function (props) {
|
|
|
9575
9577
|
return onClick;
|
|
9576
9578
|
}()
|
|
9577
9579
|
})
|
|
9578
|
-
}))) :
|
|
9580
|
+
}))) : React.createElement("div", {
|
|
9579
9581
|
style: {
|
|
9580
9582
|
height: 20
|
|
9581
9583
|
}
|
|
9582
|
-
}), tag &&
|
|
9584
|
+
}), tag && React.createElement(Tag$1, null, tag), React.createElement("div", {
|
|
9583
9585
|
className: "invoice-header-type"
|
|
9584
9586
|
}, props.typeOption ? getFieldDecorator('type', {
|
|
9585
9587
|
initialValue: typeIndex
|
|
9586
|
-
})(
|
|
9588
|
+
})(React.createElement(Select, {
|
|
9587
9589
|
size: "small",
|
|
9588
9590
|
style: {
|
|
9589
9591
|
width: 230
|
|
@@ -9592,20 +9594,20 @@ var InvoiceHeader = decorator(Form.create())(function (props) {
|
|
|
9592
9594
|
setTypeIndex(e);
|
|
9593
9595
|
}
|
|
9594
9596
|
}, props.typeOption.map(function (e, i) {
|
|
9595
|
-
return
|
|
9597
|
+
return React.createElement(Select.Option, {
|
|
9596
9598
|
key: i,
|
|
9597
9599
|
value: i
|
|
9598
9600
|
}, e.title);
|
|
9599
|
-
}))) : props.renderExpand && props.renderExpand(props.form))), props.typeOption &&
|
|
9601
|
+
}))) : props.renderExpand && props.renderExpand(props.form))), props.typeOption && React.createElement("div", {
|
|
9600
9602
|
style: {
|
|
9601
9603
|
marginTop: 10
|
|
9602
9604
|
}
|
|
9603
|
-
}, props.renderExpand && props.renderExpand(props.form)),
|
|
9605
|
+
}, props.renderExpand && props.renderExpand(props.form)), React.createElement("div", {
|
|
9604
9606
|
className: "invoice-header-property"
|
|
9605
|
-
}, _toConsumableArray(props.fieldExpand || []).map(function (e) {}),
|
|
9607
|
+
}, _toConsumableArray(props.fieldExpand || []).map(function (e) {}), React.createElement("ul", {
|
|
9606
9608
|
className: 'invoice-header-property-fieldExpand'
|
|
9607
9609
|
}, fieldExpand.map(function (e) {
|
|
9608
|
-
return
|
|
9610
|
+
return React.createElement("li", null, React.createElement("label", null, e.label), e.render(form));
|
|
9609
9611
|
}))));
|
|
9610
9612
|
});
|
|
9611
9613
|
|
|
@@ -9624,7 +9626,7 @@ var FormSpanString = /*#__PURE__*/function (_React$Component) {
|
|
|
9624
9626
|
key: "render",
|
|
9625
9627
|
value: function render() {
|
|
9626
9628
|
// return <span>{this.props.value}</span>;
|
|
9627
|
-
return
|
|
9629
|
+
return React.createElement(Input, {
|
|
9628
9630
|
size: "small",
|
|
9629
9631
|
disabled: true,
|
|
9630
9632
|
value: this.props.value
|
|
@@ -9735,12 +9737,12 @@ function TableVirtual (props) {
|
|
|
9735
9737
|
if (!cont) return;
|
|
9736
9738
|
cont.scrollTop = 0;
|
|
9737
9739
|
}, [(_props$dataSource2 = props.dataSource) === null || _props$dataSource2 === void 0 ? void 0 : _props$dataSource2.length]);
|
|
9738
|
-
return
|
|
9740
|
+
return React.createElement("span", {
|
|
9739
9741
|
className: "kts-invoice-operate-goods-table-virtual",
|
|
9740
9742
|
ref: function ref(e) {
|
|
9741
9743
|
setSelf(e);
|
|
9742
9744
|
}
|
|
9743
|
-
},
|
|
9745
|
+
}, React.createElement(TableManual, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
9744
9746
|
dataSource: dataSource,
|
|
9745
9747
|
// 新版本Table会有输入框无法连续输入的问题,先兼容老版本
|
|
9746
9748
|
tableComponent: Table
|
|
@@ -9832,59 +9834,59 @@ var Statistics = (function () {
|
|
|
9832
9834
|
});
|
|
9833
9835
|
return sum.done().toNumber();
|
|
9834
9836
|
}, []);
|
|
9835
|
-
return
|
|
9837
|
+
return React.createElement("div", {
|
|
9836
9838
|
className: "kts-invoice-operate-goods-list-statistics"
|
|
9837
|
-
},
|
|
9839
|
+
}, React.createElement("div", {
|
|
9838
9840
|
className: "kts-invoice-operate-goods-list-statistics-row"
|
|
9839
|
-
},
|
|
9841
|
+
}, React.createElement("div", {
|
|
9840
9842
|
style: {
|
|
9841
9843
|
width: 45.92
|
|
9842
9844
|
}
|
|
9843
|
-
}),
|
|
9845
|
+
}), React.createElement("div", {
|
|
9844
9846
|
style: {
|
|
9845
9847
|
flex: 1
|
|
9846
9848
|
}
|
|
9847
|
-
},
|
|
9849
|
+
}, React.createElement("label", null, "\u5408\u8BA1")), React.createElement("div", {
|
|
9848
9850
|
style: {
|
|
9849
9851
|
width: 119,
|
|
9850
9852
|
textAlign: 'right',
|
|
9851
9853
|
border: 'none'
|
|
9852
9854
|
}
|
|
9853
|
-
},
|
|
9855
|
+
}, React.createElement("label", null, parseFloat(isTaxIncluded ? lineAmountIncludeTax : lineAmountExcludeTax).toFixed(2))), React.createElement("div", {
|
|
9854
9856
|
style: {
|
|
9855
9857
|
width: 70,
|
|
9856
9858
|
border: 'none'
|
|
9857
9859
|
}
|
|
9858
|
-
}),
|
|
9860
|
+
}), React.createElement("div", {
|
|
9859
9861
|
style: {
|
|
9860
9862
|
width: 119,
|
|
9861
9863
|
textAlign: 'right',
|
|
9862
9864
|
border: 'none'
|
|
9863
9865
|
}
|
|
9864
|
-
},
|
|
9866
|
+
}, React.createElement("label", null, parseFloat(taxAmount).toFixed(2))), React.createElement("div", {
|
|
9865
9867
|
style: {
|
|
9866
9868
|
width: 111,
|
|
9867
9869
|
border: 'none'
|
|
9868
9870
|
}
|
|
9869
|
-
})),
|
|
9871
|
+
})), React.createElement("div", {
|
|
9870
9872
|
className: "kts-invoice-operate-goods-list-statistics-row"
|
|
9871
|
-
},
|
|
9873
|
+
}, React.createElement("div", {
|
|
9872
9874
|
style: {
|
|
9873
9875
|
width: 45.92
|
|
9874
9876
|
}
|
|
9875
|
-
}),
|
|
9877
|
+
}), React.createElement("div", {
|
|
9876
9878
|
style: {
|
|
9877
9879
|
flex: 5,
|
|
9878
9880
|
border: 'none'
|
|
9879
9881
|
}
|
|
9880
|
-
},
|
|
9882
|
+
}, React.createElement("label", null, "\u4EF7\u7A0E\u5408\u8BA1\uFF08\u5927\u5199\uFF09"), React.createElement("label", null, nzhcn.toMoney(lineAmountIncludeTax, {
|
|
9881
9883
|
outSymbol: false
|
|
9882
|
-
}))),
|
|
9884
|
+
}))), React.createElement("div", {
|
|
9883
9885
|
style: {
|
|
9884
9886
|
flex: 5,
|
|
9885
9887
|
border: 'none'
|
|
9886
9888
|
}
|
|
9887
|
-
},
|
|
9889
|
+
}, React.createElement("label", null, "\uFF08\u5C0F\u5199\uFF09 ", parseFloat(lineAmountIncludeTax).toFixed(2)))));
|
|
9888
9890
|
});
|
|
9889
9891
|
|
|
9890
9892
|
var AddRowButton = (function () {
|
|
@@ -9939,10 +9941,10 @@ var AddRowButton = (function () {
|
|
|
9939
9941
|
}
|
|
9940
9942
|
}, _callee);
|
|
9941
9943
|
})), [controller, rootElement]);
|
|
9942
|
-
if (isAddRow === false) return
|
|
9943
|
-
if (model === 'prefab') return
|
|
9944
|
-
if (model === 'readOnly') return
|
|
9945
|
-
return
|
|
9944
|
+
if (isAddRow === false) return React.createElement(React.Fragment, null);
|
|
9945
|
+
if (model === 'prefab') return React.createElement(React.Fragment, null);
|
|
9946
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
9947
|
+
return React.createElement(Button, {
|
|
9946
9948
|
onClick: onClick,
|
|
9947
9949
|
disabled: disabled
|
|
9948
9950
|
}, "\u6DFB\u52A0\u884C");
|
|
@@ -10093,11 +10095,11 @@ var TaxIncludedSwitch = (function () {
|
|
|
10093
10095
|
};
|
|
10094
10096
|
}())();
|
|
10095
10097
|
}, []);
|
|
10096
|
-
return
|
|
10098
|
+
return React.createElement("span", null, React.createElement("label", {
|
|
10097
10099
|
style: {
|
|
10098
10100
|
marginRight: 2
|
|
10099
10101
|
}
|
|
10100
|
-
}, "\u542B\u7A0E:"),
|
|
10102
|
+
}, "\u542B\u7A0E:"), React.createElement(Switch, {
|
|
10101
10103
|
disabled: isSwitchTax === false,
|
|
10102
10104
|
checked: isTaxIncluded,
|
|
10103
10105
|
defaultChecked: true,
|
|
@@ -10135,19 +10137,19 @@ var DescribeSwitch = (function () {
|
|
|
10135
10137
|
};
|
|
10136
10138
|
}());
|
|
10137
10139
|
}, []);
|
|
10138
|
-
if (!productComparison.onComply) return
|
|
10139
|
-
return
|
|
10140
|
+
if (!productComparison.onComply) return React.createElement(React.Fragment, null);
|
|
10141
|
+
return React.createElement("span", null, React.createElement("label", {
|
|
10140
10142
|
style: {
|
|
10141
10143
|
marginRight: 2
|
|
10142
10144
|
}
|
|
10143
|
-
},
|
|
10145
|
+
}, React.createElement(Tooltip, {
|
|
10144
10146
|
title: "\u84DD\u8272\u4EE3\u8868\u6211\u65B9\u5546\u54C1\u63CF\u8FF0\uFF0C\u9ED1\u8272\u4EE3\u8868\u5BF9\u65B9\u7684\u5546\u54C1\u63CF\u8FF0\u3002"
|
|
10145
|
-
},
|
|
10147
|
+
}, React.createElement(Icon$1, {
|
|
10146
10148
|
style: {
|
|
10147
10149
|
marginRight: 3
|
|
10148
10150
|
},
|
|
10149
10151
|
type: "info-circle"
|
|
10150
|
-
})), "\u4F7F\u7528\u54EA\u65B9\u5546\u54C1\u63CF\u8FF0:"),
|
|
10152
|
+
})), "\u4F7F\u7528\u54EA\u65B9\u5546\u54C1\u63CF\u8FF0:"), React.createElement(Switch$1, {
|
|
10151
10153
|
checked: isMyShow,
|
|
10152
10154
|
checkedChildren: "\u6211\u65B9",
|
|
10153
10155
|
unCheckedChildren: "\u5BF9\u65B9",
|
|
@@ -10247,13 +10249,13 @@ function Search() {
|
|
|
10247
10249
|
};
|
|
10248
10250
|
}());
|
|
10249
10251
|
}, [value, controller]);
|
|
10250
|
-
return
|
|
10252
|
+
return React.createElement(Input, {
|
|
10251
10253
|
size: "small",
|
|
10252
10254
|
readOnly: readOnly,
|
|
10253
10255
|
value: value,
|
|
10254
10256
|
className: "kts-invoice-operate-goods-list-search",
|
|
10255
10257
|
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"),
|
|
10256
|
-
prefix:
|
|
10258
|
+
prefix: React.createElement(Icon$1, {
|
|
10257
10259
|
component: SvgMagnifier,
|
|
10258
10260
|
style: {
|
|
10259
10261
|
color: "#b8b8b8"
|
|
@@ -10305,13 +10307,13 @@ function TableRow(props) {
|
|
|
10305
10307
|
return undefined;
|
|
10306
10308
|
}
|
|
10307
10309
|
}, [good, goodsMap]);
|
|
10308
|
-
return rowKey === current && current ?
|
|
10310
|
+
return rowKey === current && current ? React.createElement("tr", {
|
|
10309
10311
|
style: {
|
|
10310
10312
|
height: 32.67,
|
|
10311
10313
|
borderBottom: '1px solid #E6E6E6',
|
|
10312
10314
|
position: 'relative'
|
|
10313
10315
|
}
|
|
10314
|
-
},
|
|
10316
|
+
}, React.createElement("div", {
|
|
10315
10317
|
style: {
|
|
10316
10318
|
height: 1,
|
|
10317
10319
|
width: '100%',
|
|
@@ -10319,7 +10321,7 @@ function TableRow(props) {
|
|
|
10319
10321
|
position: 'absolute',
|
|
10320
10322
|
bottom: 0
|
|
10321
10323
|
}
|
|
10322
|
-
})) :
|
|
10324
|
+
})) : React.createElement("tr", _objectSpread2(_objectSpread2({}, props), {}, {
|
|
10323
10325
|
className: classNames(props.className, discount, rowKey === container && current ? 'kts-invoice-operate-goods-list-itemName-drag-container-' + site : undefined)
|
|
10324
10326
|
}));
|
|
10325
10327
|
}
|
|
@@ -10727,7 +10729,7 @@ var RowMenu = (function (props) {
|
|
|
10727
10729
|
// addComparison && arr.push(addComparison); // 添加商品对照
|
|
10728
10730
|
|
|
10729
10731
|
if (!goodsMenuExpand || goodsMenuExpand.length === 0) return arr;
|
|
10730
|
-
arr.unshift(
|
|
10732
|
+
arr.unshift(React.createElement(Menu.Divider, {
|
|
10731
10733
|
key: "divider-1"
|
|
10732
10734
|
}));
|
|
10733
10735
|
|
|
@@ -10743,17 +10745,17 @@ var RowMenu = (function (props) {
|
|
|
10743
10745
|
return undefined;
|
|
10744
10746
|
}
|
|
10745
10747
|
|
|
10746
|
-
return
|
|
10747
|
-
return
|
|
10748
|
+
return React.createElement(Menu, null, itemList.slice(2).map(function (e) {
|
|
10749
|
+
return React.createElement(Menu.Item, {
|
|
10748
10750
|
key: e.key,
|
|
10749
10751
|
onClick: e.onClick
|
|
10750
|
-
},
|
|
10752
|
+
}, React.createElement(Text$1, {
|
|
10751
10753
|
strong: true
|
|
10752
10754
|
}, e.title));
|
|
10753
10755
|
}));
|
|
10754
10756
|
}, [itemList]);
|
|
10755
10757
|
var buttonList = React.useMemo(function () {
|
|
10756
|
-
return
|
|
10758
|
+
return React.createElement("div", {
|
|
10757
10759
|
style: {
|
|
10758
10760
|
flex: 1,
|
|
10759
10761
|
textAlign: 'left',
|
|
@@ -10761,7 +10763,7 @@ var RowMenu = (function (props) {
|
|
|
10761
10763
|
gap: 10
|
|
10762
10764
|
}
|
|
10763
10765
|
}, itemList.slice(0, 2).map(function (e) {
|
|
10764
|
-
return
|
|
10766
|
+
return React.createElement(Button, {
|
|
10765
10767
|
key: e.key,
|
|
10766
10768
|
type: 'link',
|
|
10767
10769
|
onClick: e.onClick,
|
|
@@ -10773,21 +10775,21 @@ var RowMenu = (function (props) {
|
|
|
10773
10775
|
}, [itemList]);
|
|
10774
10776
|
|
|
10775
10777
|
if (itemList.length === 0) {
|
|
10776
|
-
return
|
|
10778
|
+
return React.createElement(React.Fragment, null);
|
|
10777
10779
|
}
|
|
10778
10780
|
|
|
10779
|
-
return
|
|
10781
|
+
return React.createElement("span", {
|
|
10780
10782
|
style: {
|
|
10781
10783
|
padding: '0 0 0 10px',
|
|
10782
10784
|
display: 'flex'
|
|
10783
10785
|
}
|
|
10784
|
-
}, buttonList, overlay &&
|
|
10786
|
+
}, buttonList, overlay && React.createElement(Dropdown, {
|
|
10785
10787
|
overlay: overlay,
|
|
10786
10788
|
trigger: ['click']
|
|
10787
|
-
},
|
|
10789
|
+
}, React.createElement(Button, {
|
|
10788
10790
|
className: "kts-invoice-operate-goods-list-columns-row-menu ant-btn-icon-only",
|
|
10789
10791
|
type: "link"
|
|
10790
|
-
},
|
|
10792
|
+
}, React.createElement(Icon$1, {
|
|
10791
10793
|
component: SvgSpot
|
|
10792
10794
|
}))));
|
|
10793
10795
|
});
|
|
@@ -10801,9 +10803,9 @@ var TitleText = (function (props) {
|
|
|
10801
10803
|
return !!e.required;
|
|
10802
10804
|
})) || props.required;
|
|
10803
10805
|
}, [rules, props.required]);
|
|
10804
|
-
return
|
|
10806
|
+
return React.createElement(React.Fragment, null, required ? React.createElement(Text$2, {
|
|
10805
10807
|
type: "danger"
|
|
10806
|
-
}, "*") :
|
|
10808
|
+
}, "*") : React.createElement(React.Fragment, null), children);
|
|
10807
10809
|
});
|
|
10808
10810
|
|
|
10809
10811
|
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";
|
|
@@ -10910,14 +10912,14 @@ function ItemNameInput(props) {
|
|
|
10910
10912
|
return _ref2.apply(this, arguments);
|
|
10911
10913
|
};
|
|
10912
10914
|
}(), [options, controller]);
|
|
10913
|
-
return
|
|
10915
|
+
return React.createElement("div", {
|
|
10914
10916
|
className: 'kts-invoice-operate-goods-list-itemName-input'
|
|
10915
|
-
}, props.shorthand &&
|
|
10917
|
+
}, props.shorthand && React.createElement("span", {
|
|
10916
10918
|
style: {
|
|
10917
10919
|
alignSelf: 'center',
|
|
10918
10920
|
fontSize: 12
|
|
10919
10921
|
}
|
|
10920
|
-
}, "*", props.shorthand, "*"),
|
|
10922
|
+
}, "*", props.shorthand, "*"), React.createElement(AutoComplete$1, {
|
|
10921
10923
|
onSearch: onSearch,
|
|
10922
10924
|
value: props.value,
|
|
10923
10925
|
options: options.map(function (e) {
|
|
@@ -10926,7 +10928,7 @@ function ItemNameInput(props) {
|
|
|
10926
10928
|
};
|
|
10927
10929
|
}),
|
|
10928
10930
|
onSelect: onChangeAutoComplete
|
|
10929
|
-
},
|
|
10931
|
+
}, React.createElement(Input, {
|
|
10930
10932
|
style: {
|
|
10931
10933
|
height: '100%',
|
|
10932
10934
|
border: 'none'
|
|
@@ -11048,9 +11050,9 @@ function ItemCodeInput(props) {
|
|
|
11048
11050
|
return _ref2.apply(this, arguments);
|
|
11049
11051
|
};
|
|
11050
11052
|
}(), [options, controller]);
|
|
11051
|
-
return
|
|
11053
|
+
return React.createElement("div", {
|
|
11052
11054
|
className: 'kts-invoice-operate-goods-list-itemCode-input'
|
|
11053
|
-
},
|
|
11055
|
+
}, React.createElement(AutoComplete$1, {
|
|
11054
11056
|
onSearch: onSearch,
|
|
11055
11057
|
value: props.value,
|
|
11056
11058
|
options: options.map(function (e) {
|
|
@@ -11059,7 +11061,7 @@ function ItemCodeInput(props) {
|
|
|
11059
11061
|
};
|
|
11060
11062
|
}),
|
|
11061
11063
|
onSelect: onChangeAutoComplete
|
|
11062
|
-
},
|
|
11064
|
+
}, React.createElement(Input, {
|
|
11063
11065
|
style: {
|
|
11064
11066
|
height: '100%',
|
|
11065
11067
|
border: 'none'
|
|
@@ -12240,7 +12242,7 @@ function Drag$1(props) {
|
|
|
12240
12242
|
var currentGood = controller.state.goodsListState.goodsList.filter(function (e) {
|
|
12241
12243
|
return e.$index === record.$index;
|
|
12242
12244
|
})[0];
|
|
12243
|
-
mounting(
|
|
12245
|
+
mounting(React.createElement(DragDiv, _objectSpread2({}, currentGood)));
|
|
12244
12246
|
rowList.forEach(function (e) {
|
|
12245
12247
|
e.addEventListener('mousemove', onMousemove);
|
|
12246
12248
|
});
|
|
@@ -12401,7 +12403,7 @@ function Drag$1(props) {
|
|
|
12401
12403
|
|
|
12402
12404
|
|
|
12403
12405
|
function insert() {
|
|
12404
|
-
mounting(
|
|
12406
|
+
mounting(React.createElement(React.Fragment, null));
|
|
12405
12407
|
controller.run( /*#__PURE__*/function () {
|
|
12406
12408
|
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(s) {
|
|
12407
12409
|
var _s$goodsListState$dra, container, current, site, goodsList, goodsMap, _currentGood, currentIndex, moveGoods;
|
|
@@ -12480,7 +12482,7 @@ function Drag$1(props) {
|
|
|
12480
12482
|
}
|
|
12481
12483
|
}, [controller, record, disabled]);
|
|
12482
12484
|
var renderButton = React.useMemo(function () {
|
|
12483
|
-
return
|
|
12485
|
+
return React.createElement(Button, {
|
|
12484
12486
|
type: 'link',
|
|
12485
12487
|
style: {
|
|
12486
12488
|
padding: 0
|
|
@@ -12491,13 +12493,13 @@ function Drag$1(props) {
|
|
|
12491
12493
|
},
|
|
12492
12494
|
className: "kts-invoice-operate-goods-list-itemName-drag",
|
|
12493
12495
|
onMouseOver: controller.saveEditGood
|
|
12494
|
-
},
|
|
12496
|
+
}, React.createElement(Icon, {
|
|
12495
12497
|
component: SvgI001
|
|
12496
12498
|
}));
|
|
12497
12499
|
}, [onMouseDown, controller]);
|
|
12498
12500
|
|
|
12499
12501
|
if (disabled) {
|
|
12500
|
-
return
|
|
12502
|
+
return React.createElement(Popover, {
|
|
12501
12503
|
content: '您还有未编辑完成的商品',
|
|
12502
12504
|
trigger: 'focus'
|
|
12503
12505
|
}, renderButton);
|
|
@@ -12537,13 +12539,13 @@ function DragDiv(props) {
|
|
|
12537
12539
|
window.removeEventListener('mousemove', onMousemove);
|
|
12538
12540
|
};
|
|
12539
12541
|
});
|
|
12540
|
-
return
|
|
12542
|
+
return React.createElement("div", {
|
|
12541
12543
|
className: "kts-invoice-operate-goods-list-itemName-drag-div",
|
|
12542
12544
|
style: {
|
|
12543
12545
|
top: y,
|
|
12544
12546
|
left: x
|
|
12545
12547
|
}
|
|
12546
|
-
},
|
|
12548
|
+
}, React.createElement("span", null, props.itemName), React.createElement("span", null, props.itemModelName), React.createElement("span", null, props.unit));
|
|
12547
12549
|
}
|
|
12548
12550
|
|
|
12549
12551
|
var useColumns = (function (form) {
|
|
@@ -12664,7 +12666,7 @@ var useColumns = (function (form) {
|
|
|
12664
12666
|
width: 40,
|
|
12665
12667
|
align: 'center',
|
|
12666
12668
|
render: function render(_, record) {
|
|
12667
|
-
return
|
|
12669
|
+
return React.createElement(Drag$1, {
|
|
12668
12670
|
record: record
|
|
12669
12671
|
});
|
|
12670
12672
|
}
|
|
@@ -12674,7 +12676,7 @@ var useColumns = (function (form) {
|
|
|
12674
12676
|
dataIndex: 'serialNo',
|
|
12675
12677
|
width: 50,
|
|
12676
12678
|
render: function render(e) {
|
|
12677
|
-
return
|
|
12679
|
+
return React.createElement("span", {
|
|
12678
12680
|
style: {
|
|
12679
12681
|
padding: '0 10px'
|
|
12680
12682
|
}
|
|
@@ -12686,13 +12688,13 @@ var useColumns = (function (form) {
|
|
|
12686
12688
|
width: 119,
|
|
12687
12689
|
render: function render(_, record) {
|
|
12688
12690
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
12689
|
-
return
|
|
12691
|
+
return React.createElement(Form.Item, null, getFieldDecorator('itemCode', {
|
|
12690
12692
|
initialValue: editGood.itemCode,
|
|
12691
12693
|
rules: [].concat(_toConsumableArray(getReplenishRules('itemCode')), [{
|
|
12692
12694
|
pattern: /^.{1,19}$/,
|
|
12693
12695
|
message: '商品编码长度不能超过19位'
|
|
12694
12696
|
}])
|
|
12695
|
-
})(
|
|
12697
|
+
})(React.createElement(ItemCodeInput, {
|
|
12696
12698
|
onChange: function () {
|
|
12697
12699
|
var _onChange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
12698
12700
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
@@ -12718,7 +12720,7 @@ var useColumns = (function (form) {
|
|
|
12718
12720
|
}()
|
|
12719
12721
|
})));
|
|
12720
12722
|
} else {
|
|
12721
|
-
return
|
|
12723
|
+
return React.createElement("span", {
|
|
12722
12724
|
style: {
|
|
12723
12725
|
padding: '0 10px'
|
|
12724
12726
|
}
|
|
@@ -12726,13 +12728,13 @@ var useColumns = (function (form) {
|
|
|
12726
12728
|
}
|
|
12727
12729
|
}
|
|
12728
12730
|
}, {
|
|
12729
|
-
title:
|
|
12731
|
+
title: React.createElement(TitleText, {
|
|
12730
12732
|
required: true
|
|
12731
12733
|
}, "\u9879\u76EE\u540D\u79F0"),
|
|
12732
12734
|
key: 'itemName',
|
|
12733
12735
|
render: function render(_, record) {
|
|
12734
12736
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
12735
|
-
return
|
|
12737
|
+
return React.createElement(Form.Item, null, React.createElement("div", {
|
|
12736
12738
|
style: {
|
|
12737
12739
|
display: 'flex'
|
|
12738
12740
|
}
|
|
@@ -12779,16 +12781,16 @@ var useColumns = (function (form) {
|
|
|
12779
12781
|
return validator;
|
|
12780
12782
|
}()
|
|
12781
12783
|
}])
|
|
12782
|
-
})(
|
|
12784
|
+
})(React.createElement(ItemNameInput, {
|
|
12783
12785
|
shorthand: editGood.shorthand,
|
|
12784
12786
|
onChange: function onChange() {
|
|
12785
12787
|
onChangeItemName(controller, form, record);
|
|
12786
12788
|
}
|
|
12787
|
-
})),
|
|
12789
|
+
})), React.createElement("div", {
|
|
12788
12790
|
className: "kts-invoice-operate-goods-list-able-list-itemName-import"
|
|
12789
|
-
}, controller.getGoodsList && model !== 'readOnly' &&
|
|
12791
|
+
}, controller.getGoodsList && model !== 'readOnly' && React.createElement(Tooltip, {
|
|
12790
12792
|
title: "\u70B9\u51FB\u4ECE\u5546\u54C1\u7BA1\u7406\u4E2D\u6DFB\u52A0\u5546\u54C1\u4FE1\u606F"
|
|
12791
|
-
},
|
|
12793
|
+
}, React.createElement(Button, {
|
|
12792
12794
|
onClick: controller.pipeline( /*#__PURE__*/function () {
|
|
12793
12795
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(s) {
|
|
12794
12796
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
@@ -12813,7 +12815,7 @@ var useColumns = (function (form) {
|
|
|
12813
12815
|
icon: "plus-circle"
|
|
12814
12816
|
})))));
|
|
12815
12817
|
} else {
|
|
12816
|
-
return
|
|
12818
|
+
return React.createElement(MyItemNameDiv, {
|
|
12817
12819
|
valueT: formatSearch(getItemNameWithShorthand({
|
|
12818
12820
|
shorthand: record.shorthand,
|
|
12819
12821
|
full: record.itemNameSelf || ''
|
|
@@ -12827,17 +12829,17 @@ var useColumns = (function (form) {
|
|
|
12827
12829
|
}
|
|
12828
12830
|
}
|
|
12829
12831
|
}, {
|
|
12830
|
-
title:
|
|
12832
|
+
title: React.createElement(TitleText, {
|
|
12831
12833
|
rules: (_columnsReplenish$ite = columnsReplenish['itemModelName']) === null || _columnsReplenish$ite === void 0 ? void 0 : _columnsReplenish$ite.rules
|
|
12832
12834
|
}, "\u89C4\u683C\u578B\u53F7"),
|
|
12833
12835
|
key: 'itemModelName',
|
|
12834
12836
|
width: 119,
|
|
12835
12837
|
render: function render(_, record) {
|
|
12836
12838
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
12837
|
-
return
|
|
12839
|
+
return React.createElement(Form.Item, null, getFieldDecorator('itemModelName', {
|
|
12838
12840
|
initialValue: isMyShow ? editGood.itemModelNameSelf : editGood.itemModelName,
|
|
12839
12841
|
rules: getReplenishRules('itemModelName')
|
|
12840
|
-
})(
|
|
12842
|
+
})(React.createElement(MyInput, {
|
|
12841
12843
|
onChange: function () {
|
|
12842
12844
|
var _onChange2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5() {
|
|
12843
12845
|
var key, value;
|
|
@@ -12870,7 +12872,7 @@ var useColumns = (function (form) {
|
|
|
12870
12872
|
}()
|
|
12871
12873
|
})));
|
|
12872
12874
|
} else {
|
|
12873
|
-
return
|
|
12875
|
+
return React.createElement(MyItemNameDiv, {
|
|
12874
12876
|
valueT: formatSearch(record.itemModelNameSelf, searchValue),
|
|
12875
12877
|
valueF: formatSearch(record.itemModelName, searchValue),
|
|
12876
12878
|
isMyShow: isMyShow
|
|
@@ -12878,17 +12880,17 @@ var useColumns = (function (form) {
|
|
|
12878
12880
|
}
|
|
12879
12881
|
}
|
|
12880
12882
|
}, {
|
|
12881
|
-
title:
|
|
12883
|
+
title: React.createElement(TitleText, {
|
|
12882
12884
|
rules: (_columnsReplenish$uni = columnsReplenish['unit']) === null || _columnsReplenish$uni === void 0 ? void 0 : _columnsReplenish$uni.rules
|
|
12883
12885
|
}, "\u5355\u4F4D"),
|
|
12884
12886
|
key: 'unit',
|
|
12885
12887
|
width: 70,
|
|
12886
12888
|
render: function render(_, record) {
|
|
12887
12889
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
12888
|
-
return
|
|
12890
|
+
return React.createElement(Form.Item, null, getFieldDecorator('unit', {
|
|
12889
12891
|
initialValue: editGood.unit,
|
|
12890
12892
|
rules: getReplenishRules('unit')
|
|
12891
|
-
})(
|
|
12893
|
+
})(React.createElement(AutoComplete$2, {
|
|
12892
12894
|
style: {
|
|
12893
12895
|
width: '100%'
|
|
12894
12896
|
},
|
|
@@ -12926,7 +12928,7 @@ var useColumns = (function (form) {
|
|
|
12926
12928
|
}()
|
|
12927
12929
|
})));
|
|
12928
12930
|
} else {
|
|
12929
|
-
return
|
|
12931
|
+
return React.createElement("span", {
|
|
12930
12932
|
style: {
|
|
12931
12933
|
padding: '0 10px'
|
|
12932
12934
|
}
|
|
@@ -12934,7 +12936,7 @@ var useColumns = (function (form) {
|
|
|
12934
12936
|
}
|
|
12935
12937
|
}
|
|
12936
12938
|
}, {
|
|
12937
|
-
title:
|
|
12939
|
+
title: React.createElement(TitleText, {
|
|
12938
12940
|
rules: (_columnsReplenish$qua = columnsReplenish['quantity']) === null || _columnsReplenish$qua === void 0 ? void 0 : _columnsReplenish$qua.rules
|
|
12939
12941
|
}, "\u6570\u91CF"),
|
|
12940
12942
|
dataIndex: 'quantity',
|
|
@@ -12943,7 +12945,7 @@ var useColumns = (function (form) {
|
|
|
12943
12945
|
width: 149,
|
|
12944
12946
|
render: function render(value, record) {
|
|
12945
12947
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
12946
|
-
return
|
|
12948
|
+
return React.createElement(Form.Item, null, getFieldDecorator('quantity', {
|
|
12947
12949
|
initialValue: editGood.quantity,
|
|
12948
12950
|
getValueFromEvent: onNumberValueChange,
|
|
12949
12951
|
rules: [].concat(_toConsumableArray(getReplenishRules('quantity')), [{
|
|
@@ -12989,7 +12991,7 @@ var useColumns = (function (form) {
|
|
|
12989
12991
|
return validator;
|
|
12990
12992
|
}()
|
|
12991
12993
|
}])
|
|
12992
|
-
})(
|
|
12994
|
+
})(React.createElement(MyInput, {
|
|
12993
12995
|
style: {
|
|
12994
12996
|
textAlign: 'right'
|
|
12995
12997
|
},
|
|
@@ -13021,7 +13023,7 @@ var useColumns = (function (form) {
|
|
|
13021
13023
|
}()
|
|
13022
13024
|
})));
|
|
13023
13025
|
} else {
|
|
13024
|
-
return
|
|
13026
|
+
return React.createElement("span", {
|
|
13025
13027
|
style: {
|
|
13026
13028
|
padding: '0 10px'
|
|
13027
13029
|
}
|
|
@@ -13029,7 +13031,7 @@ var useColumns = (function (form) {
|
|
|
13029
13031
|
}
|
|
13030
13032
|
}
|
|
13031
13033
|
}, {
|
|
13032
|
-
title:
|
|
13034
|
+
title: React.createElement(TitleText, {
|
|
13033
13035
|
rules: (_columnsReplenish$pri = columnsReplenish['priceIncludeTax']) === null || _columnsReplenish$pri === void 0 ? void 0 : _columnsReplenish$pri.rules
|
|
13034
13036
|
}, "\u5355\u4EF7(\u542B\u7A0E)"),
|
|
13035
13037
|
dataIndex: 'priceIncludeTax',
|
|
@@ -13038,7 +13040,7 @@ var useColumns = (function (form) {
|
|
|
13038
13040
|
width: 149,
|
|
13039
13041
|
render: function render(value, record) {
|
|
13040
13042
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
13041
|
-
return
|
|
13043
|
+
return React.createElement(Form.Item, null, getFieldDecorator('priceIncludeTax', {
|
|
13042
13044
|
initialValue: editGood.priceIncludeTax,
|
|
13043
13045
|
getValueFromEvent: onNumberValueChange,
|
|
13044
13046
|
rules: [].concat(_toConsumableArray(getReplenishRules('priceIncludeTax')), [{
|
|
@@ -13084,7 +13086,7 @@ var useColumns = (function (form) {
|
|
|
13084
13086
|
return validator;
|
|
13085
13087
|
}()
|
|
13086
13088
|
}])
|
|
13087
|
-
})(
|
|
13089
|
+
})(React.createElement(MyInput, {
|
|
13088
13090
|
style: {
|
|
13089
13091
|
textAlign: 'right'
|
|
13090
13092
|
},
|
|
@@ -13096,7 +13098,7 @@ var useColumns = (function (form) {
|
|
|
13096
13098
|
}
|
|
13097
13099
|
})));
|
|
13098
13100
|
} else {
|
|
13099
|
-
return
|
|
13101
|
+
return React.createElement("span", {
|
|
13100
13102
|
style: {
|
|
13101
13103
|
padding: '0 10px'
|
|
13102
13104
|
}
|
|
@@ -13104,7 +13106,7 @@ var useColumns = (function (form) {
|
|
|
13104
13106
|
}
|
|
13105
13107
|
}
|
|
13106
13108
|
}, {
|
|
13107
|
-
title:
|
|
13109
|
+
title: React.createElement(TitleText, {
|
|
13108
13110
|
rules: (_columnsReplenish$pri2 = columnsReplenish['priceExcludeTax']) === null || _columnsReplenish$pri2 === void 0 ? void 0 : _columnsReplenish$pri2.rules
|
|
13109
13111
|
}, "\u5355\u4EF7(\u4E0D\u542B\u7A0E)"),
|
|
13110
13112
|
dataIndex: 'priceExcludeTax',
|
|
@@ -13113,7 +13115,7 @@ var useColumns = (function (form) {
|
|
|
13113
13115
|
width: 149,
|
|
13114
13116
|
render: function render(value, record) {
|
|
13115
13117
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
13116
|
-
return
|
|
13118
|
+
return React.createElement(Form.Item, null, getFieldDecorator('priceExcludeTax', {
|
|
13117
13119
|
initialValue: editGood.priceExcludeTax,
|
|
13118
13120
|
getValueFromEvent: onNumberValueChange,
|
|
13119
13121
|
rules: [].concat(_toConsumableArray(getReplenishRules('priceExcludeTax')), [{
|
|
@@ -13159,7 +13161,7 @@ var useColumns = (function (form) {
|
|
|
13159
13161
|
return validator;
|
|
13160
13162
|
}()
|
|
13161
13163
|
}])
|
|
13162
|
-
})(
|
|
13164
|
+
})(React.createElement(MyInput, {
|
|
13163
13165
|
style: {
|
|
13164
13166
|
textAlign: 'right'
|
|
13165
13167
|
},
|
|
@@ -13171,7 +13173,7 @@ var useColumns = (function (form) {
|
|
|
13171
13173
|
}
|
|
13172
13174
|
})));
|
|
13173
13175
|
} else {
|
|
13174
|
-
return
|
|
13176
|
+
return React.createElement("span", {
|
|
13175
13177
|
style: {
|
|
13176
13178
|
padding: '0 10px'
|
|
13177
13179
|
}
|
|
@@ -13179,7 +13181,7 @@ var useColumns = (function (form) {
|
|
|
13179
13181
|
}
|
|
13180
13182
|
}
|
|
13181
13183
|
}, {
|
|
13182
|
-
title:
|
|
13184
|
+
title: React.createElement(TitleText, {
|
|
13183
13185
|
required: true
|
|
13184
13186
|
}, "\u91D1\u989D(\u542B\u7A0E)"),
|
|
13185
13187
|
dataIndex: 'lineAmountIncludeTax',
|
|
@@ -13188,7 +13190,7 @@ var useColumns = (function (form) {
|
|
|
13188
13190
|
align: 'right',
|
|
13189
13191
|
render: function render(value, record) {
|
|
13190
13192
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
13191
|
-
return
|
|
13193
|
+
return React.createElement(Form.Item, null, getFieldDecorator('lineAmountIncludeTax', {
|
|
13192
13194
|
initialValue: editGood.lineAmountIncludeTax,
|
|
13193
13195
|
getValueFromEvent: onNumberValueChange,
|
|
13194
13196
|
rules: [].concat(_toConsumableArray(getReplenishRules('lineAmountIncludeTax')), [{
|
|
@@ -13248,7 +13250,7 @@ var useColumns = (function (form) {
|
|
|
13248
13250
|
return validator;
|
|
13249
13251
|
}()
|
|
13250
13252
|
}])
|
|
13251
|
-
})(
|
|
13253
|
+
})(React.createElement(MyInput, {
|
|
13252
13254
|
style: {
|
|
13253
13255
|
textAlign: 'right'
|
|
13254
13256
|
},
|
|
@@ -13259,7 +13261,7 @@ var useColumns = (function (form) {
|
|
|
13259
13261
|
}
|
|
13260
13262
|
})));
|
|
13261
13263
|
} else {
|
|
13262
|
-
return
|
|
13264
|
+
return React.createElement("span", {
|
|
13263
13265
|
style: {
|
|
13264
13266
|
padding: '0 10px'
|
|
13265
13267
|
}
|
|
@@ -13267,7 +13269,7 @@ var useColumns = (function (form) {
|
|
|
13267
13269
|
}
|
|
13268
13270
|
}
|
|
13269
13271
|
}, {
|
|
13270
|
-
title:
|
|
13272
|
+
title: React.createElement(TitleText, {
|
|
13271
13273
|
required: true
|
|
13272
13274
|
}, "\u91D1\u989D(\u4E0D\u542B\u7A0E)"),
|
|
13273
13275
|
dataIndex: 'lineAmountExcludeTax',
|
|
@@ -13276,7 +13278,7 @@ var useColumns = (function (form) {
|
|
|
13276
13278
|
width: 119,
|
|
13277
13279
|
render: function render(value, record) {
|
|
13278
13280
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
13279
|
-
return
|
|
13281
|
+
return React.createElement(Form.Item, null, getFieldDecorator('lineAmountExcludeTax', {
|
|
13280
13282
|
initialValue: editGood.lineAmountExcludeTax,
|
|
13281
13283
|
getValueFromEvent: onNumberValueChange,
|
|
13282
13284
|
rules: [].concat(_toConsumableArray(getReplenishRules('lineAmountExcludeTax')), [{
|
|
@@ -13311,7 +13313,7 @@ var useColumns = (function (form) {
|
|
|
13311
13313
|
return validator;
|
|
13312
13314
|
}()
|
|
13313
13315
|
}])
|
|
13314
|
-
})(
|
|
13316
|
+
})(React.createElement(MyInput, {
|
|
13315
13317
|
style: {
|
|
13316
13318
|
textAlign: 'right'
|
|
13317
13319
|
},
|
|
@@ -13322,7 +13324,7 @@ var useColumns = (function (form) {
|
|
|
13322
13324
|
}
|
|
13323
13325
|
})));
|
|
13324
13326
|
} else {
|
|
13325
|
-
return
|
|
13327
|
+
return React.createElement("span", {
|
|
13326
13328
|
style: {
|
|
13327
13329
|
padding: '0 10px'
|
|
13328
13330
|
}
|
|
@@ -13330,7 +13332,7 @@ var useColumns = (function (form) {
|
|
|
13330
13332
|
}
|
|
13331
13333
|
}
|
|
13332
13334
|
}, {
|
|
13333
|
-
title:
|
|
13335
|
+
title: React.createElement(TitleText, {
|
|
13334
13336
|
required: true
|
|
13335
13337
|
}, "\u7A0E\u7387%"),
|
|
13336
13338
|
dataIndex: 'taxRate',
|
|
@@ -13339,7 +13341,7 @@ var useColumns = (function (form) {
|
|
|
13339
13341
|
width: 75,
|
|
13340
13342
|
render: function render(value, record) {
|
|
13341
13343
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
13342
|
-
return
|
|
13344
|
+
return React.createElement(Form.Item, null, getFieldDecorator('taxRate', {
|
|
13343
13345
|
initialValue: editGood.taxRate,
|
|
13344
13346
|
rules: [].concat(_toConsumableArray(getReplenishRules('taxRate')), [{
|
|
13345
13347
|
required: true,
|
|
@@ -13348,7 +13350,7 @@ var useColumns = (function (form) {
|
|
|
13348
13350
|
pattern: /^[+-]?(0|([1-9]\d*))(\.\d+)?$/,
|
|
13349
13351
|
message: '请选择正确税率'
|
|
13350
13352
|
}])
|
|
13351
|
-
})(
|
|
13353
|
+
})(React.createElement(Select, {
|
|
13352
13354
|
className: "kts-invoice-operate-goods-list-table-tax-rate",
|
|
13353
13355
|
dropdownMenuStyle: {
|
|
13354
13356
|
textAlign: "right"
|
|
@@ -13362,13 +13364,13 @@ var useColumns = (function (form) {
|
|
|
13362
13364
|
onChangeTaxRate(controller, form, record);
|
|
13363
13365
|
}
|
|
13364
13366
|
}, taxRateList.map(function (e, i) {
|
|
13365
|
-
return
|
|
13367
|
+
return React.createElement(Select.Option, {
|
|
13366
13368
|
key: i,
|
|
13367
13369
|
value: e
|
|
13368
13370
|
}, e, "%");
|
|
13369
13371
|
}))));
|
|
13370
13372
|
} else {
|
|
13371
|
-
return
|
|
13373
|
+
return React.createElement("span", {
|
|
13372
13374
|
style: {
|
|
13373
13375
|
padding: '0 10px'
|
|
13374
13376
|
}
|
|
@@ -13376,7 +13378,7 @@ var useColumns = (function (form) {
|
|
|
13376
13378
|
}
|
|
13377
13379
|
}
|
|
13378
13380
|
}, {
|
|
13379
|
-
title:
|
|
13381
|
+
title: React.createElement(TitleText, {
|
|
13380
13382
|
rules: (_columnsReplenish$tax = columnsReplenish['taxAmount']) === null || _columnsReplenish$tax === void 0 ? void 0 : _columnsReplenish$tax.rules
|
|
13381
13383
|
}, "\u7A0E\u989D"),
|
|
13382
13384
|
dataIndex: 'taxAmount',
|
|
@@ -13388,11 +13390,11 @@ var useColumns = (function (form) {
|
|
|
13388
13390
|
return getFieldDecorator('taxAmount', {
|
|
13389
13391
|
initialValue: editGood.taxAmount,
|
|
13390
13392
|
rules: getReplenishRules('taxAmount')
|
|
13391
|
-
})(
|
|
13393
|
+
})(React.createElement(MyDiv, {
|
|
13392
13394
|
loading: isCipher(changeField, 'taxAmount')
|
|
13393
13395
|
}));
|
|
13394
13396
|
} else {
|
|
13395
|
-
return
|
|
13397
|
+
return React.createElement("span", {
|
|
13396
13398
|
style: {
|
|
13397
13399
|
padding: '0 10px'
|
|
13398
13400
|
}
|
|
@@ -13407,42 +13409,42 @@ var useColumns = (function (form) {
|
|
|
13407
13409
|
render: function render(e) {
|
|
13408
13410
|
switch (e) {
|
|
13409
13411
|
case LineAttributeType$1.折扣行:
|
|
13410
|
-
return
|
|
13412
|
+
return React.createElement("span", {
|
|
13411
13413
|
style: {
|
|
13412
13414
|
padding: '0 10px'
|
|
13413
13415
|
}
|
|
13414
13416
|
}, "\u6298\u6263\u884C");
|
|
13415
13417
|
|
|
13416
13418
|
case LineAttributeType$1.被折扣行:
|
|
13417
|
-
return
|
|
13419
|
+
return React.createElement("span", {
|
|
13418
13420
|
style: {
|
|
13419
13421
|
padding: '0 10px'
|
|
13420
13422
|
}
|
|
13421
13423
|
}, "\u88AB\u6298\u6263\u884C");
|
|
13422
13424
|
|
|
13423
13425
|
case LineAttributeType$1.赠品行:
|
|
13424
|
-
return
|
|
13426
|
+
return React.createElement("span", {
|
|
13425
13427
|
style: {
|
|
13426
13428
|
padding: '0 10px'
|
|
13427
13429
|
}
|
|
13428
13430
|
}, "\u8D60\u54C1\u884C");
|
|
13429
13431
|
|
|
13430
13432
|
case LineAttributeType$1.折让行:
|
|
13431
|
-
return
|
|
13433
|
+
return React.createElement("span", {
|
|
13432
13434
|
style: {
|
|
13433
13435
|
padding: '0 10px'
|
|
13434
13436
|
}
|
|
13435
13437
|
}, "\u6298\u8BA9\u884C");
|
|
13436
13438
|
|
|
13437
13439
|
case LineAttributeType$1.正常:
|
|
13438
|
-
return
|
|
13440
|
+
return React.createElement("span", {
|
|
13439
13441
|
style: {
|
|
13440
13442
|
padding: '0 10px'
|
|
13441
13443
|
}
|
|
13442
13444
|
}, "\u6B63\u5E38\u884C");
|
|
13443
13445
|
|
|
13444
13446
|
default:
|
|
13445
|
-
return
|
|
13447
|
+
return React.createElement("span", {
|
|
13446
13448
|
style: {
|
|
13447
13449
|
padding: '0 10px'
|
|
13448
13450
|
}
|
|
@@ -13456,7 +13458,7 @@ var useColumns = (function (form) {
|
|
|
13456
13458
|
width: 130,
|
|
13457
13459
|
fixed: 'right',
|
|
13458
13460
|
render: function render(_value, record) {
|
|
13459
|
-
return
|
|
13461
|
+
return React.createElement(RowMenu, {
|
|
13460
13462
|
key: record.lineAttribute,
|
|
13461
13463
|
goods: record
|
|
13462
13464
|
});
|
|
@@ -13511,13 +13513,13 @@ var MyInput = /*#__PURE__*/function (_React$Component) {
|
|
|
13511
13513
|
key: "render",
|
|
13512
13514
|
value: function render() {
|
|
13513
13515
|
if (this.props.loading) {
|
|
13514
|
-
return
|
|
13516
|
+
return React.createElement(Spin, {
|
|
13515
13517
|
size: "small"
|
|
13516
|
-
},
|
|
13518
|
+
}, React.createElement(Input, _objectSpread2(_objectSpread2({}, this.props), {}, {
|
|
13517
13519
|
autoComplete: "off"
|
|
13518
13520
|
})));
|
|
13519
13521
|
} else {
|
|
13520
|
-
return
|
|
13522
|
+
return React.createElement(Input, _objectSpread2(_objectSpread2({}, this.props), {}, {
|
|
13521
13523
|
autoComplete: "off"
|
|
13522
13524
|
}));
|
|
13523
13525
|
}
|
|
@@ -13542,15 +13544,15 @@ var MyDiv = /*#__PURE__*/function (_React$Component2) {
|
|
|
13542
13544
|
key: "render",
|
|
13543
13545
|
value: function render() {
|
|
13544
13546
|
if (this.props.loading) {
|
|
13545
|
-
return
|
|
13547
|
+
return React.createElement(Spin, {
|
|
13546
13548
|
size: "small"
|
|
13547
|
-
},
|
|
13549
|
+
}, React.createElement("span", {
|
|
13548
13550
|
style: {
|
|
13549
13551
|
padding: '0 10px'
|
|
13550
13552
|
}
|
|
13551
13553
|
}, this.props.value));
|
|
13552
13554
|
} else {
|
|
13553
|
-
return
|
|
13555
|
+
return React.createElement("span", {
|
|
13554
13556
|
style: {
|
|
13555
13557
|
padding: '0 10px'
|
|
13556
13558
|
}
|
|
@@ -13583,18 +13585,18 @@ var MyItemNameDiv = /*#__PURE__*/function (_React$Component3) {
|
|
|
13583
13585
|
|
|
13584
13586
|
if (isMyShow) {
|
|
13585
13587
|
if (valueT) {
|
|
13586
|
-
return
|
|
13588
|
+
return React.createElement(Tooltip, {
|
|
13587
13589
|
title: valueT
|
|
13588
|
-
},
|
|
13590
|
+
}, React.createElement("span", {
|
|
13589
13591
|
style: {
|
|
13590
13592
|
padding: '0 10px',
|
|
13591
13593
|
color: '#0074ff'
|
|
13592
13594
|
}
|
|
13593
13595
|
}, valueT));
|
|
13594
13596
|
} else {
|
|
13595
|
-
return
|
|
13597
|
+
return React.createElement(Tooltip, {
|
|
13596
13598
|
title: valueF
|
|
13597
|
-
},
|
|
13599
|
+
}, React.createElement("span", {
|
|
13598
13600
|
style: {
|
|
13599
13601
|
padding: '0 10px'
|
|
13600
13602
|
}
|
|
@@ -13602,17 +13604,17 @@ var MyItemNameDiv = /*#__PURE__*/function (_React$Component3) {
|
|
|
13602
13604
|
}
|
|
13603
13605
|
} else {
|
|
13604
13606
|
if (valueF) {
|
|
13605
|
-
return
|
|
13607
|
+
return React.createElement(Tooltip, {
|
|
13606
13608
|
title: valueF
|
|
13607
|
-
},
|
|
13609
|
+
}, React.createElement("span", {
|
|
13608
13610
|
style: {
|
|
13609
13611
|
padding: '0 10px'
|
|
13610
13612
|
}
|
|
13611
13613
|
}, valueF));
|
|
13612
13614
|
} else {
|
|
13613
|
-
return
|
|
13615
|
+
return React.createElement(Tooltip, {
|
|
13614
13616
|
title: valueT
|
|
13615
|
-
},
|
|
13617
|
+
}, React.createElement("span", {
|
|
13616
13618
|
style: {
|
|
13617
13619
|
padding: '0 10px',
|
|
13618
13620
|
color: '#0074ff'
|
|
@@ -13635,7 +13637,7 @@ function formatSearch(value, search) {
|
|
|
13635
13637
|
return dcoding(e);
|
|
13636
13638
|
}).join("<span class=\"kts-invoice-operate-goods-list-table-search-protrude\" >".concat(search, "</span>"));
|
|
13637
13639
|
|
|
13638
|
-
return
|
|
13640
|
+
return React.createElement("span", {
|
|
13639
13641
|
dangerouslySetInnerHTML: {
|
|
13640
13642
|
__html: __html
|
|
13641
13643
|
}
|
|
@@ -14060,7 +14062,7 @@ var useRowSelection = (function () {
|
|
|
14060
14062
|
};
|
|
14061
14063
|
}(), [controller]);
|
|
14062
14064
|
var columnTitle = React.useMemo(function () {
|
|
14063
|
-
return
|
|
14065
|
+
return React.createElement(Checkbox, {
|
|
14064
14066
|
onChange: onClickSelectAll,
|
|
14065
14067
|
indeterminate: indeterminate,
|
|
14066
14068
|
checked: isAll
|
|
@@ -14261,16 +14263,16 @@ var useEndowCodeButton = (function () {
|
|
|
14261
14263
|
}, _callee2);
|
|
14262
14264
|
})), [controller]);
|
|
14263
14265
|
var menuItem = React.useMemo(function () {
|
|
14264
|
-
if (model === 'readOnly') return
|
|
14265
|
-
return
|
|
14266
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
14267
|
+
return React.createElement(Menu.Item, {
|
|
14266
14268
|
key: "2",
|
|
14267
14269
|
onClick: onClick,
|
|
14268
14270
|
disabled: disabled
|
|
14269
14271
|
}, "\u6279\u91CF\u8D4B\u7801");
|
|
14270
14272
|
}, [onClick, disabled, model]);
|
|
14271
14273
|
var button = React.useMemo(function () {
|
|
14272
|
-
if (model === 'readOnly') return
|
|
14273
|
-
return
|
|
14274
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
14275
|
+
return React.createElement(Button, {
|
|
14274
14276
|
onClick: onClick,
|
|
14275
14277
|
disabled: disabled
|
|
14276
14278
|
}, "\u6279\u91CF\u8D4B\u7801");
|
|
@@ -14336,19 +14338,19 @@ var useDelRowButton = (function () {
|
|
|
14336
14338
|
}())();
|
|
14337
14339
|
}, [controller]);
|
|
14338
14340
|
var menuItem = React.useMemo(function () {
|
|
14339
|
-
if (model === 'prefab') return
|
|
14340
|
-
if (model === 'readOnly') return
|
|
14341
|
-
return
|
|
14341
|
+
if (model === 'prefab') return React.createElement(React.Fragment, null);
|
|
14342
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
14343
|
+
return React.createElement(Menu.Item, {
|
|
14342
14344
|
key: "1",
|
|
14343
14345
|
onClick: onClick,
|
|
14344
14346
|
disabled: disabled
|
|
14345
14347
|
}, " \u5220\u9664\u884C ");
|
|
14346
14348
|
}, [model, onClick, disabled]);
|
|
14347
14349
|
var button = React.useMemo(function () {
|
|
14348
|
-
if (isRemRow === false) return
|
|
14349
|
-
if (model === 'prefab') return
|
|
14350
|
-
if (model === 'readOnly') return
|
|
14351
|
-
return
|
|
14350
|
+
if (isRemRow === false) return React.createElement(React.Fragment, null);
|
|
14351
|
+
if (model === 'prefab') return React.createElement(React.Fragment, null);
|
|
14352
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
14353
|
+
return React.createElement(Button, {
|
|
14352
14354
|
onClick: onClick,
|
|
14353
14355
|
disabled: disabled
|
|
14354
14356
|
}, "\u6279\u91CF\u5220\u9664");
|
|
@@ -14543,14 +14545,14 @@ var useAddDiscountRowButton = (function () {
|
|
|
14543
14545
|
}, _callee3);
|
|
14544
14546
|
})), [controller]);
|
|
14545
14547
|
var menuItem = React.useMemo(function () {
|
|
14546
|
-
return model === 'prefab' ?
|
|
14548
|
+
return model === 'prefab' ? React.createElement(React.Fragment, null) : isAddDiscount !== false ? React.createElement(Menu.Item, {
|
|
14547
14549
|
key: "0",
|
|
14548
14550
|
onClick: onClick,
|
|
14549
14551
|
disabled: disabled
|
|
14550
14552
|
}, "\u6DFB\u52A0\u6298\u6263\u884C") : undefined;
|
|
14551
14553
|
}, [isAddDiscount, disabled, onClick]);
|
|
14552
14554
|
var drawer = React.useMemo(function () {
|
|
14553
|
-
return
|
|
14555
|
+
return React.createElement(Drawer, {
|
|
14554
14556
|
className: "kts-invoice-operate-goods-list-add-discount-row",
|
|
14555
14557
|
width: 540,
|
|
14556
14558
|
title: "\u6DFB\u52A0\u6298\u6263\u884C",
|
|
@@ -14558,7 +14560,7 @@ var useAddDiscountRowButton = (function () {
|
|
|
14558
14560
|
destroyOnClose: true,
|
|
14559
14561
|
onClose: onClose,
|
|
14560
14562
|
visible: visible
|
|
14561
|
-
},
|
|
14563
|
+
}, React.createElement(DrawerBody, null));
|
|
14562
14564
|
}, [visible, onClose]);
|
|
14563
14565
|
return {
|
|
14564
14566
|
menuItem: menuItem,
|
|
@@ -14675,13 +14677,13 @@ var DrawerBody = decorator(Form.create())(function (props) {
|
|
|
14675
14677
|
});
|
|
14676
14678
|
});
|
|
14677
14679
|
}, 300), [form, lineAmountSum]);
|
|
14678
|
-
return
|
|
14680
|
+
return React.createElement(React.Fragment, null, React.createElement("div", {
|
|
14679
14681
|
className: "add-discount-row-body"
|
|
14680
|
-
},
|
|
14682
|
+
}, React.createElement("p", null, "\u5F53\u524D\u9009\u62E9", React.createElement(Text$3, {
|
|
14681
14683
|
type: "danger"
|
|
14682
|
-
}, discountGoodIndex.length), "\u884C\u88AB\u6298\u6263\u5546\u54C1\u884C\uFF0C\u91D1\u989D\u5408\u8BA1\xA5",
|
|
14684
|
+
}, discountGoodIndex.length), "\u884C\u88AB\u6298\u6263\u5546\u54C1\u884C\uFF0C\u91D1\u989D\u5408\u8BA1\xA5", React.createElement(Text$3, {
|
|
14683
14685
|
type: "danger"
|
|
14684
|
-
}, lineAmountSum.toFixed(2))),
|
|
14686
|
+
}, lineAmountSum.toFixed(2))), React.createElement(Form.Item, {
|
|
14685
14687
|
label: "\u6298\u6263\u7387\uFF1A"
|
|
14686
14688
|
}, getFieldDecorator('discount', {
|
|
14687
14689
|
rules: [{
|
|
@@ -14711,11 +14713,11 @@ var DrawerBody = decorator(Form.create())(function (props) {
|
|
|
14711
14713
|
callback();
|
|
14712
14714
|
}
|
|
14713
14715
|
}]
|
|
14714
|
-
})(
|
|
14716
|
+
})(React.createElement(Input, {
|
|
14715
14717
|
placeholder: "\u8BF7\u8F93\u5165\u5927\u4E8E0\u5C0F\u4E8E100\u7684\u6570\u5B57",
|
|
14716
14718
|
suffix: "%",
|
|
14717
14719
|
onChange: onChangeDiscount
|
|
14718
|
-
}))),
|
|
14720
|
+
}))), React.createElement(Form.Item, {
|
|
14719
14721
|
label: "\u6298\u6263\u91D1\u989D\uFF1A"
|
|
14720
14722
|
}, getFieldDecorator('discolineAmountunt', {
|
|
14721
14723
|
rules: [{
|
|
@@ -14745,19 +14747,19 @@ var DrawerBody = decorator(Form.create())(function (props) {
|
|
|
14745
14747
|
callback();
|
|
14746
14748
|
}
|
|
14747
14749
|
}]
|
|
14748
|
-
})(
|
|
14750
|
+
})(React.createElement(Input, {
|
|
14749
14751
|
placeholder: "\u8BF7\u8F93\u5165\u5927\u4E8E0\u5C0F\u4E8E\u91D1\u989D\u5408\u8BA1\u7684\u6570\u5B57",
|
|
14750
14752
|
suffix: "\xA5",
|
|
14751
14753
|
onChange: onChangeDiscolineAmountunt
|
|
14752
|
-
})))),
|
|
14754
|
+
})))), React.createElement("div", {
|
|
14753
14755
|
className: "add-discount-row-footer"
|
|
14754
|
-
},
|
|
14756
|
+
}, React.createElement(Button, {
|
|
14755
14757
|
block: true,
|
|
14756
14758
|
style: {
|
|
14757
14759
|
marginBottom: 12
|
|
14758
14760
|
},
|
|
14759
14761
|
onClick: onClose
|
|
14760
|
-
}, "\u53D6\u6D88"),
|
|
14762
|
+
}, "\u53D6\u6D88"), React.createElement(Button, {
|
|
14761
14763
|
type: "primary",
|
|
14762
14764
|
block: true,
|
|
14763
14765
|
onClick: onClickSave
|
|
@@ -14854,13 +14856,13 @@ function useMergeDetails() {
|
|
|
14854
14856
|
}];
|
|
14855
14857
|
}, [selectedGoodIndex, onClickManual, onClickAuto]);
|
|
14856
14858
|
var button = React.useMemo(function () {
|
|
14857
|
-
if (!isMergeDetails) return
|
|
14858
|
-
return
|
|
14859
|
+
if (!isMergeDetails) return React.createElement(React.Fragment, null);
|
|
14860
|
+
return React.createElement(Dropdown$1, {
|
|
14859
14861
|
menu: {
|
|
14860
14862
|
items: items
|
|
14861
14863
|
},
|
|
14862
14864
|
trigger: ['click']
|
|
14863
|
-
},
|
|
14865
|
+
}, React.createElement(Button, null, "\u5408\u5E76\u660E\u7EC6"));
|
|
14864
14866
|
}, [selectedGoodIndex.length, isMergeDetails]);
|
|
14865
14867
|
return {
|
|
14866
14868
|
/** 按钮 */
|
|
@@ -14946,8 +14948,8 @@ function useMergeDiscount() {
|
|
|
14946
14948
|
}, _callee);
|
|
14947
14949
|
})), [controller]);
|
|
14948
14950
|
var button = React.useMemo(function () {
|
|
14949
|
-
if (!isMergeDiscount) return
|
|
14950
|
-
return
|
|
14951
|
+
if (!isMergeDiscount) return React.createElement(React.Fragment, null);
|
|
14952
|
+
return React.createElement(Button, {
|
|
14951
14953
|
onClick: onClick,
|
|
14952
14954
|
disabled: goodsList.length <= 1
|
|
14953
14955
|
}, "\u5408\u5E76\u6298\u6263");
|
|
@@ -15125,8 +15127,8 @@ function useSalesDiscount() {
|
|
|
15125
15127
|
}).length <= 0;
|
|
15126
15128
|
}, [goodsList]);
|
|
15127
15129
|
var button = React.useMemo(function () {
|
|
15128
|
-
if (!isSalesDiscount) return
|
|
15129
|
-
return
|
|
15130
|
+
if (!isSalesDiscount) return React.createElement(React.Fragment, null);
|
|
15131
|
+
return React.createElement(Button, {
|
|
15130
15132
|
onClick: onClick,
|
|
15131
15133
|
disabled: disabled
|
|
15132
15134
|
}, "\u9500\u552E\u6298\u8BA9");
|
|
@@ -15297,12 +15299,12 @@ function useSalesGifts() {
|
|
|
15297
15299
|
}, [selectedGoodIndex, onClickManual, onClickAuto]);
|
|
15298
15300
|
var button = React.useMemo(function () {
|
|
15299
15301
|
if (!isSalesGifts) return;
|
|
15300
|
-
return
|
|
15302
|
+
return React.createElement(Dropdown$1, {
|
|
15301
15303
|
menu: {
|
|
15302
15304
|
items: items
|
|
15303
15305
|
},
|
|
15304
15306
|
trigger: ['click']
|
|
15305
|
-
},
|
|
15307
|
+
}, React.createElement(Button, null, "\u9500\u552E\u8D60\u54C1"));
|
|
15306
15308
|
}, [items, isSalesGifts]);
|
|
15307
15309
|
return {
|
|
15308
15310
|
/** 按钮 */
|
|
@@ -15340,7 +15342,7 @@ var GoodsList = /*#__PURE__*/function (_React$Component) {
|
|
|
15340
15342
|
_createClass(GoodsList, [{
|
|
15341
15343
|
key: "render",
|
|
15342
15344
|
value: function render() {
|
|
15343
|
-
return
|
|
15345
|
+
return React.createElement(Main, _objectSpread2({}, this.props));
|
|
15344
15346
|
}
|
|
15345
15347
|
}]);
|
|
15346
15348
|
|
|
@@ -15542,22 +15544,22 @@ var Main = decorator(Form.create())(function (props) {
|
|
|
15542
15544
|
};
|
|
15543
15545
|
}())();
|
|
15544
15546
|
}, [controller, props.isSwitchTax]);
|
|
15545
|
-
return
|
|
15547
|
+
return React.createElement("div", {
|
|
15546
15548
|
className: "kts-invoice-operate-goods-list",
|
|
15547
15549
|
onClick: function onClick(e) {
|
|
15548
15550
|
e.stopPropagation();
|
|
15549
15551
|
}
|
|
15550
|
-
},
|
|
15552
|
+
}, React.createElement("div", {
|
|
15551
15553
|
className: "kts-invoice-operate-goods-list-able"
|
|
15552
|
-
},
|
|
15554
|
+
}, React.createElement("div", {
|
|
15553
15555
|
className: "kts-invoice-operate-goods-list-able-list"
|
|
15554
|
-
},
|
|
15556
|
+
}, 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", {
|
|
15555
15557
|
className: "kts-invoice-operate-goods-list-able-extend"
|
|
15556
|
-
}, props.menuExpansion,
|
|
15558
|
+
}, props.menuExpansion, React.createElement(DescribeSwitch, null), React.createElement(TaxIncludedSwitch, null))), React.createElement("div", {
|
|
15557
15559
|
className: classNames('kts-invoice-operate-goods-list-table', {
|
|
15558
15560
|
'kts-invoice-operate-prefab': isprefab
|
|
15559
15561
|
})
|
|
15560
|
-
},
|
|
15562
|
+
}, React.createElement(TableVirtual, {
|
|
15561
15563
|
bordered: true,
|
|
15562
15564
|
size: "small",
|
|
15563
15565
|
rowKey: "$index",
|
|
@@ -15580,7 +15582,7 @@ var Main = decorator(Form.create())(function (props) {
|
|
|
15580
15582
|
}
|
|
15581
15583
|
};
|
|
15582
15584
|
}
|
|
15583
|
-
})),
|
|
15585
|
+
})), React.createElement("div", null, React.createElement(Statistics, null)));
|
|
15584
15586
|
});
|
|
15585
15587
|
|
|
15586
15588
|
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";
|
|
@@ -15605,7 +15607,7 @@ var Buyer = /*#__PURE__*/function (_React$Component) {
|
|
|
15605
15607
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
15606
15608
|
|
|
15607
15609
|
_this.render = function () {
|
|
15608
|
-
return
|
|
15610
|
+
return React.createElement(Main$1, _objectSpread2({}, _this.props));
|
|
15609
15611
|
};
|
|
15610
15612
|
|
|
15611
15613
|
return _this;
|
|
@@ -15636,7 +15638,7 @@ var Main$1 = decorator(Form.create())(function (props) {
|
|
|
15636
15638
|
return [{
|
|
15637
15639
|
id: 'sellerName',
|
|
15638
15640
|
label: '销售方名称',
|
|
15639
|
-
node:
|
|
15641
|
+
node: React.createElement(Input, {
|
|
15640
15642
|
readOnly: model === 'prefab',
|
|
15641
15643
|
size: "small"
|
|
15642
15644
|
}),
|
|
@@ -15649,7 +15651,7 @@ var Main$1 = decorator(Form.create())(function (props) {
|
|
|
15649
15651
|
}, {
|
|
15650
15652
|
id: 'sellerNo',
|
|
15651
15653
|
label: '销售方纳税人识别号',
|
|
15652
|
-
node:
|
|
15654
|
+
node: React.createElement(Input, {
|
|
15653
15655
|
readOnly: model === 'prefab',
|
|
15654
15656
|
size: "small"
|
|
15655
15657
|
}),
|
|
@@ -15662,7 +15664,7 @@ var Main$1 = decorator(Form.create())(function (props) {
|
|
|
15662
15664
|
}, {
|
|
15663
15665
|
id: 'sellerAddress',
|
|
15664
15666
|
label: '销售方地址及电话',
|
|
15665
|
-
node:
|
|
15667
|
+
node: React.createElement(Input, {
|
|
15666
15668
|
readOnly: model === 'prefab',
|
|
15667
15669
|
size: "small"
|
|
15668
15670
|
}),
|
|
@@ -15675,7 +15677,7 @@ var Main$1 = decorator(Form.create())(function (props) {
|
|
|
15675
15677
|
}, {
|
|
15676
15678
|
id: 'sellerBank',
|
|
15677
15679
|
label: '销售方开户行及账号',
|
|
15678
|
-
node:
|
|
15680
|
+
node: React.createElement(Input, {
|
|
15679
15681
|
readOnly: model === 'prefab',
|
|
15680
15682
|
size: "small"
|
|
15681
15683
|
}),
|
|
@@ -15701,31 +15703,31 @@ var Main$1 = decorator(Form.create())(function (props) {
|
|
|
15701
15703
|
return getFieldDecorator(e.id, e.options)(e.node);
|
|
15702
15704
|
}
|
|
15703
15705
|
}, [props.formRender]);
|
|
15704
|
-
return
|
|
15706
|
+
return React.createElement(Form, null, React.createElement("div", {
|
|
15705
15707
|
className: "kts-invoice-operate-seller"
|
|
15706
|
-
},
|
|
15708
|
+
}, React.createElement("div", {
|
|
15707
15709
|
className: "kts-invoice-operate-seller-message"
|
|
15708
|
-
},
|
|
15710
|
+
}, React.createElement("div", {
|
|
15709
15711
|
className: "kts-invoice-operate-seller-title"
|
|
15710
|
-
},
|
|
15712
|
+
}, React.createElement("label", null, "\u9500\u552E\u65B9")), React.createElement(Descriptions, {
|
|
15711
15713
|
className: "kts-invoice-operate-seller-message-list",
|
|
15712
15714
|
size: "small",
|
|
15713
15715
|
column: 1,
|
|
15714
15716
|
bordered: true
|
|
15715
15717
|
}, formItem.map(function (e, i) {
|
|
15716
|
-
return
|
|
15718
|
+
return React.createElement(Descriptions.Item, {
|
|
15717
15719
|
key: i,
|
|
15718
15720
|
label: e.label
|
|
15719
|
-
},
|
|
15720
|
-
}))),
|
|
15721
|
+
}, React.createElement(Form.Item, null, createFormItem(e)));
|
|
15722
|
+
}))), React.createElement("div", {
|
|
15721
15723
|
className: "kts-invoice-operate-seller-remarks"
|
|
15722
|
-
},
|
|
15724
|
+
}, React.createElement("div", {
|
|
15723
15725
|
className: "kts-invoice-operate-seller-title"
|
|
15724
|
-
},
|
|
15726
|
+
}, React.createElement("label", null, "\u5907\u6CE8")), React.createElement("div", {
|
|
15725
15727
|
className: "kts-invoice-operate-seller-remarks-value"
|
|
15726
15728
|
}, getFieldDecorator('remarks', {
|
|
15727
15729
|
initialValue: props.defaultsellerRemarks
|
|
15728
|
-
})(
|
|
15730
|
+
})(React.createElement(TextArea, null))))));
|
|
15729
15731
|
});
|
|
15730
15732
|
|
|
15731
15733
|
var ImportBuyerButton = (function () {
|
|
@@ -15752,7 +15754,7 @@ var ImportBuyerButton = (function () {
|
|
|
15752
15754
|
};
|
|
15753
15755
|
}())();
|
|
15754
15756
|
}, [controller]);
|
|
15755
|
-
return
|
|
15757
|
+
return React.createElement(React.Fragment, null, controller.getBuyerList && React.createElement(Button, {
|
|
15756
15758
|
type: "link",
|
|
15757
15759
|
icon: "plus-circle",
|
|
15758
15760
|
onClick: onClick
|
|
@@ -15791,29 +15793,29 @@ var BuyerNameInput = (function (props) {
|
|
|
15791
15793
|
var content = React.useMemo(function () {
|
|
15792
15794
|
var _dataSource$recent;
|
|
15793
15795
|
|
|
15794
|
-
return
|
|
15796
|
+
return React.createElement("div", {
|
|
15795
15797
|
className: 'kts-invoice-operate-buyer-name-content'
|
|
15796
|
-
}, loading ?
|
|
15798
|
+
}, loading ? React.createElement("div", {
|
|
15797
15799
|
style: {
|
|
15798
15800
|
textAlign: 'center'
|
|
15799
15801
|
}
|
|
15800
|
-
},
|
|
15802
|
+
}, React.createElement(Spin, null)) : React.createElement(React.Fragment, null, React.createElement("div", {
|
|
15801
15803
|
className: 'kts-invoice-operate-buyer-name-content-block',
|
|
15802
15804
|
style: {
|
|
15803
15805
|
padding: '14px 10px'
|
|
15804
15806
|
}
|
|
15805
|
-
},
|
|
15807
|
+
}, React.createElement("label", {
|
|
15806
15808
|
style: {
|
|
15807
15809
|
marginBottom: 10
|
|
15808
15810
|
}
|
|
15809
|
-
}, "\u6700\u8FD1\u5F00\u5177"),
|
|
15811
|
+
}, "\u6700\u8FD1\u5F00\u5177"), React.createElement("ul", {
|
|
15810
15812
|
className: 'kts-invoice-operate-buyer-name-content-recently-issued'
|
|
15811
|
-
}, !dataSource.recent || dataSource.recent.length <= 0 ?
|
|
15813
|
+
}, !dataSource.recent || dataSource.recent.length <= 0 ? React.createElement(Empty, {
|
|
15812
15814
|
image: Empty.PRESENTED_IMAGE_SIMPLE
|
|
15813
15815
|
}) : (_dataSource$recent = dataSource.recent) === null || _dataSource$recent === void 0 ? void 0 : _dataSource$recent.map(function (e, i) {
|
|
15814
15816
|
var _dataSource$recent$le, _dataSource$recent2;
|
|
15815
15817
|
|
|
15816
|
-
return
|
|
15818
|
+
return React.createElement("li", {
|
|
15817
15819
|
key: i,
|
|
15818
15820
|
onClick: function onClick() {
|
|
15819
15821
|
onClickItem(e);
|
|
@@ -15821,37 +15823,37 @@ var BuyerNameInput = (function (props) {
|
|
|
15821
15823
|
style: {
|
|
15822
15824
|
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)
|
|
15823
15825
|
}
|
|
15824
|
-
},
|
|
15825
|
-
}))),
|
|
15826
|
+
}, React.createElement(MyTag, null, e.buyerName));
|
|
15827
|
+
}))), React.createElement(Divider, {
|
|
15826
15828
|
style: {
|
|
15827
15829
|
margin: "0 6px"
|
|
15828
15830
|
}
|
|
15829
|
-
}),
|
|
15831
|
+
}), React.createElement("div", {
|
|
15830
15832
|
className: 'kts-invoice-operate-buyer-name-content-block',
|
|
15831
15833
|
style: {
|
|
15832
15834
|
padding: '14px 10px 4px'
|
|
15833
15835
|
}
|
|
15834
|
-
},
|
|
15836
|
+
}, React.createElement("label", {
|
|
15835
15837
|
style: {
|
|
15836
15838
|
padding: '0 10px'
|
|
15837
15839
|
}
|
|
15838
|
-
}, "\u9009\u62E9\u516C\u53F8"),
|
|
15840
|
+
}, "\u9009\u62E9\u516C\u53F8"), React.createElement("div", {
|
|
15839
15841
|
style: {
|
|
15840
15842
|
maxHeight: 200,
|
|
15841
15843
|
overflow: "auto"
|
|
15842
15844
|
}
|
|
15843
|
-
}, !dataSource.list || dataSource.list.length <= 0 ?
|
|
15845
|
+
}, !dataSource.list || dataSource.list.length <= 0 ? React.createElement(Empty, {
|
|
15844
15846
|
image: Empty.PRESENTED_IMAGE_SIMPLE
|
|
15845
15847
|
}) : dataSource.list.map(function (e, i) {
|
|
15846
|
-
return
|
|
15848
|
+
return React.createElement("ul", {
|
|
15847
15849
|
key: i,
|
|
15848
15850
|
onClick: function onClick() {
|
|
15849
15851
|
onClickItem(e);
|
|
15850
15852
|
},
|
|
15851
15853
|
className: 'kts-invoice-operate-buyer-name-content-select-company'
|
|
15852
|
-
},
|
|
15854
|
+
}, React.createElement("li", {
|
|
15853
15855
|
title: e.buyerName
|
|
15854
|
-
}, e.buyerName),
|
|
15856
|
+
}, e.buyerName), React.createElement("li", {
|
|
15855
15857
|
title: e.buyerNo
|
|
15856
15858
|
}, e.buyerNo));
|
|
15857
15859
|
})))));
|
|
@@ -15892,7 +15894,7 @@ var BuyerNameInput = (function (props) {
|
|
|
15892
15894
|
}, [visible, props.value]);
|
|
15893
15895
|
|
|
15894
15896
|
if (model === 'prefab' || !autoContainer) {
|
|
15895
|
-
return
|
|
15897
|
+
return React.createElement(Input, {
|
|
15896
15898
|
size: "small",
|
|
15897
15899
|
autoComplete: "off",
|
|
15898
15900
|
value: props.value,
|
|
@@ -15903,14 +15905,14 @@ var BuyerNameInput = (function (props) {
|
|
|
15903
15905
|
});
|
|
15904
15906
|
}
|
|
15905
15907
|
|
|
15906
|
-
return
|
|
15908
|
+
return React.createElement(Popover$1, {
|
|
15907
15909
|
onVisibleChange: setVisible,
|
|
15908
15910
|
overlayClassName: 'kts-invoice-operate-buyer-name-popover',
|
|
15909
15911
|
placement: "bottomLeft",
|
|
15910
15912
|
trigger: "click",
|
|
15911
15913
|
visible: visible,
|
|
15912
15914
|
content: content
|
|
15913
|
-
},
|
|
15915
|
+
}, React.createElement(Input, {
|
|
15914
15916
|
size: "small",
|
|
15915
15917
|
autoComplete: "off",
|
|
15916
15918
|
value: props.value,
|
|
@@ -15988,7 +15990,7 @@ function useDataSource() {
|
|
|
15988
15990
|
}
|
|
15989
15991
|
|
|
15990
15992
|
function MyTag(props) {
|
|
15991
|
-
return
|
|
15993
|
+
return React.createElement("span", {
|
|
15992
15994
|
className: 'kts-invoice-operate-buyer-name-content-tag',
|
|
15993
15995
|
title: props.children
|
|
15994
15996
|
}, props.children);
|
|
@@ -16024,7 +16026,7 @@ var Buyer$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
16024
16026
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
16025
16027
|
|
|
16026
16028
|
_this.render = function () {
|
|
16027
|
-
return
|
|
16029
|
+
return React.createElement(Main$2, _objectSpread2({}, _this.props));
|
|
16028
16030
|
};
|
|
16029
16031
|
|
|
16030
16032
|
return _this;
|
|
@@ -16055,7 +16057,7 @@ var Main$2 = decorator(Form.create())(function (props) {
|
|
|
16055
16057
|
return [{
|
|
16056
16058
|
id: 'buyerName',
|
|
16057
16059
|
label: '购买方名称',
|
|
16058
|
-
node:
|
|
16060
|
+
node: React.createElement(Input, {
|
|
16059
16061
|
size: "small",
|
|
16060
16062
|
autoComplete: "off",
|
|
16061
16063
|
readOnly: model === 'prefab'
|
|
@@ -16069,7 +16071,7 @@ var Main$2 = decorator(Form.create())(function (props) {
|
|
|
16069
16071
|
}, {
|
|
16070
16072
|
id: 'buyerNo',
|
|
16071
16073
|
label: '购买方纳税人识别号',
|
|
16072
|
-
node:
|
|
16074
|
+
node: React.createElement(Input, {
|
|
16073
16075
|
size: "small",
|
|
16074
16076
|
autoComplete: "off",
|
|
16075
16077
|
readOnly: model === 'prefab'
|
|
@@ -16083,7 +16085,7 @@ var Main$2 = decorator(Form.create())(function (props) {
|
|
|
16083
16085
|
}, {
|
|
16084
16086
|
id: 'buyerAddress',
|
|
16085
16087
|
label: '购买方地址及电话',
|
|
16086
|
-
node:
|
|
16088
|
+
node: React.createElement(Input, {
|
|
16087
16089
|
size: "small",
|
|
16088
16090
|
autoComplete: "off",
|
|
16089
16091
|
readOnly: model === 'prefab'
|
|
@@ -16097,7 +16099,7 @@ var Main$2 = decorator(Form.create())(function (props) {
|
|
|
16097
16099
|
}, {
|
|
16098
16100
|
id: 'buyerBank',
|
|
16099
16101
|
label: '购买方开户行及账号',
|
|
16100
|
-
node:
|
|
16102
|
+
node: React.createElement(Input, {
|
|
16101
16103
|
size: "small",
|
|
16102
16104
|
autoComplete: "off",
|
|
16103
16105
|
readOnly: model === 'prefab'
|
|
@@ -16119,7 +16121,7 @@ var Main$2 = decorator(Form.create())(function (props) {
|
|
|
16119
16121
|
if (e.options.rules.some(function (e) {
|
|
16120
16122
|
return e.required;
|
|
16121
16123
|
})) {
|
|
16122
|
-
return
|
|
16124
|
+
return React.createElement(React.Fragment, null, React.createElement(Text$4, {
|
|
16123
16125
|
type: "danger"
|
|
16124
16126
|
}, "*"), e.label);
|
|
16125
16127
|
} else {
|
|
@@ -16129,29 +16131,29 @@ var Main$2 = decorator(Form.create())(function (props) {
|
|
|
16129
16131
|
return e.label;
|
|
16130
16132
|
}
|
|
16131
16133
|
}, []);
|
|
16132
|
-
return
|
|
16134
|
+
return React.createElement(Form, null, React.createElement("div", {
|
|
16133
16135
|
className: "kts-invoice-operate-buyer"
|
|
16134
|
-
},
|
|
16136
|
+
}, React.createElement("div", {
|
|
16135
16137
|
className: "kts-invoice-operate-buyer-message"
|
|
16136
|
-
},
|
|
16138
|
+
}, React.createElement("div", {
|
|
16137
16139
|
className: "kts-invoice-operate-buyer-title"
|
|
16138
|
-
},
|
|
16140
|
+
}, React.createElement("label", null, "\u8D2D\u4E70\u65B9")), React.createElement("div", {
|
|
16139
16141
|
className: "kts-invoice-operate-buyer-message-Import"
|
|
16140
|
-
}, model !== 'prefab' &&
|
|
16142
|
+
}, model !== 'prefab' && React.createElement(ImportBuyerButton, null)), React.createElement(Descriptions, {
|
|
16141
16143
|
className: "kts-invoice-operate-buyer-message-list",
|
|
16142
16144
|
size: "small",
|
|
16143
16145
|
column: 1,
|
|
16144
16146
|
bordered: true
|
|
16145
16147
|
}, formItem.map(function (item, i) {
|
|
16146
|
-
return
|
|
16148
|
+
return React.createElement(Descriptions.Item, {
|
|
16147
16149
|
key: i,
|
|
16148
16150
|
label: getlabel(item)
|
|
16149
|
-
},
|
|
16150
|
-
}))),
|
|
16151
|
+
}, React.createElement(Form.Item, null, getFieldDecorator(item.id, item.options)(autoContainer ? item.id === 'buyerName' ? React.createElement(BuyerNameInput, null) : item.node : item.node)));
|
|
16152
|
+
}))), React.createElement("div", {
|
|
16151
16153
|
className: "kts-invoice-operate-buyer-password"
|
|
16152
|
-
},
|
|
16154
|
+
}, React.createElement("div", {
|
|
16153
16155
|
className: "kts-invoice-operate-buyer-title"
|
|
16154
|
-
},
|
|
16156
|
+
}, React.createElement("label", null, "\u5BC6\u7801\u533A")), React.createElement("div", null))));
|
|
16155
16157
|
});
|
|
16156
16158
|
|
|
16157
16159
|
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";
|
|
@@ -16168,21 +16170,21 @@ var Sign = decorator(Form.create())(function (props) {
|
|
|
16168
16170
|
}, []); // 注册 form
|
|
16169
16171
|
|
|
16170
16172
|
controller.useForm('sign', form);
|
|
16171
|
-
return
|
|
16173
|
+
return React.createElement("div", {
|
|
16172
16174
|
className: "kts-invoice-operate-sign"
|
|
16173
|
-
},
|
|
16175
|
+
}, React.createElement(Form, _objectSpread2({}, formItemLayout), React.createElement("div", null, React.createElement(Form.Item, {
|
|
16174
16176
|
label: "\u6536\u6B3E\u4EBA"
|
|
16175
16177
|
}, getFieldDecorator('payee', {
|
|
16176
16178
|
initialValue: props.defaultPayee
|
|
16177
|
-
})(
|
|
16179
|
+
})(React.createElement(Input, {
|
|
16178
16180
|
size: "small"
|
|
16179
|
-
})))),
|
|
16181
|
+
})))), React.createElement("div", null, React.createElement(Form.Item, {
|
|
16180
16182
|
label: "\u590D\u6838\u4EBA"
|
|
16181
16183
|
}, getFieldDecorator('reviewer', {
|
|
16182
16184
|
initialValue: props.defaultReviewer
|
|
16183
|
-
})(
|
|
16185
|
+
})(React.createElement(Input, {
|
|
16184
16186
|
size: "small"
|
|
16185
|
-
})))),
|
|
16187
|
+
})))), React.createElement("div", null, React.createElement(Form.Item, {
|
|
16186
16188
|
label: "\u5F00\u7968\u4EBA"
|
|
16187
16189
|
}, getFieldDecorator('issuer', {
|
|
16188
16190
|
initialValue: props.defaultIssuer,
|
|
@@ -16190,7 +16192,7 @@ var Sign = decorator(Form.create())(function (props) {
|
|
|
16190
16192
|
required: true,
|
|
16191
16193
|
message: '请输入开票人'
|
|
16192
16194
|
}]
|
|
16193
|
-
})(
|
|
16195
|
+
})(React.createElement(Input, {
|
|
16194
16196
|
size: "small"
|
|
16195
16197
|
}))))));
|
|
16196
16198
|
});
|
|
@@ -16219,21 +16221,21 @@ var InvoiceHeaderDigtal = decorator(Form.create())(function (props) {
|
|
|
16219
16221
|
return '电子发票(增值税专用发票)';
|
|
16220
16222
|
}, [props.title]);
|
|
16221
16223
|
controller.useForm('invoiceHeader', form);
|
|
16222
|
-
return
|
|
16224
|
+
return React.createElement("div", {
|
|
16223
16225
|
className: "kts-invoice-operate-invoice-digtal-header"
|
|
16224
|
-
},
|
|
16226
|
+
}, React.createElement("div", {
|
|
16225
16227
|
className: "digtal-header-title"
|
|
16226
16228
|
}, title), form.getFieldDecorator('tag', {
|
|
16227
16229
|
initialValue: props.defaultTag
|
|
16228
|
-
})(
|
|
16230
|
+
})(React.createElement(Tag, null)), React.createElement("div", {
|
|
16229
16231
|
className: "digtal-header-fields"
|
|
16230
16232
|
}, form.getFieldDecorator('no', {
|
|
16231
16233
|
initialValue: props.defaultNo
|
|
16232
|
-
})(
|
|
16234
|
+
})(React.createElement(Field, {
|
|
16233
16235
|
title: "\u53D1\u7968\u53F7\u7801\uFF1A"
|
|
16234
16236
|
})), form.getFieldDecorator('invoicingDate', {
|
|
16235
16237
|
initialValue: props.defaultInvoicingDate
|
|
16236
|
-
})(
|
|
16238
|
+
})(React.createElement(Field, {
|
|
16237
16239
|
title: "\u5F00\u7968\u65E5\u671F\uFF1A"
|
|
16238
16240
|
}))));
|
|
16239
16241
|
});
|
|
@@ -16258,15 +16260,15 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
16258
16260
|
value = _this$props.value;
|
|
16259
16261
|
|
|
16260
16262
|
if (value) {
|
|
16261
|
-
return
|
|
16263
|
+
return React.createElement("div", {
|
|
16262
16264
|
className: "digtal-header-field"
|
|
16263
|
-
},
|
|
16265
|
+
}, React.createElement("div", {
|
|
16264
16266
|
className: "digtal-header-field-title"
|
|
16265
|
-
}, title),
|
|
16267
|
+
}, title), React.createElement("div", {
|
|
16266
16268
|
className: "digtal-header-field-value"
|
|
16267
16269
|
}, value));
|
|
16268
16270
|
} else {
|
|
16269
|
-
return
|
|
16271
|
+
return React.createElement(React.Fragment, null);
|
|
16270
16272
|
}
|
|
16271
16273
|
}
|
|
16272
16274
|
}]);
|
|
@@ -16288,9 +16290,9 @@ var Tag = /*#__PURE__*/function (_React$Component2) {
|
|
|
16288
16290
|
_createClass(Tag, [{
|
|
16289
16291
|
key: "render",
|
|
16290
16292
|
value: function render() {
|
|
16291
|
-
return this.props.value ?
|
|
16293
|
+
return this.props.value ? React.createElement("div", {
|
|
16292
16294
|
className: "digtal-header-tag"
|
|
16293
|
-
}, this.props.value) :
|
|
16295
|
+
}, this.props.value) : React.createElement(React.Fragment, null);
|
|
16294
16296
|
}
|
|
16295
16297
|
}]);
|
|
16296
16298
|
|
|
@@ -16466,57 +16468,57 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
16466
16468
|
return rulesMap[field] || defaultRules;
|
|
16467
16469
|
}, [rulesMap, isReadOnly, isReadOnly]);
|
|
16468
16470
|
controller.useForm('stakeholder', form);
|
|
16469
|
-
return
|
|
16471
|
+
return React.createElement("div", {
|
|
16470
16472
|
className: classNames("kts-invoice-operate-invoice-digtal-stakeholder", {
|
|
16471
16473
|
readOnly: readOnly
|
|
16472
16474
|
})
|
|
16473
|
-
},
|
|
16474
|
-
return
|
|
16475
|
-
}), !readOnly &&
|
|
16475
|
+
}, React.createElement("div", null, '购买方信息'.split('').map(function (e) {
|
|
16476
|
+
return React.createElement("span", null, e);
|
|
16477
|
+
}), !readOnly && React.createElement(Icon, {
|
|
16476
16478
|
className: "digtal-stakeholder-expand-button",
|
|
16477
16479
|
component: isExpand ? SvgArrowUp : SvgArrowDown,
|
|
16478
16480
|
onClick: onExpand
|
|
16479
|
-
})),
|
|
16481
|
+
})), React.createElement("div", null, React.createElement(Form, {
|
|
16480
16482
|
className: "digtal-stakeholder-form"
|
|
16481
|
-
},
|
|
16483
|
+
}, React.createElement(Row, {
|
|
16482
16484
|
gutter: [16, 0]
|
|
16483
|
-
}, props.isNaturalPerson === true &&
|
|
16485
|
+
}, props.isNaturalPerson === true && React.createElement(Col, {
|
|
16484
16486
|
span: 24
|
|
16485
|
-
},
|
|
16487
|
+
}, React.createElement(Form.Item, {
|
|
16486
16488
|
label: "\u8D2D\u4E70\u65B9\u4FE1\u606F",
|
|
16487
16489
|
colon: false
|
|
16488
|
-
}, getFieldDecorator('naturalPersonFlag', {})(
|
|
16490
|
+
}, getFieldDecorator('naturalPersonFlag', {})(React.createElement(NaturalPersonFlag, {
|
|
16489
16491
|
readOnly: isReadOnly('naturalPersonFlag')
|
|
16490
|
-
})))),
|
|
16492
|
+
})))), React.createElement(Col, {
|
|
16491
16493
|
span: 24
|
|
16492
|
-
},
|
|
16494
|
+
}, React.createElement(Form.Item, {
|
|
16493
16495
|
label: "\u540D\u79F0",
|
|
16494
16496
|
colon: false
|
|
16495
16497
|
}, getFieldDecorator('buyerName', {
|
|
16496
16498
|
rules: getRules('buyerName', RULES.companyName('购买方名称'))
|
|
16497
|
-
})(
|
|
16499
|
+
})(React.createElement(BuyerNameInput$1, {
|
|
16498
16500
|
myform: form,
|
|
16499
16501
|
fieldName: 'buyerName',
|
|
16500
16502
|
readOnly: isReadOnly('buyerName'),
|
|
16501
16503
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
16502
16504
|
autoComplete: "off",
|
|
16503
|
-
suffix: isShowImportButton === true &&
|
|
16505
|
+
suffix: isShowImportButton === true && React.createElement(Button$1, {
|
|
16504
16506
|
type: 'link',
|
|
16505
16507
|
style: {
|
|
16506
16508
|
padding: 0,
|
|
16507
16509
|
width: 20,
|
|
16508
16510
|
height: '100%'
|
|
16509
16511
|
},
|
|
16510
|
-
icon:
|
|
16512
|
+
icon: React.createElement(Icon, {
|
|
16511
16513
|
component: SvgPlus
|
|
16512
16514
|
}),
|
|
16513
16515
|
onClick: function onClick() {
|
|
16514
16516
|
onClickImportButton && onClickImportButton(controller);
|
|
16515
16517
|
}
|
|
16516
16518
|
})
|
|
16517
|
-
})))),
|
|
16519
|
+
})))), React.createElement(Col, {
|
|
16518
16520
|
span: 24
|
|
16519
|
-
},
|
|
16521
|
+
}, React.createElement(Form.Item, {
|
|
16520
16522
|
label: "\u7EDF\u4E00\u793E\u4F1A\u4FE1\u7528\u4EE3\u7801/\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7",
|
|
16521
16523
|
colon: false
|
|
16522
16524
|
}, getFieldDecorator('buyerTaxId', {
|
|
@@ -16524,15 +16526,15 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
16524
16526
|
required: !isVatNormal,
|
|
16525
16527
|
message: '购买方纳税人识别号必填'
|
|
16526
16528
|
}].concat(_toConsumableArray(RULES.taxId('购买方纳税人识别号'))))
|
|
16527
|
-
})(
|
|
16529
|
+
})(React.createElement(BuyerNameInput$1, {
|
|
16528
16530
|
myform: form,
|
|
16529
16531
|
fieldName: 'buyerTaxId',
|
|
16530
16532
|
readOnly: isReadOnly('buyerTaxId'),
|
|
16531
16533
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
16532
16534
|
autoComplete: "off"
|
|
16533
|
-
})))), isExpand &&
|
|
16535
|
+
})))), isExpand && React.createElement(React.Fragment, null, React.createElement(Col, {
|
|
16534
16536
|
span: 15
|
|
16535
|
-
},
|
|
16537
|
+
}, React.createElement(Form.Item, {
|
|
16536
16538
|
label: "\u8D2D\u4E70\u65B9\u5730\u5740",
|
|
16537
16539
|
colon: false
|
|
16538
16540
|
}, getFieldDecorator('buyerAddress', {
|
|
@@ -16540,77 +16542,77 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
16540
16542
|
max: 100,
|
|
16541
16543
|
message: '购买方地址内容超长'
|
|
16542
16544
|
}])
|
|
16543
|
-
})(
|
|
16545
|
+
})(React.createElement(MyInput$1, {
|
|
16544
16546
|
readOnly: isReadOnly('buyerAddress'),
|
|
16545
16547
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
16546
16548
|
autoComplete: "off"
|
|
16547
|
-
})))),
|
|
16549
|
+
})))), React.createElement(Col, {
|
|
16548
16550
|
span: 9
|
|
16549
|
-
},
|
|
16551
|
+
}, React.createElement(Form.Item, {
|
|
16550
16552
|
label: "\u7535\u8BDD",
|
|
16551
16553
|
colon: false
|
|
16552
16554
|
}, getFieldDecorator('buyerPhone', {
|
|
16553
16555
|
rules: getRules('buyerPhone', RULES.buyerTelPhone('购买方电话'))
|
|
16554
|
-
})(
|
|
16556
|
+
})(React.createElement(MyInput$1, {
|
|
16555
16557
|
readOnly: isReadOnly('buyerPhone'),
|
|
16556
16558
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
16557
16559
|
autoComplete: "off"
|
|
16558
|
-
})))),
|
|
16560
|
+
})))), React.createElement(Col, {
|
|
16559
16561
|
span: 12
|
|
16560
|
-
},
|
|
16562
|
+
}, React.createElement(Form.Item, {
|
|
16561
16563
|
label: "\u8D2D\u4E70\u65B9\u5F00\u6237\u94F6\u884C",
|
|
16562
16564
|
colon: false
|
|
16563
16565
|
}, getFieldDecorator('buyerBank', {
|
|
16564
16566
|
rules: getRules('buyerBank', RULES.bankName('购买方开户银行'))
|
|
16565
|
-
})(
|
|
16567
|
+
})(React.createElement(MyInput$1, {
|
|
16566
16568
|
readOnly: isReadOnly('buyerBank'),
|
|
16567
16569
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
16568
16570
|
autoComplete: "off"
|
|
16569
|
-
})))),
|
|
16571
|
+
})))), React.createElement(Col, {
|
|
16570
16572
|
span: 12
|
|
16571
|
-
},
|
|
16573
|
+
}, React.createElement(Form.Item, {
|
|
16572
16574
|
label: "\u94F6\u884C\u8D26\u53F7",
|
|
16573
16575
|
colon: false
|
|
16574
16576
|
}, getFieldDecorator('buyerAccount', {
|
|
16575
16577
|
rules: getRules('buyerAccount', RULES.bankAccount('购买方银行账号'))
|
|
16576
|
-
})(
|
|
16578
|
+
})(React.createElement(MyInput$1, {
|
|
16577
16579
|
readOnly: isReadOnly('buyerAccount'),
|
|
16578
16580
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
16579
16581
|
autoComplete: "off"
|
|
16580
|
-
})))))))),
|
|
16581
|
-
return
|
|
16582
|
-
}), !readOnly &&
|
|
16582
|
+
})))))))), React.createElement("div", null, '销售方信息'.split('').map(function (e) {
|
|
16583
|
+
return React.createElement("span", null, e);
|
|
16584
|
+
}), !readOnly && React.createElement(Icon, {
|
|
16583
16585
|
className: "digtal-stakeholder-expand-button",
|
|
16584
16586
|
component: isExpand ? SvgArrowUp : SvgArrowDown,
|
|
16585
16587
|
onClick: onExpand
|
|
16586
|
-
})),
|
|
16588
|
+
})), React.createElement("div", null, !readOnly && props.lineCredit && React.createElement("div", {
|
|
16587
16589
|
style: {
|
|
16588
16590
|
marginTop: 20
|
|
16589
16591
|
}
|
|
16590
|
-
},
|
|
16592
|
+
}, React.createElement(Tooltip$1, {
|
|
16591
16593
|
trigger: "click",
|
|
16592
16594
|
title: props.lineCredit
|
|
16593
|
-
},
|
|
16595
|
+
}, React.createElement(Button$1, {
|
|
16594
16596
|
type: "link"
|
|
16595
|
-
}, "\u67E5\u770B\u5F53\u524D\u53EF\u7528\u6388\u4FE1\u989D\u5EA6"))),
|
|
16597
|
+
}, "\u67E5\u770B\u5F53\u524D\u53EF\u7528\u6388\u4FE1\u989D\u5EA6"))), React.createElement(Form, {
|
|
16596
16598
|
className: "digtal-stakeholder-form"
|
|
16597
|
-
},
|
|
16599
|
+
}, React.createElement(Row, {
|
|
16598
16600
|
gutter: [16, 0]
|
|
16599
|
-
},
|
|
16601
|
+
}, React.createElement(Col, {
|
|
16600
16602
|
span: 24
|
|
16601
|
-
},
|
|
16603
|
+
}, React.createElement(Form.Item, {
|
|
16602
16604
|
label: "\u540D\u79F0",
|
|
16603
16605
|
colon: false
|
|
16604
16606
|
}, getFieldDecorator('supplierName', {
|
|
16605
16607
|
rules: getRules('supplierName', RULES.companyName('销售方名称')),
|
|
16606
16608
|
getValueFromEvent: formatCompanyName
|
|
16607
|
-
})(
|
|
16609
|
+
})(React.createElement(MyInput$1, {
|
|
16608
16610
|
readOnly: isReadOnly('supplierName'),
|
|
16609
16611
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
16610
16612
|
autoComplete: "off"
|
|
16611
|
-
})))),
|
|
16613
|
+
})))), React.createElement(Col, {
|
|
16612
16614
|
span: 24
|
|
16613
|
-
},
|
|
16615
|
+
}, React.createElement(Form.Item, {
|
|
16614
16616
|
label: "\u7EDF\u4E00\u793E\u4F1A\u4FE1\u7528\u4EE3\u7801/\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7",
|
|
16615
16617
|
colon: false
|
|
16616
16618
|
}, getFieldDecorator('supplierTaxId', {
|
|
@@ -16618,13 +16620,13 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
16618
16620
|
required: true,
|
|
16619
16621
|
message: '销售方纳税人识别号必填'
|
|
16620
16622
|
}].concat(_toConsumableArray(RULES.taxId('销售方纳税人识别号'))))
|
|
16621
|
-
})(
|
|
16623
|
+
})(React.createElement(MyInput$1, {
|
|
16622
16624
|
readOnly: isReadOnly('supplierTaxId'),
|
|
16623
16625
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
16624
16626
|
autoComplete: "off"
|
|
16625
|
-
})))), isExpand &&
|
|
16627
|
+
})))), isExpand && React.createElement(React.Fragment, null, React.createElement(Col, {
|
|
16626
16628
|
span: 15
|
|
16627
|
-
},
|
|
16629
|
+
}, React.createElement(Form.Item, {
|
|
16628
16630
|
label: "\u9500\u552E\u65B9\u5730\u5740",
|
|
16629
16631
|
colon: false
|
|
16630
16632
|
}, getFieldDecorator('sellerAddress', {
|
|
@@ -16632,40 +16634,40 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
16632
16634
|
max: 300,
|
|
16633
16635
|
message: '销售方地址内容超长'
|
|
16634
16636
|
}])
|
|
16635
|
-
})(
|
|
16637
|
+
})(React.createElement(MyInput$1, {
|
|
16636
16638
|
readOnly: isReadOnly('sellerAddress'),
|
|
16637
16639
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
16638
16640
|
autoComplete: "off"
|
|
16639
|
-
})))),
|
|
16641
|
+
})))), React.createElement(Col, {
|
|
16640
16642
|
span: 9
|
|
16641
|
-
},
|
|
16643
|
+
}, React.createElement(Form.Item, {
|
|
16642
16644
|
label: "\u7535\u8BDD",
|
|
16643
16645
|
colon: false
|
|
16644
16646
|
}, getFieldDecorator('sellerPhone', {
|
|
16645
16647
|
rules: getRules('sellerPhone', RULES.sellerTelPhone('销售方电话'))
|
|
16646
|
-
})(
|
|
16648
|
+
})(React.createElement(MyInput$1, {
|
|
16647
16649
|
readOnly: isReadOnly('sellerPhone'),
|
|
16648
16650
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
16649
16651
|
autoComplete: "off"
|
|
16650
|
-
})))),
|
|
16652
|
+
})))), React.createElement(Col, {
|
|
16651
16653
|
span: 12
|
|
16652
|
-
},
|
|
16654
|
+
}, React.createElement(Form.Item, {
|
|
16653
16655
|
label: "\u9500\u552E\u65B9\u5F00\u6237\u94F6\u884C",
|
|
16654
16656
|
colon: false
|
|
16655
16657
|
}, getFieldDecorator('sellerBank', {
|
|
16656
16658
|
rules: getRules('sellerBank', RULES.bankName('销售方开户银行'))
|
|
16657
|
-
})(
|
|
16659
|
+
})(React.createElement(MyInput$1, {
|
|
16658
16660
|
readOnly: isReadOnly('sellerBank'),
|
|
16659
16661
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
16660
16662
|
autoComplete: "off"
|
|
16661
|
-
})))),
|
|
16663
|
+
})))), React.createElement(Col, {
|
|
16662
16664
|
span: 12
|
|
16663
|
-
},
|
|
16665
|
+
}, React.createElement(Form.Item, {
|
|
16664
16666
|
label: "\u94F6\u884C\u8D26\u53F7",
|
|
16665
16667
|
colon: false
|
|
16666
16668
|
}, getFieldDecorator('sellerAccount', {
|
|
16667
16669
|
rules: getRules('sellerAccount', RULES.bankAccount('销售方银行账号'))
|
|
16668
|
-
})(
|
|
16670
|
+
})(React.createElement(MyInput$1, {
|
|
16669
16671
|
readOnly: isReadOnly('sellerAccount'),
|
|
16670
16672
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
16671
16673
|
autoComplete: "off"
|
|
@@ -16686,7 +16688,7 @@ function NaturalPersonFlag(props) {
|
|
|
16686
16688
|
React.useEffect(function () {
|
|
16687
16689
|
setValue(props.value || 'COMPANY');
|
|
16688
16690
|
}, [props.value]);
|
|
16689
|
-
return
|
|
16691
|
+
return React.createElement(Checkbox$1, {
|
|
16690
16692
|
disabled: props.readOnly,
|
|
16691
16693
|
checked: value === 'NATURAL',
|
|
16692
16694
|
onChange: onChange
|
|
@@ -16789,8 +16791,8 @@ function BuyerNameInput$1(props) {
|
|
|
16789
16791
|
return _ref.apply(this, arguments);
|
|
16790
16792
|
};
|
|
16791
16793
|
}(), [autoComplete.onBuyerNameSearch, fieldName]);
|
|
16792
|
-
if (props.readOnly) return
|
|
16793
|
-
return
|
|
16794
|
+
if (props.readOnly) return React.createElement("span", null, props.value);
|
|
16795
|
+
return React.createElement(AutoComplete$1, {
|
|
16794
16796
|
onSearch: onSearch,
|
|
16795
16797
|
options: options.map(function (e) {
|
|
16796
16798
|
return {
|
|
@@ -16799,7 +16801,7 @@ function BuyerNameInput$1(props) {
|
|
|
16799
16801
|
}),
|
|
16800
16802
|
onChange: onChangeAutoComplete,
|
|
16801
16803
|
value: props.value
|
|
16802
|
-
},
|
|
16804
|
+
}, React.createElement(Input$1, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
16803
16805
|
style: _objectSpread2({
|
|
16804
16806
|
width: '100%'
|
|
16805
16807
|
}, props.style)
|
|
@@ -16823,9 +16825,9 @@ var MyInput$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
16823
16825
|
var props = this.props;
|
|
16824
16826
|
|
|
16825
16827
|
if (props.readOnly) {
|
|
16826
|
-
return
|
|
16828
|
+
return React.createElement("span", null, props.value);
|
|
16827
16829
|
} else {
|
|
16828
|
-
return
|
|
16830
|
+
return React.createElement(Input$1, _objectSpread2({}, props));
|
|
16829
16831
|
}
|
|
16830
16832
|
}
|
|
16831
16833
|
}]);
|
|
@@ -16882,43 +16884,43 @@ var SignDigtal = decorator(Form.create())(function (props) {
|
|
|
16882
16884
|
controller.useForm('sign', form);
|
|
16883
16885
|
|
|
16884
16886
|
if (readOnly) {
|
|
16885
|
-
return
|
|
16887
|
+
return React.createElement("div", {
|
|
16886
16888
|
className: "kts-invoice-operate-sign-digtal-readOnly"
|
|
16887
|
-
},
|
|
16889
|
+
}, React.createElement("div", {
|
|
16888
16890
|
className: 'sign-digtal-readOnly-cont'
|
|
16889
|
-
},
|
|
16891
|
+
}, React.createElement("div", null, React.createElement("span", null, "\u5907"), React.createElement("span", null, "\u6CE8")), React.createElement("div", null, getFieldDecorator('remarks', {
|
|
16890
16892
|
initialValue: props.defaultRemark
|
|
16891
|
-
})(isEnables('remarks') ?
|
|
16893
|
+
})(isEnables('remarks') ? React.createElement(Input$1.TextArea, {
|
|
16892
16894
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
16893
16895
|
style: {
|
|
16894
16896
|
height: '100%'
|
|
16895
16897
|
}
|
|
16896
|
-
}) :
|
|
16898
|
+
}) : React.createElement(MyDiv$1, null)))), React.createElement(Form, {
|
|
16897
16899
|
layout: 'inline',
|
|
16898
16900
|
className: 'digtal-readOnly-form'
|
|
16899
|
-
},
|
|
16901
|
+
}, React.createElement(Form.Item, {
|
|
16900
16902
|
label: "\u5F00\u7968\u4EBA"
|
|
16901
16903
|
}, getFieldDecorator('drawer', {
|
|
16902
16904
|
initialValue: props.defaultRemark
|
|
16903
|
-
})(
|
|
16905
|
+
})(React.createElement(MyDiv$1, null)))));
|
|
16904
16906
|
} else {
|
|
16905
|
-
return
|
|
16907
|
+
return React.createElement("div", {
|
|
16906
16908
|
className: "kts-invoice-operate-sign-digtal"
|
|
16907
|
-
},
|
|
16909
|
+
}, React.createElement("div", {
|
|
16908
16910
|
className: 'sign-digtal-label'
|
|
16909
|
-
}, "\u5907\u6CE8\u4FE1\u606F"),
|
|
16911
|
+
}, "\u5907\u6CE8\u4FE1\u606F"), React.createElement(Form, null, React.createElement(Form.Item, {
|
|
16910
16912
|
label: "\u5907\u6CE8"
|
|
16911
16913
|
}, getFieldDecorator('remarks', {
|
|
16912
16914
|
initialValue: props.defaultRemark
|
|
16913
|
-
})(
|
|
16915
|
+
})(React.createElement(Input$1.TextArea, {
|
|
16914
16916
|
readOnly: isReadOnly('remarks'),
|
|
16915
16917
|
autoSize: true,
|
|
16916
16918
|
placeholder: "\u8BF7\u8F93\u5165"
|
|
16917
|
-
}))),
|
|
16919
|
+
}))), React.createElement(Form.Item, {
|
|
16918
16920
|
label: "\u5F00\u7968\u4EBA"
|
|
16919
16921
|
}, getFieldDecorator('drawer', {
|
|
16920
16922
|
initialValue: props.defaultIssuer
|
|
16921
|
-
})(
|
|
16923
|
+
})(React.createElement(Input$1, {
|
|
16922
16924
|
readOnly: isReadOnly('drawer'),
|
|
16923
16925
|
style: {
|
|
16924
16926
|
width: 313
|
|
@@ -16942,7 +16944,7 @@ var MyDiv$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
16942
16944
|
_createClass(MyDiv, [{
|
|
16943
16945
|
key: "render",
|
|
16944
16946
|
value: function render() {
|
|
16945
|
-
return
|
|
16947
|
+
return React.createElement("div", null, this.props.value);
|
|
16946
16948
|
}
|
|
16947
16949
|
}]);
|
|
16948
16950
|
|
|
@@ -17043,12 +17045,12 @@ function TableVirtual$1 (props) {
|
|
|
17043
17045
|
if (!cont) return;
|
|
17044
17046
|
cont.scrollTop = 0;
|
|
17045
17047
|
}, [(_props$dataSource2 = props.dataSource) === null || _props$dataSource2 === void 0 ? void 0 : _props$dataSource2.length]);
|
|
17046
|
-
return
|
|
17048
|
+
return React.createElement("span", {
|
|
17047
17049
|
className: "kts-invoice-operate-goods-table-virtual",
|
|
17048
17050
|
ref: function ref(e) {
|
|
17049
17051
|
setSelf(e);
|
|
17050
17052
|
}
|
|
17051
|
-
},
|
|
17053
|
+
}, React.createElement(TableManual, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
17052
17054
|
dataSource: dataSource,
|
|
17053
17055
|
// 新版本Table会有输入框无法连续输入的问题,先兼容老版本
|
|
17054
17056
|
tableComponent: Table
|
|
@@ -17161,51 +17163,51 @@ var Statistics$1 = (function () {
|
|
|
17161
17163
|
});
|
|
17162
17164
|
return sum.done().toNumber();
|
|
17163
17165
|
}, []);
|
|
17164
|
-
return
|
|
17166
|
+
return React.createElement("div", {
|
|
17165
17167
|
className: 'kts-invoice-operate-goods-list-statistics-digtal'
|
|
17166
|
-
},
|
|
17168
|
+
}, React.createElement("div", {
|
|
17167
17169
|
className: 'statistics-digtal-total'
|
|
17168
|
-
},
|
|
17170
|
+
}, React.createElement("div", null, "\u5408\u8BA1"), React.createElement("div", {
|
|
17169
17171
|
style: {
|
|
17170
17172
|
flex: 1
|
|
17171
17173
|
}
|
|
17172
|
-
}),
|
|
17174
|
+
}), React.createElement("div", {
|
|
17173
17175
|
style: {
|
|
17174
17176
|
width: 119,
|
|
17175
17177
|
textAlign: 'right',
|
|
17176
17178
|
paddingRight: 15
|
|
17177
17179
|
}
|
|
17178
|
-
}, "\xA5", parseFloat(isTaxIncluded ? lineAmountIncludeTax : lineAmountExcludeTax).toFixed(2)),
|
|
17180
|
+
}, "\xA5", parseFloat(isTaxIncluded ? lineAmountIncludeTax : lineAmountExcludeTax).toFixed(2)), React.createElement("div", {
|
|
17179
17181
|
style: {
|
|
17180
17182
|
width: 119,
|
|
17181
17183
|
textAlign: 'right',
|
|
17182
17184
|
paddingRight: 15
|
|
17183
17185
|
}
|
|
17184
|
-
}, "\xA5", parseFloat(taxAmount).toFixed(2))),
|
|
17186
|
+
}, "\xA5", parseFloat(taxAmount).toFixed(2))), React.createElement("div", {
|
|
17185
17187
|
className: 'statistics-digtal-total-tax'
|
|
17186
|
-
},
|
|
17188
|
+
}, React.createElement("div", null, "\u4EF7\u7A0E\u5408\u8BA1\uFF08\u5927\u5199\uFF09"), React.createElement("div", {
|
|
17187
17189
|
style: {
|
|
17188
17190
|
paddingLeft: 30
|
|
17189
17191
|
}
|
|
17190
|
-
},
|
|
17192
|
+
}, React.createElement(Icon, {
|
|
17191
17193
|
component: SvgFork
|
|
17192
|
-
}),
|
|
17194
|
+
}), React.createElement("span", {
|
|
17193
17195
|
style: {
|
|
17194
17196
|
fontWeight: 'bold',
|
|
17195
17197
|
marginLeft: 4
|
|
17196
17198
|
}
|
|
17197
17199
|
}, nzhcn$1.toMoney(lineAmountIncludeTax, {
|
|
17198
17200
|
outSymbol: false
|
|
17199
|
-
}))),
|
|
17201
|
+
}))), React.createElement("div", {
|
|
17200
17202
|
style: {
|
|
17201
17203
|
flex: 1
|
|
17202
17204
|
}
|
|
17203
|
-
}),
|
|
17205
|
+
}), React.createElement("div", {
|
|
17204
17206
|
style: {
|
|
17205
17207
|
width: 90,
|
|
17206
17208
|
color: '#9F613E'
|
|
17207
17209
|
}
|
|
17208
|
-
}, "\uFF08\u5C0F\u5199\uFF09"),
|
|
17210
|
+
}, "\uFF08\u5C0F\u5199\uFF09"), React.createElement("div", {
|
|
17209
17211
|
style: {
|
|
17210
17212
|
width: 119
|
|
17211
17213
|
}
|
|
@@ -17264,10 +17266,10 @@ var AddRowButton$1 = (function () {
|
|
|
17264
17266
|
}
|
|
17265
17267
|
}, _callee);
|
|
17266
17268
|
})), [controller, rootElement]);
|
|
17267
|
-
if (isAddRow === false) return
|
|
17268
|
-
if (model === 'prefab') return
|
|
17269
|
-
if (model === 'readOnly') return
|
|
17270
|
-
return
|
|
17269
|
+
if (isAddRow === false) return React.createElement(React.Fragment, null);
|
|
17270
|
+
if (model === 'prefab') return React.createElement(React.Fragment, null);
|
|
17271
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
17272
|
+
return React.createElement(Button$1, {
|
|
17271
17273
|
size: 'small',
|
|
17272
17274
|
type: 'primary',
|
|
17273
17275
|
onClick: onClick,
|
|
@@ -17420,11 +17422,11 @@ var TaxIncludedSwitch$1 = (function () {
|
|
|
17420
17422
|
};
|
|
17421
17423
|
}())();
|
|
17422
17424
|
}, []);
|
|
17423
|
-
return
|
|
17425
|
+
return React.createElement("span", null, React.createElement("label", {
|
|
17424
17426
|
style: {
|
|
17425
17427
|
marginRight: 2
|
|
17426
17428
|
}
|
|
17427
|
-
}, "\u542B\u7A0E"),
|
|
17429
|
+
}, "\u542B\u7A0E"), React.createElement(Switch, {
|
|
17428
17430
|
disabled: isSwitchTax === false,
|
|
17429
17431
|
checked: isTaxIncluded,
|
|
17430
17432
|
defaultChecked: true,
|
|
@@ -17520,12 +17522,12 @@ function Search$1() {
|
|
|
17520
17522
|
};
|
|
17521
17523
|
}());
|
|
17522
17524
|
}, [value, controller]);
|
|
17523
|
-
return
|
|
17525
|
+
return React.createElement(Input$1, {
|
|
17524
17526
|
readOnly: readOnly,
|
|
17525
17527
|
value: value,
|
|
17526
17528
|
className: "kts-invoice-operate-goods-list-search",
|
|
17527
17529
|
placeholder: "\u8BF7\u60A8\u8F93\u5165\u9879\u76EE\u540D\u79F0\u3001\u89C4\u683C\u578B\u53F7\u3001\u91D1\u989D(".concat(isTaxIncluded ? '含税' : '不含税', ")\u641C\u7D22"),
|
|
17528
|
-
prefix:
|
|
17530
|
+
prefix: React.createElement(Icon$1, {
|
|
17529
17531
|
component: SvgMagnifier$1,
|
|
17530
17532
|
style: {
|
|
17531
17533
|
color: "#b8b8b8"
|
|
@@ -17570,12 +17572,12 @@ function TableRow$1(props) {
|
|
|
17570
17572
|
return undefined;
|
|
17571
17573
|
}
|
|
17572
17574
|
}, [rowKey, goodsMap]);
|
|
17573
|
-
return rowKey === current && current ?
|
|
17575
|
+
return rowKey === current && current ? React.createElement("tr", {
|
|
17574
17576
|
style: {
|
|
17575
17577
|
height: 50,
|
|
17576
17578
|
position: 'relative'
|
|
17577
17579
|
}
|
|
17578
|
-
},
|
|
17580
|
+
}, React.createElement("div", {
|
|
17579
17581
|
style: {
|
|
17580
17582
|
height: 0.5,
|
|
17581
17583
|
width: '100%',
|
|
@@ -17583,9 +17585,7 @@ function TableRow$1(props) {
|
|
|
17583
17585
|
position: 'absolute',
|
|
17584
17586
|
bottom: 0
|
|
17585
17587
|
}
|
|
17586
|
-
})) :
|
|
17587
|
-
/*#__PURE__*/
|
|
17588
|
-
// <tr {...props} className={classnames(props.className, discount, (rowKey === container && current) ? 'kts-invoice-operate-goods-list-itemName-drag-container' : '')} />
|
|
17588
|
+
})) : // <tr {...props} className={classnames(props.className, discount, (rowKey === container && current) ? 'kts-invoice-operate-goods-list-itemName-drag-container' : '')} />
|
|
17589
17589
|
React.createElement("tr", _objectSpread2(_objectSpread2({}, props), {}, {
|
|
17590
17590
|
className: classNames(props.className, discount, rowKey === container && current ? 'kts-invoice-operate-goods-list-itemName-drag-container-' + site : undefined)
|
|
17591
17591
|
}));
|
|
@@ -17625,9 +17625,9 @@ var TitleText$1 = (function (props) {
|
|
|
17625
17625
|
return !!e.required;
|
|
17626
17626
|
})) || props.required;
|
|
17627
17627
|
}, [rules, props.required]);
|
|
17628
|
-
return
|
|
17628
|
+
return React.createElement(React.Fragment, null, required ? React.createElement(Text$5, {
|
|
17629
17629
|
type: "danger"
|
|
17630
|
-
}, "*") :
|
|
17630
|
+
}, "*") : React.createElement(React.Fragment, null), children);
|
|
17631
17631
|
});
|
|
17632
17632
|
|
|
17633
17633
|
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";
|
|
@@ -17699,14 +17699,14 @@ function ItemNameInput$1(props) {
|
|
|
17699
17699
|
return _ref.apply(this, arguments);
|
|
17700
17700
|
};
|
|
17701
17701
|
}(), [autoComplete.onItemNameSearch]);
|
|
17702
|
-
return
|
|
17702
|
+
return React.createElement("div", {
|
|
17703
17703
|
className: 'kts-invoice-operate-goods-list-itemName-input'
|
|
17704
|
-
}, props.shorthand &&
|
|
17704
|
+
}, props.shorthand && React.createElement("span", {
|
|
17705
17705
|
style: {
|
|
17706
17706
|
alignSelf: 'center',
|
|
17707
17707
|
fontSize: 12
|
|
17708
17708
|
}
|
|
17709
|
-
}, "*", props.shorthand, "*"),
|
|
17709
|
+
}, "*", props.shorthand, "*"), React.createElement(AutoComplete$1, {
|
|
17710
17710
|
onSearch: onSearch,
|
|
17711
17711
|
value: props.value,
|
|
17712
17712
|
options: options.map(function (e) {
|
|
@@ -17715,7 +17715,7 @@ function ItemNameInput$1(props) {
|
|
|
17715
17715
|
};
|
|
17716
17716
|
}),
|
|
17717
17717
|
onSelect: onChangeAutoComplete
|
|
17718
|
-
},
|
|
17718
|
+
}, React.createElement(Input$1, {
|
|
17719
17719
|
style: {
|
|
17720
17720
|
height: '100%'
|
|
17721
17721
|
},
|
|
@@ -18821,7 +18821,7 @@ function Drag$2(props) {
|
|
|
18821
18821
|
var currentGood = controller.state.goodsListState.goodsList.filter(function (e) {
|
|
18822
18822
|
return e.$index === record.$index;
|
|
18823
18823
|
})[0];
|
|
18824
|
-
mounting(
|
|
18824
|
+
mounting(React.createElement(DragDiv$1, _objectSpread2({}, currentGood)));
|
|
18825
18825
|
rowList.forEach(function (e) {
|
|
18826
18826
|
e.addEventListener('mousemove', onMousemove);
|
|
18827
18827
|
});
|
|
@@ -18982,7 +18982,7 @@ function Drag$2(props) {
|
|
|
18982
18982
|
|
|
18983
18983
|
|
|
18984
18984
|
function insert() {
|
|
18985
|
-
mounting(
|
|
18985
|
+
mounting(React.createElement(React.Fragment, null));
|
|
18986
18986
|
controller.run( /*#__PURE__*/function () {
|
|
18987
18987
|
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(s) {
|
|
18988
18988
|
var _s$goodsListState$dra, container, current, site, goodsList, goodsMap, _currentGood, currentIndex, moveGoods;
|
|
@@ -19061,7 +19061,7 @@ function Drag$2(props) {
|
|
|
19061
19061
|
}
|
|
19062
19062
|
}, [controller, record, disabled]);
|
|
19063
19063
|
var renderButton = React.useMemo(function () {
|
|
19064
|
-
return
|
|
19064
|
+
return React.createElement(Button, {
|
|
19065
19065
|
type: 'link',
|
|
19066
19066
|
style: {
|
|
19067
19067
|
padding: 0
|
|
@@ -19072,13 +19072,13 @@ function Drag$2(props) {
|
|
|
19072
19072
|
},
|
|
19073
19073
|
className: "kts-invoice-operate-goods-list-itemName-drag",
|
|
19074
19074
|
onMouseOver: controller.saveEditGood
|
|
19075
|
-
},
|
|
19075
|
+
}, React.createElement(Icon, {
|
|
19076
19076
|
component: SvgI001$1
|
|
19077
19077
|
}));
|
|
19078
19078
|
}, [onMouseDown, controller]);
|
|
19079
19079
|
|
|
19080
19080
|
if (disabled) {
|
|
19081
|
-
return
|
|
19081
|
+
return React.createElement(Popover, {
|
|
19082
19082
|
content: '您还有未编辑完成的商品',
|
|
19083
19083
|
trigger: 'focus'
|
|
19084
19084
|
}, renderButton);
|
|
@@ -19118,13 +19118,13 @@ function DragDiv$1(props) {
|
|
|
19118
19118
|
window.removeEventListener('mousemove', onMousemove);
|
|
19119
19119
|
};
|
|
19120
19120
|
});
|
|
19121
|
-
return
|
|
19121
|
+
return React.createElement("div", {
|
|
19122
19122
|
className: "kts-invoice-operate-goods-list-itemName-drag-div",
|
|
19123
19123
|
style: {
|
|
19124
19124
|
top: y,
|
|
19125
19125
|
left: x
|
|
19126
19126
|
}
|
|
19127
|
-
},
|
|
19127
|
+
}, React.createElement("span", null, props.itemName), React.createElement("span", null, props.itemModelName), React.createElement("span", null, props.unit));
|
|
19128
19128
|
}
|
|
19129
19129
|
|
|
19130
19130
|
var useColumns$1 = (function (form) {
|
|
@@ -19240,7 +19240,7 @@ var useColumns$1 = (function (form) {
|
|
|
19240
19240
|
width: 40,
|
|
19241
19241
|
align: 'center',
|
|
19242
19242
|
render: function render(_, record) {
|
|
19243
|
-
return
|
|
19243
|
+
return React.createElement(Drag$2, {
|
|
19244
19244
|
record: record
|
|
19245
19245
|
});
|
|
19246
19246
|
}
|
|
@@ -19250,20 +19250,20 @@ var useColumns$1 = (function (form) {
|
|
|
19250
19250
|
dataIndex: 'serialNo',
|
|
19251
19251
|
width: 50,
|
|
19252
19252
|
render: function render(e) {
|
|
19253
|
-
return
|
|
19253
|
+
return React.createElement("span", {
|
|
19254
19254
|
style: {
|
|
19255
19255
|
padding: '0 10px'
|
|
19256
19256
|
}
|
|
19257
19257
|
}, e);
|
|
19258
19258
|
}
|
|
19259
19259
|
}, {
|
|
19260
|
-
title:
|
|
19260
|
+
title: React.createElement(TitleText$1, {
|
|
19261
19261
|
required: true
|
|
19262
19262
|
}, "\u9879\u76EE\u540D\u79F0"),
|
|
19263
19263
|
key: 'itemName',
|
|
19264
19264
|
render: function render(_, record) {
|
|
19265
19265
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
19266
|
-
return
|
|
19266
|
+
return React.createElement(Form.Item, null, React.createElement("div", {
|
|
19267
19267
|
style: {
|
|
19268
19268
|
display: 'flex'
|
|
19269
19269
|
}
|
|
@@ -19310,11 +19310,11 @@ var useColumns$1 = (function (form) {
|
|
|
19310
19310
|
return validator;
|
|
19311
19311
|
}()
|
|
19312
19312
|
}])
|
|
19313
|
-
})(
|
|
19313
|
+
})(React.createElement(ItemNameInput$1, {
|
|
19314
19314
|
shorthand: editGood.shorthand,
|
|
19315
|
-
suffix:
|
|
19315
|
+
suffix: React.createElement(Tooltip$1, {
|
|
19316
19316
|
title: "\u70B9\u51FB\u4ECE\u5546\u54C1\u7BA1\u7406\u4E2D\u6DFB\u52A0\u5546\u54C1\u4FE1\u606F"
|
|
19317
|
-
},
|
|
19317
|
+
}, React.createElement(Button$1, {
|
|
19318
19318
|
type: "link",
|
|
19319
19319
|
style: {
|
|
19320
19320
|
padding: 0,
|
|
@@ -19322,7 +19322,7 @@ var useColumns$1 = (function (form) {
|
|
|
19322
19322
|
fontSize: 20,
|
|
19323
19323
|
fill: '#0074ff'
|
|
19324
19324
|
},
|
|
19325
|
-
icon:
|
|
19325
|
+
icon: React.createElement(SvgPlus$1, null),
|
|
19326
19326
|
onClick: controller.pipeline( /*#__PURE__*/function () {
|
|
19327
19327
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(s) {
|
|
19328
19328
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
@@ -19349,9 +19349,9 @@ var useColumns$1 = (function (form) {
|
|
|
19349
19349
|
}
|
|
19350
19350
|
}))));
|
|
19351
19351
|
} else {
|
|
19352
|
-
return
|
|
19352
|
+
return React.createElement("span", null, record.lineAttribute === LineAttributeType$1.折扣行 ? React.createElement("span", {
|
|
19353
19353
|
className: 'goods-list-digtal-discount-tag'
|
|
19354
|
-
}, "\u6298\u6263") :
|
|
19354
|
+
}, "\u6298\u6263") : React.createElement(React.Fragment, null), React.createElement(MyItemNameDiv$1, {
|
|
19355
19355
|
valueT: formatSearch$1(getItemNameWithShorthand({
|
|
19356
19356
|
shorthand: record.shorthand,
|
|
19357
19357
|
full: record.itemNameSelf || ''
|
|
@@ -19365,17 +19365,17 @@ var useColumns$1 = (function (form) {
|
|
|
19365
19365
|
}
|
|
19366
19366
|
}
|
|
19367
19367
|
}, {
|
|
19368
|
-
title:
|
|
19368
|
+
title: React.createElement(TitleText$1, {
|
|
19369
19369
|
rules: (_columnsReplenish$ite = columnsReplenish['itemModelName']) === null || _columnsReplenish$ite === void 0 ? void 0 : _columnsReplenish$ite.rules
|
|
19370
19370
|
}, "\u89C4\u683C\u578B\u53F7"),
|
|
19371
19371
|
key: 'itemModelName',
|
|
19372
19372
|
width: 119,
|
|
19373
19373
|
render: function render(_, record) {
|
|
19374
19374
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
19375
|
-
return
|
|
19375
|
+
return React.createElement(Form.Item, null, getFieldDecorator('itemModelName', {
|
|
19376
19376
|
initialValue: isMyShow ? editGood.itemModelNameSelf : editGood.itemModelName,
|
|
19377
19377
|
rules: getReplenishRules('itemModelName')
|
|
19378
|
-
})(
|
|
19378
|
+
})(React.createElement(MyInput$2, {
|
|
19379
19379
|
onChange: function () {
|
|
19380
19380
|
var _onChange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
19381
19381
|
var key, value;
|
|
@@ -19408,7 +19408,7 @@ var useColumns$1 = (function (form) {
|
|
|
19408
19408
|
}()
|
|
19409
19409
|
})));
|
|
19410
19410
|
} else {
|
|
19411
|
-
return
|
|
19411
|
+
return React.createElement(MyItemNameDiv$1, {
|
|
19412
19412
|
valueT: formatSearch$1(record.itemModelNameSelf, searchValue),
|
|
19413
19413
|
valueF: formatSearch$1(record.itemModelName, searchValue),
|
|
19414
19414
|
isMyShow: isMyShow
|
|
@@ -19416,17 +19416,17 @@ var useColumns$1 = (function (form) {
|
|
|
19416
19416
|
}
|
|
19417
19417
|
}
|
|
19418
19418
|
}, {
|
|
19419
|
-
title:
|
|
19419
|
+
title: React.createElement(TitleText$1, {
|
|
19420
19420
|
rules: (_columnsReplenish$uni = columnsReplenish['unit']) === null || _columnsReplenish$uni === void 0 ? void 0 : _columnsReplenish$uni.rules
|
|
19421
19421
|
}, "\u5355\u4F4D"),
|
|
19422
19422
|
key: 'unit',
|
|
19423
19423
|
width: 70,
|
|
19424
19424
|
render: function render(_, record) {
|
|
19425
19425
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
19426
|
-
return
|
|
19426
|
+
return React.createElement(Form.Item, null, getFieldDecorator('unit', {
|
|
19427
19427
|
initialValue: editGood.unit,
|
|
19428
19428
|
rules: getReplenishRules('unit')
|
|
19429
|
-
})(
|
|
19429
|
+
})(React.createElement(AutoComplete$1, {
|
|
19430
19430
|
style: {
|
|
19431
19431
|
width: '100%'
|
|
19432
19432
|
},
|
|
@@ -19464,7 +19464,7 @@ var useColumns$1 = (function (form) {
|
|
|
19464
19464
|
}()
|
|
19465
19465
|
})));
|
|
19466
19466
|
} else {
|
|
19467
|
-
return
|
|
19467
|
+
return React.createElement("span", {
|
|
19468
19468
|
style: {
|
|
19469
19469
|
padding: '0 10px'
|
|
19470
19470
|
}
|
|
@@ -19472,7 +19472,7 @@ var useColumns$1 = (function (form) {
|
|
|
19472
19472
|
}
|
|
19473
19473
|
}
|
|
19474
19474
|
}, {
|
|
19475
|
-
title:
|
|
19475
|
+
title: React.createElement(TitleText$1, {
|
|
19476
19476
|
rules: (_columnsReplenish$qua = columnsReplenish['quantity']) === null || _columnsReplenish$qua === void 0 ? void 0 : _columnsReplenish$qua.rules
|
|
19477
19477
|
}, "\u6570\u91CF"),
|
|
19478
19478
|
dataIndex: 'quantity',
|
|
@@ -19481,7 +19481,7 @@ var useColumns$1 = (function (form) {
|
|
|
19481
19481
|
width: 149,
|
|
19482
19482
|
render: function render(value, record) {
|
|
19483
19483
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
19484
|
-
return
|
|
19484
|
+
return React.createElement(Form.Item, null, getFieldDecorator('quantity', {
|
|
19485
19485
|
initialValue: editGood.quantity,
|
|
19486
19486
|
getValueFromEvent: onNumberValueChange,
|
|
19487
19487
|
rules: [].concat(_toConsumableArray(getReplenishRules('quantity')), [{
|
|
@@ -19527,7 +19527,7 @@ var useColumns$1 = (function (form) {
|
|
|
19527
19527
|
return validator;
|
|
19528
19528
|
}()
|
|
19529
19529
|
}])
|
|
19530
|
-
})(
|
|
19530
|
+
})(React.createElement(MyInput$2, {
|
|
19531
19531
|
style: {
|
|
19532
19532
|
textAlign: 'right'
|
|
19533
19533
|
},
|
|
@@ -19559,7 +19559,7 @@ var useColumns$1 = (function (form) {
|
|
|
19559
19559
|
}()
|
|
19560
19560
|
})));
|
|
19561
19561
|
} else {
|
|
19562
|
-
return
|
|
19562
|
+
return React.createElement("span", {
|
|
19563
19563
|
style: {
|
|
19564
19564
|
padding: '0 10px'
|
|
19565
19565
|
}
|
|
@@ -19567,7 +19567,7 @@ var useColumns$1 = (function (form) {
|
|
|
19567
19567
|
}
|
|
19568
19568
|
}
|
|
19569
19569
|
}, {
|
|
19570
|
-
title:
|
|
19570
|
+
title: React.createElement(TitleText$1, {
|
|
19571
19571
|
rules: (_columnsReplenish$pri = columnsReplenish['priceIncludeTax']) === null || _columnsReplenish$pri === void 0 ? void 0 : _columnsReplenish$pri.rules
|
|
19572
19572
|
}, "\u5355\u4EF7(\u542B\u7A0E)"),
|
|
19573
19573
|
dataIndex: 'priceIncludeTax',
|
|
@@ -19576,7 +19576,7 @@ var useColumns$1 = (function (form) {
|
|
|
19576
19576
|
width: 149,
|
|
19577
19577
|
render: function render(value, record) {
|
|
19578
19578
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
19579
|
-
return
|
|
19579
|
+
return React.createElement(Form.Item, null, getFieldDecorator('priceIncludeTax', {
|
|
19580
19580
|
initialValue: editGood.priceIncludeTax,
|
|
19581
19581
|
getValueFromEvent: onNumberValueChange,
|
|
19582
19582
|
rules: [].concat(_toConsumableArray(getReplenishRules('priceIncludeTax')), [{
|
|
@@ -19622,7 +19622,7 @@ var useColumns$1 = (function (form) {
|
|
|
19622
19622
|
return validator;
|
|
19623
19623
|
}()
|
|
19624
19624
|
}])
|
|
19625
|
-
})(
|
|
19625
|
+
})(React.createElement(MyInput$2, {
|
|
19626
19626
|
style: {
|
|
19627
19627
|
textAlign: 'right'
|
|
19628
19628
|
},
|
|
@@ -19634,7 +19634,7 @@ var useColumns$1 = (function (form) {
|
|
|
19634
19634
|
}
|
|
19635
19635
|
})));
|
|
19636
19636
|
} else {
|
|
19637
|
-
return
|
|
19637
|
+
return React.createElement("span", {
|
|
19638
19638
|
style: {
|
|
19639
19639
|
padding: '0 10px'
|
|
19640
19640
|
}
|
|
@@ -19642,7 +19642,7 @@ var useColumns$1 = (function (form) {
|
|
|
19642
19642
|
}
|
|
19643
19643
|
}
|
|
19644
19644
|
}, {
|
|
19645
|
-
title:
|
|
19645
|
+
title: React.createElement(TitleText$1, {
|
|
19646
19646
|
rules: (_columnsReplenish$pri2 = columnsReplenish['priceExcludeTax']) === null || _columnsReplenish$pri2 === void 0 ? void 0 : _columnsReplenish$pri2.rules
|
|
19647
19647
|
}, "\u5355\u4EF7(\u4E0D\u542B\u7A0E)"),
|
|
19648
19648
|
dataIndex: 'priceExcludeTax',
|
|
@@ -19651,7 +19651,7 @@ var useColumns$1 = (function (form) {
|
|
|
19651
19651
|
width: 149,
|
|
19652
19652
|
render: function render(value, record) {
|
|
19653
19653
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
19654
|
-
return
|
|
19654
|
+
return React.createElement(Form.Item, null, getFieldDecorator('priceExcludeTax', {
|
|
19655
19655
|
initialValue: editGood.priceExcludeTax,
|
|
19656
19656
|
getValueFromEvent: onNumberValueChange,
|
|
19657
19657
|
rules: [].concat(_toConsumableArray(getReplenishRules('priceExcludeTax')), [{
|
|
@@ -19697,7 +19697,7 @@ var useColumns$1 = (function (form) {
|
|
|
19697
19697
|
return validator;
|
|
19698
19698
|
}()
|
|
19699
19699
|
}])
|
|
19700
|
-
})(
|
|
19700
|
+
})(React.createElement(MyInput$2, {
|
|
19701
19701
|
style: {
|
|
19702
19702
|
textAlign: 'right'
|
|
19703
19703
|
},
|
|
@@ -19709,7 +19709,7 @@ var useColumns$1 = (function (form) {
|
|
|
19709
19709
|
}
|
|
19710
19710
|
})));
|
|
19711
19711
|
} else {
|
|
19712
|
-
return
|
|
19712
|
+
return React.createElement("span", {
|
|
19713
19713
|
style: {
|
|
19714
19714
|
padding: '0 10px'
|
|
19715
19715
|
}
|
|
@@ -19717,7 +19717,7 @@ var useColumns$1 = (function (form) {
|
|
|
19717
19717
|
}
|
|
19718
19718
|
}
|
|
19719
19719
|
}, {
|
|
19720
|
-
title:
|
|
19720
|
+
title: React.createElement(TitleText$1, {
|
|
19721
19721
|
required: true
|
|
19722
19722
|
}, "\u91D1\u989D(\u542B\u7A0E)"),
|
|
19723
19723
|
dataIndex: 'lineAmountIncludeTax',
|
|
@@ -19726,7 +19726,7 @@ var useColumns$1 = (function (form) {
|
|
|
19726
19726
|
align: 'right',
|
|
19727
19727
|
render: function render(value, record) {
|
|
19728
19728
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
19729
|
-
return
|
|
19729
|
+
return React.createElement(Form.Item, null, getFieldDecorator('lineAmountIncludeTax', {
|
|
19730
19730
|
initialValue: editGood.lineAmountIncludeTax,
|
|
19731
19731
|
getValueFromEvent: onNumberValueChange,
|
|
19732
19732
|
rules: [].concat(_toConsumableArray(getReplenishRules('lineAmountIncludeTax')), [{
|
|
@@ -19786,7 +19786,7 @@ var useColumns$1 = (function (form) {
|
|
|
19786
19786
|
return validator;
|
|
19787
19787
|
}()
|
|
19788
19788
|
}])
|
|
19789
|
-
})(
|
|
19789
|
+
})(React.createElement(MyInput$2, {
|
|
19790
19790
|
style: {
|
|
19791
19791
|
textAlign: 'right'
|
|
19792
19792
|
},
|
|
@@ -19797,7 +19797,7 @@ var useColumns$1 = (function (form) {
|
|
|
19797
19797
|
}
|
|
19798
19798
|
})));
|
|
19799
19799
|
} else {
|
|
19800
|
-
return
|
|
19800
|
+
return React.createElement("span", {
|
|
19801
19801
|
style: {
|
|
19802
19802
|
padding: '0 10px'
|
|
19803
19803
|
}
|
|
@@ -19805,7 +19805,7 @@ var useColumns$1 = (function (form) {
|
|
|
19805
19805
|
}
|
|
19806
19806
|
}
|
|
19807
19807
|
}, {
|
|
19808
|
-
title:
|
|
19808
|
+
title: React.createElement(TitleText$1, {
|
|
19809
19809
|
required: true
|
|
19810
19810
|
}, "\u91D1\u989D(\u4E0D\u542B\u7A0E)"),
|
|
19811
19811
|
dataIndex: 'lineAmountExcludeTax',
|
|
@@ -19814,7 +19814,7 @@ var useColumns$1 = (function (form) {
|
|
|
19814
19814
|
width: 119,
|
|
19815
19815
|
render: function render(value, record) {
|
|
19816
19816
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
19817
|
-
return
|
|
19817
|
+
return React.createElement(Form.Item, null, getFieldDecorator('lineAmountExcludeTax', {
|
|
19818
19818
|
initialValue: editGood.lineAmountExcludeTax,
|
|
19819
19819
|
getValueFromEvent: onNumberValueChange,
|
|
19820
19820
|
rules: [].concat(_toConsumableArray(getReplenishRules('lineAmountExcludeTax')), [{
|
|
@@ -19849,7 +19849,7 @@ var useColumns$1 = (function (form) {
|
|
|
19849
19849
|
return validator;
|
|
19850
19850
|
}()
|
|
19851
19851
|
}])
|
|
19852
|
-
})(
|
|
19852
|
+
})(React.createElement(MyInput$2, {
|
|
19853
19853
|
style: {
|
|
19854
19854
|
textAlign: 'right'
|
|
19855
19855
|
},
|
|
@@ -19860,7 +19860,7 @@ var useColumns$1 = (function (form) {
|
|
|
19860
19860
|
}
|
|
19861
19861
|
})));
|
|
19862
19862
|
} else {
|
|
19863
|
-
return
|
|
19863
|
+
return React.createElement("span", {
|
|
19864
19864
|
style: {
|
|
19865
19865
|
padding: '0 10px'
|
|
19866
19866
|
}
|
|
@@ -19868,7 +19868,7 @@ var useColumns$1 = (function (form) {
|
|
|
19868
19868
|
}
|
|
19869
19869
|
}
|
|
19870
19870
|
}, {
|
|
19871
|
-
title:
|
|
19871
|
+
title: React.createElement(TitleText$1, {
|
|
19872
19872
|
required: true
|
|
19873
19873
|
}, "\u7A0E\u7387%"),
|
|
19874
19874
|
dataIndex: 'taxRate',
|
|
@@ -19877,7 +19877,7 @@ var useColumns$1 = (function (form) {
|
|
|
19877
19877
|
width: 70,
|
|
19878
19878
|
render: function render(value, record) {
|
|
19879
19879
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
19880
|
-
return
|
|
19880
|
+
return React.createElement(Form.Item, null, getFieldDecorator('taxRate', {
|
|
19881
19881
|
initialValue: editGood.taxRate,
|
|
19882
19882
|
rules: [].concat(_toConsumableArray(getReplenishRules('taxRate')), [{
|
|
19883
19883
|
required: true,
|
|
@@ -19886,7 +19886,7 @@ var useColumns$1 = (function (form) {
|
|
|
19886
19886
|
pattern: /^[+-]?(0|([1-9]\d*))(\.\d+)?$/,
|
|
19887
19887
|
message: ' '
|
|
19888
19888
|
}])
|
|
19889
|
-
})(
|
|
19889
|
+
})(React.createElement(Select$1, {
|
|
19890
19890
|
className: "kts-invoice-operate-goods-list-table-tax-rate",
|
|
19891
19891
|
// dropdownMenuStyle={{ textAlign: "right" }}
|
|
19892
19892
|
showArrow: false,
|
|
@@ -19898,13 +19898,13 @@ var useColumns$1 = (function (form) {
|
|
|
19898
19898
|
onChangeTaxRate$1(controller, form, record);
|
|
19899
19899
|
}
|
|
19900
19900
|
}, taxRateList.map(function (e, i) {
|
|
19901
|
-
return
|
|
19901
|
+
return React.createElement(Select$1.Option, {
|
|
19902
19902
|
key: i,
|
|
19903
19903
|
value: e
|
|
19904
19904
|
}, e, "%");
|
|
19905
19905
|
}))));
|
|
19906
19906
|
} else {
|
|
19907
|
-
return
|
|
19907
|
+
return React.createElement("span", {
|
|
19908
19908
|
style: {
|
|
19909
19909
|
padding: '0 10px'
|
|
19910
19910
|
}
|
|
@@ -19912,7 +19912,7 @@ var useColumns$1 = (function (form) {
|
|
|
19912
19912
|
}
|
|
19913
19913
|
}
|
|
19914
19914
|
}, {
|
|
19915
|
-
title:
|
|
19915
|
+
title: React.createElement(TitleText$1, {
|
|
19916
19916
|
rules: (_columnsReplenish$tax = columnsReplenish['taxAmount']) === null || _columnsReplenish$tax === void 0 ? void 0 : _columnsReplenish$tax.rules
|
|
19917
19917
|
}, "\u7A0E\u989D"),
|
|
19918
19918
|
dataIndex: 'taxAmount',
|
|
@@ -19924,11 +19924,11 @@ var useColumns$1 = (function (form) {
|
|
|
19924
19924
|
return getFieldDecorator('taxAmount', {
|
|
19925
19925
|
initialValue: editGood.taxAmount,
|
|
19926
19926
|
rules: getReplenishRules('taxAmount')
|
|
19927
|
-
})(
|
|
19927
|
+
})(React.createElement(MyDiv$2, {
|
|
19928
19928
|
loading: isCipher$1(changeField, 'taxAmount')
|
|
19929
19929
|
}));
|
|
19930
19930
|
} else {
|
|
19931
|
-
return
|
|
19931
|
+
return React.createElement("span", {
|
|
19932
19932
|
style: {
|
|
19933
19933
|
padding: '0 10px'
|
|
19934
19934
|
}
|
|
@@ -19995,13 +19995,13 @@ var MyInput$2 = /*#__PURE__*/function (_React$Component) {
|
|
|
19995
19995
|
key: "render",
|
|
19996
19996
|
value: function render() {
|
|
19997
19997
|
if (this.props.loading) {
|
|
19998
|
-
return
|
|
19998
|
+
return React.createElement(Spin$1, {
|
|
19999
19999
|
size: "small"
|
|
20000
|
-
},
|
|
20000
|
+
}, React.createElement(Input$1, _objectSpread2(_objectSpread2({}, this.props), {}, {
|
|
20001
20001
|
autoComplete: "off"
|
|
20002
20002
|
})));
|
|
20003
20003
|
} else {
|
|
20004
|
-
return
|
|
20004
|
+
return React.createElement(Input$1, _objectSpread2(_objectSpread2({}, this.props), {}, {
|
|
20005
20005
|
autoComplete: "off"
|
|
20006
20006
|
}));
|
|
20007
20007
|
}
|
|
@@ -20026,15 +20026,15 @@ var MyDiv$2 = /*#__PURE__*/function (_React$Component2) {
|
|
|
20026
20026
|
key: "render",
|
|
20027
20027
|
value: function render() {
|
|
20028
20028
|
if (this.props.loading) {
|
|
20029
|
-
return
|
|
20029
|
+
return React.createElement(Spin$1, {
|
|
20030
20030
|
size: "small"
|
|
20031
|
-
},
|
|
20031
|
+
}, React.createElement("span", {
|
|
20032
20032
|
style: {
|
|
20033
20033
|
padding: '0 10px'
|
|
20034
20034
|
}
|
|
20035
20035
|
}, this.props.value));
|
|
20036
20036
|
} else {
|
|
20037
|
-
return
|
|
20037
|
+
return React.createElement("span", {
|
|
20038
20038
|
style: {
|
|
20039
20039
|
padding: '0 10px'
|
|
20040
20040
|
}
|
|
@@ -20067,18 +20067,18 @@ var MyItemNameDiv$1 = /*#__PURE__*/function (_React$Component3) {
|
|
|
20067
20067
|
|
|
20068
20068
|
if (isMyShow) {
|
|
20069
20069
|
if (valueT) {
|
|
20070
|
-
return
|
|
20070
|
+
return React.createElement(Tooltip$1, {
|
|
20071
20071
|
title: valueT
|
|
20072
|
-
},
|
|
20072
|
+
}, React.createElement("span", {
|
|
20073
20073
|
style: {
|
|
20074
20074
|
padding: '0 10px',
|
|
20075
20075
|
color: '#0074ff'
|
|
20076
20076
|
}
|
|
20077
20077
|
}, valueT));
|
|
20078
20078
|
} else {
|
|
20079
|
-
return
|
|
20079
|
+
return React.createElement(Tooltip$1, {
|
|
20080
20080
|
title: valueF
|
|
20081
|
-
},
|
|
20081
|
+
}, React.createElement("span", {
|
|
20082
20082
|
style: {
|
|
20083
20083
|
padding: '0 10px'
|
|
20084
20084
|
}
|
|
@@ -20086,17 +20086,17 @@ var MyItemNameDiv$1 = /*#__PURE__*/function (_React$Component3) {
|
|
|
20086
20086
|
}
|
|
20087
20087
|
} else {
|
|
20088
20088
|
if (valueF) {
|
|
20089
|
-
return
|
|
20089
|
+
return React.createElement(Tooltip$1, {
|
|
20090
20090
|
title: valueF
|
|
20091
|
-
},
|
|
20091
|
+
}, React.createElement("span", {
|
|
20092
20092
|
style: {
|
|
20093
20093
|
padding: '0 10px'
|
|
20094
20094
|
}
|
|
20095
20095
|
}, valueF));
|
|
20096
20096
|
} else {
|
|
20097
|
-
return
|
|
20097
|
+
return React.createElement(Tooltip$1, {
|
|
20098
20098
|
title: valueT
|
|
20099
|
-
},
|
|
20099
|
+
}, React.createElement("span", {
|
|
20100
20100
|
style: {
|
|
20101
20101
|
padding: '0 10px',
|
|
20102
20102
|
color: '#0074ff'
|
|
@@ -20119,7 +20119,7 @@ function formatSearch$1(value, search) {
|
|
|
20119
20119
|
return dcoding$1(e);
|
|
20120
20120
|
}).join("<span class=\"kts-invoice-operate-goods-list-table-search-protrude\" >".concat(search, "</span>"));
|
|
20121
20121
|
|
|
20122
|
-
return
|
|
20122
|
+
return React.createElement("span", {
|
|
20123
20123
|
dangerouslySetInnerHTML: {
|
|
20124
20124
|
__html: __html
|
|
20125
20125
|
}
|
|
@@ -20498,7 +20498,7 @@ var useRowSelection$1 = (function () {
|
|
|
20498
20498
|
};
|
|
20499
20499
|
}(), [controller]);
|
|
20500
20500
|
var columnTitle = React.useMemo(function () {
|
|
20501
|
-
return
|
|
20501
|
+
return React.createElement(Checkbox, {
|
|
20502
20502
|
onChange: onClickSelectAll,
|
|
20503
20503
|
indeterminate: indeterminate,
|
|
20504
20504
|
checked: isAll
|
|
@@ -20647,19 +20647,19 @@ var useDelRowButton$1 = (function () {
|
|
|
20647
20647
|
}, _callee2);
|
|
20648
20648
|
})), []);
|
|
20649
20649
|
var menuItem = React.useMemo(function () {
|
|
20650
|
-
if (model === 'prefab') return
|
|
20651
|
-
if (model === 'readOnly') return
|
|
20652
|
-
return
|
|
20650
|
+
if (model === 'prefab') return React.createElement(React.Fragment, null);
|
|
20651
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
20652
|
+
return React.createElement(Menu$1.Item, {
|
|
20653
20653
|
key: "1",
|
|
20654
20654
|
onClick: onClick,
|
|
20655
20655
|
disabled: disabled
|
|
20656
20656
|
}, " \u5220\u9664\u884C ");
|
|
20657
20657
|
}, [model, onClick, disabled]);
|
|
20658
20658
|
var button = React.useMemo(function () {
|
|
20659
|
-
if (isRemRow === false) return
|
|
20660
|
-
if (model === 'prefab') return
|
|
20661
|
-
if (model === 'readOnly') return
|
|
20662
|
-
return
|
|
20659
|
+
if (isRemRow === false) return React.createElement(React.Fragment, null);
|
|
20660
|
+
if (model === 'prefab') return React.createElement(React.Fragment, null);
|
|
20661
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
20662
|
+
return React.createElement(Button$1, {
|
|
20663
20663
|
size: 'small',
|
|
20664
20664
|
onClick: onClick,
|
|
20665
20665
|
disabled: disabled
|
|
@@ -20890,16 +20890,16 @@ var useAddDiscountRowButton$1 = (function () {
|
|
|
20890
20890
|
}, [isAddDiscount, model]);
|
|
20891
20891
|
var button = React.useMemo(function () {
|
|
20892
20892
|
if (isEnable) {
|
|
20893
|
-
return
|
|
20893
|
+
return React.createElement(React.Fragment, null, React.createElement(Button$1, {
|
|
20894
20894
|
size: 'small',
|
|
20895
20895
|
onClick: onOpen,
|
|
20896
20896
|
disabled: disabled
|
|
20897
|
-
}, "\u6DFB\u52A0\u6298\u6263"),
|
|
20897
|
+
}, "\u6DFB\u52A0\u6298\u6263"), React.createElement(AddDiscountRowDrawer, {
|
|
20898
20898
|
open: open,
|
|
20899
20899
|
onClose: onClose
|
|
20900
20900
|
}));
|
|
20901
20901
|
} else {
|
|
20902
|
-
return
|
|
20902
|
+
return React.createElement(React.Fragment, null);
|
|
20903
20903
|
}
|
|
20904
20904
|
}, [open, onOpen, onClose, isEnable, disabled]);
|
|
20905
20905
|
return {
|
|
@@ -21080,35 +21080,35 @@ function AddDiscountRowDrawer(props) {
|
|
|
21080
21080
|
discolineValue: undefined
|
|
21081
21081
|
}));
|
|
21082
21082
|
}, [formValues === null || formValues === void 0 ? void 0 : formValues.discolineType]);
|
|
21083
|
-
return
|
|
21083
|
+
return React.createElement(Drawer$1, {
|
|
21084
21084
|
title: "\u6DFB\u52A0\u6298\u6263",
|
|
21085
21085
|
placement: "right",
|
|
21086
21086
|
width: 350,
|
|
21087
21087
|
onClose: onClose,
|
|
21088
21088
|
open: open,
|
|
21089
|
-
footer:
|
|
21089
|
+
footer: React.createElement(Space, {
|
|
21090
21090
|
size: "middle",
|
|
21091
21091
|
style: {
|
|
21092
21092
|
display: 'flex',
|
|
21093
21093
|
justifyContent: 'end'
|
|
21094
21094
|
}
|
|
21095
|
-
},
|
|
21095
|
+
}, React.createElement(Button$1, {
|
|
21096
21096
|
onClick: onDefine,
|
|
21097
21097
|
type: 'primary'
|
|
21098
|
-
}, "\u786E\u5B9A"),
|
|
21098
|
+
}, "\u786E\u5B9A"), React.createElement(Button$1, {
|
|
21099
21099
|
onClick: onClose
|
|
21100
21100
|
}, "\u53D6\u6D88"))
|
|
21101
|
-
},
|
|
21101
|
+
}, React.createElement(Form$1, {
|
|
21102
21102
|
form: form,
|
|
21103
21103
|
layout: 'vertical',
|
|
21104
21104
|
onChange: onChangeForm
|
|
21105
|
-
},
|
|
21105
|
+
}, React.createElement(Form$1.Item, {
|
|
21106
21106
|
label: "\u5546\u54C1\u91D1\u989D\uFF08\u542B\u7A0E\uFF09"
|
|
21107
|
-
}, totalAmount.toFixed(2), "\uFF08\u5171 ", discountGood.length, " \u884C\uFF09"),
|
|
21107
|
+
}, totalAmount.toFixed(2), "\uFF08\u5171 ", discountGood.length, " \u884C\uFF09"), React.createElement(Form$1.Item, {
|
|
21108
21108
|
label: "\u6298\u6263\u65B9\u5F0F",
|
|
21109
21109
|
name: 'discolineType',
|
|
21110
21110
|
initialValue: '1'
|
|
21111
|
-
},
|
|
21111
|
+
}, React.createElement(Radio.Group, {
|
|
21112
21112
|
options: [{
|
|
21113
21113
|
label: '按金额折扣',
|
|
21114
21114
|
value: '1'
|
|
@@ -21116,7 +21116,7 @@ function AddDiscountRowDrawer(props) {
|
|
|
21116
21116
|
label: '按比例折扣',
|
|
21117
21117
|
value: '2'
|
|
21118
21118
|
}]
|
|
21119
|
-
})), (formValues === null || formValues === void 0 ? void 0 : formValues.discolineType) === '1' ?
|
|
21119
|
+
})), (formValues === null || formValues === void 0 ? void 0 : formValues.discolineType) === '1' ? React.createElement(Form$1.Item, {
|
|
21120
21120
|
label: "\u6298\u6263\u91D1\u989D\uFF08\u5143\uFF09\uFF08\u542B\u7A0E\uFF09",
|
|
21121
21121
|
name: 'discolineValue',
|
|
21122
21122
|
rules: [{
|
|
@@ -21167,11 +21167,11 @@ function AddDiscountRowDrawer(props) {
|
|
|
21167
21167
|
return validator;
|
|
21168
21168
|
}()
|
|
21169
21169
|
}]
|
|
21170
|
-
},
|
|
21170
|
+
}, React.createElement(InputNumber, {
|
|
21171
21171
|
style: {
|
|
21172
21172
|
width: '100%'
|
|
21173
21173
|
}
|
|
21174
|
-
})) :
|
|
21174
|
+
})) : React.createElement(Form$1.Item, {
|
|
21175
21175
|
label: "\u6298\u6263\u6BD4\u4F8B\uFF08%\uFF09\uFF08\u542B\u7A0E\uFF09",
|
|
21176
21176
|
name: 'discolineValue',
|
|
21177
21177
|
rules: [{
|
|
@@ -21222,7 +21222,7 @@ function AddDiscountRowDrawer(props) {
|
|
|
21222
21222
|
return validator;
|
|
21223
21223
|
}()
|
|
21224
21224
|
}]
|
|
21225
|
-
},
|
|
21225
|
+
}, React.createElement(InputNumber, {
|
|
21226
21226
|
style: {
|
|
21227
21227
|
width: '100%'
|
|
21228
21228
|
}
|
|
@@ -21366,16 +21366,16 @@ var useEndowCodeButton$1 = (function () {
|
|
|
21366
21366
|
}, _callee2);
|
|
21367
21367
|
})), [controller]);
|
|
21368
21368
|
var menuItem = React.useMemo(function () {
|
|
21369
|
-
if (model === 'readOnly') return
|
|
21370
|
-
return
|
|
21369
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
21370
|
+
return React.createElement(Menu$1.Item, {
|
|
21371
21371
|
key: "2",
|
|
21372
21372
|
onClick: onClick,
|
|
21373
21373
|
disabled: disabled
|
|
21374
21374
|
}, "\u6279\u91CF\u8D4B\u7801");
|
|
21375
21375
|
}, [onClick, disabled, model]);
|
|
21376
21376
|
var button = React.useMemo(function () {
|
|
21377
|
-
if (model === 'readOnly') return
|
|
21378
|
-
return
|
|
21377
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
21378
|
+
return React.createElement(Button$1, {
|
|
21379
21379
|
onClick: onClick,
|
|
21380
21380
|
disabled: disabled,
|
|
21381
21381
|
size: 'small'
|
|
@@ -21435,14 +21435,14 @@ var useEmptyRefill = (function () {
|
|
|
21435
21435
|
}());
|
|
21436
21436
|
}, [controller]);
|
|
21437
21437
|
var button = React.useMemo(function () {
|
|
21438
|
-
if (model === 'readOnly') return
|
|
21439
|
-
if (model === 'prefab') return
|
|
21440
|
-
return
|
|
21438
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
21439
|
+
if (model === 'prefab') return React.createElement(React.Fragment, null);
|
|
21440
|
+
return React.createElement(Popconfirm, {
|
|
21441
21441
|
title: "\u5C06\u8981\u6E05\u7A7A\u6240\u6709\u9879\u76EE\u4FE1\u606F\uFF0C\u662F\u5426\u7EE7\u7EED",
|
|
21442
21442
|
onConfirm: confirm,
|
|
21443
21443
|
okText: "\u786E\u5B9A",
|
|
21444
21444
|
cancelText: "\u53D6\u6D88"
|
|
21445
|
-
},
|
|
21445
|
+
}, React.createElement(Button$1, {
|
|
21446
21446
|
size: 'small'
|
|
21447
21447
|
}, "\u6E05\u7A7A\u91CD\u586B"));
|
|
21448
21448
|
}, [model, confirm]);
|
|
@@ -21509,14 +21509,14 @@ function InvoiceTypeModal(props) {
|
|
|
21509
21509
|
setValues(values);
|
|
21510
21510
|
}
|
|
21511
21511
|
}, [props.open, props.defaultBillingType, props.defaultBusiness, props.defaultInvoiceType, form]);
|
|
21512
|
-
return
|
|
21512
|
+
return React.createElement(Modal, {
|
|
21513
21513
|
title: props.modalTitle || "选择开具信息",
|
|
21514
21514
|
open: props.open,
|
|
21515
21515
|
onOk: onConfirm,
|
|
21516
21516
|
onCancel: props.onCancel,
|
|
21517
21517
|
okText: "\u786E\u5B9A",
|
|
21518
21518
|
cancelText: "\u53D6\u6D88"
|
|
21519
|
-
},
|
|
21519
|
+
}, React.createElement(Form$1, {
|
|
21520
21520
|
form: form,
|
|
21521
21521
|
layout: "vertical",
|
|
21522
21522
|
style: {
|
|
@@ -21525,13 +21525,13 @@ function InvoiceTypeModal(props) {
|
|
|
21525
21525
|
onValuesChange: function onValuesChange(_, e) {
|
|
21526
21526
|
setValues(e);
|
|
21527
21527
|
}
|
|
21528
|
-
},
|
|
21528
|
+
}, React.createElement(Row, {
|
|
21529
21529
|
gutter: [16, 16]
|
|
21530
|
-
},
|
|
21530
|
+
}, React.createElement(Col, {
|
|
21531
21531
|
span: 24
|
|
21532
|
-
},
|
|
21532
|
+
}, React.createElement(Form$1.Item, {
|
|
21533
21533
|
name: 'billingType'
|
|
21534
|
-
},
|
|
21534
|
+
}, React.createElement(Radio.Group, {
|
|
21535
21535
|
size: 'large',
|
|
21536
21536
|
className: "goods-list-digtal-reselect-invoice-typeModal-radio",
|
|
21537
21537
|
optionType: "button",
|
|
@@ -21544,27 +21544,27 @@ function InvoiceTypeModal(props) {
|
|
|
21544
21544
|
label: '税控发票',
|
|
21545
21545
|
value: 'taxation'
|
|
21546
21546
|
}]
|
|
21547
|
-
}))),
|
|
21547
|
+
}))), React.createElement(Col, {
|
|
21548
21548
|
span: 12
|
|
21549
|
-
},
|
|
21549
|
+
}, React.createElement(Form$1.Item, {
|
|
21550
21550
|
name: 'invoiceType',
|
|
21551
21551
|
label: "\u9009\u62E9\u7968\u7C7B",
|
|
21552
21552
|
rules: [{
|
|
21553
21553
|
required: true,
|
|
21554
21554
|
message: '选择票类必填'
|
|
21555
21555
|
}]
|
|
21556
|
-
},
|
|
21556
|
+
}, React.createElement(Select$1, {
|
|
21557
21557
|
size: 'large',
|
|
21558
21558
|
allowClear: true,
|
|
21559
21559
|
placeholder: "\u8BF7\u9009\u62E9\uFF08\u5FC5\u586B\u9879\uFF09",
|
|
21560
21560
|
disabled: disableds.indexOf('invoiceType') >= 0,
|
|
21561
21561
|
options: props.invoiceTypeOptions
|
|
21562
|
-
}))),
|
|
21562
|
+
}))), React.createElement(Col, {
|
|
21563
21563
|
span: 12
|
|
21564
|
-
},
|
|
21564
|
+
}, React.createElement(Form$1.Item, {
|
|
21565
21565
|
name: 'business',
|
|
21566
21566
|
label: "\u7279\u5B9A\u4E1A\u52A1"
|
|
21567
|
-
},
|
|
21567
|
+
}, React.createElement(Select$1, {
|
|
21568
21568
|
size: 'large',
|
|
21569
21569
|
allowClear: true,
|
|
21570
21570
|
placeholder: "\u8BF7\u9009\u62E9\uFF08\u975E\u5FC5\u586B\u9879\uFF09",
|
|
@@ -21609,11 +21609,11 @@ var useReselectInvoiceType = (function () {
|
|
|
21609
21609
|
return true;
|
|
21610
21610
|
}, [model, typeModalProps === null || typeModalProps === void 0 ? void 0 : typeModalProps.isDisabled]);
|
|
21611
21611
|
var button = React.useMemo(function () {
|
|
21612
|
-
if (isEnable === false) return
|
|
21613
|
-
return
|
|
21612
|
+
if (isEnable === false) return React.createElement(React.Fragment, null);
|
|
21613
|
+
return React.createElement(React.Fragment, null, React.createElement(Button$1, {
|
|
21614
21614
|
size: 'small',
|
|
21615
21615
|
onClick: onOpen
|
|
21616
|
-
}, "\u91CD\u9009\u53D1\u7968\u7C7B\u578B"),
|
|
21616
|
+
}, "\u91CD\u9009\u53D1\u7968\u7C7B\u578B"), React.createElement(InvoiceTypeModal, _objectSpread2(_objectSpread2({}, typeModalProps), {}, {
|
|
21617
21617
|
open: open,
|
|
21618
21618
|
onCancel: onClose,
|
|
21619
21619
|
onOk: onOk
|
|
@@ -21641,7 +21641,7 @@ var GoodsList$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
21641
21641
|
_createClass(GoodsList, [{
|
|
21642
21642
|
key: "render",
|
|
21643
21643
|
value: function render() {
|
|
21644
|
-
return
|
|
21644
|
+
return React.createElement(Main$3, _objectSpread2({}, this.props));
|
|
21645
21645
|
}
|
|
21646
21646
|
}]);
|
|
21647
21647
|
|
|
@@ -21842,20 +21842,20 @@ var Main$3 = decorator(Form.create())(function (props) {
|
|
|
21842
21842
|
};
|
|
21843
21843
|
}())();
|
|
21844
21844
|
}, [controller, props.isSwitchTax]);
|
|
21845
|
-
return
|
|
21845
|
+
return React.createElement("div", {
|
|
21846
21846
|
className: "kts-invoice-operate-goods-list-digtal",
|
|
21847
21847
|
onClick: function onClick(e) {
|
|
21848
21848
|
e.stopPropagation();
|
|
21849
21849
|
}
|
|
21850
|
-
},
|
|
21850
|
+
}, React.createElement("div", {
|
|
21851
21851
|
className: "kts-invoice-operate-goods-list-able"
|
|
21852
|
-
},
|
|
21852
|
+
}, React.createElement(AddRowButton$1, null), delRowButton.button, addDiscountRowButton.button, endowCodeButton.button, React.createElement(TaxIncludedSwitch$1, null), React.createElement(Search$1, null), React.createElement("div", {
|
|
21853
21853
|
style: {
|
|
21854
21854
|
flex: 1
|
|
21855
21855
|
}
|
|
21856
|
-
}), props.menuExpansion, reselectInvoiceType.button, emptyRefill.button),
|
|
21856
|
+
}), props.menuExpansion, reselectInvoiceType.button, emptyRefill.button), React.createElement("div", {
|
|
21857
21857
|
className: classNames('kts-invoice-operate-goods-list-table-digtal')
|
|
21858
|
-
},
|
|
21858
|
+
}, React.createElement(TableVirtual$1, {
|
|
21859
21859
|
size: "small",
|
|
21860
21860
|
rowKey: "$index",
|
|
21861
21861
|
pagination: false,
|
|
@@ -21877,7 +21877,7 @@ var Main$3 = decorator(Form.create())(function (props) {
|
|
|
21877
21877
|
}
|
|
21878
21878
|
};
|
|
21879
21879
|
}
|
|
21880
|
-
})),
|
|
21880
|
+
})), React.createElement("div", null, React.createElement(Statistics$1, null)));
|
|
21881
21881
|
});
|
|
21882
21882
|
|
|
21883
21883
|
var ImportBuyerDrawer = (function () {
|
|
@@ -21911,7 +21911,7 @@ var ImportBuyerDrawer = (function () {
|
|
|
21911
21911
|
};
|
|
21912
21912
|
}())();
|
|
21913
21913
|
}, [controller]);
|
|
21914
|
-
return
|
|
21914
|
+
return React.createElement(Drawer, {
|
|
21915
21915
|
title: "\u8D2D\u65B9\u5217\u8868",
|
|
21916
21916
|
placement: "right",
|
|
21917
21917
|
// closable={false}
|
|
@@ -21919,7 +21919,7 @@ var ImportBuyerDrawer = (function () {
|
|
|
21919
21919
|
width: 983,
|
|
21920
21920
|
onClose: onClose,
|
|
21921
21921
|
visible: visible
|
|
21922
|
-
}, topExpand,
|
|
21922
|
+
}, topExpand, React.createElement(DrawerBody$1, null));
|
|
21923
21923
|
});
|
|
21924
21924
|
|
|
21925
21925
|
var DrawerBody$1 = function DrawerBody() {
|
|
@@ -21940,7 +21940,7 @@ var DrawerBody$1 = function DrawerBody() {
|
|
|
21940
21940
|
}
|
|
21941
21941
|
});
|
|
21942
21942
|
}, [controller]);
|
|
21943
|
-
return
|
|
21943
|
+
return React.createElement(Table$1, {
|
|
21944
21944
|
bordered: true,
|
|
21945
21945
|
size: "small",
|
|
21946
21946
|
columns: columns,
|
|
@@ -22040,7 +22040,7 @@ var ImportGoodsDrawer = (function () {
|
|
|
22040
22040
|
};
|
|
22041
22041
|
}())();
|
|
22042
22042
|
}, [controller]);
|
|
22043
|
-
return
|
|
22043
|
+
return React.createElement(Drawer, {
|
|
22044
22044
|
title: "\u5546\u54C1\u5217\u8868",
|
|
22045
22045
|
placement: "right",
|
|
22046
22046
|
// closable={false}
|
|
@@ -22048,11 +22048,11 @@ var ImportGoodsDrawer = (function () {
|
|
|
22048
22048
|
width: 983,
|
|
22049
22049
|
onClose: onClose,
|
|
22050
22050
|
visible: visible
|
|
22051
|
-
}, topExpand &&
|
|
22051
|
+
}, topExpand && React.createElement("div", {
|
|
22052
22052
|
style: {
|
|
22053
22053
|
marginBottom: 10
|
|
22054
22054
|
}
|
|
22055
|
-
}, topExpand),
|
|
22055
|
+
}, topExpand), React.createElement(DrawerBody$2, null));
|
|
22056
22056
|
});
|
|
22057
22057
|
|
|
22058
22058
|
var DrawerBody$2 = function DrawerBody() {
|
|
@@ -22074,7 +22074,7 @@ var DrawerBody$2 = function DrawerBody() {
|
|
|
22074
22074
|
}
|
|
22075
22075
|
});
|
|
22076
22076
|
}, [controller]);
|
|
22077
|
-
return
|
|
22077
|
+
return React.createElement(Table$1, {
|
|
22078
22078
|
bordered: true,
|
|
22079
22079
|
size: "small",
|
|
22080
22080
|
columns: columns,
|
|
@@ -22366,7 +22366,7 @@ var EndowCodeDrawer = (function () {
|
|
|
22366
22366
|
setDefaultValue(undefined);
|
|
22367
22367
|
}
|
|
22368
22368
|
}, [visible]);
|
|
22369
|
-
return
|
|
22369
|
+
return React.createElement(Drawer, {
|
|
22370
22370
|
title: "\u8D4B\u7801",
|
|
22371
22371
|
placement: "right",
|
|
22372
22372
|
destroyOnClose: true,
|
|
@@ -22374,7 +22374,7 @@ var EndowCodeDrawer = (function () {
|
|
|
22374
22374
|
width: 383,
|
|
22375
22375
|
onClose: onClose,
|
|
22376
22376
|
visible: visible
|
|
22377
|
-
}, defaultValue &&
|
|
22377
|
+
}, defaultValue && React.createElement(DrawerBody$3, {
|
|
22378
22378
|
defaultValue: defaultValue
|
|
22379
22379
|
}));
|
|
22380
22380
|
});
|
|
@@ -22531,7 +22531,7 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
22531
22531
|
};
|
|
22532
22532
|
}());
|
|
22533
22533
|
}, [actions, dataSource, readOnlyTaxRate]);
|
|
22534
|
-
return
|
|
22534
|
+
return React.createElement(Select, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
22535
22535
|
showSearch: true,
|
|
22536
22536
|
showArrow: false,
|
|
22537
22537
|
notFoundContent: null,
|
|
@@ -22539,7 +22539,7 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
22539
22539
|
onSearch: onSearch,
|
|
22540
22540
|
onChange: onChange
|
|
22541
22541
|
}), dataSource.map(function (e) {
|
|
22542
|
-
return
|
|
22542
|
+
return React.createElement(Select.Option, {
|
|
22543
22543
|
key: e.value,
|
|
22544
22544
|
value: e.value
|
|
22545
22545
|
}, e.label);
|
|
@@ -22569,14 +22569,14 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
22569
22569
|
|
|
22570
22570
|
|
|
22571
22571
|
var createTreeNode = React.useCallback(function () {
|
|
22572
|
-
if (!list) return
|
|
22572
|
+
if (!list) return React.createElement(React.Fragment, null);
|
|
22573
22573
|
return ctn(list);
|
|
22574
22574
|
|
|
22575
22575
|
function title(label) {
|
|
22576
22576
|
if (!filter) return label;
|
|
22577
22577
|
label = (filter.taxCategoryCode ? label.split(new RegExp(filter.taxCategoryCode, 'g')) : [label]).join("<span style=\"color: #1890ff;\">".concat(filter.taxCategoryCode, "</span>"));
|
|
22578
22578
|
label = (filter.val ? label.split(new RegExp(filter.val, 'g')) : [label]).join("<span style=\"color: #1890ff;\">".concat(filter.val, "</span>"));
|
|
22579
|
-
return
|
|
22579
|
+
return React.createElement("span", {
|
|
22580
22580
|
dangerouslySetInnerHTML: {
|
|
22581
22581
|
__html: label
|
|
22582
22582
|
}
|
|
@@ -22585,11 +22585,11 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
22585
22585
|
|
|
22586
22586
|
function ctn(l) {
|
|
22587
22587
|
var p = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '0';
|
|
22588
|
-
if (!l || !l.length) return [
|
|
22588
|
+
if (!l || !l.length) return [React.createElement(React.Fragment, null)];
|
|
22589
22589
|
return l.filter(function (e) {
|
|
22590
22590
|
return e.pid === p;
|
|
22591
22591
|
}).map(function (e) {
|
|
22592
|
-
return
|
|
22592
|
+
return React.createElement(TreeNode, {
|
|
22593
22593
|
title: title(e.label),
|
|
22594
22594
|
key: e.id
|
|
22595
22595
|
}, ctn(l, e.id));
|
|
@@ -22719,46 +22719,46 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
22719
22719
|
setList([]);
|
|
22720
22720
|
}
|
|
22721
22721
|
}, [visible]);
|
|
22722
|
-
return
|
|
22722
|
+
return React.createElement(React.Fragment, null, React.createElement(Input, {
|
|
22723
22723
|
readOnly: true,
|
|
22724
22724
|
value: props.value,
|
|
22725
|
-
addonAfter:
|
|
22725
|
+
addonAfter: React.createElement(Button, {
|
|
22726
22726
|
size: "small",
|
|
22727
22727
|
type: "link",
|
|
22728
22728
|
onClick: function onClick() {
|
|
22729
22729
|
setVisible(true);
|
|
22730
22730
|
}
|
|
22731
22731
|
}, "\u70B9\u51FB\u9009\u62E9")
|
|
22732
|
-
}),
|
|
22732
|
+
}), React.createElement(Drawer, {
|
|
22733
22733
|
title: "\u7A0E\u6536\u5206\u7C7B\u7F16\u7801",
|
|
22734
22734
|
visible: visible,
|
|
22735
22735
|
width: 500,
|
|
22736
22736
|
onClose: function onClose() {
|
|
22737
22737
|
setVisible(false);
|
|
22738
22738
|
}
|
|
22739
|
-
},
|
|
22739
|
+
}, React.createElement(Form, {
|
|
22740
22740
|
key: "".concat(visible)
|
|
22741
|
-
},
|
|
22741
|
+
}, React.createElement(Form.Item, {
|
|
22742
22742
|
label: "\u4EA7\u54C1\u6216\u670D\u52A1\u7B80\u79F0"
|
|
22743
|
-
},
|
|
22743
|
+
}, React.createElement(Input, {
|
|
22744
22744
|
onChange: function onChange(e) {
|
|
22745
22745
|
setFilter(_objectSpread2(_objectSpread2({}, filter), {}, {
|
|
22746
22746
|
val: e.target.value
|
|
22747
22747
|
}));
|
|
22748
22748
|
}
|
|
22749
|
-
})),
|
|
22749
|
+
})), React.createElement(Form.Item, {
|
|
22750
22750
|
label: "\u7A0E\u6536\u5206\u7C7B\u7F16\u7801"
|
|
22751
|
-
},
|
|
22751
|
+
}, React.createElement(Input, {
|
|
22752
22752
|
onChange: function onChange(e) {
|
|
22753
22753
|
setFilter(_objectSpread2(_objectSpread2({}, filter), {}, {
|
|
22754
22754
|
taxCategoryCode: e.target.value
|
|
22755
22755
|
}));
|
|
22756
22756
|
}
|
|
22757
|
-
}))), list && list.length > 0 ?
|
|
22757
|
+
}))), list && list.length > 0 ? React.createElement(Tree, {
|
|
22758
22758
|
defaultExpandAll: true,
|
|
22759
22759
|
selectedKeys: [],
|
|
22760
22760
|
onSelect: onSelect
|
|
22761
|
-
}, createTreeNode()) :
|
|
22761
|
+
}, createTreeNode()) : React.createElement("span", {
|
|
22762
22762
|
style: {
|
|
22763
22763
|
color: '#00000073'
|
|
22764
22764
|
}
|
|
@@ -22975,11 +22975,11 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
22975
22975
|
return data;
|
|
22976
22976
|
};
|
|
22977
22977
|
|
|
22978
|
-
return
|
|
22978
|
+
return React.createElement(React.Fragment, null, React.createElement(Input, {
|
|
22979
22979
|
readOnly: true,
|
|
22980
22980
|
onClick: onClick,
|
|
22981
22981
|
value: props.value
|
|
22982
|
-
}),
|
|
22982
|
+
}), React.createElement(TaxClassificationModal, {
|
|
22983
22983
|
list: list,
|
|
22984
22984
|
open: open,
|
|
22985
22985
|
onSelect: onSelect,
|
|
@@ -23095,14 +23095,14 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23095
23095
|
React.useEffect(function () {
|
|
23096
23096
|
if (controller.getTaxCategoryCodeList) controller.getTaxCategoryCodeList();
|
|
23097
23097
|
}, [controller]);
|
|
23098
|
-
return
|
|
23098
|
+
return React.createElement(SchemaForm, {
|
|
23099
23099
|
actions: actions,
|
|
23100
23100
|
previewPlaceholder: " ",
|
|
23101
23101
|
components: _objectSpread2(_objectSpread2({}, components), {}, {
|
|
23102
23102
|
showSearch: !!controller.state.goodsListState.endowCode.onLoadTaxClassificationCode ? ShowSearch3 : ShowSearch
|
|
23103
23103
|
}),
|
|
23104
23104
|
effects: effects
|
|
23105
|
-
},
|
|
23105
|
+
}, React.createElement(FormButtonGroup, null, React.createElement(SchemaMarkupField, {
|
|
23106
23106
|
name: "taxClassificationCode",
|
|
23107
23107
|
type: "showSearch",
|
|
23108
23108
|
title: "\u7A0E\u6536\u5206\u7C7B\u7F16\u7801",
|
|
@@ -23112,13 +23112,13 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23112
23112
|
message: '请选择税收分类编码',
|
|
23113
23113
|
required: true
|
|
23114
23114
|
}]
|
|
23115
|
-
}),
|
|
23115
|
+
}), React.createElement(SchemaMarkupField, {
|
|
23116
23116
|
name: "shorthand",
|
|
23117
23117
|
type: "string",
|
|
23118
23118
|
readOnly: true,
|
|
23119
23119
|
default: defaultValue === null || defaultValue === void 0 ? void 0 : defaultValue.shorthand,
|
|
23120
23120
|
title: "\u5546\u54C1\u548C\u670D\u52A1\u5206\u7C7B\u7B80\u79F0"
|
|
23121
|
-
}),
|
|
23121
|
+
}), React.createElement(SchemaMarkupField, {
|
|
23122
23122
|
name: "taxRate",
|
|
23123
23123
|
type: "string",
|
|
23124
23124
|
title: "\u7A0E\u7387",
|
|
@@ -23131,7 +23131,7 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23131
23131
|
message: '请选择税率',
|
|
23132
23132
|
required: true
|
|
23133
23133
|
}]
|
|
23134
|
-
}), taxRate === 0 && isTaxFreeTypeNeeded &&
|
|
23134
|
+
}), taxRate === 0 && isTaxFreeTypeNeeded && React.createElement(SchemaMarkupField, {
|
|
23135
23135
|
name: "taxFreeType",
|
|
23136
23136
|
type: "string",
|
|
23137
23137
|
title: "\u514D\u7A0E\u7C7B\u578B",
|
|
@@ -23144,7 +23144,7 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23144
23144
|
message: '请选择免税类型',
|
|
23145
23145
|
required: true
|
|
23146
23146
|
}]
|
|
23147
|
-
}),
|
|
23147
|
+
}), React.createElement(SchemaMarkupField, {
|
|
23148
23148
|
name: "favouredPolicyMark",
|
|
23149
23149
|
type: "number",
|
|
23150
23150
|
title: "\u662F\u5426\u4EAB\u53D7\u4F18\u60E0\u653F\u7B56",
|
|
@@ -23163,7 +23163,7 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23163
23163
|
message: '请选择是否享受优惠政策',
|
|
23164
23164
|
required: true
|
|
23165
23165
|
}]
|
|
23166
|
-
}), favouredPolicyMark === 1 &&
|
|
23166
|
+
}), favouredPolicyMark === 1 && React.createElement(SchemaMarkupField, {
|
|
23167
23167
|
name: "favouredPolicyName",
|
|
23168
23168
|
type: "string",
|
|
23169
23169
|
title: "\u4F18\u60E0\u653F\u7B56\u7C7B\u578B",
|
|
@@ -23176,14 +23176,14 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23176
23176
|
message: '请选择是否享受优惠政策',
|
|
23177
23177
|
required: true
|
|
23178
23178
|
}]
|
|
23179
|
-
})),
|
|
23179
|
+
})), React.createElement("span", {
|
|
23180
23180
|
className: "kts-invoice-operate-goods-endow-code-button-list"
|
|
23181
|
-
},
|
|
23181
|
+
}, React.createElement(Button, {
|
|
23182
23182
|
onClick: function onClick() {
|
|
23183
23183
|
actions.submit(onSubmit);
|
|
23184
23184
|
},
|
|
23185
23185
|
type: "primary"
|
|
23186
|
-
}, "\u786E\u5B9A"),
|
|
23186
|
+
}, "\u786E\u5B9A"), React.createElement(Button, {
|
|
23187
23187
|
onClick: function onClick() {
|
|
23188
23188
|
controller.pipeline( /*#__PURE__*/function () {
|
|
23189
23189
|
var _ref20 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee20(s) {
|
|
@@ -23343,53 +23343,53 @@ function AddComparisonDrawer() {
|
|
|
23343
23343
|
}));
|
|
23344
23344
|
}
|
|
23345
23345
|
}, [good]);
|
|
23346
|
-
return
|
|
23346
|
+
return React.createElement(Drawer$1, {
|
|
23347
23347
|
width: 500,
|
|
23348
23348
|
onClose: onClose,
|
|
23349
23349
|
placement: "right",
|
|
23350
23350
|
title: "\u5546\u54C1\u6620\u5C04",
|
|
23351
23351
|
visible: !!good,
|
|
23352
|
-
footer:
|
|
23352
|
+
footer: React.createElement("div", {
|
|
23353
23353
|
style: {
|
|
23354
23354
|
display: 'flex',
|
|
23355
23355
|
justifyContent: 'flex-end',
|
|
23356
23356
|
gap: 10
|
|
23357
23357
|
}
|
|
23358
|
-
},
|
|
23358
|
+
}, React.createElement(Button, {
|
|
23359
23359
|
type: "primary",
|
|
23360
23360
|
onClick: onSubmit
|
|
23361
|
-
}, "\u63D0\u4EA4"),
|
|
23361
|
+
}, "\u63D0\u4EA4"), React.createElement(Button, {
|
|
23362
23362
|
onClick: onClose
|
|
23363
23363
|
}, "\u53D6\u6D88"))
|
|
23364
|
-
}, !!good &&
|
|
23364
|
+
}, !!good && React.createElement(Form$1, {
|
|
23365
23365
|
layout: "vertical",
|
|
23366
23366
|
style: {
|
|
23367
23367
|
flex: 1
|
|
23368
23368
|
},
|
|
23369
23369
|
form: form
|
|
23370
|
-
},
|
|
23370
|
+
}, React.createElement(Row$1, {
|
|
23371
23371
|
gutter: [8, 8]
|
|
23372
|
-
},
|
|
23372
|
+
}, React.createElement(Col$1, {
|
|
23373
23373
|
span: 12
|
|
23374
|
-
},
|
|
23374
|
+
}, React.createElement(Form$1.Item, {
|
|
23375
23375
|
name: "itemNameSelf",
|
|
23376
23376
|
label: "\u6211\u65B9\u5546\u54C1\u540D\u79F0"
|
|
23377
|
-
},
|
|
23377
|
+
}, React.createElement(Input, null))), React.createElement(Col$1, {
|
|
23378
23378
|
span: 12
|
|
23379
|
-
},
|
|
23379
|
+
}, React.createElement(Form$1.Item, {
|
|
23380
23380
|
name: "itemName",
|
|
23381
23381
|
label: "\u5BF9\u65B9\u5546\u54C1\u540D\u79F0"
|
|
23382
|
-
},
|
|
23382
|
+
}, React.createElement(Input, null))), React.createElement(Col$1, {
|
|
23383
23383
|
span: 12
|
|
23384
|
-
},
|
|
23384
|
+
}, React.createElement(Form$1.Item, {
|
|
23385
23385
|
name: 'itemModelNameSelf',
|
|
23386
23386
|
label: "\u6211\u65B9\u89C4\u683C\u578B\u53F7"
|
|
23387
|
-
},
|
|
23387
|
+
}, React.createElement(Input, null))), React.createElement(Col$1, {
|
|
23388
23388
|
span: 12
|
|
23389
|
-
},
|
|
23389
|
+
}, React.createElement(Form$1.Item, {
|
|
23390
23390
|
name: "itemModelName",
|
|
23391
23391
|
label: "\u5BF9\u65B9\u89C4\u683C\u578B\u53F7"
|
|
23392
|
-
},
|
|
23392
|
+
}, React.createElement(Input, null))))));
|
|
23393
23393
|
} // function validateFields(form: WrappedFormUtils<any>) {
|
|
23394
23394
|
// return new Promise<{ err: any, values: any }>(resolve => {
|
|
23395
23395
|
// form.validateFields((err, values) => {
|
|
@@ -23400,7 +23400,7 @@ function AddComparisonDrawer() {
|
|
|
23400
23400
|
|
|
23401
23401
|
/** 发票组件的上下文 */
|
|
23402
23402
|
|
|
23403
|
-
var InvoiceContext =
|
|
23403
|
+
var InvoiceContext = React.createContext(undefined);
|
|
23404
23404
|
|
|
23405
23405
|
var Invoice = /*#__PURE__*/function (_React$PureComponent) {
|
|
23406
23406
|
_inherits(Invoice, _React$PureComponent);
|
|
@@ -23443,9 +23443,9 @@ var Invoice = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
23443
23443
|
/** 获取控制器钩子 */
|
|
23444
23444
|
function render() {
|
|
23445
23445
|
if (this.props.invoiceType === 'digtal') {
|
|
23446
|
-
return
|
|
23446
|
+
return React.createElement(Digtal, _objectSpread2({}, this.props));
|
|
23447
23447
|
} else {
|
|
23448
|
-
return
|
|
23448
|
+
return React.createElement(Main$4, _objectSpread2({}, this.props));
|
|
23449
23449
|
}
|
|
23450
23450
|
}
|
|
23451
23451
|
}]);
|
|
@@ -23486,10 +23486,10 @@ var Main$4 = function Main(props) {
|
|
|
23486
23486
|
React.useEffect(function () {
|
|
23487
23487
|
setKey(key + 1);
|
|
23488
23488
|
}, [controller]);
|
|
23489
|
-
return
|
|
23489
|
+
return React.createElement(InvoiceContext.Provider, {
|
|
23490
23490
|
key: key,
|
|
23491
23491
|
value: controller
|
|
23492
|
-
},
|
|
23492
|
+
}, React.createElement("div", {
|
|
23493
23493
|
className: "kts-invoice-operate",
|
|
23494
23494
|
ref: controller.pipeline( /*#__PURE__*/function () {
|
|
23495
23495
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(s, e) {
|
|
@@ -23511,17 +23511,17 @@ var Main$4 = function Main(props) {
|
|
|
23511
23511
|
return _ref.apply(this, arguments);
|
|
23512
23512
|
};
|
|
23513
23513
|
}())
|
|
23514
|
-
}, props.invoiceHeader ||
|
|
23514
|
+
}, props.invoiceHeader || React.createElement(InvoiceHeader, null)
|
|
23515
23515
|
/** 发票头 */
|
|
23516
|
-
, props.buyer ||
|
|
23516
|
+
, props.buyer || React.createElement(Buyer$1, null)
|
|
23517
23517
|
/** 购买方 */
|
|
23518
|
-
, props.goodsList ||
|
|
23518
|
+
, props.goodsList || React.createElement(GoodsList, null)
|
|
23519
23519
|
/** 货物列表 */
|
|
23520
|
-
, props.seller ||
|
|
23520
|
+
, props.seller || React.createElement(Buyer, null)
|
|
23521
23521
|
/** 销售方 */
|
|
23522
|
-
, props.sign ||
|
|
23522
|
+
, props.sign || React.createElement(Sign, null)
|
|
23523
23523
|
/** 落款 */
|
|
23524
|
-
, props.footExpand),
|
|
23524
|
+
, props.footExpand), React.createElement(ImportBuyerDrawer, null), React.createElement(ImportGoodsDrawer, null), React.createElement(EndowCodeDrawer, null), React.createElement(AddComparisonDrawer, null));
|
|
23525
23525
|
};
|
|
23526
23526
|
/** 数电 */
|
|
23527
23527
|
|
|
@@ -23540,10 +23540,10 @@ var Digtal = function Digtal(props) {
|
|
|
23540
23540
|
React.useEffect(function () {
|
|
23541
23541
|
setKey(key + 1);
|
|
23542
23542
|
}, [controller]);
|
|
23543
|
-
return
|
|
23543
|
+
return React.createElement(InvoiceContext.Provider, {
|
|
23544
23544
|
key: key,
|
|
23545
23545
|
value: controller
|
|
23546
|
-
},
|
|
23546
|
+
}, React.createElement("div", {
|
|
23547
23547
|
className: "kts-invoice-operate-digtal",
|
|
23548
23548
|
ref: controller.pipeline( /*#__PURE__*/function () {
|
|
23549
23549
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(s, e) {
|
|
@@ -23565,17 +23565,17 @@ var Digtal = function Digtal(props) {
|
|
|
23565
23565
|
return _ref2.apply(this, arguments);
|
|
23566
23566
|
};
|
|
23567
23567
|
}())
|
|
23568
|
-
}, props.invoiceHeader ||
|
|
23568
|
+
}, props.invoiceHeader || React.createElement(InvoiceHeaderDigtal, null)
|
|
23569
23569
|
/** 发票头 */
|
|
23570
|
-
,
|
|
23570
|
+
, React.createElement("div", {
|
|
23571
23571
|
className: 'kts-invoice-operate-digtal-cont'
|
|
23572
|
-
}, props.stakeholder ||
|
|
23572
|
+
}, props.stakeholder || React.createElement(Stakeholder$1, null)
|
|
23573
23573
|
/** 干系人 */
|
|
23574
|
-
, props.goodsList ||
|
|
23574
|
+
, props.goodsList || React.createElement(GoodsList$1
|
|
23575
23575
|
/** 货物列表 */
|
|
23576
|
-
, null)), props.sign ||
|
|
23576
|
+
, null)), props.sign || React.createElement(SignDigtal, null)
|
|
23577
23577
|
/** 落款 */
|
|
23578
|
-
),
|
|
23578
|
+
), React.createElement(ImportGoodsDrawer, null), React.createElement(EndowCodeDrawer, null));
|
|
23579
23579
|
};
|
|
23580
23580
|
|
|
23581
23581
|
function TaxClassificationModal(props) {
|
|
@@ -23616,26 +23616,26 @@ function TaxClassificationModal(props) {
|
|
|
23616
23616
|
}, 500);
|
|
23617
23617
|
}
|
|
23618
23618
|
}, [form, props.open]);
|
|
23619
|
-
return
|
|
23619
|
+
return React.createElement(Drawer$1, {
|
|
23620
23620
|
title: "\u5546\u54C1\u548C\u670D\u52A1\u7A0E\u6536\u5206\u7C7B\u7F16\u7801",
|
|
23621
23621
|
placement: "right",
|
|
23622
23622
|
open: props.open,
|
|
23623
23623
|
width: 503,
|
|
23624
23624
|
onClose: props.onCancel
|
|
23625
|
-
},
|
|
23625
|
+
}, React.createElement(Form$1, {
|
|
23626
23626
|
form: form
|
|
23627
|
-
},
|
|
23627
|
+
}, React.createElement(Form$1.Item, {
|
|
23628
23628
|
name: 'search'
|
|
23629
|
-
},
|
|
23629
|
+
}, React.createElement(Input$1, {
|
|
23630
23630
|
placeholder: "\u8BF7\u8F93\u5165\u7A0E\u6536\u5206\u7C7B\u7F16\u7801\u3001\u7A0E\u6536\u5206\u7C7B\u540D\u79F0\u8FDB\u884C\u68C0\u7D22",
|
|
23631
23631
|
onChange: searchTax
|
|
23632
|
-
})),
|
|
23632
|
+
})), React.createElement(Form$1.Item, {
|
|
23633
23633
|
name: 'tree'
|
|
23634
|
-
},
|
|
23634
|
+
}, React.createElement(Tree$1, {
|
|
23635
23635
|
onSelect: props.onSelect,
|
|
23636
23636
|
loadData: props.onLoad,
|
|
23637
23637
|
treeData: props.list,
|
|
23638
|
-
switcherIcon:
|
|
23638
|
+
switcherIcon: React.createElement(Icon$1, {
|
|
23639
23639
|
type: "down"
|
|
23640
23640
|
})
|
|
23641
23641
|
}))));
|