kts-component-invoice-operate 3.2.135 → 3.2.136
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 +566 -568
- package/dist/index.js +566 -568
- 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 +19 -20
- package/src/Invoice/Invoice-digtal/_test/prefab/index.tsx +150 -150
- package/src/Invoice/Invoice-digtal/_test/readOnly/index.tsx +42 -42
- package/src/Invoice/Invoice-digtal/_test/stakeholder/index.tsx +12 -12
- package/src/Invoice/Invoice-digtal/_test/typeSelection/index.tsx +29 -29
- package/src/Invoice/Invoice-digtal/index.md +30 -30
- package/src/Invoice/InvoiceController/InvoiceControllerForm/index.ts +95 -95
- package/src/Invoice/InvoiceController/InvoiceControllerState/AutoComplete/index.ts +20 -20
- package/src/Invoice/InvoiceController/InvoiceControllerState/BuyerState/index.tsx +88 -88
- package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/Drag/index.ts +15 -15
- package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/EndowCode/index.tsx +104 -104
- package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/IColumnsReplenish/index.ts +10 -10
- package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/IGood/index.ts +78 -78
- package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/ImportGoods/index.ts +81 -81
- package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/LineAttributeType/index.ts +7 -7
- package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/ProductComparison/index.ts +9 -9
- package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/index.ts +117 -117
- package/src/Invoice/InvoiceController/InvoiceControllerState/Stakeholder/index.ts +13 -13
- package/src/Invoice/InvoiceController/InvoiceControllerState/index.ts +65 -65
- package/src/Invoice/InvoiceController/fns/addGood.ts +11 -11
- package/src/Invoice/InvoiceController/fns/addGoodDiscount.ts +126 -126
- package/src/Invoice/InvoiceController/fns/addGoodDiscountV2.ts +86 -86
- package/src/Invoice/InvoiceController/fns/delGood.ts +41 -41
- package/src/Invoice/InvoiceController/fns/getGoodsSearch.ts +26 -26
- package/src/Invoice/InvoiceController/fns/importGoodsDrawer.ts +79 -79
- package/src/Invoice/InvoiceController/fns/itemBlur.ts +40 -40
- package/src/Invoice/InvoiceController/fns/mergeDetails.ts +201 -201
- package/src/Invoice/InvoiceController/fns/mergeDiscount.ts +35 -35
- package/src/Invoice/InvoiceController/fns/saveEditGood.ts +24 -24
- package/src/Invoice/InvoiceController/fns/setEditGood.ts +16 -16
- package/src/Invoice/InvoiceController/fns/setGoods.ts +10 -10
- package/src/Invoice/InvoiceController/fns/updateInvoiceNo.ts +8 -8
- package/src/Invoice/InvoiceController/index.ts +81 -81
- package/src/Invoice/_test/buyerNameSearch/index.tsx +42 -42
- package/src/Invoice/_test/deduction/index.tsx +935 -935
- package/src/Invoice/_test/draft/index.tsx +40 -40
- package/src/Invoice/_test/easiest/index.tsx +5 -5
- package/src/Invoice/_test/endowCode/index.tsx +1158 -1158
- package/src/Invoice/_test/goodsMenuExpand/index.tsx +32 -32
- package/src/Invoice/_test/importBuyer/index.tsx +74 -74
- package/src/Invoice/_test/importGoods/index.tsx +1197 -1197
- package/src/Invoice/_test/invoiceType/index.tsx +59 -59
- package/src/Invoice/_test/isInvoiceNo/index.tsx +12 -12
- package/src/Invoice/_test/replaceHead/index.tsx +22 -22
- package/src/Invoice/_test/retrieveData/index.tsx +22 -22
- package/src/Invoice/_test/seller/index.tsx +28 -28
- package/src/Invoice/_test/setDataSource/index.tsx +73 -73
- package/src/Invoice/_test/unit/index.tsx +19 -19
- package/src/Invoice/index.less +29 -29
- package/src/Invoice/index.md +53 -53
- package/src/Invoice/index.tsx +171 -171
- package/src/Invoice/tools/calculate/index.ts +132 -132
- package/src/Invoice/tools/coolingFn/index.ts +17 -17
- package/src/Invoice/tools/evaluate/index.ts +7 -7
- package/src/Invoice/tools/idGenerator/index.ts +2 -2
- package/src/Invoice/tools/itemName/index.ts +55 -55
- package/src/Invoice/tools/lazyFn/index.ts +19 -19
- package/src/Invoice/tools/mounting/index.ts +13 -13
- package/src/Invoice/tools/strringFn/index.ts +40 -40
- package/src/Invoice/tools/useToGenerateId/index.ts +8 -8
- package/src/Invoice/tools/utils/index.ts +1 -1
- package/src/Invoice/tools/utils/money/index.ts +20 -20
- package/src/Invoice/ui/default/AddComparisonDrawer/index.tsx +149 -149
- package/src/Invoice/ui/default/Buyer/index.less +219 -219
- package/src/Invoice/ui/default/Buyer/index.tsx +114 -114
- package/src/Invoice/ui/default/Buyer/ui/BuyerNameInput/index.tsx +166 -166
- package/src/Invoice/ui/default/Buyer/ui/ImportBuyerButton/index.tsx +21 -21
- package/src/Invoice/ui/default/EndowCodeDrawer/index.less +8 -8
- package/src/Invoice/ui/default/EndowCodeDrawer/index.tsx +550 -550
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/autoFillFn/index.ts +632 -632
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/index.tsx +694 -694
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/Drag/index.less +20 -20
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/Drag/index.tsx +205 -205
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/ItemCodeInput/index.less +18 -18
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/ItemCodeInput/index.tsx +47 -47
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/ItemNameInput/index.less +17 -17
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/ItemNameInput/index.tsx +88 -88
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/RowEditButton/index.tsx +30 -30
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/RowMenu/hook/_useAddComparison/index.tsx +43 -43
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/RowMenu/hook/useAddDiscount/index.tsx +118 -118
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/RowMenu/hook/useDelItem/index.tsx +41 -41
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/RowMenu/hook/useEndowCode/index.tsx +25 -25
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/RowMenu/index.less +13 -13
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/RowMenu/index.tsx +98 -98
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/RowSaveButton/index.tsx +14 -14
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/TitleText/index.tsx +20 -20
- package/src/Invoice/ui/default/GoodsList/hook/useDeduction/index.tsx +24 -24
- package/src/Invoice/ui/default/GoodsList/hook/useOnRow/index.tsx +39 -39
- package/src/Invoice/ui/default/GoodsList/hook/useRowSelection/index.tsx +114 -114
- package/src/Invoice/ui/default/GoodsList/hook/useWindowClick/index.tsx +23 -23
- package/src/Invoice/ui/default/GoodsList/index.less +179 -179
- package/src/Invoice/ui/default/GoodsList/index.tsx +205 -205
- package/src/Invoice/ui/default/GoodsList/ui/AddRowButton/index.tsx +65 -65
- package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/hooks/useAddDiscountRowButton/index.less +21 -21
- package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/hooks/useAddDiscountRowButton/index.tsx +244 -244
- package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/hooks/useCommodityComparisonButton/index.tsx +75 -75
- package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/hooks/useDelRowButton/index.tsx +69 -69
- package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/hooks/useEndowCodeButton/index.tsx +65 -65
- package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/hooks/useMergeDetails/index.tsx +91 -91
- package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/hooks/useMergeDiscount/index.tsx +36 -36
- package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/hooks/useSalesDiscount/index.tsx +109 -109
- package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/hooks/useSalesGifts/index.tsx +94 -94
- package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/index.tsx +37 -37
- package/src/Invoice/ui/default/GoodsList/ui/DescribeSwitch/index.tsx +36 -36
- package/src/Invoice/ui/default/GoodsList/ui/Search/index.less +10 -10
- package/src/Invoice/ui/default/GoodsList/ui/Search/index.tsx +52 -52
- package/src/Invoice/ui/default/GoodsList/ui/Statistics/index.less +18 -18
- package/src/Invoice/ui/default/GoodsList/ui/Statistics/index.tsx +114 -114
- package/src/Invoice/ui/default/GoodsList/ui/TableRow/index.less +28 -28
- package/src/Invoice/ui/default/GoodsList/ui/TableRow/index.tsx +57 -57
- package/src/Invoice/ui/default/GoodsList/ui/TableVirtual/index.less +38 -38
- package/src/Invoice/ui/default/GoodsList/ui/TableVirtual/index.tsx +108 -108
- package/src/Invoice/ui/default/GoodsList/ui/TableVirtual.o/index.less +44 -44
- package/src/Invoice/ui/default/GoodsList/ui/TableVirtual.o/index.tsx +96 -96
- package/src/Invoice/ui/default/GoodsList/ui/TaxIncludedSwitch/index.tsx +31 -31
- package/src/Invoice/ui/default/ImportBuyerDrawer/index.tsx +75 -75
- package/src/Invoice/ui/default/ImportGoodsDrawer/index.tsx +198 -198
- package/src/Invoice/ui/default/InvoiceHeader/index.less +68 -68
- package/src/Invoice/ui/default/InvoiceHeader/index.tsx +246 -246
- package/src/Invoice/ui/default/Seller/index.less +113 -113
- package/src/Invoice/ui/default/Seller/index.tsx +98 -98
- package/src/Invoice/ui/default/Sign/index.less +14 -14
- package/src/Invoice/ui/default/Sign/index.tsx +71 -71
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/autoFillFn/index.ts +624 -624
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/index.tsx +654 -654
- 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 +340 -340
- package/src/Invoice/ui/digtal/GoodsList/ui/BulkMenu/hooks/useAddDiscountRowButton/svg/add.svg +11 -11
- package/src/Invoice/ui/digtal/GoodsList/ui/BulkMenu/hooks/useCommodityComparisonButton/index.tsx +75 -75
- package/src/Invoice/ui/digtal/GoodsList/ui/BulkMenu/hooks/useDelRowButton/index.tsx +50 -50
- package/src/Invoice/ui/digtal/GoodsList/ui/BulkMenu/hooks/useEmptyRefill/index.tsx +37 -37
- package/src/Invoice/ui/digtal/GoodsList/ui/BulkMenu/hooks/useEndowCodeButton/index.tsx +82 -82
- package/src/Invoice/ui/digtal/GoodsList/ui/BulkMenu/hooks/useReselectInvoiceType/index.tsx +57 -57
- package/src/Invoice/ui/digtal/GoodsList/ui/DescribeSwitch/index.tsx +36 -36
- package/src/Invoice/ui/digtal/GoodsList/ui/Search/index.less +11 -11
- package/src/Invoice/ui/digtal/GoodsList/ui/Search/index.tsx +50 -50
- package/src/Invoice/ui/digtal/GoodsList/ui/Statistics/index.less +53 -53
- package/src/Invoice/ui/digtal/GoodsList/ui/Statistics/index.tsx +98 -98
- package/src/Invoice/ui/digtal/GoodsList/ui/Statistics/svg/fork.svg +11 -11
- package/src/Invoice/ui/digtal/GoodsList/ui/TableRow/index.less +28 -28
- package/src/Invoice/ui/digtal/GoodsList/ui/TableRow/index.tsx +53 -53
- package/src/Invoice/ui/digtal/GoodsList/ui/TableVirtual/index.less +38 -38
- package/src/Invoice/ui/digtal/GoodsList/ui/TableVirtual/index.tsx +108 -108
- package/src/Invoice/ui/digtal/GoodsList/ui/TableVirtual.o/index.less +44 -44
- package/src/Invoice/ui/digtal/GoodsList/ui/TableVirtual.o/index.tsx +96 -96
- package/src/Invoice/ui/digtal/GoodsList/ui/TaxIncludedSwitch/index.tsx +31 -31
- package/src/Invoice/ui/digtal/InvoiceHeader/index.less +57 -57
- package/src/Invoice/ui/digtal/InvoiceHeader/index.tsx +77 -77
- package/src/Invoice/ui/digtal/Sign/index.less +48 -48
- package/src/Invoice/ui/digtal/Sign/index.tsx +99 -99
- package/src/Invoice/ui/digtal/Stakeholder/index.less +99 -99
- package/src/Invoice/ui/digtal/Stakeholder/index.tsx +395 -395
- package/src/Invoice/ui/digtal/Stakeholder/svg/arrowDown.svg +2 -2
- package/src/Invoice/ui/digtal/Stakeholder/svg/arrowUp.svg +2 -2
- package/src/Invoice/ui/digtal/Stakeholder/svg/plus.svg +11 -11
- package/src/InvoiceTypeModal/_test/easiest/index.tsx +31 -31
- package/src/InvoiceTypeModal/index.less +7 -7
- package/src/InvoiceTypeModal/index.md +5 -5
- package/src/InvoiceTypeModal/index.tsx +153 -153
- package/src/TaxClassificationCodeModal/_test/easiest/index.tsx +177 -177
- package/src/TaxClassificationCodeModal/index.md +6 -6
- package/src/TaxClassificationCodeModal/index.tsx +74 -74
- package/src/index.ts +12 -12
- package/tsconfig.json +31 -31
- package/typings.d.ts +3 -3
- package/yarn.e.lock +14331 -14331
package/dist/index.esm.js
CHANGED
|
@@ -9840,7 +9840,7 @@ var InvoiceHeader = decorator(Form.create())(function (props) {
|
|
|
9840
9840
|
render: function render(form) {
|
|
9841
9841
|
return form.getFieldDecorator('code', {
|
|
9842
9842
|
initialValue: props.defaultCode
|
|
9843
|
-
})(
|
|
9843
|
+
})(React.createElement(FormSpanString, null));
|
|
9844
9844
|
}
|
|
9845
9845
|
});
|
|
9846
9846
|
}
|
|
@@ -9853,7 +9853,7 @@ var InvoiceHeader = decorator(Form.create())(function (props) {
|
|
|
9853
9853
|
render: function render(form) {
|
|
9854
9854
|
return form.getFieldDecorator('no', {
|
|
9855
9855
|
initialValue: props.defaultNo
|
|
9856
|
-
})(
|
|
9856
|
+
})(React.createElement(FormSpanString, null));
|
|
9857
9857
|
}
|
|
9858
9858
|
});
|
|
9859
9859
|
}
|
|
@@ -9864,7 +9864,7 @@ var InvoiceHeader = decorator(Form.create())(function (props) {
|
|
|
9864
9864
|
render: function render(form) {
|
|
9865
9865
|
return form.getFieldDecorator('invoicingDate', {
|
|
9866
9866
|
initialValue: props.defaultInvoicingDate
|
|
9867
|
-
})(
|
|
9867
|
+
})(React.createElement(FormSpanString, null));
|
|
9868
9868
|
}
|
|
9869
9869
|
});
|
|
9870
9870
|
}
|
|
@@ -9875,7 +9875,7 @@ var InvoiceHeader = decorator(Form.create())(function (props) {
|
|
|
9875
9875
|
render: function render(form) {
|
|
9876
9876
|
return form.getFieldDecorator('defaultValidationCode', {
|
|
9877
9877
|
initialValue: props.defaultValidationCode
|
|
9878
|
-
})(
|
|
9878
|
+
})(React.createElement(FormSpanString, null));
|
|
9879
9879
|
}
|
|
9880
9880
|
});
|
|
9881
9881
|
}
|
|
@@ -9895,21 +9895,21 @@ var InvoiceHeader = decorator(Form.create())(function (props) {
|
|
|
9895
9895
|
React.useEffect(function () {
|
|
9896
9896
|
setTypeIndex(props.typeOptionIndex || 0);
|
|
9897
9897
|
}, [props.typeOption]);
|
|
9898
|
-
return
|
|
9898
|
+
return React.createElement("div", {
|
|
9899
9899
|
className: "kts-invoice-operate-invoice-header"
|
|
9900
|
-
},
|
|
9900
|
+
}, React.createElement("div", {
|
|
9901
9901
|
className: "invoice-header-title"
|
|
9902
|
-
}, title),
|
|
9902
|
+
}, title), React.createElement("div", {
|
|
9903
9903
|
className: "invoice-header-no"
|
|
9904
|
-
}, isInvoiceNo ?
|
|
9904
|
+
}, isInvoiceNo ? React.createElement("div", null, React.createElement("label", null, "\u53D1\u7968\u5355\u636E\u7F16\u53F7 :"), getFieldDecorator('id', {
|
|
9905
9905
|
initialValue: props.defaultId
|
|
9906
|
-
})(
|
|
9906
|
+
})(React.createElement(Input, {
|
|
9907
9907
|
disabled: readOnlyInvoiceNo,
|
|
9908
9908
|
style: {
|
|
9909
9909
|
width: 230
|
|
9910
9910
|
},
|
|
9911
9911
|
size: "small",
|
|
9912
|
-
suffix: controller.updateInvoiceNo &&
|
|
9912
|
+
suffix: controller.updateInvoiceNo && React.createElement(Icon$1, {
|
|
9913
9913
|
style: {
|
|
9914
9914
|
cursor: 'pointer'
|
|
9915
9915
|
},
|
|
@@ -9953,15 +9953,15 @@ var InvoiceHeader = decorator(Form.create())(function (props) {
|
|
|
9953
9953
|
return onClick;
|
|
9954
9954
|
}()
|
|
9955
9955
|
})
|
|
9956
|
-
}))) :
|
|
9956
|
+
}))) : React.createElement("div", {
|
|
9957
9957
|
style: {
|
|
9958
9958
|
height: 20
|
|
9959
9959
|
}
|
|
9960
|
-
}), tag &&
|
|
9960
|
+
}), tag && React.createElement(Tag$1, null, tag), React.createElement("div", {
|
|
9961
9961
|
className: "invoice-header-type"
|
|
9962
9962
|
}, props.typeOption ? getFieldDecorator('type', {
|
|
9963
9963
|
initialValue: typeIndex
|
|
9964
|
-
})(
|
|
9964
|
+
})(React.createElement(Select, {
|
|
9965
9965
|
size: "small",
|
|
9966
9966
|
style: {
|
|
9967
9967
|
width: 230
|
|
@@ -9970,20 +9970,20 @@ var InvoiceHeader = decorator(Form.create())(function (props) {
|
|
|
9970
9970
|
setTypeIndex(e);
|
|
9971
9971
|
}
|
|
9972
9972
|
}, props.typeOption.map(function (e, i) {
|
|
9973
|
-
return
|
|
9973
|
+
return React.createElement(Select.Option, {
|
|
9974
9974
|
key: i,
|
|
9975
9975
|
value: i
|
|
9976
9976
|
}, e.title);
|
|
9977
|
-
}))) : props.renderExpand && props.renderExpand(props.form))), props.typeOption &&
|
|
9977
|
+
}))) : props.renderExpand && props.renderExpand(props.form))), props.typeOption && React.createElement("div", {
|
|
9978
9978
|
style: {
|
|
9979
9979
|
marginTop: 10
|
|
9980
9980
|
}
|
|
9981
|
-
}, props.renderExpand && props.renderExpand(props.form)),
|
|
9981
|
+
}, props.renderExpand && props.renderExpand(props.form)), React.createElement("div", {
|
|
9982
9982
|
className: "invoice-header-property"
|
|
9983
|
-
}, _toConsumableArray(props.fieldExpand || []).map(function (e) {}),
|
|
9983
|
+
}, _toConsumableArray(props.fieldExpand || []).map(function (e) {}), React.createElement("ul", {
|
|
9984
9984
|
className: 'invoice-header-property-fieldExpand'
|
|
9985
9985
|
}, fieldExpand.map(function (e) {
|
|
9986
|
-
return
|
|
9986
|
+
return React.createElement("li", null, React.createElement("label", null, e.label), e.render(form));
|
|
9987
9987
|
}))));
|
|
9988
9988
|
});
|
|
9989
9989
|
|
|
@@ -10002,7 +10002,7 @@ var FormSpanString = /*#__PURE__*/function (_React$Component) {
|
|
|
10002
10002
|
key: "render",
|
|
10003
10003
|
value: function render() {
|
|
10004
10004
|
// return <span>{this.props.value}</span>;
|
|
10005
|
-
return
|
|
10005
|
+
return React.createElement(Input, {
|
|
10006
10006
|
size: "small",
|
|
10007
10007
|
disabled: true,
|
|
10008
10008
|
value: this.props.value
|
|
@@ -10113,12 +10113,12 @@ function TableVirtual (props) {
|
|
|
10113
10113
|
if (!cont) return;
|
|
10114
10114
|
cont.scrollTop = 0;
|
|
10115
10115
|
}, [(_props$dataSource2 = props.dataSource) === null || _props$dataSource2 === void 0 ? void 0 : _props$dataSource2.length]);
|
|
10116
|
-
return
|
|
10116
|
+
return React.createElement("span", {
|
|
10117
10117
|
className: "kts-invoice-operate-goods-table-virtual",
|
|
10118
10118
|
ref: function ref(e) {
|
|
10119
10119
|
setSelf(e);
|
|
10120
10120
|
}
|
|
10121
|
-
},
|
|
10121
|
+
}, React.createElement(TableManual, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
10122
10122
|
dataSource: dataSource,
|
|
10123
10123
|
// 新版本Table会有输入框无法连续输入的问题,先兼容老版本
|
|
10124
10124
|
tableComponent: Table
|
|
@@ -10210,57 +10210,57 @@ var Statistics = (function () {
|
|
|
10210
10210
|
});
|
|
10211
10211
|
return sum.done().toNumber();
|
|
10212
10212
|
}, []);
|
|
10213
|
-
return
|
|
10213
|
+
return React.createElement("div", {
|
|
10214
10214
|
className: "kts-invoice-operate-goods-list-statistics"
|
|
10215
|
-
},
|
|
10215
|
+
}, React.createElement("div", {
|
|
10216
10216
|
className: "kts-invoice-operate-goods-list-statistics-row"
|
|
10217
|
-
},
|
|
10217
|
+
}, React.createElement("div", {
|
|
10218
10218
|
style: {
|
|
10219
10219
|
width: 45.92
|
|
10220
10220
|
}
|
|
10221
|
-
}),
|
|
10221
|
+
}), React.createElement("div", {
|
|
10222
10222
|
style: {
|
|
10223
10223
|
flex: 1
|
|
10224
10224
|
}
|
|
10225
|
-
},
|
|
10225
|
+
}, React.createElement("label", null, "\u5408\u8BA1")), React.createElement("div", {
|
|
10226
10226
|
style: {
|
|
10227
10227
|
width: 119,
|
|
10228
10228
|
textAlign: 'right',
|
|
10229
10229
|
border: 'none'
|
|
10230
10230
|
}
|
|
10231
|
-
},
|
|
10231
|
+
}, React.createElement("label", null, parseFloat(isTaxIncluded ? lineAmountIncludeTax : lineAmountExcludeTax).toFixed(2))), React.createElement("div", {
|
|
10232
10232
|
style: {
|
|
10233
10233
|
width: 70,
|
|
10234
10234
|
border: 'none'
|
|
10235
10235
|
}
|
|
10236
|
-
}),
|
|
10236
|
+
}), React.createElement("div", {
|
|
10237
10237
|
style: {
|
|
10238
10238
|
width: 119,
|
|
10239
10239
|
textAlign: 'right',
|
|
10240
10240
|
border: 'none'
|
|
10241
10241
|
}
|
|
10242
|
-
},
|
|
10242
|
+
}, React.createElement("label", null, parseFloat(taxAmount).toFixed(2))), React.createElement("div", {
|
|
10243
10243
|
style: {
|
|
10244
10244
|
width: 111,
|
|
10245
10245
|
border: 'none'
|
|
10246
10246
|
}
|
|
10247
|
-
})),
|
|
10247
|
+
})), React.createElement("div", {
|
|
10248
10248
|
className: "kts-invoice-operate-goods-list-statistics-row"
|
|
10249
|
-
},
|
|
10249
|
+
}, React.createElement("div", {
|
|
10250
10250
|
style: {
|
|
10251
10251
|
width: 45.92
|
|
10252
10252
|
}
|
|
10253
|
-
}),
|
|
10253
|
+
}), React.createElement("div", {
|
|
10254
10254
|
style: {
|
|
10255
10255
|
flex: 5,
|
|
10256
10256
|
border: 'none'
|
|
10257
10257
|
}
|
|
10258
|
-
},
|
|
10258
|
+
}, React.createElement("label", null, "\u4EF7\u7A0E\u5408\u8BA1\uFF08\u5927\u5199\uFF09"), React.createElement("label", null, toStringChinese(lineAmountIncludeTax))), React.createElement("div", {
|
|
10259
10259
|
style: {
|
|
10260
10260
|
flex: 5,
|
|
10261
10261
|
border: 'none'
|
|
10262
10262
|
}
|
|
10263
|
-
},
|
|
10263
|
+
}, React.createElement("label", null, "\uFF08\u5C0F\u5199\uFF09 ", parseFloat(lineAmountIncludeTax).toFixed(2)))));
|
|
10264
10264
|
});
|
|
10265
10265
|
|
|
10266
10266
|
var AddRowButton = (function () {
|
|
@@ -10315,10 +10315,10 @@ var AddRowButton = (function () {
|
|
|
10315
10315
|
}
|
|
10316
10316
|
}, _callee);
|
|
10317
10317
|
})), [controller, rootElement]);
|
|
10318
|
-
if (isAddRow === false) return
|
|
10319
|
-
if (model === 'prefab') return
|
|
10320
|
-
if (model === 'readOnly') return
|
|
10321
|
-
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, {
|
|
10322
10322
|
onClick: onClick,
|
|
10323
10323
|
disabled: disabled
|
|
10324
10324
|
}, "\u6DFB\u52A0\u884C");
|
|
@@ -10448,11 +10448,11 @@ var TaxIncludedSwitch = (function () {
|
|
|
10448
10448
|
var onChange = React.useCallback(function (e) {
|
|
10449
10449
|
onChangeSwitchTax(controller, e);
|
|
10450
10450
|
}, []);
|
|
10451
|
-
return
|
|
10451
|
+
return React.createElement("span", null, React.createElement("label", {
|
|
10452
10452
|
style: {
|
|
10453
10453
|
marginRight: 2
|
|
10454
10454
|
}
|
|
10455
|
-
}, "\u542B\u7A0E:"),
|
|
10455
|
+
}, "\u542B\u7A0E:"), React.createElement(Switch, {
|
|
10456
10456
|
disabled: isSwitchTax === false,
|
|
10457
10457
|
checked: isTaxIncluded,
|
|
10458
10458
|
defaultChecked: true,
|
|
@@ -10490,19 +10490,19 @@ var DescribeSwitch = (function () {
|
|
|
10490
10490
|
};
|
|
10491
10491
|
}());
|
|
10492
10492
|
}, []);
|
|
10493
|
-
if (!productComparison.onComply) return
|
|
10494
|
-
return
|
|
10493
|
+
if (!productComparison.onComply) return React.createElement(React.Fragment, null);
|
|
10494
|
+
return React.createElement("span", null, React.createElement("label", {
|
|
10495
10495
|
style: {
|
|
10496
10496
|
marginRight: 2
|
|
10497
10497
|
}
|
|
10498
|
-
},
|
|
10498
|
+
}, React.createElement(Tooltip, {
|
|
10499
10499
|
title: "\u84DD\u8272\u4EE3\u8868\u6211\u65B9\u5546\u54C1\u63CF\u8FF0\uFF0C\u9ED1\u8272\u4EE3\u8868\u5BF9\u65B9\u7684\u5546\u54C1\u63CF\u8FF0\u3002"
|
|
10500
|
-
},
|
|
10500
|
+
}, React.createElement(Icon$1, {
|
|
10501
10501
|
style: {
|
|
10502
10502
|
marginRight: 3
|
|
10503
10503
|
},
|
|
10504
10504
|
type: "info-circle"
|
|
10505
|
-
})), "\u4F7F\u7528\u54EA\u65B9\u5546\u54C1\u63CF\u8FF0:"),
|
|
10505
|
+
})), "\u4F7F\u7528\u54EA\u65B9\u5546\u54C1\u63CF\u8FF0:"), React.createElement(Switch$1, {
|
|
10506
10506
|
checked: isMyShow,
|
|
10507
10507
|
checkedChildren: "\u6211\u65B9",
|
|
10508
10508
|
unCheckedChildren: "\u5BF9\u65B9",
|
|
@@ -10602,13 +10602,13 @@ function Search() {
|
|
|
10602
10602
|
};
|
|
10603
10603
|
}());
|
|
10604
10604
|
}, [value, controller]);
|
|
10605
|
-
return
|
|
10605
|
+
return React.createElement(Input, {
|
|
10606
10606
|
size: "small",
|
|
10607
10607
|
readOnly: readOnly,
|
|
10608
10608
|
value: value,
|
|
10609
10609
|
className: "kts-invoice-operate-goods-list-search",
|
|
10610
10610
|
placeholder: "\u8BF7\u60A8\u8F93\u5165".concat(columnshide.includes('itemCode') ? '' : '商品编码、', "\u9879\u76EE\u540D\u79F0\u3001\u89C4\u683C\u578B\u53F7\u3001\u91D1\u989D(").concat(isTaxIncluded ? '含税' : '不含税', ")\u641C\u7D22"),
|
|
10611
|
-
prefix:
|
|
10611
|
+
prefix: React.createElement(Icon$1, {
|
|
10612
10612
|
component: SvgMagnifier,
|
|
10613
10613
|
style: {
|
|
10614
10614
|
color: "#b8b8b8"
|
|
@@ -10660,13 +10660,13 @@ function TableRow(props) {
|
|
|
10660
10660
|
return undefined;
|
|
10661
10661
|
}
|
|
10662
10662
|
}, [good, goodsMap]);
|
|
10663
|
-
return rowKey === current && current ?
|
|
10663
|
+
return rowKey === current && current ? React.createElement("tr", {
|
|
10664
10664
|
style: {
|
|
10665
10665
|
height: 32.67,
|
|
10666
10666
|
borderBottom: '1px solid #E6E6E6',
|
|
10667
10667
|
position: 'relative'
|
|
10668
10668
|
}
|
|
10669
|
-
},
|
|
10669
|
+
}, React.createElement("div", {
|
|
10670
10670
|
style: {
|
|
10671
10671
|
height: 1,
|
|
10672
10672
|
width: '100%',
|
|
@@ -10674,7 +10674,7 @@ function TableRow(props) {
|
|
|
10674
10674
|
position: 'absolute',
|
|
10675
10675
|
bottom: 0
|
|
10676
10676
|
}
|
|
10677
|
-
})) :
|
|
10677
|
+
})) : React.createElement("tr", _objectSpread2(_objectSpread2({}, props), {}, {
|
|
10678
10678
|
className: classNames(props.className, discount, rowKey === container && current ? 'kts-invoice-operate-goods-list-itemName-drag-container-' + site : undefined)
|
|
10679
10679
|
}));
|
|
10680
10680
|
}
|
|
@@ -11082,7 +11082,7 @@ var RowMenu = (function (props) {
|
|
|
11082
11082
|
// addComparison && arr.push(addComparison); // 添加商品对照
|
|
11083
11083
|
|
|
11084
11084
|
if (!goodsMenuExpand || goodsMenuExpand.length === 0) return arr;
|
|
11085
|
-
arr.unshift(
|
|
11085
|
+
arr.unshift(React.createElement(Menu.Divider, {
|
|
11086
11086
|
key: "divider-1"
|
|
11087
11087
|
}));
|
|
11088
11088
|
|
|
@@ -11098,17 +11098,17 @@ var RowMenu = (function (props) {
|
|
|
11098
11098
|
return undefined;
|
|
11099
11099
|
}
|
|
11100
11100
|
|
|
11101
|
-
return
|
|
11102
|
-
return
|
|
11101
|
+
return React.createElement(Menu, null, itemList.slice(2).map(function (e) {
|
|
11102
|
+
return React.createElement(Menu.Item, {
|
|
11103
11103
|
key: e.key,
|
|
11104
11104
|
onClick: e.onClick
|
|
11105
|
-
},
|
|
11105
|
+
}, React.createElement(Text$1, {
|
|
11106
11106
|
strong: true
|
|
11107
11107
|
}, e.title));
|
|
11108
11108
|
}));
|
|
11109
11109
|
}, [itemList]);
|
|
11110
11110
|
var buttonList = React.useMemo(function () {
|
|
11111
|
-
return
|
|
11111
|
+
return React.createElement("div", {
|
|
11112
11112
|
style: {
|
|
11113
11113
|
flex: 1,
|
|
11114
11114
|
textAlign: 'left',
|
|
@@ -11116,7 +11116,7 @@ var RowMenu = (function (props) {
|
|
|
11116
11116
|
gap: 10
|
|
11117
11117
|
}
|
|
11118
11118
|
}, itemList.slice(0, 2).map(function (e) {
|
|
11119
|
-
return
|
|
11119
|
+
return React.createElement(Button, {
|
|
11120
11120
|
key: e.key,
|
|
11121
11121
|
type: 'link',
|
|
11122
11122
|
onClick: e.onClick,
|
|
@@ -11128,21 +11128,21 @@ var RowMenu = (function (props) {
|
|
|
11128
11128
|
}, [itemList]);
|
|
11129
11129
|
|
|
11130
11130
|
if (itemList.length === 0) {
|
|
11131
|
-
return
|
|
11131
|
+
return React.createElement(React.Fragment, null);
|
|
11132
11132
|
}
|
|
11133
11133
|
|
|
11134
|
-
return
|
|
11134
|
+
return React.createElement("span", {
|
|
11135
11135
|
style: {
|
|
11136
11136
|
padding: '0 0 0 10px',
|
|
11137
11137
|
display: 'flex'
|
|
11138
11138
|
}
|
|
11139
|
-
}, buttonList, overlay &&
|
|
11139
|
+
}, buttonList, overlay && React.createElement(Dropdown, {
|
|
11140
11140
|
overlay: overlay,
|
|
11141
11141
|
trigger: ['click']
|
|
11142
|
-
},
|
|
11142
|
+
}, React.createElement(Button, {
|
|
11143
11143
|
className: "kts-invoice-operate-goods-list-columns-row-menu ant-btn-icon-only",
|
|
11144
11144
|
type: "link"
|
|
11145
|
-
},
|
|
11145
|
+
}, React.createElement(Icon$1, {
|
|
11146
11146
|
component: SvgSpot
|
|
11147
11147
|
}))));
|
|
11148
11148
|
});
|
|
@@ -11156,9 +11156,9 @@ var TitleText = (function (props) {
|
|
|
11156
11156
|
return !!e.required;
|
|
11157
11157
|
})) || props.required;
|
|
11158
11158
|
}, [rules, props.required]);
|
|
11159
|
-
return
|
|
11159
|
+
return React.createElement(React.Fragment, null, required ? React.createElement(Text$2, {
|
|
11160
11160
|
type: "danger"
|
|
11161
|
-
}, "*") :
|
|
11161
|
+
}, "*") : React.createElement(React.Fragment, null), children);
|
|
11162
11162
|
});
|
|
11163
11163
|
|
|
11164
11164
|
var css_248z$7 = ".kts-invoice-operate-goods-list-itemName-input {\n display: flex;\n flex: 1;\n padding-left: 10px;\n height: 31px;\n}\n.kts-invoice-operate-goods-list-itemName-input .ktsAntX-select {\n width: 100%;\n}\n.kts-invoice-operate-goods-list-itemName-input .ktsAntX-select .ktsAntX-select-selector {\n height: 100%;\n}\n";
|
|
@@ -11349,14 +11349,14 @@ function ItemNameInput(props) {
|
|
|
11349
11349
|
React.useEffect(function () {
|
|
11350
11350
|
setValue(props.value);
|
|
11351
11351
|
}, [props.value]);
|
|
11352
|
-
return
|
|
11352
|
+
return React.createElement("div", {
|
|
11353
11353
|
className: 'kts-invoice-operate-goods-list-itemName-input'
|
|
11354
|
-
}, props.shorthand &&
|
|
11354
|
+
}, props.shorthand && React.createElement("span", {
|
|
11355
11355
|
style: {
|
|
11356
11356
|
alignSelf: 'center',
|
|
11357
11357
|
fontSize: 12
|
|
11358
11358
|
}
|
|
11359
|
-
}, "*", props.shorthand, "*"),
|
|
11359
|
+
}, "*", props.shorthand, "*"), React.createElement(AutoComplete$1, {
|
|
11360
11360
|
onSearch: onSearch,
|
|
11361
11361
|
value: props.value,
|
|
11362
11362
|
options: options.map(function (e) {
|
|
@@ -11366,7 +11366,7 @@ function ItemNameInput(props) {
|
|
|
11366
11366
|
};
|
|
11367
11367
|
}),
|
|
11368
11368
|
onSelect: onChangeAutoComplete
|
|
11369
|
-
},
|
|
11369
|
+
}, React.createElement(Input, {
|
|
11370
11370
|
style: {
|
|
11371
11371
|
height: '100%',
|
|
11372
11372
|
border: 'none'
|
|
@@ -11475,9 +11475,9 @@ function ItemCodeInput(props) {
|
|
|
11475
11475
|
return _ref2.apply(this, arguments);
|
|
11476
11476
|
};
|
|
11477
11477
|
}(), [options, controller]);
|
|
11478
|
-
return
|
|
11478
|
+
return React.createElement("div", {
|
|
11479
11479
|
className: 'kts-invoice-operate-goods-list-itemCode-input'
|
|
11480
|
-
},
|
|
11480
|
+
}, React.createElement(AutoComplete$1, {
|
|
11481
11481
|
onSearch: onSearch,
|
|
11482
11482
|
value: props.value,
|
|
11483
11483
|
options: options.map(function (e) {
|
|
@@ -11486,7 +11486,7 @@ function ItemCodeInput(props) {
|
|
|
11486
11486
|
};
|
|
11487
11487
|
}),
|
|
11488
11488
|
onSelect: onChangeAutoComplete
|
|
11489
|
-
},
|
|
11489
|
+
}, React.createElement(Input, {
|
|
11490
11490
|
style: {
|
|
11491
11491
|
height: '100%',
|
|
11492
11492
|
border: 'none'
|
|
@@ -12667,7 +12667,7 @@ function Drag$1(props) {
|
|
|
12667
12667
|
var currentGood = controller.state.goodsListState.goodsList.filter(function (e) {
|
|
12668
12668
|
return e.$index === record.$index;
|
|
12669
12669
|
})[0];
|
|
12670
|
-
mounting(
|
|
12670
|
+
mounting(React.createElement(DragDiv, _objectSpread2({}, currentGood)));
|
|
12671
12671
|
rowList.forEach(function (e) {
|
|
12672
12672
|
e.addEventListener('mousemove', onMousemove);
|
|
12673
12673
|
});
|
|
@@ -12828,7 +12828,7 @@ function Drag$1(props) {
|
|
|
12828
12828
|
|
|
12829
12829
|
|
|
12830
12830
|
function insert() {
|
|
12831
|
-
mounting(
|
|
12831
|
+
mounting(React.createElement(React.Fragment, null));
|
|
12832
12832
|
controller.run( /*#__PURE__*/function () {
|
|
12833
12833
|
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(s) {
|
|
12834
12834
|
var _s$goodsListState$dra, container, current, site, goodsList, goodsMap, _currentGood, currentIndex, moveGoods;
|
|
@@ -12907,7 +12907,7 @@ function Drag$1(props) {
|
|
|
12907
12907
|
}
|
|
12908
12908
|
}, [controller, record, disabled]);
|
|
12909
12909
|
var renderButton = React.useMemo(function () {
|
|
12910
|
-
return
|
|
12910
|
+
return React.createElement(Button, {
|
|
12911
12911
|
type: 'link',
|
|
12912
12912
|
style: {
|
|
12913
12913
|
padding: 0
|
|
@@ -12918,13 +12918,13 @@ function Drag$1(props) {
|
|
|
12918
12918
|
},
|
|
12919
12919
|
className: "kts-invoice-operate-goods-list-itemName-drag",
|
|
12920
12920
|
onMouseOver: controller.saveEditGood
|
|
12921
|
-
},
|
|
12921
|
+
}, React.createElement(Icon, {
|
|
12922
12922
|
component: SvgI001
|
|
12923
12923
|
}));
|
|
12924
12924
|
}, [onMouseDown, controller]);
|
|
12925
12925
|
|
|
12926
12926
|
if (disabled) {
|
|
12927
|
-
return
|
|
12927
|
+
return React.createElement(Popover, {
|
|
12928
12928
|
content: '您还有未编辑完成的商品',
|
|
12929
12929
|
trigger: 'focus'
|
|
12930
12930
|
}, renderButton);
|
|
@@ -12964,13 +12964,13 @@ function DragDiv(props) {
|
|
|
12964
12964
|
window.removeEventListener('mousemove', onMousemove);
|
|
12965
12965
|
};
|
|
12966
12966
|
});
|
|
12967
|
-
return
|
|
12967
|
+
return React.createElement("div", {
|
|
12968
12968
|
className: "kts-invoice-operate-goods-list-itemName-drag-div",
|
|
12969
12969
|
style: {
|
|
12970
12970
|
top: y,
|
|
12971
12971
|
left: x
|
|
12972
12972
|
}
|
|
12973
|
-
},
|
|
12973
|
+
}, React.createElement("span", null, props.itemName), React.createElement("span", null, props.itemModelName), React.createElement("span", null, props.unit));
|
|
12974
12974
|
}
|
|
12975
12975
|
|
|
12976
12976
|
var useColumns = (function (form) {
|
|
@@ -13091,7 +13091,7 @@ var useColumns = (function (form) {
|
|
|
13091
13091
|
width: 40,
|
|
13092
13092
|
align: 'center',
|
|
13093
13093
|
render: function render(_, record) {
|
|
13094
|
-
return
|
|
13094
|
+
return React.createElement(Drag$1, {
|
|
13095
13095
|
record: record
|
|
13096
13096
|
});
|
|
13097
13097
|
}
|
|
@@ -13101,7 +13101,7 @@ var useColumns = (function (form) {
|
|
|
13101
13101
|
dataIndex: 'serialNo',
|
|
13102
13102
|
width: 50,
|
|
13103
13103
|
render: function render(e) {
|
|
13104
|
-
return
|
|
13104
|
+
return React.createElement("span", {
|
|
13105
13105
|
style: {
|
|
13106
13106
|
padding: '0 10px'
|
|
13107
13107
|
}
|
|
@@ -13113,13 +13113,13 @@ var useColumns = (function (form) {
|
|
|
13113
13113
|
width: 119,
|
|
13114
13114
|
render: function render(_, record) {
|
|
13115
13115
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
13116
|
-
return
|
|
13116
|
+
return React.createElement(Form.Item, null, getFieldDecorator('itemCode', {
|
|
13117
13117
|
initialValue: editGood.itemCode,
|
|
13118
13118
|
rules: [].concat(_toConsumableArray(getReplenishRules('itemCode')), [{
|
|
13119
13119
|
pattern: /^.{1,19}$/,
|
|
13120
13120
|
message: '商品编码长度不能超过19位'
|
|
13121
13121
|
}])
|
|
13122
|
-
})(
|
|
13122
|
+
})(React.createElement(ItemCodeInput, {
|
|
13123
13123
|
onChange: function () {
|
|
13124
13124
|
var _onChange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
13125
13125
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
@@ -13145,7 +13145,7 @@ var useColumns = (function (form) {
|
|
|
13145
13145
|
}()
|
|
13146
13146
|
})));
|
|
13147
13147
|
} else {
|
|
13148
|
-
return
|
|
13148
|
+
return React.createElement("span", {
|
|
13149
13149
|
style: {
|
|
13150
13150
|
padding: '0 10px'
|
|
13151
13151
|
}
|
|
@@ -13153,13 +13153,13 @@ var useColumns = (function (form) {
|
|
|
13153
13153
|
}
|
|
13154
13154
|
}
|
|
13155
13155
|
}, {
|
|
13156
|
-
title:
|
|
13156
|
+
title: React.createElement(TitleText, {
|
|
13157
13157
|
required: true
|
|
13158
13158
|
}, "\u9879\u76EE\u540D\u79F0"),
|
|
13159
13159
|
key: 'itemName',
|
|
13160
13160
|
render: function render(_, record) {
|
|
13161
13161
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
13162
|
-
return
|
|
13162
|
+
return React.createElement(Form.Item, null, React.createElement("div", {
|
|
13163
13163
|
style: {
|
|
13164
13164
|
display: 'flex'
|
|
13165
13165
|
}
|
|
@@ -13206,17 +13206,17 @@ var useColumns = (function (form) {
|
|
|
13206
13206
|
return validator;
|
|
13207
13207
|
}()
|
|
13208
13208
|
}])
|
|
13209
|
-
})(
|
|
13209
|
+
})(React.createElement(ItemNameInput, {
|
|
13210
13210
|
editGood: editGood,
|
|
13211
13211
|
shorthand: editGood.shorthand,
|
|
13212
13212
|
onChange: function onChange() {
|
|
13213
13213
|
onChangeItemName(controller, form, record);
|
|
13214
13214
|
}
|
|
13215
|
-
})),
|
|
13215
|
+
})), React.createElement("div", {
|
|
13216
13216
|
className: "kts-invoice-operate-goods-list-able-list-itemName-import"
|
|
13217
|
-
}, controller.getGoodsList && model !== 'readOnly' &&
|
|
13217
|
+
}, controller.getGoodsList && model !== 'readOnly' && React.createElement(Tooltip, {
|
|
13218
13218
|
title: "\u70B9\u51FB\u4ECE\u5546\u54C1\u7BA1\u7406\u4E2D\u6DFB\u52A0\u5546\u54C1\u4FE1\u606F"
|
|
13219
|
-
},
|
|
13219
|
+
}, React.createElement(Button, {
|
|
13220
13220
|
onClick: controller.pipeline( /*#__PURE__*/function () {
|
|
13221
13221
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(s) {
|
|
13222
13222
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
@@ -13241,7 +13241,7 @@ var useColumns = (function (form) {
|
|
|
13241
13241
|
icon: "plus-circle"
|
|
13242
13242
|
})))));
|
|
13243
13243
|
} else {
|
|
13244
|
-
return
|
|
13244
|
+
return React.createElement(MyItemNameDiv, {
|
|
13245
13245
|
valueT: formatSearch(getItemNameWithShorthand({
|
|
13246
13246
|
shorthand: record.shorthand,
|
|
13247
13247
|
full: record.itemNameSelf || ''
|
|
@@ -13255,17 +13255,17 @@ var useColumns = (function (form) {
|
|
|
13255
13255
|
}
|
|
13256
13256
|
}
|
|
13257
13257
|
}, {
|
|
13258
|
-
title:
|
|
13258
|
+
title: React.createElement(TitleText, {
|
|
13259
13259
|
rules: (_columnsReplenish$ite = columnsReplenish['itemModelName']) === null || _columnsReplenish$ite === void 0 ? void 0 : _columnsReplenish$ite.rules
|
|
13260
13260
|
}, "\u89C4\u683C\u578B\u53F7"),
|
|
13261
13261
|
key: 'itemModelName',
|
|
13262
13262
|
width: 119,
|
|
13263
13263
|
render: function render(_, record) {
|
|
13264
13264
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
13265
|
-
return
|
|
13265
|
+
return React.createElement(Form.Item, null, getFieldDecorator('itemModelName', {
|
|
13266
13266
|
initialValue: isMyShow ? editGood.itemModelNameSelf : editGood.itemModelName,
|
|
13267
13267
|
rules: getReplenishRules('itemModelName')
|
|
13268
|
-
})(
|
|
13268
|
+
})(React.createElement(MyInput, {
|
|
13269
13269
|
onChange: function () {
|
|
13270
13270
|
var _onChange2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5() {
|
|
13271
13271
|
var key, value;
|
|
@@ -13298,7 +13298,7 @@ var useColumns = (function (form) {
|
|
|
13298
13298
|
}()
|
|
13299
13299
|
})));
|
|
13300
13300
|
} else {
|
|
13301
|
-
return
|
|
13301
|
+
return React.createElement(MyItemNameDiv, {
|
|
13302
13302
|
valueT: formatSearch(record.itemModelNameSelf, searchValue),
|
|
13303
13303
|
valueF: formatSearch(record.itemModelName, searchValue),
|
|
13304
13304
|
isMyShow: isMyShow
|
|
@@ -13306,17 +13306,17 @@ var useColumns = (function (form) {
|
|
|
13306
13306
|
}
|
|
13307
13307
|
}
|
|
13308
13308
|
}, {
|
|
13309
|
-
title:
|
|
13309
|
+
title: React.createElement(TitleText, {
|
|
13310
13310
|
rules: (_columnsReplenish$uni = columnsReplenish['unit']) === null || _columnsReplenish$uni === void 0 ? void 0 : _columnsReplenish$uni.rules
|
|
13311
13311
|
}, "\u5355\u4F4D"),
|
|
13312
13312
|
key: 'unit',
|
|
13313
13313
|
width: 70,
|
|
13314
13314
|
render: function render(_, record) {
|
|
13315
13315
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
13316
|
-
return
|
|
13316
|
+
return React.createElement(Form.Item, null, getFieldDecorator('unit', {
|
|
13317
13317
|
initialValue: editGood.unit,
|
|
13318
13318
|
rules: getReplenishRules('unit')
|
|
13319
|
-
})(
|
|
13319
|
+
})(React.createElement(AutoComplete$2, {
|
|
13320
13320
|
style: {
|
|
13321
13321
|
width: '100%'
|
|
13322
13322
|
},
|
|
@@ -13354,7 +13354,7 @@ var useColumns = (function (form) {
|
|
|
13354
13354
|
}()
|
|
13355
13355
|
})));
|
|
13356
13356
|
} else {
|
|
13357
|
-
return
|
|
13357
|
+
return React.createElement("span", {
|
|
13358
13358
|
style: {
|
|
13359
13359
|
padding: '0 10px'
|
|
13360
13360
|
}
|
|
@@ -13362,7 +13362,7 @@ var useColumns = (function (form) {
|
|
|
13362
13362
|
}
|
|
13363
13363
|
}
|
|
13364
13364
|
}, {
|
|
13365
|
-
title:
|
|
13365
|
+
title: React.createElement(TitleText, {
|
|
13366
13366
|
rules: (_columnsReplenish$qua = columnsReplenish['quantity']) === null || _columnsReplenish$qua === void 0 ? void 0 : _columnsReplenish$qua.rules
|
|
13367
13367
|
}, "\u6570\u91CF"),
|
|
13368
13368
|
dataIndex: 'quantity',
|
|
@@ -13371,7 +13371,7 @@ var useColumns = (function (form) {
|
|
|
13371
13371
|
width: 149,
|
|
13372
13372
|
render: function render(value, record) {
|
|
13373
13373
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
13374
|
-
return
|
|
13374
|
+
return React.createElement(Form.Item, null, getFieldDecorator('quantity', {
|
|
13375
13375
|
initialValue: nonScientificNotation(editGood.quantity),
|
|
13376
13376
|
getValueFromEvent: onNumberValueChange,
|
|
13377
13377
|
rules: [].concat(_toConsumableArray(getReplenishRules('quantity')), [{
|
|
@@ -13417,7 +13417,7 @@ var useColumns = (function (form) {
|
|
|
13417
13417
|
return validator;
|
|
13418
13418
|
}()
|
|
13419
13419
|
}])
|
|
13420
|
-
})(
|
|
13420
|
+
})(React.createElement(MyInput, {
|
|
13421
13421
|
style: {
|
|
13422
13422
|
textAlign: 'right'
|
|
13423
13423
|
},
|
|
@@ -13449,7 +13449,7 @@ var useColumns = (function (form) {
|
|
|
13449
13449
|
}()
|
|
13450
13450
|
})));
|
|
13451
13451
|
} else {
|
|
13452
|
-
return
|
|
13452
|
+
return React.createElement("span", {
|
|
13453
13453
|
style: {
|
|
13454
13454
|
padding: '0 10px'
|
|
13455
13455
|
}
|
|
@@ -13457,7 +13457,7 @@ var useColumns = (function (form) {
|
|
|
13457
13457
|
}
|
|
13458
13458
|
}
|
|
13459
13459
|
}, {
|
|
13460
|
-
title:
|
|
13460
|
+
title: React.createElement(TitleText, {
|
|
13461
13461
|
rules: (_columnsReplenish$pri = columnsReplenish['priceIncludeTax']) === null || _columnsReplenish$pri === void 0 ? void 0 : _columnsReplenish$pri.rules
|
|
13462
13462
|
}, "\u5355\u4EF7(\u542B\u7A0E)"),
|
|
13463
13463
|
dataIndex: 'priceIncludeTax',
|
|
@@ -13466,7 +13466,7 @@ var useColumns = (function (form) {
|
|
|
13466
13466
|
width: 149,
|
|
13467
13467
|
render: function render(value, record) {
|
|
13468
13468
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
13469
|
-
return
|
|
13469
|
+
return React.createElement(Form.Item, null, getFieldDecorator('priceIncludeTax', {
|
|
13470
13470
|
initialValue: nonScientificNotation(editGood.priceIncludeTax),
|
|
13471
13471
|
getValueFromEvent: onNumberValueChange,
|
|
13472
13472
|
rules: [].concat(_toConsumableArray(getReplenishRules('priceIncludeTax')), [{
|
|
@@ -13512,7 +13512,7 @@ var useColumns = (function (form) {
|
|
|
13512
13512
|
return validator;
|
|
13513
13513
|
}()
|
|
13514
13514
|
}])
|
|
13515
|
-
})(
|
|
13515
|
+
})(React.createElement(MyInput, {
|
|
13516
13516
|
style: {
|
|
13517
13517
|
textAlign: 'right'
|
|
13518
13518
|
},
|
|
@@ -13524,7 +13524,7 @@ var useColumns = (function (form) {
|
|
|
13524
13524
|
}
|
|
13525
13525
|
})));
|
|
13526
13526
|
} else {
|
|
13527
|
-
return
|
|
13527
|
+
return React.createElement("span", {
|
|
13528
13528
|
style: {
|
|
13529
13529
|
padding: '0 10px'
|
|
13530
13530
|
}
|
|
@@ -13532,7 +13532,7 @@ var useColumns = (function (form) {
|
|
|
13532
13532
|
}
|
|
13533
13533
|
}
|
|
13534
13534
|
}, {
|
|
13535
|
-
title:
|
|
13535
|
+
title: React.createElement(TitleText, {
|
|
13536
13536
|
rules: (_columnsReplenish$pri2 = columnsReplenish['priceExcludeTax']) === null || _columnsReplenish$pri2 === void 0 ? void 0 : _columnsReplenish$pri2.rules
|
|
13537
13537
|
}, "\u5355\u4EF7(\u4E0D\u542B\u7A0E)"),
|
|
13538
13538
|
dataIndex: 'priceExcludeTax',
|
|
@@ -13541,7 +13541,7 @@ var useColumns = (function (form) {
|
|
|
13541
13541
|
width: 149,
|
|
13542
13542
|
render: function render(value, record) {
|
|
13543
13543
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
13544
|
-
return
|
|
13544
|
+
return React.createElement(Form.Item, null, getFieldDecorator('priceExcludeTax', {
|
|
13545
13545
|
initialValue: nonScientificNotation(editGood.priceExcludeTax),
|
|
13546
13546
|
getValueFromEvent: onNumberValueChange,
|
|
13547
13547
|
rules: [].concat(_toConsumableArray(getReplenishRules('priceExcludeTax')), [{
|
|
@@ -13587,7 +13587,7 @@ var useColumns = (function (form) {
|
|
|
13587
13587
|
return validator;
|
|
13588
13588
|
}()
|
|
13589
13589
|
}])
|
|
13590
|
-
})(
|
|
13590
|
+
})(React.createElement(MyInput, {
|
|
13591
13591
|
style: {
|
|
13592
13592
|
textAlign: 'right'
|
|
13593
13593
|
},
|
|
@@ -13599,7 +13599,7 @@ var useColumns = (function (form) {
|
|
|
13599
13599
|
}
|
|
13600
13600
|
})));
|
|
13601
13601
|
} else {
|
|
13602
|
-
return
|
|
13602
|
+
return React.createElement("span", {
|
|
13603
13603
|
style: {
|
|
13604
13604
|
padding: '0 10px'
|
|
13605
13605
|
}
|
|
@@ -13607,7 +13607,7 @@ var useColumns = (function (form) {
|
|
|
13607
13607
|
}
|
|
13608
13608
|
}
|
|
13609
13609
|
}, {
|
|
13610
|
-
title:
|
|
13610
|
+
title: React.createElement(TitleText, {
|
|
13611
13611
|
required: true
|
|
13612
13612
|
}, "\u91D1\u989D(\u542B\u7A0E)"),
|
|
13613
13613
|
dataIndex: 'lineAmountIncludeTax',
|
|
@@ -13616,7 +13616,7 @@ var useColumns = (function (form) {
|
|
|
13616
13616
|
align: 'right',
|
|
13617
13617
|
render: function render(value, record) {
|
|
13618
13618
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
13619
|
-
return
|
|
13619
|
+
return React.createElement(Form.Item, null, getFieldDecorator('lineAmountIncludeTax', {
|
|
13620
13620
|
initialValue: editGood.lineAmountIncludeTax,
|
|
13621
13621
|
getValueFromEvent: onNumberValueChange,
|
|
13622
13622
|
rules: [].concat(_toConsumableArray(getReplenishRules('lineAmountIncludeTax')), [{
|
|
@@ -13676,7 +13676,7 @@ var useColumns = (function (form) {
|
|
|
13676
13676
|
return validator;
|
|
13677
13677
|
}()
|
|
13678
13678
|
}])
|
|
13679
|
-
})(
|
|
13679
|
+
})(React.createElement(MyInput, {
|
|
13680
13680
|
style: {
|
|
13681
13681
|
textAlign: 'right'
|
|
13682
13682
|
},
|
|
@@ -13687,7 +13687,7 @@ var useColumns = (function (form) {
|
|
|
13687
13687
|
}
|
|
13688
13688
|
})));
|
|
13689
13689
|
} else {
|
|
13690
|
-
return
|
|
13690
|
+
return React.createElement("span", {
|
|
13691
13691
|
style: {
|
|
13692
13692
|
padding: '0 10px'
|
|
13693
13693
|
}
|
|
@@ -13695,7 +13695,7 @@ var useColumns = (function (form) {
|
|
|
13695
13695
|
}
|
|
13696
13696
|
}
|
|
13697
13697
|
}, {
|
|
13698
|
-
title:
|
|
13698
|
+
title: React.createElement(TitleText, {
|
|
13699
13699
|
required: true
|
|
13700
13700
|
}, "\u91D1\u989D(\u4E0D\u542B\u7A0E)"),
|
|
13701
13701
|
dataIndex: 'lineAmountExcludeTax',
|
|
@@ -13704,7 +13704,7 @@ var useColumns = (function (form) {
|
|
|
13704
13704
|
width: 119,
|
|
13705
13705
|
render: function render(value, record) {
|
|
13706
13706
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
13707
|
-
return
|
|
13707
|
+
return React.createElement(Form.Item, null, getFieldDecorator('lineAmountExcludeTax', {
|
|
13708
13708
|
initialValue: editGood.lineAmountExcludeTax,
|
|
13709
13709
|
getValueFromEvent: onNumberValueChange,
|
|
13710
13710
|
rules: [].concat(_toConsumableArray(getReplenishRules('lineAmountExcludeTax')), [{
|
|
@@ -13739,7 +13739,7 @@ var useColumns = (function (form) {
|
|
|
13739
13739
|
return validator;
|
|
13740
13740
|
}()
|
|
13741
13741
|
}])
|
|
13742
|
-
})(
|
|
13742
|
+
})(React.createElement(MyInput, {
|
|
13743
13743
|
style: {
|
|
13744
13744
|
textAlign: 'right'
|
|
13745
13745
|
},
|
|
@@ -13750,7 +13750,7 @@ var useColumns = (function (form) {
|
|
|
13750
13750
|
}
|
|
13751
13751
|
})));
|
|
13752
13752
|
} else {
|
|
13753
|
-
return
|
|
13753
|
+
return React.createElement("span", {
|
|
13754
13754
|
style: {
|
|
13755
13755
|
padding: '0 10px'
|
|
13756
13756
|
}
|
|
@@ -13758,7 +13758,7 @@ var useColumns = (function (form) {
|
|
|
13758
13758
|
}
|
|
13759
13759
|
}
|
|
13760
13760
|
}, {
|
|
13761
|
-
title:
|
|
13761
|
+
title: React.createElement(TitleText, {
|
|
13762
13762
|
required: true
|
|
13763
13763
|
}, "\u7A0E\u7387"),
|
|
13764
13764
|
dataIndex: 'taxRate',
|
|
@@ -13767,7 +13767,7 @@ var useColumns = (function (form) {
|
|
|
13767
13767
|
width: 75,
|
|
13768
13768
|
render: function render(value, record) {
|
|
13769
13769
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
13770
|
-
return
|
|
13770
|
+
return React.createElement(Form.Item, null, getFieldDecorator('taxRate', {
|
|
13771
13771
|
initialValue: editGood.taxRate,
|
|
13772
13772
|
rules: [].concat(_toConsumableArray(getReplenishRules('taxRate')), [{
|
|
13773
13773
|
required: true,
|
|
@@ -13776,7 +13776,7 @@ var useColumns = (function (form) {
|
|
|
13776
13776
|
pattern: /^[+-]?(0|([1-9]\d*))(\.\d+)?$/,
|
|
13777
13777
|
message: '请选择正确税率'
|
|
13778
13778
|
}])
|
|
13779
|
-
})(
|
|
13779
|
+
})(React.createElement(Select, {
|
|
13780
13780
|
className: "kts-invoice-operate-goods-list-table-tax-rate",
|
|
13781
13781
|
dropdownMenuStyle: {
|
|
13782
13782
|
textAlign: "right"
|
|
@@ -13790,13 +13790,13 @@ var useColumns = (function (form) {
|
|
|
13790
13790
|
onChangeTaxRate(controller, form, record);
|
|
13791
13791
|
}
|
|
13792
13792
|
}, taxRateList.map(function (e, i) {
|
|
13793
|
-
return
|
|
13793
|
+
return React.createElement(Select.Option, {
|
|
13794
13794
|
key: i,
|
|
13795
13795
|
value: e
|
|
13796
13796
|
}, e, "%");
|
|
13797
13797
|
}))));
|
|
13798
13798
|
} else {
|
|
13799
|
-
return
|
|
13799
|
+
return React.createElement("span", {
|
|
13800
13800
|
style: {
|
|
13801
13801
|
padding: '0 10px'
|
|
13802
13802
|
}
|
|
@@ -13804,7 +13804,7 @@ var useColumns = (function (form) {
|
|
|
13804
13804
|
}
|
|
13805
13805
|
}
|
|
13806
13806
|
}, {
|
|
13807
|
-
title:
|
|
13807
|
+
title: React.createElement(TitleText, {
|
|
13808
13808
|
rules: (_columnsReplenish$tax = columnsReplenish['taxAmount']) === null || _columnsReplenish$tax === void 0 ? void 0 : _columnsReplenish$tax.rules
|
|
13809
13809
|
}, "\u7A0E\u989D"),
|
|
13810
13810
|
dataIndex: 'taxAmount',
|
|
@@ -13816,11 +13816,11 @@ var useColumns = (function (form) {
|
|
|
13816
13816
|
return getFieldDecorator('taxAmount', {
|
|
13817
13817
|
initialValue: editGood.taxAmount,
|
|
13818
13818
|
rules: getReplenishRules('taxAmount')
|
|
13819
|
-
})(
|
|
13819
|
+
})(React.createElement(MyDiv, {
|
|
13820
13820
|
loading: isCipher(changeField, 'taxAmount')
|
|
13821
13821
|
}));
|
|
13822
13822
|
} else {
|
|
13823
|
-
return
|
|
13823
|
+
return React.createElement("span", {
|
|
13824
13824
|
style: {
|
|
13825
13825
|
padding: '0 10px'
|
|
13826
13826
|
}
|
|
@@ -13835,42 +13835,42 @@ var useColumns = (function (form) {
|
|
|
13835
13835
|
render: function render(e) {
|
|
13836
13836
|
switch (e) {
|
|
13837
13837
|
case LineAttributeType$1.折扣行:
|
|
13838
|
-
return
|
|
13838
|
+
return React.createElement("span", {
|
|
13839
13839
|
style: {
|
|
13840
13840
|
padding: '0 10px'
|
|
13841
13841
|
}
|
|
13842
13842
|
}, "\u6298\u6263\u884C");
|
|
13843
13843
|
|
|
13844
13844
|
case LineAttributeType$1.被折扣行:
|
|
13845
|
-
return
|
|
13845
|
+
return React.createElement("span", {
|
|
13846
13846
|
style: {
|
|
13847
13847
|
padding: '0 10px'
|
|
13848
13848
|
}
|
|
13849
13849
|
}, "\u88AB\u6298\u6263\u884C");
|
|
13850
13850
|
|
|
13851
13851
|
case LineAttributeType$1.赠品行:
|
|
13852
|
-
return
|
|
13852
|
+
return React.createElement("span", {
|
|
13853
13853
|
style: {
|
|
13854
13854
|
padding: '0 10px'
|
|
13855
13855
|
}
|
|
13856
13856
|
}, "\u8D60\u54C1\u884C");
|
|
13857
13857
|
|
|
13858
13858
|
case LineAttributeType$1.折让行:
|
|
13859
|
-
return
|
|
13859
|
+
return React.createElement("span", {
|
|
13860
13860
|
style: {
|
|
13861
13861
|
padding: '0 10px'
|
|
13862
13862
|
}
|
|
13863
13863
|
}, "\u6298\u8BA9\u884C");
|
|
13864
13864
|
|
|
13865
13865
|
case LineAttributeType$1.正常:
|
|
13866
|
-
return
|
|
13866
|
+
return React.createElement("span", {
|
|
13867
13867
|
style: {
|
|
13868
13868
|
padding: '0 10px'
|
|
13869
13869
|
}
|
|
13870
13870
|
}, "\u6B63\u5E38\u884C");
|
|
13871
13871
|
|
|
13872
13872
|
default:
|
|
13873
|
-
return
|
|
13873
|
+
return React.createElement("span", {
|
|
13874
13874
|
style: {
|
|
13875
13875
|
padding: '0 10px'
|
|
13876
13876
|
}
|
|
@@ -13884,7 +13884,7 @@ var useColumns = (function (form) {
|
|
|
13884
13884
|
width: 130,
|
|
13885
13885
|
fixed: 'right',
|
|
13886
13886
|
render: function render(_value, record) {
|
|
13887
|
-
return
|
|
13887
|
+
return React.createElement(RowMenu, {
|
|
13888
13888
|
key: record.lineAttribute,
|
|
13889
13889
|
goods: record
|
|
13890
13890
|
});
|
|
@@ -13939,13 +13939,13 @@ var MyInput = /*#__PURE__*/function (_React$Component) {
|
|
|
13939
13939
|
key: "render",
|
|
13940
13940
|
value: function render() {
|
|
13941
13941
|
if (this.props.loading) {
|
|
13942
|
-
return
|
|
13942
|
+
return React.createElement(Spin, {
|
|
13943
13943
|
size: "small"
|
|
13944
|
-
},
|
|
13944
|
+
}, React.createElement(Input, _objectSpread2(_objectSpread2({}, this.props), {}, {
|
|
13945
13945
|
autoComplete: "off"
|
|
13946
13946
|
})));
|
|
13947
13947
|
} else {
|
|
13948
|
-
return
|
|
13948
|
+
return React.createElement(Input, _objectSpread2(_objectSpread2({}, this.props), {}, {
|
|
13949
13949
|
autoComplete: "off"
|
|
13950
13950
|
}));
|
|
13951
13951
|
}
|
|
@@ -13970,15 +13970,15 @@ var MyDiv = /*#__PURE__*/function (_React$Component2) {
|
|
|
13970
13970
|
key: "render",
|
|
13971
13971
|
value: function render() {
|
|
13972
13972
|
if (this.props.loading) {
|
|
13973
|
-
return
|
|
13973
|
+
return React.createElement(Spin, {
|
|
13974
13974
|
size: "small"
|
|
13975
|
-
},
|
|
13975
|
+
}, React.createElement("span", {
|
|
13976
13976
|
style: {
|
|
13977
13977
|
padding: '0 10px'
|
|
13978
13978
|
}
|
|
13979
13979
|
}, this.props.value));
|
|
13980
13980
|
} else {
|
|
13981
|
-
return
|
|
13981
|
+
return React.createElement("span", {
|
|
13982
13982
|
style: {
|
|
13983
13983
|
padding: '0 10px'
|
|
13984
13984
|
}
|
|
@@ -14011,9 +14011,9 @@ var MyItemNameDiv = /*#__PURE__*/function (_React$Component3) {
|
|
|
14011
14011
|
|
|
14012
14012
|
if (isMyShow) {
|
|
14013
14013
|
if (valueT) {
|
|
14014
|
-
return
|
|
14014
|
+
return React.createElement(Tooltip, {
|
|
14015
14015
|
title: valueT
|
|
14016
|
-
},
|
|
14016
|
+
}, React.createElement("span", {
|
|
14017
14017
|
style: {
|
|
14018
14018
|
padding: '0 10px',
|
|
14019
14019
|
color: '#0074ff',
|
|
@@ -14024,9 +14024,9 @@ var MyItemNameDiv = /*#__PURE__*/function (_React$Component3) {
|
|
|
14024
14024
|
}
|
|
14025
14025
|
}, valueT));
|
|
14026
14026
|
} else {
|
|
14027
|
-
return
|
|
14027
|
+
return React.createElement(Tooltip, {
|
|
14028
14028
|
title: valueF
|
|
14029
|
-
},
|
|
14029
|
+
}, React.createElement("span", {
|
|
14030
14030
|
style: {
|
|
14031
14031
|
padding: '0 10px',
|
|
14032
14032
|
display: 'block',
|
|
@@ -14038,9 +14038,9 @@ var MyItemNameDiv = /*#__PURE__*/function (_React$Component3) {
|
|
|
14038
14038
|
}
|
|
14039
14039
|
} else {
|
|
14040
14040
|
if (valueF) {
|
|
14041
|
-
return
|
|
14041
|
+
return React.createElement(Tooltip, {
|
|
14042
14042
|
title: valueF
|
|
14043
|
-
},
|
|
14043
|
+
}, React.createElement("span", {
|
|
14044
14044
|
style: {
|
|
14045
14045
|
padding: '0 10px',
|
|
14046
14046
|
display: 'block',
|
|
@@ -14050,9 +14050,9 @@ var MyItemNameDiv = /*#__PURE__*/function (_React$Component3) {
|
|
|
14050
14050
|
}
|
|
14051
14051
|
}, valueF));
|
|
14052
14052
|
} else {
|
|
14053
|
-
return
|
|
14053
|
+
return React.createElement(Tooltip, {
|
|
14054
14054
|
title: valueT
|
|
14055
|
-
},
|
|
14055
|
+
}, React.createElement("span", {
|
|
14056
14056
|
style: {
|
|
14057
14057
|
padding: '0 10px',
|
|
14058
14058
|
color: '#0074ff',
|
|
@@ -14079,7 +14079,7 @@ function formatSearch(value, search) {
|
|
|
14079
14079
|
return dcoding(e);
|
|
14080
14080
|
}).join("<span class=\"kts-invoice-operate-goods-list-table-search-protrude\" >".concat(search, "</span>"));
|
|
14081
14081
|
|
|
14082
|
-
return
|
|
14082
|
+
return React.createElement("span", {
|
|
14083
14083
|
dangerouslySetInnerHTML: {
|
|
14084
14084
|
__html: __html
|
|
14085
14085
|
}
|
|
@@ -14511,7 +14511,7 @@ var useRowSelection = (function () {
|
|
|
14511
14511
|
};
|
|
14512
14512
|
}(), [controller]);
|
|
14513
14513
|
var columnTitle = React.useMemo(function () {
|
|
14514
|
-
return
|
|
14514
|
+
return React.createElement(Checkbox, {
|
|
14515
14515
|
onChange: onClickSelectAll,
|
|
14516
14516
|
indeterminate: indeterminate,
|
|
14517
14517
|
checked: isAll
|
|
@@ -14712,16 +14712,16 @@ var useEndowCodeButton = (function () {
|
|
|
14712
14712
|
}, _callee2);
|
|
14713
14713
|
})), [controller]);
|
|
14714
14714
|
var menuItem = React.useMemo(function () {
|
|
14715
|
-
if (model === 'readOnly') return
|
|
14716
|
-
return
|
|
14715
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
14716
|
+
return React.createElement(Menu.Item, {
|
|
14717
14717
|
key: "2",
|
|
14718
14718
|
onClick: onClick,
|
|
14719
14719
|
disabled: disabled
|
|
14720
14720
|
}, "\u6279\u91CF\u8D4B\u7801");
|
|
14721
14721
|
}, [onClick, disabled, model]);
|
|
14722
14722
|
var button = React.useMemo(function () {
|
|
14723
|
-
if (model === 'readOnly') return
|
|
14724
|
-
return
|
|
14723
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
14724
|
+
return React.createElement(Button, {
|
|
14725
14725
|
onClick: onClick,
|
|
14726
14726
|
disabled: disabled
|
|
14727
14727
|
}, "\u6279\u91CF\u8D4B\u7801");
|
|
@@ -14787,19 +14787,19 @@ var useDelRowButton = (function () {
|
|
|
14787
14787
|
}())();
|
|
14788
14788
|
}, [controller]);
|
|
14789
14789
|
var menuItem = React.useMemo(function () {
|
|
14790
|
-
if (model === 'prefab') return
|
|
14791
|
-
if (model === 'readOnly') return
|
|
14792
|
-
return
|
|
14790
|
+
if (model === 'prefab') return React.createElement(React.Fragment, null);
|
|
14791
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
14792
|
+
return React.createElement(Menu.Item, {
|
|
14793
14793
|
key: "1",
|
|
14794
14794
|
onClick: onClick,
|
|
14795
14795
|
disabled: disabled
|
|
14796
14796
|
}, " \u5220\u9664\u884C ");
|
|
14797
14797
|
}, [model, onClick, disabled]);
|
|
14798
14798
|
var button = React.useMemo(function () {
|
|
14799
|
-
if (isRemRow === false) return
|
|
14800
|
-
if (model === 'prefab') return
|
|
14801
|
-
if (model === 'readOnly') return
|
|
14802
|
-
return
|
|
14799
|
+
if (isRemRow === false) return React.createElement(React.Fragment, null);
|
|
14800
|
+
if (model === 'prefab') return React.createElement(React.Fragment, null);
|
|
14801
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
14802
|
+
return React.createElement(Button, {
|
|
14803
14803
|
onClick: onClick,
|
|
14804
14804
|
disabled: disabled
|
|
14805
14805
|
}, "\u6279\u91CF\u5220\u9664");
|
|
@@ -14994,14 +14994,14 @@ var useAddDiscountRowButton = (function () {
|
|
|
14994
14994
|
}, _callee3);
|
|
14995
14995
|
})), [controller]);
|
|
14996
14996
|
var menuItem = React.useMemo(function () {
|
|
14997
|
-
return model === 'prefab' ?
|
|
14997
|
+
return model === 'prefab' ? React.createElement(React.Fragment, null) : isAddDiscount !== false ? React.createElement(Menu.Item, {
|
|
14998
14998
|
key: "0",
|
|
14999
14999
|
onClick: onClick,
|
|
15000
15000
|
disabled: disabled
|
|
15001
15001
|
}, "\u6DFB\u52A0\u6298\u6263\u884C") : undefined;
|
|
15002
15002
|
}, [isAddDiscount, disabled, onClick]);
|
|
15003
15003
|
var drawer = React.useMemo(function () {
|
|
15004
|
-
return
|
|
15004
|
+
return React.createElement(Drawer, {
|
|
15005
15005
|
className: "kts-invoice-operate-goods-list-add-discount-row",
|
|
15006
15006
|
width: 540,
|
|
15007
15007
|
title: "\u6DFB\u52A0\u6298\u6263\u884C",
|
|
@@ -15009,7 +15009,7 @@ var useAddDiscountRowButton = (function () {
|
|
|
15009
15009
|
destroyOnClose: true,
|
|
15010
15010
|
onClose: onClose,
|
|
15011
15011
|
visible: visible
|
|
15012
|
-
},
|
|
15012
|
+
}, React.createElement(DrawerBody, null));
|
|
15013
15013
|
}, [visible, onClose]);
|
|
15014
15014
|
return {
|
|
15015
15015
|
menuItem: menuItem,
|
|
@@ -15126,13 +15126,13 @@ var DrawerBody = decorator(Form.create())(function (props) {
|
|
|
15126
15126
|
});
|
|
15127
15127
|
});
|
|
15128
15128
|
}, 300), [form, lineAmountSum]);
|
|
15129
|
-
return
|
|
15129
|
+
return React.createElement(React.Fragment, null, React.createElement("div", {
|
|
15130
15130
|
className: "add-discount-row-body"
|
|
15131
|
-
},
|
|
15131
|
+
}, React.createElement("p", null, "\u5F53\u524D\u9009\u62E9", React.createElement(Text$3, {
|
|
15132
15132
|
type: "danger"
|
|
15133
|
-
}, discountGoodIndex.length), "\u884C\u88AB\u6298\u6263\u5546\u54C1\u884C\uFF0C\u91D1\u989D\u5408\u8BA1\xA5",
|
|
15133
|
+
}, discountGoodIndex.length), "\u884C\u88AB\u6298\u6263\u5546\u54C1\u884C\uFF0C\u91D1\u989D\u5408\u8BA1\xA5", React.createElement(Text$3, {
|
|
15134
15134
|
type: "danger"
|
|
15135
|
-
}, lineAmountSum.toFixed(2))),
|
|
15135
|
+
}, lineAmountSum.toFixed(2))), React.createElement(Form.Item, {
|
|
15136
15136
|
label: "\u6298\u6263\u7387\uFF1A"
|
|
15137
15137
|
}, getFieldDecorator('discount', {
|
|
15138
15138
|
rules: [{
|
|
@@ -15162,11 +15162,11 @@ var DrawerBody = decorator(Form.create())(function (props) {
|
|
|
15162
15162
|
callback();
|
|
15163
15163
|
}
|
|
15164
15164
|
}]
|
|
15165
|
-
})(
|
|
15165
|
+
})(React.createElement(Input, {
|
|
15166
15166
|
placeholder: "\u8BF7\u8F93\u5165\u5927\u4E8E0\u5C0F\u4E8E100\u7684\u6570\u5B57",
|
|
15167
15167
|
suffix: "%",
|
|
15168
15168
|
onChange: onChangeDiscount
|
|
15169
|
-
}))),
|
|
15169
|
+
}))), React.createElement(Form.Item, {
|
|
15170
15170
|
label: "\u6298\u6263\u91D1\u989D\uFF1A"
|
|
15171
15171
|
}, getFieldDecorator('discolineAmountunt', {
|
|
15172
15172
|
rules: [{
|
|
@@ -15196,19 +15196,19 @@ var DrawerBody = decorator(Form.create())(function (props) {
|
|
|
15196
15196
|
callback();
|
|
15197
15197
|
}
|
|
15198
15198
|
}]
|
|
15199
|
-
})(
|
|
15199
|
+
})(React.createElement(Input, {
|
|
15200
15200
|
placeholder: "\u8BF7\u8F93\u5165\u5927\u4E8E0\u5C0F\u4E8E\u91D1\u989D\u5408\u8BA1\u7684\u6570\u5B57",
|
|
15201
15201
|
suffix: "\xA5",
|
|
15202
15202
|
onChange: onChangeDiscolineAmountunt
|
|
15203
|
-
})))),
|
|
15203
|
+
})))), React.createElement("div", {
|
|
15204
15204
|
className: "add-discount-row-footer"
|
|
15205
|
-
},
|
|
15205
|
+
}, React.createElement(Button, {
|
|
15206
15206
|
block: true,
|
|
15207
15207
|
style: {
|
|
15208
15208
|
marginBottom: 12
|
|
15209
15209
|
},
|
|
15210
15210
|
onClick: onClose
|
|
15211
|
-
}, "\u53D6\u6D88"),
|
|
15211
|
+
}, "\u53D6\u6D88"), React.createElement(Button, {
|
|
15212
15212
|
type: "primary",
|
|
15213
15213
|
block: true,
|
|
15214
15214
|
onClick: onClickSave
|
|
@@ -15305,13 +15305,13 @@ function useMergeDetails() {
|
|
|
15305
15305
|
}];
|
|
15306
15306
|
}, [selectedGoodIndex, onClickManual, onClickAuto]);
|
|
15307
15307
|
var button = React.useMemo(function () {
|
|
15308
|
-
if (!isMergeDetails) return
|
|
15309
|
-
return
|
|
15308
|
+
if (!isMergeDetails) return React.createElement(React.Fragment, null);
|
|
15309
|
+
return React.createElement(Dropdown$1, {
|
|
15310
15310
|
menu: {
|
|
15311
15311
|
items: items
|
|
15312
15312
|
},
|
|
15313
15313
|
trigger: ['click']
|
|
15314
|
-
},
|
|
15314
|
+
}, React.createElement(Button, null, "\u5408\u5E76\u660E\u7EC6"));
|
|
15315
15315
|
}, [selectedGoodIndex.length, isMergeDetails]);
|
|
15316
15316
|
return {
|
|
15317
15317
|
/** 按钮 */
|
|
@@ -15397,8 +15397,8 @@ function useMergeDiscount() {
|
|
|
15397
15397
|
}, _callee);
|
|
15398
15398
|
})), [controller]);
|
|
15399
15399
|
var button = React.useMemo(function () {
|
|
15400
|
-
if (!isMergeDiscount) return
|
|
15401
|
-
return
|
|
15400
|
+
if (!isMergeDiscount) return React.createElement(React.Fragment, null);
|
|
15401
|
+
return React.createElement(Button, {
|
|
15402
15402
|
onClick: onClick,
|
|
15403
15403
|
disabled: goodsList.length <= 1
|
|
15404
15404
|
}, "\u5408\u5E76\u6298\u6263");
|
|
@@ -15576,8 +15576,8 @@ function useSalesDiscount() {
|
|
|
15576
15576
|
}).length <= 0;
|
|
15577
15577
|
}, [goodsList]);
|
|
15578
15578
|
var button = React.useMemo(function () {
|
|
15579
|
-
if (!isSalesDiscount) return
|
|
15580
|
-
return
|
|
15579
|
+
if (!isSalesDiscount) return React.createElement(React.Fragment, null);
|
|
15580
|
+
return React.createElement(Button, {
|
|
15581
15581
|
onClick: onClick,
|
|
15582
15582
|
disabled: disabled
|
|
15583
15583
|
}, "\u9500\u552E\u6298\u8BA9");
|
|
@@ -15780,12 +15780,12 @@ function useSalesGifts() {
|
|
|
15780
15780
|
}, [selectedGoodIndex, onClickManual, onClickAuto]);
|
|
15781
15781
|
var button = React.useMemo(function () {
|
|
15782
15782
|
if (!isSalesGifts) return;
|
|
15783
|
-
return
|
|
15783
|
+
return React.createElement(Dropdown$1, {
|
|
15784
15784
|
menu: {
|
|
15785
15785
|
items: items
|
|
15786
15786
|
},
|
|
15787
15787
|
trigger: ['click']
|
|
15788
|
-
},
|
|
15788
|
+
}, React.createElement(Button, null, "\u9500\u552E\u8D60\u54C1"));
|
|
15789
15789
|
}, [items, isSalesGifts]);
|
|
15790
15790
|
return {
|
|
15791
15791
|
/** 按钮 */
|
|
@@ -15823,7 +15823,7 @@ var GoodsList = /*#__PURE__*/function (_React$Component) {
|
|
|
15823
15823
|
_createClass(GoodsList, [{
|
|
15824
15824
|
key: "render",
|
|
15825
15825
|
value: function render() {
|
|
15826
|
-
return
|
|
15826
|
+
return React.createElement(Main, _objectSpread2({}, this.props));
|
|
15827
15827
|
}
|
|
15828
15828
|
}]);
|
|
15829
15829
|
|
|
@@ -16025,22 +16025,22 @@ var Main = decorator(Form.create())(function (props) {
|
|
|
16025
16025
|
};
|
|
16026
16026
|
}())();
|
|
16027
16027
|
}, [controller, props.isSwitchTax]);
|
|
16028
|
-
return
|
|
16028
|
+
return React.createElement("div", {
|
|
16029
16029
|
className: "kts-invoice-operate-goods-list",
|
|
16030
16030
|
onClick: function onClick(e) {
|
|
16031
16031
|
e.stopPropagation();
|
|
16032
16032
|
}
|
|
16033
|
-
},
|
|
16033
|
+
}, React.createElement("div", {
|
|
16034
16034
|
className: "kts-invoice-operate-goods-list-able"
|
|
16035
|
-
},
|
|
16035
|
+
}, React.createElement("div", {
|
|
16036
16036
|
className: "kts-invoice-operate-goods-list-able-list"
|
|
16037
|
-
},
|
|
16037
|
+
}, 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", {
|
|
16038
16038
|
className: "kts-invoice-operate-goods-list-able-extend"
|
|
16039
|
-
}, props.menuExpansion,
|
|
16039
|
+
}, props.menuExpansion, React.createElement(DescribeSwitch, null), React.createElement(TaxIncludedSwitch, null))), React.createElement("div", {
|
|
16040
16040
|
className: classNames('kts-invoice-operate-goods-list-table', {
|
|
16041
16041
|
'kts-invoice-operate-prefab': isprefab
|
|
16042
16042
|
})
|
|
16043
|
-
},
|
|
16043
|
+
}, React.createElement(TableVirtual, {
|
|
16044
16044
|
bordered: true,
|
|
16045
16045
|
size: "small",
|
|
16046
16046
|
rowKey: "$index",
|
|
@@ -16063,7 +16063,7 @@ var Main = decorator(Form.create())(function (props) {
|
|
|
16063
16063
|
}
|
|
16064
16064
|
};
|
|
16065
16065
|
}
|
|
16066
|
-
})),
|
|
16066
|
+
})), React.createElement("div", null, React.createElement(Statistics, null)));
|
|
16067
16067
|
});
|
|
16068
16068
|
|
|
16069
16069
|
var css_248z$c = ".kts-invoice-operate-seller {\n display: flex;\n}\n.kts-invoice-operate-seller .kts-invoice-operate-seller-message {\n flex: 1;\n display: flex;\n}\n.kts-invoice-operate-seller .kts-invoice-operate-seller-message .ktsAnt3x-descriptions-item-label {\n width: 179px;\n}\n.kts-invoice-operate-seller .kts-invoice-operate-seller-message .kts-invoice-operate-seller-message-list {\n width: 100%;\n}\n.kts-invoice-operate-seller .kts-invoice-operate-seller-message .kts-invoice-operate-seller-message-list .ktsAnt3x-descriptions-view {\n border: none;\n}\n.kts-invoice-operate-seller .kts-invoice-operate-seller-message .kts-invoice-operate-seller-message-list .ktsAnt3x-descriptions-item-label {\n padding: 0 10px;\n font-size: 12px;\n background-color: #fff;\n line-height: 30px;\n}\n.kts-invoice-operate-seller .kts-invoice-operate-seller-message .kts-invoice-operate-seller-message-list .ktsAnt3x-descriptions-item-label::before {\n content: '*';\n position: relative;\n color: red;\n font-weight: bold;\n margin-right: 2px;\n}\n.kts-invoice-operate-seller .kts-invoice-operate-seller-message .kts-invoice-operate-seller-message-list .ktsAnt3x-descriptions-item-content {\n padding: 0;\n}\n.kts-invoice-operate-seller .kts-invoice-operate-seller-message .kts-invoice-operate-seller-message-list .ktsAnt3x-descriptions-item-content .ktsAnt3x-input {\n box-shadow: none;\n border-color: #fff;\n border-radius: 0;\n padding: 0 10px;\n font-size: 12px;\n line-height: 30px;\n width: 100%;\n height: 30px;\n}\n.kts-invoice-operate-seller .kts-invoice-operate-seller-message .kts-invoice-operate-seller-message-list .ktsAnt3x-descriptions-item-content .ktsAnt3x-input:hover {\n border: 1 solid;\n border-color: #40a9ff;\n border-right-width: 1px !important;\n}\n.kts-invoice-operate-seller .kts-invoice-operate-seller-message .kts-invoice-operate-seller-message-list .ktsAnt3x-descriptions-item-content .has-error .ktsAnt3x-input,\n.kts-invoice-operate-seller .kts-invoice-operate-seller-message .kts-invoice-operate-seller-message-list .ktsAnt3x-descriptions-item-content .has-error .ktsAnt3x-input:hover {\n background-color: #fff;\n border: 1 solid;\n border-color: #f5222d;\n}\n.kts-invoice-operate-seller .kts-invoice-operate-seller-message .kts-invoice-operate-seller-message-list .ktsAnt3x-form-item {\n margin: 0;\n}\n.kts-invoice-operate-seller .kts-invoice-operate-seller-message .kts-invoice-operate-seller-message-list .ktsAnt3x-form-item-control {\n line-height: 0;\n}\n.kts-invoice-operate-seller .kts-invoice-operate-seller-message .kts-invoice-operate-seller-message-list .ktsAnt3x-form-explain {\n position: absolute;\n right: 5px;\n top: 6px;\n z-index: 10;\n}\n.kts-invoice-operate-seller .kts-invoice-operate-seller-remarks {\n border-left: 1px solid #dcdcdc;\n display: flex;\n flex: none;\n width: 458px;\n}\n.kts-invoice-operate-seller .kts-invoice-operate-seller-remarks-value {\n flex: 1;\n display: flex;\n flex-direction: column;\n}\n.kts-invoice-operate-seller .kts-invoice-operate-seller-remarks-value textarea {\n flex: 1;\n margin-bottom: 0;\n border: none;\n border-radius: 0;\n}\n.kts-invoice-operate-seller .kts-invoice-operate-seller-title {\n flex: none;\n width: 30px;\n height: 100%;\n text-align: center;\n border-right: 1px solid #dcdcdc;\n display: table;\n padding: 0 5px;\n}\n.kts-invoice-operate-seller .kts-invoice-operate-seller-title label {\n display: table-cell;\n vertical-align: middle;\n}\n";
|
|
@@ -16088,7 +16088,7 @@ var Buyer = /*#__PURE__*/function (_React$Component) {
|
|
|
16088
16088
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
16089
16089
|
|
|
16090
16090
|
_this.render = function () {
|
|
16091
|
-
return
|
|
16091
|
+
return React.createElement(Main$1, _objectSpread2({}, _this.props));
|
|
16092
16092
|
};
|
|
16093
16093
|
|
|
16094
16094
|
return _this;
|
|
@@ -16119,7 +16119,7 @@ var Main$1 = decorator(Form.create())(function (props) {
|
|
|
16119
16119
|
return [{
|
|
16120
16120
|
id: 'sellerName',
|
|
16121
16121
|
label: '销售方名称',
|
|
16122
|
-
node:
|
|
16122
|
+
node: React.createElement(Input, {
|
|
16123
16123
|
readOnly: model === 'prefab',
|
|
16124
16124
|
size: "small"
|
|
16125
16125
|
}),
|
|
@@ -16132,7 +16132,7 @@ var Main$1 = decorator(Form.create())(function (props) {
|
|
|
16132
16132
|
}, {
|
|
16133
16133
|
id: 'sellerNo',
|
|
16134
16134
|
label: '销售方纳税人识别号',
|
|
16135
|
-
node:
|
|
16135
|
+
node: React.createElement(Input, {
|
|
16136
16136
|
readOnly: model === 'prefab',
|
|
16137
16137
|
size: "small"
|
|
16138
16138
|
}),
|
|
@@ -16145,7 +16145,7 @@ var Main$1 = decorator(Form.create())(function (props) {
|
|
|
16145
16145
|
}, {
|
|
16146
16146
|
id: 'sellerAddress',
|
|
16147
16147
|
label: '销售方地址及电话',
|
|
16148
|
-
node:
|
|
16148
|
+
node: React.createElement(Input, {
|
|
16149
16149
|
readOnly: model === 'prefab',
|
|
16150
16150
|
size: "small"
|
|
16151
16151
|
}),
|
|
@@ -16158,7 +16158,7 @@ var Main$1 = decorator(Form.create())(function (props) {
|
|
|
16158
16158
|
}, {
|
|
16159
16159
|
id: 'sellerBank',
|
|
16160
16160
|
label: '销售方开户行及账号',
|
|
16161
|
-
node:
|
|
16161
|
+
node: React.createElement(Input, {
|
|
16162
16162
|
readOnly: model === 'prefab',
|
|
16163
16163
|
size: "small"
|
|
16164
16164
|
}),
|
|
@@ -16184,31 +16184,31 @@ var Main$1 = decorator(Form.create())(function (props) {
|
|
|
16184
16184
|
return getFieldDecorator(e.id, e.options)(e.node);
|
|
16185
16185
|
}
|
|
16186
16186
|
}, [props.formRender]);
|
|
16187
|
-
return
|
|
16187
|
+
return React.createElement(Form, null, React.createElement("div", {
|
|
16188
16188
|
className: "kts-invoice-operate-seller"
|
|
16189
|
-
},
|
|
16189
|
+
}, React.createElement("div", {
|
|
16190
16190
|
className: "kts-invoice-operate-seller-message"
|
|
16191
|
-
},
|
|
16191
|
+
}, React.createElement("div", {
|
|
16192
16192
|
className: "kts-invoice-operate-seller-title"
|
|
16193
|
-
},
|
|
16193
|
+
}, React.createElement("label", null, "\u9500\u552E\u65B9")), React.createElement(Descriptions, {
|
|
16194
16194
|
className: "kts-invoice-operate-seller-message-list",
|
|
16195
16195
|
size: "small",
|
|
16196
16196
|
column: 1,
|
|
16197
16197
|
bordered: true
|
|
16198
16198
|
}, formItem.map(function (e, i) {
|
|
16199
|
-
return
|
|
16199
|
+
return React.createElement(Descriptions.Item, {
|
|
16200
16200
|
key: i,
|
|
16201
16201
|
label: e.label
|
|
16202
|
-
},
|
|
16203
|
-
}))),
|
|
16202
|
+
}, React.createElement(Form.Item, null, createFormItem(e)));
|
|
16203
|
+
}))), React.createElement("div", {
|
|
16204
16204
|
className: "kts-invoice-operate-seller-remarks"
|
|
16205
|
-
},
|
|
16205
|
+
}, React.createElement("div", {
|
|
16206
16206
|
className: "kts-invoice-operate-seller-title"
|
|
16207
|
-
},
|
|
16207
|
+
}, React.createElement("label", null, "\u5907\u6CE8")), React.createElement("div", {
|
|
16208
16208
|
className: "kts-invoice-operate-seller-remarks-value"
|
|
16209
16209
|
}, getFieldDecorator('remarks', {
|
|
16210
16210
|
initialValue: props.defaultsellerRemarks
|
|
16211
|
-
})(
|
|
16211
|
+
})(React.createElement(TextArea, null))))));
|
|
16212
16212
|
});
|
|
16213
16213
|
|
|
16214
16214
|
var ImportBuyerButton = (function () {
|
|
@@ -16235,7 +16235,7 @@ var ImportBuyerButton = (function () {
|
|
|
16235
16235
|
};
|
|
16236
16236
|
}())();
|
|
16237
16237
|
}, [controller]);
|
|
16238
|
-
return
|
|
16238
|
+
return React.createElement(React.Fragment, null, controller.getBuyerList && React.createElement(Button, {
|
|
16239
16239
|
type: "link",
|
|
16240
16240
|
icon: "plus-circle",
|
|
16241
16241
|
onClick: onClick
|
|
@@ -16274,29 +16274,29 @@ var BuyerNameInput = (function (props) {
|
|
|
16274
16274
|
var content = React.useMemo(function () {
|
|
16275
16275
|
var _dataSource$recent;
|
|
16276
16276
|
|
|
16277
|
-
return
|
|
16277
|
+
return React.createElement("div", {
|
|
16278
16278
|
className: 'kts-invoice-operate-buyer-name-content'
|
|
16279
|
-
}, loading ?
|
|
16279
|
+
}, loading ? React.createElement("div", {
|
|
16280
16280
|
style: {
|
|
16281
16281
|
textAlign: 'center'
|
|
16282
16282
|
}
|
|
16283
|
-
},
|
|
16283
|
+
}, React.createElement(Spin, null)) : React.createElement(React.Fragment, null, React.createElement("div", {
|
|
16284
16284
|
className: 'kts-invoice-operate-buyer-name-content-block',
|
|
16285
16285
|
style: {
|
|
16286
16286
|
padding: '14px 10px'
|
|
16287
16287
|
}
|
|
16288
|
-
},
|
|
16288
|
+
}, React.createElement("label", {
|
|
16289
16289
|
style: {
|
|
16290
16290
|
marginBottom: 10
|
|
16291
16291
|
}
|
|
16292
|
-
}, "\u6700\u8FD1\u5F00\u5177"),
|
|
16292
|
+
}, "\u6700\u8FD1\u5F00\u5177"), React.createElement("ul", {
|
|
16293
16293
|
className: 'kts-invoice-operate-buyer-name-content-recently-issued'
|
|
16294
|
-
}, !dataSource.recent || dataSource.recent.length <= 0 ?
|
|
16294
|
+
}, !dataSource.recent || dataSource.recent.length <= 0 ? React.createElement(Empty, {
|
|
16295
16295
|
image: Empty.PRESENTED_IMAGE_SIMPLE
|
|
16296
16296
|
}) : (_dataSource$recent = dataSource.recent) === null || _dataSource$recent === void 0 ? void 0 : _dataSource$recent.map(function (e, i) {
|
|
16297
16297
|
var _dataSource$recent$le, _dataSource$recent2;
|
|
16298
16298
|
|
|
16299
|
-
return
|
|
16299
|
+
return React.createElement("li", {
|
|
16300
16300
|
key: i,
|
|
16301
16301
|
onClick: function onClick() {
|
|
16302
16302
|
onClickItem(e);
|
|
@@ -16304,37 +16304,37 @@ var BuyerNameInput = (function (props) {
|
|
|
16304
16304
|
style: {
|
|
16305
16305
|
marginBottom: interval(i, (_dataSource$recent$le = (_dataSource$recent2 = dataSource.recent) === null || _dataSource$recent2 === void 0 ? void 0 : _dataSource$recent2.length) !== null && _dataSource$recent$le !== void 0 ? _dataSource$recent$le : 0)
|
|
16306
16306
|
}
|
|
16307
|
-
},
|
|
16308
|
-
}))),
|
|
16307
|
+
}, React.createElement(MyTag, null, e.buyerName));
|
|
16308
|
+
}))), React.createElement(Divider, {
|
|
16309
16309
|
style: {
|
|
16310
16310
|
margin: "0 6px"
|
|
16311
16311
|
}
|
|
16312
|
-
}),
|
|
16312
|
+
}), React.createElement("div", {
|
|
16313
16313
|
className: 'kts-invoice-operate-buyer-name-content-block',
|
|
16314
16314
|
style: {
|
|
16315
16315
|
padding: '14px 10px 4px'
|
|
16316
16316
|
}
|
|
16317
|
-
},
|
|
16317
|
+
}, React.createElement("label", {
|
|
16318
16318
|
style: {
|
|
16319
16319
|
padding: '0 10px'
|
|
16320
16320
|
}
|
|
16321
|
-
}, "\u9009\u62E9\u516C\u53F8"),
|
|
16321
|
+
}, "\u9009\u62E9\u516C\u53F8"), React.createElement("div", {
|
|
16322
16322
|
style: {
|
|
16323
16323
|
maxHeight: 200,
|
|
16324
16324
|
overflow: "auto"
|
|
16325
16325
|
}
|
|
16326
|
-
}, !dataSource.list || dataSource.list.length <= 0 ?
|
|
16326
|
+
}, !dataSource.list || dataSource.list.length <= 0 ? React.createElement(Empty, {
|
|
16327
16327
|
image: Empty.PRESENTED_IMAGE_SIMPLE
|
|
16328
16328
|
}) : dataSource.list.map(function (e, i) {
|
|
16329
|
-
return
|
|
16329
|
+
return React.createElement("ul", {
|
|
16330
16330
|
key: i,
|
|
16331
16331
|
onClick: function onClick() {
|
|
16332
16332
|
onClickItem(e);
|
|
16333
16333
|
},
|
|
16334
16334
|
className: 'kts-invoice-operate-buyer-name-content-select-company'
|
|
16335
|
-
},
|
|
16335
|
+
}, React.createElement("li", {
|
|
16336
16336
|
title: e.buyerName
|
|
16337
|
-
}, e.buyerName),
|
|
16337
|
+
}, e.buyerName), React.createElement("li", {
|
|
16338
16338
|
title: e.buyerNo
|
|
16339
16339
|
}, e.buyerNo));
|
|
16340
16340
|
})))));
|
|
@@ -16375,7 +16375,7 @@ var BuyerNameInput = (function (props) {
|
|
|
16375
16375
|
}, [visible, props.value]);
|
|
16376
16376
|
|
|
16377
16377
|
if (model === 'prefab' || !autoContainer) {
|
|
16378
|
-
return
|
|
16378
|
+
return React.createElement(Input, {
|
|
16379
16379
|
size: "small",
|
|
16380
16380
|
autoComplete: "off",
|
|
16381
16381
|
value: props.value,
|
|
@@ -16386,14 +16386,14 @@ var BuyerNameInput = (function (props) {
|
|
|
16386
16386
|
});
|
|
16387
16387
|
}
|
|
16388
16388
|
|
|
16389
|
-
return
|
|
16389
|
+
return React.createElement(Popover$1, {
|
|
16390
16390
|
onVisibleChange: setVisible,
|
|
16391
16391
|
overlayClassName: 'kts-invoice-operate-buyer-name-popover',
|
|
16392
16392
|
placement: "bottomLeft",
|
|
16393
16393
|
trigger: "click",
|
|
16394
16394
|
visible: visible,
|
|
16395
16395
|
content: content
|
|
16396
|
-
},
|
|
16396
|
+
}, React.createElement(Input, {
|
|
16397
16397
|
size: "small",
|
|
16398
16398
|
autoComplete: "off",
|
|
16399
16399
|
value: props.value,
|
|
@@ -16471,7 +16471,7 @@ function useDataSource() {
|
|
|
16471
16471
|
}
|
|
16472
16472
|
|
|
16473
16473
|
function MyTag(props) {
|
|
16474
|
-
return
|
|
16474
|
+
return React.createElement("span", {
|
|
16475
16475
|
className: 'kts-invoice-operate-buyer-name-content-tag',
|
|
16476
16476
|
title: props.children
|
|
16477
16477
|
}, props.children);
|
|
@@ -16507,7 +16507,7 @@ var Buyer$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
16507
16507
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
16508
16508
|
|
|
16509
16509
|
_this.render = function () {
|
|
16510
|
-
return
|
|
16510
|
+
return React.createElement(Main$2, _objectSpread2({}, _this.props));
|
|
16511
16511
|
};
|
|
16512
16512
|
|
|
16513
16513
|
return _this;
|
|
@@ -16538,7 +16538,7 @@ var Main$2 = decorator(Form.create())(function (props) {
|
|
|
16538
16538
|
return [{
|
|
16539
16539
|
id: 'buyerName',
|
|
16540
16540
|
label: '购买方名称',
|
|
16541
|
-
node:
|
|
16541
|
+
node: React.createElement(Input, {
|
|
16542
16542
|
size: "small",
|
|
16543
16543
|
autoComplete: "off",
|
|
16544
16544
|
readOnly: model === 'prefab'
|
|
@@ -16552,7 +16552,7 @@ var Main$2 = decorator(Form.create())(function (props) {
|
|
|
16552
16552
|
}, {
|
|
16553
16553
|
id: 'buyerNo',
|
|
16554
16554
|
label: '购买方纳税人识别号',
|
|
16555
|
-
node:
|
|
16555
|
+
node: React.createElement(Input, {
|
|
16556
16556
|
size: "small",
|
|
16557
16557
|
autoComplete: "off",
|
|
16558
16558
|
readOnly: model === 'prefab'
|
|
@@ -16566,7 +16566,7 @@ var Main$2 = decorator(Form.create())(function (props) {
|
|
|
16566
16566
|
}, {
|
|
16567
16567
|
id: 'buyerAddress',
|
|
16568
16568
|
label: '购买方地址及电话',
|
|
16569
|
-
node:
|
|
16569
|
+
node: React.createElement(Input, {
|
|
16570
16570
|
size: "small",
|
|
16571
16571
|
autoComplete: "off",
|
|
16572
16572
|
readOnly: model === 'prefab'
|
|
@@ -16580,7 +16580,7 @@ var Main$2 = decorator(Form.create())(function (props) {
|
|
|
16580
16580
|
}, {
|
|
16581
16581
|
id: 'buyerBank',
|
|
16582
16582
|
label: '购买方开户行及账号',
|
|
16583
|
-
node:
|
|
16583
|
+
node: React.createElement(Input, {
|
|
16584
16584
|
size: "small",
|
|
16585
16585
|
autoComplete: "off",
|
|
16586
16586
|
readOnly: model === 'prefab'
|
|
@@ -16602,7 +16602,7 @@ var Main$2 = decorator(Form.create())(function (props) {
|
|
|
16602
16602
|
if (e.options.rules.some(function (e) {
|
|
16603
16603
|
return e.required;
|
|
16604
16604
|
})) {
|
|
16605
|
-
return
|
|
16605
|
+
return React.createElement(React.Fragment, null, React.createElement(Text$4, {
|
|
16606
16606
|
type: "danger"
|
|
16607
16607
|
}, "*"), e.label);
|
|
16608
16608
|
} else {
|
|
@@ -16612,29 +16612,29 @@ var Main$2 = decorator(Form.create())(function (props) {
|
|
|
16612
16612
|
return e.label;
|
|
16613
16613
|
}
|
|
16614
16614
|
}, []);
|
|
16615
|
-
return
|
|
16615
|
+
return React.createElement(Form, null, React.createElement("div", {
|
|
16616
16616
|
className: "kts-invoice-operate-buyer"
|
|
16617
|
-
},
|
|
16617
|
+
}, React.createElement("div", {
|
|
16618
16618
|
className: "kts-invoice-operate-buyer-message"
|
|
16619
|
-
},
|
|
16619
|
+
}, React.createElement("div", {
|
|
16620
16620
|
className: "kts-invoice-operate-buyer-title"
|
|
16621
|
-
},
|
|
16621
|
+
}, React.createElement("label", null, "\u8D2D\u4E70\u65B9")), React.createElement("div", {
|
|
16622
16622
|
className: "kts-invoice-operate-buyer-message-Import"
|
|
16623
|
-
}, model !== 'prefab' &&
|
|
16623
|
+
}, model !== 'prefab' && React.createElement(ImportBuyerButton, null)), React.createElement(Descriptions, {
|
|
16624
16624
|
className: "kts-invoice-operate-buyer-message-list",
|
|
16625
16625
|
size: "small",
|
|
16626
16626
|
column: 1,
|
|
16627
16627
|
bordered: true
|
|
16628
16628
|
}, formItem.map(function (item, i) {
|
|
16629
|
-
return
|
|
16629
|
+
return React.createElement(Descriptions.Item, {
|
|
16630
16630
|
key: i,
|
|
16631
16631
|
label: getlabel(item)
|
|
16632
|
-
},
|
|
16633
|
-
}))),
|
|
16632
|
+
}, React.createElement(Form.Item, null, getFieldDecorator(item.id, item.options)(autoContainer ? item.id === 'buyerName' ? React.createElement(BuyerNameInput, null) : item.node : item.node)));
|
|
16633
|
+
}))), React.createElement("div", {
|
|
16634
16634
|
className: "kts-invoice-operate-buyer-password"
|
|
16635
|
-
},
|
|
16635
|
+
}, React.createElement("div", {
|
|
16636
16636
|
className: "kts-invoice-operate-buyer-title"
|
|
16637
|
-
},
|
|
16637
|
+
}, React.createElement("label", null, "\u5BC6\u7801\u533A")), React.createElement("div", null))));
|
|
16638
16638
|
});
|
|
16639
16639
|
|
|
16640
16640
|
var css_248z$e = ".kts-invoice-operate-sign form {\n display: flex;\n}\n.kts-invoice-operate-sign form .ktsAnt3x-row.ktsAnt3x-form-item {\n margin: 0;\n}\n.kts-invoice-operate-sign form > div {\n flex: 1;\n text-align: center;\n}\n";
|
|
@@ -16651,21 +16651,21 @@ var Sign = decorator(Form.create())(function (props) {
|
|
|
16651
16651
|
}, []); // 注册 form
|
|
16652
16652
|
|
|
16653
16653
|
controller.useForm('sign', form);
|
|
16654
|
-
return
|
|
16654
|
+
return React.createElement("div", {
|
|
16655
16655
|
className: "kts-invoice-operate-sign"
|
|
16656
|
-
},
|
|
16656
|
+
}, React.createElement(Form, _objectSpread2({}, formItemLayout), React.createElement("div", null, React.createElement(Form.Item, {
|
|
16657
16657
|
label: "\u6536\u6B3E\u4EBA"
|
|
16658
16658
|
}, getFieldDecorator('payee', {
|
|
16659
16659
|
initialValue: props.defaultPayee
|
|
16660
|
-
})(
|
|
16660
|
+
})(React.createElement(Input, {
|
|
16661
16661
|
size: "small"
|
|
16662
|
-
})))),
|
|
16662
|
+
})))), React.createElement("div", null, React.createElement(Form.Item, {
|
|
16663
16663
|
label: "\u590D\u6838\u4EBA"
|
|
16664
16664
|
}, getFieldDecorator('reviewer', {
|
|
16665
16665
|
initialValue: props.defaultReviewer
|
|
16666
|
-
})(
|
|
16666
|
+
})(React.createElement(Input, {
|
|
16667
16667
|
size: "small"
|
|
16668
|
-
})))),
|
|
16668
|
+
})))), React.createElement("div", null, React.createElement(Form.Item, {
|
|
16669
16669
|
label: "\u5F00\u7968\u4EBA"
|
|
16670
16670
|
}, getFieldDecorator('issuer', {
|
|
16671
16671
|
initialValue: props.defaultIssuer,
|
|
@@ -16673,7 +16673,7 @@ var Sign = decorator(Form.create())(function (props) {
|
|
|
16673
16673
|
required: true,
|
|
16674
16674
|
message: '请输入开票人'
|
|
16675
16675
|
}]
|
|
16676
|
-
})(
|
|
16676
|
+
})(React.createElement(Input, {
|
|
16677
16677
|
size: "small"
|
|
16678
16678
|
}))))));
|
|
16679
16679
|
});
|
|
@@ -16702,21 +16702,21 @@ var InvoiceHeaderDigtal = decorator(Form.create())(function (props) {
|
|
|
16702
16702
|
return '电子发票(增值税专用发票)';
|
|
16703
16703
|
}, [props.title]);
|
|
16704
16704
|
controller.useForm('invoiceHeader', form);
|
|
16705
|
-
return
|
|
16705
|
+
return React.createElement("div", {
|
|
16706
16706
|
className: "kts-invoice-operate-invoice-digtal-header"
|
|
16707
|
-
},
|
|
16707
|
+
}, React.createElement("div", {
|
|
16708
16708
|
className: "digtal-header-title"
|
|
16709
16709
|
}, title), form.getFieldDecorator('tag', {
|
|
16710
16710
|
initialValue: props.defaultTag
|
|
16711
|
-
})(
|
|
16711
|
+
})(React.createElement(Tag, null)), React.createElement("div", {
|
|
16712
16712
|
className: "digtal-header-fields"
|
|
16713
16713
|
}, form.getFieldDecorator('no', {
|
|
16714
16714
|
initialValue: props.defaultNo
|
|
16715
|
-
})(
|
|
16715
|
+
})(React.createElement(Field, {
|
|
16716
16716
|
title: "\u53D1\u7968\u53F7\u7801\uFF1A"
|
|
16717
16717
|
})), form.getFieldDecorator('invoicingDate', {
|
|
16718
16718
|
initialValue: props.defaultInvoicingDate
|
|
16719
|
-
})(
|
|
16719
|
+
})(React.createElement(Field, {
|
|
16720
16720
|
title: "\u5F00\u7968\u65E5\u671F\uFF1A"
|
|
16721
16721
|
}))));
|
|
16722
16722
|
});
|
|
@@ -16741,15 +16741,15 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
16741
16741
|
value = _this$props.value;
|
|
16742
16742
|
|
|
16743
16743
|
if (value) {
|
|
16744
|
-
return
|
|
16744
|
+
return React.createElement("div", {
|
|
16745
16745
|
className: "digtal-header-field"
|
|
16746
|
-
},
|
|
16746
|
+
}, React.createElement("div", {
|
|
16747
16747
|
className: "digtal-header-field-title"
|
|
16748
|
-
}, title),
|
|
16748
|
+
}, title), React.createElement("div", {
|
|
16749
16749
|
className: "digtal-header-field-value"
|
|
16750
16750
|
}, value));
|
|
16751
16751
|
} else {
|
|
16752
|
-
return
|
|
16752
|
+
return React.createElement(React.Fragment, null);
|
|
16753
16753
|
}
|
|
16754
16754
|
}
|
|
16755
16755
|
}]);
|
|
@@ -16771,9 +16771,9 @@ var Tag = /*#__PURE__*/function (_React$Component2) {
|
|
|
16771
16771
|
_createClass(Tag, [{
|
|
16772
16772
|
key: "render",
|
|
16773
16773
|
value: function render() {
|
|
16774
|
-
return this.props.value ?
|
|
16774
|
+
return this.props.value ? React.createElement("div", {
|
|
16775
16775
|
className: "digtal-header-tag"
|
|
16776
|
-
}, this.props.value) :
|
|
16776
|
+
}, this.props.value) : React.createElement(React.Fragment, null);
|
|
16777
16777
|
}
|
|
16778
16778
|
}]);
|
|
16779
16779
|
|
|
@@ -16949,59 +16949,59 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
16949
16949
|
return rulesMap[field] || defaultRules;
|
|
16950
16950
|
}, [rulesMap, isReadOnly, isReadOnly]);
|
|
16951
16951
|
controller.useForm('stakeholder', form);
|
|
16952
|
-
return
|
|
16952
|
+
return React.createElement("div", {
|
|
16953
16953
|
className: classNames("kts-invoice-operate-invoice-digtal-stakeholder", {
|
|
16954
16954
|
readOnly: readOnly
|
|
16955
16955
|
})
|
|
16956
|
-
},
|
|
16957
|
-
return
|
|
16958
|
-
}), !readOnly &&
|
|
16956
|
+
}, React.createElement("div", null, '购买方信息'.split('').map(function (e) {
|
|
16957
|
+
return React.createElement("span", null, e);
|
|
16958
|
+
}), !readOnly && React.createElement(Icon, {
|
|
16959
16959
|
className: "digtal-stakeholder-expand-button",
|
|
16960
16960
|
component: isExpand ? SvgArrowUp : SvgArrowDown,
|
|
16961
16961
|
onClick: onExpand
|
|
16962
|
-
})),
|
|
16962
|
+
})), React.createElement("div", null, React.createElement("div", {
|
|
16963
16963
|
style: {
|
|
16964
16964
|
marginTop: 20
|
|
16965
16965
|
},
|
|
16966
16966
|
className: 'natural-person-flag'
|
|
16967
|
-
}, props.isNaturalPerson === true &&
|
|
16967
|
+
}, props.isNaturalPerson === true && React.createElement(Form.Item, {
|
|
16968
16968
|
colon: false
|
|
16969
|
-
}, getFieldDecorator('naturalPersonFlag', {})(
|
|
16969
|
+
}, getFieldDecorator('naturalPersonFlag', {})(React.createElement(NaturalPersonFlag, {
|
|
16970
16970
|
readOnly: isReadOnly('naturalPersonFlag')
|
|
16971
|
-
})))),
|
|
16971
|
+
})))), React.createElement(Form, {
|
|
16972
16972
|
className: "digtal-stakeholder-form"
|
|
16973
|
-
},
|
|
16973
|
+
}, React.createElement(Row, {
|
|
16974
16974
|
gutter: [16, 0]
|
|
16975
|
-
},
|
|
16975
|
+
}, React.createElement(Col, {
|
|
16976
16976
|
span: 24
|
|
16977
|
-
},
|
|
16977
|
+
}, React.createElement(Form.Item, {
|
|
16978
16978
|
label: "\u540D\u79F0",
|
|
16979
16979
|
colon: false
|
|
16980
16980
|
}, getFieldDecorator('buyerName', {
|
|
16981
16981
|
rules: getRules('buyerName', RULES.companyName('购买方名称'))
|
|
16982
|
-
})(
|
|
16982
|
+
})(React.createElement(BuyerNameInput$1, {
|
|
16983
16983
|
myform: form,
|
|
16984
16984
|
fieldName: 'buyerName',
|
|
16985
16985
|
readOnly: isReadOnly('buyerName'),
|
|
16986
16986
|
placeholder: "\u8BF7\u8F93\u5165\u540D\u79F0",
|
|
16987
16987
|
autoComplete: "off",
|
|
16988
|
-
suffix: isShowImportButton === true &&
|
|
16988
|
+
suffix: isShowImportButton === true && React.createElement(Button$1, {
|
|
16989
16989
|
type: 'link',
|
|
16990
16990
|
style: {
|
|
16991
16991
|
padding: 0,
|
|
16992
16992
|
width: 20,
|
|
16993
16993
|
height: '100%'
|
|
16994
16994
|
},
|
|
16995
|
-
icon:
|
|
16995
|
+
icon: React.createElement(Icon, {
|
|
16996
16996
|
component: SvgPlus
|
|
16997
16997
|
}),
|
|
16998
16998
|
onClick: function onClick() {
|
|
16999
16999
|
onClickImportButton && onClickImportButton(controller);
|
|
17000
17000
|
}
|
|
17001
17001
|
})
|
|
17002
|
-
})))),
|
|
17002
|
+
})))), React.createElement(Col, {
|
|
17003
17003
|
span: 24
|
|
17004
|
-
},
|
|
17004
|
+
}, React.createElement(Form.Item, {
|
|
17005
17005
|
label: "\u7EDF\u4E00\u793E\u4F1A\u4FE1\u7528\u4EE3\u7801/\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7",
|
|
17006
17006
|
colon: false
|
|
17007
17007
|
}, getFieldDecorator('buyerTaxId', {
|
|
@@ -17009,15 +17009,15 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
17009
17009
|
required: !isVatNormal,
|
|
17010
17010
|
message: '购买方纳税人识别号必填'
|
|
17011
17011
|
}].concat(_toConsumableArray(RULES.taxId('购买方纳税人识别号'))))
|
|
17012
|
-
})(
|
|
17012
|
+
})(React.createElement(BuyerNameInput$1, {
|
|
17013
17013
|
myform: form,
|
|
17014
17014
|
fieldName: 'buyerTaxId',
|
|
17015
17015
|
readOnly: isReadOnly('buyerTaxId'),
|
|
17016
17016
|
placeholder: "\u8BF7\u8F93\u5165\u7EDF\u4E00\u793E\u4F1A\u4FE1\u7528\u4EE3\u7801/\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7",
|
|
17017
17017
|
autoComplete: "off"
|
|
17018
|
-
})))), isExpand &&
|
|
17018
|
+
})))), isExpand && React.createElement(React.Fragment, null, React.createElement(Col, {
|
|
17019
17019
|
span: 14
|
|
17020
|
-
},
|
|
17020
|
+
}, React.createElement(Form.Item, {
|
|
17021
17021
|
label: "\u8D2D\u4E70\u65B9\u5730\u5740",
|
|
17022
17022
|
colon: false
|
|
17023
17023
|
}, getFieldDecorator('buyerAddress', {
|
|
@@ -17025,81 +17025,81 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
17025
17025
|
max: 100,
|
|
17026
17026
|
message: '购买方地址内容超长'
|
|
17027
17027
|
}])
|
|
17028
|
-
})(
|
|
17028
|
+
})(React.createElement(MyInput$1, {
|
|
17029
17029
|
readOnly: isReadOnly('buyerAddress'),
|
|
17030
17030
|
placeholder: "\u8BF7\u8F93\u5165\u8D2D\u4E70\u65B9\u5730\u5740",
|
|
17031
17031
|
autoComplete: "off"
|
|
17032
|
-
})))),
|
|
17032
|
+
})))), React.createElement(Col, {
|
|
17033
17033
|
span: 10
|
|
17034
|
-
},
|
|
17034
|
+
}, React.createElement(Form.Item, {
|
|
17035
17035
|
label: "\u7535\u8BDD",
|
|
17036
17036
|
colon: false,
|
|
17037
17037
|
className: 'telephone'
|
|
17038
17038
|
}, getFieldDecorator('buyerPhone', {
|
|
17039
17039
|
rules: getRules('buyerPhone', RULES.buyerTelPhone('购买方电话'))
|
|
17040
|
-
})(
|
|
17040
|
+
})(React.createElement(MyInput$1, {
|
|
17041
17041
|
readOnly: isReadOnly('buyerPhone'),
|
|
17042
17042
|
placeholder: "\u8BF7\u8F93\u5165\u7535\u8BDD",
|
|
17043
17043
|
autoComplete: "off"
|
|
17044
|
-
})))),
|
|
17044
|
+
})))), React.createElement(Col, {
|
|
17045
17045
|
span: 14
|
|
17046
|
-
},
|
|
17046
|
+
}, React.createElement(Form.Item, {
|
|
17047
17047
|
label: "\u8D2D\u4E70\u65B9\u5F00\u6237\u94F6\u884C",
|
|
17048
17048
|
colon: false
|
|
17049
17049
|
}, getFieldDecorator('buyerBank', {
|
|
17050
17050
|
rules: getRules('buyerBank', RULES.bankName('购买方开户银行'))
|
|
17051
|
-
})(
|
|
17051
|
+
})(React.createElement(MyInput$1, {
|
|
17052
17052
|
readOnly: isReadOnly('buyerBank'),
|
|
17053
17053
|
placeholder: "\u8BF7\u8F93\u5165\u8D2D\u4E70\u65B9\u5F00\u6237\u94F6\u884C",
|
|
17054
17054
|
autoComplete: "off"
|
|
17055
|
-
})))),
|
|
17055
|
+
})))), React.createElement(Col, {
|
|
17056
17056
|
span: 10
|
|
17057
|
-
},
|
|
17057
|
+
}, React.createElement(Form.Item, {
|
|
17058
17058
|
label: "\u94F6\u884C\u8D26\u53F7",
|
|
17059
17059
|
colon: false
|
|
17060
17060
|
}, getFieldDecorator('buyerAccount', {
|
|
17061
17061
|
rules: getRules('buyerAccount', RULES.bankAccount('购买方银行账号'))
|
|
17062
|
-
})(
|
|
17062
|
+
})(React.createElement(MyInput$1, {
|
|
17063
17063
|
readOnly: isReadOnly('buyerAccount'),
|
|
17064
17064
|
placeholder: "\u8BF7\u8F93\u5165\u94F6\u884C\u8D26\u53F7",
|
|
17065
17065
|
autoComplete: "off"
|
|
17066
|
-
})))))))),
|
|
17067
|
-
return
|
|
17068
|
-
}), !readOnly &&
|
|
17066
|
+
})))))))), React.createElement("div", null, '销售方信息'.split('').map(function (e) {
|
|
17067
|
+
return React.createElement("span", null, e);
|
|
17068
|
+
}), !readOnly && React.createElement(Icon, {
|
|
17069
17069
|
className: "digtal-stakeholder-expand-button",
|
|
17070
17070
|
component: isExpand ? SvgArrowUp : SvgArrowDown,
|
|
17071
17071
|
onClick: onExpand
|
|
17072
|
-
})),
|
|
17072
|
+
})), React.createElement("div", null, !readOnly && props.lineCredit && React.createElement("div", {
|
|
17073
17073
|
style: {
|
|
17074
17074
|
marginTop: 20
|
|
17075
17075
|
}
|
|
17076
|
-
},
|
|
17076
|
+
}, React.createElement(Tooltip$1, {
|
|
17077
17077
|
trigger: "click",
|
|
17078
17078
|
title: props.lineCredit
|
|
17079
|
-
},
|
|
17079
|
+
}, React.createElement(Button$1, {
|
|
17080
17080
|
type: "link",
|
|
17081
17081
|
style: {
|
|
17082
17082
|
padding: "0px 8px"
|
|
17083
17083
|
}
|
|
17084
|
-
}, "\u67E5\u770B\u5F53\u524D\u53EF\u7528\u6388\u4FE1\u989D\u5EA6"))),
|
|
17084
|
+
}, "\u67E5\u770B\u5F53\u524D\u53EF\u7528\u6388\u4FE1\u989D\u5EA6"))), React.createElement(Form, {
|
|
17085
17085
|
className: "digtal-stakeholder-form"
|
|
17086
|
-
},
|
|
17086
|
+
}, React.createElement(Row, {
|
|
17087
17087
|
gutter: [16, 0]
|
|
17088
|
-
},
|
|
17088
|
+
}, React.createElement(Col, {
|
|
17089
17089
|
span: 24
|
|
17090
|
-
},
|
|
17090
|
+
}, React.createElement(Form.Item, {
|
|
17091
17091
|
label: "\u540D\u79F0",
|
|
17092
17092
|
colon: false
|
|
17093
17093
|
}, getFieldDecorator('supplierName', {
|
|
17094
17094
|
rules: getRules('supplierName', RULES.companyName('销售方名称')),
|
|
17095
17095
|
getValueFromEvent: formatCompanyName
|
|
17096
|
-
})(
|
|
17096
|
+
})(React.createElement(MyInput$1, {
|
|
17097
17097
|
readOnly: isReadOnly('supplierName'),
|
|
17098
17098
|
placeholder: "\u8BF7\u8F93\u5165\u540D\u79F0",
|
|
17099
17099
|
autoComplete: "off"
|
|
17100
|
-
})))),
|
|
17100
|
+
})))), React.createElement(Col, {
|
|
17101
17101
|
span: 24
|
|
17102
|
-
},
|
|
17102
|
+
}, React.createElement(Form.Item, {
|
|
17103
17103
|
label: "\u7EDF\u4E00\u793E\u4F1A\u4FE1\u7528\u4EE3\u7801/\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7",
|
|
17104
17104
|
colon: false
|
|
17105
17105
|
}, getFieldDecorator('supplierTaxId', {
|
|
@@ -17107,13 +17107,13 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
17107
17107
|
required: true,
|
|
17108
17108
|
message: '销售方纳税人识别号必填'
|
|
17109
17109
|
}].concat(_toConsumableArray(RULES.taxId('销售方纳税人识别号'))))
|
|
17110
|
-
})(
|
|
17110
|
+
})(React.createElement(MyInput$1, {
|
|
17111
17111
|
readOnly: isReadOnly('supplierTaxId'),
|
|
17112
17112
|
placeholder: "\u8BF7\u8F93\u5165\u7EDF\u4E00\u793E\u4F1A\u4FE1\u7528\u4EE3\u7801/\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7",
|
|
17113
17113
|
autoComplete: "off"
|
|
17114
|
-
})))), isExpand &&
|
|
17114
|
+
})))), isExpand && React.createElement(React.Fragment, null, React.createElement(Col, {
|
|
17115
17115
|
span: 12
|
|
17116
|
-
},
|
|
17116
|
+
}, React.createElement(Form.Item, {
|
|
17117
17117
|
label: "\u9500\u552E\u65B9\u5730\u5740",
|
|
17118
17118
|
colon: false
|
|
17119
17119
|
}, getFieldDecorator('sellerAddress', {
|
|
@@ -17121,41 +17121,41 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
17121
17121
|
max: 300,
|
|
17122
17122
|
message: '销售方地址内容超长'
|
|
17123
17123
|
}])
|
|
17124
|
-
})(
|
|
17124
|
+
})(React.createElement(MyInput$1, {
|
|
17125
17125
|
readOnly: isReadOnly('sellerAddress'),
|
|
17126
17126
|
placeholder: "\u8BF7\u8F93\u5165\u9500\u552E\u65B9\u5730\u5740",
|
|
17127
17127
|
autoComplete: "off"
|
|
17128
|
-
})))),
|
|
17128
|
+
})))), React.createElement(Col, {
|
|
17129
17129
|
span: 12
|
|
17130
|
-
},
|
|
17130
|
+
}, React.createElement(Form.Item, {
|
|
17131
17131
|
label: "\u7535\u8BDD",
|
|
17132
17132
|
colon: false,
|
|
17133
17133
|
className: 'telephone'
|
|
17134
17134
|
}, getFieldDecorator('sellerPhone', {
|
|
17135
17135
|
rules: getRules('sellerPhone', RULES.sellerTelPhone('销售方电话'))
|
|
17136
|
-
})(
|
|
17136
|
+
})(React.createElement(MyInput$1, {
|
|
17137
17137
|
readOnly: isReadOnly('sellerPhone'),
|
|
17138
17138
|
placeholder: "\u8BF7\u8F93\u5165\u7535\u8BDD",
|
|
17139
17139
|
autoComplete: "off"
|
|
17140
|
-
})))),
|
|
17140
|
+
})))), React.createElement(Col, {
|
|
17141
17141
|
span: 12
|
|
17142
|
-
},
|
|
17142
|
+
}, React.createElement(Form.Item, {
|
|
17143
17143
|
label: "\u9500\u552E\u65B9\u5F00\u6237\u94F6\u884C",
|
|
17144
17144
|
colon: false
|
|
17145
17145
|
}, getFieldDecorator('sellerBank', {
|
|
17146
17146
|
rules: getRules('sellerBank', RULES.bankName('销售方开户银行'))
|
|
17147
|
-
})(
|
|
17147
|
+
})(React.createElement(MyInput$1, {
|
|
17148
17148
|
readOnly: isReadOnly('sellerBank'),
|
|
17149
17149
|
placeholder: "\u8BF7\u8F93\u5165\u9500\u552E\u65B9\u5F00\u6237\u94F6\u884C",
|
|
17150
17150
|
autoComplete: "off"
|
|
17151
|
-
})))),
|
|
17151
|
+
})))), React.createElement(Col, {
|
|
17152
17152
|
span: 12
|
|
17153
|
-
},
|
|
17153
|
+
}, React.createElement(Form.Item, {
|
|
17154
17154
|
label: "\u94F6\u884C\u8D26\u53F7",
|
|
17155
17155
|
colon: false
|
|
17156
17156
|
}, getFieldDecorator('sellerAccount', {
|
|
17157
17157
|
rules: getRules('sellerAccount', RULES.bankAccount('销售方银行账号'))
|
|
17158
|
-
})(
|
|
17158
|
+
})(React.createElement(MyInput$1, {
|
|
17159
17159
|
readOnly: isReadOnly('sellerAccount'),
|
|
17160
17160
|
placeholder: "\u8BF7\u8F93\u5165\u94F6\u884C\u8D26\u53F7",
|
|
17161
17161
|
autoComplete: "off"
|
|
@@ -17176,7 +17176,7 @@ function NaturalPersonFlag(props) {
|
|
|
17176
17176
|
React.useEffect(function () {
|
|
17177
17177
|
setValue(props.value || 'COMPANY');
|
|
17178
17178
|
}, [props.value]);
|
|
17179
|
-
return
|
|
17179
|
+
return React.createElement(Checkbox$1, {
|
|
17180
17180
|
disabled: props.readOnly,
|
|
17181
17181
|
checked: value === 'NATURAL',
|
|
17182
17182
|
onChange: onChange
|
|
@@ -17279,10 +17279,10 @@ function BuyerNameInput$1(props) {
|
|
|
17279
17279
|
return _ref.apply(this, arguments);
|
|
17280
17280
|
};
|
|
17281
17281
|
}(), [autoComplete.onBuyerNameSearch, fieldName]);
|
|
17282
|
-
if (props.readOnly) return
|
|
17282
|
+
if (props.readOnly) return React.createElement("span", {
|
|
17283
17283
|
className: 'digtal-stakeholder-form-text'
|
|
17284
17284
|
}, props.value);
|
|
17285
|
-
return
|
|
17285
|
+
return React.createElement(AutoComplete$1, {
|
|
17286
17286
|
onSearch: onSearch,
|
|
17287
17287
|
options: options.map(function (e) {
|
|
17288
17288
|
return {
|
|
@@ -17294,7 +17294,7 @@ function BuyerNameInput$1(props) {
|
|
|
17294
17294
|
style: {
|
|
17295
17295
|
width: '100%'
|
|
17296
17296
|
}
|
|
17297
|
-
},
|
|
17297
|
+
}, React.createElement(Input$1, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
17298
17298
|
style: _objectSpread2({
|
|
17299
17299
|
width: '100%'
|
|
17300
17300
|
}, props.style)
|
|
@@ -17318,11 +17318,11 @@ var MyInput$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
17318
17318
|
var props = this.props;
|
|
17319
17319
|
|
|
17320
17320
|
if (props.readOnly) {
|
|
17321
|
-
return
|
|
17321
|
+
return React.createElement("span", {
|
|
17322
17322
|
className: 'digtal-stakeholder-form-text'
|
|
17323
17323
|
}, props.value);
|
|
17324
17324
|
} else {
|
|
17325
|
-
return
|
|
17325
|
+
return React.createElement(Input$1, _objectSpread2({}, props));
|
|
17326
17326
|
}
|
|
17327
17327
|
}
|
|
17328
17328
|
}]);
|
|
@@ -17379,47 +17379,47 @@ var SignDigtal = decorator(Form.create())(function (props) {
|
|
|
17379
17379
|
controller.useForm('sign', form);
|
|
17380
17380
|
|
|
17381
17381
|
if (readOnly) {
|
|
17382
|
-
return
|
|
17382
|
+
return React.createElement("div", {
|
|
17383
17383
|
className: "kts-invoice-operate-sign-digtal-readOnly"
|
|
17384
|
-
},
|
|
17384
|
+
}, React.createElement("div", {
|
|
17385
17385
|
className: 'sign-digtal-readOnly-cont'
|
|
17386
|
-
},
|
|
17386
|
+
}, React.createElement("div", null, React.createElement("span", null, "\u5907"), React.createElement("span", null, "\u6CE8")), React.createElement("div", null, getFieldDecorator('remarks', {
|
|
17387
17387
|
initialValue: props.defaultRemark
|
|
17388
|
-
})(isEnables('remarks') ?
|
|
17388
|
+
})(isEnables('remarks') ? React.createElement(Input$1.TextArea, {
|
|
17389
17389
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
17390
17390
|
style: {
|
|
17391
17391
|
height: '100%'
|
|
17392
17392
|
}
|
|
17393
|
-
}) :
|
|
17393
|
+
}) : React.createElement(MyDiv$1, {
|
|
17394
17394
|
style: {
|
|
17395
17395
|
whiteSpace: 'pre-wrap'
|
|
17396
17396
|
}
|
|
17397
|
-
})))),
|
|
17397
|
+
})))), React.createElement(Form, {
|
|
17398
17398
|
layout: 'inline',
|
|
17399
17399
|
className: 'digtal-readOnly-form'
|
|
17400
|
-
},
|
|
17400
|
+
}, React.createElement(Form.Item, {
|
|
17401
17401
|
label: "\u5F00\u7968\u4EBA"
|
|
17402
17402
|
}, getFieldDecorator('drawer', {
|
|
17403
17403
|
initialValue: props.defaultRemark
|
|
17404
|
-
})(
|
|
17404
|
+
})(React.createElement(MyDiv$1, null)))));
|
|
17405
17405
|
} else {
|
|
17406
|
-
return
|
|
17406
|
+
return React.createElement("div", {
|
|
17407
17407
|
className: "kts-invoice-operate-sign-digtal"
|
|
17408
|
-
},
|
|
17408
|
+
}, React.createElement("div", {
|
|
17409
17409
|
className: 'sign-digtal-label'
|
|
17410
|
-
}, "\u5907\u6CE8\u4FE1\u606F"),
|
|
17410
|
+
}, "\u5907\u6CE8\u4FE1\u606F"), React.createElement(Form, null, React.createElement(Form.Item, {
|
|
17411
17411
|
label: "\u5907\u6CE8"
|
|
17412
17412
|
}, getFieldDecorator('remarks', {
|
|
17413
17413
|
initialValue: props.defaultRemark
|
|
17414
|
-
})(
|
|
17414
|
+
})(React.createElement(Input$1.TextArea, {
|
|
17415
17415
|
readOnly: isReadOnly('remarks'),
|
|
17416
17416
|
autoSize: true,
|
|
17417
17417
|
placeholder: "\u8BF7\u8F93\u5165"
|
|
17418
|
-
}))),
|
|
17418
|
+
}))), React.createElement(Form.Item, {
|
|
17419
17419
|
label: "\u5F00\u7968\u4EBA"
|
|
17420
17420
|
}, getFieldDecorator('drawer', {
|
|
17421
17421
|
initialValue: props.defaultIssuer
|
|
17422
|
-
})(
|
|
17422
|
+
})(React.createElement(Input$1, {
|
|
17423
17423
|
readOnly: isReadOnly('drawer'),
|
|
17424
17424
|
style: {
|
|
17425
17425
|
width: 313
|
|
@@ -17443,7 +17443,7 @@ var MyDiv$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
17443
17443
|
_createClass(MyDiv, [{
|
|
17444
17444
|
key: "render",
|
|
17445
17445
|
value: function render() {
|
|
17446
|
-
return
|
|
17446
|
+
return React.createElement("div", {
|
|
17447
17447
|
style: this.props.style
|
|
17448
17448
|
}, this.props.value);
|
|
17449
17449
|
}
|
|
@@ -17546,12 +17546,12 @@ function TableVirtual$1 (props) {
|
|
|
17546
17546
|
if (!cont) return;
|
|
17547
17547
|
cont.scrollTop = 0;
|
|
17548
17548
|
}, [(_props$dataSource2 = props.dataSource) === null || _props$dataSource2 === void 0 ? void 0 : _props$dataSource2.length]);
|
|
17549
|
-
return
|
|
17549
|
+
return React.createElement("span", {
|
|
17550
17550
|
className: "kts-invoice-operate-goods-table-virtual",
|
|
17551
17551
|
ref: function ref(e) {
|
|
17552
17552
|
setSelf(e);
|
|
17553
17553
|
}
|
|
17554
|
-
},
|
|
17554
|
+
}, React.createElement(TableManual, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
17555
17555
|
dataSource: dataSource,
|
|
17556
17556
|
// 新版本Table会有输入框无法连续输入的问题,先兼容老版本
|
|
17557
17557
|
tableComponent: Table
|
|
@@ -17662,52 +17662,52 @@ var Statistics$1 = (function () {
|
|
|
17662
17662
|
});
|
|
17663
17663
|
return sum.done().toNumber();
|
|
17664
17664
|
}, []);
|
|
17665
|
-
return
|
|
17665
|
+
return React.createElement("div", {
|
|
17666
17666
|
className: 'kts-invoice-operate-goods-list-statistics-digtal'
|
|
17667
|
-
},
|
|
17667
|
+
}, React.createElement("div", {
|
|
17668
17668
|
className: 'statistics-digtal-total'
|
|
17669
|
-
},
|
|
17669
|
+
}, React.createElement("div", null, "\u5408\u8BA1"), React.createElement("div", {
|
|
17670
17670
|
style: {
|
|
17671
17671
|
flex: 1
|
|
17672
17672
|
}
|
|
17673
|
-
}),
|
|
17673
|
+
}), React.createElement("div", {
|
|
17674
17674
|
style: {
|
|
17675
17675
|
width: 119,
|
|
17676
17676
|
textAlign: 'right',
|
|
17677
17677
|
paddingRight: 15
|
|
17678
17678
|
}
|
|
17679
|
-
}, "\xA5", parseFloat(isTaxIncluded ? lineAmountIncludeTax : lineAmountExcludeTax).toFixed(2)),
|
|
17679
|
+
}, "\xA5", parseFloat(isTaxIncluded ? lineAmountIncludeTax : lineAmountExcludeTax).toFixed(2)), React.createElement("div", {
|
|
17680
17680
|
style: {
|
|
17681
17681
|
width: 119,
|
|
17682
17682
|
textAlign: 'right',
|
|
17683
17683
|
paddingRight: 15
|
|
17684
17684
|
}
|
|
17685
|
-
}, "\xA5", parseFloat(taxAmount).toFixed(2))),
|
|
17685
|
+
}, "\xA5", parseFloat(taxAmount).toFixed(2))), React.createElement("div", {
|
|
17686
17686
|
className: 'statistics-digtal-total-tax'
|
|
17687
|
-
},
|
|
17687
|
+
}, React.createElement("div", null, "\u4EF7\u7A0E\u5408\u8BA1\uFF08\u5927\u5199\uFF09"), React.createElement("div", {
|
|
17688
17688
|
style: {
|
|
17689
17689
|
paddingLeft: 30
|
|
17690
17690
|
}
|
|
17691
|
-
},
|
|
17691
|
+
}, React.createElement(Icon, {
|
|
17692
17692
|
style: {
|
|
17693
17693
|
fontSize: 16
|
|
17694
17694
|
},
|
|
17695
17695
|
component: SvgFork
|
|
17696
|
-
}),
|
|
17696
|
+
}), React.createElement("span", {
|
|
17697
17697
|
style: {
|
|
17698
17698
|
fontWeight: 'bold',
|
|
17699
17699
|
marginLeft: 4
|
|
17700
17700
|
}
|
|
17701
|
-
}, toStringChinese(lineAmountIncludeTax))),
|
|
17701
|
+
}, toStringChinese(lineAmountIncludeTax))), React.createElement("div", {
|
|
17702
17702
|
style: {
|
|
17703
17703
|
flex: 1
|
|
17704
17704
|
}
|
|
17705
|
-
}),
|
|
17705
|
+
}), React.createElement("div", {
|
|
17706
17706
|
style: {
|
|
17707
17707
|
width: 90,
|
|
17708
17708
|
color: '#9F613E'
|
|
17709
17709
|
}
|
|
17710
|
-
}, "\uFF08\u5C0F\u5199\uFF09"),
|
|
17710
|
+
}, "\uFF08\u5C0F\u5199\uFF09"), React.createElement("div", {
|
|
17711
17711
|
style: {
|
|
17712
17712
|
width: 119
|
|
17713
17713
|
}
|
|
@@ -17766,10 +17766,10 @@ var AddRowButton$1 = (function () {
|
|
|
17766
17766
|
}
|
|
17767
17767
|
}, _callee);
|
|
17768
17768
|
})), [controller, rootElement]);
|
|
17769
|
-
if (isAddRow === false) return
|
|
17770
|
-
if (model === 'prefab') return
|
|
17771
|
-
if (model === 'readOnly') return
|
|
17772
|
-
return
|
|
17769
|
+
if (isAddRow === false) return React.createElement(React.Fragment, null);
|
|
17770
|
+
if (model === 'prefab') return React.createElement(React.Fragment, null);
|
|
17771
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
17772
|
+
return React.createElement(Button$1, {
|
|
17773
17773
|
size: 'small',
|
|
17774
17774
|
type: 'primary',
|
|
17775
17775
|
onClick: onClick,
|
|
@@ -19130,11 +19130,11 @@ var TaxIncludedSwitch$1 = (function () {
|
|
|
19130
19130
|
return _ref.apply(this, arguments);
|
|
19131
19131
|
};
|
|
19132
19132
|
}(), []);
|
|
19133
|
-
return
|
|
19133
|
+
return React.createElement("span", null, React.createElement("label", {
|
|
19134
19134
|
style: {
|
|
19135
19135
|
marginRight: 2
|
|
19136
19136
|
}
|
|
19137
|
-
}, "\u542B\u7A0E"),
|
|
19137
|
+
}, "\u542B\u7A0E"), React.createElement(Switch, {
|
|
19138
19138
|
disabled: isSwitchTax === false,
|
|
19139
19139
|
checked: isTaxIncluded,
|
|
19140
19140
|
defaultChecked: true,
|
|
@@ -19230,12 +19230,12 @@ function Search$1() {
|
|
|
19230
19230
|
};
|
|
19231
19231
|
}());
|
|
19232
19232
|
}, [value, controller]);
|
|
19233
|
-
return
|
|
19233
|
+
return React.createElement(Input$1, {
|
|
19234
19234
|
readOnly: readOnly,
|
|
19235
19235
|
value: value,
|
|
19236
19236
|
className: "kts-invoice-operate-goods-list-search",
|
|
19237
19237
|
placeholder: "\u8BF7\u60A8\u8F93\u5165\u9879\u76EE\u540D\u79F0\u3001\u89C4\u683C\u578B\u53F7\u3001\u91D1\u989D(".concat(isTaxIncluded ? '含税' : '不含税', ")\u641C\u7D22"),
|
|
19238
|
-
prefix:
|
|
19238
|
+
prefix: React.createElement(Icon$1, {
|
|
19239
19239
|
component: SvgMagnifier$1,
|
|
19240
19240
|
style: {
|
|
19241
19241
|
color: "#b8b8b8"
|
|
@@ -19280,12 +19280,12 @@ function TableRow$1(props) {
|
|
|
19280
19280
|
return undefined;
|
|
19281
19281
|
}
|
|
19282
19282
|
}, [rowKey, goodsMap]);
|
|
19283
|
-
return rowKey === current && current ?
|
|
19283
|
+
return rowKey === current && current ? React.createElement("tr", {
|
|
19284
19284
|
style: {
|
|
19285
19285
|
height: 50,
|
|
19286
19286
|
position: 'relative'
|
|
19287
19287
|
}
|
|
19288
|
-
},
|
|
19288
|
+
}, React.createElement("div", {
|
|
19289
19289
|
style: {
|
|
19290
19290
|
height: 0.5,
|
|
19291
19291
|
width: '100%',
|
|
@@ -19293,9 +19293,7 @@ function TableRow$1(props) {
|
|
|
19293
19293
|
position: 'absolute',
|
|
19294
19294
|
bottom: 0
|
|
19295
19295
|
}
|
|
19296
|
-
})) :
|
|
19297
|
-
/*#__PURE__*/
|
|
19298
|
-
// <tr {...props} className={classnames(props.className, discount, (rowKey === container && current) ? 'kts-invoice-operate-goods-list-itemName-drag-container' : '')} />
|
|
19296
|
+
})) : // <tr {...props} className={classnames(props.className, discount, (rowKey === container && current) ? 'kts-invoice-operate-goods-list-itemName-drag-container' : '')} />
|
|
19299
19297
|
React.createElement("tr", _objectSpread2(_objectSpread2({}, props), {}, {
|
|
19300
19298
|
className: classNames(props.className, discount, rowKey === container && current ? 'kts-invoice-operate-goods-list-itemName-drag-container-' + site : undefined)
|
|
19301
19299
|
}));
|
|
@@ -19335,9 +19333,9 @@ var TitleText$1 = (function (props) {
|
|
|
19335
19333
|
return !!e.required;
|
|
19336
19334
|
})) || props.required;
|
|
19337
19335
|
}, [rules, props.required]);
|
|
19338
|
-
return
|
|
19336
|
+
return React.createElement(React.Fragment, null, required ? React.createElement(Text$5, {
|
|
19339
19337
|
type: "danger"
|
|
19340
|
-
}, "*") :
|
|
19338
|
+
}, "*") : React.createElement(React.Fragment, null), children);
|
|
19341
19339
|
});
|
|
19342
19340
|
|
|
19343
19341
|
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";
|
|
@@ -19518,14 +19516,14 @@ function ItemNameInput$1(props) {
|
|
|
19518
19516
|
return _ref3.apply(this, arguments);
|
|
19519
19517
|
};
|
|
19520
19518
|
}(), [autoComplete.onItemNameSearch]);
|
|
19521
|
-
return
|
|
19519
|
+
return React.createElement("div", {
|
|
19522
19520
|
className: 'kts-invoice-operate-goods-list-itemName-input'
|
|
19523
|
-
}, props.shorthand &&
|
|
19521
|
+
}, props.shorthand && React.createElement("span", {
|
|
19524
19522
|
style: {
|
|
19525
19523
|
alignSelf: 'center',
|
|
19526
19524
|
fontSize: 12
|
|
19527
19525
|
}
|
|
19528
|
-
}, "*", props.shorthand, "*"),
|
|
19526
|
+
}, "*", props.shorthand, "*"), React.createElement(AutoComplete$1, {
|
|
19529
19527
|
onSearch: onSearch,
|
|
19530
19528
|
value: props.value,
|
|
19531
19529
|
options: options.map(function (e) {
|
|
@@ -19535,7 +19533,7 @@ function ItemNameInput$1(props) {
|
|
|
19535
19533
|
};
|
|
19536
19534
|
}),
|
|
19537
19535
|
onSelect: onChangeAutoComplete
|
|
19538
|
-
},
|
|
19536
|
+
}, React.createElement(Input$1, {
|
|
19539
19537
|
style: {
|
|
19540
19538
|
height: '100%'
|
|
19541
19539
|
},
|
|
@@ -19605,7 +19603,7 @@ function Drag$2(props) {
|
|
|
19605
19603
|
var currentGood = controller.state.goodsListState.goodsList.filter(function (e) {
|
|
19606
19604
|
return e.$index === record.$index;
|
|
19607
19605
|
})[0];
|
|
19608
|
-
mounting(
|
|
19606
|
+
mounting(React.createElement(DragDiv$1, _objectSpread2({}, currentGood)));
|
|
19609
19607
|
rowList.forEach(function (e) {
|
|
19610
19608
|
e.addEventListener('mousemove', onMousemove);
|
|
19611
19609
|
});
|
|
@@ -19766,7 +19764,7 @@ function Drag$2(props) {
|
|
|
19766
19764
|
|
|
19767
19765
|
|
|
19768
19766
|
function insert() {
|
|
19769
|
-
mounting(
|
|
19767
|
+
mounting(React.createElement(React.Fragment, null));
|
|
19770
19768
|
controller.run( /*#__PURE__*/function () {
|
|
19771
19769
|
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(s) {
|
|
19772
19770
|
var _s$goodsListState$dra, container, current, site, goodsList, goodsMap, _currentGood, currentIndex, moveGoods;
|
|
@@ -19845,7 +19843,7 @@ function Drag$2(props) {
|
|
|
19845
19843
|
}
|
|
19846
19844
|
}, [controller, record, disabled]);
|
|
19847
19845
|
var renderButton = React.useMemo(function () {
|
|
19848
|
-
return
|
|
19846
|
+
return React.createElement(Button, {
|
|
19849
19847
|
type: 'link',
|
|
19850
19848
|
style: {
|
|
19851
19849
|
padding: 0
|
|
@@ -19856,13 +19854,13 @@ function Drag$2(props) {
|
|
|
19856
19854
|
},
|
|
19857
19855
|
className: "kts-invoice-operate-goods-list-itemName-drag",
|
|
19858
19856
|
onMouseOver: controller.saveEditGood
|
|
19859
|
-
},
|
|
19857
|
+
}, React.createElement(Icon, {
|
|
19860
19858
|
component: SvgI001$1
|
|
19861
19859
|
}));
|
|
19862
19860
|
}, [onMouseDown, controller]);
|
|
19863
19861
|
|
|
19864
19862
|
if (disabled) {
|
|
19865
|
-
return
|
|
19863
|
+
return React.createElement(Popover, {
|
|
19866
19864
|
content: '您还有未编辑完成的商品',
|
|
19867
19865
|
trigger: 'focus'
|
|
19868
19866
|
}, renderButton);
|
|
@@ -19902,13 +19900,13 @@ function DragDiv$1(props) {
|
|
|
19902
19900
|
window.removeEventListener('mousemove', onMousemove);
|
|
19903
19901
|
};
|
|
19904
19902
|
});
|
|
19905
|
-
return
|
|
19903
|
+
return React.createElement("div", {
|
|
19906
19904
|
className: "kts-invoice-operate-goods-list-itemName-drag-div",
|
|
19907
19905
|
style: {
|
|
19908
19906
|
top: y,
|
|
19909
19907
|
left: x
|
|
19910
19908
|
}
|
|
19911
|
-
},
|
|
19909
|
+
}, React.createElement("span", null, props.itemName), React.createElement("span", null, props.itemModelName), React.createElement("span", null, props.unit));
|
|
19912
19910
|
}
|
|
19913
19911
|
|
|
19914
19912
|
var useColumns$1 = (function (form) {
|
|
@@ -20024,7 +20022,7 @@ var useColumns$1 = (function (form) {
|
|
|
20024
20022
|
width: 40,
|
|
20025
20023
|
align: 'center',
|
|
20026
20024
|
render: function render(_, record) {
|
|
20027
|
-
return
|
|
20025
|
+
return React.createElement(Drag$2, {
|
|
20028
20026
|
record: record
|
|
20029
20027
|
});
|
|
20030
20028
|
}
|
|
@@ -20034,20 +20032,20 @@ var useColumns$1 = (function (form) {
|
|
|
20034
20032
|
dataIndex: 'serialNo',
|
|
20035
20033
|
width: 50,
|
|
20036
20034
|
render: function render(e) {
|
|
20037
|
-
return
|
|
20035
|
+
return React.createElement("span", {
|
|
20038
20036
|
style: {
|
|
20039
20037
|
padding: '0 10px'
|
|
20040
20038
|
}
|
|
20041
20039
|
}, e);
|
|
20042
20040
|
}
|
|
20043
20041
|
}, {
|
|
20044
|
-
title:
|
|
20042
|
+
title: React.createElement(TitleText$1, {
|
|
20045
20043
|
required: true
|
|
20046
20044
|
}, "\u9879\u76EE\u540D\u79F0"),
|
|
20047
20045
|
key: 'itemName',
|
|
20048
20046
|
render: function render(_, record) {
|
|
20049
20047
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
20050
|
-
return
|
|
20048
|
+
return React.createElement(Form.Item, null, React.createElement("div", {
|
|
20051
20049
|
style: {
|
|
20052
20050
|
display: 'flex'
|
|
20053
20051
|
}
|
|
@@ -20094,12 +20092,12 @@ var useColumns$1 = (function (form) {
|
|
|
20094
20092
|
return validator;
|
|
20095
20093
|
}()
|
|
20096
20094
|
}])
|
|
20097
|
-
})(
|
|
20095
|
+
})(React.createElement(ItemNameInput$1, {
|
|
20098
20096
|
editGood: editGood,
|
|
20099
20097
|
shorthand: editGood.shorthand,
|
|
20100
|
-
suffix:
|
|
20098
|
+
suffix: React.createElement(Tooltip$1, {
|
|
20101
20099
|
title: "\u70B9\u51FB\u4ECE\u5546\u54C1\u7BA1\u7406\u4E2D\u6DFB\u52A0\u5546\u54C1\u4FE1\u606F"
|
|
20102
|
-
},
|
|
20100
|
+
}, React.createElement(Button$1, {
|
|
20103
20101
|
type: "link",
|
|
20104
20102
|
style: {
|
|
20105
20103
|
padding: 0,
|
|
@@ -20107,7 +20105,7 @@ var useColumns$1 = (function (form) {
|
|
|
20107
20105
|
fontSize: 20,
|
|
20108
20106
|
fill: '#0074ff'
|
|
20109
20107
|
},
|
|
20110
|
-
icon:
|
|
20108
|
+
icon: React.createElement(SvgPlus$1, null),
|
|
20111
20109
|
onClick: controller.pipeline( /*#__PURE__*/function () {
|
|
20112
20110
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(s) {
|
|
20113
20111
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
@@ -20134,9 +20132,9 @@ var useColumns$1 = (function (form) {
|
|
|
20134
20132
|
}
|
|
20135
20133
|
}))));
|
|
20136
20134
|
} else {
|
|
20137
|
-
return
|
|
20135
|
+
return React.createElement("span", null, record.lineAttribute === LineAttributeType$1.折扣行 ? React.createElement("span", {
|
|
20138
20136
|
className: 'goods-list-digtal-discount-tag'
|
|
20139
|
-
}, "\u6298\u6263") :
|
|
20137
|
+
}, "\u6298\u6263") : React.createElement(React.Fragment, null), React.createElement(MyItemNameDiv$1, {
|
|
20140
20138
|
valueT: formatSearch$1(getItemNameWithShorthand({
|
|
20141
20139
|
shorthand: record.shorthand,
|
|
20142
20140
|
full: record.itemNameSelf || ''
|
|
@@ -20150,17 +20148,17 @@ var useColumns$1 = (function (form) {
|
|
|
20150
20148
|
}
|
|
20151
20149
|
}
|
|
20152
20150
|
}, {
|
|
20153
|
-
title:
|
|
20151
|
+
title: React.createElement(TitleText$1, {
|
|
20154
20152
|
rules: (_columnsReplenish$ite = columnsReplenish['itemModelName']) === null || _columnsReplenish$ite === void 0 ? void 0 : _columnsReplenish$ite.rules
|
|
20155
20153
|
}, "\u89C4\u683C\u578B\u53F7"),
|
|
20156
20154
|
key: 'itemModelName',
|
|
20157
20155
|
width: 119,
|
|
20158
20156
|
render: function render(_, record) {
|
|
20159
20157
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
20160
|
-
return
|
|
20158
|
+
return React.createElement(Form.Item, null, getFieldDecorator('itemModelName', {
|
|
20161
20159
|
initialValue: isMyShow ? editGood.itemModelNameSelf : editGood.itemModelName,
|
|
20162
20160
|
rules: getReplenishRules('itemModelName')
|
|
20163
|
-
})(
|
|
20161
|
+
})(React.createElement(MyInput$2, {
|
|
20164
20162
|
onChange: function () {
|
|
20165
20163
|
var _onChange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
20166
20164
|
var key, value;
|
|
@@ -20193,7 +20191,7 @@ var useColumns$1 = (function (form) {
|
|
|
20193
20191
|
}()
|
|
20194
20192
|
})));
|
|
20195
20193
|
} else {
|
|
20196
|
-
return
|
|
20194
|
+
return React.createElement(MyItemNameDiv$1, {
|
|
20197
20195
|
valueT: formatSearch$1(record.itemModelNameSelf, searchValue),
|
|
20198
20196
|
valueF: formatSearch$1(record.itemModelName, searchValue),
|
|
20199
20197
|
isMyShow: isMyShow
|
|
@@ -20201,17 +20199,17 @@ var useColumns$1 = (function (form) {
|
|
|
20201
20199
|
}
|
|
20202
20200
|
}
|
|
20203
20201
|
}, {
|
|
20204
|
-
title:
|
|
20202
|
+
title: React.createElement(TitleText$1, {
|
|
20205
20203
|
rules: (_columnsReplenish$uni = columnsReplenish['unit']) === null || _columnsReplenish$uni === void 0 ? void 0 : _columnsReplenish$uni.rules
|
|
20206
20204
|
}, "\u5355\u4F4D"),
|
|
20207
20205
|
key: 'unit',
|
|
20208
20206
|
width: 70,
|
|
20209
20207
|
render: function render(_, record) {
|
|
20210
20208
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
20211
|
-
return
|
|
20209
|
+
return React.createElement(Form.Item, null, getFieldDecorator('unit', {
|
|
20212
20210
|
initialValue: editGood.unit,
|
|
20213
20211
|
rules: getReplenishRules('unit')
|
|
20214
|
-
})(
|
|
20212
|
+
})(React.createElement(AutoComplete$1, {
|
|
20215
20213
|
style: {
|
|
20216
20214
|
width: '100%'
|
|
20217
20215
|
},
|
|
@@ -20249,7 +20247,7 @@ var useColumns$1 = (function (form) {
|
|
|
20249
20247
|
}()
|
|
20250
20248
|
})));
|
|
20251
20249
|
} else {
|
|
20252
|
-
return
|
|
20250
|
+
return React.createElement("span", {
|
|
20253
20251
|
style: {
|
|
20254
20252
|
padding: '0 10px'
|
|
20255
20253
|
}
|
|
@@ -20257,7 +20255,7 @@ var useColumns$1 = (function (form) {
|
|
|
20257
20255
|
}
|
|
20258
20256
|
}
|
|
20259
20257
|
}, {
|
|
20260
|
-
title:
|
|
20258
|
+
title: React.createElement(TitleText$1, {
|
|
20261
20259
|
rules: (_columnsReplenish$qua = columnsReplenish['quantity']) === null || _columnsReplenish$qua === void 0 ? void 0 : _columnsReplenish$qua.rules
|
|
20262
20260
|
}, "\u6570\u91CF"),
|
|
20263
20261
|
dataIndex: 'quantity',
|
|
@@ -20266,7 +20264,7 @@ var useColumns$1 = (function (form) {
|
|
|
20266
20264
|
width: 149,
|
|
20267
20265
|
render: function render(value, record) {
|
|
20268
20266
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
20269
|
-
return
|
|
20267
|
+
return React.createElement(Form.Item, null, getFieldDecorator('quantity', {
|
|
20270
20268
|
initialValue: nonScientificNotation(editGood.quantity),
|
|
20271
20269
|
getValueFromEvent: onNumberValueChange,
|
|
20272
20270
|
rules: [].concat(_toConsumableArray(getReplenishRules('quantity')), [{
|
|
@@ -20312,7 +20310,7 @@ var useColumns$1 = (function (form) {
|
|
|
20312
20310
|
return validator;
|
|
20313
20311
|
}()
|
|
20314
20312
|
}])
|
|
20315
|
-
})(
|
|
20313
|
+
})(React.createElement(MyInput$2, {
|
|
20316
20314
|
style: {
|
|
20317
20315
|
textAlign: 'right'
|
|
20318
20316
|
},
|
|
@@ -20344,7 +20342,7 @@ var useColumns$1 = (function (form) {
|
|
|
20344
20342
|
}()
|
|
20345
20343
|
})));
|
|
20346
20344
|
} else {
|
|
20347
|
-
return
|
|
20345
|
+
return React.createElement("span", {
|
|
20348
20346
|
style: {
|
|
20349
20347
|
padding: '0 10px'
|
|
20350
20348
|
}
|
|
@@ -20352,7 +20350,7 @@ var useColumns$1 = (function (form) {
|
|
|
20352
20350
|
}
|
|
20353
20351
|
}
|
|
20354
20352
|
}, {
|
|
20355
|
-
title:
|
|
20353
|
+
title: React.createElement(TitleText$1, {
|
|
20356
20354
|
rules: (_columnsReplenish$pri = columnsReplenish['priceIncludeTax']) === null || _columnsReplenish$pri === void 0 ? void 0 : _columnsReplenish$pri.rules
|
|
20357
20355
|
}, "\u5355\u4EF7(\u542B\u7A0E)"),
|
|
20358
20356
|
dataIndex: 'priceIncludeTax',
|
|
@@ -20361,7 +20359,7 @@ var useColumns$1 = (function (form) {
|
|
|
20361
20359
|
width: 149,
|
|
20362
20360
|
render: function render(value, record) {
|
|
20363
20361
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
20364
|
-
return
|
|
20362
|
+
return React.createElement(Form.Item, null, getFieldDecorator('priceIncludeTax', {
|
|
20365
20363
|
initialValue: nonScientificNotation(editGood.priceIncludeTax),
|
|
20366
20364
|
getValueFromEvent: onNumberValueChange,
|
|
20367
20365
|
rules: [].concat(_toConsumableArray(getReplenishRules('priceIncludeTax')), [{
|
|
@@ -20407,7 +20405,7 @@ var useColumns$1 = (function (form) {
|
|
|
20407
20405
|
return validator;
|
|
20408
20406
|
}()
|
|
20409
20407
|
}])
|
|
20410
|
-
})(
|
|
20408
|
+
})(React.createElement(MyInput$2, {
|
|
20411
20409
|
style: {
|
|
20412
20410
|
textAlign: 'right'
|
|
20413
20411
|
},
|
|
@@ -20419,7 +20417,7 @@ var useColumns$1 = (function (form) {
|
|
|
20419
20417
|
}
|
|
20420
20418
|
})));
|
|
20421
20419
|
} else {
|
|
20422
|
-
return
|
|
20420
|
+
return React.createElement("span", {
|
|
20423
20421
|
style: {
|
|
20424
20422
|
padding: '0 10px'
|
|
20425
20423
|
}
|
|
@@ -20427,7 +20425,7 @@ var useColumns$1 = (function (form) {
|
|
|
20427
20425
|
}
|
|
20428
20426
|
}
|
|
20429
20427
|
}, {
|
|
20430
|
-
title:
|
|
20428
|
+
title: React.createElement(TitleText$1, {
|
|
20431
20429
|
rules: (_columnsReplenish$pri2 = columnsReplenish['priceExcludeTax']) === null || _columnsReplenish$pri2 === void 0 ? void 0 : _columnsReplenish$pri2.rules
|
|
20432
20430
|
}, "\u5355\u4EF7(\u4E0D\u542B\u7A0E)"),
|
|
20433
20431
|
dataIndex: 'priceExcludeTax',
|
|
@@ -20436,7 +20434,7 @@ var useColumns$1 = (function (form) {
|
|
|
20436
20434
|
width: 149,
|
|
20437
20435
|
render: function render(value, record) {
|
|
20438
20436
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
20439
|
-
return
|
|
20437
|
+
return React.createElement(Form.Item, null, getFieldDecorator('priceExcludeTax', {
|
|
20440
20438
|
initialValue: nonScientificNotation(editGood.priceExcludeTax),
|
|
20441
20439
|
getValueFromEvent: onNumberValueChange,
|
|
20442
20440
|
rules: [].concat(_toConsumableArray(getReplenishRules('priceExcludeTax')), [{
|
|
@@ -20482,7 +20480,7 @@ var useColumns$1 = (function (form) {
|
|
|
20482
20480
|
return validator;
|
|
20483
20481
|
}()
|
|
20484
20482
|
}])
|
|
20485
|
-
})(
|
|
20483
|
+
})(React.createElement(MyInput$2, {
|
|
20486
20484
|
style: {
|
|
20487
20485
|
textAlign: 'right'
|
|
20488
20486
|
},
|
|
@@ -20494,7 +20492,7 @@ var useColumns$1 = (function (form) {
|
|
|
20494
20492
|
}
|
|
20495
20493
|
})));
|
|
20496
20494
|
} else {
|
|
20497
|
-
return
|
|
20495
|
+
return React.createElement("span", {
|
|
20498
20496
|
style: {
|
|
20499
20497
|
padding: '0 10px'
|
|
20500
20498
|
}
|
|
@@ -20502,7 +20500,7 @@ var useColumns$1 = (function (form) {
|
|
|
20502
20500
|
}
|
|
20503
20501
|
}
|
|
20504
20502
|
}, {
|
|
20505
|
-
title:
|
|
20503
|
+
title: React.createElement(TitleText$1, {
|
|
20506
20504
|
required: true
|
|
20507
20505
|
}, "\u91D1\u989D(\u542B\u7A0E)"),
|
|
20508
20506
|
dataIndex: 'lineAmountIncludeTax',
|
|
@@ -20511,7 +20509,7 @@ var useColumns$1 = (function (form) {
|
|
|
20511
20509
|
align: 'right',
|
|
20512
20510
|
render: function render(value, record) {
|
|
20513
20511
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
20514
|
-
return
|
|
20512
|
+
return React.createElement(Form.Item, null, getFieldDecorator('lineAmountIncludeTax', {
|
|
20515
20513
|
initialValue: editGood.lineAmountIncludeTax,
|
|
20516
20514
|
getValueFromEvent: onNumberValueChange,
|
|
20517
20515
|
rules: [].concat(_toConsumableArray(getReplenishRules('lineAmountIncludeTax')), [{
|
|
@@ -20571,7 +20569,7 @@ var useColumns$1 = (function (form) {
|
|
|
20571
20569
|
return validator;
|
|
20572
20570
|
}()
|
|
20573
20571
|
}])
|
|
20574
|
-
})(
|
|
20572
|
+
})(React.createElement(MyInput$2, {
|
|
20575
20573
|
style: {
|
|
20576
20574
|
textAlign: 'right'
|
|
20577
20575
|
},
|
|
@@ -20582,7 +20580,7 @@ var useColumns$1 = (function (form) {
|
|
|
20582
20580
|
}
|
|
20583
20581
|
})));
|
|
20584
20582
|
} else {
|
|
20585
|
-
return
|
|
20583
|
+
return React.createElement("span", {
|
|
20586
20584
|
style: {
|
|
20587
20585
|
padding: '0 10px'
|
|
20588
20586
|
}
|
|
@@ -20590,7 +20588,7 @@ var useColumns$1 = (function (form) {
|
|
|
20590
20588
|
}
|
|
20591
20589
|
}
|
|
20592
20590
|
}, {
|
|
20593
|
-
title:
|
|
20591
|
+
title: React.createElement(TitleText$1, {
|
|
20594
20592
|
required: true
|
|
20595
20593
|
}, "\u91D1\u989D(\u4E0D\u542B\u7A0E)"),
|
|
20596
20594
|
dataIndex: 'lineAmountExcludeTax',
|
|
@@ -20599,7 +20597,7 @@ var useColumns$1 = (function (form) {
|
|
|
20599
20597
|
width: 119,
|
|
20600
20598
|
render: function render(value, record) {
|
|
20601
20599
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
20602
|
-
return
|
|
20600
|
+
return React.createElement(Form.Item, null, getFieldDecorator('lineAmountExcludeTax', {
|
|
20603
20601
|
initialValue: editGood.lineAmountExcludeTax,
|
|
20604
20602
|
getValueFromEvent: onNumberValueChange,
|
|
20605
20603
|
rules: [].concat(_toConsumableArray(getReplenishRules('lineAmountExcludeTax')), [{
|
|
@@ -20634,7 +20632,7 @@ var useColumns$1 = (function (form) {
|
|
|
20634
20632
|
return validator;
|
|
20635
20633
|
}()
|
|
20636
20634
|
}])
|
|
20637
|
-
})(
|
|
20635
|
+
})(React.createElement(MyInput$2, {
|
|
20638
20636
|
style: {
|
|
20639
20637
|
textAlign: 'right'
|
|
20640
20638
|
},
|
|
@@ -20645,7 +20643,7 @@ var useColumns$1 = (function (form) {
|
|
|
20645
20643
|
}
|
|
20646
20644
|
})));
|
|
20647
20645
|
} else {
|
|
20648
|
-
return
|
|
20646
|
+
return React.createElement("span", {
|
|
20649
20647
|
style: {
|
|
20650
20648
|
padding: '0 10px'
|
|
20651
20649
|
}
|
|
@@ -20653,7 +20651,7 @@ var useColumns$1 = (function (form) {
|
|
|
20653
20651
|
}
|
|
20654
20652
|
}
|
|
20655
20653
|
}, {
|
|
20656
|
-
title:
|
|
20654
|
+
title: React.createElement(TitleText$1, {
|
|
20657
20655
|
required: true
|
|
20658
20656
|
}, "\u7A0E\u7387"),
|
|
20659
20657
|
dataIndex: 'taxRate',
|
|
@@ -20662,7 +20660,7 @@ var useColumns$1 = (function (form) {
|
|
|
20662
20660
|
width: 70,
|
|
20663
20661
|
render: function render(value, record) {
|
|
20664
20662
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
20665
|
-
return
|
|
20663
|
+
return React.createElement(Form.Item, null, getFieldDecorator('taxRate', {
|
|
20666
20664
|
initialValue: editGood.taxRate,
|
|
20667
20665
|
rules: [].concat(_toConsumableArray(getReplenishRules('taxRate')), [{
|
|
20668
20666
|
required: true,
|
|
@@ -20671,7 +20669,7 @@ var useColumns$1 = (function (form) {
|
|
|
20671
20669
|
pattern: /^[+-]?(0|([1-9]\d*))(\.\d+)?$/,
|
|
20672
20670
|
message: '请选择正确税率'
|
|
20673
20671
|
}])
|
|
20674
|
-
})(
|
|
20672
|
+
})(React.createElement(Select$1, {
|
|
20675
20673
|
className: "kts-invoice-operate-goods-list-table-tax-rate",
|
|
20676
20674
|
// dropdownMenuStyle={{ textAlign: "right" }}
|
|
20677
20675
|
showArrow: false,
|
|
@@ -20683,13 +20681,13 @@ var useColumns$1 = (function (form) {
|
|
|
20683
20681
|
onChangeTaxRate$1(controller, form, record);
|
|
20684
20682
|
}
|
|
20685
20683
|
}, taxRateList.map(function (e, i) {
|
|
20686
|
-
return
|
|
20684
|
+
return React.createElement(Select$1.Option, {
|
|
20687
20685
|
key: i,
|
|
20688
20686
|
value: e
|
|
20689
20687
|
}, e, "%");
|
|
20690
20688
|
}))));
|
|
20691
20689
|
} else {
|
|
20692
|
-
return
|
|
20690
|
+
return React.createElement("span", {
|
|
20693
20691
|
style: {
|
|
20694
20692
|
padding: '0 10px'
|
|
20695
20693
|
}
|
|
@@ -20697,7 +20695,7 @@ var useColumns$1 = (function (form) {
|
|
|
20697
20695
|
}
|
|
20698
20696
|
}
|
|
20699
20697
|
}, {
|
|
20700
|
-
title:
|
|
20698
|
+
title: React.createElement(TitleText$1, {
|
|
20701
20699
|
rules: (_columnsReplenish$tax = columnsReplenish['taxAmount']) === null || _columnsReplenish$tax === void 0 ? void 0 : _columnsReplenish$tax.rules
|
|
20702
20700
|
}, "\u7A0E\u989D"),
|
|
20703
20701
|
dataIndex: 'taxAmount',
|
|
@@ -20709,11 +20707,11 @@ var useColumns$1 = (function (form) {
|
|
|
20709
20707
|
return getFieldDecorator('taxAmount', {
|
|
20710
20708
|
initialValue: editGood.taxAmount,
|
|
20711
20709
|
rules: getReplenishRules('taxAmount')
|
|
20712
|
-
})(
|
|
20710
|
+
})(React.createElement(MyDiv$2, {
|
|
20713
20711
|
loading: isCipher$1(changeField, 'taxAmount')
|
|
20714
20712
|
}));
|
|
20715
20713
|
} else {
|
|
20716
|
-
return
|
|
20714
|
+
return React.createElement("span", {
|
|
20717
20715
|
style: {
|
|
20718
20716
|
padding: '0 10px'
|
|
20719
20717
|
}
|
|
@@ -20750,7 +20748,7 @@ var useColumns$1 = (function (form) {
|
|
|
20750
20748
|
ellipsis: true
|
|
20751
20749
|
});
|
|
20752
20750
|
});
|
|
20753
|
-
}, [isTaxIncluded, editGood, controller, changeField, deduction, isMyShow, searchValue, model, columnsReplenish, isStart]); // React.useEffect(() => {
|
|
20751
|
+
}, [isTaxIncluded, editGood, controller, taxRateList, changeField, deduction, isMyShow, searchValue, model, columnsReplenish, isStart]); // React.useEffect(() => {
|
|
20754
20752
|
// clearTimeout(t)
|
|
20755
20753
|
// const t = setTimeout(() => { setChangeField('') }, 1000);
|
|
20756
20754
|
// return () => { clearTimeout(t) }
|
|
@@ -20780,13 +20778,13 @@ var MyInput$2 = /*#__PURE__*/function (_React$Component) {
|
|
|
20780
20778
|
key: "render",
|
|
20781
20779
|
value: function render() {
|
|
20782
20780
|
if (this.props.loading) {
|
|
20783
|
-
return
|
|
20781
|
+
return React.createElement(Spin$1, {
|
|
20784
20782
|
size: "small"
|
|
20785
|
-
},
|
|
20783
|
+
}, React.createElement(Input$1, _objectSpread2(_objectSpread2({}, this.props), {}, {
|
|
20786
20784
|
autoComplete: "off"
|
|
20787
20785
|
})));
|
|
20788
20786
|
} else {
|
|
20789
|
-
return
|
|
20787
|
+
return React.createElement(Input$1, _objectSpread2(_objectSpread2({}, this.props), {}, {
|
|
20790
20788
|
autoComplete: "off"
|
|
20791
20789
|
}));
|
|
20792
20790
|
}
|
|
@@ -20811,15 +20809,15 @@ var MyDiv$2 = /*#__PURE__*/function (_React$Component2) {
|
|
|
20811
20809
|
key: "render",
|
|
20812
20810
|
value: function render() {
|
|
20813
20811
|
if (this.props.loading) {
|
|
20814
|
-
return
|
|
20812
|
+
return React.createElement(Spin$1, {
|
|
20815
20813
|
size: "small"
|
|
20816
|
-
},
|
|
20814
|
+
}, React.createElement("span", {
|
|
20817
20815
|
style: {
|
|
20818
20816
|
padding: '0 10px'
|
|
20819
20817
|
}
|
|
20820
20818
|
}, this.props.value));
|
|
20821
20819
|
} else {
|
|
20822
|
-
return
|
|
20820
|
+
return React.createElement("span", {
|
|
20823
20821
|
style: {
|
|
20824
20822
|
padding: '0 10px'
|
|
20825
20823
|
}
|
|
@@ -20852,32 +20850,32 @@ var MyItemNameDiv$1 = /*#__PURE__*/function (_React$Component3) {
|
|
|
20852
20850
|
|
|
20853
20851
|
if (isMyShow) {
|
|
20854
20852
|
if (valueT) {
|
|
20855
|
-
return
|
|
20853
|
+
return React.createElement(Tooltip$1, {
|
|
20856
20854
|
title: valueT
|
|
20857
|
-
},
|
|
20855
|
+
}, React.createElement("span", {
|
|
20858
20856
|
style: _objectSpread2(_objectSpread2({}, MyItemNameStyle), {}, {
|
|
20859
20857
|
color: '#0074ff'
|
|
20860
20858
|
})
|
|
20861
20859
|
}, valueT));
|
|
20862
20860
|
} else {
|
|
20863
|
-
return
|
|
20861
|
+
return React.createElement(Tooltip$1, {
|
|
20864
20862
|
title: valueF
|
|
20865
|
-
},
|
|
20863
|
+
}, React.createElement("span", {
|
|
20866
20864
|
style: MyItemNameStyle
|
|
20867
20865
|
}, valueF));
|
|
20868
20866
|
}
|
|
20869
20867
|
} else {
|
|
20870
20868
|
if (valueF) {
|
|
20871
|
-
return
|
|
20869
|
+
return React.createElement(Tooltip$1, {
|
|
20872
20870
|
title: valueF
|
|
20873
|
-
},
|
|
20871
|
+
}, React.createElement("span", {
|
|
20874
20872
|
style: MyItemNameStyle
|
|
20875
20873
|
}, valueF));
|
|
20876
20874
|
} else {
|
|
20877
|
-
return
|
|
20875
|
+
return React.createElement(Tooltip$1, {
|
|
20878
20876
|
title: valueT,
|
|
20879
20877
|
style: MyItemNameStyle
|
|
20880
|
-
},
|
|
20878
|
+
}, React.createElement("span", {
|
|
20881
20879
|
style: _objectSpread2(_objectSpread2({}, MyItemNameStyle), {}, {
|
|
20882
20880
|
color: '#0074ff'
|
|
20883
20881
|
})
|
|
@@ -20899,7 +20897,7 @@ function formatSearch$1(value, search) {
|
|
|
20899
20897
|
return dcoding$1(e);
|
|
20900
20898
|
}).join("<span class=\"kts-invoice-operate-goods-list-table-search-protrude\" >".concat(search, "</span>"));
|
|
20901
20899
|
|
|
20902
|
-
return
|
|
20900
|
+
return React.createElement("span", {
|
|
20903
20901
|
dangerouslySetInnerHTML: {
|
|
20904
20902
|
__html: __html
|
|
20905
20903
|
}
|
|
@@ -21294,7 +21292,7 @@ var useRowSelection$1 = (function () {
|
|
|
21294
21292
|
};
|
|
21295
21293
|
}(), [controller]);
|
|
21296
21294
|
var columnTitle = React.useMemo(function () {
|
|
21297
|
-
return
|
|
21295
|
+
return React.createElement(Checkbox, {
|
|
21298
21296
|
onChange: onClickSelectAll,
|
|
21299
21297
|
indeterminate: indeterminate,
|
|
21300
21298
|
checked: isAll
|
|
@@ -21443,19 +21441,19 @@ var useDelRowButton$1 = (function () {
|
|
|
21443
21441
|
}, _callee2);
|
|
21444
21442
|
})), []);
|
|
21445
21443
|
var menuItem = React.useMemo(function () {
|
|
21446
|
-
if (model === 'prefab') return
|
|
21447
|
-
if (model === 'readOnly') return
|
|
21448
|
-
return
|
|
21444
|
+
if (model === 'prefab') return React.createElement(React.Fragment, null);
|
|
21445
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
21446
|
+
return React.createElement(Menu$1.Item, {
|
|
21449
21447
|
key: "1",
|
|
21450
21448
|
onClick: onClick,
|
|
21451
21449
|
disabled: disabled
|
|
21452
21450
|
}, " \u5220\u9664\u884C ");
|
|
21453
21451
|
}, [model, onClick, disabled]);
|
|
21454
21452
|
var button = React.useMemo(function () {
|
|
21455
|
-
if (isRemRow === false) return
|
|
21456
|
-
if (model === 'prefab') return
|
|
21457
|
-
if (model === 'readOnly') return
|
|
21458
|
-
return
|
|
21453
|
+
if (isRemRow === false) return React.createElement(React.Fragment, null);
|
|
21454
|
+
if (model === 'prefab') return React.createElement(React.Fragment, null);
|
|
21455
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
21456
|
+
return React.createElement(Button$1, {
|
|
21459
21457
|
size: 'small',
|
|
21460
21458
|
onClick: onClick,
|
|
21461
21459
|
disabled: disabled
|
|
@@ -21686,16 +21684,16 @@ var useAddDiscountRowButton$1 = (function () {
|
|
|
21686
21684
|
}, [isAddDiscount, model]);
|
|
21687
21685
|
var button = React.useMemo(function () {
|
|
21688
21686
|
if (isEnable) {
|
|
21689
|
-
return
|
|
21687
|
+
return React.createElement(React.Fragment, null, React.createElement(Button$1, {
|
|
21690
21688
|
size: 'small',
|
|
21691
21689
|
onClick: onOpen,
|
|
21692
21690
|
disabled: disabled
|
|
21693
|
-
}, "\u6DFB\u52A0\u6298\u6263"),
|
|
21691
|
+
}, "\u6DFB\u52A0\u6298\u6263"), React.createElement(AddDiscountRowDrawer, {
|
|
21694
21692
|
open: open,
|
|
21695
21693
|
onClose: onClose
|
|
21696
21694
|
}));
|
|
21697
21695
|
} else {
|
|
21698
|
-
return
|
|
21696
|
+
return React.createElement(React.Fragment, null);
|
|
21699
21697
|
}
|
|
21700
21698
|
}, [open, onOpen, onClose, isEnable, disabled]);
|
|
21701
21699
|
return {
|
|
@@ -21876,35 +21874,35 @@ function AddDiscountRowDrawer(props) {
|
|
|
21876
21874
|
discolineValue: undefined
|
|
21877
21875
|
}));
|
|
21878
21876
|
}, [formValues === null || formValues === void 0 ? void 0 : formValues.discolineType]);
|
|
21879
|
-
return
|
|
21877
|
+
return React.createElement(Drawer$1, {
|
|
21880
21878
|
title: "\u6DFB\u52A0\u6298\u6263",
|
|
21881
21879
|
placement: "right",
|
|
21882
21880
|
width: 350,
|
|
21883
21881
|
onClose: onClose,
|
|
21884
21882
|
open: open,
|
|
21885
|
-
footer:
|
|
21883
|
+
footer: React.createElement(Space, {
|
|
21886
21884
|
size: "middle",
|
|
21887
21885
|
style: {
|
|
21888
21886
|
display: 'flex',
|
|
21889
21887
|
justifyContent: 'end'
|
|
21890
21888
|
}
|
|
21891
|
-
},
|
|
21889
|
+
}, React.createElement(Button$1, {
|
|
21892
21890
|
onClick: onDefine,
|
|
21893
21891
|
type: 'primary'
|
|
21894
|
-
}, "\u786E\u5B9A"),
|
|
21892
|
+
}, "\u786E\u5B9A"), React.createElement(Button$1, {
|
|
21895
21893
|
onClick: onClose
|
|
21896
21894
|
}, "\u53D6\u6D88"))
|
|
21897
|
-
},
|
|
21895
|
+
}, React.createElement(Form$1, {
|
|
21898
21896
|
form: form,
|
|
21899
21897
|
layout: 'vertical',
|
|
21900
21898
|
onChange: onChangeForm
|
|
21901
|
-
},
|
|
21899
|
+
}, React.createElement(Form$1.Item, {
|
|
21902
21900
|
label: "\u5546\u54C1\u91D1\u989D\uFF08\u542B\u7A0E\uFF09"
|
|
21903
|
-
}, totalAmount.toFixed(2), "\uFF08\u5171 ", discountGood.length, " \u884C\uFF09"),
|
|
21901
|
+
}, totalAmount.toFixed(2), "\uFF08\u5171 ", discountGood.length, " \u884C\uFF09"), React.createElement(Form$1.Item, {
|
|
21904
21902
|
label: "\u6298\u6263\u65B9\u5F0F",
|
|
21905
21903
|
name: 'discolineType',
|
|
21906
21904
|
initialValue: '1'
|
|
21907
|
-
},
|
|
21905
|
+
}, React.createElement(Radio.Group, {
|
|
21908
21906
|
options: [{
|
|
21909
21907
|
label: '按金额折扣',
|
|
21910
21908
|
value: '1'
|
|
@@ -21912,7 +21910,7 @@ function AddDiscountRowDrawer(props) {
|
|
|
21912
21910
|
label: '按比例折扣',
|
|
21913
21911
|
value: '2'
|
|
21914
21912
|
}]
|
|
21915
|
-
})), (formValues === null || formValues === void 0 ? void 0 : formValues.discolineType) === '2' ?
|
|
21913
|
+
})), (formValues === null || formValues === void 0 ? void 0 : formValues.discolineType) === '2' ? React.createElement(Form$1.Item, {
|
|
21916
21914
|
label: "\u6298\u6263\u6BD4\u4F8B\uFF08%\uFF09\uFF08\u542B\u7A0E\uFF09",
|
|
21917
21915
|
name: 'discolineValue',
|
|
21918
21916
|
rules: [{
|
|
@@ -21963,11 +21961,11 @@ function AddDiscountRowDrawer(props) {
|
|
|
21963
21961
|
return validator;
|
|
21964
21962
|
}()
|
|
21965
21963
|
}]
|
|
21966
|
-
},
|
|
21964
|
+
}, React.createElement(InputNumber, {
|
|
21967
21965
|
style: {
|
|
21968
21966
|
width: '100%'
|
|
21969
21967
|
}
|
|
21970
|
-
})) :
|
|
21968
|
+
})) : React.createElement(Form$1.Item, {
|
|
21971
21969
|
label: "\u6298\u6263\u91D1\u989D\uFF08\u5143\uFF09\uFF08\u542B\u7A0E\uFF09",
|
|
21972
21970
|
name: 'discolineValue',
|
|
21973
21971
|
rules: [{
|
|
@@ -22018,7 +22016,7 @@ function AddDiscountRowDrawer(props) {
|
|
|
22018
22016
|
return validator;
|
|
22019
22017
|
}()
|
|
22020
22018
|
}]
|
|
22021
|
-
},
|
|
22019
|
+
}, React.createElement(InputNumber, {
|
|
22022
22020
|
style: {
|
|
22023
22021
|
width: '100%'
|
|
22024
22022
|
}
|
|
@@ -22162,16 +22160,16 @@ var useEndowCodeButton$1 = (function () {
|
|
|
22162
22160
|
}, _callee2);
|
|
22163
22161
|
})), [controller]);
|
|
22164
22162
|
var menuItem = React.useMemo(function () {
|
|
22165
|
-
if (model === 'readOnly') return
|
|
22166
|
-
return
|
|
22163
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
22164
|
+
return React.createElement(Menu$1.Item, {
|
|
22167
22165
|
key: "2",
|
|
22168
22166
|
onClick: onClick,
|
|
22169
22167
|
disabled: disabled
|
|
22170
22168
|
}, "\u6279\u91CF\u8D4B\u7801");
|
|
22171
22169
|
}, [onClick, disabled, model]);
|
|
22172
22170
|
var button = React.useMemo(function () {
|
|
22173
|
-
if (model === 'readOnly') return
|
|
22174
|
-
return
|
|
22171
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
22172
|
+
return React.createElement(Button$1, {
|
|
22175
22173
|
onClick: onClick,
|
|
22176
22174
|
disabled: disabled,
|
|
22177
22175
|
size: 'small'
|
|
@@ -22233,14 +22231,14 @@ var useEmptyRefill = (function () {
|
|
|
22233
22231
|
}());
|
|
22234
22232
|
}, [controller]);
|
|
22235
22233
|
var button = React.useMemo(function () {
|
|
22236
|
-
if (model === 'readOnly') return
|
|
22237
|
-
if (model === 'prefab') return
|
|
22238
|
-
return
|
|
22234
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
22235
|
+
if (model === 'prefab') return React.createElement(React.Fragment, null);
|
|
22236
|
+
return React.createElement(Popconfirm, {
|
|
22239
22237
|
title: "\u5C06\u8981\u6E05\u7A7A\u6240\u6709\u9879\u76EE\u4FE1\u606F\uFF0C\u662F\u5426\u7EE7\u7EED",
|
|
22240
22238
|
onConfirm: confirm,
|
|
22241
22239
|
okText: "\u786E\u5B9A",
|
|
22242
22240
|
cancelText: "\u53D6\u6D88"
|
|
22243
|
-
},
|
|
22241
|
+
}, React.createElement(Button$1, {
|
|
22244
22242
|
size: 'small'
|
|
22245
22243
|
}, "\u6E05\u7A7A\u91CD\u586B"));
|
|
22246
22244
|
}, [model, confirm]);
|
|
@@ -22307,14 +22305,14 @@ function InvoiceTypeModal(props) {
|
|
|
22307
22305
|
setValues(values);
|
|
22308
22306
|
}
|
|
22309
22307
|
}, [props.open, props.defaultBillingType, props.defaultBusiness, props.defaultInvoiceType, form]);
|
|
22310
|
-
return
|
|
22308
|
+
return React.createElement(Modal, {
|
|
22311
22309
|
title: props.modalTitle || "选择开具信息",
|
|
22312
22310
|
open: props.open,
|
|
22313
22311
|
onOk: onConfirm,
|
|
22314
22312
|
onCancel: props.onCancel,
|
|
22315
22313
|
okText: "\u786E\u5B9A",
|
|
22316
22314
|
cancelText: "\u53D6\u6D88"
|
|
22317
|
-
},
|
|
22315
|
+
}, React.createElement(Form$1, {
|
|
22318
22316
|
form: form,
|
|
22319
22317
|
layout: "vertical",
|
|
22320
22318
|
style: {
|
|
@@ -22323,13 +22321,13 @@ function InvoiceTypeModal(props) {
|
|
|
22323
22321
|
onValuesChange: function onValuesChange(_, e) {
|
|
22324
22322
|
setValues(e);
|
|
22325
22323
|
}
|
|
22326
|
-
},
|
|
22324
|
+
}, React.createElement(Row, {
|
|
22327
22325
|
gutter: [16, 16]
|
|
22328
|
-
},
|
|
22326
|
+
}, React.createElement(Col, {
|
|
22329
22327
|
span: 24
|
|
22330
|
-
},
|
|
22328
|
+
}, React.createElement(Form$1.Item, {
|
|
22331
22329
|
name: 'billingType'
|
|
22332
|
-
},
|
|
22330
|
+
}, React.createElement(Radio.Group, {
|
|
22333
22331
|
size: 'large',
|
|
22334
22332
|
className: "goods-list-digtal-reselect-invoice-typeModal-radio",
|
|
22335
22333
|
optionType: "button",
|
|
@@ -22342,27 +22340,27 @@ function InvoiceTypeModal(props) {
|
|
|
22342
22340
|
label: '税控发票',
|
|
22343
22341
|
value: 'taxation'
|
|
22344
22342
|
}]
|
|
22345
|
-
}))),
|
|
22343
|
+
}))), React.createElement(Col, {
|
|
22346
22344
|
span: 12
|
|
22347
|
-
},
|
|
22345
|
+
}, React.createElement(Form$1.Item, {
|
|
22348
22346
|
name: 'invoiceType',
|
|
22349
22347
|
label: "\u9009\u62E9\u7968\u7C7B",
|
|
22350
22348
|
rules: [{
|
|
22351
22349
|
required: true,
|
|
22352
22350
|
message: '选择票类必填'
|
|
22353
22351
|
}]
|
|
22354
|
-
},
|
|
22352
|
+
}, React.createElement(Select$1, {
|
|
22355
22353
|
size: 'large',
|
|
22356
22354
|
allowClear: true,
|
|
22357
22355
|
placeholder: "\u8BF7\u9009\u62E9\uFF08\u5FC5\u586B\u9879\uFF09",
|
|
22358
22356
|
disabled: disableds.indexOf('invoiceType') >= 0,
|
|
22359
22357
|
options: props.invoiceTypeOptions
|
|
22360
|
-
}))),
|
|
22358
|
+
}))), React.createElement(Col, {
|
|
22361
22359
|
span: 12
|
|
22362
|
-
},
|
|
22360
|
+
}, React.createElement(Form$1.Item, {
|
|
22363
22361
|
name: 'business',
|
|
22364
22362
|
label: "\u7279\u5B9A\u4E1A\u52A1"
|
|
22365
|
-
},
|
|
22363
|
+
}, React.createElement(Select$1, {
|
|
22366
22364
|
size: 'large',
|
|
22367
22365
|
allowClear: true,
|
|
22368
22366
|
placeholder: "\u8BF7\u9009\u62E9\uFF08\u975E\u5FC5\u586B\u9879\uFF09",
|
|
@@ -22407,11 +22405,11 @@ var useReselectInvoiceType = (function () {
|
|
|
22407
22405
|
return true;
|
|
22408
22406
|
}, [model, typeModalProps === null || typeModalProps === void 0 ? void 0 : typeModalProps.isDisabled]);
|
|
22409
22407
|
var button = React.useMemo(function () {
|
|
22410
|
-
if (isEnable === false) return
|
|
22411
|
-
return
|
|
22408
|
+
if (isEnable === false) return React.createElement(React.Fragment, null);
|
|
22409
|
+
return React.createElement(React.Fragment, null, React.createElement(Button$1, {
|
|
22412
22410
|
size: 'small',
|
|
22413
22411
|
onClick: onOpen
|
|
22414
|
-
}, "\u91CD\u9009\u53D1\u7968\u7C7B\u578B"),
|
|
22412
|
+
}, "\u91CD\u9009\u53D1\u7968\u7C7B\u578B"), React.createElement(InvoiceTypeModal, _objectSpread2(_objectSpread2({}, typeModalProps), {}, {
|
|
22415
22413
|
open: open,
|
|
22416
22414
|
onCancel: onClose,
|
|
22417
22415
|
onOk: onOk
|
|
@@ -22439,7 +22437,7 @@ var GoodsList$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
22439
22437
|
_createClass(GoodsList, [{
|
|
22440
22438
|
key: "render",
|
|
22441
22439
|
value: function render() {
|
|
22442
|
-
return
|
|
22440
|
+
return React.createElement(Main$3, _objectSpread2({}, this.props));
|
|
22443
22441
|
}
|
|
22444
22442
|
}]);
|
|
22445
22443
|
|
|
@@ -22640,20 +22638,20 @@ var Main$3 = decorator(Form.create())(function (props) {
|
|
|
22640
22638
|
};
|
|
22641
22639
|
}())();
|
|
22642
22640
|
}, [controller, props.isSwitchTax]);
|
|
22643
|
-
return
|
|
22641
|
+
return React.createElement("div", {
|
|
22644
22642
|
className: "kts-invoice-operate-goods-list-digtal",
|
|
22645
22643
|
onClick: function onClick(e) {
|
|
22646
22644
|
e.stopPropagation();
|
|
22647
22645
|
}
|
|
22648
|
-
},
|
|
22646
|
+
}, React.createElement("div", {
|
|
22649
22647
|
className: "kts-invoice-operate-goods-list-able"
|
|
22650
|
-
},
|
|
22648
|
+
}, React.createElement(AddRowButton$1, null), delRowButton.button, addDiscountRowButton.button, endowCodeButton.button, React.createElement(TaxIncludedSwitch$1, null), React.createElement(Search$1, null), React.createElement("div", {
|
|
22651
22649
|
style: {
|
|
22652
22650
|
flex: 1
|
|
22653
22651
|
}
|
|
22654
|
-
}), props.menuExpansion, reselectInvoiceType.button, emptyRefill.button),
|
|
22652
|
+
}), props.menuExpansion, reselectInvoiceType.button, emptyRefill.button), React.createElement("div", {
|
|
22655
22653
|
className: classNames('kts-invoice-operate-goods-list-table-digtal')
|
|
22656
|
-
},
|
|
22654
|
+
}, React.createElement(TableVirtual$1, {
|
|
22657
22655
|
size: "small",
|
|
22658
22656
|
rowKey: "$index",
|
|
22659
22657
|
pagination: false,
|
|
@@ -22675,7 +22673,7 @@ var Main$3 = decorator(Form.create())(function (props) {
|
|
|
22675
22673
|
}
|
|
22676
22674
|
};
|
|
22677
22675
|
}
|
|
22678
|
-
})),
|
|
22676
|
+
})), React.createElement("div", null, React.createElement(Statistics$1, null)));
|
|
22679
22677
|
});
|
|
22680
22678
|
|
|
22681
22679
|
var ImportBuyerDrawer = (function () {
|
|
@@ -22709,7 +22707,7 @@ var ImportBuyerDrawer = (function () {
|
|
|
22709
22707
|
};
|
|
22710
22708
|
}())();
|
|
22711
22709
|
}, [controller]);
|
|
22712
|
-
return
|
|
22710
|
+
return React.createElement(Drawer, {
|
|
22713
22711
|
title: "\u8D2D\u65B9\u5217\u8868",
|
|
22714
22712
|
placement: "right",
|
|
22715
22713
|
// closable={false}
|
|
@@ -22717,7 +22715,7 @@ var ImportBuyerDrawer = (function () {
|
|
|
22717
22715
|
width: 983,
|
|
22718
22716
|
onClose: onClose,
|
|
22719
22717
|
visible: visible
|
|
22720
|
-
}, topExpand,
|
|
22718
|
+
}, topExpand, React.createElement(DrawerBody$1, null));
|
|
22721
22719
|
});
|
|
22722
22720
|
|
|
22723
22721
|
var DrawerBody$1 = function DrawerBody() {
|
|
@@ -22738,7 +22736,7 @@ var DrawerBody$1 = function DrawerBody() {
|
|
|
22738
22736
|
}
|
|
22739
22737
|
});
|
|
22740
22738
|
}, [controller]);
|
|
22741
|
-
return
|
|
22739
|
+
return React.createElement(Table$1, {
|
|
22742
22740
|
bordered: true,
|
|
22743
22741
|
size: "small",
|
|
22744
22742
|
columns: columns,
|
|
@@ -22838,7 +22836,7 @@ var ImportGoodsDrawer = (function () {
|
|
|
22838
22836
|
};
|
|
22839
22837
|
}())();
|
|
22840
22838
|
}, [controller]);
|
|
22841
|
-
return
|
|
22839
|
+
return React.createElement(Drawer, {
|
|
22842
22840
|
title: "\u5546\u54C1\u5217\u8868",
|
|
22843
22841
|
placement: "right",
|
|
22844
22842
|
// closable={false}
|
|
@@ -22846,11 +22844,11 @@ var ImportGoodsDrawer = (function () {
|
|
|
22846
22844
|
width: 983,
|
|
22847
22845
|
onClose: onClose,
|
|
22848
22846
|
visible: visible
|
|
22849
|
-
}, topExpand &&
|
|
22847
|
+
}, topExpand && React.createElement("div", {
|
|
22850
22848
|
style: {
|
|
22851
22849
|
marginBottom: 10
|
|
22852
22850
|
}
|
|
22853
|
-
}, topExpand),
|
|
22851
|
+
}, topExpand), React.createElement(DrawerBody$2, null));
|
|
22854
22852
|
});
|
|
22855
22853
|
|
|
22856
22854
|
var DrawerBody$2 = function DrawerBody() {
|
|
@@ -22872,7 +22870,7 @@ var DrawerBody$2 = function DrawerBody() {
|
|
|
22872
22870
|
}
|
|
22873
22871
|
});
|
|
22874
22872
|
}, [controller]);
|
|
22875
|
-
return
|
|
22873
|
+
return React.createElement(Table$1, {
|
|
22876
22874
|
bordered: true,
|
|
22877
22875
|
size: "small",
|
|
22878
22876
|
columns: columns,
|
|
@@ -23159,7 +23157,7 @@ var EndowCodeDrawer = (function () {
|
|
|
23159
23157
|
setDefaultValue(undefined);
|
|
23160
23158
|
}
|
|
23161
23159
|
}, [visible]);
|
|
23162
|
-
return
|
|
23160
|
+
return React.createElement(Drawer, {
|
|
23163
23161
|
title: "\u8D4B\u7801",
|
|
23164
23162
|
placement: "right",
|
|
23165
23163
|
destroyOnClose: true,
|
|
@@ -23167,7 +23165,7 @@ var EndowCodeDrawer = (function () {
|
|
|
23167
23165
|
width: 383,
|
|
23168
23166
|
onClose: onClose,
|
|
23169
23167
|
visible: visible
|
|
23170
|
-
}, defaultValue &&
|
|
23168
|
+
}, defaultValue && React.createElement(DrawerBody$3, {
|
|
23171
23169
|
defaultValue: defaultValue
|
|
23172
23170
|
}));
|
|
23173
23171
|
});
|
|
@@ -23307,7 +23305,7 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23307
23305
|
};
|
|
23308
23306
|
}());
|
|
23309
23307
|
}, [actions, dataSource, readOnlyTaxRate]);
|
|
23310
|
-
return
|
|
23308
|
+
return React.createElement(Select, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
23311
23309
|
showSearch: true,
|
|
23312
23310
|
showArrow: false,
|
|
23313
23311
|
notFoundContent: null,
|
|
@@ -23315,7 +23313,7 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23315
23313
|
onSearch: onSearch,
|
|
23316
23314
|
onChange: onChange
|
|
23317
23315
|
}), dataSource.map(function (e) {
|
|
23318
|
-
return
|
|
23316
|
+
return React.createElement(Select.Option, {
|
|
23319
23317
|
key: e.value,
|
|
23320
23318
|
value: e.value
|
|
23321
23319
|
}, e.label);
|
|
@@ -23345,14 +23343,14 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23345
23343
|
|
|
23346
23344
|
|
|
23347
23345
|
var createTreeNode = React.useCallback(function () {
|
|
23348
|
-
if (!list) return
|
|
23346
|
+
if (!list) return React.createElement(React.Fragment, null);
|
|
23349
23347
|
return ctn(list);
|
|
23350
23348
|
|
|
23351
23349
|
function title(label) {
|
|
23352
23350
|
if (!filter) return label;
|
|
23353
23351
|
label = (filter.taxCategoryCode ? label.split(new RegExp(filter.taxCategoryCode, 'g')) : [label]).join("<span style=\"color: #1890ff;\">".concat(filter.taxCategoryCode, "</span>"));
|
|
23354
23352
|
label = (filter.val ? label.split(new RegExp(filter.val, 'g')) : [label]).join("<span style=\"color: #1890ff;\">".concat(filter.val, "</span>"));
|
|
23355
|
-
return
|
|
23353
|
+
return React.createElement("span", {
|
|
23356
23354
|
dangerouslySetInnerHTML: {
|
|
23357
23355
|
__html: label
|
|
23358
23356
|
}
|
|
@@ -23361,11 +23359,11 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23361
23359
|
|
|
23362
23360
|
function ctn(l) {
|
|
23363
23361
|
var p = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '0';
|
|
23364
|
-
if (!l || !l.length) return [
|
|
23362
|
+
if (!l || !l.length) return [React.createElement(React.Fragment, null)];
|
|
23365
23363
|
return l.filter(function (e) {
|
|
23366
23364
|
return e.pid === p;
|
|
23367
23365
|
}).map(function (e) {
|
|
23368
|
-
return
|
|
23366
|
+
return React.createElement(TreeNode, {
|
|
23369
23367
|
title: title(e.label),
|
|
23370
23368
|
key: e.id
|
|
23371
23369
|
}, ctn(l, e.id));
|
|
@@ -23478,46 +23476,46 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23478
23476
|
setList([]);
|
|
23479
23477
|
}
|
|
23480
23478
|
}, [visible]);
|
|
23481
|
-
return
|
|
23479
|
+
return React.createElement(React.Fragment, null, React.createElement(Input, {
|
|
23482
23480
|
readOnly: true,
|
|
23483
23481
|
value: props.value,
|
|
23484
|
-
addonAfter:
|
|
23482
|
+
addonAfter: React.createElement(Button, {
|
|
23485
23483
|
size: "small",
|
|
23486
23484
|
type: "link",
|
|
23487
23485
|
onClick: function onClick() {
|
|
23488
23486
|
setVisible(true);
|
|
23489
23487
|
}
|
|
23490
23488
|
}, "\u70B9\u51FB\u9009\u62E9")
|
|
23491
|
-
}),
|
|
23489
|
+
}), React.createElement(Drawer, {
|
|
23492
23490
|
title: "\u7A0E\u6536\u5206\u7C7B\u7F16\u7801",
|
|
23493
23491
|
visible: visible,
|
|
23494
23492
|
width: 500,
|
|
23495
23493
|
onClose: function onClose() {
|
|
23496
23494
|
setVisible(false);
|
|
23497
23495
|
}
|
|
23498
|
-
},
|
|
23496
|
+
}, React.createElement(Form, {
|
|
23499
23497
|
key: "".concat(visible)
|
|
23500
|
-
},
|
|
23498
|
+
}, React.createElement(Form.Item, {
|
|
23501
23499
|
label: "\u4EA7\u54C1\u6216\u670D\u52A1\u7B80\u79F0"
|
|
23502
|
-
},
|
|
23500
|
+
}, React.createElement(Input, {
|
|
23503
23501
|
onChange: function onChange(e) {
|
|
23504
23502
|
setFilter(_objectSpread2(_objectSpread2({}, filter), {}, {
|
|
23505
23503
|
val: e.target.value
|
|
23506
23504
|
}));
|
|
23507
23505
|
}
|
|
23508
|
-
})),
|
|
23506
|
+
})), React.createElement(Form.Item, {
|
|
23509
23507
|
label: "\u7A0E\u6536\u5206\u7C7B\u7F16\u7801"
|
|
23510
|
-
},
|
|
23508
|
+
}, React.createElement(Input, {
|
|
23511
23509
|
onChange: function onChange(e) {
|
|
23512
23510
|
setFilter(_objectSpread2(_objectSpread2({}, filter), {}, {
|
|
23513
23511
|
taxCategoryCode: e.target.value
|
|
23514
23512
|
}));
|
|
23515
23513
|
}
|
|
23516
|
-
}))), list && list.length > 0 ?
|
|
23514
|
+
}))), list && list.length > 0 ? React.createElement(Tree, {
|
|
23517
23515
|
defaultExpandAll: true,
|
|
23518
23516
|
selectedKeys: [],
|
|
23519
23517
|
onSelect: onSelect
|
|
23520
|
-
}, createTreeNode()) :
|
|
23518
|
+
}, createTreeNode()) : React.createElement("span", {
|
|
23521
23519
|
style: {
|
|
23522
23520
|
color: '#00000073'
|
|
23523
23521
|
}
|
|
@@ -23723,11 +23721,11 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23723
23721
|
return data;
|
|
23724
23722
|
};
|
|
23725
23723
|
|
|
23726
|
-
return
|
|
23724
|
+
return React.createElement(React.Fragment, null, React.createElement(Input, {
|
|
23727
23725
|
readOnly: true,
|
|
23728
23726
|
onClick: onClick,
|
|
23729
23727
|
value: props.value
|
|
23730
|
-
}),
|
|
23728
|
+
}), React.createElement(TaxClassificationModal, {
|
|
23731
23729
|
list: list,
|
|
23732
23730
|
open: open,
|
|
23733
23731
|
onSelect: onSelect,
|
|
@@ -23846,14 +23844,14 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23846
23844
|
React.useEffect(function () {
|
|
23847
23845
|
if (controller.getTaxCategoryCodeList) controller.getTaxCategoryCodeList();
|
|
23848
23846
|
}, [controller]);
|
|
23849
|
-
return
|
|
23847
|
+
return React.createElement(SchemaForm, {
|
|
23850
23848
|
actions: actions,
|
|
23851
23849
|
previewPlaceholder: " ",
|
|
23852
23850
|
components: _objectSpread2(_objectSpread2({}, components), {}, {
|
|
23853
23851
|
showSearch: !!controller.state.goodsListState.endowCode.onLoadTaxClassificationCode ? ShowSearch3 : ShowSearch
|
|
23854
23852
|
}),
|
|
23855
23853
|
effects: effects
|
|
23856
|
-
},
|
|
23854
|
+
}, React.createElement(FormButtonGroup, null, React.createElement(SchemaMarkupField, {
|
|
23857
23855
|
name: "taxClassificationCode",
|
|
23858
23856
|
type: "showSearch",
|
|
23859
23857
|
title: "\u7A0E\u6536\u5206\u7C7B\u7F16\u7801",
|
|
@@ -23863,13 +23861,13 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23863
23861
|
message: '请选择税收分类编码',
|
|
23864
23862
|
required: true
|
|
23865
23863
|
}]
|
|
23866
|
-
}),
|
|
23864
|
+
}), React.createElement(SchemaMarkupField, {
|
|
23867
23865
|
name: "shorthand",
|
|
23868
23866
|
type: "string",
|
|
23869
23867
|
readOnly: true,
|
|
23870
23868
|
default: defaultValue === null || defaultValue === void 0 ? void 0 : defaultValue.shorthand,
|
|
23871
23869
|
title: "\u5546\u54C1\u548C\u670D\u52A1\u5206\u7C7B\u7B80\u79F0"
|
|
23872
|
-
}),
|
|
23870
|
+
}), React.createElement(SchemaMarkupField, {
|
|
23873
23871
|
name: "taxRate",
|
|
23874
23872
|
type: "string",
|
|
23875
23873
|
title: "\u7A0E\u7387",
|
|
@@ -23882,7 +23880,7 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23882
23880
|
message: '请选择税率',
|
|
23883
23881
|
required: true
|
|
23884
23882
|
}]
|
|
23885
|
-
}), taxRate === 0 && isTaxFreeTypeNeeded &&
|
|
23883
|
+
}), taxRate === 0 && isTaxFreeTypeNeeded && React.createElement(SchemaMarkupField, {
|
|
23886
23884
|
name: "taxFreeType",
|
|
23887
23885
|
type: "string",
|
|
23888
23886
|
title: "\u514D\u7A0E\u7C7B\u578B",
|
|
@@ -23895,7 +23893,7 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23895
23893
|
message: '请选择免税类型',
|
|
23896
23894
|
required: true
|
|
23897
23895
|
}]
|
|
23898
|
-
}),
|
|
23896
|
+
}), React.createElement(SchemaMarkupField, {
|
|
23899
23897
|
name: "favouredPolicyMark",
|
|
23900
23898
|
type: "number",
|
|
23901
23899
|
title: "\u662F\u5426\u4EAB\u53D7\u4F18\u60E0\u653F\u7B56",
|
|
@@ -23914,7 +23912,7 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23914
23912
|
message: '请选择是否享受优惠政策',
|
|
23915
23913
|
required: true
|
|
23916
23914
|
}]
|
|
23917
|
-
}), favouredPolicyMark === 1 &&
|
|
23915
|
+
}), favouredPolicyMark === 1 && React.createElement(SchemaMarkupField, {
|
|
23918
23916
|
name: "favouredPolicyName",
|
|
23919
23917
|
type: "string",
|
|
23920
23918
|
title: "\u4F18\u60E0\u653F\u7B56\u7C7B\u578B",
|
|
@@ -23927,14 +23925,14 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23927
23925
|
message: '请选择是否享受优惠政策',
|
|
23928
23926
|
required: true
|
|
23929
23927
|
}]
|
|
23930
|
-
})),
|
|
23928
|
+
})), React.createElement("span", {
|
|
23931
23929
|
className: "kts-invoice-operate-goods-endow-code-button-list"
|
|
23932
|
-
},
|
|
23930
|
+
}, React.createElement(Button, {
|
|
23933
23931
|
onClick: function onClick() {
|
|
23934
23932
|
actions.submit(onSubmit);
|
|
23935
23933
|
},
|
|
23936
23934
|
type: "primary"
|
|
23937
|
-
}, "\u786E\u5B9A"),
|
|
23935
|
+
}, "\u786E\u5B9A"), React.createElement(Button, {
|
|
23938
23936
|
onClick: function onClick() {
|
|
23939
23937
|
controller.pipeline( /*#__PURE__*/function () {
|
|
23940
23938
|
var _ref17 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee17(s) {
|
|
@@ -24094,53 +24092,53 @@ function AddComparisonDrawer() {
|
|
|
24094
24092
|
}));
|
|
24095
24093
|
}
|
|
24096
24094
|
}, [good]);
|
|
24097
|
-
return
|
|
24095
|
+
return React.createElement(Drawer$1, {
|
|
24098
24096
|
width: 500,
|
|
24099
24097
|
onClose: onClose,
|
|
24100
24098
|
placement: "right",
|
|
24101
24099
|
title: "\u5546\u54C1\u6620\u5C04",
|
|
24102
24100
|
visible: !!good,
|
|
24103
|
-
footer:
|
|
24101
|
+
footer: React.createElement("div", {
|
|
24104
24102
|
style: {
|
|
24105
24103
|
display: 'flex',
|
|
24106
24104
|
justifyContent: 'flex-end',
|
|
24107
24105
|
gap: 10
|
|
24108
24106
|
}
|
|
24109
|
-
},
|
|
24107
|
+
}, React.createElement(Button, {
|
|
24110
24108
|
type: "primary",
|
|
24111
24109
|
onClick: onSubmit
|
|
24112
|
-
}, "\u63D0\u4EA4"),
|
|
24110
|
+
}, "\u63D0\u4EA4"), React.createElement(Button, {
|
|
24113
24111
|
onClick: onClose
|
|
24114
24112
|
}, "\u53D6\u6D88"))
|
|
24115
|
-
}, !!good &&
|
|
24113
|
+
}, !!good && React.createElement(Form$1, {
|
|
24116
24114
|
layout: "vertical",
|
|
24117
24115
|
style: {
|
|
24118
24116
|
flex: 1
|
|
24119
24117
|
},
|
|
24120
24118
|
form: form
|
|
24121
|
-
},
|
|
24119
|
+
}, React.createElement(Row$1, {
|
|
24122
24120
|
gutter: [8, 8]
|
|
24123
|
-
},
|
|
24121
|
+
}, React.createElement(Col$1, {
|
|
24124
24122
|
span: 12
|
|
24125
|
-
},
|
|
24123
|
+
}, React.createElement(Form$1.Item, {
|
|
24126
24124
|
name: "itemNameSelf",
|
|
24127
24125
|
label: "\u6211\u65B9\u5546\u54C1\u540D\u79F0"
|
|
24128
|
-
},
|
|
24126
|
+
}, React.createElement(Input, null))), React.createElement(Col$1, {
|
|
24129
24127
|
span: 12
|
|
24130
|
-
},
|
|
24128
|
+
}, React.createElement(Form$1.Item, {
|
|
24131
24129
|
name: "itemName",
|
|
24132
24130
|
label: "\u5BF9\u65B9\u5546\u54C1\u540D\u79F0"
|
|
24133
|
-
},
|
|
24131
|
+
}, React.createElement(Input, null))), React.createElement(Col$1, {
|
|
24134
24132
|
span: 12
|
|
24135
|
-
},
|
|
24133
|
+
}, React.createElement(Form$1.Item, {
|
|
24136
24134
|
name: 'itemModelNameSelf',
|
|
24137
24135
|
label: "\u6211\u65B9\u89C4\u683C\u578B\u53F7"
|
|
24138
|
-
},
|
|
24136
|
+
}, React.createElement(Input, null))), React.createElement(Col$1, {
|
|
24139
24137
|
span: 12
|
|
24140
|
-
},
|
|
24138
|
+
}, React.createElement(Form$1.Item, {
|
|
24141
24139
|
name: "itemModelName",
|
|
24142
24140
|
label: "\u5BF9\u65B9\u89C4\u683C\u578B\u53F7"
|
|
24143
|
-
},
|
|
24141
|
+
}, React.createElement(Input, null))))));
|
|
24144
24142
|
} // function validateFields(form: WrappedFormUtils<any>) {
|
|
24145
24143
|
// return new Promise<{ err: any, values: any }>(resolve => {
|
|
24146
24144
|
// form.validateFields((err, values) => {
|
|
@@ -24151,7 +24149,7 @@ function AddComparisonDrawer() {
|
|
|
24151
24149
|
|
|
24152
24150
|
/** 发票组件的上下文 */
|
|
24153
24151
|
|
|
24154
|
-
var InvoiceContext =
|
|
24152
|
+
var InvoiceContext = React.createContext(undefined);
|
|
24155
24153
|
|
|
24156
24154
|
var Invoice = /*#__PURE__*/function (_React$PureComponent) {
|
|
24157
24155
|
_inherits(Invoice, _React$PureComponent);
|
|
@@ -24196,9 +24194,9 @@ var Invoice = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
24196
24194
|
/** 获取控制器钩子 */
|
|
24197
24195
|
function render() {
|
|
24198
24196
|
if (this.props.invoiceType === 'digtal') {
|
|
24199
|
-
return
|
|
24197
|
+
return React.createElement(Digtal, _objectSpread2({}, this.props));
|
|
24200
24198
|
} else {
|
|
24201
|
-
return
|
|
24199
|
+
return React.createElement(Main$4, _objectSpread2({}, this.props));
|
|
24202
24200
|
}
|
|
24203
24201
|
}
|
|
24204
24202
|
}]);
|
|
@@ -24240,10 +24238,10 @@ var Main$4 = function Main(props) {
|
|
|
24240
24238
|
React.useEffect(function () {
|
|
24241
24239
|
setKey(key + 1);
|
|
24242
24240
|
}, [controller]);
|
|
24243
|
-
return
|
|
24241
|
+
return React.createElement(InvoiceContext.Provider, {
|
|
24244
24242
|
key: key,
|
|
24245
24243
|
value: controller
|
|
24246
|
-
},
|
|
24244
|
+
}, React.createElement("div", {
|
|
24247
24245
|
className: "kts-invoice-operate",
|
|
24248
24246
|
ref: controller.pipeline( /*#__PURE__*/function () {
|
|
24249
24247
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(s, e) {
|
|
@@ -24265,17 +24263,17 @@ var Main$4 = function Main(props) {
|
|
|
24265
24263
|
return _ref.apply(this, arguments);
|
|
24266
24264
|
};
|
|
24267
24265
|
}())
|
|
24268
|
-
}, props.invoiceHeader ||
|
|
24266
|
+
}, props.invoiceHeader || React.createElement(InvoiceHeader, null)
|
|
24269
24267
|
/** 发票头 */
|
|
24270
|
-
, props.buyer ||
|
|
24268
|
+
, props.buyer || React.createElement(Buyer$1, null)
|
|
24271
24269
|
/** 购买方 */
|
|
24272
|
-
, props.goodsList ||
|
|
24270
|
+
, props.goodsList || React.createElement(GoodsList, null)
|
|
24273
24271
|
/** 货物列表 */
|
|
24274
|
-
, props.seller ||
|
|
24272
|
+
, props.seller || React.createElement(Buyer, null)
|
|
24275
24273
|
/** 销售方 */
|
|
24276
|
-
, props.sign ||
|
|
24274
|
+
, props.sign || React.createElement(Sign, null)
|
|
24277
24275
|
/** 落款 */
|
|
24278
|
-
, props.footExpand),
|
|
24276
|
+
, props.footExpand), React.createElement(ImportBuyerDrawer, null), React.createElement(ImportGoodsDrawer, null), React.createElement(EndowCodeDrawer, null), React.createElement(AddComparisonDrawer, null));
|
|
24279
24277
|
};
|
|
24280
24278
|
/** 数电 */
|
|
24281
24279
|
|
|
@@ -24294,10 +24292,10 @@ var Digtal = function Digtal(props) {
|
|
|
24294
24292
|
React.useEffect(function () {
|
|
24295
24293
|
setKey(key + 1);
|
|
24296
24294
|
}, [controller]);
|
|
24297
|
-
return
|
|
24295
|
+
return React.createElement(InvoiceContext.Provider, {
|
|
24298
24296
|
key: key,
|
|
24299
24297
|
value: controller
|
|
24300
|
-
},
|
|
24298
|
+
}, React.createElement("div", {
|
|
24301
24299
|
className: "kts-invoice-operate-digtal",
|
|
24302
24300
|
ref: controller.pipeline( /*#__PURE__*/function () {
|
|
24303
24301
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(s, e) {
|
|
@@ -24319,17 +24317,17 @@ var Digtal = function Digtal(props) {
|
|
|
24319
24317
|
return _ref2.apply(this, arguments);
|
|
24320
24318
|
};
|
|
24321
24319
|
}())
|
|
24322
|
-
}, props.invoiceHeader ||
|
|
24320
|
+
}, props.invoiceHeader || React.createElement(InvoiceHeaderDigtal, null)
|
|
24323
24321
|
/** 发票头 */
|
|
24324
|
-
,
|
|
24322
|
+
, React.createElement("div", {
|
|
24325
24323
|
className: 'kts-invoice-operate-digtal-cont'
|
|
24326
|
-
}, props.stakeholder ||
|
|
24324
|
+
}, props.stakeholder || React.createElement(Stakeholder$1, null)
|
|
24327
24325
|
/** 干系人 */
|
|
24328
|
-
, props.goodsList ||
|
|
24326
|
+
, props.goodsList || React.createElement(GoodsList$1
|
|
24329
24327
|
/** 货物列表 */
|
|
24330
|
-
, null)), props.sign ||
|
|
24328
|
+
, null)), props.sign || React.createElement(SignDigtal, null)
|
|
24331
24329
|
/** 落款 */
|
|
24332
|
-
),
|
|
24330
|
+
), React.createElement(ImportGoodsDrawer, null), React.createElement(EndowCodeDrawer, null));
|
|
24333
24331
|
};
|
|
24334
24332
|
|
|
24335
24333
|
function TaxClassificationModal(props) {
|
|
@@ -24370,26 +24368,26 @@ function TaxClassificationModal(props) {
|
|
|
24370
24368
|
}, 500);
|
|
24371
24369
|
}
|
|
24372
24370
|
}, [form, props.open]);
|
|
24373
|
-
return
|
|
24371
|
+
return React.createElement(Drawer$1, {
|
|
24374
24372
|
title: "\u5546\u54C1\u548C\u670D\u52A1\u7A0E\u6536\u5206\u7C7B\u7F16\u7801",
|
|
24375
24373
|
placement: "right",
|
|
24376
24374
|
open: props.open,
|
|
24377
24375
|
width: 503,
|
|
24378
24376
|
onClose: props.onCancel
|
|
24379
|
-
},
|
|
24377
|
+
}, React.createElement(Form$1, {
|
|
24380
24378
|
form: form
|
|
24381
|
-
},
|
|
24379
|
+
}, React.createElement(Form$1.Item, {
|
|
24382
24380
|
name: 'search'
|
|
24383
|
-
},
|
|
24381
|
+
}, React.createElement(Input$1, {
|
|
24384
24382
|
placeholder: "\u8BF7\u8F93\u5165\u7A0E\u6536\u5206\u7C7B\u7F16\u7801\u3001\u7A0E\u6536\u5206\u7C7B\u540D\u79F0\u8FDB\u884C\u68C0\u7D22",
|
|
24385
24383
|
onChange: searchTax
|
|
24386
|
-
})),
|
|
24384
|
+
})), React.createElement(Form$1.Item, {
|
|
24387
24385
|
name: 'tree'
|
|
24388
|
-
},
|
|
24386
|
+
}, React.createElement(Tree$1, {
|
|
24389
24387
|
onSelect: props.onSelect,
|
|
24390
24388
|
loadData: props.onLoad,
|
|
24391
24389
|
treeData: props.list,
|
|
24392
|
-
switcherIcon:
|
|
24390
|
+
switcherIcon: React.createElement(Icon$1, {
|
|
24393
24391
|
type: "down"
|
|
24394
24392
|
})
|
|
24395
24393
|
}))));
|