kts-component-invoice-operate 3.2.116 → 3.2.118
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.dumi/theme/builtins/API.tsx +66 -66
- package/.editorconfig +16 -16
- package/.fatherrc.ts +4 -4
- package/.prettierignore +7 -7
- package/.prettierrc +11 -11
- package/.umirc.ts +8 -8
- package/README.md +9 -9
- package/dist/index.esm.js +585 -582
- package/dist/index.js +585 -582
- package/docs/index.md +5 -5
- package/docs-dist/static/arrowDown.a1cbf0d8.svg +2 -2
- package/docs-dist/static/arrowUp.4c482054.svg +2 -2
- package/docs-dist/static/fork.5431267d.svg +11 -11
- package/docs-dist/static/plus.44013ce3.svg +11 -11
- package/docs-dist/static/plus.4fd1af30.svg +11 -11
- package/index.html +12 -12
- package/package.json +61 -61
- package/src/Invoice/Invoice-digtal/_test/disabled/index.tsx +38 -38
- package/src/Invoice/Invoice-digtal/_test/easiest/index.tsx +16 -16
- package/src/Invoice/Invoice-digtal/_test/header/index.tsx +84 -84
- package/src/Invoice/Invoice-digtal/_test/importGoods/index.tsx +554 -554
- package/src/Invoice/Invoice-digtal/_test/importStakeholder/index.tsx +17 -17
- package/src/Invoice/Invoice-digtal/_test/lineCredit/index.tsx +20 -20
- package/src/Invoice/Invoice-digtal/_test/prefab/index.tsx +150 -150
- package/src/Invoice/Invoice-digtal/_test/readOnly/index.tsx +42 -42
- package/src/Invoice/Invoice-digtal/_test/stakeholder/index.tsx +12 -12
- package/src/Invoice/Invoice-digtal/_test/typeSelection/index.tsx +29 -29
- package/src/Invoice/Invoice-digtal/index.md +30 -30
- package/src/Invoice/InvoiceController/InvoiceControllerForm/index.ts +95 -95
- package/src/Invoice/InvoiceController/InvoiceControllerState/AutoComplete/index.ts +20 -20
- package/src/Invoice/InvoiceController/InvoiceControllerState/BuyerState/index.tsx +88 -88
- package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/Drag/index.ts +15 -15
- package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/EndowCode/index.tsx +104 -104
- package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/IColumnsReplenish/index.ts +10 -10
- package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/IGood/index.ts +78 -78
- package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/ImportGoods/index.ts +80 -80
- package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/LineAttributeType/index.ts +7 -7
- package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/ProductComparison/index.ts +9 -9
- package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/index.ts +113 -113
- package/src/Invoice/InvoiceController/InvoiceControllerState/Stakeholder/index.ts +13 -13
- package/src/Invoice/InvoiceController/InvoiceControllerState/index.ts +65 -65
- package/src/Invoice/InvoiceController/fns/addGood.ts +11 -11
- package/src/Invoice/InvoiceController/fns/addGoodDiscount.ts +126 -126
- package/src/Invoice/InvoiceController/fns/addGoodDiscountV2.ts +86 -86
- package/src/Invoice/InvoiceController/fns/delGood.ts +41 -41
- package/src/Invoice/InvoiceController/fns/getGoodsSearch.ts +26 -26
- package/src/Invoice/InvoiceController/fns/importGoodsDrawer.ts +79 -79
- package/src/Invoice/InvoiceController/fns/itemBlur.ts +40 -40
- package/src/Invoice/InvoiceController/fns/mergeDetails.ts +201 -201
- package/src/Invoice/InvoiceController/fns/mergeDiscount.ts +35 -35
- package/src/Invoice/InvoiceController/fns/saveEditGood.ts +24 -24
- package/src/Invoice/InvoiceController/fns/setEditGood.ts +16 -16
- package/src/Invoice/InvoiceController/fns/setGoods.ts +10 -10
- package/src/Invoice/InvoiceController/fns/updateInvoiceNo.ts +8 -8
- package/src/Invoice/InvoiceController/index.ts +81 -81
- package/src/Invoice/_test/buyerNameSearch/index.tsx +42 -42
- package/src/Invoice/_test/deduction/index.tsx +935 -935
- package/src/Invoice/_test/draft/index.tsx +40 -40
- package/src/Invoice/_test/easiest/index.tsx +5 -5
- package/src/Invoice/_test/endowCode/index.tsx +1158 -1158
- package/src/Invoice/_test/goodsMenuExpand/index.tsx +32 -32
- package/src/Invoice/_test/importBuyer/index.tsx +74 -74
- package/src/Invoice/_test/importGoods/index.tsx +1197 -1197
- package/src/Invoice/_test/invoiceType/index.tsx +59 -59
- package/src/Invoice/_test/isInvoiceNo/index.tsx +12 -12
- package/src/Invoice/_test/replaceHead/index.tsx +22 -22
- package/src/Invoice/_test/retrieveData/index.tsx +22 -22
- package/src/Invoice/_test/seller/index.tsx +28 -28
- package/src/Invoice/_test/setDataSource/index.tsx +73 -73
- package/src/Invoice/_test/unit/index.tsx +19 -19
- package/src/Invoice/index.less +29 -29
- package/src/Invoice/index.md +53 -53
- package/src/Invoice/index.tsx +167 -167
- package/src/Invoice/tools/calculate/index.ts +124 -124
- 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/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 +543 -543
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/autoFillFn/index.ts +533 -533
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/index.tsx +687 -687
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/Drag/index.less +20 -20
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/Drag/index.tsx +205 -205
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/ItemCodeInput/index.less +18 -18
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/ItemCodeInput/index.tsx +47 -47
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/ItemNameInput/index.less +17 -17
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/ItemNameInput/index.tsx +88 -88
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/RowEditButton/index.tsx +30 -30
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/RowMenu/hook/_useAddComparison/index.tsx +43 -43
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/RowMenu/hook/useAddDiscount/index.tsx +118 -118
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/RowMenu/hook/useDelItem/index.tsx +41 -41
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/RowMenu/hook/useEndowCode/index.tsx +25 -25
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/RowMenu/index.less +13 -13
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/RowMenu/index.tsx +98 -98
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/RowSaveButton/index.tsx +14 -14
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/TitleText/index.tsx +20 -20
- package/src/Invoice/ui/default/GoodsList/hook/useDeduction/index.tsx +24 -24
- package/src/Invoice/ui/default/GoodsList/hook/useOnRow/index.tsx +39 -39
- package/src/Invoice/ui/default/GoodsList/hook/useRowSelection/index.tsx +114 -114
- package/src/Invoice/ui/default/GoodsList/hook/useWindowClick/index.tsx +23 -23
- package/src/Invoice/ui/default/GoodsList/index.less +179 -179
- package/src/Invoice/ui/default/GoodsList/index.tsx +205 -205
- package/src/Invoice/ui/default/GoodsList/ui/AddRowButton/index.tsx +65 -65
- package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/hooks/useAddDiscountRowButton/index.less +21 -21
- package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/hooks/useAddDiscountRowButton/index.tsx +244 -244
- package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/hooks/useCommodityComparisonButton/index.tsx +75 -75
- package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/hooks/useDelRowButton/index.tsx +69 -69
- package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/hooks/useEndowCodeButton/index.tsx +65 -65
- package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/hooks/useMergeDetails/index.tsx +91 -91
- package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/hooks/useMergeDiscount/index.tsx +36 -36
- package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/hooks/useSalesDiscount/index.tsx +109 -109
- package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/hooks/useSalesGifts/index.tsx +88 -88
- package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/index.tsx +37 -37
- package/src/Invoice/ui/default/GoodsList/ui/DescribeSwitch/index.tsx +36 -36
- package/src/Invoice/ui/default/GoodsList/ui/Search/index.less +10 -10
- package/src/Invoice/ui/default/GoodsList/ui/Search/index.tsx +52 -52
- package/src/Invoice/ui/default/GoodsList/ui/Statistics/index.less +18 -18
- package/src/Invoice/ui/default/GoodsList/ui/Statistics/index.tsx +113 -113
- package/src/Invoice/ui/default/GoodsList/ui/TableRow/index.less +28 -28
- package/src/Invoice/ui/default/GoodsList/ui/TableRow/index.tsx +57 -57
- package/src/Invoice/ui/default/GoodsList/ui/TableVirtual/index.less +38 -38
- package/src/Invoice/ui/default/GoodsList/ui/TableVirtual/index.tsx +108 -108
- package/src/Invoice/ui/default/GoodsList/ui/TableVirtual.o/index.less +44 -44
- package/src/Invoice/ui/default/GoodsList/ui/TableVirtual.o/index.tsx +96 -96
- package/src/Invoice/ui/default/GoodsList/ui/TaxIncludedSwitch/index.tsx +30 -30
- 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 +519 -519
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/index.tsx +648 -650
- 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 +77 -77
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowEditButton/index.tsx +30 -30
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowMenu/hook/_useAddComparison/index.tsx +43 -43
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowMenu/hook/useAddDiscount/index.tsx +76 -76
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowMenu/hook/useDelItem/index.tsx +41 -41
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowMenu/hook/useEndowCode/index.tsx +34 -34
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowMenu/index.less +13 -13
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowMenu/index.tsx +98 -98
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowSaveButton/index.tsx +14 -14
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/TitleText/index.tsx +20 -20
- package/src/Invoice/ui/digtal/GoodsList/hook/useOnRow/index.tsx +39 -39
- package/src/Invoice/ui/digtal/GoodsList/hook/useRowSelection/index.tsx +121 -121
- package/src/Invoice/ui/digtal/GoodsList/hook/useWindowClick/index.tsx +23 -23
- package/src/Invoice/ui/digtal/GoodsList/index.less +56 -56
- package/src/Invoice/ui/digtal/GoodsList/index.tsx +180 -180
- package/src/Invoice/ui/digtal/GoodsList/ui/AddRowButton/index.tsx +65 -65
- package/src/Invoice/ui/digtal/GoodsList/ui/BulkMenu/hooks/useAddDiscountRowButton/index.tsx +339 -339
- package/src/Invoice/ui/digtal/GoodsList/ui/BulkMenu/hooks/useAddDiscountRowButton/svg/add.svg +11 -11
- package/src/Invoice/ui/digtal/GoodsList/ui/BulkMenu/hooks/useCommodityComparisonButton/index.tsx +75 -75
- package/src/Invoice/ui/digtal/GoodsList/ui/BulkMenu/hooks/useDelRowButton/index.tsx +50 -50
- package/src/Invoice/ui/digtal/GoodsList/ui/BulkMenu/hooks/useEmptyRefill/index.tsx +35 -35
- 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 +99 -99
- package/src/Invoice/ui/digtal/GoodsList/ui/Statistics/svg/fork.svg +11 -11
- package/src/Invoice/ui/digtal/GoodsList/ui/TableRow/index.less +28 -28
- package/src/Invoice/ui/digtal/GoodsList/ui/TableRow/index.tsx +53 -53
- package/src/Invoice/ui/digtal/GoodsList/ui/TableVirtual/index.less +38 -38
- package/src/Invoice/ui/digtal/GoodsList/ui/TableVirtual/index.tsx +108 -108
- package/src/Invoice/ui/digtal/GoodsList/ui/TableVirtual.o/index.less +44 -44
- package/src/Invoice/ui/digtal/GoodsList/ui/TableVirtual.o/index.tsx +96 -96
- package/src/Invoice/ui/digtal/GoodsList/ui/TaxIncludedSwitch/index.tsx +30 -30
- package/src/Invoice/ui/digtal/InvoiceHeader/index.less +57 -57
- package/src/Invoice/ui/digtal/InvoiceHeader/index.tsx +77 -77
- package/src/Invoice/ui/digtal/Sign/index.less +48 -48
- package/src/Invoice/ui/digtal/Sign/index.tsx +99 -99
- package/src/Invoice/ui/digtal/Stakeholder/index.less +90 -90
- package/src/Invoice/ui/digtal/Stakeholder/index.tsx +394 -394
- package/src/Invoice/ui/digtal/Stakeholder/svg/arrowDown.svg +2 -2
- package/src/Invoice/ui/digtal/Stakeholder/svg/arrowUp.svg +2 -2
- package/src/Invoice/ui/digtal/Stakeholder/svg/plus.svg +11 -11
- package/src/InvoiceTypeModal/_test/easiest/index.tsx +31 -31
- package/src/InvoiceTypeModal/index.less +7 -7
- package/src/InvoiceTypeModal/index.md +5 -5
- package/src/InvoiceTypeModal/index.tsx +153 -153
- package/src/TaxClassificationCodeModal/_test/easiest/index.tsx +177 -177
- package/src/TaxClassificationCodeModal/index.md +6 -6
- package/src/TaxClassificationCodeModal/index.tsx +74 -74
- package/src/index.ts +12 -12
- package/tsconfig.json +31 -31
- package/typings.d.ts +3 -3
- package/yarn.e.lock +14331 -14331
package/dist/index.esm.js
CHANGED
|
@@ -9618,7 +9618,7 @@ var InvoiceHeader = decorator(Form.create())(function (props) {
|
|
|
9618
9618
|
render: function render(form) {
|
|
9619
9619
|
return form.getFieldDecorator('code', {
|
|
9620
9620
|
initialValue: props.defaultCode
|
|
9621
|
-
})(
|
|
9621
|
+
})(React.createElement(FormSpanString, null));
|
|
9622
9622
|
}
|
|
9623
9623
|
});
|
|
9624
9624
|
}
|
|
@@ -9631,7 +9631,7 @@ var InvoiceHeader = decorator(Form.create())(function (props) {
|
|
|
9631
9631
|
render: function render(form) {
|
|
9632
9632
|
return form.getFieldDecorator('no', {
|
|
9633
9633
|
initialValue: props.defaultNo
|
|
9634
|
-
})(
|
|
9634
|
+
})(React.createElement(FormSpanString, null));
|
|
9635
9635
|
}
|
|
9636
9636
|
});
|
|
9637
9637
|
}
|
|
@@ -9642,7 +9642,7 @@ var InvoiceHeader = decorator(Form.create())(function (props) {
|
|
|
9642
9642
|
render: function render(form) {
|
|
9643
9643
|
return form.getFieldDecorator('invoicingDate', {
|
|
9644
9644
|
initialValue: props.defaultInvoicingDate
|
|
9645
|
-
})(
|
|
9645
|
+
})(React.createElement(FormSpanString, null));
|
|
9646
9646
|
}
|
|
9647
9647
|
});
|
|
9648
9648
|
}
|
|
@@ -9653,7 +9653,7 @@ var InvoiceHeader = decorator(Form.create())(function (props) {
|
|
|
9653
9653
|
render: function render(form) {
|
|
9654
9654
|
return form.getFieldDecorator('defaultValidationCode', {
|
|
9655
9655
|
initialValue: props.defaultValidationCode
|
|
9656
|
-
})(
|
|
9656
|
+
})(React.createElement(FormSpanString, null));
|
|
9657
9657
|
}
|
|
9658
9658
|
});
|
|
9659
9659
|
}
|
|
@@ -9673,21 +9673,21 @@ var InvoiceHeader = decorator(Form.create())(function (props) {
|
|
|
9673
9673
|
React.useEffect(function () {
|
|
9674
9674
|
setTypeIndex(props.typeOptionIndex || 0);
|
|
9675
9675
|
}, [props.typeOption]);
|
|
9676
|
-
return
|
|
9676
|
+
return React.createElement("div", {
|
|
9677
9677
|
className: "kts-invoice-operate-invoice-header"
|
|
9678
|
-
},
|
|
9678
|
+
}, React.createElement("div", {
|
|
9679
9679
|
className: "invoice-header-title"
|
|
9680
|
-
}, title),
|
|
9680
|
+
}, title), React.createElement("div", {
|
|
9681
9681
|
className: "invoice-header-no"
|
|
9682
|
-
}, isInvoiceNo ?
|
|
9682
|
+
}, isInvoiceNo ? React.createElement("div", null, React.createElement("label", null, "\u53D1\u7968\u5355\u636E\u7F16\u53F7 :"), getFieldDecorator('id', {
|
|
9683
9683
|
initialValue: props.defaultId
|
|
9684
|
-
})(
|
|
9684
|
+
})(React.createElement(Input, {
|
|
9685
9685
|
disabled: readOnlyInvoiceNo,
|
|
9686
9686
|
style: {
|
|
9687
9687
|
width: 230
|
|
9688
9688
|
},
|
|
9689
9689
|
size: "small",
|
|
9690
|
-
suffix: controller.updateInvoiceNo &&
|
|
9690
|
+
suffix: controller.updateInvoiceNo && React.createElement(Icon$1, {
|
|
9691
9691
|
style: {
|
|
9692
9692
|
cursor: 'pointer'
|
|
9693
9693
|
},
|
|
@@ -9731,15 +9731,15 @@ var InvoiceHeader = decorator(Form.create())(function (props) {
|
|
|
9731
9731
|
return onClick;
|
|
9732
9732
|
}()
|
|
9733
9733
|
})
|
|
9734
|
-
}))) :
|
|
9734
|
+
}))) : React.createElement("div", {
|
|
9735
9735
|
style: {
|
|
9736
9736
|
height: 20
|
|
9737
9737
|
}
|
|
9738
|
-
}), tag &&
|
|
9738
|
+
}), tag && React.createElement(Tag$1, null, tag), React.createElement("div", {
|
|
9739
9739
|
className: "invoice-header-type"
|
|
9740
9740
|
}, props.typeOption ? getFieldDecorator('type', {
|
|
9741
9741
|
initialValue: typeIndex
|
|
9742
|
-
})(
|
|
9742
|
+
})(React.createElement(Select, {
|
|
9743
9743
|
size: "small",
|
|
9744
9744
|
style: {
|
|
9745
9745
|
width: 230
|
|
@@ -9748,20 +9748,20 @@ var InvoiceHeader = decorator(Form.create())(function (props) {
|
|
|
9748
9748
|
setTypeIndex(e);
|
|
9749
9749
|
}
|
|
9750
9750
|
}, props.typeOption.map(function (e, i) {
|
|
9751
|
-
return
|
|
9751
|
+
return React.createElement(Select.Option, {
|
|
9752
9752
|
key: i,
|
|
9753
9753
|
value: i
|
|
9754
9754
|
}, e.title);
|
|
9755
|
-
}))) : props.renderExpand && props.renderExpand(props.form))), props.typeOption &&
|
|
9755
|
+
}))) : props.renderExpand && props.renderExpand(props.form))), props.typeOption && React.createElement("div", {
|
|
9756
9756
|
style: {
|
|
9757
9757
|
marginTop: 10
|
|
9758
9758
|
}
|
|
9759
|
-
}, props.renderExpand && props.renderExpand(props.form)),
|
|
9759
|
+
}, props.renderExpand && props.renderExpand(props.form)), React.createElement("div", {
|
|
9760
9760
|
className: "invoice-header-property"
|
|
9761
|
-
}, _toConsumableArray(props.fieldExpand || []).map(function (e) {}),
|
|
9761
|
+
}, _toConsumableArray(props.fieldExpand || []).map(function (e) {}), React.createElement("ul", {
|
|
9762
9762
|
className: 'invoice-header-property-fieldExpand'
|
|
9763
9763
|
}, fieldExpand.map(function (e) {
|
|
9764
|
-
return
|
|
9764
|
+
return React.createElement("li", null, React.createElement("label", null, e.label), e.render(form));
|
|
9765
9765
|
}))));
|
|
9766
9766
|
});
|
|
9767
9767
|
|
|
@@ -9780,7 +9780,7 @@ var FormSpanString = /*#__PURE__*/function (_React$Component) {
|
|
|
9780
9780
|
key: "render",
|
|
9781
9781
|
value: function render() {
|
|
9782
9782
|
// return <span>{this.props.value}</span>;
|
|
9783
|
-
return
|
|
9783
|
+
return React.createElement(Input, {
|
|
9784
9784
|
size: "small",
|
|
9785
9785
|
disabled: true,
|
|
9786
9786
|
value: this.props.value
|
|
@@ -9891,12 +9891,12 @@ function TableVirtual (props) {
|
|
|
9891
9891
|
if (!cont) return;
|
|
9892
9892
|
cont.scrollTop = 0;
|
|
9893
9893
|
}, [(_props$dataSource2 = props.dataSource) === null || _props$dataSource2 === void 0 ? void 0 : _props$dataSource2.length]);
|
|
9894
|
-
return
|
|
9894
|
+
return React.createElement("span", {
|
|
9895
9895
|
className: "kts-invoice-operate-goods-table-virtual",
|
|
9896
9896
|
ref: function ref(e) {
|
|
9897
9897
|
setSelf(e);
|
|
9898
9898
|
}
|
|
9899
|
-
},
|
|
9899
|
+
}, React.createElement(TableManual, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
9900
9900
|
dataSource: dataSource,
|
|
9901
9901
|
// 新版本Table会有输入框无法连续输入的问题,先兼容老版本
|
|
9902
9902
|
tableComponent: Table
|
|
@@ -9988,59 +9988,59 @@ var Statistics = (function () {
|
|
|
9988
9988
|
});
|
|
9989
9989
|
return sum.done().toNumber();
|
|
9990
9990
|
}, []);
|
|
9991
|
-
return
|
|
9991
|
+
return React.createElement("div", {
|
|
9992
9992
|
className: "kts-invoice-operate-goods-list-statistics"
|
|
9993
|
-
},
|
|
9993
|
+
}, React.createElement("div", {
|
|
9994
9994
|
className: "kts-invoice-operate-goods-list-statistics-row"
|
|
9995
|
-
},
|
|
9995
|
+
}, React.createElement("div", {
|
|
9996
9996
|
style: {
|
|
9997
9997
|
width: 45.92
|
|
9998
9998
|
}
|
|
9999
|
-
}),
|
|
9999
|
+
}), React.createElement("div", {
|
|
10000
10000
|
style: {
|
|
10001
10001
|
flex: 1
|
|
10002
10002
|
}
|
|
10003
|
-
},
|
|
10003
|
+
}, React.createElement("label", null, "\u5408\u8BA1")), React.createElement("div", {
|
|
10004
10004
|
style: {
|
|
10005
10005
|
width: 119,
|
|
10006
10006
|
textAlign: 'right',
|
|
10007
10007
|
border: 'none'
|
|
10008
10008
|
}
|
|
10009
|
-
},
|
|
10009
|
+
}, React.createElement("label", null, parseFloat(isTaxIncluded ? lineAmountIncludeTax : lineAmountExcludeTax).toFixed(2))), React.createElement("div", {
|
|
10010
10010
|
style: {
|
|
10011
10011
|
width: 70,
|
|
10012
10012
|
border: 'none'
|
|
10013
10013
|
}
|
|
10014
|
-
}),
|
|
10014
|
+
}), React.createElement("div", {
|
|
10015
10015
|
style: {
|
|
10016
10016
|
width: 119,
|
|
10017
10017
|
textAlign: 'right',
|
|
10018
10018
|
border: 'none'
|
|
10019
10019
|
}
|
|
10020
|
-
},
|
|
10020
|
+
}, React.createElement("label", null, parseFloat(taxAmount).toFixed(2))), React.createElement("div", {
|
|
10021
10021
|
style: {
|
|
10022
10022
|
width: 111,
|
|
10023
10023
|
border: 'none'
|
|
10024
10024
|
}
|
|
10025
|
-
})),
|
|
10025
|
+
})), React.createElement("div", {
|
|
10026
10026
|
className: "kts-invoice-operate-goods-list-statistics-row"
|
|
10027
|
-
},
|
|
10027
|
+
}, React.createElement("div", {
|
|
10028
10028
|
style: {
|
|
10029
10029
|
width: 45.92
|
|
10030
10030
|
}
|
|
10031
|
-
}),
|
|
10031
|
+
}), React.createElement("div", {
|
|
10032
10032
|
style: {
|
|
10033
10033
|
flex: 5,
|
|
10034
10034
|
border: 'none'
|
|
10035
10035
|
}
|
|
10036
|
-
},
|
|
10036
|
+
}, React.createElement("label", null, "\u4EF7\u7A0E\u5408\u8BA1\uFF08\u5927\u5199\uFF09"), React.createElement("label", null, nzhcn.toMoney(lineAmountIncludeTax, {
|
|
10037
10037
|
outSymbol: false
|
|
10038
|
-
}))),
|
|
10038
|
+
}))), React.createElement("div", {
|
|
10039
10039
|
style: {
|
|
10040
10040
|
flex: 5,
|
|
10041
10041
|
border: 'none'
|
|
10042
10042
|
}
|
|
10043
|
-
},
|
|
10043
|
+
}, React.createElement("label", null, "\uFF08\u5C0F\u5199\uFF09 ", parseFloat(lineAmountIncludeTax).toFixed(2)))));
|
|
10044
10044
|
});
|
|
10045
10045
|
|
|
10046
10046
|
var AddRowButton = (function () {
|
|
@@ -10095,10 +10095,10 @@ var AddRowButton = (function () {
|
|
|
10095
10095
|
}
|
|
10096
10096
|
}, _callee);
|
|
10097
10097
|
})), [controller, rootElement]);
|
|
10098
|
-
if (isAddRow === false) return
|
|
10099
|
-
if (model === 'prefab') return
|
|
10100
|
-
if (model === 'readOnly') return
|
|
10101
|
-
return
|
|
10098
|
+
if (isAddRow === false) return React.createElement(React.Fragment, null);
|
|
10099
|
+
if (model === 'prefab') return React.createElement(React.Fragment, null);
|
|
10100
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
10101
|
+
return React.createElement(Button, {
|
|
10102
10102
|
onClick: onClick,
|
|
10103
10103
|
disabled: disabled
|
|
10104
10104
|
}, "\u6DFB\u52A0\u884C");
|
|
@@ -10249,11 +10249,11 @@ var TaxIncludedSwitch = (function () {
|
|
|
10249
10249
|
};
|
|
10250
10250
|
}())();
|
|
10251
10251
|
}, []);
|
|
10252
|
-
return
|
|
10252
|
+
return React.createElement("span", null, React.createElement("label", {
|
|
10253
10253
|
style: {
|
|
10254
10254
|
marginRight: 2
|
|
10255
10255
|
}
|
|
10256
|
-
}, "\u542B\u7A0E:"),
|
|
10256
|
+
}, "\u542B\u7A0E:"), React.createElement(Switch, {
|
|
10257
10257
|
disabled: isSwitchTax === false,
|
|
10258
10258
|
checked: isTaxIncluded,
|
|
10259
10259
|
defaultChecked: true,
|
|
@@ -10291,19 +10291,19 @@ var DescribeSwitch = (function () {
|
|
|
10291
10291
|
};
|
|
10292
10292
|
}());
|
|
10293
10293
|
}, []);
|
|
10294
|
-
if (!productComparison.onComply) return
|
|
10295
|
-
return
|
|
10294
|
+
if (!productComparison.onComply) return React.createElement(React.Fragment, null);
|
|
10295
|
+
return React.createElement("span", null, React.createElement("label", {
|
|
10296
10296
|
style: {
|
|
10297
10297
|
marginRight: 2
|
|
10298
10298
|
}
|
|
10299
|
-
},
|
|
10299
|
+
}, React.createElement(Tooltip, {
|
|
10300
10300
|
title: "\u84DD\u8272\u4EE3\u8868\u6211\u65B9\u5546\u54C1\u63CF\u8FF0\uFF0C\u9ED1\u8272\u4EE3\u8868\u5BF9\u65B9\u7684\u5546\u54C1\u63CF\u8FF0\u3002"
|
|
10301
|
-
},
|
|
10301
|
+
}, React.createElement(Icon$1, {
|
|
10302
10302
|
style: {
|
|
10303
10303
|
marginRight: 3
|
|
10304
10304
|
},
|
|
10305
10305
|
type: "info-circle"
|
|
10306
|
-
})), "\u4F7F\u7528\u54EA\u65B9\u5546\u54C1\u63CF\u8FF0:"),
|
|
10306
|
+
})), "\u4F7F\u7528\u54EA\u65B9\u5546\u54C1\u63CF\u8FF0:"), React.createElement(Switch$1, {
|
|
10307
10307
|
checked: isMyShow,
|
|
10308
10308
|
checkedChildren: "\u6211\u65B9",
|
|
10309
10309
|
unCheckedChildren: "\u5BF9\u65B9",
|
|
@@ -10403,13 +10403,13 @@ function Search() {
|
|
|
10403
10403
|
};
|
|
10404
10404
|
}());
|
|
10405
10405
|
}, [value, controller]);
|
|
10406
|
-
return
|
|
10406
|
+
return React.createElement(Input, {
|
|
10407
10407
|
size: "small",
|
|
10408
10408
|
readOnly: readOnly,
|
|
10409
10409
|
value: value,
|
|
10410
10410
|
className: "kts-invoice-operate-goods-list-search",
|
|
10411
10411
|
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"),
|
|
10412
|
-
prefix:
|
|
10412
|
+
prefix: React.createElement(Icon$1, {
|
|
10413
10413
|
component: SvgMagnifier,
|
|
10414
10414
|
style: {
|
|
10415
10415
|
color: "#b8b8b8"
|
|
@@ -10461,13 +10461,13 @@ function TableRow(props) {
|
|
|
10461
10461
|
return undefined;
|
|
10462
10462
|
}
|
|
10463
10463
|
}, [good, goodsMap]);
|
|
10464
|
-
return rowKey === current && current ?
|
|
10464
|
+
return rowKey === current && current ? React.createElement("tr", {
|
|
10465
10465
|
style: {
|
|
10466
10466
|
height: 32.67,
|
|
10467
10467
|
borderBottom: '1px solid #E6E6E6',
|
|
10468
10468
|
position: 'relative'
|
|
10469
10469
|
}
|
|
10470
|
-
},
|
|
10470
|
+
}, React.createElement("div", {
|
|
10471
10471
|
style: {
|
|
10472
10472
|
height: 1,
|
|
10473
10473
|
width: '100%',
|
|
@@ -10475,7 +10475,7 @@ function TableRow(props) {
|
|
|
10475
10475
|
position: 'absolute',
|
|
10476
10476
|
bottom: 0
|
|
10477
10477
|
}
|
|
10478
|
-
})) :
|
|
10478
|
+
})) : React.createElement("tr", _objectSpread2(_objectSpread2({}, props), {}, {
|
|
10479
10479
|
className: classNames(props.className, discount, rowKey === container && current ? 'kts-invoice-operate-goods-list-itemName-drag-container-' + site : undefined)
|
|
10480
10480
|
}));
|
|
10481
10481
|
}
|
|
@@ -10883,7 +10883,7 @@ var RowMenu = (function (props) {
|
|
|
10883
10883
|
// addComparison && arr.push(addComparison); // 添加商品对照
|
|
10884
10884
|
|
|
10885
10885
|
if (!goodsMenuExpand || goodsMenuExpand.length === 0) return arr;
|
|
10886
|
-
arr.unshift(
|
|
10886
|
+
arr.unshift(React.createElement(Menu.Divider, {
|
|
10887
10887
|
key: "divider-1"
|
|
10888
10888
|
}));
|
|
10889
10889
|
|
|
@@ -10899,17 +10899,17 @@ var RowMenu = (function (props) {
|
|
|
10899
10899
|
return undefined;
|
|
10900
10900
|
}
|
|
10901
10901
|
|
|
10902
|
-
return
|
|
10903
|
-
return
|
|
10902
|
+
return React.createElement(Menu, null, itemList.slice(2).map(function (e) {
|
|
10903
|
+
return React.createElement(Menu.Item, {
|
|
10904
10904
|
key: e.key,
|
|
10905
10905
|
onClick: e.onClick
|
|
10906
|
-
},
|
|
10906
|
+
}, React.createElement(Text$1, {
|
|
10907
10907
|
strong: true
|
|
10908
10908
|
}, e.title));
|
|
10909
10909
|
}));
|
|
10910
10910
|
}, [itemList]);
|
|
10911
10911
|
var buttonList = React.useMemo(function () {
|
|
10912
|
-
return
|
|
10912
|
+
return React.createElement("div", {
|
|
10913
10913
|
style: {
|
|
10914
10914
|
flex: 1,
|
|
10915
10915
|
textAlign: 'left',
|
|
@@ -10917,7 +10917,7 @@ var RowMenu = (function (props) {
|
|
|
10917
10917
|
gap: 10
|
|
10918
10918
|
}
|
|
10919
10919
|
}, itemList.slice(0, 2).map(function (e) {
|
|
10920
|
-
return
|
|
10920
|
+
return React.createElement(Button, {
|
|
10921
10921
|
key: e.key,
|
|
10922
10922
|
type: 'link',
|
|
10923
10923
|
onClick: e.onClick,
|
|
@@ -10929,21 +10929,21 @@ var RowMenu = (function (props) {
|
|
|
10929
10929
|
}, [itemList]);
|
|
10930
10930
|
|
|
10931
10931
|
if (itemList.length === 0) {
|
|
10932
|
-
return
|
|
10932
|
+
return React.createElement(React.Fragment, null);
|
|
10933
10933
|
}
|
|
10934
10934
|
|
|
10935
|
-
return
|
|
10935
|
+
return React.createElement("span", {
|
|
10936
10936
|
style: {
|
|
10937
10937
|
padding: '0 0 0 10px',
|
|
10938
10938
|
display: 'flex'
|
|
10939
10939
|
}
|
|
10940
|
-
}, buttonList, overlay &&
|
|
10940
|
+
}, buttonList, overlay && React.createElement(Dropdown, {
|
|
10941
10941
|
overlay: overlay,
|
|
10942
10942
|
trigger: ['click']
|
|
10943
|
-
},
|
|
10943
|
+
}, React.createElement(Button, {
|
|
10944
10944
|
className: "kts-invoice-operate-goods-list-columns-row-menu ant-btn-icon-only",
|
|
10945
10945
|
type: "link"
|
|
10946
|
-
},
|
|
10946
|
+
}, React.createElement(Icon$1, {
|
|
10947
10947
|
component: SvgSpot
|
|
10948
10948
|
}))));
|
|
10949
10949
|
});
|
|
@@ -10957,9 +10957,9 @@ var TitleText = (function (props) {
|
|
|
10957
10957
|
return !!e.required;
|
|
10958
10958
|
})) || props.required;
|
|
10959
10959
|
}, [rules, props.required]);
|
|
10960
|
-
return
|
|
10960
|
+
return React.createElement(React.Fragment, null, required ? React.createElement(Text$2, {
|
|
10961
10961
|
type: "danger"
|
|
10962
|
-
}, "*") :
|
|
10962
|
+
}, "*") : React.createElement(React.Fragment, null), children);
|
|
10963
10963
|
});
|
|
10964
10964
|
|
|
10965
10965
|
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.has-error .kts-invoice-operate-goods-list-itemName-input {\n border: 1px solid #f5222d;\n}\n";
|
|
@@ -10993,7 +10993,8 @@ function ItemNameInput(props) {
|
|
|
10993
10993
|
}, []);
|
|
10994
10994
|
var onBlur = React.useCallback( /*#__PURE__*/function () {
|
|
10995
10995
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(searchText) {
|
|
10996
|
-
var taxCategoryData, params;
|
|
10996
|
+
var _searchText$target, taxCategoryData, params;
|
|
10997
|
+
|
|
10997
10998
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
10998
10999
|
while (1) {
|
|
10999
11000
|
switch (_context.prev = _context.next) {
|
|
@@ -11005,7 +11006,7 @@ function ItemNameInput(props) {
|
|
|
11005
11006
|
break;
|
|
11006
11007
|
}
|
|
11007
11008
|
|
|
11008
|
-
if (selectLine === null || selectLine === void 0 ? void 0 : selectLine.shorthand) {
|
|
11009
|
+
if (!(!(selectLine === null || selectLine === void 0 ? void 0 : selectLine.shorthand) && !!(searchText === null || searchText === void 0 ? void 0 : (_searchText$target = searchText.target) === null || _searchText$target === void 0 ? void 0 : _searchText$target.value))) {
|
|
11009
11010
|
_context.next = 7;
|
|
11010
11011
|
break;
|
|
11011
11012
|
}
|
|
@@ -11149,14 +11150,14 @@ function ItemNameInput(props) {
|
|
|
11149
11150
|
React.useEffect(function () {
|
|
11150
11151
|
setValue(props.value);
|
|
11151
11152
|
}, [props.value]);
|
|
11152
|
-
return
|
|
11153
|
+
return React.createElement("div", {
|
|
11153
11154
|
className: 'kts-invoice-operate-goods-list-itemName-input'
|
|
11154
|
-
}, props.shorthand &&
|
|
11155
|
+
}, props.shorthand && React.createElement("span", {
|
|
11155
11156
|
style: {
|
|
11156
11157
|
alignSelf: 'center',
|
|
11157
11158
|
fontSize: 12
|
|
11158
11159
|
}
|
|
11159
|
-
}, "*", props.shorthand, "*"),
|
|
11160
|
+
}, "*", props.shorthand, "*"), React.createElement(AutoComplete$1, {
|
|
11160
11161
|
onSearch: onSearch,
|
|
11161
11162
|
value: props.value,
|
|
11162
11163
|
options: options.map(function (e) {
|
|
@@ -11166,7 +11167,7 @@ function ItemNameInput(props) {
|
|
|
11166
11167
|
};
|
|
11167
11168
|
}),
|
|
11168
11169
|
onSelect: onChangeAutoComplete
|
|
11169
|
-
},
|
|
11170
|
+
}, React.createElement(Input, {
|
|
11170
11171
|
style: {
|
|
11171
11172
|
height: '100%',
|
|
11172
11173
|
border: 'none'
|
|
@@ -11275,9 +11276,9 @@ function ItemCodeInput(props) {
|
|
|
11275
11276
|
return _ref2.apply(this, arguments);
|
|
11276
11277
|
};
|
|
11277
11278
|
}(), [options, controller]);
|
|
11278
|
-
return
|
|
11279
|
+
return React.createElement("div", {
|
|
11279
11280
|
className: 'kts-invoice-operate-goods-list-itemCode-input'
|
|
11280
|
-
},
|
|
11281
|
+
}, React.createElement(AutoComplete$1, {
|
|
11281
11282
|
onSearch: onSearch,
|
|
11282
11283
|
value: props.value,
|
|
11283
11284
|
options: options.map(function (e) {
|
|
@@ -11286,7 +11287,7 @@ function ItemCodeInput(props) {
|
|
|
11286
11287
|
};
|
|
11287
11288
|
}),
|
|
11288
11289
|
onSelect: onChangeAutoComplete
|
|
11289
|
-
},
|
|
11290
|
+
}, React.createElement(Input, {
|
|
11290
11291
|
style: {
|
|
11291
11292
|
height: '100%',
|
|
11292
11293
|
border: 'none'
|
|
@@ -12467,7 +12468,7 @@ function Drag$1(props) {
|
|
|
12467
12468
|
var currentGood = controller.state.goodsListState.goodsList.filter(function (e) {
|
|
12468
12469
|
return e.$index === record.$index;
|
|
12469
12470
|
})[0];
|
|
12470
|
-
mounting(
|
|
12471
|
+
mounting(React.createElement(DragDiv, _objectSpread2({}, currentGood)));
|
|
12471
12472
|
rowList.forEach(function (e) {
|
|
12472
12473
|
e.addEventListener('mousemove', onMousemove);
|
|
12473
12474
|
});
|
|
@@ -12628,7 +12629,7 @@ function Drag$1(props) {
|
|
|
12628
12629
|
|
|
12629
12630
|
|
|
12630
12631
|
function insert() {
|
|
12631
|
-
mounting(
|
|
12632
|
+
mounting(React.createElement(React.Fragment, null));
|
|
12632
12633
|
controller.run( /*#__PURE__*/function () {
|
|
12633
12634
|
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(s) {
|
|
12634
12635
|
var _s$goodsListState$dra, container, current, site, goodsList, goodsMap, _currentGood, currentIndex, moveGoods;
|
|
@@ -12707,7 +12708,7 @@ function Drag$1(props) {
|
|
|
12707
12708
|
}
|
|
12708
12709
|
}, [controller, record, disabled]);
|
|
12709
12710
|
var renderButton = React.useMemo(function () {
|
|
12710
|
-
return
|
|
12711
|
+
return React.createElement(Button, {
|
|
12711
12712
|
type: 'link',
|
|
12712
12713
|
style: {
|
|
12713
12714
|
padding: 0
|
|
@@ -12718,13 +12719,13 @@ function Drag$1(props) {
|
|
|
12718
12719
|
},
|
|
12719
12720
|
className: "kts-invoice-operate-goods-list-itemName-drag",
|
|
12720
12721
|
onMouseOver: controller.saveEditGood
|
|
12721
|
-
},
|
|
12722
|
+
}, React.createElement(Icon, {
|
|
12722
12723
|
component: SvgI001
|
|
12723
12724
|
}));
|
|
12724
12725
|
}, [onMouseDown, controller]);
|
|
12725
12726
|
|
|
12726
12727
|
if (disabled) {
|
|
12727
|
-
return
|
|
12728
|
+
return React.createElement(Popover, {
|
|
12728
12729
|
content: '您还有未编辑完成的商品',
|
|
12729
12730
|
trigger: 'focus'
|
|
12730
12731
|
}, renderButton);
|
|
@@ -12764,13 +12765,13 @@ function DragDiv(props) {
|
|
|
12764
12765
|
window.removeEventListener('mousemove', onMousemove);
|
|
12765
12766
|
};
|
|
12766
12767
|
});
|
|
12767
|
-
return
|
|
12768
|
+
return React.createElement("div", {
|
|
12768
12769
|
className: "kts-invoice-operate-goods-list-itemName-drag-div",
|
|
12769
12770
|
style: {
|
|
12770
12771
|
top: y,
|
|
12771
12772
|
left: x
|
|
12772
12773
|
}
|
|
12773
|
-
},
|
|
12774
|
+
}, React.createElement("span", null, props.itemName), React.createElement("span", null, props.itemModelName), React.createElement("span", null, props.unit));
|
|
12774
12775
|
}
|
|
12775
12776
|
|
|
12776
12777
|
var useColumns = (function (form) {
|
|
@@ -12891,7 +12892,7 @@ var useColumns = (function (form) {
|
|
|
12891
12892
|
width: 40,
|
|
12892
12893
|
align: 'center',
|
|
12893
12894
|
render: function render(_, record) {
|
|
12894
|
-
return
|
|
12895
|
+
return React.createElement(Drag$1, {
|
|
12895
12896
|
record: record
|
|
12896
12897
|
});
|
|
12897
12898
|
}
|
|
@@ -12901,7 +12902,7 @@ var useColumns = (function (form) {
|
|
|
12901
12902
|
dataIndex: 'serialNo',
|
|
12902
12903
|
width: 50,
|
|
12903
12904
|
render: function render(e) {
|
|
12904
|
-
return
|
|
12905
|
+
return React.createElement("span", {
|
|
12905
12906
|
style: {
|
|
12906
12907
|
padding: '0 10px'
|
|
12907
12908
|
}
|
|
@@ -12913,13 +12914,13 @@ var useColumns = (function (form) {
|
|
|
12913
12914
|
width: 119,
|
|
12914
12915
|
render: function render(_, record) {
|
|
12915
12916
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
12916
|
-
return
|
|
12917
|
+
return React.createElement(Form.Item, null, getFieldDecorator('itemCode', {
|
|
12917
12918
|
initialValue: editGood.itemCode,
|
|
12918
12919
|
rules: [].concat(_toConsumableArray(getReplenishRules('itemCode')), [{
|
|
12919
12920
|
pattern: /^.{1,19}$/,
|
|
12920
12921
|
message: '商品编码长度不能超过19位'
|
|
12921
12922
|
}])
|
|
12922
|
-
})(
|
|
12923
|
+
})(React.createElement(ItemCodeInput, {
|
|
12923
12924
|
onChange: function () {
|
|
12924
12925
|
var _onChange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
12925
12926
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
@@ -12945,7 +12946,7 @@ var useColumns = (function (form) {
|
|
|
12945
12946
|
}()
|
|
12946
12947
|
})));
|
|
12947
12948
|
} else {
|
|
12948
|
-
return
|
|
12949
|
+
return React.createElement("span", {
|
|
12949
12950
|
style: {
|
|
12950
12951
|
padding: '0 10px'
|
|
12951
12952
|
}
|
|
@@ -12953,13 +12954,13 @@ var useColumns = (function (form) {
|
|
|
12953
12954
|
}
|
|
12954
12955
|
}
|
|
12955
12956
|
}, {
|
|
12956
|
-
title:
|
|
12957
|
+
title: React.createElement(TitleText, {
|
|
12957
12958
|
required: true
|
|
12958
12959
|
}, "\u9879\u76EE\u540D\u79F0"),
|
|
12959
12960
|
key: 'itemName',
|
|
12960
12961
|
render: function render(_, record) {
|
|
12961
12962
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
12962
|
-
return
|
|
12963
|
+
return React.createElement(Form.Item, null, React.createElement("div", {
|
|
12963
12964
|
style: {
|
|
12964
12965
|
display: 'flex'
|
|
12965
12966
|
}
|
|
@@ -13006,17 +13007,17 @@ var useColumns = (function (form) {
|
|
|
13006
13007
|
return validator;
|
|
13007
13008
|
}()
|
|
13008
13009
|
}])
|
|
13009
|
-
})(
|
|
13010
|
+
})(React.createElement(ItemNameInput, {
|
|
13010
13011
|
editGood: editGood,
|
|
13011
13012
|
shorthand: editGood.shorthand,
|
|
13012
13013
|
onChange: function onChange() {
|
|
13013
13014
|
onChangeItemName(controller, form, record);
|
|
13014
13015
|
}
|
|
13015
|
-
})),
|
|
13016
|
+
})), React.createElement("div", {
|
|
13016
13017
|
className: "kts-invoice-operate-goods-list-able-list-itemName-import"
|
|
13017
|
-
}, controller.getGoodsList && model !== 'readOnly' &&
|
|
13018
|
+
}, controller.getGoodsList && model !== 'readOnly' && React.createElement(Tooltip, {
|
|
13018
13019
|
title: "\u70B9\u51FB\u4ECE\u5546\u54C1\u7BA1\u7406\u4E2D\u6DFB\u52A0\u5546\u54C1\u4FE1\u606F"
|
|
13019
|
-
},
|
|
13020
|
+
}, React.createElement(Button, {
|
|
13020
13021
|
onClick: controller.pipeline( /*#__PURE__*/function () {
|
|
13021
13022
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(s) {
|
|
13022
13023
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
@@ -13041,7 +13042,7 @@ var useColumns = (function (form) {
|
|
|
13041
13042
|
icon: "plus-circle"
|
|
13042
13043
|
})))));
|
|
13043
13044
|
} else {
|
|
13044
|
-
return
|
|
13045
|
+
return React.createElement(MyItemNameDiv, {
|
|
13045
13046
|
valueT: formatSearch(getItemNameWithShorthand({
|
|
13046
13047
|
shorthand: record.shorthand,
|
|
13047
13048
|
full: record.itemNameSelf || ''
|
|
@@ -13055,17 +13056,17 @@ var useColumns = (function (form) {
|
|
|
13055
13056
|
}
|
|
13056
13057
|
}
|
|
13057
13058
|
}, {
|
|
13058
|
-
title:
|
|
13059
|
+
title: React.createElement(TitleText, {
|
|
13059
13060
|
rules: (_columnsReplenish$ite = columnsReplenish['itemModelName']) === null || _columnsReplenish$ite === void 0 ? void 0 : _columnsReplenish$ite.rules
|
|
13060
13061
|
}, "\u89C4\u683C\u578B\u53F7"),
|
|
13061
13062
|
key: 'itemModelName',
|
|
13062
13063
|
width: 119,
|
|
13063
13064
|
render: function render(_, record) {
|
|
13064
13065
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
13065
|
-
return
|
|
13066
|
+
return React.createElement(Form.Item, null, getFieldDecorator('itemModelName', {
|
|
13066
13067
|
initialValue: isMyShow ? editGood.itemModelNameSelf : editGood.itemModelName,
|
|
13067
13068
|
rules: getReplenishRules('itemModelName')
|
|
13068
|
-
})(
|
|
13069
|
+
})(React.createElement(MyInput, {
|
|
13069
13070
|
onChange: function () {
|
|
13070
13071
|
var _onChange2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5() {
|
|
13071
13072
|
var key, value;
|
|
@@ -13098,7 +13099,7 @@ var useColumns = (function (form) {
|
|
|
13098
13099
|
}()
|
|
13099
13100
|
})));
|
|
13100
13101
|
} else {
|
|
13101
|
-
return
|
|
13102
|
+
return React.createElement(MyItemNameDiv, {
|
|
13102
13103
|
valueT: formatSearch(record.itemModelNameSelf, searchValue),
|
|
13103
13104
|
valueF: formatSearch(record.itemModelName, searchValue),
|
|
13104
13105
|
isMyShow: isMyShow
|
|
@@ -13106,17 +13107,17 @@ var useColumns = (function (form) {
|
|
|
13106
13107
|
}
|
|
13107
13108
|
}
|
|
13108
13109
|
}, {
|
|
13109
|
-
title:
|
|
13110
|
+
title: React.createElement(TitleText, {
|
|
13110
13111
|
rules: (_columnsReplenish$uni = columnsReplenish['unit']) === null || _columnsReplenish$uni === void 0 ? void 0 : _columnsReplenish$uni.rules
|
|
13111
13112
|
}, "\u5355\u4F4D"),
|
|
13112
13113
|
key: 'unit',
|
|
13113
13114
|
width: 70,
|
|
13114
13115
|
render: function render(_, record) {
|
|
13115
13116
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
13116
|
-
return
|
|
13117
|
+
return React.createElement(Form.Item, null, getFieldDecorator('unit', {
|
|
13117
13118
|
initialValue: editGood.unit,
|
|
13118
13119
|
rules: getReplenishRules('unit')
|
|
13119
|
-
})(
|
|
13120
|
+
})(React.createElement(AutoComplete$2, {
|
|
13120
13121
|
style: {
|
|
13121
13122
|
width: '100%'
|
|
13122
13123
|
},
|
|
@@ -13154,7 +13155,7 @@ var useColumns = (function (form) {
|
|
|
13154
13155
|
}()
|
|
13155
13156
|
})));
|
|
13156
13157
|
} else {
|
|
13157
|
-
return
|
|
13158
|
+
return React.createElement("span", {
|
|
13158
13159
|
style: {
|
|
13159
13160
|
padding: '0 10px'
|
|
13160
13161
|
}
|
|
@@ -13162,7 +13163,7 @@ var useColumns = (function (form) {
|
|
|
13162
13163
|
}
|
|
13163
13164
|
}
|
|
13164
13165
|
}, {
|
|
13165
|
-
title:
|
|
13166
|
+
title: React.createElement(TitleText, {
|
|
13166
13167
|
rules: (_columnsReplenish$qua = columnsReplenish['quantity']) === null || _columnsReplenish$qua === void 0 ? void 0 : _columnsReplenish$qua.rules
|
|
13167
13168
|
}, "\u6570\u91CF"),
|
|
13168
13169
|
dataIndex: 'quantity',
|
|
@@ -13171,7 +13172,7 @@ var useColumns = (function (form) {
|
|
|
13171
13172
|
width: 149,
|
|
13172
13173
|
render: function render(value, record) {
|
|
13173
13174
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
13174
|
-
return
|
|
13175
|
+
return React.createElement(Form.Item, null, getFieldDecorator('quantity', {
|
|
13175
13176
|
initialValue: editGood.quantity,
|
|
13176
13177
|
getValueFromEvent: onNumberValueChange,
|
|
13177
13178
|
rules: [].concat(_toConsumableArray(getReplenishRules('quantity')), [{
|
|
@@ -13217,7 +13218,7 @@ var useColumns = (function (form) {
|
|
|
13217
13218
|
return validator;
|
|
13218
13219
|
}()
|
|
13219
13220
|
}])
|
|
13220
|
-
})(
|
|
13221
|
+
})(React.createElement(MyInput, {
|
|
13221
13222
|
style: {
|
|
13222
13223
|
textAlign: 'right'
|
|
13223
13224
|
},
|
|
@@ -13249,7 +13250,7 @@ var useColumns = (function (form) {
|
|
|
13249
13250
|
}()
|
|
13250
13251
|
})));
|
|
13251
13252
|
} else {
|
|
13252
|
-
return
|
|
13253
|
+
return React.createElement("span", {
|
|
13253
13254
|
style: {
|
|
13254
13255
|
padding: '0 10px'
|
|
13255
13256
|
}
|
|
@@ -13257,7 +13258,7 @@ var useColumns = (function (form) {
|
|
|
13257
13258
|
}
|
|
13258
13259
|
}
|
|
13259
13260
|
}, {
|
|
13260
|
-
title:
|
|
13261
|
+
title: React.createElement(TitleText, {
|
|
13261
13262
|
rules: (_columnsReplenish$pri = columnsReplenish['priceIncludeTax']) === null || _columnsReplenish$pri === void 0 ? void 0 : _columnsReplenish$pri.rules
|
|
13262
13263
|
}, "\u5355\u4EF7(\u542B\u7A0E)"),
|
|
13263
13264
|
dataIndex: 'priceIncludeTax',
|
|
@@ -13266,7 +13267,7 @@ var useColumns = (function (form) {
|
|
|
13266
13267
|
width: 149,
|
|
13267
13268
|
render: function render(value, record) {
|
|
13268
13269
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
13269
|
-
return
|
|
13270
|
+
return React.createElement(Form.Item, null, getFieldDecorator('priceIncludeTax', {
|
|
13270
13271
|
initialValue: editGood.priceIncludeTax,
|
|
13271
13272
|
getValueFromEvent: onNumberValueChange,
|
|
13272
13273
|
rules: [].concat(_toConsumableArray(getReplenishRules('priceIncludeTax')), [{
|
|
@@ -13312,7 +13313,7 @@ var useColumns = (function (form) {
|
|
|
13312
13313
|
return validator;
|
|
13313
13314
|
}()
|
|
13314
13315
|
}])
|
|
13315
|
-
})(
|
|
13316
|
+
})(React.createElement(MyInput, {
|
|
13316
13317
|
style: {
|
|
13317
13318
|
textAlign: 'right'
|
|
13318
13319
|
},
|
|
@@ -13324,7 +13325,7 @@ var useColumns = (function (form) {
|
|
|
13324
13325
|
}
|
|
13325
13326
|
})));
|
|
13326
13327
|
} else {
|
|
13327
|
-
return
|
|
13328
|
+
return React.createElement("span", {
|
|
13328
13329
|
style: {
|
|
13329
13330
|
padding: '0 10px'
|
|
13330
13331
|
}
|
|
@@ -13332,7 +13333,7 @@ var useColumns = (function (form) {
|
|
|
13332
13333
|
}
|
|
13333
13334
|
}
|
|
13334
13335
|
}, {
|
|
13335
|
-
title:
|
|
13336
|
+
title: React.createElement(TitleText, {
|
|
13336
13337
|
rules: (_columnsReplenish$pri2 = columnsReplenish['priceExcludeTax']) === null || _columnsReplenish$pri2 === void 0 ? void 0 : _columnsReplenish$pri2.rules
|
|
13337
13338
|
}, "\u5355\u4EF7(\u4E0D\u542B\u7A0E)"),
|
|
13338
13339
|
dataIndex: 'priceExcludeTax',
|
|
@@ -13341,7 +13342,7 @@ var useColumns = (function (form) {
|
|
|
13341
13342
|
width: 149,
|
|
13342
13343
|
render: function render(value, record) {
|
|
13343
13344
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
13344
|
-
return
|
|
13345
|
+
return React.createElement(Form.Item, null, getFieldDecorator('priceExcludeTax', {
|
|
13345
13346
|
initialValue: editGood.priceExcludeTax,
|
|
13346
13347
|
getValueFromEvent: onNumberValueChange,
|
|
13347
13348
|
rules: [].concat(_toConsumableArray(getReplenishRules('priceExcludeTax')), [{
|
|
@@ -13387,7 +13388,7 @@ var useColumns = (function (form) {
|
|
|
13387
13388
|
return validator;
|
|
13388
13389
|
}()
|
|
13389
13390
|
}])
|
|
13390
|
-
})(
|
|
13391
|
+
})(React.createElement(MyInput, {
|
|
13391
13392
|
style: {
|
|
13392
13393
|
textAlign: 'right'
|
|
13393
13394
|
},
|
|
@@ -13399,7 +13400,7 @@ var useColumns = (function (form) {
|
|
|
13399
13400
|
}
|
|
13400
13401
|
})));
|
|
13401
13402
|
} else {
|
|
13402
|
-
return
|
|
13403
|
+
return React.createElement("span", {
|
|
13403
13404
|
style: {
|
|
13404
13405
|
padding: '0 10px'
|
|
13405
13406
|
}
|
|
@@ -13407,7 +13408,7 @@ var useColumns = (function (form) {
|
|
|
13407
13408
|
}
|
|
13408
13409
|
}
|
|
13409
13410
|
}, {
|
|
13410
|
-
title:
|
|
13411
|
+
title: React.createElement(TitleText, {
|
|
13411
13412
|
required: true
|
|
13412
13413
|
}, "\u91D1\u989D(\u542B\u7A0E)"),
|
|
13413
13414
|
dataIndex: 'lineAmountIncludeTax',
|
|
@@ -13416,7 +13417,7 @@ var useColumns = (function (form) {
|
|
|
13416
13417
|
align: 'right',
|
|
13417
13418
|
render: function render(value, record) {
|
|
13418
13419
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
13419
|
-
return
|
|
13420
|
+
return React.createElement(Form.Item, null, getFieldDecorator('lineAmountIncludeTax', {
|
|
13420
13421
|
initialValue: editGood.lineAmountIncludeTax,
|
|
13421
13422
|
getValueFromEvent: onNumberValueChange,
|
|
13422
13423
|
rules: [].concat(_toConsumableArray(getReplenishRules('lineAmountIncludeTax')), [{
|
|
@@ -13476,7 +13477,7 @@ var useColumns = (function (form) {
|
|
|
13476
13477
|
return validator;
|
|
13477
13478
|
}()
|
|
13478
13479
|
}])
|
|
13479
|
-
})(
|
|
13480
|
+
})(React.createElement(MyInput, {
|
|
13480
13481
|
style: {
|
|
13481
13482
|
textAlign: 'right'
|
|
13482
13483
|
},
|
|
@@ -13487,7 +13488,7 @@ var useColumns = (function (form) {
|
|
|
13487
13488
|
}
|
|
13488
13489
|
})));
|
|
13489
13490
|
} else {
|
|
13490
|
-
return
|
|
13491
|
+
return React.createElement("span", {
|
|
13491
13492
|
style: {
|
|
13492
13493
|
padding: '0 10px'
|
|
13493
13494
|
}
|
|
@@ -13495,7 +13496,7 @@ var useColumns = (function (form) {
|
|
|
13495
13496
|
}
|
|
13496
13497
|
}
|
|
13497
13498
|
}, {
|
|
13498
|
-
title:
|
|
13499
|
+
title: React.createElement(TitleText, {
|
|
13499
13500
|
required: true
|
|
13500
13501
|
}, "\u91D1\u989D(\u4E0D\u542B\u7A0E)"),
|
|
13501
13502
|
dataIndex: 'lineAmountExcludeTax',
|
|
@@ -13504,7 +13505,7 @@ var useColumns = (function (form) {
|
|
|
13504
13505
|
width: 119,
|
|
13505
13506
|
render: function render(value, record) {
|
|
13506
13507
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
13507
|
-
return
|
|
13508
|
+
return React.createElement(Form.Item, null, getFieldDecorator('lineAmountExcludeTax', {
|
|
13508
13509
|
initialValue: editGood.lineAmountExcludeTax,
|
|
13509
13510
|
getValueFromEvent: onNumberValueChange,
|
|
13510
13511
|
rules: [].concat(_toConsumableArray(getReplenishRules('lineAmountExcludeTax')), [{
|
|
@@ -13539,7 +13540,7 @@ var useColumns = (function (form) {
|
|
|
13539
13540
|
return validator;
|
|
13540
13541
|
}()
|
|
13541
13542
|
}])
|
|
13542
|
-
})(
|
|
13543
|
+
})(React.createElement(MyInput, {
|
|
13543
13544
|
style: {
|
|
13544
13545
|
textAlign: 'right'
|
|
13545
13546
|
},
|
|
@@ -13550,7 +13551,7 @@ var useColumns = (function (form) {
|
|
|
13550
13551
|
}
|
|
13551
13552
|
})));
|
|
13552
13553
|
} else {
|
|
13553
|
-
return
|
|
13554
|
+
return React.createElement("span", {
|
|
13554
13555
|
style: {
|
|
13555
13556
|
padding: '0 10px'
|
|
13556
13557
|
}
|
|
@@ -13558,7 +13559,7 @@ var useColumns = (function (form) {
|
|
|
13558
13559
|
}
|
|
13559
13560
|
}
|
|
13560
13561
|
}, {
|
|
13561
|
-
title:
|
|
13562
|
+
title: React.createElement(TitleText, {
|
|
13562
13563
|
required: true
|
|
13563
13564
|
}, "\u7A0E\u7387%"),
|
|
13564
13565
|
dataIndex: 'taxRate',
|
|
@@ -13567,7 +13568,7 @@ var useColumns = (function (form) {
|
|
|
13567
13568
|
width: 75,
|
|
13568
13569
|
render: function render(value, record) {
|
|
13569
13570
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
13570
|
-
return
|
|
13571
|
+
return React.createElement(Form.Item, null, getFieldDecorator('taxRate', {
|
|
13571
13572
|
initialValue: editGood.taxRate,
|
|
13572
13573
|
rules: [].concat(_toConsumableArray(getReplenishRules('taxRate')), [{
|
|
13573
13574
|
required: true,
|
|
@@ -13576,7 +13577,7 @@ var useColumns = (function (form) {
|
|
|
13576
13577
|
pattern: /^[+-]?(0|([1-9]\d*))(\.\d+)?$/,
|
|
13577
13578
|
message: '请选择正确税率'
|
|
13578
13579
|
}])
|
|
13579
|
-
})(
|
|
13580
|
+
})(React.createElement(Select, {
|
|
13580
13581
|
className: "kts-invoice-operate-goods-list-table-tax-rate",
|
|
13581
13582
|
dropdownMenuStyle: {
|
|
13582
13583
|
textAlign: "right"
|
|
@@ -13590,13 +13591,13 @@ var useColumns = (function (form) {
|
|
|
13590
13591
|
onChangeTaxRate(controller, form, record);
|
|
13591
13592
|
}
|
|
13592
13593
|
}, taxRateList.map(function (e, i) {
|
|
13593
|
-
return
|
|
13594
|
+
return React.createElement(Select.Option, {
|
|
13594
13595
|
key: i,
|
|
13595
13596
|
value: e
|
|
13596
13597
|
}, e, "%");
|
|
13597
13598
|
}))));
|
|
13598
13599
|
} else {
|
|
13599
|
-
return
|
|
13600
|
+
return React.createElement("span", {
|
|
13600
13601
|
style: {
|
|
13601
13602
|
padding: '0 10px'
|
|
13602
13603
|
}
|
|
@@ -13604,7 +13605,7 @@ var useColumns = (function (form) {
|
|
|
13604
13605
|
}
|
|
13605
13606
|
}
|
|
13606
13607
|
}, {
|
|
13607
|
-
title:
|
|
13608
|
+
title: React.createElement(TitleText, {
|
|
13608
13609
|
rules: (_columnsReplenish$tax = columnsReplenish['taxAmount']) === null || _columnsReplenish$tax === void 0 ? void 0 : _columnsReplenish$tax.rules
|
|
13609
13610
|
}, "\u7A0E\u989D"),
|
|
13610
13611
|
dataIndex: 'taxAmount',
|
|
@@ -13616,11 +13617,11 @@ var useColumns = (function (form) {
|
|
|
13616
13617
|
return getFieldDecorator('taxAmount', {
|
|
13617
13618
|
initialValue: editGood.taxAmount,
|
|
13618
13619
|
rules: getReplenishRules('taxAmount')
|
|
13619
|
-
})(
|
|
13620
|
+
})(React.createElement(MyDiv, {
|
|
13620
13621
|
loading: isCipher(changeField, 'taxAmount')
|
|
13621
13622
|
}));
|
|
13622
13623
|
} else {
|
|
13623
|
-
return
|
|
13624
|
+
return React.createElement("span", {
|
|
13624
13625
|
style: {
|
|
13625
13626
|
padding: '0 10px'
|
|
13626
13627
|
}
|
|
@@ -13635,42 +13636,42 @@ var useColumns = (function (form) {
|
|
|
13635
13636
|
render: function render(e) {
|
|
13636
13637
|
switch (e) {
|
|
13637
13638
|
case LineAttributeType$1.折扣行:
|
|
13638
|
-
return
|
|
13639
|
+
return React.createElement("span", {
|
|
13639
13640
|
style: {
|
|
13640
13641
|
padding: '0 10px'
|
|
13641
13642
|
}
|
|
13642
13643
|
}, "\u6298\u6263\u884C");
|
|
13643
13644
|
|
|
13644
13645
|
case LineAttributeType$1.被折扣行:
|
|
13645
|
-
return
|
|
13646
|
+
return React.createElement("span", {
|
|
13646
13647
|
style: {
|
|
13647
13648
|
padding: '0 10px'
|
|
13648
13649
|
}
|
|
13649
13650
|
}, "\u88AB\u6298\u6263\u884C");
|
|
13650
13651
|
|
|
13651
13652
|
case LineAttributeType$1.赠品行:
|
|
13652
|
-
return
|
|
13653
|
+
return React.createElement("span", {
|
|
13653
13654
|
style: {
|
|
13654
13655
|
padding: '0 10px'
|
|
13655
13656
|
}
|
|
13656
13657
|
}, "\u8D60\u54C1\u884C");
|
|
13657
13658
|
|
|
13658
13659
|
case LineAttributeType$1.折让行:
|
|
13659
|
-
return
|
|
13660
|
+
return React.createElement("span", {
|
|
13660
13661
|
style: {
|
|
13661
13662
|
padding: '0 10px'
|
|
13662
13663
|
}
|
|
13663
13664
|
}, "\u6298\u8BA9\u884C");
|
|
13664
13665
|
|
|
13665
13666
|
case LineAttributeType$1.正常:
|
|
13666
|
-
return
|
|
13667
|
+
return React.createElement("span", {
|
|
13667
13668
|
style: {
|
|
13668
13669
|
padding: '0 10px'
|
|
13669
13670
|
}
|
|
13670
13671
|
}, "\u6B63\u5E38\u884C");
|
|
13671
13672
|
|
|
13672
13673
|
default:
|
|
13673
|
-
return
|
|
13674
|
+
return React.createElement("span", {
|
|
13674
13675
|
style: {
|
|
13675
13676
|
padding: '0 10px'
|
|
13676
13677
|
}
|
|
@@ -13684,7 +13685,7 @@ var useColumns = (function (form) {
|
|
|
13684
13685
|
width: 130,
|
|
13685
13686
|
fixed: 'right',
|
|
13686
13687
|
render: function render(_value, record) {
|
|
13687
|
-
return
|
|
13688
|
+
return React.createElement(RowMenu, {
|
|
13688
13689
|
key: record.lineAttribute,
|
|
13689
13690
|
goods: record
|
|
13690
13691
|
});
|
|
@@ -13739,13 +13740,13 @@ var MyInput = /*#__PURE__*/function (_React$Component) {
|
|
|
13739
13740
|
key: "render",
|
|
13740
13741
|
value: function render() {
|
|
13741
13742
|
if (this.props.loading) {
|
|
13742
|
-
return
|
|
13743
|
+
return React.createElement(Spin, {
|
|
13743
13744
|
size: "small"
|
|
13744
|
-
},
|
|
13745
|
+
}, React.createElement(Input, _objectSpread2(_objectSpread2({}, this.props), {}, {
|
|
13745
13746
|
autoComplete: "off"
|
|
13746
13747
|
})));
|
|
13747
13748
|
} else {
|
|
13748
|
-
return
|
|
13749
|
+
return React.createElement(Input, _objectSpread2(_objectSpread2({}, this.props), {}, {
|
|
13749
13750
|
autoComplete: "off"
|
|
13750
13751
|
}));
|
|
13751
13752
|
}
|
|
@@ -13770,15 +13771,15 @@ var MyDiv = /*#__PURE__*/function (_React$Component2) {
|
|
|
13770
13771
|
key: "render",
|
|
13771
13772
|
value: function render() {
|
|
13772
13773
|
if (this.props.loading) {
|
|
13773
|
-
return
|
|
13774
|
+
return React.createElement(Spin, {
|
|
13774
13775
|
size: "small"
|
|
13775
|
-
},
|
|
13776
|
+
}, React.createElement("span", {
|
|
13776
13777
|
style: {
|
|
13777
13778
|
padding: '0 10px'
|
|
13778
13779
|
}
|
|
13779
13780
|
}, this.props.value));
|
|
13780
13781
|
} else {
|
|
13781
|
-
return
|
|
13782
|
+
return React.createElement("span", {
|
|
13782
13783
|
style: {
|
|
13783
13784
|
padding: '0 10px'
|
|
13784
13785
|
}
|
|
@@ -13811,9 +13812,9 @@ var MyItemNameDiv = /*#__PURE__*/function (_React$Component3) {
|
|
|
13811
13812
|
|
|
13812
13813
|
if (isMyShow) {
|
|
13813
13814
|
if (valueT) {
|
|
13814
|
-
return
|
|
13815
|
+
return React.createElement(Tooltip, {
|
|
13815
13816
|
title: valueT
|
|
13816
|
-
},
|
|
13817
|
+
}, React.createElement("span", {
|
|
13817
13818
|
style: {
|
|
13818
13819
|
padding: '0 10px',
|
|
13819
13820
|
color: '#0074ff',
|
|
@@ -13824,9 +13825,9 @@ var MyItemNameDiv = /*#__PURE__*/function (_React$Component3) {
|
|
|
13824
13825
|
}
|
|
13825
13826
|
}, valueT));
|
|
13826
13827
|
} else {
|
|
13827
|
-
return
|
|
13828
|
+
return React.createElement(Tooltip, {
|
|
13828
13829
|
title: valueF
|
|
13829
|
-
},
|
|
13830
|
+
}, React.createElement("span", {
|
|
13830
13831
|
style: {
|
|
13831
13832
|
padding: '0 10px',
|
|
13832
13833
|
display: 'block',
|
|
@@ -13838,9 +13839,9 @@ var MyItemNameDiv = /*#__PURE__*/function (_React$Component3) {
|
|
|
13838
13839
|
}
|
|
13839
13840
|
} else {
|
|
13840
13841
|
if (valueF) {
|
|
13841
|
-
return
|
|
13842
|
+
return React.createElement(Tooltip, {
|
|
13842
13843
|
title: valueF
|
|
13843
|
-
},
|
|
13844
|
+
}, React.createElement("span", {
|
|
13844
13845
|
style: {
|
|
13845
13846
|
padding: '0 10px',
|
|
13846
13847
|
display: 'block',
|
|
@@ -13850,9 +13851,9 @@ var MyItemNameDiv = /*#__PURE__*/function (_React$Component3) {
|
|
|
13850
13851
|
}
|
|
13851
13852
|
}, valueF));
|
|
13852
13853
|
} else {
|
|
13853
|
-
return
|
|
13854
|
+
return React.createElement(Tooltip, {
|
|
13854
13855
|
title: valueT
|
|
13855
|
-
},
|
|
13856
|
+
}, React.createElement("span", {
|
|
13856
13857
|
style: {
|
|
13857
13858
|
padding: '0 10px',
|
|
13858
13859
|
color: '#0074ff',
|
|
@@ -13879,7 +13880,7 @@ function formatSearch(value, search) {
|
|
|
13879
13880
|
return dcoding(e);
|
|
13880
13881
|
}).join("<span class=\"kts-invoice-operate-goods-list-table-search-protrude\" >".concat(search, "</span>"));
|
|
13881
13882
|
|
|
13882
|
-
return
|
|
13883
|
+
return React.createElement("span", {
|
|
13883
13884
|
dangerouslySetInnerHTML: {
|
|
13884
13885
|
__html: __html
|
|
13885
13886
|
}
|
|
@@ -14304,7 +14305,7 @@ var useRowSelection = (function () {
|
|
|
14304
14305
|
};
|
|
14305
14306
|
}(), [controller]);
|
|
14306
14307
|
var columnTitle = React.useMemo(function () {
|
|
14307
|
-
return
|
|
14308
|
+
return React.createElement(Checkbox, {
|
|
14308
14309
|
onChange: onClickSelectAll,
|
|
14309
14310
|
indeterminate: indeterminate,
|
|
14310
14311
|
checked: isAll
|
|
@@ -14505,16 +14506,16 @@ var useEndowCodeButton = (function () {
|
|
|
14505
14506
|
}, _callee2);
|
|
14506
14507
|
})), [controller]);
|
|
14507
14508
|
var menuItem = React.useMemo(function () {
|
|
14508
|
-
if (model === 'readOnly') return
|
|
14509
|
-
return
|
|
14509
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
14510
|
+
return React.createElement(Menu.Item, {
|
|
14510
14511
|
key: "2",
|
|
14511
14512
|
onClick: onClick,
|
|
14512
14513
|
disabled: disabled
|
|
14513
14514
|
}, "\u6279\u91CF\u8D4B\u7801");
|
|
14514
14515
|
}, [onClick, disabled, model]);
|
|
14515
14516
|
var button = React.useMemo(function () {
|
|
14516
|
-
if (model === 'readOnly') return
|
|
14517
|
-
return
|
|
14517
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
14518
|
+
return React.createElement(Button, {
|
|
14518
14519
|
onClick: onClick,
|
|
14519
14520
|
disabled: disabled
|
|
14520
14521
|
}, "\u6279\u91CF\u8D4B\u7801");
|
|
@@ -14580,19 +14581,19 @@ var useDelRowButton = (function () {
|
|
|
14580
14581
|
}())();
|
|
14581
14582
|
}, [controller]);
|
|
14582
14583
|
var menuItem = React.useMemo(function () {
|
|
14583
|
-
if (model === 'prefab') return
|
|
14584
|
-
if (model === 'readOnly') return
|
|
14585
|
-
return
|
|
14584
|
+
if (model === 'prefab') return React.createElement(React.Fragment, null);
|
|
14585
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
14586
|
+
return React.createElement(Menu.Item, {
|
|
14586
14587
|
key: "1",
|
|
14587
14588
|
onClick: onClick,
|
|
14588
14589
|
disabled: disabled
|
|
14589
14590
|
}, " \u5220\u9664\u884C ");
|
|
14590
14591
|
}, [model, onClick, disabled]);
|
|
14591
14592
|
var button = React.useMemo(function () {
|
|
14592
|
-
if (isRemRow === false) return
|
|
14593
|
-
if (model === 'prefab') return
|
|
14594
|
-
if (model === 'readOnly') return
|
|
14595
|
-
return
|
|
14593
|
+
if (isRemRow === false) return React.createElement(React.Fragment, null);
|
|
14594
|
+
if (model === 'prefab') return React.createElement(React.Fragment, null);
|
|
14595
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
14596
|
+
return React.createElement(Button, {
|
|
14596
14597
|
onClick: onClick,
|
|
14597
14598
|
disabled: disabled
|
|
14598
14599
|
}, "\u6279\u91CF\u5220\u9664");
|
|
@@ -14787,14 +14788,14 @@ var useAddDiscountRowButton = (function () {
|
|
|
14787
14788
|
}, _callee3);
|
|
14788
14789
|
})), [controller]);
|
|
14789
14790
|
var menuItem = React.useMemo(function () {
|
|
14790
|
-
return model === 'prefab' ?
|
|
14791
|
+
return model === 'prefab' ? React.createElement(React.Fragment, null) : isAddDiscount !== false ? React.createElement(Menu.Item, {
|
|
14791
14792
|
key: "0",
|
|
14792
14793
|
onClick: onClick,
|
|
14793
14794
|
disabled: disabled
|
|
14794
14795
|
}, "\u6DFB\u52A0\u6298\u6263\u884C") : undefined;
|
|
14795
14796
|
}, [isAddDiscount, disabled, onClick]);
|
|
14796
14797
|
var drawer = React.useMemo(function () {
|
|
14797
|
-
return
|
|
14798
|
+
return React.createElement(Drawer, {
|
|
14798
14799
|
className: "kts-invoice-operate-goods-list-add-discount-row",
|
|
14799
14800
|
width: 540,
|
|
14800
14801
|
title: "\u6DFB\u52A0\u6298\u6263\u884C",
|
|
@@ -14802,7 +14803,7 @@ var useAddDiscountRowButton = (function () {
|
|
|
14802
14803
|
destroyOnClose: true,
|
|
14803
14804
|
onClose: onClose,
|
|
14804
14805
|
visible: visible
|
|
14805
|
-
},
|
|
14806
|
+
}, React.createElement(DrawerBody, null));
|
|
14806
14807
|
}, [visible, onClose]);
|
|
14807
14808
|
return {
|
|
14808
14809
|
menuItem: menuItem,
|
|
@@ -14919,13 +14920,13 @@ var DrawerBody = decorator(Form.create())(function (props) {
|
|
|
14919
14920
|
});
|
|
14920
14921
|
});
|
|
14921
14922
|
}, 300), [form, lineAmountSum]);
|
|
14922
|
-
return
|
|
14923
|
+
return React.createElement(React.Fragment, null, React.createElement("div", {
|
|
14923
14924
|
className: "add-discount-row-body"
|
|
14924
|
-
},
|
|
14925
|
+
}, React.createElement("p", null, "\u5F53\u524D\u9009\u62E9", React.createElement(Text$3, {
|
|
14925
14926
|
type: "danger"
|
|
14926
|
-
}, discountGoodIndex.length), "\u884C\u88AB\u6298\u6263\u5546\u54C1\u884C\uFF0C\u91D1\u989D\u5408\u8BA1\xA5",
|
|
14927
|
+
}, discountGoodIndex.length), "\u884C\u88AB\u6298\u6263\u5546\u54C1\u884C\uFF0C\u91D1\u989D\u5408\u8BA1\xA5", React.createElement(Text$3, {
|
|
14927
14928
|
type: "danger"
|
|
14928
|
-
}, lineAmountSum.toFixed(2))),
|
|
14929
|
+
}, lineAmountSum.toFixed(2))), React.createElement(Form.Item, {
|
|
14929
14930
|
label: "\u6298\u6263\u7387\uFF1A"
|
|
14930
14931
|
}, getFieldDecorator('discount', {
|
|
14931
14932
|
rules: [{
|
|
@@ -14955,11 +14956,11 @@ var DrawerBody = decorator(Form.create())(function (props) {
|
|
|
14955
14956
|
callback();
|
|
14956
14957
|
}
|
|
14957
14958
|
}]
|
|
14958
|
-
})(
|
|
14959
|
+
})(React.createElement(Input, {
|
|
14959
14960
|
placeholder: "\u8BF7\u8F93\u5165\u5927\u4E8E0\u5C0F\u4E8E100\u7684\u6570\u5B57",
|
|
14960
14961
|
suffix: "%",
|
|
14961
14962
|
onChange: onChangeDiscount
|
|
14962
|
-
}))),
|
|
14963
|
+
}))), React.createElement(Form.Item, {
|
|
14963
14964
|
label: "\u6298\u6263\u91D1\u989D\uFF1A"
|
|
14964
14965
|
}, getFieldDecorator('discolineAmountunt', {
|
|
14965
14966
|
rules: [{
|
|
@@ -14989,19 +14990,19 @@ var DrawerBody = decorator(Form.create())(function (props) {
|
|
|
14989
14990
|
callback();
|
|
14990
14991
|
}
|
|
14991
14992
|
}]
|
|
14992
|
-
})(
|
|
14993
|
+
})(React.createElement(Input, {
|
|
14993
14994
|
placeholder: "\u8BF7\u8F93\u5165\u5927\u4E8E0\u5C0F\u4E8E\u91D1\u989D\u5408\u8BA1\u7684\u6570\u5B57",
|
|
14994
14995
|
suffix: "\xA5",
|
|
14995
14996
|
onChange: onChangeDiscolineAmountunt
|
|
14996
|
-
})))),
|
|
14997
|
+
})))), React.createElement("div", {
|
|
14997
14998
|
className: "add-discount-row-footer"
|
|
14998
|
-
},
|
|
14999
|
+
}, React.createElement(Button, {
|
|
14999
15000
|
block: true,
|
|
15000
15001
|
style: {
|
|
15001
15002
|
marginBottom: 12
|
|
15002
15003
|
},
|
|
15003
15004
|
onClick: onClose
|
|
15004
|
-
}, "\u53D6\u6D88"),
|
|
15005
|
+
}, "\u53D6\u6D88"), React.createElement(Button, {
|
|
15005
15006
|
type: "primary",
|
|
15006
15007
|
block: true,
|
|
15007
15008
|
onClick: onClickSave
|
|
@@ -15098,13 +15099,13 @@ function useMergeDetails() {
|
|
|
15098
15099
|
}];
|
|
15099
15100
|
}, [selectedGoodIndex, onClickManual, onClickAuto]);
|
|
15100
15101
|
var button = React.useMemo(function () {
|
|
15101
|
-
if (!isMergeDetails) return
|
|
15102
|
-
return
|
|
15102
|
+
if (!isMergeDetails) return React.createElement(React.Fragment, null);
|
|
15103
|
+
return React.createElement(Dropdown$1, {
|
|
15103
15104
|
menu: {
|
|
15104
15105
|
items: items
|
|
15105
15106
|
},
|
|
15106
15107
|
trigger: ['click']
|
|
15107
|
-
},
|
|
15108
|
+
}, React.createElement(Button, null, "\u5408\u5E76\u660E\u7EC6"));
|
|
15108
15109
|
}, [selectedGoodIndex.length, isMergeDetails]);
|
|
15109
15110
|
return {
|
|
15110
15111
|
/** 按钮 */
|
|
@@ -15190,8 +15191,8 @@ function useMergeDiscount() {
|
|
|
15190
15191
|
}, _callee);
|
|
15191
15192
|
})), [controller]);
|
|
15192
15193
|
var button = React.useMemo(function () {
|
|
15193
|
-
if (!isMergeDiscount) return
|
|
15194
|
-
return
|
|
15194
|
+
if (!isMergeDiscount) return React.createElement(React.Fragment, null);
|
|
15195
|
+
return React.createElement(Button, {
|
|
15195
15196
|
onClick: onClick,
|
|
15196
15197
|
disabled: goodsList.length <= 1
|
|
15197
15198
|
}, "\u5408\u5E76\u6298\u6263");
|
|
@@ -15369,8 +15370,8 @@ function useSalesDiscount() {
|
|
|
15369
15370
|
}).length <= 0;
|
|
15370
15371
|
}, [goodsList]);
|
|
15371
15372
|
var button = React.useMemo(function () {
|
|
15372
|
-
if (!isSalesDiscount) return
|
|
15373
|
-
return
|
|
15373
|
+
if (!isSalesDiscount) return React.createElement(React.Fragment, null);
|
|
15374
|
+
return React.createElement(Button, {
|
|
15374
15375
|
onClick: onClick,
|
|
15375
15376
|
disabled: disabled
|
|
15376
15377
|
}, "\u9500\u552E\u6298\u8BA9");
|
|
@@ -15541,12 +15542,12 @@ function useSalesGifts() {
|
|
|
15541
15542
|
}, [selectedGoodIndex, onClickManual, onClickAuto]);
|
|
15542
15543
|
var button = React.useMemo(function () {
|
|
15543
15544
|
if (!isSalesGifts) return;
|
|
15544
|
-
return
|
|
15545
|
+
return React.createElement(Dropdown$1, {
|
|
15545
15546
|
menu: {
|
|
15546
15547
|
items: items
|
|
15547
15548
|
},
|
|
15548
15549
|
trigger: ['click']
|
|
15549
|
-
},
|
|
15550
|
+
}, React.createElement(Button, null, "\u9500\u552E\u8D60\u54C1"));
|
|
15550
15551
|
}, [items, isSalesGifts]);
|
|
15551
15552
|
return {
|
|
15552
15553
|
/** 按钮 */
|
|
@@ -15584,7 +15585,7 @@ var GoodsList = /*#__PURE__*/function (_React$Component) {
|
|
|
15584
15585
|
_createClass(GoodsList, [{
|
|
15585
15586
|
key: "render",
|
|
15586
15587
|
value: function render() {
|
|
15587
|
-
return
|
|
15588
|
+
return React.createElement(Main, _objectSpread2({}, this.props));
|
|
15588
15589
|
}
|
|
15589
15590
|
}]);
|
|
15590
15591
|
|
|
@@ -15786,22 +15787,22 @@ var Main = decorator(Form.create())(function (props) {
|
|
|
15786
15787
|
};
|
|
15787
15788
|
}())();
|
|
15788
15789
|
}, [controller, props.isSwitchTax]);
|
|
15789
|
-
return
|
|
15790
|
+
return React.createElement("div", {
|
|
15790
15791
|
className: "kts-invoice-operate-goods-list",
|
|
15791
15792
|
onClick: function onClick(e) {
|
|
15792
15793
|
e.stopPropagation();
|
|
15793
15794
|
}
|
|
15794
|
-
},
|
|
15795
|
+
}, React.createElement("div", {
|
|
15795
15796
|
className: "kts-invoice-operate-goods-list-able"
|
|
15796
|
-
},
|
|
15797
|
+
}, React.createElement("div", {
|
|
15797
15798
|
className: "kts-invoice-operate-goods-list-able-list"
|
|
15798
|
-
},
|
|
15799
|
+
}, 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", {
|
|
15799
15800
|
className: "kts-invoice-operate-goods-list-able-extend"
|
|
15800
|
-
}, props.menuExpansion,
|
|
15801
|
+
}, props.menuExpansion, React.createElement(DescribeSwitch, null), React.createElement(TaxIncludedSwitch, null))), React.createElement("div", {
|
|
15801
15802
|
className: classNames('kts-invoice-operate-goods-list-table', {
|
|
15802
15803
|
'kts-invoice-operate-prefab': isprefab
|
|
15803
15804
|
})
|
|
15804
|
-
},
|
|
15805
|
+
}, React.createElement(TableVirtual, {
|
|
15805
15806
|
bordered: true,
|
|
15806
15807
|
size: "small",
|
|
15807
15808
|
rowKey: "$index",
|
|
@@ -15824,7 +15825,7 @@ var Main = decorator(Form.create())(function (props) {
|
|
|
15824
15825
|
}
|
|
15825
15826
|
};
|
|
15826
15827
|
}
|
|
15827
|
-
})),
|
|
15828
|
+
})), React.createElement("div", null, React.createElement(Statistics, null)));
|
|
15828
15829
|
});
|
|
15829
15830
|
|
|
15830
15831
|
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";
|
|
@@ -15849,7 +15850,7 @@ var Buyer = /*#__PURE__*/function (_React$Component) {
|
|
|
15849
15850
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
15850
15851
|
|
|
15851
15852
|
_this.render = function () {
|
|
15852
|
-
return
|
|
15853
|
+
return React.createElement(Main$1, _objectSpread2({}, _this.props));
|
|
15853
15854
|
};
|
|
15854
15855
|
|
|
15855
15856
|
return _this;
|
|
@@ -15880,7 +15881,7 @@ var Main$1 = decorator(Form.create())(function (props) {
|
|
|
15880
15881
|
return [{
|
|
15881
15882
|
id: 'sellerName',
|
|
15882
15883
|
label: '销售方名称',
|
|
15883
|
-
node:
|
|
15884
|
+
node: React.createElement(Input, {
|
|
15884
15885
|
readOnly: model === 'prefab',
|
|
15885
15886
|
size: "small"
|
|
15886
15887
|
}),
|
|
@@ -15893,7 +15894,7 @@ var Main$1 = decorator(Form.create())(function (props) {
|
|
|
15893
15894
|
}, {
|
|
15894
15895
|
id: 'sellerNo',
|
|
15895
15896
|
label: '销售方纳税人识别号',
|
|
15896
|
-
node:
|
|
15897
|
+
node: React.createElement(Input, {
|
|
15897
15898
|
readOnly: model === 'prefab',
|
|
15898
15899
|
size: "small"
|
|
15899
15900
|
}),
|
|
@@ -15906,7 +15907,7 @@ var Main$1 = decorator(Form.create())(function (props) {
|
|
|
15906
15907
|
}, {
|
|
15907
15908
|
id: 'sellerAddress',
|
|
15908
15909
|
label: '销售方地址及电话',
|
|
15909
|
-
node:
|
|
15910
|
+
node: React.createElement(Input, {
|
|
15910
15911
|
readOnly: model === 'prefab',
|
|
15911
15912
|
size: "small"
|
|
15912
15913
|
}),
|
|
@@ -15919,7 +15920,7 @@ var Main$1 = decorator(Form.create())(function (props) {
|
|
|
15919
15920
|
}, {
|
|
15920
15921
|
id: 'sellerBank',
|
|
15921
15922
|
label: '销售方开户行及账号',
|
|
15922
|
-
node:
|
|
15923
|
+
node: React.createElement(Input, {
|
|
15923
15924
|
readOnly: model === 'prefab',
|
|
15924
15925
|
size: "small"
|
|
15925
15926
|
}),
|
|
@@ -15945,31 +15946,31 @@ var Main$1 = decorator(Form.create())(function (props) {
|
|
|
15945
15946
|
return getFieldDecorator(e.id, e.options)(e.node);
|
|
15946
15947
|
}
|
|
15947
15948
|
}, [props.formRender]);
|
|
15948
|
-
return
|
|
15949
|
+
return React.createElement(Form, null, React.createElement("div", {
|
|
15949
15950
|
className: "kts-invoice-operate-seller"
|
|
15950
|
-
},
|
|
15951
|
+
}, React.createElement("div", {
|
|
15951
15952
|
className: "kts-invoice-operate-seller-message"
|
|
15952
|
-
},
|
|
15953
|
+
}, React.createElement("div", {
|
|
15953
15954
|
className: "kts-invoice-operate-seller-title"
|
|
15954
|
-
},
|
|
15955
|
+
}, React.createElement("label", null, "\u9500\u552E\u65B9")), React.createElement(Descriptions, {
|
|
15955
15956
|
className: "kts-invoice-operate-seller-message-list",
|
|
15956
15957
|
size: "small",
|
|
15957
15958
|
column: 1,
|
|
15958
15959
|
bordered: true
|
|
15959
15960
|
}, formItem.map(function (e, i) {
|
|
15960
|
-
return
|
|
15961
|
+
return React.createElement(Descriptions.Item, {
|
|
15961
15962
|
key: i,
|
|
15962
15963
|
label: e.label
|
|
15963
|
-
},
|
|
15964
|
-
}))),
|
|
15964
|
+
}, React.createElement(Form.Item, null, createFormItem(e)));
|
|
15965
|
+
}))), React.createElement("div", {
|
|
15965
15966
|
className: "kts-invoice-operate-seller-remarks"
|
|
15966
|
-
},
|
|
15967
|
+
}, React.createElement("div", {
|
|
15967
15968
|
className: "kts-invoice-operate-seller-title"
|
|
15968
|
-
},
|
|
15969
|
+
}, React.createElement("label", null, "\u5907\u6CE8")), React.createElement("div", {
|
|
15969
15970
|
className: "kts-invoice-operate-seller-remarks-value"
|
|
15970
15971
|
}, getFieldDecorator('remarks', {
|
|
15971
15972
|
initialValue: props.defaultsellerRemarks
|
|
15972
|
-
})(
|
|
15973
|
+
})(React.createElement(TextArea, null))))));
|
|
15973
15974
|
});
|
|
15974
15975
|
|
|
15975
15976
|
var ImportBuyerButton = (function () {
|
|
@@ -15996,7 +15997,7 @@ var ImportBuyerButton = (function () {
|
|
|
15996
15997
|
};
|
|
15997
15998
|
}())();
|
|
15998
15999
|
}, [controller]);
|
|
15999
|
-
return
|
|
16000
|
+
return React.createElement(React.Fragment, null, controller.getBuyerList && React.createElement(Button, {
|
|
16000
16001
|
type: "link",
|
|
16001
16002
|
icon: "plus-circle",
|
|
16002
16003
|
onClick: onClick
|
|
@@ -16035,29 +16036,29 @@ var BuyerNameInput = (function (props) {
|
|
|
16035
16036
|
var content = React.useMemo(function () {
|
|
16036
16037
|
var _dataSource$recent;
|
|
16037
16038
|
|
|
16038
|
-
return
|
|
16039
|
+
return React.createElement("div", {
|
|
16039
16040
|
className: 'kts-invoice-operate-buyer-name-content'
|
|
16040
|
-
}, loading ?
|
|
16041
|
+
}, loading ? React.createElement("div", {
|
|
16041
16042
|
style: {
|
|
16042
16043
|
textAlign: 'center'
|
|
16043
16044
|
}
|
|
16044
|
-
},
|
|
16045
|
+
}, React.createElement(Spin, null)) : React.createElement(React.Fragment, null, React.createElement("div", {
|
|
16045
16046
|
className: 'kts-invoice-operate-buyer-name-content-block',
|
|
16046
16047
|
style: {
|
|
16047
16048
|
padding: '14px 10px'
|
|
16048
16049
|
}
|
|
16049
|
-
},
|
|
16050
|
+
}, React.createElement("label", {
|
|
16050
16051
|
style: {
|
|
16051
16052
|
marginBottom: 10
|
|
16052
16053
|
}
|
|
16053
|
-
}, "\u6700\u8FD1\u5F00\u5177"),
|
|
16054
|
+
}, "\u6700\u8FD1\u5F00\u5177"), React.createElement("ul", {
|
|
16054
16055
|
className: 'kts-invoice-operate-buyer-name-content-recently-issued'
|
|
16055
|
-
}, !dataSource.recent || dataSource.recent.length <= 0 ?
|
|
16056
|
+
}, !dataSource.recent || dataSource.recent.length <= 0 ? React.createElement(Empty, {
|
|
16056
16057
|
image: Empty.PRESENTED_IMAGE_SIMPLE
|
|
16057
16058
|
}) : (_dataSource$recent = dataSource.recent) === null || _dataSource$recent === void 0 ? void 0 : _dataSource$recent.map(function (e, i) {
|
|
16058
16059
|
var _dataSource$recent$le, _dataSource$recent2;
|
|
16059
16060
|
|
|
16060
|
-
return
|
|
16061
|
+
return React.createElement("li", {
|
|
16061
16062
|
key: i,
|
|
16062
16063
|
onClick: function onClick() {
|
|
16063
16064
|
onClickItem(e);
|
|
@@ -16065,37 +16066,37 @@ var BuyerNameInput = (function (props) {
|
|
|
16065
16066
|
style: {
|
|
16066
16067
|
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)
|
|
16067
16068
|
}
|
|
16068
|
-
},
|
|
16069
|
-
}))),
|
|
16069
|
+
}, React.createElement(MyTag, null, e.buyerName));
|
|
16070
|
+
}))), React.createElement(Divider, {
|
|
16070
16071
|
style: {
|
|
16071
16072
|
margin: "0 6px"
|
|
16072
16073
|
}
|
|
16073
|
-
}),
|
|
16074
|
+
}), React.createElement("div", {
|
|
16074
16075
|
className: 'kts-invoice-operate-buyer-name-content-block',
|
|
16075
16076
|
style: {
|
|
16076
16077
|
padding: '14px 10px 4px'
|
|
16077
16078
|
}
|
|
16078
|
-
},
|
|
16079
|
+
}, React.createElement("label", {
|
|
16079
16080
|
style: {
|
|
16080
16081
|
padding: '0 10px'
|
|
16081
16082
|
}
|
|
16082
|
-
}, "\u9009\u62E9\u516C\u53F8"),
|
|
16083
|
+
}, "\u9009\u62E9\u516C\u53F8"), React.createElement("div", {
|
|
16083
16084
|
style: {
|
|
16084
16085
|
maxHeight: 200,
|
|
16085
16086
|
overflow: "auto"
|
|
16086
16087
|
}
|
|
16087
|
-
}, !dataSource.list || dataSource.list.length <= 0 ?
|
|
16088
|
+
}, !dataSource.list || dataSource.list.length <= 0 ? React.createElement(Empty, {
|
|
16088
16089
|
image: Empty.PRESENTED_IMAGE_SIMPLE
|
|
16089
16090
|
}) : dataSource.list.map(function (e, i) {
|
|
16090
|
-
return
|
|
16091
|
+
return React.createElement("ul", {
|
|
16091
16092
|
key: i,
|
|
16092
16093
|
onClick: function onClick() {
|
|
16093
16094
|
onClickItem(e);
|
|
16094
16095
|
},
|
|
16095
16096
|
className: 'kts-invoice-operate-buyer-name-content-select-company'
|
|
16096
|
-
},
|
|
16097
|
+
}, React.createElement("li", {
|
|
16097
16098
|
title: e.buyerName
|
|
16098
|
-
}, e.buyerName),
|
|
16099
|
+
}, e.buyerName), React.createElement("li", {
|
|
16099
16100
|
title: e.buyerNo
|
|
16100
16101
|
}, e.buyerNo));
|
|
16101
16102
|
})))));
|
|
@@ -16136,7 +16137,7 @@ var BuyerNameInput = (function (props) {
|
|
|
16136
16137
|
}, [visible, props.value]);
|
|
16137
16138
|
|
|
16138
16139
|
if (model === 'prefab' || !autoContainer) {
|
|
16139
|
-
return
|
|
16140
|
+
return React.createElement(Input, {
|
|
16140
16141
|
size: "small",
|
|
16141
16142
|
autoComplete: "off",
|
|
16142
16143
|
value: props.value,
|
|
@@ -16147,14 +16148,14 @@ var BuyerNameInput = (function (props) {
|
|
|
16147
16148
|
});
|
|
16148
16149
|
}
|
|
16149
16150
|
|
|
16150
|
-
return
|
|
16151
|
+
return React.createElement(Popover$1, {
|
|
16151
16152
|
onVisibleChange: setVisible,
|
|
16152
16153
|
overlayClassName: 'kts-invoice-operate-buyer-name-popover',
|
|
16153
16154
|
placement: "bottomLeft",
|
|
16154
16155
|
trigger: "click",
|
|
16155
16156
|
visible: visible,
|
|
16156
16157
|
content: content
|
|
16157
|
-
},
|
|
16158
|
+
}, React.createElement(Input, {
|
|
16158
16159
|
size: "small",
|
|
16159
16160
|
autoComplete: "off",
|
|
16160
16161
|
value: props.value,
|
|
@@ -16232,7 +16233,7 @@ function useDataSource() {
|
|
|
16232
16233
|
}
|
|
16233
16234
|
|
|
16234
16235
|
function MyTag(props) {
|
|
16235
|
-
return
|
|
16236
|
+
return React.createElement("span", {
|
|
16236
16237
|
className: 'kts-invoice-operate-buyer-name-content-tag',
|
|
16237
16238
|
title: props.children
|
|
16238
16239
|
}, props.children);
|
|
@@ -16268,7 +16269,7 @@ var Buyer$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
16268
16269
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
16269
16270
|
|
|
16270
16271
|
_this.render = function () {
|
|
16271
|
-
return
|
|
16272
|
+
return React.createElement(Main$2, _objectSpread2({}, _this.props));
|
|
16272
16273
|
};
|
|
16273
16274
|
|
|
16274
16275
|
return _this;
|
|
@@ -16299,7 +16300,7 @@ var Main$2 = decorator(Form.create())(function (props) {
|
|
|
16299
16300
|
return [{
|
|
16300
16301
|
id: 'buyerName',
|
|
16301
16302
|
label: '购买方名称',
|
|
16302
|
-
node:
|
|
16303
|
+
node: React.createElement(Input, {
|
|
16303
16304
|
size: "small",
|
|
16304
16305
|
autoComplete: "off",
|
|
16305
16306
|
readOnly: model === 'prefab'
|
|
@@ -16313,7 +16314,7 @@ var Main$2 = decorator(Form.create())(function (props) {
|
|
|
16313
16314
|
}, {
|
|
16314
16315
|
id: 'buyerNo',
|
|
16315
16316
|
label: '购买方纳税人识别号',
|
|
16316
|
-
node:
|
|
16317
|
+
node: React.createElement(Input, {
|
|
16317
16318
|
size: "small",
|
|
16318
16319
|
autoComplete: "off",
|
|
16319
16320
|
readOnly: model === 'prefab'
|
|
@@ -16327,7 +16328,7 @@ var Main$2 = decorator(Form.create())(function (props) {
|
|
|
16327
16328
|
}, {
|
|
16328
16329
|
id: 'buyerAddress',
|
|
16329
16330
|
label: '购买方地址及电话',
|
|
16330
|
-
node:
|
|
16331
|
+
node: React.createElement(Input, {
|
|
16331
16332
|
size: "small",
|
|
16332
16333
|
autoComplete: "off",
|
|
16333
16334
|
readOnly: model === 'prefab'
|
|
@@ -16341,7 +16342,7 @@ var Main$2 = decorator(Form.create())(function (props) {
|
|
|
16341
16342
|
}, {
|
|
16342
16343
|
id: 'buyerBank',
|
|
16343
16344
|
label: '购买方开户行及账号',
|
|
16344
|
-
node:
|
|
16345
|
+
node: React.createElement(Input, {
|
|
16345
16346
|
size: "small",
|
|
16346
16347
|
autoComplete: "off",
|
|
16347
16348
|
readOnly: model === 'prefab'
|
|
@@ -16363,7 +16364,7 @@ var Main$2 = decorator(Form.create())(function (props) {
|
|
|
16363
16364
|
if (e.options.rules.some(function (e) {
|
|
16364
16365
|
return e.required;
|
|
16365
16366
|
})) {
|
|
16366
|
-
return
|
|
16367
|
+
return React.createElement(React.Fragment, null, React.createElement(Text$4, {
|
|
16367
16368
|
type: "danger"
|
|
16368
16369
|
}, "*"), e.label);
|
|
16369
16370
|
} else {
|
|
@@ -16373,29 +16374,29 @@ var Main$2 = decorator(Form.create())(function (props) {
|
|
|
16373
16374
|
return e.label;
|
|
16374
16375
|
}
|
|
16375
16376
|
}, []);
|
|
16376
|
-
return
|
|
16377
|
+
return React.createElement(Form, null, React.createElement("div", {
|
|
16377
16378
|
className: "kts-invoice-operate-buyer"
|
|
16378
|
-
},
|
|
16379
|
+
}, React.createElement("div", {
|
|
16379
16380
|
className: "kts-invoice-operate-buyer-message"
|
|
16380
|
-
},
|
|
16381
|
+
}, React.createElement("div", {
|
|
16381
16382
|
className: "kts-invoice-operate-buyer-title"
|
|
16382
|
-
},
|
|
16383
|
+
}, React.createElement("label", null, "\u8D2D\u4E70\u65B9")), React.createElement("div", {
|
|
16383
16384
|
className: "kts-invoice-operate-buyer-message-Import"
|
|
16384
|
-
}, model !== 'prefab' &&
|
|
16385
|
+
}, model !== 'prefab' && React.createElement(ImportBuyerButton, null)), React.createElement(Descriptions, {
|
|
16385
16386
|
className: "kts-invoice-operate-buyer-message-list",
|
|
16386
16387
|
size: "small",
|
|
16387
16388
|
column: 1,
|
|
16388
16389
|
bordered: true
|
|
16389
16390
|
}, formItem.map(function (item, i) {
|
|
16390
|
-
return
|
|
16391
|
+
return React.createElement(Descriptions.Item, {
|
|
16391
16392
|
key: i,
|
|
16392
16393
|
label: getlabel(item)
|
|
16393
|
-
},
|
|
16394
|
-
}))),
|
|
16394
|
+
}, React.createElement(Form.Item, null, getFieldDecorator(item.id, item.options)(autoContainer ? item.id === 'buyerName' ? React.createElement(BuyerNameInput, null) : item.node : item.node)));
|
|
16395
|
+
}))), React.createElement("div", {
|
|
16395
16396
|
className: "kts-invoice-operate-buyer-password"
|
|
16396
|
-
},
|
|
16397
|
+
}, React.createElement("div", {
|
|
16397
16398
|
className: "kts-invoice-operate-buyer-title"
|
|
16398
|
-
},
|
|
16399
|
+
}, React.createElement("label", null, "\u5BC6\u7801\u533A")), React.createElement("div", null))));
|
|
16399
16400
|
});
|
|
16400
16401
|
|
|
16401
16402
|
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";
|
|
@@ -16412,21 +16413,21 @@ var Sign = decorator(Form.create())(function (props) {
|
|
|
16412
16413
|
}, []); // 注册 form
|
|
16413
16414
|
|
|
16414
16415
|
controller.useForm('sign', form);
|
|
16415
|
-
return
|
|
16416
|
+
return React.createElement("div", {
|
|
16416
16417
|
className: "kts-invoice-operate-sign"
|
|
16417
|
-
},
|
|
16418
|
+
}, React.createElement(Form, _objectSpread2({}, formItemLayout), React.createElement("div", null, React.createElement(Form.Item, {
|
|
16418
16419
|
label: "\u6536\u6B3E\u4EBA"
|
|
16419
16420
|
}, getFieldDecorator('payee', {
|
|
16420
16421
|
initialValue: props.defaultPayee
|
|
16421
|
-
})(
|
|
16422
|
+
})(React.createElement(Input, {
|
|
16422
16423
|
size: "small"
|
|
16423
|
-
})))),
|
|
16424
|
+
})))), React.createElement("div", null, React.createElement(Form.Item, {
|
|
16424
16425
|
label: "\u590D\u6838\u4EBA"
|
|
16425
16426
|
}, getFieldDecorator('reviewer', {
|
|
16426
16427
|
initialValue: props.defaultReviewer
|
|
16427
|
-
})(
|
|
16428
|
+
})(React.createElement(Input, {
|
|
16428
16429
|
size: "small"
|
|
16429
|
-
})))),
|
|
16430
|
+
})))), React.createElement("div", null, React.createElement(Form.Item, {
|
|
16430
16431
|
label: "\u5F00\u7968\u4EBA"
|
|
16431
16432
|
}, getFieldDecorator('issuer', {
|
|
16432
16433
|
initialValue: props.defaultIssuer,
|
|
@@ -16434,7 +16435,7 @@ var Sign = decorator(Form.create())(function (props) {
|
|
|
16434
16435
|
required: true,
|
|
16435
16436
|
message: '请输入开票人'
|
|
16436
16437
|
}]
|
|
16437
|
-
})(
|
|
16438
|
+
})(React.createElement(Input, {
|
|
16438
16439
|
size: "small"
|
|
16439
16440
|
}))))));
|
|
16440
16441
|
});
|
|
@@ -16463,21 +16464,21 @@ var InvoiceHeaderDigtal = decorator(Form.create())(function (props) {
|
|
|
16463
16464
|
return '电子发票(增值税专用发票)';
|
|
16464
16465
|
}, [props.title]);
|
|
16465
16466
|
controller.useForm('invoiceHeader', form);
|
|
16466
|
-
return
|
|
16467
|
+
return React.createElement("div", {
|
|
16467
16468
|
className: "kts-invoice-operate-invoice-digtal-header"
|
|
16468
|
-
},
|
|
16469
|
+
}, React.createElement("div", {
|
|
16469
16470
|
className: "digtal-header-title"
|
|
16470
16471
|
}, title), form.getFieldDecorator('tag', {
|
|
16471
16472
|
initialValue: props.defaultTag
|
|
16472
|
-
})(
|
|
16473
|
+
})(React.createElement(Tag, null)), React.createElement("div", {
|
|
16473
16474
|
className: "digtal-header-fields"
|
|
16474
16475
|
}, form.getFieldDecorator('no', {
|
|
16475
16476
|
initialValue: props.defaultNo
|
|
16476
|
-
})(
|
|
16477
|
+
})(React.createElement(Field, {
|
|
16477
16478
|
title: "\u53D1\u7968\u53F7\u7801\uFF1A"
|
|
16478
16479
|
})), form.getFieldDecorator('invoicingDate', {
|
|
16479
16480
|
initialValue: props.defaultInvoicingDate
|
|
16480
|
-
})(
|
|
16481
|
+
})(React.createElement(Field, {
|
|
16481
16482
|
title: "\u5F00\u7968\u65E5\u671F\uFF1A"
|
|
16482
16483
|
}))));
|
|
16483
16484
|
});
|
|
@@ -16502,15 +16503,15 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
16502
16503
|
value = _this$props.value;
|
|
16503
16504
|
|
|
16504
16505
|
if (value) {
|
|
16505
|
-
return
|
|
16506
|
+
return React.createElement("div", {
|
|
16506
16507
|
className: "digtal-header-field"
|
|
16507
|
-
},
|
|
16508
|
+
}, React.createElement("div", {
|
|
16508
16509
|
className: "digtal-header-field-title"
|
|
16509
|
-
}, title),
|
|
16510
|
+
}, title), React.createElement("div", {
|
|
16510
16511
|
className: "digtal-header-field-value"
|
|
16511
16512
|
}, value));
|
|
16512
16513
|
} else {
|
|
16513
|
-
return
|
|
16514
|
+
return React.createElement(React.Fragment, null);
|
|
16514
16515
|
}
|
|
16515
16516
|
}
|
|
16516
16517
|
}]);
|
|
@@ -16532,9 +16533,9 @@ var Tag = /*#__PURE__*/function (_React$Component2) {
|
|
|
16532
16533
|
_createClass(Tag, [{
|
|
16533
16534
|
key: "render",
|
|
16534
16535
|
value: function render() {
|
|
16535
|
-
return this.props.value ?
|
|
16536
|
+
return this.props.value ? React.createElement("div", {
|
|
16536
16537
|
className: "digtal-header-tag"
|
|
16537
|
-
}, this.props.value) :
|
|
16538
|
+
}, this.props.value) : React.createElement(React.Fragment, null);
|
|
16538
16539
|
}
|
|
16539
16540
|
}]);
|
|
16540
16541
|
|
|
@@ -16710,57 +16711,57 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
16710
16711
|
return rulesMap[field] || defaultRules;
|
|
16711
16712
|
}, [rulesMap, isReadOnly, isReadOnly]);
|
|
16712
16713
|
controller.useForm('stakeholder', form);
|
|
16713
|
-
return
|
|
16714
|
+
return React.createElement("div", {
|
|
16714
16715
|
className: classNames("kts-invoice-operate-invoice-digtal-stakeholder", {
|
|
16715
16716
|
readOnly: readOnly
|
|
16716
16717
|
})
|
|
16717
|
-
},
|
|
16718
|
-
return
|
|
16719
|
-
}), !readOnly &&
|
|
16718
|
+
}, React.createElement("div", null, '购买方信息'.split('').map(function (e) {
|
|
16719
|
+
return React.createElement("span", null, e);
|
|
16720
|
+
}), !readOnly && React.createElement(Icon, {
|
|
16720
16721
|
className: "digtal-stakeholder-expand-button",
|
|
16721
16722
|
component: isExpand ? SvgArrowUp : SvgArrowDown,
|
|
16722
16723
|
onClick: onExpand
|
|
16723
|
-
})),
|
|
16724
|
+
})), React.createElement("div", null, React.createElement(Form, {
|
|
16724
16725
|
className: "digtal-stakeholder-form"
|
|
16725
|
-
},
|
|
16726
|
+
}, React.createElement(Row, {
|
|
16726
16727
|
gutter: [16, 0]
|
|
16727
|
-
}, props.isNaturalPerson === true &&
|
|
16728
|
+
}, props.isNaturalPerson === true && React.createElement(Col, {
|
|
16728
16729
|
span: 24
|
|
16729
|
-
},
|
|
16730
|
+
}, React.createElement(Form.Item, {
|
|
16730
16731
|
label: "\u8D2D\u4E70\u65B9\u4FE1\u606F",
|
|
16731
16732
|
colon: false
|
|
16732
|
-
}, getFieldDecorator('naturalPersonFlag', {})(
|
|
16733
|
+
}, getFieldDecorator('naturalPersonFlag', {})(React.createElement(NaturalPersonFlag, {
|
|
16733
16734
|
readOnly: isReadOnly('naturalPersonFlag')
|
|
16734
|
-
})))),
|
|
16735
|
+
})))), React.createElement(Col, {
|
|
16735
16736
|
span: 24
|
|
16736
|
-
},
|
|
16737
|
+
}, React.createElement(Form.Item, {
|
|
16737
16738
|
label: "\u540D\u79F0",
|
|
16738
16739
|
colon: false
|
|
16739
16740
|
}, getFieldDecorator('buyerName', {
|
|
16740
16741
|
rules: getRules('buyerName', RULES.companyName('购买方名称'))
|
|
16741
|
-
})(
|
|
16742
|
+
})(React.createElement(BuyerNameInput$1, {
|
|
16742
16743
|
myform: form,
|
|
16743
16744
|
fieldName: 'buyerName',
|
|
16744
16745
|
readOnly: isReadOnly('buyerName'),
|
|
16745
16746
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
16746
16747
|
autoComplete: "off",
|
|
16747
|
-
suffix: isShowImportButton === true &&
|
|
16748
|
+
suffix: isShowImportButton === true && React.createElement(Button$1, {
|
|
16748
16749
|
type: 'link',
|
|
16749
16750
|
style: {
|
|
16750
16751
|
padding: 0,
|
|
16751
16752
|
width: 20,
|
|
16752
16753
|
height: '100%'
|
|
16753
16754
|
},
|
|
16754
|
-
icon:
|
|
16755
|
+
icon: React.createElement(Icon, {
|
|
16755
16756
|
component: SvgPlus
|
|
16756
16757
|
}),
|
|
16757
16758
|
onClick: function onClick() {
|
|
16758
16759
|
onClickImportButton && onClickImportButton(controller);
|
|
16759
16760
|
}
|
|
16760
16761
|
})
|
|
16761
|
-
})))),
|
|
16762
|
+
})))), React.createElement(Col, {
|
|
16762
16763
|
span: 24
|
|
16763
|
-
},
|
|
16764
|
+
}, React.createElement(Form.Item, {
|
|
16764
16765
|
label: "\u7EDF\u4E00\u793E\u4F1A\u4FE1\u7528\u4EE3\u7801/\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7",
|
|
16765
16766
|
colon: false
|
|
16766
16767
|
}, getFieldDecorator('buyerTaxId', {
|
|
@@ -16768,15 +16769,15 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
16768
16769
|
required: !isVatNormal,
|
|
16769
16770
|
message: '购买方纳税人识别号必填'
|
|
16770
16771
|
}].concat(_toConsumableArray(RULES.taxId('购买方纳税人识别号'))))
|
|
16771
|
-
})(
|
|
16772
|
+
})(React.createElement(BuyerNameInput$1, {
|
|
16772
16773
|
myform: form,
|
|
16773
16774
|
fieldName: 'buyerTaxId',
|
|
16774
16775
|
readOnly: isReadOnly('buyerTaxId'),
|
|
16775
16776
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
16776
16777
|
autoComplete: "off"
|
|
16777
|
-
})))), isExpand &&
|
|
16778
|
+
})))), isExpand && React.createElement(React.Fragment, null, React.createElement(Col, {
|
|
16778
16779
|
span: 15
|
|
16779
|
-
},
|
|
16780
|
+
}, React.createElement(Form.Item, {
|
|
16780
16781
|
label: "\u8D2D\u4E70\u65B9\u5730\u5740",
|
|
16781
16782
|
colon: false
|
|
16782
16783
|
}, getFieldDecorator('buyerAddress', {
|
|
@@ -16784,77 +16785,77 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
16784
16785
|
max: 100,
|
|
16785
16786
|
message: '购买方地址内容超长'
|
|
16786
16787
|
}])
|
|
16787
|
-
})(
|
|
16788
|
+
})(React.createElement(MyInput$1, {
|
|
16788
16789
|
readOnly: isReadOnly('buyerAddress'),
|
|
16789
16790
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
16790
16791
|
autoComplete: "off"
|
|
16791
|
-
})))),
|
|
16792
|
+
})))), React.createElement(Col, {
|
|
16792
16793
|
span: 9
|
|
16793
|
-
},
|
|
16794
|
+
}, React.createElement(Form.Item, {
|
|
16794
16795
|
label: "\u7535\u8BDD",
|
|
16795
16796
|
colon: false
|
|
16796
16797
|
}, getFieldDecorator('buyerPhone', {
|
|
16797
16798
|
rules: getRules('buyerPhone', RULES.buyerTelPhone('购买方电话'))
|
|
16798
|
-
})(
|
|
16799
|
+
})(React.createElement(MyInput$1, {
|
|
16799
16800
|
readOnly: isReadOnly('buyerPhone'),
|
|
16800
16801
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
16801
16802
|
autoComplete: "off"
|
|
16802
|
-
})))),
|
|
16803
|
+
})))), React.createElement(Col, {
|
|
16803
16804
|
span: 12
|
|
16804
|
-
},
|
|
16805
|
+
}, React.createElement(Form.Item, {
|
|
16805
16806
|
label: "\u8D2D\u4E70\u65B9\u5F00\u6237\u94F6\u884C",
|
|
16806
16807
|
colon: false
|
|
16807
16808
|
}, getFieldDecorator('buyerBank', {
|
|
16808
16809
|
rules: getRules('buyerBank', RULES.bankName('购买方开户银行'))
|
|
16809
|
-
})(
|
|
16810
|
+
})(React.createElement(MyInput$1, {
|
|
16810
16811
|
readOnly: isReadOnly('buyerBank'),
|
|
16811
16812
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
16812
16813
|
autoComplete: "off"
|
|
16813
|
-
})))),
|
|
16814
|
+
})))), React.createElement(Col, {
|
|
16814
16815
|
span: 12
|
|
16815
|
-
},
|
|
16816
|
+
}, React.createElement(Form.Item, {
|
|
16816
16817
|
label: "\u94F6\u884C\u8D26\u53F7",
|
|
16817
16818
|
colon: false
|
|
16818
16819
|
}, getFieldDecorator('buyerAccount', {
|
|
16819
16820
|
rules: getRules('buyerAccount', RULES.bankAccount('购买方银行账号'))
|
|
16820
|
-
})(
|
|
16821
|
+
})(React.createElement(MyInput$1, {
|
|
16821
16822
|
readOnly: isReadOnly('buyerAccount'),
|
|
16822
16823
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
16823
16824
|
autoComplete: "off"
|
|
16824
|
-
})))))))),
|
|
16825
|
-
return
|
|
16826
|
-
}), !readOnly &&
|
|
16825
|
+
})))))))), React.createElement("div", null, '销售方信息'.split('').map(function (e) {
|
|
16826
|
+
return React.createElement("span", null, e);
|
|
16827
|
+
}), !readOnly && React.createElement(Icon, {
|
|
16827
16828
|
className: "digtal-stakeholder-expand-button",
|
|
16828
16829
|
component: isExpand ? SvgArrowUp : SvgArrowDown,
|
|
16829
16830
|
onClick: onExpand
|
|
16830
|
-
})),
|
|
16831
|
+
})), React.createElement("div", null, !readOnly && props.lineCredit && React.createElement("div", {
|
|
16831
16832
|
style: {
|
|
16832
16833
|
marginTop: 20
|
|
16833
16834
|
}
|
|
16834
|
-
},
|
|
16835
|
+
}, React.createElement(Tooltip$1, {
|
|
16835
16836
|
trigger: "click",
|
|
16836
16837
|
title: props.lineCredit
|
|
16837
|
-
},
|
|
16838
|
+
}, React.createElement(Button$1, {
|
|
16838
16839
|
type: "link"
|
|
16839
|
-
}, "\u67E5\u770B\u5F53\u524D\u53EF\u7528\u6388\u4FE1\u989D\u5EA6"))),
|
|
16840
|
+
}, "\u67E5\u770B\u5F53\u524D\u53EF\u7528\u6388\u4FE1\u989D\u5EA6"))), React.createElement(Form, {
|
|
16840
16841
|
className: "digtal-stakeholder-form"
|
|
16841
|
-
},
|
|
16842
|
+
}, React.createElement(Row, {
|
|
16842
16843
|
gutter: [16, 0]
|
|
16843
|
-
},
|
|
16844
|
+
}, React.createElement(Col, {
|
|
16844
16845
|
span: 24
|
|
16845
|
-
},
|
|
16846
|
+
}, React.createElement(Form.Item, {
|
|
16846
16847
|
label: "\u540D\u79F0",
|
|
16847
16848
|
colon: false
|
|
16848
16849
|
}, getFieldDecorator('supplierName', {
|
|
16849
16850
|
rules: getRules('supplierName', RULES.companyName('销售方名称')),
|
|
16850
16851
|
getValueFromEvent: formatCompanyName
|
|
16851
|
-
})(
|
|
16852
|
+
})(React.createElement(MyInput$1, {
|
|
16852
16853
|
readOnly: isReadOnly('supplierName'),
|
|
16853
16854
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
16854
16855
|
autoComplete: "off"
|
|
16855
|
-
})))),
|
|
16856
|
+
})))), React.createElement(Col, {
|
|
16856
16857
|
span: 24
|
|
16857
|
-
},
|
|
16858
|
+
}, React.createElement(Form.Item, {
|
|
16858
16859
|
label: "\u7EDF\u4E00\u793E\u4F1A\u4FE1\u7528\u4EE3\u7801/\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7",
|
|
16859
16860
|
colon: false
|
|
16860
16861
|
}, getFieldDecorator('supplierTaxId', {
|
|
@@ -16862,13 +16863,13 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
16862
16863
|
required: true,
|
|
16863
16864
|
message: '销售方纳税人识别号必填'
|
|
16864
16865
|
}].concat(_toConsumableArray(RULES.taxId('销售方纳税人识别号'))))
|
|
16865
|
-
})(
|
|
16866
|
+
})(React.createElement(MyInput$1, {
|
|
16866
16867
|
readOnly: isReadOnly('supplierTaxId'),
|
|
16867
16868
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
16868
16869
|
autoComplete: "off"
|
|
16869
|
-
})))), isExpand &&
|
|
16870
|
+
})))), isExpand && React.createElement(React.Fragment, null, React.createElement(Col, {
|
|
16870
16871
|
span: 15
|
|
16871
|
-
},
|
|
16872
|
+
}, React.createElement(Form.Item, {
|
|
16872
16873
|
label: "\u9500\u552E\u65B9\u5730\u5740",
|
|
16873
16874
|
colon: false
|
|
16874
16875
|
}, getFieldDecorator('sellerAddress', {
|
|
@@ -16876,40 +16877,40 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
16876
16877
|
max: 300,
|
|
16877
16878
|
message: '销售方地址内容超长'
|
|
16878
16879
|
}])
|
|
16879
|
-
})(
|
|
16880
|
+
})(React.createElement(MyInput$1, {
|
|
16880
16881
|
readOnly: isReadOnly('sellerAddress'),
|
|
16881
16882
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
16882
16883
|
autoComplete: "off"
|
|
16883
|
-
})))),
|
|
16884
|
+
})))), React.createElement(Col, {
|
|
16884
16885
|
span: 9
|
|
16885
|
-
},
|
|
16886
|
+
}, React.createElement(Form.Item, {
|
|
16886
16887
|
label: "\u7535\u8BDD",
|
|
16887
16888
|
colon: false
|
|
16888
16889
|
}, getFieldDecorator('sellerPhone', {
|
|
16889
16890
|
rules: getRules('sellerPhone', RULES.sellerTelPhone('销售方电话'))
|
|
16890
|
-
})(
|
|
16891
|
+
})(React.createElement(MyInput$1, {
|
|
16891
16892
|
readOnly: isReadOnly('sellerPhone'),
|
|
16892
16893
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
16893
16894
|
autoComplete: "off"
|
|
16894
|
-
})))),
|
|
16895
|
+
})))), React.createElement(Col, {
|
|
16895
16896
|
span: 12
|
|
16896
|
-
},
|
|
16897
|
+
}, React.createElement(Form.Item, {
|
|
16897
16898
|
label: "\u9500\u552E\u65B9\u5F00\u6237\u94F6\u884C",
|
|
16898
16899
|
colon: false
|
|
16899
16900
|
}, getFieldDecorator('sellerBank', {
|
|
16900
16901
|
rules: getRules('sellerBank', RULES.bankName('销售方开户银行'))
|
|
16901
|
-
})(
|
|
16902
|
+
})(React.createElement(MyInput$1, {
|
|
16902
16903
|
readOnly: isReadOnly('sellerBank'),
|
|
16903
16904
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
16904
16905
|
autoComplete: "off"
|
|
16905
|
-
})))),
|
|
16906
|
+
})))), React.createElement(Col, {
|
|
16906
16907
|
span: 12
|
|
16907
|
-
},
|
|
16908
|
+
}, React.createElement(Form.Item, {
|
|
16908
16909
|
label: "\u94F6\u884C\u8D26\u53F7",
|
|
16909
16910
|
colon: false
|
|
16910
16911
|
}, getFieldDecorator('sellerAccount', {
|
|
16911
16912
|
rules: getRules('sellerAccount', RULES.bankAccount('销售方银行账号'))
|
|
16912
|
-
})(
|
|
16913
|
+
})(React.createElement(MyInput$1, {
|
|
16913
16914
|
readOnly: isReadOnly('sellerAccount'),
|
|
16914
16915
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
16915
16916
|
autoComplete: "off"
|
|
@@ -16930,7 +16931,7 @@ function NaturalPersonFlag(props) {
|
|
|
16930
16931
|
React.useEffect(function () {
|
|
16931
16932
|
setValue(props.value || 'COMPANY');
|
|
16932
16933
|
}, [props.value]);
|
|
16933
|
-
return
|
|
16934
|
+
return React.createElement(Checkbox$1, {
|
|
16934
16935
|
disabled: props.readOnly,
|
|
16935
16936
|
checked: value === 'NATURAL',
|
|
16936
16937
|
onChange: onChange
|
|
@@ -17033,10 +17034,10 @@ function BuyerNameInput$1(props) {
|
|
|
17033
17034
|
return _ref.apply(this, arguments);
|
|
17034
17035
|
};
|
|
17035
17036
|
}(), [autoComplete.onBuyerNameSearch, fieldName]);
|
|
17036
|
-
if (props.readOnly) return
|
|
17037
|
+
if (props.readOnly) return React.createElement("span", {
|
|
17037
17038
|
className: 'digtal-stakeholder-form-text'
|
|
17038
17039
|
}, props.value);
|
|
17039
|
-
return
|
|
17040
|
+
return React.createElement(AutoComplete$1, {
|
|
17040
17041
|
onSearch: onSearch,
|
|
17041
17042
|
options: options.map(function (e) {
|
|
17042
17043
|
return {
|
|
@@ -17045,7 +17046,7 @@ function BuyerNameInput$1(props) {
|
|
|
17045
17046
|
}),
|
|
17046
17047
|
onChange: onChangeAutoComplete,
|
|
17047
17048
|
value: props.value
|
|
17048
|
-
},
|
|
17049
|
+
}, React.createElement(Input$1, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
17049
17050
|
style: _objectSpread2({
|
|
17050
17051
|
width: '100%'
|
|
17051
17052
|
}, props.style)
|
|
@@ -17069,11 +17070,11 @@ var MyInput$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
17069
17070
|
var props = this.props;
|
|
17070
17071
|
|
|
17071
17072
|
if (props.readOnly) {
|
|
17072
|
-
return
|
|
17073
|
+
return React.createElement("span", {
|
|
17073
17074
|
className: 'digtal-stakeholder-form-text'
|
|
17074
17075
|
}, props.value);
|
|
17075
17076
|
} else {
|
|
17076
|
-
return
|
|
17077
|
+
return React.createElement(Input$1, _objectSpread2({}, props));
|
|
17077
17078
|
}
|
|
17078
17079
|
}
|
|
17079
17080
|
}]);
|
|
@@ -17130,43 +17131,43 @@ var SignDigtal = decorator(Form.create())(function (props) {
|
|
|
17130
17131
|
controller.useForm('sign', form);
|
|
17131
17132
|
|
|
17132
17133
|
if (readOnly) {
|
|
17133
|
-
return
|
|
17134
|
+
return React.createElement("div", {
|
|
17134
17135
|
className: "kts-invoice-operate-sign-digtal-readOnly"
|
|
17135
|
-
},
|
|
17136
|
+
}, React.createElement("div", {
|
|
17136
17137
|
className: 'sign-digtal-readOnly-cont'
|
|
17137
|
-
},
|
|
17138
|
+
}, React.createElement("div", null, React.createElement("span", null, "\u5907"), React.createElement("span", null, "\u6CE8")), React.createElement("div", null, getFieldDecorator('remarks', {
|
|
17138
17139
|
initialValue: props.defaultRemark
|
|
17139
|
-
})(isEnables('remarks') ?
|
|
17140
|
+
})(isEnables('remarks') ? React.createElement(Input$1.TextArea, {
|
|
17140
17141
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
17141
17142
|
style: {
|
|
17142
17143
|
height: '100%'
|
|
17143
17144
|
}
|
|
17144
|
-
}) :
|
|
17145
|
+
}) : React.createElement(MyDiv$1, null)))), React.createElement(Form, {
|
|
17145
17146
|
layout: 'inline',
|
|
17146
17147
|
className: 'digtal-readOnly-form'
|
|
17147
|
-
},
|
|
17148
|
+
}, React.createElement(Form.Item, {
|
|
17148
17149
|
label: "\u5F00\u7968\u4EBA"
|
|
17149
17150
|
}, getFieldDecorator('drawer', {
|
|
17150
17151
|
initialValue: props.defaultRemark
|
|
17151
|
-
})(
|
|
17152
|
+
})(React.createElement(MyDiv$1, null)))));
|
|
17152
17153
|
} else {
|
|
17153
|
-
return
|
|
17154
|
+
return React.createElement("div", {
|
|
17154
17155
|
className: "kts-invoice-operate-sign-digtal"
|
|
17155
|
-
},
|
|
17156
|
+
}, React.createElement("div", {
|
|
17156
17157
|
className: 'sign-digtal-label'
|
|
17157
|
-
}, "\u5907\u6CE8\u4FE1\u606F"),
|
|
17158
|
+
}, "\u5907\u6CE8\u4FE1\u606F"), React.createElement(Form, null, React.createElement(Form.Item, {
|
|
17158
17159
|
label: "\u5907\u6CE8"
|
|
17159
17160
|
}, getFieldDecorator('remarks', {
|
|
17160
17161
|
initialValue: props.defaultRemark
|
|
17161
|
-
})(
|
|
17162
|
+
})(React.createElement(Input$1.TextArea, {
|
|
17162
17163
|
readOnly: isReadOnly('remarks'),
|
|
17163
17164
|
autoSize: true,
|
|
17164
17165
|
placeholder: "\u8BF7\u8F93\u5165"
|
|
17165
|
-
}))),
|
|
17166
|
+
}))), React.createElement(Form.Item, {
|
|
17166
17167
|
label: "\u5F00\u7968\u4EBA"
|
|
17167
17168
|
}, getFieldDecorator('drawer', {
|
|
17168
17169
|
initialValue: props.defaultIssuer
|
|
17169
|
-
})(
|
|
17170
|
+
})(React.createElement(Input$1, {
|
|
17170
17171
|
readOnly: isReadOnly('drawer'),
|
|
17171
17172
|
style: {
|
|
17172
17173
|
width: 313
|
|
@@ -17190,7 +17191,7 @@ var MyDiv$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
17190
17191
|
_createClass(MyDiv, [{
|
|
17191
17192
|
key: "render",
|
|
17192
17193
|
value: function render() {
|
|
17193
|
-
return
|
|
17194
|
+
return React.createElement("div", null, this.props.value);
|
|
17194
17195
|
}
|
|
17195
17196
|
}]);
|
|
17196
17197
|
|
|
@@ -17291,12 +17292,12 @@ function TableVirtual$1 (props) {
|
|
|
17291
17292
|
if (!cont) return;
|
|
17292
17293
|
cont.scrollTop = 0;
|
|
17293
17294
|
}, [(_props$dataSource2 = props.dataSource) === null || _props$dataSource2 === void 0 ? void 0 : _props$dataSource2.length]);
|
|
17294
|
-
return
|
|
17295
|
+
return React.createElement("span", {
|
|
17295
17296
|
className: "kts-invoice-operate-goods-table-virtual",
|
|
17296
17297
|
ref: function ref(e) {
|
|
17297
17298
|
setSelf(e);
|
|
17298
17299
|
}
|
|
17299
|
-
},
|
|
17300
|
+
}, React.createElement(TableManual, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
17300
17301
|
dataSource: dataSource,
|
|
17301
17302
|
// 新版本Table会有输入框无法连续输入的问题,先兼容老版本
|
|
17302
17303
|
tableComponent: Table
|
|
@@ -17409,54 +17410,54 @@ var Statistics$1 = (function () {
|
|
|
17409
17410
|
});
|
|
17410
17411
|
return sum.done().toNumber();
|
|
17411
17412
|
}, []);
|
|
17412
|
-
return
|
|
17413
|
+
return React.createElement("div", {
|
|
17413
17414
|
className: 'kts-invoice-operate-goods-list-statistics-digtal'
|
|
17414
|
-
},
|
|
17415
|
+
}, React.createElement("div", {
|
|
17415
17416
|
className: 'statistics-digtal-total'
|
|
17416
|
-
},
|
|
17417
|
+
}, React.createElement("div", null, "\u5408\u8BA1"), React.createElement("div", {
|
|
17417
17418
|
style: {
|
|
17418
17419
|
flex: 1
|
|
17419
17420
|
}
|
|
17420
|
-
}),
|
|
17421
|
+
}), React.createElement("div", {
|
|
17421
17422
|
style: {
|
|
17422
17423
|
width: 119,
|
|
17423
17424
|
textAlign: 'right',
|
|
17424
17425
|
paddingRight: 15
|
|
17425
17426
|
}
|
|
17426
|
-
}, "\xA5", parseFloat(isTaxIncluded ? lineAmountIncludeTax : lineAmountExcludeTax).toFixed(2)),
|
|
17427
|
+
}, "\xA5", parseFloat(isTaxIncluded ? lineAmountIncludeTax : lineAmountExcludeTax).toFixed(2)), React.createElement("div", {
|
|
17427
17428
|
style: {
|
|
17428
17429
|
width: 119,
|
|
17429
17430
|
textAlign: 'right',
|
|
17430
17431
|
paddingRight: 15
|
|
17431
17432
|
}
|
|
17432
|
-
}, "\xA5", parseFloat(taxAmount).toFixed(2))),
|
|
17433
|
+
}, "\xA5", parseFloat(taxAmount).toFixed(2))), React.createElement("div", {
|
|
17433
17434
|
className: 'statistics-digtal-total-tax'
|
|
17434
|
-
},
|
|
17435
|
+
}, React.createElement("div", null, "\u4EF7\u7A0E\u5408\u8BA1\uFF08\u5927\u5199\uFF09"), React.createElement("div", {
|
|
17435
17436
|
style: {
|
|
17436
17437
|
paddingLeft: 30
|
|
17437
17438
|
}
|
|
17438
|
-
},
|
|
17439
|
+
}, React.createElement(Icon, {
|
|
17439
17440
|
style: {
|
|
17440
17441
|
fontSize: 16
|
|
17441
17442
|
},
|
|
17442
17443
|
component: SvgFork
|
|
17443
|
-
}),
|
|
17444
|
+
}), React.createElement("span", {
|
|
17444
17445
|
style: {
|
|
17445
17446
|
fontWeight: 'bold',
|
|
17446
17447
|
marginLeft: 4
|
|
17447
17448
|
}
|
|
17448
17449
|
}, nzhcn$1.toMoney(lineAmountIncludeTax, {
|
|
17449
17450
|
outSymbol: false
|
|
17450
|
-
}))),
|
|
17451
|
+
}))), React.createElement("div", {
|
|
17451
17452
|
style: {
|
|
17452
17453
|
flex: 1
|
|
17453
17454
|
}
|
|
17454
|
-
}),
|
|
17455
|
+
}), React.createElement("div", {
|
|
17455
17456
|
style: {
|
|
17456
17457
|
width: 90,
|
|
17457
17458
|
color: '#9F613E'
|
|
17458
17459
|
}
|
|
17459
|
-
}, "\uFF08\u5C0F\u5199\uFF09"),
|
|
17460
|
+
}, "\uFF08\u5C0F\u5199\uFF09"), React.createElement("div", {
|
|
17460
17461
|
style: {
|
|
17461
17462
|
width: 119
|
|
17462
17463
|
}
|
|
@@ -17515,10 +17516,10 @@ var AddRowButton$1 = (function () {
|
|
|
17515
17516
|
}
|
|
17516
17517
|
}, _callee);
|
|
17517
17518
|
})), [controller, rootElement]);
|
|
17518
|
-
if (isAddRow === false) return
|
|
17519
|
-
if (model === 'prefab') return
|
|
17520
|
-
if (model === 'readOnly') return
|
|
17521
|
-
return
|
|
17519
|
+
if (isAddRow === false) return React.createElement(React.Fragment, null);
|
|
17520
|
+
if (model === 'prefab') return React.createElement(React.Fragment, null);
|
|
17521
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
17522
|
+
return React.createElement(Button$1, {
|
|
17522
17523
|
size: 'small',
|
|
17523
17524
|
type: 'primary',
|
|
17524
17525
|
onClick: onClick,
|
|
@@ -17671,11 +17672,11 @@ var TaxIncludedSwitch$1 = (function () {
|
|
|
17671
17672
|
};
|
|
17672
17673
|
}())();
|
|
17673
17674
|
}, []);
|
|
17674
|
-
return
|
|
17675
|
+
return React.createElement("span", null, React.createElement("label", {
|
|
17675
17676
|
style: {
|
|
17676
17677
|
marginRight: 2
|
|
17677
17678
|
}
|
|
17678
|
-
}, "\u542B\u7A0E"),
|
|
17679
|
+
}, "\u542B\u7A0E"), React.createElement(Switch, {
|
|
17679
17680
|
disabled: isSwitchTax === false,
|
|
17680
17681
|
checked: isTaxIncluded,
|
|
17681
17682
|
defaultChecked: true,
|
|
@@ -17771,12 +17772,12 @@ function Search$1() {
|
|
|
17771
17772
|
};
|
|
17772
17773
|
}());
|
|
17773
17774
|
}, [value, controller]);
|
|
17774
|
-
return
|
|
17775
|
+
return React.createElement(Input$1, {
|
|
17775
17776
|
readOnly: readOnly,
|
|
17776
17777
|
value: value,
|
|
17777
17778
|
className: "kts-invoice-operate-goods-list-search",
|
|
17778
17779
|
placeholder: "\u8BF7\u60A8\u8F93\u5165\u9879\u76EE\u540D\u79F0\u3001\u89C4\u683C\u578B\u53F7\u3001\u91D1\u989D(".concat(isTaxIncluded ? '含税' : '不含税', ")\u641C\u7D22"),
|
|
17779
|
-
prefix:
|
|
17780
|
+
prefix: React.createElement(Icon$1, {
|
|
17780
17781
|
component: SvgMagnifier$1,
|
|
17781
17782
|
style: {
|
|
17782
17783
|
color: "#b8b8b8"
|
|
@@ -17821,12 +17822,12 @@ function TableRow$1(props) {
|
|
|
17821
17822
|
return undefined;
|
|
17822
17823
|
}
|
|
17823
17824
|
}, [rowKey, goodsMap]);
|
|
17824
|
-
return rowKey === current && current ?
|
|
17825
|
+
return rowKey === current && current ? React.createElement("tr", {
|
|
17825
17826
|
style: {
|
|
17826
17827
|
height: 50,
|
|
17827
17828
|
position: 'relative'
|
|
17828
17829
|
}
|
|
17829
|
-
},
|
|
17830
|
+
}, React.createElement("div", {
|
|
17830
17831
|
style: {
|
|
17831
17832
|
height: 0.5,
|
|
17832
17833
|
width: '100%',
|
|
@@ -17834,9 +17835,7 @@ function TableRow$1(props) {
|
|
|
17834
17835
|
position: 'absolute',
|
|
17835
17836
|
bottom: 0
|
|
17836
17837
|
}
|
|
17837
|
-
})) :
|
|
17838
|
-
/*#__PURE__*/
|
|
17839
|
-
// <tr {...props} className={classnames(props.className, discount, (rowKey === container && current) ? 'kts-invoice-operate-goods-list-itemName-drag-container' : '')} />
|
|
17838
|
+
})) : // <tr {...props} className={classnames(props.className, discount, (rowKey === container && current) ? 'kts-invoice-operate-goods-list-itemName-drag-container' : '')} />
|
|
17840
17839
|
React.createElement("tr", _objectSpread2(_objectSpread2({}, props), {}, {
|
|
17841
17840
|
className: classNames(props.className, discount, rowKey === container && current ? 'kts-invoice-operate-goods-list-itemName-drag-container-' + site : undefined)
|
|
17842
17841
|
}));
|
|
@@ -17876,9 +17875,9 @@ var TitleText$1 = (function (props) {
|
|
|
17876
17875
|
return !!e.required;
|
|
17877
17876
|
})) || props.required;
|
|
17878
17877
|
}, [rules, props.required]);
|
|
17879
|
-
return
|
|
17878
|
+
return React.createElement(React.Fragment, null, required ? React.createElement(Text$5, {
|
|
17880
17879
|
type: "danger"
|
|
17881
|
-
}, "*") :
|
|
17880
|
+
}, "*") : React.createElement(React.Fragment, null), children);
|
|
17882
17881
|
});
|
|
17883
17882
|
|
|
17884
17883
|
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.has-error .kts-invoice-operate-goods-list-itemName-input {\n border: 1px solid #f5222d;\n}\n";
|
|
@@ -18016,14 +18015,14 @@ function ItemNameInput$1(props) {
|
|
|
18016
18015
|
};
|
|
18017
18016
|
}(), [autoComplete.onItemNameSearch]);
|
|
18018
18017
|
console.log('===> options', options);
|
|
18019
|
-
return
|
|
18018
|
+
return React.createElement("div", {
|
|
18020
18019
|
className: 'kts-invoice-operate-goods-list-itemName-input'
|
|
18021
|
-
}, props.shorthand &&
|
|
18020
|
+
}, props.shorthand && React.createElement("span", {
|
|
18022
18021
|
style: {
|
|
18023
18022
|
alignSelf: 'center',
|
|
18024
18023
|
fontSize: 12
|
|
18025
18024
|
}
|
|
18026
|
-
}, "*", props.shorthand, "*"),
|
|
18025
|
+
}, "*", props.shorthand, "*"), React.createElement(AutoComplete$1, {
|
|
18027
18026
|
onSearch: onSearch,
|
|
18028
18027
|
value: props.value,
|
|
18029
18028
|
options: options.map(function (e) {
|
|
@@ -18032,7 +18031,7 @@ function ItemNameInput$1(props) {
|
|
|
18032
18031
|
};
|
|
18033
18032
|
}),
|
|
18034
18033
|
onSelect: onChangeAutoComplete
|
|
18035
|
-
},
|
|
18034
|
+
}, React.createElement(Input$1, {
|
|
18036
18035
|
style: {
|
|
18037
18036
|
height: '100%'
|
|
18038
18037
|
},
|
|
@@ -19139,7 +19138,7 @@ function Drag$2(props) {
|
|
|
19139
19138
|
var currentGood = controller.state.goodsListState.goodsList.filter(function (e) {
|
|
19140
19139
|
return e.$index === record.$index;
|
|
19141
19140
|
})[0];
|
|
19142
|
-
mounting(
|
|
19141
|
+
mounting(React.createElement(DragDiv$1, _objectSpread2({}, currentGood)));
|
|
19143
19142
|
rowList.forEach(function (e) {
|
|
19144
19143
|
e.addEventListener('mousemove', onMousemove);
|
|
19145
19144
|
});
|
|
@@ -19300,7 +19299,7 @@ function Drag$2(props) {
|
|
|
19300
19299
|
|
|
19301
19300
|
|
|
19302
19301
|
function insert() {
|
|
19303
|
-
mounting(
|
|
19302
|
+
mounting(React.createElement(React.Fragment, null));
|
|
19304
19303
|
controller.run( /*#__PURE__*/function () {
|
|
19305
19304
|
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(s) {
|
|
19306
19305
|
var _s$goodsListState$dra, container, current, site, goodsList, goodsMap, _currentGood, currentIndex, moveGoods;
|
|
@@ -19379,7 +19378,7 @@ function Drag$2(props) {
|
|
|
19379
19378
|
}
|
|
19380
19379
|
}, [controller, record, disabled]);
|
|
19381
19380
|
var renderButton = React.useMemo(function () {
|
|
19382
|
-
return
|
|
19381
|
+
return React.createElement(Button, {
|
|
19383
19382
|
type: 'link',
|
|
19384
19383
|
style: {
|
|
19385
19384
|
padding: 0
|
|
@@ -19390,13 +19389,13 @@ function Drag$2(props) {
|
|
|
19390
19389
|
},
|
|
19391
19390
|
className: "kts-invoice-operate-goods-list-itemName-drag",
|
|
19392
19391
|
onMouseOver: controller.saveEditGood
|
|
19393
|
-
},
|
|
19392
|
+
}, React.createElement(Icon, {
|
|
19394
19393
|
component: SvgI001$1
|
|
19395
19394
|
}));
|
|
19396
19395
|
}, [onMouseDown, controller]);
|
|
19397
19396
|
|
|
19398
19397
|
if (disabled) {
|
|
19399
|
-
return
|
|
19398
|
+
return React.createElement(Popover, {
|
|
19400
19399
|
content: '您还有未编辑完成的商品',
|
|
19401
19400
|
trigger: 'focus'
|
|
19402
19401
|
}, renderButton);
|
|
@@ -19436,13 +19435,13 @@ function DragDiv$1(props) {
|
|
|
19436
19435
|
window.removeEventListener('mousemove', onMousemove);
|
|
19437
19436
|
};
|
|
19438
19437
|
});
|
|
19439
|
-
return
|
|
19438
|
+
return React.createElement("div", {
|
|
19440
19439
|
className: "kts-invoice-operate-goods-list-itemName-drag-div",
|
|
19441
19440
|
style: {
|
|
19442
19441
|
top: y,
|
|
19443
19442
|
left: x
|
|
19444
19443
|
}
|
|
19445
|
-
},
|
|
19444
|
+
}, React.createElement("span", null, props.itemName), React.createElement("span", null, props.itemModelName), React.createElement("span", null, props.unit));
|
|
19446
19445
|
}
|
|
19447
19446
|
|
|
19448
19447
|
var useColumns$1 = (function (form) {
|
|
@@ -19558,7 +19557,7 @@ var useColumns$1 = (function (form) {
|
|
|
19558
19557
|
width: 40,
|
|
19559
19558
|
align: 'center',
|
|
19560
19559
|
render: function render(_, record) {
|
|
19561
|
-
return
|
|
19560
|
+
return React.createElement(Drag$2, {
|
|
19562
19561
|
record: record
|
|
19563
19562
|
});
|
|
19564
19563
|
}
|
|
@@ -19568,20 +19567,20 @@ var useColumns$1 = (function (form) {
|
|
|
19568
19567
|
dataIndex: 'serialNo',
|
|
19569
19568
|
width: 50,
|
|
19570
19569
|
render: function render(e) {
|
|
19571
|
-
return
|
|
19570
|
+
return React.createElement("span", {
|
|
19572
19571
|
style: {
|
|
19573
19572
|
padding: '0 10px'
|
|
19574
19573
|
}
|
|
19575
19574
|
}, e);
|
|
19576
19575
|
}
|
|
19577
19576
|
}, {
|
|
19578
|
-
title:
|
|
19577
|
+
title: React.createElement(TitleText$1, {
|
|
19579
19578
|
required: true
|
|
19580
19579
|
}, "\u9879\u76EE\u540D\u79F0"),
|
|
19581
19580
|
key: 'itemName',
|
|
19582
19581
|
render: function render(_, record) {
|
|
19583
19582
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
19584
|
-
return
|
|
19583
|
+
return React.createElement(Form.Item, null, React.createElement("div", {
|
|
19585
19584
|
style: {
|
|
19586
19585
|
display: 'flex'
|
|
19587
19586
|
}
|
|
@@ -19628,12 +19627,12 @@ var useColumns$1 = (function (form) {
|
|
|
19628
19627
|
return validator;
|
|
19629
19628
|
}()
|
|
19630
19629
|
}])
|
|
19631
|
-
})(
|
|
19630
|
+
})(React.createElement(ItemNameInput$1, {
|
|
19632
19631
|
editGood: editGood,
|
|
19633
19632
|
shorthand: editGood.shorthand,
|
|
19634
|
-
suffix:
|
|
19633
|
+
suffix: React.createElement(Tooltip$1, {
|
|
19635
19634
|
title: "\u70B9\u51FB\u4ECE\u5546\u54C1\u7BA1\u7406\u4E2D\u6DFB\u52A0\u5546\u54C1\u4FE1\u606F"
|
|
19636
|
-
},
|
|
19635
|
+
}, React.createElement(Button$1, {
|
|
19637
19636
|
type: "link",
|
|
19638
19637
|
style: {
|
|
19639
19638
|
padding: 0,
|
|
@@ -19641,7 +19640,7 @@ var useColumns$1 = (function (form) {
|
|
|
19641
19640
|
fontSize: 20,
|
|
19642
19641
|
fill: '#0074ff'
|
|
19643
19642
|
},
|
|
19644
|
-
icon:
|
|
19643
|
+
icon: React.createElement(SvgPlus$1, null),
|
|
19645
19644
|
onClick: controller.pipeline( /*#__PURE__*/function () {
|
|
19646
19645
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(s) {
|
|
19647
19646
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
@@ -19668,9 +19667,9 @@ var useColumns$1 = (function (form) {
|
|
|
19668
19667
|
}
|
|
19669
19668
|
}))));
|
|
19670
19669
|
} else {
|
|
19671
|
-
return
|
|
19670
|
+
return React.createElement("span", null, record.lineAttribute === LineAttributeType$1.折扣行 ? React.createElement("span", {
|
|
19672
19671
|
className: 'goods-list-digtal-discount-tag'
|
|
19673
|
-
}, "\u6298\u6263") :
|
|
19672
|
+
}, "\u6298\u6263") : React.createElement(React.Fragment, null), React.createElement(MyItemNameDiv$1, {
|
|
19674
19673
|
valueT: formatSearch$1(getItemNameWithShorthand({
|
|
19675
19674
|
shorthand: record.shorthand,
|
|
19676
19675
|
full: record.itemNameSelf || ''
|
|
@@ -19684,17 +19683,17 @@ var useColumns$1 = (function (form) {
|
|
|
19684
19683
|
}
|
|
19685
19684
|
}
|
|
19686
19685
|
}, {
|
|
19687
|
-
title:
|
|
19686
|
+
title: React.createElement(TitleText$1, {
|
|
19688
19687
|
rules: (_columnsReplenish$ite = columnsReplenish['itemModelName']) === null || _columnsReplenish$ite === void 0 ? void 0 : _columnsReplenish$ite.rules
|
|
19689
19688
|
}, "\u89C4\u683C\u578B\u53F7"),
|
|
19690
19689
|
key: 'itemModelName',
|
|
19691
19690
|
width: 119,
|
|
19692
19691
|
render: function render(_, record) {
|
|
19693
19692
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
19694
|
-
return
|
|
19693
|
+
return React.createElement(Form.Item, null, getFieldDecorator('itemModelName', {
|
|
19695
19694
|
initialValue: isMyShow ? editGood.itemModelNameSelf : editGood.itemModelName,
|
|
19696
19695
|
rules: getReplenishRules('itemModelName')
|
|
19697
|
-
})(
|
|
19696
|
+
})(React.createElement(MyInput$2, {
|
|
19698
19697
|
onChange: function () {
|
|
19699
19698
|
var _onChange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
19700
19699
|
var key, value;
|
|
@@ -19727,7 +19726,7 @@ var useColumns$1 = (function (form) {
|
|
|
19727
19726
|
}()
|
|
19728
19727
|
})));
|
|
19729
19728
|
} else {
|
|
19730
|
-
return
|
|
19729
|
+
return React.createElement(MyItemNameDiv$1, {
|
|
19731
19730
|
valueT: formatSearch$1(record.itemModelNameSelf, searchValue),
|
|
19732
19731
|
valueF: formatSearch$1(record.itemModelName, searchValue),
|
|
19733
19732
|
isMyShow: isMyShow
|
|
@@ -19735,17 +19734,17 @@ var useColumns$1 = (function (form) {
|
|
|
19735
19734
|
}
|
|
19736
19735
|
}
|
|
19737
19736
|
}, {
|
|
19738
|
-
title:
|
|
19737
|
+
title: React.createElement(TitleText$1, {
|
|
19739
19738
|
rules: (_columnsReplenish$uni = columnsReplenish['unit']) === null || _columnsReplenish$uni === void 0 ? void 0 : _columnsReplenish$uni.rules
|
|
19740
19739
|
}, "\u5355\u4F4D"),
|
|
19741
19740
|
key: 'unit',
|
|
19742
19741
|
width: 70,
|
|
19743
19742
|
render: function render(_, record) {
|
|
19744
19743
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
19745
|
-
return
|
|
19744
|
+
return React.createElement(Form.Item, null, getFieldDecorator('unit', {
|
|
19746
19745
|
initialValue: editGood.unit,
|
|
19747
19746
|
rules: getReplenishRules('unit')
|
|
19748
|
-
})(
|
|
19747
|
+
})(React.createElement(AutoComplete$1, {
|
|
19749
19748
|
style: {
|
|
19750
19749
|
width: '100%'
|
|
19751
19750
|
},
|
|
@@ -19783,7 +19782,7 @@ var useColumns$1 = (function (form) {
|
|
|
19783
19782
|
}()
|
|
19784
19783
|
})));
|
|
19785
19784
|
} else {
|
|
19786
|
-
return
|
|
19785
|
+
return React.createElement("span", {
|
|
19787
19786
|
style: {
|
|
19788
19787
|
padding: '0 10px'
|
|
19789
19788
|
}
|
|
@@ -19791,7 +19790,7 @@ var useColumns$1 = (function (form) {
|
|
|
19791
19790
|
}
|
|
19792
19791
|
}
|
|
19793
19792
|
}, {
|
|
19794
|
-
title:
|
|
19793
|
+
title: React.createElement(TitleText$1, {
|
|
19795
19794
|
rules: (_columnsReplenish$qua = columnsReplenish['quantity']) === null || _columnsReplenish$qua === void 0 ? void 0 : _columnsReplenish$qua.rules
|
|
19796
19795
|
}, "\u6570\u91CF"),
|
|
19797
19796
|
dataIndex: 'quantity',
|
|
@@ -19800,7 +19799,7 @@ var useColumns$1 = (function (form) {
|
|
|
19800
19799
|
width: 149,
|
|
19801
19800
|
render: function render(value, record) {
|
|
19802
19801
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
19803
|
-
return
|
|
19802
|
+
return React.createElement(Form.Item, null, getFieldDecorator('quantity', {
|
|
19804
19803
|
initialValue: editGood.quantity,
|
|
19805
19804
|
getValueFromEvent: onNumberValueChange,
|
|
19806
19805
|
rules: [].concat(_toConsumableArray(getReplenishRules('quantity')), [{
|
|
@@ -19846,7 +19845,7 @@ var useColumns$1 = (function (form) {
|
|
|
19846
19845
|
return validator;
|
|
19847
19846
|
}()
|
|
19848
19847
|
}])
|
|
19849
|
-
})(
|
|
19848
|
+
})(React.createElement(MyInput$2, {
|
|
19850
19849
|
style: {
|
|
19851
19850
|
textAlign: 'right'
|
|
19852
19851
|
},
|
|
@@ -19878,7 +19877,7 @@ var useColumns$1 = (function (form) {
|
|
|
19878
19877
|
}()
|
|
19879
19878
|
})));
|
|
19880
19879
|
} else {
|
|
19881
|
-
return
|
|
19880
|
+
return React.createElement("span", {
|
|
19882
19881
|
style: {
|
|
19883
19882
|
padding: '0 10px'
|
|
19884
19883
|
}
|
|
@@ -19886,7 +19885,7 @@ var useColumns$1 = (function (form) {
|
|
|
19886
19885
|
}
|
|
19887
19886
|
}
|
|
19888
19887
|
}, {
|
|
19889
|
-
title:
|
|
19888
|
+
title: React.createElement(TitleText$1, {
|
|
19890
19889
|
rules: (_columnsReplenish$pri = columnsReplenish['priceIncludeTax']) === null || _columnsReplenish$pri === void 0 ? void 0 : _columnsReplenish$pri.rules
|
|
19891
19890
|
}, "\u5355\u4EF7(\u542B\u7A0E)"),
|
|
19892
19891
|
dataIndex: 'priceIncludeTax',
|
|
@@ -19895,7 +19894,7 @@ var useColumns$1 = (function (form) {
|
|
|
19895
19894
|
width: 149,
|
|
19896
19895
|
render: function render(value, record) {
|
|
19897
19896
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
19898
|
-
return
|
|
19897
|
+
return React.createElement(Form.Item, null, getFieldDecorator('priceIncludeTax', {
|
|
19899
19898
|
initialValue: editGood.priceIncludeTax,
|
|
19900
19899
|
getValueFromEvent: onNumberValueChange,
|
|
19901
19900
|
rules: [].concat(_toConsumableArray(getReplenishRules('priceIncludeTax')), [{
|
|
@@ -19941,7 +19940,7 @@ var useColumns$1 = (function (form) {
|
|
|
19941
19940
|
return validator;
|
|
19942
19941
|
}()
|
|
19943
19942
|
}])
|
|
19944
|
-
})(
|
|
19943
|
+
})(React.createElement(MyInput$2, {
|
|
19945
19944
|
style: {
|
|
19946
19945
|
textAlign: 'right'
|
|
19947
19946
|
},
|
|
@@ -19953,7 +19952,7 @@ var useColumns$1 = (function (form) {
|
|
|
19953
19952
|
}
|
|
19954
19953
|
})));
|
|
19955
19954
|
} else {
|
|
19956
|
-
return
|
|
19955
|
+
return React.createElement("span", {
|
|
19957
19956
|
style: {
|
|
19958
19957
|
padding: '0 10px'
|
|
19959
19958
|
}
|
|
@@ -19961,7 +19960,7 @@ var useColumns$1 = (function (form) {
|
|
|
19961
19960
|
}
|
|
19962
19961
|
}
|
|
19963
19962
|
}, {
|
|
19964
|
-
title:
|
|
19963
|
+
title: React.createElement(TitleText$1, {
|
|
19965
19964
|
rules: (_columnsReplenish$pri2 = columnsReplenish['priceExcludeTax']) === null || _columnsReplenish$pri2 === void 0 ? void 0 : _columnsReplenish$pri2.rules
|
|
19966
19965
|
}, "\u5355\u4EF7(\u4E0D\u542B\u7A0E)"),
|
|
19967
19966
|
dataIndex: 'priceExcludeTax',
|
|
@@ -19970,7 +19969,7 @@ var useColumns$1 = (function (form) {
|
|
|
19970
19969
|
width: 149,
|
|
19971
19970
|
render: function render(value, record) {
|
|
19972
19971
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
19973
|
-
return
|
|
19972
|
+
return React.createElement(Form.Item, null, getFieldDecorator('priceExcludeTax', {
|
|
19974
19973
|
initialValue: editGood.priceExcludeTax,
|
|
19975
19974
|
getValueFromEvent: onNumberValueChange,
|
|
19976
19975
|
rules: [].concat(_toConsumableArray(getReplenishRules('priceExcludeTax')), [{
|
|
@@ -20016,7 +20015,7 @@ var useColumns$1 = (function (form) {
|
|
|
20016
20015
|
return validator;
|
|
20017
20016
|
}()
|
|
20018
20017
|
}])
|
|
20019
|
-
})(
|
|
20018
|
+
})(React.createElement(MyInput$2, {
|
|
20020
20019
|
style: {
|
|
20021
20020
|
textAlign: 'right'
|
|
20022
20021
|
},
|
|
@@ -20028,7 +20027,7 @@ var useColumns$1 = (function (form) {
|
|
|
20028
20027
|
}
|
|
20029
20028
|
})));
|
|
20030
20029
|
} else {
|
|
20031
|
-
return
|
|
20030
|
+
return React.createElement("span", {
|
|
20032
20031
|
style: {
|
|
20033
20032
|
padding: '0 10px'
|
|
20034
20033
|
}
|
|
@@ -20036,7 +20035,7 @@ var useColumns$1 = (function (form) {
|
|
|
20036
20035
|
}
|
|
20037
20036
|
}
|
|
20038
20037
|
}, {
|
|
20039
|
-
title:
|
|
20038
|
+
title: React.createElement(TitleText$1, {
|
|
20040
20039
|
required: true
|
|
20041
20040
|
}, "\u91D1\u989D(\u542B\u7A0E)"),
|
|
20042
20041
|
dataIndex: 'lineAmountIncludeTax',
|
|
@@ -20045,7 +20044,7 @@ var useColumns$1 = (function (form) {
|
|
|
20045
20044
|
align: 'right',
|
|
20046
20045
|
render: function render(value, record) {
|
|
20047
20046
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
20048
|
-
return
|
|
20047
|
+
return React.createElement(Form.Item, null, getFieldDecorator('lineAmountIncludeTax', {
|
|
20049
20048
|
initialValue: editGood.lineAmountIncludeTax,
|
|
20050
20049
|
getValueFromEvent: onNumberValueChange,
|
|
20051
20050
|
rules: [].concat(_toConsumableArray(getReplenishRules('lineAmountIncludeTax')), [{
|
|
@@ -20105,7 +20104,7 @@ var useColumns$1 = (function (form) {
|
|
|
20105
20104
|
return validator;
|
|
20106
20105
|
}()
|
|
20107
20106
|
}])
|
|
20108
|
-
})(
|
|
20107
|
+
})(React.createElement(MyInput$2, {
|
|
20109
20108
|
style: {
|
|
20110
20109
|
textAlign: 'right'
|
|
20111
20110
|
},
|
|
@@ -20116,7 +20115,7 @@ var useColumns$1 = (function (form) {
|
|
|
20116
20115
|
}
|
|
20117
20116
|
})));
|
|
20118
20117
|
} else {
|
|
20119
|
-
return
|
|
20118
|
+
return React.createElement("span", {
|
|
20120
20119
|
style: {
|
|
20121
20120
|
padding: '0 10px'
|
|
20122
20121
|
}
|
|
@@ -20124,7 +20123,7 @@ var useColumns$1 = (function (form) {
|
|
|
20124
20123
|
}
|
|
20125
20124
|
}
|
|
20126
20125
|
}, {
|
|
20127
|
-
title:
|
|
20126
|
+
title: React.createElement(TitleText$1, {
|
|
20128
20127
|
required: true
|
|
20129
20128
|
}, "\u91D1\u989D(\u4E0D\u542B\u7A0E)"),
|
|
20130
20129
|
dataIndex: 'lineAmountExcludeTax',
|
|
@@ -20133,7 +20132,7 @@ var useColumns$1 = (function (form) {
|
|
|
20133
20132
|
width: 119,
|
|
20134
20133
|
render: function render(value, record) {
|
|
20135
20134
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
20136
|
-
return
|
|
20135
|
+
return React.createElement(Form.Item, null, getFieldDecorator('lineAmountExcludeTax', {
|
|
20137
20136
|
initialValue: editGood.lineAmountExcludeTax,
|
|
20138
20137
|
getValueFromEvent: onNumberValueChange,
|
|
20139
20138
|
rules: [].concat(_toConsumableArray(getReplenishRules('lineAmountExcludeTax')), [{
|
|
@@ -20168,7 +20167,7 @@ var useColumns$1 = (function (form) {
|
|
|
20168
20167
|
return validator;
|
|
20169
20168
|
}()
|
|
20170
20169
|
}])
|
|
20171
|
-
})(
|
|
20170
|
+
})(React.createElement(MyInput$2, {
|
|
20172
20171
|
style: {
|
|
20173
20172
|
textAlign: 'right'
|
|
20174
20173
|
},
|
|
@@ -20179,7 +20178,7 @@ var useColumns$1 = (function (form) {
|
|
|
20179
20178
|
}
|
|
20180
20179
|
})));
|
|
20181
20180
|
} else {
|
|
20182
|
-
return
|
|
20181
|
+
return React.createElement("span", {
|
|
20183
20182
|
style: {
|
|
20184
20183
|
padding: '0 10px'
|
|
20185
20184
|
}
|
|
@@ -20187,7 +20186,7 @@ var useColumns$1 = (function (form) {
|
|
|
20187
20186
|
}
|
|
20188
20187
|
}
|
|
20189
20188
|
}, {
|
|
20190
|
-
title:
|
|
20189
|
+
title: React.createElement(TitleText$1, {
|
|
20191
20190
|
required: true
|
|
20192
20191
|
}, "\u7A0E\u7387%"),
|
|
20193
20192
|
dataIndex: 'taxRate',
|
|
@@ -20196,7 +20195,7 @@ var useColumns$1 = (function (form) {
|
|
|
20196
20195
|
width: 70,
|
|
20197
20196
|
render: function render(value, record) {
|
|
20198
20197
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
20199
|
-
return
|
|
20198
|
+
return React.createElement(Form.Item, null, getFieldDecorator('taxRate', {
|
|
20200
20199
|
initialValue: editGood.taxRate,
|
|
20201
20200
|
rules: [].concat(_toConsumableArray(getReplenishRules('taxRate')), [{
|
|
20202
20201
|
required: true,
|
|
@@ -20205,7 +20204,7 @@ var useColumns$1 = (function (form) {
|
|
|
20205
20204
|
pattern: /^[+-]?(0|([1-9]\d*))(\.\d+)?$/,
|
|
20206
20205
|
message: ' '
|
|
20207
20206
|
}])
|
|
20208
|
-
})(
|
|
20207
|
+
})(React.createElement(Select$1, {
|
|
20209
20208
|
className: "kts-invoice-operate-goods-list-table-tax-rate",
|
|
20210
20209
|
// dropdownMenuStyle={{ textAlign: "right" }}
|
|
20211
20210
|
showArrow: false,
|
|
@@ -20217,13 +20216,13 @@ var useColumns$1 = (function (form) {
|
|
|
20217
20216
|
onChangeTaxRate$1(controller, form, record);
|
|
20218
20217
|
}
|
|
20219
20218
|
}, taxRateList.map(function (e, i) {
|
|
20220
|
-
return
|
|
20219
|
+
return React.createElement(Select$1.Option, {
|
|
20221
20220
|
key: i,
|
|
20222
20221
|
value: e
|
|
20223
20222
|
}, e, "%");
|
|
20224
20223
|
}))));
|
|
20225
20224
|
} else {
|
|
20226
|
-
return
|
|
20225
|
+
return React.createElement("span", {
|
|
20227
20226
|
style: {
|
|
20228
20227
|
padding: '0 10px'
|
|
20229
20228
|
}
|
|
@@ -20231,7 +20230,7 @@ var useColumns$1 = (function (form) {
|
|
|
20231
20230
|
}
|
|
20232
20231
|
}
|
|
20233
20232
|
}, {
|
|
20234
|
-
title:
|
|
20233
|
+
title: React.createElement(TitleText$1, {
|
|
20235
20234
|
rules: (_columnsReplenish$tax = columnsReplenish['taxAmount']) === null || _columnsReplenish$tax === void 0 ? void 0 : _columnsReplenish$tax.rules
|
|
20236
20235
|
}, "\u7A0E\u989D"),
|
|
20237
20236
|
dataIndex: 'taxAmount',
|
|
@@ -20243,11 +20242,11 @@ var useColumns$1 = (function (form) {
|
|
|
20243
20242
|
return getFieldDecorator('taxAmount', {
|
|
20244
20243
|
initialValue: editGood.taxAmount,
|
|
20245
20244
|
rules: getReplenishRules('taxAmount')
|
|
20246
|
-
})(
|
|
20245
|
+
})(React.createElement(MyDiv$2, {
|
|
20247
20246
|
loading: isCipher$1(changeField, 'taxAmount')
|
|
20248
20247
|
}));
|
|
20249
20248
|
} else {
|
|
20250
|
-
return
|
|
20249
|
+
return React.createElement("span", {
|
|
20251
20250
|
style: {
|
|
20252
20251
|
padding: '0 10px'
|
|
20253
20252
|
}
|
|
@@ -20314,13 +20313,13 @@ var MyInput$2 = /*#__PURE__*/function (_React$Component) {
|
|
|
20314
20313
|
key: "render",
|
|
20315
20314
|
value: function render() {
|
|
20316
20315
|
if (this.props.loading) {
|
|
20317
|
-
return
|
|
20316
|
+
return React.createElement(Spin$1, {
|
|
20318
20317
|
size: "small"
|
|
20319
|
-
},
|
|
20318
|
+
}, React.createElement(Input$1, _objectSpread2(_objectSpread2({}, this.props), {}, {
|
|
20320
20319
|
autoComplete: "off"
|
|
20321
20320
|
})));
|
|
20322
20321
|
} else {
|
|
20323
|
-
return
|
|
20322
|
+
return React.createElement(Input$1, _objectSpread2(_objectSpread2({}, this.props), {}, {
|
|
20324
20323
|
autoComplete: "off"
|
|
20325
20324
|
}));
|
|
20326
20325
|
}
|
|
@@ -20345,15 +20344,15 @@ var MyDiv$2 = /*#__PURE__*/function (_React$Component2) {
|
|
|
20345
20344
|
key: "render",
|
|
20346
20345
|
value: function render() {
|
|
20347
20346
|
if (this.props.loading) {
|
|
20348
|
-
return
|
|
20347
|
+
return React.createElement(Spin$1, {
|
|
20349
20348
|
size: "small"
|
|
20350
|
-
},
|
|
20349
|
+
}, React.createElement("span", {
|
|
20351
20350
|
style: {
|
|
20352
20351
|
padding: '0 10px'
|
|
20353
20352
|
}
|
|
20354
20353
|
}, this.props.value));
|
|
20355
20354
|
} else {
|
|
20356
|
-
return
|
|
20355
|
+
return React.createElement("span", {
|
|
20357
20356
|
style: {
|
|
20358
20357
|
padding: '0 10px'
|
|
20359
20358
|
}
|
|
@@ -20386,40 +20385,35 @@ var MyItemNameDiv$1 = /*#__PURE__*/function (_React$Component3) {
|
|
|
20386
20385
|
|
|
20387
20386
|
if (isMyShow) {
|
|
20388
20387
|
if (valueT) {
|
|
20389
|
-
return
|
|
20388
|
+
return React.createElement(Tooltip$1, {
|
|
20390
20389
|
title: valueT
|
|
20391
|
-
},
|
|
20392
|
-
style: {
|
|
20393
|
-
padding: '0 10px',
|
|
20390
|
+
}, React.createElement("span", {
|
|
20391
|
+
style: _objectSpread2(_objectSpread2({}, MyItemNameStyle), {}, {
|
|
20394
20392
|
color: '#0074ff'
|
|
20395
|
-
}
|
|
20393
|
+
})
|
|
20396
20394
|
}, valueT));
|
|
20397
20395
|
} else {
|
|
20398
|
-
return
|
|
20396
|
+
return React.createElement(Tooltip$1, {
|
|
20399
20397
|
title: valueF
|
|
20400
|
-
},
|
|
20401
|
-
style:
|
|
20402
|
-
padding: '0 10px'
|
|
20403
|
-
}
|
|
20398
|
+
}, React.createElement("span", {
|
|
20399
|
+
style: MyItemNameStyle
|
|
20404
20400
|
}, valueF));
|
|
20405
20401
|
}
|
|
20406
20402
|
} else {
|
|
20407
20403
|
if (valueF) {
|
|
20408
|
-
return
|
|
20404
|
+
return React.createElement(Tooltip$1, {
|
|
20409
20405
|
title: valueF
|
|
20410
|
-
},
|
|
20411
|
-
style:
|
|
20412
|
-
padding: '0 10px'
|
|
20413
|
-
}
|
|
20406
|
+
}, React.createElement("span", {
|
|
20407
|
+
style: MyItemNameStyle
|
|
20414
20408
|
}, valueF));
|
|
20415
20409
|
} else {
|
|
20416
|
-
return
|
|
20417
|
-
title: valueT
|
|
20418
|
-
|
|
20419
|
-
|
|
20420
|
-
|
|
20410
|
+
return React.createElement(Tooltip$1, {
|
|
20411
|
+
title: valueT,
|
|
20412
|
+
style: MyItemNameStyle
|
|
20413
|
+
}, React.createElement("span", {
|
|
20414
|
+
style: _objectSpread2(_objectSpread2({}, MyItemNameStyle), {}, {
|
|
20421
20415
|
color: '#0074ff'
|
|
20422
|
-
}
|
|
20416
|
+
})
|
|
20423
20417
|
}, valueT));
|
|
20424
20418
|
}
|
|
20425
20419
|
}
|
|
@@ -20438,7 +20432,7 @@ function formatSearch$1(value, search) {
|
|
|
20438
20432
|
return dcoding$1(e);
|
|
20439
20433
|
}).join("<span class=\"kts-invoice-operate-goods-list-table-search-protrude\" >".concat(search, "</span>"));
|
|
20440
20434
|
|
|
20441
|
-
return
|
|
20435
|
+
return React.createElement("span", {
|
|
20442
20436
|
dangerouslySetInnerHTML: {
|
|
20443
20437
|
__html: __html
|
|
20444
20438
|
}
|
|
@@ -20461,6 +20455,15 @@ function dcoding$1(v) {
|
|
|
20461
20455
|
}).join('');
|
|
20462
20456
|
}
|
|
20463
20457
|
|
|
20458
|
+
var MyItemNameStyle = {
|
|
20459
|
+
padding: '0px 10px',
|
|
20460
|
+
whiteSpace: 'nowrap',
|
|
20461
|
+
overflow: 'hidden',
|
|
20462
|
+
width: "100%",
|
|
20463
|
+
display: 'block',
|
|
20464
|
+
textOverflow: 'ellipsis'
|
|
20465
|
+
};
|
|
20466
|
+
|
|
20464
20467
|
var useOnRow$1 = (function () {
|
|
20465
20468
|
/** 控制器 */
|
|
20466
20469
|
var controller = Invoice.useInvoiceController();
|
|
@@ -20817,7 +20820,7 @@ var useRowSelection$1 = (function () {
|
|
|
20817
20820
|
};
|
|
20818
20821
|
}(), [controller]);
|
|
20819
20822
|
var columnTitle = React.useMemo(function () {
|
|
20820
|
-
return
|
|
20823
|
+
return React.createElement(Checkbox, {
|
|
20821
20824
|
onChange: onClickSelectAll,
|
|
20822
20825
|
indeterminate: indeterminate,
|
|
20823
20826
|
checked: isAll
|
|
@@ -20966,19 +20969,19 @@ var useDelRowButton$1 = (function () {
|
|
|
20966
20969
|
}, _callee2);
|
|
20967
20970
|
})), []);
|
|
20968
20971
|
var menuItem = React.useMemo(function () {
|
|
20969
|
-
if (model === 'prefab') return
|
|
20970
|
-
if (model === 'readOnly') return
|
|
20971
|
-
return
|
|
20972
|
+
if (model === 'prefab') return React.createElement(React.Fragment, null);
|
|
20973
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
20974
|
+
return React.createElement(Menu$1.Item, {
|
|
20972
20975
|
key: "1",
|
|
20973
20976
|
onClick: onClick,
|
|
20974
20977
|
disabled: disabled
|
|
20975
20978
|
}, " \u5220\u9664\u884C ");
|
|
20976
20979
|
}, [model, onClick, disabled]);
|
|
20977
20980
|
var button = React.useMemo(function () {
|
|
20978
|
-
if (isRemRow === false) return
|
|
20979
|
-
if (model === 'prefab') return
|
|
20980
|
-
if (model === 'readOnly') return
|
|
20981
|
-
return
|
|
20981
|
+
if (isRemRow === false) return React.createElement(React.Fragment, null);
|
|
20982
|
+
if (model === 'prefab') return React.createElement(React.Fragment, null);
|
|
20983
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
20984
|
+
return React.createElement(Button$1, {
|
|
20982
20985
|
size: 'small',
|
|
20983
20986
|
onClick: onClick,
|
|
20984
20987
|
disabled: disabled
|
|
@@ -21209,16 +21212,16 @@ var useAddDiscountRowButton$1 = (function () {
|
|
|
21209
21212
|
}, [isAddDiscount, model]);
|
|
21210
21213
|
var button = React.useMemo(function () {
|
|
21211
21214
|
if (isEnable) {
|
|
21212
|
-
return
|
|
21215
|
+
return React.createElement(React.Fragment, null, React.createElement(Button$1, {
|
|
21213
21216
|
size: 'small',
|
|
21214
21217
|
onClick: onOpen,
|
|
21215
21218
|
disabled: disabled
|
|
21216
|
-
}, "\u6DFB\u52A0\u6298\u6263"),
|
|
21219
|
+
}, "\u6DFB\u52A0\u6298\u6263"), React.createElement(AddDiscountRowDrawer, {
|
|
21217
21220
|
open: open,
|
|
21218
21221
|
onClose: onClose
|
|
21219
21222
|
}));
|
|
21220
21223
|
} else {
|
|
21221
|
-
return
|
|
21224
|
+
return React.createElement(React.Fragment, null);
|
|
21222
21225
|
}
|
|
21223
21226
|
}, [open, onOpen, onClose, isEnable, disabled]);
|
|
21224
21227
|
return {
|
|
@@ -21399,35 +21402,35 @@ function AddDiscountRowDrawer(props) {
|
|
|
21399
21402
|
discolineValue: undefined
|
|
21400
21403
|
}));
|
|
21401
21404
|
}, [formValues === null || formValues === void 0 ? void 0 : formValues.discolineType]);
|
|
21402
|
-
return
|
|
21405
|
+
return React.createElement(Drawer$1, {
|
|
21403
21406
|
title: "\u6DFB\u52A0\u6298\u6263",
|
|
21404
21407
|
placement: "right",
|
|
21405
21408
|
width: 350,
|
|
21406
21409
|
onClose: onClose,
|
|
21407
21410
|
open: open,
|
|
21408
|
-
footer:
|
|
21411
|
+
footer: React.createElement(Space, {
|
|
21409
21412
|
size: "middle",
|
|
21410
21413
|
style: {
|
|
21411
21414
|
display: 'flex',
|
|
21412
21415
|
justifyContent: 'end'
|
|
21413
21416
|
}
|
|
21414
|
-
},
|
|
21417
|
+
}, React.createElement(Button$1, {
|
|
21415
21418
|
onClick: onDefine,
|
|
21416
21419
|
type: 'primary'
|
|
21417
|
-
}, "\u786E\u5B9A"),
|
|
21420
|
+
}, "\u786E\u5B9A"), React.createElement(Button$1, {
|
|
21418
21421
|
onClick: onClose
|
|
21419
21422
|
}, "\u53D6\u6D88"))
|
|
21420
|
-
},
|
|
21423
|
+
}, React.createElement(Form$1, {
|
|
21421
21424
|
form: form,
|
|
21422
21425
|
layout: 'vertical',
|
|
21423
21426
|
onChange: onChangeForm
|
|
21424
|
-
},
|
|
21427
|
+
}, React.createElement(Form$1.Item, {
|
|
21425
21428
|
label: "\u5546\u54C1\u91D1\u989D\uFF08\u542B\u7A0E\uFF09"
|
|
21426
|
-
}, totalAmount.toFixed(2), "\uFF08\u5171 ", discountGood.length, " \u884C\uFF09"),
|
|
21429
|
+
}, totalAmount.toFixed(2), "\uFF08\u5171 ", discountGood.length, " \u884C\uFF09"), React.createElement(Form$1.Item, {
|
|
21427
21430
|
label: "\u6298\u6263\u65B9\u5F0F",
|
|
21428
21431
|
name: 'discolineType',
|
|
21429
21432
|
initialValue: '1'
|
|
21430
|
-
},
|
|
21433
|
+
}, React.createElement(Radio.Group, {
|
|
21431
21434
|
options: [{
|
|
21432
21435
|
label: '按金额折扣',
|
|
21433
21436
|
value: '1'
|
|
@@ -21435,7 +21438,7 @@ function AddDiscountRowDrawer(props) {
|
|
|
21435
21438
|
label: '按比例折扣',
|
|
21436
21439
|
value: '2'
|
|
21437
21440
|
}]
|
|
21438
|
-
})), (formValues === null || formValues === void 0 ? void 0 : formValues.discolineType) === '1' ?
|
|
21441
|
+
})), (formValues === null || formValues === void 0 ? void 0 : formValues.discolineType) === '1' ? React.createElement(Form$1.Item, {
|
|
21439
21442
|
label: "\u6298\u6263\u91D1\u989D\uFF08\u5143\uFF09\uFF08\u542B\u7A0E\uFF09",
|
|
21440
21443
|
name: 'discolineValue',
|
|
21441
21444
|
rules: [{
|
|
@@ -21486,11 +21489,11 @@ function AddDiscountRowDrawer(props) {
|
|
|
21486
21489
|
return validator;
|
|
21487
21490
|
}()
|
|
21488
21491
|
}]
|
|
21489
|
-
},
|
|
21492
|
+
}, React.createElement(InputNumber, {
|
|
21490
21493
|
style: {
|
|
21491
21494
|
width: '100%'
|
|
21492
21495
|
}
|
|
21493
|
-
})) :
|
|
21496
|
+
})) : React.createElement(Form$1.Item, {
|
|
21494
21497
|
label: "\u6298\u6263\u6BD4\u4F8B\uFF08%\uFF09\uFF08\u542B\u7A0E\uFF09",
|
|
21495
21498
|
name: 'discolineValue',
|
|
21496
21499
|
rules: [{
|
|
@@ -21541,7 +21544,7 @@ function AddDiscountRowDrawer(props) {
|
|
|
21541
21544
|
return validator;
|
|
21542
21545
|
}()
|
|
21543
21546
|
}]
|
|
21544
|
-
},
|
|
21547
|
+
}, React.createElement(InputNumber, {
|
|
21545
21548
|
style: {
|
|
21546
21549
|
width: '100%'
|
|
21547
21550
|
}
|
|
@@ -21685,16 +21688,16 @@ var useEndowCodeButton$1 = (function () {
|
|
|
21685
21688
|
}, _callee2);
|
|
21686
21689
|
})), [controller]);
|
|
21687
21690
|
var menuItem = React.useMemo(function () {
|
|
21688
|
-
if (model === 'readOnly') return
|
|
21689
|
-
return
|
|
21691
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
21692
|
+
return React.createElement(Menu$1.Item, {
|
|
21690
21693
|
key: "2",
|
|
21691
21694
|
onClick: onClick,
|
|
21692
21695
|
disabled: disabled
|
|
21693
21696
|
}, "\u6279\u91CF\u8D4B\u7801");
|
|
21694
21697
|
}, [onClick, disabled, model]);
|
|
21695
21698
|
var button = React.useMemo(function () {
|
|
21696
|
-
if (model === 'readOnly') return
|
|
21697
|
-
return
|
|
21699
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
21700
|
+
return React.createElement(Button$1, {
|
|
21698
21701
|
onClick: onClick,
|
|
21699
21702
|
disabled: disabled,
|
|
21700
21703
|
size: 'small'
|
|
@@ -21754,14 +21757,14 @@ var useEmptyRefill = (function () {
|
|
|
21754
21757
|
}());
|
|
21755
21758
|
}, [controller]);
|
|
21756
21759
|
var button = React.useMemo(function () {
|
|
21757
|
-
if (model === 'readOnly') return
|
|
21758
|
-
if (model === 'prefab') return
|
|
21759
|
-
return
|
|
21760
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
21761
|
+
if (model === 'prefab') return React.createElement(React.Fragment, null);
|
|
21762
|
+
return React.createElement(Popconfirm, {
|
|
21760
21763
|
title: "\u5C06\u8981\u6E05\u7A7A\u6240\u6709\u9879\u76EE\u4FE1\u606F\uFF0C\u662F\u5426\u7EE7\u7EED",
|
|
21761
21764
|
onConfirm: confirm,
|
|
21762
21765
|
okText: "\u786E\u5B9A",
|
|
21763
21766
|
cancelText: "\u53D6\u6D88"
|
|
21764
|
-
},
|
|
21767
|
+
}, React.createElement(Button$1, {
|
|
21765
21768
|
size: 'small'
|
|
21766
21769
|
}, "\u6E05\u7A7A\u91CD\u586B"));
|
|
21767
21770
|
}, [model, confirm]);
|
|
@@ -21828,14 +21831,14 @@ function InvoiceTypeModal(props) {
|
|
|
21828
21831
|
setValues(values);
|
|
21829
21832
|
}
|
|
21830
21833
|
}, [props.open, props.defaultBillingType, props.defaultBusiness, props.defaultInvoiceType, form]);
|
|
21831
|
-
return
|
|
21834
|
+
return React.createElement(Modal, {
|
|
21832
21835
|
title: props.modalTitle || "选择开具信息",
|
|
21833
21836
|
open: props.open,
|
|
21834
21837
|
onOk: onConfirm,
|
|
21835
21838
|
onCancel: props.onCancel,
|
|
21836
21839
|
okText: "\u786E\u5B9A",
|
|
21837
21840
|
cancelText: "\u53D6\u6D88"
|
|
21838
|
-
},
|
|
21841
|
+
}, React.createElement(Form$1, {
|
|
21839
21842
|
form: form,
|
|
21840
21843
|
layout: "vertical",
|
|
21841
21844
|
style: {
|
|
@@ -21844,13 +21847,13 @@ function InvoiceTypeModal(props) {
|
|
|
21844
21847
|
onValuesChange: function onValuesChange(_, e) {
|
|
21845
21848
|
setValues(e);
|
|
21846
21849
|
}
|
|
21847
|
-
},
|
|
21850
|
+
}, React.createElement(Row, {
|
|
21848
21851
|
gutter: [16, 16]
|
|
21849
|
-
},
|
|
21852
|
+
}, React.createElement(Col, {
|
|
21850
21853
|
span: 24
|
|
21851
|
-
},
|
|
21854
|
+
}, React.createElement(Form$1.Item, {
|
|
21852
21855
|
name: 'billingType'
|
|
21853
|
-
},
|
|
21856
|
+
}, React.createElement(Radio.Group, {
|
|
21854
21857
|
size: 'large',
|
|
21855
21858
|
className: "goods-list-digtal-reselect-invoice-typeModal-radio",
|
|
21856
21859
|
optionType: "button",
|
|
@@ -21863,27 +21866,27 @@ function InvoiceTypeModal(props) {
|
|
|
21863
21866
|
label: '税控发票',
|
|
21864
21867
|
value: 'taxation'
|
|
21865
21868
|
}]
|
|
21866
|
-
}))),
|
|
21869
|
+
}))), React.createElement(Col, {
|
|
21867
21870
|
span: 12
|
|
21868
|
-
},
|
|
21871
|
+
}, React.createElement(Form$1.Item, {
|
|
21869
21872
|
name: 'invoiceType',
|
|
21870
21873
|
label: "\u9009\u62E9\u7968\u7C7B",
|
|
21871
21874
|
rules: [{
|
|
21872
21875
|
required: true,
|
|
21873
21876
|
message: '选择票类必填'
|
|
21874
21877
|
}]
|
|
21875
|
-
},
|
|
21878
|
+
}, React.createElement(Select$1, {
|
|
21876
21879
|
size: 'large',
|
|
21877
21880
|
allowClear: true,
|
|
21878
21881
|
placeholder: "\u8BF7\u9009\u62E9\uFF08\u5FC5\u586B\u9879\uFF09",
|
|
21879
21882
|
disabled: disableds.indexOf('invoiceType') >= 0,
|
|
21880
21883
|
options: props.invoiceTypeOptions
|
|
21881
|
-
}))),
|
|
21884
|
+
}))), React.createElement(Col, {
|
|
21882
21885
|
span: 12
|
|
21883
|
-
},
|
|
21886
|
+
}, React.createElement(Form$1.Item, {
|
|
21884
21887
|
name: 'business',
|
|
21885
21888
|
label: "\u7279\u5B9A\u4E1A\u52A1"
|
|
21886
|
-
},
|
|
21889
|
+
}, React.createElement(Select$1, {
|
|
21887
21890
|
size: 'large',
|
|
21888
21891
|
allowClear: true,
|
|
21889
21892
|
placeholder: "\u8BF7\u9009\u62E9\uFF08\u975E\u5FC5\u586B\u9879\uFF09",
|
|
@@ -21928,11 +21931,11 @@ var useReselectInvoiceType = (function () {
|
|
|
21928
21931
|
return true;
|
|
21929
21932
|
}, [model, typeModalProps === null || typeModalProps === void 0 ? void 0 : typeModalProps.isDisabled]);
|
|
21930
21933
|
var button = React.useMemo(function () {
|
|
21931
|
-
if (isEnable === false) return
|
|
21932
|
-
return
|
|
21934
|
+
if (isEnable === false) return React.createElement(React.Fragment, null);
|
|
21935
|
+
return React.createElement(React.Fragment, null, React.createElement(Button$1, {
|
|
21933
21936
|
size: 'small',
|
|
21934
21937
|
onClick: onOpen
|
|
21935
|
-
}, "\u91CD\u9009\u53D1\u7968\u7C7B\u578B"),
|
|
21938
|
+
}, "\u91CD\u9009\u53D1\u7968\u7C7B\u578B"), React.createElement(InvoiceTypeModal, _objectSpread2(_objectSpread2({}, typeModalProps), {}, {
|
|
21936
21939
|
open: open,
|
|
21937
21940
|
onCancel: onClose,
|
|
21938
21941
|
onOk: onOk
|
|
@@ -21960,7 +21963,7 @@ var GoodsList$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
21960
21963
|
_createClass(GoodsList, [{
|
|
21961
21964
|
key: "render",
|
|
21962
21965
|
value: function render() {
|
|
21963
|
-
return
|
|
21966
|
+
return React.createElement(Main$3, _objectSpread2({}, this.props));
|
|
21964
21967
|
}
|
|
21965
21968
|
}]);
|
|
21966
21969
|
|
|
@@ -22161,20 +22164,20 @@ var Main$3 = decorator(Form.create())(function (props) {
|
|
|
22161
22164
|
};
|
|
22162
22165
|
}())();
|
|
22163
22166
|
}, [controller, props.isSwitchTax]);
|
|
22164
|
-
return
|
|
22167
|
+
return React.createElement("div", {
|
|
22165
22168
|
className: "kts-invoice-operate-goods-list-digtal",
|
|
22166
22169
|
onClick: function onClick(e) {
|
|
22167
22170
|
e.stopPropagation();
|
|
22168
22171
|
}
|
|
22169
|
-
},
|
|
22172
|
+
}, React.createElement("div", {
|
|
22170
22173
|
className: "kts-invoice-operate-goods-list-able"
|
|
22171
|
-
},
|
|
22174
|
+
}, React.createElement(AddRowButton$1, null), delRowButton.button, addDiscountRowButton.button, endowCodeButton.button, React.createElement(TaxIncludedSwitch$1, null), React.createElement(Search$1, null), React.createElement("div", {
|
|
22172
22175
|
style: {
|
|
22173
22176
|
flex: 1
|
|
22174
22177
|
}
|
|
22175
|
-
}), props.menuExpansion, reselectInvoiceType.button, emptyRefill.button),
|
|
22178
|
+
}), props.menuExpansion, reselectInvoiceType.button, emptyRefill.button), React.createElement("div", {
|
|
22176
22179
|
className: classNames('kts-invoice-operate-goods-list-table-digtal')
|
|
22177
|
-
},
|
|
22180
|
+
}, React.createElement(TableVirtual$1, {
|
|
22178
22181
|
size: "small",
|
|
22179
22182
|
rowKey: "$index",
|
|
22180
22183
|
pagination: false,
|
|
@@ -22196,7 +22199,7 @@ var Main$3 = decorator(Form.create())(function (props) {
|
|
|
22196
22199
|
}
|
|
22197
22200
|
};
|
|
22198
22201
|
}
|
|
22199
|
-
})),
|
|
22202
|
+
})), React.createElement("div", null, React.createElement(Statistics$1, null)));
|
|
22200
22203
|
});
|
|
22201
22204
|
|
|
22202
22205
|
var ImportBuyerDrawer = (function () {
|
|
@@ -22230,7 +22233,7 @@ var ImportBuyerDrawer = (function () {
|
|
|
22230
22233
|
};
|
|
22231
22234
|
}())();
|
|
22232
22235
|
}, [controller]);
|
|
22233
|
-
return
|
|
22236
|
+
return React.createElement(Drawer, {
|
|
22234
22237
|
title: "\u8D2D\u65B9\u5217\u8868",
|
|
22235
22238
|
placement: "right",
|
|
22236
22239
|
// closable={false}
|
|
@@ -22238,7 +22241,7 @@ var ImportBuyerDrawer = (function () {
|
|
|
22238
22241
|
width: 983,
|
|
22239
22242
|
onClose: onClose,
|
|
22240
22243
|
visible: visible
|
|
22241
|
-
}, topExpand,
|
|
22244
|
+
}, topExpand, React.createElement(DrawerBody$1, null));
|
|
22242
22245
|
});
|
|
22243
22246
|
|
|
22244
22247
|
var DrawerBody$1 = function DrawerBody() {
|
|
@@ -22259,7 +22262,7 @@ var DrawerBody$1 = function DrawerBody() {
|
|
|
22259
22262
|
}
|
|
22260
22263
|
});
|
|
22261
22264
|
}, [controller]);
|
|
22262
|
-
return
|
|
22265
|
+
return React.createElement(Table$1, {
|
|
22263
22266
|
bordered: true,
|
|
22264
22267
|
size: "small",
|
|
22265
22268
|
columns: columns,
|
|
@@ -22359,7 +22362,7 @@ var ImportGoodsDrawer = (function () {
|
|
|
22359
22362
|
};
|
|
22360
22363
|
}())();
|
|
22361
22364
|
}, [controller]);
|
|
22362
|
-
return
|
|
22365
|
+
return React.createElement(Drawer, {
|
|
22363
22366
|
title: "\u5546\u54C1\u5217\u8868",
|
|
22364
22367
|
placement: "right",
|
|
22365
22368
|
// closable={false}
|
|
@@ -22367,11 +22370,11 @@ var ImportGoodsDrawer = (function () {
|
|
|
22367
22370
|
width: 983,
|
|
22368
22371
|
onClose: onClose,
|
|
22369
22372
|
visible: visible
|
|
22370
|
-
}, topExpand &&
|
|
22373
|
+
}, topExpand && React.createElement("div", {
|
|
22371
22374
|
style: {
|
|
22372
22375
|
marginBottom: 10
|
|
22373
22376
|
}
|
|
22374
|
-
}, topExpand),
|
|
22377
|
+
}, topExpand), React.createElement(DrawerBody$2, null));
|
|
22375
22378
|
});
|
|
22376
22379
|
|
|
22377
22380
|
var DrawerBody$2 = function DrawerBody() {
|
|
@@ -22393,7 +22396,7 @@ var DrawerBody$2 = function DrawerBody() {
|
|
|
22393
22396
|
}
|
|
22394
22397
|
});
|
|
22395
22398
|
}, [controller]);
|
|
22396
|
-
return
|
|
22399
|
+
return React.createElement(Table$1, {
|
|
22397
22400
|
bordered: true,
|
|
22398
22401
|
size: "small",
|
|
22399
22402
|
columns: columns,
|
|
@@ -22680,7 +22683,7 @@ var EndowCodeDrawer = (function () {
|
|
|
22680
22683
|
setDefaultValue(undefined);
|
|
22681
22684
|
}
|
|
22682
22685
|
}, [visible]);
|
|
22683
|
-
return
|
|
22686
|
+
return React.createElement(Drawer, {
|
|
22684
22687
|
title: "\u8D4B\u7801",
|
|
22685
22688
|
placement: "right",
|
|
22686
22689
|
destroyOnClose: true,
|
|
@@ -22688,7 +22691,7 @@ var EndowCodeDrawer = (function () {
|
|
|
22688
22691
|
width: 383,
|
|
22689
22692
|
onClose: onClose,
|
|
22690
22693
|
visible: visible
|
|
22691
|
-
}, defaultValue &&
|
|
22694
|
+
}, defaultValue && React.createElement(DrawerBody$3, {
|
|
22692
22695
|
defaultValue: defaultValue
|
|
22693
22696
|
}));
|
|
22694
22697
|
});
|
|
@@ -22845,7 +22848,7 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
22845
22848
|
};
|
|
22846
22849
|
}());
|
|
22847
22850
|
}, [actions, dataSource, readOnlyTaxRate]);
|
|
22848
|
-
return
|
|
22851
|
+
return React.createElement(Select, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
22849
22852
|
showSearch: true,
|
|
22850
22853
|
showArrow: false,
|
|
22851
22854
|
notFoundContent: null,
|
|
@@ -22853,7 +22856,7 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
22853
22856
|
onSearch: onSearch,
|
|
22854
22857
|
onChange: onChange
|
|
22855
22858
|
}), dataSource.map(function (e) {
|
|
22856
|
-
return
|
|
22859
|
+
return React.createElement(Select.Option, {
|
|
22857
22860
|
key: e.value,
|
|
22858
22861
|
value: e.value
|
|
22859
22862
|
}, e.label);
|
|
@@ -22883,14 +22886,14 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
22883
22886
|
|
|
22884
22887
|
|
|
22885
22888
|
var createTreeNode = React.useCallback(function () {
|
|
22886
|
-
if (!list) return
|
|
22889
|
+
if (!list) return React.createElement(React.Fragment, null);
|
|
22887
22890
|
return ctn(list);
|
|
22888
22891
|
|
|
22889
22892
|
function title(label) {
|
|
22890
22893
|
if (!filter) return label;
|
|
22891
22894
|
label = (filter.taxCategoryCode ? label.split(new RegExp(filter.taxCategoryCode, 'g')) : [label]).join("<span style=\"color: #1890ff;\">".concat(filter.taxCategoryCode, "</span>"));
|
|
22892
22895
|
label = (filter.val ? label.split(new RegExp(filter.val, 'g')) : [label]).join("<span style=\"color: #1890ff;\">".concat(filter.val, "</span>"));
|
|
22893
|
-
return
|
|
22896
|
+
return React.createElement("span", {
|
|
22894
22897
|
dangerouslySetInnerHTML: {
|
|
22895
22898
|
__html: label
|
|
22896
22899
|
}
|
|
@@ -22899,11 +22902,11 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
22899
22902
|
|
|
22900
22903
|
function ctn(l) {
|
|
22901
22904
|
var p = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '0';
|
|
22902
|
-
if (!l || !l.length) return [
|
|
22905
|
+
if (!l || !l.length) return [React.createElement(React.Fragment, null)];
|
|
22903
22906
|
return l.filter(function (e) {
|
|
22904
22907
|
return e.pid === p;
|
|
22905
22908
|
}).map(function (e) {
|
|
22906
|
-
return
|
|
22909
|
+
return React.createElement(TreeNode, {
|
|
22907
22910
|
title: title(e.label),
|
|
22908
22911
|
key: e.id
|
|
22909
22912
|
}, ctn(l, e.id));
|
|
@@ -23033,46 +23036,46 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23033
23036
|
setList([]);
|
|
23034
23037
|
}
|
|
23035
23038
|
}, [visible]);
|
|
23036
|
-
return
|
|
23039
|
+
return React.createElement(React.Fragment, null, React.createElement(Input, {
|
|
23037
23040
|
readOnly: true,
|
|
23038
23041
|
value: props.value,
|
|
23039
|
-
addonAfter:
|
|
23042
|
+
addonAfter: React.createElement(Button, {
|
|
23040
23043
|
size: "small",
|
|
23041
23044
|
type: "link",
|
|
23042
23045
|
onClick: function onClick() {
|
|
23043
23046
|
setVisible(true);
|
|
23044
23047
|
}
|
|
23045
23048
|
}, "\u70B9\u51FB\u9009\u62E9")
|
|
23046
|
-
}),
|
|
23049
|
+
}), React.createElement(Drawer, {
|
|
23047
23050
|
title: "\u7A0E\u6536\u5206\u7C7B\u7F16\u7801",
|
|
23048
23051
|
visible: visible,
|
|
23049
23052
|
width: 500,
|
|
23050
23053
|
onClose: function onClose() {
|
|
23051
23054
|
setVisible(false);
|
|
23052
23055
|
}
|
|
23053
|
-
},
|
|
23056
|
+
}, React.createElement(Form, {
|
|
23054
23057
|
key: "".concat(visible)
|
|
23055
|
-
},
|
|
23058
|
+
}, React.createElement(Form.Item, {
|
|
23056
23059
|
label: "\u4EA7\u54C1\u6216\u670D\u52A1\u7B80\u79F0"
|
|
23057
|
-
},
|
|
23060
|
+
}, React.createElement(Input, {
|
|
23058
23061
|
onChange: function onChange(e) {
|
|
23059
23062
|
setFilter(_objectSpread2(_objectSpread2({}, filter), {}, {
|
|
23060
23063
|
val: e.target.value
|
|
23061
23064
|
}));
|
|
23062
23065
|
}
|
|
23063
|
-
})),
|
|
23066
|
+
})), React.createElement(Form.Item, {
|
|
23064
23067
|
label: "\u7A0E\u6536\u5206\u7C7B\u7F16\u7801"
|
|
23065
|
-
},
|
|
23068
|
+
}, React.createElement(Input, {
|
|
23066
23069
|
onChange: function onChange(e) {
|
|
23067
23070
|
setFilter(_objectSpread2(_objectSpread2({}, filter), {}, {
|
|
23068
23071
|
taxCategoryCode: e.target.value
|
|
23069
23072
|
}));
|
|
23070
23073
|
}
|
|
23071
|
-
}))), list && list.length > 0 ?
|
|
23074
|
+
}))), list && list.length > 0 ? React.createElement(Tree, {
|
|
23072
23075
|
defaultExpandAll: true,
|
|
23073
23076
|
selectedKeys: [],
|
|
23074
23077
|
onSelect: onSelect
|
|
23075
|
-
}, createTreeNode()) :
|
|
23078
|
+
}, createTreeNode()) : React.createElement("span", {
|
|
23076
23079
|
style: {
|
|
23077
23080
|
color: '#00000073'
|
|
23078
23081
|
}
|
|
@@ -23289,11 +23292,11 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23289
23292
|
return data;
|
|
23290
23293
|
};
|
|
23291
23294
|
|
|
23292
|
-
return
|
|
23295
|
+
return React.createElement(React.Fragment, null, React.createElement(Input, {
|
|
23293
23296
|
readOnly: true,
|
|
23294
23297
|
onClick: onClick,
|
|
23295
23298
|
value: props.value
|
|
23296
|
-
}),
|
|
23299
|
+
}), React.createElement(TaxClassificationModal, {
|
|
23297
23300
|
list: list,
|
|
23298
23301
|
open: open,
|
|
23299
23302
|
onSelect: onSelect,
|
|
@@ -23409,14 +23412,14 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23409
23412
|
React.useEffect(function () {
|
|
23410
23413
|
if (controller.getTaxCategoryCodeList) controller.getTaxCategoryCodeList();
|
|
23411
23414
|
}, [controller]);
|
|
23412
|
-
return
|
|
23415
|
+
return React.createElement(SchemaForm, {
|
|
23413
23416
|
actions: actions,
|
|
23414
23417
|
previewPlaceholder: " ",
|
|
23415
23418
|
components: _objectSpread2(_objectSpread2({}, components), {}, {
|
|
23416
23419
|
showSearch: !!controller.state.goodsListState.endowCode.onLoadTaxClassificationCode ? ShowSearch3 : ShowSearch
|
|
23417
23420
|
}),
|
|
23418
23421
|
effects: effects
|
|
23419
|
-
},
|
|
23422
|
+
}, React.createElement(FormButtonGroup, null, React.createElement(SchemaMarkupField, {
|
|
23420
23423
|
name: "taxClassificationCode",
|
|
23421
23424
|
type: "showSearch",
|
|
23422
23425
|
title: "\u7A0E\u6536\u5206\u7C7B\u7F16\u7801",
|
|
@@ -23426,13 +23429,13 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23426
23429
|
message: '请选择税收分类编码',
|
|
23427
23430
|
required: true
|
|
23428
23431
|
}]
|
|
23429
|
-
}),
|
|
23432
|
+
}), React.createElement(SchemaMarkupField, {
|
|
23430
23433
|
name: "shorthand",
|
|
23431
23434
|
type: "string",
|
|
23432
23435
|
readOnly: true,
|
|
23433
23436
|
default: defaultValue === null || defaultValue === void 0 ? void 0 : defaultValue.shorthand,
|
|
23434
23437
|
title: "\u5546\u54C1\u548C\u670D\u52A1\u5206\u7C7B\u7B80\u79F0"
|
|
23435
|
-
}),
|
|
23438
|
+
}), React.createElement(SchemaMarkupField, {
|
|
23436
23439
|
name: "taxRate",
|
|
23437
23440
|
type: "string",
|
|
23438
23441
|
title: "\u7A0E\u7387",
|
|
@@ -23445,7 +23448,7 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23445
23448
|
message: '请选择税率',
|
|
23446
23449
|
required: true
|
|
23447
23450
|
}]
|
|
23448
|
-
}), taxRate === 0 && isTaxFreeTypeNeeded &&
|
|
23451
|
+
}), taxRate === 0 && isTaxFreeTypeNeeded && React.createElement(SchemaMarkupField, {
|
|
23449
23452
|
name: "taxFreeType",
|
|
23450
23453
|
type: "string",
|
|
23451
23454
|
title: "\u514D\u7A0E\u7C7B\u578B",
|
|
@@ -23458,7 +23461,7 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23458
23461
|
message: '请选择免税类型',
|
|
23459
23462
|
required: true
|
|
23460
23463
|
}]
|
|
23461
|
-
}),
|
|
23464
|
+
}), React.createElement(SchemaMarkupField, {
|
|
23462
23465
|
name: "favouredPolicyMark",
|
|
23463
23466
|
type: "number",
|
|
23464
23467
|
title: "\u662F\u5426\u4EAB\u53D7\u4F18\u60E0\u653F\u7B56",
|
|
@@ -23477,7 +23480,7 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23477
23480
|
message: '请选择是否享受优惠政策',
|
|
23478
23481
|
required: true
|
|
23479
23482
|
}]
|
|
23480
|
-
}), favouredPolicyMark === 1 &&
|
|
23483
|
+
}), favouredPolicyMark === 1 && React.createElement(SchemaMarkupField, {
|
|
23481
23484
|
name: "favouredPolicyName",
|
|
23482
23485
|
type: "string",
|
|
23483
23486
|
title: "\u4F18\u60E0\u653F\u7B56\u7C7B\u578B",
|
|
@@ -23490,14 +23493,14 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23490
23493
|
message: '请选择是否享受优惠政策',
|
|
23491
23494
|
required: true
|
|
23492
23495
|
}]
|
|
23493
|
-
})),
|
|
23496
|
+
})), React.createElement("span", {
|
|
23494
23497
|
className: "kts-invoice-operate-goods-endow-code-button-list"
|
|
23495
|
-
},
|
|
23498
|
+
}, React.createElement(Button, {
|
|
23496
23499
|
onClick: function onClick() {
|
|
23497
23500
|
actions.submit(onSubmit);
|
|
23498
23501
|
},
|
|
23499
23502
|
type: "primary"
|
|
23500
|
-
}, "\u786E\u5B9A"),
|
|
23503
|
+
}, "\u786E\u5B9A"), React.createElement(Button, {
|
|
23501
23504
|
onClick: function onClick() {
|
|
23502
23505
|
controller.pipeline( /*#__PURE__*/function () {
|
|
23503
23506
|
var _ref20 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee20(s) {
|
|
@@ -23657,53 +23660,53 @@ function AddComparisonDrawer() {
|
|
|
23657
23660
|
}));
|
|
23658
23661
|
}
|
|
23659
23662
|
}, [good]);
|
|
23660
|
-
return
|
|
23663
|
+
return React.createElement(Drawer$1, {
|
|
23661
23664
|
width: 500,
|
|
23662
23665
|
onClose: onClose,
|
|
23663
23666
|
placement: "right",
|
|
23664
23667
|
title: "\u5546\u54C1\u6620\u5C04",
|
|
23665
23668
|
visible: !!good,
|
|
23666
|
-
footer:
|
|
23669
|
+
footer: React.createElement("div", {
|
|
23667
23670
|
style: {
|
|
23668
23671
|
display: 'flex',
|
|
23669
23672
|
justifyContent: 'flex-end',
|
|
23670
23673
|
gap: 10
|
|
23671
23674
|
}
|
|
23672
|
-
},
|
|
23675
|
+
}, React.createElement(Button, {
|
|
23673
23676
|
type: "primary",
|
|
23674
23677
|
onClick: onSubmit
|
|
23675
|
-
}, "\u63D0\u4EA4"),
|
|
23678
|
+
}, "\u63D0\u4EA4"), React.createElement(Button, {
|
|
23676
23679
|
onClick: onClose
|
|
23677
23680
|
}, "\u53D6\u6D88"))
|
|
23678
|
-
}, !!good &&
|
|
23681
|
+
}, !!good && React.createElement(Form$1, {
|
|
23679
23682
|
layout: "vertical",
|
|
23680
23683
|
style: {
|
|
23681
23684
|
flex: 1
|
|
23682
23685
|
},
|
|
23683
23686
|
form: form
|
|
23684
|
-
},
|
|
23687
|
+
}, React.createElement(Row$1, {
|
|
23685
23688
|
gutter: [8, 8]
|
|
23686
|
-
},
|
|
23689
|
+
}, React.createElement(Col$1, {
|
|
23687
23690
|
span: 12
|
|
23688
|
-
},
|
|
23691
|
+
}, React.createElement(Form$1.Item, {
|
|
23689
23692
|
name: "itemNameSelf",
|
|
23690
23693
|
label: "\u6211\u65B9\u5546\u54C1\u540D\u79F0"
|
|
23691
|
-
},
|
|
23694
|
+
}, React.createElement(Input, null))), React.createElement(Col$1, {
|
|
23692
23695
|
span: 12
|
|
23693
|
-
},
|
|
23696
|
+
}, React.createElement(Form$1.Item, {
|
|
23694
23697
|
name: "itemName",
|
|
23695
23698
|
label: "\u5BF9\u65B9\u5546\u54C1\u540D\u79F0"
|
|
23696
|
-
},
|
|
23699
|
+
}, React.createElement(Input, null))), React.createElement(Col$1, {
|
|
23697
23700
|
span: 12
|
|
23698
|
-
},
|
|
23701
|
+
}, React.createElement(Form$1.Item, {
|
|
23699
23702
|
name: 'itemModelNameSelf',
|
|
23700
23703
|
label: "\u6211\u65B9\u89C4\u683C\u578B\u53F7"
|
|
23701
|
-
},
|
|
23704
|
+
}, React.createElement(Input, null))), React.createElement(Col$1, {
|
|
23702
23705
|
span: 12
|
|
23703
|
-
},
|
|
23706
|
+
}, React.createElement(Form$1.Item, {
|
|
23704
23707
|
name: "itemModelName",
|
|
23705
23708
|
label: "\u5BF9\u65B9\u89C4\u683C\u578B\u53F7"
|
|
23706
|
-
},
|
|
23709
|
+
}, React.createElement(Input, null))))));
|
|
23707
23710
|
} // function validateFields(form: WrappedFormUtils<any>) {
|
|
23708
23711
|
// return new Promise<{ err: any, values: any }>(resolve => {
|
|
23709
23712
|
// form.validateFields((err, values) => {
|
|
@@ -23714,7 +23717,7 @@ function AddComparisonDrawer() {
|
|
|
23714
23717
|
|
|
23715
23718
|
/** 发票组件的上下文 */
|
|
23716
23719
|
|
|
23717
|
-
var InvoiceContext =
|
|
23720
|
+
var InvoiceContext = React.createContext(undefined);
|
|
23718
23721
|
|
|
23719
23722
|
var Invoice = /*#__PURE__*/function (_React$PureComponent) {
|
|
23720
23723
|
_inherits(Invoice, _React$PureComponent);
|
|
@@ -23757,9 +23760,9 @@ var Invoice = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
23757
23760
|
/** 获取控制器钩子 */
|
|
23758
23761
|
function render() {
|
|
23759
23762
|
if (this.props.invoiceType === 'digtal') {
|
|
23760
|
-
return
|
|
23763
|
+
return React.createElement(Digtal, _objectSpread2({}, this.props));
|
|
23761
23764
|
} else {
|
|
23762
|
-
return
|
|
23765
|
+
return React.createElement(Main$4, _objectSpread2({}, this.props));
|
|
23763
23766
|
}
|
|
23764
23767
|
}
|
|
23765
23768
|
}]);
|
|
@@ -23800,10 +23803,10 @@ var Main$4 = function Main(props) {
|
|
|
23800
23803
|
React.useEffect(function () {
|
|
23801
23804
|
setKey(key + 1);
|
|
23802
23805
|
}, [controller]);
|
|
23803
|
-
return
|
|
23806
|
+
return React.createElement(InvoiceContext.Provider, {
|
|
23804
23807
|
key: key,
|
|
23805
23808
|
value: controller
|
|
23806
|
-
},
|
|
23809
|
+
}, React.createElement("div", {
|
|
23807
23810
|
className: "kts-invoice-operate",
|
|
23808
23811
|
ref: controller.pipeline( /*#__PURE__*/function () {
|
|
23809
23812
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(s, e) {
|
|
@@ -23825,17 +23828,17 @@ var Main$4 = function Main(props) {
|
|
|
23825
23828
|
return _ref.apply(this, arguments);
|
|
23826
23829
|
};
|
|
23827
23830
|
}())
|
|
23828
|
-
}, props.invoiceHeader ||
|
|
23831
|
+
}, props.invoiceHeader || React.createElement(InvoiceHeader, null)
|
|
23829
23832
|
/** 发票头 */
|
|
23830
|
-
, props.buyer ||
|
|
23833
|
+
, props.buyer || React.createElement(Buyer$1, null)
|
|
23831
23834
|
/** 购买方 */
|
|
23832
|
-
, props.goodsList ||
|
|
23835
|
+
, props.goodsList || React.createElement(GoodsList, null)
|
|
23833
23836
|
/** 货物列表 */
|
|
23834
|
-
, props.seller ||
|
|
23837
|
+
, props.seller || React.createElement(Buyer, null)
|
|
23835
23838
|
/** 销售方 */
|
|
23836
|
-
, props.sign ||
|
|
23839
|
+
, props.sign || React.createElement(Sign, null)
|
|
23837
23840
|
/** 落款 */
|
|
23838
|
-
, props.footExpand),
|
|
23841
|
+
, props.footExpand), React.createElement(ImportBuyerDrawer, null), React.createElement(ImportGoodsDrawer, null), React.createElement(EndowCodeDrawer, null), React.createElement(AddComparisonDrawer, null));
|
|
23839
23842
|
};
|
|
23840
23843
|
/** 数电 */
|
|
23841
23844
|
|
|
@@ -23854,10 +23857,10 @@ var Digtal = function Digtal(props) {
|
|
|
23854
23857
|
React.useEffect(function () {
|
|
23855
23858
|
setKey(key + 1);
|
|
23856
23859
|
}, [controller]);
|
|
23857
|
-
return
|
|
23860
|
+
return React.createElement(InvoiceContext.Provider, {
|
|
23858
23861
|
key: key,
|
|
23859
23862
|
value: controller
|
|
23860
|
-
},
|
|
23863
|
+
}, React.createElement("div", {
|
|
23861
23864
|
className: "kts-invoice-operate-digtal",
|
|
23862
23865
|
ref: controller.pipeline( /*#__PURE__*/function () {
|
|
23863
23866
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(s, e) {
|
|
@@ -23879,17 +23882,17 @@ var Digtal = function Digtal(props) {
|
|
|
23879
23882
|
return _ref2.apply(this, arguments);
|
|
23880
23883
|
};
|
|
23881
23884
|
}())
|
|
23882
|
-
}, props.invoiceHeader ||
|
|
23885
|
+
}, props.invoiceHeader || React.createElement(InvoiceHeaderDigtal, null)
|
|
23883
23886
|
/** 发票头 */
|
|
23884
|
-
,
|
|
23887
|
+
, React.createElement("div", {
|
|
23885
23888
|
className: 'kts-invoice-operate-digtal-cont'
|
|
23886
|
-
}, props.stakeholder ||
|
|
23889
|
+
}, props.stakeholder || React.createElement(Stakeholder$1, null)
|
|
23887
23890
|
/** 干系人 */
|
|
23888
|
-
, props.goodsList ||
|
|
23891
|
+
, props.goodsList || React.createElement(GoodsList$1
|
|
23889
23892
|
/** 货物列表 */
|
|
23890
|
-
, null)), props.sign ||
|
|
23893
|
+
, null)), props.sign || React.createElement(SignDigtal, null)
|
|
23891
23894
|
/** 落款 */
|
|
23892
|
-
),
|
|
23895
|
+
), React.createElement(ImportGoodsDrawer, null), React.createElement(EndowCodeDrawer, null));
|
|
23893
23896
|
};
|
|
23894
23897
|
|
|
23895
23898
|
function TaxClassificationModal(props) {
|
|
@@ -23930,26 +23933,26 @@ function TaxClassificationModal(props) {
|
|
|
23930
23933
|
}, 500);
|
|
23931
23934
|
}
|
|
23932
23935
|
}, [form, props.open]);
|
|
23933
|
-
return
|
|
23936
|
+
return React.createElement(Drawer$1, {
|
|
23934
23937
|
title: "\u5546\u54C1\u548C\u670D\u52A1\u7A0E\u6536\u5206\u7C7B\u7F16\u7801",
|
|
23935
23938
|
placement: "right",
|
|
23936
23939
|
open: props.open,
|
|
23937
23940
|
width: 503,
|
|
23938
23941
|
onClose: props.onCancel
|
|
23939
|
-
},
|
|
23942
|
+
}, React.createElement(Form$1, {
|
|
23940
23943
|
form: form
|
|
23941
|
-
},
|
|
23944
|
+
}, React.createElement(Form$1.Item, {
|
|
23942
23945
|
name: 'search'
|
|
23943
|
-
},
|
|
23946
|
+
}, React.createElement(Input$1, {
|
|
23944
23947
|
placeholder: "\u8BF7\u8F93\u5165\u7A0E\u6536\u5206\u7C7B\u7F16\u7801\u3001\u7A0E\u6536\u5206\u7C7B\u540D\u79F0\u8FDB\u884C\u68C0\u7D22",
|
|
23945
23948
|
onChange: searchTax
|
|
23946
|
-
})),
|
|
23949
|
+
})), React.createElement(Form$1.Item, {
|
|
23947
23950
|
name: 'tree'
|
|
23948
|
-
},
|
|
23951
|
+
}, React.createElement(Tree$1, {
|
|
23949
23952
|
onSelect: props.onSelect,
|
|
23950
23953
|
loadData: props.onLoad,
|
|
23951
23954
|
treeData: props.list,
|
|
23952
|
-
switcherIcon:
|
|
23955
|
+
switcherIcon: React.createElement(Icon$1, {
|
|
23953
23956
|
type: "down"
|
|
23954
23957
|
})
|
|
23955
23958
|
}))));
|