kts-component-invoice-operate 3.2.156 → 3.2.158
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 +1256 -647
- package/dist/index.js +1256 -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 +418 -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,613 @@ 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
|
+
|
|
17734
|
+
|
|
17735
|
+
var StakeFarmerholder = decorator(Form.create())(function (props) {
|
|
17736
|
+
var form = props.form,
|
|
17737
|
+
isShowImportButton = props.isShowImportButton,
|
|
17738
|
+
onClickImportButton = props.onClickImportButton,
|
|
17739
|
+
_props$isVatNormal = props.isVatNormal,
|
|
17740
|
+
isVatNormal = _props$isVatNormal === void 0 ? false : _props$isVatNormal;
|
|
17741
|
+
|
|
17742
|
+
var _React$useState = React.useState(typeof props.isExpand === 'boolean' ? props.isExpand : true),
|
|
17743
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
17744
|
+
isExpand = _React$useState2[0],
|
|
17745
|
+
setExpand = _React$useState2[1];
|
|
17746
|
+
|
|
17747
|
+
var getFieldDecorator = form.getFieldDecorator;
|
|
17748
|
+
var controller = Invoice.useInvoiceController();
|
|
17749
|
+
var model = controller.useMemo(function (s) {
|
|
17750
|
+
return s.model;
|
|
17751
|
+
}, []);
|
|
17752
|
+
var disableds = controller.useMemo(function (s) {
|
|
17753
|
+
return s.stakeholder.disableds || [];
|
|
17754
|
+
}, []);
|
|
17755
|
+
var rulesMap = controller.useMemo(function (s) {
|
|
17756
|
+
return s.stakeholder.rulesMap || {};
|
|
17757
|
+
}, []);
|
|
17758
|
+
var readOnly = React.useMemo(function () {
|
|
17759
|
+
if (model === 'readOnly') return true;
|
|
17760
|
+
if (model === 'prefab') return true;
|
|
17761
|
+
return false;
|
|
17762
|
+
}, [model]);
|
|
17763
|
+
var onExpand = React.useCallback(function () {
|
|
17764
|
+
setExpand(function (e) {
|
|
17765
|
+
return !e;
|
|
17766
|
+
});
|
|
17767
|
+
}, []);
|
|
17768
|
+
var isReadOnly = React.useCallback(function (field) {
|
|
17769
|
+
return readOnly || disableds.indexOf(field) >= 0;
|
|
17770
|
+
}, [disableds, readOnly]);
|
|
17771
|
+
var getRules = React.useCallback(function (field, defaultRules) {
|
|
17772
|
+
if (isReadOnly(field)) return [];
|
|
17773
|
+
return rulesMap[field] || defaultRules;
|
|
17774
|
+
}, [rulesMap, isReadOnly, isReadOnly]);
|
|
17775
|
+
controller.useForm('stakeholder', form); // props.isExpand 变化的时候更新
|
|
17776
|
+
|
|
17777
|
+
React.useEffect(function () {
|
|
17778
|
+
setExpand(typeof props.isExpand === 'boolean' ? props.isExpand : true);
|
|
17779
|
+
}, [props.isExpand]);
|
|
17780
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
17781
|
+
className: classNames("kts-invoice-operate-invoice-digtal-stakeholder", {
|
|
17782
|
+
readOnly: readOnly
|
|
17783
|
+
})
|
|
17784
|
+
}, /*#__PURE__*/React.createElement("div", null, '销售方信息'.split('').map(function (e) {
|
|
17785
|
+
return /*#__PURE__*/React.createElement("span", null, e);
|
|
17786
|
+
}), !readOnly && /*#__PURE__*/React.createElement(Icon, {
|
|
17787
|
+
className: "digtal-stakeholder-expand-button",
|
|
17788
|
+
component: isExpand ? SvgArrowUp$1 : SvgArrowDown$1,
|
|
17789
|
+
onClick: onExpand
|
|
17790
|
+
})), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
|
|
17791
|
+
style: {
|
|
17792
|
+
marginTop: 20
|
|
17793
|
+
},
|
|
17794
|
+
className: 'natural-person-flag'
|
|
17795
|
+
}, props.isNaturalPerson === true && /*#__PURE__*/React.createElement(Form.Item, {
|
|
17796
|
+
colon: false
|
|
17797
|
+
}, getFieldDecorator('naturalPersonFlag', {})( /*#__PURE__*/React.createElement(NaturalPersonFlag$1, {
|
|
17798
|
+
readOnly: isReadOnly('naturalPersonFlag')
|
|
17799
|
+
})))), /*#__PURE__*/React.createElement(Form, {
|
|
17800
|
+
className: "digtal-stakeholder-form"
|
|
17801
|
+
}, /*#__PURE__*/React.createElement(Row, {
|
|
17802
|
+
gutter: [16, 0]
|
|
17803
|
+
}, /*#__PURE__*/React.createElement(Col, {
|
|
17804
|
+
span: 24
|
|
17805
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
17806
|
+
label: "\u540D\u79F0",
|
|
17807
|
+
colon: false
|
|
17808
|
+
}, getFieldDecorator('supplierName', {
|
|
17809
|
+
rules: getRules('supplierName', RULES$1.companyName('销售方名称')) // getValueFromEvent: formatCompanyName
|
|
17810
|
+
|
|
17811
|
+
})( /*#__PURE__*/React.createElement(BuyerNameInput$2, {
|
|
17812
|
+
myform: form,
|
|
17813
|
+
fieldName: 'supplierName',
|
|
17814
|
+
readOnly: isReadOnly('supplierName'),
|
|
17815
|
+
placeholder: "\u8BF7\u8F93\u5165\u540D\u79F0",
|
|
17816
|
+
autoComplete: "off",
|
|
17817
|
+
suffix: isShowImportButton === true && /*#__PURE__*/React.createElement(Button$1, {
|
|
17818
|
+
type: 'link',
|
|
17819
|
+
style: {
|
|
17820
|
+
padding: 0,
|
|
17821
|
+
width: 20,
|
|
17822
|
+
height: '100%'
|
|
17823
|
+
},
|
|
17824
|
+
icon: /*#__PURE__*/React.createElement(Icon, {
|
|
17825
|
+
component: SvgPlus$1
|
|
17826
|
+
}),
|
|
17827
|
+
onClick: function onClick() {
|
|
17828
|
+
onClickImportButton && onClickImportButton(controller);
|
|
17829
|
+
}
|
|
17830
|
+
})
|
|
17831
|
+
})))), /*#__PURE__*/React.createElement(Col, {
|
|
17832
|
+
span: 24
|
|
17833
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
17834
|
+
label: "\u7EDF\u4E00\u793E\u4F1A\u4FE1\u7528\u4EE3\u7801/\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7",
|
|
17835
|
+
colon: false
|
|
17836
|
+
}, getFieldDecorator('supplierTaxId', {
|
|
17837
|
+
rules: getRules('supplierTaxId', [{
|
|
17838
|
+
required: true,
|
|
17839
|
+
message: '销售方纳税人识别号必填'
|
|
17840
|
+
}].concat(_toConsumableArray(RULES$1.taxId('销售方纳税人识别号'))))
|
|
17841
|
+
})( /*#__PURE__*/React.createElement(MyInput$2, {
|
|
17842
|
+
readOnly: isReadOnly('supplierTaxId'),
|
|
17843
|
+
placeholder: "\u8BF7\u8F93\u5165\u7EDF\u4E00\u793E\u4F1A\u4FE1\u7528\u4EE3\u7801/\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7",
|
|
17844
|
+
autoComplete: "off"
|
|
17845
|
+
})))), /*#__PURE__*/React.createElement(Col, {
|
|
17846
|
+
span: 12,
|
|
17847
|
+
style: {
|
|
17848
|
+
display: isExpand ? undefined : 'none'
|
|
17849
|
+
}
|
|
17850
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
17851
|
+
label: "\u9500\u552E\u65B9\u5730\u5740",
|
|
17852
|
+
colon: false
|
|
17853
|
+
}, getFieldDecorator('sellerAddress', {
|
|
17854
|
+
rules: getRules('sellerAddress', [{
|
|
17855
|
+
max: 300,
|
|
17856
|
+
message: '销售方地址内容超长'
|
|
17857
|
+
}])
|
|
17858
|
+
})( /*#__PURE__*/React.createElement(MyInput$2, {
|
|
17859
|
+
readOnly: isReadOnly('sellerAddress'),
|
|
17860
|
+
placeholder: "\u8BF7\u8F93\u5165\u9500\u552E\u65B9\u5730\u5740",
|
|
17861
|
+
autoComplete: "off"
|
|
17862
|
+
})))), /*#__PURE__*/React.createElement(Col, {
|
|
17863
|
+
span: 12,
|
|
17864
|
+
style: {
|
|
17865
|
+
display: isExpand ? undefined : 'none'
|
|
17866
|
+
}
|
|
17867
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
17868
|
+
label: "\u7535\u8BDD",
|
|
17869
|
+
colon: false,
|
|
17870
|
+
className: 'telephone'
|
|
17871
|
+
}, getFieldDecorator('sellerPhone', {
|
|
17872
|
+
rules: getRules('sellerPhone', RULES$1.sellerTelPhone('销售方电话'))
|
|
17873
|
+
})( /*#__PURE__*/React.createElement(MyInput$2, {
|
|
17874
|
+
readOnly: isReadOnly('sellerPhone'),
|
|
17875
|
+
placeholder: "\u8BF7\u8F93\u5165\u7535\u8BDD",
|
|
17876
|
+
autoComplete: "off"
|
|
17877
|
+
})))), /*#__PURE__*/React.createElement(Col, {
|
|
17878
|
+
span: 12,
|
|
17879
|
+
style: {
|
|
17880
|
+
display: isExpand ? undefined : 'none'
|
|
17881
|
+
}
|
|
17882
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
17883
|
+
label: "\u9500\u552E\u65B9\u5F00\u6237\u94F6\u884C",
|
|
17884
|
+
colon: false
|
|
17885
|
+
}, getFieldDecorator('sellerBank', {
|
|
17886
|
+
rules: getRules('sellerBank', RULES$1.bankName('销售方开户银行'))
|
|
17887
|
+
})( /*#__PURE__*/React.createElement(MyInput$2, {
|
|
17888
|
+
readOnly: isReadOnly('sellerBank'),
|
|
17889
|
+
placeholder: "\u8BF7\u8F93\u5165\u9500\u552E\u65B9\u5F00\u6237\u94F6\u884C",
|
|
17890
|
+
autoComplete: "off"
|
|
17891
|
+
})))), /*#__PURE__*/React.createElement(Col, {
|
|
17892
|
+
span: 12,
|
|
17893
|
+
style: {
|
|
17894
|
+
display: isExpand ? undefined : 'none'
|
|
17895
|
+
}
|
|
17896
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
17897
|
+
label: "\u94F6\u884C\u8D26\u53F7",
|
|
17898
|
+
colon: false
|
|
17899
|
+
}, getFieldDecorator('sellerAccount', {
|
|
17900
|
+
rules: getRules('sellerAccount', RULES$1.bankAccount('销售方银行账号'))
|
|
17901
|
+
})( /*#__PURE__*/React.createElement(MyInput$2, {
|
|
17902
|
+
readOnly: isReadOnly('sellerAccount'),
|
|
17903
|
+
placeholder: "\u8BF7\u8F93\u5165\u94F6\u884C\u8D26\u53F7",
|
|
17904
|
+
autoComplete: "off"
|
|
17905
|
+
}))))))), /*#__PURE__*/React.createElement("div", null, '购买方信息'.split('').map(function (e) {
|
|
17906
|
+
return /*#__PURE__*/React.createElement("span", null, e);
|
|
17907
|
+
}), !readOnly && /*#__PURE__*/React.createElement(Icon, {
|
|
17908
|
+
className: "digtal-stakeholder-expand-button",
|
|
17909
|
+
component: isExpand ? SvgArrowUp$1 : SvgArrowDown$1,
|
|
17910
|
+
onClick: onExpand
|
|
17911
|
+
})), /*#__PURE__*/React.createElement("div", null, !readOnly && props.lineCredit && /*#__PURE__*/React.createElement("div", {
|
|
17912
|
+
style: {
|
|
17913
|
+
marginTop: 20
|
|
17914
|
+
}
|
|
17915
|
+
}, /*#__PURE__*/React.createElement(Tooltip$1, {
|
|
17916
|
+
trigger: "click",
|
|
17917
|
+
title: props.lineCredit
|
|
17918
|
+
}, /*#__PURE__*/React.createElement(Button$1, {
|
|
17919
|
+
type: "link",
|
|
17920
|
+
style: {
|
|
17921
|
+
padding: "0px 8px"
|
|
17922
|
+
}
|
|
17923
|
+
}, "\u67E5\u770B\u5F53\u524D\u53EF\u7528\u6388\u4FE1\u989D\u5EA6"))), /*#__PURE__*/React.createElement(Form, {
|
|
17924
|
+
className: "digtal-stakeholder-form"
|
|
17925
|
+
}, /*#__PURE__*/React.createElement(Row, {
|
|
17926
|
+
gutter: [16, 0]
|
|
17927
|
+
}, /*#__PURE__*/React.createElement(Col, {
|
|
17928
|
+
span: 24
|
|
17929
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
17930
|
+
label: "\u540D\u79F0",
|
|
17931
|
+
colon: false
|
|
17932
|
+
}, getFieldDecorator('buyerName', {
|
|
17933
|
+
rules: getRules('buyerName', RULES$1.companyName('购买方名称'))
|
|
17934
|
+
})( /*#__PURE__*/React.createElement(BuyerNameInput$2, {
|
|
17935
|
+
myform: form,
|
|
17936
|
+
fieldName: 'buyerName',
|
|
17937
|
+
readOnly: isReadOnly('buyerName'),
|
|
17938
|
+
placeholder: "\u8BF7\u8F93\u5165\u540D\u79F0",
|
|
17939
|
+
autoComplete: "off",
|
|
17940
|
+
suffix: isShowImportButton === true && /*#__PURE__*/React.createElement(Button$1, {
|
|
17941
|
+
type: 'link',
|
|
17942
|
+
style: {
|
|
17943
|
+
padding: 0,
|
|
17944
|
+
width: 20,
|
|
17945
|
+
height: '100%'
|
|
17946
|
+
},
|
|
17947
|
+
icon: /*#__PURE__*/React.createElement(Icon, {
|
|
17948
|
+
component: SvgPlus$1
|
|
17949
|
+
}),
|
|
17950
|
+
onClick: function onClick() {
|
|
17951
|
+
onClickImportButton && onClickImportButton(controller);
|
|
17952
|
+
}
|
|
17953
|
+
})
|
|
17954
|
+
})))), /*#__PURE__*/React.createElement(Col, {
|
|
17955
|
+
span: 24
|
|
17956
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
17957
|
+
label: "\u7EDF\u4E00\u793E\u4F1A\u4FE1\u7528\u4EE3\u7801/\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7",
|
|
17958
|
+
colon: false
|
|
17959
|
+
}, getFieldDecorator('buyerTaxId', {
|
|
17960
|
+
rules: getRules('buyerTaxId', [{
|
|
17961
|
+
required: !isVatNormal,
|
|
17962
|
+
message: '购买方纳税人识别号必填'
|
|
17963
|
+
}].concat(_toConsumableArray(RULES$1.taxId('购买方纳税人识别号'))))
|
|
17964
|
+
})( /*#__PURE__*/React.createElement(BuyerNameInput$2, {
|
|
17965
|
+
myform: form,
|
|
17966
|
+
fieldName: 'buyerTaxId',
|
|
17967
|
+
readOnly: isReadOnly('buyerTaxId'),
|
|
17968
|
+
placeholder: "\u8BF7\u8F93\u5165\u7EDF\u4E00\u793E\u4F1A\u4FE1\u7528\u4EE3\u7801/\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7",
|
|
17969
|
+
autoComplete: "off"
|
|
17970
|
+
})))), /*#__PURE__*/React.createElement(Col, {
|
|
17971
|
+
span: 14,
|
|
17972
|
+
style: {
|
|
17973
|
+
display: isExpand ? undefined : 'none'
|
|
17974
|
+
}
|
|
17975
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
17976
|
+
label: "\u8D2D\u4E70\u65B9\u5730\u5740",
|
|
17977
|
+
colon: false
|
|
17978
|
+
}, getFieldDecorator('buyerAddress', {
|
|
17979
|
+
rules: getRules('buyerAddress', [{
|
|
17980
|
+
max: 100,
|
|
17981
|
+
message: '购买方地址内容超长'
|
|
17982
|
+
}])
|
|
17983
|
+
})( /*#__PURE__*/React.createElement(MyInput$2, {
|
|
17984
|
+
readOnly: isReadOnly('buyerAddress'),
|
|
17985
|
+
placeholder: "\u8BF7\u8F93\u5165\u8D2D\u4E70\u65B9\u5730\u5740",
|
|
17986
|
+
autoComplete: "off"
|
|
17987
|
+
})))), /*#__PURE__*/React.createElement(Col, {
|
|
17988
|
+
span: 10,
|
|
17989
|
+
style: {
|
|
17990
|
+
display: isExpand ? undefined : 'none'
|
|
17991
|
+
}
|
|
17992
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
17993
|
+
label: "\u7535\u8BDD",
|
|
17994
|
+
colon: false,
|
|
17995
|
+
className: 'telephone'
|
|
17996
|
+
}, getFieldDecorator('buyerPhone', {
|
|
17997
|
+
rules: getRules('buyerPhone', RULES$1.buyerTelPhone('购买方电话'))
|
|
17998
|
+
})( /*#__PURE__*/React.createElement(MyInput$2, {
|
|
17999
|
+
readOnly: isReadOnly('buyerPhone'),
|
|
18000
|
+
placeholder: "\u8BF7\u8F93\u5165\u7535\u8BDD",
|
|
18001
|
+
autoComplete: "off"
|
|
18002
|
+
})))), /*#__PURE__*/React.createElement(Col, {
|
|
18003
|
+
span: 14,
|
|
18004
|
+
style: {
|
|
18005
|
+
display: isExpand ? undefined : 'none'
|
|
18006
|
+
}
|
|
18007
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
18008
|
+
label: "\u8D2D\u4E70\u65B9\u5F00\u6237\u94F6\u884C",
|
|
18009
|
+
colon: false
|
|
18010
|
+
}, getFieldDecorator('buyerBank', {
|
|
18011
|
+
rules: getRules('buyerBank', RULES$1.bankName('购买方开户银行'))
|
|
18012
|
+
})( /*#__PURE__*/React.createElement(MyInput$2, {
|
|
18013
|
+
readOnly: isReadOnly('buyerBank'),
|
|
18014
|
+
placeholder: "\u8BF7\u8F93\u5165\u8D2D\u4E70\u65B9\u5F00\u6237\u94F6\u884C",
|
|
18015
|
+
autoComplete: "off"
|
|
18016
|
+
})))), /*#__PURE__*/React.createElement(Col, {
|
|
18017
|
+
span: 10,
|
|
18018
|
+
style: {
|
|
18019
|
+
display: isExpand ? undefined : 'none'
|
|
18020
|
+
}
|
|
18021
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
18022
|
+
label: "\u94F6\u884C\u8D26\u53F7",
|
|
18023
|
+
colon: false
|
|
18024
|
+
}, getFieldDecorator('buyerAccount', {
|
|
18025
|
+
rules: getRules('buyerAccount', RULES$1.bankAccount('购买方银行账号'))
|
|
18026
|
+
})( /*#__PURE__*/React.createElement(MyInput$2, {
|
|
18027
|
+
readOnly: isReadOnly('buyerAccount'),
|
|
18028
|
+
placeholder: "\u8BF7\u8F93\u5165\u94F6\u884C\u8D26\u53F7",
|
|
18029
|
+
autoComplete: "off"
|
|
18030
|
+
}))))))));
|
|
18031
|
+
});
|
|
18032
|
+
|
|
18033
|
+
function NaturalPersonFlag$1(props) {
|
|
18034
|
+
var _React$useState3 = React.useState(props.value || 'COMPANY'),
|
|
18035
|
+
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
|
18036
|
+
value = _React$useState4[0],
|
|
18037
|
+
setValue = _React$useState4[1];
|
|
18038
|
+
|
|
18039
|
+
var onChange = React.useCallback(function (e) {
|
|
18040
|
+
if (props.readOnly) return;
|
|
18041
|
+
setValue(e.target.checked ? 'NATURAL' : 'COMPANY');
|
|
18042
|
+
props.onChange && props.onChange(e.target.checked ? 'NATURAL' : 'COMPANY');
|
|
18043
|
+
}, [props.onChange, props.readOnly]);
|
|
18044
|
+
React.useEffect(function () {
|
|
18045
|
+
setValue(props.value || 'COMPANY');
|
|
18046
|
+
}, [props.value]);
|
|
18047
|
+
return /*#__PURE__*/React.createElement(Checkbox$1, {
|
|
18048
|
+
disabled: props.readOnly,
|
|
18049
|
+
checked: value === 'NATURAL',
|
|
18050
|
+
onChange: onChange
|
|
18051
|
+
}, "\u662F\u5426\u5F00\u7968\u7ED9\u81EA\u7136\u4EBA");
|
|
18052
|
+
}
|
|
18053
|
+
|
|
18054
|
+
function BuyerNameInput$2(props) {
|
|
18055
|
+
var fieldName = props.fieldName,
|
|
18056
|
+
form = props.myform;
|
|
18057
|
+
var controller = Invoice.useInvoiceController();
|
|
18058
|
+
var rootElement = controller.useMemo(function (s) {
|
|
18059
|
+
return s.rootElement;
|
|
18060
|
+
}, []);
|
|
18061
|
+
var autoComplete = controller.useMemo(function (s) {
|
|
18062
|
+
return s.autoComplete;
|
|
18063
|
+
}, []);
|
|
18064
|
+
|
|
18065
|
+
var _React$useState5 = React.useState([]),
|
|
18066
|
+
_React$useState6 = _slicedToArray(_React$useState5, 2),
|
|
18067
|
+
options = _React$useState6[0],
|
|
18068
|
+
setOptions = _React$useState6[1];
|
|
18069
|
+
|
|
18070
|
+
var onChangeAutoComplete = React.useCallback(function (value) {
|
|
18071
|
+
var record = options.filter(function (e) {
|
|
18072
|
+
return e[fieldName] === value;
|
|
18073
|
+
})[0];
|
|
18074
|
+
if (!record || !form) return;
|
|
18075
|
+
form.setFieldsValue(record);
|
|
18076
|
+
setOptions([]);
|
|
18077
|
+
}, [options, fieldName, form]);
|
|
18078
|
+
var onSearch = React.useCallback( /*#__PURE__*/function () {
|
|
18079
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(searchText) {
|
|
18080
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
18081
|
+
while (1) {
|
|
18082
|
+
switch (_context.prev = _context.next) {
|
|
18083
|
+
case 0:
|
|
18084
|
+
_context.next = 2;
|
|
18085
|
+
return Discontinue$1.start();
|
|
18086
|
+
|
|
18087
|
+
case 2:
|
|
18088
|
+
_context.prev = 2;
|
|
18089
|
+
|
|
18090
|
+
if (!(fieldName === 'buyerName')) {
|
|
18091
|
+
_context.next = 12;
|
|
18092
|
+
break;
|
|
18093
|
+
}
|
|
18094
|
+
|
|
18095
|
+
if (!autoComplete.onBuyerNameSearch) {
|
|
18096
|
+
_context.next = 10;
|
|
18097
|
+
break;
|
|
18098
|
+
}
|
|
18099
|
+
|
|
18100
|
+
_context.t0 = setOptions;
|
|
18101
|
+
_context.next = 8;
|
|
18102
|
+
return autoComplete.onBuyerNameSearch(searchText);
|
|
18103
|
+
|
|
18104
|
+
case 8:
|
|
18105
|
+
_context.t1 = _context.sent;
|
|
18106
|
+
(0, _context.t0)(_context.t1);
|
|
18107
|
+
|
|
18108
|
+
case 10:
|
|
18109
|
+
_context.next = 19;
|
|
18110
|
+
break;
|
|
18111
|
+
|
|
18112
|
+
case 12:
|
|
18113
|
+
if (!(fieldName === 'buyerTaxId')) {
|
|
18114
|
+
_context.next = 19;
|
|
18115
|
+
break;
|
|
18116
|
+
}
|
|
18117
|
+
|
|
18118
|
+
if (!autoComplete.onBuyerTaxIdSearch) {
|
|
18119
|
+
_context.next = 19;
|
|
18120
|
+
break;
|
|
18121
|
+
}
|
|
18122
|
+
|
|
18123
|
+
_context.t2 = setOptions;
|
|
18124
|
+
_context.next = 17;
|
|
18125
|
+
return autoComplete.onBuyerTaxIdSearch(searchText);
|
|
18126
|
+
|
|
18127
|
+
case 17:
|
|
18128
|
+
_context.t3 = _context.sent;
|
|
18129
|
+
(0, _context.t2)(_context.t3);
|
|
18130
|
+
|
|
18131
|
+
case 19:
|
|
18132
|
+
_context.next = 25;
|
|
18133
|
+
break;
|
|
18134
|
+
|
|
18135
|
+
case 21:
|
|
18136
|
+
_context.prev = 21;
|
|
18137
|
+
_context.t4 = _context["catch"](2);
|
|
18138
|
+
setOptions([]);
|
|
18139
|
+
throw _context.t4;
|
|
18140
|
+
|
|
18141
|
+
case 25:
|
|
18142
|
+
case "end":
|
|
18143
|
+
return _context.stop();
|
|
18144
|
+
}
|
|
18145
|
+
}
|
|
18146
|
+
}, _callee, null, [[2, 21]]);
|
|
18147
|
+
}));
|
|
18148
|
+
|
|
18149
|
+
return function (_x) {
|
|
18150
|
+
return _ref.apply(this, arguments);
|
|
18151
|
+
};
|
|
18152
|
+
}(), [autoComplete.onBuyerNameSearch, fieldName]);
|
|
18153
|
+
if (props.readOnly) return /*#__PURE__*/React.createElement("span", {
|
|
18154
|
+
className: 'digtal-stakeholder-form-text'
|
|
18155
|
+
}, props.value);
|
|
18156
|
+
return /*#__PURE__*/React.createElement(AutoComplete$1, {
|
|
18157
|
+
onSearch: onSearch,
|
|
18158
|
+
options: options.map(function (e) {
|
|
18159
|
+
return {
|
|
18160
|
+
value: e[fieldName]
|
|
18161
|
+
};
|
|
18162
|
+
}),
|
|
18163
|
+
onChange: onChangeAutoComplete,
|
|
18164
|
+
value: props.value,
|
|
18165
|
+
getPopupContainer: function getPopupContainer() {
|
|
18166
|
+
return rootElement || document.body;
|
|
18167
|
+
},
|
|
18168
|
+
style: {
|
|
18169
|
+
width: '100%'
|
|
18170
|
+
}
|
|
18171
|
+
}, /*#__PURE__*/React.createElement(Input$1, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
18172
|
+
style: _objectSpread2({
|
|
18173
|
+
width: '100%'
|
|
18174
|
+
}, props.style)
|
|
18175
|
+
})));
|
|
18176
|
+
}
|
|
18177
|
+
|
|
18178
|
+
var MyInput$2 = /*#__PURE__*/function (_React$Component) {
|
|
18179
|
+
_inherits(MyInput, _React$Component);
|
|
18180
|
+
|
|
18181
|
+
var _super = _createSuper(MyInput);
|
|
18182
|
+
|
|
18183
|
+
function MyInput() {
|
|
18184
|
+
_classCallCheck(this, MyInput);
|
|
18185
|
+
|
|
18186
|
+
return _super.apply(this, arguments);
|
|
18187
|
+
}
|
|
18188
|
+
|
|
18189
|
+
_createClass(MyInput, [{
|
|
18190
|
+
key: "render",
|
|
18191
|
+
value: function render() {
|
|
18192
|
+
var props = this.props;
|
|
18193
|
+
|
|
18194
|
+
if (props.readOnly) {
|
|
18195
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
18196
|
+
className: 'digtal-stakeholder-form-text'
|
|
18197
|
+
}, props.value);
|
|
18198
|
+
} else {
|
|
18199
|
+
return /*#__PURE__*/React.createElement(Input$1, _objectSpread2({}, props));
|
|
18200
|
+
}
|
|
18201
|
+
}
|
|
18202
|
+
}]);
|
|
18203
|
+
|
|
18204
|
+
return MyInput;
|
|
18205
|
+
}(React.Component);
|
|
18206
|
+
|
|
18207
|
+
var Discontinue$1 = /*#__PURE__*/_createClass(function Discontinue() {
|
|
18208
|
+
_classCallCheck(this, Discontinue);
|
|
18209
|
+
});
|
|
18210
|
+
|
|
18211
|
+
Discontinue$1.timer = void 0;
|
|
18212
|
+
|
|
18213
|
+
Discontinue$1.start = function () {
|
|
18214
|
+
var interval = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 200;
|
|
18215
|
+
return new Promise(function (resolve) {
|
|
18216
|
+
clearTimeout(Discontinue$1.timer);
|
|
18217
|
+
Discontinue$1.timer = setTimeout(resolve, interval);
|
|
18218
|
+
});
|
|
18219
|
+
};
|
|
18220
|
+
|
|
18221
|
+
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";
|
|
18222
|
+
styleInject(css_248z$i);
|
|
18223
|
+
|
|
17620
18224
|
var SignDigtal = decorator(Form.create())(function (props) {
|
|
17621
18225
|
var form = props.form;
|
|
17622
18226
|
var getFieldDecorator = form.getFieldDecorator;
|
|
@@ -17649,48 +18253,48 @@ var SignDigtal = decorator(Form.create())(function (props) {
|
|
|
17649
18253
|
controller.useForm('sign', form);
|
|
17650
18254
|
|
|
17651
18255
|
if (readOnly) {
|
|
17652
|
-
return React.createElement("div", {
|
|
18256
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
17653
18257
|
className: "kts-invoice-operate-sign-digtal-readOnly"
|
|
17654
|
-
}, React.createElement("div", {
|
|
18258
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
17655
18259
|
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', {
|
|
18260
|
+
}, /*#__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
18261
|
initialValue: props.defaultRemark
|
|
17658
|
-
})(isEnables('remarks') ? React.createElement(Input$1.TextArea, {
|
|
18262
|
+
})(isEnables('remarks') ? /*#__PURE__*/React.createElement(Input$1.TextArea, {
|
|
17659
18263
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
17660
18264
|
style: {
|
|
17661
18265
|
height: '100%'
|
|
17662
18266
|
}
|
|
17663
|
-
}) : React.createElement(MyDiv$1, {
|
|
18267
|
+
}) : /*#__PURE__*/React.createElement(MyDiv$1, {
|
|
17664
18268
|
style: {
|
|
17665
18269
|
whiteSpace: 'pre-wrap',
|
|
17666
18270
|
wordBreak: 'break-all'
|
|
17667
18271
|
}
|
|
17668
|
-
})))), React.createElement(Form, {
|
|
18272
|
+
})))), /*#__PURE__*/React.createElement(Form, {
|
|
17669
18273
|
layout: 'inline',
|
|
17670
18274
|
className: 'digtal-readOnly-form'
|
|
17671
|
-
}, React.createElement(Form.Item, {
|
|
18275
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
17672
18276
|
label: "\u5F00\u7968\u4EBA"
|
|
17673
18277
|
}, getFieldDecorator('drawer', {
|
|
17674
18278
|
initialValue: props.defaultRemark
|
|
17675
|
-
})(React.createElement(MyDiv$1, null)))));
|
|
18279
|
+
})( /*#__PURE__*/React.createElement(MyDiv$1, null)))));
|
|
17676
18280
|
} else {
|
|
17677
|
-
return React.createElement("div", {
|
|
18281
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
17678
18282
|
className: "kts-invoice-operate-sign-digtal"
|
|
17679
|
-
}, React.createElement("div", {
|
|
18283
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
17680
18284
|
className: 'sign-digtal-label'
|
|
17681
|
-
}, "\u5907\u6CE8\u4FE1\u606F"), React.createElement(Form, null, React.createElement(Form.Item, {
|
|
18285
|
+
}, "\u5907\u6CE8\u4FE1\u606F"), /*#__PURE__*/React.createElement(Form, null, /*#__PURE__*/React.createElement(Form.Item, {
|
|
17682
18286
|
label: "\u5907\u6CE8"
|
|
17683
18287
|
}, getFieldDecorator('remarks', {
|
|
17684
18288
|
initialValue: props.defaultRemark
|
|
17685
|
-
})(React.createElement(Input$1.TextArea, {
|
|
18289
|
+
})( /*#__PURE__*/React.createElement(Input$1.TextArea, {
|
|
17686
18290
|
readOnly: isReadOnly('remarks'),
|
|
17687
18291
|
autoSize: true,
|
|
17688
18292
|
placeholder: "\u8BF7\u8F93\u5165"
|
|
17689
|
-
}))), React.createElement(Form.Item, {
|
|
18293
|
+
}))), /*#__PURE__*/React.createElement(Form.Item, {
|
|
17690
18294
|
label: "\u5F00\u7968\u4EBA"
|
|
17691
18295
|
}, getFieldDecorator('drawer', {
|
|
17692
18296
|
initialValue: props.defaultIssuer
|
|
17693
|
-
})(React.createElement(Input$1, {
|
|
18297
|
+
})( /*#__PURE__*/React.createElement(Input$1, {
|
|
17694
18298
|
readOnly: isReadOnly('drawer'),
|
|
17695
18299
|
style: {
|
|
17696
18300
|
width: 313
|
|
@@ -17714,7 +18318,7 @@ var MyDiv$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
17714
18318
|
_createClass(MyDiv, [{
|
|
17715
18319
|
key: "render",
|
|
17716
18320
|
value: function render() {
|
|
17717
|
-
return React.createElement("div", {
|
|
18321
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
17718
18322
|
style: this.props.style
|
|
17719
18323
|
}, this.props.value);
|
|
17720
18324
|
}
|
|
@@ -17723,8 +18327,8 @@ var MyDiv$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
17723
18327
|
return MyDiv;
|
|
17724
18328
|
}(React.Component);
|
|
17725
18329
|
|
|
17726
|
-
var css_248z$
|
|
17727
|
-
styleInject(css_248z$
|
|
18330
|
+
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";
|
|
18331
|
+
styleInject(css_248z$j);
|
|
17728
18332
|
|
|
17729
18333
|
function TableVirtual$1 (props) {
|
|
17730
18334
|
var _props$dataSource2;
|
|
@@ -17817,29 +18421,29 @@ function TableVirtual$1 (props) {
|
|
|
17817
18421
|
if (!cont) return;
|
|
17818
18422
|
cont.scrollTop = 0;
|
|
17819
18423
|
}, [(_props$dataSource2 = props.dataSource) === null || _props$dataSource2 === void 0 ? void 0 : _props$dataSource2.length]);
|
|
17820
|
-
return React.createElement("span", {
|
|
18424
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
17821
18425
|
className: "kts-invoice-operate-goods-table-virtual",
|
|
17822
18426
|
ref: function ref(e) {
|
|
17823
18427
|
setSelf(e);
|
|
17824
18428
|
}
|
|
17825
|
-
}, React.createElement(TableManual, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
18429
|
+
}, /*#__PURE__*/React.createElement(TableManual, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
17826
18430
|
dataSource: dataSource,
|
|
17827
18431
|
// 新版本Table会有输入框无法连续输入的问题,先兼容老版本
|
|
17828
18432
|
tableComponent: Table
|
|
17829
18433
|
})));
|
|
17830
18434
|
}
|
|
17831
18435
|
|
|
17832
|
-
var _g$
|
|
18436
|
+
var _g$2, _defs$4;
|
|
17833
18437
|
|
|
17834
|
-
function _extends$
|
|
18438
|
+
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
18439
|
|
|
17836
18440
|
function SvgFork(props) {
|
|
17837
|
-
return /*#__PURE__*/createElement("svg", _extends$
|
|
18441
|
+
return /*#__PURE__*/createElement("svg", _extends$a({
|
|
17838
18442
|
xmlns: "http://www.w3.org/2000/svg",
|
|
17839
18443
|
width: 16,
|
|
17840
18444
|
height: 16,
|
|
17841
18445
|
fill: "none"
|
|
17842
|
-
}, props), _g$
|
|
18446
|
+
}, props), _g$2 || (_g$2 = /*#__PURE__*/createElement("g", {
|
|
17843
18447
|
clipPath: "url(#fork_svg__clip0_695_1221)",
|
|
17844
18448
|
fill: "#333"
|
|
17845
18449
|
}, /*#__PURE__*/createElement("path", {
|
|
@@ -17848,7 +18452,7 @@ function SvgFork(props) {
|
|
|
17848
18452
|
d: "M10.702 11.329l-5.973-5.97.629-.63 5.971 5.971-.627.629z"
|
|
17849
18453
|
}), /*#__PURE__*/createElement("path", {
|
|
17850
18454
|
d: "M4.669 10.702l5.97-5.971.63.628-5.972 5.972-.628-.629z"
|
|
17851
|
-
}))), _defs$
|
|
18455
|
+
}))), _defs$4 || (_defs$4 = /*#__PURE__*/createElement("defs", null, /*#__PURE__*/createElement("clipPath", {
|
|
17852
18456
|
id: "fork_svg__clip0_695_1221"
|
|
17853
18457
|
}, /*#__PURE__*/createElement("path", {
|
|
17854
18458
|
fill: "#fff",
|
|
@@ -17856,8 +18460,8 @@ function SvgFork(props) {
|
|
|
17856
18460
|
})))));
|
|
17857
18461
|
}
|
|
17858
18462
|
|
|
17859
|
-
var css_248z$
|
|
17860
|
-
styleInject(css_248z$
|
|
18463
|
+
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";
|
|
18464
|
+
styleInject(css_248z$k);
|
|
17861
18465
|
|
|
17862
18466
|
var Statistics$1 = (function () {
|
|
17863
18467
|
var controller = Invoice.useInvoiceController();
|
|
@@ -17933,54 +18537,54 @@ var Statistics$1 = (function () {
|
|
|
17933
18537
|
});
|
|
17934
18538
|
return sum.done().toNumber();
|
|
17935
18539
|
}, []);
|
|
17936
|
-
return React.createElement("div", {
|
|
18540
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
17937
18541
|
className: 'kts-invoice-operate-goods-list-statistics-digtal'
|
|
17938
|
-
}, React.createElement("div", {
|
|
18542
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
17939
18543
|
className: 'statistics-digtal-total'
|
|
17940
|
-
}, React.createElement("div", null, "\u5408\u8BA1"), React.createElement("div", {
|
|
18544
|
+
}, /*#__PURE__*/React.createElement("div", null, "\u5408\u8BA1"), /*#__PURE__*/React.createElement("div", {
|
|
17941
18545
|
style: {
|
|
17942
18546
|
flex: 1
|
|
17943
18547
|
}
|
|
17944
|
-
}), React.createElement("div", {
|
|
18548
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
17945
18549
|
style: {
|
|
17946
18550
|
minWidth: 119,
|
|
17947
18551
|
maxWidth: 300,
|
|
17948
18552
|
textAlign: 'right',
|
|
17949
18553
|
paddingRight: 15
|
|
17950
18554
|
}
|
|
17951
|
-
}, "\xA5", parseFloat(isTaxIncluded ? lineAmountIncludeTax : lineAmountExcludeTax).toFixed(2)), React.createElement("div", {
|
|
18555
|
+
}, "\xA5", parseFloat(isTaxIncluded ? lineAmountIncludeTax : lineAmountExcludeTax).toFixed(2)), /*#__PURE__*/React.createElement("div", {
|
|
17952
18556
|
style: {
|
|
17953
18557
|
minWidth: 119,
|
|
17954
18558
|
maxWidth: 300,
|
|
17955
18559
|
textAlign: 'right',
|
|
17956
18560
|
paddingRight: 15
|
|
17957
18561
|
}
|
|
17958
|
-
}, "\xA5", parseFloat(taxAmount).toFixed(2))), React.createElement("div", {
|
|
18562
|
+
}, "\xA5", parseFloat(taxAmount).toFixed(2))), /*#__PURE__*/React.createElement("div", {
|
|
17959
18563
|
className: 'statistics-digtal-total-tax'
|
|
17960
|
-
}, React.createElement("div", null, "\u4EF7\u7A0E\u5408\u8BA1\uFF08\u5927\u5199\uFF09"), React.createElement("div", {
|
|
18564
|
+
}, /*#__PURE__*/React.createElement("div", null, "\u4EF7\u7A0E\u5408\u8BA1\uFF08\u5927\u5199\uFF09"), /*#__PURE__*/React.createElement("div", {
|
|
17961
18565
|
style: {
|
|
17962
18566
|
paddingLeft: 30
|
|
17963
18567
|
}
|
|
17964
|
-
}, React.createElement(Icon, {
|
|
18568
|
+
}, /*#__PURE__*/React.createElement(Icon, {
|
|
17965
18569
|
style: {
|
|
17966
18570
|
fontSize: 16
|
|
17967
18571
|
},
|
|
17968
18572
|
component: SvgFork
|
|
17969
|
-
}), React.createElement("span", {
|
|
18573
|
+
}), /*#__PURE__*/React.createElement("span", {
|
|
17970
18574
|
style: {
|
|
17971
18575
|
fontWeight: 'bold',
|
|
17972
18576
|
marginLeft: 4
|
|
17973
18577
|
}
|
|
17974
|
-
}, toStringChinese(lineAmountIncludeTax))), React.createElement("div", {
|
|
18578
|
+
}, toStringChinese(lineAmountIncludeTax))), /*#__PURE__*/React.createElement("div", {
|
|
17975
18579
|
style: {
|
|
17976
18580
|
flex: 1
|
|
17977
18581
|
}
|
|
17978
|
-
}), React.createElement("div", {
|
|
18582
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
17979
18583
|
style: {
|
|
17980
18584
|
width: 90,
|
|
17981
18585
|
color: '#9F613E'
|
|
17982
18586
|
}
|
|
17983
|
-
}, "\uFF08\u5C0F\u5199\uFF09"), React.createElement("div", {
|
|
18587
|
+
}, "\uFF08\u5C0F\u5199\uFF09"), /*#__PURE__*/React.createElement("div", {
|
|
17984
18588
|
style: {
|
|
17985
18589
|
minWidth: 119,
|
|
17986
18590
|
maxWidth: 300
|
|
@@ -18040,10 +18644,10 @@ var AddRowButton$1 = (function () {
|
|
|
18040
18644
|
}
|
|
18041
18645
|
}, _callee);
|
|
18042
18646
|
})), [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, {
|
|
18647
|
+
if (isAddRow === false) return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
18648
|
+
if (model === 'prefab') return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
18649
|
+
if (model === 'readOnly') return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
18650
|
+
return /*#__PURE__*/React.createElement(Button$1, {
|
|
18047
18651
|
size: 'small',
|
|
18048
18652
|
type: 'primary',
|
|
18049
18653
|
onClick: onClick,
|
|
@@ -19426,11 +20030,11 @@ var TaxIncludedSwitch$1 = (function () {
|
|
|
19426
20030
|
return _ref.apply(this, arguments);
|
|
19427
20031
|
};
|
|
19428
20032
|
}(), []);
|
|
19429
|
-
return React.createElement("span", null, React.createElement("label", {
|
|
20033
|
+
return /*#__PURE__*/React.createElement("span", null, /*#__PURE__*/React.createElement("label", {
|
|
19430
20034
|
style: {
|
|
19431
20035
|
marginRight: 2
|
|
19432
20036
|
}
|
|
19433
|
-
}, "\u542B\u7A0E"), React.createElement(Switch, {
|
|
20037
|
+
}, "\u542B\u7A0E"), /*#__PURE__*/React.createElement(Switch, {
|
|
19434
20038
|
disabled: isSwitchTax === false,
|
|
19435
20039
|
checked: isTaxIncluded,
|
|
19436
20040
|
defaultChecked: true,
|
|
@@ -19438,24 +20042,24 @@ var TaxIncludedSwitch$1 = (function () {
|
|
|
19438
20042
|
}));
|
|
19439
20043
|
});
|
|
19440
20044
|
|
|
19441
|
-
var _path$
|
|
20045
|
+
var _path$8;
|
|
19442
20046
|
|
|
19443
|
-
function _extends$
|
|
20047
|
+
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
20048
|
|
|
19445
20049
|
function SvgMagnifier$1(props) {
|
|
19446
|
-
return /*#__PURE__*/createElement("svg", _extends$
|
|
20050
|
+
return /*#__PURE__*/createElement("svg", _extends$b({
|
|
19447
20051
|
className: "magnifier_svg__icon",
|
|
19448
20052
|
viewBox: "0 0 1024 1024",
|
|
19449
20053
|
xmlns: "http://www.w3.org/2000/svg",
|
|
19450
20054
|
width: 200,
|
|
19451
20055
|
height: 200
|
|
19452
|
-
}, props), _path$
|
|
20056
|
+
}, props), _path$8 || (_path$8 = /*#__PURE__*/createElement("path", {
|
|
19453
20057
|
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
20058
|
})));
|
|
19455
20059
|
}
|
|
19456
20060
|
|
|
19457
|
-
var css_248z$
|
|
19458
|
-
styleInject(css_248z$
|
|
20061
|
+
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";
|
|
20062
|
+
styleInject(css_248z$l);
|
|
19459
20063
|
|
|
19460
20064
|
function Search$1() {
|
|
19461
20065
|
var controller = Invoice.useInvoiceController();
|
|
@@ -19526,12 +20130,12 @@ function Search$1() {
|
|
|
19526
20130
|
};
|
|
19527
20131
|
}());
|
|
19528
20132
|
}, [value, controller]);
|
|
19529
|
-
return React.createElement(Input$1, {
|
|
20133
|
+
return /*#__PURE__*/React.createElement(Input$1, {
|
|
19530
20134
|
readOnly: readOnly,
|
|
19531
20135
|
value: value,
|
|
19532
20136
|
className: "kts-invoice-operate-goods-list-search",
|
|
19533
20137
|
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, {
|
|
20138
|
+
prefix: /*#__PURE__*/React.createElement(Icon$1, {
|
|
19535
20139
|
component: SvgMagnifier$1,
|
|
19536
20140
|
style: {
|
|
19537
20141
|
color: "#b8b8b8"
|
|
@@ -19544,8 +20148,8 @@ function Search$1() {
|
|
|
19544
20148
|
});
|
|
19545
20149
|
}
|
|
19546
20150
|
|
|
19547
|
-
var css_248z$
|
|
19548
|
-
styleInject(css_248z$
|
|
20151
|
+
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";
|
|
20152
|
+
styleInject(css_248z$m);
|
|
19549
20153
|
|
|
19550
20154
|
function TableRow$1(props) {
|
|
19551
20155
|
var rowKey = props['data-row-key'];
|
|
@@ -19576,12 +20180,12 @@ function TableRow$1(props) {
|
|
|
19576
20180
|
return undefined;
|
|
19577
20181
|
}
|
|
19578
20182
|
}, [rowKey, goodsMap]);
|
|
19579
|
-
return rowKey === current && current ? React.createElement("tr", {
|
|
20183
|
+
return rowKey === current && current ? /*#__PURE__*/React.createElement("tr", {
|
|
19580
20184
|
style: {
|
|
19581
20185
|
height: 50,
|
|
19582
20186
|
position: 'relative'
|
|
19583
20187
|
}
|
|
19584
|
-
}, React.createElement("div", {
|
|
20188
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
19585
20189
|
style: {
|
|
19586
20190
|
height: 0.5,
|
|
19587
20191
|
width: '100%',
|
|
@@ -19589,22 +20193,24 @@ function TableRow$1(props) {
|
|
|
19589
20193
|
position: 'absolute',
|
|
19590
20194
|
bottom: 0
|
|
19591
20195
|
}
|
|
19592
|
-
})) :
|
|
20196
|
+
})) :
|
|
20197
|
+
/*#__PURE__*/
|
|
20198
|
+
// <tr {...props} className={classnames(props.className, discount, (rowKey === container && current) ? 'kts-invoice-operate-goods-list-itemName-drag-container' : '')} />
|
|
19593
20199
|
React.createElement("tr", _objectSpread2(_objectSpread2({}, props), {}, {
|
|
19594
20200
|
className: classNames(props.className, discount, rowKey === container && current ? 'kts-invoice-operate-goods-list-itemName-drag-container-' + site : undefined)
|
|
19595
20201
|
}));
|
|
19596
20202
|
}
|
|
19597
20203
|
|
|
19598
|
-
var _g$
|
|
20204
|
+
var _g$3, _defs$5;
|
|
19599
20205
|
|
|
19600
|
-
function _extends$
|
|
20206
|
+
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
20207
|
|
|
19602
|
-
function SvgPlus$
|
|
19603
|
-
return /*#__PURE__*/createElement("svg", _extends$
|
|
20208
|
+
function SvgPlus$2(props) {
|
|
20209
|
+
return /*#__PURE__*/createElement("svg", _extends$c({
|
|
19604
20210
|
xmlns: "http://www.w3.org/2000/svg",
|
|
19605
20211
|
width: 16,
|
|
19606
20212
|
height: 15
|
|
19607
|
-
}, props), _g$
|
|
20213
|
+
}, props), _g$3 || (_g$3 = /*#__PURE__*/createElement("g", {
|
|
19608
20214
|
clipPath: "url(#plus_svg__clip0_715_360)"
|
|
19609
20215
|
}, /*#__PURE__*/createElement("path", {
|
|
19610
20216
|
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 +20218,7 @@ function SvgPlus$1(props) {
|
|
|
19612
20218
|
d: "M4.25 7.969a.469.469 0 010-.938h7.5a.47.47 0 010 .938h-7.5z"
|
|
19613
20219
|
}), /*#__PURE__*/createElement("path", {
|
|
19614
20220
|
d: "M7.531 3.75a.469.469 0 01.938 0v7.5a.47.47 0 01-.938 0v-7.5z"
|
|
19615
|
-
}))), _defs$
|
|
20221
|
+
}))), _defs$5 || (_defs$5 = /*#__PURE__*/createElement("defs", null, /*#__PURE__*/createElement("clipPath", {
|
|
19616
20222
|
id: "plus_svg__clip0_715_360"
|
|
19617
20223
|
}, /*#__PURE__*/createElement("path", {
|
|
19618
20224
|
transform: "translate(.5)",
|
|
@@ -19629,13 +20235,13 @@ var TitleText$1 = (function (props) {
|
|
|
19629
20235
|
return !!e.required;
|
|
19630
20236
|
})) || props.required;
|
|
19631
20237
|
}, [rules, props.required]);
|
|
19632
|
-
return React.createElement(React.Fragment, null, required ? React.createElement(Text$5, {
|
|
20238
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, required ? /*#__PURE__*/React.createElement(Text$5, {
|
|
19633
20239
|
type: "danger"
|
|
19634
|
-
}, "*") : React.createElement(React.Fragment, null), children);
|
|
20240
|
+
}, "*") : /*#__PURE__*/React.createElement(React.Fragment, null), children);
|
|
19635
20241
|
});
|
|
19636
20242
|
|
|
19637
|
-
var css_248z$
|
|
19638
|
-
styleInject(css_248z$
|
|
20243
|
+
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";
|
|
20244
|
+
styleInject(css_248z$n);
|
|
19639
20245
|
|
|
19640
20246
|
function ItemNameInput$1(props) {
|
|
19641
20247
|
var controller = Invoice.useInvoiceController();
|
|
@@ -19815,14 +20421,14 @@ function ItemNameInput$1(props) {
|
|
|
19815
20421
|
return _ref3.apply(this, arguments);
|
|
19816
20422
|
};
|
|
19817
20423
|
}(), [autoComplete.onItemNameSearch]);
|
|
19818
|
-
return React.createElement("div", {
|
|
20424
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
19819
20425
|
className: 'kts-invoice-operate-goods-list-itemName-input'
|
|
19820
|
-
}, props.shorthand && React.createElement("span", {
|
|
20426
|
+
}, props.shorthand && /*#__PURE__*/React.createElement("span", {
|
|
19821
20427
|
style: {
|
|
19822
20428
|
alignSelf: 'center',
|
|
19823
20429
|
fontSize: 12
|
|
19824
20430
|
}
|
|
19825
|
-
}, "*", props.shorthand, "*"), React.createElement(AutoComplete$1, {
|
|
20431
|
+
}, "*", props.shorthand, "*"), /*#__PURE__*/React.createElement(AutoComplete$1, {
|
|
19826
20432
|
onSearch: onSearch,
|
|
19827
20433
|
value: props.value,
|
|
19828
20434
|
options: options.map(function (e) {
|
|
@@ -19835,7 +20441,7 @@ function ItemNameInput$1(props) {
|
|
|
19835
20441
|
return rootElement || document.body;
|
|
19836
20442
|
},
|
|
19837
20443
|
onSelect: onChangeAutoComplete
|
|
19838
|
-
}, React.createElement(Input$1, {
|
|
20444
|
+
}, /*#__PURE__*/React.createElement(Input$1, {
|
|
19839
20445
|
style: {
|
|
19840
20446
|
height: '100%'
|
|
19841
20447
|
},
|
|
@@ -19845,24 +20451,24 @@ function ItemNameInput$1(props) {
|
|
|
19845
20451
|
})));
|
|
19846
20452
|
}
|
|
19847
20453
|
|
|
19848
|
-
var _path$
|
|
20454
|
+
var _path$9;
|
|
19849
20455
|
|
|
19850
|
-
function _extends$
|
|
20456
|
+
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
20457
|
|
|
19852
20458
|
function SvgI001$1(props) {
|
|
19853
|
-
return /*#__PURE__*/createElement("svg", _extends$
|
|
20459
|
+
return /*#__PURE__*/createElement("svg", _extends$d({
|
|
19854
20460
|
className: "I001_svg__icon",
|
|
19855
20461
|
viewBox: "0 0 1024 1024",
|
|
19856
20462
|
xmlns: "http://www.w3.org/2000/svg",
|
|
19857
20463
|
width: 200,
|
|
19858
20464
|
height: 200
|
|
19859
|
-
}, props), _path$
|
|
20465
|
+
}, props), _path$9 || (_path$9 = /*#__PURE__*/createElement("path", {
|
|
19860
20466
|
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
20467
|
})));
|
|
19862
20468
|
}
|
|
19863
20469
|
|
|
19864
|
-
var css_248z$
|
|
19865
|
-
styleInject(css_248z$
|
|
20470
|
+
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";
|
|
20471
|
+
styleInject(css_248z$o);
|
|
19866
20472
|
|
|
19867
20473
|
function Drag$2(props) {
|
|
19868
20474
|
var record = props.record;
|
|
@@ -19905,7 +20511,7 @@ function Drag$2(props) {
|
|
|
19905
20511
|
var currentGood = controller.state.goodsListState.goodsList.filter(function (e) {
|
|
19906
20512
|
return e.$index === record.$index;
|
|
19907
20513
|
})[0];
|
|
19908
|
-
mounting(React.createElement(DragDiv$1, _objectSpread2({}, currentGood)));
|
|
20514
|
+
mounting( /*#__PURE__*/React.createElement(DragDiv$1, _objectSpread2({}, currentGood)));
|
|
19909
20515
|
rowList.forEach(function (e) {
|
|
19910
20516
|
e.addEventListener('mousemove', onMousemove);
|
|
19911
20517
|
});
|
|
@@ -20066,7 +20672,7 @@ function Drag$2(props) {
|
|
|
20066
20672
|
|
|
20067
20673
|
|
|
20068
20674
|
function insert() {
|
|
20069
|
-
mounting(React.createElement(React.Fragment, null));
|
|
20675
|
+
mounting( /*#__PURE__*/React.createElement(React.Fragment, null));
|
|
20070
20676
|
controller.run( /*#__PURE__*/function () {
|
|
20071
20677
|
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(s) {
|
|
20072
20678
|
var _s$goodsListState$dra, container, current, site, goodsList, goodsMap, _currentGood, currentIndex, moveGoods;
|
|
@@ -20145,7 +20751,7 @@ function Drag$2(props) {
|
|
|
20145
20751
|
}
|
|
20146
20752
|
}, [controller, record, disabled]);
|
|
20147
20753
|
var renderButton = React.useMemo(function () {
|
|
20148
|
-
return React.createElement(Button, {
|
|
20754
|
+
return /*#__PURE__*/React.createElement(Button, {
|
|
20149
20755
|
type: 'link',
|
|
20150
20756
|
style: {
|
|
20151
20757
|
padding: 0
|
|
@@ -20156,13 +20762,13 @@ function Drag$2(props) {
|
|
|
20156
20762
|
},
|
|
20157
20763
|
className: "kts-invoice-operate-goods-list-itemName-drag",
|
|
20158
20764
|
onMouseOver: controller.saveEditGood
|
|
20159
|
-
}, React.createElement(Icon, {
|
|
20765
|
+
}, /*#__PURE__*/React.createElement(Icon, {
|
|
20160
20766
|
component: SvgI001$1
|
|
20161
20767
|
}));
|
|
20162
20768
|
}, [onMouseDown, controller]);
|
|
20163
20769
|
|
|
20164
20770
|
if (disabled) {
|
|
20165
|
-
return React.createElement(Popover, {
|
|
20771
|
+
return /*#__PURE__*/React.createElement(Popover, {
|
|
20166
20772
|
content: '您还有未编辑完成的商品',
|
|
20167
20773
|
trigger: 'focus'
|
|
20168
20774
|
}, renderButton);
|
|
@@ -20202,13 +20808,13 @@ function DragDiv$1(props) {
|
|
|
20202
20808
|
window.removeEventListener('mousemove', onMousemove);
|
|
20203
20809
|
};
|
|
20204
20810
|
});
|
|
20205
|
-
return React.createElement("div", {
|
|
20811
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
20206
20812
|
className: "kts-invoice-operate-goods-list-itemName-drag-div",
|
|
20207
20813
|
style: {
|
|
20208
20814
|
top: y,
|
|
20209
20815
|
left: x
|
|
20210
20816
|
}
|
|
20211
|
-
}, React.createElement("span", null, props.itemName), React.createElement("span", null, props.itemModelName), React.createElement("span", null, props.unit));
|
|
20817
|
+
}, /*#__PURE__*/React.createElement("span", null, props.itemName), /*#__PURE__*/React.createElement("span", null, props.itemModelName), /*#__PURE__*/React.createElement("span", null, props.unit));
|
|
20212
20818
|
}
|
|
20213
20819
|
|
|
20214
20820
|
var useColumns$1 = (function (form) {
|
|
@@ -20337,7 +20943,7 @@ var useColumns$1 = (function (form) {
|
|
|
20337
20943
|
width: 40,
|
|
20338
20944
|
align: 'center',
|
|
20339
20945
|
render: function render(_, record) {
|
|
20340
|
-
return React.createElement(Drag$2, {
|
|
20946
|
+
return /*#__PURE__*/React.createElement(Drag$2, {
|
|
20341
20947
|
record: record
|
|
20342
20948
|
});
|
|
20343
20949
|
}
|
|
@@ -20347,20 +20953,20 @@ var useColumns$1 = (function (form) {
|
|
|
20347
20953
|
dataIndex: 'serialNo',
|
|
20348
20954
|
width: 50,
|
|
20349
20955
|
render: function render(e) {
|
|
20350
|
-
return React.createElement("span", {
|
|
20956
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
20351
20957
|
style: {
|
|
20352
20958
|
padding: '0 10px'
|
|
20353
20959
|
}
|
|
20354
20960
|
}, e);
|
|
20355
20961
|
}
|
|
20356
20962
|
}, {
|
|
20357
|
-
title: React.createElement(TitleText$1, {
|
|
20963
|
+
title: /*#__PURE__*/React.createElement(TitleText$1, {
|
|
20358
20964
|
required: true
|
|
20359
20965
|
}, "\u9879\u76EE\u540D\u79F0"),
|
|
20360
20966
|
key: 'itemName',
|
|
20361
20967
|
render: function render(_, record) {
|
|
20362
20968
|
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", {
|
|
20969
|
+
return /*#__PURE__*/React.createElement(Form.Item, null, /*#__PURE__*/React.createElement("div", {
|
|
20364
20970
|
style: {
|
|
20365
20971
|
display: 'flex'
|
|
20366
20972
|
}
|
|
@@ -20407,12 +21013,12 @@ var useColumns$1 = (function (form) {
|
|
|
20407
21013
|
return validator;
|
|
20408
21014
|
}()
|
|
20409
21015
|
}])
|
|
20410
|
-
})(React.createElement(ItemNameInput$1, {
|
|
21016
|
+
})( /*#__PURE__*/React.createElement(ItemNameInput$1, {
|
|
20411
21017
|
editGood: editGood,
|
|
20412
21018
|
shorthand: editGood.shorthand,
|
|
20413
|
-
suffix: React.createElement(Tooltip$1, {
|
|
21019
|
+
suffix: /*#__PURE__*/React.createElement(Tooltip$1, {
|
|
20414
21020
|
title: "\u70B9\u51FB\u4ECE\u5546\u54C1\u7BA1\u7406\u4E2D\u6DFB\u52A0\u5546\u54C1\u4FE1\u606F"
|
|
20415
|
-
}, React.createElement(Button$1, {
|
|
21021
|
+
}, /*#__PURE__*/React.createElement(Button$1, {
|
|
20416
21022
|
type: "link",
|
|
20417
21023
|
style: {
|
|
20418
21024
|
padding: 0,
|
|
@@ -20420,7 +21026,7 @@ var useColumns$1 = (function (form) {
|
|
|
20420
21026
|
fontSize: 20,
|
|
20421
21027
|
fill: '#0074ff'
|
|
20422
21028
|
},
|
|
20423
|
-
icon: React.createElement(SvgPlus$
|
|
21029
|
+
icon: /*#__PURE__*/React.createElement(SvgPlus$2, null),
|
|
20424
21030
|
onClick: controller.pipeline( /*#__PURE__*/function () {
|
|
20425
21031
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(s) {
|
|
20426
21032
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
@@ -20447,9 +21053,9 @@ var useColumns$1 = (function (form) {
|
|
|
20447
21053
|
}
|
|
20448
21054
|
}))));
|
|
20449
21055
|
} else {
|
|
20450
|
-
return React.createElement("span", null, record.lineAttribute === LineAttributeType$1.折扣行 ? React.createElement("span", {
|
|
21056
|
+
return /*#__PURE__*/React.createElement("span", null, record.lineAttribute === LineAttributeType$1.折扣行 ? /*#__PURE__*/React.createElement("span", {
|
|
20451
21057
|
className: 'goods-list-digtal-discount-tag'
|
|
20452
|
-
}, "\u6298\u6263") : React.createElement(React.Fragment, null), React.createElement(MyItemNameDiv$1, {
|
|
21058
|
+
}, "\u6298\u6263") : /*#__PURE__*/React.createElement(React.Fragment, null), /*#__PURE__*/React.createElement(MyItemNameDiv$1, {
|
|
20453
21059
|
valueT: formatSearch$1(getItemNameWithShorthand({
|
|
20454
21060
|
shorthand: record.shorthand,
|
|
20455
21061
|
full: record.itemNameSelf || ''
|
|
@@ -20463,17 +21069,17 @@ var useColumns$1 = (function (form) {
|
|
|
20463
21069
|
}
|
|
20464
21070
|
}
|
|
20465
21071
|
}, {
|
|
20466
|
-
title: React.createElement(TitleText$1, {
|
|
21072
|
+
title: /*#__PURE__*/React.createElement(TitleText$1, {
|
|
20467
21073
|
rules: (_columnsReplenish$ite = columnsReplenish['itemModelName']) === null || _columnsReplenish$ite === void 0 ? void 0 : _columnsReplenish$ite.rules
|
|
20468
21074
|
}, "\u89C4\u683C\u578B\u53F7"),
|
|
20469
21075
|
key: 'itemModelName',
|
|
20470
21076
|
width: 119,
|
|
20471
21077
|
render: function render(_, record) {
|
|
20472
21078
|
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', {
|
|
21079
|
+
return /*#__PURE__*/React.createElement(Form.Item, null, getFieldDecorator('itemModelName', {
|
|
20474
21080
|
initialValue: isMyShow ? editGood.itemModelNameSelf : editGood.itemModelName,
|
|
20475
21081
|
rules: getReplenishRules('itemModelName')
|
|
20476
|
-
})(React.createElement(MyInput$
|
|
21082
|
+
})( /*#__PURE__*/React.createElement(MyInput$3, {
|
|
20477
21083
|
onChange: function () {
|
|
20478
21084
|
var _onChange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
20479
21085
|
var key, value;
|
|
@@ -20506,7 +21112,7 @@ var useColumns$1 = (function (form) {
|
|
|
20506
21112
|
}()
|
|
20507
21113
|
})));
|
|
20508
21114
|
} else {
|
|
20509
|
-
return React.createElement(MyItemNameDiv$1, {
|
|
21115
|
+
return /*#__PURE__*/React.createElement(MyItemNameDiv$1, {
|
|
20510
21116
|
valueT: formatSearch$1(record.itemModelNameSelf, searchValue),
|
|
20511
21117
|
valueF: formatSearch$1(record.itemModelName, searchValue),
|
|
20512
21118
|
isMyShow: isMyShow
|
|
@@ -20514,17 +21120,17 @@ var useColumns$1 = (function (form) {
|
|
|
20514
21120
|
}
|
|
20515
21121
|
}
|
|
20516
21122
|
}, {
|
|
20517
|
-
title: React.createElement(TitleText$1, {
|
|
21123
|
+
title: /*#__PURE__*/React.createElement(TitleText$1, {
|
|
20518
21124
|
rules: (_columnsReplenish$uni = columnsReplenish['unit']) === null || _columnsReplenish$uni === void 0 ? void 0 : _columnsReplenish$uni.rules
|
|
20519
21125
|
}, "\u5355\u4F4D"),
|
|
20520
21126
|
key: 'unit',
|
|
20521
21127
|
width: 70,
|
|
20522
21128
|
render: function render(_, record) {
|
|
20523
21129
|
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', {
|
|
21130
|
+
return /*#__PURE__*/React.createElement(Form.Item, null, getFieldDecorator('unit', {
|
|
20525
21131
|
initialValue: editGood.unit,
|
|
20526
21132
|
rules: getReplenishRules('unit')
|
|
20527
|
-
})(React.createElement(AutoComplete$1, {
|
|
21133
|
+
})( /*#__PURE__*/React.createElement(AutoComplete$1, {
|
|
20528
21134
|
style: {
|
|
20529
21135
|
width: '100%'
|
|
20530
21136
|
},
|
|
@@ -20562,7 +21168,7 @@ var useColumns$1 = (function (form) {
|
|
|
20562
21168
|
}()
|
|
20563
21169
|
})));
|
|
20564
21170
|
} else {
|
|
20565
|
-
return React.createElement("span", {
|
|
21171
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
20566
21172
|
style: {
|
|
20567
21173
|
padding: '0 10px'
|
|
20568
21174
|
}
|
|
@@ -20570,7 +21176,7 @@ var useColumns$1 = (function (form) {
|
|
|
20570
21176
|
}
|
|
20571
21177
|
}
|
|
20572
21178
|
}, {
|
|
20573
|
-
title: React.createElement(TitleText$1, {
|
|
21179
|
+
title: /*#__PURE__*/React.createElement(TitleText$1, {
|
|
20574
21180
|
rules: (_columnsReplenish$qua = columnsReplenish['quantity']) === null || _columnsReplenish$qua === void 0 ? void 0 : _columnsReplenish$qua.rules
|
|
20575
21181
|
}, "\u6570\u91CF"),
|
|
20576
21182
|
dataIndex: 'quantity',
|
|
@@ -20579,7 +21185,7 @@ var useColumns$1 = (function (form) {
|
|
|
20579
21185
|
width: 149,
|
|
20580
21186
|
render: function render(value, record) {
|
|
20581
21187
|
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', {
|
|
21188
|
+
return /*#__PURE__*/React.createElement(Form.Item, null, getFieldDecorator('quantity', {
|
|
20583
21189
|
initialValue: nonScientificNotation(editGood.quantity),
|
|
20584
21190
|
getValueFromEvent: onNumberValueChange,
|
|
20585
21191
|
rules: [].concat(_toConsumableArray(getReplenishRules('quantity')), [{
|
|
@@ -20625,7 +21231,7 @@ var useColumns$1 = (function (form) {
|
|
|
20625
21231
|
return validator;
|
|
20626
21232
|
}()
|
|
20627
21233
|
}])
|
|
20628
|
-
})(React.createElement(MyInput$
|
|
21234
|
+
})( /*#__PURE__*/React.createElement(MyInput$3, {
|
|
20629
21235
|
style: {
|
|
20630
21236
|
textAlign: 'right'
|
|
20631
21237
|
},
|
|
@@ -20657,7 +21263,7 @@ var useColumns$1 = (function (form) {
|
|
|
20657
21263
|
}()
|
|
20658
21264
|
})));
|
|
20659
21265
|
} else {
|
|
20660
|
-
return React.createElement("span", {
|
|
21266
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
20661
21267
|
style: {
|
|
20662
21268
|
padding: '0 10px'
|
|
20663
21269
|
}
|
|
@@ -20665,7 +21271,7 @@ var useColumns$1 = (function (form) {
|
|
|
20665
21271
|
}
|
|
20666
21272
|
}
|
|
20667
21273
|
}, {
|
|
20668
|
-
title: React.createElement(TitleText$1, {
|
|
21274
|
+
title: /*#__PURE__*/React.createElement(TitleText$1, {
|
|
20669
21275
|
rules: (_columnsReplenish$pri = columnsReplenish['priceIncludeTax']) === null || _columnsReplenish$pri === void 0 ? void 0 : _columnsReplenish$pri.rules
|
|
20670
21276
|
}, "\u5355\u4EF7(\u542B\u7A0E)"),
|
|
20671
21277
|
dataIndex: 'priceIncludeTax',
|
|
@@ -20674,7 +21280,7 @@ var useColumns$1 = (function (form) {
|
|
|
20674
21280
|
width: 149,
|
|
20675
21281
|
render: function render(value, record) {
|
|
20676
21282
|
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', {
|
|
21283
|
+
return /*#__PURE__*/React.createElement(Form.Item, null, getFieldDecorator('priceIncludeTax', {
|
|
20678
21284
|
initialValue: nonScientificNotation(editGood.priceIncludeTax),
|
|
20679
21285
|
getValueFromEvent: onNumberValueChange,
|
|
20680
21286
|
rules: [].concat(_toConsumableArray(getReplenishRules('priceIncludeTax')), [{
|
|
@@ -20720,7 +21326,7 @@ var useColumns$1 = (function (form) {
|
|
|
20720
21326
|
return validator;
|
|
20721
21327
|
}()
|
|
20722
21328
|
}])
|
|
20723
|
-
})(React.createElement(MyInput$
|
|
21329
|
+
})( /*#__PURE__*/React.createElement(MyInput$3, {
|
|
20724
21330
|
style: {
|
|
20725
21331
|
textAlign: 'right'
|
|
20726
21332
|
},
|
|
@@ -20732,7 +21338,7 @@ var useColumns$1 = (function (form) {
|
|
|
20732
21338
|
}
|
|
20733
21339
|
})));
|
|
20734
21340
|
} else {
|
|
20735
|
-
return React.createElement("span", {
|
|
21341
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
20736
21342
|
style: {
|
|
20737
21343
|
padding: '0 10px'
|
|
20738
21344
|
}
|
|
@@ -20740,7 +21346,7 @@ var useColumns$1 = (function (form) {
|
|
|
20740
21346
|
}
|
|
20741
21347
|
}
|
|
20742
21348
|
}, {
|
|
20743
|
-
title: React.createElement(TitleText$1, {
|
|
21349
|
+
title: /*#__PURE__*/React.createElement(TitleText$1, {
|
|
20744
21350
|
rules: (_columnsReplenish$pri2 = columnsReplenish['priceExcludeTax']) === null || _columnsReplenish$pri2 === void 0 ? void 0 : _columnsReplenish$pri2.rules
|
|
20745
21351
|
}, "\u5355\u4EF7(\u4E0D\u542B\u7A0E)"),
|
|
20746
21352
|
dataIndex: 'priceExcludeTax',
|
|
@@ -20749,7 +21355,7 @@ var useColumns$1 = (function (form) {
|
|
|
20749
21355
|
width: 149,
|
|
20750
21356
|
render: function render(value, record) {
|
|
20751
21357
|
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', {
|
|
21358
|
+
return /*#__PURE__*/React.createElement(Form.Item, null, getFieldDecorator('priceExcludeTax', {
|
|
20753
21359
|
initialValue: nonScientificNotation(editGood.priceExcludeTax),
|
|
20754
21360
|
getValueFromEvent: onNumberValueChange,
|
|
20755
21361
|
rules: [].concat(_toConsumableArray(getReplenishRules('priceExcludeTax')), [{
|
|
@@ -20795,7 +21401,7 @@ var useColumns$1 = (function (form) {
|
|
|
20795
21401
|
return validator;
|
|
20796
21402
|
}()
|
|
20797
21403
|
}])
|
|
20798
|
-
})(React.createElement(MyInput$
|
|
21404
|
+
})( /*#__PURE__*/React.createElement(MyInput$3, {
|
|
20799
21405
|
style: {
|
|
20800
21406
|
textAlign: 'right'
|
|
20801
21407
|
},
|
|
@@ -20807,7 +21413,7 @@ var useColumns$1 = (function (form) {
|
|
|
20807
21413
|
}
|
|
20808
21414
|
})));
|
|
20809
21415
|
} else {
|
|
20810
|
-
return React.createElement("span", {
|
|
21416
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
20811
21417
|
style: {
|
|
20812
21418
|
padding: '0 10px'
|
|
20813
21419
|
}
|
|
@@ -20815,7 +21421,7 @@ var useColumns$1 = (function (form) {
|
|
|
20815
21421
|
}
|
|
20816
21422
|
}
|
|
20817
21423
|
}, {
|
|
20818
|
-
title: React.createElement(TitleText$1, {
|
|
21424
|
+
title: /*#__PURE__*/React.createElement(TitleText$1, {
|
|
20819
21425
|
required: true
|
|
20820
21426
|
}, "\u91D1\u989D(\u542B\u7A0E)"),
|
|
20821
21427
|
dataIndex: 'lineAmountIncludeTax',
|
|
@@ -20824,7 +21430,7 @@ var useColumns$1 = (function (form) {
|
|
|
20824
21430
|
align: 'right',
|
|
20825
21431
|
render: function render(value, record) {
|
|
20826
21432
|
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', {
|
|
21433
|
+
return /*#__PURE__*/React.createElement(Form.Item, null, getFieldDecorator('lineAmountIncludeTax', {
|
|
20828
21434
|
initialValue: editGood.lineAmountIncludeTax,
|
|
20829
21435
|
getValueFromEvent: onNumberValueChange,
|
|
20830
21436
|
rules: [].concat(_toConsumableArray(getReplenishRules('lineAmountIncludeTax')), [{
|
|
@@ -20884,7 +21490,7 @@ var useColumns$1 = (function (form) {
|
|
|
20884
21490
|
return validator;
|
|
20885
21491
|
}()
|
|
20886
21492
|
}])
|
|
20887
|
-
})(React.createElement(MyInput$
|
|
21493
|
+
})( /*#__PURE__*/React.createElement(MyInput$3, {
|
|
20888
21494
|
style: {
|
|
20889
21495
|
textAlign: 'right'
|
|
20890
21496
|
},
|
|
@@ -20895,7 +21501,7 @@ var useColumns$1 = (function (form) {
|
|
|
20895
21501
|
}
|
|
20896
21502
|
})));
|
|
20897
21503
|
} else {
|
|
20898
|
-
return React.createElement("span", {
|
|
21504
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
20899
21505
|
style: {
|
|
20900
21506
|
padding: '0 10px'
|
|
20901
21507
|
}
|
|
@@ -20903,7 +21509,7 @@ var useColumns$1 = (function (form) {
|
|
|
20903
21509
|
}
|
|
20904
21510
|
}
|
|
20905
21511
|
}, {
|
|
20906
|
-
title: React.createElement(TitleText$1, {
|
|
21512
|
+
title: /*#__PURE__*/React.createElement(TitleText$1, {
|
|
20907
21513
|
required: true
|
|
20908
21514
|
}, "\u91D1\u989D(\u4E0D\u542B\u7A0E)"),
|
|
20909
21515
|
dataIndex: 'lineAmountExcludeTax',
|
|
@@ -20912,7 +21518,7 @@ var useColumns$1 = (function (form) {
|
|
|
20912
21518
|
width: 119,
|
|
20913
21519
|
render: function render(value, record) {
|
|
20914
21520
|
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', {
|
|
21521
|
+
return /*#__PURE__*/React.createElement(Form.Item, null, getFieldDecorator('lineAmountExcludeTax', {
|
|
20916
21522
|
initialValue: editGood.lineAmountExcludeTax,
|
|
20917
21523
|
getValueFromEvent: onNumberValueChange,
|
|
20918
21524
|
rules: [].concat(_toConsumableArray(getReplenishRules('lineAmountExcludeTax')), [{
|
|
@@ -20947,7 +21553,7 @@ var useColumns$1 = (function (form) {
|
|
|
20947
21553
|
return validator;
|
|
20948
21554
|
}()
|
|
20949
21555
|
}])
|
|
20950
|
-
})(React.createElement(MyInput$
|
|
21556
|
+
})( /*#__PURE__*/React.createElement(MyInput$3, {
|
|
20951
21557
|
style: {
|
|
20952
21558
|
textAlign: 'right'
|
|
20953
21559
|
},
|
|
@@ -20958,7 +21564,7 @@ var useColumns$1 = (function (form) {
|
|
|
20958
21564
|
}
|
|
20959
21565
|
})));
|
|
20960
21566
|
} else {
|
|
20961
|
-
return React.createElement("span", {
|
|
21567
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
20962
21568
|
style: {
|
|
20963
21569
|
padding: '0 10px'
|
|
20964
21570
|
}
|
|
@@ -20966,7 +21572,7 @@ var useColumns$1 = (function (form) {
|
|
|
20966
21572
|
}
|
|
20967
21573
|
}
|
|
20968
21574
|
}, {
|
|
20969
|
-
title: React.createElement(TitleText$1, {
|
|
21575
|
+
title: /*#__PURE__*/React.createElement(TitleText$1, {
|
|
20970
21576
|
required: true
|
|
20971
21577
|
}, "\u7A0E\u7387"),
|
|
20972
21578
|
dataIndex: 'taxRate',
|
|
@@ -20975,7 +21581,7 @@ var useColumns$1 = (function (form) {
|
|
|
20975
21581
|
width: 70,
|
|
20976
21582
|
render: function render(value, record) {
|
|
20977
21583
|
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', {
|
|
21584
|
+
return /*#__PURE__*/React.createElement(Form.Item, null, getFieldDecorator('taxRate', {
|
|
20979
21585
|
initialValue: editGood.taxRate,
|
|
20980
21586
|
rules: [].concat(_toConsumableArray(getReplenishRules('taxRate')), [{
|
|
20981
21587
|
required: true,
|
|
@@ -20984,7 +21590,7 @@ var useColumns$1 = (function (form) {
|
|
|
20984
21590
|
pattern: /^[+-]?(0|([1-9]\d*))(\.\d+)?$/,
|
|
20985
21591
|
message: '请选择正确税率'
|
|
20986
21592
|
}])
|
|
20987
|
-
})(React.createElement(Select$1, {
|
|
21593
|
+
})( /*#__PURE__*/React.createElement(Select$1, {
|
|
20988
21594
|
className: "kts-invoice-operate-goods-list-table-tax-rate",
|
|
20989
21595
|
// dropdownMenuStyle={{ textAlign: "right" }}
|
|
20990
21596
|
showArrow: false,
|
|
@@ -20999,13 +21605,13 @@ var useColumns$1 = (function (form) {
|
|
|
20999
21605
|
onChangeTaxRate$1(controller, form, record);
|
|
21000
21606
|
}
|
|
21001
21607
|
}, (record.goodsTaxRateList || taxRateList).map(function (e, i) {
|
|
21002
|
-
return React.createElement(Select$1.Option, {
|
|
21608
|
+
return /*#__PURE__*/React.createElement(Select$1.Option, {
|
|
21003
21609
|
key: i,
|
|
21004
21610
|
value: e
|
|
21005
21611
|
}, e, "%");
|
|
21006
21612
|
}))));
|
|
21007
21613
|
} else {
|
|
21008
|
-
return React.createElement("span", {
|
|
21614
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
21009
21615
|
style: {
|
|
21010
21616
|
padding: '0 10px'
|
|
21011
21617
|
}
|
|
@@ -21013,7 +21619,7 @@ var useColumns$1 = (function (form) {
|
|
|
21013
21619
|
}
|
|
21014
21620
|
}
|
|
21015
21621
|
}, {
|
|
21016
|
-
title: React.createElement(TitleText$1, {
|
|
21622
|
+
title: /*#__PURE__*/React.createElement(TitleText$1, {
|
|
21017
21623
|
rules: (_columnsReplenish$tax = columnsReplenish['taxAmount']) === null || _columnsReplenish$tax === void 0 ? void 0 : _columnsReplenish$tax.rules
|
|
21018
21624
|
}, "\u7A0E\u989D"),
|
|
21019
21625
|
dataIndex: 'taxAmount',
|
|
@@ -21025,11 +21631,11 @@ var useColumns$1 = (function (form) {
|
|
|
21025
21631
|
return getFieldDecorator('taxAmount', {
|
|
21026
21632
|
initialValue: editGood.taxAmount,
|
|
21027
21633
|
rules: getReplenishRules('taxAmount')
|
|
21028
|
-
})(React.createElement(MyDiv$2, {
|
|
21634
|
+
})( /*#__PURE__*/React.createElement(MyDiv$2, {
|
|
21029
21635
|
loading: isCipher$1(changeField, 'taxAmount')
|
|
21030
21636
|
}));
|
|
21031
21637
|
} else {
|
|
21032
|
-
return React.createElement("span", {
|
|
21638
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
21033
21639
|
style: {
|
|
21034
21640
|
padding: '0 10px'
|
|
21035
21641
|
}
|
|
@@ -21081,7 +21687,7 @@ function isCipher$1(name, field) {
|
|
|
21081
21687
|
return name !== field;
|
|
21082
21688
|
}
|
|
21083
21689
|
|
|
21084
|
-
var MyInput$
|
|
21690
|
+
var MyInput$3 = /*#__PURE__*/function (_React$Component) {
|
|
21085
21691
|
_inherits(MyInput, _React$Component);
|
|
21086
21692
|
|
|
21087
21693
|
var _super = _createSuper(MyInput);
|
|
@@ -21096,13 +21702,13 @@ var MyInput$2 = /*#__PURE__*/function (_React$Component) {
|
|
|
21096
21702
|
key: "render",
|
|
21097
21703
|
value: function render() {
|
|
21098
21704
|
if (this.props.loading) {
|
|
21099
|
-
return React.createElement(Spin$1, {
|
|
21705
|
+
return /*#__PURE__*/React.createElement(Spin$1, {
|
|
21100
21706
|
size: "small"
|
|
21101
|
-
}, React.createElement(Input$1, _objectSpread2(_objectSpread2({}, this.props), {}, {
|
|
21707
|
+
}, /*#__PURE__*/React.createElement(Input$1, _objectSpread2(_objectSpread2({}, this.props), {}, {
|
|
21102
21708
|
autoComplete: "off"
|
|
21103
21709
|
})));
|
|
21104
21710
|
} else {
|
|
21105
|
-
return React.createElement(Input$1, _objectSpread2(_objectSpread2({}, this.props), {}, {
|
|
21711
|
+
return /*#__PURE__*/React.createElement(Input$1, _objectSpread2(_objectSpread2({}, this.props), {}, {
|
|
21106
21712
|
autoComplete: "off"
|
|
21107
21713
|
}));
|
|
21108
21714
|
}
|
|
@@ -21127,15 +21733,15 @@ var MyDiv$2 = /*#__PURE__*/function (_React$Component2) {
|
|
|
21127
21733
|
key: "render",
|
|
21128
21734
|
value: function render() {
|
|
21129
21735
|
if (this.props.loading) {
|
|
21130
|
-
return React.createElement(Spin$1, {
|
|
21736
|
+
return /*#__PURE__*/React.createElement(Spin$1, {
|
|
21131
21737
|
size: "small"
|
|
21132
|
-
}, React.createElement("span", {
|
|
21738
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
21133
21739
|
style: {
|
|
21134
21740
|
padding: '0 10px'
|
|
21135
21741
|
}
|
|
21136
21742
|
}, this.props.value));
|
|
21137
21743
|
} else {
|
|
21138
|
-
return React.createElement("span", {
|
|
21744
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
21139
21745
|
style: {
|
|
21140
21746
|
padding: '0 10px'
|
|
21141
21747
|
}
|
|
@@ -21168,32 +21774,32 @@ var MyItemNameDiv$1 = /*#__PURE__*/function (_React$Component3) {
|
|
|
21168
21774
|
|
|
21169
21775
|
if (isMyShow) {
|
|
21170
21776
|
if (valueT) {
|
|
21171
|
-
return React.createElement(Tooltip$1, {
|
|
21777
|
+
return /*#__PURE__*/React.createElement(Tooltip$1, {
|
|
21172
21778
|
title: valueT
|
|
21173
|
-
}, React.createElement("span", {
|
|
21779
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
21174
21780
|
style: _objectSpread2(_objectSpread2({}, MyItemNameStyle), {}, {
|
|
21175
21781
|
color: '#0074ff'
|
|
21176
21782
|
})
|
|
21177
21783
|
}, valueT));
|
|
21178
21784
|
} else {
|
|
21179
|
-
return React.createElement(Tooltip$1, {
|
|
21785
|
+
return /*#__PURE__*/React.createElement(Tooltip$1, {
|
|
21180
21786
|
title: valueF
|
|
21181
|
-
}, React.createElement("span", {
|
|
21787
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
21182
21788
|
style: MyItemNameStyle
|
|
21183
21789
|
}, valueF));
|
|
21184
21790
|
}
|
|
21185
21791
|
} else {
|
|
21186
21792
|
if (valueF) {
|
|
21187
|
-
return React.createElement(Tooltip$1, {
|
|
21793
|
+
return /*#__PURE__*/React.createElement(Tooltip$1, {
|
|
21188
21794
|
title: valueF
|
|
21189
|
-
}, React.createElement("span", {
|
|
21795
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
21190
21796
|
style: MyItemNameStyle
|
|
21191
21797
|
}, valueF));
|
|
21192
21798
|
} else {
|
|
21193
|
-
return React.createElement(Tooltip$1, {
|
|
21799
|
+
return /*#__PURE__*/React.createElement(Tooltip$1, {
|
|
21194
21800
|
title: valueT,
|
|
21195
21801
|
style: MyItemNameStyle
|
|
21196
|
-
}, React.createElement("span", {
|
|
21802
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
21197
21803
|
style: _objectSpread2(_objectSpread2({}, MyItemNameStyle), {}, {
|
|
21198
21804
|
color: '#0074ff'
|
|
21199
21805
|
})
|
|
@@ -21215,7 +21821,7 @@ function formatSearch$1(value, search) {
|
|
|
21215
21821
|
return dcoding$1(e);
|
|
21216
21822
|
}).join("<span class=\"kts-invoice-operate-goods-list-table-search-protrude\" >".concat(search, "</span>"));
|
|
21217
21823
|
|
|
21218
|
-
return React.createElement("span", {
|
|
21824
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
21219
21825
|
dangerouslySetInnerHTML: {
|
|
21220
21826
|
__html: __html
|
|
21221
21827
|
}
|
|
@@ -21625,7 +22231,7 @@ var useRowSelection$1 = (function () {
|
|
|
21625
22231
|
};
|
|
21626
22232
|
}(), [controller]);
|
|
21627
22233
|
var columnTitle = React.useMemo(function () {
|
|
21628
|
-
return React.createElement(Checkbox, {
|
|
22234
|
+
return /*#__PURE__*/React.createElement(Checkbox, {
|
|
21629
22235
|
onChange: onClickSelectAll,
|
|
21630
22236
|
indeterminate: indeterminate,
|
|
21631
22237
|
checked: isAll
|
|
@@ -21774,19 +22380,19 @@ var useDelRowButton$1 = (function () {
|
|
|
21774
22380
|
}, _callee2);
|
|
21775
22381
|
})), []);
|
|
21776
22382
|
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, {
|
|
22383
|
+
if (model === 'prefab') return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
22384
|
+
if (model === 'readOnly') return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
22385
|
+
return /*#__PURE__*/React.createElement(Menu$1.Item, {
|
|
21780
22386
|
key: "1",
|
|
21781
22387
|
onClick: onClick,
|
|
21782
22388
|
disabled: disabled
|
|
21783
22389
|
}, " \u5220\u9664\u884C ");
|
|
21784
22390
|
}, [model, onClick, disabled]);
|
|
21785
22391
|
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, {
|
|
22392
|
+
if (isRemRow === false) return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
22393
|
+
if (model === 'prefab') return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
22394
|
+
if (model === 'readOnly') return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
22395
|
+
return /*#__PURE__*/React.createElement(Button$1, {
|
|
21790
22396
|
size: 'small',
|
|
21791
22397
|
onClick: onClick,
|
|
21792
22398
|
disabled: disabled
|
|
@@ -22017,16 +22623,16 @@ var useAddDiscountRowButton$1 = (function () {
|
|
|
22017
22623
|
}, [isAddDiscount, model]);
|
|
22018
22624
|
var button = React.useMemo(function () {
|
|
22019
22625
|
if (isEnable) {
|
|
22020
|
-
return React.createElement(React.Fragment, null, React.createElement(Button$1, {
|
|
22626
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Button$1, {
|
|
22021
22627
|
size: 'small',
|
|
22022
22628
|
onClick: onOpen,
|
|
22023
22629
|
disabled: disabled
|
|
22024
|
-
}, "\u6DFB\u52A0\u6298\u6263"), React.createElement(AddDiscountRowDrawer, {
|
|
22630
|
+
}, "\u6DFB\u52A0\u6298\u6263"), /*#__PURE__*/React.createElement(AddDiscountRowDrawer, {
|
|
22025
22631
|
open: open,
|
|
22026
22632
|
onClose: onClose
|
|
22027
22633
|
}));
|
|
22028
22634
|
} else {
|
|
22029
|
-
return React.createElement(React.Fragment, null);
|
|
22635
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
22030
22636
|
}
|
|
22031
22637
|
}, [open, onOpen, onClose, isEnable, disabled]);
|
|
22032
22638
|
return {
|
|
@@ -22207,35 +22813,35 @@ function AddDiscountRowDrawer(props) {
|
|
|
22207
22813
|
discolineValue: undefined
|
|
22208
22814
|
}));
|
|
22209
22815
|
}, [formValues === null || formValues === void 0 ? void 0 : formValues.discolineType]);
|
|
22210
|
-
return React.createElement(Drawer$1, {
|
|
22816
|
+
return /*#__PURE__*/React.createElement(Drawer$1, {
|
|
22211
22817
|
title: "\u6DFB\u52A0\u6298\u6263",
|
|
22212
22818
|
placement: "right",
|
|
22213
22819
|
width: 350,
|
|
22214
22820
|
onClose: onClose,
|
|
22215
22821
|
open: open,
|
|
22216
|
-
footer: React.createElement(Space, {
|
|
22822
|
+
footer: /*#__PURE__*/React.createElement(Space, {
|
|
22217
22823
|
size: "middle",
|
|
22218
22824
|
style: {
|
|
22219
22825
|
display: 'flex',
|
|
22220
22826
|
justifyContent: 'end'
|
|
22221
22827
|
}
|
|
22222
|
-
}, React.createElement(Button$1, {
|
|
22828
|
+
}, /*#__PURE__*/React.createElement(Button$1, {
|
|
22223
22829
|
onClick: onDefine,
|
|
22224
22830
|
type: 'primary'
|
|
22225
|
-
}, "\u786E\u5B9A"), React.createElement(Button$1, {
|
|
22831
|
+
}, "\u786E\u5B9A"), /*#__PURE__*/React.createElement(Button$1, {
|
|
22226
22832
|
onClick: onClose
|
|
22227
22833
|
}, "\u53D6\u6D88"))
|
|
22228
|
-
}, React.createElement(Form$1, {
|
|
22834
|
+
}, /*#__PURE__*/React.createElement(Form$1, {
|
|
22229
22835
|
form: form,
|
|
22230
22836
|
layout: 'vertical',
|
|
22231
22837
|
onChange: onChangeForm
|
|
22232
|
-
}, React.createElement(Form$1.Item, {
|
|
22838
|
+
}, /*#__PURE__*/React.createElement(Form$1.Item, {
|
|
22233
22839
|
label: "\u5546\u54C1\u91D1\u989D\uFF08\u542B\u7A0E\uFF09"
|
|
22234
|
-
}, totalAmount.toFixed(2), "\uFF08\u5171 ", discountGood.length, " \u884C\uFF09"), React.createElement(Form$1.Item, {
|
|
22840
|
+
}, totalAmount.toFixed(2), "\uFF08\u5171 ", discountGood.length, " \u884C\uFF09"), /*#__PURE__*/React.createElement(Form$1.Item, {
|
|
22235
22841
|
label: "\u6298\u6263\u65B9\u5F0F",
|
|
22236
22842
|
name: 'discolineType',
|
|
22237
22843
|
initialValue: '1'
|
|
22238
|
-
}, React.createElement(Radio.Group, {
|
|
22844
|
+
}, /*#__PURE__*/React.createElement(Radio.Group, {
|
|
22239
22845
|
options: [{
|
|
22240
22846
|
label: '按金额折扣',
|
|
22241
22847
|
value: '1'
|
|
@@ -22243,7 +22849,7 @@ function AddDiscountRowDrawer(props) {
|
|
|
22243
22849
|
label: '按比例折扣',
|
|
22244
22850
|
value: '2'
|
|
22245
22851
|
}]
|
|
22246
|
-
})), (formValues === null || formValues === void 0 ? void 0 : formValues.discolineType) === '2' ? React.createElement(Form$1.Item, {
|
|
22852
|
+
})), (formValues === null || formValues === void 0 ? void 0 : formValues.discolineType) === '2' ? /*#__PURE__*/React.createElement(Form$1.Item, {
|
|
22247
22853
|
label: "\u6298\u6263\u6BD4\u4F8B\uFF08%\uFF09\uFF08\u542B\u7A0E\uFF09",
|
|
22248
22854
|
name: 'discolineValue',
|
|
22249
22855
|
rules: [{
|
|
@@ -22294,11 +22900,11 @@ function AddDiscountRowDrawer(props) {
|
|
|
22294
22900
|
return validator;
|
|
22295
22901
|
}()
|
|
22296
22902
|
}]
|
|
22297
|
-
}, React.createElement(InputNumber, {
|
|
22903
|
+
}, /*#__PURE__*/React.createElement(InputNumber, {
|
|
22298
22904
|
style: {
|
|
22299
22905
|
width: '100%'
|
|
22300
22906
|
}
|
|
22301
|
-
})) : React.createElement(Form$1.Item, {
|
|
22907
|
+
})) : /*#__PURE__*/React.createElement(Form$1.Item, {
|
|
22302
22908
|
label: "\u6298\u6263\u91D1\u989D\uFF08\u5143\uFF09\uFF08\u542B\u7A0E\uFF09",
|
|
22303
22909
|
name: 'discolineValue',
|
|
22304
22910
|
rules: [{
|
|
@@ -22349,7 +22955,7 @@ function AddDiscountRowDrawer(props) {
|
|
|
22349
22955
|
return validator;
|
|
22350
22956
|
}()
|
|
22351
22957
|
}]
|
|
22352
|
-
}, React.createElement(InputNumber, {
|
|
22958
|
+
}, /*#__PURE__*/React.createElement(InputNumber, {
|
|
22353
22959
|
style: {
|
|
22354
22960
|
width: '100%'
|
|
22355
22961
|
}
|
|
@@ -22493,16 +23099,16 @@ var useEndowCodeButton$1 = (function () {
|
|
|
22493
23099
|
}, _callee2);
|
|
22494
23100
|
})), [controller]);
|
|
22495
23101
|
var menuItem = React.useMemo(function () {
|
|
22496
|
-
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
22497
|
-
return React.createElement(Menu$1.Item, {
|
|
23102
|
+
if (model === 'readOnly') return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
23103
|
+
return /*#__PURE__*/React.createElement(Menu$1.Item, {
|
|
22498
23104
|
key: "2",
|
|
22499
23105
|
onClick: onClick,
|
|
22500
23106
|
disabled: disabled
|
|
22501
23107
|
}, "\u6279\u91CF\u8D4B\u7801");
|
|
22502
23108
|
}, [onClick, disabled, model]);
|
|
22503
23109
|
var button = React.useMemo(function () {
|
|
22504
|
-
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
22505
|
-
return React.createElement(Button$1, {
|
|
23110
|
+
if (model === 'readOnly') return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
23111
|
+
return /*#__PURE__*/React.createElement(Button$1, {
|
|
22506
23112
|
onClick: onClick,
|
|
22507
23113
|
disabled: disabled,
|
|
22508
23114
|
size: 'small'
|
|
@@ -22564,14 +23170,14 @@ var useEmptyRefill = (function () {
|
|
|
22564
23170
|
}());
|
|
22565
23171
|
}, [controller]);
|
|
22566
23172
|
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, {
|
|
23173
|
+
if (model === 'readOnly') return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
23174
|
+
if (model === 'prefab') return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
23175
|
+
return /*#__PURE__*/React.createElement(Popconfirm, {
|
|
22570
23176
|
title: "\u5C06\u8981\u6E05\u7A7A\u6240\u6709\u9879\u76EE\u4FE1\u606F\uFF0C\u662F\u5426\u7EE7\u7EED",
|
|
22571
23177
|
onConfirm: confirm,
|
|
22572
23178
|
okText: "\u786E\u5B9A",
|
|
22573
23179
|
cancelText: "\u53D6\u6D88"
|
|
22574
|
-
}, React.createElement(Button$1, {
|
|
23180
|
+
}, /*#__PURE__*/React.createElement(Button$1, {
|
|
22575
23181
|
size: 'small'
|
|
22576
23182
|
}, "\u6E05\u7A7A\u91CD\u586B"));
|
|
22577
23183
|
}, [model, confirm]);
|
|
@@ -22580,8 +23186,8 @@ var useEmptyRefill = (function () {
|
|
|
22580
23186
|
};
|
|
22581
23187
|
});
|
|
22582
23188
|
|
|
22583
|
-
var css_248z$
|
|
22584
|
-
styleInject(css_248z$
|
|
23189
|
+
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";
|
|
23190
|
+
styleInject(css_248z$p);
|
|
22585
23191
|
|
|
22586
23192
|
function InvoiceTypeModal(props) {
|
|
22587
23193
|
var _props$disableds = props.disableds,
|
|
@@ -22638,14 +23244,14 @@ function InvoiceTypeModal(props) {
|
|
|
22638
23244
|
setValues(values);
|
|
22639
23245
|
}
|
|
22640
23246
|
}, [props.open, props.defaultBillingType, props.defaultBusiness, props.defaultInvoiceType, form]);
|
|
22641
|
-
return React.createElement(Modal, {
|
|
23247
|
+
return /*#__PURE__*/React.createElement(Modal, {
|
|
22642
23248
|
title: props.modalTitle || "选择开具信息",
|
|
22643
23249
|
open: props.open,
|
|
22644
23250
|
onOk: onConfirm,
|
|
22645
23251
|
onCancel: props.onCancel,
|
|
22646
23252
|
okText: "\u786E\u5B9A",
|
|
22647
23253
|
cancelText: "\u53D6\u6D88"
|
|
22648
|
-
}, React.createElement(Form$1, {
|
|
23254
|
+
}, /*#__PURE__*/React.createElement(Form$1, {
|
|
22649
23255
|
form: form,
|
|
22650
23256
|
layout: "vertical",
|
|
22651
23257
|
style: {
|
|
@@ -22654,13 +23260,13 @@ function InvoiceTypeModal(props) {
|
|
|
22654
23260
|
onValuesChange: function onValuesChange(_, e) {
|
|
22655
23261
|
setValues(e);
|
|
22656
23262
|
}
|
|
22657
|
-
}, React.createElement(Row, {
|
|
23263
|
+
}, /*#__PURE__*/React.createElement(Row, {
|
|
22658
23264
|
gutter: [16, 16]
|
|
22659
|
-
}, React.createElement(Col, {
|
|
23265
|
+
}, /*#__PURE__*/React.createElement(Col, {
|
|
22660
23266
|
span: 24
|
|
22661
|
-
}, React.createElement(Form$1.Item, {
|
|
23267
|
+
}, /*#__PURE__*/React.createElement(Form$1.Item, {
|
|
22662
23268
|
name: 'billingType'
|
|
22663
|
-
}, React.createElement(Radio.Group, {
|
|
23269
|
+
}, /*#__PURE__*/React.createElement(Radio.Group, {
|
|
22664
23270
|
size: 'large',
|
|
22665
23271
|
className: "goods-list-digtal-reselect-invoice-typeModal-radio",
|
|
22666
23272
|
optionType: "button",
|
|
@@ -22673,27 +23279,27 @@ function InvoiceTypeModal(props) {
|
|
|
22673
23279
|
label: '税控发票',
|
|
22674
23280
|
value: 'taxation'
|
|
22675
23281
|
}]
|
|
22676
|
-
}))), React.createElement(Col, {
|
|
23282
|
+
}))), /*#__PURE__*/React.createElement(Col, {
|
|
22677
23283
|
span: 12
|
|
22678
|
-
}, React.createElement(Form$1.Item, {
|
|
23284
|
+
}, /*#__PURE__*/React.createElement(Form$1.Item, {
|
|
22679
23285
|
name: 'invoiceType',
|
|
22680
23286
|
label: "\u9009\u62E9\u7968\u7C7B",
|
|
22681
23287
|
rules: [{
|
|
22682
23288
|
required: true,
|
|
22683
23289
|
message: '选择票类必填'
|
|
22684
23290
|
}]
|
|
22685
|
-
}, React.createElement(Select$1, {
|
|
23291
|
+
}, /*#__PURE__*/React.createElement(Select$1, {
|
|
22686
23292
|
size: 'large',
|
|
22687
23293
|
allowClear: true,
|
|
22688
23294
|
placeholder: "\u8BF7\u9009\u62E9\uFF08\u5FC5\u586B\u9879\uFF09",
|
|
22689
23295
|
disabled: disableds.indexOf('invoiceType') >= 0,
|
|
22690
23296
|
options: props.invoiceTypeOptions
|
|
22691
|
-
}))), React.createElement(Col, {
|
|
23297
|
+
}))), /*#__PURE__*/React.createElement(Col, {
|
|
22692
23298
|
span: 12
|
|
22693
|
-
}, React.createElement(Form$1.Item, {
|
|
23299
|
+
}, /*#__PURE__*/React.createElement(Form$1.Item, {
|
|
22694
23300
|
name: 'business',
|
|
22695
23301
|
label: "\u7279\u5B9A\u4E1A\u52A1"
|
|
22696
|
-
}, React.createElement(Select$1, {
|
|
23302
|
+
}, /*#__PURE__*/React.createElement(Select$1, {
|
|
22697
23303
|
size: 'large',
|
|
22698
23304
|
allowClear: true,
|
|
22699
23305
|
placeholder: "\u8BF7\u9009\u62E9\uFF08\u975E\u5FC5\u586B\u9879\uFF09",
|
|
@@ -22738,11 +23344,11 @@ var useReselectInvoiceType = (function () {
|
|
|
22738
23344
|
return true;
|
|
22739
23345
|
}, [model, typeModalProps === null || typeModalProps === void 0 ? void 0 : typeModalProps.isDisabled]);
|
|
22740
23346
|
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, {
|
|
23347
|
+
if (isEnable === false) return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
23348
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Button$1, {
|
|
22743
23349
|
size: 'small',
|
|
22744
23350
|
onClick: onOpen
|
|
22745
|
-
}, "\u91CD\u9009\u53D1\u7968\u7C7B\u578B"), React.createElement(InvoiceTypeModal, _objectSpread2(_objectSpread2({}, typeModalProps), {}, {
|
|
23351
|
+
}, "\u91CD\u9009\u53D1\u7968\u7C7B\u578B"), /*#__PURE__*/React.createElement(InvoiceTypeModal, _objectSpread2(_objectSpread2({}, typeModalProps), {}, {
|
|
22746
23352
|
open: open,
|
|
22747
23353
|
onCancel: onClose,
|
|
22748
23354
|
onOk: onOk
|
|
@@ -22753,8 +23359,8 @@ var useReselectInvoiceType = (function () {
|
|
|
22753
23359
|
};
|
|
22754
23360
|
});
|
|
22755
23361
|
|
|
22756
|
-
var css_248z$
|
|
22757
|
-
styleInject(css_248z$
|
|
23362
|
+
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";
|
|
23363
|
+
styleInject(css_248z$q);
|
|
22758
23364
|
|
|
22759
23365
|
var GoodsList$1 = /*#__PURE__*/function (_React$Component) {
|
|
22760
23366
|
_inherits(GoodsList, _React$Component);
|
|
@@ -22770,7 +23376,7 @@ var GoodsList$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
22770
23376
|
_createClass(GoodsList, [{
|
|
22771
23377
|
key: "render",
|
|
22772
23378
|
value: function render() {
|
|
22773
|
-
return React.createElement(Main$3, _objectSpread2({}, this.props));
|
|
23379
|
+
return /*#__PURE__*/React.createElement(Main$3, _objectSpread2({}, this.props));
|
|
22774
23380
|
}
|
|
22775
23381
|
}]);
|
|
22776
23382
|
|
|
@@ -22971,20 +23577,20 @@ var Main$3 = decorator(Form.create())(function (props) {
|
|
|
22971
23577
|
};
|
|
22972
23578
|
}())();
|
|
22973
23579
|
}, [controller, props.isSwitchTax]);
|
|
22974
|
-
return React.createElement("div", {
|
|
23580
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
22975
23581
|
className: "kts-invoice-operate-goods-list-digtal",
|
|
22976
23582
|
onClick: function onClick(e) {
|
|
22977
23583
|
e.stopPropagation();
|
|
22978
23584
|
}
|
|
22979
|
-
}, React.createElement("div", {
|
|
23585
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
22980
23586
|
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", {
|
|
23587
|
+
}, /*#__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
23588
|
style: {
|
|
22983
23589
|
flex: 1
|
|
22984
23590
|
}
|
|
22985
|
-
}), props.menuExpansion, reselectInvoiceType.button, emptyRefill.button), React.createElement("div", {
|
|
23591
|
+
}), props.menuExpansion, reselectInvoiceType.button, emptyRefill.button), /*#__PURE__*/React.createElement("div", {
|
|
22986
23592
|
className: classNames('kts-invoice-operate-goods-list-table-digtal')
|
|
22987
|
-
}, React.createElement(TableVirtual$1, {
|
|
23593
|
+
}, /*#__PURE__*/React.createElement(TableVirtual$1, {
|
|
22988
23594
|
size: "small",
|
|
22989
23595
|
rowKey: "$index",
|
|
22990
23596
|
pagination: false,
|
|
@@ -23006,11 +23612,11 @@ var Main$3 = decorator(Form.create())(function (props) {
|
|
|
23006
23612
|
}
|
|
23007
23613
|
};
|
|
23008
23614
|
}
|
|
23009
|
-
})), React.createElement("div", null, React.createElement(Statistics$1, null)));
|
|
23615
|
+
})), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Statistics$1, null)));
|
|
23010
23616
|
});
|
|
23011
23617
|
|
|
23012
|
-
var css_248z$
|
|
23013
|
-
styleInject(css_248z$
|
|
23618
|
+
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";
|
|
23619
|
+
styleInject(css_248z$r);
|
|
23014
23620
|
|
|
23015
23621
|
var RangePicker = DatePicker.RangePicker;
|
|
23016
23622
|
/** 特殊信息-不动产经营租赁服务 */
|
|
@@ -23028,31 +23634,31 @@ var RealEstateInfo = decorator(Form.create())(function (props) {
|
|
|
23028
23634
|
}, [model]); // 注册 form
|
|
23029
23635
|
|
|
23030
23636
|
controller.useForm('realEstateInfo', form);
|
|
23031
|
-
return React.createElement("div", {
|
|
23637
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
23032
23638
|
className: "kts-invoice-operate-real-estate-info-digtal"
|
|
23033
|
-
}, React.createElement("div", {
|
|
23639
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
23034
23640
|
className: 'real-estate-info-digtal-label'
|
|
23035
|
-
}, "\u7279\u6B8A\u4FE1\u606F-\u4E0D\u52A8\u4EA7\u7ECF\u8425\u79DF\u8D41\u670D\u52A1"), React.createElement(Row$1, {
|
|
23641
|
+
}, "\u7279\u6B8A\u4FE1\u606F-\u4E0D\u52A8\u4EA7\u7ECF\u8425\u79DF\u8D41\u670D\u52A1"), /*#__PURE__*/React.createElement(Row$1, {
|
|
23036
23642
|
gutter: [17, 0]
|
|
23037
|
-
}, React.createElement(Col$1, {
|
|
23643
|
+
}, /*#__PURE__*/React.createElement(Col$1, {
|
|
23038
23644
|
span: 6
|
|
23039
|
-
}, React.createElement(Form.Item, {
|
|
23645
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
23040
23646
|
label: "\u4E0D\u52A8\u4EA7\u5730\u5740"
|
|
23041
23647
|
}, getFieldDecorator('realEstateAddress', {
|
|
23042
23648
|
rules: readOnly ? [] : [{
|
|
23043
23649
|
required: true,
|
|
23044
23650
|
message: '请选择不动产地址'
|
|
23045
23651
|
}]
|
|
23046
|
-
})(readOnly ? React.createElement(MyArrString, null) : React.createElement(Cascader, {
|
|
23652
|
+
})(readOnly ? /*#__PURE__*/React.createElement(MyArrString, null) : /*#__PURE__*/React.createElement(Cascader, {
|
|
23047
23653
|
style: {
|
|
23048
23654
|
width: '100%'
|
|
23049
23655
|
},
|
|
23050
23656
|
options: props.realEstateAddressOptions,
|
|
23051
23657
|
fieldNames: props.realEstateAddressFieldNames,
|
|
23052
23658
|
placeholder: "\u8BF7\u9009\u62E9\u7701\u5E02\u533A\u53BF"
|
|
23053
|
-
})))), React.createElement(Col$1, {
|
|
23659
|
+
})))), /*#__PURE__*/React.createElement(Col$1, {
|
|
23054
23660
|
span: 6
|
|
23055
|
-
}, React.createElement(Form.Item, {
|
|
23661
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
23056
23662
|
label: "\u8BE6\u7EC6\u5730\u5740"
|
|
23057
23663
|
}, getFieldDecorator('realEstateDetailedAddress', {
|
|
23058
23664
|
rules: readOnly ? [] : [{
|
|
@@ -23067,43 +23673,43 @@ var RealEstateInfo = decorator(Form.create())(function (props) {
|
|
|
23067
23673
|
return pattern.test(value) ? Promise.resolve() : Promise.reject('地址必须包含“街”、“路”、“村”、“乡”、“镇”、“道”、“巷”、“号”等任意一个关键词');
|
|
23068
23674
|
}
|
|
23069
23675
|
}]
|
|
23070
|
-
})(readOnly ? React.createElement(MyDiv$3, null) : React.createElement(Input$2, {
|
|
23676
|
+
})(readOnly ? /*#__PURE__*/React.createElement(MyDiv$3, null) : /*#__PURE__*/React.createElement(Input$2, {
|
|
23071
23677
|
autoComplete: 'off',
|
|
23072
23678
|
placeholder: "\u8BF7\u8F93\u5165\u8BE6\u7EC6\u5730\u5740"
|
|
23073
|
-
})))), React.createElement(Col$1, {
|
|
23679
|
+
})))), /*#__PURE__*/React.createElement(Col$1, {
|
|
23074
23680
|
span: 6
|
|
23075
|
-
}, React.createElement(Form.Item, {
|
|
23681
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
23076
23682
|
label: "\u79DF\u8D41\u671F\u8D77\u6B62"
|
|
23077
23683
|
}, getFieldDecorator('leaseTerm', {
|
|
23078
23684
|
rules: readOnly ? [] : [{
|
|
23079
23685
|
required: true,
|
|
23080
23686
|
message: '请输入租赁期'
|
|
23081
23687
|
}]
|
|
23082
|
-
})(readOnly ? React.createElement(MyArrMoment, null) : React.createElement(RangePicker, {
|
|
23688
|
+
})(readOnly ? /*#__PURE__*/React.createElement(MyArrMoment, null) : /*#__PURE__*/React.createElement(RangePicker, {
|
|
23083
23689
|
style: {
|
|
23084
23690
|
width: '100%'
|
|
23085
23691
|
}
|
|
23086
|
-
})))), React.createElement(Col$1, {
|
|
23692
|
+
})))), /*#__PURE__*/React.createElement(Col$1, {
|
|
23087
23693
|
span: 6
|
|
23088
|
-
}, React.createElement(Form.Item, {
|
|
23694
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
23089
23695
|
label: "\u8DE8\u5730\uFF08\u5E02\uFF09\u6807\u5FD7"
|
|
23090
23696
|
}, getFieldDecorator('crossCitiesSign', {
|
|
23091
23697
|
rules: readOnly ? [] : [{
|
|
23092
23698
|
required: true,
|
|
23093
23699
|
message: '请选择跨地(市)标志'
|
|
23094
23700
|
}]
|
|
23095
|
-
})(readOnly ? React.createElement(MyNY, null) : React.createElement(Select$2, {
|
|
23701
|
+
})(readOnly ? /*#__PURE__*/React.createElement(MyNY, null) : /*#__PURE__*/React.createElement(Select$2, {
|
|
23096
23702
|
placeholder: "\u8BF7\u9009\u62E9",
|
|
23097
23703
|
style: {
|
|
23098
23704
|
width: '100%'
|
|
23099
23705
|
}
|
|
23100
|
-
}, React.createElement(Select$2.Option, {
|
|
23706
|
+
}, /*#__PURE__*/React.createElement(Select$2.Option, {
|
|
23101
23707
|
value: 'Y'
|
|
23102
|
-
}, "\u662F"), React.createElement(Select$2.Option, {
|
|
23708
|
+
}, "\u662F"), /*#__PURE__*/React.createElement(Select$2.Option, {
|
|
23103
23709
|
value: 'N'
|
|
23104
|
-
}, "\u5426"))))), React.createElement(Col$1, {
|
|
23710
|
+
}, "\u5426"))))), /*#__PURE__*/React.createElement(Col$1, {
|
|
23105
23711
|
span: 6
|
|
23106
|
-
}, React.createElement(Form.Item, {
|
|
23712
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
23107
23713
|
label: "\u4EA7\u6743\u8BC1\u4E66/\u4E0D\u52A8\u4EA7\u6743\u8BC1\u53F7"
|
|
23108
23714
|
}, getFieldDecorator('realEstateNumber', {
|
|
23109
23715
|
rules: readOnly ? [] : [{
|
|
@@ -23113,36 +23719,36 @@ var RealEstateInfo = decorator(Form.create())(function (props) {
|
|
|
23113
23719
|
max: 40,
|
|
23114
23720
|
message: '证书编号最多40个字符'
|
|
23115
23721
|
}]
|
|
23116
|
-
})(readOnly ? React.createElement(MyDiv$3, null) : React.createElement(Input$2, {
|
|
23722
|
+
})(readOnly ? /*#__PURE__*/React.createElement(MyDiv$3, null) : /*#__PURE__*/React.createElement(Input$2, {
|
|
23117
23723
|
autoComplete: 'off',
|
|
23118
23724
|
placeholder: "\u8BF7\u8F93\u5165\u8BC1\u4E66\u7F16\u53F7\uFF0C\u82E5\u6CA1\u6709\u8BC1\u4E66\u586B\u5199\u201C\u65E0\u201D"
|
|
23119
|
-
})))), React.createElement(Col$1, {
|
|
23725
|
+
})))), /*#__PURE__*/React.createElement(Col$1, {
|
|
23120
23726
|
span: 6
|
|
23121
|
-
}, React.createElement(Form.Item, {
|
|
23727
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
23122
23728
|
label: "\u9762\u79EF\u5355\u4F4D"
|
|
23123
23729
|
}, getFieldDecorator('realEstateUnit', {
|
|
23124
23730
|
rules: readOnly ? [] : [{
|
|
23125
23731
|
required: true,
|
|
23126
23732
|
message: '请选择面积单位'
|
|
23127
23733
|
}]
|
|
23128
|
-
})(readOnly ? React.createElement(MyDiv$3, null) : React.createElement(Select$2, {
|
|
23734
|
+
})(readOnly ? /*#__PURE__*/React.createElement(MyDiv$3, null) : /*#__PURE__*/React.createElement(Select$2, {
|
|
23129
23735
|
placeholder: "\u8BF7\u9009\u62E9",
|
|
23130
23736
|
style: {
|
|
23131
23737
|
width: '100%'
|
|
23132
23738
|
}
|
|
23133
|
-
}, React.createElement(Select$2.Option, {
|
|
23739
|
+
}, /*#__PURE__*/React.createElement(Select$2.Option, {
|
|
23134
23740
|
value: "\u5E73\u65B9\u5343\u7C73"
|
|
23135
|
-
}, "\u5E73\u65B9\u5343\u7C73"), React.createElement(Select$2.Option, {
|
|
23741
|
+
}, "\u5E73\u65B9\u5343\u7C73"), /*#__PURE__*/React.createElement(Select$2.Option, {
|
|
23136
23742
|
value: "\u5E73\u65B9\u7C73"
|
|
23137
|
-
}, "\u5E73\u65B9\u7C73"), React.createElement(Select$2.Option, {
|
|
23743
|
+
}, "\u5E73\u65B9\u7C73"), /*#__PURE__*/React.createElement(Select$2.Option, {
|
|
23138
23744
|
value: "\u516C\u9877"
|
|
23139
|
-
}, "\u516C\u9877"), React.createElement(Select$2.Option, {
|
|
23745
|
+
}, "\u516C\u9877"), /*#__PURE__*/React.createElement(Select$2.Option, {
|
|
23140
23746
|
value: "\u4EA9"
|
|
23141
|
-
}, "\u4EA9"), React.createElement(Select$2.Option, {
|
|
23747
|
+
}, "\u4EA9"), /*#__PURE__*/React.createElement(Select$2.Option, {
|
|
23142
23748
|
value: "h\u33A1"
|
|
23143
|
-
}, "h\u33A1"), React.createElement(Select$2.Option, {
|
|
23749
|
+
}, "h\u33A1"), /*#__PURE__*/React.createElement(Select$2.Option, {
|
|
23144
23750
|
value: "k\u33A1"
|
|
23145
|
-
}, "k\u33A1"), React.createElement(Select$2.Option, {
|
|
23751
|
+
}, "k\u33A1"), /*#__PURE__*/React.createElement(Select$2.Option, {
|
|
23146
23752
|
value: "\u33A1"
|
|
23147
23753
|
}, "\u33A1")))))));
|
|
23148
23754
|
});
|
|
@@ -23161,7 +23767,7 @@ var MyDiv$3 = /*#__PURE__*/function (_React$Component) {
|
|
|
23161
23767
|
_createClass(MyDiv, [{
|
|
23162
23768
|
key: "render",
|
|
23163
23769
|
value: function render() {
|
|
23164
|
-
return React.createElement("div", {
|
|
23770
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
23165
23771
|
style: this.props.style
|
|
23166
23772
|
}, this.props.value);
|
|
23167
23773
|
}
|
|
@@ -23186,7 +23792,7 @@ var MyArrString = /*#__PURE__*/function (_React$Component2) {
|
|
|
23186
23792
|
value: function render() {
|
|
23187
23793
|
var _this$props$value;
|
|
23188
23794
|
|
|
23189
|
-
return React.createElement("div", {
|
|
23795
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
23190
23796
|
style: this.props.style
|
|
23191
23797
|
}, (_this$props$value = this.props.value) === null || _this$props$value === void 0 ? void 0 : _this$props$value.filter(function (e) {
|
|
23192
23798
|
return !!e;
|
|
@@ -23213,14 +23819,14 @@ var MyArrMoment = /*#__PURE__*/function (_React$Component3) {
|
|
|
23213
23819
|
value: function render() {
|
|
23214
23820
|
var _this$props$value2 = this.props.value,
|
|
23215
23821
|
value = _this$props$value2 === void 0 ? [] : _this$props$value2;
|
|
23216
|
-
return React.createElement("div", {
|
|
23822
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
23217
23823
|
style: this.props.style
|
|
23218
|
-
}, React.createElement("span", null, hooks.isMoment(value[0]) && value[0].format('YYYY-MM-DD')), React.createElement("span", {
|
|
23824
|
+
}, /*#__PURE__*/React.createElement("span", null, hooks.isMoment(value[0]) && value[0].format('YYYY-MM-DD')), /*#__PURE__*/React.createElement("span", {
|
|
23219
23825
|
style: {
|
|
23220
23826
|
color: '#9F603D',
|
|
23221
23827
|
fontWeight: 600
|
|
23222
23828
|
}
|
|
23223
|
-
}, " - "), React.createElement("span", null, hooks.isMoment(value[1]) && value[0].format('YYYY-MM-DD')));
|
|
23829
|
+
}, " - "), /*#__PURE__*/React.createElement("span", null, hooks.isMoment(value[1]) && value[0].format('YYYY-MM-DD')));
|
|
23224
23830
|
}
|
|
23225
23831
|
}]);
|
|
23226
23832
|
|
|
@@ -23241,7 +23847,7 @@ var MyNY = /*#__PURE__*/function (_React$Component4) {
|
|
|
23241
23847
|
_createClass(MyNY, [{
|
|
23242
23848
|
key: "render",
|
|
23243
23849
|
value: function render() {
|
|
23244
|
-
return React.createElement("div", {
|
|
23850
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
23245
23851
|
style: this.props.style
|
|
23246
23852
|
}, this.props.value === 'Y' ? '是' : '否');
|
|
23247
23853
|
}
|
|
@@ -23281,7 +23887,7 @@ var ImportBuyerDrawer = (function () {
|
|
|
23281
23887
|
};
|
|
23282
23888
|
}())();
|
|
23283
23889
|
}, [controller]);
|
|
23284
|
-
return React.createElement(Drawer, {
|
|
23890
|
+
return /*#__PURE__*/React.createElement(Drawer, {
|
|
23285
23891
|
title: "\u8D2D\u65B9\u5217\u8868",
|
|
23286
23892
|
placement: "right",
|
|
23287
23893
|
// closable={false}
|
|
@@ -23289,7 +23895,7 @@ var ImportBuyerDrawer = (function () {
|
|
|
23289
23895
|
width: 983,
|
|
23290
23896
|
onClose: onClose,
|
|
23291
23897
|
visible: visible
|
|
23292
|
-
}, topExpand, React.createElement(DrawerBody$1, null));
|
|
23898
|
+
}, topExpand, /*#__PURE__*/React.createElement(DrawerBody$1, null));
|
|
23293
23899
|
});
|
|
23294
23900
|
|
|
23295
23901
|
var DrawerBody$1 = function DrawerBody() {
|
|
@@ -23310,7 +23916,7 @@ var DrawerBody$1 = function DrawerBody() {
|
|
|
23310
23916
|
}
|
|
23311
23917
|
});
|
|
23312
23918
|
}, [controller]);
|
|
23313
|
-
return React.createElement(Table$1, {
|
|
23919
|
+
return /*#__PURE__*/React.createElement(Table$1, {
|
|
23314
23920
|
bordered: true,
|
|
23315
23921
|
size: "small",
|
|
23316
23922
|
columns: columns,
|
|
@@ -23410,7 +24016,7 @@ var ImportGoodsDrawer = (function () {
|
|
|
23410
24016
|
};
|
|
23411
24017
|
}())();
|
|
23412
24018
|
}, [controller]);
|
|
23413
|
-
return React.createElement(Drawer, {
|
|
24019
|
+
return /*#__PURE__*/React.createElement(Drawer, {
|
|
23414
24020
|
title: "\u5546\u54C1\u5217\u8868",
|
|
23415
24021
|
placement: "right",
|
|
23416
24022
|
// closable={false}
|
|
@@ -23418,11 +24024,11 @@ var ImportGoodsDrawer = (function () {
|
|
|
23418
24024
|
width: 983,
|
|
23419
24025
|
onClose: onClose,
|
|
23420
24026
|
visible: visible
|
|
23421
|
-
}, topExpand && React.createElement("div", {
|
|
24027
|
+
}, topExpand && /*#__PURE__*/React.createElement("div", {
|
|
23422
24028
|
style: {
|
|
23423
24029
|
marginBottom: 10
|
|
23424
24030
|
}
|
|
23425
|
-
}, topExpand), React.createElement(DrawerBody$2, null));
|
|
24031
|
+
}, topExpand), /*#__PURE__*/React.createElement(DrawerBody$2, null));
|
|
23426
24032
|
});
|
|
23427
24033
|
|
|
23428
24034
|
var DrawerBody$2 = function DrawerBody() {
|
|
@@ -23444,7 +24050,7 @@ var DrawerBody$2 = function DrawerBody() {
|
|
|
23444
24050
|
}
|
|
23445
24051
|
});
|
|
23446
24052
|
}, [controller]);
|
|
23447
|
-
return React.createElement(Table$1, {
|
|
24053
|
+
return /*#__PURE__*/React.createElement(Table$1, {
|
|
23448
24054
|
bordered: true,
|
|
23449
24055
|
size: "small",
|
|
23450
24056
|
columns: columns,
|
|
@@ -23626,8 +24232,8 @@ var getItemCode = function getItemCode(record, editGood) {
|
|
|
23626
24232
|
return record.productCode;
|
|
23627
24233
|
};
|
|
23628
24234
|
|
|
23629
|
-
var css_248z$
|
|
23630
|
-
styleInject(css_248z$
|
|
24235
|
+
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";
|
|
24236
|
+
styleInject(css_248z$s);
|
|
23631
24237
|
|
|
23632
24238
|
var TreeNode = Tree.TreeNode;
|
|
23633
24239
|
var confirm = Modal$1.confirm;
|
|
@@ -23752,7 +24358,7 @@ var EndowCodeDrawer = (function () {
|
|
|
23752
24358
|
setDefaultValue(undefined);
|
|
23753
24359
|
}
|
|
23754
24360
|
}, [visible]);
|
|
23755
|
-
return React.createElement(Drawer, {
|
|
24361
|
+
return /*#__PURE__*/React.createElement(Drawer, {
|
|
23756
24362
|
title: "\u8D4B\u7801",
|
|
23757
24363
|
placement: "right",
|
|
23758
24364
|
destroyOnClose: true,
|
|
@@ -23760,7 +24366,7 @@ var EndowCodeDrawer = (function () {
|
|
|
23760
24366
|
width: 383,
|
|
23761
24367
|
onClose: onClose,
|
|
23762
24368
|
visible: visible
|
|
23763
|
-
}, defaultValue && React.createElement(DrawerBody$3, {
|
|
24369
|
+
}, defaultValue && /*#__PURE__*/React.createElement(DrawerBody$3, {
|
|
23764
24370
|
defaultValue: defaultValue
|
|
23765
24371
|
}));
|
|
23766
24372
|
});
|
|
@@ -23910,7 +24516,7 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23910
24516
|
};
|
|
23911
24517
|
}());
|
|
23912
24518
|
}, [actions, dataSource, readOnlyTaxRate]);
|
|
23913
|
-
return React.createElement(Select, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
24519
|
+
return /*#__PURE__*/React.createElement(Select, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
23914
24520
|
showSearch: true,
|
|
23915
24521
|
showArrow: false,
|
|
23916
24522
|
notFoundContent: null,
|
|
@@ -23918,7 +24524,7 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23918
24524
|
onSearch: onSearch,
|
|
23919
24525
|
onChange: onChange
|
|
23920
24526
|
}), dataSource.map(function (e) {
|
|
23921
|
-
return React.createElement(Select.Option, {
|
|
24527
|
+
return /*#__PURE__*/React.createElement(Select.Option, {
|
|
23922
24528
|
key: e.value,
|
|
23923
24529
|
value: e.value
|
|
23924
24530
|
}, e.label);
|
|
@@ -23948,14 +24554,14 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23948
24554
|
|
|
23949
24555
|
|
|
23950
24556
|
var createTreeNode = React.useCallback(function () {
|
|
23951
|
-
if (!list) return React.createElement(React.Fragment, null);
|
|
24557
|
+
if (!list) return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
23952
24558
|
return ctn(list);
|
|
23953
24559
|
|
|
23954
24560
|
function title(label) {
|
|
23955
24561
|
if (!filter) return label;
|
|
23956
24562
|
label = (filter.taxCategoryCode ? label.split(new RegExp(filter.taxCategoryCode, 'g')) : [label]).join("<span style=\"color: #1890ff;\">".concat(filter.taxCategoryCode, "</span>"));
|
|
23957
24563
|
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", {
|
|
24564
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
23959
24565
|
dangerouslySetInnerHTML: {
|
|
23960
24566
|
__html: label
|
|
23961
24567
|
}
|
|
@@ -23964,11 +24570,11 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23964
24570
|
|
|
23965
24571
|
function ctn(l) {
|
|
23966
24572
|
var p = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '0';
|
|
23967
|
-
if (!l || !l.length) return [React.createElement(React.Fragment, null)];
|
|
24573
|
+
if (!l || !l.length) return [/*#__PURE__*/React.createElement(React.Fragment, null)];
|
|
23968
24574
|
return l.filter(function (e) {
|
|
23969
24575
|
return e.pid === p;
|
|
23970
24576
|
}).map(function (e) {
|
|
23971
|
-
return React.createElement(TreeNode, {
|
|
24577
|
+
return /*#__PURE__*/React.createElement(TreeNode, {
|
|
23972
24578
|
title: title(e.label),
|
|
23973
24579
|
key: e.id
|
|
23974
24580
|
}, ctn(l, e.id));
|
|
@@ -24081,46 +24687,46 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
24081
24687
|
setList([]);
|
|
24082
24688
|
}
|
|
24083
24689
|
}, [visible]);
|
|
24084
|
-
return React.createElement(React.Fragment, null, React.createElement(Input, {
|
|
24690
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Input, {
|
|
24085
24691
|
readOnly: true,
|
|
24086
24692
|
value: props.value,
|
|
24087
|
-
addonAfter: React.createElement(Button, {
|
|
24693
|
+
addonAfter: /*#__PURE__*/React.createElement(Button, {
|
|
24088
24694
|
size: "small",
|
|
24089
24695
|
type: "link",
|
|
24090
24696
|
onClick: function onClick() {
|
|
24091
24697
|
setVisible(true);
|
|
24092
24698
|
}
|
|
24093
24699
|
}, "\u70B9\u51FB\u9009\u62E9")
|
|
24094
|
-
}), React.createElement(Drawer, {
|
|
24700
|
+
}), /*#__PURE__*/React.createElement(Drawer, {
|
|
24095
24701
|
title: "\u7A0E\u6536\u5206\u7C7B\u7F16\u7801",
|
|
24096
24702
|
visible: visible,
|
|
24097
24703
|
width: 500,
|
|
24098
24704
|
onClose: function onClose() {
|
|
24099
24705
|
setVisible(false);
|
|
24100
24706
|
}
|
|
24101
|
-
}, React.createElement(Form, {
|
|
24707
|
+
}, /*#__PURE__*/React.createElement(Form, {
|
|
24102
24708
|
key: "".concat(visible)
|
|
24103
|
-
}, React.createElement(Form.Item, {
|
|
24709
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
24104
24710
|
label: "\u4EA7\u54C1\u6216\u670D\u52A1\u7B80\u79F0"
|
|
24105
|
-
}, React.createElement(Input, {
|
|
24711
|
+
}, /*#__PURE__*/React.createElement(Input, {
|
|
24106
24712
|
onChange: function onChange(e) {
|
|
24107
24713
|
setFilter(_objectSpread2(_objectSpread2({}, filter), {}, {
|
|
24108
24714
|
val: e.target.value
|
|
24109
24715
|
}));
|
|
24110
24716
|
}
|
|
24111
|
-
})), React.createElement(Form.Item, {
|
|
24717
|
+
})), /*#__PURE__*/React.createElement(Form.Item, {
|
|
24112
24718
|
label: "\u7A0E\u6536\u5206\u7C7B\u7F16\u7801"
|
|
24113
|
-
}, React.createElement(Input, {
|
|
24719
|
+
}, /*#__PURE__*/React.createElement(Input, {
|
|
24114
24720
|
onChange: function onChange(e) {
|
|
24115
24721
|
setFilter(_objectSpread2(_objectSpread2({}, filter), {}, {
|
|
24116
24722
|
taxCategoryCode: e.target.value
|
|
24117
24723
|
}));
|
|
24118
24724
|
}
|
|
24119
|
-
}))), list && list.length > 0 ? React.createElement(Tree, {
|
|
24725
|
+
}))), list && list.length > 0 ? /*#__PURE__*/React.createElement(Tree, {
|
|
24120
24726
|
defaultExpandAll: true,
|
|
24121
24727
|
selectedKeys: [],
|
|
24122
24728
|
onSelect: onSelect
|
|
24123
|
-
}, createTreeNode()) : React.createElement("span", {
|
|
24729
|
+
}, createTreeNode()) : /*#__PURE__*/React.createElement("span", {
|
|
24124
24730
|
style: {
|
|
24125
24731
|
color: '#00000073'
|
|
24126
24732
|
}
|
|
@@ -24365,11 +24971,11 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
24365
24971
|
return data;
|
|
24366
24972
|
};
|
|
24367
24973
|
|
|
24368
|
-
return React.createElement(React.Fragment, null, React.createElement(Input, {
|
|
24974
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Input, {
|
|
24369
24975
|
readOnly: true,
|
|
24370
24976
|
onClick: onClick,
|
|
24371
24977
|
value: props.value
|
|
24372
|
-
}), React.createElement(TaxClassificationModal, {
|
|
24978
|
+
}), /*#__PURE__*/React.createElement(TaxClassificationModal, {
|
|
24373
24979
|
list: list,
|
|
24374
24980
|
open: open,
|
|
24375
24981
|
onSelect: onSelect,
|
|
@@ -24491,14 +25097,14 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
24491
25097
|
React.useEffect(function () {
|
|
24492
25098
|
if (controller.getTaxCategoryCodeList) controller.getTaxCategoryCodeList();
|
|
24493
25099
|
}, [controller]);
|
|
24494
|
-
return React.createElement(SchemaForm, {
|
|
25100
|
+
return /*#__PURE__*/React.createElement(SchemaForm, {
|
|
24495
25101
|
actions: actions,
|
|
24496
25102
|
previewPlaceholder: " ",
|
|
24497
25103
|
components: _objectSpread2(_objectSpread2({}, components), {}, {
|
|
24498
25104
|
showSearch: !!controller.state.goodsListState.endowCode.onLoadTaxClassificationCode ? ShowSearch3 : ShowSearch
|
|
24499
25105
|
}),
|
|
24500
25106
|
effects: effects
|
|
24501
|
-
}, React.createElement(FormButtonGroup, null, React.createElement(SchemaMarkupField, {
|
|
25107
|
+
}, /*#__PURE__*/React.createElement(FormButtonGroup, null, /*#__PURE__*/React.createElement(SchemaMarkupField, {
|
|
24502
25108
|
name: "taxClassificationCode",
|
|
24503
25109
|
type: "showSearch",
|
|
24504
25110
|
title: "\u7A0E\u6536\u5206\u7C7B\u7F16\u7801",
|
|
@@ -24508,13 +25114,13 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
24508
25114
|
message: '请选择税收分类编码',
|
|
24509
25115
|
required: true
|
|
24510
25116
|
}]
|
|
24511
|
-
}), React.createElement(SchemaMarkupField, {
|
|
25117
|
+
}), /*#__PURE__*/React.createElement(SchemaMarkupField, {
|
|
24512
25118
|
name: "shorthand",
|
|
24513
25119
|
type: "string",
|
|
24514
25120
|
readOnly: true,
|
|
24515
25121
|
default: defaultValue === null || defaultValue === void 0 ? void 0 : defaultValue.shorthand,
|
|
24516
25122
|
title: "\u5546\u54C1\u548C\u670D\u52A1\u5206\u7C7B\u7B80\u79F0"
|
|
24517
|
-
}), React.createElement(SchemaMarkupField, {
|
|
25123
|
+
}), /*#__PURE__*/React.createElement(SchemaMarkupField, {
|
|
24518
25124
|
name: "taxRate",
|
|
24519
25125
|
type: "string",
|
|
24520
25126
|
title: "\u7A0E\u7387",
|
|
@@ -24527,7 +25133,7 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
24527
25133
|
message: '请选择税率',
|
|
24528
25134
|
required: true
|
|
24529
25135
|
}]
|
|
24530
|
-
}), taxRate === 0 && isTaxFreeTypeNeeded && React.createElement(SchemaMarkupField, {
|
|
25136
|
+
}), taxRate === 0 && isTaxFreeTypeNeeded && /*#__PURE__*/React.createElement(SchemaMarkupField, {
|
|
24531
25137
|
name: "taxFreeType",
|
|
24532
25138
|
type: "string",
|
|
24533
25139
|
title: "\u514D\u7A0E\u7C7B\u578B",
|
|
@@ -24540,7 +25146,7 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
24540
25146
|
message: '请选择免税类型',
|
|
24541
25147
|
required: true
|
|
24542
25148
|
}]
|
|
24543
|
-
}), React.createElement(SchemaMarkupField, {
|
|
25149
|
+
}), /*#__PURE__*/React.createElement(SchemaMarkupField, {
|
|
24544
25150
|
name: "favouredPolicyMark",
|
|
24545
25151
|
type: "number",
|
|
24546
25152
|
title: "\u662F\u5426\u4EAB\u53D7\u4F18\u60E0\u653F\u7B56",
|
|
@@ -24559,7 +25165,7 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
24559
25165
|
message: '请选择是否享受优惠政策',
|
|
24560
25166
|
required: true
|
|
24561
25167
|
}]
|
|
24562
|
-
}), favouredPolicyMark === 1 && React.createElement(SchemaMarkupField, {
|
|
25168
|
+
}), favouredPolicyMark === 1 && /*#__PURE__*/React.createElement(SchemaMarkupField, {
|
|
24563
25169
|
name: "favouredPolicyName",
|
|
24564
25170
|
type: "string",
|
|
24565
25171
|
title: "\u4F18\u60E0\u653F\u7B56\u7C7B\u578B",
|
|
@@ -24572,14 +25178,14 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
24572
25178
|
message: '请选择是否享受优惠政策',
|
|
24573
25179
|
required: true
|
|
24574
25180
|
}]
|
|
24575
|
-
})), React.createElement("span", {
|
|
25181
|
+
})), /*#__PURE__*/React.createElement("span", {
|
|
24576
25182
|
className: "kts-invoice-operate-goods-endow-code-button-list"
|
|
24577
|
-
}, React.createElement(Button, {
|
|
25183
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
24578
25184
|
onClick: function onClick() {
|
|
24579
25185
|
actions.submit(onSubmit);
|
|
24580
25186
|
},
|
|
24581
25187
|
type: "primary"
|
|
24582
|
-
}, "\u786E\u5B9A"), React.createElement(Button, {
|
|
25188
|
+
}, "\u786E\u5B9A"), /*#__PURE__*/React.createElement(Button, {
|
|
24583
25189
|
onClick: function onClick() {
|
|
24584
25190
|
controller.pipeline( /*#__PURE__*/function () {
|
|
24585
25191
|
var _ref18 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee18(s) {
|
|
@@ -24739,53 +25345,53 @@ function AddComparisonDrawer() {
|
|
|
24739
25345
|
}));
|
|
24740
25346
|
}
|
|
24741
25347
|
}, [good]);
|
|
24742
|
-
return React.createElement(Drawer$1, {
|
|
25348
|
+
return /*#__PURE__*/React.createElement(Drawer$1, {
|
|
24743
25349
|
width: 500,
|
|
24744
25350
|
onClose: onClose,
|
|
24745
25351
|
placement: "right",
|
|
24746
25352
|
title: "\u5546\u54C1\u6620\u5C04",
|
|
24747
25353
|
visible: !!good,
|
|
24748
|
-
footer: React.createElement("div", {
|
|
25354
|
+
footer: /*#__PURE__*/React.createElement("div", {
|
|
24749
25355
|
style: {
|
|
24750
25356
|
display: 'flex',
|
|
24751
25357
|
justifyContent: 'flex-end',
|
|
24752
25358
|
gap: 10
|
|
24753
25359
|
}
|
|
24754
|
-
}, React.createElement(Button, {
|
|
25360
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
24755
25361
|
type: "primary",
|
|
24756
25362
|
onClick: onSubmit
|
|
24757
|
-
}, "\u63D0\u4EA4"), React.createElement(Button, {
|
|
25363
|
+
}, "\u63D0\u4EA4"), /*#__PURE__*/React.createElement(Button, {
|
|
24758
25364
|
onClick: onClose
|
|
24759
25365
|
}, "\u53D6\u6D88"))
|
|
24760
|
-
}, !!good && React.createElement(Form$1, {
|
|
25366
|
+
}, !!good && /*#__PURE__*/React.createElement(Form$1, {
|
|
24761
25367
|
layout: "vertical",
|
|
24762
25368
|
style: {
|
|
24763
25369
|
flex: 1
|
|
24764
25370
|
},
|
|
24765
25371
|
form: form
|
|
24766
|
-
}, React.createElement(Row$2, {
|
|
25372
|
+
}, /*#__PURE__*/React.createElement(Row$2, {
|
|
24767
25373
|
gutter: [8, 8]
|
|
24768
|
-
}, React.createElement(Col$2, {
|
|
25374
|
+
}, /*#__PURE__*/React.createElement(Col$2, {
|
|
24769
25375
|
span: 12
|
|
24770
|
-
}, React.createElement(Form$1.Item, {
|
|
25376
|
+
}, /*#__PURE__*/React.createElement(Form$1.Item, {
|
|
24771
25377
|
name: "itemNameSelf",
|
|
24772
25378
|
label: "\u6211\u65B9\u5546\u54C1\u540D\u79F0"
|
|
24773
|
-
}, React.createElement(Input, null))), React.createElement(Col$2, {
|
|
25379
|
+
}, /*#__PURE__*/React.createElement(Input, null))), /*#__PURE__*/React.createElement(Col$2, {
|
|
24774
25380
|
span: 12
|
|
24775
|
-
}, React.createElement(Form$1.Item, {
|
|
25381
|
+
}, /*#__PURE__*/React.createElement(Form$1.Item, {
|
|
24776
25382
|
name: "itemName",
|
|
24777
25383
|
label: "\u5BF9\u65B9\u5546\u54C1\u540D\u79F0"
|
|
24778
|
-
}, React.createElement(Input, null))), React.createElement(Col$2, {
|
|
25384
|
+
}, /*#__PURE__*/React.createElement(Input, null))), /*#__PURE__*/React.createElement(Col$2, {
|
|
24779
25385
|
span: 12
|
|
24780
|
-
}, React.createElement(Form$1.Item, {
|
|
25386
|
+
}, /*#__PURE__*/React.createElement(Form$1.Item, {
|
|
24781
25387
|
name: 'itemModelNameSelf',
|
|
24782
25388
|
label: "\u6211\u65B9\u89C4\u683C\u578B\u53F7"
|
|
24783
|
-
}, React.createElement(Input, null))), React.createElement(Col$2, {
|
|
25389
|
+
}, /*#__PURE__*/React.createElement(Input, null))), /*#__PURE__*/React.createElement(Col$2, {
|
|
24784
25390
|
span: 12
|
|
24785
|
-
}, React.createElement(Form$1.Item, {
|
|
25391
|
+
}, /*#__PURE__*/React.createElement(Form$1.Item, {
|
|
24786
25392
|
name: "itemModelName",
|
|
24787
25393
|
label: "\u5BF9\u65B9\u89C4\u683C\u578B\u53F7"
|
|
24788
|
-
}, React.createElement(Input, null))))));
|
|
25394
|
+
}, /*#__PURE__*/React.createElement(Input, null))))));
|
|
24789
25395
|
} // function validateFields(form: WrappedFormUtils<any>) {
|
|
24790
25396
|
// return new Promise<{ err: any, values: any }>(resolve => {
|
|
24791
25397
|
// form.validateFields((err, values) => {
|
|
@@ -24796,7 +25402,7 @@ function AddComparisonDrawer() {
|
|
|
24796
25402
|
|
|
24797
25403
|
/** 发票组件的上下文 */
|
|
24798
25404
|
|
|
24799
|
-
var InvoiceContext = React.createContext(undefined);
|
|
25405
|
+
var InvoiceContext = /*#__PURE__*/React.createContext(undefined);
|
|
24800
25406
|
|
|
24801
25407
|
var Invoice = /*#__PURE__*/function (_React$PureComponent) {
|
|
24802
25408
|
_inherits(Invoice, _React$PureComponent);
|
|
@@ -24828,6 +25434,8 @@ var Invoice = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
24828
25434
|
|
|
24829
25435
|
/** 干系人(数电) */
|
|
24830
25436
|
|
|
25437
|
+
/** 农产品干系人(数电) */
|
|
25438
|
+
|
|
24831
25439
|
/** 落款(数电) */
|
|
24832
25440
|
|
|
24833
25441
|
/** 特殊信息-不动产经营租赁服务(数电) */
|
|
@@ -24843,9 +25451,9 @@ var Invoice = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
24843
25451
|
/** 获取控制器钩子 */
|
|
24844
25452
|
function render() {
|
|
24845
25453
|
if (this.props.invoiceType === 'digtal') {
|
|
24846
|
-
return React.createElement(Digtal, _objectSpread2({}, this.props));
|
|
25454
|
+
return /*#__PURE__*/React.createElement(Digtal, _objectSpread2({}, this.props));
|
|
24847
25455
|
} else {
|
|
24848
|
-
return React.createElement(Main$4, _objectSpread2({}, this.props));
|
|
25456
|
+
return /*#__PURE__*/React.createElement(Main$4, _objectSpread2({}, this.props));
|
|
24849
25457
|
}
|
|
24850
25458
|
}
|
|
24851
25459
|
}]);
|
|
@@ -24863,6 +25471,7 @@ Invoice.Sign = Sign;
|
|
|
24863
25471
|
Invoice.Buyer = Buyer$1;
|
|
24864
25472
|
Invoice.InvoiceHeaderDigtal = InvoiceHeaderDigtal;
|
|
24865
25473
|
Invoice.Stakeholder = Stakeholder$1;
|
|
25474
|
+
Invoice.StakeFarmerholder = StakeFarmerholder;
|
|
24866
25475
|
Invoice.SignDigtal = SignDigtal;
|
|
24867
25476
|
Invoice.RealEstateInfo = RealEstateInfo;
|
|
24868
25477
|
Invoice.GoodsListDigtal = GoodsList$1;
|
|
@@ -24888,10 +25497,10 @@ var Main$4 = function Main(props) {
|
|
|
24888
25497
|
React.useEffect(function () {
|
|
24889
25498
|
setKey(key + 1);
|
|
24890
25499
|
}, [controller]);
|
|
24891
|
-
return React.createElement(InvoiceContext.Provider, {
|
|
25500
|
+
return /*#__PURE__*/React.createElement(InvoiceContext.Provider, {
|
|
24892
25501
|
key: key,
|
|
24893
25502
|
value: controller
|
|
24894
|
-
}, React.createElement("div", {
|
|
25503
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
24895
25504
|
className: "kts-invoice-operate",
|
|
24896
25505
|
ref: controller.pipeline( /*#__PURE__*/function () {
|
|
24897
25506
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(s, e) {
|
|
@@ -24913,17 +25522,17 @@ var Main$4 = function Main(props) {
|
|
|
24913
25522
|
return _ref.apply(this, arguments);
|
|
24914
25523
|
};
|
|
24915
25524
|
}())
|
|
24916
|
-
}, props.invoiceHeader || React.createElement(InvoiceHeader, null)
|
|
25525
|
+
}, props.invoiceHeader || /*#__PURE__*/React.createElement(InvoiceHeader, null)
|
|
24917
25526
|
/** 发票头 */
|
|
24918
|
-
, props.buyer || React.createElement(Buyer$1, null)
|
|
25527
|
+
, props.buyer || /*#__PURE__*/React.createElement(Buyer$1, null)
|
|
24919
25528
|
/** 购买方 */
|
|
24920
|
-
, props.goodsList || React.createElement(GoodsList, null)
|
|
25529
|
+
, props.goodsList || /*#__PURE__*/React.createElement(GoodsList, null)
|
|
24921
25530
|
/** 货物列表 */
|
|
24922
|
-
, props.seller || React.createElement(Buyer, null)
|
|
25531
|
+
, props.seller || /*#__PURE__*/React.createElement(Buyer, null)
|
|
24923
25532
|
/** 销售方 */
|
|
24924
|
-
, props.sign || React.createElement(Sign, null)
|
|
25533
|
+
, props.sign || /*#__PURE__*/React.createElement(Sign, null)
|
|
24925
25534
|
/** 落款 */
|
|
24926
|
-
, props.footExpand), React.createElement(ImportBuyerDrawer, null), React.createElement(ImportGoodsDrawer, null), React.createElement(EndowCodeDrawer, null), React.createElement(AddComparisonDrawer, null));
|
|
25535
|
+
, props.footExpand), /*#__PURE__*/React.createElement(ImportBuyerDrawer, null), /*#__PURE__*/React.createElement(ImportGoodsDrawer, null), /*#__PURE__*/React.createElement(EndowCodeDrawer, null), /*#__PURE__*/React.createElement(AddComparisonDrawer, null));
|
|
24927
25536
|
};
|
|
24928
25537
|
/** 数电 */
|
|
24929
25538
|
|
|
@@ -24942,10 +25551,10 @@ var Digtal = function Digtal(props) {
|
|
|
24942
25551
|
React.useEffect(function () {
|
|
24943
25552
|
setKey(key + 1);
|
|
24944
25553
|
}, [controller]);
|
|
24945
|
-
return React.createElement(InvoiceContext.Provider, {
|
|
25554
|
+
return /*#__PURE__*/React.createElement(InvoiceContext.Provider, {
|
|
24946
25555
|
key: key,
|
|
24947
25556
|
value: controller
|
|
24948
|
-
}, React.createElement("div", {
|
|
25557
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
24949
25558
|
className: "kts-invoice-operate-digtal",
|
|
24950
25559
|
ref: controller.pipeline( /*#__PURE__*/function () {
|
|
24951
25560
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(s, e) {
|
|
@@ -24967,19 +25576,19 @@ var Digtal = function Digtal(props) {
|
|
|
24967
25576
|
return _ref2.apply(this, arguments);
|
|
24968
25577
|
};
|
|
24969
25578
|
}())
|
|
24970
|
-
}, props.invoiceHeader || React.createElement(InvoiceHeaderDigtal, null)
|
|
25579
|
+
}, props.invoiceHeader || /*#__PURE__*/React.createElement(InvoiceHeaderDigtal, null)
|
|
24971
25580
|
/** 发票头 */
|
|
24972
|
-
, React.createElement("div", {
|
|
25581
|
+
, /*#__PURE__*/React.createElement("div", {
|
|
24973
25582
|
className: 'kts-invoice-operate-digtal-cont'
|
|
24974
|
-
}, props.stakeholder || React.createElement(Stakeholder$1, null)
|
|
25583
|
+
}, props.stakeholder || /*#__PURE__*/React.createElement(Stakeholder$1, null)
|
|
24975
25584
|
/** 干系人 */
|
|
24976
|
-
, props.goodsList || React.createElement(GoodsList$1, null)
|
|
25585
|
+
, props.goodsList || /*#__PURE__*/React.createElement(GoodsList$1, null)
|
|
24977
25586
|
/** 货物列表 */
|
|
24978
25587
|
), props.specialInfor
|
|
24979
25588
|
/** 特殊信息 */
|
|
24980
|
-
, props.sign || React.createElement(SignDigtal, null)
|
|
25589
|
+
, props.sign || /*#__PURE__*/React.createElement(SignDigtal, null)
|
|
24981
25590
|
/** 落款 */
|
|
24982
|
-
), React.createElement(ImportGoodsDrawer, null), React.createElement(EndowCodeDrawer, null));
|
|
25591
|
+
), /*#__PURE__*/React.createElement(ImportGoodsDrawer, null), /*#__PURE__*/React.createElement(EndowCodeDrawer, null));
|
|
24983
25592
|
};
|
|
24984
25593
|
|
|
24985
25594
|
function TaxClassificationModal(props) {
|
|
@@ -25020,26 +25629,26 @@ function TaxClassificationModal(props) {
|
|
|
25020
25629
|
}, 500);
|
|
25021
25630
|
}
|
|
25022
25631
|
}, [form, props.open]);
|
|
25023
|
-
return React.createElement(Drawer$1, {
|
|
25632
|
+
return /*#__PURE__*/React.createElement(Drawer$1, {
|
|
25024
25633
|
title: "\u5546\u54C1\u548C\u670D\u52A1\u7A0E\u6536\u5206\u7C7B\u7F16\u7801",
|
|
25025
25634
|
placement: "right",
|
|
25026
25635
|
open: props.open,
|
|
25027
25636
|
width: 503,
|
|
25028
25637
|
onClose: props.onCancel
|
|
25029
|
-
}, React.createElement(Form$1, {
|
|
25638
|
+
}, /*#__PURE__*/React.createElement(Form$1, {
|
|
25030
25639
|
form: form
|
|
25031
|
-
}, React.createElement(Form$1.Item, {
|
|
25640
|
+
}, /*#__PURE__*/React.createElement(Form$1.Item, {
|
|
25032
25641
|
name: 'search'
|
|
25033
|
-
}, React.createElement(Input$1, {
|
|
25642
|
+
}, /*#__PURE__*/React.createElement(Input$1, {
|
|
25034
25643
|
placeholder: "\u8BF7\u8F93\u5165\u7A0E\u6536\u5206\u7C7B\u7F16\u7801\u3001\u7A0E\u6536\u5206\u7C7B\u540D\u79F0\u8FDB\u884C\u68C0\u7D22",
|
|
25035
25644
|
onChange: searchTax
|
|
25036
|
-
})), React.createElement(Form$1.Item, {
|
|
25645
|
+
})), /*#__PURE__*/React.createElement(Form$1.Item, {
|
|
25037
25646
|
name: 'tree'
|
|
25038
|
-
}, React.createElement(Tree$1, {
|
|
25647
|
+
}, /*#__PURE__*/React.createElement(Tree$1, {
|
|
25039
25648
|
onSelect: props.onSelect,
|
|
25040
25649
|
loadData: props.onLoad,
|
|
25041
25650
|
treeData: props.list,
|
|
25042
|
-
switcherIcon: React.createElement(Icon$1, {
|
|
25651
|
+
switcherIcon: /*#__PURE__*/React.createElement(Icon$1, {
|
|
25043
25652
|
type: "down"
|
|
25044
25653
|
})
|
|
25045
25654
|
}))));
|