kts-component-invoice-operate 3.2.124 → 3.2.126
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.dumi/theme/builtins/API.tsx +66 -66
- package/.editorconfig +16 -16
- package/.fatherrc.ts +4 -4
- package/.prettierignore +7 -7
- package/.prettierrc +11 -11
- package/.umirc.ts +8 -8
- package/README.md +9 -9
- package/dist/index.esm.js +634 -596
- package/dist/index.js +634 -596
- 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 +868 -566
- 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 +117 -117
- 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/itemBlur.ts +40 -40
- package/src/Invoice/InvoiceController/fns/mergeDetails.ts +201 -201
- package/src/Invoice/InvoiceController/fns/mergeDiscount.ts +35 -35
- 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 +81 -81
- 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 +1158 -1158
- 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 +1197 -1197
- package/src/Invoice/_test/invoiceType/index.tsx +59 -59
- package/src/Invoice/_test/isInvoiceNo/index.tsx +12 -12
- package/src/Invoice/_test/replaceHead/index.tsx +22 -22
- package/src/Invoice/_test/retrieveData/index.tsx +22 -22
- package/src/Invoice/_test/seller/index.tsx +28 -28
- package/src/Invoice/_test/setDataSource/index.tsx +73 -73
- package/src/Invoice/_test/unit/index.tsx +19 -19
- package/src/Invoice/index.less +29 -29
- package/src/Invoice/index.md +53 -53
- package/src/Invoice/index.tsx +167 -167
- package/src/Invoice/tools/calculate/index.ts +132 -132
- 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 +550 -550
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/autoFillFn/index.ts +632 -632
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/index.tsx +688 -688
- 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 +88 -88
- 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 +31 -31
- package/src/Invoice/ui/default/ImportBuyerDrawer/index.tsx +75 -75
- package/src/Invoice/ui/default/ImportGoodsDrawer/index.tsx +198 -198
- 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 +624 -624
- 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 +82 -75
- 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 +37 -37
- 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 +31 -31
- 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 +90 -90
- 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
|
@@ -9804,7 +9804,7 @@ var InvoiceHeader = decorator(Form.create())(function (props) {
|
|
|
9804
9804
|
render: function render(form) {
|
|
9805
9805
|
return form.getFieldDecorator('code', {
|
|
9806
9806
|
initialValue: props.defaultCode
|
|
9807
|
-
})(
|
|
9807
|
+
})(React.createElement(FormSpanString, null));
|
|
9808
9808
|
}
|
|
9809
9809
|
});
|
|
9810
9810
|
}
|
|
@@ -9817,7 +9817,7 @@ var InvoiceHeader = decorator(Form.create())(function (props) {
|
|
|
9817
9817
|
render: function render(form) {
|
|
9818
9818
|
return form.getFieldDecorator('no', {
|
|
9819
9819
|
initialValue: props.defaultNo
|
|
9820
|
-
})(
|
|
9820
|
+
})(React.createElement(FormSpanString, null));
|
|
9821
9821
|
}
|
|
9822
9822
|
});
|
|
9823
9823
|
}
|
|
@@ -9828,7 +9828,7 @@ var InvoiceHeader = decorator(Form.create())(function (props) {
|
|
|
9828
9828
|
render: function render(form) {
|
|
9829
9829
|
return form.getFieldDecorator('invoicingDate', {
|
|
9830
9830
|
initialValue: props.defaultInvoicingDate
|
|
9831
|
-
})(
|
|
9831
|
+
})(React.createElement(FormSpanString, null));
|
|
9832
9832
|
}
|
|
9833
9833
|
});
|
|
9834
9834
|
}
|
|
@@ -9839,7 +9839,7 @@ var InvoiceHeader = decorator(Form.create())(function (props) {
|
|
|
9839
9839
|
render: function render(form) {
|
|
9840
9840
|
return form.getFieldDecorator('defaultValidationCode', {
|
|
9841
9841
|
initialValue: props.defaultValidationCode
|
|
9842
|
-
})(
|
|
9842
|
+
})(React.createElement(FormSpanString, null));
|
|
9843
9843
|
}
|
|
9844
9844
|
});
|
|
9845
9845
|
}
|
|
@@ -9859,21 +9859,21 @@ var InvoiceHeader = decorator(Form.create())(function (props) {
|
|
|
9859
9859
|
React.useEffect(function () {
|
|
9860
9860
|
setTypeIndex(props.typeOptionIndex || 0);
|
|
9861
9861
|
}, [props.typeOption]);
|
|
9862
|
-
return
|
|
9862
|
+
return React.createElement("div", {
|
|
9863
9863
|
className: "kts-invoice-operate-invoice-header"
|
|
9864
|
-
},
|
|
9864
|
+
}, React.createElement("div", {
|
|
9865
9865
|
className: "invoice-header-title"
|
|
9866
|
-
}, title),
|
|
9866
|
+
}, title), React.createElement("div", {
|
|
9867
9867
|
className: "invoice-header-no"
|
|
9868
|
-
}, isInvoiceNo ?
|
|
9868
|
+
}, isInvoiceNo ? React.createElement("div", null, React.createElement("label", null, "\u53D1\u7968\u5355\u636E\u7F16\u53F7 :"), getFieldDecorator('id', {
|
|
9869
9869
|
initialValue: props.defaultId
|
|
9870
|
-
})(
|
|
9870
|
+
})(React.createElement(Input, {
|
|
9871
9871
|
disabled: readOnlyInvoiceNo,
|
|
9872
9872
|
style: {
|
|
9873
9873
|
width: 230
|
|
9874
9874
|
},
|
|
9875
9875
|
size: "small",
|
|
9876
|
-
suffix: controller.updateInvoiceNo &&
|
|
9876
|
+
suffix: controller.updateInvoiceNo && React.createElement(Icon$1, {
|
|
9877
9877
|
style: {
|
|
9878
9878
|
cursor: 'pointer'
|
|
9879
9879
|
},
|
|
@@ -9917,15 +9917,15 @@ var InvoiceHeader = decorator(Form.create())(function (props) {
|
|
|
9917
9917
|
return onClick;
|
|
9918
9918
|
}()
|
|
9919
9919
|
})
|
|
9920
|
-
}))) :
|
|
9920
|
+
}))) : React.createElement("div", {
|
|
9921
9921
|
style: {
|
|
9922
9922
|
height: 20
|
|
9923
9923
|
}
|
|
9924
|
-
}), tag &&
|
|
9924
|
+
}), tag && React.createElement(Tag$1, null, tag), React.createElement("div", {
|
|
9925
9925
|
className: "invoice-header-type"
|
|
9926
9926
|
}, props.typeOption ? getFieldDecorator('type', {
|
|
9927
9927
|
initialValue: typeIndex
|
|
9928
|
-
})(
|
|
9928
|
+
})(React.createElement(Select, {
|
|
9929
9929
|
size: "small",
|
|
9930
9930
|
style: {
|
|
9931
9931
|
width: 230
|
|
@@ -9934,20 +9934,20 @@ var InvoiceHeader = decorator(Form.create())(function (props) {
|
|
|
9934
9934
|
setTypeIndex(e);
|
|
9935
9935
|
}
|
|
9936
9936
|
}, props.typeOption.map(function (e, i) {
|
|
9937
|
-
return
|
|
9937
|
+
return React.createElement(Select.Option, {
|
|
9938
9938
|
key: i,
|
|
9939
9939
|
value: i
|
|
9940
9940
|
}, e.title);
|
|
9941
|
-
}))) : props.renderExpand && props.renderExpand(props.form))), props.typeOption &&
|
|
9941
|
+
}))) : props.renderExpand && props.renderExpand(props.form))), props.typeOption && React.createElement("div", {
|
|
9942
9942
|
style: {
|
|
9943
9943
|
marginTop: 10
|
|
9944
9944
|
}
|
|
9945
|
-
}, props.renderExpand && props.renderExpand(props.form)),
|
|
9945
|
+
}, props.renderExpand && props.renderExpand(props.form)), React.createElement("div", {
|
|
9946
9946
|
className: "invoice-header-property"
|
|
9947
|
-
}, _toConsumableArray(props.fieldExpand || []).map(function (e) {}),
|
|
9947
|
+
}, _toConsumableArray(props.fieldExpand || []).map(function (e) {}), React.createElement("ul", {
|
|
9948
9948
|
className: 'invoice-header-property-fieldExpand'
|
|
9949
9949
|
}, fieldExpand.map(function (e) {
|
|
9950
|
-
return
|
|
9950
|
+
return React.createElement("li", null, React.createElement("label", null, e.label), e.render(form));
|
|
9951
9951
|
}))));
|
|
9952
9952
|
});
|
|
9953
9953
|
|
|
@@ -9966,7 +9966,7 @@ var FormSpanString = /*#__PURE__*/function (_React$Component) {
|
|
|
9966
9966
|
key: "render",
|
|
9967
9967
|
value: function render() {
|
|
9968
9968
|
// return <span>{this.props.value}</span>;
|
|
9969
|
-
return
|
|
9969
|
+
return React.createElement(Input, {
|
|
9970
9970
|
size: "small",
|
|
9971
9971
|
disabled: true,
|
|
9972
9972
|
value: this.props.value
|
|
@@ -10077,12 +10077,12 @@ function TableVirtual (props) {
|
|
|
10077
10077
|
if (!cont) return;
|
|
10078
10078
|
cont.scrollTop = 0;
|
|
10079
10079
|
}, [(_props$dataSource2 = props.dataSource) === null || _props$dataSource2 === void 0 ? void 0 : _props$dataSource2.length]);
|
|
10080
|
-
return
|
|
10080
|
+
return React.createElement("span", {
|
|
10081
10081
|
className: "kts-invoice-operate-goods-table-virtual",
|
|
10082
10082
|
ref: function ref(e) {
|
|
10083
10083
|
setSelf(e);
|
|
10084
10084
|
}
|
|
10085
|
-
},
|
|
10085
|
+
}, React.createElement(TableManual, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
10086
10086
|
dataSource: dataSource,
|
|
10087
10087
|
// 新版本Table会有输入框无法连续输入的问题,先兼容老版本
|
|
10088
10088
|
tableComponent: Table
|
|
@@ -10174,59 +10174,59 @@ var Statistics = (function () {
|
|
|
10174
10174
|
});
|
|
10175
10175
|
return sum.done().toNumber();
|
|
10176
10176
|
}, []);
|
|
10177
|
-
return
|
|
10177
|
+
return React.createElement("div", {
|
|
10178
10178
|
className: "kts-invoice-operate-goods-list-statistics"
|
|
10179
|
-
},
|
|
10179
|
+
}, React.createElement("div", {
|
|
10180
10180
|
className: "kts-invoice-operate-goods-list-statistics-row"
|
|
10181
|
-
},
|
|
10181
|
+
}, React.createElement("div", {
|
|
10182
10182
|
style: {
|
|
10183
10183
|
width: 45.92
|
|
10184
10184
|
}
|
|
10185
|
-
}),
|
|
10185
|
+
}), React.createElement("div", {
|
|
10186
10186
|
style: {
|
|
10187
10187
|
flex: 1
|
|
10188
10188
|
}
|
|
10189
|
-
},
|
|
10189
|
+
}, React.createElement("label", null, "\u5408\u8BA1")), React.createElement("div", {
|
|
10190
10190
|
style: {
|
|
10191
10191
|
width: 119,
|
|
10192
10192
|
textAlign: 'right',
|
|
10193
10193
|
border: 'none'
|
|
10194
10194
|
}
|
|
10195
|
-
},
|
|
10195
|
+
}, React.createElement("label", null, parseFloat(isTaxIncluded ? lineAmountIncludeTax : lineAmountExcludeTax).toFixed(2))), React.createElement("div", {
|
|
10196
10196
|
style: {
|
|
10197
10197
|
width: 70,
|
|
10198
10198
|
border: 'none'
|
|
10199
10199
|
}
|
|
10200
|
-
}),
|
|
10200
|
+
}), React.createElement("div", {
|
|
10201
10201
|
style: {
|
|
10202
10202
|
width: 119,
|
|
10203
10203
|
textAlign: 'right',
|
|
10204
10204
|
border: 'none'
|
|
10205
10205
|
}
|
|
10206
|
-
},
|
|
10206
|
+
}, React.createElement("label", null, parseFloat(taxAmount).toFixed(2))), React.createElement("div", {
|
|
10207
10207
|
style: {
|
|
10208
10208
|
width: 111,
|
|
10209
10209
|
border: 'none'
|
|
10210
10210
|
}
|
|
10211
|
-
})),
|
|
10211
|
+
})), React.createElement("div", {
|
|
10212
10212
|
className: "kts-invoice-operate-goods-list-statistics-row"
|
|
10213
|
-
},
|
|
10213
|
+
}, React.createElement("div", {
|
|
10214
10214
|
style: {
|
|
10215
10215
|
width: 45.92
|
|
10216
10216
|
}
|
|
10217
|
-
}),
|
|
10217
|
+
}), React.createElement("div", {
|
|
10218
10218
|
style: {
|
|
10219
10219
|
flex: 5,
|
|
10220
10220
|
border: 'none'
|
|
10221
10221
|
}
|
|
10222
|
-
},
|
|
10222
|
+
}, React.createElement("label", null, "\u4EF7\u7A0E\u5408\u8BA1\uFF08\u5927\u5199\uFF09"), React.createElement("label", null, nzhcn.toMoney(lineAmountIncludeTax, {
|
|
10223
10223
|
outSymbol: false
|
|
10224
|
-
}))),
|
|
10224
|
+
}))), React.createElement("div", {
|
|
10225
10225
|
style: {
|
|
10226
10226
|
flex: 5,
|
|
10227
10227
|
border: 'none'
|
|
10228
10228
|
}
|
|
10229
|
-
},
|
|
10229
|
+
}, React.createElement("label", null, "\uFF08\u5C0F\u5199\uFF09 ", parseFloat(lineAmountIncludeTax).toFixed(2)))));
|
|
10230
10230
|
});
|
|
10231
10231
|
|
|
10232
10232
|
var AddRowButton = (function () {
|
|
@@ -10281,10 +10281,10 @@ var AddRowButton = (function () {
|
|
|
10281
10281
|
}
|
|
10282
10282
|
}, _callee);
|
|
10283
10283
|
})), [controller, rootElement]);
|
|
10284
|
-
if (isAddRow === false) return
|
|
10285
|
-
if (model === 'prefab') return
|
|
10286
|
-
if (model === 'readOnly') return
|
|
10287
|
-
return
|
|
10284
|
+
if (isAddRow === false) return React.createElement(React.Fragment, null);
|
|
10285
|
+
if (model === 'prefab') return React.createElement(React.Fragment, null);
|
|
10286
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
10287
|
+
return React.createElement(Button, {
|
|
10288
10288
|
onClick: onClick,
|
|
10289
10289
|
disabled: disabled
|
|
10290
10290
|
}, "\u6DFB\u52A0\u884C");
|
|
@@ -10414,11 +10414,11 @@ var TaxIncludedSwitch = (function () {
|
|
|
10414
10414
|
var onChange = React.useCallback(function (e) {
|
|
10415
10415
|
onChangeSwitchTax(controller, e);
|
|
10416
10416
|
}, []);
|
|
10417
|
-
return
|
|
10417
|
+
return React.createElement("span", null, React.createElement("label", {
|
|
10418
10418
|
style: {
|
|
10419
10419
|
marginRight: 2
|
|
10420
10420
|
}
|
|
10421
|
-
}, "\u542B\u7A0E:"),
|
|
10421
|
+
}, "\u542B\u7A0E:"), React.createElement(Switch, {
|
|
10422
10422
|
disabled: isSwitchTax === false,
|
|
10423
10423
|
checked: isTaxIncluded,
|
|
10424
10424
|
defaultChecked: true,
|
|
@@ -10456,19 +10456,19 @@ var DescribeSwitch = (function () {
|
|
|
10456
10456
|
};
|
|
10457
10457
|
}());
|
|
10458
10458
|
}, []);
|
|
10459
|
-
if (!productComparison.onComply) return
|
|
10460
|
-
return
|
|
10459
|
+
if (!productComparison.onComply) return React.createElement(React.Fragment, null);
|
|
10460
|
+
return React.createElement("span", null, React.createElement("label", {
|
|
10461
10461
|
style: {
|
|
10462
10462
|
marginRight: 2
|
|
10463
10463
|
}
|
|
10464
|
-
},
|
|
10464
|
+
}, React.createElement(Tooltip, {
|
|
10465
10465
|
title: "\u84DD\u8272\u4EE3\u8868\u6211\u65B9\u5546\u54C1\u63CF\u8FF0\uFF0C\u9ED1\u8272\u4EE3\u8868\u5BF9\u65B9\u7684\u5546\u54C1\u63CF\u8FF0\u3002"
|
|
10466
|
-
},
|
|
10466
|
+
}, React.createElement(Icon$1, {
|
|
10467
10467
|
style: {
|
|
10468
10468
|
marginRight: 3
|
|
10469
10469
|
},
|
|
10470
10470
|
type: "info-circle"
|
|
10471
|
-
})), "\u4F7F\u7528\u54EA\u65B9\u5546\u54C1\u63CF\u8FF0:"),
|
|
10471
|
+
})), "\u4F7F\u7528\u54EA\u65B9\u5546\u54C1\u63CF\u8FF0:"), React.createElement(Switch$1, {
|
|
10472
10472
|
checked: isMyShow,
|
|
10473
10473
|
checkedChildren: "\u6211\u65B9",
|
|
10474
10474
|
unCheckedChildren: "\u5BF9\u65B9",
|
|
@@ -10568,13 +10568,13 @@ function Search() {
|
|
|
10568
10568
|
};
|
|
10569
10569
|
}());
|
|
10570
10570
|
}, [value, controller]);
|
|
10571
|
-
return
|
|
10571
|
+
return React.createElement(Input, {
|
|
10572
10572
|
size: "small",
|
|
10573
10573
|
readOnly: readOnly,
|
|
10574
10574
|
value: value,
|
|
10575
10575
|
className: "kts-invoice-operate-goods-list-search",
|
|
10576
10576
|
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"),
|
|
10577
|
-
prefix:
|
|
10577
|
+
prefix: React.createElement(Icon$1, {
|
|
10578
10578
|
component: SvgMagnifier,
|
|
10579
10579
|
style: {
|
|
10580
10580
|
color: "#b8b8b8"
|
|
@@ -10626,13 +10626,13 @@ function TableRow(props) {
|
|
|
10626
10626
|
return undefined;
|
|
10627
10627
|
}
|
|
10628
10628
|
}, [good, goodsMap]);
|
|
10629
|
-
return rowKey === current && current ?
|
|
10629
|
+
return rowKey === current && current ? React.createElement("tr", {
|
|
10630
10630
|
style: {
|
|
10631
10631
|
height: 32.67,
|
|
10632
10632
|
borderBottom: '1px solid #E6E6E6',
|
|
10633
10633
|
position: 'relative'
|
|
10634
10634
|
}
|
|
10635
|
-
},
|
|
10635
|
+
}, React.createElement("div", {
|
|
10636
10636
|
style: {
|
|
10637
10637
|
height: 1,
|
|
10638
10638
|
width: '100%',
|
|
@@ -10640,7 +10640,7 @@ function TableRow(props) {
|
|
|
10640
10640
|
position: 'absolute',
|
|
10641
10641
|
bottom: 0
|
|
10642
10642
|
}
|
|
10643
|
-
})) :
|
|
10643
|
+
})) : React.createElement("tr", _objectSpread2(_objectSpread2({}, props), {}, {
|
|
10644
10644
|
className: classNames(props.className, discount, rowKey === container && current ? 'kts-invoice-operate-goods-list-itemName-drag-container-' + site : undefined)
|
|
10645
10645
|
}));
|
|
10646
10646
|
}
|
|
@@ -11048,7 +11048,7 @@ var RowMenu = (function (props) {
|
|
|
11048
11048
|
// addComparison && arr.push(addComparison); // 添加商品对照
|
|
11049
11049
|
|
|
11050
11050
|
if (!goodsMenuExpand || goodsMenuExpand.length === 0) return arr;
|
|
11051
|
-
arr.unshift(
|
|
11051
|
+
arr.unshift(React.createElement(Menu.Divider, {
|
|
11052
11052
|
key: "divider-1"
|
|
11053
11053
|
}));
|
|
11054
11054
|
|
|
@@ -11064,17 +11064,17 @@ var RowMenu = (function (props) {
|
|
|
11064
11064
|
return undefined;
|
|
11065
11065
|
}
|
|
11066
11066
|
|
|
11067
|
-
return
|
|
11068
|
-
return
|
|
11067
|
+
return React.createElement(Menu, null, itemList.slice(2).map(function (e) {
|
|
11068
|
+
return React.createElement(Menu.Item, {
|
|
11069
11069
|
key: e.key,
|
|
11070
11070
|
onClick: e.onClick
|
|
11071
|
-
},
|
|
11071
|
+
}, React.createElement(Text$1, {
|
|
11072
11072
|
strong: true
|
|
11073
11073
|
}, e.title));
|
|
11074
11074
|
}));
|
|
11075
11075
|
}, [itemList]);
|
|
11076
11076
|
var buttonList = React.useMemo(function () {
|
|
11077
|
-
return
|
|
11077
|
+
return React.createElement("div", {
|
|
11078
11078
|
style: {
|
|
11079
11079
|
flex: 1,
|
|
11080
11080
|
textAlign: 'left',
|
|
@@ -11082,7 +11082,7 @@ var RowMenu = (function (props) {
|
|
|
11082
11082
|
gap: 10
|
|
11083
11083
|
}
|
|
11084
11084
|
}, itemList.slice(0, 2).map(function (e) {
|
|
11085
|
-
return
|
|
11085
|
+
return React.createElement(Button, {
|
|
11086
11086
|
key: e.key,
|
|
11087
11087
|
type: 'link',
|
|
11088
11088
|
onClick: e.onClick,
|
|
@@ -11094,21 +11094,21 @@ var RowMenu = (function (props) {
|
|
|
11094
11094
|
}, [itemList]);
|
|
11095
11095
|
|
|
11096
11096
|
if (itemList.length === 0) {
|
|
11097
|
-
return
|
|
11097
|
+
return React.createElement(React.Fragment, null);
|
|
11098
11098
|
}
|
|
11099
11099
|
|
|
11100
|
-
return
|
|
11100
|
+
return React.createElement("span", {
|
|
11101
11101
|
style: {
|
|
11102
11102
|
padding: '0 0 0 10px',
|
|
11103
11103
|
display: 'flex'
|
|
11104
11104
|
}
|
|
11105
|
-
}, buttonList, overlay &&
|
|
11105
|
+
}, buttonList, overlay && React.createElement(Dropdown, {
|
|
11106
11106
|
overlay: overlay,
|
|
11107
11107
|
trigger: ['click']
|
|
11108
|
-
},
|
|
11108
|
+
}, React.createElement(Button, {
|
|
11109
11109
|
className: "kts-invoice-operate-goods-list-columns-row-menu ant-btn-icon-only",
|
|
11110
11110
|
type: "link"
|
|
11111
|
-
},
|
|
11111
|
+
}, React.createElement(Icon$1, {
|
|
11112
11112
|
component: SvgSpot
|
|
11113
11113
|
}))));
|
|
11114
11114
|
});
|
|
@@ -11122,9 +11122,9 @@ var TitleText = (function (props) {
|
|
|
11122
11122
|
return !!e.required;
|
|
11123
11123
|
})) || props.required;
|
|
11124
11124
|
}, [rules, props.required]);
|
|
11125
|
-
return
|
|
11125
|
+
return React.createElement(React.Fragment, null, required ? React.createElement(Text$2, {
|
|
11126
11126
|
type: "danger"
|
|
11127
|
-
}, "*") :
|
|
11127
|
+
}, "*") : React.createElement(React.Fragment, null), children);
|
|
11128
11128
|
});
|
|
11129
11129
|
|
|
11130
11130
|
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";
|
|
@@ -11315,14 +11315,14 @@ function ItemNameInput(props) {
|
|
|
11315
11315
|
React.useEffect(function () {
|
|
11316
11316
|
setValue(props.value);
|
|
11317
11317
|
}, [props.value]);
|
|
11318
|
-
return
|
|
11318
|
+
return React.createElement("div", {
|
|
11319
11319
|
className: 'kts-invoice-operate-goods-list-itemName-input'
|
|
11320
|
-
}, props.shorthand &&
|
|
11320
|
+
}, props.shorthand && React.createElement("span", {
|
|
11321
11321
|
style: {
|
|
11322
11322
|
alignSelf: 'center',
|
|
11323
11323
|
fontSize: 12
|
|
11324
11324
|
}
|
|
11325
|
-
}, "*", props.shorthand, "*"),
|
|
11325
|
+
}, "*", props.shorthand, "*"), React.createElement(AutoComplete$1, {
|
|
11326
11326
|
onSearch: onSearch,
|
|
11327
11327
|
value: props.value,
|
|
11328
11328
|
options: options.map(function (e) {
|
|
@@ -11332,7 +11332,7 @@ function ItemNameInput(props) {
|
|
|
11332
11332
|
};
|
|
11333
11333
|
}),
|
|
11334
11334
|
onSelect: onChangeAutoComplete
|
|
11335
|
-
},
|
|
11335
|
+
}, React.createElement(Input, {
|
|
11336
11336
|
style: {
|
|
11337
11337
|
height: '100%',
|
|
11338
11338
|
border: 'none'
|
|
@@ -11441,9 +11441,9 @@ function ItemCodeInput(props) {
|
|
|
11441
11441
|
return _ref2.apply(this, arguments);
|
|
11442
11442
|
};
|
|
11443
11443
|
}(), [options, controller]);
|
|
11444
|
-
return
|
|
11444
|
+
return React.createElement("div", {
|
|
11445
11445
|
className: 'kts-invoice-operate-goods-list-itemCode-input'
|
|
11446
|
-
},
|
|
11446
|
+
}, React.createElement(AutoComplete$1, {
|
|
11447
11447
|
onSearch: onSearch,
|
|
11448
11448
|
value: props.value,
|
|
11449
11449
|
options: options.map(function (e) {
|
|
@@ -11452,7 +11452,7 @@ function ItemCodeInput(props) {
|
|
|
11452
11452
|
};
|
|
11453
11453
|
}),
|
|
11454
11454
|
onSelect: onChangeAutoComplete
|
|
11455
|
-
},
|
|
11455
|
+
}, React.createElement(Input, {
|
|
11456
11456
|
style: {
|
|
11457
11457
|
height: '100%',
|
|
11458
11458
|
border: 'none'
|
|
@@ -12633,7 +12633,7 @@ function Drag$1(props) {
|
|
|
12633
12633
|
var currentGood = controller.state.goodsListState.goodsList.filter(function (e) {
|
|
12634
12634
|
return e.$index === record.$index;
|
|
12635
12635
|
})[0];
|
|
12636
|
-
mounting(
|
|
12636
|
+
mounting(React.createElement(DragDiv, _objectSpread2({}, currentGood)));
|
|
12637
12637
|
rowList.forEach(function (e) {
|
|
12638
12638
|
e.addEventListener('mousemove', onMousemove);
|
|
12639
12639
|
});
|
|
@@ -12794,7 +12794,7 @@ function Drag$1(props) {
|
|
|
12794
12794
|
|
|
12795
12795
|
|
|
12796
12796
|
function insert() {
|
|
12797
|
-
mounting(
|
|
12797
|
+
mounting(React.createElement(React.Fragment, null));
|
|
12798
12798
|
controller.run( /*#__PURE__*/function () {
|
|
12799
12799
|
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(s) {
|
|
12800
12800
|
var _s$goodsListState$dra, container, current, site, goodsList, goodsMap, _currentGood, currentIndex, moveGoods;
|
|
@@ -12873,7 +12873,7 @@ function Drag$1(props) {
|
|
|
12873
12873
|
}
|
|
12874
12874
|
}, [controller, record, disabled]);
|
|
12875
12875
|
var renderButton = React.useMemo(function () {
|
|
12876
|
-
return
|
|
12876
|
+
return React.createElement(Button, {
|
|
12877
12877
|
type: 'link',
|
|
12878
12878
|
style: {
|
|
12879
12879
|
padding: 0
|
|
@@ -12884,13 +12884,13 @@ function Drag$1(props) {
|
|
|
12884
12884
|
},
|
|
12885
12885
|
className: "kts-invoice-operate-goods-list-itemName-drag",
|
|
12886
12886
|
onMouseOver: controller.saveEditGood
|
|
12887
|
-
},
|
|
12887
|
+
}, React.createElement(Icon, {
|
|
12888
12888
|
component: SvgI001
|
|
12889
12889
|
}));
|
|
12890
12890
|
}, [onMouseDown, controller]);
|
|
12891
12891
|
|
|
12892
12892
|
if (disabled) {
|
|
12893
|
-
return
|
|
12893
|
+
return React.createElement(Popover, {
|
|
12894
12894
|
content: '您还有未编辑完成的商品',
|
|
12895
12895
|
trigger: 'focus'
|
|
12896
12896
|
}, renderButton);
|
|
@@ -12930,13 +12930,13 @@ function DragDiv(props) {
|
|
|
12930
12930
|
window.removeEventListener('mousemove', onMousemove);
|
|
12931
12931
|
};
|
|
12932
12932
|
});
|
|
12933
|
-
return
|
|
12933
|
+
return React.createElement("div", {
|
|
12934
12934
|
className: "kts-invoice-operate-goods-list-itemName-drag-div",
|
|
12935
12935
|
style: {
|
|
12936
12936
|
top: y,
|
|
12937
12937
|
left: x
|
|
12938
12938
|
}
|
|
12939
|
-
},
|
|
12939
|
+
}, React.createElement("span", null, props.itemName), React.createElement("span", null, props.itemModelName), React.createElement("span", null, props.unit));
|
|
12940
12940
|
}
|
|
12941
12941
|
|
|
12942
12942
|
var useColumns = (function (form) {
|
|
@@ -13057,7 +13057,7 @@ var useColumns = (function (form) {
|
|
|
13057
13057
|
width: 40,
|
|
13058
13058
|
align: 'center',
|
|
13059
13059
|
render: function render(_, record) {
|
|
13060
|
-
return
|
|
13060
|
+
return React.createElement(Drag$1, {
|
|
13061
13061
|
record: record
|
|
13062
13062
|
});
|
|
13063
13063
|
}
|
|
@@ -13067,7 +13067,7 @@ var useColumns = (function (form) {
|
|
|
13067
13067
|
dataIndex: 'serialNo',
|
|
13068
13068
|
width: 50,
|
|
13069
13069
|
render: function render(e) {
|
|
13070
|
-
return
|
|
13070
|
+
return React.createElement("span", {
|
|
13071
13071
|
style: {
|
|
13072
13072
|
padding: '0 10px'
|
|
13073
13073
|
}
|
|
@@ -13079,13 +13079,13 @@ var useColumns = (function (form) {
|
|
|
13079
13079
|
width: 119,
|
|
13080
13080
|
render: function render(_, record) {
|
|
13081
13081
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
13082
|
-
return
|
|
13082
|
+
return React.createElement(Form.Item, null, getFieldDecorator('itemCode', {
|
|
13083
13083
|
initialValue: editGood.itemCode,
|
|
13084
13084
|
rules: [].concat(_toConsumableArray(getReplenishRules('itemCode')), [{
|
|
13085
13085
|
pattern: /^.{1,19}$/,
|
|
13086
13086
|
message: '商品编码长度不能超过19位'
|
|
13087
13087
|
}])
|
|
13088
|
-
})(
|
|
13088
|
+
})(React.createElement(ItemCodeInput, {
|
|
13089
13089
|
onChange: function () {
|
|
13090
13090
|
var _onChange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
13091
13091
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
@@ -13111,7 +13111,7 @@ var useColumns = (function (form) {
|
|
|
13111
13111
|
}()
|
|
13112
13112
|
})));
|
|
13113
13113
|
} else {
|
|
13114
|
-
return
|
|
13114
|
+
return React.createElement("span", {
|
|
13115
13115
|
style: {
|
|
13116
13116
|
padding: '0 10px'
|
|
13117
13117
|
}
|
|
@@ -13119,13 +13119,13 @@ var useColumns = (function (form) {
|
|
|
13119
13119
|
}
|
|
13120
13120
|
}
|
|
13121
13121
|
}, {
|
|
13122
|
-
title:
|
|
13122
|
+
title: React.createElement(TitleText, {
|
|
13123
13123
|
required: true
|
|
13124
13124
|
}, "\u9879\u76EE\u540D\u79F0"),
|
|
13125
13125
|
key: 'itemName',
|
|
13126
13126
|
render: function render(_, record) {
|
|
13127
13127
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
13128
|
-
return
|
|
13128
|
+
return React.createElement(Form.Item, null, React.createElement("div", {
|
|
13129
13129
|
style: {
|
|
13130
13130
|
display: 'flex'
|
|
13131
13131
|
}
|
|
@@ -13172,17 +13172,17 @@ var useColumns = (function (form) {
|
|
|
13172
13172
|
return validator;
|
|
13173
13173
|
}()
|
|
13174
13174
|
}])
|
|
13175
|
-
})(
|
|
13175
|
+
})(React.createElement(ItemNameInput, {
|
|
13176
13176
|
editGood: editGood,
|
|
13177
13177
|
shorthand: editGood.shorthand,
|
|
13178
13178
|
onChange: function onChange() {
|
|
13179
13179
|
onChangeItemName(controller, form, record);
|
|
13180
13180
|
}
|
|
13181
|
-
})),
|
|
13181
|
+
})), React.createElement("div", {
|
|
13182
13182
|
className: "kts-invoice-operate-goods-list-able-list-itemName-import"
|
|
13183
|
-
}, controller.getGoodsList && model !== 'readOnly' &&
|
|
13183
|
+
}, controller.getGoodsList && model !== 'readOnly' && React.createElement(Tooltip, {
|
|
13184
13184
|
title: "\u70B9\u51FB\u4ECE\u5546\u54C1\u7BA1\u7406\u4E2D\u6DFB\u52A0\u5546\u54C1\u4FE1\u606F"
|
|
13185
|
-
},
|
|
13185
|
+
}, React.createElement(Button, {
|
|
13186
13186
|
onClick: controller.pipeline( /*#__PURE__*/function () {
|
|
13187
13187
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(s) {
|
|
13188
13188
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
@@ -13207,7 +13207,7 @@ var useColumns = (function (form) {
|
|
|
13207
13207
|
icon: "plus-circle"
|
|
13208
13208
|
})))));
|
|
13209
13209
|
} else {
|
|
13210
|
-
return
|
|
13210
|
+
return React.createElement(MyItemNameDiv, {
|
|
13211
13211
|
valueT: formatSearch(getItemNameWithShorthand({
|
|
13212
13212
|
shorthand: record.shorthand,
|
|
13213
13213
|
full: record.itemNameSelf || ''
|
|
@@ -13221,17 +13221,17 @@ var useColumns = (function (form) {
|
|
|
13221
13221
|
}
|
|
13222
13222
|
}
|
|
13223
13223
|
}, {
|
|
13224
|
-
title:
|
|
13224
|
+
title: React.createElement(TitleText, {
|
|
13225
13225
|
rules: (_columnsReplenish$ite = columnsReplenish['itemModelName']) === null || _columnsReplenish$ite === void 0 ? void 0 : _columnsReplenish$ite.rules
|
|
13226
13226
|
}, "\u89C4\u683C\u578B\u53F7"),
|
|
13227
13227
|
key: 'itemModelName',
|
|
13228
13228
|
width: 119,
|
|
13229
13229
|
render: function render(_, record) {
|
|
13230
13230
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
13231
|
-
return
|
|
13231
|
+
return React.createElement(Form.Item, null, getFieldDecorator('itemModelName', {
|
|
13232
13232
|
initialValue: isMyShow ? editGood.itemModelNameSelf : editGood.itemModelName,
|
|
13233
13233
|
rules: getReplenishRules('itemModelName')
|
|
13234
|
-
})(
|
|
13234
|
+
})(React.createElement(MyInput, {
|
|
13235
13235
|
onChange: function () {
|
|
13236
13236
|
var _onChange2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5() {
|
|
13237
13237
|
var key, value;
|
|
@@ -13264,7 +13264,7 @@ var useColumns = (function (form) {
|
|
|
13264
13264
|
}()
|
|
13265
13265
|
})));
|
|
13266
13266
|
} else {
|
|
13267
|
-
return
|
|
13267
|
+
return React.createElement(MyItemNameDiv, {
|
|
13268
13268
|
valueT: formatSearch(record.itemModelNameSelf, searchValue),
|
|
13269
13269
|
valueF: formatSearch(record.itemModelName, searchValue),
|
|
13270
13270
|
isMyShow: isMyShow
|
|
@@ -13272,17 +13272,17 @@ var useColumns = (function (form) {
|
|
|
13272
13272
|
}
|
|
13273
13273
|
}
|
|
13274
13274
|
}, {
|
|
13275
|
-
title:
|
|
13275
|
+
title: React.createElement(TitleText, {
|
|
13276
13276
|
rules: (_columnsReplenish$uni = columnsReplenish['unit']) === null || _columnsReplenish$uni === void 0 ? void 0 : _columnsReplenish$uni.rules
|
|
13277
13277
|
}, "\u5355\u4F4D"),
|
|
13278
13278
|
key: 'unit',
|
|
13279
13279
|
width: 70,
|
|
13280
13280
|
render: function render(_, record) {
|
|
13281
13281
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
13282
|
-
return
|
|
13282
|
+
return React.createElement(Form.Item, null, getFieldDecorator('unit', {
|
|
13283
13283
|
initialValue: editGood.unit,
|
|
13284
13284
|
rules: getReplenishRules('unit')
|
|
13285
|
-
})(
|
|
13285
|
+
})(React.createElement(AutoComplete$2, {
|
|
13286
13286
|
style: {
|
|
13287
13287
|
width: '100%'
|
|
13288
13288
|
},
|
|
@@ -13320,7 +13320,7 @@ var useColumns = (function (form) {
|
|
|
13320
13320
|
}()
|
|
13321
13321
|
})));
|
|
13322
13322
|
} else {
|
|
13323
|
-
return
|
|
13323
|
+
return React.createElement("span", {
|
|
13324
13324
|
style: {
|
|
13325
13325
|
padding: '0 10px'
|
|
13326
13326
|
}
|
|
@@ -13328,7 +13328,7 @@ var useColumns = (function (form) {
|
|
|
13328
13328
|
}
|
|
13329
13329
|
}
|
|
13330
13330
|
}, {
|
|
13331
|
-
title:
|
|
13331
|
+
title: React.createElement(TitleText, {
|
|
13332
13332
|
rules: (_columnsReplenish$qua = columnsReplenish['quantity']) === null || _columnsReplenish$qua === void 0 ? void 0 : _columnsReplenish$qua.rules
|
|
13333
13333
|
}, "\u6570\u91CF"),
|
|
13334
13334
|
dataIndex: 'quantity',
|
|
@@ -13337,7 +13337,7 @@ var useColumns = (function (form) {
|
|
|
13337
13337
|
width: 149,
|
|
13338
13338
|
render: function render(value, record) {
|
|
13339
13339
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
13340
|
-
return
|
|
13340
|
+
return React.createElement(Form.Item, null, getFieldDecorator('quantity', {
|
|
13341
13341
|
initialValue: nonScientificNotation(editGood.quantity),
|
|
13342
13342
|
getValueFromEvent: onNumberValueChange,
|
|
13343
13343
|
rules: [].concat(_toConsumableArray(getReplenishRules('quantity')), [{
|
|
@@ -13383,7 +13383,7 @@ var useColumns = (function (form) {
|
|
|
13383
13383
|
return validator;
|
|
13384
13384
|
}()
|
|
13385
13385
|
}])
|
|
13386
|
-
})(
|
|
13386
|
+
})(React.createElement(MyInput, {
|
|
13387
13387
|
style: {
|
|
13388
13388
|
textAlign: 'right'
|
|
13389
13389
|
},
|
|
@@ -13415,7 +13415,7 @@ var useColumns = (function (form) {
|
|
|
13415
13415
|
}()
|
|
13416
13416
|
})));
|
|
13417
13417
|
} else {
|
|
13418
|
-
return
|
|
13418
|
+
return React.createElement("span", {
|
|
13419
13419
|
style: {
|
|
13420
13420
|
padding: '0 10px'
|
|
13421
13421
|
}
|
|
@@ -13423,7 +13423,7 @@ var useColumns = (function (form) {
|
|
|
13423
13423
|
}
|
|
13424
13424
|
}
|
|
13425
13425
|
}, {
|
|
13426
|
-
title:
|
|
13426
|
+
title: React.createElement(TitleText, {
|
|
13427
13427
|
rules: (_columnsReplenish$pri = columnsReplenish['priceIncludeTax']) === null || _columnsReplenish$pri === void 0 ? void 0 : _columnsReplenish$pri.rules
|
|
13428
13428
|
}, "\u5355\u4EF7(\u542B\u7A0E)"),
|
|
13429
13429
|
dataIndex: 'priceIncludeTax',
|
|
@@ -13432,7 +13432,7 @@ var useColumns = (function (form) {
|
|
|
13432
13432
|
width: 149,
|
|
13433
13433
|
render: function render(value, record) {
|
|
13434
13434
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
13435
|
-
return
|
|
13435
|
+
return React.createElement(Form.Item, null, getFieldDecorator('priceIncludeTax', {
|
|
13436
13436
|
initialValue: nonScientificNotation(editGood.priceIncludeTax),
|
|
13437
13437
|
getValueFromEvent: onNumberValueChange,
|
|
13438
13438
|
rules: [].concat(_toConsumableArray(getReplenishRules('priceIncludeTax')), [{
|
|
@@ -13478,7 +13478,7 @@ var useColumns = (function (form) {
|
|
|
13478
13478
|
return validator;
|
|
13479
13479
|
}()
|
|
13480
13480
|
}])
|
|
13481
|
-
})(
|
|
13481
|
+
})(React.createElement(MyInput, {
|
|
13482
13482
|
style: {
|
|
13483
13483
|
textAlign: 'right'
|
|
13484
13484
|
},
|
|
@@ -13490,7 +13490,7 @@ var useColumns = (function (form) {
|
|
|
13490
13490
|
}
|
|
13491
13491
|
})));
|
|
13492
13492
|
} else {
|
|
13493
|
-
return
|
|
13493
|
+
return React.createElement("span", {
|
|
13494
13494
|
style: {
|
|
13495
13495
|
padding: '0 10px'
|
|
13496
13496
|
}
|
|
@@ -13498,7 +13498,7 @@ var useColumns = (function (form) {
|
|
|
13498
13498
|
}
|
|
13499
13499
|
}
|
|
13500
13500
|
}, {
|
|
13501
|
-
title:
|
|
13501
|
+
title: React.createElement(TitleText, {
|
|
13502
13502
|
rules: (_columnsReplenish$pri2 = columnsReplenish['priceExcludeTax']) === null || _columnsReplenish$pri2 === void 0 ? void 0 : _columnsReplenish$pri2.rules
|
|
13503
13503
|
}, "\u5355\u4EF7(\u4E0D\u542B\u7A0E)"),
|
|
13504
13504
|
dataIndex: 'priceExcludeTax',
|
|
@@ -13507,7 +13507,7 @@ var useColumns = (function (form) {
|
|
|
13507
13507
|
width: 149,
|
|
13508
13508
|
render: function render(value, record) {
|
|
13509
13509
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
13510
|
-
return
|
|
13510
|
+
return React.createElement(Form.Item, null, getFieldDecorator('priceExcludeTax', {
|
|
13511
13511
|
initialValue: nonScientificNotation(editGood.priceExcludeTax),
|
|
13512
13512
|
getValueFromEvent: onNumberValueChange,
|
|
13513
13513
|
rules: [].concat(_toConsumableArray(getReplenishRules('priceExcludeTax')), [{
|
|
@@ -13553,7 +13553,7 @@ var useColumns = (function (form) {
|
|
|
13553
13553
|
return validator;
|
|
13554
13554
|
}()
|
|
13555
13555
|
}])
|
|
13556
|
-
})(
|
|
13556
|
+
})(React.createElement(MyInput, {
|
|
13557
13557
|
style: {
|
|
13558
13558
|
textAlign: 'right'
|
|
13559
13559
|
},
|
|
@@ -13565,7 +13565,7 @@ var useColumns = (function (form) {
|
|
|
13565
13565
|
}
|
|
13566
13566
|
})));
|
|
13567
13567
|
} else {
|
|
13568
|
-
return
|
|
13568
|
+
return React.createElement("span", {
|
|
13569
13569
|
style: {
|
|
13570
13570
|
padding: '0 10px'
|
|
13571
13571
|
}
|
|
@@ -13573,7 +13573,7 @@ var useColumns = (function (form) {
|
|
|
13573
13573
|
}
|
|
13574
13574
|
}
|
|
13575
13575
|
}, {
|
|
13576
|
-
title:
|
|
13576
|
+
title: React.createElement(TitleText, {
|
|
13577
13577
|
required: true
|
|
13578
13578
|
}, "\u91D1\u989D(\u542B\u7A0E)"),
|
|
13579
13579
|
dataIndex: 'lineAmountIncludeTax',
|
|
@@ -13582,7 +13582,7 @@ var useColumns = (function (form) {
|
|
|
13582
13582
|
align: 'right',
|
|
13583
13583
|
render: function render(value, record) {
|
|
13584
13584
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
13585
|
-
return
|
|
13585
|
+
return React.createElement(Form.Item, null, getFieldDecorator('lineAmountIncludeTax', {
|
|
13586
13586
|
initialValue: editGood.lineAmountIncludeTax,
|
|
13587
13587
|
getValueFromEvent: onNumberValueChange,
|
|
13588
13588
|
rules: [].concat(_toConsumableArray(getReplenishRules('lineAmountIncludeTax')), [{
|
|
@@ -13642,7 +13642,7 @@ var useColumns = (function (form) {
|
|
|
13642
13642
|
return validator;
|
|
13643
13643
|
}()
|
|
13644
13644
|
}])
|
|
13645
|
-
})(
|
|
13645
|
+
})(React.createElement(MyInput, {
|
|
13646
13646
|
style: {
|
|
13647
13647
|
textAlign: 'right'
|
|
13648
13648
|
},
|
|
@@ -13653,7 +13653,7 @@ var useColumns = (function (form) {
|
|
|
13653
13653
|
}
|
|
13654
13654
|
})));
|
|
13655
13655
|
} else {
|
|
13656
|
-
return
|
|
13656
|
+
return React.createElement("span", {
|
|
13657
13657
|
style: {
|
|
13658
13658
|
padding: '0 10px'
|
|
13659
13659
|
}
|
|
@@ -13661,7 +13661,7 @@ var useColumns = (function (form) {
|
|
|
13661
13661
|
}
|
|
13662
13662
|
}
|
|
13663
13663
|
}, {
|
|
13664
|
-
title:
|
|
13664
|
+
title: React.createElement(TitleText, {
|
|
13665
13665
|
required: true
|
|
13666
13666
|
}, "\u91D1\u989D(\u4E0D\u542B\u7A0E)"),
|
|
13667
13667
|
dataIndex: 'lineAmountExcludeTax',
|
|
@@ -13670,7 +13670,7 @@ var useColumns = (function (form) {
|
|
|
13670
13670
|
width: 119,
|
|
13671
13671
|
render: function render(value, record) {
|
|
13672
13672
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
13673
|
-
return
|
|
13673
|
+
return React.createElement(Form.Item, null, getFieldDecorator('lineAmountExcludeTax', {
|
|
13674
13674
|
initialValue: editGood.lineAmountExcludeTax,
|
|
13675
13675
|
getValueFromEvent: onNumberValueChange,
|
|
13676
13676
|
rules: [].concat(_toConsumableArray(getReplenishRules('lineAmountExcludeTax')), [{
|
|
@@ -13705,7 +13705,7 @@ var useColumns = (function (form) {
|
|
|
13705
13705
|
return validator;
|
|
13706
13706
|
}()
|
|
13707
13707
|
}])
|
|
13708
|
-
})(
|
|
13708
|
+
})(React.createElement(MyInput, {
|
|
13709
13709
|
style: {
|
|
13710
13710
|
textAlign: 'right'
|
|
13711
13711
|
},
|
|
@@ -13716,7 +13716,7 @@ var useColumns = (function (form) {
|
|
|
13716
13716
|
}
|
|
13717
13717
|
})));
|
|
13718
13718
|
} else {
|
|
13719
|
-
return
|
|
13719
|
+
return React.createElement("span", {
|
|
13720
13720
|
style: {
|
|
13721
13721
|
padding: '0 10px'
|
|
13722
13722
|
}
|
|
@@ -13724,7 +13724,7 @@ var useColumns = (function (form) {
|
|
|
13724
13724
|
}
|
|
13725
13725
|
}
|
|
13726
13726
|
}, {
|
|
13727
|
-
title:
|
|
13727
|
+
title: React.createElement(TitleText, {
|
|
13728
13728
|
required: true
|
|
13729
13729
|
}, "\u7A0E\u7387%"),
|
|
13730
13730
|
dataIndex: 'taxRate',
|
|
@@ -13733,7 +13733,7 @@ var useColumns = (function (form) {
|
|
|
13733
13733
|
width: 75,
|
|
13734
13734
|
render: function render(value, record) {
|
|
13735
13735
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
13736
|
-
return
|
|
13736
|
+
return React.createElement(Form.Item, null, getFieldDecorator('taxRate', {
|
|
13737
13737
|
initialValue: editGood.taxRate,
|
|
13738
13738
|
rules: [].concat(_toConsumableArray(getReplenishRules('taxRate')), [{
|
|
13739
13739
|
required: true,
|
|
@@ -13742,7 +13742,7 @@ var useColumns = (function (form) {
|
|
|
13742
13742
|
pattern: /^[+-]?(0|([1-9]\d*))(\.\d+)?$/,
|
|
13743
13743
|
message: '请选择正确税率'
|
|
13744
13744
|
}])
|
|
13745
|
-
})(
|
|
13745
|
+
})(React.createElement(Select, {
|
|
13746
13746
|
className: "kts-invoice-operate-goods-list-table-tax-rate",
|
|
13747
13747
|
dropdownMenuStyle: {
|
|
13748
13748
|
textAlign: "right"
|
|
@@ -13756,13 +13756,13 @@ var useColumns = (function (form) {
|
|
|
13756
13756
|
onChangeTaxRate(controller, form, record);
|
|
13757
13757
|
}
|
|
13758
13758
|
}, taxRateList.map(function (e, i) {
|
|
13759
|
-
return
|
|
13759
|
+
return React.createElement(Select.Option, {
|
|
13760
13760
|
key: i,
|
|
13761
13761
|
value: e
|
|
13762
13762
|
}, e, "%");
|
|
13763
13763
|
}))));
|
|
13764
13764
|
} else {
|
|
13765
|
-
return
|
|
13765
|
+
return React.createElement("span", {
|
|
13766
13766
|
style: {
|
|
13767
13767
|
padding: '0 10px'
|
|
13768
13768
|
}
|
|
@@ -13770,7 +13770,7 @@ var useColumns = (function (form) {
|
|
|
13770
13770
|
}
|
|
13771
13771
|
}
|
|
13772
13772
|
}, {
|
|
13773
|
-
title:
|
|
13773
|
+
title: React.createElement(TitleText, {
|
|
13774
13774
|
rules: (_columnsReplenish$tax = columnsReplenish['taxAmount']) === null || _columnsReplenish$tax === void 0 ? void 0 : _columnsReplenish$tax.rules
|
|
13775
13775
|
}, "\u7A0E\u989D"),
|
|
13776
13776
|
dataIndex: 'taxAmount',
|
|
@@ -13782,11 +13782,11 @@ var useColumns = (function (form) {
|
|
|
13782
13782
|
return getFieldDecorator('taxAmount', {
|
|
13783
13783
|
initialValue: editGood.taxAmount,
|
|
13784
13784
|
rules: getReplenishRules('taxAmount')
|
|
13785
|
-
})(
|
|
13785
|
+
})(React.createElement(MyDiv, {
|
|
13786
13786
|
loading: isCipher(changeField, 'taxAmount')
|
|
13787
13787
|
}));
|
|
13788
13788
|
} else {
|
|
13789
|
-
return
|
|
13789
|
+
return React.createElement("span", {
|
|
13790
13790
|
style: {
|
|
13791
13791
|
padding: '0 10px'
|
|
13792
13792
|
}
|
|
@@ -13801,42 +13801,42 @@ var useColumns = (function (form) {
|
|
|
13801
13801
|
render: function render(e) {
|
|
13802
13802
|
switch (e) {
|
|
13803
13803
|
case LineAttributeType$1.折扣行:
|
|
13804
|
-
return
|
|
13804
|
+
return React.createElement("span", {
|
|
13805
13805
|
style: {
|
|
13806
13806
|
padding: '0 10px'
|
|
13807
13807
|
}
|
|
13808
13808
|
}, "\u6298\u6263\u884C");
|
|
13809
13809
|
|
|
13810
13810
|
case LineAttributeType$1.被折扣行:
|
|
13811
|
-
return
|
|
13811
|
+
return React.createElement("span", {
|
|
13812
13812
|
style: {
|
|
13813
13813
|
padding: '0 10px'
|
|
13814
13814
|
}
|
|
13815
13815
|
}, "\u88AB\u6298\u6263\u884C");
|
|
13816
13816
|
|
|
13817
13817
|
case LineAttributeType$1.赠品行:
|
|
13818
|
-
return
|
|
13818
|
+
return React.createElement("span", {
|
|
13819
13819
|
style: {
|
|
13820
13820
|
padding: '0 10px'
|
|
13821
13821
|
}
|
|
13822
13822
|
}, "\u8D60\u54C1\u884C");
|
|
13823
13823
|
|
|
13824
13824
|
case LineAttributeType$1.折让行:
|
|
13825
|
-
return
|
|
13825
|
+
return React.createElement("span", {
|
|
13826
13826
|
style: {
|
|
13827
13827
|
padding: '0 10px'
|
|
13828
13828
|
}
|
|
13829
13829
|
}, "\u6298\u8BA9\u884C");
|
|
13830
13830
|
|
|
13831
13831
|
case LineAttributeType$1.正常:
|
|
13832
|
-
return
|
|
13832
|
+
return React.createElement("span", {
|
|
13833
13833
|
style: {
|
|
13834
13834
|
padding: '0 10px'
|
|
13835
13835
|
}
|
|
13836
13836
|
}, "\u6B63\u5E38\u884C");
|
|
13837
13837
|
|
|
13838
13838
|
default:
|
|
13839
|
-
return
|
|
13839
|
+
return React.createElement("span", {
|
|
13840
13840
|
style: {
|
|
13841
13841
|
padding: '0 10px'
|
|
13842
13842
|
}
|
|
@@ -13850,7 +13850,7 @@ var useColumns = (function (form) {
|
|
|
13850
13850
|
width: 130,
|
|
13851
13851
|
fixed: 'right',
|
|
13852
13852
|
render: function render(_value, record) {
|
|
13853
|
-
return
|
|
13853
|
+
return React.createElement(RowMenu, {
|
|
13854
13854
|
key: record.lineAttribute,
|
|
13855
13855
|
goods: record
|
|
13856
13856
|
});
|
|
@@ -13905,13 +13905,13 @@ var MyInput = /*#__PURE__*/function (_React$Component) {
|
|
|
13905
13905
|
key: "render",
|
|
13906
13906
|
value: function render() {
|
|
13907
13907
|
if (this.props.loading) {
|
|
13908
|
-
return
|
|
13908
|
+
return React.createElement(Spin, {
|
|
13909
13909
|
size: "small"
|
|
13910
|
-
},
|
|
13910
|
+
}, React.createElement(Input, _objectSpread2(_objectSpread2({}, this.props), {}, {
|
|
13911
13911
|
autoComplete: "off"
|
|
13912
13912
|
})));
|
|
13913
13913
|
} else {
|
|
13914
|
-
return
|
|
13914
|
+
return React.createElement(Input, _objectSpread2(_objectSpread2({}, this.props), {}, {
|
|
13915
13915
|
autoComplete: "off"
|
|
13916
13916
|
}));
|
|
13917
13917
|
}
|
|
@@ -13936,15 +13936,15 @@ var MyDiv = /*#__PURE__*/function (_React$Component2) {
|
|
|
13936
13936
|
key: "render",
|
|
13937
13937
|
value: function render() {
|
|
13938
13938
|
if (this.props.loading) {
|
|
13939
|
-
return
|
|
13939
|
+
return React.createElement(Spin, {
|
|
13940
13940
|
size: "small"
|
|
13941
|
-
},
|
|
13941
|
+
}, React.createElement("span", {
|
|
13942
13942
|
style: {
|
|
13943
13943
|
padding: '0 10px'
|
|
13944
13944
|
}
|
|
13945
13945
|
}, this.props.value));
|
|
13946
13946
|
} else {
|
|
13947
|
-
return
|
|
13947
|
+
return React.createElement("span", {
|
|
13948
13948
|
style: {
|
|
13949
13949
|
padding: '0 10px'
|
|
13950
13950
|
}
|
|
@@ -13977,9 +13977,9 @@ var MyItemNameDiv = /*#__PURE__*/function (_React$Component3) {
|
|
|
13977
13977
|
|
|
13978
13978
|
if (isMyShow) {
|
|
13979
13979
|
if (valueT) {
|
|
13980
|
-
return
|
|
13980
|
+
return React.createElement(Tooltip, {
|
|
13981
13981
|
title: valueT
|
|
13982
|
-
},
|
|
13982
|
+
}, React.createElement("span", {
|
|
13983
13983
|
style: {
|
|
13984
13984
|
padding: '0 10px',
|
|
13985
13985
|
color: '#0074ff',
|
|
@@ -13990,9 +13990,9 @@ var MyItemNameDiv = /*#__PURE__*/function (_React$Component3) {
|
|
|
13990
13990
|
}
|
|
13991
13991
|
}, valueT));
|
|
13992
13992
|
} else {
|
|
13993
|
-
return
|
|
13993
|
+
return React.createElement(Tooltip, {
|
|
13994
13994
|
title: valueF
|
|
13995
|
-
},
|
|
13995
|
+
}, React.createElement("span", {
|
|
13996
13996
|
style: {
|
|
13997
13997
|
padding: '0 10px',
|
|
13998
13998
|
display: 'block',
|
|
@@ -14004,9 +14004,9 @@ var MyItemNameDiv = /*#__PURE__*/function (_React$Component3) {
|
|
|
14004
14004
|
}
|
|
14005
14005
|
} else {
|
|
14006
14006
|
if (valueF) {
|
|
14007
|
-
return
|
|
14007
|
+
return React.createElement(Tooltip, {
|
|
14008
14008
|
title: valueF
|
|
14009
|
-
},
|
|
14009
|
+
}, React.createElement("span", {
|
|
14010
14010
|
style: {
|
|
14011
14011
|
padding: '0 10px',
|
|
14012
14012
|
display: 'block',
|
|
@@ -14016,9 +14016,9 @@ var MyItemNameDiv = /*#__PURE__*/function (_React$Component3) {
|
|
|
14016
14016
|
}
|
|
14017
14017
|
}, valueF));
|
|
14018
14018
|
} else {
|
|
14019
|
-
return
|
|
14019
|
+
return React.createElement(Tooltip, {
|
|
14020
14020
|
title: valueT
|
|
14021
|
-
},
|
|
14021
|
+
}, React.createElement("span", {
|
|
14022
14022
|
style: {
|
|
14023
14023
|
padding: '0 10px',
|
|
14024
14024
|
color: '#0074ff',
|
|
@@ -14045,7 +14045,7 @@ function formatSearch(value, search) {
|
|
|
14045
14045
|
return dcoding(e);
|
|
14046
14046
|
}).join("<span class=\"kts-invoice-operate-goods-list-table-search-protrude\" >".concat(search, "</span>"));
|
|
14047
14047
|
|
|
14048
|
-
return
|
|
14048
|
+
return React.createElement("span", {
|
|
14049
14049
|
dangerouslySetInnerHTML: {
|
|
14050
14050
|
__html: __html
|
|
14051
14051
|
}
|
|
@@ -14470,7 +14470,7 @@ var useRowSelection = (function () {
|
|
|
14470
14470
|
};
|
|
14471
14471
|
}(), [controller]);
|
|
14472
14472
|
var columnTitle = React.useMemo(function () {
|
|
14473
|
-
return
|
|
14473
|
+
return React.createElement(Checkbox, {
|
|
14474
14474
|
onChange: onClickSelectAll,
|
|
14475
14475
|
indeterminate: indeterminate,
|
|
14476
14476
|
checked: isAll
|
|
@@ -14671,16 +14671,16 @@ var useEndowCodeButton = (function () {
|
|
|
14671
14671
|
}, _callee2);
|
|
14672
14672
|
})), [controller]);
|
|
14673
14673
|
var menuItem = React.useMemo(function () {
|
|
14674
|
-
if (model === 'readOnly') return
|
|
14675
|
-
return
|
|
14674
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
14675
|
+
return React.createElement(Menu.Item, {
|
|
14676
14676
|
key: "2",
|
|
14677
14677
|
onClick: onClick,
|
|
14678
14678
|
disabled: disabled
|
|
14679
14679
|
}, "\u6279\u91CF\u8D4B\u7801");
|
|
14680
14680
|
}, [onClick, disabled, model]);
|
|
14681
14681
|
var button = React.useMemo(function () {
|
|
14682
|
-
if (model === 'readOnly') return
|
|
14683
|
-
return
|
|
14682
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
14683
|
+
return React.createElement(Button, {
|
|
14684
14684
|
onClick: onClick,
|
|
14685
14685
|
disabled: disabled
|
|
14686
14686
|
}, "\u6279\u91CF\u8D4B\u7801");
|
|
@@ -14746,19 +14746,19 @@ var useDelRowButton = (function () {
|
|
|
14746
14746
|
}())();
|
|
14747
14747
|
}, [controller]);
|
|
14748
14748
|
var menuItem = React.useMemo(function () {
|
|
14749
|
-
if (model === 'prefab') return
|
|
14750
|
-
if (model === 'readOnly') return
|
|
14751
|
-
return
|
|
14749
|
+
if (model === 'prefab') return React.createElement(React.Fragment, null);
|
|
14750
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
14751
|
+
return React.createElement(Menu.Item, {
|
|
14752
14752
|
key: "1",
|
|
14753
14753
|
onClick: onClick,
|
|
14754
14754
|
disabled: disabled
|
|
14755
14755
|
}, " \u5220\u9664\u884C ");
|
|
14756
14756
|
}, [model, onClick, disabled]);
|
|
14757
14757
|
var button = React.useMemo(function () {
|
|
14758
|
-
if (isRemRow === false) return
|
|
14759
|
-
if (model === 'prefab') return
|
|
14760
|
-
if (model === 'readOnly') return
|
|
14761
|
-
return
|
|
14758
|
+
if (isRemRow === false) return React.createElement(React.Fragment, null);
|
|
14759
|
+
if (model === 'prefab') return React.createElement(React.Fragment, null);
|
|
14760
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
14761
|
+
return React.createElement(Button, {
|
|
14762
14762
|
onClick: onClick,
|
|
14763
14763
|
disabled: disabled
|
|
14764
14764
|
}, "\u6279\u91CF\u5220\u9664");
|
|
@@ -14953,14 +14953,14 @@ var useAddDiscountRowButton = (function () {
|
|
|
14953
14953
|
}, _callee3);
|
|
14954
14954
|
})), [controller]);
|
|
14955
14955
|
var menuItem = React.useMemo(function () {
|
|
14956
|
-
return model === 'prefab' ?
|
|
14956
|
+
return model === 'prefab' ? React.createElement(React.Fragment, null) : isAddDiscount !== false ? React.createElement(Menu.Item, {
|
|
14957
14957
|
key: "0",
|
|
14958
14958
|
onClick: onClick,
|
|
14959
14959
|
disabled: disabled
|
|
14960
14960
|
}, "\u6DFB\u52A0\u6298\u6263\u884C") : undefined;
|
|
14961
14961
|
}, [isAddDiscount, disabled, onClick]);
|
|
14962
14962
|
var drawer = React.useMemo(function () {
|
|
14963
|
-
return
|
|
14963
|
+
return React.createElement(Drawer, {
|
|
14964
14964
|
className: "kts-invoice-operate-goods-list-add-discount-row",
|
|
14965
14965
|
width: 540,
|
|
14966
14966
|
title: "\u6DFB\u52A0\u6298\u6263\u884C",
|
|
@@ -14968,7 +14968,7 @@ var useAddDiscountRowButton = (function () {
|
|
|
14968
14968
|
destroyOnClose: true,
|
|
14969
14969
|
onClose: onClose,
|
|
14970
14970
|
visible: visible
|
|
14971
|
-
},
|
|
14971
|
+
}, React.createElement(DrawerBody, null));
|
|
14972
14972
|
}, [visible, onClose]);
|
|
14973
14973
|
return {
|
|
14974
14974
|
menuItem: menuItem,
|
|
@@ -15085,13 +15085,13 @@ var DrawerBody = decorator(Form.create())(function (props) {
|
|
|
15085
15085
|
});
|
|
15086
15086
|
});
|
|
15087
15087
|
}, 300), [form, lineAmountSum]);
|
|
15088
|
-
return
|
|
15088
|
+
return React.createElement(React.Fragment, null, React.createElement("div", {
|
|
15089
15089
|
className: "add-discount-row-body"
|
|
15090
|
-
},
|
|
15090
|
+
}, React.createElement("p", null, "\u5F53\u524D\u9009\u62E9", React.createElement(Text$3, {
|
|
15091
15091
|
type: "danger"
|
|
15092
|
-
}, discountGoodIndex.length), "\u884C\u88AB\u6298\u6263\u5546\u54C1\u884C\uFF0C\u91D1\u989D\u5408\u8BA1\xA5",
|
|
15092
|
+
}, discountGoodIndex.length), "\u884C\u88AB\u6298\u6263\u5546\u54C1\u884C\uFF0C\u91D1\u989D\u5408\u8BA1\xA5", React.createElement(Text$3, {
|
|
15093
15093
|
type: "danger"
|
|
15094
|
-
}, lineAmountSum.toFixed(2))),
|
|
15094
|
+
}, lineAmountSum.toFixed(2))), React.createElement(Form.Item, {
|
|
15095
15095
|
label: "\u6298\u6263\u7387\uFF1A"
|
|
15096
15096
|
}, getFieldDecorator('discount', {
|
|
15097
15097
|
rules: [{
|
|
@@ -15121,11 +15121,11 @@ var DrawerBody = decorator(Form.create())(function (props) {
|
|
|
15121
15121
|
callback();
|
|
15122
15122
|
}
|
|
15123
15123
|
}]
|
|
15124
|
-
})(
|
|
15124
|
+
})(React.createElement(Input, {
|
|
15125
15125
|
placeholder: "\u8BF7\u8F93\u5165\u5927\u4E8E0\u5C0F\u4E8E100\u7684\u6570\u5B57",
|
|
15126
15126
|
suffix: "%",
|
|
15127
15127
|
onChange: onChangeDiscount
|
|
15128
|
-
}))),
|
|
15128
|
+
}))), React.createElement(Form.Item, {
|
|
15129
15129
|
label: "\u6298\u6263\u91D1\u989D\uFF1A"
|
|
15130
15130
|
}, getFieldDecorator('discolineAmountunt', {
|
|
15131
15131
|
rules: [{
|
|
@@ -15155,19 +15155,19 @@ var DrawerBody = decorator(Form.create())(function (props) {
|
|
|
15155
15155
|
callback();
|
|
15156
15156
|
}
|
|
15157
15157
|
}]
|
|
15158
|
-
})(
|
|
15158
|
+
})(React.createElement(Input, {
|
|
15159
15159
|
placeholder: "\u8BF7\u8F93\u5165\u5927\u4E8E0\u5C0F\u4E8E\u91D1\u989D\u5408\u8BA1\u7684\u6570\u5B57",
|
|
15160
15160
|
suffix: "\xA5",
|
|
15161
15161
|
onChange: onChangeDiscolineAmountunt
|
|
15162
|
-
})))),
|
|
15162
|
+
})))), React.createElement("div", {
|
|
15163
15163
|
className: "add-discount-row-footer"
|
|
15164
|
-
},
|
|
15164
|
+
}, React.createElement(Button, {
|
|
15165
15165
|
block: true,
|
|
15166
15166
|
style: {
|
|
15167
15167
|
marginBottom: 12
|
|
15168
15168
|
},
|
|
15169
15169
|
onClick: onClose
|
|
15170
|
-
}, "\u53D6\u6D88"),
|
|
15170
|
+
}, "\u53D6\u6D88"), React.createElement(Button, {
|
|
15171
15171
|
type: "primary",
|
|
15172
15172
|
block: true,
|
|
15173
15173
|
onClick: onClickSave
|
|
@@ -15264,13 +15264,13 @@ function useMergeDetails() {
|
|
|
15264
15264
|
}];
|
|
15265
15265
|
}, [selectedGoodIndex, onClickManual, onClickAuto]);
|
|
15266
15266
|
var button = React.useMemo(function () {
|
|
15267
|
-
if (!isMergeDetails) return
|
|
15268
|
-
return
|
|
15267
|
+
if (!isMergeDetails) return React.createElement(React.Fragment, null);
|
|
15268
|
+
return React.createElement(Dropdown$1, {
|
|
15269
15269
|
menu: {
|
|
15270
15270
|
items: items
|
|
15271
15271
|
},
|
|
15272
15272
|
trigger: ['click']
|
|
15273
|
-
},
|
|
15273
|
+
}, React.createElement(Button, null, "\u5408\u5E76\u660E\u7EC6"));
|
|
15274
15274
|
}, [selectedGoodIndex.length, isMergeDetails]);
|
|
15275
15275
|
return {
|
|
15276
15276
|
/** 按钮 */
|
|
@@ -15356,8 +15356,8 @@ function useMergeDiscount() {
|
|
|
15356
15356
|
}, _callee);
|
|
15357
15357
|
})), [controller]);
|
|
15358
15358
|
var button = React.useMemo(function () {
|
|
15359
|
-
if (!isMergeDiscount) return
|
|
15360
|
-
return
|
|
15359
|
+
if (!isMergeDiscount) return React.createElement(React.Fragment, null);
|
|
15360
|
+
return React.createElement(Button, {
|
|
15361
15361
|
onClick: onClick,
|
|
15362
15362
|
disabled: goodsList.length <= 1
|
|
15363
15363
|
}, "\u5408\u5E76\u6298\u6263");
|
|
@@ -15535,8 +15535,8 @@ function useSalesDiscount() {
|
|
|
15535
15535
|
}).length <= 0;
|
|
15536
15536
|
}, [goodsList]);
|
|
15537
15537
|
var button = React.useMemo(function () {
|
|
15538
|
-
if (!isSalesDiscount) return
|
|
15539
|
-
return
|
|
15538
|
+
if (!isSalesDiscount) return React.createElement(React.Fragment, null);
|
|
15539
|
+
return React.createElement(Button, {
|
|
15540
15540
|
onClick: onClick,
|
|
15541
15541
|
disabled: disabled
|
|
15542
15542
|
}, "\u9500\u552E\u6298\u8BA9");
|
|
@@ -15707,12 +15707,12 @@ function useSalesGifts() {
|
|
|
15707
15707
|
}, [selectedGoodIndex, onClickManual, onClickAuto]);
|
|
15708
15708
|
var button = React.useMemo(function () {
|
|
15709
15709
|
if (!isSalesGifts) return;
|
|
15710
|
-
return
|
|
15710
|
+
return React.createElement(Dropdown$1, {
|
|
15711
15711
|
menu: {
|
|
15712
15712
|
items: items
|
|
15713
15713
|
},
|
|
15714
15714
|
trigger: ['click']
|
|
15715
|
-
},
|
|
15715
|
+
}, React.createElement(Button, null, "\u9500\u552E\u8D60\u54C1"));
|
|
15716
15716
|
}, [items, isSalesGifts]);
|
|
15717
15717
|
return {
|
|
15718
15718
|
/** 按钮 */
|
|
@@ -15750,7 +15750,7 @@ var GoodsList = /*#__PURE__*/function (_React$Component) {
|
|
|
15750
15750
|
_createClass(GoodsList, [{
|
|
15751
15751
|
key: "render",
|
|
15752
15752
|
value: function render() {
|
|
15753
|
-
return
|
|
15753
|
+
return React.createElement(Main, _objectSpread2({}, this.props));
|
|
15754
15754
|
}
|
|
15755
15755
|
}]);
|
|
15756
15756
|
|
|
@@ -15952,22 +15952,22 @@ var Main = decorator(Form.create())(function (props) {
|
|
|
15952
15952
|
};
|
|
15953
15953
|
}())();
|
|
15954
15954
|
}, [controller, props.isSwitchTax]);
|
|
15955
|
-
return
|
|
15955
|
+
return React.createElement("div", {
|
|
15956
15956
|
className: "kts-invoice-operate-goods-list",
|
|
15957
15957
|
onClick: function onClick(e) {
|
|
15958
15958
|
e.stopPropagation();
|
|
15959
15959
|
}
|
|
15960
|
-
},
|
|
15960
|
+
}, React.createElement("div", {
|
|
15961
15961
|
className: "kts-invoice-operate-goods-list-able"
|
|
15962
|
-
},
|
|
15962
|
+
}, React.createElement("div", {
|
|
15963
15963
|
className: "kts-invoice-operate-goods-list-able-list"
|
|
15964
|
-
},
|
|
15964
|
+
}, 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", {
|
|
15965
15965
|
className: "kts-invoice-operate-goods-list-able-extend"
|
|
15966
|
-
}, props.menuExpansion,
|
|
15966
|
+
}, props.menuExpansion, React.createElement(DescribeSwitch, null), React.createElement(TaxIncludedSwitch, null))), React.createElement("div", {
|
|
15967
15967
|
className: classNames('kts-invoice-operate-goods-list-table', {
|
|
15968
15968
|
'kts-invoice-operate-prefab': isprefab
|
|
15969
15969
|
})
|
|
15970
|
-
},
|
|
15970
|
+
}, React.createElement(TableVirtual, {
|
|
15971
15971
|
bordered: true,
|
|
15972
15972
|
size: "small",
|
|
15973
15973
|
rowKey: "$index",
|
|
@@ -15990,7 +15990,7 @@ var Main = decorator(Form.create())(function (props) {
|
|
|
15990
15990
|
}
|
|
15991
15991
|
};
|
|
15992
15992
|
}
|
|
15993
|
-
})),
|
|
15993
|
+
})), React.createElement("div", null, React.createElement(Statistics, null)));
|
|
15994
15994
|
});
|
|
15995
15995
|
|
|
15996
15996
|
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";
|
|
@@ -16015,7 +16015,7 @@ var Buyer = /*#__PURE__*/function (_React$Component) {
|
|
|
16015
16015
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
16016
16016
|
|
|
16017
16017
|
_this.render = function () {
|
|
16018
|
-
return
|
|
16018
|
+
return React.createElement(Main$1, _objectSpread2({}, _this.props));
|
|
16019
16019
|
};
|
|
16020
16020
|
|
|
16021
16021
|
return _this;
|
|
@@ -16046,7 +16046,7 @@ var Main$1 = decorator(Form.create())(function (props) {
|
|
|
16046
16046
|
return [{
|
|
16047
16047
|
id: 'sellerName',
|
|
16048
16048
|
label: '销售方名称',
|
|
16049
|
-
node:
|
|
16049
|
+
node: React.createElement(Input, {
|
|
16050
16050
|
readOnly: model === 'prefab',
|
|
16051
16051
|
size: "small"
|
|
16052
16052
|
}),
|
|
@@ -16059,7 +16059,7 @@ var Main$1 = decorator(Form.create())(function (props) {
|
|
|
16059
16059
|
}, {
|
|
16060
16060
|
id: 'sellerNo',
|
|
16061
16061
|
label: '销售方纳税人识别号',
|
|
16062
|
-
node:
|
|
16062
|
+
node: React.createElement(Input, {
|
|
16063
16063
|
readOnly: model === 'prefab',
|
|
16064
16064
|
size: "small"
|
|
16065
16065
|
}),
|
|
@@ -16072,7 +16072,7 @@ var Main$1 = decorator(Form.create())(function (props) {
|
|
|
16072
16072
|
}, {
|
|
16073
16073
|
id: 'sellerAddress',
|
|
16074
16074
|
label: '销售方地址及电话',
|
|
16075
|
-
node:
|
|
16075
|
+
node: React.createElement(Input, {
|
|
16076
16076
|
readOnly: model === 'prefab',
|
|
16077
16077
|
size: "small"
|
|
16078
16078
|
}),
|
|
@@ -16085,7 +16085,7 @@ var Main$1 = decorator(Form.create())(function (props) {
|
|
|
16085
16085
|
}, {
|
|
16086
16086
|
id: 'sellerBank',
|
|
16087
16087
|
label: '销售方开户行及账号',
|
|
16088
|
-
node:
|
|
16088
|
+
node: React.createElement(Input, {
|
|
16089
16089
|
readOnly: model === 'prefab',
|
|
16090
16090
|
size: "small"
|
|
16091
16091
|
}),
|
|
@@ -16111,31 +16111,31 @@ var Main$1 = decorator(Form.create())(function (props) {
|
|
|
16111
16111
|
return getFieldDecorator(e.id, e.options)(e.node);
|
|
16112
16112
|
}
|
|
16113
16113
|
}, [props.formRender]);
|
|
16114
|
-
return
|
|
16114
|
+
return React.createElement(Form, null, React.createElement("div", {
|
|
16115
16115
|
className: "kts-invoice-operate-seller"
|
|
16116
|
-
},
|
|
16116
|
+
}, React.createElement("div", {
|
|
16117
16117
|
className: "kts-invoice-operate-seller-message"
|
|
16118
|
-
},
|
|
16118
|
+
}, React.createElement("div", {
|
|
16119
16119
|
className: "kts-invoice-operate-seller-title"
|
|
16120
|
-
},
|
|
16120
|
+
}, React.createElement("label", null, "\u9500\u552E\u65B9")), React.createElement(Descriptions, {
|
|
16121
16121
|
className: "kts-invoice-operate-seller-message-list",
|
|
16122
16122
|
size: "small",
|
|
16123
16123
|
column: 1,
|
|
16124
16124
|
bordered: true
|
|
16125
16125
|
}, formItem.map(function (e, i) {
|
|
16126
|
-
return
|
|
16126
|
+
return React.createElement(Descriptions.Item, {
|
|
16127
16127
|
key: i,
|
|
16128
16128
|
label: e.label
|
|
16129
|
-
},
|
|
16130
|
-
}))),
|
|
16129
|
+
}, React.createElement(Form.Item, null, createFormItem(e)));
|
|
16130
|
+
}))), React.createElement("div", {
|
|
16131
16131
|
className: "kts-invoice-operate-seller-remarks"
|
|
16132
|
-
},
|
|
16132
|
+
}, React.createElement("div", {
|
|
16133
16133
|
className: "kts-invoice-operate-seller-title"
|
|
16134
|
-
},
|
|
16134
|
+
}, React.createElement("label", null, "\u5907\u6CE8")), React.createElement("div", {
|
|
16135
16135
|
className: "kts-invoice-operate-seller-remarks-value"
|
|
16136
16136
|
}, getFieldDecorator('remarks', {
|
|
16137
16137
|
initialValue: props.defaultsellerRemarks
|
|
16138
|
-
})(
|
|
16138
|
+
})(React.createElement(TextArea, null))))));
|
|
16139
16139
|
});
|
|
16140
16140
|
|
|
16141
16141
|
var ImportBuyerButton = (function () {
|
|
@@ -16162,7 +16162,7 @@ var ImportBuyerButton = (function () {
|
|
|
16162
16162
|
};
|
|
16163
16163
|
}())();
|
|
16164
16164
|
}, [controller]);
|
|
16165
|
-
return
|
|
16165
|
+
return React.createElement(React.Fragment, null, controller.getBuyerList && React.createElement(Button, {
|
|
16166
16166
|
type: "link",
|
|
16167
16167
|
icon: "plus-circle",
|
|
16168
16168
|
onClick: onClick
|
|
@@ -16201,29 +16201,29 @@ var BuyerNameInput = (function (props) {
|
|
|
16201
16201
|
var content = React.useMemo(function () {
|
|
16202
16202
|
var _dataSource$recent;
|
|
16203
16203
|
|
|
16204
|
-
return
|
|
16204
|
+
return React.createElement("div", {
|
|
16205
16205
|
className: 'kts-invoice-operate-buyer-name-content'
|
|
16206
|
-
}, loading ?
|
|
16206
|
+
}, loading ? React.createElement("div", {
|
|
16207
16207
|
style: {
|
|
16208
16208
|
textAlign: 'center'
|
|
16209
16209
|
}
|
|
16210
|
-
},
|
|
16210
|
+
}, React.createElement(Spin, null)) : React.createElement(React.Fragment, null, React.createElement("div", {
|
|
16211
16211
|
className: 'kts-invoice-operate-buyer-name-content-block',
|
|
16212
16212
|
style: {
|
|
16213
16213
|
padding: '14px 10px'
|
|
16214
16214
|
}
|
|
16215
|
-
},
|
|
16215
|
+
}, React.createElement("label", {
|
|
16216
16216
|
style: {
|
|
16217
16217
|
marginBottom: 10
|
|
16218
16218
|
}
|
|
16219
|
-
}, "\u6700\u8FD1\u5F00\u5177"),
|
|
16219
|
+
}, "\u6700\u8FD1\u5F00\u5177"), React.createElement("ul", {
|
|
16220
16220
|
className: 'kts-invoice-operate-buyer-name-content-recently-issued'
|
|
16221
|
-
}, !dataSource.recent || dataSource.recent.length <= 0 ?
|
|
16221
|
+
}, !dataSource.recent || dataSource.recent.length <= 0 ? React.createElement(Empty, {
|
|
16222
16222
|
image: Empty.PRESENTED_IMAGE_SIMPLE
|
|
16223
16223
|
}) : (_dataSource$recent = dataSource.recent) === null || _dataSource$recent === void 0 ? void 0 : _dataSource$recent.map(function (e, i) {
|
|
16224
16224
|
var _dataSource$recent$le, _dataSource$recent2;
|
|
16225
16225
|
|
|
16226
|
-
return
|
|
16226
|
+
return React.createElement("li", {
|
|
16227
16227
|
key: i,
|
|
16228
16228
|
onClick: function onClick() {
|
|
16229
16229
|
onClickItem(e);
|
|
@@ -16231,37 +16231,37 @@ var BuyerNameInput = (function (props) {
|
|
|
16231
16231
|
style: {
|
|
16232
16232
|
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)
|
|
16233
16233
|
}
|
|
16234
|
-
},
|
|
16235
|
-
}))),
|
|
16234
|
+
}, React.createElement(MyTag, null, e.buyerName));
|
|
16235
|
+
}))), React.createElement(Divider, {
|
|
16236
16236
|
style: {
|
|
16237
16237
|
margin: "0 6px"
|
|
16238
16238
|
}
|
|
16239
|
-
}),
|
|
16239
|
+
}), React.createElement("div", {
|
|
16240
16240
|
className: 'kts-invoice-operate-buyer-name-content-block',
|
|
16241
16241
|
style: {
|
|
16242
16242
|
padding: '14px 10px 4px'
|
|
16243
16243
|
}
|
|
16244
|
-
},
|
|
16244
|
+
}, React.createElement("label", {
|
|
16245
16245
|
style: {
|
|
16246
16246
|
padding: '0 10px'
|
|
16247
16247
|
}
|
|
16248
|
-
}, "\u9009\u62E9\u516C\u53F8"),
|
|
16248
|
+
}, "\u9009\u62E9\u516C\u53F8"), React.createElement("div", {
|
|
16249
16249
|
style: {
|
|
16250
16250
|
maxHeight: 200,
|
|
16251
16251
|
overflow: "auto"
|
|
16252
16252
|
}
|
|
16253
|
-
}, !dataSource.list || dataSource.list.length <= 0 ?
|
|
16253
|
+
}, !dataSource.list || dataSource.list.length <= 0 ? React.createElement(Empty, {
|
|
16254
16254
|
image: Empty.PRESENTED_IMAGE_SIMPLE
|
|
16255
16255
|
}) : dataSource.list.map(function (e, i) {
|
|
16256
|
-
return
|
|
16256
|
+
return React.createElement("ul", {
|
|
16257
16257
|
key: i,
|
|
16258
16258
|
onClick: function onClick() {
|
|
16259
16259
|
onClickItem(e);
|
|
16260
16260
|
},
|
|
16261
16261
|
className: 'kts-invoice-operate-buyer-name-content-select-company'
|
|
16262
|
-
},
|
|
16262
|
+
}, React.createElement("li", {
|
|
16263
16263
|
title: e.buyerName
|
|
16264
|
-
}, e.buyerName),
|
|
16264
|
+
}, e.buyerName), React.createElement("li", {
|
|
16265
16265
|
title: e.buyerNo
|
|
16266
16266
|
}, e.buyerNo));
|
|
16267
16267
|
})))));
|
|
@@ -16302,7 +16302,7 @@ var BuyerNameInput = (function (props) {
|
|
|
16302
16302
|
}, [visible, props.value]);
|
|
16303
16303
|
|
|
16304
16304
|
if (model === 'prefab' || !autoContainer) {
|
|
16305
|
-
return
|
|
16305
|
+
return React.createElement(Input, {
|
|
16306
16306
|
size: "small",
|
|
16307
16307
|
autoComplete: "off",
|
|
16308
16308
|
value: props.value,
|
|
@@ -16313,14 +16313,14 @@ var BuyerNameInput = (function (props) {
|
|
|
16313
16313
|
});
|
|
16314
16314
|
}
|
|
16315
16315
|
|
|
16316
|
-
return
|
|
16316
|
+
return React.createElement(Popover$1, {
|
|
16317
16317
|
onVisibleChange: setVisible,
|
|
16318
16318
|
overlayClassName: 'kts-invoice-operate-buyer-name-popover',
|
|
16319
16319
|
placement: "bottomLeft",
|
|
16320
16320
|
trigger: "click",
|
|
16321
16321
|
visible: visible,
|
|
16322
16322
|
content: content
|
|
16323
|
-
},
|
|
16323
|
+
}, React.createElement(Input, {
|
|
16324
16324
|
size: "small",
|
|
16325
16325
|
autoComplete: "off",
|
|
16326
16326
|
value: props.value,
|
|
@@ -16398,7 +16398,7 @@ function useDataSource() {
|
|
|
16398
16398
|
}
|
|
16399
16399
|
|
|
16400
16400
|
function MyTag(props) {
|
|
16401
|
-
return
|
|
16401
|
+
return React.createElement("span", {
|
|
16402
16402
|
className: 'kts-invoice-operate-buyer-name-content-tag',
|
|
16403
16403
|
title: props.children
|
|
16404
16404
|
}, props.children);
|
|
@@ -16434,7 +16434,7 @@ var Buyer$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
16434
16434
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
16435
16435
|
|
|
16436
16436
|
_this.render = function () {
|
|
16437
|
-
return
|
|
16437
|
+
return React.createElement(Main$2, _objectSpread2({}, _this.props));
|
|
16438
16438
|
};
|
|
16439
16439
|
|
|
16440
16440
|
return _this;
|
|
@@ -16465,7 +16465,7 @@ var Main$2 = decorator(Form.create())(function (props) {
|
|
|
16465
16465
|
return [{
|
|
16466
16466
|
id: 'buyerName',
|
|
16467
16467
|
label: '购买方名称',
|
|
16468
|
-
node:
|
|
16468
|
+
node: React.createElement(Input, {
|
|
16469
16469
|
size: "small",
|
|
16470
16470
|
autoComplete: "off",
|
|
16471
16471
|
readOnly: model === 'prefab'
|
|
@@ -16479,7 +16479,7 @@ var Main$2 = decorator(Form.create())(function (props) {
|
|
|
16479
16479
|
}, {
|
|
16480
16480
|
id: 'buyerNo',
|
|
16481
16481
|
label: '购买方纳税人识别号',
|
|
16482
|
-
node:
|
|
16482
|
+
node: React.createElement(Input, {
|
|
16483
16483
|
size: "small",
|
|
16484
16484
|
autoComplete: "off",
|
|
16485
16485
|
readOnly: model === 'prefab'
|
|
@@ -16493,7 +16493,7 @@ var Main$2 = decorator(Form.create())(function (props) {
|
|
|
16493
16493
|
}, {
|
|
16494
16494
|
id: 'buyerAddress',
|
|
16495
16495
|
label: '购买方地址及电话',
|
|
16496
|
-
node:
|
|
16496
|
+
node: React.createElement(Input, {
|
|
16497
16497
|
size: "small",
|
|
16498
16498
|
autoComplete: "off",
|
|
16499
16499
|
readOnly: model === 'prefab'
|
|
@@ -16507,7 +16507,7 @@ var Main$2 = decorator(Form.create())(function (props) {
|
|
|
16507
16507
|
}, {
|
|
16508
16508
|
id: 'buyerBank',
|
|
16509
16509
|
label: '购买方开户行及账号',
|
|
16510
|
-
node:
|
|
16510
|
+
node: React.createElement(Input, {
|
|
16511
16511
|
size: "small",
|
|
16512
16512
|
autoComplete: "off",
|
|
16513
16513
|
readOnly: model === 'prefab'
|
|
@@ -16529,7 +16529,7 @@ var Main$2 = decorator(Form.create())(function (props) {
|
|
|
16529
16529
|
if (e.options.rules.some(function (e) {
|
|
16530
16530
|
return e.required;
|
|
16531
16531
|
})) {
|
|
16532
|
-
return
|
|
16532
|
+
return React.createElement(React.Fragment, null, React.createElement(Text$4, {
|
|
16533
16533
|
type: "danger"
|
|
16534
16534
|
}, "*"), e.label);
|
|
16535
16535
|
} else {
|
|
@@ -16539,29 +16539,29 @@ var Main$2 = decorator(Form.create())(function (props) {
|
|
|
16539
16539
|
return e.label;
|
|
16540
16540
|
}
|
|
16541
16541
|
}, []);
|
|
16542
|
-
return
|
|
16542
|
+
return React.createElement(Form, null, React.createElement("div", {
|
|
16543
16543
|
className: "kts-invoice-operate-buyer"
|
|
16544
|
-
},
|
|
16544
|
+
}, React.createElement("div", {
|
|
16545
16545
|
className: "kts-invoice-operate-buyer-message"
|
|
16546
|
-
},
|
|
16546
|
+
}, React.createElement("div", {
|
|
16547
16547
|
className: "kts-invoice-operate-buyer-title"
|
|
16548
|
-
},
|
|
16548
|
+
}, React.createElement("label", null, "\u8D2D\u4E70\u65B9")), React.createElement("div", {
|
|
16549
16549
|
className: "kts-invoice-operate-buyer-message-Import"
|
|
16550
|
-
}, model !== 'prefab' &&
|
|
16550
|
+
}, model !== 'prefab' && React.createElement(ImportBuyerButton, null)), React.createElement(Descriptions, {
|
|
16551
16551
|
className: "kts-invoice-operate-buyer-message-list",
|
|
16552
16552
|
size: "small",
|
|
16553
16553
|
column: 1,
|
|
16554
16554
|
bordered: true
|
|
16555
16555
|
}, formItem.map(function (item, i) {
|
|
16556
|
-
return
|
|
16556
|
+
return React.createElement(Descriptions.Item, {
|
|
16557
16557
|
key: i,
|
|
16558
16558
|
label: getlabel(item)
|
|
16559
|
-
},
|
|
16560
|
-
}))),
|
|
16559
|
+
}, React.createElement(Form.Item, null, getFieldDecorator(item.id, item.options)(autoContainer ? item.id === 'buyerName' ? React.createElement(BuyerNameInput, null) : item.node : item.node)));
|
|
16560
|
+
}))), React.createElement("div", {
|
|
16561
16561
|
className: "kts-invoice-operate-buyer-password"
|
|
16562
|
-
},
|
|
16562
|
+
}, React.createElement("div", {
|
|
16563
16563
|
className: "kts-invoice-operate-buyer-title"
|
|
16564
|
-
},
|
|
16564
|
+
}, React.createElement("label", null, "\u5BC6\u7801\u533A")), React.createElement("div", null))));
|
|
16565
16565
|
});
|
|
16566
16566
|
|
|
16567
16567
|
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";
|
|
@@ -16578,21 +16578,21 @@ var Sign = decorator(Form.create())(function (props) {
|
|
|
16578
16578
|
}, []); // 注册 form
|
|
16579
16579
|
|
|
16580
16580
|
controller.useForm('sign', form);
|
|
16581
|
-
return
|
|
16581
|
+
return React.createElement("div", {
|
|
16582
16582
|
className: "kts-invoice-operate-sign"
|
|
16583
|
-
},
|
|
16583
|
+
}, React.createElement(Form, _objectSpread2({}, formItemLayout), React.createElement("div", null, React.createElement(Form.Item, {
|
|
16584
16584
|
label: "\u6536\u6B3E\u4EBA"
|
|
16585
16585
|
}, getFieldDecorator('payee', {
|
|
16586
16586
|
initialValue: props.defaultPayee
|
|
16587
|
-
})(
|
|
16587
|
+
})(React.createElement(Input, {
|
|
16588
16588
|
size: "small"
|
|
16589
|
-
})))),
|
|
16589
|
+
})))), React.createElement("div", null, React.createElement(Form.Item, {
|
|
16590
16590
|
label: "\u590D\u6838\u4EBA"
|
|
16591
16591
|
}, getFieldDecorator('reviewer', {
|
|
16592
16592
|
initialValue: props.defaultReviewer
|
|
16593
|
-
})(
|
|
16593
|
+
})(React.createElement(Input, {
|
|
16594
16594
|
size: "small"
|
|
16595
|
-
})))),
|
|
16595
|
+
})))), React.createElement("div", null, React.createElement(Form.Item, {
|
|
16596
16596
|
label: "\u5F00\u7968\u4EBA"
|
|
16597
16597
|
}, getFieldDecorator('issuer', {
|
|
16598
16598
|
initialValue: props.defaultIssuer,
|
|
@@ -16600,7 +16600,7 @@ var Sign = decorator(Form.create())(function (props) {
|
|
|
16600
16600
|
required: true,
|
|
16601
16601
|
message: '请输入开票人'
|
|
16602
16602
|
}]
|
|
16603
|
-
})(
|
|
16603
|
+
})(React.createElement(Input, {
|
|
16604
16604
|
size: "small"
|
|
16605
16605
|
}))))));
|
|
16606
16606
|
});
|
|
@@ -16629,21 +16629,21 @@ var InvoiceHeaderDigtal = decorator(Form.create())(function (props) {
|
|
|
16629
16629
|
return '电子发票(增值税专用发票)';
|
|
16630
16630
|
}, [props.title]);
|
|
16631
16631
|
controller.useForm('invoiceHeader', form);
|
|
16632
|
-
return
|
|
16632
|
+
return React.createElement("div", {
|
|
16633
16633
|
className: "kts-invoice-operate-invoice-digtal-header"
|
|
16634
|
-
},
|
|
16634
|
+
}, React.createElement("div", {
|
|
16635
16635
|
className: "digtal-header-title"
|
|
16636
16636
|
}, title), form.getFieldDecorator('tag', {
|
|
16637
16637
|
initialValue: props.defaultTag
|
|
16638
|
-
})(
|
|
16638
|
+
})(React.createElement(Tag, null)), React.createElement("div", {
|
|
16639
16639
|
className: "digtal-header-fields"
|
|
16640
16640
|
}, form.getFieldDecorator('no', {
|
|
16641
16641
|
initialValue: props.defaultNo
|
|
16642
|
-
})(
|
|
16642
|
+
})(React.createElement(Field, {
|
|
16643
16643
|
title: "\u53D1\u7968\u53F7\u7801\uFF1A"
|
|
16644
16644
|
})), form.getFieldDecorator('invoicingDate', {
|
|
16645
16645
|
initialValue: props.defaultInvoicingDate
|
|
16646
|
-
})(
|
|
16646
|
+
})(React.createElement(Field, {
|
|
16647
16647
|
title: "\u5F00\u7968\u65E5\u671F\uFF1A"
|
|
16648
16648
|
}))));
|
|
16649
16649
|
});
|
|
@@ -16668,15 +16668,15 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
16668
16668
|
value = _this$props.value;
|
|
16669
16669
|
|
|
16670
16670
|
if (value) {
|
|
16671
|
-
return
|
|
16671
|
+
return React.createElement("div", {
|
|
16672
16672
|
className: "digtal-header-field"
|
|
16673
|
-
},
|
|
16673
|
+
}, React.createElement("div", {
|
|
16674
16674
|
className: "digtal-header-field-title"
|
|
16675
|
-
}, title),
|
|
16675
|
+
}, title), React.createElement("div", {
|
|
16676
16676
|
className: "digtal-header-field-value"
|
|
16677
16677
|
}, value));
|
|
16678
16678
|
} else {
|
|
16679
|
-
return
|
|
16679
|
+
return React.createElement(React.Fragment, null);
|
|
16680
16680
|
}
|
|
16681
16681
|
}
|
|
16682
16682
|
}]);
|
|
@@ -16698,9 +16698,9 @@ var Tag = /*#__PURE__*/function (_React$Component2) {
|
|
|
16698
16698
|
_createClass(Tag, [{
|
|
16699
16699
|
key: "render",
|
|
16700
16700
|
value: function render() {
|
|
16701
|
-
return this.props.value ?
|
|
16701
|
+
return this.props.value ? React.createElement("div", {
|
|
16702
16702
|
className: "digtal-header-tag"
|
|
16703
|
-
}, this.props.value) :
|
|
16703
|
+
}, this.props.value) : React.createElement(React.Fragment, null);
|
|
16704
16704
|
}
|
|
16705
16705
|
}]);
|
|
16706
16706
|
|
|
@@ -16876,57 +16876,57 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
16876
16876
|
return rulesMap[field] || defaultRules;
|
|
16877
16877
|
}, [rulesMap, isReadOnly, isReadOnly]);
|
|
16878
16878
|
controller.useForm('stakeholder', form);
|
|
16879
|
-
return
|
|
16879
|
+
return React.createElement("div", {
|
|
16880
16880
|
className: classNames("kts-invoice-operate-invoice-digtal-stakeholder", {
|
|
16881
16881
|
readOnly: readOnly
|
|
16882
16882
|
})
|
|
16883
|
-
},
|
|
16884
|
-
return
|
|
16885
|
-
}), !readOnly &&
|
|
16883
|
+
}, React.createElement("div", null, '购买方信息'.split('').map(function (e) {
|
|
16884
|
+
return React.createElement("span", null, e);
|
|
16885
|
+
}), !readOnly && React.createElement(Icon, {
|
|
16886
16886
|
className: "digtal-stakeholder-expand-button",
|
|
16887
16887
|
component: isExpand ? SvgArrowUp : SvgArrowDown,
|
|
16888
16888
|
onClick: onExpand
|
|
16889
|
-
})),
|
|
16889
|
+
})), React.createElement("div", null, React.createElement(Form, {
|
|
16890
16890
|
className: "digtal-stakeholder-form"
|
|
16891
|
-
},
|
|
16891
|
+
}, React.createElement(Row, {
|
|
16892
16892
|
gutter: [16, 0]
|
|
16893
|
-
}, props.isNaturalPerson === true &&
|
|
16893
|
+
}, props.isNaturalPerson === true && React.createElement(Col, {
|
|
16894
16894
|
span: 24
|
|
16895
|
-
},
|
|
16895
|
+
}, React.createElement(Form.Item, {
|
|
16896
16896
|
label: "\u8D2D\u4E70\u65B9\u4FE1\u606F",
|
|
16897
16897
|
colon: false
|
|
16898
|
-
}, getFieldDecorator('naturalPersonFlag', {})(
|
|
16898
|
+
}, getFieldDecorator('naturalPersonFlag', {})(React.createElement(NaturalPersonFlag, {
|
|
16899
16899
|
readOnly: isReadOnly('naturalPersonFlag')
|
|
16900
|
-
})))),
|
|
16900
|
+
})))), React.createElement(Col, {
|
|
16901
16901
|
span: 24
|
|
16902
|
-
},
|
|
16902
|
+
}, React.createElement(Form.Item, {
|
|
16903
16903
|
label: "\u540D\u79F0",
|
|
16904
16904
|
colon: false
|
|
16905
16905
|
}, getFieldDecorator('buyerName', {
|
|
16906
16906
|
rules: getRules('buyerName', RULES.companyName('购买方名称'))
|
|
16907
|
-
})(
|
|
16907
|
+
})(React.createElement(BuyerNameInput$1, {
|
|
16908
16908
|
myform: form,
|
|
16909
16909
|
fieldName: 'buyerName',
|
|
16910
16910
|
readOnly: isReadOnly('buyerName'),
|
|
16911
16911
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
16912
16912
|
autoComplete: "off",
|
|
16913
|
-
suffix: isShowImportButton === true &&
|
|
16913
|
+
suffix: isShowImportButton === true && React.createElement(Button$1, {
|
|
16914
16914
|
type: 'link',
|
|
16915
16915
|
style: {
|
|
16916
16916
|
padding: 0,
|
|
16917
16917
|
width: 20,
|
|
16918
16918
|
height: '100%'
|
|
16919
16919
|
},
|
|
16920
|
-
icon:
|
|
16920
|
+
icon: React.createElement(Icon, {
|
|
16921
16921
|
component: SvgPlus
|
|
16922
16922
|
}),
|
|
16923
16923
|
onClick: function onClick() {
|
|
16924
16924
|
onClickImportButton && onClickImportButton(controller);
|
|
16925
16925
|
}
|
|
16926
16926
|
})
|
|
16927
|
-
})))),
|
|
16927
|
+
})))), React.createElement(Col, {
|
|
16928
16928
|
span: 24
|
|
16929
|
-
},
|
|
16929
|
+
}, React.createElement(Form.Item, {
|
|
16930
16930
|
label: "\u7EDF\u4E00\u793E\u4F1A\u4FE1\u7528\u4EE3\u7801/\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7",
|
|
16931
16931
|
colon: false
|
|
16932
16932
|
}, getFieldDecorator('buyerTaxId', {
|
|
@@ -16934,15 +16934,15 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
16934
16934
|
required: !isVatNormal,
|
|
16935
16935
|
message: '购买方纳税人识别号必填'
|
|
16936
16936
|
}].concat(_toConsumableArray(RULES.taxId('购买方纳税人识别号'))))
|
|
16937
|
-
})(
|
|
16937
|
+
})(React.createElement(BuyerNameInput$1, {
|
|
16938
16938
|
myform: form,
|
|
16939
16939
|
fieldName: 'buyerTaxId',
|
|
16940
16940
|
readOnly: isReadOnly('buyerTaxId'),
|
|
16941
16941
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
16942
16942
|
autoComplete: "off"
|
|
16943
|
-
})))), isExpand &&
|
|
16943
|
+
})))), isExpand && React.createElement(React.Fragment, null, React.createElement(Col, {
|
|
16944
16944
|
span: 15
|
|
16945
|
-
},
|
|
16945
|
+
}, React.createElement(Form.Item, {
|
|
16946
16946
|
label: "\u8D2D\u4E70\u65B9\u5730\u5740",
|
|
16947
16947
|
colon: false
|
|
16948
16948
|
}, getFieldDecorator('buyerAddress', {
|
|
@@ -16950,77 +16950,77 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
16950
16950
|
max: 100,
|
|
16951
16951
|
message: '购买方地址内容超长'
|
|
16952
16952
|
}])
|
|
16953
|
-
})(
|
|
16953
|
+
})(React.createElement(MyInput$1, {
|
|
16954
16954
|
readOnly: isReadOnly('buyerAddress'),
|
|
16955
16955
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
16956
16956
|
autoComplete: "off"
|
|
16957
|
-
})))),
|
|
16957
|
+
})))), React.createElement(Col, {
|
|
16958
16958
|
span: 9
|
|
16959
|
-
},
|
|
16959
|
+
}, React.createElement(Form.Item, {
|
|
16960
16960
|
label: "\u7535\u8BDD",
|
|
16961
16961
|
colon: false
|
|
16962
16962
|
}, getFieldDecorator('buyerPhone', {
|
|
16963
16963
|
rules: getRules('buyerPhone', RULES.buyerTelPhone('购买方电话'))
|
|
16964
|
-
})(
|
|
16964
|
+
})(React.createElement(MyInput$1, {
|
|
16965
16965
|
readOnly: isReadOnly('buyerPhone'),
|
|
16966
16966
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
16967
16967
|
autoComplete: "off"
|
|
16968
|
-
})))),
|
|
16968
|
+
})))), React.createElement(Col, {
|
|
16969
16969
|
span: 12
|
|
16970
|
-
},
|
|
16970
|
+
}, React.createElement(Form.Item, {
|
|
16971
16971
|
label: "\u8D2D\u4E70\u65B9\u5F00\u6237\u94F6\u884C",
|
|
16972
16972
|
colon: false
|
|
16973
16973
|
}, getFieldDecorator('buyerBank', {
|
|
16974
16974
|
rules: getRules('buyerBank', RULES.bankName('购买方开户银行'))
|
|
16975
|
-
})(
|
|
16975
|
+
})(React.createElement(MyInput$1, {
|
|
16976
16976
|
readOnly: isReadOnly('buyerBank'),
|
|
16977
16977
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
16978
16978
|
autoComplete: "off"
|
|
16979
|
-
})))),
|
|
16979
|
+
})))), React.createElement(Col, {
|
|
16980
16980
|
span: 12
|
|
16981
|
-
},
|
|
16981
|
+
}, React.createElement(Form.Item, {
|
|
16982
16982
|
label: "\u94F6\u884C\u8D26\u53F7",
|
|
16983
16983
|
colon: false
|
|
16984
16984
|
}, getFieldDecorator('buyerAccount', {
|
|
16985
16985
|
rules: getRules('buyerAccount', RULES.bankAccount('购买方银行账号'))
|
|
16986
|
-
})(
|
|
16986
|
+
})(React.createElement(MyInput$1, {
|
|
16987
16987
|
readOnly: isReadOnly('buyerAccount'),
|
|
16988
16988
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
16989
16989
|
autoComplete: "off"
|
|
16990
|
-
})))))))),
|
|
16991
|
-
return
|
|
16992
|
-
}), !readOnly &&
|
|
16990
|
+
})))))))), React.createElement("div", null, '销售方信息'.split('').map(function (e) {
|
|
16991
|
+
return React.createElement("span", null, e);
|
|
16992
|
+
}), !readOnly && React.createElement(Icon, {
|
|
16993
16993
|
className: "digtal-stakeholder-expand-button",
|
|
16994
16994
|
component: isExpand ? SvgArrowUp : SvgArrowDown,
|
|
16995
16995
|
onClick: onExpand
|
|
16996
|
-
})),
|
|
16996
|
+
})), React.createElement("div", null, !readOnly && props.lineCredit && React.createElement("div", {
|
|
16997
16997
|
style: {
|
|
16998
16998
|
marginTop: 20
|
|
16999
16999
|
}
|
|
17000
|
-
},
|
|
17000
|
+
}, React.createElement(Tooltip$1, {
|
|
17001
17001
|
trigger: "click",
|
|
17002
17002
|
title: props.lineCredit
|
|
17003
|
-
},
|
|
17003
|
+
}, React.createElement(Button$1, {
|
|
17004
17004
|
type: "link"
|
|
17005
|
-
}, "\u67E5\u770B\u5F53\u524D\u53EF\u7528\u6388\u4FE1\u989D\u5EA6"))),
|
|
17005
|
+
}, "\u67E5\u770B\u5F53\u524D\u53EF\u7528\u6388\u4FE1\u989D\u5EA6"))), React.createElement(Form, {
|
|
17006
17006
|
className: "digtal-stakeholder-form"
|
|
17007
|
-
},
|
|
17007
|
+
}, React.createElement(Row, {
|
|
17008
17008
|
gutter: [16, 0]
|
|
17009
|
-
},
|
|
17009
|
+
}, React.createElement(Col, {
|
|
17010
17010
|
span: 24
|
|
17011
|
-
},
|
|
17011
|
+
}, React.createElement(Form.Item, {
|
|
17012
17012
|
label: "\u540D\u79F0",
|
|
17013
17013
|
colon: false
|
|
17014
17014
|
}, getFieldDecorator('supplierName', {
|
|
17015
17015
|
rules: getRules('supplierName', RULES.companyName('销售方名称')),
|
|
17016
17016
|
getValueFromEvent: formatCompanyName
|
|
17017
|
-
})(
|
|
17017
|
+
})(React.createElement(MyInput$1, {
|
|
17018
17018
|
readOnly: isReadOnly('supplierName'),
|
|
17019
17019
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
17020
17020
|
autoComplete: "off"
|
|
17021
|
-
})))),
|
|
17021
|
+
})))), React.createElement(Col, {
|
|
17022
17022
|
span: 24
|
|
17023
|
-
},
|
|
17023
|
+
}, React.createElement(Form.Item, {
|
|
17024
17024
|
label: "\u7EDF\u4E00\u793E\u4F1A\u4FE1\u7528\u4EE3\u7801/\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7",
|
|
17025
17025
|
colon: false
|
|
17026
17026
|
}, getFieldDecorator('supplierTaxId', {
|
|
@@ -17028,13 +17028,13 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
17028
17028
|
required: true,
|
|
17029
17029
|
message: '销售方纳税人识别号必填'
|
|
17030
17030
|
}].concat(_toConsumableArray(RULES.taxId('销售方纳税人识别号'))))
|
|
17031
|
-
})(
|
|
17031
|
+
})(React.createElement(MyInput$1, {
|
|
17032
17032
|
readOnly: isReadOnly('supplierTaxId'),
|
|
17033
17033
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
17034
17034
|
autoComplete: "off"
|
|
17035
|
-
})))), isExpand &&
|
|
17035
|
+
})))), isExpand && React.createElement(React.Fragment, null, React.createElement(Col, {
|
|
17036
17036
|
span: 15
|
|
17037
|
-
},
|
|
17037
|
+
}, React.createElement(Form.Item, {
|
|
17038
17038
|
label: "\u9500\u552E\u65B9\u5730\u5740",
|
|
17039
17039
|
colon: false
|
|
17040
17040
|
}, getFieldDecorator('sellerAddress', {
|
|
@@ -17042,40 +17042,40 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
17042
17042
|
max: 300,
|
|
17043
17043
|
message: '销售方地址内容超长'
|
|
17044
17044
|
}])
|
|
17045
|
-
})(
|
|
17045
|
+
})(React.createElement(MyInput$1, {
|
|
17046
17046
|
readOnly: isReadOnly('sellerAddress'),
|
|
17047
17047
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
17048
17048
|
autoComplete: "off"
|
|
17049
|
-
})))),
|
|
17049
|
+
})))), React.createElement(Col, {
|
|
17050
17050
|
span: 9
|
|
17051
|
-
},
|
|
17051
|
+
}, React.createElement(Form.Item, {
|
|
17052
17052
|
label: "\u7535\u8BDD",
|
|
17053
17053
|
colon: false
|
|
17054
17054
|
}, getFieldDecorator('sellerPhone', {
|
|
17055
17055
|
rules: getRules('sellerPhone', RULES.sellerTelPhone('销售方电话'))
|
|
17056
|
-
})(
|
|
17056
|
+
})(React.createElement(MyInput$1, {
|
|
17057
17057
|
readOnly: isReadOnly('sellerPhone'),
|
|
17058
17058
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
17059
17059
|
autoComplete: "off"
|
|
17060
|
-
})))),
|
|
17060
|
+
})))), React.createElement(Col, {
|
|
17061
17061
|
span: 12
|
|
17062
|
-
},
|
|
17062
|
+
}, React.createElement(Form.Item, {
|
|
17063
17063
|
label: "\u9500\u552E\u65B9\u5F00\u6237\u94F6\u884C",
|
|
17064
17064
|
colon: false
|
|
17065
17065
|
}, getFieldDecorator('sellerBank', {
|
|
17066
17066
|
rules: getRules('sellerBank', RULES.bankName('销售方开户银行'))
|
|
17067
|
-
})(
|
|
17067
|
+
})(React.createElement(MyInput$1, {
|
|
17068
17068
|
readOnly: isReadOnly('sellerBank'),
|
|
17069
17069
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
17070
17070
|
autoComplete: "off"
|
|
17071
|
-
})))),
|
|
17071
|
+
})))), React.createElement(Col, {
|
|
17072
17072
|
span: 12
|
|
17073
|
-
},
|
|
17073
|
+
}, React.createElement(Form.Item, {
|
|
17074
17074
|
label: "\u94F6\u884C\u8D26\u53F7",
|
|
17075
17075
|
colon: false
|
|
17076
17076
|
}, getFieldDecorator('sellerAccount', {
|
|
17077
17077
|
rules: getRules('sellerAccount', RULES.bankAccount('销售方银行账号'))
|
|
17078
|
-
})(
|
|
17078
|
+
})(React.createElement(MyInput$1, {
|
|
17079
17079
|
readOnly: isReadOnly('sellerAccount'),
|
|
17080
17080
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
17081
17081
|
autoComplete: "off"
|
|
@@ -17096,7 +17096,7 @@ function NaturalPersonFlag(props) {
|
|
|
17096
17096
|
React.useEffect(function () {
|
|
17097
17097
|
setValue(props.value || 'COMPANY');
|
|
17098
17098
|
}, [props.value]);
|
|
17099
|
-
return
|
|
17099
|
+
return React.createElement(Checkbox$1, {
|
|
17100
17100
|
disabled: props.readOnly,
|
|
17101
17101
|
checked: value === 'NATURAL',
|
|
17102
17102
|
onChange: onChange
|
|
@@ -17199,10 +17199,10 @@ function BuyerNameInput$1(props) {
|
|
|
17199
17199
|
return _ref.apply(this, arguments);
|
|
17200
17200
|
};
|
|
17201
17201
|
}(), [autoComplete.onBuyerNameSearch, fieldName]);
|
|
17202
|
-
if (props.readOnly) return
|
|
17202
|
+
if (props.readOnly) return React.createElement("span", {
|
|
17203
17203
|
className: 'digtal-stakeholder-form-text'
|
|
17204
17204
|
}, props.value);
|
|
17205
|
-
return
|
|
17205
|
+
return React.createElement(AutoComplete$1, {
|
|
17206
17206
|
onSearch: onSearch,
|
|
17207
17207
|
options: options.map(function (e) {
|
|
17208
17208
|
return {
|
|
@@ -17211,7 +17211,7 @@ function BuyerNameInput$1(props) {
|
|
|
17211
17211
|
}),
|
|
17212
17212
|
onChange: onChangeAutoComplete,
|
|
17213
17213
|
value: props.value
|
|
17214
|
-
},
|
|
17214
|
+
}, React.createElement(Input$1, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
17215
17215
|
style: _objectSpread2({
|
|
17216
17216
|
width: '100%'
|
|
17217
17217
|
}, props.style)
|
|
@@ -17235,11 +17235,11 @@ var MyInput$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
17235
17235
|
var props = this.props;
|
|
17236
17236
|
|
|
17237
17237
|
if (props.readOnly) {
|
|
17238
|
-
return
|
|
17238
|
+
return React.createElement("span", {
|
|
17239
17239
|
className: 'digtal-stakeholder-form-text'
|
|
17240
17240
|
}, props.value);
|
|
17241
17241
|
} else {
|
|
17242
|
-
return
|
|
17242
|
+
return React.createElement(Input$1, _objectSpread2({}, props));
|
|
17243
17243
|
}
|
|
17244
17244
|
}
|
|
17245
17245
|
}]);
|
|
@@ -17296,47 +17296,47 @@ var SignDigtal = decorator(Form.create())(function (props) {
|
|
|
17296
17296
|
controller.useForm('sign', form);
|
|
17297
17297
|
|
|
17298
17298
|
if (readOnly) {
|
|
17299
|
-
return
|
|
17299
|
+
return React.createElement("div", {
|
|
17300
17300
|
className: "kts-invoice-operate-sign-digtal-readOnly"
|
|
17301
|
-
},
|
|
17301
|
+
}, React.createElement("div", {
|
|
17302
17302
|
className: 'sign-digtal-readOnly-cont'
|
|
17303
|
-
},
|
|
17303
|
+
}, React.createElement("div", null, React.createElement("span", null, "\u5907"), React.createElement("span", null, "\u6CE8")), React.createElement("div", null, getFieldDecorator('remarks', {
|
|
17304
17304
|
initialValue: props.defaultRemark
|
|
17305
|
-
})(isEnables('remarks') ?
|
|
17305
|
+
})(isEnables('remarks') ? React.createElement(Input$1.TextArea, {
|
|
17306
17306
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
17307
17307
|
style: {
|
|
17308
17308
|
height: '100%'
|
|
17309
17309
|
}
|
|
17310
|
-
}) :
|
|
17310
|
+
}) : React.createElement(MyDiv$1, {
|
|
17311
17311
|
style: {
|
|
17312
17312
|
whiteSpace: 'pre-wrap'
|
|
17313
17313
|
}
|
|
17314
|
-
})))),
|
|
17314
|
+
})))), React.createElement(Form, {
|
|
17315
17315
|
layout: 'inline',
|
|
17316
17316
|
className: 'digtal-readOnly-form'
|
|
17317
|
-
},
|
|
17317
|
+
}, React.createElement(Form.Item, {
|
|
17318
17318
|
label: "\u5F00\u7968\u4EBA"
|
|
17319
17319
|
}, getFieldDecorator('drawer', {
|
|
17320
17320
|
initialValue: props.defaultRemark
|
|
17321
|
-
})(
|
|
17321
|
+
})(React.createElement(MyDiv$1, null)))));
|
|
17322
17322
|
} else {
|
|
17323
|
-
return
|
|
17323
|
+
return React.createElement("div", {
|
|
17324
17324
|
className: "kts-invoice-operate-sign-digtal"
|
|
17325
|
-
},
|
|
17325
|
+
}, React.createElement("div", {
|
|
17326
17326
|
className: 'sign-digtal-label'
|
|
17327
|
-
}, "\u5907\u6CE8\u4FE1\u606F"),
|
|
17327
|
+
}, "\u5907\u6CE8\u4FE1\u606F"), React.createElement(Form, null, React.createElement(Form.Item, {
|
|
17328
17328
|
label: "\u5907\u6CE8"
|
|
17329
17329
|
}, getFieldDecorator('remarks', {
|
|
17330
17330
|
initialValue: props.defaultRemark
|
|
17331
|
-
})(
|
|
17331
|
+
})(React.createElement(Input$1.TextArea, {
|
|
17332
17332
|
readOnly: isReadOnly('remarks'),
|
|
17333
17333
|
autoSize: true,
|
|
17334
17334
|
placeholder: "\u8BF7\u8F93\u5165"
|
|
17335
|
-
}))),
|
|
17335
|
+
}))), React.createElement(Form.Item, {
|
|
17336
17336
|
label: "\u5F00\u7968\u4EBA"
|
|
17337
17337
|
}, getFieldDecorator('drawer', {
|
|
17338
17338
|
initialValue: props.defaultIssuer
|
|
17339
|
-
})(
|
|
17339
|
+
})(React.createElement(Input$1, {
|
|
17340
17340
|
readOnly: isReadOnly('drawer'),
|
|
17341
17341
|
style: {
|
|
17342
17342
|
width: 313
|
|
@@ -17360,7 +17360,7 @@ var MyDiv$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
17360
17360
|
_createClass(MyDiv, [{
|
|
17361
17361
|
key: "render",
|
|
17362
17362
|
value: function render() {
|
|
17363
|
-
return
|
|
17363
|
+
return React.createElement("div", {
|
|
17364
17364
|
style: this.props.style
|
|
17365
17365
|
}, this.props.value);
|
|
17366
17366
|
}
|
|
@@ -17463,12 +17463,12 @@ function TableVirtual$1 (props) {
|
|
|
17463
17463
|
if (!cont) return;
|
|
17464
17464
|
cont.scrollTop = 0;
|
|
17465
17465
|
}, [(_props$dataSource2 = props.dataSource) === null || _props$dataSource2 === void 0 ? void 0 : _props$dataSource2.length]);
|
|
17466
|
-
return
|
|
17466
|
+
return React.createElement("span", {
|
|
17467
17467
|
className: "kts-invoice-operate-goods-table-virtual",
|
|
17468
17468
|
ref: function ref(e) {
|
|
17469
17469
|
setSelf(e);
|
|
17470
17470
|
}
|
|
17471
|
-
},
|
|
17471
|
+
}, React.createElement(TableManual, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
17472
17472
|
dataSource: dataSource,
|
|
17473
17473
|
// 新版本Table会有输入框无法连续输入的问题,先兼容老版本
|
|
17474
17474
|
tableComponent: Table
|
|
@@ -17581,54 +17581,54 @@ var Statistics$1 = (function () {
|
|
|
17581
17581
|
});
|
|
17582
17582
|
return sum.done().toNumber();
|
|
17583
17583
|
}, []);
|
|
17584
|
-
return
|
|
17584
|
+
return React.createElement("div", {
|
|
17585
17585
|
className: 'kts-invoice-operate-goods-list-statistics-digtal'
|
|
17586
|
-
},
|
|
17586
|
+
}, React.createElement("div", {
|
|
17587
17587
|
className: 'statistics-digtal-total'
|
|
17588
|
-
},
|
|
17588
|
+
}, React.createElement("div", null, "\u5408\u8BA1"), React.createElement("div", {
|
|
17589
17589
|
style: {
|
|
17590
17590
|
flex: 1
|
|
17591
17591
|
}
|
|
17592
|
-
}),
|
|
17592
|
+
}), React.createElement("div", {
|
|
17593
17593
|
style: {
|
|
17594
17594
|
width: 119,
|
|
17595
17595
|
textAlign: 'right',
|
|
17596
17596
|
paddingRight: 15
|
|
17597
17597
|
}
|
|
17598
|
-
}, "\xA5", parseFloat(isTaxIncluded ? lineAmountIncludeTax : lineAmountExcludeTax).toFixed(2)),
|
|
17598
|
+
}, "\xA5", parseFloat(isTaxIncluded ? lineAmountIncludeTax : lineAmountExcludeTax).toFixed(2)), React.createElement("div", {
|
|
17599
17599
|
style: {
|
|
17600
17600
|
width: 119,
|
|
17601
17601
|
textAlign: 'right',
|
|
17602
17602
|
paddingRight: 15
|
|
17603
17603
|
}
|
|
17604
|
-
}, "\xA5", parseFloat(taxAmount).toFixed(2))),
|
|
17604
|
+
}, "\xA5", parseFloat(taxAmount).toFixed(2))), React.createElement("div", {
|
|
17605
17605
|
className: 'statistics-digtal-total-tax'
|
|
17606
|
-
},
|
|
17606
|
+
}, React.createElement("div", null, "\u4EF7\u7A0E\u5408\u8BA1\uFF08\u5927\u5199\uFF09"), React.createElement("div", {
|
|
17607
17607
|
style: {
|
|
17608
17608
|
paddingLeft: 30
|
|
17609
17609
|
}
|
|
17610
|
-
},
|
|
17610
|
+
}, React.createElement(Icon, {
|
|
17611
17611
|
style: {
|
|
17612
17612
|
fontSize: 16
|
|
17613
17613
|
},
|
|
17614
17614
|
component: SvgFork
|
|
17615
|
-
}),
|
|
17615
|
+
}), React.createElement("span", {
|
|
17616
17616
|
style: {
|
|
17617
17617
|
fontWeight: 'bold',
|
|
17618
17618
|
marginLeft: 4
|
|
17619
17619
|
}
|
|
17620
17620
|
}, nzhcn$1.toMoney(lineAmountIncludeTax, {
|
|
17621
17621
|
outSymbol: false
|
|
17622
|
-
}))),
|
|
17622
|
+
}))), React.createElement("div", {
|
|
17623
17623
|
style: {
|
|
17624
17624
|
flex: 1
|
|
17625
17625
|
}
|
|
17626
|
-
}),
|
|
17626
|
+
}), React.createElement("div", {
|
|
17627
17627
|
style: {
|
|
17628
17628
|
width: 90,
|
|
17629
17629
|
color: '#9F613E'
|
|
17630
17630
|
}
|
|
17631
|
-
}, "\uFF08\u5C0F\u5199\uFF09"),
|
|
17631
|
+
}, "\uFF08\u5C0F\u5199\uFF09"), React.createElement("div", {
|
|
17632
17632
|
style: {
|
|
17633
17633
|
width: 119
|
|
17634
17634
|
}
|
|
@@ -17687,10 +17687,10 @@ var AddRowButton$1 = (function () {
|
|
|
17687
17687
|
}
|
|
17688
17688
|
}, _callee);
|
|
17689
17689
|
})), [controller, rootElement]);
|
|
17690
|
-
if (isAddRow === false) return
|
|
17691
|
-
if (model === 'prefab') return
|
|
17692
|
-
if (model === 'readOnly') return
|
|
17693
|
-
return
|
|
17690
|
+
if (isAddRow === false) return React.createElement(React.Fragment, null);
|
|
17691
|
+
if (model === 'prefab') return React.createElement(React.Fragment, null);
|
|
17692
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
17693
|
+
return React.createElement(Button$1, {
|
|
17694
17694
|
size: 'small',
|
|
17695
17695
|
type: 'primary',
|
|
17696
17696
|
onClick: onClick,
|
|
@@ -19051,11 +19051,11 @@ var TaxIncludedSwitch$1 = (function () {
|
|
|
19051
19051
|
return _ref.apply(this, arguments);
|
|
19052
19052
|
};
|
|
19053
19053
|
}(), []);
|
|
19054
|
-
return
|
|
19054
|
+
return React.createElement("span", null, React.createElement("label", {
|
|
19055
19055
|
style: {
|
|
19056
19056
|
marginRight: 2
|
|
19057
19057
|
}
|
|
19058
|
-
}, "\u542B\u7A0E"),
|
|
19058
|
+
}, "\u542B\u7A0E"), React.createElement(Switch, {
|
|
19059
19059
|
disabled: isSwitchTax === false,
|
|
19060
19060
|
checked: isTaxIncluded,
|
|
19061
19061
|
defaultChecked: true,
|
|
@@ -19151,12 +19151,12 @@ function Search$1() {
|
|
|
19151
19151
|
};
|
|
19152
19152
|
}());
|
|
19153
19153
|
}, [value, controller]);
|
|
19154
|
-
return
|
|
19154
|
+
return React.createElement(Input$1, {
|
|
19155
19155
|
readOnly: readOnly,
|
|
19156
19156
|
value: value,
|
|
19157
19157
|
className: "kts-invoice-operate-goods-list-search",
|
|
19158
19158
|
placeholder: "\u8BF7\u60A8\u8F93\u5165\u9879\u76EE\u540D\u79F0\u3001\u89C4\u683C\u578B\u53F7\u3001\u91D1\u989D(".concat(isTaxIncluded ? '含税' : '不含税', ")\u641C\u7D22"),
|
|
19159
|
-
prefix:
|
|
19159
|
+
prefix: React.createElement(Icon$1, {
|
|
19160
19160
|
component: SvgMagnifier$1,
|
|
19161
19161
|
style: {
|
|
19162
19162
|
color: "#b8b8b8"
|
|
@@ -19201,12 +19201,12 @@ function TableRow$1(props) {
|
|
|
19201
19201
|
return undefined;
|
|
19202
19202
|
}
|
|
19203
19203
|
}, [rowKey, goodsMap]);
|
|
19204
|
-
return rowKey === current && current ?
|
|
19204
|
+
return rowKey === current && current ? React.createElement("tr", {
|
|
19205
19205
|
style: {
|
|
19206
19206
|
height: 50,
|
|
19207
19207
|
position: 'relative'
|
|
19208
19208
|
}
|
|
19209
|
-
},
|
|
19209
|
+
}, React.createElement("div", {
|
|
19210
19210
|
style: {
|
|
19211
19211
|
height: 0.5,
|
|
19212
19212
|
width: '100%',
|
|
@@ -19214,9 +19214,7 @@ function TableRow$1(props) {
|
|
|
19214
19214
|
position: 'absolute',
|
|
19215
19215
|
bottom: 0
|
|
19216
19216
|
}
|
|
19217
|
-
})) :
|
|
19218
|
-
/*#__PURE__*/
|
|
19219
|
-
// <tr {...props} className={classnames(props.className, discount, (rowKey === container && current) ? 'kts-invoice-operate-goods-list-itemName-drag-container' : '')} />
|
|
19217
|
+
})) : // <tr {...props} className={classnames(props.className, discount, (rowKey === container && current) ? 'kts-invoice-operate-goods-list-itemName-drag-container' : '')} />
|
|
19220
19218
|
React.createElement("tr", _objectSpread2(_objectSpread2({}, props), {}, {
|
|
19221
19219
|
className: classNames(props.className, discount, rowKey === container && current ? 'kts-invoice-operate-goods-list-itemName-drag-container-' + site : undefined)
|
|
19222
19220
|
}));
|
|
@@ -19256,9 +19254,9 @@ var TitleText$1 = (function (props) {
|
|
|
19256
19254
|
return !!e.required;
|
|
19257
19255
|
})) || props.required;
|
|
19258
19256
|
}, [rules, props.required]);
|
|
19259
|
-
return
|
|
19257
|
+
return React.createElement(React.Fragment, null, required ? React.createElement(Text$5, {
|
|
19260
19258
|
type: "danger"
|
|
19261
|
-
}, "*") :
|
|
19259
|
+
}, "*") : React.createElement(React.Fragment, null), children);
|
|
19262
19260
|
});
|
|
19263
19261
|
|
|
19264
19262
|
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";
|
|
@@ -19287,7 +19285,8 @@ function ItemNameInput$1(props) {
|
|
|
19287
19285
|
}, []);
|
|
19288
19286
|
var onBlur = React.useCallback( /*#__PURE__*/function () {
|
|
19289
19287
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(searchText) {
|
|
19290
|
-
var taxCategoryData, params;
|
|
19288
|
+
var _searchText$target, taxCategoryData, params;
|
|
19289
|
+
|
|
19291
19290
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
19292
19291
|
while (1) {
|
|
19293
19292
|
switch (_context.prev = _context.next) {
|
|
@@ -19299,7 +19298,7 @@ function ItemNameInput$1(props) {
|
|
|
19299
19298
|
break;
|
|
19300
19299
|
}
|
|
19301
19300
|
|
|
19302
|
-
if (selectLine === null || selectLine === void 0 ? void 0 : selectLine.shorthand) {
|
|
19301
|
+
if (!(!(selectLine === null || selectLine === void 0 ? void 0 : selectLine.shorthand) && !!(searchText === null || searchText === void 0 ? void 0 : (_searchText$target = searchText.target) === null || _searchText$target === void 0 ? void 0 : _searchText$target.value))) {
|
|
19303
19302
|
_context.next = 7;
|
|
19304
19303
|
break;
|
|
19305
19304
|
}
|
|
@@ -19342,76 +19341,115 @@ function ItemNameInput$1(props) {
|
|
|
19342
19341
|
return _ref.apply(this, arguments);
|
|
19343
19342
|
};
|
|
19344
19343
|
}(), [autoComplete.onItemNameBlur, selectLine, props.editGood]);
|
|
19345
|
-
var onChangeAutoComplete = React.useCallback(function (
|
|
19346
|
-
var
|
|
19347
|
-
|
|
19348
|
-
})[0];
|
|
19349
|
-
if (!record) return;
|
|
19350
|
-
controller.importGoodsDrawer(record);
|
|
19351
|
-
}, [options, controller]);
|
|
19352
|
-
var onSearch = React.useCallback( /*#__PURE__*/function () {
|
|
19353
|
-
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(searchText) {
|
|
19354
|
-
var list;
|
|
19344
|
+
var onChangeAutoComplete = React.useCallback( /*#__PURE__*/function () {
|
|
19345
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_, i) {
|
|
19346
|
+
var record;
|
|
19355
19347
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
19356
19348
|
while (1) {
|
|
19357
19349
|
switch (_context2.prev = _context2.next) {
|
|
19358
19350
|
case 0:
|
|
19359
|
-
|
|
19351
|
+
record = options.filter(function (e) {
|
|
19352
|
+
return e.$index === i.value;
|
|
19353
|
+
})[0];
|
|
19360
19354
|
|
|
19361
|
-
if (
|
|
19362
|
-
_context2.next =
|
|
19355
|
+
if (record) {
|
|
19356
|
+
_context2.next = 3;
|
|
19363
19357
|
break;
|
|
19364
19358
|
}
|
|
19365
19359
|
|
|
19366
|
-
_context2.
|
|
19360
|
+
return _context2.abrupt("return");
|
|
19361
|
+
|
|
19362
|
+
case 3:
|
|
19367
19363
|
_context2.next = 5;
|
|
19364
|
+
return controller.setEditGood({
|
|
19365
|
+
itemName: record.itemName
|
|
19366
|
+
});
|
|
19367
|
+
|
|
19368
|
+
case 5:
|
|
19369
|
+
_context2.next = 7;
|
|
19370
|
+
return controller.importGoodsDrawer(_objectSpread2(_objectSpread2({}, record), {}, {
|
|
19371
|
+
$index: undefined
|
|
19372
|
+
}));
|
|
19373
|
+
|
|
19374
|
+
case 7:
|
|
19375
|
+
case "end":
|
|
19376
|
+
return _context2.stop();
|
|
19377
|
+
}
|
|
19378
|
+
}
|
|
19379
|
+
}, _callee2);
|
|
19380
|
+
}));
|
|
19381
|
+
|
|
19382
|
+
return function (_x2, _x3) {
|
|
19383
|
+
return _ref2.apply(this, arguments);
|
|
19384
|
+
};
|
|
19385
|
+
}(), [options, controller]);
|
|
19386
|
+
var onSearch = React.useCallback( /*#__PURE__*/function () {
|
|
19387
|
+
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(searchText) {
|
|
19388
|
+
var list;
|
|
19389
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
19390
|
+
while (1) {
|
|
19391
|
+
switch (_context3.prev = _context3.next) {
|
|
19392
|
+
case 0:
|
|
19393
|
+
_context3.prev = 0;
|
|
19394
|
+
|
|
19395
|
+
if (!autoComplete.onItemNameSearch) {
|
|
19396
|
+
_context3.next = 9;
|
|
19397
|
+
break;
|
|
19398
|
+
}
|
|
19399
|
+
|
|
19400
|
+
_context3.t0 = _toConsumableArray;
|
|
19401
|
+
_context3.next = 5;
|
|
19368
19402
|
return autoComplete.onItemNameSearch(searchText);
|
|
19369
19403
|
|
|
19370
19404
|
case 5:
|
|
19371
|
-
|
|
19372
|
-
list = (0,
|
|
19373
|
-
|
|
19405
|
+
_context3.t1 = _context3.sent;
|
|
19406
|
+
list = (0, _context3.t0)(_context3.t1).map(function (e) {
|
|
19407
|
+
return _objectSpread2(_objectSpread2({}, e), {}, {
|
|
19408
|
+
$index: v4()
|
|
19409
|
+
});
|
|
19410
|
+
});
|
|
19374
19411
|
setOptions(list);
|
|
19375
19412
|
|
|
19376
19413
|
case 9:
|
|
19377
|
-
|
|
19414
|
+
_context3.next = 15;
|
|
19378
19415
|
break;
|
|
19379
19416
|
|
|
19380
19417
|
case 11:
|
|
19381
|
-
|
|
19382
|
-
|
|
19418
|
+
_context3.prev = 11;
|
|
19419
|
+
_context3.t2 = _context3["catch"](0);
|
|
19383
19420
|
setOptions([]);
|
|
19384
|
-
throw
|
|
19421
|
+
throw _context3.t2;
|
|
19385
19422
|
|
|
19386
19423
|
case 15:
|
|
19387
19424
|
case "end":
|
|
19388
|
-
return
|
|
19425
|
+
return _context3.stop();
|
|
19389
19426
|
}
|
|
19390
19427
|
}
|
|
19391
|
-
},
|
|
19428
|
+
}, _callee3, null, [[0, 11]]);
|
|
19392
19429
|
}));
|
|
19393
19430
|
|
|
19394
|
-
return function (
|
|
19395
|
-
return
|
|
19431
|
+
return function (_x4) {
|
|
19432
|
+
return _ref3.apply(this, arguments);
|
|
19396
19433
|
};
|
|
19397
19434
|
}(), [autoComplete.onItemNameSearch]);
|
|
19398
|
-
return
|
|
19435
|
+
return React.createElement("div", {
|
|
19399
19436
|
className: 'kts-invoice-operate-goods-list-itemName-input'
|
|
19400
|
-
}, props.shorthand &&
|
|
19437
|
+
}, props.shorthand && React.createElement("span", {
|
|
19401
19438
|
style: {
|
|
19402
19439
|
alignSelf: 'center',
|
|
19403
19440
|
fontSize: 12
|
|
19404
19441
|
}
|
|
19405
|
-
}, "*", props.shorthand, "*"),
|
|
19442
|
+
}, "*", props.shorthand, "*"), React.createElement(AutoComplete$1, {
|
|
19406
19443
|
onSearch: onSearch,
|
|
19407
19444
|
value: props.value,
|
|
19408
19445
|
options: options.map(function (e) {
|
|
19409
19446
|
return {
|
|
19410
|
-
value: e
|
|
19447
|
+
value: e.$index,
|
|
19448
|
+
label: e.itemName
|
|
19411
19449
|
};
|
|
19412
19450
|
}),
|
|
19413
19451
|
onSelect: onChangeAutoComplete
|
|
19414
|
-
},
|
|
19452
|
+
}, React.createElement(Input$1, {
|
|
19415
19453
|
style: {
|
|
19416
19454
|
height: '100%'
|
|
19417
19455
|
},
|
|
@@ -19481,7 +19519,7 @@ function Drag$2(props) {
|
|
|
19481
19519
|
var currentGood = controller.state.goodsListState.goodsList.filter(function (e) {
|
|
19482
19520
|
return e.$index === record.$index;
|
|
19483
19521
|
})[0];
|
|
19484
|
-
mounting(
|
|
19522
|
+
mounting(React.createElement(DragDiv$1, _objectSpread2({}, currentGood)));
|
|
19485
19523
|
rowList.forEach(function (e) {
|
|
19486
19524
|
e.addEventListener('mousemove', onMousemove);
|
|
19487
19525
|
});
|
|
@@ -19642,7 +19680,7 @@ function Drag$2(props) {
|
|
|
19642
19680
|
|
|
19643
19681
|
|
|
19644
19682
|
function insert() {
|
|
19645
|
-
mounting(
|
|
19683
|
+
mounting(React.createElement(React.Fragment, null));
|
|
19646
19684
|
controller.run( /*#__PURE__*/function () {
|
|
19647
19685
|
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(s) {
|
|
19648
19686
|
var _s$goodsListState$dra, container, current, site, goodsList, goodsMap, _currentGood, currentIndex, moveGoods;
|
|
@@ -19721,7 +19759,7 @@ function Drag$2(props) {
|
|
|
19721
19759
|
}
|
|
19722
19760
|
}, [controller, record, disabled]);
|
|
19723
19761
|
var renderButton = React.useMemo(function () {
|
|
19724
|
-
return
|
|
19762
|
+
return React.createElement(Button, {
|
|
19725
19763
|
type: 'link',
|
|
19726
19764
|
style: {
|
|
19727
19765
|
padding: 0
|
|
@@ -19732,13 +19770,13 @@ function Drag$2(props) {
|
|
|
19732
19770
|
},
|
|
19733
19771
|
className: "kts-invoice-operate-goods-list-itemName-drag",
|
|
19734
19772
|
onMouseOver: controller.saveEditGood
|
|
19735
|
-
},
|
|
19773
|
+
}, React.createElement(Icon, {
|
|
19736
19774
|
component: SvgI001$1
|
|
19737
19775
|
}));
|
|
19738
19776
|
}, [onMouseDown, controller]);
|
|
19739
19777
|
|
|
19740
19778
|
if (disabled) {
|
|
19741
|
-
return
|
|
19779
|
+
return React.createElement(Popover, {
|
|
19742
19780
|
content: '您还有未编辑完成的商品',
|
|
19743
19781
|
trigger: 'focus'
|
|
19744
19782
|
}, renderButton);
|
|
@@ -19778,13 +19816,13 @@ function DragDiv$1(props) {
|
|
|
19778
19816
|
window.removeEventListener('mousemove', onMousemove);
|
|
19779
19817
|
};
|
|
19780
19818
|
});
|
|
19781
|
-
return
|
|
19819
|
+
return React.createElement("div", {
|
|
19782
19820
|
className: "kts-invoice-operate-goods-list-itemName-drag-div",
|
|
19783
19821
|
style: {
|
|
19784
19822
|
top: y,
|
|
19785
19823
|
left: x
|
|
19786
19824
|
}
|
|
19787
|
-
},
|
|
19825
|
+
}, React.createElement("span", null, props.itemName), React.createElement("span", null, props.itemModelName), React.createElement("span", null, props.unit));
|
|
19788
19826
|
}
|
|
19789
19827
|
|
|
19790
19828
|
var useColumns$1 = (function (form) {
|
|
@@ -19900,7 +19938,7 @@ var useColumns$1 = (function (form) {
|
|
|
19900
19938
|
width: 40,
|
|
19901
19939
|
align: 'center',
|
|
19902
19940
|
render: function render(_, record) {
|
|
19903
|
-
return
|
|
19941
|
+
return React.createElement(Drag$2, {
|
|
19904
19942
|
record: record
|
|
19905
19943
|
});
|
|
19906
19944
|
}
|
|
@@ -19910,20 +19948,20 @@ var useColumns$1 = (function (form) {
|
|
|
19910
19948
|
dataIndex: 'serialNo',
|
|
19911
19949
|
width: 50,
|
|
19912
19950
|
render: function render(e) {
|
|
19913
|
-
return
|
|
19951
|
+
return React.createElement("span", {
|
|
19914
19952
|
style: {
|
|
19915
19953
|
padding: '0 10px'
|
|
19916
19954
|
}
|
|
19917
19955
|
}, e);
|
|
19918
19956
|
}
|
|
19919
19957
|
}, {
|
|
19920
|
-
title:
|
|
19958
|
+
title: React.createElement(TitleText$1, {
|
|
19921
19959
|
required: true
|
|
19922
19960
|
}, "\u9879\u76EE\u540D\u79F0"),
|
|
19923
19961
|
key: 'itemName',
|
|
19924
19962
|
render: function render(_, record) {
|
|
19925
19963
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
19926
|
-
return
|
|
19964
|
+
return React.createElement(Form.Item, null, React.createElement("div", {
|
|
19927
19965
|
style: {
|
|
19928
19966
|
display: 'flex'
|
|
19929
19967
|
}
|
|
@@ -19970,12 +20008,12 @@ var useColumns$1 = (function (form) {
|
|
|
19970
20008
|
return validator;
|
|
19971
20009
|
}()
|
|
19972
20010
|
}])
|
|
19973
|
-
})(
|
|
20011
|
+
})(React.createElement(ItemNameInput$1, {
|
|
19974
20012
|
editGood: editGood,
|
|
19975
20013
|
shorthand: editGood.shorthand,
|
|
19976
|
-
suffix:
|
|
20014
|
+
suffix: React.createElement(Tooltip$1, {
|
|
19977
20015
|
title: "\u70B9\u51FB\u4ECE\u5546\u54C1\u7BA1\u7406\u4E2D\u6DFB\u52A0\u5546\u54C1\u4FE1\u606F"
|
|
19978
|
-
},
|
|
20016
|
+
}, React.createElement(Button$1, {
|
|
19979
20017
|
type: "link",
|
|
19980
20018
|
style: {
|
|
19981
20019
|
padding: 0,
|
|
@@ -19983,7 +20021,7 @@ var useColumns$1 = (function (form) {
|
|
|
19983
20021
|
fontSize: 20,
|
|
19984
20022
|
fill: '#0074ff'
|
|
19985
20023
|
},
|
|
19986
|
-
icon:
|
|
20024
|
+
icon: React.createElement(SvgPlus$1, null),
|
|
19987
20025
|
onClick: controller.pipeline( /*#__PURE__*/function () {
|
|
19988
20026
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(s) {
|
|
19989
20027
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
@@ -20010,9 +20048,9 @@ var useColumns$1 = (function (form) {
|
|
|
20010
20048
|
}
|
|
20011
20049
|
}))));
|
|
20012
20050
|
} else {
|
|
20013
|
-
return
|
|
20051
|
+
return React.createElement("span", null, record.lineAttribute === LineAttributeType$1.折扣行 ? React.createElement("span", {
|
|
20014
20052
|
className: 'goods-list-digtal-discount-tag'
|
|
20015
|
-
}, "\u6298\u6263") :
|
|
20053
|
+
}, "\u6298\u6263") : React.createElement(React.Fragment, null), React.createElement(MyItemNameDiv$1, {
|
|
20016
20054
|
valueT: formatSearch$1(getItemNameWithShorthand({
|
|
20017
20055
|
shorthand: record.shorthand,
|
|
20018
20056
|
full: record.itemNameSelf || ''
|
|
@@ -20026,17 +20064,17 @@ var useColumns$1 = (function (form) {
|
|
|
20026
20064
|
}
|
|
20027
20065
|
}
|
|
20028
20066
|
}, {
|
|
20029
|
-
title:
|
|
20067
|
+
title: React.createElement(TitleText$1, {
|
|
20030
20068
|
rules: (_columnsReplenish$ite = columnsReplenish['itemModelName']) === null || _columnsReplenish$ite === void 0 ? void 0 : _columnsReplenish$ite.rules
|
|
20031
20069
|
}, "\u89C4\u683C\u578B\u53F7"),
|
|
20032
20070
|
key: 'itemModelName',
|
|
20033
20071
|
width: 119,
|
|
20034
20072
|
render: function render(_, record) {
|
|
20035
20073
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
20036
|
-
return
|
|
20074
|
+
return React.createElement(Form.Item, null, getFieldDecorator('itemModelName', {
|
|
20037
20075
|
initialValue: isMyShow ? editGood.itemModelNameSelf : editGood.itemModelName,
|
|
20038
20076
|
rules: getReplenishRules('itemModelName')
|
|
20039
|
-
})(
|
|
20077
|
+
})(React.createElement(MyInput$2, {
|
|
20040
20078
|
onChange: function () {
|
|
20041
20079
|
var _onChange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
20042
20080
|
var key, value;
|
|
@@ -20069,7 +20107,7 @@ var useColumns$1 = (function (form) {
|
|
|
20069
20107
|
}()
|
|
20070
20108
|
})));
|
|
20071
20109
|
} else {
|
|
20072
|
-
return
|
|
20110
|
+
return React.createElement(MyItemNameDiv$1, {
|
|
20073
20111
|
valueT: formatSearch$1(record.itemModelNameSelf, searchValue),
|
|
20074
20112
|
valueF: formatSearch$1(record.itemModelName, searchValue),
|
|
20075
20113
|
isMyShow: isMyShow
|
|
@@ -20077,17 +20115,17 @@ var useColumns$1 = (function (form) {
|
|
|
20077
20115
|
}
|
|
20078
20116
|
}
|
|
20079
20117
|
}, {
|
|
20080
|
-
title:
|
|
20118
|
+
title: React.createElement(TitleText$1, {
|
|
20081
20119
|
rules: (_columnsReplenish$uni = columnsReplenish['unit']) === null || _columnsReplenish$uni === void 0 ? void 0 : _columnsReplenish$uni.rules
|
|
20082
20120
|
}, "\u5355\u4F4D"),
|
|
20083
20121
|
key: 'unit',
|
|
20084
20122
|
width: 70,
|
|
20085
20123
|
render: function render(_, record) {
|
|
20086
20124
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
20087
|
-
return
|
|
20125
|
+
return React.createElement(Form.Item, null, getFieldDecorator('unit', {
|
|
20088
20126
|
initialValue: editGood.unit,
|
|
20089
20127
|
rules: getReplenishRules('unit')
|
|
20090
|
-
})(
|
|
20128
|
+
})(React.createElement(AutoComplete$1, {
|
|
20091
20129
|
style: {
|
|
20092
20130
|
width: '100%'
|
|
20093
20131
|
},
|
|
@@ -20125,7 +20163,7 @@ var useColumns$1 = (function (form) {
|
|
|
20125
20163
|
}()
|
|
20126
20164
|
})));
|
|
20127
20165
|
} else {
|
|
20128
|
-
return
|
|
20166
|
+
return React.createElement("span", {
|
|
20129
20167
|
style: {
|
|
20130
20168
|
padding: '0 10px'
|
|
20131
20169
|
}
|
|
@@ -20133,7 +20171,7 @@ var useColumns$1 = (function (form) {
|
|
|
20133
20171
|
}
|
|
20134
20172
|
}
|
|
20135
20173
|
}, {
|
|
20136
|
-
title:
|
|
20174
|
+
title: React.createElement(TitleText$1, {
|
|
20137
20175
|
rules: (_columnsReplenish$qua = columnsReplenish['quantity']) === null || _columnsReplenish$qua === void 0 ? void 0 : _columnsReplenish$qua.rules
|
|
20138
20176
|
}, "\u6570\u91CF"),
|
|
20139
20177
|
dataIndex: 'quantity',
|
|
@@ -20142,7 +20180,7 @@ var useColumns$1 = (function (form) {
|
|
|
20142
20180
|
width: 149,
|
|
20143
20181
|
render: function render(value, record) {
|
|
20144
20182
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
20145
|
-
return
|
|
20183
|
+
return React.createElement(Form.Item, null, getFieldDecorator('quantity', {
|
|
20146
20184
|
initialValue: nonScientificNotation(editGood.quantity),
|
|
20147
20185
|
getValueFromEvent: onNumberValueChange,
|
|
20148
20186
|
rules: [].concat(_toConsumableArray(getReplenishRules('quantity')), [{
|
|
@@ -20188,7 +20226,7 @@ var useColumns$1 = (function (form) {
|
|
|
20188
20226
|
return validator;
|
|
20189
20227
|
}()
|
|
20190
20228
|
}])
|
|
20191
|
-
})(
|
|
20229
|
+
})(React.createElement(MyInput$2, {
|
|
20192
20230
|
style: {
|
|
20193
20231
|
textAlign: 'right'
|
|
20194
20232
|
},
|
|
@@ -20220,7 +20258,7 @@ var useColumns$1 = (function (form) {
|
|
|
20220
20258
|
}()
|
|
20221
20259
|
})));
|
|
20222
20260
|
} else {
|
|
20223
|
-
return
|
|
20261
|
+
return React.createElement("span", {
|
|
20224
20262
|
style: {
|
|
20225
20263
|
padding: '0 10px'
|
|
20226
20264
|
}
|
|
@@ -20228,7 +20266,7 @@ var useColumns$1 = (function (form) {
|
|
|
20228
20266
|
}
|
|
20229
20267
|
}
|
|
20230
20268
|
}, {
|
|
20231
|
-
title:
|
|
20269
|
+
title: React.createElement(TitleText$1, {
|
|
20232
20270
|
rules: (_columnsReplenish$pri = columnsReplenish['priceIncludeTax']) === null || _columnsReplenish$pri === void 0 ? void 0 : _columnsReplenish$pri.rules
|
|
20233
20271
|
}, "\u5355\u4EF7(\u542B\u7A0E)"),
|
|
20234
20272
|
dataIndex: 'priceIncludeTax',
|
|
@@ -20237,7 +20275,7 @@ var useColumns$1 = (function (form) {
|
|
|
20237
20275
|
width: 149,
|
|
20238
20276
|
render: function render(value, record) {
|
|
20239
20277
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
20240
|
-
return
|
|
20278
|
+
return React.createElement(Form.Item, null, getFieldDecorator('priceIncludeTax', {
|
|
20241
20279
|
initialValue: nonScientificNotation(editGood.priceIncludeTax),
|
|
20242
20280
|
getValueFromEvent: onNumberValueChange,
|
|
20243
20281
|
rules: [].concat(_toConsumableArray(getReplenishRules('priceIncludeTax')), [{
|
|
@@ -20283,7 +20321,7 @@ var useColumns$1 = (function (form) {
|
|
|
20283
20321
|
return validator;
|
|
20284
20322
|
}()
|
|
20285
20323
|
}])
|
|
20286
|
-
})(
|
|
20324
|
+
})(React.createElement(MyInput$2, {
|
|
20287
20325
|
style: {
|
|
20288
20326
|
textAlign: 'right'
|
|
20289
20327
|
},
|
|
@@ -20295,7 +20333,7 @@ var useColumns$1 = (function (form) {
|
|
|
20295
20333
|
}
|
|
20296
20334
|
})));
|
|
20297
20335
|
} else {
|
|
20298
|
-
return
|
|
20336
|
+
return React.createElement("span", {
|
|
20299
20337
|
style: {
|
|
20300
20338
|
padding: '0 10px'
|
|
20301
20339
|
}
|
|
@@ -20303,7 +20341,7 @@ var useColumns$1 = (function (form) {
|
|
|
20303
20341
|
}
|
|
20304
20342
|
}
|
|
20305
20343
|
}, {
|
|
20306
|
-
title:
|
|
20344
|
+
title: React.createElement(TitleText$1, {
|
|
20307
20345
|
rules: (_columnsReplenish$pri2 = columnsReplenish['priceExcludeTax']) === null || _columnsReplenish$pri2 === void 0 ? void 0 : _columnsReplenish$pri2.rules
|
|
20308
20346
|
}, "\u5355\u4EF7(\u4E0D\u542B\u7A0E)"),
|
|
20309
20347
|
dataIndex: 'priceExcludeTax',
|
|
@@ -20312,7 +20350,7 @@ var useColumns$1 = (function (form) {
|
|
|
20312
20350
|
width: 149,
|
|
20313
20351
|
render: function render(value, record) {
|
|
20314
20352
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
20315
|
-
return
|
|
20353
|
+
return React.createElement(Form.Item, null, getFieldDecorator('priceExcludeTax', {
|
|
20316
20354
|
initialValue: nonScientificNotation(editGood.priceExcludeTax),
|
|
20317
20355
|
getValueFromEvent: onNumberValueChange,
|
|
20318
20356
|
rules: [].concat(_toConsumableArray(getReplenishRules('priceExcludeTax')), [{
|
|
@@ -20358,7 +20396,7 @@ var useColumns$1 = (function (form) {
|
|
|
20358
20396
|
return validator;
|
|
20359
20397
|
}()
|
|
20360
20398
|
}])
|
|
20361
|
-
})(
|
|
20399
|
+
})(React.createElement(MyInput$2, {
|
|
20362
20400
|
style: {
|
|
20363
20401
|
textAlign: 'right'
|
|
20364
20402
|
},
|
|
@@ -20370,7 +20408,7 @@ var useColumns$1 = (function (form) {
|
|
|
20370
20408
|
}
|
|
20371
20409
|
})));
|
|
20372
20410
|
} else {
|
|
20373
|
-
return
|
|
20411
|
+
return React.createElement("span", {
|
|
20374
20412
|
style: {
|
|
20375
20413
|
padding: '0 10px'
|
|
20376
20414
|
}
|
|
@@ -20378,7 +20416,7 @@ var useColumns$1 = (function (form) {
|
|
|
20378
20416
|
}
|
|
20379
20417
|
}
|
|
20380
20418
|
}, {
|
|
20381
|
-
title:
|
|
20419
|
+
title: React.createElement(TitleText$1, {
|
|
20382
20420
|
required: true
|
|
20383
20421
|
}, "\u91D1\u989D(\u542B\u7A0E)"),
|
|
20384
20422
|
dataIndex: 'lineAmountIncludeTax',
|
|
@@ -20387,7 +20425,7 @@ var useColumns$1 = (function (form) {
|
|
|
20387
20425
|
align: 'right',
|
|
20388
20426
|
render: function render(value, record) {
|
|
20389
20427
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
20390
|
-
return
|
|
20428
|
+
return React.createElement(Form.Item, null, getFieldDecorator('lineAmountIncludeTax', {
|
|
20391
20429
|
initialValue: editGood.lineAmountIncludeTax,
|
|
20392
20430
|
getValueFromEvent: onNumberValueChange,
|
|
20393
20431
|
rules: [].concat(_toConsumableArray(getReplenishRules('lineAmountIncludeTax')), [{
|
|
@@ -20447,7 +20485,7 @@ var useColumns$1 = (function (form) {
|
|
|
20447
20485
|
return validator;
|
|
20448
20486
|
}()
|
|
20449
20487
|
}])
|
|
20450
|
-
})(
|
|
20488
|
+
})(React.createElement(MyInput$2, {
|
|
20451
20489
|
style: {
|
|
20452
20490
|
textAlign: 'right'
|
|
20453
20491
|
},
|
|
@@ -20458,7 +20496,7 @@ var useColumns$1 = (function (form) {
|
|
|
20458
20496
|
}
|
|
20459
20497
|
})));
|
|
20460
20498
|
} else {
|
|
20461
|
-
return
|
|
20499
|
+
return React.createElement("span", {
|
|
20462
20500
|
style: {
|
|
20463
20501
|
padding: '0 10px'
|
|
20464
20502
|
}
|
|
@@ -20466,7 +20504,7 @@ var useColumns$1 = (function (form) {
|
|
|
20466
20504
|
}
|
|
20467
20505
|
}
|
|
20468
20506
|
}, {
|
|
20469
|
-
title:
|
|
20507
|
+
title: React.createElement(TitleText$1, {
|
|
20470
20508
|
required: true
|
|
20471
20509
|
}, "\u91D1\u989D(\u4E0D\u542B\u7A0E)"),
|
|
20472
20510
|
dataIndex: 'lineAmountExcludeTax',
|
|
@@ -20475,7 +20513,7 @@ var useColumns$1 = (function (form) {
|
|
|
20475
20513
|
width: 119,
|
|
20476
20514
|
render: function render(value, record) {
|
|
20477
20515
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
20478
|
-
return
|
|
20516
|
+
return React.createElement(Form.Item, null, getFieldDecorator('lineAmountExcludeTax', {
|
|
20479
20517
|
initialValue: editGood.lineAmountExcludeTax,
|
|
20480
20518
|
getValueFromEvent: onNumberValueChange,
|
|
20481
20519
|
rules: [].concat(_toConsumableArray(getReplenishRules('lineAmountExcludeTax')), [{
|
|
@@ -20510,7 +20548,7 @@ var useColumns$1 = (function (form) {
|
|
|
20510
20548
|
return validator;
|
|
20511
20549
|
}()
|
|
20512
20550
|
}])
|
|
20513
|
-
})(
|
|
20551
|
+
})(React.createElement(MyInput$2, {
|
|
20514
20552
|
style: {
|
|
20515
20553
|
textAlign: 'right'
|
|
20516
20554
|
},
|
|
@@ -20521,7 +20559,7 @@ var useColumns$1 = (function (form) {
|
|
|
20521
20559
|
}
|
|
20522
20560
|
})));
|
|
20523
20561
|
} else {
|
|
20524
|
-
return
|
|
20562
|
+
return React.createElement("span", {
|
|
20525
20563
|
style: {
|
|
20526
20564
|
padding: '0 10px'
|
|
20527
20565
|
}
|
|
@@ -20529,7 +20567,7 @@ var useColumns$1 = (function (form) {
|
|
|
20529
20567
|
}
|
|
20530
20568
|
}
|
|
20531
20569
|
}, {
|
|
20532
|
-
title:
|
|
20570
|
+
title: React.createElement(TitleText$1, {
|
|
20533
20571
|
required: true
|
|
20534
20572
|
}, "\u7A0E\u7387%"),
|
|
20535
20573
|
dataIndex: 'taxRate',
|
|
@@ -20538,7 +20576,7 @@ var useColumns$1 = (function (form) {
|
|
|
20538
20576
|
width: 70,
|
|
20539
20577
|
render: function render(value, record) {
|
|
20540
20578
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
20541
|
-
return
|
|
20579
|
+
return React.createElement(Form.Item, null, getFieldDecorator('taxRate', {
|
|
20542
20580
|
initialValue: editGood.taxRate,
|
|
20543
20581
|
rules: [].concat(_toConsumableArray(getReplenishRules('taxRate')), [{
|
|
20544
20582
|
required: true,
|
|
@@ -20547,7 +20585,7 @@ var useColumns$1 = (function (form) {
|
|
|
20547
20585
|
pattern: /^[+-]?(0|([1-9]\d*))(\.\d+)?$/,
|
|
20548
20586
|
message: ' '
|
|
20549
20587
|
}])
|
|
20550
|
-
})(
|
|
20588
|
+
})(React.createElement(Select$1, {
|
|
20551
20589
|
className: "kts-invoice-operate-goods-list-table-tax-rate",
|
|
20552
20590
|
// dropdownMenuStyle={{ textAlign: "right" }}
|
|
20553
20591
|
showArrow: false,
|
|
@@ -20559,13 +20597,13 @@ var useColumns$1 = (function (form) {
|
|
|
20559
20597
|
onChangeTaxRate$1(controller, form, record);
|
|
20560
20598
|
}
|
|
20561
20599
|
}, taxRateList.map(function (e, i) {
|
|
20562
|
-
return
|
|
20600
|
+
return React.createElement(Select$1.Option, {
|
|
20563
20601
|
key: i,
|
|
20564
20602
|
value: e
|
|
20565
20603
|
}, e, "%");
|
|
20566
20604
|
}))));
|
|
20567
20605
|
} else {
|
|
20568
|
-
return
|
|
20606
|
+
return React.createElement("span", {
|
|
20569
20607
|
style: {
|
|
20570
20608
|
padding: '0 10px'
|
|
20571
20609
|
}
|
|
@@ -20573,7 +20611,7 @@ var useColumns$1 = (function (form) {
|
|
|
20573
20611
|
}
|
|
20574
20612
|
}
|
|
20575
20613
|
}, {
|
|
20576
|
-
title:
|
|
20614
|
+
title: React.createElement(TitleText$1, {
|
|
20577
20615
|
rules: (_columnsReplenish$tax = columnsReplenish['taxAmount']) === null || _columnsReplenish$tax === void 0 ? void 0 : _columnsReplenish$tax.rules
|
|
20578
20616
|
}, "\u7A0E\u989D"),
|
|
20579
20617
|
dataIndex: 'taxAmount',
|
|
@@ -20585,11 +20623,11 @@ var useColumns$1 = (function (form) {
|
|
|
20585
20623
|
return getFieldDecorator('taxAmount', {
|
|
20586
20624
|
initialValue: editGood.taxAmount,
|
|
20587
20625
|
rules: getReplenishRules('taxAmount')
|
|
20588
|
-
})(
|
|
20626
|
+
})(React.createElement(MyDiv$2, {
|
|
20589
20627
|
loading: isCipher$1(changeField, 'taxAmount')
|
|
20590
20628
|
}));
|
|
20591
20629
|
} else {
|
|
20592
|
-
return
|
|
20630
|
+
return React.createElement("span", {
|
|
20593
20631
|
style: {
|
|
20594
20632
|
padding: '0 10px'
|
|
20595
20633
|
}
|
|
@@ -20656,13 +20694,13 @@ var MyInput$2 = /*#__PURE__*/function (_React$Component) {
|
|
|
20656
20694
|
key: "render",
|
|
20657
20695
|
value: function render() {
|
|
20658
20696
|
if (this.props.loading) {
|
|
20659
|
-
return
|
|
20697
|
+
return React.createElement(Spin$1, {
|
|
20660
20698
|
size: "small"
|
|
20661
|
-
},
|
|
20699
|
+
}, React.createElement(Input$1, _objectSpread2(_objectSpread2({}, this.props), {}, {
|
|
20662
20700
|
autoComplete: "off"
|
|
20663
20701
|
})));
|
|
20664
20702
|
} else {
|
|
20665
|
-
return
|
|
20703
|
+
return React.createElement(Input$1, _objectSpread2(_objectSpread2({}, this.props), {}, {
|
|
20666
20704
|
autoComplete: "off"
|
|
20667
20705
|
}));
|
|
20668
20706
|
}
|
|
@@ -20687,15 +20725,15 @@ var MyDiv$2 = /*#__PURE__*/function (_React$Component2) {
|
|
|
20687
20725
|
key: "render",
|
|
20688
20726
|
value: function render() {
|
|
20689
20727
|
if (this.props.loading) {
|
|
20690
|
-
return
|
|
20728
|
+
return React.createElement(Spin$1, {
|
|
20691
20729
|
size: "small"
|
|
20692
|
-
},
|
|
20730
|
+
}, React.createElement("span", {
|
|
20693
20731
|
style: {
|
|
20694
20732
|
padding: '0 10px'
|
|
20695
20733
|
}
|
|
20696
20734
|
}, this.props.value));
|
|
20697
20735
|
} else {
|
|
20698
|
-
return
|
|
20736
|
+
return React.createElement("span", {
|
|
20699
20737
|
style: {
|
|
20700
20738
|
padding: '0 10px'
|
|
20701
20739
|
}
|
|
@@ -20728,32 +20766,32 @@ var MyItemNameDiv$1 = /*#__PURE__*/function (_React$Component3) {
|
|
|
20728
20766
|
|
|
20729
20767
|
if (isMyShow) {
|
|
20730
20768
|
if (valueT) {
|
|
20731
|
-
return
|
|
20769
|
+
return React.createElement(Tooltip$1, {
|
|
20732
20770
|
title: valueT
|
|
20733
|
-
},
|
|
20771
|
+
}, React.createElement("span", {
|
|
20734
20772
|
style: _objectSpread2(_objectSpread2({}, MyItemNameStyle), {}, {
|
|
20735
20773
|
color: '#0074ff'
|
|
20736
20774
|
})
|
|
20737
20775
|
}, valueT));
|
|
20738
20776
|
} else {
|
|
20739
|
-
return
|
|
20777
|
+
return React.createElement(Tooltip$1, {
|
|
20740
20778
|
title: valueF
|
|
20741
|
-
},
|
|
20779
|
+
}, React.createElement("span", {
|
|
20742
20780
|
style: MyItemNameStyle
|
|
20743
20781
|
}, valueF));
|
|
20744
20782
|
}
|
|
20745
20783
|
} else {
|
|
20746
20784
|
if (valueF) {
|
|
20747
|
-
return
|
|
20785
|
+
return React.createElement(Tooltip$1, {
|
|
20748
20786
|
title: valueF
|
|
20749
|
-
},
|
|
20787
|
+
}, React.createElement("span", {
|
|
20750
20788
|
style: MyItemNameStyle
|
|
20751
20789
|
}, valueF));
|
|
20752
20790
|
} else {
|
|
20753
|
-
return
|
|
20791
|
+
return React.createElement(Tooltip$1, {
|
|
20754
20792
|
title: valueT,
|
|
20755
20793
|
style: MyItemNameStyle
|
|
20756
|
-
},
|
|
20794
|
+
}, React.createElement("span", {
|
|
20757
20795
|
style: _objectSpread2(_objectSpread2({}, MyItemNameStyle), {}, {
|
|
20758
20796
|
color: '#0074ff'
|
|
20759
20797
|
})
|
|
@@ -20775,7 +20813,7 @@ function formatSearch$1(value, search) {
|
|
|
20775
20813
|
return dcoding$1(e);
|
|
20776
20814
|
}).join("<span class=\"kts-invoice-operate-goods-list-table-search-protrude\" >".concat(search, "</span>"));
|
|
20777
20815
|
|
|
20778
|
-
return
|
|
20816
|
+
return React.createElement("span", {
|
|
20779
20817
|
dangerouslySetInnerHTML: {
|
|
20780
20818
|
__html: __html
|
|
20781
20819
|
}
|
|
@@ -21163,7 +21201,7 @@ var useRowSelection$1 = (function () {
|
|
|
21163
21201
|
};
|
|
21164
21202
|
}(), [controller]);
|
|
21165
21203
|
var columnTitle = React.useMemo(function () {
|
|
21166
|
-
return
|
|
21204
|
+
return React.createElement(Checkbox, {
|
|
21167
21205
|
onChange: onClickSelectAll,
|
|
21168
21206
|
indeterminate: indeterminate,
|
|
21169
21207
|
checked: isAll
|
|
@@ -21312,19 +21350,19 @@ var useDelRowButton$1 = (function () {
|
|
|
21312
21350
|
}, _callee2);
|
|
21313
21351
|
})), []);
|
|
21314
21352
|
var menuItem = React.useMemo(function () {
|
|
21315
|
-
if (model === 'prefab') return
|
|
21316
|
-
if (model === 'readOnly') return
|
|
21317
|
-
return
|
|
21353
|
+
if (model === 'prefab') return React.createElement(React.Fragment, null);
|
|
21354
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
21355
|
+
return React.createElement(Menu$1.Item, {
|
|
21318
21356
|
key: "1",
|
|
21319
21357
|
onClick: onClick,
|
|
21320
21358
|
disabled: disabled
|
|
21321
21359
|
}, " \u5220\u9664\u884C ");
|
|
21322
21360
|
}, [model, onClick, disabled]);
|
|
21323
21361
|
var button = React.useMemo(function () {
|
|
21324
|
-
if (isRemRow === false) return
|
|
21325
|
-
if (model === 'prefab') return
|
|
21326
|
-
if (model === 'readOnly') return
|
|
21327
|
-
return
|
|
21362
|
+
if (isRemRow === false) return React.createElement(React.Fragment, null);
|
|
21363
|
+
if (model === 'prefab') return React.createElement(React.Fragment, null);
|
|
21364
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
21365
|
+
return React.createElement(Button$1, {
|
|
21328
21366
|
size: 'small',
|
|
21329
21367
|
onClick: onClick,
|
|
21330
21368
|
disabled: disabled
|
|
@@ -21555,16 +21593,16 @@ var useAddDiscountRowButton$1 = (function () {
|
|
|
21555
21593
|
}, [isAddDiscount, model]);
|
|
21556
21594
|
var button = React.useMemo(function () {
|
|
21557
21595
|
if (isEnable) {
|
|
21558
|
-
return
|
|
21596
|
+
return React.createElement(React.Fragment, null, React.createElement(Button$1, {
|
|
21559
21597
|
size: 'small',
|
|
21560
21598
|
onClick: onOpen,
|
|
21561
21599
|
disabled: disabled
|
|
21562
|
-
}, "\u6DFB\u52A0\u6298\u6263"),
|
|
21600
|
+
}, "\u6DFB\u52A0\u6298\u6263"), React.createElement(AddDiscountRowDrawer, {
|
|
21563
21601
|
open: open,
|
|
21564
21602
|
onClose: onClose
|
|
21565
21603
|
}));
|
|
21566
21604
|
} else {
|
|
21567
|
-
return
|
|
21605
|
+
return React.createElement(React.Fragment, null);
|
|
21568
21606
|
}
|
|
21569
21607
|
}, [open, onOpen, onClose, isEnable, disabled]);
|
|
21570
21608
|
return {
|
|
@@ -21745,35 +21783,35 @@ function AddDiscountRowDrawer(props) {
|
|
|
21745
21783
|
discolineValue: undefined
|
|
21746
21784
|
}));
|
|
21747
21785
|
}, [formValues === null || formValues === void 0 ? void 0 : formValues.discolineType]);
|
|
21748
|
-
return
|
|
21786
|
+
return React.createElement(Drawer$1, {
|
|
21749
21787
|
title: "\u6DFB\u52A0\u6298\u6263",
|
|
21750
21788
|
placement: "right",
|
|
21751
21789
|
width: 350,
|
|
21752
21790
|
onClose: onClose,
|
|
21753
21791
|
open: open,
|
|
21754
|
-
footer:
|
|
21792
|
+
footer: React.createElement(Space, {
|
|
21755
21793
|
size: "middle",
|
|
21756
21794
|
style: {
|
|
21757
21795
|
display: 'flex',
|
|
21758
21796
|
justifyContent: 'end'
|
|
21759
21797
|
}
|
|
21760
|
-
},
|
|
21798
|
+
}, React.createElement(Button$1, {
|
|
21761
21799
|
onClick: onDefine,
|
|
21762
21800
|
type: 'primary'
|
|
21763
|
-
}, "\u786E\u5B9A"),
|
|
21801
|
+
}, "\u786E\u5B9A"), React.createElement(Button$1, {
|
|
21764
21802
|
onClick: onClose
|
|
21765
21803
|
}, "\u53D6\u6D88"))
|
|
21766
|
-
},
|
|
21804
|
+
}, React.createElement(Form$1, {
|
|
21767
21805
|
form: form,
|
|
21768
21806
|
layout: 'vertical',
|
|
21769
21807
|
onChange: onChangeForm
|
|
21770
|
-
},
|
|
21808
|
+
}, React.createElement(Form$1.Item, {
|
|
21771
21809
|
label: "\u5546\u54C1\u91D1\u989D\uFF08\u542B\u7A0E\uFF09"
|
|
21772
|
-
}, totalAmount.toFixed(2), "\uFF08\u5171 ", discountGood.length, " \u884C\uFF09"),
|
|
21810
|
+
}, totalAmount.toFixed(2), "\uFF08\u5171 ", discountGood.length, " \u884C\uFF09"), React.createElement(Form$1.Item, {
|
|
21773
21811
|
label: "\u6298\u6263\u65B9\u5F0F",
|
|
21774
21812
|
name: 'discolineType',
|
|
21775
21813
|
initialValue: '1'
|
|
21776
|
-
},
|
|
21814
|
+
}, React.createElement(Radio.Group, {
|
|
21777
21815
|
options: [{
|
|
21778
21816
|
label: '按金额折扣',
|
|
21779
21817
|
value: '1'
|
|
@@ -21781,7 +21819,7 @@ function AddDiscountRowDrawer(props) {
|
|
|
21781
21819
|
label: '按比例折扣',
|
|
21782
21820
|
value: '2'
|
|
21783
21821
|
}]
|
|
21784
|
-
})), (formValues === null || formValues === void 0 ? void 0 : formValues.discolineType) === '1' ?
|
|
21822
|
+
})), (formValues === null || formValues === void 0 ? void 0 : formValues.discolineType) === '1' ? React.createElement(Form$1.Item, {
|
|
21785
21823
|
label: "\u6298\u6263\u91D1\u989D\uFF08\u5143\uFF09\uFF08\u542B\u7A0E\uFF09",
|
|
21786
21824
|
name: 'discolineValue',
|
|
21787
21825
|
rules: [{
|
|
@@ -21832,11 +21870,11 @@ function AddDiscountRowDrawer(props) {
|
|
|
21832
21870
|
return validator;
|
|
21833
21871
|
}()
|
|
21834
21872
|
}]
|
|
21835
|
-
},
|
|
21873
|
+
}, React.createElement(InputNumber, {
|
|
21836
21874
|
style: {
|
|
21837
21875
|
width: '100%'
|
|
21838
21876
|
}
|
|
21839
|
-
})) :
|
|
21877
|
+
})) : React.createElement(Form$1.Item, {
|
|
21840
21878
|
label: "\u6298\u6263\u6BD4\u4F8B\uFF08%\uFF09\uFF08\u542B\u7A0E\uFF09",
|
|
21841
21879
|
name: 'discolineValue',
|
|
21842
21880
|
rules: [{
|
|
@@ -21887,7 +21925,7 @@ function AddDiscountRowDrawer(props) {
|
|
|
21887
21925
|
return validator;
|
|
21888
21926
|
}()
|
|
21889
21927
|
}]
|
|
21890
|
-
},
|
|
21928
|
+
}, React.createElement(InputNumber, {
|
|
21891
21929
|
style: {
|
|
21892
21930
|
width: '100%'
|
|
21893
21931
|
}
|
|
@@ -22031,16 +22069,16 @@ var useEndowCodeButton$1 = (function () {
|
|
|
22031
22069
|
}, _callee2);
|
|
22032
22070
|
})), [controller]);
|
|
22033
22071
|
var menuItem = React.useMemo(function () {
|
|
22034
|
-
if (model === 'readOnly') return
|
|
22035
|
-
return
|
|
22072
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
22073
|
+
return React.createElement(Menu$1.Item, {
|
|
22036
22074
|
key: "2",
|
|
22037
22075
|
onClick: onClick,
|
|
22038
22076
|
disabled: disabled
|
|
22039
22077
|
}, "\u6279\u91CF\u8D4B\u7801");
|
|
22040
22078
|
}, [onClick, disabled, model]);
|
|
22041
22079
|
var button = React.useMemo(function () {
|
|
22042
|
-
if (model === 'readOnly') return
|
|
22043
|
-
return
|
|
22080
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
22081
|
+
return React.createElement(Button$1, {
|
|
22044
22082
|
onClick: onClick,
|
|
22045
22083
|
disabled: disabled,
|
|
22046
22084
|
size: 'small'
|
|
@@ -22102,14 +22140,14 @@ var useEmptyRefill = (function () {
|
|
|
22102
22140
|
}());
|
|
22103
22141
|
}, [controller]);
|
|
22104
22142
|
var button = React.useMemo(function () {
|
|
22105
|
-
if (model === 'readOnly') return
|
|
22106
|
-
if (model === 'prefab') return
|
|
22107
|
-
return
|
|
22143
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
22144
|
+
if (model === 'prefab') return React.createElement(React.Fragment, null);
|
|
22145
|
+
return React.createElement(Popconfirm, {
|
|
22108
22146
|
title: "\u5C06\u8981\u6E05\u7A7A\u6240\u6709\u9879\u76EE\u4FE1\u606F\uFF0C\u662F\u5426\u7EE7\u7EED",
|
|
22109
22147
|
onConfirm: confirm,
|
|
22110
22148
|
okText: "\u786E\u5B9A",
|
|
22111
22149
|
cancelText: "\u53D6\u6D88"
|
|
22112
|
-
},
|
|
22150
|
+
}, React.createElement(Button$1, {
|
|
22113
22151
|
size: 'small'
|
|
22114
22152
|
}, "\u6E05\u7A7A\u91CD\u586B"));
|
|
22115
22153
|
}, [model, confirm]);
|
|
@@ -22176,14 +22214,14 @@ function InvoiceTypeModal(props) {
|
|
|
22176
22214
|
setValues(values);
|
|
22177
22215
|
}
|
|
22178
22216
|
}, [props.open, props.defaultBillingType, props.defaultBusiness, props.defaultInvoiceType, form]);
|
|
22179
|
-
return
|
|
22217
|
+
return React.createElement(Modal, {
|
|
22180
22218
|
title: props.modalTitle || "选择开具信息",
|
|
22181
22219
|
open: props.open,
|
|
22182
22220
|
onOk: onConfirm,
|
|
22183
22221
|
onCancel: props.onCancel,
|
|
22184
22222
|
okText: "\u786E\u5B9A",
|
|
22185
22223
|
cancelText: "\u53D6\u6D88"
|
|
22186
|
-
},
|
|
22224
|
+
}, React.createElement(Form$1, {
|
|
22187
22225
|
form: form,
|
|
22188
22226
|
layout: "vertical",
|
|
22189
22227
|
style: {
|
|
@@ -22192,13 +22230,13 @@ function InvoiceTypeModal(props) {
|
|
|
22192
22230
|
onValuesChange: function onValuesChange(_, e) {
|
|
22193
22231
|
setValues(e);
|
|
22194
22232
|
}
|
|
22195
|
-
},
|
|
22233
|
+
}, React.createElement(Row, {
|
|
22196
22234
|
gutter: [16, 16]
|
|
22197
|
-
},
|
|
22235
|
+
}, React.createElement(Col, {
|
|
22198
22236
|
span: 24
|
|
22199
|
-
},
|
|
22237
|
+
}, React.createElement(Form$1.Item, {
|
|
22200
22238
|
name: 'billingType'
|
|
22201
|
-
},
|
|
22239
|
+
}, React.createElement(Radio.Group, {
|
|
22202
22240
|
size: 'large',
|
|
22203
22241
|
className: "goods-list-digtal-reselect-invoice-typeModal-radio",
|
|
22204
22242
|
optionType: "button",
|
|
@@ -22211,27 +22249,27 @@ function InvoiceTypeModal(props) {
|
|
|
22211
22249
|
label: '税控发票',
|
|
22212
22250
|
value: 'taxation'
|
|
22213
22251
|
}]
|
|
22214
|
-
}))),
|
|
22252
|
+
}))), React.createElement(Col, {
|
|
22215
22253
|
span: 12
|
|
22216
|
-
},
|
|
22254
|
+
}, React.createElement(Form$1.Item, {
|
|
22217
22255
|
name: 'invoiceType',
|
|
22218
22256
|
label: "\u9009\u62E9\u7968\u7C7B",
|
|
22219
22257
|
rules: [{
|
|
22220
22258
|
required: true,
|
|
22221
22259
|
message: '选择票类必填'
|
|
22222
22260
|
}]
|
|
22223
|
-
},
|
|
22261
|
+
}, React.createElement(Select$1, {
|
|
22224
22262
|
size: 'large',
|
|
22225
22263
|
allowClear: true,
|
|
22226
22264
|
placeholder: "\u8BF7\u9009\u62E9\uFF08\u5FC5\u586B\u9879\uFF09",
|
|
22227
22265
|
disabled: disableds.indexOf('invoiceType') >= 0,
|
|
22228
22266
|
options: props.invoiceTypeOptions
|
|
22229
|
-
}))),
|
|
22267
|
+
}))), React.createElement(Col, {
|
|
22230
22268
|
span: 12
|
|
22231
|
-
},
|
|
22269
|
+
}, React.createElement(Form$1.Item, {
|
|
22232
22270
|
name: 'business',
|
|
22233
22271
|
label: "\u7279\u5B9A\u4E1A\u52A1"
|
|
22234
|
-
},
|
|
22272
|
+
}, React.createElement(Select$1, {
|
|
22235
22273
|
size: 'large',
|
|
22236
22274
|
allowClear: true,
|
|
22237
22275
|
placeholder: "\u8BF7\u9009\u62E9\uFF08\u975E\u5FC5\u586B\u9879\uFF09",
|
|
@@ -22276,11 +22314,11 @@ var useReselectInvoiceType = (function () {
|
|
|
22276
22314
|
return true;
|
|
22277
22315
|
}, [model, typeModalProps === null || typeModalProps === void 0 ? void 0 : typeModalProps.isDisabled]);
|
|
22278
22316
|
var button = React.useMemo(function () {
|
|
22279
|
-
if (isEnable === false) return
|
|
22280
|
-
return
|
|
22317
|
+
if (isEnable === false) return React.createElement(React.Fragment, null);
|
|
22318
|
+
return React.createElement(React.Fragment, null, React.createElement(Button$1, {
|
|
22281
22319
|
size: 'small',
|
|
22282
22320
|
onClick: onOpen
|
|
22283
|
-
}, "\u91CD\u9009\u53D1\u7968\u7C7B\u578B"),
|
|
22321
|
+
}, "\u91CD\u9009\u53D1\u7968\u7C7B\u578B"), React.createElement(InvoiceTypeModal, _objectSpread2(_objectSpread2({}, typeModalProps), {}, {
|
|
22284
22322
|
open: open,
|
|
22285
22323
|
onCancel: onClose,
|
|
22286
22324
|
onOk: onOk
|
|
@@ -22308,7 +22346,7 @@ var GoodsList$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
22308
22346
|
_createClass(GoodsList, [{
|
|
22309
22347
|
key: "render",
|
|
22310
22348
|
value: function render() {
|
|
22311
|
-
return
|
|
22349
|
+
return React.createElement(Main$3, _objectSpread2({}, this.props));
|
|
22312
22350
|
}
|
|
22313
22351
|
}]);
|
|
22314
22352
|
|
|
@@ -22509,20 +22547,20 @@ var Main$3 = decorator(Form.create())(function (props) {
|
|
|
22509
22547
|
};
|
|
22510
22548
|
}())();
|
|
22511
22549
|
}, [controller, props.isSwitchTax]);
|
|
22512
|
-
return
|
|
22550
|
+
return React.createElement("div", {
|
|
22513
22551
|
className: "kts-invoice-operate-goods-list-digtal",
|
|
22514
22552
|
onClick: function onClick(e) {
|
|
22515
22553
|
e.stopPropagation();
|
|
22516
22554
|
}
|
|
22517
|
-
},
|
|
22555
|
+
}, React.createElement("div", {
|
|
22518
22556
|
className: "kts-invoice-operate-goods-list-able"
|
|
22519
|
-
},
|
|
22557
|
+
}, React.createElement(AddRowButton$1, null), delRowButton.button, addDiscountRowButton.button, endowCodeButton.button, React.createElement(TaxIncludedSwitch$1, null), React.createElement(Search$1, null), React.createElement("div", {
|
|
22520
22558
|
style: {
|
|
22521
22559
|
flex: 1
|
|
22522
22560
|
}
|
|
22523
|
-
}), props.menuExpansion, reselectInvoiceType.button, emptyRefill.button),
|
|
22561
|
+
}), props.menuExpansion, reselectInvoiceType.button, emptyRefill.button), React.createElement("div", {
|
|
22524
22562
|
className: classNames('kts-invoice-operate-goods-list-table-digtal')
|
|
22525
|
-
},
|
|
22563
|
+
}, React.createElement(TableVirtual$1, {
|
|
22526
22564
|
size: "small",
|
|
22527
22565
|
rowKey: "$index",
|
|
22528
22566
|
pagination: false,
|
|
@@ -22544,7 +22582,7 @@ var Main$3 = decorator(Form.create())(function (props) {
|
|
|
22544
22582
|
}
|
|
22545
22583
|
};
|
|
22546
22584
|
}
|
|
22547
|
-
})),
|
|
22585
|
+
})), React.createElement("div", null, React.createElement(Statistics$1, null)));
|
|
22548
22586
|
});
|
|
22549
22587
|
|
|
22550
22588
|
var ImportBuyerDrawer = (function () {
|
|
@@ -22578,7 +22616,7 @@ var ImportBuyerDrawer = (function () {
|
|
|
22578
22616
|
};
|
|
22579
22617
|
}())();
|
|
22580
22618
|
}, [controller]);
|
|
22581
|
-
return
|
|
22619
|
+
return React.createElement(Drawer, {
|
|
22582
22620
|
title: "\u8D2D\u65B9\u5217\u8868",
|
|
22583
22621
|
placement: "right",
|
|
22584
22622
|
// closable={false}
|
|
@@ -22586,7 +22624,7 @@ var ImportBuyerDrawer = (function () {
|
|
|
22586
22624
|
width: 983,
|
|
22587
22625
|
onClose: onClose,
|
|
22588
22626
|
visible: visible
|
|
22589
|
-
}, topExpand,
|
|
22627
|
+
}, topExpand, React.createElement(DrawerBody$1, null));
|
|
22590
22628
|
});
|
|
22591
22629
|
|
|
22592
22630
|
var DrawerBody$1 = function DrawerBody() {
|
|
@@ -22607,7 +22645,7 @@ var DrawerBody$1 = function DrawerBody() {
|
|
|
22607
22645
|
}
|
|
22608
22646
|
});
|
|
22609
22647
|
}, [controller]);
|
|
22610
|
-
return
|
|
22648
|
+
return React.createElement(Table$1, {
|
|
22611
22649
|
bordered: true,
|
|
22612
22650
|
size: "small",
|
|
22613
22651
|
columns: columns,
|
|
@@ -22707,7 +22745,7 @@ var ImportGoodsDrawer = (function () {
|
|
|
22707
22745
|
};
|
|
22708
22746
|
}())();
|
|
22709
22747
|
}, [controller]);
|
|
22710
|
-
return
|
|
22748
|
+
return React.createElement(Drawer, {
|
|
22711
22749
|
title: "\u5546\u54C1\u5217\u8868",
|
|
22712
22750
|
placement: "right",
|
|
22713
22751
|
// closable={false}
|
|
@@ -22715,11 +22753,11 @@ var ImportGoodsDrawer = (function () {
|
|
|
22715
22753
|
width: 983,
|
|
22716
22754
|
onClose: onClose,
|
|
22717
22755
|
visible: visible
|
|
22718
|
-
}, topExpand &&
|
|
22756
|
+
}, topExpand && React.createElement("div", {
|
|
22719
22757
|
style: {
|
|
22720
22758
|
marginBottom: 10
|
|
22721
22759
|
}
|
|
22722
|
-
}, topExpand),
|
|
22760
|
+
}, topExpand), React.createElement(DrawerBody$2, null));
|
|
22723
22761
|
});
|
|
22724
22762
|
|
|
22725
22763
|
var DrawerBody$2 = function DrawerBody() {
|
|
@@ -22741,7 +22779,7 @@ var DrawerBody$2 = function DrawerBody() {
|
|
|
22741
22779
|
}
|
|
22742
22780
|
});
|
|
22743
22781
|
}, [controller]);
|
|
22744
|
-
return
|
|
22782
|
+
return React.createElement(Table$1, {
|
|
22745
22783
|
bordered: true,
|
|
22746
22784
|
size: "small",
|
|
22747
22785
|
columns: columns,
|
|
@@ -23028,7 +23066,7 @@ var EndowCodeDrawer = (function () {
|
|
|
23028
23066
|
setDefaultValue(undefined);
|
|
23029
23067
|
}
|
|
23030
23068
|
}, [visible]);
|
|
23031
|
-
return
|
|
23069
|
+
return React.createElement(Drawer, {
|
|
23032
23070
|
title: "\u8D4B\u7801",
|
|
23033
23071
|
placement: "right",
|
|
23034
23072
|
destroyOnClose: true,
|
|
@@ -23036,7 +23074,7 @@ var EndowCodeDrawer = (function () {
|
|
|
23036
23074
|
width: 383,
|
|
23037
23075
|
onClose: onClose,
|
|
23038
23076
|
visible: visible
|
|
23039
|
-
}, defaultValue &&
|
|
23077
|
+
}, defaultValue && React.createElement(DrawerBody$3, {
|
|
23040
23078
|
defaultValue: defaultValue
|
|
23041
23079
|
}));
|
|
23042
23080
|
});
|
|
@@ -23176,7 +23214,7 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23176
23214
|
};
|
|
23177
23215
|
}());
|
|
23178
23216
|
}, [actions, dataSource, readOnlyTaxRate]);
|
|
23179
|
-
return
|
|
23217
|
+
return React.createElement(Select, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
23180
23218
|
showSearch: true,
|
|
23181
23219
|
showArrow: false,
|
|
23182
23220
|
notFoundContent: null,
|
|
@@ -23184,7 +23222,7 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23184
23222
|
onSearch: onSearch,
|
|
23185
23223
|
onChange: onChange
|
|
23186
23224
|
}), dataSource.map(function (e) {
|
|
23187
|
-
return
|
|
23225
|
+
return React.createElement(Select.Option, {
|
|
23188
23226
|
key: e.value,
|
|
23189
23227
|
value: e.value
|
|
23190
23228
|
}, e.label);
|
|
@@ -23214,14 +23252,14 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23214
23252
|
|
|
23215
23253
|
|
|
23216
23254
|
var createTreeNode = React.useCallback(function () {
|
|
23217
|
-
if (!list) return
|
|
23255
|
+
if (!list) return React.createElement(React.Fragment, null);
|
|
23218
23256
|
return ctn(list);
|
|
23219
23257
|
|
|
23220
23258
|
function title(label) {
|
|
23221
23259
|
if (!filter) return label;
|
|
23222
23260
|
label = (filter.taxCategoryCode ? label.split(new RegExp(filter.taxCategoryCode, 'g')) : [label]).join("<span style=\"color: #1890ff;\">".concat(filter.taxCategoryCode, "</span>"));
|
|
23223
23261
|
label = (filter.val ? label.split(new RegExp(filter.val, 'g')) : [label]).join("<span style=\"color: #1890ff;\">".concat(filter.val, "</span>"));
|
|
23224
|
-
return
|
|
23262
|
+
return React.createElement("span", {
|
|
23225
23263
|
dangerouslySetInnerHTML: {
|
|
23226
23264
|
__html: label
|
|
23227
23265
|
}
|
|
@@ -23230,11 +23268,11 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23230
23268
|
|
|
23231
23269
|
function ctn(l) {
|
|
23232
23270
|
var p = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '0';
|
|
23233
|
-
if (!l || !l.length) return [
|
|
23271
|
+
if (!l || !l.length) return [React.createElement(React.Fragment, null)];
|
|
23234
23272
|
return l.filter(function (e) {
|
|
23235
23273
|
return e.pid === p;
|
|
23236
23274
|
}).map(function (e) {
|
|
23237
|
-
return
|
|
23275
|
+
return React.createElement(TreeNode, {
|
|
23238
23276
|
title: title(e.label),
|
|
23239
23277
|
key: e.id
|
|
23240
23278
|
}, ctn(l, e.id));
|
|
@@ -23347,46 +23385,46 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23347
23385
|
setList([]);
|
|
23348
23386
|
}
|
|
23349
23387
|
}, [visible]);
|
|
23350
|
-
return
|
|
23388
|
+
return React.createElement(React.Fragment, null, React.createElement(Input, {
|
|
23351
23389
|
readOnly: true,
|
|
23352
23390
|
value: props.value,
|
|
23353
|
-
addonAfter:
|
|
23391
|
+
addonAfter: React.createElement(Button, {
|
|
23354
23392
|
size: "small",
|
|
23355
23393
|
type: "link",
|
|
23356
23394
|
onClick: function onClick() {
|
|
23357
23395
|
setVisible(true);
|
|
23358
23396
|
}
|
|
23359
23397
|
}, "\u70B9\u51FB\u9009\u62E9")
|
|
23360
|
-
}),
|
|
23398
|
+
}), React.createElement(Drawer, {
|
|
23361
23399
|
title: "\u7A0E\u6536\u5206\u7C7B\u7F16\u7801",
|
|
23362
23400
|
visible: visible,
|
|
23363
23401
|
width: 500,
|
|
23364
23402
|
onClose: function onClose() {
|
|
23365
23403
|
setVisible(false);
|
|
23366
23404
|
}
|
|
23367
|
-
},
|
|
23405
|
+
}, React.createElement(Form, {
|
|
23368
23406
|
key: "".concat(visible)
|
|
23369
|
-
},
|
|
23407
|
+
}, React.createElement(Form.Item, {
|
|
23370
23408
|
label: "\u4EA7\u54C1\u6216\u670D\u52A1\u7B80\u79F0"
|
|
23371
|
-
},
|
|
23409
|
+
}, React.createElement(Input, {
|
|
23372
23410
|
onChange: function onChange(e) {
|
|
23373
23411
|
setFilter(_objectSpread2(_objectSpread2({}, filter), {}, {
|
|
23374
23412
|
val: e.target.value
|
|
23375
23413
|
}));
|
|
23376
23414
|
}
|
|
23377
|
-
})),
|
|
23415
|
+
})), React.createElement(Form.Item, {
|
|
23378
23416
|
label: "\u7A0E\u6536\u5206\u7C7B\u7F16\u7801"
|
|
23379
|
-
},
|
|
23417
|
+
}, React.createElement(Input, {
|
|
23380
23418
|
onChange: function onChange(e) {
|
|
23381
23419
|
setFilter(_objectSpread2(_objectSpread2({}, filter), {}, {
|
|
23382
23420
|
taxCategoryCode: e.target.value
|
|
23383
23421
|
}));
|
|
23384
23422
|
}
|
|
23385
|
-
}))), list && list.length > 0 ?
|
|
23423
|
+
}))), list && list.length > 0 ? React.createElement(Tree, {
|
|
23386
23424
|
defaultExpandAll: true,
|
|
23387
23425
|
selectedKeys: [],
|
|
23388
23426
|
onSelect: onSelect
|
|
23389
|
-
}, createTreeNode()) :
|
|
23427
|
+
}, createTreeNode()) : React.createElement("span", {
|
|
23390
23428
|
style: {
|
|
23391
23429
|
color: '#00000073'
|
|
23392
23430
|
}
|
|
@@ -23592,11 +23630,11 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23592
23630
|
return data;
|
|
23593
23631
|
};
|
|
23594
23632
|
|
|
23595
|
-
return
|
|
23633
|
+
return React.createElement(React.Fragment, null, React.createElement(Input, {
|
|
23596
23634
|
readOnly: true,
|
|
23597
23635
|
onClick: onClick,
|
|
23598
23636
|
value: props.value
|
|
23599
|
-
}),
|
|
23637
|
+
}), React.createElement(TaxClassificationModal, {
|
|
23600
23638
|
list: list,
|
|
23601
23639
|
open: open,
|
|
23602
23640
|
onSelect: onSelect,
|
|
@@ -23715,14 +23753,14 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23715
23753
|
React.useEffect(function () {
|
|
23716
23754
|
if (controller.getTaxCategoryCodeList) controller.getTaxCategoryCodeList();
|
|
23717
23755
|
}, [controller]);
|
|
23718
|
-
return
|
|
23756
|
+
return React.createElement(SchemaForm, {
|
|
23719
23757
|
actions: actions,
|
|
23720
23758
|
previewPlaceholder: " ",
|
|
23721
23759
|
components: _objectSpread2(_objectSpread2({}, components), {}, {
|
|
23722
23760
|
showSearch: !!controller.state.goodsListState.endowCode.onLoadTaxClassificationCode ? ShowSearch3 : ShowSearch
|
|
23723
23761
|
}),
|
|
23724
23762
|
effects: effects
|
|
23725
|
-
},
|
|
23763
|
+
}, React.createElement(FormButtonGroup, null, React.createElement(SchemaMarkupField, {
|
|
23726
23764
|
name: "taxClassificationCode",
|
|
23727
23765
|
type: "showSearch",
|
|
23728
23766
|
title: "\u7A0E\u6536\u5206\u7C7B\u7F16\u7801",
|
|
@@ -23732,13 +23770,13 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23732
23770
|
message: '请选择税收分类编码',
|
|
23733
23771
|
required: true
|
|
23734
23772
|
}]
|
|
23735
|
-
}),
|
|
23773
|
+
}), React.createElement(SchemaMarkupField, {
|
|
23736
23774
|
name: "shorthand",
|
|
23737
23775
|
type: "string",
|
|
23738
23776
|
readOnly: true,
|
|
23739
23777
|
default: defaultValue === null || defaultValue === void 0 ? void 0 : defaultValue.shorthand,
|
|
23740
23778
|
title: "\u5546\u54C1\u548C\u670D\u52A1\u5206\u7C7B\u7B80\u79F0"
|
|
23741
|
-
}),
|
|
23779
|
+
}), React.createElement(SchemaMarkupField, {
|
|
23742
23780
|
name: "taxRate",
|
|
23743
23781
|
type: "string",
|
|
23744
23782
|
title: "\u7A0E\u7387",
|
|
@@ -23751,7 +23789,7 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23751
23789
|
message: '请选择税率',
|
|
23752
23790
|
required: true
|
|
23753
23791
|
}]
|
|
23754
|
-
}), taxRate === 0 && isTaxFreeTypeNeeded &&
|
|
23792
|
+
}), taxRate === 0 && isTaxFreeTypeNeeded && React.createElement(SchemaMarkupField, {
|
|
23755
23793
|
name: "taxFreeType",
|
|
23756
23794
|
type: "string",
|
|
23757
23795
|
title: "\u514D\u7A0E\u7C7B\u578B",
|
|
@@ -23764,7 +23802,7 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23764
23802
|
message: '请选择免税类型',
|
|
23765
23803
|
required: true
|
|
23766
23804
|
}]
|
|
23767
|
-
}),
|
|
23805
|
+
}), React.createElement(SchemaMarkupField, {
|
|
23768
23806
|
name: "favouredPolicyMark",
|
|
23769
23807
|
type: "number",
|
|
23770
23808
|
title: "\u662F\u5426\u4EAB\u53D7\u4F18\u60E0\u653F\u7B56",
|
|
@@ -23783,7 +23821,7 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23783
23821
|
message: '请选择是否享受优惠政策',
|
|
23784
23822
|
required: true
|
|
23785
23823
|
}]
|
|
23786
|
-
}), favouredPolicyMark === 1 &&
|
|
23824
|
+
}), favouredPolicyMark === 1 && React.createElement(SchemaMarkupField, {
|
|
23787
23825
|
name: "favouredPolicyName",
|
|
23788
23826
|
type: "string",
|
|
23789
23827
|
title: "\u4F18\u60E0\u653F\u7B56\u7C7B\u578B",
|
|
@@ -23796,14 +23834,14 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23796
23834
|
message: '请选择是否享受优惠政策',
|
|
23797
23835
|
required: true
|
|
23798
23836
|
}]
|
|
23799
|
-
})),
|
|
23837
|
+
})), React.createElement("span", {
|
|
23800
23838
|
className: "kts-invoice-operate-goods-endow-code-button-list"
|
|
23801
|
-
},
|
|
23839
|
+
}, React.createElement(Button, {
|
|
23802
23840
|
onClick: function onClick() {
|
|
23803
23841
|
actions.submit(onSubmit);
|
|
23804
23842
|
},
|
|
23805
23843
|
type: "primary"
|
|
23806
|
-
}, "\u786E\u5B9A"),
|
|
23844
|
+
}, "\u786E\u5B9A"), React.createElement(Button, {
|
|
23807
23845
|
onClick: function onClick() {
|
|
23808
23846
|
controller.pipeline( /*#__PURE__*/function () {
|
|
23809
23847
|
var _ref17 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee17(s) {
|
|
@@ -23963,53 +24001,53 @@ function AddComparisonDrawer() {
|
|
|
23963
24001
|
}));
|
|
23964
24002
|
}
|
|
23965
24003
|
}, [good]);
|
|
23966
|
-
return
|
|
24004
|
+
return React.createElement(Drawer$1, {
|
|
23967
24005
|
width: 500,
|
|
23968
24006
|
onClose: onClose,
|
|
23969
24007
|
placement: "right",
|
|
23970
24008
|
title: "\u5546\u54C1\u6620\u5C04",
|
|
23971
24009
|
visible: !!good,
|
|
23972
|
-
footer:
|
|
24010
|
+
footer: React.createElement("div", {
|
|
23973
24011
|
style: {
|
|
23974
24012
|
display: 'flex',
|
|
23975
24013
|
justifyContent: 'flex-end',
|
|
23976
24014
|
gap: 10
|
|
23977
24015
|
}
|
|
23978
|
-
},
|
|
24016
|
+
}, React.createElement(Button, {
|
|
23979
24017
|
type: "primary",
|
|
23980
24018
|
onClick: onSubmit
|
|
23981
|
-
}, "\u63D0\u4EA4"),
|
|
24019
|
+
}, "\u63D0\u4EA4"), React.createElement(Button, {
|
|
23982
24020
|
onClick: onClose
|
|
23983
24021
|
}, "\u53D6\u6D88"))
|
|
23984
|
-
}, !!good &&
|
|
24022
|
+
}, !!good && React.createElement(Form$1, {
|
|
23985
24023
|
layout: "vertical",
|
|
23986
24024
|
style: {
|
|
23987
24025
|
flex: 1
|
|
23988
24026
|
},
|
|
23989
24027
|
form: form
|
|
23990
|
-
},
|
|
24028
|
+
}, React.createElement(Row$1, {
|
|
23991
24029
|
gutter: [8, 8]
|
|
23992
|
-
},
|
|
24030
|
+
}, React.createElement(Col$1, {
|
|
23993
24031
|
span: 12
|
|
23994
|
-
},
|
|
24032
|
+
}, React.createElement(Form$1.Item, {
|
|
23995
24033
|
name: "itemNameSelf",
|
|
23996
24034
|
label: "\u6211\u65B9\u5546\u54C1\u540D\u79F0"
|
|
23997
|
-
},
|
|
24035
|
+
}, React.createElement(Input, null))), React.createElement(Col$1, {
|
|
23998
24036
|
span: 12
|
|
23999
|
-
},
|
|
24037
|
+
}, React.createElement(Form$1.Item, {
|
|
24000
24038
|
name: "itemName",
|
|
24001
24039
|
label: "\u5BF9\u65B9\u5546\u54C1\u540D\u79F0"
|
|
24002
|
-
},
|
|
24040
|
+
}, React.createElement(Input, null))), React.createElement(Col$1, {
|
|
24003
24041
|
span: 12
|
|
24004
|
-
},
|
|
24042
|
+
}, React.createElement(Form$1.Item, {
|
|
24005
24043
|
name: 'itemModelNameSelf',
|
|
24006
24044
|
label: "\u6211\u65B9\u89C4\u683C\u578B\u53F7"
|
|
24007
|
-
},
|
|
24045
|
+
}, React.createElement(Input, null))), React.createElement(Col$1, {
|
|
24008
24046
|
span: 12
|
|
24009
|
-
},
|
|
24047
|
+
}, React.createElement(Form$1.Item, {
|
|
24010
24048
|
name: "itemModelName",
|
|
24011
24049
|
label: "\u5BF9\u65B9\u89C4\u683C\u578B\u53F7"
|
|
24012
|
-
},
|
|
24050
|
+
}, React.createElement(Input, null))))));
|
|
24013
24051
|
} // function validateFields(form: WrappedFormUtils<any>) {
|
|
24014
24052
|
// return new Promise<{ err: any, values: any }>(resolve => {
|
|
24015
24053
|
// form.validateFields((err, values) => {
|
|
@@ -24020,7 +24058,7 @@ function AddComparisonDrawer() {
|
|
|
24020
24058
|
|
|
24021
24059
|
/** 发票组件的上下文 */
|
|
24022
24060
|
|
|
24023
|
-
var InvoiceContext =
|
|
24061
|
+
var InvoiceContext = React.createContext(undefined);
|
|
24024
24062
|
|
|
24025
24063
|
var Invoice = /*#__PURE__*/function (_React$PureComponent) {
|
|
24026
24064
|
_inherits(Invoice, _React$PureComponent);
|
|
@@ -24063,9 +24101,9 @@ var Invoice = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
24063
24101
|
/** 获取控制器钩子 */
|
|
24064
24102
|
function render() {
|
|
24065
24103
|
if (this.props.invoiceType === 'digtal') {
|
|
24066
|
-
return
|
|
24104
|
+
return React.createElement(Digtal, _objectSpread2({}, this.props));
|
|
24067
24105
|
} else {
|
|
24068
|
-
return
|
|
24106
|
+
return React.createElement(Main$4, _objectSpread2({}, this.props));
|
|
24069
24107
|
}
|
|
24070
24108
|
}
|
|
24071
24109
|
}]);
|
|
@@ -24106,10 +24144,10 @@ var Main$4 = function Main(props) {
|
|
|
24106
24144
|
React.useEffect(function () {
|
|
24107
24145
|
setKey(key + 1);
|
|
24108
24146
|
}, [controller]);
|
|
24109
|
-
return
|
|
24147
|
+
return React.createElement(InvoiceContext.Provider, {
|
|
24110
24148
|
key: key,
|
|
24111
24149
|
value: controller
|
|
24112
|
-
},
|
|
24150
|
+
}, React.createElement("div", {
|
|
24113
24151
|
className: "kts-invoice-operate",
|
|
24114
24152
|
ref: controller.pipeline( /*#__PURE__*/function () {
|
|
24115
24153
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(s, e) {
|
|
@@ -24131,17 +24169,17 @@ var Main$4 = function Main(props) {
|
|
|
24131
24169
|
return _ref.apply(this, arguments);
|
|
24132
24170
|
};
|
|
24133
24171
|
}())
|
|
24134
|
-
}, props.invoiceHeader ||
|
|
24172
|
+
}, props.invoiceHeader || React.createElement(InvoiceHeader, null)
|
|
24135
24173
|
/** 发票头 */
|
|
24136
|
-
, props.buyer ||
|
|
24174
|
+
, props.buyer || React.createElement(Buyer$1, null)
|
|
24137
24175
|
/** 购买方 */
|
|
24138
|
-
, props.goodsList ||
|
|
24176
|
+
, props.goodsList || React.createElement(GoodsList, null)
|
|
24139
24177
|
/** 货物列表 */
|
|
24140
|
-
, props.seller ||
|
|
24178
|
+
, props.seller || React.createElement(Buyer, null)
|
|
24141
24179
|
/** 销售方 */
|
|
24142
|
-
, props.sign ||
|
|
24180
|
+
, props.sign || React.createElement(Sign, null)
|
|
24143
24181
|
/** 落款 */
|
|
24144
|
-
, props.footExpand),
|
|
24182
|
+
, props.footExpand), React.createElement(ImportBuyerDrawer, null), React.createElement(ImportGoodsDrawer, null), React.createElement(EndowCodeDrawer, null), React.createElement(AddComparisonDrawer, null));
|
|
24145
24183
|
};
|
|
24146
24184
|
/** 数电 */
|
|
24147
24185
|
|
|
@@ -24160,10 +24198,10 @@ var Digtal = function Digtal(props) {
|
|
|
24160
24198
|
React.useEffect(function () {
|
|
24161
24199
|
setKey(key + 1);
|
|
24162
24200
|
}, [controller]);
|
|
24163
|
-
return
|
|
24201
|
+
return React.createElement(InvoiceContext.Provider, {
|
|
24164
24202
|
key: key,
|
|
24165
24203
|
value: controller
|
|
24166
|
-
},
|
|
24204
|
+
}, React.createElement("div", {
|
|
24167
24205
|
className: "kts-invoice-operate-digtal",
|
|
24168
24206
|
ref: controller.pipeline( /*#__PURE__*/function () {
|
|
24169
24207
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(s, e) {
|
|
@@ -24185,17 +24223,17 @@ var Digtal = function Digtal(props) {
|
|
|
24185
24223
|
return _ref2.apply(this, arguments);
|
|
24186
24224
|
};
|
|
24187
24225
|
}())
|
|
24188
|
-
}, props.invoiceHeader ||
|
|
24226
|
+
}, props.invoiceHeader || React.createElement(InvoiceHeaderDigtal, null)
|
|
24189
24227
|
/** 发票头 */
|
|
24190
|
-
,
|
|
24228
|
+
, React.createElement("div", {
|
|
24191
24229
|
className: 'kts-invoice-operate-digtal-cont'
|
|
24192
|
-
}, props.stakeholder ||
|
|
24230
|
+
}, props.stakeholder || React.createElement(Stakeholder$1, null)
|
|
24193
24231
|
/** 干系人 */
|
|
24194
|
-
, props.goodsList ||
|
|
24232
|
+
, props.goodsList || React.createElement(GoodsList$1
|
|
24195
24233
|
/** 货物列表 */
|
|
24196
|
-
, null)), props.sign ||
|
|
24234
|
+
, null)), props.sign || React.createElement(SignDigtal, null)
|
|
24197
24235
|
/** 落款 */
|
|
24198
|
-
),
|
|
24236
|
+
), React.createElement(ImportGoodsDrawer, null), React.createElement(EndowCodeDrawer, null));
|
|
24199
24237
|
};
|
|
24200
24238
|
|
|
24201
24239
|
function TaxClassificationModal(props) {
|
|
@@ -24236,26 +24274,26 @@ function TaxClassificationModal(props) {
|
|
|
24236
24274
|
}, 500);
|
|
24237
24275
|
}
|
|
24238
24276
|
}, [form, props.open]);
|
|
24239
|
-
return
|
|
24277
|
+
return React.createElement(Drawer$1, {
|
|
24240
24278
|
title: "\u5546\u54C1\u548C\u670D\u52A1\u7A0E\u6536\u5206\u7C7B\u7F16\u7801",
|
|
24241
24279
|
placement: "right",
|
|
24242
24280
|
open: props.open,
|
|
24243
24281
|
width: 503,
|
|
24244
24282
|
onClose: props.onCancel
|
|
24245
|
-
},
|
|
24283
|
+
}, React.createElement(Form$1, {
|
|
24246
24284
|
form: form
|
|
24247
|
-
},
|
|
24285
|
+
}, React.createElement(Form$1.Item, {
|
|
24248
24286
|
name: 'search'
|
|
24249
|
-
},
|
|
24287
|
+
}, React.createElement(Input$1, {
|
|
24250
24288
|
placeholder: "\u8BF7\u8F93\u5165\u7A0E\u6536\u5206\u7C7B\u7F16\u7801\u3001\u7A0E\u6536\u5206\u7C7B\u540D\u79F0\u8FDB\u884C\u68C0\u7D22",
|
|
24251
24289
|
onChange: searchTax
|
|
24252
|
-
})),
|
|
24290
|
+
})), React.createElement(Form$1.Item, {
|
|
24253
24291
|
name: 'tree'
|
|
24254
|
-
},
|
|
24292
|
+
}, React.createElement(Tree$1, {
|
|
24255
24293
|
onSelect: props.onSelect,
|
|
24256
24294
|
loadData: props.onLoad,
|
|
24257
24295
|
treeData: props.list,
|
|
24258
|
-
switcherIcon:
|
|
24296
|
+
switcherIcon: React.createElement(Icon$1, {
|
|
24259
24297
|
type: "down"
|
|
24260
24298
|
})
|
|
24261
24299
|
}))));
|