kts-component-invoice-operate 3.2.131 → 3.2.133
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.dumi/theme/builtins/API.tsx +66 -66
- package/.editorconfig +16 -16
- package/.fatherrc.ts +4 -4
- package/.prettierignore +7 -7
- package/.prettierrc +11 -11
- package/.umirc.ts +8 -8
- package/README.md +9 -9
- package/dist/index.esm.js +655 -607
- package/dist/index.js +655 -607
- package/docs/index.md +5 -5
- package/docs-dist/static/arrowDown.a1cbf0d8.svg +2 -2
- package/docs-dist/static/arrowUp.4c482054.svg +2 -2
- package/docs-dist/static/fork.5431267d.svg +11 -11
- package/docs-dist/static/plus.44013ce3.svg +11 -11
- package/docs-dist/static/plus.4fd1af30.svg +11 -11
- package/index.html +12 -12
- package/package.json +61 -61
- package/src/Invoice/Invoice-digtal/_test/disabled/index.tsx +38 -38
- package/src/Invoice/Invoice-digtal/_test/easiest/index.tsx +16 -16
- package/src/Invoice/Invoice-digtal/_test/header/index.tsx +84 -84
- package/src/Invoice/Invoice-digtal/_test/importGoods/index.tsx +868 -868
- package/src/Invoice/Invoice-digtal/_test/importStakeholder/index.tsx +17 -17
- package/src/Invoice/Invoice-digtal/_test/lineCredit/index.tsx +20 -20
- package/src/Invoice/Invoice-digtal/_test/prefab/index.tsx +150 -150
- package/src/Invoice/Invoice-digtal/_test/readOnly/index.tsx +42 -42
- package/src/Invoice/Invoice-digtal/_test/stakeholder/index.tsx +12 -12
- package/src/Invoice/Invoice-digtal/_test/typeSelection/index.tsx +29 -29
- package/src/Invoice/Invoice-digtal/index.md +30 -30
- package/src/Invoice/InvoiceController/InvoiceControllerForm/index.ts +95 -95
- package/src/Invoice/InvoiceController/InvoiceControllerState/AutoComplete/index.ts +20 -20
- package/src/Invoice/InvoiceController/InvoiceControllerState/BuyerState/index.tsx +88 -88
- package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/Drag/index.ts +15 -15
- package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/EndowCode/index.tsx +104 -104
- package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/IColumnsReplenish/index.ts +10 -10
- package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/IGood/index.ts +78 -78
- package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/ImportGoods/index.ts +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 +117 -117
- package/src/Invoice/InvoiceController/InvoiceControllerState/Stakeholder/index.ts +13 -13
- package/src/Invoice/InvoiceController/InvoiceControllerState/index.ts +65 -65
- package/src/Invoice/InvoiceController/fns/addGood.ts +11 -11
- package/src/Invoice/InvoiceController/fns/addGoodDiscount.ts +126 -126
- package/src/Invoice/InvoiceController/fns/addGoodDiscountV2.ts +86 -86
- package/src/Invoice/InvoiceController/fns/delGood.ts +41 -41
- package/src/Invoice/InvoiceController/fns/getGoodsSearch.ts +26 -26
- package/src/Invoice/InvoiceController/fns/importGoodsDrawer.ts +79 -79
- package/src/Invoice/InvoiceController/fns/itemBlur.ts +40 -40
- package/src/Invoice/InvoiceController/fns/mergeDetails.ts +201 -201
- package/src/Invoice/InvoiceController/fns/mergeDiscount.ts +35 -35
- package/src/Invoice/InvoiceController/fns/saveEditGood.ts +24 -24
- package/src/Invoice/InvoiceController/fns/setEditGood.ts +16 -16
- package/src/Invoice/InvoiceController/fns/setGoods.ts +10 -10
- package/src/Invoice/InvoiceController/fns/updateInvoiceNo.ts +8 -8
- package/src/Invoice/InvoiceController/index.ts +81 -81
- package/src/Invoice/_test/buyerNameSearch/index.tsx +42 -42
- package/src/Invoice/_test/deduction/index.tsx +935 -935
- package/src/Invoice/_test/draft/index.tsx +40 -40
- package/src/Invoice/_test/easiest/index.tsx +5 -5
- package/src/Invoice/_test/endowCode/index.tsx +1158 -1158
- package/src/Invoice/_test/goodsMenuExpand/index.tsx +32 -32
- package/src/Invoice/_test/importBuyer/index.tsx +74 -74
- package/src/Invoice/_test/importGoods/index.tsx +1197 -1197
- package/src/Invoice/_test/invoiceType/index.tsx +59 -59
- package/src/Invoice/_test/isInvoiceNo/index.tsx +12 -12
- package/src/Invoice/_test/replaceHead/index.tsx +22 -22
- package/src/Invoice/_test/retrieveData/index.tsx +22 -22
- package/src/Invoice/_test/seller/index.tsx +28 -28
- package/src/Invoice/_test/setDataSource/index.tsx +73 -73
- package/src/Invoice/_test/unit/index.tsx +19 -19
- package/src/Invoice/index.less +29 -29
- package/src/Invoice/index.md +53 -53
- package/src/Invoice/index.tsx +171 -171
- 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 +550 -550
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/autoFillFn/index.ts +632 -632
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/index.tsx +694 -688
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/Drag/index.less +20 -20
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/Drag/index.tsx +205 -205
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/ItemCodeInput/index.less +18 -18
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/ItemCodeInput/index.tsx +47 -47
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/ItemNameInput/index.less +17 -17
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/ItemNameInput/index.tsx +88 -88
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/RowEditButton/index.tsx +30 -30
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/RowMenu/hook/_useAddComparison/index.tsx +43 -43
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/RowMenu/hook/useAddDiscount/index.tsx +118 -118
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/RowMenu/hook/useDelItem/index.tsx +41 -41
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/RowMenu/hook/useEndowCode/index.tsx +25 -25
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/RowMenu/index.less +13 -13
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/RowMenu/index.tsx +98 -98
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/RowSaveButton/index.tsx +14 -14
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/TitleText/index.tsx +20 -20
- package/src/Invoice/ui/default/GoodsList/hook/useDeduction/index.tsx +24 -24
- package/src/Invoice/ui/default/GoodsList/hook/useOnRow/index.tsx +39 -39
- package/src/Invoice/ui/default/GoodsList/hook/useRowSelection/index.tsx +114 -114
- package/src/Invoice/ui/default/GoodsList/hook/useWindowClick/index.tsx +23 -23
- package/src/Invoice/ui/default/GoodsList/index.less +179 -179
- package/src/Invoice/ui/default/GoodsList/index.tsx +205 -205
- package/src/Invoice/ui/default/GoodsList/ui/AddRowButton/index.tsx +65 -65
- package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/hooks/useAddDiscountRowButton/index.less +21 -21
- package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/hooks/useAddDiscountRowButton/index.tsx +244 -244
- package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/hooks/useCommodityComparisonButton/index.tsx +75 -75
- package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/hooks/useDelRowButton/index.tsx +69 -69
- package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/hooks/useEndowCodeButton/index.tsx +65 -65
- package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/hooks/useMergeDetails/index.tsx +91 -91
- package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/hooks/useMergeDiscount/index.tsx +36 -36
- package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/hooks/useSalesDiscount/index.tsx +109 -109
- package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/hooks/useSalesGifts/index.tsx +94 -88
- package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/index.tsx +37 -37
- package/src/Invoice/ui/default/GoodsList/ui/DescribeSwitch/index.tsx +36 -36
- package/src/Invoice/ui/default/GoodsList/ui/Search/index.less +10 -10
- package/src/Invoice/ui/default/GoodsList/ui/Search/index.tsx +52 -52
- package/src/Invoice/ui/default/GoodsList/ui/Statistics/index.less +18 -18
- package/src/Invoice/ui/default/GoodsList/ui/Statistics/index.tsx +114 -114
- package/src/Invoice/ui/default/GoodsList/ui/TableRow/index.less +28 -28
- package/src/Invoice/ui/default/GoodsList/ui/TableRow/index.tsx +57 -57
- package/src/Invoice/ui/default/GoodsList/ui/TableVirtual/index.less +38 -38
- package/src/Invoice/ui/default/GoodsList/ui/TableVirtual/index.tsx +108 -108
- package/src/Invoice/ui/default/GoodsList/ui/TableVirtual.o/index.less +44 -44
- package/src/Invoice/ui/default/GoodsList/ui/TableVirtual.o/index.tsx +96 -96
- package/src/Invoice/ui/default/GoodsList/ui/TaxIncludedSwitch/index.tsx +31 -31
- package/src/Invoice/ui/default/ImportBuyerDrawer/index.tsx +75 -75
- package/src/Invoice/ui/default/ImportGoodsDrawer/index.tsx +198 -198
- package/src/Invoice/ui/default/InvoiceHeader/index.less +68 -68
- package/src/Invoice/ui/default/InvoiceHeader/index.tsx +246 -246
- package/src/Invoice/ui/default/Seller/index.less +113 -113
- package/src/Invoice/ui/default/Seller/index.tsx +98 -98
- package/src/Invoice/ui/default/Sign/index.less +14 -14
- package/src/Invoice/ui/default/Sign/index.tsx +71 -71
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/autoFillFn/index.ts +624 -624
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/index.tsx +654 -648
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/svg/plus.svg +11 -11
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/Drag/index.less +20 -20
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/Drag/index.tsx +205 -205
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/ItemNameInput/index.less +9 -9
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/ItemNameInput/index.tsx +84 -84
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowEditButton/index.tsx +30 -30
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowMenu/hook/_useAddComparison/index.tsx +43 -43
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowMenu/hook/useAddDiscount/index.tsx +76 -76
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowMenu/hook/useDelItem/index.tsx +41 -41
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowMenu/hook/useEndowCode/index.tsx +34 -34
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowMenu/index.less +13 -13
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowMenu/index.tsx +98 -98
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowSaveButton/index.tsx +14 -14
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/TitleText/index.tsx +20 -20
- package/src/Invoice/ui/digtal/GoodsList/hook/useOnRow/index.tsx +39 -39
- package/src/Invoice/ui/digtal/GoodsList/hook/useRowSelection/index.tsx +121 -121
- package/src/Invoice/ui/digtal/GoodsList/hook/useWindowClick/index.tsx +23 -23
- package/src/Invoice/ui/digtal/GoodsList/index.less +56 -56
- package/src/Invoice/ui/digtal/GoodsList/index.tsx +180 -180
- package/src/Invoice/ui/digtal/GoodsList/ui/AddRowButton/index.tsx +65 -65
- package/src/Invoice/ui/digtal/GoodsList/ui/BulkMenu/hooks/useAddDiscountRowButton/index.tsx +339 -339
- package/src/Invoice/ui/digtal/GoodsList/ui/BulkMenu/hooks/useAddDiscountRowButton/svg/add.svg +11 -11
- package/src/Invoice/ui/digtal/GoodsList/ui/BulkMenu/hooks/useCommodityComparisonButton/index.tsx +75 -75
- package/src/Invoice/ui/digtal/GoodsList/ui/BulkMenu/hooks/useDelRowButton/index.tsx +50 -50
- package/src/Invoice/ui/digtal/GoodsList/ui/BulkMenu/hooks/useEmptyRefill/index.tsx +37 -37
- package/src/Invoice/ui/digtal/GoodsList/ui/BulkMenu/hooks/useEndowCodeButton/index.tsx +82 -82
- package/src/Invoice/ui/digtal/GoodsList/ui/BulkMenu/hooks/useReselectInvoiceType/index.tsx +57 -57
- package/src/Invoice/ui/digtal/GoodsList/ui/DescribeSwitch/index.tsx +36 -36
- package/src/Invoice/ui/digtal/GoodsList/ui/Search/index.less +11 -11
- package/src/Invoice/ui/digtal/GoodsList/ui/Search/index.tsx +50 -50
- package/src/Invoice/ui/digtal/GoodsList/ui/Statistics/index.less +53 -53
- package/src/Invoice/ui/digtal/GoodsList/ui/Statistics/index.tsx +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/TableVirtual.o/index.less +44 -44
- package/src/Invoice/ui/digtal/GoodsList/ui/TableVirtual.o/index.tsx +96 -96
- package/src/Invoice/ui/digtal/GoodsList/ui/TaxIncludedSwitch/index.tsx +31 -31
- package/src/Invoice/ui/digtal/InvoiceHeader/index.less +57 -57
- package/src/Invoice/ui/digtal/InvoiceHeader/index.tsx +77 -77
- package/src/Invoice/ui/digtal/Sign/index.less +48 -48
- package/src/Invoice/ui/digtal/Sign/index.tsx +99 -99
- package/src/Invoice/ui/digtal/Stakeholder/index.less +99 -99
- package/src/Invoice/ui/digtal/Stakeholder/index.tsx +395 -395
- 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
|
@@ -9840,7 +9840,7 @@ var InvoiceHeader = decorator(Form.create())(function (props) {
|
|
|
9840
9840
|
render: function render(form) {
|
|
9841
9841
|
return form.getFieldDecorator('code', {
|
|
9842
9842
|
initialValue: props.defaultCode
|
|
9843
|
-
})(React.createElement(FormSpanString, null));
|
|
9843
|
+
})( /*#__PURE__*/React.createElement(FormSpanString, null));
|
|
9844
9844
|
}
|
|
9845
9845
|
});
|
|
9846
9846
|
}
|
|
@@ -9853,7 +9853,7 @@ var InvoiceHeader = decorator(Form.create())(function (props) {
|
|
|
9853
9853
|
render: function render(form) {
|
|
9854
9854
|
return form.getFieldDecorator('no', {
|
|
9855
9855
|
initialValue: props.defaultNo
|
|
9856
|
-
})(React.createElement(FormSpanString, null));
|
|
9856
|
+
})( /*#__PURE__*/React.createElement(FormSpanString, null));
|
|
9857
9857
|
}
|
|
9858
9858
|
});
|
|
9859
9859
|
}
|
|
@@ -9864,7 +9864,7 @@ var InvoiceHeader = decorator(Form.create())(function (props) {
|
|
|
9864
9864
|
render: function render(form) {
|
|
9865
9865
|
return form.getFieldDecorator('invoicingDate', {
|
|
9866
9866
|
initialValue: props.defaultInvoicingDate
|
|
9867
|
-
})(React.createElement(FormSpanString, null));
|
|
9867
|
+
})( /*#__PURE__*/React.createElement(FormSpanString, null));
|
|
9868
9868
|
}
|
|
9869
9869
|
});
|
|
9870
9870
|
}
|
|
@@ -9875,7 +9875,7 @@ var InvoiceHeader = decorator(Form.create())(function (props) {
|
|
|
9875
9875
|
render: function render(form) {
|
|
9876
9876
|
return form.getFieldDecorator('defaultValidationCode', {
|
|
9877
9877
|
initialValue: props.defaultValidationCode
|
|
9878
|
-
})(React.createElement(FormSpanString, null));
|
|
9878
|
+
})( /*#__PURE__*/React.createElement(FormSpanString, null));
|
|
9879
9879
|
}
|
|
9880
9880
|
});
|
|
9881
9881
|
}
|
|
@@ -9895,21 +9895,21 @@ var InvoiceHeader = decorator(Form.create())(function (props) {
|
|
|
9895
9895
|
React.useEffect(function () {
|
|
9896
9896
|
setTypeIndex(props.typeOptionIndex || 0);
|
|
9897
9897
|
}, [props.typeOption]);
|
|
9898
|
-
return React.createElement("div", {
|
|
9898
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
9899
9899
|
className: "kts-invoice-operate-invoice-header"
|
|
9900
|
-
}, React.createElement("div", {
|
|
9900
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
9901
9901
|
className: "invoice-header-title"
|
|
9902
|
-
}, title), React.createElement("div", {
|
|
9902
|
+
}, title), /*#__PURE__*/React.createElement("div", {
|
|
9903
9903
|
className: "invoice-header-no"
|
|
9904
|
-
}, isInvoiceNo ? React.createElement("div", null, React.createElement("label", null, "\u53D1\u7968\u5355\u636E\u7F16\u53F7 :"), getFieldDecorator('id', {
|
|
9904
|
+
}, isInvoiceNo ? /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("label", null, "\u53D1\u7968\u5355\u636E\u7F16\u53F7 :"), getFieldDecorator('id', {
|
|
9905
9905
|
initialValue: props.defaultId
|
|
9906
|
-
})(React.createElement(Input, {
|
|
9906
|
+
})( /*#__PURE__*/React.createElement(Input, {
|
|
9907
9907
|
disabled: readOnlyInvoiceNo,
|
|
9908
9908
|
style: {
|
|
9909
9909
|
width: 230
|
|
9910
9910
|
},
|
|
9911
9911
|
size: "small",
|
|
9912
|
-
suffix: controller.updateInvoiceNo && React.createElement(Icon$1, {
|
|
9912
|
+
suffix: controller.updateInvoiceNo && /*#__PURE__*/React.createElement(Icon$1, {
|
|
9913
9913
|
style: {
|
|
9914
9914
|
cursor: 'pointer'
|
|
9915
9915
|
},
|
|
@@ -9953,15 +9953,15 @@ var InvoiceHeader = decorator(Form.create())(function (props) {
|
|
|
9953
9953
|
return onClick;
|
|
9954
9954
|
}()
|
|
9955
9955
|
})
|
|
9956
|
-
}))) : React.createElement("div", {
|
|
9956
|
+
}))) : /*#__PURE__*/React.createElement("div", {
|
|
9957
9957
|
style: {
|
|
9958
9958
|
height: 20
|
|
9959
9959
|
}
|
|
9960
|
-
}), tag && React.createElement(Tag$1, null, tag), React.createElement("div", {
|
|
9960
|
+
}), tag && /*#__PURE__*/React.createElement(Tag$1, null, tag), /*#__PURE__*/React.createElement("div", {
|
|
9961
9961
|
className: "invoice-header-type"
|
|
9962
9962
|
}, props.typeOption ? getFieldDecorator('type', {
|
|
9963
9963
|
initialValue: typeIndex
|
|
9964
|
-
})(React.createElement(Select, {
|
|
9964
|
+
})( /*#__PURE__*/React.createElement(Select, {
|
|
9965
9965
|
size: "small",
|
|
9966
9966
|
style: {
|
|
9967
9967
|
width: 230
|
|
@@ -9970,20 +9970,20 @@ var InvoiceHeader = decorator(Form.create())(function (props) {
|
|
|
9970
9970
|
setTypeIndex(e);
|
|
9971
9971
|
}
|
|
9972
9972
|
}, props.typeOption.map(function (e, i) {
|
|
9973
|
-
return React.createElement(Select.Option, {
|
|
9973
|
+
return /*#__PURE__*/React.createElement(Select.Option, {
|
|
9974
9974
|
key: i,
|
|
9975
9975
|
value: i
|
|
9976
9976
|
}, e.title);
|
|
9977
|
-
}))) : props.renderExpand && props.renderExpand(props.form))), props.typeOption && React.createElement("div", {
|
|
9977
|
+
}))) : props.renderExpand && props.renderExpand(props.form))), props.typeOption && /*#__PURE__*/React.createElement("div", {
|
|
9978
9978
|
style: {
|
|
9979
9979
|
marginTop: 10
|
|
9980
9980
|
}
|
|
9981
|
-
}, props.renderExpand && props.renderExpand(props.form)), React.createElement("div", {
|
|
9981
|
+
}, props.renderExpand && props.renderExpand(props.form)), /*#__PURE__*/React.createElement("div", {
|
|
9982
9982
|
className: "invoice-header-property"
|
|
9983
|
-
}, _toConsumableArray(props.fieldExpand || []).map(function (e) {}), React.createElement("ul", {
|
|
9983
|
+
}, _toConsumableArray(props.fieldExpand || []).map(function (e) {}), /*#__PURE__*/React.createElement("ul", {
|
|
9984
9984
|
className: 'invoice-header-property-fieldExpand'
|
|
9985
9985
|
}, fieldExpand.map(function (e) {
|
|
9986
|
-
return React.createElement("li", null, React.createElement("label", null, e.label), e.render(form));
|
|
9986
|
+
return /*#__PURE__*/React.createElement("li", null, /*#__PURE__*/React.createElement("label", null, e.label), e.render(form));
|
|
9987
9987
|
}))));
|
|
9988
9988
|
});
|
|
9989
9989
|
|
|
@@ -10002,7 +10002,7 @@ var FormSpanString = /*#__PURE__*/function (_React$Component) {
|
|
|
10002
10002
|
key: "render",
|
|
10003
10003
|
value: function render() {
|
|
10004
10004
|
// return <span>{this.props.value}</span>;
|
|
10005
|
-
return React.createElement(Input, {
|
|
10005
|
+
return /*#__PURE__*/React.createElement(Input, {
|
|
10006
10006
|
size: "small",
|
|
10007
10007
|
disabled: true,
|
|
10008
10008
|
value: this.props.value
|
|
@@ -10113,12 +10113,12 @@ function TableVirtual (props) {
|
|
|
10113
10113
|
if (!cont) return;
|
|
10114
10114
|
cont.scrollTop = 0;
|
|
10115
10115
|
}, [(_props$dataSource2 = props.dataSource) === null || _props$dataSource2 === void 0 ? void 0 : _props$dataSource2.length]);
|
|
10116
|
-
return React.createElement("span", {
|
|
10116
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
10117
10117
|
className: "kts-invoice-operate-goods-table-virtual",
|
|
10118
10118
|
ref: function ref(e) {
|
|
10119
10119
|
setSelf(e);
|
|
10120
10120
|
}
|
|
10121
|
-
}, React.createElement(TableManual, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
10121
|
+
}, /*#__PURE__*/React.createElement(TableManual, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
10122
10122
|
dataSource: dataSource,
|
|
10123
10123
|
// 新版本Table会有输入框无法连续输入的问题,先兼容老版本
|
|
10124
10124
|
tableComponent: Table
|
|
@@ -10210,57 +10210,57 @@ var Statistics = (function () {
|
|
|
10210
10210
|
});
|
|
10211
10211
|
return sum.done().toNumber();
|
|
10212
10212
|
}, []);
|
|
10213
|
-
return React.createElement("div", {
|
|
10213
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
10214
10214
|
className: "kts-invoice-operate-goods-list-statistics"
|
|
10215
|
-
}, React.createElement("div", {
|
|
10215
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
10216
10216
|
className: "kts-invoice-operate-goods-list-statistics-row"
|
|
10217
|
-
}, React.createElement("div", {
|
|
10217
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
10218
10218
|
style: {
|
|
10219
10219
|
width: 45.92
|
|
10220
10220
|
}
|
|
10221
|
-
}), React.createElement("div", {
|
|
10221
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
10222
10222
|
style: {
|
|
10223
10223
|
flex: 1
|
|
10224
10224
|
}
|
|
10225
|
-
}, React.createElement("label", null, "\u5408\u8BA1")), React.createElement("div", {
|
|
10225
|
+
}, /*#__PURE__*/React.createElement("label", null, "\u5408\u8BA1")), /*#__PURE__*/React.createElement("div", {
|
|
10226
10226
|
style: {
|
|
10227
10227
|
width: 119,
|
|
10228
10228
|
textAlign: 'right',
|
|
10229
10229
|
border: 'none'
|
|
10230
10230
|
}
|
|
10231
|
-
}, React.createElement("label", null, parseFloat(isTaxIncluded ? lineAmountIncludeTax : lineAmountExcludeTax).toFixed(2))), React.createElement("div", {
|
|
10231
|
+
}, /*#__PURE__*/React.createElement("label", null, parseFloat(isTaxIncluded ? lineAmountIncludeTax : lineAmountExcludeTax).toFixed(2))), /*#__PURE__*/React.createElement("div", {
|
|
10232
10232
|
style: {
|
|
10233
10233
|
width: 70,
|
|
10234
10234
|
border: 'none'
|
|
10235
10235
|
}
|
|
10236
|
-
}), React.createElement("div", {
|
|
10236
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
10237
10237
|
style: {
|
|
10238
10238
|
width: 119,
|
|
10239
10239
|
textAlign: 'right',
|
|
10240
10240
|
border: 'none'
|
|
10241
10241
|
}
|
|
10242
|
-
}, React.createElement("label", null, parseFloat(taxAmount).toFixed(2))), React.createElement("div", {
|
|
10242
|
+
}, /*#__PURE__*/React.createElement("label", null, parseFloat(taxAmount).toFixed(2))), /*#__PURE__*/React.createElement("div", {
|
|
10243
10243
|
style: {
|
|
10244
10244
|
width: 111,
|
|
10245
10245
|
border: 'none'
|
|
10246
10246
|
}
|
|
10247
|
-
})), React.createElement("div", {
|
|
10247
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
10248
10248
|
className: "kts-invoice-operate-goods-list-statistics-row"
|
|
10249
|
-
}, React.createElement("div", {
|
|
10249
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
10250
10250
|
style: {
|
|
10251
10251
|
width: 45.92
|
|
10252
10252
|
}
|
|
10253
|
-
}), React.createElement("div", {
|
|
10253
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
10254
10254
|
style: {
|
|
10255
10255
|
flex: 5,
|
|
10256
10256
|
border: 'none'
|
|
10257
10257
|
}
|
|
10258
|
-
}, React.createElement("label", null, "\u4EF7\u7A0E\u5408\u8BA1\uFF08\u5927\u5199\uFF09"), React.createElement("label", null, toStringChinese(lineAmountIncludeTax))), React.createElement("div", {
|
|
10258
|
+
}, /*#__PURE__*/React.createElement("label", null, "\u4EF7\u7A0E\u5408\u8BA1\uFF08\u5927\u5199\uFF09"), /*#__PURE__*/React.createElement("label", null, toStringChinese(lineAmountIncludeTax))), /*#__PURE__*/React.createElement("div", {
|
|
10259
10259
|
style: {
|
|
10260
10260
|
flex: 5,
|
|
10261
10261
|
border: 'none'
|
|
10262
10262
|
}
|
|
10263
|
-
}, React.createElement("label", null, "\uFF08\u5C0F\u5199\uFF09 ", parseFloat(lineAmountIncludeTax).toFixed(2)))));
|
|
10263
|
+
}, /*#__PURE__*/React.createElement("label", null, "\uFF08\u5C0F\u5199\uFF09 ", parseFloat(lineAmountIncludeTax).toFixed(2)))));
|
|
10264
10264
|
});
|
|
10265
10265
|
|
|
10266
10266
|
var AddRowButton = (function () {
|
|
@@ -10315,10 +10315,10 @@ var AddRowButton = (function () {
|
|
|
10315
10315
|
}
|
|
10316
10316
|
}, _callee);
|
|
10317
10317
|
})), [controller, rootElement]);
|
|
10318
|
-
if (isAddRow === false) return React.createElement(React.Fragment, null);
|
|
10319
|
-
if (model === 'prefab') return React.createElement(React.Fragment, null);
|
|
10320
|
-
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
10321
|
-
return React.createElement(Button, {
|
|
10318
|
+
if (isAddRow === false) return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
10319
|
+
if (model === 'prefab') return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
10320
|
+
if (model === 'readOnly') return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
10321
|
+
return /*#__PURE__*/React.createElement(Button, {
|
|
10322
10322
|
onClick: onClick,
|
|
10323
10323
|
disabled: disabled
|
|
10324
10324
|
}, "\u6DFB\u52A0\u884C");
|
|
@@ -10448,11 +10448,11 @@ var TaxIncludedSwitch = (function () {
|
|
|
10448
10448
|
var onChange = React.useCallback(function (e) {
|
|
10449
10449
|
onChangeSwitchTax(controller, e);
|
|
10450
10450
|
}, []);
|
|
10451
|
-
return React.createElement("span", null, React.createElement("label", {
|
|
10451
|
+
return /*#__PURE__*/React.createElement("span", null, /*#__PURE__*/React.createElement("label", {
|
|
10452
10452
|
style: {
|
|
10453
10453
|
marginRight: 2
|
|
10454
10454
|
}
|
|
10455
|
-
}, "\u542B\u7A0E:"), React.createElement(Switch, {
|
|
10455
|
+
}, "\u542B\u7A0E:"), /*#__PURE__*/React.createElement(Switch, {
|
|
10456
10456
|
disabled: isSwitchTax === false,
|
|
10457
10457
|
checked: isTaxIncluded,
|
|
10458
10458
|
defaultChecked: true,
|
|
@@ -10490,19 +10490,19 @@ var DescribeSwitch = (function () {
|
|
|
10490
10490
|
};
|
|
10491
10491
|
}());
|
|
10492
10492
|
}, []);
|
|
10493
|
-
if (!productComparison.onComply) return React.createElement(React.Fragment, null);
|
|
10494
|
-
return React.createElement("span", null, React.createElement("label", {
|
|
10493
|
+
if (!productComparison.onComply) return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
10494
|
+
return /*#__PURE__*/React.createElement("span", null, /*#__PURE__*/React.createElement("label", {
|
|
10495
10495
|
style: {
|
|
10496
10496
|
marginRight: 2
|
|
10497
10497
|
}
|
|
10498
|
-
}, React.createElement(Tooltip, {
|
|
10498
|
+
}, /*#__PURE__*/React.createElement(Tooltip, {
|
|
10499
10499
|
title: "\u84DD\u8272\u4EE3\u8868\u6211\u65B9\u5546\u54C1\u63CF\u8FF0\uFF0C\u9ED1\u8272\u4EE3\u8868\u5BF9\u65B9\u7684\u5546\u54C1\u63CF\u8FF0\u3002"
|
|
10500
|
-
}, React.createElement(Icon$1, {
|
|
10500
|
+
}, /*#__PURE__*/React.createElement(Icon$1, {
|
|
10501
10501
|
style: {
|
|
10502
10502
|
marginRight: 3
|
|
10503
10503
|
},
|
|
10504
10504
|
type: "info-circle"
|
|
10505
|
-
})), "\u4F7F\u7528\u54EA\u65B9\u5546\u54C1\u63CF\u8FF0:"), React.createElement(Switch$1, {
|
|
10505
|
+
})), "\u4F7F\u7528\u54EA\u65B9\u5546\u54C1\u63CF\u8FF0:"), /*#__PURE__*/React.createElement(Switch$1, {
|
|
10506
10506
|
checked: isMyShow,
|
|
10507
10507
|
checkedChildren: "\u6211\u65B9",
|
|
10508
10508
|
unCheckedChildren: "\u5BF9\u65B9",
|
|
@@ -10602,13 +10602,13 @@ function Search() {
|
|
|
10602
10602
|
};
|
|
10603
10603
|
}());
|
|
10604
10604
|
}, [value, controller]);
|
|
10605
|
-
return React.createElement(Input, {
|
|
10605
|
+
return /*#__PURE__*/React.createElement(Input, {
|
|
10606
10606
|
size: "small",
|
|
10607
10607
|
readOnly: readOnly,
|
|
10608
10608
|
value: value,
|
|
10609
10609
|
className: "kts-invoice-operate-goods-list-search",
|
|
10610
10610
|
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"),
|
|
10611
|
-
prefix: React.createElement(Icon$1, {
|
|
10611
|
+
prefix: /*#__PURE__*/React.createElement(Icon$1, {
|
|
10612
10612
|
component: SvgMagnifier,
|
|
10613
10613
|
style: {
|
|
10614
10614
|
color: "#b8b8b8"
|
|
@@ -10660,13 +10660,13 @@ function TableRow(props) {
|
|
|
10660
10660
|
return undefined;
|
|
10661
10661
|
}
|
|
10662
10662
|
}, [good, goodsMap]);
|
|
10663
|
-
return rowKey === current && current ? React.createElement("tr", {
|
|
10663
|
+
return rowKey === current && current ? /*#__PURE__*/React.createElement("tr", {
|
|
10664
10664
|
style: {
|
|
10665
10665
|
height: 32.67,
|
|
10666
10666
|
borderBottom: '1px solid #E6E6E6',
|
|
10667
10667
|
position: 'relative'
|
|
10668
10668
|
}
|
|
10669
|
-
}, React.createElement("div", {
|
|
10669
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
10670
10670
|
style: {
|
|
10671
10671
|
height: 1,
|
|
10672
10672
|
width: '100%',
|
|
@@ -10674,7 +10674,7 @@ function TableRow(props) {
|
|
|
10674
10674
|
position: 'absolute',
|
|
10675
10675
|
bottom: 0
|
|
10676
10676
|
}
|
|
10677
|
-
})) : React.createElement("tr", _objectSpread2(_objectSpread2({}, props), {}, {
|
|
10677
|
+
})) : /*#__PURE__*/React.createElement("tr", _objectSpread2(_objectSpread2({}, props), {}, {
|
|
10678
10678
|
className: classNames(props.className, discount, rowKey === container && current ? 'kts-invoice-operate-goods-list-itemName-drag-container-' + site : undefined)
|
|
10679
10679
|
}));
|
|
10680
10680
|
}
|
|
@@ -11082,7 +11082,7 @@ var RowMenu = (function (props) {
|
|
|
11082
11082
|
// addComparison && arr.push(addComparison); // 添加商品对照
|
|
11083
11083
|
|
|
11084
11084
|
if (!goodsMenuExpand || goodsMenuExpand.length === 0) return arr;
|
|
11085
|
-
arr.unshift(React.createElement(Menu.Divider, {
|
|
11085
|
+
arr.unshift( /*#__PURE__*/React.createElement(Menu.Divider, {
|
|
11086
11086
|
key: "divider-1"
|
|
11087
11087
|
}));
|
|
11088
11088
|
|
|
@@ -11098,17 +11098,17 @@ var RowMenu = (function (props) {
|
|
|
11098
11098
|
return undefined;
|
|
11099
11099
|
}
|
|
11100
11100
|
|
|
11101
|
-
return React.createElement(Menu, null, itemList.slice(2).map(function (e) {
|
|
11102
|
-
return React.createElement(Menu.Item, {
|
|
11101
|
+
return /*#__PURE__*/React.createElement(Menu, null, itemList.slice(2).map(function (e) {
|
|
11102
|
+
return /*#__PURE__*/React.createElement(Menu.Item, {
|
|
11103
11103
|
key: e.key,
|
|
11104
11104
|
onClick: e.onClick
|
|
11105
|
-
}, React.createElement(Text$1, {
|
|
11105
|
+
}, /*#__PURE__*/React.createElement(Text$1, {
|
|
11106
11106
|
strong: true
|
|
11107
11107
|
}, e.title));
|
|
11108
11108
|
}));
|
|
11109
11109
|
}, [itemList]);
|
|
11110
11110
|
var buttonList = React.useMemo(function () {
|
|
11111
|
-
return React.createElement("div", {
|
|
11111
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
11112
11112
|
style: {
|
|
11113
11113
|
flex: 1,
|
|
11114
11114
|
textAlign: 'left',
|
|
@@ -11116,7 +11116,7 @@ var RowMenu = (function (props) {
|
|
|
11116
11116
|
gap: 10
|
|
11117
11117
|
}
|
|
11118
11118
|
}, itemList.slice(0, 2).map(function (e) {
|
|
11119
|
-
return React.createElement(Button, {
|
|
11119
|
+
return /*#__PURE__*/React.createElement(Button, {
|
|
11120
11120
|
key: e.key,
|
|
11121
11121
|
type: 'link',
|
|
11122
11122
|
onClick: e.onClick,
|
|
@@ -11128,21 +11128,21 @@ var RowMenu = (function (props) {
|
|
|
11128
11128
|
}, [itemList]);
|
|
11129
11129
|
|
|
11130
11130
|
if (itemList.length === 0) {
|
|
11131
|
-
return React.createElement(React.Fragment, null);
|
|
11131
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
11132
11132
|
}
|
|
11133
11133
|
|
|
11134
|
-
return React.createElement("span", {
|
|
11134
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
11135
11135
|
style: {
|
|
11136
11136
|
padding: '0 0 0 10px',
|
|
11137
11137
|
display: 'flex'
|
|
11138
11138
|
}
|
|
11139
|
-
}, buttonList, overlay && React.createElement(Dropdown, {
|
|
11139
|
+
}, buttonList, overlay && /*#__PURE__*/React.createElement(Dropdown, {
|
|
11140
11140
|
overlay: overlay,
|
|
11141
11141
|
trigger: ['click']
|
|
11142
|
-
}, React.createElement(Button, {
|
|
11142
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
11143
11143
|
className: "kts-invoice-operate-goods-list-columns-row-menu ant-btn-icon-only",
|
|
11144
11144
|
type: "link"
|
|
11145
|
-
}, React.createElement(Icon$1, {
|
|
11145
|
+
}, /*#__PURE__*/React.createElement(Icon$1, {
|
|
11146
11146
|
component: SvgSpot
|
|
11147
11147
|
}))));
|
|
11148
11148
|
});
|
|
@@ -11156,9 +11156,9 @@ var TitleText = (function (props) {
|
|
|
11156
11156
|
return !!e.required;
|
|
11157
11157
|
})) || props.required;
|
|
11158
11158
|
}, [rules, props.required]);
|
|
11159
|
-
return React.createElement(React.Fragment, null, required ? React.createElement(Text$2, {
|
|
11159
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, required ? /*#__PURE__*/React.createElement(Text$2, {
|
|
11160
11160
|
type: "danger"
|
|
11161
|
-
}, "*") : React.createElement(React.Fragment, null), children);
|
|
11161
|
+
}, "*") : /*#__PURE__*/React.createElement(React.Fragment, null), children);
|
|
11162
11162
|
});
|
|
11163
11163
|
|
|
11164
11164
|
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";
|
|
@@ -11349,14 +11349,14 @@ function ItemNameInput(props) {
|
|
|
11349
11349
|
React.useEffect(function () {
|
|
11350
11350
|
setValue(props.value);
|
|
11351
11351
|
}, [props.value]);
|
|
11352
|
-
return React.createElement("div", {
|
|
11352
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
11353
11353
|
className: 'kts-invoice-operate-goods-list-itemName-input'
|
|
11354
|
-
}, props.shorthand && React.createElement("span", {
|
|
11354
|
+
}, props.shorthand && /*#__PURE__*/React.createElement("span", {
|
|
11355
11355
|
style: {
|
|
11356
11356
|
alignSelf: 'center',
|
|
11357
11357
|
fontSize: 12
|
|
11358
11358
|
}
|
|
11359
|
-
}, "*", props.shorthand, "*"), React.createElement(AutoComplete$1, {
|
|
11359
|
+
}, "*", props.shorthand, "*"), /*#__PURE__*/React.createElement(AutoComplete$1, {
|
|
11360
11360
|
onSearch: onSearch,
|
|
11361
11361
|
value: props.value,
|
|
11362
11362
|
options: options.map(function (e) {
|
|
@@ -11366,7 +11366,7 @@ function ItemNameInput(props) {
|
|
|
11366
11366
|
};
|
|
11367
11367
|
}),
|
|
11368
11368
|
onSelect: onChangeAutoComplete
|
|
11369
|
-
}, React.createElement(Input, {
|
|
11369
|
+
}, /*#__PURE__*/React.createElement(Input, {
|
|
11370
11370
|
style: {
|
|
11371
11371
|
height: '100%',
|
|
11372
11372
|
border: 'none'
|
|
@@ -11475,9 +11475,9 @@ function ItemCodeInput(props) {
|
|
|
11475
11475
|
return _ref2.apply(this, arguments);
|
|
11476
11476
|
};
|
|
11477
11477
|
}(), [options, controller]);
|
|
11478
|
-
return React.createElement("div", {
|
|
11478
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
11479
11479
|
className: 'kts-invoice-operate-goods-list-itemCode-input'
|
|
11480
|
-
}, React.createElement(AutoComplete$1, {
|
|
11480
|
+
}, /*#__PURE__*/React.createElement(AutoComplete$1, {
|
|
11481
11481
|
onSearch: onSearch,
|
|
11482
11482
|
value: props.value,
|
|
11483
11483
|
options: options.map(function (e) {
|
|
@@ -11486,7 +11486,7 @@ function ItemCodeInput(props) {
|
|
|
11486
11486
|
};
|
|
11487
11487
|
}),
|
|
11488
11488
|
onSelect: onChangeAutoComplete
|
|
11489
|
-
}, React.createElement(Input, {
|
|
11489
|
+
}, /*#__PURE__*/React.createElement(Input, {
|
|
11490
11490
|
style: {
|
|
11491
11491
|
height: '100%',
|
|
11492
11492
|
border: 'none'
|
|
@@ -12667,7 +12667,7 @@ function Drag$1(props) {
|
|
|
12667
12667
|
var currentGood = controller.state.goodsListState.goodsList.filter(function (e) {
|
|
12668
12668
|
return e.$index === record.$index;
|
|
12669
12669
|
})[0];
|
|
12670
|
-
mounting(React.createElement(DragDiv, _objectSpread2({}, currentGood)));
|
|
12670
|
+
mounting( /*#__PURE__*/React.createElement(DragDiv, _objectSpread2({}, currentGood)));
|
|
12671
12671
|
rowList.forEach(function (e) {
|
|
12672
12672
|
e.addEventListener('mousemove', onMousemove);
|
|
12673
12673
|
});
|
|
@@ -12828,7 +12828,7 @@ function Drag$1(props) {
|
|
|
12828
12828
|
|
|
12829
12829
|
|
|
12830
12830
|
function insert() {
|
|
12831
|
-
mounting(React.createElement(React.Fragment, null));
|
|
12831
|
+
mounting( /*#__PURE__*/React.createElement(React.Fragment, null));
|
|
12832
12832
|
controller.run( /*#__PURE__*/function () {
|
|
12833
12833
|
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(s) {
|
|
12834
12834
|
var _s$goodsListState$dra, container, current, site, goodsList, goodsMap, _currentGood, currentIndex, moveGoods;
|
|
@@ -12907,7 +12907,7 @@ function Drag$1(props) {
|
|
|
12907
12907
|
}
|
|
12908
12908
|
}, [controller, record, disabled]);
|
|
12909
12909
|
var renderButton = React.useMemo(function () {
|
|
12910
|
-
return React.createElement(Button, {
|
|
12910
|
+
return /*#__PURE__*/React.createElement(Button, {
|
|
12911
12911
|
type: 'link',
|
|
12912
12912
|
style: {
|
|
12913
12913
|
padding: 0
|
|
@@ -12918,13 +12918,13 @@ function Drag$1(props) {
|
|
|
12918
12918
|
},
|
|
12919
12919
|
className: "kts-invoice-operate-goods-list-itemName-drag",
|
|
12920
12920
|
onMouseOver: controller.saveEditGood
|
|
12921
|
-
}, React.createElement(Icon, {
|
|
12921
|
+
}, /*#__PURE__*/React.createElement(Icon, {
|
|
12922
12922
|
component: SvgI001
|
|
12923
12923
|
}));
|
|
12924
12924
|
}, [onMouseDown, controller]);
|
|
12925
12925
|
|
|
12926
12926
|
if (disabled) {
|
|
12927
|
-
return React.createElement(Popover, {
|
|
12927
|
+
return /*#__PURE__*/React.createElement(Popover, {
|
|
12928
12928
|
content: '您还有未编辑完成的商品',
|
|
12929
12929
|
trigger: 'focus'
|
|
12930
12930
|
}, renderButton);
|
|
@@ -12964,13 +12964,13 @@ function DragDiv(props) {
|
|
|
12964
12964
|
window.removeEventListener('mousemove', onMousemove);
|
|
12965
12965
|
};
|
|
12966
12966
|
});
|
|
12967
|
-
return React.createElement("div", {
|
|
12967
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
12968
12968
|
className: "kts-invoice-operate-goods-list-itemName-drag-div",
|
|
12969
12969
|
style: {
|
|
12970
12970
|
top: y,
|
|
12971
12971
|
left: x
|
|
12972
12972
|
}
|
|
12973
|
-
}, React.createElement("span", null, props.itemName), React.createElement("span", null, props.itemModelName), React.createElement("span", null, props.unit));
|
|
12973
|
+
}, /*#__PURE__*/React.createElement("span", null, props.itemName), /*#__PURE__*/React.createElement("span", null, props.itemModelName), /*#__PURE__*/React.createElement("span", null, props.unit));
|
|
12974
12974
|
}
|
|
12975
12975
|
|
|
12976
12976
|
var useColumns = (function (form) {
|
|
@@ -13091,7 +13091,7 @@ var useColumns = (function (form) {
|
|
|
13091
13091
|
width: 40,
|
|
13092
13092
|
align: 'center',
|
|
13093
13093
|
render: function render(_, record) {
|
|
13094
|
-
return React.createElement(Drag$1, {
|
|
13094
|
+
return /*#__PURE__*/React.createElement(Drag$1, {
|
|
13095
13095
|
record: record
|
|
13096
13096
|
});
|
|
13097
13097
|
}
|
|
@@ -13101,7 +13101,7 @@ var useColumns = (function (form) {
|
|
|
13101
13101
|
dataIndex: 'serialNo',
|
|
13102
13102
|
width: 50,
|
|
13103
13103
|
render: function render(e) {
|
|
13104
|
-
return React.createElement("span", {
|
|
13104
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
13105
13105
|
style: {
|
|
13106
13106
|
padding: '0 10px'
|
|
13107
13107
|
}
|
|
@@ -13113,13 +13113,13 @@ var useColumns = (function (form) {
|
|
|
13113
13113
|
width: 119,
|
|
13114
13114
|
render: function render(_, record) {
|
|
13115
13115
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
13116
|
-
return React.createElement(Form.Item, null, getFieldDecorator('itemCode', {
|
|
13116
|
+
return /*#__PURE__*/React.createElement(Form.Item, null, getFieldDecorator('itemCode', {
|
|
13117
13117
|
initialValue: editGood.itemCode,
|
|
13118
13118
|
rules: [].concat(_toConsumableArray(getReplenishRules('itemCode')), [{
|
|
13119
13119
|
pattern: /^.{1,19}$/,
|
|
13120
13120
|
message: '商品编码长度不能超过19位'
|
|
13121
13121
|
}])
|
|
13122
|
-
})(React.createElement(ItemCodeInput, {
|
|
13122
|
+
})( /*#__PURE__*/React.createElement(ItemCodeInput, {
|
|
13123
13123
|
onChange: function () {
|
|
13124
13124
|
var _onChange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
13125
13125
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
@@ -13145,7 +13145,7 @@ var useColumns = (function (form) {
|
|
|
13145
13145
|
}()
|
|
13146
13146
|
})));
|
|
13147
13147
|
} else {
|
|
13148
|
-
return React.createElement("span", {
|
|
13148
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
13149
13149
|
style: {
|
|
13150
13150
|
padding: '0 10px'
|
|
13151
13151
|
}
|
|
@@ -13153,13 +13153,13 @@ var useColumns = (function (form) {
|
|
|
13153
13153
|
}
|
|
13154
13154
|
}
|
|
13155
13155
|
}, {
|
|
13156
|
-
title: React.createElement(TitleText, {
|
|
13156
|
+
title: /*#__PURE__*/React.createElement(TitleText, {
|
|
13157
13157
|
required: true
|
|
13158
13158
|
}, "\u9879\u76EE\u540D\u79F0"),
|
|
13159
13159
|
key: 'itemName',
|
|
13160
13160
|
render: function render(_, record) {
|
|
13161
13161
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
13162
|
-
return React.createElement(Form.Item, null, React.createElement("div", {
|
|
13162
|
+
return /*#__PURE__*/React.createElement(Form.Item, null, /*#__PURE__*/React.createElement("div", {
|
|
13163
13163
|
style: {
|
|
13164
13164
|
display: 'flex'
|
|
13165
13165
|
}
|
|
@@ -13206,17 +13206,17 @@ var useColumns = (function (form) {
|
|
|
13206
13206
|
return validator;
|
|
13207
13207
|
}()
|
|
13208
13208
|
}])
|
|
13209
|
-
})(React.createElement(ItemNameInput, {
|
|
13209
|
+
})( /*#__PURE__*/React.createElement(ItemNameInput, {
|
|
13210
13210
|
editGood: editGood,
|
|
13211
13211
|
shorthand: editGood.shorthand,
|
|
13212
13212
|
onChange: function onChange() {
|
|
13213
13213
|
onChangeItemName(controller, form, record);
|
|
13214
13214
|
}
|
|
13215
|
-
})), React.createElement("div", {
|
|
13215
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
13216
13216
|
className: "kts-invoice-operate-goods-list-able-list-itemName-import"
|
|
13217
|
-
}, controller.getGoodsList && model !== 'readOnly' && React.createElement(Tooltip, {
|
|
13217
|
+
}, controller.getGoodsList && model !== 'readOnly' && /*#__PURE__*/React.createElement(Tooltip, {
|
|
13218
13218
|
title: "\u70B9\u51FB\u4ECE\u5546\u54C1\u7BA1\u7406\u4E2D\u6DFB\u52A0\u5546\u54C1\u4FE1\u606F"
|
|
13219
|
-
}, React.createElement(Button, {
|
|
13219
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
13220
13220
|
onClick: controller.pipeline( /*#__PURE__*/function () {
|
|
13221
13221
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(s) {
|
|
13222
13222
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
@@ -13241,7 +13241,7 @@ var useColumns = (function (form) {
|
|
|
13241
13241
|
icon: "plus-circle"
|
|
13242
13242
|
})))));
|
|
13243
13243
|
} else {
|
|
13244
|
-
return React.createElement(MyItemNameDiv, {
|
|
13244
|
+
return /*#__PURE__*/React.createElement(MyItemNameDiv, {
|
|
13245
13245
|
valueT: formatSearch(getItemNameWithShorthand({
|
|
13246
13246
|
shorthand: record.shorthand,
|
|
13247
13247
|
full: record.itemNameSelf || ''
|
|
@@ -13255,17 +13255,17 @@ var useColumns = (function (form) {
|
|
|
13255
13255
|
}
|
|
13256
13256
|
}
|
|
13257
13257
|
}, {
|
|
13258
|
-
title: React.createElement(TitleText, {
|
|
13258
|
+
title: /*#__PURE__*/React.createElement(TitleText, {
|
|
13259
13259
|
rules: (_columnsReplenish$ite = columnsReplenish['itemModelName']) === null || _columnsReplenish$ite === void 0 ? void 0 : _columnsReplenish$ite.rules
|
|
13260
13260
|
}, "\u89C4\u683C\u578B\u53F7"),
|
|
13261
13261
|
key: 'itemModelName',
|
|
13262
13262
|
width: 119,
|
|
13263
13263
|
render: function render(_, record) {
|
|
13264
13264
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
13265
|
-
return React.createElement(Form.Item, null, getFieldDecorator('itemModelName', {
|
|
13265
|
+
return /*#__PURE__*/React.createElement(Form.Item, null, getFieldDecorator('itemModelName', {
|
|
13266
13266
|
initialValue: isMyShow ? editGood.itemModelNameSelf : editGood.itemModelName,
|
|
13267
13267
|
rules: getReplenishRules('itemModelName')
|
|
13268
|
-
})(React.createElement(MyInput, {
|
|
13268
|
+
})( /*#__PURE__*/React.createElement(MyInput, {
|
|
13269
13269
|
onChange: function () {
|
|
13270
13270
|
var _onChange2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5() {
|
|
13271
13271
|
var key, value;
|
|
@@ -13298,7 +13298,7 @@ var useColumns = (function (form) {
|
|
|
13298
13298
|
}()
|
|
13299
13299
|
})));
|
|
13300
13300
|
} else {
|
|
13301
|
-
return React.createElement(MyItemNameDiv, {
|
|
13301
|
+
return /*#__PURE__*/React.createElement(MyItemNameDiv, {
|
|
13302
13302
|
valueT: formatSearch(record.itemModelNameSelf, searchValue),
|
|
13303
13303
|
valueF: formatSearch(record.itemModelName, searchValue),
|
|
13304
13304
|
isMyShow: isMyShow
|
|
@@ -13306,17 +13306,17 @@ var useColumns = (function (form) {
|
|
|
13306
13306
|
}
|
|
13307
13307
|
}
|
|
13308
13308
|
}, {
|
|
13309
|
-
title: React.createElement(TitleText, {
|
|
13309
|
+
title: /*#__PURE__*/React.createElement(TitleText, {
|
|
13310
13310
|
rules: (_columnsReplenish$uni = columnsReplenish['unit']) === null || _columnsReplenish$uni === void 0 ? void 0 : _columnsReplenish$uni.rules
|
|
13311
13311
|
}, "\u5355\u4F4D"),
|
|
13312
13312
|
key: 'unit',
|
|
13313
13313
|
width: 70,
|
|
13314
13314
|
render: function render(_, record) {
|
|
13315
13315
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
13316
|
-
return React.createElement(Form.Item, null, getFieldDecorator('unit', {
|
|
13316
|
+
return /*#__PURE__*/React.createElement(Form.Item, null, getFieldDecorator('unit', {
|
|
13317
13317
|
initialValue: editGood.unit,
|
|
13318
13318
|
rules: getReplenishRules('unit')
|
|
13319
|
-
})(React.createElement(AutoComplete$2, {
|
|
13319
|
+
})( /*#__PURE__*/React.createElement(AutoComplete$2, {
|
|
13320
13320
|
style: {
|
|
13321
13321
|
width: '100%'
|
|
13322
13322
|
},
|
|
@@ -13354,7 +13354,7 @@ var useColumns = (function (form) {
|
|
|
13354
13354
|
}()
|
|
13355
13355
|
})));
|
|
13356
13356
|
} else {
|
|
13357
|
-
return React.createElement("span", {
|
|
13357
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
13358
13358
|
style: {
|
|
13359
13359
|
padding: '0 10px'
|
|
13360
13360
|
}
|
|
@@ -13362,7 +13362,7 @@ var useColumns = (function (form) {
|
|
|
13362
13362
|
}
|
|
13363
13363
|
}
|
|
13364
13364
|
}, {
|
|
13365
|
-
title: React.createElement(TitleText, {
|
|
13365
|
+
title: /*#__PURE__*/React.createElement(TitleText, {
|
|
13366
13366
|
rules: (_columnsReplenish$qua = columnsReplenish['quantity']) === null || _columnsReplenish$qua === void 0 ? void 0 : _columnsReplenish$qua.rules
|
|
13367
13367
|
}, "\u6570\u91CF"),
|
|
13368
13368
|
dataIndex: 'quantity',
|
|
@@ -13371,7 +13371,7 @@ var useColumns = (function (form) {
|
|
|
13371
13371
|
width: 149,
|
|
13372
13372
|
render: function render(value, record) {
|
|
13373
13373
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
13374
|
-
return React.createElement(Form.Item, null, getFieldDecorator('quantity', {
|
|
13374
|
+
return /*#__PURE__*/React.createElement(Form.Item, null, getFieldDecorator('quantity', {
|
|
13375
13375
|
initialValue: nonScientificNotation(editGood.quantity),
|
|
13376
13376
|
getValueFromEvent: onNumberValueChange,
|
|
13377
13377
|
rules: [].concat(_toConsumableArray(getReplenishRules('quantity')), [{
|
|
@@ -13417,7 +13417,7 @@ var useColumns = (function (form) {
|
|
|
13417
13417
|
return validator;
|
|
13418
13418
|
}()
|
|
13419
13419
|
}])
|
|
13420
|
-
})(React.createElement(MyInput, {
|
|
13420
|
+
})( /*#__PURE__*/React.createElement(MyInput, {
|
|
13421
13421
|
style: {
|
|
13422
13422
|
textAlign: 'right'
|
|
13423
13423
|
},
|
|
@@ -13449,7 +13449,7 @@ var useColumns = (function (form) {
|
|
|
13449
13449
|
}()
|
|
13450
13450
|
})));
|
|
13451
13451
|
} else {
|
|
13452
|
-
return React.createElement("span", {
|
|
13452
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
13453
13453
|
style: {
|
|
13454
13454
|
padding: '0 10px'
|
|
13455
13455
|
}
|
|
@@ -13457,7 +13457,7 @@ var useColumns = (function (form) {
|
|
|
13457
13457
|
}
|
|
13458
13458
|
}
|
|
13459
13459
|
}, {
|
|
13460
|
-
title: React.createElement(TitleText, {
|
|
13460
|
+
title: /*#__PURE__*/React.createElement(TitleText, {
|
|
13461
13461
|
rules: (_columnsReplenish$pri = columnsReplenish['priceIncludeTax']) === null || _columnsReplenish$pri === void 0 ? void 0 : _columnsReplenish$pri.rules
|
|
13462
13462
|
}, "\u5355\u4EF7(\u542B\u7A0E)"),
|
|
13463
13463
|
dataIndex: 'priceIncludeTax',
|
|
@@ -13466,7 +13466,7 @@ var useColumns = (function (form) {
|
|
|
13466
13466
|
width: 149,
|
|
13467
13467
|
render: function render(value, record) {
|
|
13468
13468
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
13469
|
-
return React.createElement(Form.Item, null, getFieldDecorator('priceIncludeTax', {
|
|
13469
|
+
return /*#__PURE__*/React.createElement(Form.Item, null, getFieldDecorator('priceIncludeTax', {
|
|
13470
13470
|
initialValue: nonScientificNotation(editGood.priceIncludeTax),
|
|
13471
13471
|
getValueFromEvent: onNumberValueChange,
|
|
13472
13472
|
rules: [].concat(_toConsumableArray(getReplenishRules('priceIncludeTax')), [{
|
|
@@ -13512,7 +13512,7 @@ var useColumns = (function (form) {
|
|
|
13512
13512
|
return validator;
|
|
13513
13513
|
}()
|
|
13514
13514
|
}])
|
|
13515
|
-
})(React.createElement(MyInput, {
|
|
13515
|
+
})( /*#__PURE__*/React.createElement(MyInput, {
|
|
13516
13516
|
style: {
|
|
13517
13517
|
textAlign: 'right'
|
|
13518
13518
|
},
|
|
@@ -13524,7 +13524,7 @@ var useColumns = (function (form) {
|
|
|
13524
13524
|
}
|
|
13525
13525
|
})));
|
|
13526
13526
|
} else {
|
|
13527
|
-
return React.createElement("span", {
|
|
13527
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
13528
13528
|
style: {
|
|
13529
13529
|
padding: '0 10px'
|
|
13530
13530
|
}
|
|
@@ -13532,7 +13532,7 @@ var useColumns = (function (form) {
|
|
|
13532
13532
|
}
|
|
13533
13533
|
}
|
|
13534
13534
|
}, {
|
|
13535
|
-
title: React.createElement(TitleText, {
|
|
13535
|
+
title: /*#__PURE__*/React.createElement(TitleText, {
|
|
13536
13536
|
rules: (_columnsReplenish$pri2 = columnsReplenish['priceExcludeTax']) === null || _columnsReplenish$pri2 === void 0 ? void 0 : _columnsReplenish$pri2.rules
|
|
13537
13537
|
}, "\u5355\u4EF7(\u4E0D\u542B\u7A0E)"),
|
|
13538
13538
|
dataIndex: 'priceExcludeTax',
|
|
@@ -13541,7 +13541,7 @@ var useColumns = (function (form) {
|
|
|
13541
13541
|
width: 149,
|
|
13542
13542
|
render: function render(value, record) {
|
|
13543
13543
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
13544
|
-
return React.createElement(Form.Item, null, getFieldDecorator('priceExcludeTax', {
|
|
13544
|
+
return /*#__PURE__*/React.createElement(Form.Item, null, getFieldDecorator('priceExcludeTax', {
|
|
13545
13545
|
initialValue: nonScientificNotation(editGood.priceExcludeTax),
|
|
13546
13546
|
getValueFromEvent: onNumberValueChange,
|
|
13547
13547
|
rules: [].concat(_toConsumableArray(getReplenishRules('priceExcludeTax')), [{
|
|
@@ -13587,7 +13587,7 @@ var useColumns = (function (form) {
|
|
|
13587
13587
|
return validator;
|
|
13588
13588
|
}()
|
|
13589
13589
|
}])
|
|
13590
|
-
})(React.createElement(MyInput, {
|
|
13590
|
+
})( /*#__PURE__*/React.createElement(MyInput, {
|
|
13591
13591
|
style: {
|
|
13592
13592
|
textAlign: 'right'
|
|
13593
13593
|
},
|
|
@@ -13599,7 +13599,7 @@ var useColumns = (function (form) {
|
|
|
13599
13599
|
}
|
|
13600
13600
|
})));
|
|
13601
13601
|
} else {
|
|
13602
|
-
return React.createElement("span", {
|
|
13602
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
13603
13603
|
style: {
|
|
13604
13604
|
padding: '0 10px'
|
|
13605
13605
|
}
|
|
@@ -13607,7 +13607,7 @@ var useColumns = (function (form) {
|
|
|
13607
13607
|
}
|
|
13608
13608
|
}
|
|
13609
13609
|
}, {
|
|
13610
|
-
title: React.createElement(TitleText, {
|
|
13610
|
+
title: /*#__PURE__*/React.createElement(TitleText, {
|
|
13611
13611
|
required: true
|
|
13612
13612
|
}, "\u91D1\u989D(\u542B\u7A0E)"),
|
|
13613
13613
|
dataIndex: 'lineAmountIncludeTax',
|
|
@@ -13616,7 +13616,7 @@ var useColumns = (function (form) {
|
|
|
13616
13616
|
align: 'right',
|
|
13617
13617
|
render: function render(value, record) {
|
|
13618
13618
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
13619
|
-
return React.createElement(Form.Item, null, getFieldDecorator('lineAmountIncludeTax', {
|
|
13619
|
+
return /*#__PURE__*/React.createElement(Form.Item, null, getFieldDecorator('lineAmountIncludeTax', {
|
|
13620
13620
|
initialValue: editGood.lineAmountIncludeTax,
|
|
13621
13621
|
getValueFromEvent: onNumberValueChange,
|
|
13622
13622
|
rules: [].concat(_toConsumableArray(getReplenishRules('lineAmountIncludeTax')), [{
|
|
@@ -13676,7 +13676,7 @@ var useColumns = (function (form) {
|
|
|
13676
13676
|
return validator;
|
|
13677
13677
|
}()
|
|
13678
13678
|
}])
|
|
13679
|
-
})(React.createElement(MyInput, {
|
|
13679
|
+
})( /*#__PURE__*/React.createElement(MyInput, {
|
|
13680
13680
|
style: {
|
|
13681
13681
|
textAlign: 'right'
|
|
13682
13682
|
},
|
|
@@ -13687,7 +13687,7 @@ var useColumns = (function (form) {
|
|
|
13687
13687
|
}
|
|
13688
13688
|
})));
|
|
13689
13689
|
} else {
|
|
13690
|
-
return React.createElement("span", {
|
|
13690
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
13691
13691
|
style: {
|
|
13692
13692
|
padding: '0 10px'
|
|
13693
13693
|
}
|
|
@@ -13695,7 +13695,7 @@ var useColumns = (function (form) {
|
|
|
13695
13695
|
}
|
|
13696
13696
|
}
|
|
13697
13697
|
}, {
|
|
13698
|
-
title: React.createElement(TitleText, {
|
|
13698
|
+
title: /*#__PURE__*/React.createElement(TitleText, {
|
|
13699
13699
|
required: true
|
|
13700
13700
|
}, "\u91D1\u989D(\u4E0D\u542B\u7A0E)"),
|
|
13701
13701
|
dataIndex: 'lineAmountExcludeTax',
|
|
@@ -13704,7 +13704,7 @@ var useColumns = (function (form) {
|
|
|
13704
13704
|
width: 119,
|
|
13705
13705
|
render: function render(value, record) {
|
|
13706
13706
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
13707
|
-
return React.createElement(Form.Item, null, getFieldDecorator('lineAmountExcludeTax', {
|
|
13707
|
+
return /*#__PURE__*/React.createElement(Form.Item, null, getFieldDecorator('lineAmountExcludeTax', {
|
|
13708
13708
|
initialValue: editGood.lineAmountExcludeTax,
|
|
13709
13709
|
getValueFromEvent: onNumberValueChange,
|
|
13710
13710
|
rules: [].concat(_toConsumableArray(getReplenishRules('lineAmountExcludeTax')), [{
|
|
@@ -13739,7 +13739,7 @@ var useColumns = (function (form) {
|
|
|
13739
13739
|
return validator;
|
|
13740
13740
|
}()
|
|
13741
13741
|
}])
|
|
13742
|
-
})(React.createElement(MyInput, {
|
|
13742
|
+
})( /*#__PURE__*/React.createElement(MyInput, {
|
|
13743
13743
|
style: {
|
|
13744
13744
|
textAlign: 'right'
|
|
13745
13745
|
},
|
|
@@ -13750,7 +13750,7 @@ var useColumns = (function (form) {
|
|
|
13750
13750
|
}
|
|
13751
13751
|
})));
|
|
13752
13752
|
} else {
|
|
13753
|
-
return React.createElement("span", {
|
|
13753
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
13754
13754
|
style: {
|
|
13755
13755
|
padding: '0 10px'
|
|
13756
13756
|
}
|
|
@@ -13758,7 +13758,7 @@ var useColumns = (function (form) {
|
|
|
13758
13758
|
}
|
|
13759
13759
|
}
|
|
13760
13760
|
}, {
|
|
13761
|
-
title: React.createElement(TitleText, {
|
|
13761
|
+
title: /*#__PURE__*/React.createElement(TitleText, {
|
|
13762
13762
|
required: true
|
|
13763
13763
|
}, "\u7A0E\u7387"),
|
|
13764
13764
|
dataIndex: 'taxRate',
|
|
@@ -13767,7 +13767,7 @@ var useColumns = (function (form) {
|
|
|
13767
13767
|
width: 75,
|
|
13768
13768
|
render: function render(value, record) {
|
|
13769
13769
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
13770
|
-
return React.createElement(Form.Item, null, getFieldDecorator('taxRate', {
|
|
13770
|
+
return /*#__PURE__*/React.createElement(Form.Item, null, getFieldDecorator('taxRate', {
|
|
13771
13771
|
initialValue: editGood.taxRate,
|
|
13772
13772
|
rules: [].concat(_toConsumableArray(getReplenishRules('taxRate')), [{
|
|
13773
13773
|
required: true,
|
|
@@ -13776,7 +13776,7 @@ var useColumns = (function (form) {
|
|
|
13776
13776
|
pattern: /^[+-]?(0|([1-9]\d*))(\.\d+)?$/,
|
|
13777
13777
|
message: '请选择正确税率'
|
|
13778
13778
|
}])
|
|
13779
|
-
})(React.createElement(Select, {
|
|
13779
|
+
})( /*#__PURE__*/React.createElement(Select, {
|
|
13780
13780
|
className: "kts-invoice-operate-goods-list-table-tax-rate",
|
|
13781
13781
|
dropdownMenuStyle: {
|
|
13782
13782
|
textAlign: "right"
|
|
@@ -13790,21 +13790,21 @@ var useColumns = (function (form) {
|
|
|
13790
13790
|
onChangeTaxRate(controller, form, record);
|
|
13791
13791
|
}
|
|
13792
13792
|
}, taxRateList.map(function (e, i) {
|
|
13793
|
-
return React.createElement(Select.Option, {
|
|
13793
|
+
return /*#__PURE__*/React.createElement(Select.Option, {
|
|
13794
13794
|
key: i,
|
|
13795
13795
|
value: e
|
|
13796
13796
|
}, e, "%");
|
|
13797
13797
|
}))));
|
|
13798
13798
|
} else {
|
|
13799
|
-
return React.createElement("span", {
|
|
13799
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
13800
13800
|
style: {
|
|
13801
13801
|
padding: '0 10px'
|
|
13802
13802
|
}
|
|
13803
|
-
}, value, "%");
|
|
13803
|
+
}, isDutyFree(record) ? '免税' : "".concat(value, "%"));
|
|
13804
13804
|
}
|
|
13805
13805
|
}
|
|
13806
13806
|
}, {
|
|
13807
|
-
title: React.createElement(TitleText, {
|
|
13807
|
+
title: /*#__PURE__*/React.createElement(TitleText, {
|
|
13808
13808
|
rules: (_columnsReplenish$tax = columnsReplenish['taxAmount']) === null || _columnsReplenish$tax === void 0 ? void 0 : _columnsReplenish$tax.rules
|
|
13809
13809
|
}, "\u7A0E\u989D"),
|
|
13810
13810
|
dataIndex: 'taxAmount',
|
|
@@ -13816,15 +13816,15 @@ var useColumns = (function (form) {
|
|
|
13816
13816
|
return getFieldDecorator('taxAmount', {
|
|
13817
13817
|
initialValue: editGood.taxAmount,
|
|
13818
13818
|
rules: getReplenishRules('taxAmount')
|
|
13819
|
-
})(React.createElement(MyDiv, {
|
|
13819
|
+
})( /*#__PURE__*/React.createElement(MyDiv, {
|
|
13820
13820
|
loading: isCipher(changeField, 'taxAmount')
|
|
13821
13821
|
}));
|
|
13822
13822
|
} else {
|
|
13823
|
-
return React.createElement("span", {
|
|
13823
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
13824
13824
|
style: {
|
|
13825
13825
|
padding: '0 10px'
|
|
13826
13826
|
}
|
|
13827
|
-
}, parseFloat(value).toFixed(2));
|
|
13827
|
+
}, isDutyFree(record) ? '***' : parseFloat(value).toFixed(2));
|
|
13828
13828
|
}
|
|
13829
13829
|
}
|
|
13830
13830
|
}, {
|
|
@@ -13835,42 +13835,42 @@ var useColumns = (function (form) {
|
|
|
13835
13835
|
render: function render(e) {
|
|
13836
13836
|
switch (e) {
|
|
13837
13837
|
case LineAttributeType$1.折扣行:
|
|
13838
|
-
return React.createElement("span", {
|
|
13838
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
13839
13839
|
style: {
|
|
13840
13840
|
padding: '0 10px'
|
|
13841
13841
|
}
|
|
13842
13842
|
}, "\u6298\u6263\u884C");
|
|
13843
13843
|
|
|
13844
13844
|
case LineAttributeType$1.被折扣行:
|
|
13845
|
-
return React.createElement("span", {
|
|
13845
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
13846
13846
|
style: {
|
|
13847
13847
|
padding: '0 10px'
|
|
13848
13848
|
}
|
|
13849
13849
|
}, "\u88AB\u6298\u6263\u884C");
|
|
13850
13850
|
|
|
13851
13851
|
case LineAttributeType$1.赠品行:
|
|
13852
|
-
return React.createElement("span", {
|
|
13852
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
13853
13853
|
style: {
|
|
13854
13854
|
padding: '0 10px'
|
|
13855
13855
|
}
|
|
13856
13856
|
}, "\u8D60\u54C1\u884C");
|
|
13857
13857
|
|
|
13858
13858
|
case LineAttributeType$1.折让行:
|
|
13859
|
-
return React.createElement("span", {
|
|
13859
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
13860
13860
|
style: {
|
|
13861
13861
|
padding: '0 10px'
|
|
13862
13862
|
}
|
|
13863
13863
|
}, "\u6298\u8BA9\u884C");
|
|
13864
13864
|
|
|
13865
13865
|
case LineAttributeType$1.正常:
|
|
13866
|
-
return React.createElement("span", {
|
|
13866
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
13867
13867
|
style: {
|
|
13868
13868
|
padding: '0 10px'
|
|
13869
13869
|
}
|
|
13870
13870
|
}, "\u6B63\u5E38\u884C");
|
|
13871
13871
|
|
|
13872
13872
|
default:
|
|
13873
|
-
return React.createElement("span", {
|
|
13873
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
13874
13874
|
style: {
|
|
13875
13875
|
padding: '0 10px'
|
|
13876
13876
|
}
|
|
@@ -13884,7 +13884,7 @@ var useColumns = (function (form) {
|
|
|
13884
13884
|
width: 130,
|
|
13885
13885
|
fixed: 'right',
|
|
13886
13886
|
render: function render(_value, record) {
|
|
13887
|
-
return React.createElement(RowMenu, {
|
|
13887
|
+
return /*#__PURE__*/React.createElement(RowMenu, {
|
|
13888
13888
|
key: record.lineAttribute,
|
|
13889
13889
|
goods: record
|
|
13890
13890
|
});
|
|
@@ -13939,13 +13939,13 @@ var MyInput = /*#__PURE__*/function (_React$Component) {
|
|
|
13939
13939
|
key: "render",
|
|
13940
13940
|
value: function render() {
|
|
13941
13941
|
if (this.props.loading) {
|
|
13942
|
-
return React.createElement(Spin, {
|
|
13942
|
+
return /*#__PURE__*/React.createElement(Spin, {
|
|
13943
13943
|
size: "small"
|
|
13944
|
-
}, React.createElement(Input, _objectSpread2(_objectSpread2({}, this.props), {}, {
|
|
13944
|
+
}, /*#__PURE__*/React.createElement(Input, _objectSpread2(_objectSpread2({}, this.props), {}, {
|
|
13945
13945
|
autoComplete: "off"
|
|
13946
13946
|
})));
|
|
13947
13947
|
} else {
|
|
13948
|
-
return React.createElement(Input, _objectSpread2(_objectSpread2({}, this.props), {}, {
|
|
13948
|
+
return /*#__PURE__*/React.createElement(Input, _objectSpread2(_objectSpread2({}, this.props), {}, {
|
|
13949
13949
|
autoComplete: "off"
|
|
13950
13950
|
}));
|
|
13951
13951
|
}
|
|
@@ -13970,15 +13970,15 @@ var MyDiv = /*#__PURE__*/function (_React$Component2) {
|
|
|
13970
13970
|
key: "render",
|
|
13971
13971
|
value: function render() {
|
|
13972
13972
|
if (this.props.loading) {
|
|
13973
|
-
return React.createElement(Spin, {
|
|
13973
|
+
return /*#__PURE__*/React.createElement(Spin, {
|
|
13974
13974
|
size: "small"
|
|
13975
|
-
}, React.createElement("span", {
|
|
13975
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
13976
13976
|
style: {
|
|
13977
13977
|
padding: '0 10px'
|
|
13978
13978
|
}
|
|
13979
13979
|
}, this.props.value));
|
|
13980
13980
|
} else {
|
|
13981
|
-
return React.createElement("span", {
|
|
13981
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
13982
13982
|
style: {
|
|
13983
13983
|
padding: '0 10px'
|
|
13984
13984
|
}
|
|
@@ -14011,9 +14011,9 @@ var MyItemNameDiv = /*#__PURE__*/function (_React$Component3) {
|
|
|
14011
14011
|
|
|
14012
14012
|
if (isMyShow) {
|
|
14013
14013
|
if (valueT) {
|
|
14014
|
-
return React.createElement(Tooltip, {
|
|
14014
|
+
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
14015
14015
|
title: valueT
|
|
14016
|
-
}, React.createElement("span", {
|
|
14016
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
14017
14017
|
style: {
|
|
14018
14018
|
padding: '0 10px',
|
|
14019
14019
|
color: '#0074ff',
|
|
@@ -14024,9 +14024,9 @@ var MyItemNameDiv = /*#__PURE__*/function (_React$Component3) {
|
|
|
14024
14024
|
}
|
|
14025
14025
|
}, valueT));
|
|
14026
14026
|
} else {
|
|
14027
|
-
return React.createElement(Tooltip, {
|
|
14027
|
+
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
14028
14028
|
title: valueF
|
|
14029
|
-
}, React.createElement("span", {
|
|
14029
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
14030
14030
|
style: {
|
|
14031
14031
|
padding: '0 10px',
|
|
14032
14032
|
display: 'block',
|
|
@@ -14038,9 +14038,9 @@ var MyItemNameDiv = /*#__PURE__*/function (_React$Component3) {
|
|
|
14038
14038
|
}
|
|
14039
14039
|
} else {
|
|
14040
14040
|
if (valueF) {
|
|
14041
|
-
return React.createElement(Tooltip, {
|
|
14041
|
+
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
14042
14042
|
title: valueF
|
|
14043
|
-
}, React.createElement("span", {
|
|
14043
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
14044
14044
|
style: {
|
|
14045
14045
|
padding: '0 10px',
|
|
14046
14046
|
display: 'block',
|
|
@@ -14050,9 +14050,9 @@ var MyItemNameDiv = /*#__PURE__*/function (_React$Component3) {
|
|
|
14050
14050
|
}
|
|
14051
14051
|
}, valueF));
|
|
14052
14052
|
} else {
|
|
14053
|
-
return React.createElement(Tooltip, {
|
|
14053
|
+
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
14054
14054
|
title: valueT
|
|
14055
|
-
}, React.createElement("span", {
|
|
14055
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
14056
14056
|
style: {
|
|
14057
14057
|
padding: '0 10px',
|
|
14058
14058
|
color: '#0074ff',
|
|
@@ -14079,7 +14079,7 @@ function formatSearch(value, search) {
|
|
|
14079
14079
|
return dcoding(e);
|
|
14080
14080
|
}).join("<span class=\"kts-invoice-operate-goods-list-table-search-protrude\" >".concat(search, "</span>"));
|
|
14081
14081
|
|
|
14082
|
-
return React.createElement("span", {
|
|
14082
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
14083
14083
|
dangerouslySetInnerHTML: {
|
|
14084
14084
|
__html: __html
|
|
14085
14085
|
}
|
|
@@ -14101,6 +14101,13 @@ function dcoding(v) {
|
|
|
14101
14101
|
return e ? String.fromCharCode(parseInt(e.replace('E', ''))) : '';
|
|
14102
14102
|
}).join('');
|
|
14103
14103
|
}
|
|
14104
|
+
/** 是否免税 */
|
|
14105
|
+
|
|
14106
|
+
|
|
14107
|
+
function isDutyFree(record) {
|
|
14108
|
+
console.log(record);
|
|
14109
|
+
return record.taxFreeType === 1 && record.favouredPolicyName === '免税';
|
|
14110
|
+
}
|
|
14104
14111
|
|
|
14105
14112
|
var useOnRow = (function () {
|
|
14106
14113
|
/** 控制器 */
|
|
@@ -14504,7 +14511,7 @@ var useRowSelection = (function () {
|
|
|
14504
14511
|
};
|
|
14505
14512
|
}(), [controller]);
|
|
14506
14513
|
var columnTitle = React.useMemo(function () {
|
|
14507
|
-
return React.createElement(Checkbox, {
|
|
14514
|
+
return /*#__PURE__*/React.createElement(Checkbox, {
|
|
14508
14515
|
onChange: onClickSelectAll,
|
|
14509
14516
|
indeterminate: indeterminate,
|
|
14510
14517
|
checked: isAll
|
|
@@ -14705,16 +14712,16 @@ var useEndowCodeButton = (function () {
|
|
|
14705
14712
|
}, _callee2);
|
|
14706
14713
|
})), [controller]);
|
|
14707
14714
|
var menuItem = React.useMemo(function () {
|
|
14708
|
-
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
14709
|
-
return React.createElement(Menu.Item, {
|
|
14715
|
+
if (model === 'readOnly') return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
14716
|
+
return /*#__PURE__*/React.createElement(Menu.Item, {
|
|
14710
14717
|
key: "2",
|
|
14711
14718
|
onClick: onClick,
|
|
14712
14719
|
disabled: disabled
|
|
14713
14720
|
}, "\u6279\u91CF\u8D4B\u7801");
|
|
14714
14721
|
}, [onClick, disabled, model]);
|
|
14715
14722
|
var button = React.useMemo(function () {
|
|
14716
|
-
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
14717
|
-
return React.createElement(Button, {
|
|
14723
|
+
if (model === 'readOnly') return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
14724
|
+
return /*#__PURE__*/React.createElement(Button, {
|
|
14718
14725
|
onClick: onClick,
|
|
14719
14726
|
disabled: disabled
|
|
14720
14727
|
}, "\u6279\u91CF\u8D4B\u7801");
|
|
@@ -14780,19 +14787,19 @@ var useDelRowButton = (function () {
|
|
|
14780
14787
|
}())();
|
|
14781
14788
|
}, [controller]);
|
|
14782
14789
|
var menuItem = React.useMemo(function () {
|
|
14783
|
-
if (model === 'prefab') return React.createElement(React.Fragment, null);
|
|
14784
|
-
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
14785
|
-
return React.createElement(Menu.Item, {
|
|
14790
|
+
if (model === 'prefab') return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
14791
|
+
if (model === 'readOnly') return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
14792
|
+
return /*#__PURE__*/React.createElement(Menu.Item, {
|
|
14786
14793
|
key: "1",
|
|
14787
14794
|
onClick: onClick,
|
|
14788
14795
|
disabled: disabled
|
|
14789
14796
|
}, " \u5220\u9664\u884C ");
|
|
14790
14797
|
}, [model, onClick, disabled]);
|
|
14791
14798
|
var button = React.useMemo(function () {
|
|
14792
|
-
if (isRemRow === false) return React.createElement(React.Fragment, null);
|
|
14793
|
-
if (model === 'prefab') return React.createElement(React.Fragment, null);
|
|
14794
|
-
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
14795
|
-
return React.createElement(Button, {
|
|
14799
|
+
if (isRemRow === false) return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
14800
|
+
if (model === 'prefab') return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
14801
|
+
if (model === 'readOnly') return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
14802
|
+
return /*#__PURE__*/React.createElement(Button, {
|
|
14796
14803
|
onClick: onClick,
|
|
14797
14804
|
disabled: disabled
|
|
14798
14805
|
}, "\u6279\u91CF\u5220\u9664");
|
|
@@ -14987,14 +14994,14 @@ var useAddDiscountRowButton = (function () {
|
|
|
14987
14994
|
}, _callee3);
|
|
14988
14995
|
})), [controller]);
|
|
14989
14996
|
var menuItem = React.useMemo(function () {
|
|
14990
|
-
return model === 'prefab' ? React.createElement(React.Fragment, null) : isAddDiscount !== false ? React.createElement(Menu.Item, {
|
|
14997
|
+
return model === 'prefab' ? /*#__PURE__*/React.createElement(React.Fragment, null) : isAddDiscount !== false ? /*#__PURE__*/React.createElement(Menu.Item, {
|
|
14991
14998
|
key: "0",
|
|
14992
14999
|
onClick: onClick,
|
|
14993
15000
|
disabled: disabled
|
|
14994
15001
|
}, "\u6DFB\u52A0\u6298\u6263\u884C") : undefined;
|
|
14995
15002
|
}, [isAddDiscount, disabled, onClick]);
|
|
14996
15003
|
var drawer = React.useMemo(function () {
|
|
14997
|
-
return React.createElement(Drawer, {
|
|
15004
|
+
return /*#__PURE__*/React.createElement(Drawer, {
|
|
14998
15005
|
className: "kts-invoice-operate-goods-list-add-discount-row",
|
|
14999
15006
|
width: 540,
|
|
15000
15007
|
title: "\u6DFB\u52A0\u6298\u6263\u884C",
|
|
@@ -15002,7 +15009,7 @@ var useAddDiscountRowButton = (function () {
|
|
|
15002
15009
|
destroyOnClose: true,
|
|
15003
15010
|
onClose: onClose,
|
|
15004
15011
|
visible: visible
|
|
15005
|
-
}, React.createElement(DrawerBody, null));
|
|
15012
|
+
}, /*#__PURE__*/React.createElement(DrawerBody, null));
|
|
15006
15013
|
}, [visible, onClose]);
|
|
15007
15014
|
return {
|
|
15008
15015
|
menuItem: menuItem,
|
|
@@ -15119,13 +15126,13 @@ var DrawerBody = decorator(Form.create())(function (props) {
|
|
|
15119
15126
|
});
|
|
15120
15127
|
});
|
|
15121
15128
|
}, 300), [form, lineAmountSum]);
|
|
15122
|
-
return React.createElement(React.Fragment, null, React.createElement("div", {
|
|
15129
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
15123
15130
|
className: "add-discount-row-body"
|
|
15124
|
-
}, React.createElement("p", null, "\u5F53\u524D\u9009\u62E9", React.createElement(Text$3, {
|
|
15131
|
+
}, /*#__PURE__*/React.createElement("p", null, "\u5F53\u524D\u9009\u62E9", /*#__PURE__*/React.createElement(Text$3, {
|
|
15125
15132
|
type: "danger"
|
|
15126
|
-
}, discountGoodIndex.length), "\u884C\u88AB\u6298\u6263\u5546\u54C1\u884C\uFF0C\u91D1\u989D\u5408\u8BA1\xA5", React.createElement(Text$3, {
|
|
15133
|
+
}, discountGoodIndex.length), "\u884C\u88AB\u6298\u6263\u5546\u54C1\u884C\uFF0C\u91D1\u989D\u5408\u8BA1\xA5", /*#__PURE__*/React.createElement(Text$3, {
|
|
15127
15134
|
type: "danger"
|
|
15128
|
-
}, lineAmountSum.toFixed(2))), React.createElement(Form.Item, {
|
|
15135
|
+
}, lineAmountSum.toFixed(2))), /*#__PURE__*/React.createElement(Form.Item, {
|
|
15129
15136
|
label: "\u6298\u6263\u7387\uFF1A"
|
|
15130
15137
|
}, getFieldDecorator('discount', {
|
|
15131
15138
|
rules: [{
|
|
@@ -15155,11 +15162,11 @@ var DrawerBody = decorator(Form.create())(function (props) {
|
|
|
15155
15162
|
callback();
|
|
15156
15163
|
}
|
|
15157
15164
|
}]
|
|
15158
|
-
})(React.createElement(Input, {
|
|
15165
|
+
})( /*#__PURE__*/React.createElement(Input, {
|
|
15159
15166
|
placeholder: "\u8BF7\u8F93\u5165\u5927\u4E8E0\u5C0F\u4E8E100\u7684\u6570\u5B57",
|
|
15160
15167
|
suffix: "%",
|
|
15161
15168
|
onChange: onChangeDiscount
|
|
15162
|
-
}))), React.createElement(Form.Item, {
|
|
15169
|
+
}))), /*#__PURE__*/React.createElement(Form.Item, {
|
|
15163
15170
|
label: "\u6298\u6263\u91D1\u989D\uFF1A"
|
|
15164
15171
|
}, getFieldDecorator('discolineAmountunt', {
|
|
15165
15172
|
rules: [{
|
|
@@ -15189,19 +15196,19 @@ var DrawerBody = decorator(Form.create())(function (props) {
|
|
|
15189
15196
|
callback();
|
|
15190
15197
|
}
|
|
15191
15198
|
}]
|
|
15192
|
-
})(React.createElement(Input, {
|
|
15199
|
+
})( /*#__PURE__*/React.createElement(Input, {
|
|
15193
15200
|
placeholder: "\u8BF7\u8F93\u5165\u5927\u4E8E0\u5C0F\u4E8E\u91D1\u989D\u5408\u8BA1\u7684\u6570\u5B57",
|
|
15194
15201
|
suffix: "\xA5",
|
|
15195
15202
|
onChange: onChangeDiscolineAmountunt
|
|
15196
|
-
})))), React.createElement("div", {
|
|
15203
|
+
})))), /*#__PURE__*/React.createElement("div", {
|
|
15197
15204
|
className: "add-discount-row-footer"
|
|
15198
|
-
}, React.createElement(Button, {
|
|
15205
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
15199
15206
|
block: true,
|
|
15200
15207
|
style: {
|
|
15201
15208
|
marginBottom: 12
|
|
15202
15209
|
},
|
|
15203
15210
|
onClick: onClose
|
|
15204
|
-
}, "\u53D6\u6D88"), React.createElement(Button, {
|
|
15211
|
+
}, "\u53D6\u6D88"), /*#__PURE__*/React.createElement(Button, {
|
|
15205
15212
|
type: "primary",
|
|
15206
15213
|
block: true,
|
|
15207
15214
|
onClick: onClickSave
|
|
@@ -15298,13 +15305,13 @@ function useMergeDetails() {
|
|
|
15298
15305
|
}];
|
|
15299
15306
|
}, [selectedGoodIndex, onClickManual, onClickAuto]);
|
|
15300
15307
|
var button = React.useMemo(function () {
|
|
15301
|
-
if (!isMergeDetails) return React.createElement(React.Fragment, null);
|
|
15302
|
-
return React.createElement(Dropdown$1, {
|
|
15308
|
+
if (!isMergeDetails) return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
15309
|
+
return /*#__PURE__*/React.createElement(Dropdown$1, {
|
|
15303
15310
|
menu: {
|
|
15304
15311
|
items: items
|
|
15305
15312
|
},
|
|
15306
15313
|
trigger: ['click']
|
|
15307
|
-
}, React.createElement(Button, null, "\u5408\u5E76\u660E\u7EC6"));
|
|
15314
|
+
}, /*#__PURE__*/React.createElement(Button, null, "\u5408\u5E76\u660E\u7EC6"));
|
|
15308
15315
|
}, [selectedGoodIndex.length, isMergeDetails]);
|
|
15309
15316
|
return {
|
|
15310
15317
|
/** 按钮 */
|
|
@@ -15390,8 +15397,8 @@ function useMergeDiscount() {
|
|
|
15390
15397
|
}, _callee);
|
|
15391
15398
|
})), [controller]);
|
|
15392
15399
|
var button = React.useMemo(function () {
|
|
15393
|
-
if (!isMergeDiscount) return React.createElement(React.Fragment, null);
|
|
15394
|
-
return React.createElement(Button, {
|
|
15400
|
+
if (!isMergeDiscount) return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
15401
|
+
return /*#__PURE__*/React.createElement(Button, {
|
|
15395
15402
|
onClick: onClick,
|
|
15396
15403
|
disabled: goodsList.length <= 1
|
|
15397
15404
|
}, "\u5408\u5E76\u6298\u6263");
|
|
@@ -15569,8 +15576,8 @@ function useSalesDiscount() {
|
|
|
15569
15576
|
}).length <= 0;
|
|
15570
15577
|
}, [goodsList]);
|
|
15571
15578
|
var button = React.useMemo(function () {
|
|
15572
|
-
if (!isSalesDiscount) return React.createElement(React.Fragment, null);
|
|
15573
|
-
return React.createElement(Button, {
|
|
15579
|
+
if (!isSalesDiscount) return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
15580
|
+
return /*#__PURE__*/React.createElement(Button, {
|
|
15574
15581
|
onClick: onClick,
|
|
15575
15582
|
disabled: disabled
|
|
15576
15583
|
}, "\u9500\u552E\u6298\u8BA9");
|
|
@@ -15606,52 +15613,68 @@ function useSalesGifts() {
|
|
|
15606
15613
|
while (1) {
|
|
15607
15614
|
switch (_context.prev = _context.next) {
|
|
15608
15615
|
case 0:
|
|
15616
|
+
_context.next = 2;
|
|
15617
|
+
return controller.saveEditGood();
|
|
15618
|
+
|
|
15619
|
+
case 2:
|
|
15620
|
+
_context.next = 4;
|
|
15621
|
+
return controller.wait();
|
|
15622
|
+
|
|
15623
|
+
case 4:
|
|
15624
|
+
if (!controller.state.goodsListState.editGood) {
|
|
15625
|
+
_context.next = 6;
|
|
15626
|
+
break;
|
|
15627
|
+
}
|
|
15628
|
+
|
|
15629
|
+
return _context.abrupt("return");
|
|
15630
|
+
|
|
15631
|
+
case 6:
|
|
15609
15632
|
_iterator = _createForOfIteratorHelper(giveaways);
|
|
15610
|
-
_context.prev =
|
|
15633
|
+
_context.prev = 7;
|
|
15611
15634
|
|
|
15612
15635
|
_iterator.s();
|
|
15613
15636
|
|
|
15614
|
-
case
|
|
15637
|
+
case 9:
|
|
15615
15638
|
if ((_step = _iterator.n()).done) {
|
|
15616
|
-
_context.next =
|
|
15639
|
+
_context.next = 16;
|
|
15617
15640
|
break;
|
|
15618
15641
|
}
|
|
15619
15642
|
|
|
15620
15643
|
g = _step.value;
|
|
15621
15644
|
g.lineAttribute = LineAttributeType$1.正常;
|
|
15622
|
-
_context.next =
|
|
15645
|
+
_context.next = 14;
|
|
15623
15646
|
return controller.addGoodDiscountV2([{
|
|
15624
15647
|
$index: g.$index,
|
|
15625
15648
|
discolineAmountunt: g.lineAmountIncludeTax || 0
|
|
15626
15649
|
}]);
|
|
15627
15650
|
|
|
15628
|
-
case
|
|
15629
|
-
_context.next =
|
|
15651
|
+
case 14:
|
|
15652
|
+
_context.next = 9;
|
|
15630
15653
|
break;
|
|
15631
15654
|
|
|
15632
|
-
case
|
|
15633
|
-
_context.next =
|
|
15655
|
+
case 16:
|
|
15656
|
+
_context.next = 21;
|
|
15634
15657
|
break;
|
|
15635
15658
|
|
|
15636
|
-
case
|
|
15637
|
-
_context.prev =
|
|
15638
|
-
_context.t0 = _context["catch"](
|
|
15659
|
+
case 18:
|
|
15660
|
+
_context.prev = 18;
|
|
15661
|
+
_context.t0 = _context["catch"](7);
|
|
15639
15662
|
|
|
15640
15663
|
_iterator.e(_context.t0);
|
|
15641
15664
|
|
|
15642
|
-
case
|
|
15643
|
-
_context.prev =
|
|
15665
|
+
case 21:
|
|
15666
|
+
_context.prev = 21;
|
|
15644
15667
|
|
|
15645
15668
|
_iterator.f();
|
|
15646
15669
|
|
|
15647
|
-
return _context.finish(
|
|
15670
|
+
return _context.finish(21);
|
|
15648
15671
|
|
|
15649
|
-
case
|
|
15672
|
+
case 24:
|
|
15650
15673
|
case "end":
|
|
15651
15674
|
return _context.stop();
|
|
15652
15675
|
}
|
|
15653
15676
|
}
|
|
15654
|
-
}, _callee, null, [[
|
|
15677
|
+
}, _callee, null, [[7, 18, 21, 24]]);
|
|
15655
15678
|
})), [controller, giveaways]);
|
|
15656
15679
|
var onClickManual = React.useCallback( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
15657
15680
|
var _controller$state$goo, goodsMap, _selectedGoodIndex, _giveaways, _iterator2, _step2, g;
|
|
@@ -15661,70 +15684,86 @@ function useSalesGifts() {
|
|
|
15661
15684
|
switch (_context2.prev = _context2.next) {
|
|
15662
15685
|
case 0:
|
|
15663
15686
|
_context2.prev = 0;
|
|
15687
|
+
_context2.next = 3;
|
|
15688
|
+
return controller.saveEditGood();
|
|
15689
|
+
|
|
15690
|
+
case 3:
|
|
15691
|
+
_context2.next = 5;
|
|
15692
|
+
return controller.wait();
|
|
15693
|
+
|
|
15694
|
+
case 5:
|
|
15695
|
+
if (!controller.state.goodsListState.editGood) {
|
|
15696
|
+
_context2.next = 7;
|
|
15697
|
+
break;
|
|
15698
|
+
}
|
|
15699
|
+
|
|
15700
|
+
return _context2.abrupt("return");
|
|
15701
|
+
|
|
15702
|
+
case 7:
|
|
15664
15703
|
_controller$state$goo = controller.state.goodsListState, goodsMap = _controller$state$goo.goodsMap, _selectedGoodIndex = _controller$state$goo.selectedGoodIndex;
|
|
15665
15704
|
_giveaways = _selectedGoodIndex.map(function (e) {
|
|
15666
15705
|
return goodsMap.get(e);
|
|
15667
15706
|
}).filter(function (e) {
|
|
15668
15707
|
return !!e;
|
|
15669
15708
|
});
|
|
15670
|
-
_context2.next =
|
|
15709
|
+
_context2.next = 11;
|
|
15671
15710
|
return checkLineAttribute(_giveaways);
|
|
15672
15711
|
|
|
15673
|
-
case
|
|
15712
|
+
case 11:
|
|
15674
15713
|
_iterator2 = _createForOfIteratorHelper(_giveaways);
|
|
15675
|
-
_context2.prev =
|
|
15714
|
+
_context2.prev = 12;
|
|
15676
15715
|
|
|
15677
15716
|
_iterator2.s();
|
|
15678
15717
|
|
|
15679
|
-
case
|
|
15718
|
+
case 14:
|
|
15680
15719
|
if ((_step2 = _iterator2.n()).done) {
|
|
15681
|
-
_context2.next =
|
|
15720
|
+
_context2.next = 20;
|
|
15682
15721
|
break;
|
|
15683
15722
|
}
|
|
15684
15723
|
|
|
15685
15724
|
g = _step2.value;
|
|
15686
|
-
_context2.next =
|
|
15725
|
+
_context2.next = 18;
|
|
15687
15726
|
return controller.addGoodDiscountV2([{
|
|
15688
15727
|
$index: g.$index,
|
|
15689
15728
|
discolineAmountunt: g.lineAmountIncludeTax || 0
|
|
15690
15729
|
}]);
|
|
15691
15730
|
|
|
15692
|
-
case
|
|
15693
|
-
_context2.next =
|
|
15731
|
+
case 18:
|
|
15732
|
+
_context2.next = 14;
|
|
15694
15733
|
break;
|
|
15695
15734
|
|
|
15696
|
-
case
|
|
15697
|
-
_context2.next =
|
|
15735
|
+
case 20:
|
|
15736
|
+
_context2.next = 25;
|
|
15698
15737
|
break;
|
|
15699
15738
|
|
|
15700
|
-
case
|
|
15701
|
-
_context2.prev =
|
|
15702
|
-
_context2.t0 = _context2["catch"](
|
|
15739
|
+
case 22:
|
|
15740
|
+
_context2.prev = 22;
|
|
15741
|
+
_context2.t0 = _context2["catch"](12);
|
|
15703
15742
|
|
|
15704
15743
|
_iterator2.e(_context2.t0);
|
|
15705
15744
|
|
|
15706
|
-
case
|
|
15707
|
-
_context2.prev =
|
|
15745
|
+
case 25:
|
|
15746
|
+
_context2.prev = 25;
|
|
15708
15747
|
|
|
15709
15748
|
_iterator2.f();
|
|
15710
15749
|
|
|
15711
|
-
return _context2.finish(
|
|
15750
|
+
return _context2.finish(25);
|
|
15712
15751
|
|
|
15713
|
-
case
|
|
15752
|
+
case 28:
|
|
15714
15753
|
controller.state.goodsListState.selectedGoodIndex = [];
|
|
15715
|
-
_context2.next =
|
|
15754
|
+
_context2.next = 33;
|
|
15716
15755
|
break;
|
|
15717
15756
|
|
|
15718
|
-
case
|
|
15719
|
-
_context2.prev =
|
|
15757
|
+
case 31:
|
|
15758
|
+
_context2.prev = 31;
|
|
15720
15759
|
_context2.t1 = _context2["catch"](0);
|
|
15721
15760
|
|
|
15722
|
-
case
|
|
15761
|
+
case 33:
|
|
15723
15762
|
case "end":
|
|
15724
15763
|
return _context2.stop();
|
|
15725
15764
|
}
|
|
15726
15765
|
}
|
|
15727
|
-
}, _callee2, null, [[0,
|
|
15766
|
+
}, _callee2, null, [[0, 31], [12, 22, 25, 28]]);
|
|
15728
15767
|
})), [controller]);
|
|
15729
15768
|
var items = React.useMemo(function () {
|
|
15730
15769
|
return [{
|
|
@@ -15741,12 +15780,12 @@ function useSalesGifts() {
|
|
|
15741
15780
|
}, [selectedGoodIndex, onClickManual, onClickAuto]);
|
|
15742
15781
|
var button = React.useMemo(function () {
|
|
15743
15782
|
if (!isSalesGifts) return;
|
|
15744
|
-
return React.createElement(Dropdown$1, {
|
|
15783
|
+
return /*#__PURE__*/React.createElement(Dropdown$1, {
|
|
15745
15784
|
menu: {
|
|
15746
15785
|
items: items
|
|
15747
15786
|
},
|
|
15748
15787
|
trigger: ['click']
|
|
15749
|
-
}, React.createElement(Button, null, "\u9500\u552E\u8D60\u54C1"));
|
|
15788
|
+
}, /*#__PURE__*/React.createElement(Button, null, "\u9500\u552E\u8D60\u54C1"));
|
|
15750
15789
|
}, [items, isSalesGifts]);
|
|
15751
15790
|
return {
|
|
15752
15791
|
/** 按钮 */
|
|
@@ -15784,7 +15823,7 @@ var GoodsList = /*#__PURE__*/function (_React$Component) {
|
|
|
15784
15823
|
_createClass(GoodsList, [{
|
|
15785
15824
|
key: "render",
|
|
15786
15825
|
value: function render() {
|
|
15787
|
-
return React.createElement(Main, _objectSpread2({}, this.props));
|
|
15826
|
+
return /*#__PURE__*/React.createElement(Main, _objectSpread2({}, this.props));
|
|
15788
15827
|
}
|
|
15789
15828
|
}]);
|
|
15790
15829
|
|
|
@@ -15986,22 +16025,22 @@ var Main = decorator(Form.create())(function (props) {
|
|
|
15986
16025
|
};
|
|
15987
16026
|
}())();
|
|
15988
16027
|
}, [controller, props.isSwitchTax]);
|
|
15989
|
-
return React.createElement("div", {
|
|
16028
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
15990
16029
|
className: "kts-invoice-operate-goods-list",
|
|
15991
16030
|
onClick: function onClick(e) {
|
|
15992
16031
|
e.stopPropagation();
|
|
15993
16032
|
}
|
|
15994
|
-
}, React.createElement("div", {
|
|
16033
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
15995
16034
|
className: "kts-invoice-operate-goods-list-able"
|
|
15996
|
-
}, React.createElement("div", {
|
|
16035
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
15997
16036
|
className: "kts-invoice-operate-goods-list-able-list"
|
|
15998
|
-
}, 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", {
|
|
16037
|
+
}, /*#__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", {
|
|
15999
16038
|
className: "kts-invoice-operate-goods-list-able-extend"
|
|
16000
|
-
}, props.menuExpansion, React.createElement(DescribeSwitch, null), React.createElement(TaxIncludedSwitch, null))), React.createElement("div", {
|
|
16039
|
+
}, props.menuExpansion, /*#__PURE__*/React.createElement(DescribeSwitch, null), /*#__PURE__*/React.createElement(TaxIncludedSwitch, null))), /*#__PURE__*/React.createElement("div", {
|
|
16001
16040
|
className: classNames('kts-invoice-operate-goods-list-table', {
|
|
16002
16041
|
'kts-invoice-operate-prefab': isprefab
|
|
16003
16042
|
})
|
|
16004
|
-
}, React.createElement(TableVirtual, {
|
|
16043
|
+
}, /*#__PURE__*/React.createElement(TableVirtual, {
|
|
16005
16044
|
bordered: true,
|
|
16006
16045
|
size: "small",
|
|
16007
16046
|
rowKey: "$index",
|
|
@@ -16024,7 +16063,7 @@ var Main = decorator(Form.create())(function (props) {
|
|
|
16024
16063
|
}
|
|
16025
16064
|
};
|
|
16026
16065
|
}
|
|
16027
|
-
})), React.createElement("div", null, React.createElement(Statistics, null)));
|
|
16066
|
+
})), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Statistics, null)));
|
|
16028
16067
|
});
|
|
16029
16068
|
|
|
16030
16069
|
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";
|
|
@@ -16049,7 +16088,7 @@ var Buyer = /*#__PURE__*/function (_React$Component) {
|
|
|
16049
16088
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
16050
16089
|
|
|
16051
16090
|
_this.render = function () {
|
|
16052
|
-
return React.createElement(Main$1, _objectSpread2({}, _this.props));
|
|
16091
|
+
return /*#__PURE__*/React.createElement(Main$1, _objectSpread2({}, _this.props));
|
|
16053
16092
|
};
|
|
16054
16093
|
|
|
16055
16094
|
return _this;
|
|
@@ -16080,7 +16119,7 @@ var Main$1 = decorator(Form.create())(function (props) {
|
|
|
16080
16119
|
return [{
|
|
16081
16120
|
id: 'sellerName',
|
|
16082
16121
|
label: '销售方名称',
|
|
16083
|
-
node: React.createElement(Input, {
|
|
16122
|
+
node: /*#__PURE__*/React.createElement(Input, {
|
|
16084
16123
|
readOnly: model === 'prefab',
|
|
16085
16124
|
size: "small"
|
|
16086
16125
|
}),
|
|
@@ -16093,7 +16132,7 @@ var Main$1 = decorator(Form.create())(function (props) {
|
|
|
16093
16132
|
}, {
|
|
16094
16133
|
id: 'sellerNo',
|
|
16095
16134
|
label: '销售方纳税人识别号',
|
|
16096
|
-
node: React.createElement(Input, {
|
|
16135
|
+
node: /*#__PURE__*/React.createElement(Input, {
|
|
16097
16136
|
readOnly: model === 'prefab',
|
|
16098
16137
|
size: "small"
|
|
16099
16138
|
}),
|
|
@@ -16106,7 +16145,7 @@ var Main$1 = decorator(Form.create())(function (props) {
|
|
|
16106
16145
|
}, {
|
|
16107
16146
|
id: 'sellerAddress',
|
|
16108
16147
|
label: '销售方地址及电话',
|
|
16109
|
-
node: React.createElement(Input, {
|
|
16148
|
+
node: /*#__PURE__*/React.createElement(Input, {
|
|
16110
16149
|
readOnly: model === 'prefab',
|
|
16111
16150
|
size: "small"
|
|
16112
16151
|
}),
|
|
@@ -16119,7 +16158,7 @@ var Main$1 = decorator(Form.create())(function (props) {
|
|
|
16119
16158
|
}, {
|
|
16120
16159
|
id: 'sellerBank',
|
|
16121
16160
|
label: '销售方开户行及账号',
|
|
16122
|
-
node: React.createElement(Input, {
|
|
16161
|
+
node: /*#__PURE__*/React.createElement(Input, {
|
|
16123
16162
|
readOnly: model === 'prefab',
|
|
16124
16163
|
size: "small"
|
|
16125
16164
|
}),
|
|
@@ -16145,31 +16184,31 @@ var Main$1 = decorator(Form.create())(function (props) {
|
|
|
16145
16184
|
return getFieldDecorator(e.id, e.options)(e.node);
|
|
16146
16185
|
}
|
|
16147
16186
|
}, [props.formRender]);
|
|
16148
|
-
return React.createElement(Form, null, React.createElement("div", {
|
|
16187
|
+
return /*#__PURE__*/React.createElement(Form, null, /*#__PURE__*/React.createElement("div", {
|
|
16149
16188
|
className: "kts-invoice-operate-seller"
|
|
16150
|
-
}, React.createElement("div", {
|
|
16189
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
16151
16190
|
className: "kts-invoice-operate-seller-message"
|
|
16152
|
-
}, React.createElement("div", {
|
|
16191
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
16153
16192
|
className: "kts-invoice-operate-seller-title"
|
|
16154
|
-
}, React.createElement("label", null, "\u9500\u552E\u65B9")), React.createElement(Descriptions, {
|
|
16193
|
+
}, /*#__PURE__*/React.createElement("label", null, "\u9500\u552E\u65B9")), /*#__PURE__*/React.createElement(Descriptions, {
|
|
16155
16194
|
className: "kts-invoice-operate-seller-message-list",
|
|
16156
16195
|
size: "small",
|
|
16157
16196
|
column: 1,
|
|
16158
16197
|
bordered: true
|
|
16159
16198
|
}, formItem.map(function (e, i) {
|
|
16160
|
-
return React.createElement(Descriptions.Item, {
|
|
16199
|
+
return /*#__PURE__*/React.createElement(Descriptions.Item, {
|
|
16161
16200
|
key: i,
|
|
16162
16201
|
label: e.label
|
|
16163
|
-
}, React.createElement(Form.Item, null, createFormItem(e)));
|
|
16164
|
-
}))), React.createElement("div", {
|
|
16202
|
+
}, /*#__PURE__*/React.createElement(Form.Item, null, createFormItem(e)));
|
|
16203
|
+
}))), /*#__PURE__*/React.createElement("div", {
|
|
16165
16204
|
className: "kts-invoice-operate-seller-remarks"
|
|
16166
|
-
}, React.createElement("div", {
|
|
16205
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
16167
16206
|
className: "kts-invoice-operate-seller-title"
|
|
16168
|
-
}, React.createElement("label", null, "\u5907\u6CE8")), React.createElement("div", {
|
|
16207
|
+
}, /*#__PURE__*/React.createElement("label", null, "\u5907\u6CE8")), /*#__PURE__*/React.createElement("div", {
|
|
16169
16208
|
className: "kts-invoice-operate-seller-remarks-value"
|
|
16170
16209
|
}, getFieldDecorator('remarks', {
|
|
16171
16210
|
initialValue: props.defaultsellerRemarks
|
|
16172
|
-
})(React.createElement(TextArea, null))))));
|
|
16211
|
+
})( /*#__PURE__*/React.createElement(TextArea, null))))));
|
|
16173
16212
|
});
|
|
16174
16213
|
|
|
16175
16214
|
var ImportBuyerButton = (function () {
|
|
@@ -16196,7 +16235,7 @@ var ImportBuyerButton = (function () {
|
|
|
16196
16235
|
};
|
|
16197
16236
|
}())();
|
|
16198
16237
|
}, [controller]);
|
|
16199
|
-
return React.createElement(React.Fragment, null, controller.getBuyerList && React.createElement(Button, {
|
|
16238
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, controller.getBuyerList && /*#__PURE__*/React.createElement(Button, {
|
|
16200
16239
|
type: "link",
|
|
16201
16240
|
icon: "plus-circle",
|
|
16202
16241
|
onClick: onClick
|
|
@@ -16235,29 +16274,29 @@ var BuyerNameInput = (function (props) {
|
|
|
16235
16274
|
var content = React.useMemo(function () {
|
|
16236
16275
|
var _dataSource$recent;
|
|
16237
16276
|
|
|
16238
|
-
return React.createElement("div", {
|
|
16277
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
16239
16278
|
className: 'kts-invoice-operate-buyer-name-content'
|
|
16240
|
-
}, loading ? React.createElement("div", {
|
|
16279
|
+
}, loading ? /*#__PURE__*/React.createElement("div", {
|
|
16241
16280
|
style: {
|
|
16242
16281
|
textAlign: 'center'
|
|
16243
16282
|
}
|
|
16244
|
-
}, React.createElement(Spin, null)) : React.createElement(React.Fragment, null, React.createElement("div", {
|
|
16283
|
+
}, /*#__PURE__*/React.createElement(Spin, null)) : /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
16245
16284
|
className: 'kts-invoice-operate-buyer-name-content-block',
|
|
16246
16285
|
style: {
|
|
16247
16286
|
padding: '14px 10px'
|
|
16248
16287
|
}
|
|
16249
|
-
}, React.createElement("label", {
|
|
16288
|
+
}, /*#__PURE__*/React.createElement("label", {
|
|
16250
16289
|
style: {
|
|
16251
16290
|
marginBottom: 10
|
|
16252
16291
|
}
|
|
16253
|
-
}, "\u6700\u8FD1\u5F00\u5177"), React.createElement("ul", {
|
|
16292
|
+
}, "\u6700\u8FD1\u5F00\u5177"), /*#__PURE__*/React.createElement("ul", {
|
|
16254
16293
|
className: 'kts-invoice-operate-buyer-name-content-recently-issued'
|
|
16255
|
-
}, !dataSource.recent || dataSource.recent.length <= 0 ? React.createElement(Empty, {
|
|
16294
|
+
}, !dataSource.recent || dataSource.recent.length <= 0 ? /*#__PURE__*/React.createElement(Empty, {
|
|
16256
16295
|
image: Empty.PRESENTED_IMAGE_SIMPLE
|
|
16257
16296
|
}) : (_dataSource$recent = dataSource.recent) === null || _dataSource$recent === void 0 ? void 0 : _dataSource$recent.map(function (e, i) {
|
|
16258
16297
|
var _dataSource$recent$le, _dataSource$recent2;
|
|
16259
16298
|
|
|
16260
|
-
return React.createElement("li", {
|
|
16299
|
+
return /*#__PURE__*/React.createElement("li", {
|
|
16261
16300
|
key: i,
|
|
16262
16301
|
onClick: function onClick() {
|
|
16263
16302
|
onClickItem(e);
|
|
@@ -16265,37 +16304,37 @@ var BuyerNameInput = (function (props) {
|
|
|
16265
16304
|
style: {
|
|
16266
16305
|
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)
|
|
16267
16306
|
}
|
|
16268
|
-
}, React.createElement(MyTag, null, e.buyerName));
|
|
16269
|
-
}))), React.createElement(Divider, {
|
|
16307
|
+
}, /*#__PURE__*/React.createElement(MyTag, null, e.buyerName));
|
|
16308
|
+
}))), /*#__PURE__*/React.createElement(Divider, {
|
|
16270
16309
|
style: {
|
|
16271
16310
|
margin: "0 6px"
|
|
16272
16311
|
}
|
|
16273
|
-
}), React.createElement("div", {
|
|
16312
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
16274
16313
|
className: 'kts-invoice-operate-buyer-name-content-block',
|
|
16275
16314
|
style: {
|
|
16276
16315
|
padding: '14px 10px 4px'
|
|
16277
16316
|
}
|
|
16278
|
-
}, React.createElement("label", {
|
|
16317
|
+
}, /*#__PURE__*/React.createElement("label", {
|
|
16279
16318
|
style: {
|
|
16280
16319
|
padding: '0 10px'
|
|
16281
16320
|
}
|
|
16282
|
-
}, "\u9009\u62E9\u516C\u53F8"), React.createElement("div", {
|
|
16321
|
+
}, "\u9009\u62E9\u516C\u53F8"), /*#__PURE__*/React.createElement("div", {
|
|
16283
16322
|
style: {
|
|
16284
16323
|
maxHeight: 200,
|
|
16285
16324
|
overflow: "auto"
|
|
16286
16325
|
}
|
|
16287
|
-
}, !dataSource.list || dataSource.list.length <= 0 ? React.createElement(Empty, {
|
|
16326
|
+
}, !dataSource.list || dataSource.list.length <= 0 ? /*#__PURE__*/React.createElement(Empty, {
|
|
16288
16327
|
image: Empty.PRESENTED_IMAGE_SIMPLE
|
|
16289
16328
|
}) : dataSource.list.map(function (e, i) {
|
|
16290
|
-
return React.createElement("ul", {
|
|
16329
|
+
return /*#__PURE__*/React.createElement("ul", {
|
|
16291
16330
|
key: i,
|
|
16292
16331
|
onClick: function onClick() {
|
|
16293
16332
|
onClickItem(e);
|
|
16294
16333
|
},
|
|
16295
16334
|
className: 'kts-invoice-operate-buyer-name-content-select-company'
|
|
16296
|
-
}, React.createElement("li", {
|
|
16335
|
+
}, /*#__PURE__*/React.createElement("li", {
|
|
16297
16336
|
title: e.buyerName
|
|
16298
|
-
}, e.buyerName), React.createElement("li", {
|
|
16337
|
+
}, e.buyerName), /*#__PURE__*/React.createElement("li", {
|
|
16299
16338
|
title: e.buyerNo
|
|
16300
16339
|
}, e.buyerNo));
|
|
16301
16340
|
})))));
|
|
@@ -16336,7 +16375,7 @@ var BuyerNameInput = (function (props) {
|
|
|
16336
16375
|
}, [visible, props.value]);
|
|
16337
16376
|
|
|
16338
16377
|
if (model === 'prefab' || !autoContainer) {
|
|
16339
|
-
return React.createElement(Input, {
|
|
16378
|
+
return /*#__PURE__*/React.createElement(Input, {
|
|
16340
16379
|
size: "small",
|
|
16341
16380
|
autoComplete: "off",
|
|
16342
16381
|
value: props.value,
|
|
@@ -16347,14 +16386,14 @@ var BuyerNameInput = (function (props) {
|
|
|
16347
16386
|
});
|
|
16348
16387
|
}
|
|
16349
16388
|
|
|
16350
|
-
return React.createElement(Popover$1, {
|
|
16389
|
+
return /*#__PURE__*/React.createElement(Popover$1, {
|
|
16351
16390
|
onVisibleChange: setVisible,
|
|
16352
16391
|
overlayClassName: 'kts-invoice-operate-buyer-name-popover',
|
|
16353
16392
|
placement: "bottomLeft",
|
|
16354
16393
|
trigger: "click",
|
|
16355
16394
|
visible: visible,
|
|
16356
16395
|
content: content
|
|
16357
|
-
}, React.createElement(Input, {
|
|
16396
|
+
}, /*#__PURE__*/React.createElement(Input, {
|
|
16358
16397
|
size: "small",
|
|
16359
16398
|
autoComplete: "off",
|
|
16360
16399
|
value: props.value,
|
|
@@ -16432,7 +16471,7 @@ function useDataSource() {
|
|
|
16432
16471
|
}
|
|
16433
16472
|
|
|
16434
16473
|
function MyTag(props) {
|
|
16435
|
-
return React.createElement("span", {
|
|
16474
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
16436
16475
|
className: 'kts-invoice-operate-buyer-name-content-tag',
|
|
16437
16476
|
title: props.children
|
|
16438
16477
|
}, props.children);
|
|
@@ -16468,7 +16507,7 @@ var Buyer$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
16468
16507
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
16469
16508
|
|
|
16470
16509
|
_this.render = function () {
|
|
16471
|
-
return React.createElement(Main$2, _objectSpread2({}, _this.props));
|
|
16510
|
+
return /*#__PURE__*/React.createElement(Main$2, _objectSpread2({}, _this.props));
|
|
16472
16511
|
};
|
|
16473
16512
|
|
|
16474
16513
|
return _this;
|
|
@@ -16499,7 +16538,7 @@ var Main$2 = decorator(Form.create())(function (props) {
|
|
|
16499
16538
|
return [{
|
|
16500
16539
|
id: 'buyerName',
|
|
16501
16540
|
label: '购买方名称',
|
|
16502
|
-
node: React.createElement(Input, {
|
|
16541
|
+
node: /*#__PURE__*/React.createElement(Input, {
|
|
16503
16542
|
size: "small",
|
|
16504
16543
|
autoComplete: "off",
|
|
16505
16544
|
readOnly: model === 'prefab'
|
|
@@ -16513,7 +16552,7 @@ var Main$2 = decorator(Form.create())(function (props) {
|
|
|
16513
16552
|
}, {
|
|
16514
16553
|
id: 'buyerNo',
|
|
16515
16554
|
label: '购买方纳税人识别号',
|
|
16516
|
-
node: React.createElement(Input, {
|
|
16555
|
+
node: /*#__PURE__*/React.createElement(Input, {
|
|
16517
16556
|
size: "small",
|
|
16518
16557
|
autoComplete: "off",
|
|
16519
16558
|
readOnly: model === 'prefab'
|
|
@@ -16527,7 +16566,7 @@ var Main$2 = decorator(Form.create())(function (props) {
|
|
|
16527
16566
|
}, {
|
|
16528
16567
|
id: 'buyerAddress',
|
|
16529
16568
|
label: '购买方地址及电话',
|
|
16530
|
-
node: React.createElement(Input, {
|
|
16569
|
+
node: /*#__PURE__*/React.createElement(Input, {
|
|
16531
16570
|
size: "small",
|
|
16532
16571
|
autoComplete: "off",
|
|
16533
16572
|
readOnly: model === 'prefab'
|
|
@@ -16541,7 +16580,7 @@ var Main$2 = decorator(Form.create())(function (props) {
|
|
|
16541
16580
|
}, {
|
|
16542
16581
|
id: 'buyerBank',
|
|
16543
16582
|
label: '购买方开户行及账号',
|
|
16544
|
-
node: React.createElement(Input, {
|
|
16583
|
+
node: /*#__PURE__*/React.createElement(Input, {
|
|
16545
16584
|
size: "small",
|
|
16546
16585
|
autoComplete: "off",
|
|
16547
16586
|
readOnly: model === 'prefab'
|
|
@@ -16563,7 +16602,7 @@ var Main$2 = decorator(Form.create())(function (props) {
|
|
|
16563
16602
|
if (e.options.rules.some(function (e) {
|
|
16564
16603
|
return e.required;
|
|
16565
16604
|
})) {
|
|
16566
|
-
return React.createElement(React.Fragment, null, React.createElement(Text$4, {
|
|
16605
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Text$4, {
|
|
16567
16606
|
type: "danger"
|
|
16568
16607
|
}, "*"), e.label);
|
|
16569
16608
|
} else {
|
|
@@ -16573,29 +16612,29 @@ var Main$2 = decorator(Form.create())(function (props) {
|
|
|
16573
16612
|
return e.label;
|
|
16574
16613
|
}
|
|
16575
16614
|
}, []);
|
|
16576
|
-
return React.createElement(Form, null, React.createElement("div", {
|
|
16615
|
+
return /*#__PURE__*/React.createElement(Form, null, /*#__PURE__*/React.createElement("div", {
|
|
16577
16616
|
className: "kts-invoice-operate-buyer"
|
|
16578
|
-
}, React.createElement("div", {
|
|
16617
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
16579
16618
|
className: "kts-invoice-operate-buyer-message"
|
|
16580
|
-
}, React.createElement("div", {
|
|
16619
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
16581
16620
|
className: "kts-invoice-operate-buyer-title"
|
|
16582
|
-
}, React.createElement("label", null, "\u8D2D\u4E70\u65B9")), React.createElement("div", {
|
|
16621
|
+
}, /*#__PURE__*/React.createElement("label", null, "\u8D2D\u4E70\u65B9")), /*#__PURE__*/React.createElement("div", {
|
|
16583
16622
|
className: "kts-invoice-operate-buyer-message-Import"
|
|
16584
|
-
}, model !== 'prefab' && React.createElement(ImportBuyerButton, null)), React.createElement(Descriptions, {
|
|
16623
|
+
}, model !== 'prefab' && /*#__PURE__*/React.createElement(ImportBuyerButton, null)), /*#__PURE__*/React.createElement(Descriptions, {
|
|
16585
16624
|
className: "kts-invoice-operate-buyer-message-list",
|
|
16586
16625
|
size: "small",
|
|
16587
16626
|
column: 1,
|
|
16588
16627
|
bordered: true
|
|
16589
16628
|
}, formItem.map(function (item, i) {
|
|
16590
|
-
return React.createElement(Descriptions.Item, {
|
|
16629
|
+
return /*#__PURE__*/React.createElement(Descriptions.Item, {
|
|
16591
16630
|
key: i,
|
|
16592
16631
|
label: getlabel(item)
|
|
16593
|
-
}, React.createElement(Form.Item, null, getFieldDecorator(item.id, item.options)(autoContainer ? item.id === 'buyerName' ? React.createElement(BuyerNameInput, null) : item.node : item.node)));
|
|
16594
|
-
}))), React.createElement("div", {
|
|
16632
|
+
}, /*#__PURE__*/React.createElement(Form.Item, null, getFieldDecorator(item.id, item.options)(autoContainer ? item.id === 'buyerName' ? /*#__PURE__*/React.createElement(BuyerNameInput, null) : item.node : item.node)));
|
|
16633
|
+
}))), /*#__PURE__*/React.createElement("div", {
|
|
16595
16634
|
className: "kts-invoice-operate-buyer-password"
|
|
16596
|
-
}, React.createElement("div", {
|
|
16635
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
16597
16636
|
className: "kts-invoice-operate-buyer-title"
|
|
16598
|
-
}, React.createElement("label", null, "\u5BC6\u7801\u533A")), React.createElement("div", null))));
|
|
16637
|
+
}, /*#__PURE__*/React.createElement("label", null, "\u5BC6\u7801\u533A")), /*#__PURE__*/React.createElement("div", null))));
|
|
16599
16638
|
});
|
|
16600
16639
|
|
|
16601
16640
|
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";
|
|
@@ -16612,21 +16651,21 @@ var Sign = decorator(Form.create())(function (props) {
|
|
|
16612
16651
|
}, []); // 注册 form
|
|
16613
16652
|
|
|
16614
16653
|
controller.useForm('sign', form);
|
|
16615
|
-
return React.createElement("div", {
|
|
16654
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
16616
16655
|
className: "kts-invoice-operate-sign"
|
|
16617
|
-
}, React.createElement(Form, _objectSpread2({}, formItemLayout), React.createElement("div", null, React.createElement(Form.Item, {
|
|
16656
|
+
}, /*#__PURE__*/React.createElement(Form, _objectSpread2({}, formItemLayout), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Form.Item, {
|
|
16618
16657
|
label: "\u6536\u6B3E\u4EBA"
|
|
16619
16658
|
}, getFieldDecorator('payee', {
|
|
16620
16659
|
initialValue: props.defaultPayee
|
|
16621
|
-
})(React.createElement(Input, {
|
|
16660
|
+
})( /*#__PURE__*/React.createElement(Input, {
|
|
16622
16661
|
size: "small"
|
|
16623
|
-
})))), React.createElement("div", null, React.createElement(Form.Item, {
|
|
16662
|
+
})))), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Form.Item, {
|
|
16624
16663
|
label: "\u590D\u6838\u4EBA"
|
|
16625
16664
|
}, getFieldDecorator('reviewer', {
|
|
16626
16665
|
initialValue: props.defaultReviewer
|
|
16627
|
-
})(React.createElement(Input, {
|
|
16666
|
+
})( /*#__PURE__*/React.createElement(Input, {
|
|
16628
16667
|
size: "small"
|
|
16629
|
-
})))), React.createElement("div", null, React.createElement(Form.Item, {
|
|
16668
|
+
})))), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Form.Item, {
|
|
16630
16669
|
label: "\u5F00\u7968\u4EBA"
|
|
16631
16670
|
}, getFieldDecorator('issuer', {
|
|
16632
16671
|
initialValue: props.defaultIssuer,
|
|
@@ -16634,7 +16673,7 @@ var Sign = decorator(Form.create())(function (props) {
|
|
|
16634
16673
|
required: true,
|
|
16635
16674
|
message: '请输入开票人'
|
|
16636
16675
|
}]
|
|
16637
|
-
})(React.createElement(Input, {
|
|
16676
|
+
})( /*#__PURE__*/React.createElement(Input, {
|
|
16638
16677
|
size: "small"
|
|
16639
16678
|
}))))));
|
|
16640
16679
|
});
|
|
@@ -16663,21 +16702,21 @@ var InvoiceHeaderDigtal = decorator(Form.create())(function (props) {
|
|
|
16663
16702
|
return '电子发票(增值税专用发票)';
|
|
16664
16703
|
}, [props.title]);
|
|
16665
16704
|
controller.useForm('invoiceHeader', form);
|
|
16666
|
-
return React.createElement("div", {
|
|
16705
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
16667
16706
|
className: "kts-invoice-operate-invoice-digtal-header"
|
|
16668
|
-
}, React.createElement("div", {
|
|
16707
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
16669
16708
|
className: "digtal-header-title"
|
|
16670
16709
|
}, title), form.getFieldDecorator('tag', {
|
|
16671
16710
|
initialValue: props.defaultTag
|
|
16672
|
-
})(React.createElement(Tag, null)), React.createElement("div", {
|
|
16711
|
+
})( /*#__PURE__*/React.createElement(Tag, null)), /*#__PURE__*/React.createElement("div", {
|
|
16673
16712
|
className: "digtal-header-fields"
|
|
16674
16713
|
}, form.getFieldDecorator('no', {
|
|
16675
16714
|
initialValue: props.defaultNo
|
|
16676
|
-
})(React.createElement(Field, {
|
|
16715
|
+
})( /*#__PURE__*/React.createElement(Field, {
|
|
16677
16716
|
title: "\u53D1\u7968\u53F7\u7801\uFF1A"
|
|
16678
16717
|
})), form.getFieldDecorator('invoicingDate', {
|
|
16679
16718
|
initialValue: props.defaultInvoicingDate
|
|
16680
|
-
})(React.createElement(Field, {
|
|
16719
|
+
})( /*#__PURE__*/React.createElement(Field, {
|
|
16681
16720
|
title: "\u5F00\u7968\u65E5\u671F\uFF1A"
|
|
16682
16721
|
}))));
|
|
16683
16722
|
});
|
|
@@ -16702,15 +16741,15 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
16702
16741
|
value = _this$props.value;
|
|
16703
16742
|
|
|
16704
16743
|
if (value) {
|
|
16705
|
-
return React.createElement("div", {
|
|
16744
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
16706
16745
|
className: "digtal-header-field"
|
|
16707
|
-
}, React.createElement("div", {
|
|
16746
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
16708
16747
|
className: "digtal-header-field-title"
|
|
16709
|
-
}, title), React.createElement("div", {
|
|
16748
|
+
}, title), /*#__PURE__*/React.createElement("div", {
|
|
16710
16749
|
className: "digtal-header-field-value"
|
|
16711
16750
|
}, value));
|
|
16712
16751
|
} else {
|
|
16713
|
-
return React.createElement(React.Fragment, null);
|
|
16752
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
16714
16753
|
}
|
|
16715
16754
|
}
|
|
16716
16755
|
}]);
|
|
@@ -16732,9 +16771,9 @@ var Tag = /*#__PURE__*/function (_React$Component2) {
|
|
|
16732
16771
|
_createClass(Tag, [{
|
|
16733
16772
|
key: "render",
|
|
16734
16773
|
value: function render() {
|
|
16735
|
-
return this.props.value ? React.createElement("div", {
|
|
16774
|
+
return this.props.value ? /*#__PURE__*/React.createElement("div", {
|
|
16736
16775
|
className: "digtal-header-tag"
|
|
16737
|
-
}, this.props.value) : React.createElement(React.Fragment, null);
|
|
16776
|
+
}, this.props.value) : /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
16738
16777
|
}
|
|
16739
16778
|
}]);
|
|
16740
16779
|
|
|
@@ -16910,59 +16949,59 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
16910
16949
|
return rulesMap[field] || defaultRules;
|
|
16911
16950
|
}, [rulesMap, isReadOnly, isReadOnly]);
|
|
16912
16951
|
controller.useForm('stakeholder', form);
|
|
16913
|
-
return React.createElement("div", {
|
|
16952
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
16914
16953
|
className: classNames("kts-invoice-operate-invoice-digtal-stakeholder", {
|
|
16915
16954
|
readOnly: readOnly
|
|
16916
16955
|
})
|
|
16917
|
-
}, React.createElement("div", null, '购买方信息'.split('').map(function (e) {
|
|
16918
|
-
return React.createElement("span", null, e);
|
|
16919
|
-
}), !readOnly && React.createElement(Icon, {
|
|
16956
|
+
}, /*#__PURE__*/React.createElement("div", null, '购买方信息'.split('').map(function (e) {
|
|
16957
|
+
return /*#__PURE__*/React.createElement("span", null, e);
|
|
16958
|
+
}), !readOnly && /*#__PURE__*/React.createElement(Icon, {
|
|
16920
16959
|
className: "digtal-stakeholder-expand-button",
|
|
16921
16960
|
component: isExpand ? SvgArrowUp : SvgArrowDown,
|
|
16922
16961
|
onClick: onExpand
|
|
16923
|
-
})), React.createElement("div", null, React.createElement("div", {
|
|
16962
|
+
})), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
|
|
16924
16963
|
style: {
|
|
16925
16964
|
marginTop: 20
|
|
16926
16965
|
},
|
|
16927
16966
|
className: 'natural-person-flag'
|
|
16928
|
-
}, props.isNaturalPerson === true && React.createElement(Form.Item, {
|
|
16967
|
+
}, props.isNaturalPerson === true && /*#__PURE__*/React.createElement(Form.Item, {
|
|
16929
16968
|
colon: false
|
|
16930
|
-
}, getFieldDecorator('naturalPersonFlag', {})(React.createElement(NaturalPersonFlag, {
|
|
16969
|
+
}, getFieldDecorator('naturalPersonFlag', {})( /*#__PURE__*/React.createElement(NaturalPersonFlag, {
|
|
16931
16970
|
readOnly: isReadOnly('naturalPersonFlag')
|
|
16932
|
-
})))), React.createElement(Form, {
|
|
16971
|
+
})))), /*#__PURE__*/React.createElement(Form, {
|
|
16933
16972
|
className: "digtal-stakeholder-form"
|
|
16934
|
-
}, React.createElement(Row, {
|
|
16973
|
+
}, /*#__PURE__*/React.createElement(Row, {
|
|
16935
16974
|
gutter: [16, 0]
|
|
16936
|
-
}, React.createElement(Col, {
|
|
16975
|
+
}, /*#__PURE__*/React.createElement(Col, {
|
|
16937
16976
|
span: 24
|
|
16938
|
-
}, React.createElement(Form.Item, {
|
|
16977
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
16939
16978
|
label: "\u540D\u79F0",
|
|
16940
16979
|
colon: false
|
|
16941
16980
|
}, getFieldDecorator('buyerName', {
|
|
16942
16981
|
rules: getRules('buyerName', RULES.companyName('购买方名称'))
|
|
16943
|
-
})(React.createElement(BuyerNameInput$1, {
|
|
16982
|
+
})( /*#__PURE__*/React.createElement(BuyerNameInput$1, {
|
|
16944
16983
|
myform: form,
|
|
16945
16984
|
fieldName: 'buyerName',
|
|
16946
16985
|
readOnly: isReadOnly('buyerName'),
|
|
16947
16986
|
placeholder: "\u8BF7\u8F93\u5165\u540D\u79F0",
|
|
16948
16987
|
autoComplete: "off",
|
|
16949
|
-
suffix: isShowImportButton === true && React.createElement(Button$1, {
|
|
16988
|
+
suffix: isShowImportButton === true && /*#__PURE__*/React.createElement(Button$1, {
|
|
16950
16989
|
type: 'link',
|
|
16951
16990
|
style: {
|
|
16952
16991
|
padding: 0,
|
|
16953
16992
|
width: 20,
|
|
16954
16993
|
height: '100%'
|
|
16955
16994
|
},
|
|
16956
|
-
icon: React.createElement(Icon, {
|
|
16995
|
+
icon: /*#__PURE__*/React.createElement(Icon, {
|
|
16957
16996
|
component: SvgPlus
|
|
16958
16997
|
}),
|
|
16959
16998
|
onClick: function onClick() {
|
|
16960
16999
|
onClickImportButton && onClickImportButton(controller);
|
|
16961
17000
|
}
|
|
16962
17001
|
})
|
|
16963
|
-
})))), React.createElement(Col, {
|
|
17002
|
+
})))), /*#__PURE__*/React.createElement(Col, {
|
|
16964
17003
|
span: 24
|
|
16965
|
-
}, React.createElement(Form.Item, {
|
|
17004
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
16966
17005
|
label: "\u7EDF\u4E00\u793E\u4F1A\u4FE1\u7528\u4EE3\u7801/\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7",
|
|
16967
17006
|
colon: false
|
|
16968
17007
|
}, getFieldDecorator('buyerTaxId', {
|
|
@@ -16970,15 +17009,15 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
16970
17009
|
required: !isVatNormal,
|
|
16971
17010
|
message: '购买方纳税人识别号必填'
|
|
16972
17011
|
}].concat(_toConsumableArray(RULES.taxId('购买方纳税人识别号'))))
|
|
16973
|
-
})(React.createElement(BuyerNameInput$1, {
|
|
17012
|
+
})( /*#__PURE__*/React.createElement(BuyerNameInput$1, {
|
|
16974
17013
|
myform: form,
|
|
16975
17014
|
fieldName: 'buyerTaxId',
|
|
16976
17015
|
readOnly: isReadOnly('buyerTaxId'),
|
|
16977
17016
|
placeholder: "\u8BF7\u8F93\u5165\u7EDF\u4E00\u793E\u4F1A\u4FE1\u7528\u4EE3\u7801/\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7",
|
|
16978
17017
|
autoComplete: "off"
|
|
16979
|
-
})))), isExpand && React.createElement(React.Fragment, null, React.createElement(Col, {
|
|
17018
|
+
})))), isExpand && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Col, {
|
|
16980
17019
|
span: 14
|
|
16981
|
-
}, React.createElement(Form.Item, {
|
|
17020
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
16982
17021
|
label: "\u8D2D\u4E70\u65B9\u5730\u5740",
|
|
16983
17022
|
colon: false
|
|
16984
17023
|
}, getFieldDecorator('buyerAddress', {
|
|
@@ -16986,81 +17025,81 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
16986
17025
|
max: 100,
|
|
16987
17026
|
message: '购买方地址内容超长'
|
|
16988
17027
|
}])
|
|
16989
|
-
})(React.createElement(MyInput$1, {
|
|
17028
|
+
})( /*#__PURE__*/React.createElement(MyInput$1, {
|
|
16990
17029
|
readOnly: isReadOnly('buyerAddress'),
|
|
16991
17030
|
placeholder: "\u8BF7\u8F93\u5165\u8D2D\u4E70\u65B9\u5730\u5740",
|
|
16992
17031
|
autoComplete: "off"
|
|
16993
|
-
})))), React.createElement(Col, {
|
|
17032
|
+
})))), /*#__PURE__*/React.createElement(Col, {
|
|
16994
17033
|
span: 10
|
|
16995
|
-
}, React.createElement(Form.Item, {
|
|
17034
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
16996
17035
|
label: "\u7535\u8BDD",
|
|
16997
17036
|
colon: false,
|
|
16998
17037
|
className: 'telephone'
|
|
16999
17038
|
}, getFieldDecorator('buyerPhone', {
|
|
17000
17039
|
rules: getRules('buyerPhone', RULES.buyerTelPhone('购买方电话'))
|
|
17001
|
-
})(React.createElement(MyInput$1, {
|
|
17040
|
+
})( /*#__PURE__*/React.createElement(MyInput$1, {
|
|
17002
17041
|
readOnly: isReadOnly('buyerPhone'),
|
|
17003
17042
|
placeholder: "\u8BF7\u8F93\u5165\u7535\u8BDD",
|
|
17004
17043
|
autoComplete: "off"
|
|
17005
|
-
})))), React.createElement(Col, {
|
|
17044
|
+
})))), /*#__PURE__*/React.createElement(Col, {
|
|
17006
17045
|
span: 14
|
|
17007
|
-
}, React.createElement(Form.Item, {
|
|
17046
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
17008
17047
|
label: "\u8D2D\u4E70\u65B9\u5F00\u6237\u94F6\u884C",
|
|
17009
17048
|
colon: false
|
|
17010
17049
|
}, getFieldDecorator('buyerBank', {
|
|
17011
17050
|
rules: getRules('buyerBank', RULES.bankName('购买方开户银行'))
|
|
17012
|
-
})(React.createElement(MyInput$1, {
|
|
17051
|
+
})( /*#__PURE__*/React.createElement(MyInput$1, {
|
|
17013
17052
|
readOnly: isReadOnly('buyerBank'),
|
|
17014
17053
|
placeholder: "\u8BF7\u8F93\u5165\u8D2D\u4E70\u65B9\u5F00\u6237\u94F6\u884C",
|
|
17015
17054
|
autoComplete: "off"
|
|
17016
|
-
})))), React.createElement(Col, {
|
|
17055
|
+
})))), /*#__PURE__*/React.createElement(Col, {
|
|
17017
17056
|
span: 10
|
|
17018
|
-
}, React.createElement(Form.Item, {
|
|
17057
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
17019
17058
|
label: "\u94F6\u884C\u8D26\u53F7",
|
|
17020
17059
|
colon: false
|
|
17021
17060
|
}, getFieldDecorator('buyerAccount', {
|
|
17022
17061
|
rules: getRules('buyerAccount', RULES.bankAccount('购买方银行账号'))
|
|
17023
|
-
})(React.createElement(MyInput$1, {
|
|
17062
|
+
})( /*#__PURE__*/React.createElement(MyInput$1, {
|
|
17024
17063
|
readOnly: isReadOnly('buyerAccount'),
|
|
17025
17064
|
placeholder: "\u8BF7\u8F93\u5165\u94F6\u884C\u8D26\u53F7",
|
|
17026
17065
|
autoComplete: "off"
|
|
17027
|
-
})))))))), React.createElement("div", null, '销售方信息'.split('').map(function (e) {
|
|
17028
|
-
return React.createElement("span", null, e);
|
|
17029
|
-
}), !readOnly && React.createElement(Icon, {
|
|
17066
|
+
})))))))), /*#__PURE__*/React.createElement("div", null, '销售方信息'.split('').map(function (e) {
|
|
17067
|
+
return /*#__PURE__*/React.createElement("span", null, e);
|
|
17068
|
+
}), !readOnly && /*#__PURE__*/React.createElement(Icon, {
|
|
17030
17069
|
className: "digtal-stakeholder-expand-button",
|
|
17031
17070
|
component: isExpand ? SvgArrowUp : SvgArrowDown,
|
|
17032
17071
|
onClick: onExpand
|
|
17033
|
-
})), React.createElement("div", null, !readOnly && props.lineCredit && React.createElement("div", {
|
|
17072
|
+
})), /*#__PURE__*/React.createElement("div", null, !readOnly && props.lineCredit && /*#__PURE__*/React.createElement("div", {
|
|
17034
17073
|
style: {
|
|
17035
17074
|
marginTop: 20
|
|
17036
17075
|
}
|
|
17037
|
-
}, React.createElement(Tooltip$1, {
|
|
17076
|
+
}, /*#__PURE__*/React.createElement(Tooltip$1, {
|
|
17038
17077
|
trigger: "click",
|
|
17039
17078
|
title: props.lineCredit
|
|
17040
|
-
}, React.createElement(Button$1, {
|
|
17079
|
+
}, /*#__PURE__*/React.createElement(Button$1, {
|
|
17041
17080
|
type: "link",
|
|
17042
17081
|
style: {
|
|
17043
17082
|
padding: "0px 8px"
|
|
17044
17083
|
}
|
|
17045
|
-
}, "\u67E5\u770B\u5F53\u524D\u53EF\u7528\u6388\u4FE1\u989D\u5EA6"))), React.createElement(Form, {
|
|
17084
|
+
}, "\u67E5\u770B\u5F53\u524D\u53EF\u7528\u6388\u4FE1\u989D\u5EA6"))), /*#__PURE__*/React.createElement(Form, {
|
|
17046
17085
|
className: "digtal-stakeholder-form"
|
|
17047
|
-
}, React.createElement(Row, {
|
|
17086
|
+
}, /*#__PURE__*/React.createElement(Row, {
|
|
17048
17087
|
gutter: [16, 0]
|
|
17049
|
-
}, React.createElement(Col, {
|
|
17088
|
+
}, /*#__PURE__*/React.createElement(Col, {
|
|
17050
17089
|
span: 24
|
|
17051
|
-
}, React.createElement(Form.Item, {
|
|
17090
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
17052
17091
|
label: "\u540D\u79F0",
|
|
17053
17092
|
colon: false
|
|
17054
17093
|
}, getFieldDecorator('supplierName', {
|
|
17055
17094
|
rules: getRules('supplierName', RULES.companyName('销售方名称')),
|
|
17056
17095
|
getValueFromEvent: formatCompanyName
|
|
17057
|
-
})(React.createElement(MyInput$1, {
|
|
17096
|
+
})( /*#__PURE__*/React.createElement(MyInput$1, {
|
|
17058
17097
|
readOnly: isReadOnly('supplierName'),
|
|
17059
17098
|
placeholder: "\u8BF7\u8F93\u5165\u540D\u79F0",
|
|
17060
17099
|
autoComplete: "off"
|
|
17061
|
-
})))), React.createElement(Col, {
|
|
17100
|
+
})))), /*#__PURE__*/React.createElement(Col, {
|
|
17062
17101
|
span: 24
|
|
17063
|
-
}, React.createElement(Form.Item, {
|
|
17102
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
17064
17103
|
label: "\u7EDF\u4E00\u793E\u4F1A\u4FE1\u7528\u4EE3\u7801/\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7",
|
|
17065
17104
|
colon: false
|
|
17066
17105
|
}, getFieldDecorator('supplierTaxId', {
|
|
@@ -17068,13 +17107,13 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
17068
17107
|
required: true,
|
|
17069
17108
|
message: '销售方纳税人识别号必填'
|
|
17070
17109
|
}].concat(_toConsumableArray(RULES.taxId('销售方纳税人识别号'))))
|
|
17071
|
-
})(React.createElement(MyInput$1, {
|
|
17110
|
+
})( /*#__PURE__*/React.createElement(MyInput$1, {
|
|
17072
17111
|
readOnly: isReadOnly('supplierTaxId'),
|
|
17073
17112
|
placeholder: "\u8BF7\u8F93\u5165\u7EDF\u4E00\u793E\u4F1A\u4FE1\u7528\u4EE3\u7801/\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7",
|
|
17074
17113
|
autoComplete: "off"
|
|
17075
|
-
})))), isExpand && React.createElement(React.Fragment, null, React.createElement(Col, {
|
|
17114
|
+
})))), isExpand && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Col, {
|
|
17076
17115
|
span: 12
|
|
17077
|
-
}, React.createElement(Form.Item, {
|
|
17116
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
17078
17117
|
label: "\u9500\u552E\u65B9\u5730\u5740",
|
|
17079
17118
|
colon: false
|
|
17080
17119
|
}, getFieldDecorator('sellerAddress', {
|
|
@@ -17082,41 +17121,41 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
17082
17121
|
max: 300,
|
|
17083
17122
|
message: '销售方地址内容超长'
|
|
17084
17123
|
}])
|
|
17085
|
-
})(React.createElement(MyInput$1, {
|
|
17124
|
+
})( /*#__PURE__*/React.createElement(MyInput$1, {
|
|
17086
17125
|
readOnly: isReadOnly('sellerAddress'),
|
|
17087
17126
|
placeholder: "\u8BF7\u8F93\u5165\u9500\u552E\u65B9\u5730\u5740",
|
|
17088
17127
|
autoComplete: "off"
|
|
17089
|
-
})))), React.createElement(Col, {
|
|
17128
|
+
})))), /*#__PURE__*/React.createElement(Col, {
|
|
17090
17129
|
span: 12
|
|
17091
|
-
}, React.createElement(Form.Item, {
|
|
17130
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
17092
17131
|
label: "\u7535\u8BDD",
|
|
17093
17132
|
colon: false,
|
|
17094
17133
|
className: 'telephone'
|
|
17095
17134
|
}, getFieldDecorator('sellerPhone', {
|
|
17096
17135
|
rules: getRules('sellerPhone', RULES.sellerTelPhone('销售方电话'))
|
|
17097
|
-
})(React.createElement(MyInput$1, {
|
|
17136
|
+
})( /*#__PURE__*/React.createElement(MyInput$1, {
|
|
17098
17137
|
readOnly: isReadOnly('sellerPhone'),
|
|
17099
17138
|
placeholder: "\u8BF7\u8F93\u5165\u7535\u8BDD",
|
|
17100
17139
|
autoComplete: "off"
|
|
17101
|
-
})))), React.createElement(Col, {
|
|
17140
|
+
})))), /*#__PURE__*/React.createElement(Col, {
|
|
17102
17141
|
span: 12
|
|
17103
|
-
}, React.createElement(Form.Item, {
|
|
17142
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
17104
17143
|
label: "\u9500\u552E\u65B9\u5F00\u6237\u94F6\u884C",
|
|
17105
17144
|
colon: false
|
|
17106
17145
|
}, getFieldDecorator('sellerBank', {
|
|
17107
17146
|
rules: getRules('sellerBank', RULES.bankName('销售方开户银行'))
|
|
17108
|
-
})(React.createElement(MyInput$1, {
|
|
17147
|
+
})( /*#__PURE__*/React.createElement(MyInput$1, {
|
|
17109
17148
|
readOnly: isReadOnly('sellerBank'),
|
|
17110
17149
|
placeholder: "\u8BF7\u8F93\u5165\u9500\u552E\u65B9\u5F00\u6237\u94F6\u884C",
|
|
17111
17150
|
autoComplete: "off"
|
|
17112
|
-
})))), React.createElement(Col, {
|
|
17151
|
+
})))), /*#__PURE__*/React.createElement(Col, {
|
|
17113
17152
|
span: 12
|
|
17114
|
-
}, React.createElement(Form.Item, {
|
|
17153
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
17115
17154
|
label: "\u94F6\u884C\u8D26\u53F7",
|
|
17116
17155
|
colon: false
|
|
17117
17156
|
}, getFieldDecorator('sellerAccount', {
|
|
17118
17157
|
rules: getRules('sellerAccount', RULES.bankAccount('销售方银行账号'))
|
|
17119
|
-
})(React.createElement(MyInput$1, {
|
|
17158
|
+
})( /*#__PURE__*/React.createElement(MyInput$1, {
|
|
17120
17159
|
readOnly: isReadOnly('sellerAccount'),
|
|
17121
17160
|
placeholder: "\u8BF7\u8F93\u5165\u94F6\u884C\u8D26\u53F7",
|
|
17122
17161
|
autoComplete: "off"
|
|
@@ -17137,7 +17176,7 @@ function NaturalPersonFlag(props) {
|
|
|
17137
17176
|
React.useEffect(function () {
|
|
17138
17177
|
setValue(props.value || 'COMPANY');
|
|
17139
17178
|
}, [props.value]);
|
|
17140
|
-
return React.createElement(Checkbox$1, {
|
|
17179
|
+
return /*#__PURE__*/React.createElement(Checkbox$1, {
|
|
17141
17180
|
disabled: props.readOnly,
|
|
17142
17181
|
checked: value === 'NATURAL',
|
|
17143
17182
|
onChange: onChange
|
|
@@ -17240,10 +17279,10 @@ function BuyerNameInput$1(props) {
|
|
|
17240
17279
|
return _ref.apply(this, arguments);
|
|
17241
17280
|
};
|
|
17242
17281
|
}(), [autoComplete.onBuyerNameSearch, fieldName]);
|
|
17243
|
-
if (props.readOnly) return React.createElement("span", {
|
|
17282
|
+
if (props.readOnly) return /*#__PURE__*/React.createElement("span", {
|
|
17244
17283
|
className: 'digtal-stakeholder-form-text'
|
|
17245
17284
|
}, props.value);
|
|
17246
|
-
return React.createElement(AutoComplete$1, {
|
|
17285
|
+
return /*#__PURE__*/React.createElement(AutoComplete$1, {
|
|
17247
17286
|
onSearch: onSearch,
|
|
17248
17287
|
options: options.map(function (e) {
|
|
17249
17288
|
return {
|
|
@@ -17255,7 +17294,7 @@ function BuyerNameInput$1(props) {
|
|
|
17255
17294
|
style: {
|
|
17256
17295
|
width: '100%'
|
|
17257
17296
|
}
|
|
17258
|
-
}, React.createElement(Input$1, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
17297
|
+
}, /*#__PURE__*/React.createElement(Input$1, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
17259
17298
|
style: _objectSpread2({
|
|
17260
17299
|
width: '100%'
|
|
17261
17300
|
}, props.style)
|
|
@@ -17279,11 +17318,11 @@ var MyInput$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
17279
17318
|
var props = this.props;
|
|
17280
17319
|
|
|
17281
17320
|
if (props.readOnly) {
|
|
17282
|
-
return React.createElement("span", {
|
|
17321
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
17283
17322
|
className: 'digtal-stakeholder-form-text'
|
|
17284
17323
|
}, props.value);
|
|
17285
17324
|
} else {
|
|
17286
|
-
return React.createElement(Input$1, _objectSpread2({}, props));
|
|
17325
|
+
return /*#__PURE__*/React.createElement(Input$1, _objectSpread2({}, props));
|
|
17287
17326
|
}
|
|
17288
17327
|
}
|
|
17289
17328
|
}]);
|
|
@@ -17340,47 +17379,47 @@ var SignDigtal = decorator(Form.create())(function (props) {
|
|
|
17340
17379
|
controller.useForm('sign', form);
|
|
17341
17380
|
|
|
17342
17381
|
if (readOnly) {
|
|
17343
|
-
return React.createElement("div", {
|
|
17382
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
17344
17383
|
className: "kts-invoice-operate-sign-digtal-readOnly"
|
|
17345
|
-
}, React.createElement("div", {
|
|
17384
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
17346
17385
|
className: 'sign-digtal-readOnly-cont'
|
|
17347
|
-
}, React.createElement("div", null, React.createElement("span", null, "\u5907"), React.createElement("span", null, "\u6CE8")), React.createElement("div", null, getFieldDecorator('remarks', {
|
|
17386
|
+
}, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("span", null, "\u5907"), /*#__PURE__*/React.createElement("span", null, "\u6CE8")), /*#__PURE__*/React.createElement("div", null, getFieldDecorator('remarks', {
|
|
17348
17387
|
initialValue: props.defaultRemark
|
|
17349
|
-
})(isEnables('remarks') ? React.createElement(Input$1.TextArea, {
|
|
17388
|
+
})(isEnables('remarks') ? /*#__PURE__*/React.createElement(Input$1.TextArea, {
|
|
17350
17389
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
17351
17390
|
style: {
|
|
17352
17391
|
height: '100%'
|
|
17353
17392
|
}
|
|
17354
|
-
}) : React.createElement(MyDiv$1, {
|
|
17393
|
+
}) : /*#__PURE__*/React.createElement(MyDiv$1, {
|
|
17355
17394
|
style: {
|
|
17356
17395
|
whiteSpace: 'pre-wrap'
|
|
17357
17396
|
}
|
|
17358
|
-
})))), React.createElement(Form, {
|
|
17397
|
+
})))), /*#__PURE__*/React.createElement(Form, {
|
|
17359
17398
|
layout: 'inline',
|
|
17360
17399
|
className: 'digtal-readOnly-form'
|
|
17361
|
-
}, React.createElement(Form.Item, {
|
|
17400
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
17362
17401
|
label: "\u5F00\u7968\u4EBA"
|
|
17363
17402
|
}, getFieldDecorator('drawer', {
|
|
17364
17403
|
initialValue: props.defaultRemark
|
|
17365
|
-
})(React.createElement(MyDiv$1, null)))));
|
|
17404
|
+
})( /*#__PURE__*/React.createElement(MyDiv$1, null)))));
|
|
17366
17405
|
} else {
|
|
17367
|
-
return React.createElement("div", {
|
|
17406
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
17368
17407
|
className: "kts-invoice-operate-sign-digtal"
|
|
17369
|
-
}, React.createElement("div", {
|
|
17408
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
17370
17409
|
className: 'sign-digtal-label'
|
|
17371
|
-
}, "\u5907\u6CE8\u4FE1\u606F"), React.createElement(Form, null, React.createElement(Form.Item, {
|
|
17410
|
+
}, "\u5907\u6CE8\u4FE1\u606F"), /*#__PURE__*/React.createElement(Form, null, /*#__PURE__*/React.createElement(Form.Item, {
|
|
17372
17411
|
label: "\u5907\u6CE8"
|
|
17373
17412
|
}, getFieldDecorator('remarks', {
|
|
17374
17413
|
initialValue: props.defaultRemark
|
|
17375
|
-
})(React.createElement(Input$1.TextArea, {
|
|
17414
|
+
})( /*#__PURE__*/React.createElement(Input$1.TextArea, {
|
|
17376
17415
|
readOnly: isReadOnly('remarks'),
|
|
17377
17416
|
autoSize: true,
|
|
17378
17417
|
placeholder: "\u8BF7\u8F93\u5165"
|
|
17379
|
-
}))), React.createElement(Form.Item, {
|
|
17418
|
+
}))), /*#__PURE__*/React.createElement(Form.Item, {
|
|
17380
17419
|
label: "\u5F00\u7968\u4EBA"
|
|
17381
17420
|
}, getFieldDecorator('drawer', {
|
|
17382
17421
|
initialValue: props.defaultIssuer
|
|
17383
|
-
})(React.createElement(Input$1, {
|
|
17422
|
+
})( /*#__PURE__*/React.createElement(Input$1, {
|
|
17384
17423
|
readOnly: isReadOnly('drawer'),
|
|
17385
17424
|
style: {
|
|
17386
17425
|
width: 313
|
|
@@ -17404,7 +17443,7 @@ var MyDiv$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
17404
17443
|
_createClass(MyDiv, [{
|
|
17405
17444
|
key: "render",
|
|
17406
17445
|
value: function render() {
|
|
17407
|
-
return React.createElement("div", {
|
|
17446
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
17408
17447
|
style: this.props.style
|
|
17409
17448
|
}, this.props.value);
|
|
17410
17449
|
}
|
|
@@ -17507,12 +17546,12 @@ function TableVirtual$1 (props) {
|
|
|
17507
17546
|
if (!cont) return;
|
|
17508
17547
|
cont.scrollTop = 0;
|
|
17509
17548
|
}, [(_props$dataSource2 = props.dataSource) === null || _props$dataSource2 === void 0 ? void 0 : _props$dataSource2.length]);
|
|
17510
|
-
return React.createElement("span", {
|
|
17549
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
17511
17550
|
className: "kts-invoice-operate-goods-table-virtual",
|
|
17512
17551
|
ref: function ref(e) {
|
|
17513
17552
|
setSelf(e);
|
|
17514
17553
|
}
|
|
17515
|
-
}, React.createElement(TableManual, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
17554
|
+
}, /*#__PURE__*/React.createElement(TableManual, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
17516
17555
|
dataSource: dataSource,
|
|
17517
17556
|
// 新版本Table会有输入框无法连续输入的问题,先兼容老版本
|
|
17518
17557
|
tableComponent: Table
|
|
@@ -17623,52 +17662,52 @@ var Statistics$1 = (function () {
|
|
|
17623
17662
|
});
|
|
17624
17663
|
return sum.done().toNumber();
|
|
17625
17664
|
}, []);
|
|
17626
|
-
return React.createElement("div", {
|
|
17665
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
17627
17666
|
className: 'kts-invoice-operate-goods-list-statistics-digtal'
|
|
17628
|
-
}, React.createElement("div", {
|
|
17667
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
17629
17668
|
className: 'statistics-digtal-total'
|
|
17630
|
-
}, React.createElement("div", null, "\u5408\u8BA1"), React.createElement("div", {
|
|
17669
|
+
}, /*#__PURE__*/React.createElement("div", null, "\u5408\u8BA1"), /*#__PURE__*/React.createElement("div", {
|
|
17631
17670
|
style: {
|
|
17632
17671
|
flex: 1
|
|
17633
17672
|
}
|
|
17634
|
-
}), React.createElement("div", {
|
|
17673
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
17635
17674
|
style: {
|
|
17636
17675
|
width: 119,
|
|
17637
17676
|
textAlign: 'right',
|
|
17638
17677
|
paddingRight: 15
|
|
17639
17678
|
}
|
|
17640
|
-
}, "\xA5", parseFloat(isTaxIncluded ? lineAmountIncludeTax : lineAmountExcludeTax).toFixed(2)), React.createElement("div", {
|
|
17679
|
+
}, "\xA5", parseFloat(isTaxIncluded ? lineAmountIncludeTax : lineAmountExcludeTax).toFixed(2)), /*#__PURE__*/React.createElement("div", {
|
|
17641
17680
|
style: {
|
|
17642
17681
|
width: 119,
|
|
17643
17682
|
textAlign: 'right',
|
|
17644
17683
|
paddingRight: 15
|
|
17645
17684
|
}
|
|
17646
|
-
}, "\xA5", parseFloat(taxAmount).toFixed(2))), React.createElement("div", {
|
|
17685
|
+
}, "\xA5", parseFloat(taxAmount).toFixed(2))), /*#__PURE__*/React.createElement("div", {
|
|
17647
17686
|
className: 'statistics-digtal-total-tax'
|
|
17648
|
-
}, React.createElement("div", null, "\u4EF7\u7A0E\u5408\u8BA1\uFF08\u5927\u5199\uFF09"), React.createElement("div", {
|
|
17687
|
+
}, /*#__PURE__*/React.createElement("div", null, "\u4EF7\u7A0E\u5408\u8BA1\uFF08\u5927\u5199\uFF09"), /*#__PURE__*/React.createElement("div", {
|
|
17649
17688
|
style: {
|
|
17650
17689
|
paddingLeft: 30
|
|
17651
17690
|
}
|
|
17652
|
-
}, React.createElement(Icon, {
|
|
17691
|
+
}, /*#__PURE__*/React.createElement(Icon, {
|
|
17653
17692
|
style: {
|
|
17654
17693
|
fontSize: 16
|
|
17655
17694
|
},
|
|
17656
17695
|
component: SvgFork
|
|
17657
|
-
}), React.createElement("span", {
|
|
17696
|
+
}), /*#__PURE__*/React.createElement("span", {
|
|
17658
17697
|
style: {
|
|
17659
17698
|
fontWeight: 'bold',
|
|
17660
17699
|
marginLeft: 4
|
|
17661
17700
|
}
|
|
17662
|
-
}, toStringChinese(lineAmountIncludeTax))), React.createElement("div", {
|
|
17701
|
+
}, toStringChinese(lineAmountIncludeTax))), /*#__PURE__*/React.createElement("div", {
|
|
17663
17702
|
style: {
|
|
17664
17703
|
flex: 1
|
|
17665
17704
|
}
|
|
17666
|
-
}), React.createElement("div", {
|
|
17705
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
17667
17706
|
style: {
|
|
17668
17707
|
width: 90,
|
|
17669
17708
|
color: '#9F613E'
|
|
17670
17709
|
}
|
|
17671
|
-
}, "\uFF08\u5C0F\u5199\uFF09"), React.createElement("div", {
|
|
17710
|
+
}, "\uFF08\u5C0F\u5199\uFF09"), /*#__PURE__*/React.createElement("div", {
|
|
17672
17711
|
style: {
|
|
17673
17712
|
width: 119
|
|
17674
17713
|
}
|
|
@@ -17727,10 +17766,10 @@ var AddRowButton$1 = (function () {
|
|
|
17727
17766
|
}
|
|
17728
17767
|
}, _callee);
|
|
17729
17768
|
})), [controller, rootElement]);
|
|
17730
|
-
if (isAddRow === false) return React.createElement(React.Fragment, null);
|
|
17731
|
-
if (model === 'prefab') return React.createElement(React.Fragment, null);
|
|
17732
|
-
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
17733
|
-
return React.createElement(Button$1, {
|
|
17769
|
+
if (isAddRow === false) return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
17770
|
+
if (model === 'prefab') return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
17771
|
+
if (model === 'readOnly') return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
17772
|
+
return /*#__PURE__*/React.createElement(Button$1, {
|
|
17734
17773
|
size: 'small',
|
|
17735
17774
|
type: 'primary',
|
|
17736
17775
|
onClick: onClick,
|
|
@@ -19091,11 +19130,11 @@ var TaxIncludedSwitch$1 = (function () {
|
|
|
19091
19130
|
return _ref.apply(this, arguments);
|
|
19092
19131
|
};
|
|
19093
19132
|
}(), []);
|
|
19094
|
-
return React.createElement("span", null, React.createElement("label", {
|
|
19133
|
+
return /*#__PURE__*/React.createElement("span", null, /*#__PURE__*/React.createElement("label", {
|
|
19095
19134
|
style: {
|
|
19096
19135
|
marginRight: 2
|
|
19097
19136
|
}
|
|
19098
|
-
}, "\u542B\u7A0E"), React.createElement(Switch, {
|
|
19137
|
+
}, "\u542B\u7A0E"), /*#__PURE__*/React.createElement(Switch, {
|
|
19099
19138
|
disabled: isSwitchTax === false,
|
|
19100
19139
|
checked: isTaxIncluded,
|
|
19101
19140
|
defaultChecked: true,
|
|
@@ -19191,12 +19230,12 @@ function Search$1() {
|
|
|
19191
19230
|
};
|
|
19192
19231
|
}());
|
|
19193
19232
|
}, [value, controller]);
|
|
19194
|
-
return React.createElement(Input$1, {
|
|
19233
|
+
return /*#__PURE__*/React.createElement(Input$1, {
|
|
19195
19234
|
readOnly: readOnly,
|
|
19196
19235
|
value: value,
|
|
19197
19236
|
className: "kts-invoice-operate-goods-list-search",
|
|
19198
19237
|
placeholder: "\u8BF7\u60A8\u8F93\u5165\u9879\u76EE\u540D\u79F0\u3001\u89C4\u683C\u578B\u53F7\u3001\u91D1\u989D(".concat(isTaxIncluded ? '含税' : '不含税', ")\u641C\u7D22"),
|
|
19199
|
-
prefix: React.createElement(Icon$1, {
|
|
19238
|
+
prefix: /*#__PURE__*/React.createElement(Icon$1, {
|
|
19200
19239
|
component: SvgMagnifier$1,
|
|
19201
19240
|
style: {
|
|
19202
19241
|
color: "#b8b8b8"
|
|
@@ -19241,12 +19280,12 @@ function TableRow$1(props) {
|
|
|
19241
19280
|
return undefined;
|
|
19242
19281
|
}
|
|
19243
19282
|
}, [rowKey, goodsMap]);
|
|
19244
|
-
return rowKey === current && current ? React.createElement("tr", {
|
|
19283
|
+
return rowKey === current && current ? /*#__PURE__*/React.createElement("tr", {
|
|
19245
19284
|
style: {
|
|
19246
19285
|
height: 50,
|
|
19247
19286
|
position: 'relative'
|
|
19248
19287
|
}
|
|
19249
|
-
}, React.createElement("div", {
|
|
19288
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
19250
19289
|
style: {
|
|
19251
19290
|
height: 0.5,
|
|
19252
19291
|
width: '100%',
|
|
@@ -19254,7 +19293,9 @@ function TableRow$1(props) {
|
|
|
19254
19293
|
position: 'absolute',
|
|
19255
19294
|
bottom: 0
|
|
19256
19295
|
}
|
|
19257
|
-
})) :
|
|
19296
|
+
})) :
|
|
19297
|
+
/*#__PURE__*/
|
|
19298
|
+
// <tr {...props} className={classnames(props.className, discount, (rowKey === container && current) ? 'kts-invoice-operate-goods-list-itemName-drag-container' : '')} />
|
|
19258
19299
|
React.createElement("tr", _objectSpread2(_objectSpread2({}, props), {}, {
|
|
19259
19300
|
className: classNames(props.className, discount, rowKey === container && current ? 'kts-invoice-operate-goods-list-itemName-drag-container-' + site : undefined)
|
|
19260
19301
|
}));
|
|
@@ -19294,9 +19335,9 @@ var TitleText$1 = (function (props) {
|
|
|
19294
19335
|
return !!e.required;
|
|
19295
19336
|
})) || props.required;
|
|
19296
19337
|
}, [rules, props.required]);
|
|
19297
|
-
return React.createElement(React.Fragment, null, required ? React.createElement(Text$5, {
|
|
19338
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, required ? /*#__PURE__*/React.createElement(Text$5, {
|
|
19298
19339
|
type: "danger"
|
|
19299
|
-
}, "*") : React.createElement(React.Fragment, null), children);
|
|
19340
|
+
}, "*") : /*#__PURE__*/React.createElement(React.Fragment, null), children);
|
|
19300
19341
|
});
|
|
19301
19342
|
|
|
19302
19343
|
var css_248z$m = ".kts-invoice-operate-goods-list-itemName-input {\n display: flex;\n flex: 1;\n padding-left: 0;\n height: 31px;\n}\n";
|
|
@@ -19477,14 +19518,14 @@ function ItemNameInput$1(props) {
|
|
|
19477
19518
|
return _ref3.apply(this, arguments);
|
|
19478
19519
|
};
|
|
19479
19520
|
}(), [autoComplete.onItemNameSearch]);
|
|
19480
|
-
return React.createElement("div", {
|
|
19521
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
19481
19522
|
className: 'kts-invoice-operate-goods-list-itemName-input'
|
|
19482
|
-
}, props.shorthand && React.createElement("span", {
|
|
19523
|
+
}, props.shorthand && /*#__PURE__*/React.createElement("span", {
|
|
19483
19524
|
style: {
|
|
19484
19525
|
alignSelf: 'center',
|
|
19485
19526
|
fontSize: 12
|
|
19486
19527
|
}
|
|
19487
|
-
}, "*", props.shorthand, "*"), React.createElement(AutoComplete$1, {
|
|
19528
|
+
}, "*", props.shorthand, "*"), /*#__PURE__*/React.createElement(AutoComplete$1, {
|
|
19488
19529
|
onSearch: onSearch,
|
|
19489
19530
|
value: props.value,
|
|
19490
19531
|
options: options.map(function (e) {
|
|
@@ -19494,7 +19535,7 @@ function ItemNameInput$1(props) {
|
|
|
19494
19535
|
};
|
|
19495
19536
|
}),
|
|
19496
19537
|
onSelect: onChangeAutoComplete
|
|
19497
|
-
}, React.createElement(Input$1, {
|
|
19538
|
+
}, /*#__PURE__*/React.createElement(Input$1, {
|
|
19498
19539
|
style: {
|
|
19499
19540
|
height: '100%'
|
|
19500
19541
|
},
|
|
@@ -19564,7 +19605,7 @@ function Drag$2(props) {
|
|
|
19564
19605
|
var currentGood = controller.state.goodsListState.goodsList.filter(function (e) {
|
|
19565
19606
|
return e.$index === record.$index;
|
|
19566
19607
|
})[0];
|
|
19567
|
-
mounting(React.createElement(DragDiv$1, _objectSpread2({}, currentGood)));
|
|
19608
|
+
mounting( /*#__PURE__*/React.createElement(DragDiv$1, _objectSpread2({}, currentGood)));
|
|
19568
19609
|
rowList.forEach(function (e) {
|
|
19569
19610
|
e.addEventListener('mousemove', onMousemove);
|
|
19570
19611
|
});
|
|
@@ -19725,7 +19766,7 @@ function Drag$2(props) {
|
|
|
19725
19766
|
|
|
19726
19767
|
|
|
19727
19768
|
function insert() {
|
|
19728
|
-
mounting(React.createElement(React.Fragment, null));
|
|
19769
|
+
mounting( /*#__PURE__*/React.createElement(React.Fragment, null));
|
|
19729
19770
|
controller.run( /*#__PURE__*/function () {
|
|
19730
19771
|
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(s) {
|
|
19731
19772
|
var _s$goodsListState$dra, container, current, site, goodsList, goodsMap, _currentGood, currentIndex, moveGoods;
|
|
@@ -19804,7 +19845,7 @@ function Drag$2(props) {
|
|
|
19804
19845
|
}
|
|
19805
19846
|
}, [controller, record, disabled]);
|
|
19806
19847
|
var renderButton = React.useMemo(function () {
|
|
19807
|
-
return React.createElement(Button, {
|
|
19848
|
+
return /*#__PURE__*/React.createElement(Button, {
|
|
19808
19849
|
type: 'link',
|
|
19809
19850
|
style: {
|
|
19810
19851
|
padding: 0
|
|
@@ -19815,13 +19856,13 @@ function Drag$2(props) {
|
|
|
19815
19856
|
},
|
|
19816
19857
|
className: "kts-invoice-operate-goods-list-itemName-drag",
|
|
19817
19858
|
onMouseOver: controller.saveEditGood
|
|
19818
|
-
}, React.createElement(Icon, {
|
|
19859
|
+
}, /*#__PURE__*/React.createElement(Icon, {
|
|
19819
19860
|
component: SvgI001$1
|
|
19820
19861
|
}));
|
|
19821
19862
|
}, [onMouseDown, controller]);
|
|
19822
19863
|
|
|
19823
19864
|
if (disabled) {
|
|
19824
|
-
return React.createElement(Popover, {
|
|
19865
|
+
return /*#__PURE__*/React.createElement(Popover, {
|
|
19825
19866
|
content: '您还有未编辑完成的商品',
|
|
19826
19867
|
trigger: 'focus'
|
|
19827
19868
|
}, renderButton);
|
|
@@ -19861,13 +19902,13 @@ function DragDiv$1(props) {
|
|
|
19861
19902
|
window.removeEventListener('mousemove', onMousemove);
|
|
19862
19903
|
};
|
|
19863
19904
|
});
|
|
19864
|
-
return React.createElement("div", {
|
|
19905
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
19865
19906
|
className: "kts-invoice-operate-goods-list-itemName-drag-div",
|
|
19866
19907
|
style: {
|
|
19867
19908
|
top: y,
|
|
19868
19909
|
left: x
|
|
19869
19910
|
}
|
|
19870
|
-
}, React.createElement("span", null, props.itemName), React.createElement("span", null, props.itemModelName), React.createElement("span", null, props.unit));
|
|
19911
|
+
}, /*#__PURE__*/React.createElement("span", null, props.itemName), /*#__PURE__*/React.createElement("span", null, props.itemModelName), /*#__PURE__*/React.createElement("span", null, props.unit));
|
|
19871
19912
|
}
|
|
19872
19913
|
|
|
19873
19914
|
var useColumns$1 = (function (form) {
|
|
@@ -19983,7 +20024,7 @@ var useColumns$1 = (function (form) {
|
|
|
19983
20024
|
width: 40,
|
|
19984
20025
|
align: 'center',
|
|
19985
20026
|
render: function render(_, record) {
|
|
19986
|
-
return React.createElement(Drag$2, {
|
|
20027
|
+
return /*#__PURE__*/React.createElement(Drag$2, {
|
|
19987
20028
|
record: record
|
|
19988
20029
|
});
|
|
19989
20030
|
}
|
|
@@ -19993,20 +20034,20 @@ var useColumns$1 = (function (form) {
|
|
|
19993
20034
|
dataIndex: 'serialNo',
|
|
19994
20035
|
width: 50,
|
|
19995
20036
|
render: function render(e) {
|
|
19996
|
-
return React.createElement("span", {
|
|
20037
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
19997
20038
|
style: {
|
|
19998
20039
|
padding: '0 10px'
|
|
19999
20040
|
}
|
|
20000
20041
|
}, e);
|
|
20001
20042
|
}
|
|
20002
20043
|
}, {
|
|
20003
|
-
title: React.createElement(TitleText$1, {
|
|
20044
|
+
title: /*#__PURE__*/React.createElement(TitleText$1, {
|
|
20004
20045
|
required: true
|
|
20005
20046
|
}, "\u9879\u76EE\u540D\u79F0"),
|
|
20006
20047
|
key: 'itemName',
|
|
20007
20048
|
render: function render(_, record) {
|
|
20008
20049
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
20009
|
-
return React.createElement(Form.Item, null, React.createElement("div", {
|
|
20050
|
+
return /*#__PURE__*/React.createElement(Form.Item, null, /*#__PURE__*/React.createElement("div", {
|
|
20010
20051
|
style: {
|
|
20011
20052
|
display: 'flex'
|
|
20012
20053
|
}
|
|
@@ -20053,12 +20094,12 @@ var useColumns$1 = (function (form) {
|
|
|
20053
20094
|
return validator;
|
|
20054
20095
|
}()
|
|
20055
20096
|
}])
|
|
20056
|
-
})(React.createElement(ItemNameInput$1, {
|
|
20097
|
+
})( /*#__PURE__*/React.createElement(ItemNameInput$1, {
|
|
20057
20098
|
editGood: editGood,
|
|
20058
20099
|
shorthand: editGood.shorthand,
|
|
20059
|
-
suffix: React.createElement(Tooltip$1, {
|
|
20100
|
+
suffix: /*#__PURE__*/React.createElement(Tooltip$1, {
|
|
20060
20101
|
title: "\u70B9\u51FB\u4ECE\u5546\u54C1\u7BA1\u7406\u4E2D\u6DFB\u52A0\u5546\u54C1\u4FE1\u606F"
|
|
20061
|
-
}, React.createElement(Button$1, {
|
|
20102
|
+
}, /*#__PURE__*/React.createElement(Button$1, {
|
|
20062
20103
|
type: "link",
|
|
20063
20104
|
style: {
|
|
20064
20105
|
padding: 0,
|
|
@@ -20066,7 +20107,7 @@ var useColumns$1 = (function (form) {
|
|
|
20066
20107
|
fontSize: 20,
|
|
20067
20108
|
fill: '#0074ff'
|
|
20068
20109
|
},
|
|
20069
|
-
icon: React.createElement(SvgPlus$1, null),
|
|
20110
|
+
icon: /*#__PURE__*/React.createElement(SvgPlus$1, null),
|
|
20070
20111
|
onClick: controller.pipeline( /*#__PURE__*/function () {
|
|
20071
20112
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(s) {
|
|
20072
20113
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
@@ -20093,9 +20134,9 @@ var useColumns$1 = (function (form) {
|
|
|
20093
20134
|
}
|
|
20094
20135
|
}))));
|
|
20095
20136
|
} else {
|
|
20096
|
-
return React.createElement("span", null, record.lineAttribute === LineAttributeType$1.折扣行 ? React.createElement("span", {
|
|
20137
|
+
return /*#__PURE__*/React.createElement("span", null, record.lineAttribute === LineAttributeType$1.折扣行 ? /*#__PURE__*/React.createElement("span", {
|
|
20097
20138
|
className: 'goods-list-digtal-discount-tag'
|
|
20098
|
-
}, "\u6298\u6263") : React.createElement(React.Fragment, null), React.createElement(MyItemNameDiv$1, {
|
|
20139
|
+
}, "\u6298\u6263") : /*#__PURE__*/React.createElement(React.Fragment, null), /*#__PURE__*/React.createElement(MyItemNameDiv$1, {
|
|
20099
20140
|
valueT: formatSearch$1(getItemNameWithShorthand({
|
|
20100
20141
|
shorthand: record.shorthand,
|
|
20101
20142
|
full: record.itemNameSelf || ''
|
|
@@ -20109,17 +20150,17 @@ var useColumns$1 = (function (form) {
|
|
|
20109
20150
|
}
|
|
20110
20151
|
}
|
|
20111
20152
|
}, {
|
|
20112
|
-
title: React.createElement(TitleText$1, {
|
|
20153
|
+
title: /*#__PURE__*/React.createElement(TitleText$1, {
|
|
20113
20154
|
rules: (_columnsReplenish$ite = columnsReplenish['itemModelName']) === null || _columnsReplenish$ite === void 0 ? void 0 : _columnsReplenish$ite.rules
|
|
20114
20155
|
}, "\u89C4\u683C\u578B\u53F7"),
|
|
20115
20156
|
key: 'itemModelName',
|
|
20116
20157
|
width: 119,
|
|
20117
20158
|
render: function render(_, record) {
|
|
20118
20159
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
20119
|
-
return React.createElement(Form.Item, null, getFieldDecorator('itemModelName', {
|
|
20160
|
+
return /*#__PURE__*/React.createElement(Form.Item, null, getFieldDecorator('itemModelName', {
|
|
20120
20161
|
initialValue: isMyShow ? editGood.itemModelNameSelf : editGood.itemModelName,
|
|
20121
20162
|
rules: getReplenishRules('itemModelName')
|
|
20122
|
-
})(React.createElement(MyInput$2, {
|
|
20163
|
+
})( /*#__PURE__*/React.createElement(MyInput$2, {
|
|
20123
20164
|
onChange: function () {
|
|
20124
20165
|
var _onChange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
20125
20166
|
var key, value;
|
|
@@ -20152,7 +20193,7 @@ var useColumns$1 = (function (form) {
|
|
|
20152
20193
|
}()
|
|
20153
20194
|
})));
|
|
20154
20195
|
} else {
|
|
20155
|
-
return React.createElement(MyItemNameDiv$1, {
|
|
20196
|
+
return /*#__PURE__*/React.createElement(MyItemNameDiv$1, {
|
|
20156
20197
|
valueT: formatSearch$1(record.itemModelNameSelf, searchValue),
|
|
20157
20198
|
valueF: formatSearch$1(record.itemModelName, searchValue),
|
|
20158
20199
|
isMyShow: isMyShow
|
|
@@ -20160,17 +20201,17 @@ var useColumns$1 = (function (form) {
|
|
|
20160
20201
|
}
|
|
20161
20202
|
}
|
|
20162
20203
|
}, {
|
|
20163
|
-
title: React.createElement(TitleText$1, {
|
|
20204
|
+
title: /*#__PURE__*/React.createElement(TitleText$1, {
|
|
20164
20205
|
rules: (_columnsReplenish$uni = columnsReplenish['unit']) === null || _columnsReplenish$uni === void 0 ? void 0 : _columnsReplenish$uni.rules
|
|
20165
20206
|
}, "\u5355\u4F4D"),
|
|
20166
20207
|
key: 'unit',
|
|
20167
20208
|
width: 70,
|
|
20168
20209
|
render: function render(_, record) {
|
|
20169
20210
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
20170
|
-
return React.createElement(Form.Item, null, getFieldDecorator('unit', {
|
|
20211
|
+
return /*#__PURE__*/React.createElement(Form.Item, null, getFieldDecorator('unit', {
|
|
20171
20212
|
initialValue: editGood.unit,
|
|
20172
20213
|
rules: getReplenishRules('unit')
|
|
20173
|
-
})(React.createElement(AutoComplete$1, {
|
|
20214
|
+
})( /*#__PURE__*/React.createElement(AutoComplete$1, {
|
|
20174
20215
|
style: {
|
|
20175
20216
|
width: '100%'
|
|
20176
20217
|
},
|
|
@@ -20208,7 +20249,7 @@ var useColumns$1 = (function (form) {
|
|
|
20208
20249
|
}()
|
|
20209
20250
|
})));
|
|
20210
20251
|
} else {
|
|
20211
|
-
return React.createElement("span", {
|
|
20252
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
20212
20253
|
style: {
|
|
20213
20254
|
padding: '0 10px'
|
|
20214
20255
|
}
|
|
@@ -20216,7 +20257,7 @@ var useColumns$1 = (function (form) {
|
|
|
20216
20257
|
}
|
|
20217
20258
|
}
|
|
20218
20259
|
}, {
|
|
20219
|
-
title: React.createElement(TitleText$1, {
|
|
20260
|
+
title: /*#__PURE__*/React.createElement(TitleText$1, {
|
|
20220
20261
|
rules: (_columnsReplenish$qua = columnsReplenish['quantity']) === null || _columnsReplenish$qua === void 0 ? void 0 : _columnsReplenish$qua.rules
|
|
20221
20262
|
}, "\u6570\u91CF"),
|
|
20222
20263
|
dataIndex: 'quantity',
|
|
@@ -20225,7 +20266,7 @@ var useColumns$1 = (function (form) {
|
|
|
20225
20266
|
width: 149,
|
|
20226
20267
|
render: function render(value, record) {
|
|
20227
20268
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
20228
|
-
return React.createElement(Form.Item, null, getFieldDecorator('quantity', {
|
|
20269
|
+
return /*#__PURE__*/React.createElement(Form.Item, null, getFieldDecorator('quantity', {
|
|
20229
20270
|
initialValue: nonScientificNotation(editGood.quantity),
|
|
20230
20271
|
getValueFromEvent: onNumberValueChange,
|
|
20231
20272
|
rules: [].concat(_toConsumableArray(getReplenishRules('quantity')), [{
|
|
@@ -20271,7 +20312,7 @@ var useColumns$1 = (function (form) {
|
|
|
20271
20312
|
return validator;
|
|
20272
20313
|
}()
|
|
20273
20314
|
}])
|
|
20274
|
-
})(React.createElement(MyInput$2, {
|
|
20315
|
+
})( /*#__PURE__*/React.createElement(MyInput$2, {
|
|
20275
20316
|
style: {
|
|
20276
20317
|
textAlign: 'right'
|
|
20277
20318
|
},
|
|
@@ -20303,7 +20344,7 @@ var useColumns$1 = (function (form) {
|
|
|
20303
20344
|
}()
|
|
20304
20345
|
})));
|
|
20305
20346
|
} else {
|
|
20306
|
-
return React.createElement("span", {
|
|
20347
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
20307
20348
|
style: {
|
|
20308
20349
|
padding: '0 10px'
|
|
20309
20350
|
}
|
|
@@ -20311,7 +20352,7 @@ var useColumns$1 = (function (form) {
|
|
|
20311
20352
|
}
|
|
20312
20353
|
}
|
|
20313
20354
|
}, {
|
|
20314
|
-
title: React.createElement(TitleText$1, {
|
|
20355
|
+
title: /*#__PURE__*/React.createElement(TitleText$1, {
|
|
20315
20356
|
rules: (_columnsReplenish$pri = columnsReplenish['priceIncludeTax']) === null || _columnsReplenish$pri === void 0 ? void 0 : _columnsReplenish$pri.rules
|
|
20316
20357
|
}, "\u5355\u4EF7(\u542B\u7A0E)"),
|
|
20317
20358
|
dataIndex: 'priceIncludeTax',
|
|
@@ -20320,7 +20361,7 @@ var useColumns$1 = (function (form) {
|
|
|
20320
20361
|
width: 149,
|
|
20321
20362
|
render: function render(value, record) {
|
|
20322
20363
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
20323
|
-
return React.createElement(Form.Item, null, getFieldDecorator('priceIncludeTax', {
|
|
20364
|
+
return /*#__PURE__*/React.createElement(Form.Item, null, getFieldDecorator('priceIncludeTax', {
|
|
20324
20365
|
initialValue: nonScientificNotation(editGood.priceIncludeTax),
|
|
20325
20366
|
getValueFromEvent: onNumberValueChange,
|
|
20326
20367
|
rules: [].concat(_toConsumableArray(getReplenishRules('priceIncludeTax')), [{
|
|
@@ -20366,7 +20407,7 @@ var useColumns$1 = (function (form) {
|
|
|
20366
20407
|
return validator;
|
|
20367
20408
|
}()
|
|
20368
20409
|
}])
|
|
20369
|
-
})(React.createElement(MyInput$2, {
|
|
20410
|
+
})( /*#__PURE__*/React.createElement(MyInput$2, {
|
|
20370
20411
|
style: {
|
|
20371
20412
|
textAlign: 'right'
|
|
20372
20413
|
},
|
|
@@ -20378,7 +20419,7 @@ var useColumns$1 = (function (form) {
|
|
|
20378
20419
|
}
|
|
20379
20420
|
})));
|
|
20380
20421
|
} else {
|
|
20381
|
-
return React.createElement("span", {
|
|
20422
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
20382
20423
|
style: {
|
|
20383
20424
|
padding: '0 10px'
|
|
20384
20425
|
}
|
|
@@ -20386,7 +20427,7 @@ var useColumns$1 = (function (form) {
|
|
|
20386
20427
|
}
|
|
20387
20428
|
}
|
|
20388
20429
|
}, {
|
|
20389
|
-
title: React.createElement(TitleText$1, {
|
|
20430
|
+
title: /*#__PURE__*/React.createElement(TitleText$1, {
|
|
20390
20431
|
rules: (_columnsReplenish$pri2 = columnsReplenish['priceExcludeTax']) === null || _columnsReplenish$pri2 === void 0 ? void 0 : _columnsReplenish$pri2.rules
|
|
20391
20432
|
}, "\u5355\u4EF7(\u4E0D\u542B\u7A0E)"),
|
|
20392
20433
|
dataIndex: 'priceExcludeTax',
|
|
@@ -20395,7 +20436,7 @@ var useColumns$1 = (function (form) {
|
|
|
20395
20436
|
width: 149,
|
|
20396
20437
|
render: function render(value, record) {
|
|
20397
20438
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
20398
|
-
return React.createElement(Form.Item, null, getFieldDecorator('priceExcludeTax', {
|
|
20439
|
+
return /*#__PURE__*/React.createElement(Form.Item, null, getFieldDecorator('priceExcludeTax', {
|
|
20399
20440
|
initialValue: nonScientificNotation(editGood.priceExcludeTax),
|
|
20400
20441
|
getValueFromEvent: onNumberValueChange,
|
|
20401
20442
|
rules: [].concat(_toConsumableArray(getReplenishRules('priceExcludeTax')), [{
|
|
@@ -20441,7 +20482,7 @@ var useColumns$1 = (function (form) {
|
|
|
20441
20482
|
return validator;
|
|
20442
20483
|
}()
|
|
20443
20484
|
}])
|
|
20444
|
-
})(React.createElement(MyInput$2, {
|
|
20485
|
+
})( /*#__PURE__*/React.createElement(MyInput$2, {
|
|
20445
20486
|
style: {
|
|
20446
20487
|
textAlign: 'right'
|
|
20447
20488
|
},
|
|
@@ -20453,7 +20494,7 @@ var useColumns$1 = (function (form) {
|
|
|
20453
20494
|
}
|
|
20454
20495
|
})));
|
|
20455
20496
|
} else {
|
|
20456
|
-
return React.createElement("span", {
|
|
20497
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
20457
20498
|
style: {
|
|
20458
20499
|
padding: '0 10px'
|
|
20459
20500
|
}
|
|
@@ -20461,7 +20502,7 @@ var useColumns$1 = (function (form) {
|
|
|
20461
20502
|
}
|
|
20462
20503
|
}
|
|
20463
20504
|
}, {
|
|
20464
|
-
title: React.createElement(TitleText$1, {
|
|
20505
|
+
title: /*#__PURE__*/React.createElement(TitleText$1, {
|
|
20465
20506
|
required: true
|
|
20466
20507
|
}, "\u91D1\u989D(\u542B\u7A0E)"),
|
|
20467
20508
|
dataIndex: 'lineAmountIncludeTax',
|
|
@@ -20470,7 +20511,7 @@ var useColumns$1 = (function (form) {
|
|
|
20470
20511
|
align: 'right',
|
|
20471
20512
|
render: function render(value, record) {
|
|
20472
20513
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
20473
|
-
return React.createElement(Form.Item, null, getFieldDecorator('lineAmountIncludeTax', {
|
|
20514
|
+
return /*#__PURE__*/React.createElement(Form.Item, null, getFieldDecorator('lineAmountIncludeTax', {
|
|
20474
20515
|
initialValue: editGood.lineAmountIncludeTax,
|
|
20475
20516
|
getValueFromEvent: onNumberValueChange,
|
|
20476
20517
|
rules: [].concat(_toConsumableArray(getReplenishRules('lineAmountIncludeTax')), [{
|
|
@@ -20530,7 +20571,7 @@ var useColumns$1 = (function (form) {
|
|
|
20530
20571
|
return validator;
|
|
20531
20572
|
}()
|
|
20532
20573
|
}])
|
|
20533
|
-
})(React.createElement(MyInput$2, {
|
|
20574
|
+
})( /*#__PURE__*/React.createElement(MyInput$2, {
|
|
20534
20575
|
style: {
|
|
20535
20576
|
textAlign: 'right'
|
|
20536
20577
|
},
|
|
@@ -20541,7 +20582,7 @@ var useColumns$1 = (function (form) {
|
|
|
20541
20582
|
}
|
|
20542
20583
|
})));
|
|
20543
20584
|
} else {
|
|
20544
|
-
return React.createElement("span", {
|
|
20585
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
20545
20586
|
style: {
|
|
20546
20587
|
padding: '0 10px'
|
|
20547
20588
|
}
|
|
@@ -20549,7 +20590,7 @@ var useColumns$1 = (function (form) {
|
|
|
20549
20590
|
}
|
|
20550
20591
|
}
|
|
20551
20592
|
}, {
|
|
20552
|
-
title: React.createElement(TitleText$1, {
|
|
20593
|
+
title: /*#__PURE__*/React.createElement(TitleText$1, {
|
|
20553
20594
|
required: true
|
|
20554
20595
|
}, "\u91D1\u989D(\u4E0D\u542B\u7A0E)"),
|
|
20555
20596
|
dataIndex: 'lineAmountExcludeTax',
|
|
@@ -20558,7 +20599,7 @@ var useColumns$1 = (function (form) {
|
|
|
20558
20599
|
width: 119,
|
|
20559
20600
|
render: function render(value, record) {
|
|
20560
20601
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
20561
|
-
return React.createElement(Form.Item, null, getFieldDecorator('lineAmountExcludeTax', {
|
|
20602
|
+
return /*#__PURE__*/React.createElement(Form.Item, null, getFieldDecorator('lineAmountExcludeTax', {
|
|
20562
20603
|
initialValue: editGood.lineAmountExcludeTax,
|
|
20563
20604
|
getValueFromEvent: onNumberValueChange,
|
|
20564
20605
|
rules: [].concat(_toConsumableArray(getReplenishRules('lineAmountExcludeTax')), [{
|
|
@@ -20593,7 +20634,7 @@ var useColumns$1 = (function (form) {
|
|
|
20593
20634
|
return validator;
|
|
20594
20635
|
}()
|
|
20595
20636
|
}])
|
|
20596
|
-
})(React.createElement(MyInput$2, {
|
|
20637
|
+
})( /*#__PURE__*/React.createElement(MyInput$2, {
|
|
20597
20638
|
style: {
|
|
20598
20639
|
textAlign: 'right'
|
|
20599
20640
|
},
|
|
@@ -20604,7 +20645,7 @@ var useColumns$1 = (function (form) {
|
|
|
20604
20645
|
}
|
|
20605
20646
|
})));
|
|
20606
20647
|
} else {
|
|
20607
|
-
return React.createElement("span", {
|
|
20648
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
20608
20649
|
style: {
|
|
20609
20650
|
padding: '0 10px'
|
|
20610
20651
|
}
|
|
@@ -20612,7 +20653,7 @@ var useColumns$1 = (function (form) {
|
|
|
20612
20653
|
}
|
|
20613
20654
|
}
|
|
20614
20655
|
}, {
|
|
20615
|
-
title: React.createElement(TitleText$1, {
|
|
20656
|
+
title: /*#__PURE__*/React.createElement(TitleText$1, {
|
|
20616
20657
|
required: true
|
|
20617
20658
|
}, "\u7A0E\u7387"),
|
|
20618
20659
|
dataIndex: 'taxRate',
|
|
@@ -20621,7 +20662,7 @@ var useColumns$1 = (function (form) {
|
|
|
20621
20662
|
width: 70,
|
|
20622
20663
|
render: function render(value, record) {
|
|
20623
20664
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
20624
|
-
return React.createElement(Form.Item, null, getFieldDecorator('taxRate', {
|
|
20665
|
+
return /*#__PURE__*/React.createElement(Form.Item, null, getFieldDecorator('taxRate', {
|
|
20625
20666
|
initialValue: editGood.taxRate,
|
|
20626
20667
|
rules: [].concat(_toConsumableArray(getReplenishRules('taxRate')), [{
|
|
20627
20668
|
required: true,
|
|
@@ -20630,7 +20671,7 @@ var useColumns$1 = (function (form) {
|
|
|
20630
20671
|
pattern: /^[+-]?(0|([1-9]\d*))(\.\d+)?$/,
|
|
20631
20672
|
message: ' '
|
|
20632
20673
|
}])
|
|
20633
|
-
})(React.createElement(Select$1, {
|
|
20674
|
+
})( /*#__PURE__*/React.createElement(Select$1, {
|
|
20634
20675
|
className: "kts-invoice-operate-goods-list-table-tax-rate",
|
|
20635
20676
|
// dropdownMenuStyle={{ textAlign: "right" }}
|
|
20636
20677
|
showArrow: false,
|
|
@@ -20642,21 +20683,21 @@ var useColumns$1 = (function (form) {
|
|
|
20642
20683
|
onChangeTaxRate$1(controller, form, record);
|
|
20643
20684
|
}
|
|
20644
20685
|
}, taxRateList.map(function (e, i) {
|
|
20645
|
-
return React.createElement(Select$1.Option, {
|
|
20686
|
+
return /*#__PURE__*/React.createElement(Select$1.Option, {
|
|
20646
20687
|
key: i,
|
|
20647
20688
|
value: e
|
|
20648
20689
|
}, e, "%");
|
|
20649
20690
|
}))));
|
|
20650
20691
|
} else {
|
|
20651
|
-
return React.createElement("span", {
|
|
20692
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
20652
20693
|
style: {
|
|
20653
20694
|
padding: '0 10px'
|
|
20654
20695
|
}
|
|
20655
|
-
}, value, "%");
|
|
20696
|
+
}, isDutyFree$1(record) ? '免税' : "".concat(value, "%"));
|
|
20656
20697
|
}
|
|
20657
20698
|
}
|
|
20658
20699
|
}, {
|
|
20659
|
-
title: React.createElement(TitleText$1, {
|
|
20700
|
+
title: /*#__PURE__*/React.createElement(TitleText$1, {
|
|
20660
20701
|
rules: (_columnsReplenish$tax = columnsReplenish['taxAmount']) === null || _columnsReplenish$tax === void 0 ? void 0 : _columnsReplenish$tax.rules
|
|
20661
20702
|
}, "\u7A0E\u989D"),
|
|
20662
20703
|
dataIndex: 'taxAmount',
|
|
@@ -20668,15 +20709,15 @@ var useColumns$1 = (function (form) {
|
|
|
20668
20709
|
return getFieldDecorator('taxAmount', {
|
|
20669
20710
|
initialValue: editGood.taxAmount,
|
|
20670
20711
|
rules: getReplenishRules('taxAmount')
|
|
20671
|
-
})(React.createElement(MyDiv$2, {
|
|
20712
|
+
})( /*#__PURE__*/React.createElement(MyDiv$2, {
|
|
20672
20713
|
loading: isCipher$1(changeField, 'taxAmount')
|
|
20673
20714
|
}));
|
|
20674
20715
|
} else {
|
|
20675
|
-
return React.createElement("span", {
|
|
20716
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
20676
20717
|
style: {
|
|
20677
20718
|
padding: '0 10px'
|
|
20678
20719
|
}
|
|
20679
|
-
}, parseFloat(value).toFixed(2));
|
|
20720
|
+
}, isDutyFree$1(record) ? '***' : parseFloat(value).toFixed(2));
|
|
20680
20721
|
}
|
|
20681
20722
|
}
|
|
20682
20723
|
} // {
|
|
@@ -20739,13 +20780,13 @@ var MyInput$2 = /*#__PURE__*/function (_React$Component) {
|
|
|
20739
20780
|
key: "render",
|
|
20740
20781
|
value: function render() {
|
|
20741
20782
|
if (this.props.loading) {
|
|
20742
|
-
return React.createElement(Spin$1, {
|
|
20783
|
+
return /*#__PURE__*/React.createElement(Spin$1, {
|
|
20743
20784
|
size: "small"
|
|
20744
|
-
}, React.createElement(Input$1, _objectSpread2(_objectSpread2({}, this.props), {}, {
|
|
20785
|
+
}, /*#__PURE__*/React.createElement(Input$1, _objectSpread2(_objectSpread2({}, this.props), {}, {
|
|
20745
20786
|
autoComplete: "off"
|
|
20746
20787
|
})));
|
|
20747
20788
|
} else {
|
|
20748
|
-
return React.createElement(Input$1, _objectSpread2(_objectSpread2({}, this.props), {}, {
|
|
20789
|
+
return /*#__PURE__*/React.createElement(Input$1, _objectSpread2(_objectSpread2({}, this.props), {}, {
|
|
20749
20790
|
autoComplete: "off"
|
|
20750
20791
|
}));
|
|
20751
20792
|
}
|
|
@@ -20770,15 +20811,15 @@ var MyDiv$2 = /*#__PURE__*/function (_React$Component2) {
|
|
|
20770
20811
|
key: "render",
|
|
20771
20812
|
value: function render() {
|
|
20772
20813
|
if (this.props.loading) {
|
|
20773
|
-
return React.createElement(Spin$1, {
|
|
20814
|
+
return /*#__PURE__*/React.createElement(Spin$1, {
|
|
20774
20815
|
size: "small"
|
|
20775
|
-
}, React.createElement("span", {
|
|
20816
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
20776
20817
|
style: {
|
|
20777
20818
|
padding: '0 10px'
|
|
20778
20819
|
}
|
|
20779
20820
|
}, this.props.value));
|
|
20780
20821
|
} else {
|
|
20781
|
-
return React.createElement("span", {
|
|
20822
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
20782
20823
|
style: {
|
|
20783
20824
|
padding: '0 10px'
|
|
20784
20825
|
}
|
|
@@ -20811,32 +20852,32 @@ var MyItemNameDiv$1 = /*#__PURE__*/function (_React$Component3) {
|
|
|
20811
20852
|
|
|
20812
20853
|
if (isMyShow) {
|
|
20813
20854
|
if (valueT) {
|
|
20814
|
-
return React.createElement(Tooltip$1, {
|
|
20855
|
+
return /*#__PURE__*/React.createElement(Tooltip$1, {
|
|
20815
20856
|
title: valueT
|
|
20816
|
-
}, React.createElement("span", {
|
|
20857
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
20817
20858
|
style: _objectSpread2(_objectSpread2({}, MyItemNameStyle), {}, {
|
|
20818
20859
|
color: '#0074ff'
|
|
20819
20860
|
})
|
|
20820
20861
|
}, valueT));
|
|
20821
20862
|
} else {
|
|
20822
|
-
return React.createElement(Tooltip$1, {
|
|
20863
|
+
return /*#__PURE__*/React.createElement(Tooltip$1, {
|
|
20823
20864
|
title: valueF
|
|
20824
|
-
}, React.createElement("span", {
|
|
20865
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
20825
20866
|
style: MyItemNameStyle
|
|
20826
20867
|
}, valueF));
|
|
20827
20868
|
}
|
|
20828
20869
|
} else {
|
|
20829
20870
|
if (valueF) {
|
|
20830
|
-
return React.createElement(Tooltip$1, {
|
|
20871
|
+
return /*#__PURE__*/React.createElement(Tooltip$1, {
|
|
20831
20872
|
title: valueF
|
|
20832
|
-
}, React.createElement("span", {
|
|
20873
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
20833
20874
|
style: MyItemNameStyle
|
|
20834
20875
|
}, valueF));
|
|
20835
20876
|
} else {
|
|
20836
|
-
return React.createElement(Tooltip$1, {
|
|
20877
|
+
return /*#__PURE__*/React.createElement(Tooltip$1, {
|
|
20837
20878
|
title: valueT,
|
|
20838
20879
|
style: MyItemNameStyle
|
|
20839
|
-
}, React.createElement("span", {
|
|
20880
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
20840
20881
|
style: _objectSpread2(_objectSpread2({}, MyItemNameStyle), {}, {
|
|
20841
20882
|
color: '#0074ff'
|
|
20842
20883
|
})
|
|
@@ -20858,7 +20899,7 @@ function formatSearch$1(value, search) {
|
|
|
20858
20899
|
return dcoding$1(e);
|
|
20859
20900
|
}).join("<span class=\"kts-invoice-operate-goods-list-table-search-protrude\" >".concat(search, "</span>"));
|
|
20860
20901
|
|
|
20861
|
-
return React.createElement("span", {
|
|
20902
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
20862
20903
|
dangerouslySetInnerHTML: {
|
|
20863
20904
|
__html: __html
|
|
20864
20905
|
}
|
|
@@ -20880,6 +20921,13 @@ function dcoding$1(v) {
|
|
|
20880
20921
|
return e ? String.fromCharCode(parseInt(e.replace('E', ''))) : '';
|
|
20881
20922
|
}).join('');
|
|
20882
20923
|
}
|
|
20924
|
+
/** 是否免税 */
|
|
20925
|
+
|
|
20926
|
+
|
|
20927
|
+
function isDutyFree$1(record) {
|
|
20928
|
+
console.log(record);
|
|
20929
|
+
return record.taxFreeType === 1 && record.favouredPolicyName === '免税';
|
|
20930
|
+
}
|
|
20883
20931
|
|
|
20884
20932
|
var MyItemNameStyle = {
|
|
20885
20933
|
padding: '0px 10px',
|
|
@@ -21246,7 +21294,7 @@ var useRowSelection$1 = (function () {
|
|
|
21246
21294
|
};
|
|
21247
21295
|
}(), [controller]);
|
|
21248
21296
|
var columnTitle = React.useMemo(function () {
|
|
21249
|
-
return React.createElement(Checkbox, {
|
|
21297
|
+
return /*#__PURE__*/React.createElement(Checkbox, {
|
|
21250
21298
|
onChange: onClickSelectAll,
|
|
21251
21299
|
indeterminate: indeterminate,
|
|
21252
21300
|
checked: isAll
|
|
@@ -21395,19 +21443,19 @@ var useDelRowButton$1 = (function () {
|
|
|
21395
21443
|
}, _callee2);
|
|
21396
21444
|
})), []);
|
|
21397
21445
|
var menuItem = React.useMemo(function () {
|
|
21398
|
-
if (model === 'prefab') return React.createElement(React.Fragment, null);
|
|
21399
|
-
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
21400
|
-
return React.createElement(Menu$1.Item, {
|
|
21446
|
+
if (model === 'prefab') return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
21447
|
+
if (model === 'readOnly') return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
21448
|
+
return /*#__PURE__*/React.createElement(Menu$1.Item, {
|
|
21401
21449
|
key: "1",
|
|
21402
21450
|
onClick: onClick,
|
|
21403
21451
|
disabled: disabled
|
|
21404
21452
|
}, " \u5220\u9664\u884C ");
|
|
21405
21453
|
}, [model, onClick, disabled]);
|
|
21406
21454
|
var button = React.useMemo(function () {
|
|
21407
|
-
if (isRemRow === false) return React.createElement(React.Fragment, null);
|
|
21408
|
-
if (model === 'prefab') return React.createElement(React.Fragment, null);
|
|
21409
|
-
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
21410
|
-
return React.createElement(Button$1, {
|
|
21455
|
+
if (isRemRow === false) return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
21456
|
+
if (model === 'prefab') return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
21457
|
+
if (model === 'readOnly') return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
21458
|
+
return /*#__PURE__*/React.createElement(Button$1, {
|
|
21411
21459
|
size: 'small',
|
|
21412
21460
|
onClick: onClick,
|
|
21413
21461
|
disabled: disabled
|
|
@@ -21638,16 +21686,16 @@ var useAddDiscountRowButton$1 = (function () {
|
|
|
21638
21686
|
}, [isAddDiscount, model]);
|
|
21639
21687
|
var button = React.useMemo(function () {
|
|
21640
21688
|
if (isEnable) {
|
|
21641
|
-
return React.createElement(React.Fragment, null, React.createElement(Button$1, {
|
|
21689
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Button$1, {
|
|
21642
21690
|
size: 'small',
|
|
21643
21691
|
onClick: onOpen,
|
|
21644
21692
|
disabled: disabled
|
|
21645
|
-
}, "\u6DFB\u52A0\u6298\u6263"), React.createElement(AddDiscountRowDrawer, {
|
|
21693
|
+
}, "\u6DFB\u52A0\u6298\u6263"), /*#__PURE__*/React.createElement(AddDiscountRowDrawer, {
|
|
21646
21694
|
open: open,
|
|
21647
21695
|
onClose: onClose
|
|
21648
21696
|
}));
|
|
21649
21697
|
} else {
|
|
21650
|
-
return React.createElement(React.Fragment, null);
|
|
21698
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
21651
21699
|
}
|
|
21652
21700
|
}, [open, onOpen, onClose, isEnable, disabled]);
|
|
21653
21701
|
return {
|
|
@@ -21828,35 +21876,35 @@ function AddDiscountRowDrawer(props) {
|
|
|
21828
21876
|
discolineValue: undefined
|
|
21829
21877
|
}));
|
|
21830
21878
|
}, [formValues === null || formValues === void 0 ? void 0 : formValues.discolineType]);
|
|
21831
|
-
return React.createElement(Drawer$1, {
|
|
21879
|
+
return /*#__PURE__*/React.createElement(Drawer$1, {
|
|
21832
21880
|
title: "\u6DFB\u52A0\u6298\u6263",
|
|
21833
21881
|
placement: "right",
|
|
21834
21882
|
width: 350,
|
|
21835
21883
|
onClose: onClose,
|
|
21836
21884
|
open: open,
|
|
21837
|
-
footer: React.createElement(Space, {
|
|
21885
|
+
footer: /*#__PURE__*/React.createElement(Space, {
|
|
21838
21886
|
size: "middle",
|
|
21839
21887
|
style: {
|
|
21840
21888
|
display: 'flex',
|
|
21841
21889
|
justifyContent: 'end'
|
|
21842
21890
|
}
|
|
21843
|
-
}, React.createElement(Button$1, {
|
|
21891
|
+
}, /*#__PURE__*/React.createElement(Button$1, {
|
|
21844
21892
|
onClick: onDefine,
|
|
21845
21893
|
type: 'primary'
|
|
21846
|
-
}, "\u786E\u5B9A"), React.createElement(Button$1, {
|
|
21894
|
+
}, "\u786E\u5B9A"), /*#__PURE__*/React.createElement(Button$1, {
|
|
21847
21895
|
onClick: onClose
|
|
21848
21896
|
}, "\u53D6\u6D88"))
|
|
21849
|
-
}, React.createElement(Form$1, {
|
|
21897
|
+
}, /*#__PURE__*/React.createElement(Form$1, {
|
|
21850
21898
|
form: form,
|
|
21851
21899
|
layout: 'vertical',
|
|
21852
21900
|
onChange: onChangeForm
|
|
21853
|
-
}, React.createElement(Form$1.Item, {
|
|
21901
|
+
}, /*#__PURE__*/React.createElement(Form$1.Item, {
|
|
21854
21902
|
label: "\u5546\u54C1\u91D1\u989D\uFF08\u542B\u7A0E\uFF09"
|
|
21855
|
-
}, totalAmount.toFixed(2), "\uFF08\u5171 ", discountGood.length, " \u884C\uFF09"), React.createElement(Form$1.Item, {
|
|
21903
|
+
}, totalAmount.toFixed(2), "\uFF08\u5171 ", discountGood.length, " \u884C\uFF09"), /*#__PURE__*/React.createElement(Form$1.Item, {
|
|
21856
21904
|
label: "\u6298\u6263\u65B9\u5F0F",
|
|
21857
21905
|
name: 'discolineType',
|
|
21858
21906
|
initialValue: '1'
|
|
21859
|
-
}, React.createElement(Radio.Group, {
|
|
21907
|
+
}, /*#__PURE__*/React.createElement(Radio.Group, {
|
|
21860
21908
|
options: [{
|
|
21861
21909
|
label: '按金额折扣',
|
|
21862
21910
|
value: '1'
|
|
@@ -21864,7 +21912,7 @@ function AddDiscountRowDrawer(props) {
|
|
|
21864
21912
|
label: '按比例折扣',
|
|
21865
21913
|
value: '2'
|
|
21866
21914
|
}]
|
|
21867
|
-
})), (formValues === null || formValues === void 0 ? void 0 : formValues.discolineType) === '1' ? React.createElement(Form$1.Item, {
|
|
21915
|
+
})), (formValues === null || formValues === void 0 ? void 0 : formValues.discolineType) === '1' ? /*#__PURE__*/React.createElement(Form$1.Item, {
|
|
21868
21916
|
label: "\u6298\u6263\u91D1\u989D\uFF08\u5143\uFF09\uFF08\u542B\u7A0E\uFF09",
|
|
21869
21917
|
name: 'discolineValue',
|
|
21870
21918
|
rules: [{
|
|
@@ -21915,11 +21963,11 @@ function AddDiscountRowDrawer(props) {
|
|
|
21915
21963
|
return validator;
|
|
21916
21964
|
}()
|
|
21917
21965
|
}]
|
|
21918
|
-
}, React.createElement(InputNumber, {
|
|
21966
|
+
}, /*#__PURE__*/React.createElement(InputNumber, {
|
|
21919
21967
|
style: {
|
|
21920
21968
|
width: '100%'
|
|
21921
21969
|
}
|
|
21922
|
-
})) : React.createElement(Form$1.Item, {
|
|
21970
|
+
})) : /*#__PURE__*/React.createElement(Form$1.Item, {
|
|
21923
21971
|
label: "\u6298\u6263\u6BD4\u4F8B\uFF08%\uFF09\uFF08\u542B\u7A0E\uFF09",
|
|
21924
21972
|
name: 'discolineValue',
|
|
21925
21973
|
rules: [{
|
|
@@ -21970,7 +22018,7 @@ function AddDiscountRowDrawer(props) {
|
|
|
21970
22018
|
return validator;
|
|
21971
22019
|
}()
|
|
21972
22020
|
}]
|
|
21973
|
-
}, React.createElement(InputNumber, {
|
|
22021
|
+
}, /*#__PURE__*/React.createElement(InputNumber, {
|
|
21974
22022
|
style: {
|
|
21975
22023
|
width: '100%'
|
|
21976
22024
|
}
|
|
@@ -22114,16 +22162,16 @@ var useEndowCodeButton$1 = (function () {
|
|
|
22114
22162
|
}, _callee2);
|
|
22115
22163
|
})), [controller]);
|
|
22116
22164
|
var menuItem = React.useMemo(function () {
|
|
22117
|
-
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
22118
|
-
return React.createElement(Menu$1.Item, {
|
|
22165
|
+
if (model === 'readOnly') return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
22166
|
+
return /*#__PURE__*/React.createElement(Menu$1.Item, {
|
|
22119
22167
|
key: "2",
|
|
22120
22168
|
onClick: onClick,
|
|
22121
22169
|
disabled: disabled
|
|
22122
22170
|
}, "\u6279\u91CF\u8D4B\u7801");
|
|
22123
22171
|
}, [onClick, disabled, model]);
|
|
22124
22172
|
var button = React.useMemo(function () {
|
|
22125
|
-
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
22126
|
-
return React.createElement(Button$1, {
|
|
22173
|
+
if (model === 'readOnly') return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
22174
|
+
return /*#__PURE__*/React.createElement(Button$1, {
|
|
22127
22175
|
onClick: onClick,
|
|
22128
22176
|
disabled: disabled,
|
|
22129
22177
|
size: 'small'
|
|
@@ -22185,14 +22233,14 @@ var useEmptyRefill = (function () {
|
|
|
22185
22233
|
}());
|
|
22186
22234
|
}, [controller]);
|
|
22187
22235
|
var button = React.useMemo(function () {
|
|
22188
|
-
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
22189
|
-
if (model === 'prefab') return React.createElement(React.Fragment, null);
|
|
22190
|
-
return React.createElement(Popconfirm, {
|
|
22236
|
+
if (model === 'readOnly') return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
22237
|
+
if (model === 'prefab') return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
22238
|
+
return /*#__PURE__*/React.createElement(Popconfirm, {
|
|
22191
22239
|
title: "\u5C06\u8981\u6E05\u7A7A\u6240\u6709\u9879\u76EE\u4FE1\u606F\uFF0C\u662F\u5426\u7EE7\u7EED",
|
|
22192
22240
|
onConfirm: confirm,
|
|
22193
22241
|
okText: "\u786E\u5B9A",
|
|
22194
22242
|
cancelText: "\u53D6\u6D88"
|
|
22195
|
-
}, React.createElement(Button$1, {
|
|
22243
|
+
}, /*#__PURE__*/React.createElement(Button$1, {
|
|
22196
22244
|
size: 'small'
|
|
22197
22245
|
}, "\u6E05\u7A7A\u91CD\u586B"));
|
|
22198
22246
|
}, [model, confirm]);
|
|
@@ -22259,14 +22307,14 @@ function InvoiceTypeModal(props) {
|
|
|
22259
22307
|
setValues(values);
|
|
22260
22308
|
}
|
|
22261
22309
|
}, [props.open, props.defaultBillingType, props.defaultBusiness, props.defaultInvoiceType, form]);
|
|
22262
|
-
return React.createElement(Modal, {
|
|
22310
|
+
return /*#__PURE__*/React.createElement(Modal, {
|
|
22263
22311
|
title: props.modalTitle || "选择开具信息",
|
|
22264
22312
|
open: props.open,
|
|
22265
22313
|
onOk: onConfirm,
|
|
22266
22314
|
onCancel: props.onCancel,
|
|
22267
22315
|
okText: "\u786E\u5B9A",
|
|
22268
22316
|
cancelText: "\u53D6\u6D88"
|
|
22269
|
-
}, React.createElement(Form$1, {
|
|
22317
|
+
}, /*#__PURE__*/React.createElement(Form$1, {
|
|
22270
22318
|
form: form,
|
|
22271
22319
|
layout: "vertical",
|
|
22272
22320
|
style: {
|
|
@@ -22275,13 +22323,13 @@ function InvoiceTypeModal(props) {
|
|
|
22275
22323
|
onValuesChange: function onValuesChange(_, e) {
|
|
22276
22324
|
setValues(e);
|
|
22277
22325
|
}
|
|
22278
|
-
}, React.createElement(Row, {
|
|
22326
|
+
}, /*#__PURE__*/React.createElement(Row, {
|
|
22279
22327
|
gutter: [16, 16]
|
|
22280
|
-
}, React.createElement(Col, {
|
|
22328
|
+
}, /*#__PURE__*/React.createElement(Col, {
|
|
22281
22329
|
span: 24
|
|
22282
|
-
}, React.createElement(Form$1.Item, {
|
|
22330
|
+
}, /*#__PURE__*/React.createElement(Form$1.Item, {
|
|
22283
22331
|
name: 'billingType'
|
|
22284
|
-
}, React.createElement(Radio.Group, {
|
|
22332
|
+
}, /*#__PURE__*/React.createElement(Radio.Group, {
|
|
22285
22333
|
size: 'large',
|
|
22286
22334
|
className: "goods-list-digtal-reselect-invoice-typeModal-radio",
|
|
22287
22335
|
optionType: "button",
|
|
@@ -22294,27 +22342,27 @@ function InvoiceTypeModal(props) {
|
|
|
22294
22342
|
label: '税控发票',
|
|
22295
22343
|
value: 'taxation'
|
|
22296
22344
|
}]
|
|
22297
|
-
}))), React.createElement(Col, {
|
|
22345
|
+
}))), /*#__PURE__*/React.createElement(Col, {
|
|
22298
22346
|
span: 12
|
|
22299
|
-
}, React.createElement(Form$1.Item, {
|
|
22347
|
+
}, /*#__PURE__*/React.createElement(Form$1.Item, {
|
|
22300
22348
|
name: 'invoiceType',
|
|
22301
22349
|
label: "\u9009\u62E9\u7968\u7C7B",
|
|
22302
22350
|
rules: [{
|
|
22303
22351
|
required: true,
|
|
22304
22352
|
message: '选择票类必填'
|
|
22305
22353
|
}]
|
|
22306
|
-
}, React.createElement(Select$1, {
|
|
22354
|
+
}, /*#__PURE__*/React.createElement(Select$1, {
|
|
22307
22355
|
size: 'large',
|
|
22308
22356
|
allowClear: true,
|
|
22309
22357
|
placeholder: "\u8BF7\u9009\u62E9\uFF08\u5FC5\u586B\u9879\uFF09",
|
|
22310
22358
|
disabled: disableds.indexOf('invoiceType') >= 0,
|
|
22311
22359
|
options: props.invoiceTypeOptions
|
|
22312
|
-
}))), React.createElement(Col, {
|
|
22360
|
+
}))), /*#__PURE__*/React.createElement(Col, {
|
|
22313
22361
|
span: 12
|
|
22314
|
-
}, React.createElement(Form$1.Item, {
|
|
22362
|
+
}, /*#__PURE__*/React.createElement(Form$1.Item, {
|
|
22315
22363
|
name: 'business',
|
|
22316
22364
|
label: "\u7279\u5B9A\u4E1A\u52A1"
|
|
22317
|
-
}, React.createElement(Select$1, {
|
|
22365
|
+
}, /*#__PURE__*/React.createElement(Select$1, {
|
|
22318
22366
|
size: 'large',
|
|
22319
22367
|
allowClear: true,
|
|
22320
22368
|
placeholder: "\u8BF7\u9009\u62E9\uFF08\u975E\u5FC5\u586B\u9879\uFF09",
|
|
@@ -22359,11 +22407,11 @@ var useReselectInvoiceType = (function () {
|
|
|
22359
22407
|
return true;
|
|
22360
22408
|
}, [model, typeModalProps === null || typeModalProps === void 0 ? void 0 : typeModalProps.isDisabled]);
|
|
22361
22409
|
var button = React.useMemo(function () {
|
|
22362
|
-
if (isEnable === false) return React.createElement(React.Fragment, null);
|
|
22363
|
-
return React.createElement(React.Fragment, null, React.createElement(Button$1, {
|
|
22410
|
+
if (isEnable === false) return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
22411
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Button$1, {
|
|
22364
22412
|
size: 'small',
|
|
22365
22413
|
onClick: onOpen
|
|
22366
|
-
}, "\u91CD\u9009\u53D1\u7968\u7C7B\u578B"), React.createElement(InvoiceTypeModal, _objectSpread2(_objectSpread2({}, typeModalProps), {}, {
|
|
22414
|
+
}, "\u91CD\u9009\u53D1\u7968\u7C7B\u578B"), /*#__PURE__*/React.createElement(InvoiceTypeModal, _objectSpread2(_objectSpread2({}, typeModalProps), {}, {
|
|
22367
22415
|
open: open,
|
|
22368
22416
|
onCancel: onClose,
|
|
22369
22417
|
onOk: onOk
|
|
@@ -22391,7 +22439,7 @@ var GoodsList$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
22391
22439
|
_createClass(GoodsList, [{
|
|
22392
22440
|
key: "render",
|
|
22393
22441
|
value: function render() {
|
|
22394
|
-
return React.createElement(Main$3, _objectSpread2({}, this.props));
|
|
22442
|
+
return /*#__PURE__*/React.createElement(Main$3, _objectSpread2({}, this.props));
|
|
22395
22443
|
}
|
|
22396
22444
|
}]);
|
|
22397
22445
|
|
|
@@ -22592,20 +22640,20 @@ var Main$3 = decorator(Form.create())(function (props) {
|
|
|
22592
22640
|
};
|
|
22593
22641
|
}())();
|
|
22594
22642
|
}, [controller, props.isSwitchTax]);
|
|
22595
|
-
return React.createElement("div", {
|
|
22643
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
22596
22644
|
className: "kts-invoice-operate-goods-list-digtal",
|
|
22597
22645
|
onClick: function onClick(e) {
|
|
22598
22646
|
e.stopPropagation();
|
|
22599
22647
|
}
|
|
22600
|
-
}, React.createElement("div", {
|
|
22648
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
22601
22649
|
className: "kts-invoice-operate-goods-list-able"
|
|
22602
|
-
}, React.createElement(AddRowButton$1, null), delRowButton.button, addDiscountRowButton.button, endowCodeButton.button, React.createElement(TaxIncludedSwitch$1, null), React.createElement(Search$1, null), React.createElement("div", {
|
|
22650
|
+
}, /*#__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", {
|
|
22603
22651
|
style: {
|
|
22604
22652
|
flex: 1
|
|
22605
22653
|
}
|
|
22606
|
-
}), props.menuExpansion, reselectInvoiceType.button, emptyRefill.button), React.createElement("div", {
|
|
22654
|
+
}), props.menuExpansion, reselectInvoiceType.button, emptyRefill.button), /*#__PURE__*/React.createElement("div", {
|
|
22607
22655
|
className: classNames('kts-invoice-operate-goods-list-table-digtal')
|
|
22608
|
-
}, React.createElement(TableVirtual$1, {
|
|
22656
|
+
}, /*#__PURE__*/React.createElement(TableVirtual$1, {
|
|
22609
22657
|
size: "small",
|
|
22610
22658
|
rowKey: "$index",
|
|
22611
22659
|
pagination: false,
|
|
@@ -22627,7 +22675,7 @@ var Main$3 = decorator(Form.create())(function (props) {
|
|
|
22627
22675
|
}
|
|
22628
22676
|
};
|
|
22629
22677
|
}
|
|
22630
|
-
})), React.createElement("div", null, React.createElement(Statistics$1, null)));
|
|
22678
|
+
})), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Statistics$1, null)));
|
|
22631
22679
|
});
|
|
22632
22680
|
|
|
22633
22681
|
var ImportBuyerDrawer = (function () {
|
|
@@ -22661,7 +22709,7 @@ var ImportBuyerDrawer = (function () {
|
|
|
22661
22709
|
};
|
|
22662
22710
|
}())();
|
|
22663
22711
|
}, [controller]);
|
|
22664
|
-
return React.createElement(Drawer, {
|
|
22712
|
+
return /*#__PURE__*/React.createElement(Drawer, {
|
|
22665
22713
|
title: "\u8D2D\u65B9\u5217\u8868",
|
|
22666
22714
|
placement: "right",
|
|
22667
22715
|
// closable={false}
|
|
@@ -22669,7 +22717,7 @@ var ImportBuyerDrawer = (function () {
|
|
|
22669
22717
|
width: 983,
|
|
22670
22718
|
onClose: onClose,
|
|
22671
22719
|
visible: visible
|
|
22672
|
-
}, topExpand, React.createElement(DrawerBody$1, null));
|
|
22720
|
+
}, topExpand, /*#__PURE__*/React.createElement(DrawerBody$1, null));
|
|
22673
22721
|
});
|
|
22674
22722
|
|
|
22675
22723
|
var DrawerBody$1 = function DrawerBody() {
|
|
@@ -22690,7 +22738,7 @@ var DrawerBody$1 = function DrawerBody() {
|
|
|
22690
22738
|
}
|
|
22691
22739
|
});
|
|
22692
22740
|
}, [controller]);
|
|
22693
|
-
return React.createElement(Table$1, {
|
|
22741
|
+
return /*#__PURE__*/React.createElement(Table$1, {
|
|
22694
22742
|
bordered: true,
|
|
22695
22743
|
size: "small",
|
|
22696
22744
|
columns: columns,
|
|
@@ -22790,7 +22838,7 @@ var ImportGoodsDrawer = (function () {
|
|
|
22790
22838
|
};
|
|
22791
22839
|
}())();
|
|
22792
22840
|
}, [controller]);
|
|
22793
|
-
return React.createElement(Drawer, {
|
|
22841
|
+
return /*#__PURE__*/React.createElement(Drawer, {
|
|
22794
22842
|
title: "\u5546\u54C1\u5217\u8868",
|
|
22795
22843
|
placement: "right",
|
|
22796
22844
|
// closable={false}
|
|
@@ -22798,11 +22846,11 @@ var ImportGoodsDrawer = (function () {
|
|
|
22798
22846
|
width: 983,
|
|
22799
22847
|
onClose: onClose,
|
|
22800
22848
|
visible: visible
|
|
22801
|
-
}, topExpand && React.createElement("div", {
|
|
22849
|
+
}, topExpand && /*#__PURE__*/React.createElement("div", {
|
|
22802
22850
|
style: {
|
|
22803
22851
|
marginBottom: 10
|
|
22804
22852
|
}
|
|
22805
|
-
}, topExpand), React.createElement(DrawerBody$2, null));
|
|
22853
|
+
}, topExpand), /*#__PURE__*/React.createElement(DrawerBody$2, null));
|
|
22806
22854
|
});
|
|
22807
22855
|
|
|
22808
22856
|
var DrawerBody$2 = function DrawerBody() {
|
|
@@ -22824,7 +22872,7 @@ var DrawerBody$2 = function DrawerBody() {
|
|
|
22824
22872
|
}
|
|
22825
22873
|
});
|
|
22826
22874
|
}, [controller]);
|
|
22827
|
-
return React.createElement(Table$1, {
|
|
22875
|
+
return /*#__PURE__*/React.createElement(Table$1, {
|
|
22828
22876
|
bordered: true,
|
|
22829
22877
|
size: "small",
|
|
22830
22878
|
columns: columns,
|
|
@@ -23111,7 +23159,7 @@ var EndowCodeDrawer = (function () {
|
|
|
23111
23159
|
setDefaultValue(undefined);
|
|
23112
23160
|
}
|
|
23113
23161
|
}, [visible]);
|
|
23114
|
-
return React.createElement(Drawer, {
|
|
23162
|
+
return /*#__PURE__*/React.createElement(Drawer, {
|
|
23115
23163
|
title: "\u8D4B\u7801",
|
|
23116
23164
|
placement: "right",
|
|
23117
23165
|
destroyOnClose: true,
|
|
@@ -23119,7 +23167,7 @@ var EndowCodeDrawer = (function () {
|
|
|
23119
23167
|
width: 383,
|
|
23120
23168
|
onClose: onClose,
|
|
23121
23169
|
visible: visible
|
|
23122
|
-
}, defaultValue && React.createElement(DrawerBody$3, {
|
|
23170
|
+
}, defaultValue && /*#__PURE__*/React.createElement(DrawerBody$3, {
|
|
23123
23171
|
defaultValue: defaultValue
|
|
23124
23172
|
}));
|
|
23125
23173
|
});
|
|
@@ -23259,7 +23307,7 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23259
23307
|
};
|
|
23260
23308
|
}());
|
|
23261
23309
|
}, [actions, dataSource, readOnlyTaxRate]);
|
|
23262
|
-
return React.createElement(Select, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
23310
|
+
return /*#__PURE__*/React.createElement(Select, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
23263
23311
|
showSearch: true,
|
|
23264
23312
|
showArrow: false,
|
|
23265
23313
|
notFoundContent: null,
|
|
@@ -23267,7 +23315,7 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23267
23315
|
onSearch: onSearch,
|
|
23268
23316
|
onChange: onChange
|
|
23269
23317
|
}), dataSource.map(function (e) {
|
|
23270
|
-
return React.createElement(Select.Option, {
|
|
23318
|
+
return /*#__PURE__*/React.createElement(Select.Option, {
|
|
23271
23319
|
key: e.value,
|
|
23272
23320
|
value: e.value
|
|
23273
23321
|
}, e.label);
|
|
@@ -23297,14 +23345,14 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23297
23345
|
|
|
23298
23346
|
|
|
23299
23347
|
var createTreeNode = React.useCallback(function () {
|
|
23300
|
-
if (!list) return React.createElement(React.Fragment, null);
|
|
23348
|
+
if (!list) return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
23301
23349
|
return ctn(list);
|
|
23302
23350
|
|
|
23303
23351
|
function title(label) {
|
|
23304
23352
|
if (!filter) return label;
|
|
23305
23353
|
label = (filter.taxCategoryCode ? label.split(new RegExp(filter.taxCategoryCode, 'g')) : [label]).join("<span style=\"color: #1890ff;\">".concat(filter.taxCategoryCode, "</span>"));
|
|
23306
23354
|
label = (filter.val ? label.split(new RegExp(filter.val, 'g')) : [label]).join("<span style=\"color: #1890ff;\">".concat(filter.val, "</span>"));
|
|
23307
|
-
return React.createElement("span", {
|
|
23355
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
23308
23356
|
dangerouslySetInnerHTML: {
|
|
23309
23357
|
__html: label
|
|
23310
23358
|
}
|
|
@@ -23313,11 +23361,11 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23313
23361
|
|
|
23314
23362
|
function ctn(l) {
|
|
23315
23363
|
var p = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '0';
|
|
23316
|
-
if (!l || !l.length) return [React.createElement(React.Fragment, null)];
|
|
23364
|
+
if (!l || !l.length) return [/*#__PURE__*/React.createElement(React.Fragment, null)];
|
|
23317
23365
|
return l.filter(function (e) {
|
|
23318
23366
|
return e.pid === p;
|
|
23319
23367
|
}).map(function (e) {
|
|
23320
|
-
return React.createElement(TreeNode, {
|
|
23368
|
+
return /*#__PURE__*/React.createElement(TreeNode, {
|
|
23321
23369
|
title: title(e.label),
|
|
23322
23370
|
key: e.id
|
|
23323
23371
|
}, ctn(l, e.id));
|
|
@@ -23430,46 +23478,46 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23430
23478
|
setList([]);
|
|
23431
23479
|
}
|
|
23432
23480
|
}, [visible]);
|
|
23433
|
-
return React.createElement(React.Fragment, null, React.createElement(Input, {
|
|
23481
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Input, {
|
|
23434
23482
|
readOnly: true,
|
|
23435
23483
|
value: props.value,
|
|
23436
|
-
addonAfter: React.createElement(Button, {
|
|
23484
|
+
addonAfter: /*#__PURE__*/React.createElement(Button, {
|
|
23437
23485
|
size: "small",
|
|
23438
23486
|
type: "link",
|
|
23439
23487
|
onClick: function onClick() {
|
|
23440
23488
|
setVisible(true);
|
|
23441
23489
|
}
|
|
23442
23490
|
}, "\u70B9\u51FB\u9009\u62E9")
|
|
23443
|
-
}), React.createElement(Drawer, {
|
|
23491
|
+
}), /*#__PURE__*/React.createElement(Drawer, {
|
|
23444
23492
|
title: "\u7A0E\u6536\u5206\u7C7B\u7F16\u7801",
|
|
23445
23493
|
visible: visible,
|
|
23446
23494
|
width: 500,
|
|
23447
23495
|
onClose: function onClose() {
|
|
23448
23496
|
setVisible(false);
|
|
23449
23497
|
}
|
|
23450
|
-
}, React.createElement(Form, {
|
|
23498
|
+
}, /*#__PURE__*/React.createElement(Form, {
|
|
23451
23499
|
key: "".concat(visible)
|
|
23452
|
-
}, React.createElement(Form.Item, {
|
|
23500
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
23453
23501
|
label: "\u4EA7\u54C1\u6216\u670D\u52A1\u7B80\u79F0"
|
|
23454
|
-
}, React.createElement(Input, {
|
|
23502
|
+
}, /*#__PURE__*/React.createElement(Input, {
|
|
23455
23503
|
onChange: function onChange(e) {
|
|
23456
23504
|
setFilter(_objectSpread2(_objectSpread2({}, filter), {}, {
|
|
23457
23505
|
val: e.target.value
|
|
23458
23506
|
}));
|
|
23459
23507
|
}
|
|
23460
|
-
})), React.createElement(Form.Item, {
|
|
23508
|
+
})), /*#__PURE__*/React.createElement(Form.Item, {
|
|
23461
23509
|
label: "\u7A0E\u6536\u5206\u7C7B\u7F16\u7801"
|
|
23462
|
-
}, React.createElement(Input, {
|
|
23510
|
+
}, /*#__PURE__*/React.createElement(Input, {
|
|
23463
23511
|
onChange: function onChange(e) {
|
|
23464
23512
|
setFilter(_objectSpread2(_objectSpread2({}, filter), {}, {
|
|
23465
23513
|
taxCategoryCode: e.target.value
|
|
23466
23514
|
}));
|
|
23467
23515
|
}
|
|
23468
|
-
}))), list && list.length > 0 ? React.createElement(Tree, {
|
|
23516
|
+
}))), list && list.length > 0 ? /*#__PURE__*/React.createElement(Tree, {
|
|
23469
23517
|
defaultExpandAll: true,
|
|
23470
23518
|
selectedKeys: [],
|
|
23471
23519
|
onSelect: onSelect
|
|
23472
|
-
}, createTreeNode()) : React.createElement("span", {
|
|
23520
|
+
}, createTreeNode()) : /*#__PURE__*/React.createElement("span", {
|
|
23473
23521
|
style: {
|
|
23474
23522
|
color: '#00000073'
|
|
23475
23523
|
}
|
|
@@ -23675,11 +23723,11 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23675
23723
|
return data;
|
|
23676
23724
|
};
|
|
23677
23725
|
|
|
23678
|
-
return React.createElement(React.Fragment, null, React.createElement(Input, {
|
|
23726
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Input, {
|
|
23679
23727
|
readOnly: true,
|
|
23680
23728
|
onClick: onClick,
|
|
23681
23729
|
value: props.value
|
|
23682
|
-
}), React.createElement(TaxClassificationModal, {
|
|
23730
|
+
}), /*#__PURE__*/React.createElement(TaxClassificationModal, {
|
|
23683
23731
|
list: list,
|
|
23684
23732
|
open: open,
|
|
23685
23733
|
onSelect: onSelect,
|
|
@@ -23798,14 +23846,14 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23798
23846
|
React.useEffect(function () {
|
|
23799
23847
|
if (controller.getTaxCategoryCodeList) controller.getTaxCategoryCodeList();
|
|
23800
23848
|
}, [controller]);
|
|
23801
|
-
return React.createElement(SchemaForm, {
|
|
23849
|
+
return /*#__PURE__*/React.createElement(SchemaForm, {
|
|
23802
23850
|
actions: actions,
|
|
23803
23851
|
previewPlaceholder: " ",
|
|
23804
23852
|
components: _objectSpread2(_objectSpread2({}, components), {}, {
|
|
23805
23853
|
showSearch: !!controller.state.goodsListState.endowCode.onLoadTaxClassificationCode ? ShowSearch3 : ShowSearch
|
|
23806
23854
|
}),
|
|
23807
23855
|
effects: effects
|
|
23808
|
-
}, React.createElement(FormButtonGroup, null, React.createElement(SchemaMarkupField, {
|
|
23856
|
+
}, /*#__PURE__*/React.createElement(FormButtonGroup, null, /*#__PURE__*/React.createElement(SchemaMarkupField, {
|
|
23809
23857
|
name: "taxClassificationCode",
|
|
23810
23858
|
type: "showSearch",
|
|
23811
23859
|
title: "\u7A0E\u6536\u5206\u7C7B\u7F16\u7801",
|
|
@@ -23815,13 +23863,13 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23815
23863
|
message: '请选择税收分类编码',
|
|
23816
23864
|
required: true
|
|
23817
23865
|
}]
|
|
23818
|
-
}), React.createElement(SchemaMarkupField, {
|
|
23866
|
+
}), /*#__PURE__*/React.createElement(SchemaMarkupField, {
|
|
23819
23867
|
name: "shorthand",
|
|
23820
23868
|
type: "string",
|
|
23821
23869
|
readOnly: true,
|
|
23822
23870
|
default: defaultValue === null || defaultValue === void 0 ? void 0 : defaultValue.shorthand,
|
|
23823
23871
|
title: "\u5546\u54C1\u548C\u670D\u52A1\u5206\u7C7B\u7B80\u79F0"
|
|
23824
|
-
}), React.createElement(SchemaMarkupField, {
|
|
23872
|
+
}), /*#__PURE__*/React.createElement(SchemaMarkupField, {
|
|
23825
23873
|
name: "taxRate",
|
|
23826
23874
|
type: "string",
|
|
23827
23875
|
title: "\u7A0E\u7387",
|
|
@@ -23834,7 +23882,7 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23834
23882
|
message: '请选择税率',
|
|
23835
23883
|
required: true
|
|
23836
23884
|
}]
|
|
23837
|
-
}), taxRate === 0 && isTaxFreeTypeNeeded && React.createElement(SchemaMarkupField, {
|
|
23885
|
+
}), taxRate === 0 && isTaxFreeTypeNeeded && /*#__PURE__*/React.createElement(SchemaMarkupField, {
|
|
23838
23886
|
name: "taxFreeType",
|
|
23839
23887
|
type: "string",
|
|
23840
23888
|
title: "\u514D\u7A0E\u7C7B\u578B",
|
|
@@ -23847,7 +23895,7 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23847
23895
|
message: '请选择免税类型',
|
|
23848
23896
|
required: true
|
|
23849
23897
|
}]
|
|
23850
|
-
}), React.createElement(SchemaMarkupField, {
|
|
23898
|
+
}), /*#__PURE__*/React.createElement(SchemaMarkupField, {
|
|
23851
23899
|
name: "favouredPolicyMark",
|
|
23852
23900
|
type: "number",
|
|
23853
23901
|
title: "\u662F\u5426\u4EAB\u53D7\u4F18\u60E0\u653F\u7B56",
|
|
@@ -23866,7 +23914,7 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23866
23914
|
message: '请选择是否享受优惠政策',
|
|
23867
23915
|
required: true
|
|
23868
23916
|
}]
|
|
23869
|
-
}), favouredPolicyMark === 1 && React.createElement(SchemaMarkupField, {
|
|
23917
|
+
}), favouredPolicyMark === 1 && /*#__PURE__*/React.createElement(SchemaMarkupField, {
|
|
23870
23918
|
name: "favouredPolicyName",
|
|
23871
23919
|
type: "string",
|
|
23872
23920
|
title: "\u4F18\u60E0\u653F\u7B56\u7C7B\u578B",
|
|
@@ -23879,14 +23927,14 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23879
23927
|
message: '请选择是否享受优惠政策',
|
|
23880
23928
|
required: true
|
|
23881
23929
|
}]
|
|
23882
|
-
})), React.createElement("span", {
|
|
23930
|
+
})), /*#__PURE__*/React.createElement("span", {
|
|
23883
23931
|
className: "kts-invoice-operate-goods-endow-code-button-list"
|
|
23884
|
-
}, React.createElement(Button, {
|
|
23932
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
23885
23933
|
onClick: function onClick() {
|
|
23886
23934
|
actions.submit(onSubmit);
|
|
23887
23935
|
},
|
|
23888
23936
|
type: "primary"
|
|
23889
|
-
}, "\u786E\u5B9A"), React.createElement(Button, {
|
|
23937
|
+
}, "\u786E\u5B9A"), /*#__PURE__*/React.createElement(Button, {
|
|
23890
23938
|
onClick: function onClick() {
|
|
23891
23939
|
controller.pipeline( /*#__PURE__*/function () {
|
|
23892
23940
|
var _ref17 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee17(s) {
|
|
@@ -24046,53 +24094,53 @@ function AddComparisonDrawer() {
|
|
|
24046
24094
|
}));
|
|
24047
24095
|
}
|
|
24048
24096
|
}, [good]);
|
|
24049
|
-
return React.createElement(Drawer$1, {
|
|
24097
|
+
return /*#__PURE__*/React.createElement(Drawer$1, {
|
|
24050
24098
|
width: 500,
|
|
24051
24099
|
onClose: onClose,
|
|
24052
24100
|
placement: "right",
|
|
24053
24101
|
title: "\u5546\u54C1\u6620\u5C04",
|
|
24054
24102
|
visible: !!good,
|
|
24055
|
-
footer: React.createElement("div", {
|
|
24103
|
+
footer: /*#__PURE__*/React.createElement("div", {
|
|
24056
24104
|
style: {
|
|
24057
24105
|
display: 'flex',
|
|
24058
24106
|
justifyContent: 'flex-end',
|
|
24059
24107
|
gap: 10
|
|
24060
24108
|
}
|
|
24061
|
-
}, React.createElement(Button, {
|
|
24109
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
24062
24110
|
type: "primary",
|
|
24063
24111
|
onClick: onSubmit
|
|
24064
|
-
}, "\u63D0\u4EA4"), React.createElement(Button, {
|
|
24112
|
+
}, "\u63D0\u4EA4"), /*#__PURE__*/React.createElement(Button, {
|
|
24065
24113
|
onClick: onClose
|
|
24066
24114
|
}, "\u53D6\u6D88"))
|
|
24067
|
-
}, !!good && React.createElement(Form$1, {
|
|
24115
|
+
}, !!good && /*#__PURE__*/React.createElement(Form$1, {
|
|
24068
24116
|
layout: "vertical",
|
|
24069
24117
|
style: {
|
|
24070
24118
|
flex: 1
|
|
24071
24119
|
},
|
|
24072
24120
|
form: form
|
|
24073
|
-
}, React.createElement(Row$1, {
|
|
24121
|
+
}, /*#__PURE__*/React.createElement(Row$1, {
|
|
24074
24122
|
gutter: [8, 8]
|
|
24075
|
-
}, React.createElement(Col$1, {
|
|
24123
|
+
}, /*#__PURE__*/React.createElement(Col$1, {
|
|
24076
24124
|
span: 12
|
|
24077
|
-
}, React.createElement(Form$1.Item, {
|
|
24125
|
+
}, /*#__PURE__*/React.createElement(Form$1.Item, {
|
|
24078
24126
|
name: "itemNameSelf",
|
|
24079
24127
|
label: "\u6211\u65B9\u5546\u54C1\u540D\u79F0"
|
|
24080
|
-
}, React.createElement(Input, null))), React.createElement(Col$1, {
|
|
24128
|
+
}, /*#__PURE__*/React.createElement(Input, null))), /*#__PURE__*/React.createElement(Col$1, {
|
|
24081
24129
|
span: 12
|
|
24082
|
-
}, React.createElement(Form$1.Item, {
|
|
24130
|
+
}, /*#__PURE__*/React.createElement(Form$1.Item, {
|
|
24083
24131
|
name: "itemName",
|
|
24084
24132
|
label: "\u5BF9\u65B9\u5546\u54C1\u540D\u79F0"
|
|
24085
|
-
}, React.createElement(Input, null))), React.createElement(Col$1, {
|
|
24133
|
+
}, /*#__PURE__*/React.createElement(Input, null))), /*#__PURE__*/React.createElement(Col$1, {
|
|
24086
24134
|
span: 12
|
|
24087
|
-
}, React.createElement(Form$1.Item, {
|
|
24135
|
+
}, /*#__PURE__*/React.createElement(Form$1.Item, {
|
|
24088
24136
|
name: 'itemModelNameSelf',
|
|
24089
24137
|
label: "\u6211\u65B9\u89C4\u683C\u578B\u53F7"
|
|
24090
|
-
}, React.createElement(Input, null))), React.createElement(Col$1, {
|
|
24138
|
+
}, /*#__PURE__*/React.createElement(Input, null))), /*#__PURE__*/React.createElement(Col$1, {
|
|
24091
24139
|
span: 12
|
|
24092
|
-
}, React.createElement(Form$1.Item, {
|
|
24140
|
+
}, /*#__PURE__*/React.createElement(Form$1.Item, {
|
|
24093
24141
|
name: "itemModelName",
|
|
24094
24142
|
label: "\u5BF9\u65B9\u89C4\u683C\u578B\u53F7"
|
|
24095
|
-
}, React.createElement(Input, null))))));
|
|
24143
|
+
}, /*#__PURE__*/React.createElement(Input, null))))));
|
|
24096
24144
|
} // function validateFields(form: WrappedFormUtils<any>) {
|
|
24097
24145
|
// return new Promise<{ err: any, values: any }>(resolve => {
|
|
24098
24146
|
// form.validateFields((err, values) => {
|
|
@@ -24103,7 +24151,7 @@ function AddComparisonDrawer() {
|
|
|
24103
24151
|
|
|
24104
24152
|
/** 发票组件的上下文 */
|
|
24105
24153
|
|
|
24106
|
-
var InvoiceContext = React.createContext(undefined);
|
|
24154
|
+
var InvoiceContext = /*#__PURE__*/React.createContext(undefined);
|
|
24107
24155
|
|
|
24108
24156
|
var Invoice = /*#__PURE__*/function (_React$PureComponent) {
|
|
24109
24157
|
_inherits(Invoice, _React$PureComponent);
|
|
@@ -24148,9 +24196,9 @@ var Invoice = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
24148
24196
|
/** 获取控制器钩子 */
|
|
24149
24197
|
function render() {
|
|
24150
24198
|
if (this.props.invoiceType === 'digtal') {
|
|
24151
|
-
return React.createElement(Digtal, _objectSpread2({}, this.props));
|
|
24199
|
+
return /*#__PURE__*/React.createElement(Digtal, _objectSpread2({}, this.props));
|
|
24152
24200
|
} else {
|
|
24153
|
-
return React.createElement(Main$4, _objectSpread2({}, this.props));
|
|
24201
|
+
return /*#__PURE__*/React.createElement(Main$4, _objectSpread2({}, this.props));
|
|
24154
24202
|
}
|
|
24155
24203
|
}
|
|
24156
24204
|
}]);
|
|
@@ -24192,10 +24240,10 @@ var Main$4 = function Main(props) {
|
|
|
24192
24240
|
React.useEffect(function () {
|
|
24193
24241
|
setKey(key + 1);
|
|
24194
24242
|
}, [controller]);
|
|
24195
|
-
return React.createElement(InvoiceContext.Provider, {
|
|
24243
|
+
return /*#__PURE__*/React.createElement(InvoiceContext.Provider, {
|
|
24196
24244
|
key: key,
|
|
24197
24245
|
value: controller
|
|
24198
|
-
}, React.createElement("div", {
|
|
24246
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
24199
24247
|
className: "kts-invoice-operate",
|
|
24200
24248
|
ref: controller.pipeline( /*#__PURE__*/function () {
|
|
24201
24249
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(s, e) {
|
|
@@ -24217,17 +24265,17 @@ var Main$4 = function Main(props) {
|
|
|
24217
24265
|
return _ref.apply(this, arguments);
|
|
24218
24266
|
};
|
|
24219
24267
|
}())
|
|
24220
|
-
}, props.invoiceHeader || React.createElement(InvoiceHeader, null)
|
|
24268
|
+
}, props.invoiceHeader || /*#__PURE__*/React.createElement(InvoiceHeader, null)
|
|
24221
24269
|
/** 发票头 */
|
|
24222
|
-
, props.buyer || React.createElement(Buyer$1, null)
|
|
24270
|
+
, props.buyer || /*#__PURE__*/React.createElement(Buyer$1, null)
|
|
24223
24271
|
/** 购买方 */
|
|
24224
|
-
, props.goodsList || React.createElement(GoodsList, null)
|
|
24272
|
+
, props.goodsList || /*#__PURE__*/React.createElement(GoodsList, null)
|
|
24225
24273
|
/** 货物列表 */
|
|
24226
|
-
, props.seller || React.createElement(Buyer, null)
|
|
24274
|
+
, props.seller || /*#__PURE__*/React.createElement(Buyer, null)
|
|
24227
24275
|
/** 销售方 */
|
|
24228
|
-
, props.sign || React.createElement(Sign, null)
|
|
24276
|
+
, props.sign || /*#__PURE__*/React.createElement(Sign, null)
|
|
24229
24277
|
/** 落款 */
|
|
24230
|
-
, props.footExpand), React.createElement(ImportBuyerDrawer, null), React.createElement(ImportGoodsDrawer, null), React.createElement(EndowCodeDrawer, null), React.createElement(AddComparisonDrawer, null));
|
|
24278
|
+
, props.footExpand), /*#__PURE__*/React.createElement(ImportBuyerDrawer, null), /*#__PURE__*/React.createElement(ImportGoodsDrawer, null), /*#__PURE__*/React.createElement(EndowCodeDrawer, null), /*#__PURE__*/React.createElement(AddComparisonDrawer, null));
|
|
24231
24279
|
};
|
|
24232
24280
|
/** 数电 */
|
|
24233
24281
|
|
|
@@ -24246,10 +24294,10 @@ var Digtal = function Digtal(props) {
|
|
|
24246
24294
|
React.useEffect(function () {
|
|
24247
24295
|
setKey(key + 1);
|
|
24248
24296
|
}, [controller]);
|
|
24249
|
-
return React.createElement(InvoiceContext.Provider, {
|
|
24297
|
+
return /*#__PURE__*/React.createElement(InvoiceContext.Provider, {
|
|
24250
24298
|
key: key,
|
|
24251
24299
|
value: controller
|
|
24252
|
-
}, React.createElement("div", {
|
|
24300
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
24253
24301
|
className: "kts-invoice-operate-digtal",
|
|
24254
24302
|
ref: controller.pipeline( /*#__PURE__*/function () {
|
|
24255
24303
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(s, e) {
|
|
@@ -24271,17 +24319,17 @@ var Digtal = function Digtal(props) {
|
|
|
24271
24319
|
return _ref2.apply(this, arguments);
|
|
24272
24320
|
};
|
|
24273
24321
|
}())
|
|
24274
|
-
}, props.invoiceHeader || React.createElement(InvoiceHeaderDigtal, null)
|
|
24322
|
+
}, props.invoiceHeader || /*#__PURE__*/React.createElement(InvoiceHeaderDigtal, null)
|
|
24275
24323
|
/** 发票头 */
|
|
24276
|
-
, React.createElement("div", {
|
|
24324
|
+
, /*#__PURE__*/React.createElement("div", {
|
|
24277
24325
|
className: 'kts-invoice-operate-digtal-cont'
|
|
24278
|
-
}, props.stakeholder || React.createElement(Stakeholder$1, null)
|
|
24326
|
+
}, props.stakeholder || /*#__PURE__*/React.createElement(Stakeholder$1, null)
|
|
24279
24327
|
/** 干系人 */
|
|
24280
|
-
, props.goodsList || React.createElement(GoodsList$1
|
|
24328
|
+
, props.goodsList || /*#__PURE__*/React.createElement(GoodsList$1
|
|
24281
24329
|
/** 货物列表 */
|
|
24282
|
-
, null)), props.sign || React.createElement(SignDigtal, null)
|
|
24330
|
+
, null)), props.sign || /*#__PURE__*/React.createElement(SignDigtal, null)
|
|
24283
24331
|
/** 落款 */
|
|
24284
|
-
), React.createElement(ImportGoodsDrawer, null), React.createElement(EndowCodeDrawer, null));
|
|
24332
|
+
), /*#__PURE__*/React.createElement(ImportGoodsDrawer, null), /*#__PURE__*/React.createElement(EndowCodeDrawer, null));
|
|
24285
24333
|
};
|
|
24286
24334
|
|
|
24287
24335
|
function TaxClassificationModal(props) {
|
|
@@ -24322,26 +24370,26 @@ function TaxClassificationModal(props) {
|
|
|
24322
24370
|
}, 500);
|
|
24323
24371
|
}
|
|
24324
24372
|
}, [form, props.open]);
|
|
24325
|
-
return React.createElement(Drawer$1, {
|
|
24373
|
+
return /*#__PURE__*/React.createElement(Drawer$1, {
|
|
24326
24374
|
title: "\u5546\u54C1\u548C\u670D\u52A1\u7A0E\u6536\u5206\u7C7B\u7F16\u7801",
|
|
24327
24375
|
placement: "right",
|
|
24328
24376
|
open: props.open,
|
|
24329
24377
|
width: 503,
|
|
24330
24378
|
onClose: props.onCancel
|
|
24331
|
-
}, React.createElement(Form$1, {
|
|
24379
|
+
}, /*#__PURE__*/React.createElement(Form$1, {
|
|
24332
24380
|
form: form
|
|
24333
|
-
}, React.createElement(Form$1.Item, {
|
|
24381
|
+
}, /*#__PURE__*/React.createElement(Form$1.Item, {
|
|
24334
24382
|
name: 'search'
|
|
24335
|
-
}, React.createElement(Input$1, {
|
|
24383
|
+
}, /*#__PURE__*/React.createElement(Input$1, {
|
|
24336
24384
|
placeholder: "\u8BF7\u8F93\u5165\u7A0E\u6536\u5206\u7C7B\u7F16\u7801\u3001\u7A0E\u6536\u5206\u7C7B\u540D\u79F0\u8FDB\u884C\u68C0\u7D22",
|
|
24337
24385
|
onChange: searchTax
|
|
24338
|
-
})), React.createElement(Form$1.Item, {
|
|
24386
|
+
})), /*#__PURE__*/React.createElement(Form$1.Item, {
|
|
24339
24387
|
name: 'tree'
|
|
24340
|
-
}, React.createElement(Tree$1, {
|
|
24388
|
+
}, /*#__PURE__*/React.createElement(Tree$1, {
|
|
24341
24389
|
onSelect: props.onSelect,
|
|
24342
24390
|
loadData: props.onLoad,
|
|
24343
24391
|
treeData: props.list,
|
|
24344
|
-
switcherIcon: React.createElement(Icon$1, {
|
|
24392
|
+
switcherIcon: /*#__PURE__*/React.createElement(Icon$1, {
|
|
24345
24393
|
type: "down"
|
|
24346
24394
|
})
|
|
24347
24395
|
}))));
|