kts-component-invoice-operate 3.2.125 → 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 +631 -594
- package/dist/index.js +631 -594
- 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";
|
|
@@ -19343,76 +19341,115 @@ function ItemNameInput$1(props) {
|
|
|
19343
19341
|
return _ref.apply(this, arguments);
|
|
19344
19342
|
};
|
|
19345
19343
|
}(), [autoComplete.onItemNameBlur, selectLine, props.editGood]);
|
|
19346
|
-
var onChangeAutoComplete = React.useCallback(function (
|
|
19347
|
-
var
|
|
19348
|
-
|
|
19349
|
-
})[0];
|
|
19350
|
-
if (!record) return;
|
|
19351
|
-
controller.importGoodsDrawer(record);
|
|
19352
|
-
}, [options, controller]);
|
|
19353
|
-
var onSearch = React.useCallback( /*#__PURE__*/function () {
|
|
19354
|
-
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(searchText) {
|
|
19355
|
-
var list;
|
|
19344
|
+
var onChangeAutoComplete = React.useCallback( /*#__PURE__*/function () {
|
|
19345
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_, i) {
|
|
19346
|
+
var record;
|
|
19356
19347
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
19357
19348
|
while (1) {
|
|
19358
19349
|
switch (_context2.prev = _context2.next) {
|
|
19359
19350
|
case 0:
|
|
19360
|
-
|
|
19351
|
+
record = options.filter(function (e) {
|
|
19352
|
+
return e.$index === i.value;
|
|
19353
|
+
})[0];
|
|
19361
19354
|
|
|
19362
|
-
if (
|
|
19363
|
-
_context2.next =
|
|
19355
|
+
if (record) {
|
|
19356
|
+
_context2.next = 3;
|
|
19364
19357
|
break;
|
|
19365
19358
|
}
|
|
19366
19359
|
|
|
19367
|
-
_context2.
|
|
19360
|
+
return _context2.abrupt("return");
|
|
19361
|
+
|
|
19362
|
+
case 3:
|
|
19368
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;
|
|
19369
19402
|
return autoComplete.onItemNameSearch(searchText);
|
|
19370
19403
|
|
|
19371
19404
|
case 5:
|
|
19372
|
-
|
|
19373
|
-
list = (0,
|
|
19374
|
-
|
|
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
|
+
});
|
|
19375
19411
|
setOptions(list);
|
|
19376
19412
|
|
|
19377
19413
|
case 9:
|
|
19378
|
-
|
|
19414
|
+
_context3.next = 15;
|
|
19379
19415
|
break;
|
|
19380
19416
|
|
|
19381
19417
|
case 11:
|
|
19382
|
-
|
|
19383
|
-
|
|
19418
|
+
_context3.prev = 11;
|
|
19419
|
+
_context3.t2 = _context3["catch"](0);
|
|
19384
19420
|
setOptions([]);
|
|
19385
|
-
throw
|
|
19421
|
+
throw _context3.t2;
|
|
19386
19422
|
|
|
19387
19423
|
case 15:
|
|
19388
19424
|
case "end":
|
|
19389
|
-
return
|
|
19425
|
+
return _context3.stop();
|
|
19390
19426
|
}
|
|
19391
19427
|
}
|
|
19392
|
-
},
|
|
19428
|
+
}, _callee3, null, [[0, 11]]);
|
|
19393
19429
|
}));
|
|
19394
19430
|
|
|
19395
|
-
return function (
|
|
19396
|
-
return
|
|
19431
|
+
return function (_x4) {
|
|
19432
|
+
return _ref3.apply(this, arguments);
|
|
19397
19433
|
};
|
|
19398
19434
|
}(), [autoComplete.onItemNameSearch]);
|
|
19399
|
-
return
|
|
19435
|
+
return React.createElement("div", {
|
|
19400
19436
|
className: 'kts-invoice-operate-goods-list-itemName-input'
|
|
19401
|
-
}, props.shorthand &&
|
|
19437
|
+
}, props.shorthand && React.createElement("span", {
|
|
19402
19438
|
style: {
|
|
19403
19439
|
alignSelf: 'center',
|
|
19404
19440
|
fontSize: 12
|
|
19405
19441
|
}
|
|
19406
|
-
}, "*", props.shorthand, "*"),
|
|
19442
|
+
}, "*", props.shorthand, "*"), React.createElement(AutoComplete$1, {
|
|
19407
19443
|
onSearch: onSearch,
|
|
19408
19444
|
value: props.value,
|
|
19409
19445
|
options: options.map(function (e) {
|
|
19410
19446
|
return {
|
|
19411
|
-
value: e
|
|
19447
|
+
value: e.$index,
|
|
19448
|
+
label: e.itemName
|
|
19412
19449
|
};
|
|
19413
19450
|
}),
|
|
19414
19451
|
onSelect: onChangeAutoComplete
|
|
19415
|
-
},
|
|
19452
|
+
}, React.createElement(Input$1, {
|
|
19416
19453
|
style: {
|
|
19417
19454
|
height: '100%'
|
|
19418
19455
|
},
|
|
@@ -19482,7 +19519,7 @@ function Drag$2(props) {
|
|
|
19482
19519
|
var currentGood = controller.state.goodsListState.goodsList.filter(function (e) {
|
|
19483
19520
|
return e.$index === record.$index;
|
|
19484
19521
|
})[0];
|
|
19485
|
-
mounting(
|
|
19522
|
+
mounting(React.createElement(DragDiv$1, _objectSpread2({}, currentGood)));
|
|
19486
19523
|
rowList.forEach(function (e) {
|
|
19487
19524
|
e.addEventListener('mousemove', onMousemove);
|
|
19488
19525
|
});
|
|
@@ -19643,7 +19680,7 @@ function Drag$2(props) {
|
|
|
19643
19680
|
|
|
19644
19681
|
|
|
19645
19682
|
function insert() {
|
|
19646
|
-
mounting(
|
|
19683
|
+
mounting(React.createElement(React.Fragment, null));
|
|
19647
19684
|
controller.run( /*#__PURE__*/function () {
|
|
19648
19685
|
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(s) {
|
|
19649
19686
|
var _s$goodsListState$dra, container, current, site, goodsList, goodsMap, _currentGood, currentIndex, moveGoods;
|
|
@@ -19722,7 +19759,7 @@ function Drag$2(props) {
|
|
|
19722
19759
|
}
|
|
19723
19760
|
}, [controller, record, disabled]);
|
|
19724
19761
|
var renderButton = React.useMemo(function () {
|
|
19725
|
-
return
|
|
19762
|
+
return React.createElement(Button, {
|
|
19726
19763
|
type: 'link',
|
|
19727
19764
|
style: {
|
|
19728
19765
|
padding: 0
|
|
@@ -19733,13 +19770,13 @@ function Drag$2(props) {
|
|
|
19733
19770
|
},
|
|
19734
19771
|
className: "kts-invoice-operate-goods-list-itemName-drag",
|
|
19735
19772
|
onMouseOver: controller.saveEditGood
|
|
19736
|
-
},
|
|
19773
|
+
}, React.createElement(Icon, {
|
|
19737
19774
|
component: SvgI001$1
|
|
19738
19775
|
}));
|
|
19739
19776
|
}, [onMouseDown, controller]);
|
|
19740
19777
|
|
|
19741
19778
|
if (disabled) {
|
|
19742
|
-
return
|
|
19779
|
+
return React.createElement(Popover, {
|
|
19743
19780
|
content: '您还有未编辑完成的商品',
|
|
19744
19781
|
trigger: 'focus'
|
|
19745
19782
|
}, renderButton);
|
|
@@ -19779,13 +19816,13 @@ function DragDiv$1(props) {
|
|
|
19779
19816
|
window.removeEventListener('mousemove', onMousemove);
|
|
19780
19817
|
};
|
|
19781
19818
|
});
|
|
19782
|
-
return
|
|
19819
|
+
return React.createElement("div", {
|
|
19783
19820
|
className: "kts-invoice-operate-goods-list-itemName-drag-div",
|
|
19784
19821
|
style: {
|
|
19785
19822
|
top: y,
|
|
19786
19823
|
left: x
|
|
19787
19824
|
}
|
|
19788
|
-
},
|
|
19825
|
+
}, React.createElement("span", null, props.itemName), React.createElement("span", null, props.itemModelName), React.createElement("span", null, props.unit));
|
|
19789
19826
|
}
|
|
19790
19827
|
|
|
19791
19828
|
var useColumns$1 = (function (form) {
|
|
@@ -19901,7 +19938,7 @@ var useColumns$1 = (function (form) {
|
|
|
19901
19938
|
width: 40,
|
|
19902
19939
|
align: 'center',
|
|
19903
19940
|
render: function render(_, record) {
|
|
19904
|
-
return
|
|
19941
|
+
return React.createElement(Drag$2, {
|
|
19905
19942
|
record: record
|
|
19906
19943
|
});
|
|
19907
19944
|
}
|
|
@@ -19911,20 +19948,20 @@ var useColumns$1 = (function (form) {
|
|
|
19911
19948
|
dataIndex: 'serialNo',
|
|
19912
19949
|
width: 50,
|
|
19913
19950
|
render: function render(e) {
|
|
19914
|
-
return
|
|
19951
|
+
return React.createElement("span", {
|
|
19915
19952
|
style: {
|
|
19916
19953
|
padding: '0 10px'
|
|
19917
19954
|
}
|
|
19918
19955
|
}, e);
|
|
19919
19956
|
}
|
|
19920
19957
|
}, {
|
|
19921
|
-
title:
|
|
19958
|
+
title: React.createElement(TitleText$1, {
|
|
19922
19959
|
required: true
|
|
19923
19960
|
}, "\u9879\u76EE\u540D\u79F0"),
|
|
19924
19961
|
key: 'itemName',
|
|
19925
19962
|
render: function render(_, record) {
|
|
19926
19963
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
19927
|
-
return
|
|
19964
|
+
return React.createElement(Form.Item, null, React.createElement("div", {
|
|
19928
19965
|
style: {
|
|
19929
19966
|
display: 'flex'
|
|
19930
19967
|
}
|
|
@@ -19971,12 +20008,12 @@ var useColumns$1 = (function (form) {
|
|
|
19971
20008
|
return validator;
|
|
19972
20009
|
}()
|
|
19973
20010
|
}])
|
|
19974
|
-
})(
|
|
20011
|
+
})(React.createElement(ItemNameInput$1, {
|
|
19975
20012
|
editGood: editGood,
|
|
19976
20013
|
shorthand: editGood.shorthand,
|
|
19977
|
-
suffix:
|
|
20014
|
+
suffix: React.createElement(Tooltip$1, {
|
|
19978
20015
|
title: "\u70B9\u51FB\u4ECE\u5546\u54C1\u7BA1\u7406\u4E2D\u6DFB\u52A0\u5546\u54C1\u4FE1\u606F"
|
|
19979
|
-
},
|
|
20016
|
+
}, React.createElement(Button$1, {
|
|
19980
20017
|
type: "link",
|
|
19981
20018
|
style: {
|
|
19982
20019
|
padding: 0,
|
|
@@ -19984,7 +20021,7 @@ var useColumns$1 = (function (form) {
|
|
|
19984
20021
|
fontSize: 20,
|
|
19985
20022
|
fill: '#0074ff'
|
|
19986
20023
|
},
|
|
19987
|
-
icon:
|
|
20024
|
+
icon: React.createElement(SvgPlus$1, null),
|
|
19988
20025
|
onClick: controller.pipeline( /*#__PURE__*/function () {
|
|
19989
20026
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(s) {
|
|
19990
20027
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
@@ -20011,9 +20048,9 @@ var useColumns$1 = (function (form) {
|
|
|
20011
20048
|
}
|
|
20012
20049
|
}))));
|
|
20013
20050
|
} else {
|
|
20014
|
-
return
|
|
20051
|
+
return React.createElement("span", null, record.lineAttribute === LineAttributeType$1.折扣行 ? React.createElement("span", {
|
|
20015
20052
|
className: 'goods-list-digtal-discount-tag'
|
|
20016
|
-
}, "\u6298\u6263") :
|
|
20053
|
+
}, "\u6298\u6263") : React.createElement(React.Fragment, null), React.createElement(MyItemNameDiv$1, {
|
|
20017
20054
|
valueT: formatSearch$1(getItemNameWithShorthand({
|
|
20018
20055
|
shorthand: record.shorthand,
|
|
20019
20056
|
full: record.itemNameSelf || ''
|
|
@@ -20027,17 +20064,17 @@ var useColumns$1 = (function (form) {
|
|
|
20027
20064
|
}
|
|
20028
20065
|
}
|
|
20029
20066
|
}, {
|
|
20030
|
-
title:
|
|
20067
|
+
title: React.createElement(TitleText$1, {
|
|
20031
20068
|
rules: (_columnsReplenish$ite = columnsReplenish['itemModelName']) === null || _columnsReplenish$ite === void 0 ? void 0 : _columnsReplenish$ite.rules
|
|
20032
20069
|
}, "\u89C4\u683C\u578B\u53F7"),
|
|
20033
20070
|
key: 'itemModelName',
|
|
20034
20071
|
width: 119,
|
|
20035
20072
|
render: function render(_, record) {
|
|
20036
20073
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
20037
|
-
return
|
|
20074
|
+
return React.createElement(Form.Item, null, getFieldDecorator('itemModelName', {
|
|
20038
20075
|
initialValue: isMyShow ? editGood.itemModelNameSelf : editGood.itemModelName,
|
|
20039
20076
|
rules: getReplenishRules('itemModelName')
|
|
20040
|
-
})(
|
|
20077
|
+
})(React.createElement(MyInput$2, {
|
|
20041
20078
|
onChange: function () {
|
|
20042
20079
|
var _onChange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
20043
20080
|
var key, value;
|
|
@@ -20070,7 +20107,7 @@ var useColumns$1 = (function (form) {
|
|
|
20070
20107
|
}()
|
|
20071
20108
|
})));
|
|
20072
20109
|
} else {
|
|
20073
|
-
return
|
|
20110
|
+
return React.createElement(MyItemNameDiv$1, {
|
|
20074
20111
|
valueT: formatSearch$1(record.itemModelNameSelf, searchValue),
|
|
20075
20112
|
valueF: formatSearch$1(record.itemModelName, searchValue),
|
|
20076
20113
|
isMyShow: isMyShow
|
|
@@ -20078,17 +20115,17 @@ var useColumns$1 = (function (form) {
|
|
|
20078
20115
|
}
|
|
20079
20116
|
}
|
|
20080
20117
|
}, {
|
|
20081
|
-
title:
|
|
20118
|
+
title: React.createElement(TitleText$1, {
|
|
20082
20119
|
rules: (_columnsReplenish$uni = columnsReplenish['unit']) === null || _columnsReplenish$uni === void 0 ? void 0 : _columnsReplenish$uni.rules
|
|
20083
20120
|
}, "\u5355\u4F4D"),
|
|
20084
20121
|
key: 'unit',
|
|
20085
20122
|
width: 70,
|
|
20086
20123
|
render: function render(_, record) {
|
|
20087
20124
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
20088
|
-
return
|
|
20125
|
+
return React.createElement(Form.Item, null, getFieldDecorator('unit', {
|
|
20089
20126
|
initialValue: editGood.unit,
|
|
20090
20127
|
rules: getReplenishRules('unit')
|
|
20091
|
-
})(
|
|
20128
|
+
})(React.createElement(AutoComplete$1, {
|
|
20092
20129
|
style: {
|
|
20093
20130
|
width: '100%'
|
|
20094
20131
|
},
|
|
@@ -20126,7 +20163,7 @@ var useColumns$1 = (function (form) {
|
|
|
20126
20163
|
}()
|
|
20127
20164
|
})));
|
|
20128
20165
|
} else {
|
|
20129
|
-
return
|
|
20166
|
+
return React.createElement("span", {
|
|
20130
20167
|
style: {
|
|
20131
20168
|
padding: '0 10px'
|
|
20132
20169
|
}
|
|
@@ -20134,7 +20171,7 @@ var useColumns$1 = (function (form) {
|
|
|
20134
20171
|
}
|
|
20135
20172
|
}
|
|
20136
20173
|
}, {
|
|
20137
|
-
title:
|
|
20174
|
+
title: React.createElement(TitleText$1, {
|
|
20138
20175
|
rules: (_columnsReplenish$qua = columnsReplenish['quantity']) === null || _columnsReplenish$qua === void 0 ? void 0 : _columnsReplenish$qua.rules
|
|
20139
20176
|
}, "\u6570\u91CF"),
|
|
20140
20177
|
dataIndex: 'quantity',
|
|
@@ -20143,7 +20180,7 @@ var useColumns$1 = (function (form) {
|
|
|
20143
20180
|
width: 149,
|
|
20144
20181
|
render: function render(value, record) {
|
|
20145
20182
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
20146
|
-
return
|
|
20183
|
+
return React.createElement(Form.Item, null, getFieldDecorator('quantity', {
|
|
20147
20184
|
initialValue: nonScientificNotation(editGood.quantity),
|
|
20148
20185
|
getValueFromEvent: onNumberValueChange,
|
|
20149
20186
|
rules: [].concat(_toConsumableArray(getReplenishRules('quantity')), [{
|
|
@@ -20189,7 +20226,7 @@ var useColumns$1 = (function (form) {
|
|
|
20189
20226
|
return validator;
|
|
20190
20227
|
}()
|
|
20191
20228
|
}])
|
|
20192
|
-
})(
|
|
20229
|
+
})(React.createElement(MyInput$2, {
|
|
20193
20230
|
style: {
|
|
20194
20231
|
textAlign: 'right'
|
|
20195
20232
|
},
|
|
@@ -20221,7 +20258,7 @@ var useColumns$1 = (function (form) {
|
|
|
20221
20258
|
}()
|
|
20222
20259
|
})));
|
|
20223
20260
|
} else {
|
|
20224
|
-
return
|
|
20261
|
+
return React.createElement("span", {
|
|
20225
20262
|
style: {
|
|
20226
20263
|
padding: '0 10px'
|
|
20227
20264
|
}
|
|
@@ -20229,7 +20266,7 @@ var useColumns$1 = (function (form) {
|
|
|
20229
20266
|
}
|
|
20230
20267
|
}
|
|
20231
20268
|
}, {
|
|
20232
|
-
title:
|
|
20269
|
+
title: React.createElement(TitleText$1, {
|
|
20233
20270
|
rules: (_columnsReplenish$pri = columnsReplenish['priceIncludeTax']) === null || _columnsReplenish$pri === void 0 ? void 0 : _columnsReplenish$pri.rules
|
|
20234
20271
|
}, "\u5355\u4EF7(\u542B\u7A0E)"),
|
|
20235
20272
|
dataIndex: 'priceIncludeTax',
|
|
@@ -20238,7 +20275,7 @@ var useColumns$1 = (function (form) {
|
|
|
20238
20275
|
width: 149,
|
|
20239
20276
|
render: function render(value, record) {
|
|
20240
20277
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
20241
|
-
return
|
|
20278
|
+
return React.createElement(Form.Item, null, getFieldDecorator('priceIncludeTax', {
|
|
20242
20279
|
initialValue: nonScientificNotation(editGood.priceIncludeTax),
|
|
20243
20280
|
getValueFromEvent: onNumberValueChange,
|
|
20244
20281
|
rules: [].concat(_toConsumableArray(getReplenishRules('priceIncludeTax')), [{
|
|
@@ -20284,7 +20321,7 @@ var useColumns$1 = (function (form) {
|
|
|
20284
20321
|
return validator;
|
|
20285
20322
|
}()
|
|
20286
20323
|
}])
|
|
20287
|
-
})(
|
|
20324
|
+
})(React.createElement(MyInput$2, {
|
|
20288
20325
|
style: {
|
|
20289
20326
|
textAlign: 'right'
|
|
20290
20327
|
},
|
|
@@ -20296,7 +20333,7 @@ var useColumns$1 = (function (form) {
|
|
|
20296
20333
|
}
|
|
20297
20334
|
})));
|
|
20298
20335
|
} else {
|
|
20299
|
-
return
|
|
20336
|
+
return React.createElement("span", {
|
|
20300
20337
|
style: {
|
|
20301
20338
|
padding: '0 10px'
|
|
20302
20339
|
}
|
|
@@ -20304,7 +20341,7 @@ var useColumns$1 = (function (form) {
|
|
|
20304
20341
|
}
|
|
20305
20342
|
}
|
|
20306
20343
|
}, {
|
|
20307
|
-
title:
|
|
20344
|
+
title: React.createElement(TitleText$1, {
|
|
20308
20345
|
rules: (_columnsReplenish$pri2 = columnsReplenish['priceExcludeTax']) === null || _columnsReplenish$pri2 === void 0 ? void 0 : _columnsReplenish$pri2.rules
|
|
20309
20346
|
}, "\u5355\u4EF7(\u4E0D\u542B\u7A0E)"),
|
|
20310
20347
|
dataIndex: 'priceExcludeTax',
|
|
@@ -20313,7 +20350,7 @@ var useColumns$1 = (function (form) {
|
|
|
20313
20350
|
width: 149,
|
|
20314
20351
|
render: function render(value, record) {
|
|
20315
20352
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
20316
|
-
return
|
|
20353
|
+
return React.createElement(Form.Item, null, getFieldDecorator('priceExcludeTax', {
|
|
20317
20354
|
initialValue: nonScientificNotation(editGood.priceExcludeTax),
|
|
20318
20355
|
getValueFromEvent: onNumberValueChange,
|
|
20319
20356
|
rules: [].concat(_toConsumableArray(getReplenishRules('priceExcludeTax')), [{
|
|
@@ -20359,7 +20396,7 @@ var useColumns$1 = (function (form) {
|
|
|
20359
20396
|
return validator;
|
|
20360
20397
|
}()
|
|
20361
20398
|
}])
|
|
20362
|
-
})(
|
|
20399
|
+
})(React.createElement(MyInput$2, {
|
|
20363
20400
|
style: {
|
|
20364
20401
|
textAlign: 'right'
|
|
20365
20402
|
},
|
|
@@ -20371,7 +20408,7 @@ var useColumns$1 = (function (form) {
|
|
|
20371
20408
|
}
|
|
20372
20409
|
})));
|
|
20373
20410
|
} else {
|
|
20374
|
-
return
|
|
20411
|
+
return React.createElement("span", {
|
|
20375
20412
|
style: {
|
|
20376
20413
|
padding: '0 10px'
|
|
20377
20414
|
}
|
|
@@ -20379,7 +20416,7 @@ var useColumns$1 = (function (form) {
|
|
|
20379
20416
|
}
|
|
20380
20417
|
}
|
|
20381
20418
|
}, {
|
|
20382
|
-
title:
|
|
20419
|
+
title: React.createElement(TitleText$1, {
|
|
20383
20420
|
required: true
|
|
20384
20421
|
}, "\u91D1\u989D(\u542B\u7A0E)"),
|
|
20385
20422
|
dataIndex: 'lineAmountIncludeTax',
|
|
@@ -20388,7 +20425,7 @@ var useColumns$1 = (function (form) {
|
|
|
20388
20425
|
align: 'right',
|
|
20389
20426
|
render: function render(value, record) {
|
|
20390
20427
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
20391
|
-
return
|
|
20428
|
+
return React.createElement(Form.Item, null, getFieldDecorator('lineAmountIncludeTax', {
|
|
20392
20429
|
initialValue: editGood.lineAmountIncludeTax,
|
|
20393
20430
|
getValueFromEvent: onNumberValueChange,
|
|
20394
20431
|
rules: [].concat(_toConsumableArray(getReplenishRules('lineAmountIncludeTax')), [{
|
|
@@ -20448,7 +20485,7 @@ var useColumns$1 = (function (form) {
|
|
|
20448
20485
|
return validator;
|
|
20449
20486
|
}()
|
|
20450
20487
|
}])
|
|
20451
|
-
})(
|
|
20488
|
+
})(React.createElement(MyInput$2, {
|
|
20452
20489
|
style: {
|
|
20453
20490
|
textAlign: 'right'
|
|
20454
20491
|
},
|
|
@@ -20459,7 +20496,7 @@ var useColumns$1 = (function (form) {
|
|
|
20459
20496
|
}
|
|
20460
20497
|
})));
|
|
20461
20498
|
} else {
|
|
20462
|
-
return
|
|
20499
|
+
return React.createElement("span", {
|
|
20463
20500
|
style: {
|
|
20464
20501
|
padding: '0 10px'
|
|
20465
20502
|
}
|
|
@@ -20467,7 +20504,7 @@ var useColumns$1 = (function (form) {
|
|
|
20467
20504
|
}
|
|
20468
20505
|
}
|
|
20469
20506
|
}, {
|
|
20470
|
-
title:
|
|
20507
|
+
title: React.createElement(TitleText$1, {
|
|
20471
20508
|
required: true
|
|
20472
20509
|
}, "\u91D1\u989D(\u4E0D\u542B\u7A0E)"),
|
|
20473
20510
|
dataIndex: 'lineAmountExcludeTax',
|
|
@@ -20476,7 +20513,7 @@ var useColumns$1 = (function (form) {
|
|
|
20476
20513
|
width: 119,
|
|
20477
20514
|
render: function render(value, record) {
|
|
20478
20515
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
20479
|
-
return
|
|
20516
|
+
return React.createElement(Form.Item, null, getFieldDecorator('lineAmountExcludeTax', {
|
|
20480
20517
|
initialValue: editGood.lineAmountExcludeTax,
|
|
20481
20518
|
getValueFromEvent: onNumberValueChange,
|
|
20482
20519
|
rules: [].concat(_toConsumableArray(getReplenishRules('lineAmountExcludeTax')), [{
|
|
@@ -20511,7 +20548,7 @@ var useColumns$1 = (function (form) {
|
|
|
20511
20548
|
return validator;
|
|
20512
20549
|
}()
|
|
20513
20550
|
}])
|
|
20514
|
-
})(
|
|
20551
|
+
})(React.createElement(MyInput$2, {
|
|
20515
20552
|
style: {
|
|
20516
20553
|
textAlign: 'right'
|
|
20517
20554
|
},
|
|
@@ -20522,7 +20559,7 @@ var useColumns$1 = (function (form) {
|
|
|
20522
20559
|
}
|
|
20523
20560
|
})));
|
|
20524
20561
|
} else {
|
|
20525
|
-
return
|
|
20562
|
+
return React.createElement("span", {
|
|
20526
20563
|
style: {
|
|
20527
20564
|
padding: '0 10px'
|
|
20528
20565
|
}
|
|
@@ -20530,7 +20567,7 @@ var useColumns$1 = (function (form) {
|
|
|
20530
20567
|
}
|
|
20531
20568
|
}
|
|
20532
20569
|
}, {
|
|
20533
|
-
title:
|
|
20570
|
+
title: React.createElement(TitleText$1, {
|
|
20534
20571
|
required: true
|
|
20535
20572
|
}, "\u7A0E\u7387%"),
|
|
20536
20573
|
dataIndex: 'taxRate',
|
|
@@ -20539,7 +20576,7 @@ var useColumns$1 = (function (form) {
|
|
|
20539
20576
|
width: 70,
|
|
20540
20577
|
render: function render(value, record) {
|
|
20541
20578
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
20542
|
-
return
|
|
20579
|
+
return React.createElement(Form.Item, null, getFieldDecorator('taxRate', {
|
|
20543
20580
|
initialValue: editGood.taxRate,
|
|
20544
20581
|
rules: [].concat(_toConsumableArray(getReplenishRules('taxRate')), [{
|
|
20545
20582
|
required: true,
|
|
@@ -20548,7 +20585,7 @@ var useColumns$1 = (function (form) {
|
|
|
20548
20585
|
pattern: /^[+-]?(0|([1-9]\d*))(\.\d+)?$/,
|
|
20549
20586
|
message: ' '
|
|
20550
20587
|
}])
|
|
20551
|
-
})(
|
|
20588
|
+
})(React.createElement(Select$1, {
|
|
20552
20589
|
className: "kts-invoice-operate-goods-list-table-tax-rate",
|
|
20553
20590
|
// dropdownMenuStyle={{ textAlign: "right" }}
|
|
20554
20591
|
showArrow: false,
|
|
@@ -20560,13 +20597,13 @@ var useColumns$1 = (function (form) {
|
|
|
20560
20597
|
onChangeTaxRate$1(controller, form, record);
|
|
20561
20598
|
}
|
|
20562
20599
|
}, taxRateList.map(function (e, i) {
|
|
20563
|
-
return
|
|
20600
|
+
return React.createElement(Select$1.Option, {
|
|
20564
20601
|
key: i,
|
|
20565
20602
|
value: e
|
|
20566
20603
|
}, e, "%");
|
|
20567
20604
|
}))));
|
|
20568
20605
|
} else {
|
|
20569
|
-
return
|
|
20606
|
+
return React.createElement("span", {
|
|
20570
20607
|
style: {
|
|
20571
20608
|
padding: '0 10px'
|
|
20572
20609
|
}
|
|
@@ -20574,7 +20611,7 @@ var useColumns$1 = (function (form) {
|
|
|
20574
20611
|
}
|
|
20575
20612
|
}
|
|
20576
20613
|
}, {
|
|
20577
|
-
title:
|
|
20614
|
+
title: React.createElement(TitleText$1, {
|
|
20578
20615
|
rules: (_columnsReplenish$tax = columnsReplenish['taxAmount']) === null || _columnsReplenish$tax === void 0 ? void 0 : _columnsReplenish$tax.rules
|
|
20579
20616
|
}, "\u7A0E\u989D"),
|
|
20580
20617
|
dataIndex: 'taxAmount',
|
|
@@ -20586,11 +20623,11 @@ var useColumns$1 = (function (form) {
|
|
|
20586
20623
|
return getFieldDecorator('taxAmount', {
|
|
20587
20624
|
initialValue: editGood.taxAmount,
|
|
20588
20625
|
rules: getReplenishRules('taxAmount')
|
|
20589
|
-
})(
|
|
20626
|
+
})(React.createElement(MyDiv$2, {
|
|
20590
20627
|
loading: isCipher$1(changeField, 'taxAmount')
|
|
20591
20628
|
}));
|
|
20592
20629
|
} else {
|
|
20593
|
-
return
|
|
20630
|
+
return React.createElement("span", {
|
|
20594
20631
|
style: {
|
|
20595
20632
|
padding: '0 10px'
|
|
20596
20633
|
}
|
|
@@ -20657,13 +20694,13 @@ var MyInput$2 = /*#__PURE__*/function (_React$Component) {
|
|
|
20657
20694
|
key: "render",
|
|
20658
20695
|
value: function render() {
|
|
20659
20696
|
if (this.props.loading) {
|
|
20660
|
-
return
|
|
20697
|
+
return React.createElement(Spin$1, {
|
|
20661
20698
|
size: "small"
|
|
20662
|
-
},
|
|
20699
|
+
}, React.createElement(Input$1, _objectSpread2(_objectSpread2({}, this.props), {}, {
|
|
20663
20700
|
autoComplete: "off"
|
|
20664
20701
|
})));
|
|
20665
20702
|
} else {
|
|
20666
|
-
return
|
|
20703
|
+
return React.createElement(Input$1, _objectSpread2(_objectSpread2({}, this.props), {}, {
|
|
20667
20704
|
autoComplete: "off"
|
|
20668
20705
|
}));
|
|
20669
20706
|
}
|
|
@@ -20688,15 +20725,15 @@ var MyDiv$2 = /*#__PURE__*/function (_React$Component2) {
|
|
|
20688
20725
|
key: "render",
|
|
20689
20726
|
value: function render() {
|
|
20690
20727
|
if (this.props.loading) {
|
|
20691
|
-
return
|
|
20728
|
+
return React.createElement(Spin$1, {
|
|
20692
20729
|
size: "small"
|
|
20693
|
-
},
|
|
20730
|
+
}, React.createElement("span", {
|
|
20694
20731
|
style: {
|
|
20695
20732
|
padding: '0 10px'
|
|
20696
20733
|
}
|
|
20697
20734
|
}, this.props.value));
|
|
20698
20735
|
} else {
|
|
20699
|
-
return
|
|
20736
|
+
return React.createElement("span", {
|
|
20700
20737
|
style: {
|
|
20701
20738
|
padding: '0 10px'
|
|
20702
20739
|
}
|
|
@@ -20729,32 +20766,32 @@ var MyItemNameDiv$1 = /*#__PURE__*/function (_React$Component3) {
|
|
|
20729
20766
|
|
|
20730
20767
|
if (isMyShow) {
|
|
20731
20768
|
if (valueT) {
|
|
20732
|
-
return
|
|
20769
|
+
return React.createElement(Tooltip$1, {
|
|
20733
20770
|
title: valueT
|
|
20734
|
-
},
|
|
20771
|
+
}, React.createElement("span", {
|
|
20735
20772
|
style: _objectSpread2(_objectSpread2({}, MyItemNameStyle), {}, {
|
|
20736
20773
|
color: '#0074ff'
|
|
20737
20774
|
})
|
|
20738
20775
|
}, valueT));
|
|
20739
20776
|
} else {
|
|
20740
|
-
return
|
|
20777
|
+
return React.createElement(Tooltip$1, {
|
|
20741
20778
|
title: valueF
|
|
20742
|
-
},
|
|
20779
|
+
}, React.createElement("span", {
|
|
20743
20780
|
style: MyItemNameStyle
|
|
20744
20781
|
}, valueF));
|
|
20745
20782
|
}
|
|
20746
20783
|
} else {
|
|
20747
20784
|
if (valueF) {
|
|
20748
|
-
return
|
|
20785
|
+
return React.createElement(Tooltip$1, {
|
|
20749
20786
|
title: valueF
|
|
20750
|
-
},
|
|
20787
|
+
}, React.createElement("span", {
|
|
20751
20788
|
style: MyItemNameStyle
|
|
20752
20789
|
}, valueF));
|
|
20753
20790
|
} else {
|
|
20754
|
-
return
|
|
20791
|
+
return React.createElement(Tooltip$1, {
|
|
20755
20792
|
title: valueT,
|
|
20756
20793
|
style: MyItemNameStyle
|
|
20757
|
-
},
|
|
20794
|
+
}, React.createElement("span", {
|
|
20758
20795
|
style: _objectSpread2(_objectSpread2({}, MyItemNameStyle), {}, {
|
|
20759
20796
|
color: '#0074ff'
|
|
20760
20797
|
})
|
|
@@ -20776,7 +20813,7 @@ function formatSearch$1(value, search) {
|
|
|
20776
20813
|
return dcoding$1(e);
|
|
20777
20814
|
}).join("<span class=\"kts-invoice-operate-goods-list-table-search-protrude\" >".concat(search, "</span>"));
|
|
20778
20815
|
|
|
20779
|
-
return
|
|
20816
|
+
return React.createElement("span", {
|
|
20780
20817
|
dangerouslySetInnerHTML: {
|
|
20781
20818
|
__html: __html
|
|
20782
20819
|
}
|
|
@@ -21164,7 +21201,7 @@ var useRowSelection$1 = (function () {
|
|
|
21164
21201
|
};
|
|
21165
21202
|
}(), [controller]);
|
|
21166
21203
|
var columnTitle = React.useMemo(function () {
|
|
21167
|
-
return
|
|
21204
|
+
return React.createElement(Checkbox, {
|
|
21168
21205
|
onChange: onClickSelectAll,
|
|
21169
21206
|
indeterminate: indeterminate,
|
|
21170
21207
|
checked: isAll
|
|
@@ -21313,19 +21350,19 @@ var useDelRowButton$1 = (function () {
|
|
|
21313
21350
|
}, _callee2);
|
|
21314
21351
|
})), []);
|
|
21315
21352
|
var menuItem = React.useMemo(function () {
|
|
21316
|
-
if (model === 'prefab') return
|
|
21317
|
-
if (model === 'readOnly') return
|
|
21318
|
-
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, {
|
|
21319
21356
|
key: "1",
|
|
21320
21357
|
onClick: onClick,
|
|
21321
21358
|
disabled: disabled
|
|
21322
21359
|
}, " \u5220\u9664\u884C ");
|
|
21323
21360
|
}, [model, onClick, disabled]);
|
|
21324
21361
|
var button = React.useMemo(function () {
|
|
21325
|
-
if (isRemRow === false) return
|
|
21326
|
-
if (model === 'prefab') return
|
|
21327
|
-
if (model === 'readOnly') return
|
|
21328
|
-
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, {
|
|
21329
21366
|
size: 'small',
|
|
21330
21367
|
onClick: onClick,
|
|
21331
21368
|
disabled: disabled
|
|
@@ -21556,16 +21593,16 @@ var useAddDiscountRowButton$1 = (function () {
|
|
|
21556
21593
|
}, [isAddDiscount, model]);
|
|
21557
21594
|
var button = React.useMemo(function () {
|
|
21558
21595
|
if (isEnable) {
|
|
21559
|
-
return
|
|
21596
|
+
return React.createElement(React.Fragment, null, React.createElement(Button$1, {
|
|
21560
21597
|
size: 'small',
|
|
21561
21598
|
onClick: onOpen,
|
|
21562
21599
|
disabled: disabled
|
|
21563
|
-
}, "\u6DFB\u52A0\u6298\u6263"),
|
|
21600
|
+
}, "\u6DFB\u52A0\u6298\u6263"), React.createElement(AddDiscountRowDrawer, {
|
|
21564
21601
|
open: open,
|
|
21565
21602
|
onClose: onClose
|
|
21566
21603
|
}));
|
|
21567
21604
|
} else {
|
|
21568
|
-
return
|
|
21605
|
+
return React.createElement(React.Fragment, null);
|
|
21569
21606
|
}
|
|
21570
21607
|
}, [open, onOpen, onClose, isEnable, disabled]);
|
|
21571
21608
|
return {
|
|
@@ -21746,35 +21783,35 @@ function AddDiscountRowDrawer(props) {
|
|
|
21746
21783
|
discolineValue: undefined
|
|
21747
21784
|
}));
|
|
21748
21785
|
}, [formValues === null || formValues === void 0 ? void 0 : formValues.discolineType]);
|
|
21749
|
-
return
|
|
21786
|
+
return React.createElement(Drawer$1, {
|
|
21750
21787
|
title: "\u6DFB\u52A0\u6298\u6263",
|
|
21751
21788
|
placement: "right",
|
|
21752
21789
|
width: 350,
|
|
21753
21790
|
onClose: onClose,
|
|
21754
21791
|
open: open,
|
|
21755
|
-
footer:
|
|
21792
|
+
footer: React.createElement(Space, {
|
|
21756
21793
|
size: "middle",
|
|
21757
21794
|
style: {
|
|
21758
21795
|
display: 'flex',
|
|
21759
21796
|
justifyContent: 'end'
|
|
21760
21797
|
}
|
|
21761
|
-
},
|
|
21798
|
+
}, React.createElement(Button$1, {
|
|
21762
21799
|
onClick: onDefine,
|
|
21763
21800
|
type: 'primary'
|
|
21764
|
-
}, "\u786E\u5B9A"),
|
|
21801
|
+
}, "\u786E\u5B9A"), React.createElement(Button$1, {
|
|
21765
21802
|
onClick: onClose
|
|
21766
21803
|
}, "\u53D6\u6D88"))
|
|
21767
|
-
},
|
|
21804
|
+
}, React.createElement(Form$1, {
|
|
21768
21805
|
form: form,
|
|
21769
21806
|
layout: 'vertical',
|
|
21770
21807
|
onChange: onChangeForm
|
|
21771
|
-
},
|
|
21808
|
+
}, React.createElement(Form$1.Item, {
|
|
21772
21809
|
label: "\u5546\u54C1\u91D1\u989D\uFF08\u542B\u7A0E\uFF09"
|
|
21773
|
-
}, totalAmount.toFixed(2), "\uFF08\u5171 ", discountGood.length, " \u884C\uFF09"),
|
|
21810
|
+
}, totalAmount.toFixed(2), "\uFF08\u5171 ", discountGood.length, " \u884C\uFF09"), React.createElement(Form$1.Item, {
|
|
21774
21811
|
label: "\u6298\u6263\u65B9\u5F0F",
|
|
21775
21812
|
name: 'discolineType',
|
|
21776
21813
|
initialValue: '1'
|
|
21777
|
-
},
|
|
21814
|
+
}, React.createElement(Radio.Group, {
|
|
21778
21815
|
options: [{
|
|
21779
21816
|
label: '按金额折扣',
|
|
21780
21817
|
value: '1'
|
|
@@ -21782,7 +21819,7 @@ function AddDiscountRowDrawer(props) {
|
|
|
21782
21819
|
label: '按比例折扣',
|
|
21783
21820
|
value: '2'
|
|
21784
21821
|
}]
|
|
21785
|
-
})), (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, {
|
|
21786
21823
|
label: "\u6298\u6263\u91D1\u989D\uFF08\u5143\uFF09\uFF08\u542B\u7A0E\uFF09",
|
|
21787
21824
|
name: 'discolineValue',
|
|
21788
21825
|
rules: [{
|
|
@@ -21833,11 +21870,11 @@ function AddDiscountRowDrawer(props) {
|
|
|
21833
21870
|
return validator;
|
|
21834
21871
|
}()
|
|
21835
21872
|
}]
|
|
21836
|
-
},
|
|
21873
|
+
}, React.createElement(InputNumber, {
|
|
21837
21874
|
style: {
|
|
21838
21875
|
width: '100%'
|
|
21839
21876
|
}
|
|
21840
|
-
})) :
|
|
21877
|
+
})) : React.createElement(Form$1.Item, {
|
|
21841
21878
|
label: "\u6298\u6263\u6BD4\u4F8B\uFF08%\uFF09\uFF08\u542B\u7A0E\uFF09",
|
|
21842
21879
|
name: 'discolineValue',
|
|
21843
21880
|
rules: [{
|
|
@@ -21888,7 +21925,7 @@ function AddDiscountRowDrawer(props) {
|
|
|
21888
21925
|
return validator;
|
|
21889
21926
|
}()
|
|
21890
21927
|
}]
|
|
21891
|
-
},
|
|
21928
|
+
}, React.createElement(InputNumber, {
|
|
21892
21929
|
style: {
|
|
21893
21930
|
width: '100%'
|
|
21894
21931
|
}
|
|
@@ -22032,16 +22069,16 @@ var useEndowCodeButton$1 = (function () {
|
|
|
22032
22069
|
}, _callee2);
|
|
22033
22070
|
})), [controller]);
|
|
22034
22071
|
var menuItem = React.useMemo(function () {
|
|
22035
|
-
if (model === 'readOnly') return
|
|
22036
|
-
return
|
|
22072
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
22073
|
+
return React.createElement(Menu$1.Item, {
|
|
22037
22074
|
key: "2",
|
|
22038
22075
|
onClick: onClick,
|
|
22039
22076
|
disabled: disabled
|
|
22040
22077
|
}, "\u6279\u91CF\u8D4B\u7801");
|
|
22041
22078
|
}, [onClick, disabled, model]);
|
|
22042
22079
|
var button = React.useMemo(function () {
|
|
22043
|
-
if (model === 'readOnly') return
|
|
22044
|
-
return
|
|
22080
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
22081
|
+
return React.createElement(Button$1, {
|
|
22045
22082
|
onClick: onClick,
|
|
22046
22083
|
disabled: disabled,
|
|
22047
22084
|
size: 'small'
|
|
@@ -22103,14 +22140,14 @@ var useEmptyRefill = (function () {
|
|
|
22103
22140
|
}());
|
|
22104
22141
|
}, [controller]);
|
|
22105
22142
|
var button = React.useMemo(function () {
|
|
22106
|
-
if (model === 'readOnly') return
|
|
22107
|
-
if (model === 'prefab') return
|
|
22108
|
-
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, {
|
|
22109
22146
|
title: "\u5C06\u8981\u6E05\u7A7A\u6240\u6709\u9879\u76EE\u4FE1\u606F\uFF0C\u662F\u5426\u7EE7\u7EED",
|
|
22110
22147
|
onConfirm: confirm,
|
|
22111
22148
|
okText: "\u786E\u5B9A",
|
|
22112
22149
|
cancelText: "\u53D6\u6D88"
|
|
22113
|
-
},
|
|
22150
|
+
}, React.createElement(Button$1, {
|
|
22114
22151
|
size: 'small'
|
|
22115
22152
|
}, "\u6E05\u7A7A\u91CD\u586B"));
|
|
22116
22153
|
}, [model, confirm]);
|
|
@@ -22177,14 +22214,14 @@ function InvoiceTypeModal(props) {
|
|
|
22177
22214
|
setValues(values);
|
|
22178
22215
|
}
|
|
22179
22216
|
}, [props.open, props.defaultBillingType, props.defaultBusiness, props.defaultInvoiceType, form]);
|
|
22180
|
-
return
|
|
22217
|
+
return React.createElement(Modal, {
|
|
22181
22218
|
title: props.modalTitle || "选择开具信息",
|
|
22182
22219
|
open: props.open,
|
|
22183
22220
|
onOk: onConfirm,
|
|
22184
22221
|
onCancel: props.onCancel,
|
|
22185
22222
|
okText: "\u786E\u5B9A",
|
|
22186
22223
|
cancelText: "\u53D6\u6D88"
|
|
22187
|
-
},
|
|
22224
|
+
}, React.createElement(Form$1, {
|
|
22188
22225
|
form: form,
|
|
22189
22226
|
layout: "vertical",
|
|
22190
22227
|
style: {
|
|
@@ -22193,13 +22230,13 @@ function InvoiceTypeModal(props) {
|
|
|
22193
22230
|
onValuesChange: function onValuesChange(_, e) {
|
|
22194
22231
|
setValues(e);
|
|
22195
22232
|
}
|
|
22196
|
-
},
|
|
22233
|
+
}, React.createElement(Row, {
|
|
22197
22234
|
gutter: [16, 16]
|
|
22198
|
-
},
|
|
22235
|
+
}, React.createElement(Col, {
|
|
22199
22236
|
span: 24
|
|
22200
|
-
},
|
|
22237
|
+
}, React.createElement(Form$1.Item, {
|
|
22201
22238
|
name: 'billingType'
|
|
22202
|
-
},
|
|
22239
|
+
}, React.createElement(Radio.Group, {
|
|
22203
22240
|
size: 'large',
|
|
22204
22241
|
className: "goods-list-digtal-reselect-invoice-typeModal-radio",
|
|
22205
22242
|
optionType: "button",
|
|
@@ -22212,27 +22249,27 @@ function InvoiceTypeModal(props) {
|
|
|
22212
22249
|
label: '税控发票',
|
|
22213
22250
|
value: 'taxation'
|
|
22214
22251
|
}]
|
|
22215
|
-
}))),
|
|
22252
|
+
}))), React.createElement(Col, {
|
|
22216
22253
|
span: 12
|
|
22217
|
-
},
|
|
22254
|
+
}, React.createElement(Form$1.Item, {
|
|
22218
22255
|
name: 'invoiceType',
|
|
22219
22256
|
label: "\u9009\u62E9\u7968\u7C7B",
|
|
22220
22257
|
rules: [{
|
|
22221
22258
|
required: true,
|
|
22222
22259
|
message: '选择票类必填'
|
|
22223
22260
|
}]
|
|
22224
|
-
},
|
|
22261
|
+
}, React.createElement(Select$1, {
|
|
22225
22262
|
size: 'large',
|
|
22226
22263
|
allowClear: true,
|
|
22227
22264
|
placeholder: "\u8BF7\u9009\u62E9\uFF08\u5FC5\u586B\u9879\uFF09",
|
|
22228
22265
|
disabled: disableds.indexOf('invoiceType') >= 0,
|
|
22229
22266
|
options: props.invoiceTypeOptions
|
|
22230
|
-
}))),
|
|
22267
|
+
}))), React.createElement(Col, {
|
|
22231
22268
|
span: 12
|
|
22232
|
-
},
|
|
22269
|
+
}, React.createElement(Form$1.Item, {
|
|
22233
22270
|
name: 'business',
|
|
22234
22271
|
label: "\u7279\u5B9A\u4E1A\u52A1"
|
|
22235
|
-
},
|
|
22272
|
+
}, React.createElement(Select$1, {
|
|
22236
22273
|
size: 'large',
|
|
22237
22274
|
allowClear: true,
|
|
22238
22275
|
placeholder: "\u8BF7\u9009\u62E9\uFF08\u975E\u5FC5\u586B\u9879\uFF09",
|
|
@@ -22277,11 +22314,11 @@ var useReselectInvoiceType = (function () {
|
|
|
22277
22314
|
return true;
|
|
22278
22315
|
}, [model, typeModalProps === null || typeModalProps === void 0 ? void 0 : typeModalProps.isDisabled]);
|
|
22279
22316
|
var button = React.useMemo(function () {
|
|
22280
|
-
if (isEnable === false) return
|
|
22281
|
-
return
|
|
22317
|
+
if (isEnable === false) return React.createElement(React.Fragment, null);
|
|
22318
|
+
return React.createElement(React.Fragment, null, React.createElement(Button$1, {
|
|
22282
22319
|
size: 'small',
|
|
22283
22320
|
onClick: onOpen
|
|
22284
|
-
}, "\u91CD\u9009\u53D1\u7968\u7C7B\u578B"),
|
|
22321
|
+
}, "\u91CD\u9009\u53D1\u7968\u7C7B\u578B"), React.createElement(InvoiceTypeModal, _objectSpread2(_objectSpread2({}, typeModalProps), {}, {
|
|
22285
22322
|
open: open,
|
|
22286
22323
|
onCancel: onClose,
|
|
22287
22324
|
onOk: onOk
|
|
@@ -22309,7 +22346,7 @@ var GoodsList$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
22309
22346
|
_createClass(GoodsList, [{
|
|
22310
22347
|
key: "render",
|
|
22311
22348
|
value: function render() {
|
|
22312
|
-
return
|
|
22349
|
+
return React.createElement(Main$3, _objectSpread2({}, this.props));
|
|
22313
22350
|
}
|
|
22314
22351
|
}]);
|
|
22315
22352
|
|
|
@@ -22510,20 +22547,20 @@ var Main$3 = decorator(Form.create())(function (props) {
|
|
|
22510
22547
|
};
|
|
22511
22548
|
}())();
|
|
22512
22549
|
}, [controller, props.isSwitchTax]);
|
|
22513
|
-
return
|
|
22550
|
+
return React.createElement("div", {
|
|
22514
22551
|
className: "kts-invoice-operate-goods-list-digtal",
|
|
22515
22552
|
onClick: function onClick(e) {
|
|
22516
22553
|
e.stopPropagation();
|
|
22517
22554
|
}
|
|
22518
|
-
},
|
|
22555
|
+
}, React.createElement("div", {
|
|
22519
22556
|
className: "kts-invoice-operate-goods-list-able"
|
|
22520
|
-
},
|
|
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", {
|
|
22521
22558
|
style: {
|
|
22522
22559
|
flex: 1
|
|
22523
22560
|
}
|
|
22524
|
-
}), props.menuExpansion, reselectInvoiceType.button, emptyRefill.button),
|
|
22561
|
+
}), props.menuExpansion, reselectInvoiceType.button, emptyRefill.button), React.createElement("div", {
|
|
22525
22562
|
className: classNames('kts-invoice-operate-goods-list-table-digtal')
|
|
22526
|
-
},
|
|
22563
|
+
}, React.createElement(TableVirtual$1, {
|
|
22527
22564
|
size: "small",
|
|
22528
22565
|
rowKey: "$index",
|
|
22529
22566
|
pagination: false,
|
|
@@ -22545,7 +22582,7 @@ var Main$3 = decorator(Form.create())(function (props) {
|
|
|
22545
22582
|
}
|
|
22546
22583
|
};
|
|
22547
22584
|
}
|
|
22548
|
-
})),
|
|
22585
|
+
})), React.createElement("div", null, React.createElement(Statistics$1, null)));
|
|
22549
22586
|
});
|
|
22550
22587
|
|
|
22551
22588
|
var ImportBuyerDrawer = (function () {
|
|
@@ -22579,7 +22616,7 @@ var ImportBuyerDrawer = (function () {
|
|
|
22579
22616
|
};
|
|
22580
22617
|
}())();
|
|
22581
22618
|
}, [controller]);
|
|
22582
|
-
return
|
|
22619
|
+
return React.createElement(Drawer, {
|
|
22583
22620
|
title: "\u8D2D\u65B9\u5217\u8868",
|
|
22584
22621
|
placement: "right",
|
|
22585
22622
|
// closable={false}
|
|
@@ -22587,7 +22624,7 @@ var ImportBuyerDrawer = (function () {
|
|
|
22587
22624
|
width: 983,
|
|
22588
22625
|
onClose: onClose,
|
|
22589
22626
|
visible: visible
|
|
22590
|
-
}, topExpand,
|
|
22627
|
+
}, topExpand, React.createElement(DrawerBody$1, null));
|
|
22591
22628
|
});
|
|
22592
22629
|
|
|
22593
22630
|
var DrawerBody$1 = function DrawerBody() {
|
|
@@ -22608,7 +22645,7 @@ var DrawerBody$1 = function DrawerBody() {
|
|
|
22608
22645
|
}
|
|
22609
22646
|
});
|
|
22610
22647
|
}, [controller]);
|
|
22611
|
-
return
|
|
22648
|
+
return React.createElement(Table$1, {
|
|
22612
22649
|
bordered: true,
|
|
22613
22650
|
size: "small",
|
|
22614
22651
|
columns: columns,
|
|
@@ -22708,7 +22745,7 @@ var ImportGoodsDrawer = (function () {
|
|
|
22708
22745
|
};
|
|
22709
22746
|
}())();
|
|
22710
22747
|
}, [controller]);
|
|
22711
|
-
return
|
|
22748
|
+
return React.createElement(Drawer, {
|
|
22712
22749
|
title: "\u5546\u54C1\u5217\u8868",
|
|
22713
22750
|
placement: "right",
|
|
22714
22751
|
// closable={false}
|
|
@@ -22716,11 +22753,11 @@ var ImportGoodsDrawer = (function () {
|
|
|
22716
22753
|
width: 983,
|
|
22717
22754
|
onClose: onClose,
|
|
22718
22755
|
visible: visible
|
|
22719
|
-
}, topExpand &&
|
|
22756
|
+
}, topExpand && React.createElement("div", {
|
|
22720
22757
|
style: {
|
|
22721
22758
|
marginBottom: 10
|
|
22722
22759
|
}
|
|
22723
|
-
}, topExpand),
|
|
22760
|
+
}, topExpand), React.createElement(DrawerBody$2, null));
|
|
22724
22761
|
});
|
|
22725
22762
|
|
|
22726
22763
|
var DrawerBody$2 = function DrawerBody() {
|
|
@@ -22742,7 +22779,7 @@ var DrawerBody$2 = function DrawerBody() {
|
|
|
22742
22779
|
}
|
|
22743
22780
|
});
|
|
22744
22781
|
}, [controller]);
|
|
22745
|
-
return
|
|
22782
|
+
return React.createElement(Table$1, {
|
|
22746
22783
|
bordered: true,
|
|
22747
22784
|
size: "small",
|
|
22748
22785
|
columns: columns,
|
|
@@ -23029,7 +23066,7 @@ var EndowCodeDrawer = (function () {
|
|
|
23029
23066
|
setDefaultValue(undefined);
|
|
23030
23067
|
}
|
|
23031
23068
|
}, [visible]);
|
|
23032
|
-
return
|
|
23069
|
+
return React.createElement(Drawer, {
|
|
23033
23070
|
title: "\u8D4B\u7801",
|
|
23034
23071
|
placement: "right",
|
|
23035
23072
|
destroyOnClose: true,
|
|
@@ -23037,7 +23074,7 @@ var EndowCodeDrawer = (function () {
|
|
|
23037
23074
|
width: 383,
|
|
23038
23075
|
onClose: onClose,
|
|
23039
23076
|
visible: visible
|
|
23040
|
-
}, defaultValue &&
|
|
23077
|
+
}, defaultValue && React.createElement(DrawerBody$3, {
|
|
23041
23078
|
defaultValue: defaultValue
|
|
23042
23079
|
}));
|
|
23043
23080
|
});
|
|
@@ -23177,7 +23214,7 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23177
23214
|
};
|
|
23178
23215
|
}());
|
|
23179
23216
|
}, [actions, dataSource, readOnlyTaxRate]);
|
|
23180
|
-
return
|
|
23217
|
+
return React.createElement(Select, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
23181
23218
|
showSearch: true,
|
|
23182
23219
|
showArrow: false,
|
|
23183
23220
|
notFoundContent: null,
|
|
@@ -23185,7 +23222,7 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23185
23222
|
onSearch: onSearch,
|
|
23186
23223
|
onChange: onChange
|
|
23187
23224
|
}), dataSource.map(function (e) {
|
|
23188
|
-
return
|
|
23225
|
+
return React.createElement(Select.Option, {
|
|
23189
23226
|
key: e.value,
|
|
23190
23227
|
value: e.value
|
|
23191
23228
|
}, e.label);
|
|
@@ -23215,14 +23252,14 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23215
23252
|
|
|
23216
23253
|
|
|
23217
23254
|
var createTreeNode = React.useCallback(function () {
|
|
23218
|
-
if (!list) return
|
|
23255
|
+
if (!list) return React.createElement(React.Fragment, null);
|
|
23219
23256
|
return ctn(list);
|
|
23220
23257
|
|
|
23221
23258
|
function title(label) {
|
|
23222
23259
|
if (!filter) return label;
|
|
23223
23260
|
label = (filter.taxCategoryCode ? label.split(new RegExp(filter.taxCategoryCode, 'g')) : [label]).join("<span style=\"color: #1890ff;\">".concat(filter.taxCategoryCode, "</span>"));
|
|
23224
23261
|
label = (filter.val ? label.split(new RegExp(filter.val, 'g')) : [label]).join("<span style=\"color: #1890ff;\">".concat(filter.val, "</span>"));
|
|
23225
|
-
return
|
|
23262
|
+
return React.createElement("span", {
|
|
23226
23263
|
dangerouslySetInnerHTML: {
|
|
23227
23264
|
__html: label
|
|
23228
23265
|
}
|
|
@@ -23231,11 +23268,11 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23231
23268
|
|
|
23232
23269
|
function ctn(l) {
|
|
23233
23270
|
var p = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '0';
|
|
23234
|
-
if (!l || !l.length) return [
|
|
23271
|
+
if (!l || !l.length) return [React.createElement(React.Fragment, null)];
|
|
23235
23272
|
return l.filter(function (e) {
|
|
23236
23273
|
return e.pid === p;
|
|
23237
23274
|
}).map(function (e) {
|
|
23238
|
-
return
|
|
23275
|
+
return React.createElement(TreeNode, {
|
|
23239
23276
|
title: title(e.label),
|
|
23240
23277
|
key: e.id
|
|
23241
23278
|
}, ctn(l, e.id));
|
|
@@ -23348,46 +23385,46 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23348
23385
|
setList([]);
|
|
23349
23386
|
}
|
|
23350
23387
|
}, [visible]);
|
|
23351
|
-
return
|
|
23388
|
+
return React.createElement(React.Fragment, null, React.createElement(Input, {
|
|
23352
23389
|
readOnly: true,
|
|
23353
23390
|
value: props.value,
|
|
23354
|
-
addonAfter:
|
|
23391
|
+
addonAfter: React.createElement(Button, {
|
|
23355
23392
|
size: "small",
|
|
23356
23393
|
type: "link",
|
|
23357
23394
|
onClick: function onClick() {
|
|
23358
23395
|
setVisible(true);
|
|
23359
23396
|
}
|
|
23360
23397
|
}, "\u70B9\u51FB\u9009\u62E9")
|
|
23361
|
-
}),
|
|
23398
|
+
}), React.createElement(Drawer, {
|
|
23362
23399
|
title: "\u7A0E\u6536\u5206\u7C7B\u7F16\u7801",
|
|
23363
23400
|
visible: visible,
|
|
23364
23401
|
width: 500,
|
|
23365
23402
|
onClose: function onClose() {
|
|
23366
23403
|
setVisible(false);
|
|
23367
23404
|
}
|
|
23368
|
-
},
|
|
23405
|
+
}, React.createElement(Form, {
|
|
23369
23406
|
key: "".concat(visible)
|
|
23370
|
-
},
|
|
23407
|
+
}, React.createElement(Form.Item, {
|
|
23371
23408
|
label: "\u4EA7\u54C1\u6216\u670D\u52A1\u7B80\u79F0"
|
|
23372
|
-
},
|
|
23409
|
+
}, React.createElement(Input, {
|
|
23373
23410
|
onChange: function onChange(e) {
|
|
23374
23411
|
setFilter(_objectSpread2(_objectSpread2({}, filter), {}, {
|
|
23375
23412
|
val: e.target.value
|
|
23376
23413
|
}));
|
|
23377
23414
|
}
|
|
23378
|
-
})),
|
|
23415
|
+
})), React.createElement(Form.Item, {
|
|
23379
23416
|
label: "\u7A0E\u6536\u5206\u7C7B\u7F16\u7801"
|
|
23380
|
-
},
|
|
23417
|
+
}, React.createElement(Input, {
|
|
23381
23418
|
onChange: function onChange(e) {
|
|
23382
23419
|
setFilter(_objectSpread2(_objectSpread2({}, filter), {}, {
|
|
23383
23420
|
taxCategoryCode: e.target.value
|
|
23384
23421
|
}));
|
|
23385
23422
|
}
|
|
23386
|
-
}))), list && list.length > 0 ?
|
|
23423
|
+
}))), list && list.length > 0 ? React.createElement(Tree, {
|
|
23387
23424
|
defaultExpandAll: true,
|
|
23388
23425
|
selectedKeys: [],
|
|
23389
23426
|
onSelect: onSelect
|
|
23390
|
-
}, createTreeNode()) :
|
|
23427
|
+
}, createTreeNode()) : React.createElement("span", {
|
|
23391
23428
|
style: {
|
|
23392
23429
|
color: '#00000073'
|
|
23393
23430
|
}
|
|
@@ -23593,11 +23630,11 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23593
23630
|
return data;
|
|
23594
23631
|
};
|
|
23595
23632
|
|
|
23596
|
-
return
|
|
23633
|
+
return React.createElement(React.Fragment, null, React.createElement(Input, {
|
|
23597
23634
|
readOnly: true,
|
|
23598
23635
|
onClick: onClick,
|
|
23599
23636
|
value: props.value
|
|
23600
|
-
}),
|
|
23637
|
+
}), React.createElement(TaxClassificationModal, {
|
|
23601
23638
|
list: list,
|
|
23602
23639
|
open: open,
|
|
23603
23640
|
onSelect: onSelect,
|
|
@@ -23716,14 +23753,14 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23716
23753
|
React.useEffect(function () {
|
|
23717
23754
|
if (controller.getTaxCategoryCodeList) controller.getTaxCategoryCodeList();
|
|
23718
23755
|
}, [controller]);
|
|
23719
|
-
return
|
|
23756
|
+
return React.createElement(SchemaForm, {
|
|
23720
23757
|
actions: actions,
|
|
23721
23758
|
previewPlaceholder: " ",
|
|
23722
23759
|
components: _objectSpread2(_objectSpread2({}, components), {}, {
|
|
23723
23760
|
showSearch: !!controller.state.goodsListState.endowCode.onLoadTaxClassificationCode ? ShowSearch3 : ShowSearch
|
|
23724
23761
|
}),
|
|
23725
23762
|
effects: effects
|
|
23726
|
-
},
|
|
23763
|
+
}, React.createElement(FormButtonGroup, null, React.createElement(SchemaMarkupField, {
|
|
23727
23764
|
name: "taxClassificationCode",
|
|
23728
23765
|
type: "showSearch",
|
|
23729
23766
|
title: "\u7A0E\u6536\u5206\u7C7B\u7F16\u7801",
|
|
@@ -23733,13 +23770,13 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23733
23770
|
message: '请选择税收分类编码',
|
|
23734
23771
|
required: true
|
|
23735
23772
|
}]
|
|
23736
|
-
}),
|
|
23773
|
+
}), React.createElement(SchemaMarkupField, {
|
|
23737
23774
|
name: "shorthand",
|
|
23738
23775
|
type: "string",
|
|
23739
23776
|
readOnly: true,
|
|
23740
23777
|
default: defaultValue === null || defaultValue === void 0 ? void 0 : defaultValue.shorthand,
|
|
23741
23778
|
title: "\u5546\u54C1\u548C\u670D\u52A1\u5206\u7C7B\u7B80\u79F0"
|
|
23742
|
-
}),
|
|
23779
|
+
}), React.createElement(SchemaMarkupField, {
|
|
23743
23780
|
name: "taxRate",
|
|
23744
23781
|
type: "string",
|
|
23745
23782
|
title: "\u7A0E\u7387",
|
|
@@ -23752,7 +23789,7 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23752
23789
|
message: '请选择税率',
|
|
23753
23790
|
required: true
|
|
23754
23791
|
}]
|
|
23755
|
-
}), taxRate === 0 && isTaxFreeTypeNeeded &&
|
|
23792
|
+
}), taxRate === 0 && isTaxFreeTypeNeeded && React.createElement(SchemaMarkupField, {
|
|
23756
23793
|
name: "taxFreeType",
|
|
23757
23794
|
type: "string",
|
|
23758
23795
|
title: "\u514D\u7A0E\u7C7B\u578B",
|
|
@@ -23765,7 +23802,7 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23765
23802
|
message: '请选择免税类型',
|
|
23766
23803
|
required: true
|
|
23767
23804
|
}]
|
|
23768
|
-
}),
|
|
23805
|
+
}), React.createElement(SchemaMarkupField, {
|
|
23769
23806
|
name: "favouredPolicyMark",
|
|
23770
23807
|
type: "number",
|
|
23771
23808
|
title: "\u662F\u5426\u4EAB\u53D7\u4F18\u60E0\u653F\u7B56",
|
|
@@ -23784,7 +23821,7 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23784
23821
|
message: '请选择是否享受优惠政策',
|
|
23785
23822
|
required: true
|
|
23786
23823
|
}]
|
|
23787
|
-
}), favouredPolicyMark === 1 &&
|
|
23824
|
+
}), favouredPolicyMark === 1 && React.createElement(SchemaMarkupField, {
|
|
23788
23825
|
name: "favouredPolicyName",
|
|
23789
23826
|
type: "string",
|
|
23790
23827
|
title: "\u4F18\u60E0\u653F\u7B56\u7C7B\u578B",
|
|
@@ -23797,14 +23834,14 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23797
23834
|
message: '请选择是否享受优惠政策',
|
|
23798
23835
|
required: true
|
|
23799
23836
|
}]
|
|
23800
|
-
})),
|
|
23837
|
+
})), React.createElement("span", {
|
|
23801
23838
|
className: "kts-invoice-operate-goods-endow-code-button-list"
|
|
23802
|
-
},
|
|
23839
|
+
}, React.createElement(Button, {
|
|
23803
23840
|
onClick: function onClick() {
|
|
23804
23841
|
actions.submit(onSubmit);
|
|
23805
23842
|
},
|
|
23806
23843
|
type: "primary"
|
|
23807
|
-
}, "\u786E\u5B9A"),
|
|
23844
|
+
}, "\u786E\u5B9A"), React.createElement(Button, {
|
|
23808
23845
|
onClick: function onClick() {
|
|
23809
23846
|
controller.pipeline( /*#__PURE__*/function () {
|
|
23810
23847
|
var _ref17 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee17(s) {
|
|
@@ -23964,53 +24001,53 @@ function AddComparisonDrawer() {
|
|
|
23964
24001
|
}));
|
|
23965
24002
|
}
|
|
23966
24003
|
}, [good]);
|
|
23967
|
-
return
|
|
24004
|
+
return React.createElement(Drawer$1, {
|
|
23968
24005
|
width: 500,
|
|
23969
24006
|
onClose: onClose,
|
|
23970
24007
|
placement: "right",
|
|
23971
24008
|
title: "\u5546\u54C1\u6620\u5C04",
|
|
23972
24009
|
visible: !!good,
|
|
23973
|
-
footer:
|
|
24010
|
+
footer: React.createElement("div", {
|
|
23974
24011
|
style: {
|
|
23975
24012
|
display: 'flex',
|
|
23976
24013
|
justifyContent: 'flex-end',
|
|
23977
24014
|
gap: 10
|
|
23978
24015
|
}
|
|
23979
|
-
},
|
|
24016
|
+
}, React.createElement(Button, {
|
|
23980
24017
|
type: "primary",
|
|
23981
24018
|
onClick: onSubmit
|
|
23982
|
-
}, "\u63D0\u4EA4"),
|
|
24019
|
+
}, "\u63D0\u4EA4"), React.createElement(Button, {
|
|
23983
24020
|
onClick: onClose
|
|
23984
24021
|
}, "\u53D6\u6D88"))
|
|
23985
|
-
}, !!good &&
|
|
24022
|
+
}, !!good && React.createElement(Form$1, {
|
|
23986
24023
|
layout: "vertical",
|
|
23987
24024
|
style: {
|
|
23988
24025
|
flex: 1
|
|
23989
24026
|
},
|
|
23990
24027
|
form: form
|
|
23991
|
-
},
|
|
24028
|
+
}, React.createElement(Row$1, {
|
|
23992
24029
|
gutter: [8, 8]
|
|
23993
|
-
},
|
|
24030
|
+
}, React.createElement(Col$1, {
|
|
23994
24031
|
span: 12
|
|
23995
|
-
},
|
|
24032
|
+
}, React.createElement(Form$1.Item, {
|
|
23996
24033
|
name: "itemNameSelf",
|
|
23997
24034
|
label: "\u6211\u65B9\u5546\u54C1\u540D\u79F0"
|
|
23998
|
-
},
|
|
24035
|
+
}, React.createElement(Input, null))), React.createElement(Col$1, {
|
|
23999
24036
|
span: 12
|
|
24000
|
-
},
|
|
24037
|
+
}, React.createElement(Form$1.Item, {
|
|
24001
24038
|
name: "itemName",
|
|
24002
24039
|
label: "\u5BF9\u65B9\u5546\u54C1\u540D\u79F0"
|
|
24003
|
-
},
|
|
24040
|
+
}, React.createElement(Input, null))), React.createElement(Col$1, {
|
|
24004
24041
|
span: 12
|
|
24005
|
-
},
|
|
24042
|
+
}, React.createElement(Form$1.Item, {
|
|
24006
24043
|
name: 'itemModelNameSelf',
|
|
24007
24044
|
label: "\u6211\u65B9\u89C4\u683C\u578B\u53F7"
|
|
24008
|
-
},
|
|
24045
|
+
}, React.createElement(Input, null))), React.createElement(Col$1, {
|
|
24009
24046
|
span: 12
|
|
24010
|
-
},
|
|
24047
|
+
}, React.createElement(Form$1.Item, {
|
|
24011
24048
|
name: "itemModelName",
|
|
24012
24049
|
label: "\u5BF9\u65B9\u89C4\u683C\u578B\u53F7"
|
|
24013
|
-
},
|
|
24050
|
+
}, React.createElement(Input, null))))));
|
|
24014
24051
|
} // function validateFields(form: WrappedFormUtils<any>) {
|
|
24015
24052
|
// return new Promise<{ err: any, values: any }>(resolve => {
|
|
24016
24053
|
// form.validateFields((err, values) => {
|
|
@@ -24021,7 +24058,7 @@ function AddComparisonDrawer() {
|
|
|
24021
24058
|
|
|
24022
24059
|
/** 发票组件的上下文 */
|
|
24023
24060
|
|
|
24024
|
-
var InvoiceContext =
|
|
24061
|
+
var InvoiceContext = React.createContext(undefined);
|
|
24025
24062
|
|
|
24026
24063
|
var Invoice = /*#__PURE__*/function (_React$PureComponent) {
|
|
24027
24064
|
_inherits(Invoice, _React$PureComponent);
|
|
@@ -24064,9 +24101,9 @@ var Invoice = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
24064
24101
|
/** 获取控制器钩子 */
|
|
24065
24102
|
function render() {
|
|
24066
24103
|
if (this.props.invoiceType === 'digtal') {
|
|
24067
|
-
return
|
|
24104
|
+
return React.createElement(Digtal, _objectSpread2({}, this.props));
|
|
24068
24105
|
} else {
|
|
24069
|
-
return
|
|
24106
|
+
return React.createElement(Main$4, _objectSpread2({}, this.props));
|
|
24070
24107
|
}
|
|
24071
24108
|
}
|
|
24072
24109
|
}]);
|
|
@@ -24107,10 +24144,10 @@ var Main$4 = function Main(props) {
|
|
|
24107
24144
|
React.useEffect(function () {
|
|
24108
24145
|
setKey(key + 1);
|
|
24109
24146
|
}, [controller]);
|
|
24110
|
-
return
|
|
24147
|
+
return React.createElement(InvoiceContext.Provider, {
|
|
24111
24148
|
key: key,
|
|
24112
24149
|
value: controller
|
|
24113
|
-
},
|
|
24150
|
+
}, React.createElement("div", {
|
|
24114
24151
|
className: "kts-invoice-operate",
|
|
24115
24152
|
ref: controller.pipeline( /*#__PURE__*/function () {
|
|
24116
24153
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(s, e) {
|
|
@@ -24132,17 +24169,17 @@ var Main$4 = function Main(props) {
|
|
|
24132
24169
|
return _ref.apply(this, arguments);
|
|
24133
24170
|
};
|
|
24134
24171
|
}())
|
|
24135
|
-
}, props.invoiceHeader ||
|
|
24172
|
+
}, props.invoiceHeader || React.createElement(InvoiceHeader, null)
|
|
24136
24173
|
/** 发票头 */
|
|
24137
|
-
, props.buyer ||
|
|
24174
|
+
, props.buyer || React.createElement(Buyer$1, null)
|
|
24138
24175
|
/** 购买方 */
|
|
24139
|
-
, props.goodsList ||
|
|
24176
|
+
, props.goodsList || React.createElement(GoodsList, null)
|
|
24140
24177
|
/** 货物列表 */
|
|
24141
|
-
, props.seller ||
|
|
24178
|
+
, props.seller || React.createElement(Buyer, null)
|
|
24142
24179
|
/** 销售方 */
|
|
24143
|
-
, props.sign ||
|
|
24180
|
+
, props.sign || React.createElement(Sign, null)
|
|
24144
24181
|
/** 落款 */
|
|
24145
|
-
, props.footExpand),
|
|
24182
|
+
, props.footExpand), React.createElement(ImportBuyerDrawer, null), React.createElement(ImportGoodsDrawer, null), React.createElement(EndowCodeDrawer, null), React.createElement(AddComparisonDrawer, null));
|
|
24146
24183
|
};
|
|
24147
24184
|
/** 数电 */
|
|
24148
24185
|
|
|
@@ -24161,10 +24198,10 @@ var Digtal = function Digtal(props) {
|
|
|
24161
24198
|
React.useEffect(function () {
|
|
24162
24199
|
setKey(key + 1);
|
|
24163
24200
|
}, [controller]);
|
|
24164
|
-
return
|
|
24201
|
+
return React.createElement(InvoiceContext.Provider, {
|
|
24165
24202
|
key: key,
|
|
24166
24203
|
value: controller
|
|
24167
|
-
},
|
|
24204
|
+
}, React.createElement("div", {
|
|
24168
24205
|
className: "kts-invoice-operate-digtal",
|
|
24169
24206
|
ref: controller.pipeline( /*#__PURE__*/function () {
|
|
24170
24207
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(s, e) {
|
|
@@ -24186,17 +24223,17 @@ var Digtal = function Digtal(props) {
|
|
|
24186
24223
|
return _ref2.apply(this, arguments);
|
|
24187
24224
|
};
|
|
24188
24225
|
}())
|
|
24189
|
-
}, props.invoiceHeader ||
|
|
24226
|
+
}, props.invoiceHeader || React.createElement(InvoiceHeaderDigtal, null)
|
|
24190
24227
|
/** 发票头 */
|
|
24191
|
-
,
|
|
24228
|
+
, React.createElement("div", {
|
|
24192
24229
|
className: 'kts-invoice-operate-digtal-cont'
|
|
24193
|
-
}, props.stakeholder ||
|
|
24230
|
+
}, props.stakeholder || React.createElement(Stakeholder$1, null)
|
|
24194
24231
|
/** 干系人 */
|
|
24195
|
-
, props.goodsList ||
|
|
24232
|
+
, props.goodsList || React.createElement(GoodsList$1
|
|
24196
24233
|
/** 货物列表 */
|
|
24197
|
-
, null)), props.sign ||
|
|
24234
|
+
, null)), props.sign || React.createElement(SignDigtal, null)
|
|
24198
24235
|
/** 落款 */
|
|
24199
|
-
),
|
|
24236
|
+
), React.createElement(ImportGoodsDrawer, null), React.createElement(EndowCodeDrawer, null));
|
|
24200
24237
|
};
|
|
24201
24238
|
|
|
24202
24239
|
function TaxClassificationModal(props) {
|
|
@@ -24237,26 +24274,26 @@ function TaxClassificationModal(props) {
|
|
|
24237
24274
|
}, 500);
|
|
24238
24275
|
}
|
|
24239
24276
|
}, [form, props.open]);
|
|
24240
|
-
return
|
|
24277
|
+
return React.createElement(Drawer$1, {
|
|
24241
24278
|
title: "\u5546\u54C1\u548C\u670D\u52A1\u7A0E\u6536\u5206\u7C7B\u7F16\u7801",
|
|
24242
24279
|
placement: "right",
|
|
24243
24280
|
open: props.open,
|
|
24244
24281
|
width: 503,
|
|
24245
24282
|
onClose: props.onCancel
|
|
24246
|
-
},
|
|
24283
|
+
}, React.createElement(Form$1, {
|
|
24247
24284
|
form: form
|
|
24248
|
-
},
|
|
24285
|
+
}, React.createElement(Form$1.Item, {
|
|
24249
24286
|
name: 'search'
|
|
24250
|
-
},
|
|
24287
|
+
}, React.createElement(Input$1, {
|
|
24251
24288
|
placeholder: "\u8BF7\u8F93\u5165\u7A0E\u6536\u5206\u7C7B\u7F16\u7801\u3001\u7A0E\u6536\u5206\u7C7B\u540D\u79F0\u8FDB\u884C\u68C0\u7D22",
|
|
24252
24289
|
onChange: searchTax
|
|
24253
|
-
})),
|
|
24290
|
+
})), React.createElement(Form$1.Item, {
|
|
24254
24291
|
name: 'tree'
|
|
24255
|
-
},
|
|
24292
|
+
}, React.createElement(Tree$1, {
|
|
24256
24293
|
onSelect: props.onSelect,
|
|
24257
24294
|
loadData: props.onLoad,
|
|
24258
24295
|
treeData: props.list,
|
|
24259
|
-
switcherIcon:
|
|
24296
|
+
switcherIcon: React.createElement(Icon$1, {
|
|
24260
24297
|
type: "down"
|
|
24261
24298
|
})
|
|
24262
24299
|
}))));
|