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