kts-component-invoice-operate 3.2.130 → 3.2.131
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.dumi/theme/builtins/API.tsx +66 -66
- package/.editorconfig +16 -16
- package/.fatherrc.ts +4 -4
- package/.prettierignore +7 -7
- package/.prettierrc +11 -11
- package/.umirc.ts +8 -8
- package/README.md +9 -9
- package/dist/index.esm.js +602 -594
- package/dist/index.js +602 -594
- package/docs/index.md +5 -5
- package/docs-dist/static/arrowDown.a1cbf0d8.svg +2 -2
- package/docs-dist/static/arrowUp.4c482054.svg +2 -2
- package/docs-dist/static/fork.5431267d.svg +11 -11
- package/docs-dist/static/plus.44013ce3.svg +11 -11
- package/docs-dist/static/plus.4fd1af30.svg +11 -11
- package/index.html +12 -12
- package/package.json +61 -61
- package/src/Invoice/Invoice-digtal/_test/disabled/index.tsx +38 -38
- package/src/Invoice/Invoice-digtal/_test/easiest/index.tsx +16 -16
- package/src/Invoice/Invoice-digtal/_test/header/index.tsx +84 -84
- package/src/Invoice/Invoice-digtal/_test/importGoods/index.tsx +868 -868
- package/src/Invoice/Invoice-digtal/_test/importStakeholder/index.tsx +17 -17
- package/src/Invoice/Invoice-digtal/_test/lineCredit/index.tsx +20 -20
- package/src/Invoice/Invoice-digtal/_test/prefab/index.tsx +150 -150
- package/src/Invoice/Invoice-digtal/_test/readOnly/index.tsx +42 -42
- package/src/Invoice/Invoice-digtal/_test/stakeholder/index.tsx +12 -12
- package/src/Invoice/Invoice-digtal/_test/typeSelection/index.tsx +29 -29
- package/src/Invoice/Invoice-digtal/index.md +30 -30
- package/src/Invoice/InvoiceController/InvoiceControllerForm/index.ts +95 -95
- package/src/Invoice/InvoiceController/InvoiceControllerState/AutoComplete/index.ts +20 -20
- package/src/Invoice/InvoiceController/InvoiceControllerState/BuyerState/index.tsx +88 -88
- package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/Drag/index.ts +15 -15
- package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/EndowCode/index.tsx +104 -104
- package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/IColumnsReplenish/index.ts +10 -10
- package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/IGood/index.ts +78 -78
- package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/ImportGoods/index.ts +81 -81
- package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/LineAttributeType/index.ts +7 -7
- package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/ProductComparison/index.ts +9 -9
- package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/index.ts +117 -117
- package/src/Invoice/InvoiceController/InvoiceControllerState/Stakeholder/index.ts +13 -13
- package/src/Invoice/InvoiceController/InvoiceControllerState/index.ts +65 -65
- package/src/Invoice/InvoiceController/fns/addGood.ts +11 -11
- package/src/Invoice/InvoiceController/fns/addGoodDiscount.ts +126 -126
- package/src/Invoice/InvoiceController/fns/addGoodDiscountV2.ts +86 -86
- package/src/Invoice/InvoiceController/fns/delGood.ts +41 -41
- package/src/Invoice/InvoiceController/fns/getGoodsSearch.ts +26 -26
- package/src/Invoice/InvoiceController/fns/importGoodsDrawer.ts +79 -79
- package/src/Invoice/InvoiceController/fns/itemBlur.ts +40 -40
- package/src/Invoice/InvoiceController/fns/mergeDetails.ts +201 -201
- package/src/Invoice/InvoiceController/fns/mergeDiscount.ts +35 -35
- package/src/Invoice/InvoiceController/fns/saveEditGood.ts +24 -24
- package/src/Invoice/InvoiceController/fns/setEditGood.ts +16 -16
- package/src/Invoice/InvoiceController/fns/setGoods.ts +10 -10
- package/src/Invoice/InvoiceController/fns/updateInvoiceNo.ts +8 -8
- package/src/Invoice/InvoiceController/index.ts +81 -81
- package/src/Invoice/_test/buyerNameSearch/index.tsx +42 -42
- package/src/Invoice/_test/deduction/index.tsx +935 -935
- package/src/Invoice/_test/draft/index.tsx +40 -40
- package/src/Invoice/_test/easiest/index.tsx +5 -5
- package/src/Invoice/_test/endowCode/index.tsx +1158 -1158
- package/src/Invoice/_test/goodsMenuExpand/index.tsx +32 -32
- package/src/Invoice/_test/importBuyer/index.tsx +74 -74
- package/src/Invoice/_test/importGoods/index.tsx +1197 -1197
- package/src/Invoice/_test/invoiceType/index.tsx +59 -59
- package/src/Invoice/_test/isInvoiceNo/index.tsx +12 -12
- package/src/Invoice/_test/replaceHead/index.tsx +22 -22
- package/src/Invoice/_test/retrieveData/index.tsx +22 -22
- package/src/Invoice/_test/seller/index.tsx +28 -28
- package/src/Invoice/_test/setDataSource/index.tsx +73 -73
- package/src/Invoice/_test/unit/index.tsx +19 -19
- package/src/Invoice/index.less +29 -29
- package/src/Invoice/index.md +53 -53
- package/src/Invoice/index.tsx +171 -171
- package/src/Invoice/tools/calculate/index.ts +132 -132
- package/src/Invoice/tools/coolingFn/index.ts +17 -17
- package/src/Invoice/tools/evaluate/index.ts +7 -7
- package/src/Invoice/tools/idGenerator/index.ts +2 -2
- package/src/Invoice/tools/itemName/index.ts +55 -55
- package/src/Invoice/tools/lazyFn/index.ts +19 -19
- package/src/Invoice/tools/mounting/index.ts +13 -13
- package/src/Invoice/tools/strringFn/index.ts +40 -40
- package/src/Invoice/tools/useToGenerateId/index.ts +8 -8
- package/src/Invoice/tools/utils/index.ts +1 -1
- package/src/Invoice/tools/utils/money/index.ts +20 -20
- package/src/Invoice/ui/default/AddComparisonDrawer/index.tsx +149 -149
- package/src/Invoice/ui/default/Buyer/index.less +219 -219
- package/src/Invoice/ui/default/Buyer/index.tsx +114 -114
- package/src/Invoice/ui/default/Buyer/ui/BuyerNameInput/index.tsx +166 -166
- package/src/Invoice/ui/default/Buyer/ui/ImportBuyerButton/index.tsx +21 -21
- package/src/Invoice/ui/default/EndowCodeDrawer/index.less +8 -8
- package/src/Invoice/ui/default/EndowCodeDrawer/index.tsx +550 -550
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/autoFillFn/index.ts +632 -632
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/index.tsx +688 -688
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/Drag/index.less +20 -20
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/Drag/index.tsx +205 -205
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/ItemCodeInput/index.less +18 -18
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/ItemCodeInput/index.tsx +47 -47
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/ItemNameInput/index.less +17 -17
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/ItemNameInput/index.tsx +88 -88
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/RowEditButton/index.tsx +30 -30
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/RowMenu/hook/_useAddComparison/index.tsx +43 -43
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/RowMenu/hook/useAddDiscount/index.tsx +118 -118
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/RowMenu/hook/useDelItem/index.tsx +41 -41
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/RowMenu/hook/useEndowCode/index.tsx +25 -25
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/RowMenu/index.less +13 -13
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/RowMenu/index.tsx +98 -98
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/RowSaveButton/index.tsx +14 -14
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/TitleText/index.tsx +20 -20
- package/src/Invoice/ui/default/GoodsList/hook/useDeduction/index.tsx +24 -24
- package/src/Invoice/ui/default/GoodsList/hook/useOnRow/index.tsx +39 -39
- package/src/Invoice/ui/default/GoodsList/hook/useRowSelection/index.tsx +114 -114
- package/src/Invoice/ui/default/GoodsList/hook/useWindowClick/index.tsx +23 -23
- package/src/Invoice/ui/default/GoodsList/index.less +179 -179
- package/src/Invoice/ui/default/GoodsList/index.tsx +205 -205
- package/src/Invoice/ui/default/GoodsList/ui/AddRowButton/index.tsx +65 -65
- package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/hooks/useAddDiscountRowButton/index.less +21 -21
- package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/hooks/useAddDiscountRowButton/index.tsx +244 -244
- package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/hooks/useCommodityComparisonButton/index.tsx +75 -75
- package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/hooks/useDelRowButton/index.tsx +69 -69
- package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/hooks/useEndowCodeButton/index.tsx +65 -65
- package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/hooks/useMergeDetails/index.tsx +91 -91
- package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/hooks/useMergeDiscount/index.tsx +36 -36
- package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/hooks/useSalesDiscount/index.tsx +109 -109
- package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/hooks/useSalesGifts/index.tsx +88 -88
- package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/index.tsx +37 -37
- package/src/Invoice/ui/default/GoodsList/ui/DescribeSwitch/index.tsx +36 -36
- package/src/Invoice/ui/default/GoodsList/ui/Search/index.less +10 -10
- package/src/Invoice/ui/default/GoodsList/ui/Search/index.tsx +52 -52
- package/src/Invoice/ui/default/GoodsList/ui/Statistics/index.less +18 -18
- package/src/Invoice/ui/default/GoodsList/ui/Statistics/index.tsx +114 -114
- package/src/Invoice/ui/default/GoodsList/ui/TableRow/index.less +28 -28
- package/src/Invoice/ui/default/GoodsList/ui/TableRow/index.tsx +57 -57
- package/src/Invoice/ui/default/GoodsList/ui/TableVirtual/index.less +38 -38
- package/src/Invoice/ui/default/GoodsList/ui/TableVirtual/index.tsx +108 -108
- package/src/Invoice/ui/default/GoodsList/ui/TableVirtual.o/index.less +44 -44
- package/src/Invoice/ui/default/GoodsList/ui/TableVirtual.o/index.tsx +96 -96
- package/src/Invoice/ui/default/GoodsList/ui/TaxIncludedSwitch/index.tsx +31 -31
- package/src/Invoice/ui/default/ImportBuyerDrawer/index.tsx +75 -75
- package/src/Invoice/ui/default/ImportGoodsDrawer/index.tsx +198 -198
- package/src/Invoice/ui/default/InvoiceHeader/index.less +68 -68
- package/src/Invoice/ui/default/InvoiceHeader/index.tsx +246 -246
- package/src/Invoice/ui/default/Seller/index.less +113 -113
- package/src/Invoice/ui/default/Seller/index.tsx +98 -98
- package/src/Invoice/ui/default/Sign/index.less +14 -14
- package/src/Invoice/ui/default/Sign/index.tsx +71 -71
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/autoFillFn/index.ts +624 -624
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/index.tsx +648 -648
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/svg/plus.svg +11 -11
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/Drag/index.less +20 -20
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/Drag/index.tsx +205 -205
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/ItemNameInput/index.less +9 -9
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/ItemNameInput/index.tsx +84 -84
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowEditButton/index.tsx +30 -30
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowMenu/hook/_useAddComparison/index.tsx +43 -43
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowMenu/hook/useAddDiscount/index.tsx +76 -76
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowMenu/hook/useDelItem/index.tsx +41 -41
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowMenu/hook/useEndowCode/index.tsx +34 -34
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowMenu/index.less +13 -13
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowMenu/index.tsx +98 -98
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowSaveButton/index.tsx +14 -14
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/TitleText/index.tsx +20 -20
- package/src/Invoice/ui/digtal/GoodsList/hook/useOnRow/index.tsx +39 -39
- package/src/Invoice/ui/digtal/GoodsList/hook/useRowSelection/index.tsx +121 -121
- package/src/Invoice/ui/digtal/GoodsList/hook/useWindowClick/index.tsx +23 -23
- package/src/Invoice/ui/digtal/GoodsList/index.less +56 -56
- package/src/Invoice/ui/digtal/GoodsList/index.tsx +180 -180
- package/src/Invoice/ui/digtal/GoodsList/ui/AddRowButton/index.tsx +65 -65
- package/src/Invoice/ui/digtal/GoodsList/ui/BulkMenu/hooks/useAddDiscountRowButton/index.tsx +339 -339
- package/src/Invoice/ui/digtal/GoodsList/ui/BulkMenu/hooks/useAddDiscountRowButton/svg/add.svg +11 -11
- package/src/Invoice/ui/digtal/GoodsList/ui/BulkMenu/hooks/useCommodityComparisonButton/index.tsx +75 -75
- package/src/Invoice/ui/digtal/GoodsList/ui/BulkMenu/hooks/useDelRowButton/index.tsx +50 -50
- package/src/Invoice/ui/digtal/GoodsList/ui/BulkMenu/hooks/useEmptyRefill/index.tsx +37 -37
- package/src/Invoice/ui/digtal/GoodsList/ui/BulkMenu/hooks/useEndowCodeButton/index.tsx +82 -82
- package/src/Invoice/ui/digtal/GoodsList/ui/BulkMenu/hooks/useReselectInvoiceType/index.tsx +57 -57
- package/src/Invoice/ui/digtal/GoodsList/ui/DescribeSwitch/index.tsx +36 -36
- package/src/Invoice/ui/digtal/GoodsList/ui/Search/index.less +11 -11
- package/src/Invoice/ui/digtal/GoodsList/ui/Search/index.tsx +50 -50
- package/src/Invoice/ui/digtal/GoodsList/ui/Statistics/index.less +53 -53
- package/src/Invoice/ui/digtal/GoodsList/ui/Statistics/index.tsx +98 -98
- package/src/Invoice/ui/digtal/GoodsList/ui/Statistics/svg/fork.svg +11 -11
- package/src/Invoice/ui/digtal/GoodsList/ui/TableRow/index.less +28 -28
- package/src/Invoice/ui/digtal/GoodsList/ui/TableRow/index.tsx +53 -53
- package/src/Invoice/ui/digtal/GoodsList/ui/TableVirtual/index.less +38 -38
- package/src/Invoice/ui/digtal/GoodsList/ui/TableVirtual/index.tsx +108 -108
- package/src/Invoice/ui/digtal/GoodsList/ui/TableVirtual.o/index.less +44 -44
- package/src/Invoice/ui/digtal/GoodsList/ui/TableVirtual.o/index.tsx +96 -96
- package/src/Invoice/ui/digtal/GoodsList/ui/TaxIncludedSwitch/index.tsx +31 -31
- package/src/Invoice/ui/digtal/InvoiceHeader/index.less +57 -57
- package/src/Invoice/ui/digtal/InvoiceHeader/index.tsx +77 -77
- package/src/Invoice/ui/digtal/Sign/index.less +48 -48
- package/src/Invoice/ui/digtal/Sign/index.tsx +99 -99
- package/src/Invoice/ui/digtal/Stakeholder/index.less +99 -90
- package/src/Invoice/ui/digtal/Stakeholder/index.tsx +395 -394
- package/src/Invoice/ui/digtal/Stakeholder/svg/arrowDown.svg +2 -2
- package/src/Invoice/ui/digtal/Stakeholder/svg/arrowUp.svg +2 -2
- package/src/Invoice/ui/digtal/Stakeholder/svg/plus.svg +11 -11
- package/src/InvoiceTypeModal/_test/easiest/index.tsx +31 -31
- package/src/InvoiceTypeModal/index.less +7 -7
- package/src/InvoiceTypeModal/index.md +5 -5
- package/src/InvoiceTypeModal/index.tsx +153 -153
- package/src/TaxClassificationCodeModal/_test/easiest/index.tsx +177 -177
- package/src/TaxClassificationCodeModal/index.md +6 -6
- package/src/TaxClassificationCodeModal/index.tsx +74 -74
- package/src/index.ts +12 -12
- package/tsconfig.json +31 -31
- package/typings.d.ts +3 -3
- package/yarn.e.lock +14331 -14331
package/dist/index.esm.js
CHANGED
|
@@ -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
|
}
|
|
@@ -14504,7 +14504,7 @@ var useRowSelection = (function () {
|
|
|
14504
14504
|
};
|
|
14505
14505
|
}(), [controller]);
|
|
14506
14506
|
var columnTitle = React.useMemo(function () {
|
|
14507
|
-
return
|
|
14507
|
+
return React.createElement(Checkbox, {
|
|
14508
14508
|
onChange: onClickSelectAll,
|
|
14509
14509
|
indeterminate: indeterminate,
|
|
14510
14510
|
checked: isAll
|
|
@@ -14705,16 +14705,16 @@ var useEndowCodeButton = (function () {
|
|
|
14705
14705
|
}, _callee2);
|
|
14706
14706
|
})), [controller]);
|
|
14707
14707
|
var menuItem = React.useMemo(function () {
|
|
14708
|
-
if (model === 'readOnly') return
|
|
14709
|
-
return
|
|
14708
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
14709
|
+
return React.createElement(Menu.Item, {
|
|
14710
14710
|
key: "2",
|
|
14711
14711
|
onClick: onClick,
|
|
14712
14712
|
disabled: disabled
|
|
14713
14713
|
}, "\u6279\u91CF\u8D4B\u7801");
|
|
14714
14714
|
}, [onClick, disabled, model]);
|
|
14715
14715
|
var button = React.useMemo(function () {
|
|
14716
|
-
if (model === 'readOnly') return
|
|
14717
|
-
return
|
|
14716
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
14717
|
+
return React.createElement(Button, {
|
|
14718
14718
|
onClick: onClick,
|
|
14719
14719
|
disabled: disabled
|
|
14720
14720
|
}, "\u6279\u91CF\u8D4B\u7801");
|
|
@@ -14780,19 +14780,19 @@ var useDelRowButton = (function () {
|
|
|
14780
14780
|
}())();
|
|
14781
14781
|
}, [controller]);
|
|
14782
14782
|
var menuItem = React.useMemo(function () {
|
|
14783
|
-
if (model === 'prefab') return
|
|
14784
|
-
if (model === 'readOnly') return
|
|
14785
|
-
return
|
|
14783
|
+
if (model === 'prefab') return React.createElement(React.Fragment, null);
|
|
14784
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
14785
|
+
return React.createElement(Menu.Item, {
|
|
14786
14786
|
key: "1",
|
|
14787
14787
|
onClick: onClick,
|
|
14788
14788
|
disabled: disabled
|
|
14789
14789
|
}, " \u5220\u9664\u884C ");
|
|
14790
14790
|
}, [model, onClick, disabled]);
|
|
14791
14791
|
var button = React.useMemo(function () {
|
|
14792
|
-
if (isRemRow === false) return
|
|
14793
|
-
if (model === 'prefab') return
|
|
14794
|
-
if (model === 'readOnly') return
|
|
14795
|
-
return
|
|
14792
|
+
if (isRemRow === false) return React.createElement(React.Fragment, null);
|
|
14793
|
+
if (model === 'prefab') return React.createElement(React.Fragment, null);
|
|
14794
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
14795
|
+
return React.createElement(Button, {
|
|
14796
14796
|
onClick: onClick,
|
|
14797
14797
|
disabled: disabled
|
|
14798
14798
|
}, "\u6279\u91CF\u5220\u9664");
|
|
@@ -14987,14 +14987,14 @@ var useAddDiscountRowButton = (function () {
|
|
|
14987
14987
|
}, _callee3);
|
|
14988
14988
|
})), [controller]);
|
|
14989
14989
|
var menuItem = React.useMemo(function () {
|
|
14990
|
-
return model === 'prefab' ?
|
|
14990
|
+
return model === 'prefab' ? React.createElement(React.Fragment, null) : isAddDiscount !== false ? React.createElement(Menu.Item, {
|
|
14991
14991
|
key: "0",
|
|
14992
14992
|
onClick: onClick,
|
|
14993
14993
|
disabled: disabled
|
|
14994
14994
|
}, "\u6DFB\u52A0\u6298\u6263\u884C") : undefined;
|
|
14995
14995
|
}, [isAddDiscount, disabled, onClick]);
|
|
14996
14996
|
var drawer = React.useMemo(function () {
|
|
14997
|
-
return
|
|
14997
|
+
return React.createElement(Drawer, {
|
|
14998
14998
|
className: "kts-invoice-operate-goods-list-add-discount-row",
|
|
14999
14999
|
width: 540,
|
|
15000
15000
|
title: "\u6DFB\u52A0\u6298\u6263\u884C",
|
|
@@ -15002,7 +15002,7 @@ var useAddDiscountRowButton = (function () {
|
|
|
15002
15002
|
destroyOnClose: true,
|
|
15003
15003
|
onClose: onClose,
|
|
15004
15004
|
visible: visible
|
|
15005
|
-
},
|
|
15005
|
+
}, React.createElement(DrawerBody, null));
|
|
15006
15006
|
}, [visible, onClose]);
|
|
15007
15007
|
return {
|
|
15008
15008
|
menuItem: menuItem,
|
|
@@ -15119,13 +15119,13 @@ var DrawerBody = decorator(Form.create())(function (props) {
|
|
|
15119
15119
|
});
|
|
15120
15120
|
});
|
|
15121
15121
|
}, 300), [form, lineAmountSum]);
|
|
15122
|
-
return
|
|
15122
|
+
return React.createElement(React.Fragment, null, React.createElement("div", {
|
|
15123
15123
|
className: "add-discount-row-body"
|
|
15124
|
-
},
|
|
15124
|
+
}, React.createElement("p", null, "\u5F53\u524D\u9009\u62E9", React.createElement(Text$3, {
|
|
15125
15125
|
type: "danger"
|
|
15126
|
-
}, discountGoodIndex.length), "\u884C\u88AB\u6298\u6263\u5546\u54C1\u884C\uFF0C\u91D1\u989D\u5408\u8BA1\xA5",
|
|
15126
|
+
}, discountGoodIndex.length), "\u884C\u88AB\u6298\u6263\u5546\u54C1\u884C\uFF0C\u91D1\u989D\u5408\u8BA1\xA5", React.createElement(Text$3, {
|
|
15127
15127
|
type: "danger"
|
|
15128
|
-
}, lineAmountSum.toFixed(2))),
|
|
15128
|
+
}, lineAmountSum.toFixed(2))), React.createElement(Form.Item, {
|
|
15129
15129
|
label: "\u6298\u6263\u7387\uFF1A"
|
|
15130
15130
|
}, getFieldDecorator('discount', {
|
|
15131
15131
|
rules: [{
|
|
@@ -15155,11 +15155,11 @@ var DrawerBody = decorator(Form.create())(function (props) {
|
|
|
15155
15155
|
callback();
|
|
15156
15156
|
}
|
|
15157
15157
|
}]
|
|
15158
|
-
})(
|
|
15158
|
+
})(React.createElement(Input, {
|
|
15159
15159
|
placeholder: "\u8BF7\u8F93\u5165\u5927\u4E8E0\u5C0F\u4E8E100\u7684\u6570\u5B57",
|
|
15160
15160
|
suffix: "%",
|
|
15161
15161
|
onChange: onChangeDiscount
|
|
15162
|
-
}))),
|
|
15162
|
+
}))), React.createElement(Form.Item, {
|
|
15163
15163
|
label: "\u6298\u6263\u91D1\u989D\uFF1A"
|
|
15164
15164
|
}, getFieldDecorator('discolineAmountunt', {
|
|
15165
15165
|
rules: [{
|
|
@@ -15189,19 +15189,19 @@ var DrawerBody = decorator(Form.create())(function (props) {
|
|
|
15189
15189
|
callback();
|
|
15190
15190
|
}
|
|
15191
15191
|
}]
|
|
15192
|
-
})(
|
|
15192
|
+
})(React.createElement(Input, {
|
|
15193
15193
|
placeholder: "\u8BF7\u8F93\u5165\u5927\u4E8E0\u5C0F\u4E8E\u91D1\u989D\u5408\u8BA1\u7684\u6570\u5B57",
|
|
15194
15194
|
suffix: "\xA5",
|
|
15195
15195
|
onChange: onChangeDiscolineAmountunt
|
|
15196
|
-
})))),
|
|
15196
|
+
})))), React.createElement("div", {
|
|
15197
15197
|
className: "add-discount-row-footer"
|
|
15198
|
-
},
|
|
15198
|
+
}, React.createElement(Button, {
|
|
15199
15199
|
block: true,
|
|
15200
15200
|
style: {
|
|
15201
15201
|
marginBottom: 12
|
|
15202
15202
|
},
|
|
15203
15203
|
onClick: onClose
|
|
15204
|
-
}, "\u53D6\u6D88"),
|
|
15204
|
+
}, "\u53D6\u6D88"), React.createElement(Button, {
|
|
15205
15205
|
type: "primary",
|
|
15206
15206
|
block: true,
|
|
15207
15207
|
onClick: onClickSave
|
|
@@ -15298,13 +15298,13 @@ function useMergeDetails() {
|
|
|
15298
15298
|
}];
|
|
15299
15299
|
}, [selectedGoodIndex, onClickManual, onClickAuto]);
|
|
15300
15300
|
var button = React.useMemo(function () {
|
|
15301
|
-
if (!isMergeDetails) return
|
|
15302
|
-
return
|
|
15301
|
+
if (!isMergeDetails) return React.createElement(React.Fragment, null);
|
|
15302
|
+
return React.createElement(Dropdown$1, {
|
|
15303
15303
|
menu: {
|
|
15304
15304
|
items: items
|
|
15305
15305
|
},
|
|
15306
15306
|
trigger: ['click']
|
|
15307
|
-
},
|
|
15307
|
+
}, React.createElement(Button, null, "\u5408\u5E76\u660E\u7EC6"));
|
|
15308
15308
|
}, [selectedGoodIndex.length, isMergeDetails]);
|
|
15309
15309
|
return {
|
|
15310
15310
|
/** 按钮 */
|
|
@@ -15390,8 +15390,8 @@ function useMergeDiscount() {
|
|
|
15390
15390
|
}, _callee);
|
|
15391
15391
|
})), [controller]);
|
|
15392
15392
|
var button = React.useMemo(function () {
|
|
15393
|
-
if (!isMergeDiscount) return
|
|
15394
|
-
return
|
|
15393
|
+
if (!isMergeDiscount) return React.createElement(React.Fragment, null);
|
|
15394
|
+
return React.createElement(Button, {
|
|
15395
15395
|
onClick: onClick,
|
|
15396
15396
|
disabled: goodsList.length <= 1
|
|
15397
15397
|
}, "\u5408\u5E76\u6298\u6263");
|
|
@@ -15569,8 +15569,8 @@ function useSalesDiscount() {
|
|
|
15569
15569
|
}).length <= 0;
|
|
15570
15570
|
}, [goodsList]);
|
|
15571
15571
|
var button = React.useMemo(function () {
|
|
15572
|
-
if (!isSalesDiscount) return
|
|
15573
|
-
return
|
|
15572
|
+
if (!isSalesDiscount) return React.createElement(React.Fragment, null);
|
|
15573
|
+
return React.createElement(Button, {
|
|
15574
15574
|
onClick: onClick,
|
|
15575
15575
|
disabled: disabled
|
|
15576
15576
|
}, "\u9500\u552E\u6298\u8BA9");
|
|
@@ -15741,12 +15741,12 @@ function useSalesGifts() {
|
|
|
15741
15741
|
}, [selectedGoodIndex, onClickManual, onClickAuto]);
|
|
15742
15742
|
var button = React.useMemo(function () {
|
|
15743
15743
|
if (!isSalesGifts) return;
|
|
15744
|
-
return
|
|
15744
|
+
return React.createElement(Dropdown$1, {
|
|
15745
15745
|
menu: {
|
|
15746
15746
|
items: items
|
|
15747
15747
|
},
|
|
15748
15748
|
trigger: ['click']
|
|
15749
|
-
},
|
|
15749
|
+
}, React.createElement(Button, null, "\u9500\u552E\u8D60\u54C1"));
|
|
15750
15750
|
}, [items, isSalesGifts]);
|
|
15751
15751
|
return {
|
|
15752
15752
|
/** 按钮 */
|
|
@@ -15784,7 +15784,7 @@ var GoodsList = /*#__PURE__*/function (_React$Component) {
|
|
|
15784
15784
|
_createClass(GoodsList, [{
|
|
15785
15785
|
key: "render",
|
|
15786
15786
|
value: function render() {
|
|
15787
|
-
return
|
|
15787
|
+
return React.createElement(Main, _objectSpread2({}, this.props));
|
|
15788
15788
|
}
|
|
15789
15789
|
}]);
|
|
15790
15790
|
|
|
@@ -15986,22 +15986,22 @@ var Main = decorator(Form.create())(function (props) {
|
|
|
15986
15986
|
};
|
|
15987
15987
|
}())();
|
|
15988
15988
|
}, [controller, props.isSwitchTax]);
|
|
15989
|
-
return
|
|
15989
|
+
return React.createElement("div", {
|
|
15990
15990
|
className: "kts-invoice-operate-goods-list",
|
|
15991
15991
|
onClick: function onClick(e) {
|
|
15992
15992
|
e.stopPropagation();
|
|
15993
15993
|
}
|
|
15994
|
-
},
|
|
15994
|
+
}, React.createElement("div", {
|
|
15995
15995
|
className: "kts-invoice-operate-goods-list-able"
|
|
15996
|
-
},
|
|
15996
|
+
}, React.createElement("div", {
|
|
15997
15997
|
className: "kts-invoice-operate-goods-list-able-list"
|
|
15998
|
-
},
|
|
15998
|
+
}, React.createElement(AddRowButton, null), endowCodeButton.button, delRowButton.button, mergeDetails.button, mergeDiscount.button, addDiscountRowButton.drawer, salesDiscount.button, salesGifts.button, React.createElement(Search, null)), React.createElement("div", {
|
|
15999
15999
|
className: "kts-invoice-operate-goods-list-able-extend"
|
|
16000
|
-
}, props.menuExpansion,
|
|
16000
|
+
}, props.menuExpansion, React.createElement(DescribeSwitch, null), React.createElement(TaxIncludedSwitch, null))), React.createElement("div", {
|
|
16001
16001
|
className: classNames('kts-invoice-operate-goods-list-table', {
|
|
16002
16002
|
'kts-invoice-operate-prefab': isprefab
|
|
16003
16003
|
})
|
|
16004
|
-
},
|
|
16004
|
+
}, React.createElement(TableVirtual, {
|
|
16005
16005
|
bordered: true,
|
|
16006
16006
|
size: "small",
|
|
16007
16007
|
rowKey: "$index",
|
|
@@ -16024,7 +16024,7 @@ var Main = decorator(Form.create())(function (props) {
|
|
|
16024
16024
|
}
|
|
16025
16025
|
};
|
|
16026
16026
|
}
|
|
16027
|
-
})),
|
|
16027
|
+
})), React.createElement("div", null, React.createElement(Statistics, null)));
|
|
16028
16028
|
});
|
|
16029
16029
|
|
|
16030
16030
|
var css_248z$c = ".kts-invoice-operate-seller {\n display: flex;\n}\n.kts-invoice-operate-seller .kts-invoice-operate-seller-message {\n flex: 1;\n display: flex;\n}\n.kts-invoice-operate-seller .kts-invoice-operate-seller-message .ktsAnt3x-descriptions-item-label {\n width: 179px;\n}\n.kts-invoice-operate-seller .kts-invoice-operate-seller-message .kts-invoice-operate-seller-message-list {\n width: 100%;\n}\n.kts-invoice-operate-seller .kts-invoice-operate-seller-message .kts-invoice-operate-seller-message-list .ktsAnt3x-descriptions-view {\n border: none;\n}\n.kts-invoice-operate-seller .kts-invoice-operate-seller-message .kts-invoice-operate-seller-message-list .ktsAnt3x-descriptions-item-label {\n padding: 0 10px;\n font-size: 12px;\n background-color: #fff;\n line-height: 30px;\n}\n.kts-invoice-operate-seller .kts-invoice-operate-seller-message .kts-invoice-operate-seller-message-list .ktsAnt3x-descriptions-item-label::before {\n content: '*';\n position: relative;\n color: red;\n font-weight: bold;\n margin-right: 2px;\n}\n.kts-invoice-operate-seller .kts-invoice-operate-seller-message .kts-invoice-operate-seller-message-list .ktsAnt3x-descriptions-item-content {\n padding: 0;\n}\n.kts-invoice-operate-seller .kts-invoice-operate-seller-message .kts-invoice-operate-seller-message-list .ktsAnt3x-descriptions-item-content .ktsAnt3x-input {\n box-shadow: none;\n border-color: #fff;\n border-radius: 0;\n padding: 0 10px;\n font-size: 12px;\n line-height: 30px;\n width: 100%;\n height: 30px;\n}\n.kts-invoice-operate-seller .kts-invoice-operate-seller-message .kts-invoice-operate-seller-message-list .ktsAnt3x-descriptions-item-content .ktsAnt3x-input:hover {\n border: 1 solid;\n border-color: #40a9ff;\n border-right-width: 1px !important;\n}\n.kts-invoice-operate-seller .kts-invoice-operate-seller-message .kts-invoice-operate-seller-message-list .ktsAnt3x-descriptions-item-content .has-error .ktsAnt3x-input,\n.kts-invoice-operate-seller .kts-invoice-operate-seller-message .kts-invoice-operate-seller-message-list .ktsAnt3x-descriptions-item-content .has-error .ktsAnt3x-input:hover {\n background-color: #fff;\n border: 1 solid;\n border-color: #f5222d;\n}\n.kts-invoice-operate-seller .kts-invoice-operate-seller-message .kts-invoice-operate-seller-message-list .ktsAnt3x-form-item {\n margin: 0;\n}\n.kts-invoice-operate-seller .kts-invoice-operate-seller-message .kts-invoice-operate-seller-message-list .ktsAnt3x-form-item-control {\n line-height: 0;\n}\n.kts-invoice-operate-seller .kts-invoice-operate-seller-message .kts-invoice-operate-seller-message-list .ktsAnt3x-form-explain {\n position: absolute;\n right: 5px;\n top: 6px;\n z-index: 10;\n}\n.kts-invoice-operate-seller .kts-invoice-operate-seller-remarks {\n border-left: 1px solid #dcdcdc;\n display: flex;\n flex: none;\n width: 458px;\n}\n.kts-invoice-operate-seller .kts-invoice-operate-seller-remarks-value {\n flex: 1;\n display: flex;\n flex-direction: column;\n}\n.kts-invoice-operate-seller .kts-invoice-operate-seller-remarks-value textarea {\n flex: 1;\n margin-bottom: 0;\n border: none;\n border-radius: 0;\n}\n.kts-invoice-operate-seller .kts-invoice-operate-seller-title {\n flex: none;\n width: 30px;\n height: 100%;\n text-align: center;\n border-right: 1px solid #dcdcdc;\n display: table;\n padding: 0 5px;\n}\n.kts-invoice-operate-seller .kts-invoice-operate-seller-title label {\n display: table-cell;\n vertical-align: middle;\n}\n";
|
|
@@ -16049,7 +16049,7 @@ var Buyer = /*#__PURE__*/function (_React$Component) {
|
|
|
16049
16049
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
16050
16050
|
|
|
16051
16051
|
_this.render = function () {
|
|
16052
|
-
return
|
|
16052
|
+
return React.createElement(Main$1, _objectSpread2({}, _this.props));
|
|
16053
16053
|
};
|
|
16054
16054
|
|
|
16055
16055
|
return _this;
|
|
@@ -16080,7 +16080,7 @@ var Main$1 = decorator(Form.create())(function (props) {
|
|
|
16080
16080
|
return [{
|
|
16081
16081
|
id: 'sellerName',
|
|
16082
16082
|
label: '销售方名称',
|
|
16083
|
-
node:
|
|
16083
|
+
node: React.createElement(Input, {
|
|
16084
16084
|
readOnly: model === 'prefab',
|
|
16085
16085
|
size: "small"
|
|
16086
16086
|
}),
|
|
@@ -16093,7 +16093,7 @@ var Main$1 = decorator(Form.create())(function (props) {
|
|
|
16093
16093
|
}, {
|
|
16094
16094
|
id: 'sellerNo',
|
|
16095
16095
|
label: '销售方纳税人识别号',
|
|
16096
|
-
node:
|
|
16096
|
+
node: React.createElement(Input, {
|
|
16097
16097
|
readOnly: model === 'prefab',
|
|
16098
16098
|
size: "small"
|
|
16099
16099
|
}),
|
|
@@ -16106,7 +16106,7 @@ var Main$1 = decorator(Form.create())(function (props) {
|
|
|
16106
16106
|
}, {
|
|
16107
16107
|
id: 'sellerAddress',
|
|
16108
16108
|
label: '销售方地址及电话',
|
|
16109
|
-
node:
|
|
16109
|
+
node: React.createElement(Input, {
|
|
16110
16110
|
readOnly: model === 'prefab',
|
|
16111
16111
|
size: "small"
|
|
16112
16112
|
}),
|
|
@@ -16119,7 +16119,7 @@ var Main$1 = decorator(Form.create())(function (props) {
|
|
|
16119
16119
|
}, {
|
|
16120
16120
|
id: 'sellerBank',
|
|
16121
16121
|
label: '销售方开户行及账号',
|
|
16122
|
-
node:
|
|
16122
|
+
node: React.createElement(Input, {
|
|
16123
16123
|
readOnly: model === 'prefab',
|
|
16124
16124
|
size: "small"
|
|
16125
16125
|
}),
|
|
@@ -16145,31 +16145,31 @@ var Main$1 = decorator(Form.create())(function (props) {
|
|
|
16145
16145
|
return getFieldDecorator(e.id, e.options)(e.node);
|
|
16146
16146
|
}
|
|
16147
16147
|
}, [props.formRender]);
|
|
16148
|
-
return
|
|
16148
|
+
return React.createElement(Form, null, React.createElement("div", {
|
|
16149
16149
|
className: "kts-invoice-operate-seller"
|
|
16150
|
-
},
|
|
16150
|
+
}, React.createElement("div", {
|
|
16151
16151
|
className: "kts-invoice-operate-seller-message"
|
|
16152
|
-
},
|
|
16152
|
+
}, React.createElement("div", {
|
|
16153
16153
|
className: "kts-invoice-operate-seller-title"
|
|
16154
|
-
},
|
|
16154
|
+
}, React.createElement("label", null, "\u9500\u552E\u65B9")), React.createElement(Descriptions, {
|
|
16155
16155
|
className: "kts-invoice-operate-seller-message-list",
|
|
16156
16156
|
size: "small",
|
|
16157
16157
|
column: 1,
|
|
16158
16158
|
bordered: true
|
|
16159
16159
|
}, formItem.map(function (e, i) {
|
|
16160
|
-
return
|
|
16160
|
+
return React.createElement(Descriptions.Item, {
|
|
16161
16161
|
key: i,
|
|
16162
16162
|
label: e.label
|
|
16163
|
-
},
|
|
16164
|
-
}))),
|
|
16163
|
+
}, React.createElement(Form.Item, null, createFormItem(e)));
|
|
16164
|
+
}))), React.createElement("div", {
|
|
16165
16165
|
className: "kts-invoice-operate-seller-remarks"
|
|
16166
|
-
},
|
|
16166
|
+
}, React.createElement("div", {
|
|
16167
16167
|
className: "kts-invoice-operate-seller-title"
|
|
16168
|
-
},
|
|
16168
|
+
}, React.createElement("label", null, "\u5907\u6CE8")), React.createElement("div", {
|
|
16169
16169
|
className: "kts-invoice-operate-seller-remarks-value"
|
|
16170
16170
|
}, getFieldDecorator('remarks', {
|
|
16171
16171
|
initialValue: props.defaultsellerRemarks
|
|
16172
|
-
})(
|
|
16172
|
+
})(React.createElement(TextArea, null))))));
|
|
16173
16173
|
});
|
|
16174
16174
|
|
|
16175
16175
|
var ImportBuyerButton = (function () {
|
|
@@ -16196,7 +16196,7 @@ var ImportBuyerButton = (function () {
|
|
|
16196
16196
|
};
|
|
16197
16197
|
}())();
|
|
16198
16198
|
}, [controller]);
|
|
16199
|
-
return
|
|
16199
|
+
return React.createElement(React.Fragment, null, controller.getBuyerList && React.createElement(Button, {
|
|
16200
16200
|
type: "link",
|
|
16201
16201
|
icon: "plus-circle",
|
|
16202
16202
|
onClick: onClick
|
|
@@ -16235,29 +16235,29 @@ var BuyerNameInput = (function (props) {
|
|
|
16235
16235
|
var content = React.useMemo(function () {
|
|
16236
16236
|
var _dataSource$recent;
|
|
16237
16237
|
|
|
16238
|
-
return
|
|
16238
|
+
return React.createElement("div", {
|
|
16239
16239
|
className: 'kts-invoice-operate-buyer-name-content'
|
|
16240
|
-
}, loading ?
|
|
16240
|
+
}, loading ? React.createElement("div", {
|
|
16241
16241
|
style: {
|
|
16242
16242
|
textAlign: 'center'
|
|
16243
16243
|
}
|
|
16244
|
-
},
|
|
16244
|
+
}, React.createElement(Spin, null)) : React.createElement(React.Fragment, null, React.createElement("div", {
|
|
16245
16245
|
className: 'kts-invoice-operate-buyer-name-content-block',
|
|
16246
16246
|
style: {
|
|
16247
16247
|
padding: '14px 10px'
|
|
16248
16248
|
}
|
|
16249
|
-
},
|
|
16249
|
+
}, React.createElement("label", {
|
|
16250
16250
|
style: {
|
|
16251
16251
|
marginBottom: 10
|
|
16252
16252
|
}
|
|
16253
|
-
}, "\u6700\u8FD1\u5F00\u5177"),
|
|
16253
|
+
}, "\u6700\u8FD1\u5F00\u5177"), React.createElement("ul", {
|
|
16254
16254
|
className: 'kts-invoice-operate-buyer-name-content-recently-issued'
|
|
16255
|
-
}, !dataSource.recent || dataSource.recent.length <= 0 ?
|
|
16255
|
+
}, !dataSource.recent || dataSource.recent.length <= 0 ? React.createElement(Empty, {
|
|
16256
16256
|
image: Empty.PRESENTED_IMAGE_SIMPLE
|
|
16257
16257
|
}) : (_dataSource$recent = dataSource.recent) === null || _dataSource$recent === void 0 ? void 0 : _dataSource$recent.map(function (e, i) {
|
|
16258
16258
|
var _dataSource$recent$le, _dataSource$recent2;
|
|
16259
16259
|
|
|
16260
|
-
return
|
|
16260
|
+
return React.createElement("li", {
|
|
16261
16261
|
key: i,
|
|
16262
16262
|
onClick: function onClick() {
|
|
16263
16263
|
onClickItem(e);
|
|
@@ -16265,37 +16265,37 @@ var BuyerNameInput = (function (props) {
|
|
|
16265
16265
|
style: {
|
|
16266
16266
|
marginBottom: interval(i, (_dataSource$recent$le = (_dataSource$recent2 = dataSource.recent) === null || _dataSource$recent2 === void 0 ? void 0 : _dataSource$recent2.length) !== null && _dataSource$recent$le !== void 0 ? _dataSource$recent$le : 0)
|
|
16267
16267
|
}
|
|
16268
|
-
},
|
|
16269
|
-
}))),
|
|
16268
|
+
}, React.createElement(MyTag, null, e.buyerName));
|
|
16269
|
+
}))), React.createElement(Divider, {
|
|
16270
16270
|
style: {
|
|
16271
16271
|
margin: "0 6px"
|
|
16272
16272
|
}
|
|
16273
|
-
}),
|
|
16273
|
+
}), React.createElement("div", {
|
|
16274
16274
|
className: 'kts-invoice-operate-buyer-name-content-block',
|
|
16275
16275
|
style: {
|
|
16276
16276
|
padding: '14px 10px 4px'
|
|
16277
16277
|
}
|
|
16278
|
-
},
|
|
16278
|
+
}, React.createElement("label", {
|
|
16279
16279
|
style: {
|
|
16280
16280
|
padding: '0 10px'
|
|
16281
16281
|
}
|
|
16282
|
-
}, "\u9009\u62E9\u516C\u53F8"),
|
|
16282
|
+
}, "\u9009\u62E9\u516C\u53F8"), React.createElement("div", {
|
|
16283
16283
|
style: {
|
|
16284
16284
|
maxHeight: 200,
|
|
16285
16285
|
overflow: "auto"
|
|
16286
16286
|
}
|
|
16287
|
-
}, !dataSource.list || dataSource.list.length <= 0 ?
|
|
16287
|
+
}, !dataSource.list || dataSource.list.length <= 0 ? React.createElement(Empty, {
|
|
16288
16288
|
image: Empty.PRESENTED_IMAGE_SIMPLE
|
|
16289
16289
|
}) : dataSource.list.map(function (e, i) {
|
|
16290
|
-
return
|
|
16290
|
+
return React.createElement("ul", {
|
|
16291
16291
|
key: i,
|
|
16292
16292
|
onClick: function onClick() {
|
|
16293
16293
|
onClickItem(e);
|
|
16294
16294
|
},
|
|
16295
16295
|
className: 'kts-invoice-operate-buyer-name-content-select-company'
|
|
16296
|
-
},
|
|
16296
|
+
}, React.createElement("li", {
|
|
16297
16297
|
title: e.buyerName
|
|
16298
|
-
}, e.buyerName),
|
|
16298
|
+
}, e.buyerName), React.createElement("li", {
|
|
16299
16299
|
title: e.buyerNo
|
|
16300
16300
|
}, e.buyerNo));
|
|
16301
16301
|
})))));
|
|
@@ -16336,7 +16336,7 @@ var BuyerNameInput = (function (props) {
|
|
|
16336
16336
|
}, [visible, props.value]);
|
|
16337
16337
|
|
|
16338
16338
|
if (model === 'prefab' || !autoContainer) {
|
|
16339
|
-
return
|
|
16339
|
+
return React.createElement(Input, {
|
|
16340
16340
|
size: "small",
|
|
16341
16341
|
autoComplete: "off",
|
|
16342
16342
|
value: props.value,
|
|
@@ -16347,14 +16347,14 @@ var BuyerNameInput = (function (props) {
|
|
|
16347
16347
|
});
|
|
16348
16348
|
}
|
|
16349
16349
|
|
|
16350
|
-
return
|
|
16350
|
+
return React.createElement(Popover$1, {
|
|
16351
16351
|
onVisibleChange: setVisible,
|
|
16352
16352
|
overlayClassName: 'kts-invoice-operate-buyer-name-popover',
|
|
16353
16353
|
placement: "bottomLeft",
|
|
16354
16354
|
trigger: "click",
|
|
16355
16355
|
visible: visible,
|
|
16356
16356
|
content: content
|
|
16357
|
-
},
|
|
16357
|
+
}, React.createElement(Input, {
|
|
16358
16358
|
size: "small",
|
|
16359
16359
|
autoComplete: "off",
|
|
16360
16360
|
value: props.value,
|
|
@@ -16432,7 +16432,7 @@ function useDataSource() {
|
|
|
16432
16432
|
}
|
|
16433
16433
|
|
|
16434
16434
|
function MyTag(props) {
|
|
16435
|
-
return
|
|
16435
|
+
return React.createElement("span", {
|
|
16436
16436
|
className: 'kts-invoice-operate-buyer-name-content-tag',
|
|
16437
16437
|
title: props.children
|
|
16438
16438
|
}, props.children);
|
|
@@ -16468,7 +16468,7 @@ var Buyer$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
16468
16468
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
16469
16469
|
|
|
16470
16470
|
_this.render = function () {
|
|
16471
|
-
return
|
|
16471
|
+
return React.createElement(Main$2, _objectSpread2({}, _this.props));
|
|
16472
16472
|
};
|
|
16473
16473
|
|
|
16474
16474
|
return _this;
|
|
@@ -16499,7 +16499,7 @@ var Main$2 = decorator(Form.create())(function (props) {
|
|
|
16499
16499
|
return [{
|
|
16500
16500
|
id: 'buyerName',
|
|
16501
16501
|
label: '购买方名称',
|
|
16502
|
-
node:
|
|
16502
|
+
node: React.createElement(Input, {
|
|
16503
16503
|
size: "small",
|
|
16504
16504
|
autoComplete: "off",
|
|
16505
16505
|
readOnly: model === 'prefab'
|
|
@@ -16513,7 +16513,7 @@ var Main$2 = decorator(Form.create())(function (props) {
|
|
|
16513
16513
|
}, {
|
|
16514
16514
|
id: 'buyerNo',
|
|
16515
16515
|
label: '购买方纳税人识别号',
|
|
16516
|
-
node:
|
|
16516
|
+
node: React.createElement(Input, {
|
|
16517
16517
|
size: "small",
|
|
16518
16518
|
autoComplete: "off",
|
|
16519
16519
|
readOnly: model === 'prefab'
|
|
@@ -16527,7 +16527,7 @@ var Main$2 = decorator(Form.create())(function (props) {
|
|
|
16527
16527
|
}, {
|
|
16528
16528
|
id: 'buyerAddress',
|
|
16529
16529
|
label: '购买方地址及电话',
|
|
16530
|
-
node:
|
|
16530
|
+
node: React.createElement(Input, {
|
|
16531
16531
|
size: "small",
|
|
16532
16532
|
autoComplete: "off",
|
|
16533
16533
|
readOnly: model === 'prefab'
|
|
@@ -16541,7 +16541,7 @@ var Main$2 = decorator(Form.create())(function (props) {
|
|
|
16541
16541
|
}, {
|
|
16542
16542
|
id: 'buyerBank',
|
|
16543
16543
|
label: '购买方开户行及账号',
|
|
16544
|
-
node:
|
|
16544
|
+
node: React.createElement(Input, {
|
|
16545
16545
|
size: "small",
|
|
16546
16546
|
autoComplete: "off",
|
|
16547
16547
|
readOnly: model === 'prefab'
|
|
@@ -16563,7 +16563,7 @@ var Main$2 = decorator(Form.create())(function (props) {
|
|
|
16563
16563
|
if (e.options.rules.some(function (e) {
|
|
16564
16564
|
return e.required;
|
|
16565
16565
|
})) {
|
|
16566
|
-
return
|
|
16566
|
+
return React.createElement(React.Fragment, null, React.createElement(Text$4, {
|
|
16567
16567
|
type: "danger"
|
|
16568
16568
|
}, "*"), e.label);
|
|
16569
16569
|
} else {
|
|
@@ -16573,29 +16573,29 @@ var Main$2 = decorator(Form.create())(function (props) {
|
|
|
16573
16573
|
return e.label;
|
|
16574
16574
|
}
|
|
16575
16575
|
}, []);
|
|
16576
|
-
return
|
|
16576
|
+
return React.createElement(Form, null, React.createElement("div", {
|
|
16577
16577
|
className: "kts-invoice-operate-buyer"
|
|
16578
|
-
},
|
|
16578
|
+
}, React.createElement("div", {
|
|
16579
16579
|
className: "kts-invoice-operate-buyer-message"
|
|
16580
|
-
},
|
|
16580
|
+
}, React.createElement("div", {
|
|
16581
16581
|
className: "kts-invoice-operate-buyer-title"
|
|
16582
|
-
},
|
|
16582
|
+
}, React.createElement("label", null, "\u8D2D\u4E70\u65B9")), React.createElement("div", {
|
|
16583
16583
|
className: "kts-invoice-operate-buyer-message-Import"
|
|
16584
|
-
}, model !== 'prefab' &&
|
|
16584
|
+
}, model !== 'prefab' && React.createElement(ImportBuyerButton, null)), React.createElement(Descriptions, {
|
|
16585
16585
|
className: "kts-invoice-operate-buyer-message-list",
|
|
16586
16586
|
size: "small",
|
|
16587
16587
|
column: 1,
|
|
16588
16588
|
bordered: true
|
|
16589
16589
|
}, formItem.map(function (item, i) {
|
|
16590
|
-
return
|
|
16590
|
+
return React.createElement(Descriptions.Item, {
|
|
16591
16591
|
key: i,
|
|
16592
16592
|
label: getlabel(item)
|
|
16593
|
-
},
|
|
16594
|
-
}))),
|
|
16593
|
+
}, React.createElement(Form.Item, null, getFieldDecorator(item.id, item.options)(autoContainer ? item.id === 'buyerName' ? React.createElement(BuyerNameInput, null) : item.node : item.node)));
|
|
16594
|
+
}))), React.createElement("div", {
|
|
16595
16595
|
className: "kts-invoice-operate-buyer-password"
|
|
16596
|
-
},
|
|
16596
|
+
}, React.createElement("div", {
|
|
16597
16597
|
className: "kts-invoice-operate-buyer-title"
|
|
16598
|
-
},
|
|
16598
|
+
}, React.createElement("label", null, "\u5BC6\u7801\u533A")), React.createElement("div", null))));
|
|
16599
16599
|
});
|
|
16600
16600
|
|
|
16601
16601
|
var css_248z$e = ".kts-invoice-operate-sign form {\n display: flex;\n}\n.kts-invoice-operate-sign form .ktsAnt3x-row.ktsAnt3x-form-item {\n margin: 0;\n}\n.kts-invoice-operate-sign form > div {\n flex: 1;\n text-align: center;\n}\n";
|
|
@@ -16612,21 +16612,21 @@ var Sign = decorator(Form.create())(function (props) {
|
|
|
16612
16612
|
}, []); // 注册 form
|
|
16613
16613
|
|
|
16614
16614
|
controller.useForm('sign', form);
|
|
16615
|
-
return
|
|
16615
|
+
return React.createElement("div", {
|
|
16616
16616
|
className: "kts-invoice-operate-sign"
|
|
16617
|
-
},
|
|
16617
|
+
}, React.createElement(Form, _objectSpread2({}, formItemLayout), React.createElement("div", null, React.createElement(Form.Item, {
|
|
16618
16618
|
label: "\u6536\u6B3E\u4EBA"
|
|
16619
16619
|
}, getFieldDecorator('payee', {
|
|
16620
16620
|
initialValue: props.defaultPayee
|
|
16621
|
-
})(
|
|
16621
|
+
})(React.createElement(Input, {
|
|
16622
16622
|
size: "small"
|
|
16623
|
-
})))),
|
|
16623
|
+
})))), React.createElement("div", null, React.createElement(Form.Item, {
|
|
16624
16624
|
label: "\u590D\u6838\u4EBA"
|
|
16625
16625
|
}, getFieldDecorator('reviewer', {
|
|
16626
16626
|
initialValue: props.defaultReviewer
|
|
16627
|
-
})(
|
|
16627
|
+
})(React.createElement(Input, {
|
|
16628
16628
|
size: "small"
|
|
16629
|
-
})))),
|
|
16629
|
+
})))), React.createElement("div", null, React.createElement(Form.Item, {
|
|
16630
16630
|
label: "\u5F00\u7968\u4EBA"
|
|
16631
16631
|
}, getFieldDecorator('issuer', {
|
|
16632
16632
|
initialValue: props.defaultIssuer,
|
|
@@ -16634,7 +16634,7 @@ var Sign = decorator(Form.create())(function (props) {
|
|
|
16634
16634
|
required: true,
|
|
16635
16635
|
message: '请输入开票人'
|
|
16636
16636
|
}]
|
|
16637
|
-
})(
|
|
16637
|
+
})(React.createElement(Input, {
|
|
16638
16638
|
size: "small"
|
|
16639
16639
|
}))))));
|
|
16640
16640
|
});
|
|
@@ -16663,21 +16663,21 @@ var InvoiceHeaderDigtal = decorator(Form.create())(function (props) {
|
|
|
16663
16663
|
return '电子发票(增值税专用发票)';
|
|
16664
16664
|
}, [props.title]);
|
|
16665
16665
|
controller.useForm('invoiceHeader', form);
|
|
16666
|
-
return
|
|
16666
|
+
return React.createElement("div", {
|
|
16667
16667
|
className: "kts-invoice-operate-invoice-digtal-header"
|
|
16668
|
-
},
|
|
16668
|
+
}, React.createElement("div", {
|
|
16669
16669
|
className: "digtal-header-title"
|
|
16670
16670
|
}, title), form.getFieldDecorator('tag', {
|
|
16671
16671
|
initialValue: props.defaultTag
|
|
16672
|
-
})(
|
|
16672
|
+
})(React.createElement(Tag, null)), React.createElement("div", {
|
|
16673
16673
|
className: "digtal-header-fields"
|
|
16674
16674
|
}, form.getFieldDecorator('no', {
|
|
16675
16675
|
initialValue: props.defaultNo
|
|
16676
|
-
})(
|
|
16676
|
+
})(React.createElement(Field, {
|
|
16677
16677
|
title: "\u53D1\u7968\u53F7\u7801\uFF1A"
|
|
16678
16678
|
})), form.getFieldDecorator('invoicingDate', {
|
|
16679
16679
|
initialValue: props.defaultInvoicingDate
|
|
16680
|
-
})(
|
|
16680
|
+
})(React.createElement(Field, {
|
|
16681
16681
|
title: "\u5F00\u7968\u65E5\u671F\uFF1A"
|
|
16682
16682
|
}))));
|
|
16683
16683
|
});
|
|
@@ -16702,15 +16702,15 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
16702
16702
|
value = _this$props.value;
|
|
16703
16703
|
|
|
16704
16704
|
if (value) {
|
|
16705
|
-
return
|
|
16705
|
+
return React.createElement("div", {
|
|
16706
16706
|
className: "digtal-header-field"
|
|
16707
|
-
},
|
|
16707
|
+
}, React.createElement("div", {
|
|
16708
16708
|
className: "digtal-header-field-title"
|
|
16709
|
-
}, title),
|
|
16709
|
+
}, title), React.createElement("div", {
|
|
16710
16710
|
className: "digtal-header-field-value"
|
|
16711
16711
|
}, value));
|
|
16712
16712
|
} else {
|
|
16713
|
-
return
|
|
16713
|
+
return React.createElement(React.Fragment, null);
|
|
16714
16714
|
}
|
|
16715
16715
|
}
|
|
16716
16716
|
}]);
|
|
@@ -16732,9 +16732,9 @@ var Tag = /*#__PURE__*/function (_React$Component2) {
|
|
|
16732
16732
|
_createClass(Tag, [{
|
|
16733
16733
|
key: "render",
|
|
16734
16734
|
value: function render() {
|
|
16735
|
-
return this.props.value ?
|
|
16735
|
+
return this.props.value ? React.createElement("div", {
|
|
16736
16736
|
className: "digtal-header-tag"
|
|
16737
|
-
}, this.props.value) :
|
|
16737
|
+
}, this.props.value) : React.createElement(React.Fragment, null);
|
|
16738
16738
|
}
|
|
16739
16739
|
}]);
|
|
16740
16740
|
|
|
@@ -16797,7 +16797,7 @@ function SvgPlus(props) {
|
|
|
16797
16797
|
})))));
|
|
16798
16798
|
}
|
|
16799
16799
|
|
|
16800
|
-
var css_248z$g = ".kts-invoice-operate-invoice-digtal-stakeholder {\n display: flex;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder .digtal-stakeholder-expand-button {\n cursor: pointer;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder > div {\n border-right: 2px solid #9F613E;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder > div:nth-child(even) {\n flex: 1;\n display: flex;\n flex-direction: column;\n justify-content: end;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder > div:nth-child(odd) {\n flex: none;\n text-align: center;\n color: #9F613E;\n display: flex;\n flex-direction: column;\n justify-content: center;\n justify-items: center;\n padding: 0 4px;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder > div:last-child {\n border-right: none;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder .digtal-stakeholder-form {\n padding:
|
|
16800
|
+
var css_248z$g = ".kts-invoice-operate-invoice-digtal-stakeholder {\n display: flex;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder .digtal-stakeholder-expand-button {\n cursor: pointer;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder > div {\n border-right: 2px solid #9F613E;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder > div:nth-child(even) {\n flex: 1;\n display: flex;\n flex-direction: column;\n justify-content: end;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder > div:nth-child(odd) {\n flex: none;\n text-align: center;\n color: #9F613E;\n display: flex;\n flex-direction: column;\n justify-content: center;\n justify-items: center;\n padding: 0 4px;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder > div:last-child {\n border-right: none;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder .digtal-stakeholder-form {\n padding: 12px 10px 5px;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder .digtal-stakeholder-form .ktsAntX-col {\n margin-bottom: 15px;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder .digtal-stakeholder-form .ktsAnt3x-row.ktsAnt3x-form-item {\n display: flex;\n margin-bottom: 0;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder .digtal-stakeholder-form .ktsAnt3x-row.ktsAnt3x-form-item .ktsAnt3x-form-item-label {\n flex: none;\n font-weight: 500;\n line-height: 29px;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder .digtal-stakeholder-form .ktsAnt3x-row.ktsAnt3x-form-item .ktsAnt3x-form-item-label label {\n color: #9F603D;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder .digtal-stakeholder-form .ktsAnt3x-row.ktsAnt3x-form-item .ktsAnt3x-form-item-control {\n line-height: 1.4;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder .digtal-stakeholder-form .ktsAnt3x-row.ktsAnt3x-form-item .ktsAnt3x-form-item-control .digtal-stakeholder-form-text {\n word-break: break-all;\n line-height: 29px;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder .digtal-stakeholder-form .ktsAnt3x-row.ktsAnt3x-form-item .ktsAnt3x-form-item-control-wrapper {\n flex: 1;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder .natural-person-flag {\n padding: 0 8px;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder .natural-person-flag .ktsAnt3x-form-item-control {\n line-height: 32px;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder .natural-person-flag .ktsAnt3x-row.ktsAnt3x-form-item {\n margin-bottom: 0;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder.readOnly > div:nth-child(even) {\n justify-content: start;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder.readOnly .digtal-stakeholder-form .ktsAnt3x-row.ktsAnt3x-form-item .ktsAnt3x-form-item-label {\n line-height: 1.4;\n}\n.kts-invoice-operate-invoice-digtal-stakeholder.readOnly .digtal-stakeholder-form .ktsAnt3x-row.ktsAnt3x-form-item .ktsAnt3x-form-item-control .digtal-stakeholder-form-text {\n line-height: 1.4;\n}\n";
|
|
16801
16801
|
styleInject(css_248z$g);
|
|
16802
16802
|
|
|
16803
16803
|
var RULES = {
|
|
@@ -16910,57 +16910,59 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
16910
16910
|
return rulesMap[field] || defaultRules;
|
|
16911
16911
|
}, [rulesMap, isReadOnly, isReadOnly]);
|
|
16912
16912
|
controller.useForm('stakeholder', form);
|
|
16913
|
-
return
|
|
16913
|
+
return React.createElement("div", {
|
|
16914
16914
|
className: classNames("kts-invoice-operate-invoice-digtal-stakeholder", {
|
|
16915
16915
|
readOnly: readOnly
|
|
16916
16916
|
})
|
|
16917
|
-
},
|
|
16918
|
-
return
|
|
16919
|
-
}), !readOnly &&
|
|
16917
|
+
}, React.createElement("div", null, '购买方信息'.split('').map(function (e) {
|
|
16918
|
+
return React.createElement("span", null, e);
|
|
16919
|
+
}), !readOnly && React.createElement(Icon, {
|
|
16920
16920
|
className: "digtal-stakeholder-expand-button",
|
|
16921
16921
|
component: isExpand ? SvgArrowUp : SvgArrowDown,
|
|
16922
16922
|
onClick: onExpand
|
|
16923
|
-
})),
|
|
16924
|
-
|
|
16925
|
-
|
|
16926
|
-
|
|
16927
|
-
|
|
16928
|
-
|
|
16929
|
-
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
16930
|
-
label: "\u8D2D\u4E70\u65B9\u4FE1\u606F",
|
|
16923
|
+
})), React.createElement("div", null, React.createElement("div", {
|
|
16924
|
+
style: {
|
|
16925
|
+
marginTop: 20
|
|
16926
|
+
},
|
|
16927
|
+
className: 'natural-person-flag'
|
|
16928
|
+
}, props.isNaturalPerson === true && React.createElement(Form.Item, {
|
|
16931
16929
|
colon: false
|
|
16932
|
-
}, getFieldDecorator('naturalPersonFlag', {})(
|
|
16930
|
+
}, getFieldDecorator('naturalPersonFlag', {})(React.createElement(NaturalPersonFlag, {
|
|
16933
16931
|
readOnly: isReadOnly('naturalPersonFlag')
|
|
16934
|
-
})))),
|
|
16932
|
+
})))), React.createElement(Form, {
|
|
16933
|
+
className: "digtal-stakeholder-form"
|
|
16934
|
+
}, React.createElement(Row, {
|
|
16935
|
+
gutter: [16, 0]
|
|
16936
|
+
}, React.createElement(Col, {
|
|
16935
16937
|
span: 24
|
|
16936
|
-
},
|
|
16938
|
+
}, React.createElement(Form.Item, {
|
|
16937
16939
|
label: "\u540D\u79F0",
|
|
16938
16940
|
colon: false
|
|
16939
16941
|
}, getFieldDecorator('buyerName', {
|
|
16940
16942
|
rules: getRules('buyerName', RULES.companyName('购买方名称'))
|
|
16941
|
-
})(
|
|
16943
|
+
})(React.createElement(BuyerNameInput$1, {
|
|
16942
16944
|
myform: form,
|
|
16943
16945
|
fieldName: 'buyerName',
|
|
16944
16946
|
readOnly: isReadOnly('buyerName'),
|
|
16945
|
-
placeholder: "\u8BF7\u8F93\u5165",
|
|
16947
|
+
placeholder: "\u8BF7\u8F93\u5165\u540D\u79F0",
|
|
16946
16948
|
autoComplete: "off",
|
|
16947
|
-
suffix: isShowImportButton === true &&
|
|
16949
|
+
suffix: isShowImportButton === true && React.createElement(Button$1, {
|
|
16948
16950
|
type: 'link',
|
|
16949
16951
|
style: {
|
|
16950
16952
|
padding: 0,
|
|
16951
16953
|
width: 20,
|
|
16952
16954
|
height: '100%'
|
|
16953
16955
|
},
|
|
16954
|
-
icon:
|
|
16956
|
+
icon: React.createElement(Icon, {
|
|
16955
16957
|
component: SvgPlus
|
|
16956
16958
|
}),
|
|
16957
16959
|
onClick: function onClick() {
|
|
16958
16960
|
onClickImportButton && onClickImportButton(controller);
|
|
16959
16961
|
}
|
|
16960
16962
|
})
|
|
16961
|
-
})))),
|
|
16963
|
+
})))), React.createElement(Col, {
|
|
16962
16964
|
span: 24
|
|
16963
|
-
},
|
|
16965
|
+
}, React.createElement(Form.Item, {
|
|
16964
16966
|
label: "\u7EDF\u4E00\u793E\u4F1A\u4FE1\u7528\u4EE3\u7801/\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7",
|
|
16965
16967
|
colon: false
|
|
16966
16968
|
}, getFieldDecorator('buyerTaxId', {
|
|
@@ -16968,15 +16970,15 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
16968
16970
|
required: !isVatNormal,
|
|
16969
16971
|
message: '购买方纳税人识别号必填'
|
|
16970
16972
|
}].concat(_toConsumableArray(RULES.taxId('购买方纳税人识别号'))))
|
|
16971
|
-
})(
|
|
16973
|
+
})(React.createElement(BuyerNameInput$1, {
|
|
16972
16974
|
myform: form,
|
|
16973
16975
|
fieldName: 'buyerTaxId',
|
|
16974
16976
|
readOnly: isReadOnly('buyerTaxId'),
|
|
16975
|
-
placeholder: "\u8BF7\u8F93\u5165",
|
|
16977
|
+
placeholder: "\u8BF7\u8F93\u5165\u7EDF\u4E00\u793E\u4F1A\u4FE1\u7528\u4EE3\u7801/\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7",
|
|
16976
16978
|
autoComplete: "off"
|
|
16977
|
-
})))), isExpand &&
|
|
16978
|
-
span:
|
|
16979
|
-
},
|
|
16979
|
+
})))), isExpand && React.createElement(React.Fragment, null, React.createElement(Col, {
|
|
16980
|
+
span: 14
|
|
16981
|
+
}, React.createElement(Form.Item, {
|
|
16980
16982
|
label: "\u8D2D\u4E70\u65B9\u5730\u5740",
|
|
16981
16983
|
colon: false
|
|
16982
16984
|
}, getFieldDecorator('buyerAddress', {
|
|
@@ -16984,77 +16986,81 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
16984
16986
|
max: 100,
|
|
16985
16987
|
message: '购买方地址内容超长'
|
|
16986
16988
|
}])
|
|
16987
|
-
})(
|
|
16989
|
+
})(React.createElement(MyInput$1, {
|
|
16988
16990
|
readOnly: isReadOnly('buyerAddress'),
|
|
16989
|
-
placeholder: "\u8BF7\u8F93\u5165",
|
|
16991
|
+
placeholder: "\u8BF7\u8F93\u5165\u8D2D\u4E70\u65B9\u5730\u5740",
|
|
16990
16992
|
autoComplete: "off"
|
|
16991
|
-
})))),
|
|
16992
|
-
span:
|
|
16993
|
-
},
|
|
16993
|
+
})))), React.createElement(Col, {
|
|
16994
|
+
span: 10
|
|
16995
|
+
}, React.createElement(Form.Item, {
|
|
16994
16996
|
label: "\u7535\u8BDD",
|
|
16995
|
-
colon: false
|
|
16997
|
+
colon: false,
|
|
16998
|
+
className: 'telephone'
|
|
16996
16999
|
}, getFieldDecorator('buyerPhone', {
|
|
16997
17000
|
rules: getRules('buyerPhone', RULES.buyerTelPhone('购买方电话'))
|
|
16998
|
-
})(
|
|
17001
|
+
})(React.createElement(MyInput$1, {
|
|
16999
17002
|
readOnly: isReadOnly('buyerPhone'),
|
|
17000
|
-
placeholder: "\u8BF7\u8F93\u5165",
|
|
17003
|
+
placeholder: "\u8BF7\u8F93\u5165\u7535\u8BDD",
|
|
17001
17004
|
autoComplete: "off"
|
|
17002
|
-
})))),
|
|
17003
|
-
span:
|
|
17004
|
-
},
|
|
17005
|
+
})))), React.createElement(Col, {
|
|
17006
|
+
span: 14
|
|
17007
|
+
}, React.createElement(Form.Item, {
|
|
17005
17008
|
label: "\u8D2D\u4E70\u65B9\u5F00\u6237\u94F6\u884C",
|
|
17006
17009
|
colon: false
|
|
17007
17010
|
}, getFieldDecorator('buyerBank', {
|
|
17008
17011
|
rules: getRules('buyerBank', RULES.bankName('购买方开户银行'))
|
|
17009
|
-
})(
|
|
17012
|
+
})(React.createElement(MyInput$1, {
|
|
17010
17013
|
readOnly: isReadOnly('buyerBank'),
|
|
17011
|
-
placeholder: "\u8BF7\u8F93\u5165",
|
|
17014
|
+
placeholder: "\u8BF7\u8F93\u5165\u8D2D\u4E70\u65B9\u5F00\u6237\u94F6\u884C",
|
|
17012
17015
|
autoComplete: "off"
|
|
17013
|
-
})))),
|
|
17014
|
-
span:
|
|
17015
|
-
},
|
|
17016
|
+
})))), React.createElement(Col, {
|
|
17017
|
+
span: 10
|
|
17018
|
+
}, React.createElement(Form.Item, {
|
|
17016
17019
|
label: "\u94F6\u884C\u8D26\u53F7",
|
|
17017
17020
|
colon: false
|
|
17018
17021
|
}, getFieldDecorator('buyerAccount', {
|
|
17019
17022
|
rules: getRules('buyerAccount', RULES.bankAccount('购买方银行账号'))
|
|
17020
|
-
})(
|
|
17023
|
+
})(React.createElement(MyInput$1, {
|
|
17021
17024
|
readOnly: isReadOnly('buyerAccount'),
|
|
17022
|
-
placeholder: "\u8BF7\u8F93\u5165",
|
|
17025
|
+
placeholder: "\u8BF7\u8F93\u5165\u94F6\u884C\u8D26\u53F7",
|
|
17023
17026
|
autoComplete: "off"
|
|
17024
|
-
})))))))),
|
|
17025
|
-
return
|
|
17026
|
-
}), !readOnly &&
|
|
17027
|
+
})))))))), React.createElement("div", null, '销售方信息'.split('').map(function (e) {
|
|
17028
|
+
return React.createElement("span", null, e);
|
|
17029
|
+
}), !readOnly && React.createElement(Icon, {
|
|
17027
17030
|
className: "digtal-stakeholder-expand-button",
|
|
17028
17031
|
component: isExpand ? SvgArrowUp : SvgArrowDown,
|
|
17029
17032
|
onClick: onExpand
|
|
17030
|
-
})),
|
|
17033
|
+
})), React.createElement("div", null, !readOnly && props.lineCredit && React.createElement("div", {
|
|
17031
17034
|
style: {
|
|
17032
17035
|
marginTop: 20
|
|
17033
17036
|
}
|
|
17034
|
-
},
|
|
17037
|
+
}, React.createElement(Tooltip$1, {
|
|
17035
17038
|
trigger: "click",
|
|
17036
17039
|
title: props.lineCredit
|
|
17037
|
-
},
|
|
17038
|
-
type: "link"
|
|
17039
|
-
|
|
17040
|
+
}, React.createElement(Button$1, {
|
|
17041
|
+
type: "link",
|
|
17042
|
+
style: {
|
|
17043
|
+
padding: "0px 8px"
|
|
17044
|
+
}
|
|
17045
|
+
}, "\u67E5\u770B\u5F53\u524D\u53EF\u7528\u6388\u4FE1\u989D\u5EA6"))), React.createElement(Form, {
|
|
17040
17046
|
className: "digtal-stakeholder-form"
|
|
17041
|
-
},
|
|
17047
|
+
}, React.createElement(Row, {
|
|
17042
17048
|
gutter: [16, 0]
|
|
17043
|
-
},
|
|
17049
|
+
}, React.createElement(Col, {
|
|
17044
17050
|
span: 24
|
|
17045
|
-
},
|
|
17051
|
+
}, React.createElement(Form.Item, {
|
|
17046
17052
|
label: "\u540D\u79F0",
|
|
17047
17053
|
colon: false
|
|
17048
17054
|
}, getFieldDecorator('supplierName', {
|
|
17049
17055
|
rules: getRules('supplierName', RULES.companyName('销售方名称')),
|
|
17050
17056
|
getValueFromEvent: formatCompanyName
|
|
17051
|
-
})(
|
|
17057
|
+
})(React.createElement(MyInput$1, {
|
|
17052
17058
|
readOnly: isReadOnly('supplierName'),
|
|
17053
|
-
placeholder: "\u8BF7\u8F93\u5165",
|
|
17059
|
+
placeholder: "\u8BF7\u8F93\u5165\u540D\u79F0",
|
|
17054
17060
|
autoComplete: "off"
|
|
17055
|
-
})))),
|
|
17061
|
+
})))), React.createElement(Col, {
|
|
17056
17062
|
span: 24
|
|
17057
|
-
},
|
|
17063
|
+
}, React.createElement(Form.Item, {
|
|
17058
17064
|
label: "\u7EDF\u4E00\u793E\u4F1A\u4FE1\u7528\u4EE3\u7801/\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7",
|
|
17059
17065
|
colon: false
|
|
17060
17066
|
}, getFieldDecorator('supplierTaxId', {
|
|
@@ -17062,13 +17068,13 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
17062
17068
|
required: true,
|
|
17063
17069
|
message: '销售方纳税人识别号必填'
|
|
17064
17070
|
}].concat(_toConsumableArray(RULES.taxId('销售方纳税人识别号'))))
|
|
17065
|
-
})(
|
|
17071
|
+
})(React.createElement(MyInput$1, {
|
|
17066
17072
|
readOnly: isReadOnly('supplierTaxId'),
|
|
17067
|
-
placeholder: "\u8BF7\u8F93\u5165",
|
|
17073
|
+
placeholder: "\u8BF7\u8F93\u5165\u7EDF\u4E00\u793E\u4F1A\u4FE1\u7528\u4EE3\u7801/\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7",
|
|
17068
17074
|
autoComplete: "off"
|
|
17069
|
-
})))), isExpand &&
|
|
17070
|
-
span:
|
|
17071
|
-
},
|
|
17075
|
+
})))), isExpand && React.createElement(React.Fragment, null, React.createElement(Col, {
|
|
17076
|
+
span: 12
|
|
17077
|
+
}, React.createElement(Form.Item, {
|
|
17072
17078
|
label: "\u9500\u552E\u65B9\u5730\u5740",
|
|
17073
17079
|
colon: false
|
|
17074
17080
|
}, getFieldDecorator('sellerAddress', {
|
|
@@ -17076,42 +17082,43 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
17076
17082
|
max: 300,
|
|
17077
17083
|
message: '销售方地址内容超长'
|
|
17078
17084
|
}])
|
|
17079
|
-
})(
|
|
17085
|
+
})(React.createElement(MyInput$1, {
|
|
17080
17086
|
readOnly: isReadOnly('sellerAddress'),
|
|
17081
|
-
placeholder: "\u8BF7\u8F93\u5165",
|
|
17087
|
+
placeholder: "\u8BF7\u8F93\u5165\u9500\u552E\u65B9\u5730\u5740",
|
|
17082
17088
|
autoComplete: "off"
|
|
17083
|
-
})))),
|
|
17084
|
-
span:
|
|
17085
|
-
},
|
|
17089
|
+
})))), React.createElement(Col, {
|
|
17090
|
+
span: 12
|
|
17091
|
+
}, React.createElement(Form.Item, {
|
|
17086
17092
|
label: "\u7535\u8BDD",
|
|
17087
|
-
colon: false
|
|
17093
|
+
colon: false,
|
|
17094
|
+
className: 'telephone'
|
|
17088
17095
|
}, getFieldDecorator('sellerPhone', {
|
|
17089
17096
|
rules: getRules('sellerPhone', RULES.sellerTelPhone('销售方电话'))
|
|
17090
|
-
})(
|
|
17097
|
+
})(React.createElement(MyInput$1, {
|
|
17091
17098
|
readOnly: isReadOnly('sellerPhone'),
|
|
17092
|
-
placeholder: "\u8BF7\u8F93\u5165",
|
|
17099
|
+
placeholder: "\u8BF7\u8F93\u5165\u7535\u8BDD",
|
|
17093
17100
|
autoComplete: "off"
|
|
17094
|
-
})))),
|
|
17101
|
+
})))), React.createElement(Col, {
|
|
17095
17102
|
span: 12
|
|
17096
|
-
},
|
|
17103
|
+
}, React.createElement(Form.Item, {
|
|
17097
17104
|
label: "\u9500\u552E\u65B9\u5F00\u6237\u94F6\u884C",
|
|
17098
17105
|
colon: false
|
|
17099
17106
|
}, getFieldDecorator('sellerBank', {
|
|
17100
17107
|
rules: getRules('sellerBank', RULES.bankName('销售方开户银行'))
|
|
17101
|
-
})(
|
|
17108
|
+
})(React.createElement(MyInput$1, {
|
|
17102
17109
|
readOnly: isReadOnly('sellerBank'),
|
|
17103
|
-
placeholder: "\u8BF7\u8F93\u5165",
|
|
17110
|
+
placeholder: "\u8BF7\u8F93\u5165\u9500\u552E\u65B9\u5F00\u6237\u94F6\u884C",
|
|
17104
17111
|
autoComplete: "off"
|
|
17105
|
-
})))),
|
|
17112
|
+
})))), React.createElement(Col, {
|
|
17106
17113
|
span: 12
|
|
17107
|
-
},
|
|
17114
|
+
}, React.createElement(Form.Item, {
|
|
17108
17115
|
label: "\u94F6\u884C\u8D26\u53F7",
|
|
17109
17116
|
colon: false
|
|
17110
17117
|
}, getFieldDecorator('sellerAccount', {
|
|
17111
17118
|
rules: getRules('sellerAccount', RULES.bankAccount('销售方银行账号'))
|
|
17112
|
-
})(
|
|
17119
|
+
})(React.createElement(MyInput$1, {
|
|
17113
17120
|
readOnly: isReadOnly('sellerAccount'),
|
|
17114
|
-
placeholder: "\u8BF7\u8F93\u5165",
|
|
17121
|
+
placeholder: "\u8BF7\u8F93\u5165\u94F6\u884C\u8D26\u53F7",
|
|
17115
17122
|
autoComplete: "off"
|
|
17116
17123
|
})))))))));
|
|
17117
17124
|
});
|
|
@@ -17130,7 +17137,7 @@ function NaturalPersonFlag(props) {
|
|
|
17130
17137
|
React.useEffect(function () {
|
|
17131
17138
|
setValue(props.value || 'COMPANY');
|
|
17132
17139
|
}, [props.value]);
|
|
17133
|
-
return
|
|
17140
|
+
return React.createElement(Checkbox$1, {
|
|
17134
17141
|
disabled: props.readOnly,
|
|
17135
17142
|
checked: value === 'NATURAL',
|
|
17136
17143
|
onChange: onChange
|
|
@@ -17233,10 +17240,10 @@ function BuyerNameInput$1(props) {
|
|
|
17233
17240
|
return _ref.apply(this, arguments);
|
|
17234
17241
|
};
|
|
17235
17242
|
}(), [autoComplete.onBuyerNameSearch, fieldName]);
|
|
17236
|
-
if (props.readOnly) return
|
|
17243
|
+
if (props.readOnly) return React.createElement("span", {
|
|
17237
17244
|
className: 'digtal-stakeholder-form-text'
|
|
17238
17245
|
}, props.value);
|
|
17239
|
-
return
|
|
17246
|
+
return React.createElement(AutoComplete$1, {
|
|
17240
17247
|
onSearch: onSearch,
|
|
17241
17248
|
options: options.map(function (e) {
|
|
17242
17249
|
return {
|
|
@@ -17244,8 +17251,11 @@ function BuyerNameInput$1(props) {
|
|
|
17244
17251
|
};
|
|
17245
17252
|
}),
|
|
17246
17253
|
onChange: onChangeAutoComplete,
|
|
17247
|
-
value: props.value
|
|
17248
|
-
|
|
17254
|
+
value: props.value,
|
|
17255
|
+
style: {
|
|
17256
|
+
width: '100%'
|
|
17257
|
+
}
|
|
17258
|
+
}, React.createElement(Input$1, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
17249
17259
|
style: _objectSpread2({
|
|
17250
17260
|
width: '100%'
|
|
17251
17261
|
}, props.style)
|
|
@@ -17269,11 +17279,11 @@ var MyInput$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
17269
17279
|
var props = this.props;
|
|
17270
17280
|
|
|
17271
17281
|
if (props.readOnly) {
|
|
17272
|
-
return
|
|
17282
|
+
return React.createElement("span", {
|
|
17273
17283
|
className: 'digtal-stakeholder-form-text'
|
|
17274
17284
|
}, props.value);
|
|
17275
17285
|
} else {
|
|
17276
|
-
return
|
|
17286
|
+
return React.createElement(Input$1, _objectSpread2({}, props));
|
|
17277
17287
|
}
|
|
17278
17288
|
}
|
|
17279
17289
|
}]);
|
|
@@ -17330,47 +17340,47 @@ var SignDigtal = decorator(Form.create())(function (props) {
|
|
|
17330
17340
|
controller.useForm('sign', form);
|
|
17331
17341
|
|
|
17332
17342
|
if (readOnly) {
|
|
17333
|
-
return
|
|
17343
|
+
return React.createElement("div", {
|
|
17334
17344
|
className: "kts-invoice-operate-sign-digtal-readOnly"
|
|
17335
|
-
},
|
|
17345
|
+
}, React.createElement("div", {
|
|
17336
17346
|
className: 'sign-digtal-readOnly-cont'
|
|
17337
|
-
},
|
|
17347
|
+
}, React.createElement("div", null, React.createElement("span", null, "\u5907"), React.createElement("span", null, "\u6CE8")), React.createElement("div", null, getFieldDecorator('remarks', {
|
|
17338
17348
|
initialValue: props.defaultRemark
|
|
17339
|
-
})(isEnables('remarks') ?
|
|
17349
|
+
})(isEnables('remarks') ? React.createElement(Input$1.TextArea, {
|
|
17340
17350
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
17341
17351
|
style: {
|
|
17342
17352
|
height: '100%'
|
|
17343
17353
|
}
|
|
17344
|
-
}) :
|
|
17354
|
+
}) : React.createElement(MyDiv$1, {
|
|
17345
17355
|
style: {
|
|
17346
17356
|
whiteSpace: 'pre-wrap'
|
|
17347
17357
|
}
|
|
17348
|
-
})))),
|
|
17358
|
+
})))), React.createElement(Form, {
|
|
17349
17359
|
layout: 'inline',
|
|
17350
17360
|
className: 'digtal-readOnly-form'
|
|
17351
|
-
},
|
|
17361
|
+
}, React.createElement(Form.Item, {
|
|
17352
17362
|
label: "\u5F00\u7968\u4EBA"
|
|
17353
17363
|
}, getFieldDecorator('drawer', {
|
|
17354
17364
|
initialValue: props.defaultRemark
|
|
17355
|
-
})(
|
|
17365
|
+
})(React.createElement(MyDiv$1, null)))));
|
|
17356
17366
|
} else {
|
|
17357
|
-
return
|
|
17367
|
+
return React.createElement("div", {
|
|
17358
17368
|
className: "kts-invoice-operate-sign-digtal"
|
|
17359
|
-
},
|
|
17369
|
+
}, React.createElement("div", {
|
|
17360
17370
|
className: 'sign-digtal-label'
|
|
17361
|
-
}, "\u5907\u6CE8\u4FE1\u606F"),
|
|
17371
|
+
}, "\u5907\u6CE8\u4FE1\u606F"), React.createElement(Form, null, React.createElement(Form.Item, {
|
|
17362
17372
|
label: "\u5907\u6CE8"
|
|
17363
17373
|
}, getFieldDecorator('remarks', {
|
|
17364
17374
|
initialValue: props.defaultRemark
|
|
17365
|
-
})(
|
|
17375
|
+
})(React.createElement(Input$1.TextArea, {
|
|
17366
17376
|
readOnly: isReadOnly('remarks'),
|
|
17367
17377
|
autoSize: true,
|
|
17368
17378
|
placeholder: "\u8BF7\u8F93\u5165"
|
|
17369
|
-
}))),
|
|
17379
|
+
}))), React.createElement(Form.Item, {
|
|
17370
17380
|
label: "\u5F00\u7968\u4EBA"
|
|
17371
17381
|
}, getFieldDecorator('drawer', {
|
|
17372
17382
|
initialValue: props.defaultIssuer
|
|
17373
|
-
})(
|
|
17383
|
+
})(React.createElement(Input$1, {
|
|
17374
17384
|
readOnly: isReadOnly('drawer'),
|
|
17375
17385
|
style: {
|
|
17376
17386
|
width: 313
|
|
@@ -17394,7 +17404,7 @@ var MyDiv$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
17394
17404
|
_createClass(MyDiv, [{
|
|
17395
17405
|
key: "render",
|
|
17396
17406
|
value: function render() {
|
|
17397
|
-
return
|
|
17407
|
+
return React.createElement("div", {
|
|
17398
17408
|
style: this.props.style
|
|
17399
17409
|
}, this.props.value);
|
|
17400
17410
|
}
|
|
@@ -17497,12 +17507,12 @@ function TableVirtual$1 (props) {
|
|
|
17497
17507
|
if (!cont) return;
|
|
17498
17508
|
cont.scrollTop = 0;
|
|
17499
17509
|
}, [(_props$dataSource2 = props.dataSource) === null || _props$dataSource2 === void 0 ? void 0 : _props$dataSource2.length]);
|
|
17500
|
-
return
|
|
17510
|
+
return React.createElement("span", {
|
|
17501
17511
|
className: "kts-invoice-operate-goods-table-virtual",
|
|
17502
17512
|
ref: function ref(e) {
|
|
17503
17513
|
setSelf(e);
|
|
17504
17514
|
}
|
|
17505
|
-
},
|
|
17515
|
+
}, React.createElement(TableManual, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
17506
17516
|
dataSource: dataSource,
|
|
17507
17517
|
// 新版本Table会有输入框无法连续输入的问题,先兼容老版本
|
|
17508
17518
|
tableComponent: Table
|
|
@@ -17613,52 +17623,52 @@ var Statistics$1 = (function () {
|
|
|
17613
17623
|
});
|
|
17614
17624
|
return sum.done().toNumber();
|
|
17615
17625
|
}, []);
|
|
17616
|
-
return
|
|
17626
|
+
return React.createElement("div", {
|
|
17617
17627
|
className: 'kts-invoice-operate-goods-list-statistics-digtal'
|
|
17618
|
-
},
|
|
17628
|
+
}, React.createElement("div", {
|
|
17619
17629
|
className: 'statistics-digtal-total'
|
|
17620
|
-
},
|
|
17630
|
+
}, React.createElement("div", null, "\u5408\u8BA1"), React.createElement("div", {
|
|
17621
17631
|
style: {
|
|
17622
17632
|
flex: 1
|
|
17623
17633
|
}
|
|
17624
|
-
}),
|
|
17634
|
+
}), React.createElement("div", {
|
|
17625
17635
|
style: {
|
|
17626
17636
|
width: 119,
|
|
17627
17637
|
textAlign: 'right',
|
|
17628
17638
|
paddingRight: 15
|
|
17629
17639
|
}
|
|
17630
|
-
}, "\xA5", parseFloat(isTaxIncluded ? lineAmountIncludeTax : lineAmountExcludeTax).toFixed(2)),
|
|
17640
|
+
}, "\xA5", parseFloat(isTaxIncluded ? lineAmountIncludeTax : lineAmountExcludeTax).toFixed(2)), React.createElement("div", {
|
|
17631
17641
|
style: {
|
|
17632
17642
|
width: 119,
|
|
17633
17643
|
textAlign: 'right',
|
|
17634
17644
|
paddingRight: 15
|
|
17635
17645
|
}
|
|
17636
|
-
}, "\xA5", parseFloat(taxAmount).toFixed(2))),
|
|
17646
|
+
}, "\xA5", parseFloat(taxAmount).toFixed(2))), React.createElement("div", {
|
|
17637
17647
|
className: 'statistics-digtal-total-tax'
|
|
17638
|
-
},
|
|
17648
|
+
}, React.createElement("div", null, "\u4EF7\u7A0E\u5408\u8BA1\uFF08\u5927\u5199\uFF09"), React.createElement("div", {
|
|
17639
17649
|
style: {
|
|
17640
17650
|
paddingLeft: 30
|
|
17641
17651
|
}
|
|
17642
|
-
},
|
|
17652
|
+
}, React.createElement(Icon, {
|
|
17643
17653
|
style: {
|
|
17644
17654
|
fontSize: 16
|
|
17645
17655
|
},
|
|
17646
17656
|
component: SvgFork
|
|
17647
|
-
}),
|
|
17657
|
+
}), React.createElement("span", {
|
|
17648
17658
|
style: {
|
|
17649
17659
|
fontWeight: 'bold',
|
|
17650
17660
|
marginLeft: 4
|
|
17651
17661
|
}
|
|
17652
|
-
}, toStringChinese(lineAmountIncludeTax))),
|
|
17662
|
+
}, toStringChinese(lineAmountIncludeTax))), React.createElement("div", {
|
|
17653
17663
|
style: {
|
|
17654
17664
|
flex: 1
|
|
17655
17665
|
}
|
|
17656
|
-
}),
|
|
17666
|
+
}), React.createElement("div", {
|
|
17657
17667
|
style: {
|
|
17658
17668
|
width: 90,
|
|
17659
17669
|
color: '#9F613E'
|
|
17660
17670
|
}
|
|
17661
|
-
}, "\uFF08\u5C0F\u5199\uFF09"),
|
|
17671
|
+
}, "\uFF08\u5C0F\u5199\uFF09"), React.createElement("div", {
|
|
17662
17672
|
style: {
|
|
17663
17673
|
width: 119
|
|
17664
17674
|
}
|
|
@@ -17717,10 +17727,10 @@ var AddRowButton$1 = (function () {
|
|
|
17717
17727
|
}
|
|
17718
17728
|
}, _callee);
|
|
17719
17729
|
})), [controller, rootElement]);
|
|
17720
|
-
if (isAddRow === false) return
|
|
17721
|
-
if (model === 'prefab') return
|
|
17722
|
-
if (model === 'readOnly') return
|
|
17723
|
-
return
|
|
17730
|
+
if (isAddRow === false) return React.createElement(React.Fragment, null);
|
|
17731
|
+
if (model === 'prefab') return React.createElement(React.Fragment, null);
|
|
17732
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
17733
|
+
return React.createElement(Button$1, {
|
|
17724
17734
|
size: 'small',
|
|
17725
17735
|
type: 'primary',
|
|
17726
17736
|
onClick: onClick,
|
|
@@ -19081,11 +19091,11 @@ var TaxIncludedSwitch$1 = (function () {
|
|
|
19081
19091
|
return _ref.apply(this, arguments);
|
|
19082
19092
|
};
|
|
19083
19093
|
}(), []);
|
|
19084
|
-
return
|
|
19094
|
+
return React.createElement("span", null, React.createElement("label", {
|
|
19085
19095
|
style: {
|
|
19086
19096
|
marginRight: 2
|
|
19087
19097
|
}
|
|
19088
|
-
}, "\u542B\u7A0E"),
|
|
19098
|
+
}, "\u542B\u7A0E"), React.createElement(Switch, {
|
|
19089
19099
|
disabled: isSwitchTax === false,
|
|
19090
19100
|
checked: isTaxIncluded,
|
|
19091
19101
|
defaultChecked: true,
|
|
@@ -19181,12 +19191,12 @@ function Search$1() {
|
|
|
19181
19191
|
};
|
|
19182
19192
|
}());
|
|
19183
19193
|
}, [value, controller]);
|
|
19184
|
-
return
|
|
19194
|
+
return React.createElement(Input$1, {
|
|
19185
19195
|
readOnly: readOnly,
|
|
19186
19196
|
value: value,
|
|
19187
19197
|
className: "kts-invoice-operate-goods-list-search",
|
|
19188
19198
|
placeholder: "\u8BF7\u60A8\u8F93\u5165\u9879\u76EE\u540D\u79F0\u3001\u89C4\u683C\u578B\u53F7\u3001\u91D1\u989D(".concat(isTaxIncluded ? '含税' : '不含税', ")\u641C\u7D22"),
|
|
19189
|
-
prefix:
|
|
19199
|
+
prefix: React.createElement(Icon$1, {
|
|
19190
19200
|
component: SvgMagnifier$1,
|
|
19191
19201
|
style: {
|
|
19192
19202
|
color: "#b8b8b8"
|
|
@@ -19231,12 +19241,12 @@ function TableRow$1(props) {
|
|
|
19231
19241
|
return undefined;
|
|
19232
19242
|
}
|
|
19233
19243
|
}, [rowKey, goodsMap]);
|
|
19234
|
-
return rowKey === current && current ?
|
|
19244
|
+
return rowKey === current && current ? React.createElement("tr", {
|
|
19235
19245
|
style: {
|
|
19236
19246
|
height: 50,
|
|
19237
19247
|
position: 'relative'
|
|
19238
19248
|
}
|
|
19239
|
-
},
|
|
19249
|
+
}, React.createElement("div", {
|
|
19240
19250
|
style: {
|
|
19241
19251
|
height: 0.5,
|
|
19242
19252
|
width: '100%',
|
|
@@ -19244,9 +19254,7 @@ function TableRow$1(props) {
|
|
|
19244
19254
|
position: 'absolute',
|
|
19245
19255
|
bottom: 0
|
|
19246
19256
|
}
|
|
19247
|
-
})) :
|
|
19248
|
-
/*#__PURE__*/
|
|
19249
|
-
// <tr {...props} className={classnames(props.className, discount, (rowKey === container && current) ? 'kts-invoice-operate-goods-list-itemName-drag-container' : '')} />
|
|
19257
|
+
})) : // <tr {...props} className={classnames(props.className, discount, (rowKey === container && current) ? 'kts-invoice-operate-goods-list-itemName-drag-container' : '')} />
|
|
19250
19258
|
React.createElement("tr", _objectSpread2(_objectSpread2({}, props), {}, {
|
|
19251
19259
|
className: classNames(props.className, discount, rowKey === container && current ? 'kts-invoice-operate-goods-list-itemName-drag-container-' + site : undefined)
|
|
19252
19260
|
}));
|
|
@@ -19286,9 +19294,9 @@ var TitleText$1 = (function (props) {
|
|
|
19286
19294
|
return !!e.required;
|
|
19287
19295
|
})) || props.required;
|
|
19288
19296
|
}, [rules, props.required]);
|
|
19289
|
-
return
|
|
19297
|
+
return React.createElement(React.Fragment, null, required ? React.createElement(Text$5, {
|
|
19290
19298
|
type: "danger"
|
|
19291
|
-
}, "*") :
|
|
19299
|
+
}, "*") : React.createElement(React.Fragment, null), children);
|
|
19292
19300
|
});
|
|
19293
19301
|
|
|
19294
19302
|
var css_248z$m = ".kts-invoice-operate-goods-list-itemName-input {\n display: flex;\n flex: 1;\n padding-left: 0;\n height: 31px;\n}\n";
|
|
@@ -19469,14 +19477,14 @@ function ItemNameInput$1(props) {
|
|
|
19469
19477
|
return _ref3.apply(this, arguments);
|
|
19470
19478
|
};
|
|
19471
19479
|
}(), [autoComplete.onItemNameSearch]);
|
|
19472
|
-
return
|
|
19480
|
+
return React.createElement("div", {
|
|
19473
19481
|
className: 'kts-invoice-operate-goods-list-itemName-input'
|
|
19474
|
-
}, props.shorthand &&
|
|
19482
|
+
}, props.shorthand && React.createElement("span", {
|
|
19475
19483
|
style: {
|
|
19476
19484
|
alignSelf: 'center',
|
|
19477
19485
|
fontSize: 12
|
|
19478
19486
|
}
|
|
19479
|
-
}, "*", props.shorthand, "*"),
|
|
19487
|
+
}, "*", props.shorthand, "*"), React.createElement(AutoComplete$1, {
|
|
19480
19488
|
onSearch: onSearch,
|
|
19481
19489
|
value: props.value,
|
|
19482
19490
|
options: options.map(function (e) {
|
|
@@ -19486,7 +19494,7 @@ function ItemNameInput$1(props) {
|
|
|
19486
19494
|
};
|
|
19487
19495
|
}),
|
|
19488
19496
|
onSelect: onChangeAutoComplete
|
|
19489
|
-
},
|
|
19497
|
+
}, React.createElement(Input$1, {
|
|
19490
19498
|
style: {
|
|
19491
19499
|
height: '100%'
|
|
19492
19500
|
},
|
|
@@ -19556,7 +19564,7 @@ function Drag$2(props) {
|
|
|
19556
19564
|
var currentGood = controller.state.goodsListState.goodsList.filter(function (e) {
|
|
19557
19565
|
return e.$index === record.$index;
|
|
19558
19566
|
})[0];
|
|
19559
|
-
mounting(
|
|
19567
|
+
mounting(React.createElement(DragDiv$1, _objectSpread2({}, currentGood)));
|
|
19560
19568
|
rowList.forEach(function (e) {
|
|
19561
19569
|
e.addEventListener('mousemove', onMousemove);
|
|
19562
19570
|
});
|
|
@@ -19717,7 +19725,7 @@ function Drag$2(props) {
|
|
|
19717
19725
|
|
|
19718
19726
|
|
|
19719
19727
|
function insert() {
|
|
19720
|
-
mounting(
|
|
19728
|
+
mounting(React.createElement(React.Fragment, null));
|
|
19721
19729
|
controller.run( /*#__PURE__*/function () {
|
|
19722
19730
|
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(s) {
|
|
19723
19731
|
var _s$goodsListState$dra, container, current, site, goodsList, goodsMap, _currentGood, currentIndex, moveGoods;
|
|
@@ -19796,7 +19804,7 @@ function Drag$2(props) {
|
|
|
19796
19804
|
}
|
|
19797
19805
|
}, [controller, record, disabled]);
|
|
19798
19806
|
var renderButton = React.useMemo(function () {
|
|
19799
|
-
return
|
|
19807
|
+
return React.createElement(Button, {
|
|
19800
19808
|
type: 'link',
|
|
19801
19809
|
style: {
|
|
19802
19810
|
padding: 0
|
|
@@ -19807,13 +19815,13 @@ function Drag$2(props) {
|
|
|
19807
19815
|
},
|
|
19808
19816
|
className: "kts-invoice-operate-goods-list-itemName-drag",
|
|
19809
19817
|
onMouseOver: controller.saveEditGood
|
|
19810
|
-
},
|
|
19818
|
+
}, React.createElement(Icon, {
|
|
19811
19819
|
component: SvgI001$1
|
|
19812
19820
|
}));
|
|
19813
19821
|
}, [onMouseDown, controller]);
|
|
19814
19822
|
|
|
19815
19823
|
if (disabled) {
|
|
19816
|
-
return
|
|
19824
|
+
return React.createElement(Popover, {
|
|
19817
19825
|
content: '您还有未编辑完成的商品',
|
|
19818
19826
|
trigger: 'focus'
|
|
19819
19827
|
}, renderButton);
|
|
@@ -19853,13 +19861,13 @@ function DragDiv$1(props) {
|
|
|
19853
19861
|
window.removeEventListener('mousemove', onMousemove);
|
|
19854
19862
|
};
|
|
19855
19863
|
});
|
|
19856
|
-
return
|
|
19864
|
+
return React.createElement("div", {
|
|
19857
19865
|
className: "kts-invoice-operate-goods-list-itemName-drag-div",
|
|
19858
19866
|
style: {
|
|
19859
19867
|
top: y,
|
|
19860
19868
|
left: x
|
|
19861
19869
|
}
|
|
19862
|
-
},
|
|
19870
|
+
}, React.createElement("span", null, props.itemName), React.createElement("span", null, props.itemModelName), React.createElement("span", null, props.unit));
|
|
19863
19871
|
}
|
|
19864
19872
|
|
|
19865
19873
|
var useColumns$1 = (function (form) {
|
|
@@ -19975,7 +19983,7 @@ var useColumns$1 = (function (form) {
|
|
|
19975
19983
|
width: 40,
|
|
19976
19984
|
align: 'center',
|
|
19977
19985
|
render: function render(_, record) {
|
|
19978
|
-
return
|
|
19986
|
+
return React.createElement(Drag$2, {
|
|
19979
19987
|
record: record
|
|
19980
19988
|
});
|
|
19981
19989
|
}
|
|
@@ -19985,20 +19993,20 @@ var useColumns$1 = (function (form) {
|
|
|
19985
19993
|
dataIndex: 'serialNo',
|
|
19986
19994
|
width: 50,
|
|
19987
19995
|
render: function render(e) {
|
|
19988
|
-
return
|
|
19996
|
+
return React.createElement("span", {
|
|
19989
19997
|
style: {
|
|
19990
19998
|
padding: '0 10px'
|
|
19991
19999
|
}
|
|
19992
20000
|
}, e);
|
|
19993
20001
|
}
|
|
19994
20002
|
}, {
|
|
19995
|
-
title:
|
|
20003
|
+
title: React.createElement(TitleText$1, {
|
|
19996
20004
|
required: true
|
|
19997
20005
|
}, "\u9879\u76EE\u540D\u79F0"),
|
|
19998
20006
|
key: 'itemName',
|
|
19999
20007
|
render: function render(_, record) {
|
|
20000
20008
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
20001
|
-
return
|
|
20009
|
+
return React.createElement(Form.Item, null, React.createElement("div", {
|
|
20002
20010
|
style: {
|
|
20003
20011
|
display: 'flex'
|
|
20004
20012
|
}
|
|
@@ -20045,12 +20053,12 @@ var useColumns$1 = (function (form) {
|
|
|
20045
20053
|
return validator;
|
|
20046
20054
|
}()
|
|
20047
20055
|
}])
|
|
20048
|
-
})(
|
|
20056
|
+
})(React.createElement(ItemNameInput$1, {
|
|
20049
20057
|
editGood: editGood,
|
|
20050
20058
|
shorthand: editGood.shorthand,
|
|
20051
|
-
suffix:
|
|
20059
|
+
suffix: React.createElement(Tooltip$1, {
|
|
20052
20060
|
title: "\u70B9\u51FB\u4ECE\u5546\u54C1\u7BA1\u7406\u4E2D\u6DFB\u52A0\u5546\u54C1\u4FE1\u606F"
|
|
20053
|
-
},
|
|
20061
|
+
}, React.createElement(Button$1, {
|
|
20054
20062
|
type: "link",
|
|
20055
20063
|
style: {
|
|
20056
20064
|
padding: 0,
|
|
@@ -20058,7 +20066,7 @@ var useColumns$1 = (function (form) {
|
|
|
20058
20066
|
fontSize: 20,
|
|
20059
20067
|
fill: '#0074ff'
|
|
20060
20068
|
},
|
|
20061
|
-
icon:
|
|
20069
|
+
icon: React.createElement(SvgPlus$1, null),
|
|
20062
20070
|
onClick: controller.pipeline( /*#__PURE__*/function () {
|
|
20063
20071
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(s) {
|
|
20064
20072
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
@@ -20085,9 +20093,9 @@ var useColumns$1 = (function (form) {
|
|
|
20085
20093
|
}
|
|
20086
20094
|
}))));
|
|
20087
20095
|
} else {
|
|
20088
|
-
return
|
|
20096
|
+
return React.createElement("span", null, record.lineAttribute === LineAttributeType$1.折扣行 ? React.createElement("span", {
|
|
20089
20097
|
className: 'goods-list-digtal-discount-tag'
|
|
20090
|
-
}, "\u6298\u6263") :
|
|
20098
|
+
}, "\u6298\u6263") : React.createElement(React.Fragment, null), React.createElement(MyItemNameDiv$1, {
|
|
20091
20099
|
valueT: formatSearch$1(getItemNameWithShorthand({
|
|
20092
20100
|
shorthand: record.shorthand,
|
|
20093
20101
|
full: record.itemNameSelf || ''
|
|
@@ -20101,17 +20109,17 @@ var useColumns$1 = (function (form) {
|
|
|
20101
20109
|
}
|
|
20102
20110
|
}
|
|
20103
20111
|
}, {
|
|
20104
|
-
title:
|
|
20112
|
+
title: React.createElement(TitleText$1, {
|
|
20105
20113
|
rules: (_columnsReplenish$ite = columnsReplenish['itemModelName']) === null || _columnsReplenish$ite === void 0 ? void 0 : _columnsReplenish$ite.rules
|
|
20106
20114
|
}, "\u89C4\u683C\u578B\u53F7"),
|
|
20107
20115
|
key: 'itemModelName',
|
|
20108
20116
|
width: 119,
|
|
20109
20117
|
render: function render(_, record) {
|
|
20110
20118
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
20111
|
-
return
|
|
20119
|
+
return React.createElement(Form.Item, null, getFieldDecorator('itemModelName', {
|
|
20112
20120
|
initialValue: isMyShow ? editGood.itemModelNameSelf : editGood.itemModelName,
|
|
20113
20121
|
rules: getReplenishRules('itemModelName')
|
|
20114
|
-
})(
|
|
20122
|
+
})(React.createElement(MyInput$2, {
|
|
20115
20123
|
onChange: function () {
|
|
20116
20124
|
var _onChange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
20117
20125
|
var key, value;
|
|
@@ -20144,7 +20152,7 @@ var useColumns$1 = (function (form) {
|
|
|
20144
20152
|
}()
|
|
20145
20153
|
})));
|
|
20146
20154
|
} else {
|
|
20147
|
-
return
|
|
20155
|
+
return React.createElement(MyItemNameDiv$1, {
|
|
20148
20156
|
valueT: formatSearch$1(record.itemModelNameSelf, searchValue),
|
|
20149
20157
|
valueF: formatSearch$1(record.itemModelName, searchValue),
|
|
20150
20158
|
isMyShow: isMyShow
|
|
@@ -20152,17 +20160,17 @@ var useColumns$1 = (function (form) {
|
|
|
20152
20160
|
}
|
|
20153
20161
|
}
|
|
20154
20162
|
}, {
|
|
20155
|
-
title:
|
|
20163
|
+
title: React.createElement(TitleText$1, {
|
|
20156
20164
|
rules: (_columnsReplenish$uni = columnsReplenish['unit']) === null || _columnsReplenish$uni === void 0 ? void 0 : _columnsReplenish$uni.rules
|
|
20157
20165
|
}, "\u5355\u4F4D"),
|
|
20158
20166
|
key: 'unit',
|
|
20159
20167
|
width: 70,
|
|
20160
20168
|
render: function render(_, record) {
|
|
20161
20169
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
20162
|
-
return
|
|
20170
|
+
return React.createElement(Form.Item, null, getFieldDecorator('unit', {
|
|
20163
20171
|
initialValue: editGood.unit,
|
|
20164
20172
|
rules: getReplenishRules('unit')
|
|
20165
|
-
})(
|
|
20173
|
+
})(React.createElement(AutoComplete$1, {
|
|
20166
20174
|
style: {
|
|
20167
20175
|
width: '100%'
|
|
20168
20176
|
},
|
|
@@ -20200,7 +20208,7 @@ var useColumns$1 = (function (form) {
|
|
|
20200
20208
|
}()
|
|
20201
20209
|
})));
|
|
20202
20210
|
} else {
|
|
20203
|
-
return
|
|
20211
|
+
return React.createElement("span", {
|
|
20204
20212
|
style: {
|
|
20205
20213
|
padding: '0 10px'
|
|
20206
20214
|
}
|
|
@@ -20208,7 +20216,7 @@ var useColumns$1 = (function (form) {
|
|
|
20208
20216
|
}
|
|
20209
20217
|
}
|
|
20210
20218
|
}, {
|
|
20211
|
-
title:
|
|
20219
|
+
title: React.createElement(TitleText$1, {
|
|
20212
20220
|
rules: (_columnsReplenish$qua = columnsReplenish['quantity']) === null || _columnsReplenish$qua === void 0 ? void 0 : _columnsReplenish$qua.rules
|
|
20213
20221
|
}, "\u6570\u91CF"),
|
|
20214
20222
|
dataIndex: 'quantity',
|
|
@@ -20217,7 +20225,7 @@ var useColumns$1 = (function (form) {
|
|
|
20217
20225
|
width: 149,
|
|
20218
20226
|
render: function render(value, record) {
|
|
20219
20227
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
20220
|
-
return
|
|
20228
|
+
return React.createElement(Form.Item, null, getFieldDecorator('quantity', {
|
|
20221
20229
|
initialValue: nonScientificNotation(editGood.quantity),
|
|
20222
20230
|
getValueFromEvent: onNumberValueChange,
|
|
20223
20231
|
rules: [].concat(_toConsumableArray(getReplenishRules('quantity')), [{
|
|
@@ -20263,7 +20271,7 @@ var useColumns$1 = (function (form) {
|
|
|
20263
20271
|
return validator;
|
|
20264
20272
|
}()
|
|
20265
20273
|
}])
|
|
20266
|
-
})(
|
|
20274
|
+
})(React.createElement(MyInput$2, {
|
|
20267
20275
|
style: {
|
|
20268
20276
|
textAlign: 'right'
|
|
20269
20277
|
},
|
|
@@ -20295,7 +20303,7 @@ var useColumns$1 = (function (form) {
|
|
|
20295
20303
|
}()
|
|
20296
20304
|
})));
|
|
20297
20305
|
} else {
|
|
20298
|
-
return
|
|
20306
|
+
return React.createElement("span", {
|
|
20299
20307
|
style: {
|
|
20300
20308
|
padding: '0 10px'
|
|
20301
20309
|
}
|
|
@@ -20303,7 +20311,7 @@ var useColumns$1 = (function (form) {
|
|
|
20303
20311
|
}
|
|
20304
20312
|
}
|
|
20305
20313
|
}, {
|
|
20306
|
-
title:
|
|
20314
|
+
title: React.createElement(TitleText$1, {
|
|
20307
20315
|
rules: (_columnsReplenish$pri = columnsReplenish['priceIncludeTax']) === null || _columnsReplenish$pri === void 0 ? void 0 : _columnsReplenish$pri.rules
|
|
20308
20316
|
}, "\u5355\u4EF7(\u542B\u7A0E)"),
|
|
20309
20317
|
dataIndex: 'priceIncludeTax',
|
|
@@ -20312,7 +20320,7 @@ var useColumns$1 = (function (form) {
|
|
|
20312
20320
|
width: 149,
|
|
20313
20321
|
render: function render(value, record) {
|
|
20314
20322
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
20315
|
-
return
|
|
20323
|
+
return React.createElement(Form.Item, null, getFieldDecorator('priceIncludeTax', {
|
|
20316
20324
|
initialValue: nonScientificNotation(editGood.priceIncludeTax),
|
|
20317
20325
|
getValueFromEvent: onNumberValueChange,
|
|
20318
20326
|
rules: [].concat(_toConsumableArray(getReplenishRules('priceIncludeTax')), [{
|
|
@@ -20358,7 +20366,7 @@ var useColumns$1 = (function (form) {
|
|
|
20358
20366
|
return validator;
|
|
20359
20367
|
}()
|
|
20360
20368
|
}])
|
|
20361
|
-
})(
|
|
20369
|
+
})(React.createElement(MyInput$2, {
|
|
20362
20370
|
style: {
|
|
20363
20371
|
textAlign: 'right'
|
|
20364
20372
|
},
|
|
@@ -20370,7 +20378,7 @@ var useColumns$1 = (function (form) {
|
|
|
20370
20378
|
}
|
|
20371
20379
|
})));
|
|
20372
20380
|
} else {
|
|
20373
|
-
return
|
|
20381
|
+
return React.createElement("span", {
|
|
20374
20382
|
style: {
|
|
20375
20383
|
padding: '0 10px'
|
|
20376
20384
|
}
|
|
@@ -20378,7 +20386,7 @@ var useColumns$1 = (function (form) {
|
|
|
20378
20386
|
}
|
|
20379
20387
|
}
|
|
20380
20388
|
}, {
|
|
20381
|
-
title:
|
|
20389
|
+
title: React.createElement(TitleText$1, {
|
|
20382
20390
|
rules: (_columnsReplenish$pri2 = columnsReplenish['priceExcludeTax']) === null || _columnsReplenish$pri2 === void 0 ? void 0 : _columnsReplenish$pri2.rules
|
|
20383
20391
|
}, "\u5355\u4EF7(\u4E0D\u542B\u7A0E)"),
|
|
20384
20392
|
dataIndex: 'priceExcludeTax',
|
|
@@ -20387,7 +20395,7 @@ var useColumns$1 = (function (form) {
|
|
|
20387
20395
|
width: 149,
|
|
20388
20396
|
render: function render(value, record) {
|
|
20389
20397
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
20390
|
-
return
|
|
20398
|
+
return React.createElement(Form.Item, null, getFieldDecorator('priceExcludeTax', {
|
|
20391
20399
|
initialValue: nonScientificNotation(editGood.priceExcludeTax),
|
|
20392
20400
|
getValueFromEvent: onNumberValueChange,
|
|
20393
20401
|
rules: [].concat(_toConsumableArray(getReplenishRules('priceExcludeTax')), [{
|
|
@@ -20433,7 +20441,7 @@ var useColumns$1 = (function (form) {
|
|
|
20433
20441
|
return validator;
|
|
20434
20442
|
}()
|
|
20435
20443
|
}])
|
|
20436
|
-
})(
|
|
20444
|
+
})(React.createElement(MyInput$2, {
|
|
20437
20445
|
style: {
|
|
20438
20446
|
textAlign: 'right'
|
|
20439
20447
|
},
|
|
@@ -20445,7 +20453,7 @@ var useColumns$1 = (function (form) {
|
|
|
20445
20453
|
}
|
|
20446
20454
|
})));
|
|
20447
20455
|
} else {
|
|
20448
|
-
return
|
|
20456
|
+
return React.createElement("span", {
|
|
20449
20457
|
style: {
|
|
20450
20458
|
padding: '0 10px'
|
|
20451
20459
|
}
|
|
@@ -20453,7 +20461,7 @@ var useColumns$1 = (function (form) {
|
|
|
20453
20461
|
}
|
|
20454
20462
|
}
|
|
20455
20463
|
}, {
|
|
20456
|
-
title:
|
|
20464
|
+
title: React.createElement(TitleText$1, {
|
|
20457
20465
|
required: true
|
|
20458
20466
|
}, "\u91D1\u989D(\u542B\u7A0E)"),
|
|
20459
20467
|
dataIndex: 'lineAmountIncludeTax',
|
|
@@ -20462,7 +20470,7 @@ var useColumns$1 = (function (form) {
|
|
|
20462
20470
|
align: 'right',
|
|
20463
20471
|
render: function render(value, record) {
|
|
20464
20472
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
20465
|
-
return
|
|
20473
|
+
return React.createElement(Form.Item, null, getFieldDecorator('lineAmountIncludeTax', {
|
|
20466
20474
|
initialValue: editGood.lineAmountIncludeTax,
|
|
20467
20475
|
getValueFromEvent: onNumberValueChange,
|
|
20468
20476
|
rules: [].concat(_toConsumableArray(getReplenishRules('lineAmountIncludeTax')), [{
|
|
@@ -20522,7 +20530,7 @@ var useColumns$1 = (function (form) {
|
|
|
20522
20530
|
return validator;
|
|
20523
20531
|
}()
|
|
20524
20532
|
}])
|
|
20525
|
-
})(
|
|
20533
|
+
})(React.createElement(MyInput$2, {
|
|
20526
20534
|
style: {
|
|
20527
20535
|
textAlign: 'right'
|
|
20528
20536
|
},
|
|
@@ -20533,7 +20541,7 @@ var useColumns$1 = (function (form) {
|
|
|
20533
20541
|
}
|
|
20534
20542
|
})));
|
|
20535
20543
|
} else {
|
|
20536
|
-
return
|
|
20544
|
+
return React.createElement("span", {
|
|
20537
20545
|
style: {
|
|
20538
20546
|
padding: '0 10px'
|
|
20539
20547
|
}
|
|
@@ -20541,7 +20549,7 @@ var useColumns$1 = (function (form) {
|
|
|
20541
20549
|
}
|
|
20542
20550
|
}
|
|
20543
20551
|
}, {
|
|
20544
|
-
title:
|
|
20552
|
+
title: React.createElement(TitleText$1, {
|
|
20545
20553
|
required: true
|
|
20546
20554
|
}, "\u91D1\u989D(\u4E0D\u542B\u7A0E)"),
|
|
20547
20555
|
dataIndex: 'lineAmountExcludeTax',
|
|
@@ -20550,7 +20558,7 @@ var useColumns$1 = (function (form) {
|
|
|
20550
20558
|
width: 119,
|
|
20551
20559
|
render: function render(value, record) {
|
|
20552
20560
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
20553
|
-
return
|
|
20561
|
+
return React.createElement(Form.Item, null, getFieldDecorator('lineAmountExcludeTax', {
|
|
20554
20562
|
initialValue: editGood.lineAmountExcludeTax,
|
|
20555
20563
|
getValueFromEvent: onNumberValueChange,
|
|
20556
20564
|
rules: [].concat(_toConsumableArray(getReplenishRules('lineAmountExcludeTax')), [{
|
|
@@ -20585,7 +20593,7 @@ var useColumns$1 = (function (form) {
|
|
|
20585
20593
|
return validator;
|
|
20586
20594
|
}()
|
|
20587
20595
|
}])
|
|
20588
|
-
})(
|
|
20596
|
+
})(React.createElement(MyInput$2, {
|
|
20589
20597
|
style: {
|
|
20590
20598
|
textAlign: 'right'
|
|
20591
20599
|
},
|
|
@@ -20596,7 +20604,7 @@ var useColumns$1 = (function (form) {
|
|
|
20596
20604
|
}
|
|
20597
20605
|
})));
|
|
20598
20606
|
} else {
|
|
20599
|
-
return
|
|
20607
|
+
return React.createElement("span", {
|
|
20600
20608
|
style: {
|
|
20601
20609
|
padding: '0 10px'
|
|
20602
20610
|
}
|
|
@@ -20604,7 +20612,7 @@ var useColumns$1 = (function (form) {
|
|
|
20604
20612
|
}
|
|
20605
20613
|
}
|
|
20606
20614
|
}, {
|
|
20607
|
-
title:
|
|
20615
|
+
title: React.createElement(TitleText$1, {
|
|
20608
20616
|
required: true
|
|
20609
20617
|
}, "\u7A0E\u7387"),
|
|
20610
20618
|
dataIndex: 'taxRate',
|
|
@@ -20613,7 +20621,7 @@ var useColumns$1 = (function (form) {
|
|
|
20613
20621
|
width: 70,
|
|
20614
20622
|
render: function render(value, record) {
|
|
20615
20623
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
20616
|
-
return
|
|
20624
|
+
return React.createElement(Form.Item, null, getFieldDecorator('taxRate', {
|
|
20617
20625
|
initialValue: editGood.taxRate,
|
|
20618
20626
|
rules: [].concat(_toConsumableArray(getReplenishRules('taxRate')), [{
|
|
20619
20627
|
required: true,
|
|
@@ -20622,7 +20630,7 @@ var useColumns$1 = (function (form) {
|
|
|
20622
20630
|
pattern: /^[+-]?(0|([1-9]\d*))(\.\d+)?$/,
|
|
20623
20631
|
message: ' '
|
|
20624
20632
|
}])
|
|
20625
|
-
})(
|
|
20633
|
+
})(React.createElement(Select$1, {
|
|
20626
20634
|
className: "kts-invoice-operate-goods-list-table-tax-rate",
|
|
20627
20635
|
// dropdownMenuStyle={{ textAlign: "right" }}
|
|
20628
20636
|
showArrow: false,
|
|
@@ -20634,13 +20642,13 @@ var useColumns$1 = (function (form) {
|
|
|
20634
20642
|
onChangeTaxRate$1(controller, form, record);
|
|
20635
20643
|
}
|
|
20636
20644
|
}, taxRateList.map(function (e, i) {
|
|
20637
|
-
return
|
|
20645
|
+
return React.createElement(Select$1.Option, {
|
|
20638
20646
|
key: i,
|
|
20639
20647
|
value: e
|
|
20640
20648
|
}, e, "%");
|
|
20641
20649
|
}))));
|
|
20642
20650
|
} else {
|
|
20643
|
-
return
|
|
20651
|
+
return React.createElement("span", {
|
|
20644
20652
|
style: {
|
|
20645
20653
|
padding: '0 10px'
|
|
20646
20654
|
}
|
|
@@ -20648,7 +20656,7 @@ var useColumns$1 = (function (form) {
|
|
|
20648
20656
|
}
|
|
20649
20657
|
}
|
|
20650
20658
|
}, {
|
|
20651
|
-
title:
|
|
20659
|
+
title: React.createElement(TitleText$1, {
|
|
20652
20660
|
rules: (_columnsReplenish$tax = columnsReplenish['taxAmount']) === null || _columnsReplenish$tax === void 0 ? void 0 : _columnsReplenish$tax.rules
|
|
20653
20661
|
}, "\u7A0E\u989D"),
|
|
20654
20662
|
dataIndex: 'taxAmount',
|
|
@@ -20660,11 +20668,11 @@ var useColumns$1 = (function (form) {
|
|
|
20660
20668
|
return getFieldDecorator('taxAmount', {
|
|
20661
20669
|
initialValue: editGood.taxAmount,
|
|
20662
20670
|
rules: getReplenishRules('taxAmount')
|
|
20663
|
-
})(
|
|
20671
|
+
})(React.createElement(MyDiv$2, {
|
|
20664
20672
|
loading: isCipher$1(changeField, 'taxAmount')
|
|
20665
20673
|
}));
|
|
20666
20674
|
} else {
|
|
20667
|
-
return
|
|
20675
|
+
return React.createElement("span", {
|
|
20668
20676
|
style: {
|
|
20669
20677
|
padding: '0 10px'
|
|
20670
20678
|
}
|
|
@@ -20731,13 +20739,13 @@ var MyInput$2 = /*#__PURE__*/function (_React$Component) {
|
|
|
20731
20739
|
key: "render",
|
|
20732
20740
|
value: function render() {
|
|
20733
20741
|
if (this.props.loading) {
|
|
20734
|
-
return
|
|
20742
|
+
return React.createElement(Spin$1, {
|
|
20735
20743
|
size: "small"
|
|
20736
|
-
},
|
|
20744
|
+
}, React.createElement(Input$1, _objectSpread2(_objectSpread2({}, this.props), {}, {
|
|
20737
20745
|
autoComplete: "off"
|
|
20738
20746
|
})));
|
|
20739
20747
|
} else {
|
|
20740
|
-
return
|
|
20748
|
+
return React.createElement(Input$1, _objectSpread2(_objectSpread2({}, this.props), {}, {
|
|
20741
20749
|
autoComplete: "off"
|
|
20742
20750
|
}));
|
|
20743
20751
|
}
|
|
@@ -20762,15 +20770,15 @@ var MyDiv$2 = /*#__PURE__*/function (_React$Component2) {
|
|
|
20762
20770
|
key: "render",
|
|
20763
20771
|
value: function render() {
|
|
20764
20772
|
if (this.props.loading) {
|
|
20765
|
-
return
|
|
20773
|
+
return React.createElement(Spin$1, {
|
|
20766
20774
|
size: "small"
|
|
20767
|
-
},
|
|
20775
|
+
}, React.createElement("span", {
|
|
20768
20776
|
style: {
|
|
20769
20777
|
padding: '0 10px'
|
|
20770
20778
|
}
|
|
20771
20779
|
}, this.props.value));
|
|
20772
20780
|
} else {
|
|
20773
|
-
return
|
|
20781
|
+
return React.createElement("span", {
|
|
20774
20782
|
style: {
|
|
20775
20783
|
padding: '0 10px'
|
|
20776
20784
|
}
|
|
@@ -20803,32 +20811,32 @@ var MyItemNameDiv$1 = /*#__PURE__*/function (_React$Component3) {
|
|
|
20803
20811
|
|
|
20804
20812
|
if (isMyShow) {
|
|
20805
20813
|
if (valueT) {
|
|
20806
|
-
return
|
|
20814
|
+
return React.createElement(Tooltip$1, {
|
|
20807
20815
|
title: valueT
|
|
20808
|
-
},
|
|
20816
|
+
}, React.createElement("span", {
|
|
20809
20817
|
style: _objectSpread2(_objectSpread2({}, MyItemNameStyle), {}, {
|
|
20810
20818
|
color: '#0074ff'
|
|
20811
20819
|
})
|
|
20812
20820
|
}, valueT));
|
|
20813
20821
|
} else {
|
|
20814
|
-
return
|
|
20822
|
+
return React.createElement(Tooltip$1, {
|
|
20815
20823
|
title: valueF
|
|
20816
|
-
},
|
|
20824
|
+
}, React.createElement("span", {
|
|
20817
20825
|
style: MyItemNameStyle
|
|
20818
20826
|
}, valueF));
|
|
20819
20827
|
}
|
|
20820
20828
|
} else {
|
|
20821
20829
|
if (valueF) {
|
|
20822
|
-
return
|
|
20830
|
+
return React.createElement(Tooltip$1, {
|
|
20823
20831
|
title: valueF
|
|
20824
|
-
},
|
|
20832
|
+
}, React.createElement("span", {
|
|
20825
20833
|
style: MyItemNameStyle
|
|
20826
20834
|
}, valueF));
|
|
20827
20835
|
} else {
|
|
20828
|
-
return
|
|
20836
|
+
return React.createElement(Tooltip$1, {
|
|
20829
20837
|
title: valueT,
|
|
20830
20838
|
style: MyItemNameStyle
|
|
20831
|
-
},
|
|
20839
|
+
}, React.createElement("span", {
|
|
20832
20840
|
style: _objectSpread2(_objectSpread2({}, MyItemNameStyle), {}, {
|
|
20833
20841
|
color: '#0074ff'
|
|
20834
20842
|
})
|
|
@@ -20850,7 +20858,7 @@ function formatSearch$1(value, search) {
|
|
|
20850
20858
|
return dcoding$1(e);
|
|
20851
20859
|
}).join("<span class=\"kts-invoice-operate-goods-list-table-search-protrude\" >".concat(search, "</span>"));
|
|
20852
20860
|
|
|
20853
|
-
return
|
|
20861
|
+
return React.createElement("span", {
|
|
20854
20862
|
dangerouslySetInnerHTML: {
|
|
20855
20863
|
__html: __html
|
|
20856
20864
|
}
|
|
@@ -21238,7 +21246,7 @@ var useRowSelection$1 = (function () {
|
|
|
21238
21246
|
};
|
|
21239
21247
|
}(), [controller]);
|
|
21240
21248
|
var columnTitle = React.useMemo(function () {
|
|
21241
|
-
return
|
|
21249
|
+
return React.createElement(Checkbox, {
|
|
21242
21250
|
onChange: onClickSelectAll,
|
|
21243
21251
|
indeterminate: indeterminate,
|
|
21244
21252
|
checked: isAll
|
|
@@ -21387,19 +21395,19 @@ var useDelRowButton$1 = (function () {
|
|
|
21387
21395
|
}, _callee2);
|
|
21388
21396
|
})), []);
|
|
21389
21397
|
var menuItem = React.useMemo(function () {
|
|
21390
|
-
if (model === 'prefab') return
|
|
21391
|
-
if (model === 'readOnly') return
|
|
21392
|
-
return
|
|
21398
|
+
if (model === 'prefab') return React.createElement(React.Fragment, null);
|
|
21399
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
21400
|
+
return React.createElement(Menu$1.Item, {
|
|
21393
21401
|
key: "1",
|
|
21394
21402
|
onClick: onClick,
|
|
21395
21403
|
disabled: disabled
|
|
21396
21404
|
}, " \u5220\u9664\u884C ");
|
|
21397
21405
|
}, [model, onClick, disabled]);
|
|
21398
21406
|
var button = React.useMemo(function () {
|
|
21399
|
-
if (isRemRow === false) return
|
|
21400
|
-
if (model === 'prefab') return
|
|
21401
|
-
if (model === 'readOnly') return
|
|
21402
|
-
return
|
|
21407
|
+
if (isRemRow === false) return React.createElement(React.Fragment, null);
|
|
21408
|
+
if (model === 'prefab') return React.createElement(React.Fragment, null);
|
|
21409
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
21410
|
+
return React.createElement(Button$1, {
|
|
21403
21411
|
size: 'small',
|
|
21404
21412
|
onClick: onClick,
|
|
21405
21413
|
disabled: disabled
|
|
@@ -21630,16 +21638,16 @@ var useAddDiscountRowButton$1 = (function () {
|
|
|
21630
21638
|
}, [isAddDiscount, model]);
|
|
21631
21639
|
var button = React.useMemo(function () {
|
|
21632
21640
|
if (isEnable) {
|
|
21633
|
-
return
|
|
21641
|
+
return React.createElement(React.Fragment, null, React.createElement(Button$1, {
|
|
21634
21642
|
size: 'small',
|
|
21635
21643
|
onClick: onOpen,
|
|
21636
21644
|
disabled: disabled
|
|
21637
|
-
}, "\u6DFB\u52A0\u6298\u6263"),
|
|
21645
|
+
}, "\u6DFB\u52A0\u6298\u6263"), React.createElement(AddDiscountRowDrawer, {
|
|
21638
21646
|
open: open,
|
|
21639
21647
|
onClose: onClose
|
|
21640
21648
|
}));
|
|
21641
21649
|
} else {
|
|
21642
|
-
return
|
|
21650
|
+
return React.createElement(React.Fragment, null);
|
|
21643
21651
|
}
|
|
21644
21652
|
}, [open, onOpen, onClose, isEnable, disabled]);
|
|
21645
21653
|
return {
|
|
@@ -21820,35 +21828,35 @@ function AddDiscountRowDrawer(props) {
|
|
|
21820
21828
|
discolineValue: undefined
|
|
21821
21829
|
}));
|
|
21822
21830
|
}, [formValues === null || formValues === void 0 ? void 0 : formValues.discolineType]);
|
|
21823
|
-
return
|
|
21831
|
+
return React.createElement(Drawer$1, {
|
|
21824
21832
|
title: "\u6DFB\u52A0\u6298\u6263",
|
|
21825
21833
|
placement: "right",
|
|
21826
21834
|
width: 350,
|
|
21827
21835
|
onClose: onClose,
|
|
21828
21836
|
open: open,
|
|
21829
|
-
footer:
|
|
21837
|
+
footer: React.createElement(Space, {
|
|
21830
21838
|
size: "middle",
|
|
21831
21839
|
style: {
|
|
21832
21840
|
display: 'flex',
|
|
21833
21841
|
justifyContent: 'end'
|
|
21834
21842
|
}
|
|
21835
|
-
},
|
|
21843
|
+
}, React.createElement(Button$1, {
|
|
21836
21844
|
onClick: onDefine,
|
|
21837
21845
|
type: 'primary'
|
|
21838
|
-
}, "\u786E\u5B9A"),
|
|
21846
|
+
}, "\u786E\u5B9A"), React.createElement(Button$1, {
|
|
21839
21847
|
onClick: onClose
|
|
21840
21848
|
}, "\u53D6\u6D88"))
|
|
21841
|
-
},
|
|
21849
|
+
}, React.createElement(Form$1, {
|
|
21842
21850
|
form: form,
|
|
21843
21851
|
layout: 'vertical',
|
|
21844
21852
|
onChange: onChangeForm
|
|
21845
|
-
},
|
|
21853
|
+
}, React.createElement(Form$1.Item, {
|
|
21846
21854
|
label: "\u5546\u54C1\u91D1\u989D\uFF08\u542B\u7A0E\uFF09"
|
|
21847
|
-
}, totalAmount.toFixed(2), "\uFF08\u5171 ", discountGood.length, " \u884C\uFF09"),
|
|
21855
|
+
}, totalAmount.toFixed(2), "\uFF08\u5171 ", discountGood.length, " \u884C\uFF09"), React.createElement(Form$1.Item, {
|
|
21848
21856
|
label: "\u6298\u6263\u65B9\u5F0F",
|
|
21849
21857
|
name: 'discolineType',
|
|
21850
21858
|
initialValue: '1'
|
|
21851
|
-
},
|
|
21859
|
+
}, React.createElement(Radio.Group, {
|
|
21852
21860
|
options: [{
|
|
21853
21861
|
label: '按金额折扣',
|
|
21854
21862
|
value: '1'
|
|
@@ -21856,7 +21864,7 @@ function AddDiscountRowDrawer(props) {
|
|
|
21856
21864
|
label: '按比例折扣',
|
|
21857
21865
|
value: '2'
|
|
21858
21866
|
}]
|
|
21859
|
-
})), (formValues === null || formValues === void 0 ? void 0 : formValues.discolineType) === '1' ?
|
|
21867
|
+
})), (formValues === null || formValues === void 0 ? void 0 : formValues.discolineType) === '1' ? React.createElement(Form$1.Item, {
|
|
21860
21868
|
label: "\u6298\u6263\u91D1\u989D\uFF08\u5143\uFF09\uFF08\u542B\u7A0E\uFF09",
|
|
21861
21869
|
name: 'discolineValue',
|
|
21862
21870
|
rules: [{
|
|
@@ -21907,11 +21915,11 @@ function AddDiscountRowDrawer(props) {
|
|
|
21907
21915
|
return validator;
|
|
21908
21916
|
}()
|
|
21909
21917
|
}]
|
|
21910
|
-
},
|
|
21918
|
+
}, React.createElement(InputNumber, {
|
|
21911
21919
|
style: {
|
|
21912
21920
|
width: '100%'
|
|
21913
21921
|
}
|
|
21914
|
-
})) :
|
|
21922
|
+
})) : React.createElement(Form$1.Item, {
|
|
21915
21923
|
label: "\u6298\u6263\u6BD4\u4F8B\uFF08%\uFF09\uFF08\u542B\u7A0E\uFF09",
|
|
21916
21924
|
name: 'discolineValue',
|
|
21917
21925
|
rules: [{
|
|
@@ -21962,7 +21970,7 @@ function AddDiscountRowDrawer(props) {
|
|
|
21962
21970
|
return validator;
|
|
21963
21971
|
}()
|
|
21964
21972
|
}]
|
|
21965
|
-
},
|
|
21973
|
+
}, React.createElement(InputNumber, {
|
|
21966
21974
|
style: {
|
|
21967
21975
|
width: '100%'
|
|
21968
21976
|
}
|
|
@@ -22106,16 +22114,16 @@ var useEndowCodeButton$1 = (function () {
|
|
|
22106
22114
|
}, _callee2);
|
|
22107
22115
|
})), [controller]);
|
|
22108
22116
|
var menuItem = React.useMemo(function () {
|
|
22109
|
-
if (model === 'readOnly') return
|
|
22110
|
-
return
|
|
22117
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
22118
|
+
return React.createElement(Menu$1.Item, {
|
|
22111
22119
|
key: "2",
|
|
22112
22120
|
onClick: onClick,
|
|
22113
22121
|
disabled: disabled
|
|
22114
22122
|
}, "\u6279\u91CF\u8D4B\u7801");
|
|
22115
22123
|
}, [onClick, disabled, model]);
|
|
22116
22124
|
var button = React.useMemo(function () {
|
|
22117
|
-
if (model === 'readOnly') return
|
|
22118
|
-
return
|
|
22125
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
22126
|
+
return React.createElement(Button$1, {
|
|
22119
22127
|
onClick: onClick,
|
|
22120
22128
|
disabled: disabled,
|
|
22121
22129
|
size: 'small'
|
|
@@ -22177,14 +22185,14 @@ var useEmptyRefill = (function () {
|
|
|
22177
22185
|
}());
|
|
22178
22186
|
}, [controller]);
|
|
22179
22187
|
var button = React.useMemo(function () {
|
|
22180
|
-
if (model === 'readOnly') return
|
|
22181
|
-
if (model === 'prefab') return
|
|
22182
|
-
return
|
|
22188
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
22189
|
+
if (model === 'prefab') return React.createElement(React.Fragment, null);
|
|
22190
|
+
return React.createElement(Popconfirm, {
|
|
22183
22191
|
title: "\u5C06\u8981\u6E05\u7A7A\u6240\u6709\u9879\u76EE\u4FE1\u606F\uFF0C\u662F\u5426\u7EE7\u7EED",
|
|
22184
22192
|
onConfirm: confirm,
|
|
22185
22193
|
okText: "\u786E\u5B9A",
|
|
22186
22194
|
cancelText: "\u53D6\u6D88"
|
|
22187
|
-
},
|
|
22195
|
+
}, React.createElement(Button$1, {
|
|
22188
22196
|
size: 'small'
|
|
22189
22197
|
}, "\u6E05\u7A7A\u91CD\u586B"));
|
|
22190
22198
|
}, [model, confirm]);
|
|
@@ -22251,14 +22259,14 @@ function InvoiceTypeModal(props) {
|
|
|
22251
22259
|
setValues(values);
|
|
22252
22260
|
}
|
|
22253
22261
|
}, [props.open, props.defaultBillingType, props.defaultBusiness, props.defaultInvoiceType, form]);
|
|
22254
|
-
return
|
|
22262
|
+
return React.createElement(Modal, {
|
|
22255
22263
|
title: props.modalTitle || "选择开具信息",
|
|
22256
22264
|
open: props.open,
|
|
22257
22265
|
onOk: onConfirm,
|
|
22258
22266
|
onCancel: props.onCancel,
|
|
22259
22267
|
okText: "\u786E\u5B9A",
|
|
22260
22268
|
cancelText: "\u53D6\u6D88"
|
|
22261
|
-
},
|
|
22269
|
+
}, React.createElement(Form$1, {
|
|
22262
22270
|
form: form,
|
|
22263
22271
|
layout: "vertical",
|
|
22264
22272
|
style: {
|
|
@@ -22267,13 +22275,13 @@ function InvoiceTypeModal(props) {
|
|
|
22267
22275
|
onValuesChange: function onValuesChange(_, e) {
|
|
22268
22276
|
setValues(e);
|
|
22269
22277
|
}
|
|
22270
|
-
},
|
|
22278
|
+
}, React.createElement(Row, {
|
|
22271
22279
|
gutter: [16, 16]
|
|
22272
|
-
},
|
|
22280
|
+
}, React.createElement(Col, {
|
|
22273
22281
|
span: 24
|
|
22274
|
-
},
|
|
22282
|
+
}, React.createElement(Form$1.Item, {
|
|
22275
22283
|
name: 'billingType'
|
|
22276
|
-
},
|
|
22284
|
+
}, React.createElement(Radio.Group, {
|
|
22277
22285
|
size: 'large',
|
|
22278
22286
|
className: "goods-list-digtal-reselect-invoice-typeModal-radio",
|
|
22279
22287
|
optionType: "button",
|
|
@@ -22286,27 +22294,27 @@ function InvoiceTypeModal(props) {
|
|
|
22286
22294
|
label: '税控发票',
|
|
22287
22295
|
value: 'taxation'
|
|
22288
22296
|
}]
|
|
22289
|
-
}))),
|
|
22297
|
+
}))), React.createElement(Col, {
|
|
22290
22298
|
span: 12
|
|
22291
|
-
},
|
|
22299
|
+
}, React.createElement(Form$1.Item, {
|
|
22292
22300
|
name: 'invoiceType',
|
|
22293
22301
|
label: "\u9009\u62E9\u7968\u7C7B",
|
|
22294
22302
|
rules: [{
|
|
22295
22303
|
required: true,
|
|
22296
22304
|
message: '选择票类必填'
|
|
22297
22305
|
}]
|
|
22298
|
-
},
|
|
22306
|
+
}, React.createElement(Select$1, {
|
|
22299
22307
|
size: 'large',
|
|
22300
22308
|
allowClear: true,
|
|
22301
22309
|
placeholder: "\u8BF7\u9009\u62E9\uFF08\u5FC5\u586B\u9879\uFF09",
|
|
22302
22310
|
disabled: disableds.indexOf('invoiceType') >= 0,
|
|
22303
22311
|
options: props.invoiceTypeOptions
|
|
22304
|
-
}))),
|
|
22312
|
+
}))), React.createElement(Col, {
|
|
22305
22313
|
span: 12
|
|
22306
|
-
},
|
|
22314
|
+
}, React.createElement(Form$1.Item, {
|
|
22307
22315
|
name: 'business',
|
|
22308
22316
|
label: "\u7279\u5B9A\u4E1A\u52A1"
|
|
22309
|
-
},
|
|
22317
|
+
}, React.createElement(Select$1, {
|
|
22310
22318
|
size: 'large',
|
|
22311
22319
|
allowClear: true,
|
|
22312
22320
|
placeholder: "\u8BF7\u9009\u62E9\uFF08\u975E\u5FC5\u586B\u9879\uFF09",
|
|
@@ -22351,11 +22359,11 @@ var useReselectInvoiceType = (function () {
|
|
|
22351
22359
|
return true;
|
|
22352
22360
|
}, [model, typeModalProps === null || typeModalProps === void 0 ? void 0 : typeModalProps.isDisabled]);
|
|
22353
22361
|
var button = React.useMemo(function () {
|
|
22354
|
-
if (isEnable === false) return
|
|
22355
|
-
return
|
|
22362
|
+
if (isEnable === false) return React.createElement(React.Fragment, null);
|
|
22363
|
+
return React.createElement(React.Fragment, null, React.createElement(Button$1, {
|
|
22356
22364
|
size: 'small',
|
|
22357
22365
|
onClick: onOpen
|
|
22358
|
-
}, "\u91CD\u9009\u53D1\u7968\u7C7B\u578B"),
|
|
22366
|
+
}, "\u91CD\u9009\u53D1\u7968\u7C7B\u578B"), React.createElement(InvoiceTypeModal, _objectSpread2(_objectSpread2({}, typeModalProps), {}, {
|
|
22359
22367
|
open: open,
|
|
22360
22368
|
onCancel: onClose,
|
|
22361
22369
|
onOk: onOk
|
|
@@ -22383,7 +22391,7 @@ var GoodsList$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
22383
22391
|
_createClass(GoodsList, [{
|
|
22384
22392
|
key: "render",
|
|
22385
22393
|
value: function render() {
|
|
22386
|
-
return
|
|
22394
|
+
return React.createElement(Main$3, _objectSpread2({}, this.props));
|
|
22387
22395
|
}
|
|
22388
22396
|
}]);
|
|
22389
22397
|
|
|
@@ -22584,20 +22592,20 @@ var Main$3 = decorator(Form.create())(function (props) {
|
|
|
22584
22592
|
};
|
|
22585
22593
|
}())();
|
|
22586
22594
|
}, [controller, props.isSwitchTax]);
|
|
22587
|
-
return
|
|
22595
|
+
return React.createElement("div", {
|
|
22588
22596
|
className: "kts-invoice-operate-goods-list-digtal",
|
|
22589
22597
|
onClick: function onClick(e) {
|
|
22590
22598
|
e.stopPropagation();
|
|
22591
22599
|
}
|
|
22592
|
-
},
|
|
22600
|
+
}, React.createElement("div", {
|
|
22593
22601
|
className: "kts-invoice-operate-goods-list-able"
|
|
22594
|
-
},
|
|
22602
|
+
}, React.createElement(AddRowButton$1, null), delRowButton.button, addDiscountRowButton.button, endowCodeButton.button, React.createElement(TaxIncludedSwitch$1, null), React.createElement(Search$1, null), React.createElement("div", {
|
|
22595
22603
|
style: {
|
|
22596
22604
|
flex: 1
|
|
22597
22605
|
}
|
|
22598
|
-
}), props.menuExpansion, reselectInvoiceType.button, emptyRefill.button),
|
|
22606
|
+
}), props.menuExpansion, reselectInvoiceType.button, emptyRefill.button), React.createElement("div", {
|
|
22599
22607
|
className: classNames('kts-invoice-operate-goods-list-table-digtal')
|
|
22600
|
-
},
|
|
22608
|
+
}, React.createElement(TableVirtual$1, {
|
|
22601
22609
|
size: "small",
|
|
22602
22610
|
rowKey: "$index",
|
|
22603
22611
|
pagination: false,
|
|
@@ -22619,7 +22627,7 @@ var Main$3 = decorator(Form.create())(function (props) {
|
|
|
22619
22627
|
}
|
|
22620
22628
|
};
|
|
22621
22629
|
}
|
|
22622
|
-
})),
|
|
22630
|
+
})), React.createElement("div", null, React.createElement(Statistics$1, null)));
|
|
22623
22631
|
});
|
|
22624
22632
|
|
|
22625
22633
|
var ImportBuyerDrawer = (function () {
|
|
@@ -22653,7 +22661,7 @@ var ImportBuyerDrawer = (function () {
|
|
|
22653
22661
|
};
|
|
22654
22662
|
}())();
|
|
22655
22663
|
}, [controller]);
|
|
22656
|
-
return
|
|
22664
|
+
return React.createElement(Drawer, {
|
|
22657
22665
|
title: "\u8D2D\u65B9\u5217\u8868",
|
|
22658
22666
|
placement: "right",
|
|
22659
22667
|
// closable={false}
|
|
@@ -22661,7 +22669,7 @@ var ImportBuyerDrawer = (function () {
|
|
|
22661
22669
|
width: 983,
|
|
22662
22670
|
onClose: onClose,
|
|
22663
22671
|
visible: visible
|
|
22664
|
-
}, topExpand,
|
|
22672
|
+
}, topExpand, React.createElement(DrawerBody$1, null));
|
|
22665
22673
|
});
|
|
22666
22674
|
|
|
22667
22675
|
var DrawerBody$1 = function DrawerBody() {
|
|
@@ -22682,7 +22690,7 @@ var DrawerBody$1 = function DrawerBody() {
|
|
|
22682
22690
|
}
|
|
22683
22691
|
});
|
|
22684
22692
|
}, [controller]);
|
|
22685
|
-
return
|
|
22693
|
+
return React.createElement(Table$1, {
|
|
22686
22694
|
bordered: true,
|
|
22687
22695
|
size: "small",
|
|
22688
22696
|
columns: columns,
|
|
@@ -22782,7 +22790,7 @@ var ImportGoodsDrawer = (function () {
|
|
|
22782
22790
|
};
|
|
22783
22791
|
}())();
|
|
22784
22792
|
}, [controller]);
|
|
22785
|
-
return
|
|
22793
|
+
return React.createElement(Drawer, {
|
|
22786
22794
|
title: "\u5546\u54C1\u5217\u8868",
|
|
22787
22795
|
placement: "right",
|
|
22788
22796
|
// closable={false}
|
|
@@ -22790,11 +22798,11 @@ var ImportGoodsDrawer = (function () {
|
|
|
22790
22798
|
width: 983,
|
|
22791
22799
|
onClose: onClose,
|
|
22792
22800
|
visible: visible
|
|
22793
|
-
}, topExpand &&
|
|
22801
|
+
}, topExpand && React.createElement("div", {
|
|
22794
22802
|
style: {
|
|
22795
22803
|
marginBottom: 10
|
|
22796
22804
|
}
|
|
22797
|
-
}, topExpand),
|
|
22805
|
+
}, topExpand), React.createElement(DrawerBody$2, null));
|
|
22798
22806
|
});
|
|
22799
22807
|
|
|
22800
22808
|
var DrawerBody$2 = function DrawerBody() {
|
|
@@ -22816,7 +22824,7 @@ var DrawerBody$2 = function DrawerBody() {
|
|
|
22816
22824
|
}
|
|
22817
22825
|
});
|
|
22818
22826
|
}, [controller]);
|
|
22819
|
-
return
|
|
22827
|
+
return React.createElement(Table$1, {
|
|
22820
22828
|
bordered: true,
|
|
22821
22829
|
size: "small",
|
|
22822
22830
|
columns: columns,
|
|
@@ -23103,7 +23111,7 @@ var EndowCodeDrawer = (function () {
|
|
|
23103
23111
|
setDefaultValue(undefined);
|
|
23104
23112
|
}
|
|
23105
23113
|
}, [visible]);
|
|
23106
|
-
return
|
|
23114
|
+
return React.createElement(Drawer, {
|
|
23107
23115
|
title: "\u8D4B\u7801",
|
|
23108
23116
|
placement: "right",
|
|
23109
23117
|
destroyOnClose: true,
|
|
@@ -23111,7 +23119,7 @@ var EndowCodeDrawer = (function () {
|
|
|
23111
23119
|
width: 383,
|
|
23112
23120
|
onClose: onClose,
|
|
23113
23121
|
visible: visible
|
|
23114
|
-
}, defaultValue &&
|
|
23122
|
+
}, defaultValue && React.createElement(DrawerBody$3, {
|
|
23115
23123
|
defaultValue: defaultValue
|
|
23116
23124
|
}));
|
|
23117
23125
|
});
|
|
@@ -23251,7 +23259,7 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23251
23259
|
};
|
|
23252
23260
|
}());
|
|
23253
23261
|
}, [actions, dataSource, readOnlyTaxRate]);
|
|
23254
|
-
return
|
|
23262
|
+
return React.createElement(Select, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
23255
23263
|
showSearch: true,
|
|
23256
23264
|
showArrow: false,
|
|
23257
23265
|
notFoundContent: null,
|
|
@@ -23259,7 +23267,7 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23259
23267
|
onSearch: onSearch,
|
|
23260
23268
|
onChange: onChange
|
|
23261
23269
|
}), dataSource.map(function (e) {
|
|
23262
|
-
return
|
|
23270
|
+
return React.createElement(Select.Option, {
|
|
23263
23271
|
key: e.value,
|
|
23264
23272
|
value: e.value
|
|
23265
23273
|
}, e.label);
|
|
@@ -23289,14 +23297,14 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23289
23297
|
|
|
23290
23298
|
|
|
23291
23299
|
var createTreeNode = React.useCallback(function () {
|
|
23292
|
-
if (!list) return
|
|
23300
|
+
if (!list) return React.createElement(React.Fragment, null);
|
|
23293
23301
|
return ctn(list);
|
|
23294
23302
|
|
|
23295
23303
|
function title(label) {
|
|
23296
23304
|
if (!filter) return label;
|
|
23297
23305
|
label = (filter.taxCategoryCode ? label.split(new RegExp(filter.taxCategoryCode, 'g')) : [label]).join("<span style=\"color: #1890ff;\">".concat(filter.taxCategoryCode, "</span>"));
|
|
23298
23306
|
label = (filter.val ? label.split(new RegExp(filter.val, 'g')) : [label]).join("<span style=\"color: #1890ff;\">".concat(filter.val, "</span>"));
|
|
23299
|
-
return
|
|
23307
|
+
return React.createElement("span", {
|
|
23300
23308
|
dangerouslySetInnerHTML: {
|
|
23301
23309
|
__html: label
|
|
23302
23310
|
}
|
|
@@ -23305,11 +23313,11 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23305
23313
|
|
|
23306
23314
|
function ctn(l) {
|
|
23307
23315
|
var p = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '0';
|
|
23308
|
-
if (!l || !l.length) return [
|
|
23316
|
+
if (!l || !l.length) return [React.createElement(React.Fragment, null)];
|
|
23309
23317
|
return l.filter(function (e) {
|
|
23310
23318
|
return e.pid === p;
|
|
23311
23319
|
}).map(function (e) {
|
|
23312
|
-
return
|
|
23320
|
+
return React.createElement(TreeNode, {
|
|
23313
23321
|
title: title(e.label),
|
|
23314
23322
|
key: e.id
|
|
23315
23323
|
}, ctn(l, e.id));
|
|
@@ -23422,46 +23430,46 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23422
23430
|
setList([]);
|
|
23423
23431
|
}
|
|
23424
23432
|
}, [visible]);
|
|
23425
|
-
return
|
|
23433
|
+
return React.createElement(React.Fragment, null, React.createElement(Input, {
|
|
23426
23434
|
readOnly: true,
|
|
23427
23435
|
value: props.value,
|
|
23428
|
-
addonAfter:
|
|
23436
|
+
addonAfter: React.createElement(Button, {
|
|
23429
23437
|
size: "small",
|
|
23430
23438
|
type: "link",
|
|
23431
23439
|
onClick: function onClick() {
|
|
23432
23440
|
setVisible(true);
|
|
23433
23441
|
}
|
|
23434
23442
|
}, "\u70B9\u51FB\u9009\u62E9")
|
|
23435
|
-
}),
|
|
23443
|
+
}), React.createElement(Drawer, {
|
|
23436
23444
|
title: "\u7A0E\u6536\u5206\u7C7B\u7F16\u7801",
|
|
23437
23445
|
visible: visible,
|
|
23438
23446
|
width: 500,
|
|
23439
23447
|
onClose: function onClose() {
|
|
23440
23448
|
setVisible(false);
|
|
23441
23449
|
}
|
|
23442
|
-
},
|
|
23450
|
+
}, React.createElement(Form, {
|
|
23443
23451
|
key: "".concat(visible)
|
|
23444
|
-
},
|
|
23452
|
+
}, React.createElement(Form.Item, {
|
|
23445
23453
|
label: "\u4EA7\u54C1\u6216\u670D\u52A1\u7B80\u79F0"
|
|
23446
|
-
},
|
|
23454
|
+
}, React.createElement(Input, {
|
|
23447
23455
|
onChange: function onChange(e) {
|
|
23448
23456
|
setFilter(_objectSpread2(_objectSpread2({}, filter), {}, {
|
|
23449
23457
|
val: e.target.value
|
|
23450
23458
|
}));
|
|
23451
23459
|
}
|
|
23452
|
-
})),
|
|
23460
|
+
})), React.createElement(Form.Item, {
|
|
23453
23461
|
label: "\u7A0E\u6536\u5206\u7C7B\u7F16\u7801"
|
|
23454
|
-
},
|
|
23462
|
+
}, React.createElement(Input, {
|
|
23455
23463
|
onChange: function onChange(e) {
|
|
23456
23464
|
setFilter(_objectSpread2(_objectSpread2({}, filter), {}, {
|
|
23457
23465
|
taxCategoryCode: e.target.value
|
|
23458
23466
|
}));
|
|
23459
23467
|
}
|
|
23460
|
-
}))), list && list.length > 0 ?
|
|
23468
|
+
}))), list && list.length > 0 ? React.createElement(Tree, {
|
|
23461
23469
|
defaultExpandAll: true,
|
|
23462
23470
|
selectedKeys: [],
|
|
23463
23471
|
onSelect: onSelect
|
|
23464
|
-
}, createTreeNode()) :
|
|
23472
|
+
}, createTreeNode()) : React.createElement("span", {
|
|
23465
23473
|
style: {
|
|
23466
23474
|
color: '#00000073'
|
|
23467
23475
|
}
|
|
@@ -23667,11 +23675,11 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23667
23675
|
return data;
|
|
23668
23676
|
};
|
|
23669
23677
|
|
|
23670
|
-
return
|
|
23678
|
+
return React.createElement(React.Fragment, null, React.createElement(Input, {
|
|
23671
23679
|
readOnly: true,
|
|
23672
23680
|
onClick: onClick,
|
|
23673
23681
|
value: props.value
|
|
23674
|
-
}),
|
|
23682
|
+
}), React.createElement(TaxClassificationModal, {
|
|
23675
23683
|
list: list,
|
|
23676
23684
|
open: open,
|
|
23677
23685
|
onSelect: onSelect,
|
|
@@ -23790,14 +23798,14 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23790
23798
|
React.useEffect(function () {
|
|
23791
23799
|
if (controller.getTaxCategoryCodeList) controller.getTaxCategoryCodeList();
|
|
23792
23800
|
}, [controller]);
|
|
23793
|
-
return
|
|
23801
|
+
return React.createElement(SchemaForm, {
|
|
23794
23802
|
actions: actions,
|
|
23795
23803
|
previewPlaceholder: " ",
|
|
23796
23804
|
components: _objectSpread2(_objectSpread2({}, components), {}, {
|
|
23797
23805
|
showSearch: !!controller.state.goodsListState.endowCode.onLoadTaxClassificationCode ? ShowSearch3 : ShowSearch
|
|
23798
23806
|
}),
|
|
23799
23807
|
effects: effects
|
|
23800
|
-
},
|
|
23808
|
+
}, React.createElement(FormButtonGroup, null, React.createElement(SchemaMarkupField, {
|
|
23801
23809
|
name: "taxClassificationCode",
|
|
23802
23810
|
type: "showSearch",
|
|
23803
23811
|
title: "\u7A0E\u6536\u5206\u7C7B\u7F16\u7801",
|
|
@@ -23807,13 +23815,13 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23807
23815
|
message: '请选择税收分类编码',
|
|
23808
23816
|
required: true
|
|
23809
23817
|
}]
|
|
23810
|
-
}),
|
|
23818
|
+
}), React.createElement(SchemaMarkupField, {
|
|
23811
23819
|
name: "shorthand",
|
|
23812
23820
|
type: "string",
|
|
23813
23821
|
readOnly: true,
|
|
23814
23822
|
default: defaultValue === null || defaultValue === void 0 ? void 0 : defaultValue.shorthand,
|
|
23815
23823
|
title: "\u5546\u54C1\u548C\u670D\u52A1\u5206\u7C7B\u7B80\u79F0"
|
|
23816
|
-
}),
|
|
23824
|
+
}), React.createElement(SchemaMarkupField, {
|
|
23817
23825
|
name: "taxRate",
|
|
23818
23826
|
type: "string",
|
|
23819
23827
|
title: "\u7A0E\u7387",
|
|
@@ -23826,7 +23834,7 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23826
23834
|
message: '请选择税率',
|
|
23827
23835
|
required: true
|
|
23828
23836
|
}]
|
|
23829
|
-
}), taxRate === 0 && isTaxFreeTypeNeeded &&
|
|
23837
|
+
}), taxRate === 0 && isTaxFreeTypeNeeded && React.createElement(SchemaMarkupField, {
|
|
23830
23838
|
name: "taxFreeType",
|
|
23831
23839
|
type: "string",
|
|
23832
23840
|
title: "\u514D\u7A0E\u7C7B\u578B",
|
|
@@ -23839,7 +23847,7 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23839
23847
|
message: '请选择免税类型',
|
|
23840
23848
|
required: true
|
|
23841
23849
|
}]
|
|
23842
|
-
}),
|
|
23850
|
+
}), React.createElement(SchemaMarkupField, {
|
|
23843
23851
|
name: "favouredPolicyMark",
|
|
23844
23852
|
type: "number",
|
|
23845
23853
|
title: "\u662F\u5426\u4EAB\u53D7\u4F18\u60E0\u653F\u7B56",
|
|
@@ -23858,7 +23866,7 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23858
23866
|
message: '请选择是否享受优惠政策',
|
|
23859
23867
|
required: true
|
|
23860
23868
|
}]
|
|
23861
|
-
}), favouredPolicyMark === 1 &&
|
|
23869
|
+
}), favouredPolicyMark === 1 && React.createElement(SchemaMarkupField, {
|
|
23862
23870
|
name: "favouredPolicyName",
|
|
23863
23871
|
type: "string",
|
|
23864
23872
|
title: "\u4F18\u60E0\u653F\u7B56\u7C7B\u578B",
|
|
@@ -23871,14 +23879,14 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23871
23879
|
message: '请选择是否享受优惠政策',
|
|
23872
23880
|
required: true
|
|
23873
23881
|
}]
|
|
23874
|
-
})),
|
|
23882
|
+
})), React.createElement("span", {
|
|
23875
23883
|
className: "kts-invoice-operate-goods-endow-code-button-list"
|
|
23876
|
-
},
|
|
23884
|
+
}, React.createElement(Button, {
|
|
23877
23885
|
onClick: function onClick() {
|
|
23878
23886
|
actions.submit(onSubmit);
|
|
23879
23887
|
},
|
|
23880
23888
|
type: "primary"
|
|
23881
|
-
}, "\u786E\u5B9A"),
|
|
23889
|
+
}, "\u786E\u5B9A"), React.createElement(Button, {
|
|
23882
23890
|
onClick: function onClick() {
|
|
23883
23891
|
controller.pipeline( /*#__PURE__*/function () {
|
|
23884
23892
|
var _ref17 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee17(s) {
|
|
@@ -24038,53 +24046,53 @@ function AddComparisonDrawer() {
|
|
|
24038
24046
|
}));
|
|
24039
24047
|
}
|
|
24040
24048
|
}, [good]);
|
|
24041
|
-
return
|
|
24049
|
+
return React.createElement(Drawer$1, {
|
|
24042
24050
|
width: 500,
|
|
24043
24051
|
onClose: onClose,
|
|
24044
24052
|
placement: "right",
|
|
24045
24053
|
title: "\u5546\u54C1\u6620\u5C04",
|
|
24046
24054
|
visible: !!good,
|
|
24047
|
-
footer:
|
|
24055
|
+
footer: React.createElement("div", {
|
|
24048
24056
|
style: {
|
|
24049
24057
|
display: 'flex',
|
|
24050
24058
|
justifyContent: 'flex-end',
|
|
24051
24059
|
gap: 10
|
|
24052
24060
|
}
|
|
24053
|
-
},
|
|
24061
|
+
}, React.createElement(Button, {
|
|
24054
24062
|
type: "primary",
|
|
24055
24063
|
onClick: onSubmit
|
|
24056
|
-
}, "\u63D0\u4EA4"),
|
|
24064
|
+
}, "\u63D0\u4EA4"), React.createElement(Button, {
|
|
24057
24065
|
onClick: onClose
|
|
24058
24066
|
}, "\u53D6\u6D88"))
|
|
24059
|
-
}, !!good &&
|
|
24067
|
+
}, !!good && React.createElement(Form$1, {
|
|
24060
24068
|
layout: "vertical",
|
|
24061
24069
|
style: {
|
|
24062
24070
|
flex: 1
|
|
24063
24071
|
},
|
|
24064
24072
|
form: form
|
|
24065
|
-
},
|
|
24073
|
+
}, React.createElement(Row$1, {
|
|
24066
24074
|
gutter: [8, 8]
|
|
24067
|
-
},
|
|
24075
|
+
}, React.createElement(Col$1, {
|
|
24068
24076
|
span: 12
|
|
24069
|
-
},
|
|
24077
|
+
}, React.createElement(Form$1.Item, {
|
|
24070
24078
|
name: "itemNameSelf",
|
|
24071
24079
|
label: "\u6211\u65B9\u5546\u54C1\u540D\u79F0"
|
|
24072
|
-
},
|
|
24080
|
+
}, React.createElement(Input, null))), React.createElement(Col$1, {
|
|
24073
24081
|
span: 12
|
|
24074
|
-
},
|
|
24082
|
+
}, React.createElement(Form$1.Item, {
|
|
24075
24083
|
name: "itemName",
|
|
24076
24084
|
label: "\u5BF9\u65B9\u5546\u54C1\u540D\u79F0"
|
|
24077
|
-
},
|
|
24085
|
+
}, React.createElement(Input, null))), React.createElement(Col$1, {
|
|
24078
24086
|
span: 12
|
|
24079
|
-
},
|
|
24087
|
+
}, React.createElement(Form$1.Item, {
|
|
24080
24088
|
name: 'itemModelNameSelf',
|
|
24081
24089
|
label: "\u6211\u65B9\u89C4\u683C\u578B\u53F7"
|
|
24082
|
-
},
|
|
24090
|
+
}, React.createElement(Input, null))), React.createElement(Col$1, {
|
|
24083
24091
|
span: 12
|
|
24084
|
-
},
|
|
24092
|
+
}, React.createElement(Form$1.Item, {
|
|
24085
24093
|
name: "itemModelName",
|
|
24086
24094
|
label: "\u5BF9\u65B9\u89C4\u683C\u578B\u53F7"
|
|
24087
|
-
},
|
|
24095
|
+
}, React.createElement(Input, null))))));
|
|
24088
24096
|
} // function validateFields(form: WrappedFormUtils<any>) {
|
|
24089
24097
|
// return new Promise<{ err: any, values: any }>(resolve => {
|
|
24090
24098
|
// form.validateFields((err, values) => {
|
|
@@ -24095,7 +24103,7 @@ function AddComparisonDrawer() {
|
|
|
24095
24103
|
|
|
24096
24104
|
/** 发票组件的上下文 */
|
|
24097
24105
|
|
|
24098
|
-
var InvoiceContext =
|
|
24106
|
+
var InvoiceContext = React.createContext(undefined);
|
|
24099
24107
|
|
|
24100
24108
|
var Invoice = /*#__PURE__*/function (_React$PureComponent) {
|
|
24101
24109
|
_inherits(Invoice, _React$PureComponent);
|
|
@@ -24140,9 +24148,9 @@ var Invoice = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
24140
24148
|
/** 获取控制器钩子 */
|
|
24141
24149
|
function render() {
|
|
24142
24150
|
if (this.props.invoiceType === 'digtal') {
|
|
24143
|
-
return
|
|
24151
|
+
return React.createElement(Digtal, _objectSpread2({}, this.props));
|
|
24144
24152
|
} else {
|
|
24145
|
-
return
|
|
24153
|
+
return React.createElement(Main$4, _objectSpread2({}, this.props));
|
|
24146
24154
|
}
|
|
24147
24155
|
}
|
|
24148
24156
|
}]);
|
|
@@ -24184,10 +24192,10 @@ var Main$4 = function Main(props) {
|
|
|
24184
24192
|
React.useEffect(function () {
|
|
24185
24193
|
setKey(key + 1);
|
|
24186
24194
|
}, [controller]);
|
|
24187
|
-
return
|
|
24195
|
+
return React.createElement(InvoiceContext.Provider, {
|
|
24188
24196
|
key: key,
|
|
24189
24197
|
value: controller
|
|
24190
|
-
},
|
|
24198
|
+
}, React.createElement("div", {
|
|
24191
24199
|
className: "kts-invoice-operate",
|
|
24192
24200
|
ref: controller.pipeline( /*#__PURE__*/function () {
|
|
24193
24201
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(s, e) {
|
|
@@ -24209,17 +24217,17 @@ var Main$4 = function Main(props) {
|
|
|
24209
24217
|
return _ref.apply(this, arguments);
|
|
24210
24218
|
};
|
|
24211
24219
|
}())
|
|
24212
|
-
}, props.invoiceHeader ||
|
|
24220
|
+
}, props.invoiceHeader || React.createElement(InvoiceHeader, null)
|
|
24213
24221
|
/** 发票头 */
|
|
24214
|
-
, props.buyer ||
|
|
24222
|
+
, props.buyer || React.createElement(Buyer$1, null)
|
|
24215
24223
|
/** 购买方 */
|
|
24216
|
-
, props.goodsList ||
|
|
24224
|
+
, props.goodsList || React.createElement(GoodsList, null)
|
|
24217
24225
|
/** 货物列表 */
|
|
24218
|
-
, props.seller ||
|
|
24226
|
+
, props.seller || React.createElement(Buyer, null)
|
|
24219
24227
|
/** 销售方 */
|
|
24220
|
-
, props.sign ||
|
|
24228
|
+
, props.sign || React.createElement(Sign, null)
|
|
24221
24229
|
/** 落款 */
|
|
24222
|
-
, props.footExpand),
|
|
24230
|
+
, props.footExpand), React.createElement(ImportBuyerDrawer, null), React.createElement(ImportGoodsDrawer, null), React.createElement(EndowCodeDrawer, null), React.createElement(AddComparisonDrawer, null));
|
|
24223
24231
|
};
|
|
24224
24232
|
/** 数电 */
|
|
24225
24233
|
|
|
@@ -24238,10 +24246,10 @@ var Digtal = function Digtal(props) {
|
|
|
24238
24246
|
React.useEffect(function () {
|
|
24239
24247
|
setKey(key + 1);
|
|
24240
24248
|
}, [controller]);
|
|
24241
|
-
return
|
|
24249
|
+
return React.createElement(InvoiceContext.Provider, {
|
|
24242
24250
|
key: key,
|
|
24243
24251
|
value: controller
|
|
24244
|
-
},
|
|
24252
|
+
}, React.createElement("div", {
|
|
24245
24253
|
className: "kts-invoice-operate-digtal",
|
|
24246
24254
|
ref: controller.pipeline( /*#__PURE__*/function () {
|
|
24247
24255
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(s, e) {
|
|
@@ -24263,17 +24271,17 @@ var Digtal = function Digtal(props) {
|
|
|
24263
24271
|
return _ref2.apply(this, arguments);
|
|
24264
24272
|
};
|
|
24265
24273
|
}())
|
|
24266
|
-
}, props.invoiceHeader ||
|
|
24274
|
+
}, props.invoiceHeader || React.createElement(InvoiceHeaderDigtal, null)
|
|
24267
24275
|
/** 发票头 */
|
|
24268
|
-
,
|
|
24276
|
+
, React.createElement("div", {
|
|
24269
24277
|
className: 'kts-invoice-operate-digtal-cont'
|
|
24270
|
-
}, props.stakeholder ||
|
|
24278
|
+
}, props.stakeholder || React.createElement(Stakeholder$1, null)
|
|
24271
24279
|
/** 干系人 */
|
|
24272
|
-
, props.goodsList ||
|
|
24280
|
+
, props.goodsList || React.createElement(GoodsList$1
|
|
24273
24281
|
/** 货物列表 */
|
|
24274
|
-
, null)), props.sign ||
|
|
24282
|
+
, null)), props.sign || React.createElement(SignDigtal, null)
|
|
24275
24283
|
/** 落款 */
|
|
24276
|
-
),
|
|
24284
|
+
), React.createElement(ImportGoodsDrawer, null), React.createElement(EndowCodeDrawer, null));
|
|
24277
24285
|
};
|
|
24278
24286
|
|
|
24279
24287
|
function TaxClassificationModal(props) {
|
|
@@ -24314,26 +24322,26 @@ function TaxClassificationModal(props) {
|
|
|
24314
24322
|
}, 500);
|
|
24315
24323
|
}
|
|
24316
24324
|
}, [form, props.open]);
|
|
24317
|
-
return
|
|
24325
|
+
return React.createElement(Drawer$1, {
|
|
24318
24326
|
title: "\u5546\u54C1\u548C\u670D\u52A1\u7A0E\u6536\u5206\u7C7B\u7F16\u7801",
|
|
24319
24327
|
placement: "right",
|
|
24320
24328
|
open: props.open,
|
|
24321
24329
|
width: 503,
|
|
24322
24330
|
onClose: props.onCancel
|
|
24323
|
-
},
|
|
24331
|
+
}, React.createElement(Form$1, {
|
|
24324
24332
|
form: form
|
|
24325
|
-
},
|
|
24333
|
+
}, React.createElement(Form$1.Item, {
|
|
24326
24334
|
name: 'search'
|
|
24327
|
-
},
|
|
24335
|
+
}, React.createElement(Input$1, {
|
|
24328
24336
|
placeholder: "\u8BF7\u8F93\u5165\u7A0E\u6536\u5206\u7C7B\u7F16\u7801\u3001\u7A0E\u6536\u5206\u7C7B\u540D\u79F0\u8FDB\u884C\u68C0\u7D22",
|
|
24329
24337
|
onChange: searchTax
|
|
24330
|
-
})),
|
|
24338
|
+
})), React.createElement(Form$1.Item, {
|
|
24331
24339
|
name: 'tree'
|
|
24332
|
-
},
|
|
24340
|
+
}, React.createElement(Tree$1, {
|
|
24333
24341
|
onSelect: props.onSelect,
|
|
24334
24342
|
loadData: props.onLoad,
|
|
24335
24343
|
treeData: props.list,
|
|
24336
|
-
switcherIcon:
|
|
24344
|
+
switcherIcon: React.createElement(Icon$1, {
|
|
24337
24345
|
type: "down"
|
|
24338
24346
|
})
|
|
24339
24347
|
}))));
|