kts-component-invoice-operate 3.2.154 → 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/InvoiceControllerState/GoodsListState/IGood/index.d.ts +2 -0
- package/dist/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/index.d.ts +2 -0
- package/dist/Invoice/InvoiceController/index.d.ts +4 -0
- package/dist/index.esm.js +916 -819
- package/dist/index.js +916 -819
- 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 -84
- 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 -128
- 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 -81
- 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 -550
- 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 -40
- 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 -657
- 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 -39
- package/src/Invoice/ui/digtal/GoodsList/hook/useRowSelection/index.tsx +121 -121
- package/src/Invoice/ui/digtal/GoodsList/hook/useWindowClick/index.tsx +23 -23
- package/src/Invoice/ui/digtal/GoodsList/index.less +56 -56
- package/src/Invoice/ui/digtal/GoodsList/index.tsx +180 -180
- package/src/Invoice/ui/digtal/GoodsList/ui/AddRowButton/index.tsx +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
|
@@ -1094,6 +1094,7 @@ var GoodsListState = /*#__PURE__*/_createClass(function GoodsListState() {
|
|
|
1094
1094
|
this.goodMax = void 0;
|
|
1095
1095
|
this.isSwitchTax = void 0;
|
|
1096
1096
|
this.isRecalculateWhenSwitchTax = false;
|
|
1097
|
+
this.isUpdateGoodsTaxRateList = false;
|
|
1097
1098
|
this.isAddDiscount = void 0;
|
|
1098
1099
|
this.isAddRow = true;
|
|
1099
1100
|
this.isRemRow = true;
|
|
@@ -9739,6 +9740,8 @@ var InvoiceController = /*#__PURE__*/function (_InvoiceControllerFor) {
|
|
|
9739
9740
|
_this.getGoodsList = void 0;
|
|
9740
9741
|
_this.getTaxCategoryCodeList = void 0;
|
|
9741
9742
|
_this.getGoodsSearch = getGoodsSearch;
|
|
9743
|
+
_this.getGoodsTaxRateList = void 0;
|
|
9744
|
+
_this.setColumnsConfig = void 0;
|
|
9742
9745
|
return _this;
|
|
9743
9746
|
} // ----------------- 发票头 模块相关 -----------------
|
|
9744
9747
|
|
|
@@ -9865,7 +9868,7 @@ var InvoiceHeader = decorator(Form.create())(function (props) {
|
|
|
9865
9868
|
render: function render(form) {
|
|
9866
9869
|
return form.getFieldDecorator('code', {
|
|
9867
9870
|
initialValue: props.defaultCode
|
|
9868
|
-
})(
|
|
9871
|
+
})(React.createElement(FormSpanString, null));
|
|
9869
9872
|
}
|
|
9870
9873
|
});
|
|
9871
9874
|
}
|
|
@@ -9878,7 +9881,7 @@ var InvoiceHeader = decorator(Form.create())(function (props) {
|
|
|
9878
9881
|
render: function render(form) {
|
|
9879
9882
|
return form.getFieldDecorator('no', {
|
|
9880
9883
|
initialValue: props.defaultNo
|
|
9881
|
-
})(
|
|
9884
|
+
})(React.createElement(FormSpanString, null));
|
|
9882
9885
|
}
|
|
9883
9886
|
});
|
|
9884
9887
|
}
|
|
@@ -9889,7 +9892,7 @@ var InvoiceHeader = decorator(Form.create())(function (props) {
|
|
|
9889
9892
|
render: function render(form) {
|
|
9890
9893
|
return form.getFieldDecorator('invoicingDate', {
|
|
9891
9894
|
initialValue: props.defaultInvoicingDate
|
|
9892
|
-
})(
|
|
9895
|
+
})(React.createElement(FormSpanString, null));
|
|
9893
9896
|
}
|
|
9894
9897
|
});
|
|
9895
9898
|
}
|
|
@@ -9900,7 +9903,7 @@ var InvoiceHeader = decorator(Form.create())(function (props) {
|
|
|
9900
9903
|
render: function render(form) {
|
|
9901
9904
|
return form.getFieldDecorator('defaultValidationCode', {
|
|
9902
9905
|
initialValue: props.defaultValidationCode
|
|
9903
|
-
})(
|
|
9906
|
+
})(React.createElement(FormSpanString, null));
|
|
9904
9907
|
}
|
|
9905
9908
|
});
|
|
9906
9909
|
}
|
|
@@ -9920,21 +9923,21 @@ var InvoiceHeader = decorator(Form.create())(function (props) {
|
|
|
9920
9923
|
React.useEffect(function () {
|
|
9921
9924
|
setTypeIndex(props.typeOptionIndex || 0);
|
|
9922
9925
|
}, [props.typeOption]);
|
|
9923
|
-
return
|
|
9926
|
+
return React.createElement("div", {
|
|
9924
9927
|
className: "kts-invoice-operate-invoice-header"
|
|
9925
|
-
},
|
|
9928
|
+
}, React.createElement("div", {
|
|
9926
9929
|
className: "invoice-header-title"
|
|
9927
|
-
}, title),
|
|
9930
|
+
}, title), React.createElement("div", {
|
|
9928
9931
|
className: "invoice-header-no"
|
|
9929
|
-
}, isInvoiceNo ?
|
|
9932
|
+
}, isInvoiceNo ? React.createElement("div", null, React.createElement("label", null, "\u53D1\u7968\u5355\u636E\u7F16\u53F7 :"), getFieldDecorator('id', {
|
|
9930
9933
|
initialValue: props.defaultId
|
|
9931
|
-
})(
|
|
9934
|
+
})(React.createElement(Input, {
|
|
9932
9935
|
disabled: readOnlyInvoiceNo,
|
|
9933
9936
|
style: {
|
|
9934
9937
|
width: 230
|
|
9935
9938
|
},
|
|
9936
9939
|
size: "small",
|
|
9937
|
-
suffix: controller.updateInvoiceNo &&
|
|
9940
|
+
suffix: controller.updateInvoiceNo && React.createElement(Icon$1, {
|
|
9938
9941
|
style: {
|
|
9939
9942
|
cursor: 'pointer'
|
|
9940
9943
|
},
|
|
@@ -9978,15 +9981,15 @@ var InvoiceHeader = decorator(Form.create())(function (props) {
|
|
|
9978
9981
|
return onClick;
|
|
9979
9982
|
}()
|
|
9980
9983
|
})
|
|
9981
|
-
}))) :
|
|
9984
|
+
}))) : React.createElement("div", {
|
|
9982
9985
|
style: {
|
|
9983
9986
|
height: 20
|
|
9984
9987
|
}
|
|
9985
|
-
}), tag &&
|
|
9988
|
+
}), tag && React.createElement(Tag$1, null, tag), React.createElement("div", {
|
|
9986
9989
|
className: "invoice-header-type"
|
|
9987
9990
|
}, props.typeOption ? getFieldDecorator('type', {
|
|
9988
9991
|
initialValue: typeIndex
|
|
9989
|
-
})(
|
|
9992
|
+
})(React.createElement(Select, {
|
|
9990
9993
|
size: "small",
|
|
9991
9994
|
style: {
|
|
9992
9995
|
width: 230
|
|
@@ -9995,20 +9998,20 @@ var InvoiceHeader = decorator(Form.create())(function (props) {
|
|
|
9995
9998
|
setTypeIndex(e);
|
|
9996
9999
|
}
|
|
9997
10000
|
}, props.typeOption.map(function (e, i) {
|
|
9998
|
-
return
|
|
10001
|
+
return React.createElement(Select.Option, {
|
|
9999
10002
|
key: i,
|
|
10000
10003
|
value: i
|
|
10001
10004
|
}, e.title);
|
|
10002
|
-
}))) : props.renderExpand && props.renderExpand(props.form))), props.typeOption &&
|
|
10005
|
+
}))) : props.renderExpand && props.renderExpand(props.form))), props.typeOption && React.createElement("div", {
|
|
10003
10006
|
style: {
|
|
10004
10007
|
marginTop: 10
|
|
10005
10008
|
}
|
|
10006
|
-
}, props.renderExpand && props.renderExpand(props.form)),
|
|
10009
|
+
}, props.renderExpand && props.renderExpand(props.form)), React.createElement("div", {
|
|
10007
10010
|
className: "invoice-header-property"
|
|
10008
|
-
}, _toConsumableArray(props.fieldExpand || []).map(function (e) {}),
|
|
10011
|
+
}, _toConsumableArray(props.fieldExpand || []).map(function (e) {}), React.createElement("ul", {
|
|
10009
10012
|
className: 'invoice-header-property-fieldExpand'
|
|
10010
10013
|
}, fieldExpand.map(function (e) {
|
|
10011
|
-
return
|
|
10014
|
+
return React.createElement("li", null, React.createElement("label", null, e.label), e.render(form));
|
|
10012
10015
|
}))));
|
|
10013
10016
|
});
|
|
10014
10017
|
|
|
@@ -10027,7 +10030,7 @@ var FormSpanString = /*#__PURE__*/function (_React$Component) {
|
|
|
10027
10030
|
key: "render",
|
|
10028
10031
|
value: function render() {
|
|
10029
10032
|
// return <span>{this.props.value}</span>;
|
|
10030
|
-
return
|
|
10033
|
+
return React.createElement(Input, {
|
|
10031
10034
|
size: "small",
|
|
10032
10035
|
disabled: true,
|
|
10033
10036
|
value: this.props.value
|
|
@@ -10164,14 +10167,14 @@ function TableVirtual (props) {
|
|
|
10164
10167
|
var cont = self.querySelector('.kts-invoice-operate-goods-table-virtual .ktsAntX-table-body');
|
|
10165
10168
|
if (!cont) return;
|
|
10166
10169
|
cont.scrollTop = 0;
|
|
10167
|
-
}, [(_props$dataSource = props.dataSource) === null || _props$dataSource === void 0 ? void 0 : _props$dataSource.length]);
|
|
10168
|
-
|
|
10169
|
-
return
|
|
10170
|
+
}, [(_props$dataSource = props.dataSource) === null || _props$dataSource === void 0 ? void 0 : _props$dataSource.length]); // console.log('===> pointer', pointer, dataSource);
|
|
10171
|
+
|
|
10172
|
+
return React.createElement("span", {
|
|
10170
10173
|
className: "kts-invoice-operate-goods-table-virtual",
|
|
10171
10174
|
ref: function ref(e) {
|
|
10172
10175
|
setSelf(e);
|
|
10173
10176
|
}
|
|
10174
|
-
},
|
|
10177
|
+
}, React.createElement(TableManual, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
10175
10178
|
dataSource: dataSource,
|
|
10176
10179
|
// 新版本Table会有输入框无法连续输入的问题,先兼容老版本
|
|
10177
10180
|
tableComponent: Table
|
|
@@ -10263,57 +10266,57 @@ var Statistics = (function () {
|
|
|
10263
10266
|
});
|
|
10264
10267
|
return sum.done().toNumber();
|
|
10265
10268
|
}, []);
|
|
10266
|
-
return
|
|
10269
|
+
return React.createElement("div", {
|
|
10267
10270
|
className: "kts-invoice-operate-goods-list-statistics"
|
|
10268
|
-
},
|
|
10271
|
+
}, React.createElement("div", {
|
|
10269
10272
|
className: "kts-invoice-operate-goods-list-statistics-row"
|
|
10270
|
-
},
|
|
10273
|
+
}, React.createElement("div", {
|
|
10271
10274
|
style: {
|
|
10272
10275
|
width: 45.92
|
|
10273
10276
|
}
|
|
10274
|
-
}),
|
|
10277
|
+
}), React.createElement("div", {
|
|
10275
10278
|
style: {
|
|
10276
10279
|
flex: 1
|
|
10277
10280
|
}
|
|
10278
|
-
},
|
|
10281
|
+
}, React.createElement("label", null, "\u5408\u8BA1")), React.createElement("div", {
|
|
10279
10282
|
style: {
|
|
10280
10283
|
width: 119,
|
|
10281
10284
|
textAlign: 'right',
|
|
10282
10285
|
border: 'none'
|
|
10283
10286
|
}
|
|
10284
|
-
},
|
|
10287
|
+
}, React.createElement("label", null, parseFloat(isTaxIncluded ? lineAmountIncludeTax : lineAmountExcludeTax).toFixed(2))), React.createElement("div", {
|
|
10285
10288
|
style: {
|
|
10286
10289
|
width: 70,
|
|
10287
10290
|
border: 'none'
|
|
10288
10291
|
}
|
|
10289
|
-
}),
|
|
10292
|
+
}), React.createElement("div", {
|
|
10290
10293
|
style: {
|
|
10291
10294
|
width: 119,
|
|
10292
10295
|
textAlign: 'right',
|
|
10293
10296
|
border: 'none'
|
|
10294
10297
|
}
|
|
10295
|
-
},
|
|
10298
|
+
}, React.createElement("label", null, parseFloat(taxAmount).toFixed(2))), React.createElement("div", {
|
|
10296
10299
|
style: {
|
|
10297
10300
|
width: 111,
|
|
10298
10301
|
border: 'none'
|
|
10299
10302
|
}
|
|
10300
|
-
})),
|
|
10303
|
+
})), React.createElement("div", {
|
|
10301
10304
|
className: "kts-invoice-operate-goods-list-statistics-row"
|
|
10302
|
-
},
|
|
10305
|
+
}, React.createElement("div", {
|
|
10303
10306
|
style: {
|
|
10304
10307
|
width: 45.92
|
|
10305
10308
|
}
|
|
10306
|
-
}),
|
|
10309
|
+
}), React.createElement("div", {
|
|
10307
10310
|
style: {
|
|
10308
10311
|
flex: 5,
|
|
10309
10312
|
border: 'none'
|
|
10310
10313
|
}
|
|
10311
|
-
},
|
|
10314
|
+
}, React.createElement("label", null, "\u4EF7\u7A0E\u5408\u8BA1\uFF08\u5927\u5199\uFF09"), React.createElement("label", null, toStringChinese(lineAmountIncludeTax))), React.createElement("div", {
|
|
10312
10315
|
style: {
|
|
10313
10316
|
flex: 5,
|
|
10314
10317
|
border: 'none'
|
|
10315
10318
|
}
|
|
10316
|
-
},
|
|
10319
|
+
}, React.createElement("label", null, "\uFF08\u5C0F\u5199\uFF09 ", parseFloat(lineAmountIncludeTax).toFixed(2)))));
|
|
10317
10320
|
});
|
|
10318
10321
|
|
|
10319
10322
|
var AddRowButton = (function () {
|
|
@@ -10368,10 +10371,10 @@ var AddRowButton = (function () {
|
|
|
10368
10371
|
}
|
|
10369
10372
|
}, _callee);
|
|
10370
10373
|
})), [controller, rootElement]);
|
|
10371
|
-
if (isAddRow === false) return
|
|
10372
|
-
if (model === 'prefab') return
|
|
10373
|
-
if (model === 'readOnly') return
|
|
10374
|
-
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, {
|
|
10375
10378
|
onClick: onClick,
|
|
10376
10379
|
disabled: disabled
|
|
10377
10380
|
}, "\u6DFB\u52A0\u884C");
|
|
@@ -10501,11 +10504,11 @@ var TaxIncludedSwitch = (function () {
|
|
|
10501
10504
|
var onChange = React.useCallback(function (e) {
|
|
10502
10505
|
onChangeSwitchTax(controller, e);
|
|
10503
10506
|
}, []);
|
|
10504
|
-
return
|
|
10507
|
+
return React.createElement("span", null, React.createElement("label", {
|
|
10505
10508
|
style: {
|
|
10506
10509
|
marginRight: 2
|
|
10507
10510
|
}
|
|
10508
|
-
}, "\u542B\u7A0E:"),
|
|
10511
|
+
}, "\u542B\u7A0E:"), React.createElement(Switch, {
|
|
10509
10512
|
disabled: isSwitchTax === false,
|
|
10510
10513
|
checked: isTaxIncluded,
|
|
10511
10514
|
defaultChecked: true,
|
|
@@ -10543,19 +10546,19 @@ var DescribeSwitch = (function () {
|
|
|
10543
10546
|
};
|
|
10544
10547
|
}());
|
|
10545
10548
|
}, []);
|
|
10546
|
-
if (!productComparison.onComply) return
|
|
10547
|
-
return
|
|
10549
|
+
if (!productComparison.onComply) return React.createElement(React.Fragment, null);
|
|
10550
|
+
return React.createElement("span", null, React.createElement("label", {
|
|
10548
10551
|
style: {
|
|
10549
10552
|
marginRight: 2
|
|
10550
10553
|
}
|
|
10551
|
-
},
|
|
10554
|
+
}, React.createElement(Tooltip, {
|
|
10552
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"
|
|
10553
|
-
},
|
|
10556
|
+
}, React.createElement(Icon$1, {
|
|
10554
10557
|
style: {
|
|
10555
10558
|
marginRight: 3
|
|
10556
10559
|
},
|
|
10557
10560
|
type: "info-circle"
|
|
10558
|
-
})), "\u4F7F\u7528\u54EA\u65B9\u5546\u54C1\u63CF\u8FF0:"),
|
|
10561
|
+
})), "\u4F7F\u7528\u54EA\u65B9\u5546\u54C1\u63CF\u8FF0:"), React.createElement(Switch$1, {
|
|
10559
10562
|
checked: isMyShow,
|
|
10560
10563
|
checkedChildren: "\u6211\u65B9",
|
|
10561
10564
|
unCheckedChildren: "\u5BF9\u65B9",
|
|
@@ -10655,13 +10658,13 @@ function Search() {
|
|
|
10655
10658
|
};
|
|
10656
10659
|
}());
|
|
10657
10660
|
}, [value, controller]);
|
|
10658
|
-
return
|
|
10661
|
+
return React.createElement(Input, {
|
|
10659
10662
|
size: "small",
|
|
10660
10663
|
readOnly: readOnly,
|
|
10661
10664
|
value: value,
|
|
10662
10665
|
className: "kts-invoice-operate-goods-list-search",
|
|
10663
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"),
|
|
10664
|
-
prefix:
|
|
10667
|
+
prefix: React.createElement(Icon$1, {
|
|
10665
10668
|
component: SvgMagnifier,
|
|
10666
10669
|
style: {
|
|
10667
10670
|
color: "#b8b8b8"
|
|
@@ -10674,7 +10677,7 @@ function Search() {
|
|
|
10674
10677
|
});
|
|
10675
10678
|
}
|
|
10676
10679
|
|
|
10677
|
-
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";
|
|
10678
10681
|
styleInject(css_248z$5);
|
|
10679
10682
|
|
|
10680
10683
|
function TableRow(props) {
|
|
@@ -10683,6 +10686,11 @@ function TableRow(props) {
|
|
|
10683
10686
|
var goodsMap = controller.useMemo(function (s) {
|
|
10684
10687
|
return s.goodsListState.goodsMap;
|
|
10685
10688
|
}, []);
|
|
10689
|
+
/** 子级展开的货物 */
|
|
10690
|
+
|
|
10691
|
+
var expandedRowKeys = controller.useMemo(function (s) {
|
|
10692
|
+
return s.goodsListState.expandedRowKeys;
|
|
10693
|
+
}, []);
|
|
10686
10694
|
/** 当前拖动中的货品索引 */
|
|
10687
10695
|
|
|
10688
10696
|
var current = controller.useMemo(function (s) {
|
|
@@ -10713,13 +10721,26 @@ function TableRow(props) {
|
|
|
10713
10721
|
return undefined;
|
|
10714
10722
|
}
|
|
10715
10723
|
}, [good, goodsMap]);
|
|
10716
|
-
|
|
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", {
|
|
10717
10738
|
style: {
|
|
10718
10739
|
height: 32.67,
|
|
10719
10740
|
borderBottom: '1px solid #E6E6E6',
|
|
10720
10741
|
position: 'relative'
|
|
10721
10742
|
}
|
|
10722
|
-
},
|
|
10743
|
+
}, React.createElement("div", {
|
|
10723
10744
|
style: {
|
|
10724
10745
|
height: 1,
|
|
10725
10746
|
width: '100%',
|
|
@@ -10727,8 +10748,8 @@ function TableRow(props) {
|
|
|
10727
10748
|
position: 'absolute',
|
|
10728
10749
|
bottom: 0
|
|
10729
10750
|
}
|
|
10730
|
-
})) :
|
|
10731
|
-
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)
|
|
10732
10753
|
}));
|
|
10733
10754
|
}
|
|
10734
10755
|
|
|
@@ -11135,7 +11156,7 @@ var RowMenu = (function (props) {
|
|
|
11135
11156
|
// addComparison && arr.push(addComparison); // 添加商品对照
|
|
11136
11157
|
|
|
11137
11158
|
if (!goodsMenuExpand || goodsMenuExpand.length === 0) return arr;
|
|
11138
|
-
arr.unshift(
|
|
11159
|
+
arr.unshift(React.createElement(Menu.Divider, {
|
|
11139
11160
|
key: "divider-1"
|
|
11140
11161
|
}));
|
|
11141
11162
|
|
|
@@ -11151,17 +11172,17 @@ var RowMenu = (function (props) {
|
|
|
11151
11172
|
return undefined;
|
|
11152
11173
|
}
|
|
11153
11174
|
|
|
11154
|
-
return
|
|
11155
|
-
return
|
|
11175
|
+
return React.createElement(Menu, null, itemList.slice(2).map(function (e) {
|
|
11176
|
+
return React.createElement(Menu.Item, {
|
|
11156
11177
|
key: e.key,
|
|
11157
11178
|
onClick: e.onClick
|
|
11158
|
-
},
|
|
11179
|
+
}, React.createElement(Text$1, {
|
|
11159
11180
|
strong: true
|
|
11160
11181
|
}, e.title));
|
|
11161
11182
|
}));
|
|
11162
11183
|
}, [itemList]);
|
|
11163
11184
|
var buttonList = React.useMemo(function () {
|
|
11164
|
-
return
|
|
11185
|
+
return React.createElement("div", {
|
|
11165
11186
|
style: {
|
|
11166
11187
|
flex: 1,
|
|
11167
11188
|
textAlign: 'left',
|
|
@@ -11169,7 +11190,7 @@ var RowMenu = (function (props) {
|
|
|
11169
11190
|
gap: 10
|
|
11170
11191
|
}
|
|
11171
11192
|
}, itemList.slice(0, 2).map(function (e) {
|
|
11172
|
-
return
|
|
11193
|
+
return React.createElement(Button, {
|
|
11173
11194
|
key: e.key,
|
|
11174
11195
|
type: 'link',
|
|
11175
11196
|
onClick: e.onClick,
|
|
@@ -11181,25 +11202,25 @@ var RowMenu = (function (props) {
|
|
|
11181
11202
|
}, [itemList]);
|
|
11182
11203
|
|
|
11183
11204
|
if (props.goods.level && props.goods.level > 0) {
|
|
11184
|
-
return
|
|
11205
|
+
return React.createElement(React.Fragment, null);
|
|
11185
11206
|
}
|
|
11186
11207
|
|
|
11187
11208
|
if (itemList.length === 0) {
|
|
11188
|
-
return
|
|
11209
|
+
return React.createElement(React.Fragment, null);
|
|
11189
11210
|
}
|
|
11190
11211
|
|
|
11191
|
-
return
|
|
11212
|
+
return React.createElement("span", {
|
|
11192
11213
|
style: {
|
|
11193
11214
|
padding: '0 0 0 10px',
|
|
11194
11215
|
display: 'flex'
|
|
11195
11216
|
}
|
|
11196
|
-
}, buttonList, overlay &&
|
|
11217
|
+
}, buttonList, overlay && React.createElement(Dropdown, {
|
|
11197
11218
|
overlay: overlay,
|
|
11198
11219
|
trigger: ['click']
|
|
11199
|
-
},
|
|
11220
|
+
}, React.createElement(Button, {
|
|
11200
11221
|
className: "kts-invoice-operate-goods-list-columns-row-menu ant-btn-icon-only",
|
|
11201
11222
|
type: "link"
|
|
11202
|
-
},
|
|
11223
|
+
}, React.createElement(Icon$1, {
|
|
11203
11224
|
component: SvgSpot
|
|
11204
11225
|
}))));
|
|
11205
11226
|
});
|
|
@@ -11213,9 +11234,9 @@ var TitleText = (function (props) {
|
|
|
11213
11234
|
return !!e.required;
|
|
11214
11235
|
})) || props.required;
|
|
11215
11236
|
}, [rules, props.required]);
|
|
11216
|
-
return
|
|
11237
|
+
return React.createElement(React.Fragment, null, required ? React.createElement(Text$2, {
|
|
11217
11238
|
type: "danger"
|
|
11218
|
-
}, "*") :
|
|
11239
|
+
}, "*") : React.createElement(React.Fragment, null), children);
|
|
11219
11240
|
});
|
|
11220
11241
|
|
|
11221
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";
|
|
@@ -11409,14 +11430,14 @@ function ItemNameInput(props) {
|
|
|
11409
11430
|
React.useEffect(function () {
|
|
11410
11431
|
setValue(props.value);
|
|
11411
11432
|
}, [props.value]);
|
|
11412
|
-
return
|
|
11433
|
+
return React.createElement("div", {
|
|
11413
11434
|
className: 'kts-invoice-operate-goods-list-itemName-input'
|
|
11414
|
-
}, props.shorthand &&
|
|
11435
|
+
}, props.shorthand && React.createElement("span", {
|
|
11415
11436
|
style: {
|
|
11416
11437
|
alignSelf: 'center',
|
|
11417
11438
|
fontSize: 12
|
|
11418
11439
|
}
|
|
11419
|
-
}, "*", props.shorthand, "*"),
|
|
11440
|
+
}, "*", props.shorthand, "*"), React.createElement(AutoComplete$1, {
|
|
11420
11441
|
onSearch: onSearch,
|
|
11421
11442
|
value: props.value,
|
|
11422
11443
|
options: options.map(function (e) {
|
|
@@ -11429,7 +11450,7 @@ function ItemNameInput(props) {
|
|
|
11429
11450
|
return rootElement || document.body;
|
|
11430
11451
|
},
|
|
11431
11452
|
onSelect: onChangeAutoComplete
|
|
11432
|
-
},
|
|
11453
|
+
}, React.createElement(Input, {
|
|
11433
11454
|
style: {
|
|
11434
11455
|
height: '100%',
|
|
11435
11456
|
border: 'none'
|
|
@@ -11541,9 +11562,9 @@ function ItemCodeInput(props) {
|
|
|
11541
11562
|
return _ref2.apply(this, arguments);
|
|
11542
11563
|
};
|
|
11543
11564
|
}(), [options, controller]);
|
|
11544
|
-
return
|
|
11565
|
+
return React.createElement("div", {
|
|
11545
11566
|
className: 'kts-invoice-operate-goods-list-itemCode-input'
|
|
11546
|
-
},
|
|
11567
|
+
}, React.createElement(AutoComplete$1, {
|
|
11547
11568
|
onSearch: onSearch,
|
|
11548
11569
|
value: props.value,
|
|
11549
11570
|
options: options.map(function (e) {
|
|
@@ -11555,7 +11576,7 @@ function ItemCodeInput(props) {
|
|
|
11555
11576
|
return rootElement || document.body;
|
|
11556
11577
|
},
|
|
11557
11578
|
onSelect: onChangeAutoComplete
|
|
11558
|
-
},
|
|
11579
|
+
}, React.createElement(Input, {
|
|
11559
11580
|
style: {
|
|
11560
11581
|
height: '100%',
|
|
11561
11582
|
border: 'none'
|
|
@@ -12736,7 +12757,7 @@ function Drag$1(props) {
|
|
|
12736
12757
|
var currentGood = controller.state.goodsListState.goodsList.filter(function (e) {
|
|
12737
12758
|
return e.$index === record.$index;
|
|
12738
12759
|
})[0];
|
|
12739
|
-
mounting(
|
|
12760
|
+
mounting(React.createElement(DragDiv, _objectSpread2({}, currentGood)));
|
|
12740
12761
|
rowList.forEach(function (e) {
|
|
12741
12762
|
e.addEventListener('mousemove', onMousemove);
|
|
12742
12763
|
});
|
|
@@ -12897,7 +12918,7 @@ function Drag$1(props) {
|
|
|
12897
12918
|
|
|
12898
12919
|
|
|
12899
12920
|
function insert() {
|
|
12900
|
-
mounting(
|
|
12921
|
+
mounting(React.createElement(React.Fragment, null));
|
|
12901
12922
|
controller.run( /*#__PURE__*/function () {
|
|
12902
12923
|
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(s) {
|
|
12903
12924
|
var _s$goodsListState$dra, container, current, site, goodsList, goodsMap, _currentGood, currentIndex, moveGoods;
|
|
@@ -12976,7 +12997,7 @@ function Drag$1(props) {
|
|
|
12976
12997
|
}
|
|
12977
12998
|
}, [controller, record, disabled]);
|
|
12978
12999
|
var renderButton = React.useMemo(function () {
|
|
12979
|
-
return
|
|
13000
|
+
return React.createElement(Button, {
|
|
12980
13001
|
type: 'link',
|
|
12981
13002
|
style: {
|
|
12982
13003
|
padding: 0
|
|
@@ -12987,13 +13008,13 @@ function Drag$1(props) {
|
|
|
12987
13008
|
},
|
|
12988
13009
|
className: "kts-invoice-operate-goods-list-itemName-drag",
|
|
12989
13010
|
onMouseOver: controller.saveEditGood
|
|
12990
|
-
},
|
|
13011
|
+
}, React.createElement(Icon, {
|
|
12991
13012
|
component: SvgI001
|
|
12992
13013
|
}));
|
|
12993
13014
|
}, [onMouseDown, controller]);
|
|
12994
13015
|
|
|
12995
13016
|
if (disabled) {
|
|
12996
|
-
return
|
|
13017
|
+
return React.createElement(Popover, {
|
|
12997
13018
|
content: '您还有未编辑完成的商品',
|
|
12998
13019
|
trigger: 'focus'
|
|
12999
13020
|
}, renderButton);
|
|
@@ -13033,51 +13054,13 @@ function DragDiv(props) {
|
|
|
13033
13054
|
window.removeEventListener('mousemove', onMousemove);
|
|
13034
13055
|
};
|
|
13035
13056
|
});
|
|
13036
|
-
return
|
|
13057
|
+
return React.createElement("div", {
|
|
13037
13058
|
className: "kts-invoice-operate-goods-list-itemName-drag-div",
|
|
13038
13059
|
style: {
|
|
13039
13060
|
top: y,
|
|
13040
13061
|
left: x
|
|
13041
13062
|
}
|
|
13042
|
-
},
|
|
13043
|
-
}
|
|
13044
|
-
|
|
13045
|
-
var _path$4, _path2$1, _path3$1;
|
|
13046
|
-
|
|
13047
|
-
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); }
|
|
13048
|
-
|
|
13049
|
-
function SvgI001$1(props) {
|
|
13050
|
-
return /*#__PURE__*/createElement("svg", _extends$4({
|
|
13051
|
-
className: "I001_svg__icon",
|
|
13052
|
-
viewBox: "0 0 1024 1024",
|
|
13053
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
13054
|
-
width: 200,
|
|
13055
|
-
height: 200
|
|
13056
|
-
}, props), _path$4 || (_path$4 = /*#__PURE__*/createElement("path", {
|
|
13057
|
-
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"
|
|
13058
|
-
})), _path2$1 || (_path2$1 = /*#__PURE__*/createElement("path", {
|
|
13059
|
-
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"
|
|
13060
|
-
})), _path3$1 || (_path3$1 = /*#__PURE__*/createElement("path", {
|
|
13061
|
-
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"
|
|
13062
|
-
})));
|
|
13063
|
-
}
|
|
13064
|
-
|
|
13065
|
-
var _path$5, _path2$2;
|
|
13066
|
-
|
|
13067
|
-
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); }
|
|
13068
|
-
|
|
13069
|
-
function SvgI002(props) {
|
|
13070
|
-
return /*#__PURE__*/createElement("svg", _extends$5({
|
|
13071
|
-
className: "I002_svg__icon",
|
|
13072
|
-
viewBox: "0 0 1024 1024",
|
|
13073
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
13074
|
-
width: 200,
|
|
13075
|
-
height: 200
|
|
13076
|
-
}, props), _path$5 || (_path$5 = /*#__PURE__*/createElement("path", {
|
|
13077
|
-
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"
|
|
13078
|
-
})), _path2$2 || (_path2$2 = /*#__PURE__*/createElement("path", {
|
|
13079
|
-
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"
|
|
13080
|
-
})));
|
|
13063
|
+
}, React.createElement("span", null, props.itemName), React.createElement("span", null, props.itemModelName), React.createElement("span", null, props.unit));
|
|
13081
13064
|
}
|
|
13082
13065
|
|
|
13083
13066
|
function Expand(props) {
|
|
@@ -13094,15 +13077,14 @@ function Expand(props) {
|
|
|
13094
13077
|
|
|
13095
13078
|
if ((_goodsMap$get = goodsMap.get(record.$index)) === null || _goodsMap$get === void 0 ? void 0 : _goodsMap$get.children) {
|
|
13096
13079
|
if (expandedRowKeys.includes(record.$index)) {
|
|
13097
|
-
return
|
|
13080
|
+
return React.createElement(Button$1, {
|
|
13098
13081
|
type: 'text',
|
|
13099
13082
|
style: {
|
|
13100
13083
|
width: 'auto',
|
|
13101
|
-
color: "#0074ff"
|
|
13084
|
+
color: "#0074ff",
|
|
13085
|
+
padding: 0
|
|
13102
13086
|
},
|
|
13103
|
-
icon
|
|
13104
|
-
component: SvgI002
|
|
13105
|
-
}),
|
|
13087
|
+
// icon={<Icon component={I002Svg} />}
|
|
13106
13088
|
onClick: controller.pipeline( /*#__PURE__*/function () {
|
|
13107
13089
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(s, e) {
|
|
13108
13090
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -13126,17 +13108,16 @@ function Expand(props) {
|
|
|
13126
13108
|
return _ref.apply(this, arguments);
|
|
13127
13109
|
};
|
|
13128
13110
|
}())
|
|
13129
|
-
});
|
|
13111
|
+
}, "\u6536\u8D77");
|
|
13130
13112
|
} else {
|
|
13131
|
-
return
|
|
13113
|
+
return React.createElement(Button$1, {
|
|
13132
13114
|
type: 'text',
|
|
13133
13115
|
style: {
|
|
13134
13116
|
width: 'auto',
|
|
13135
|
-
color: "#0074ff"
|
|
13117
|
+
color: "#0074ff",
|
|
13118
|
+
padding: 0
|
|
13136
13119
|
},
|
|
13137
|
-
icon
|
|
13138
|
-
component: SvgI001$1
|
|
13139
|
-
}),
|
|
13120
|
+
// icon={<Icon component={I001Svg} />}
|
|
13140
13121
|
onClick: controller.pipeline( /*#__PURE__*/function () {
|
|
13141
13122
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(s, e) {
|
|
13142
13123
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
@@ -13158,10 +13139,10 @@ function Expand(props) {
|
|
|
13158
13139
|
return _ref2.apply(this, arguments);
|
|
13159
13140
|
};
|
|
13160
13141
|
}())
|
|
13161
|
-
});
|
|
13142
|
+
}, "\u5C55\u5F00");
|
|
13162
13143
|
}
|
|
13163
13144
|
} else {
|
|
13164
|
-
return
|
|
13145
|
+
return React.createElement(React.Fragment, null);
|
|
13165
13146
|
}
|
|
13166
13147
|
}
|
|
13167
13148
|
|
|
@@ -13296,17 +13277,17 @@ var useColumns = (function (form) {
|
|
|
13296
13277
|
width: 40,
|
|
13297
13278
|
align: 'center',
|
|
13298
13279
|
render: function render(_, record) {
|
|
13299
|
-
return
|
|
13280
|
+
return React.createElement(Drag$1, {
|
|
13300
13281
|
record: record
|
|
13301
13282
|
});
|
|
13302
13283
|
}
|
|
13303
13284
|
}, {
|
|
13304
13285
|
title: ' ',
|
|
13305
13286
|
key: 'expand',
|
|
13306
|
-
width:
|
|
13287
|
+
width: 50,
|
|
13307
13288
|
align: 'center',
|
|
13308
13289
|
render: function render(_, record) {
|
|
13309
|
-
return
|
|
13290
|
+
return React.createElement(Expand, {
|
|
13310
13291
|
record: record
|
|
13311
13292
|
});
|
|
13312
13293
|
}
|
|
@@ -13316,7 +13297,7 @@ var useColumns = (function (form) {
|
|
|
13316
13297
|
dataIndex: 'serialNo',
|
|
13317
13298
|
width: 50,
|
|
13318
13299
|
render: function render(e) {
|
|
13319
|
-
return
|
|
13300
|
+
return React.createElement("span", {
|
|
13320
13301
|
style: {
|
|
13321
13302
|
padding: '0 10px'
|
|
13322
13303
|
}
|
|
@@ -13328,13 +13309,13 @@ var useColumns = (function (form) {
|
|
|
13328
13309
|
width: 119,
|
|
13329
13310
|
render: function render(_, record) {
|
|
13330
13311
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index && model !== 'prefab') {
|
|
13331
|
-
return
|
|
13312
|
+
return React.createElement(Form.Item, null, getFieldDecorator('itemCode', {
|
|
13332
13313
|
initialValue: editGood.itemCode,
|
|
13333
13314
|
rules: [].concat(_toConsumableArray(getReplenishRules('itemCode')), [{
|
|
13334
13315
|
pattern: /^.{1,19}$/,
|
|
13335
13316
|
message: '商品编码长度不能超过19位'
|
|
13336
13317
|
}])
|
|
13337
|
-
})(
|
|
13318
|
+
})(React.createElement(ItemCodeInput, {
|
|
13338
13319
|
onChange: function () {
|
|
13339
13320
|
var _onChange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
13340
13321
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
@@ -13360,7 +13341,7 @@ var useColumns = (function (form) {
|
|
|
13360
13341
|
}()
|
|
13361
13342
|
})));
|
|
13362
13343
|
} else {
|
|
13363
|
-
return
|
|
13344
|
+
return React.createElement("span", {
|
|
13364
13345
|
style: {
|
|
13365
13346
|
padding: '0 10px'
|
|
13366
13347
|
}
|
|
@@ -13368,13 +13349,13 @@ var useColumns = (function (form) {
|
|
|
13368
13349
|
}
|
|
13369
13350
|
}
|
|
13370
13351
|
}, {
|
|
13371
|
-
title:
|
|
13352
|
+
title: React.createElement(TitleText, {
|
|
13372
13353
|
required: true
|
|
13373
13354
|
}, "\u9879\u76EE\u540D\u79F0"),
|
|
13374
13355
|
key: 'itemName',
|
|
13375
13356
|
render: function render(_, record) {
|
|
13376
13357
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index && model !== 'prefab') {
|
|
13377
|
-
return
|
|
13358
|
+
return React.createElement(Form.Item, null, React.createElement("div", {
|
|
13378
13359
|
style: {
|
|
13379
13360
|
display: 'flex'
|
|
13380
13361
|
}
|
|
@@ -13421,17 +13402,17 @@ var useColumns = (function (form) {
|
|
|
13421
13402
|
return validator;
|
|
13422
13403
|
}()
|
|
13423
13404
|
}])
|
|
13424
|
-
})(
|
|
13405
|
+
})(React.createElement(ItemNameInput, {
|
|
13425
13406
|
editGood: editGood,
|
|
13426
13407
|
shorthand: editGood.shorthand,
|
|
13427
13408
|
onChange: function onChange() {
|
|
13428
13409
|
onChangeItemName(controller, form, record);
|
|
13429
13410
|
}
|
|
13430
|
-
})),
|
|
13411
|
+
})), React.createElement("div", {
|
|
13431
13412
|
className: "kts-invoice-operate-goods-list-able-list-itemName-import"
|
|
13432
|
-
}, controller.getGoodsList && model !== 'readOnly' &&
|
|
13413
|
+
}, controller.getGoodsList && model !== 'readOnly' && React.createElement(Tooltip, {
|
|
13433
13414
|
title: "\u70B9\u51FB\u4ECE\u5546\u54C1\u7BA1\u7406\u4E2D\u6DFB\u52A0\u5546\u54C1\u4FE1\u606F"
|
|
13434
|
-
},
|
|
13415
|
+
}, React.createElement(Button, {
|
|
13435
13416
|
onClick: controller.pipeline( /*#__PURE__*/function () {
|
|
13436
13417
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(s) {
|
|
13437
13418
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
@@ -13456,7 +13437,7 @@ var useColumns = (function (form) {
|
|
|
13456
13437
|
icon: "plus-circle"
|
|
13457
13438
|
})))));
|
|
13458
13439
|
} else {
|
|
13459
|
-
return
|
|
13440
|
+
return React.createElement(MyItemNameDiv, {
|
|
13460
13441
|
valueT: formatSearch(getItemNameWithShorthand({
|
|
13461
13442
|
shorthand: record.shorthand,
|
|
13462
13443
|
full: record.itemNameSelf || ''
|
|
@@ -13470,17 +13451,17 @@ var useColumns = (function (form) {
|
|
|
13470
13451
|
}
|
|
13471
13452
|
}
|
|
13472
13453
|
}, {
|
|
13473
|
-
title:
|
|
13454
|
+
title: React.createElement(TitleText, {
|
|
13474
13455
|
rules: (_columnsReplenish$ite = columnsReplenish['itemModelName']) === null || _columnsReplenish$ite === void 0 ? void 0 : _columnsReplenish$ite.rules
|
|
13475
13456
|
}, "\u89C4\u683C\u578B\u53F7"),
|
|
13476
13457
|
key: 'itemModelName',
|
|
13477
13458
|
width: 119,
|
|
13478
13459
|
render: function render(_, record) {
|
|
13479
13460
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index && model !== 'prefab') {
|
|
13480
|
-
return
|
|
13461
|
+
return React.createElement(Form.Item, null, getFieldDecorator('itemModelName', {
|
|
13481
13462
|
initialValue: isMyShow ? editGood.itemModelNameSelf : editGood.itemModelName,
|
|
13482
13463
|
rules: getReplenishRules('itemModelName')
|
|
13483
|
-
})(
|
|
13464
|
+
})(React.createElement(MyInput, {
|
|
13484
13465
|
onChange: function () {
|
|
13485
13466
|
var _onChange2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5() {
|
|
13486
13467
|
var key, value;
|
|
@@ -13513,7 +13494,7 @@ var useColumns = (function (form) {
|
|
|
13513
13494
|
}()
|
|
13514
13495
|
})));
|
|
13515
13496
|
} else {
|
|
13516
|
-
return
|
|
13497
|
+
return React.createElement(MyItemNameDiv, {
|
|
13517
13498
|
valueT: formatSearch(record.itemModelNameSelf, searchValue),
|
|
13518
13499
|
valueF: formatSearch(record.itemModelName, searchValue),
|
|
13519
13500
|
isMyShow: isMyShow
|
|
@@ -13521,17 +13502,17 @@ var useColumns = (function (form) {
|
|
|
13521
13502
|
}
|
|
13522
13503
|
}
|
|
13523
13504
|
}, {
|
|
13524
|
-
title:
|
|
13505
|
+
title: React.createElement(TitleText, {
|
|
13525
13506
|
rules: (_columnsReplenish$uni = columnsReplenish['unit']) === null || _columnsReplenish$uni === void 0 ? void 0 : _columnsReplenish$uni.rules
|
|
13526
13507
|
}, "\u5355\u4F4D"),
|
|
13527
13508
|
key: 'unit',
|
|
13528
13509
|
width: 70,
|
|
13529
13510
|
render: function render(_, record) {
|
|
13530
13511
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index && model !== 'prefab') {
|
|
13531
|
-
return
|
|
13512
|
+
return React.createElement(Form.Item, null, getFieldDecorator('unit', {
|
|
13532
13513
|
initialValue: editGood.unit,
|
|
13533
13514
|
rules: getReplenishRules('unit')
|
|
13534
|
-
})(
|
|
13515
|
+
})(React.createElement(AutoComplete$2, {
|
|
13535
13516
|
style: {
|
|
13536
13517
|
width: '100%'
|
|
13537
13518
|
},
|
|
@@ -13569,7 +13550,7 @@ var useColumns = (function (form) {
|
|
|
13569
13550
|
}()
|
|
13570
13551
|
})));
|
|
13571
13552
|
} else {
|
|
13572
|
-
return
|
|
13553
|
+
return React.createElement("span", {
|
|
13573
13554
|
style: {
|
|
13574
13555
|
padding: '0 10px'
|
|
13575
13556
|
}
|
|
@@ -13577,7 +13558,7 @@ var useColumns = (function (form) {
|
|
|
13577
13558
|
}
|
|
13578
13559
|
}
|
|
13579
13560
|
}, {
|
|
13580
|
-
title:
|
|
13561
|
+
title: React.createElement(TitleText, {
|
|
13581
13562
|
rules: (_columnsReplenish$qua = columnsReplenish['quantity']) === null || _columnsReplenish$qua === void 0 ? void 0 : _columnsReplenish$qua.rules
|
|
13582
13563
|
}, "\u6570\u91CF"),
|
|
13583
13564
|
dataIndex: 'quantity',
|
|
@@ -13586,7 +13567,7 @@ var useColumns = (function (form) {
|
|
|
13586
13567
|
width: 149,
|
|
13587
13568
|
render: function render(value, record) {
|
|
13588
13569
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index && model !== 'prefab') {
|
|
13589
|
-
return
|
|
13570
|
+
return React.createElement(Form.Item, null, getFieldDecorator('quantity', {
|
|
13590
13571
|
initialValue: nonScientificNotation(editGood.quantity),
|
|
13591
13572
|
getValueFromEvent: onNumberValueChange,
|
|
13592
13573
|
rules: [].concat(_toConsumableArray(getReplenishRules('quantity')), [{
|
|
@@ -13632,7 +13613,7 @@ var useColumns = (function (form) {
|
|
|
13632
13613
|
return validator;
|
|
13633
13614
|
}()
|
|
13634
13615
|
}])
|
|
13635
|
-
})(
|
|
13616
|
+
})(React.createElement(MyInput, {
|
|
13636
13617
|
style: {
|
|
13637
13618
|
textAlign: 'right'
|
|
13638
13619
|
},
|
|
@@ -13664,7 +13645,7 @@ var useColumns = (function (form) {
|
|
|
13664
13645
|
}()
|
|
13665
13646
|
})));
|
|
13666
13647
|
} else {
|
|
13667
|
-
return
|
|
13648
|
+
return React.createElement("span", {
|
|
13668
13649
|
style: {
|
|
13669
13650
|
padding: '0 10px'
|
|
13670
13651
|
}
|
|
@@ -13672,7 +13653,7 @@ var useColumns = (function (form) {
|
|
|
13672
13653
|
}
|
|
13673
13654
|
}
|
|
13674
13655
|
}, {
|
|
13675
|
-
title:
|
|
13656
|
+
title: React.createElement(TitleText, {
|
|
13676
13657
|
rules: (_columnsReplenish$pri = columnsReplenish['priceIncludeTax']) === null || _columnsReplenish$pri === void 0 ? void 0 : _columnsReplenish$pri.rules
|
|
13677
13658
|
}, "\u5355\u4EF7(\u542B\u7A0E)"),
|
|
13678
13659
|
dataIndex: 'priceIncludeTax',
|
|
@@ -13681,7 +13662,7 @@ var useColumns = (function (form) {
|
|
|
13681
13662
|
width: 149,
|
|
13682
13663
|
render: function render(value, record) {
|
|
13683
13664
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index && model !== 'prefab') {
|
|
13684
|
-
return
|
|
13665
|
+
return React.createElement(Form.Item, null, getFieldDecorator('priceIncludeTax', {
|
|
13685
13666
|
initialValue: nonScientificNotation(editGood.priceIncludeTax),
|
|
13686
13667
|
getValueFromEvent: onNumberValueChange,
|
|
13687
13668
|
rules: [].concat(_toConsumableArray(getReplenishRules('priceIncludeTax')), [{
|
|
@@ -13727,7 +13708,7 @@ var useColumns = (function (form) {
|
|
|
13727
13708
|
return validator;
|
|
13728
13709
|
}()
|
|
13729
13710
|
}])
|
|
13730
|
-
})(
|
|
13711
|
+
})(React.createElement(MyInput, {
|
|
13731
13712
|
style: {
|
|
13732
13713
|
textAlign: 'right'
|
|
13733
13714
|
},
|
|
@@ -13739,7 +13720,7 @@ var useColumns = (function (form) {
|
|
|
13739
13720
|
}
|
|
13740
13721
|
})));
|
|
13741
13722
|
} else {
|
|
13742
|
-
return
|
|
13723
|
+
return React.createElement("span", {
|
|
13743
13724
|
style: {
|
|
13744
13725
|
padding: '0 10px'
|
|
13745
13726
|
}
|
|
@@ -13747,7 +13728,7 @@ var useColumns = (function (form) {
|
|
|
13747
13728
|
}
|
|
13748
13729
|
}
|
|
13749
13730
|
}, {
|
|
13750
|
-
title:
|
|
13731
|
+
title: React.createElement(TitleText, {
|
|
13751
13732
|
rules: (_columnsReplenish$pri2 = columnsReplenish['priceExcludeTax']) === null || _columnsReplenish$pri2 === void 0 ? void 0 : _columnsReplenish$pri2.rules
|
|
13752
13733
|
}, "\u5355\u4EF7(\u4E0D\u542B\u7A0E)"),
|
|
13753
13734
|
dataIndex: 'priceExcludeTax',
|
|
@@ -13756,7 +13737,7 @@ var useColumns = (function (form) {
|
|
|
13756
13737
|
width: 149,
|
|
13757
13738
|
render: function render(value, record) {
|
|
13758
13739
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index && model !== 'prefab') {
|
|
13759
|
-
return
|
|
13740
|
+
return React.createElement(Form.Item, null, getFieldDecorator('priceExcludeTax', {
|
|
13760
13741
|
initialValue: nonScientificNotation(editGood.priceExcludeTax),
|
|
13761
13742
|
getValueFromEvent: onNumberValueChange,
|
|
13762
13743
|
rules: [].concat(_toConsumableArray(getReplenishRules('priceExcludeTax')), [{
|
|
@@ -13802,7 +13783,7 @@ var useColumns = (function (form) {
|
|
|
13802
13783
|
return validator;
|
|
13803
13784
|
}()
|
|
13804
13785
|
}])
|
|
13805
|
-
})(
|
|
13786
|
+
})(React.createElement(MyInput, {
|
|
13806
13787
|
style: {
|
|
13807
13788
|
textAlign: 'right'
|
|
13808
13789
|
},
|
|
@@ -13814,7 +13795,7 @@ var useColumns = (function (form) {
|
|
|
13814
13795
|
}
|
|
13815
13796
|
})));
|
|
13816
13797
|
} else {
|
|
13817
|
-
return
|
|
13798
|
+
return React.createElement("span", {
|
|
13818
13799
|
style: {
|
|
13819
13800
|
padding: '0 10px'
|
|
13820
13801
|
}
|
|
@@ -13822,7 +13803,7 @@ var useColumns = (function (form) {
|
|
|
13822
13803
|
}
|
|
13823
13804
|
}
|
|
13824
13805
|
}, {
|
|
13825
|
-
title:
|
|
13806
|
+
title: React.createElement(TitleText, {
|
|
13826
13807
|
required: true
|
|
13827
13808
|
}, "\u91D1\u989D(\u542B\u7A0E)"),
|
|
13828
13809
|
dataIndex: 'lineAmountIncludeTax',
|
|
@@ -13831,7 +13812,7 @@ var useColumns = (function (form) {
|
|
|
13831
13812
|
align: 'right',
|
|
13832
13813
|
render: function render(value, record) {
|
|
13833
13814
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index && model !== 'prefab') {
|
|
13834
|
-
return
|
|
13815
|
+
return React.createElement(Form.Item, null, getFieldDecorator('lineAmountIncludeTax', {
|
|
13835
13816
|
initialValue: editGood.lineAmountIncludeTax,
|
|
13836
13817
|
getValueFromEvent: onNumberValueChange,
|
|
13837
13818
|
rules: [].concat(_toConsumableArray(getReplenishRules('lineAmountIncludeTax')), [{
|
|
@@ -13891,7 +13872,7 @@ var useColumns = (function (form) {
|
|
|
13891
13872
|
return validator;
|
|
13892
13873
|
}()
|
|
13893
13874
|
}])
|
|
13894
|
-
})(
|
|
13875
|
+
})(React.createElement(MyInput, {
|
|
13895
13876
|
style: {
|
|
13896
13877
|
textAlign: 'right'
|
|
13897
13878
|
},
|
|
@@ -13902,7 +13883,7 @@ var useColumns = (function (form) {
|
|
|
13902
13883
|
}
|
|
13903
13884
|
})));
|
|
13904
13885
|
} else {
|
|
13905
|
-
return
|
|
13886
|
+
return React.createElement("span", {
|
|
13906
13887
|
style: {
|
|
13907
13888
|
padding: '0 10px'
|
|
13908
13889
|
}
|
|
@@ -13910,7 +13891,7 @@ var useColumns = (function (form) {
|
|
|
13910
13891
|
}
|
|
13911
13892
|
}
|
|
13912
13893
|
}, {
|
|
13913
|
-
title:
|
|
13894
|
+
title: React.createElement(TitleText, {
|
|
13914
13895
|
required: true
|
|
13915
13896
|
}, "\u91D1\u989D(\u4E0D\u542B\u7A0E)"),
|
|
13916
13897
|
dataIndex: 'lineAmountExcludeTax',
|
|
@@ -13919,7 +13900,7 @@ var useColumns = (function (form) {
|
|
|
13919
13900
|
width: 119,
|
|
13920
13901
|
render: function render(value, record) {
|
|
13921
13902
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index && model !== 'prefab') {
|
|
13922
|
-
return
|
|
13903
|
+
return React.createElement(Form.Item, null, getFieldDecorator('lineAmountExcludeTax', {
|
|
13923
13904
|
initialValue: editGood.lineAmountExcludeTax,
|
|
13924
13905
|
getValueFromEvent: onNumberValueChange,
|
|
13925
13906
|
rules: [].concat(_toConsumableArray(getReplenishRules('lineAmountExcludeTax')), [{
|
|
@@ -13954,7 +13935,7 @@ var useColumns = (function (form) {
|
|
|
13954
13935
|
return validator;
|
|
13955
13936
|
}()
|
|
13956
13937
|
}])
|
|
13957
|
-
})(
|
|
13938
|
+
})(React.createElement(MyInput, {
|
|
13958
13939
|
style: {
|
|
13959
13940
|
textAlign: 'right'
|
|
13960
13941
|
},
|
|
@@ -13965,7 +13946,7 @@ var useColumns = (function (form) {
|
|
|
13965
13946
|
}
|
|
13966
13947
|
})));
|
|
13967
13948
|
} else {
|
|
13968
|
-
return
|
|
13949
|
+
return React.createElement("span", {
|
|
13969
13950
|
style: {
|
|
13970
13951
|
padding: '0 10px'
|
|
13971
13952
|
}
|
|
@@ -13973,7 +13954,7 @@ var useColumns = (function (form) {
|
|
|
13973
13954
|
}
|
|
13974
13955
|
}
|
|
13975
13956
|
}, {
|
|
13976
|
-
title:
|
|
13957
|
+
title: React.createElement(TitleText, {
|
|
13977
13958
|
required: true
|
|
13978
13959
|
}, "\u7A0E\u7387"),
|
|
13979
13960
|
dataIndex: 'taxRate',
|
|
@@ -13982,7 +13963,7 @@ var useColumns = (function (form) {
|
|
|
13982
13963
|
width: 75,
|
|
13983
13964
|
render: function render(value, record) {
|
|
13984
13965
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index && !(model === 'prefab' && calculateType === '3')) {
|
|
13985
|
-
return
|
|
13966
|
+
return React.createElement(Form.Item, null, getFieldDecorator('taxRate', {
|
|
13986
13967
|
initialValue: editGood.taxRate,
|
|
13987
13968
|
rules: [].concat(_toConsumableArray(getReplenishRules('taxRate')), [{
|
|
13988
13969
|
required: true,
|
|
@@ -13991,7 +13972,7 @@ var useColumns = (function (form) {
|
|
|
13991
13972
|
pattern: /^[+-]?(0|([1-9]\d*))(\.\d+)?$/,
|
|
13992
13973
|
message: '请选择正确税率'
|
|
13993
13974
|
}])
|
|
13994
|
-
})(
|
|
13975
|
+
})(React.createElement(Select, {
|
|
13995
13976
|
className: "kts-invoice-operate-goods-list-table-tax-rate",
|
|
13996
13977
|
dropdownMenuStyle: {
|
|
13997
13978
|
textAlign: "right"
|
|
@@ -14007,14 +13988,14 @@ var useColumns = (function (form) {
|
|
|
14007
13988
|
setChangeField('taxRate');
|
|
14008
13989
|
onChangeTaxRate(controller, form, record);
|
|
14009
13990
|
}
|
|
14010
|
-
}, taxRateList.map(function (e, i) {
|
|
14011
|
-
return
|
|
13991
|
+
}, (record.goodsTaxRateList || taxRateList).map(function (e, i) {
|
|
13992
|
+
return React.createElement(Select.Option, {
|
|
14012
13993
|
key: i,
|
|
14013
13994
|
value: e
|
|
14014
13995
|
}, e, "%");
|
|
14015
13996
|
}))));
|
|
14016
13997
|
} else {
|
|
14017
|
-
return
|
|
13998
|
+
return React.createElement("span", {
|
|
14018
13999
|
style: {
|
|
14019
14000
|
padding: '0 10px'
|
|
14020
14001
|
}
|
|
@@ -14022,7 +14003,7 @@ var useColumns = (function (form) {
|
|
|
14022
14003
|
}
|
|
14023
14004
|
}
|
|
14024
14005
|
}, {
|
|
14025
|
-
title:
|
|
14006
|
+
title: React.createElement(TitleText, {
|
|
14026
14007
|
rules: (_columnsReplenish$tax = columnsReplenish['taxAmount']) === null || _columnsReplenish$tax === void 0 ? void 0 : _columnsReplenish$tax.rules
|
|
14027
14008
|
}, "\u7A0E\u989D"),
|
|
14028
14009
|
dataIndex: 'taxAmount',
|
|
@@ -14034,11 +14015,11 @@ var useColumns = (function (form) {
|
|
|
14034
14015
|
return getFieldDecorator('taxAmount', {
|
|
14035
14016
|
initialValue: editGood.taxAmount,
|
|
14036
14017
|
rules: getReplenishRules('taxAmount')
|
|
14037
|
-
})(
|
|
14018
|
+
})(React.createElement(MyDiv, {
|
|
14038
14019
|
loading: isCipher(changeField, 'taxAmount')
|
|
14039
14020
|
}));
|
|
14040
14021
|
} else {
|
|
14041
|
-
return
|
|
14022
|
+
return React.createElement("span", {
|
|
14042
14023
|
style: {
|
|
14043
14024
|
padding: '0 10px'
|
|
14044
14025
|
}
|
|
@@ -14053,42 +14034,42 @@ var useColumns = (function (form) {
|
|
|
14053
14034
|
render: function render(e) {
|
|
14054
14035
|
switch (e) {
|
|
14055
14036
|
case LineAttributeType$1.折扣行:
|
|
14056
|
-
return
|
|
14037
|
+
return React.createElement("span", {
|
|
14057
14038
|
style: {
|
|
14058
14039
|
padding: '0 10px'
|
|
14059
14040
|
}
|
|
14060
14041
|
}, "\u6298\u6263\u884C");
|
|
14061
14042
|
|
|
14062
14043
|
case LineAttributeType$1.被折扣行:
|
|
14063
|
-
return
|
|
14044
|
+
return React.createElement("span", {
|
|
14064
14045
|
style: {
|
|
14065
14046
|
padding: '0 10px'
|
|
14066
14047
|
}
|
|
14067
14048
|
}, "\u88AB\u6298\u6263\u884C");
|
|
14068
14049
|
|
|
14069
14050
|
case LineAttributeType$1.赠品行:
|
|
14070
|
-
return
|
|
14051
|
+
return React.createElement("span", {
|
|
14071
14052
|
style: {
|
|
14072
14053
|
padding: '0 10px'
|
|
14073
14054
|
}
|
|
14074
14055
|
}, "\u8D60\u54C1\u884C");
|
|
14075
14056
|
|
|
14076
14057
|
case LineAttributeType$1.折让行:
|
|
14077
|
-
return
|
|
14058
|
+
return React.createElement("span", {
|
|
14078
14059
|
style: {
|
|
14079
14060
|
padding: '0 10px'
|
|
14080
14061
|
}
|
|
14081
14062
|
}, "\u6298\u8BA9\u884C");
|
|
14082
14063
|
|
|
14083
14064
|
case LineAttributeType$1.正常:
|
|
14084
|
-
return
|
|
14065
|
+
return React.createElement("span", {
|
|
14085
14066
|
style: {
|
|
14086
14067
|
padding: '0 10px'
|
|
14087
14068
|
}
|
|
14088
14069
|
}, "\u6B63\u5E38\u884C");
|
|
14089
14070
|
|
|
14090
14071
|
default:
|
|
14091
|
-
return
|
|
14072
|
+
return React.createElement("span", {
|
|
14092
14073
|
style: {
|
|
14093
14074
|
padding: '0 10px'
|
|
14094
14075
|
}
|
|
@@ -14102,7 +14083,7 @@ var useColumns = (function (form) {
|
|
|
14102
14083
|
width: 130,
|
|
14103
14084
|
fixed: 'right',
|
|
14104
14085
|
render: function render(_value, record) {
|
|
14105
|
-
return
|
|
14086
|
+
return React.createElement(RowMenu, {
|
|
14106
14087
|
key: record.lineAttribute,
|
|
14107
14088
|
goods: record
|
|
14108
14089
|
});
|
|
@@ -14138,7 +14119,7 @@ var useColumns = (function (form) {
|
|
|
14138
14119
|
});
|
|
14139
14120
|
});
|
|
14140
14121
|
}, [isTaxIncluded, editGood, goodsList, controller, changeField, deduction, isMyShow, searchValue, model, columnsReplenish, columnshide, isStart]);
|
|
14141
|
-
return columns;
|
|
14122
|
+
return controller.setColumnsConfig ? controller.setColumnsConfig(columns) : columns;
|
|
14142
14123
|
});
|
|
14143
14124
|
/** 字段 */
|
|
14144
14125
|
|
|
@@ -14162,13 +14143,13 @@ var MyInput = /*#__PURE__*/function (_React$Component) {
|
|
|
14162
14143
|
key: "render",
|
|
14163
14144
|
value: function render() {
|
|
14164
14145
|
if (this.props.loading) {
|
|
14165
|
-
return
|
|
14146
|
+
return React.createElement(Spin, {
|
|
14166
14147
|
size: "small"
|
|
14167
|
-
},
|
|
14148
|
+
}, React.createElement(Input, _objectSpread2(_objectSpread2({}, this.props), {}, {
|
|
14168
14149
|
autoComplete: "off"
|
|
14169
14150
|
})));
|
|
14170
14151
|
} else {
|
|
14171
|
-
return
|
|
14152
|
+
return React.createElement(Input, _objectSpread2(_objectSpread2({}, this.props), {}, {
|
|
14172
14153
|
autoComplete: "off"
|
|
14173
14154
|
}));
|
|
14174
14155
|
}
|
|
@@ -14193,15 +14174,15 @@ var MyDiv = /*#__PURE__*/function (_React$Component2) {
|
|
|
14193
14174
|
key: "render",
|
|
14194
14175
|
value: function render() {
|
|
14195
14176
|
if (this.props.loading) {
|
|
14196
|
-
return
|
|
14177
|
+
return React.createElement(Spin, {
|
|
14197
14178
|
size: "small"
|
|
14198
|
-
},
|
|
14179
|
+
}, React.createElement("span", {
|
|
14199
14180
|
style: {
|
|
14200
14181
|
padding: '0 10px'
|
|
14201
14182
|
}
|
|
14202
14183
|
}, this.props.value));
|
|
14203
14184
|
} else {
|
|
14204
|
-
return
|
|
14185
|
+
return React.createElement("span", {
|
|
14205
14186
|
style: {
|
|
14206
14187
|
padding: '0 10px'
|
|
14207
14188
|
}
|
|
@@ -14234,9 +14215,9 @@ var MyItemNameDiv = /*#__PURE__*/function (_React$Component3) {
|
|
|
14234
14215
|
|
|
14235
14216
|
if (isMyShow) {
|
|
14236
14217
|
if (valueT) {
|
|
14237
|
-
return
|
|
14218
|
+
return React.createElement(Tooltip, {
|
|
14238
14219
|
title: valueT
|
|
14239
|
-
},
|
|
14220
|
+
}, React.createElement("span", {
|
|
14240
14221
|
style: {
|
|
14241
14222
|
padding: '0 10px',
|
|
14242
14223
|
color: '#0074ff',
|
|
@@ -14247,9 +14228,9 @@ var MyItemNameDiv = /*#__PURE__*/function (_React$Component3) {
|
|
|
14247
14228
|
}
|
|
14248
14229
|
}, valueT));
|
|
14249
14230
|
} else {
|
|
14250
|
-
return
|
|
14231
|
+
return React.createElement(Tooltip, {
|
|
14251
14232
|
title: valueF
|
|
14252
|
-
},
|
|
14233
|
+
}, React.createElement("span", {
|
|
14253
14234
|
style: {
|
|
14254
14235
|
padding: '0 10px',
|
|
14255
14236
|
display: 'block',
|
|
@@ -14261,9 +14242,9 @@ var MyItemNameDiv = /*#__PURE__*/function (_React$Component3) {
|
|
|
14261
14242
|
}
|
|
14262
14243
|
} else {
|
|
14263
14244
|
if (valueF) {
|
|
14264
|
-
return
|
|
14245
|
+
return React.createElement(Tooltip, {
|
|
14265
14246
|
title: valueF
|
|
14266
|
-
},
|
|
14247
|
+
}, React.createElement("span", {
|
|
14267
14248
|
style: {
|
|
14268
14249
|
padding: '0 10px',
|
|
14269
14250
|
display: 'block',
|
|
@@ -14273,9 +14254,9 @@ var MyItemNameDiv = /*#__PURE__*/function (_React$Component3) {
|
|
|
14273
14254
|
}
|
|
14274
14255
|
}, valueF));
|
|
14275
14256
|
} else {
|
|
14276
|
-
return
|
|
14257
|
+
return React.createElement(Tooltip, {
|
|
14277
14258
|
title: valueT
|
|
14278
|
-
},
|
|
14259
|
+
}, React.createElement("span", {
|
|
14279
14260
|
style: {
|
|
14280
14261
|
padding: '0 10px',
|
|
14281
14262
|
color: '#0074ff',
|
|
@@ -14302,7 +14283,7 @@ function formatSearch(value, search) {
|
|
|
14302
14283
|
return dcoding(e);
|
|
14303
14284
|
}).join("<span class=\"kts-invoice-operate-goods-list-table-search-protrude\" >".concat(search, "</span>"));
|
|
14304
14285
|
|
|
14305
|
-
return
|
|
14286
|
+
return React.createElement("span", {
|
|
14306
14287
|
dangerouslySetInnerHTML: {
|
|
14307
14288
|
__html: __html
|
|
14308
14289
|
}
|
|
@@ -14371,7 +14352,7 @@ var useOnRow = (function () {
|
|
|
14371
14352
|
|
|
14372
14353
|
case 7:
|
|
14373
14354
|
if (!editGood) {
|
|
14374
|
-
_context2.next =
|
|
14355
|
+
_context2.next = 22;
|
|
14375
14356
|
break;
|
|
14376
14357
|
}
|
|
14377
14358
|
|
|
@@ -14391,7 +14372,19 @@ var useOnRow = (function () {
|
|
|
14391
14372
|
return controller.wait();
|
|
14392
14373
|
|
|
14393
14374
|
case 14:
|
|
14394
|
-
|
|
14375
|
+
if (!(controller.getGoodsTaxRateList && record.taxClassificationCode && !record.goodsTaxRateList)) {
|
|
14376
|
+
_context2.next = 18;
|
|
14377
|
+
break;
|
|
14378
|
+
}
|
|
14379
|
+
|
|
14380
|
+
_context2.next = 17;
|
|
14381
|
+
return controller.getGoodsTaxRateList(record.taxClassificationCode);
|
|
14382
|
+
|
|
14383
|
+
case 17:
|
|
14384
|
+
record.goodsTaxRateList = _context2.sent;
|
|
14385
|
+
|
|
14386
|
+
case 18:
|
|
14387
|
+
_context2.next = 20;
|
|
14395
14388
|
return controller.pipeline( /*#__PURE__*/function () {
|
|
14396
14389
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(s) {
|
|
14397
14390
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -14421,15 +14414,27 @@ var useOnRow = (function () {
|
|
|
14421
14414
|
};
|
|
14422
14415
|
}())();
|
|
14423
14416
|
|
|
14424
|
-
case
|
|
14425
|
-
_context2.next =
|
|
14417
|
+
case 20:
|
|
14418
|
+
_context2.next = 28;
|
|
14426
14419
|
break;
|
|
14427
14420
|
|
|
14428
|
-
case
|
|
14429
|
-
|
|
14421
|
+
case 22:
|
|
14422
|
+
if (!(controller.getGoodsTaxRateList && record.taxClassificationCode && !record.goodsTaxRateList)) {
|
|
14423
|
+
_context2.next = 26;
|
|
14424
|
+
break;
|
|
14425
|
+
}
|
|
14426
|
+
|
|
14427
|
+
_context2.next = 25;
|
|
14428
|
+
return controller.getGoodsTaxRateList(record.taxClassificationCode);
|
|
14429
|
+
|
|
14430
|
+
case 25:
|
|
14431
|
+
record.goodsTaxRateList = _context2.sent;
|
|
14432
|
+
|
|
14433
|
+
case 26:
|
|
14434
|
+
_context2.next = 28;
|
|
14430
14435
|
return controller.setEditGood(record);
|
|
14431
14436
|
|
|
14432
|
-
case
|
|
14437
|
+
case 28:
|
|
14433
14438
|
case "end":
|
|
14434
14439
|
return _context2.stop();
|
|
14435
14440
|
}
|
|
@@ -14733,7 +14738,7 @@ var useRowSelection = (function () {
|
|
|
14733
14738
|
};
|
|
14734
14739
|
}(), [controller]);
|
|
14735
14740
|
var columnTitle = React.useMemo(function () {
|
|
14736
|
-
return
|
|
14741
|
+
return React.createElement(Checkbox, {
|
|
14737
14742
|
onChange: onClickSelectAll,
|
|
14738
14743
|
indeterminate: indeterminate,
|
|
14739
14744
|
checked: isAll
|
|
@@ -14809,7 +14814,7 @@ var useRowSelection = (function () {
|
|
|
14809
14814
|
onSelect: onSelect,
|
|
14810
14815
|
selectedRowKeys: selectedRowKeys,
|
|
14811
14816
|
getCheckboxProps: function getCheckboxProps(record) {
|
|
14812
|
-
console.log('===> getCheckboxProps', record, record.level)
|
|
14817
|
+
// console.log('===> getCheckboxProps', record, record.level)
|
|
14813
14818
|
return {
|
|
14814
14819
|
disabled: record.level > 0,
|
|
14815
14820
|
style: record.level > 0 ? {
|
|
@@ -14943,16 +14948,16 @@ var useEndowCodeButton = (function () {
|
|
|
14943
14948
|
}, _callee2);
|
|
14944
14949
|
})), [controller]);
|
|
14945
14950
|
var menuItem = React.useMemo(function () {
|
|
14946
|
-
if (model === 'readOnly') return
|
|
14947
|
-
return
|
|
14951
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
14952
|
+
return React.createElement(Menu.Item, {
|
|
14948
14953
|
key: "2",
|
|
14949
14954
|
onClick: onClick,
|
|
14950
14955
|
disabled: disabled
|
|
14951
14956
|
}, "\u6279\u91CF\u8D4B\u7801");
|
|
14952
14957
|
}, [onClick, disabled, model]);
|
|
14953
14958
|
var button = React.useMemo(function () {
|
|
14954
|
-
if (model === 'readOnly') return
|
|
14955
|
-
return
|
|
14959
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
14960
|
+
return React.createElement(Button, {
|
|
14956
14961
|
onClick: onClick,
|
|
14957
14962
|
disabled: disabled
|
|
14958
14963
|
}, "\u6279\u91CF\u8D4B\u7801");
|
|
@@ -15018,19 +15023,19 @@ var useDelRowButton = (function () {
|
|
|
15018
15023
|
}())();
|
|
15019
15024
|
}, [controller]);
|
|
15020
15025
|
var menuItem = React.useMemo(function () {
|
|
15021
|
-
if (model === 'prefab') return
|
|
15022
|
-
if (model === 'readOnly') return
|
|
15023
|
-
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, {
|
|
15024
15029
|
key: "1",
|
|
15025
15030
|
onClick: onClick,
|
|
15026
15031
|
disabled: disabled
|
|
15027
15032
|
}, " \u5220\u9664\u884C ");
|
|
15028
15033
|
}, [model, onClick, disabled]);
|
|
15029
15034
|
var button = React.useMemo(function () {
|
|
15030
|
-
if (isRemRow === false) return
|
|
15031
|
-
if (model === 'prefab') return
|
|
15032
|
-
if (model === 'readOnly') return
|
|
15033
|
-
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, {
|
|
15034
15039
|
onClick: onClick,
|
|
15035
15040
|
disabled: disabled
|
|
15036
15041
|
}, "\u6279\u91CF\u5220\u9664");
|
|
@@ -15225,14 +15230,14 @@ var useAddDiscountRowButton = (function () {
|
|
|
15225
15230
|
}, _callee3);
|
|
15226
15231
|
})), [controller]);
|
|
15227
15232
|
var menuItem = React.useMemo(function () {
|
|
15228
|
-
return model === 'prefab' ?
|
|
15233
|
+
return model === 'prefab' ? React.createElement(React.Fragment, null) : isAddDiscount !== false ? React.createElement(Menu.Item, {
|
|
15229
15234
|
key: "0",
|
|
15230
15235
|
onClick: onClick,
|
|
15231
15236
|
disabled: disabled
|
|
15232
15237
|
}, "\u6DFB\u52A0\u6298\u6263\u884C") : undefined;
|
|
15233
15238
|
}, [isAddDiscount, disabled, onClick]);
|
|
15234
15239
|
var drawer = React.useMemo(function () {
|
|
15235
|
-
return
|
|
15240
|
+
return React.createElement(Drawer, {
|
|
15236
15241
|
className: "kts-invoice-operate-goods-list-add-discount-row",
|
|
15237
15242
|
width: 540,
|
|
15238
15243
|
title: "\u6DFB\u52A0\u6298\u6263\u884C",
|
|
@@ -15240,7 +15245,7 @@ var useAddDiscountRowButton = (function () {
|
|
|
15240
15245
|
destroyOnClose: true,
|
|
15241
15246
|
onClose: onClose,
|
|
15242
15247
|
visible: visible
|
|
15243
|
-
},
|
|
15248
|
+
}, React.createElement(DrawerBody, null));
|
|
15244
15249
|
}, [visible, onClose]);
|
|
15245
15250
|
return {
|
|
15246
15251
|
menuItem: menuItem,
|
|
@@ -15357,13 +15362,13 @@ var DrawerBody = decorator(Form.create())(function (props) {
|
|
|
15357
15362
|
});
|
|
15358
15363
|
});
|
|
15359
15364
|
}, 300), [form, lineAmountSum]);
|
|
15360
|
-
return
|
|
15365
|
+
return React.createElement(React.Fragment, null, React.createElement("div", {
|
|
15361
15366
|
className: "add-discount-row-body"
|
|
15362
|
-
},
|
|
15367
|
+
}, React.createElement("p", null, "\u5F53\u524D\u9009\u62E9", React.createElement(Text$3, {
|
|
15363
15368
|
type: "danger"
|
|
15364
|
-
}, 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, {
|
|
15365
15370
|
type: "danger"
|
|
15366
|
-
}, lineAmountSum.toFixed(2))),
|
|
15371
|
+
}, lineAmountSum.toFixed(2))), React.createElement(Form.Item, {
|
|
15367
15372
|
label: "\u6298\u6263\u7387\uFF1A"
|
|
15368
15373
|
}, getFieldDecorator('discount', {
|
|
15369
15374
|
rules: [{
|
|
@@ -15393,11 +15398,11 @@ var DrawerBody = decorator(Form.create())(function (props) {
|
|
|
15393
15398
|
callback();
|
|
15394
15399
|
}
|
|
15395
15400
|
}]
|
|
15396
|
-
})(
|
|
15401
|
+
})(React.createElement(Input, {
|
|
15397
15402
|
placeholder: "\u8BF7\u8F93\u5165\u5927\u4E8E0\u5C0F\u4E8E100\u7684\u6570\u5B57",
|
|
15398
15403
|
suffix: "%",
|
|
15399
15404
|
onChange: onChangeDiscount
|
|
15400
|
-
}))),
|
|
15405
|
+
}))), React.createElement(Form.Item, {
|
|
15401
15406
|
label: "\u6298\u6263\u91D1\u989D\uFF1A"
|
|
15402
15407
|
}, getFieldDecorator('discolineAmountunt', {
|
|
15403
15408
|
rules: [{
|
|
@@ -15427,19 +15432,19 @@ var DrawerBody = decorator(Form.create())(function (props) {
|
|
|
15427
15432
|
callback();
|
|
15428
15433
|
}
|
|
15429
15434
|
}]
|
|
15430
|
-
})(
|
|
15435
|
+
})(React.createElement(Input, {
|
|
15431
15436
|
placeholder: "\u8BF7\u8F93\u5165\u5927\u4E8E0\u5C0F\u4E8E\u91D1\u989D\u5408\u8BA1\u7684\u6570\u5B57",
|
|
15432
15437
|
suffix: "\xA5",
|
|
15433
15438
|
onChange: onChangeDiscolineAmountunt
|
|
15434
|
-
})))),
|
|
15439
|
+
})))), React.createElement("div", {
|
|
15435
15440
|
className: "add-discount-row-footer"
|
|
15436
|
-
},
|
|
15441
|
+
}, React.createElement(Button, {
|
|
15437
15442
|
block: true,
|
|
15438
15443
|
style: {
|
|
15439
15444
|
marginBottom: 12
|
|
15440
15445
|
},
|
|
15441
15446
|
onClick: onClose
|
|
15442
|
-
}, "\u53D6\u6D88"),
|
|
15447
|
+
}, "\u53D6\u6D88"), React.createElement(Button, {
|
|
15443
15448
|
type: "primary",
|
|
15444
15449
|
block: true,
|
|
15445
15450
|
onClick: onClickSave
|
|
@@ -15536,13 +15541,13 @@ function useMergeDetails() {
|
|
|
15536
15541
|
}];
|
|
15537
15542
|
}, [selectedGoodIndex, onClickManual, onClickAuto]);
|
|
15538
15543
|
var button = React.useMemo(function () {
|
|
15539
|
-
if (!isMergeDetails) return
|
|
15540
|
-
return
|
|
15544
|
+
if (!isMergeDetails) return React.createElement(React.Fragment, null);
|
|
15545
|
+
return React.createElement(Dropdown$1, {
|
|
15541
15546
|
menu: {
|
|
15542
15547
|
items: items
|
|
15543
15548
|
},
|
|
15544
15549
|
trigger: ['click']
|
|
15545
|
-
},
|
|
15550
|
+
}, React.createElement(Button, null, "\u5408\u5E76\u660E\u7EC6"));
|
|
15546
15551
|
}, [selectedGoodIndex.length, isMergeDetails]);
|
|
15547
15552
|
return {
|
|
15548
15553
|
/** 按钮 */
|
|
@@ -15628,8 +15633,8 @@ function useMergeDiscount() {
|
|
|
15628
15633
|
}, _callee);
|
|
15629
15634
|
})), [controller]);
|
|
15630
15635
|
var button = React.useMemo(function () {
|
|
15631
|
-
if (!isMergeDiscount) return
|
|
15632
|
-
return
|
|
15636
|
+
if (!isMergeDiscount) return React.createElement(React.Fragment, null);
|
|
15637
|
+
return React.createElement(Button, {
|
|
15633
15638
|
onClick: onClick,
|
|
15634
15639
|
disabled: goodsList.length <= 1
|
|
15635
15640
|
}, "\u5408\u5E76\u6298\u6263");
|
|
@@ -15807,8 +15812,8 @@ function useSalesDiscount() {
|
|
|
15807
15812
|
}).length <= 0;
|
|
15808
15813
|
}, [goodsList]);
|
|
15809
15814
|
var button = React.useMemo(function () {
|
|
15810
|
-
if (!isSalesDiscount) return
|
|
15811
|
-
return
|
|
15815
|
+
if (!isSalesDiscount) return React.createElement(React.Fragment, null);
|
|
15816
|
+
return React.createElement(Button, {
|
|
15812
15817
|
onClick: onClick,
|
|
15813
15818
|
disabled: disabled
|
|
15814
15819
|
}, "\u9500\u552E\u6298\u8BA9");
|
|
@@ -16011,12 +16016,12 @@ function useSalesGifts() {
|
|
|
16011
16016
|
}, [selectedGoodIndex, onClickManual, onClickAuto]);
|
|
16012
16017
|
var button = React.useMemo(function () {
|
|
16013
16018
|
if (!isSalesGifts) return;
|
|
16014
|
-
return
|
|
16019
|
+
return React.createElement(Dropdown$1, {
|
|
16015
16020
|
menu: {
|
|
16016
16021
|
items: items
|
|
16017
16022
|
},
|
|
16018
16023
|
trigger: ['click']
|
|
16019
|
-
},
|
|
16024
|
+
}, React.createElement(Button, null, "\u9500\u552E\u8D60\u54C1"));
|
|
16020
16025
|
}, [items, isSalesGifts]);
|
|
16021
16026
|
return {
|
|
16022
16027
|
/** 按钮 */
|
|
@@ -16054,7 +16059,7 @@ var GoodsList = /*#__PURE__*/function (_React$Component) {
|
|
|
16054
16059
|
_createClass(GoodsList, [{
|
|
16055
16060
|
key: "render",
|
|
16056
16061
|
value: function render() {
|
|
16057
|
-
return
|
|
16062
|
+
return React.createElement(Main, _objectSpread2({}, this.props));
|
|
16058
16063
|
}
|
|
16059
16064
|
}]);
|
|
16060
16065
|
|
|
@@ -16256,22 +16261,22 @@ var Main = decorator(Form.create())(function (props) {
|
|
|
16256
16261
|
};
|
|
16257
16262
|
}())();
|
|
16258
16263
|
}, [controller, props.isSwitchTax]);
|
|
16259
|
-
return
|
|
16264
|
+
return React.createElement("div", {
|
|
16260
16265
|
className: "kts-invoice-operate-goods-list",
|
|
16261
16266
|
onClick: function onClick(e) {
|
|
16262
16267
|
e.stopPropagation();
|
|
16263
16268
|
}
|
|
16264
|
-
},
|
|
16269
|
+
}, React.createElement("div", {
|
|
16265
16270
|
className: "kts-invoice-operate-goods-list-able"
|
|
16266
|
-
},
|
|
16271
|
+
}, React.createElement("div", {
|
|
16267
16272
|
className: "kts-invoice-operate-goods-list-able-list"
|
|
16268
|
-
},
|
|
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", {
|
|
16269
16274
|
className: "kts-invoice-operate-goods-list-able-extend"
|
|
16270
|
-
}, props.menuExpansion,
|
|
16275
|
+
}, props.menuExpansion, React.createElement(DescribeSwitch, null), React.createElement(TaxIncludedSwitch, null))), React.createElement("div", {
|
|
16271
16276
|
className: classNames('kts-invoice-operate-goods-list-table', {
|
|
16272
16277
|
'kts-invoice-operate-prefab': isprefab
|
|
16273
16278
|
})
|
|
16274
|
-
},
|
|
16279
|
+
}, React.createElement(TableVirtual, {
|
|
16275
16280
|
bordered: true,
|
|
16276
16281
|
size: "small",
|
|
16277
16282
|
rowKey: "$index",
|
|
@@ -16294,7 +16299,7 @@ var Main = decorator(Form.create())(function (props) {
|
|
|
16294
16299
|
}
|
|
16295
16300
|
};
|
|
16296
16301
|
}
|
|
16297
|
-
})),
|
|
16302
|
+
})), React.createElement("div", null, React.createElement(Statistics, null)));
|
|
16298
16303
|
});
|
|
16299
16304
|
|
|
16300
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";
|
|
@@ -16319,7 +16324,7 @@ var Buyer = /*#__PURE__*/function (_React$Component) {
|
|
|
16319
16324
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
16320
16325
|
|
|
16321
16326
|
_this.render = function () {
|
|
16322
|
-
return
|
|
16327
|
+
return React.createElement(Main$1, _objectSpread2({}, _this.props));
|
|
16323
16328
|
};
|
|
16324
16329
|
|
|
16325
16330
|
return _this;
|
|
@@ -16350,7 +16355,7 @@ var Main$1 = decorator(Form.create())(function (props) {
|
|
|
16350
16355
|
return [{
|
|
16351
16356
|
id: 'sellerName',
|
|
16352
16357
|
label: '销售方名称',
|
|
16353
|
-
node:
|
|
16358
|
+
node: React.createElement(Input, {
|
|
16354
16359
|
readOnly: model === 'prefab',
|
|
16355
16360
|
size: "small"
|
|
16356
16361
|
}),
|
|
@@ -16363,7 +16368,7 @@ var Main$1 = decorator(Form.create())(function (props) {
|
|
|
16363
16368
|
}, {
|
|
16364
16369
|
id: 'sellerNo',
|
|
16365
16370
|
label: '销售方纳税人识别号',
|
|
16366
|
-
node:
|
|
16371
|
+
node: React.createElement(Input, {
|
|
16367
16372
|
readOnly: model === 'prefab',
|
|
16368
16373
|
size: "small"
|
|
16369
16374
|
}),
|
|
@@ -16376,7 +16381,7 @@ var Main$1 = decorator(Form.create())(function (props) {
|
|
|
16376
16381
|
}, {
|
|
16377
16382
|
id: 'sellerAddress',
|
|
16378
16383
|
label: '销售方地址及电话',
|
|
16379
|
-
node:
|
|
16384
|
+
node: React.createElement(Input, {
|
|
16380
16385
|
readOnly: model === 'prefab',
|
|
16381
16386
|
size: "small"
|
|
16382
16387
|
}),
|
|
@@ -16389,7 +16394,7 @@ var Main$1 = decorator(Form.create())(function (props) {
|
|
|
16389
16394
|
}, {
|
|
16390
16395
|
id: 'sellerBank',
|
|
16391
16396
|
label: '销售方开户行及账号',
|
|
16392
|
-
node:
|
|
16397
|
+
node: React.createElement(Input, {
|
|
16393
16398
|
readOnly: model === 'prefab',
|
|
16394
16399
|
size: "small"
|
|
16395
16400
|
}),
|
|
@@ -16415,31 +16420,31 @@ var Main$1 = decorator(Form.create())(function (props) {
|
|
|
16415
16420
|
return getFieldDecorator(e.id, e.options)(e.node);
|
|
16416
16421
|
}
|
|
16417
16422
|
}, [props.formRender]);
|
|
16418
|
-
return
|
|
16423
|
+
return React.createElement(Form, null, React.createElement("div", {
|
|
16419
16424
|
className: "kts-invoice-operate-seller"
|
|
16420
|
-
},
|
|
16425
|
+
}, React.createElement("div", {
|
|
16421
16426
|
className: "kts-invoice-operate-seller-message"
|
|
16422
|
-
},
|
|
16427
|
+
}, React.createElement("div", {
|
|
16423
16428
|
className: "kts-invoice-operate-seller-title"
|
|
16424
|
-
},
|
|
16429
|
+
}, React.createElement("label", null, "\u9500\u552E\u65B9")), React.createElement(Descriptions, {
|
|
16425
16430
|
className: "kts-invoice-operate-seller-message-list",
|
|
16426
16431
|
size: "small",
|
|
16427
16432
|
column: 1,
|
|
16428
16433
|
bordered: true
|
|
16429
16434
|
}, formItem.map(function (e, i) {
|
|
16430
|
-
return
|
|
16435
|
+
return React.createElement(Descriptions.Item, {
|
|
16431
16436
|
key: i,
|
|
16432
16437
|
label: e.label
|
|
16433
|
-
},
|
|
16434
|
-
}))),
|
|
16438
|
+
}, React.createElement(Form.Item, null, createFormItem(e)));
|
|
16439
|
+
}))), React.createElement("div", {
|
|
16435
16440
|
className: "kts-invoice-operate-seller-remarks"
|
|
16436
|
-
},
|
|
16441
|
+
}, React.createElement("div", {
|
|
16437
16442
|
className: "kts-invoice-operate-seller-title"
|
|
16438
|
-
},
|
|
16443
|
+
}, React.createElement("label", null, "\u5907\u6CE8")), React.createElement("div", {
|
|
16439
16444
|
className: "kts-invoice-operate-seller-remarks-value"
|
|
16440
16445
|
}, getFieldDecorator('remarks', {
|
|
16441
16446
|
initialValue: props.defaultsellerRemarks
|
|
16442
|
-
})(
|
|
16447
|
+
})(React.createElement(TextArea, null))))));
|
|
16443
16448
|
});
|
|
16444
16449
|
|
|
16445
16450
|
var ImportBuyerButton = (function () {
|
|
@@ -16466,7 +16471,7 @@ var ImportBuyerButton = (function () {
|
|
|
16466
16471
|
};
|
|
16467
16472
|
}())();
|
|
16468
16473
|
}, [controller]);
|
|
16469
|
-
return
|
|
16474
|
+
return React.createElement(React.Fragment, null, controller.getBuyerList && React.createElement(Button, {
|
|
16470
16475
|
type: "link",
|
|
16471
16476
|
icon: "plus-circle",
|
|
16472
16477
|
onClick: onClick
|
|
@@ -16505,29 +16510,29 @@ var BuyerNameInput = (function (props) {
|
|
|
16505
16510
|
var content = React.useMemo(function () {
|
|
16506
16511
|
var _dataSource$recent;
|
|
16507
16512
|
|
|
16508
|
-
return
|
|
16513
|
+
return React.createElement("div", {
|
|
16509
16514
|
className: 'kts-invoice-operate-buyer-name-content'
|
|
16510
|
-
}, loading ?
|
|
16515
|
+
}, loading ? React.createElement("div", {
|
|
16511
16516
|
style: {
|
|
16512
16517
|
textAlign: 'center'
|
|
16513
16518
|
}
|
|
16514
|
-
},
|
|
16519
|
+
}, React.createElement(Spin, null)) : React.createElement(React.Fragment, null, React.createElement("div", {
|
|
16515
16520
|
className: 'kts-invoice-operate-buyer-name-content-block',
|
|
16516
16521
|
style: {
|
|
16517
16522
|
padding: '14px 10px'
|
|
16518
16523
|
}
|
|
16519
|
-
},
|
|
16524
|
+
}, React.createElement("label", {
|
|
16520
16525
|
style: {
|
|
16521
16526
|
marginBottom: 10
|
|
16522
16527
|
}
|
|
16523
|
-
}, "\u6700\u8FD1\u5F00\u5177"),
|
|
16528
|
+
}, "\u6700\u8FD1\u5F00\u5177"), React.createElement("ul", {
|
|
16524
16529
|
className: 'kts-invoice-operate-buyer-name-content-recently-issued'
|
|
16525
|
-
}, !dataSource.recent || dataSource.recent.length <= 0 ?
|
|
16530
|
+
}, !dataSource.recent || dataSource.recent.length <= 0 ? React.createElement(Empty, {
|
|
16526
16531
|
image: Empty.PRESENTED_IMAGE_SIMPLE
|
|
16527
16532
|
}) : (_dataSource$recent = dataSource.recent) === null || _dataSource$recent === void 0 ? void 0 : _dataSource$recent.map(function (e, i) {
|
|
16528
16533
|
var _dataSource$recent$le, _dataSource$recent2;
|
|
16529
16534
|
|
|
16530
|
-
return
|
|
16535
|
+
return React.createElement("li", {
|
|
16531
16536
|
key: i,
|
|
16532
16537
|
onClick: function onClick() {
|
|
16533
16538
|
onClickItem(e);
|
|
@@ -16535,37 +16540,37 @@ var BuyerNameInput = (function (props) {
|
|
|
16535
16540
|
style: {
|
|
16536
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)
|
|
16537
16542
|
}
|
|
16538
|
-
},
|
|
16539
|
-
}))),
|
|
16543
|
+
}, React.createElement(MyTag, null, e.buyerName));
|
|
16544
|
+
}))), React.createElement(Divider, {
|
|
16540
16545
|
style: {
|
|
16541
16546
|
margin: "0 6px"
|
|
16542
16547
|
}
|
|
16543
|
-
}),
|
|
16548
|
+
}), React.createElement("div", {
|
|
16544
16549
|
className: 'kts-invoice-operate-buyer-name-content-block',
|
|
16545
16550
|
style: {
|
|
16546
16551
|
padding: '14px 10px 4px'
|
|
16547
16552
|
}
|
|
16548
|
-
},
|
|
16553
|
+
}, React.createElement("label", {
|
|
16549
16554
|
style: {
|
|
16550
16555
|
padding: '0 10px'
|
|
16551
16556
|
}
|
|
16552
|
-
}, "\u9009\u62E9\u516C\u53F8"),
|
|
16557
|
+
}, "\u9009\u62E9\u516C\u53F8"), React.createElement("div", {
|
|
16553
16558
|
style: {
|
|
16554
16559
|
maxHeight: 200,
|
|
16555
16560
|
overflow: "auto"
|
|
16556
16561
|
}
|
|
16557
|
-
}, !dataSource.list || dataSource.list.length <= 0 ?
|
|
16562
|
+
}, !dataSource.list || dataSource.list.length <= 0 ? React.createElement(Empty, {
|
|
16558
16563
|
image: Empty.PRESENTED_IMAGE_SIMPLE
|
|
16559
16564
|
}) : dataSource.list.map(function (e, i) {
|
|
16560
|
-
return
|
|
16565
|
+
return React.createElement("ul", {
|
|
16561
16566
|
key: i,
|
|
16562
16567
|
onClick: function onClick() {
|
|
16563
16568
|
onClickItem(e);
|
|
16564
16569
|
},
|
|
16565
16570
|
className: 'kts-invoice-operate-buyer-name-content-select-company'
|
|
16566
|
-
},
|
|
16571
|
+
}, React.createElement("li", {
|
|
16567
16572
|
title: e.buyerName
|
|
16568
|
-
}, e.buyerName),
|
|
16573
|
+
}, e.buyerName), React.createElement("li", {
|
|
16569
16574
|
title: e.buyerNo
|
|
16570
16575
|
}, e.buyerNo));
|
|
16571
16576
|
})))));
|
|
@@ -16606,7 +16611,7 @@ var BuyerNameInput = (function (props) {
|
|
|
16606
16611
|
}, [visible, props.value]);
|
|
16607
16612
|
|
|
16608
16613
|
if (model === 'prefab' || !autoContainer) {
|
|
16609
|
-
return
|
|
16614
|
+
return React.createElement(Input, {
|
|
16610
16615
|
size: "small",
|
|
16611
16616
|
autoComplete: "off",
|
|
16612
16617
|
value: props.value,
|
|
@@ -16617,14 +16622,14 @@ var BuyerNameInput = (function (props) {
|
|
|
16617
16622
|
});
|
|
16618
16623
|
}
|
|
16619
16624
|
|
|
16620
|
-
return
|
|
16625
|
+
return React.createElement(Popover$1, {
|
|
16621
16626
|
onVisibleChange: setVisible,
|
|
16622
16627
|
overlayClassName: 'kts-invoice-operate-buyer-name-popover',
|
|
16623
16628
|
placement: "bottomLeft",
|
|
16624
16629
|
trigger: "click",
|
|
16625
16630
|
visible: visible,
|
|
16626
16631
|
content: content
|
|
16627
|
-
},
|
|
16632
|
+
}, React.createElement(Input, {
|
|
16628
16633
|
size: "small",
|
|
16629
16634
|
autoComplete: "off",
|
|
16630
16635
|
value: props.value,
|
|
@@ -16702,7 +16707,7 @@ function useDataSource() {
|
|
|
16702
16707
|
}
|
|
16703
16708
|
|
|
16704
16709
|
function MyTag(props) {
|
|
16705
|
-
return
|
|
16710
|
+
return React.createElement("span", {
|
|
16706
16711
|
className: 'kts-invoice-operate-buyer-name-content-tag',
|
|
16707
16712
|
title: props.children
|
|
16708
16713
|
}, props.children);
|
|
@@ -16738,7 +16743,7 @@ var Buyer$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
16738
16743
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
16739
16744
|
|
|
16740
16745
|
_this.render = function () {
|
|
16741
|
-
return
|
|
16746
|
+
return React.createElement(Main$2, _objectSpread2({}, _this.props));
|
|
16742
16747
|
};
|
|
16743
16748
|
|
|
16744
16749
|
return _this;
|
|
@@ -16769,7 +16774,7 @@ var Main$2 = decorator(Form.create())(function (props) {
|
|
|
16769
16774
|
return [{
|
|
16770
16775
|
id: 'buyerName',
|
|
16771
16776
|
label: '购买方名称',
|
|
16772
|
-
node:
|
|
16777
|
+
node: React.createElement(Input, {
|
|
16773
16778
|
size: "small",
|
|
16774
16779
|
autoComplete: "off",
|
|
16775
16780
|
readOnly: model === 'prefab'
|
|
@@ -16783,7 +16788,7 @@ var Main$2 = decorator(Form.create())(function (props) {
|
|
|
16783
16788
|
}, {
|
|
16784
16789
|
id: 'buyerNo',
|
|
16785
16790
|
label: '购买方纳税人识别号',
|
|
16786
|
-
node:
|
|
16791
|
+
node: React.createElement(Input, {
|
|
16787
16792
|
size: "small",
|
|
16788
16793
|
autoComplete: "off",
|
|
16789
16794
|
readOnly: model === 'prefab'
|
|
@@ -16797,7 +16802,7 @@ var Main$2 = decorator(Form.create())(function (props) {
|
|
|
16797
16802
|
}, {
|
|
16798
16803
|
id: 'buyerAddress',
|
|
16799
16804
|
label: '购买方地址及电话',
|
|
16800
|
-
node:
|
|
16805
|
+
node: React.createElement(Input, {
|
|
16801
16806
|
size: "small",
|
|
16802
16807
|
autoComplete: "off",
|
|
16803
16808
|
readOnly: model === 'prefab'
|
|
@@ -16811,7 +16816,7 @@ var Main$2 = decorator(Form.create())(function (props) {
|
|
|
16811
16816
|
}, {
|
|
16812
16817
|
id: 'buyerBank',
|
|
16813
16818
|
label: '购买方开户行及账号',
|
|
16814
|
-
node:
|
|
16819
|
+
node: React.createElement(Input, {
|
|
16815
16820
|
size: "small",
|
|
16816
16821
|
autoComplete: "off",
|
|
16817
16822
|
readOnly: model === 'prefab'
|
|
@@ -16833,7 +16838,7 @@ var Main$2 = decorator(Form.create())(function (props) {
|
|
|
16833
16838
|
if (e.options.rules.some(function (e) {
|
|
16834
16839
|
return e.required;
|
|
16835
16840
|
})) {
|
|
16836
|
-
return
|
|
16841
|
+
return React.createElement(React.Fragment, null, React.createElement(Text$4, {
|
|
16837
16842
|
type: "danger"
|
|
16838
16843
|
}, "*"), e.label);
|
|
16839
16844
|
} else {
|
|
@@ -16843,29 +16848,29 @@ var Main$2 = decorator(Form.create())(function (props) {
|
|
|
16843
16848
|
return e.label;
|
|
16844
16849
|
}
|
|
16845
16850
|
}, []);
|
|
16846
|
-
return
|
|
16851
|
+
return React.createElement(Form, null, React.createElement("div", {
|
|
16847
16852
|
className: "kts-invoice-operate-buyer"
|
|
16848
|
-
},
|
|
16853
|
+
}, React.createElement("div", {
|
|
16849
16854
|
className: "kts-invoice-operate-buyer-message"
|
|
16850
|
-
},
|
|
16855
|
+
}, React.createElement("div", {
|
|
16851
16856
|
className: "kts-invoice-operate-buyer-title"
|
|
16852
|
-
},
|
|
16857
|
+
}, React.createElement("label", null, "\u8D2D\u4E70\u65B9")), React.createElement("div", {
|
|
16853
16858
|
className: "kts-invoice-operate-buyer-message-Import"
|
|
16854
|
-
}, model !== 'prefab' &&
|
|
16859
|
+
}, model !== 'prefab' && React.createElement(ImportBuyerButton, null)), React.createElement(Descriptions, {
|
|
16855
16860
|
className: "kts-invoice-operate-buyer-message-list",
|
|
16856
16861
|
size: "small",
|
|
16857
16862
|
column: 1,
|
|
16858
16863
|
bordered: true
|
|
16859
16864
|
}, formItem.map(function (item, i) {
|
|
16860
|
-
return
|
|
16865
|
+
return React.createElement(Descriptions.Item, {
|
|
16861
16866
|
key: i,
|
|
16862
16867
|
label: getlabel(item)
|
|
16863
|
-
},
|
|
16864
|
-
}))),
|
|
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", {
|
|
16865
16870
|
className: "kts-invoice-operate-buyer-password"
|
|
16866
|
-
},
|
|
16871
|
+
}, React.createElement("div", {
|
|
16867
16872
|
className: "kts-invoice-operate-buyer-title"
|
|
16868
|
-
},
|
|
16873
|
+
}, React.createElement("label", null, "\u5BC6\u7801\u533A")), React.createElement("div", null))));
|
|
16869
16874
|
});
|
|
16870
16875
|
|
|
16871
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";
|
|
@@ -16882,21 +16887,21 @@ var Sign = decorator(Form.create())(function (props) {
|
|
|
16882
16887
|
}, []); // 注册 form
|
|
16883
16888
|
|
|
16884
16889
|
controller.useForm('sign', form);
|
|
16885
|
-
return
|
|
16890
|
+
return React.createElement("div", {
|
|
16886
16891
|
className: "kts-invoice-operate-sign"
|
|
16887
|
-
},
|
|
16892
|
+
}, React.createElement(Form, _objectSpread2({}, formItemLayout), React.createElement("div", null, React.createElement(Form.Item, {
|
|
16888
16893
|
label: "\u6536\u6B3E\u4EBA"
|
|
16889
16894
|
}, getFieldDecorator('payee', {
|
|
16890
16895
|
initialValue: props.defaultPayee
|
|
16891
|
-
})(
|
|
16896
|
+
})(React.createElement(Input, {
|
|
16892
16897
|
size: "small"
|
|
16893
|
-
})))),
|
|
16898
|
+
})))), React.createElement("div", null, React.createElement(Form.Item, {
|
|
16894
16899
|
label: "\u590D\u6838\u4EBA"
|
|
16895
16900
|
}, getFieldDecorator('reviewer', {
|
|
16896
16901
|
initialValue: props.defaultReviewer
|
|
16897
|
-
})(
|
|
16902
|
+
})(React.createElement(Input, {
|
|
16898
16903
|
size: "small"
|
|
16899
|
-
})))),
|
|
16904
|
+
})))), React.createElement("div", null, React.createElement(Form.Item, {
|
|
16900
16905
|
label: "\u5F00\u7968\u4EBA"
|
|
16901
16906
|
}, getFieldDecorator('issuer', {
|
|
16902
16907
|
initialValue: props.defaultIssuer,
|
|
@@ -16904,7 +16909,7 @@ var Sign = decorator(Form.create())(function (props) {
|
|
|
16904
16909
|
required: true,
|
|
16905
16910
|
message: '请输入开票人'
|
|
16906
16911
|
}]
|
|
16907
|
-
})(
|
|
16912
|
+
})(React.createElement(Input, {
|
|
16908
16913
|
size: "small"
|
|
16909
16914
|
}))))));
|
|
16910
16915
|
});
|
|
@@ -16933,21 +16938,21 @@ var InvoiceHeaderDigtal = decorator(Form.create())(function (props) {
|
|
|
16933
16938
|
return '电子发票(增值税专用发票)';
|
|
16934
16939
|
}, [props.title]);
|
|
16935
16940
|
controller.useForm('invoiceHeader', form);
|
|
16936
|
-
return
|
|
16941
|
+
return React.createElement("div", {
|
|
16937
16942
|
className: "kts-invoice-operate-invoice-digtal-header"
|
|
16938
|
-
},
|
|
16943
|
+
}, React.createElement("div", {
|
|
16939
16944
|
className: "digtal-header-title"
|
|
16940
16945
|
}, title), form.getFieldDecorator('tag', {
|
|
16941
16946
|
initialValue: props.defaultTag
|
|
16942
|
-
})(
|
|
16947
|
+
})(React.createElement(Tag, null)), React.createElement("div", {
|
|
16943
16948
|
className: "digtal-header-fields"
|
|
16944
16949
|
}, form.getFieldDecorator('no', {
|
|
16945
16950
|
initialValue: props.defaultNo
|
|
16946
|
-
})(
|
|
16951
|
+
})(React.createElement(Field, {
|
|
16947
16952
|
title: "\u53D1\u7968\u53F7\u7801\uFF1A"
|
|
16948
16953
|
})), form.getFieldDecorator('invoicingDate', {
|
|
16949
16954
|
initialValue: props.defaultInvoicingDate
|
|
16950
|
-
})(
|
|
16955
|
+
})(React.createElement(Field, {
|
|
16951
16956
|
title: "\u5F00\u7968\u65E5\u671F\uFF1A"
|
|
16952
16957
|
}))));
|
|
16953
16958
|
});
|
|
@@ -16972,15 +16977,15 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
16972
16977
|
value = _this$props.value;
|
|
16973
16978
|
|
|
16974
16979
|
if (value) {
|
|
16975
|
-
return
|
|
16980
|
+
return React.createElement("div", {
|
|
16976
16981
|
className: "digtal-header-field"
|
|
16977
|
-
},
|
|
16982
|
+
}, React.createElement("div", {
|
|
16978
16983
|
className: "digtal-header-field-title"
|
|
16979
|
-
}, title),
|
|
16984
|
+
}, title), React.createElement("div", {
|
|
16980
16985
|
className: "digtal-header-field-value"
|
|
16981
16986
|
}, value));
|
|
16982
16987
|
} else {
|
|
16983
|
-
return
|
|
16988
|
+
return React.createElement(React.Fragment, null);
|
|
16984
16989
|
}
|
|
16985
16990
|
}
|
|
16986
16991
|
}]);
|
|
@@ -17002,51 +17007,51 @@ var Tag = /*#__PURE__*/function (_React$Component2) {
|
|
|
17002
17007
|
_createClass(Tag, [{
|
|
17003
17008
|
key: "render",
|
|
17004
17009
|
value: function render() {
|
|
17005
|
-
return this.props.value ?
|
|
17010
|
+
return this.props.value ? React.createElement("div", {
|
|
17006
17011
|
className: "digtal-header-tag"
|
|
17007
|
-
}, this.props.value) :
|
|
17012
|
+
}, this.props.value) : React.createElement(React.Fragment, null);
|
|
17008
17013
|
}
|
|
17009
17014
|
}]);
|
|
17010
17015
|
|
|
17011
17016
|
return Tag;
|
|
17012
17017
|
}(React.Component);
|
|
17013
17018
|
|
|
17014
|
-
var _path$
|
|
17019
|
+
var _path$4;
|
|
17015
17020
|
|
|
17016
|
-
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); }
|
|
17017
17022
|
|
|
17018
17023
|
function SvgArrowUp(props) {
|
|
17019
|
-
return /*#__PURE__*/createElement("svg", _extends$
|
|
17024
|
+
return /*#__PURE__*/createElement("svg", _extends$4({
|
|
17020
17025
|
xmlns: "http://www.w3.org/2000/svg",
|
|
17021
17026
|
width: 13,
|
|
17022
17027
|
height: 13,
|
|
17023
17028
|
fill: "none"
|
|
17024
|
-
}, props), _path$
|
|
17029
|
+
}, props), _path$4 || (_path$4 = /*#__PURE__*/createElement("path", {
|
|
17025
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"
|
|
17026
17031
|
})));
|
|
17027
17032
|
}
|
|
17028
17033
|
|
|
17029
|
-
var _path$
|
|
17034
|
+
var _path$5;
|
|
17030
17035
|
|
|
17031
|
-
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); }
|
|
17032
17037
|
|
|
17033
17038
|
function SvgArrowDown(props) {
|
|
17034
|
-
return /*#__PURE__*/createElement("svg", _extends$
|
|
17039
|
+
return /*#__PURE__*/createElement("svg", _extends$5({
|
|
17035
17040
|
xmlns: "http://www.w3.org/2000/svg",
|
|
17036
17041
|
width: 12,
|
|
17037
17042
|
height: 13,
|
|
17038
17043
|
fill: "none"
|
|
17039
|
-
}, props), _path$
|
|
17044
|
+
}, props), _path$5 || (_path$5 = /*#__PURE__*/createElement("path", {
|
|
17040
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"
|
|
17041
17046
|
})));
|
|
17042
17047
|
}
|
|
17043
17048
|
|
|
17044
17049
|
var _g, _defs$2;
|
|
17045
17050
|
|
|
17046
|
-
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); }
|
|
17047
17052
|
|
|
17048
17053
|
function SvgPlus(props) {
|
|
17049
|
-
return /*#__PURE__*/createElement("svg", _extends$
|
|
17054
|
+
return /*#__PURE__*/createElement("svg", _extends$6({
|
|
17050
17055
|
xmlns: "http://www.w3.org/2000/svg",
|
|
17051
17056
|
width: 16,
|
|
17052
17057
|
height: 15,
|
|
@@ -17184,59 +17189,59 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
17184
17189
|
React.useEffect(function () {
|
|
17185
17190
|
setExpand(typeof props.isExpand === 'boolean' ? props.isExpand : true);
|
|
17186
17191
|
}, [props.isExpand]);
|
|
17187
|
-
return
|
|
17192
|
+
return React.createElement("div", {
|
|
17188
17193
|
className: classNames("kts-invoice-operate-invoice-digtal-stakeholder", {
|
|
17189
17194
|
readOnly: readOnly
|
|
17190
17195
|
})
|
|
17191
|
-
},
|
|
17192
|
-
return
|
|
17193
|
-
}), !readOnly &&
|
|
17196
|
+
}, React.createElement("div", null, '购买方信息'.split('').map(function (e) {
|
|
17197
|
+
return React.createElement("span", null, e);
|
|
17198
|
+
}), !readOnly && React.createElement(Icon, {
|
|
17194
17199
|
className: "digtal-stakeholder-expand-button",
|
|
17195
17200
|
component: isExpand ? SvgArrowUp : SvgArrowDown,
|
|
17196
17201
|
onClick: onExpand
|
|
17197
|
-
})),
|
|
17202
|
+
})), React.createElement("div", null, React.createElement("div", {
|
|
17198
17203
|
style: {
|
|
17199
17204
|
marginTop: 20
|
|
17200
17205
|
},
|
|
17201
17206
|
className: 'natural-person-flag'
|
|
17202
|
-
}, props.isNaturalPerson === true &&
|
|
17207
|
+
}, props.isNaturalPerson === true && React.createElement(Form.Item, {
|
|
17203
17208
|
colon: false
|
|
17204
|
-
}, getFieldDecorator('naturalPersonFlag', {})(
|
|
17209
|
+
}, getFieldDecorator('naturalPersonFlag', {})(React.createElement(NaturalPersonFlag, {
|
|
17205
17210
|
readOnly: isReadOnly('naturalPersonFlag')
|
|
17206
|
-
})))),
|
|
17211
|
+
})))), React.createElement(Form, {
|
|
17207
17212
|
className: "digtal-stakeholder-form"
|
|
17208
|
-
},
|
|
17213
|
+
}, React.createElement(Row, {
|
|
17209
17214
|
gutter: [16, 0]
|
|
17210
|
-
},
|
|
17215
|
+
}, React.createElement(Col, {
|
|
17211
17216
|
span: 24
|
|
17212
|
-
},
|
|
17217
|
+
}, React.createElement(Form.Item, {
|
|
17213
17218
|
label: "\u540D\u79F0",
|
|
17214
17219
|
colon: false
|
|
17215
17220
|
}, getFieldDecorator('buyerName', {
|
|
17216
17221
|
rules: getRules('buyerName', RULES.companyName('购买方名称'))
|
|
17217
|
-
})(
|
|
17222
|
+
})(React.createElement(BuyerNameInput$1, {
|
|
17218
17223
|
myform: form,
|
|
17219
17224
|
fieldName: 'buyerName',
|
|
17220
17225
|
readOnly: isReadOnly('buyerName'),
|
|
17221
17226
|
placeholder: "\u8BF7\u8F93\u5165\u540D\u79F0",
|
|
17222
17227
|
autoComplete: "off",
|
|
17223
|
-
suffix: isShowImportButton === true &&
|
|
17228
|
+
suffix: isShowImportButton === true && React.createElement(Button$1, {
|
|
17224
17229
|
type: 'link',
|
|
17225
17230
|
style: {
|
|
17226
17231
|
padding: 0,
|
|
17227
17232
|
width: 20,
|
|
17228
17233
|
height: '100%'
|
|
17229
17234
|
},
|
|
17230
|
-
icon:
|
|
17235
|
+
icon: React.createElement(Icon, {
|
|
17231
17236
|
component: SvgPlus
|
|
17232
17237
|
}),
|
|
17233
17238
|
onClick: function onClick() {
|
|
17234
17239
|
onClickImportButton && onClickImportButton(controller);
|
|
17235
17240
|
}
|
|
17236
17241
|
})
|
|
17237
|
-
})))),
|
|
17242
|
+
})))), React.createElement(Col, {
|
|
17238
17243
|
span: 24
|
|
17239
|
-
},
|
|
17244
|
+
}, React.createElement(Form.Item, {
|
|
17240
17245
|
label: "\u7EDF\u4E00\u793E\u4F1A\u4FE1\u7528\u4EE3\u7801/\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7",
|
|
17241
17246
|
colon: false
|
|
17242
17247
|
}, getFieldDecorator('buyerTaxId', {
|
|
@@ -17244,18 +17249,18 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
17244
17249
|
required: !isVatNormal,
|
|
17245
17250
|
message: '购买方纳税人识别号必填'
|
|
17246
17251
|
}].concat(_toConsumableArray(RULES.taxId('购买方纳税人识别号'))))
|
|
17247
|
-
})(
|
|
17252
|
+
})(React.createElement(BuyerNameInput$1, {
|
|
17248
17253
|
myform: form,
|
|
17249
17254
|
fieldName: 'buyerTaxId',
|
|
17250
17255
|
readOnly: isReadOnly('buyerTaxId'),
|
|
17251
17256
|
placeholder: "\u8BF7\u8F93\u5165\u7EDF\u4E00\u793E\u4F1A\u4FE1\u7528\u4EE3\u7801/\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7",
|
|
17252
17257
|
autoComplete: "off"
|
|
17253
|
-
})))),
|
|
17258
|
+
})))), React.createElement(Col, {
|
|
17254
17259
|
span: 14,
|
|
17255
17260
|
style: {
|
|
17256
17261
|
display: isExpand ? undefined : 'none'
|
|
17257
17262
|
}
|
|
17258
|
-
},
|
|
17263
|
+
}, React.createElement(Form.Item, {
|
|
17259
17264
|
label: "\u8D2D\u4E70\u65B9\u5730\u5740",
|
|
17260
17265
|
colon: false
|
|
17261
17266
|
}, getFieldDecorator('buyerAddress', {
|
|
@@ -17263,90 +17268,90 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
17263
17268
|
max: 100,
|
|
17264
17269
|
message: '购买方地址内容超长'
|
|
17265
17270
|
}])
|
|
17266
|
-
})(
|
|
17271
|
+
})(React.createElement(MyInput$1, {
|
|
17267
17272
|
readOnly: isReadOnly('buyerAddress'),
|
|
17268
17273
|
placeholder: "\u8BF7\u8F93\u5165\u8D2D\u4E70\u65B9\u5730\u5740",
|
|
17269
17274
|
autoComplete: "off"
|
|
17270
|
-
})))),
|
|
17275
|
+
})))), React.createElement(Col, {
|
|
17271
17276
|
span: 10,
|
|
17272
17277
|
style: {
|
|
17273
17278
|
display: isExpand ? undefined : 'none'
|
|
17274
17279
|
}
|
|
17275
|
-
},
|
|
17280
|
+
}, React.createElement(Form.Item, {
|
|
17276
17281
|
label: "\u7535\u8BDD",
|
|
17277
17282
|
colon: false,
|
|
17278
17283
|
className: 'telephone'
|
|
17279
17284
|
}, getFieldDecorator('buyerPhone', {
|
|
17280
17285
|
rules: getRules('buyerPhone', RULES.buyerTelPhone('购买方电话'))
|
|
17281
|
-
})(
|
|
17286
|
+
})(React.createElement(MyInput$1, {
|
|
17282
17287
|
readOnly: isReadOnly('buyerPhone'),
|
|
17283
17288
|
placeholder: "\u8BF7\u8F93\u5165\u7535\u8BDD",
|
|
17284
17289
|
autoComplete: "off"
|
|
17285
|
-
})))),
|
|
17290
|
+
})))), React.createElement(Col, {
|
|
17286
17291
|
span: 14,
|
|
17287
17292
|
style: {
|
|
17288
17293
|
display: isExpand ? undefined : 'none'
|
|
17289
17294
|
}
|
|
17290
|
-
},
|
|
17295
|
+
}, React.createElement(Form.Item, {
|
|
17291
17296
|
label: "\u8D2D\u4E70\u65B9\u5F00\u6237\u94F6\u884C",
|
|
17292
17297
|
colon: false
|
|
17293
17298
|
}, getFieldDecorator('buyerBank', {
|
|
17294
17299
|
rules: getRules('buyerBank', RULES.bankName('购买方开户银行'))
|
|
17295
|
-
})(
|
|
17300
|
+
})(React.createElement(MyInput$1, {
|
|
17296
17301
|
readOnly: isReadOnly('buyerBank'),
|
|
17297
17302
|
placeholder: "\u8BF7\u8F93\u5165\u8D2D\u4E70\u65B9\u5F00\u6237\u94F6\u884C",
|
|
17298
17303
|
autoComplete: "off"
|
|
17299
|
-
})))),
|
|
17304
|
+
})))), React.createElement(Col, {
|
|
17300
17305
|
span: 10,
|
|
17301
17306
|
style: {
|
|
17302
17307
|
display: isExpand ? undefined : 'none'
|
|
17303
17308
|
}
|
|
17304
|
-
},
|
|
17309
|
+
}, React.createElement(Form.Item, {
|
|
17305
17310
|
label: "\u94F6\u884C\u8D26\u53F7",
|
|
17306
17311
|
colon: false
|
|
17307
17312
|
}, getFieldDecorator('buyerAccount', {
|
|
17308
17313
|
rules: getRules('buyerAccount', RULES.bankAccount('购买方银行账号'))
|
|
17309
|
-
})(
|
|
17314
|
+
})(React.createElement(MyInput$1, {
|
|
17310
17315
|
readOnly: isReadOnly('buyerAccount'),
|
|
17311
17316
|
placeholder: "\u8BF7\u8F93\u5165\u94F6\u884C\u8D26\u53F7",
|
|
17312
17317
|
autoComplete: "off"
|
|
17313
|
-
}))))))),
|
|
17314
|
-
return
|
|
17315
|
-
}), !readOnly &&
|
|
17318
|
+
}))))))), React.createElement("div", null, '销售方信息'.split('').map(function (e) {
|
|
17319
|
+
return React.createElement("span", null, e);
|
|
17320
|
+
}), !readOnly && React.createElement(Icon, {
|
|
17316
17321
|
className: "digtal-stakeholder-expand-button",
|
|
17317
17322
|
component: isExpand ? SvgArrowUp : SvgArrowDown,
|
|
17318
17323
|
onClick: onExpand
|
|
17319
|
-
})),
|
|
17324
|
+
})), React.createElement("div", null, !readOnly && props.lineCredit && React.createElement("div", {
|
|
17320
17325
|
style: {
|
|
17321
17326
|
marginTop: 20
|
|
17322
17327
|
}
|
|
17323
|
-
},
|
|
17328
|
+
}, React.createElement(Tooltip$1, {
|
|
17324
17329
|
trigger: "click",
|
|
17325
17330
|
title: props.lineCredit
|
|
17326
|
-
},
|
|
17331
|
+
}, React.createElement(Button$1, {
|
|
17327
17332
|
type: "link",
|
|
17328
17333
|
style: {
|
|
17329
17334
|
padding: "0px 8px"
|
|
17330
17335
|
}
|
|
17331
|
-
}, "\u67E5\u770B\u5F53\u524D\u53EF\u7528\u6388\u4FE1\u989D\u5EA6"))),
|
|
17336
|
+
}, "\u67E5\u770B\u5F53\u524D\u53EF\u7528\u6388\u4FE1\u989D\u5EA6"))), React.createElement(Form, {
|
|
17332
17337
|
className: "digtal-stakeholder-form"
|
|
17333
|
-
},
|
|
17338
|
+
}, React.createElement(Row, {
|
|
17334
17339
|
gutter: [16, 0]
|
|
17335
|
-
},
|
|
17340
|
+
}, React.createElement(Col, {
|
|
17336
17341
|
span: 24
|
|
17337
|
-
},
|
|
17342
|
+
}, React.createElement(Form.Item, {
|
|
17338
17343
|
label: "\u540D\u79F0",
|
|
17339
17344
|
colon: false
|
|
17340
17345
|
}, getFieldDecorator('supplierName', {
|
|
17341
17346
|
rules: getRules('supplierName', RULES.companyName('销售方名称')),
|
|
17342
17347
|
getValueFromEvent: formatCompanyName
|
|
17343
|
-
})(
|
|
17348
|
+
})(React.createElement(MyInput$1, {
|
|
17344
17349
|
readOnly: isReadOnly('supplierName'),
|
|
17345
17350
|
placeholder: "\u8BF7\u8F93\u5165\u540D\u79F0",
|
|
17346
17351
|
autoComplete: "off"
|
|
17347
|
-
})))),
|
|
17352
|
+
})))), React.createElement(Col, {
|
|
17348
17353
|
span: 24
|
|
17349
|
-
},
|
|
17354
|
+
}, React.createElement(Form.Item, {
|
|
17350
17355
|
label: "\u7EDF\u4E00\u793E\u4F1A\u4FE1\u7528\u4EE3\u7801/\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7",
|
|
17351
17356
|
colon: false
|
|
17352
17357
|
}, getFieldDecorator('supplierTaxId', {
|
|
@@ -17354,16 +17359,16 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
17354
17359
|
required: true,
|
|
17355
17360
|
message: '销售方纳税人识别号必填'
|
|
17356
17361
|
}].concat(_toConsumableArray(RULES.taxId('销售方纳税人识别号'))))
|
|
17357
|
-
})(
|
|
17362
|
+
})(React.createElement(MyInput$1, {
|
|
17358
17363
|
readOnly: isReadOnly('supplierTaxId'),
|
|
17359
17364
|
placeholder: "\u8BF7\u8F93\u5165\u7EDF\u4E00\u793E\u4F1A\u4FE1\u7528\u4EE3\u7801/\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7",
|
|
17360
17365
|
autoComplete: "off"
|
|
17361
|
-
})))),
|
|
17366
|
+
})))), React.createElement(Col, {
|
|
17362
17367
|
span: 12,
|
|
17363
17368
|
style: {
|
|
17364
17369
|
display: isExpand ? undefined : 'none'
|
|
17365
17370
|
}
|
|
17366
|
-
},
|
|
17371
|
+
}, React.createElement(Form.Item, {
|
|
17367
17372
|
label: "\u9500\u552E\u65B9\u5730\u5740",
|
|
17368
17373
|
colon: false
|
|
17369
17374
|
}, getFieldDecorator('sellerAddress', {
|
|
@@ -17371,50 +17376,50 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
17371
17376
|
max: 300,
|
|
17372
17377
|
message: '销售方地址内容超长'
|
|
17373
17378
|
}])
|
|
17374
|
-
})(
|
|
17379
|
+
})(React.createElement(MyInput$1, {
|
|
17375
17380
|
readOnly: isReadOnly('sellerAddress'),
|
|
17376
17381
|
placeholder: "\u8BF7\u8F93\u5165\u9500\u552E\u65B9\u5730\u5740",
|
|
17377
17382
|
autoComplete: "off"
|
|
17378
|
-
})))),
|
|
17383
|
+
})))), React.createElement(Col, {
|
|
17379
17384
|
span: 12,
|
|
17380
17385
|
style: {
|
|
17381
17386
|
display: isExpand ? undefined : 'none'
|
|
17382
17387
|
}
|
|
17383
|
-
},
|
|
17388
|
+
}, React.createElement(Form.Item, {
|
|
17384
17389
|
label: "\u7535\u8BDD",
|
|
17385
17390
|
colon: false,
|
|
17386
17391
|
className: 'telephone'
|
|
17387
17392
|
}, getFieldDecorator('sellerPhone', {
|
|
17388
17393
|
rules: getRules('sellerPhone', RULES.sellerTelPhone('销售方电话'))
|
|
17389
|
-
})(
|
|
17394
|
+
})(React.createElement(MyInput$1, {
|
|
17390
17395
|
readOnly: isReadOnly('sellerPhone'),
|
|
17391
17396
|
placeholder: "\u8BF7\u8F93\u5165\u7535\u8BDD",
|
|
17392
17397
|
autoComplete: "off"
|
|
17393
|
-
})))),
|
|
17398
|
+
})))), React.createElement(Col, {
|
|
17394
17399
|
span: 12,
|
|
17395
17400
|
style: {
|
|
17396
17401
|
display: isExpand ? undefined : 'none'
|
|
17397
17402
|
}
|
|
17398
|
-
},
|
|
17403
|
+
}, React.createElement(Form.Item, {
|
|
17399
17404
|
label: "\u9500\u552E\u65B9\u5F00\u6237\u94F6\u884C",
|
|
17400
17405
|
colon: false
|
|
17401
17406
|
}, getFieldDecorator('sellerBank', {
|
|
17402
17407
|
rules: getRules('sellerBank', RULES.bankName('销售方开户银行'))
|
|
17403
|
-
})(
|
|
17408
|
+
})(React.createElement(MyInput$1, {
|
|
17404
17409
|
readOnly: isReadOnly('sellerBank'),
|
|
17405
17410
|
placeholder: "\u8BF7\u8F93\u5165\u9500\u552E\u65B9\u5F00\u6237\u94F6\u884C",
|
|
17406
17411
|
autoComplete: "off"
|
|
17407
|
-
})))),
|
|
17412
|
+
})))), React.createElement(Col, {
|
|
17408
17413
|
span: 12,
|
|
17409
17414
|
style: {
|
|
17410
17415
|
display: isExpand ? undefined : 'none'
|
|
17411
17416
|
}
|
|
17412
|
-
},
|
|
17417
|
+
}, React.createElement(Form.Item, {
|
|
17413
17418
|
label: "\u94F6\u884C\u8D26\u53F7",
|
|
17414
17419
|
colon: false
|
|
17415
17420
|
}, getFieldDecorator('sellerAccount', {
|
|
17416
17421
|
rules: getRules('sellerAccount', RULES.bankAccount('销售方银行账号'))
|
|
17417
|
-
})(
|
|
17422
|
+
})(React.createElement(MyInput$1, {
|
|
17418
17423
|
readOnly: isReadOnly('sellerAccount'),
|
|
17419
17424
|
placeholder: "\u8BF7\u8F93\u5165\u94F6\u884C\u8D26\u53F7",
|
|
17420
17425
|
autoComplete: "off"
|
|
@@ -17435,7 +17440,7 @@ function NaturalPersonFlag(props) {
|
|
|
17435
17440
|
React.useEffect(function () {
|
|
17436
17441
|
setValue(props.value || 'COMPANY');
|
|
17437
17442
|
}, [props.value]);
|
|
17438
|
-
return
|
|
17443
|
+
return React.createElement(Checkbox$1, {
|
|
17439
17444
|
disabled: props.readOnly,
|
|
17440
17445
|
checked: value === 'NATURAL',
|
|
17441
17446
|
onChange: onChange
|
|
@@ -17541,10 +17546,10 @@ function BuyerNameInput$1(props) {
|
|
|
17541
17546
|
return _ref.apply(this, arguments);
|
|
17542
17547
|
};
|
|
17543
17548
|
}(), [autoComplete.onBuyerNameSearch, fieldName]);
|
|
17544
|
-
if (props.readOnly) return
|
|
17549
|
+
if (props.readOnly) return React.createElement("span", {
|
|
17545
17550
|
className: 'digtal-stakeholder-form-text'
|
|
17546
17551
|
}, props.value);
|
|
17547
|
-
return
|
|
17552
|
+
return React.createElement(AutoComplete$1, {
|
|
17548
17553
|
onSearch: onSearch,
|
|
17549
17554
|
options: options.map(function (e) {
|
|
17550
17555
|
return {
|
|
@@ -17559,7 +17564,7 @@ function BuyerNameInput$1(props) {
|
|
|
17559
17564
|
style: {
|
|
17560
17565
|
width: '100%'
|
|
17561
17566
|
}
|
|
17562
|
-
},
|
|
17567
|
+
}, React.createElement(Input$1, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
17563
17568
|
style: _objectSpread2({
|
|
17564
17569
|
width: '100%'
|
|
17565
17570
|
}, props.style)
|
|
@@ -17583,11 +17588,11 @@ var MyInput$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
17583
17588
|
var props = this.props;
|
|
17584
17589
|
|
|
17585
17590
|
if (props.readOnly) {
|
|
17586
|
-
return
|
|
17591
|
+
return React.createElement("span", {
|
|
17587
17592
|
className: 'digtal-stakeholder-form-text'
|
|
17588
17593
|
}, props.value);
|
|
17589
17594
|
} else {
|
|
17590
|
-
return
|
|
17595
|
+
return React.createElement(Input$1, _objectSpread2({}, props));
|
|
17591
17596
|
}
|
|
17592
17597
|
}
|
|
17593
17598
|
}]);
|
|
@@ -17644,48 +17649,48 @@ var SignDigtal = decorator(Form.create())(function (props) {
|
|
|
17644
17649
|
controller.useForm('sign', form);
|
|
17645
17650
|
|
|
17646
17651
|
if (readOnly) {
|
|
17647
|
-
return
|
|
17652
|
+
return React.createElement("div", {
|
|
17648
17653
|
className: "kts-invoice-operate-sign-digtal-readOnly"
|
|
17649
|
-
},
|
|
17654
|
+
}, React.createElement("div", {
|
|
17650
17655
|
className: 'sign-digtal-readOnly-cont'
|
|
17651
|
-
},
|
|
17656
|
+
}, React.createElement("div", null, React.createElement("span", null, "\u5907"), React.createElement("span", null, "\u6CE8")), React.createElement("div", null, getFieldDecorator('remarks', {
|
|
17652
17657
|
initialValue: props.defaultRemark
|
|
17653
|
-
})(isEnables('remarks') ?
|
|
17658
|
+
})(isEnables('remarks') ? React.createElement(Input$1.TextArea, {
|
|
17654
17659
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
17655
17660
|
style: {
|
|
17656
17661
|
height: '100%'
|
|
17657
17662
|
}
|
|
17658
|
-
}) :
|
|
17663
|
+
}) : React.createElement(MyDiv$1, {
|
|
17659
17664
|
style: {
|
|
17660
17665
|
whiteSpace: 'pre-wrap',
|
|
17661
17666
|
wordBreak: 'break-all'
|
|
17662
17667
|
}
|
|
17663
|
-
})))),
|
|
17668
|
+
})))), React.createElement(Form, {
|
|
17664
17669
|
layout: 'inline',
|
|
17665
17670
|
className: 'digtal-readOnly-form'
|
|
17666
|
-
},
|
|
17671
|
+
}, React.createElement(Form.Item, {
|
|
17667
17672
|
label: "\u5F00\u7968\u4EBA"
|
|
17668
17673
|
}, getFieldDecorator('drawer', {
|
|
17669
17674
|
initialValue: props.defaultRemark
|
|
17670
|
-
})(
|
|
17675
|
+
})(React.createElement(MyDiv$1, null)))));
|
|
17671
17676
|
} else {
|
|
17672
|
-
return
|
|
17677
|
+
return React.createElement("div", {
|
|
17673
17678
|
className: "kts-invoice-operate-sign-digtal"
|
|
17674
|
-
},
|
|
17679
|
+
}, React.createElement("div", {
|
|
17675
17680
|
className: 'sign-digtal-label'
|
|
17676
|
-
}, "\u5907\u6CE8\u4FE1\u606F"),
|
|
17681
|
+
}, "\u5907\u6CE8\u4FE1\u606F"), React.createElement(Form, null, React.createElement(Form.Item, {
|
|
17677
17682
|
label: "\u5907\u6CE8"
|
|
17678
17683
|
}, getFieldDecorator('remarks', {
|
|
17679
17684
|
initialValue: props.defaultRemark
|
|
17680
|
-
})(
|
|
17685
|
+
})(React.createElement(Input$1.TextArea, {
|
|
17681
17686
|
readOnly: isReadOnly('remarks'),
|
|
17682
17687
|
autoSize: true,
|
|
17683
17688
|
placeholder: "\u8BF7\u8F93\u5165"
|
|
17684
|
-
}))),
|
|
17689
|
+
}))), React.createElement(Form.Item, {
|
|
17685
17690
|
label: "\u5F00\u7968\u4EBA"
|
|
17686
17691
|
}, getFieldDecorator('drawer', {
|
|
17687
17692
|
initialValue: props.defaultIssuer
|
|
17688
|
-
})(
|
|
17693
|
+
})(React.createElement(Input$1, {
|
|
17689
17694
|
readOnly: isReadOnly('drawer'),
|
|
17690
17695
|
style: {
|
|
17691
17696
|
width: 313
|
|
@@ -17709,7 +17714,7 @@ var MyDiv$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
17709
17714
|
_createClass(MyDiv, [{
|
|
17710
17715
|
key: "render",
|
|
17711
17716
|
value: function render() {
|
|
17712
|
-
return
|
|
17717
|
+
return React.createElement("div", {
|
|
17713
17718
|
style: this.props.style
|
|
17714
17719
|
}, this.props.value);
|
|
17715
17720
|
}
|
|
@@ -17812,12 +17817,12 @@ function TableVirtual$1 (props) {
|
|
|
17812
17817
|
if (!cont) return;
|
|
17813
17818
|
cont.scrollTop = 0;
|
|
17814
17819
|
}, [(_props$dataSource2 = props.dataSource) === null || _props$dataSource2 === void 0 ? void 0 : _props$dataSource2.length]);
|
|
17815
|
-
return
|
|
17820
|
+
return React.createElement("span", {
|
|
17816
17821
|
className: "kts-invoice-operate-goods-table-virtual",
|
|
17817
17822
|
ref: function ref(e) {
|
|
17818
17823
|
setSelf(e);
|
|
17819
17824
|
}
|
|
17820
|
-
},
|
|
17825
|
+
}, React.createElement(TableManual, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
17821
17826
|
dataSource: dataSource,
|
|
17822
17827
|
// 新版本Table会有输入框无法连续输入的问题,先兼容老版本
|
|
17823
17828
|
tableComponent: Table
|
|
@@ -17826,10 +17831,10 @@ function TableVirtual$1 (props) {
|
|
|
17826
17831
|
|
|
17827
17832
|
var _g$1, _defs$3;
|
|
17828
17833
|
|
|
17829
|
-
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); }
|
|
17830
17835
|
|
|
17831
17836
|
function SvgFork(props) {
|
|
17832
|
-
return /*#__PURE__*/createElement("svg", _extends$
|
|
17837
|
+
return /*#__PURE__*/createElement("svg", _extends$7({
|
|
17833
17838
|
xmlns: "http://www.w3.org/2000/svg",
|
|
17834
17839
|
width: 16,
|
|
17835
17840
|
height: 16,
|
|
@@ -17928,54 +17933,54 @@ var Statistics$1 = (function () {
|
|
|
17928
17933
|
});
|
|
17929
17934
|
return sum.done().toNumber();
|
|
17930
17935
|
}, []);
|
|
17931
|
-
return
|
|
17936
|
+
return React.createElement("div", {
|
|
17932
17937
|
className: 'kts-invoice-operate-goods-list-statistics-digtal'
|
|
17933
|
-
},
|
|
17938
|
+
}, React.createElement("div", {
|
|
17934
17939
|
className: 'statistics-digtal-total'
|
|
17935
|
-
},
|
|
17940
|
+
}, React.createElement("div", null, "\u5408\u8BA1"), React.createElement("div", {
|
|
17936
17941
|
style: {
|
|
17937
17942
|
flex: 1
|
|
17938
17943
|
}
|
|
17939
|
-
}),
|
|
17944
|
+
}), React.createElement("div", {
|
|
17940
17945
|
style: {
|
|
17941
17946
|
minWidth: 119,
|
|
17942
17947
|
maxWidth: 300,
|
|
17943
17948
|
textAlign: 'right',
|
|
17944
17949
|
paddingRight: 15
|
|
17945
17950
|
}
|
|
17946
|
-
}, "\xA5", parseFloat(isTaxIncluded ? lineAmountIncludeTax : lineAmountExcludeTax).toFixed(2)),
|
|
17951
|
+
}, "\xA5", parseFloat(isTaxIncluded ? lineAmountIncludeTax : lineAmountExcludeTax).toFixed(2)), React.createElement("div", {
|
|
17947
17952
|
style: {
|
|
17948
17953
|
minWidth: 119,
|
|
17949
17954
|
maxWidth: 300,
|
|
17950
17955
|
textAlign: 'right',
|
|
17951
17956
|
paddingRight: 15
|
|
17952
17957
|
}
|
|
17953
|
-
}, "\xA5", parseFloat(taxAmount).toFixed(2))),
|
|
17958
|
+
}, "\xA5", parseFloat(taxAmount).toFixed(2))), React.createElement("div", {
|
|
17954
17959
|
className: 'statistics-digtal-total-tax'
|
|
17955
|
-
},
|
|
17960
|
+
}, React.createElement("div", null, "\u4EF7\u7A0E\u5408\u8BA1\uFF08\u5927\u5199\uFF09"), React.createElement("div", {
|
|
17956
17961
|
style: {
|
|
17957
17962
|
paddingLeft: 30
|
|
17958
17963
|
}
|
|
17959
|
-
},
|
|
17964
|
+
}, React.createElement(Icon, {
|
|
17960
17965
|
style: {
|
|
17961
17966
|
fontSize: 16
|
|
17962
17967
|
},
|
|
17963
17968
|
component: SvgFork
|
|
17964
|
-
}),
|
|
17969
|
+
}), React.createElement("span", {
|
|
17965
17970
|
style: {
|
|
17966
17971
|
fontWeight: 'bold',
|
|
17967
17972
|
marginLeft: 4
|
|
17968
17973
|
}
|
|
17969
|
-
}, toStringChinese(lineAmountIncludeTax))),
|
|
17974
|
+
}, toStringChinese(lineAmountIncludeTax))), React.createElement("div", {
|
|
17970
17975
|
style: {
|
|
17971
17976
|
flex: 1
|
|
17972
17977
|
}
|
|
17973
|
-
}),
|
|
17978
|
+
}), React.createElement("div", {
|
|
17974
17979
|
style: {
|
|
17975
17980
|
width: 90,
|
|
17976
17981
|
color: '#9F613E'
|
|
17977
17982
|
}
|
|
17978
|
-
}, "\uFF08\u5C0F\u5199\uFF09"),
|
|
17983
|
+
}, "\uFF08\u5C0F\u5199\uFF09"), React.createElement("div", {
|
|
17979
17984
|
style: {
|
|
17980
17985
|
minWidth: 119,
|
|
17981
17986
|
maxWidth: 300
|
|
@@ -18035,10 +18040,10 @@ var AddRowButton$1 = (function () {
|
|
|
18035
18040
|
}
|
|
18036
18041
|
}, _callee);
|
|
18037
18042
|
})), [controller, rootElement]);
|
|
18038
|
-
if (isAddRow === false) return
|
|
18039
|
-
if (model === 'prefab') return
|
|
18040
|
-
if (model === 'readOnly') return
|
|
18041
|
-
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, {
|
|
18042
18047
|
size: 'small',
|
|
18043
18048
|
type: 'primary',
|
|
18044
18049
|
onClick: onClick,
|
|
@@ -19421,11 +19426,11 @@ var TaxIncludedSwitch$1 = (function () {
|
|
|
19421
19426
|
return _ref.apply(this, arguments);
|
|
19422
19427
|
};
|
|
19423
19428
|
}(), []);
|
|
19424
|
-
return
|
|
19429
|
+
return React.createElement("span", null, React.createElement("label", {
|
|
19425
19430
|
style: {
|
|
19426
19431
|
marginRight: 2
|
|
19427
19432
|
}
|
|
19428
|
-
}, "\u542B\u7A0E"),
|
|
19433
|
+
}, "\u542B\u7A0E"), React.createElement(Switch, {
|
|
19429
19434
|
disabled: isSwitchTax === false,
|
|
19430
19435
|
checked: isTaxIncluded,
|
|
19431
19436
|
defaultChecked: true,
|
|
@@ -19433,18 +19438,18 @@ var TaxIncludedSwitch$1 = (function () {
|
|
|
19433
19438
|
}));
|
|
19434
19439
|
});
|
|
19435
19440
|
|
|
19436
|
-
var _path$
|
|
19441
|
+
var _path$6;
|
|
19437
19442
|
|
|
19438
|
-
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); }
|
|
19439
19444
|
|
|
19440
19445
|
function SvgMagnifier$1(props) {
|
|
19441
|
-
return /*#__PURE__*/createElement("svg", _extends$
|
|
19446
|
+
return /*#__PURE__*/createElement("svg", _extends$8({
|
|
19442
19447
|
className: "magnifier_svg__icon",
|
|
19443
19448
|
viewBox: "0 0 1024 1024",
|
|
19444
19449
|
xmlns: "http://www.w3.org/2000/svg",
|
|
19445
19450
|
width: 200,
|
|
19446
19451
|
height: 200
|
|
19447
|
-
}, props), _path$
|
|
19452
|
+
}, props), _path$6 || (_path$6 = /*#__PURE__*/createElement("path", {
|
|
19448
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"
|
|
19449
19454
|
})));
|
|
19450
19455
|
}
|
|
@@ -19521,12 +19526,12 @@ function Search$1() {
|
|
|
19521
19526
|
};
|
|
19522
19527
|
}());
|
|
19523
19528
|
}, [value, controller]);
|
|
19524
|
-
return
|
|
19529
|
+
return React.createElement(Input$1, {
|
|
19525
19530
|
readOnly: readOnly,
|
|
19526
19531
|
value: value,
|
|
19527
19532
|
className: "kts-invoice-operate-goods-list-search",
|
|
19528
19533
|
placeholder: "\u8BF7\u60A8\u8F93\u5165\u9879\u76EE\u540D\u79F0\u3001\u89C4\u683C\u578B\u53F7\u3001\u91D1\u989D(".concat(isTaxIncluded ? '含税' : '不含税', ")\u641C\u7D22"),
|
|
19529
|
-
prefix:
|
|
19534
|
+
prefix: React.createElement(Icon$1, {
|
|
19530
19535
|
component: SvgMagnifier$1,
|
|
19531
19536
|
style: {
|
|
19532
19537
|
color: "#b8b8b8"
|
|
@@ -19571,12 +19576,12 @@ function TableRow$1(props) {
|
|
|
19571
19576
|
return undefined;
|
|
19572
19577
|
}
|
|
19573
19578
|
}, [rowKey, goodsMap]);
|
|
19574
|
-
return rowKey === current && current ?
|
|
19579
|
+
return rowKey === current && current ? React.createElement("tr", {
|
|
19575
19580
|
style: {
|
|
19576
19581
|
height: 50,
|
|
19577
19582
|
position: 'relative'
|
|
19578
19583
|
}
|
|
19579
|
-
},
|
|
19584
|
+
}, React.createElement("div", {
|
|
19580
19585
|
style: {
|
|
19581
19586
|
height: 0.5,
|
|
19582
19587
|
width: '100%',
|
|
@@ -19584,9 +19589,7 @@ function TableRow$1(props) {
|
|
|
19584
19589
|
position: 'absolute',
|
|
19585
19590
|
bottom: 0
|
|
19586
19591
|
}
|
|
19587
|
-
})) :
|
|
19588
|
-
/*#__PURE__*/
|
|
19589
|
-
// <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' : '')} />
|
|
19590
19593
|
React.createElement("tr", _objectSpread2(_objectSpread2({}, props), {}, {
|
|
19591
19594
|
className: classNames(props.className, discount, rowKey === container && current ? 'kts-invoice-operate-goods-list-itemName-drag-container-' + site : undefined)
|
|
19592
19595
|
}));
|
|
@@ -19594,10 +19597,10 @@ function TableRow$1(props) {
|
|
|
19594
19597
|
|
|
19595
19598
|
var _g$2, _defs$4;
|
|
19596
19599
|
|
|
19597
|
-
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); }
|
|
19598
19601
|
|
|
19599
19602
|
function SvgPlus$1(props) {
|
|
19600
|
-
return /*#__PURE__*/createElement("svg", _extends$
|
|
19603
|
+
return /*#__PURE__*/createElement("svg", _extends$9({
|
|
19601
19604
|
xmlns: "http://www.w3.org/2000/svg",
|
|
19602
19605
|
width: 16,
|
|
19603
19606
|
height: 15
|
|
@@ -19626,9 +19629,9 @@ var TitleText$1 = (function (props) {
|
|
|
19626
19629
|
return !!e.required;
|
|
19627
19630
|
})) || props.required;
|
|
19628
19631
|
}, [rules, props.required]);
|
|
19629
|
-
return
|
|
19632
|
+
return React.createElement(React.Fragment, null, required ? React.createElement(Text$5, {
|
|
19630
19633
|
type: "danger"
|
|
19631
|
-
}, "*") :
|
|
19634
|
+
}, "*") : React.createElement(React.Fragment, null), children);
|
|
19632
19635
|
});
|
|
19633
19636
|
|
|
19634
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";
|
|
@@ -19812,14 +19815,14 @@ function ItemNameInput$1(props) {
|
|
|
19812
19815
|
return _ref3.apply(this, arguments);
|
|
19813
19816
|
};
|
|
19814
19817
|
}(), [autoComplete.onItemNameSearch]);
|
|
19815
|
-
return
|
|
19818
|
+
return React.createElement("div", {
|
|
19816
19819
|
className: 'kts-invoice-operate-goods-list-itemName-input'
|
|
19817
|
-
}, props.shorthand &&
|
|
19820
|
+
}, props.shorthand && React.createElement("span", {
|
|
19818
19821
|
style: {
|
|
19819
19822
|
alignSelf: 'center',
|
|
19820
19823
|
fontSize: 12
|
|
19821
19824
|
}
|
|
19822
|
-
}, "*", props.shorthand, "*"),
|
|
19825
|
+
}, "*", props.shorthand, "*"), React.createElement(AutoComplete$1, {
|
|
19823
19826
|
onSearch: onSearch,
|
|
19824
19827
|
value: props.value,
|
|
19825
19828
|
options: options.map(function (e) {
|
|
@@ -19832,7 +19835,7 @@ function ItemNameInput$1(props) {
|
|
|
19832
19835
|
return rootElement || document.body;
|
|
19833
19836
|
},
|
|
19834
19837
|
onSelect: onChangeAutoComplete
|
|
19835
|
-
},
|
|
19838
|
+
}, React.createElement(Input$1, {
|
|
19836
19839
|
style: {
|
|
19837
19840
|
height: '100%'
|
|
19838
19841
|
},
|
|
@@ -19842,18 +19845,18 @@ function ItemNameInput$1(props) {
|
|
|
19842
19845
|
})));
|
|
19843
19846
|
}
|
|
19844
19847
|
|
|
19845
|
-
var _path$
|
|
19848
|
+
var _path$7;
|
|
19846
19849
|
|
|
19847
|
-
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); }
|
|
19848
19851
|
|
|
19849
|
-
function SvgI001$
|
|
19850
|
-
return /*#__PURE__*/createElement("svg", _extends$
|
|
19852
|
+
function SvgI001$1(props) {
|
|
19853
|
+
return /*#__PURE__*/createElement("svg", _extends$a({
|
|
19851
19854
|
className: "I001_svg__icon",
|
|
19852
19855
|
viewBox: "0 0 1024 1024",
|
|
19853
19856
|
xmlns: "http://www.w3.org/2000/svg",
|
|
19854
19857
|
width: 200,
|
|
19855
19858
|
height: 200
|
|
19856
|
-
}, props), _path$
|
|
19859
|
+
}, props), _path$7 || (_path$7 = /*#__PURE__*/createElement("path", {
|
|
19857
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"
|
|
19858
19861
|
})));
|
|
19859
19862
|
}
|
|
@@ -19902,7 +19905,7 @@ function Drag$2(props) {
|
|
|
19902
19905
|
var currentGood = controller.state.goodsListState.goodsList.filter(function (e) {
|
|
19903
19906
|
return e.$index === record.$index;
|
|
19904
19907
|
})[0];
|
|
19905
|
-
mounting(
|
|
19908
|
+
mounting(React.createElement(DragDiv$1, _objectSpread2({}, currentGood)));
|
|
19906
19909
|
rowList.forEach(function (e) {
|
|
19907
19910
|
e.addEventListener('mousemove', onMousemove);
|
|
19908
19911
|
});
|
|
@@ -20063,7 +20066,7 @@ function Drag$2(props) {
|
|
|
20063
20066
|
|
|
20064
20067
|
|
|
20065
20068
|
function insert() {
|
|
20066
|
-
mounting(
|
|
20069
|
+
mounting(React.createElement(React.Fragment, null));
|
|
20067
20070
|
controller.run( /*#__PURE__*/function () {
|
|
20068
20071
|
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(s) {
|
|
20069
20072
|
var _s$goodsListState$dra, container, current, site, goodsList, goodsMap, _currentGood, currentIndex, moveGoods;
|
|
@@ -20142,7 +20145,7 @@ function Drag$2(props) {
|
|
|
20142
20145
|
}
|
|
20143
20146
|
}, [controller, record, disabled]);
|
|
20144
20147
|
var renderButton = React.useMemo(function () {
|
|
20145
|
-
return
|
|
20148
|
+
return React.createElement(Button, {
|
|
20146
20149
|
type: 'link',
|
|
20147
20150
|
style: {
|
|
20148
20151
|
padding: 0
|
|
@@ -20153,13 +20156,13 @@ function Drag$2(props) {
|
|
|
20153
20156
|
},
|
|
20154
20157
|
className: "kts-invoice-operate-goods-list-itemName-drag",
|
|
20155
20158
|
onMouseOver: controller.saveEditGood
|
|
20156
|
-
},
|
|
20157
|
-
component: SvgI001$
|
|
20159
|
+
}, React.createElement(Icon, {
|
|
20160
|
+
component: SvgI001$1
|
|
20158
20161
|
}));
|
|
20159
20162
|
}, [onMouseDown, controller]);
|
|
20160
20163
|
|
|
20161
20164
|
if (disabled) {
|
|
20162
|
-
return
|
|
20165
|
+
return React.createElement(Popover, {
|
|
20163
20166
|
content: '您还有未编辑完成的商品',
|
|
20164
20167
|
trigger: 'focus'
|
|
20165
20168
|
}, renderButton);
|
|
@@ -20199,13 +20202,13 @@ function DragDiv$1(props) {
|
|
|
20199
20202
|
window.removeEventListener('mousemove', onMousemove);
|
|
20200
20203
|
};
|
|
20201
20204
|
});
|
|
20202
|
-
return
|
|
20205
|
+
return React.createElement("div", {
|
|
20203
20206
|
className: "kts-invoice-operate-goods-list-itemName-drag-div",
|
|
20204
20207
|
style: {
|
|
20205
20208
|
top: y,
|
|
20206
20209
|
left: x
|
|
20207
20210
|
}
|
|
20208
|
-
},
|
|
20211
|
+
}, React.createElement("span", null, props.itemName), React.createElement("span", null, props.itemModelName), React.createElement("span", null, props.unit));
|
|
20209
20212
|
}
|
|
20210
20213
|
|
|
20211
20214
|
var useColumns$1 = (function (form) {
|
|
@@ -20225,6 +20228,11 @@ var useColumns$1 = (function (form) {
|
|
|
20225
20228
|
var model = controller.useMemo(function (e) {
|
|
20226
20229
|
return e.model;
|
|
20227
20230
|
}, []);
|
|
20231
|
+
/** 计算类型 */
|
|
20232
|
+
|
|
20233
|
+
var calculateType = controller.useMemo(function (e) {
|
|
20234
|
+
return e.goodsListState.calculateType;
|
|
20235
|
+
}, []);
|
|
20228
20236
|
/** 是否显示我方 */
|
|
20229
20237
|
|
|
20230
20238
|
var isMyShow = controller.useMemo(function (e) {
|
|
@@ -20329,7 +20337,7 @@ var useColumns$1 = (function (form) {
|
|
|
20329
20337
|
width: 40,
|
|
20330
20338
|
align: 'center',
|
|
20331
20339
|
render: function render(_, record) {
|
|
20332
|
-
return
|
|
20340
|
+
return React.createElement(Drag$2, {
|
|
20333
20341
|
record: record
|
|
20334
20342
|
});
|
|
20335
20343
|
}
|
|
@@ -20339,20 +20347,20 @@ var useColumns$1 = (function (form) {
|
|
|
20339
20347
|
dataIndex: 'serialNo',
|
|
20340
20348
|
width: 50,
|
|
20341
20349
|
render: function render(e) {
|
|
20342
|
-
return
|
|
20350
|
+
return React.createElement("span", {
|
|
20343
20351
|
style: {
|
|
20344
20352
|
padding: '0 10px'
|
|
20345
20353
|
}
|
|
20346
20354
|
}, e);
|
|
20347
20355
|
}
|
|
20348
20356
|
}, {
|
|
20349
|
-
title:
|
|
20357
|
+
title: React.createElement(TitleText$1, {
|
|
20350
20358
|
required: true
|
|
20351
20359
|
}, "\u9879\u76EE\u540D\u79F0"),
|
|
20352
20360
|
key: 'itemName',
|
|
20353
20361
|
render: function render(_, record) {
|
|
20354
|
-
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index && !disableds.includes('itemName')) {
|
|
20355
|
-
return
|
|
20362
|
+
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index && !disableds.includes('itemName') && model !== 'prefab') {
|
|
20363
|
+
return React.createElement(Form.Item, null, React.createElement("div", {
|
|
20356
20364
|
style: {
|
|
20357
20365
|
display: 'flex'
|
|
20358
20366
|
}
|
|
@@ -20399,12 +20407,12 @@ var useColumns$1 = (function (form) {
|
|
|
20399
20407
|
return validator;
|
|
20400
20408
|
}()
|
|
20401
20409
|
}])
|
|
20402
|
-
})(
|
|
20410
|
+
})(React.createElement(ItemNameInput$1, {
|
|
20403
20411
|
editGood: editGood,
|
|
20404
20412
|
shorthand: editGood.shorthand,
|
|
20405
|
-
suffix:
|
|
20413
|
+
suffix: React.createElement(Tooltip$1, {
|
|
20406
20414
|
title: "\u70B9\u51FB\u4ECE\u5546\u54C1\u7BA1\u7406\u4E2D\u6DFB\u52A0\u5546\u54C1\u4FE1\u606F"
|
|
20407
|
-
},
|
|
20415
|
+
}, React.createElement(Button$1, {
|
|
20408
20416
|
type: "link",
|
|
20409
20417
|
style: {
|
|
20410
20418
|
padding: 0,
|
|
@@ -20412,7 +20420,7 @@ var useColumns$1 = (function (form) {
|
|
|
20412
20420
|
fontSize: 20,
|
|
20413
20421
|
fill: '#0074ff'
|
|
20414
20422
|
},
|
|
20415
|
-
icon:
|
|
20423
|
+
icon: React.createElement(SvgPlus$1, null),
|
|
20416
20424
|
onClick: controller.pipeline( /*#__PURE__*/function () {
|
|
20417
20425
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(s) {
|
|
20418
20426
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
@@ -20439,9 +20447,9 @@ var useColumns$1 = (function (form) {
|
|
|
20439
20447
|
}
|
|
20440
20448
|
}))));
|
|
20441
20449
|
} else {
|
|
20442
|
-
return
|
|
20450
|
+
return React.createElement("span", null, record.lineAttribute === LineAttributeType$1.折扣行 ? React.createElement("span", {
|
|
20443
20451
|
className: 'goods-list-digtal-discount-tag'
|
|
20444
|
-
}, "\u6298\u6263") :
|
|
20452
|
+
}, "\u6298\u6263") : React.createElement(React.Fragment, null), React.createElement(MyItemNameDiv$1, {
|
|
20445
20453
|
valueT: formatSearch$1(getItemNameWithShorthand({
|
|
20446
20454
|
shorthand: record.shorthand,
|
|
20447
20455
|
full: record.itemNameSelf || ''
|
|
@@ -20455,17 +20463,17 @@ var useColumns$1 = (function (form) {
|
|
|
20455
20463
|
}
|
|
20456
20464
|
}
|
|
20457
20465
|
}, {
|
|
20458
|
-
title:
|
|
20466
|
+
title: React.createElement(TitleText$1, {
|
|
20459
20467
|
rules: (_columnsReplenish$ite = columnsReplenish['itemModelName']) === null || _columnsReplenish$ite === void 0 ? void 0 : _columnsReplenish$ite.rules
|
|
20460
20468
|
}, "\u89C4\u683C\u578B\u53F7"),
|
|
20461
20469
|
key: 'itemModelName',
|
|
20462
20470
|
width: 119,
|
|
20463
20471
|
render: function render(_, record) {
|
|
20464
|
-
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index && !disableds.includes('itemModelName')) {
|
|
20465
|
-
return
|
|
20472
|
+
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index && !disableds.includes('itemModelName') && model !== 'prefab') {
|
|
20473
|
+
return React.createElement(Form.Item, null, getFieldDecorator('itemModelName', {
|
|
20466
20474
|
initialValue: isMyShow ? editGood.itemModelNameSelf : editGood.itemModelName,
|
|
20467
20475
|
rules: getReplenishRules('itemModelName')
|
|
20468
|
-
})(
|
|
20476
|
+
})(React.createElement(MyInput$2, {
|
|
20469
20477
|
onChange: function () {
|
|
20470
20478
|
var _onChange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
20471
20479
|
var key, value;
|
|
@@ -20498,7 +20506,7 @@ var useColumns$1 = (function (form) {
|
|
|
20498
20506
|
}()
|
|
20499
20507
|
})));
|
|
20500
20508
|
} else {
|
|
20501
|
-
return
|
|
20509
|
+
return React.createElement(MyItemNameDiv$1, {
|
|
20502
20510
|
valueT: formatSearch$1(record.itemModelNameSelf, searchValue),
|
|
20503
20511
|
valueF: formatSearch$1(record.itemModelName, searchValue),
|
|
20504
20512
|
isMyShow: isMyShow
|
|
@@ -20506,17 +20514,17 @@ var useColumns$1 = (function (form) {
|
|
|
20506
20514
|
}
|
|
20507
20515
|
}
|
|
20508
20516
|
}, {
|
|
20509
|
-
title:
|
|
20517
|
+
title: React.createElement(TitleText$1, {
|
|
20510
20518
|
rules: (_columnsReplenish$uni = columnsReplenish['unit']) === null || _columnsReplenish$uni === void 0 ? void 0 : _columnsReplenish$uni.rules
|
|
20511
20519
|
}, "\u5355\u4F4D"),
|
|
20512
20520
|
key: 'unit',
|
|
20513
20521
|
width: 70,
|
|
20514
20522
|
render: function render(_, record) {
|
|
20515
|
-
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index && !disableds.includes('unit')) {
|
|
20516
|
-
return
|
|
20523
|
+
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index && !disableds.includes('unit') && model !== 'prefab') {
|
|
20524
|
+
return React.createElement(Form.Item, null, getFieldDecorator('unit', {
|
|
20517
20525
|
initialValue: editGood.unit,
|
|
20518
20526
|
rules: getReplenishRules('unit')
|
|
20519
|
-
})(
|
|
20527
|
+
})(React.createElement(AutoComplete$1, {
|
|
20520
20528
|
style: {
|
|
20521
20529
|
width: '100%'
|
|
20522
20530
|
},
|
|
@@ -20554,7 +20562,7 @@ var useColumns$1 = (function (form) {
|
|
|
20554
20562
|
}()
|
|
20555
20563
|
})));
|
|
20556
20564
|
} else {
|
|
20557
|
-
return
|
|
20565
|
+
return React.createElement("span", {
|
|
20558
20566
|
style: {
|
|
20559
20567
|
padding: '0 10px'
|
|
20560
20568
|
}
|
|
@@ -20562,7 +20570,7 @@ var useColumns$1 = (function (form) {
|
|
|
20562
20570
|
}
|
|
20563
20571
|
}
|
|
20564
20572
|
}, {
|
|
20565
|
-
title:
|
|
20573
|
+
title: React.createElement(TitleText$1, {
|
|
20566
20574
|
rules: (_columnsReplenish$qua = columnsReplenish['quantity']) === null || _columnsReplenish$qua === void 0 ? void 0 : _columnsReplenish$qua.rules
|
|
20567
20575
|
}, "\u6570\u91CF"),
|
|
20568
20576
|
dataIndex: 'quantity',
|
|
@@ -20570,8 +20578,8 @@ var useColumns$1 = (function (form) {
|
|
|
20570
20578
|
align: 'right',
|
|
20571
20579
|
width: 149,
|
|
20572
20580
|
render: function render(value, record) {
|
|
20573
|
-
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index && !disableds.includes('quantity')) {
|
|
20574
|
-
return
|
|
20581
|
+
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index && !disableds.includes('quantity') && model !== 'prefab') {
|
|
20582
|
+
return React.createElement(Form.Item, null, getFieldDecorator('quantity', {
|
|
20575
20583
|
initialValue: nonScientificNotation(editGood.quantity),
|
|
20576
20584
|
getValueFromEvent: onNumberValueChange,
|
|
20577
20585
|
rules: [].concat(_toConsumableArray(getReplenishRules('quantity')), [{
|
|
@@ -20617,7 +20625,7 @@ var useColumns$1 = (function (form) {
|
|
|
20617
20625
|
return validator;
|
|
20618
20626
|
}()
|
|
20619
20627
|
}])
|
|
20620
|
-
})(
|
|
20628
|
+
})(React.createElement(MyInput$2, {
|
|
20621
20629
|
style: {
|
|
20622
20630
|
textAlign: 'right'
|
|
20623
20631
|
},
|
|
@@ -20649,7 +20657,7 @@ var useColumns$1 = (function (form) {
|
|
|
20649
20657
|
}()
|
|
20650
20658
|
})));
|
|
20651
20659
|
} else {
|
|
20652
|
-
return
|
|
20660
|
+
return React.createElement("span", {
|
|
20653
20661
|
style: {
|
|
20654
20662
|
padding: '0 10px'
|
|
20655
20663
|
}
|
|
@@ -20657,7 +20665,7 @@ var useColumns$1 = (function (form) {
|
|
|
20657
20665
|
}
|
|
20658
20666
|
}
|
|
20659
20667
|
}, {
|
|
20660
|
-
title:
|
|
20668
|
+
title: React.createElement(TitleText$1, {
|
|
20661
20669
|
rules: (_columnsReplenish$pri = columnsReplenish['priceIncludeTax']) === null || _columnsReplenish$pri === void 0 ? void 0 : _columnsReplenish$pri.rules
|
|
20662
20670
|
}, "\u5355\u4EF7(\u542B\u7A0E)"),
|
|
20663
20671
|
dataIndex: 'priceIncludeTax',
|
|
@@ -20665,8 +20673,8 @@ var useColumns$1 = (function (form) {
|
|
|
20665
20673
|
align: 'right',
|
|
20666
20674
|
width: 149,
|
|
20667
20675
|
render: function render(value, record) {
|
|
20668
|
-
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index && !disableds.includes('priceIncludeTax')) {
|
|
20669
|
-
return
|
|
20676
|
+
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index && !disableds.includes('priceIncludeTax') && model !== 'prefab') {
|
|
20677
|
+
return React.createElement(Form.Item, null, getFieldDecorator('priceIncludeTax', {
|
|
20670
20678
|
initialValue: nonScientificNotation(editGood.priceIncludeTax),
|
|
20671
20679
|
getValueFromEvent: onNumberValueChange,
|
|
20672
20680
|
rules: [].concat(_toConsumableArray(getReplenishRules('priceIncludeTax')), [{
|
|
@@ -20712,7 +20720,7 @@ var useColumns$1 = (function (form) {
|
|
|
20712
20720
|
return validator;
|
|
20713
20721
|
}()
|
|
20714
20722
|
}])
|
|
20715
|
-
})(
|
|
20723
|
+
})(React.createElement(MyInput$2, {
|
|
20716
20724
|
style: {
|
|
20717
20725
|
textAlign: 'right'
|
|
20718
20726
|
},
|
|
@@ -20724,7 +20732,7 @@ var useColumns$1 = (function (form) {
|
|
|
20724
20732
|
}
|
|
20725
20733
|
})));
|
|
20726
20734
|
} else {
|
|
20727
|
-
return
|
|
20735
|
+
return React.createElement("span", {
|
|
20728
20736
|
style: {
|
|
20729
20737
|
padding: '0 10px'
|
|
20730
20738
|
}
|
|
@@ -20732,7 +20740,7 @@ var useColumns$1 = (function (form) {
|
|
|
20732
20740
|
}
|
|
20733
20741
|
}
|
|
20734
20742
|
}, {
|
|
20735
|
-
title:
|
|
20743
|
+
title: React.createElement(TitleText$1, {
|
|
20736
20744
|
rules: (_columnsReplenish$pri2 = columnsReplenish['priceExcludeTax']) === null || _columnsReplenish$pri2 === void 0 ? void 0 : _columnsReplenish$pri2.rules
|
|
20737
20745
|
}, "\u5355\u4EF7(\u4E0D\u542B\u7A0E)"),
|
|
20738
20746
|
dataIndex: 'priceExcludeTax',
|
|
@@ -20740,8 +20748,8 @@ var useColumns$1 = (function (form) {
|
|
|
20740
20748
|
align: 'right',
|
|
20741
20749
|
width: 149,
|
|
20742
20750
|
render: function render(value, record) {
|
|
20743
|
-
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index && !disableds.includes('priceExcludeTax')) {
|
|
20744
|
-
return
|
|
20751
|
+
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index && !disableds.includes('priceExcludeTax') && model !== 'prefab') {
|
|
20752
|
+
return React.createElement(Form.Item, null, getFieldDecorator('priceExcludeTax', {
|
|
20745
20753
|
initialValue: nonScientificNotation(editGood.priceExcludeTax),
|
|
20746
20754
|
getValueFromEvent: onNumberValueChange,
|
|
20747
20755
|
rules: [].concat(_toConsumableArray(getReplenishRules('priceExcludeTax')), [{
|
|
@@ -20787,7 +20795,7 @@ var useColumns$1 = (function (form) {
|
|
|
20787
20795
|
return validator;
|
|
20788
20796
|
}()
|
|
20789
20797
|
}])
|
|
20790
|
-
})(
|
|
20798
|
+
})(React.createElement(MyInput$2, {
|
|
20791
20799
|
style: {
|
|
20792
20800
|
textAlign: 'right'
|
|
20793
20801
|
},
|
|
@@ -20799,7 +20807,7 @@ var useColumns$1 = (function (form) {
|
|
|
20799
20807
|
}
|
|
20800
20808
|
})));
|
|
20801
20809
|
} else {
|
|
20802
|
-
return
|
|
20810
|
+
return React.createElement("span", {
|
|
20803
20811
|
style: {
|
|
20804
20812
|
padding: '0 10px'
|
|
20805
20813
|
}
|
|
@@ -20807,7 +20815,7 @@ var useColumns$1 = (function (form) {
|
|
|
20807
20815
|
}
|
|
20808
20816
|
}
|
|
20809
20817
|
}, {
|
|
20810
|
-
title:
|
|
20818
|
+
title: React.createElement(TitleText$1, {
|
|
20811
20819
|
required: true
|
|
20812
20820
|
}, "\u91D1\u989D(\u542B\u7A0E)"),
|
|
20813
20821
|
dataIndex: 'lineAmountIncludeTax',
|
|
@@ -20815,8 +20823,8 @@ var useColumns$1 = (function (form) {
|
|
|
20815
20823
|
width: 119,
|
|
20816
20824
|
align: 'right',
|
|
20817
20825
|
render: function render(value, record) {
|
|
20818
|
-
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index && !disableds.includes('lineAmountIncludeTax')) {
|
|
20819
|
-
return
|
|
20826
|
+
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index && !disableds.includes('lineAmountIncludeTax') && model !== 'prefab') {
|
|
20827
|
+
return React.createElement(Form.Item, null, getFieldDecorator('lineAmountIncludeTax', {
|
|
20820
20828
|
initialValue: editGood.lineAmountIncludeTax,
|
|
20821
20829
|
getValueFromEvent: onNumberValueChange,
|
|
20822
20830
|
rules: [].concat(_toConsumableArray(getReplenishRules('lineAmountIncludeTax')), [{
|
|
@@ -20876,7 +20884,7 @@ var useColumns$1 = (function (form) {
|
|
|
20876
20884
|
return validator;
|
|
20877
20885
|
}()
|
|
20878
20886
|
}])
|
|
20879
|
-
})(
|
|
20887
|
+
})(React.createElement(MyInput$2, {
|
|
20880
20888
|
style: {
|
|
20881
20889
|
textAlign: 'right'
|
|
20882
20890
|
},
|
|
@@ -20887,7 +20895,7 @@ var useColumns$1 = (function (form) {
|
|
|
20887
20895
|
}
|
|
20888
20896
|
})));
|
|
20889
20897
|
} else {
|
|
20890
|
-
return
|
|
20898
|
+
return React.createElement("span", {
|
|
20891
20899
|
style: {
|
|
20892
20900
|
padding: '0 10px'
|
|
20893
20901
|
}
|
|
@@ -20895,7 +20903,7 @@ var useColumns$1 = (function (form) {
|
|
|
20895
20903
|
}
|
|
20896
20904
|
}
|
|
20897
20905
|
}, {
|
|
20898
|
-
title:
|
|
20906
|
+
title: React.createElement(TitleText$1, {
|
|
20899
20907
|
required: true
|
|
20900
20908
|
}, "\u91D1\u989D(\u4E0D\u542B\u7A0E)"),
|
|
20901
20909
|
dataIndex: 'lineAmountExcludeTax',
|
|
@@ -20903,8 +20911,8 @@ var useColumns$1 = (function (form) {
|
|
|
20903
20911
|
align: 'right',
|
|
20904
20912
|
width: 119,
|
|
20905
20913
|
render: function render(value, record) {
|
|
20906
|
-
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index && !disableds.includes('lineAmountExcludeTax')) {
|
|
20907
|
-
return
|
|
20914
|
+
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index && !disableds.includes('lineAmountExcludeTax') && model !== 'prefab') {
|
|
20915
|
+
return React.createElement(Form.Item, null, getFieldDecorator('lineAmountExcludeTax', {
|
|
20908
20916
|
initialValue: editGood.lineAmountExcludeTax,
|
|
20909
20917
|
getValueFromEvent: onNumberValueChange,
|
|
20910
20918
|
rules: [].concat(_toConsumableArray(getReplenishRules('lineAmountExcludeTax')), [{
|
|
@@ -20939,7 +20947,7 @@ var useColumns$1 = (function (form) {
|
|
|
20939
20947
|
return validator;
|
|
20940
20948
|
}()
|
|
20941
20949
|
}])
|
|
20942
|
-
})(
|
|
20950
|
+
})(React.createElement(MyInput$2, {
|
|
20943
20951
|
style: {
|
|
20944
20952
|
textAlign: 'right'
|
|
20945
20953
|
},
|
|
@@ -20950,7 +20958,7 @@ var useColumns$1 = (function (form) {
|
|
|
20950
20958
|
}
|
|
20951
20959
|
})));
|
|
20952
20960
|
} else {
|
|
20953
|
-
return
|
|
20961
|
+
return React.createElement("span", {
|
|
20954
20962
|
style: {
|
|
20955
20963
|
padding: '0 10px'
|
|
20956
20964
|
}
|
|
@@ -20958,7 +20966,7 @@ var useColumns$1 = (function (form) {
|
|
|
20958
20966
|
}
|
|
20959
20967
|
}
|
|
20960
20968
|
}, {
|
|
20961
|
-
title:
|
|
20969
|
+
title: React.createElement(TitleText$1, {
|
|
20962
20970
|
required: true
|
|
20963
20971
|
}, "\u7A0E\u7387"),
|
|
20964
20972
|
dataIndex: 'taxRate',
|
|
@@ -20966,8 +20974,8 @@ var useColumns$1 = (function (form) {
|
|
|
20966
20974
|
align: 'right',
|
|
20967
20975
|
width: 70,
|
|
20968
20976
|
render: function render(value, record) {
|
|
20969
|
-
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index && !disableds.includes('taxRate')) {
|
|
20970
|
-
return
|
|
20977
|
+
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index && !disableds.includes('taxRate') && !(model === 'prefab' && calculateType === '3')) {
|
|
20978
|
+
return React.createElement(Form.Item, null, getFieldDecorator('taxRate', {
|
|
20971
20979
|
initialValue: editGood.taxRate,
|
|
20972
20980
|
rules: [].concat(_toConsumableArray(getReplenishRules('taxRate')), [{
|
|
20973
20981
|
required: true,
|
|
@@ -20976,7 +20984,7 @@ var useColumns$1 = (function (form) {
|
|
|
20976
20984
|
pattern: /^[+-]?(0|([1-9]\d*))(\.\d+)?$/,
|
|
20977
20985
|
message: '请选择正确税率'
|
|
20978
20986
|
}])
|
|
20979
|
-
})(
|
|
20987
|
+
})(React.createElement(Select$1, {
|
|
20980
20988
|
className: "kts-invoice-operate-goods-list-table-tax-rate",
|
|
20981
20989
|
// dropdownMenuStyle={{ textAlign: "right" }}
|
|
20982
20990
|
showArrow: false,
|
|
@@ -20990,14 +20998,14 @@ var useColumns$1 = (function (form) {
|
|
|
20990
20998
|
setChangeField('taxRate');
|
|
20991
20999
|
onChangeTaxRate$1(controller, form, record);
|
|
20992
21000
|
}
|
|
20993
|
-
}, taxRateList.map(function (e, i) {
|
|
20994
|
-
return
|
|
21001
|
+
}, (record.goodsTaxRateList || taxRateList).map(function (e, i) {
|
|
21002
|
+
return React.createElement(Select$1.Option, {
|
|
20995
21003
|
key: i,
|
|
20996
21004
|
value: e
|
|
20997
21005
|
}, e, "%");
|
|
20998
21006
|
}))));
|
|
20999
21007
|
} else {
|
|
21000
|
-
return
|
|
21008
|
+
return React.createElement("span", {
|
|
21001
21009
|
style: {
|
|
21002
21010
|
padding: '0 10px'
|
|
21003
21011
|
}
|
|
@@ -21005,7 +21013,7 @@ var useColumns$1 = (function (form) {
|
|
|
21005
21013
|
}
|
|
21006
21014
|
}
|
|
21007
21015
|
}, {
|
|
21008
|
-
title:
|
|
21016
|
+
title: React.createElement(TitleText$1, {
|
|
21009
21017
|
rules: (_columnsReplenish$tax = columnsReplenish['taxAmount']) === null || _columnsReplenish$tax === void 0 ? void 0 : _columnsReplenish$tax.rules
|
|
21010
21018
|
}, "\u7A0E\u989D"),
|
|
21011
21019
|
dataIndex: 'taxAmount',
|
|
@@ -21017,11 +21025,11 @@ var useColumns$1 = (function (form) {
|
|
|
21017
21025
|
return getFieldDecorator('taxAmount', {
|
|
21018
21026
|
initialValue: editGood.taxAmount,
|
|
21019
21027
|
rules: getReplenishRules('taxAmount')
|
|
21020
|
-
})(
|
|
21028
|
+
})(React.createElement(MyDiv$2, {
|
|
21021
21029
|
loading: isCipher$1(changeField, 'taxAmount')
|
|
21022
21030
|
}));
|
|
21023
21031
|
} else {
|
|
21024
|
-
return
|
|
21032
|
+
return React.createElement("span", {
|
|
21025
21033
|
style: {
|
|
21026
21034
|
padding: '0 10px'
|
|
21027
21035
|
}
|
|
@@ -21058,7 +21066,7 @@ var useColumns$1 = (function (form) {
|
|
|
21058
21066
|
ellipsis: true
|
|
21059
21067
|
});
|
|
21060
21068
|
});
|
|
21061
|
-
}, [isTaxIncluded, editGood, controller, taxRateList, changeField, deduction, isMyShow, searchValue, model, columnsReplenish, isStart]); // React.useEffect(() => {
|
|
21069
|
+
}, [isTaxIncluded, editGood, controller, taxRateList, changeField, deduction, isMyShow, searchValue, model, columnsReplenish, isStart, calculateType]); // React.useEffect(() => {
|
|
21062
21070
|
// clearTimeout(t)
|
|
21063
21071
|
// const t = setTimeout(() => { setChangeField('') }, 1000);
|
|
21064
21072
|
// return () => { clearTimeout(t) }
|
|
@@ -21088,13 +21096,13 @@ var MyInput$2 = /*#__PURE__*/function (_React$Component) {
|
|
|
21088
21096
|
key: "render",
|
|
21089
21097
|
value: function render() {
|
|
21090
21098
|
if (this.props.loading) {
|
|
21091
|
-
return
|
|
21099
|
+
return React.createElement(Spin$1, {
|
|
21092
21100
|
size: "small"
|
|
21093
|
-
},
|
|
21101
|
+
}, React.createElement(Input$1, _objectSpread2(_objectSpread2({}, this.props), {}, {
|
|
21094
21102
|
autoComplete: "off"
|
|
21095
21103
|
})));
|
|
21096
21104
|
} else {
|
|
21097
|
-
return
|
|
21105
|
+
return React.createElement(Input$1, _objectSpread2(_objectSpread2({}, this.props), {}, {
|
|
21098
21106
|
autoComplete: "off"
|
|
21099
21107
|
}));
|
|
21100
21108
|
}
|
|
@@ -21119,15 +21127,15 @@ var MyDiv$2 = /*#__PURE__*/function (_React$Component2) {
|
|
|
21119
21127
|
key: "render",
|
|
21120
21128
|
value: function render() {
|
|
21121
21129
|
if (this.props.loading) {
|
|
21122
|
-
return
|
|
21130
|
+
return React.createElement(Spin$1, {
|
|
21123
21131
|
size: "small"
|
|
21124
|
-
},
|
|
21132
|
+
}, React.createElement("span", {
|
|
21125
21133
|
style: {
|
|
21126
21134
|
padding: '0 10px'
|
|
21127
21135
|
}
|
|
21128
21136
|
}, this.props.value));
|
|
21129
21137
|
} else {
|
|
21130
|
-
return
|
|
21138
|
+
return React.createElement("span", {
|
|
21131
21139
|
style: {
|
|
21132
21140
|
padding: '0 10px'
|
|
21133
21141
|
}
|
|
@@ -21160,32 +21168,32 @@ var MyItemNameDiv$1 = /*#__PURE__*/function (_React$Component3) {
|
|
|
21160
21168
|
|
|
21161
21169
|
if (isMyShow) {
|
|
21162
21170
|
if (valueT) {
|
|
21163
|
-
return
|
|
21171
|
+
return React.createElement(Tooltip$1, {
|
|
21164
21172
|
title: valueT
|
|
21165
|
-
},
|
|
21173
|
+
}, React.createElement("span", {
|
|
21166
21174
|
style: _objectSpread2(_objectSpread2({}, MyItemNameStyle), {}, {
|
|
21167
21175
|
color: '#0074ff'
|
|
21168
21176
|
})
|
|
21169
21177
|
}, valueT));
|
|
21170
21178
|
} else {
|
|
21171
|
-
return
|
|
21179
|
+
return React.createElement(Tooltip$1, {
|
|
21172
21180
|
title: valueF
|
|
21173
|
-
},
|
|
21181
|
+
}, React.createElement("span", {
|
|
21174
21182
|
style: MyItemNameStyle
|
|
21175
21183
|
}, valueF));
|
|
21176
21184
|
}
|
|
21177
21185
|
} else {
|
|
21178
21186
|
if (valueF) {
|
|
21179
|
-
return
|
|
21187
|
+
return React.createElement(Tooltip$1, {
|
|
21180
21188
|
title: valueF
|
|
21181
|
-
},
|
|
21189
|
+
}, React.createElement("span", {
|
|
21182
21190
|
style: MyItemNameStyle
|
|
21183
21191
|
}, valueF));
|
|
21184
21192
|
} else {
|
|
21185
|
-
return
|
|
21193
|
+
return React.createElement(Tooltip$1, {
|
|
21186
21194
|
title: valueT,
|
|
21187
21195
|
style: MyItemNameStyle
|
|
21188
|
-
},
|
|
21196
|
+
}, React.createElement("span", {
|
|
21189
21197
|
style: _objectSpread2(_objectSpread2({}, MyItemNameStyle), {}, {
|
|
21190
21198
|
color: '#0074ff'
|
|
21191
21199
|
})
|
|
@@ -21207,7 +21215,7 @@ function formatSearch$1(value, search) {
|
|
|
21207
21215
|
return dcoding$1(e);
|
|
21208
21216
|
}).join("<span class=\"kts-invoice-operate-goods-list-table-search-protrude\" >".concat(search, "</span>"));
|
|
21209
21217
|
|
|
21210
|
-
return
|
|
21218
|
+
return React.createElement("span", {
|
|
21211
21219
|
dangerouslySetInnerHTML: {
|
|
21212
21220
|
__html: __html
|
|
21213
21221
|
}
|
|
@@ -21258,7 +21266,7 @@ var useOnRow$1 = (function () {
|
|
|
21258
21266
|
while (1) {
|
|
21259
21267
|
switch (_context2.prev = _context2.next) {
|
|
21260
21268
|
case 0:
|
|
21261
|
-
if (!(model === '
|
|
21269
|
+
if (!(model === 'readOnly')) {
|
|
21262
21270
|
_context2.next = 2;
|
|
21263
21271
|
break;
|
|
21264
21272
|
}
|
|
@@ -21266,46 +21274,50 @@ var useOnRow$1 = (function () {
|
|
|
21266
21274
|
return _context2.abrupt("return");
|
|
21267
21275
|
|
|
21268
21276
|
case 2:
|
|
21269
|
-
if (!(model === 'readOnly')) {
|
|
21270
|
-
_context2.next = 4;
|
|
21271
|
-
break;
|
|
21272
|
-
}
|
|
21273
|
-
|
|
21274
|
-
return _context2.abrupt("return");
|
|
21275
|
-
|
|
21276
|
-
case 4:
|
|
21277
21277
|
editGood = controller.state.goodsListState.editGood;
|
|
21278
21278
|
|
|
21279
21279
|
if (!(record.lineAttribute !== LineAttributeType$1.正常)) {
|
|
21280
|
-
_context2.next =
|
|
21280
|
+
_context2.next = 5;
|
|
21281
21281
|
break;
|
|
21282
21282
|
}
|
|
21283
21283
|
|
|
21284
21284
|
return _context2.abrupt("return");
|
|
21285
21285
|
|
|
21286
|
-
case
|
|
21286
|
+
case 5:
|
|
21287
21287
|
if (!editGood) {
|
|
21288
|
-
_context2.next =
|
|
21288
|
+
_context2.next = 20;
|
|
21289
21289
|
break;
|
|
21290
21290
|
}
|
|
21291
21291
|
|
|
21292
21292
|
if (!(editGood.$index === record.$index)) {
|
|
21293
|
-
_context2.next =
|
|
21293
|
+
_context2.next = 8;
|
|
21294
21294
|
break;
|
|
21295
21295
|
}
|
|
21296
21296
|
|
|
21297
21297
|
return _context2.abrupt("return");
|
|
21298
21298
|
|
|
21299
|
+
case 8:
|
|
21300
|
+
_context2.next = 10;
|
|
21301
|
+
return controller.saveEditGood();
|
|
21302
|
+
|
|
21299
21303
|
case 10:
|
|
21300
21304
|
_context2.next = 12;
|
|
21301
|
-
return controller.
|
|
21305
|
+
return controller.wait();
|
|
21302
21306
|
|
|
21303
21307
|
case 12:
|
|
21304
|
-
|
|
21305
|
-
|
|
21308
|
+
if (!(controller.getGoodsTaxRateList && record.taxClassificationCode && !record.goodsTaxRateList)) {
|
|
21309
|
+
_context2.next = 16;
|
|
21310
|
+
break;
|
|
21311
|
+
}
|
|
21306
21312
|
|
|
21307
|
-
|
|
21308
|
-
|
|
21313
|
+
_context2.next = 15;
|
|
21314
|
+
return controller.getGoodsTaxRateList(record.taxClassificationCode);
|
|
21315
|
+
|
|
21316
|
+
case 15:
|
|
21317
|
+
record.goodsTaxRateList = _context2.sent;
|
|
21318
|
+
|
|
21319
|
+
case 16:
|
|
21320
|
+
_context2.next = 18;
|
|
21309
21321
|
return controller.pipeline( /*#__PURE__*/function () {
|
|
21310
21322
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(s) {
|
|
21311
21323
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -21335,15 +21347,27 @@ var useOnRow$1 = (function () {
|
|
|
21335
21347
|
};
|
|
21336
21348
|
}())();
|
|
21337
21349
|
|
|
21338
|
-
case
|
|
21339
|
-
_context2.next =
|
|
21350
|
+
case 18:
|
|
21351
|
+
_context2.next = 26;
|
|
21340
21352
|
break;
|
|
21341
21353
|
|
|
21342
|
-
case
|
|
21343
|
-
|
|
21354
|
+
case 20:
|
|
21355
|
+
if (!(controller.getGoodsTaxRateList && record.taxClassificationCode && !record.goodsTaxRateList)) {
|
|
21356
|
+
_context2.next = 24;
|
|
21357
|
+
break;
|
|
21358
|
+
}
|
|
21359
|
+
|
|
21360
|
+
_context2.next = 23;
|
|
21361
|
+
return controller.getGoodsTaxRateList(record.taxClassificationCode);
|
|
21362
|
+
|
|
21363
|
+
case 23:
|
|
21364
|
+
record.goodsTaxRateList = _context2.sent;
|
|
21365
|
+
|
|
21366
|
+
case 24:
|
|
21367
|
+
_context2.next = 26;
|
|
21344
21368
|
return controller.setEditGood(record);
|
|
21345
21369
|
|
|
21346
|
-
case
|
|
21370
|
+
case 26:
|
|
21347
21371
|
case "end":
|
|
21348
21372
|
return _context2.stop();
|
|
21349
21373
|
}
|
|
@@ -21601,7 +21625,7 @@ var useRowSelection$1 = (function () {
|
|
|
21601
21625
|
};
|
|
21602
21626
|
}(), [controller]);
|
|
21603
21627
|
var columnTitle = React.useMemo(function () {
|
|
21604
|
-
return
|
|
21628
|
+
return React.createElement(Checkbox, {
|
|
21605
21629
|
onChange: onClickSelectAll,
|
|
21606
21630
|
indeterminate: indeterminate,
|
|
21607
21631
|
checked: isAll
|
|
@@ -21750,19 +21774,19 @@ var useDelRowButton$1 = (function () {
|
|
|
21750
21774
|
}, _callee2);
|
|
21751
21775
|
})), []);
|
|
21752
21776
|
var menuItem = React.useMemo(function () {
|
|
21753
|
-
if (model === 'prefab') return
|
|
21754
|
-
if (model === 'readOnly') return
|
|
21755
|
-
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, {
|
|
21756
21780
|
key: "1",
|
|
21757
21781
|
onClick: onClick,
|
|
21758
21782
|
disabled: disabled
|
|
21759
21783
|
}, " \u5220\u9664\u884C ");
|
|
21760
21784
|
}, [model, onClick, disabled]);
|
|
21761
21785
|
var button = React.useMemo(function () {
|
|
21762
|
-
if (isRemRow === false) return
|
|
21763
|
-
if (model === 'prefab') return
|
|
21764
|
-
if (model === 'readOnly') return
|
|
21765
|
-
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, {
|
|
21766
21790
|
size: 'small',
|
|
21767
21791
|
onClick: onClick,
|
|
21768
21792
|
disabled: disabled
|
|
@@ -21993,16 +22017,16 @@ var useAddDiscountRowButton$1 = (function () {
|
|
|
21993
22017
|
}, [isAddDiscount, model]);
|
|
21994
22018
|
var button = React.useMemo(function () {
|
|
21995
22019
|
if (isEnable) {
|
|
21996
|
-
return
|
|
22020
|
+
return React.createElement(React.Fragment, null, React.createElement(Button$1, {
|
|
21997
22021
|
size: 'small',
|
|
21998
22022
|
onClick: onOpen,
|
|
21999
22023
|
disabled: disabled
|
|
22000
|
-
}, "\u6DFB\u52A0\u6298\u6263"),
|
|
22024
|
+
}, "\u6DFB\u52A0\u6298\u6263"), React.createElement(AddDiscountRowDrawer, {
|
|
22001
22025
|
open: open,
|
|
22002
22026
|
onClose: onClose
|
|
22003
22027
|
}));
|
|
22004
22028
|
} else {
|
|
22005
|
-
return
|
|
22029
|
+
return React.createElement(React.Fragment, null);
|
|
22006
22030
|
}
|
|
22007
22031
|
}, [open, onOpen, onClose, isEnable, disabled]);
|
|
22008
22032
|
return {
|
|
@@ -22183,35 +22207,35 @@ function AddDiscountRowDrawer(props) {
|
|
|
22183
22207
|
discolineValue: undefined
|
|
22184
22208
|
}));
|
|
22185
22209
|
}, [formValues === null || formValues === void 0 ? void 0 : formValues.discolineType]);
|
|
22186
|
-
return
|
|
22210
|
+
return React.createElement(Drawer$1, {
|
|
22187
22211
|
title: "\u6DFB\u52A0\u6298\u6263",
|
|
22188
22212
|
placement: "right",
|
|
22189
22213
|
width: 350,
|
|
22190
22214
|
onClose: onClose,
|
|
22191
22215
|
open: open,
|
|
22192
|
-
footer:
|
|
22216
|
+
footer: React.createElement(Space, {
|
|
22193
22217
|
size: "middle",
|
|
22194
22218
|
style: {
|
|
22195
22219
|
display: 'flex',
|
|
22196
22220
|
justifyContent: 'end'
|
|
22197
22221
|
}
|
|
22198
|
-
},
|
|
22222
|
+
}, React.createElement(Button$1, {
|
|
22199
22223
|
onClick: onDefine,
|
|
22200
22224
|
type: 'primary'
|
|
22201
|
-
}, "\u786E\u5B9A"),
|
|
22225
|
+
}, "\u786E\u5B9A"), React.createElement(Button$1, {
|
|
22202
22226
|
onClick: onClose
|
|
22203
22227
|
}, "\u53D6\u6D88"))
|
|
22204
|
-
},
|
|
22228
|
+
}, React.createElement(Form$1, {
|
|
22205
22229
|
form: form,
|
|
22206
22230
|
layout: 'vertical',
|
|
22207
22231
|
onChange: onChangeForm
|
|
22208
|
-
},
|
|
22232
|
+
}, React.createElement(Form$1.Item, {
|
|
22209
22233
|
label: "\u5546\u54C1\u91D1\u989D\uFF08\u542B\u7A0E\uFF09"
|
|
22210
|
-
}, totalAmount.toFixed(2), "\uFF08\u5171 ", discountGood.length, " \u884C\uFF09"),
|
|
22234
|
+
}, totalAmount.toFixed(2), "\uFF08\u5171 ", discountGood.length, " \u884C\uFF09"), React.createElement(Form$1.Item, {
|
|
22211
22235
|
label: "\u6298\u6263\u65B9\u5F0F",
|
|
22212
22236
|
name: 'discolineType',
|
|
22213
22237
|
initialValue: '1'
|
|
22214
|
-
},
|
|
22238
|
+
}, React.createElement(Radio.Group, {
|
|
22215
22239
|
options: [{
|
|
22216
22240
|
label: '按金额折扣',
|
|
22217
22241
|
value: '1'
|
|
@@ -22219,7 +22243,7 @@ function AddDiscountRowDrawer(props) {
|
|
|
22219
22243
|
label: '按比例折扣',
|
|
22220
22244
|
value: '2'
|
|
22221
22245
|
}]
|
|
22222
|
-
})), (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, {
|
|
22223
22247
|
label: "\u6298\u6263\u6BD4\u4F8B\uFF08%\uFF09\uFF08\u542B\u7A0E\uFF09",
|
|
22224
22248
|
name: 'discolineValue',
|
|
22225
22249
|
rules: [{
|
|
@@ -22270,11 +22294,11 @@ function AddDiscountRowDrawer(props) {
|
|
|
22270
22294
|
return validator;
|
|
22271
22295
|
}()
|
|
22272
22296
|
}]
|
|
22273
|
-
},
|
|
22297
|
+
}, React.createElement(InputNumber, {
|
|
22274
22298
|
style: {
|
|
22275
22299
|
width: '100%'
|
|
22276
22300
|
}
|
|
22277
|
-
})) :
|
|
22301
|
+
})) : React.createElement(Form$1.Item, {
|
|
22278
22302
|
label: "\u6298\u6263\u91D1\u989D\uFF08\u5143\uFF09\uFF08\u542B\u7A0E\uFF09",
|
|
22279
22303
|
name: 'discolineValue',
|
|
22280
22304
|
rules: [{
|
|
@@ -22325,7 +22349,7 @@ function AddDiscountRowDrawer(props) {
|
|
|
22325
22349
|
return validator;
|
|
22326
22350
|
}()
|
|
22327
22351
|
}]
|
|
22328
|
-
},
|
|
22352
|
+
}, React.createElement(InputNumber, {
|
|
22329
22353
|
style: {
|
|
22330
22354
|
width: '100%'
|
|
22331
22355
|
}
|
|
@@ -22469,16 +22493,16 @@ var useEndowCodeButton$1 = (function () {
|
|
|
22469
22493
|
}, _callee2);
|
|
22470
22494
|
})), [controller]);
|
|
22471
22495
|
var menuItem = React.useMemo(function () {
|
|
22472
|
-
if (model === 'readOnly') return
|
|
22473
|
-
return
|
|
22496
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
22497
|
+
return React.createElement(Menu$1.Item, {
|
|
22474
22498
|
key: "2",
|
|
22475
22499
|
onClick: onClick,
|
|
22476
22500
|
disabled: disabled
|
|
22477
22501
|
}, "\u6279\u91CF\u8D4B\u7801");
|
|
22478
22502
|
}, [onClick, disabled, model]);
|
|
22479
22503
|
var button = React.useMemo(function () {
|
|
22480
|
-
if (model === 'readOnly') return
|
|
22481
|
-
return
|
|
22504
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
22505
|
+
return React.createElement(Button$1, {
|
|
22482
22506
|
onClick: onClick,
|
|
22483
22507
|
disabled: disabled,
|
|
22484
22508
|
size: 'small'
|
|
@@ -22540,14 +22564,14 @@ var useEmptyRefill = (function () {
|
|
|
22540
22564
|
}());
|
|
22541
22565
|
}, [controller]);
|
|
22542
22566
|
var button = React.useMemo(function () {
|
|
22543
|
-
if (model === 'readOnly') return
|
|
22544
|
-
if (model === 'prefab') return
|
|
22545
|
-
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, {
|
|
22546
22570
|
title: "\u5C06\u8981\u6E05\u7A7A\u6240\u6709\u9879\u76EE\u4FE1\u606F\uFF0C\u662F\u5426\u7EE7\u7EED",
|
|
22547
22571
|
onConfirm: confirm,
|
|
22548
22572
|
okText: "\u786E\u5B9A",
|
|
22549
22573
|
cancelText: "\u53D6\u6D88"
|
|
22550
|
-
},
|
|
22574
|
+
}, React.createElement(Button$1, {
|
|
22551
22575
|
size: 'small'
|
|
22552
22576
|
}, "\u6E05\u7A7A\u91CD\u586B"));
|
|
22553
22577
|
}, [model, confirm]);
|
|
@@ -22614,14 +22638,14 @@ function InvoiceTypeModal(props) {
|
|
|
22614
22638
|
setValues(values);
|
|
22615
22639
|
}
|
|
22616
22640
|
}, [props.open, props.defaultBillingType, props.defaultBusiness, props.defaultInvoiceType, form]);
|
|
22617
|
-
return
|
|
22641
|
+
return React.createElement(Modal, {
|
|
22618
22642
|
title: props.modalTitle || "选择开具信息",
|
|
22619
22643
|
open: props.open,
|
|
22620
22644
|
onOk: onConfirm,
|
|
22621
22645
|
onCancel: props.onCancel,
|
|
22622
22646
|
okText: "\u786E\u5B9A",
|
|
22623
22647
|
cancelText: "\u53D6\u6D88"
|
|
22624
|
-
},
|
|
22648
|
+
}, React.createElement(Form$1, {
|
|
22625
22649
|
form: form,
|
|
22626
22650
|
layout: "vertical",
|
|
22627
22651
|
style: {
|
|
@@ -22630,13 +22654,13 @@ function InvoiceTypeModal(props) {
|
|
|
22630
22654
|
onValuesChange: function onValuesChange(_, e) {
|
|
22631
22655
|
setValues(e);
|
|
22632
22656
|
}
|
|
22633
|
-
},
|
|
22657
|
+
}, React.createElement(Row, {
|
|
22634
22658
|
gutter: [16, 16]
|
|
22635
|
-
},
|
|
22659
|
+
}, React.createElement(Col, {
|
|
22636
22660
|
span: 24
|
|
22637
|
-
},
|
|
22661
|
+
}, React.createElement(Form$1.Item, {
|
|
22638
22662
|
name: 'billingType'
|
|
22639
|
-
},
|
|
22663
|
+
}, React.createElement(Radio.Group, {
|
|
22640
22664
|
size: 'large',
|
|
22641
22665
|
className: "goods-list-digtal-reselect-invoice-typeModal-radio",
|
|
22642
22666
|
optionType: "button",
|
|
@@ -22649,27 +22673,27 @@ function InvoiceTypeModal(props) {
|
|
|
22649
22673
|
label: '税控发票',
|
|
22650
22674
|
value: 'taxation'
|
|
22651
22675
|
}]
|
|
22652
|
-
}))),
|
|
22676
|
+
}))), React.createElement(Col, {
|
|
22653
22677
|
span: 12
|
|
22654
|
-
},
|
|
22678
|
+
}, React.createElement(Form$1.Item, {
|
|
22655
22679
|
name: 'invoiceType',
|
|
22656
22680
|
label: "\u9009\u62E9\u7968\u7C7B",
|
|
22657
22681
|
rules: [{
|
|
22658
22682
|
required: true,
|
|
22659
22683
|
message: '选择票类必填'
|
|
22660
22684
|
}]
|
|
22661
|
-
},
|
|
22685
|
+
}, React.createElement(Select$1, {
|
|
22662
22686
|
size: 'large',
|
|
22663
22687
|
allowClear: true,
|
|
22664
22688
|
placeholder: "\u8BF7\u9009\u62E9\uFF08\u5FC5\u586B\u9879\uFF09",
|
|
22665
22689
|
disabled: disableds.indexOf('invoiceType') >= 0,
|
|
22666
22690
|
options: props.invoiceTypeOptions
|
|
22667
|
-
}))),
|
|
22691
|
+
}))), React.createElement(Col, {
|
|
22668
22692
|
span: 12
|
|
22669
|
-
},
|
|
22693
|
+
}, React.createElement(Form$1.Item, {
|
|
22670
22694
|
name: 'business',
|
|
22671
22695
|
label: "\u7279\u5B9A\u4E1A\u52A1"
|
|
22672
|
-
},
|
|
22696
|
+
}, React.createElement(Select$1, {
|
|
22673
22697
|
size: 'large',
|
|
22674
22698
|
allowClear: true,
|
|
22675
22699
|
placeholder: "\u8BF7\u9009\u62E9\uFF08\u975E\u5FC5\u586B\u9879\uFF09",
|
|
@@ -22714,11 +22738,11 @@ var useReselectInvoiceType = (function () {
|
|
|
22714
22738
|
return true;
|
|
22715
22739
|
}, [model, typeModalProps === null || typeModalProps === void 0 ? void 0 : typeModalProps.isDisabled]);
|
|
22716
22740
|
var button = React.useMemo(function () {
|
|
22717
|
-
if (isEnable === false) return
|
|
22718
|
-
return
|
|
22741
|
+
if (isEnable === false) return React.createElement(React.Fragment, null);
|
|
22742
|
+
return React.createElement(React.Fragment, null, React.createElement(Button$1, {
|
|
22719
22743
|
size: 'small',
|
|
22720
22744
|
onClick: onOpen
|
|
22721
|
-
}, "\u91CD\u9009\u53D1\u7968\u7C7B\u578B"),
|
|
22745
|
+
}, "\u91CD\u9009\u53D1\u7968\u7C7B\u578B"), React.createElement(InvoiceTypeModal, _objectSpread2(_objectSpread2({}, typeModalProps), {}, {
|
|
22722
22746
|
open: open,
|
|
22723
22747
|
onCancel: onClose,
|
|
22724
22748
|
onOk: onOk
|
|
@@ -22746,7 +22770,7 @@ var GoodsList$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
22746
22770
|
_createClass(GoodsList, [{
|
|
22747
22771
|
key: "render",
|
|
22748
22772
|
value: function render() {
|
|
22749
|
-
return
|
|
22773
|
+
return React.createElement(Main$3, _objectSpread2({}, this.props));
|
|
22750
22774
|
}
|
|
22751
22775
|
}]);
|
|
22752
22776
|
|
|
@@ -22947,20 +22971,20 @@ var Main$3 = decorator(Form.create())(function (props) {
|
|
|
22947
22971
|
};
|
|
22948
22972
|
}())();
|
|
22949
22973
|
}, [controller, props.isSwitchTax]);
|
|
22950
|
-
return
|
|
22974
|
+
return React.createElement("div", {
|
|
22951
22975
|
className: "kts-invoice-operate-goods-list-digtal",
|
|
22952
22976
|
onClick: function onClick(e) {
|
|
22953
22977
|
e.stopPropagation();
|
|
22954
22978
|
}
|
|
22955
|
-
},
|
|
22979
|
+
}, React.createElement("div", {
|
|
22956
22980
|
className: "kts-invoice-operate-goods-list-able"
|
|
22957
|
-
},
|
|
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", {
|
|
22958
22982
|
style: {
|
|
22959
22983
|
flex: 1
|
|
22960
22984
|
}
|
|
22961
|
-
}), props.menuExpansion, reselectInvoiceType.button, emptyRefill.button),
|
|
22985
|
+
}), props.menuExpansion, reselectInvoiceType.button, emptyRefill.button), React.createElement("div", {
|
|
22962
22986
|
className: classNames('kts-invoice-operate-goods-list-table-digtal')
|
|
22963
|
-
},
|
|
22987
|
+
}, React.createElement(TableVirtual$1, {
|
|
22964
22988
|
size: "small",
|
|
22965
22989
|
rowKey: "$index",
|
|
22966
22990
|
pagination: false,
|
|
@@ -22982,7 +23006,7 @@ var Main$3 = decorator(Form.create())(function (props) {
|
|
|
22982
23006
|
}
|
|
22983
23007
|
};
|
|
22984
23008
|
}
|
|
22985
|
-
})),
|
|
23009
|
+
})), React.createElement("div", null, React.createElement(Statistics$1, null)));
|
|
22986
23010
|
});
|
|
22987
23011
|
|
|
22988
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";
|
|
@@ -23004,31 +23028,31 @@ var RealEstateInfo = decorator(Form.create())(function (props) {
|
|
|
23004
23028
|
}, [model]); // 注册 form
|
|
23005
23029
|
|
|
23006
23030
|
controller.useForm('realEstateInfo', form);
|
|
23007
|
-
return
|
|
23031
|
+
return React.createElement("div", {
|
|
23008
23032
|
className: "kts-invoice-operate-real-estate-info-digtal"
|
|
23009
|
-
},
|
|
23033
|
+
}, React.createElement("div", {
|
|
23010
23034
|
className: 'real-estate-info-digtal-label'
|
|
23011
|
-
}, "\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, {
|
|
23012
23036
|
gutter: [17, 0]
|
|
23013
|
-
},
|
|
23037
|
+
}, React.createElement(Col$1, {
|
|
23014
23038
|
span: 6
|
|
23015
|
-
},
|
|
23039
|
+
}, React.createElement(Form.Item, {
|
|
23016
23040
|
label: "\u4E0D\u52A8\u4EA7\u5730\u5740"
|
|
23017
23041
|
}, getFieldDecorator('realEstateAddress', {
|
|
23018
23042
|
rules: readOnly ? [] : [{
|
|
23019
23043
|
required: true,
|
|
23020
23044
|
message: '请选择不动产地址'
|
|
23021
23045
|
}]
|
|
23022
|
-
})(readOnly ?
|
|
23046
|
+
})(readOnly ? React.createElement(MyArrString, null) : React.createElement(Cascader, {
|
|
23023
23047
|
style: {
|
|
23024
23048
|
width: '100%'
|
|
23025
23049
|
},
|
|
23026
23050
|
options: props.realEstateAddressOptions,
|
|
23027
23051
|
fieldNames: props.realEstateAddressFieldNames,
|
|
23028
23052
|
placeholder: "\u8BF7\u9009\u62E9\u7701\u5E02\u533A\u53BF"
|
|
23029
|
-
})))),
|
|
23053
|
+
})))), React.createElement(Col$1, {
|
|
23030
23054
|
span: 6
|
|
23031
|
-
},
|
|
23055
|
+
}, React.createElement(Form.Item, {
|
|
23032
23056
|
label: "\u8BE6\u7EC6\u5730\u5740"
|
|
23033
23057
|
}, getFieldDecorator('realEstateDetailedAddress', {
|
|
23034
23058
|
rules: readOnly ? [] : [{
|
|
@@ -23043,43 +23067,43 @@ var RealEstateInfo = decorator(Form.create())(function (props) {
|
|
|
23043
23067
|
return pattern.test(value) ? Promise.resolve() : Promise.reject('地址必须包含“街”、“路”、“村”、“乡”、“镇”、“道”、“巷”、“号”等任意一个关键词');
|
|
23044
23068
|
}
|
|
23045
23069
|
}]
|
|
23046
|
-
})(readOnly ?
|
|
23070
|
+
})(readOnly ? React.createElement(MyDiv$3, null) : React.createElement(Input$2, {
|
|
23047
23071
|
autoComplete: 'off',
|
|
23048
23072
|
placeholder: "\u8BF7\u8F93\u5165\u8BE6\u7EC6\u5730\u5740"
|
|
23049
|
-
})))),
|
|
23073
|
+
})))), React.createElement(Col$1, {
|
|
23050
23074
|
span: 6
|
|
23051
|
-
},
|
|
23075
|
+
}, React.createElement(Form.Item, {
|
|
23052
23076
|
label: "\u79DF\u8D41\u671F\u8D77\u6B62"
|
|
23053
23077
|
}, getFieldDecorator('leaseTerm', {
|
|
23054
23078
|
rules: readOnly ? [] : [{
|
|
23055
23079
|
required: true,
|
|
23056
23080
|
message: '请输入租赁期'
|
|
23057
23081
|
}]
|
|
23058
|
-
})(readOnly ?
|
|
23082
|
+
})(readOnly ? React.createElement(MyArrMoment, null) : React.createElement(RangePicker, {
|
|
23059
23083
|
style: {
|
|
23060
23084
|
width: '100%'
|
|
23061
23085
|
}
|
|
23062
|
-
})))),
|
|
23086
|
+
})))), React.createElement(Col$1, {
|
|
23063
23087
|
span: 6
|
|
23064
|
-
},
|
|
23088
|
+
}, React.createElement(Form.Item, {
|
|
23065
23089
|
label: "\u8DE8\u5730\uFF08\u5E02\uFF09\u6807\u5FD7"
|
|
23066
23090
|
}, getFieldDecorator('crossCitiesSign', {
|
|
23067
23091
|
rules: readOnly ? [] : [{
|
|
23068
23092
|
required: true,
|
|
23069
23093
|
message: '请选择跨地(市)标志'
|
|
23070
23094
|
}]
|
|
23071
|
-
})(readOnly ?
|
|
23095
|
+
})(readOnly ? React.createElement(MyNY, null) : React.createElement(Select$2, {
|
|
23072
23096
|
placeholder: "\u8BF7\u9009\u62E9",
|
|
23073
23097
|
style: {
|
|
23074
23098
|
width: '100%'
|
|
23075
23099
|
}
|
|
23076
|
-
},
|
|
23100
|
+
}, React.createElement(Select$2.Option, {
|
|
23077
23101
|
value: 'Y'
|
|
23078
|
-
}, "\u662F"),
|
|
23102
|
+
}, "\u662F"), React.createElement(Select$2.Option, {
|
|
23079
23103
|
value: 'N'
|
|
23080
|
-
}, "\u5426"))))),
|
|
23104
|
+
}, "\u5426"))))), React.createElement(Col$1, {
|
|
23081
23105
|
span: 6
|
|
23082
|
-
},
|
|
23106
|
+
}, React.createElement(Form.Item, {
|
|
23083
23107
|
label: "\u4EA7\u6743\u8BC1\u4E66/\u4E0D\u52A8\u4EA7\u6743\u8BC1\u53F7"
|
|
23084
23108
|
}, getFieldDecorator('realEstateNumber', {
|
|
23085
23109
|
rules: readOnly ? [] : [{
|
|
@@ -23089,36 +23113,36 @@ var RealEstateInfo = decorator(Form.create())(function (props) {
|
|
|
23089
23113
|
max: 40,
|
|
23090
23114
|
message: '证书编号最多40个字符'
|
|
23091
23115
|
}]
|
|
23092
|
-
})(readOnly ?
|
|
23116
|
+
})(readOnly ? React.createElement(MyDiv$3, null) : React.createElement(Input$2, {
|
|
23093
23117
|
autoComplete: 'off',
|
|
23094
23118
|
placeholder: "\u8BF7\u8F93\u5165\u8BC1\u4E66\u7F16\u53F7\uFF0C\u82E5\u6CA1\u6709\u8BC1\u4E66\u586B\u5199\u201C\u65E0\u201D"
|
|
23095
|
-
})))),
|
|
23119
|
+
})))), React.createElement(Col$1, {
|
|
23096
23120
|
span: 6
|
|
23097
|
-
},
|
|
23121
|
+
}, React.createElement(Form.Item, {
|
|
23098
23122
|
label: "\u9762\u79EF\u5355\u4F4D"
|
|
23099
23123
|
}, getFieldDecorator('realEstateUnit', {
|
|
23100
23124
|
rules: readOnly ? [] : [{
|
|
23101
23125
|
required: true,
|
|
23102
23126
|
message: '请选择面积单位'
|
|
23103
23127
|
}]
|
|
23104
|
-
})(readOnly ?
|
|
23128
|
+
})(readOnly ? React.createElement(MyDiv$3, null) : React.createElement(Select$2, {
|
|
23105
23129
|
placeholder: "\u8BF7\u9009\u62E9",
|
|
23106
23130
|
style: {
|
|
23107
23131
|
width: '100%'
|
|
23108
23132
|
}
|
|
23109
|
-
},
|
|
23133
|
+
}, React.createElement(Select$2.Option, {
|
|
23110
23134
|
value: "\u5E73\u65B9\u5343\u7C73"
|
|
23111
|
-
}, "\u5E73\u65B9\u5343\u7C73"),
|
|
23135
|
+
}, "\u5E73\u65B9\u5343\u7C73"), React.createElement(Select$2.Option, {
|
|
23112
23136
|
value: "\u5E73\u65B9\u7C73"
|
|
23113
|
-
}, "\u5E73\u65B9\u7C73"),
|
|
23137
|
+
}, "\u5E73\u65B9\u7C73"), React.createElement(Select$2.Option, {
|
|
23114
23138
|
value: "\u516C\u9877"
|
|
23115
|
-
}, "\u516C\u9877"),
|
|
23139
|
+
}, "\u516C\u9877"), React.createElement(Select$2.Option, {
|
|
23116
23140
|
value: "\u4EA9"
|
|
23117
|
-
}, "\u4EA9"),
|
|
23141
|
+
}, "\u4EA9"), React.createElement(Select$2.Option, {
|
|
23118
23142
|
value: "h\u33A1"
|
|
23119
|
-
}, "h\u33A1"),
|
|
23143
|
+
}, "h\u33A1"), React.createElement(Select$2.Option, {
|
|
23120
23144
|
value: "k\u33A1"
|
|
23121
|
-
}, "k\u33A1"),
|
|
23145
|
+
}, "k\u33A1"), React.createElement(Select$2.Option, {
|
|
23122
23146
|
value: "\u33A1"
|
|
23123
23147
|
}, "\u33A1")))))));
|
|
23124
23148
|
});
|
|
@@ -23137,7 +23161,7 @@ var MyDiv$3 = /*#__PURE__*/function (_React$Component) {
|
|
|
23137
23161
|
_createClass(MyDiv, [{
|
|
23138
23162
|
key: "render",
|
|
23139
23163
|
value: function render() {
|
|
23140
|
-
return
|
|
23164
|
+
return React.createElement("div", {
|
|
23141
23165
|
style: this.props.style
|
|
23142
23166
|
}, this.props.value);
|
|
23143
23167
|
}
|
|
@@ -23162,7 +23186,7 @@ var MyArrString = /*#__PURE__*/function (_React$Component2) {
|
|
|
23162
23186
|
value: function render() {
|
|
23163
23187
|
var _this$props$value;
|
|
23164
23188
|
|
|
23165
|
-
return
|
|
23189
|
+
return React.createElement("div", {
|
|
23166
23190
|
style: this.props.style
|
|
23167
23191
|
}, (_this$props$value = this.props.value) === null || _this$props$value === void 0 ? void 0 : _this$props$value.filter(function (e) {
|
|
23168
23192
|
return !!e;
|
|
@@ -23189,14 +23213,14 @@ var MyArrMoment = /*#__PURE__*/function (_React$Component3) {
|
|
|
23189
23213
|
value: function render() {
|
|
23190
23214
|
var _this$props$value2 = this.props.value,
|
|
23191
23215
|
value = _this$props$value2 === void 0 ? [] : _this$props$value2;
|
|
23192
|
-
return
|
|
23216
|
+
return React.createElement("div", {
|
|
23193
23217
|
style: this.props.style
|
|
23194
|
-
},
|
|
23218
|
+
}, React.createElement("span", null, hooks.isMoment(value[0]) && value[0].format('YYYY-MM-DD')), React.createElement("span", {
|
|
23195
23219
|
style: {
|
|
23196
23220
|
color: '#9F603D',
|
|
23197
23221
|
fontWeight: 600
|
|
23198
23222
|
}
|
|
23199
|
-
}, " - "),
|
|
23223
|
+
}, " - "), React.createElement("span", null, hooks.isMoment(value[1]) && value[0].format('YYYY-MM-DD')));
|
|
23200
23224
|
}
|
|
23201
23225
|
}]);
|
|
23202
23226
|
|
|
@@ -23217,7 +23241,7 @@ var MyNY = /*#__PURE__*/function (_React$Component4) {
|
|
|
23217
23241
|
_createClass(MyNY, [{
|
|
23218
23242
|
key: "render",
|
|
23219
23243
|
value: function render() {
|
|
23220
|
-
return
|
|
23244
|
+
return React.createElement("div", {
|
|
23221
23245
|
style: this.props.style
|
|
23222
23246
|
}, this.props.value === 'Y' ? '是' : '否');
|
|
23223
23247
|
}
|
|
@@ -23257,7 +23281,7 @@ var ImportBuyerDrawer = (function () {
|
|
|
23257
23281
|
};
|
|
23258
23282
|
}())();
|
|
23259
23283
|
}, [controller]);
|
|
23260
|
-
return
|
|
23284
|
+
return React.createElement(Drawer, {
|
|
23261
23285
|
title: "\u8D2D\u65B9\u5217\u8868",
|
|
23262
23286
|
placement: "right",
|
|
23263
23287
|
// closable={false}
|
|
@@ -23265,7 +23289,7 @@ var ImportBuyerDrawer = (function () {
|
|
|
23265
23289
|
width: 983,
|
|
23266
23290
|
onClose: onClose,
|
|
23267
23291
|
visible: visible
|
|
23268
|
-
}, topExpand,
|
|
23292
|
+
}, topExpand, React.createElement(DrawerBody$1, null));
|
|
23269
23293
|
});
|
|
23270
23294
|
|
|
23271
23295
|
var DrawerBody$1 = function DrawerBody() {
|
|
@@ -23286,7 +23310,7 @@ var DrawerBody$1 = function DrawerBody() {
|
|
|
23286
23310
|
}
|
|
23287
23311
|
});
|
|
23288
23312
|
}, [controller]);
|
|
23289
|
-
return
|
|
23313
|
+
return React.createElement(Table$1, {
|
|
23290
23314
|
bordered: true,
|
|
23291
23315
|
size: "small",
|
|
23292
23316
|
columns: columns,
|
|
@@ -23386,7 +23410,7 @@ var ImportGoodsDrawer = (function () {
|
|
|
23386
23410
|
};
|
|
23387
23411
|
}())();
|
|
23388
23412
|
}, [controller]);
|
|
23389
|
-
return
|
|
23413
|
+
return React.createElement(Drawer, {
|
|
23390
23414
|
title: "\u5546\u54C1\u5217\u8868",
|
|
23391
23415
|
placement: "right",
|
|
23392
23416
|
// closable={false}
|
|
@@ -23394,11 +23418,11 @@ var ImportGoodsDrawer = (function () {
|
|
|
23394
23418
|
width: 983,
|
|
23395
23419
|
onClose: onClose,
|
|
23396
23420
|
visible: visible
|
|
23397
|
-
}, topExpand &&
|
|
23421
|
+
}, topExpand && React.createElement("div", {
|
|
23398
23422
|
style: {
|
|
23399
23423
|
marginBottom: 10
|
|
23400
23424
|
}
|
|
23401
|
-
}, topExpand),
|
|
23425
|
+
}, topExpand), React.createElement(DrawerBody$2, null));
|
|
23402
23426
|
});
|
|
23403
23427
|
|
|
23404
23428
|
var DrawerBody$2 = function DrawerBody() {
|
|
@@ -23420,7 +23444,7 @@ var DrawerBody$2 = function DrawerBody() {
|
|
|
23420
23444
|
}
|
|
23421
23445
|
});
|
|
23422
23446
|
}, [controller]);
|
|
23423
|
-
return
|
|
23447
|
+
return React.createElement(Table$1, {
|
|
23424
23448
|
bordered: true,
|
|
23425
23449
|
size: "small",
|
|
23426
23450
|
columns: columns,
|
|
@@ -23645,7 +23669,7 @@ var EndowCodeDrawer = (function () {
|
|
|
23645
23669
|
if (visible) {
|
|
23646
23670
|
controller.pipeline( /*#__PURE__*/function () {
|
|
23647
23671
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(s) {
|
|
23648
|
-
var endowcodeGoodIndex, good, getDefaultValue;
|
|
23672
|
+
var endowcodeGoodIndex, good, getDefaultValue, goodsTaxRateList;
|
|
23649
23673
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
23650
23674
|
while (1) {
|
|
23651
23675
|
switch (_context2.prev = _context2.next) {
|
|
@@ -23679,19 +23703,40 @@ var EndowCodeDrawer = (function () {
|
|
|
23679
23703
|
case 9:
|
|
23680
23704
|
_context2.t1 = _context2.sent;
|
|
23681
23705
|
(0, _context2.t0)(_context2.t1);
|
|
23682
|
-
_context2.next =
|
|
23706
|
+
_context2.next = 23;
|
|
23683
23707
|
break;
|
|
23684
23708
|
|
|
23685
23709
|
case 13:
|
|
23686
|
-
if (endowcodeGoodIndex.length === 1) {
|
|
23687
|
-
|
|
23688
|
-
|
|
23689
|
-
setDefaultValue({
|
|
23690
|
-
taxRate: good.taxRate
|
|
23691
|
-
});
|
|
23710
|
+
if (!(endowcodeGoodIndex.length === 1)) {
|
|
23711
|
+
_context2.next = 22;
|
|
23712
|
+
break;
|
|
23692
23713
|
}
|
|
23693
23714
|
|
|
23694
|
-
|
|
23715
|
+
if (!(controller.state.goodsListState.isUpdateGoodsTaxRateList && controller.getGoodsTaxRateList && good.taxClassificationCode)) {
|
|
23716
|
+
_context2.next = 19;
|
|
23717
|
+
break;
|
|
23718
|
+
}
|
|
23719
|
+
|
|
23720
|
+
_context2.next = 17;
|
|
23721
|
+
return controller.getGoodsTaxRateList(good.taxClassificationCode);
|
|
23722
|
+
|
|
23723
|
+
case 17:
|
|
23724
|
+
goodsTaxRateList = _context2.sent;
|
|
23725
|
+
good.goodsTaxRateList = goodsTaxRateList; // if (good.taxRate !== undefined && good.taxRate !== null && !goodsTaxRateList.includes(good.taxRate)) {
|
|
23726
|
+
// good.taxRate = undefined;
|
|
23727
|
+
// }
|
|
23728
|
+
|
|
23729
|
+
case 19:
|
|
23730
|
+
setDefaultValue(good);
|
|
23731
|
+
_context2.next = 23;
|
|
23732
|
+
break;
|
|
23733
|
+
|
|
23734
|
+
case 22:
|
|
23735
|
+
setDefaultValue({
|
|
23736
|
+
taxRate: good.taxRate
|
|
23737
|
+
});
|
|
23738
|
+
|
|
23739
|
+
case 23:
|
|
23695
23740
|
case "end":
|
|
23696
23741
|
return _context2.stop();
|
|
23697
23742
|
}
|
|
@@ -23707,7 +23752,7 @@ var EndowCodeDrawer = (function () {
|
|
|
23707
23752
|
setDefaultValue(undefined);
|
|
23708
23753
|
}
|
|
23709
23754
|
}, [visible]);
|
|
23710
|
-
return
|
|
23755
|
+
return React.createElement(Drawer, {
|
|
23711
23756
|
title: "\u8D4B\u7801",
|
|
23712
23757
|
placement: "right",
|
|
23713
23758
|
destroyOnClose: true,
|
|
@@ -23715,7 +23760,7 @@ var EndowCodeDrawer = (function () {
|
|
|
23715
23760
|
width: 383,
|
|
23716
23761
|
onClose: onClose,
|
|
23717
23762
|
visible: visible
|
|
23718
|
-
}, defaultValue &&
|
|
23763
|
+
}, defaultValue && React.createElement(DrawerBody$3, {
|
|
23719
23764
|
defaultValue: defaultValue
|
|
23720
23765
|
}));
|
|
23721
23766
|
});
|
|
@@ -23757,12 +23802,7 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23757
23802
|
/** 税率列表 */
|
|
23758
23803
|
|
|
23759
23804
|
var taxRateList = controller.useMemo(function (s) {
|
|
23760
|
-
return s.goodsListState.taxRateList
|
|
23761
|
-
return {
|
|
23762
|
-
label: "".concat(e, "%"),
|
|
23763
|
-
value: e
|
|
23764
|
-
};
|
|
23765
|
-
});
|
|
23805
|
+
return s.goodsListState.taxRateList;
|
|
23766
23806
|
}, []);
|
|
23767
23807
|
/** 免税类型 列表 */
|
|
23768
23808
|
|
|
@@ -23783,14 +23823,29 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23783
23823
|
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
|
23784
23824
|
taxRate = _React$useState4[0],
|
|
23785
23825
|
setTaxRate = _React$useState4[1];
|
|
23786
|
-
/**
|
|
23826
|
+
/** 商品可用税率 */
|
|
23827
|
+
|
|
23828
|
+
|
|
23829
|
+
var _React$useState5 = React.useState(defaultValue.goodsTaxRateList),
|
|
23830
|
+
_React$useState6 = _slicedToArray(_React$useState5, 2),
|
|
23831
|
+
goodsTaxRateList = _React$useState6[0],
|
|
23832
|
+
setGoodsTaxRateList = _React$useState6[1];
|
|
23787
23833
|
|
|
23834
|
+
var formattedTaxRateList = React.useMemo(function () {
|
|
23835
|
+
return (goodsTaxRateList || taxRateList).map(function (e) {
|
|
23836
|
+
return {
|
|
23837
|
+
label: "".concat(e, "%"),
|
|
23838
|
+
value: e
|
|
23839
|
+
};
|
|
23840
|
+
});
|
|
23841
|
+
}, [goodsTaxRateList, taxRateList]);
|
|
23842
|
+
/** 税收分类编码 选择组件 */
|
|
23788
23843
|
|
|
23789
23844
|
var ShowSearch = React.useCallback(function (props) {
|
|
23790
|
-
var _React$
|
|
23791
|
-
_React$
|
|
23792
|
-
dataSource = _React$
|
|
23793
|
-
setDataSource = _React$
|
|
23845
|
+
var _React$useState7 = React.useState([]),
|
|
23846
|
+
_React$useState8 = _slicedToArray(_React$useState7, 2),
|
|
23847
|
+
dataSource = _React$useState8[0],
|
|
23848
|
+
setDataSource = _React$useState8[1];
|
|
23794
23849
|
|
|
23795
23850
|
var onSearch = React.useCallback( /*#__PURE__*/function () {
|
|
23796
23851
|
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(e) {
|
|
@@ -23855,7 +23910,7 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23855
23910
|
};
|
|
23856
23911
|
}());
|
|
23857
23912
|
}, [actions, dataSource, readOnlyTaxRate]);
|
|
23858
|
-
return
|
|
23913
|
+
return React.createElement(Select, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
23859
23914
|
showSearch: true,
|
|
23860
23915
|
showArrow: false,
|
|
23861
23916
|
notFoundContent: null,
|
|
@@ -23863,7 +23918,7 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23863
23918
|
onSearch: onSearch,
|
|
23864
23919
|
onChange: onChange
|
|
23865
23920
|
}), dataSource.map(function (e) {
|
|
23866
|
-
return
|
|
23921
|
+
return React.createElement(Select.Option, {
|
|
23867
23922
|
key: e.value,
|
|
23868
23923
|
value: e.value
|
|
23869
23924
|
}, e.label);
|
|
@@ -23873,34 +23928,34 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23873
23928
|
|
|
23874
23929
|
var ShowSearch2 = React.useCallback(function (props) {
|
|
23875
23930
|
// 是否显示
|
|
23876
|
-
var _React$
|
|
23877
|
-
_React$useState8 = _slicedToArray(_React$useState7, 2),
|
|
23878
|
-
visible = _React$useState8[0],
|
|
23879
|
-
setVisible = _React$useState8[1]; // 税收分类编码树
|
|
23880
|
-
|
|
23881
|
-
|
|
23882
|
-
var _React$useState9 = React.useState(),
|
|
23931
|
+
var _React$useState9 = React.useState(false),
|
|
23883
23932
|
_React$useState10 = _slicedToArray(_React$useState9, 2),
|
|
23884
|
-
|
|
23885
|
-
|
|
23933
|
+
visible = _React$useState10[0],
|
|
23934
|
+
setVisible = _React$useState10[1]; // 税收分类编码树
|
|
23886
23935
|
|
|
23887
23936
|
|
|
23888
23937
|
var _React$useState11 = React.useState(),
|
|
23889
23938
|
_React$useState12 = _slicedToArray(_React$useState11, 2),
|
|
23890
|
-
|
|
23891
|
-
|
|
23939
|
+
list = _React$useState12[0],
|
|
23940
|
+
setList = _React$useState12[1]; // 搜索条件
|
|
23941
|
+
|
|
23942
|
+
|
|
23943
|
+
var _React$useState13 = React.useState(),
|
|
23944
|
+
_React$useState14 = _slicedToArray(_React$useState13, 2),
|
|
23945
|
+
filter = _React$useState14[0],
|
|
23946
|
+
setFilter = _React$useState14[1];
|
|
23892
23947
|
/** 创建 树节点 */
|
|
23893
23948
|
|
|
23894
23949
|
|
|
23895
23950
|
var createTreeNode = React.useCallback(function () {
|
|
23896
|
-
if (!list) return
|
|
23951
|
+
if (!list) return React.createElement(React.Fragment, null);
|
|
23897
23952
|
return ctn(list);
|
|
23898
23953
|
|
|
23899
23954
|
function title(label) {
|
|
23900
23955
|
if (!filter) return label;
|
|
23901
23956
|
label = (filter.taxCategoryCode ? label.split(new RegExp(filter.taxCategoryCode, 'g')) : [label]).join("<span style=\"color: #1890ff;\">".concat(filter.taxCategoryCode, "</span>"));
|
|
23902
23957
|
label = (filter.val ? label.split(new RegExp(filter.val, 'g')) : [label]).join("<span style=\"color: #1890ff;\">".concat(filter.val, "</span>"));
|
|
23903
|
-
return
|
|
23958
|
+
return React.createElement("span", {
|
|
23904
23959
|
dangerouslySetInnerHTML: {
|
|
23905
23960
|
__html: label
|
|
23906
23961
|
}
|
|
@@ -23909,11 +23964,11 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23909
23964
|
|
|
23910
23965
|
function ctn(l) {
|
|
23911
23966
|
var p = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '0';
|
|
23912
|
-
if (!l || !l.length) return [
|
|
23967
|
+
if (!l || !l.length) return [React.createElement(React.Fragment, null)];
|
|
23913
23968
|
return l.filter(function (e) {
|
|
23914
23969
|
return e.pid === p;
|
|
23915
23970
|
}).map(function (e) {
|
|
23916
|
-
return
|
|
23971
|
+
return React.createElement(TreeNode, {
|
|
23917
23972
|
title: title(e.label),
|
|
23918
23973
|
key: e.id
|
|
23919
23974
|
}, ctn(l, e.id));
|
|
@@ -24026,46 +24081,46 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
24026
24081
|
setList([]);
|
|
24027
24082
|
}
|
|
24028
24083
|
}, [visible]);
|
|
24029
|
-
return
|
|
24084
|
+
return React.createElement(React.Fragment, null, React.createElement(Input, {
|
|
24030
24085
|
readOnly: true,
|
|
24031
24086
|
value: props.value,
|
|
24032
|
-
addonAfter:
|
|
24087
|
+
addonAfter: React.createElement(Button, {
|
|
24033
24088
|
size: "small",
|
|
24034
24089
|
type: "link",
|
|
24035
24090
|
onClick: function onClick() {
|
|
24036
24091
|
setVisible(true);
|
|
24037
24092
|
}
|
|
24038
24093
|
}, "\u70B9\u51FB\u9009\u62E9")
|
|
24039
|
-
}),
|
|
24094
|
+
}), React.createElement(Drawer, {
|
|
24040
24095
|
title: "\u7A0E\u6536\u5206\u7C7B\u7F16\u7801",
|
|
24041
24096
|
visible: visible,
|
|
24042
24097
|
width: 500,
|
|
24043
24098
|
onClose: function onClose() {
|
|
24044
24099
|
setVisible(false);
|
|
24045
24100
|
}
|
|
24046
|
-
},
|
|
24101
|
+
}, React.createElement(Form, {
|
|
24047
24102
|
key: "".concat(visible)
|
|
24048
|
-
},
|
|
24103
|
+
}, React.createElement(Form.Item, {
|
|
24049
24104
|
label: "\u4EA7\u54C1\u6216\u670D\u52A1\u7B80\u79F0"
|
|
24050
|
-
},
|
|
24105
|
+
}, React.createElement(Input, {
|
|
24051
24106
|
onChange: function onChange(e) {
|
|
24052
24107
|
setFilter(_objectSpread2(_objectSpread2({}, filter), {}, {
|
|
24053
24108
|
val: e.target.value
|
|
24054
24109
|
}));
|
|
24055
24110
|
}
|
|
24056
|
-
})),
|
|
24111
|
+
})), React.createElement(Form.Item, {
|
|
24057
24112
|
label: "\u7A0E\u6536\u5206\u7C7B\u7F16\u7801"
|
|
24058
|
-
},
|
|
24113
|
+
}, React.createElement(Input, {
|
|
24059
24114
|
onChange: function onChange(e) {
|
|
24060
24115
|
setFilter(_objectSpread2(_objectSpread2({}, filter), {}, {
|
|
24061
24116
|
taxCategoryCode: e.target.value
|
|
24062
24117
|
}));
|
|
24063
24118
|
}
|
|
24064
|
-
}))), list && list.length > 0 ?
|
|
24119
|
+
}))), list && list.length > 0 ? React.createElement(Tree, {
|
|
24065
24120
|
defaultExpandAll: true,
|
|
24066
24121
|
selectedKeys: [],
|
|
24067
24122
|
onSelect: onSelect
|
|
24068
|
-
}, createTreeNode()) :
|
|
24123
|
+
}, createTreeNode()) : React.createElement("span", {
|
|
24069
24124
|
style: {
|
|
24070
24125
|
color: '#00000073'
|
|
24071
24126
|
}
|
|
@@ -24074,15 +24129,15 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
24074
24129
|
/** 税收分类编码 选择组件3 */
|
|
24075
24130
|
|
|
24076
24131
|
var ShowSearch3 = React.useCallback(function (props) {
|
|
24077
|
-
var _React$
|
|
24078
|
-
_React$useState14 = _slicedToArray(_React$useState13, 2),
|
|
24079
|
-
open = _React$useState14[0],
|
|
24080
|
-
setOpen = _React$useState14[1];
|
|
24081
|
-
|
|
24082
|
-
var _React$useState15 = React.useState([]),
|
|
24132
|
+
var _React$useState15 = React.useState(false),
|
|
24083
24133
|
_React$useState16 = _slicedToArray(_React$useState15, 2),
|
|
24084
|
-
|
|
24085
|
-
|
|
24134
|
+
open = _React$useState16[0],
|
|
24135
|
+
setOpen = _React$useState16[1];
|
|
24136
|
+
|
|
24137
|
+
var _React$useState17 = React.useState([]),
|
|
24138
|
+
_React$useState18 = _slicedToArray(_React$useState17, 2),
|
|
24139
|
+
list = _React$useState18[0],
|
|
24140
|
+
setList = _React$useState18[1];
|
|
24086
24141
|
|
|
24087
24142
|
var onSearch = React.useCallback( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee9() {
|
|
24088
24143
|
var _value$target;
|
|
@@ -24190,16 +24245,55 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
24190
24245
|
}, _callee11);
|
|
24191
24246
|
})), []);
|
|
24192
24247
|
var onSelect = React.useCallback(function (key, info) {
|
|
24193
|
-
//
|
|
24248
|
+
// 根据税编改变税率列表
|
|
24249
|
+
// 如果只有一个,默认选中,有多个时,置空,用户手选
|
|
24250
|
+
if (controller.state.goodsListState.isUpdateGoodsTaxRateList) {
|
|
24251
|
+
var _info$node$taxRateLis;
|
|
24252
|
+
|
|
24253
|
+
if ((_info$node$taxRateLis = info.node.taxRateList) === null || _info$node$taxRateLis === void 0 ? void 0 : _info$node$taxRateLis.length) {
|
|
24254
|
+
setGoodsTaxRateList(info.node.taxRateList);
|
|
24255
|
+
}
|
|
24256
|
+
|
|
24257
|
+
if (!readOnlyTaxRate) {
|
|
24258
|
+
actions.setFieldState('taxRate', /*#__PURE__*/function () {
|
|
24259
|
+
var _ref12 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee12(s) {
|
|
24260
|
+
var _info$node$taxRateLis2;
|
|
24261
|
+
|
|
24262
|
+
return _regeneratorRuntime().wrap(function _callee12$(_context12) {
|
|
24263
|
+
while (1) {
|
|
24264
|
+
switch (_context12.prev = _context12.next) {
|
|
24265
|
+
case 0:
|
|
24266
|
+
if (info.node.taxRateList && ((_info$node$taxRateLis2 = info.node.taxRateList) === null || _info$node$taxRateLis2 === void 0 ? void 0 : _info$node$taxRateLis2.length) === 1) {
|
|
24267
|
+
s.value = info.node.taxRateList[0];
|
|
24268
|
+
} else {
|
|
24269
|
+
s.value = undefined;
|
|
24270
|
+
}
|
|
24271
|
+
|
|
24272
|
+
case 1:
|
|
24273
|
+
case "end":
|
|
24274
|
+
return _context12.stop();
|
|
24275
|
+
}
|
|
24276
|
+
}
|
|
24277
|
+
}, _callee12);
|
|
24278
|
+
}));
|
|
24279
|
+
|
|
24280
|
+
return function (_x8) {
|
|
24281
|
+
return _ref12.apply(this, arguments);
|
|
24282
|
+
};
|
|
24283
|
+
}());
|
|
24284
|
+
}
|
|
24285
|
+
} // !readOnlyTaxRate && actions.setFieldState('taxRate', async s => {
|
|
24194
24286
|
// if (info.node.taxRate || info.taxRate === 0) {
|
|
24195
24287
|
// s.value = info.node.taxRate
|
|
24196
24288
|
// }
|
|
24197
24289
|
// });
|
|
24290
|
+
|
|
24291
|
+
|
|
24198
24292
|
actions.setFieldState('taxClassificationCode', /*#__PURE__*/function () {
|
|
24199
|
-
var
|
|
24200
|
-
return _regeneratorRuntime().wrap(function
|
|
24293
|
+
var _ref13 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee13(s) {
|
|
24294
|
+
return _regeneratorRuntime().wrap(function _callee13$(_context13) {
|
|
24201
24295
|
while (1) {
|
|
24202
|
-
switch (
|
|
24296
|
+
switch (_context13.prev = _context13.next) {
|
|
24203
24297
|
case 0:
|
|
24204
24298
|
if (info.node.taxCategoryCode) {
|
|
24205
24299
|
s.value = info.node.taxCategoryCode;
|
|
@@ -24207,21 +24301,21 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
24207
24301
|
|
|
24208
24302
|
case 1:
|
|
24209
24303
|
case "end":
|
|
24210
|
-
return
|
|
24304
|
+
return _context13.stop();
|
|
24211
24305
|
}
|
|
24212
24306
|
}
|
|
24213
|
-
},
|
|
24307
|
+
}, _callee13);
|
|
24214
24308
|
}));
|
|
24215
24309
|
|
|
24216
|
-
return function (
|
|
24217
|
-
return
|
|
24310
|
+
return function (_x9) {
|
|
24311
|
+
return _ref13.apply(this, arguments);
|
|
24218
24312
|
};
|
|
24219
24313
|
}());
|
|
24220
24314
|
actions.setFieldState('shorthand', /*#__PURE__*/function () {
|
|
24221
|
-
var
|
|
24222
|
-
return _regeneratorRuntime().wrap(function
|
|
24315
|
+
var _ref14 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee14(s) {
|
|
24316
|
+
return _regeneratorRuntime().wrap(function _callee14$(_context14) {
|
|
24223
24317
|
while (1) {
|
|
24224
|
-
switch (
|
|
24318
|
+
switch (_context14.prev = _context14.next) {
|
|
24225
24319
|
case 0:
|
|
24226
24320
|
if (info.node.shorthand) {
|
|
24227
24321
|
s.value = info.node.shorthand;
|
|
@@ -24229,14 +24323,14 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
24229
24323
|
|
|
24230
24324
|
case 1:
|
|
24231
24325
|
case "end":
|
|
24232
|
-
return
|
|
24326
|
+
return _context14.stop();
|
|
24233
24327
|
}
|
|
24234
24328
|
}
|
|
24235
|
-
},
|
|
24329
|
+
}, _callee14);
|
|
24236
24330
|
}));
|
|
24237
24331
|
|
|
24238
|
-
return function (
|
|
24239
|
-
return
|
|
24332
|
+
return function (_x10) {
|
|
24333
|
+
return _ref14.apply(this, arguments);
|
|
24240
24334
|
};
|
|
24241
24335
|
}());
|
|
24242
24336
|
setOpen(false);
|
|
@@ -24271,11 +24365,11 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
24271
24365
|
return data;
|
|
24272
24366
|
};
|
|
24273
24367
|
|
|
24274
|
-
return
|
|
24368
|
+
return React.createElement(React.Fragment, null, React.createElement(Input, {
|
|
24275
24369
|
readOnly: true,
|
|
24276
24370
|
onClick: onClick,
|
|
24277
24371
|
value: props.value
|
|
24278
|
-
}),
|
|
24372
|
+
}), React.createElement(TaxClassificationModal, {
|
|
24279
24373
|
list: list,
|
|
24280
24374
|
open: open,
|
|
24281
24375
|
onSelect: onSelect,
|
|
@@ -24287,19 +24381,19 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
24287
24381
|
}));
|
|
24288
24382
|
}, [controller, actions]); // 是否享受优惠政策
|
|
24289
24383
|
|
|
24290
|
-
var _React$
|
|
24291
|
-
_React$
|
|
24292
|
-
favouredPolicyMark = _React$
|
|
24293
|
-
setFavouredPolicyMark = _React$
|
|
24384
|
+
var _React$useState19 = React.useState(0),
|
|
24385
|
+
_React$useState20 = _slicedToArray(_React$useState19, 2),
|
|
24386
|
+
favouredPolicyMark = _React$useState20[0],
|
|
24387
|
+
setFavouredPolicyMark = _React$useState20[1]; // 确定
|
|
24294
24388
|
|
|
24295
24389
|
|
|
24296
24390
|
var onSubmit = React.useCallback(function (values) {
|
|
24297
24391
|
controller.pipeline( /*#__PURE__*/function () {
|
|
24298
|
-
var
|
|
24392
|
+
var _ref15 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee15(s) {
|
|
24299
24393
|
var endowCodeGood;
|
|
24300
|
-
return _regeneratorRuntime().wrap(function
|
|
24394
|
+
return _regeneratorRuntime().wrap(function _callee15$(_context15) {
|
|
24301
24395
|
while (1) {
|
|
24302
|
-
switch (
|
|
24396
|
+
switch (_context15.prev = _context15.next) {
|
|
24303
24397
|
case 0:
|
|
24304
24398
|
endowCodeGood = s.goodsListState.endowCode.endowcodeGoodIndex.map(function (e) {
|
|
24305
24399
|
return s.goodsListState.goodsMap.get(e);
|
|
@@ -24322,46 +24416,49 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
24322
24416
|
|
|
24323
24417
|
if (good.lineAmountExcludeTax && good.quantity) {
|
|
24324
24418
|
good.priceExcludeTax = countPrice(good.lineAmountExcludeTax, good.quantity, controller.state.calculatingDigits);
|
|
24325
|
-
}
|
|
24419
|
+
} //赋值商品的可用税率
|
|
24420
|
+
|
|
24421
|
+
|
|
24422
|
+
good.goodsTaxRateList = goodsTaxRateList;
|
|
24326
24423
|
});
|
|
24327
24424
|
s.goodsListState.goodsList = s.goodsListState.goodsList.slice();
|
|
24328
24425
|
s.goodsListState.endowCode.endowcodeGoodIndex = [];
|
|
24329
24426
|
|
|
24330
24427
|
case 4:
|
|
24331
24428
|
case "end":
|
|
24332
|
-
return
|
|
24429
|
+
return _context15.stop();
|
|
24333
24430
|
}
|
|
24334
24431
|
}
|
|
24335
|
-
},
|
|
24432
|
+
}, _callee15);
|
|
24336
24433
|
}));
|
|
24337
24434
|
|
|
24338
|
-
return function (
|
|
24339
|
-
return
|
|
24435
|
+
return function (_x11) {
|
|
24436
|
+
return _ref15.apply(this, arguments);
|
|
24340
24437
|
};
|
|
24341
24438
|
}())();
|
|
24342
|
-
}, [controller]);
|
|
24439
|
+
}, [controller, goodsTaxRateList]);
|
|
24343
24440
|
var effects = React.useCallback(function () {
|
|
24344
24441
|
// 税率变化
|
|
24345
24442
|
FormEffectHooks.onFieldValueChange$('taxRate').subscribe(function (e) {
|
|
24346
24443
|
setTaxRate(e.value);
|
|
24347
24444
|
actions.setFieldState('taxFreeType', /*#__PURE__*/function () {
|
|
24348
|
-
var
|
|
24349
|
-
return _regeneratorRuntime().wrap(function
|
|
24445
|
+
var _ref16 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee16(s) {
|
|
24446
|
+
return _regeneratorRuntime().wrap(function _callee16$(_context16) {
|
|
24350
24447
|
while (1) {
|
|
24351
|
-
switch (
|
|
24448
|
+
switch (_context16.prev = _context16.next) {
|
|
24352
24449
|
case 0:
|
|
24353
24450
|
if (e.value !== 0) s.value = undefined;
|
|
24354
24451
|
|
|
24355
24452
|
case 1:
|
|
24356
24453
|
case "end":
|
|
24357
|
-
return
|
|
24454
|
+
return _context16.stop();
|
|
24358
24455
|
}
|
|
24359
24456
|
}
|
|
24360
|
-
},
|
|
24457
|
+
}, _callee16);
|
|
24361
24458
|
}));
|
|
24362
24459
|
|
|
24363
|
-
return function (
|
|
24364
|
-
return
|
|
24460
|
+
return function (_x12) {
|
|
24461
|
+
return _ref16.apply(this, arguments);
|
|
24365
24462
|
};
|
|
24366
24463
|
}());
|
|
24367
24464
|
}); // 是否享受优惠政策
|
|
@@ -24369,23 +24466,23 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
24369
24466
|
FormEffectHooks.onFieldValueChange$('favouredPolicyMark').subscribe(function (e) {
|
|
24370
24467
|
setFavouredPolicyMark(e.value);
|
|
24371
24468
|
actions.setFieldState('favouredPolicyName', /*#__PURE__*/function () {
|
|
24372
|
-
var
|
|
24373
|
-
return _regeneratorRuntime().wrap(function
|
|
24469
|
+
var _ref17 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee17(s) {
|
|
24470
|
+
return _regeneratorRuntime().wrap(function _callee17$(_context17) {
|
|
24374
24471
|
while (1) {
|
|
24375
|
-
switch (
|
|
24472
|
+
switch (_context17.prev = _context17.next) {
|
|
24376
24473
|
case 0:
|
|
24377
24474
|
if (e.value === 0) s.value = undefined;
|
|
24378
24475
|
|
|
24379
24476
|
case 1:
|
|
24380
24477
|
case "end":
|
|
24381
|
-
return
|
|
24478
|
+
return _context17.stop();
|
|
24382
24479
|
}
|
|
24383
24480
|
}
|
|
24384
|
-
},
|
|
24481
|
+
}, _callee17);
|
|
24385
24482
|
}));
|
|
24386
24483
|
|
|
24387
|
-
return function (
|
|
24388
|
-
return
|
|
24484
|
+
return function (_x13) {
|
|
24485
|
+
return _ref17.apply(this, arguments);
|
|
24389
24486
|
};
|
|
24390
24487
|
}());
|
|
24391
24488
|
});
|
|
@@ -24394,14 +24491,14 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
24394
24491
|
React.useEffect(function () {
|
|
24395
24492
|
if (controller.getTaxCategoryCodeList) controller.getTaxCategoryCodeList();
|
|
24396
24493
|
}, [controller]);
|
|
24397
|
-
return
|
|
24494
|
+
return React.createElement(SchemaForm, {
|
|
24398
24495
|
actions: actions,
|
|
24399
24496
|
previewPlaceholder: " ",
|
|
24400
24497
|
components: _objectSpread2(_objectSpread2({}, components), {}, {
|
|
24401
24498
|
showSearch: !!controller.state.goodsListState.endowCode.onLoadTaxClassificationCode ? ShowSearch3 : ShowSearch
|
|
24402
24499
|
}),
|
|
24403
24500
|
effects: effects
|
|
24404
|
-
},
|
|
24501
|
+
}, React.createElement(FormButtonGroup, null, React.createElement(SchemaMarkupField, {
|
|
24405
24502
|
name: "taxClassificationCode",
|
|
24406
24503
|
type: "showSearch",
|
|
24407
24504
|
title: "\u7A0E\u6536\u5206\u7C7B\u7F16\u7801",
|
|
@@ -24411,13 +24508,13 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
24411
24508
|
message: '请选择税收分类编码',
|
|
24412
24509
|
required: true
|
|
24413
24510
|
}]
|
|
24414
|
-
}),
|
|
24511
|
+
}), React.createElement(SchemaMarkupField, {
|
|
24415
24512
|
name: "shorthand",
|
|
24416
24513
|
type: "string",
|
|
24417
24514
|
readOnly: true,
|
|
24418
24515
|
default: defaultValue === null || defaultValue === void 0 ? void 0 : defaultValue.shorthand,
|
|
24419
24516
|
title: "\u5546\u54C1\u548C\u670D\u52A1\u5206\u7C7B\u7B80\u79F0"
|
|
24420
|
-
}),
|
|
24517
|
+
}), React.createElement(SchemaMarkupField, {
|
|
24421
24518
|
name: "taxRate",
|
|
24422
24519
|
type: "string",
|
|
24423
24520
|
title: "\u7A0E\u7387",
|
|
@@ -24425,12 +24522,12 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
24425
24522
|
disabled: readOnlyTaxRate
|
|
24426
24523
|
},
|
|
24427
24524
|
default: (_defaultValue$taxRate = defaultValue === null || defaultValue === void 0 ? void 0 : defaultValue.taxRate) !== null && _defaultValue$taxRate !== void 0 ? _defaultValue$taxRate : 0,
|
|
24428
|
-
enum:
|
|
24525
|
+
enum: formattedTaxRateList,
|
|
24429
24526
|
"x-rules": [{
|
|
24430
24527
|
message: '请选择税率',
|
|
24431
24528
|
required: true
|
|
24432
24529
|
}]
|
|
24433
|
-
}), taxRate === 0 && isTaxFreeTypeNeeded &&
|
|
24530
|
+
}), taxRate === 0 && isTaxFreeTypeNeeded && React.createElement(SchemaMarkupField, {
|
|
24434
24531
|
name: "taxFreeType",
|
|
24435
24532
|
type: "string",
|
|
24436
24533
|
title: "\u514D\u7A0E\u7C7B\u578B",
|
|
@@ -24443,7 +24540,7 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
24443
24540
|
message: '请选择免税类型',
|
|
24444
24541
|
required: true
|
|
24445
24542
|
}]
|
|
24446
|
-
}),
|
|
24543
|
+
}), React.createElement(SchemaMarkupField, {
|
|
24447
24544
|
name: "favouredPolicyMark",
|
|
24448
24545
|
type: "number",
|
|
24449
24546
|
title: "\u662F\u5426\u4EAB\u53D7\u4F18\u60E0\u653F\u7B56",
|
|
@@ -24462,7 +24559,7 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
24462
24559
|
message: '请选择是否享受优惠政策',
|
|
24463
24560
|
required: true
|
|
24464
24561
|
}]
|
|
24465
|
-
}), favouredPolicyMark === 1 &&
|
|
24562
|
+
}), favouredPolicyMark === 1 && React.createElement(SchemaMarkupField, {
|
|
24466
24563
|
name: "favouredPolicyName",
|
|
24467
24564
|
type: "string",
|
|
24468
24565
|
title: "\u4F18\u60E0\u653F\u7B56\u7C7B\u578B",
|
|
@@ -24475,33 +24572,33 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
24475
24572
|
message: '请选择是否享受优惠政策',
|
|
24476
24573
|
required: true
|
|
24477
24574
|
}]
|
|
24478
|
-
})),
|
|
24575
|
+
})), React.createElement("span", {
|
|
24479
24576
|
className: "kts-invoice-operate-goods-endow-code-button-list"
|
|
24480
|
-
},
|
|
24577
|
+
}, React.createElement(Button, {
|
|
24481
24578
|
onClick: function onClick() {
|
|
24482
24579
|
actions.submit(onSubmit);
|
|
24483
24580
|
},
|
|
24484
24581
|
type: "primary"
|
|
24485
|
-
}, "\u786E\u5B9A"),
|
|
24582
|
+
}, "\u786E\u5B9A"), React.createElement(Button, {
|
|
24486
24583
|
onClick: function onClick() {
|
|
24487
24584
|
controller.pipeline( /*#__PURE__*/function () {
|
|
24488
|
-
var
|
|
24489
|
-
return _regeneratorRuntime().wrap(function
|
|
24585
|
+
var _ref18 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee18(s) {
|
|
24586
|
+
return _regeneratorRuntime().wrap(function _callee18$(_context18) {
|
|
24490
24587
|
while (1) {
|
|
24491
|
-
switch (
|
|
24588
|
+
switch (_context18.prev = _context18.next) {
|
|
24492
24589
|
case 0:
|
|
24493
|
-
return
|
|
24590
|
+
return _context18.abrupt("return", s.goodsListState.endowCode.endowcodeGoodIndex = []);
|
|
24494
24591
|
|
|
24495
24592
|
case 1:
|
|
24496
24593
|
case "end":
|
|
24497
|
-
return
|
|
24594
|
+
return _context18.stop();
|
|
24498
24595
|
}
|
|
24499
24596
|
}
|
|
24500
|
-
},
|
|
24597
|
+
}, _callee18);
|
|
24501
24598
|
}));
|
|
24502
24599
|
|
|
24503
|
-
return function (
|
|
24504
|
-
return
|
|
24600
|
+
return function (_x14) {
|
|
24601
|
+
return _ref18.apply(this, arguments);
|
|
24505
24602
|
};
|
|
24506
24603
|
}())();
|
|
24507
24604
|
}
|
|
@@ -24642,53 +24739,53 @@ function AddComparisonDrawer() {
|
|
|
24642
24739
|
}));
|
|
24643
24740
|
}
|
|
24644
24741
|
}, [good]);
|
|
24645
|
-
return
|
|
24742
|
+
return React.createElement(Drawer$1, {
|
|
24646
24743
|
width: 500,
|
|
24647
24744
|
onClose: onClose,
|
|
24648
24745
|
placement: "right",
|
|
24649
24746
|
title: "\u5546\u54C1\u6620\u5C04",
|
|
24650
24747
|
visible: !!good,
|
|
24651
|
-
footer:
|
|
24748
|
+
footer: React.createElement("div", {
|
|
24652
24749
|
style: {
|
|
24653
24750
|
display: 'flex',
|
|
24654
24751
|
justifyContent: 'flex-end',
|
|
24655
24752
|
gap: 10
|
|
24656
24753
|
}
|
|
24657
|
-
},
|
|
24754
|
+
}, React.createElement(Button, {
|
|
24658
24755
|
type: "primary",
|
|
24659
24756
|
onClick: onSubmit
|
|
24660
|
-
}, "\u63D0\u4EA4"),
|
|
24757
|
+
}, "\u63D0\u4EA4"), React.createElement(Button, {
|
|
24661
24758
|
onClick: onClose
|
|
24662
24759
|
}, "\u53D6\u6D88"))
|
|
24663
|
-
}, !!good &&
|
|
24760
|
+
}, !!good && React.createElement(Form$1, {
|
|
24664
24761
|
layout: "vertical",
|
|
24665
24762
|
style: {
|
|
24666
24763
|
flex: 1
|
|
24667
24764
|
},
|
|
24668
24765
|
form: form
|
|
24669
|
-
},
|
|
24766
|
+
}, React.createElement(Row$2, {
|
|
24670
24767
|
gutter: [8, 8]
|
|
24671
|
-
},
|
|
24768
|
+
}, React.createElement(Col$2, {
|
|
24672
24769
|
span: 12
|
|
24673
|
-
},
|
|
24770
|
+
}, React.createElement(Form$1.Item, {
|
|
24674
24771
|
name: "itemNameSelf",
|
|
24675
24772
|
label: "\u6211\u65B9\u5546\u54C1\u540D\u79F0"
|
|
24676
|
-
},
|
|
24773
|
+
}, React.createElement(Input, null))), React.createElement(Col$2, {
|
|
24677
24774
|
span: 12
|
|
24678
|
-
},
|
|
24775
|
+
}, React.createElement(Form$1.Item, {
|
|
24679
24776
|
name: "itemName",
|
|
24680
24777
|
label: "\u5BF9\u65B9\u5546\u54C1\u540D\u79F0"
|
|
24681
|
-
},
|
|
24778
|
+
}, React.createElement(Input, null))), React.createElement(Col$2, {
|
|
24682
24779
|
span: 12
|
|
24683
|
-
},
|
|
24780
|
+
}, React.createElement(Form$1.Item, {
|
|
24684
24781
|
name: 'itemModelNameSelf',
|
|
24685
24782
|
label: "\u6211\u65B9\u89C4\u683C\u578B\u53F7"
|
|
24686
|
-
},
|
|
24783
|
+
}, React.createElement(Input, null))), React.createElement(Col$2, {
|
|
24687
24784
|
span: 12
|
|
24688
|
-
},
|
|
24785
|
+
}, React.createElement(Form$1.Item, {
|
|
24689
24786
|
name: "itemModelName",
|
|
24690
24787
|
label: "\u5BF9\u65B9\u89C4\u683C\u578B\u53F7"
|
|
24691
|
-
},
|
|
24788
|
+
}, React.createElement(Input, null))))));
|
|
24692
24789
|
} // function validateFields(form: WrappedFormUtils<any>) {
|
|
24693
24790
|
// return new Promise<{ err: any, values: any }>(resolve => {
|
|
24694
24791
|
// form.validateFields((err, values) => {
|
|
@@ -24699,7 +24796,7 @@ function AddComparisonDrawer() {
|
|
|
24699
24796
|
|
|
24700
24797
|
/** 发票组件的上下文 */
|
|
24701
24798
|
|
|
24702
|
-
var InvoiceContext =
|
|
24799
|
+
var InvoiceContext = React.createContext(undefined);
|
|
24703
24800
|
|
|
24704
24801
|
var Invoice = /*#__PURE__*/function (_React$PureComponent) {
|
|
24705
24802
|
_inherits(Invoice, _React$PureComponent);
|
|
@@ -24746,9 +24843,9 @@ var Invoice = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
24746
24843
|
/** 获取控制器钩子 */
|
|
24747
24844
|
function render() {
|
|
24748
24845
|
if (this.props.invoiceType === 'digtal') {
|
|
24749
|
-
return
|
|
24846
|
+
return React.createElement(Digtal, _objectSpread2({}, this.props));
|
|
24750
24847
|
} else {
|
|
24751
|
-
return
|
|
24848
|
+
return React.createElement(Main$4, _objectSpread2({}, this.props));
|
|
24752
24849
|
}
|
|
24753
24850
|
}
|
|
24754
24851
|
}]);
|
|
@@ -24791,10 +24888,10 @@ var Main$4 = function Main(props) {
|
|
|
24791
24888
|
React.useEffect(function () {
|
|
24792
24889
|
setKey(key + 1);
|
|
24793
24890
|
}, [controller]);
|
|
24794
|
-
return
|
|
24891
|
+
return React.createElement(InvoiceContext.Provider, {
|
|
24795
24892
|
key: key,
|
|
24796
24893
|
value: controller
|
|
24797
|
-
},
|
|
24894
|
+
}, React.createElement("div", {
|
|
24798
24895
|
className: "kts-invoice-operate",
|
|
24799
24896
|
ref: controller.pipeline( /*#__PURE__*/function () {
|
|
24800
24897
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(s, e) {
|
|
@@ -24816,17 +24913,17 @@ var Main$4 = function Main(props) {
|
|
|
24816
24913
|
return _ref.apply(this, arguments);
|
|
24817
24914
|
};
|
|
24818
24915
|
}())
|
|
24819
|
-
}, props.invoiceHeader ||
|
|
24916
|
+
}, props.invoiceHeader || React.createElement(InvoiceHeader, null)
|
|
24820
24917
|
/** 发票头 */
|
|
24821
|
-
, props.buyer ||
|
|
24918
|
+
, props.buyer || React.createElement(Buyer$1, null)
|
|
24822
24919
|
/** 购买方 */
|
|
24823
|
-
, props.goodsList ||
|
|
24920
|
+
, props.goodsList || React.createElement(GoodsList, null)
|
|
24824
24921
|
/** 货物列表 */
|
|
24825
|
-
, props.seller ||
|
|
24922
|
+
, props.seller || React.createElement(Buyer, null)
|
|
24826
24923
|
/** 销售方 */
|
|
24827
|
-
, props.sign ||
|
|
24924
|
+
, props.sign || React.createElement(Sign, null)
|
|
24828
24925
|
/** 落款 */
|
|
24829
|
-
, props.footExpand),
|
|
24926
|
+
, props.footExpand), React.createElement(ImportBuyerDrawer, null), React.createElement(ImportGoodsDrawer, null), React.createElement(EndowCodeDrawer, null), React.createElement(AddComparisonDrawer, null));
|
|
24830
24927
|
};
|
|
24831
24928
|
/** 数电 */
|
|
24832
24929
|
|
|
@@ -24845,10 +24942,10 @@ var Digtal = function Digtal(props) {
|
|
|
24845
24942
|
React.useEffect(function () {
|
|
24846
24943
|
setKey(key + 1);
|
|
24847
24944
|
}, [controller]);
|
|
24848
|
-
return
|
|
24945
|
+
return React.createElement(InvoiceContext.Provider, {
|
|
24849
24946
|
key: key,
|
|
24850
24947
|
value: controller
|
|
24851
|
-
},
|
|
24948
|
+
}, React.createElement("div", {
|
|
24852
24949
|
className: "kts-invoice-operate-digtal",
|
|
24853
24950
|
ref: controller.pipeline( /*#__PURE__*/function () {
|
|
24854
24951
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(s, e) {
|
|
@@ -24870,19 +24967,19 @@ var Digtal = function Digtal(props) {
|
|
|
24870
24967
|
return _ref2.apply(this, arguments);
|
|
24871
24968
|
};
|
|
24872
24969
|
}())
|
|
24873
|
-
}, props.invoiceHeader ||
|
|
24970
|
+
}, props.invoiceHeader || React.createElement(InvoiceHeaderDigtal, null)
|
|
24874
24971
|
/** 发票头 */
|
|
24875
|
-
,
|
|
24972
|
+
, React.createElement("div", {
|
|
24876
24973
|
className: 'kts-invoice-operate-digtal-cont'
|
|
24877
|
-
}, props.stakeholder ||
|
|
24974
|
+
}, props.stakeholder || React.createElement(Stakeholder$1, null)
|
|
24878
24975
|
/** 干系人 */
|
|
24879
|
-
, props.goodsList ||
|
|
24976
|
+
, props.goodsList || React.createElement(GoodsList$1, null)
|
|
24880
24977
|
/** 货物列表 */
|
|
24881
24978
|
), props.specialInfor
|
|
24882
24979
|
/** 特殊信息 */
|
|
24883
|
-
, props.sign ||
|
|
24980
|
+
, props.sign || React.createElement(SignDigtal, null)
|
|
24884
24981
|
/** 落款 */
|
|
24885
|
-
),
|
|
24982
|
+
), React.createElement(ImportGoodsDrawer, null), React.createElement(EndowCodeDrawer, null));
|
|
24886
24983
|
};
|
|
24887
24984
|
|
|
24888
24985
|
function TaxClassificationModal(props) {
|
|
@@ -24923,26 +25020,26 @@ function TaxClassificationModal(props) {
|
|
|
24923
25020
|
}, 500);
|
|
24924
25021
|
}
|
|
24925
25022
|
}, [form, props.open]);
|
|
24926
|
-
return
|
|
25023
|
+
return React.createElement(Drawer$1, {
|
|
24927
25024
|
title: "\u5546\u54C1\u548C\u670D\u52A1\u7A0E\u6536\u5206\u7C7B\u7F16\u7801",
|
|
24928
25025
|
placement: "right",
|
|
24929
25026
|
open: props.open,
|
|
24930
25027
|
width: 503,
|
|
24931
25028
|
onClose: props.onCancel
|
|
24932
|
-
},
|
|
25029
|
+
}, React.createElement(Form$1, {
|
|
24933
25030
|
form: form
|
|
24934
|
-
},
|
|
25031
|
+
}, React.createElement(Form$1.Item, {
|
|
24935
25032
|
name: 'search'
|
|
24936
|
-
},
|
|
25033
|
+
}, React.createElement(Input$1, {
|
|
24937
25034
|
placeholder: "\u8BF7\u8F93\u5165\u7A0E\u6536\u5206\u7C7B\u7F16\u7801\u3001\u7A0E\u6536\u5206\u7C7B\u540D\u79F0\u8FDB\u884C\u68C0\u7D22",
|
|
24938
25035
|
onChange: searchTax
|
|
24939
|
-
})),
|
|
25036
|
+
})), React.createElement(Form$1.Item, {
|
|
24940
25037
|
name: 'tree'
|
|
24941
|
-
},
|
|
25038
|
+
}, React.createElement(Tree$1, {
|
|
24942
25039
|
onSelect: props.onSelect,
|
|
24943
25040
|
loadData: props.onLoad,
|
|
24944
25041
|
treeData: props.list,
|
|
24945
|
-
switcherIcon:
|
|
25042
|
+
switcherIcon: React.createElement(Icon$1, {
|
|
24946
25043
|
type: "down"
|
|
24947
25044
|
})
|
|
24948
25045
|
}))));
|