kts-component-invoice-operate 3.2.98 → 3.2.99
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/Invoice/ui/default/GoodsList/hook/useColumns/ui/ItemNameInput/index.d.ts +0 -1
- package/dist/index.esm.js +620 -610
- package/dist/index.js +620 -610
- 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 +20 -20
- package/src/Invoice/InvoiceController/InvoiceControllerState/BuyerState/index.tsx +88 -88
- package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/Drag/index.ts +15 -15
- package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/EndowCode/index.tsx +104 -104
- package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/IColumnsReplenish/index.ts +10 -10
- package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/IGood/index.ts +78 -78
- package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/ImportGoods/index.ts +80 -80
- package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/LineAttributeType/index.ts +7 -7
- package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/ProductComparison/index.ts +9 -9
- package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/index.ts +113 -113
- package/src/Invoice/InvoiceController/InvoiceControllerState/Stakeholder/index.ts +13 -13
- package/src/Invoice/InvoiceController/InvoiceControllerState/index.ts +65 -65
- package/src/Invoice/InvoiceController/fns/addGood.ts +11 -11
- package/src/Invoice/InvoiceController/fns/addGoodDiscount.ts +126 -126
- package/src/Invoice/InvoiceController/fns/addGoodDiscountV2.ts +86 -86
- package/src/Invoice/InvoiceController/fns/delGood.ts +41 -41
- package/src/Invoice/InvoiceController/fns/getGoodsSearch.ts +26 -26
- package/src/Invoice/InvoiceController/fns/importGoodsDrawer.ts +79 -79
- package/src/Invoice/InvoiceController/fns/mergeDetails.ts +165 -165
- package/src/Invoice/InvoiceController/fns/mergeDiscount.ts +28 -28
- package/src/Invoice/InvoiceController/fns/saveEditGood.ts +24 -24
- package/src/Invoice/InvoiceController/fns/setEditGood.ts +16 -16
- package/src/Invoice/InvoiceController/fns/setGoods.ts +10 -10
- package/src/Invoice/InvoiceController/fns/updateInvoiceNo.ts +8 -8
- package/src/Invoice/InvoiceController/index.ts +77 -77
- package/src/Invoice/_test/buyerNameSearch/index.tsx +42 -42
- package/src/Invoice/_test/deduction/index.tsx +935 -935
- package/src/Invoice/_test/draft/index.tsx +40 -40
- package/src/Invoice/_test/easiest/index.tsx +5 -5
- package/src/Invoice/_test/endowCode/index.tsx +1156 -1156
- package/src/Invoice/_test/goodsMenuExpand/index.tsx +32 -32
- package/src/Invoice/_test/importBuyer/index.tsx +74 -74
- package/src/Invoice/_test/importGoods/index.tsx +516 -1161
- package/src/Invoice/_test/invoiceType/index.tsx +59 -59
- package/src/Invoice/_test/isInvoiceNo/index.tsx +12 -12
- package/src/Invoice/_test/replaceHead/index.tsx +22 -22
- package/src/Invoice/_test/retrieveData/index.tsx +22 -22
- package/src/Invoice/_test/seller/index.tsx +28 -28
- package/src/Invoice/_test/setDataSource/index.tsx +73 -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 +687 -687
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/Drag/index.less +20 -20
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/Drag/index.tsx +205 -205
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/ItemCodeInput/index.less +18 -18
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/ItemCodeInput/index.tsx +47 -47
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/ItemNameInput/index.less +17 -17
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/ItemNameInput/index.tsx +91 -99
- 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 +54 -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
|
@@ -9465,7 +9465,7 @@ var InvoiceHeader = decorator(Form.create())(function (props) {
|
|
|
9465
9465
|
render: function render(form) {
|
|
9466
9466
|
return form.getFieldDecorator('code', {
|
|
9467
9467
|
initialValue: props.defaultCode
|
|
9468
|
-
})(
|
|
9468
|
+
})(React.createElement(FormSpanString, null));
|
|
9469
9469
|
}
|
|
9470
9470
|
});
|
|
9471
9471
|
}
|
|
@@ -9478,7 +9478,7 @@ var InvoiceHeader = decorator(Form.create())(function (props) {
|
|
|
9478
9478
|
render: function render(form) {
|
|
9479
9479
|
return form.getFieldDecorator('no', {
|
|
9480
9480
|
initialValue: props.defaultNo
|
|
9481
|
-
})(
|
|
9481
|
+
})(React.createElement(FormSpanString, null));
|
|
9482
9482
|
}
|
|
9483
9483
|
});
|
|
9484
9484
|
}
|
|
@@ -9489,7 +9489,7 @@ var InvoiceHeader = decorator(Form.create())(function (props) {
|
|
|
9489
9489
|
render: function render(form) {
|
|
9490
9490
|
return form.getFieldDecorator('invoicingDate', {
|
|
9491
9491
|
initialValue: props.defaultInvoicingDate
|
|
9492
|
-
})(
|
|
9492
|
+
})(React.createElement(FormSpanString, null));
|
|
9493
9493
|
}
|
|
9494
9494
|
});
|
|
9495
9495
|
}
|
|
@@ -9500,7 +9500,7 @@ var InvoiceHeader = decorator(Form.create())(function (props) {
|
|
|
9500
9500
|
render: function render(form) {
|
|
9501
9501
|
return form.getFieldDecorator('defaultValidationCode', {
|
|
9502
9502
|
initialValue: props.defaultValidationCode
|
|
9503
|
-
})(
|
|
9503
|
+
})(React.createElement(FormSpanString, null));
|
|
9504
9504
|
}
|
|
9505
9505
|
});
|
|
9506
9506
|
}
|
|
@@ -9520,21 +9520,21 @@ var InvoiceHeader = decorator(Form.create())(function (props) {
|
|
|
9520
9520
|
React.useEffect(function () {
|
|
9521
9521
|
setTypeIndex(props.typeOptionIndex || 0);
|
|
9522
9522
|
}, [props.typeOption]);
|
|
9523
|
-
return
|
|
9523
|
+
return React.createElement("div", {
|
|
9524
9524
|
className: "kts-invoice-operate-invoice-header"
|
|
9525
|
-
},
|
|
9525
|
+
}, React.createElement("div", {
|
|
9526
9526
|
className: "invoice-header-title"
|
|
9527
|
-
}, title),
|
|
9527
|
+
}, title), React.createElement("div", {
|
|
9528
9528
|
className: "invoice-header-no"
|
|
9529
|
-
}, isInvoiceNo ?
|
|
9529
|
+
}, isInvoiceNo ? React.createElement("div", null, React.createElement("label", null, "\u53D1\u7968\u5355\u636E\u7F16\u53F7 :"), getFieldDecorator('id', {
|
|
9530
9530
|
initialValue: props.defaultId
|
|
9531
|
-
})(
|
|
9531
|
+
})(React.createElement(Input, {
|
|
9532
9532
|
disabled: readOnlyInvoiceNo,
|
|
9533
9533
|
style: {
|
|
9534
9534
|
width: 230
|
|
9535
9535
|
},
|
|
9536
9536
|
size: "small",
|
|
9537
|
-
suffix: controller.updateInvoiceNo &&
|
|
9537
|
+
suffix: controller.updateInvoiceNo && React.createElement(Icon$1, {
|
|
9538
9538
|
style: {
|
|
9539
9539
|
cursor: 'pointer'
|
|
9540
9540
|
},
|
|
@@ -9578,15 +9578,15 @@ var InvoiceHeader = decorator(Form.create())(function (props) {
|
|
|
9578
9578
|
return onClick;
|
|
9579
9579
|
}()
|
|
9580
9580
|
})
|
|
9581
|
-
}))) :
|
|
9581
|
+
}))) : React.createElement("div", {
|
|
9582
9582
|
style: {
|
|
9583
9583
|
height: 20
|
|
9584
9584
|
}
|
|
9585
|
-
}), tag &&
|
|
9585
|
+
}), tag && React.createElement(Tag$1, null, tag), React.createElement("div", {
|
|
9586
9586
|
className: "invoice-header-type"
|
|
9587
9587
|
}, props.typeOption ? getFieldDecorator('type', {
|
|
9588
9588
|
initialValue: typeIndex
|
|
9589
|
-
})(
|
|
9589
|
+
})(React.createElement(Select, {
|
|
9590
9590
|
size: "small",
|
|
9591
9591
|
style: {
|
|
9592
9592
|
width: 230
|
|
@@ -9595,20 +9595,20 @@ var InvoiceHeader = decorator(Form.create())(function (props) {
|
|
|
9595
9595
|
setTypeIndex(e);
|
|
9596
9596
|
}
|
|
9597
9597
|
}, props.typeOption.map(function (e, i) {
|
|
9598
|
-
return
|
|
9598
|
+
return React.createElement(Select.Option, {
|
|
9599
9599
|
key: i,
|
|
9600
9600
|
value: i
|
|
9601
9601
|
}, e.title);
|
|
9602
|
-
}))) : props.renderExpand && props.renderExpand(props.form))), props.typeOption &&
|
|
9602
|
+
}))) : props.renderExpand && props.renderExpand(props.form))), props.typeOption && React.createElement("div", {
|
|
9603
9603
|
style: {
|
|
9604
9604
|
marginTop: 10
|
|
9605
9605
|
}
|
|
9606
|
-
}, props.renderExpand && props.renderExpand(props.form)),
|
|
9606
|
+
}, props.renderExpand && props.renderExpand(props.form)), React.createElement("div", {
|
|
9607
9607
|
className: "invoice-header-property"
|
|
9608
|
-
}, _toConsumableArray(props.fieldExpand || []).map(function (e) {}),
|
|
9608
|
+
}, _toConsumableArray(props.fieldExpand || []).map(function (e) {}), React.createElement("ul", {
|
|
9609
9609
|
className: 'invoice-header-property-fieldExpand'
|
|
9610
9610
|
}, fieldExpand.map(function (e) {
|
|
9611
|
-
return
|
|
9611
|
+
return React.createElement("li", null, React.createElement("label", null, e.label), e.render(form));
|
|
9612
9612
|
}))));
|
|
9613
9613
|
});
|
|
9614
9614
|
|
|
@@ -9627,7 +9627,7 @@ var FormSpanString = /*#__PURE__*/function (_React$Component) {
|
|
|
9627
9627
|
key: "render",
|
|
9628
9628
|
value: function render() {
|
|
9629
9629
|
// return <span>{this.props.value}</span>;
|
|
9630
|
-
return
|
|
9630
|
+
return React.createElement(Input, {
|
|
9631
9631
|
size: "small",
|
|
9632
9632
|
disabled: true,
|
|
9633
9633
|
value: this.props.value
|
|
@@ -9738,12 +9738,12 @@ function TableVirtual (props) {
|
|
|
9738
9738
|
if (!cont) return;
|
|
9739
9739
|
cont.scrollTop = 0;
|
|
9740
9740
|
}, [(_props$dataSource2 = props.dataSource) === null || _props$dataSource2 === void 0 ? void 0 : _props$dataSource2.length]);
|
|
9741
|
-
return
|
|
9741
|
+
return React.createElement("span", {
|
|
9742
9742
|
className: "kts-invoice-operate-goods-table-virtual",
|
|
9743
9743
|
ref: function ref(e) {
|
|
9744
9744
|
setSelf(e);
|
|
9745
9745
|
}
|
|
9746
|
-
},
|
|
9746
|
+
}, React.createElement(TableManual, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
9747
9747
|
dataSource: dataSource,
|
|
9748
9748
|
// 新版本Table会有输入框无法连续输入的问题,先兼容老版本
|
|
9749
9749
|
tableComponent: Table
|
|
@@ -9835,59 +9835,59 @@ var Statistics = (function () {
|
|
|
9835
9835
|
});
|
|
9836
9836
|
return sum.done().toNumber();
|
|
9837
9837
|
}, []);
|
|
9838
|
-
return
|
|
9838
|
+
return React.createElement("div", {
|
|
9839
9839
|
className: "kts-invoice-operate-goods-list-statistics"
|
|
9840
|
-
},
|
|
9840
|
+
}, React.createElement("div", {
|
|
9841
9841
|
className: "kts-invoice-operate-goods-list-statistics-row"
|
|
9842
|
-
},
|
|
9842
|
+
}, React.createElement("div", {
|
|
9843
9843
|
style: {
|
|
9844
9844
|
width: 45.92
|
|
9845
9845
|
}
|
|
9846
|
-
}),
|
|
9846
|
+
}), React.createElement("div", {
|
|
9847
9847
|
style: {
|
|
9848
9848
|
flex: 1
|
|
9849
9849
|
}
|
|
9850
|
-
},
|
|
9850
|
+
}, React.createElement("label", null, "\u5408\u8BA1")), React.createElement("div", {
|
|
9851
9851
|
style: {
|
|
9852
9852
|
width: 119,
|
|
9853
9853
|
textAlign: 'right',
|
|
9854
9854
|
border: 'none'
|
|
9855
9855
|
}
|
|
9856
|
-
},
|
|
9856
|
+
}, React.createElement("label", null, parseFloat(isTaxIncluded ? lineAmountIncludeTax : lineAmountExcludeTax).toFixed(2))), React.createElement("div", {
|
|
9857
9857
|
style: {
|
|
9858
9858
|
width: 70,
|
|
9859
9859
|
border: 'none'
|
|
9860
9860
|
}
|
|
9861
|
-
}),
|
|
9861
|
+
}), React.createElement("div", {
|
|
9862
9862
|
style: {
|
|
9863
9863
|
width: 119,
|
|
9864
9864
|
textAlign: 'right',
|
|
9865
9865
|
border: 'none'
|
|
9866
9866
|
}
|
|
9867
|
-
},
|
|
9867
|
+
}, React.createElement("label", null, parseFloat(taxAmount).toFixed(2))), React.createElement("div", {
|
|
9868
9868
|
style: {
|
|
9869
9869
|
width: 111,
|
|
9870
9870
|
border: 'none'
|
|
9871
9871
|
}
|
|
9872
|
-
})),
|
|
9872
|
+
})), React.createElement("div", {
|
|
9873
9873
|
className: "kts-invoice-operate-goods-list-statistics-row"
|
|
9874
|
-
},
|
|
9874
|
+
}, React.createElement("div", {
|
|
9875
9875
|
style: {
|
|
9876
9876
|
width: 45.92
|
|
9877
9877
|
}
|
|
9878
|
-
}),
|
|
9878
|
+
}), React.createElement("div", {
|
|
9879
9879
|
style: {
|
|
9880
9880
|
flex: 5,
|
|
9881
9881
|
border: 'none'
|
|
9882
9882
|
}
|
|
9883
|
-
},
|
|
9883
|
+
}, React.createElement("label", null, "\u4EF7\u7A0E\u5408\u8BA1\uFF08\u5927\u5199\uFF09"), React.createElement("label", null, nzhcn.toMoney(lineAmountIncludeTax, {
|
|
9884
9884
|
outSymbol: false
|
|
9885
|
-
}))),
|
|
9885
|
+
}))), React.createElement("div", {
|
|
9886
9886
|
style: {
|
|
9887
9887
|
flex: 5,
|
|
9888
9888
|
border: 'none'
|
|
9889
9889
|
}
|
|
9890
|
-
},
|
|
9890
|
+
}, React.createElement("label", null, "\uFF08\u5C0F\u5199\uFF09 ", parseFloat(lineAmountIncludeTax).toFixed(2)))));
|
|
9891
9891
|
});
|
|
9892
9892
|
|
|
9893
9893
|
var AddRowButton = (function () {
|
|
@@ -9942,10 +9942,10 @@ var AddRowButton = (function () {
|
|
|
9942
9942
|
}
|
|
9943
9943
|
}, _callee);
|
|
9944
9944
|
})), [controller, rootElement]);
|
|
9945
|
-
if (isAddRow === false) return
|
|
9946
|
-
if (model === 'prefab') return
|
|
9947
|
-
if (model === 'readOnly') return
|
|
9948
|
-
return
|
|
9945
|
+
if (isAddRow === false) return React.createElement(React.Fragment, null);
|
|
9946
|
+
if (model === 'prefab') return React.createElement(React.Fragment, null);
|
|
9947
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
9948
|
+
return React.createElement(Button, {
|
|
9949
9949
|
onClick: onClick,
|
|
9950
9950
|
disabled: disabled
|
|
9951
9951
|
}, "\u6DFB\u52A0\u884C");
|
|
@@ -10096,11 +10096,11 @@ var TaxIncludedSwitch = (function () {
|
|
|
10096
10096
|
};
|
|
10097
10097
|
}())();
|
|
10098
10098
|
}, []);
|
|
10099
|
-
return
|
|
10099
|
+
return React.createElement("span", null, React.createElement("label", {
|
|
10100
10100
|
style: {
|
|
10101
10101
|
marginRight: 2
|
|
10102
10102
|
}
|
|
10103
|
-
}, "\u542B\u7A0E:"),
|
|
10103
|
+
}, "\u542B\u7A0E:"), React.createElement(Switch, {
|
|
10104
10104
|
disabled: isSwitchTax === false,
|
|
10105
10105
|
checked: isTaxIncluded,
|
|
10106
10106
|
defaultChecked: true,
|
|
@@ -10138,19 +10138,19 @@ var DescribeSwitch = (function () {
|
|
|
10138
10138
|
};
|
|
10139
10139
|
}());
|
|
10140
10140
|
}, []);
|
|
10141
|
-
if (!productComparison.onComply) return
|
|
10142
|
-
return
|
|
10141
|
+
if (!productComparison.onComply) return React.createElement(React.Fragment, null);
|
|
10142
|
+
return React.createElement("span", null, React.createElement("label", {
|
|
10143
10143
|
style: {
|
|
10144
10144
|
marginRight: 2
|
|
10145
10145
|
}
|
|
10146
|
-
},
|
|
10146
|
+
}, React.createElement(Tooltip, {
|
|
10147
10147
|
title: "\u84DD\u8272\u4EE3\u8868\u6211\u65B9\u5546\u54C1\u63CF\u8FF0\uFF0C\u9ED1\u8272\u4EE3\u8868\u5BF9\u65B9\u7684\u5546\u54C1\u63CF\u8FF0\u3002"
|
|
10148
|
-
},
|
|
10148
|
+
}, React.createElement(Icon$1, {
|
|
10149
10149
|
style: {
|
|
10150
10150
|
marginRight: 3
|
|
10151
10151
|
},
|
|
10152
10152
|
type: "info-circle"
|
|
10153
|
-
})), "\u4F7F\u7528\u54EA\u65B9\u5546\u54C1\u63CF\u8FF0:"),
|
|
10153
|
+
})), "\u4F7F\u7528\u54EA\u65B9\u5546\u54C1\u63CF\u8FF0:"), React.createElement(Switch$1, {
|
|
10154
10154
|
checked: isMyShow,
|
|
10155
10155
|
checkedChildren: "\u6211\u65B9",
|
|
10156
10156
|
unCheckedChildren: "\u5BF9\u65B9",
|
|
@@ -10250,13 +10250,13 @@ function Search() {
|
|
|
10250
10250
|
};
|
|
10251
10251
|
}());
|
|
10252
10252
|
}, [value, controller]);
|
|
10253
|
-
return
|
|
10253
|
+
return React.createElement(Input, {
|
|
10254
10254
|
size: "small",
|
|
10255
10255
|
readOnly: readOnly,
|
|
10256
10256
|
value: value,
|
|
10257
10257
|
className: "kts-invoice-operate-goods-list-search",
|
|
10258
10258
|
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"),
|
|
10259
|
-
prefix:
|
|
10259
|
+
prefix: React.createElement(Icon$1, {
|
|
10260
10260
|
component: SvgMagnifier,
|
|
10261
10261
|
style: {
|
|
10262
10262
|
color: "#b8b8b8"
|
|
@@ -10308,13 +10308,13 @@ function TableRow(props) {
|
|
|
10308
10308
|
return undefined;
|
|
10309
10309
|
}
|
|
10310
10310
|
}, [good, goodsMap]);
|
|
10311
|
-
return rowKey === current && current ?
|
|
10311
|
+
return rowKey === current && current ? React.createElement("tr", {
|
|
10312
10312
|
style: {
|
|
10313
10313
|
height: 32.67,
|
|
10314
10314
|
borderBottom: '1px solid #E6E6E6',
|
|
10315
10315
|
position: 'relative'
|
|
10316
10316
|
}
|
|
10317
|
-
},
|
|
10317
|
+
}, React.createElement("div", {
|
|
10318
10318
|
style: {
|
|
10319
10319
|
height: 1,
|
|
10320
10320
|
width: '100%',
|
|
@@ -10322,7 +10322,7 @@ function TableRow(props) {
|
|
|
10322
10322
|
position: 'absolute',
|
|
10323
10323
|
bottom: 0
|
|
10324
10324
|
}
|
|
10325
|
-
})) :
|
|
10325
|
+
})) : React.createElement("tr", _objectSpread2(_objectSpread2({}, props), {}, {
|
|
10326
10326
|
className: classNames(props.className, discount, rowKey === container && current ? 'kts-invoice-operate-goods-list-itemName-drag-container-' + site : undefined)
|
|
10327
10327
|
}));
|
|
10328
10328
|
}
|
|
@@ -10730,7 +10730,7 @@ var RowMenu = (function (props) {
|
|
|
10730
10730
|
// addComparison && arr.push(addComparison); // 添加商品对照
|
|
10731
10731
|
|
|
10732
10732
|
if (!goodsMenuExpand || goodsMenuExpand.length === 0) return arr;
|
|
10733
|
-
arr.unshift(
|
|
10733
|
+
arr.unshift(React.createElement(Menu.Divider, {
|
|
10734
10734
|
key: "divider-1"
|
|
10735
10735
|
}));
|
|
10736
10736
|
|
|
@@ -10746,17 +10746,17 @@ var RowMenu = (function (props) {
|
|
|
10746
10746
|
return undefined;
|
|
10747
10747
|
}
|
|
10748
10748
|
|
|
10749
|
-
return
|
|
10750
|
-
return
|
|
10749
|
+
return React.createElement(Menu, null, itemList.slice(2).map(function (e) {
|
|
10750
|
+
return React.createElement(Menu.Item, {
|
|
10751
10751
|
key: e.key,
|
|
10752
10752
|
onClick: e.onClick
|
|
10753
|
-
},
|
|
10753
|
+
}, React.createElement(Text$1, {
|
|
10754
10754
|
strong: true
|
|
10755
10755
|
}, e.title));
|
|
10756
10756
|
}));
|
|
10757
10757
|
}, [itemList]);
|
|
10758
10758
|
var buttonList = React.useMemo(function () {
|
|
10759
|
-
return
|
|
10759
|
+
return React.createElement("div", {
|
|
10760
10760
|
style: {
|
|
10761
10761
|
flex: 1,
|
|
10762
10762
|
textAlign: 'left',
|
|
@@ -10764,7 +10764,7 @@ var RowMenu = (function (props) {
|
|
|
10764
10764
|
gap: 10
|
|
10765
10765
|
}
|
|
10766
10766
|
}, itemList.slice(0, 2).map(function (e) {
|
|
10767
|
-
return
|
|
10767
|
+
return React.createElement(Button, {
|
|
10768
10768
|
key: e.key,
|
|
10769
10769
|
type: 'link',
|
|
10770
10770
|
onClick: e.onClick,
|
|
@@ -10776,21 +10776,21 @@ var RowMenu = (function (props) {
|
|
|
10776
10776
|
}, [itemList]);
|
|
10777
10777
|
|
|
10778
10778
|
if (itemList.length === 0) {
|
|
10779
|
-
return
|
|
10779
|
+
return React.createElement(React.Fragment, null);
|
|
10780
10780
|
}
|
|
10781
10781
|
|
|
10782
|
-
return
|
|
10782
|
+
return React.createElement("span", {
|
|
10783
10783
|
style: {
|
|
10784
10784
|
padding: '0 0 0 10px',
|
|
10785
10785
|
display: 'flex'
|
|
10786
10786
|
}
|
|
10787
|
-
}, buttonList, overlay &&
|
|
10787
|
+
}, buttonList, overlay && React.createElement(Dropdown, {
|
|
10788
10788
|
overlay: overlay,
|
|
10789
10789
|
trigger: ['click']
|
|
10790
|
-
},
|
|
10790
|
+
}, React.createElement(Button, {
|
|
10791
10791
|
className: "kts-invoice-operate-goods-list-columns-row-menu ant-btn-icon-only",
|
|
10792
10792
|
type: "link"
|
|
10793
|
-
},
|
|
10793
|
+
}, React.createElement(Icon$1, {
|
|
10794
10794
|
component: SvgSpot
|
|
10795
10795
|
}))));
|
|
10796
10796
|
});
|
|
@@ -10804,16 +10804,14 @@ var TitleText = (function (props) {
|
|
|
10804
10804
|
return !!e.required;
|
|
10805
10805
|
})) || props.required;
|
|
10806
10806
|
}, [rules, props.required]);
|
|
10807
|
-
return
|
|
10807
|
+
return React.createElement(React.Fragment, null, required ? React.createElement(Text$2, {
|
|
10808
10808
|
type: "danger"
|
|
10809
|
-
}, "*") :
|
|
10809
|
+
}, "*") : React.createElement(React.Fragment, null), children);
|
|
10810
10810
|
});
|
|
10811
10811
|
|
|
10812
10812
|
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";
|
|
10813
10813
|
styleInject(css_248z$7);
|
|
10814
10814
|
|
|
10815
|
-
// import evaluate from '../../../../../../../tools/evaluate';
|
|
10816
|
-
|
|
10817
10815
|
function ItemNameInput(props) {
|
|
10818
10816
|
var controller = Invoice.useInvoiceController();
|
|
10819
10817
|
var autoComplete = controller.useMemo(function (s) {
|
|
@@ -10830,6 +10828,11 @@ function ItemNameInput(props) {
|
|
|
10830
10828
|
selectLine = _React$useState4[0],
|
|
10831
10829
|
setSelectLine = _React$useState4[1];
|
|
10832
10830
|
|
|
10831
|
+
var _React$useState5 = React.useState(props.value),
|
|
10832
|
+
_React$useState6 = _slicedToArray(_React$useState5, 2),
|
|
10833
|
+
value = _React$useState6[0],
|
|
10834
|
+
setValue = _React$useState6[1];
|
|
10835
|
+
|
|
10833
10836
|
var onChange = React.useCallback(function (e) {
|
|
10834
10837
|
var event = _objectSpread2({}, e);
|
|
10835
10838
|
|
|
@@ -10894,41 +10897,52 @@ function ItemNameInput(props) {
|
|
|
10894
10897
|
}(), [autoComplete.onItemNameBlur, selectLine, props.editGood]);
|
|
10895
10898
|
var onSearch = React.useCallback( /*#__PURE__*/function () {
|
|
10896
10899
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(searchText) {
|
|
10900
|
+
var list;
|
|
10897
10901
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
10898
10902
|
while (1) {
|
|
10899
10903
|
switch (_context2.prev = _context2.next) {
|
|
10900
10904
|
case 0:
|
|
10901
10905
|
_context2.prev = 0;
|
|
10902
10906
|
|
|
10903
|
-
if (!autoComplete.onItemNameSearch) {
|
|
10904
|
-
_context2.next =
|
|
10907
|
+
if (!(autoComplete.onItemNameSearch && searchText)) {
|
|
10908
|
+
_context2.next = 10;
|
|
10905
10909
|
break;
|
|
10906
10910
|
}
|
|
10907
10911
|
|
|
10908
|
-
_context2.t0 =
|
|
10912
|
+
_context2.t0 = _toConsumableArray;
|
|
10909
10913
|
_context2.next = 5;
|
|
10910
10914
|
return autoComplete.onItemNameSearch(searchText);
|
|
10911
10915
|
|
|
10912
10916
|
case 5:
|
|
10913
10917
|
_context2.t1 = _context2.sent;
|
|
10914
|
-
(0, _context2.t0)(_context2.t1)
|
|
10918
|
+
list = (0, _context2.t0)(_context2.t1).map(function (e) {
|
|
10919
|
+
return _objectSpread2(_objectSpread2({}, e), {}, {
|
|
10920
|
+
$index: v4()
|
|
10921
|
+
});
|
|
10922
|
+
});
|
|
10923
|
+
setOptions(list);
|
|
10924
|
+
_context2.next = 11;
|
|
10925
|
+
break;
|
|
10915
10926
|
|
|
10916
|
-
case
|
|
10917
|
-
|
|
10927
|
+
case 10:
|
|
10928
|
+
setOptions([]);
|
|
10929
|
+
|
|
10930
|
+
case 11:
|
|
10931
|
+
_context2.next = 17;
|
|
10918
10932
|
break;
|
|
10919
10933
|
|
|
10920
|
-
case
|
|
10921
|
-
_context2.prev =
|
|
10934
|
+
case 13:
|
|
10935
|
+
_context2.prev = 13;
|
|
10922
10936
|
_context2.t2 = _context2["catch"](0);
|
|
10923
10937
|
setOptions([]);
|
|
10924
10938
|
throw _context2.t2;
|
|
10925
10939
|
|
|
10926
|
-
case
|
|
10940
|
+
case 17:
|
|
10927
10941
|
case "end":
|
|
10928
10942
|
return _context2.stop();
|
|
10929
10943
|
}
|
|
10930
10944
|
}
|
|
10931
|
-
}, _callee2, null, [[0,
|
|
10945
|
+
}, _callee2, null, [[0, 13]]);
|
|
10932
10946
|
}));
|
|
10933
10947
|
|
|
10934
10948
|
return function (_x2) {
|
|
@@ -10936,14 +10950,14 @@ function ItemNameInput(props) {
|
|
|
10936
10950
|
};
|
|
10937
10951
|
}(), [autoComplete.onItemNameSearch]);
|
|
10938
10952
|
var onChangeAutoComplete = React.useCallback( /*#__PURE__*/function () {
|
|
10939
|
-
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(
|
|
10953
|
+
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_, i) {
|
|
10940
10954
|
var record;
|
|
10941
10955
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
10942
10956
|
while (1) {
|
|
10943
10957
|
switch (_context3.prev = _context3.next) {
|
|
10944
10958
|
case 0:
|
|
10945
10959
|
record = options.filter(function (e) {
|
|
10946
|
-
return e
|
|
10960
|
+
return e.$index === i.value;
|
|
10947
10961
|
})[0];
|
|
10948
10962
|
|
|
10949
10963
|
if (record) {
|
|
@@ -10960,11 +10974,16 @@ function ItemNameInput(props) {
|
|
|
10960
10974
|
});
|
|
10961
10975
|
|
|
10962
10976
|
case 5:
|
|
10977
|
+
_context3.next = 7;
|
|
10978
|
+
return controller.importGoodsDrawer(record);
|
|
10979
|
+
|
|
10980
|
+
case 7:
|
|
10981
|
+
setValue(record.itemName);
|
|
10963
10982
|
setSelectLine(record[0]);
|
|
10964
10983
|
controller.importGoodsDrawer(record);
|
|
10965
10984
|
setOptions([]);
|
|
10966
10985
|
|
|
10967
|
-
case
|
|
10986
|
+
case 11:
|
|
10968
10987
|
case "end":
|
|
10969
10988
|
return _context3.stop();
|
|
10970
10989
|
}
|
|
@@ -10972,27 +10991,31 @@ function ItemNameInput(props) {
|
|
|
10972
10991
|
}, _callee3);
|
|
10973
10992
|
}));
|
|
10974
10993
|
|
|
10975
|
-
return function (_x3) {
|
|
10994
|
+
return function (_x3, _x4) {
|
|
10976
10995
|
return _ref3.apply(this, arguments);
|
|
10977
10996
|
};
|
|
10978
10997
|
}(), [options, controller]);
|
|
10979
|
-
|
|
10998
|
+
React.useEffect(function () {
|
|
10999
|
+
setValue(props.value);
|
|
11000
|
+
}, [props.value]);
|
|
11001
|
+
return React.createElement("div", {
|
|
10980
11002
|
className: 'kts-invoice-operate-goods-list-itemName-input'
|
|
10981
|
-
}, props.shorthand &&
|
|
11003
|
+
}, props.shorthand && React.createElement("span", {
|
|
10982
11004
|
style: {
|
|
10983
11005
|
alignSelf: 'center',
|
|
10984
11006
|
fontSize: 12
|
|
10985
11007
|
}
|
|
10986
|
-
}, "*", props.shorthand, "*"),
|
|
11008
|
+
}, "*", props.shorthand, "*"), React.createElement(AutoComplete$1, {
|
|
10987
11009
|
onSearch: onSearch,
|
|
10988
|
-
value:
|
|
11010
|
+
value: value,
|
|
10989
11011
|
options: options.map(function (e) {
|
|
10990
11012
|
return {
|
|
10991
|
-
value: e
|
|
11013
|
+
value: e.$index,
|
|
11014
|
+
label: e.itemName
|
|
10992
11015
|
};
|
|
10993
11016
|
}),
|
|
10994
11017
|
onSelect: onChangeAutoComplete
|
|
10995
|
-
},
|
|
11018
|
+
}, React.createElement(Input, {
|
|
10996
11019
|
style: {
|
|
10997
11020
|
height: '100%',
|
|
10998
11021
|
border: 'none'
|
|
@@ -11000,22 +11023,7 @@ function ItemNameInput(props) {
|
|
|
11000
11023
|
onChange: onChange,
|
|
11001
11024
|
onBlur: onBlur
|
|
11002
11025
|
})));
|
|
11003
|
-
}
|
|
11004
|
-
// const filteredObj: Record<string, any> = {};
|
|
11005
|
-
// for (const key in obj) {
|
|
11006
|
-
// if (obj[key] !== null && obj[key] !== undefined) {
|
|
11007
|
-
// filteredObj[key] = obj[key];
|
|
11008
|
-
// }
|
|
11009
|
-
// }
|
|
11010
|
-
// return filteredObj;
|
|
11011
|
-
// }
|
|
11012
|
-
|
|
11013
|
-
/** 货物单价,不含税 */
|
|
11014
|
-
// const getPriceExcludeTax = (s: IGood, record: any, calculatingDigits?: number) => {
|
|
11015
|
-
// if ((!s.taxRate && s.taxRate !== 0) || (!record.priceIncludeTax && record.priceIncludeTax !== 0)) return;
|
|
11016
|
-
// // 单价(含税)/(1+税率) = 单价(不含税)
|
|
11017
|
-
// return format15(evaluate(`${record.priceIncludeTax} / (1+${s.taxRate}/100)`), calculatingDigits);
|
|
11018
|
-
// };
|
|
11026
|
+
}
|
|
11019
11027
|
|
|
11020
11028
|
var css_248z$8 = ".kts-invoice-operate-goods-list-itemCode-input {\n display: flex;\n flex: 1;\n padding-left: 10px;\n height: 31px;\n}\n.kts-invoice-operate-goods-list-itemCode-input .ktsAntX-select {\n width: 100%;\n}\n.kts-invoice-operate-goods-list-itemCode-input .ktsAntX-select .ktsAntX-select-selector {\n height: 100%;\n}\n.has-error .kts-invoice-operate-goods-list-itemCode-input {\n border: 1px solid #f5222d;\n}\n";
|
|
11021
11029
|
styleInject(css_248z$8);
|
|
@@ -11115,9 +11123,9 @@ function ItemCodeInput(props) {
|
|
|
11115
11123
|
return _ref2.apply(this, arguments);
|
|
11116
11124
|
};
|
|
11117
11125
|
}(), [options, controller]);
|
|
11118
|
-
return
|
|
11126
|
+
return React.createElement("div", {
|
|
11119
11127
|
className: 'kts-invoice-operate-goods-list-itemCode-input'
|
|
11120
|
-
},
|
|
11128
|
+
}, React.createElement(AutoComplete$1, {
|
|
11121
11129
|
onSearch: onSearch,
|
|
11122
11130
|
value: props.value,
|
|
11123
11131
|
options: options.map(function (e) {
|
|
@@ -11126,7 +11134,7 @@ function ItemCodeInput(props) {
|
|
|
11126
11134
|
};
|
|
11127
11135
|
}),
|
|
11128
11136
|
onSelect: onChangeAutoComplete
|
|
11129
|
-
},
|
|
11137
|
+
}, React.createElement(Input, {
|
|
11130
11138
|
style: {
|
|
11131
11139
|
height: '100%',
|
|
11132
11140
|
border: 'none'
|
|
@@ -12307,7 +12315,7 @@ function Drag$1(props) {
|
|
|
12307
12315
|
var currentGood = controller.state.goodsListState.goodsList.filter(function (e) {
|
|
12308
12316
|
return e.$index === record.$index;
|
|
12309
12317
|
})[0];
|
|
12310
|
-
mounting(
|
|
12318
|
+
mounting(React.createElement(DragDiv, _objectSpread2({}, currentGood)));
|
|
12311
12319
|
rowList.forEach(function (e) {
|
|
12312
12320
|
e.addEventListener('mousemove', onMousemove);
|
|
12313
12321
|
});
|
|
@@ -12468,7 +12476,7 @@ function Drag$1(props) {
|
|
|
12468
12476
|
|
|
12469
12477
|
|
|
12470
12478
|
function insert() {
|
|
12471
|
-
mounting(
|
|
12479
|
+
mounting(React.createElement(React.Fragment, null));
|
|
12472
12480
|
controller.run( /*#__PURE__*/function () {
|
|
12473
12481
|
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(s) {
|
|
12474
12482
|
var _s$goodsListState$dra, container, current, site, goodsList, goodsMap, _currentGood, currentIndex, moveGoods;
|
|
@@ -12547,7 +12555,7 @@ function Drag$1(props) {
|
|
|
12547
12555
|
}
|
|
12548
12556
|
}, [controller, record, disabled]);
|
|
12549
12557
|
var renderButton = React.useMemo(function () {
|
|
12550
|
-
return
|
|
12558
|
+
return React.createElement(Button, {
|
|
12551
12559
|
type: 'link',
|
|
12552
12560
|
style: {
|
|
12553
12561
|
padding: 0
|
|
@@ -12558,13 +12566,13 @@ function Drag$1(props) {
|
|
|
12558
12566
|
},
|
|
12559
12567
|
className: "kts-invoice-operate-goods-list-itemName-drag",
|
|
12560
12568
|
onMouseOver: controller.saveEditGood
|
|
12561
|
-
},
|
|
12569
|
+
}, React.createElement(Icon, {
|
|
12562
12570
|
component: SvgI001
|
|
12563
12571
|
}));
|
|
12564
12572
|
}, [onMouseDown, controller]);
|
|
12565
12573
|
|
|
12566
12574
|
if (disabled) {
|
|
12567
|
-
return
|
|
12575
|
+
return React.createElement(Popover, {
|
|
12568
12576
|
content: '您还有未编辑完成的商品',
|
|
12569
12577
|
trigger: 'focus'
|
|
12570
12578
|
}, renderButton);
|
|
@@ -12604,13 +12612,13 @@ function DragDiv(props) {
|
|
|
12604
12612
|
window.removeEventListener('mousemove', onMousemove);
|
|
12605
12613
|
};
|
|
12606
12614
|
});
|
|
12607
|
-
return
|
|
12615
|
+
return React.createElement("div", {
|
|
12608
12616
|
className: "kts-invoice-operate-goods-list-itemName-drag-div",
|
|
12609
12617
|
style: {
|
|
12610
12618
|
top: y,
|
|
12611
12619
|
left: x
|
|
12612
12620
|
}
|
|
12613
|
-
},
|
|
12621
|
+
}, React.createElement("span", null, props.itemName), React.createElement("span", null, props.itemModelName), React.createElement("span", null, props.unit));
|
|
12614
12622
|
}
|
|
12615
12623
|
|
|
12616
12624
|
var useColumns = (function (form) {
|
|
@@ -12731,7 +12739,7 @@ var useColumns = (function (form) {
|
|
|
12731
12739
|
width: 40,
|
|
12732
12740
|
align: 'center',
|
|
12733
12741
|
render: function render(_, record) {
|
|
12734
|
-
return
|
|
12742
|
+
return React.createElement(Drag$1, {
|
|
12735
12743
|
record: record
|
|
12736
12744
|
});
|
|
12737
12745
|
}
|
|
@@ -12741,7 +12749,7 @@ var useColumns = (function (form) {
|
|
|
12741
12749
|
dataIndex: 'serialNo',
|
|
12742
12750
|
width: 50,
|
|
12743
12751
|
render: function render(e) {
|
|
12744
|
-
return
|
|
12752
|
+
return React.createElement("span", {
|
|
12745
12753
|
style: {
|
|
12746
12754
|
padding: '0 10px'
|
|
12747
12755
|
}
|
|
@@ -12753,13 +12761,13 @@ var useColumns = (function (form) {
|
|
|
12753
12761
|
width: 119,
|
|
12754
12762
|
render: function render(_, record) {
|
|
12755
12763
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
12756
|
-
return
|
|
12764
|
+
return React.createElement(Form.Item, null, getFieldDecorator('itemCode', {
|
|
12757
12765
|
initialValue: editGood.itemCode,
|
|
12758
12766
|
rules: [].concat(_toConsumableArray(getReplenishRules('itemCode')), [{
|
|
12759
12767
|
pattern: /^.{1,19}$/,
|
|
12760
12768
|
message: '商品编码长度不能超过19位'
|
|
12761
12769
|
}])
|
|
12762
|
-
})(
|
|
12770
|
+
})(React.createElement(ItemCodeInput, {
|
|
12763
12771
|
onChange: function () {
|
|
12764
12772
|
var _onChange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
12765
12773
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
@@ -12785,7 +12793,7 @@ var useColumns = (function (form) {
|
|
|
12785
12793
|
}()
|
|
12786
12794
|
})));
|
|
12787
12795
|
} else {
|
|
12788
|
-
return
|
|
12796
|
+
return React.createElement("span", {
|
|
12789
12797
|
style: {
|
|
12790
12798
|
padding: '0 10px'
|
|
12791
12799
|
}
|
|
@@ -12793,13 +12801,13 @@ var useColumns = (function (form) {
|
|
|
12793
12801
|
}
|
|
12794
12802
|
}
|
|
12795
12803
|
}, {
|
|
12796
|
-
title:
|
|
12804
|
+
title: React.createElement(TitleText, {
|
|
12797
12805
|
required: true
|
|
12798
12806
|
}, "\u9879\u76EE\u540D\u79F0"),
|
|
12799
12807
|
key: 'itemName',
|
|
12800
12808
|
render: function render(_, record) {
|
|
12801
12809
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
12802
|
-
return
|
|
12810
|
+
return React.createElement(Form.Item, null, React.createElement("div", {
|
|
12803
12811
|
style: {
|
|
12804
12812
|
display: 'flex'
|
|
12805
12813
|
}
|
|
@@ -12846,17 +12854,17 @@ var useColumns = (function (form) {
|
|
|
12846
12854
|
return validator;
|
|
12847
12855
|
}()
|
|
12848
12856
|
}])
|
|
12849
|
-
})(
|
|
12857
|
+
})(React.createElement(ItemNameInput, {
|
|
12850
12858
|
editGood: editGood,
|
|
12851
12859
|
shorthand: editGood.shorthand,
|
|
12852
12860
|
onChange: function onChange() {
|
|
12853
12861
|
onChangeItemName(controller, form, record);
|
|
12854
12862
|
}
|
|
12855
|
-
})),
|
|
12863
|
+
})), React.createElement("div", {
|
|
12856
12864
|
className: "kts-invoice-operate-goods-list-able-list-itemName-import"
|
|
12857
|
-
}, controller.getGoodsList && model !== 'readOnly' &&
|
|
12865
|
+
}, controller.getGoodsList && model !== 'readOnly' && React.createElement(Tooltip, {
|
|
12858
12866
|
title: "\u70B9\u51FB\u4ECE\u5546\u54C1\u7BA1\u7406\u4E2D\u6DFB\u52A0\u5546\u54C1\u4FE1\u606F"
|
|
12859
|
-
},
|
|
12867
|
+
}, React.createElement(Button, {
|
|
12860
12868
|
onClick: controller.pipeline( /*#__PURE__*/function () {
|
|
12861
12869
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(s) {
|
|
12862
12870
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
@@ -12881,7 +12889,7 @@ var useColumns = (function (form) {
|
|
|
12881
12889
|
icon: "plus-circle"
|
|
12882
12890
|
})))));
|
|
12883
12891
|
} else {
|
|
12884
|
-
return
|
|
12892
|
+
return React.createElement(MyItemNameDiv, {
|
|
12885
12893
|
valueT: formatSearch(getItemNameWithShorthand({
|
|
12886
12894
|
shorthand: record.shorthand,
|
|
12887
12895
|
full: record.itemNameSelf || ''
|
|
@@ -12895,17 +12903,17 @@ var useColumns = (function (form) {
|
|
|
12895
12903
|
}
|
|
12896
12904
|
}
|
|
12897
12905
|
}, {
|
|
12898
|
-
title:
|
|
12906
|
+
title: React.createElement(TitleText, {
|
|
12899
12907
|
rules: (_columnsReplenish$ite = columnsReplenish['itemModelName']) === null || _columnsReplenish$ite === void 0 ? void 0 : _columnsReplenish$ite.rules
|
|
12900
12908
|
}, "\u89C4\u683C\u578B\u53F7"),
|
|
12901
12909
|
key: 'itemModelName',
|
|
12902
12910
|
width: 119,
|
|
12903
12911
|
render: function render(_, record) {
|
|
12904
12912
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
12905
|
-
return
|
|
12913
|
+
return React.createElement(Form.Item, null, getFieldDecorator('itemModelName', {
|
|
12906
12914
|
initialValue: isMyShow ? editGood.itemModelNameSelf : editGood.itemModelName,
|
|
12907
12915
|
rules: getReplenishRules('itemModelName')
|
|
12908
|
-
})(
|
|
12916
|
+
})(React.createElement(MyInput, {
|
|
12909
12917
|
onChange: function () {
|
|
12910
12918
|
var _onChange2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5() {
|
|
12911
12919
|
var key, value;
|
|
@@ -12938,7 +12946,7 @@ var useColumns = (function (form) {
|
|
|
12938
12946
|
}()
|
|
12939
12947
|
})));
|
|
12940
12948
|
} else {
|
|
12941
|
-
return
|
|
12949
|
+
return React.createElement(MyItemNameDiv, {
|
|
12942
12950
|
valueT: formatSearch(record.itemModelNameSelf, searchValue),
|
|
12943
12951
|
valueF: formatSearch(record.itemModelName, searchValue),
|
|
12944
12952
|
isMyShow: isMyShow
|
|
@@ -12946,17 +12954,17 @@ var useColumns = (function (form) {
|
|
|
12946
12954
|
}
|
|
12947
12955
|
}
|
|
12948
12956
|
}, {
|
|
12949
|
-
title:
|
|
12957
|
+
title: React.createElement(TitleText, {
|
|
12950
12958
|
rules: (_columnsReplenish$uni = columnsReplenish['unit']) === null || _columnsReplenish$uni === void 0 ? void 0 : _columnsReplenish$uni.rules
|
|
12951
12959
|
}, "\u5355\u4F4D"),
|
|
12952
12960
|
key: 'unit',
|
|
12953
12961
|
width: 70,
|
|
12954
12962
|
render: function render(_, record) {
|
|
12955
12963
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
12956
|
-
return
|
|
12964
|
+
return React.createElement(Form.Item, null, getFieldDecorator('unit', {
|
|
12957
12965
|
initialValue: editGood.unit,
|
|
12958
12966
|
rules: getReplenishRules('unit')
|
|
12959
|
-
})(
|
|
12967
|
+
})(React.createElement(AutoComplete$2, {
|
|
12960
12968
|
style: {
|
|
12961
12969
|
width: '100%'
|
|
12962
12970
|
},
|
|
@@ -12994,7 +13002,7 @@ var useColumns = (function (form) {
|
|
|
12994
13002
|
}()
|
|
12995
13003
|
})));
|
|
12996
13004
|
} else {
|
|
12997
|
-
return
|
|
13005
|
+
return React.createElement("span", {
|
|
12998
13006
|
style: {
|
|
12999
13007
|
padding: '0 10px'
|
|
13000
13008
|
}
|
|
@@ -13002,7 +13010,7 @@ var useColumns = (function (form) {
|
|
|
13002
13010
|
}
|
|
13003
13011
|
}
|
|
13004
13012
|
}, {
|
|
13005
|
-
title:
|
|
13013
|
+
title: React.createElement(TitleText, {
|
|
13006
13014
|
rules: (_columnsReplenish$qua = columnsReplenish['quantity']) === null || _columnsReplenish$qua === void 0 ? void 0 : _columnsReplenish$qua.rules
|
|
13007
13015
|
}, "\u6570\u91CF"),
|
|
13008
13016
|
dataIndex: 'quantity',
|
|
@@ -13011,7 +13019,7 @@ var useColumns = (function (form) {
|
|
|
13011
13019
|
width: 149,
|
|
13012
13020
|
render: function render(value, record) {
|
|
13013
13021
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
13014
|
-
return
|
|
13022
|
+
return React.createElement(Form.Item, null, getFieldDecorator('quantity', {
|
|
13015
13023
|
initialValue: editGood.quantity,
|
|
13016
13024
|
getValueFromEvent: onNumberValueChange,
|
|
13017
13025
|
rules: [].concat(_toConsumableArray(getReplenishRules('quantity')), [{
|
|
@@ -13057,7 +13065,7 @@ var useColumns = (function (form) {
|
|
|
13057
13065
|
return validator;
|
|
13058
13066
|
}()
|
|
13059
13067
|
}])
|
|
13060
|
-
})(
|
|
13068
|
+
})(React.createElement(MyInput, {
|
|
13061
13069
|
style: {
|
|
13062
13070
|
textAlign: 'right'
|
|
13063
13071
|
},
|
|
@@ -13089,7 +13097,7 @@ var useColumns = (function (form) {
|
|
|
13089
13097
|
}()
|
|
13090
13098
|
})));
|
|
13091
13099
|
} else {
|
|
13092
|
-
return
|
|
13100
|
+
return React.createElement("span", {
|
|
13093
13101
|
style: {
|
|
13094
13102
|
padding: '0 10px'
|
|
13095
13103
|
}
|
|
@@ -13097,7 +13105,7 @@ var useColumns = (function (form) {
|
|
|
13097
13105
|
}
|
|
13098
13106
|
}
|
|
13099
13107
|
}, {
|
|
13100
|
-
title:
|
|
13108
|
+
title: React.createElement(TitleText, {
|
|
13101
13109
|
rules: (_columnsReplenish$pri = columnsReplenish['priceIncludeTax']) === null || _columnsReplenish$pri === void 0 ? void 0 : _columnsReplenish$pri.rules
|
|
13102
13110
|
}, "\u5355\u4EF7(\u542B\u7A0E)"),
|
|
13103
13111
|
dataIndex: 'priceIncludeTax',
|
|
@@ -13106,7 +13114,7 @@ var useColumns = (function (form) {
|
|
|
13106
13114
|
width: 149,
|
|
13107
13115
|
render: function render(value, record) {
|
|
13108
13116
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
13109
|
-
return
|
|
13117
|
+
return React.createElement(Form.Item, null, getFieldDecorator('priceIncludeTax', {
|
|
13110
13118
|
initialValue: editGood.priceIncludeTax,
|
|
13111
13119
|
getValueFromEvent: onNumberValueChange,
|
|
13112
13120
|
rules: [].concat(_toConsumableArray(getReplenishRules('priceIncludeTax')), [{
|
|
@@ -13152,7 +13160,7 @@ var useColumns = (function (form) {
|
|
|
13152
13160
|
return validator;
|
|
13153
13161
|
}()
|
|
13154
13162
|
}])
|
|
13155
|
-
})(
|
|
13163
|
+
})(React.createElement(MyInput, {
|
|
13156
13164
|
style: {
|
|
13157
13165
|
textAlign: 'right'
|
|
13158
13166
|
},
|
|
@@ -13164,7 +13172,7 @@ var useColumns = (function (form) {
|
|
|
13164
13172
|
}
|
|
13165
13173
|
})));
|
|
13166
13174
|
} else {
|
|
13167
|
-
return
|
|
13175
|
+
return React.createElement("span", {
|
|
13168
13176
|
style: {
|
|
13169
13177
|
padding: '0 10px'
|
|
13170
13178
|
}
|
|
@@ -13172,7 +13180,7 @@ var useColumns = (function (form) {
|
|
|
13172
13180
|
}
|
|
13173
13181
|
}
|
|
13174
13182
|
}, {
|
|
13175
|
-
title:
|
|
13183
|
+
title: React.createElement(TitleText, {
|
|
13176
13184
|
rules: (_columnsReplenish$pri2 = columnsReplenish['priceExcludeTax']) === null || _columnsReplenish$pri2 === void 0 ? void 0 : _columnsReplenish$pri2.rules
|
|
13177
13185
|
}, "\u5355\u4EF7(\u4E0D\u542B\u7A0E)"),
|
|
13178
13186
|
dataIndex: 'priceExcludeTax',
|
|
@@ -13181,7 +13189,7 @@ var useColumns = (function (form) {
|
|
|
13181
13189
|
width: 149,
|
|
13182
13190
|
render: function render(value, record) {
|
|
13183
13191
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
13184
|
-
return
|
|
13192
|
+
return React.createElement(Form.Item, null, getFieldDecorator('priceExcludeTax', {
|
|
13185
13193
|
initialValue: editGood.priceExcludeTax,
|
|
13186
13194
|
getValueFromEvent: onNumberValueChange,
|
|
13187
13195
|
rules: [].concat(_toConsumableArray(getReplenishRules('priceExcludeTax')), [{
|
|
@@ -13227,7 +13235,7 @@ var useColumns = (function (form) {
|
|
|
13227
13235
|
return validator;
|
|
13228
13236
|
}()
|
|
13229
13237
|
}])
|
|
13230
|
-
})(
|
|
13238
|
+
})(React.createElement(MyInput, {
|
|
13231
13239
|
style: {
|
|
13232
13240
|
textAlign: 'right'
|
|
13233
13241
|
},
|
|
@@ -13239,7 +13247,7 @@ var useColumns = (function (form) {
|
|
|
13239
13247
|
}
|
|
13240
13248
|
})));
|
|
13241
13249
|
} else {
|
|
13242
|
-
return
|
|
13250
|
+
return React.createElement("span", {
|
|
13243
13251
|
style: {
|
|
13244
13252
|
padding: '0 10px'
|
|
13245
13253
|
}
|
|
@@ -13247,7 +13255,7 @@ var useColumns = (function (form) {
|
|
|
13247
13255
|
}
|
|
13248
13256
|
}
|
|
13249
13257
|
}, {
|
|
13250
|
-
title:
|
|
13258
|
+
title: React.createElement(TitleText, {
|
|
13251
13259
|
required: true
|
|
13252
13260
|
}, "\u91D1\u989D(\u542B\u7A0E)"),
|
|
13253
13261
|
dataIndex: 'lineAmountIncludeTax',
|
|
@@ -13256,7 +13264,7 @@ var useColumns = (function (form) {
|
|
|
13256
13264
|
align: 'right',
|
|
13257
13265
|
render: function render(value, record) {
|
|
13258
13266
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
13259
|
-
return
|
|
13267
|
+
return React.createElement(Form.Item, null, getFieldDecorator('lineAmountIncludeTax', {
|
|
13260
13268
|
initialValue: editGood.lineAmountIncludeTax,
|
|
13261
13269
|
getValueFromEvent: onNumberValueChange,
|
|
13262
13270
|
rules: [].concat(_toConsumableArray(getReplenishRules('lineAmountIncludeTax')), [{
|
|
@@ -13316,7 +13324,7 @@ var useColumns = (function (form) {
|
|
|
13316
13324
|
return validator;
|
|
13317
13325
|
}()
|
|
13318
13326
|
}])
|
|
13319
|
-
})(
|
|
13327
|
+
})(React.createElement(MyInput, {
|
|
13320
13328
|
style: {
|
|
13321
13329
|
textAlign: 'right'
|
|
13322
13330
|
},
|
|
@@ -13327,7 +13335,7 @@ var useColumns = (function (form) {
|
|
|
13327
13335
|
}
|
|
13328
13336
|
})));
|
|
13329
13337
|
} else {
|
|
13330
|
-
return
|
|
13338
|
+
return React.createElement("span", {
|
|
13331
13339
|
style: {
|
|
13332
13340
|
padding: '0 10px'
|
|
13333
13341
|
}
|
|
@@ -13335,7 +13343,7 @@ var useColumns = (function (form) {
|
|
|
13335
13343
|
}
|
|
13336
13344
|
}
|
|
13337
13345
|
}, {
|
|
13338
|
-
title:
|
|
13346
|
+
title: React.createElement(TitleText, {
|
|
13339
13347
|
required: true
|
|
13340
13348
|
}, "\u91D1\u989D(\u4E0D\u542B\u7A0E)"),
|
|
13341
13349
|
dataIndex: 'lineAmountExcludeTax',
|
|
@@ -13344,7 +13352,7 @@ var useColumns = (function (form) {
|
|
|
13344
13352
|
width: 119,
|
|
13345
13353
|
render: function render(value, record) {
|
|
13346
13354
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
13347
|
-
return
|
|
13355
|
+
return React.createElement(Form.Item, null, getFieldDecorator('lineAmountExcludeTax', {
|
|
13348
13356
|
initialValue: editGood.lineAmountExcludeTax,
|
|
13349
13357
|
getValueFromEvent: onNumberValueChange,
|
|
13350
13358
|
rules: [].concat(_toConsumableArray(getReplenishRules('lineAmountExcludeTax')), [{
|
|
@@ -13379,7 +13387,7 @@ var useColumns = (function (form) {
|
|
|
13379
13387
|
return validator;
|
|
13380
13388
|
}()
|
|
13381
13389
|
}])
|
|
13382
|
-
})(
|
|
13390
|
+
})(React.createElement(MyInput, {
|
|
13383
13391
|
style: {
|
|
13384
13392
|
textAlign: 'right'
|
|
13385
13393
|
},
|
|
@@ -13390,7 +13398,7 @@ var useColumns = (function (form) {
|
|
|
13390
13398
|
}
|
|
13391
13399
|
})));
|
|
13392
13400
|
} else {
|
|
13393
|
-
return
|
|
13401
|
+
return React.createElement("span", {
|
|
13394
13402
|
style: {
|
|
13395
13403
|
padding: '0 10px'
|
|
13396
13404
|
}
|
|
@@ -13398,7 +13406,7 @@ var useColumns = (function (form) {
|
|
|
13398
13406
|
}
|
|
13399
13407
|
}
|
|
13400
13408
|
}, {
|
|
13401
|
-
title:
|
|
13409
|
+
title: React.createElement(TitleText, {
|
|
13402
13410
|
required: true
|
|
13403
13411
|
}, "\u7A0E\u7387%"),
|
|
13404
13412
|
dataIndex: 'taxRate',
|
|
@@ -13407,7 +13415,7 @@ var useColumns = (function (form) {
|
|
|
13407
13415
|
width: 75,
|
|
13408
13416
|
render: function render(value, record) {
|
|
13409
13417
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
13410
|
-
return
|
|
13418
|
+
return React.createElement(Form.Item, null, getFieldDecorator('taxRate', {
|
|
13411
13419
|
initialValue: editGood.taxRate,
|
|
13412
13420
|
rules: [].concat(_toConsumableArray(getReplenishRules('taxRate')), [{
|
|
13413
13421
|
required: true,
|
|
@@ -13416,7 +13424,7 @@ var useColumns = (function (form) {
|
|
|
13416
13424
|
pattern: /^[+-]?(0|([1-9]\d*))(\.\d+)?$/,
|
|
13417
13425
|
message: '请选择正确税率'
|
|
13418
13426
|
}])
|
|
13419
|
-
})(
|
|
13427
|
+
})(React.createElement(Select, {
|
|
13420
13428
|
className: "kts-invoice-operate-goods-list-table-tax-rate",
|
|
13421
13429
|
dropdownMenuStyle: {
|
|
13422
13430
|
textAlign: "right"
|
|
@@ -13430,13 +13438,13 @@ var useColumns = (function (form) {
|
|
|
13430
13438
|
onChangeTaxRate(controller, form, record);
|
|
13431
13439
|
}
|
|
13432
13440
|
}, taxRateList.map(function (e, i) {
|
|
13433
|
-
return
|
|
13441
|
+
return React.createElement(Select.Option, {
|
|
13434
13442
|
key: i,
|
|
13435
13443
|
value: e
|
|
13436
13444
|
}, e, "%");
|
|
13437
13445
|
}))));
|
|
13438
13446
|
} else {
|
|
13439
|
-
return
|
|
13447
|
+
return React.createElement("span", {
|
|
13440
13448
|
style: {
|
|
13441
13449
|
padding: '0 10px'
|
|
13442
13450
|
}
|
|
@@ -13444,7 +13452,7 @@ var useColumns = (function (form) {
|
|
|
13444
13452
|
}
|
|
13445
13453
|
}
|
|
13446
13454
|
}, {
|
|
13447
|
-
title:
|
|
13455
|
+
title: React.createElement(TitleText, {
|
|
13448
13456
|
rules: (_columnsReplenish$tax = columnsReplenish['taxAmount']) === null || _columnsReplenish$tax === void 0 ? void 0 : _columnsReplenish$tax.rules
|
|
13449
13457
|
}, "\u7A0E\u989D"),
|
|
13450
13458
|
dataIndex: 'taxAmount',
|
|
@@ -13456,11 +13464,11 @@ var useColumns = (function (form) {
|
|
|
13456
13464
|
return getFieldDecorator('taxAmount', {
|
|
13457
13465
|
initialValue: editGood.taxAmount,
|
|
13458
13466
|
rules: getReplenishRules('taxAmount')
|
|
13459
|
-
})(
|
|
13467
|
+
})(React.createElement(MyDiv, {
|
|
13460
13468
|
loading: isCipher(changeField, 'taxAmount')
|
|
13461
13469
|
}));
|
|
13462
13470
|
} else {
|
|
13463
|
-
return
|
|
13471
|
+
return React.createElement("span", {
|
|
13464
13472
|
style: {
|
|
13465
13473
|
padding: '0 10px'
|
|
13466
13474
|
}
|
|
@@ -13475,42 +13483,42 @@ var useColumns = (function (form) {
|
|
|
13475
13483
|
render: function render(e) {
|
|
13476
13484
|
switch (e) {
|
|
13477
13485
|
case LineAttributeType$1.折扣行:
|
|
13478
|
-
return
|
|
13486
|
+
return React.createElement("span", {
|
|
13479
13487
|
style: {
|
|
13480
13488
|
padding: '0 10px'
|
|
13481
13489
|
}
|
|
13482
13490
|
}, "\u6298\u6263\u884C");
|
|
13483
13491
|
|
|
13484
13492
|
case LineAttributeType$1.被折扣行:
|
|
13485
|
-
return
|
|
13493
|
+
return React.createElement("span", {
|
|
13486
13494
|
style: {
|
|
13487
13495
|
padding: '0 10px'
|
|
13488
13496
|
}
|
|
13489
13497
|
}, "\u88AB\u6298\u6263\u884C");
|
|
13490
13498
|
|
|
13491
13499
|
case LineAttributeType$1.赠品行:
|
|
13492
|
-
return
|
|
13500
|
+
return React.createElement("span", {
|
|
13493
13501
|
style: {
|
|
13494
13502
|
padding: '0 10px'
|
|
13495
13503
|
}
|
|
13496
13504
|
}, "\u8D60\u54C1\u884C");
|
|
13497
13505
|
|
|
13498
13506
|
case LineAttributeType$1.折让行:
|
|
13499
|
-
return
|
|
13507
|
+
return React.createElement("span", {
|
|
13500
13508
|
style: {
|
|
13501
13509
|
padding: '0 10px'
|
|
13502
13510
|
}
|
|
13503
13511
|
}, "\u6298\u8BA9\u884C");
|
|
13504
13512
|
|
|
13505
13513
|
case LineAttributeType$1.正常:
|
|
13506
|
-
return
|
|
13514
|
+
return React.createElement("span", {
|
|
13507
13515
|
style: {
|
|
13508
13516
|
padding: '0 10px'
|
|
13509
13517
|
}
|
|
13510
13518
|
}, "\u6B63\u5E38\u884C");
|
|
13511
13519
|
|
|
13512
13520
|
default:
|
|
13513
|
-
return
|
|
13521
|
+
return React.createElement("span", {
|
|
13514
13522
|
style: {
|
|
13515
13523
|
padding: '0 10px'
|
|
13516
13524
|
}
|
|
@@ -13524,7 +13532,7 @@ var useColumns = (function (form) {
|
|
|
13524
13532
|
width: 130,
|
|
13525
13533
|
fixed: 'right',
|
|
13526
13534
|
render: function render(_value, record) {
|
|
13527
|
-
return
|
|
13535
|
+
return React.createElement(RowMenu, {
|
|
13528
13536
|
key: record.lineAttribute,
|
|
13529
13537
|
goods: record
|
|
13530
13538
|
});
|
|
@@ -13579,13 +13587,13 @@ var MyInput = /*#__PURE__*/function (_React$Component) {
|
|
|
13579
13587
|
key: "render",
|
|
13580
13588
|
value: function render() {
|
|
13581
13589
|
if (this.props.loading) {
|
|
13582
|
-
return
|
|
13590
|
+
return React.createElement(Spin, {
|
|
13583
13591
|
size: "small"
|
|
13584
|
-
},
|
|
13592
|
+
}, React.createElement(Input, _objectSpread2(_objectSpread2({}, this.props), {}, {
|
|
13585
13593
|
autoComplete: "off"
|
|
13586
13594
|
})));
|
|
13587
13595
|
} else {
|
|
13588
|
-
return
|
|
13596
|
+
return React.createElement(Input, _objectSpread2(_objectSpread2({}, this.props), {}, {
|
|
13589
13597
|
autoComplete: "off"
|
|
13590
13598
|
}));
|
|
13591
13599
|
}
|
|
@@ -13610,15 +13618,15 @@ var MyDiv = /*#__PURE__*/function (_React$Component2) {
|
|
|
13610
13618
|
key: "render",
|
|
13611
13619
|
value: function render() {
|
|
13612
13620
|
if (this.props.loading) {
|
|
13613
|
-
return
|
|
13621
|
+
return React.createElement(Spin, {
|
|
13614
13622
|
size: "small"
|
|
13615
|
-
},
|
|
13623
|
+
}, React.createElement("span", {
|
|
13616
13624
|
style: {
|
|
13617
13625
|
padding: '0 10px'
|
|
13618
13626
|
}
|
|
13619
13627
|
}, this.props.value));
|
|
13620
13628
|
} else {
|
|
13621
|
-
return
|
|
13629
|
+
return React.createElement("span", {
|
|
13622
13630
|
style: {
|
|
13623
13631
|
padding: '0 10px'
|
|
13624
13632
|
}
|
|
@@ -13651,18 +13659,18 @@ var MyItemNameDiv = /*#__PURE__*/function (_React$Component3) {
|
|
|
13651
13659
|
|
|
13652
13660
|
if (isMyShow) {
|
|
13653
13661
|
if (valueT) {
|
|
13654
|
-
return
|
|
13662
|
+
return React.createElement(Tooltip, {
|
|
13655
13663
|
title: valueT
|
|
13656
|
-
},
|
|
13664
|
+
}, React.createElement("span", {
|
|
13657
13665
|
style: {
|
|
13658
13666
|
padding: '0 10px',
|
|
13659
13667
|
color: '#0074ff'
|
|
13660
13668
|
}
|
|
13661
13669
|
}, valueT));
|
|
13662
13670
|
} else {
|
|
13663
|
-
return
|
|
13671
|
+
return React.createElement(Tooltip, {
|
|
13664
13672
|
title: valueF
|
|
13665
|
-
},
|
|
13673
|
+
}, React.createElement("span", {
|
|
13666
13674
|
style: {
|
|
13667
13675
|
padding: '0 10px'
|
|
13668
13676
|
}
|
|
@@ -13670,17 +13678,17 @@ var MyItemNameDiv = /*#__PURE__*/function (_React$Component3) {
|
|
|
13670
13678
|
}
|
|
13671
13679
|
} else {
|
|
13672
13680
|
if (valueF) {
|
|
13673
|
-
return
|
|
13681
|
+
return React.createElement(Tooltip, {
|
|
13674
13682
|
title: valueF
|
|
13675
|
-
},
|
|
13683
|
+
}, React.createElement("span", {
|
|
13676
13684
|
style: {
|
|
13677
13685
|
padding: '0 10px'
|
|
13678
13686
|
}
|
|
13679
13687
|
}, valueF));
|
|
13680
13688
|
} else {
|
|
13681
|
-
return
|
|
13689
|
+
return React.createElement(Tooltip, {
|
|
13682
13690
|
title: valueT
|
|
13683
|
-
},
|
|
13691
|
+
}, React.createElement("span", {
|
|
13684
13692
|
style: {
|
|
13685
13693
|
padding: '0 10px',
|
|
13686
13694
|
color: '#0074ff'
|
|
@@ -13703,7 +13711,7 @@ function formatSearch(value, search) {
|
|
|
13703
13711
|
return dcoding(e);
|
|
13704
13712
|
}).join("<span class=\"kts-invoice-operate-goods-list-table-search-protrude\" >".concat(search, "</span>"));
|
|
13705
13713
|
|
|
13706
|
-
return
|
|
13714
|
+
return React.createElement("span", {
|
|
13707
13715
|
dangerouslySetInnerHTML: {
|
|
13708
13716
|
__html: __html
|
|
13709
13717
|
}
|
|
@@ -14128,7 +14136,7 @@ var useRowSelection = (function () {
|
|
|
14128
14136
|
};
|
|
14129
14137
|
}(), [controller]);
|
|
14130
14138
|
var columnTitle = React.useMemo(function () {
|
|
14131
|
-
return
|
|
14139
|
+
return React.createElement(Checkbox, {
|
|
14132
14140
|
onChange: onClickSelectAll,
|
|
14133
14141
|
indeterminate: indeterminate,
|
|
14134
14142
|
checked: isAll
|
|
@@ -14329,16 +14337,16 @@ var useEndowCodeButton = (function () {
|
|
|
14329
14337
|
}, _callee2);
|
|
14330
14338
|
})), [controller]);
|
|
14331
14339
|
var menuItem = React.useMemo(function () {
|
|
14332
|
-
if (model === 'readOnly') return
|
|
14333
|
-
return
|
|
14340
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
14341
|
+
return React.createElement(Menu.Item, {
|
|
14334
14342
|
key: "2",
|
|
14335
14343
|
onClick: onClick,
|
|
14336
14344
|
disabled: disabled
|
|
14337
14345
|
}, "\u6279\u91CF\u8D4B\u7801");
|
|
14338
14346
|
}, [onClick, disabled, model]);
|
|
14339
14347
|
var button = React.useMemo(function () {
|
|
14340
|
-
if (model === 'readOnly') return
|
|
14341
|
-
return
|
|
14348
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
14349
|
+
return React.createElement(Button, {
|
|
14342
14350
|
onClick: onClick,
|
|
14343
14351
|
disabled: disabled
|
|
14344
14352
|
}, "\u6279\u91CF\u8D4B\u7801");
|
|
@@ -14404,19 +14412,19 @@ var useDelRowButton = (function () {
|
|
|
14404
14412
|
}())();
|
|
14405
14413
|
}, [controller]);
|
|
14406
14414
|
var menuItem = React.useMemo(function () {
|
|
14407
|
-
if (model === 'prefab') return
|
|
14408
|
-
if (model === 'readOnly') return
|
|
14409
|
-
return
|
|
14415
|
+
if (model === 'prefab') return React.createElement(React.Fragment, null);
|
|
14416
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
14417
|
+
return React.createElement(Menu.Item, {
|
|
14410
14418
|
key: "1",
|
|
14411
14419
|
onClick: onClick,
|
|
14412
14420
|
disabled: disabled
|
|
14413
14421
|
}, " \u5220\u9664\u884C ");
|
|
14414
14422
|
}, [model, onClick, disabled]);
|
|
14415
14423
|
var button = React.useMemo(function () {
|
|
14416
|
-
if (isRemRow === false) return
|
|
14417
|
-
if (model === 'prefab') return
|
|
14418
|
-
if (model === 'readOnly') return
|
|
14419
|
-
return
|
|
14424
|
+
if (isRemRow === false) return React.createElement(React.Fragment, null);
|
|
14425
|
+
if (model === 'prefab') return React.createElement(React.Fragment, null);
|
|
14426
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
14427
|
+
return React.createElement(Button, {
|
|
14420
14428
|
onClick: onClick,
|
|
14421
14429
|
disabled: disabled
|
|
14422
14430
|
}, "\u6279\u91CF\u5220\u9664");
|
|
@@ -14611,14 +14619,14 @@ var useAddDiscountRowButton = (function () {
|
|
|
14611
14619
|
}, _callee3);
|
|
14612
14620
|
})), [controller]);
|
|
14613
14621
|
var menuItem = React.useMemo(function () {
|
|
14614
|
-
return model === 'prefab' ?
|
|
14622
|
+
return model === 'prefab' ? React.createElement(React.Fragment, null) : isAddDiscount !== false ? React.createElement(Menu.Item, {
|
|
14615
14623
|
key: "0",
|
|
14616
14624
|
onClick: onClick,
|
|
14617
14625
|
disabled: disabled
|
|
14618
14626
|
}, "\u6DFB\u52A0\u6298\u6263\u884C") : undefined;
|
|
14619
14627
|
}, [isAddDiscount, disabled, onClick]);
|
|
14620
14628
|
var drawer = React.useMemo(function () {
|
|
14621
|
-
return
|
|
14629
|
+
return React.createElement(Drawer, {
|
|
14622
14630
|
className: "kts-invoice-operate-goods-list-add-discount-row",
|
|
14623
14631
|
width: 540,
|
|
14624
14632
|
title: "\u6DFB\u52A0\u6298\u6263\u884C",
|
|
@@ -14626,7 +14634,7 @@ var useAddDiscountRowButton = (function () {
|
|
|
14626
14634
|
destroyOnClose: true,
|
|
14627
14635
|
onClose: onClose,
|
|
14628
14636
|
visible: visible
|
|
14629
|
-
},
|
|
14637
|
+
}, React.createElement(DrawerBody, null));
|
|
14630
14638
|
}, [visible, onClose]);
|
|
14631
14639
|
return {
|
|
14632
14640
|
menuItem: menuItem,
|
|
@@ -14743,13 +14751,13 @@ var DrawerBody = decorator(Form.create())(function (props) {
|
|
|
14743
14751
|
});
|
|
14744
14752
|
});
|
|
14745
14753
|
}, 300), [form, lineAmountSum]);
|
|
14746
|
-
return
|
|
14754
|
+
return React.createElement(React.Fragment, null, React.createElement("div", {
|
|
14747
14755
|
className: "add-discount-row-body"
|
|
14748
|
-
},
|
|
14756
|
+
}, React.createElement("p", null, "\u5F53\u524D\u9009\u62E9", React.createElement(Text$3, {
|
|
14749
14757
|
type: "danger"
|
|
14750
|
-
}, discountGoodIndex.length), "\u884C\u88AB\u6298\u6263\u5546\u54C1\u884C\uFF0C\u91D1\u989D\u5408\u8BA1\xA5",
|
|
14758
|
+
}, discountGoodIndex.length), "\u884C\u88AB\u6298\u6263\u5546\u54C1\u884C\uFF0C\u91D1\u989D\u5408\u8BA1\xA5", React.createElement(Text$3, {
|
|
14751
14759
|
type: "danger"
|
|
14752
|
-
}, lineAmountSum.toFixed(2))),
|
|
14760
|
+
}, lineAmountSum.toFixed(2))), React.createElement(Form.Item, {
|
|
14753
14761
|
label: "\u6298\u6263\u7387\uFF1A"
|
|
14754
14762
|
}, getFieldDecorator('discount', {
|
|
14755
14763
|
rules: [{
|
|
@@ -14779,11 +14787,11 @@ var DrawerBody = decorator(Form.create())(function (props) {
|
|
|
14779
14787
|
callback();
|
|
14780
14788
|
}
|
|
14781
14789
|
}]
|
|
14782
|
-
})(
|
|
14790
|
+
})(React.createElement(Input, {
|
|
14783
14791
|
placeholder: "\u8BF7\u8F93\u5165\u5927\u4E8E0\u5C0F\u4E8E100\u7684\u6570\u5B57",
|
|
14784
14792
|
suffix: "%",
|
|
14785
14793
|
onChange: onChangeDiscount
|
|
14786
|
-
}))),
|
|
14794
|
+
}))), React.createElement(Form.Item, {
|
|
14787
14795
|
label: "\u6298\u6263\u91D1\u989D\uFF1A"
|
|
14788
14796
|
}, getFieldDecorator('discolineAmountunt', {
|
|
14789
14797
|
rules: [{
|
|
@@ -14813,19 +14821,19 @@ var DrawerBody = decorator(Form.create())(function (props) {
|
|
|
14813
14821
|
callback();
|
|
14814
14822
|
}
|
|
14815
14823
|
}]
|
|
14816
|
-
})(
|
|
14824
|
+
})(React.createElement(Input, {
|
|
14817
14825
|
placeholder: "\u8BF7\u8F93\u5165\u5927\u4E8E0\u5C0F\u4E8E\u91D1\u989D\u5408\u8BA1\u7684\u6570\u5B57",
|
|
14818
14826
|
suffix: "\xA5",
|
|
14819
14827
|
onChange: onChangeDiscolineAmountunt
|
|
14820
|
-
})))),
|
|
14828
|
+
})))), React.createElement("div", {
|
|
14821
14829
|
className: "add-discount-row-footer"
|
|
14822
|
-
},
|
|
14830
|
+
}, React.createElement(Button, {
|
|
14823
14831
|
block: true,
|
|
14824
14832
|
style: {
|
|
14825
14833
|
marginBottom: 12
|
|
14826
14834
|
},
|
|
14827
14835
|
onClick: onClose
|
|
14828
|
-
}, "\u53D6\u6D88"),
|
|
14836
|
+
}, "\u53D6\u6D88"), React.createElement(Button, {
|
|
14829
14837
|
type: "primary",
|
|
14830
14838
|
block: true,
|
|
14831
14839
|
onClick: onClickSave
|
|
@@ -14922,13 +14930,13 @@ function useMergeDetails() {
|
|
|
14922
14930
|
}];
|
|
14923
14931
|
}, [selectedGoodIndex, onClickManual, onClickAuto]);
|
|
14924
14932
|
var button = React.useMemo(function () {
|
|
14925
|
-
if (!isMergeDetails) return
|
|
14926
|
-
return
|
|
14933
|
+
if (!isMergeDetails) return React.createElement(React.Fragment, null);
|
|
14934
|
+
return React.createElement(Dropdown$1, {
|
|
14927
14935
|
menu: {
|
|
14928
14936
|
items: items
|
|
14929
14937
|
},
|
|
14930
14938
|
trigger: ['click']
|
|
14931
|
-
},
|
|
14939
|
+
}, React.createElement(Button, null, "\u5408\u5E76\u660E\u7EC6"));
|
|
14932
14940
|
}, [selectedGoodIndex.length, isMergeDetails]);
|
|
14933
14941
|
return {
|
|
14934
14942
|
/** 按钮 */
|
|
@@ -15014,8 +15022,8 @@ function useMergeDiscount() {
|
|
|
15014
15022
|
}, _callee);
|
|
15015
15023
|
})), [controller]);
|
|
15016
15024
|
var button = React.useMemo(function () {
|
|
15017
|
-
if (!isMergeDiscount) return
|
|
15018
|
-
return
|
|
15025
|
+
if (!isMergeDiscount) return React.createElement(React.Fragment, null);
|
|
15026
|
+
return React.createElement(Button, {
|
|
15019
15027
|
onClick: onClick,
|
|
15020
15028
|
disabled: goodsList.length <= 1
|
|
15021
15029
|
}, "\u5408\u5E76\u6298\u6263");
|
|
@@ -15193,8 +15201,8 @@ function useSalesDiscount() {
|
|
|
15193
15201
|
}).length <= 0;
|
|
15194
15202
|
}, [goodsList]);
|
|
15195
15203
|
var button = React.useMemo(function () {
|
|
15196
|
-
if (!isSalesDiscount) return
|
|
15197
|
-
return
|
|
15204
|
+
if (!isSalesDiscount) return React.createElement(React.Fragment, null);
|
|
15205
|
+
return React.createElement(Button, {
|
|
15198
15206
|
onClick: onClick,
|
|
15199
15207
|
disabled: disabled
|
|
15200
15208
|
}, "\u9500\u552E\u6298\u8BA9");
|
|
@@ -15365,12 +15373,12 @@ function useSalesGifts() {
|
|
|
15365
15373
|
}, [selectedGoodIndex, onClickManual, onClickAuto]);
|
|
15366
15374
|
var button = React.useMemo(function () {
|
|
15367
15375
|
if (!isSalesGifts) return;
|
|
15368
|
-
return
|
|
15376
|
+
return React.createElement(Dropdown$1, {
|
|
15369
15377
|
menu: {
|
|
15370
15378
|
items: items
|
|
15371
15379
|
},
|
|
15372
15380
|
trigger: ['click']
|
|
15373
|
-
},
|
|
15381
|
+
}, React.createElement(Button, null, "\u9500\u552E\u8D60\u54C1"));
|
|
15374
15382
|
}, [items, isSalesGifts]);
|
|
15375
15383
|
return {
|
|
15376
15384
|
/** 按钮 */
|
|
@@ -15408,7 +15416,7 @@ var GoodsList = /*#__PURE__*/function (_React$Component) {
|
|
|
15408
15416
|
_createClass(GoodsList, [{
|
|
15409
15417
|
key: "render",
|
|
15410
15418
|
value: function render() {
|
|
15411
|
-
return
|
|
15419
|
+
return React.createElement(Main, _objectSpread2({}, this.props));
|
|
15412
15420
|
}
|
|
15413
15421
|
}]);
|
|
15414
15422
|
|
|
@@ -15610,22 +15618,22 @@ var Main = decorator(Form.create())(function (props) {
|
|
|
15610
15618
|
};
|
|
15611
15619
|
}())();
|
|
15612
15620
|
}, [controller, props.isSwitchTax]);
|
|
15613
|
-
return
|
|
15621
|
+
return React.createElement("div", {
|
|
15614
15622
|
className: "kts-invoice-operate-goods-list",
|
|
15615
15623
|
onClick: function onClick(e) {
|
|
15616
15624
|
e.stopPropagation();
|
|
15617
15625
|
}
|
|
15618
|
-
},
|
|
15626
|
+
}, React.createElement("div", {
|
|
15619
15627
|
className: "kts-invoice-operate-goods-list-able"
|
|
15620
|
-
},
|
|
15628
|
+
}, React.createElement("div", {
|
|
15621
15629
|
className: "kts-invoice-operate-goods-list-able-list"
|
|
15622
|
-
},
|
|
15630
|
+
}, 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", {
|
|
15623
15631
|
className: "kts-invoice-operate-goods-list-able-extend"
|
|
15624
|
-
}, props.menuExpansion,
|
|
15632
|
+
}, props.menuExpansion, React.createElement(DescribeSwitch, null), React.createElement(TaxIncludedSwitch, null))), React.createElement("div", {
|
|
15625
15633
|
className: classNames('kts-invoice-operate-goods-list-table', {
|
|
15626
15634
|
'kts-invoice-operate-prefab': isprefab
|
|
15627
15635
|
})
|
|
15628
|
-
},
|
|
15636
|
+
}, React.createElement(TableVirtual, {
|
|
15629
15637
|
bordered: true,
|
|
15630
15638
|
size: "small",
|
|
15631
15639
|
rowKey: "$index",
|
|
@@ -15648,7 +15656,7 @@ var Main = decorator(Form.create())(function (props) {
|
|
|
15648
15656
|
}
|
|
15649
15657
|
};
|
|
15650
15658
|
}
|
|
15651
|
-
})),
|
|
15659
|
+
})), React.createElement("div", null, React.createElement(Statistics, null)));
|
|
15652
15660
|
});
|
|
15653
15661
|
|
|
15654
15662
|
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";
|
|
@@ -15673,7 +15681,7 @@ var Buyer = /*#__PURE__*/function (_React$Component) {
|
|
|
15673
15681
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
15674
15682
|
|
|
15675
15683
|
_this.render = function () {
|
|
15676
|
-
return
|
|
15684
|
+
return React.createElement(Main$1, _objectSpread2({}, _this.props));
|
|
15677
15685
|
};
|
|
15678
15686
|
|
|
15679
15687
|
return _this;
|
|
@@ -15704,7 +15712,7 @@ var Main$1 = decorator(Form.create())(function (props) {
|
|
|
15704
15712
|
return [{
|
|
15705
15713
|
id: 'sellerName',
|
|
15706
15714
|
label: '销售方名称',
|
|
15707
|
-
node:
|
|
15715
|
+
node: React.createElement(Input, {
|
|
15708
15716
|
readOnly: model === 'prefab',
|
|
15709
15717
|
size: "small"
|
|
15710
15718
|
}),
|
|
@@ -15717,7 +15725,7 @@ var Main$1 = decorator(Form.create())(function (props) {
|
|
|
15717
15725
|
}, {
|
|
15718
15726
|
id: 'sellerNo',
|
|
15719
15727
|
label: '销售方纳税人识别号',
|
|
15720
|
-
node:
|
|
15728
|
+
node: React.createElement(Input, {
|
|
15721
15729
|
readOnly: model === 'prefab',
|
|
15722
15730
|
size: "small"
|
|
15723
15731
|
}),
|
|
@@ -15730,7 +15738,7 @@ var Main$1 = decorator(Form.create())(function (props) {
|
|
|
15730
15738
|
}, {
|
|
15731
15739
|
id: 'sellerAddress',
|
|
15732
15740
|
label: '销售方地址及电话',
|
|
15733
|
-
node:
|
|
15741
|
+
node: React.createElement(Input, {
|
|
15734
15742
|
readOnly: model === 'prefab',
|
|
15735
15743
|
size: "small"
|
|
15736
15744
|
}),
|
|
@@ -15743,7 +15751,7 @@ var Main$1 = decorator(Form.create())(function (props) {
|
|
|
15743
15751
|
}, {
|
|
15744
15752
|
id: 'sellerBank',
|
|
15745
15753
|
label: '销售方开户行及账号',
|
|
15746
|
-
node:
|
|
15754
|
+
node: React.createElement(Input, {
|
|
15747
15755
|
readOnly: model === 'prefab',
|
|
15748
15756
|
size: "small"
|
|
15749
15757
|
}),
|
|
@@ -15769,31 +15777,31 @@ var Main$1 = decorator(Form.create())(function (props) {
|
|
|
15769
15777
|
return getFieldDecorator(e.id, e.options)(e.node);
|
|
15770
15778
|
}
|
|
15771
15779
|
}, [props.formRender]);
|
|
15772
|
-
return
|
|
15780
|
+
return React.createElement(Form, null, React.createElement("div", {
|
|
15773
15781
|
className: "kts-invoice-operate-seller"
|
|
15774
|
-
},
|
|
15782
|
+
}, React.createElement("div", {
|
|
15775
15783
|
className: "kts-invoice-operate-seller-message"
|
|
15776
|
-
},
|
|
15784
|
+
}, React.createElement("div", {
|
|
15777
15785
|
className: "kts-invoice-operate-seller-title"
|
|
15778
|
-
},
|
|
15786
|
+
}, React.createElement("label", null, "\u9500\u552E\u65B9")), React.createElement(Descriptions, {
|
|
15779
15787
|
className: "kts-invoice-operate-seller-message-list",
|
|
15780
15788
|
size: "small",
|
|
15781
15789
|
column: 1,
|
|
15782
15790
|
bordered: true
|
|
15783
15791
|
}, formItem.map(function (e, i) {
|
|
15784
|
-
return
|
|
15792
|
+
return React.createElement(Descriptions.Item, {
|
|
15785
15793
|
key: i,
|
|
15786
15794
|
label: e.label
|
|
15787
|
-
},
|
|
15788
|
-
}))),
|
|
15795
|
+
}, React.createElement(Form.Item, null, createFormItem(e)));
|
|
15796
|
+
}))), React.createElement("div", {
|
|
15789
15797
|
className: "kts-invoice-operate-seller-remarks"
|
|
15790
|
-
},
|
|
15798
|
+
}, React.createElement("div", {
|
|
15791
15799
|
className: "kts-invoice-operate-seller-title"
|
|
15792
|
-
},
|
|
15800
|
+
}, React.createElement("label", null, "\u5907\u6CE8")), React.createElement("div", {
|
|
15793
15801
|
className: "kts-invoice-operate-seller-remarks-value"
|
|
15794
15802
|
}, getFieldDecorator('remarks', {
|
|
15795
15803
|
initialValue: props.defaultsellerRemarks
|
|
15796
|
-
})(
|
|
15804
|
+
})(React.createElement(TextArea, null))))));
|
|
15797
15805
|
});
|
|
15798
15806
|
|
|
15799
15807
|
var ImportBuyerButton = (function () {
|
|
@@ -15820,7 +15828,7 @@ var ImportBuyerButton = (function () {
|
|
|
15820
15828
|
};
|
|
15821
15829
|
}())();
|
|
15822
15830
|
}, [controller]);
|
|
15823
|
-
return
|
|
15831
|
+
return React.createElement(React.Fragment, null, controller.getBuyerList && React.createElement(Button, {
|
|
15824
15832
|
type: "link",
|
|
15825
15833
|
icon: "plus-circle",
|
|
15826
15834
|
onClick: onClick
|
|
@@ -15859,29 +15867,29 @@ var BuyerNameInput = (function (props) {
|
|
|
15859
15867
|
var content = React.useMemo(function () {
|
|
15860
15868
|
var _dataSource$recent;
|
|
15861
15869
|
|
|
15862
|
-
return
|
|
15870
|
+
return React.createElement("div", {
|
|
15863
15871
|
className: 'kts-invoice-operate-buyer-name-content'
|
|
15864
|
-
}, loading ?
|
|
15872
|
+
}, loading ? React.createElement("div", {
|
|
15865
15873
|
style: {
|
|
15866
15874
|
textAlign: 'center'
|
|
15867
15875
|
}
|
|
15868
|
-
},
|
|
15876
|
+
}, React.createElement(Spin, null)) : React.createElement(React.Fragment, null, React.createElement("div", {
|
|
15869
15877
|
className: 'kts-invoice-operate-buyer-name-content-block',
|
|
15870
15878
|
style: {
|
|
15871
15879
|
padding: '14px 10px'
|
|
15872
15880
|
}
|
|
15873
|
-
},
|
|
15881
|
+
}, React.createElement("label", {
|
|
15874
15882
|
style: {
|
|
15875
15883
|
marginBottom: 10
|
|
15876
15884
|
}
|
|
15877
|
-
}, "\u6700\u8FD1\u5F00\u5177"),
|
|
15885
|
+
}, "\u6700\u8FD1\u5F00\u5177"), React.createElement("ul", {
|
|
15878
15886
|
className: 'kts-invoice-operate-buyer-name-content-recently-issued'
|
|
15879
|
-
}, !dataSource.recent || dataSource.recent.length <= 0 ?
|
|
15887
|
+
}, !dataSource.recent || dataSource.recent.length <= 0 ? React.createElement(Empty, {
|
|
15880
15888
|
image: Empty.PRESENTED_IMAGE_SIMPLE
|
|
15881
15889
|
}) : (_dataSource$recent = dataSource.recent) === null || _dataSource$recent === void 0 ? void 0 : _dataSource$recent.map(function (e, i) {
|
|
15882
15890
|
var _dataSource$recent$le, _dataSource$recent2;
|
|
15883
15891
|
|
|
15884
|
-
return
|
|
15892
|
+
return React.createElement("li", {
|
|
15885
15893
|
key: i,
|
|
15886
15894
|
onClick: function onClick() {
|
|
15887
15895
|
onClickItem(e);
|
|
@@ -15889,37 +15897,37 @@ var BuyerNameInput = (function (props) {
|
|
|
15889
15897
|
style: {
|
|
15890
15898
|
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)
|
|
15891
15899
|
}
|
|
15892
|
-
},
|
|
15893
|
-
}))),
|
|
15900
|
+
}, React.createElement(MyTag, null, e.buyerName));
|
|
15901
|
+
}))), React.createElement(Divider, {
|
|
15894
15902
|
style: {
|
|
15895
15903
|
margin: "0 6px"
|
|
15896
15904
|
}
|
|
15897
|
-
}),
|
|
15905
|
+
}), React.createElement("div", {
|
|
15898
15906
|
className: 'kts-invoice-operate-buyer-name-content-block',
|
|
15899
15907
|
style: {
|
|
15900
15908
|
padding: '14px 10px 4px'
|
|
15901
15909
|
}
|
|
15902
|
-
},
|
|
15910
|
+
}, React.createElement("label", {
|
|
15903
15911
|
style: {
|
|
15904
15912
|
padding: '0 10px'
|
|
15905
15913
|
}
|
|
15906
|
-
}, "\u9009\u62E9\u516C\u53F8"),
|
|
15914
|
+
}, "\u9009\u62E9\u516C\u53F8"), React.createElement("div", {
|
|
15907
15915
|
style: {
|
|
15908
15916
|
maxHeight: 200,
|
|
15909
15917
|
overflow: "auto"
|
|
15910
15918
|
}
|
|
15911
|
-
}, !dataSource.list || dataSource.list.length <= 0 ?
|
|
15919
|
+
}, !dataSource.list || dataSource.list.length <= 0 ? React.createElement(Empty, {
|
|
15912
15920
|
image: Empty.PRESENTED_IMAGE_SIMPLE
|
|
15913
15921
|
}) : dataSource.list.map(function (e, i) {
|
|
15914
|
-
return
|
|
15922
|
+
return React.createElement("ul", {
|
|
15915
15923
|
key: i,
|
|
15916
15924
|
onClick: function onClick() {
|
|
15917
15925
|
onClickItem(e);
|
|
15918
15926
|
},
|
|
15919
15927
|
className: 'kts-invoice-operate-buyer-name-content-select-company'
|
|
15920
|
-
},
|
|
15928
|
+
}, React.createElement("li", {
|
|
15921
15929
|
title: e.buyerName
|
|
15922
|
-
}, e.buyerName),
|
|
15930
|
+
}, e.buyerName), React.createElement("li", {
|
|
15923
15931
|
title: e.buyerNo
|
|
15924
15932
|
}, e.buyerNo));
|
|
15925
15933
|
})))));
|
|
@@ -15960,7 +15968,7 @@ var BuyerNameInput = (function (props) {
|
|
|
15960
15968
|
}, [visible, props.value]);
|
|
15961
15969
|
|
|
15962
15970
|
if (model === 'prefab' || !autoContainer) {
|
|
15963
|
-
return
|
|
15971
|
+
return React.createElement(Input, {
|
|
15964
15972
|
size: "small",
|
|
15965
15973
|
autoComplete: "off",
|
|
15966
15974
|
value: props.value,
|
|
@@ -15971,14 +15979,14 @@ var BuyerNameInput = (function (props) {
|
|
|
15971
15979
|
});
|
|
15972
15980
|
}
|
|
15973
15981
|
|
|
15974
|
-
return
|
|
15982
|
+
return React.createElement(Popover$1, {
|
|
15975
15983
|
onVisibleChange: setVisible,
|
|
15976
15984
|
overlayClassName: 'kts-invoice-operate-buyer-name-popover',
|
|
15977
15985
|
placement: "bottomLeft",
|
|
15978
15986
|
trigger: "click",
|
|
15979
15987
|
visible: visible,
|
|
15980
15988
|
content: content
|
|
15981
|
-
},
|
|
15989
|
+
}, React.createElement(Input, {
|
|
15982
15990
|
size: "small",
|
|
15983
15991
|
autoComplete: "off",
|
|
15984
15992
|
value: props.value,
|
|
@@ -16056,7 +16064,7 @@ function useDataSource() {
|
|
|
16056
16064
|
}
|
|
16057
16065
|
|
|
16058
16066
|
function MyTag(props) {
|
|
16059
|
-
return
|
|
16067
|
+
return React.createElement("span", {
|
|
16060
16068
|
className: 'kts-invoice-operate-buyer-name-content-tag',
|
|
16061
16069
|
title: props.children
|
|
16062
16070
|
}, props.children);
|
|
@@ -16092,7 +16100,7 @@ var Buyer$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
16092
16100
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
16093
16101
|
|
|
16094
16102
|
_this.render = function () {
|
|
16095
|
-
return
|
|
16103
|
+
return React.createElement(Main$2, _objectSpread2({}, _this.props));
|
|
16096
16104
|
};
|
|
16097
16105
|
|
|
16098
16106
|
return _this;
|
|
@@ -16123,7 +16131,7 @@ var Main$2 = decorator(Form.create())(function (props) {
|
|
|
16123
16131
|
return [{
|
|
16124
16132
|
id: 'buyerName',
|
|
16125
16133
|
label: '购买方名称',
|
|
16126
|
-
node:
|
|
16134
|
+
node: React.createElement(Input, {
|
|
16127
16135
|
size: "small",
|
|
16128
16136
|
autoComplete: "off",
|
|
16129
16137
|
readOnly: model === 'prefab'
|
|
@@ -16137,7 +16145,7 @@ var Main$2 = decorator(Form.create())(function (props) {
|
|
|
16137
16145
|
}, {
|
|
16138
16146
|
id: 'buyerNo',
|
|
16139
16147
|
label: '购买方纳税人识别号',
|
|
16140
|
-
node:
|
|
16148
|
+
node: React.createElement(Input, {
|
|
16141
16149
|
size: "small",
|
|
16142
16150
|
autoComplete: "off",
|
|
16143
16151
|
readOnly: model === 'prefab'
|
|
@@ -16151,7 +16159,7 @@ var Main$2 = decorator(Form.create())(function (props) {
|
|
|
16151
16159
|
}, {
|
|
16152
16160
|
id: 'buyerAddress',
|
|
16153
16161
|
label: '购买方地址及电话',
|
|
16154
|
-
node:
|
|
16162
|
+
node: React.createElement(Input, {
|
|
16155
16163
|
size: "small",
|
|
16156
16164
|
autoComplete: "off",
|
|
16157
16165
|
readOnly: model === 'prefab'
|
|
@@ -16165,7 +16173,7 @@ var Main$2 = decorator(Form.create())(function (props) {
|
|
|
16165
16173
|
}, {
|
|
16166
16174
|
id: 'buyerBank',
|
|
16167
16175
|
label: '购买方开户行及账号',
|
|
16168
|
-
node:
|
|
16176
|
+
node: React.createElement(Input, {
|
|
16169
16177
|
size: "small",
|
|
16170
16178
|
autoComplete: "off",
|
|
16171
16179
|
readOnly: model === 'prefab'
|
|
@@ -16187,7 +16195,7 @@ var Main$2 = decorator(Form.create())(function (props) {
|
|
|
16187
16195
|
if (e.options.rules.some(function (e) {
|
|
16188
16196
|
return e.required;
|
|
16189
16197
|
})) {
|
|
16190
|
-
return
|
|
16198
|
+
return React.createElement(React.Fragment, null, React.createElement(Text$4, {
|
|
16191
16199
|
type: "danger"
|
|
16192
16200
|
}, "*"), e.label);
|
|
16193
16201
|
} else {
|
|
@@ -16197,29 +16205,29 @@ var Main$2 = decorator(Form.create())(function (props) {
|
|
|
16197
16205
|
return e.label;
|
|
16198
16206
|
}
|
|
16199
16207
|
}, []);
|
|
16200
|
-
return
|
|
16208
|
+
return React.createElement(Form, null, React.createElement("div", {
|
|
16201
16209
|
className: "kts-invoice-operate-buyer"
|
|
16202
|
-
},
|
|
16210
|
+
}, React.createElement("div", {
|
|
16203
16211
|
className: "kts-invoice-operate-buyer-message"
|
|
16204
|
-
},
|
|
16212
|
+
}, React.createElement("div", {
|
|
16205
16213
|
className: "kts-invoice-operate-buyer-title"
|
|
16206
|
-
},
|
|
16214
|
+
}, React.createElement("label", null, "\u8D2D\u4E70\u65B9")), React.createElement("div", {
|
|
16207
16215
|
className: "kts-invoice-operate-buyer-message-Import"
|
|
16208
|
-
}, model !== 'prefab' &&
|
|
16216
|
+
}, model !== 'prefab' && React.createElement(ImportBuyerButton, null)), React.createElement(Descriptions, {
|
|
16209
16217
|
className: "kts-invoice-operate-buyer-message-list",
|
|
16210
16218
|
size: "small",
|
|
16211
16219
|
column: 1,
|
|
16212
16220
|
bordered: true
|
|
16213
16221
|
}, formItem.map(function (item, i) {
|
|
16214
|
-
return
|
|
16222
|
+
return React.createElement(Descriptions.Item, {
|
|
16215
16223
|
key: i,
|
|
16216
16224
|
label: getlabel(item)
|
|
16217
|
-
},
|
|
16218
|
-
}))),
|
|
16225
|
+
}, React.createElement(Form.Item, null, getFieldDecorator(item.id, item.options)(autoContainer ? item.id === 'buyerName' ? React.createElement(BuyerNameInput, null) : item.node : item.node)));
|
|
16226
|
+
}))), React.createElement("div", {
|
|
16219
16227
|
className: "kts-invoice-operate-buyer-password"
|
|
16220
|
-
},
|
|
16228
|
+
}, React.createElement("div", {
|
|
16221
16229
|
className: "kts-invoice-operate-buyer-title"
|
|
16222
|
-
},
|
|
16230
|
+
}, React.createElement("label", null, "\u5BC6\u7801\u533A")), React.createElement("div", null))));
|
|
16223
16231
|
});
|
|
16224
16232
|
|
|
16225
16233
|
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";
|
|
@@ -16236,21 +16244,21 @@ var Sign = decorator(Form.create())(function (props) {
|
|
|
16236
16244
|
}, []); // 注册 form
|
|
16237
16245
|
|
|
16238
16246
|
controller.useForm('sign', form);
|
|
16239
|
-
return
|
|
16247
|
+
return React.createElement("div", {
|
|
16240
16248
|
className: "kts-invoice-operate-sign"
|
|
16241
|
-
},
|
|
16249
|
+
}, React.createElement(Form, _objectSpread2({}, formItemLayout), React.createElement("div", null, React.createElement(Form.Item, {
|
|
16242
16250
|
label: "\u6536\u6B3E\u4EBA"
|
|
16243
16251
|
}, getFieldDecorator('payee', {
|
|
16244
16252
|
initialValue: props.defaultPayee
|
|
16245
|
-
})(
|
|
16253
|
+
})(React.createElement(Input, {
|
|
16246
16254
|
size: "small"
|
|
16247
|
-
})))),
|
|
16255
|
+
})))), React.createElement("div", null, React.createElement(Form.Item, {
|
|
16248
16256
|
label: "\u590D\u6838\u4EBA"
|
|
16249
16257
|
}, getFieldDecorator('reviewer', {
|
|
16250
16258
|
initialValue: props.defaultReviewer
|
|
16251
|
-
})(
|
|
16259
|
+
})(React.createElement(Input, {
|
|
16252
16260
|
size: "small"
|
|
16253
|
-
})))),
|
|
16261
|
+
})))), React.createElement("div", null, React.createElement(Form.Item, {
|
|
16254
16262
|
label: "\u5F00\u7968\u4EBA"
|
|
16255
16263
|
}, getFieldDecorator('issuer', {
|
|
16256
16264
|
initialValue: props.defaultIssuer,
|
|
@@ -16258,7 +16266,7 @@ var Sign = decorator(Form.create())(function (props) {
|
|
|
16258
16266
|
required: true,
|
|
16259
16267
|
message: '请输入开票人'
|
|
16260
16268
|
}]
|
|
16261
|
-
})(
|
|
16269
|
+
})(React.createElement(Input, {
|
|
16262
16270
|
size: "small"
|
|
16263
16271
|
}))))));
|
|
16264
16272
|
});
|
|
@@ -16287,21 +16295,21 @@ var InvoiceHeaderDigtal = decorator(Form.create())(function (props) {
|
|
|
16287
16295
|
return '电子发票(增值税专用发票)';
|
|
16288
16296
|
}, [props.title]);
|
|
16289
16297
|
controller.useForm('invoiceHeader', form);
|
|
16290
|
-
return
|
|
16298
|
+
return React.createElement("div", {
|
|
16291
16299
|
className: "kts-invoice-operate-invoice-digtal-header"
|
|
16292
|
-
},
|
|
16300
|
+
}, React.createElement("div", {
|
|
16293
16301
|
className: "digtal-header-title"
|
|
16294
16302
|
}, title), form.getFieldDecorator('tag', {
|
|
16295
16303
|
initialValue: props.defaultTag
|
|
16296
|
-
})(
|
|
16304
|
+
})(React.createElement(Tag, null)), React.createElement("div", {
|
|
16297
16305
|
className: "digtal-header-fields"
|
|
16298
16306
|
}, form.getFieldDecorator('no', {
|
|
16299
16307
|
initialValue: props.defaultNo
|
|
16300
|
-
})(
|
|
16308
|
+
})(React.createElement(Field, {
|
|
16301
16309
|
title: "\u53D1\u7968\u53F7\u7801\uFF1A"
|
|
16302
16310
|
})), form.getFieldDecorator('invoicingDate', {
|
|
16303
16311
|
initialValue: props.defaultInvoicingDate
|
|
16304
|
-
})(
|
|
16312
|
+
})(React.createElement(Field, {
|
|
16305
16313
|
title: "\u5F00\u7968\u65E5\u671F\uFF1A"
|
|
16306
16314
|
}))));
|
|
16307
16315
|
});
|
|
@@ -16326,15 +16334,15 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
16326
16334
|
value = _this$props.value;
|
|
16327
16335
|
|
|
16328
16336
|
if (value) {
|
|
16329
|
-
return
|
|
16337
|
+
return React.createElement("div", {
|
|
16330
16338
|
className: "digtal-header-field"
|
|
16331
|
-
},
|
|
16339
|
+
}, React.createElement("div", {
|
|
16332
16340
|
className: "digtal-header-field-title"
|
|
16333
|
-
}, title),
|
|
16341
|
+
}, title), React.createElement("div", {
|
|
16334
16342
|
className: "digtal-header-field-value"
|
|
16335
16343
|
}, value));
|
|
16336
16344
|
} else {
|
|
16337
|
-
return
|
|
16345
|
+
return React.createElement(React.Fragment, null);
|
|
16338
16346
|
}
|
|
16339
16347
|
}
|
|
16340
16348
|
}]);
|
|
@@ -16356,9 +16364,9 @@ var Tag = /*#__PURE__*/function (_React$Component2) {
|
|
|
16356
16364
|
_createClass(Tag, [{
|
|
16357
16365
|
key: "render",
|
|
16358
16366
|
value: function render() {
|
|
16359
|
-
return this.props.value ?
|
|
16367
|
+
return this.props.value ? React.createElement("div", {
|
|
16360
16368
|
className: "digtal-header-tag"
|
|
16361
|
-
}, this.props.value) :
|
|
16369
|
+
}, this.props.value) : React.createElement(React.Fragment, null);
|
|
16362
16370
|
}
|
|
16363
16371
|
}]);
|
|
16364
16372
|
|
|
@@ -16534,57 +16542,57 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
16534
16542
|
return rulesMap[field] || defaultRules;
|
|
16535
16543
|
}, [rulesMap, isReadOnly, isReadOnly]);
|
|
16536
16544
|
controller.useForm('stakeholder', form);
|
|
16537
|
-
return
|
|
16545
|
+
return React.createElement("div", {
|
|
16538
16546
|
className: classNames("kts-invoice-operate-invoice-digtal-stakeholder", {
|
|
16539
16547
|
readOnly: readOnly
|
|
16540
16548
|
})
|
|
16541
|
-
},
|
|
16542
|
-
return
|
|
16543
|
-
}), !readOnly &&
|
|
16549
|
+
}, React.createElement("div", null, '购买方信息'.split('').map(function (e) {
|
|
16550
|
+
return React.createElement("span", null, e);
|
|
16551
|
+
}), !readOnly && React.createElement(Icon, {
|
|
16544
16552
|
className: "digtal-stakeholder-expand-button",
|
|
16545
16553
|
component: isExpand ? SvgArrowUp : SvgArrowDown,
|
|
16546
16554
|
onClick: onExpand
|
|
16547
|
-
})),
|
|
16555
|
+
})), React.createElement("div", null, React.createElement(Form, {
|
|
16548
16556
|
className: "digtal-stakeholder-form"
|
|
16549
|
-
},
|
|
16557
|
+
}, React.createElement(Row, {
|
|
16550
16558
|
gutter: [16, 0]
|
|
16551
|
-
}, props.isNaturalPerson === true &&
|
|
16559
|
+
}, props.isNaturalPerson === true && React.createElement(Col, {
|
|
16552
16560
|
span: 24
|
|
16553
|
-
},
|
|
16561
|
+
}, React.createElement(Form.Item, {
|
|
16554
16562
|
label: "\u8D2D\u4E70\u65B9\u4FE1\u606F",
|
|
16555
16563
|
colon: false
|
|
16556
|
-
}, getFieldDecorator('naturalPersonFlag', {})(
|
|
16564
|
+
}, getFieldDecorator('naturalPersonFlag', {})(React.createElement(NaturalPersonFlag, {
|
|
16557
16565
|
readOnly: isReadOnly('naturalPersonFlag')
|
|
16558
|
-
})))),
|
|
16566
|
+
})))), React.createElement(Col, {
|
|
16559
16567
|
span: 24
|
|
16560
|
-
},
|
|
16568
|
+
}, React.createElement(Form.Item, {
|
|
16561
16569
|
label: "\u540D\u79F0",
|
|
16562
16570
|
colon: false
|
|
16563
16571
|
}, getFieldDecorator('buyerName', {
|
|
16564
16572
|
rules: getRules('buyerName', RULES.companyName('购买方名称'))
|
|
16565
|
-
})(
|
|
16573
|
+
})(React.createElement(BuyerNameInput$1, {
|
|
16566
16574
|
myform: form,
|
|
16567
16575
|
fieldName: 'buyerName',
|
|
16568
16576
|
readOnly: isReadOnly('buyerName'),
|
|
16569
16577
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
16570
16578
|
autoComplete: "off",
|
|
16571
|
-
suffix: isShowImportButton === true &&
|
|
16579
|
+
suffix: isShowImportButton === true && React.createElement(Button$1, {
|
|
16572
16580
|
type: 'link',
|
|
16573
16581
|
style: {
|
|
16574
16582
|
padding: 0,
|
|
16575
16583
|
width: 20,
|
|
16576
16584
|
height: '100%'
|
|
16577
16585
|
},
|
|
16578
|
-
icon:
|
|
16586
|
+
icon: React.createElement(Icon, {
|
|
16579
16587
|
component: SvgPlus
|
|
16580
16588
|
}),
|
|
16581
16589
|
onClick: function onClick() {
|
|
16582
16590
|
onClickImportButton && onClickImportButton(controller);
|
|
16583
16591
|
}
|
|
16584
16592
|
})
|
|
16585
|
-
})))),
|
|
16593
|
+
})))), React.createElement(Col, {
|
|
16586
16594
|
span: 24
|
|
16587
|
-
},
|
|
16595
|
+
}, React.createElement(Form.Item, {
|
|
16588
16596
|
label: "\u7EDF\u4E00\u793E\u4F1A\u4FE1\u7528\u4EE3\u7801/\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7",
|
|
16589
16597
|
colon: false
|
|
16590
16598
|
}, getFieldDecorator('buyerTaxId', {
|
|
@@ -16592,15 +16600,15 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
16592
16600
|
required: !isVatNormal,
|
|
16593
16601
|
message: '购买方纳税人识别号必填'
|
|
16594
16602
|
}].concat(_toConsumableArray(RULES.taxId('购买方纳税人识别号'))))
|
|
16595
|
-
})(
|
|
16603
|
+
})(React.createElement(BuyerNameInput$1, {
|
|
16596
16604
|
myform: form,
|
|
16597
16605
|
fieldName: 'buyerTaxId',
|
|
16598
16606
|
readOnly: isReadOnly('buyerTaxId'),
|
|
16599
16607
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
16600
16608
|
autoComplete: "off"
|
|
16601
|
-
})))), isExpand &&
|
|
16609
|
+
})))), isExpand && React.createElement(React.Fragment, null, React.createElement(Col, {
|
|
16602
16610
|
span: 15
|
|
16603
|
-
},
|
|
16611
|
+
}, React.createElement(Form.Item, {
|
|
16604
16612
|
label: "\u8D2D\u4E70\u65B9\u5730\u5740",
|
|
16605
16613
|
colon: false
|
|
16606
16614
|
}, getFieldDecorator('buyerAddress', {
|
|
@@ -16608,77 +16616,77 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
16608
16616
|
max: 100,
|
|
16609
16617
|
message: '购买方地址内容超长'
|
|
16610
16618
|
}])
|
|
16611
|
-
})(
|
|
16619
|
+
})(React.createElement(MyInput$1, {
|
|
16612
16620
|
readOnly: isReadOnly('buyerAddress'),
|
|
16613
16621
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
16614
16622
|
autoComplete: "off"
|
|
16615
|
-
})))),
|
|
16623
|
+
})))), React.createElement(Col, {
|
|
16616
16624
|
span: 9
|
|
16617
|
-
},
|
|
16625
|
+
}, React.createElement(Form.Item, {
|
|
16618
16626
|
label: "\u7535\u8BDD",
|
|
16619
16627
|
colon: false
|
|
16620
16628
|
}, getFieldDecorator('buyerPhone', {
|
|
16621
16629
|
rules: getRules('buyerPhone', RULES.buyerTelPhone('购买方电话'))
|
|
16622
|
-
})(
|
|
16630
|
+
})(React.createElement(MyInput$1, {
|
|
16623
16631
|
readOnly: isReadOnly('buyerPhone'),
|
|
16624
16632
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
16625
16633
|
autoComplete: "off"
|
|
16626
|
-
})))),
|
|
16634
|
+
})))), React.createElement(Col, {
|
|
16627
16635
|
span: 12
|
|
16628
|
-
},
|
|
16636
|
+
}, React.createElement(Form.Item, {
|
|
16629
16637
|
label: "\u8D2D\u4E70\u65B9\u5F00\u6237\u94F6\u884C",
|
|
16630
16638
|
colon: false
|
|
16631
16639
|
}, getFieldDecorator('buyerBank', {
|
|
16632
16640
|
rules: getRules('buyerBank', RULES.bankName('购买方开户银行'))
|
|
16633
|
-
})(
|
|
16641
|
+
})(React.createElement(MyInput$1, {
|
|
16634
16642
|
readOnly: isReadOnly('buyerBank'),
|
|
16635
16643
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
16636
16644
|
autoComplete: "off"
|
|
16637
|
-
})))),
|
|
16645
|
+
})))), React.createElement(Col, {
|
|
16638
16646
|
span: 12
|
|
16639
|
-
},
|
|
16647
|
+
}, React.createElement(Form.Item, {
|
|
16640
16648
|
label: "\u94F6\u884C\u8D26\u53F7",
|
|
16641
16649
|
colon: false
|
|
16642
16650
|
}, getFieldDecorator('buyerAccount', {
|
|
16643
16651
|
rules: getRules('buyerAccount', RULES.bankAccount('购买方银行账号'))
|
|
16644
|
-
})(
|
|
16652
|
+
})(React.createElement(MyInput$1, {
|
|
16645
16653
|
readOnly: isReadOnly('buyerAccount'),
|
|
16646
16654
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
16647
16655
|
autoComplete: "off"
|
|
16648
|
-
})))))))),
|
|
16649
|
-
return
|
|
16650
|
-
}), !readOnly &&
|
|
16656
|
+
})))))))), React.createElement("div", null, '销售方信息'.split('').map(function (e) {
|
|
16657
|
+
return React.createElement("span", null, e);
|
|
16658
|
+
}), !readOnly && React.createElement(Icon, {
|
|
16651
16659
|
className: "digtal-stakeholder-expand-button",
|
|
16652
16660
|
component: isExpand ? SvgArrowUp : SvgArrowDown,
|
|
16653
16661
|
onClick: onExpand
|
|
16654
|
-
})),
|
|
16662
|
+
})), React.createElement("div", null, !readOnly && props.lineCredit && React.createElement("div", {
|
|
16655
16663
|
style: {
|
|
16656
16664
|
marginTop: 20
|
|
16657
16665
|
}
|
|
16658
|
-
},
|
|
16666
|
+
}, React.createElement(Tooltip$1, {
|
|
16659
16667
|
trigger: "click",
|
|
16660
16668
|
title: props.lineCredit
|
|
16661
|
-
},
|
|
16669
|
+
}, React.createElement(Button$1, {
|
|
16662
16670
|
type: "link"
|
|
16663
|
-
}, "\u67E5\u770B\u5F53\u524D\u53EF\u7528\u6388\u4FE1\u989D\u5EA6"))),
|
|
16671
|
+
}, "\u67E5\u770B\u5F53\u524D\u53EF\u7528\u6388\u4FE1\u989D\u5EA6"))), React.createElement(Form, {
|
|
16664
16672
|
className: "digtal-stakeholder-form"
|
|
16665
|
-
},
|
|
16673
|
+
}, React.createElement(Row, {
|
|
16666
16674
|
gutter: [16, 0]
|
|
16667
|
-
},
|
|
16675
|
+
}, React.createElement(Col, {
|
|
16668
16676
|
span: 24
|
|
16669
|
-
},
|
|
16677
|
+
}, React.createElement(Form.Item, {
|
|
16670
16678
|
label: "\u540D\u79F0",
|
|
16671
16679
|
colon: false
|
|
16672
16680
|
}, getFieldDecorator('supplierName', {
|
|
16673
16681
|
rules: getRules('supplierName', RULES.companyName('销售方名称')),
|
|
16674
16682
|
getValueFromEvent: formatCompanyName
|
|
16675
|
-
})(
|
|
16683
|
+
})(React.createElement(MyInput$1, {
|
|
16676
16684
|
readOnly: isReadOnly('supplierName'),
|
|
16677
16685
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
16678
16686
|
autoComplete: "off"
|
|
16679
|
-
})))),
|
|
16687
|
+
})))), React.createElement(Col, {
|
|
16680
16688
|
span: 24
|
|
16681
|
-
},
|
|
16689
|
+
}, React.createElement(Form.Item, {
|
|
16682
16690
|
label: "\u7EDF\u4E00\u793E\u4F1A\u4FE1\u7528\u4EE3\u7801/\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7",
|
|
16683
16691
|
colon: false
|
|
16684
16692
|
}, getFieldDecorator('supplierTaxId', {
|
|
@@ -16686,13 +16694,13 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
16686
16694
|
required: true,
|
|
16687
16695
|
message: '销售方纳税人识别号必填'
|
|
16688
16696
|
}].concat(_toConsumableArray(RULES.taxId('销售方纳税人识别号'))))
|
|
16689
|
-
})(
|
|
16697
|
+
})(React.createElement(MyInput$1, {
|
|
16690
16698
|
readOnly: isReadOnly('supplierTaxId'),
|
|
16691
16699
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
16692
16700
|
autoComplete: "off"
|
|
16693
|
-
})))), isExpand &&
|
|
16701
|
+
})))), isExpand && React.createElement(React.Fragment, null, React.createElement(Col, {
|
|
16694
16702
|
span: 15
|
|
16695
|
-
},
|
|
16703
|
+
}, React.createElement(Form.Item, {
|
|
16696
16704
|
label: "\u9500\u552E\u65B9\u5730\u5740",
|
|
16697
16705
|
colon: false
|
|
16698
16706
|
}, getFieldDecorator('sellerAddress', {
|
|
@@ -16700,40 +16708,40 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
16700
16708
|
max: 300,
|
|
16701
16709
|
message: '销售方地址内容超长'
|
|
16702
16710
|
}])
|
|
16703
|
-
})(
|
|
16711
|
+
})(React.createElement(MyInput$1, {
|
|
16704
16712
|
readOnly: isReadOnly('sellerAddress'),
|
|
16705
16713
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
16706
16714
|
autoComplete: "off"
|
|
16707
|
-
})))),
|
|
16715
|
+
})))), React.createElement(Col, {
|
|
16708
16716
|
span: 9
|
|
16709
|
-
},
|
|
16717
|
+
}, React.createElement(Form.Item, {
|
|
16710
16718
|
label: "\u7535\u8BDD",
|
|
16711
16719
|
colon: false
|
|
16712
16720
|
}, getFieldDecorator('sellerPhone', {
|
|
16713
16721
|
rules: getRules('sellerPhone', RULES.sellerTelPhone('销售方电话'))
|
|
16714
|
-
})(
|
|
16722
|
+
})(React.createElement(MyInput$1, {
|
|
16715
16723
|
readOnly: isReadOnly('sellerPhone'),
|
|
16716
16724
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
16717
16725
|
autoComplete: "off"
|
|
16718
|
-
})))),
|
|
16726
|
+
})))), React.createElement(Col, {
|
|
16719
16727
|
span: 12
|
|
16720
|
-
},
|
|
16728
|
+
}, React.createElement(Form.Item, {
|
|
16721
16729
|
label: "\u9500\u552E\u65B9\u5F00\u6237\u94F6\u884C",
|
|
16722
16730
|
colon: false
|
|
16723
16731
|
}, getFieldDecorator('sellerBank', {
|
|
16724
16732
|
rules: getRules('sellerBank', RULES.bankName('销售方开户银行'))
|
|
16725
|
-
})(
|
|
16733
|
+
})(React.createElement(MyInput$1, {
|
|
16726
16734
|
readOnly: isReadOnly('sellerBank'),
|
|
16727
16735
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
16728
16736
|
autoComplete: "off"
|
|
16729
|
-
})))),
|
|
16737
|
+
})))), React.createElement(Col, {
|
|
16730
16738
|
span: 12
|
|
16731
|
-
},
|
|
16739
|
+
}, React.createElement(Form.Item, {
|
|
16732
16740
|
label: "\u94F6\u884C\u8D26\u53F7",
|
|
16733
16741
|
colon: false
|
|
16734
16742
|
}, getFieldDecorator('sellerAccount', {
|
|
16735
16743
|
rules: getRules('sellerAccount', RULES.bankAccount('销售方银行账号'))
|
|
16736
|
-
})(
|
|
16744
|
+
})(React.createElement(MyInput$1, {
|
|
16737
16745
|
readOnly: isReadOnly('sellerAccount'),
|
|
16738
16746
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
16739
16747
|
autoComplete: "off"
|
|
@@ -16754,7 +16762,7 @@ function NaturalPersonFlag(props) {
|
|
|
16754
16762
|
React.useEffect(function () {
|
|
16755
16763
|
setValue(props.value || 'COMPANY');
|
|
16756
16764
|
}, [props.value]);
|
|
16757
|
-
return
|
|
16765
|
+
return React.createElement(Checkbox$1, {
|
|
16758
16766
|
disabled: props.readOnly,
|
|
16759
16767
|
checked: value === 'NATURAL',
|
|
16760
16768
|
onChange: onChange
|
|
@@ -16857,8 +16865,8 @@ function BuyerNameInput$1(props) {
|
|
|
16857
16865
|
return _ref.apply(this, arguments);
|
|
16858
16866
|
};
|
|
16859
16867
|
}(), [autoComplete.onBuyerNameSearch, fieldName]);
|
|
16860
|
-
if (props.readOnly) return
|
|
16861
|
-
return
|
|
16868
|
+
if (props.readOnly) return React.createElement("span", null, props.value);
|
|
16869
|
+
return React.createElement(AutoComplete$1, {
|
|
16862
16870
|
onSearch: onSearch,
|
|
16863
16871
|
options: options.map(function (e) {
|
|
16864
16872
|
return {
|
|
@@ -16867,7 +16875,7 @@ function BuyerNameInput$1(props) {
|
|
|
16867
16875
|
}),
|
|
16868
16876
|
onChange: onChangeAutoComplete,
|
|
16869
16877
|
value: props.value
|
|
16870
|
-
},
|
|
16878
|
+
}, React.createElement(Input$1, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
16871
16879
|
style: _objectSpread2({
|
|
16872
16880
|
width: '100%'
|
|
16873
16881
|
}, props.style)
|
|
@@ -16891,9 +16899,9 @@ var MyInput$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
16891
16899
|
var props = this.props;
|
|
16892
16900
|
|
|
16893
16901
|
if (props.readOnly) {
|
|
16894
|
-
return
|
|
16902
|
+
return React.createElement("span", null, props.value);
|
|
16895
16903
|
} else {
|
|
16896
|
-
return
|
|
16904
|
+
return React.createElement(Input$1, _objectSpread2({}, props));
|
|
16897
16905
|
}
|
|
16898
16906
|
}
|
|
16899
16907
|
}]);
|
|
@@ -16950,43 +16958,43 @@ var SignDigtal = decorator(Form.create())(function (props) {
|
|
|
16950
16958
|
controller.useForm('sign', form);
|
|
16951
16959
|
|
|
16952
16960
|
if (readOnly) {
|
|
16953
|
-
return
|
|
16961
|
+
return React.createElement("div", {
|
|
16954
16962
|
className: "kts-invoice-operate-sign-digtal-readOnly"
|
|
16955
|
-
},
|
|
16963
|
+
}, React.createElement("div", {
|
|
16956
16964
|
className: 'sign-digtal-readOnly-cont'
|
|
16957
|
-
},
|
|
16965
|
+
}, React.createElement("div", null, React.createElement("span", null, "\u5907"), React.createElement("span", null, "\u6CE8")), React.createElement("div", null, getFieldDecorator('remarks', {
|
|
16958
16966
|
initialValue: props.defaultRemark
|
|
16959
|
-
})(isEnables('remarks') ?
|
|
16967
|
+
})(isEnables('remarks') ? React.createElement(Input$1.TextArea, {
|
|
16960
16968
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
16961
16969
|
style: {
|
|
16962
16970
|
height: '100%'
|
|
16963
16971
|
}
|
|
16964
|
-
}) :
|
|
16972
|
+
}) : React.createElement(MyDiv$1, null)))), React.createElement(Form, {
|
|
16965
16973
|
layout: 'inline',
|
|
16966
16974
|
className: 'digtal-readOnly-form'
|
|
16967
|
-
},
|
|
16975
|
+
}, React.createElement(Form.Item, {
|
|
16968
16976
|
label: "\u5F00\u7968\u4EBA"
|
|
16969
16977
|
}, getFieldDecorator('drawer', {
|
|
16970
16978
|
initialValue: props.defaultRemark
|
|
16971
|
-
})(
|
|
16979
|
+
})(React.createElement(MyDiv$1, null)))));
|
|
16972
16980
|
} else {
|
|
16973
|
-
return
|
|
16981
|
+
return React.createElement("div", {
|
|
16974
16982
|
className: "kts-invoice-operate-sign-digtal"
|
|
16975
|
-
},
|
|
16983
|
+
}, React.createElement("div", {
|
|
16976
16984
|
className: 'sign-digtal-label'
|
|
16977
|
-
}, "\u5907\u6CE8\u4FE1\u606F"),
|
|
16985
|
+
}, "\u5907\u6CE8\u4FE1\u606F"), React.createElement(Form, null, React.createElement(Form.Item, {
|
|
16978
16986
|
label: "\u5907\u6CE8"
|
|
16979
16987
|
}, getFieldDecorator('remarks', {
|
|
16980
16988
|
initialValue: props.defaultRemark
|
|
16981
|
-
})(
|
|
16989
|
+
})(React.createElement(Input$1.TextArea, {
|
|
16982
16990
|
readOnly: isReadOnly('remarks'),
|
|
16983
16991
|
autoSize: true,
|
|
16984
16992
|
placeholder: "\u8BF7\u8F93\u5165"
|
|
16985
|
-
}))),
|
|
16993
|
+
}))), React.createElement(Form.Item, {
|
|
16986
16994
|
label: "\u5F00\u7968\u4EBA"
|
|
16987
16995
|
}, getFieldDecorator('drawer', {
|
|
16988
16996
|
initialValue: props.defaultIssuer
|
|
16989
|
-
})(
|
|
16997
|
+
})(React.createElement(Input$1, {
|
|
16990
16998
|
readOnly: isReadOnly('drawer'),
|
|
16991
16999
|
style: {
|
|
16992
17000
|
width: 313
|
|
@@ -17010,7 +17018,7 @@ var MyDiv$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
17010
17018
|
_createClass(MyDiv, [{
|
|
17011
17019
|
key: "render",
|
|
17012
17020
|
value: function render() {
|
|
17013
|
-
return
|
|
17021
|
+
return React.createElement("div", null, this.props.value);
|
|
17014
17022
|
}
|
|
17015
17023
|
}]);
|
|
17016
17024
|
|
|
@@ -17111,12 +17119,12 @@ function TableVirtual$1 (props) {
|
|
|
17111
17119
|
if (!cont) return;
|
|
17112
17120
|
cont.scrollTop = 0;
|
|
17113
17121
|
}, [(_props$dataSource2 = props.dataSource) === null || _props$dataSource2 === void 0 ? void 0 : _props$dataSource2.length]);
|
|
17114
|
-
return
|
|
17122
|
+
return React.createElement("span", {
|
|
17115
17123
|
className: "kts-invoice-operate-goods-table-virtual",
|
|
17116
17124
|
ref: function ref(e) {
|
|
17117
17125
|
setSelf(e);
|
|
17118
17126
|
}
|
|
17119
|
-
},
|
|
17127
|
+
}, React.createElement(TableManual, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
17120
17128
|
dataSource: dataSource,
|
|
17121
17129
|
// 新版本Table会有输入框无法连续输入的问题,先兼容老版本
|
|
17122
17130
|
tableComponent: Table
|
|
@@ -17229,51 +17237,51 @@ var Statistics$1 = (function () {
|
|
|
17229
17237
|
});
|
|
17230
17238
|
return sum.done().toNumber();
|
|
17231
17239
|
}, []);
|
|
17232
|
-
return
|
|
17240
|
+
return React.createElement("div", {
|
|
17233
17241
|
className: 'kts-invoice-operate-goods-list-statistics-digtal'
|
|
17234
|
-
},
|
|
17242
|
+
}, React.createElement("div", {
|
|
17235
17243
|
className: 'statistics-digtal-total'
|
|
17236
|
-
},
|
|
17244
|
+
}, React.createElement("div", null, "\u5408\u8BA1"), React.createElement("div", {
|
|
17237
17245
|
style: {
|
|
17238
17246
|
flex: 1
|
|
17239
17247
|
}
|
|
17240
|
-
}),
|
|
17248
|
+
}), React.createElement("div", {
|
|
17241
17249
|
style: {
|
|
17242
17250
|
width: 119,
|
|
17243
17251
|
textAlign: 'right',
|
|
17244
17252
|
paddingRight: 15
|
|
17245
17253
|
}
|
|
17246
|
-
}, "\xA5", parseFloat(isTaxIncluded ? lineAmountIncludeTax : lineAmountExcludeTax).toFixed(2)),
|
|
17254
|
+
}, "\xA5", parseFloat(isTaxIncluded ? lineAmountIncludeTax : lineAmountExcludeTax).toFixed(2)), React.createElement("div", {
|
|
17247
17255
|
style: {
|
|
17248
17256
|
width: 119,
|
|
17249
17257
|
textAlign: 'right',
|
|
17250
17258
|
paddingRight: 15
|
|
17251
17259
|
}
|
|
17252
|
-
}, "\xA5", parseFloat(taxAmount).toFixed(2))),
|
|
17260
|
+
}, "\xA5", parseFloat(taxAmount).toFixed(2))), React.createElement("div", {
|
|
17253
17261
|
className: 'statistics-digtal-total-tax'
|
|
17254
|
-
},
|
|
17262
|
+
}, React.createElement("div", null, "\u4EF7\u7A0E\u5408\u8BA1\uFF08\u5927\u5199\uFF09"), React.createElement("div", {
|
|
17255
17263
|
style: {
|
|
17256
17264
|
paddingLeft: 30
|
|
17257
17265
|
}
|
|
17258
|
-
},
|
|
17266
|
+
}, React.createElement(Icon, {
|
|
17259
17267
|
component: SvgFork
|
|
17260
|
-
}),
|
|
17268
|
+
}), React.createElement("span", {
|
|
17261
17269
|
style: {
|
|
17262
17270
|
fontWeight: 'bold',
|
|
17263
17271
|
marginLeft: 4
|
|
17264
17272
|
}
|
|
17265
17273
|
}, nzhcn$1.toMoney(lineAmountIncludeTax, {
|
|
17266
17274
|
outSymbol: false
|
|
17267
|
-
}))),
|
|
17275
|
+
}))), React.createElement("div", {
|
|
17268
17276
|
style: {
|
|
17269
17277
|
flex: 1
|
|
17270
17278
|
}
|
|
17271
|
-
}),
|
|
17279
|
+
}), React.createElement("div", {
|
|
17272
17280
|
style: {
|
|
17273
17281
|
width: 90,
|
|
17274
17282
|
color: '#9F613E'
|
|
17275
17283
|
}
|
|
17276
|
-
}, "\uFF08\u5C0F\u5199\uFF09"),
|
|
17284
|
+
}, "\uFF08\u5C0F\u5199\uFF09"), React.createElement("div", {
|
|
17277
17285
|
style: {
|
|
17278
17286
|
width: 119
|
|
17279
17287
|
}
|
|
@@ -17332,10 +17340,10 @@ var AddRowButton$1 = (function () {
|
|
|
17332
17340
|
}
|
|
17333
17341
|
}, _callee);
|
|
17334
17342
|
})), [controller, rootElement]);
|
|
17335
|
-
if (isAddRow === false) return
|
|
17336
|
-
if (model === 'prefab') return
|
|
17337
|
-
if (model === 'readOnly') return
|
|
17338
|
-
return
|
|
17343
|
+
if (isAddRow === false) return React.createElement(React.Fragment, null);
|
|
17344
|
+
if (model === 'prefab') return React.createElement(React.Fragment, null);
|
|
17345
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
17346
|
+
return React.createElement(Button$1, {
|
|
17339
17347
|
size: 'small',
|
|
17340
17348
|
type: 'primary',
|
|
17341
17349
|
onClick: onClick,
|
|
@@ -17488,11 +17496,11 @@ var TaxIncludedSwitch$1 = (function () {
|
|
|
17488
17496
|
};
|
|
17489
17497
|
}())();
|
|
17490
17498
|
}, []);
|
|
17491
|
-
return
|
|
17499
|
+
return React.createElement("span", null, React.createElement("label", {
|
|
17492
17500
|
style: {
|
|
17493
17501
|
marginRight: 2
|
|
17494
17502
|
}
|
|
17495
|
-
}, "\u542B\u7A0E"),
|
|
17503
|
+
}, "\u542B\u7A0E"), React.createElement(Switch, {
|
|
17496
17504
|
disabled: isSwitchTax === false,
|
|
17497
17505
|
checked: isTaxIncluded,
|
|
17498
17506
|
defaultChecked: true,
|
|
@@ -17588,12 +17596,12 @@ function Search$1() {
|
|
|
17588
17596
|
};
|
|
17589
17597
|
}());
|
|
17590
17598
|
}, [value, controller]);
|
|
17591
|
-
return
|
|
17599
|
+
return React.createElement(Input$1, {
|
|
17592
17600
|
readOnly: readOnly,
|
|
17593
17601
|
value: value,
|
|
17594
17602
|
className: "kts-invoice-operate-goods-list-search",
|
|
17595
17603
|
placeholder: "\u8BF7\u60A8\u8F93\u5165\u9879\u76EE\u540D\u79F0\u3001\u89C4\u683C\u578B\u53F7\u3001\u91D1\u989D(".concat(isTaxIncluded ? '含税' : '不含税', ")\u641C\u7D22"),
|
|
17596
|
-
prefix:
|
|
17604
|
+
prefix: React.createElement(Icon$1, {
|
|
17597
17605
|
component: SvgMagnifier$1,
|
|
17598
17606
|
style: {
|
|
17599
17607
|
color: "#b8b8b8"
|
|
@@ -17638,12 +17646,12 @@ function TableRow$1(props) {
|
|
|
17638
17646
|
return undefined;
|
|
17639
17647
|
}
|
|
17640
17648
|
}, [rowKey, goodsMap]);
|
|
17641
|
-
return rowKey === current && current ?
|
|
17649
|
+
return rowKey === current && current ? React.createElement("tr", {
|
|
17642
17650
|
style: {
|
|
17643
17651
|
height: 50,
|
|
17644
17652
|
position: 'relative'
|
|
17645
17653
|
}
|
|
17646
|
-
},
|
|
17654
|
+
}, React.createElement("div", {
|
|
17647
17655
|
style: {
|
|
17648
17656
|
height: 0.5,
|
|
17649
17657
|
width: '100%',
|
|
@@ -17651,9 +17659,7 @@ function TableRow$1(props) {
|
|
|
17651
17659
|
position: 'absolute',
|
|
17652
17660
|
bottom: 0
|
|
17653
17661
|
}
|
|
17654
|
-
})) :
|
|
17655
|
-
/*#__PURE__*/
|
|
17656
|
-
// <tr {...props} className={classnames(props.className, discount, (rowKey === container && current) ? 'kts-invoice-operate-goods-list-itemName-drag-container' : '')} />
|
|
17662
|
+
})) : // <tr {...props} className={classnames(props.className, discount, (rowKey === container && current) ? 'kts-invoice-operate-goods-list-itemName-drag-container' : '')} />
|
|
17657
17663
|
React.createElement("tr", _objectSpread2(_objectSpread2({}, props), {}, {
|
|
17658
17664
|
className: classNames(props.className, discount, rowKey === container && current ? 'kts-invoice-operate-goods-list-itemName-drag-container-' + site : undefined)
|
|
17659
17665
|
}));
|
|
@@ -17693,9 +17699,9 @@ var TitleText$1 = (function (props) {
|
|
|
17693
17699
|
return !!e.required;
|
|
17694
17700
|
})) || props.required;
|
|
17695
17701
|
}, [rules, props.required]);
|
|
17696
|
-
return
|
|
17702
|
+
return React.createElement(React.Fragment, null, required ? React.createElement(Text$5, {
|
|
17697
17703
|
type: "danger"
|
|
17698
|
-
}, "*") :
|
|
17704
|
+
}, "*") : React.createElement(React.Fragment, null), children);
|
|
17699
17705
|
});
|
|
17700
17706
|
|
|
17701
17707
|
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";
|
|
@@ -17726,6 +17732,7 @@ function ItemNameInput$1(props) {
|
|
|
17726
17732
|
}, [options, controller]);
|
|
17727
17733
|
var onSearch = React.useCallback( /*#__PURE__*/function () {
|
|
17728
17734
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(searchText) {
|
|
17735
|
+
var list;
|
|
17729
17736
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
17730
17737
|
while (1) {
|
|
17731
17738
|
switch (_context.prev = _context.next) {
|
|
@@ -17733,48 +17740,51 @@ function ItemNameInput$1(props) {
|
|
|
17733
17740
|
_context.prev = 0;
|
|
17734
17741
|
|
|
17735
17742
|
if (!autoComplete.onItemNameSearch) {
|
|
17736
|
-
_context.next =
|
|
17743
|
+
_context.next = 9;
|
|
17737
17744
|
break;
|
|
17738
17745
|
}
|
|
17739
17746
|
|
|
17740
|
-
_context.t0 =
|
|
17747
|
+
_context.t0 = _toConsumableArray;
|
|
17741
17748
|
_context.next = 5;
|
|
17742
17749
|
return autoComplete.onItemNameSearch(searchText);
|
|
17743
17750
|
|
|
17744
17751
|
case 5:
|
|
17745
17752
|
_context.t1 = _context.sent;
|
|
17746
|
-
(0, _context.t0)(_context.t1);
|
|
17753
|
+
list = (0, _context.t0)(_context.t1);
|
|
17754
|
+
console.log('===> list', list);
|
|
17755
|
+
setOptions(list);
|
|
17747
17756
|
|
|
17748
|
-
case
|
|
17749
|
-
_context.next =
|
|
17757
|
+
case 9:
|
|
17758
|
+
_context.next = 15;
|
|
17750
17759
|
break;
|
|
17751
17760
|
|
|
17752
|
-
case
|
|
17753
|
-
_context.prev =
|
|
17761
|
+
case 11:
|
|
17762
|
+
_context.prev = 11;
|
|
17754
17763
|
_context.t2 = _context["catch"](0);
|
|
17755
17764
|
setOptions([]);
|
|
17756
17765
|
throw _context.t2;
|
|
17757
17766
|
|
|
17758
|
-
case
|
|
17767
|
+
case 15:
|
|
17759
17768
|
case "end":
|
|
17760
17769
|
return _context.stop();
|
|
17761
17770
|
}
|
|
17762
17771
|
}
|
|
17763
|
-
}, _callee, null, [[0,
|
|
17772
|
+
}, _callee, null, [[0, 11]]);
|
|
17764
17773
|
}));
|
|
17765
17774
|
|
|
17766
17775
|
return function (_x) {
|
|
17767
17776
|
return _ref.apply(this, arguments);
|
|
17768
17777
|
};
|
|
17769
17778
|
}(), [autoComplete.onItemNameSearch]);
|
|
17770
|
-
|
|
17779
|
+
console.log('===> options', options);
|
|
17780
|
+
return React.createElement("div", {
|
|
17771
17781
|
className: 'kts-invoice-operate-goods-list-itemName-input'
|
|
17772
|
-
}, props.shorthand &&
|
|
17782
|
+
}, props.shorthand && React.createElement("span", {
|
|
17773
17783
|
style: {
|
|
17774
17784
|
alignSelf: 'center',
|
|
17775
17785
|
fontSize: 12
|
|
17776
17786
|
}
|
|
17777
|
-
}, "*", props.shorthand, "*"),
|
|
17787
|
+
}, "*", props.shorthand, "*"), React.createElement(AutoComplete$1, {
|
|
17778
17788
|
onSearch: onSearch,
|
|
17779
17789
|
value: props.value,
|
|
17780
17790
|
options: options.map(function (e) {
|
|
@@ -17783,7 +17793,7 @@ function ItemNameInput$1(props) {
|
|
|
17783
17793
|
};
|
|
17784
17794
|
}),
|
|
17785
17795
|
onSelect: onChangeAutoComplete
|
|
17786
|
-
},
|
|
17796
|
+
}, React.createElement(Input$1, {
|
|
17787
17797
|
style: {
|
|
17788
17798
|
height: '100%'
|
|
17789
17799
|
},
|
|
@@ -18889,7 +18899,7 @@ function Drag$2(props) {
|
|
|
18889
18899
|
var currentGood = controller.state.goodsListState.goodsList.filter(function (e) {
|
|
18890
18900
|
return e.$index === record.$index;
|
|
18891
18901
|
})[0];
|
|
18892
|
-
mounting(
|
|
18902
|
+
mounting(React.createElement(DragDiv$1, _objectSpread2({}, currentGood)));
|
|
18893
18903
|
rowList.forEach(function (e) {
|
|
18894
18904
|
e.addEventListener('mousemove', onMousemove);
|
|
18895
18905
|
});
|
|
@@ -19050,7 +19060,7 @@ function Drag$2(props) {
|
|
|
19050
19060
|
|
|
19051
19061
|
|
|
19052
19062
|
function insert() {
|
|
19053
|
-
mounting(
|
|
19063
|
+
mounting(React.createElement(React.Fragment, null));
|
|
19054
19064
|
controller.run( /*#__PURE__*/function () {
|
|
19055
19065
|
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(s) {
|
|
19056
19066
|
var _s$goodsListState$dra, container, current, site, goodsList, goodsMap, _currentGood, currentIndex, moveGoods;
|
|
@@ -19129,7 +19139,7 @@ function Drag$2(props) {
|
|
|
19129
19139
|
}
|
|
19130
19140
|
}, [controller, record, disabled]);
|
|
19131
19141
|
var renderButton = React.useMemo(function () {
|
|
19132
|
-
return
|
|
19142
|
+
return React.createElement(Button, {
|
|
19133
19143
|
type: 'link',
|
|
19134
19144
|
style: {
|
|
19135
19145
|
padding: 0
|
|
@@ -19140,13 +19150,13 @@ function Drag$2(props) {
|
|
|
19140
19150
|
},
|
|
19141
19151
|
className: "kts-invoice-operate-goods-list-itemName-drag",
|
|
19142
19152
|
onMouseOver: controller.saveEditGood
|
|
19143
|
-
},
|
|
19153
|
+
}, React.createElement(Icon, {
|
|
19144
19154
|
component: SvgI001$1
|
|
19145
19155
|
}));
|
|
19146
19156
|
}, [onMouseDown, controller]);
|
|
19147
19157
|
|
|
19148
19158
|
if (disabled) {
|
|
19149
|
-
return
|
|
19159
|
+
return React.createElement(Popover, {
|
|
19150
19160
|
content: '您还有未编辑完成的商品',
|
|
19151
19161
|
trigger: 'focus'
|
|
19152
19162
|
}, renderButton);
|
|
@@ -19186,13 +19196,13 @@ function DragDiv$1(props) {
|
|
|
19186
19196
|
window.removeEventListener('mousemove', onMousemove);
|
|
19187
19197
|
};
|
|
19188
19198
|
});
|
|
19189
|
-
return
|
|
19199
|
+
return React.createElement("div", {
|
|
19190
19200
|
className: "kts-invoice-operate-goods-list-itemName-drag-div",
|
|
19191
19201
|
style: {
|
|
19192
19202
|
top: y,
|
|
19193
19203
|
left: x
|
|
19194
19204
|
}
|
|
19195
|
-
},
|
|
19205
|
+
}, React.createElement("span", null, props.itemName), React.createElement("span", null, props.itemModelName), React.createElement("span", null, props.unit));
|
|
19196
19206
|
}
|
|
19197
19207
|
|
|
19198
19208
|
var useColumns$1 = (function (form) {
|
|
@@ -19308,7 +19318,7 @@ var useColumns$1 = (function (form) {
|
|
|
19308
19318
|
width: 40,
|
|
19309
19319
|
align: 'center',
|
|
19310
19320
|
render: function render(_, record) {
|
|
19311
|
-
return
|
|
19321
|
+
return React.createElement(Drag$2, {
|
|
19312
19322
|
record: record
|
|
19313
19323
|
});
|
|
19314
19324
|
}
|
|
@@ -19318,20 +19328,20 @@ var useColumns$1 = (function (form) {
|
|
|
19318
19328
|
dataIndex: 'serialNo',
|
|
19319
19329
|
width: 50,
|
|
19320
19330
|
render: function render(e) {
|
|
19321
|
-
return
|
|
19331
|
+
return React.createElement("span", {
|
|
19322
19332
|
style: {
|
|
19323
19333
|
padding: '0 10px'
|
|
19324
19334
|
}
|
|
19325
19335
|
}, e);
|
|
19326
19336
|
}
|
|
19327
19337
|
}, {
|
|
19328
|
-
title:
|
|
19338
|
+
title: React.createElement(TitleText$1, {
|
|
19329
19339
|
required: true
|
|
19330
19340
|
}, "\u9879\u76EE\u540D\u79F0"),
|
|
19331
19341
|
key: 'itemName',
|
|
19332
19342
|
render: function render(_, record) {
|
|
19333
19343
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
19334
|
-
return
|
|
19344
|
+
return React.createElement(Form.Item, null, React.createElement("div", {
|
|
19335
19345
|
style: {
|
|
19336
19346
|
display: 'flex'
|
|
19337
19347
|
}
|
|
@@ -19378,11 +19388,11 @@ var useColumns$1 = (function (form) {
|
|
|
19378
19388
|
return validator;
|
|
19379
19389
|
}()
|
|
19380
19390
|
}])
|
|
19381
|
-
})(
|
|
19391
|
+
})(React.createElement(ItemNameInput$1, {
|
|
19382
19392
|
shorthand: editGood.shorthand,
|
|
19383
|
-
suffix:
|
|
19393
|
+
suffix: React.createElement(Tooltip$1, {
|
|
19384
19394
|
title: "\u70B9\u51FB\u4ECE\u5546\u54C1\u7BA1\u7406\u4E2D\u6DFB\u52A0\u5546\u54C1\u4FE1\u606F"
|
|
19385
|
-
},
|
|
19395
|
+
}, React.createElement(Button$1, {
|
|
19386
19396
|
type: "link",
|
|
19387
19397
|
style: {
|
|
19388
19398
|
padding: 0,
|
|
@@ -19390,7 +19400,7 @@ var useColumns$1 = (function (form) {
|
|
|
19390
19400
|
fontSize: 20,
|
|
19391
19401
|
fill: '#0074ff'
|
|
19392
19402
|
},
|
|
19393
|
-
icon:
|
|
19403
|
+
icon: React.createElement(SvgPlus$1, null),
|
|
19394
19404
|
onClick: controller.pipeline( /*#__PURE__*/function () {
|
|
19395
19405
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(s) {
|
|
19396
19406
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
@@ -19417,9 +19427,9 @@ var useColumns$1 = (function (form) {
|
|
|
19417
19427
|
}
|
|
19418
19428
|
}))));
|
|
19419
19429
|
} else {
|
|
19420
|
-
return
|
|
19430
|
+
return React.createElement("span", null, record.lineAttribute === LineAttributeType$1.折扣行 ? React.createElement("span", {
|
|
19421
19431
|
className: 'goods-list-digtal-discount-tag'
|
|
19422
|
-
}, "\u6298\u6263") :
|
|
19432
|
+
}, "\u6298\u6263") : React.createElement(React.Fragment, null), React.createElement(MyItemNameDiv$1, {
|
|
19423
19433
|
valueT: formatSearch$1(getItemNameWithShorthand({
|
|
19424
19434
|
shorthand: record.shorthand,
|
|
19425
19435
|
full: record.itemNameSelf || ''
|
|
@@ -19433,17 +19443,17 @@ var useColumns$1 = (function (form) {
|
|
|
19433
19443
|
}
|
|
19434
19444
|
}
|
|
19435
19445
|
}, {
|
|
19436
|
-
title:
|
|
19446
|
+
title: React.createElement(TitleText$1, {
|
|
19437
19447
|
rules: (_columnsReplenish$ite = columnsReplenish['itemModelName']) === null || _columnsReplenish$ite === void 0 ? void 0 : _columnsReplenish$ite.rules
|
|
19438
19448
|
}, "\u89C4\u683C\u578B\u53F7"),
|
|
19439
19449
|
key: 'itemModelName',
|
|
19440
19450
|
width: 119,
|
|
19441
19451
|
render: function render(_, record) {
|
|
19442
19452
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
19443
|
-
return
|
|
19453
|
+
return React.createElement(Form.Item, null, getFieldDecorator('itemModelName', {
|
|
19444
19454
|
initialValue: isMyShow ? editGood.itemModelNameSelf : editGood.itemModelName,
|
|
19445
19455
|
rules: getReplenishRules('itemModelName')
|
|
19446
|
-
})(
|
|
19456
|
+
})(React.createElement(MyInput$2, {
|
|
19447
19457
|
onChange: function () {
|
|
19448
19458
|
var _onChange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
19449
19459
|
var key, value;
|
|
@@ -19476,7 +19486,7 @@ var useColumns$1 = (function (form) {
|
|
|
19476
19486
|
}()
|
|
19477
19487
|
})));
|
|
19478
19488
|
} else {
|
|
19479
|
-
return
|
|
19489
|
+
return React.createElement(MyItemNameDiv$1, {
|
|
19480
19490
|
valueT: formatSearch$1(record.itemModelNameSelf, searchValue),
|
|
19481
19491
|
valueF: formatSearch$1(record.itemModelName, searchValue),
|
|
19482
19492
|
isMyShow: isMyShow
|
|
@@ -19484,17 +19494,17 @@ var useColumns$1 = (function (form) {
|
|
|
19484
19494
|
}
|
|
19485
19495
|
}
|
|
19486
19496
|
}, {
|
|
19487
|
-
title:
|
|
19497
|
+
title: React.createElement(TitleText$1, {
|
|
19488
19498
|
rules: (_columnsReplenish$uni = columnsReplenish['unit']) === null || _columnsReplenish$uni === void 0 ? void 0 : _columnsReplenish$uni.rules
|
|
19489
19499
|
}, "\u5355\u4F4D"),
|
|
19490
19500
|
key: 'unit',
|
|
19491
19501
|
width: 70,
|
|
19492
19502
|
render: function render(_, record) {
|
|
19493
19503
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
19494
|
-
return
|
|
19504
|
+
return React.createElement(Form.Item, null, getFieldDecorator('unit', {
|
|
19495
19505
|
initialValue: editGood.unit,
|
|
19496
19506
|
rules: getReplenishRules('unit')
|
|
19497
|
-
})(
|
|
19507
|
+
})(React.createElement(AutoComplete$1, {
|
|
19498
19508
|
style: {
|
|
19499
19509
|
width: '100%'
|
|
19500
19510
|
},
|
|
@@ -19532,7 +19542,7 @@ var useColumns$1 = (function (form) {
|
|
|
19532
19542
|
}()
|
|
19533
19543
|
})));
|
|
19534
19544
|
} else {
|
|
19535
|
-
return
|
|
19545
|
+
return React.createElement("span", {
|
|
19536
19546
|
style: {
|
|
19537
19547
|
padding: '0 10px'
|
|
19538
19548
|
}
|
|
@@ -19540,7 +19550,7 @@ var useColumns$1 = (function (form) {
|
|
|
19540
19550
|
}
|
|
19541
19551
|
}
|
|
19542
19552
|
}, {
|
|
19543
|
-
title:
|
|
19553
|
+
title: React.createElement(TitleText$1, {
|
|
19544
19554
|
rules: (_columnsReplenish$qua = columnsReplenish['quantity']) === null || _columnsReplenish$qua === void 0 ? void 0 : _columnsReplenish$qua.rules
|
|
19545
19555
|
}, "\u6570\u91CF"),
|
|
19546
19556
|
dataIndex: 'quantity',
|
|
@@ -19549,7 +19559,7 @@ var useColumns$1 = (function (form) {
|
|
|
19549
19559
|
width: 149,
|
|
19550
19560
|
render: function render(value, record) {
|
|
19551
19561
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
19552
|
-
return
|
|
19562
|
+
return React.createElement(Form.Item, null, getFieldDecorator('quantity', {
|
|
19553
19563
|
initialValue: editGood.quantity,
|
|
19554
19564
|
getValueFromEvent: onNumberValueChange,
|
|
19555
19565
|
rules: [].concat(_toConsumableArray(getReplenishRules('quantity')), [{
|
|
@@ -19595,7 +19605,7 @@ var useColumns$1 = (function (form) {
|
|
|
19595
19605
|
return validator;
|
|
19596
19606
|
}()
|
|
19597
19607
|
}])
|
|
19598
|
-
})(
|
|
19608
|
+
})(React.createElement(MyInput$2, {
|
|
19599
19609
|
style: {
|
|
19600
19610
|
textAlign: 'right'
|
|
19601
19611
|
},
|
|
@@ -19627,7 +19637,7 @@ var useColumns$1 = (function (form) {
|
|
|
19627
19637
|
}()
|
|
19628
19638
|
})));
|
|
19629
19639
|
} else {
|
|
19630
|
-
return
|
|
19640
|
+
return React.createElement("span", {
|
|
19631
19641
|
style: {
|
|
19632
19642
|
padding: '0 10px'
|
|
19633
19643
|
}
|
|
@@ -19635,7 +19645,7 @@ var useColumns$1 = (function (form) {
|
|
|
19635
19645
|
}
|
|
19636
19646
|
}
|
|
19637
19647
|
}, {
|
|
19638
|
-
title:
|
|
19648
|
+
title: React.createElement(TitleText$1, {
|
|
19639
19649
|
rules: (_columnsReplenish$pri = columnsReplenish['priceIncludeTax']) === null || _columnsReplenish$pri === void 0 ? void 0 : _columnsReplenish$pri.rules
|
|
19640
19650
|
}, "\u5355\u4EF7(\u542B\u7A0E)"),
|
|
19641
19651
|
dataIndex: 'priceIncludeTax',
|
|
@@ -19644,7 +19654,7 @@ var useColumns$1 = (function (form) {
|
|
|
19644
19654
|
width: 149,
|
|
19645
19655
|
render: function render(value, record) {
|
|
19646
19656
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
19647
|
-
return
|
|
19657
|
+
return React.createElement(Form.Item, null, getFieldDecorator('priceIncludeTax', {
|
|
19648
19658
|
initialValue: editGood.priceIncludeTax,
|
|
19649
19659
|
getValueFromEvent: onNumberValueChange,
|
|
19650
19660
|
rules: [].concat(_toConsumableArray(getReplenishRules('priceIncludeTax')), [{
|
|
@@ -19690,7 +19700,7 @@ var useColumns$1 = (function (form) {
|
|
|
19690
19700
|
return validator;
|
|
19691
19701
|
}()
|
|
19692
19702
|
}])
|
|
19693
|
-
})(
|
|
19703
|
+
})(React.createElement(MyInput$2, {
|
|
19694
19704
|
style: {
|
|
19695
19705
|
textAlign: 'right'
|
|
19696
19706
|
},
|
|
@@ -19702,7 +19712,7 @@ var useColumns$1 = (function (form) {
|
|
|
19702
19712
|
}
|
|
19703
19713
|
})));
|
|
19704
19714
|
} else {
|
|
19705
|
-
return
|
|
19715
|
+
return React.createElement("span", {
|
|
19706
19716
|
style: {
|
|
19707
19717
|
padding: '0 10px'
|
|
19708
19718
|
}
|
|
@@ -19710,7 +19720,7 @@ var useColumns$1 = (function (form) {
|
|
|
19710
19720
|
}
|
|
19711
19721
|
}
|
|
19712
19722
|
}, {
|
|
19713
|
-
title:
|
|
19723
|
+
title: React.createElement(TitleText$1, {
|
|
19714
19724
|
rules: (_columnsReplenish$pri2 = columnsReplenish['priceExcludeTax']) === null || _columnsReplenish$pri2 === void 0 ? void 0 : _columnsReplenish$pri2.rules
|
|
19715
19725
|
}, "\u5355\u4EF7(\u4E0D\u542B\u7A0E)"),
|
|
19716
19726
|
dataIndex: 'priceExcludeTax',
|
|
@@ -19719,7 +19729,7 @@ var useColumns$1 = (function (form) {
|
|
|
19719
19729
|
width: 149,
|
|
19720
19730
|
render: function render(value, record) {
|
|
19721
19731
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
19722
|
-
return
|
|
19732
|
+
return React.createElement(Form.Item, null, getFieldDecorator('priceExcludeTax', {
|
|
19723
19733
|
initialValue: editGood.priceExcludeTax,
|
|
19724
19734
|
getValueFromEvent: onNumberValueChange,
|
|
19725
19735
|
rules: [].concat(_toConsumableArray(getReplenishRules('priceExcludeTax')), [{
|
|
@@ -19765,7 +19775,7 @@ var useColumns$1 = (function (form) {
|
|
|
19765
19775
|
return validator;
|
|
19766
19776
|
}()
|
|
19767
19777
|
}])
|
|
19768
|
-
})(
|
|
19778
|
+
})(React.createElement(MyInput$2, {
|
|
19769
19779
|
style: {
|
|
19770
19780
|
textAlign: 'right'
|
|
19771
19781
|
},
|
|
@@ -19777,7 +19787,7 @@ var useColumns$1 = (function (form) {
|
|
|
19777
19787
|
}
|
|
19778
19788
|
})));
|
|
19779
19789
|
} else {
|
|
19780
|
-
return
|
|
19790
|
+
return React.createElement("span", {
|
|
19781
19791
|
style: {
|
|
19782
19792
|
padding: '0 10px'
|
|
19783
19793
|
}
|
|
@@ -19785,7 +19795,7 @@ var useColumns$1 = (function (form) {
|
|
|
19785
19795
|
}
|
|
19786
19796
|
}
|
|
19787
19797
|
}, {
|
|
19788
|
-
title:
|
|
19798
|
+
title: React.createElement(TitleText$1, {
|
|
19789
19799
|
required: true
|
|
19790
19800
|
}, "\u91D1\u989D(\u542B\u7A0E)"),
|
|
19791
19801
|
dataIndex: 'lineAmountIncludeTax',
|
|
@@ -19794,7 +19804,7 @@ var useColumns$1 = (function (form) {
|
|
|
19794
19804
|
align: 'right',
|
|
19795
19805
|
render: function render(value, record) {
|
|
19796
19806
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
19797
|
-
return
|
|
19807
|
+
return React.createElement(Form.Item, null, getFieldDecorator('lineAmountIncludeTax', {
|
|
19798
19808
|
initialValue: editGood.lineAmountIncludeTax,
|
|
19799
19809
|
getValueFromEvent: onNumberValueChange,
|
|
19800
19810
|
rules: [].concat(_toConsumableArray(getReplenishRules('lineAmountIncludeTax')), [{
|
|
@@ -19854,7 +19864,7 @@ var useColumns$1 = (function (form) {
|
|
|
19854
19864
|
return validator;
|
|
19855
19865
|
}()
|
|
19856
19866
|
}])
|
|
19857
|
-
})(
|
|
19867
|
+
})(React.createElement(MyInput$2, {
|
|
19858
19868
|
style: {
|
|
19859
19869
|
textAlign: 'right'
|
|
19860
19870
|
},
|
|
@@ -19865,7 +19875,7 @@ var useColumns$1 = (function (form) {
|
|
|
19865
19875
|
}
|
|
19866
19876
|
})));
|
|
19867
19877
|
} else {
|
|
19868
|
-
return
|
|
19878
|
+
return React.createElement("span", {
|
|
19869
19879
|
style: {
|
|
19870
19880
|
padding: '0 10px'
|
|
19871
19881
|
}
|
|
@@ -19873,7 +19883,7 @@ var useColumns$1 = (function (form) {
|
|
|
19873
19883
|
}
|
|
19874
19884
|
}
|
|
19875
19885
|
}, {
|
|
19876
|
-
title:
|
|
19886
|
+
title: React.createElement(TitleText$1, {
|
|
19877
19887
|
required: true
|
|
19878
19888
|
}, "\u91D1\u989D(\u4E0D\u542B\u7A0E)"),
|
|
19879
19889
|
dataIndex: 'lineAmountExcludeTax',
|
|
@@ -19882,7 +19892,7 @@ var useColumns$1 = (function (form) {
|
|
|
19882
19892
|
width: 119,
|
|
19883
19893
|
render: function render(value, record) {
|
|
19884
19894
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
19885
|
-
return
|
|
19895
|
+
return React.createElement(Form.Item, null, getFieldDecorator('lineAmountExcludeTax', {
|
|
19886
19896
|
initialValue: editGood.lineAmountExcludeTax,
|
|
19887
19897
|
getValueFromEvent: onNumberValueChange,
|
|
19888
19898
|
rules: [].concat(_toConsumableArray(getReplenishRules('lineAmountExcludeTax')), [{
|
|
@@ -19917,7 +19927,7 @@ var useColumns$1 = (function (form) {
|
|
|
19917
19927
|
return validator;
|
|
19918
19928
|
}()
|
|
19919
19929
|
}])
|
|
19920
|
-
})(
|
|
19930
|
+
})(React.createElement(MyInput$2, {
|
|
19921
19931
|
style: {
|
|
19922
19932
|
textAlign: 'right'
|
|
19923
19933
|
},
|
|
@@ -19928,7 +19938,7 @@ var useColumns$1 = (function (form) {
|
|
|
19928
19938
|
}
|
|
19929
19939
|
})));
|
|
19930
19940
|
} else {
|
|
19931
|
-
return
|
|
19941
|
+
return React.createElement("span", {
|
|
19932
19942
|
style: {
|
|
19933
19943
|
padding: '0 10px'
|
|
19934
19944
|
}
|
|
@@ -19936,7 +19946,7 @@ var useColumns$1 = (function (form) {
|
|
|
19936
19946
|
}
|
|
19937
19947
|
}
|
|
19938
19948
|
}, {
|
|
19939
|
-
title:
|
|
19949
|
+
title: React.createElement(TitleText$1, {
|
|
19940
19950
|
required: true
|
|
19941
19951
|
}, "\u7A0E\u7387%"),
|
|
19942
19952
|
dataIndex: 'taxRate',
|
|
@@ -19945,7 +19955,7 @@ var useColumns$1 = (function (form) {
|
|
|
19945
19955
|
width: 70,
|
|
19946
19956
|
render: function render(value, record) {
|
|
19947
19957
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
19948
|
-
return
|
|
19958
|
+
return React.createElement(Form.Item, null, getFieldDecorator('taxRate', {
|
|
19949
19959
|
initialValue: editGood.taxRate,
|
|
19950
19960
|
rules: [].concat(_toConsumableArray(getReplenishRules('taxRate')), [{
|
|
19951
19961
|
required: true,
|
|
@@ -19954,7 +19964,7 @@ var useColumns$1 = (function (form) {
|
|
|
19954
19964
|
pattern: /^[+-]?(0|([1-9]\d*))(\.\d+)?$/,
|
|
19955
19965
|
message: ' '
|
|
19956
19966
|
}])
|
|
19957
|
-
})(
|
|
19967
|
+
})(React.createElement(Select$1, {
|
|
19958
19968
|
className: "kts-invoice-operate-goods-list-table-tax-rate",
|
|
19959
19969
|
// dropdownMenuStyle={{ textAlign: "right" }}
|
|
19960
19970
|
showArrow: false,
|
|
@@ -19966,13 +19976,13 @@ var useColumns$1 = (function (form) {
|
|
|
19966
19976
|
onChangeTaxRate$1(controller, form, record);
|
|
19967
19977
|
}
|
|
19968
19978
|
}, taxRateList.map(function (e, i) {
|
|
19969
|
-
return
|
|
19979
|
+
return React.createElement(Select$1.Option, {
|
|
19970
19980
|
key: i,
|
|
19971
19981
|
value: e
|
|
19972
19982
|
}, e, "%");
|
|
19973
19983
|
}))));
|
|
19974
19984
|
} else {
|
|
19975
|
-
return
|
|
19985
|
+
return React.createElement("span", {
|
|
19976
19986
|
style: {
|
|
19977
19987
|
padding: '0 10px'
|
|
19978
19988
|
}
|
|
@@ -19980,7 +19990,7 @@ var useColumns$1 = (function (form) {
|
|
|
19980
19990
|
}
|
|
19981
19991
|
}
|
|
19982
19992
|
}, {
|
|
19983
|
-
title:
|
|
19993
|
+
title: React.createElement(TitleText$1, {
|
|
19984
19994
|
rules: (_columnsReplenish$tax = columnsReplenish['taxAmount']) === null || _columnsReplenish$tax === void 0 ? void 0 : _columnsReplenish$tax.rules
|
|
19985
19995
|
}, "\u7A0E\u989D"),
|
|
19986
19996
|
dataIndex: 'taxAmount',
|
|
@@ -19992,11 +20002,11 @@ var useColumns$1 = (function (form) {
|
|
|
19992
20002
|
return getFieldDecorator('taxAmount', {
|
|
19993
20003
|
initialValue: editGood.taxAmount,
|
|
19994
20004
|
rules: getReplenishRules('taxAmount')
|
|
19995
|
-
})(
|
|
20005
|
+
})(React.createElement(MyDiv$2, {
|
|
19996
20006
|
loading: isCipher$1(changeField, 'taxAmount')
|
|
19997
20007
|
}));
|
|
19998
20008
|
} else {
|
|
19999
|
-
return
|
|
20009
|
+
return React.createElement("span", {
|
|
20000
20010
|
style: {
|
|
20001
20011
|
padding: '0 10px'
|
|
20002
20012
|
}
|
|
@@ -20063,13 +20073,13 @@ var MyInput$2 = /*#__PURE__*/function (_React$Component) {
|
|
|
20063
20073
|
key: "render",
|
|
20064
20074
|
value: function render() {
|
|
20065
20075
|
if (this.props.loading) {
|
|
20066
|
-
return
|
|
20076
|
+
return React.createElement(Spin$1, {
|
|
20067
20077
|
size: "small"
|
|
20068
|
-
},
|
|
20078
|
+
}, React.createElement(Input$1, _objectSpread2(_objectSpread2({}, this.props), {}, {
|
|
20069
20079
|
autoComplete: "off"
|
|
20070
20080
|
})));
|
|
20071
20081
|
} else {
|
|
20072
|
-
return
|
|
20082
|
+
return React.createElement(Input$1, _objectSpread2(_objectSpread2({}, this.props), {}, {
|
|
20073
20083
|
autoComplete: "off"
|
|
20074
20084
|
}));
|
|
20075
20085
|
}
|
|
@@ -20094,15 +20104,15 @@ var MyDiv$2 = /*#__PURE__*/function (_React$Component2) {
|
|
|
20094
20104
|
key: "render",
|
|
20095
20105
|
value: function render() {
|
|
20096
20106
|
if (this.props.loading) {
|
|
20097
|
-
return
|
|
20107
|
+
return React.createElement(Spin$1, {
|
|
20098
20108
|
size: "small"
|
|
20099
|
-
},
|
|
20109
|
+
}, React.createElement("span", {
|
|
20100
20110
|
style: {
|
|
20101
20111
|
padding: '0 10px'
|
|
20102
20112
|
}
|
|
20103
20113
|
}, this.props.value));
|
|
20104
20114
|
} else {
|
|
20105
|
-
return
|
|
20115
|
+
return React.createElement("span", {
|
|
20106
20116
|
style: {
|
|
20107
20117
|
padding: '0 10px'
|
|
20108
20118
|
}
|
|
@@ -20135,18 +20145,18 @@ var MyItemNameDiv$1 = /*#__PURE__*/function (_React$Component3) {
|
|
|
20135
20145
|
|
|
20136
20146
|
if (isMyShow) {
|
|
20137
20147
|
if (valueT) {
|
|
20138
|
-
return
|
|
20148
|
+
return React.createElement(Tooltip$1, {
|
|
20139
20149
|
title: valueT
|
|
20140
|
-
},
|
|
20150
|
+
}, React.createElement("span", {
|
|
20141
20151
|
style: {
|
|
20142
20152
|
padding: '0 10px',
|
|
20143
20153
|
color: '#0074ff'
|
|
20144
20154
|
}
|
|
20145
20155
|
}, valueT));
|
|
20146
20156
|
} else {
|
|
20147
|
-
return
|
|
20157
|
+
return React.createElement(Tooltip$1, {
|
|
20148
20158
|
title: valueF
|
|
20149
|
-
},
|
|
20159
|
+
}, React.createElement("span", {
|
|
20150
20160
|
style: {
|
|
20151
20161
|
padding: '0 10px'
|
|
20152
20162
|
}
|
|
@@ -20154,17 +20164,17 @@ var MyItemNameDiv$1 = /*#__PURE__*/function (_React$Component3) {
|
|
|
20154
20164
|
}
|
|
20155
20165
|
} else {
|
|
20156
20166
|
if (valueF) {
|
|
20157
|
-
return
|
|
20167
|
+
return React.createElement(Tooltip$1, {
|
|
20158
20168
|
title: valueF
|
|
20159
|
-
},
|
|
20169
|
+
}, React.createElement("span", {
|
|
20160
20170
|
style: {
|
|
20161
20171
|
padding: '0 10px'
|
|
20162
20172
|
}
|
|
20163
20173
|
}, valueF));
|
|
20164
20174
|
} else {
|
|
20165
|
-
return
|
|
20175
|
+
return React.createElement(Tooltip$1, {
|
|
20166
20176
|
title: valueT
|
|
20167
|
-
},
|
|
20177
|
+
}, React.createElement("span", {
|
|
20168
20178
|
style: {
|
|
20169
20179
|
padding: '0 10px',
|
|
20170
20180
|
color: '#0074ff'
|
|
@@ -20187,7 +20197,7 @@ function formatSearch$1(value, search) {
|
|
|
20187
20197
|
return dcoding$1(e);
|
|
20188
20198
|
}).join("<span class=\"kts-invoice-operate-goods-list-table-search-protrude\" >".concat(search, "</span>"));
|
|
20189
20199
|
|
|
20190
|
-
return
|
|
20200
|
+
return React.createElement("span", {
|
|
20191
20201
|
dangerouslySetInnerHTML: {
|
|
20192
20202
|
__html: __html
|
|
20193
20203
|
}
|
|
@@ -20566,7 +20576,7 @@ var useRowSelection$1 = (function () {
|
|
|
20566
20576
|
};
|
|
20567
20577
|
}(), [controller]);
|
|
20568
20578
|
var columnTitle = React.useMemo(function () {
|
|
20569
|
-
return
|
|
20579
|
+
return React.createElement(Checkbox, {
|
|
20570
20580
|
onChange: onClickSelectAll,
|
|
20571
20581
|
indeterminate: indeterminate,
|
|
20572
20582
|
checked: isAll
|
|
@@ -20715,19 +20725,19 @@ var useDelRowButton$1 = (function () {
|
|
|
20715
20725
|
}, _callee2);
|
|
20716
20726
|
})), []);
|
|
20717
20727
|
var menuItem = React.useMemo(function () {
|
|
20718
|
-
if (model === 'prefab') return
|
|
20719
|
-
if (model === 'readOnly') return
|
|
20720
|
-
return
|
|
20728
|
+
if (model === 'prefab') return React.createElement(React.Fragment, null);
|
|
20729
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
20730
|
+
return React.createElement(Menu$1.Item, {
|
|
20721
20731
|
key: "1",
|
|
20722
20732
|
onClick: onClick,
|
|
20723
20733
|
disabled: disabled
|
|
20724
20734
|
}, " \u5220\u9664\u884C ");
|
|
20725
20735
|
}, [model, onClick, disabled]);
|
|
20726
20736
|
var button = React.useMemo(function () {
|
|
20727
|
-
if (isRemRow === false) return
|
|
20728
|
-
if (model === 'prefab') return
|
|
20729
|
-
if (model === 'readOnly') return
|
|
20730
|
-
return
|
|
20737
|
+
if (isRemRow === false) return React.createElement(React.Fragment, null);
|
|
20738
|
+
if (model === 'prefab') return React.createElement(React.Fragment, null);
|
|
20739
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
20740
|
+
return React.createElement(Button$1, {
|
|
20731
20741
|
size: 'small',
|
|
20732
20742
|
onClick: onClick,
|
|
20733
20743
|
disabled: disabled
|
|
@@ -20958,16 +20968,16 @@ var useAddDiscountRowButton$1 = (function () {
|
|
|
20958
20968
|
}, [isAddDiscount, model]);
|
|
20959
20969
|
var button = React.useMemo(function () {
|
|
20960
20970
|
if (isEnable) {
|
|
20961
|
-
return
|
|
20971
|
+
return React.createElement(React.Fragment, null, React.createElement(Button$1, {
|
|
20962
20972
|
size: 'small',
|
|
20963
20973
|
onClick: onOpen,
|
|
20964
20974
|
disabled: disabled
|
|
20965
|
-
}, "\u6DFB\u52A0\u6298\u6263"),
|
|
20975
|
+
}, "\u6DFB\u52A0\u6298\u6263"), React.createElement(AddDiscountRowDrawer, {
|
|
20966
20976
|
open: open,
|
|
20967
20977
|
onClose: onClose
|
|
20968
20978
|
}));
|
|
20969
20979
|
} else {
|
|
20970
|
-
return
|
|
20980
|
+
return React.createElement(React.Fragment, null);
|
|
20971
20981
|
}
|
|
20972
20982
|
}, [open, onOpen, onClose, isEnable, disabled]);
|
|
20973
20983
|
return {
|
|
@@ -21148,35 +21158,35 @@ function AddDiscountRowDrawer(props) {
|
|
|
21148
21158
|
discolineValue: undefined
|
|
21149
21159
|
}));
|
|
21150
21160
|
}, [formValues === null || formValues === void 0 ? void 0 : formValues.discolineType]);
|
|
21151
|
-
return
|
|
21161
|
+
return React.createElement(Drawer$1, {
|
|
21152
21162
|
title: "\u6DFB\u52A0\u6298\u6263",
|
|
21153
21163
|
placement: "right",
|
|
21154
21164
|
width: 350,
|
|
21155
21165
|
onClose: onClose,
|
|
21156
21166
|
open: open,
|
|
21157
|
-
footer:
|
|
21167
|
+
footer: React.createElement(Space, {
|
|
21158
21168
|
size: "middle",
|
|
21159
21169
|
style: {
|
|
21160
21170
|
display: 'flex',
|
|
21161
21171
|
justifyContent: 'end'
|
|
21162
21172
|
}
|
|
21163
|
-
},
|
|
21173
|
+
}, React.createElement(Button$1, {
|
|
21164
21174
|
onClick: onDefine,
|
|
21165
21175
|
type: 'primary'
|
|
21166
|
-
}, "\u786E\u5B9A"),
|
|
21176
|
+
}, "\u786E\u5B9A"), React.createElement(Button$1, {
|
|
21167
21177
|
onClick: onClose
|
|
21168
21178
|
}, "\u53D6\u6D88"))
|
|
21169
|
-
},
|
|
21179
|
+
}, React.createElement(Form$1, {
|
|
21170
21180
|
form: form,
|
|
21171
21181
|
layout: 'vertical',
|
|
21172
21182
|
onChange: onChangeForm
|
|
21173
|
-
},
|
|
21183
|
+
}, React.createElement(Form$1.Item, {
|
|
21174
21184
|
label: "\u5546\u54C1\u91D1\u989D\uFF08\u542B\u7A0E\uFF09"
|
|
21175
|
-
}, totalAmount.toFixed(2), "\uFF08\u5171 ", discountGood.length, " \u884C\uFF09"),
|
|
21185
|
+
}, totalAmount.toFixed(2), "\uFF08\u5171 ", discountGood.length, " \u884C\uFF09"), React.createElement(Form$1.Item, {
|
|
21176
21186
|
label: "\u6298\u6263\u65B9\u5F0F",
|
|
21177
21187
|
name: 'discolineType',
|
|
21178
21188
|
initialValue: '1'
|
|
21179
|
-
},
|
|
21189
|
+
}, React.createElement(Radio.Group, {
|
|
21180
21190
|
options: [{
|
|
21181
21191
|
label: '按金额折扣',
|
|
21182
21192
|
value: '1'
|
|
@@ -21184,7 +21194,7 @@ function AddDiscountRowDrawer(props) {
|
|
|
21184
21194
|
label: '按比例折扣',
|
|
21185
21195
|
value: '2'
|
|
21186
21196
|
}]
|
|
21187
|
-
})), (formValues === null || formValues === void 0 ? void 0 : formValues.discolineType) === '1' ?
|
|
21197
|
+
})), (formValues === null || formValues === void 0 ? void 0 : formValues.discolineType) === '1' ? React.createElement(Form$1.Item, {
|
|
21188
21198
|
label: "\u6298\u6263\u91D1\u989D\uFF08\u5143\uFF09\uFF08\u542B\u7A0E\uFF09",
|
|
21189
21199
|
name: 'discolineValue',
|
|
21190
21200
|
rules: [{
|
|
@@ -21235,11 +21245,11 @@ function AddDiscountRowDrawer(props) {
|
|
|
21235
21245
|
return validator;
|
|
21236
21246
|
}()
|
|
21237
21247
|
}]
|
|
21238
|
-
},
|
|
21248
|
+
}, React.createElement(InputNumber, {
|
|
21239
21249
|
style: {
|
|
21240
21250
|
width: '100%'
|
|
21241
21251
|
}
|
|
21242
|
-
})) :
|
|
21252
|
+
})) : React.createElement(Form$1.Item, {
|
|
21243
21253
|
label: "\u6298\u6263\u6BD4\u4F8B\uFF08%\uFF09\uFF08\u542B\u7A0E\uFF09",
|
|
21244
21254
|
name: 'discolineValue',
|
|
21245
21255
|
rules: [{
|
|
@@ -21290,7 +21300,7 @@ function AddDiscountRowDrawer(props) {
|
|
|
21290
21300
|
return validator;
|
|
21291
21301
|
}()
|
|
21292
21302
|
}]
|
|
21293
|
-
},
|
|
21303
|
+
}, React.createElement(InputNumber, {
|
|
21294
21304
|
style: {
|
|
21295
21305
|
width: '100%'
|
|
21296
21306
|
}
|
|
@@ -21434,16 +21444,16 @@ var useEndowCodeButton$1 = (function () {
|
|
|
21434
21444
|
}, _callee2);
|
|
21435
21445
|
})), [controller]);
|
|
21436
21446
|
var menuItem = React.useMemo(function () {
|
|
21437
|
-
if (model === 'readOnly') return
|
|
21438
|
-
return
|
|
21447
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
21448
|
+
return React.createElement(Menu$1.Item, {
|
|
21439
21449
|
key: "2",
|
|
21440
21450
|
onClick: onClick,
|
|
21441
21451
|
disabled: disabled
|
|
21442
21452
|
}, "\u6279\u91CF\u8D4B\u7801");
|
|
21443
21453
|
}, [onClick, disabled, model]);
|
|
21444
21454
|
var button = React.useMemo(function () {
|
|
21445
|
-
if (model === 'readOnly') return
|
|
21446
|
-
return
|
|
21455
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
21456
|
+
return React.createElement(Button$1, {
|
|
21447
21457
|
onClick: onClick,
|
|
21448
21458
|
disabled: disabled,
|
|
21449
21459
|
size: 'small'
|
|
@@ -21503,14 +21513,14 @@ var useEmptyRefill = (function () {
|
|
|
21503
21513
|
}());
|
|
21504
21514
|
}, [controller]);
|
|
21505
21515
|
var button = React.useMemo(function () {
|
|
21506
|
-
if (model === 'readOnly') return
|
|
21507
|
-
if (model === 'prefab') return
|
|
21508
|
-
return
|
|
21516
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
21517
|
+
if (model === 'prefab') return React.createElement(React.Fragment, null);
|
|
21518
|
+
return React.createElement(Popconfirm, {
|
|
21509
21519
|
title: "\u5C06\u8981\u6E05\u7A7A\u6240\u6709\u9879\u76EE\u4FE1\u606F\uFF0C\u662F\u5426\u7EE7\u7EED",
|
|
21510
21520
|
onConfirm: confirm,
|
|
21511
21521
|
okText: "\u786E\u5B9A",
|
|
21512
21522
|
cancelText: "\u53D6\u6D88"
|
|
21513
|
-
},
|
|
21523
|
+
}, React.createElement(Button$1, {
|
|
21514
21524
|
size: 'small'
|
|
21515
21525
|
}, "\u6E05\u7A7A\u91CD\u586B"));
|
|
21516
21526
|
}, [model, confirm]);
|
|
@@ -21577,14 +21587,14 @@ function InvoiceTypeModal(props) {
|
|
|
21577
21587
|
setValues(values);
|
|
21578
21588
|
}
|
|
21579
21589
|
}, [props.open, props.defaultBillingType, props.defaultBusiness, props.defaultInvoiceType, form]);
|
|
21580
|
-
return
|
|
21590
|
+
return React.createElement(Modal, {
|
|
21581
21591
|
title: props.modalTitle || "选择开具信息",
|
|
21582
21592
|
open: props.open,
|
|
21583
21593
|
onOk: onConfirm,
|
|
21584
21594
|
onCancel: props.onCancel,
|
|
21585
21595
|
okText: "\u786E\u5B9A",
|
|
21586
21596
|
cancelText: "\u53D6\u6D88"
|
|
21587
|
-
},
|
|
21597
|
+
}, React.createElement(Form$1, {
|
|
21588
21598
|
form: form,
|
|
21589
21599
|
layout: "vertical",
|
|
21590
21600
|
style: {
|
|
@@ -21593,13 +21603,13 @@ function InvoiceTypeModal(props) {
|
|
|
21593
21603
|
onValuesChange: function onValuesChange(_, e) {
|
|
21594
21604
|
setValues(e);
|
|
21595
21605
|
}
|
|
21596
|
-
},
|
|
21606
|
+
}, React.createElement(Row, {
|
|
21597
21607
|
gutter: [16, 16]
|
|
21598
|
-
},
|
|
21608
|
+
}, React.createElement(Col, {
|
|
21599
21609
|
span: 24
|
|
21600
|
-
},
|
|
21610
|
+
}, React.createElement(Form$1.Item, {
|
|
21601
21611
|
name: 'billingType'
|
|
21602
|
-
},
|
|
21612
|
+
}, React.createElement(Radio.Group, {
|
|
21603
21613
|
size: 'large',
|
|
21604
21614
|
className: "goods-list-digtal-reselect-invoice-typeModal-radio",
|
|
21605
21615
|
optionType: "button",
|
|
@@ -21612,27 +21622,27 @@ function InvoiceTypeModal(props) {
|
|
|
21612
21622
|
label: '税控发票',
|
|
21613
21623
|
value: 'taxation'
|
|
21614
21624
|
}]
|
|
21615
|
-
}))),
|
|
21625
|
+
}))), React.createElement(Col, {
|
|
21616
21626
|
span: 12
|
|
21617
|
-
},
|
|
21627
|
+
}, React.createElement(Form$1.Item, {
|
|
21618
21628
|
name: 'invoiceType',
|
|
21619
21629
|
label: "\u9009\u62E9\u7968\u7C7B",
|
|
21620
21630
|
rules: [{
|
|
21621
21631
|
required: true,
|
|
21622
21632
|
message: '选择票类必填'
|
|
21623
21633
|
}]
|
|
21624
|
-
},
|
|
21634
|
+
}, React.createElement(Select$1, {
|
|
21625
21635
|
size: 'large',
|
|
21626
21636
|
allowClear: true,
|
|
21627
21637
|
placeholder: "\u8BF7\u9009\u62E9\uFF08\u5FC5\u586B\u9879\uFF09",
|
|
21628
21638
|
disabled: disableds.indexOf('invoiceType') >= 0,
|
|
21629
21639
|
options: props.invoiceTypeOptions
|
|
21630
|
-
}))),
|
|
21640
|
+
}))), React.createElement(Col, {
|
|
21631
21641
|
span: 12
|
|
21632
|
-
},
|
|
21642
|
+
}, React.createElement(Form$1.Item, {
|
|
21633
21643
|
name: 'business',
|
|
21634
21644
|
label: "\u7279\u5B9A\u4E1A\u52A1"
|
|
21635
|
-
},
|
|
21645
|
+
}, React.createElement(Select$1, {
|
|
21636
21646
|
size: 'large',
|
|
21637
21647
|
allowClear: true,
|
|
21638
21648
|
placeholder: "\u8BF7\u9009\u62E9\uFF08\u975E\u5FC5\u586B\u9879\uFF09",
|
|
@@ -21677,11 +21687,11 @@ var useReselectInvoiceType = (function () {
|
|
|
21677
21687
|
return true;
|
|
21678
21688
|
}, [model, typeModalProps === null || typeModalProps === void 0 ? void 0 : typeModalProps.isDisabled]);
|
|
21679
21689
|
var button = React.useMemo(function () {
|
|
21680
|
-
if (isEnable === false) return
|
|
21681
|
-
return
|
|
21690
|
+
if (isEnable === false) return React.createElement(React.Fragment, null);
|
|
21691
|
+
return React.createElement(React.Fragment, null, React.createElement(Button$1, {
|
|
21682
21692
|
size: 'small',
|
|
21683
21693
|
onClick: onOpen
|
|
21684
|
-
}, "\u91CD\u9009\u53D1\u7968\u7C7B\u578B"),
|
|
21694
|
+
}, "\u91CD\u9009\u53D1\u7968\u7C7B\u578B"), React.createElement(InvoiceTypeModal, _objectSpread2(_objectSpread2({}, typeModalProps), {}, {
|
|
21685
21695
|
open: open,
|
|
21686
21696
|
onCancel: onClose,
|
|
21687
21697
|
onOk: onOk
|
|
@@ -21709,7 +21719,7 @@ var GoodsList$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
21709
21719
|
_createClass(GoodsList, [{
|
|
21710
21720
|
key: "render",
|
|
21711
21721
|
value: function render() {
|
|
21712
|
-
return
|
|
21722
|
+
return React.createElement(Main$3, _objectSpread2({}, this.props));
|
|
21713
21723
|
}
|
|
21714
21724
|
}]);
|
|
21715
21725
|
|
|
@@ -21910,20 +21920,20 @@ var Main$3 = decorator(Form.create())(function (props) {
|
|
|
21910
21920
|
};
|
|
21911
21921
|
}())();
|
|
21912
21922
|
}, [controller, props.isSwitchTax]);
|
|
21913
|
-
return
|
|
21923
|
+
return React.createElement("div", {
|
|
21914
21924
|
className: "kts-invoice-operate-goods-list-digtal",
|
|
21915
21925
|
onClick: function onClick(e) {
|
|
21916
21926
|
e.stopPropagation();
|
|
21917
21927
|
}
|
|
21918
|
-
},
|
|
21928
|
+
}, React.createElement("div", {
|
|
21919
21929
|
className: "kts-invoice-operate-goods-list-able"
|
|
21920
|
-
},
|
|
21930
|
+
}, React.createElement(AddRowButton$1, null), delRowButton.button, addDiscountRowButton.button, endowCodeButton.button, React.createElement(TaxIncludedSwitch$1, null), React.createElement(Search$1, null), React.createElement("div", {
|
|
21921
21931
|
style: {
|
|
21922
21932
|
flex: 1
|
|
21923
21933
|
}
|
|
21924
|
-
}), props.menuExpansion, reselectInvoiceType.button, emptyRefill.button),
|
|
21934
|
+
}), props.menuExpansion, reselectInvoiceType.button, emptyRefill.button), React.createElement("div", {
|
|
21925
21935
|
className: classNames('kts-invoice-operate-goods-list-table-digtal')
|
|
21926
|
-
},
|
|
21936
|
+
}, React.createElement(TableVirtual$1, {
|
|
21927
21937
|
size: "small",
|
|
21928
21938
|
rowKey: "$index",
|
|
21929
21939
|
pagination: false,
|
|
@@ -21945,7 +21955,7 @@ var Main$3 = decorator(Form.create())(function (props) {
|
|
|
21945
21955
|
}
|
|
21946
21956
|
};
|
|
21947
21957
|
}
|
|
21948
|
-
})),
|
|
21958
|
+
})), React.createElement("div", null, React.createElement(Statistics$1, null)));
|
|
21949
21959
|
});
|
|
21950
21960
|
|
|
21951
21961
|
var ImportBuyerDrawer = (function () {
|
|
@@ -21979,7 +21989,7 @@ var ImportBuyerDrawer = (function () {
|
|
|
21979
21989
|
};
|
|
21980
21990
|
}())();
|
|
21981
21991
|
}, [controller]);
|
|
21982
|
-
return
|
|
21992
|
+
return React.createElement(Drawer, {
|
|
21983
21993
|
title: "\u8D2D\u65B9\u5217\u8868",
|
|
21984
21994
|
placement: "right",
|
|
21985
21995
|
// closable={false}
|
|
@@ -21987,7 +21997,7 @@ var ImportBuyerDrawer = (function () {
|
|
|
21987
21997
|
width: 983,
|
|
21988
21998
|
onClose: onClose,
|
|
21989
21999
|
visible: visible
|
|
21990
|
-
}, topExpand,
|
|
22000
|
+
}, topExpand, React.createElement(DrawerBody$1, null));
|
|
21991
22001
|
});
|
|
21992
22002
|
|
|
21993
22003
|
var DrawerBody$1 = function DrawerBody() {
|
|
@@ -22008,7 +22018,7 @@ var DrawerBody$1 = function DrawerBody() {
|
|
|
22008
22018
|
}
|
|
22009
22019
|
});
|
|
22010
22020
|
}, [controller]);
|
|
22011
|
-
return
|
|
22021
|
+
return React.createElement(Table$1, {
|
|
22012
22022
|
bordered: true,
|
|
22013
22023
|
size: "small",
|
|
22014
22024
|
columns: columns,
|
|
@@ -22108,7 +22118,7 @@ var ImportGoodsDrawer = (function () {
|
|
|
22108
22118
|
};
|
|
22109
22119
|
}())();
|
|
22110
22120
|
}, [controller]);
|
|
22111
|
-
return
|
|
22121
|
+
return React.createElement(Drawer, {
|
|
22112
22122
|
title: "\u5546\u54C1\u5217\u8868",
|
|
22113
22123
|
placement: "right",
|
|
22114
22124
|
// closable={false}
|
|
@@ -22116,11 +22126,11 @@ var ImportGoodsDrawer = (function () {
|
|
|
22116
22126
|
width: 983,
|
|
22117
22127
|
onClose: onClose,
|
|
22118
22128
|
visible: visible
|
|
22119
|
-
}, topExpand &&
|
|
22129
|
+
}, topExpand && React.createElement("div", {
|
|
22120
22130
|
style: {
|
|
22121
22131
|
marginBottom: 10
|
|
22122
22132
|
}
|
|
22123
|
-
}, topExpand),
|
|
22133
|
+
}, topExpand), React.createElement(DrawerBody$2, null));
|
|
22124
22134
|
});
|
|
22125
22135
|
|
|
22126
22136
|
var DrawerBody$2 = function DrawerBody() {
|
|
@@ -22142,7 +22152,7 @@ var DrawerBody$2 = function DrawerBody() {
|
|
|
22142
22152
|
}
|
|
22143
22153
|
});
|
|
22144
22154
|
}, [controller]);
|
|
22145
|
-
return
|
|
22155
|
+
return React.createElement(Table$1, {
|
|
22146
22156
|
bordered: true,
|
|
22147
22157
|
size: "small",
|
|
22148
22158
|
columns: columns,
|
|
@@ -22434,7 +22444,7 @@ var EndowCodeDrawer = (function () {
|
|
|
22434
22444
|
setDefaultValue(undefined);
|
|
22435
22445
|
}
|
|
22436
22446
|
}, [visible]);
|
|
22437
|
-
return
|
|
22447
|
+
return React.createElement(Drawer, {
|
|
22438
22448
|
title: "\u8D4B\u7801",
|
|
22439
22449
|
placement: "right",
|
|
22440
22450
|
destroyOnClose: true,
|
|
@@ -22442,7 +22452,7 @@ var EndowCodeDrawer = (function () {
|
|
|
22442
22452
|
width: 383,
|
|
22443
22453
|
onClose: onClose,
|
|
22444
22454
|
visible: visible
|
|
22445
|
-
}, defaultValue &&
|
|
22455
|
+
}, defaultValue && React.createElement(DrawerBody$3, {
|
|
22446
22456
|
defaultValue: defaultValue
|
|
22447
22457
|
}));
|
|
22448
22458
|
});
|
|
@@ -22599,7 +22609,7 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
22599
22609
|
};
|
|
22600
22610
|
}());
|
|
22601
22611
|
}, [actions, dataSource, readOnlyTaxRate]);
|
|
22602
|
-
return
|
|
22612
|
+
return React.createElement(Select, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
22603
22613
|
showSearch: true,
|
|
22604
22614
|
showArrow: false,
|
|
22605
22615
|
notFoundContent: null,
|
|
@@ -22607,7 +22617,7 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
22607
22617
|
onSearch: onSearch,
|
|
22608
22618
|
onChange: onChange
|
|
22609
22619
|
}), dataSource.map(function (e) {
|
|
22610
|
-
return
|
|
22620
|
+
return React.createElement(Select.Option, {
|
|
22611
22621
|
key: e.value,
|
|
22612
22622
|
value: e.value
|
|
22613
22623
|
}, e.label);
|
|
@@ -22637,14 +22647,14 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
22637
22647
|
|
|
22638
22648
|
|
|
22639
22649
|
var createTreeNode = React.useCallback(function () {
|
|
22640
|
-
if (!list) return
|
|
22650
|
+
if (!list) return React.createElement(React.Fragment, null);
|
|
22641
22651
|
return ctn(list);
|
|
22642
22652
|
|
|
22643
22653
|
function title(label) {
|
|
22644
22654
|
if (!filter) return label;
|
|
22645
22655
|
label = (filter.taxCategoryCode ? label.split(new RegExp(filter.taxCategoryCode, 'g')) : [label]).join("<span style=\"color: #1890ff;\">".concat(filter.taxCategoryCode, "</span>"));
|
|
22646
22656
|
label = (filter.val ? label.split(new RegExp(filter.val, 'g')) : [label]).join("<span style=\"color: #1890ff;\">".concat(filter.val, "</span>"));
|
|
22647
|
-
return
|
|
22657
|
+
return React.createElement("span", {
|
|
22648
22658
|
dangerouslySetInnerHTML: {
|
|
22649
22659
|
__html: label
|
|
22650
22660
|
}
|
|
@@ -22653,11 +22663,11 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
22653
22663
|
|
|
22654
22664
|
function ctn(l) {
|
|
22655
22665
|
var p = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '0';
|
|
22656
|
-
if (!l || !l.length) return [
|
|
22666
|
+
if (!l || !l.length) return [React.createElement(React.Fragment, null)];
|
|
22657
22667
|
return l.filter(function (e) {
|
|
22658
22668
|
return e.pid === p;
|
|
22659
22669
|
}).map(function (e) {
|
|
22660
|
-
return
|
|
22670
|
+
return React.createElement(TreeNode, {
|
|
22661
22671
|
title: title(e.label),
|
|
22662
22672
|
key: e.id
|
|
22663
22673
|
}, ctn(l, e.id));
|
|
@@ -22787,46 +22797,46 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
22787
22797
|
setList([]);
|
|
22788
22798
|
}
|
|
22789
22799
|
}, [visible]);
|
|
22790
|
-
return
|
|
22800
|
+
return React.createElement(React.Fragment, null, React.createElement(Input, {
|
|
22791
22801
|
readOnly: true,
|
|
22792
22802
|
value: props.value,
|
|
22793
|
-
addonAfter:
|
|
22803
|
+
addonAfter: React.createElement(Button, {
|
|
22794
22804
|
size: "small",
|
|
22795
22805
|
type: "link",
|
|
22796
22806
|
onClick: function onClick() {
|
|
22797
22807
|
setVisible(true);
|
|
22798
22808
|
}
|
|
22799
22809
|
}, "\u70B9\u51FB\u9009\u62E9")
|
|
22800
|
-
}),
|
|
22810
|
+
}), React.createElement(Drawer, {
|
|
22801
22811
|
title: "\u7A0E\u6536\u5206\u7C7B\u7F16\u7801",
|
|
22802
22812
|
visible: visible,
|
|
22803
22813
|
width: 500,
|
|
22804
22814
|
onClose: function onClose() {
|
|
22805
22815
|
setVisible(false);
|
|
22806
22816
|
}
|
|
22807
|
-
},
|
|
22817
|
+
}, React.createElement(Form, {
|
|
22808
22818
|
key: "".concat(visible)
|
|
22809
|
-
},
|
|
22819
|
+
}, React.createElement(Form.Item, {
|
|
22810
22820
|
label: "\u4EA7\u54C1\u6216\u670D\u52A1\u7B80\u79F0"
|
|
22811
|
-
},
|
|
22821
|
+
}, React.createElement(Input, {
|
|
22812
22822
|
onChange: function onChange(e) {
|
|
22813
22823
|
setFilter(_objectSpread2(_objectSpread2({}, filter), {}, {
|
|
22814
22824
|
val: e.target.value
|
|
22815
22825
|
}));
|
|
22816
22826
|
}
|
|
22817
|
-
})),
|
|
22827
|
+
})), React.createElement(Form.Item, {
|
|
22818
22828
|
label: "\u7A0E\u6536\u5206\u7C7B\u7F16\u7801"
|
|
22819
|
-
},
|
|
22829
|
+
}, React.createElement(Input, {
|
|
22820
22830
|
onChange: function onChange(e) {
|
|
22821
22831
|
setFilter(_objectSpread2(_objectSpread2({}, filter), {}, {
|
|
22822
22832
|
taxCategoryCode: e.target.value
|
|
22823
22833
|
}));
|
|
22824
22834
|
}
|
|
22825
|
-
}))), list && list.length > 0 ?
|
|
22835
|
+
}))), list && list.length > 0 ? React.createElement(Tree, {
|
|
22826
22836
|
defaultExpandAll: true,
|
|
22827
22837
|
selectedKeys: [],
|
|
22828
22838
|
onSelect: onSelect
|
|
22829
|
-
}, createTreeNode()) :
|
|
22839
|
+
}, createTreeNode()) : React.createElement("span", {
|
|
22830
22840
|
style: {
|
|
22831
22841
|
color: '#00000073'
|
|
22832
22842
|
}
|
|
@@ -23043,11 +23053,11 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23043
23053
|
return data;
|
|
23044
23054
|
};
|
|
23045
23055
|
|
|
23046
|
-
return
|
|
23056
|
+
return React.createElement(React.Fragment, null, React.createElement(Input, {
|
|
23047
23057
|
readOnly: true,
|
|
23048
23058
|
onClick: onClick,
|
|
23049
23059
|
value: props.value
|
|
23050
|
-
}),
|
|
23060
|
+
}), React.createElement(TaxClassificationModal, {
|
|
23051
23061
|
list: list,
|
|
23052
23062
|
open: open,
|
|
23053
23063
|
onSelect: onSelect,
|
|
@@ -23163,14 +23173,14 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23163
23173
|
React.useEffect(function () {
|
|
23164
23174
|
if (controller.getTaxCategoryCodeList) controller.getTaxCategoryCodeList();
|
|
23165
23175
|
}, [controller]);
|
|
23166
|
-
return
|
|
23176
|
+
return React.createElement(SchemaForm, {
|
|
23167
23177
|
actions: actions,
|
|
23168
23178
|
previewPlaceholder: " ",
|
|
23169
23179
|
components: _objectSpread2(_objectSpread2({}, components), {}, {
|
|
23170
23180
|
showSearch: !!controller.state.goodsListState.endowCode.onLoadTaxClassificationCode ? ShowSearch3 : ShowSearch
|
|
23171
23181
|
}),
|
|
23172
23182
|
effects: effects
|
|
23173
|
-
},
|
|
23183
|
+
}, React.createElement(FormButtonGroup, null, React.createElement(SchemaMarkupField, {
|
|
23174
23184
|
name: "taxClassificationCode",
|
|
23175
23185
|
type: "showSearch",
|
|
23176
23186
|
title: "\u7A0E\u6536\u5206\u7C7B\u7F16\u7801",
|
|
@@ -23180,13 +23190,13 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23180
23190
|
message: '请选择税收分类编码',
|
|
23181
23191
|
required: true
|
|
23182
23192
|
}]
|
|
23183
|
-
}),
|
|
23193
|
+
}), React.createElement(SchemaMarkupField, {
|
|
23184
23194
|
name: "shorthand",
|
|
23185
23195
|
type: "string",
|
|
23186
23196
|
readOnly: true,
|
|
23187
23197
|
default: defaultValue === null || defaultValue === void 0 ? void 0 : defaultValue.shorthand,
|
|
23188
23198
|
title: "\u5546\u54C1\u548C\u670D\u52A1\u5206\u7C7B\u7B80\u79F0"
|
|
23189
|
-
}),
|
|
23199
|
+
}), React.createElement(SchemaMarkupField, {
|
|
23190
23200
|
name: "taxRate",
|
|
23191
23201
|
type: "string",
|
|
23192
23202
|
title: "\u7A0E\u7387",
|
|
@@ -23199,7 +23209,7 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23199
23209
|
message: '请选择税率',
|
|
23200
23210
|
required: true
|
|
23201
23211
|
}]
|
|
23202
|
-
}), taxRate === 0 && isTaxFreeTypeNeeded &&
|
|
23212
|
+
}), taxRate === 0 && isTaxFreeTypeNeeded && React.createElement(SchemaMarkupField, {
|
|
23203
23213
|
name: "taxFreeType",
|
|
23204
23214
|
type: "string",
|
|
23205
23215
|
title: "\u514D\u7A0E\u7C7B\u578B",
|
|
@@ -23212,7 +23222,7 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23212
23222
|
message: '请选择免税类型',
|
|
23213
23223
|
required: true
|
|
23214
23224
|
}]
|
|
23215
|
-
}),
|
|
23225
|
+
}), React.createElement(SchemaMarkupField, {
|
|
23216
23226
|
name: "favouredPolicyMark",
|
|
23217
23227
|
type: "number",
|
|
23218
23228
|
title: "\u662F\u5426\u4EAB\u53D7\u4F18\u60E0\u653F\u7B56",
|
|
@@ -23231,7 +23241,7 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23231
23241
|
message: '请选择是否享受优惠政策',
|
|
23232
23242
|
required: true
|
|
23233
23243
|
}]
|
|
23234
|
-
}), favouredPolicyMark === 1 &&
|
|
23244
|
+
}), favouredPolicyMark === 1 && React.createElement(SchemaMarkupField, {
|
|
23235
23245
|
name: "favouredPolicyName",
|
|
23236
23246
|
type: "string",
|
|
23237
23247
|
title: "\u4F18\u60E0\u653F\u7B56\u7C7B\u578B",
|
|
@@ -23244,14 +23254,14 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23244
23254
|
message: '请选择是否享受优惠政策',
|
|
23245
23255
|
required: true
|
|
23246
23256
|
}]
|
|
23247
|
-
})),
|
|
23257
|
+
})), React.createElement("span", {
|
|
23248
23258
|
className: "kts-invoice-operate-goods-endow-code-button-list"
|
|
23249
|
-
},
|
|
23259
|
+
}, React.createElement(Button, {
|
|
23250
23260
|
onClick: function onClick() {
|
|
23251
23261
|
actions.submit(onSubmit);
|
|
23252
23262
|
},
|
|
23253
23263
|
type: "primary"
|
|
23254
|
-
}, "\u786E\u5B9A"),
|
|
23264
|
+
}, "\u786E\u5B9A"), React.createElement(Button, {
|
|
23255
23265
|
onClick: function onClick() {
|
|
23256
23266
|
controller.pipeline( /*#__PURE__*/function () {
|
|
23257
23267
|
var _ref20 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee20(s) {
|
|
@@ -23411,53 +23421,53 @@ function AddComparisonDrawer() {
|
|
|
23411
23421
|
}));
|
|
23412
23422
|
}
|
|
23413
23423
|
}, [good]);
|
|
23414
|
-
return
|
|
23424
|
+
return React.createElement(Drawer$1, {
|
|
23415
23425
|
width: 500,
|
|
23416
23426
|
onClose: onClose,
|
|
23417
23427
|
placement: "right",
|
|
23418
23428
|
title: "\u5546\u54C1\u6620\u5C04",
|
|
23419
23429
|
visible: !!good,
|
|
23420
|
-
footer:
|
|
23430
|
+
footer: React.createElement("div", {
|
|
23421
23431
|
style: {
|
|
23422
23432
|
display: 'flex',
|
|
23423
23433
|
justifyContent: 'flex-end',
|
|
23424
23434
|
gap: 10
|
|
23425
23435
|
}
|
|
23426
|
-
},
|
|
23436
|
+
}, React.createElement(Button, {
|
|
23427
23437
|
type: "primary",
|
|
23428
23438
|
onClick: onSubmit
|
|
23429
|
-
}, "\u63D0\u4EA4"),
|
|
23439
|
+
}, "\u63D0\u4EA4"), React.createElement(Button, {
|
|
23430
23440
|
onClick: onClose
|
|
23431
23441
|
}, "\u53D6\u6D88"))
|
|
23432
|
-
}, !!good &&
|
|
23442
|
+
}, !!good && React.createElement(Form$1, {
|
|
23433
23443
|
layout: "vertical",
|
|
23434
23444
|
style: {
|
|
23435
23445
|
flex: 1
|
|
23436
23446
|
},
|
|
23437
23447
|
form: form
|
|
23438
|
-
},
|
|
23448
|
+
}, React.createElement(Row$1, {
|
|
23439
23449
|
gutter: [8, 8]
|
|
23440
|
-
},
|
|
23450
|
+
}, React.createElement(Col$1, {
|
|
23441
23451
|
span: 12
|
|
23442
|
-
},
|
|
23452
|
+
}, React.createElement(Form$1.Item, {
|
|
23443
23453
|
name: "itemNameSelf",
|
|
23444
23454
|
label: "\u6211\u65B9\u5546\u54C1\u540D\u79F0"
|
|
23445
|
-
},
|
|
23455
|
+
}, React.createElement(Input, null))), React.createElement(Col$1, {
|
|
23446
23456
|
span: 12
|
|
23447
|
-
},
|
|
23457
|
+
}, React.createElement(Form$1.Item, {
|
|
23448
23458
|
name: "itemName",
|
|
23449
23459
|
label: "\u5BF9\u65B9\u5546\u54C1\u540D\u79F0"
|
|
23450
|
-
},
|
|
23460
|
+
}, React.createElement(Input, null))), React.createElement(Col$1, {
|
|
23451
23461
|
span: 12
|
|
23452
|
-
},
|
|
23462
|
+
}, React.createElement(Form$1.Item, {
|
|
23453
23463
|
name: 'itemModelNameSelf',
|
|
23454
23464
|
label: "\u6211\u65B9\u89C4\u683C\u578B\u53F7"
|
|
23455
|
-
},
|
|
23465
|
+
}, React.createElement(Input, null))), React.createElement(Col$1, {
|
|
23456
23466
|
span: 12
|
|
23457
|
-
},
|
|
23467
|
+
}, React.createElement(Form$1.Item, {
|
|
23458
23468
|
name: "itemModelName",
|
|
23459
23469
|
label: "\u5BF9\u65B9\u89C4\u683C\u578B\u53F7"
|
|
23460
|
-
},
|
|
23470
|
+
}, React.createElement(Input, null))))));
|
|
23461
23471
|
} // function validateFields(form: WrappedFormUtils<any>) {
|
|
23462
23472
|
// return new Promise<{ err: any, values: any }>(resolve => {
|
|
23463
23473
|
// form.validateFields((err, values) => {
|
|
@@ -23468,7 +23478,7 @@ function AddComparisonDrawer() {
|
|
|
23468
23478
|
|
|
23469
23479
|
/** 发票组件的上下文 */
|
|
23470
23480
|
|
|
23471
|
-
var InvoiceContext =
|
|
23481
|
+
var InvoiceContext = React.createContext(undefined);
|
|
23472
23482
|
|
|
23473
23483
|
var Invoice = /*#__PURE__*/function (_React$PureComponent) {
|
|
23474
23484
|
_inherits(Invoice, _React$PureComponent);
|
|
@@ -23511,9 +23521,9 @@ var Invoice = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
23511
23521
|
/** 获取控制器钩子 */
|
|
23512
23522
|
function render() {
|
|
23513
23523
|
if (this.props.invoiceType === 'digtal') {
|
|
23514
|
-
return
|
|
23524
|
+
return React.createElement(Digtal, _objectSpread2({}, this.props));
|
|
23515
23525
|
} else {
|
|
23516
|
-
return
|
|
23526
|
+
return React.createElement(Main$4, _objectSpread2({}, this.props));
|
|
23517
23527
|
}
|
|
23518
23528
|
}
|
|
23519
23529
|
}]);
|
|
@@ -23554,10 +23564,10 @@ var Main$4 = function Main(props) {
|
|
|
23554
23564
|
React.useEffect(function () {
|
|
23555
23565
|
setKey(key + 1);
|
|
23556
23566
|
}, [controller]);
|
|
23557
|
-
return
|
|
23567
|
+
return React.createElement(InvoiceContext.Provider, {
|
|
23558
23568
|
key: key,
|
|
23559
23569
|
value: controller
|
|
23560
|
-
},
|
|
23570
|
+
}, React.createElement("div", {
|
|
23561
23571
|
className: "kts-invoice-operate",
|
|
23562
23572
|
ref: controller.pipeline( /*#__PURE__*/function () {
|
|
23563
23573
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(s, e) {
|
|
@@ -23579,17 +23589,17 @@ var Main$4 = function Main(props) {
|
|
|
23579
23589
|
return _ref.apply(this, arguments);
|
|
23580
23590
|
};
|
|
23581
23591
|
}())
|
|
23582
|
-
}, props.invoiceHeader ||
|
|
23592
|
+
}, props.invoiceHeader || React.createElement(InvoiceHeader, null)
|
|
23583
23593
|
/** 发票头 */
|
|
23584
|
-
, props.buyer ||
|
|
23594
|
+
, props.buyer || React.createElement(Buyer$1, null)
|
|
23585
23595
|
/** 购买方 */
|
|
23586
|
-
, props.goodsList ||
|
|
23596
|
+
, props.goodsList || React.createElement(GoodsList, null)
|
|
23587
23597
|
/** 货物列表 */
|
|
23588
|
-
, props.seller ||
|
|
23598
|
+
, props.seller || React.createElement(Buyer, null)
|
|
23589
23599
|
/** 销售方 */
|
|
23590
|
-
, props.sign ||
|
|
23600
|
+
, props.sign || React.createElement(Sign, null)
|
|
23591
23601
|
/** 落款 */
|
|
23592
|
-
, props.footExpand),
|
|
23602
|
+
, props.footExpand), React.createElement(ImportBuyerDrawer, null), React.createElement(ImportGoodsDrawer, null), React.createElement(EndowCodeDrawer, null), React.createElement(AddComparisonDrawer, null));
|
|
23593
23603
|
};
|
|
23594
23604
|
/** 数电 */
|
|
23595
23605
|
|
|
@@ -23608,10 +23618,10 @@ var Digtal = function Digtal(props) {
|
|
|
23608
23618
|
React.useEffect(function () {
|
|
23609
23619
|
setKey(key + 1);
|
|
23610
23620
|
}, [controller]);
|
|
23611
|
-
return
|
|
23621
|
+
return React.createElement(InvoiceContext.Provider, {
|
|
23612
23622
|
key: key,
|
|
23613
23623
|
value: controller
|
|
23614
|
-
},
|
|
23624
|
+
}, React.createElement("div", {
|
|
23615
23625
|
className: "kts-invoice-operate-digtal",
|
|
23616
23626
|
ref: controller.pipeline( /*#__PURE__*/function () {
|
|
23617
23627
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(s, e) {
|
|
@@ -23633,17 +23643,17 @@ var Digtal = function Digtal(props) {
|
|
|
23633
23643
|
return _ref2.apply(this, arguments);
|
|
23634
23644
|
};
|
|
23635
23645
|
}())
|
|
23636
|
-
}, props.invoiceHeader ||
|
|
23646
|
+
}, props.invoiceHeader || React.createElement(InvoiceHeaderDigtal, null)
|
|
23637
23647
|
/** 发票头 */
|
|
23638
|
-
,
|
|
23648
|
+
, React.createElement("div", {
|
|
23639
23649
|
className: 'kts-invoice-operate-digtal-cont'
|
|
23640
|
-
}, props.stakeholder ||
|
|
23650
|
+
}, props.stakeholder || React.createElement(Stakeholder$1, null)
|
|
23641
23651
|
/** 干系人 */
|
|
23642
|
-
, props.goodsList ||
|
|
23652
|
+
, props.goodsList || React.createElement(GoodsList$1
|
|
23643
23653
|
/** 货物列表 */
|
|
23644
|
-
, null)), props.sign ||
|
|
23654
|
+
, null)), props.sign || React.createElement(SignDigtal, null)
|
|
23645
23655
|
/** 落款 */
|
|
23646
|
-
),
|
|
23656
|
+
), React.createElement(ImportGoodsDrawer, null), React.createElement(EndowCodeDrawer, null));
|
|
23647
23657
|
};
|
|
23648
23658
|
|
|
23649
23659
|
function TaxClassificationModal(props) {
|
|
@@ -23684,26 +23694,26 @@ function TaxClassificationModal(props) {
|
|
|
23684
23694
|
}, 500);
|
|
23685
23695
|
}
|
|
23686
23696
|
}, [form, props.open]);
|
|
23687
|
-
return
|
|
23697
|
+
return React.createElement(Drawer$1, {
|
|
23688
23698
|
title: "\u5546\u54C1\u548C\u670D\u52A1\u7A0E\u6536\u5206\u7C7B\u7F16\u7801",
|
|
23689
23699
|
placement: "right",
|
|
23690
23700
|
open: props.open,
|
|
23691
23701
|
width: 503,
|
|
23692
23702
|
onClose: props.onCancel
|
|
23693
|
-
},
|
|
23703
|
+
}, React.createElement(Form$1, {
|
|
23694
23704
|
form: form
|
|
23695
|
-
},
|
|
23705
|
+
}, React.createElement(Form$1.Item, {
|
|
23696
23706
|
name: 'search'
|
|
23697
|
-
},
|
|
23707
|
+
}, React.createElement(Input$1, {
|
|
23698
23708
|
placeholder: "\u8BF7\u8F93\u5165\u7A0E\u6536\u5206\u7C7B\u7F16\u7801\u3001\u7A0E\u6536\u5206\u7C7B\u540D\u79F0\u8FDB\u884C\u68C0\u7D22",
|
|
23699
23709
|
onChange: searchTax
|
|
23700
|
-
})),
|
|
23710
|
+
})), React.createElement(Form$1.Item, {
|
|
23701
23711
|
name: 'tree'
|
|
23702
|
-
},
|
|
23712
|
+
}, React.createElement(Tree$1, {
|
|
23703
23713
|
onSelect: props.onSelect,
|
|
23704
23714
|
loadData: props.onLoad,
|
|
23705
23715
|
treeData: props.list,
|
|
23706
|
-
switcherIcon:
|
|
23716
|
+
switcherIcon: React.createElement(Icon$1, {
|
|
23707
23717
|
type: "down"
|
|
23708
23718
|
})
|
|
23709
23719
|
}))));
|