kts-component-invoice-operate 3.2.129 → 3.2.131
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 +609 -598
- package/dist/index.js +609 -598
- 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 -80
- package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/LineAttributeType/index.ts +7 -7
- package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/ProductComparison/index.ts +9 -9
- package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/index.ts +117 -117
- package/src/Invoice/InvoiceController/InvoiceControllerState/Stakeholder/index.ts +13 -13
- package/src/Invoice/InvoiceController/InvoiceControllerState/index.ts +65 -65
- package/src/Invoice/InvoiceController/fns/addGood.ts +11 -11
- package/src/Invoice/InvoiceController/fns/addGoodDiscount.ts +126 -126
- package/src/Invoice/InvoiceController/fns/addGoodDiscountV2.ts +86 -86
- package/src/Invoice/InvoiceController/fns/delGood.ts +41 -41
- package/src/Invoice/InvoiceController/fns/getGoodsSearch.ts +26 -26
- package/src/Invoice/InvoiceController/fns/importGoodsDrawer.ts +79 -79
- package/src/Invoice/InvoiceController/fns/itemBlur.ts +40 -40
- package/src/Invoice/InvoiceController/fns/mergeDetails.ts +201 -201
- package/src/Invoice/InvoiceController/fns/mergeDiscount.ts +35 -35
- package/src/Invoice/InvoiceController/fns/saveEditGood.ts +24 -24
- package/src/Invoice/InvoiceController/fns/setEditGood.ts +16 -16
- package/src/Invoice/InvoiceController/fns/setGoods.ts +10 -10
- package/src/Invoice/InvoiceController/fns/updateInvoiceNo.ts +8 -8
- package/src/Invoice/InvoiceController/index.ts +81 -81
- package/src/Invoice/_test/buyerNameSearch/index.tsx +42 -42
- package/src/Invoice/_test/deduction/index.tsx +935 -935
- package/src/Invoice/_test/draft/index.tsx +40 -40
- package/src/Invoice/_test/easiest/index.tsx +5 -5
- package/src/Invoice/_test/endowCode/index.tsx +1158 -1158
- package/src/Invoice/_test/goodsMenuExpand/index.tsx +32 -32
- package/src/Invoice/_test/importBuyer/index.tsx +74 -74
- package/src/Invoice/_test/importGoods/index.tsx +1197 -1197
- package/src/Invoice/_test/invoiceType/index.tsx +59 -59
- package/src/Invoice/_test/isInvoiceNo/index.tsx +12 -12
- package/src/Invoice/_test/replaceHead/index.tsx +22 -22
- package/src/Invoice/_test/retrieveData/index.tsx +22 -22
- package/src/Invoice/_test/seller/index.tsx +28 -28
- package/src/Invoice/_test/setDataSource/index.tsx +73 -73
- package/src/Invoice/_test/unit/index.tsx +19 -19
- package/src/Invoice/index.less +29 -29
- package/src/Invoice/index.md +53 -53
- package/src/Invoice/index.tsx +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 +688 -688
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/Drag/index.less +20 -20
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/Drag/index.tsx +205 -205
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/ItemCodeInput/index.less +18 -18
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/ItemCodeInput/index.tsx +47 -47
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/ItemNameInput/index.less +17 -17
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/ItemNameInput/index.tsx +88 -88
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/RowEditButton/index.tsx +30 -30
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/RowMenu/hook/_useAddComparison/index.tsx +43 -43
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/RowMenu/hook/useAddDiscount/index.tsx +118 -118
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/RowMenu/hook/useDelItem/index.tsx +41 -41
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/RowMenu/hook/useEndowCode/index.tsx +25 -25
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/RowMenu/index.less +13 -13
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/RowMenu/index.tsx +98 -98
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/RowSaveButton/index.tsx +14 -14
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/TitleText/index.tsx +20 -20
- package/src/Invoice/ui/default/GoodsList/hook/useDeduction/index.tsx +24 -24
- package/src/Invoice/ui/default/GoodsList/hook/useOnRow/index.tsx +39 -39
- package/src/Invoice/ui/default/GoodsList/hook/useRowSelection/index.tsx +114 -114
- package/src/Invoice/ui/default/GoodsList/hook/useWindowClick/index.tsx +23 -23
- package/src/Invoice/ui/default/GoodsList/index.less +179 -179
- package/src/Invoice/ui/default/GoodsList/index.tsx +205 -205
- package/src/Invoice/ui/default/GoodsList/ui/AddRowButton/index.tsx +65 -65
- package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/hooks/useAddDiscountRowButton/index.less +21 -21
- package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/hooks/useAddDiscountRowButton/index.tsx +244 -244
- package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/hooks/useCommodityComparisonButton/index.tsx +75 -75
- package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/hooks/useDelRowButton/index.tsx +69 -69
- package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/hooks/useEndowCodeButton/index.tsx +65 -65
- package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/hooks/useMergeDetails/index.tsx +91 -91
- package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/hooks/useMergeDiscount/index.tsx +36 -36
- package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/hooks/useSalesDiscount/index.tsx +109 -109
- package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/hooks/useSalesGifts/index.tsx +88 -88
- package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/index.tsx +37 -37
- package/src/Invoice/ui/default/GoodsList/ui/DescribeSwitch/index.tsx +36 -36
- package/src/Invoice/ui/default/GoodsList/ui/Search/index.less +10 -10
- package/src/Invoice/ui/default/GoodsList/ui/Search/index.tsx +52 -52
- package/src/Invoice/ui/default/GoodsList/ui/Statistics/index.less +18 -18
- package/src/Invoice/ui/default/GoodsList/ui/Statistics/index.tsx +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 +648 -648
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/svg/plus.svg +11 -11
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/Drag/index.less +20 -20
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/Drag/index.tsx +205 -205
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/ItemNameInput/index.less +9 -9
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/ItemNameInput/index.tsx +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 -90
- package/src/Invoice/ui/digtal/Stakeholder/index.tsx +395 -394
- package/src/Invoice/ui/digtal/Stakeholder/svg/arrowDown.svg +2 -2
- package/src/Invoice/ui/digtal/Stakeholder/svg/arrowUp.svg +2 -2
- package/src/Invoice/ui/digtal/Stakeholder/svg/plus.svg +11 -11
- package/src/InvoiceTypeModal/_test/easiest/index.tsx +31 -31
- package/src/InvoiceTypeModal/index.less +7 -7
- package/src/InvoiceTypeModal/index.md +5 -5
- package/src/InvoiceTypeModal/index.tsx +153 -153
- package/src/TaxClassificationCodeModal/_test/easiest/index.tsx +177 -177
- package/src/TaxClassificationCodeModal/index.md +6 -6
- package/src/TaxClassificationCodeModal/index.tsx +74 -74
- package/src/index.ts +12 -12
- package/tsconfig.json +31 -31
- package/typings.d.ts +3 -3
- package/yarn.e.lock +14331 -14331
package/dist/index.esm.js
CHANGED
|
@@ -916,9 +916,12 @@ var ImportGoods = /*#__PURE__*/_createClass(function ImportGoods() {
|
|
|
916
916
|
dataIndex: 'unit',
|
|
917
917
|
key: 'unit'
|
|
918
918
|
}, {
|
|
919
|
-
title: '
|
|
919
|
+
title: '税率',
|
|
920
920
|
dataIndex: 'taxRate',
|
|
921
|
-
key: 'taxRate'
|
|
921
|
+
key: 'taxRate',
|
|
922
|
+
render: function render(text) {
|
|
923
|
+
return text || text === 0 ? "".concat(text, "%") : '';
|
|
924
|
+
}
|
|
922
925
|
}, {
|
|
923
926
|
title: '单价(含税)',
|
|
924
927
|
dataIndex: 'priceIncludeTax',
|
|
@@ -9837,7 +9840,7 @@ var InvoiceHeader = decorator(Form.create())(function (props) {
|
|
|
9837
9840
|
render: function render(form) {
|
|
9838
9841
|
return form.getFieldDecorator('code', {
|
|
9839
9842
|
initialValue: props.defaultCode
|
|
9840
|
-
})(
|
|
9843
|
+
})(React.createElement(FormSpanString, null));
|
|
9841
9844
|
}
|
|
9842
9845
|
});
|
|
9843
9846
|
}
|
|
@@ -9850,7 +9853,7 @@ var InvoiceHeader = decorator(Form.create())(function (props) {
|
|
|
9850
9853
|
render: function render(form) {
|
|
9851
9854
|
return form.getFieldDecorator('no', {
|
|
9852
9855
|
initialValue: props.defaultNo
|
|
9853
|
-
})(
|
|
9856
|
+
})(React.createElement(FormSpanString, null));
|
|
9854
9857
|
}
|
|
9855
9858
|
});
|
|
9856
9859
|
}
|
|
@@ -9861,7 +9864,7 @@ var InvoiceHeader = decorator(Form.create())(function (props) {
|
|
|
9861
9864
|
render: function render(form) {
|
|
9862
9865
|
return form.getFieldDecorator('invoicingDate', {
|
|
9863
9866
|
initialValue: props.defaultInvoicingDate
|
|
9864
|
-
})(
|
|
9867
|
+
})(React.createElement(FormSpanString, null));
|
|
9865
9868
|
}
|
|
9866
9869
|
});
|
|
9867
9870
|
}
|
|
@@ -9872,7 +9875,7 @@ var InvoiceHeader = decorator(Form.create())(function (props) {
|
|
|
9872
9875
|
render: function render(form) {
|
|
9873
9876
|
return form.getFieldDecorator('defaultValidationCode', {
|
|
9874
9877
|
initialValue: props.defaultValidationCode
|
|
9875
|
-
})(
|
|
9878
|
+
})(React.createElement(FormSpanString, null));
|
|
9876
9879
|
}
|
|
9877
9880
|
});
|
|
9878
9881
|
}
|
|
@@ -9892,21 +9895,21 @@ var InvoiceHeader = decorator(Form.create())(function (props) {
|
|
|
9892
9895
|
React.useEffect(function () {
|
|
9893
9896
|
setTypeIndex(props.typeOptionIndex || 0);
|
|
9894
9897
|
}, [props.typeOption]);
|
|
9895
|
-
return
|
|
9898
|
+
return React.createElement("div", {
|
|
9896
9899
|
className: "kts-invoice-operate-invoice-header"
|
|
9897
|
-
},
|
|
9900
|
+
}, React.createElement("div", {
|
|
9898
9901
|
className: "invoice-header-title"
|
|
9899
|
-
}, title),
|
|
9902
|
+
}, title), React.createElement("div", {
|
|
9900
9903
|
className: "invoice-header-no"
|
|
9901
|
-
}, isInvoiceNo ?
|
|
9904
|
+
}, isInvoiceNo ? React.createElement("div", null, React.createElement("label", null, "\u53D1\u7968\u5355\u636E\u7F16\u53F7 :"), getFieldDecorator('id', {
|
|
9902
9905
|
initialValue: props.defaultId
|
|
9903
|
-
})(
|
|
9906
|
+
})(React.createElement(Input, {
|
|
9904
9907
|
disabled: readOnlyInvoiceNo,
|
|
9905
9908
|
style: {
|
|
9906
9909
|
width: 230
|
|
9907
9910
|
},
|
|
9908
9911
|
size: "small",
|
|
9909
|
-
suffix: controller.updateInvoiceNo &&
|
|
9912
|
+
suffix: controller.updateInvoiceNo && React.createElement(Icon$1, {
|
|
9910
9913
|
style: {
|
|
9911
9914
|
cursor: 'pointer'
|
|
9912
9915
|
},
|
|
@@ -9950,15 +9953,15 @@ var InvoiceHeader = decorator(Form.create())(function (props) {
|
|
|
9950
9953
|
return onClick;
|
|
9951
9954
|
}()
|
|
9952
9955
|
})
|
|
9953
|
-
}))) :
|
|
9956
|
+
}))) : React.createElement("div", {
|
|
9954
9957
|
style: {
|
|
9955
9958
|
height: 20
|
|
9956
9959
|
}
|
|
9957
|
-
}), tag &&
|
|
9960
|
+
}), tag && React.createElement(Tag$1, null, tag), React.createElement("div", {
|
|
9958
9961
|
className: "invoice-header-type"
|
|
9959
9962
|
}, props.typeOption ? getFieldDecorator('type', {
|
|
9960
9963
|
initialValue: typeIndex
|
|
9961
|
-
})(
|
|
9964
|
+
})(React.createElement(Select, {
|
|
9962
9965
|
size: "small",
|
|
9963
9966
|
style: {
|
|
9964
9967
|
width: 230
|
|
@@ -9967,20 +9970,20 @@ var InvoiceHeader = decorator(Form.create())(function (props) {
|
|
|
9967
9970
|
setTypeIndex(e);
|
|
9968
9971
|
}
|
|
9969
9972
|
}, props.typeOption.map(function (e, i) {
|
|
9970
|
-
return
|
|
9973
|
+
return React.createElement(Select.Option, {
|
|
9971
9974
|
key: i,
|
|
9972
9975
|
value: i
|
|
9973
9976
|
}, e.title);
|
|
9974
|
-
}))) : props.renderExpand && props.renderExpand(props.form))), props.typeOption &&
|
|
9977
|
+
}))) : props.renderExpand && props.renderExpand(props.form))), props.typeOption && React.createElement("div", {
|
|
9975
9978
|
style: {
|
|
9976
9979
|
marginTop: 10
|
|
9977
9980
|
}
|
|
9978
|
-
}, props.renderExpand && props.renderExpand(props.form)),
|
|
9981
|
+
}, props.renderExpand && props.renderExpand(props.form)), React.createElement("div", {
|
|
9979
9982
|
className: "invoice-header-property"
|
|
9980
|
-
}, _toConsumableArray(props.fieldExpand || []).map(function (e) {}),
|
|
9983
|
+
}, _toConsumableArray(props.fieldExpand || []).map(function (e) {}), React.createElement("ul", {
|
|
9981
9984
|
className: 'invoice-header-property-fieldExpand'
|
|
9982
9985
|
}, fieldExpand.map(function (e) {
|
|
9983
|
-
return
|
|
9986
|
+
return React.createElement("li", null, React.createElement("label", null, e.label), e.render(form));
|
|
9984
9987
|
}))));
|
|
9985
9988
|
});
|
|
9986
9989
|
|
|
@@ -9999,7 +10002,7 @@ var FormSpanString = /*#__PURE__*/function (_React$Component) {
|
|
|
9999
10002
|
key: "render",
|
|
10000
10003
|
value: function render() {
|
|
10001
10004
|
// return <span>{this.props.value}</span>;
|
|
10002
|
-
return
|
|
10005
|
+
return React.createElement(Input, {
|
|
10003
10006
|
size: "small",
|
|
10004
10007
|
disabled: true,
|
|
10005
10008
|
value: this.props.value
|
|
@@ -10110,12 +10113,12 @@ function TableVirtual (props) {
|
|
|
10110
10113
|
if (!cont) return;
|
|
10111
10114
|
cont.scrollTop = 0;
|
|
10112
10115
|
}, [(_props$dataSource2 = props.dataSource) === null || _props$dataSource2 === void 0 ? void 0 : _props$dataSource2.length]);
|
|
10113
|
-
return
|
|
10116
|
+
return React.createElement("span", {
|
|
10114
10117
|
className: "kts-invoice-operate-goods-table-virtual",
|
|
10115
10118
|
ref: function ref(e) {
|
|
10116
10119
|
setSelf(e);
|
|
10117
10120
|
}
|
|
10118
|
-
},
|
|
10121
|
+
}, React.createElement(TableManual, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
10119
10122
|
dataSource: dataSource,
|
|
10120
10123
|
// 新版本Table会有输入框无法连续输入的问题,先兼容老版本
|
|
10121
10124
|
tableComponent: Table
|
|
@@ -10207,57 +10210,57 @@ var Statistics = (function () {
|
|
|
10207
10210
|
});
|
|
10208
10211
|
return sum.done().toNumber();
|
|
10209
10212
|
}, []);
|
|
10210
|
-
return
|
|
10213
|
+
return React.createElement("div", {
|
|
10211
10214
|
className: "kts-invoice-operate-goods-list-statistics"
|
|
10212
|
-
},
|
|
10215
|
+
}, React.createElement("div", {
|
|
10213
10216
|
className: "kts-invoice-operate-goods-list-statistics-row"
|
|
10214
|
-
},
|
|
10217
|
+
}, React.createElement("div", {
|
|
10215
10218
|
style: {
|
|
10216
10219
|
width: 45.92
|
|
10217
10220
|
}
|
|
10218
|
-
}),
|
|
10221
|
+
}), React.createElement("div", {
|
|
10219
10222
|
style: {
|
|
10220
10223
|
flex: 1
|
|
10221
10224
|
}
|
|
10222
|
-
},
|
|
10225
|
+
}, React.createElement("label", null, "\u5408\u8BA1")), React.createElement("div", {
|
|
10223
10226
|
style: {
|
|
10224
10227
|
width: 119,
|
|
10225
10228
|
textAlign: 'right',
|
|
10226
10229
|
border: 'none'
|
|
10227
10230
|
}
|
|
10228
|
-
},
|
|
10231
|
+
}, React.createElement("label", null, parseFloat(isTaxIncluded ? lineAmountIncludeTax : lineAmountExcludeTax).toFixed(2))), React.createElement("div", {
|
|
10229
10232
|
style: {
|
|
10230
10233
|
width: 70,
|
|
10231
10234
|
border: 'none'
|
|
10232
10235
|
}
|
|
10233
|
-
}),
|
|
10236
|
+
}), React.createElement("div", {
|
|
10234
10237
|
style: {
|
|
10235
10238
|
width: 119,
|
|
10236
10239
|
textAlign: 'right',
|
|
10237
10240
|
border: 'none'
|
|
10238
10241
|
}
|
|
10239
|
-
},
|
|
10242
|
+
}, React.createElement("label", null, parseFloat(taxAmount).toFixed(2))), React.createElement("div", {
|
|
10240
10243
|
style: {
|
|
10241
10244
|
width: 111,
|
|
10242
10245
|
border: 'none'
|
|
10243
10246
|
}
|
|
10244
|
-
})),
|
|
10247
|
+
})), React.createElement("div", {
|
|
10245
10248
|
className: "kts-invoice-operate-goods-list-statistics-row"
|
|
10246
|
-
},
|
|
10249
|
+
}, React.createElement("div", {
|
|
10247
10250
|
style: {
|
|
10248
10251
|
width: 45.92
|
|
10249
10252
|
}
|
|
10250
|
-
}),
|
|
10253
|
+
}), React.createElement("div", {
|
|
10251
10254
|
style: {
|
|
10252
10255
|
flex: 5,
|
|
10253
10256
|
border: 'none'
|
|
10254
10257
|
}
|
|
10255
|
-
},
|
|
10258
|
+
}, React.createElement("label", null, "\u4EF7\u7A0E\u5408\u8BA1\uFF08\u5927\u5199\uFF09"), React.createElement("label", null, toStringChinese(lineAmountIncludeTax))), React.createElement("div", {
|
|
10256
10259
|
style: {
|
|
10257
10260
|
flex: 5,
|
|
10258
10261
|
border: 'none'
|
|
10259
10262
|
}
|
|
10260
|
-
},
|
|
10263
|
+
}, React.createElement("label", null, "\uFF08\u5C0F\u5199\uFF09 ", parseFloat(lineAmountIncludeTax).toFixed(2)))));
|
|
10261
10264
|
});
|
|
10262
10265
|
|
|
10263
10266
|
var AddRowButton = (function () {
|
|
@@ -10312,10 +10315,10 @@ var AddRowButton = (function () {
|
|
|
10312
10315
|
}
|
|
10313
10316
|
}, _callee);
|
|
10314
10317
|
})), [controller, rootElement]);
|
|
10315
|
-
if (isAddRow === false) return
|
|
10316
|
-
if (model === 'prefab') return
|
|
10317
|
-
if (model === 'readOnly') return
|
|
10318
|
-
return
|
|
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, {
|
|
10319
10322
|
onClick: onClick,
|
|
10320
10323
|
disabled: disabled
|
|
10321
10324
|
}, "\u6DFB\u52A0\u884C");
|
|
@@ -10445,11 +10448,11 @@ var TaxIncludedSwitch = (function () {
|
|
|
10445
10448
|
var onChange = React.useCallback(function (e) {
|
|
10446
10449
|
onChangeSwitchTax(controller, e);
|
|
10447
10450
|
}, []);
|
|
10448
|
-
return
|
|
10451
|
+
return React.createElement("span", null, React.createElement("label", {
|
|
10449
10452
|
style: {
|
|
10450
10453
|
marginRight: 2
|
|
10451
10454
|
}
|
|
10452
|
-
}, "\u542B\u7A0E:"),
|
|
10455
|
+
}, "\u542B\u7A0E:"), React.createElement(Switch, {
|
|
10453
10456
|
disabled: isSwitchTax === false,
|
|
10454
10457
|
checked: isTaxIncluded,
|
|
10455
10458
|
defaultChecked: true,
|
|
@@ -10487,19 +10490,19 @@ var DescribeSwitch = (function () {
|
|
|
10487
10490
|
};
|
|
10488
10491
|
}());
|
|
10489
10492
|
}, []);
|
|
10490
|
-
if (!productComparison.onComply) return
|
|
10491
|
-
return
|
|
10493
|
+
if (!productComparison.onComply) return React.createElement(React.Fragment, null);
|
|
10494
|
+
return React.createElement("span", null, React.createElement("label", {
|
|
10492
10495
|
style: {
|
|
10493
10496
|
marginRight: 2
|
|
10494
10497
|
}
|
|
10495
|
-
},
|
|
10498
|
+
}, React.createElement(Tooltip, {
|
|
10496
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"
|
|
10497
|
-
},
|
|
10500
|
+
}, React.createElement(Icon$1, {
|
|
10498
10501
|
style: {
|
|
10499
10502
|
marginRight: 3
|
|
10500
10503
|
},
|
|
10501
10504
|
type: "info-circle"
|
|
10502
|
-
})), "\u4F7F\u7528\u54EA\u65B9\u5546\u54C1\u63CF\u8FF0:"),
|
|
10505
|
+
})), "\u4F7F\u7528\u54EA\u65B9\u5546\u54C1\u63CF\u8FF0:"), React.createElement(Switch$1, {
|
|
10503
10506
|
checked: isMyShow,
|
|
10504
10507
|
checkedChildren: "\u6211\u65B9",
|
|
10505
10508
|
unCheckedChildren: "\u5BF9\u65B9",
|
|
@@ -10599,13 +10602,13 @@ function Search() {
|
|
|
10599
10602
|
};
|
|
10600
10603
|
}());
|
|
10601
10604
|
}, [value, controller]);
|
|
10602
|
-
return
|
|
10605
|
+
return React.createElement(Input, {
|
|
10603
10606
|
size: "small",
|
|
10604
10607
|
readOnly: readOnly,
|
|
10605
10608
|
value: value,
|
|
10606
10609
|
className: "kts-invoice-operate-goods-list-search",
|
|
10607
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"),
|
|
10608
|
-
prefix:
|
|
10611
|
+
prefix: React.createElement(Icon$1, {
|
|
10609
10612
|
component: SvgMagnifier,
|
|
10610
10613
|
style: {
|
|
10611
10614
|
color: "#b8b8b8"
|
|
@@ -10657,13 +10660,13 @@ function TableRow(props) {
|
|
|
10657
10660
|
return undefined;
|
|
10658
10661
|
}
|
|
10659
10662
|
}, [good, goodsMap]);
|
|
10660
|
-
return rowKey === current && current ?
|
|
10663
|
+
return rowKey === current && current ? React.createElement("tr", {
|
|
10661
10664
|
style: {
|
|
10662
10665
|
height: 32.67,
|
|
10663
10666
|
borderBottom: '1px solid #E6E6E6',
|
|
10664
10667
|
position: 'relative'
|
|
10665
10668
|
}
|
|
10666
|
-
},
|
|
10669
|
+
}, React.createElement("div", {
|
|
10667
10670
|
style: {
|
|
10668
10671
|
height: 1,
|
|
10669
10672
|
width: '100%',
|
|
@@ -10671,7 +10674,7 @@ function TableRow(props) {
|
|
|
10671
10674
|
position: 'absolute',
|
|
10672
10675
|
bottom: 0
|
|
10673
10676
|
}
|
|
10674
|
-
})) :
|
|
10677
|
+
})) : React.createElement("tr", _objectSpread2(_objectSpread2({}, props), {}, {
|
|
10675
10678
|
className: classNames(props.className, discount, rowKey === container && current ? 'kts-invoice-operate-goods-list-itemName-drag-container-' + site : undefined)
|
|
10676
10679
|
}));
|
|
10677
10680
|
}
|
|
@@ -11079,7 +11082,7 @@ var RowMenu = (function (props) {
|
|
|
11079
11082
|
// addComparison && arr.push(addComparison); // 添加商品对照
|
|
11080
11083
|
|
|
11081
11084
|
if (!goodsMenuExpand || goodsMenuExpand.length === 0) return arr;
|
|
11082
|
-
arr.unshift(
|
|
11085
|
+
arr.unshift(React.createElement(Menu.Divider, {
|
|
11083
11086
|
key: "divider-1"
|
|
11084
11087
|
}));
|
|
11085
11088
|
|
|
@@ -11095,17 +11098,17 @@ var RowMenu = (function (props) {
|
|
|
11095
11098
|
return undefined;
|
|
11096
11099
|
}
|
|
11097
11100
|
|
|
11098
|
-
return
|
|
11099
|
-
return
|
|
11101
|
+
return React.createElement(Menu, null, itemList.slice(2).map(function (e) {
|
|
11102
|
+
return React.createElement(Menu.Item, {
|
|
11100
11103
|
key: e.key,
|
|
11101
11104
|
onClick: e.onClick
|
|
11102
|
-
},
|
|
11105
|
+
}, React.createElement(Text$1, {
|
|
11103
11106
|
strong: true
|
|
11104
11107
|
}, e.title));
|
|
11105
11108
|
}));
|
|
11106
11109
|
}, [itemList]);
|
|
11107
11110
|
var buttonList = React.useMemo(function () {
|
|
11108
|
-
return
|
|
11111
|
+
return React.createElement("div", {
|
|
11109
11112
|
style: {
|
|
11110
11113
|
flex: 1,
|
|
11111
11114
|
textAlign: 'left',
|
|
@@ -11113,7 +11116,7 @@ var RowMenu = (function (props) {
|
|
|
11113
11116
|
gap: 10
|
|
11114
11117
|
}
|
|
11115
11118
|
}, itemList.slice(0, 2).map(function (e) {
|
|
11116
|
-
return
|
|
11119
|
+
return React.createElement(Button, {
|
|
11117
11120
|
key: e.key,
|
|
11118
11121
|
type: 'link',
|
|
11119
11122
|
onClick: e.onClick,
|
|
@@ -11125,21 +11128,21 @@ var RowMenu = (function (props) {
|
|
|
11125
11128
|
}, [itemList]);
|
|
11126
11129
|
|
|
11127
11130
|
if (itemList.length === 0) {
|
|
11128
|
-
return
|
|
11131
|
+
return React.createElement(React.Fragment, null);
|
|
11129
11132
|
}
|
|
11130
11133
|
|
|
11131
|
-
return
|
|
11134
|
+
return React.createElement("span", {
|
|
11132
11135
|
style: {
|
|
11133
11136
|
padding: '0 0 0 10px',
|
|
11134
11137
|
display: 'flex'
|
|
11135
11138
|
}
|
|
11136
|
-
}, buttonList, overlay &&
|
|
11139
|
+
}, buttonList, overlay && React.createElement(Dropdown, {
|
|
11137
11140
|
overlay: overlay,
|
|
11138
11141
|
trigger: ['click']
|
|
11139
|
-
},
|
|
11142
|
+
}, React.createElement(Button, {
|
|
11140
11143
|
className: "kts-invoice-operate-goods-list-columns-row-menu ant-btn-icon-only",
|
|
11141
11144
|
type: "link"
|
|
11142
|
-
},
|
|
11145
|
+
}, React.createElement(Icon$1, {
|
|
11143
11146
|
component: SvgSpot
|
|
11144
11147
|
}))));
|
|
11145
11148
|
});
|
|
@@ -11153,9 +11156,9 @@ var TitleText = (function (props) {
|
|
|
11153
11156
|
return !!e.required;
|
|
11154
11157
|
})) || props.required;
|
|
11155
11158
|
}, [rules, props.required]);
|
|
11156
|
-
return
|
|
11159
|
+
return React.createElement(React.Fragment, null, required ? React.createElement(Text$2, {
|
|
11157
11160
|
type: "danger"
|
|
11158
|
-
}, "*") :
|
|
11161
|
+
}, "*") : React.createElement(React.Fragment, null), children);
|
|
11159
11162
|
});
|
|
11160
11163
|
|
|
11161
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";
|
|
@@ -11346,14 +11349,14 @@ function ItemNameInput(props) {
|
|
|
11346
11349
|
React.useEffect(function () {
|
|
11347
11350
|
setValue(props.value);
|
|
11348
11351
|
}, [props.value]);
|
|
11349
|
-
return
|
|
11352
|
+
return React.createElement("div", {
|
|
11350
11353
|
className: 'kts-invoice-operate-goods-list-itemName-input'
|
|
11351
|
-
}, props.shorthand &&
|
|
11354
|
+
}, props.shorthand && React.createElement("span", {
|
|
11352
11355
|
style: {
|
|
11353
11356
|
alignSelf: 'center',
|
|
11354
11357
|
fontSize: 12
|
|
11355
11358
|
}
|
|
11356
|
-
}, "*", props.shorthand, "*"),
|
|
11359
|
+
}, "*", props.shorthand, "*"), React.createElement(AutoComplete$1, {
|
|
11357
11360
|
onSearch: onSearch,
|
|
11358
11361
|
value: props.value,
|
|
11359
11362
|
options: options.map(function (e) {
|
|
@@ -11363,7 +11366,7 @@ function ItemNameInput(props) {
|
|
|
11363
11366
|
};
|
|
11364
11367
|
}),
|
|
11365
11368
|
onSelect: onChangeAutoComplete
|
|
11366
|
-
},
|
|
11369
|
+
}, React.createElement(Input, {
|
|
11367
11370
|
style: {
|
|
11368
11371
|
height: '100%',
|
|
11369
11372
|
border: 'none'
|
|
@@ -11472,9 +11475,9 @@ function ItemCodeInput(props) {
|
|
|
11472
11475
|
return _ref2.apply(this, arguments);
|
|
11473
11476
|
};
|
|
11474
11477
|
}(), [options, controller]);
|
|
11475
|
-
return
|
|
11478
|
+
return React.createElement("div", {
|
|
11476
11479
|
className: 'kts-invoice-operate-goods-list-itemCode-input'
|
|
11477
|
-
},
|
|
11480
|
+
}, React.createElement(AutoComplete$1, {
|
|
11478
11481
|
onSearch: onSearch,
|
|
11479
11482
|
value: props.value,
|
|
11480
11483
|
options: options.map(function (e) {
|
|
@@ -11483,7 +11486,7 @@ function ItemCodeInput(props) {
|
|
|
11483
11486
|
};
|
|
11484
11487
|
}),
|
|
11485
11488
|
onSelect: onChangeAutoComplete
|
|
11486
|
-
},
|
|
11489
|
+
}, React.createElement(Input, {
|
|
11487
11490
|
style: {
|
|
11488
11491
|
height: '100%',
|
|
11489
11492
|
border: 'none'
|
|
@@ -12664,7 +12667,7 @@ function Drag$1(props) {
|
|
|
12664
12667
|
var currentGood = controller.state.goodsListState.goodsList.filter(function (e) {
|
|
12665
12668
|
return e.$index === record.$index;
|
|
12666
12669
|
})[0];
|
|
12667
|
-
mounting(
|
|
12670
|
+
mounting(React.createElement(DragDiv, _objectSpread2({}, currentGood)));
|
|
12668
12671
|
rowList.forEach(function (e) {
|
|
12669
12672
|
e.addEventListener('mousemove', onMousemove);
|
|
12670
12673
|
});
|
|
@@ -12825,7 +12828,7 @@ function Drag$1(props) {
|
|
|
12825
12828
|
|
|
12826
12829
|
|
|
12827
12830
|
function insert() {
|
|
12828
|
-
mounting(
|
|
12831
|
+
mounting(React.createElement(React.Fragment, null));
|
|
12829
12832
|
controller.run( /*#__PURE__*/function () {
|
|
12830
12833
|
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(s) {
|
|
12831
12834
|
var _s$goodsListState$dra, container, current, site, goodsList, goodsMap, _currentGood, currentIndex, moveGoods;
|
|
@@ -12904,7 +12907,7 @@ function Drag$1(props) {
|
|
|
12904
12907
|
}
|
|
12905
12908
|
}, [controller, record, disabled]);
|
|
12906
12909
|
var renderButton = React.useMemo(function () {
|
|
12907
|
-
return
|
|
12910
|
+
return React.createElement(Button, {
|
|
12908
12911
|
type: 'link',
|
|
12909
12912
|
style: {
|
|
12910
12913
|
padding: 0
|
|
@@ -12915,13 +12918,13 @@ function Drag$1(props) {
|
|
|
12915
12918
|
},
|
|
12916
12919
|
className: "kts-invoice-operate-goods-list-itemName-drag",
|
|
12917
12920
|
onMouseOver: controller.saveEditGood
|
|
12918
|
-
},
|
|
12921
|
+
}, React.createElement(Icon, {
|
|
12919
12922
|
component: SvgI001
|
|
12920
12923
|
}));
|
|
12921
12924
|
}, [onMouseDown, controller]);
|
|
12922
12925
|
|
|
12923
12926
|
if (disabled) {
|
|
12924
|
-
return
|
|
12927
|
+
return React.createElement(Popover, {
|
|
12925
12928
|
content: '您还有未编辑完成的商品',
|
|
12926
12929
|
trigger: 'focus'
|
|
12927
12930
|
}, renderButton);
|
|
@@ -12961,13 +12964,13 @@ function DragDiv(props) {
|
|
|
12961
12964
|
window.removeEventListener('mousemove', onMousemove);
|
|
12962
12965
|
};
|
|
12963
12966
|
});
|
|
12964
|
-
return
|
|
12967
|
+
return React.createElement("div", {
|
|
12965
12968
|
className: "kts-invoice-operate-goods-list-itemName-drag-div",
|
|
12966
12969
|
style: {
|
|
12967
12970
|
top: y,
|
|
12968
12971
|
left: x
|
|
12969
12972
|
}
|
|
12970
|
-
},
|
|
12973
|
+
}, React.createElement("span", null, props.itemName), React.createElement("span", null, props.itemModelName), React.createElement("span", null, props.unit));
|
|
12971
12974
|
}
|
|
12972
12975
|
|
|
12973
12976
|
var useColumns = (function (form) {
|
|
@@ -13088,7 +13091,7 @@ var useColumns = (function (form) {
|
|
|
13088
13091
|
width: 40,
|
|
13089
13092
|
align: 'center',
|
|
13090
13093
|
render: function render(_, record) {
|
|
13091
|
-
return
|
|
13094
|
+
return React.createElement(Drag$1, {
|
|
13092
13095
|
record: record
|
|
13093
13096
|
});
|
|
13094
13097
|
}
|
|
@@ -13098,7 +13101,7 @@ var useColumns = (function (form) {
|
|
|
13098
13101
|
dataIndex: 'serialNo',
|
|
13099
13102
|
width: 50,
|
|
13100
13103
|
render: function render(e) {
|
|
13101
|
-
return
|
|
13104
|
+
return React.createElement("span", {
|
|
13102
13105
|
style: {
|
|
13103
13106
|
padding: '0 10px'
|
|
13104
13107
|
}
|
|
@@ -13110,13 +13113,13 @@ var useColumns = (function (form) {
|
|
|
13110
13113
|
width: 119,
|
|
13111
13114
|
render: function render(_, record) {
|
|
13112
13115
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
13113
|
-
return
|
|
13116
|
+
return React.createElement(Form.Item, null, getFieldDecorator('itemCode', {
|
|
13114
13117
|
initialValue: editGood.itemCode,
|
|
13115
13118
|
rules: [].concat(_toConsumableArray(getReplenishRules('itemCode')), [{
|
|
13116
13119
|
pattern: /^.{1,19}$/,
|
|
13117
13120
|
message: '商品编码长度不能超过19位'
|
|
13118
13121
|
}])
|
|
13119
|
-
})(
|
|
13122
|
+
})(React.createElement(ItemCodeInput, {
|
|
13120
13123
|
onChange: function () {
|
|
13121
13124
|
var _onChange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
13122
13125
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
@@ -13142,7 +13145,7 @@ var useColumns = (function (form) {
|
|
|
13142
13145
|
}()
|
|
13143
13146
|
})));
|
|
13144
13147
|
} else {
|
|
13145
|
-
return
|
|
13148
|
+
return React.createElement("span", {
|
|
13146
13149
|
style: {
|
|
13147
13150
|
padding: '0 10px'
|
|
13148
13151
|
}
|
|
@@ -13150,13 +13153,13 @@ var useColumns = (function (form) {
|
|
|
13150
13153
|
}
|
|
13151
13154
|
}
|
|
13152
13155
|
}, {
|
|
13153
|
-
title:
|
|
13156
|
+
title: React.createElement(TitleText, {
|
|
13154
13157
|
required: true
|
|
13155
13158
|
}, "\u9879\u76EE\u540D\u79F0"),
|
|
13156
13159
|
key: 'itemName',
|
|
13157
13160
|
render: function render(_, record) {
|
|
13158
13161
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
13159
|
-
return
|
|
13162
|
+
return React.createElement(Form.Item, null, React.createElement("div", {
|
|
13160
13163
|
style: {
|
|
13161
13164
|
display: 'flex'
|
|
13162
13165
|
}
|
|
@@ -13203,17 +13206,17 @@ var useColumns = (function (form) {
|
|
|
13203
13206
|
return validator;
|
|
13204
13207
|
}()
|
|
13205
13208
|
}])
|
|
13206
|
-
})(
|
|
13209
|
+
})(React.createElement(ItemNameInput, {
|
|
13207
13210
|
editGood: editGood,
|
|
13208
13211
|
shorthand: editGood.shorthand,
|
|
13209
13212
|
onChange: function onChange() {
|
|
13210
13213
|
onChangeItemName(controller, form, record);
|
|
13211
13214
|
}
|
|
13212
|
-
})),
|
|
13215
|
+
})), React.createElement("div", {
|
|
13213
13216
|
className: "kts-invoice-operate-goods-list-able-list-itemName-import"
|
|
13214
|
-
}, controller.getGoodsList && model !== 'readOnly' &&
|
|
13217
|
+
}, controller.getGoodsList && model !== 'readOnly' && React.createElement(Tooltip, {
|
|
13215
13218
|
title: "\u70B9\u51FB\u4ECE\u5546\u54C1\u7BA1\u7406\u4E2D\u6DFB\u52A0\u5546\u54C1\u4FE1\u606F"
|
|
13216
|
-
},
|
|
13219
|
+
}, React.createElement(Button, {
|
|
13217
13220
|
onClick: controller.pipeline( /*#__PURE__*/function () {
|
|
13218
13221
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(s) {
|
|
13219
13222
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
@@ -13238,7 +13241,7 @@ var useColumns = (function (form) {
|
|
|
13238
13241
|
icon: "plus-circle"
|
|
13239
13242
|
})))));
|
|
13240
13243
|
} else {
|
|
13241
|
-
return
|
|
13244
|
+
return React.createElement(MyItemNameDiv, {
|
|
13242
13245
|
valueT: formatSearch(getItemNameWithShorthand({
|
|
13243
13246
|
shorthand: record.shorthand,
|
|
13244
13247
|
full: record.itemNameSelf || ''
|
|
@@ -13252,17 +13255,17 @@ var useColumns = (function (form) {
|
|
|
13252
13255
|
}
|
|
13253
13256
|
}
|
|
13254
13257
|
}, {
|
|
13255
|
-
title:
|
|
13258
|
+
title: React.createElement(TitleText, {
|
|
13256
13259
|
rules: (_columnsReplenish$ite = columnsReplenish['itemModelName']) === null || _columnsReplenish$ite === void 0 ? void 0 : _columnsReplenish$ite.rules
|
|
13257
13260
|
}, "\u89C4\u683C\u578B\u53F7"),
|
|
13258
13261
|
key: 'itemModelName',
|
|
13259
13262
|
width: 119,
|
|
13260
13263
|
render: function render(_, record) {
|
|
13261
13264
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
13262
|
-
return
|
|
13265
|
+
return React.createElement(Form.Item, null, getFieldDecorator('itemModelName', {
|
|
13263
13266
|
initialValue: isMyShow ? editGood.itemModelNameSelf : editGood.itemModelName,
|
|
13264
13267
|
rules: getReplenishRules('itemModelName')
|
|
13265
|
-
})(
|
|
13268
|
+
})(React.createElement(MyInput, {
|
|
13266
13269
|
onChange: function () {
|
|
13267
13270
|
var _onChange2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5() {
|
|
13268
13271
|
var key, value;
|
|
@@ -13295,7 +13298,7 @@ var useColumns = (function (form) {
|
|
|
13295
13298
|
}()
|
|
13296
13299
|
})));
|
|
13297
13300
|
} else {
|
|
13298
|
-
return
|
|
13301
|
+
return React.createElement(MyItemNameDiv, {
|
|
13299
13302
|
valueT: formatSearch(record.itemModelNameSelf, searchValue),
|
|
13300
13303
|
valueF: formatSearch(record.itemModelName, searchValue),
|
|
13301
13304
|
isMyShow: isMyShow
|
|
@@ -13303,17 +13306,17 @@ var useColumns = (function (form) {
|
|
|
13303
13306
|
}
|
|
13304
13307
|
}
|
|
13305
13308
|
}, {
|
|
13306
|
-
title:
|
|
13309
|
+
title: React.createElement(TitleText, {
|
|
13307
13310
|
rules: (_columnsReplenish$uni = columnsReplenish['unit']) === null || _columnsReplenish$uni === void 0 ? void 0 : _columnsReplenish$uni.rules
|
|
13308
13311
|
}, "\u5355\u4F4D"),
|
|
13309
13312
|
key: 'unit',
|
|
13310
13313
|
width: 70,
|
|
13311
13314
|
render: function render(_, record) {
|
|
13312
13315
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
13313
|
-
return
|
|
13316
|
+
return React.createElement(Form.Item, null, getFieldDecorator('unit', {
|
|
13314
13317
|
initialValue: editGood.unit,
|
|
13315
13318
|
rules: getReplenishRules('unit')
|
|
13316
|
-
})(
|
|
13319
|
+
})(React.createElement(AutoComplete$2, {
|
|
13317
13320
|
style: {
|
|
13318
13321
|
width: '100%'
|
|
13319
13322
|
},
|
|
@@ -13351,7 +13354,7 @@ var useColumns = (function (form) {
|
|
|
13351
13354
|
}()
|
|
13352
13355
|
})));
|
|
13353
13356
|
} else {
|
|
13354
|
-
return
|
|
13357
|
+
return React.createElement("span", {
|
|
13355
13358
|
style: {
|
|
13356
13359
|
padding: '0 10px'
|
|
13357
13360
|
}
|
|
@@ -13359,7 +13362,7 @@ var useColumns = (function (form) {
|
|
|
13359
13362
|
}
|
|
13360
13363
|
}
|
|
13361
13364
|
}, {
|
|
13362
|
-
title:
|
|
13365
|
+
title: React.createElement(TitleText, {
|
|
13363
13366
|
rules: (_columnsReplenish$qua = columnsReplenish['quantity']) === null || _columnsReplenish$qua === void 0 ? void 0 : _columnsReplenish$qua.rules
|
|
13364
13367
|
}, "\u6570\u91CF"),
|
|
13365
13368
|
dataIndex: 'quantity',
|
|
@@ -13368,7 +13371,7 @@ var useColumns = (function (form) {
|
|
|
13368
13371
|
width: 149,
|
|
13369
13372
|
render: function render(value, record) {
|
|
13370
13373
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
13371
|
-
return
|
|
13374
|
+
return React.createElement(Form.Item, null, getFieldDecorator('quantity', {
|
|
13372
13375
|
initialValue: nonScientificNotation(editGood.quantity),
|
|
13373
13376
|
getValueFromEvent: onNumberValueChange,
|
|
13374
13377
|
rules: [].concat(_toConsumableArray(getReplenishRules('quantity')), [{
|
|
@@ -13414,7 +13417,7 @@ var useColumns = (function (form) {
|
|
|
13414
13417
|
return validator;
|
|
13415
13418
|
}()
|
|
13416
13419
|
}])
|
|
13417
|
-
})(
|
|
13420
|
+
})(React.createElement(MyInput, {
|
|
13418
13421
|
style: {
|
|
13419
13422
|
textAlign: 'right'
|
|
13420
13423
|
},
|
|
@@ -13446,7 +13449,7 @@ var useColumns = (function (form) {
|
|
|
13446
13449
|
}()
|
|
13447
13450
|
})));
|
|
13448
13451
|
} else {
|
|
13449
|
-
return
|
|
13452
|
+
return React.createElement("span", {
|
|
13450
13453
|
style: {
|
|
13451
13454
|
padding: '0 10px'
|
|
13452
13455
|
}
|
|
@@ -13454,7 +13457,7 @@ var useColumns = (function (form) {
|
|
|
13454
13457
|
}
|
|
13455
13458
|
}
|
|
13456
13459
|
}, {
|
|
13457
|
-
title:
|
|
13460
|
+
title: React.createElement(TitleText, {
|
|
13458
13461
|
rules: (_columnsReplenish$pri = columnsReplenish['priceIncludeTax']) === null || _columnsReplenish$pri === void 0 ? void 0 : _columnsReplenish$pri.rules
|
|
13459
13462
|
}, "\u5355\u4EF7(\u542B\u7A0E)"),
|
|
13460
13463
|
dataIndex: 'priceIncludeTax',
|
|
@@ -13463,7 +13466,7 @@ var useColumns = (function (form) {
|
|
|
13463
13466
|
width: 149,
|
|
13464
13467
|
render: function render(value, record) {
|
|
13465
13468
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
13466
|
-
return
|
|
13469
|
+
return React.createElement(Form.Item, null, getFieldDecorator('priceIncludeTax', {
|
|
13467
13470
|
initialValue: nonScientificNotation(editGood.priceIncludeTax),
|
|
13468
13471
|
getValueFromEvent: onNumberValueChange,
|
|
13469
13472
|
rules: [].concat(_toConsumableArray(getReplenishRules('priceIncludeTax')), [{
|
|
@@ -13509,7 +13512,7 @@ var useColumns = (function (form) {
|
|
|
13509
13512
|
return validator;
|
|
13510
13513
|
}()
|
|
13511
13514
|
}])
|
|
13512
|
-
})(
|
|
13515
|
+
})(React.createElement(MyInput, {
|
|
13513
13516
|
style: {
|
|
13514
13517
|
textAlign: 'right'
|
|
13515
13518
|
},
|
|
@@ -13521,7 +13524,7 @@ var useColumns = (function (form) {
|
|
|
13521
13524
|
}
|
|
13522
13525
|
})));
|
|
13523
13526
|
} else {
|
|
13524
|
-
return
|
|
13527
|
+
return React.createElement("span", {
|
|
13525
13528
|
style: {
|
|
13526
13529
|
padding: '0 10px'
|
|
13527
13530
|
}
|
|
@@ -13529,7 +13532,7 @@ var useColumns = (function (form) {
|
|
|
13529
13532
|
}
|
|
13530
13533
|
}
|
|
13531
13534
|
}, {
|
|
13532
|
-
title:
|
|
13535
|
+
title: React.createElement(TitleText, {
|
|
13533
13536
|
rules: (_columnsReplenish$pri2 = columnsReplenish['priceExcludeTax']) === null || _columnsReplenish$pri2 === void 0 ? void 0 : _columnsReplenish$pri2.rules
|
|
13534
13537
|
}, "\u5355\u4EF7(\u4E0D\u542B\u7A0E)"),
|
|
13535
13538
|
dataIndex: 'priceExcludeTax',
|
|
@@ -13538,7 +13541,7 @@ var useColumns = (function (form) {
|
|
|
13538
13541
|
width: 149,
|
|
13539
13542
|
render: function render(value, record) {
|
|
13540
13543
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
13541
|
-
return
|
|
13544
|
+
return React.createElement(Form.Item, null, getFieldDecorator('priceExcludeTax', {
|
|
13542
13545
|
initialValue: nonScientificNotation(editGood.priceExcludeTax),
|
|
13543
13546
|
getValueFromEvent: onNumberValueChange,
|
|
13544
13547
|
rules: [].concat(_toConsumableArray(getReplenishRules('priceExcludeTax')), [{
|
|
@@ -13584,7 +13587,7 @@ var useColumns = (function (form) {
|
|
|
13584
13587
|
return validator;
|
|
13585
13588
|
}()
|
|
13586
13589
|
}])
|
|
13587
|
-
})(
|
|
13590
|
+
})(React.createElement(MyInput, {
|
|
13588
13591
|
style: {
|
|
13589
13592
|
textAlign: 'right'
|
|
13590
13593
|
},
|
|
@@ -13596,7 +13599,7 @@ var useColumns = (function (form) {
|
|
|
13596
13599
|
}
|
|
13597
13600
|
})));
|
|
13598
13601
|
} else {
|
|
13599
|
-
return
|
|
13602
|
+
return React.createElement("span", {
|
|
13600
13603
|
style: {
|
|
13601
13604
|
padding: '0 10px'
|
|
13602
13605
|
}
|
|
@@ -13604,7 +13607,7 @@ var useColumns = (function (form) {
|
|
|
13604
13607
|
}
|
|
13605
13608
|
}
|
|
13606
13609
|
}, {
|
|
13607
|
-
title:
|
|
13610
|
+
title: React.createElement(TitleText, {
|
|
13608
13611
|
required: true
|
|
13609
13612
|
}, "\u91D1\u989D(\u542B\u7A0E)"),
|
|
13610
13613
|
dataIndex: 'lineAmountIncludeTax',
|
|
@@ -13613,7 +13616,7 @@ var useColumns = (function (form) {
|
|
|
13613
13616
|
align: 'right',
|
|
13614
13617
|
render: function render(value, record) {
|
|
13615
13618
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
13616
|
-
return
|
|
13619
|
+
return React.createElement(Form.Item, null, getFieldDecorator('lineAmountIncludeTax', {
|
|
13617
13620
|
initialValue: editGood.lineAmountIncludeTax,
|
|
13618
13621
|
getValueFromEvent: onNumberValueChange,
|
|
13619
13622
|
rules: [].concat(_toConsumableArray(getReplenishRules('lineAmountIncludeTax')), [{
|
|
@@ -13673,7 +13676,7 @@ var useColumns = (function (form) {
|
|
|
13673
13676
|
return validator;
|
|
13674
13677
|
}()
|
|
13675
13678
|
}])
|
|
13676
|
-
})(
|
|
13679
|
+
})(React.createElement(MyInput, {
|
|
13677
13680
|
style: {
|
|
13678
13681
|
textAlign: 'right'
|
|
13679
13682
|
},
|
|
@@ -13684,7 +13687,7 @@ var useColumns = (function (form) {
|
|
|
13684
13687
|
}
|
|
13685
13688
|
})));
|
|
13686
13689
|
} else {
|
|
13687
|
-
return
|
|
13690
|
+
return React.createElement("span", {
|
|
13688
13691
|
style: {
|
|
13689
13692
|
padding: '0 10px'
|
|
13690
13693
|
}
|
|
@@ -13692,7 +13695,7 @@ var useColumns = (function (form) {
|
|
|
13692
13695
|
}
|
|
13693
13696
|
}
|
|
13694
13697
|
}, {
|
|
13695
|
-
title:
|
|
13698
|
+
title: React.createElement(TitleText, {
|
|
13696
13699
|
required: true
|
|
13697
13700
|
}, "\u91D1\u989D(\u4E0D\u542B\u7A0E)"),
|
|
13698
13701
|
dataIndex: 'lineAmountExcludeTax',
|
|
@@ -13701,7 +13704,7 @@ var useColumns = (function (form) {
|
|
|
13701
13704
|
width: 119,
|
|
13702
13705
|
render: function render(value, record) {
|
|
13703
13706
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
13704
|
-
return
|
|
13707
|
+
return React.createElement(Form.Item, null, getFieldDecorator('lineAmountExcludeTax', {
|
|
13705
13708
|
initialValue: editGood.lineAmountExcludeTax,
|
|
13706
13709
|
getValueFromEvent: onNumberValueChange,
|
|
13707
13710
|
rules: [].concat(_toConsumableArray(getReplenishRules('lineAmountExcludeTax')), [{
|
|
@@ -13736,7 +13739,7 @@ var useColumns = (function (form) {
|
|
|
13736
13739
|
return validator;
|
|
13737
13740
|
}()
|
|
13738
13741
|
}])
|
|
13739
|
-
})(
|
|
13742
|
+
})(React.createElement(MyInput, {
|
|
13740
13743
|
style: {
|
|
13741
13744
|
textAlign: 'right'
|
|
13742
13745
|
},
|
|
@@ -13747,7 +13750,7 @@ var useColumns = (function (form) {
|
|
|
13747
13750
|
}
|
|
13748
13751
|
})));
|
|
13749
13752
|
} else {
|
|
13750
|
-
return
|
|
13753
|
+
return React.createElement("span", {
|
|
13751
13754
|
style: {
|
|
13752
13755
|
padding: '0 10px'
|
|
13753
13756
|
}
|
|
@@ -13755,16 +13758,16 @@ var useColumns = (function (form) {
|
|
|
13755
13758
|
}
|
|
13756
13759
|
}
|
|
13757
13760
|
}, {
|
|
13758
|
-
title:
|
|
13761
|
+
title: React.createElement(TitleText, {
|
|
13759
13762
|
required: true
|
|
13760
|
-
}, "\u7A0E\u7387
|
|
13763
|
+
}, "\u7A0E\u7387"),
|
|
13761
13764
|
dataIndex: 'taxRate',
|
|
13762
13765
|
key: 'taxRate',
|
|
13763
13766
|
align: 'right',
|
|
13764
13767
|
width: 75,
|
|
13765
13768
|
render: function render(value, record) {
|
|
13766
13769
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
13767
|
-
return
|
|
13770
|
+
return React.createElement(Form.Item, null, getFieldDecorator('taxRate', {
|
|
13768
13771
|
initialValue: editGood.taxRate,
|
|
13769
13772
|
rules: [].concat(_toConsumableArray(getReplenishRules('taxRate')), [{
|
|
13770
13773
|
required: true,
|
|
@@ -13773,7 +13776,7 @@ var useColumns = (function (form) {
|
|
|
13773
13776
|
pattern: /^[+-]?(0|([1-9]\d*))(\.\d+)?$/,
|
|
13774
13777
|
message: '请选择正确税率'
|
|
13775
13778
|
}])
|
|
13776
|
-
})(
|
|
13779
|
+
})(React.createElement(Select, {
|
|
13777
13780
|
className: "kts-invoice-operate-goods-list-table-tax-rate",
|
|
13778
13781
|
dropdownMenuStyle: {
|
|
13779
13782
|
textAlign: "right"
|
|
@@ -13787,13 +13790,13 @@ var useColumns = (function (form) {
|
|
|
13787
13790
|
onChangeTaxRate(controller, form, record);
|
|
13788
13791
|
}
|
|
13789
13792
|
}, taxRateList.map(function (e, i) {
|
|
13790
|
-
return
|
|
13793
|
+
return React.createElement(Select.Option, {
|
|
13791
13794
|
key: i,
|
|
13792
13795
|
value: e
|
|
13793
13796
|
}, e, "%");
|
|
13794
13797
|
}))));
|
|
13795
13798
|
} else {
|
|
13796
|
-
return
|
|
13799
|
+
return React.createElement("span", {
|
|
13797
13800
|
style: {
|
|
13798
13801
|
padding: '0 10px'
|
|
13799
13802
|
}
|
|
@@ -13801,7 +13804,7 @@ var useColumns = (function (form) {
|
|
|
13801
13804
|
}
|
|
13802
13805
|
}
|
|
13803
13806
|
}, {
|
|
13804
|
-
title:
|
|
13807
|
+
title: React.createElement(TitleText, {
|
|
13805
13808
|
rules: (_columnsReplenish$tax = columnsReplenish['taxAmount']) === null || _columnsReplenish$tax === void 0 ? void 0 : _columnsReplenish$tax.rules
|
|
13806
13809
|
}, "\u7A0E\u989D"),
|
|
13807
13810
|
dataIndex: 'taxAmount',
|
|
@@ -13813,11 +13816,11 @@ var useColumns = (function (form) {
|
|
|
13813
13816
|
return getFieldDecorator('taxAmount', {
|
|
13814
13817
|
initialValue: editGood.taxAmount,
|
|
13815
13818
|
rules: getReplenishRules('taxAmount')
|
|
13816
|
-
})(
|
|
13819
|
+
})(React.createElement(MyDiv, {
|
|
13817
13820
|
loading: isCipher(changeField, 'taxAmount')
|
|
13818
13821
|
}));
|
|
13819
13822
|
} else {
|
|
13820
|
-
return
|
|
13823
|
+
return React.createElement("span", {
|
|
13821
13824
|
style: {
|
|
13822
13825
|
padding: '0 10px'
|
|
13823
13826
|
}
|
|
@@ -13832,42 +13835,42 @@ var useColumns = (function (form) {
|
|
|
13832
13835
|
render: function render(e) {
|
|
13833
13836
|
switch (e) {
|
|
13834
13837
|
case LineAttributeType$1.折扣行:
|
|
13835
|
-
return
|
|
13838
|
+
return React.createElement("span", {
|
|
13836
13839
|
style: {
|
|
13837
13840
|
padding: '0 10px'
|
|
13838
13841
|
}
|
|
13839
13842
|
}, "\u6298\u6263\u884C");
|
|
13840
13843
|
|
|
13841
13844
|
case LineAttributeType$1.被折扣行:
|
|
13842
|
-
return
|
|
13845
|
+
return React.createElement("span", {
|
|
13843
13846
|
style: {
|
|
13844
13847
|
padding: '0 10px'
|
|
13845
13848
|
}
|
|
13846
13849
|
}, "\u88AB\u6298\u6263\u884C");
|
|
13847
13850
|
|
|
13848
13851
|
case LineAttributeType$1.赠品行:
|
|
13849
|
-
return
|
|
13852
|
+
return React.createElement("span", {
|
|
13850
13853
|
style: {
|
|
13851
13854
|
padding: '0 10px'
|
|
13852
13855
|
}
|
|
13853
13856
|
}, "\u8D60\u54C1\u884C");
|
|
13854
13857
|
|
|
13855
13858
|
case LineAttributeType$1.折让行:
|
|
13856
|
-
return
|
|
13859
|
+
return React.createElement("span", {
|
|
13857
13860
|
style: {
|
|
13858
13861
|
padding: '0 10px'
|
|
13859
13862
|
}
|
|
13860
13863
|
}, "\u6298\u8BA9\u884C");
|
|
13861
13864
|
|
|
13862
13865
|
case LineAttributeType$1.正常:
|
|
13863
|
-
return
|
|
13866
|
+
return React.createElement("span", {
|
|
13864
13867
|
style: {
|
|
13865
13868
|
padding: '0 10px'
|
|
13866
13869
|
}
|
|
13867
13870
|
}, "\u6B63\u5E38\u884C");
|
|
13868
13871
|
|
|
13869
13872
|
default:
|
|
13870
|
-
return
|
|
13873
|
+
return React.createElement("span", {
|
|
13871
13874
|
style: {
|
|
13872
13875
|
padding: '0 10px'
|
|
13873
13876
|
}
|
|
@@ -13881,7 +13884,7 @@ var useColumns = (function (form) {
|
|
|
13881
13884
|
width: 130,
|
|
13882
13885
|
fixed: 'right',
|
|
13883
13886
|
render: function render(_value, record) {
|
|
13884
|
-
return
|
|
13887
|
+
return React.createElement(RowMenu, {
|
|
13885
13888
|
key: record.lineAttribute,
|
|
13886
13889
|
goods: record
|
|
13887
13890
|
});
|
|
@@ -13936,13 +13939,13 @@ var MyInput = /*#__PURE__*/function (_React$Component) {
|
|
|
13936
13939
|
key: "render",
|
|
13937
13940
|
value: function render() {
|
|
13938
13941
|
if (this.props.loading) {
|
|
13939
|
-
return
|
|
13942
|
+
return React.createElement(Spin, {
|
|
13940
13943
|
size: "small"
|
|
13941
|
-
},
|
|
13944
|
+
}, React.createElement(Input, _objectSpread2(_objectSpread2({}, this.props), {}, {
|
|
13942
13945
|
autoComplete: "off"
|
|
13943
13946
|
})));
|
|
13944
13947
|
} else {
|
|
13945
|
-
return
|
|
13948
|
+
return React.createElement(Input, _objectSpread2(_objectSpread2({}, this.props), {}, {
|
|
13946
13949
|
autoComplete: "off"
|
|
13947
13950
|
}));
|
|
13948
13951
|
}
|
|
@@ -13967,15 +13970,15 @@ var MyDiv = /*#__PURE__*/function (_React$Component2) {
|
|
|
13967
13970
|
key: "render",
|
|
13968
13971
|
value: function render() {
|
|
13969
13972
|
if (this.props.loading) {
|
|
13970
|
-
return
|
|
13973
|
+
return React.createElement(Spin, {
|
|
13971
13974
|
size: "small"
|
|
13972
|
-
},
|
|
13975
|
+
}, React.createElement("span", {
|
|
13973
13976
|
style: {
|
|
13974
13977
|
padding: '0 10px'
|
|
13975
13978
|
}
|
|
13976
13979
|
}, this.props.value));
|
|
13977
13980
|
} else {
|
|
13978
|
-
return
|
|
13981
|
+
return React.createElement("span", {
|
|
13979
13982
|
style: {
|
|
13980
13983
|
padding: '0 10px'
|
|
13981
13984
|
}
|
|
@@ -14008,9 +14011,9 @@ var MyItemNameDiv = /*#__PURE__*/function (_React$Component3) {
|
|
|
14008
14011
|
|
|
14009
14012
|
if (isMyShow) {
|
|
14010
14013
|
if (valueT) {
|
|
14011
|
-
return
|
|
14014
|
+
return React.createElement(Tooltip, {
|
|
14012
14015
|
title: valueT
|
|
14013
|
-
},
|
|
14016
|
+
}, React.createElement("span", {
|
|
14014
14017
|
style: {
|
|
14015
14018
|
padding: '0 10px',
|
|
14016
14019
|
color: '#0074ff',
|
|
@@ -14021,9 +14024,9 @@ var MyItemNameDiv = /*#__PURE__*/function (_React$Component3) {
|
|
|
14021
14024
|
}
|
|
14022
14025
|
}, valueT));
|
|
14023
14026
|
} else {
|
|
14024
|
-
return
|
|
14027
|
+
return React.createElement(Tooltip, {
|
|
14025
14028
|
title: valueF
|
|
14026
|
-
},
|
|
14029
|
+
}, React.createElement("span", {
|
|
14027
14030
|
style: {
|
|
14028
14031
|
padding: '0 10px',
|
|
14029
14032
|
display: 'block',
|
|
@@ -14035,9 +14038,9 @@ var MyItemNameDiv = /*#__PURE__*/function (_React$Component3) {
|
|
|
14035
14038
|
}
|
|
14036
14039
|
} else {
|
|
14037
14040
|
if (valueF) {
|
|
14038
|
-
return
|
|
14041
|
+
return React.createElement(Tooltip, {
|
|
14039
14042
|
title: valueF
|
|
14040
|
-
},
|
|
14043
|
+
}, React.createElement("span", {
|
|
14041
14044
|
style: {
|
|
14042
14045
|
padding: '0 10px',
|
|
14043
14046
|
display: 'block',
|
|
@@ -14047,9 +14050,9 @@ var MyItemNameDiv = /*#__PURE__*/function (_React$Component3) {
|
|
|
14047
14050
|
}
|
|
14048
14051
|
}, valueF));
|
|
14049
14052
|
} else {
|
|
14050
|
-
return
|
|
14053
|
+
return React.createElement(Tooltip, {
|
|
14051
14054
|
title: valueT
|
|
14052
|
-
},
|
|
14055
|
+
}, React.createElement("span", {
|
|
14053
14056
|
style: {
|
|
14054
14057
|
padding: '0 10px',
|
|
14055
14058
|
color: '#0074ff',
|
|
@@ -14076,7 +14079,7 @@ function formatSearch(value, search) {
|
|
|
14076
14079
|
return dcoding(e);
|
|
14077
14080
|
}).join("<span class=\"kts-invoice-operate-goods-list-table-search-protrude\" >".concat(search, "</span>"));
|
|
14078
14081
|
|
|
14079
|
-
return
|
|
14082
|
+
return React.createElement("span", {
|
|
14080
14083
|
dangerouslySetInnerHTML: {
|
|
14081
14084
|
__html: __html
|
|
14082
14085
|
}
|
|
@@ -14501,7 +14504,7 @@ var useRowSelection = (function () {
|
|
|
14501
14504
|
};
|
|
14502
14505
|
}(), [controller]);
|
|
14503
14506
|
var columnTitle = React.useMemo(function () {
|
|
14504
|
-
return
|
|
14507
|
+
return React.createElement(Checkbox, {
|
|
14505
14508
|
onChange: onClickSelectAll,
|
|
14506
14509
|
indeterminate: indeterminate,
|
|
14507
14510
|
checked: isAll
|
|
@@ -14702,16 +14705,16 @@ var useEndowCodeButton = (function () {
|
|
|
14702
14705
|
}, _callee2);
|
|
14703
14706
|
})), [controller]);
|
|
14704
14707
|
var menuItem = React.useMemo(function () {
|
|
14705
|
-
if (model === 'readOnly') return
|
|
14706
|
-
return
|
|
14708
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
14709
|
+
return React.createElement(Menu.Item, {
|
|
14707
14710
|
key: "2",
|
|
14708
14711
|
onClick: onClick,
|
|
14709
14712
|
disabled: disabled
|
|
14710
14713
|
}, "\u6279\u91CF\u8D4B\u7801");
|
|
14711
14714
|
}, [onClick, disabled, model]);
|
|
14712
14715
|
var button = React.useMemo(function () {
|
|
14713
|
-
if (model === 'readOnly') return
|
|
14714
|
-
return
|
|
14716
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
14717
|
+
return React.createElement(Button, {
|
|
14715
14718
|
onClick: onClick,
|
|
14716
14719
|
disabled: disabled
|
|
14717
14720
|
}, "\u6279\u91CF\u8D4B\u7801");
|
|
@@ -14777,19 +14780,19 @@ var useDelRowButton = (function () {
|
|
|
14777
14780
|
}())();
|
|
14778
14781
|
}, [controller]);
|
|
14779
14782
|
var menuItem = React.useMemo(function () {
|
|
14780
|
-
if (model === 'prefab') return
|
|
14781
|
-
if (model === 'readOnly') return
|
|
14782
|
-
return
|
|
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, {
|
|
14783
14786
|
key: "1",
|
|
14784
14787
|
onClick: onClick,
|
|
14785
14788
|
disabled: disabled
|
|
14786
14789
|
}, " \u5220\u9664\u884C ");
|
|
14787
14790
|
}, [model, onClick, disabled]);
|
|
14788
14791
|
var button = React.useMemo(function () {
|
|
14789
|
-
if (isRemRow === false) return
|
|
14790
|
-
if (model === 'prefab') return
|
|
14791
|
-
if (model === 'readOnly') return
|
|
14792
|
-
return
|
|
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, {
|
|
14793
14796
|
onClick: onClick,
|
|
14794
14797
|
disabled: disabled
|
|
14795
14798
|
}, "\u6279\u91CF\u5220\u9664");
|
|
@@ -14984,14 +14987,14 @@ var useAddDiscountRowButton = (function () {
|
|
|
14984
14987
|
}, _callee3);
|
|
14985
14988
|
})), [controller]);
|
|
14986
14989
|
var menuItem = React.useMemo(function () {
|
|
14987
|
-
return model === 'prefab' ?
|
|
14990
|
+
return model === 'prefab' ? React.createElement(React.Fragment, null) : isAddDiscount !== false ? React.createElement(Menu.Item, {
|
|
14988
14991
|
key: "0",
|
|
14989
14992
|
onClick: onClick,
|
|
14990
14993
|
disabled: disabled
|
|
14991
14994
|
}, "\u6DFB\u52A0\u6298\u6263\u884C") : undefined;
|
|
14992
14995
|
}, [isAddDiscount, disabled, onClick]);
|
|
14993
14996
|
var drawer = React.useMemo(function () {
|
|
14994
|
-
return
|
|
14997
|
+
return React.createElement(Drawer, {
|
|
14995
14998
|
className: "kts-invoice-operate-goods-list-add-discount-row",
|
|
14996
14999
|
width: 540,
|
|
14997
15000
|
title: "\u6DFB\u52A0\u6298\u6263\u884C",
|
|
@@ -14999,7 +15002,7 @@ var useAddDiscountRowButton = (function () {
|
|
|
14999
15002
|
destroyOnClose: true,
|
|
15000
15003
|
onClose: onClose,
|
|
15001
15004
|
visible: visible
|
|
15002
|
-
},
|
|
15005
|
+
}, React.createElement(DrawerBody, null));
|
|
15003
15006
|
}, [visible, onClose]);
|
|
15004
15007
|
return {
|
|
15005
15008
|
menuItem: menuItem,
|
|
@@ -15116,13 +15119,13 @@ var DrawerBody = decorator(Form.create())(function (props) {
|
|
|
15116
15119
|
});
|
|
15117
15120
|
});
|
|
15118
15121
|
}, 300), [form, lineAmountSum]);
|
|
15119
|
-
return
|
|
15122
|
+
return React.createElement(React.Fragment, null, React.createElement("div", {
|
|
15120
15123
|
className: "add-discount-row-body"
|
|
15121
|
-
},
|
|
15124
|
+
}, React.createElement("p", null, "\u5F53\u524D\u9009\u62E9", React.createElement(Text$3, {
|
|
15122
15125
|
type: "danger"
|
|
15123
|
-
}, discountGoodIndex.length), "\u884C\u88AB\u6298\u6263\u5546\u54C1\u884C\uFF0C\u91D1\u989D\u5408\u8BA1\xA5",
|
|
15126
|
+
}, discountGoodIndex.length), "\u884C\u88AB\u6298\u6263\u5546\u54C1\u884C\uFF0C\u91D1\u989D\u5408\u8BA1\xA5", React.createElement(Text$3, {
|
|
15124
15127
|
type: "danger"
|
|
15125
|
-
}, lineAmountSum.toFixed(2))),
|
|
15128
|
+
}, lineAmountSum.toFixed(2))), React.createElement(Form.Item, {
|
|
15126
15129
|
label: "\u6298\u6263\u7387\uFF1A"
|
|
15127
15130
|
}, getFieldDecorator('discount', {
|
|
15128
15131
|
rules: [{
|
|
@@ -15152,11 +15155,11 @@ var DrawerBody = decorator(Form.create())(function (props) {
|
|
|
15152
15155
|
callback();
|
|
15153
15156
|
}
|
|
15154
15157
|
}]
|
|
15155
|
-
})(
|
|
15158
|
+
})(React.createElement(Input, {
|
|
15156
15159
|
placeholder: "\u8BF7\u8F93\u5165\u5927\u4E8E0\u5C0F\u4E8E100\u7684\u6570\u5B57",
|
|
15157
15160
|
suffix: "%",
|
|
15158
15161
|
onChange: onChangeDiscount
|
|
15159
|
-
}))),
|
|
15162
|
+
}))), React.createElement(Form.Item, {
|
|
15160
15163
|
label: "\u6298\u6263\u91D1\u989D\uFF1A"
|
|
15161
15164
|
}, getFieldDecorator('discolineAmountunt', {
|
|
15162
15165
|
rules: [{
|
|
@@ -15186,19 +15189,19 @@ var DrawerBody = decorator(Form.create())(function (props) {
|
|
|
15186
15189
|
callback();
|
|
15187
15190
|
}
|
|
15188
15191
|
}]
|
|
15189
|
-
})(
|
|
15192
|
+
})(React.createElement(Input, {
|
|
15190
15193
|
placeholder: "\u8BF7\u8F93\u5165\u5927\u4E8E0\u5C0F\u4E8E\u91D1\u989D\u5408\u8BA1\u7684\u6570\u5B57",
|
|
15191
15194
|
suffix: "\xA5",
|
|
15192
15195
|
onChange: onChangeDiscolineAmountunt
|
|
15193
|
-
})))),
|
|
15196
|
+
})))), React.createElement("div", {
|
|
15194
15197
|
className: "add-discount-row-footer"
|
|
15195
|
-
},
|
|
15198
|
+
}, React.createElement(Button, {
|
|
15196
15199
|
block: true,
|
|
15197
15200
|
style: {
|
|
15198
15201
|
marginBottom: 12
|
|
15199
15202
|
},
|
|
15200
15203
|
onClick: onClose
|
|
15201
|
-
}, "\u53D6\u6D88"),
|
|
15204
|
+
}, "\u53D6\u6D88"), React.createElement(Button, {
|
|
15202
15205
|
type: "primary",
|
|
15203
15206
|
block: true,
|
|
15204
15207
|
onClick: onClickSave
|
|
@@ -15295,13 +15298,13 @@ function useMergeDetails() {
|
|
|
15295
15298
|
}];
|
|
15296
15299
|
}, [selectedGoodIndex, onClickManual, onClickAuto]);
|
|
15297
15300
|
var button = React.useMemo(function () {
|
|
15298
|
-
if (!isMergeDetails) return
|
|
15299
|
-
return
|
|
15301
|
+
if (!isMergeDetails) return React.createElement(React.Fragment, null);
|
|
15302
|
+
return React.createElement(Dropdown$1, {
|
|
15300
15303
|
menu: {
|
|
15301
15304
|
items: items
|
|
15302
15305
|
},
|
|
15303
15306
|
trigger: ['click']
|
|
15304
|
-
},
|
|
15307
|
+
}, React.createElement(Button, null, "\u5408\u5E76\u660E\u7EC6"));
|
|
15305
15308
|
}, [selectedGoodIndex.length, isMergeDetails]);
|
|
15306
15309
|
return {
|
|
15307
15310
|
/** 按钮 */
|
|
@@ -15387,8 +15390,8 @@ function useMergeDiscount() {
|
|
|
15387
15390
|
}, _callee);
|
|
15388
15391
|
})), [controller]);
|
|
15389
15392
|
var button = React.useMemo(function () {
|
|
15390
|
-
if (!isMergeDiscount) return
|
|
15391
|
-
return
|
|
15393
|
+
if (!isMergeDiscount) return React.createElement(React.Fragment, null);
|
|
15394
|
+
return React.createElement(Button, {
|
|
15392
15395
|
onClick: onClick,
|
|
15393
15396
|
disabled: goodsList.length <= 1
|
|
15394
15397
|
}, "\u5408\u5E76\u6298\u6263");
|
|
@@ -15566,8 +15569,8 @@ function useSalesDiscount() {
|
|
|
15566
15569
|
}).length <= 0;
|
|
15567
15570
|
}, [goodsList]);
|
|
15568
15571
|
var button = React.useMemo(function () {
|
|
15569
|
-
if (!isSalesDiscount) return
|
|
15570
|
-
return
|
|
15572
|
+
if (!isSalesDiscount) return React.createElement(React.Fragment, null);
|
|
15573
|
+
return React.createElement(Button, {
|
|
15571
15574
|
onClick: onClick,
|
|
15572
15575
|
disabled: disabled
|
|
15573
15576
|
}, "\u9500\u552E\u6298\u8BA9");
|
|
@@ -15738,12 +15741,12 @@ function useSalesGifts() {
|
|
|
15738
15741
|
}, [selectedGoodIndex, onClickManual, onClickAuto]);
|
|
15739
15742
|
var button = React.useMemo(function () {
|
|
15740
15743
|
if (!isSalesGifts) return;
|
|
15741
|
-
return
|
|
15744
|
+
return React.createElement(Dropdown$1, {
|
|
15742
15745
|
menu: {
|
|
15743
15746
|
items: items
|
|
15744
15747
|
},
|
|
15745
15748
|
trigger: ['click']
|
|
15746
|
-
},
|
|
15749
|
+
}, React.createElement(Button, null, "\u9500\u552E\u8D60\u54C1"));
|
|
15747
15750
|
}, [items, isSalesGifts]);
|
|
15748
15751
|
return {
|
|
15749
15752
|
/** 按钮 */
|
|
@@ -15781,7 +15784,7 @@ var GoodsList = /*#__PURE__*/function (_React$Component) {
|
|
|
15781
15784
|
_createClass(GoodsList, [{
|
|
15782
15785
|
key: "render",
|
|
15783
15786
|
value: function render() {
|
|
15784
|
-
return
|
|
15787
|
+
return React.createElement(Main, _objectSpread2({}, this.props));
|
|
15785
15788
|
}
|
|
15786
15789
|
}]);
|
|
15787
15790
|
|
|
@@ -15983,22 +15986,22 @@ var Main = decorator(Form.create())(function (props) {
|
|
|
15983
15986
|
};
|
|
15984
15987
|
}())();
|
|
15985
15988
|
}, [controller, props.isSwitchTax]);
|
|
15986
|
-
return
|
|
15989
|
+
return React.createElement("div", {
|
|
15987
15990
|
className: "kts-invoice-operate-goods-list",
|
|
15988
15991
|
onClick: function onClick(e) {
|
|
15989
15992
|
e.stopPropagation();
|
|
15990
15993
|
}
|
|
15991
|
-
},
|
|
15994
|
+
}, React.createElement("div", {
|
|
15992
15995
|
className: "kts-invoice-operate-goods-list-able"
|
|
15993
|
-
},
|
|
15996
|
+
}, React.createElement("div", {
|
|
15994
15997
|
className: "kts-invoice-operate-goods-list-able-list"
|
|
15995
|
-
},
|
|
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", {
|
|
15996
15999
|
className: "kts-invoice-operate-goods-list-able-extend"
|
|
15997
|
-
}, props.menuExpansion,
|
|
16000
|
+
}, props.menuExpansion, React.createElement(DescribeSwitch, null), React.createElement(TaxIncludedSwitch, null))), React.createElement("div", {
|
|
15998
16001
|
className: classNames('kts-invoice-operate-goods-list-table', {
|
|
15999
16002
|
'kts-invoice-operate-prefab': isprefab
|
|
16000
16003
|
})
|
|
16001
|
-
},
|
|
16004
|
+
}, React.createElement(TableVirtual, {
|
|
16002
16005
|
bordered: true,
|
|
16003
16006
|
size: "small",
|
|
16004
16007
|
rowKey: "$index",
|
|
@@ -16021,7 +16024,7 @@ var Main = decorator(Form.create())(function (props) {
|
|
|
16021
16024
|
}
|
|
16022
16025
|
};
|
|
16023
16026
|
}
|
|
16024
|
-
})),
|
|
16027
|
+
})), React.createElement("div", null, React.createElement(Statistics, null)));
|
|
16025
16028
|
});
|
|
16026
16029
|
|
|
16027
16030
|
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";
|
|
@@ -16046,7 +16049,7 @@ var Buyer = /*#__PURE__*/function (_React$Component) {
|
|
|
16046
16049
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
16047
16050
|
|
|
16048
16051
|
_this.render = function () {
|
|
16049
|
-
return
|
|
16052
|
+
return React.createElement(Main$1, _objectSpread2({}, _this.props));
|
|
16050
16053
|
};
|
|
16051
16054
|
|
|
16052
16055
|
return _this;
|
|
@@ -16077,7 +16080,7 @@ var Main$1 = decorator(Form.create())(function (props) {
|
|
|
16077
16080
|
return [{
|
|
16078
16081
|
id: 'sellerName',
|
|
16079
16082
|
label: '销售方名称',
|
|
16080
|
-
node:
|
|
16083
|
+
node: React.createElement(Input, {
|
|
16081
16084
|
readOnly: model === 'prefab',
|
|
16082
16085
|
size: "small"
|
|
16083
16086
|
}),
|
|
@@ -16090,7 +16093,7 @@ var Main$1 = decorator(Form.create())(function (props) {
|
|
|
16090
16093
|
}, {
|
|
16091
16094
|
id: 'sellerNo',
|
|
16092
16095
|
label: '销售方纳税人识别号',
|
|
16093
|
-
node:
|
|
16096
|
+
node: React.createElement(Input, {
|
|
16094
16097
|
readOnly: model === 'prefab',
|
|
16095
16098
|
size: "small"
|
|
16096
16099
|
}),
|
|
@@ -16103,7 +16106,7 @@ var Main$1 = decorator(Form.create())(function (props) {
|
|
|
16103
16106
|
}, {
|
|
16104
16107
|
id: 'sellerAddress',
|
|
16105
16108
|
label: '销售方地址及电话',
|
|
16106
|
-
node:
|
|
16109
|
+
node: React.createElement(Input, {
|
|
16107
16110
|
readOnly: model === 'prefab',
|
|
16108
16111
|
size: "small"
|
|
16109
16112
|
}),
|
|
@@ -16116,7 +16119,7 @@ var Main$1 = decorator(Form.create())(function (props) {
|
|
|
16116
16119
|
}, {
|
|
16117
16120
|
id: 'sellerBank',
|
|
16118
16121
|
label: '销售方开户行及账号',
|
|
16119
|
-
node:
|
|
16122
|
+
node: React.createElement(Input, {
|
|
16120
16123
|
readOnly: model === 'prefab',
|
|
16121
16124
|
size: "small"
|
|
16122
16125
|
}),
|
|
@@ -16142,31 +16145,31 @@ var Main$1 = decorator(Form.create())(function (props) {
|
|
|
16142
16145
|
return getFieldDecorator(e.id, e.options)(e.node);
|
|
16143
16146
|
}
|
|
16144
16147
|
}, [props.formRender]);
|
|
16145
|
-
return
|
|
16148
|
+
return React.createElement(Form, null, React.createElement("div", {
|
|
16146
16149
|
className: "kts-invoice-operate-seller"
|
|
16147
|
-
},
|
|
16150
|
+
}, React.createElement("div", {
|
|
16148
16151
|
className: "kts-invoice-operate-seller-message"
|
|
16149
|
-
},
|
|
16152
|
+
}, React.createElement("div", {
|
|
16150
16153
|
className: "kts-invoice-operate-seller-title"
|
|
16151
|
-
},
|
|
16154
|
+
}, React.createElement("label", null, "\u9500\u552E\u65B9")), React.createElement(Descriptions, {
|
|
16152
16155
|
className: "kts-invoice-operate-seller-message-list",
|
|
16153
16156
|
size: "small",
|
|
16154
16157
|
column: 1,
|
|
16155
16158
|
bordered: true
|
|
16156
16159
|
}, formItem.map(function (e, i) {
|
|
16157
|
-
return
|
|
16160
|
+
return React.createElement(Descriptions.Item, {
|
|
16158
16161
|
key: i,
|
|
16159
16162
|
label: e.label
|
|
16160
|
-
},
|
|
16161
|
-
}))),
|
|
16163
|
+
}, React.createElement(Form.Item, null, createFormItem(e)));
|
|
16164
|
+
}))), React.createElement("div", {
|
|
16162
16165
|
className: "kts-invoice-operate-seller-remarks"
|
|
16163
|
-
},
|
|
16166
|
+
}, React.createElement("div", {
|
|
16164
16167
|
className: "kts-invoice-operate-seller-title"
|
|
16165
|
-
},
|
|
16168
|
+
}, React.createElement("label", null, "\u5907\u6CE8")), React.createElement("div", {
|
|
16166
16169
|
className: "kts-invoice-operate-seller-remarks-value"
|
|
16167
16170
|
}, getFieldDecorator('remarks', {
|
|
16168
16171
|
initialValue: props.defaultsellerRemarks
|
|
16169
|
-
})(
|
|
16172
|
+
})(React.createElement(TextArea, null))))));
|
|
16170
16173
|
});
|
|
16171
16174
|
|
|
16172
16175
|
var ImportBuyerButton = (function () {
|
|
@@ -16193,7 +16196,7 @@ var ImportBuyerButton = (function () {
|
|
|
16193
16196
|
};
|
|
16194
16197
|
}())();
|
|
16195
16198
|
}, [controller]);
|
|
16196
|
-
return
|
|
16199
|
+
return React.createElement(React.Fragment, null, controller.getBuyerList && React.createElement(Button, {
|
|
16197
16200
|
type: "link",
|
|
16198
16201
|
icon: "plus-circle",
|
|
16199
16202
|
onClick: onClick
|
|
@@ -16232,29 +16235,29 @@ var BuyerNameInput = (function (props) {
|
|
|
16232
16235
|
var content = React.useMemo(function () {
|
|
16233
16236
|
var _dataSource$recent;
|
|
16234
16237
|
|
|
16235
|
-
return
|
|
16238
|
+
return React.createElement("div", {
|
|
16236
16239
|
className: 'kts-invoice-operate-buyer-name-content'
|
|
16237
|
-
}, loading ?
|
|
16240
|
+
}, loading ? React.createElement("div", {
|
|
16238
16241
|
style: {
|
|
16239
16242
|
textAlign: 'center'
|
|
16240
16243
|
}
|
|
16241
|
-
},
|
|
16244
|
+
}, React.createElement(Spin, null)) : React.createElement(React.Fragment, null, React.createElement("div", {
|
|
16242
16245
|
className: 'kts-invoice-operate-buyer-name-content-block',
|
|
16243
16246
|
style: {
|
|
16244
16247
|
padding: '14px 10px'
|
|
16245
16248
|
}
|
|
16246
|
-
},
|
|
16249
|
+
}, React.createElement("label", {
|
|
16247
16250
|
style: {
|
|
16248
16251
|
marginBottom: 10
|
|
16249
16252
|
}
|
|
16250
|
-
}, "\u6700\u8FD1\u5F00\u5177"),
|
|
16253
|
+
}, "\u6700\u8FD1\u5F00\u5177"), React.createElement("ul", {
|
|
16251
16254
|
className: 'kts-invoice-operate-buyer-name-content-recently-issued'
|
|
16252
|
-
}, !dataSource.recent || dataSource.recent.length <= 0 ?
|
|
16255
|
+
}, !dataSource.recent || dataSource.recent.length <= 0 ? React.createElement(Empty, {
|
|
16253
16256
|
image: Empty.PRESENTED_IMAGE_SIMPLE
|
|
16254
16257
|
}) : (_dataSource$recent = dataSource.recent) === null || _dataSource$recent === void 0 ? void 0 : _dataSource$recent.map(function (e, i) {
|
|
16255
16258
|
var _dataSource$recent$le, _dataSource$recent2;
|
|
16256
16259
|
|
|
16257
|
-
return
|
|
16260
|
+
return React.createElement("li", {
|
|
16258
16261
|
key: i,
|
|
16259
16262
|
onClick: function onClick() {
|
|
16260
16263
|
onClickItem(e);
|
|
@@ -16262,37 +16265,37 @@ var BuyerNameInput = (function (props) {
|
|
|
16262
16265
|
style: {
|
|
16263
16266
|
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)
|
|
16264
16267
|
}
|
|
16265
|
-
},
|
|
16266
|
-
}))),
|
|
16268
|
+
}, React.createElement(MyTag, null, e.buyerName));
|
|
16269
|
+
}))), React.createElement(Divider, {
|
|
16267
16270
|
style: {
|
|
16268
16271
|
margin: "0 6px"
|
|
16269
16272
|
}
|
|
16270
|
-
}),
|
|
16273
|
+
}), React.createElement("div", {
|
|
16271
16274
|
className: 'kts-invoice-operate-buyer-name-content-block',
|
|
16272
16275
|
style: {
|
|
16273
16276
|
padding: '14px 10px 4px'
|
|
16274
16277
|
}
|
|
16275
|
-
},
|
|
16278
|
+
}, React.createElement("label", {
|
|
16276
16279
|
style: {
|
|
16277
16280
|
padding: '0 10px'
|
|
16278
16281
|
}
|
|
16279
|
-
}, "\u9009\u62E9\u516C\u53F8"),
|
|
16282
|
+
}, "\u9009\u62E9\u516C\u53F8"), React.createElement("div", {
|
|
16280
16283
|
style: {
|
|
16281
16284
|
maxHeight: 200,
|
|
16282
16285
|
overflow: "auto"
|
|
16283
16286
|
}
|
|
16284
|
-
}, !dataSource.list || dataSource.list.length <= 0 ?
|
|
16287
|
+
}, !dataSource.list || dataSource.list.length <= 0 ? React.createElement(Empty, {
|
|
16285
16288
|
image: Empty.PRESENTED_IMAGE_SIMPLE
|
|
16286
16289
|
}) : dataSource.list.map(function (e, i) {
|
|
16287
|
-
return
|
|
16290
|
+
return React.createElement("ul", {
|
|
16288
16291
|
key: i,
|
|
16289
16292
|
onClick: function onClick() {
|
|
16290
16293
|
onClickItem(e);
|
|
16291
16294
|
},
|
|
16292
16295
|
className: 'kts-invoice-operate-buyer-name-content-select-company'
|
|
16293
|
-
},
|
|
16296
|
+
}, React.createElement("li", {
|
|
16294
16297
|
title: e.buyerName
|
|
16295
|
-
}, e.buyerName),
|
|
16298
|
+
}, e.buyerName), React.createElement("li", {
|
|
16296
16299
|
title: e.buyerNo
|
|
16297
16300
|
}, e.buyerNo));
|
|
16298
16301
|
})))));
|
|
@@ -16333,7 +16336,7 @@ var BuyerNameInput = (function (props) {
|
|
|
16333
16336
|
}, [visible, props.value]);
|
|
16334
16337
|
|
|
16335
16338
|
if (model === 'prefab' || !autoContainer) {
|
|
16336
|
-
return
|
|
16339
|
+
return React.createElement(Input, {
|
|
16337
16340
|
size: "small",
|
|
16338
16341
|
autoComplete: "off",
|
|
16339
16342
|
value: props.value,
|
|
@@ -16344,14 +16347,14 @@ var BuyerNameInput = (function (props) {
|
|
|
16344
16347
|
});
|
|
16345
16348
|
}
|
|
16346
16349
|
|
|
16347
|
-
return
|
|
16350
|
+
return React.createElement(Popover$1, {
|
|
16348
16351
|
onVisibleChange: setVisible,
|
|
16349
16352
|
overlayClassName: 'kts-invoice-operate-buyer-name-popover',
|
|
16350
16353
|
placement: "bottomLeft",
|
|
16351
16354
|
trigger: "click",
|
|
16352
16355
|
visible: visible,
|
|
16353
16356
|
content: content
|
|
16354
|
-
},
|
|
16357
|
+
}, React.createElement(Input, {
|
|
16355
16358
|
size: "small",
|
|
16356
16359
|
autoComplete: "off",
|
|
16357
16360
|
value: props.value,
|
|
@@ -16429,7 +16432,7 @@ function useDataSource() {
|
|
|
16429
16432
|
}
|
|
16430
16433
|
|
|
16431
16434
|
function MyTag(props) {
|
|
16432
|
-
return
|
|
16435
|
+
return React.createElement("span", {
|
|
16433
16436
|
className: 'kts-invoice-operate-buyer-name-content-tag',
|
|
16434
16437
|
title: props.children
|
|
16435
16438
|
}, props.children);
|
|
@@ -16465,7 +16468,7 @@ var Buyer$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
16465
16468
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
16466
16469
|
|
|
16467
16470
|
_this.render = function () {
|
|
16468
|
-
return
|
|
16471
|
+
return React.createElement(Main$2, _objectSpread2({}, _this.props));
|
|
16469
16472
|
};
|
|
16470
16473
|
|
|
16471
16474
|
return _this;
|
|
@@ -16496,7 +16499,7 @@ var Main$2 = decorator(Form.create())(function (props) {
|
|
|
16496
16499
|
return [{
|
|
16497
16500
|
id: 'buyerName',
|
|
16498
16501
|
label: '购买方名称',
|
|
16499
|
-
node:
|
|
16502
|
+
node: React.createElement(Input, {
|
|
16500
16503
|
size: "small",
|
|
16501
16504
|
autoComplete: "off",
|
|
16502
16505
|
readOnly: model === 'prefab'
|
|
@@ -16510,7 +16513,7 @@ var Main$2 = decorator(Form.create())(function (props) {
|
|
|
16510
16513
|
}, {
|
|
16511
16514
|
id: 'buyerNo',
|
|
16512
16515
|
label: '购买方纳税人识别号',
|
|
16513
|
-
node:
|
|
16516
|
+
node: React.createElement(Input, {
|
|
16514
16517
|
size: "small",
|
|
16515
16518
|
autoComplete: "off",
|
|
16516
16519
|
readOnly: model === 'prefab'
|
|
@@ -16524,7 +16527,7 @@ var Main$2 = decorator(Form.create())(function (props) {
|
|
|
16524
16527
|
}, {
|
|
16525
16528
|
id: 'buyerAddress',
|
|
16526
16529
|
label: '购买方地址及电话',
|
|
16527
|
-
node:
|
|
16530
|
+
node: React.createElement(Input, {
|
|
16528
16531
|
size: "small",
|
|
16529
16532
|
autoComplete: "off",
|
|
16530
16533
|
readOnly: model === 'prefab'
|
|
@@ -16538,7 +16541,7 @@ var Main$2 = decorator(Form.create())(function (props) {
|
|
|
16538
16541
|
}, {
|
|
16539
16542
|
id: 'buyerBank',
|
|
16540
16543
|
label: '购买方开户行及账号',
|
|
16541
|
-
node:
|
|
16544
|
+
node: React.createElement(Input, {
|
|
16542
16545
|
size: "small",
|
|
16543
16546
|
autoComplete: "off",
|
|
16544
16547
|
readOnly: model === 'prefab'
|
|
@@ -16560,7 +16563,7 @@ var Main$2 = decorator(Form.create())(function (props) {
|
|
|
16560
16563
|
if (e.options.rules.some(function (e) {
|
|
16561
16564
|
return e.required;
|
|
16562
16565
|
})) {
|
|
16563
|
-
return
|
|
16566
|
+
return React.createElement(React.Fragment, null, React.createElement(Text$4, {
|
|
16564
16567
|
type: "danger"
|
|
16565
16568
|
}, "*"), e.label);
|
|
16566
16569
|
} else {
|
|
@@ -16570,29 +16573,29 @@ var Main$2 = decorator(Form.create())(function (props) {
|
|
|
16570
16573
|
return e.label;
|
|
16571
16574
|
}
|
|
16572
16575
|
}, []);
|
|
16573
|
-
return
|
|
16576
|
+
return React.createElement(Form, null, React.createElement("div", {
|
|
16574
16577
|
className: "kts-invoice-operate-buyer"
|
|
16575
|
-
},
|
|
16578
|
+
}, React.createElement("div", {
|
|
16576
16579
|
className: "kts-invoice-operate-buyer-message"
|
|
16577
|
-
},
|
|
16580
|
+
}, React.createElement("div", {
|
|
16578
16581
|
className: "kts-invoice-operate-buyer-title"
|
|
16579
|
-
},
|
|
16582
|
+
}, React.createElement("label", null, "\u8D2D\u4E70\u65B9")), React.createElement("div", {
|
|
16580
16583
|
className: "kts-invoice-operate-buyer-message-Import"
|
|
16581
|
-
}, model !== 'prefab' &&
|
|
16584
|
+
}, model !== 'prefab' && React.createElement(ImportBuyerButton, null)), React.createElement(Descriptions, {
|
|
16582
16585
|
className: "kts-invoice-operate-buyer-message-list",
|
|
16583
16586
|
size: "small",
|
|
16584
16587
|
column: 1,
|
|
16585
16588
|
bordered: true
|
|
16586
16589
|
}, formItem.map(function (item, i) {
|
|
16587
|
-
return
|
|
16590
|
+
return React.createElement(Descriptions.Item, {
|
|
16588
16591
|
key: i,
|
|
16589
16592
|
label: getlabel(item)
|
|
16590
|
-
},
|
|
16591
|
-
}))),
|
|
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", {
|
|
16592
16595
|
className: "kts-invoice-operate-buyer-password"
|
|
16593
|
-
},
|
|
16596
|
+
}, React.createElement("div", {
|
|
16594
16597
|
className: "kts-invoice-operate-buyer-title"
|
|
16595
|
-
},
|
|
16598
|
+
}, React.createElement("label", null, "\u5BC6\u7801\u533A")), React.createElement("div", null))));
|
|
16596
16599
|
});
|
|
16597
16600
|
|
|
16598
16601
|
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";
|
|
@@ -16609,21 +16612,21 @@ var Sign = decorator(Form.create())(function (props) {
|
|
|
16609
16612
|
}, []); // 注册 form
|
|
16610
16613
|
|
|
16611
16614
|
controller.useForm('sign', form);
|
|
16612
|
-
return
|
|
16615
|
+
return React.createElement("div", {
|
|
16613
16616
|
className: "kts-invoice-operate-sign"
|
|
16614
|
-
},
|
|
16617
|
+
}, React.createElement(Form, _objectSpread2({}, formItemLayout), React.createElement("div", null, React.createElement(Form.Item, {
|
|
16615
16618
|
label: "\u6536\u6B3E\u4EBA"
|
|
16616
16619
|
}, getFieldDecorator('payee', {
|
|
16617
16620
|
initialValue: props.defaultPayee
|
|
16618
|
-
})(
|
|
16621
|
+
})(React.createElement(Input, {
|
|
16619
16622
|
size: "small"
|
|
16620
|
-
})))),
|
|
16623
|
+
})))), React.createElement("div", null, React.createElement(Form.Item, {
|
|
16621
16624
|
label: "\u590D\u6838\u4EBA"
|
|
16622
16625
|
}, getFieldDecorator('reviewer', {
|
|
16623
16626
|
initialValue: props.defaultReviewer
|
|
16624
|
-
})(
|
|
16627
|
+
})(React.createElement(Input, {
|
|
16625
16628
|
size: "small"
|
|
16626
|
-
})))),
|
|
16629
|
+
})))), React.createElement("div", null, React.createElement(Form.Item, {
|
|
16627
16630
|
label: "\u5F00\u7968\u4EBA"
|
|
16628
16631
|
}, getFieldDecorator('issuer', {
|
|
16629
16632
|
initialValue: props.defaultIssuer,
|
|
@@ -16631,7 +16634,7 @@ var Sign = decorator(Form.create())(function (props) {
|
|
|
16631
16634
|
required: true,
|
|
16632
16635
|
message: '请输入开票人'
|
|
16633
16636
|
}]
|
|
16634
|
-
})(
|
|
16637
|
+
})(React.createElement(Input, {
|
|
16635
16638
|
size: "small"
|
|
16636
16639
|
}))))));
|
|
16637
16640
|
});
|
|
@@ -16660,21 +16663,21 @@ var InvoiceHeaderDigtal = decorator(Form.create())(function (props) {
|
|
|
16660
16663
|
return '电子发票(增值税专用发票)';
|
|
16661
16664
|
}, [props.title]);
|
|
16662
16665
|
controller.useForm('invoiceHeader', form);
|
|
16663
|
-
return
|
|
16666
|
+
return React.createElement("div", {
|
|
16664
16667
|
className: "kts-invoice-operate-invoice-digtal-header"
|
|
16665
|
-
},
|
|
16668
|
+
}, React.createElement("div", {
|
|
16666
16669
|
className: "digtal-header-title"
|
|
16667
16670
|
}, title), form.getFieldDecorator('tag', {
|
|
16668
16671
|
initialValue: props.defaultTag
|
|
16669
|
-
})(
|
|
16672
|
+
})(React.createElement(Tag, null)), React.createElement("div", {
|
|
16670
16673
|
className: "digtal-header-fields"
|
|
16671
16674
|
}, form.getFieldDecorator('no', {
|
|
16672
16675
|
initialValue: props.defaultNo
|
|
16673
|
-
})(
|
|
16676
|
+
})(React.createElement(Field, {
|
|
16674
16677
|
title: "\u53D1\u7968\u53F7\u7801\uFF1A"
|
|
16675
16678
|
})), form.getFieldDecorator('invoicingDate', {
|
|
16676
16679
|
initialValue: props.defaultInvoicingDate
|
|
16677
|
-
})(
|
|
16680
|
+
})(React.createElement(Field, {
|
|
16678
16681
|
title: "\u5F00\u7968\u65E5\u671F\uFF1A"
|
|
16679
16682
|
}))));
|
|
16680
16683
|
});
|
|
@@ -16699,15 +16702,15 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
16699
16702
|
value = _this$props.value;
|
|
16700
16703
|
|
|
16701
16704
|
if (value) {
|
|
16702
|
-
return
|
|
16705
|
+
return React.createElement("div", {
|
|
16703
16706
|
className: "digtal-header-field"
|
|
16704
|
-
},
|
|
16707
|
+
}, React.createElement("div", {
|
|
16705
16708
|
className: "digtal-header-field-title"
|
|
16706
|
-
}, title),
|
|
16709
|
+
}, title), React.createElement("div", {
|
|
16707
16710
|
className: "digtal-header-field-value"
|
|
16708
16711
|
}, value));
|
|
16709
16712
|
} else {
|
|
16710
|
-
return
|
|
16713
|
+
return React.createElement(React.Fragment, null);
|
|
16711
16714
|
}
|
|
16712
16715
|
}
|
|
16713
16716
|
}]);
|
|
@@ -16729,9 +16732,9 @@ var Tag = /*#__PURE__*/function (_React$Component2) {
|
|
|
16729
16732
|
_createClass(Tag, [{
|
|
16730
16733
|
key: "render",
|
|
16731
16734
|
value: function render() {
|
|
16732
|
-
return this.props.value ?
|
|
16735
|
+
return this.props.value ? React.createElement("div", {
|
|
16733
16736
|
className: "digtal-header-tag"
|
|
16734
|
-
}, this.props.value) :
|
|
16737
|
+
}, this.props.value) : React.createElement(React.Fragment, null);
|
|
16735
16738
|
}
|
|
16736
16739
|
}]);
|
|
16737
16740
|
|
|
@@ -16794,7 +16797,7 @@ function SvgPlus(props) {
|
|
|
16794
16797
|
})))));
|
|
16795
16798
|
}
|
|
16796
16799
|
|
|
16797
|
-
var css_248z$g = ".kts-invoice-operate-invoice-digtal-stakeholder {\n display: flex;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder .digtal-stakeholder-expand-button {\n cursor: pointer;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder > div {\n border-right: 2px solid #9F613E;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder > div:nth-child(even) {\n flex: 1;\n display: flex;\n flex-direction: column;\n justify-content: end;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder > div:nth-child(odd) {\n flex: none;\n text-align: center;\n color: #9F613E;\n display: flex;\n flex-direction: column;\n justify-content: center;\n justify-items: center;\n padding: 0 4px;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder > div:last-child {\n border-right: none;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder .digtal-stakeholder-form {\n padding:
|
|
16800
|
+
var css_248z$g = ".kts-invoice-operate-invoice-digtal-stakeholder {\n display: flex;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder .digtal-stakeholder-expand-button {\n cursor: pointer;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder > div {\n border-right: 2px solid #9F613E;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder > div:nth-child(even) {\n flex: 1;\n display: flex;\n flex-direction: column;\n justify-content: end;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder > div:nth-child(odd) {\n flex: none;\n text-align: center;\n color: #9F613E;\n display: flex;\n flex-direction: column;\n justify-content: center;\n justify-items: center;\n padding: 0 4px;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder > div:last-child {\n border-right: none;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder .digtal-stakeholder-form {\n padding: 12px 10px 5px;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder .digtal-stakeholder-form .ktsAntX-col {\n margin-bottom: 15px;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder .digtal-stakeholder-form .ktsAnt3x-row.ktsAnt3x-form-item {\n display: flex;\n margin-bottom: 0;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder .digtal-stakeholder-form .ktsAnt3x-row.ktsAnt3x-form-item .ktsAnt3x-form-item-label {\n flex: none;\n font-weight: 500;\n line-height: 29px;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder .digtal-stakeholder-form .ktsAnt3x-row.ktsAnt3x-form-item .ktsAnt3x-form-item-label label {\n color: #9F603D;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder .digtal-stakeholder-form .ktsAnt3x-row.ktsAnt3x-form-item .ktsAnt3x-form-item-control {\n line-height: 1.4;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder .digtal-stakeholder-form .ktsAnt3x-row.ktsAnt3x-form-item .ktsAnt3x-form-item-control .digtal-stakeholder-form-text {\n word-break: break-all;\n line-height: 29px;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder .digtal-stakeholder-form .ktsAnt3x-row.ktsAnt3x-form-item .ktsAnt3x-form-item-control-wrapper {\n flex: 1;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder .natural-person-flag {\n padding: 0 8px;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder .natural-person-flag .ktsAnt3x-form-item-control {\n line-height: 32px;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder .natural-person-flag .ktsAnt3x-row.ktsAnt3x-form-item {\n margin-bottom: 0;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder.readOnly > div:nth-child(even) {\n justify-content: start;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder.readOnly .digtal-stakeholder-form .ktsAnt3x-row.ktsAnt3x-form-item .ktsAnt3x-form-item-label {\n line-height: 1.4;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder.readOnly .digtal-stakeholder-form .ktsAnt3x-row.ktsAnt3x-form-item .ktsAnt3x-form-item-control .digtal-stakeholder-form-text {\n line-height: 1.4;\n}\n";
|
|
16798
16801
|
styleInject(css_248z$g);
|
|
16799
16802
|
|
|
16800
16803
|
var RULES = {
|
|
@@ -16907,57 +16910,59 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
16907
16910
|
return rulesMap[field] || defaultRules;
|
|
16908
16911
|
}, [rulesMap, isReadOnly, isReadOnly]);
|
|
16909
16912
|
controller.useForm('stakeholder', form);
|
|
16910
|
-
return
|
|
16913
|
+
return React.createElement("div", {
|
|
16911
16914
|
className: classNames("kts-invoice-operate-invoice-digtal-stakeholder", {
|
|
16912
16915
|
readOnly: readOnly
|
|
16913
16916
|
})
|
|
16914
|
-
},
|
|
16915
|
-
return
|
|
16916
|
-
}), !readOnly &&
|
|
16917
|
+
}, React.createElement("div", null, '购买方信息'.split('').map(function (e) {
|
|
16918
|
+
return React.createElement("span", null, e);
|
|
16919
|
+
}), !readOnly && React.createElement(Icon, {
|
|
16917
16920
|
className: "digtal-stakeholder-expand-button",
|
|
16918
16921
|
component: isExpand ? SvgArrowUp : SvgArrowDown,
|
|
16919
16922
|
onClick: onExpand
|
|
16920
|
-
})),
|
|
16921
|
-
|
|
16922
|
-
|
|
16923
|
-
|
|
16924
|
-
|
|
16925
|
-
|
|
16926
|
-
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
16927
|
-
label: "\u8D2D\u4E70\u65B9\u4FE1\u606F",
|
|
16923
|
+
})), React.createElement("div", null, React.createElement("div", {
|
|
16924
|
+
style: {
|
|
16925
|
+
marginTop: 20
|
|
16926
|
+
},
|
|
16927
|
+
className: 'natural-person-flag'
|
|
16928
|
+
}, props.isNaturalPerson === true && React.createElement(Form.Item, {
|
|
16928
16929
|
colon: false
|
|
16929
|
-
}, getFieldDecorator('naturalPersonFlag', {})(
|
|
16930
|
+
}, getFieldDecorator('naturalPersonFlag', {})(React.createElement(NaturalPersonFlag, {
|
|
16930
16931
|
readOnly: isReadOnly('naturalPersonFlag')
|
|
16931
|
-
})))),
|
|
16932
|
+
})))), React.createElement(Form, {
|
|
16933
|
+
className: "digtal-stakeholder-form"
|
|
16934
|
+
}, React.createElement(Row, {
|
|
16935
|
+
gutter: [16, 0]
|
|
16936
|
+
}, React.createElement(Col, {
|
|
16932
16937
|
span: 24
|
|
16933
|
-
},
|
|
16938
|
+
}, React.createElement(Form.Item, {
|
|
16934
16939
|
label: "\u540D\u79F0",
|
|
16935
16940
|
colon: false
|
|
16936
16941
|
}, getFieldDecorator('buyerName', {
|
|
16937
16942
|
rules: getRules('buyerName', RULES.companyName('购买方名称'))
|
|
16938
|
-
})(
|
|
16943
|
+
})(React.createElement(BuyerNameInput$1, {
|
|
16939
16944
|
myform: form,
|
|
16940
16945
|
fieldName: 'buyerName',
|
|
16941
16946
|
readOnly: isReadOnly('buyerName'),
|
|
16942
|
-
placeholder: "\u8BF7\u8F93\u5165",
|
|
16947
|
+
placeholder: "\u8BF7\u8F93\u5165\u540D\u79F0",
|
|
16943
16948
|
autoComplete: "off",
|
|
16944
|
-
suffix: isShowImportButton === true &&
|
|
16949
|
+
suffix: isShowImportButton === true && React.createElement(Button$1, {
|
|
16945
16950
|
type: 'link',
|
|
16946
16951
|
style: {
|
|
16947
16952
|
padding: 0,
|
|
16948
16953
|
width: 20,
|
|
16949
16954
|
height: '100%'
|
|
16950
16955
|
},
|
|
16951
|
-
icon:
|
|
16956
|
+
icon: React.createElement(Icon, {
|
|
16952
16957
|
component: SvgPlus
|
|
16953
16958
|
}),
|
|
16954
16959
|
onClick: function onClick() {
|
|
16955
16960
|
onClickImportButton && onClickImportButton(controller);
|
|
16956
16961
|
}
|
|
16957
16962
|
})
|
|
16958
|
-
})))),
|
|
16963
|
+
})))), React.createElement(Col, {
|
|
16959
16964
|
span: 24
|
|
16960
|
-
},
|
|
16965
|
+
}, React.createElement(Form.Item, {
|
|
16961
16966
|
label: "\u7EDF\u4E00\u793E\u4F1A\u4FE1\u7528\u4EE3\u7801/\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7",
|
|
16962
16967
|
colon: false
|
|
16963
16968
|
}, getFieldDecorator('buyerTaxId', {
|
|
@@ -16965,15 +16970,15 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
16965
16970
|
required: !isVatNormal,
|
|
16966
16971
|
message: '购买方纳税人识别号必填'
|
|
16967
16972
|
}].concat(_toConsumableArray(RULES.taxId('购买方纳税人识别号'))))
|
|
16968
|
-
})(
|
|
16973
|
+
})(React.createElement(BuyerNameInput$1, {
|
|
16969
16974
|
myform: form,
|
|
16970
16975
|
fieldName: 'buyerTaxId',
|
|
16971
16976
|
readOnly: isReadOnly('buyerTaxId'),
|
|
16972
|
-
placeholder: "\u8BF7\u8F93\u5165",
|
|
16977
|
+
placeholder: "\u8BF7\u8F93\u5165\u7EDF\u4E00\u793E\u4F1A\u4FE1\u7528\u4EE3\u7801/\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7",
|
|
16973
16978
|
autoComplete: "off"
|
|
16974
|
-
})))), isExpand &&
|
|
16975
|
-
span:
|
|
16976
|
-
},
|
|
16979
|
+
})))), isExpand && React.createElement(React.Fragment, null, React.createElement(Col, {
|
|
16980
|
+
span: 14
|
|
16981
|
+
}, React.createElement(Form.Item, {
|
|
16977
16982
|
label: "\u8D2D\u4E70\u65B9\u5730\u5740",
|
|
16978
16983
|
colon: false
|
|
16979
16984
|
}, getFieldDecorator('buyerAddress', {
|
|
@@ -16981,77 +16986,81 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
16981
16986
|
max: 100,
|
|
16982
16987
|
message: '购买方地址内容超长'
|
|
16983
16988
|
}])
|
|
16984
|
-
})(
|
|
16989
|
+
})(React.createElement(MyInput$1, {
|
|
16985
16990
|
readOnly: isReadOnly('buyerAddress'),
|
|
16986
|
-
placeholder: "\u8BF7\u8F93\u5165",
|
|
16991
|
+
placeholder: "\u8BF7\u8F93\u5165\u8D2D\u4E70\u65B9\u5730\u5740",
|
|
16987
16992
|
autoComplete: "off"
|
|
16988
|
-
})))),
|
|
16989
|
-
span:
|
|
16990
|
-
},
|
|
16993
|
+
})))), React.createElement(Col, {
|
|
16994
|
+
span: 10
|
|
16995
|
+
}, React.createElement(Form.Item, {
|
|
16991
16996
|
label: "\u7535\u8BDD",
|
|
16992
|
-
colon: false
|
|
16997
|
+
colon: false,
|
|
16998
|
+
className: 'telephone'
|
|
16993
16999
|
}, getFieldDecorator('buyerPhone', {
|
|
16994
17000
|
rules: getRules('buyerPhone', RULES.buyerTelPhone('购买方电话'))
|
|
16995
|
-
})(
|
|
17001
|
+
})(React.createElement(MyInput$1, {
|
|
16996
17002
|
readOnly: isReadOnly('buyerPhone'),
|
|
16997
|
-
placeholder: "\u8BF7\u8F93\u5165",
|
|
17003
|
+
placeholder: "\u8BF7\u8F93\u5165\u7535\u8BDD",
|
|
16998
17004
|
autoComplete: "off"
|
|
16999
|
-
})))),
|
|
17000
|
-
span:
|
|
17001
|
-
},
|
|
17005
|
+
})))), React.createElement(Col, {
|
|
17006
|
+
span: 14
|
|
17007
|
+
}, React.createElement(Form.Item, {
|
|
17002
17008
|
label: "\u8D2D\u4E70\u65B9\u5F00\u6237\u94F6\u884C",
|
|
17003
17009
|
colon: false
|
|
17004
17010
|
}, getFieldDecorator('buyerBank', {
|
|
17005
17011
|
rules: getRules('buyerBank', RULES.bankName('购买方开户银行'))
|
|
17006
|
-
})(
|
|
17012
|
+
})(React.createElement(MyInput$1, {
|
|
17007
17013
|
readOnly: isReadOnly('buyerBank'),
|
|
17008
|
-
placeholder: "\u8BF7\u8F93\u5165",
|
|
17014
|
+
placeholder: "\u8BF7\u8F93\u5165\u8D2D\u4E70\u65B9\u5F00\u6237\u94F6\u884C",
|
|
17009
17015
|
autoComplete: "off"
|
|
17010
|
-
})))),
|
|
17011
|
-
span:
|
|
17012
|
-
},
|
|
17016
|
+
})))), React.createElement(Col, {
|
|
17017
|
+
span: 10
|
|
17018
|
+
}, React.createElement(Form.Item, {
|
|
17013
17019
|
label: "\u94F6\u884C\u8D26\u53F7",
|
|
17014
17020
|
colon: false
|
|
17015
17021
|
}, getFieldDecorator('buyerAccount', {
|
|
17016
17022
|
rules: getRules('buyerAccount', RULES.bankAccount('购买方银行账号'))
|
|
17017
|
-
})(
|
|
17023
|
+
})(React.createElement(MyInput$1, {
|
|
17018
17024
|
readOnly: isReadOnly('buyerAccount'),
|
|
17019
|
-
placeholder: "\u8BF7\u8F93\u5165",
|
|
17025
|
+
placeholder: "\u8BF7\u8F93\u5165\u94F6\u884C\u8D26\u53F7",
|
|
17020
17026
|
autoComplete: "off"
|
|
17021
|
-
})))))))),
|
|
17022
|
-
return
|
|
17023
|
-
}), !readOnly &&
|
|
17027
|
+
})))))))), React.createElement("div", null, '销售方信息'.split('').map(function (e) {
|
|
17028
|
+
return React.createElement("span", null, e);
|
|
17029
|
+
}), !readOnly && React.createElement(Icon, {
|
|
17024
17030
|
className: "digtal-stakeholder-expand-button",
|
|
17025
17031
|
component: isExpand ? SvgArrowUp : SvgArrowDown,
|
|
17026
17032
|
onClick: onExpand
|
|
17027
|
-
})),
|
|
17033
|
+
})), React.createElement("div", null, !readOnly && props.lineCredit && React.createElement("div", {
|
|
17028
17034
|
style: {
|
|
17029
17035
|
marginTop: 20
|
|
17030
17036
|
}
|
|
17031
|
-
},
|
|
17037
|
+
}, React.createElement(Tooltip$1, {
|
|
17032
17038
|
trigger: "click",
|
|
17033
17039
|
title: props.lineCredit
|
|
17034
|
-
},
|
|
17035
|
-
type: "link"
|
|
17036
|
-
|
|
17040
|
+
}, React.createElement(Button$1, {
|
|
17041
|
+
type: "link",
|
|
17042
|
+
style: {
|
|
17043
|
+
padding: "0px 8px"
|
|
17044
|
+
}
|
|
17045
|
+
}, "\u67E5\u770B\u5F53\u524D\u53EF\u7528\u6388\u4FE1\u989D\u5EA6"))), React.createElement(Form, {
|
|
17037
17046
|
className: "digtal-stakeholder-form"
|
|
17038
|
-
},
|
|
17047
|
+
}, React.createElement(Row, {
|
|
17039
17048
|
gutter: [16, 0]
|
|
17040
|
-
},
|
|
17049
|
+
}, React.createElement(Col, {
|
|
17041
17050
|
span: 24
|
|
17042
|
-
},
|
|
17051
|
+
}, React.createElement(Form.Item, {
|
|
17043
17052
|
label: "\u540D\u79F0",
|
|
17044
17053
|
colon: false
|
|
17045
17054
|
}, getFieldDecorator('supplierName', {
|
|
17046
17055
|
rules: getRules('supplierName', RULES.companyName('销售方名称')),
|
|
17047
17056
|
getValueFromEvent: formatCompanyName
|
|
17048
|
-
})(
|
|
17057
|
+
})(React.createElement(MyInput$1, {
|
|
17049
17058
|
readOnly: isReadOnly('supplierName'),
|
|
17050
|
-
placeholder: "\u8BF7\u8F93\u5165",
|
|
17059
|
+
placeholder: "\u8BF7\u8F93\u5165\u540D\u79F0",
|
|
17051
17060
|
autoComplete: "off"
|
|
17052
|
-
})))),
|
|
17061
|
+
})))), React.createElement(Col, {
|
|
17053
17062
|
span: 24
|
|
17054
|
-
},
|
|
17063
|
+
}, React.createElement(Form.Item, {
|
|
17055
17064
|
label: "\u7EDF\u4E00\u793E\u4F1A\u4FE1\u7528\u4EE3\u7801/\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7",
|
|
17056
17065
|
colon: false
|
|
17057
17066
|
}, getFieldDecorator('supplierTaxId', {
|
|
@@ -17059,13 +17068,13 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
17059
17068
|
required: true,
|
|
17060
17069
|
message: '销售方纳税人识别号必填'
|
|
17061
17070
|
}].concat(_toConsumableArray(RULES.taxId('销售方纳税人识别号'))))
|
|
17062
|
-
})(
|
|
17071
|
+
})(React.createElement(MyInput$1, {
|
|
17063
17072
|
readOnly: isReadOnly('supplierTaxId'),
|
|
17064
|
-
placeholder: "\u8BF7\u8F93\u5165",
|
|
17073
|
+
placeholder: "\u8BF7\u8F93\u5165\u7EDF\u4E00\u793E\u4F1A\u4FE1\u7528\u4EE3\u7801/\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7",
|
|
17065
17074
|
autoComplete: "off"
|
|
17066
|
-
})))), isExpand &&
|
|
17067
|
-
span:
|
|
17068
|
-
},
|
|
17075
|
+
})))), isExpand && React.createElement(React.Fragment, null, React.createElement(Col, {
|
|
17076
|
+
span: 12
|
|
17077
|
+
}, React.createElement(Form.Item, {
|
|
17069
17078
|
label: "\u9500\u552E\u65B9\u5730\u5740",
|
|
17070
17079
|
colon: false
|
|
17071
17080
|
}, getFieldDecorator('sellerAddress', {
|
|
@@ -17073,42 +17082,43 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
17073
17082
|
max: 300,
|
|
17074
17083
|
message: '销售方地址内容超长'
|
|
17075
17084
|
}])
|
|
17076
|
-
})(
|
|
17085
|
+
})(React.createElement(MyInput$1, {
|
|
17077
17086
|
readOnly: isReadOnly('sellerAddress'),
|
|
17078
|
-
placeholder: "\u8BF7\u8F93\u5165",
|
|
17087
|
+
placeholder: "\u8BF7\u8F93\u5165\u9500\u552E\u65B9\u5730\u5740",
|
|
17079
17088
|
autoComplete: "off"
|
|
17080
|
-
})))),
|
|
17081
|
-
span:
|
|
17082
|
-
},
|
|
17089
|
+
})))), React.createElement(Col, {
|
|
17090
|
+
span: 12
|
|
17091
|
+
}, React.createElement(Form.Item, {
|
|
17083
17092
|
label: "\u7535\u8BDD",
|
|
17084
|
-
colon: false
|
|
17093
|
+
colon: false,
|
|
17094
|
+
className: 'telephone'
|
|
17085
17095
|
}, getFieldDecorator('sellerPhone', {
|
|
17086
17096
|
rules: getRules('sellerPhone', RULES.sellerTelPhone('销售方电话'))
|
|
17087
|
-
})(
|
|
17097
|
+
})(React.createElement(MyInput$1, {
|
|
17088
17098
|
readOnly: isReadOnly('sellerPhone'),
|
|
17089
|
-
placeholder: "\u8BF7\u8F93\u5165",
|
|
17099
|
+
placeholder: "\u8BF7\u8F93\u5165\u7535\u8BDD",
|
|
17090
17100
|
autoComplete: "off"
|
|
17091
|
-
})))),
|
|
17101
|
+
})))), React.createElement(Col, {
|
|
17092
17102
|
span: 12
|
|
17093
|
-
},
|
|
17103
|
+
}, React.createElement(Form.Item, {
|
|
17094
17104
|
label: "\u9500\u552E\u65B9\u5F00\u6237\u94F6\u884C",
|
|
17095
17105
|
colon: false
|
|
17096
17106
|
}, getFieldDecorator('sellerBank', {
|
|
17097
17107
|
rules: getRules('sellerBank', RULES.bankName('销售方开户银行'))
|
|
17098
|
-
})(
|
|
17108
|
+
})(React.createElement(MyInput$1, {
|
|
17099
17109
|
readOnly: isReadOnly('sellerBank'),
|
|
17100
|
-
placeholder: "\u8BF7\u8F93\u5165",
|
|
17110
|
+
placeholder: "\u8BF7\u8F93\u5165\u9500\u552E\u65B9\u5F00\u6237\u94F6\u884C",
|
|
17101
17111
|
autoComplete: "off"
|
|
17102
|
-
})))),
|
|
17112
|
+
})))), React.createElement(Col, {
|
|
17103
17113
|
span: 12
|
|
17104
|
-
},
|
|
17114
|
+
}, React.createElement(Form.Item, {
|
|
17105
17115
|
label: "\u94F6\u884C\u8D26\u53F7",
|
|
17106
17116
|
colon: false
|
|
17107
17117
|
}, getFieldDecorator('sellerAccount', {
|
|
17108
17118
|
rules: getRules('sellerAccount', RULES.bankAccount('销售方银行账号'))
|
|
17109
|
-
})(
|
|
17119
|
+
})(React.createElement(MyInput$1, {
|
|
17110
17120
|
readOnly: isReadOnly('sellerAccount'),
|
|
17111
|
-
placeholder: "\u8BF7\u8F93\u5165",
|
|
17121
|
+
placeholder: "\u8BF7\u8F93\u5165\u94F6\u884C\u8D26\u53F7",
|
|
17112
17122
|
autoComplete: "off"
|
|
17113
17123
|
})))))))));
|
|
17114
17124
|
});
|
|
@@ -17127,7 +17137,7 @@ function NaturalPersonFlag(props) {
|
|
|
17127
17137
|
React.useEffect(function () {
|
|
17128
17138
|
setValue(props.value || 'COMPANY');
|
|
17129
17139
|
}, [props.value]);
|
|
17130
|
-
return
|
|
17140
|
+
return React.createElement(Checkbox$1, {
|
|
17131
17141
|
disabled: props.readOnly,
|
|
17132
17142
|
checked: value === 'NATURAL',
|
|
17133
17143
|
onChange: onChange
|
|
@@ -17230,10 +17240,10 @@ function BuyerNameInput$1(props) {
|
|
|
17230
17240
|
return _ref.apply(this, arguments);
|
|
17231
17241
|
};
|
|
17232
17242
|
}(), [autoComplete.onBuyerNameSearch, fieldName]);
|
|
17233
|
-
if (props.readOnly) return
|
|
17243
|
+
if (props.readOnly) return React.createElement("span", {
|
|
17234
17244
|
className: 'digtal-stakeholder-form-text'
|
|
17235
17245
|
}, props.value);
|
|
17236
|
-
return
|
|
17246
|
+
return React.createElement(AutoComplete$1, {
|
|
17237
17247
|
onSearch: onSearch,
|
|
17238
17248
|
options: options.map(function (e) {
|
|
17239
17249
|
return {
|
|
@@ -17241,8 +17251,11 @@ function BuyerNameInput$1(props) {
|
|
|
17241
17251
|
};
|
|
17242
17252
|
}),
|
|
17243
17253
|
onChange: onChangeAutoComplete,
|
|
17244
|
-
value: props.value
|
|
17245
|
-
|
|
17254
|
+
value: props.value,
|
|
17255
|
+
style: {
|
|
17256
|
+
width: '100%'
|
|
17257
|
+
}
|
|
17258
|
+
}, React.createElement(Input$1, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
17246
17259
|
style: _objectSpread2({
|
|
17247
17260
|
width: '100%'
|
|
17248
17261
|
}, props.style)
|
|
@@ -17266,11 +17279,11 @@ var MyInput$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
17266
17279
|
var props = this.props;
|
|
17267
17280
|
|
|
17268
17281
|
if (props.readOnly) {
|
|
17269
|
-
return
|
|
17282
|
+
return React.createElement("span", {
|
|
17270
17283
|
className: 'digtal-stakeholder-form-text'
|
|
17271
17284
|
}, props.value);
|
|
17272
17285
|
} else {
|
|
17273
|
-
return
|
|
17286
|
+
return React.createElement(Input$1, _objectSpread2({}, props));
|
|
17274
17287
|
}
|
|
17275
17288
|
}
|
|
17276
17289
|
}]);
|
|
@@ -17327,47 +17340,47 @@ var SignDigtal = decorator(Form.create())(function (props) {
|
|
|
17327
17340
|
controller.useForm('sign', form);
|
|
17328
17341
|
|
|
17329
17342
|
if (readOnly) {
|
|
17330
|
-
return
|
|
17343
|
+
return React.createElement("div", {
|
|
17331
17344
|
className: "kts-invoice-operate-sign-digtal-readOnly"
|
|
17332
|
-
},
|
|
17345
|
+
}, React.createElement("div", {
|
|
17333
17346
|
className: 'sign-digtal-readOnly-cont'
|
|
17334
|
-
},
|
|
17347
|
+
}, React.createElement("div", null, React.createElement("span", null, "\u5907"), React.createElement("span", null, "\u6CE8")), React.createElement("div", null, getFieldDecorator('remarks', {
|
|
17335
17348
|
initialValue: props.defaultRemark
|
|
17336
|
-
})(isEnables('remarks') ?
|
|
17349
|
+
})(isEnables('remarks') ? React.createElement(Input$1.TextArea, {
|
|
17337
17350
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
17338
17351
|
style: {
|
|
17339
17352
|
height: '100%'
|
|
17340
17353
|
}
|
|
17341
|
-
}) :
|
|
17354
|
+
}) : React.createElement(MyDiv$1, {
|
|
17342
17355
|
style: {
|
|
17343
17356
|
whiteSpace: 'pre-wrap'
|
|
17344
17357
|
}
|
|
17345
|
-
})))),
|
|
17358
|
+
})))), React.createElement(Form, {
|
|
17346
17359
|
layout: 'inline',
|
|
17347
17360
|
className: 'digtal-readOnly-form'
|
|
17348
|
-
},
|
|
17361
|
+
}, React.createElement(Form.Item, {
|
|
17349
17362
|
label: "\u5F00\u7968\u4EBA"
|
|
17350
17363
|
}, getFieldDecorator('drawer', {
|
|
17351
17364
|
initialValue: props.defaultRemark
|
|
17352
|
-
})(
|
|
17365
|
+
})(React.createElement(MyDiv$1, null)))));
|
|
17353
17366
|
} else {
|
|
17354
|
-
return
|
|
17367
|
+
return React.createElement("div", {
|
|
17355
17368
|
className: "kts-invoice-operate-sign-digtal"
|
|
17356
|
-
},
|
|
17369
|
+
}, React.createElement("div", {
|
|
17357
17370
|
className: 'sign-digtal-label'
|
|
17358
|
-
}, "\u5907\u6CE8\u4FE1\u606F"),
|
|
17371
|
+
}, "\u5907\u6CE8\u4FE1\u606F"), React.createElement(Form, null, React.createElement(Form.Item, {
|
|
17359
17372
|
label: "\u5907\u6CE8"
|
|
17360
17373
|
}, getFieldDecorator('remarks', {
|
|
17361
17374
|
initialValue: props.defaultRemark
|
|
17362
|
-
})(
|
|
17375
|
+
})(React.createElement(Input$1.TextArea, {
|
|
17363
17376
|
readOnly: isReadOnly('remarks'),
|
|
17364
17377
|
autoSize: true,
|
|
17365
17378
|
placeholder: "\u8BF7\u8F93\u5165"
|
|
17366
|
-
}))),
|
|
17379
|
+
}))), React.createElement(Form.Item, {
|
|
17367
17380
|
label: "\u5F00\u7968\u4EBA"
|
|
17368
17381
|
}, getFieldDecorator('drawer', {
|
|
17369
17382
|
initialValue: props.defaultIssuer
|
|
17370
|
-
})(
|
|
17383
|
+
})(React.createElement(Input$1, {
|
|
17371
17384
|
readOnly: isReadOnly('drawer'),
|
|
17372
17385
|
style: {
|
|
17373
17386
|
width: 313
|
|
@@ -17391,7 +17404,7 @@ var MyDiv$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
17391
17404
|
_createClass(MyDiv, [{
|
|
17392
17405
|
key: "render",
|
|
17393
17406
|
value: function render() {
|
|
17394
|
-
return
|
|
17407
|
+
return React.createElement("div", {
|
|
17395
17408
|
style: this.props.style
|
|
17396
17409
|
}, this.props.value);
|
|
17397
17410
|
}
|
|
@@ -17494,12 +17507,12 @@ function TableVirtual$1 (props) {
|
|
|
17494
17507
|
if (!cont) return;
|
|
17495
17508
|
cont.scrollTop = 0;
|
|
17496
17509
|
}, [(_props$dataSource2 = props.dataSource) === null || _props$dataSource2 === void 0 ? void 0 : _props$dataSource2.length]);
|
|
17497
|
-
return
|
|
17510
|
+
return React.createElement("span", {
|
|
17498
17511
|
className: "kts-invoice-operate-goods-table-virtual",
|
|
17499
17512
|
ref: function ref(e) {
|
|
17500
17513
|
setSelf(e);
|
|
17501
17514
|
}
|
|
17502
|
-
},
|
|
17515
|
+
}, React.createElement(TableManual, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
17503
17516
|
dataSource: dataSource,
|
|
17504
17517
|
// 新版本Table会有输入框无法连续输入的问题,先兼容老版本
|
|
17505
17518
|
tableComponent: Table
|
|
@@ -17610,52 +17623,52 @@ var Statistics$1 = (function () {
|
|
|
17610
17623
|
});
|
|
17611
17624
|
return sum.done().toNumber();
|
|
17612
17625
|
}, []);
|
|
17613
|
-
return
|
|
17626
|
+
return React.createElement("div", {
|
|
17614
17627
|
className: 'kts-invoice-operate-goods-list-statistics-digtal'
|
|
17615
|
-
},
|
|
17628
|
+
}, React.createElement("div", {
|
|
17616
17629
|
className: 'statistics-digtal-total'
|
|
17617
|
-
},
|
|
17630
|
+
}, React.createElement("div", null, "\u5408\u8BA1"), React.createElement("div", {
|
|
17618
17631
|
style: {
|
|
17619
17632
|
flex: 1
|
|
17620
17633
|
}
|
|
17621
|
-
}),
|
|
17634
|
+
}), React.createElement("div", {
|
|
17622
17635
|
style: {
|
|
17623
17636
|
width: 119,
|
|
17624
17637
|
textAlign: 'right',
|
|
17625
17638
|
paddingRight: 15
|
|
17626
17639
|
}
|
|
17627
|
-
}, "\xA5", parseFloat(isTaxIncluded ? lineAmountIncludeTax : lineAmountExcludeTax).toFixed(2)),
|
|
17640
|
+
}, "\xA5", parseFloat(isTaxIncluded ? lineAmountIncludeTax : lineAmountExcludeTax).toFixed(2)), React.createElement("div", {
|
|
17628
17641
|
style: {
|
|
17629
17642
|
width: 119,
|
|
17630
17643
|
textAlign: 'right',
|
|
17631
17644
|
paddingRight: 15
|
|
17632
17645
|
}
|
|
17633
|
-
}, "\xA5", parseFloat(taxAmount).toFixed(2))),
|
|
17646
|
+
}, "\xA5", parseFloat(taxAmount).toFixed(2))), React.createElement("div", {
|
|
17634
17647
|
className: 'statistics-digtal-total-tax'
|
|
17635
|
-
},
|
|
17648
|
+
}, React.createElement("div", null, "\u4EF7\u7A0E\u5408\u8BA1\uFF08\u5927\u5199\uFF09"), React.createElement("div", {
|
|
17636
17649
|
style: {
|
|
17637
17650
|
paddingLeft: 30
|
|
17638
17651
|
}
|
|
17639
|
-
},
|
|
17652
|
+
}, React.createElement(Icon, {
|
|
17640
17653
|
style: {
|
|
17641
17654
|
fontSize: 16
|
|
17642
17655
|
},
|
|
17643
17656
|
component: SvgFork
|
|
17644
|
-
}),
|
|
17657
|
+
}), React.createElement("span", {
|
|
17645
17658
|
style: {
|
|
17646
17659
|
fontWeight: 'bold',
|
|
17647
17660
|
marginLeft: 4
|
|
17648
17661
|
}
|
|
17649
|
-
}, toStringChinese(lineAmountIncludeTax))),
|
|
17662
|
+
}, toStringChinese(lineAmountIncludeTax))), React.createElement("div", {
|
|
17650
17663
|
style: {
|
|
17651
17664
|
flex: 1
|
|
17652
17665
|
}
|
|
17653
|
-
}),
|
|
17666
|
+
}), React.createElement("div", {
|
|
17654
17667
|
style: {
|
|
17655
17668
|
width: 90,
|
|
17656
17669
|
color: '#9F613E'
|
|
17657
17670
|
}
|
|
17658
|
-
}, "\uFF08\u5C0F\u5199\uFF09"),
|
|
17671
|
+
}, "\uFF08\u5C0F\u5199\uFF09"), React.createElement("div", {
|
|
17659
17672
|
style: {
|
|
17660
17673
|
width: 119
|
|
17661
17674
|
}
|
|
@@ -17714,10 +17727,10 @@ var AddRowButton$1 = (function () {
|
|
|
17714
17727
|
}
|
|
17715
17728
|
}, _callee);
|
|
17716
17729
|
})), [controller, rootElement]);
|
|
17717
|
-
if (isAddRow === false) return
|
|
17718
|
-
if (model === 'prefab') return
|
|
17719
|
-
if (model === 'readOnly') return
|
|
17720
|
-
return
|
|
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, {
|
|
17721
17734
|
size: 'small',
|
|
17722
17735
|
type: 'primary',
|
|
17723
17736
|
onClick: onClick,
|
|
@@ -19078,11 +19091,11 @@ var TaxIncludedSwitch$1 = (function () {
|
|
|
19078
19091
|
return _ref.apply(this, arguments);
|
|
19079
19092
|
};
|
|
19080
19093
|
}(), []);
|
|
19081
|
-
return
|
|
19094
|
+
return React.createElement("span", null, React.createElement("label", {
|
|
19082
19095
|
style: {
|
|
19083
19096
|
marginRight: 2
|
|
19084
19097
|
}
|
|
19085
|
-
}, "\u542B\u7A0E"),
|
|
19098
|
+
}, "\u542B\u7A0E"), React.createElement(Switch, {
|
|
19086
19099
|
disabled: isSwitchTax === false,
|
|
19087
19100
|
checked: isTaxIncluded,
|
|
19088
19101
|
defaultChecked: true,
|
|
@@ -19178,12 +19191,12 @@ function Search$1() {
|
|
|
19178
19191
|
};
|
|
19179
19192
|
}());
|
|
19180
19193
|
}, [value, controller]);
|
|
19181
|
-
return
|
|
19194
|
+
return React.createElement(Input$1, {
|
|
19182
19195
|
readOnly: readOnly,
|
|
19183
19196
|
value: value,
|
|
19184
19197
|
className: "kts-invoice-operate-goods-list-search",
|
|
19185
19198
|
placeholder: "\u8BF7\u60A8\u8F93\u5165\u9879\u76EE\u540D\u79F0\u3001\u89C4\u683C\u578B\u53F7\u3001\u91D1\u989D(".concat(isTaxIncluded ? '含税' : '不含税', ")\u641C\u7D22"),
|
|
19186
|
-
prefix:
|
|
19199
|
+
prefix: React.createElement(Icon$1, {
|
|
19187
19200
|
component: SvgMagnifier$1,
|
|
19188
19201
|
style: {
|
|
19189
19202
|
color: "#b8b8b8"
|
|
@@ -19228,12 +19241,12 @@ function TableRow$1(props) {
|
|
|
19228
19241
|
return undefined;
|
|
19229
19242
|
}
|
|
19230
19243
|
}, [rowKey, goodsMap]);
|
|
19231
|
-
return rowKey === current && current ?
|
|
19244
|
+
return rowKey === current && current ? React.createElement("tr", {
|
|
19232
19245
|
style: {
|
|
19233
19246
|
height: 50,
|
|
19234
19247
|
position: 'relative'
|
|
19235
19248
|
}
|
|
19236
|
-
},
|
|
19249
|
+
}, React.createElement("div", {
|
|
19237
19250
|
style: {
|
|
19238
19251
|
height: 0.5,
|
|
19239
19252
|
width: '100%',
|
|
@@ -19241,9 +19254,7 @@ function TableRow$1(props) {
|
|
|
19241
19254
|
position: 'absolute',
|
|
19242
19255
|
bottom: 0
|
|
19243
19256
|
}
|
|
19244
|
-
})) :
|
|
19245
|
-
/*#__PURE__*/
|
|
19246
|
-
// <tr {...props} className={classnames(props.className, discount, (rowKey === container && current) ? 'kts-invoice-operate-goods-list-itemName-drag-container' : '')} />
|
|
19257
|
+
})) : // <tr {...props} className={classnames(props.className, discount, (rowKey === container && current) ? 'kts-invoice-operate-goods-list-itemName-drag-container' : '')} />
|
|
19247
19258
|
React.createElement("tr", _objectSpread2(_objectSpread2({}, props), {}, {
|
|
19248
19259
|
className: classNames(props.className, discount, rowKey === container && current ? 'kts-invoice-operate-goods-list-itemName-drag-container-' + site : undefined)
|
|
19249
19260
|
}));
|
|
@@ -19283,9 +19294,9 @@ var TitleText$1 = (function (props) {
|
|
|
19283
19294
|
return !!e.required;
|
|
19284
19295
|
})) || props.required;
|
|
19285
19296
|
}, [rules, props.required]);
|
|
19286
|
-
return
|
|
19297
|
+
return React.createElement(React.Fragment, null, required ? React.createElement(Text$5, {
|
|
19287
19298
|
type: "danger"
|
|
19288
|
-
}, "*") :
|
|
19299
|
+
}, "*") : React.createElement(React.Fragment, null), children);
|
|
19289
19300
|
});
|
|
19290
19301
|
|
|
19291
19302
|
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";
|
|
@@ -19466,14 +19477,14 @@ function ItemNameInput$1(props) {
|
|
|
19466
19477
|
return _ref3.apply(this, arguments);
|
|
19467
19478
|
};
|
|
19468
19479
|
}(), [autoComplete.onItemNameSearch]);
|
|
19469
|
-
return
|
|
19480
|
+
return React.createElement("div", {
|
|
19470
19481
|
className: 'kts-invoice-operate-goods-list-itemName-input'
|
|
19471
|
-
}, props.shorthand &&
|
|
19482
|
+
}, props.shorthand && React.createElement("span", {
|
|
19472
19483
|
style: {
|
|
19473
19484
|
alignSelf: 'center',
|
|
19474
19485
|
fontSize: 12
|
|
19475
19486
|
}
|
|
19476
|
-
}, "*", props.shorthand, "*"),
|
|
19487
|
+
}, "*", props.shorthand, "*"), React.createElement(AutoComplete$1, {
|
|
19477
19488
|
onSearch: onSearch,
|
|
19478
19489
|
value: props.value,
|
|
19479
19490
|
options: options.map(function (e) {
|
|
@@ -19483,7 +19494,7 @@ function ItemNameInput$1(props) {
|
|
|
19483
19494
|
};
|
|
19484
19495
|
}),
|
|
19485
19496
|
onSelect: onChangeAutoComplete
|
|
19486
|
-
},
|
|
19497
|
+
}, React.createElement(Input$1, {
|
|
19487
19498
|
style: {
|
|
19488
19499
|
height: '100%'
|
|
19489
19500
|
},
|
|
@@ -19553,7 +19564,7 @@ function Drag$2(props) {
|
|
|
19553
19564
|
var currentGood = controller.state.goodsListState.goodsList.filter(function (e) {
|
|
19554
19565
|
return e.$index === record.$index;
|
|
19555
19566
|
})[0];
|
|
19556
|
-
mounting(
|
|
19567
|
+
mounting(React.createElement(DragDiv$1, _objectSpread2({}, currentGood)));
|
|
19557
19568
|
rowList.forEach(function (e) {
|
|
19558
19569
|
e.addEventListener('mousemove', onMousemove);
|
|
19559
19570
|
});
|
|
@@ -19714,7 +19725,7 @@ function Drag$2(props) {
|
|
|
19714
19725
|
|
|
19715
19726
|
|
|
19716
19727
|
function insert() {
|
|
19717
|
-
mounting(
|
|
19728
|
+
mounting(React.createElement(React.Fragment, null));
|
|
19718
19729
|
controller.run( /*#__PURE__*/function () {
|
|
19719
19730
|
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(s) {
|
|
19720
19731
|
var _s$goodsListState$dra, container, current, site, goodsList, goodsMap, _currentGood, currentIndex, moveGoods;
|
|
@@ -19793,7 +19804,7 @@ function Drag$2(props) {
|
|
|
19793
19804
|
}
|
|
19794
19805
|
}, [controller, record, disabled]);
|
|
19795
19806
|
var renderButton = React.useMemo(function () {
|
|
19796
|
-
return
|
|
19807
|
+
return React.createElement(Button, {
|
|
19797
19808
|
type: 'link',
|
|
19798
19809
|
style: {
|
|
19799
19810
|
padding: 0
|
|
@@ -19804,13 +19815,13 @@ function Drag$2(props) {
|
|
|
19804
19815
|
},
|
|
19805
19816
|
className: "kts-invoice-operate-goods-list-itemName-drag",
|
|
19806
19817
|
onMouseOver: controller.saveEditGood
|
|
19807
|
-
},
|
|
19818
|
+
}, React.createElement(Icon, {
|
|
19808
19819
|
component: SvgI001$1
|
|
19809
19820
|
}));
|
|
19810
19821
|
}, [onMouseDown, controller]);
|
|
19811
19822
|
|
|
19812
19823
|
if (disabled) {
|
|
19813
|
-
return
|
|
19824
|
+
return React.createElement(Popover, {
|
|
19814
19825
|
content: '您还有未编辑完成的商品',
|
|
19815
19826
|
trigger: 'focus'
|
|
19816
19827
|
}, renderButton);
|
|
@@ -19850,13 +19861,13 @@ function DragDiv$1(props) {
|
|
|
19850
19861
|
window.removeEventListener('mousemove', onMousemove);
|
|
19851
19862
|
};
|
|
19852
19863
|
});
|
|
19853
|
-
return
|
|
19864
|
+
return React.createElement("div", {
|
|
19854
19865
|
className: "kts-invoice-operate-goods-list-itemName-drag-div",
|
|
19855
19866
|
style: {
|
|
19856
19867
|
top: y,
|
|
19857
19868
|
left: x
|
|
19858
19869
|
}
|
|
19859
|
-
},
|
|
19870
|
+
}, React.createElement("span", null, props.itemName), React.createElement("span", null, props.itemModelName), React.createElement("span", null, props.unit));
|
|
19860
19871
|
}
|
|
19861
19872
|
|
|
19862
19873
|
var useColumns$1 = (function (form) {
|
|
@@ -19972,7 +19983,7 @@ var useColumns$1 = (function (form) {
|
|
|
19972
19983
|
width: 40,
|
|
19973
19984
|
align: 'center',
|
|
19974
19985
|
render: function render(_, record) {
|
|
19975
|
-
return
|
|
19986
|
+
return React.createElement(Drag$2, {
|
|
19976
19987
|
record: record
|
|
19977
19988
|
});
|
|
19978
19989
|
}
|
|
@@ -19982,20 +19993,20 @@ var useColumns$1 = (function (form) {
|
|
|
19982
19993
|
dataIndex: 'serialNo',
|
|
19983
19994
|
width: 50,
|
|
19984
19995
|
render: function render(e) {
|
|
19985
|
-
return
|
|
19996
|
+
return React.createElement("span", {
|
|
19986
19997
|
style: {
|
|
19987
19998
|
padding: '0 10px'
|
|
19988
19999
|
}
|
|
19989
20000
|
}, e);
|
|
19990
20001
|
}
|
|
19991
20002
|
}, {
|
|
19992
|
-
title:
|
|
20003
|
+
title: React.createElement(TitleText$1, {
|
|
19993
20004
|
required: true
|
|
19994
20005
|
}, "\u9879\u76EE\u540D\u79F0"),
|
|
19995
20006
|
key: 'itemName',
|
|
19996
20007
|
render: function render(_, record) {
|
|
19997
20008
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
19998
|
-
return
|
|
20009
|
+
return React.createElement(Form.Item, null, React.createElement("div", {
|
|
19999
20010
|
style: {
|
|
20000
20011
|
display: 'flex'
|
|
20001
20012
|
}
|
|
@@ -20042,12 +20053,12 @@ var useColumns$1 = (function (form) {
|
|
|
20042
20053
|
return validator;
|
|
20043
20054
|
}()
|
|
20044
20055
|
}])
|
|
20045
|
-
})(
|
|
20056
|
+
})(React.createElement(ItemNameInput$1, {
|
|
20046
20057
|
editGood: editGood,
|
|
20047
20058
|
shorthand: editGood.shorthand,
|
|
20048
|
-
suffix:
|
|
20059
|
+
suffix: React.createElement(Tooltip$1, {
|
|
20049
20060
|
title: "\u70B9\u51FB\u4ECE\u5546\u54C1\u7BA1\u7406\u4E2D\u6DFB\u52A0\u5546\u54C1\u4FE1\u606F"
|
|
20050
|
-
},
|
|
20061
|
+
}, React.createElement(Button$1, {
|
|
20051
20062
|
type: "link",
|
|
20052
20063
|
style: {
|
|
20053
20064
|
padding: 0,
|
|
@@ -20055,7 +20066,7 @@ var useColumns$1 = (function (form) {
|
|
|
20055
20066
|
fontSize: 20,
|
|
20056
20067
|
fill: '#0074ff'
|
|
20057
20068
|
},
|
|
20058
|
-
icon:
|
|
20069
|
+
icon: React.createElement(SvgPlus$1, null),
|
|
20059
20070
|
onClick: controller.pipeline( /*#__PURE__*/function () {
|
|
20060
20071
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(s) {
|
|
20061
20072
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
@@ -20082,9 +20093,9 @@ var useColumns$1 = (function (form) {
|
|
|
20082
20093
|
}
|
|
20083
20094
|
}))));
|
|
20084
20095
|
} else {
|
|
20085
|
-
return
|
|
20096
|
+
return React.createElement("span", null, record.lineAttribute === LineAttributeType$1.折扣行 ? React.createElement("span", {
|
|
20086
20097
|
className: 'goods-list-digtal-discount-tag'
|
|
20087
|
-
}, "\u6298\u6263") :
|
|
20098
|
+
}, "\u6298\u6263") : React.createElement(React.Fragment, null), React.createElement(MyItemNameDiv$1, {
|
|
20088
20099
|
valueT: formatSearch$1(getItemNameWithShorthand({
|
|
20089
20100
|
shorthand: record.shorthand,
|
|
20090
20101
|
full: record.itemNameSelf || ''
|
|
@@ -20098,17 +20109,17 @@ var useColumns$1 = (function (form) {
|
|
|
20098
20109
|
}
|
|
20099
20110
|
}
|
|
20100
20111
|
}, {
|
|
20101
|
-
title:
|
|
20112
|
+
title: React.createElement(TitleText$1, {
|
|
20102
20113
|
rules: (_columnsReplenish$ite = columnsReplenish['itemModelName']) === null || _columnsReplenish$ite === void 0 ? void 0 : _columnsReplenish$ite.rules
|
|
20103
20114
|
}, "\u89C4\u683C\u578B\u53F7"),
|
|
20104
20115
|
key: 'itemModelName',
|
|
20105
20116
|
width: 119,
|
|
20106
20117
|
render: function render(_, record) {
|
|
20107
20118
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
20108
|
-
return
|
|
20119
|
+
return React.createElement(Form.Item, null, getFieldDecorator('itemModelName', {
|
|
20109
20120
|
initialValue: isMyShow ? editGood.itemModelNameSelf : editGood.itemModelName,
|
|
20110
20121
|
rules: getReplenishRules('itemModelName')
|
|
20111
|
-
})(
|
|
20122
|
+
})(React.createElement(MyInput$2, {
|
|
20112
20123
|
onChange: function () {
|
|
20113
20124
|
var _onChange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
20114
20125
|
var key, value;
|
|
@@ -20141,7 +20152,7 @@ var useColumns$1 = (function (form) {
|
|
|
20141
20152
|
}()
|
|
20142
20153
|
})));
|
|
20143
20154
|
} else {
|
|
20144
|
-
return
|
|
20155
|
+
return React.createElement(MyItemNameDiv$1, {
|
|
20145
20156
|
valueT: formatSearch$1(record.itemModelNameSelf, searchValue),
|
|
20146
20157
|
valueF: formatSearch$1(record.itemModelName, searchValue),
|
|
20147
20158
|
isMyShow: isMyShow
|
|
@@ -20149,17 +20160,17 @@ var useColumns$1 = (function (form) {
|
|
|
20149
20160
|
}
|
|
20150
20161
|
}
|
|
20151
20162
|
}, {
|
|
20152
|
-
title:
|
|
20163
|
+
title: React.createElement(TitleText$1, {
|
|
20153
20164
|
rules: (_columnsReplenish$uni = columnsReplenish['unit']) === null || _columnsReplenish$uni === void 0 ? void 0 : _columnsReplenish$uni.rules
|
|
20154
20165
|
}, "\u5355\u4F4D"),
|
|
20155
20166
|
key: 'unit',
|
|
20156
20167
|
width: 70,
|
|
20157
20168
|
render: function render(_, record) {
|
|
20158
20169
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
20159
|
-
return
|
|
20170
|
+
return React.createElement(Form.Item, null, getFieldDecorator('unit', {
|
|
20160
20171
|
initialValue: editGood.unit,
|
|
20161
20172
|
rules: getReplenishRules('unit')
|
|
20162
|
-
})(
|
|
20173
|
+
})(React.createElement(AutoComplete$1, {
|
|
20163
20174
|
style: {
|
|
20164
20175
|
width: '100%'
|
|
20165
20176
|
},
|
|
@@ -20197,7 +20208,7 @@ var useColumns$1 = (function (form) {
|
|
|
20197
20208
|
}()
|
|
20198
20209
|
})));
|
|
20199
20210
|
} else {
|
|
20200
|
-
return
|
|
20211
|
+
return React.createElement("span", {
|
|
20201
20212
|
style: {
|
|
20202
20213
|
padding: '0 10px'
|
|
20203
20214
|
}
|
|
@@ -20205,7 +20216,7 @@ var useColumns$1 = (function (form) {
|
|
|
20205
20216
|
}
|
|
20206
20217
|
}
|
|
20207
20218
|
}, {
|
|
20208
|
-
title:
|
|
20219
|
+
title: React.createElement(TitleText$1, {
|
|
20209
20220
|
rules: (_columnsReplenish$qua = columnsReplenish['quantity']) === null || _columnsReplenish$qua === void 0 ? void 0 : _columnsReplenish$qua.rules
|
|
20210
20221
|
}, "\u6570\u91CF"),
|
|
20211
20222
|
dataIndex: 'quantity',
|
|
@@ -20214,7 +20225,7 @@ var useColumns$1 = (function (form) {
|
|
|
20214
20225
|
width: 149,
|
|
20215
20226
|
render: function render(value, record) {
|
|
20216
20227
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
20217
|
-
return
|
|
20228
|
+
return React.createElement(Form.Item, null, getFieldDecorator('quantity', {
|
|
20218
20229
|
initialValue: nonScientificNotation(editGood.quantity),
|
|
20219
20230
|
getValueFromEvent: onNumberValueChange,
|
|
20220
20231
|
rules: [].concat(_toConsumableArray(getReplenishRules('quantity')), [{
|
|
@@ -20260,7 +20271,7 @@ var useColumns$1 = (function (form) {
|
|
|
20260
20271
|
return validator;
|
|
20261
20272
|
}()
|
|
20262
20273
|
}])
|
|
20263
|
-
})(
|
|
20274
|
+
})(React.createElement(MyInput$2, {
|
|
20264
20275
|
style: {
|
|
20265
20276
|
textAlign: 'right'
|
|
20266
20277
|
},
|
|
@@ -20292,7 +20303,7 @@ var useColumns$1 = (function (form) {
|
|
|
20292
20303
|
}()
|
|
20293
20304
|
})));
|
|
20294
20305
|
} else {
|
|
20295
|
-
return
|
|
20306
|
+
return React.createElement("span", {
|
|
20296
20307
|
style: {
|
|
20297
20308
|
padding: '0 10px'
|
|
20298
20309
|
}
|
|
@@ -20300,7 +20311,7 @@ var useColumns$1 = (function (form) {
|
|
|
20300
20311
|
}
|
|
20301
20312
|
}
|
|
20302
20313
|
}, {
|
|
20303
|
-
title:
|
|
20314
|
+
title: React.createElement(TitleText$1, {
|
|
20304
20315
|
rules: (_columnsReplenish$pri = columnsReplenish['priceIncludeTax']) === null || _columnsReplenish$pri === void 0 ? void 0 : _columnsReplenish$pri.rules
|
|
20305
20316
|
}, "\u5355\u4EF7(\u542B\u7A0E)"),
|
|
20306
20317
|
dataIndex: 'priceIncludeTax',
|
|
@@ -20309,7 +20320,7 @@ var useColumns$1 = (function (form) {
|
|
|
20309
20320
|
width: 149,
|
|
20310
20321
|
render: function render(value, record) {
|
|
20311
20322
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
20312
|
-
return
|
|
20323
|
+
return React.createElement(Form.Item, null, getFieldDecorator('priceIncludeTax', {
|
|
20313
20324
|
initialValue: nonScientificNotation(editGood.priceIncludeTax),
|
|
20314
20325
|
getValueFromEvent: onNumberValueChange,
|
|
20315
20326
|
rules: [].concat(_toConsumableArray(getReplenishRules('priceIncludeTax')), [{
|
|
@@ -20355,7 +20366,7 @@ var useColumns$1 = (function (form) {
|
|
|
20355
20366
|
return validator;
|
|
20356
20367
|
}()
|
|
20357
20368
|
}])
|
|
20358
|
-
})(
|
|
20369
|
+
})(React.createElement(MyInput$2, {
|
|
20359
20370
|
style: {
|
|
20360
20371
|
textAlign: 'right'
|
|
20361
20372
|
},
|
|
@@ -20367,7 +20378,7 @@ var useColumns$1 = (function (form) {
|
|
|
20367
20378
|
}
|
|
20368
20379
|
})));
|
|
20369
20380
|
} else {
|
|
20370
|
-
return
|
|
20381
|
+
return React.createElement("span", {
|
|
20371
20382
|
style: {
|
|
20372
20383
|
padding: '0 10px'
|
|
20373
20384
|
}
|
|
@@ -20375,7 +20386,7 @@ var useColumns$1 = (function (form) {
|
|
|
20375
20386
|
}
|
|
20376
20387
|
}
|
|
20377
20388
|
}, {
|
|
20378
|
-
title:
|
|
20389
|
+
title: React.createElement(TitleText$1, {
|
|
20379
20390
|
rules: (_columnsReplenish$pri2 = columnsReplenish['priceExcludeTax']) === null || _columnsReplenish$pri2 === void 0 ? void 0 : _columnsReplenish$pri2.rules
|
|
20380
20391
|
}, "\u5355\u4EF7(\u4E0D\u542B\u7A0E)"),
|
|
20381
20392
|
dataIndex: 'priceExcludeTax',
|
|
@@ -20384,7 +20395,7 @@ var useColumns$1 = (function (form) {
|
|
|
20384
20395
|
width: 149,
|
|
20385
20396
|
render: function render(value, record) {
|
|
20386
20397
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
20387
|
-
return
|
|
20398
|
+
return React.createElement(Form.Item, null, getFieldDecorator('priceExcludeTax', {
|
|
20388
20399
|
initialValue: nonScientificNotation(editGood.priceExcludeTax),
|
|
20389
20400
|
getValueFromEvent: onNumberValueChange,
|
|
20390
20401
|
rules: [].concat(_toConsumableArray(getReplenishRules('priceExcludeTax')), [{
|
|
@@ -20430,7 +20441,7 @@ var useColumns$1 = (function (form) {
|
|
|
20430
20441
|
return validator;
|
|
20431
20442
|
}()
|
|
20432
20443
|
}])
|
|
20433
|
-
})(
|
|
20444
|
+
})(React.createElement(MyInput$2, {
|
|
20434
20445
|
style: {
|
|
20435
20446
|
textAlign: 'right'
|
|
20436
20447
|
},
|
|
@@ -20442,7 +20453,7 @@ var useColumns$1 = (function (form) {
|
|
|
20442
20453
|
}
|
|
20443
20454
|
})));
|
|
20444
20455
|
} else {
|
|
20445
|
-
return
|
|
20456
|
+
return React.createElement("span", {
|
|
20446
20457
|
style: {
|
|
20447
20458
|
padding: '0 10px'
|
|
20448
20459
|
}
|
|
@@ -20450,7 +20461,7 @@ var useColumns$1 = (function (form) {
|
|
|
20450
20461
|
}
|
|
20451
20462
|
}
|
|
20452
20463
|
}, {
|
|
20453
|
-
title:
|
|
20464
|
+
title: React.createElement(TitleText$1, {
|
|
20454
20465
|
required: true
|
|
20455
20466
|
}, "\u91D1\u989D(\u542B\u7A0E)"),
|
|
20456
20467
|
dataIndex: 'lineAmountIncludeTax',
|
|
@@ -20459,7 +20470,7 @@ var useColumns$1 = (function (form) {
|
|
|
20459
20470
|
align: 'right',
|
|
20460
20471
|
render: function render(value, record) {
|
|
20461
20472
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
20462
|
-
return
|
|
20473
|
+
return React.createElement(Form.Item, null, getFieldDecorator('lineAmountIncludeTax', {
|
|
20463
20474
|
initialValue: editGood.lineAmountIncludeTax,
|
|
20464
20475
|
getValueFromEvent: onNumberValueChange,
|
|
20465
20476
|
rules: [].concat(_toConsumableArray(getReplenishRules('lineAmountIncludeTax')), [{
|
|
@@ -20519,7 +20530,7 @@ var useColumns$1 = (function (form) {
|
|
|
20519
20530
|
return validator;
|
|
20520
20531
|
}()
|
|
20521
20532
|
}])
|
|
20522
|
-
})(
|
|
20533
|
+
})(React.createElement(MyInput$2, {
|
|
20523
20534
|
style: {
|
|
20524
20535
|
textAlign: 'right'
|
|
20525
20536
|
},
|
|
@@ -20530,7 +20541,7 @@ var useColumns$1 = (function (form) {
|
|
|
20530
20541
|
}
|
|
20531
20542
|
})));
|
|
20532
20543
|
} else {
|
|
20533
|
-
return
|
|
20544
|
+
return React.createElement("span", {
|
|
20534
20545
|
style: {
|
|
20535
20546
|
padding: '0 10px'
|
|
20536
20547
|
}
|
|
@@ -20538,7 +20549,7 @@ var useColumns$1 = (function (form) {
|
|
|
20538
20549
|
}
|
|
20539
20550
|
}
|
|
20540
20551
|
}, {
|
|
20541
|
-
title:
|
|
20552
|
+
title: React.createElement(TitleText$1, {
|
|
20542
20553
|
required: true
|
|
20543
20554
|
}, "\u91D1\u989D(\u4E0D\u542B\u7A0E)"),
|
|
20544
20555
|
dataIndex: 'lineAmountExcludeTax',
|
|
@@ -20547,7 +20558,7 @@ var useColumns$1 = (function (form) {
|
|
|
20547
20558
|
width: 119,
|
|
20548
20559
|
render: function render(value, record) {
|
|
20549
20560
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
20550
|
-
return
|
|
20561
|
+
return React.createElement(Form.Item, null, getFieldDecorator('lineAmountExcludeTax', {
|
|
20551
20562
|
initialValue: editGood.lineAmountExcludeTax,
|
|
20552
20563
|
getValueFromEvent: onNumberValueChange,
|
|
20553
20564
|
rules: [].concat(_toConsumableArray(getReplenishRules('lineAmountExcludeTax')), [{
|
|
@@ -20582,7 +20593,7 @@ var useColumns$1 = (function (form) {
|
|
|
20582
20593
|
return validator;
|
|
20583
20594
|
}()
|
|
20584
20595
|
}])
|
|
20585
|
-
})(
|
|
20596
|
+
})(React.createElement(MyInput$2, {
|
|
20586
20597
|
style: {
|
|
20587
20598
|
textAlign: 'right'
|
|
20588
20599
|
},
|
|
@@ -20593,7 +20604,7 @@ var useColumns$1 = (function (form) {
|
|
|
20593
20604
|
}
|
|
20594
20605
|
})));
|
|
20595
20606
|
} else {
|
|
20596
|
-
return
|
|
20607
|
+
return React.createElement("span", {
|
|
20597
20608
|
style: {
|
|
20598
20609
|
padding: '0 10px'
|
|
20599
20610
|
}
|
|
@@ -20601,16 +20612,16 @@ var useColumns$1 = (function (form) {
|
|
|
20601
20612
|
}
|
|
20602
20613
|
}
|
|
20603
20614
|
}, {
|
|
20604
|
-
title:
|
|
20615
|
+
title: React.createElement(TitleText$1, {
|
|
20605
20616
|
required: true
|
|
20606
|
-
}, "\u7A0E\u7387
|
|
20617
|
+
}, "\u7A0E\u7387"),
|
|
20607
20618
|
dataIndex: 'taxRate',
|
|
20608
20619
|
key: 'taxRate',
|
|
20609
20620
|
align: 'right',
|
|
20610
20621
|
width: 70,
|
|
20611
20622
|
render: function render(value, record) {
|
|
20612
20623
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
20613
|
-
return
|
|
20624
|
+
return React.createElement(Form.Item, null, getFieldDecorator('taxRate', {
|
|
20614
20625
|
initialValue: editGood.taxRate,
|
|
20615
20626
|
rules: [].concat(_toConsumableArray(getReplenishRules('taxRate')), [{
|
|
20616
20627
|
required: true,
|
|
@@ -20619,7 +20630,7 @@ var useColumns$1 = (function (form) {
|
|
|
20619
20630
|
pattern: /^[+-]?(0|([1-9]\d*))(\.\d+)?$/,
|
|
20620
20631
|
message: ' '
|
|
20621
20632
|
}])
|
|
20622
|
-
})(
|
|
20633
|
+
})(React.createElement(Select$1, {
|
|
20623
20634
|
className: "kts-invoice-operate-goods-list-table-tax-rate",
|
|
20624
20635
|
// dropdownMenuStyle={{ textAlign: "right" }}
|
|
20625
20636
|
showArrow: false,
|
|
@@ -20631,13 +20642,13 @@ var useColumns$1 = (function (form) {
|
|
|
20631
20642
|
onChangeTaxRate$1(controller, form, record);
|
|
20632
20643
|
}
|
|
20633
20644
|
}, taxRateList.map(function (e, i) {
|
|
20634
|
-
return
|
|
20645
|
+
return React.createElement(Select$1.Option, {
|
|
20635
20646
|
key: i,
|
|
20636
20647
|
value: e
|
|
20637
20648
|
}, e, "%");
|
|
20638
20649
|
}))));
|
|
20639
20650
|
} else {
|
|
20640
|
-
return
|
|
20651
|
+
return React.createElement("span", {
|
|
20641
20652
|
style: {
|
|
20642
20653
|
padding: '0 10px'
|
|
20643
20654
|
}
|
|
@@ -20645,7 +20656,7 @@ var useColumns$1 = (function (form) {
|
|
|
20645
20656
|
}
|
|
20646
20657
|
}
|
|
20647
20658
|
}, {
|
|
20648
|
-
title:
|
|
20659
|
+
title: React.createElement(TitleText$1, {
|
|
20649
20660
|
rules: (_columnsReplenish$tax = columnsReplenish['taxAmount']) === null || _columnsReplenish$tax === void 0 ? void 0 : _columnsReplenish$tax.rules
|
|
20650
20661
|
}, "\u7A0E\u989D"),
|
|
20651
20662
|
dataIndex: 'taxAmount',
|
|
@@ -20657,11 +20668,11 @@ var useColumns$1 = (function (form) {
|
|
|
20657
20668
|
return getFieldDecorator('taxAmount', {
|
|
20658
20669
|
initialValue: editGood.taxAmount,
|
|
20659
20670
|
rules: getReplenishRules('taxAmount')
|
|
20660
|
-
})(
|
|
20671
|
+
})(React.createElement(MyDiv$2, {
|
|
20661
20672
|
loading: isCipher$1(changeField, 'taxAmount')
|
|
20662
20673
|
}));
|
|
20663
20674
|
} else {
|
|
20664
|
-
return
|
|
20675
|
+
return React.createElement("span", {
|
|
20665
20676
|
style: {
|
|
20666
20677
|
padding: '0 10px'
|
|
20667
20678
|
}
|
|
@@ -20728,13 +20739,13 @@ var MyInput$2 = /*#__PURE__*/function (_React$Component) {
|
|
|
20728
20739
|
key: "render",
|
|
20729
20740
|
value: function render() {
|
|
20730
20741
|
if (this.props.loading) {
|
|
20731
|
-
return
|
|
20742
|
+
return React.createElement(Spin$1, {
|
|
20732
20743
|
size: "small"
|
|
20733
|
-
},
|
|
20744
|
+
}, React.createElement(Input$1, _objectSpread2(_objectSpread2({}, this.props), {}, {
|
|
20734
20745
|
autoComplete: "off"
|
|
20735
20746
|
})));
|
|
20736
20747
|
} else {
|
|
20737
|
-
return
|
|
20748
|
+
return React.createElement(Input$1, _objectSpread2(_objectSpread2({}, this.props), {}, {
|
|
20738
20749
|
autoComplete: "off"
|
|
20739
20750
|
}));
|
|
20740
20751
|
}
|
|
@@ -20759,15 +20770,15 @@ var MyDiv$2 = /*#__PURE__*/function (_React$Component2) {
|
|
|
20759
20770
|
key: "render",
|
|
20760
20771
|
value: function render() {
|
|
20761
20772
|
if (this.props.loading) {
|
|
20762
|
-
return
|
|
20773
|
+
return React.createElement(Spin$1, {
|
|
20763
20774
|
size: "small"
|
|
20764
|
-
},
|
|
20775
|
+
}, React.createElement("span", {
|
|
20765
20776
|
style: {
|
|
20766
20777
|
padding: '0 10px'
|
|
20767
20778
|
}
|
|
20768
20779
|
}, this.props.value));
|
|
20769
20780
|
} else {
|
|
20770
|
-
return
|
|
20781
|
+
return React.createElement("span", {
|
|
20771
20782
|
style: {
|
|
20772
20783
|
padding: '0 10px'
|
|
20773
20784
|
}
|
|
@@ -20800,32 +20811,32 @@ var MyItemNameDiv$1 = /*#__PURE__*/function (_React$Component3) {
|
|
|
20800
20811
|
|
|
20801
20812
|
if (isMyShow) {
|
|
20802
20813
|
if (valueT) {
|
|
20803
|
-
return
|
|
20814
|
+
return React.createElement(Tooltip$1, {
|
|
20804
20815
|
title: valueT
|
|
20805
|
-
},
|
|
20816
|
+
}, React.createElement("span", {
|
|
20806
20817
|
style: _objectSpread2(_objectSpread2({}, MyItemNameStyle), {}, {
|
|
20807
20818
|
color: '#0074ff'
|
|
20808
20819
|
})
|
|
20809
20820
|
}, valueT));
|
|
20810
20821
|
} else {
|
|
20811
|
-
return
|
|
20822
|
+
return React.createElement(Tooltip$1, {
|
|
20812
20823
|
title: valueF
|
|
20813
|
-
},
|
|
20824
|
+
}, React.createElement("span", {
|
|
20814
20825
|
style: MyItemNameStyle
|
|
20815
20826
|
}, valueF));
|
|
20816
20827
|
}
|
|
20817
20828
|
} else {
|
|
20818
20829
|
if (valueF) {
|
|
20819
|
-
return
|
|
20830
|
+
return React.createElement(Tooltip$1, {
|
|
20820
20831
|
title: valueF
|
|
20821
|
-
},
|
|
20832
|
+
}, React.createElement("span", {
|
|
20822
20833
|
style: MyItemNameStyle
|
|
20823
20834
|
}, valueF));
|
|
20824
20835
|
} else {
|
|
20825
|
-
return
|
|
20836
|
+
return React.createElement(Tooltip$1, {
|
|
20826
20837
|
title: valueT,
|
|
20827
20838
|
style: MyItemNameStyle
|
|
20828
|
-
},
|
|
20839
|
+
}, React.createElement("span", {
|
|
20829
20840
|
style: _objectSpread2(_objectSpread2({}, MyItemNameStyle), {}, {
|
|
20830
20841
|
color: '#0074ff'
|
|
20831
20842
|
})
|
|
@@ -20847,7 +20858,7 @@ function formatSearch$1(value, search) {
|
|
|
20847
20858
|
return dcoding$1(e);
|
|
20848
20859
|
}).join("<span class=\"kts-invoice-operate-goods-list-table-search-protrude\" >".concat(search, "</span>"));
|
|
20849
20860
|
|
|
20850
|
-
return
|
|
20861
|
+
return React.createElement("span", {
|
|
20851
20862
|
dangerouslySetInnerHTML: {
|
|
20852
20863
|
__html: __html
|
|
20853
20864
|
}
|
|
@@ -21235,7 +21246,7 @@ var useRowSelection$1 = (function () {
|
|
|
21235
21246
|
};
|
|
21236
21247
|
}(), [controller]);
|
|
21237
21248
|
var columnTitle = React.useMemo(function () {
|
|
21238
|
-
return
|
|
21249
|
+
return React.createElement(Checkbox, {
|
|
21239
21250
|
onChange: onClickSelectAll,
|
|
21240
21251
|
indeterminate: indeterminate,
|
|
21241
21252
|
checked: isAll
|
|
@@ -21384,19 +21395,19 @@ var useDelRowButton$1 = (function () {
|
|
|
21384
21395
|
}, _callee2);
|
|
21385
21396
|
})), []);
|
|
21386
21397
|
var menuItem = React.useMemo(function () {
|
|
21387
|
-
if (model === 'prefab') return
|
|
21388
|
-
if (model === 'readOnly') return
|
|
21389
|
-
return
|
|
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, {
|
|
21390
21401
|
key: "1",
|
|
21391
21402
|
onClick: onClick,
|
|
21392
21403
|
disabled: disabled
|
|
21393
21404
|
}, " \u5220\u9664\u884C ");
|
|
21394
21405
|
}, [model, onClick, disabled]);
|
|
21395
21406
|
var button = React.useMemo(function () {
|
|
21396
|
-
if (isRemRow === false) return
|
|
21397
|
-
if (model === 'prefab') return
|
|
21398
|
-
if (model === 'readOnly') return
|
|
21399
|
-
return
|
|
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, {
|
|
21400
21411
|
size: 'small',
|
|
21401
21412
|
onClick: onClick,
|
|
21402
21413
|
disabled: disabled
|
|
@@ -21627,16 +21638,16 @@ var useAddDiscountRowButton$1 = (function () {
|
|
|
21627
21638
|
}, [isAddDiscount, model]);
|
|
21628
21639
|
var button = React.useMemo(function () {
|
|
21629
21640
|
if (isEnable) {
|
|
21630
|
-
return
|
|
21641
|
+
return React.createElement(React.Fragment, null, React.createElement(Button$1, {
|
|
21631
21642
|
size: 'small',
|
|
21632
21643
|
onClick: onOpen,
|
|
21633
21644
|
disabled: disabled
|
|
21634
|
-
}, "\u6DFB\u52A0\u6298\u6263"),
|
|
21645
|
+
}, "\u6DFB\u52A0\u6298\u6263"), React.createElement(AddDiscountRowDrawer, {
|
|
21635
21646
|
open: open,
|
|
21636
21647
|
onClose: onClose
|
|
21637
21648
|
}));
|
|
21638
21649
|
} else {
|
|
21639
|
-
return
|
|
21650
|
+
return React.createElement(React.Fragment, null);
|
|
21640
21651
|
}
|
|
21641
21652
|
}, [open, onOpen, onClose, isEnable, disabled]);
|
|
21642
21653
|
return {
|
|
@@ -21817,35 +21828,35 @@ function AddDiscountRowDrawer(props) {
|
|
|
21817
21828
|
discolineValue: undefined
|
|
21818
21829
|
}));
|
|
21819
21830
|
}, [formValues === null || formValues === void 0 ? void 0 : formValues.discolineType]);
|
|
21820
|
-
return
|
|
21831
|
+
return React.createElement(Drawer$1, {
|
|
21821
21832
|
title: "\u6DFB\u52A0\u6298\u6263",
|
|
21822
21833
|
placement: "right",
|
|
21823
21834
|
width: 350,
|
|
21824
21835
|
onClose: onClose,
|
|
21825
21836
|
open: open,
|
|
21826
|
-
footer:
|
|
21837
|
+
footer: React.createElement(Space, {
|
|
21827
21838
|
size: "middle",
|
|
21828
21839
|
style: {
|
|
21829
21840
|
display: 'flex',
|
|
21830
21841
|
justifyContent: 'end'
|
|
21831
21842
|
}
|
|
21832
|
-
},
|
|
21843
|
+
}, React.createElement(Button$1, {
|
|
21833
21844
|
onClick: onDefine,
|
|
21834
21845
|
type: 'primary'
|
|
21835
|
-
}, "\u786E\u5B9A"),
|
|
21846
|
+
}, "\u786E\u5B9A"), React.createElement(Button$1, {
|
|
21836
21847
|
onClick: onClose
|
|
21837
21848
|
}, "\u53D6\u6D88"))
|
|
21838
|
-
},
|
|
21849
|
+
}, React.createElement(Form$1, {
|
|
21839
21850
|
form: form,
|
|
21840
21851
|
layout: 'vertical',
|
|
21841
21852
|
onChange: onChangeForm
|
|
21842
|
-
},
|
|
21853
|
+
}, React.createElement(Form$1.Item, {
|
|
21843
21854
|
label: "\u5546\u54C1\u91D1\u989D\uFF08\u542B\u7A0E\uFF09"
|
|
21844
|
-
}, totalAmount.toFixed(2), "\uFF08\u5171 ", discountGood.length, " \u884C\uFF09"),
|
|
21855
|
+
}, totalAmount.toFixed(2), "\uFF08\u5171 ", discountGood.length, " \u884C\uFF09"), React.createElement(Form$1.Item, {
|
|
21845
21856
|
label: "\u6298\u6263\u65B9\u5F0F",
|
|
21846
21857
|
name: 'discolineType',
|
|
21847
21858
|
initialValue: '1'
|
|
21848
|
-
},
|
|
21859
|
+
}, React.createElement(Radio.Group, {
|
|
21849
21860
|
options: [{
|
|
21850
21861
|
label: '按金额折扣',
|
|
21851
21862
|
value: '1'
|
|
@@ -21853,7 +21864,7 @@ function AddDiscountRowDrawer(props) {
|
|
|
21853
21864
|
label: '按比例折扣',
|
|
21854
21865
|
value: '2'
|
|
21855
21866
|
}]
|
|
21856
|
-
})), (formValues === null || formValues === void 0 ? void 0 : formValues.discolineType) === '1' ?
|
|
21867
|
+
})), (formValues === null || formValues === void 0 ? void 0 : formValues.discolineType) === '1' ? React.createElement(Form$1.Item, {
|
|
21857
21868
|
label: "\u6298\u6263\u91D1\u989D\uFF08\u5143\uFF09\uFF08\u542B\u7A0E\uFF09",
|
|
21858
21869
|
name: 'discolineValue',
|
|
21859
21870
|
rules: [{
|
|
@@ -21904,11 +21915,11 @@ function AddDiscountRowDrawer(props) {
|
|
|
21904
21915
|
return validator;
|
|
21905
21916
|
}()
|
|
21906
21917
|
}]
|
|
21907
|
-
},
|
|
21918
|
+
}, React.createElement(InputNumber, {
|
|
21908
21919
|
style: {
|
|
21909
21920
|
width: '100%'
|
|
21910
21921
|
}
|
|
21911
|
-
})) :
|
|
21922
|
+
})) : React.createElement(Form$1.Item, {
|
|
21912
21923
|
label: "\u6298\u6263\u6BD4\u4F8B\uFF08%\uFF09\uFF08\u542B\u7A0E\uFF09",
|
|
21913
21924
|
name: 'discolineValue',
|
|
21914
21925
|
rules: [{
|
|
@@ -21959,7 +21970,7 @@ function AddDiscountRowDrawer(props) {
|
|
|
21959
21970
|
return validator;
|
|
21960
21971
|
}()
|
|
21961
21972
|
}]
|
|
21962
|
-
},
|
|
21973
|
+
}, React.createElement(InputNumber, {
|
|
21963
21974
|
style: {
|
|
21964
21975
|
width: '100%'
|
|
21965
21976
|
}
|
|
@@ -22103,16 +22114,16 @@ var useEndowCodeButton$1 = (function () {
|
|
|
22103
22114
|
}, _callee2);
|
|
22104
22115
|
})), [controller]);
|
|
22105
22116
|
var menuItem = React.useMemo(function () {
|
|
22106
|
-
if (model === 'readOnly') return
|
|
22107
|
-
return
|
|
22117
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
22118
|
+
return React.createElement(Menu$1.Item, {
|
|
22108
22119
|
key: "2",
|
|
22109
22120
|
onClick: onClick,
|
|
22110
22121
|
disabled: disabled
|
|
22111
22122
|
}, "\u6279\u91CF\u8D4B\u7801");
|
|
22112
22123
|
}, [onClick, disabled, model]);
|
|
22113
22124
|
var button = React.useMemo(function () {
|
|
22114
|
-
if (model === 'readOnly') return
|
|
22115
|
-
return
|
|
22125
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
22126
|
+
return React.createElement(Button$1, {
|
|
22116
22127
|
onClick: onClick,
|
|
22117
22128
|
disabled: disabled,
|
|
22118
22129
|
size: 'small'
|
|
@@ -22174,14 +22185,14 @@ var useEmptyRefill = (function () {
|
|
|
22174
22185
|
}());
|
|
22175
22186
|
}, [controller]);
|
|
22176
22187
|
var button = React.useMemo(function () {
|
|
22177
|
-
if (model === 'readOnly') return
|
|
22178
|
-
if (model === 'prefab') return
|
|
22179
|
-
return
|
|
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, {
|
|
22180
22191
|
title: "\u5C06\u8981\u6E05\u7A7A\u6240\u6709\u9879\u76EE\u4FE1\u606F\uFF0C\u662F\u5426\u7EE7\u7EED",
|
|
22181
22192
|
onConfirm: confirm,
|
|
22182
22193
|
okText: "\u786E\u5B9A",
|
|
22183
22194
|
cancelText: "\u53D6\u6D88"
|
|
22184
|
-
},
|
|
22195
|
+
}, React.createElement(Button$1, {
|
|
22185
22196
|
size: 'small'
|
|
22186
22197
|
}, "\u6E05\u7A7A\u91CD\u586B"));
|
|
22187
22198
|
}, [model, confirm]);
|
|
@@ -22248,14 +22259,14 @@ function InvoiceTypeModal(props) {
|
|
|
22248
22259
|
setValues(values);
|
|
22249
22260
|
}
|
|
22250
22261
|
}, [props.open, props.defaultBillingType, props.defaultBusiness, props.defaultInvoiceType, form]);
|
|
22251
|
-
return
|
|
22262
|
+
return React.createElement(Modal, {
|
|
22252
22263
|
title: props.modalTitle || "选择开具信息",
|
|
22253
22264
|
open: props.open,
|
|
22254
22265
|
onOk: onConfirm,
|
|
22255
22266
|
onCancel: props.onCancel,
|
|
22256
22267
|
okText: "\u786E\u5B9A",
|
|
22257
22268
|
cancelText: "\u53D6\u6D88"
|
|
22258
|
-
},
|
|
22269
|
+
}, React.createElement(Form$1, {
|
|
22259
22270
|
form: form,
|
|
22260
22271
|
layout: "vertical",
|
|
22261
22272
|
style: {
|
|
@@ -22264,13 +22275,13 @@ function InvoiceTypeModal(props) {
|
|
|
22264
22275
|
onValuesChange: function onValuesChange(_, e) {
|
|
22265
22276
|
setValues(e);
|
|
22266
22277
|
}
|
|
22267
|
-
},
|
|
22278
|
+
}, React.createElement(Row, {
|
|
22268
22279
|
gutter: [16, 16]
|
|
22269
|
-
},
|
|
22280
|
+
}, React.createElement(Col, {
|
|
22270
22281
|
span: 24
|
|
22271
|
-
},
|
|
22282
|
+
}, React.createElement(Form$1.Item, {
|
|
22272
22283
|
name: 'billingType'
|
|
22273
|
-
},
|
|
22284
|
+
}, React.createElement(Radio.Group, {
|
|
22274
22285
|
size: 'large',
|
|
22275
22286
|
className: "goods-list-digtal-reselect-invoice-typeModal-radio",
|
|
22276
22287
|
optionType: "button",
|
|
@@ -22283,27 +22294,27 @@ function InvoiceTypeModal(props) {
|
|
|
22283
22294
|
label: '税控发票',
|
|
22284
22295
|
value: 'taxation'
|
|
22285
22296
|
}]
|
|
22286
|
-
}))),
|
|
22297
|
+
}))), React.createElement(Col, {
|
|
22287
22298
|
span: 12
|
|
22288
|
-
},
|
|
22299
|
+
}, React.createElement(Form$1.Item, {
|
|
22289
22300
|
name: 'invoiceType',
|
|
22290
22301
|
label: "\u9009\u62E9\u7968\u7C7B",
|
|
22291
22302
|
rules: [{
|
|
22292
22303
|
required: true,
|
|
22293
22304
|
message: '选择票类必填'
|
|
22294
22305
|
}]
|
|
22295
|
-
},
|
|
22306
|
+
}, React.createElement(Select$1, {
|
|
22296
22307
|
size: 'large',
|
|
22297
22308
|
allowClear: true,
|
|
22298
22309
|
placeholder: "\u8BF7\u9009\u62E9\uFF08\u5FC5\u586B\u9879\uFF09",
|
|
22299
22310
|
disabled: disableds.indexOf('invoiceType') >= 0,
|
|
22300
22311
|
options: props.invoiceTypeOptions
|
|
22301
|
-
}))),
|
|
22312
|
+
}))), React.createElement(Col, {
|
|
22302
22313
|
span: 12
|
|
22303
|
-
},
|
|
22314
|
+
}, React.createElement(Form$1.Item, {
|
|
22304
22315
|
name: 'business',
|
|
22305
22316
|
label: "\u7279\u5B9A\u4E1A\u52A1"
|
|
22306
|
-
},
|
|
22317
|
+
}, React.createElement(Select$1, {
|
|
22307
22318
|
size: 'large',
|
|
22308
22319
|
allowClear: true,
|
|
22309
22320
|
placeholder: "\u8BF7\u9009\u62E9\uFF08\u975E\u5FC5\u586B\u9879\uFF09",
|
|
@@ -22348,11 +22359,11 @@ var useReselectInvoiceType = (function () {
|
|
|
22348
22359
|
return true;
|
|
22349
22360
|
}, [model, typeModalProps === null || typeModalProps === void 0 ? void 0 : typeModalProps.isDisabled]);
|
|
22350
22361
|
var button = React.useMemo(function () {
|
|
22351
|
-
if (isEnable === false) return
|
|
22352
|
-
return
|
|
22362
|
+
if (isEnable === false) return React.createElement(React.Fragment, null);
|
|
22363
|
+
return React.createElement(React.Fragment, null, React.createElement(Button$1, {
|
|
22353
22364
|
size: 'small',
|
|
22354
22365
|
onClick: onOpen
|
|
22355
|
-
}, "\u91CD\u9009\u53D1\u7968\u7C7B\u578B"),
|
|
22366
|
+
}, "\u91CD\u9009\u53D1\u7968\u7C7B\u578B"), React.createElement(InvoiceTypeModal, _objectSpread2(_objectSpread2({}, typeModalProps), {}, {
|
|
22356
22367
|
open: open,
|
|
22357
22368
|
onCancel: onClose,
|
|
22358
22369
|
onOk: onOk
|
|
@@ -22380,7 +22391,7 @@ var GoodsList$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
22380
22391
|
_createClass(GoodsList, [{
|
|
22381
22392
|
key: "render",
|
|
22382
22393
|
value: function render() {
|
|
22383
|
-
return
|
|
22394
|
+
return React.createElement(Main$3, _objectSpread2({}, this.props));
|
|
22384
22395
|
}
|
|
22385
22396
|
}]);
|
|
22386
22397
|
|
|
@@ -22581,20 +22592,20 @@ var Main$3 = decorator(Form.create())(function (props) {
|
|
|
22581
22592
|
};
|
|
22582
22593
|
}())();
|
|
22583
22594
|
}, [controller, props.isSwitchTax]);
|
|
22584
|
-
return
|
|
22595
|
+
return React.createElement("div", {
|
|
22585
22596
|
className: "kts-invoice-operate-goods-list-digtal",
|
|
22586
22597
|
onClick: function onClick(e) {
|
|
22587
22598
|
e.stopPropagation();
|
|
22588
22599
|
}
|
|
22589
|
-
},
|
|
22600
|
+
}, React.createElement("div", {
|
|
22590
22601
|
className: "kts-invoice-operate-goods-list-able"
|
|
22591
|
-
},
|
|
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", {
|
|
22592
22603
|
style: {
|
|
22593
22604
|
flex: 1
|
|
22594
22605
|
}
|
|
22595
|
-
}), props.menuExpansion, reselectInvoiceType.button, emptyRefill.button),
|
|
22606
|
+
}), props.menuExpansion, reselectInvoiceType.button, emptyRefill.button), React.createElement("div", {
|
|
22596
22607
|
className: classNames('kts-invoice-operate-goods-list-table-digtal')
|
|
22597
|
-
},
|
|
22608
|
+
}, React.createElement(TableVirtual$1, {
|
|
22598
22609
|
size: "small",
|
|
22599
22610
|
rowKey: "$index",
|
|
22600
22611
|
pagination: false,
|
|
@@ -22616,7 +22627,7 @@ var Main$3 = decorator(Form.create())(function (props) {
|
|
|
22616
22627
|
}
|
|
22617
22628
|
};
|
|
22618
22629
|
}
|
|
22619
|
-
})),
|
|
22630
|
+
})), React.createElement("div", null, React.createElement(Statistics$1, null)));
|
|
22620
22631
|
});
|
|
22621
22632
|
|
|
22622
22633
|
var ImportBuyerDrawer = (function () {
|
|
@@ -22650,7 +22661,7 @@ var ImportBuyerDrawer = (function () {
|
|
|
22650
22661
|
};
|
|
22651
22662
|
}())();
|
|
22652
22663
|
}, [controller]);
|
|
22653
|
-
return
|
|
22664
|
+
return React.createElement(Drawer, {
|
|
22654
22665
|
title: "\u8D2D\u65B9\u5217\u8868",
|
|
22655
22666
|
placement: "right",
|
|
22656
22667
|
// closable={false}
|
|
@@ -22658,7 +22669,7 @@ var ImportBuyerDrawer = (function () {
|
|
|
22658
22669
|
width: 983,
|
|
22659
22670
|
onClose: onClose,
|
|
22660
22671
|
visible: visible
|
|
22661
|
-
}, topExpand,
|
|
22672
|
+
}, topExpand, React.createElement(DrawerBody$1, null));
|
|
22662
22673
|
});
|
|
22663
22674
|
|
|
22664
22675
|
var DrawerBody$1 = function DrawerBody() {
|
|
@@ -22679,7 +22690,7 @@ var DrawerBody$1 = function DrawerBody() {
|
|
|
22679
22690
|
}
|
|
22680
22691
|
});
|
|
22681
22692
|
}, [controller]);
|
|
22682
|
-
return
|
|
22693
|
+
return React.createElement(Table$1, {
|
|
22683
22694
|
bordered: true,
|
|
22684
22695
|
size: "small",
|
|
22685
22696
|
columns: columns,
|
|
@@ -22779,7 +22790,7 @@ var ImportGoodsDrawer = (function () {
|
|
|
22779
22790
|
};
|
|
22780
22791
|
}())();
|
|
22781
22792
|
}, [controller]);
|
|
22782
|
-
return
|
|
22793
|
+
return React.createElement(Drawer, {
|
|
22783
22794
|
title: "\u5546\u54C1\u5217\u8868",
|
|
22784
22795
|
placement: "right",
|
|
22785
22796
|
// closable={false}
|
|
@@ -22787,11 +22798,11 @@ var ImportGoodsDrawer = (function () {
|
|
|
22787
22798
|
width: 983,
|
|
22788
22799
|
onClose: onClose,
|
|
22789
22800
|
visible: visible
|
|
22790
|
-
}, topExpand &&
|
|
22801
|
+
}, topExpand && React.createElement("div", {
|
|
22791
22802
|
style: {
|
|
22792
22803
|
marginBottom: 10
|
|
22793
22804
|
}
|
|
22794
|
-
}, topExpand),
|
|
22805
|
+
}, topExpand), React.createElement(DrawerBody$2, null));
|
|
22795
22806
|
});
|
|
22796
22807
|
|
|
22797
22808
|
var DrawerBody$2 = function DrawerBody() {
|
|
@@ -22813,7 +22824,7 @@ var DrawerBody$2 = function DrawerBody() {
|
|
|
22813
22824
|
}
|
|
22814
22825
|
});
|
|
22815
22826
|
}, [controller]);
|
|
22816
|
-
return
|
|
22827
|
+
return React.createElement(Table$1, {
|
|
22817
22828
|
bordered: true,
|
|
22818
22829
|
size: "small",
|
|
22819
22830
|
columns: columns,
|
|
@@ -23100,7 +23111,7 @@ var EndowCodeDrawer = (function () {
|
|
|
23100
23111
|
setDefaultValue(undefined);
|
|
23101
23112
|
}
|
|
23102
23113
|
}, [visible]);
|
|
23103
|
-
return
|
|
23114
|
+
return React.createElement(Drawer, {
|
|
23104
23115
|
title: "\u8D4B\u7801",
|
|
23105
23116
|
placement: "right",
|
|
23106
23117
|
destroyOnClose: true,
|
|
@@ -23108,7 +23119,7 @@ var EndowCodeDrawer = (function () {
|
|
|
23108
23119
|
width: 383,
|
|
23109
23120
|
onClose: onClose,
|
|
23110
23121
|
visible: visible
|
|
23111
|
-
}, defaultValue &&
|
|
23122
|
+
}, defaultValue && React.createElement(DrawerBody$3, {
|
|
23112
23123
|
defaultValue: defaultValue
|
|
23113
23124
|
}));
|
|
23114
23125
|
});
|
|
@@ -23248,7 +23259,7 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23248
23259
|
};
|
|
23249
23260
|
}());
|
|
23250
23261
|
}, [actions, dataSource, readOnlyTaxRate]);
|
|
23251
|
-
return
|
|
23262
|
+
return React.createElement(Select, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
23252
23263
|
showSearch: true,
|
|
23253
23264
|
showArrow: false,
|
|
23254
23265
|
notFoundContent: null,
|
|
@@ -23256,7 +23267,7 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23256
23267
|
onSearch: onSearch,
|
|
23257
23268
|
onChange: onChange
|
|
23258
23269
|
}), dataSource.map(function (e) {
|
|
23259
|
-
return
|
|
23270
|
+
return React.createElement(Select.Option, {
|
|
23260
23271
|
key: e.value,
|
|
23261
23272
|
value: e.value
|
|
23262
23273
|
}, e.label);
|
|
@@ -23286,14 +23297,14 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23286
23297
|
|
|
23287
23298
|
|
|
23288
23299
|
var createTreeNode = React.useCallback(function () {
|
|
23289
|
-
if (!list) return
|
|
23300
|
+
if (!list) return React.createElement(React.Fragment, null);
|
|
23290
23301
|
return ctn(list);
|
|
23291
23302
|
|
|
23292
23303
|
function title(label) {
|
|
23293
23304
|
if (!filter) return label;
|
|
23294
23305
|
label = (filter.taxCategoryCode ? label.split(new RegExp(filter.taxCategoryCode, 'g')) : [label]).join("<span style=\"color: #1890ff;\">".concat(filter.taxCategoryCode, "</span>"));
|
|
23295
23306
|
label = (filter.val ? label.split(new RegExp(filter.val, 'g')) : [label]).join("<span style=\"color: #1890ff;\">".concat(filter.val, "</span>"));
|
|
23296
|
-
return
|
|
23307
|
+
return React.createElement("span", {
|
|
23297
23308
|
dangerouslySetInnerHTML: {
|
|
23298
23309
|
__html: label
|
|
23299
23310
|
}
|
|
@@ -23302,11 +23313,11 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23302
23313
|
|
|
23303
23314
|
function ctn(l) {
|
|
23304
23315
|
var p = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '0';
|
|
23305
|
-
if (!l || !l.length) return [
|
|
23316
|
+
if (!l || !l.length) return [React.createElement(React.Fragment, null)];
|
|
23306
23317
|
return l.filter(function (e) {
|
|
23307
23318
|
return e.pid === p;
|
|
23308
23319
|
}).map(function (e) {
|
|
23309
|
-
return
|
|
23320
|
+
return React.createElement(TreeNode, {
|
|
23310
23321
|
title: title(e.label),
|
|
23311
23322
|
key: e.id
|
|
23312
23323
|
}, ctn(l, e.id));
|
|
@@ -23419,46 +23430,46 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23419
23430
|
setList([]);
|
|
23420
23431
|
}
|
|
23421
23432
|
}, [visible]);
|
|
23422
|
-
return
|
|
23433
|
+
return React.createElement(React.Fragment, null, React.createElement(Input, {
|
|
23423
23434
|
readOnly: true,
|
|
23424
23435
|
value: props.value,
|
|
23425
|
-
addonAfter:
|
|
23436
|
+
addonAfter: React.createElement(Button, {
|
|
23426
23437
|
size: "small",
|
|
23427
23438
|
type: "link",
|
|
23428
23439
|
onClick: function onClick() {
|
|
23429
23440
|
setVisible(true);
|
|
23430
23441
|
}
|
|
23431
23442
|
}, "\u70B9\u51FB\u9009\u62E9")
|
|
23432
|
-
}),
|
|
23443
|
+
}), React.createElement(Drawer, {
|
|
23433
23444
|
title: "\u7A0E\u6536\u5206\u7C7B\u7F16\u7801",
|
|
23434
23445
|
visible: visible,
|
|
23435
23446
|
width: 500,
|
|
23436
23447
|
onClose: function onClose() {
|
|
23437
23448
|
setVisible(false);
|
|
23438
23449
|
}
|
|
23439
|
-
},
|
|
23450
|
+
}, React.createElement(Form, {
|
|
23440
23451
|
key: "".concat(visible)
|
|
23441
|
-
},
|
|
23452
|
+
}, React.createElement(Form.Item, {
|
|
23442
23453
|
label: "\u4EA7\u54C1\u6216\u670D\u52A1\u7B80\u79F0"
|
|
23443
|
-
},
|
|
23454
|
+
}, React.createElement(Input, {
|
|
23444
23455
|
onChange: function onChange(e) {
|
|
23445
23456
|
setFilter(_objectSpread2(_objectSpread2({}, filter), {}, {
|
|
23446
23457
|
val: e.target.value
|
|
23447
23458
|
}));
|
|
23448
23459
|
}
|
|
23449
|
-
})),
|
|
23460
|
+
})), React.createElement(Form.Item, {
|
|
23450
23461
|
label: "\u7A0E\u6536\u5206\u7C7B\u7F16\u7801"
|
|
23451
|
-
},
|
|
23462
|
+
}, React.createElement(Input, {
|
|
23452
23463
|
onChange: function onChange(e) {
|
|
23453
23464
|
setFilter(_objectSpread2(_objectSpread2({}, filter), {}, {
|
|
23454
23465
|
taxCategoryCode: e.target.value
|
|
23455
23466
|
}));
|
|
23456
23467
|
}
|
|
23457
|
-
}))), list && list.length > 0 ?
|
|
23468
|
+
}))), list && list.length > 0 ? React.createElement(Tree, {
|
|
23458
23469
|
defaultExpandAll: true,
|
|
23459
23470
|
selectedKeys: [],
|
|
23460
23471
|
onSelect: onSelect
|
|
23461
|
-
}, createTreeNode()) :
|
|
23472
|
+
}, createTreeNode()) : React.createElement("span", {
|
|
23462
23473
|
style: {
|
|
23463
23474
|
color: '#00000073'
|
|
23464
23475
|
}
|
|
@@ -23664,11 +23675,11 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23664
23675
|
return data;
|
|
23665
23676
|
};
|
|
23666
23677
|
|
|
23667
|
-
return
|
|
23678
|
+
return React.createElement(React.Fragment, null, React.createElement(Input, {
|
|
23668
23679
|
readOnly: true,
|
|
23669
23680
|
onClick: onClick,
|
|
23670
23681
|
value: props.value
|
|
23671
|
-
}),
|
|
23682
|
+
}), React.createElement(TaxClassificationModal, {
|
|
23672
23683
|
list: list,
|
|
23673
23684
|
open: open,
|
|
23674
23685
|
onSelect: onSelect,
|
|
@@ -23787,14 +23798,14 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23787
23798
|
React.useEffect(function () {
|
|
23788
23799
|
if (controller.getTaxCategoryCodeList) controller.getTaxCategoryCodeList();
|
|
23789
23800
|
}, [controller]);
|
|
23790
|
-
return
|
|
23801
|
+
return React.createElement(SchemaForm, {
|
|
23791
23802
|
actions: actions,
|
|
23792
23803
|
previewPlaceholder: " ",
|
|
23793
23804
|
components: _objectSpread2(_objectSpread2({}, components), {}, {
|
|
23794
23805
|
showSearch: !!controller.state.goodsListState.endowCode.onLoadTaxClassificationCode ? ShowSearch3 : ShowSearch
|
|
23795
23806
|
}),
|
|
23796
23807
|
effects: effects
|
|
23797
|
-
},
|
|
23808
|
+
}, React.createElement(FormButtonGroup, null, React.createElement(SchemaMarkupField, {
|
|
23798
23809
|
name: "taxClassificationCode",
|
|
23799
23810
|
type: "showSearch",
|
|
23800
23811
|
title: "\u7A0E\u6536\u5206\u7C7B\u7F16\u7801",
|
|
@@ -23804,13 +23815,13 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23804
23815
|
message: '请选择税收分类编码',
|
|
23805
23816
|
required: true
|
|
23806
23817
|
}]
|
|
23807
|
-
}),
|
|
23818
|
+
}), React.createElement(SchemaMarkupField, {
|
|
23808
23819
|
name: "shorthand",
|
|
23809
23820
|
type: "string",
|
|
23810
23821
|
readOnly: true,
|
|
23811
23822
|
default: defaultValue === null || defaultValue === void 0 ? void 0 : defaultValue.shorthand,
|
|
23812
23823
|
title: "\u5546\u54C1\u548C\u670D\u52A1\u5206\u7C7B\u7B80\u79F0"
|
|
23813
|
-
}),
|
|
23824
|
+
}), React.createElement(SchemaMarkupField, {
|
|
23814
23825
|
name: "taxRate",
|
|
23815
23826
|
type: "string",
|
|
23816
23827
|
title: "\u7A0E\u7387",
|
|
@@ -23823,7 +23834,7 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23823
23834
|
message: '请选择税率',
|
|
23824
23835
|
required: true
|
|
23825
23836
|
}]
|
|
23826
|
-
}), taxRate === 0 && isTaxFreeTypeNeeded &&
|
|
23837
|
+
}), taxRate === 0 && isTaxFreeTypeNeeded && React.createElement(SchemaMarkupField, {
|
|
23827
23838
|
name: "taxFreeType",
|
|
23828
23839
|
type: "string",
|
|
23829
23840
|
title: "\u514D\u7A0E\u7C7B\u578B",
|
|
@@ -23836,7 +23847,7 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23836
23847
|
message: '请选择免税类型',
|
|
23837
23848
|
required: true
|
|
23838
23849
|
}]
|
|
23839
|
-
}),
|
|
23850
|
+
}), React.createElement(SchemaMarkupField, {
|
|
23840
23851
|
name: "favouredPolicyMark",
|
|
23841
23852
|
type: "number",
|
|
23842
23853
|
title: "\u662F\u5426\u4EAB\u53D7\u4F18\u60E0\u653F\u7B56",
|
|
@@ -23855,7 +23866,7 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23855
23866
|
message: '请选择是否享受优惠政策',
|
|
23856
23867
|
required: true
|
|
23857
23868
|
}]
|
|
23858
|
-
}), favouredPolicyMark === 1 &&
|
|
23869
|
+
}), favouredPolicyMark === 1 && React.createElement(SchemaMarkupField, {
|
|
23859
23870
|
name: "favouredPolicyName",
|
|
23860
23871
|
type: "string",
|
|
23861
23872
|
title: "\u4F18\u60E0\u653F\u7B56\u7C7B\u578B",
|
|
@@ -23868,14 +23879,14 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23868
23879
|
message: '请选择是否享受优惠政策',
|
|
23869
23880
|
required: true
|
|
23870
23881
|
}]
|
|
23871
|
-
})),
|
|
23882
|
+
})), React.createElement("span", {
|
|
23872
23883
|
className: "kts-invoice-operate-goods-endow-code-button-list"
|
|
23873
|
-
},
|
|
23884
|
+
}, React.createElement(Button, {
|
|
23874
23885
|
onClick: function onClick() {
|
|
23875
23886
|
actions.submit(onSubmit);
|
|
23876
23887
|
},
|
|
23877
23888
|
type: "primary"
|
|
23878
|
-
}, "\u786E\u5B9A"),
|
|
23889
|
+
}, "\u786E\u5B9A"), React.createElement(Button, {
|
|
23879
23890
|
onClick: function onClick() {
|
|
23880
23891
|
controller.pipeline( /*#__PURE__*/function () {
|
|
23881
23892
|
var _ref17 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee17(s) {
|
|
@@ -24035,53 +24046,53 @@ function AddComparisonDrawer() {
|
|
|
24035
24046
|
}));
|
|
24036
24047
|
}
|
|
24037
24048
|
}, [good]);
|
|
24038
|
-
return
|
|
24049
|
+
return React.createElement(Drawer$1, {
|
|
24039
24050
|
width: 500,
|
|
24040
24051
|
onClose: onClose,
|
|
24041
24052
|
placement: "right",
|
|
24042
24053
|
title: "\u5546\u54C1\u6620\u5C04",
|
|
24043
24054
|
visible: !!good,
|
|
24044
|
-
footer:
|
|
24055
|
+
footer: React.createElement("div", {
|
|
24045
24056
|
style: {
|
|
24046
24057
|
display: 'flex',
|
|
24047
24058
|
justifyContent: 'flex-end',
|
|
24048
24059
|
gap: 10
|
|
24049
24060
|
}
|
|
24050
|
-
},
|
|
24061
|
+
}, React.createElement(Button, {
|
|
24051
24062
|
type: "primary",
|
|
24052
24063
|
onClick: onSubmit
|
|
24053
|
-
}, "\u63D0\u4EA4"),
|
|
24064
|
+
}, "\u63D0\u4EA4"), React.createElement(Button, {
|
|
24054
24065
|
onClick: onClose
|
|
24055
24066
|
}, "\u53D6\u6D88"))
|
|
24056
|
-
}, !!good &&
|
|
24067
|
+
}, !!good && React.createElement(Form$1, {
|
|
24057
24068
|
layout: "vertical",
|
|
24058
24069
|
style: {
|
|
24059
24070
|
flex: 1
|
|
24060
24071
|
},
|
|
24061
24072
|
form: form
|
|
24062
|
-
},
|
|
24073
|
+
}, React.createElement(Row$1, {
|
|
24063
24074
|
gutter: [8, 8]
|
|
24064
|
-
},
|
|
24075
|
+
}, React.createElement(Col$1, {
|
|
24065
24076
|
span: 12
|
|
24066
|
-
},
|
|
24077
|
+
}, React.createElement(Form$1.Item, {
|
|
24067
24078
|
name: "itemNameSelf",
|
|
24068
24079
|
label: "\u6211\u65B9\u5546\u54C1\u540D\u79F0"
|
|
24069
|
-
},
|
|
24080
|
+
}, React.createElement(Input, null))), React.createElement(Col$1, {
|
|
24070
24081
|
span: 12
|
|
24071
|
-
},
|
|
24082
|
+
}, React.createElement(Form$1.Item, {
|
|
24072
24083
|
name: "itemName",
|
|
24073
24084
|
label: "\u5BF9\u65B9\u5546\u54C1\u540D\u79F0"
|
|
24074
|
-
},
|
|
24085
|
+
}, React.createElement(Input, null))), React.createElement(Col$1, {
|
|
24075
24086
|
span: 12
|
|
24076
|
-
},
|
|
24087
|
+
}, React.createElement(Form$1.Item, {
|
|
24077
24088
|
name: 'itemModelNameSelf',
|
|
24078
24089
|
label: "\u6211\u65B9\u89C4\u683C\u578B\u53F7"
|
|
24079
|
-
},
|
|
24090
|
+
}, React.createElement(Input, null))), React.createElement(Col$1, {
|
|
24080
24091
|
span: 12
|
|
24081
|
-
},
|
|
24092
|
+
}, React.createElement(Form$1.Item, {
|
|
24082
24093
|
name: "itemModelName",
|
|
24083
24094
|
label: "\u5BF9\u65B9\u89C4\u683C\u578B\u53F7"
|
|
24084
|
-
},
|
|
24095
|
+
}, React.createElement(Input, null))))));
|
|
24085
24096
|
} // function validateFields(form: WrappedFormUtils<any>) {
|
|
24086
24097
|
// return new Promise<{ err: any, values: any }>(resolve => {
|
|
24087
24098
|
// form.validateFields((err, values) => {
|
|
@@ -24092,7 +24103,7 @@ function AddComparisonDrawer() {
|
|
|
24092
24103
|
|
|
24093
24104
|
/** 发票组件的上下文 */
|
|
24094
24105
|
|
|
24095
|
-
var InvoiceContext =
|
|
24106
|
+
var InvoiceContext = React.createContext(undefined);
|
|
24096
24107
|
|
|
24097
24108
|
var Invoice = /*#__PURE__*/function (_React$PureComponent) {
|
|
24098
24109
|
_inherits(Invoice, _React$PureComponent);
|
|
@@ -24137,9 +24148,9 @@ var Invoice = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
24137
24148
|
/** 获取控制器钩子 */
|
|
24138
24149
|
function render() {
|
|
24139
24150
|
if (this.props.invoiceType === 'digtal') {
|
|
24140
|
-
return
|
|
24151
|
+
return React.createElement(Digtal, _objectSpread2({}, this.props));
|
|
24141
24152
|
} else {
|
|
24142
|
-
return
|
|
24153
|
+
return React.createElement(Main$4, _objectSpread2({}, this.props));
|
|
24143
24154
|
}
|
|
24144
24155
|
}
|
|
24145
24156
|
}]);
|
|
@@ -24181,10 +24192,10 @@ var Main$4 = function Main(props) {
|
|
|
24181
24192
|
React.useEffect(function () {
|
|
24182
24193
|
setKey(key + 1);
|
|
24183
24194
|
}, [controller]);
|
|
24184
|
-
return
|
|
24195
|
+
return React.createElement(InvoiceContext.Provider, {
|
|
24185
24196
|
key: key,
|
|
24186
24197
|
value: controller
|
|
24187
|
-
},
|
|
24198
|
+
}, React.createElement("div", {
|
|
24188
24199
|
className: "kts-invoice-operate",
|
|
24189
24200
|
ref: controller.pipeline( /*#__PURE__*/function () {
|
|
24190
24201
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(s, e) {
|
|
@@ -24206,17 +24217,17 @@ var Main$4 = function Main(props) {
|
|
|
24206
24217
|
return _ref.apply(this, arguments);
|
|
24207
24218
|
};
|
|
24208
24219
|
}())
|
|
24209
|
-
}, props.invoiceHeader ||
|
|
24220
|
+
}, props.invoiceHeader || React.createElement(InvoiceHeader, null)
|
|
24210
24221
|
/** 发票头 */
|
|
24211
|
-
, props.buyer ||
|
|
24222
|
+
, props.buyer || React.createElement(Buyer$1, null)
|
|
24212
24223
|
/** 购买方 */
|
|
24213
|
-
, props.goodsList ||
|
|
24224
|
+
, props.goodsList || React.createElement(GoodsList, null)
|
|
24214
24225
|
/** 货物列表 */
|
|
24215
|
-
, props.seller ||
|
|
24226
|
+
, props.seller || React.createElement(Buyer, null)
|
|
24216
24227
|
/** 销售方 */
|
|
24217
|
-
, props.sign ||
|
|
24228
|
+
, props.sign || React.createElement(Sign, null)
|
|
24218
24229
|
/** 落款 */
|
|
24219
|
-
, props.footExpand),
|
|
24230
|
+
, props.footExpand), React.createElement(ImportBuyerDrawer, null), React.createElement(ImportGoodsDrawer, null), React.createElement(EndowCodeDrawer, null), React.createElement(AddComparisonDrawer, null));
|
|
24220
24231
|
};
|
|
24221
24232
|
/** 数电 */
|
|
24222
24233
|
|
|
@@ -24235,10 +24246,10 @@ var Digtal = function Digtal(props) {
|
|
|
24235
24246
|
React.useEffect(function () {
|
|
24236
24247
|
setKey(key + 1);
|
|
24237
24248
|
}, [controller]);
|
|
24238
|
-
return
|
|
24249
|
+
return React.createElement(InvoiceContext.Provider, {
|
|
24239
24250
|
key: key,
|
|
24240
24251
|
value: controller
|
|
24241
|
-
},
|
|
24252
|
+
}, React.createElement("div", {
|
|
24242
24253
|
className: "kts-invoice-operate-digtal",
|
|
24243
24254
|
ref: controller.pipeline( /*#__PURE__*/function () {
|
|
24244
24255
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(s, e) {
|
|
@@ -24260,17 +24271,17 @@ var Digtal = function Digtal(props) {
|
|
|
24260
24271
|
return _ref2.apply(this, arguments);
|
|
24261
24272
|
};
|
|
24262
24273
|
}())
|
|
24263
|
-
}, props.invoiceHeader ||
|
|
24274
|
+
}, props.invoiceHeader || React.createElement(InvoiceHeaderDigtal, null)
|
|
24264
24275
|
/** 发票头 */
|
|
24265
|
-
,
|
|
24276
|
+
, React.createElement("div", {
|
|
24266
24277
|
className: 'kts-invoice-operate-digtal-cont'
|
|
24267
|
-
}, props.stakeholder ||
|
|
24278
|
+
}, props.stakeholder || React.createElement(Stakeholder$1, null)
|
|
24268
24279
|
/** 干系人 */
|
|
24269
|
-
, props.goodsList ||
|
|
24280
|
+
, props.goodsList || React.createElement(GoodsList$1
|
|
24270
24281
|
/** 货物列表 */
|
|
24271
|
-
, null)), props.sign ||
|
|
24282
|
+
, null)), props.sign || React.createElement(SignDigtal, null)
|
|
24272
24283
|
/** 落款 */
|
|
24273
|
-
),
|
|
24284
|
+
), React.createElement(ImportGoodsDrawer, null), React.createElement(EndowCodeDrawer, null));
|
|
24274
24285
|
};
|
|
24275
24286
|
|
|
24276
24287
|
function TaxClassificationModal(props) {
|
|
@@ -24311,26 +24322,26 @@ function TaxClassificationModal(props) {
|
|
|
24311
24322
|
}, 500);
|
|
24312
24323
|
}
|
|
24313
24324
|
}, [form, props.open]);
|
|
24314
|
-
return
|
|
24325
|
+
return React.createElement(Drawer$1, {
|
|
24315
24326
|
title: "\u5546\u54C1\u548C\u670D\u52A1\u7A0E\u6536\u5206\u7C7B\u7F16\u7801",
|
|
24316
24327
|
placement: "right",
|
|
24317
24328
|
open: props.open,
|
|
24318
24329
|
width: 503,
|
|
24319
24330
|
onClose: props.onCancel
|
|
24320
|
-
},
|
|
24331
|
+
}, React.createElement(Form$1, {
|
|
24321
24332
|
form: form
|
|
24322
|
-
},
|
|
24333
|
+
}, React.createElement(Form$1.Item, {
|
|
24323
24334
|
name: 'search'
|
|
24324
|
-
},
|
|
24335
|
+
}, React.createElement(Input$1, {
|
|
24325
24336
|
placeholder: "\u8BF7\u8F93\u5165\u7A0E\u6536\u5206\u7C7B\u7F16\u7801\u3001\u7A0E\u6536\u5206\u7C7B\u540D\u79F0\u8FDB\u884C\u68C0\u7D22",
|
|
24326
24337
|
onChange: searchTax
|
|
24327
|
-
})),
|
|
24338
|
+
})), React.createElement(Form$1.Item, {
|
|
24328
24339
|
name: 'tree'
|
|
24329
|
-
},
|
|
24340
|
+
}, React.createElement(Tree$1, {
|
|
24330
24341
|
onSelect: props.onSelect,
|
|
24331
24342
|
loadData: props.onLoad,
|
|
24332
24343
|
treeData: props.list,
|
|
24333
|
-
switcherIcon:
|
|
24344
|
+
switcherIcon: React.createElement(Icon$1, {
|
|
24334
24345
|
type: "down"
|
|
24335
24346
|
})
|
|
24336
24347
|
}))));
|