kts-component-invoice-operate 3.2.156 → 3.2.157
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.dumi/theme/builtins/API.tsx +66 -66
- package/.editorconfig +16 -16
- package/.fatherrc.ts +4 -4
- package/.prettierignore +7 -7
- package/.prettierrc +11 -11
- package/.umirc.ts +8 -8
- package/README.md +9 -9
- package/dist/Invoice/index.d.ts +2 -0
- package/dist/Invoice/ui/digtal/StakeFarmerholder/index.d.ts +20 -0
- package/dist/index.esm.js +1250 -647
- package/dist/index.js +1250 -647
- 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 +40 -40
- package/src/Invoice/Invoice-digtal/_test/easiest/index.tsx +17 -16
- package/src/Invoice/Invoice-digtal/_test/header/index.tsx +84 -84
- package/src/Invoice/Invoice-digtal/_test/importGoods/index.tsx +868 -868
- package/src/Invoice/Invoice-digtal/_test/importStakeholder/index.tsx +18 -18
- package/src/Invoice/Invoice-digtal/_test/lineCredit/index.tsx +19 -19
- package/src/Invoice/Invoice-digtal/_test/prefab/index.tsx +150 -150
- package/src/Invoice/Invoice-digtal/_test/readOnly/index.tsx +55 -55
- package/src/Invoice/Invoice-digtal/_test/realEstateInfo/index.tsx +21 -21
- 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 +34 -34
- 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 +87 -87
- package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/ImportGoods/index.ts +81 -81
- 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 +131 -131
- 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 +87 -87
- package/src/Invoice/_test/buyerNameSearch/index.tsx +42 -42
- package/src/Invoice/_test/children/index.tsx +214 -214
- 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 +31 -31
- package/src/Invoice/index.md +56 -56
- package/src/Invoice/index.tsx +183 -179
- 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/tools/utils/index.ts +1 -1
- package/src/Invoice/tools/utils/money/index.ts +20 -20
- 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 +586 -586
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/autoFillFn/index.ts +647 -647
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/index.tsx +711 -711
- 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/Expand/index.tsx +57 -57
- 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 +49 -49
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/ItemNameInput/index.less +17 -17
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/ItemNameInput/index.tsx +91 -91
- 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 +99 -99
- 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 +52 -52
- package/src/Invoice/ui/default/GoodsList/hook/useRowSelection/index.tsx +120 -120
- package/src/Invoice/ui/default/GoodsList/hook/useWindowClick/index.tsx +23 -23
- package/src/Invoice/ui/default/GoodsList/index.less +185 -185
- 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 +94 -94
- 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 +114 -114
- package/src/Invoice/ui/default/GoodsList/ui/TableRow/index.less +40 -40
- package/src/Invoice/ui/default/GoodsList/ui/TableRow/index.tsx +71 -71
- package/src/Invoice/ui/default/GoodsList/ui/TableVirtual/index.less +38 -38
- package/src/Invoice/ui/default/GoodsList/ui/TableVirtual/index.tsx +130 -130
- 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 +639 -639
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/index.tsx +660 -660
- 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 +87 -87
- 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 +51 -51
- 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 +67 -67
- package/src/Invoice/ui/digtal/GoodsList/ui/BulkMenu/hooks/useAddDiscountRowButton/index.tsx +340 -340
- 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 +98 -98
- 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/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/RealEstateInfo/index.less +14 -14
- package/src/Invoice/ui/digtal/RealEstateInfo/index.tsx +192 -192
- 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/StakeFarmerholder/index.less +100 -0
- package/src/Invoice/ui/digtal/StakeFarmerholder/index.tsx +398 -0
- package/src/Invoice/ui/digtal/StakeFarmerholder/svg/arrowDown.svg +3 -0
- package/src/Invoice/ui/digtal/StakeFarmerholder/svg/arrowUp.svg +3 -0
- package/src/Invoice/ui/digtal/StakeFarmerholder/svg/plus.svg +12 -0
- package/src/Invoice/ui/digtal/Stakeholder/index.less +99 -99
- package/src/Invoice/ui/digtal/Stakeholder/index.tsx +396 -396
- 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
|
@@ -9868,7 +9868,7 @@ var InvoiceHeader = decorator(Form.create())(function (props) {
|
|
|
9868
9868
|
render: function render(form) {
|
|
9869
9869
|
return form.getFieldDecorator('code', {
|
|
9870
9870
|
initialValue: props.defaultCode
|
|
9871
|
-
})(React.createElement(FormSpanString, null));
|
|
9871
|
+
})( /*#__PURE__*/React.createElement(FormSpanString, null));
|
|
9872
9872
|
}
|
|
9873
9873
|
});
|
|
9874
9874
|
}
|
|
@@ -9881,7 +9881,7 @@ var InvoiceHeader = decorator(Form.create())(function (props) {
|
|
|
9881
9881
|
render: function render(form) {
|
|
9882
9882
|
return form.getFieldDecorator('no', {
|
|
9883
9883
|
initialValue: props.defaultNo
|
|
9884
|
-
})(React.createElement(FormSpanString, null));
|
|
9884
|
+
})( /*#__PURE__*/React.createElement(FormSpanString, null));
|
|
9885
9885
|
}
|
|
9886
9886
|
});
|
|
9887
9887
|
}
|
|
@@ -9892,7 +9892,7 @@ var InvoiceHeader = decorator(Form.create())(function (props) {
|
|
|
9892
9892
|
render: function render(form) {
|
|
9893
9893
|
return form.getFieldDecorator('invoicingDate', {
|
|
9894
9894
|
initialValue: props.defaultInvoicingDate
|
|
9895
|
-
})(React.createElement(FormSpanString, null));
|
|
9895
|
+
})( /*#__PURE__*/React.createElement(FormSpanString, null));
|
|
9896
9896
|
}
|
|
9897
9897
|
});
|
|
9898
9898
|
}
|
|
@@ -9903,7 +9903,7 @@ var InvoiceHeader = decorator(Form.create())(function (props) {
|
|
|
9903
9903
|
render: function render(form) {
|
|
9904
9904
|
return form.getFieldDecorator('defaultValidationCode', {
|
|
9905
9905
|
initialValue: props.defaultValidationCode
|
|
9906
|
-
})(React.createElement(FormSpanString, null));
|
|
9906
|
+
})( /*#__PURE__*/React.createElement(FormSpanString, null));
|
|
9907
9907
|
}
|
|
9908
9908
|
});
|
|
9909
9909
|
}
|
|
@@ -9923,21 +9923,21 @@ var InvoiceHeader = decorator(Form.create())(function (props) {
|
|
|
9923
9923
|
React.useEffect(function () {
|
|
9924
9924
|
setTypeIndex(props.typeOptionIndex || 0);
|
|
9925
9925
|
}, [props.typeOption]);
|
|
9926
|
-
return React.createElement("div", {
|
|
9926
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
9927
9927
|
className: "kts-invoice-operate-invoice-header"
|
|
9928
|
-
}, React.createElement("div", {
|
|
9928
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
9929
9929
|
className: "invoice-header-title"
|
|
9930
|
-
}, title), React.createElement("div", {
|
|
9930
|
+
}, title), /*#__PURE__*/React.createElement("div", {
|
|
9931
9931
|
className: "invoice-header-no"
|
|
9932
|
-
}, isInvoiceNo ? React.createElement("div", null, React.createElement("label", null, "\u53D1\u7968\u5355\u636E\u7F16\u53F7 :"), getFieldDecorator('id', {
|
|
9932
|
+
}, isInvoiceNo ? /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("label", null, "\u53D1\u7968\u5355\u636E\u7F16\u53F7 :"), getFieldDecorator('id', {
|
|
9933
9933
|
initialValue: props.defaultId
|
|
9934
|
-
})(React.createElement(Input, {
|
|
9934
|
+
})( /*#__PURE__*/React.createElement(Input, {
|
|
9935
9935
|
disabled: readOnlyInvoiceNo,
|
|
9936
9936
|
style: {
|
|
9937
9937
|
width: 230
|
|
9938
9938
|
},
|
|
9939
9939
|
size: "small",
|
|
9940
|
-
suffix: controller.updateInvoiceNo && React.createElement(Icon$1, {
|
|
9940
|
+
suffix: controller.updateInvoiceNo && /*#__PURE__*/React.createElement(Icon$1, {
|
|
9941
9941
|
style: {
|
|
9942
9942
|
cursor: 'pointer'
|
|
9943
9943
|
},
|
|
@@ -9981,15 +9981,15 @@ var InvoiceHeader = decorator(Form.create())(function (props) {
|
|
|
9981
9981
|
return onClick;
|
|
9982
9982
|
}()
|
|
9983
9983
|
})
|
|
9984
|
-
}))) : React.createElement("div", {
|
|
9984
|
+
}))) : /*#__PURE__*/React.createElement("div", {
|
|
9985
9985
|
style: {
|
|
9986
9986
|
height: 20
|
|
9987
9987
|
}
|
|
9988
|
-
}), tag && React.createElement(Tag$1, null, tag), React.createElement("div", {
|
|
9988
|
+
}), tag && /*#__PURE__*/React.createElement(Tag$1, null, tag), /*#__PURE__*/React.createElement("div", {
|
|
9989
9989
|
className: "invoice-header-type"
|
|
9990
9990
|
}, props.typeOption ? getFieldDecorator('type', {
|
|
9991
9991
|
initialValue: typeIndex
|
|
9992
|
-
})(React.createElement(Select, {
|
|
9992
|
+
})( /*#__PURE__*/React.createElement(Select, {
|
|
9993
9993
|
size: "small",
|
|
9994
9994
|
style: {
|
|
9995
9995
|
width: 230
|
|
@@ -9998,20 +9998,20 @@ var InvoiceHeader = decorator(Form.create())(function (props) {
|
|
|
9998
9998
|
setTypeIndex(e);
|
|
9999
9999
|
}
|
|
10000
10000
|
}, props.typeOption.map(function (e, i) {
|
|
10001
|
-
return React.createElement(Select.Option, {
|
|
10001
|
+
return /*#__PURE__*/React.createElement(Select.Option, {
|
|
10002
10002
|
key: i,
|
|
10003
10003
|
value: i
|
|
10004
10004
|
}, e.title);
|
|
10005
|
-
}))) : props.renderExpand && props.renderExpand(props.form))), props.typeOption && React.createElement("div", {
|
|
10005
|
+
}))) : props.renderExpand && props.renderExpand(props.form))), props.typeOption && /*#__PURE__*/React.createElement("div", {
|
|
10006
10006
|
style: {
|
|
10007
10007
|
marginTop: 10
|
|
10008
10008
|
}
|
|
10009
|
-
}, props.renderExpand && props.renderExpand(props.form)), React.createElement("div", {
|
|
10009
|
+
}, props.renderExpand && props.renderExpand(props.form)), /*#__PURE__*/React.createElement("div", {
|
|
10010
10010
|
className: "invoice-header-property"
|
|
10011
|
-
}, _toConsumableArray(props.fieldExpand || []).map(function (e) {}), React.createElement("ul", {
|
|
10011
|
+
}, _toConsumableArray(props.fieldExpand || []).map(function (e) {}), /*#__PURE__*/React.createElement("ul", {
|
|
10012
10012
|
className: 'invoice-header-property-fieldExpand'
|
|
10013
10013
|
}, fieldExpand.map(function (e) {
|
|
10014
|
-
return React.createElement("li", null, React.createElement("label", null, e.label), e.render(form));
|
|
10014
|
+
return /*#__PURE__*/React.createElement("li", null, /*#__PURE__*/React.createElement("label", null, e.label), e.render(form));
|
|
10015
10015
|
}))));
|
|
10016
10016
|
});
|
|
10017
10017
|
|
|
@@ -10030,7 +10030,7 @@ var FormSpanString = /*#__PURE__*/function (_React$Component) {
|
|
|
10030
10030
|
key: "render",
|
|
10031
10031
|
value: function render() {
|
|
10032
10032
|
// return <span>{this.props.value}</span>;
|
|
10033
|
-
return React.createElement(Input, {
|
|
10033
|
+
return /*#__PURE__*/React.createElement(Input, {
|
|
10034
10034
|
size: "small",
|
|
10035
10035
|
disabled: true,
|
|
10036
10036
|
value: this.props.value
|
|
@@ -10169,12 +10169,12 @@ function TableVirtual (props) {
|
|
|
10169
10169
|
cont.scrollTop = 0;
|
|
10170
10170
|
}, [(_props$dataSource = props.dataSource) === null || _props$dataSource === void 0 ? void 0 : _props$dataSource.length]); // console.log('===> pointer', pointer, dataSource);
|
|
10171
10171
|
|
|
10172
|
-
return React.createElement("span", {
|
|
10172
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
10173
10173
|
className: "kts-invoice-operate-goods-table-virtual",
|
|
10174
10174
|
ref: function ref(e) {
|
|
10175
10175
|
setSelf(e);
|
|
10176
10176
|
}
|
|
10177
|
-
}, React.createElement(TableManual, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
10177
|
+
}, /*#__PURE__*/React.createElement(TableManual, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
10178
10178
|
dataSource: dataSource,
|
|
10179
10179
|
// 新版本Table会有输入框无法连续输入的问题,先兼容老版本
|
|
10180
10180
|
tableComponent: Table
|
|
@@ -10266,57 +10266,57 @@ var Statistics = (function () {
|
|
|
10266
10266
|
});
|
|
10267
10267
|
return sum.done().toNumber();
|
|
10268
10268
|
}, []);
|
|
10269
|
-
return React.createElement("div", {
|
|
10269
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
10270
10270
|
className: "kts-invoice-operate-goods-list-statistics"
|
|
10271
|
-
}, React.createElement("div", {
|
|
10271
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
10272
10272
|
className: "kts-invoice-operate-goods-list-statistics-row"
|
|
10273
|
-
}, React.createElement("div", {
|
|
10273
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
10274
10274
|
style: {
|
|
10275
10275
|
width: 45.92
|
|
10276
10276
|
}
|
|
10277
|
-
}), React.createElement("div", {
|
|
10277
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
10278
10278
|
style: {
|
|
10279
10279
|
flex: 1
|
|
10280
10280
|
}
|
|
10281
|
-
}, React.createElement("label", null, "\u5408\u8BA1")), React.createElement("div", {
|
|
10281
|
+
}, /*#__PURE__*/React.createElement("label", null, "\u5408\u8BA1")), /*#__PURE__*/React.createElement("div", {
|
|
10282
10282
|
style: {
|
|
10283
10283
|
width: 119,
|
|
10284
10284
|
textAlign: 'right',
|
|
10285
10285
|
border: 'none'
|
|
10286
10286
|
}
|
|
10287
|
-
}, React.createElement("label", null, parseFloat(isTaxIncluded ? lineAmountIncludeTax : lineAmountExcludeTax).toFixed(2))), React.createElement("div", {
|
|
10287
|
+
}, /*#__PURE__*/React.createElement("label", null, parseFloat(isTaxIncluded ? lineAmountIncludeTax : lineAmountExcludeTax).toFixed(2))), /*#__PURE__*/React.createElement("div", {
|
|
10288
10288
|
style: {
|
|
10289
10289
|
width: 70,
|
|
10290
10290
|
border: 'none'
|
|
10291
10291
|
}
|
|
10292
|
-
}), React.createElement("div", {
|
|
10292
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
10293
10293
|
style: {
|
|
10294
10294
|
width: 119,
|
|
10295
10295
|
textAlign: 'right',
|
|
10296
10296
|
border: 'none'
|
|
10297
10297
|
}
|
|
10298
|
-
}, React.createElement("label", null, parseFloat(taxAmount).toFixed(2))), React.createElement("div", {
|
|
10298
|
+
}, /*#__PURE__*/React.createElement("label", null, parseFloat(taxAmount).toFixed(2))), /*#__PURE__*/React.createElement("div", {
|
|
10299
10299
|
style: {
|
|
10300
10300
|
width: 111,
|
|
10301
10301
|
border: 'none'
|
|
10302
10302
|
}
|
|
10303
|
-
})), React.createElement("div", {
|
|
10303
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
10304
10304
|
className: "kts-invoice-operate-goods-list-statistics-row"
|
|
10305
|
-
}, React.createElement("div", {
|
|
10305
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
10306
10306
|
style: {
|
|
10307
10307
|
width: 45.92
|
|
10308
10308
|
}
|
|
10309
|
-
}), React.createElement("div", {
|
|
10309
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
10310
10310
|
style: {
|
|
10311
10311
|
flex: 5,
|
|
10312
10312
|
border: 'none'
|
|
10313
10313
|
}
|
|
10314
|
-
}, React.createElement("label", null, "\u4EF7\u7A0E\u5408\u8BA1\uFF08\u5927\u5199\uFF09"), React.createElement("label", null, toStringChinese(lineAmountIncludeTax))), React.createElement("div", {
|
|
10314
|
+
}, /*#__PURE__*/React.createElement("label", null, "\u4EF7\u7A0E\u5408\u8BA1\uFF08\u5927\u5199\uFF09"), /*#__PURE__*/React.createElement("label", null, toStringChinese(lineAmountIncludeTax))), /*#__PURE__*/React.createElement("div", {
|
|
10315
10315
|
style: {
|
|
10316
10316
|
flex: 5,
|
|
10317
10317
|
border: 'none'
|
|
10318
10318
|
}
|
|
10319
|
-
}, React.createElement("label", null, "\uFF08\u5C0F\u5199\uFF09 ", parseFloat(lineAmountIncludeTax).toFixed(2)))));
|
|
10319
|
+
}, /*#__PURE__*/React.createElement("label", null, "\uFF08\u5C0F\u5199\uFF09 ", parseFloat(lineAmountIncludeTax).toFixed(2)))));
|
|
10320
10320
|
});
|
|
10321
10321
|
|
|
10322
10322
|
var AddRowButton = (function () {
|
|
@@ -10371,10 +10371,10 @@ var AddRowButton = (function () {
|
|
|
10371
10371
|
}
|
|
10372
10372
|
}, _callee);
|
|
10373
10373
|
})), [controller, rootElement]);
|
|
10374
|
-
if (isAddRow === false) return React.createElement(React.Fragment, null);
|
|
10375
|
-
if (model === 'prefab') return React.createElement(React.Fragment, null);
|
|
10376
|
-
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
10377
|
-
return React.createElement(Button, {
|
|
10374
|
+
if (isAddRow === false) return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
10375
|
+
if (model === 'prefab') return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
10376
|
+
if (model === 'readOnly') return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
10377
|
+
return /*#__PURE__*/React.createElement(Button, {
|
|
10378
10378
|
onClick: onClick,
|
|
10379
10379
|
disabled: disabled
|
|
10380
10380
|
}, "\u6DFB\u52A0\u884C");
|
|
@@ -10504,11 +10504,11 @@ var TaxIncludedSwitch = (function () {
|
|
|
10504
10504
|
var onChange = React.useCallback(function (e) {
|
|
10505
10505
|
onChangeSwitchTax(controller, e);
|
|
10506
10506
|
}, []);
|
|
10507
|
-
return React.createElement("span", null, React.createElement("label", {
|
|
10507
|
+
return /*#__PURE__*/React.createElement("span", null, /*#__PURE__*/React.createElement("label", {
|
|
10508
10508
|
style: {
|
|
10509
10509
|
marginRight: 2
|
|
10510
10510
|
}
|
|
10511
|
-
}, "\u542B\u7A0E:"), React.createElement(Switch, {
|
|
10511
|
+
}, "\u542B\u7A0E:"), /*#__PURE__*/React.createElement(Switch, {
|
|
10512
10512
|
disabled: isSwitchTax === false,
|
|
10513
10513
|
checked: isTaxIncluded,
|
|
10514
10514
|
defaultChecked: true,
|
|
@@ -10546,19 +10546,19 @@ var DescribeSwitch = (function () {
|
|
|
10546
10546
|
};
|
|
10547
10547
|
}());
|
|
10548
10548
|
}, []);
|
|
10549
|
-
if (!productComparison.onComply) return React.createElement(React.Fragment, null);
|
|
10550
|
-
return React.createElement("span", null, React.createElement("label", {
|
|
10549
|
+
if (!productComparison.onComply) return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
10550
|
+
return /*#__PURE__*/React.createElement("span", null, /*#__PURE__*/React.createElement("label", {
|
|
10551
10551
|
style: {
|
|
10552
10552
|
marginRight: 2
|
|
10553
10553
|
}
|
|
10554
|
-
}, React.createElement(Tooltip, {
|
|
10554
|
+
}, /*#__PURE__*/React.createElement(Tooltip, {
|
|
10555
10555
|
title: "\u84DD\u8272\u4EE3\u8868\u6211\u65B9\u5546\u54C1\u63CF\u8FF0\uFF0C\u9ED1\u8272\u4EE3\u8868\u5BF9\u65B9\u7684\u5546\u54C1\u63CF\u8FF0\u3002"
|
|
10556
|
-
}, React.createElement(Icon$1, {
|
|
10556
|
+
}, /*#__PURE__*/React.createElement(Icon$1, {
|
|
10557
10557
|
style: {
|
|
10558
10558
|
marginRight: 3
|
|
10559
10559
|
},
|
|
10560
10560
|
type: "info-circle"
|
|
10561
|
-
})), "\u4F7F\u7528\u54EA\u65B9\u5546\u54C1\u63CF\u8FF0:"), React.createElement(Switch$1, {
|
|
10561
|
+
})), "\u4F7F\u7528\u54EA\u65B9\u5546\u54C1\u63CF\u8FF0:"), /*#__PURE__*/React.createElement(Switch$1, {
|
|
10562
10562
|
checked: isMyShow,
|
|
10563
10563
|
checkedChildren: "\u6211\u65B9",
|
|
10564
10564
|
unCheckedChildren: "\u5BF9\u65B9",
|
|
@@ -10658,13 +10658,13 @@ function Search() {
|
|
|
10658
10658
|
};
|
|
10659
10659
|
}());
|
|
10660
10660
|
}, [value, controller]);
|
|
10661
|
-
return React.createElement(Input, {
|
|
10661
|
+
return /*#__PURE__*/React.createElement(Input, {
|
|
10662
10662
|
size: "small",
|
|
10663
10663
|
readOnly: readOnly,
|
|
10664
10664
|
value: value,
|
|
10665
10665
|
className: "kts-invoice-operate-goods-list-search",
|
|
10666
10666
|
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"),
|
|
10667
|
-
prefix: React.createElement(Icon$1, {
|
|
10667
|
+
prefix: /*#__PURE__*/React.createElement(Icon$1, {
|
|
10668
10668
|
component: SvgMagnifier,
|
|
10669
10669
|
style: {
|
|
10670
10670
|
color: "#b8b8b8"
|
|
@@ -10734,13 +10734,13 @@ function TableRow(props) {
|
|
|
10734
10734
|
}).indexOf(rowKey) > -1) return 'kts-invoice-operate-goods-expanded-level-1';
|
|
10735
10735
|
return undefined;
|
|
10736
10736
|
}, [rowKey, expandedRowKeys, good]);
|
|
10737
|
-
return rowKey === current && current ? React.createElement("tr", {
|
|
10737
|
+
return rowKey === current && current ? /*#__PURE__*/React.createElement("tr", {
|
|
10738
10738
|
style: {
|
|
10739
10739
|
height: 32.67,
|
|
10740
10740
|
borderBottom: '1px solid #E6E6E6',
|
|
10741
10741
|
position: 'relative'
|
|
10742
10742
|
}
|
|
10743
|
-
}, React.createElement("div", {
|
|
10743
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
10744
10744
|
style: {
|
|
10745
10745
|
height: 1,
|
|
10746
10746
|
width: '100%',
|
|
@@ -10748,7 +10748,7 @@ function TableRow(props) {
|
|
|
10748
10748
|
position: 'absolute',
|
|
10749
10749
|
bottom: 0
|
|
10750
10750
|
}
|
|
10751
|
-
})) : React.createElement("tr", _objectSpread2(_objectSpread2({}, props), {}, {
|
|
10751
|
+
})) : /*#__PURE__*/React.createElement("tr", _objectSpread2(_objectSpread2({}, props), {}, {
|
|
10752
10752
|
className: classNames(props.className, discount, expandedRow, rowKey === container && current ? 'kts-invoice-operate-goods-list-itemName-drag-container-' + site : undefined)
|
|
10753
10753
|
}));
|
|
10754
10754
|
}
|
|
@@ -11156,7 +11156,7 @@ var RowMenu = (function (props) {
|
|
|
11156
11156
|
// addComparison && arr.push(addComparison); // 添加商品对照
|
|
11157
11157
|
|
|
11158
11158
|
if (!goodsMenuExpand || goodsMenuExpand.length === 0) return arr;
|
|
11159
|
-
arr.unshift(React.createElement(Menu.Divider, {
|
|
11159
|
+
arr.unshift( /*#__PURE__*/React.createElement(Menu.Divider, {
|
|
11160
11160
|
key: "divider-1"
|
|
11161
11161
|
}));
|
|
11162
11162
|
|
|
@@ -11172,17 +11172,17 @@ var RowMenu = (function (props) {
|
|
|
11172
11172
|
return undefined;
|
|
11173
11173
|
}
|
|
11174
11174
|
|
|
11175
|
-
return React.createElement(Menu, null, itemList.slice(2).map(function (e) {
|
|
11176
|
-
return React.createElement(Menu.Item, {
|
|
11175
|
+
return /*#__PURE__*/React.createElement(Menu, null, itemList.slice(2).map(function (e) {
|
|
11176
|
+
return /*#__PURE__*/React.createElement(Menu.Item, {
|
|
11177
11177
|
key: e.key,
|
|
11178
11178
|
onClick: e.onClick
|
|
11179
|
-
}, React.createElement(Text$1, {
|
|
11179
|
+
}, /*#__PURE__*/React.createElement(Text$1, {
|
|
11180
11180
|
strong: true
|
|
11181
11181
|
}, e.title));
|
|
11182
11182
|
}));
|
|
11183
11183
|
}, [itemList]);
|
|
11184
11184
|
var buttonList = React.useMemo(function () {
|
|
11185
|
-
return React.createElement("div", {
|
|
11185
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
11186
11186
|
style: {
|
|
11187
11187
|
flex: 1,
|
|
11188
11188
|
textAlign: 'left',
|
|
@@ -11190,7 +11190,7 @@ var RowMenu = (function (props) {
|
|
|
11190
11190
|
gap: 10
|
|
11191
11191
|
}
|
|
11192
11192
|
}, itemList.slice(0, 2).map(function (e) {
|
|
11193
|
-
return React.createElement(Button, {
|
|
11193
|
+
return /*#__PURE__*/React.createElement(Button, {
|
|
11194
11194
|
key: e.key,
|
|
11195
11195
|
type: 'link',
|
|
11196
11196
|
onClick: e.onClick,
|
|
@@ -11202,25 +11202,25 @@ var RowMenu = (function (props) {
|
|
|
11202
11202
|
}, [itemList]);
|
|
11203
11203
|
|
|
11204
11204
|
if (props.goods.level && props.goods.level > 0) {
|
|
11205
|
-
return React.createElement(React.Fragment, null);
|
|
11205
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
11206
11206
|
}
|
|
11207
11207
|
|
|
11208
11208
|
if (itemList.length === 0) {
|
|
11209
|
-
return React.createElement(React.Fragment, null);
|
|
11209
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
11210
11210
|
}
|
|
11211
11211
|
|
|
11212
|
-
return React.createElement("span", {
|
|
11212
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
11213
11213
|
style: {
|
|
11214
11214
|
padding: '0 0 0 10px',
|
|
11215
11215
|
display: 'flex'
|
|
11216
11216
|
}
|
|
11217
|
-
}, buttonList, overlay && React.createElement(Dropdown, {
|
|
11217
|
+
}, buttonList, overlay && /*#__PURE__*/React.createElement(Dropdown, {
|
|
11218
11218
|
overlay: overlay,
|
|
11219
11219
|
trigger: ['click']
|
|
11220
|
-
}, React.createElement(Button, {
|
|
11220
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
11221
11221
|
className: "kts-invoice-operate-goods-list-columns-row-menu ant-btn-icon-only",
|
|
11222
11222
|
type: "link"
|
|
11223
|
-
}, React.createElement(Icon$1, {
|
|
11223
|
+
}, /*#__PURE__*/React.createElement(Icon$1, {
|
|
11224
11224
|
component: SvgSpot
|
|
11225
11225
|
}))));
|
|
11226
11226
|
});
|
|
@@ -11234,9 +11234,9 @@ var TitleText = (function (props) {
|
|
|
11234
11234
|
return !!e.required;
|
|
11235
11235
|
})) || props.required;
|
|
11236
11236
|
}, [rules, props.required]);
|
|
11237
|
-
return React.createElement(React.Fragment, null, required ? React.createElement(Text$2, {
|
|
11237
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, required ? /*#__PURE__*/React.createElement(Text$2, {
|
|
11238
11238
|
type: "danger"
|
|
11239
|
-
}, "*") : React.createElement(React.Fragment, null), children);
|
|
11239
|
+
}, "*") : /*#__PURE__*/React.createElement(React.Fragment, null), children);
|
|
11240
11240
|
});
|
|
11241
11241
|
|
|
11242
11242
|
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";
|
|
@@ -11430,14 +11430,14 @@ function ItemNameInput(props) {
|
|
|
11430
11430
|
React.useEffect(function () {
|
|
11431
11431
|
setValue(props.value);
|
|
11432
11432
|
}, [props.value]);
|
|
11433
|
-
return React.createElement("div", {
|
|
11433
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
11434
11434
|
className: 'kts-invoice-operate-goods-list-itemName-input'
|
|
11435
|
-
}, props.shorthand && React.createElement("span", {
|
|
11435
|
+
}, props.shorthand && /*#__PURE__*/React.createElement("span", {
|
|
11436
11436
|
style: {
|
|
11437
11437
|
alignSelf: 'center',
|
|
11438
11438
|
fontSize: 12
|
|
11439
11439
|
}
|
|
11440
|
-
}, "*", props.shorthand, "*"), React.createElement(AutoComplete$1, {
|
|
11440
|
+
}, "*", props.shorthand, "*"), /*#__PURE__*/React.createElement(AutoComplete$1, {
|
|
11441
11441
|
onSearch: onSearch,
|
|
11442
11442
|
value: props.value,
|
|
11443
11443
|
options: options.map(function (e) {
|
|
@@ -11450,7 +11450,7 @@ function ItemNameInput(props) {
|
|
|
11450
11450
|
return rootElement || document.body;
|
|
11451
11451
|
},
|
|
11452
11452
|
onSelect: onChangeAutoComplete
|
|
11453
|
-
}, React.createElement(Input, {
|
|
11453
|
+
}, /*#__PURE__*/React.createElement(Input, {
|
|
11454
11454
|
style: {
|
|
11455
11455
|
height: '100%',
|
|
11456
11456
|
border: 'none'
|
|
@@ -11562,9 +11562,9 @@ function ItemCodeInput(props) {
|
|
|
11562
11562
|
return _ref2.apply(this, arguments);
|
|
11563
11563
|
};
|
|
11564
11564
|
}(), [options, controller]);
|
|
11565
|
-
return React.createElement("div", {
|
|
11565
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
11566
11566
|
className: 'kts-invoice-operate-goods-list-itemCode-input'
|
|
11567
|
-
}, React.createElement(AutoComplete$1, {
|
|
11567
|
+
}, /*#__PURE__*/React.createElement(AutoComplete$1, {
|
|
11568
11568
|
onSearch: onSearch,
|
|
11569
11569
|
value: props.value,
|
|
11570
11570
|
options: options.map(function (e) {
|
|
@@ -11576,7 +11576,7 @@ function ItemCodeInput(props) {
|
|
|
11576
11576
|
return rootElement || document.body;
|
|
11577
11577
|
},
|
|
11578
11578
|
onSelect: onChangeAutoComplete
|
|
11579
|
-
}, React.createElement(Input, {
|
|
11579
|
+
}, /*#__PURE__*/React.createElement(Input, {
|
|
11580
11580
|
style: {
|
|
11581
11581
|
height: '100%',
|
|
11582
11582
|
border: 'none'
|
|
@@ -12757,7 +12757,7 @@ function Drag$1(props) {
|
|
|
12757
12757
|
var currentGood = controller.state.goodsListState.goodsList.filter(function (e) {
|
|
12758
12758
|
return e.$index === record.$index;
|
|
12759
12759
|
})[0];
|
|
12760
|
-
mounting(React.createElement(DragDiv, _objectSpread2({}, currentGood)));
|
|
12760
|
+
mounting( /*#__PURE__*/React.createElement(DragDiv, _objectSpread2({}, currentGood)));
|
|
12761
12761
|
rowList.forEach(function (e) {
|
|
12762
12762
|
e.addEventListener('mousemove', onMousemove);
|
|
12763
12763
|
});
|
|
@@ -12918,7 +12918,7 @@ function Drag$1(props) {
|
|
|
12918
12918
|
|
|
12919
12919
|
|
|
12920
12920
|
function insert() {
|
|
12921
|
-
mounting(React.createElement(React.Fragment, null));
|
|
12921
|
+
mounting( /*#__PURE__*/React.createElement(React.Fragment, null));
|
|
12922
12922
|
controller.run( /*#__PURE__*/function () {
|
|
12923
12923
|
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(s) {
|
|
12924
12924
|
var _s$goodsListState$dra, container, current, site, goodsList, goodsMap, _currentGood, currentIndex, moveGoods;
|
|
@@ -12997,7 +12997,7 @@ function Drag$1(props) {
|
|
|
12997
12997
|
}
|
|
12998
12998
|
}, [controller, record, disabled]);
|
|
12999
12999
|
var renderButton = React.useMemo(function () {
|
|
13000
|
-
return React.createElement(Button, {
|
|
13000
|
+
return /*#__PURE__*/React.createElement(Button, {
|
|
13001
13001
|
type: 'link',
|
|
13002
13002
|
style: {
|
|
13003
13003
|
padding: 0
|
|
@@ -13008,13 +13008,13 @@ function Drag$1(props) {
|
|
|
13008
13008
|
},
|
|
13009
13009
|
className: "kts-invoice-operate-goods-list-itemName-drag",
|
|
13010
13010
|
onMouseOver: controller.saveEditGood
|
|
13011
|
-
}, React.createElement(Icon, {
|
|
13011
|
+
}, /*#__PURE__*/React.createElement(Icon, {
|
|
13012
13012
|
component: SvgI001
|
|
13013
13013
|
}));
|
|
13014
13014
|
}, [onMouseDown, controller]);
|
|
13015
13015
|
|
|
13016
13016
|
if (disabled) {
|
|
13017
|
-
return React.createElement(Popover, {
|
|
13017
|
+
return /*#__PURE__*/React.createElement(Popover, {
|
|
13018
13018
|
content: '您还有未编辑完成的商品',
|
|
13019
13019
|
trigger: 'focus'
|
|
13020
13020
|
}, renderButton);
|
|
@@ -13054,13 +13054,13 @@ function DragDiv(props) {
|
|
|
13054
13054
|
window.removeEventListener('mousemove', onMousemove);
|
|
13055
13055
|
};
|
|
13056
13056
|
});
|
|
13057
|
-
return React.createElement("div", {
|
|
13057
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
13058
13058
|
className: "kts-invoice-operate-goods-list-itemName-drag-div",
|
|
13059
13059
|
style: {
|
|
13060
13060
|
top: y,
|
|
13061
13061
|
left: x
|
|
13062
13062
|
}
|
|
13063
|
-
}, React.createElement("span", null, props.itemName), React.createElement("span", null, props.itemModelName), React.createElement("span", null, props.unit));
|
|
13063
|
+
}, /*#__PURE__*/React.createElement("span", null, props.itemName), /*#__PURE__*/React.createElement("span", null, props.itemModelName), /*#__PURE__*/React.createElement("span", null, props.unit));
|
|
13064
13064
|
}
|
|
13065
13065
|
|
|
13066
13066
|
function Expand(props) {
|
|
@@ -13077,7 +13077,7 @@ function Expand(props) {
|
|
|
13077
13077
|
|
|
13078
13078
|
if ((_goodsMap$get = goodsMap.get(record.$index)) === null || _goodsMap$get === void 0 ? void 0 : _goodsMap$get.children) {
|
|
13079
13079
|
if (expandedRowKeys.includes(record.$index)) {
|
|
13080
|
-
return React.createElement(Button$1, {
|
|
13080
|
+
return /*#__PURE__*/React.createElement(Button$1, {
|
|
13081
13081
|
type: 'text',
|
|
13082
13082
|
style: {
|
|
13083
13083
|
width: 'auto',
|
|
@@ -13110,7 +13110,7 @@ function Expand(props) {
|
|
|
13110
13110
|
}())
|
|
13111
13111
|
}, "\u6536\u8D77");
|
|
13112
13112
|
} else {
|
|
13113
|
-
return React.createElement(Button$1, {
|
|
13113
|
+
return /*#__PURE__*/React.createElement(Button$1, {
|
|
13114
13114
|
type: 'text',
|
|
13115
13115
|
style: {
|
|
13116
13116
|
width: 'auto',
|
|
@@ -13142,7 +13142,7 @@ function Expand(props) {
|
|
|
13142
13142
|
}, "\u5C55\u5F00");
|
|
13143
13143
|
}
|
|
13144
13144
|
} else {
|
|
13145
|
-
return React.createElement(React.Fragment, null);
|
|
13145
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
13146
13146
|
}
|
|
13147
13147
|
}
|
|
13148
13148
|
|
|
@@ -13277,7 +13277,7 @@ var useColumns = (function (form) {
|
|
|
13277
13277
|
width: 40,
|
|
13278
13278
|
align: 'center',
|
|
13279
13279
|
render: function render(_, record) {
|
|
13280
|
-
return React.createElement(Drag$1, {
|
|
13280
|
+
return /*#__PURE__*/React.createElement(Drag$1, {
|
|
13281
13281
|
record: record
|
|
13282
13282
|
});
|
|
13283
13283
|
}
|
|
@@ -13287,7 +13287,7 @@ var useColumns = (function (form) {
|
|
|
13287
13287
|
width: 50,
|
|
13288
13288
|
align: 'center',
|
|
13289
13289
|
render: function render(_, record) {
|
|
13290
|
-
return React.createElement(Expand, {
|
|
13290
|
+
return /*#__PURE__*/React.createElement(Expand, {
|
|
13291
13291
|
record: record
|
|
13292
13292
|
});
|
|
13293
13293
|
}
|
|
@@ -13297,7 +13297,7 @@ var useColumns = (function (form) {
|
|
|
13297
13297
|
dataIndex: 'serialNo',
|
|
13298
13298
|
width: 50,
|
|
13299
13299
|
render: function render(e) {
|
|
13300
|
-
return React.createElement("span", {
|
|
13300
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
13301
13301
|
style: {
|
|
13302
13302
|
padding: '0 10px'
|
|
13303
13303
|
}
|
|
@@ -13309,13 +13309,13 @@ var useColumns = (function (form) {
|
|
|
13309
13309
|
width: 119,
|
|
13310
13310
|
render: function render(_, record) {
|
|
13311
13311
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index && model !== 'prefab') {
|
|
13312
|
-
return React.createElement(Form.Item, null, getFieldDecorator('itemCode', {
|
|
13312
|
+
return /*#__PURE__*/React.createElement(Form.Item, null, getFieldDecorator('itemCode', {
|
|
13313
13313
|
initialValue: editGood.itemCode,
|
|
13314
13314
|
rules: [].concat(_toConsumableArray(getReplenishRules('itemCode')), [{
|
|
13315
13315
|
pattern: /^.{1,19}$/,
|
|
13316
13316
|
message: '商品编码长度不能超过19位'
|
|
13317
13317
|
}])
|
|
13318
|
-
})(React.createElement(ItemCodeInput, {
|
|
13318
|
+
})( /*#__PURE__*/React.createElement(ItemCodeInput, {
|
|
13319
13319
|
onChange: function () {
|
|
13320
13320
|
var _onChange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
13321
13321
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
@@ -13341,7 +13341,7 @@ var useColumns = (function (form) {
|
|
|
13341
13341
|
}()
|
|
13342
13342
|
})));
|
|
13343
13343
|
} else {
|
|
13344
|
-
return React.createElement("span", {
|
|
13344
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
13345
13345
|
style: {
|
|
13346
13346
|
padding: '0 10px'
|
|
13347
13347
|
}
|
|
@@ -13349,13 +13349,13 @@ var useColumns = (function (form) {
|
|
|
13349
13349
|
}
|
|
13350
13350
|
}
|
|
13351
13351
|
}, {
|
|
13352
|
-
title: React.createElement(TitleText, {
|
|
13352
|
+
title: /*#__PURE__*/React.createElement(TitleText, {
|
|
13353
13353
|
required: true
|
|
13354
13354
|
}, "\u9879\u76EE\u540D\u79F0"),
|
|
13355
13355
|
key: 'itemName',
|
|
13356
13356
|
render: function render(_, record) {
|
|
13357
13357
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index && model !== 'prefab') {
|
|
13358
|
-
return React.createElement(Form.Item, null, React.createElement("div", {
|
|
13358
|
+
return /*#__PURE__*/React.createElement(Form.Item, null, /*#__PURE__*/React.createElement("div", {
|
|
13359
13359
|
style: {
|
|
13360
13360
|
display: 'flex'
|
|
13361
13361
|
}
|
|
@@ -13402,17 +13402,17 @@ var useColumns = (function (form) {
|
|
|
13402
13402
|
return validator;
|
|
13403
13403
|
}()
|
|
13404
13404
|
}])
|
|
13405
|
-
})(React.createElement(ItemNameInput, {
|
|
13405
|
+
})( /*#__PURE__*/React.createElement(ItemNameInput, {
|
|
13406
13406
|
editGood: editGood,
|
|
13407
13407
|
shorthand: editGood.shorthand,
|
|
13408
13408
|
onChange: function onChange() {
|
|
13409
13409
|
onChangeItemName(controller, form, record);
|
|
13410
13410
|
}
|
|
13411
|
-
})), React.createElement("div", {
|
|
13411
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
13412
13412
|
className: "kts-invoice-operate-goods-list-able-list-itemName-import"
|
|
13413
|
-
}, controller.getGoodsList && model !== 'readOnly' && React.createElement(Tooltip, {
|
|
13413
|
+
}, controller.getGoodsList && model !== 'readOnly' && /*#__PURE__*/React.createElement(Tooltip, {
|
|
13414
13414
|
title: "\u70B9\u51FB\u4ECE\u5546\u54C1\u7BA1\u7406\u4E2D\u6DFB\u52A0\u5546\u54C1\u4FE1\u606F"
|
|
13415
|
-
}, React.createElement(Button, {
|
|
13415
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
13416
13416
|
onClick: controller.pipeline( /*#__PURE__*/function () {
|
|
13417
13417
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(s) {
|
|
13418
13418
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
@@ -13437,7 +13437,7 @@ var useColumns = (function (form) {
|
|
|
13437
13437
|
icon: "plus-circle"
|
|
13438
13438
|
})))));
|
|
13439
13439
|
} else {
|
|
13440
|
-
return React.createElement(MyItemNameDiv, {
|
|
13440
|
+
return /*#__PURE__*/React.createElement(MyItemNameDiv, {
|
|
13441
13441
|
valueT: formatSearch(getItemNameWithShorthand({
|
|
13442
13442
|
shorthand: record.shorthand,
|
|
13443
13443
|
full: record.itemNameSelf || ''
|
|
@@ -13451,17 +13451,17 @@ var useColumns = (function (form) {
|
|
|
13451
13451
|
}
|
|
13452
13452
|
}
|
|
13453
13453
|
}, {
|
|
13454
|
-
title: React.createElement(TitleText, {
|
|
13454
|
+
title: /*#__PURE__*/React.createElement(TitleText, {
|
|
13455
13455
|
rules: (_columnsReplenish$ite = columnsReplenish['itemModelName']) === null || _columnsReplenish$ite === void 0 ? void 0 : _columnsReplenish$ite.rules
|
|
13456
13456
|
}, "\u89C4\u683C\u578B\u53F7"),
|
|
13457
13457
|
key: 'itemModelName',
|
|
13458
13458
|
width: 119,
|
|
13459
13459
|
render: function render(_, record) {
|
|
13460
13460
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index && model !== 'prefab') {
|
|
13461
|
-
return React.createElement(Form.Item, null, getFieldDecorator('itemModelName', {
|
|
13461
|
+
return /*#__PURE__*/React.createElement(Form.Item, null, getFieldDecorator('itemModelName', {
|
|
13462
13462
|
initialValue: isMyShow ? editGood.itemModelNameSelf : editGood.itemModelName,
|
|
13463
13463
|
rules: getReplenishRules('itemModelName')
|
|
13464
|
-
})(React.createElement(MyInput, {
|
|
13464
|
+
})( /*#__PURE__*/React.createElement(MyInput, {
|
|
13465
13465
|
onChange: function () {
|
|
13466
13466
|
var _onChange2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5() {
|
|
13467
13467
|
var key, value;
|
|
@@ -13494,7 +13494,7 @@ var useColumns = (function (form) {
|
|
|
13494
13494
|
}()
|
|
13495
13495
|
})));
|
|
13496
13496
|
} else {
|
|
13497
|
-
return React.createElement(MyItemNameDiv, {
|
|
13497
|
+
return /*#__PURE__*/React.createElement(MyItemNameDiv, {
|
|
13498
13498
|
valueT: formatSearch(record.itemModelNameSelf, searchValue),
|
|
13499
13499
|
valueF: formatSearch(record.itemModelName, searchValue),
|
|
13500
13500
|
isMyShow: isMyShow
|
|
@@ -13502,17 +13502,17 @@ var useColumns = (function (form) {
|
|
|
13502
13502
|
}
|
|
13503
13503
|
}
|
|
13504
13504
|
}, {
|
|
13505
|
-
title: React.createElement(TitleText, {
|
|
13505
|
+
title: /*#__PURE__*/React.createElement(TitleText, {
|
|
13506
13506
|
rules: (_columnsReplenish$uni = columnsReplenish['unit']) === null || _columnsReplenish$uni === void 0 ? void 0 : _columnsReplenish$uni.rules
|
|
13507
13507
|
}, "\u5355\u4F4D"),
|
|
13508
13508
|
key: 'unit',
|
|
13509
13509
|
width: 70,
|
|
13510
13510
|
render: function render(_, record) {
|
|
13511
13511
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index && model !== 'prefab') {
|
|
13512
|
-
return React.createElement(Form.Item, null, getFieldDecorator('unit', {
|
|
13512
|
+
return /*#__PURE__*/React.createElement(Form.Item, null, getFieldDecorator('unit', {
|
|
13513
13513
|
initialValue: editGood.unit,
|
|
13514
13514
|
rules: getReplenishRules('unit')
|
|
13515
|
-
})(React.createElement(AutoComplete$2, {
|
|
13515
|
+
})( /*#__PURE__*/React.createElement(AutoComplete$2, {
|
|
13516
13516
|
style: {
|
|
13517
13517
|
width: '100%'
|
|
13518
13518
|
},
|
|
@@ -13550,7 +13550,7 @@ var useColumns = (function (form) {
|
|
|
13550
13550
|
}()
|
|
13551
13551
|
})));
|
|
13552
13552
|
} else {
|
|
13553
|
-
return React.createElement("span", {
|
|
13553
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
13554
13554
|
style: {
|
|
13555
13555
|
padding: '0 10px'
|
|
13556
13556
|
}
|
|
@@ -13558,7 +13558,7 @@ var useColumns = (function (form) {
|
|
|
13558
13558
|
}
|
|
13559
13559
|
}
|
|
13560
13560
|
}, {
|
|
13561
|
-
title: React.createElement(TitleText, {
|
|
13561
|
+
title: /*#__PURE__*/React.createElement(TitleText, {
|
|
13562
13562
|
rules: (_columnsReplenish$qua = columnsReplenish['quantity']) === null || _columnsReplenish$qua === void 0 ? void 0 : _columnsReplenish$qua.rules
|
|
13563
13563
|
}, "\u6570\u91CF"),
|
|
13564
13564
|
dataIndex: 'quantity',
|
|
@@ -13567,7 +13567,7 @@ var useColumns = (function (form) {
|
|
|
13567
13567
|
width: 149,
|
|
13568
13568
|
render: function render(value, record) {
|
|
13569
13569
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index && model !== 'prefab') {
|
|
13570
|
-
return React.createElement(Form.Item, null, getFieldDecorator('quantity', {
|
|
13570
|
+
return /*#__PURE__*/React.createElement(Form.Item, null, getFieldDecorator('quantity', {
|
|
13571
13571
|
initialValue: nonScientificNotation(editGood.quantity),
|
|
13572
13572
|
getValueFromEvent: onNumberValueChange,
|
|
13573
13573
|
rules: [].concat(_toConsumableArray(getReplenishRules('quantity')), [{
|
|
@@ -13613,7 +13613,7 @@ var useColumns = (function (form) {
|
|
|
13613
13613
|
return validator;
|
|
13614
13614
|
}()
|
|
13615
13615
|
}])
|
|
13616
|
-
})(React.createElement(MyInput, {
|
|
13616
|
+
})( /*#__PURE__*/React.createElement(MyInput, {
|
|
13617
13617
|
style: {
|
|
13618
13618
|
textAlign: 'right'
|
|
13619
13619
|
},
|
|
@@ -13645,7 +13645,7 @@ var useColumns = (function (form) {
|
|
|
13645
13645
|
}()
|
|
13646
13646
|
})));
|
|
13647
13647
|
} else {
|
|
13648
|
-
return React.createElement("span", {
|
|
13648
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
13649
13649
|
style: {
|
|
13650
13650
|
padding: '0 10px'
|
|
13651
13651
|
}
|
|
@@ -13653,7 +13653,7 @@ var useColumns = (function (form) {
|
|
|
13653
13653
|
}
|
|
13654
13654
|
}
|
|
13655
13655
|
}, {
|
|
13656
|
-
title: React.createElement(TitleText, {
|
|
13656
|
+
title: /*#__PURE__*/React.createElement(TitleText, {
|
|
13657
13657
|
rules: (_columnsReplenish$pri = columnsReplenish['priceIncludeTax']) === null || _columnsReplenish$pri === void 0 ? void 0 : _columnsReplenish$pri.rules
|
|
13658
13658
|
}, "\u5355\u4EF7(\u542B\u7A0E)"),
|
|
13659
13659
|
dataIndex: 'priceIncludeTax',
|
|
@@ -13662,7 +13662,7 @@ var useColumns = (function (form) {
|
|
|
13662
13662
|
width: 149,
|
|
13663
13663
|
render: function render(value, record) {
|
|
13664
13664
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index && model !== 'prefab') {
|
|
13665
|
-
return React.createElement(Form.Item, null, getFieldDecorator('priceIncludeTax', {
|
|
13665
|
+
return /*#__PURE__*/React.createElement(Form.Item, null, getFieldDecorator('priceIncludeTax', {
|
|
13666
13666
|
initialValue: nonScientificNotation(editGood.priceIncludeTax),
|
|
13667
13667
|
getValueFromEvent: onNumberValueChange,
|
|
13668
13668
|
rules: [].concat(_toConsumableArray(getReplenishRules('priceIncludeTax')), [{
|
|
@@ -13708,7 +13708,7 @@ var useColumns = (function (form) {
|
|
|
13708
13708
|
return validator;
|
|
13709
13709
|
}()
|
|
13710
13710
|
}])
|
|
13711
|
-
})(React.createElement(MyInput, {
|
|
13711
|
+
})( /*#__PURE__*/React.createElement(MyInput, {
|
|
13712
13712
|
style: {
|
|
13713
13713
|
textAlign: 'right'
|
|
13714
13714
|
},
|
|
@@ -13720,7 +13720,7 @@ var useColumns = (function (form) {
|
|
|
13720
13720
|
}
|
|
13721
13721
|
})));
|
|
13722
13722
|
} else {
|
|
13723
|
-
return React.createElement("span", {
|
|
13723
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
13724
13724
|
style: {
|
|
13725
13725
|
padding: '0 10px'
|
|
13726
13726
|
}
|
|
@@ -13728,7 +13728,7 @@ var useColumns = (function (form) {
|
|
|
13728
13728
|
}
|
|
13729
13729
|
}
|
|
13730
13730
|
}, {
|
|
13731
|
-
title: React.createElement(TitleText, {
|
|
13731
|
+
title: /*#__PURE__*/React.createElement(TitleText, {
|
|
13732
13732
|
rules: (_columnsReplenish$pri2 = columnsReplenish['priceExcludeTax']) === null || _columnsReplenish$pri2 === void 0 ? void 0 : _columnsReplenish$pri2.rules
|
|
13733
13733
|
}, "\u5355\u4EF7(\u4E0D\u542B\u7A0E)"),
|
|
13734
13734
|
dataIndex: 'priceExcludeTax',
|
|
@@ -13737,7 +13737,7 @@ var useColumns = (function (form) {
|
|
|
13737
13737
|
width: 149,
|
|
13738
13738
|
render: function render(value, record) {
|
|
13739
13739
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index && model !== 'prefab') {
|
|
13740
|
-
return React.createElement(Form.Item, null, getFieldDecorator('priceExcludeTax', {
|
|
13740
|
+
return /*#__PURE__*/React.createElement(Form.Item, null, getFieldDecorator('priceExcludeTax', {
|
|
13741
13741
|
initialValue: nonScientificNotation(editGood.priceExcludeTax),
|
|
13742
13742
|
getValueFromEvent: onNumberValueChange,
|
|
13743
13743
|
rules: [].concat(_toConsumableArray(getReplenishRules('priceExcludeTax')), [{
|
|
@@ -13783,7 +13783,7 @@ var useColumns = (function (form) {
|
|
|
13783
13783
|
return validator;
|
|
13784
13784
|
}()
|
|
13785
13785
|
}])
|
|
13786
|
-
})(React.createElement(MyInput, {
|
|
13786
|
+
})( /*#__PURE__*/React.createElement(MyInput, {
|
|
13787
13787
|
style: {
|
|
13788
13788
|
textAlign: 'right'
|
|
13789
13789
|
},
|
|
@@ -13795,7 +13795,7 @@ var useColumns = (function (form) {
|
|
|
13795
13795
|
}
|
|
13796
13796
|
})));
|
|
13797
13797
|
} else {
|
|
13798
|
-
return React.createElement("span", {
|
|
13798
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
13799
13799
|
style: {
|
|
13800
13800
|
padding: '0 10px'
|
|
13801
13801
|
}
|
|
@@ -13803,7 +13803,7 @@ var useColumns = (function (form) {
|
|
|
13803
13803
|
}
|
|
13804
13804
|
}
|
|
13805
13805
|
}, {
|
|
13806
|
-
title: React.createElement(TitleText, {
|
|
13806
|
+
title: /*#__PURE__*/React.createElement(TitleText, {
|
|
13807
13807
|
required: true
|
|
13808
13808
|
}, "\u91D1\u989D(\u542B\u7A0E)"),
|
|
13809
13809
|
dataIndex: 'lineAmountIncludeTax',
|
|
@@ -13812,7 +13812,7 @@ var useColumns = (function (form) {
|
|
|
13812
13812
|
align: 'right',
|
|
13813
13813
|
render: function render(value, record) {
|
|
13814
13814
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index && model !== 'prefab') {
|
|
13815
|
-
return React.createElement(Form.Item, null, getFieldDecorator('lineAmountIncludeTax', {
|
|
13815
|
+
return /*#__PURE__*/React.createElement(Form.Item, null, getFieldDecorator('lineAmountIncludeTax', {
|
|
13816
13816
|
initialValue: editGood.lineAmountIncludeTax,
|
|
13817
13817
|
getValueFromEvent: onNumberValueChange,
|
|
13818
13818
|
rules: [].concat(_toConsumableArray(getReplenishRules('lineAmountIncludeTax')), [{
|
|
@@ -13872,7 +13872,7 @@ var useColumns = (function (form) {
|
|
|
13872
13872
|
return validator;
|
|
13873
13873
|
}()
|
|
13874
13874
|
}])
|
|
13875
|
-
})(React.createElement(MyInput, {
|
|
13875
|
+
})( /*#__PURE__*/React.createElement(MyInput, {
|
|
13876
13876
|
style: {
|
|
13877
13877
|
textAlign: 'right'
|
|
13878
13878
|
},
|
|
@@ -13883,7 +13883,7 @@ var useColumns = (function (form) {
|
|
|
13883
13883
|
}
|
|
13884
13884
|
})));
|
|
13885
13885
|
} else {
|
|
13886
|
-
return React.createElement("span", {
|
|
13886
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
13887
13887
|
style: {
|
|
13888
13888
|
padding: '0 10px'
|
|
13889
13889
|
}
|
|
@@ -13891,7 +13891,7 @@ var useColumns = (function (form) {
|
|
|
13891
13891
|
}
|
|
13892
13892
|
}
|
|
13893
13893
|
}, {
|
|
13894
|
-
title: React.createElement(TitleText, {
|
|
13894
|
+
title: /*#__PURE__*/React.createElement(TitleText, {
|
|
13895
13895
|
required: true
|
|
13896
13896
|
}, "\u91D1\u989D(\u4E0D\u542B\u7A0E)"),
|
|
13897
13897
|
dataIndex: 'lineAmountExcludeTax',
|
|
@@ -13900,7 +13900,7 @@ var useColumns = (function (form) {
|
|
|
13900
13900
|
width: 119,
|
|
13901
13901
|
render: function render(value, record) {
|
|
13902
13902
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index && model !== 'prefab') {
|
|
13903
|
-
return React.createElement(Form.Item, null, getFieldDecorator('lineAmountExcludeTax', {
|
|
13903
|
+
return /*#__PURE__*/React.createElement(Form.Item, null, getFieldDecorator('lineAmountExcludeTax', {
|
|
13904
13904
|
initialValue: editGood.lineAmountExcludeTax,
|
|
13905
13905
|
getValueFromEvent: onNumberValueChange,
|
|
13906
13906
|
rules: [].concat(_toConsumableArray(getReplenishRules('lineAmountExcludeTax')), [{
|
|
@@ -13935,7 +13935,7 @@ var useColumns = (function (form) {
|
|
|
13935
13935
|
return validator;
|
|
13936
13936
|
}()
|
|
13937
13937
|
}])
|
|
13938
|
-
})(React.createElement(MyInput, {
|
|
13938
|
+
})( /*#__PURE__*/React.createElement(MyInput, {
|
|
13939
13939
|
style: {
|
|
13940
13940
|
textAlign: 'right'
|
|
13941
13941
|
},
|
|
@@ -13946,7 +13946,7 @@ var useColumns = (function (form) {
|
|
|
13946
13946
|
}
|
|
13947
13947
|
})));
|
|
13948
13948
|
} else {
|
|
13949
|
-
return React.createElement("span", {
|
|
13949
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
13950
13950
|
style: {
|
|
13951
13951
|
padding: '0 10px'
|
|
13952
13952
|
}
|
|
@@ -13954,7 +13954,7 @@ var useColumns = (function (form) {
|
|
|
13954
13954
|
}
|
|
13955
13955
|
}
|
|
13956
13956
|
}, {
|
|
13957
|
-
title: React.createElement(TitleText, {
|
|
13957
|
+
title: /*#__PURE__*/React.createElement(TitleText, {
|
|
13958
13958
|
required: true
|
|
13959
13959
|
}, "\u7A0E\u7387"),
|
|
13960
13960
|
dataIndex: 'taxRate',
|
|
@@ -13963,7 +13963,7 @@ var useColumns = (function (form) {
|
|
|
13963
13963
|
width: 75,
|
|
13964
13964
|
render: function render(value, record) {
|
|
13965
13965
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index && !(model === 'prefab' && calculateType === '3')) {
|
|
13966
|
-
return React.createElement(Form.Item, null, getFieldDecorator('taxRate', {
|
|
13966
|
+
return /*#__PURE__*/React.createElement(Form.Item, null, getFieldDecorator('taxRate', {
|
|
13967
13967
|
initialValue: editGood.taxRate,
|
|
13968
13968
|
rules: [].concat(_toConsumableArray(getReplenishRules('taxRate')), [{
|
|
13969
13969
|
required: true,
|
|
@@ -13972,7 +13972,7 @@ var useColumns = (function (form) {
|
|
|
13972
13972
|
pattern: /^[+-]?(0|([1-9]\d*))(\.\d+)?$/,
|
|
13973
13973
|
message: '请选择正确税率'
|
|
13974
13974
|
}])
|
|
13975
|
-
})(React.createElement(Select, {
|
|
13975
|
+
})( /*#__PURE__*/React.createElement(Select, {
|
|
13976
13976
|
className: "kts-invoice-operate-goods-list-table-tax-rate",
|
|
13977
13977
|
dropdownMenuStyle: {
|
|
13978
13978
|
textAlign: "right"
|
|
@@ -13989,13 +13989,13 @@ var useColumns = (function (form) {
|
|
|
13989
13989
|
onChangeTaxRate(controller, form, record);
|
|
13990
13990
|
}
|
|
13991
13991
|
}, (record.goodsTaxRateList || taxRateList).map(function (e, i) {
|
|
13992
|
-
return React.createElement(Select.Option, {
|
|
13992
|
+
return /*#__PURE__*/React.createElement(Select.Option, {
|
|
13993
13993
|
key: i,
|
|
13994
13994
|
value: e
|
|
13995
13995
|
}, e, "%");
|
|
13996
13996
|
}))));
|
|
13997
13997
|
} else {
|
|
13998
|
-
return React.createElement("span", {
|
|
13998
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
13999
13999
|
style: {
|
|
14000
14000
|
padding: '0 10px'
|
|
14001
14001
|
}
|
|
@@ -14003,7 +14003,7 @@ var useColumns = (function (form) {
|
|
|
14003
14003
|
}
|
|
14004
14004
|
}
|
|
14005
14005
|
}, {
|
|
14006
|
-
title: React.createElement(TitleText, {
|
|
14006
|
+
title: /*#__PURE__*/React.createElement(TitleText, {
|
|
14007
14007
|
rules: (_columnsReplenish$tax = columnsReplenish['taxAmount']) === null || _columnsReplenish$tax === void 0 ? void 0 : _columnsReplenish$tax.rules
|
|
14008
14008
|
}, "\u7A0E\u989D"),
|
|
14009
14009
|
dataIndex: 'taxAmount',
|
|
@@ -14015,11 +14015,11 @@ var useColumns = (function (form) {
|
|
|
14015
14015
|
return getFieldDecorator('taxAmount', {
|
|
14016
14016
|
initialValue: editGood.taxAmount,
|
|
14017
14017
|
rules: getReplenishRules('taxAmount')
|
|
14018
|
-
})(React.createElement(MyDiv, {
|
|
14018
|
+
})( /*#__PURE__*/React.createElement(MyDiv, {
|
|
14019
14019
|
loading: isCipher(changeField, 'taxAmount')
|
|
14020
14020
|
}));
|
|
14021
14021
|
} else {
|
|
14022
|
-
return React.createElement("span", {
|
|
14022
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
14023
14023
|
style: {
|
|
14024
14024
|
padding: '0 10px'
|
|
14025
14025
|
}
|
|
@@ -14034,42 +14034,42 @@ var useColumns = (function (form) {
|
|
|
14034
14034
|
render: function render(e) {
|
|
14035
14035
|
switch (e) {
|
|
14036
14036
|
case LineAttributeType$1.折扣行:
|
|
14037
|
-
return React.createElement("span", {
|
|
14037
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
14038
14038
|
style: {
|
|
14039
14039
|
padding: '0 10px'
|
|
14040
14040
|
}
|
|
14041
14041
|
}, "\u6298\u6263\u884C");
|
|
14042
14042
|
|
|
14043
14043
|
case LineAttributeType$1.被折扣行:
|
|
14044
|
-
return React.createElement("span", {
|
|
14044
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
14045
14045
|
style: {
|
|
14046
14046
|
padding: '0 10px'
|
|
14047
14047
|
}
|
|
14048
14048
|
}, "\u88AB\u6298\u6263\u884C");
|
|
14049
14049
|
|
|
14050
14050
|
case LineAttributeType$1.赠品行:
|
|
14051
|
-
return React.createElement("span", {
|
|
14051
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
14052
14052
|
style: {
|
|
14053
14053
|
padding: '0 10px'
|
|
14054
14054
|
}
|
|
14055
14055
|
}, "\u8D60\u54C1\u884C");
|
|
14056
14056
|
|
|
14057
14057
|
case LineAttributeType$1.折让行:
|
|
14058
|
-
return React.createElement("span", {
|
|
14058
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
14059
14059
|
style: {
|
|
14060
14060
|
padding: '0 10px'
|
|
14061
14061
|
}
|
|
14062
14062
|
}, "\u6298\u8BA9\u884C");
|
|
14063
14063
|
|
|
14064
14064
|
case LineAttributeType$1.正常:
|
|
14065
|
-
return React.createElement("span", {
|
|
14065
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
14066
14066
|
style: {
|
|
14067
14067
|
padding: '0 10px'
|
|
14068
14068
|
}
|
|
14069
14069
|
}, "\u6B63\u5E38\u884C");
|
|
14070
14070
|
|
|
14071
14071
|
default:
|
|
14072
|
-
return React.createElement("span", {
|
|
14072
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
14073
14073
|
style: {
|
|
14074
14074
|
padding: '0 10px'
|
|
14075
14075
|
}
|
|
@@ -14083,7 +14083,7 @@ var useColumns = (function (form) {
|
|
|
14083
14083
|
width: 130,
|
|
14084
14084
|
fixed: 'right',
|
|
14085
14085
|
render: function render(_value, record) {
|
|
14086
|
-
return React.createElement(RowMenu, {
|
|
14086
|
+
return /*#__PURE__*/React.createElement(RowMenu, {
|
|
14087
14087
|
key: record.lineAttribute,
|
|
14088
14088
|
goods: record
|
|
14089
14089
|
});
|
|
@@ -14143,13 +14143,13 @@ var MyInput = /*#__PURE__*/function (_React$Component) {
|
|
|
14143
14143
|
key: "render",
|
|
14144
14144
|
value: function render() {
|
|
14145
14145
|
if (this.props.loading) {
|
|
14146
|
-
return React.createElement(Spin, {
|
|
14146
|
+
return /*#__PURE__*/React.createElement(Spin, {
|
|
14147
14147
|
size: "small"
|
|
14148
|
-
}, React.createElement(Input, _objectSpread2(_objectSpread2({}, this.props), {}, {
|
|
14148
|
+
}, /*#__PURE__*/React.createElement(Input, _objectSpread2(_objectSpread2({}, this.props), {}, {
|
|
14149
14149
|
autoComplete: "off"
|
|
14150
14150
|
})));
|
|
14151
14151
|
} else {
|
|
14152
|
-
return React.createElement(Input, _objectSpread2(_objectSpread2({}, this.props), {}, {
|
|
14152
|
+
return /*#__PURE__*/React.createElement(Input, _objectSpread2(_objectSpread2({}, this.props), {}, {
|
|
14153
14153
|
autoComplete: "off"
|
|
14154
14154
|
}));
|
|
14155
14155
|
}
|
|
@@ -14174,15 +14174,15 @@ var MyDiv = /*#__PURE__*/function (_React$Component2) {
|
|
|
14174
14174
|
key: "render",
|
|
14175
14175
|
value: function render() {
|
|
14176
14176
|
if (this.props.loading) {
|
|
14177
|
-
return React.createElement(Spin, {
|
|
14177
|
+
return /*#__PURE__*/React.createElement(Spin, {
|
|
14178
14178
|
size: "small"
|
|
14179
|
-
}, React.createElement("span", {
|
|
14179
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
14180
14180
|
style: {
|
|
14181
14181
|
padding: '0 10px'
|
|
14182
14182
|
}
|
|
14183
14183
|
}, this.props.value));
|
|
14184
14184
|
} else {
|
|
14185
|
-
return React.createElement("span", {
|
|
14185
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
14186
14186
|
style: {
|
|
14187
14187
|
padding: '0 10px'
|
|
14188
14188
|
}
|
|
@@ -14215,9 +14215,9 @@ var MyItemNameDiv = /*#__PURE__*/function (_React$Component3) {
|
|
|
14215
14215
|
|
|
14216
14216
|
if (isMyShow) {
|
|
14217
14217
|
if (valueT) {
|
|
14218
|
-
return React.createElement(Tooltip, {
|
|
14218
|
+
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
14219
14219
|
title: valueT
|
|
14220
|
-
}, React.createElement("span", {
|
|
14220
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
14221
14221
|
style: {
|
|
14222
14222
|
padding: '0 10px',
|
|
14223
14223
|
color: '#0074ff',
|
|
@@ -14228,9 +14228,9 @@ var MyItemNameDiv = /*#__PURE__*/function (_React$Component3) {
|
|
|
14228
14228
|
}
|
|
14229
14229
|
}, valueT));
|
|
14230
14230
|
} else {
|
|
14231
|
-
return React.createElement(Tooltip, {
|
|
14231
|
+
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
14232
14232
|
title: valueF
|
|
14233
|
-
}, React.createElement("span", {
|
|
14233
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
14234
14234
|
style: {
|
|
14235
14235
|
padding: '0 10px',
|
|
14236
14236
|
display: 'block',
|
|
@@ -14242,9 +14242,9 @@ var MyItemNameDiv = /*#__PURE__*/function (_React$Component3) {
|
|
|
14242
14242
|
}
|
|
14243
14243
|
} else {
|
|
14244
14244
|
if (valueF) {
|
|
14245
|
-
return React.createElement(Tooltip, {
|
|
14245
|
+
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
14246
14246
|
title: valueF
|
|
14247
|
-
}, React.createElement("span", {
|
|
14247
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
14248
14248
|
style: {
|
|
14249
14249
|
padding: '0 10px',
|
|
14250
14250
|
display: 'block',
|
|
@@ -14254,9 +14254,9 @@ var MyItemNameDiv = /*#__PURE__*/function (_React$Component3) {
|
|
|
14254
14254
|
}
|
|
14255
14255
|
}, valueF));
|
|
14256
14256
|
} else {
|
|
14257
|
-
return React.createElement(Tooltip, {
|
|
14257
|
+
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
14258
14258
|
title: valueT
|
|
14259
|
-
}, React.createElement("span", {
|
|
14259
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
14260
14260
|
style: {
|
|
14261
14261
|
padding: '0 10px',
|
|
14262
14262
|
color: '#0074ff',
|
|
@@ -14283,7 +14283,7 @@ function formatSearch(value, search) {
|
|
|
14283
14283
|
return dcoding(e);
|
|
14284
14284
|
}).join("<span class=\"kts-invoice-operate-goods-list-table-search-protrude\" >".concat(search, "</span>"));
|
|
14285
14285
|
|
|
14286
|
-
return React.createElement("span", {
|
|
14286
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
14287
14287
|
dangerouslySetInnerHTML: {
|
|
14288
14288
|
__html: __html
|
|
14289
14289
|
}
|
|
@@ -14738,7 +14738,7 @@ var useRowSelection = (function () {
|
|
|
14738
14738
|
};
|
|
14739
14739
|
}(), [controller]);
|
|
14740
14740
|
var columnTitle = React.useMemo(function () {
|
|
14741
|
-
return React.createElement(Checkbox, {
|
|
14741
|
+
return /*#__PURE__*/React.createElement(Checkbox, {
|
|
14742
14742
|
onChange: onClickSelectAll,
|
|
14743
14743
|
indeterminate: indeterminate,
|
|
14744
14744
|
checked: isAll
|
|
@@ -14948,16 +14948,16 @@ var useEndowCodeButton = (function () {
|
|
|
14948
14948
|
}, _callee2);
|
|
14949
14949
|
})), [controller]);
|
|
14950
14950
|
var menuItem = React.useMemo(function () {
|
|
14951
|
-
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
14952
|
-
return React.createElement(Menu.Item, {
|
|
14951
|
+
if (model === 'readOnly') return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
14952
|
+
return /*#__PURE__*/React.createElement(Menu.Item, {
|
|
14953
14953
|
key: "2",
|
|
14954
14954
|
onClick: onClick,
|
|
14955
14955
|
disabled: disabled
|
|
14956
14956
|
}, "\u6279\u91CF\u8D4B\u7801");
|
|
14957
14957
|
}, [onClick, disabled, model]);
|
|
14958
14958
|
var button = React.useMemo(function () {
|
|
14959
|
-
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
14960
|
-
return React.createElement(Button, {
|
|
14959
|
+
if (model === 'readOnly') return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
14960
|
+
return /*#__PURE__*/React.createElement(Button, {
|
|
14961
14961
|
onClick: onClick,
|
|
14962
14962
|
disabled: disabled
|
|
14963
14963
|
}, "\u6279\u91CF\u8D4B\u7801");
|
|
@@ -15023,19 +15023,19 @@ var useDelRowButton = (function () {
|
|
|
15023
15023
|
}())();
|
|
15024
15024
|
}, [controller]);
|
|
15025
15025
|
var menuItem = React.useMemo(function () {
|
|
15026
|
-
if (model === 'prefab') return React.createElement(React.Fragment, null);
|
|
15027
|
-
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
15028
|
-
return React.createElement(Menu.Item, {
|
|
15026
|
+
if (model === 'prefab') return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
15027
|
+
if (model === 'readOnly') return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
15028
|
+
return /*#__PURE__*/React.createElement(Menu.Item, {
|
|
15029
15029
|
key: "1",
|
|
15030
15030
|
onClick: onClick,
|
|
15031
15031
|
disabled: disabled
|
|
15032
15032
|
}, " \u5220\u9664\u884C ");
|
|
15033
15033
|
}, [model, onClick, disabled]);
|
|
15034
15034
|
var button = React.useMemo(function () {
|
|
15035
|
-
if (isRemRow === false) return React.createElement(React.Fragment, null);
|
|
15036
|
-
if (model === 'prefab') return React.createElement(React.Fragment, null);
|
|
15037
|
-
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
15038
|
-
return React.createElement(Button, {
|
|
15035
|
+
if (isRemRow === false) return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
15036
|
+
if (model === 'prefab') return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
15037
|
+
if (model === 'readOnly') return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
15038
|
+
return /*#__PURE__*/React.createElement(Button, {
|
|
15039
15039
|
onClick: onClick,
|
|
15040
15040
|
disabled: disabled
|
|
15041
15041
|
}, "\u6279\u91CF\u5220\u9664");
|
|
@@ -15230,14 +15230,14 @@ var useAddDiscountRowButton = (function () {
|
|
|
15230
15230
|
}, _callee3);
|
|
15231
15231
|
})), [controller]);
|
|
15232
15232
|
var menuItem = React.useMemo(function () {
|
|
15233
|
-
return model === 'prefab' ? React.createElement(React.Fragment, null) : isAddDiscount !== false ? React.createElement(Menu.Item, {
|
|
15233
|
+
return model === 'prefab' ? /*#__PURE__*/React.createElement(React.Fragment, null) : isAddDiscount !== false ? /*#__PURE__*/React.createElement(Menu.Item, {
|
|
15234
15234
|
key: "0",
|
|
15235
15235
|
onClick: onClick,
|
|
15236
15236
|
disabled: disabled
|
|
15237
15237
|
}, "\u6DFB\u52A0\u6298\u6263\u884C") : undefined;
|
|
15238
15238
|
}, [isAddDiscount, disabled, onClick]);
|
|
15239
15239
|
var drawer = React.useMemo(function () {
|
|
15240
|
-
return React.createElement(Drawer, {
|
|
15240
|
+
return /*#__PURE__*/React.createElement(Drawer, {
|
|
15241
15241
|
className: "kts-invoice-operate-goods-list-add-discount-row",
|
|
15242
15242
|
width: 540,
|
|
15243
15243
|
title: "\u6DFB\u52A0\u6298\u6263\u884C",
|
|
@@ -15245,7 +15245,7 @@ var useAddDiscountRowButton = (function () {
|
|
|
15245
15245
|
destroyOnClose: true,
|
|
15246
15246
|
onClose: onClose,
|
|
15247
15247
|
visible: visible
|
|
15248
|
-
}, React.createElement(DrawerBody, null));
|
|
15248
|
+
}, /*#__PURE__*/React.createElement(DrawerBody, null));
|
|
15249
15249
|
}, [visible, onClose]);
|
|
15250
15250
|
return {
|
|
15251
15251
|
menuItem: menuItem,
|
|
@@ -15362,13 +15362,13 @@ var DrawerBody = decorator(Form.create())(function (props) {
|
|
|
15362
15362
|
});
|
|
15363
15363
|
});
|
|
15364
15364
|
}, 300), [form, lineAmountSum]);
|
|
15365
|
-
return React.createElement(React.Fragment, null, React.createElement("div", {
|
|
15365
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
15366
15366
|
className: "add-discount-row-body"
|
|
15367
|
-
}, React.createElement("p", null, "\u5F53\u524D\u9009\u62E9", React.createElement(Text$3, {
|
|
15367
|
+
}, /*#__PURE__*/React.createElement("p", null, "\u5F53\u524D\u9009\u62E9", /*#__PURE__*/React.createElement(Text$3, {
|
|
15368
15368
|
type: "danger"
|
|
15369
|
-
}, discountGoodIndex.length), "\u884C\u88AB\u6298\u6263\u5546\u54C1\u884C\uFF0C\u91D1\u989D\u5408\u8BA1\xA5", React.createElement(Text$3, {
|
|
15369
|
+
}, discountGoodIndex.length), "\u884C\u88AB\u6298\u6263\u5546\u54C1\u884C\uFF0C\u91D1\u989D\u5408\u8BA1\xA5", /*#__PURE__*/React.createElement(Text$3, {
|
|
15370
15370
|
type: "danger"
|
|
15371
|
-
}, lineAmountSum.toFixed(2))), React.createElement(Form.Item, {
|
|
15371
|
+
}, lineAmountSum.toFixed(2))), /*#__PURE__*/React.createElement(Form.Item, {
|
|
15372
15372
|
label: "\u6298\u6263\u7387\uFF1A"
|
|
15373
15373
|
}, getFieldDecorator('discount', {
|
|
15374
15374
|
rules: [{
|
|
@@ -15398,11 +15398,11 @@ var DrawerBody = decorator(Form.create())(function (props) {
|
|
|
15398
15398
|
callback();
|
|
15399
15399
|
}
|
|
15400
15400
|
}]
|
|
15401
|
-
})(React.createElement(Input, {
|
|
15401
|
+
})( /*#__PURE__*/React.createElement(Input, {
|
|
15402
15402
|
placeholder: "\u8BF7\u8F93\u5165\u5927\u4E8E0\u5C0F\u4E8E100\u7684\u6570\u5B57",
|
|
15403
15403
|
suffix: "%",
|
|
15404
15404
|
onChange: onChangeDiscount
|
|
15405
|
-
}))), React.createElement(Form.Item, {
|
|
15405
|
+
}))), /*#__PURE__*/React.createElement(Form.Item, {
|
|
15406
15406
|
label: "\u6298\u6263\u91D1\u989D\uFF1A"
|
|
15407
15407
|
}, getFieldDecorator('discolineAmountunt', {
|
|
15408
15408
|
rules: [{
|
|
@@ -15432,19 +15432,19 @@ var DrawerBody = decorator(Form.create())(function (props) {
|
|
|
15432
15432
|
callback();
|
|
15433
15433
|
}
|
|
15434
15434
|
}]
|
|
15435
|
-
})(React.createElement(Input, {
|
|
15435
|
+
})( /*#__PURE__*/React.createElement(Input, {
|
|
15436
15436
|
placeholder: "\u8BF7\u8F93\u5165\u5927\u4E8E0\u5C0F\u4E8E\u91D1\u989D\u5408\u8BA1\u7684\u6570\u5B57",
|
|
15437
15437
|
suffix: "\xA5",
|
|
15438
15438
|
onChange: onChangeDiscolineAmountunt
|
|
15439
|
-
})))), React.createElement("div", {
|
|
15439
|
+
})))), /*#__PURE__*/React.createElement("div", {
|
|
15440
15440
|
className: "add-discount-row-footer"
|
|
15441
|
-
}, React.createElement(Button, {
|
|
15441
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
15442
15442
|
block: true,
|
|
15443
15443
|
style: {
|
|
15444
15444
|
marginBottom: 12
|
|
15445
15445
|
},
|
|
15446
15446
|
onClick: onClose
|
|
15447
|
-
}, "\u53D6\u6D88"), React.createElement(Button, {
|
|
15447
|
+
}, "\u53D6\u6D88"), /*#__PURE__*/React.createElement(Button, {
|
|
15448
15448
|
type: "primary",
|
|
15449
15449
|
block: true,
|
|
15450
15450
|
onClick: onClickSave
|
|
@@ -15541,13 +15541,13 @@ function useMergeDetails() {
|
|
|
15541
15541
|
}];
|
|
15542
15542
|
}, [selectedGoodIndex, onClickManual, onClickAuto]);
|
|
15543
15543
|
var button = React.useMemo(function () {
|
|
15544
|
-
if (!isMergeDetails) return React.createElement(React.Fragment, null);
|
|
15545
|
-
return React.createElement(Dropdown$1, {
|
|
15544
|
+
if (!isMergeDetails) return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
15545
|
+
return /*#__PURE__*/React.createElement(Dropdown$1, {
|
|
15546
15546
|
menu: {
|
|
15547
15547
|
items: items
|
|
15548
15548
|
},
|
|
15549
15549
|
trigger: ['click']
|
|
15550
|
-
}, React.createElement(Button, null, "\u5408\u5E76\u660E\u7EC6"));
|
|
15550
|
+
}, /*#__PURE__*/React.createElement(Button, null, "\u5408\u5E76\u660E\u7EC6"));
|
|
15551
15551
|
}, [selectedGoodIndex.length, isMergeDetails]);
|
|
15552
15552
|
return {
|
|
15553
15553
|
/** 按钮 */
|
|
@@ -15633,8 +15633,8 @@ function useMergeDiscount() {
|
|
|
15633
15633
|
}, _callee);
|
|
15634
15634
|
})), [controller]);
|
|
15635
15635
|
var button = React.useMemo(function () {
|
|
15636
|
-
if (!isMergeDiscount) return React.createElement(React.Fragment, null);
|
|
15637
|
-
return React.createElement(Button, {
|
|
15636
|
+
if (!isMergeDiscount) return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
15637
|
+
return /*#__PURE__*/React.createElement(Button, {
|
|
15638
15638
|
onClick: onClick,
|
|
15639
15639
|
disabled: goodsList.length <= 1
|
|
15640
15640
|
}, "\u5408\u5E76\u6298\u6263");
|
|
@@ -15812,8 +15812,8 @@ function useSalesDiscount() {
|
|
|
15812
15812
|
}).length <= 0;
|
|
15813
15813
|
}, [goodsList]);
|
|
15814
15814
|
var button = React.useMemo(function () {
|
|
15815
|
-
if (!isSalesDiscount) return React.createElement(React.Fragment, null);
|
|
15816
|
-
return React.createElement(Button, {
|
|
15815
|
+
if (!isSalesDiscount) return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
15816
|
+
return /*#__PURE__*/React.createElement(Button, {
|
|
15817
15817
|
onClick: onClick,
|
|
15818
15818
|
disabled: disabled
|
|
15819
15819
|
}, "\u9500\u552E\u6298\u8BA9");
|
|
@@ -16016,12 +16016,12 @@ function useSalesGifts() {
|
|
|
16016
16016
|
}, [selectedGoodIndex, onClickManual, onClickAuto]);
|
|
16017
16017
|
var button = React.useMemo(function () {
|
|
16018
16018
|
if (!isSalesGifts) return;
|
|
16019
|
-
return React.createElement(Dropdown$1, {
|
|
16019
|
+
return /*#__PURE__*/React.createElement(Dropdown$1, {
|
|
16020
16020
|
menu: {
|
|
16021
16021
|
items: items
|
|
16022
16022
|
},
|
|
16023
16023
|
trigger: ['click']
|
|
16024
|
-
}, React.createElement(Button, null, "\u9500\u552E\u8D60\u54C1"));
|
|
16024
|
+
}, /*#__PURE__*/React.createElement(Button, null, "\u9500\u552E\u8D60\u54C1"));
|
|
16025
16025
|
}, [items, isSalesGifts]);
|
|
16026
16026
|
return {
|
|
16027
16027
|
/** 按钮 */
|
|
@@ -16059,7 +16059,7 @@ var GoodsList = /*#__PURE__*/function (_React$Component) {
|
|
|
16059
16059
|
_createClass(GoodsList, [{
|
|
16060
16060
|
key: "render",
|
|
16061
16061
|
value: function render() {
|
|
16062
|
-
return React.createElement(Main, _objectSpread2({}, this.props));
|
|
16062
|
+
return /*#__PURE__*/React.createElement(Main, _objectSpread2({}, this.props));
|
|
16063
16063
|
}
|
|
16064
16064
|
}]);
|
|
16065
16065
|
|
|
@@ -16261,22 +16261,22 @@ var Main = decorator(Form.create())(function (props) {
|
|
|
16261
16261
|
};
|
|
16262
16262
|
}())();
|
|
16263
16263
|
}, [controller, props.isSwitchTax]);
|
|
16264
|
-
return React.createElement("div", {
|
|
16264
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
16265
16265
|
className: "kts-invoice-operate-goods-list",
|
|
16266
16266
|
onClick: function onClick(e) {
|
|
16267
16267
|
e.stopPropagation();
|
|
16268
16268
|
}
|
|
16269
|
-
}, React.createElement("div", {
|
|
16269
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
16270
16270
|
className: "kts-invoice-operate-goods-list-able"
|
|
16271
|
-
}, React.createElement("div", {
|
|
16271
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
16272
16272
|
className: "kts-invoice-operate-goods-list-able-list"
|
|
16273
|
-
}, 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", {
|
|
16273
|
+
}, /*#__PURE__*/React.createElement(AddRowButton, null), endowCodeButton.button, delRowButton.button, mergeDetails.button, mergeDiscount.button, addDiscountRowButton.drawer, salesDiscount.button, salesGifts.button, /*#__PURE__*/React.createElement(Search, null)), /*#__PURE__*/React.createElement("div", {
|
|
16274
16274
|
className: "kts-invoice-operate-goods-list-able-extend"
|
|
16275
|
-
}, props.menuExpansion, React.createElement(DescribeSwitch, null), React.createElement(TaxIncludedSwitch, null))), React.createElement("div", {
|
|
16275
|
+
}, props.menuExpansion, /*#__PURE__*/React.createElement(DescribeSwitch, null), /*#__PURE__*/React.createElement(TaxIncludedSwitch, null))), /*#__PURE__*/React.createElement("div", {
|
|
16276
16276
|
className: classNames('kts-invoice-operate-goods-list-table', {
|
|
16277
16277
|
'kts-invoice-operate-prefab': isprefab
|
|
16278
16278
|
})
|
|
16279
|
-
}, React.createElement(TableVirtual, {
|
|
16279
|
+
}, /*#__PURE__*/React.createElement(TableVirtual, {
|
|
16280
16280
|
bordered: true,
|
|
16281
16281
|
size: "small",
|
|
16282
16282
|
rowKey: "$index",
|
|
@@ -16299,7 +16299,7 @@ var Main = decorator(Form.create())(function (props) {
|
|
|
16299
16299
|
}
|
|
16300
16300
|
};
|
|
16301
16301
|
}
|
|
16302
|
-
})), React.createElement("div", null, React.createElement(Statistics, null)));
|
|
16302
|
+
})), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Statistics, null)));
|
|
16303
16303
|
});
|
|
16304
16304
|
|
|
16305
16305
|
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";
|
|
@@ -16324,7 +16324,7 @@ var Buyer = /*#__PURE__*/function (_React$Component) {
|
|
|
16324
16324
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
16325
16325
|
|
|
16326
16326
|
_this.render = function () {
|
|
16327
|
-
return React.createElement(Main$1, _objectSpread2({}, _this.props));
|
|
16327
|
+
return /*#__PURE__*/React.createElement(Main$1, _objectSpread2({}, _this.props));
|
|
16328
16328
|
};
|
|
16329
16329
|
|
|
16330
16330
|
return _this;
|
|
@@ -16355,7 +16355,7 @@ var Main$1 = decorator(Form.create())(function (props) {
|
|
|
16355
16355
|
return [{
|
|
16356
16356
|
id: 'sellerName',
|
|
16357
16357
|
label: '销售方名称',
|
|
16358
|
-
node: React.createElement(Input, {
|
|
16358
|
+
node: /*#__PURE__*/React.createElement(Input, {
|
|
16359
16359
|
readOnly: model === 'prefab',
|
|
16360
16360
|
size: "small"
|
|
16361
16361
|
}),
|
|
@@ -16368,7 +16368,7 @@ var Main$1 = decorator(Form.create())(function (props) {
|
|
|
16368
16368
|
}, {
|
|
16369
16369
|
id: 'sellerNo',
|
|
16370
16370
|
label: '销售方纳税人识别号',
|
|
16371
|
-
node: React.createElement(Input, {
|
|
16371
|
+
node: /*#__PURE__*/React.createElement(Input, {
|
|
16372
16372
|
readOnly: model === 'prefab',
|
|
16373
16373
|
size: "small"
|
|
16374
16374
|
}),
|
|
@@ -16381,7 +16381,7 @@ var Main$1 = decorator(Form.create())(function (props) {
|
|
|
16381
16381
|
}, {
|
|
16382
16382
|
id: 'sellerAddress',
|
|
16383
16383
|
label: '销售方地址及电话',
|
|
16384
|
-
node: React.createElement(Input, {
|
|
16384
|
+
node: /*#__PURE__*/React.createElement(Input, {
|
|
16385
16385
|
readOnly: model === 'prefab',
|
|
16386
16386
|
size: "small"
|
|
16387
16387
|
}),
|
|
@@ -16394,7 +16394,7 @@ var Main$1 = decorator(Form.create())(function (props) {
|
|
|
16394
16394
|
}, {
|
|
16395
16395
|
id: 'sellerBank',
|
|
16396
16396
|
label: '销售方开户行及账号',
|
|
16397
|
-
node: React.createElement(Input, {
|
|
16397
|
+
node: /*#__PURE__*/React.createElement(Input, {
|
|
16398
16398
|
readOnly: model === 'prefab',
|
|
16399
16399
|
size: "small"
|
|
16400
16400
|
}),
|
|
@@ -16420,31 +16420,31 @@ var Main$1 = decorator(Form.create())(function (props) {
|
|
|
16420
16420
|
return getFieldDecorator(e.id, e.options)(e.node);
|
|
16421
16421
|
}
|
|
16422
16422
|
}, [props.formRender]);
|
|
16423
|
-
return React.createElement(Form, null, React.createElement("div", {
|
|
16423
|
+
return /*#__PURE__*/React.createElement(Form, null, /*#__PURE__*/React.createElement("div", {
|
|
16424
16424
|
className: "kts-invoice-operate-seller"
|
|
16425
|
-
}, React.createElement("div", {
|
|
16425
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
16426
16426
|
className: "kts-invoice-operate-seller-message"
|
|
16427
|
-
}, React.createElement("div", {
|
|
16427
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
16428
16428
|
className: "kts-invoice-operate-seller-title"
|
|
16429
|
-
}, React.createElement("label", null, "\u9500\u552E\u65B9")), React.createElement(Descriptions, {
|
|
16429
|
+
}, /*#__PURE__*/React.createElement("label", null, "\u9500\u552E\u65B9")), /*#__PURE__*/React.createElement(Descriptions, {
|
|
16430
16430
|
className: "kts-invoice-operate-seller-message-list",
|
|
16431
16431
|
size: "small",
|
|
16432
16432
|
column: 1,
|
|
16433
16433
|
bordered: true
|
|
16434
16434
|
}, formItem.map(function (e, i) {
|
|
16435
|
-
return React.createElement(Descriptions.Item, {
|
|
16435
|
+
return /*#__PURE__*/React.createElement(Descriptions.Item, {
|
|
16436
16436
|
key: i,
|
|
16437
16437
|
label: e.label
|
|
16438
|
-
}, React.createElement(Form.Item, null, createFormItem(e)));
|
|
16439
|
-
}))), React.createElement("div", {
|
|
16438
|
+
}, /*#__PURE__*/React.createElement(Form.Item, null, createFormItem(e)));
|
|
16439
|
+
}))), /*#__PURE__*/React.createElement("div", {
|
|
16440
16440
|
className: "kts-invoice-operate-seller-remarks"
|
|
16441
|
-
}, React.createElement("div", {
|
|
16441
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
16442
16442
|
className: "kts-invoice-operate-seller-title"
|
|
16443
|
-
}, React.createElement("label", null, "\u5907\u6CE8")), React.createElement("div", {
|
|
16443
|
+
}, /*#__PURE__*/React.createElement("label", null, "\u5907\u6CE8")), /*#__PURE__*/React.createElement("div", {
|
|
16444
16444
|
className: "kts-invoice-operate-seller-remarks-value"
|
|
16445
16445
|
}, getFieldDecorator('remarks', {
|
|
16446
16446
|
initialValue: props.defaultsellerRemarks
|
|
16447
|
-
})(React.createElement(TextArea, null))))));
|
|
16447
|
+
})( /*#__PURE__*/React.createElement(TextArea, null))))));
|
|
16448
16448
|
});
|
|
16449
16449
|
|
|
16450
16450
|
var ImportBuyerButton = (function () {
|
|
@@ -16471,7 +16471,7 @@ var ImportBuyerButton = (function () {
|
|
|
16471
16471
|
};
|
|
16472
16472
|
}())();
|
|
16473
16473
|
}, [controller]);
|
|
16474
|
-
return React.createElement(React.Fragment, null, controller.getBuyerList && React.createElement(Button, {
|
|
16474
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, controller.getBuyerList && /*#__PURE__*/React.createElement(Button, {
|
|
16475
16475
|
type: "link",
|
|
16476
16476
|
icon: "plus-circle",
|
|
16477
16477
|
onClick: onClick
|
|
@@ -16510,29 +16510,29 @@ var BuyerNameInput = (function (props) {
|
|
|
16510
16510
|
var content = React.useMemo(function () {
|
|
16511
16511
|
var _dataSource$recent;
|
|
16512
16512
|
|
|
16513
|
-
return React.createElement("div", {
|
|
16513
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
16514
16514
|
className: 'kts-invoice-operate-buyer-name-content'
|
|
16515
|
-
}, loading ? React.createElement("div", {
|
|
16515
|
+
}, loading ? /*#__PURE__*/React.createElement("div", {
|
|
16516
16516
|
style: {
|
|
16517
16517
|
textAlign: 'center'
|
|
16518
16518
|
}
|
|
16519
|
-
}, React.createElement(Spin, null)) : React.createElement(React.Fragment, null, React.createElement("div", {
|
|
16519
|
+
}, /*#__PURE__*/React.createElement(Spin, null)) : /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
16520
16520
|
className: 'kts-invoice-operate-buyer-name-content-block',
|
|
16521
16521
|
style: {
|
|
16522
16522
|
padding: '14px 10px'
|
|
16523
16523
|
}
|
|
16524
|
-
}, React.createElement("label", {
|
|
16524
|
+
}, /*#__PURE__*/React.createElement("label", {
|
|
16525
16525
|
style: {
|
|
16526
16526
|
marginBottom: 10
|
|
16527
16527
|
}
|
|
16528
|
-
}, "\u6700\u8FD1\u5F00\u5177"), React.createElement("ul", {
|
|
16528
|
+
}, "\u6700\u8FD1\u5F00\u5177"), /*#__PURE__*/React.createElement("ul", {
|
|
16529
16529
|
className: 'kts-invoice-operate-buyer-name-content-recently-issued'
|
|
16530
|
-
}, !dataSource.recent || dataSource.recent.length <= 0 ? React.createElement(Empty, {
|
|
16530
|
+
}, !dataSource.recent || dataSource.recent.length <= 0 ? /*#__PURE__*/React.createElement(Empty, {
|
|
16531
16531
|
image: Empty.PRESENTED_IMAGE_SIMPLE
|
|
16532
16532
|
}) : (_dataSource$recent = dataSource.recent) === null || _dataSource$recent === void 0 ? void 0 : _dataSource$recent.map(function (e, i) {
|
|
16533
16533
|
var _dataSource$recent$le, _dataSource$recent2;
|
|
16534
16534
|
|
|
16535
|
-
return React.createElement("li", {
|
|
16535
|
+
return /*#__PURE__*/React.createElement("li", {
|
|
16536
16536
|
key: i,
|
|
16537
16537
|
onClick: function onClick() {
|
|
16538
16538
|
onClickItem(e);
|
|
@@ -16540,37 +16540,37 @@ var BuyerNameInput = (function (props) {
|
|
|
16540
16540
|
style: {
|
|
16541
16541
|
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)
|
|
16542
16542
|
}
|
|
16543
|
-
}, React.createElement(MyTag, null, e.buyerName));
|
|
16544
|
-
}))), React.createElement(Divider, {
|
|
16543
|
+
}, /*#__PURE__*/React.createElement(MyTag, null, e.buyerName));
|
|
16544
|
+
}))), /*#__PURE__*/React.createElement(Divider, {
|
|
16545
16545
|
style: {
|
|
16546
16546
|
margin: "0 6px"
|
|
16547
16547
|
}
|
|
16548
|
-
}), React.createElement("div", {
|
|
16548
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
16549
16549
|
className: 'kts-invoice-operate-buyer-name-content-block',
|
|
16550
16550
|
style: {
|
|
16551
16551
|
padding: '14px 10px 4px'
|
|
16552
16552
|
}
|
|
16553
|
-
}, React.createElement("label", {
|
|
16553
|
+
}, /*#__PURE__*/React.createElement("label", {
|
|
16554
16554
|
style: {
|
|
16555
16555
|
padding: '0 10px'
|
|
16556
16556
|
}
|
|
16557
|
-
}, "\u9009\u62E9\u516C\u53F8"), React.createElement("div", {
|
|
16557
|
+
}, "\u9009\u62E9\u516C\u53F8"), /*#__PURE__*/React.createElement("div", {
|
|
16558
16558
|
style: {
|
|
16559
16559
|
maxHeight: 200,
|
|
16560
16560
|
overflow: "auto"
|
|
16561
16561
|
}
|
|
16562
|
-
}, !dataSource.list || dataSource.list.length <= 0 ? React.createElement(Empty, {
|
|
16562
|
+
}, !dataSource.list || dataSource.list.length <= 0 ? /*#__PURE__*/React.createElement(Empty, {
|
|
16563
16563
|
image: Empty.PRESENTED_IMAGE_SIMPLE
|
|
16564
16564
|
}) : dataSource.list.map(function (e, i) {
|
|
16565
|
-
return React.createElement("ul", {
|
|
16565
|
+
return /*#__PURE__*/React.createElement("ul", {
|
|
16566
16566
|
key: i,
|
|
16567
16567
|
onClick: function onClick() {
|
|
16568
16568
|
onClickItem(e);
|
|
16569
16569
|
},
|
|
16570
16570
|
className: 'kts-invoice-operate-buyer-name-content-select-company'
|
|
16571
|
-
}, React.createElement("li", {
|
|
16571
|
+
}, /*#__PURE__*/React.createElement("li", {
|
|
16572
16572
|
title: e.buyerName
|
|
16573
|
-
}, e.buyerName), React.createElement("li", {
|
|
16573
|
+
}, e.buyerName), /*#__PURE__*/React.createElement("li", {
|
|
16574
16574
|
title: e.buyerNo
|
|
16575
16575
|
}, e.buyerNo));
|
|
16576
16576
|
})))));
|
|
@@ -16611,7 +16611,7 @@ var BuyerNameInput = (function (props) {
|
|
|
16611
16611
|
}, [visible, props.value]);
|
|
16612
16612
|
|
|
16613
16613
|
if (model === 'prefab' || !autoContainer) {
|
|
16614
|
-
return React.createElement(Input, {
|
|
16614
|
+
return /*#__PURE__*/React.createElement(Input, {
|
|
16615
16615
|
size: "small",
|
|
16616
16616
|
autoComplete: "off",
|
|
16617
16617
|
value: props.value,
|
|
@@ -16622,14 +16622,14 @@ var BuyerNameInput = (function (props) {
|
|
|
16622
16622
|
});
|
|
16623
16623
|
}
|
|
16624
16624
|
|
|
16625
|
-
return React.createElement(Popover$1, {
|
|
16625
|
+
return /*#__PURE__*/React.createElement(Popover$1, {
|
|
16626
16626
|
onVisibleChange: setVisible,
|
|
16627
16627
|
overlayClassName: 'kts-invoice-operate-buyer-name-popover',
|
|
16628
16628
|
placement: "bottomLeft",
|
|
16629
16629
|
trigger: "click",
|
|
16630
16630
|
visible: visible,
|
|
16631
16631
|
content: content
|
|
16632
|
-
}, React.createElement(Input, {
|
|
16632
|
+
}, /*#__PURE__*/React.createElement(Input, {
|
|
16633
16633
|
size: "small",
|
|
16634
16634
|
autoComplete: "off",
|
|
16635
16635
|
value: props.value,
|
|
@@ -16707,7 +16707,7 @@ function useDataSource() {
|
|
|
16707
16707
|
}
|
|
16708
16708
|
|
|
16709
16709
|
function MyTag(props) {
|
|
16710
|
-
return React.createElement("span", {
|
|
16710
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
16711
16711
|
className: 'kts-invoice-operate-buyer-name-content-tag',
|
|
16712
16712
|
title: props.children
|
|
16713
16713
|
}, props.children);
|
|
@@ -16743,7 +16743,7 @@ var Buyer$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
16743
16743
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
16744
16744
|
|
|
16745
16745
|
_this.render = function () {
|
|
16746
|
-
return React.createElement(Main$2, _objectSpread2({}, _this.props));
|
|
16746
|
+
return /*#__PURE__*/React.createElement(Main$2, _objectSpread2({}, _this.props));
|
|
16747
16747
|
};
|
|
16748
16748
|
|
|
16749
16749
|
return _this;
|
|
@@ -16774,7 +16774,7 @@ var Main$2 = decorator(Form.create())(function (props) {
|
|
|
16774
16774
|
return [{
|
|
16775
16775
|
id: 'buyerName',
|
|
16776
16776
|
label: '购买方名称',
|
|
16777
|
-
node: React.createElement(Input, {
|
|
16777
|
+
node: /*#__PURE__*/React.createElement(Input, {
|
|
16778
16778
|
size: "small",
|
|
16779
16779
|
autoComplete: "off",
|
|
16780
16780
|
readOnly: model === 'prefab'
|
|
@@ -16788,7 +16788,7 @@ var Main$2 = decorator(Form.create())(function (props) {
|
|
|
16788
16788
|
}, {
|
|
16789
16789
|
id: 'buyerNo',
|
|
16790
16790
|
label: '购买方纳税人识别号',
|
|
16791
|
-
node: React.createElement(Input, {
|
|
16791
|
+
node: /*#__PURE__*/React.createElement(Input, {
|
|
16792
16792
|
size: "small",
|
|
16793
16793
|
autoComplete: "off",
|
|
16794
16794
|
readOnly: model === 'prefab'
|
|
@@ -16802,7 +16802,7 @@ var Main$2 = decorator(Form.create())(function (props) {
|
|
|
16802
16802
|
}, {
|
|
16803
16803
|
id: 'buyerAddress',
|
|
16804
16804
|
label: '购买方地址及电话',
|
|
16805
|
-
node: React.createElement(Input, {
|
|
16805
|
+
node: /*#__PURE__*/React.createElement(Input, {
|
|
16806
16806
|
size: "small",
|
|
16807
16807
|
autoComplete: "off",
|
|
16808
16808
|
readOnly: model === 'prefab'
|
|
@@ -16816,7 +16816,7 @@ var Main$2 = decorator(Form.create())(function (props) {
|
|
|
16816
16816
|
}, {
|
|
16817
16817
|
id: 'buyerBank',
|
|
16818
16818
|
label: '购买方开户行及账号',
|
|
16819
|
-
node: React.createElement(Input, {
|
|
16819
|
+
node: /*#__PURE__*/React.createElement(Input, {
|
|
16820
16820
|
size: "small",
|
|
16821
16821
|
autoComplete: "off",
|
|
16822
16822
|
readOnly: model === 'prefab'
|
|
@@ -16838,7 +16838,7 @@ var Main$2 = decorator(Form.create())(function (props) {
|
|
|
16838
16838
|
if (e.options.rules.some(function (e) {
|
|
16839
16839
|
return e.required;
|
|
16840
16840
|
})) {
|
|
16841
|
-
return React.createElement(React.Fragment, null, React.createElement(Text$4, {
|
|
16841
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Text$4, {
|
|
16842
16842
|
type: "danger"
|
|
16843
16843
|
}, "*"), e.label);
|
|
16844
16844
|
} else {
|
|
@@ -16848,29 +16848,29 @@ var Main$2 = decorator(Form.create())(function (props) {
|
|
|
16848
16848
|
return e.label;
|
|
16849
16849
|
}
|
|
16850
16850
|
}, []);
|
|
16851
|
-
return React.createElement(Form, null, React.createElement("div", {
|
|
16851
|
+
return /*#__PURE__*/React.createElement(Form, null, /*#__PURE__*/React.createElement("div", {
|
|
16852
16852
|
className: "kts-invoice-operate-buyer"
|
|
16853
|
-
}, React.createElement("div", {
|
|
16853
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
16854
16854
|
className: "kts-invoice-operate-buyer-message"
|
|
16855
|
-
}, React.createElement("div", {
|
|
16855
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
16856
16856
|
className: "kts-invoice-operate-buyer-title"
|
|
16857
|
-
}, React.createElement("label", null, "\u8D2D\u4E70\u65B9")), React.createElement("div", {
|
|
16857
|
+
}, /*#__PURE__*/React.createElement("label", null, "\u8D2D\u4E70\u65B9")), /*#__PURE__*/React.createElement("div", {
|
|
16858
16858
|
className: "kts-invoice-operate-buyer-message-Import"
|
|
16859
|
-
}, model !== 'prefab' && React.createElement(ImportBuyerButton, null)), React.createElement(Descriptions, {
|
|
16859
|
+
}, model !== 'prefab' && /*#__PURE__*/React.createElement(ImportBuyerButton, null)), /*#__PURE__*/React.createElement(Descriptions, {
|
|
16860
16860
|
className: "kts-invoice-operate-buyer-message-list",
|
|
16861
16861
|
size: "small",
|
|
16862
16862
|
column: 1,
|
|
16863
16863
|
bordered: true
|
|
16864
16864
|
}, formItem.map(function (item, i) {
|
|
16865
|
-
return React.createElement(Descriptions.Item, {
|
|
16865
|
+
return /*#__PURE__*/React.createElement(Descriptions.Item, {
|
|
16866
16866
|
key: i,
|
|
16867
16867
|
label: getlabel(item)
|
|
16868
|
-
}, React.createElement(Form.Item, null, getFieldDecorator(item.id, item.options)(autoContainer ? item.id === 'buyerName' ? React.createElement(BuyerNameInput, null) : item.node : item.node)));
|
|
16869
|
-
}))), React.createElement("div", {
|
|
16868
|
+
}, /*#__PURE__*/React.createElement(Form.Item, null, getFieldDecorator(item.id, item.options)(autoContainer ? item.id === 'buyerName' ? /*#__PURE__*/React.createElement(BuyerNameInput, null) : item.node : item.node)));
|
|
16869
|
+
}))), /*#__PURE__*/React.createElement("div", {
|
|
16870
16870
|
className: "kts-invoice-operate-buyer-password"
|
|
16871
|
-
}, React.createElement("div", {
|
|
16871
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
16872
16872
|
className: "kts-invoice-operate-buyer-title"
|
|
16873
|
-
}, React.createElement("label", null, "\u5BC6\u7801\u533A")), React.createElement("div", null))));
|
|
16873
|
+
}, /*#__PURE__*/React.createElement("label", null, "\u5BC6\u7801\u533A")), /*#__PURE__*/React.createElement("div", null))));
|
|
16874
16874
|
});
|
|
16875
16875
|
|
|
16876
16876
|
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";
|
|
@@ -16887,21 +16887,21 @@ var Sign = decorator(Form.create())(function (props) {
|
|
|
16887
16887
|
}, []); // 注册 form
|
|
16888
16888
|
|
|
16889
16889
|
controller.useForm('sign', form);
|
|
16890
|
-
return React.createElement("div", {
|
|
16890
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
16891
16891
|
className: "kts-invoice-operate-sign"
|
|
16892
|
-
}, React.createElement(Form, _objectSpread2({}, formItemLayout), React.createElement("div", null, React.createElement(Form.Item, {
|
|
16892
|
+
}, /*#__PURE__*/React.createElement(Form, _objectSpread2({}, formItemLayout), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Form.Item, {
|
|
16893
16893
|
label: "\u6536\u6B3E\u4EBA"
|
|
16894
16894
|
}, getFieldDecorator('payee', {
|
|
16895
16895
|
initialValue: props.defaultPayee
|
|
16896
|
-
})(React.createElement(Input, {
|
|
16896
|
+
})( /*#__PURE__*/React.createElement(Input, {
|
|
16897
16897
|
size: "small"
|
|
16898
|
-
})))), React.createElement("div", null, React.createElement(Form.Item, {
|
|
16898
|
+
})))), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Form.Item, {
|
|
16899
16899
|
label: "\u590D\u6838\u4EBA"
|
|
16900
16900
|
}, getFieldDecorator('reviewer', {
|
|
16901
16901
|
initialValue: props.defaultReviewer
|
|
16902
|
-
})(React.createElement(Input, {
|
|
16902
|
+
})( /*#__PURE__*/React.createElement(Input, {
|
|
16903
16903
|
size: "small"
|
|
16904
|
-
})))), React.createElement("div", null, React.createElement(Form.Item, {
|
|
16904
|
+
})))), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Form.Item, {
|
|
16905
16905
|
label: "\u5F00\u7968\u4EBA"
|
|
16906
16906
|
}, getFieldDecorator('issuer', {
|
|
16907
16907
|
initialValue: props.defaultIssuer,
|
|
@@ -16909,7 +16909,7 @@ var Sign = decorator(Form.create())(function (props) {
|
|
|
16909
16909
|
required: true,
|
|
16910
16910
|
message: '请输入开票人'
|
|
16911
16911
|
}]
|
|
16912
|
-
})(React.createElement(Input, {
|
|
16912
|
+
})( /*#__PURE__*/React.createElement(Input, {
|
|
16913
16913
|
size: "small"
|
|
16914
16914
|
}))))));
|
|
16915
16915
|
});
|
|
@@ -16938,21 +16938,21 @@ var InvoiceHeaderDigtal = decorator(Form.create())(function (props) {
|
|
|
16938
16938
|
return '电子发票(增值税专用发票)';
|
|
16939
16939
|
}, [props.title]);
|
|
16940
16940
|
controller.useForm('invoiceHeader', form);
|
|
16941
|
-
return React.createElement("div", {
|
|
16941
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
16942
16942
|
className: "kts-invoice-operate-invoice-digtal-header"
|
|
16943
|
-
}, React.createElement("div", {
|
|
16943
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
16944
16944
|
className: "digtal-header-title"
|
|
16945
16945
|
}, title), form.getFieldDecorator('tag', {
|
|
16946
16946
|
initialValue: props.defaultTag
|
|
16947
|
-
})(React.createElement(Tag, null)), React.createElement("div", {
|
|
16947
|
+
})( /*#__PURE__*/React.createElement(Tag, null)), /*#__PURE__*/React.createElement("div", {
|
|
16948
16948
|
className: "digtal-header-fields"
|
|
16949
16949
|
}, form.getFieldDecorator('no', {
|
|
16950
16950
|
initialValue: props.defaultNo
|
|
16951
|
-
})(React.createElement(Field, {
|
|
16951
|
+
})( /*#__PURE__*/React.createElement(Field, {
|
|
16952
16952
|
title: "\u53D1\u7968\u53F7\u7801\uFF1A"
|
|
16953
16953
|
})), form.getFieldDecorator('invoicingDate', {
|
|
16954
16954
|
initialValue: props.defaultInvoicingDate
|
|
16955
|
-
})(React.createElement(Field, {
|
|
16955
|
+
})( /*#__PURE__*/React.createElement(Field, {
|
|
16956
16956
|
title: "\u5F00\u7968\u65E5\u671F\uFF1A"
|
|
16957
16957
|
}))));
|
|
16958
16958
|
});
|
|
@@ -16977,15 +16977,15 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
16977
16977
|
value = _this$props.value;
|
|
16978
16978
|
|
|
16979
16979
|
if (value) {
|
|
16980
|
-
return React.createElement("div", {
|
|
16980
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
16981
16981
|
className: "digtal-header-field"
|
|
16982
|
-
}, React.createElement("div", {
|
|
16982
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
16983
16983
|
className: "digtal-header-field-title"
|
|
16984
|
-
}, title), React.createElement("div", {
|
|
16984
|
+
}, title), /*#__PURE__*/React.createElement("div", {
|
|
16985
16985
|
className: "digtal-header-field-value"
|
|
16986
16986
|
}, value));
|
|
16987
16987
|
} else {
|
|
16988
|
-
return React.createElement(React.Fragment, null);
|
|
16988
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
16989
16989
|
}
|
|
16990
16990
|
}
|
|
16991
16991
|
}]);
|
|
@@ -17007,9 +17007,9 @@ var Tag = /*#__PURE__*/function (_React$Component2) {
|
|
|
17007
17007
|
_createClass(Tag, [{
|
|
17008
17008
|
key: "render",
|
|
17009
17009
|
value: function render() {
|
|
17010
|
-
return this.props.value ? React.createElement("div", {
|
|
17010
|
+
return this.props.value ? /*#__PURE__*/React.createElement("div", {
|
|
17011
17011
|
className: "digtal-header-tag"
|
|
17012
|
-
}, this.props.value) : React.createElement(React.Fragment, null);
|
|
17012
|
+
}, this.props.value) : /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
17013
17013
|
}
|
|
17014
17014
|
}]);
|
|
17015
17015
|
|
|
@@ -17189,59 +17189,59 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
17189
17189
|
React.useEffect(function () {
|
|
17190
17190
|
setExpand(typeof props.isExpand === 'boolean' ? props.isExpand : true);
|
|
17191
17191
|
}, [props.isExpand]);
|
|
17192
|
-
return React.createElement("div", {
|
|
17192
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
17193
17193
|
className: classNames("kts-invoice-operate-invoice-digtal-stakeholder", {
|
|
17194
17194
|
readOnly: readOnly
|
|
17195
17195
|
})
|
|
17196
|
-
}, React.createElement("div", null, '购买方信息'.split('').map(function (e) {
|
|
17197
|
-
return React.createElement("span", null, e);
|
|
17198
|
-
}), !readOnly && React.createElement(Icon, {
|
|
17196
|
+
}, /*#__PURE__*/React.createElement("div", null, '购买方信息'.split('').map(function (e) {
|
|
17197
|
+
return /*#__PURE__*/React.createElement("span", null, e);
|
|
17198
|
+
}), !readOnly && /*#__PURE__*/React.createElement(Icon, {
|
|
17199
17199
|
className: "digtal-stakeholder-expand-button",
|
|
17200
17200
|
component: isExpand ? SvgArrowUp : SvgArrowDown,
|
|
17201
17201
|
onClick: onExpand
|
|
17202
|
-
})), React.createElement("div", null, React.createElement("div", {
|
|
17202
|
+
})), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
|
|
17203
17203
|
style: {
|
|
17204
17204
|
marginTop: 20
|
|
17205
17205
|
},
|
|
17206
17206
|
className: 'natural-person-flag'
|
|
17207
|
-
}, props.isNaturalPerson === true && React.createElement(Form.Item, {
|
|
17207
|
+
}, props.isNaturalPerson === true && /*#__PURE__*/React.createElement(Form.Item, {
|
|
17208
17208
|
colon: false
|
|
17209
|
-
}, getFieldDecorator('naturalPersonFlag', {})(React.createElement(NaturalPersonFlag, {
|
|
17209
|
+
}, getFieldDecorator('naturalPersonFlag', {})( /*#__PURE__*/React.createElement(NaturalPersonFlag, {
|
|
17210
17210
|
readOnly: isReadOnly('naturalPersonFlag')
|
|
17211
|
-
})))), React.createElement(Form, {
|
|
17211
|
+
})))), /*#__PURE__*/React.createElement(Form, {
|
|
17212
17212
|
className: "digtal-stakeholder-form"
|
|
17213
|
-
}, React.createElement(Row, {
|
|
17213
|
+
}, /*#__PURE__*/React.createElement(Row, {
|
|
17214
17214
|
gutter: [16, 0]
|
|
17215
|
-
}, React.createElement(Col, {
|
|
17215
|
+
}, /*#__PURE__*/React.createElement(Col, {
|
|
17216
17216
|
span: 24
|
|
17217
|
-
}, React.createElement(Form.Item, {
|
|
17217
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
17218
17218
|
label: "\u540D\u79F0",
|
|
17219
17219
|
colon: false
|
|
17220
17220
|
}, getFieldDecorator('buyerName', {
|
|
17221
17221
|
rules: getRules('buyerName', RULES.companyName('购买方名称'))
|
|
17222
|
-
})(React.createElement(BuyerNameInput$1, {
|
|
17222
|
+
})( /*#__PURE__*/React.createElement(BuyerNameInput$1, {
|
|
17223
17223
|
myform: form,
|
|
17224
17224
|
fieldName: 'buyerName',
|
|
17225
17225
|
readOnly: isReadOnly('buyerName'),
|
|
17226
17226
|
placeholder: "\u8BF7\u8F93\u5165\u540D\u79F0",
|
|
17227
17227
|
autoComplete: "off",
|
|
17228
|
-
suffix: isShowImportButton === true && React.createElement(Button$1, {
|
|
17228
|
+
suffix: isShowImportButton === true && /*#__PURE__*/React.createElement(Button$1, {
|
|
17229
17229
|
type: 'link',
|
|
17230
17230
|
style: {
|
|
17231
17231
|
padding: 0,
|
|
17232
17232
|
width: 20,
|
|
17233
17233
|
height: '100%'
|
|
17234
17234
|
},
|
|
17235
|
-
icon: React.createElement(Icon, {
|
|
17235
|
+
icon: /*#__PURE__*/React.createElement(Icon, {
|
|
17236
17236
|
component: SvgPlus
|
|
17237
17237
|
}),
|
|
17238
17238
|
onClick: function onClick() {
|
|
17239
17239
|
onClickImportButton && onClickImportButton(controller);
|
|
17240
17240
|
}
|
|
17241
17241
|
})
|
|
17242
|
-
})))), React.createElement(Col, {
|
|
17242
|
+
})))), /*#__PURE__*/React.createElement(Col, {
|
|
17243
17243
|
span: 24
|
|
17244
|
-
}, React.createElement(Form.Item, {
|
|
17244
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
17245
17245
|
label: "\u7EDF\u4E00\u793E\u4F1A\u4FE1\u7528\u4EE3\u7801/\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7",
|
|
17246
17246
|
colon: false
|
|
17247
17247
|
}, getFieldDecorator('buyerTaxId', {
|
|
@@ -17249,18 +17249,18 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
17249
17249
|
required: !isVatNormal,
|
|
17250
17250
|
message: '购买方纳税人识别号必填'
|
|
17251
17251
|
}].concat(_toConsumableArray(RULES.taxId('购买方纳税人识别号'))))
|
|
17252
|
-
})(React.createElement(BuyerNameInput$1, {
|
|
17252
|
+
})( /*#__PURE__*/React.createElement(BuyerNameInput$1, {
|
|
17253
17253
|
myform: form,
|
|
17254
17254
|
fieldName: 'buyerTaxId',
|
|
17255
17255
|
readOnly: isReadOnly('buyerTaxId'),
|
|
17256
17256
|
placeholder: "\u8BF7\u8F93\u5165\u7EDF\u4E00\u793E\u4F1A\u4FE1\u7528\u4EE3\u7801/\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7",
|
|
17257
17257
|
autoComplete: "off"
|
|
17258
|
-
})))), React.createElement(Col, {
|
|
17258
|
+
})))), /*#__PURE__*/React.createElement(Col, {
|
|
17259
17259
|
span: 14,
|
|
17260
17260
|
style: {
|
|
17261
17261
|
display: isExpand ? undefined : 'none'
|
|
17262
17262
|
}
|
|
17263
|
-
}, React.createElement(Form.Item, {
|
|
17263
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
17264
17264
|
label: "\u8D2D\u4E70\u65B9\u5730\u5740",
|
|
17265
17265
|
colon: false
|
|
17266
17266
|
}, getFieldDecorator('buyerAddress', {
|
|
@@ -17268,90 +17268,90 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
17268
17268
|
max: 100,
|
|
17269
17269
|
message: '购买方地址内容超长'
|
|
17270
17270
|
}])
|
|
17271
|
-
})(React.createElement(MyInput$1, {
|
|
17271
|
+
})( /*#__PURE__*/React.createElement(MyInput$1, {
|
|
17272
17272
|
readOnly: isReadOnly('buyerAddress'),
|
|
17273
17273
|
placeholder: "\u8BF7\u8F93\u5165\u8D2D\u4E70\u65B9\u5730\u5740",
|
|
17274
17274
|
autoComplete: "off"
|
|
17275
|
-
})))), React.createElement(Col, {
|
|
17275
|
+
})))), /*#__PURE__*/React.createElement(Col, {
|
|
17276
17276
|
span: 10,
|
|
17277
17277
|
style: {
|
|
17278
17278
|
display: isExpand ? undefined : 'none'
|
|
17279
17279
|
}
|
|
17280
|
-
}, React.createElement(Form.Item, {
|
|
17280
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
17281
17281
|
label: "\u7535\u8BDD",
|
|
17282
17282
|
colon: false,
|
|
17283
17283
|
className: 'telephone'
|
|
17284
17284
|
}, getFieldDecorator('buyerPhone', {
|
|
17285
17285
|
rules: getRules('buyerPhone', RULES.buyerTelPhone('购买方电话'))
|
|
17286
|
-
})(React.createElement(MyInput$1, {
|
|
17286
|
+
})( /*#__PURE__*/React.createElement(MyInput$1, {
|
|
17287
17287
|
readOnly: isReadOnly('buyerPhone'),
|
|
17288
17288
|
placeholder: "\u8BF7\u8F93\u5165\u7535\u8BDD",
|
|
17289
17289
|
autoComplete: "off"
|
|
17290
|
-
})))), React.createElement(Col, {
|
|
17290
|
+
})))), /*#__PURE__*/React.createElement(Col, {
|
|
17291
17291
|
span: 14,
|
|
17292
17292
|
style: {
|
|
17293
17293
|
display: isExpand ? undefined : 'none'
|
|
17294
17294
|
}
|
|
17295
|
-
}, React.createElement(Form.Item, {
|
|
17295
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
17296
17296
|
label: "\u8D2D\u4E70\u65B9\u5F00\u6237\u94F6\u884C",
|
|
17297
17297
|
colon: false
|
|
17298
17298
|
}, getFieldDecorator('buyerBank', {
|
|
17299
17299
|
rules: getRules('buyerBank', RULES.bankName('购买方开户银行'))
|
|
17300
|
-
})(React.createElement(MyInput$1, {
|
|
17300
|
+
})( /*#__PURE__*/React.createElement(MyInput$1, {
|
|
17301
17301
|
readOnly: isReadOnly('buyerBank'),
|
|
17302
17302
|
placeholder: "\u8BF7\u8F93\u5165\u8D2D\u4E70\u65B9\u5F00\u6237\u94F6\u884C",
|
|
17303
17303
|
autoComplete: "off"
|
|
17304
|
-
})))), React.createElement(Col, {
|
|
17304
|
+
})))), /*#__PURE__*/React.createElement(Col, {
|
|
17305
17305
|
span: 10,
|
|
17306
17306
|
style: {
|
|
17307
17307
|
display: isExpand ? undefined : 'none'
|
|
17308
17308
|
}
|
|
17309
|
-
}, React.createElement(Form.Item, {
|
|
17309
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
17310
17310
|
label: "\u94F6\u884C\u8D26\u53F7",
|
|
17311
17311
|
colon: false
|
|
17312
17312
|
}, getFieldDecorator('buyerAccount', {
|
|
17313
17313
|
rules: getRules('buyerAccount', RULES.bankAccount('购买方银行账号'))
|
|
17314
|
-
})(React.createElement(MyInput$1, {
|
|
17314
|
+
})( /*#__PURE__*/React.createElement(MyInput$1, {
|
|
17315
17315
|
readOnly: isReadOnly('buyerAccount'),
|
|
17316
17316
|
placeholder: "\u8BF7\u8F93\u5165\u94F6\u884C\u8D26\u53F7",
|
|
17317
17317
|
autoComplete: "off"
|
|
17318
|
-
}))))))), React.createElement("div", null, '销售方信息'.split('').map(function (e) {
|
|
17319
|
-
return React.createElement("span", null, e);
|
|
17320
|
-
}), !readOnly && React.createElement(Icon, {
|
|
17318
|
+
}))))))), /*#__PURE__*/React.createElement("div", null, '销售方信息'.split('').map(function (e) {
|
|
17319
|
+
return /*#__PURE__*/React.createElement("span", null, e);
|
|
17320
|
+
}), !readOnly && /*#__PURE__*/React.createElement(Icon, {
|
|
17321
17321
|
className: "digtal-stakeholder-expand-button",
|
|
17322
17322
|
component: isExpand ? SvgArrowUp : SvgArrowDown,
|
|
17323
17323
|
onClick: onExpand
|
|
17324
|
-
})), React.createElement("div", null, !readOnly && props.lineCredit && React.createElement("div", {
|
|
17324
|
+
})), /*#__PURE__*/React.createElement("div", null, !readOnly && props.lineCredit && /*#__PURE__*/React.createElement("div", {
|
|
17325
17325
|
style: {
|
|
17326
17326
|
marginTop: 20
|
|
17327
17327
|
}
|
|
17328
|
-
}, React.createElement(Tooltip$1, {
|
|
17328
|
+
}, /*#__PURE__*/React.createElement(Tooltip$1, {
|
|
17329
17329
|
trigger: "click",
|
|
17330
17330
|
title: props.lineCredit
|
|
17331
|
-
}, React.createElement(Button$1, {
|
|
17331
|
+
}, /*#__PURE__*/React.createElement(Button$1, {
|
|
17332
17332
|
type: "link",
|
|
17333
17333
|
style: {
|
|
17334
17334
|
padding: "0px 8px"
|
|
17335
17335
|
}
|
|
17336
|
-
}, "\u67E5\u770B\u5F53\u524D\u53EF\u7528\u6388\u4FE1\u989D\u5EA6"))), React.createElement(Form, {
|
|
17336
|
+
}, "\u67E5\u770B\u5F53\u524D\u53EF\u7528\u6388\u4FE1\u989D\u5EA6"))), /*#__PURE__*/React.createElement(Form, {
|
|
17337
17337
|
className: "digtal-stakeholder-form"
|
|
17338
|
-
}, React.createElement(Row, {
|
|
17338
|
+
}, /*#__PURE__*/React.createElement(Row, {
|
|
17339
17339
|
gutter: [16, 0]
|
|
17340
|
-
}, React.createElement(Col, {
|
|
17340
|
+
}, /*#__PURE__*/React.createElement(Col, {
|
|
17341
17341
|
span: 24
|
|
17342
|
-
}, React.createElement(Form.Item, {
|
|
17342
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
17343
17343
|
label: "\u540D\u79F0",
|
|
17344
17344
|
colon: false
|
|
17345
17345
|
}, getFieldDecorator('supplierName', {
|
|
17346
17346
|
rules: getRules('supplierName', RULES.companyName('销售方名称')),
|
|
17347
17347
|
getValueFromEvent: formatCompanyName
|
|
17348
|
-
})(React.createElement(MyInput$1, {
|
|
17348
|
+
})( /*#__PURE__*/React.createElement(MyInput$1, {
|
|
17349
17349
|
readOnly: isReadOnly('supplierName'),
|
|
17350
17350
|
placeholder: "\u8BF7\u8F93\u5165\u540D\u79F0",
|
|
17351
17351
|
autoComplete: "off"
|
|
17352
|
-
})))), React.createElement(Col, {
|
|
17352
|
+
})))), /*#__PURE__*/React.createElement(Col, {
|
|
17353
17353
|
span: 24
|
|
17354
|
-
}, React.createElement(Form.Item, {
|
|
17354
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
17355
17355
|
label: "\u7EDF\u4E00\u793E\u4F1A\u4FE1\u7528\u4EE3\u7801/\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7",
|
|
17356
17356
|
colon: false
|
|
17357
17357
|
}, getFieldDecorator('supplierTaxId', {
|
|
@@ -17359,16 +17359,16 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
17359
17359
|
required: true,
|
|
17360
17360
|
message: '销售方纳税人识别号必填'
|
|
17361
17361
|
}].concat(_toConsumableArray(RULES.taxId('销售方纳税人识别号'))))
|
|
17362
|
-
})(React.createElement(MyInput$1, {
|
|
17362
|
+
})( /*#__PURE__*/React.createElement(MyInput$1, {
|
|
17363
17363
|
readOnly: isReadOnly('supplierTaxId'),
|
|
17364
17364
|
placeholder: "\u8BF7\u8F93\u5165\u7EDF\u4E00\u793E\u4F1A\u4FE1\u7528\u4EE3\u7801/\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7",
|
|
17365
17365
|
autoComplete: "off"
|
|
17366
|
-
})))), React.createElement(Col, {
|
|
17366
|
+
})))), /*#__PURE__*/React.createElement(Col, {
|
|
17367
17367
|
span: 12,
|
|
17368
17368
|
style: {
|
|
17369
17369
|
display: isExpand ? undefined : 'none'
|
|
17370
17370
|
}
|
|
17371
|
-
}, React.createElement(Form.Item, {
|
|
17371
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
17372
17372
|
label: "\u9500\u552E\u65B9\u5730\u5740",
|
|
17373
17373
|
colon: false
|
|
17374
17374
|
}, getFieldDecorator('sellerAddress', {
|
|
@@ -17376,50 +17376,50 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
17376
17376
|
max: 300,
|
|
17377
17377
|
message: '销售方地址内容超长'
|
|
17378
17378
|
}])
|
|
17379
|
-
})(React.createElement(MyInput$1, {
|
|
17379
|
+
})( /*#__PURE__*/React.createElement(MyInput$1, {
|
|
17380
17380
|
readOnly: isReadOnly('sellerAddress'),
|
|
17381
17381
|
placeholder: "\u8BF7\u8F93\u5165\u9500\u552E\u65B9\u5730\u5740",
|
|
17382
17382
|
autoComplete: "off"
|
|
17383
|
-
})))), React.createElement(Col, {
|
|
17383
|
+
})))), /*#__PURE__*/React.createElement(Col, {
|
|
17384
17384
|
span: 12,
|
|
17385
17385
|
style: {
|
|
17386
17386
|
display: isExpand ? undefined : 'none'
|
|
17387
17387
|
}
|
|
17388
|
-
}, React.createElement(Form.Item, {
|
|
17388
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
17389
17389
|
label: "\u7535\u8BDD",
|
|
17390
17390
|
colon: false,
|
|
17391
17391
|
className: 'telephone'
|
|
17392
17392
|
}, getFieldDecorator('sellerPhone', {
|
|
17393
17393
|
rules: getRules('sellerPhone', RULES.sellerTelPhone('销售方电话'))
|
|
17394
|
-
})(React.createElement(MyInput$1, {
|
|
17394
|
+
})( /*#__PURE__*/React.createElement(MyInput$1, {
|
|
17395
17395
|
readOnly: isReadOnly('sellerPhone'),
|
|
17396
17396
|
placeholder: "\u8BF7\u8F93\u5165\u7535\u8BDD",
|
|
17397
17397
|
autoComplete: "off"
|
|
17398
|
-
})))), React.createElement(Col, {
|
|
17398
|
+
})))), /*#__PURE__*/React.createElement(Col, {
|
|
17399
17399
|
span: 12,
|
|
17400
17400
|
style: {
|
|
17401
17401
|
display: isExpand ? undefined : 'none'
|
|
17402
17402
|
}
|
|
17403
|
-
}, React.createElement(Form.Item, {
|
|
17403
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
17404
17404
|
label: "\u9500\u552E\u65B9\u5F00\u6237\u94F6\u884C",
|
|
17405
17405
|
colon: false
|
|
17406
17406
|
}, getFieldDecorator('sellerBank', {
|
|
17407
17407
|
rules: getRules('sellerBank', RULES.bankName('销售方开户银行'))
|
|
17408
|
-
})(React.createElement(MyInput$1, {
|
|
17408
|
+
})( /*#__PURE__*/React.createElement(MyInput$1, {
|
|
17409
17409
|
readOnly: isReadOnly('sellerBank'),
|
|
17410
17410
|
placeholder: "\u8BF7\u8F93\u5165\u9500\u552E\u65B9\u5F00\u6237\u94F6\u884C",
|
|
17411
17411
|
autoComplete: "off"
|
|
17412
|
-
})))), React.createElement(Col, {
|
|
17412
|
+
})))), /*#__PURE__*/React.createElement(Col, {
|
|
17413
17413
|
span: 12,
|
|
17414
17414
|
style: {
|
|
17415
17415
|
display: isExpand ? undefined : 'none'
|
|
17416
17416
|
}
|
|
17417
|
-
}, React.createElement(Form.Item, {
|
|
17417
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
17418
17418
|
label: "\u94F6\u884C\u8D26\u53F7",
|
|
17419
17419
|
colon: false
|
|
17420
17420
|
}, getFieldDecorator('sellerAccount', {
|
|
17421
17421
|
rules: getRules('sellerAccount', RULES.bankAccount('销售方银行账号'))
|
|
17422
|
-
})(React.createElement(MyInput$1, {
|
|
17422
|
+
})( /*#__PURE__*/React.createElement(MyInput$1, {
|
|
17423
17423
|
readOnly: isReadOnly('sellerAccount'),
|
|
17424
17424
|
placeholder: "\u8BF7\u8F93\u5165\u94F6\u884C\u8D26\u53F7",
|
|
17425
17425
|
autoComplete: "off"
|
|
@@ -17440,7 +17440,7 @@ function NaturalPersonFlag(props) {
|
|
|
17440
17440
|
React.useEffect(function () {
|
|
17441
17441
|
setValue(props.value || 'COMPANY');
|
|
17442
17442
|
}, [props.value]);
|
|
17443
|
-
return React.createElement(Checkbox$1, {
|
|
17443
|
+
return /*#__PURE__*/React.createElement(Checkbox$1, {
|
|
17444
17444
|
disabled: props.readOnly,
|
|
17445
17445
|
checked: value === 'NATURAL',
|
|
17446
17446
|
onChange: onChange
|
|
@@ -17546,10 +17546,10 @@ function BuyerNameInput$1(props) {
|
|
|
17546
17546
|
return _ref.apply(this, arguments);
|
|
17547
17547
|
};
|
|
17548
17548
|
}(), [autoComplete.onBuyerNameSearch, fieldName]);
|
|
17549
|
-
if (props.readOnly) return React.createElement("span", {
|
|
17549
|
+
if (props.readOnly) return /*#__PURE__*/React.createElement("span", {
|
|
17550
17550
|
className: 'digtal-stakeholder-form-text'
|
|
17551
17551
|
}, props.value);
|
|
17552
|
-
return React.createElement(AutoComplete$1, {
|
|
17552
|
+
return /*#__PURE__*/React.createElement(AutoComplete$1, {
|
|
17553
17553
|
onSearch: onSearch,
|
|
17554
17554
|
options: options.map(function (e) {
|
|
17555
17555
|
return {
|
|
@@ -17564,7 +17564,7 @@ function BuyerNameInput$1(props) {
|
|
|
17564
17564
|
style: {
|
|
17565
17565
|
width: '100%'
|
|
17566
17566
|
}
|
|
17567
|
-
}, React.createElement(Input$1, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
17567
|
+
}, /*#__PURE__*/React.createElement(Input$1, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
17568
17568
|
style: _objectSpread2({
|
|
17569
17569
|
width: '100%'
|
|
17570
17570
|
}, props.style)
|
|
@@ -17588,11 +17588,11 @@ var MyInput$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
17588
17588
|
var props = this.props;
|
|
17589
17589
|
|
|
17590
17590
|
if (props.readOnly) {
|
|
17591
|
-
return React.createElement("span", {
|
|
17591
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
17592
17592
|
className: 'digtal-stakeholder-form-text'
|
|
17593
17593
|
}, props.value);
|
|
17594
17594
|
} else {
|
|
17595
|
-
return React.createElement(Input$1, _objectSpread2({}, props));
|
|
17595
|
+
return /*#__PURE__*/React.createElement(Input$1, _objectSpread2({}, props));
|
|
17596
17596
|
}
|
|
17597
17597
|
}
|
|
17598
17598
|
}]);
|
|
@@ -17614,9 +17614,607 @@ Discontinue.start = function () {
|
|
|
17614
17614
|
});
|
|
17615
17615
|
};
|
|
17616
17616
|
|
|
17617
|
-
var
|
|
17617
|
+
var _path$6;
|
|
17618
|
+
|
|
17619
|
+
function _extends$7() { _extends$7 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$7.apply(this, arguments); }
|
|
17620
|
+
|
|
17621
|
+
function SvgArrowUp$1(props) {
|
|
17622
|
+
return /*#__PURE__*/createElement("svg", _extends$7({
|
|
17623
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
17624
|
+
width: 13,
|
|
17625
|
+
height: 13,
|
|
17626
|
+
fill: "none"
|
|
17627
|
+
}, props), _path$6 || (_path$6 = /*#__PURE__*/createElement("path", {
|
|
17628
|
+
d: "M9.557 8.573a.338.338 0 01-.252-.114L6.508 5.367 3.711 8.46a.333.333 0 01-.497.005.404.404 0 01-.005-.538l3.048-3.37a.339.339 0 01.251-.114c.095 0 .185.041.252.114l3.048 3.37a.404.404 0 01-.005.538.337.337 0 01-.246.11z"
|
|
17629
|
+
})));
|
|
17630
|
+
}
|
|
17631
|
+
|
|
17632
|
+
var _path$7;
|
|
17633
|
+
|
|
17634
|
+
function _extends$8() { _extends$8 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$8.apply(this, arguments); }
|
|
17635
|
+
|
|
17636
|
+
function SvgArrowDown$1(props) {
|
|
17637
|
+
return /*#__PURE__*/createElement("svg", _extends$8({
|
|
17638
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
17639
|
+
width: 12,
|
|
17640
|
+
height: 13,
|
|
17641
|
+
fill: "none"
|
|
17642
|
+
}, props), _path$7 || (_path$7 = /*#__PURE__*/createElement("path", {
|
|
17643
|
+
d: "M2.943 4.427c.092 0 .183.038.252.114l2.797 3.092L8.789 4.54a.333.333 0 01.497-.005.404.404 0 01.005.538l-3.048 3.37a.339.339 0 01-.251.114.339.339 0 01-.252-.114l-3.048-3.37a.404.404 0 01.005-.538.337.337 0 01.246-.11z"
|
|
17644
|
+
})));
|
|
17645
|
+
}
|
|
17646
|
+
|
|
17647
|
+
var _g$1, _defs$3;
|
|
17648
|
+
|
|
17649
|
+
function _extends$9() { _extends$9 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$9.apply(this, arguments); }
|
|
17650
|
+
|
|
17651
|
+
function SvgPlus$1(props) {
|
|
17652
|
+
return /*#__PURE__*/createElement("svg", _extends$9({
|
|
17653
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
17654
|
+
width: 16,
|
|
17655
|
+
height: 15,
|
|
17656
|
+
fill: "none"
|
|
17657
|
+
}, props), _g$1 || (_g$1 = /*#__PURE__*/createElement("g", {
|
|
17658
|
+
clipPath: "url(#plus_svg__clip0_715_360)"
|
|
17659
|
+
}, /*#__PURE__*/createElement("path", {
|
|
17660
|
+
d: "M8 14.531A7.031 7.031 0 118 .468a7.031 7.031 0 010 14.063zm0-.937A6.094 6.094 0 108 1.406a6.094 6.094 0 000 12.188z"
|
|
17661
|
+
}), /*#__PURE__*/createElement("path", {
|
|
17662
|
+
d: "M4.25 7.969a.469.469 0 010-.938h7.5a.47.47 0 010 .938h-7.5z"
|
|
17663
|
+
}), /*#__PURE__*/createElement("path", {
|
|
17664
|
+
d: "M7.531 3.75a.469.469 0 01.938 0v7.5a.47.47 0 01-.938 0v-7.5z"
|
|
17665
|
+
}))), _defs$3 || (_defs$3 = /*#__PURE__*/createElement("defs", null, /*#__PURE__*/createElement("clipPath", {
|
|
17666
|
+
id: "plus_svg__clip0_715_360"
|
|
17667
|
+
}, /*#__PURE__*/createElement("path", {
|
|
17668
|
+
transform: "translate(.5)",
|
|
17669
|
+
d: "M0 0h15v15H0z"
|
|
17670
|
+
})))));
|
|
17671
|
+
}
|
|
17672
|
+
|
|
17673
|
+
var css_248z$h = ".kts-invoice-operate-invoice-digtal-stakeholder {\n display: flex;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder .digtal-stakeholder-expand-button {\n cursor: pointer;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder > div {\n border-right: 2px solid #9F613E;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder > div:nth-child(even) {\n flex: 1;\n display: flex;\n flex-direction: column;\n justify-content: end;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder > div:nth-child(odd) {\n flex: none;\n text-align: center;\n color: #9F613E;\n display: flex;\n flex-direction: column;\n justify-content: center;\n justify-items: center;\n padding: 0 4px;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder > div:last-child {\n border-right: none;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder .digtal-stakeholder-form {\n padding: 12px 10px 5px;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder .digtal-stakeholder-form .ktsAntX-col {\n margin-bottom: 15px;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder .digtal-stakeholder-form .ktsAnt3x-row.ktsAnt3x-form-item {\n display: flex;\n margin-bottom: 0;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder .digtal-stakeholder-form .ktsAnt3x-row.ktsAnt3x-form-item .ktsAnt3x-form-item-label {\n flex: none;\n font-weight: 500;\n line-height: 29px;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder .digtal-stakeholder-form .ktsAnt3x-row.ktsAnt3x-form-item .ktsAnt3x-form-item-label label {\n color: #9F603D;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder .digtal-stakeholder-form .ktsAnt3x-row.ktsAnt3x-form-item .ktsAnt3x-form-item-control {\n line-height: 1.4;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder .digtal-stakeholder-form .ktsAnt3x-row.ktsAnt3x-form-item .ktsAnt3x-form-item-control .digtal-stakeholder-form-text {\n word-break: break-all;\n line-height: 29px;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder .digtal-stakeholder-form .ktsAnt3x-row.ktsAnt3x-form-item .ktsAnt3x-form-item-control-wrapper {\n flex: 1;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder .natural-person-flag {\n padding: 0 8px;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder .natural-person-flag .ktsAnt3x-form-item-control {\n line-height: 32px;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder .natural-person-flag .ktsAnt3x-row.ktsAnt3x-form-item {\n margin-bottom: 0;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder.readOnly > div:nth-child(even) {\n justify-content: start;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder.readOnly .digtal-stakeholder-form .ktsAnt3x-row.ktsAnt3x-form-item .ktsAnt3x-form-item-label {\n line-height: 1.4;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder.readOnly .digtal-stakeholder-form .ktsAnt3x-row.ktsAnt3x-form-item .ktsAnt3x-form-item-control .digtal-stakeholder-form-text {\n line-height: 1.4;\n}\n";
|
|
17618
17674
|
styleInject(css_248z$h);
|
|
17619
17675
|
|
|
17676
|
+
var RULES$1 = {
|
|
17677
|
+
companyName: function companyName(label) {
|
|
17678
|
+
return [{
|
|
17679
|
+
required: true,
|
|
17680
|
+
message: "".concat(label, "\u5FC5\u586B")
|
|
17681
|
+
}, {
|
|
17682
|
+
max: 100,
|
|
17683
|
+
message: "".concat(label, "\u5185\u5BB9\u8D85\u957F")
|
|
17684
|
+
}];
|
|
17685
|
+
},
|
|
17686
|
+
taxId: function taxId(label) {
|
|
17687
|
+
return [{
|
|
17688
|
+
max: 20,
|
|
17689
|
+
message: "".concat(label, "\u5185\u5BB9\u8D85\u957F")
|
|
17690
|
+
}, {
|
|
17691
|
+
pattern: /^([a-zA-Z0-9])*$/g,
|
|
17692
|
+
message: "".concat(label, "\u4EC5\u80FD\u6570\u5B57\u3001\u82F1\u6587")
|
|
17693
|
+
}];
|
|
17694
|
+
},
|
|
17695
|
+
buyerTelPhone: function buyerTelPhone(label) {
|
|
17696
|
+
return [{
|
|
17697
|
+
max: 100,
|
|
17698
|
+
message: "".concat(label, "\u5185\u5BB9\u8D85\u957F")
|
|
17699
|
+
}, {
|
|
17700
|
+
pattern: /^[0-9\s\-\+]+$/g,
|
|
17701
|
+
message: "".concat(label, "\u4EC5\u80FD\u6570\u5B57\u3001\u7A7A\u683C\u3001-\u3001+")
|
|
17702
|
+
}];
|
|
17703
|
+
},
|
|
17704
|
+
sellerTelPhone: function sellerTelPhone(label) {
|
|
17705
|
+
return [{
|
|
17706
|
+
required: true,
|
|
17707
|
+
message: "".concat(label, "\u5FC5\u586B")
|
|
17708
|
+
}, {
|
|
17709
|
+
max: 100,
|
|
17710
|
+
message: "".concat(label, "\u5185\u5BB9\u8D85\u957F")
|
|
17711
|
+
}, {
|
|
17712
|
+
pattern: /^[0-9\s\-\+]+$/g,
|
|
17713
|
+
message: "".concat(label, "\u4EC5\u80FD\u6570\u5B57\u3001\u7A7A\u683C\u3001-\u3001+")
|
|
17714
|
+
}];
|
|
17715
|
+
},
|
|
17716
|
+
bankName: function bankName(label) {
|
|
17717
|
+
return [{
|
|
17718
|
+
max: 100,
|
|
17719
|
+
message: "".concat(label, "\u5185\u5BB9\u8D85\u957F")
|
|
17720
|
+
}];
|
|
17721
|
+
},
|
|
17722
|
+
bankAccount: function bankAccount(label) {
|
|
17723
|
+
return [{
|
|
17724
|
+
max: 100,
|
|
17725
|
+
message: "".concat(label, "\u5185\u5BB9\u8D85\u957F")
|
|
17726
|
+
}, {
|
|
17727
|
+
pattern: /^([0-9a-zA-Z-\s])*$/g,
|
|
17728
|
+
message: "".concat(label, "\u4EC5\u80FD\u6570\u5B57\u3001\u5B57\u6BCD\u3001-\u3001\u7A7A\u683C")
|
|
17729
|
+
}];
|
|
17730
|
+
}
|
|
17731
|
+
};
|
|
17732
|
+
|
|
17733
|
+
var formatCompanyName$1 = function formatCompanyName(e) {
|
|
17734
|
+
var _e$target;
|
|
17735
|
+
|
|
17736
|
+
var value = e === null || e === void 0 ? void 0 : (_e$target = e.target) === null || _e$target === void 0 ? void 0 : _e$target.value;
|
|
17737
|
+
|
|
17738
|
+
if (value) {
|
|
17739
|
+
return value.replace('(', '(').replace(')', ')').replace(' ', '');
|
|
17740
|
+
}
|
|
17741
|
+
};
|
|
17742
|
+
/** 农产品干系人 */
|
|
17743
|
+
|
|
17744
|
+
|
|
17745
|
+
var StakeFarmerholder = decorator(Form.create())(function (props) {
|
|
17746
|
+
var form = props.form,
|
|
17747
|
+
isShowImportButton = props.isShowImportButton,
|
|
17748
|
+
onClickImportButton = props.onClickImportButton,
|
|
17749
|
+
_props$isVatNormal = props.isVatNormal,
|
|
17750
|
+
isVatNormal = _props$isVatNormal === void 0 ? false : _props$isVatNormal;
|
|
17751
|
+
|
|
17752
|
+
var _React$useState = React.useState(typeof props.isExpand === 'boolean' ? props.isExpand : true),
|
|
17753
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
17754
|
+
isExpand = _React$useState2[0],
|
|
17755
|
+
setExpand = _React$useState2[1];
|
|
17756
|
+
|
|
17757
|
+
var getFieldDecorator = form.getFieldDecorator;
|
|
17758
|
+
var controller = Invoice.useInvoiceController();
|
|
17759
|
+
var model = controller.useMemo(function (s) {
|
|
17760
|
+
return s.model;
|
|
17761
|
+
}, []);
|
|
17762
|
+
var disableds = controller.useMemo(function (s) {
|
|
17763
|
+
return s.stakeholder.disableds || [];
|
|
17764
|
+
}, []);
|
|
17765
|
+
var rulesMap = controller.useMemo(function (s) {
|
|
17766
|
+
return s.stakeholder.rulesMap || {};
|
|
17767
|
+
}, []);
|
|
17768
|
+
var readOnly = React.useMemo(function () {
|
|
17769
|
+
if (model === 'readOnly') return true;
|
|
17770
|
+
if (model === 'prefab') return true;
|
|
17771
|
+
return false;
|
|
17772
|
+
}, [model]);
|
|
17773
|
+
var onExpand = React.useCallback(function () {
|
|
17774
|
+
setExpand(function (e) {
|
|
17775
|
+
return !e;
|
|
17776
|
+
});
|
|
17777
|
+
}, []);
|
|
17778
|
+
var isReadOnly = React.useCallback(function (field) {
|
|
17779
|
+
return readOnly || disableds.indexOf(field) >= 0;
|
|
17780
|
+
}, [disableds, readOnly]);
|
|
17781
|
+
var getRules = React.useCallback(function (field, defaultRules) {
|
|
17782
|
+
if (isReadOnly(field)) return [];
|
|
17783
|
+
return rulesMap[field] || defaultRules;
|
|
17784
|
+
}, [rulesMap, isReadOnly, isReadOnly]);
|
|
17785
|
+
controller.useForm('stakeholder', form); // props.isExpand 变化的时候更新
|
|
17786
|
+
|
|
17787
|
+
React.useEffect(function () {
|
|
17788
|
+
setExpand(typeof props.isExpand === 'boolean' ? props.isExpand : true);
|
|
17789
|
+
}, [props.isExpand]);
|
|
17790
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
17791
|
+
className: classNames("kts-invoice-operate-invoice-digtal-stakeholder", {
|
|
17792
|
+
readOnly: readOnly
|
|
17793
|
+
})
|
|
17794
|
+
}, /*#__PURE__*/React.createElement("div", null, '销售方信息'.split('').map(function (e) {
|
|
17795
|
+
return /*#__PURE__*/React.createElement("span", null, e);
|
|
17796
|
+
}), !readOnly && /*#__PURE__*/React.createElement(Icon, {
|
|
17797
|
+
className: "digtal-stakeholder-expand-button",
|
|
17798
|
+
component: isExpand ? SvgArrowUp$1 : SvgArrowDown$1,
|
|
17799
|
+
onClick: onExpand
|
|
17800
|
+
})), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
|
|
17801
|
+
style: {
|
|
17802
|
+
marginTop: 20
|
|
17803
|
+
},
|
|
17804
|
+
className: 'natural-person-flag'
|
|
17805
|
+
}, props.isNaturalPerson === true && /*#__PURE__*/React.createElement(Form.Item, {
|
|
17806
|
+
colon: false
|
|
17807
|
+
}, getFieldDecorator('naturalPersonFlag', {})( /*#__PURE__*/React.createElement(NaturalPersonFlag$1, {
|
|
17808
|
+
readOnly: isReadOnly('naturalPersonFlag')
|
|
17809
|
+
})))), /*#__PURE__*/React.createElement(Form, {
|
|
17810
|
+
className: "digtal-stakeholder-form"
|
|
17811
|
+
}, /*#__PURE__*/React.createElement(Row, {
|
|
17812
|
+
gutter: [16, 0]
|
|
17813
|
+
}, /*#__PURE__*/React.createElement(Col, {
|
|
17814
|
+
span: 24
|
|
17815
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
17816
|
+
label: "\u540D\u79F0",
|
|
17817
|
+
colon: false
|
|
17818
|
+
}, getFieldDecorator('supplierName', {
|
|
17819
|
+
rules: getRules('supplierName', RULES$1.companyName('销售方名称')),
|
|
17820
|
+
getValueFromEvent: formatCompanyName$1
|
|
17821
|
+
})( /*#__PURE__*/React.createElement(MyInput$2, {
|
|
17822
|
+
readOnly: isReadOnly('supplierName'),
|
|
17823
|
+
placeholder: "\u8BF7\u8F93\u5165\u540D\u79F0",
|
|
17824
|
+
autoComplete: "off"
|
|
17825
|
+
})))), /*#__PURE__*/React.createElement(Col, {
|
|
17826
|
+
span: 24
|
|
17827
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
17828
|
+
label: "\u7EDF\u4E00\u793E\u4F1A\u4FE1\u7528\u4EE3\u7801/\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7",
|
|
17829
|
+
colon: false
|
|
17830
|
+
}, getFieldDecorator('supplierTaxId', {
|
|
17831
|
+
rules: getRules('supplierTaxId', [{
|
|
17832
|
+
required: true,
|
|
17833
|
+
message: '销售方纳税人识别号必填'
|
|
17834
|
+
}].concat(_toConsumableArray(RULES$1.taxId('销售方纳税人识别号'))))
|
|
17835
|
+
})( /*#__PURE__*/React.createElement(MyInput$2, {
|
|
17836
|
+
readOnly: isReadOnly('supplierTaxId'),
|
|
17837
|
+
placeholder: "\u8BF7\u8F93\u5165\u7EDF\u4E00\u793E\u4F1A\u4FE1\u7528\u4EE3\u7801/\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7",
|
|
17838
|
+
autoComplete: "off"
|
|
17839
|
+
})))), /*#__PURE__*/React.createElement(Col, {
|
|
17840
|
+
span: 12,
|
|
17841
|
+
style: {
|
|
17842
|
+
display: isExpand ? undefined : 'none'
|
|
17843
|
+
}
|
|
17844
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
17845
|
+
label: "\u9500\u552E\u65B9\u5730\u5740",
|
|
17846
|
+
colon: false
|
|
17847
|
+
}, getFieldDecorator('sellerAddress', {
|
|
17848
|
+
rules: getRules('sellerAddress', [{
|
|
17849
|
+
max: 300,
|
|
17850
|
+
message: '销售方地址内容超长'
|
|
17851
|
+
}])
|
|
17852
|
+
})( /*#__PURE__*/React.createElement(MyInput$2, {
|
|
17853
|
+
readOnly: isReadOnly('sellerAddress'),
|
|
17854
|
+
placeholder: "\u8BF7\u8F93\u5165\u9500\u552E\u65B9\u5730\u5740",
|
|
17855
|
+
autoComplete: "off"
|
|
17856
|
+
})))), /*#__PURE__*/React.createElement(Col, {
|
|
17857
|
+
span: 12,
|
|
17858
|
+
style: {
|
|
17859
|
+
display: isExpand ? undefined : 'none'
|
|
17860
|
+
}
|
|
17861
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
17862
|
+
label: "\u7535\u8BDD",
|
|
17863
|
+
colon: false,
|
|
17864
|
+
className: 'telephone'
|
|
17865
|
+
}, getFieldDecorator('sellerPhone', {
|
|
17866
|
+
rules: getRules('sellerPhone', RULES$1.sellerTelPhone('销售方电话'))
|
|
17867
|
+
})( /*#__PURE__*/React.createElement(MyInput$2, {
|
|
17868
|
+
readOnly: isReadOnly('sellerPhone'),
|
|
17869
|
+
placeholder: "\u8BF7\u8F93\u5165\u7535\u8BDD",
|
|
17870
|
+
autoComplete: "off"
|
|
17871
|
+
})))), /*#__PURE__*/React.createElement(Col, {
|
|
17872
|
+
span: 12,
|
|
17873
|
+
style: {
|
|
17874
|
+
display: isExpand ? undefined : 'none'
|
|
17875
|
+
}
|
|
17876
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
17877
|
+
label: "\u9500\u552E\u65B9\u5F00\u6237\u94F6\u884C",
|
|
17878
|
+
colon: false
|
|
17879
|
+
}, getFieldDecorator('sellerBank', {
|
|
17880
|
+
rules: getRules('sellerBank', RULES$1.bankName('销售方开户银行'))
|
|
17881
|
+
})( /*#__PURE__*/React.createElement(MyInput$2, {
|
|
17882
|
+
readOnly: isReadOnly('sellerBank'),
|
|
17883
|
+
placeholder: "\u8BF7\u8F93\u5165\u9500\u552E\u65B9\u5F00\u6237\u94F6\u884C",
|
|
17884
|
+
autoComplete: "off"
|
|
17885
|
+
})))), /*#__PURE__*/React.createElement(Col, {
|
|
17886
|
+
span: 12,
|
|
17887
|
+
style: {
|
|
17888
|
+
display: isExpand ? undefined : 'none'
|
|
17889
|
+
}
|
|
17890
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
17891
|
+
label: "\u94F6\u884C\u8D26\u53F7",
|
|
17892
|
+
colon: false
|
|
17893
|
+
}, getFieldDecorator('sellerAccount', {
|
|
17894
|
+
rules: getRules('sellerAccount', RULES$1.bankAccount('销售方银行账号'))
|
|
17895
|
+
})( /*#__PURE__*/React.createElement(MyInput$2, {
|
|
17896
|
+
readOnly: isReadOnly('sellerAccount'),
|
|
17897
|
+
placeholder: "\u8BF7\u8F93\u5165\u94F6\u884C\u8D26\u53F7",
|
|
17898
|
+
autoComplete: "off"
|
|
17899
|
+
}))))))), /*#__PURE__*/React.createElement("div", null, '购买方信息'.split('').map(function (e) {
|
|
17900
|
+
return /*#__PURE__*/React.createElement("span", null, e);
|
|
17901
|
+
}), !readOnly && /*#__PURE__*/React.createElement(Icon, {
|
|
17902
|
+
className: "digtal-stakeholder-expand-button",
|
|
17903
|
+
component: isExpand ? SvgArrowUp$1 : SvgArrowDown$1,
|
|
17904
|
+
onClick: onExpand
|
|
17905
|
+
})), /*#__PURE__*/React.createElement("div", null, !readOnly && props.lineCredit && /*#__PURE__*/React.createElement("div", {
|
|
17906
|
+
style: {
|
|
17907
|
+
marginTop: 20
|
|
17908
|
+
}
|
|
17909
|
+
}, /*#__PURE__*/React.createElement(Tooltip$1, {
|
|
17910
|
+
trigger: "click",
|
|
17911
|
+
title: props.lineCredit
|
|
17912
|
+
}, /*#__PURE__*/React.createElement(Button$1, {
|
|
17913
|
+
type: "link",
|
|
17914
|
+
style: {
|
|
17915
|
+
padding: "0px 8px"
|
|
17916
|
+
}
|
|
17917
|
+
}, "\u67E5\u770B\u5F53\u524D\u53EF\u7528\u6388\u4FE1\u989D\u5EA6"))), /*#__PURE__*/React.createElement(Form, {
|
|
17918
|
+
className: "digtal-stakeholder-form"
|
|
17919
|
+
}, /*#__PURE__*/React.createElement(Row, {
|
|
17920
|
+
gutter: [16, 0]
|
|
17921
|
+
}, /*#__PURE__*/React.createElement(Col, {
|
|
17922
|
+
span: 24
|
|
17923
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
17924
|
+
label: "\u540D\u79F0",
|
|
17925
|
+
colon: false
|
|
17926
|
+
}, getFieldDecorator('buyerName', {
|
|
17927
|
+
rules: getRules('buyerName', RULES$1.companyName('购买方名称'))
|
|
17928
|
+
})( /*#__PURE__*/React.createElement(BuyerNameInput$2, {
|
|
17929
|
+
myform: form,
|
|
17930
|
+
fieldName: 'buyerName',
|
|
17931
|
+
readOnly: isReadOnly('buyerName'),
|
|
17932
|
+
placeholder: "\u8BF7\u8F93\u5165\u540D\u79F0",
|
|
17933
|
+
autoComplete: "off",
|
|
17934
|
+
suffix: isShowImportButton === true && /*#__PURE__*/React.createElement(Button$1, {
|
|
17935
|
+
type: 'link',
|
|
17936
|
+
style: {
|
|
17937
|
+
padding: 0,
|
|
17938
|
+
width: 20,
|
|
17939
|
+
height: '100%'
|
|
17940
|
+
},
|
|
17941
|
+
icon: /*#__PURE__*/React.createElement(Icon, {
|
|
17942
|
+
component: SvgPlus$1
|
|
17943
|
+
}),
|
|
17944
|
+
onClick: function onClick() {
|
|
17945
|
+
onClickImportButton && onClickImportButton(controller);
|
|
17946
|
+
}
|
|
17947
|
+
})
|
|
17948
|
+
})))), /*#__PURE__*/React.createElement(Col, {
|
|
17949
|
+
span: 24
|
|
17950
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
17951
|
+
label: "\u7EDF\u4E00\u793E\u4F1A\u4FE1\u7528\u4EE3\u7801/\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7",
|
|
17952
|
+
colon: false
|
|
17953
|
+
}, getFieldDecorator('buyerTaxId', {
|
|
17954
|
+
rules: getRules('buyerTaxId', [{
|
|
17955
|
+
required: !isVatNormal,
|
|
17956
|
+
message: '购买方纳税人识别号必填'
|
|
17957
|
+
}].concat(_toConsumableArray(RULES$1.taxId('购买方纳税人识别号'))))
|
|
17958
|
+
})( /*#__PURE__*/React.createElement(BuyerNameInput$2, {
|
|
17959
|
+
myform: form,
|
|
17960
|
+
fieldName: 'buyerTaxId',
|
|
17961
|
+
readOnly: isReadOnly('buyerTaxId'),
|
|
17962
|
+
placeholder: "\u8BF7\u8F93\u5165\u7EDF\u4E00\u793E\u4F1A\u4FE1\u7528\u4EE3\u7801/\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7",
|
|
17963
|
+
autoComplete: "off"
|
|
17964
|
+
})))), /*#__PURE__*/React.createElement(Col, {
|
|
17965
|
+
span: 14,
|
|
17966
|
+
style: {
|
|
17967
|
+
display: isExpand ? undefined : 'none'
|
|
17968
|
+
}
|
|
17969
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
17970
|
+
label: "\u8D2D\u4E70\u65B9\u5730\u5740",
|
|
17971
|
+
colon: false
|
|
17972
|
+
}, getFieldDecorator('buyerAddress', {
|
|
17973
|
+
rules: getRules('buyerAddress', [{
|
|
17974
|
+
max: 100,
|
|
17975
|
+
message: '购买方地址内容超长'
|
|
17976
|
+
}])
|
|
17977
|
+
})( /*#__PURE__*/React.createElement(MyInput$2, {
|
|
17978
|
+
readOnly: isReadOnly('buyerAddress'),
|
|
17979
|
+
placeholder: "\u8BF7\u8F93\u5165\u8D2D\u4E70\u65B9\u5730\u5740",
|
|
17980
|
+
autoComplete: "off"
|
|
17981
|
+
})))), /*#__PURE__*/React.createElement(Col, {
|
|
17982
|
+
span: 10,
|
|
17983
|
+
style: {
|
|
17984
|
+
display: isExpand ? undefined : 'none'
|
|
17985
|
+
}
|
|
17986
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
17987
|
+
label: "\u7535\u8BDD",
|
|
17988
|
+
colon: false,
|
|
17989
|
+
className: 'telephone'
|
|
17990
|
+
}, getFieldDecorator('buyerPhone', {
|
|
17991
|
+
rules: getRules('buyerPhone', RULES$1.buyerTelPhone('购买方电话'))
|
|
17992
|
+
})( /*#__PURE__*/React.createElement(MyInput$2, {
|
|
17993
|
+
readOnly: isReadOnly('buyerPhone'),
|
|
17994
|
+
placeholder: "\u8BF7\u8F93\u5165\u7535\u8BDD",
|
|
17995
|
+
autoComplete: "off"
|
|
17996
|
+
})))), /*#__PURE__*/React.createElement(Col, {
|
|
17997
|
+
span: 14,
|
|
17998
|
+
style: {
|
|
17999
|
+
display: isExpand ? undefined : 'none'
|
|
18000
|
+
}
|
|
18001
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
18002
|
+
label: "\u8D2D\u4E70\u65B9\u5F00\u6237\u94F6\u884C",
|
|
18003
|
+
colon: false
|
|
18004
|
+
}, getFieldDecorator('buyerBank', {
|
|
18005
|
+
rules: getRules('buyerBank', RULES$1.bankName('购买方开户银行'))
|
|
18006
|
+
})( /*#__PURE__*/React.createElement(MyInput$2, {
|
|
18007
|
+
readOnly: isReadOnly('buyerBank'),
|
|
18008
|
+
placeholder: "\u8BF7\u8F93\u5165\u8D2D\u4E70\u65B9\u5F00\u6237\u94F6\u884C",
|
|
18009
|
+
autoComplete: "off"
|
|
18010
|
+
})))), /*#__PURE__*/React.createElement(Col, {
|
|
18011
|
+
span: 10,
|
|
18012
|
+
style: {
|
|
18013
|
+
display: isExpand ? undefined : 'none'
|
|
18014
|
+
}
|
|
18015
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
18016
|
+
label: "\u94F6\u884C\u8D26\u53F7",
|
|
18017
|
+
colon: false
|
|
18018
|
+
}, getFieldDecorator('buyerAccount', {
|
|
18019
|
+
rules: getRules('buyerAccount', RULES$1.bankAccount('购买方银行账号'))
|
|
18020
|
+
})( /*#__PURE__*/React.createElement(MyInput$2, {
|
|
18021
|
+
readOnly: isReadOnly('buyerAccount'),
|
|
18022
|
+
placeholder: "\u8BF7\u8F93\u5165\u94F6\u884C\u8D26\u53F7",
|
|
18023
|
+
autoComplete: "off"
|
|
18024
|
+
}))))))));
|
|
18025
|
+
});
|
|
18026
|
+
|
|
18027
|
+
function NaturalPersonFlag$1(props) {
|
|
18028
|
+
var _React$useState3 = React.useState(props.value || 'COMPANY'),
|
|
18029
|
+
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
|
18030
|
+
value = _React$useState4[0],
|
|
18031
|
+
setValue = _React$useState4[1];
|
|
18032
|
+
|
|
18033
|
+
var onChange = React.useCallback(function (e) {
|
|
18034
|
+
if (props.readOnly) return;
|
|
18035
|
+
setValue(e.target.checked ? 'NATURAL' : 'COMPANY');
|
|
18036
|
+
props.onChange && props.onChange(e.target.checked ? 'NATURAL' : 'COMPANY');
|
|
18037
|
+
}, [props.onChange, props.readOnly]);
|
|
18038
|
+
React.useEffect(function () {
|
|
18039
|
+
setValue(props.value || 'COMPANY');
|
|
18040
|
+
}, [props.value]);
|
|
18041
|
+
return /*#__PURE__*/React.createElement(Checkbox$1, {
|
|
18042
|
+
disabled: props.readOnly,
|
|
18043
|
+
checked: value === 'NATURAL',
|
|
18044
|
+
onChange: onChange
|
|
18045
|
+
}, "\u662F\u5426\u5F00\u7968\u7ED9\u81EA\u7136\u4EBA");
|
|
18046
|
+
}
|
|
18047
|
+
|
|
18048
|
+
function BuyerNameInput$2(props) {
|
|
18049
|
+
var fieldName = props.fieldName,
|
|
18050
|
+
form = props.myform;
|
|
18051
|
+
var controller = Invoice.useInvoiceController();
|
|
18052
|
+
var rootElement = controller.useMemo(function (s) {
|
|
18053
|
+
return s.rootElement;
|
|
18054
|
+
}, []);
|
|
18055
|
+
var autoComplete = controller.useMemo(function (s) {
|
|
18056
|
+
return s.autoComplete;
|
|
18057
|
+
}, []);
|
|
18058
|
+
|
|
18059
|
+
var _React$useState5 = React.useState([]),
|
|
18060
|
+
_React$useState6 = _slicedToArray(_React$useState5, 2),
|
|
18061
|
+
options = _React$useState6[0],
|
|
18062
|
+
setOptions = _React$useState6[1];
|
|
18063
|
+
|
|
18064
|
+
var onChangeAutoComplete = React.useCallback(function (value) {
|
|
18065
|
+
var record = options.filter(function (e) {
|
|
18066
|
+
return e[fieldName] === value;
|
|
18067
|
+
})[0];
|
|
18068
|
+
if (!record || !form) return;
|
|
18069
|
+
form.setFieldsValue(record);
|
|
18070
|
+
setOptions([]);
|
|
18071
|
+
}, [options, fieldName, form]);
|
|
18072
|
+
var onSearch = React.useCallback( /*#__PURE__*/function () {
|
|
18073
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(searchText) {
|
|
18074
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
18075
|
+
while (1) {
|
|
18076
|
+
switch (_context.prev = _context.next) {
|
|
18077
|
+
case 0:
|
|
18078
|
+
_context.next = 2;
|
|
18079
|
+
return Discontinue$1.start();
|
|
18080
|
+
|
|
18081
|
+
case 2:
|
|
18082
|
+
_context.prev = 2;
|
|
18083
|
+
|
|
18084
|
+
if (!(fieldName === 'buyerName')) {
|
|
18085
|
+
_context.next = 12;
|
|
18086
|
+
break;
|
|
18087
|
+
}
|
|
18088
|
+
|
|
18089
|
+
if (!autoComplete.onBuyerNameSearch) {
|
|
18090
|
+
_context.next = 10;
|
|
18091
|
+
break;
|
|
18092
|
+
}
|
|
18093
|
+
|
|
18094
|
+
_context.t0 = setOptions;
|
|
18095
|
+
_context.next = 8;
|
|
18096
|
+
return autoComplete.onBuyerNameSearch(searchText);
|
|
18097
|
+
|
|
18098
|
+
case 8:
|
|
18099
|
+
_context.t1 = _context.sent;
|
|
18100
|
+
(0, _context.t0)(_context.t1);
|
|
18101
|
+
|
|
18102
|
+
case 10:
|
|
18103
|
+
_context.next = 19;
|
|
18104
|
+
break;
|
|
18105
|
+
|
|
18106
|
+
case 12:
|
|
18107
|
+
if (!(fieldName === 'buyerTaxId')) {
|
|
18108
|
+
_context.next = 19;
|
|
18109
|
+
break;
|
|
18110
|
+
}
|
|
18111
|
+
|
|
18112
|
+
if (!autoComplete.onBuyerTaxIdSearch) {
|
|
18113
|
+
_context.next = 19;
|
|
18114
|
+
break;
|
|
18115
|
+
}
|
|
18116
|
+
|
|
18117
|
+
_context.t2 = setOptions;
|
|
18118
|
+
_context.next = 17;
|
|
18119
|
+
return autoComplete.onBuyerTaxIdSearch(searchText);
|
|
18120
|
+
|
|
18121
|
+
case 17:
|
|
18122
|
+
_context.t3 = _context.sent;
|
|
18123
|
+
(0, _context.t2)(_context.t3);
|
|
18124
|
+
|
|
18125
|
+
case 19:
|
|
18126
|
+
_context.next = 25;
|
|
18127
|
+
break;
|
|
18128
|
+
|
|
18129
|
+
case 21:
|
|
18130
|
+
_context.prev = 21;
|
|
18131
|
+
_context.t4 = _context["catch"](2);
|
|
18132
|
+
setOptions([]);
|
|
18133
|
+
throw _context.t4;
|
|
18134
|
+
|
|
18135
|
+
case 25:
|
|
18136
|
+
case "end":
|
|
18137
|
+
return _context.stop();
|
|
18138
|
+
}
|
|
18139
|
+
}
|
|
18140
|
+
}, _callee, null, [[2, 21]]);
|
|
18141
|
+
}));
|
|
18142
|
+
|
|
18143
|
+
return function (_x) {
|
|
18144
|
+
return _ref.apply(this, arguments);
|
|
18145
|
+
};
|
|
18146
|
+
}(), [autoComplete.onBuyerNameSearch, fieldName]);
|
|
18147
|
+
if (props.readOnly) return /*#__PURE__*/React.createElement("span", {
|
|
18148
|
+
className: 'digtal-stakeholder-form-text'
|
|
18149
|
+
}, props.value);
|
|
18150
|
+
return /*#__PURE__*/React.createElement(AutoComplete$1, {
|
|
18151
|
+
onSearch: onSearch,
|
|
18152
|
+
options: options.map(function (e) {
|
|
18153
|
+
return {
|
|
18154
|
+
value: e[fieldName]
|
|
18155
|
+
};
|
|
18156
|
+
}),
|
|
18157
|
+
onChange: onChangeAutoComplete,
|
|
18158
|
+
value: props.value,
|
|
18159
|
+
getPopupContainer: function getPopupContainer() {
|
|
18160
|
+
return rootElement || document.body;
|
|
18161
|
+
},
|
|
18162
|
+
style: {
|
|
18163
|
+
width: '100%'
|
|
18164
|
+
}
|
|
18165
|
+
}, /*#__PURE__*/React.createElement(Input$1, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
18166
|
+
style: _objectSpread2({
|
|
18167
|
+
width: '100%'
|
|
18168
|
+
}, props.style)
|
|
18169
|
+
})));
|
|
18170
|
+
}
|
|
18171
|
+
|
|
18172
|
+
var MyInput$2 = /*#__PURE__*/function (_React$Component) {
|
|
18173
|
+
_inherits(MyInput, _React$Component);
|
|
18174
|
+
|
|
18175
|
+
var _super = _createSuper(MyInput);
|
|
18176
|
+
|
|
18177
|
+
function MyInput() {
|
|
18178
|
+
_classCallCheck(this, MyInput);
|
|
18179
|
+
|
|
18180
|
+
return _super.apply(this, arguments);
|
|
18181
|
+
}
|
|
18182
|
+
|
|
18183
|
+
_createClass(MyInput, [{
|
|
18184
|
+
key: "render",
|
|
18185
|
+
value: function render() {
|
|
18186
|
+
var props = this.props;
|
|
18187
|
+
|
|
18188
|
+
if (props.readOnly) {
|
|
18189
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
18190
|
+
className: 'digtal-stakeholder-form-text'
|
|
18191
|
+
}, props.value);
|
|
18192
|
+
} else {
|
|
18193
|
+
return /*#__PURE__*/React.createElement(Input$1, _objectSpread2({}, props));
|
|
18194
|
+
}
|
|
18195
|
+
}
|
|
18196
|
+
}]);
|
|
18197
|
+
|
|
18198
|
+
return MyInput;
|
|
18199
|
+
}(React.Component);
|
|
18200
|
+
|
|
18201
|
+
var Discontinue$1 = /*#__PURE__*/_createClass(function Discontinue() {
|
|
18202
|
+
_classCallCheck(this, Discontinue);
|
|
18203
|
+
});
|
|
18204
|
+
|
|
18205
|
+
Discontinue$1.timer = void 0;
|
|
18206
|
+
|
|
18207
|
+
Discontinue$1.start = function () {
|
|
18208
|
+
var interval = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 200;
|
|
18209
|
+
return new Promise(function (resolve) {
|
|
18210
|
+
clearTimeout(Discontinue$1.timer);
|
|
18211
|
+
Discontinue$1.timer = setTimeout(resolve, interval);
|
|
18212
|
+
});
|
|
18213
|
+
};
|
|
18214
|
+
|
|
18215
|
+
var css_248z$i = ".kts-invoice-operate-sign-digtal {\n padding: 20px 20px 0;\n border-bottom: 2px solid #9F613E;\n border-left: 2px solid #9F613E;\n border-right: 2px solid #9F613E;\n}\n.kts-invoice-operate-sign-digtal .sign-digtal-label {\n color: #9F613E;\n font-weight: bold;\n}\n.kts-invoice-operate-sign-digtal-readOnly .sign-digtal-readOnly-cont {\n border-bottom: 2px solid #9F613E;\n border-left: 2px solid #9F613E;\n border-right: 2px solid #9F613E;\n display: flex;\n}\n.kts-invoice-operate-sign-digtal-readOnly .sign-digtal-readOnly-cont > div:nth-child(even) {\n flex: 1;\n display: flex;\n flex-direction: column;\n padding: 10px;\n min-height: 189px;\n}\n.kts-invoice-operate-sign-digtal-readOnly .sign-digtal-readOnly-cont > div:nth-child(odd) {\n flex: none;\n text-align: center;\n color: #9F613E;\n display: flex;\n flex-direction: column;\n justify-content: center;\n justify-items: center;\n padding: 0 4px;\n border-right: 2px solid #9F613E;\n}\n.kts-invoice-operate-sign-digtal-readOnly .digtal-readOnly-form {\n padding-left: 30px;\n}\n.kts-invoice-operate-sign-digtal-readOnly .digtal-readOnly-form .ktsAnt3x-form-item-label label {\n color: #9F613E;\n font-weight: bold;\n}\n";
|
|
18216
|
+
styleInject(css_248z$i);
|
|
18217
|
+
|
|
17620
18218
|
var SignDigtal = decorator(Form.create())(function (props) {
|
|
17621
18219
|
var form = props.form;
|
|
17622
18220
|
var getFieldDecorator = form.getFieldDecorator;
|
|
@@ -17649,48 +18247,48 @@ var SignDigtal = decorator(Form.create())(function (props) {
|
|
|
17649
18247
|
controller.useForm('sign', form);
|
|
17650
18248
|
|
|
17651
18249
|
if (readOnly) {
|
|
17652
|
-
return React.createElement("div", {
|
|
18250
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
17653
18251
|
className: "kts-invoice-operate-sign-digtal-readOnly"
|
|
17654
|
-
}, React.createElement("div", {
|
|
18252
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
17655
18253
|
className: 'sign-digtal-readOnly-cont'
|
|
17656
|
-
}, React.createElement("div", null, React.createElement("span", null, "\u5907"), React.createElement("span", null, "\u6CE8")), React.createElement("div", null, getFieldDecorator('remarks', {
|
|
18254
|
+
}, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("span", null, "\u5907"), /*#__PURE__*/React.createElement("span", null, "\u6CE8")), /*#__PURE__*/React.createElement("div", null, getFieldDecorator('remarks', {
|
|
17657
18255
|
initialValue: props.defaultRemark
|
|
17658
|
-
})(isEnables('remarks') ? React.createElement(Input$1.TextArea, {
|
|
18256
|
+
})(isEnables('remarks') ? /*#__PURE__*/React.createElement(Input$1.TextArea, {
|
|
17659
18257
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
17660
18258
|
style: {
|
|
17661
18259
|
height: '100%'
|
|
17662
18260
|
}
|
|
17663
|
-
}) : React.createElement(MyDiv$1, {
|
|
18261
|
+
}) : /*#__PURE__*/React.createElement(MyDiv$1, {
|
|
17664
18262
|
style: {
|
|
17665
18263
|
whiteSpace: 'pre-wrap',
|
|
17666
18264
|
wordBreak: 'break-all'
|
|
17667
18265
|
}
|
|
17668
|
-
})))), React.createElement(Form, {
|
|
18266
|
+
})))), /*#__PURE__*/React.createElement(Form, {
|
|
17669
18267
|
layout: 'inline',
|
|
17670
18268
|
className: 'digtal-readOnly-form'
|
|
17671
|
-
}, React.createElement(Form.Item, {
|
|
18269
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
17672
18270
|
label: "\u5F00\u7968\u4EBA"
|
|
17673
18271
|
}, getFieldDecorator('drawer', {
|
|
17674
18272
|
initialValue: props.defaultRemark
|
|
17675
|
-
})(React.createElement(MyDiv$1, null)))));
|
|
18273
|
+
})( /*#__PURE__*/React.createElement(MyDiv$1, null)))));
|
|
17676
18274
|
} else {
|
|
17677
|
-
return React.createElement("div", {
|
|
18275
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
17678
18276
|
className: "kts-invoice-operate-sign-digtal"
|
|
17679
|
-
}, React.createElement("div", {
|
|
18277
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
17680
18278
|
className: 'sign-digtal-label'
|
|
17681
|
-
}, "\u5907\u6CE8\u4FE1\u606F"), React.createElement(Form, null, React.createElement(Form.Item, {
|
|
18279
|
+
}, "\u5907\u6CE8\u4FE1\u606F"), /*#__PURE__*/React.createElement(Form, null, /*#__PURE__*/React.createElement(Form.Item, {
|
|
17682
18280
|
label: "\u5907\u6CE8"
|
|
17683
18281
|
}, getFieldDecorator('remarks', {
|
|
17684
18282
|
initialValue: props.defaultRemark
|
|
17685
|
-
})(React.createElement(Input$1.TextArea, {
|
|
18283
|
+
})( /*#__PURE__*/React.createElement(Input$1.TextArea, {
|
|
17686
18284
|
readOnly: isReadOnly('remarks'),
|
|
17687
18285
|
autoSize: true,
|
|
17688
18286
|
placeholder: "\u8BF7\u8F93\u5165"
|
|
17689
|
-
}))), React.createElement(Form.Item, {
|
|
18287
|
+
}))), /*#__PURE__*/React.createElement(Form.Item, {
|
|
17690
18288
|
label: "\u5F00\u7968\u4EBA"
|
|
17691
18289
|
}, getFieldDecorator('drawer', {
|
|
17692
18290
|
initialValue: props.defaultIssuer
|
|
17693
|
-
})(React.createElement(Input$1, {
|
|
18291
|
+
})( /*#__PURE__*/React.createElement(Input$1, {
|
|
17694
18292
|
readOnly: isReadOnly('drawer'),
|
|
17695
18293
|
style: {
|
|
17696
18294
|
width: 313
|
|
@@ -17714,7 +18312,7 @@ var MyDiv$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
17714
18312
|
_createClass(MyDiv, [{
|
|
17715
18313
|
key: "render",
|
|
17716
18314
|
value: function render() {
|
|
17717
|
-
return React.createElement("div", {
|
|
18315
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
17718
18316
|
style: this.props.style
|
|
17719
18317
|
}, this.props.value);
|
|
17720
18318
|
}
|
|
@@ -17723,8 +18321,8 @@ var MyDiv$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
17723
18321
|
return MyDiv;
|
|
17724
18322
|
}(React.Component);
|
|
17725
18323
|
|
|
17726
|
-
var css_248z$
|
|
17727
|
-
styleInject(css_248z$
|
|
18324
|
+
var css_248z$j = ".kts-invoice-operate-goods-table-virtual .ktsAntX-table-body {\n height: 280px;\n}\n.kts-invoice-operate-goods-table-virtual .ktsAntX-table.ktsAntX-table-bordered > .ktsAntX-table-container > .ktsAntX-table-header > table > thead > tr > th {\n padding: 0 10px;\n height: 32px;\n background: #f4f4f4;\n}\n.kts-invoice-operate-goods-table-virtual .ktsAntX-table.ktsAntX-table-bordered > .ktsAntX-table-container > .ktsAntX-table-body > table > tbody > tr > td {\n padding: 0;\n height: 32px;\n}\n.kts-invoice-operate-goods-table-virtual .ktsAntX-table .ktsAntX-table-body {\n position: relative;\n}\n.kts-invoice-operate-goods-table-virtual .ktsAntX-table .ktsAntX-table-body > table {\n position: absolute;\n left: 0;\n top: 0;\n}\n.kts-invoice-operate-goods-table-virtual .ktsAntX-table .ktsAntX-table-tbody {\n position: relative;\n}\n.kts-invoice-operate-goods-table-virtual .ktsAntX-checkbox-wrapper .ktsAntX-checkbox-inner {\n width: 16px;\n height: 16px;\n border: 1px solid #d9d9d9;\n border-radius: 2px;\n top: 1px;\n}\n";
|
|
18325
|
+
styleInject(css_248z$j);
|
|
17728
18326
|
|
|
17729
18327
|
function TableVirtual$1 (props) {
|
|
17730
18328
|
var _props$dataSource2;
|
|
@@ -17817,29 +18415,29 @@ function TableVirtual$1 (props) {
|
|
|
17817
18415
|
if (!cont) return;
|
|
17818
18416
|
cont.scrollTop = 0;
|
|
17819
18417
|
}, [(_props$dataSource2 = props.dataSource) === null || _props$dataSource2 === void 0 ? void 0 : _props$dataSource2.length]);
|
|
17820
|
-
return React.createElement("span", {
|
|
18418
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
17821
18419
|
className: "kts-invoice-operate-goods-table-virtual",
|
|
17822
18420
|
ref: function ref(e) {
|
|
17823
18421
|
setSelf(e);
|
|
17824
18422
|
}
|
|
17825
|
-
}, React.createElement(TableManual, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
18423
|
+
}, /*#__PURE__*/React.createElement(TableManual, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
17826
18424
|
dataSource: dataSource,
|
|
17827
18425
|
// 新版本Table会有输入框无法连续输入的问题,先兼容老版本
|
|
17828
18426
|
tableComponent: Table
|
|
17829
18427
|
})));
|
|
17830
18428
|
}
|
|
17831
18429
|
|
|
17832
|
-
var _g$
|
|
18430
|
+
var _g$2, _defs$4;
|
|
17833
18431
|
|
|
17834
|
-
function _extends$
|
|
18432
|
+
function _extends$a() { _extends$a = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$a.apply(this, arguments); }
|
|
17835
18433
|
|
|
17836
18434
|
function SvgFork(props) {
|
|
17837
|
-
return /*#__PURE__*/createElement("svg", _extends$
|
|
18435
|
+
return /*#__PURE__*/createElement("svg", _extends$a({
|
|
17838
18436
|
xmlns: "http://www.w3.org/2000/svg",
|
|
17839
18437
|
width: 16,
|
|
17840
18438
|
height: 16,
|
|
17841
18439
|
fill: "none"
|
|
17842
|
-
}, props), _g$
|
|
18440
|
+
}, props), _g$2 || (_g$2 = /*#__PURE__*/createElement("g", {
|
|
17843
18441
|
clipPath: "url(#fork_svg__clip0_695_1221)",
|
|
17844
18442
|
fill: "#333"
|
|
17845
18443
|
}, /*#__PURE__*/createElement("path", {
|
|
@@ -17848,7 +18446,7 @@ function SvgFork(props) {
|
|
|
17848
18446
|
d: "M10.702 11.329l-5.973-5.97.629-.63 5.971 5.971-.627.629z"
|
|
17849
18447
|
}), /*#__PURE__*/createElement("path", {
|
|
17850
18448
|
d: "M4.669 10.702l5.97-5.971.63.628-5.972 5.972-.628-.629z"
|
|
17851
|
-
}))), _defs$
|
|
18449
|
+
}))), _defs$4 || (_defs$4 = /*#__PURE__*/createElement("defs", null, /*#__PURE__*/createElement("clipPath", {
|
|
17852
18450
|
id: "fork_svg__clip0_695_1221"
|
|
17853
18451
|
}, /*#__PURE__*/createElement("path", {
|
|
17854
18452
|
fill: "#fff",
|
|
@@ -17856,8 +18454,8 @@ function SvgFork(props) {
|
|
|
17856
18454
|
})))));
|
|
17857
18455
|
}
|
|
17858
18456
|
|
|
17859
|
-
var css_248z$
|
|
17860
|
-
styleInject(css_248z$
|
|
18457
|
+
var css_248z$k = ".kts-invoice-operate-goods-list-statistics-digtal {\n overflow-y: scroll;\n /* 设置滚动条滑块颜色 */\n}\n.kts-invoice-operate-goods-list-statistics-digtal::-webkit-scrollbar-track {\n background-color: #f1f1f1;\n}\n.kts-invoice-operate-goods-list-statistics-digtal .statistics-digtal-total-tax,\n.kts-invoice-operate-goods-list-statistics-digtal .statistics-digtal-total {\n height: 42px;\n display: flex;\n align-items: center;\n}\n.kts-invoice-operate-goods-list-statistics-digtal .statistics-digtal-total-tax > div:first-child,\n.kts-invoice-operate-goods-list-statistics-digtal .statistics-digtal-total > div:first-child {\n width: 225px;\n color: #9F613E;\n font-family: PingFang SC;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n.kts-invoice-operate-goods-list-statistics-digtal .statistics-digtal-total-tax {\n border-top: 2px solid #9F613E;\n}\n.kts-invoice-operate-goods-list-statistics-digtal .statistics-digtal-total-tax > div:first-child {\n border-right: 2px solid #9F613E;\n}\n";
|
|
18458
|
+
styleInject(css_248z$k);
|
|
17861
18459
|
|
|
17862
18460
|
var Statistics$1 = (function () {
|
|
17863
18461
|
var controller = Invoice.useInvoiceController();
|
|
@@ -17933,54 +18531,54 @@ var Statistics$1 = (function () {
|
|
|
17933
18531
|
});
|
|
17934
18532
|
return sum.done().toNumber();
|
|
17935
18533
|
}, []);
|
|
17936
|
-
return React.createElement("div", {
|
|
18534
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
17937
18535
|
className: 'kts-invoice-operate-goods-list-statistics-digtal'
|
|
17938
|
-
}, React.createElement("div", {
|
|
18536
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
17939
18537
|
className: 'statistics-digtal-total'
|
|
17940
|
-
}, React.createElement("div", null, "\u5408\u8BA1"), React.createElement("div", {
|
|
18538
|
+
}, /*#__PURE__*/React.createElement("div", null, "\u5408\u8BA1"), /*#__PURE__*/React.createElement("div", {
|
|
17941
18539
|
style: {
|
|
17942
18540
|
flex: 1
|
|
17943
18541
|
}
|
|
17944
|
-
}), React.createElement("div", {
|
|
18542
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
17945
18543
|
style: {
|
|
17946
18544
|
minWidth: 119,
|
|
17947
18545
|
maxWidth: 300,
|
|
17948
18546
|
textAlign: 'right',
|
|
17949
18547
|
paddingRight: 15
|
|
17950
18548
|
}
|
|
17951
|
-
}, "\xA5", parseFloat(isTaxIncluded ? lineAmountIncludeTax : lineAmountExcludeTax).toFixed(2)), React.createElement("div", {
|
|
18549
|
+
}, "\xA5", parseFloat(isTaxIncluded ? lineAmountIncludeTax : lineAmountExcludeTax).toFixed(2)), /*#__PURE__*/React.createElement("div", {
|
|
17952
18550
|
style: {
|
|
17953
18551
|
minWidth: 119,
|
|
17954
18552
|
maxWidth: 300,
|
|
17955
18553
|
textAlign: 'right',
|
|
17956
18554
|
paddingRight: 15
|
|
17957
18555
|
}
|
|
17958
|
-
}, "\xA5", parseFloat(taxAmount).toFixed(2))), React.createElement("div", {
|
|
18556
|
+
}, "\xA5", parseFloat(taxAmount).toFixed(2))), /*#__PURE__*/React.createElement("div", {
|
|
17959
18557
|
className: 'statistics-digtal-total-tax'
|
|
17960
|
-
}, React.createElement("div", null, "\u4EF7\u7A0E\u5408\u8BA1\uFF08\u5927\u5199\uFF09"), React.createElement("div", {
|
|
18558
|
+
}, /*#__PURE__*/React.createElement("div", null, "\u4EF7\u7A0E\u5408\u8BA1\uFF08\u5927\u5199\uFF09"), /*#__PURE__*/React.createElement("div", {
|
|
17961
18559
|
style: {
|
|
17962
18560
|
paddingLeft: 30
|
|
17963
18561
|
}
|
|
17964
|
-
}, React.createElement(Icon, {
|
|
18562
|
+
}, /*#__PURE__*/React.createElement(Icon, {
|
|
17965
18563
|
style: {
|
|
17966
18564
|
fontSize: 16
|
|
17967
18565
|
},
|
|
17968
18566
|
component: SvgFork
|
|
17969
|
-
}), React.createElement("span", {
|
|
18567
|
+
}), /*#__PURE__*/React.createElement("span", {
|
|
17970
18568
|
style: {
|
|
17971
18569
|
fontWeight: 'bold',
|
|
17972
18570
|
marginLeft: 4
|
|
17973
18571
|
}
|
|
17974
|
-
}, toStringChinese(lineAmountIncludeTax))), React.createElement("div", {
|
|
18572
|
+
}, toStringChinese(lineAmountIncludeTax))), /*#__PURE__*/React.createElement("div", {
|
|
17975
18573
|
style: {
|
|
17976
18574
|
flex: 1
|
|
17977
18575
|
}
|
|
17978
|
-
}), React.createElement("div", {
|
|
18576
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
17979
18577
|
style: {
|
|
17980
18578
|
width: 90,
|
|
17981
18579
|
color: '#9F613E'
|
|
17982
18580
|
}
|
|
17983
|
-
}, "\uFF08\u5C0F\u5199\uFF09"), React.createElement("div", {
|
|
18581
|
+
}, "\uFF08\u5C0F\u5199\uFF09"), /*#__PURE__*/React.createElement("div", {
|
|
17984
18582
|
style: {
|
|
17985
18583
|
minWidth: 119,
|
|
17986
18584
|
maxWidth: 300
|
|
@@ -18040,10 +18638,10 @@ var AddRowButton$1 = (function () {
|
|
|
18040
18638
|
}
|
|
18041
18639
|
}, _callee);
|
|
18042
18640
|
})), [controller, rootElement]);
|
|
18043
|
-
if (isAddRow === false) return React.createElement(React.Fragment, null);
|
|
18044
|
-
if (model === 'prefab') return React.createElement(React.Fragment, null);
|
|
18045
|
-
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
18046
|
-
return React.createElement(Button$1, {
|
|
18641
|
+
if (isAddRow === false) return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
18642
|
+
if (model === 'prefab') return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
18643
|
+
if (model === 'readOnly') return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
18644
|
+
return /*#__PURE__*/React.createElement(Button$1, {
|
|
18047
18645
|
size: 'small',
|
|
18048
18646
|
type: 'primary',
|
|
18049
18647
|
onClick: onClick,
|
|
@@ -19426,11 +20024,11 @@ var TaxIncludedSwitch$1 = (function () {
|
|
|
19426
20024
|
return _ref.apply(this, arguments);
|
|
19427
20025
|
};
|
|
19428
20026
|
}(), []);
|
|
19429
|
-
return React.createElement("span", null, React.createElement("label", {
|
|
20027
|
+
return /*#__PURE__*/React.createElement("span", null, /*#__PURE__*/React.createElement("label", {
|
|
19430
20028
|
style: {
|
|
19431
20029
|
marginRight: 2
|
|
19432
20030
|
}
|
|
19433
|
-
}, "\u542B\u7A0E"), React.createElement(Switch, {
|
|
20031
|
+
}, "\u542B\u7A0E"), /*#__PURE__*/React.createElement(Switch, {
|
|
19434
20032
|
disabled: isSwitchTax === false,
|
|
19435
20033
|
checked: isTaxIncluded,
|
|
19436
20034
|
defaultChecked: true,
|
|
@@ -19438,24 +20036,24 @@ var TaxIncludedSwitch$1 = (function () {
|
|
|
19438
20036
|
}));
|
|
19439
20037
|
});
|
|
19440
20038
|
|
|
19441
|
-
var _path$
|
|
20039
|
+
var _path$8;
|
|
19442
20040
|
|
|
19443
|
-
function _extends$
|
|
20041
|
+
function _extends$b() { _extends$b = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$b.apply(this, arguments); }
|
|
19444
20042
|
|
|
19445
20043
|
function SvgMagnifier$1(props) {
|
|
19446
|
-
return /*#__PURE__*/createElement("svg", _extends$
|
|
20044
|
+
return /*#__PURE__*/createElement("svg", _extends$b({
|
|
19447
20045
|
className: "magnifier_svg__icon",
|
|
19448
20046
|
viewBox: "0 0 1024 1024",
|
|
19449
20047
|
xmlns: "http://www.w3.org/2000/svg",
|
|
19450
20048
|
width: 200,
|
|
19451
20049
|
height: 200
|
|
19452
|
-
}, props), _path$
|
|
20050
|
+
}, props), _path$8 || (_path$8 = /*#__PURE__*/createElement("path", {
|
|
19453
20051
|
d: "M985.781 918.594L820.773 765.526c27.373-32.973 49.655-69.577 66.437-109.258 22.933-54.219 34.56-111.795 34.56-171.13 0-59.333-11.627-116.91-34.56-171.13-22.143-52.354-53.838-99.365-94.2-139.729s-87.377-72.056-139.73-94.199c-54.219-22.933-111.795-34.561-171.13-34.561S365.24 57.148 311.022 80.08c-52.354 22.143-99.365 53.837-139.73 94.2s-72.057 87.375-94.2 139.73c-22.932 54.218-34.56 111.795-34.56 171.13 0 59.334 11.628 116.91 34.56 171.129 22.144 52.354 53.838 99.365 94.2 139.729s87.376 72.057 139.73 94.2c54.219 22.933 111.795 34.56 171.13 34.56s116.91-11.627 171.13-34.56c45.352-19.181 86.686-45.543 123.171-78.487l165.803 153.804a31.886 31.886 0 0021.756 8.54c8.593 0 17.163-3.442 23.467-10.238 12.019-12.956 11.26-33.205-1.698-45.223zm-503.63-57.836c-207.117 0-375.62-168.502-375.62-375.62 0-207.117 168.503-375.62 375.62-375.62s375.62 168.503 375.62 375.62c0 207.118-168.503 375.62-375.62 375.62z"
|
|
19454
20052
|
})));
|
|
19455
20053
|
}
|
|
19456
20054
|
|
|
19457
|
-
var css_248z$
|
|
19458
|
-
styleInject(css_248z$
|
|
20055
|
+
var css_248z$l = ".kts-invoice-operate-goods-list-able .kts-invoice-operate-goods-list-search {\n width: 350px;\n border-radius: 999px;\n}\n.kts-invoice-operate-goods-list-able .kts-invoice-operate-goods-list-search input {\n border-radius: 999px;\n border-color: #b8b8b8;\n font-size: 12px;\n}\n";
|
|
20056
|
+
styleInject(css_248z$l);
|
|
19459
20057
|
|
|
19460
20058
|
function Search$1() {
|
|
19461
20059
|
var controller = Invoice.useInvoiceController();
|
|
@@ -19526,12 +20124,12 @@ function Search$1() {
|
|
|
19526
20124
|
};
|
|
19527
20125
|
}());
|
|
19528
20126
|
}, [value, controller]);
|
|
19529
|
-
return React.createElement(Input$1, {
|
|
20127
|
+
return /*#__PURE__*/React.createElement(Input$1, {
|
|
19530
20128
|
readOnly: readOnly,
|
|
19531
20129
|
value: value,
|
|
19532
20130
|
className: "kts-invoice-operate-goods-list-search",
|
|
19533
20131
|
placeholder: "\u8BF7\u60A8\u8F93\u5165\u9879\u76EE\u540D\u79F0\u3001\u89C4\u683C\u578B\u53F7\u3001\u91D1\u989D(".concat(isTaxIncluded ? '含税' : '不含税', ")\u641C\u7D22"),
|
|
19534
|
-
prefix: React.createElement(Icon$1, {
|
|
20132
|
+
prefix: /*#__PURE__*/React.createElement(Icon$1, {
|
|
19535
20133
|
component: SvgMagnifier$1,
|
|
19536
20134
|
style: {
|
|
19537
20135
|
color: "#b8b8b8"
|
|
@@ -19544,8 +20142,8 @@ function Search$1() {
|
|
|
19544
20142
|
});
|
|
19545
20143
|
}
|
|
19546
20144
|
|
|
19547
|
-
var css_248z$
|
|
19548
|
-
styleInject(css_248z$
|
|
20145
|
+
var css_248z$m = ".kts-invoice-operate-goods-list-itemName-drag-container-u {\n position: relative;\n}\n.kts-invoice-operate-goods-list-itemName-drag-container-u::after {\n content: \" \";\n width: 100%;\n height: 2px;\n background: #0074ff;\n position: absolute;\n left: 0;\n top: 0;\n z-index: 9999;\n}\n.kts-invoice-operate-goods-list-itemName-drag-container-d {\n position: relative;\n}\n.kts-invoice-operate-goods-list-itemName-drag-container-d::after {\n content: \" \";\n width: 100%;\n height: 2px;\n background: #0074ff;\n position: absolute;\n left: 0;\n bottom: 0;\n z-index: 9999;\n}\n";
|
|
20146
|
+
styleInject(css_248z$m);
|
|
19549
20147
|
|
|
19550
20148
|
function TableRow$1(props) {
|
|
19551
20149
|
var rowKey = props['data-row-key'];
|
|
@@ -19576,12 +20174,12 @@ function TableRow$1(props) {
|
|
|
19576
20174
|
return undefined;
|
|
19577
20175
|
}
|
|
19578
20176
|
}, [rowKey, goodsMap]);
|
|
19579
|
-
return rowKey === current && current ? React.createElement("tr", {
|
|
20177
|
+
return rowKey === current && current ? /*#__PURE__*/React.createElement("tr", {
|
|
19580
20178
|
style: {
|
|
19581
20179
|
height: 50,
|
|
19582
20180
|
position: 'relative'
|
|
19583
20181
|
}
|
|
19584
|
-
}, React.createElement("div", {
|
|
20182
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
19585
20183
|
style: {
|
|
19586
20184
|
height: 0.5,
|
|
19587
20185
|
width: '100%',
|
|
@@ -19589,22 +20187,24 @@ function TableRow$1(props) {
|
|
|
19589
20187
|
position: 'absolute',
|
|
19590
20188
|
bottom: 0
|
|
19591
20189
|
}
|
|
19592
|
-
})) :
|
|
20190
|
+
})) :
|
|
20191
|
+
/*#__PURE__*/
|
|
20192
|
+
// <tr {...props} className={classnames(props.className, discount, (rowKey === container && current) ? 'kts-invoice-operate-goods-list-itemName-drag-container' : '')} />
|
|
19593
20193
|
React.createElement("tr", _objectSpread2(_objectSpread2({}, props), {}, {
|
|
19594
20194
|
className: classNames(props.className, discount, rowKey === container && current ? 'kts-invoice-operate-goods-list-itemName-drag-container-' + site : undefined)
|
|
19595
20195
|
}));
|
|
19596
20196
|
}
|
|
19597
20197
|
|
|
19598
|
-
var _g$
|
|
20198
|
+
var _g$3, _defs$5;
|
|
19599
20199
|
|
|
19600
|
-
function _extends$
|
|
20200
|
+
function _extends$c() { _extends$c = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$c.apply(this, arguments); }
|
|
19601
20201
|
|
|
19602
|
-
function SvgPlus$
|
|
19603
|
-
return /*#__PURE__*/createElement("svg", _extends$
|
|
20202
|
+
function SvgPlus$2(props) {
|
|
20203
|
+
return /*#__PURE__*/createElement("svg", _extends$c({
|
|
19604
20204
|
xmlns: "http://www.w3.org/2000/svg",
|
|
19605
20205
|
width: 16,
|
|
19606
20206
|
height: 15
|
|
19607
|
-
}, props), _g$
|
|
20207
|
+
}, props), _g$3 || (_g$3 = /*#__PURE__*/createElement("g", {
|
|
19608
20208
|
clipPath: "url(#plus_svg__clip0_715_360)"
|
|
19609
20209
|
}, /*#__PURE__*/createElement("path", {
|
|
19610
20210
|
d: "M8 14.531A7.031 7.031 0 118 .468a7.031 7.031 0 010 14.063zm0-.937A6.094 6.094 0 108 1.406a6.094 6.094 0 000 12.188z"
|
|
@@ -19612,7 +20212,7 @@ function SvgPlus$1(props) {
|
|
|
19612
20212
|
d: "M4.25 7.969a.469.469 0 010-.938h7.5a.47.47 0 010 .938h-7.5z"
|
|
19613
20213
|
}), /*#__PURE__*/createElement("path", {
|
|
19614
20214
|
d: "M7.531 3.75a.469.469 0 01.938 0v7.5a.47.47 0 01-.938 0v-7.5z"
|
|
19615
|
-
}))), _defs$
|
|
20215
|
+
}))), _defs$5 || (_defs$5 = /*#__PURE__*/createElement("defs", null, /*#__PURE__*/createElement("clipPath", {
|
|
19616
20216
|
id: "plus_svg__clip0_715_360"
|
|
19617
20217
|
}, /*#__PURE__*/createElement("path", {
|
|
19618
20218
|
transform: "translate(.5)",
|
|
@@ -19629,13 +20229,13 @@ var TitleText$1 = (function (props) {
|
|
|
19629
20229
|
return !!e.required;
|
|
19630
20230
|
})) || props.required;
|
|
19631
20231
|
}, [rules, props.required]);
|
|
19632
|
-
return React.createElement(React.Fragment, null, required ? React.createElement(Text$5, {
|
|
20232
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, required ? /*#__PURE__*/React.createElement(Text$5, {
|
|
19633
20233
|
type: "danger"
|
|
19634
|
-
}, "*") : React.createElement(React.Fragment, null), children);
|
|
20234
|
+
}, "*") : /*#__PURE__*/React.createElement(React.Fragment, null), children);
|
|
19635
20235
|
});
|
|
19636
20236
|
|
|
19637
|
-
var css_248z$
|
|
19638
|
-
styleInject(css_248z$
|
|
20237
|
+
var css_248z$n = ".kts-invoice-operate-goods-list-itemName-input {\n display: flex;\n flex: 1;\n padding-left: 0;\n height: 31px;\n}\n";
|
|
20238
|
+
styleInject(css_248z$n);
|
|
19639
20239
|
|
|
19640
20240
|
function ItemNameInput$1(props) {
|
|
19641
20241
|
var controller = Invoice.useInvoiceController();
|
|
@@ -19815,14 +20415,14 @@ function ItemNameInput$1(props) {
|
|
|
19815
20415
|
return _ref3.apply(this, arguments);
|
|
19816
20416
|
};
|
|
19817
20417
|
}(), [autoComplete.onItemNameSearch]);
|
|
19818
|
-
return React.createElement("div", {
|
|
20418
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
19819
20419
|
className: 'kts-invoice-operate-goods-list-itemName-input'
|
|
19820
|
-
}, props.shorthand && React.createElement("span", {
|
|
20420
|
+
}, props.shorthand && /*#__PURE__*/React.createElement("span", {
|
|
19821
20421
|
style: {
|
|
19822
20422
|
alignSelf: 'center',
|
|
19823
20423
|
fontSize: 12
|
|
19824
20424
|
}
|
|
19825
|
-
}, "*", props.shorthand, "*"), React.createElement(AutoComplete$1, {
|
|
20425
|
+
}, "*", props.shorthand, "*"), /*#__PURE__*/React.createElement(AutoComplete$1, {
|
|
19826
20426
|
onSearch: onSearch,
|
|
19827
20427
|
value: props.value,
|
|
19828
20428
|
options: options.map(function (e) {
|
|
@@ -19835,7 +20435,7 @@ function ItemNameInput$1(props) {
|
|
|
19835
20435
|
return rootElement || document.body;
|
|
19836
20436
|
},
|
|
19837
20437
|
onSelect: onChangeAutoComplete
|
|
19838
|
-
}, React.createElement(Input$1, {
|
|
20438
|
+
}, /*#__PURE__*/React.createElement(Input$1, {
|
|
19839
20439
|
style: {
|
|
19840
20440
|
height: '100%'
|
|
19841
20441
|
},
|
|
@@ -19845,24 +20445,24 @@ function ItemNameInput$1(props) {
|
|
|
19845
20445
|
})));
|
|
19846
20446
|
}
|
|
19847
20447
|
|
|
19848
|
-
var _path$
|
|
20448
|
+
var _path$9;
|
|
19849
20449
|
|
|
19850
|
-
function _extends$
|
|
20450
|
+
function _extends$d() { _extends$d = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$d.apply(this, arguments); }
|
|
19851
20451
|
|
|
19852
20452
|
function SvgI001$1(props) {
|
|
19853
|
-
return /*#__PURE__*/createElement("svg", _extends$
|
|
20453
|
+
return /*#__PURE__*/createElement("svg", _extends$d({
|
|
19854
20454
|
className: "I001_svg__icon",
|
|
19855
20455
|
viewBox: "0 0 1024 1024",
|
|
19856
20456
|
xmlns: "http://www.w3.org/2000/svg",
|
|
19857
20457
|
width: 200,
|
|
19858
20458
|
height: 200
|
|
19859
|
-
}, props), _path$
|
|
20459
|
+
}, props), _path$9 || (_path$9 = /*#__PURE__*/createElement("path", {
|
|
19860
20460
|
d: "M304.874-5.815h123.758v123.758H304.874V-5.815zm281.277 0H709.91v123.758H586.151V-5.815zM304.874 286.75h123.758v123.758H304.874V286.75zm281.277 0H709.91v123.758H586.151V286.75zM304.874 579.212h123.758V702.97H304.874V579.212zm281.277 0H709.91V702.97H586.151V579.212zM304.874 871.83h123.758v123.758H304.874V871.83zm281.277 0H709.91v123.758H586.151V871.83z"
|
|
19861
20461
|
})));
|
|
19862
20462
|
}
|
|
19863
20463
|
|
|
19864
|
-
var css_248z$
|
|
19865
|
-
styleInject(css_248z$
|
|
20464
|
+
var css_248z$o = ".kts-invoice-operate-goods-list-itemName-drag {\n cursor: all-scroll;\n}\n.kts-invoice-operate-goods-list-itemName-drag-div {\n z-index: 999;\n border: 1px solid #E6E6E6;\n width: 400px;\n height: 50px;\n display: flex;\n gap: 10px;\n align-items: center;\n position: fixed;\n padding: 0 20px;\n top: 100px;\n background: #fff;\n pointer-events: none;\n opacity: 0.4;\n}\n";
|
|
20465
|
+
styleInject(css_248z$o);
|
|
19866
20466
|
|
|
19867
20467
|
function Drag$2(props) {
|
|
19868
20468
|
var record = props.record;
|
|
@@ -19905,7 +20505,7 @@ function Drag$2(props) {
|
|
|
19905
20505
|
var currentGood = controller.state.goodsListState.goodsList.filter(function (e) {
|
|
19906
20506
|
return e.$index === record.$index;
|
|
19907
20507
|
})[0];
|
|
19908
|
-
mounting(React.createElement(DragDiv$1, _objectSpread2({}, currentGood)));
|
|
20508
|
+
mounting( /*#__PURE__*/React.createElement(DragDiv$1, _objectSpread2({}, currentGood)));
|
|
19909
20509
|
rowList.forEach(function (e) {
|
|
19910
20510
|
e.addEventListener('mousemove', onMousemove);
|
|
19911
20511
|
});
|
|
@@ -20066,7 +20666,7 @@ function Drag$2(props) {
|
|
|
20066
20666
|
|
|
20067
20667
|
|
|
20068
20668
|
function insert() {
|
|
20069
|
-
mounting(React.createElement(React.Fragment, null));
|
|
20669
|
+
mounting( /*#__PURE__*/React.createElement(React.Fragment, null));
|
|
20070
20670
|
controller.run( /*#__PURE__*/function () {
|
|
20071
20671
|
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(s) {
|
|
20072
20672
|
var _s$goodsListState$dra, container, current, site, goodsList, goodsMap, _currentGood, currentIndex, moveGoods;
|
|
@@ -20145,7 +20745,7 @@ function Drag$2(props) {
|
|
|
20145
20745
|
}
|
|
20146
20746
|
}, [controller, record, disabled]);
|
|
20147
20747
|
var renderButton = React.useMemo(function () {
|
|
20148
|
-
return React.createElement(Button, {
|
|
20748
|
+
return /*#__PURE__*/React.createElement(Button, {
|
|
20149
20749
|
type: 'link',
|
|
20150
20750
|
style: {
|
|
20151
20751
|
padding: 0
|
|
@@ -20156,13 +20756,13 @@ function Drag$2(props) {
|
|
|
20156
20756
|
},
|
|
20157
20757
|
className: "kts-invoice-operate-goods-list-itemName-drag",
|
|
20158
20758
|
onMouseOver: controller.saveEditGood
|
|
20159
|
-
}, React.createElement(Icon, {
|
|
20759
|
+
}, /*#__PURE__*/React.createElement(Icon, {
|
|
20160
20760
|
component: SvgI001$1
|
|
20161
20761
|
}));
|
|
20162
20762
|
}, [onMouseDown, controller]);
|
|
20163
20763
|
|
|
20164
20764
|
if (disabled) {
|
|
20165
|
-
return React.createElement(Popover, {
|
|
20765
|
+
return /*#__PURE__*/React.createElement(Popover, {
|
|
20166
20766
|
content: '您还有未编辑完成的商品',
|
|
20167
20767
|
trigger: 'focus'
|
|
20168
20768
|
}, renderButton);
|
|
@@ -20202,13 +20802,13 @@ function DragDiv$1(props) {
|
|
|
20202
20802
|
window.removeEventListener('mousemove', onMousemove);
|
|
20203
20803
|
};
|
|
20204
20804
|
});
|
|
20205
|
-
return React.createElement("div", {
|
|
20805
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
20206
20806
|
className: "kts-invoice-operate-goods-list-itemName-drag-div",
|
|
20207
20807
|
style: {
|
|
20208
20808
|
top: y,
|
|
20209
20809
|
left: x
|
|
20210
20810
|
}
|
|
20211
|
-
}, React.createElement("span", null, props.itemName), React.createElement("span", null, props.itemModelName), React.createElement("span", null, props.unit));
|
|
20811
|
+
}, /*#__PURE__*/React.createElement("span", null, props.itemName), /*#__PURE__*/React.createElement("span", null, props.itemModelName), /*#__PURE__*/React.createElement("span", null, props.unit));
|
|
20212
20812
|
}
|
|
20213
20813
|
|
|
20214
20814
|
var useColumns$1 = (function (form) {
|
|
@@ -20337,7 +20937,7 @@ var useColumns$1 = (function (form) {
|
|
|
20337
20937
|
width: 40,
|
|
20338
20938
|
align: 'center',
|
|
20339
20939
|
render: function render(_, record) {
|
|
20340
|
-
return React.createElement(Drag$2, {
|
|
20940
|
+
return /*#__PURE__*/React.createElement(Drag$2, {
|
|
20341
20941
|
record: record
|
|
20342
20942
|
});
|
|
20343
20943
|
}
|
|
@@ -20347,20 +20947,20 @@ var useColumns$1 = (function (form) {
|
|
|
20347
20947
|
dataIndex: 'serialNo',
|
|
20348
20948
|
width: 50,
|
|
20349
20949
|
render: function render(e) {
|
|
20350
|
-
return React.createElement("span", {
|
|
20950
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
20351
20951
|
style: {
|
|
20352
20952
|
padding: '0 10px'
|
|
20353
20953
|
}
|
|
20354
20954
|
}, e);
|
|
20355
20955
|
}
|
|
20356
20956
|
}, {
|
|
20357
|
-
title: React.createElement(TitleText$1, {
|
|
20957
|
+
title: /*#__PURE__*/React.createElement(TitleText$1, {
|
|
20358
20958
|
required: true
|
|
20359
20959
|
}, "\u9879\u76EE\u540D\u79F0"),
|
|
20360
20960
|
key: 'itemName',
|
|
20361
20961
|
render: function render(_, record) {
|
|
20362
20962
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index && !disableds.includes('itemName') && model !== 'prefab') {
|
|
20363
|
-
return React.createElement(Form.Item, null, React.createElement("div", {
|
|
20963
|
+
return /*#__PURE__*/React.createElement(Form.Item, null, /*#__PURE__*/React.createElement("div", {
|
|
20364
20964
|
style: {
|
|
20365
20965
|
display: 'flex'
|
|
20366
20966
|
}
|
|
@@ -20407,12 +21007,12 @@ var useColumns$1 = (function (form) {
|
|
|
20407
21007
|
return validator;
|
|
20408
21008
|
}()
|
|
20409
21009
|
}])
|
|
20410
|
-
})(React.createElement(ItemNameInput$1, {
|
|
21010
|
+
})( /*#__PURE__*/React.createElement(ItemNameInput$1, {
|
|
20411
21011
|
editGood: editGood,
|
|
20412
21012
|
shorthand: editGood.shorthand,
|
|
20413
|
-
suffix: React.createElement(Tooltip$1, {
|
|
21013
|
+
suffix: /*#__PURE__*/React.createElement(Tooltip$1, {
|
|
20414
21014
|
title: "\u70B9\u51FB\u4ECE\u5546\u54C1\u7BA1\u7406\u4E2D\u6DFB\u52A0\u5546\u54C1\u4FE1\u606F"
|
|
20415
|
-
}, React.createElement(Button$1, {
|
|
21015
|
+
}, /*#__PURE__*/React.createElement(Button$1, {
|
|
20416
21016
|
type: "link",
|
|
20417
21017
|
style: {
|
|
20418
21018
|
padding: 0,
|
|
@@ -20420,7 +21020,7 @@ var useColumns$1 = (function (form) {
|
|
|
20420
21020
|
fontSize: 20,
|
|
20421
21021
|
fill: '#0074ff'
|
|
20422
21022
|
},
|
|
20423
|
-
icon: React.createElement(SvgPlus$
|
|
21023
|
+
icon: /*#__PURE__*/React.createElement(SvgPlus$2, null),
|
|
20424
21024
|
onClick: controller.pipeline( /*#__PURE__*/function () {
|
|
20425
21025
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(s) {
|
|
20426
21026
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
@@ -20447,9 +21047,9 @@ var useColumns$1 = (function (form) {
|
|
|
20447
21047
|
}
|
|
20448
21048
|
}))));
|
|
20449
21049
|
} else {
|
|
20450
|
-
return React.createElement("span", null, record.lineAttribute === LineAttributeType$1.折扣行 ? React.createElement("span", {
|
|
21050
|
+
return /*#__PURE__*/React.createElement("span", null, record.lineAttribute === LineAttributeType$1.折扣行 ? /*#__PURE__*/React.createElement("span", {
|
|
20451
21051
|
className: 'goods-list-digtal-discount-tag'
|
|
20452
|
-
}, "\u6298\u6263") : React.createElement(React.Fragment, null), React.createElement(MyItemNameDiv$1, {
|
|
21052
|
+
}, "\u6298\u6263") : /*#__PURE__*/React.createElement(React.Fragment, null), /*#__PURE__*/React.createElement(MyItemNameDiv$1, {
|
|
20453
21053
|
valueT: formatSearch$1(getItemNameWithShorthand({
|
|
20454
21054
|
shorthand: record.shorthand,
|
|
20455
21055
|
full: record.itemNameSelf || ''
|
|
@@ -20463,17 +21063,17 @@ var useColumns$1 = (function (form) {
|
|
|
20463
21063
|
}
|
|
20464
21064
|
}
|
|
20465
21065
|
}, {
|
|
20466
|
-
title: React.createElement(TitleText$1, {
|
|
21066
|
+
title: /*#__PURE__*/React.createElement(TitleText$1, {
|
|
20467
21067
|
rules: (_columnsReplenish$ite = columnsReplenish['itemModelName']) === null || _columnsReplenish$ite === void 0 ? void 0 : _columnsReplenish$ite.rules
|
|
20468
21068
|
}, "\u89C4\u683C\u578B\u53F7"),
|
|
20469
21069
|
key: 'itemModelName',
|
|
20470
21070
|
width: 119,
|
|
20471
21071
|
render: function render(_, record) {
|
|
20472
21072
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index && !disableds.includes('itemModelName') && model !== 'prefab') {
|
|
20473
|
-
return React.createElement(Form.Item, null, getFieldDecorator('itemModelName', {
|
|
21073
|
+
return /*#__PURE__*/React.createElement(Form.Item, null, getFieldDecorator('itemModelName', {
|
|
20474
21074
|
initialValue: isMyShow ? editGood.itemModelNameSelf : editGood.itemModelName,
|
|
20475
21075
|
rules: getReplenishRules('itemModelName')
|
|
20476
|
-
})(React.createElement(MyInput$
|
|
21076
|
+
})( /*#__PURE__*/React.createElement(MyInput$3, {
|
|
20477
21077
|
onChange: function () {
|
|
20478
21078
|
var _onChange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
20479
21079
|
var key, value;
|
|
@@ -20506,7 +21106,7 @@ var useColumns$1 = (function (form) {
|
|
|
20506
21106
|
}()
|
|
20507
21107
|
})));
|
|
20508
21108
|
} else {
|
|
20509
|
-
return React.createElement(MyItemNameDiv$1, {
|
|
21109
|
+
return /*#__PURE__*/React.createElement(MyItemNameDiv$1, {
|
|
20510
21110
|
valueT: formatSearch$1(record.itemModelNameSelf, searchValue),
|
|
20511
21111
|
valueF: formatSearch$1(record.itemModelName, searchValue),
|
|
20512
21112
|
isMyShow: isMyShow
|
|
@@ -20514,17 +21114,17 @@ var useColumns$1 = (function (form) {
|
|
|
20514
21114
|
}
|
|
20515
21115
|
}
|
|
20516
21116
|
}, {
|
|
20517
|
-
title: React.createElement(TitleText$1, {
|
|
21117
|
+
title: /*#__PURE__*/React.createElement(TitleText$1, {
|
|
20518
21118
|
rules: (_columnsReplenish$uni = columnsReplenish['unit']) === null || _columnsReplenish$uni === void 0 ? void 0 : _columnsReplenish$uni.rules
|
|
20519
21119
|
}, "\u5355\u4F4D"),
|
|
20520
21120
|
key: 'unit',
|
|
20521
21121
|
width: 70,
|
|
20522
21122
|
render: function render(_, record) {
|
|
20523
21123
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index && !disableds.includes('unit') && model !== 'prefab') {
|
|
20524
|
-
return React.createElement(Form.Item, null, getFieldDecorator('unit', {
|
|
21124
|
+
return /*#__PURE__*/React.createElement(Form.Item, null, getFieldDecorator('unit', {
|
|
20525
21125
|
initialValue: editGood.unit,
|
|
20526
21126
|
rules: getReplenishRules('unit')
|
|
20527
|
-
})(React.createElement(AutoComplete$1, {
|
|
21127
|
+
})( /*#__PURE__*/React.createElement(AutoComplete$1, {
|
|
20528
21128
|
style: {
|
|
20529
21129
|
width: '100%'
|
|
20530
21130
|
},
|
|
@@ -20562,7 +21162,7 @@ var useColumns$1 = (function (form) {
|
|
|
20562
21162
|
}()
|
|
20563
21163
|
})));
|
|
20564
21164
|
} else {
|
|
20565
|
-
return React.createElement("span", {
|
|
21165
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
20566
21166
|
style: {
|
|
20567
21167
|
padding: '0 10px'
|
|
20568
21168
|
}
|
|
@@ -20570,7 +21170,7 @@ var useColumns$1 = (function (form) {
|
|
|
20570
21170
|
}
|
|
20571
21171
|
}
|
|
20572
21172
|
}, {
|
|
20573
|
-
title: React.createElement(TitleText$1, {
|
|
21173
|
+
title: /*#__PURE__*/React.createElement(TitleText$1, {
|
|
20574
21174
|
rules: (_columnsReplenish$qua = columnsReplenish['quantity']) === null || _columnsReplenish$qua === void 0 ? void 0 : _columnsReplenish$qua.rules
|
|
20575
21175
|
}, "\u6570\u91CF"),
|
|
20576
21176
|
dataIndex: 'quantity',
|
|
@@ -20579,7 +21179,7 @@ var useColumns$1 = (function (form) {
|
|
|
20579
21179
|
width: 149,
|
|
20580
21180
|
render: function render(value, record) {
|
|
20581
21181
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index && !disableds.includes('quantity') && model !== 'prefab') {
|
|
20582
|
-
return React.createElement(Form.Item, null, getFieldDecorator('quantity', {
|
|
21182
|
+
return /*#__PURE__*/React.createElement(Form.Item, null, getFieldDecorator('quantity', {
|
|
20583
21183
|
initialValue: nonScientificNotation(editGood.quantity),
|
|
20584
21184
|
getValueFromEvent: onNumberValueChange,
|
|
20585
21185
|
rules: [].concat(_toConsumableArray(getReplenishRules('quantity')), [{
|
|
@@ -20625,7 +21225,7 @@ var useColumns$1 = (function (form) {
|
|
|
20625
21225
|
return validator;
|
|
20626
21226
|
}()
|
|
20627
21227
|
}])
|
|
20628
|
-
})(React.createElement(MyInput$
|
|
21228
|
+
})( /*#__PURE__*/React.createElement(MyInput$3, {
|
|
20629
21229
|
style: {
|
|
20630
21230
|
textAlign: 'right'
|
|
20631
21231
|
},
|
|
@@ -20657,7 +21257,7 @@ var useColumns$1 = (function (form) {
|
|
|
20657
21257
|
}()
|
|
20658
21258
|
})));
|
|
20659
21259
|
} else {
|
|
20660
|
-
return React.createElement("span", {
|
|
21260
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
20661
21261
|
style: {
|
|
20662
21262
|
padding: '0 10px'
|
|
20663
21263
|
}
|
|
@@ -20665,7 +21265,7 @@ var useColumns$1 = (function (form) {
|
|
|
20665
21265
|
}
|
|
20666
21266
|
}
|
|
20667
21267
|
}, {
|
|
20668
|
-
title: React.createElement(TitleText$1, {
|
|
21268
|
+
title: /*#__PURE__*/React.createElement(TitleText$1, {
|
|
20669
21269
|
rules: (_columnsReplenish$pri = columnsReplenish['priceIncludeTax']) === null || _columnsReplenish$pri === void 0 ? void 0 : _columnsReplenish$pri.rules
|
|
20670
21270
|
}, "\u5355\u4EF7(\u542B\u7A0E)"),
|
|
20671
21271
|
dataIndex: 'priceIncludeTax',
|
|
@@ -20674,7 +21274,7 @@ var useColumns$1 = (function (form) {
|
|
|
20674
21274
|
width: 149,
|
|
20675
21275
|
render: function render(value, record) {
|
|
20676
21276
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index && !disableds.includes('priceIncludeTax') && model !== 'prefab') {
|
|
20677
|
-
return React.createElement(Form.Item, null, getFieldDecorator('priceIncludeTax', {
|
|
21277
|
+
return /*#__PURE__*/React.createElement(Form.Item, null, getFieldDecorator('priceIncludeTax', {
|
|
20678
21278
|
initialValue: nonScientificNotation(editGood.priceIncludeTax),
|
|
20679
21279
|
getValueFromEvent: onNumberValueChange,
|
|
20680
21280
|
rules: [].concat(_toConsumableArray(getReplenishRules('priceIncludeTax')), [{
|
|
@@ -20720,7 +21320,7 @@ var useColumns$1 = (function (form) {
|
|
|
20720
21320
|
return validator;
|
|
20721
21321
|
}()
|
|
20722
21322
|
}])
|
|
20723
|
-
})(React.createElement(MyInput$
|
|
21323
|
+
})( /*#__PURE__*/React.createElement(MyInput$3, {
|
|
20724
21324
|
style: {
|
|
20725
21325
|
textAlign: 'right'
|
|
20726
21326
|
},
|
|
@@ -20732,7 +21332,7 @@ var useColumns$1 = (function (form) {
|
|
|
20732
21332
|
}
|
|
20733
21333
|
})));
|
|
20734
21334
|
} else {
|
|
20735
|
-
return React.createElement("span", {
|
|
21335
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
20736
21336
|
style: {
|
|
20737
21337
|
padding: '0 10px'
|
|
20738
21338
|
}
|
|
@@ -20740,7 +21340,7 @@ var useColumns$1 = (function (form) {
|
|
|
20740
21340
|
}
|
|
20741
21341
|
}
|
|
20742
21342
|
}, {
|
|
20743
|
-
title: React.createElement(TitleText$1, {
|
|
21343
|
+
title: /*#__PURE__*/React.createElement(TitleText$1, {
|
|
20744
21344
|
rules: (_columnsReplenish$pri2 = columnsReplenish['priceExcludeTax']) === null || _columnsReplenish$pri2 === void 0 ? void 0 : _columnsReplenish$pri2.rules
|
|
20745
21345
|
}, "\u5355\u4EF7(\u4E0D\u542B\u7A0E)"),
|
|
20746
21346
|
dataIndex: 'priceExcludeTax',
|
|
@@ -20749,7 +21349,7 @@ var useColumns$1 = (function (form) {
|
|
|
20749
21349
|
width: 149,
|
|
20750
21350
|
render: function render(value, record) {
|
|
20751
21351
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index && !disableds.includes('priceExcludeTax') && model !== 'prefab') {
|
|
20752
|
-
return React.createElement(Form.Item, null, getFieldDecorator('priceExcludeTax', {
|
|
21352
|
+
return /*#__PURE__*/React.createElement(Form.Item, null, getFieldDecorator('priceExcludeTax', {
|
|
20753
21353
|
initialValue: nonScientificNotation(editGood.priceExcludeTax),
|
|
20754
21354
|
getValueFromEvent: onNumberValueChange,
|
|
20755
21355
|
rules: [].concat(_toConsumableArray(getReplenishRules('priceExcludeTax')), [{
|
|
@@ -20795,7 +21395,7 @@ var useColumns$1 = (function (form) {
|
|
|
20795
21395
|
return validator;
|
|
20796
21396
|
}()
|
|
20797
21397
|
}])
|
|
20798
|
-
})(React.createElement(MyInput$
|
|
21398
|
+
})( /*#__PURE__*/React.createElement(MyInput$3, {
|
|
20799
21399
|
style: {
|
|
20800
21400
|
textAlign: 'right'
|
|
20801
21401
|
},
|
|
@@ -20807,7 +21407,7 @@ var useColumns$1 = (function (form) {
|
|
|
20807
21407
|
}
|
|
20808
21408
|
})));
|
|
20809
21409
|
} else {
|
|
20810
|
-
return React.createElement("span", {
|
|
21410
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
20811
21411
|
style: {
|
|
20812
21412
|
padding: '0 10px'
|
|
20813
21413
|
}
|
|
@@ -20815,7 +21415,7 @@ var useColumns$1 = (function (form) {
|
|
|
20815
21415
|
}
|
|
20816
21416
|
}
|
|
20817
21417
|
}, {
|
|
20818
|
-
title: React.createElement(TitleText$1, {
|
|
21418
|
+
title: /*#__PURE__*/React.createElement(TitleText$1, {
|
|
20819
21419
|
required: true
|
|
20820
21420
|
}, "\u91D1\u989D(\u542B\u7A0E)"),
|
|
20821
21421
|
dataIndex: 'lineAmountIncludeTax',
|
|
@@ -20824,7 +21424,7 @@ var useColumns$1 = (function (form) {
|
|
|
20824
21424
|
align: 'right',
|
|
20825
21425
|
render: function render(value, record) {
|
|
20826
21426
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index && !disableds.includes('lineAmountIncludeTax') && model !== 'prefab') {
|
|
20827
|
-
return React.createElement(Form.Item, null, getFieldDecorator('lineAmountIncludeTax', {
|
|
21427
|
+
return /*#__PURE__*/React.createElement(Form.Item, null, getFieldDecorator('lineAmountIncludeTax', {
|
|
20828
21428
|
initialValue: editGood.lineAmountIncludeTax,
|
|
20829
21429
|
getValueFromEvent: onNumberValueChange,
|
|
20830
21430
|
rules: [].concat(_toConsumableArray(getReplenishRules('lineAmountIncludeTax')), [{
|
|
@@ -20884,7 +21484,7 @@ var useColumns$1 = (function (form) {
|
|
|
20884
21484
|
return validator;
|
|
20885
21485
|
}()
|
|
20886
21486
|
}])
|
|
20887
|
-
})(React.createElement(MyInput$
|
|
21487
|
+
})( /*#__PURE__*/React.createElement(MyInput$3, {
|
|
20888
21488
|
style: {
|
|
20889
21489
|
textAlign: 'right'
|
|
20890
21490
|
},
|
|
@@ -20895,7 +21495,7 @@ var useColumns$1 = (function (form) {
|
|
|
20895
21495
|
}
|
|
20896
21496
|
})));
|
|
20897
21497
|
} else {
|
|
20898
|
-
return React.createElement("span", {
|
|
21498
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
20899
21499
|
style: {
|
|
20900
21500
|
padding: '0 10px'
|
|
20901
21501
|
}
|
|
@@ -20903,7 +21503,7 @@ var useColumns$1 = (function (form) {
|
|
|
20903
21503
|
}
|
|
20904
21504
|
}
|
|
20905
21505
|
}, {
|
|
20906
|
-
title: React.createElement(TitleText$1, {
|
|
21506
|
+
title: /*#__PURE__*/React.createElement(TitleText$1, {
|
|
20907
21507
|
required: true
|
|
20908
21508
|
}, "\u91D1\u989D(\u4E0D\u542B\u7A0E)"),
|
|
20909
21509
|
dataIndex: 'lineAmountExcludeTax',
|
|
@@ -20912,7 +21512,7 @@ var useColumns$1 = (function (form) {
|
|
|
20912
21512
|
width: 119,
|
|
20913
21513
|
render: function render(value, record) {
|
|
20914
21514
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index && !disableds.includes('lineAmountExcludeTax') && model !== 'prefab') {
|
|
20915
|
-
return React.createElement(Form.Item, null, getFieldDecorator('lineAmountExcludeTax', {
|
|
21515
|
+
return /*#__PURE__*/React.createElement(Form.Item, null, getFieldDecorator('lineAmountExcludeTax', {
|
|
20916
21516
|
initialValue: editGood.lineAmountExcludeTax,
|
|
20917
21517
|
getValueFromEvent: onNumberValueChange,
|
|
20918
21518
|
rules: [].concat(_toConsumableArray(getReplenishRules('lineAmountExcludeTax')), [{
|
|
@@ -20947,7 +21547,7 @@ var useColumns$1 = (function (form) {
|
|
|
20947
21547
|
return validator;
|
|
20948
21548
|
}()
|
|
20949
21549
|
}])
|
|
20950
|
-
})(React.createElement(MyInput$
|
|
21550
|
+
})( /*#__PURE__*/React.createElement(MyInput$3, {
|
|
20951
21551
|
style: {
|
|
20952
21552
|
textAlign: 'right'
|
|
20953
21553
|
},
|
|
@@ -20958,7 +21558,7 @@ var useColumns$1 = (function (form) {
|
|
|
20958
21558
|
}
|
|
20959
21559
|
})));
|
|
20960
21560
|
} else {
|
|
20961
|
-
return React.createElement("span", {
|
|
21561
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
20962
21562
|
style: {
|
|
20963
21563
|
padding: '0 10px'
|
|
20964
21564
|
}
|
|
@@ -20966,7 +21566,7 @@ var useColumns$1 = (function (form) {
|
|
|
20966
21566
|
}
|
|
20967
21567
|
}
|
|
20968
21568
|
}, {
|
|
20969
|
-
title: React.createElement(TitleText$1, {
|
|
21569
|
+
title: /*#__PURE__*/React.createElement(TitleText$1, {
|
|
20970
21570
|
required: true
|
|
20971
21571
|
}, "\u7A0E\u7387"),
|
|
20972
21572
|
dataIndex: 'taxRate',
|
|
@@ -20975,7 +21575,7 @@ var useColumns$1 = (function (form) {
|
|
|
20975
21575
|
width: 70,
|
|
20976
21576
|
render: function render(value, record) {
|
|
20977
21577
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index && !disableds.includes('taxRate') && !(model === 'prefab' && calculateType === '3')) {
|
|
20978
|
-
return React.createElement(Form.Item, null, getFieldDecorator('taxRate', {
|
|
21578
|
+
return /*#__PURE__*/React.createElement(Form.Item, null, getFieldDecorator('taxRate', {
|
|
20979
21579
|
initialValue: editGood.taxRate,
|
|
20980
21580
|
rules: [].concat(_toConsumableArray(getReplenishRules('taxRate')), [{
|
|
20981
21581
|
required: true,
|
|
@@ -20984,7 +21584,7 @@ var useColumns$1 = (function (form) {
|
|
|
20984
21584
|
pattern: /^[+-]?(0|([1-9]\d*))(\.\d+)?$/,
|
|
20985
21585
|
message: '请选择正确税率'
|
|
20986
21586
|
}])
|
|
20987
|
-
})(React.createElement(Select$1, {
|
|
21587
|
+
})( /*#__PURE__*/React.createElement(Select$1, {
|
|
20988
21588
|
className: "kts-invoice-operate-goods-list-table-tax-rate",
|
|
20989
21589
|
// dropdownMenuStyle={{ textAlign: "right" }}
|
|
20990
21590
|
showArrow: false,
|
|
@@ -20999,13 +21599,13 @@ var useColumns$1 = (function (form) {
|
|
|
20999
21599
|
onChangeTaxRate$1(controller, form, record);
|
|
21000
21600
|
}
|
|
21001
21601
|
}, (record.goodsTaxRateList || taxRateList).map(function (e, i) {
|
|
21002
|
-
return React.createElement(Select$1.Option, {
|
|
21602
|
+
return /*#__PURE__*/React.createElement(Select$1.Option, {
|
|
21003
21603
|
key: i,
|
|
21004
21604
|
value: e
|
|
21005
21605
|
}, e, "%");
|
|
21006
21606
|
}))));
|
|
21007
21607
|
} else {
|
|
21008
|
-
return React.createElement("span", {
|
|
21608
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
21009
21609
|
style: {
|
|
21010
21610
|
padding: '0 10px'
|
|
21011
21611
|
}
|
|
@@ -21013,7 +21613,7 @@ var useColumns$1 = (function (form) {
|
|
|
21013
21613
|
}
|
|
21014
21614
|
}
|
|
21015
21615
|
}, {
|
|
21016
|
-
title: React.createElement(TitleText$1, {
|
|
21616
|
+
title: /*#__PURE__*/React.createElement(TitleText$1, {
|
|
21017
21617
|
rules: (_columnsReplenish$tax = columnsReplenish['taxAmount']) === null || _columnsReplenish$tax === void 0 ? void 0 : _columnsReplenish$tax.rules
|
|
21018
21618
|
}, "\u7A0E\u989D"),
|
|
21019
21619
|
dataIndex: 'taxAmount',
|
|
@@ -21025,11 +21625,11 @@ var useColumns$1 = (function (form) {
|
|
|
21025
21625
|
return getFieldDecorator('taxAmount', {
|
|
21026
21626
|
initialValue: editGood.taxAmount,
|
|
21027
21627
|
rules: getReplenishRules('taxAmount')
|
|
21028
|
-
})(React.createElement(MyDiv$2, {
|
|
21628
|
+
})( /*#__PURE__*/React.createElement(MyDiv$2, {
|
|
21029
21629
|
loading: isCipher$1(changeField, 'taxAmount')
|
|
21030
21630
|
}));
|
|
21031
21631
|
} else {
|
|
21032
|
-
return React.createElement("span", {
|
|
21632
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
21033
21633
|
style: {
|
|
21034
21634
|
padding: '0 10px'
|
|
21035
21635
|
}
|
|
@@ -21081,7 +21681,7 @@ function isCipher$1(name, field) {
|
|
|
21081
21681
|
return name !== field;
|
|
21082
21682
|
}
|
|
21083
21683
|
|
|
21084
|
-
var MyInput$
|
|
21684
|
+
var MyInput$3 = /*#__PURE__*/function (_React$Component) {
|
|
21085
21685
|
_inherits(MyInput, _React$Component);
|
|
21086
21686
|
|
|
21087
21687
|
var _super = _createSuper(MyInput);
|
|
@@ -21096,13 +21696,13 @@ var MyInput$2 = /*#__PURE__*/function (_React$Component) {
|
|
|
21096
21696
|
key: "render",
|
|
21097
21697
|
value: function render() {
|
|
21098
21698
|
if (this.props.loading) {
|
|
21099
|
-
return React.createElement(Spin$1, {
|
|
21699
|
+
return /*#__PURE__*/React.createElement(Spin$1, {
|
|
21100
21700
|
size: "small"
|
|
21101
|
-
}, React.createElement(Input$1, _objectSpread2(_objectSpread2({}, this.props), {}, {
|
|
21701
|
+
}, /*#__PURE__*/React.createElement(Input$1, _objectSpread2(_objectSpread2({}, this.props), {}, {
|
|
21102
21702
|
autoComplete: "off"
|
|
21103
21703
|
})));
|
|
21104
21704
|
} else {
|
|
21105
|
-
return React.createElement(Input$1, _objectSpread2(_objectSpread2({}, this.props), {}, {
|
|
21705
|
+
return /*#__PURE__*/React.createElement(Input$1, _objectSpread2(_objectSpread2({}, this.props), {}, {
|
|
21106
21706
|
autoComplete: "off"
|
|
21107
21707
|
}));
|
|
21108
21708
|
}
|
|
@@ -21127,15 +21727,15 @@ var MyDiv$2 = /*#__PURE__*/function (_React$Component2) {
|
|
|
21127
21727
|
key: "render",
|
|
21128
21728
|
value: function render() {
|
|
21129
21729
|
if (this.props.loading) {
|
|
21130
|
-
return React.createElement(Spin$1, {
|
|
21730
|
+
return /*#__PURE__*/React.createElement(Spin$1, {
|
|
21131
21731
|
size: "small"
|
|
21132
|
-
}, React.createElement("span", {
|
|
21732
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
21133
21733
|
style: {
|
|
21134
21734
|
padding: '0 10px'
|
|
21135
21735
|
}
|
|
21136
21736
|
}, this.props.value));
|
|
21137
21737
|
} else {
|
|
21138
|
-
return React.createElement("span", {
|
|
21738
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
21139
21739
|
style: {
|
|
21140
21740
|
padding: '0 10px'
|
|
21141
21741
|
}
|
|
@@ -21168,32 +21768,32 @@ var MyItemNameDiv$1 = /*#__PURE__*/function (_React$Component3) {
|
|
|
21168
21768
|
|
|
21169
21769
|
if (isMyShow) {
|
|
21170
21770
|
if (valueT) {
|
|
21171
|
-
return React.createElement(Tooltip$1, {
|
|
21771
|
+
return /*#__PURE__*/React.createElement(Tooltip$1, {
|
|
21172
21772
|
title: valueT
|
|
21173
|
-
}, React.createElement("span", {
|
|
21773
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
21174
21774
|
style: _objectSpread2(_objectSpread2({}, MyItemNameStyle), {}, {
|
|
21175
21775
|
color: '#0074ff'
|
|
21176
21776
|
})
|
|
21177
21777
|
}, valueT));
|
|
21178
21778
|
} else {
|
|
21179
|
-
return React.createElement(Tooltip$1, {
|
|
21779
|
+
return /*#__PURE__*/React.createElement(Tooltip$1, {
|
|
21180
21780
|
title: valueF
|
|
21181
|
-
}, React.createElement("span", {
|
|
21781
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
21182
21782
|
style: MyItemNameStyle
|
|
21183
21783
|
}, valueF));
|
|
21184
21784
|
}
|
|
21185
21785
|
} else {
|
|
21186
21786
|
if (valueF) {
|
|
21187
|
-
return React.createElement(Tooltip$1, {
|
|
21787
|
+
return /*#__PURE__*/React.createElement(Tooltip$1, {
|
|
21188
21788
|
title: valueF
|
|
21189
|
-
}, React.createElement("span", {
|
|
21789
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
21190
21790
|
style: MyItemNameStyle
|
|
21191
21791
|
}, valueF));
|
|
21192
21792
|
} else {
|
|
21193
|
-
return React.createElement(Tooltip$1, {
|
|
21793
|
+
return /*#__PURE__*/React.createElement(Tooltip$1, {
|
|
21194
21794
|
title: valueT,
|
|
21195
21795
|
style: MyItemNameStyle
|
|
21196
|
-
}, React.createElement("span", {
|
|
21796
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
21197
21797
|
style: _objectSpread2(_objectSpread2({}, MyItemNameStyle), {}, {
|
|
21198
21798
|
color: '#0074ff'
|
|
21199
21799
|
})
|
|
@@ -21215,7 +21815,7 @@ function formatSearch$1(value, search) {
|
|
|
21215
21815
|
return dcoding$1(e);
|
|
21216
21816
|
}).join("<span class=\"kts-invoice-operate-goods-list-table-search-protrude\" >".concat(search, "</span>"));
|
|
21217
21817
|
|
|
21218
|
-
return React.createElement("span", {
|
|
21818
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
21219
21819
|
dangerouslySetInnerHTML: {
|
|
21220
21820
|
__html: __html
|
|
21221
21821
|
}
|
|
@@ -21625,7 +22225,7 @@ var useRowSelection$1 = (function () {
|
|
|
21625
22225
|
};
|
|
21626
22226
|
}(), [controller]);
|
|
21627
22227
|
var columnTitle = React.useMemo(function () {
|
|
21628
|
-
return React.createElement(Checkbox, {
|
|
22228
|
+
return /*#__PURE__*/React.createElement(Checkbox, {
|
|
21629
22229
|
onChange: onClickSelectAll,
|
|
21630
22230
|
indeterminate: indeterminate,
|
|
21631
22231
|
checked: isAll
|
|
@@ -21774,19 +22374,19 @@ var useDelRowButton$1 = (function () {
|
|
|
21774
22374
|
}, _callee2);
|
|
21775
22375
|
})), []);
|
|
21776
22376
|
var menuItem = React.useMemo(function () {
|
|
21777
|
-
if (model === 'prefab') return React.createElement(React.Fragment, null);
|
|
21778
|
-
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
21779
|
-
return React.createElement(Menu$1.Item, {
|
|
22377
|
+
if (model === 'prefab') return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
22378
|
+
if (model === 'readOnly') return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
22379
|
+
return /*#__PURE__*/React.createElement(Menu$1.Item, {
|
|
21780
22380
|
key: "1",
|
|
21781
22381
|
onClick: onClick,
|
|
21782
22382
|
disabled: disabled
|
|
21783
22383
|
}, " \u5220\u9664\u884C ");
|
|
21784
22384
|
}, [model, onClick, disabled]);
|
|
21785
22385
|
var button = React.useMemo(function () {
|
|
21786
|
-
if (isRemRow === false) return React.createElement(React.Fragment, null);
|
|
21787
|
-
if (model === 'prefab') return React.createElement(React.Fragment, null);
|
|
21788
|
-
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
21789
|
-
return React.createElement(Button$1, {
|
|
22386
|
+
if (isRemRow === false) return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
22387
|
+
if (model === 'prefab') return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
22388
|
+
if (model === 'readOnly') return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
22389
|
+
return /*#__PURE__*/React.createElement(Button$1, {
|
|
21790
22390
|
size: 'small',
|
|
21791
22391
|
onClick: onClick,
|
|
21792
22392
|
disabled: disabled
|
|
@@ -22017,16 +22617,16 @@ var useAddDiscountRowButton$1 = (function () {
|
|
|
22017
22617
|
}, [isAddDiscount, model]);
|
|
22018
22618
|
var button = React.useMemo(function () {
|
|
22019
22619
|
if (isEnable) {
|
|
22020
|
-
return React.createElement(React.Fragment, null, React.createElement(Button$1, {
|
|
22620
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Button$1, {
|
|
22021
22621
|
size: 'small',
|
|
22022
22622
|
onClick: onOpen,
|
|
22023
22623
|
disabled: disabled
|
|
22024
|
-
}, "\u6DFB\u52A0\u6298\u6263"), React.createElement(AddDiscountRowDrawer, {
|
|
22624
|
+
}, "\u6DFB\u52A0\u6298\u6263"), /*#__PURE__*/React.createElement(AddDiscountRowDrawer, {
|
|
22025
22625
|
open: open,
|
|
22026
22626
|
onClose: onClose
|
|
22027
22627
|
}));
|
|
22028
22628
|
} else {
|
|
22029
|
-
return React.createElement(React.Fragment, null);
|
|
22629
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
22030
22630
|
}
|
|
22031
22631
|
}, [open, onOpen, onClose, isEnable, disabled]);
|
|
22032
22632
|
return {
|
|
@@ -22207,35 +22807,35 @@ function AddDiscountRowDrawer(props) {
|
|
|
22207
22807
|
discolineValue: undefined
|
|
22208
22808
|
}));
|
|
22209
22809
|
}, [formValues === null || formValues === void 0 ? void 0 : formValues.discolineType]);
|
|
22210
|
-
return React.createElement(Drawer$1, {
|
|
22810
|
+
return /*#__PURE__*/React.createElement(Drawer$1, {
|
|
22211
22811
|
title: "\u6DFB\u52A0\u6298\u6263",
|
|
22212
22812
|
placement: "right",
|
|
22213
22813
|
width: 350,
|
|
22214
22814
|
onClose: onClose,
|
|
22215
22815
|
open: open,
|
|
22216
|
-
footer: React.createElement(Space, {
|
|
22816
|
+
footer: /*#__PURE__*/React.createElement(Space, {
|
|
22217
22817
|
size: "middle",
|
|
22218
22818
|
style: {
|
|
22219
22819
|
display: 'flex',
|
|
22220
22820
|
justifyContent: 'end'
|
|
22221
22821
|
}
|
|
22222
|
-
}, React.createElement(Button$1, {
|
|
22822
|
+
}, /*#__PURE__*/React.createElement(Button$1, {
|
|
22223
22823
|
onClick: onDefine,
|
|
22224
22824
|
type: 'primary'
|
|
22225
|
-
}, "\u786E\u5B9A"), React.createElement(Button$1, {
|
|
22825
|
+
}, "\u786E\u5B9A"), /*#__PURE__*/React.createElement(Button$1, {
|
|
22226
22826
|
onClick: onClose
|
|
22227
22827
|
}, "\u53D6\u6D88"))
|
|
22228
|
-
}, React.createElement(Form$1, {
|
|
22828
|
+
}, /*#__PURE__*/React.createElement(Form$1, {
|
|
22229
22829
|
form: form,
|
|
22230
22830
|
layout: 'vertical',
|
|
22231
22831
|
onChange: onChangeForm
|
|
22232
|
-
}, React.createElement(Form$1.Item, {
|
|
22832
|
+
}, /*#__PURE__*/React.createElement(Form$1.Item, {
|
|
22233
22833
|
label: "\u5546\u54C1\u91D1\u989D\uFF08\u542B\u7A0E\uFF09"
|
|
22234
|
-
}, totalAmount.toFixed(2), "\uFF08\u5171 ", discountGood.length, " \u884C\uFF09"), React.createElement(Form$1.Item, {
|
|
22834
|
+
}, totalAmount.toFixed(2), "\uFF08\u5171 ", discountGood.length, " \u884C\uFF09"), /*#__PURE__*/React.createElement(Form$1.Item, {
|
|
22235
22835
|
label: "\u6298\u6263\u65B9\u5F0F",
|
|
22236
22836
|
name: 'discolineType',
|
|
22237
22837
|
initialValue: '1'
|
|
22238
|
-
}, React.createElement(Radio.Group, {
|
|
22838
|
+
}, /*#__PURE__*/React.createElement(Radio.Group, {
|
|
22239
22839
|
options: [{
|
|
22240
22840
|
label: '按金额折扣',
|
|
22241
22841
|
value: '1'
|
|
@@ -22243,7 +22843,7 @@ function AddDiscountRowDrawer(props) {
|
|
|
22243
22843
|
label: '按比例折扣',
|
|
22244
22844
|
value: '2'
|
|
22245
22845
|
}]
|
|
22246
|
-
})), (formValues === null || formValues === void 0 ? void 0 : formValues.discolineType) === '2' ? React.createElement(Form$1.Item, {
|
|
22846
|
+
})), (formValues === null || formValues === void 0 ? void 0 : formValues.discolineType) === '2' ? /*#__PURE__*/React.createElement(Form$1.Item, {
|
|
22247
22847
|
label: "\u6298\u6263\u6BD4\u4F8B\uFF08%\uFF09\uFF08\u542B\u7A0E\uFF09",
|
|
22248
22848
|
name: 'discolineValue',
|
|
22249
22849
|
rules: [{
|
|
@@ -22294,11 +22894,11 @@ function AddDiscountRowDrawer(props) {
|
|
|
22294
22894
|
return validator;
|
|
22295
22895
|
}()
|
|
22296
22896
|
}]
|
|
22297
|
-
}, React.createElement(InputNumber, {
|
|
22897
|
+
}, /*#__PURE__*/React.createElement(InputNumber, {
|
|
22298
22898
|
style: {
|
|
22299
22899
|
width: '100%'
|
|
22300
22900
|
}
|
|
22301
|
-
})) : React.createElement(Form$1.Item, {
|
|
22901
|
+
})) : /*#__PURE__*/React.createElement(Form$1.Item, {
|
|
22302
22902
|
label: "\u6298\u6263\u91D1\u989D\uFF08\u5143\uFF09\uFF08\u542B\u7A0E\uFF09",
|
|
22303
22903
|
name: 'discolineValue',
|
|
22304
22904
|
rules: [{
|
|
@@ -22349,7 +22949,7 @@ function AddDiscountRowDrawer(props) {
|
|
|
22349
22949
|
return validator;
|
|
22350
22950
|
}()
|
|
22351
22951
|
}]
|
|
22352
|
-
}, React.createElement(InputNumber, {
|
|
22952
|
+
}, /*#__PURE__*/React.createElement(InputNumber, {
|
|
22353
22953
|
style: {
|
|
22354
22954
|
width: '100%'
|
|
22355
22955
|
}
|
|
@@ -22493,16 +23093,16 @@ var useEndowCodeButton$1 = (function () {
|
|
|
22493
23093
|
}, _callee2);
|
|
22494
23094
|
})), [controller]);
|
|
22495
23095
|
var menuItem = React.useMemo(function () {
|
|
22496
|
-
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
22497
|
-
return React.createElement(Menu$1.Item, {
|
|
23096
|
+
if (model === 'readOnly') return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
23097
|
+
return /*#__PURE__*/React.createElement(Menu$1.Item, {
|
|
22498
23098
|
key: "2",
|
|
22499
23099
|
onClick: onClick,
|
|
22500
23100
|
disabled: disabled
|
|
22501
23101
|
}, "\u6279\u91CF\u8D4B\u7801");
|
|
22502
23102
|
}, [onClick, disabled, model]);
|
|
22503
23103
|
var button = React.useMemo(function () {
|
|
22504
|
-
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
22505
|
-
return React.createElement(Button$1, {
|
|
23104
|
+
if (model === 'readOnly') return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
23105
|
+
return /*#__PURE__*/React.createElement(Button$1, {
|
|
22506
23106
|
onClick: onClick,
|
|
22507
23107
|
disabled: disabled,
|
|
22508
23108
|
size: 'small'
|
|
@@ -22564,14 +23164,14 @@ var useEmptyRefill = (function () {
|
|
|
22564
23164
|
}());
|
|
22565
23165
|
}, [controller]);
|
|
22566
23166
|
var button = React.useMemo(function () {
|
|
22567
|
-
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
22568
|
-
if (model === 'prefab') return React.createElement(React.Fragment, null);
|
|
22569
|
-
return React.createElement(Popconfirm, {
|
|
23167
|
+
if (model === 'readOnly') return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
23168
|
+
if (model === 'prefab') return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
23169
|
+
return /*#__PURE__*/React.createElement(Popconfirm, {
|
|
22570
23170
|
title: "\u5C06\u8981\u6E05\u7A7A\u6240\u6709\u9879\u76EE\u4FE1\u606F\uFF0C\u662F\u5426\u7EE7\u7EED",
|
|
22571
23171
|
onConfirm: confirm,
|
|
22572
23172
|
okText: "\u786E\u5B9A",
|
|
22573
23173
|
cancelText: "\u53D6\u6D88"
|
|
22574
|
-
}, React.createElement(Button$1, {
|
|
23174
|
+
}, /*#__PURE__*/React.createElement(Button$1, {
|
|
22575
23175
|
size: 'small'
|
|
22576
23176
|
}, "\u6E05\u7A7A\u91CD\u586B"));
|
|
22577
23177
|
}, [model, confirm]);
|
|
@@ -22580,8 +23180,8 @@ var useEmptyRefill = (function () {
|
|
|
22580
23180
|
};
|
|
22581
23181
|
});
|
|
22582
23182
|
|
|
22583
|
-
var css_248z$
|
|
22584
|
-
styleInject(css_248z$
|
|
23183
|
+
var css_248z$p = ".goods-list-digtal-reselect-invoice-typeModal-radio {\n width: 100%;\n display: flex !important;\n}\n.goods-list-digtal-reselect-invoice-typeModal-radio > label {\n flex: 1;\n}\n";
|
|
23184
|
+
styleInject(css_248z$p);
|
|
22585
23185
|
|
|
22586
23186
|
function InvoiceTypeModal(props) {
|
|
22587
23187
|
var _props$disableds = props.disableds,
|
|
@@ -22638,14 +23238,14 @@ function InvoiceTypeModal(props) {
|
|
|
22638
23238
|
setValues(values);
|
|
22639
23239
|
}
|
|
22640
23240
|
}, [props.open, props.defaultBillingType, props.defaultBusiness, props.defaultInvoiceType, form]);
|
|
22641
|
-
return React.createElement(Modal, {
|
|
23241
|
+
return /*#__PURE__*/React.createElement(Modal, {
|
|
22642
23242
|
title: props.modalTitle || "选择开具信息",
|
|
22643
23243
|
open: props.open,
|
|
22644
23244
|
onOk: onConfirm,
|
|
22645
23245
|
onCancel: props.onCancel,
|
|
22646
23246
|
okText: "\u786E\u5B9A",
|
|
22647
23247
|
cancelText: "\u53D6\u6D88"
|
|
22648
|
-
}, React.createElement(Form$1, {
|
|
23248
|
+
}, /*#__PURE__*/React.createElement(Form$1, {
|
|
22649
23249
|
form: form,
|
|
22650
23250
|
layout: "vertical",
|
|
22651
23251
|
style: {
|
|
@@ -22654,13 +23254,13 @@ function InvoiceTypeModal(props) {
|
|
|
22654
23254
|
onValuesChange: function onValuesChange(_, e) {
|
|
22655
23255
|
setValues(e);
|
|
22656
23256
|
}
|
|
22657
|
-
}, React.createElement(Row, {
|
|
23257
|
+
}, /*#__PURE__*/React.createElement(Row, {
|
|
22658
23258
|
gutter: [16, 16]
|
|
22659
|
-
}, React.createElement(Col, {
|
|
23259
|
+
}, /*#__PURE__*/React.createElement(Col, {
|
|
22660
23260
|
span: 24
|
|
22661
|
-
}, React.createElement(Form$1.Item, {
|
|
23261
|
+
}, /*#__PURE__*/React.createElement(Form$1.Item, {
|
|
22662
23262
|
name: 'billingType'
|
|
22663
|
-
}, React.createElement(Radio.Group, {
|
|
23263
|
+
}, /*#__PURE__*/React.createElement(Radio.Group, {
|
|
22664
23264
|
size: 'large',
|
|
22665
23265
|
className: "goods-list-digtal-reselect-invoice-typeModal-radio",
|
|
22666
23266
|
optionType: "button",
|
|
@@ -22673,27 +23273,27 @@ function InvoiceTypeModal(props) {
|
|
|
22673
23273
|
label: '税控发票',
|
|
22674
23274
|
value: 'taxation'
|
|
22675
23275
|
}]
|
|
22676
|
-
}))), React.createElement(Col, {
|
|
23276
|
+
}))), /*#__PURE__*/React.createElement(Col, {
|
|
22677
23277
|
span: 12
|
|
22678
|
-
}, React.createElement(Form$1.Item, {
|
|
23278
|
+
}, /*#__PURE__*/React.createElement(Form$1.Item, {
|
|
22679
23279
|
name: 'invoiceType',
|
|
22680
23280
|
label: "\u9009\u62E9\u7968\u7C7B",
|
|
22681
23281
|
rules: [{
|
|
22682
23282
|
required: true,
|
|
22683
23283
|
message: '选择票类必填'
|
|
22684
23284
|
}]
|
|
22685
|
-
}, React.createElement(Select$1, {
|
|
23285
|
+
}, /*#__PURE__*/React.createElement(Select$1, {
|
|
22686
23286
|
size: 'large',
|
|
22687
23287
|
allowClear: true,
|
|
22688
23288
|
placeholder: "\u8BF7\u9009\u62E9\uFF08\u5FC5\u586B\u9879\uFF09",
|
|
22689
23289
|
disabled: disableds.indexOf('invoiceType') >= 0,
|
|
22690
23290
|
options: props.invoiceTypeOptions
|
|
22691
|
-
}))), React.createElement(Col, {
|
|
23291
|
+
}))), /*#__PURE__*/React.createElement(Col, {
|
|
22692
23292
|
span: 12
|
|
22693
|
-
}, React.createElement(Form$1.Item, {
|
|
23293
|
+
}, /*#__PURE__*/React.createElement(Form$1.Item, {
|
|
22694
23294
|
name: 'business',
|
|
22695
23295
|
label: "\u7279\u5B9A\u4E1A\u52A1"
|
|
22696
|
-
}, React.createElement(Select$1, {
|
|
23296
|
+
}, /*#__PURE__*/React.createElement(Select$1, {
|
|
22697
23297
|
size: 'large',
|
|
22698
23298
|
allowClear: true,
|
|
22699
23299
|
placeholder: "\u8BF7\u9009\u62E9\uFF08\u975E\u5FC5\u586B\u9879\uFF09",
|
|
@@ -22738,11 +23338,11 @@ var useReselectInvoiceType = (function () {
|
|
|
22738
23338
|
return true;
|
|
22739
23339
|
}, [model, typeModalProps === null || typeModalProps === void 0 ? void 0 : typeModalProps.isDisabled]);
|
|
22740
23340
|
var button = React.useMemo(function () {
|
|
22741
|
-
if (isEnable === false) return React.createElement(React.Fragment, null);
|
|
22742
|
-
return React.createElement(React.Fragment, null, React.createElement(Button$1, {
|
|
23341
|
+
if (isEnable === false) return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
23342
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Button$1, {
|
|
22743
23343
|
size: 'small',
|
|
22744
23344
|
onClick: onOpen
|
|
22745
|
-
}, "\u91CD\u9009\u53D1\u7968\u7C7B\u578B"), React.createElement(InvoiceTypeModal, _objectSpread2(_objectSpread2({}, typeModalProps), {}, {
|
|
23345
|
+
}, "\u91CD\u9009\u53D1\u7968\u7C7B\u578B"), /*#__PURE__*/React.createElement(InvoiceTypeModal, _objectSpread2(_objectSpread2({}, typeModalProps), {}, {
|
|
22746
23346
|
open: open,
|
|
22747
23347
|
onCancel: onClose,
|
|
22748
23348
|
onOk: onOk
|
|
@@ -22753,8 +23353,8 @@ var useReselectInvoiceType = (function () {
|
|
|
22753
23353
|
};
|
|
22754
23354
|
});
|
|
22755
23355
|
|
|
22756
|
-
var css_248z$
|
|
22757
|
-
styleInject(css_248z$
|
|
23356
|
+
var css_248z$q = ".kts-invoice-operate-goods-list-digtal .goods-list-digtal-discount-tag {\n display: inline-block;\n height: 20px;\n line-height: 20px;\n border: 1px solid;\n padding: 0 5px;\n border-radius: 4px;\n}\n.kts-invoice-operate-goods-list-digtal .kts-invoice-operate-goods-list-table-tax-rate .ktsAnt3x-select-selection-selected-value {\n float: right;\n}\n.kts-invoice-operate-goods-list-digtal .kts-invoice-operate-goods-list-able {\n display: flex;\n padding: 10px;\n border-bottom: 2px solid #9F613E;\n gap: 10px;\n align-items: center;\n height: 48px;\n}\n.kts-invoice-operate-goods-list-digtal .ktsAntX-table .ktsAntX-table-row.kts-invoice-operate-goods-be-discount .ktsAntX-table-cell {\n color: #f00;\n}\n.kts-invoice-operate-goods-list-table-digtal .ktsAnt3x-form-item-control.has-error {\n border: 1px solid #f00;\n}\n.kts-invoice-operate-goods-list-table-digtal .kts-invoice-operate-goods-list-table.kts-invoice-operate-prefab .ktsAnt3x-table-row {\n color: rgba(0, 0, 0, 0.25);\n background: #f5f5f5;\n}\n.kts-invoice-operate-goods-list-table-digtal .kts-invoice-operate-goods-list-table-search-protrude {\n background: #ff0;\n color: #000;\n font-weight: bold;\n}\n";
|
|
23357
|
+
styleInject(css_248z$q);
|
|
22758
23358
|
|
|
22759
23359
|
var GoodsList$1 = /*#__PURE__*/function (_React$Component) {
|
|
22760
23360
|
_inherits(GoodsList, _React$Component);
|
|
@@ -22770,7 +23370,7 @@ var GoodsList$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
22770
23370
|
_createClass(GoodsList, [{
|
|
22771
23371
|
key: "render",
|
|
22772
23372
|
value: function render() {
|
|
22773
|
-
return React.createElement(Main$3, _objectSpread2({}, this.props));
|
|
23373
|
+
return /*#__PURE__*/React.createElement(Main$3, _objectSpread2({}, this.props));
|
|
22774
23374
|
}
|
|
22775
23375
|
}]);
|
|
22776
23376
|
|
|
@@ -22971,20 +23571,20 @@ var Main$3 = decorator(Form.create())(function (props) {
|
|
|
22971
23571
|
};
|
|
22972
23572
|
}())();
|
|
22973
23573
|
}, [controller, props.isSwitchTax]);
|
|
22974
|
-
return React.createElement("div", {
|
|
23574
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
22975
23575
|
className: "kts-invoice-operate-goods-list-digtal",
|
|
22976
23576
|
onClick: function onClick(e) {
|
|
22977
23577
|
e.stopPropagation();
|
|
22978
23578
|
}
|
|
22979
|
-
}, React.createElement("div", {
|
|
23579
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
22980
23580
|
className: "kts-invoice-operate-goods-list-able"
|
|
22981
|
-
}, React.createElement(AddRowButton$1, null), delRowButton.button, addDiscountRowButton.button, endowCodeButton.button, React.createElement(TaxIncludedSwitch$1, null), React.createElement(Search$1, null), React.createElement("div", {
|
|
23581
|
+
}, /*#__PURE__*/React.createElement(AddRowButton$1, null), delRowButton.button, addDiscountRowButton.button, endowCodeButton.button, /*#__PURE__*/React.createElement(TaxIncludedSwitch$1, null), /*#__PURE__*/React.createElement(Search$1, null), /*#__PURE__*/React.createElement("div", {
|
|
22982
23582
|
style: {
|
|
22983
23583
|
flex: 1
|
|
22984
23584
|
}
|
|
22985
|
-
}), props.menuExpansion, reselectInvoiceType.button, emptyRefill.button), React.createElement("div", {
|
|
23585
|
+
}), props.menuExpansion, reselectInvoiceType.button, emptyRefill.button), /*#__PURE__*/React.createElement("div", {
|
|
22986
23586
|
className: classNames('kts-invoice-operate-goods-list-table-digtal')
|
|
22987
|
-
}, React.createElement(TableVirtual$1, {
|
|
23587
|
+
}, /*#__PURE__*/React.createElement(TableVirtual$1, {
|
|
22988
23588
|
size: "small",
|
|
22989
23589
|
rowKey: "$index",
|
|
22990
23590
|
pagination: false,
|
|
@@ -23006,11 +23606,11 @@ var Main$3 = decorator(Form.create())(function (props) {
|
|
|
23006
23606
|
}
|
|
23007
23607
|
};
|
|
23008
23608
|
}
|
|
23009
|
-
})), React.createElement("div", null, React.createElement(Statistics$1, null)));
|
|
23609
|
+
})), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Statistics$1, null)));
|
|
23010
23610
|
});
|
|
23011
23611
|
|
|
23012
|
-
var css_248z$
|
|
23013
|
-
styleInject(css_248z$
|
|
23612
|
+
var css_248z$r = ".kts-invoice-operate-real-estate-info-digtal {\n padding: 20px;\n border-bottom: 2px solid #9F613E;\n border-left: 2px solid #9F613E;\n border-right: 2px solid #9F613E;\n}\n.kts-invoice-operate-real-estate-info-digtal .real-estate-info-digtal-label {\n color: #9F613E;\n font-weight: bold;\n}\n.kts-invoice-operate-real-estate-info-digtal .ktsAnt3x-row.ktsAnt3x-form-item {\n margin-bottom: 0;\n}\n";
|
|
23613
|
+
styleInject(css_248z$r);
|
|
23014
23614
|
|
|
23015
23615
|
var RangePicker = DatePicker.RangePicker;
|
|
23016
23616
|
/** 特殊信息-不动产经营租赁服务 */
|
|
@@ -23028,31 +23628,31 @@ var RealEstateInfo = decorator(Form.create())(function (props) {
|
|
|
23028
23628
|
}, [model]); // 注册 form
|
|
23029
23629
|
|
|
23030
23630
|
controller.useForm('realEstateInfo', form);
|
|
23031
|
-
return React.createElement("div", {
|
|
23631
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
23032
23632
|
className: "kts-invoice-operate-real-estate-info-digtal"
|
|
23033
|
-
}, React.createElement("div", {
|
|
23633
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
23034
23634
|
className: 'real-estate-info-digtal-label'
|
|
23035
|
-
}, "\u7279\u6B8A\u4FE1\u606F-\u4E0D\u52A8\u4EA7\u7ECF\u8425\u79DF\u8D41\u670D\u52A1"), React.createElement(Row$1, {
|
|
23635
|
+
}, "\u7279\u6B8A\u4FE1\u606F-\u4E0D\u52A8\u4EA7\u7ECF\u8425\u79DF\u8D41\u670D\u52A1"), /*#__PURE__*/React.createElement(Row$1, {
|
|
23036
23636
|
gutter: [17, 0]
|
|
23037
|
-
}, React.createElement(Col$1, {
|
|
23637
|
+
}, /*#__PURE__*/React.createElement(Col$1, {
|
|
23038
23638
|
span: 6
|
|
23039
|
-
}, React.createElement(Form.Item, {
|
|
23639
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
23040
23640
|
label: "\u4E0D\u52A8\u4EA7\u5730\u5740"
|
|
23041
23641
|
}, getFieldDecorator('realEstateAddress', {
|
|
23042
23642
|
rules: readOnly ? [] : [{
|
|
23043
23643
|
required: true,
|
|
23044
23644
|
message: '请选择不动产地址'
|
|
23045
23645
|
}]
|
|
23046
|
-
})(readOnly ? React.createElement(MyArrString, null) : React.createElement(Cascader, {
|
|
23646
|
+
})(readOnly ? /*#__PURE__*/React.createElement(MyArrString, null) : /*#__PURE__*/React.createElement(Cascader, {
|
|
23047
23647
|
style: {
|
|
23048
23648
|
width: '100%'
|
|
23049
23649
|
},
|
|
23050
23650
|
options: props.realEstateAddressOptions,
|
|
23051
23651
|
fieldNames: props.realEstateAddressFieldNames,
|
|
23052
23652
|
placeholder: "\u8BF7\u9009\u62E9\u7701\u5E02\u533A\u53BF"
|
|
23053
|
-
})))), React.createElement(Col$1, {
|
|
23653
|
+
})))), /*#__PURE__*/React.createElement(Col$1, {
|
|
23054
23654
|
span: 6
|
|
23055
|
-
}, React.createElement(Form.Item, {
|
|
23655
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
23056
23656
|
label: "\u8BE6\u7EC6\u5730\u5740"
|
|
23057
23657
|
}, getFieldDecorator('realEstateDetailedAddress', {
|
|
23058
23658
|
rules: readOnly ? [] : [{
|
|
@@ -23067,43 +23667,43 @@ var RealEstateInfo = decorator(Form.create())(function (props) {
|
|
|
23067
23667
|
return pattern.test(value) ? Promise.resolve() : Promise.reject('地址必须包含“街”、“路”、“村”、“乡”、“镇”、“道”、“巷”、“号”等任意一个关键词');
|
|
23068
23668
|
}
|
|
23069
23669
|
}]
|
|
23070
|
-
})(readOnly ? React.createElement(MyDiv$3, null) : React.createElement(Input$2, {
|
|
23670
|
+
})(readOnly ? /*#__PURE__*/React.createElement(MyDiv$3, null) : /*#__PURE__*/React.createElement(Input$2, {
|
|
23071
23671
|
autoComplete: 'off',
|
|
23072
23672
|
placeholder: "\u8BF7\u8F93\u5165\u8BE6\u7EC6\u5730\u5740"
|
|
23073
|
-
})))), React.createElement(Col$1, {
|
|
23673
|
+
})))), /*#__PURE__*/React.createElement(Col$1, {
|
|
23074
23674
|
span: 6
|
|
23075
|
-
}, React.createElement(Form.Item, {
|
|
23675
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
23076
23676
|
label: "\u79DF\u8D41\u671F\u8D77\u6B62"
|
|
23077
23677
|
}, getFieldDecorator('leaseTerm', {
|
|
23078
23678
|
rules: readOnly ? [] : [{
|
|
23079
23679
|
required: true,
|
|
23080
23680
|
message: '请输入租赁期'
|
|
23081
23681
|
}]
|
|
23082
|
-
})(readOnly ? React.createElement(MyArrMoment, null) : React.createElement(RangePicker, {
|
|
23682
|
+
})(readOnly ? /*#__PURE__*/React.createElement(MyArrMoment, null) : /*#__PURE__*/React.createElement(RangePicker, {
|
|
23083
23683
|
style: {
|
|
23084
23684
|
width: '100%'
|
|
23085
23685
|
}
|
|
23086
|
-
})))), React.createElement(Col$1, {
|
|
23686
|
+
})))), /*#__PURE__*/React.createElement(Col$1, {
|
|
23087
23687
|
span: 6
|
|
23088
|
-
}, React.createElement(Form.Item, {
|
|
23688
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
23089
23689
|
label: "\u8DE8\u5730\uFF08\u5E02\uFF09\u6807\u5FD7"
|
|
23090
23690
|
}, getFieldDecorator('crossCitiesSign', {
|
|
23091
23691
|
rules: readOnly ? [] : [{
|
|
23092
23692
|
required: true,
|
|
23093
23693
|
message: '请选择跨地(市)标志'
|
|
23094
23694
|
}]
|
|
23095
|
-
})(readOnly ? React.createElement(MyNY, null) : React.createElement(Select$2, {
|
|
23695
|
+
})(readOnly ? /*#__PURE__*/React.createElement(MyNY, null) : /*#__PURE__*/React.createElement(Select$2, {
|
|
23096
23696
|
placeholder: "\u8BF7\u9009\u62E9",
|
|
23097
23697
|
style: {
|
|
23098
23698
|
width: '100%'
|
|
23099
23699
|
}
|
|
23100
|
-
}, React.createElement(Select$2.Option, {
|
|
23700
|
+
}, /*#__PURE__*/React.createElement(Select$2.Option, {
|
|
23101
23701
|
value: 'Y'
|
|
23102
|
-
}, "\u662F"), React.createElement(Select$2.Option, {
|
|
23702
|
+
}, "\u662F"), /*#__PURE__*/React.createElement(Select$2.Option, {
|
|
23103
23703
|
value: 'N'
|
|
23104
|
-
}, "\u5426"))))), React.createElement(Col$1, {
|
|
23704
|
+
}, "\u5426"))))), /*#__PURE__*/React.createElement(Col$1, {
|
|
23105
23705
|
span: 6
|
|
23106
|
-
}, React.createElement(Form.Item, {
|
|
23706
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
23107
23707
|
label: "\u4EA7\u6743\u8BC1\u4E66/\u4E0D\u52A8\u4EA7\u6743\u8BC1\u53F7"
|
|
23108
23708
|
}, getFieldDecorator('realEstateNumber', {
|
|
23109
23709
|
rules: readOnly ? [] : [{
|
|
@@ -23113,36 +23713,36 @@ var RealEstateInfo = decorator(Form.create())(function (props) {
|
|
|
23113
23713
|
max: 40,
|
|
23114
23714
|
message: '证书编号最多40个字符'
|
|
23115
23715
|
}]
|
|
23116
|
-
})(readOnly ? React.createElement(MyDiv$3, null) : React.createElement(Input$2, {
|
|
23716
|
+
})(readOnly ? /*#__PURE__*/React.createElement(MyDiv$3, null) : /*#__PURE__*/React.createElement(Input$2, {
|
|
23117
23717
|
autoComplete: 'off',
|
|
23118
23718
|
placeholder: "\u8BF7\u8F93\u5165\u8BC1\u4E66\u7F16\u53F7\uFF0C\u82E5\u6CA1\u6709\u8BC1\u4E66\u586B\u5199\u201C\u65E0\u201D"
|
|
23119
|
-
})))), React.createElement(Col$1, {
|
|
23719
|
+
})))), /*#__PURE__*/React.createElement(Col$1, {
|
|
23120
23720
|
span: 6
|
|
23121
|
-
}, React.createElement(Form.Item, {
|
|
23721
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
23122
23722
|
label: "\u9762\u79EF\u5355\u4F4D"
|
|
23123
23723
|
}, getFieldDecorator('realEstateUnit', {
|
|
23124
23724
|
rules: readOnly ? [] : [{
|
|
23125
23725
|
required: true,
|
|
23126
23726
|
message: '请选择面积单位'
|
|
23127
23727
|
}]
|
|
23128
|
-
})(readOnly ? React.createElement(MyDiv$3, null) : React.createElement(Select$2, {
|
|
23728
|
+
})(readOnly ? /*#__PURE__*/React.createElement(MyDiv$3, null) : /*#__PURE__*/React.createElement(Select$2, {
|
|
23129
23729
|
placeholder: "\u8BF7\u9009\u62E9",
|
|
23130
23730
|
style: {
|
|
23131
23731
|
width: '100%'
|
|
23132
23732
|
}
|
|
23133
|
-
}, React.createElement(Select$2.Option, {
|
|
23733
|
+
}, /*#__PURE__*/React.createElement(Select$2.Option, {
|
|
23134
23734
|
value: "\u5E73\u65B9\u5343\u7C73"
|
|
23135
|
-
}, "\u5E73\u65B9\u5343\u7C73"), React.createElement(Select$2.Option, {
|
|
23735
|
+
}, "\u5E73\u65B9\u5343\u7C73"), /*#__PURE__*/React.createElement(Select$2.Option, {
|
|
23136
23736
|
value: "\u5E73\u65B9\u7C73"
|
|
23137
|
-
}, "\u5E73\u65B9\u7C73"), React.createElement(Select$2.Option, {
|
|
23737
|
+
}, "\u5E73\u65B9\u7C73"), /*#__PURE__*/React.createElement(Select$2.Option, {
|
|
23138
23738
|
value: "\u516C\u9877"
|
|
23139
|
-
}, "\u516C\u9877"), React.createElement(Select$2.Option, {
|
|
23739
|
+
}, "\u516C\u9877"), /*#__PURE__*/React.createElement(Select$2.Option, {
|
|
23140
23740
|
value: "\u4EA9"
|
|
23141
|
-
}, "\u4EA9"), React.createElement(Select$2.Option, {
|
|
23741
|
+
}, "\u4EA9"), /*#__PURE__*/React.createElement(Select$2.Option, {
|
|
23142
23742
|
value: "h\u33A1"
|
|
23143
|
-
}, "h\u33A1"), React.createElement(Select$2.Option, {
|
|
23743
|
+
}, "h\u33A1"), /*#__PURE__*/React.createElement(Select$2.Option, {
|
|
23144
23744
|
value: "k\u33A1"
|
|
23145
|
-
}, "k\u33A1"), React.createElement(Select$2.Option, {
|
|
23745
|
+
}, "k\u33A1"), /*#__PURE__*/React.createElement(Select$2.Option, {
|
|
23146
23746
|
value: "\u33A1"
|
|
23147
23747
|
}, "\u33A1")))))));
|
|
23148
23748
|
});
|
|
@@ -23161,7 +23761,7 @@ var MyDiv$3 = /*#__PURE__*/function (_React$Component) {
|
|
|
23161
23761
|
_createClass(MyDiv, [{
|
|
23162
23762
|
key: "render",
|
|
23163
23763
|
value: function render() {
|
|
23164
|
-
return React.createElement("div", {
|
|
23764
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
23165
23765
|
style: this.props.style
|
|
23166
23766
|
}, this.props.value);
|
|
23167
23767
|
}
|
|
@@ -23186,7 +23786,7 @@ var MyArrString = /*#__PURE__*/function (_React$Component2) {
|
|
|
23186
23786
|
value: function render() {
|
|
23187
23787
|
var _this$props$value;
|
|
23188
23788
|
|
|
23189
|
-
return React.createElement("div", {
|
|
23789
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
23190
23790
|
style: this.props.style
|
|
23191
23791
|
}, (_this$props$value = this.props.value) === null || _this$props$value === void 0 ? void 0 : _this$props$value.filter(function (e) {
|
|
23192
23792
|
return !!e;
|
|
@@ -23213,14 +23813,14 @@ var MyArrMoment = /*#__PURE__*/function (_React$Component3) {
|
|
|
23213
23813
|
value: function render() {
|
|
23214
23814
|
var _this$props$value2 = this.props.value,
|
|
23215
23815
|
value = _this$props$value2 === void 0 ? [] : _this$props$value2;
|
|
23216
|
-
return React.createElement("div", {
|
|
23816
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
23217
23817
|
style: this.props.style
|
|
23218
|
-
}, React.createElement("span", null, hooks.isMoment(value[0]) && value[0].format('YYYY-MM-DD')), React.createElement("span", {
|
|
23818
|
+
}, /*#__PURE__*/React.createElement("span", null, hooks.isMoment(value[0]) && value[0].format('YYYY-MM-DD')), /*#__PURE__*/React.createElement("span", {
|
|
23219
23819
|
style: {
|
|
23220
23820
|
color: '#9F603D',
|
|
23221
23821
|
fontWeight: 600
|
|
23222
23822
|
}
|
|
23223
|
-
}, " - "), React.createElement("span", null, hooks.isMoment(value[1]) && value[0].format('YYYY-MM-DD')));
|
|
23823
|
+
}, " - "), /*#__PURE__*/React.createElement("span", null, hooks.isMoment(value[1]) && value[0].format('YYYY-MM-DD')));
|
|
23224
23824
|
}
|
|
23225
23825
|
}]);
|
|
23226
23826
|
|
|
@@ -23241,7 +23841,7 @@ var MyNY = /*#__PURE__*/function (_React$Component4) {
|
|
|
23241
23841
|
_createClass(MyNY, [{
|
|
23242
23842
|
key: "render",
|
|
23243
23843
|
value: function render() {
|
|
23244
|
-
return React.createElement("div", {
|
|
23844
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
23245
23845
|
style: this.props.style
|
|
23246
23846
|
}, this.props.value === 'Y' ? '是' : '否');
|
|
23247
23847
|
}
|
|
@@ -23281,7 +23881,7 @@ var ImportBuyerDrawer = (function () {
|
|
|
23281
23881
|
};
|
|
23282
23882
|
}())();
|
|
23283
23883
|
}, [controller]);
|
|
23284
|
-
return React.createElement(Drawer, {
|
|
23884
|
+
return /*#__PURE__*/React.createElement(Drawer, {
|
|
23285
23885
|
title: "\u8D2D\u65B9\u5217\u8868",
|
|
23286
23886
|
placement: "right",
|
|
23287
23887
|
// closable={false}
|
|
@@ -23289,7 +23889,7 @@ var ImportBuyerDrawer = (function () {
|
|
|
23289
23889
|
width: 983,
|
|
23290
23890
|
onClose: onClose,
|
|
23291
23891
|
visible: visible
|
|
23292
|
-
}, topExpand, React.createElement(DrawerBody$1, null));
|
|
23892
|
+
}, topExpand, /*#__PURE__*/React.createElement(DrawerBody$1, null));
|
|
23293
23893
|
});
|
|
23294
23894
|
|
|
23295
23895
|
var DrawerBody$1 = function DrawerBody() {
|
|
@@ -23310,7 +23910,7 @@ var DrawerBody$1 = function DrawerBody() {
|
|
|
23310
23910
|
}
|
|
23311
23911
|
});
|
|
23312
23912
|
}, [controller]);
|
|
23313
|
-
return React.createElement(Table$1, {
|
|
23913
|
+
return /*#__PURE__*/React.createElement(Table$1, {
|
|
23314
23914
|
bordered: true,
|
|
23315
23915
|
size: "small",
|
|
23316
23916
|
columns: columns,
|
|
@@ -23410,7 +24010,7 @@ var ImportGoodsDrawer = (function () {
|
|
|
23410
24010
|
};
|
|
23411
24011
|
}())();
|
|
23412
24012
|
}, [controller]);
|
|
23413
|
-
return React.createElement(Drawer, {
|
|
24013
|
+
return /*#__PURE__*/React.createElement(Drawer, {
|
|
23414
24014
|
title: "\u5546\u54C1\u5217\u8868",
|
|
23415
24015
|
placement: "right",
|
|
23416
24016
|
// closable={false}
|
|
@@ -23418,11 +24018,11 @@ var ImportGoodsDrawer = (function () {
|
|
|
23418
24018
|
width: 983,
|
|
23419
24019
|
onClose: onClose,
|
|
23420
24020
|
visible: visible
|
|
23421
|
-
}, topExpand && React.createElement("div", {
|
|
24021
|
+
}, topExpand && /*#__PURE__*/React.createElement("div", {
|
|
23422
24022
|
style: {
|
|
23423
24023
|
marginBottom: 10
|
|
23424
24024
|
}
|
|
23425
|
-
}, topExpand), React.createElement(DrawerBody$2, null));
|
|
24025
|
+
}, topExpand), /*#__PURE__*/React.createElement(DrawerBody$2, null));
|
|
23426
24026
|
});
|
|
23427
24027
|
|
|
23428
24028
|
var DrawerBody$2 = function DrawerBody() {
|
|
@@ -23444,7 +24044,7 @@ var DrawerBody$2 = function DrawerBody() {
|
|
|
23444
24044
|
}
|
|
23445
24045
|
});
|
|
23446
24046
|
}, [controller]);
|
|
23447
|
-
return React.createElement(Table$1, {
|
|
24047
|
+
return /*#__PURE__*/React.createElement(Table$1, {
|
|
23448
24048
|
bordered: true,
|
|
23449
24049
|
size: "small",
|
|
23450
24050
|
columns: columns,
|
|
@@ -23626,8 +24226,8 @@ var getItemCode = function getItemCode(record, editGood) {
|
|
|
23626
24226
|
return record.productCode;
|
|
23627
24227
|
};
|
|
23628
24228
|
|
|
23629
|
-
var css_248z$
|
|
23630
|
-
styleInject(css_248z$
|
|
24229
|
+
var css_248z$s = ".kts-invoice-operate-goods-endow-code-button-list {\n display: flex;\n flex-direction: column;\n}\n.kts-invoice-operate-goods-endow-code-button-list > button {\n margin-bottom: 10px;\n}\n";
|
|
24230
|
+
styleInject(css_248z$s);
|
|
23631
24231
|
|
|
23632
24232
|
var TreeNode = Tree.TreeNode;
|
|
23633
24233
|
var confirm = Modal$1.confirm;
|
|
@@ -23752,7 +24352,7 @@ var EndowCodeDrawer = (function () {
|
|
|
23752
24352
|
setDefaultValue(undefined);
|
|
23753
24353
|
}
|
|
23754
24354
|
}, [visible]);
|
|
23755
|
-
return React.createElement(Drawer, {
|
|
24355
|
+
return /*#__PURE__*/React.createElement(Drawer, {
|
|
23756
24356
|
title: "\u8D4B\u7801",
|
|
23757
24357
|
placement: "right",
|
|
23758
24358
|
destroyOnClose: true,
|
|
@@ -23760,7 +24360,7 @@ var EndowCodeDrawer = (function () {
|
|
|
23760
24360
|
width: 383,
|
|
23761
24361
|
onClose: onClose,
|
|
23762
24362
|
visible: visible
|
|
23763
|
-
}, defaultValue && React.createElement(DrawerBody$3, {
|
|
24363
|
+
}, defaultValue && /*#__PURE__*/React.createElement(DrawerBody$3, {
|
|
23764
24364
|
defaultValue: defaultValue
|
|
23765
24365
|
}));
|
|
23766
24366
|
});
|
|
@@ -23910,7 +24510,7 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23910
24510
|
};
|
|
23911
24511
|
}());
|
|
23912
24512
|
}, [actions, dataSource, readOnlyTaxRate]);
|
|
23913
|
-
return React.createElement(Select, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
24513
|
+
return /*#__PURE__*/React.createElement(Select, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
23914
24514
|
showSearch: true,
|
|
23915
24515
|
showArrow: false,
|
|
23916
24516
|
notFoundContent: null,
|
|
@@ -23918,7 +24518,7 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23918
24518
|
onSearch: onSearch,
|
|
23919
24519
|
onChange: onChange
|
|
23920
24520
|
}), dataSource.map(function (e) {
|
|
23921
|
-
return React.createElement(Select.Option, {
|
|
24521
|
+
return /*#__PURE__*/React.createElement(Select.Option, {
|
|
23922
24522
|
key: e.value,
|
|
23923
24523
|
value: e.value
|
|
23924
24524
|
}, e.label);
|
|
@@ -23948,14 +24548,14 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23948
24548
|
|
|
23949
24549
|
|
|
23950
24550
|
var createTreeNode = React.useCallback(function () {
|
|
23951
|
-
if (!list) return React.createElement(React.Fragment, null);
|
|
24551
|
+
if (!list) return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
23952
24552
|
return ctn(list);
|
|
23953
24553
|
|
|
23954
24554
|
function title(label) {
|
|
23955
24555
|
if (!filter) return label;
|
|
23956
24556
|
label = (filter.taxCategoryCode ? label.split(new RegExp(filter.taxCategoryCode, 'g')) : [label]).join("<span style=\"color: #1890ff;\">".concat(filter.taxCategoryCode, "</span>"));
|
|
23957
24557
|
label = (filter.val ? label.split(new RegExp(filter.val, 'g')) : [label]).join("<span style=\"color: #1890ff;\">".concat(filter.val, "</span>"));
|
|
23958
|
-
return React.createElement("span", {
|
|
24558
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
23959
24559
|
dangerouslySetInnerHTML: {
|
|
23960
24560
|
__html: label
|
|
23961
24561
|
}
|
|
@@ -23964,11 +24564,11 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23964
24564
|
|
|
23965
24565
|
function ctn(l) {
|
|
23966
24566
|
var p = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '0';
|
|
23967
|
-
if (!l || !l.length) return [React.createElement(React.Fragment, null)];
|
|
24567
|
+
if (!l || !l.length) return [/*#__PURE__*/React.createElement(React.Fragment, null)];
|
|
23968
24568
|
return l.filter(function (e) {
|
|
23969
24569
|
return e.pid === p;
|
|
23970
24570
|
}).map(function (e) {
|
|
23971
|
-
return React.createElement(TreeNode, {
|
|
24571
|
+
return /*#__PURE__*/React.createElement(TreeNode, {
|
|
23972
24572
|
title: title(e.label),
|
|
23973
24573
|
key: e.id
|
|
23974
24574
|
}, ctn(l, e.id));
|
|
@@ -24081,46 +24681,46 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
24081
24681
|
setList([]);
|
|
24082
24682
|
}
|
|
24083
24683
|
}, [visible]);
|
|
24084
|
-
return React.createElement(React.Fragment, null, React.createElement(Input, {
|
|
24684
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Input, {
|
|
24085
24685
|
readOnly: true,
|
|
24086
24686
|
value: props.value,
|
|
24087
|
-
addonAfter: React.createElement(Button, {
|
|
24687
|
+
addonAfter: /*#__PURE__*/React.createElement(Button, {
|
|
24088
24688
|
size: "small",
|
|
24089
24689
|
type: "link",
|
|
24090
24690
|
onClick: function onClick() {
|
|
24091
24691
|
setVisible(true);
|
|
24092
24692
|
}
|
|
24093
24693
|
}, "\u70B9\u51FB\u9009\u62E9")
|
|
24094
|
-
}), React.createElement(Drawer, {
|
|
24694
|
+
}), /*#__PURE__*/React.createElement(Drawer, {
|
|
24095
24695
|
title: "\u7A0E\u6536\u5206\u7C7B\u7F16\u7801",
|
|
24096
24696
|
visible: visible,
|
|
24097
24697
|
width: 500,
|
|
24098
24698
|
onClose: function onClose() {
|
|
24099
24699
|
setVisible(false);
|
|
24100
24700
|
}
|
|
24101
|
-
}, React.createElement(Form, {
|
|
24701
|
+
}, /*#__PURE__*/React.createElement(Form, {
|
|
24102
24702
|
key: "".concat(visible)
|
|
24103
|
-
}, React.createElement(Form.Item, {
|
|
24703
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
24104
24704
|
label: "\u4EA7\u54C1\u6216\u670D\u52A1\u7B80\u79F0"
|
|
24105
|
-
}, React.createElement(Input, {
|
|
24705
|
+
}, /*#__PURE__*/React.createElement(Input, {
|
|
24106
24706
|
onChange: function onChange(e) {
|
|
24107
24707
|
setFilter(_objectSpread2(_objectSpread2({}, filter), {}, {
|
|
24108
24708
|
val: e.target.value
|
|
24109
24709
|
}));
|
|
24110
24710
|
}
|
|
24111
|
-
})), React.createElement(Form.Item, {
|
|
24711
|
+
})), /*#__PURE__*/React.createElement(Form.Item, {
|
|
24112
24712
|
label: "\u7A0E\u6536\u5206\u7C7B\u7F16\u7801"
|
|
24113
|
-
}, React.createElement(Input, {
|
|
24713
|
+
}, /*#__PURE__*/React.createElement(Input, {
|
|
24114
24714
|
onChange: function onChange(e) {
|
|
24115
24715
|
setFilter(_objectSpread2(_objectSpread2({}, filter), {}, {
|
|
24116
24716
|
taxCategoryCode: e.target.value
|
|
24117
24717
|
}));
|
|
24118
24718
|
}
|
|
24119
|
-
}))), list && list.length > 0 ? React.createElement(Tree, {
|
|
24719
|
+
}))), list && list.length > 0 ? /*#__PURE__*/React.createElement(Tree, {
|
|
24120
24720
|
defaultExpandAll: true,
|
|
24121
24721
|
selectedKeys: [],
|
|
24122
24722
|
onSelect: onSelect
|
|
24123
|
-
}, createTreeNode()) : React.createElement("span", {
|
|
24723
|
+
}, createTreeNode()) : /*#__PURE__*/React.createElement("span", {
|
|
24124
24724
|
style: {
|
|
24125
24725
|
color: '#00000073'
|
|
24126
24726
|
}
|
|
@@ -24365,11 +24965,11 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
24365
24965
|
return data;
|
|
24366
24966
|
};
|
|
24367
24967
|
|
|
24368
|
-
return React.createElement(React.Fragment, null, React.createElement(Input, {
|
|
24968
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Input, {
|
|
24369
24969
|
readOnly: true,
|
|
24370
24970
|
onClick: onClick,
|
|
24371
24971
|
value: props.value
|
|
24372
|
-
}), React.createElement(TaxClassificationModal, {
|
|
24972
|
+
}), /*#__PURE__*/React.createElement(TaxClassificationModal, {
|
|
24373
24973
|
list: list,
|
|
24374
24974
|
open: open,
|
|
24375
24975
|
onSelect: onSelect,
|
|
@@ -24491,14 +25091,14 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
24491
25091
|
React.useEffect(function () {
|
|
24492
25092
|
if (controller.getTaxCategoryCodeList) controller.getTaxCategoryCodeList();
|
|
24493
25093
|
}, [controller]);
|
|
24494
|
-
return React.createElement(SchemaForm, {
|
|
25094
|
+
return /*#__PURE__*/React.createElement(SchemaForm, {
|
|
24495
25095
|
actions: actions,
|
|
24496
25096
|
previewPlaceholder: " ",
|
|
24497
25097
|
components: _objectSpread2(_objectSpread2({}, components), {}, {
|
|
24498
25098
|
showSearch: !!controller.state.goodsListState.endowCode.onLoadTaxClassificationCode ? ShowSearch3 : ShowSearch
|
|
24499
25099
|
}),
|
|
24500
25100
|
effects: effects
|
|
24501
|
-
}, React.createElement(FormButtonGroup, null, React.createElement(SchemaMarkupField, {
|
|
25101
|
+
}, /*#__PURE__*/React.createElement(FormButtonGroup, null, /*#__PURE__*/React.createElement(SchemaMarkupField, {
|
|
24502
25102
|
name: "taxClassificationCode",
|
|
24503
25103
|
type: "showSearch",
|
|
24504
25104
|
title: "\u7A0E\u6536\u5206\u7C7B\u7F16\u7801",
|
|
@@ -24508,13 +25108,13 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
24508
25108
|
message: '请选择税收分类编码',
|
|
24509
25109
|
required: true
|
|
24510
25110
|
}]
|
|
24511
|
-
}), React.createElement(SchemaMarkupField, {
|
|
25111
|
+
}), /*#__PURE__*/React.createElement(SchemaMarkupField, {
|
|
24512
25112
|
name: "shorthand",
|
|
24513
25113
|
type: "string",
|
|
24514
25114
|
readOnly: true,
|
|
24515
25115
|
default: defaultValue === null || defaultValue === void 0 ? void 0 : defaultValue.shorthand,
|
|
24516
25116
|
title: "\u5546\u54C1\u548C\u670D\u52A1\u5206\u7C7B\u7B80\u79F0"
|
|
24517
|
-
}), React.createElement(SchemaMarkupField, {
|
|
25117
|
+
}), /*#__PURE__*/React.createElement(SchemaMarkupField, {
|
|
24518
25118
|
name: "taxRate",
|
|
24519
25119
|
type: "string",
|
|
24520
25120
|
title: "\u7A0E\u7387",
|
|
@@ -24527,7 +25127,7 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
24527
25127
|
message: '请选择税率',
|
|
24528
25128
|
required: true
|
|
24529
25129
|
}]
|
|
24530
|
-
}), taxRate === 0 && isTaxFreeTypeNeeded && React.createElement(SchemaMarkupField, {
|
|
25130
|
+
}), taxRate === 0 && isTaxFreeTypeNeeded && /*#__PURE__*/React.createElement(SchemaMarkupField, {
|
|
24531
25131
|
name: "taxFreeType",
|
|
24532
25132
|
type: "string",
|
|
24533
25133
|
title: "\u514D\u7A0E\u7C7B\u578B",
|
|
@@ -24540,7 +25140,7 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
24540
25140
|
message: '请选择免税类型',
|
|
24541
25141
|
required: true
|
|
24542
25142
|
}]
|
|
24543
|
-
}), React.createElement(SchemaMarkupField, {
|
|
25143
|
+
}), /*#__PURE__*/React.createElement(SchemaMarkupField, {
|
|
24544
25144
|
name: "favouredPolicyMark",
|
|
24545
25145
|
type: "number",
|
|
24546
25146
|
title: "\u662F\u5426\u4EAB\u53D7\u4F18\u60E0\u653F\u7B56",
|
|
@@ -24559,7 +25159,7 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
24559
25159
|
message: '请选择是否享受优惠政策',
|
|
24560
25160
|
required: true
|
|
24561
25161
|
}]
|
|
24562
|
-
}), favouredPolicyMark === 1 && React.createElement(SchemaMarkupField, {
|
|
25162
|
+
}), favouredPolicyMark === 1 && /*#__PURE__*/React.createElement(SchemaMarkupField, {
|
|
24563
25163
|
name: "favouredPolicyName",
|
|
24564
25164
|
type: "string",
|
|
24565
25165
|
title: "\u4F18\u60E0\u653F\u7B56\u7C7B\u578B",
|
|
@@ -24572,14 +25172,14 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
24572
25172
|
message: '请选择是否享受优惠政策',
|
|
24573
25173
|
required: true
|
|
24574
25174
|
}]
|
|
24575
|
-
})), React.createElement("span", {
|
|
25175
|
+
})), /*#__PURE__*/React.createElement("span", {
|
|
24576
25176
|
className: "kts-invoice-operate-goods-endow-code-button-list"
|
|
24577
|
-
}, React.createElement(Button, {
|
|
25177
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
24578
25178
|
onClick: function onClick() {
|
|
24579
25179
|
actions.submit(onSubmit);
|
|
24580
25180
|
},
|
|
24581
25181
|
type: "primary"
|
|
24582
|
-
}, "\u786E\u5B9A"), React.createElement(Button, {
|
|
25182
|
+
}, "\u786E\u5B9A"), /*#__PURE__*/React.createElement(Button, {
|
|
24583
25183
|
onClick: function onClick() {
|
|
24584
25184
|
controller.pipeline( /*#__PURE__*/function () {
|
|
24585
25185
|
var _ref18 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee18(s) {
|
|
@@ -24739,53 +25339,53 @@ function AddComparisonDrawer() {
|
|
|
24739
25339
|
}));
|
|
24740
25340
|
}
|
|
24741
25341
|
}, [good]);
|
|
24742
|
-
return React.createElement(Drawer$1, {
|
|
25342
|
+
return /*#__PURE__*/React.createElement(Drawer$1, {
|
|
24743
25343
|
width: 500,
|
|
24744
25344
|
onClose: onClose,
|
|
24745
25345
|
placement: "right",
|
|
24746
25346
|
title: "\u5546\u54C1\u6620\u5C04",
|
|
24747
25347
|
visible: !!good,
|
|
24748
|
-
footer: React.createElement("div", {
|
|
25348
|
+
footer: /*#__PURE__*/React.createElement("div", {
|
|
24749
25349
|
style: {
|
|
24750
25350
|
display: 'flex',
|
|
24751
25351
|
justifyContent: 'flex-end',
|
|
24752
25352
|
gap: 10
|
|
24753
25353
|
}
|
|
24754
|
-
}, React.createElement(Button, {
|
|
25354
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
24755
25355
|
type: "primary",
|
|
24756
25356
|
onClick: onSubmit
|
|
24757
|
-
}, "\u63D0\u4EA4"), React.createElement(Button, {
|
|
25357
|
+
}, "\u63D0\u4EA4"), /*#__PURE__*/React.createElement(Button, {
|
|
24758
25358
|
onClick: onClose
|
|
24759
25359
|
}, "\u53D6\u6D88"))
|
|
24760
|
-
}, !!good && React.createElement(Form$1, {
|
|
25360
|
+
}, !!good && /*#__PURE__*/React.createElement(Form$1, {
|
|
24761
25361
|
layout: "vertical",
|
|
24762
25362
|
style: {
|
|
24763
25363
|
flex: 1
|
|
24764
25364
|
},
|
|
24765
25365
|
form: form
|
|
24766
|
-
}, React.createElement(Row$2, {
|
|
25366
|
+
}, /*#__PURE__*/React.createElement(Row$2, {
|
|
24767
25367
|
gutter: [8, 8]
|
|
24768
|
-
}, React.createElement(Col$2, {
|
|
25368
|
+
}, /*#__PURE__*/React.createElement(Col$2, {
|
|
24769
25369
|
span: 12
|
|
24770
|
-
}, React.createElement(Form$1.Item, {
|
|
25370
|
+
}, /*#__PURE__*/React.createElement(Form$1.Item, {
|
|
24771
25371
|
name: "itemNameSelf",
|
|
24772
25372
|
label: "\u6211\u65B9\u5546\u54C1\u540D\u79F0"
|
|
24773
|
-
}, React.createElement(Input, null))), React.createElement(Col$2, {
|
|
25373
|
+
}, /*#__PURE__*/React.createElement(Input, null))), /*#__PURE__*/React.createElement(Col$2, {
|
|
24774
25374
|
span: 12
|
|
24775
|
-
}, React.createElement(Form$1.Item, {
|
|
25375
|
+
}, /*#__PURE__*/React.createElement(Form$1.Item, {
|
|
24776
25376
|
name: "itemName",
|
|
24777
25377
|
label: "\u5BF9\u65B9\u5546\u54C1\u540D\u79F0"
|
|
24778
|
-
}, React.createElement(Input, null))), React.createElement(Col$2, {
|
|
25378
|
+
}, /*#__PURE__*/React.createElement(Input, null))), /*#__PURE__*/React.createElement(Col$2, {
|
|
24779
25379
|
span: 12
|
|
24780
|
-
}, React.createElement(Form$1.Item, {
|
|
25380
|
+
}, /*#__PURE__*/React.createElement(Form$1.Item, {
|
|
24781
25381
|
name: 'itemModelNameSelf',
|
|
24782
25382
|
label: "\u6211\u65B9\u89C4\u683C\u578B\u53F7"
|
|
24783
|
-
}, React.createElement(Input, null))), React.createElement(Col$2, {
|
|
25383
|
+
}, /*#__PURE__*/React.createElement(Input, null))), /*#__PURE__*/React.createElement(Col$2, {
|
|
24784
25384
|
span: 12
|
|
24785
|
-
}, React.createElement(Form$1.Item, {
|
|
25385
|
+
}, /*#__PURE__*/React.createElement(Form$1.Item, {
|
|
24786
25386
|
name: "itemModelName",
|
|
24787
25387
|
label: "\u5BF9\u65B9\u89C4\u683C\u578B\u53F7"
|
|
24788
|
-
}, React.createElement(Input, null))))));
|
|
25388
|
+
}, /*#__PURE__*/React.createElement(Input, null))))));
|
|
24789
25389
|
} // function validateFields(form: WrappedFormUtils<any>) {
|
|
24790
25390
|
// return new Promise<{ err: any, values: any }>(resolve => {
|
|
24791
25391
|
// form.validateFields((err, values) => {
|
|
@@ -24796,7 +25396,7 @@ function AddComparisonDrawer() {
|
|
|
24796
25396
|
|
|
24797
25397
|
/** 发票组件的上下文 */
|
|
24798
25398
|
|
|
24799
|
-
var InvoiceContext = React.createContext(undefined);
|
|
25399
|
+
var InvoiceContext = /*#__PURE__*/React.createContext(undefined);
|
|
24800
25400
|
|
|
24801
25401
|
var Invoice = /*#__PURE__*/function (_React$PureComponent) {
|
|
24802
25402
|
_inherits(Invoice, _React$PureComponent);
|
|
@@ -24828,6 +25428,8 @@ var Invoice = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
24828
25428
|
|
|
24829
25429
|
/** 干系人(数电) */
|
|
24830
25430
|
|
|
25431
|
+
/** 农产品干系人(数电) */
|
|
25432
|
+
|
|
24831
25433
|
/** 落款(数电) */
|
|
24832
25434
|
|
|
24833
25435
|
/** 特殊信息-不动产经营租赁服务(数电) */
|
|
@@ -24843,9 +25445,9 @@ var Invoice = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
24843
25445
|
/** 获取控制器钩子 */
|
|
24844
25446
|
function render() {
|
|
24845
25447
|
if (this.props.invoiceType === 'digtal') {
|
|
24846
|
-
return React.createElement(Digtal, _objectSpread2({}, this.props));
|
|
25448
|
+
return /*#__PURE__*/React.createElement(Digtal, _objectSpread2({}, this.props));
|
|
24847
25449
|
} else {
|
|
24848
|
-
return React.createElement(Main$4, _objectSpread2({}, this.props));
|
|
25450
|
+
return /*#__PURE__*/React.createElement(Main$4, _objectSpread2({}, this.props));
|
|
24849
25451
|
}
|
|
24850
25452
|
}
|
|
24851
25453
|
}]);
|
|
@@ -24863,6 +25465,7 @@ Invoice.Sign = Sign;
|
|
|
24863
25465
|
Invoice.Buyer = Buyer$1;
|
|
24864
25466
|
Invoice.InvoiceHeaderDigtal = InvoiceHeaderDigtal;
|
|
24865
25467
|
Invoice.Stakeholder = Stakeholder$1;
|
|
25468
|
+
Invoice.StakeFarmerholder = StakeFarmerholder;
|
|
24866
25469
|
Invoice.SignDigtal = SignDigtal;
|
|
24867
25470
|
Invoice.RealEstateInfo = RealEstateInfo;
|
|
24868
25471
|
Invoice.GoodsListDigtal = GoodsList$1;
|
|
@@ -24888,10 +25491,10 @@ var Main$4 = function Main(props) {
|
|
|
24888
25491
|
React.useEffect(function () {
|
|
24889
25492
|
setKey(key + 1);
|
|
24890
25493
|
}, [controller]);
|
|
24891
|
-
return React.createElement(InvoiceContext.Provider, {
|
|
25494
|
+
return /*#__PURE__*/React.createElement(InvoiceContext.Provider, {
|
|
24892
25495
|
key: key,
|
|
24893
25496
|
value: controller
|
|
24894
|
-
}, React.createElement("div", {
|
|
25497
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
24895
25498
|
className: "kts-invoice-operate",
|
|
24896
25499
|
ref: controller.pipeline( /*#__PURE__*/function () {
|
|
24897
25500
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(s, e) {
|
|
@@ -24913,17 +25516,17 @@ var Main$4 = function Main(props) {
|
|
|
24913
25516
|
return _ref.apply(this, arguments);
|
|
24914
25517
|
};
|
|
24915
25518
|
}())
|
|
24916
|
-
}, props.invoiceHeader || React.createElement(InvoiceHeader, null)
|
|
25519
|
+
}, props.invoiceHeader || /*#__PURE__*/React.createElement(InvoiceHeader, null)
|
|
24917
25520
|
/** 发票头 */
|
|
24918
|
-
, props.buyer || React.createElement(Buyer$1, null)
|
|
25521
|
+
, props.buyer || /*#__PURE__*/React.createElement(Buyer$1, null)
|
|
24919
25522
|
/** 购买方 */
|
|
24920
|
-
, props.goodsList || React.createElement(GoodsList, null)
|
|
25523
|
+
, props.goodsList || /*#__PURE__*/React.createElement(GoodsList, null)
|
|
24921
25524
|
/** 货物列表 */
|
|
24922
|
-
, props.seller || React.createElement(Buyer, null)
|
|
25525
|
+
, props.seller || /*#__PURE__*/React.createElement(Buyer, null)
|
|
24923
25526
|
/** 销售方 */
|
|
24924
|
-
, props.sign || React.createElement(Sign, null)
|
|
25527
|
+
, props.sign || /*#__PURE__*/React.createElement(Sign, null)
|
|
24925
25528
|
/** 落款 */
|
|
24926
|
-
, props.footExpand), React.createElement(ImportBuyerDrawer, null), React.createElement(ImportGoodsDrawer, null), React.createElement(EndowCodeDrawer, null), React.createElement(AddComparisonDrawer, null));
|
|
25529
|
+
, props.footExpand), /*#__PURE__*/React.createElement(ImportBuyerDrawer, null), /*#__PURE__*/React.createElement(ImportGoodsDrawer, null), /*#__PURE__*/React.createElement(EndowCodeDrawer, null), /*#__PURE__*/React.createElement(AddComparisonDrawer, null));
|
|
24927
25530
|
};
|
|
24928
25531
|
/** 数电 */
|
|
24929
25532
|
|
|
@@ -24942,10 +25545,10 @@ var Digtal = function Digtal(props) {
|
|
|
24942
25545
|
React.useEffect(function () {
|
|
24943
25546
|
setKey(key + 1);
|
|
24944
25547
|
}, [controller]);
|
|
24945
|
-
return React.createElement(InvoiceContext.Provider, {
|
|
25548
|
+
return /*#__PURE__*/React.createElement(InvoiceContext.Provider, {
|
|
24946
25549
|
key: key,
|
|
24947
25550
|
value: controller
|
|
24948
|
-
}, React.createElement("div", {
|
|
25551
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
24949
25552
|
className: "kts-invoice-operate-digtal",
|
|
24950
25553
|
ref: controller.pipeline( /*#__PURE__*/function () {
|
|
24951
25554
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(s, e) {
|
|
@@ -24967,19 +25570,19 @@ var Digtal = function Digtal(props) {
|
|
|
24967
25570
|
return _ref2.apply(this, arguments);
|
|
24968
25571
|
};
|
|
24969
25572
|
}())
|
|
24970
|
-
}, props.invoiceHeader || React.createElement(InvoiceHeaderDigtal, null)
|
|
25573
|
+
}, props.invoiceHeader || /*#__PURE__*/React.createElement(InvoiceHeaderDigtal, null)
|
|
24971
25574
|
/** 发票头 */
|
|
24972
|
-
, React.createElement("div", {
|
|
25575
|
+
, /*#__PURE__*/React.createElement("div", {
|
|
24973
25576
|
className: 'kts-invoice-operate-digtal-cont'
|
|
24974
|
-
}, props.stakeholder || React.createElement(Stakeholder$1, null)
|
|
25577
|
+
}, props.stakeholder || /*#__PURE__*/React.createElement(Stakeholder$1, null)
|
|
24975
25578
|
/** 干系人 */
|
|
24976
|
-
, props.goodsList || React.createElement(GoodsList$1, null)
|
|
25579
|
+
, props.goodsList || /*#__PURE__*/React.createElement(GoodsList$1, null)
|
|
24977
25580
|
/** 货物列表 */
|
|
24978
25581
|
), props.specialInfor
|
|
24979
25582
|
/** 特殊信息 */
|
|
24980
|
-
, props.sign || React.createElement(SignDigtal, null)
|
|
25583
|
+
, props.sign || /*#__PURE__*/React.createElement(SignDigtal, null)
|
|
24981
25584
|
/** 落款 */
|
|
24982
|
-
), React.createElement(ImportGoodsDrawer, null), React.createElement(EndowCodeDrawer, null));
|
|
25585
|
+
), /*#__PURE__*/React.createElement(ImportGoodsDrawer, null), /*#__PURE__*/React.createElement(EndowCodeDrawer, null));
|
|
24983
25586
|
};
|
|
24984
25587
|
|
|
24985
25588
|
function TaxClassificationModal(props) {
|
|
@@ -25020,26 +25623,26 @@ function TaxClassificationModal(props) {
|
|
|
25020
25623
|
}, 500);
|
|
25021
25624
|
}
|
|
25022
25625
|
}, [form, props.open]);
|
|
25023
|
-
return React.createElement(Drawer$1, {
|
|
25626
|
+
return /*#__PURE__*/React.createElement(Drawer$1, {
|
|
25024
25627
|
title: "\u5546\u54C1\u548C\u670D\u52A1\u7A0E\u6536\u5206\u7C7B\u7F16\u7801",
|
|
25025
25628
|
placement: "right",
|
|
25026
25629
|
open: props.open,
|
|
25027
25630
|
width: 503,
|
|
25028
25631
|
onClose: props.onCancel
|
|
25029
|
-
}, React.createElement(Form$1, {
|
|
25632
|
+
}, /*#__PURE__*/React.createElement(Form$1, {
|
|
25030
25633
|
form: form
|
|
25031
|
-
}, React.createElement(Form$1.Item, {
|
|
25634
|
+
}, /*#__PURE__*/React.createElement(Form$1.Item, {
|
|
25032
25635
|
name: 'search'
|
|
25033
|
-
}, React.createElement(Input$1, {
|
|
25636
|
+
}, /*#__PURE__*/React.createElement(Input$1, {
|
|
25034
25637
|
placeholder: "\u8BF7\u8F93\u5165\u7A0E\u6536\u5206\u7C7B\u7F16\u7801\u3001\u7A0E\u6536\u5206\u7C7B\u540D\u79F0\u8FDB\u884C\u68C0\u7D22",
|
|
25035
25638
|
onChange: searchTax
|
|
25036
|
-
})), React.createElement(Form$1.Item, {
|
|
25639
|
+
})), /*#__PURE__*/React.createElement(Form$1.Item, {
|
|
25037
25640
|
name: 'tree'
|
|
25038
|
-
}, React.createElement(Tree$1, {
|
|
25641
|
+
}, /*#__PURE__*/React.createElement(Tree$1, {
|
|
25039
25642
|
onSelect: props.onSelect,
|
|
25040
25643
|
loadData: props.onLoad,
|
|
25041
25644
|
treeData: props.list,
|
|
25042
|
-
switcherIcon: React.createElement(Icon$1, {
|
|
25645
|
+
switcherIcon: /*#__PURE__*/React.createElement(Icon$1, {
|
|
25043
25646
|
type: "down"
|
|
25044
25647
|
})
|
|
25045
25648
|
}))));
|