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