kts-component-invoice-operate 3.2.155 → 3.2.156
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.dumi/theme/builtins/API.tsx +66 -66
- package/.editorconfig +16 -16
- package/.fatherrc.ts +4 -4
- package/.prettierignore +7 -7
- package/.prettierrc +11 -11
- package/.umirc.ts +8 -8
- package/README.md +9 -9
- package/dist/Invoice/InvoiceController/index.d.ts +2 -0
- package/dist/index.esm.js +661 -684
- package/dist/index.js +661 -684
- package/docs/index.md +5 -5
- package/docs-dist/static/{arrowDown.22c7885c.svg → arrowDown.a1cbf0d8.svg} +2 -2
- package/docs-dist/static/{arrowUp.d707a3e4.svg → arrowUp.4c482054.svg} +2 -2
- package/docs-dist/static/{fork.43eb4ffa.svg → fork.5431267d.svg} +11 -11
- package/docs-dist/static/{plus.384f41d9.svg → plus.44013ce3.svg} +11 -11
- package/docs-dist/static/{plus.0e60e9ea.svg → plus.4fd1af30.svg} +11 -11
- package/docs-dist/umi.css +1 -1
- package/docs-dist/umi.js +1 -1
- package/index.html +12 -12
- package/package.json +61 -61
- package/src/Invoice/Invoice-digtal/_test/disabled/index.tsx +40 -40
- package/src/Invoice/Invoice-digtal/_test/easiest/index.tsx +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 +18 -18
- package/src/Invoice/Invoice-digtal/_test/lineCredit/index.tsx +19 -19
- package/src/Invoice/Invoice-digtal/_test/prefab/index.tsx +150 -150
- package/src/Invoice/Invoice-digtal/_test/readOnly/index.tsx +55 -55
- package/src/Invoice/Invoice-digtal/_test/realEstateInfo/index.tsx +21 -21
- package/src/Invoice/Invoice-digtal/_test/stakeholder/index.tsx +12 -12
- package/src/Invoice/Invoice-digtal/_test/typeSelection/index.tsx +29 -29
- package/src/Invoice/Invoice-digtal/index.md +34 -34
- package/src/Invoice/InvoiceController/InvoiceControllerForm/index.ts +95 -95
- package/src/Invoice/InvoiceController/InvoiceControllerState/AutoComplete/index.ts +20 -20
- package/src/Invoice/InvoiceController/InvoiceControllerState/BuyerState/index.tsx +88 -88
- package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/Drag/index.ts +15 -15
- package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/EndowCode/index.tsx +104 -104
- package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/IColumnsReplenish/index.ts +10 -10
- package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/IGood/index.ts +87 -87
- package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/ImportGoods/index.ts +81 -81
- package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/LineAttributeType/index.ts +7 -7
- package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/ProductComparison/index.ts +9 -9
- package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/index.ts +131 -131
- package/src/Invoice/InvoiceController/InvoiceControllerState/Stakeholder/index.ts +13 -13
- package/src/Invoice/InvoiceController/InvoiceControllerState/index.ts +65 -65
- package/src/Invoice/InvoiceController/fns/addGood.ts +11 -11
- package/src/Invoice/InvoiceController/fns/addGoodDiscount.ts +126 -126
- package/src/Invoice/InvoiceController/fns/addGoodDiscountV2.ts +86 -86
- package/src/Invoice/InvoiceController/fns/delGood.ts +41 -41
- package/src/Invoice/InvoiceController/fns/getGoodsSearch.ts +26 -26
- package/src/Invoice/InvoiceController/fns/importGoodsDrawer.ts +79 -79
- package/src/Invoice/InvoiceController/fns/itemBlur.ts +40 -40
- package/src/Invoice/InvoiceController/fns/mergeDetails.ts +201 -201
- package/src/Invoice/InvoiceController/fns/mergeDiscount.ts +35 -35
- package/src/Invoice/InvoiceController/fns/saveEditGood.ts +24 -24
- package/src/Invoice/InvoiceController/fns/setEditGood.ts +16 -16
- package/src/Invoice/InvoiceController/fns/setGoods.ts +10 -10
- package/src/Invoice/InvoiceController/fns/updateInvoiceNo.ts +8 -8
- package/src/Invoice/InvoiceController/index.ts +87 -85
- package/src/Invoice/_test/buyerNameSearch/index.tsx +42 -42
- package/src/Invoice/_test/children/index.tsx +214 -202
- package/src/Invoice/_test/deduction/index.tsx +935 -935
- package/src/Invoice/_test/draft/index.tsx +40 -40
- package/src/Invoice/_test/easiest/index.tsx +5 -5
- package/src/Invoice/_test/endowCode/index.tsx +1158 -1158
- package/src/Invoice/_test/goodsMenuExpand/index.tsx +32 -32
- package/src/Invoice/_test/importBuyer/index.tsx +74 -74
- package/src/Invoice/_test/importGoods/index.tsx +1197 -1197
- package/src/Invoice/_test/invoiceType/index.tsx +59 -59
- package/src/Invoice/_test/isInvoiceNo/index.tsx +12 -12
- package/src/Invoice/_test/replaceHead/index.tsx +22 -22
- package/src/Invoice/_test/retrieveData/index.tsx +22 -22
- package/src/Invoice/_test/seller/index.tsx +28 -28
- package/src/Invoice/_test/setDataSource/index.tsx +73 -73
- package/src/Invoice/_test/unit/index.tsx +19 -19
- package/src/Invoice/index.less +31 -31
- package/src/Invoice/index.md +56 -56
- package/src/Invoice/index.tsx +179 -179
- package/src/Invoice/tools/calculate/index.ts +132 -132
- package/src/Invoice/tools/coolingFn/index.ts +17 -17
- package/src/Invoice/tools/evaluate/index.ts +7 -7
- package/src/Invoice/tools/idGenerator/index.ts +2 -2
- package/src/Invoice/tools/itemName/index.ts +55 -55
- package/src/Invoice/tools/lazyFn/index.ts +19 -19
- package/src/Invoice/tools/mounting/index.ts +13 -13
- package/src/Invoice/tools/strringFn/index.ts +40 -40
- package/src/Invoice/tools/useToGenerateId/index.ts +8 -8
- package/src/Invoice/tools/utils/index.ts +1 -1
- package/src/Invoice/tools/utils/money/index.ts +20 -20
- package/src/Invoice/ui/default/AddComparisonDrawer/index.tsx +149 -149
- package/src/Invoice/ui/default/Buyer/index.less +219 -219
- package/src/Invoice/ui/default/Buyer/index.tsx +114 -114
- package/src/Invoice/ui/default/Buyer/ui/BuyerNameInput/index.tsx +166 -166
- package/src/Invoice/ui/default/Buyer/ui/ImportBuyerButton/index.tsx +21 -21
- package/src/Invoice/ui/default/EndowCodeDrawer/index.less +8 -8
- package/src/Invoice/ui/default/EndowCodeDrawer/index.tsx +586 -586
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/autoFillFn/index.ts +647 -647
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/index.tsx +711 -710
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/Drag/index.less +20 -20
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/Drag/index.tsx +205 -205
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/Expand/index.tsx +57 -53
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/ItemCodeInput/index.less +18 -18
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/ItemCodeInput/index.tsx +49 -49
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/ItemNameInput/index.less +17 -17
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/ItemNameInput/index.tsx +91 -91
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/RowEditButton/index.tsx +30 -30
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/RowMenu/hook/_useAddComparison/index.tsx +43 -43
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/RowMenu/hook/useAddDiscount/index.tsx +118 -118
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/RowMenu/hook/useDelItem/dist/index.js +32 -0
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/RowMenu/hook/useDelItem/index.tsx +41 -41
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/RowMenu/hook/useEndowCode/index.tsx +25 -25
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/RowMenu/index.less +13 -13
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/RowMenu/index.tsx +99 -99
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/RowSaveButton/index.tsx +14 -14
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/TitleText/index.tsx +20 -20
- package/src/Invoice/ui/default/GoodsList/hook/useDeduction/index.tsx +24 -24
- package/src/Invoice/ui/default/GoodsList/hook/useOnRow/index.tsx +52 -52
- package/src/Invoice/ui/default/GoodsList/hook/useRowSelection/index.tsx +120 -120
- package/src/Invoice/ui/default/GoodsList/hook/useWindowClick/index.tsx +23 -23
- package/src/Invoice/ui/default/GoodsList/index.less +185 -185
- package/src/Invoice/ui/default/GoodsList/index.tsx +205 -205
- package/src/Invoice/ui/default/GoodsList/ui/AddRowButton/index.tsx +65 -65
- package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/hooks/useAddDiscountRowButton/index.less +21 -21
- package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/hooks/useAddDiscountRowButton/index.tsx +244 -244
- package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/hooks/useCommodityComparisonButton/index.tsx +75 -75
- package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/hooks/useDelRowButton/index.tsx +69 -69
- package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/hooks/useEndowCodeButton/index.tsx +65 -65
- package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/hooks/useMergeDetails/index.tsx +91 -91
- package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/hooks/useMergeDiscount/index.tsx +36 -36
- package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/hooks/useSalesDiscount/index.tsx +109 -109
- package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/hooks/useSalesGifts/index.tsx +94 -94
- package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/index.tsx +37 -37
- package/src/Invoice/ui/default/GoodsList/ui/DescribeSwitch/index.tsx +36 -36
- package/src/Invoice/ui/default/GoodsList/ui/Search/index.less +10 -10
- package/src/Invoice/ui/default/GoodsList/ui/Search/index.tsx +52 -52
- package/src/Invoice/ui/default/GoodsList/ui/Statistics/index.less +18 -18
- package/src/Invoice/ui/default/GoodsList/ui/Statistics/index.tsx +114 -114
- package/src/Invoice/ui/default/GoodsList/ui/TableRow/index.less +40 -29
- package/src/Invoice/ui/default/GoodsList/ui/TableRow/index.tsx +71 -57
- package/src/Invoice/ui/default/GoodsList/ui/TableVirtual/index.less +38 -38
- package/src/Invoice/ui/default/GoodsList/ui/TableVirtual/index.tsx +130 -131
- package/src/Invoice/ui/default/GoodsList/ui/TableVirtual.o/index.less +44 -44
- package/src/Invoice/ui/default/GoodsList/ui/TableVirtual.o/index.tsx +96 -96
- package/src/Invoice/ui/default/GoodsList/ui/TaxIncludedSwitch/index.tsx +31 -31
- package/src/Invoice/ui/default/ImportBuyerDrawer/index.tsx +75 -75
- package/src/Invoice/ui/default/ImportGoodsDrawer/index.tsx +198 -198
- package/src/Invoice/ui/default/InvoiceHeader/index.less +68 -68
- package/src/Invoice/ui/default/InvoiceHeader/index.tsx +246 -246
- package/src/Invoice/ui/default/Seller/index.less +113 -113
- package/src/Invoice/ui/default/Seller/index.tsx +98 -98
- package/src/Invoice/ui/default/Sign/index.less +14 -14
- package/src/Invoice/ui/default/Sign/index.tsx +71 -71
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/autoFillFn/index.ts +639 -639
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/index.tsx +660 -660
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/svg/plus.svg +11 -11
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/Drag/index.less +20 -20
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/Drag/index.tsx +205 -205
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/ItemNameInput/index.less +9 -9
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/ItemNameInput/index.tsx +87 -87
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowEditButton/index.tsx +30 -30
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowMenu/hook/_useAddComparison/index.tsx +43 -43
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowMenu/hook/useAddDiscount/index.tsx +76 -76
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowMenu/hook/useDelItem/index.tsx +41 -41
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowMenu/hook/useEndowCode/index.tsx +34 -34
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowMenu/index.less +13 -13
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowMenu/index.tsx +98 -98
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowSaveButton/index.tsx +14 -14
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/TitleText/index.tsx +20 -20
- package/src/Invoice/ui/digtal/GoodsList/hook/useOnRow/index.tsx +51 -51
- package/src/Invoice/ui/digtal/GoodsList/hook/useRowSelection/index.tsx +121 -121
- package/src/Invoice/ui/digtal/GoodsList/hook/useWindowClick/index.tsx +23 -23
- package/src/Invoice/ui/digtal/GoodsList/index.less +56 -56
- package/src/Invoice/ui/digtal/GoodsList/index.tsx +180 -180
- package/src/Invoice/ui/digtal/GoodsList/ui/AddRowButton/index.tsx +67 -67
- package/src/Invoice/ui/digtal/GoodsList/ui/BulkMenu/hooks/useAddDiscountRowButton/index.tsx +340 -340
- package/src/Invoice/ui/digtal/GoodsList/ui/BulkMenu/hooks/useAddDiscountRowButton/svg/add.svg +11 -11
- package/src/Invoice/ui/digtal/GoodsList/ui/BulkMenu/hooks/useCommodityComparisonButton/index.tsx +75 -75
- package/src/Invoice/ui/digtal/GoodsList/ui/BulkMenu/hooks/useDelRowButton/index.tsx +50 -50
- package/src/Invoice/ui/digtal/GoodsList/ui/BulkMenu/hooks/useEmptyRefill/index.tsx +37 -37
- package/src/Invoice/ui/digtal/GoodsList/ui/BulkMenu/hooks/useEndowCodeButton/index.tsx +82 -82
- package/src/Invoice/ui/digtal/GoodsList/ui/BulkMenu/hooks/useReselectInvoiceType/index.tsx +57 -57
- package/src/Invoice/ui/digtal/GoodsList/ui/DescribeSwitch/index.tsx +36 -36
- package/src/Invoice/ui/digtal/GoodsList/ui/Search/index.less +11 -11
- package/src/Invoice/ui/digtal/GoodsList/ui/Search/index.tsx +50 -50
- package/src/Invoice/ui/digtal/GoodsList/ui/Statistics/index.less +53 -53
- package/src/Invoice/ui/digtal/GoodsList/ui/Statistics/index.tsx +98 -98
- package/src/Invoice/ui/digtal/GoodsList/ui/Statistics/svg/fork.svg +11 -11
- package/src/Invoice/ui/digtal/GoodsList/ui/TableRow/index.less +28 -28
- package/src/Invoice/ui/digtal/GoodsList/ui/TableRow/index.tsx +53 -53
- package/src/Invoice/ui/digtal/GoodsList/ui/TableVirtual/index.less +38 -38
- package/src/Invoice/ui/digtal/GoodsList/ui/TableVirtual/index.tsx +108 -108
- package/src/Invoice/ui/digtal/GoodsList/ui/TaxIncludedSwitch/index.tsx +31 -31
- package/src/Invoice/ui/digtal/InvoiceHeader/index.less +57 -57
- package/src/Invoice/ui/digtal/InvoiceHeader/index.tsx +77 -77
- package/src/Invoice/ui/digtal/RealEstateInfo/index.less +14 -14
- package/src/Invoice/ui/digtal/RealEstateInfo/index.tsx +192 -194
- package/src/Invoice/ui/digtal/Sign/index.less +48 -48
- package/src/Invoice/ui/digtal/Sign/index.tsx +99 -99
- package/src/Invoice/ui/digtal/Stakeholder/index.less +99 -99
- package/src/Invoice/ui/digtal/Stakeholder/index.tsx +396 -396
- package/src/Invoice/ui/digtal/Stakeholder/svg/arrowDown.svg +2 -2
- package/src/Invoice/ui/digtal/Stakeholder/svg/arrowUp.svg +2 -2
- package/src/Invoice/ui/digtal/Stakeholder/svg/plus.svg +11 -11
- package/src/InvoiceTypeModal/_test/easiest/index.tsx +31 -31
- package/src/InvoiceTypeModal/index.less +7 -7
- package/src/InvoiceTypeModal/index.md +5 -5
- package/src/InvoiceTypeModal/index.tsx +153 -153
- package/src/TaxClassificationCodeModal/_test/easiest/index.tsx +177 -177
- package/src/TaxClassificationCodeModal/index.md +6 -6
- package/src/TaxClassificationCodeModal/index.tsx +74 -74
- package/src/index.ts +12 -12
- package/tsconfig.json +31 -31
- package/typings.d.ts +3 -3
- package/yarn.e.lock +14331 -14331
- package/docs-dist/static/I001.4ff48f20.svg +0 -1
- package/docs-dist/static/I002.38b94da1.svg +0 -1
package/dist/index.esm.js
CHANGED
|
@@ -9741,6 +9741,7 @@ var InvoiceController = /*#__PURE__*/function (_InvoiceControllerFor) {
|
|
|
9741
9741
|
_this.getTaxCategoryCodeList = void 0;
|
|
9742
9742
|
_this.getGoodsSearch = getGoodsSearch;
|
|
9743
9743
|
_this.getGoodsTaxRateList = void 0;
|
|
9744
|
+
_this.setColumnsConfig = void 0;
|
|
9744
9745
|
return _this;
|
|
9745
9746
|
} // ----------------- 发票头 模块相关 -----------------
|
|
9746
9747
|
|
|
@@ -9867,7 +9868,7 @@ var InvoiceHeader = decorator(Form.create())(function (props) {
|
|
|
9867
9868
|
render: function render(form) {
|
|
9868
9869
|
return form.getFieldDecorator('code', {
|
|
9869
9870
|
initialValue: props.defaultCode
|
|
9870
|
-
})(
|
|
9871
|
+
})(React.createElement(FormSpanString, null));
|
|
9871
9872
|
}
|
|
9872
9873
|
});
|
|
9873
9874
|
}
|
|
@@ -9880,7 +9881,7 @@ var InvoiceHeader = decorator(Form.create())(function (props) {
|
|
|
9880
9881
|
render: function render(form) {
|
|
9881
9882
|
return form.getFieldDecorator('no', {
|
|
9882
9883
|
initialValue: props.defaultNo
|
|
9883
|
-
})(
|
|
9884
|
+
})(React.createElement(FormSpanString, null));
|
|
9884
9885
|
}
|
|
9885
9886
|
});
|
|
9886
9887
|
}
|
|
@@ -9891,7 +9892,7 @@ var InvoiceHeader = decorator(Form.create())(function (props) {
|
|
|
9891
9892
|
render: function render(form) {
|
|
9892
9893
|
return form.getFieldDecorator('invoicingDate', {
|
|
9893
9894
|
initialValue: props.defaultInvoicingDate
|
|
9894
|
-
})(
|
|
9895
|
+
})(React.createElement(FormSpanString, null));
|
|
9895
9896
|
}
|
|
9896
9897
|
});
|
|
9897
9898
|
}
|
|
@@ -9902,7 +9903,7 @@ var InvoiceHeader = decorator(Form.create())(function (props) {
|
|
|
9902
9903
|
render: function render(form) {
|
|
9903
9904
|
return form.getFieldDecorator('defaultValidationCode', {
|
|
9904
9905
|
initialValue: props.defaultValidationCode
|
|
9905
|
-
})(
|
|
9906
|
+
})(React.createElement(FormSpanString, null));
|
|
9906
9907
|
}
|
|
9907
9908
|
});
|
|
9908
9909
|
}
|
|
@@ -9922,21 +9923,21 @@ var InvoiceHeader = decorator(Form.create())(function (props) {
|
|
|
9922
9923
|
React.useEffect(function () {
|
|
9923
9924
|
setTypeIndex(props.typeOptionIndex || 0);
|
|
9924
9925
|
}, [props.typeOption]);
|
|
9925
|
-
return
|
|
9926
|
+
return React.createElement("div", {
|
|
9926
9927
|
className: "kts-invoice-operate-invoice-header"
|
|
9927
|
-
},
|
|
9928
|
+
}, React.createElement("div", {
|
|
9928
9929
|
className: "invoice-header-title"
|
|
9929
|
-
}, title),
|
|
9930
|
+
}, title), React.createElement("div", {
|
|
9930
9931
|
className: "invoice-header-no"
|
|
9931
|
-
}, isInvoiceNo ?
|
|
9932
|
+
}, isInvoiceNo ? React.createElement("div", null, React.createElement("label", null, "\u53D1\u7968\u5355\u636E\u7F16\u53F7 :"), getFieldDecorator('id', {
|
|
9932
9933
|
initialValue: props.defaultId
|
|
9933
|
-
})(
|
|
9934
|
+
})(React.createElement(Input, {
|
|
9934
9935
|
disabled: readOnlyInvoiceNo,
|
|
9935
9936
|
style: {
|
|
9936
9937
|
width: 230
|
|
9937
9938
|
},
|
|
9938
9939
|
size: "small",
|
|
9939
|
-
suffix: controller.updateInvoiceNo &&
|
|
9940
|
+
suffix: controller.updateInvoiceNo && React.createElement(Icon$1, {
|
|
9940
9941
|
style: {
|
|
9941
9942
|
cursor: 'pointer'
|
|
9942
9943
|
},
|
|
@@ -9980,15 +9981,15 @@ var InvoiceHeader = decorator(Form.create())(function (props) {
|
|
|
9980
9981
|
return onClick;
|
|
9981
9982
|
}()
|
|
9982
9983
|
})
|
|
9983
|
-
}))) :
|
|
9984
|
+
}))) : React.createElement("div", {
|
|
9984
9985
|
style: {
|
|
9985
9986
|
height: 20
|
|
9986
9987
|
}
|
|
9987
|
-
}), tag &&
|
|
9988
|
+
}), tag && React.createElement(Tag$1, null, tag), React.createElement("div", {
|
|
9988
9989
|
className: "invoice-header-type"
|
|
9989
9990
|
}, props.typeOption ? getFieldDecorator('type', {
|
|
9990
9991
|
initialValue: typeIndex
|
|
9991
|
-
})(
|
|
9992
|
+
})(React.createElement(Select, {
|
|
9992
9993
|
size: "small",
|
|
9993
9994
|
style: {
|
|
9994
9995
|
width: 230
|
|
@@ -9997,20 +9998,20 @@ var InvoiceHeader = decorator(Form.create())(function (props) {
|
|
|
9997
9998
|
setTypeIndex(e);
|
|
9998
9999
|
}
|
|
9999
10000
|
}, props.typeOption.map(function (e, i) {
|
|
10000
|
-
return
|
|
10001
|
+
return React.createElement(Select.Option, {
|
|
10001
10002
|
key: i,
|
|
10002
10003
|
value: i
|
|
10003
10004
|
}, e.title);
|
|
10004
|
-
}))) : props.renderExpand && props.renderExpand(props.form))), props.typeOption &&
|
|
10005
|
+
}))) : props.renderExpand && props.renderExpand(props.form))), props.typeOption && React.createElement("div", {
|
|
10005
10006
|
style: {
|
|
10006
10007
|
marginTop: 10
|
|
10007
10008
|
}
|
|
10008
|
-
}, props.renderExpand && props.renderExpand(props.form)),
|
|
10009
|
+
}, props.renderExpand && props.renderExpand(props.form)), React.createElement("div", {
|
|
10009
10010
|
className: "invoice-header-property"
|
|
10010
|
-
}, _toConsumableArray(props.fieldExpand || []).map(function (e) {}),
|
|
10011
|
+
}, _toConsumableArray(props.fieldExpand || []).map(function (e) {}), React.createElement("ul", {
|
|
10011
10012
|
className: 'invoice-header-property-fieldExpand'
|
|
10012
10013
|
}, fieldExpand.map(function (e) {
|
|
10013
|
-
return
|
|
10014
|
+
return React.createElement("li", null, React.createElement("label", null, e.label), e.render(form));
|
|
10014
10015
|
}))));
|
|
10015
10016
|
});
|
|
10016
10017
|
|
|
@@ -10029,7 +10030,7 @@ var FormSpanString = /*#__PURE__*/function (_React$Component) {
|
|
|
10029
10030
|
key: "render",
|
|
10030
10031
|
value: function render() {
|
|
10031
10032
|
// return <span>{this.props.value}</span>;
|
|
10032
|
-
return
|
|
10033
|
+
return React.createElement(Input, {
|
|
10033
10034
|
size: "small",
|
|
10034
10035
|
disabled: true,
|
|
10035
10036
|
value: this.props.value
|
|
@@ -10168,12 +10169,12 @@ function TableVirtual (props) {
|
|
|
10168
10169
|
cont.scrollTop = 0;
|
|
10169
10170
|
}, [(_props$dataSource = props.dataSource) === null || _props$dataSource === void 0 ? void 0 : _props$dataSource.length]); // console.log('===> pointer', pointer, dataSource);
|
|
10170
10171
|
|
|
10171
|
-
return
|
|
10172
|
+
return React.createElement("span", {
|
|
10172
10173
|
className: "kts-invoice-operate-goods-table-virtual",
|
|
10173
10174
|
ref: function ref(e) {
|
|
10174
10175
|
setSelf(e);
|
|
10175
10176
|
}
|
|
10176
|
-
},
|
|
10177
|
+
}, React.createElement(TableManual, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
10177
10178
|
dataSource: dataSource,
|
|
10178
10179
|
// 新版本Table会有输入框无法连续输入的问题,先兼容老版本
|
|
10179
10180
|
tableComponent: Table
|
|
@@ -10265,57 +10266,57 @@ var Statistics = (function () {
|
|
|
10265
10266
|
});
|
|
10266
10267
|
return sum.done().toNumber();
|
|
10267
10268
|
}, []);
|
|
10268
|
-
return
|
|
10269
|
+
return React.createElement("div", {
|
|
10269
10270
|
className: "kts-invoice-operate-goods-list-statistics"
|
|
10270
|
-
},
|
|
10271
|
+
}, React.createElement("div", {
|
|
10271
10272
|
className: "kts-invoice-operate-goods-list-statistics-row"
|
|
10272
|
-
},
|
|
10273
|
+
}, React.createElement("div", {
|
|
10273
10274
|
style: {
|
|
10274
10275
|
width: 45.92
|
|
10275
10276
|
}
|
|
10276
|
-
}),
|
|
10277
|
+
}), React.createElement("div", {
|
|
10277
10278
|
style: {
|
|
10278
10279
|
flex: 1
|
|
10279
10280
|
}
|
|
10280
|
-
},
|
|
10281
|
+
}, React.createElement("label", null, "\u5408\u8BA1")), React.createElement("div", {
|
|
10281
10282
|
style: {
|
|
10282
10283
|
width: 119,
|
|
10283
10284
|
textAlign: 'right',
|
|
10284
10285
|
border: 'none'
|
|
10285
10286
|
}
|
|
10286
|
-
},
|
|
10287
|
+
}, React.createElement("label", null, parseFloat(isTaxIncluded ? lineAmountIncludeTax : lineAmountExcludeTax).toFixed(2))), React.createElement("div", {
|
|
10287
10288
|
style: {
|
|
10288
10289
|
width: 70,
|
|
10289
10290
|
border: 'none'
|
|
10290
10291
|
}
|
|
10291
|
-
}),
|
|
10292
|
+
}), React.createElement("div", {
|
|
10292
10293
|
style: {
|
|
10293
10294
|
width: 119,
|
|
10294
10295
|
textAlign: 'right',
|
|
10295
10296
|
border: 'none'
|
|
10296
10297
|
}
|
|
10297
|
-
},
|
|
10298
|
+
}, React.createElement("label", null, parseFloat(taxAmount).toFixed(2))), React.createElement("div", {
|
|
10298
10299
|
style: {
|
|
10299
10300
|
width: 111,
|
|
10300
10301
|
border: 'none'
|
|
10301
10302
|
}
|
|
10302
|
-
})),
|
|
10303
|
+
})), React.createElement("div", {
|
|
10303
10304
|
className: "kts-invoice-operate-goods-list-statistics-row"
|
|
10304
|
-
},
|
|
10305
|
+
}, React.createElement("div", {
|
|
10305
10306
|
style: {
|
|
10306
10307
|
width: 45.92
|
|
10307
10308
|
}
|
|
10308
|
-
}),
|
|
10309
|
+
}), React.createElement("div", {
|
|
10309
10310
|
style: {
|
|
10310
10311
|
flex: 5,
|
|
10311
10312
|
border: 'none'
|
|
10312
10313
|
}
|
|
10313
|
-
},
|
|
10314
|
+
}, React.createElement("label", null, "\u4EF7\u7A0E\u5408\u8BA1\uFF08\u5927\u5199\uFF09"), React.createElement("label", null, toStringChinese(lineAmountIncludeTax))), React.createElement("div", {
|
|
10314
10315
|
style: {
|
|
10315
10316
|
flex: 5,
|
|
10316
10317
|
border: 'none'
|
|
10317
10318
|
}
|
|
10318
|
-
},
|
|
10319
|
+
}, React.createElement("label", null, "\uFF08\u5C0F\u5199\uFF09 ", parseFloat(lineAmountIncludeTax).toFixed(2)))));
|
|
10319
10320
|
});
|
|
10320
10321
|
|
|
10321
10322
|
var AddRowButton = (function () {
|
|
@@ -10370,10 +10371,10 @@ var AddRowButton = (function () {
|
|
|
10370
10371
|
}
|
|
10371
10372
|
}, _callee);
|
|
10372
10373
|
})), [controller, rootElement]);
|
|
10373
|
-
if (isAddRow === false) return
|
|
10374
|
-
if (model === 'prefab') return
|
|
10375
|
-
if (model === 'readOnly') return
|
|
10376
|
-
return
|
|
10374
|
+
if (isAddRow === false) return React.createElement(React.Fragment, null);
|
|
10375
|
+
if (model === 'prefab') return React.createElement(React.Fragment, null);
|
|
10376
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
10377
|
+
return React.createElement(Button, {
|
|
10377
10378
|
onClick: onClick,
|
|
10378
10379
|
disabled: disabled
|
|
10379
10380
|
}, "\u6DFB\u52A0\u884C");
|
|
@@ -10503,11 +10504,11 @@ var TaxIncludedSwitch = (function () {
|
|
|
10503
10504
|
var onChange = React.useCallback(function (e) {
|
|
10504
10505
|
onChangeSwitchTax(controller, e);
|
|
10505
10506
|
}, []);
|
|
10506
|
-
return
|
|
10507
|
+
return React.createElement("span", null, React.createElement("label", {
|
|
10507
10508
|
style: {
|
|
10508
10509
|
marginRight: 2
|
|
10509
10510
|
}
|
|
10510
|
-
}, "\u542B\u7A0E:"),
|
|
10511
|
+
}, "\u542B\u7A0E:"), React.createElement(Switch, {
|
|
10511
10512
|
disabled: isSwitchTax === false,
|
|
10512
10513
|
checked: isTaxIncluded,
|
|
10513
10514
|
defaultChecked: true,
|
|
@@ -10545,19 +10546,19 @@ var DescribeSwitch = (function () {
|
|
|
10545
10546
|
};
|
|
10546
10547
|
}());
|
|
10547
10548
|
}, []);
|
|
10548
|
-
if (!productComparison.onComply) return
|
|
10549
|
-
return
|
|
10549
|
+
if (!productComparison.onComply) return React.createElement(React.Fragment, null);
|
|
10550
|
+
return React.createElement("span", null, React.createElement("label", {
|
|
10550
10551
|
style: {
|
|
10551
10552
|
marginRight: 2
|
|
10552
10553
|
}
|
|
10553
|
-
},
|
|
10554
|
+
}, React.createElement(Tooltip, {
|
|
10554
10555
|
title: "\u84DD\u8272\u4EE3\u8868\u6211\u65B9\u5546\u54C1\u63CF\u8FF0\uFF0C\u9ED1\u8272\u4EE3\u8868\u5BF9\u65B9\u7684\u5546\u54C1\u63CF\u8FF0\u3002"
|
|
10555
|
-
},
|
|
10556
|
+
}, React.createElement(Icon$1, {
|
|
10556
10557
|
style: {
|
|
10557
10558
|
marginRight: 3
|
|
10558
10559
|
},
|
|
10559
10560
|
type: "info-circle"
|
|
10560
|
-
})), "\u4F7F\u7528\u54EA\u65B9\u5546\u54C1\u63CF\u8FF0:"),
|
|
10561
|
+
})), "\u4F7F\u7528\u54EA\u65B9\u5546\u54C1\u63CF\u8FF0:"), React.createElement(Switch$1, {
|
|
10561
10562
|
checked: isMyShow,
|
|
10562
10563
|
checkedChildren: "\u6211\u65B9",
|
|
10563
10564
|
unCheckedChildren: "\u5BF9\u65B9",
|
|
@@ -10657,13 +10658,13 @@ function Search() {
|
|
|
10657
10658
|
};
|
|
10658
10659
|
}());
|
|
10659
10660
|
}, [value, controller]);
|
|
10660
|
-
return
|
|
10661
|
+
return React.createElement(Input, {
|
|
10661
10662
|
size: "small",
|
|
10662
10663
|
readOnly: readOnly,
|
|
10663
10664
|
value: value,
|
|
10664
10665
|
className: "kts-invoice-operate-goods-list-search",
|
|
10665
10666
|
placeholder: "\u8BF7\u60A8\u8F93\u5165".concat(columnshide.includes('itemCode') ? '' : '商品编码、', "\u9879\u76EE\u540D\u79F0\u3001\u89C4\u683C\u578B\u53F7\u3001\u91D1\u989D(").concat(isTaxIncluded ? '含税' : '不含税', ")\u641C\u7D22"),
|
|
10666
|
-
prefix:
|
|
10667
|
+
prefix: React.createElement(Icon$1, {
|
|
10667
10668
|
component: SvgMagnifier,
|
|
10668
10669
|
style: {
|
|
10669
10670
|
color: "#b8b8b8"
|
|
@@ -10676,7 +10677,7 @@ function Search() {
|
|
|
10676
10677
|
});
|
|
10677
10678
|
}
|
|
10678
10679
|
|
|
10679
|
-
var css_248z$5 = ".kts-invoice-operate-goods-list-itemName-drag-container-u {\n position: relative;\n}\n.kts-invoice-operate-goods-list-itemName-drag-container-u::after {\n content: \" \";\n width: 100%;\n height: 2px;\n background: #0074ff;\n position: absolute;\n left: 0;\n top: 0;\n z-index: 9999;\n}\n.kts-invoice-operate-goods-list-itemName-drag-container-d {\n position: relative;\n}\n.kts-invoice-operate-goods-list-itemName-drag-container-d::after {\n content: \" \";\n width: 100%;\n height: 2px;\n background: #0074ff;\n position: absolute;\n left: 0;\n bottom: 0;\n z-index: 9999;\n}\n";
|
|
10680
|
+
var css_248z$5 = ".kts-invoice-operate-goods-list-itemName-drag-container-u {\n position: relative;\n}\n.kts-invoice-operate-goods-list-itemName-drag-container-u::after {\n content: \" \";\n width: 100%;\n height: 2px;\n background: #0074ff;\n position: absolute;\n left: 0;\n top: 0;\n z-index: 9999;\n}\n.kts-invoice-operate-goods-list-itemName-drag-container-d {\n position: relative;\n}\n.kts-invoice-operate-goods-list-itemName-drag-container-d::after {\n content: \" \";\n width: 100%;\n height: 2px;\n background: #0074ff;\n position: absolute;\n left: 0;\n bottom: 0;\n z-index: 9999;\n}\n.ktsAntX-table .ktsAntX-table-row.ktsAntX-table-row-level-0.kts-invoice-operate-goods-expanded .ktsAntX-table-cell-ellipsis,\n.ktsAntX-table .ktsAntX-table-row.ktsAntX-table-row-level-0.kts-invoice-operate-goods-expanded {\n background: #f0f0f0;\n}\n.ktsAntX-table .ktsAntX-table-row.ktsAntX-table-row-level-0.kts-invoice-operate-goods-expanded-level-1 .ktsAntX-table-cell-ellipsis,\n.ktsAntX-table .ktsAntX-table-row.ktsAntX-table-row-level-0.kts-invoice-operate-goods-expanded-level-1 {\n background: #f6f6f6;\n}\n";
|
|
10680
10681
|
styleInject(css_248z$5);
|
|
10681
10682
|
|
|
10682
10683
|
function TableRow(props) {
|
|
@@ -10685,6 +10686,11 @@ function TableRow(props) {
|
|
|
10685
10686
|
var goodsMap = controller.useMemo(function (s) {
|
|
10686
10687
|
return s.goodsListState.goodsMap;
|
|
10687
10688
|
}, []);
|
|
10689
|
+
/** 子级展开的货物 */
|
|
10690
|
+
|
|
10691
|
+
var expandedRowKeys = controller.useMemo(function (s) {
|
|
10692
|
+
return s.goodsListState.expandedRowKeys;
|
|
10693
|
+
}, []);
|
|
10688
10694
|
/** 当前拖动中的货品索引 */
|
|
10689
10695
|
|
|
10690
10696
|
var current = controller.useMemo(function (s) {
|
|
@@ -10715,13 +10721,26 @@ function TableRow(props) {
|
|
|
10715
10721
|
return undefined;
|
|
10716
10722
|
}
|
|
10717
10723
|
}, [good, goodsMap]);
|
|
10718
|
-
|
|
10724
|
+
/** 扩展行样式 */
|
|
10725
|
+
|
|
10726
|
+
var expandedRow = React.useMemo(function () {
|
|
10727
|
+
if (expandedRowKeys.indexOf(rowKey) > -1) return 'kts-invoice-operate-goods-expanded';
|
|
10728
|
+
if (expandedRowKeys.map(function (e) {
|
|
10729
|
+
return goodsMap.get(e);
|
|
10730
|
+
}).map(function (e) {
|
|
10731
|
+
return e === null || e === void 0 ? void 0 : e.children;
|
|
10732
|
+
}).flat(1).map(function (e) {
|
|
10733
|
+
return e === null || e === void 0 ? void 0 : e.$index;
|
|
10734
|
+
}).indexOf(rowKey) > -1) return 'kts-invoice-operate-goods-expanded-level-1';
|
|
10735
|
+
return undefined;
|
|
10736
|
+
}, [rowKey, expandedRowKeys, good]);
|
|
10737
|
+
return rowKey === current && current ? React.createElement("tr", {
|
|
10719
10738
|
style: {
|
|
10720
10739
|
height: 32.67,
|
|
10721
10740
|
borderBottom: '1px solid #E6E6E6',
|
|
10722
10741
|
position: 'relative'
|
|
10723
10742
|
}
|
|
10724
|
-
},
|
|
10743
|
+
}, React.createElement("div", {
|
|
10725
10744
|
style: {
|
|
10726
10745
|
height: 1,
|
|
10727
10746
|
width: '100%',
|
|
@@ -10729,8 +10748,8 @@ function TableRow(props) {
|
|
|
10729
10748
|
position: 'absolute',
|
|
10730
10749
|
bottom: 0
|
|
10731
10750
|
}
|
|
10732
|
-
})) :
|
|
10733
|
-
className: classNames(props.className, discount, rowKey === container && current ? 'kts-invoice-operate-goods-list-itemName-drag-container-' + site : undefined)
|
|
10751
|
+
})) : React.createElement("tr", _objectSpread2(_objectSpread2({}, props), {}, {
|
|
10752
|
+
className: classNames(props.className, discount, expandedRow, rowKey === container && current ? 'kts-invoice-operate-goods-list-itemName-drag-container-' + site : undefined)
|
|
10734
10753
|
}));
|
|
10735
10754
|
}
|
|
10736
10755
|
|
|
@@ -11137,7 +11156,7 @@ var RowMenu = (function (props) {
|
|
|
11137
11156
|
// addComparison && arr.push(addComparison); // 添加商品对照
|
|
11138
11157
|
|
|
11139
11158
|
if (!goodsMenuExpand || goodsMenuExpand.length === 0) return arr;
|
|
11140
|
-
arr.unshift(
|
|
11159
|
+
arr.unshift(React.createElement(Menu.Divider, {
|
|
11141
11160
|
key: "divider-1"
|
|
11142
11161
|
}));
|
|
11143
11162
|
|
|
@@ -11153,17 +11172,17 @@ var RowMenu = (function (props) {
|
|
|
11153
11172
|
return undefined;
|
|
11154
11173
|
}
|
|
11155
11174
|
|
|
11156
|
-
return
|
|
11157
|
-
return
|
|
11175
|
+
return React.createElement(Menu, null, itemList.slice(2).map(function (e) {
|
|
11176
|
+
return React.createElement(Menu.Item, {
|
|
11158
11177
|
key: e.key,
|
|
11159
11178
|
onClick: e.onClick
|
|
11160
|
-
},
|
|
11179
|
+
}, React.createElement(Text$1, {
|
|
11161
11180
|
strong: true
|
|
11162
11181
|
}, e.title));
|
|
11163
11182
|
}));
|
|
11164
11183
|
}, [itemList]);
|
|
11165
11184
|
var buttonList = React.useMemo(function () {
|
|
11166
|
-
return
|
|
11185
|
+
return React.createElement("div", {
|
|
11167
11186
|
style: {
|
|
11168
11187
|
flex: 1,
|
|
11169
11188
|
textAlign: 'left',
|
|
@@ -11171,7 +11190,7 @@ var RowMenu = (function (props) {
|
|
|
11171
11190
|
gap: 10
|
|
11172
11191
|
}
|
|
11173
11192
|
}, itemList.slice(0, 2).map(function (e) {
|
|
11174
|
-
return
|
|
11193
|
+
return React.createElement(Button, {
|
|
11175
11194
|
key: e.key,
|
|
11176
11195
|
type: 'link',
|
|
11177
11196
|
onClick: e.onClick,
|
|
@@ -11183,25 +11202,25 @@ var RowMenu = (function (props) {
|
|
|
11183
11202
|
}, [itemList]);
|
|
11184
11203
|
|
|
11185
11204
|
if (props.goods.level && props.goods.level > 0) {
|
|
11186
|
-
return
|
|
11205
|
+
return React.createElement(React.Fragment, null);
|
|
11187
11206
|
}
|
|
11188
11207
|
|
|
11189
11208
|
if (itemList.length === 0) {
|
|
11190
|
-
return
|
|
11209
|
+
return React.createElement(React.Fragment, null);
|
|
11191
11210
|
}
|
|
11192
11211
|
|
|
11193
|
-
return
|
|
11212
|
+
return React.createElement("span", {
|
|
11194
11213
|
style: {
|
|
11195
11214
|
padding: '0 0 0 10px',
|
|
11196
11215
|
display: 'flex'
|
|
11197
11216
|
}
|
|
11198
|
-
}, buttonList, overlay &&
|
|
11217
|
+
}, buttonList, overlay && React.createElement(Dropdown, {
|
|
11199
11218
|
overlay: overlay,
|
|
11200
11219
|
trigger: ['click']
|
|
11201
|
-
},
|
|
11220
|
+
}, React.createElement(Button, {
|
|
11202
11221
|
className: "kts-invoice-operate-goods-list-columns-row-menu ant-btn-icon-only",
|
|
11203
11222
|
type: "link"
|
|
11204
|
-
},
|
|
11223
|
+
}, React.createElement(Icon$1, {
|
|
11205
11224
|
component: SvgSpot
|
|
11206
11225
|
}))));
|
|
11207
11226
|
});
|
|
@@ -11215,9 +11234,9 @@ var TitleText = (function (props) {
|
|
|
11215
11234
|
return !!e.required;
|
|
11216
11235
|
})) || props.required;
|
|
11217
11236
|
}, [rules, props.required]);
|
|
11218
|
-
return
|
|
11237
|
+
return React.createElement(React.Fragment, null, required ? React.createElement(Text$2, {
|
|
11219
11238
|
type: "danger"
|
|
11220
|
-
}, "*") :
|
|
11239
|
+
}, "*") : React.createElement(React.Fragment, null), children);
|
|
11221
11240
|
});
|
|
11222
11241
|
|
|
11223
11242
|
var css_248z$7 = ".kts-invoice-operate-goods-list-itemName-input {\n display: flex;\n flex: 1;\n padding-left: 10px;\n height: 31px;\n}\n.kts-invoice-operate-goods-list-itemName-input .ktsAntX-select {\n width: 100%;\n}\n.kts-invoice-operate-goods-list-itemName-input .ktsAntX-select .ktsAntX-select-selector {\n height: 100%;\n}\n";
|
|
@@ -11411,14 +11430,14 @@ function ItemNameInput(props) {
|
|
|
11411
11430
|
React.useEffect(function () {
|
|
11412
11431
|
setValue(props.value);
|
|
11413
11432
|
}, [props.value]);
|
|
11414
|
-
return
|
|
11433
|
+
return React.createElement("div", {
|
|
11415
11434
|
className: 'kts-invoice-operate-goods-list-itemName-input'
|
|
11416
|
-
}, props.shorthand &&
|
|
11435
|
+
}, props.shorthand && React.createElement("span", {
|
|
11417
11436
|
style: {
|
|
11418
11437
|
alignSelf: 'center',
|
|
11419
11438
|
fontSize: 12
|
|
11420
11439
|
}
|
|
11421
|
-
}, "*", props.shorthand, "*"),
|
|
11440
|
+
}, "*", props.shorthand, "*"), React.createElement(AutoComplete$1, {
|
|
11422
11441
|
onSearch: onSearch,
|
|
11423
11442
|
value: props.value,
|
|
11424
11443
|
options: options.map(function (e) {
|
|
@@ -11431,7 +11450,7 @@ function ItemNameInput(props) {
|
|
|
11431
11450
|
return rootElement || document.body;
|
|
11432
11451
|
},
|
|
11433
11452
|
onSelect: onChangeAutoComplete
|
|
11434
|
-
},
|
|
11453
|
+
}, React.createElement(Input, {
|
|
11435
11454
|
style: {
|
|
11436
11455
|
height: '100%',
|
|
11437
11456
|
border: 'none'
|
|
@@ -11543,9 +11562,9 @@ function ItemCodeInput(props) {
|
|
|
11543
11562
|
return _ref2.apply(this, arguments);
|
|
11544
11563
|
};
|
|
11545
11564
|
}(), [options, controller]);
|
|
11546
|
-
return
|
|
11565
|
+
return React.createElement("div", {
|
|
11547
11566
|
className: 'kts-invoice-operate-goods-list-itemCode-input'
|
|
11548
|
-
},
|
|
11567
|
+
}, React.createElement(AutoComplete$1, {
|
|
11549
11568
|
onSearch: onSearch,
|
|
11550
11569
|
value: props.value,
|
|
11551
11570
|
options: options.map(function (e) {
|
|
@@ -11557,7 +11576,7 @@ function ItemCodeInput(props) {
|
|
|
11557
11576
|
return rootElement || document.body;
|
|
11558
11577
|
},
|
|
11559
11578
|
onSelect: onChangeAutoComplete
|
|
11560
|
-
},
|
|
11579
|
+
}, React.createElement(Input, {
|
|
11561
11580
|
style: {
|
|
11562
11581
|
height: '100%',
|
|
11563
11582
|
border: 'none'
|
|
@@ -12738,7 +12757,7 @@ function Drag$1(props) {
|
|
|
12738
12757
|
var currentGood = controller.state.goodsListState.goodsList.filter(function (e) {
|
|
12739
12758
|
return e.$index === record.$index;
|
|
12740
12759
|
})[0];
|
|
12741
|
-
mounting(
|
|
12760
|
+
mounting(React.createElement(DragDiv, _objectSpread2({}, currentGood)));
|
|
12742
12761
|
rowList.forEach(function (e) {
|
|
12743
12762
|
e.addEventListener('mousemove', onMousemove);
|
|
12744
12763
|
});
|
|
@@ -12899,7 +12918,7 @@ function Drag$1(props) {
|
|
|
12899
12918
|
|
|
12900
12919
|
|
|
12901
12920
|
function insert() {
|
|
12902
|
-
mounting(
|
|
12921
|
+
mounting(React.createElement(React.Fragment, null));
|
|
12903
12922
|
controller.run( /*#__PURE__*/function () {
|
|
12904
12923
|
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(s) {
|
|
12905
12924
|
var _s$goodsListState$dra, container, current, site, goodsList, goodsMap, _currentGood, currentIndex, moveGoods;
|
|
@@ -12978,7 +12997,7 @@ function Drag$1(props) {
|
|
|
12978
12997
|
}
|
|
12979
12998
|
}, [controller, record, disabled]);
|
|
12980
12999
|
var renderButton = React.useMemo(function () {
|
|
12981
|
-
return
|
|
13000
|
+
return React.createElement(Button, {
|
|
12982
13001
|
type: 'link',
|
|
12983
13002
|
style: {
|
|
12984
13003
|
padding: 0
|
|
@@ -12989,13 +13008,13 @@ function Drag$1(props) {
|
|
|
12989
13008
|
},
|
|
12990
13009
|
className: "kts-invoice-operate-goods-list-itemName-drag",
|
|
12991
13010
|
onMouseOver: controller.saveEditGood
|
|
12992
|
-
},
|
|
13011
|
+
}, React.createElement(Icon, {
|
|
12993
13012
|
component: SvgI001
|
|
12994
13013
|
}));
|
|
12995
13014
|
}, [onMouseDown, controller]);
|
|
12996
13015
|
|
|
12997
13016
|
if (disabled) {
|
|
12998
|
-
return
|
|
13017
|
+
return React.createElement(Popover, {
|
|
12999
13018
|
content: '您还有未编辑完成的商品',
|
|
13000
13019
|
trigger: 'focus'
|
|
13001
13020
|
}, renderButton);
|
|
@@ -13035,51 +13054,13 @@ function DragDiv(props) {
|
|
|
13035
13054
|
window.removeEventListener('mousemove', onMousemove);
|
|
13036
13055
|
};
|
|
13037
13056
|
});
|
|
13038
|
-
return
|
|
13057
|
+
return React.createElement("div", {
|
|
13039
13058
|
className: "kts-invoice-operate-goods-list-itemName-drag-div",
|
|
13040
13059
|
style: {
|
|
13041
13060
|
top: y,
|
|
13042
13061
|
left: x
|
|
13043
13062
|
}
|
|
13044
|
-
},
|
|
13045
|
-
}
|
|
13046
|
-
|
|
13047
|
-
var _path$4, _path2$1, _path3$1;
|
|
13048
|
-
|
|
13049
|
-
function _extends$4() { _extends$4 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$4.apply(this, arguments); }
|
|
13050
|
-
|
|
13051
|
-
function SvgI001$1(props) {
|
|
13052
|
-
return /*#__PURE__*/createElement("svg", _extends$4({
|
|
13053
|
-
className: "I001_svg__icon",
|
|
13054
|
-
viewBox: "0 0 1024 1024",
|
|
13055
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
13056
|
-
width: 200,
|
|
13057
|
-
height: 200
|
|
13058
|
-
}, props), _path$4 || (_path$4 = /*#__PURE__*/createElement("path", {
|
|
13059
|
-
d: "M879.973 997.088H146.455c-67.235 0-122.213-54.978-122.213-122.213V141.236c0-67.235 54.978-122.212 122.213-122.212h733.639c67.235 0 122.212 54.977 122.212 122.212v733.64c0 67.113-54.977 122.212-122.333 122.212zM146.455 80.069c-36.652 0-61.167 24.394-61.167 61.167v733.64c0 36.65 24.394 61.166 61.167 61.166h733.639c36.651 0 61.167-24.394 61.167-61.167V141.236c0-36.651-24.394-61.167-61.167-61.167h-733.64zm0 0"
|
|
13060
|
-
})), _path2$1 || (_path2$1 = /*#__PURE__*/createElement("path", {
|
|
13061
|
-
d: "M757.76 538.578H268.667c-18.326 0-30.583-12.257-30.583-30.583s12.257-30.583 30.583-30.583H757.76c18.326 0 30.583 12.257 30.583 30.583s-12.257 30.583-30.583 30.583zm0 0"
|
|
13062
|
-
})), _path3$1 || (_path3$1 = /*#__PURE__*/createElement("path", {
|
|
13063
|
-
d: "M513.214 783.125c-18.326 0-30.584-12.258-30.584-30.584V263.45c0-18.326 12.258-30.584 30.584-30.584s30.583 12.258 30.583 30.584V752.54c0 18.326-12.258 30.584-30.583 30.584zm0 0"
|
|
13064
|
-
})));
|
|
13065
|
-
}
|
|
13066
|
-
|
|
13067
|
-
var _path$5, _path2$2;
|
|
13068
|
-
|
|
13069
|
-
function _extends$5() { _extends$5 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$5.apply(this, arguments); }
|
|
13070
|
-
|
|
13071
|
-
function SvgI002(props) {
|
|
13072
|
-
return /*#__PURE__*/createElement("svg", _extends$5({
|
|
13073
|
-
className: "I002_svg__icon",
|
|
13074
|
-
viewBox: "0 0 1024 1024",
|
|
13075
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
13076
|
-
width: 200,
|
|
13077
|
-
height: 200
|
|
13078
|
-
}, props), _path$5 || (_path$5 = /*#__PURE__*/createElement("path", {
|
|
13079
|
-
d: "M879.973 997.088H146.455c-67.235 0-122.213-54.978-122.213-122.213V141.236c0-67.235 54.978-122.212 122.213-122.212h733.639c67.235 0 122.212 54.977 122.212 122.212v733.64c0 67.113-54.977 122.212-122.333 122.212zM146.455 80.069c-36.652 0-61.167 24.394-61.167 61.167v733.64c0 36.65 24.394 61.166 61.167 61.166h733.639c36.651 0 61.167-24.394 61.167-61.167V141.236c0-36.651-24.394-61.167-61.167-61.167h-733.64zm0 0"
|
|
13080
|
-
})), _path2$2 || (_path2$2 = /*#__PURE__*/createElement("path", {
|
|
13081
|
-
d: "M757.76 538.578H268.667c-18.326 0-30.583-12.257-30.583-30.583s12.257-30.583 30.583-30.583H757.76c18.326 0 30.583 12.257 30.583 30.583s-12.257 30.583-30.583 30.583zm0 0"
|
|
13082
|
-
})));
|
|
13063
|
+
}, React.createElement("span", null, props.itemName), React.createElement("span", null, props.itemModelName), React.createElement("span", null, props.unit));
|
|
13083
13064
|
}
|
|
13084
13065
|
|
|
13085
13066
|
function Expand(props) {
|
|
@@ -13096,15 +13077,14 @@ function Expand(props) {
|
|
|
13096
13077
|
|
|
13097
13078
|
if ((_goodsMap$get = goodsMap.get(record.$index)) === null || _goodsMap$get === void 0 ? void 0 : _goodsMap$get.children) {
|
|
13098
13079
|
if (expandedRowKeys.includes(record.$index)) {
|
|
13099
|
-
return
|
|
13080
|
+
return React.createElement(Button$1, {
|
|
13100
13081
|
type: 'text',
|
|
13101
13082
|
style: {
|
|
13102
13083
|
width: 'auto',
|
|
13103
|
-
color: "#0074ff"
|
|
13084
|
+
color: "#0074ff",
|
|
13085
|
+
padding: 0
|
|
13104
13086
|
},
|
|
13105
|
-
icon
|
|
13106
|
-
component: SvgI002
|
|
13107
|
-
}),
|
|
13087
|
+
// icon={<Icon component={I002Svg} />}
|
|
13108
13088
|
onClick: controller.pipeline( /*#__PURE__*/function () {
|
|
13109
13089
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(s, e) {
|
|
13110
13090
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -13128,17 +13108,16 @@ function Expand(props) {
|
|
|
13128
13108
|
return _ref.apply(this, arguments);
|
|
13129
13109
|
};
|
|
13130
13110
|
}())
|
|
13131
|
-
});
|
|
13111
|
+
}, "\u6536\u8D77");
|
|
13132
13112
|
} else {
|
|
13133
|
-
return
|
|
13113
|
+
return React.createElement(Button$1, {
|
|
13134
13114
|
type: 'text',
|
|
13135
13115
|
style: {
|
|
13136
13116
|
width: 'auto',
|
|
13137
|
-
color: "#0074ff"
|
|
13117
|
+
color: "#0074ff",
|
|
13118
|
+
padding: 0
|
|
13138
13119
|
},
|
|
13139
|
-
icon
|
|
13140
|
-
component: SvgI001$1
|
|
13141
|
-
}),
|
|
13120
|
+
// icon={<Icon component={I001Svg} />}
|
|
13142
13121
|
onClick: controller.pipeline( /*#__PURE__*/function () {
|
|
13143
13122
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(s, e) {
|
|
13144
13123
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
@@ -13160,10 +13139,10 @@ function Expand(props) {
|
|
|
13160
13139
|
return _ref2.apply(this, arguments);
|
|
13161
13140
|
};
|
|
13162
13141
|
}())
|
|
13163
|
-
});
|
|
13142
|
+
}, "\u5C55\u5F00");
|
|
13164
13143
|
}
|
|
13165
13144
|
} else {
|
|
13166
|
-
return
|
|
13145
|
+
return React.createElement(React.Fragment, null);
|
|
13167
13146
|
}
|
|
13168
13147
|
}
|
|
13169
13148
|
|
|
@@ -13298,17 +13277,17 @@ var useColumns = (function (form) {
|
|
|
13298
13277
|
width: 40,
|
|
13299
13278
|
align: 'center',
|
|
13300
13279
|
render: function render(_, record) {
|
|
13301
|
-
return
|
|
13280
|
+
return React.createElement(Drag$1, {
|
|
13302
13281
|
record: record
|
|
13303
13282
|
});
|
|
13304
13283
|
}
|
|
13305
13284
|
}, {
|
|
13306
13285
|
title: ' ',
|
|
13307
13286
|
key: 'expand',
|
|
13308
|
-
width:
|
|
13287
|
+
width: 50,
|
|
13309
13288
|
align: 'center',
|
|
13310
13289
|
render: function render(_, record) {
|
|
13311
|
-
return
|
|
13290
|
+
return React.createElement(Expand, {
|
|
13312
13291
|
record: record
|
|
13313
13292
|
});
|
|
13314
13293
|
}
|
|
@@ -13318,7 +13297,7 @@ var useColumns = (function (form) {
|
|
|
13318
13297
|
dataIndex: 'serialNo',
|
|
13319
13298
|
width: 50,
|
|
13320
13299
|
render: function render(e) {
|
|
13321
|
-
return
|
|
13300
|
+
return React.createElement("span", {
|
|
13322
13301
|
style: {
|
|
13323
13302
|
padding: '0 10px'
|
|
13324
13303
|
}
|
|
@@ -13330,13 +13309,13 @@ var useColumns = (function (form) {
|
|
|
13330
13309
|
width: 119,
|
|
13331
13310
|
render: function render(_, record) {
|
|
13332
13311
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index && model !== 'prefab') {
|
|
13333
|
-
return
|
|
13312
|
+
return React.createElement(Form.Item, null, getFieldDecorator('itemCode', {
|
|
13334
13313
|
initialValue: editGood.itemCode,
|
|
13335
13314
|
rules: [].concat(_toConsumableArray(getReplenishRules('itemCode')), [{
|
|
13336
13315
|
pattern: /^.{1,19}$/,
|
|
13337
13316
|
message: '商品编码长度不能超过19位'
|
|
13338
13317
|
}])
|
|
13339
|
-
})(
|
|
13318
|
+
})(React.createElement(ItemCodeInput, {
|
|
13340
13319
|
onChange: function () {
|
|
13341
13320
|
var _onChange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
13342
13321
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
@@ -13362,7 +13341,7 @@ var useColumns = (function (form) {
|
|
|
13362
13341
|
}()
|
|
13363
13342
|
})));
|
|
13364
13343
|
} else {
|
|
13365
|
-
return
|
|
13344
|
+
return React.createElement("span", {
|
|
13366
13345
|
style: {
|
|
13367
13346
|
padding: '0 10px'
|
|
13368
13347
|
}
|
|
@@ -13370,13 +13349,13 @@ var useColumns = (function (form) {
|
|
|
13370
13349
|
}
|
|
13371
13350
|
}
|
|
13372
13351
|
}, {
|
|
13373
|
-
title:
|
|
13352
|
+
title: React.createElement(TitleText, {
|
|
13374
13353
|
required: true
|
|
13375
13354
|
}, "\u9879\u76EE\u540D\u79F0"),
|
|
13376
13355
|
key: 'itemName',
|
|
13377
13356
|
render: function render(_, record) {
|
|
13378
13357
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index && model !== 'prefab') {
|
|
13379
|
-
return
|
|
13358
|
+
return React.createElement(Form.Item, null, React.createElement("div", {
|
|
13380
13359
|
style: {
|
|
13381
13360
|
display: 'flex'
|
|
13382
13361
|
}
|
|
@@ -13423,17 +13402,17 @@ var useColumns = (function (form) {
|
|
|
13423
13402
|
return validator;
|
|
13424
13403
|
}()
|
|
13425
13404
|
}])
|
|
13426
|
-
})(
|
|
13405
|
+
})(React.createElement(ItemNameInput, {
|
|
13427
13406
|
editGood: editGood,
|
|
13428
13407
|
shorthand: editGood.shorthand,
|
|
13429
13408
|
onChange: function onChange() {
|
|
13430
13409
|
onChangeItemName(controller, form, record);
|
|
13431
13410
|
}
|
|
13432
|
-
})),
|
|
13411
|
+
})), React.createElement("div", {
|
|
13433
13412
|
className: "kts-invoice-operate-goods-list-able-list-itemName-import"
|
|
13434
|
-
}, controller.getGoodsList && model !== 'readOnly' &&
|
|
13413
|
+
}, controller.getGoodsList && model !== 'readOnly' && React.createElement(Tooltip, {
|
|
13435
13414
|
title: "\u70B9\u51FB\u4ECE\u5546\u54C1\u7BA1\u7406\u4E2D\u6DFB\u52A0\u5546\u54C1\u4FE1\u606F"
|
|
13436
|
-
},
|
|
13415
|
+
}, React.createElement(Button, {
|
|
13437
13416
|
onClick: controller.pipeline( /*#__PURE__*/function () {
|
|
13438
13417
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(s) {
|
|
13439
13418
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
@@ -13458,7 +13437,7 @@ var useColumns = (function (form) {
|
|
|
13458
13437
|
icon: "plus-circle"
|
|
13459
13438
|
})))));
|
|
13460
13439
|
} else {
|
|
13461
|
-
return
|
|
13440
|
+
return React.createElement(MyItemNameDiv, {
|
|
13462
13441
|
valueT: formatSearch(getItemNameWithShorthand({
|
|
13463
13442
|
shorthand: record.shorthand,
|
|
13464
13443
|
full: record.itemNameSelf || ''
|
|
@@ -13472,17 +13451,17 @@ var useColumns = (function (form) {
|
|
|
13472
13451
|
}
|
|
13473
13452
|
}
|
|
13474
13453
|
}, {
|
|
13475
|
-
title:
|
|
13454
|
+
title: React.createElement(TitleText, {
|
|
13476
13455
|
rules: (_columnsReplenish$ite = columnsReplenish['itemModelName']) === null || _columnsReplenish$ite === void 0 ? void 0 : _columnsReplenish$ite.rules
|
|
13477
13456
|
}, "\u89C4\u683C\u578B\u53F7"),
|
|
13478
13457
|
key: 'itemModelName',
|
|
13479
13458
|
width: 119,
|
|
13480
13459
|
render: function render(_, record) {
|
|
13481
13460
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index && model !== 'prefab') {
|
|
13482
|
-
return
|
|
13461
|
+
return React.createElement(Form.Item, null, getFieldDecorator('itemModelName', {
|
|
13483
13462
|
initialValue: isMyShow ? editGood.itemModelNameSelf : editGood.itemModelName,
|
|
13484
13463
|
rules: getReplenishRules('itemModelName')
|
|
13485
|
-
})(
|
|
13464
|
+
})(React.createElement(MyInput, {
|
|
13486
13465
|
onChange: function () {
|
|
13487
13466
|
var _onChange2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5() {
|
|
13488
13467
|
var key, value;
|
|
@@ -13515,7 +13494,7 @@ var useColumns = (function (form) {
|
|
|
13515
13494
|
}()
|
|
13516
13495
|
})));
|
|
13517
13496
|
} else {
|
|
13518
|
-
return
|
|
13497
|
+
return React.createElement(MyItemNameDiv, {
|
|
13519
13498
|
valueT: formatSearch(record.itemModelNameSelf, searchValue),
|
|
13520
13499
|
valueF: formatSearch(record.itemModelName, searchValue),
|
|
13521
13500
|
isMyShow: isMyShow
|
|
@@ -13523,17 +13502,17 @@ var useColumns = (function (form) {
|
|
|
13523
13502
|
}
|
|
13524
13503
|
}
|
|
13525
13504
|
}, {
|
|
13526
|
-
title:
|
|
13505
|
+
title: React.createElement(TitleText, {
|
|
13527
13506
|
rules: (_columnsReplenish$uni = columnsReplenish['unit']) === null || _columnsReplenish$uni === void 0 ? void 0 : _columnsReplenish$uni.rules
|
|
13528
13507
|
}, "\u5355\u4F4D"),
|
|
13529
13508
|
key: 'unit',
|
|
13530
13509
|
width: 70,
|
|
13531
13510
|
render: function render(_, record) {
|
|
13532
13511
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index && model !== 'prefab') {
|
|
13533
|
-
return
|
|
13512
|
+
return React.createElement(Form.Item, null, getFieldDecorator('unit', {
|
|
13534
13513
|
initialValue: editGood.unit,
|
|
13535
13514
|
rules: getReplenishRules('unit')
|
|
13536
|
-
})(
|
|
13515
|
+
})(React.createElement(AutoComplete$2, {
|
|
13537
13516
|
style: {
|
|
13538
13517
|
width: '100%'
|
|
13539
13518
|
},
|
|
@@ -13571,7 +13550,7 @@ var useColumns = (function (form) {
|
|
|
13571
13550
|
}()
|
|
13572
13551
|
})));
|
|
13573
13552
|
} else {
|
|
13574
|
-
return
|
|
13553
|
+
return React.createElement("span", {
|
|
13575
13554
|
style: {
|
|
13576
13555
|
padding: '0 10px'
|
|
13577
13556
|
}
|
|
@@ -13579,7 +13558,7 @@ var useColumns = (function (form) {
|
|
|
13579
13558
|
}
|
|
13580
13559
|
}
|
|
13581
13560
|
}, {
|
|
13582
|
-
title:
|
|
13561
|
+
title: React.createElement(TitleText, {
|
|
13583
13562
|
rules: (_columnsReplenish$qua = columnsReplenish['quantity']) === null || _columnsReplenish$qua === void 0 ? void 0 : _columnsReplenish$qua.rules
|
|
13584
13563
|
}, "\u6570\u91CF"),
|
|
13585
13564
|
dataIndex: 'quantity',
|
|
@@ -13588,7 +13567,7 @@ var useColumns = (function (form) {
|
|
|
13588
13567
|
width: 149,
|
|
13589
13568
|
render: function render(value, record) {
|
|
13590
13569
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index && model !== 'prefab') {
|
|
13591
|
-
return
|
|
13570
|
+
return React.createElement(Form.Item, null, getFieldDecorator('quantity', {
|
|
13592
13571
|
initialValue: nonScientificNotation(editGood.quantity),
|
|
13593
13572
|
getValueFromEvent: onNumberValueChange,
|
|
13594
13573
|
rules: [].concat(_toConsumableArray(getReplenishRules('quantity')), [{
|
|
@@ -13634,7 +13613,7 @@ var useColumns = (function (form) {
|
|
|
13634
13613
|
return validator;
|
|
13635
13614
|
}()
|
|
13636
13615
|
}])
|
|
13637
|
-
})(
|
|
13616
|
+
})(React.createElement(MyInput, {
|
|
13638
13617
|
style: {
|
|
13639
13618
|
textAlign: 'right'
|
|
13640
13619
|
},
|
|
@@ -13666,7 +13645,7 @@ var useColumns = (function (form) {
|
|
|
13666
13645
|
}()
|
|
13667
13646
|
})));
|
|
13668
13647
|
} else {
|
|
13669
|
-
return
|
|
13648
|
+
return React.createElement("span", {
|
|
13670
13649
|
style: {
|
|
13671
13650
|
padding: '0 10px'
|
|
13672
13651
|
}
|
|
@@ -13674,7 +13653,7 @@ var useColumns = (function (form) {
|
|
|
13674
13653
|
}
|
|
13675
13654
|
}
|
|
13676
13655
|
}, {
|
|
13677
|
-
title:
|
|
13656
|
+
title: React.createElement(TitleText, {
|
|
13678
13657
|
rules: (_columnsReplenish$pri = columnsReplenish['priceIncludeTax']) === null || _columnsReplenish$pri === void 0 ? void 0 : _columnsReplenish$pri.rules
|
|
13679
13658
|
}, "\u5355\u4EF7(\u542B\u7A0E)"),
|
|
13680
13659
|
dataIndex: 'priceIncludeTax',
|
|
@@ -13683,7 +13662,7 @@ var useColumns = (function (form) {
|
|
|
13683
13662
|
width: 149,
|
|
13684
13663
|
render: function render(value, record) {
|
|
13685
13664
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index && model !== 'prefab') {
|
|
13686
|
-
return
|
|
13665
|
+
return React.createElement(Form.Item, null, getFieldDecorator('priceIncludeTax', {
|
|
13687
13666
|
initialValue: nonScientificNotation(editGood.priceIncludeTax),
|
|
13688
13667
|
getValueFromEvent: onNumberValueChange,
|
|
13689
13668
|
rules: [].concat(_toConsumableArray(getReplenishRules('priceIncludeTax')), [{
|
|
@@ -13729,7 +13708,7 @@ var useColumns = (function (form) {
|
|
|
13729
13708
|
return validator;
|
|
13730
13709
|
}()
|
|
13731
13710
|
}])
|
|
13732
|
-
})(
|
|
13711
|
+
})(React.createElement(MyInput, {
|
|
13733
13712
|
style: {
|
|
13734
13713
|
textAlign: 'right'
|
|
13735
13714
|
},
|
|
@@ -13741,7 +13720,7 @@ var useColumns = (function (form) {
|
|
|
13741
13720
|
}
|
|
13742
13721
|
})));
|
|
13743
13722
|
} else {
|
|
13744
|
-
return
|
|
13723
|
+
return React.createElement("span", {
|
|
13745
13724
|
style: {
|
|
13746
13725
|
padding: '0 10px'
|
|
13747
13726
|
}
|
|
@@ -13749,7 +13728,7 @@ var useColumns = (function (form) {
|
|
|
13749
13728
|
}
|
|
13750
13729
|
}
|
|
13751
13730
|
}, {
|
|
13752
|
-
title:
|
|
13731
|
+
title: React.createElement(TitleText, {
|
|
13753
13732
|
rules: (_columnsReplenish$pri2 = columnsReplenish['priceExcludeTax']) === null || _columnsReplenish$pri2 === void 0 ? void 0 : _columnsReplenish$pri2.rules
|
|
13754
13733
|
}, "\u5355\u4EF7(\u4E0D\u542B\u7A0E)"),
|
|
13755
13734
|
dataIndex: 'priceExcludeTax',
|
|
@@ -13758,7 +13737,7 @@ var useColumns = (function (form) {
|
|
|
13758
13737
|
width: 149,
|
|
13759
13738
|
render: function render(value, record) {
|
|
13760
13739
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index && model !== 'prefab') {
|
|
13761
|
-
return
|
|
13740
|
+
return React.createElement(Form.Item, null, getFieldDecorator('priceExcludeTax', {
|
|
13762
13741
|
initialValue: nonScientificNotation(editGood.priceExcludeTax),
|
|
13763
13742
|
getValueFromEvent: onNumberValueChange,
|
|
13764
13743
|
rules: [].concat(_toConsumableArray(getReplenishRules('priceExcludeTax')), [{
|
|
@@ -13804,7 +13783,7 @@ var useColumns = (function (form) {
|
|
|
13804
13783
|
return validator;
|
|
13805
13784
|
}()
|
|
13806
13785
|
}])
|
|
13807
|
-
})(
|
|
13786
|
+
})(React.createElement(MyInput, {
|
|
13808
13787
|
style: {
|
|
13809
13788
|
textAlign: 'right'
|
|
13810
13789
|
},
|
|
@@ -13816,7 +13795,7 @@ var useColumns = (function (form) {
|
|
|
13816
13795
|
}
|
|
13817
13796
|
})));
|
|
13818
13797
|
} else {
|
|
13819
|
-
return
|
|
13798
|
+
return React.createElement("span", {
|
|
13820
13799
|
style: {
|
|
13821
13800
|
padding: '0 10px'
|
|
13822
13801
|
}
|
|
@@ -13824,7 +13803,7 @@ var useColumns = (function (form) {
|
|
|
13824
13803
|
}
|
|
13825
13804
|
}
|
|
13826
13805
|
}, {
|
|
13827
|
-
title:
|
|
13806
|
+
title: React.createElement(TitleText, {
|
|
13828
13807
|
required: true
|
|
13829
13808
|
}, "\u91D1\u989D(\u542B\u7A0E)"),
|
|
13830
13809
|
dataIndex: 'lineAmountIncludeTax',
|
|
@@ -13833,7 +13812,7 @@ var useColumns = (function (form) {
|
|
|
13833
13812
|
align: 'right',
|
|
13834
13813
|
render: function render(value, record) {
|
|
13835
13814
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index && model !== 'prefab') {
|
|
13836
|
-
return
|
|
13815
|
+
return React.createElement(Form.Item, null, getFieldDecorator('lineAmountIncludeTax', {
|
|
13837
13816
|
initialValue: editGood.lineAmountIncludeTax,
|
|
13838
13817
|
getValueFromEvent: onNumberValueChange,
|
|
13839
13818
|
rules: [].concat(_toConsumableArray(getReplenishRules('lineAmountIncludeTax')), [{
|
|
@@ -13893,7 +13872,7 @@ var useColumns = (function (form) {
|
|
|
13893
13872
|
return validator;
|
|
13894
13873
|
}()
|
|
13895
13874
|
}])
|
|
13896
|
-
})(
|
|
13875
|
+
})(React.createElement(MyInput, {
|
|
13897
13876
|
style: {
|
|
13898
13877
|
textAlign: 'right'
|
|
13899
13878
|
},
|
|
@@ -13904,7 +13883,7 @@ var useColumns = (function (form) {
|
|
|
13904
13883
|
}
|
|
13905
13884
|
})));
|
|
13906
13885
|
} else {
|
|
13907
|
-
return
|
|
13886
|
+
return React.createElement("span", {
|
|
13908
13887
|
style: {
|
|
13909
13888
|
padding: '0 10px'
|
|
13910
13889
|
}
|
|
@@ -13912,7 +13891,7 @@ var useColumns = (function (form) {
|
|
|
13912
13891
|
}
|
|
13913
13892
|
}
|
|
13914
13893
|
}, {
|
|
13915
|
-
title:
|
|
13894
|
+
title: React.createElement(TitleText, {
|
|
13916
13895
|
required: true
|
|
13917
13896
|
}, "\u91D1\u989D(\u4E0D\u542B\u7A0E)"),
|
|
13918
13897
|
dataIndex: 'lineAmountExcludeTax',
|
|
@@ -13921,7 +13900,7 @@ var useColumns = (function (form) {
|
|
|
13921
13900
|
width: 119,
|
|
13922
13901
|
render: function render(value, record) {
|
|
13923
13902
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index && model !== 'prefab') {
|
|
13924
|
-
return
|
|
13903
|
+
return React.createElement(Form.Item, null, getFieldDecorator('lineAmountExcludeTax', {
|
|
13925
13904
|
initialValue: editGood.lineAmountExcludeTax,
|
|
13926
13905
|
getValueFromEvent: onNumberValueChange,
|
|
13927
13906
|
rules: [].concat(_toConsumableArray(getReplenishRules('lineAmountExcludeTax')), [{
|
|
@@ -13956,7 +13935,7 @@ var useColumns = (function (form) {
|
|
|
13956
13935
|
return validator;
|
|
13957
13936
|
}()
|
|
13958
13937
|
}])
|
|
13959
|
-
})(
|
|
13938
|
+
})(React.createElement(MyInput, {
|
|
13960
13939
|
style: {
|
|
13961
13940
|
textAlign: 'right'
|
|
13962
13941
|
},
|
|
@@ -13967,7 +13946,7 @@ var useColumns = (function (form) {
|
|
|
13967
13946
|
}
|
|
13968
13947
|
})));
|
|
13969
13948
|
} else {
|
|
13970
|
-
return
|
|
13949
|
+
return React.createElement("span", {
|
|
13971
13950
|
style: {
|
|
13972
13951
|
padding: '0 10px'
|
|
13973
13952
|
}
|
|
@@ -13975,7 +13954,7 @@ var useColumns = (function (form) {
|
|
|
13975
13954
|
}
|
|
13976
13955
|
}
|
|
13977
13956
|
}, {
|
|
13978
|
-
title:
|
|
13957
|
+
title: React.createElement(TitleText, {
|
|
13979
13958
|
required: true
|
|
13980
13959
|
}, "\u7A0E\u7387"),
|
|
13981
13960
|
dataIndex: 'taxRate',
|
|
@@ -13984,7 +13963,7 @@ var useColumns = (function (form) {
|
|
|
13984
13963
|
width: 75,
|
|
13985
13964
|
render: function render(value, record) {
|
|
13986
13965
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index && !(model === 'prefab' && calculateType === '3')) {
|
|
13987
|
-
return
|
|
13966
|
+
return React.createElement(Form.Item, null, getFieldDecorator('taxRate', {
|
|
13988
13967
|
initialValue: editGood.taxRate,
|
|
13989
13968
|
rules: [].concat(_toConsumableArray(getReplenishRules('taxRate')), [{
|
|
13990
13969
|
required: true,
|
|
@@ -13993,7 +13972,7 @@ var useColumns = (function (form) {
|
|
|
13993
13972
|
pattern: /^[+-]?(0|([1-9]\d*))(\.\d+)?$/,
|
|
13994
13973
|
message: '请选择正确税率'
|
|
13995
13974
|
}])
|
|
13996
|
-
})(
|
|
13975
|
+
})(React.createElement(Select, {
|
|
13997
13976
|
className: "kts-invoice-operate-goods-list-table-tax-rate",
|
|
13998
13977
|
dropdownMenuStyle: {
|
|
13999
13978
|
textAlign: "right"
|
|
@@ -14010,13 +13989,13 @@ var useColumns = (function (form) {
|
|
|
14010
13989
|
onChangeTaxRate(controller, form, record);
|
|
14011
13990
|
}
|
|
14012
13991
|
}, (record.goodsTaxRateList || taxRateList).map(function (e, i) {
|
|
14013
|
-
return
|
|
13992
|
+
return React.createElement(Select.Option, {
|
|
14014
13993
|
key: i,
|
|
14015
13994
|
value: e
|
|
14016
13995
|
}, e, "%");
|
|
14017
13996
|
}))));
|
|
14018
13997
|
} else {
|
|
14019
|
-
return
|
|
13998
|
+
return React.createElement("span", {
|
|
14020
13999
|
style: {
|
|
14021
14000
|
padding: '0 10px'
|
|
14022
14001
|
}
|
|
@@ -14024,7 +14003,7 @@ var useColumns = (function (form) {
|
|
|
14024
14003
|
}
|
|
14025
14004
|
}
|
|
14026
14005
|
}, {
|
|
14027
|
-
title:
|
|
14006
|
+
title: React.createElement(TitleText, {
|
|
14028
14007
|
rules: (_columnsReplenish$tax = columnsReplenish['taxAmount']) === null || _columnsReplenish$tax === void 0 ? void 0 : _columnsReplenish$tax.rules
|
|
14029
14008
|
}, "\u7A0E\u989D"),
|
|
14030
14009
|
dataIndex: 'taxAmount',
|
|
@@ -14036,11 +14015,11 @@ var useColumns = (function (form) {
|
|
|
14036
14015
|
return getFieldDecorator('taxAmount', {
|
|
14037
14016
|
initialValue: editGood.taxAmount,
|
|
14038
14017
|
rules: getReplenishRules('taxAmount')
|
|
14039
|
-
})(
|
|
14018
|
+
})(React.createElement(MyDiv, {
|
|
14040
14019
|
loading: isCipher(changeField, 'taxAmount')
|
|
14041
14020
|
}));
|
|
14042
14021
|
} else {
|
|
14043
|
-
return
|
|
14022
|
+
return React.createElement("span", {
|
|
14044
14023
|
style: {
|
|
14045
14024
|
padding: '0 10px'
|
|
14046
14025
|
}
|
|
@@ -14055,42 +14034,42 @@ var useColumns = (function (form) {
|
|
|
14055
14034
|
render: function render(e) {
|
|
14056
14035
|
switch (e) {
|
|
14057
14036
|
case LineAttributeType$1.折扣行:
|
|
14058
|
-
return
|
|
14037
|
+
return React.createElement("span", {
|
|
14059
14038
|
style: {
|
|
14060
14039
|
padding: '0 10px'
|
|
14061
14040
|
}
|
|
14062
14041
|
}, "\u6298\u6263\u884C");
|
|
14063
14042
|
|
|
14064
14043
|
case LineAttributeType$1.被折扣行:
|
|
14065
|
-
return
|
|
14044
|
+
return React.createElement("span", {
|
|
14066
14045
|
style: {
|
|
14067
14046
|
padding: '0 10px'
|
|
14068
14047
|
}
|
|
14069
14048
|
}, "\u88AB\u6298\u6263\u884C");
|
|
14070
14049
|
|
|
14071
14050
|
case LineAttributeType$1.赠品行:
|
|
14072
|
-
return
|
|
14051
|
+
return React.createElement("span", {
|
|
14073
14052
|
style: {
|
|
14074
14053
|
padding: '0 10px'
|
|
14075
14054
|
}
|
|
14076
14055
|
}, "\u8D60\u54C1\u884C");
|
|
14077
14056
|
|
|
14078
14057
|
case LineAttributeType$1.折让行:
|
|
14079
|
-
return
|
|
14058
|
+
return React.createElement("span", {
|
|
14080
14059
|
style: {
|
|
14081
14060
|
padding: '0 10px'
|
|
14082
14061
|
}
|
|
14083
14062
|
}, "\u6298\u8BA9\u884C");
|
|
14084
14063
|
|
|
14085
14064
|
case LineAttributeType$1.正常:
|
|
14086
|
-
return
|
|
14065
|
+
return React.createElement("span", {
|
|
14087
14066
|
style: {
|
|
14088
14067
|
padding: '0 10px'
|
|
14089
14068
|
}
|
|
14090
14069
|
}, "\u6B63\u5E38\u884C");
|
|
14091
14070
|
|
|
14092
14071
|
default:
|
|
14093
|
-
return
|
|
14072
|
+
return React.createElement("span", {
|
|
14094
14073
|
style: {
|
|
14095
14074
|
padding: '0 10px'
|
|
14096
14075
|
}
|
|
@@ -14104,7 +14083,7 @@ var useColumns = (function (form) {
|
|
|
14104
14083
|
width: 130,
|
|
14105
14084
|
fixed: 'right',
|
|
14106
14085
|
render: function render(_value, record) {
|
|
14107
|
-
return
|
|
14086
|
+
return React.createElement(RowMenu, {
|
|
14108
14087
|
key: record.lineAttribute,
|
|
14109
14088
|
goods: record
|
|
14110
14089
|
});
|
|
@@ -14140,7 +14119,7 @@ var useColumns = (function (form) {
|
|
|
14140
14119
|
});
|
|
14141
14120
|
});
|
|
14142
14121
|
}, [isTaxIncluded, editGood, goodsList, controller, changeField, deduction, isMyShow, searchValue, model, columnsReplenish, columnshide, isStart]);
|
|
14143
|
-
return columns;
|
|
14122
|
+
return controller.setColumnsConfig ? controller.setColumnsConfig(columns) : columns;
|
|
14144
14123
|
});
|
|
14145
14124
|
/** 字段 */
|
|
14146
14125
|
|
|
@@ -14164,13 +14143,13 @@ var MyInput = /*#__PURE__*/function (_React$Component) {
|
|
|
14164
14143
|
key: "render",
|
|
14165
14144
|
value: function render() {
|
|
14166
14145
|
if (this.props.loading) {
|
|
14167
|
-
return
|
|
14146
|
+
return React.createElement(Spin, {
|
|
14168
14147
|
size: "small"
|
|
14169
|
-
},
|
|
14148
|
+
}, React.createElement(Input, _objectSpread2(_objectSpread2({}, this.props), {}, {
|
|
14170
14149
|
autoComplete: "off"
|
|
14171
14150
|
})));
|
|
14172
14151
|
} else {
|
|
14173
|
-
return
|
|
14152
|
+
return React.createElement(Input, _objectSpread2(_objectSpread2({}, this.props), {}, {
|
|
14174
14153
|
autoComplete: "off"
|
|
14175
14154
|
}));
|
|
14176
14155
|
}
|
|
@@ -14195,15 +14174,15 @@ var MyDiv = /*#__PURE__*/function (_React$Component2) {
|
|
|
14195
14174
|
key: "render",
|
|
14196
14175
|
value: function render() {
|
|
14197
14176
|
if (this.props.loading) {
|
|
14198
|
-
return
|
|
14177
|
+
return React.createElement(Spin, {
|
|
14199
14178
|
size: "small"
|
|
14200
|
-
},
|
|
14179
|
+
}, React.createElement("span", {
|
|
14201
14180
|
style: {
|
|
14202
14181
|
padding: '0 10px'
|
|
14203
14182
|
}
|
|
14204
14183
|
}, this.props.value));
|
|
14205
14184
|
} else {
|
|
14206
|
-
return
|
|
14185
|
+
return React.createElement("span", {
|
|
14207
14186
|
style: {
|
|
14208
14187
|
padding: '0 10px'
|
|
14209
14188
|
}
|
|
@@ -14236,9 +14215,9 @@ var MyItemNameDiv = /*#__PURE__*/function (_React$Component3) {
|
|
|
14236
14215
|
|
|
14237
14216
|
if (isMyShow) {
|
|
14238
14217
|
if (valueT) {
|
|
14239
|
-
return
|
|
14218
|
+
return React.createElement(Tooltip, {
|
|
14240
14219
|
title: valueT
|
|
14241
|
-
},
|
|
14220
|
+
}, React.createElement("span", {
|
|
14242
14221
|
style: {
|
|
14243
14222
|
padding: '0 10px',
|
|
14244
14223
|
color: '#0074ff',
|
|
@@ -14249,9 +14228,9 @@ var MyItemNameDiv = /*#__PURE__*/function (_React$Component3) {
|
|
|
14249
14228
|
}
|
|
14250
14229
|
}, valueT));
|
|
14251
14230
|
} else {
|
|
14252
|
-
return
|
|
14231
|
+
return React.createElement(Tooltip, {
|
|
14253
14232
|
title: valueF
|
|
14254
|
-
},
|
|
14233
|
+
}, React.createElement("span", {
|
|
14255
14234
|
style: {
|
|
14256
14235
|
padding: '0 10px',
|
|
14257
14236
|
display: 'block',
|
|
@@ -14263,9 +14242,9 @@ var MyItemNameDiv = /*#__PURE__*/function (_React$Component3) {
|
|
|
14263
14242
|
}
|
|
14264
14243
|
} else {
|
|
14265
14244
|
if (valueF) {
|
|
14266
|
-
return
|
|
14245
|
+
return React.createElement(Tooltip, {
|
|
14267
14246
|
title: valueF
|
|
14268
|
-
},
|
|
14247
|
+
}, React.createElement("span", {
|
|
14269
14248
|
style: {
|
|
14270
14249
|
padding: '0 10px',
|
|
14271
14250
|
display: 'block',
|
|
@@ -14275,9 +14254,9 @@ var MyItemNameDiv = /*#__PURE__*/function (_React$Component3) {
|
|
|
14275
14254
|
}
|
|
14276
14255
|
}, valueF));
|
|
14277
14256
|
} else {
|
|
14278
|
-
return
|
|
14257
|
+
return React.createElement(Tooltip, {
|
|
14279
14258
|
title: valueT
|
|
14280
|
-
},
|
|
14259
|
+
}, React.createElement("span", {
|
|
14281
14260
|
style: {
|
|
14282
14261
|
padding: '0 10px',
|
|
14283
14262
|
color: '#0074ff',
|
|
@@ -14304,7 +14283,7 @@ function formatSearch(value, search) {
|
|
|
14304
14283
|
return dcoding(e);
|
|
14305
14284
|
}).join("<span class=\"kts-invoice-operate-goods-list-table-search-protrude\" >".concat(search, "</span>"));
|
|
14306
14285
|
|
|
14307
|
-
return
|
|
14286
|
+
return React.createElement("span", {
|
|
14308
14287
|
dangerouslySetInnerHTML: {
|
|
14309
14288
|
__html: __html
|
|
14310
14289
|
}
|
|
@@ -14759,7 +14738,7 @@ var useRowSelection = (function () {
|
|
|
14759
14738
|
};
|
|
14760
14739
|
}(), [controller]);
|
|
14761
14740
|
var columnTitle = React.useMemo(function () {
|
|
14762
|
-
return
|
|
14741
|
+
return React.createElement(Checkbox, {
|
|
14763
14742
|
onChange: onClickSelectAll,
|
|
14764
14743
|
indeterminate: indeterminate,
|
|
14765
14744
|
checked: isAll
|
|
@@ -14969,16 +14948,16 @@ var useEndowCodeButton = (function () {
|
|
|
14969
14948
|
}, _callee2);
|
|
14970
14949
|
})), [controller]);
|
|
14971
14950
|
var menuItem = React.useMemo(function () {
|
|
14972
|
-
if (model === 'readOnly') return
|
|
14973
|
-
return
|
|
14951
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
14952
|
+
return React.createElement(Menu.Item, {
|
|
14974
14953
|
key: "2",
|
|
14975
14954
|
onClick: onClick,
|
|
14976
14955
|
disabled: disabled
|
|
14977
14956
|
}, "\u6279\u91CF\u8D4B\u7801");
|
|
14978
14957
|
}, [onClick, disabled, model]);
|
|
14979
14958
|
var button = React.useMemo(function () {
|
|
14980
|
-
if (model === 'readOnly') return
|
|
14981
|
-
return
|
|
14959
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
14960
|
+
return React.createElement(Button, {
|
|
14982
14961
|
onClick: onClick,
|
|
14983
14962
|
disabled: disabled
|
|
14984
14963
|
}, "\u6279\u91CF\u8D4B\u7801");
|
|
@@ -15044,19 +15023,19 @@ var useDelRowButton = (function () {
|
|
|
15044
15023
|
}())();
|
|
15045
15024
|
}, [controller]);
|
|
15046
15025
|
var menuItem = React.useMemo(function () {
|
|
15047
|
-
if (model === 'prefab') return
|
|
15048
|
-
if (model === 'readOnly') return
|
|
15049
|
-
return
|
|
15026
|
+
if (model === 'prefab') return React.createElement(React.Fragment, null);
|
|
15027
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
15028
|
+
return React.createElement(Menu.Item, {
|
|
15050
15029
|
key: "1",
|
|
15051
15030
|
onClick: onClick,
|
|
15052
15031
|
disabled: disabled
|
|
15053
15032
|
}, " \u5220\u9664\u884C ");
|
|
15054
15033
|
}, [model, onClick, disabled]);
|
|
15055
15034
|
var button = React.useMemo(function () {
|
|
15056
|
-
if (isRemRow === false) return
|
|
15057
|
-
if (model === 'prefab') return
|
|
15058
|
-
if (model === 'readOnly') return
|
|
15059
|
-
return
|
|
15035
|
+
if (isRemRow === false) return React.createElement(React.Fragment, null);
|
|
15036
|
+
if (model === 'prefab') return React.createElement(React.Fragment, null);
|
|
15037
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
15038
|
+
return React.createElement(Button, {
|
|
15060
15039
|
onClick: onClick,
|
|
15061
15040
|
disabled: disabled
|
|
15062
15041
|
}, "\u6279\u91CF\u5220\u9664");
|
|
@@ -15251,14 +15230,14 @@ var useAddDiscountRowButton = (function () {
|
|
|
15251
15230
|
}, _callee3);
|
|
15252
15231
|
})), [controller]);
|
|
15253
15232
|
var menuItem = React.useMemo(function () {
|
|
15254
|
-
return model === 'prefab' ?
|
|
15233
|
+
return model === 'prefab' ? React.createElement(React.Fragment, null) : isAddDiscount !== false ? React.createElement(Menu.Item, {
|
|
15255
15234
|
key: "0",
|
|
15256
15235
|
onClick: onClick,
|
|
15257
15236
|
disabled: disabled
|
|
15258
15237
|
}, "\u6DFB\u52A0\u6298\u6263\u884C") : undefined;
|
|
15259
15238
|
}, [isAddDiscount, disabled, onClick]);
|
|
15260
15239
|
var drawer = React.useMemo(function () {
|
|
15261
|
-
return
|
|
15240
|
+
return React.createElement(Drawer, {
|
|
15262
15241
|
className: "kts-invoice-operate-goods-list-add-discount-row",
|
|
15263
15242
|
width: 540,
|
|
15264
15243
|
title: "\u6DFB\u52A0\u6298\u6263\u884C",
|
|
@@ -15266,7 +15245,7 @@ var useAddDiscountRowButton = (function () {
|
|
|
15266
15245
|
destroyOnClose: true,
|
|
15267
15246
|
onClose: onClose,
|
|
15268
15247
|
visible: visible
|
|
15269
|
-
},
|
|
15248
|
+
}, React.createElement(DrawerBody, null));
|
|
15270
15249
|
}, [visible, onClose]);
|
|
15271
15250
|
return {
|
|
15272
15251
|
menuItem: menuItem,
|
|
@@ -15383,13 +15362,13 @@ var DrawerBody = decorator(Form.create())(function (props) {
|
|
|
15383
15362
|
});
|
|
15384
15363
|
});
|
|
15385
15364
|
}, 300), [form, lineAmountSum]);
|
|
15386
|
-
return
|
|
15365
|
+
return React.createElement(React.Fragment, null, React.createElement("div", {
|
|
15387
15366
|
className: "add-discount-row-body"
|
|
15388
|
-
},
|
|
15367
|
+
}, React.createElement("p", null, "\u5F53\u524D\u9009\u62E9", React.createElement(Text$3, {
|
|
15389
15368
|
type: "danger"
|
|
15390
|
-
}, discountGoodIndex.length), "\u884C\u88AB\u6298\u6263\u5546\u54C1\u884C\uFF0C\u91D1\u989D\u5408\u8BA1\xA5",
|
|
15369
|
+
}, discountGoodIndex.length), "\u884C\u88AB\u6298\u6263\u5546\u54C1\u884C\uFF0C\u91D1\u989D\u5408\u8BA1\xA5", React.createElement(Text$3, {
|
|
15391
15370
|
type: "danger"
|
|
15392
|
-
}, lineAmountSum.toFixed(2))),
|
|
15371
|
+
}, lineAmountSum.toFixed(2))), React.createElement(Form.Item, {
|
|
15393
15372
|
label: "\u6298\u6263\u7387\uFF1A"
|
|
15394
15373
|
}, getFieldDecorator('discount', {
|
|
15395
15374
|
rules: [{
|
|
@@ -15419,11 +15398,11 @@ var DrawerBody = decorator(Form.create())(function (props) {
|
|
|
15419
15398
|
callback();
|
|
15420
15399
|
}
|
|
15421
15400
|
}]
|
|
15422
|
-
})(
|
|
15401
|
+
})(React.createElement(Input, {
|
|
15423
15402
|
placeholder: "\u8BF7\u8F93\u5165\u5927\u4E8E0\u5C0F\u4E8E100\u7684\u6570\u5B57",
|
|
15424
15403
|
suffix: "%",
|
|
15425
15404
|
onChange: onChangeDiscount
|
|
15426
|
-
}))),
|
|
15405
|
+
}))), React.createElement(Form.Item, {
|
|
15427
15406
|
label: "\u6298\u6263\u91D1\u989D\uFF1A"
|
|
15428
15407
|
}, getFieldDecorator('discolineAmountunt', {
|
|
15429
15408
|
rules: [{
|
|
@@ -15453,19 +15432,19 @@ var DrawerBody = decorator(Form.create())(function (props) {
|
|
|
15453
15432
|
callback();
|
|
15454
15433
|
}
|
|
15455
15434
|
}]
|
|
15456
|
-
})(
|
|
15435
|
+
})(React.createElement(Input, {
|
|
15457
15436
|
placeholder: "\u8BF7\u8F93\u5165\u5927\u4E8E0\u5C0F\u4E8E\u91D1\u989D\u5408\u8BA1\u7684\u6570\u5B57",
|
|
15458
15437
|
suffix: "\xA5",
|
|
15459
15438
|
onChange: onChangeDiscolineAmountunt
|
|
15460
|
-
})))),
|
|
15439
|
+
})))), React.createElement("div", {
|
|
15461
15440
|
className: "add-discount-row-footer"
|
|
15462
|
-
},
|
|
15441
|
+
}, React.createElement(Button, {
|
|
15463
15442
|
block: true,
|
|
15464
15443
|
style: {
|
|
15465
15444
|
marginBottom: 12
|
|
15466
15445
|
},
|
|
15467
15446
|
onClick: onClose
|
|
15468
|
-
}, "\u53D6\u6D88"),
|
|
15447
|
+
}, "\u53D6\u6D88"), React.createElement(Button, {
|
|
15469
15448
|
type: "primary",
|
|
15470
15449
|
block: true,
|
|
15471
15450
|
onClick: onClickSave
|
|
@@ -15562,13 +15541,13 @@ function useMergeDetails() {
|
|
|
15562
15541
|
}];
|
|
15563
15542
|
}, [selectedGoodIndex, onClickManual, onClickAuto]);
|
|
15564
15543
|
var button = React.useMemo(function () {
|
|
15565
|
-
if (!isMergeDetails) return
|
|
15566
|
-
return
|
|
15544
|
+
if (!isMergeDetails) return React.createElement(React.Fragment, null);
|
|
15545
|
+
return React.createElement(Dropdown$1, {
|
|
15567
15546
|
menu: {
|
|
15568
15547
|
items: items
|
|
15569
15548
|
},
|
|
15570
15549
|
trigger: ['click']
|
|
15571
|
-
},
|
|
15550
|
+
}, React.createElement(Button, null, "\u5408\u5E76\u660E\u7EC6"));
|
|
15572
15551
|
}, [selectedGoodIndex.length, isMergeDetails]);
|
|
15573
15552
|
return {
|
|
15574
15553
|
/** 按钮 */
|
|
@@ -15654,8 +15633,8 @@ function useMergeDiscount() {
|
|
|
15654
15633
|
}, _callee);
|
|
15655
15634
|
})), [controller]);
|
|
15656
15635
|
var button = React.useMemo(function () {
|
|
15657
|
-
if (!isMergeDiscount) return
|
|
15658
|
-
return
|
|
15636
|
+
if (!isMergeDiscount) return React.createElement(React.Fragment, null);
|
|
15637
|
+
return React.createElement(Button, {
|
|
15659
15638
|
onClick: onClick,
|
|
15660
15639
|
disabled: goodsList.length <= 1
|
|
15661
15640
|
}, "\u5408\u5E76\u6298\u6263");
|
|
@@ -15833,8 +15812,8 @@ function useSalesDiscount() {
|
|
|
15833
15812
|
}).length <= 0;
|
|
15834
15813
|
}, [goodsList]);
|
|
15835
15814
|
var button = React.useMemo(function () {
|
|
15836
|
-
if (!isSalesDiscount) return
|
|
15837
|
-
return
|
|
15815
|
+
if (!isSalesDiscount) return React.createElement(React.Fragment, null);
|
|
15816
|
+
return React.createElement(Button, {
|
|
15838
15817
|
onClick: onClick,
|
|
15839
15818
|
disabled: disabled
|
|
15840
15819
|
}, "\u9500\u552E\u6298\u8BA9");
|
|
@@ -16037,12 +16016,12 @@ function useSalesGifts() {
|
|
|
16037
16016
|
}, [selectedGoodIndex, onClickManual, onClickAuto]);
|
|
16038
16017
|
var button = React.useMemo(function () {
|
|
16039
16018
|
if (!isSalesGifts) return;
|
|
16040
|
-
return
|
|
16019
|
+
return React.createElement(Dropdown$1, {
|
|
16041
16020
|
menu: {
|
|
16042
16021
|
items: items
|
|
16043
16022
|
},
|
|
16044
16023
|
trigger: ['click']
|
|
16045
|
-
},
|
|
16024
|
+
}, React.createElement(Button, null, "\u9500\u552E\u8D60\u54C1"));
|
|
16046
16025
|
}, [items, isSalesGifts]);
|
|
16047
16026
|
return {
|
|
16048
16027
|
/** 按钮 */
|
|
@@ -16080,7 +16059,7 @@ var GoodsList = /*#__PURE__*/function (_React$Component) {
|
|
|
16080
16059
|
_createClass(GoodsList, [{
|
|
16081
16060
|
key: "render",
|
|
16082
16061
|
value: function render() {
|
|
16083
|
-
return
|
|
16062
|
+
return React.createElement(Main, _objectSpread2({}, this.props));
|
|
16084
16063
|
}
|
|
16085
16064
|
}]);
|
|
16086
16065
|
|
|
@@ -16282,22 +16261,22 @@ var Main = decorator(Form.create())(function (props) {
|
|
|
16282
16261
|
};
|
|
16283
16262
|
}())();
|
|
16284
16263
|
}, [controller, props.isSwitchTax]);
|
|
16285
|
-
return
|
|
16264
|
+
return React.createElement("div", {
|
|
16286
16265
|
className: "kts-invoice-operate-goods-list",
|
|
16287
16266
|
onClick: function onClick(e) {
|
|
16288
16267
|
e.stopPropagation();
|
|
16289
16268
|
}
|
|
16290
|
-
},
|
|
16269
|
+
}, React.createElement("div", {
|
|
16291
16270
|
className: "kts-invoice-operate-goods-list-able"
|
|
16292
|
-
},
|
|
16271
|
+
}, React.createElement("div", {
|
|
16293
16272
|
className: "kts-invoice-operate-goods-list-able-list"
|
|
16294
|
-
},
|
|
16273
|
+
}, React.createElement(AddRowButton, null), endowCodeButton.button, delRowButton.button, mergeDetails.button, mergeDiscount.button, addDiscountRowButton.drawer, salesDiscount.button, salesGifts.button, React.createElement(Search, null)), React.createElement("div", {
|
|
16295
16274
|
className: "kts-invoice-operate-goods-list-able-extend"
|
|
16296
|
-
}, props.menuExpansion,
|
|
16275
|
+
}, props.menuExpansion, React.createElement(DescribeSwitch, null), React.createElement(TaxIncludedSwitch, null))), React.createElement("div", {
|
|
16297
16276
|
className: classNames('kts-invoice-operate-goods-list-table', {
|
|
16298
16277
|
'kts-invoice-operate-prefab': isprefab
|
|
16299
16278
|
})
|
|
16300
|
-
},
|
|
16279
|
+
}, React.createElement(TableVirtual, {
|
|
16301
16280
|
bordered: true,
|
|
16302
16281
|
size: "small",
|
|
16303
16282
|
rowKey: "$index",
|
|
@@ -16320,7 +16299,7 @@ var Main = decorator(Form.create())(function (props) {
|
|
|
16320
16299
|
}
|
|
16321
16300
|
};
|
|
16322
16301
|
}
|
|
16323
|
-
})),
|
|
16302
|
+
})), React.createElement("div", null, React.createElement(Statistics, null)));
|
|
16324
16303
|
});
|
|
16325
16304
|
|
|
16326
16305
|
var css_248z$c = ".kts-invoice-operate-seller {\n display: flex;\n}\n.kts-invoice-operate-seller .kts-invoice-operate-seller-message {\n flex: 1;\n display: flex;\n}\n.kts-invoice-operate-seller .kts-invoice-operate-seller-message .ktsAnt3x-descriptions-item-label {\n width: 179px;\n}\n.kts-invoice-operate-seller .kts-invoice-operate-seller-message .kts-invoice-operate-seller-message-list {\n width: 100%;\n}\n.kts-invoice-operate-seller .kts-invoice-operate-seller-message .kts-invoice-operate-seller-message-list .ktsAnt3x-descriptions-view {\n border: none;\n}\n.kts-invoice-operate-seller .kts-invoice-operate-seller-message .kts-invoice-operate-seller-message-list .ktsAnt3x-descriptions-item-label {\n padding: 0 10px;\n font-size: 12px;\n background-color: #fff;\n line-height: 30px;\n}\n.kts-invoice-operate-seller .kts-invoice-operate-seller-message .kts-invoice-operate-seller-message-list .ktsAnt3x-descriptions-item-label::before {\n content: '*';\n position: relative;\n color: red;\n font-weight: bold;\n margin-right: 2px;\n}\n.kts-invoice-operate-seller .kts-invoice-operate-seller-message .kts-invoice-operate-seller-message-list .ktsAnt3x-descriptions-item-content {\n padding: 0;\n}\n.kts-invoice-operate-seller .kts-invoice-operate-seller-message .kts-invoice-operate-seller-message-list .ktsAnt3x-descriptions-item-content .ktsAnt3x-input {\n box-shadow: none;\n border-color: #fff;\n border-radius: 0;\n padding: 0 10px;\n font-size: 12px;\n line-height: 30px;\n width: 100%;\n height: 30px;\n}\n.kts-invoice-operate-seller .kts-invoice-operate-seller-message .kts-invoice-operate-seller-message-list .ktsAnt3x-descriptions-item-content .ktsAnt3x-input:hover {\n border: 1 solid;\n border-color: #40a9ff;\n border-right-width: 1px !important;\n}\n.kts-invoice-operate-seller .kts-invoice-operate-seller-message .kts-invoice-operate-seller-message-list .ktsAnt3x-descriptions-item-content .has-error .ktsAnt3x-input,\n.kts-invoice-operate-seller .kts-invoice-operate-seller-message .kts-invoice-operate-seller-message-list .ktsAnt3x-descriptions-item-content .has-error .ktsAnt3x-input:hover {\n background-color: #fff;\n border: 1 solid;\n border-color: #f5222d;\n}\n.kts-invoice-operate-seller .kts-invoice-operate-seller-message .kts-invoice-operate-seller-message-list .ktsAnt3x-form-item {\n margin: 0;\n}\n.kts-invoice-operate-seller .kts-invoice-operate-seller-message .kts-invoice-operate-seller-message-list .ktsAnt3x-form-item-control {\n line-height: 0;\n}\n.kts-invoice-operate-seller .kts-invoice-operate-seller-message .kts-invoice-operate-seller-message-list .ktsAnt3x-form-explain {\n position: absolute;\n right: 5px;\n top: 6px;\n z-index: 10;\n}\n.kts-invoice-operate-seller .kts-invoice-operate-seller-remarks {\n border-left: 1px solid #dcdcdc;\n display: flex;\n flex: none;\n width: 458px;\n}\n.kts-invoice-operate-seller .kts-invoice-operate-seller-remarks-value {\n flex: 1;\n display: flex;\n flex-direction: column;\n}\n.kts-invoice-operate-seller .kts-invoice-operate-seller-remarks-value textarea {\n flex: 1;\n margin-bottom: 0;\n border: none;\n border-radius: 0;\n}\n.kts-invoice-operate-seller .kts-invoice-operate-seller-title {\n flex: none;\n width: 30px;\n height: 100%;\n text-align: center;\n border-right: 1px solid #dcdcdc;\n display: table;\n padding: 0 5px;\n}\n.kts-invoice-operate-seller .kts-invoice-operate-seller-title label {\n display: table-cell;\n vertical-align: middle;\n}\n";
|
|
@@ -16345,7 +16324,7 @@ var Buyer = /*#__PURE__*/function (_React$Component) {
|
|
|
16345
16324
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
16346
16325
|
|
|
16347
16326
|
_this.render = function () {
|
|
16348
|
-
return
|
|
16327
|
+
return React.createElement(Main$1, _objectSpread2({}, _this.props));
|
|
16349
16328
|
};
|
|
16350
16329
|
|
|
16351
16330
|
return _this;
|
|
@@ -16376,7 +16355,7 @@ var Main$1 = decorator(Form.create())(function (props) {
|
|
|
16376
16355
|
return [{
|
|
16377
16356
|
id: 'sellerName',
|
|
16378
16357
|
label: '销售方名称',
|
|
16379
|
-
node:
|
|
16358
|
+
node: React.createElement(Input, {
|
|
16380
16359
|
readOnly: model === 'prefab',
|
|
16381
16360
|
size: "small"
|
|
16382
16361
|
}),
|
|
@@ -16389,7 +16368,7 @@ var Main$1 = decorator(Form.create())(function (props) {
|
|
|
16389
16368
|
}, {
|
|
16390
16369
|
id: 'sellerNo',
|
|
16391
16370
|
label: '销售方纳税人识别号',
|
|
16392
|
-
node:
|
|
16371
|
+
node: React.createElement(Input, {
|
|
16393
16372
|
readOnly: model === 'prefab',
|
|
16394
16373
|
size: "small"
|
|
16395
16374
|
}),
|
|
@@ -16402,7 +16381,7 @@ var Main$1 = decorator(Form.create())(function (props) {
|
|
|
16402
16381
|
}, {
|
|
16403
16382
|
id: 'sellerAddress',
|
|
16404
16383
|
label: '销售方地址及电话',
|
|
16405
|
-
node:
|
|
16384
|
+
node: React.createElement(Input, {
|
|
16406
16385
|
readOnly: model === 'prefab',
|
|
16407
16386
|
size: "small"
|
|
16408
16387
|
}),
|
|
@@ -16415,7 +16394,7 @@ var Main$1 = decorator(Form.create())(function (props) {
|
|
|
16415
16394
|
}, {
|
|
16416
16395
|
id: 'sellerBank',
|
|
16417
16396
|
label: '销售方开户行及账号',
|
|
16418
|
-
node:
|
|
16397
|
+
node: React.createElement(Input, {
|
|
16419
16398
|
readOnly: model === 'prefab',
|
|
16420
16399
|
size: "small"
|
|
16421
16400
|
}),
|
|
@@ -16441,31 +16420,31 @@ var Main$1 = decorator(Form.create())(function (props) {
|
|
|
16441
16420
|
return getFieldDecorator(e.id, e.options)(e.node);
|
|
16442
16421
|
}
|
|
16443
16422
|
}, [props.formRender]);
|
|
16444
|
-
return
|
|
16423
|
+
return React.createElement(Form, null, React.createElement("div", {
|
|
16445
16424
|
className: "kts-invoice-operate-seller"
|
|
16446
|
-
},
|
|
16425
|
+
}, React.createElement("div", {
|
|
16447
16426
|
className: "kts-invoice-operate-seller-message"
|
|
16448
|
-
},
|
|
16427
|
+
}, React.createElement("div", {
|
|
16449
16428
|
className: "kts-invoice-operate-seller-title"
|
|
16450
|
-
},
|
|
16429
|
+
}, React.createElement("label", null, "\u9500\u552E\u65B9")), React.createElement(Descriptions, {
|
|
16451
16430
|
className: "kts-invoice-operate-seller-message-list",
|
|
16452
16431
|
size: "small",
|
|
16453
16432
|
column: 1,
|
|
16454
16433
|
bordered: true
|
|
16455
16434
|
}, formItem.map(function (e, i) {
|
|
16456
|
-
return
|
|
16435
|
+
return React.createElement(Descriptions.Item, {
|
|
16457
16436
|
key: i,
|
|
16458
16437
|
label: e.label
|
|
16459
|
-
},
|
|
16460
|
-
}))),
|
|
16438
|
+
}, React.createElement(Form.Item, null, createFormItem(e)));
|
|
16439
|
+
}))), React.createElement("div", {
|
|
16461
16440
|
className: "kts-invoice-operate-seller-remarks"
|
|
16462
|
-
},
|
|
16441
|
+
}, React.createElement("div", {
|
|
16463
16442
|
className: "kts-invoice-operate-seller-title"
|
|
16464
|
-
},
|
|
16443
|
+
}, React.createElement("label", null, "\u5907\u6CE8")), React.createElement("div", {
|
|
16465
16444
|
className: "kts-invoice-operate-seller-remarks-value"
|
|
16466
16445
|
}, getFieldDecorator('remarks', {
|
|
16467
16446
|
initialValue: props.defaultsellerRemarks
|
|
16468
|
-
})(
|
|
16447
|
+
})(React.createElement(TextArea, null))))));
|
|
16469
16448
|
});
|
|
16470
16449
|
|
|
16471
16450
|
var ImportBuyerButton = (function () {
|
|
@@ -16492,7 +16471,7 @@ var ImportBuyerButton = (function () {
|
|
|
16492
16471
|
};
|
|
16493
16472
|
}())();
|
|
16494
16473
|
}, [controller]);
|
|
16495
|
-
return
|
|
16474
|
+
return React.createElement(React.Fragment, null, controller.getBuyerList && React.createElement(Button, {
|
|
16496
16475
|
type: "link",
|
|
16497
16476
|
icon: "plus-circle",
|
|
16498
16477
|
onClick: onClick
|
|
@@ -16531,29 +16510,29 @@ var BuyerNameInput = (function (props) {
|
|
|
16531
16510
|
var content = React.useMemo(function () {
|
|
16532
16511
|
var _dataSource$recent;
|
|
16533
16512
|
|
|
16534
|
-
return
|
|
16513
|
+
return React.createElement("div", {
|
|
16535
16514
|
className: 'kts-invoice-operate-buyer-name-content'
|
|
16536
|
-
}, loading ?
|
|
16515
|
+
}, loading ? React.createElement("div", {
|
|
16537
16516
|
style: {
|
|
16538
16517
|
textAlign: 'center'
|
|
16539
16518
|
}
|
|
16540
|
-
},
|
|
16519
|
+
}, React.createElement(Spin, null)) : React.createElement(React.Fragment, null, React.createElement("div", {
|
|
16541
16520
|
className: 'kts-invoice-operate-buyer-name-content-block',
|
|
16542
16521
|
style: {
|
|
16543
16522
|
padding: '14px 10px'
|
|
16544
16523
|
}
|
|
16545
|
-
},
|
|
16524
|
+
}, React.createElement("label", {
|
|
16546
16525
|
style: {
|
|
16547
16526
|
marginBottom: 10
|
|
16548
16527
|
}
|
|
16549
|
-
}, "\u6700\u8FD1\u5F00\u5177"),
|
|
16528
|
+
}, "\u6700\u8FD1\u5F00\u5177"), React.createElement("ul", {
|
|
16550
16529
|
className: 'kts-invoice-operate-buyer-name-content-recently-issued'
|
|
16551
|
-
}, !dataSource.recent || dataSource.recent.length <= 0 ?
|
|
16530
|
+
}, !dataSource.recent || dataSource.recent.length <= 0 ? React.createElement(Empty, {
|
|
16552
16531
|
image: Empty.PRESENTED_IMAGE_SIMPLE
|
|
16553
16532
|
}) : (_dataSource$recent = dataSource.recent) === null || _dataSource$recent === void 0 ? void 0 : _dataSource$recent.map(function (e, i) {
|
|
16554
16533
|
var _dataSource$recent$le, _dataSource$recent2;
|
|
16555
16534
|
|
|
16556
|
-
return
|
|
16535
|
+
return React.createElement("li", {
|
|
16557
16536
|
key: i,
|
|
16558
16537
|
onClick: function onClick() {
|
|
16559
16538
|
onClickItem(e);
|
|
@@ -16561,37 +16540,37 @@ var BuyerNameInput = (function (props) {
|
|
|
16561
16540
|
style: {
|
|
16562
16541
|
marginBottom: interval(i, (_dataSource$recent$le = (_dataSource$recent2 = dataSource.recent) === null || _dataSource$recent2 === void 0 ? void 0 : _dataSource$recent2.length) !== null && _dataSource$recent$le !== void 0 ? _dataSource$recent$le : 0)
|
|
16563
16542
|
}
|
|
16564
|
-
},
|
|
16565
|
-
}))),
|
|
16543
|
+
}, React.createElement(MyTag, null, e.buyerName));
|
|
16544
|
+
}))), React.createElement(Divider, {
|
|
16566
16545
|
style: {
|
|
16567
16546
|
margin: "0 6px"
|
|
16568
16547
|
}
|
|
16569
|
-
}),
|
|
16548
|
+
}), React.createElement("div", {
|
|
16570
16549
|
className: 'kts-invoice-operate-buyer-name-content-block',
|
|
16571
16550
|
style: {
|
|
16572
16551
|
padding: '14px 10px 4px'
|
|
16573
16552
|
}
|
|
16574
|
-
},
|
|
16553
|
+
}, React.createElement("label", {
|
|
16575
16554
|
style: {
|
|
16576
16555
|
padding: '0 10px'
|
|
16577
16556
|
}
|
|
16578
|
-
}, "\u9009\u62E9\u516C\u53F8"),
|
|
16557
|
+
}, "\u9009\u62E9\u516C\u53F8"), React.createElement("div", {
|
|
16579
16558
|
style: {
|
|
16580
16559
|
maxHeight: 200,
|
|
16581
16560
|
overflow: "auto"
|
|
16582
16561
|
}
|
|
16583
|
-
}, !dataSource.list || dataSource.list.length <= 0 ?
|
|
16562
|
+
}, !dataSource.list || dataSource.list.length <= 0 ? React.createElement(Empty, {
|
|
16584
16563
|
image: Empty.PRESENTED_IMAGE_SIMPLE
|
|
16585
16564
|
}) : dataSource.list.map(function (e, i) {
|
|
16586
|
-
return
|
|
16565
|
+
return React.createElement("ul", {
|
|
16587
16566
|
key: i,
|
|
16588
16567
|
onClick: function onClick() {
|
|
16589
16568
|
onClickItem(e);
|
|
16590
16569
|
},
|
|
16591
16570
|
className: 'kts-invoice-operate-buyer-name-content-select-company'
|
|
16592
|
-
},
|
|
16571
|
+
}, React.createElement("li", {
|
|
16593
16572
|
title: e.buyerName
|
|
16594
|
-
}, e.buyerName),
|
|
16573
|
+
}, e.buyerName), React.createElement("li", {
|
|
16595
16574
|
title: e.buyerNo
|
|
16596
16575
|
}, e.buyerNo));
|
|
16597
16576
|
})))));
|
|
@@ -16632,7 +16611,7 @@ var BuyerNameInput = (function (props) {
|
|
|
16632
16611
|
}, [visible, props.value]);
|
|
16633
16612
|
|
|
16634
16613
|
if (model === 'prefab' || !autoContainer) {
|
|
16635
|
-
return
|
|
16614
|
+
return React.createElement(Input, {
|
|
16636
16615
|
size: "small",
|
|
16637
16616
|
autoComplete: "off",
|
|
16638
16617
|
value: props.value,
|
|
@@ -16643,14 +16622,14 @@ var BuyerNameInput = (function (props) {
|
|
|
16643
16622
|
});
|
|
16644
16623
|
}
|
|
16645
16624
|
|
|
16646
|
-
return
|
|
16625
|
+
return React.createElement(Popover$1, {
|
|
16647
16626
|
onVisibleChange: setVisible,
|
|
16648
16627
|
overlayClassName: 'kts-invoice-operate-buyer-name-popover',
|
|
16649
16628
|
placement: "bottomLeft",
|
|
16650
16629
|
trigger: "click",
|
|
16651
16630
|
visible: visible,
|
|
16652
16631
|
content: content
|
|
16653
|
-
},
|
|
16632
|
+
}, React.createElement(Input, {
|
|
16654
16633
|
size: "small",
|
|
16655
16634
|
autoComplete: "off",
|
|
16656
16635
|
value: props.value,
|
|
@@ -16728,7 +16707,7 @@ function useDataSource() {
|
|
|
16728
16707
|
}
|
|
16729
16708
|
|
|
16730
16709
|
function MyTag(props) {
|
|
16731
|
-
return
|
|
16710
|
+
return React.createElement("span", {
|
|
16732
16711
|
className: 'kts-invoice-operate-buyer-name-content-tag',
|
|
16733
16712
|
title: props.children
|
|
16734
16713
|
}, props.children);
|
|
@@ -16764,7 +16743,7 @@ var Buyer$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
16764
16743
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
16765
16744
|
|
|
16766
16745
|
_this.render = function () {
|
|
16767
|
-
return
|
|
16746
|
+
return React.createElement(Main$2, _objectSpread2({}, _this.props));
|
|
16768
16747
|
};
|
|
16769
16748
|
|
|
16770
16749
|
return _this;
|
|
@@ -16795,7 +16774,7 @@ var Main$2 = decorator(Form.create())(function (props) {
|
|
|
16795
16774
|
return [{
|
|
16796
16775
|
id: 'buyerName',
|
|
16797
16776
|
label: '购买方名称',
|
|
16798
|
-
node:
|
|
16777
|
+
node: React.createElement(Input, {
|
|
16799
16778
|
size: "small",
|
|
16800
16779
|
autoComplete: "off",
|
|
16801
16780
|
readOnly: model === 'prefab'
|
|
@@ -16809,7 +16788,7 @@ var Main$2 = decorator(Form.create())(function (props) {
|
|
|
16809
16788
|
}, {
|
|
16810
16789
|
id: 'buyerNo',
|
|
16811
16790
|
label: '购买方纳税人识别号',
|
|
16812
|
-
node:
|
|
16791
|
+
node: React.createElement(Input, {
|
|
16813
16792
|
size: "small",
|
|
16814
16793
|
autoComplete: "off",
|
|
16815
16794
|
readOnly: model === 'prefab'
|
|
@@ -16823,7 +16802,7 @@ var Main$2 = decorator(Form.create())(function (props) {
|
|
|
16823
16802
|
}, {
|
|
16824
16803
|
id: 'buyerAddress',
|
|
16825
16804
|
label: '购买方地址及电话',
|
|
16826
|
-
node:
|
|
16805
|
+
node: React.createElement(Input, {
|
|
16827
16806
|
size: "small",
|
|
16828
16807
|
autoComplete: "off",
|
|
16829
16808
|
readOnly: model === 'prefab'
|
|
@@ -16837,7 +16816,7 @@ var Main$2 = decorator(Form.create())(function (props) {
|
|
|
16837
16816
|
}, {
|
|
16838
16817
|
id: 'buyerBank',
|
|
16839
16818
|
label: '购买方开户行及账号',
|
|
16840
|
-
node:
|
|
16819
|
+
node: React.createElement(Input, {
|
|
16841
16820
|
size: "small",
|
|
16842
16821
|
autoComplete: "off",
|
|
16843
16822
|
readOnly: model === 'prefab'
|
|
@@ -16859,7 +16838,7 @@ var Main$2 = decorator(Form.create())(function (props) {
|
|
|
16859
16838
|
if (e.options.rules.some(function (e) {
|
|
16860
16839
|
return e.required;
|
|
16861
16840
|
})) {
|
|
16862
|
-
return
|
|
16841
|
+
return React.createElement(React.Fragment, null, React.createElement(Text$4, {
|
|
16863
16842
|
type: "danger"
|
|
16864
16843
|
}, "*"), e.label);
|
|
16865
16844
|
} else {
|
|
@@ -16869,29 +16848,29 @@ var Main$2 = decorator(Form.create())(function (props) {
|
|
|
16869
16848
|
return e.label;
|
|
16870
16849
|
}
|
|
16871
16850
|
}, []);
|
|
16872
|
-
return
|
|
16851
|
+
return React.createElement(Form, null, React.createElement("div", {
|
|
16873
16852
|
className: "kts-invoice-operate-buyer"
|
|
16874
|
-
},
|
|
16853
|
+
}, React.createElement("div", {
|
|
16875
16854
|
className: "kts-invoice-operate-buyer-message"
|
|
16876
|
-
},
|
|
16855
|
+
}, React.createElement("div", {
|
|
16877
16856
|
className: "kts-invoice-operate-buyer-title"
|
|
16878
|
-
},
|
|
16857
|
+
}, React.createElement("label", null, "\u8D2D\u4E70\u65B9")), React.createElement("div", {
|
|
16879
16858
|
className: "kts-invoice-operate-buyer-message-Import"
|
|
16880
|
-
}, model !== 'prefab' &&
|
|
16859
|
+
}, model !== 'prefab' && React.createElement(ImportBuyerButton, null)), React.createElement(Descriptions, {
|
|
16881
16860
|
className: "kts-invoice-operate-buyer-message-list",
|
|
16882
16861
|
size: "small",
|
|
16883
16862
|
column: 1,
|
|
16884
16863
|
bordered: true
|
|
16885
16864
|
}, formItem.map(function (item, i) {
|
|
16886
|
-
return
|
|
16865
|
+
return React.createElement(Descriptions.Item, {
|
|
16887
16866
|
key: i,
|
|
16888
16867
|
label: getlabel(item)
|
|
16889
|
-
},
|
|
16890
|
-
}))),
|
|
16868
|
+
}, React.createElement(Form.Item, null, getFieldDecorator(item.id, item.options)(autoContainer ? item.id === 'buyerName' ? React.createElement(BuyerNameInput, null) : item.node : item.node)));
|
|
16869
|
+
}))), React.createElement("div", {
|
|
16891
16870
|
className: "kts-invoice-operate-buyer-password"
|
|
16892
|
-
},
|
|
16871
|
+
}, React.createElement("div", {
|
|
16893
16872
|
className: "kts-invoice-operate-buyer-title"
|
|
16894
|
-
},
|
|
16873
|
+
}, React.createElement("label", null, "\u5BC6\u7801\u533A")), React.createElement("div", null))));
|
|
16895
16874
|
});
|
|
16896
16875
|
|
|
16897
16876
|
var css_248z$e = ".kts-invoice-operate-sign form {\n display: flex;\n}\n.kts-invoice-operate-sign form .ktsAnt3x-row.ktsAnt3x-form-item {\n margin: 0;\n}\n.kts-invoice-operate-sign form > div {\n flex: 1;\n text-align: center;\n}\n";
|
|
@@ -16908,21 +16887,21 @@ var Sign = decorator(Form.create())(function (props) {
|
|
|
16908
16887
|
}, []); // 注册 form
|
|
16909
16888
|
|
|
16910
16889
|
controller.useForm('sign', form);
|
|
16911
|
-
return
|
|
16890
|
+
return React.createElement("div", {
|
|
16912
16891
|
className: "kts-invoice-operate-sign"
|
|
16913
|
-
},
|
|
16892
|
+
}, React.createElement(Form, _objectSpread2({}, formItemLayout), React.createElement("div", null, React.createElement(Form.Item, {
|
|
16914
16893
|
label: "\u6536\u6B3E\u4EBA"
|
|
16915
16894
|
}, getFieldDecorator('payee', {
|
|
16916
16895
|
initialValue: props.defaultPayee
|
|
16917
|
-
})(
|
|
16896
|
+
})(React.createElement(Input, {
|
|
16918
16897
|
size: "small"
|
|
16919
|
-
})))),
|
|
16898
|
+
})))), React.createElement("div", null, React.createElement(Form.Item, {
|
|
16920
16899
|
label: "\u590D\u6838\u4EBA"
|
|
16921
16900
|
}, getFieldDecorator('reviewer', {
|
|
16922
16901
|
initialValue: props.defaultReviewer
|
|
16923
|
-
})(
|
|
16902
|
+
})(React.createElement(Input, {
|
|
16924
16903
|
size: "small"
|
|
16925
|
-
})))),
|
|
16904
|
+
})))), React.createElement("div", null, React.createElement(Form.Item, {
|
|
16926
16905
|
label: "\u5F00\u7968\u4EBA"
|
|
16927
16906
|
}, getFieldDecorator('issuer', {
|
|
16928
16907
|
initialValue: props.defaultIssuer,
|
|
@@ -16930,7 +16909,7 @@ var Sign = decorator(Form.create())(function (props) {
|
|
|
16930
16909
|
required: true,
|
|
16931
16910
|
message: '请输入开票人'
|
|
16932
16911
|
}]
|
|
16933
|
-
})(
|
|
16912
|
+
})(React.createElement(Input, {
|
|
16934
16913
|
size: "small"
|
|
16935
16914
|
}))))));
|
|
16936
16915
|
});
|
|
@@ -16959,21 +16938,21 @@ var InvoiceHeaderDigtal = decorator(Form.create())(function (props) {
|
|
|
16959
16938
|
return '电子发票(增值税专用发票)';
|
|
16960
16939
|
}, [props.title]);
|
|
16961
16940
|
controller.useForm('invoiceHeader', form);
|
|
16962
|
-
return
|
|
16941
|
+
return React.createElement("div", {
|
|
16963
16942
|
className: "kts-invoice-operate-invoice-digtal-header"
|
|
16964
|
-
},
|
|
16943
|
+
}, React.createElement("div", {
|
|
16965
16944
|
className: "digtal-header-title"
|
|
16966
16945
|
}, title), form.getFieldDecorator('tag', {
|
|
16967
16946
|
initialValue: props.defaultTag
|
|
16968
|
-
})(
|
|
16947
|
+
})(React.createElement(Tag, null)), React.createElement("div", {
|
|
16969
16948
|
className: "digtal-header-fields"
|
|
16970
16949
|
}, form.getFieldDecorator('no', {
|
|
16971
16950
|
initialValue: props.defaultNo
|
|
16972
|
-
})(
|
|
16951
|
+
})(React.createElement(Field, {
|
|
16973
16952
|
title: "\u53D1\u7968\u53F7\u7801\uFF1A"
|
|
16974
16953
|
})), form.getFieldDecorator('invoicingDate', {
|
|
16975
16954
|
initialValue: props.defaultInvoicingDate
|
|
16976
|
-
})(
|
|
16955
|
+
})(React.createElement(Field, {
|
|
16977
16956
|
title: "\u5F00\u7968\u65E5\u671F\uFF1A"
|
|
16978
16957
|
}))));
|
|
16979
16958
|
});
|
|
@@ -16998,15 +16977,15 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
16998
16977
|
value = _this$props.value;
|
|
16999
16978
|
|
|
17000
16979
|
if (value) {
|
|
17001
|
-
return
|
|
16980
|
+
return React.createElement("div", {
|
|
17002
16981
|
className: "digtal-header-field"
|
|
17003
|
-
},
|
|
16982
|
+
}, React.createElement("div", {
|
|
17004
16983
|
className: "digtal-header-field-title"
|
|
17005
|
-
}, title),
|
|
16984
|
+
}, title), React.createElement("div", {
|
|
17006
16985
|
className: "digtal-header-field-value"
|
|
17007
16986
|
}, value));
|
|
17008
16987
|
} else {
|
|
17009
|
-
return
|
|
16988
|
+
return React.createElement(React.Fragment, null);
|
|
17010
16989
|
}
|
|
17011
16990
|
}
|
|
17012
16991
|
}]);
|
|
@@ -17028,51 +17007,51 @@ var Tag = /*#__PURE__*/function (_React$Component2) {
|
|
|
17028
17007
|
_createClass(Tag, [{
|
|
17029
17008
|
key: "render",
|
|
17030
17009
|
value: function render() {
|
|
17031
|
-
return this.props.value ?
|
|
17010
|
+
return this.props.value ? React.createElement("div", {
|
|
17032
17011
|
className: "digtal-header-tag"
|
|
17033
|
-
}, this.props.value) :
|
|
17012
|
+
}, this.props.value) : React.createElement(React.Fragment, null);
|
|
17034
17013
|
}
|
|
17035
17014
|
}]);
|
|
17036
17015
|
|
|
17037
17016
|
return Tag;
|
|
17038
17017
|
}(React.Component);
|
|
17039
17018
|
|
|
17040
|
-
var _path$
|
|
17019
|
+
var _path$4;
|
|
17041
17020
|
|
|
17042
|
-
function _extends$
|
|
17021
|
+
function _extends$4() { _extends$4 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$4.apply(this, arguments); }
|
|
17043
17022
|
|
|
17044
17023
|
function SvgArrowUp(props) {
|
|
17045
|
-
return /*#__PURE__*/createElement("svg", _extends$
|
|
17024
|
+
return /*#__PURE__*/createElement("svg", _extends$4({
|
|
17046
17025
|
xmlns: "http://www.w3.org/2000/svg",
|
|
17047
17026
|
width: 13,
|
|
17048
17027
|
height: 13,
|
|
17049
17028
|
fill: "none"
|
|
17050
|
-
}, props), _path$
|
|
17029
|
+
}, props), _path$4 || (_path$4 = /*#__PURE__*/createElement("path", {
|
|
17051
17030
|
d: "M9.557 8.573a.338.338 0 01-.252-.114L6.508 5.367 3.711 8.46a.333.333 0 01-.497.005.404.404 0 01-.005-.538l3.048-3.37a.339.339 0 01.251-.114c.095 0 .185.041.252.114l3.048 3.37a.404.404 0 01-.005.538.337.337 0 01-.246.11z"
|
|
17052
17031
|
})));
|
|
17053
17032
|
}
|
|
17054
17033
|
|
|
17055
|
-
var _path$
|
|
17034
|
+
var _path$5;
|
|
17056
17035
|
|
|
17057
|
-
function _extends$
|
|
17036
|
+
function _extends$5() { _extends$5 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$5.apply(this, arguments); }
|
|
17058
17037
|
|
|
17059
17038
|
function SvgArrowDown(props) {
|
|
17060
|
-
return /*#__PURE__*/createElement("svg", _extends$
|
|
17039
|
+
return /*#__PURE__*/createElement("svg", _extends$5({
|
|
17061
17040
|
xmlns: "http://www.w3.org/2000/svg",
|
|
17062
17041
|
width: 12,
|
|
17063
17042
|
height: 13,
|
|
17064
17043
|
fill: "none"
|
|
17065
|
-
}, props), _path$
|
|
17044
|
+
}, props), _path$5 || (_path$5 = /*#__PURE__*/createElement("path", {
|
|
17066
17045
|
d: "M2.943 4.427c.092 0 .183.038.252.114l2.797 3.092L8.789 4.54a.333.333 0 01.497-.005.404.404 0 01.005.538l-3.048 3.37a.339.339 0 01-.251.114.339.339 0 01-.252-.114l-3.048-3.37a.404.404 0 01.005-.538.337.337 0 01.246-.11z"
|
|
17067
17046
|
})));
|
|
17068
17047
|
}
|
|
17069
17048
|
|
|
17070
17049
|
var _g, _defs$2;
|
|
17071
17050
|
|
|
17072
|
-
function _extends$
|
|
17051
|
+
function _extends$6() { _extends$6 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$6.apply(this, arguments); }
|
|
17073
17052
|
|
|
17074
17053
|
function SvgPlus(props) {
|
|
17075
|
-
return /*#__PURE__*/createElement("svg", _extends$
|
|
17054
|
+
return /*#__PURE__*/createElement("svg", _extends$6({
|
|
17076
17055
|
xmlns: "http://www.w3.org/2000/svg",
|
|
17077
17056
|
width: 16,
|
|
17078
17057
|
height: 15,
|
|
@@ -17210,59 +17189,59 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
17210
17189
|
React.useEffect(function () {
|
|
17211
17190
|
setExpand(typeof props.isExpand === 'boolean' ? props.isExpand : true);
|
|
17212
17191
|
}, [props.isExpand]);
|
|
17213
|
-
return
|
|
17192
|
+
return React.createElement("div", {
|
|
17214
17193
|
className: classNames("kts-invoice-operate-invoice-digtal-stakeholder", {
|
|
17215
17194
|
readOnly: readOnly
|
|
17216
17195
|
})
|
|
17217
|
-
},
|
|
17218
|
-
return
|
|
17219
|
-
}), !readOnly &&
|
|
17196
|
+
}, React.createElement("div", null, '购买方信息'.split('').map(function (e) {
|
|
17197
|
+
return React.createElement("span", null, e);
|
|
17198
|
+
}), !readOnly && React.createElement(Icon, {
|
|
17220
17199
|
className: "digtal-stakeholder-expand-button",
|
|
17221
17200
|
component: isExpand ? SvgArrowUp : SvgArrowDown,
|
|
17222
17201
|
onClick: onExpand
|
|
17223
|
-
})),
|
|
17202
|
+
})), React.createElement("div", null, React.createElement("div", {
|
|
17224
17203
|
style: {
|
|
17225
17204
|
marginTop: 20
|
|
17226
17205
|
},
|
|
17227
17206
|
className: 'natural-person-flag'
|
|
17228
|
-
}, props.isNaturalPerson === true &&
|
|
17207
|
+
}, props.isNaturalPerson === true && React.createElement(Form.Item, {
|
|
17229
17208
|
colon: false
|
|
17230
|
-
}, getFieldDecorator('naturalPersonFlag', {})(
|
|
17209
|
+
}, getFieldDecorator('naturalPersonFlag', {})(React.createElement(NaturalPersonFlag, {
|
|
17231
17210
|
readOnly: isReadOnly('naturalPersonFlag')
|
|
17232
|
-
})))),
|
|
17211
|
+
})))), React.createElement(Form, {
|
|
17233
17212
|
className: "digtal-stakeholder-form"
|
|
17234
|
-
},
|
|
17213
|
+
}, React.createElement(Row, {
|
|
17235
17214
|
gutter: [16, 0]
|
|
17236
|
-
},
|
|
17215
|
+
}, React.createElement(Col, {
|
|
17237
17216
|
span: 24
|
|
17238
|
-
},
|
|
17217
|
+
}, React.createElement(Form.Item, {
|
|
17239
17218
|
label: "\u540D\u79F0",
|
|
17240
17219
|
colon: false
|
|
17241
17220
|
}, getFieldDecorator('buyerName', {
|
|
17242
17221
|
rules: getRules('buyerName', RULES.companyName('购买方名称'))
|
|
17243
|
-
})(
|
|
17222
|
+
})(React.createElement(BuyerNameInput$1, {
|
|
17244
17223
|
myform: form,
|
|
17245
17224
|
fieldName: 'buyerName',
|
|
17246
17225
|
readOnly: isReadOnly('buyerName'),
|
|
17247
17226
|
placeholder: "\u8BF7\u8F93\u5165\u540D\u79F0",
|
|
17248
17227
|
autoComplete: "off",
|
|
17249
|
-
suffix: isShowImportButton === true &&
|
|
17228
|
+
suffix: isShowImportButton === true && React.createElement(Button$1, {
|
|
17250
17229
|
type: 'link',
|
|
17251
17230
|
style: {
|
|
17252
17231
|
padding: 0,
|
|
17253
17232
|
width: 20,
|
|
17254
17233
|
height: '100%'
|
|
17255
17234
|
},
|
|
17256
|
-
icon:
|
|
17235
|
+
icon: React.createElement(Icon, {
|
|
17257
17236
|
component: SvgPlus
|
|
17258
17237
|
}),
|
|
17259
17238
|
onClick: function onClick() {
|
|
17260
17239
|
onClickImportButton && onClickImportButton(controller);
|
|
17261
17240
|
}
|
|
17262
17241
|
})
|
|
17263
|
-
})))),
|
|
17242
|
+
})))), React.createElement(Col, {
|
|
17264
17243
|
span: 24
|
|
17265
|
-
},
|
|
17244
|
+
}, React.createElement(Form.Item, {
|
|
17266
17245
|
label: "\u7EDF\u4E00\u793E\u4F1A\u4FE1\u7528\u4EE3\u7801/\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7",
|
|
17267
17246
|
colon: false
|
|
17268
17247
|
}, getFieldDecorator('buyerTaxId', {
|
|
@@ -17270,18 +17249,18 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
17270
17249
|
required: !isVatNormal,
|
|
17271
17250
|
message: '购买方纳税人识别号必填'
|
|
17272
17251
|
}].concat(_toConsumableArray(RULES.taxId('购买方纳税人识别号'))))
|
|
17273
|
-
})(
|
|
17252
|
+
})(React.createElement(BuyerNameInput$1, {
|
|
17274
17253
|
myform: form,
|
|
17275
17254
|
fieldName: 'buyerTaxId',
|
|
17276
17255
|
readOnly: isReadOnly('buyerTaxId'),
|
|
17277
17256
|
placeholder: "\u8BF7\u8F93\u5165\u7EDF\u4E00\u793E\u4F1A\u4FE1\u7528\u4EE3\u7801/\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7",
|
|
17278
17257
|
autoComplete: "off"
|
|
17279
|
-
})))),
|
|
17258
|
+
})))), React.createElement(Col, {
|
|
17280
17259
|
span: 14,
|
|
17281
17260
|
style: {
|
|
17282
17261
|
display: isExpand ? undefined : 'none'
|
|
17283
17262
|
}
|
|
17284
|
-
},
|
|
17263
|
+
}, React.createElement(Form.Item, {
|
|
17285
17264
|
label: "\u8D2D\u4E70\u65B9\u5730\u5740",
|
|
17286
17265
|
colon: false
|
|
17287
17266
|
}, getFieldDecorator('buyerAddress', {
|
|
@@ -17289,90 +17268,90 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
17289
17268
|
max: 100,
|
|
17290
17269
|
message: '购买方地址内容超长'
|
|
17291
17270
|
}])
|
|
17292
|
-
})(
|
|
17271
|
+
})(React.createElement(MyInput$1, {
|
|
17293
17272
|
readOnly: isReadOnly('buyerAddress'),
|
|
17294
17273
|
placeholder: "\u8BF7\u8F93\u5165\u8D2D\u4E70\u65B9\u5730\u5740",
|
|
17295
17274
|
autoComplete: "off"
|
|
17296
|
-
})))),
|
|
17275
|
+
})))), React.createElement(Col, {
|
|
17297
17276
|
span: 10,
|
|
17298
17277
|
style: {
|
|
17299
17278
|
display: isExpand ? undefined : 'none'
|
|
17300
17279
|
}
|
|
17301
|
-
},
|
|
17280
|
+
}, React.createElement(Form.Item, {
|
|
17302
17281
|
label: "\u7535\u8BDD",
|
|
17303
17282
|
colon: false,
|
|
17304
17283
|
className: 'telephone'
|
|
17305
17284
|
}, getFieldDecorator('buyerPhone', {
|
|
17306
17285
|
rules: getRules('buyerPhone', RULES.buyerTelPhone('购买方电话'))
|
|
17307
|
-
})(
|
|
17286
|
+
})(React.createElement(MyInput$1, {
|
|
17308
17287
|
readOnly: isReadOnly('buyerPhone'),
|
|
17309
17288
|
placeholder: "\u8BF7\u8F93\u5165\u7535\u8BDD",
|
|
17310
17289
|
autoComplete: "off"
|
|
17311
|
-
})))),
|
|
17290
|
+
})))), React.createElement(Col, {
|
|
17312
17291
|
span: 14,
|
|
17313
17292
|
style: {
|
|
17314
17293
|
display: isExpand ? undefined : 'none'
|
|
17315
17294
|
}
|
|
17316
|
-
},
|
|
17295
|
+
}, React.createElement(Form.Item, {
|
|
17317
17296
|
label: "\u8D2D\u4E70\u65B9\u5F00\u6237\u94F6\u884C",
|
|
17318
17297
|
colon: false
|
|
17319
17298
|
}, getFieldDecorator('buyerBank', {
|
|
17320
17299
|
rules: getRules('buyerBank', RULES.bankName('购买方开户银行'))
|
|
17321
|
-
})(
|
|
17300
|
+
})(React.createElement(MyInput$1, {
|
|
17322
17301
|
readOnly: isReadOnly('buyerBank'),
|
|
17323
17302
|
placeholder: "\u8BF7\u8F93\u5165\u8D2D\u4E70\u65B9\u5F00\u6237\u94F6\u884C",
|
|
17324
17303
|
autoComplete: "off"
|
|
17325
|
-
})))),
|
|
17304
|
+
})))), React.createElement(Col, {
|
|
17326
17305
|
span: 10,
|
|
17327
17306
|
style: {
|
|
17328
17307
|
display: isExpand ? undefined : 'none'
|
|
17329
17308
|
}
|
|
17330
|
-
},
|
|
17309
|
+
}, React.createElement(Form.Item, {
|
|
17331
17310
|
label: "\u94F6\u884C\u8D26\u53F7",
|
|
17332
17311
|
colon: false
|
|
17333
17312
|
}, getFieldDecorator('buyerAccount', {
|
|
17334
17313
|
rules: getRules('buyerAccount', RULES.bankAccount('购买方银行账号'))
|
|
17335
|
-
})(
|
|
17314
|
+
})(React.createElement(MyInput$1, {
|
|
17336
17315
|
readOnly: isReadOnly('buyerAccount'),
|
|
17337
17316
|
placeholder: "\u8BF7\u8F93\u5165\u94F6\u884C\u8D26\u53F7",
|
|
17338
17317
|
autoComplete: "off"
|
|
17339
|
-
}))))))),
|
|
17340
|
-
return
|
|
17341
|
-
}), !readOnly &&
|
|
17318
|
+
}))))))), React.createElement("div", null, '销售方信息'.split('').map(function (e) {
|
|
17319
|
+
return React.createElement("span", null, e);
|
|
17320
|
+
}), !readOnly && React.createElement(Icon, {
|
|
17342
17321
|
className: "digtal-stakeholder-expand-button",
|
|
17343
17322
|
component: isExpand ? SvgArrowUp : SvgArrowDown,
|
|
17344
17323
|
onClick: onExpand
|
|
17345
|
-
})),
|
|
17324
|
+
})), React.createElement("div", null, !readOnly && props.lineCredit && React.createElement("div", {
|
|
17346
17325
|
style: {
|
|
17347
17326
|
marginTop: 20
|
|
17348
17327
|
}
|
|
17349
|
-
},
|
|
17328
|
+
}, React.createElement(Tooltip$1, {
|
|
17350
17329
|
trigger: "click",
|
|
17351
17330
|
title: props.lineCredit
|
|
17352
|
-
},
|
|
17331
|
+
}, React.createElement(Button$1, {
|
|
17353
17332
|
type: "link",
|
|
17354
17333
|
style: {
|
|
17355
17334
|
padding: "0px 8px"
|
|
17356
17335
|
}
|
|
17357
|
-
}, "\u67E5\u770B\u5F53\u524D\u53EF\u7528\u6388\u4FE1\u989D\u5EA6"))),
|
|
17336
|
+
}, "\u67E5\u770B\u5F53\u524D\u53EF\u7528\u6388\u4FE1\u989D\u5EA6"))), React.createElement(Form, {
|
|
17358
17337
|
className: "digtal-stakeholder-form"
|
|
17359
|
-
},
|
|
17338
|
+
}, React.createElement(Row, {
|
|
17360
17339
|
gutter: [16, 0]
|
|
17361
|
-
},
|
|
17340
|
+
}, React.createElement(Col, {
|
|
17362
17341
|
span: 24
|
|
17363
|
-
},
|
|
17342
|
+
}, React.createElement(Form.Item, {
|
|
17364
17343
|
label: "\u540D\u79F0",
|
|
17365
17344
|
colon: false
|
|
17366
17345
|
}, getFieldDecorator('supplierName', {
|
|
17367
17346
|
rules: getRules('supplierName', RULES.companyName('销售方名称')),
|
|
17368
17347
|
getValueFromEvent: formatCompanyName
|
|
17369
|
-
})(
|
|
17348
|
+
})(React.createElement(MyInput$1, {
|
|
17370
17349
|
readOnly: isReadOnly('supplierName'),
|
|
17371
17350
|
placeholder: "\u8BF7\u8F93\u5165\u540D\u79F0",
|
|
17372
17351
|
autoComplete: "off"
|
|
17373
|
-
})))),
|
|
17352
|
+
})))), React.createElement(Col, {
|
|
17374
17353
|
span: 24
|
|
17375
|
-
},
|
|
17354
|
+
}, React.createElement(Form.Item, {
|
|
17376
17355
|
label: "\u7EDF\u4E00\u793E\u4F1A\u4FE1\u7528\u4EE3\u7801/\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7",
|
|
17377
17356
|
colon: false
|
|
17378
17357
|
}, getFieldDecorator('supplierTaxId', {
|
|
@@ -17380,16 +17359,16 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
17380
17359
|
required: true,
|
|
17381
17360
|
message: '销售方纳税人识别号必填'
|
|
17382
17361
|
}].concat(_toConsumableArray(RULES.taxId('销售方纳税人识别号'))))
|
|
17383
|
-
})(
|
|
17362
|
+
})(React.createElement(MyInput$1, {
|
|
17384
17363
|
readOnly: isReadOnly('supplierTaxId'),
|
|
17385
17364
|
placeholder: "\u8BF7\u8F93\u5165\u7EDF\u4E00\u793E\u4F1A\u4FE1\u7528\u4EE3\u7801/\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7",
|
|
17386
17365
|
autoComplete: "off"
|
|
17387
|
-
})))),
|
|
17366
|
+
})))), React.createElement(Col, {
|
|
17388
17367
|
span: 12,
|
|
17389
17368
|
style: {
|
|
17390
17369
|
display: isExpand ? undefined : 'none'
|
|
17391
17370
|
}
|
|
17392
|
-
},
|
|
17371
|
+
}, React.createElement(Form.Item, {
|
|
17393
17372
|
label: "\u9500\u552E\u65B9\u5730\u5740",
|
|
17394
17373
|
colon: false
|
|
17395
17374
|
}, getFieldDecorator('sellerAddress', {
|
|
@@ -17397,50 +17376,50 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
17397
17376
|
max: 300,
|
|
17398
17377
|
message: '销售方地址内容超长'
|
|
17399
17378
|
}])
|
|
17400
|
-
})(
|
|
17379
|
+
})(React.createElement(MyInput$1, {
|
|
17401
17380
|
readOnly: isReadOnly('sellerAddress'),
|
|
17402
17381
|
placeholder: "\u8BF7\u8F93\u5165\u9500\u552E\u65B9\u5730\u5740",
|
|
17403
17382
|
autoComplete: "off"
|
|
17404
|
-
})))),
|
|
17383
|
+
})))), React.createElement(Col, {
|
|
17405
17384
|
span: 12,
|
|
17406
17385
|
style: {
|
|
17407
17386
|
display: isExpand ? undefined : 'none'
|
|
17408
17387
|
}
|
|
17409
|
-
},
|
|
17388
|
+
}, React.createElement(Form.Item, {
|
|
17410
17389
|
label: "\u7535\u8BDD",
|
|
17411
17390
|
colon: false,
|
|
17412
17391
|
className: 'telephone'
|
|
17413
17392
|
}, getFieldDecorator('sellerPhone', {
|
|
17414
17393
|
rules: getRules('sellerPhone', RULES.sellerTelPhone('销售方电话'))
|
|
17415
|
-
})(
|
|
17394
|
+
})(React.createElement(MyInput$1, {
|
|
17416
17395
|
readOnly: isReadOnly('sellerPhone'),
|
|
17417
17396
|
placeholder: "\u8BF7\u8F93\u5165\u7535\u8BDD",
|
|
17418
17397
|
autoComplete: "off"
|
|
17419
|
-
})))),
|
|
17398
|
+
})))), React.createElement(Col, {
|
|
17420
17399
|
span: 12,
|
|
17421
17400
|
style: {
|
|
17422
17401
|
display: isExpand ? undefined : 'none'
|
|
17423
17402
|
}
|
|
17424
|
-
},
|
|
17403
|
+
}, React.createElement(Form.Item, {
|
|
17425
17404
|
label: "\u9500\u552E\u65B9\u5F00\u6237\u94F6\u884C",
|
|
17426
17405
|
colon: false
|
|
17427
17406
|
}, getFieldDecorator('sellerBank', {
|
|
17428
17407
|
rules: getRules('sellerBank', RULES.bankName('销售方开户银行'))
|
|
17429
|
-
})(
|
|
17408
|
+
})(React.createElement(MyInput$1, {
|
|
17430
17409
|
readOnly: isReadOnly('sellerBank'),
|
|
17431
17410
|
placeholder: "\u8BF7\u8F93\u5165\u9500\u552E\u65B9\u5F00\u6237\u94F6\u884C",
|
|
17432
17411
|
autoComplete: "off"
|
|
17433
|
-
})))),
|
|
17412
|
+
})))), React.createElement(Col, {
|
|
17434
17413
|
span: 12,
|
|
17435
17414
|
style: {
|
|
17436
17415
|
display: isExpand ? undefined : 'none'
|
|
17437
17416
|
}
|
|
17438
|
-
},
|
|
17417
|
+
}, React.createElement(Form.Item, {
|
|
17439
17418
|
label: "\u94F6\u884C\u8D26\u53F7",
|
|
17440
17419
|
colon: false
|
|
17441
17420
|
}, getFieldDecorator('sellerAccount', {
|
|
17442
17421
|
rules: getRules('sellerAccount', RULES.bankAccount('销售方银行账号'))
|
|
17443
|
-
})(
|
|
17422
|
+
})(React.createElement(MyInput$1, {
|
|
17444
17423
|
readOnly: isReadOnly('sellerAccount'),
|
|
17445
17424
|
placeholder: "\u8BF7\u8F93\u5165\u94F6\u884C\u8D26\u53F7",
|
|
17446
17425
|
autoComplete: "off"
|
|
@@ -17461,7 +17440,7 @@ function NaturalPersonFlag(props) {
|
|
|
17461
17440
|
React.useEffect(function () {
|
|
17462
17441
|
setValue(props.value || 'COMPANY');
|
|
17463
17442
|
}, [props.value]);
|
|
17464
|
-
return
|
|
17443
|
+
return React.createElement(Checkbox$1, {
|
|
17465
17444
|
disabled: props.readOnly,
|
|
17466
17445
|
checked: value === 'NATURAL',
|
|
17467
17446
|
onChange: onChange
|
|
@@ -17567,10 +17546,10 @@ function BuyerNameInput$1(props) {
|
|
|
17567
17546
|
return _ref.apply(this, arguments);
|
|
17568
17547
|
};
|
|
17569
17548
|
}(), [autoComplete.onBuyerNameSearch, fieldName]);
|
|
17570
|
-
if (props.readOnly) return
|
|
17549
|
+
if (props.readOnly) return React.createElement("span", {
|
|
17571
17550
|
className: 'digtal-stakeholder-form-text'
|
|
17572
17551
|
}, props.value);
|
|
17573
|
-
return
|
|
17552
|
+
return React.createElement(AutoComplete$1, {
|
|
17574
17553
|
onSearch: onSearch,
|
|
17575
17554
|
options: options.map(function (e) {
|
|
17576
17555
|
return {
|
|
@@ -17585,7 +17564,7 @@ function BuyerNameInput$1(props) {
|
|
|
17585
17564
|
style: {
|
|
17586
17565
|
width: '100%'
|
|
17587
17566
|
}
|
|
17588
|
-
},
|
|
17567
|
+
}, React.createElement(Input$1, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
17589
17568
|
style: _objectSpread2({
|
|
17590
17569
|
width: '100%'
|
|
17591
17570
|
}, props.style)
|
|
@@ -17609,11 +17588,11 @@ var MyInput$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
17609
17588
|
var props = this.props;
|
|
17610
17589
|
|
|
17611
17590
|
if (props.readOnly) {
|
|
17612
|
-
return
|
|
17591
|
+
return React.createElement("span", {
|
|
17613
17592
|
className: 'digtal-stakeholder-form-text'
|
|
17614
17593
|
}, props.value);
|
|
17615
17594
|
} else {
|
|
17616
|
-
return
|
|
17595
|
+
return React.createElement(Input$1, _objectSpread2({}, props));
|
|
17617
17596
|
}
|
|
17618
17597
|
}
|
|
17619
17598
|
}]);
|
|
@@ -17670,48 +17649,48 @@ var SignDigtal = decorator(Form.create())(function (props) {
|
|
|
17670
17649
|
controller.useForm('sign', form);
|
|
17671
17650
|
|
|
17672
17651
|
if (readOnly) {
|
|
17673
|
-
return
|
|
17652
|
+
return React.createElement("div", {
|
|
17674
17653
|
className: "kts-invoice-operate-sign-digtal-readOnly"
|
|
17675
|
-
},
|
|
17654
|
+
}, React.createElement("div", {
|
|
17676
17655
|
className: 'sign-digtal-readOnly-cont'
|
|
17677
|
-
},
|
|
17656
|
+
}, React.createElement("div", null, React.createElement("span", null, "\u5907"), React.createElement("span", null, "\u6CE8")), React.createElement("div", null, getFieldDecorator('remarks', {
|
|
17678
17657
|
initialValue: props.defaultRemark
|
|
17679
|
-
})(isEnables('remarks') ?
|
|
17658
|
+
})(isEnables('remarks') ? React.createElement(Input$1.TextArea, {
|
|
17680
17659
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
17681
17660
|
style: {
|
|
17682
17661
|
height: '100%'
|
|
17683
17662
|
}
|
|
17684
|
-
}) :
|
|
17663
|
+
}) : React.createElement(MyDiv$1, {
|
|
17685
17664
|
style: {
|
|
17686
17665
|
whiteSpace: 'pre-wrap',
|
|
17687
17666
|
wordBreak: 'break-all'
|
|
17688
17667
|
}
|
|
17689
|
-
})))),
|
|
17668
|
+
})))), React.createElement(Form, {
|
|
17690
17669
|
layout: 'inline',
|
|
17691
17670
|
className: 'digtal-readOnly-form'
|
|
17692
|
-
},
|
|
17671
|
+
}, React.createElement(Form.Item, {
|
|
17693
17672
|
label: "\u5F00\u7968\u4EBA"
|
|
17694
17673
|
}, getFieldDecorator('drawer', {
|
|
17695
17674
|
initialValue: props.defaultRemark
|
|
17696
|
-
})(
|
|
17675
|
+
})(React.createElement(MyDiv$1, null)))));
|
|
17697
17676
|
} else {
|
|
17698
|
-
return
|
|
17677
|
+
return React.createElement("div", {
|
|
17699
17678
|
className: "kts-invoice-operate-sign-digtal"
|
|
17700
|
-
},
|
|
17679
|
+
}, React.createElement("div", {
|
|
17701
17680
|
className: 'sign-digtal-label'
|
|
17702
|
-
}, "\u5907\u6CE8\u4FE1\u606F"),
|
|
17681
|
+
}, "\u5907\u6CE8\u4FE1\u606F"), React.createElement(Form, null, React.createElement(Form.Item, {
|
|
17703
17682
|
label: "\u5907\u6CE8"
|
|
17704
17683
|
}, getFieldDecorator('remarks', {
|
|
17705
17684
|
initialValue: props.defaultRemark
|
|
17706
|
-
})(
|
|
17685
|
+
})(React.createElement(Input$1.TextArea, {
|
|
17707
17686
|
readOnly: isReadOnly('remarks'),
|
|
17708
17687
|
autoSize: true,
|
|
17709
17688
|
placeholder: "\u8BF7\u8F93\u5165"
|
|
17710
|
-
}))),
|
|
17689
|
+
}))), React.createElement(Form.Item, {
|
|
17711
17690
|
label: "\u5F00\u7968\u4EBA"
|
|
17712
17691
|
}, getFieldDecorator('drawer', {
|
|
17713
17692
|
initialValue: props.defaultIssuer
|
|
17714
|
-
})(
|
|
17693
|
+
})(React.createElement(Input$1, {
|
|
17715
17694
|
readOnly: isReadOnly('drawer'),
|
|
17716
17695
|
style: {
|
|
17717
17696
|
width: 313
|
|
@@ -17735,7 +17714,7 @@ var MyDiv$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
17735
17714
|
_createClass(MyDiv, [{
|
|
17736
17715
|
key: "render",
|
|
17737
17716
|
value: function render() {
|
|
17738
|
-
return
|
|
17717
|
+
return React.createElement("div", {
|
|
17739
17718
|
style: this.props.style
|
|
17740
17719
|
}, this.props.value);
|
|
17741
17720
|
}
|
|
@@ -17838,12 +17817,12 @@ function TableVirtual$1 (props) {
|
|
|
17838
17817
|
if (!cont) return;
|
|
17839
17818
|
cont.scrollTop = 0;
|
|
17840
17819
|
}, [(_props$dataSource2 = props.dataSource) === null || _props$dataSource2 === void 0 ? void 0 : _props$dataSource2.length]);
|
|
17841
|
-
return
|
|
17820
|
+
return React.createElement("span", {
|
|
17842
17821
|
className: "kts-invoice-operate-goods-table-virtual",
|
|
17843
17822
|
ref: function ref(e) {
|
|
17844
17823
|
setSelf(e);
|
|
17845
17824
|
}
|
|
17846
|
-
},
|
|
17825
|
+
}, React.createElement(TableManual, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
17847
17826
|
dataSource: dataSource,
|
|
17848
17827
|
// 新版本Table会有输入框无法连续输入的问题,先兼容老版本
|
|
17849
17828
|
tableComponent: Table
|
|
@@ -17852,10 +17831,10 @@ function TableVirtual$1 (props) {
|
|
|
17852
17831
|
|
|
17853
17832
|
var _g$1, _defs$3;
|
|
17854
17833
|
|
|
17855
|
-
function _extends$
|
|
17834
|
+
function _extends$7() { _extends$7 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$7.apply(this, arguments); }
|
|
17856
17835
|
|
|
17857
17836
|
function SvgFork(props) {
|
|
17858
|
-
return /*#__PURE__*/createElement("svg", _extends$
|
|
17837
|
+
return /*#__PURE__*/createElement("svg", _extends$7({
|
|
17859
17838
|
xmlns: "http://www.w3.org/2000/svg",
|
|
17860
17839
|
width: 16,
|
|
17861
17840
|
height: 16,
|
|
@@ -17954,54 +17933,54 @@ var Statistics$1 = (function () {
|
|
|
17954
17933
|
});
|
|
17955
17934
|
return sum.done().toNumber();
|
|
17956
17935
|
}, []);
|
|
17957
|
-
return
|
|
17936
|
+
return React.createElement("div", {
|
|
17958
17937
|
className: 'kts-invoice-operate-goods-list-statistics-digtal'
|
|
17959
|
-
},
|
|
17938
|
+
}, React.createElement("div", {
|
|
17960
17939
|
className: 'statistics-digtal-total'
|
|
17961
|
-
},
|
|
17940
|
+
}, React.createElement("div", null, "\u5408\u8BA1"), React.createElement("div", {
|
|
17962
17941
|
style: {
|
|
17963
17942
|
flex: 1
|
|
17964
17943
|
}
|
|
17965
|
-
}),
|
|
17944
|
+
}), React.createElement("div", {
|
|
17966
17945
|
style: {
|
|
17967
17946
|
minWidth: 119,
|
|
17968
17947
|
maxWidth: 300,
|
|
17969
17948
|
textAlign: 'right',
|
|
17970
17949
|
paddingRight: 15
|
|
17971
17950
|
}
|
|
17972
|
-
}, "\xA5", parseFloat(isTaxIncluded ? lineAmountIncludeTax : lineAmountExcludeTax).toFixed(2)),
|
|
17951
|
+
}, "\xA5", parseFloat(isTaxIncluded ? lineAmountIncludeTax : lineAmountExcludeTax).toFixed(2)), React.createElement("div", {
|
|
17973
17952
|
style: {
|
|
17974
17953
|
minWidth: 119,
|
|
17975
17954
|
maxWidth: 300,
|
|
17976
17955
|
textAlign: 'right',
|
|
17977
17956
|
paddingRight: 15
|
|
17978
17957
|
}
|
|
17979
|
-
}, "\xA5", parseFloat(taxAmount).toFixed(2))),
|
|
17958
|
+
}, "\xA5", parseFloat(taxAmount).toFixed(2))), React.createElement("div", {
|
|
17980
17959
|
className: 'statistics-digtal-total-tax'
|
|
17981
|
-
},
|
|
17960
|
+
}, React.createElement("div", null, "\u4EF7\u7A0E\u5408\u8BA1\uFF08\u5927\u5199\uFF09"), React.createElement("div", {
|
|
17982
17961
|
style: {
|
|
17983
17962
|
paddingLeft: 30
|
|
17984
17963
|
}
|
|
17985
|
-
},
|
|
17964
|
+
}, React.createElement(Icon, {
|
|
17986
17965
|
style: {
|
|
17987
17966
|
fontSize: 16
|
|
17988
17967
|
},
|
|
17989
17968
|
component: SvgFork
|
|
17990
|
-
}),
|
|
17969
|
+
}), React.createElement("span", {
|
|
17991
17970
|
style: {
|
|
17992
17971
|
fontWeight: 'bold',
|
|
17993
17972
|
marginLeft: 4
|
|
17994
17973
|
}
|
|
17995
|
-
}, toStringChinese(lineAmountIncludeTax))),
|
|
17974
|
+
}, toStringChinese(lineAmountIncludeTax))), React.createElement("div", {
|
|
17996
17975
|
style: {
|
|
17997
17976
|
flex: 1
|
|
17998
17977
|
}
|
|
17999
|
-
}),
|
|
17978
|
+
}), React.createElement("div", {
|
|
18000
17979
|
style: {
|
|
18001
17980
|
width: 90,
|
|
18002
17981
|
color: '#9F613E'
|
|
18003
17982
|
}
|
|
18004
|
-
}, "\uFF08\u5C0F\u5199\uFF09"),
|
|
17983
|
+
}, "\uFF08\u5C0F\u5199\uFF09"), React.createElement("div", {
|
|
18005
17984
|
style: {
|
|
18006
17985
|
minWidth: 119,
|
|
18007
17986
|
maxWidth: 300
|
|
@@ -18061,10 +18040,10 @@ var AddRowButton$1 = (function () {
|
|
|
18061
18040
|
}
|
|
18062
18041
|
}, _callee);
|
|
18063
18042
|
})), [controller, rootElement]);
|
|
18064
|
-
if (isAddRow === false) return
|
|
18065
|
-
if (model === 'prefab') return
|
|
18066
|
-
if (model === 'readOnly') return
|
|
18067
|
-
return
|
|
18043
|
+
if (isAddRow === false) return React.createElement(React.Fragment, null);
|
|
18044
|
+
if (model === 'prefab') return React.createElement(React.Fragment, null);
|
|
18045
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
18046
|
+
return React.createElement(Button$1, {
|
|
18068
18047
|
size: 'small',
|
|
18069
18048
|
type: 'primary',
|
|
18070
18049
|
onClick: onClick,
|
|
@@ -19447,11 +19426,11 @@ var TaxIncludedSwitch$1 = (function () {
|
|
|
19447
19426
|
return _ref.apply(this, arguments);
|
|
19448
19427
|
};
|
|
19449
19428
|
}(), []);
|
|
19450
|
-
return
|
|
19429
|
+
return React.createElement("span", null, React.createElement("label", {
|
|
19451
19430
|
style: {
|
|
19452
19431
|
marginRight: 2
|
|
19453
19432
|
}
|
|
19454
|
-
}, "\u542B\u7A0E"),
|
|
19433
|
+
}, "\u542B\u7A0E"), React.createElement(Switch, {
|
|
19455
19434
|
disabled: isSwitchTax === false,
|
|
19456
19435
|
checked: isTaxIncluded,
|
|
19457
19436
|
defaultChecked: true,
|
|
@@ -19459,18 +19438,18 @@ var TaxIncludedSwitch$1 = (function () {
|
|
|
19459
19438
|
}));
|
|
19460
19439
|
});
|
|
19461
19440
|
|
|
19462
|
-
var _path$
|
|
19441
|
+
var _path$6;
|
|
19463
19442
|
|
|
19464
|
-
function _extends$
|
|
19443
|
+
function _extends$8() { _extends$8 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$8.apply(this, arguments); }
|
|
19465
19444
|
|
|
19466
19445
|
function SvgMagnifier$1(props) {
|
|
19467
|
-
return /*#__PURE__*/createElement("svg", _extends$
|
|
19446
|
+
return /*#__PURE__*/createElement("svg", _extends$8({
|
|
19468
19447
|
className: "magnifier_svg__icon",
|
|
19469
19448
|
viewBox: "0 0 1024 1024",
|
|
19470
19449
|
xmlns: "http://www.w3.org/2000/svg",
|
|
19471
19450
|
width: 200,
|
|
19472
19451
|
height: 200
|
|
19473
|
-
}, props), _path$
|
|
19452
|
+
}, props), _path$6 || (_path$6 = /*#__PURE__*/createElement("path", {
|
|
19474
19453
|
d: "M985.781 918.594L820.773 765.526c27.373-32.973 49.655-69.577 66.437-109.258 22.933-54.219 34.56-111.795 34.56-171.13 0-59.333-11.627-116.91-34.56-171.13-22.143-52.354-53.838-99.365-94.2-139.729s-87.377-72.056-139.73-94.199c-54.219-22.933-111.795-34.561-171.13-34.561S365.24 57.148 311.022 80.08c-52.354 22.143-99.365 53.837-139.73 94.2s-72.057 87.375-94.2 139.73c-22.932 54.218-34.56 111.795-34.56 171.13 0 59.334 11.628 116.91 34.56 171.129 22.144 52.354 53.838 99.365 94.2 139.729s87.376 72.057 139.73 94.2c54.219 22.933 111.795 34.56 171.13 34.56s116.91-11.627 171.13-34.56c45.352-19.181 86.686-45.543 123.171-78.487l165.803 153.804a31.886 31.886 0 0021.756 8.54c8.593 0 17.163-3.442 23.467-10.238 12.019-12.956 11.26-33.205-1.698-45.223zm-503.63-57.836c-207.117 0-375.62-168.502-375.62-375.62 0-207.117 168.503-375.62 375.62-375.62s375.62 168.503 375.62 375.62c0 207.118-168.503 375.62-375.62 375.62z"
|
|
19475
19454
|
})));
|
|
19476
19455
|
}
|
|
@@ -19547,12 +19526,12 @@ function Search$1() {
|
|
|
19547
19526
|
};
|
|
19548
19527
|
}());
|
|
19549
19528
|
}, [value, controller]);
|
|
19550
|
-
return
|
|
19529
|
+
return React.createElement(Input$1, {
|
|
19551
19530
|
readOnly: readOnly,
|
|
19552
19531
|
value: value,
|
|
19553
19532
|
className: "kts-invoice-operate-goods-list-search",
|
|
19554
19533
|
placeholder: "\u8BF7\u60A8\u8F93\u5165\u9879\u76EE\u540D\u79F0\u3001\u89C4\u683C\u578B\u53F7\u3001\u91D1\u989D(".concat(isTaxIncluded ? '含税' : '不含税', ")\u641C\u7D22"),
|
|
19555
|
-
prefix:
|
|
19534
|
+
prefix: React.createElement(Icon$1, {
|
|
19556
19535
|
component: SvgMagnifier$1,
|
|
19557
19536
|
style: {
|
|
19558
19537
|
color: "#b8b8b8"
|
|
@@ -19597,12 +19576,12 @@ function TableRow$1(props) {
|
|
|
19597
19576
|
return undefined;
|
|
19598
19577
|
}
|
|
19599
19578
|
}, [rowKey, goodsMap]);
|
|
19600
|
-
return rowKey === current && current ?
|
|
19579
|
+
return rowKey === current && current ? React.createElement("tr", {
|
|
19601
19580
|
style: {
|
|
19602
19581
|
height: 50,
|
|
19603
19582
|
position: 'relative'
|
|
19604
19583
|
}
|
|
19605
|
-
},
|
|
19584
|
+
}, React.createElement("div", {
|
|
19606
19585
|
style: {
|
|
19607
19586
|
height: 0.5,
|
|
19608
19587
|
width: '100%',
|
|
@@ -19610,9 +19589,7 @@ function TableRow$1(props) {
|
|
|
19610
19589
|
position: 'absolute',
|
|
19611
19590
|
bottom: 0
|
|
19612
19591
|
}
|
|
19613
|
-
})) :
|
|
19614
|
-
/*#__PURE__*/
|
|
19615
|
-
// <tr {...props} className={classnames(props.className, discount, (rowKey === container && current) ? 'kts-invoice-operate-goods-list-itemName-drag-container' : '')} />
|
|
19592
|
+
})) : // <tr {...props} className={classnames(props.className, discount, (rowKey === container && current) ? 'kts-invoice-operate-goods-list-itemName-drag-container' : '')} />
|
|
19616
19593
|
React.createElement("tr", _objectSpread2(_objectSpread2({}, props), {}, {
|
|
19617
19594
|
className: classNames(props.className, discount, rowKey === container && current ? 'kts-invoice-operate-goods-list-itemName-drag-container-' + site : undefined)
|
|
19618
19595
|
}));
|
|
@@ -19620,10 +19597,10 @@ function TableRow$1(props) {
|
|
|
19620
19597
|
|
|
19621
19598
|
var _g$2, _defs$4;
|
|
19622
19599
|
|
|
19623
|
-
function _extends$
|
|
19600
|
+
function _extends$9() { _extends$9 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$9.apply(this, arguments); }
|
|
19624
19601
|
|
|
19625
19602
|
function SvgPlus$1(props) {
|
|
19626
|
-
return /*#__PURE__*/createElement("svg", _extends$
|
|
19603
|
+
return /*#__PURE__*/createElement("svg", _extends$9({
|
|
19627
19604
|
xmlns: "http://www.w3.org/2000/svg",
|
|
19628
19605
|
width: 16,
|
|
19629
19606
|
height: 15
|
|
@@ -19652,9 +19629,9 @@ var TitleText$1 = (function (props) {
|
|
|
19652
19629
|
return !!e.required;
|
|
19653
19630
|
})) || props.required;
|
|
19654
19631
|
}, [rules, props.required]);
|
|
19655
|
-
return
|
|
19632
|
+
return React.createElement(React.Fragment, null, required ? React.createElement(Text$5, {
|
|
19656
19633
|
type: "danger"
|
|
19657
|
-
}, "*") :
|
|
19634
|
+
}, "*") : React.createElement(React.Fragment, null), children);
|
|
19658
19635
|
});
|
|
19659
19636
|
|
|
19660
19637
|
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";
|
|
@@ -19838,14 +19815,14 @@ function ItemNameInput$1(props) {
|
|
|
19838
19815
|
return _ref3.apply(this, arguments);
|
|
19839
19816
|
};
|
|
19840
19817
|
}(), [autoComplete.onItemNameSearch]);
|
|
19841
|
-
return
|
|
19818
|
+
return React.createElement("div", {
|
|
19842
19819
|
className: 'kts-invoice-operate-goods-list-itemName-input'
|
|
19843
|
-
}, props.shorthand &&
|
|
19820
|
+
}, props.shorthand && React.createElement("span", {
|
|
19844
19821
|
style: {
|
|
19845
19822
|
alignSelf: 'center',
|
|
19846
19823
|
fontSize: 12
|
|
19847
19824
|
}
|
|
19848
|
-
}, "*", props.shorthand, "*"),
|
|
19825
|
+
}, "*", props.shorthand, "*"), React.createElement(AutoComplete$1, {
|
|
19849
19826
|
onSearch: onSearch,
|
|
19850
19827
|
value: props.value,
|
|
19851
19828
|
options: options.map(function (e) {
|
|
@@ -19858,7 +19835,7 @@ function ItemNameInput$1(props) {
|
|
|
19858
19835
|
return rootElement || document.body;
|
|
19859
19836
|
},
|
|
19860
19837
|
onSelect: onChangeAutoComplete
|
|
19861
|
-
},
|
|
19838
|
+
}, React.createElement(Input$1, {
|
|
19862
19839
|
style: {
|
|
19863
19840
|
height: '100%'
|
|
19864
19841
|
},
|
|
@@ -19868,18 +19845,18 @@ function ItemNameInput$1(props) {
|
|
|
19868
19845
|
})));
|
|
19869
19846
|
}
|
|
19870
19847
|
|
|
19871
|
-
var _path$
|
|
19848
|
+
var _path$7;
|
|
19872
19849
|
|
|
19873
|
-
function _extends$
|
|
19850
|
+
function _extends$a() { _extends$a = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$a.apply(this, arguments); }
|
|
19874
19851
|
|
|
19875
|
-
function SvgI001$
|
|
19876
|
-
return /*#__PURE__*/createElement("svg", _extends$
|
|
19852
|
+
function SvgI001$1(props) {
|
|
19853
|
+
return /*#__PURE__*/createElement("svg", _extends$a({
|
|
19877
19854
|
className: "I001_svg__icon",
|
|
19878
19855
|
viewBox: "0 0 1024 1024",
|
|
19879
19856
|
xmlns: "http://www.w3.org/2000/svg",
|
|
19880
19857
|
width: 200,
|
|
19881
19858
|
height: 200
|
|
19882
|
-
}, props), _path$
|
|
19859
|
+
}, props), _path$7 || (_path$7 = /*#__PURE__*/createElement("path", {
|
|
19883
19860
|
d: "M304.874-5.815h123.758v123.758H304.874V-5.815zm281.277 0H709.91v123.758H586.151V-5.815zM304.874 286.75h123.758v123.758H304.874V286.75zm281.277 0H709.91v123.758H586.151V286.75zM304.874 579.212h123.758V702.97H304.874V579.212zm281.277 0H709.91V702.97H586.151V579.212zM304.874 871.83h123.758v123.758H304.874V871.83zm281.277 0H709.91v123.758H586.151V871.83z"
|
|
19884
19861
|
})));
|
|
19885
19862
|
}
|
|
@@ -19928,7 +19905,7 @@ function Drag$2(props) {
|
|
|
19928
19905
|
var currentGood = controller.state.goodsListState.goodsList.filter(function (e) {
|
|
19929
19906
|
return e.$index === record.$index;
|
|
19930
19907
|
})[0];
|
|
19931
|
-
mounting(
|
|
19908
|
+
mounting(React.createElement(DragDiv$1, _objectSpread2({}, currentGood)));
|
|
19932
19909
|
rowList.forEach(function (e) {
|
|
19933
19910
|
e.addEventListener('mousemove', onMousemove);
|
|
19934
19911
|
});
|
|
@@ -20089,7 +20066,7 @@ function Drag$2(props) {
|
|
|
20089
20066
|
|
|
20090
20067
|
|
|
20091
20068
|
function insert() {
|
|
20092
|
-
mounting(
|
|
20069
|
+
mounting(React.createElement(React.Fragment, null));
|
|
20093
20070
|
controller.run( /*#__PURE__*/function () {
|
|
20094
20071
|
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(s) {
|
|
20095
20072
|
var _s$goodsListState$dra, container, current, site, goodsList, goodsMap, _currentGood, currentIndex, moveGoods;
|
|
@@ -20168,7 +20145,7 @@ function Drag$2(props) {
|
|
|
20168
20145
|
}
|
|
20169
20146
|
}, [controller, record, disabled]);
|
|
20170
20147
|
var renderButton = React.useMemo(function () {
|
|
20171
|
-
return
|
|
20148
|
+
return React.createElement(Button, {
|
|
20172
20149
|
type: 'link',
|
|
20173
20150
|
style: {
|
|
20174
20151
|
padding: 0
|
|
@@ -20179,13 +20156,13 @@ function Drag$2(props) {
|
|
|
20179
20156
|
},
|
|
20180
20157
|
className: "kts-invoice-operate-goods-list-itemName-drag",
|
|
20181
20158
|
onMouseOver: controller.saveEditGood
|
|
20182
|
-
},
|
|
20183
|
-
component: SvgI001$
|
|
20159
|
+
}, React.createElement(Icon, {
|
|
20160
|
+
component: SvgI001$1
|
|
20184
20161
|
}));
|
|
20185
20162
|
}, [onMouseDown, controller]);
|
|
20186
20163
|
|
|
20187
20164
|
if (disabled) {
|
|
20188
|
-
return
|
|
20165
|
+
return React.createElement(Popover, {
|
|
20189
20166
|
content: '您还有未编辑完成的商品',
|
|
20190
20167
|
trigger: 'focus'
|
|
20191
20168
|
}, renderButton);
|
|
@@ -20225,13 +20202,13 @@ function DragDiv$1(props) {
|
|
|
20225
20202
|
window.removeEventListener('mousemove', onMousemove);
|
|
20226
20203
|
};
|
|
20227
20204
|
});
|
|
20228
|
-
return
|
|
20205
|
+
return React.createElement("div", {
|
|
20229
20206
|
className: "kts-invoice-operate-goods-list-itemName-drag-div",
|
|
20230
20207
|
style: {
|
|
20231
20208
|
top: y,
|
|
20232
20209
|
left: x
|
|
20233
20210
|
}
|
|
20234
|
-
},
|
|
20211
|
+
}, React.createElement("span", null, props.itemName), React.createElement("span", null, props.itemModelName), React.createElement("span", null, props.unit));
|
|
20235
20212
|
}
|
|
20236
20213
|
|
|
20237
20214
|
var useColumns$1 = (function (form) {
|
|
@@ -20360,7 +20337,7 @@ var useColumns$1 = (function (form) {
|
|
|
20360
20337
|
width: 40,
|
|
20361
20338
|
align: 'center',
|
|
20362
20339
|
render: function render(_, record) {
|
|
20363
|
-
return
|
|
20340
|
+
return React.createElement(Drag$2, {
|
|
20364
20341
|
record: record
|
|
20365
20342
|
});
|
|
20366
20343
|
}
|
|
@@ -20370,20 +20347,20 @@ var useColumns$1 = (function (form) {
|
|
|
20370
20347
|
dataIndex: 'serialNo',
|
|
20371
20348
|
width: 50,
|
|
20372
20349
|
render: function render(e) {
|
|
20373
|
-
return
|
|
20350
|
+
return React.createElement("span", {
|
|
20374
20351
|
style: {
|
|
20375
20352
|
padding: '0 10px'
|
|
20376
20353
|
}
|
|
20377
20354
|
}, e);
|
|
20378
20355
|
}
|
|
20379
20356
|
}, {
|
|
20380
|
-
title:
|
|
20357
|
+
title: React.createElement(TitleText$1, {
|
|
20381
20358
|
required: true
|
|
20382
20359
|
}, "\u9879\u76EE\u540D\u79F0"),
|
|
20383
20360
|
key: 'itemName',
|
|
20384
20361
|
render: function render(_, record) {
|
|
20385
20362
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index && !disableds.includes('itemName') && model !== 'prefab') {
|
|
20386
|
-
return
|
|
20363
|
+
return React.createElement(Form.Item, null, React.createElement("div", {
|
|
20387
20364
|
style: {
|
|
20388
20365
|
display: 'flex'
|
|
20389
20366
|
}
|
|
@@ -20430,12 +20407,12 @@ var useColumns$1 = (function (form) {
|
|
|
20430
20407
|
return validator;
|
|
20431
20408
|
}()
|
|
20432
20409
|
}])
|
|
20433
|
-
})(
|
|
20410
|
+
})(React.createElement(ItemNameInput$1, {
|
|
20434
20411
|
editGood: editGood,
|
|
20435
20412
|
shorthand: editGood.shorthand,
|
|
20436
|
-
suffix:
|
|
20413
|
+
suffix: React.createElement(Tooltip$1, {
|
|
20437
20414
|
title: "\u70B9\u51FB\u4ECE\u5546\u54C1\u7BA1\u7406\u4E2D\u6DFB\u52A0\u5546\u54C1\u4FE1\u606F"
|
|
20438
|
-
},
|
|
20415
|
+
}, React.createElement(Button$1, {
|
|
20439
20416
|
type: "link",
|
|
20440
20417
|
style: {
|
|
20441
20418
|
padding: 0,
|
|
@@ -20443,7 +20420,7 @@ var useColumns$1 = (function (form) {
|
|
|
20443
20420
|
fontSize: 20,
|
|
20444
20421
|
fill: '#0074ff'
|
|
20445
20422
|
},
|
|
20446
|
-
icon:
|
|
20423
|
+
icon: React.createElement(SvgPlus$1, null),
|
|
20447
20424
|
onClick: controller.pipeline( /*#__PURE__*/function () {
|
|
20448
20425
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(s) {
|
|
20449
20426
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
@@ -20470,9 +20447,9 @@ var useColumns$1 = (function (form) {
|
|
|
20470
20447
|
}
|
|
20471
20448
|
}))));
|
|
20472
20449
|
} else {
|
|
20473
|
-
return
|
|
20450
|
+
return React.createElement("span", null, record.lineAttribute === LineAttributeType$1.折扣行 ? React.createElement("span", {
|
|
20474
20451
|
className: 'goods-list-digtal-discount-tag'
|
|
20475
|
-
}, "\u6298\u6263") :
|
|
20452
|
+
}, "\u6298\u6263") : React.createElement(React.Fragment, null), React.createElement(MyItemNameDiv$1, {
|
|
20476
20453
|
valueT: formatSearch$1(getItemNameWithShorthand({
|
|
20477
20454
|
shorthand: record.shorthand,
|
|
20478
20455
|
full: record.itemNameSelf || ''
|
|
@@ -20486,17 +20463,17 @@ var useColumns$1 = (function (form) {
|
|
|
20486
20463
|
}
|
|
20487
20464
|
}
|
|
20488
20465
|
}, {
|
|
20489
|
-
title:
|
|
20466
|
+
title: React.createElement(TitleText$1, {
|
|
20490
20467
|
rules: (_columnsReplenish$ite = columnsReplenish['itemModelName']) === null || _columnsReplenish$ite === void 0 ? void 0 : _columnsReplenish$ite.rules
|
|
20491
20468
|
}, "\u89C4\u683C\u578B\u53F7"),
|
|
20492
20469
|
key: 'itemModelName',
|
|
20493
20470
|
width: 119,
|
|
20494
20471
|
render: function render(_, record) {
|
|
20495
20472
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index && !disableds.includes('itemModelName') && model !== 'prefab') {
|
|
20496
|
-
return
|
|
20473
|
+
return React.createElement(Form.Item, null, getFieldDecorator('itemModelName', {
|
|
20497
20474
|
initialValue: isMyShow ? editGood.itemModelNameSelf : editGood.itemModelName,
|
|
20498
20475
|
rules: getReplenishRules('itemModelName')
|
|
20499
|
-
})(
|
|
20476
|
+
})(React.createElement(MyInput$2, {
|
|
20500
20477
|
onChange: function () {
|
|
20501
20478
|
var _onChange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
20502
20479
|
var key, value;
|
|
@@ -20529,7 +20506,7 @@ var useColumns$1 = (function (form) {
|
|
|
20529
20506
|
}()
|
|
20530
20507
|
})));
|
|
20531
20508
|
} else {
|
|
20532
|
-
return
|
|
20509
|
+
return React.createElement(MyItemNameDiv$1, {
|
|
20533
20510
|
valueT: formatSearch$1(record.itemModelNameSelf, searchValue),
|
|
20534
20511
|
valueF: formatSearch$1(record.itemModelName, searchValue),
|
|
20535
20512
|
isMyShow: isMyShow
|
|
@@ -20537,17 +20514,17 @@ var useColumns$1 = (function (form) {
|
|
|
20537
20514
|
}
|
|
20538
20515
|
}
|
|
20539
20516
|
}, {
|
|
20540
|
-
title:
|
|
20517
|
+
title: React.createElement(TitleText$1, {
|
|
20541
20518
|
rules: (_columnsReplenish$uni = columnsReplenish['unit']) === null || _columnsReplenish$uni === void 0 ? void 0 : _columnsReplenish$uni.rules
|
|
20542
20519
|
}, "\u5355\u4F4D"),
|
|
20543
20520
|
key: 'unit',
|
|
20544
20521
|
width: 70,
|
|
20545
20522
|
render: function render(_, record) {
|
|
20546
20523
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index && !disableds.includes('unit') && model !== 'prefab') {
|
|
20547
|
-
return
|
|
20524
|
+
return React.createElement(Form.Item, null, getFieldDecorator('unit', {
|
|
20548
20525
|
initialValue: editGood.unit,
|
|
20549
20526
|
rules: getReplenishRules('unit')
|
|
20550
|
-
})(
|
|
20527
|
+
})(React.createElement(AutoComplete$1, {
|
|
20551
20528
|
style: {
|
|
20552
20529
|
width: '100%'
|
|
20553
20530
|
},
|
|
@@ -20585,7 +20562,7 @@ var useColumns$1 = (function (form) {
|
|
|
20585
20562
|
}()
|
|
20586
20563
|
})));
|
|
20587
20564
|
} else {
|
|
20588
|
-
return
|
|
20565
|
+
return React.createElement("span", {
|
|
20589
20566
|
style: {
|
|
20590
20567
|
padding: '0 10px'
|
|
20591
20568
|
}
|
|
@@ -20593,7 +20570,7 @@ var useColumns$1 = (function (form) {
|
|
|
20593
20570
|
}
|
|
20594
20571
|
}
|
|
20595
20572
|
}, {
|
|
20596
|
-
title:
|
|
20573
|
+
title: React.createElement(TitleText$1, {
|
|
20597
20574
|
rules: (_columnsReplenish$qua = columnsReplenish['quantity']) === null || _columnsReplenish$qua === void 0 ? void 0 : _columnsReplenish$qua.rules
|
|
20598
20575
|
}, "\u6570\u91CF"),
|
|
20599
20576
|
dataIndex: 'quantity',
|
|
@@ -20602,7 +20579,7 @@ var useColumns$1 = (function (form) {
|
|
|
20602
20579
|
width: 149,
|
|
20603
20580
|
render: function render(value, record) {
|
|
20604
20581
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index && !disableds.includes('quantity') && model !== 'prefab') {
|
|
20605
|
-
return
|
|
20582
|
+
return React.createElement(Form.Item, null, getFieldDecorator('quantity', {
|
|
20606
20583
|
initialValue: nonScientificNotation(editGood.quantity),
|
|
20607
20584
|
getValueFromEvent: onNumberValueChange,
|
|
20608
20585
|
rules: [].concat(_toConsumableArray(getReplenishRules('quantity')), [{
|
|
@@ -20648,7 +20625,7 @@ var useColumns$1 = (function (form) {
|
|
|
20648
20625
|
return validator;
|
|
20649
20626
|
}()
|
|
20650
20627
|
}])
|
|
20651
|
-
})(
|
|
20628
|
+
})(React.createElement(MyInput$2, {
|
|
20652
20629
|
style: {
|
|
20653
20630
|
textAlign: 'right'
|
|
20654
20631
|
},
|
|
@@ -20680,7 +20657,7 @@ var useColumns$1 = (function (form) {
|
|
|
20680
20657
|
}()
|
|
20681
20658
|
})));
|
|
20682
20659
|
} else {
|
|
20683
|
-
return
|
|
20660
|
+
return React.createElement("span", {
|
|
20684
20661
|
style: {
|
|
20685
20662
|
padding: '0 10px'
|
|
20686
20663
|
}
|
|
@@ -20688,7 +20665,7 @@ var useColumns$1 = (function (form) {
|
|
|
20688
20665
|
}
|
|
20689
20666
|
}
|
|
20690
20667
|
}, {
|
|
20691
|
-
title:
|
|
20668
|
+
title: React.createElement(TitleText$1, {
|
|
20692
20669
|
rules: (_columnsReplenish$pri = columnsReplenish['priceIncludeTax']) === null || _columnsReplenish$pri === void 0 ? void 0 : _columnsReplenish$pri.rules
|
|
20693
20670
|
}, "\u5355\u4EF7(\u542B\u7A0E)"),
|
|
20694
20671
|
dataIndex: 'priceIncludeTax',
|
|
@@ -20697,7 +20674,7 @@ var useColumns$1 = (function (form) {
|
|
|
20697
20674
|
width: 149,
|
|
20698
20675
|
render: function render(value, record) {
|
|
20699
20676
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index && !disableds.includes('priceIncludeTax') && model !== 'prefab') {
|
|
20700
|
-
return
|
|
20677
|
+
return React.createElement(Form.Item, null, getFieldDecorator('priceIncludeTax', {
|
|
20701
20678
|
initialValue: nonScientificNotation(editGood.priceIncludeTax),
|
|
20702
20679
|
getValueFromEvent: onNumberValueChange,
|
|
20703
20680
|
rules: [].concat(_toConsumableArray(getReplenishRules('priceIncludeTax')), [{
|
|
@@ -20743,7 +20720,7 @@ var useColumns$1 = (function (form) {
|
|
|
20743
20720
|
return validator;
|
|
20744
20721
|
}()
|
|
20745
20722
|
}])
|
|
20746
|
-
})(
|
|
20723
|
+
})(React.createElement(MyInput$2, {
|
|
20747
20724
|
style: {
|
|
20748
20725
|
textAlign: 'right'
|
|
20749
20726
|
},
|
|
@@ -20755,7 +20732,7 @@ var useColumns$1 = (function (form) {
|
|
|
20755
20732
|
}
|
|
20756
20733
|
})));
|
|
20757
20734
|
} else {
|
|
20758
|
-
return
|
|
20735
|
+
return React.createElement("span", {
|
|
20759
20736
|
style: {
|
|
20760
20737
|
padding: '0 10px'
|
|
20761
20738
|
}
|
|
@@ -20763,7 +20740,7 @@ var useColumns$1 = (function (form) {
|
|
|
20763
20740
|
}
|
|
20764
20741
|
}
|
|
20765
20742
|
}, {
|
|
20766
|
-
title:
|
|
20743
|
+
title: React.createElement(TitleText$1, {
|
|
20767
20744
|
rules: (_columnsReplenish$pri2 = columnsReplenish['priceExcludeTax']) === null || _columnsReplenish$pri2 === void 0 ? void 0 : _columnsReplenish$pri2.rules
|
|
20768
20745
|
}, "\u5355\u4EF7(\u4E0D\u542B\u7A0E)"),
|
|
20769
20746
|
dataIndex: 'priceExcludeTax',
|
|
@@ -20772,7 +20749,7 @@ var useColumns$1 = (function (form) {
|
|
|
20772
20749
|
width: 149,
|
|
20773
20750
|
render: function render(value, record) {
|
|
20774
20751
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index && !disableds.includes('priceExcludeTax') && model !== 'prefab') {
|
|
20775
|
-
return
|
|
20752
|
+
return React.createElement(Form.Item, null, getFieldDecorator('priceExcludeTax', {
|
|
20776
20753
|
initialValue: nonScientificNotation(editGood.priceExcludeTax),
|
|
20777
20754
|
getValueFromEvent: onNumberValueChange,
|
|
20778
20755
|
rules: [].concat(_toConsumableArray(getReplenishRules('priceExcludeTax')), [{
|
|
@@ -20818,7 +20795,7 @@ var useColumns$1 = (function (form) {
|
|
|
20818
20795
|
return validator;
|
|
20819
20796
|
}()
|
|
20820
20797
|
}])
|
|
20821
|
-
})(
|
|
20798
|
+
})(React.createElement(MyInput$2, {
|
|
20822
20799
|
style: {
|
|
20823
20800
|
textAlign: 'right'
|
|
20824
20801
|
},
|
|
@@ -20830,7 +20807,7 @@ var useColumns$1 = (function (form) {
|
|
|
20830
20807
|
}
|
|
20831
20808
|
})));
|
|
20832
20809
|
} else {
|
|
20833
|
-
return
|
|
20810
|
+
return React.createElement("span", {
|
|
20834
20811
|
style: {
|
|
20835
20812
|
padding: '0 10px'
|
|
20836
20813
|
}
|
|
@@ -20838,7 +20815,7 @@ var useColumns$1 = (function (form) {
|
|
|
20838
20815
|
}
|
|
20839
20816
|
}
|
|
20840
20817
|
}, {
|
|
20841
|
-
title:
|
|
20818
|
+
title: React.createElement(TitleText$1, {
|
|
20842
20819
|
required: true
|
|
20843
20820
|
}, "\u91D1\u989D(\u542B\u7A0E)"),
|
|
20844
20821
|
dataIndex: 'lineAmountIncludeTax',
|
|
@@ -20847,7 +20824,7 @@ var useColumns$1 = (function (form) {
|
|
|
20847
20824
|
align: 'right',
|
|
20848
20825
|
render: function render(value, record) {
|
|
20849
20826
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index && !disableds.includes('lineAmountIncludeTax') && model !== 'prefab') {
|
|
20850
|
-
return
|
|
20827
|
+
return React.createElement(Form.Item, null, getFieldDecorator('lineAmountIncludeTax', {
|
|
20851
20828
|
initialValue: editGood.lineAmountIncludeTax,
|
|
20852
20829
|
getValueFromEvent: onNumberValueChange,
|
|
20853
20830
|
rules: [].concat(_toConsumableArray(getReplenishRules('lineAmountIncludeTax')), [{
|
|
@@ -20907,7 +20884,7 @@ var useColumns$1 = (function (form) {
|
|
|
20907
20884
|
return validator;
|
|
20908
20885
|
}()
|
|
20909
20886
|
}])
|
|
20910
|
-
})(
|
|
20887
|
+
})(React.createElement(MyInput$2, {
|
|
20911
20888
|
style: {
|
|
20912
20889
|
textAlign: 'right'
|
|
20913
20890
|
},
|
|
@@ -20918,7 +20895,7 @@ var useColumns$1 = (function (form) {
|
|
|
20918
20895
|
}
|
|
20919
20896
|
})));
|
|
20920
20897
|
} else {
|
|
20921
|
-
return
|
|
20898
|
+
return React.createElement("span", {
|
|
20922
20899
|
style: {
|
|
20923
20900
|
padding: '0 10px'
|
|
20924
20901
|
}
|
|
@@ -20926,7 +20903,7 @@ var useColumns$1 = (function (form) {
|
|
|
20926
20903
|
}
|
|
20927
20904
|
}
|
|
20928
20905
|
}, {
|
|
20929
|
-
title:
|
|
20906
|
+
title: React.createElement(TitleText$1, {
|
|
20930
20907
|
required: true
|
|
20931
20908
|
}, "\u91D1\u989D(\u4E0D\u542B\u7A0E)"),
|
|
20932
20909
|
dataIndex: 'lineAmountExcludeTax',
|
|
@@ -20935,7 +20912,7 @@ var useColumns$1 = (function (form) {
|
|
|
20935
20912
|
width: 119,
|
|
20936
20913
|
render: function render(value, record) {
|
|
20937
20914
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index && !disableds.includes('lineAmountExcludeTax') && model !== 'prefab') {
|
|
20938
|
-
return
|
|
20915
|
+
return React.createElement(Form.Item, null, getFieldDecorator('lineAmountExcludeTax', {
|
|
20939
20916
|
initialValue: editGood.lineAmountExcludeTax,
|
|
20940
20917
|
getValueFromEvent: onNumberValueChange,
|
|
20941
20918
|
rules: [].concat(_toConsumableArray(getReplenishRules('lineAmountExcludeTax')), [{
|
|
@@ -20970,7 +20947,7 @@ var useColumns$1 = (function (form) {
|
|
|
20970
20947
|
return validator;
|
|
20971
20948
|
}()
|
|
20972
20949
|
}])
|
|
20973
|
-
})(
|
|
20950
|
+
})(React.createElement(MyInput$2, {
|
|
20974
20951
|
style: {
|
|
20975
20952
|
textAlign: 'right'
|
|
20976
20953
|
},
|
|
@@ -20981,7 +20958,7 @@ var useColumns$1 = (function (form) {
|
|
|
20981
20958
|
}
|
|
20982
20959
|
})));
|
|
20983
20960
|
} else {
|
|
20984
|
-
return
|
|
20961
|
+
return React.createElement("span", {
|
|
20985
20962
|
style: {
|
|
20986
20963
|
padding: '0 10px'
|
|
20987
20964
|
}
|
|
@@ -20989,7 +20966,7 @@ var useColumns$1 = (function (form) {
|
|
|
20989
20966
|
}
|
|
20990
20967
|
}
|
|
20991
20968
|
}, {
|
|
20992
|
-
title:
|
|
20969
|
+
title: React.createElement(TitleText$1, {
|
|
20993
20970
|
required: true
|
|
20994
20971
|
}, "\u7A0E\u7387"),
|
|
20995
20972
|
dataIndex: 'taxRate',
|
|
@@ -20998,7 +20975,7 @@ var useColumns$1 = (function (form) {
|
|
|
20998
20975
|
width: 70,
|
|
20999
20976
|
render: function render(value, record) {
|
|
21000
20977
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index && !disableds.includes('taxRate') && !(model === 'prefab' && calculateType === '3')) {
|
|
21001
|
-
return
|
|
20978
|
+
return React.createElement(Form.Item, null, getFieldDecorator('taxRate', {
|
|
21002
20979
|
initialValue: editGood.taxRate,
|
|
21003
20980
|
rules: [].concat(_toConsumableArray(getReplenishRules('taxRate')), [{
|
|
21004
20981
|
required: true,
|
|
@@ -21007,7 +20984,7 @@ var useColumns$1 = (function (form) {
|
|
|
21007
20984
|
pattern: /^[+-]?(0|([1-9]\d*))(\.\d+)?$/,
|
|
21008
20985
|
message: '请选择正确税率'
|
|
21009
20986
|
}])
|
|
21010
|
-
})(
|
|
20987
|
+
})(React.createElement(Select$1, {
|
|
21011
20988
|
className: "kts-invoice-operate-goods-list-table-tax-rate",
|
|
21012
20989
|
// dropdownMenuStyle={{ textAlign: "right" }}
|
|
21013
20990
|
showArrow: false,
|
|
@@ -21022,13 +20999,13 @@ var useColumns$1 = (function (form) {
|
|
|
21022
20999
|
onChangeTaxRate$1(controller, form, record);
|
|
21023
21000
|
}
|
|
21024
21001
|
}, (record.goodsTaxRateList || taxRateList).map(function (e, i) {
|
|
21025
|
-
return
|
|
21002
|
+
return React.createElement(Select$1.Option, {
|
|
21026
21003
|
key: i,
|
|
21027
21004
|
value: e
|
|
21028
21005
|
}, e, "%");
|
|
21029
21006
|
}))));
|
|
21030
21007
|
} else {
|
|
21031
|
-
return
|
|
21008
|
+
return React.createElement("span", {
|
|
21032
21009
|
style: {
|
|
21033
21010
|
padding: '0 10px'
|
|
21034
21011
|
}
|
|
@@ -21036,7 +21013,7 @@ var useColumns$1 = (function (form) {
|
|
|
21036
21013
|
}
|
|
21037
21014
|
}
|
|
21038
21015
|
}, {
|
|
21039
|
-
title:
|
|
21016
|
+
title: React.createElement(TitleText$1, {
|
|
21040
21017
|
rules: (_columnsReplenish$tax = columnsReplenish['taxAmount']) === null || _columnsReplenish$tax === void 0 ? void 0 : _columnsReplenish$tax.rules
|
|
21041
21018
|
}, "\u7A0E\u989D"),
|
|
21042
21019
|
dataIndex: 'taxAmount',
|
|
@@ -21048,11 +21025,11 @@ var useColumns$1 = (function (form) {
|
|
|
21048
21025
|
return getFieldDecorator('taxAmount', {
|
|
21049
21026
|
initialValue: editGood.taxAmount,
|
|
21050
21027
|
rules: getReplenishRules('taxAmount')
|
|
21051
|
-
})(
|
|
21028
|
+
})(React.createElement(MyDiv$2, {
|
|
21052
21029
|
loading: isCipher$1(changeField, 'taxAmount')
|
|
21053
21030
|
}));
|
|
21054
21031
|
} else {
|
|
21055
|
-
return
|
|
21032
|
+
return React.createElement("span", {
|
|
21056
21033
|
style: {
|
|
21057
21034
|
padding: '0 10px'
|
|
21058
21035
|
}
|
|
@@ -21119,13 +21096,13 @@ var MyInput$2 = /*#__PURE__*/function (_React$Component) {
|
|
|
21119
21096
|
key: "render",
|
|
21120
21097
|
value: function render() {
|
|
21121
21098
|
if (this.props.loading) {
|
|
21122
|
-
return
|
|
21099
|
+
return React.createElement(Spin$1, {
|
|
21123
21100
|
size: "small"
|
|
21124
|
-
},
|
|
21101
|
+
}, React.createElement(Input$1, _objectSpread2(_objectSpread2({}, this.props), {}, {
|
|
21125
21102
|
autoComplete: "off"
|
|
21126
21103
|
})));
|
|
21127
21104
|
} else {
|
|
21128
|
-
return
|
|
21105
|
+
return React.createElement(Input$1, _objectSpread2(_objectSpread2({}, this.props), {}, {
|
|
21129
21106
|
autoComplete: "off"
|
|
21130
21107
|
}));
|
|
21131
21108
|
}
|
|
@@ -21150,15 +21127,15 @@ var MyDiv$2 = /*#__PURE__*/function (_React$Component2) {
|
|
|
21150
21127
|
key: "render",
|
|
21151
21128
|
value: function render() {
|
|
21152
21129
|
if (this.props.loading) {
|
|
21153
|
-
return
|
|
21130
|
+
return React.createElement(Spin$1, {
|
|
21154
21131
|
size: "small"
|
|
21155
|
-
},
|
|
21132
|
+
}, React.createElement("span", {
|
|
21156
21133
|
style: {
|
|
21157
21134
|
padding: '0 10px'
|
|
21158
21135
|
}
|
|
21159
21136
|
}, this.props.value));
|
|
21160
21137
|
} else {
|
|
21161
|
-
return
|
|
21138
|
+
return React.createElement("span", {
|
|
21162
21139
|
style: {
|
|
21163
21140
|
padding: '0 10px'
|
|
21164
21141
|
}
|
|
@@ -21191,32 +21168,32 @@ var MyItemNameDiv$1 = /*#__PURE__*/function (_React$Component3) {
|
|
|
21191
21168
|
|
|
21192
21169
|
if (isMyShow) {
|
|
21193
21170
|
if (valueT) {
|
|
21194
|
-
return
|
|
21171
|
+
return React.createElement(Tooltip$1, {
|
|
21195
21172
|
title: valueT
|
|
21196
|
-
},
|
|
21173
|
+
}, React.createElement("span", {
|
|
21197
21174
|
style: _objectSpread2(_objectSpread2({}, MyItemNameStyle), {}, {
|
|
21198
21175
|
color: '#0074ff'
|
|
21199
21176
|
})
|
|
21200
21177
|
}, valueT));
|
|
21201
21178
|
} else {
|
|
21202
|
-
return
|
|
21179
|
+
return React.createElement(Tooltip$1, {
|
|
21203
21180
|
title: valueF
|
|
21204
|
-
},
|
|
21181
|
+
}, React.createElement("span", {
|
|
21205
21182
|
style: MyItemNameStyle
|
|
21206
21183
|
}, valueF));
|
|
21207
21184
|
}
|
|
21208
21185
|
} else {
|
|
21209
21186
|
if (valueF) {
|
|
21210
|
-
return
|
|
21187
|
+
return React.createElement(Tooltip$1, {
|
|
21211
21188
|
title: valueF
|
|
21212
|
-
},
|
|
21189
|
+
}, React.createElement("span", {
|
|
21213
21190
|
style: MyItemNameStyle
|
|
21214
21191
|
}, valueF));
|
|
21215
21192
|
} else {
|
|
21216
|
-
return
|
|
21193
|
+
return React.createElement(Tooltip$1, {
|
|
21217
21194
|
title: valueT,
|
|
21218
21195
|
style: MyItemNameStyle
|
|
21219
|
-
},
|
|
21196
|
+
}, React.createElement("span", {
|
|
21220
21197
|
style: _objectSpread2(_objectSpread2({}, MyItemNameStyle), {}, {
|
|
21221
21198
|
color: '#0074ff'
|
|
21222
21199
|
})
|
|
@@ -21238,7 +21215,7 @@ function formatSearch$1(value, search) {
|
|
|
21238
21215
|
return dcoding$1(e);
|
|
21239
21216
|
}).join("<span class=\"kts-invoice-operate-goods-list-table-search-protrude\" >".concat(search, "</span>"));
|
|
21240
21217
|
|
|
21241
|
-
return
|
|
21218
|
+
return React.createElement("span", {
|
|
21242
21219
|
dangerouslySetInnerHTML: {
|
|
21243
21220
|
__html: __html
|
|
21244
21221
|
}
|
|
@@ -21648,7 +21625,7 @@ var useRowSelection$1 = (function () {
|
|
|
21648
21625
|
};
|
|
21649
21626
|
}(), [controller]);
|
|
21650
21627
|
var columnTitle = React.useMemo(function () {
|
|
21651
|
-
return
|
|
21628
|
+
return React.createElement(Checkbox, {
|
|
21652
21629
|
onChange: onClickSelectAll,
|
|
21653
21630
|
indeterminate: indeterminate,
|
|
21654
21631
|
checked: isAll
|
|
@@ -21797,19 +21774,19 @@ var useDelRowButton$1 = (function () {
|
|
|
21797
21774
|
}, _callee2);
|
|
21798
21775
|
})), []);
|
|
21799
21776
|
var menuItem = React.useMemo(function () {
|
|
21800
|
-
if (model === 'prefab') return
|
|
21801
|
-
if (model === 'readOnly') return
|
|
21802
|
-
return
|
|
21777
|
+
if (model === 'prefab') return React.createElement(React.Fragment, null);
|
|
21778
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
21779
|
+
return React.createElement(Menu$1.Item, {
|
|
21803
21780
|
key: "1",
|
|
21804
21781
|
onClick: onClick,
|
|
21805
21782
|
disabled: disabled
|
|
21806
21783
|
}, " \u5220\u9664\u884C ");
|
|
21807
21784
|
}, [model, onClick, disabled]);
|
|
21808
21785
|
var button = React.useMemo(function () {
|
|
21809
|
-
if (isRemRow === false) return
|
|
21810
|
-
if (model === 'prefab') return
|
|
21811
|
-
if (model === 'readOnly') return
|
|
21812
|
-
return
|
|
21786
|
+
if (isRemRow === false) return React.createElement(React.Fragment, null);
|
|
21787
|
+
if (model === 'prefab') return React.createElement(React.Fragment, null);
|
|
21788
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
21789
|
+
return React.createElement(Button$1, {
|
|
21813
21790
|
size: 'small',
|
|
21814
21791
|
onClick: onClick,
|
|
21815
21792
|
disabled: disabled
|
|
@@ -22040,16 +22017,16 @@ var useAddDiscountRowButton$1 = (function () {
|
|
|
22040
22017
|
}, [isAddDiscount, model]);
|
|
22041
22018
|
var button = React.useMemo(function () {
|
|
22042
22019
|
if (isEnable) {
|
|
22043
|
-
return
|
|
22020
|
+
return React.createElement(React.Fragment, null, React.createElement(Button$1, {
|
|
22044
22021
|
size: 'small',
|
|
22045
22022
|
onClick: onOpen,
|
|
22046
22023
|
disabled: disabled
|
|
22047
|
-
}, "\u6DFB\u52A0\u6298\u6263"),
|
|
22024
|
+
}, "\u6DFB\u52A0\u6298\u6263"), React.createElement(AddDiscountRowDrawer, {
|
|
22048
22025
|
open: open,
|
|
22049
22026
|
onClose: onClose
|
|
22050
22027
|
}));
|
|
22051
22028
|
} else {
|
|
22052
|
-
return
|
|
22029
|
+
return React.createElement(React.Fragment, null);
|
|
22053
22030
|
}
|
|
22054
22031
|
}, [open, onOpen, onClose, isEnable, disabled]);
|
|
22055
22032
|
return {
|
|
@@ -22230,35 +22207,35 @@ function AddDiscountRowDrawer(props) {
|
|
|
22230
22207
|
discolineValue: undefined
|
|
22231
22208
|
}));
|
|
22232
22209
|
}, [formValues === null || formValues === void 0 ? void 0 : formValues.discolineType]);
|
|
22233
|
-
return
|
|
22210
|
+
return React.createElement(Drawer$1, {
|
|
22234
22211
|
title: "\u6DFB\u52A0\u6298\u6263",
|
|
22235
22212
|
placement: "right",
|
|
22236
22213
|
width: 350,
|
|
22237
22214
|
onClose: onClose,
|
|
22238
22215
|
open: open,
|
|
22239
|
-
footer:
|
|
22216
|
+
footer: React.createElement(Space, {
|
|
22240
22217
|
size: "middle",
|
|
22241
22218
|
style: {
|
|
22242
22219
|
display: 'flex',
|
|
22243
22220
|
justifyContent: 'end'
|
|
22244
22221
|
}
|
|
22245
|
-
},
|
|
22222
|
+
}, React.createElement(Button$1, {
|
|
22246
22223
|
onClick: onDefine,
|
|
22247
22224
|
type: 'primary'
|
|
22248
|
-
}, "\u786E\u5B9A"),
|
|
22225
|
+
}, "\u786E\u5B9A"), React.createElement(Button$1, {
|
|
22249
22226
|
onClick: onClose
|
|
22250
22227
|
}, "\u53D6\u6D88"))
|
|
22251
|
-
},
|
|
22228
|
+
}, React.createElement(Form$1, {
|
|
22252
22229
|
form: form,
|
|
22253
22230
|
layout: 'vertical',
|
|
22254
22231
|
onChange: onChangeForm
|
|
22255
|
-
},
|
|
22232
|
+
}, React.createElement(Form$1.Item, {
|
|
22256
22233
|
label: "\u5546\u54C1\u91D1\u989D\uFF08\u542B\u7A0E\uFF09"
|
|
22257
|
-
}, totalAmount.toFixed(2), "\uFF08\u5171 ", discountGood.length, " \u884C\uFF09"),
|
|
22234
|
+
}, totalAmount.toFixed(2), "\uFF08\u5171 ", discountGood.length, " \u884C\uFF09"), React.createElement(Form$1.Item, {
|
|
22258
22235
|
label: "\u6298\u6263\u65B9\u5F0F",
|
|
22259
22236
|
name: 'discolineType',
|
|
22260
22237
|
initialValue: '1'
|
|
22261
|
-
},
|
|
22238
|
+
}, React.createElement(Radio.Group, {
|
|
22262
22239
|
options: [{
|
|
22263
22240
|
label: '按金额折扣',
|
|
22264
22241
|
value: '1'
|
|
@@ -22266,7 +22243,7 @@ function AddDiscountRowDrawer(props) {
|
|
|
22266
22243
|
label: '按比例折扣',
|
|
22267
22244
|
value: '2'
|
|
22268
22245
|
}]
|
|
22269
|
-
})), (formValues === null || formValues === void 0 ? void 0 : formValues.discolineType) === '2' ?
|
|
22246
|
+
})), (formValues === null || formValues === void 0 ? void 0 : formValues.discolineType) === '2' ? React.createElement(Form$1.Item, {
|
|
22270
22247
|
label: "\u6298\u6263\u6BD4\u4F8B\uFF08%\uFF09\uFF08\u542B\u7A0E\uFF09",
|
|
22271
22248
|
name: 'discolineValue',
|
|
22272
22249
|
rules: [{
|
|
@@ -22317,11 +22294,11 @@ function AddDiscountRowDrawer(props) {
|
|
|
22317
22294
|
return validator;
|
|
22318
22295
|
}()
|
|
22319
22296
|
}]
|
|
22320
|
-
},
|
|
22297
|
+
}, React.createElement(InputNumber, {
|
|
22321
22298
|
style: {
|
|
22322
22299
|
width: '100%'
|
|
22323
22300
|
}
|
|
22324
|
-
})) :
|
|
22301
|
+
})) : React.createElement(Form$1.Item, {
|
|
22325
22302
|
label: "\u6298\u6263\u91D1\u989D\uFF08\u5143\uFF09\uFF08\u542B\u7A0E\uFF09",
|
|
22326
22303
|
name: 'discolineValue',
|
|
22327
22304
|
rules: [{
|
|
@@ -22372,7 +22349,7 @@ function AddDiscountRowDrawer(props) {
|
|
|
22372
22349
|
return validator;
|
|
22373
22350
|
}()
|
|
22374
22351
|
}]
|
|
22375
|
-
},
|
|
22352
|
+
}, React.createElement(InputNumber, {
|
|
22376
22353
|
style: {
|
|
22377
22354
|
width: '100%'
|
|
22378
22355
|
}
|
|
@@ -22516,16 +22493,16 @@ var useEndowCodeButton$1 = (function () {
|
|
|
22516
22493
|
}, _callee2);
|
|
22517
22494
|
})), [controller]);
|
|
22518
22495
|
var menuItem = React.useMemo(function () {
|
|
22519
|
-
if (model === 'readOnly') return
|
|
22520
|
-
return
|
|
22496
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
22497
|
+
return React.createElement(Menu$1.Item, {
|
|
22521
22498
|
key: "2",
|
|
22522
22499
|
onClick: onClick,
|
|
22523
22500
|
disabled: disabled
|
|
22524
22501
|
}, "\u6279\u91CF\u8D4B\u7801");
|
|
22525
22502
|
}, [onClick, disabled, model]);
|
|
22526
22503
|
var button = React.useMemo(function () {
|
|
22527
|
-
if (model === 'readOnly') return
|
|
22528
|
-
return
|
|
22504
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
22505
|
+
return React.createElement(Button$1, {
|
|
22529
22506
|
onClick: onClick,
|
|
22530
22507
|
disabled: disabled,
|
|
22531
22508
|
size: 'small'
|
|
@@ -22587,14 +22564,14 @@ var useEmptyRefill = (function () {
|
|
|
22587
22564
|
}());
|
|
22588
22565
|
}, [controller]);
|
|
22589
22566
|
var button = React.useMemo(function () {
|
|
22590
|
-
if (model === 'readOnly') return
|
|
22591
|
-
if (model === 'prefab') return
|
|
22592
|
-
return
|
|
22567
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
22568
|
+
if (model === 'prefab') return React.createElement(React.Fragment, null);
|
|
22569
|
+
return React.createElement(Popconfirm, {
|
|
22593
22570
|
title: "\u5C06\u8981\u6E05\u7A7A\u6240\u6709\u9879\u76EE\u4FE1\u606F\uFF0C\u662F\u5426\u7EE7\u7EED",
|
|
22594
22571
|
onConfirm: confirm,
|
|
22595
22572
|
okText: "\u786E\u5B9A",
|
|
22596
22573
|
cancelText: "\u53D6\u6D88"
|
|
22597
|
-
},
|
|
22574
|
+
}, React.createElement(Button$1, {
|
|
22598
22575
|
size: 'small'
|
|
22599
22576
|
}, "\u6E05\u7A7A\u91CD\u586B"));
|
|
22600
22577
|
}, [model, confirm]);
|
|
@@ -22661,14 +22638,14 @@ function InvoiceTypeModal(props) {
|
|
|
22661
22638
|
setValues(values);
|
|
22662
22639
|
}
|
|
22663
22640
|
}, [props.open, props.defaultBillingType, props.defaultBusiness, props.defaultInvoiceType, form]);
|
|
22664
|
-
return
|
|
22641
|
+
return React.createElement(Modal, {
|
|
22665
22642
|
title: props.modalTitle || "选择开具信息",
|
|
22666
22643
|
open: props.open,
|
|
22667
22644
|
onOk: onConfirm,
|
|
22668
22645
|
onCancel: props.onCancel,
|
|
22669
22646
|
okText: "\u786E\u5B9A",
|
|
22670
22647
|
cancelText: "\u53D6\u6D88"
|
|
22671
|
-
},
|
|
22648
|
+
}, React.createElement(Form$1, {
|
|
22672
22649
|
form: form,
|
|
22673
22650
|
layout: "vertical",
|
|
22674
22651
|
style: {
|
|
@@ -22677,13 +22654,13 @@ function InvoiceTypeModal(props) {
|
|
|
22677
22654
|
onValuesChange: function onValuesChange(_, e) {
|
|
22678
22655
|
setValues(e);
|
|
22679
22656
|
}
|
|
22680
|
-
},
|
|
22657
|
+
}, React.createElement(Row, {
|
|
22681
22658
|
gutter: [16, 16]
|
|
22682
|
-
},
|
|
22659
|
+
}, React.createElement(Col, {
|
|
22683
22660
|
span: 24
|
|
22684
|
-
},
|
|
22661
|
+
}, React.createElement(Form$1.Item, {
|
|
22685
22662
|
name: 'billingType'
|
|
22686
|
-
},
|
|
22663
|
+
}, React.createElement(Radio.Group, {
|
|
22687
22664
|
size: 'large',
|
|
22688
22665
|
className: "goods-list-digtal-reselect-invoice-typeModal-radio",
|
|
22689
22666
|
optionType: "button",
|
|
@@ -22696,27 +22673,27 @@ function InvoiceTypeModal(props) {
|
|
|
22696
22673
|
label: '税控发票',
|
|
22697
22674
|
value: 'taxation'
|
|
22698
22675
|
}]
|
|
22699
|
-
}))),
|
|
22676
|
+
}))), React.createElement(Col, {
|
|
22700
22677
|
span: 12
|
|
22701
|
-
},
|
|
22678
|
+
}, React.createElement(Form$1.Item, {
|
|
22702
22679
|
name: 'invoiceType',
|
|
22703
22680
|
label: "\u9009\u62E9\u7968\u7C7B",
|
|
22704
22681
|
rules: [{
|
|
22705
22682
|
required: true,
|
|
22706
22683
|
message: '选择票类必填'
|
|
22707
22684
|
}]
|
|
22708
|
-
},
|
|
22685
|
+
}, React.createElement(Select$1, {
|
|
22709
22686
|
size: 'large',
|
|
22710
22687
|
allowClear: true,
|
|
22711
22688
|
placeholder: "\u8BF7\u9009\u62E9\uFF08\u5FC5\u586B\u9879\uFF09",
|
|
22712
22689
|
disabled: disableds.indexOf('invoiceType') >= 0,
|
|
22713
22690
|
options: props.invoiceTypeOptions
|
|
22714
|
-
}))),
|
|
22691
|
+
}))), React.createElement(Col, {
|
|
22715
22692
|
span: 12
|
|
22716
|
-
},
|
|
22693
|
+
}, React.createElement(Form$1.Item, {
|
|
22717
22694
|
name: 'business',
|
|
22718
22695
|
label: "\u7279\u5B9A\u4E1A\u52A1"
|
|
22719
|
-
},
|
|
22696
|
+
}, React.createElement(Select$1, {
|
|
22720
22697
|
size: 'large',
|
|
22721
22698
|
allowClear: true,
|
|
22722
22699
|
placeholder: "\u8BF7\u9009\u62E9\uFF08\u975E\u5FC5\u586B\u9879\uFF09",
|
|
@@ -22761,11 +22738,11 @@ var useReselectInvoiceType = (function () {
|
|
|
22761
22738
|
return true;
|
|
22762
22739
|
}, [model, typeModalProps === null || typeModalProps === void 0 ? void 0 : typeModalProps.isDisabled]);
|
|
22763
22740
|
var button = React.useMemo(function () {
|
|
22764
|
-
if (isEnable === false) return
|
|
22765
|
-
return
|
|
22741
|
+
if (isEnable === false) return React.createElement(React.Fragment, null);
|
|
22742
|
+
return React.createElement(React.Fragment, null, React.createElement(Button$1, {
|
|
22766
22743
|
size: 'small',
|
|
22767
22744
|
onClick: onOpen
|
|
22768
|
-
}, "\u91CD\u9009\u53D1\u7968\u7C7B\u578B"),
|
|
22745
|
+
}, "\u91CD\u9009\u53D1\u7968\u7C7B\u578B"), React.createElement(InvoiceTypeModal, _objectSpread2(_objectSpread2({}, typeModalProps), {}, {
|
|
22769
22746
|
open: open,
|
|
22770
22747
|
onCancel: onClose,
|
|
22771
22748
|
onOk: onOk
|
|
@@ -22793,7 +22770,7 @@ var GoodsList$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
22793
22770
|
_createClass(GoodsList, [{
|
|
22794
22771
|
key: "render",
|
|
22795
22772
|
value: function render() {
|
|
22796
|
-
return
|
|
22773
|
+
return React.createElement(Main$3, _objectSpread2({}, this.props));
|
|
22797
22774
|
}
|
|
22798
22775
|
}]);
|
|
22799
22776
|
|
|
@@ -22994,20 +22971,20 @@ var Main$3 = decorator(Form.create())(function (props) {
|
|
|
22994
22971
|
};
|
|
22995
22972
|
}())();
|
|
22996
22973
|
}, [controller, props.isSwitchTax]);
|
|
22997
|
-
return
|
|
22974
|
+
return React.createElement("div", {
|
|
22998
22975
|
className: "kts-invoice-operate-goods-list-digtal",
|
|
22999
22976
|
onClick: function onClick(e) {
|
|
23000
22977
|
e.stopPropagation();
|
|
23001
22978
|
}
|
|
23002
|
-
},
|
|
22979
|
+
}, React.createElement("div", {
|
|
23003
22980
|
className: "kts-invoice-operate-goods-list-able"
|
|
23004
|
-
},
|
|
22981
|
+
}, React.createElement(AddRowButton$1, null), delRowButton.button, addDiscountRowButton.button, endowCodeButton.button, React.createElement(TaxIncludedSwitch$1, null), React.createElement(Search$1, null), React.createElement("div", {
|
|
23005
22982
|
style: {
|
|
23006
22983
|
flex: 1
|
|
23007
22984
|
}
|
|
23008
|
-
}), props.menuExpansion, reselectInvoiceType.button, emptyRefill.button),
|
|
22985
|
+
}), props.menuExpansion, reselectInvoiceType.button, emptyRefill.button), React.createElement("div", {
|
|
23009
22986
|
className: classNames('kts-invoice-operate-goods-list-table-digtal')
|
|
23010
|
-
},
|
|
22987
|
+
}, React.createElement(TableVirtual$1, {
|
|
23011
22988
|
size: "small",
|
|
23012
22989
|
rowKey: "$index",
|
|
23013
22990
|
pagination: false,
|
|
@@ -23029,7 +23006,7 @@ var Main$3 = decorator(Form.create())(function (props) {
|
|
|
23029
23006
|
}
|
|
23030
23007
|
};
|
|
23031
23008
|
}
|
|
23032
|
-
})),
|
|
23009
|
+
})), React.createElement("div", null, React.createElement(Statistics$1, null)));
|
|
23033
23010
|
});
|
|
23034
23011
|
|
|
23035
23012
|
var css_248z$q = ".kts-invoice-operate-real-estate-info-digtal {\n padding: 20px;\n border-bottom: 2px solid #9F613E;\n border-left: 2px solid #9F613E;\n border-right: 2px solid #9F613E;\n}\n.kts-invoice-operate-real-estate-info-digtal .real-estate-info-digtal-label {\n color: #9F613E;\n font-weight: bold;\n}\n.kts-invoice-operate-real-estate-info-digtal .ktsAnt3x-row.ktsAnt3x-form-item {\n margin-bottom: 0;\n}\n";
|
|
@@ -23051,31 +23028,31 @@ var RealEstateInfo = decorator(Form.create())(function (props) {
|
|
|
23051
23028
|
}, [model]); // 注册 form
|
|
23052
23029
|
|
|
23053
23030
|
controller.useForm('realEstateInfo', form);
|
|
23054
|
-
return
|
|
23031
|
+
return React.createElement("div", {
|
|
23055
23032
|
className: "kts-invoice-operate-real-estate-info-digtal"
|
|
23056
|
-
},
|
|
23033
|
+
}, React.createElement("div", {
|
|
23057
23034
|
className: 'real-estate-info-digtal-label'
|
|
23058
|
-
}, "\u7279\u6B8A\u4FE1\u606F-\u4E0D\u52A8\u4EA7\u7ECF\u8425\u79DF\u8D41\u670D\u52A1"),
|
|
23035
|
+
}, "\u7279\u6B8A\u4FE1\u606F-\u4E0D\u52A8\u4EA7\u7ECF\u8425\u79DF\u8D41\u670D\u52A1"), React.createElement(Row$1, {
|
|
23059
23036
|
gutter: [17, 0]
|
|
23060
|
-
},
|
|
23037
|
+
}, React.createElement(Col$1, {
|
|
23061
23038
|
span: 6
|
|
23062
|
-
},
|
|
23039
|
+
}, React.createElement(Form.Item, {
|
|
23063
23040
|
label: "\u4E0D\u52A8\u4EA7\u5730\u5740"
|
|
23064
23041
|
}, getFieldDecorator('realEstateAddress', {
|
|
23065
23042
|
rules: readOnly ? [] : [{
|
|
23066
23043
|
required: true,
|
|
23067
23044
|
message: '请选择不动产地址'
|
|
23068
23045
|
}]
|
|
23069
|
-
})(readOnly ?
|
|
23046
|
+
})(readOnly ? React.createElement(MyArrString, null) : React.createElement(Cascader, {
|
|
23070
23047
|
style: {
|
|
23071
23048
|
width: '100%'
|
|
23072
23049
|
},
|
|
23073
23050
|
options: props.realEstateAddressOptions,
|
|
23074
23051
|
fieldNames: props.realEstateAddressFieldNames,
|
|
23075
23052
|
placeholder: "\u8BF7\u9009\u62E9\u7701\u5E02\u533A\u53BF"
|
|
23076
|
-
})))),
|
|
23053
|
+
})))), React.createElement(Col$1, {
|
|
23077
23054
|
span: 6
|
|
23078
|
-
},
|
|
23055
|
+
}, React.createElement(Form.Item, {
|
|
23079
23056
|
label: "\u8BE6\u7EC6\u5730\u5740"
|
|
23080
23057
|
}, getFieldDecorator('realEstateDetailedAddress', {
|
|
23081
23058
|
rules: readOnly ? [] : [{
|
|
@@ -23090,43 +23067,43 @@ var RealEstateInfo = decorator(Form.create())(function (props) {
|
|
|
23090
23067
|
return pattern.test(value) ? Promise.resolve() : Promise.reject('地址必须包含“街”、“路”、“村”、“乡”、“镇”、“道”、“巷”、“号”等任意一个关键词');
|
|
23091
23068
|
}
|
|
23092
23069
|
}]
|
|
23093
|
-
})(readOnly ?
|
|
23070
|
+
})(readOnly ? React.createElement(MyDiv$3, null) : React.createElement(Input$2, {
|
|
23094
23071
|
autoComplete: 'off',
|
|
23095
23072
|
placeholder: "\u8BF7\u8F93\u5165\u8BE6\u7EC6\u5730\u5740"
|
|
23096
|
-
})))),
|
|
23073
|
+
})))), React.createElement(Col$1, {
|
|
23097
23074
|
span: 6
|
|
23098
|
-
},
|
|
23075
|
+
}, React.createElement(Form.Item, {
|
|
23099
23076
|
label: "\u79DF\u8D41\u671F\u8D77\u6B62"
|
|
23100
23077
|
}, getFieldDecorator('leaseTerm', {
|
|
23101
23078
|
rules: readOnly ? [] : [{
|
|
23102
23079
|
required: true,
|
|
23103
23080
|
message: '请输入租赁期'
|
|
23104
23081
|
}]
|
|
23105
|
-
})(readOnly ?
|
|
23082
|
+
})(readOnly ? React.createElement(MyArrMoment, null) : React.createElement(RangePicker, {
|
|
23106
23083
|
style: {
|
|
23107
23084
|
width: '100%'
|
|
23108
23085
|
}
|
|
23109
|
-
})))),
|
|
23086
|
+
})))), React.createElement(Col$1, {
|
|
23110
23087
|
span: 6
|
|
23111
|
-
},
|
|
23088
|
+
}, React.createElement(Form.Item, {
|
|
23112
23089
|
label: "\u8DE8\u5730\uFF08\u5E02\uFF09\u6807\u5FD7"
|
|
23113
23090
|
}, getFieldDecorator('crossCitiesSign', {
|
|
23114
23091
|
rules: readOnly ? [] : [{
|
|
23115
23092
|
required: true,
|
|
23116
23093
|
message: '请选择跨地(市)标志'
|
|
23117
23094
|
}]
|
|
23118
|
-
})(readOnly ?
|
|
23095
|
+
})(readOnly ? React.createElement(MyNY, null) : React.createElement(Select$2, {
|
|
23119
23096
|
placeholder: "\u8BF7\u9009\u62E9",
|
|
23120
23097
|
style: {
|
|
23121
23098
|
width: '100%'
|
|
23122
23099
|
}
|
|
23123
|
-
},
|
|
23100
|
+
}, React.createElement(Select$2.Option, {
|
|
23124
23101
|
value: 'Y'
|
|
23125
|
-
}, "\u662F"),
|
|
23102
|
+
}, "\u662F"), React.createElement(Select$2.Option, {
|
|
23126
23103
|
value: 'N'
|
|
23127
|
-
}, "\u5426"))))),
|
|
23104
|
+
}, "\u5426"))))), React.createElement(Col$1, {
|
|
23128
23105
|
span: 6
|
|
23129
|
-
},
|
|
23106
|
+
}, React.createElement(Form.Item, {
|
|
23130
23107
|
label: "\u4EA7\u6743\u8BC1\u4E66/\u4E0D\u52A8\u4EA7\u6743\u8BC1\u53F7"
|
|
23131
23108
|
}, getFieldDecorator('realEstateNumber', {
|
|
23132
23109
|
rules: readOnly ? [] : [{
|
|
@@ -23136,36 +23113,36 @@ var RealEstateInfo = decorator(Form.create())(function (props) {
|
|
|
23136
23113
|
max: 40,
|
|
23137
23114
|
message: '证书编号最多40个字符'
|
|
23138
23115
|
}]
|
|
23139
|
-
})(readOnly ?
|
|
23116
|
+
})(readOnly ? React.createElement(MyDiv$3, null) : React.createElement(Input$2, {
|
|
23140
23117
|
autoComplete: 'off',
|
|
23141
23118
|
placeholder: "\u8BF7\u8F93\u5165\u8BC1\u4E66\u7F16\u53F7\uFF0C\u82E5\u6CA1\u6709\u8BC1\u4E66\u586B\u5199\u201C\u65E0\u201D"
|
|
23142
|
-
})))),
|
|
23119
|
+
})))), React.createElement(Col$1, {
|
|
23143
23120
|
span: 6
|
|
23144
|
-
},
|
|
23121
|
+
}, React.createElement(Form.Item, {
|
|
23145
23122
|
label: "\u9762\u79EF\u5355\u4F4D"
|
|
23146
23123
|
}, getFieldDecorator('realEstateUnit', {
|
|
23147
23124
|
rules: readOnly ? [] : [{
|
|
23148
23125
|
required: true,
|
|
23149
23126
|
message: '请选择面积单位'
|
|
23150
23127
|
}]
|
|
23151
|
-
})(readOnly ?
|
|
23128
|
+
})(readOnly ? React.createElement(MyDiv$3, null) : React.createElement(Select$2, {
|
|
23152
23129
|
placeholder: "\u8BF7\u9009\u62E9",
|
|
23153
23130
|
style: {
|
|
23154
23131
|
width: '100%'
|
|
23155
23132
|
}
|
|
23156
|
-
},
|
|
23133
|
+
}, React.createElement(Select$2.Option, {
|
|
23157
23134
|
value: "\u5E73\u65B9\u5343\u7C73"
|
|
23158
|
-
}, "\u5E73\u65B9\u5343\u7C73"),
|
|
23135
|
+
}, "\u5E73\u65B9\u5343\u7C73"), React.createElement(Select$2.Option, {
|
|
23159
23136
|
value: "\u5E73\u65B9\u7C73"
|
|
23160
|
-
}, "\u5E73\u65B9\u7C73"),
|
|
23137
|
+
}, "\u5E73\u65B9\u7C73"), React.createElement(Select$2.Option, {
|
|
23161
23138
|
value: "\u516C\u9877"
|
|
23162
|
-
}, "\u516C\u9877"),
|
|
23139
|
+
}, "\u516C\u9877"), React.createElement(Select$2.Option, {
|
|
23163
23140
|
value: "\u4EA9"
|
|
23164
|
-
}, "\u4EA9"),
|
|
23141
|
+
}, "\u4EA9"), React.createElement(Select$2.Option, {
|
|
23165
23142
|
value: "h\u33A1"
|
|
23166
|
-
}, "h\u33A1"),
|
|
23143
|
+
}, "h\u33A1"), React.createElement(Select$2.Option, {
|
|
23167
23144
|
value: "k\u33A1"
|
|
23168
|
-
}, "k\u33A1"),
|
|
23145
|
+
}, "k\u33A1"), React.createElement(Select$2.Option, {
|
|
23169
23146
|
value: "\u33A1"
|
|
23170
23147
|
}, "\u33A1")))))));
|
|
23171
23148
|
});
|
|
@@ -23184,7 +23161,7 @@ var MyDiv$3 = /*#__PURE__*/function (_React$Component) {
|
|
|
23184
23161
|
_createClass(MyDiv, [{
|
|
23185
23162
|
key: "render",
|
|
23186
23163
|
value: function render() {
|
|
23187
|
-
return
|
|
23164
|
+
return React.createElement("div", {
|
|
23188
23165
|
style: this.props.style
|
|
23189
23166
|
}, this.props.value);
|
|
23190
23167
|
}
|
|
@@ -23209,7 +23186,7 @@ var MyArrString = /*#__PURE__*/function (_React$Component2) {
|
|
|
23209
23186
|
value: function render() {
|
|
23210
23187
|
var _this$props$value;
|
|
23211
23188
|
|
|
23212
|
-
return
|
|
23189
|
+
return React.createElement("div", {
|
|
23213
23190
|
style: this.props.style
|
|
23214
23191
|
}, (_this$props$value = this.props.value) === null || _this$props$value === void 0 ? void 0 : _this$props$value.filter(function (e) {
|
|
23215
23192
|
return !!e;
|
|
@@ -23236,14 +23213,14 @@ var MyArrMoment = /*#__PURE__*/function (_React$Component3) {
|
|
|
23236
23213
|
value: function render() {
|
|
23237
23214
|
var _this$props$value2 = this.props.value,
|
|
23238
23215
|
value = _this$props$value2 === void 0 ? [] : _this$props$value2;
|
|
23239
|
-
return
|
|
23216
|
+
return React.createElement("div", {
|
|
23240
23217
|
style: this.props.style
|
|
23241
|
-
},
|
|
23218
|
+
}, React.createElement("span", null, hooks.isMoment(value[0]) && value[0].format('YYYY-MM-DD')), React.createElement("span", {
|
|
23242
23219
|
style: {
|
|
23243
23220
|
color: '#9F603D',
|
|
23244
23221
|
fontWeight: 600
|
|
23245
23222
|
}
|
|
23246
|
-
}, " - "),
|
|
23223
|
+
}, " - "), React.createElement("span", null, hooks.isMoment(value[1]) && value[0].format('YYYY-MM-DD')));
|
|
23247
23224
|
}
|
|
23248
23225
|
}]);
|
|
23249
23226
|
|
|
@@ -23264,7 +23241,7 @@ var MyNY = /*#__PURE__*/function (_React$Component4) {
|
|
|
23264
23241
|
_createClass(MyNY, [{
|
|
23265
23242
|
key: "render",
|
|
23266
23243
|
value: function render() {
|
|
23267
|
-
return
|
|
23244
|
+
return React.createElement("div", {
|
|
23268
23245
|
style: this.props.style
|
|
23269
23246
|
}, this.props.value === 'Y' ? '是' : '否');
|
|
23270
23247
|
}
|
|
@@ -23304,7 +23281,7 @@ var ImportBuyerDrawer = (function () {
|
|
|
23304
23281
|
};
|
|
23305
23282
|
}())();
|
|
23306
23283
|
}, [controller]);
|
|
23307
|
-
return
|
|
23284
|
+
return React.createElement(Drawer, {
|
|
23308
23285
|
title: "\u8D2D\u65B9\u5217\u8868",
|
|
23309
23286
|
placement: "right",
|
|
23310
23287
|
// closable={false}
|
|
@@ -23312,7 +23289,7 @@ var ImportBuyerDrawer = (function () {
|
|
|
23312
23289
|
width: 983,
|
|
23313
23290
|
onClose: onClose,
|
|
23314
23291
|
visible: visible
|
|
23315
|
-
}, topExpand,
|
|
23292
|
+
}, topExpand, React.createElement(DrawerBody$1, null));
|
|
23316
23293
|
});
|
|
23317
23294
|
|
|
23318
23295
|
var DrawerBody$1 = function DrawerBody() {
|
|
@@ -23333,7 +23310,7 @@ var DrawerBody$1 = function DrawerBody() {
|
|
|
23333
23310
|
}
|
|
23334
23311
|
});
|
|
23335
23312
|
}, [controller]);
|
|
23336
|
-
return
|
|
23313
|
+
return React.createElement(Table$1, {
|
|
23337
23314
|
bordered: true,
|
|
23338
23315
|
size: "small",
|
|
23339
23316
|
columns: columns,
|
|
@@ -23433,7 +23410,7 @@ var ImportGoodsDrawer = (function () {
|
|
|
23433
23410
|
};
|
|
23434
23411
|
}())();
|
|
23435
23412
|
}, [controller]);
|
|
23436
|
-
return
|
|
23413
|
+
return React.createElement(Drawer, {
|
|
23437
23414
|
title: "\u5546\u54C1\u5217\u8868",
|
|
23438
23415
|
placement: "right",
|
|
23439
23416
|
// closable={false}
|
|
@@ -23441,11 +23418,11 @@ var ImportGoodsDrawer = (function () {
|
|
|
23441
23418
|
width: 983,
|
|
23442
23419
|
onClose: onClose,
|
|
23443
23420
|
visible: visible
|
|
23444
|
-
}, topExpand &&
|
|
23421
|
+
}, topExpand && React.createElement("div", {
|
|
23445
23422
|
style: {
|
|
23446
23423
|
marginBottom: 10
|
|
23447
23424
|
}
|
|
23448
|
-
}, topExpand),
|
|
23425
|
+
}, topExpand), React.createElement(DrawerBody$2, null));
|
|
23449
23426
|
});
|
|
23450
23427
|
|
|
23451
23428
|
var DrawerBody$2 = function DrawerBody() {
|
|
@@ -23467,7 +23444,7 @@ var DrawerBody$2 = function DrawerBody() {
|
|
|
23467
23444
|
}
|
|
23468
23445
|
});
|
|
23469
23446
|
}, [controller]);
|
|
23470
|
-
return
|
|
23447
|
+
return React.createElement(Table$1, {
|
|
23471
23448
|
bordered: true,
|
|
23472
23449
|
size: "small",
|
|
23473
23450
|
columns: columns,
|
|
@@ -23775,7 +23752,7 @@ var EndowCodeDrawer = (function () {
|
|
|
23775
23752
|
setDefaultValue(undefined);
|
|
23776
23753
|
}
|
|
23777
23754
|
}, [visible]);
|
|
23778
|
-
return
|
|
23755
|
+
return React.createElement(Drawer, {
|
|
23779
23756
|
title: "\u8D4B\u7801",
|
|
23780
23757
|
placement: "right",
|
|
23781
23758
|
destroyOnClose: true,
|
|
@@ -23783,7 +23760,7 @@ var EndowCodeDrawer = (function () {
|
|
|
23783
23760
|
width: 383,
|
|
23784
23761
|
onClose: onClose,
|
|
23785
23762
|
visible: visible
|
|
23786
|
-
}, defaultValue &&
|
|
23763
|
+
}, defaultValue && React.createElement(DrawerBody$3, {
|
|
23787
23764
|
defaultValue: defaultValue
|
|
23788
23765
|
}));
|
|
23789
23766
|
});
|
|
@@ -23933,7 +23910,7 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23933
23910
|
};
|
|
23934
23911
|
}());
|
|
23935
23912
|
}, [actions, dataSource, readOnlyTaxRate]);
|
|
23936
|
-
return
|
|
23913
|
+
return React.createElement(Select, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
23937
23914
|
showSearch: true,
|
|
23938
23915
|
showArrow: false,
|
|
23939
23916
|
notFoundContent: null,
|
|
@@ -23941,7 +23918,7 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23941
23918
|
onSearch: onSearch,
|
|
23942
23919
|
onChange: onChange
|
|
23943
23920
|
}), dataSource.map(function (e) {
|
|
23944
|
-
return
|
|
23921
|
+
return React.createElement(Select.Option, {
|
|
23945
23922
|
key: e.value,
|
|
23946
23923
|
value: e.value
|
|
23947
23924
|
}, e.label);
|
|
@@ -23971,14 +23948,14 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23971
23948
|
|
|
23972
23949
|
|
|
23973
23950
|
var createTreeNode = React.useCallback(function () {
|
|
23974
|
-
if (!list) return
|
|
23951
|
+
if (!list) return React.createElement(React.Fragment, null);
|
|
23975
23952
|
return ctn(list);
|
|
23976
23953
|
|
|
23977
23954
|
function title(label) {
|
|
23978
23955
|
if (!filter) return label;
|
|
23979
23956
|
label = (filter.taxCategoryCode ? label.split(new RegExp(filter.taxCategoryCode, 'g')) : [label]).join("<span style=\"color: #1890ff;\">".concat(filter.taxCategoryCode, "</span>"));
|
|
23980
23957
|
label = (filter.val ? label.split(new RegExp(filter.val, 'g')) : [label]).join("<span style=\"color: #1890ff;\">".concat(filter.val, "</span>"));
|
|
23981
|
-
return
|
|
23958
|
+
return React.createElement("span", {
|
|
23982
23959
|
dangerouslySetInnerHTML: {
|
|
23983
23960
|
__html: label
|
|
23984
23961
|
}
|
|
@@ -23987,11 +23964,11 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23987
23964
|
|
|
23988
23965
|
function ctn(l) {
|
|
23989
23966
|
var p = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '0';
|
|
23990
|
-
if (!l || !l.length) return [
|
|
23967
|
+
if (!l || !l.length) return [React.createElement(React.Fragment, null)];
|
|
23991
23968
|
return l.filter(function (e) {
|
|
23992
23969
|
return e.pid === p;
|
|
23993
23970
|
}).map(function (e) {
|
|
23994
|
-
return
|
|
23971
|
+
return React.createElement(TreeNode, {
|
|
23995
23972
|
title: title(e.label),
|
|
23996
23973
|
key: e.id
|
|
23997
23974
|
}, ctn(l, e.id));
|
|
@@ -24104,46 +24081,46 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
24104
24081
|
setList([]);
|
|
24105
24082
|
}
|
|
24106
24083
|
}, [visible]);
|
|
24107
|
-
return
|
|
24084
|
+
return React.createElement(React.Fragment, null, React.createElement(Input, {
|
|
24108
24085
|
readOnly: true,
|
|
24109
24086
|
value: props.value,
|
|
24110
|
-
addonAfter:
|
|
24087
|
+
addonAfter: React.createElement(Button, {
|
|
24111
24088
|
size: "small",
|
|
24112
24089
|
type: "link",
|
|
24113
24090
|
onClick: function onClick() {
|
|
24114
24091
|
setVisible(true);
|
|
24115
24092
|
}
|
|
24116
24093
|
}, "\u70B9\u51FB\u9009\u62E9")
|
|
24117
|
-
}),
|
|
24094
|
+
}), React.createElement(Drawer, {
|
|
24118
24095
|
title: "\u7A0E\u6536\u5206\u7C7B\u7F16\u7801",
|
|
24119
24096
|
visible: visible,
|
|
24120
24097
|
width: 500,
|
|
24121
24098
|
onClose: function onClose() {
|
|
24122
24099
|
setVisible(false);
|
|
24123
24100
|
}
|
|
24124
|
-
},
|
|
24101
|
+
}, React.createElement(Form, {
|
|
24125
24102
|
key: "".concat(visible)
|
|
24126
|
-
},
|
|
24103
|
+
}, React.createElement(Form.Item, {
|
|
24127
24104
|
label: "\u4EA7\u54C1\u6216\u670D\u52A1\u7B80\u79F0"
|
|
24128
|
-
},
|
|
24105
|
+
}, React.createElement(Input, {
|
|
24129
24106
|
onChange: function onChange(e) {
|
|
24130
24107
|
setFilter(_objectSpread2(_objectSpread2({}, filter), {}, {
|
|
24131
24108
|
val: e.target.value
|
|
24132
24109
|
}));
|
|
24133
24110
|
}
|
|
24134
|
-
})),
|
|
24111
|
+
})), React.createElement(Form.Item, {
|
|
24135
24112
|
label: "\u7A0E\u6536\u5206\u7C7B\u7F16\u7801"
|
|
24136
|
-
},
|
|
24113
|
+
}, React.createElement(Input, {
|
|
24137
24114
|
onChange: function onChange(e) {
|
|
24138
24115
|
setFilter(_objectSpread2(_objectSpread2({}, filter), {}, {
|
|
24139
24116
|
taxCategoryCode: e.target.value
|
|
24140
24117
|
}));
|
|
24141
24118
|
}
|
|
24142
|
-
}))), list && list.length > 0 ?
|
|
24119
|
+
}))), list && list.length > 0 ? React.createElement(Tree, {
|
|
24143
24120
|
defaultExpandAll: true,
|
|
24144
24121
|
selectedKeys: [],
|
|
24145
24122
|
onSelect: onSelect
|
|
24146
|
-
}, createTreeNode()) :
|
|
24123
|
+
}, createTreeNode()) : React.createElement("span", {
|
|
24147
24124
|
style: {
|
|
24148
24125
|
color: '#00000073'
|
|
24149
24126
|
}
|
|
@@ -24388,11 +24365,11 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
24388
24365
|
return data;
|
|
24389
24366
|
};
|
|
24390
24367
|
|
|
24391
|
-
return
|
|
24368
|
+
return React.createElement(React.Fragment, null, React.createElement(Input, {
|
|
24392
24369
|
readOnly: true,
|
|
24393
24370
|
onClick: onClick,
|
|
24394
24371
|
value: props.value
|
|
24395
|
-
}),
|
|
24372
|
+
}), React.createElement(TaxClassificationModal, {
|
|
24396
24373
|
list: list,
|
|
24397
24374
|
open: open,
|
|
24398
24375
|
onSelect: onSelect,
|
|
@@ -24514,14 +24491,14 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
24514
24491
|
React.useEffect(function () {
|
|
24515
24492
|
if (controller.getTaxCategoryCodeList) controller.getTaxCategoryCodeList();
|
|
24516
24493
|
}, [controller]);
|
|
24517
|
-
return
|
|
24494
|
+
return React.createElement(SchemaForm, {
|
|
24518
24495
|
actions: actions,
|
|
24519
24496
|
previewPlaceholder: " ",
|
|
24520
24497
|
components: _objectSpread2(_objectSpread2({}, components), {}, {
|
|
24521
24498
|
showSearch: !!controller.state.goodsListState.endowCode.onLoadTaxClassificationCode ? ShowSearch3 : ShowSearch
|
|
24522
24499
|
}),
|
|
24523
24500
|
effects: effects
|
|
24524
|
-
},
|
|
24501
|
+
}, React.createElement(FormButtonGroup, null, React.createElement(SchemaMarkupField, {
|
|
24525
24502
|
name: "taxClassificationCode",
|
|
24526
24503
|
type: "showSearch",
|
|
24527
24504
|
title: "\u7A0E\u6536\u5206\u7C7B\u7F16\u7801",
|
|
@@ -24531,13 +24508,13 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
24531
24508
|
message: '请选择税收分类编码',
|
|
24532
24509
|
required: true
|
|
24533
24510
|
}]
|
|
24534
|
-
}),
|
|
24511
|
+
}), React.createElement(SchemaMarkupField, {
|
|
24535
24512
|
name: "shorthand",
|
|
24536
24513
|
type: "string",
|
|
24537
24514
|
readOnly: true,
|
|
24538
24515
|
default: defaultValue === null || defaultValue === void 0 ? void 0 : defaultValue.shorthand,
|
|
24539
24516
|
title: "\u5546\u54C1\u548C\u670D\u52A1\u5206\u7C7B\u7B80\u79F0"
|
|
24540
|
-
}),
|
|
24517
|
+
}), React.createElement(SchemaMarkupField, {
|
|
24541
24518
|
name: "taxRate",
|
|
24542
24519
|
type: "string",
|
|
24543
24520
|
title: "\u7A0E\u7387",
|
|
@@ -24550,7 +24527,7 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
24550
24527
|
message: '请选择税率',
|
|
24551
24528
|
required: true
|
|
24552
24529
|
}]
|
|
24553
|
-
}), taxRate === 0 && isTaxFreeTypeNeeded &&
|
|
24530
|
+
}), taxRate === 0 && isTaxFreeTypeNeeded && React.createElement(SchemaMarkupField, {
|
|
24554
24531
|
name: "taxFreeType",
|
|
24555
24532
|
type: "string",
|
|
24556
24533
|
title: "\u514D\u7A0E\u7C7B\u578B",
|
|
@@ -24563,7 +24540,7 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
24563
24540
|
message: '请选择免税类型',
|
|
24564
24541
|
required: true
|
|
24565
24542
|
}]
|
|
24566
|
-
}),
|
|
24543
|
+
}), React.createElement(SchemaMarkupField, {
|
|
24567
24544
|
name: "favouredPolicyMark",
|
|
24568
24545
|
type: "number",
|
|
24569
24546
|
title: "\u662F\u5426\u4EAB\u53D7\u4F18\u60E0\u653F\u7B56",
|
|
@@ -24582,7 +24559,7 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
24582
24559
|
message: '请选择是否享受优惠政策',
|
|
24583
24560
|
required: true
|
|
24584
24561
|
}]
|
|
24585
|
-
}), favouredPolicyMark === 1 &&
|
|
24562
|
+
}), favouredPolicyMark === 1 && React.createElement(SchemaMarkupField, {
|
|
24586
24563
|
name: "favouredPolicyName",
|
|
24587
24564
|
type: "string",
|
|
24588
24565
|
title: "\u4F18\u60E0\u653F\u7B56\u7C7B\u578B",
|
|
@@ -24595,14 +24572,14 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
24595
24572
|
message: '请选择是否享受优惠政策',
|
|
24596
24573
|
required: true
|
|
24597
24574
|
}]
|
|
24598
|
-
})),
|
|
24575
|
+
})), React.createElement("span", {
|
|
24599
24576
|
className: "kts-invoice-operate-goods-endow-code-button-list"
|
|
24600
|
-
},
|
|
24577
|
+
}, React.createElement(Button, {
|
|
24601
24578
|
onClick: function onClick() {
|
|
24602
24579
|
actions.submit(onSubmit);
|
|
24603
24580
|
},
|
|
24604
24581
|
type: "primary"
|
|
24605
|
-
}, "\u786E\u5B9A"),
|
|
24582
|
+
}, "\u786E\u5B9A"), React.createElement(Button, {
|
|
24606
24583
|
onClick: function onClick() {
|
|
24607
24584
|
controller.pipeline( /*#__PURE__*/function () {
|
|
24608
24585
|
var _ref18 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee18(s) {
|
|
@@ -24762,53 +24739,53 @@ function AddComparisonDrawer() {
|
|
|
24762
24739
|
}));
|
|
24763
24740
|
}
|
|
24764
24741
|
}, [good]);
|
|
24765
|
-
return
|
|
24742
|
+
return React.createElement(Drawer$1, {
|
|
24766
24743
|
width: 500,
|
|
24767
24744
|
onClose: onClose,
|
|
24768
24745
|
placement: "right",
|
|
24769
24746
|
title: "\u5546\u54C1\u6620\u5C04",
|
|
24770
24747
|
visible: !!good,
|
|
24771
|
-
footer:
|
|
24748
|
+
footer: React.createElement("div", {
|
|
24772
24749
|
style: {
|
|
24773
24750
|
display: 'flex',
|
|
24774
24751
|
justifyContent: 'flex-end',
|
|
24775
24752
|
gap: 10
|
|
24776
24753
|
}
|
|
24777
|
-
},
|
|
24754
|
+
}, React.createElement(Button, {
|
|
24778
24755
|
type: "primary",
|
|
24779
24756
|
onClick: onSubmit
|
|
24780
|
-
}, "\u63D0\u4EA4"),
|
|
24757
|
+
}, "\u63D0\u4EA4"), React.createElement(Button, {
|
|
24781
24758
|
onClick: onClose
|
|
24782
24759
|
}, "\u53D6\u6D88"))
|
|
24783
|
-
}, !!good &&
|
|
24760
|
+
}, !!good && React.createElement(Form$1, {
|
|
24784
24761
|
layout: "vertical",
|
|
24785
24762
|
style: {
|
|
24786
24763
|
flex: 1
|
|
24787
24764
|
},
|
|
24788
24765
|
form: form
|
|
24789
|
-
},
|
|
24766
|
+
}, React.createElement(Row$2, {
|
|
24790
24767
|
gutter: [8, 8]
|
|
24791
|
-
},
|
|
24768
|
+
}, React.createElement(Col$2, {
|
|
24792
24769
|
span: 12
|
|
24793
|
-
},
|
|
24770
|
+
}, React.createElement(Form$1.Item, {
|
|
24794
24771
|
name: "itemNameSelf",
|
|
24795
24772
|
label: "\u6211\u65B9\u5546\u54C1\u540D\u79F0"
|
|
24796
|
-
},
|
|
24773
|
+
}, React.createElement(Input, null))), React.createElement(Col$2, {
|
|
24797
24774
|
span: 12
|
|
24798
|
-
},
|
|
24775
|
+
}, React.createElement(Form$1.Item, {
|
|
24799
24776
|
name: "itemName",
|
|
24800
24777
|
label: "\u5BF9\u65B9\u5546\u54C1\u540D\u79F0"
|
|
24801
|
-
},
|
|
24778
|
+
}, React.createElement(Input, null))), React.createElement(Col$2, {
|
|
24802
24779
|
span: 12
|
|
24803
|
-
},
|
|
24780
|
+
}, React.createElement(Form$1.Item, {
|
|
24804
24781
|
name: 'itemModelNameSelf',
|
|
24805
24782
|
label: "\u6211\u65B9\u89C4\u683C\u578B\u53F7"
|
|
24806
|
-
},
|
|
24783
|
+
}, React.createElement(Input, null))), React.createElement(Col$2, {
|
|
24807
24784
|
span: 12
|
|
24808
|
-
},
|
|
24785
|
+
}, React.createElement(Form$1.Item, {
|
|
24809
24786
|
name: "itemModelName",
|
|
24810
24787
|
label: "\u5BF9\u65B9\u89C4\u683C\u578B\u53F7"
|
|
24811
|
-
},
|
|
24788
|
+
}, React.createElement(Input, null))))));
|
|
24812
24789
|
} // function validateFields(form: WrappedFormUtils<any>) {
|
|
24813
24790
|
// return new Promise<{ err: any, values: any }>(resolve => {
|
|
24814
24791
|
// form.validateFields((err, values) => {
|
|
@@ -24819,7 +24796,7 @@ function AddComparisonDrawer() {
|
|
|
24819
24796
|
|
|
24820
24797
|
/** 发票组件的上下文 */
|
|
24821
24798
|
|
|
24822
|
-
var InvoiceContext =
|
|
24799
|
+
var InvoiceContext = React.createContext(undefined);
|
|
24823
24800
|
|
|
24824
24801
|
var Invoice = /*#__PURE__*/function (_React$PureComponent) {
|
|
24825
24802
|
_inherits(Invoice, _React$PureComponent);
|
|
@@ -24866,9 +24843,9 @@ var Invoice = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
24866
24843
|
/** 获取控制器钩子 */
|
|
24867
24844
|
function render() {
|
|
24868
24845
|
if (this.props.invoiceType === 'digtal') {
|
|
24869
|
-
return
|
|
24846
|
+
return React.createElement(Digtal, _objectSpread2({}, this.props));
|
|
24870
24847
|
} else {
|
|
24871
|
-
return
|
|
24848
|
+
return React.createElement(Main$4, _objectSpread2({}, this.props));
|
|
24872
24849
|
}
|
|
24873
24850
|
}
|
|
24874
24851
|
}]);
|
|
@@ -24911,10 +24888,10 @@ var Main$4 = function Main(props) {
|
|
|
24911
24888
|
React.useEffect(function () {
|
|
24912
24889
|
setKey(key + 1);
|
|
24913
24890
|
}, [controller]);
|
|
24914
|
-
return
|
|
24891
|
+
return React.createElement(InvoiceContext.Provider, {
|
|
24915
24892
|
key: key,
|
|
24916
24893
|
value: controller
|
|
24917
|
-
},
|
|
24894
|
+
}, React.createElement("div", {
|
|
24918
24895
|
className: "kts-invoice-operate",
|
|
24919
24896
|
ref: controller.pipeline( /*#__PURE__*/function () {
|
|
24920
24897
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(s, e) {
|
|
@@ -24936,17 +24913,17 @@ var Main$4 = function Main(props) {
|
|
|
24936
24913
|
return _ref.apply(this, arguments);
|
|
24937
24914
|
};
|
|
24938
24915
|
}())
|
|
24939
|
-
}, props.invoiceHeader ||
|
|
24916
|
+
}, props.invoiceHeader || React.createElement(InvoiceHeader, null)
|
|
24940
24917
|
/** 发票头 */
|
|
24941
|
-
, props.buyer ||
|
|
24918
|
+
, props.buyer || React.createElement(Buyer$1, null)
|
|
24942
24919
|
/** 购买方 */
|
|
24943
|
-
, props.goodsList ||
|
|
24920
|
+
, props.goodsList || React.createElement(GoodsList, null)
|
|
24944
24921
|
/** 货物列表 */
|
|
24945
|
-
, props.seller ||
|
|
24922
|
+
, props.seller || React.createElement(Buyer, null)
|
|
24946
24923
|
/** 销售方 */
|
|
24947
|
-
, props.sign ||
|
|
24924
|
+
, props.sign || React.createElement(Sign, null)
|
|
24948
24925
|
/** 落款 */
|
|
24949
|
-
, props.footExpand),
|
|
24926
|
+
, props.footExpand), React.createElement(ImportBuyerDrawer, null), React.createElement(ImportGoodsDrawer, null), React.createElement(EndowCodeDrawer, null), React.createElement(AddComparisonDrawer, null));
|
|
24950
24927
|
};
|
|
24951
24928
|
/** 数电 */
|
|
24952
24929
|
|
|
@@ -24965,10 +24942,10 @@ var Digtal = function Digtal(props) {
|
|
|
24965
24942
|
React.useEffect(function () {
|
|
24966
24943
|
setKey(key + 1);
|
|
24967
24944
|
}, [controller]);
|
|
24968
|
-
return
|
|
24945
|
+
return React.createElement(InvoiceContext.Provider, {
|
|
24969
24946
|
key: key,
|
|
24970
24947
|
value: controller
|
|
24971
|
-
},
|
|
24948
|
+
}, React.createElement("div", {
|
|
24972
24949
|
className: "kts-invoice-operate-digtal",
|
|
24973
24950
|
ref: controller.pipeline( /*#__PURE__*/function () {
|
|
24974
24951
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(s, e) {
|
|
@@ -24990,19 +24967,19 @@ var Digtal = function Digtal(props) {
|
|
|
24990
24967
|
return _ref2.apply(this, arguments);
|
|
24991
24968
|
};
|
|
24992
24969
|
}())
|
|
24993
|
-
}, props.invoiceHeader ||
|
|
24970
|
+
}, props.invoiceHeader || React.createElement(InvoiceHeaderDigtal, null)
|
|
24994
24971
|
/** 发票头 */
|
|
24995
|
-
,
|
|
24972
|
+
, React.createElement("div", {
|
|
24996
24973
|
className: 'kts-invoice-operate-digtal-cont'
|
|
24997
|
-
}, props.stakeholder ||
|
|
24974
|
+
}, props.stakeholder || React.createElement(Stakeholder$1, null)
|
|
24998
24975
|
/** 干系人 */
|
|
24999
|
-
, props.goodsList ||
|
|
24976
|
+
, props.goodsList || React.createElement(GoodsList$1, null)
|
|
25000
24977
|
/** 货物列表 */
|
|
25001
24978
|
), props.specialInfor
|
|
25002
24979
|
/** 特殊信息 */
|
|
25003
|
-
, props.sign ||
|
|
24980
|
+
, props.sign || React.createElement(SignDigtal, null)
|
|
25004
24981
|
/** 落款 */
|
|
25005
|
-
),
|
|
24982
|
+
), React.createElement(ImportGoodsDrawer, null), React.createElement(EndowCodeDrawer, null));
|
|
25006
24983
|
};
|
|
25007
24984
|
|
|
25008
24985
|
function TaxClassificationModal(props) {
|
|
@@ -25043,26 +25020,26 @@ function TaxClassificationModal(props) {
|
|
|
25043
25020
|
}, 500);
|
|
25044
25021
|
}
|
|
25045
25022
|
}, [form, props.open]);
|
|
25046
|
-
return
|
|
25023
|
+
return React.createElement(Drawer$1, {
|
|
25047
25024
|
title: "\u5546\u54C1\u548C\u670D\u52A1\u7A0E\u6536\u5206\u7C7B\u7F16\u7801",
|
|
25048
25025
|
placement: "right",
|
|
25049
25026
|
open: props.open,
|
|
25050
25027
|
width: 503,
|
|
25051
25028
|
onClose: props.onCancel
|
|
25052
|
-
},
|
|
25029
|
+
}, React.createElement(Form$1, {
|
|
25053
25030
|
form: form
|
|
25054
|
-
},
|
|
25031
|
+
}, React.createElement(Form$1.Item, {
|
|
25055
25032
|
name: 'search'
|
|
25056
|
-
},
|
|
25033
|
+
}, React.createElement(Input$1, {
|
|
25057
25034
|
placeholder: "\u8BF7\u8F93\u5165\u7A0E\u6536\u5206\u7C7B\u7F16\u7801\u3001\u7A0E\u6536\u5206\u7C7B\u540D\u79F0\u8FDB\u884C\u68C0\u7D22",
|
|
25058
25035
|
onChange: searchTax
|
|
25059
|
-
})),
|
|
25036
|
+
})), React.createElement(Form$1.Item, {
|
|
25060
25037
|
name: 'tree'
|
|
25061
|
-
},
|
|
25038
|
+
}, React.createElement(Tree$1, {
|
|
25062
25039
|
onSelect: props.onSelect,
|
|
25063
25040
|
loadData: props.onLoad,
|
|
25064
25041
|
treeData: props.list,
|
|
25065
|
-
switcherIcon:
|
|
25042
|
+
switcherIcon: React.createElement(Icon$1, {
|
|
25066
25043
|
type: "down"
|
|
25067
25044
|
})
|
|
25068
25045
|
}))));
|