kts-component-invoice-operate 3.2.82 → 3.2.83
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 +8 -8
- package/dist/index.esm.js +609 -561
- package/dist/index.js +609 -561
- 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 +470 -470
- 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 +94 -94
- package/src/Invoice/InvoiceController/InvoiceControllerState/AutoComplete/index.ts +17 -17
- 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 +85 -85
- 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/mergeDetails.ts +165 -165
- package/src/Invoice/InvoiceController/fns/mergeDiscount.ts +28 -28
- 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 +77 -77
- 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 +1071 -1071
- 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 +516 -1078
- 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 +66 -66
- 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 +165 -165
- package/src/Invoice/tools/calculate/index.ts +112 -112
- 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 +686 -664
- 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 +75 -75
- 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 +76 -76
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/RowMenu/hook/useDelItem/index.tsx +45 -45
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/RowMenu/hook/useEndowCode/index.tsx +38 -38
- 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 +111 -111
- 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 +110 -110
- package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/hooks/useSalesGifts/index.tsx +75 -75
- 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 +109 -109
- 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 +201 -201
- 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 -648
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/svg/plus.svg +11 -11
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/Drag/index.less +20 -20
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/Drag/index.tsx +205 -205
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/ItemNameInput/index.less +9 -9
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/ItemNameInput/index.tsx +50 -50
- 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 +75 -75
- 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 +67 -67
- 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
|
@@ -9462,7 +9462,7 @@ var InvoiceHeader = decorator(Form.create())(function (props) {
|
|
|
9462
9462
|
render: function render(form) {
|
|
9463
9463
|
return form.getFieldDecorator('code', {
|
|
9464
9464
|
initialValue: props.defaultCode
|
|
9465
|
-
})(
|
|
9465
|
+
})(React.createElement(FormSpanString, null));
|
|
9466
9466
|
}
|
|
9467
9467
|
});
|
|
9468
9468
|
}
|
|
@@ -9475,7 +9475,7 @@ var InvoiceHeader = decorator(Form.create())(function (props) {
|
|
|
9475
9475
|
render: function render(form) {
|
|
9476
9476
|
return form.getFieldDecorator('no', {
|
|
9477
9477
|
initialValue: props.defaultNo
|
|
9478
|
-
})(
|
|
9478
|
+
})(React.createElement(FormSpanString, null));
|
|
9479
9479
|
}
|
|
9480
9480
|
});
|
|
9481
9481
|
}
|
|
@@ -9486,7 +9486,7 @@ var InvoiceHeader = decorator(Form.create())(function (props) {
|
|
|
9486
9486
|
render: function render(form) {
|
|
9487
9487
|
return form.getFieldDecorator('invoicingDate', {
|
|
9488
9488
|
initialValue: props.defaultInvoicingDate
|
|
9489
|
-
})(
|
|
9489
|
+
})(React.createElement(FormSpanString, null));
|
|
9490
9490
|
}
|
|
9491
9491
|
});
|
|
9492
9492
|
}
|
|
@@ -9497,7 +9497,7 @@ var InvoiceHeader = decorator(Form.create())(function (props) {
|
|
|
9497
9497
|
render: function render(form) {
|
|
9498
9498
|
return form.getFieldDecorator('defaultValidationCode', {
|
|
9499
9499
|
initialValue: props.defaultValidationCode
|
|
9500
|
-
})(
|
|
9500
|
+
})(React.createElement(FormSpanString, null));
|
|
9501
9501
|
}
|
|
9502
9502
|
});
|
|
9503
9503
|
}
|
|
@@ -9517,21 +9517,21 @@ var InvoiceHeader = decorator(Form.create())(function (props) {
|
|
|
9517
9517
|
React.useEffect(function () {
|
|
9518
9518
|
setTypeIndex(props.typeOptionIndex || 0);
|
|
9519
9519
|
}, [props.typeOption]);
|
|
9520
|
-
return
|
|
9520
|
+
return React.createElement("div", {
|
|
9521
9521
|
className: "kts-invoice-operate-invoice-header"
|
|
9522
|
-
},
|
|
9522
|
+
}, React.createElement("div", {
|
|
9523
9523
|
className: "invoice-header-title"
|
|
9524
|
-
}, title),
|
|
9524
|
+
}, title), React.createElement("div", {
|
|
9525
9525
|
className: "invoice-header-no"
|
|
9526
|
-
}, isInvoiceNo ?
|
|
9526
|
+
}, isInvoiceNo ? React.createElement("div", null, React.createElement("label", null, "\u53D1\u7968\u5355\u636E\u7F16\u53F7 :"), getFieldDecorator('id', {
|
|
9527
9527
|
initialValue: props.defaultId
|
|
9528
|
-
})(
|
|
9528
|
+
})(React.createElement(Input, {
|
|
9529
9529
|
disabled: readOnlyInvoiceNo,
|
|
9530
9530
|
style: {
|
|
9531
9531
|
width: 230
|
|
9532
9532
|
},
|
|
9533
9533
|
size: "small",
|
|
9534
|
-
suffix: controller.updateInvoiceNo &&
|
|
9534
|
+
suffix: controller.updateInvoiceNo && React.createElement(Icon$1, {
|
|
9535
9535
|
style: {
|
|
9536
9536
|
cursor: 'pointer'
|
|
9537
9537
|
},
|
|
@@ -9575,15 +9575,15 @@ var InvoiceHeader = decorator(Form.create())(function (props) {
|
|
|
9575
9575
|
return onClick;
|
|
9576
9576
|
}()
|
|
9577
9577
|
})
|
|
9578
|
-
}))) :
|
|
9578
|
+
}))) : React.createElement("div", {
|
|
9579
9579
|
style: {
|
|
9580
9580
|
height: 20
|
|
9581
9581
|
}
|
|
9582
|
-
}), tag &&
|
|
9582
|
+
}), tag && React.createElement(Tag$1, null, tag), React.createElement("div", {
|
|
9583
9583
|
className: "invoice-header-type"
|
|
9584
9584
|
}, props.typeOption ? getFieldDecorator('type', {
|
|
9585
9585
|
initialValue: typeIndex
|
|
9586
|
-
})(
|
|
9586
|
+
})(React.createElement(Select, {
|
|
9587
9587
|
size: "small",
|
|
9588
9588
|
style: {
|
|
9589
9589
|
width: 230
|
|
@@ -9592,20 +9592,20 @@ var InvoiceHeader = decorator(Form.create())(function (props) {
|
|
|
9592
9592
|
setTypeIndex(e);
|
|
9593
9593
|
}
|
|
9594
9594
|
}, props.typeOption.map(function (e, i) {
|
|
9595
|
-
return
|
|
9595
|
+
return React.createElement(Select.Option, {
|
|
9596
9596
|
key: i,
|
|
9597
9597
|
value: i
|
|
9598
9598
|
}, e.title);
|
|
9599
|
-
}))) : props.renderExpand && props.renderExpand(props.form))), props.typeOption &&
|
|
9599
|
+
}))) : props.renderExpand && props.renderExpand(props.form))), props.typeOption && React.createElement("div", {
|
|
9600
9600
|
style: {
|
|
9601
9601
|
marginTop: 10
|
|
9602
9602
|
}
|
|
9603
|
-
}, props.renderExpand && props.renderExpand(props.form)),
|
|
9603
|
+
}, props.renderExpand && props.renderExpand(props.form)), React.createElement("div", {
|
|
9604
9604
|
className: "invoice-header-property"
|
|
9605
|
-
}, _toConsumableArray(props.fieldExpand || []).map(function (e) {}),
|
|
9605
|
+
}, _toConsumableArray(props.fieldExpand || []).map(function (e) {}), React.createElement("ul", {
|
|
9606
9606
|
className: 'invoice-header-property-fieldExpand'
|
|
9607
9607
|
}, fieldExpand.map(function (e) {
|
|
9608
|
-
return
|
|
9608
|
+
return React.createElement("li", null, React.createElement("label", null, e.label), e.render(form));
|
|
9609
9609
|
}))));
|
|
9610
9610
|
});
|
|
9611
9611
|
|
|
@@ -9624,7 +9624,7 @@ var FormSpanString = /*#__PURE__*/function (_React$Component) {
|
|
|
9624
9624
|
key: "render",
|
|
9625
9625
|
value: function render() {
|
|
9626
9626
|
// return <span>{this.props.value}</span>;
|
|
9627
|
-
return
|
|
9627
|
+
return React.createElement(Input, {
|
|
9628
9628
|
size: "small",
|
|
9629
9629
|
disabled: true,
|
|
9630
9630
|
value: this.props.value
|
|
@@ -9735,12 +9735,12 @@ function TableVirtual (props) {
|
|
|
9735
9735
|
if (!cont) return;
|
|
9736
9736
|
cont.scrollTop = 0;
|
|
9737
9737
|
}, [(_props$dataSource2 = props.dataSource) === null || _props$dataSource2 === void 0 ? void 0 : _props$dataSource2.length]);
|
|
9738
|
-
return
|
|
9738
|
+
return React.createElement("span", {
|
|
9739
9739
|
className: "kts-invoice-operate-goods-table-virtual",
|
|
9740
9740
|
ref: function ref(e) {
|
|
9741
9741
|
setSelf(e);
|
|
9742
9742
|
}
|
|
9743
|
-
},
|
|
9743
|
+
}, React.createElement(TableManual, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
9744
9744
|
dataSource: dataSource,
|
|
9745
9745
|
// 新版本Table会有输入框无法连续输入的问题,先兼容老版本
|
|
9746
9746
|
tableComponent: Table
|
|
@@ -9826,59 +9826,59 @@ var Statistics = (function () {
|
|
|
9826
9826
|
});
|
|
9827
9827
|
return sum.done().toNumber();
|
|
9828
9828
|
}, []);
|
|
9829
|
-
return
|
|
9829
|
+
return React.createElement("div", {
|
|
9830
9830
|
className: "kts-invoice-operate-goods-list-statistics"
|
|
9831
|
-
},
|
|
9831
|
+
}, React.createElement("div", {
|
|
9832
9832
|
className: "kts-invoice-operate-goods-list-statistics-row"
|
|
9833
|
-
},
|
|
9833
|
+
}, React.createElement("div", {
|
|
9834
9834
|
style: {
|
|
9835
9835
|
width: 45.92
|
|
9836
9836
|
}
|
|
9837
|
-
}),
|
|
9837
|
+
}), React.createElement("div", {
|
|
9838
9838
|
style: {
|
|
9839
9839
|
flex: 1
|
|
9840
9840
|
}
|
|
9841
|
-
},
|
|
9841
|
+
}, React.createElement("label", null, "\u5408\u8BA1")), React.createElement("div", {
|
|
9842
9842
|
style: {
|
|
9843
9843
|
width: 119,
|
|
9844
9844
|
textAlign: 'right',
|
|
9845
9845
|
border: 'none'
|
|
9846
9846
|
}
|
|
9847
|
-
},
|
|
9847
|
+
}, React.createElement("label", null, parseFloat(isTaxIncluded ? lineAmountIncludeTax : lineAmountExcludeTax).toFixed(2))), React.createElement("div", {
|
|
9848
9848
|
style: {
|
|
9849
9849
|
width: 70,
|
|
9850
9850
|
border: 'none'
|
|
9851
9851
|
}
|
|
9852
|
-
}),
|
|
9852
|
+
}), React.createElement("div", {
|
|
9853
9853
|
style: {
|
|
9854
9854
|
width: 119,
|
|
9855
9855
|
textAlign: 'right',
|
|
9856
9856
|
border: 'none'
|
|
9857
9857
|
}
|
|
9858
|
-
},
|
|
9858
|
+
}, React.createElement("label", null, parseFloat(taxAmount).toFixed(2))), React.createElement("div", {
|
|
9859
9859
|
style: {
|
|
9860
9860
|
width: 111,
|
|
9861
9861
|
border: 'none'
|
|
9862
9862
|
}
|
|
9863
|
-
})),
|
|
9863
|
+
})), React.createElement("div", {
|
|
9864
9864
|
className: "kts-invoice-operate-goods-list-statistics-row"
|
|
9865
|
-
},
|
|
9865
|
+
}, React.createElement("div", {
|
|
9866
9866
|
style: {
|
|
9867
9867
|
width: 45.92
|
|
9868
9868
|
}
|
|
9869
|
-
}),
|
|
9869
|
+
}), React.createElement("div", {
|
|
9870
9870
|
style: {
|
|
9871
9871
|
flex: 5,
|
|
9872
9872
|
border: 'none'
|
|
9873
9873
|
}
|
|
9874
|
-
},
|
|
9874
|
+
}, React.createElement("label", null, "\u4EF7\u7A0E\u5408\u8BA1\uFF08\u5927\u5199\uFF09"), React.createElement("label", null, nzhcn.toMoney(lineAmountIncludeTax, {
|
|
9875
9875
|
outSymbol: false
|
|
9876
|
-
}))),
|
|
9876
|
+
}))), React.createElement("div", {
|
|
9877
9877
|
style: {
|
|
9878
9878
|
flex: 5,
|
|
9879
9879
|
border: 'none'
|
|
9880
9880
|
}
|
|
9881
|
-
},
|
|
9881
|
+
}, React.createElement("label", null, "\uFF08\u5C0F\u5199\uFF09 ", parseFloat(lineAmountIncludeTax).toFixed(2)))));
|
|
9882
9882
|
});
|
|
9883
9883
|
|
|
9884
9884
|
var AddRowButton = (function () {
|
|
@@ -9933,10 +9933,10 @@ var AddRowButton = (function () {
|
|
|
9933
9933
|
}
|
|
9934
9934
|
}, _callee);
|
|
9935
9935
|
})), [controller, rootElement]);
|
|
9936
|
-
if (isAddRow === false) return
|
|
9937
|
-
if (model === 'prefab') return
|
|
9938
|
-
if (model === 'readOnly') return
|
|
9939
|
-
return
|
|
9936
|
+
if (isAddRow === false) return React.createElement(React.Fragment, null);
|
|
9937
|
+
if (model === 'prefab') return React.createElement(React.Fragment, null);
|
|
9938
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
9939
|
+
return React.createElement(Button, {
|
|
9940
9940
|
onClick: onClick,
|
|
9941
9941
|
disabled: disabled
|
|
9942
9942
|
}, "\u6DFB\u52A0\u884C");
|
|
@@ -10087,11 +10087,11 @@ var TaxIncludedSwitch = (function () {
|
|
|
10087
10087
|
};
|
|
10088
10088
|
}())();
|
|
10089
10089
|
}, []);
|
|
10090
|
-
return
|
|
10090
|
+
return React.createElement("span", null, React.createElement("label", {
|
|
10091
10091
|
style: {
|
|
10092
10092
|
marginRight: 2
|
|
10093
10093
|
}
|
|
10094
|
-
}, "\u542B\u7A0E:"),
|
|
10094
|
+
}, "\u542B\u7A0E:"), React.createElement(Switch, {
|
|
10095
10095
|
disabled: isSwitchTax === false,
|
|
10096
10096
|
checked: isTaxIncluded,
|
|
10097
10097
|
defaultChecked: true,
|
|
@@ -10129,19 +10129,19 @@ var DescribeSwitch = (function () {
|
|
|
10129
10129
|
};
|
|
10130
10130
|
}());
|
|
10131
10131
|
}, []);
|
|
10132
|
-
if (!productComparison.onComply) return
|
|
10133
|
-
return
|
|
10132
|
+
if (!productComparison.onComply) return React.createElement(React.Fragment, null);
|
|
10133
|
+
return React.createElement("span", null, React.createElement("label", {
|
|
10134
10134
|
style: {
|
|
10135
10135
|
marginRight: 2
|
|
10136
10136
|
}
|
|
10137
|
-
},
|
|
10137
|
+
}, React.createElement(Tooltip, {
|
|
10138
10138
|
title: "\u84DD\u8272\u4EE3\u8868\u6211\u65B9\u5546\u54C1\u63CF\u8FF0\uFF0C\u9ED1\u8272\u4EE3\u8868\u5BF9\u65B9\u7684\u5546\u54C1\u63CF\u8FF0\u3002"
|
|
10139
|
-
},
|
|
10139
|
+
}, React.createElement(Icon$1, {
|
|
10140
10140
|
style: {
|
|
10141
10141
|
marginRight: 3
|
|
10142
10142
|
},
|
|
10143
10143
|
type: "info-circle"
|
|
10144
|
-
})), "\u4F7F\u7528\u54EA\u65B9\u5546\u54C1\u63CF\u8FF0:"),
|
|
10144
|
+
})), "\u4F7F\u7528\u54EA\u65B9\u5546\u54C1\u63CF\u8FF0:"), React.createElement(Switch$1, {
|
|
10145
10145
|
checked: isMyShow,
|
|
10146
10146
|
checkedChildren: "\u6211\u65B9",
|
|
10147
10147
|
unCheckedChildren: "\u5BF9\u65B9",
|
|
@@ -10241,13 +10241,13 @@ function Search() {
|
|
|
10241
10241
|
};
|
|
10242
10242
|
}());
|
|
10243
10243
|
}, [value, controller]);
|
|
10244
|
-
return
|
|
10244
|
+
return React.createElement(Input, {
|
|
10245
10245
|
size: "small",
|
|
10246
10246
|
readOnly: readOnly,
|
|
10247
10247
|
value: value,
|
|
10248
10248
|
className: "kts-invoice-operate-goods-list-search",
|
|
10249
10249
|
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"),
|
|
10250
|
-
prefix:
|
|
10250
|
+
prefix: React.createElement(Icon$1, {
|
|
10251
10251
|
component: SvgMagnifier,
|
|
10252
10252
|
style: {
|
|
10253
10253
|
color: "#b8b8b8"
|
|
@@ -10299,13 +10299,13 @@ function TableRow(props) {
|
|
|
10299
10299
|
return undefined;
|
|
10300
10300
|
}
|
|
10301
10301
|
}, [good, goodsMap]);
|
|
10302
|
-
return rowKey === current && current ?
|
|
10302
|
+
return rowKey === current && current ? React.createElement("tr", {
|
|
10303
10303
|
style: {
|
|
10304
10304
|
height: 32.67,
|
|
10305
10305
|
borderBottom: '1px solid #E6E6E6',
|
|
10306
10306
|
position: 'relative'
|
|
10307
10307
|
}
|
|
10308
|
-
},
|
|
10308
|
+
}, React.createElement("div", {
|
|
10309
10309
|
style: {
|
|
10310
10310
|
height: 1,
|
|
10311
10311
|
width: '100%',
|
|
@@ -10313,7 +10313,7 @@ function TableRow(props) {
|
|
|
10313
10313
|
position: 'absolute',
|
|
10314
10314
|
bottom: 0
|
|
10315
10315
|
}
|
|
10316
|
-
})) :
|
|
10316
|
+
})) : React.createElement("tr", _objectSpread2(_objectSpread2({}, props), {}, {
|
|
10317
10317
|
className: classNames(props.className, discount, rowKey === container && current ? 'kts-invoice-operate-goods-list-itemName-drag-container-' + site : undefined)
|
|
10318
10318
|
}));
|
|
10319
10319
|
}
|
|
@@ -10587,7 +10587,7 @@ var RowMenu = (function (props) {
|
|
|
10587
10587
|
// addComparison && arr.push(addComparison); // 添加商品对照
|
|
10588
10588
|
|
|
10589
10589
|
if (!goodsMenuExpand || goodsMenuExpand.length === 0) return arr;
|
|
10590
|
-
arr.unshift(
|
|
10590
|
+
arr.unshift(React.createElement(Menu.Divider, {
|
|
10591
10591
|
key: "divider-1"
|
|
10592
10592
|
}));
|
|
10593
10593
|
|
|
@@ -10603,17 +10603,17 @@ var RowMenu = (function (props) {
|
|
|
10603
10603
|
return undefined;
|
|
10604
10604
|
}
|
|
10605
10605
|
|
|
10606
|
-
return
|
|
10607
|
-
return
|
|
10606
|
+
return React.createElement(Menu, null, itemList.slice(2).map(function (e) {
|
|
10607
|
+
return React.createElement(Menu.Item, {
|
|
10608
10608
|
key: e.key,
|
|
10609
10609
|
onClick: e.onClick
|
|
10610
|
-
},
|
|
10610
|
+
}, React.createElement(Text$1, {
|
|
10611
10611
|
strong: true
|
|
10612
10612
|
}, e.title));
|
|
10613
10613
|
}));
|
|
10614
10614
|
}, [itemList]);
|
|
10615
10615
|
var buttonList = React.useMemo(function () {
|
|
10616
|
-
return
|
|
10616
|
+
return React.createElement("div", {
|
|
10617
10617
|
style: {
|
|
10618
10618
|
flex: 1,
|
|
10619
10619
|
textAlign: 'left',
|
|
@@ -10621,7 +10621,7 @@ var RowMenu = (function (props) {
|
|
|
10621
10621
|
gap: 10
|
|
10622
10622
|
}
|
|
10623
10623
|
}, itemList.slice(0, 2).map(function (e) {
|
|
10624
|
-
return
|
|
10624
|
+
return React.createElement(Button, {
|
|
10625
10625
|
key: e.key,
|
|
10626
10626
|
type: 'link',
|
|
10627
10627
|
onClick: e.onClick,
|
|
@@ -10633,21 +10633,21 @@ var RowMenu = (function (props) {
|
|
|
10633
10633
|
}, [itemList]);
|
|
10634
10634
|
|
|
10635
10635
|
if (itemList.length === 0) {
|
|
10636
|
-
return
|
|
10636
|
+
return React.createElement(React.Fragment, null);
|
|
10637
10637
|
}
|
|
10638
10638
|
|
|
10639
|
-
return
|
|
10639
|
+
return React.createElement("span", {
|
|
10640
10640
|
style: {
|
|
10641
10641
|
padding: '0 0 0 10px',
|
|
10642
10642
|
display: 'flex'
|
|
10643
10643
|
}
|
|
10644
|
-
}, buttonList, overlay &&
|
|
10644
|
+
}, buttonList, overlay && React.createElement(Dropdown, {
|
|
10645
10645
|
overlay: overlay,
|
|
10646
10646
|
trigger: ['click']
|
|
10647
|
-
},
|
|
10647
|
+
}, React.createElement(Button, {
|
|
10648
10648
|
className: "kts-invoice-operate-goods-list-columns-row-menu ant-btn-icon-only",
|
|
10649
10649
|
type: "link"
|
|
10650
|
-
},
|
|
10650
|
+
}, React.createElement(Icon$1, {
|
|
10651
10651
|
component: SvgSpot
|
|
10652
10652
|
}))));
|
|
10653
10653
|
});
|
|
@@ -10661,9 +10661,9 @@ var TitleText = (function (props) {
|
|
|
10661
10661
|
return !!e.required;
|
|
10662
10662
|
})) || props.required;
|
|
10663
10663
|
}, [rules, props.required]);
|
|
10664
|
-
return
|
|
10664
|
+
return React.createElement(React.Fragment, null, required ? React.createElement(Text$2, {
|
|
10665
10665
|
type: "danger"
|
|
10666
|
-
}, "*") :
|
|
10666
|
+
}, "*") : React.createElement(React.Fragment, null), children);
|
|
10667
10667
|
});
|
|
10668
10668
|
|
|
10669
10669
|
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";
|
|
@@ -10770,14 +10770,14 @@ function ItemNameInput(props) {
|
|
|
10770
10770
|
return _ref2.apply(this, arguments);
|
|
10771
10771
|
};
|
|
10772
10772
|
}(), [options, controller]);
|
|
10773
|
-
return
|
|
10773
|
+
return React.createElement("div", {
|
|
10774
10774
|
className: 'kts-invoice-operate-goods-list-itemName-input'
|
|
10775
|
-
}, props.shorthand &&
|
|
10775
|
+
}, props.shorthand && React.createElement("span", {
|
|
10776
10776
|
style: {
|
|
10777
10777
|
alignSelf: 'center',
|
|
10778
10778
|
fontSize: 12
|
|
10779
10779
|
}
|
|
10780
|
-
}, "*", props.shorthand, "*"),
|
|
10780
|
+
}, "*", props.shorthand, "*"), React.createElement(AutoComplete$1, {
|
|
10781
10781
|
onSearch: onSearch,
|
|
10782
10782
|
value: props.value,
|
|
10783
10783
|
options: options.map(function (e) {
|
|
@@ -10786,7 +10786,7 @@ function ItemNameInput(props) {
|
|
|
10786
10786
|
};
|
|
10787
10787
|
}),
|
|
10788
10788
|
onSelect: onChangeAutoComplete
|
|
10789
|
-
},
|
|
10789
|
+
}, React.createElement(Input, {
|
|
10790
10790
|
style: {
|
|
10791
10791
|
height: '100%',
|
|
10792
10792
|
border: 'none'
|
|
@@ -10908,9 +10908,9 @@ function ItemCodeInput(props) {
|
|
|
10908
10908
|
return _ref2.apply(this, arguments);
|
|
10909
10909
|
};
|
|
10910
10910
|
}(), [options, controller]);
|
|
10911
|
-
return
|
|
10911
|
+
return React.createElement("div", {
|
|
10912
10912
|
className: 'kts-invoice-operate-goods-list-itemCode-input'
|
|
10913
|
-
},
|
|
10913
|
+
}, React.createElement(AutoComplete$1, {
|
|
10914
10914
|
onSearch: onSearch,
|
|
10915
10915
|
value: props.value,
|
|
10916
10916
|
options: options.map(function (e) {
|
|
@@ -10919,7 +10919,7 @@ function ItemCodeInput(props) {
|
|
|
10919
10919
|
};
|
|
10920
10920
|
}),
|
|
10921
10921
|
onSelect: onChangeAutoComplete
|
|
10922
|
-
},
|
|
10922
|
+
}, React.createElement(Input, {
|
|
10923
10923
|
style: {
|
|
10924
10924
|
height: '100%',
|
|
10925
10925
|
border: 'none'
|
|
@@ -12100,7 +12100,7 @@ function Drag$1(props) {
|
|
|
12100
12100
|
var currentGood = controller.state.goodsListState.goodsList.filter(function (e) {
|
|
12101
12101
|
return e.$index === record.$index;
|
|
12102
12102
|
})[0];
|
|
12103
|
-
mounting(
|
|
12103
|
+
mounting(React.createElement(DragDiv, _objectSpread2({}, currentGood)));
|
|
12104
12104
|
rowList.forEach(function (e) {
|
|
12105
12105
|
e.addEventListener('mousemove', onMousemove);
|
|
12106
12106
|
});
|
|
@@ -12261,7 +12261,7 @@ function Drag$1(props) {
|
|
|
12261
12261
|
|
|
12262
12262
|
|
|
12263
12263
|
function insert() {
|
|
12264
|
-
mounting(
|
|
12264
|
+
mounting(React.createElement(React.Fragment, null));
|
|
12265
12265
|
controller.run( /*#__PURE__*/function () {
|
|
12266
12266
|
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(s) {
|
|
12267
12267
|
var _s$goodsListState$dra, container, current, site, goodsList, goodsMap, _currentGood, currentIndex, moveGoods;
|
|
@@ -12340,7 +12340,7 @@ function Drag$1(props) {
|
|
|
12340
12340
|
}
|
|
12341
12341
|
}, [controller, record, disabled]);
|
|
12342
12342
|
var renderButton = React.useMemo(function () {
|
|
12343
|
-
return
|
|
12343
|
+
return React.createElement(Button, {
|
|
12344
12344
|
type: 'link',
|
|
12345
12345
|
style: {
|
|
12346
12346
|
padding: 0
|
|
@@ -12351,13 +12351,13 @@ function Drag$1(props) {
|
|
|
12351
12351
|
},
|
|
12352
12352
|
className: "kts-invoice-operate-goods-list-itemName-drag",
|
|
12353
12353
|
onMouseOver: controller.saveEditGood
|
|
12354
|
-
},
|
|
12354
|
+
}, React.createElement(Icon, {
|
|
12355
12355
|
component: SvgI001
|
|
12356
12356
|
}));
|
|
12357
12357
|
}, [onMouseDown, controller]);
|
|
12358
12358
|
|
|
12359
12359
|
if (disabled) {
|
|
12360
|
-
return
|
|
12360
|
+
return React.createElement(Popover, {
|
|
12361
12361
|
content: '您还有未编辑完成的商品',
|
|
12362
12362
|
trigger: 'focus'
|
|
12363
12363
|
}, renderButton);
|
|
@@ -12397,13 +12397,13 @@ function DragDiv(props) {
|
|
|
12397
12397
|
window.removeEventListener('mousemove', onMousemove);
|
|
12398
12398
|
};
|
|
12399
12399
|
});
|
|
12400
|
-
return
|
|
12400
|
+
return React.createElement("div", {
|
|
12401
12401
|
className: "kts-invoice-operate-goods-list-itemName-drag-div",
|
|
12402
12402
|
style: {
|
|
12403
12403
|
top: y,
|
|
12404
12404
|
left: x
|
|
12405
12405
|
}
|
|
12406
|
-
},
|
|
12406
|
+
}, React.createElement("span", null, props.itemName), React.createElement("span", null, props.itemModelName), React.createElement("span", null, props.unit));
|
|
12407
12407
|
}
|
|
12408
12408
|
|
|
12409
12409
|
var useColumns = (function (form) {
|
|
@@ -12524,7 +12524,7 @@ var useColumns = (function (form) {
|
|
|
12524
12524
|
width: 40,
|
|
12525
12525
|
align: 'center',
|
|
12526
12526
|
render: function render(_, record) {
|
|
12527
|
-
return
|
|
12527
|
+
return React.createElement(Drag$1, {
|
|
12528
12528
|
record: record
|
|
12529
12529
|
});
|
|
12530
12530
|
}
|
|
@@ -12534,7 +12534,7 @@ var useColumns = (function (form) {
|
|
|
12534
12534
|
dataIndex: 'serialNo',
|
|
12535
12535
|
width: 50,
|
|
12536
12536
|
render: function render(e) {
|
|
12537
|
-
return
|
|
12537
|
+
return React.createElement("span", {
|
|
12538
12538
|
style: {
|
|
12539
12539
|
padding: '0 10px'
|
|
12540
12540
|
}
|
|
@@ -12546,13 +12546,13 @@ var useColumns = (function (form) {
|
|
|
12546
12546
|
width: 119,
|
|
12547
12547
|
render: function render(_, record) {
|
|
12548
12548
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
12549
|
-
return
|
|
12549
|
+
return React.createElement(Form.Item, null, getFieldDecorator('itemCode', {
|
|
12550
12550
|
initialValue: editGood.itemCode,
|
|
12551
12551
|
rules: [].concat(_toConsumableArray(getReplenishRules('itemCode')), [{
|
|
12552
12552
|
pattern: /^.{1,19}$/,
|
|
12553
12553
|
message: '商品编码长度不能超过19位'
|
|
12554
12554
|
}])
|
|
12555
|
-
})(
|
|
12555
|
+
})(React.createElement(ItemCodeInput, {
|
|
12556
12556
|
onChange: function () {
|
|
12557
12557
|
var _onChange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
12558
12558
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
@@ -12578,7 +12578,7 @@ var useColumns = (function (form) {
|
|
|
12578
12578
|
}()
|
|
12579
12579
|
})));
|
|
12580
12580
|
} else {
|
|
12581
|
-
return
|
|
12581
|
+
return React.createElement("span", {
|
|
12582
12582
|
style: {
|
|
12583
12583
|
padding: '0 10px'
|
|
12584
12584
|
}
|
|
@@ -12586,13 +12586,13 @@ var useColumns = (function (form) {
|
|
|
12586
12586
|
}
|
|
12587
12587
|
}
|
|
12588
12588
|
}, {
|
|
12589
|
-
title:
|
|
12589
|
+
title: React.createElement(TitleText, {
|
|
12590
12590
|
required: true
|
|
12591
12591
|
}, "\u9879\u76EE\u540D\u79F0"),
|
|
12592
12592
|
key: 'itemName',
|
|
12593
12593
|
render: function render(_, record) {
|
|
12594
12594
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
12595
|
-
return
|
|
12595
|
+
return React.createElement(Form.Item, null, React.createElement("div", {
|
|
12596
12596
|
style: {
|
|
12597
12597
|
display: 'flex'
|
|
12598
12598
|
}
|
|
@@ -12639,16 +12639,16 @@ var useColumns = (function (form) {
|
|
|
12639
12639
|
return validator;
|
|
12640
12640
|
}()
|
|
12641
12641
|
}])
|
|
12642
|
-
})(
|
|
12642
|
+
})(React.createElement(ItemNameInput, {
|
|
12643
12643
|
shorthand: editGood.shorthand,
|
|
12644
12644
|
onChange: function onChange() {
|
|
12645
12645
|
onChangeItemName(controller, form, record);
|
|
12646
12646
|
}
|
|
12647
|
-
})),
|
|
12647
|
+
})), React.createElement("div", {
|
|
12648
12648
|
className: "kts-invoice-operate-goods-list-able-list-itemName-import"
|
|
12649
|
-
}, controller.getGoodsList && model !== 'readOnly' &&
|
|
12649
|
+
}, controller.getGoodsList && model !== 'readOnly' && React.createElement(Tooltip, {
|
|
12650
12650
|
title: "\u70B9\u51FB\u4ECE\u5546\u54C1\u7BA1\u7406\u4E2D\u6DFB\u52A0\u5546\u54C1\u4FE1\u606F"
|
|
12651
|
-
},
|
|
12651
|
+
}, React.createElement(Button, {
|
|
12652
12652
|
onClick: controller.pipeline( /*#__PURE__*/function () {
|
|
12653
12653
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(s) {
|
|
12654
12654
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
@@ -12673,7 +12673,7 @@ var useColumns = (function (form) {
|
|
|
12673
12673
|
icon: "plus-circle"
|
|
12674
12674
|
})))));
|
|
12675
12675
|
} else {
|
|
12676
|
-
return
|
|
12676
|
+
return React.createElement(MyItemNameDiv, {
|
|
12677
12677
|
valueT: formatSearch(getItemNameWithShorthand({
|
|
12678
12678
|
shorthand: record.shorthand,
|
|
12679
12679
|
full: record.itemNameSelf || ''
|
|
@@ -12687,17 +12687,17 @@ var useColumns = (function (form) {
|
|
|
12687
12687
|
}
|
|
12688
12688
|
}
|
|
12689
12689
|
}, {
|
|
12690
|
-
title:
|
|
12690
|
+
title: React.createElement(TitleText, {
|
|
12691
12691
|
rules: (_columnsReplenish$ite = columnsReplenish['itemModelName']) === null || _columnsReplenish$ite === void 0 ? void 0 : _columnsReplenish$ite.rules
|
|
12692
12692
|
}, "\u89C4\u683C\u578B\u53F7"),
|
|
12693
12693
|
key: 'itemModelName',
|
|
12694
12694
|
width: 119,
|
|
12695
12695
|
render: function render(_, record) {
|
|
12696
12696
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
12697
|
-
return
|
|
12697
|
+
return React.createElement(Form.Item, null, getFieldDecorator('itemModelName', {
|
|
12698
12698
|
initialValue: isMyShow ? editGood.itemModelNameSelf : editGood.itemModelName,
|
|
12699
12699
|
rules: getReplenishRules('itemModelName')
|
|
12700
|
-
})(
|
|
12700
|
+
})(React.createElement(MyInput, {
|
|
12701
12701
|
onChange: function () {
|
|
12702
12702
|
var _onChange2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5() {
|
|
12703
12703
|
var key, value;
|
|
@@ -12730,7 +12730,7 @@ var useColumns = (function (form) {
|
|
|
12730
12730
|
}()
|
|
12731
12731
|
})));
|
|
12732
12732
|
} else {
|
|
12733
|
-
return
|
|
12733
|
+
return React.createElement(MyItemNameDiv, {
|
|
12734
12734
|
valueT: formatSearch(record.itemModelNameSelf, searchValue),
|
|
12735
12735
|
valueF: formatSearch(record.itemModelName, searchValue),
|
|
12736
12736
|
isMyShow: isMyShow
|
|
@@ -12738,17 +12738,17 @@ var useColumns = (function (form) {
|
|
|
12738
12738
|
}
|
|
12739
12739
|
}
|
|
12740
12740
|
}, {
|
|
12741
|
-
title:
|
|
12741
|
+
title: React.createElement(TitleText, {
|
|
12742
12742
|
rules: (_columnsReplenish$uni = columnsReplenish['unit']) === null || _columnsReplenish$uni === void 0 ? void 0 : _columnsReplenish$uni.rules
|
|
12743
12743
|
}, "\u5355\u4F4D"),
|
|
12744
12744
|
key: 'unit',
|
|
12745
12745
|
width: 70,
|
|
12746
12746
|
render: function render(_, record) {
|
|
12747
12747
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
12748
|
-
return
|
|
12748
|
+
return React.createElement(Form.Item, null, getFieldDecorator('unit', {
|
|
12749
12749
|
initialValue: editGood.unit,
|
|
12750
12750
|
rules: getReplenishRules('unit')
|
|
12751
|
-
})(
|
|
12751
|
+
})(React.createElement(AutoComplete$2, {
|
|
12752
12752
|
style: {
|
|
12753
12753
|
width: '100%'
|
|
12754
12754
|
},
|
|
@@ -12786,7 +12786,7 @@ var useColumns = (function (form) {
|
|
|
12786
12786
|
}()
|
|
12787
12787
|
})));
|
|
12788
12788
|
} else {
|
|
12789
|
-
return
|
|
12789
|
+
return React.createElement("span", {
|
|
12790
12790
|
style: {
|
|
12791
12791
|
padding: '0 10px'
|
|
12792
12792
|
}
|
|
@@ -12794,7 +12794,7 @@ var useColumns = (function (form) {
|
|
|
12794
12794
|
}
|
|
12795
12795
|
}
|
|
12796
12796
|
}, {
|
|
12797
|
-
title:
|
|
12797
|
+
title: React.createElement(TitleText, {
|
|
12798
12798
|
rules: (_columnsReplenish$qua = columnsReplenish['quantity']) === null || _columnsReplenish$qua === void 0 ? void 0 : _columnsReplenish$qua.rules
|
|
12799
12799
|
}, "\u6570\u91CF"),
|
|
12800
12800
|
dataIndex: 'quantity',
|
|
@@ -12803,7 +12803,7 @@ var useColumns = (function (form) {
|
|
|
12803
12803
|
width: 149,
|
|
12804
12804
|
render: function render(value, record) {
|
|
12805
12805
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
12806
|
-
return
|
|
12806
|
+
return React.createElement(Form.Item, null, getFieldDecorator('quantity', {
|
|
12807
12807
|
initialValue: editGood.quantity,
|
|
12808
12808
|
getValueFromEvent: onNumberValueChange,
|
|
12809
12809
|
rules: [].concat(_toConsumableArray(getReplenishRules('quantity')), [{
|
|
@@ -12849,7 +12849,7 @@ var useColumns = (function (form) {
|
|
|
12849
12849
|
return validator;
|
|
12850
12850
|
}()
|
|
12851
12851
|
}])
|
|
12852
|
-
})(
|
|
12852
|
+
})(React.createElement(MyInput, {
|
|
12853
12853
|
style: {
|
|
12854
12854
|
textAlign: 'right'
|
|
12855
12855
|
},
|
|
@@ -12881,7 +12881,7 @@ var useColumns = (function (form) {
|
|
|
12881
12881
|
}()
|
|
12882
12882
|
})));
|
|
12883
12883
|
} else {
|
|
12884
|
-
return
|
|
12884
|
+
return React.createElement("span", {
|
|
12885
12885
|
style: {
|
|
12886
12886
|
padding: '0 10px'
|
|
12887
12887
|
}
|
|
@@ -12889,7 +12889,7 @@ var useColumns = (function (form) {
|
|
|
12889
12889
|
}
|
|
12890
12890
|
}
|
|
12891
12891
|
}, {
|
|
12892
|
-
title:
|
|
12892
|
+
title: React.createElement(TitleText, {
|
|
12893
12893
|
rules: (_columnsReplenish$pri = columnsReplenish['priceIncludeTax']) === null || _columnsReplenish$pri === void 0 ? void 0 : _columnsReplenish$pri.rules
|
|
12894
12894
|
}, "\u5355\u4EF7(\u542B\u7A0E)"),
|
|
12895
12895
|
dataIndex: 'priceIncludeTax',
|
|
@@ -12898,7 +12898,7 @@ var useColumns = (function (form) {
|
|
|
12898
12898
|
width: 149,
|
|
12899
12899
|
render: function render(value, record) {
|
|
12900
12900
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
12901
|
-
return
|
|
12901
|
+
return React.createElement(Form.Item, null, getFieldDecorator('priceIncludeTax', {
|
|
12902
12902
|
initialValue: editGood.priceIncludeTax,
|
|
12903
12903
|
getValueFromEvent: onNumberValueChange,
|
|
12904
12904
|
rules: [].concat(_toConsumableArray(getReplenishRules('priceIncludeTax')), [{
|
|
@@ -12944,7 +12944,7 @@ var useColumns = (function (form) {
|
|
|
12944
12944
|
return validator;
|
|
12945
12945
|
}()
|
|
12946
12946
|
}])
|
|
12947
|
-
})(
|
|
12947
|
+
})(React.createElement(MyInput, {
|
|
12948
12948
|
style: {
|
|
12949
12949
|
textAlign: 'right'
|
|
12950
12950
|
},
|
|
@@ -12956,7 +12956,7 @@ var useColumns = (function (form) {
|
|
|
12956
12956
|
}
|
|
12957
12957
|
})));
|
|
12958
12958
|
} else {
|
|
12959
|
-
return
|
|
12959
|
+
return React.createElement("span", {
|
|
12960
12960
|
style: {
|
|
12961
12961
|
padding: '0 10px'
|
|
12962
12962
|
}
|
|
@@ -12964,7 +12964,7 @@ var useColumns = (function (form) {
|
|
|
12964
12964
|
}
|
|
12965
12965
|
}
|
|
12966
12966
|
}, {
|
|
12967
|
-
title:
|
|
12967
|
+
title: React.createElement(TitleText, {
|
|
12968
12968
|
rules: (_columnsReplenish$pri2 = columnsReplenish['priceExcludeTax']) === null || _columnsReplenish$pri2 === void 0 ? void 0 : _columnsReplenish$pri2.rules
|
|
12969
12969
|
}, "\u5355\u4EF7(\u4E0D\u542B\u7A0E)"),
|
|
12970
12970
|
dataIndex: 'priceExcludeTax',
|
|
@@ -12973,7 +12973,7 @@ var useColumns = (function (form) {
|
|
|
12973
12973
|
width: 149,
|
|
12974
12974
|
render: function render(value, record) {
|
|
12975
12975
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
12976
|
-
return
|
|
12976
|
+
return React.createElement(Form.Item, null, getFieldDecorator('priceExcludeTax', {
|
|
12977
12977
|
initialValue: editGood.priceExcludeTax,
|
|
12978
12978
|
getValueFromEvent: onNumberValueChange,
|
|
12979
12979
|
rules: [].concat(_toConsumableArray(getReplenishRules('priceExcludeTax')), [{
|
|
@@ -13019,7 +13019,7 @@ var useColumns = (function (form) {
|
|
|
13019
13019
|
return validator;
|
|
13020
13020
|
}()
|
|
13021
13021
|
}])
|
|
13022
|
-
})(
|
|
13022
|
+
})(React.createElement(MyInput, {
|
|
13023
13023
|
style: {
|
|
13024
13024
|
textAlign: 'right'
|
|
13025
13025
|
},
|
|
@@ -13031,7 +13031,7 @@ var useColumns = (function (form) {
|
|
|
13031
13031
|
}
|
|
13032
13032
|
})));
|
|
13033
13033
|
} else {
|
|
13034
|
-
return
|
|
13034
|
+
return React.createElement("span", {
|
|
13035
13035
|
style: {
|
|
13036
13036
|
padding: '0 10px'
|
|
13037
13037
|
}
|
|
@@ -13039,7 +13039,7 @@ var useColumns = (function (form) {
|
|
|
13039
13039
|
}
|
|
13040
13040
|
}
|
|
13041
13041
|
}, {
|
|
13042
|
-
title:
|
|
13042
|
+
title: React.createElement(TitleText, {
|
|
13043
13043
|
required: true
|
|
13044
13044
|
}, "\u91D1\u989D(\u542B\u7A0E)"),
|
|
13045
13045
|
dataIndex: 'lineAmountIncludeTax',
|
|
@@ -13048,7 +13048,7 @@ var useColumns = (function (form) {
|
|
|
13048
13048
|
align: 'right',
|
|
13049
13049
|
render: function render(value, record) {
|
|
13050
13050
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
13051
|
-
return
|
|
13051
|
+
return React.createElement(Form.Item, null, getFieldDecorator('lineAmountIncludeTax', {
|
|
13052
13052
|
initialValue: editGood.lineAmountIncludeTax,
|
|
13053
13053
|
getValueFromEvent: onNumberValueChange,
|
|
13054
13054
|
rules: [].concat(_toConsumableArray(getReplenishRules('lineAmountIncludeTax')), [{
|
|
@@ -13108,7 +13108,7 @@ var useColumns = (function (form) {
|
|
|
13108
13108
|
return validator;
|
|
13109
13109
|
}()
|
|
13110
13110
|
}])
|
|
13111
|
-
})(
|
|
13111
|
+
})(React.createElement(MyInput, {
|
|
13112
13112
|
style: {
|
|
13113
13113
|
textAlign: 'right'
|
|
13114
13114
|
},
|
|
@@ -13119,7 +13119,7 @@ var useColumns = (function (form) {
|
|
|
13119
13119
|
}
|
|
13120
13120
|
})));
|
|
13121
13121
|
} else {
|
|
13122
|
-
return
|
|
13122
|
+
return React.createElement("span", {
|
|
13123
13123
|
style: {
|
|
13124
13124
|
padding: '0 10px'
|
|
13125
13125
|
}
|
|
@@ -13127,7 +13127,7 @@ var useColumns = (function (form) {
|
|
|
13127
13127
|
}
|
|
13128
13128
|
}
|
|
13129
13129
|
}, {
|
|
13130
|
-
title:
|
|
13130
|
+
title: React.createElement(TitleText, {
|
|
13131
13131
|
required: true
|
|
13132
13132
|
}, "\u91D1\u989D(\u4E0D\u542B\u7A0E)"),
|
|
13133
13133
|
dataIndex: 'lineAmountExcludeTax',
|
|
@@ -13136,7 +13136,7 @@ var useColumns = (function (form) {
|
|
|
13136
13136
|
width: 119,
|
|
13137
13137
|
render: function render(value, record) {
|
|
13138
13138
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
13139
|
-
return
|
|
13139
|
+
return React.createElement(Form.Item, null, getFieldDecorator('lineAmountExcludeTax', {
|
|
13140
13140
|
initialValue: editGood.lineAmountExcludeTax,
|
|
13141
13141
|
getValueFromEvent: onNumberValueChange,
|
|
13142
13142
|
rules: [].concat(_toConsumableArray(getReplenishRules('lineAmountExcludeTax')), [{
|
|
@@ -13171,7 +13171,7 @@ var useColumns = (function (form) {
|
|
|
13171
13171
|
return validator;
|
|
13172
13172
|
}()
|
|
13173
13173
|
}])
|
|
13174
|
-
})(
|
|
13174
|
+
})(React.createElement(MyInput, {
|
|
13175
13175
|
style: {
|
|
13176
13176
|
textAlign: 'right'
|
|
13177
13177
|
},
|
|
@@ -13182,7 +13182,7 @@ var useColumns = (function (form) {
|
|
|
13182
13182
|
}
|
|
13183
13183
|
})));
|
|
13184
13184
|
} else {
|
|
13185
|
-
return
|
|
13185
|
+
return React.createElement("span", {
|
|
13186
13186
|
style: {
|
|
13187
13187
|
padding: '0 10px'
|
|
13188
13188
|
}
|
|
@@ -13190,7 +13190,7 @@ var useColumns = (function (form) {
|
|
|
13190
13190
|
}
|
|
13191
13191
|
}
|
|
13192
13192
|
}, {
|
|
13193
|
-
title:
|
|
13193
|
+
title: React.createElement(TitleText, {
|
|
13194
13194
|
required: true
|
|
13195
13195
|
}, "\u7A0E\u7387%"),
|
|
13196
13196
|
dataIndex: 'taxRate',
|
|
@@ -13199,7 +13199,7 @@ var useColumns = (function (form) {
|
|
|
13199
13199
|
width: 75,
|
|
13200
13200
|
render: function render(value, record) {
|
|
13201
13201
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
13202
|
-
return
|
|
13202
|
+
return React.createElement(Form.Item, null, getFieldDecorator('taxRate', {
|
|
13203
13203
|
initialValue: editGood.taxRate,
|
|
13204
13204
|
rules: [].concat(_toConsumableArray(getReplenishRules('taxRate')), [{
|
|
13205
13205
|
required: true,
|
|
@@ -13208,7 +13208,7 @@ var useColumns = (function (form) {
|
|
|
13208
13208
|
pattern: /^[+-]?(0|([1-9]\d*))(\.\d+)?$/,
|
|
13209
13209
|
message: '请选择正确税率'
|
|
13210
13210
|
}])
|
|
13211
|
-
})(
|
|
13211
|
+
})(React.createElement(Select, {
|
|
13212
13212
|
className: "kts-invoice-operate-goods-list-table-tax-rate",
|
|
13213
13213
|
dropdownMenuStyle: {
|
|
13214
13214
|
textAlign: "right"
|
|
@@ -13222,13 +13222,13 @@ var useColumns = (function (form) {
|
|
|
13222
13222
|
onChangeTaxRate(controller, form, record);
|
|
13223
13223
|
}
|
|
13224
13224
|
}, taxRateList.map(function (e, i) {
|
|
13225
|
-
return
|
|
13225
|
+
return React.createElement(Select.Option, {
|
|
13226
13226
|
key: i,
|
|
13227
13227
|
value: e
|
|
13228
13228
|
}, e, "%");
|
|
13229
13229
|
}))));
|
|
13230
13230
|
} else {
|
|
13231
|
-
return
|
|
13231
|
+
return React.createElement("span", {
|
|
13232
13232
|
style: {
|
|
13233
13233
|
padding: '0 10px'
|
|
13234
13234
|
}
|
|
@@ -13236,7 +13236,7 @@ var useColumns = (function (form) {
|
|
|
13236
13236
|
}
|
|
13237
13237
|
}
|
|
13238
13238
|
}, {
|
|
13239
|
-
title:
|
|
13239
|
+
title: React.createElement(TitleText, {
|
|
13240
13240
|
rules: (_columnsReplenish$tax = columnsReplenish['taxAmount']) === null || _columnsReplenish$tax === void 0 ? void 0 : _columnsReplenish$tax.rules
|
|
13241
13241
|
}, "\u7A0E\u989D"),
|
|
13242
13242
|
dataIndex: 'taxAmount',
|
|
@@ -13248,17 +13248,67 @@ var useColumns = (function (form) {
|
|
|
13248
13248
|
return getFieldDecorator('taxAmount', {
|
|
13249
13249
|
initialValue: editGood.taxAmount,
|
|
13250
13250
|
rules: getReplenishRules('taxAmount')
|
|
13251
|
-
})(
|
|
13251
|
+
})(React.createElement(MyDiv, {
|
|
13252
13252
|
loading: isCipher(changeField, 'taxAmount')
|
|
13253
13253
|
}));
|
|
13254
13254
|
} else {
|
|
13255
|
-
return
|
|
13255
|
+
return React.createElement("span", {
|
|
13256
13256
|
style: {
|
|
13257
13257
|
padding: '0 10px'
|
|
13258
13258
|
}
|
|
13259
13259
|
}, parseFloat(value).toFixed(2));
|
|
13260
13260
|
}
|
|
13261
13261
|
}
|
|
13262
|
+
}, {
|
|
13263
|
+
title: '行性质',
|
|
13264
|
+
dataIndex: 'lineAttribute',
|
|
13265
|
+
key: 'lineAttribute',
|
|
13266
|
+
width: 70,
|
|
13267
|
+
render: function render(e) {
|
|
13268
|
+
switch (e) {
|
|
13269
|
+
case LineAttributeType$1.折扣行:
|
|
13270
|
+
return React.createElement("span", {
|
|
13271
|
+
style: {
|
|
13272
|
+
padding: '0 10px'
|
|
13273
|
+
}
|
|
13274
|
+
}, "\u6298\u6263\u884C");
|
|
13275
|
+
|
|
13276
|
+
case LineAttributeType$1.被折扣行:
|
|
13277
|
+
return React.createElement("span", {
|
|
13278
|
+
style: {
|
|
13279
|
+
padding: '0 10px'
|
|
13280
|
+
}
|
|
13281
|
+
}, "\u88AB\u6298\u6263\u884C");
|
|
13282
|
+
|
|
13283
|
+
case LineAttributeType$1.赠品行:
|
|
13284
|
+
return React.createElement("span", {
|
|
13285
|
+
style: {
|
|
13286
|
+
padding: '0 10px'
|
|
13287
|
+
}
|
|
13288
|
+
}, "\u8D60\u54C1\u884C");
|
|
13289
|
+
|
|
13290
|
+
case LineAttributeType$1.折让行:
|
|
13291
|
+
return React.createElement("span", {
|
|
13292
|
+
style: {
|
|
13293
|
+
padding: '0 10px'
|
|
13294
|
+
}
|
|
13295
|
+
}, "\u6298\u8BA9\u884C");
|
|
13296
|
+
|
|
13297
|
+
case LineAttributeType$1.正常:
|
|
13298
|
+
return React.createElement("span", {
|
|
13299
|
+
style: {
|
|
13300
|
+
padding: '0 10px'
|
|
13301
|
+
}
|
|
13302
|
+
}, "\u6B63\u5E38\u884C");
|
|
13303
|
+
|
|
13304
|
+
default:
|
|
13305
|
+
return React.createElement("span", {
|
|
13306
|
+
style: {
|
|
13307
|
+
padding: '0 10px'
|
|
13308
|
+
}
|
|
13309
|
+
});
|
|
13310
|
+
}
|
|
13311
|
+
}
|
|
13262
13312
|
}, {
|
|
13263
13313
|
title: '操作',
|
|
13264
13314
|
key: 'operating',
|
|
@@ -13266,7 +13316,7 @@ var useColumns = (function (form) {
|
|
|
13266
13316
|
width: 130,
|
|
13267
13317
|
fixed: 'right',
|
|
13268
13318
|
render: function render(_value, record) {
|
|
13269
|
-
return
|
|
13319
|
+
return React.createElement(RowMenu, {
|
|
13270
13320
|
key: record.lineAttribute,
|
|
13271
13321
|
goods: record
|
|
13272
13322
|
});
|
|
@@ -13321,13 +13371,13 @@ var MyInput = /*#__PURE__*/function (_React$Component) {
|
|
|
13321
13371
|
key: "render",
|
|
13322
13372
|
value: function render() {
|
|
13323
13373
|
if (this.props.loading) {
|
|
13324
|
-
return
|
|
13374
|
+
return React.createElement(Spin, {
|
|
13325
13375
|
size: "small"
|
|
13326
|
-
},
|
|
13376
|
+
}, React.createElement(Input, _objectSpread2(_objectSpread2({}, this.props), {}, {
|
|
13327
13377
|
autoComplete: "off"
|
|
13328
13378
|
})));
|
|
13329
13379
|
} else {
|
|
13330
|
-
return
|
|
13380
|
+
return React.createElement(Input, _objectSpread2(_objectSpread2({}, this.props), {}, {
|
|
13331
13381
|
autoComplete: "off"
|
|
13332
13382
|
}));
|
|
13333
13383
|
}
|
|
@@ -13352,15 +13402,15 @@ var MyDiv = /*#__PURE__*/function (_React$Component2) {
|
|
|
13352
13402
|
key: "render",
|
|
13353
13403
|
value: function render() {
|
|
13354
13404
|
if (this.props.loading) {
|
|
13355
|
-
return
|
|
13405
|
+
return React.createElement(Spin, {
|
|
13356
13406
|
size: "small"
|
|
13357
|
-
},
|
|
13407
|
+
}, React.createElement("span", {
|
|
13358
13408
|
style: {
|
|
13359
13409
|
padding: '0 10px'
|
|
13360
13410
|
}
|
|
13361
13411
|
}, this.props.value));
|
|
13362
13412
|
} else {
|
|
13363
|
-
return
|
|
13413
|
+
return React.createElement("span", {
|
|
13364
13414
|
style: {
|
|
13365
13415
|
padding: '0 10px'
|
|
13366
13416
|
}
|
|
@@ -13393,18 +13443,18 @@ var MyItemNameDiv = /*#__PURE__*/function (_React$Component3) {
|
|
|
13393
13443
|
|
|
13394
13444
|
if (isMyShow) {
|
|
13395
13445
|
if (valueT) {
|
|
13396
|
-
return
|
|
13446
|
+
return React.createElement(Tooltip, {
|
|
13397
13447
|
title: valueT
|
|
13398
|
-
},
|
|
13448
|
+
}, React.createElement("span", {
|
|
13399
13449
|
style: {
|
|
13400
13450
|
padding: '0 10px',
|
|
13401
13451
|
color: '#0074ff'
|
|
13402
13452
|
}
|
|
13403
13453
|
}, valueT));
|
|
13404
13454
|
} else {
|
|
13405
|
-
return
|
|
13455
|
+
return React.createElement(Tooltip, {
|
|
13406
13456
|
title: valueF
|
|
13407
|
-
},
|
|
13457
|
+
}, React.createElement("span", {
|
|
13408
13458
|
style: {
|
|
13409
13459
|
padding: '0 10px'
|
|
13410
13460
|
}
|
|
@@ -13412,17 +13462,17 @@ var MyItemNameDiv = /*#__PURE__*/function (_React$Component3) {
|
|
|
13412
13462
|
}
|
|
13413
13463
|
} else {
|
|
13414
13464
|
if (valueF) {
|
|
13415
|
-
return
|
|
13465
|
+
return React.createElement(Tooltip, {
|
|
13416
13466
|
title: valueF
|
|
13417
|
-
},
|
|
13467
|
+
}, React.createElement("span", {
|
|
13418
13468
|
style: {
|
|
13419
13469
|
padding: '0 10px'
|
|
13420
13470
|
}
|
|
13421
13471
|
}, valueF));
|
|
13422
13472
|
} else {
|
|
13423
|
-
return
|
|
13473
|
+
return React.createElement(Tooltip, {
|
|
13424
13474
|
title: valueT
|
|
13425
|
-
},
|
|
13475
|
+
}, React.createElement("span", {
|
|
13426
13476
|
style: {
|
|
13427
13477
|
padding: '0 10px',
|
|
13428
13478
|
color: '#0074ff'
|
|
@@ -13445,7 +13495,7 @@ function formatSearch(value, search) {
|
|
|
13445
13495
|
return dcoding(e);
|
|
13446
13496
|
}).join("<span class=\"kts-invoice-operate-goods-list-table-search-protrude\" >".concat(search, "</span>"));
|
|
13447
13497
|
|
|
13448
|
-
return
|
|
13498
|
+
return React.createElement("span", {
|
|
13449
13499
|
dangerouslySetInnerHTML: {
|
|
13450
13500
|
__html: __html
|
|
13451
13501
|
}
|
|
@@ -13870,7 +13920,7 @@ var useRowSelection = (function () {
|
|
|
13870
13920
|
};
|
|
13871
13921
|
}(), [controller]);
|
|
13872
13922
|
var columnTitle = React.useMemo(function () {
|
|
13873
|
-
return
|
|
13923
|
+
return React.createElement(Checkbox, {
|
|
13874
13924
|
onChange: onClickSelectAll,
|
|
13875
13925
|
indeterminate: indeterminate,
|
|
13876
13926
|
checked: isAll
|
|
@@ -14071,16 +14121,16 @@ var useEndowCodeButton = (function () {
|
|
|
14071
14121
|
}, _callee2);
|
|
14072
14122
|
})), [controller]);
|
|
14073
14123
|
var menuItem = React.useMemo(function () {
|
|
14074
|
-
if (model === 'readOnly') return
|
|
14075
|
-
return
|
|
14124
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
14125
|
+
return React.createElement(Menu.Item, {
|
|
14076
14126
|
key: "2",
|
|
14077
14127
|
onClick: onClick,
|
|
14078
14128
|
disabled: disabled
|
|
14079
14129
|
}, "\u6279\u91CF\u8D4B\u7801");
|
|
14080
14130
|
}, [onClick, disabled, model]);
|
|
14081
14131
|
var button = React.useMemo(function () {
|
|
14082
|
-
if (model === 'readOnly') return
|
|
14083
|
-
return
|
|
14132
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
14133
|
+
return React.createElement(Button, {
|
|
14084
14134
|
onClick: onClick,
|
|
14085
14135
|
disabled: disabled
|
|
14086
14136
|
}, "\u6279\u91CF\u8D4B\u7801");
|
|
@@ -14146,19 +14196,19 @@ var useDelRowButton = (function () {
|
|
|
14146
14196
|
}())();
|
|
14147
14197
|
}, [controller]);
|
|
14148
14198
|
var menuItem = React.useMemo(function () {
|
|
14149
|
-
if (model === 'prefab') return
|
|
14150
|
-
if (model === 'readOnly') return
|
|
14151
|
-
return
|
|
14199
|
+
if (model === 'prefab') return React.createElement(React.Fragment, null);
|
|
14200
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
14201
|
+
return React.createElement(Menu.Item, {
|
|
14152
14202
|
key: "1",
|
|
14153
14203
|
onClick: onClick,
|
|
14154
14204
|
disabled: disabled
|
|
14155
14205
|
}, " \u5220\u9664\u884C ");
|
|
14156
14206
|
}, [model, onClick, disabled]);
|
|
14157
14207
|
var button = React.useMemo(function () {
|
|
14158
|
-
if (isRemRow === false) return
|
|
14159
|
-
if (model === 'prefab') return
|
|
14160
|
-
if (model === 'readOnly') return
|
|
14161
|
-
return
|
|
14208
|
+
if (isRemRow === false) return React.createElement(React.Fragment, null);
|
|
14209
|
+
if (model === 'prefab') return React.createElement(React.Fragment, null);
|
|
14210
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
14211
|
+
return React.createElement(Button, {
|
|
14162
14212
|
onClick: onClick,
|
|
14163
14213
|
disabled: disabled
|
|
14164
14214
|
}, "\u6279\u91CF\u5220\u9664");
|
|
@@ -14353,14 +14403,14 @@ var useAddDiscountRowButton = (function () {
|
|
|
14353
14403
|
}, _callee3);
|
|
14354
14404
|
})), [controller]);
|
|
14355
14405
|
var menuItem = React.useMemo(function () {
|
|
14356
|
-
return model === 'prefab' ?
|
|
14406
|
+
return model === 'prefab' ? React.createElement(React.Fragment, null) : isAddDiscount !== false ? React.createElement(Menu.Item, {
|
|
14357
14407
|
key: "0",
|
|
14358
14408
|
onClick: onClick,
|
|
14359
14409
|
disabled: disabled
|
|
14360
14410
|
}, "\u6DFB\u52A0\u6298\u6263\u884C") : undefined;
|
|
14361
14411
|
}, [isAddDiscount, disabled, onClick]);
|
|
14362
14412
|
var drawer = React.useMemo(function () {
|
|
14363
|
-
return
|
|
14413
|
+
return React.createElement(Drawer, {
|
|
14364
14414
|
className: "kts-invoice-operate-goods-list-add-discount-row",
|
|
14365
14415
|
width: 540,
|
|
14366
14416
|
title: "\u6DFB\u52A0\u6298\u6263\u884C",
|
|
@@ -14368,7 +14418,7 @@ var useAddDiscountRowButton = (function () {
|
|
|
14368
14418
|
destroyOnClose: true,
|
|
14369
14419
|
onClose: onClose,
|
|
14370
14420
|
visible: visible
|
|
14371
|
-
},
|
|
14421
|
+
}, React.createElement(DrawerBody, null));
|
|
14372
14422
|
}, [visible, onClose]);
|
|
14373
14423
|
return {
|
|
14374
14424
|
menuItem: menuItem,
|
|
@@ -14485,13 +14535,13 @@ var DrawerBody = decorator(Form.create())(function (props) {
|
|
|
14485
14535
|
});
|
|
14486
14536
|
});
|
|
14487
14537
|
}, 300), [form, lineAmountSum]);
|
|
14488
|
-
return
|
|
14538
|
+
return React.createElement(React.Fragment, null, React.createElement("div", {
|
|
14489
14539
|
className: "add-discount-row-body"
|
|
14490
|
-
},
|
|
14540
|
+
}, React.createElement("p", null, "\u5F53\u524D\u9009\u62E9", React.createElement(Text$3, {
|
|
14491
14541
|
type: "danger"
|
|
14492
|
-
}, discountGoodIndex.length), "\u884C\u88AB\u6298\u6263\u5546\u54C1\u884C\uFF0C\u91D1\u989D\u5408\u8BA1\xA5",
|
|
14542
|
+
}, discountGoodIndex.length), "\u884C\u88AB\u6298\u6263\u5546\u54C1\u884C\uFF0C\u91D1\u989D\u5408\u8BA1\xA5", React.createElement(Text$3, {
|
|
14493
14543
|
type: "danger"
|
|
14494
|
-
}, lineAmountSum.toFixed(2))),
|
|
14544
|
+
}, lineAmountSum.toFixed(2))), React.createElement(Form.Item, {
|
|
14495
14545
|
label: "\u6298\u6263\u7387\uFF1A"
|
|
14496
14546
|
}, getFieldDecorator('discount', {
|
|
14497
14547
|
rules: [{
|
|
@@ -14521,11 +14571,11 @@ var DrawerBody = decorator(Form.create())(function (props) {
|
|
|
14521
14571
|
callback();
|
|
14522
14572
|
}
|
|
14523
14573
|
}]
|
|
14524
|
-
})(
|
|
14574
|
+
})(React.createElement(Input, {
|
|
14525
14575
|
placeholder: "\u8BF7\u8F93\u5165\u5927\u4E8E0\u5C0F\u4E8E100\u7684\u6570\u5B57",
|
|
14526
14576
|
suffix: "%",
|
|
14527
14577
|
onChange: onChangeDiscount
|
|
14528
|
-
}))),
|
|
14578
|
+
}))), React.createElement(Form.Item, {
|
|
14529
14579
|
label: "\u6298\u6263\u91D1\u989D\uFF1A"
|
|
14530
14580
|
}, getFieldDecorator('discolineAmountunt', {
|
|
14531
14581
|
rules: [{
|
|
@@ -14555,19 +14605,19 @@ var DrawerBody = decorator(Form.create())(function (props) {
|
|
|
14555
14605
|
callback();
|
|
14556
14606
|
}
|
|
14557
14607
|
}]
|
|
14558
|
-
})(
|
|
14608
|
+
})(React.createElement(Input, {
|
|
14559
14609
|
placeholder: "\u8BF7\u8F93\u5165\u5927\u4E8E0\u5C0F\u4E8E\u91D1\u989D\u5408\u8BA1\u7684\u6570\u5B57",
|
|
14560
14610
|
suffix: "\xA5",
|
|
14561
14611
|
onChange: onChangeDiscolineAmountunt
|
|
14562
|
-
})))),
|
|
14612
|
+
})))), React.createElement("div", {
|
|
14563
14613
|
className: "add-discount-row-footer"
|
|
14564
|
-
},
|
|
14614
|
+
}, React.createElement(Button, {
|
|
14565
14615
|
block: true,
|
|
14566
14616
|
style: {
|
|
14567
14617
|
marginBottom: 12
|
|
14568
14618
|
},
|
|
14569
14619
|
onClick: onClose
|
|
14570
|
-
}, "\u53D6\u6D88"),
|
|
14620
|
+
}, "\u53D6\u6D88"), React.createElement(Button, {
|
|
14571
14621
|
type: "primary",
|
|
14572
14622
|
block: true,
|
|
14573
14623
|
onClick: onClickSave
|
|
@@ -14664,13 +14714,13 @@ function useMergeDetails() {
|
|
|
14664
14714
|
}];
|
|
14665
14715
|
}, [selectedGoodIndex, onClickManual, onClickAuto]);
|
|
14666
14716
|
var button = React.useMemo(function () {
|
|
14667
|
-
if (!isMergeDetails) return
|
|
14668
|
-
return
|
|
14717
|
+
if (!isMergeDetails) return React.createElement(React.Fragment, null);
|
|
14718
|
+
return React.createElement(Dropdown$1, {
|
|
14669
14719
|
menu: {
|
|
14670
14720
|
items: items
|
|
14671
14721
|
},
|
|
14672
14722
|
trigger: ['click']
|
|
14673
|
-
},
|
|
14723
|
+
}, React.createElement(Button, null, "\u5408\u5E76\u660E\u7EC6"));
|
|
14674
14724
|
}, [selectedGoodIndex.length, isMergeDetails]);
|
|
14675
14725
|
return {
|
|
14676
14726
|
/** 按钮 */
|
|
@@ -14756,8 +14806,8 @@ function useMergeDiscount() {
|
|
|
14756
14806
|
}, _callee);
|
|
14757
14807
|
})), [controller]);
|
|
14758
14808
|
var button = React.useMemo(function () {
|
|
14759
|
-
if (!isMergeDiscount) return
|
|
14760
|
-
return
|
|
14809
|
+
if (!isMergeDiscount) return React.createElement(React.Fragment, null);
|
|
14810
|
+
return React.createElement(Button, {
|
|
14761
14811
|
onClick: onClick,
|
|
14762
14812
|
disabled: goodsList.length <= 1
|
|
14763
14813
|
}, "\u5408\u5E76\u6298\u6263");
|
|
@@ -14950,8 +15000,8 @@ function useSalesDiscount() {
|
|
|
14950
15000
|
}, _callee3);
|
|
14951
15001
|
})), [controller, selectedGoodIndex, goodsMap]);
|
|
14952
15002
|
var button = React.useMemo(function () {
|
|
14953
|
-
if (!isSalesDiscount) return
|
|
14954
|
-
return
|
|
15003
|
+
if (!isSalesDiscount) return React.createElement(React.Fragment, null);
|
|
15004
|
+
return React.createElement(Button, {
|
|
14955
15005
|
onClick: onClick,
|
|
14956
15006
|
disabled: selectedGoodIndex.length <= 1
|
|
14957
15007
|
}, "\u9500\u552E\u6298\u8BA9");
|
|
@@ -15126,12 +15176,12 @@ function useSalesGifts() {
|
|
|
15126
15176
|
}, [selectedGoodIndex, onClickManual, onClickAuto]);
|
|
15127
15177
|
var button = React.useMemo(function () {
|
|
15128
15178
|
if (!isSalesGifts) return;
|
|
15129
|
-
return
|
|
15179
|
+
return React.createElement(Dropdown$1, {
|
|
15130
15180
|
menu: {
|
|
15131
15181
|
items: items
|
|
15132
15182
|
},
|
|
15133
15183
|
trigger: ['click']
|
|
15134
|
-
},
|
|
15184
|
+
}, React.createElement(Button, null, "\u9500\u552E\u8D60\u54C1"));
|
|
15135
15185
|
}, [items, isSalesGifts]);
|
|
15136
15186
|
return {
|
|
15137
15187
|
/** 按钮 */
|
|
@@ -15153,7 +15203,7 @@ var GoodsList = /*#__PURE__*/function (_React$Component) {
|
|
|
15153
15203
|
_createClass(GoodsList, [{
|
|
15154
15204
|
key: "render",
|
|
15155
15205
|
value: function render() {
|
|
15156
|
-
return
|
|
15206
|
+
return React.createElement(Main, _objectSpread2({}, this.props));
|
|
15157
15207
|
}
|
|
15158
15208
|
}]);
|
|
15159
15209
|
|
|
@@ -15355,22 +15405,22 @@ var Main = decorator(Form.create())(function (props) {
|
|
|
15355
15405
|
};
|
|
15356
15406
|
}())();
|
|
15357
15407
|
}, [controller, props.isSwitchTax]);
|
|
15358
|
-
return
|
|
15408
|
+
return React.createElement("div", {
|
|
15359
15409
|
className: "kts-invoice-operate-goods-list",
|
|
15360
15410
|
onClick: function onClick(e) {
|
|
15361
15411
|
e.stopPropagation();
|
|
15362
15412
|
}
|
|
15363
|
-
},
|
|
15413
|
+
}, React.createElement("div", {
|
|
15364
15414
|
className: "kts-invoice-operate-goods-list-able"
|
|
15365
|
-
},
|
|
15415
|
+
}, React.createElement("div", {
|
|
15366
15416
|
className: "kts-invoice-operate-goods-list-able-list"
|
|
15367
|
-
},
|
|
15417
|
+
}, 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", {
|
|
15368
15418
|
className: "kts-invoice-operate-goods-list-able-extend"
|
|
15369
|
-
}, props.menuExpansion,
|
|
15419
|
+
}, props.menuExpansion, React.createElement(DescribeSwitch, null), React.createElement(TaxIncludedSwitch, null))), React.createElement("div", {
|
|
15370
15420
|
className: classNames('kts-invoice-operate-goods-list-table', {
|
|
15371
15421
|
'kts-invoice-operate-prefab': isprefab
|
|
15372
15422
|
})
|
|
15373
|
-
},
|
|
15423
|
+
}, React.createElement(TableVirtual, {
|
|
15374
15424
|
bordered: true,
|
|
15375
15425
|
size: "small",
|
|
15376
15426
|
rowKey: "$index",
|
|
@@ -15393,7 +15443,7 @@ var Main = decorator(Form.create())(function (props) {
|
|
|
15393
15443
|
}
|
|
15394
15444
|
};
|
|
15395
15445
|
}
|
|
15396
|
-
})),
|
|
15446
|
+
})), React.createElement("div", null, React.createElement(Statistics, null)));
|
|
15397
15447
|
});
|
|
15398
15448
|
|
|
15399
15449
|
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";
|
|
@@ -15418,7 +15468,7 @@ var Buyer = /*#__PURE__*/function (_React$Component) {
|
|
|
15418
15468
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
15419
15469
|
|
|
15420
15470
|
_this.render = function () {
|
|
15421
|
-
return
|
|
15471
|
+
return React.createElement(Main$1, _objectSpread2({}, _this.props));
|
|
15422
15472
|
};
|
|
15423
15473
|
|
|
15424
15474
|
return _this;
|
|
@@ -15449,7 +15499,7 @@ var Main$1 = decorator(Form.create())(function (props) {
|
|
|
15449
15499
|
return [{
|
|
15450
15500
|
id: 'sellerName',
|
|
15451
15501
|
label: '销售方名称',
|
|
15452
|
-
node:
|
|
15502
|
+
node: React.createElement(Input, {
|
|
15453
15503
|
readOnly: model === 'prefab',
|
|
15454
15504
|
size: "small"
|
|
15455
15505
|
}),
|
|
@@ -15462,7 +15512,7 @@ var Main$1 = decorator(Form.create())(function (props) {
|
|
|
15462
15512
|
}, {
|
|
15463
15513
|
id: 'sellerNo',
|
|
15464
15514
|
label: '销售方纳税人识别号',
|
|
15465
|
-
node:
|
|
15515
|
+
node: React.createElement(Input, {
|
|
15466
15516
|
readOnly: model === 'prefab',
|
|
15467
15517
|
size: "small"
|
|
15468
15518
|
}),
|
|
@@ -15475,7 +15525,7 @@ var Main$1 = decorator(Form.create())(function (props) {
|
|
|
15475
15525
|
}, {
|
|
15476
15526
|
id: 'sellerAddress',
|
|
15477
15527
|
label: '销售方地址及电话',
|
|
15478
|
-
node:
|
|
15528
|
+
node: React.createElement(Input, {
|
|
15479
15529
|
readOnly: model === 'prefab',
|
|
15480
15530
|
size: "small"
|
|
15481
15531
|
}),
|
|
@@ -15488,7 +15538,7 @@ var Main$1 = decorator(Form.create())(function (props) {
|
|
|
15488
15538
|
}, {
|
|
15489
15539
|
id: 'sellerBank',
|
|
15490
15540
|
label: '销售方开户行及账号',
|
|
15491
|
-
node:
|
|
15541
|
+
node: React.createElement(Input, {
|
|
15492
15542
|
readOnly: model === 'prefab',
|
|
15493
15543
|
size: "small"
|
|
15494
15544
|
}),
|
|
@@ -15514,31 +15564,31 @@ var Main$1 = decorator(Form.create())(function (props) {
|
|
|
15514
15564
|
return getFieldDecorator(e.id, e.options)(e.node);
|
|
15515
15565
|
}
|
|
15516
15566
|
}, [props.formRender]);
|
|
15517
|
-
return
|
|
15567
|
+
return React.createElement(Form, null, React.createElement("div", {
|
|
15518
15568
|
className: "kts-invoice-operate-seller"
|
|
15519
|
-
},
|
|
15569
|
+
}, React.createElement("div", {
|
|
15520
15570
|
className: "kts-invoice-operate-seller-message"
|
|
15521
|
-
},
|
|
15571
|
+
}, React.createElement("div", {
|
|
15522
15572
|
className: "kts-invoice-operate-seller-title"
|
|
15523
|
-
},
|
|
15573
|
+
}, React.createElement("label", null, "\u9500\u552E\u65B9")), React.createElement(Descriptions, {
|
|
15524
15574
|
className: "kts-invoice-operate-seller-message-list",
|
|
15525
15575
|
size: "small",
|
|
15526
15576
|
column: 1,
|
|
15527
15577
|
bordered: true
|
|
15528
15578
|
}, formItem.map(function (e, i) {
|
|
15529
|
-
return
|
|
15579
|
+
return React.createElement(Descriptions.Item, {
|
|
15530
15580
|
key: i,
|
|
15531
15581
|
label: e.label
|
|
15532
|
-
},
|
|
15533
|
-
}))),
|
|
15582
|
+
}, React.createElement(Form.Item, null, createFormItem(e)));
|
|
15583
|
+
}))), React.createElement("div", {
|
|
15534
15584
|
className: "kts-invoice-operate-seller-remarks"
|
|
15535
|
-
},
|
|
15585
|
+
}, React.createElement("div", {
|
|
15536
15586
|
className: "kts-invoice-operate-seller-title"
|
|
15537
|
-
},
|
|
15587
|
+
}, React.createElement("label", null, "\u5907\u6CE8")), React.createElement("div", {
|
|
15538
15588
|
className: "kts-invoice-operate-seller-remarks-value"
|
|
15539
15589
|
}, getFieldDecorator('remarks', {
|
|
15540
15590
|
initialValue: props.defaultsellerRemarks
|
|
15541
|
-
})(
|
|
15591
|
+
})(React.createElement(TextArea, null))))));
|
|
15542
15592
|
});
|
|
15543
15593
|
|
|
15544
15594
|
var ImportBuyerButton = (function () {
|
|
@@ -15565,7 +15615,7 @@ var ImportBuyerButton = (function () {
|
|
|
15565
15615
|
};
|
|
15566
15616
|
}())();
|
|
15567
15617
|
}, [controller]);
|
|
15568
|
-
return
|
|
15618
|
+
return React.createElement(React.Fragment, null, controller.getBuyerList && React.createElement(Button, {
|
|
15569
15619
|
type: "link",
|
|
15570
15620
|
icon: "plus-circle",
|
|
15571
15621
|
onClick: onClick
|
|
@@ -15604,29 +15654,29 @@ var BuyerNameInput = (function (props) {
|
|
|
15604
15654
|
var content = React.useMemo(function () {
|
|
15605
15655
|
var _dataSource$recent;
|
|
15606
15656
|
|
|
15607
|
-
return
|
|
15657
|
+
return React.createElement("div", {
|
|
15608
15658
|
className: 'kts-invoice-operate-buyer-name-content'
|
|
15609
|
-
}, loading ?
|
|
15659
|
+
}, loading ? React.createElement("div", {
|
|
15610
15660
|
style: {
|
|
15611
15661
|
textAlign: 'center'
|
|
15612
15662
|
}
|
|
15613
|
-
},
|
|
15663
|
+
}, React.createElement(Spin, null)) : React.createElement(React.Fragment, null, React.createElement("div", {
|
|
15614
15664
|
className: 'kts-invoice-operate-buyer-name-content-block',
|
|
15615
15665
|
style: {
|
|
15616
15666
|
padding: '14px 10px'
|
|
15617
15667
|
}
|
|
15618
|
-
},
|
|
15668
|
+
}, React.createElement("label", {
|
|
15619
15669
|
style: {
|
|
15620
15670
|
marginBottom: 10
|
|
15621
15671
|
}
|
|
15622
|
-
}, "\u6700\u8FD1\u5F00\u5177"),
|
|
15672
|
+
}, "\u6700\u8FD1\u5F00\u5177"), React.createElement("ul", {
|
|
15623
15673
|
className: 'kts-invoice-operate-buyer-name-content-recently-issued'
|
|
15624
|
-
}, !dataSource.recent || dataSource.recent.length <= 0 ?
|
|
15674
|
+
}, !dataSource.recent || dataSource.recent.length <= 0 ? React.createElement(Empty, {
|
|
15625
15675
|
image: Empty.PRESENTED_IMAGE_SIMPLE
|
|
15626
15676
|
}) : (_dataSource$recent = dataSource.recent) === null || _dataSource$recent === void 0 ? void 0 : _dataSource$recent.map(function (e, i) {
|
|
15627
15677
|
var _dataSource$recent$le, _dataSource$recent2;
|
|
15628
15678
|
|
|
15629
|
-
return
|
|
15679
|
+
return React.createElement("li", {
|
|
15630
15680
|
key: i,
|
|
15631
15681
|
onClick: function onClick() {
|
|
15632
15682
|
onClickItem(e);
|
|
@@ -15634,37 +15684,37 @@ var BuyerNameInput = (function (props) {
|
|
|
15634
15684
|
style: {
|
|
15635
15685
|
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)
|
|
15636
15686
|
}
|
|
15637
|
-
},
|
|
15638
|
-
}))),
|
|
15687
|
+
}, React.createElement(MyTag, null, e.buyerName));
|
|
15688
|
+
}))), React.createElement(Divider, {
|
|
15639
15689
|
style: {
|
|
15640
15690
|
margin: "0 6px"
|
|
15641
15691
|
}
|
|
15642
|
-
}),
|
|
15692
|
+
}), React.createElement("div", {
|
|
15643
15693
|
className: 'kts-invoice-operate-buyer-name-content-block',
|
|
15644
15694
|
style: {
|
|
15645
15695
|
padding: '14px 10px 4px'
|
|
15646
15696
|
}
|
|
15647
|
-
},
|
|
15697
|
+
}, React.createElement("label", {
|
|
15648
15698
|
style: {
|
|
15649
15699
|
padding: '0 10px'
|
|
15650
15700
|
}
|
|
15651
|
-
}, "\u9009\u62E9\u516C\u53F8"),
|
|
15701
|
+
}, "\u9009\u62E9\u516C\u53F8"), React.createElement("div", {
|
|
15652
15702
|
style: {
|
|
15653
15703
|
maxHeight: 200,
|
|
15654
15704
|
overflow: "auto"
|
|
15655
15705
|
}
|
|
15656
|
-
}, !dataSource.list || dataSource.list.length <= 0 ?
|
|
15706
|
+
}, !dataSource.list || dataSource.list.length <= 0 ? React.createElement(Empty, {
|
|
15657
15707
|
image: Empty.PRESENTED_IMAGE_SIMPLE
|
|
15658
15708
|
}) : dataSource.list.map(function (e, i) {
|
|
15659
|
-
return
|
|
15709
|
+
return React.createElement("ul", {
|
|
15660
15710
|
key: i,
|
|
15661
15711
|
onClick: function onClick() {
|
|
15662
15712
|
onClickItem(e);
|
|
15663
15713
|
},
|
|
15664
15714
|
className: 'kts-invoice-operate-buyer-name-content-select-company'
|
|
15665
|
-
},
|
|
15715
|
+
}, React.createElement("li", {
|
|
15666
15716
|
title: e.buyerName
|
|
15667
|
-
}, e.buyerName),
|
|
15717
|
+
}, e.buyerName), React.createElement("li", {
|
|
15668
15718
|
title: e.buyerNo
|
|
15669
15719
|
}, e.buyerNo));
|
|
15670
15720
|
})))));
|
|
@@ -15705,7 +15755,7 @@ var BuyerNameInput = (function (props) {
|
|
|
15705
15755
|
}, [visible, props.value]);
|
|
15706
15756
|
|
|
15707
15757
|
if (model === 'prefab' || !autoContainer) {
|
|
15708
|
-
return
|
|
15758
|
+
return React.createElement(Input, {
|
|
15709
15759
|
size: "small",
|
|
15710
15760
|
autoComplete: "off",
|
|
15711
15761
|
value: props.value,
|
|
@@ -15716,14 +15766,14 @@ var BuyerNameInput = (function (props) {
|
|
|
15716
15766
|
});
|
|
15717
15767
|
}
|
|
15718
15768
|
|
|
15719
|
-
return
|
|
15769
|
+
return React.createElement(Popover$1, {
|
|
15720
15770
|
onVisibleChange: setVisible,
|
|
15721
15771
|
overlayClassName: 'kts-invoice-operate-buyer-name-popover',
|
|
15722
15772
|
placement: "bottomLeft",
|
|
15723
15773
|
trigger: "click",
|
|
15724
15774
|
visible: visible,
|
|
15725
15775
|
content: content
|
|
15726
|
-
},
|
|
15776
|
+
}, React.createElement(Input, {
|
|
15727
15777
|
size: "small",
|
|
15728
15778
|
autoComplete: "off",
|
|
15729
15779
|
value: props.value,
|
|
@@ -15801,7 +15851,7 @@ function useDataSource() {
|
|
|
15801
15851
|
}
|
|
15802
15852
|
|
|
15803
15853
|
function MyTag(props) {
|
|
15804
|
-
return
|
|
15854
|
+
return React.createElement("span", {
|
|
15805
15855
|
className: 'kts-invoice-operate-buyer-name-content-tag',
|
|
15806
15856
|
title: props.children
|
|
15807
15857
|
}, props.children);
|
|
@@ -15837,7 +15887,7 @@ var Buyer$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
15837
15887
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
15838
15888
|
|
|
15839
15889
|
_this.render = function () {
|
|
15840
|
-
return
|
|
15890
|
+
return React.createElement(Main$2, _objectSpread2({}, _this.props));
|
|
15841
15891
|
};
|
|
15842
15892
|
|
|
15843
15893
|
return _this;
|
|
@@ -15868,7 +15918,7 @@ var Main$2 = decorator(Form.create())(function (props) {
|
|
|
15868
15918
|
return [{
|
|
15869
15919
|
id: 'buyerName',
|
|
15870
15920
|
label: '购买方名称',
|
|
15871
|
-
node:
|
|
15921
|
+
node: React.createElement(Input, {
|
|
15872
15922
|
size: "small",
|
|
15873
15923
|
autoComplete: "off",
|
|
15874
15924
|
readOnly: model === 'prefab'
|
|
@@ -15882,7 +15932,7 @@ var Main$2 = decorator(Form.create())(function (props) {
|
|
|
15882
15932
|
}, {
|
|
15883
15933
|
id: 'buyerNo',
|
|
15884
15934
|
label: '购买方纳税人识别号',
|
|
15885
|
-
node:
|
|
15935
|
+
node: React.createElement(Input, {
|
|
15886
15936
|
size: "small",
|
|
15887
15937
|
autoComplete: "off",
|
|
15888
15938
|
readOnly: model === 'prefab'
|
|
@@ -15896,7 +15946,7 @@ var Main$2 = decorator(Form.create())(function (props) {
|
|
|
15896
15946
|
}, {
|
|
15897
15947
|
id: 'buyerAddress',
|
|
15898
15948
|
label: '购买方地址及电话',
|
|
15899
|
-
node:
|
|
15949
|
+
node: React.createElement(Input, {
|
|
15900
15950
|
size: "small",
|
|
15901
15951
|
autoComplete: "off",
|
|
15902
15952
|
readOnly: model === 'prefab'
|
|
@@ -15910,7 +15960,7 @@ var Main$2 = decorator(Form.create())(function (props) {
|
|
|
15910
15960
|
}, {
|
|
15911
15961
|
id: 'buyerBank',
|
|
15912
15962
|
label: '购买方开户行及账号',
|
|
15913
|
-
node:
|
|
15963
|
+
node: React.createElement(Input, {
|
|
15914
15964
|
size: "small",
|
|
15915
15965
|
autoComplete: "off",
|
|
15916
15966
|
readOnly: model === 'prefab'
|
|
@@ -15932,7 +15982,7 @@ var Main$2 = decorator(Form.create())(function (props) {
|
|
|
15932
15982
|
if (e.options.rules.some(function (e) {
|
|
15933
15983
|
return e.required;
|
|
15934
15984
|
})) {
|
|
15935
|
-
return
|
|
15985
|
+
return React.createElement(React.Fragment, null, React.createElement(Text$4, {
|
|
15936
15986
|
type: "danger"
|
|
15937
15987
|
}, "*"), e.label);
|
|
15938
15988
|
} else {
|
|
@@ -15942,29 +15992,29 @@ var Main$2 = decorator(Form.create())(function (props) {
|
|
|
15942
15992
|
return e.label;
|
|
15943
15993
|
}
|
|
15944
15994
|
}, []);
|
|
15945
|
-
return
|
|
15995
|
+
return React.createElement(Form, null, React.createElement("div", {
|
|
15946
15996
|
className: "kts-invoice-operate-buyer"
|
|
15947
|
-
},
|
|
15997
|
+
}, React.createElement("div", {
|
|
15948
15998
|
className: "kts-invoice-operate-buyer-message"
|
|
15949
|
-
},
|
|
15999
|
+
}, React.createElement("div", {
|
|
15950
16000
|
className: "kts-invoice-operate-buyer-title"
|
|
15951
|
-
},
|
|
16001
|
+
}, React.createElement("label", null, "\u8D2D\u4E70\u65B9")), React.createElement("div", {
|
|
15952
16002
|
className: "kts-invoice-operate-buyer-message-Import"
|
|
15953
|
-
}, model !== 'prefab' &&
|
|
16003
|
+
}, model !== 'prefab' && React.createElement(ImportBuyerButton, null)), React.createElement(Descriptions, {
|
|
15954
16004
|
className: "kts-invoice-operate-buyer-message-list",
|
|
15955
16005
|
size: "small",
|
|
15956
16006
|
column: 1,
|
|
15957
16007
|
bordered: true
|
|
15958
16008
|
}, formItem.map(function (item, i) {
|
|
15959
|
-
return
|
|
16009
|
+
return React.createElement(Descriptions.Item, {
|
|
15960
16010
|
key: i,
|
|
15961
16011
|
label: getlabel(item)
|
|
15962
|
-
},
|
|
15963
|
-
}))),
|
|
16012
|
+
}, React.createElement(Form.Item, null, getFieldDecorator(item.id, item.options)(autoContainer ? item.id === 'buyerName' ? React.createElement(BuyerNameInput, null) : item.node : item.node)));
|
|
16013
|
+
}))), React.createElement("div", {
|
|
15964
16014
|
className: "kts-invoice-operate-buyer-password"
|
|
15965
|
-
},
|
|
16015
|
+
}, React.createElement("div", {
|
|
15966
16016
|
className: "kts-invoice-operate-buyer-title"
|
|
15967
|
-
},
|
|
16017
|
+
}, React.createElement("label", null, "\u5BC6\u7801\u533A")), React.createElement("div", null))));
|
|
15968
16018
|
});
|
|
15969
16019
|
|
|
15970
16020
|
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";
|
|
@@ -15981,21 +16031,21 @@ var Sign = decorator(Form.create())(function (props) {
|
|
|
15981
16031
|
}, []); // 注册 form
|
|
15982
16032
|
|
|
15983
16033
|
controller.useForm('sign', form);
|
|
15984
|
-
return
|
|
16034
|
+
return React.createElement("div", {
|
|
15985
16035
|
className: "kts-invoice-operate-sign"
|
|
15986
|
-
},
|
|
16036
|
+
}, React.createElement(Form, _objectSpread2({}, formItemLayout), React.createElement("div", null, React.createElement(Form.Item, {
|
|
15987
16037
|
label: "\u6536\u6B3E\u4EBA"
|
|
15988
16038
|
}, getFieldDecorator('payee', {
|
|
15989
16039
|
initialValue: props.defaultPayee
|
|
15990
|
-
})(
|
|
16040
|
+
})(React.createElement(Input, {
|
|
15991
16041
|
size: "small"
|
|
15992
|
-
})))),
|
|
16042
|
+
})))), React.createElement("div", null, React.createElement(Form.Item, {
|
|
15993
16043
|
label: "\u590D\u6838\u4EBA"
|
|
15994
16044
|
}, getFieldDecorator('reviewer', {
|
|
15995
16045
|
initialValue: props.defaultReviewer
|
|
15996
|
-
})(
|
|
16046
|
+
})(React.createElement(Input, {
|
|
15997
16047
|
size: "small"
|
|
15998
|
-
})))),
|
|
16048
|
+
})))), React.createElement("div", null, React.createElement(Form.Item, {
|
|
15999
16049
|
label: "\u5F00\u7968\u4EBA"
|
|
16000
16050
|
}, getFieldDecorator('issuer', {
|
|
16001
16051
|
initialValue: props.defaultIssuer,
|
|
@@ -16003,7 +16053,7 @@ var Sign = decorator(Form.create())(function (props) {
|
|
|
16003
16053
|
required: true,
|
|
16004
16054
|
message: '请输入开票人'
|
|
16005
16055
|
}]
|
|
16006
|
-
})(
|
|
16056
|
+
})(React.createElement(Input, {
|
|
16007
16057
|
size: "small"
|
|
16008
16058
|
}))))));
|
|
16009
16059
|
});
|
|
@@ -16032,21 +16082,21 @@ var InvoiceHeaderDigtal = decorator(Form.create())(function (props) {
|
|
|
16032
16082
|
return '电子发票(增值税专用发票)';
|
|
16033
16083
|
}, [props.title]);
|
|
16034
16084
|
controller.useForm('invoiceHeader', form);
|
|
16035
|
-
return
|
|
16085
|
+
return React.createElement("div", {
|
|
16036
16086
|
className: "kts-invoice-operate-invoice-digtal-header"
|
|
16037
|
-
},
|
|
16087
|
+
}, React.createElement("div", {
|
|
16038
16088
|
className: "digtal-header-title"
|
|
16039
16089
|
}, title), form.getFieldDecorator('tag', {
|
|
16040
16090
|
initialValue: props.defaultTag
|
|
16041
|
-
})(
|
|
16091
|
+
})(React.createElement(Tag, null)), React.createElement("div", {
|
|
16042
16092
|
className: "digtal-header-fields"
|
|
16043
16093
|
}, form.getFieldDecorator('no', {
|
|
16044
16094
|
initialValue: props.defaultNo
|
|
16045
|
-
})(
|
|
16095
|
+
})(React.createElement(Field, {
|
|
16046
16096
|
title: "\u53D1\u7968\u53F7\u7801\uFF1A"
|
|
16047
16097
|
})), form.getFieldDecorator('invoicingDate', {
|
|
16048
16098
|
initialValue: props.defaultInvoicingDate
|
|
16049
|
-
})(
|
|
16099
|
+
})(React.createElement(Field, {
|
|
16050
16100
|
title: "\u5F00\u7968\u65E5\u671F\uFF1A"
|
|
16051
16101
|
}))));
|
|
16052
16102
|
});
|
|
@@ -16071,15 +16121,15 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
16071
16121
|
value = _this$props.value;
|
|
16072
16122
|
|
|
16073
16123
|
if (value) {
|
|
16074
|
-
return
|
|
16124
|
+
return React.createElement("div", {
|
|
16075
16125
|
className: "digtal-header-field"
|
|
16076
|
-
},
|
|
16126
|
+
}, React.createElement("div", {
|
|
16077
16127
|
className: "digtal-header-field-title"
|
|
16078
|
-
}, title),
|
|
16128
|
+
}, title), React.createElement("div", {
|
|
16079
16129
|
className: "digtal-header-field-value"
|
|
16080
16130
|
}, value));
|
|
16081
16131
|
} else {
|
|
16082
|
-
return
|
|
16132
|
+
return React.createElement(React.Fragment, null);
|
|
16083
16133
|
}
|
|
16084
16134
|
}
|
|
16085
16135
|
}]);
|
|
@@ -16101,9 +16151,9 @@ var Tag = /*#__PURE__*/function (_React$Component2) {
|
|
|
16101
16151
|
_createClass(Tag, [{
|
|
16102
16152
|
key: "render",
|
|
16103
16153
|
value: function render() {
|
|
16104
|
-
return this.props.value ?
|
|
16154
|
+
return this.props.value ? React.createElement("div", {
|
|
16105
16155
|
className: "digtal-header-tag"
|
|
16106
|
-
}, this.props.value) :
|
|
16156
|
+
}, this.props.value) : React.createElement(React.Fragment, null);
|
|
16107
16157
|
}
|
|
16108
16158
|
}]);
|
|
16109
16159
|
|
|
@@ -16279,57 +16329,57 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
16279
16329
|
return rulesMap[field] || defaultRules;
|
|
16280
16330
|
}, [rulesMap, isReadOnly, isReadOnly]);
|
|
16281
16331
|
controller.useForm('stakeholder', form);
|
|
16282
|
-
return
|
|
16332
|
+
return React.createElement("div", {
|
|
16283
16333
|
className: classNames("kts-invoice-operate-invoice-digtal-stakeholder", {
|
|
16284
16334
|
readOnly: readOnly
|
|
16285
16335
|
})
|
|
16286
|
-
},
|
|
16287
|
-
return
|
|
16288
|
-
}), !readOnly &&
|
|
16336
|
+
}, React.createElement("div", null, '购买方信息'.split('').map(function (e) {
|
|
16337
|
+
return React.createElement("span", null, e);
|
|
16338
|
+
}), !readOnly && React.createElement(Icon, {
|
|
16289
16339
|
className: "digtal-stakeholder-expand-button",
|
|
16290
16340
|
component: isExpand ? SvgArrowUp : SvgArrowDown,
|
|
16291
16341
|
onClick: onExpand
|
|
16292
|
-
})),
|
|
16342
|
+
})), React.createElement("div", null, React.createElement(Form, {
|
|
16293
16343
|
className: "digtal-stakeholder-form"
|
|
16294
|
-
},
|
|
16344
|
+
}, React.createElement(Row, {
|
|
16295
16345
|
gutter: [16, 0]
|
|
16296
|
-
}, props.isNaturalPerson === true &&
|
|
16346
|
+
}, props.isNaturalPerson === true && React.createElement(Col, {
|
|
16297
16347
|
span: 24
|
|
16298
|
-
},
|
|
16348
|
+
}, React.createElement(Form.Item, {
|
|
16299
16349
|
label: "\u8D2D\u4E70\u65B9\u4FE1\u606F",
|
|
16300
16350
|
colon: false
|
|
16301
|
-
}, getFieldDecorator('naturalPersonFlag', {})(
|
|
16351
|
+
}, getFieldDecorator('naturalPersonFlag', {})(React.createElement(NaturalPersonFlag, {
|
|
16302
16352
|
readOnly: isReadOnly('naturalPersonFlag')
|
|
16303
|
-
})))),
|
|
16353
|
+
})))), React.createElement(Col, {
|
|
16304
16354
|
span: 24
|
|
16305
|
-
},
|
|
16355
|
+
}, React.createElement(Form.Item, {
|
|
16306
16356
|
label: "\u540D\u79F0",
|
|
16307
16357
|
colon: false
|
|
16308
16358
|
}, getFieldDecorator('buyerName', {
|
|
16309
16359
|
rules: getRules('buyerName', RULES.companyName('购买方名称'))
|
|
16310
|
-
})(
|
|
16360
|
+
})(React.createElement(BuyerNameInput$1, {
|
|
16311
16361
|
myform: form,
|
|
16312
16362
|
fieldName: 'buyerName',
|
|
16313
16363
|
readOnly: isReadOnly('buyerName'),
|
|
16314
16364
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
16315
16365
|
autoComplete: "off",
|
|
16316
|
-
suffix: isShowImportButton === true &&
|
|
16366
|
+
suffix: isShowImportButton === true && React.createElement(Button$1, {
|
|
16317
16367
|
type: 'link',
|
|
16318
16368
|
style: {
|
|
16319
16369
|
padding: 0,
|
|
16320
16370
|
width: 20,
|
|
16321
16371
|
height: '100%'
|
|
16322
16372
|
},
|
|
16323
|
-
icon:
|
|
16373
|
+
icon: React.createElement(Icon, {
|
|
16324
16374
|
component: SvgPlus
|
|
16325
16375
|
}),
|
|
16326
16376
|
onClick: function onClick() {
|
|
16327
16377
|
onClickImportButton && onClickImportButton(controller);
|
|
16328
16378
|
}
|
|
16329
16379
|
})
|
|
16330
|
-
})))),
|
|
16380
|
+
})))), React.createElement(Col, {
|
|
16331
16381
|
span: 24
|
|
16332
|
-
},
|
|
16382
|
+
}, React.createElement(Form.Item, {
|
|
16333
16383
|
label: "\u7EDF\u4E00\u793E\u4F1A\u4FE1\u7528\u4EE3\u7801/\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7",
|
|
16334
16384
|
colon: false
|
|
16335
16385
|
}, getFieldDecorator('buyerTaxId', {
|
|
@@ -16337,15 +16387,15 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
16337
16387
|
required: !isVatNormal,
|
|
16338
16388
|
message: '购买方纳税人识别号必填'
|
|
16339
16389
|
}].concat(_toConsumableArray(RULES.taxId('购买方纳税人识别号'))))
|
|
16340
|
-
})(
|
|
16390
|
+
})(React.createElement(BuyerNameInput$1, {
|
|
16341
16391
|
myform: form,
|
|
16342
16392
|
fieldName: 'buyerTaxId',
|
|
16343
16393
|
readOnly: isReadOnly('buyerTaxId'),
|
|
16344
16394
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
16345
16395
|
autoComplete: "off"
|
|
16346
|
-
})))), isExpand &&
|
|
16396
|
+
})))), isExpand && React.createElement(React.Fragment, null, React.createElement(Col, {
|
|
16347
16397
|
span: 15
|
|
16348
|
-
},
|
|
16398
|
+
}, React.createElement(Form.Item, {
|
|
16349
16399
|
label: "\u8D2D\u4E70\u65B9\u5730\u5740",
|
|
16350
16400
|
colon: false
|
|
16351
16401
|
}, getFieldDecorator('buyerAddress', {
|
|
@@ -16353,77 +16403,77 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
16353
16403
|
max: 100,
|
|
16354
16404
|
message: '购买方地址内容超长'
|
|
16355
16405
|
}])
|
|
16356
|
-
})(
|
|
16406
|
+
})(React.createElement(MyInput$1, {
|
|
16357
16407
|
readOnly: isReadOnly('buyerAddress'),
|
|
16358
16408
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
16359
16409
|
autoComplete: "off"
|
|
16360
|
-
})))),
|
|
16410
|
+
})))), React.createElement(Col, {
|
|
16361
16411
|
span: 9
|
|
16362
|
-
},
|
|
16412
|
+
}, React.createElement(Form.Item, {
|
|
16363
16413
|
label: "\u7535\u8BDD",
|
|
16364
16414
|
colon: false
|
|
16365
16415
|
}, getFieldDecorator('buyerPhone', {
|
|
16366
16416
|
rules: getRules('buyerPhone', RULES.buyerTelPhone('购买方电话'))
|
|
16367
|
-
})(
|
|
16417
|
+
})(React.createElement(MyInput$1, {
|
|
16368
16418
|
readOnly: isReadOnly('buyerPhone'),
|
|
16369
16419
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
16370
16420
|
autoComplete: "off"
|
|
16371
|
-
})))),
|
|
16421
|
+
})))), React.createElement(Col, {
|
|
16372
16422
|
span: 12
|
|
16373
|
-
},
|
|
16423
|
+
}, React.createElement(Form.Item, {
|
|
16374
16424
|
label: "\u8D2D\u4E70\u65B9\u5F00\u6237\u94F6\u884C",
|
|
16375
16425
|
colon: false
|
|
16376
16426
|
}, getFieldDecorator('buyerBank', {
|
|
16377
16427
|
rules: getRules('buyerBank', RULES.bankName('购买方开户银行'))
|
|
16378
|
-
})(
|
|
16428
|
+
})(React.createElement(MyInput$1, {
|
|
16379
16429
|
readOnly: isReadOnly('buyerBank'),
|
|
16380
16430
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
16381
16431
|
autoComplete: "off"
|
|
16382
|
-
})))),
|
|
16432
|
+
})))), React.createElement(Col, {
|
|
16383
16433
|
span: 12
|
|
16384
|
-
},
|
|
16434
|
+
}, React.createElement(Form.Item, {
|
|
16385
16435
|
label: "\u94F6\u884C\u8D26\u53F7",
|
|
16386
16436
|
colon: false
|
|
16387
16437
|
}, getFieldDecorator('buyerAccount', {
|
|
16388
16438
|
rules: getRules('buyerAccount', RULES.bankAccount('购买方银行账号'))
|
|
16389
|
-
})(
|
|
16439
|
+
})(React.createElement(MyInput$1, {
|
|
16390
16440
|
readOnly: isReadOnly('buyerAccount'),
|
|
16391
16441
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
16392
16442
|
autoComplete: "off"
|
|
16393
|
-
})))))))),
|
|
16394
|
-
return
|
|
16395
|
-
}), !readOnly &&
|
|
16443
|
+
})))))))), React.createElement("div", null, '销售方信息'.split('').map(function (e) {
|
|
16444
|
+
return React.createElement("span", null, e);
|
|
16445
|
+
}), !readOnly && React.createElement(Icon, {
|
|
16396
16446
|
className: "digtal-stakeholder-expand-button",
|
|
16397
16447
|
component: isExpand ? SvgArrowUp : SvgArrowDown,
|
|
16398
16448
|
onClick: onExpand
|
|
16399
|
-
})),
|
|
16449
|
+
})), React.createElement("div", null, !readOnly && props.lineCredit && React.createElement("div", {
|
|
16400
16450
|
style: {
|
|
16401
16451
|
marginTop: 20
|
|
16402
16452
|
}
|
|
16403
|
-
},
|
|
16453
|
+
}, React.createElement(Tooltip$1, {
|
|
16404
16454
|
trigger: "click",
|
|
16405
16455
|
title: props.lineCredit
|
|
16406
|
-
},
|
|
16456
|
+
}, React.createElement(Button$1, {
|
|
16407
16457
|
type: "link"
|
|
16408
|
-
}, "\u67E5\u770B\u5F53\u524D\u53EF\u7528\u6388\u4FE1\u989D\u5EA6"))),
|
|
16458
|
+
}, "\u67E5\u770B\u5F53\u524D\u53EF\u7528\u6388\u4FE1\u989D\u5EA6"))), React.createElement(Form, {
|
|
16409
16459
|
className: "digtal-stakeholder-form"
|
|
16410
|
-
},
|
|
16460
|
+
}, React.createElement(Row, {
|
|
16411
16461
|
gutter: [16, 0]
|
|
16412
|
-
},
|
|
16462
|
+
}, React.createElement(Col, {
|
|
16413
16463
|
span: 24
|
|
16414
|
-
},
|
|
16464
|
+
}, React.createElement(Form.Item, {
|
|
16415
16465
|
label: "\u540D\u79F0",
|
|
16416
16466
|
colon: false
|
|
16417
16467
|
}, getFieldDecorator('supplierName', {
|
|
16418
16468
|
rules: getRules('supplierName', RULES.companyName('销售方名称')),
|
|
16419
16469
|
getValueFromEvent: formatCompanyName
|
|
16420
|
-
})(
|
|
16470
|
+
})(React.createElement(MyInput$1, {
|
|
16421
16471
|
readOnly: isReadOnly('supplierName'),
|
|
16422
16472
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
16423
16473
|
autoComplete: "off"
|
|
16424
|
-
})))),
|
|
16474
|
+
})))), React.createElement(Col, {
|
|
16425
16475
|
span: 24
|
|
16426
|
-
},
|
|
16476
|
+
}, React.createElement(Form.Item, {
|
|
16427
16477
|
label: "\u7EDF\u4E00\u793E\u4F1A\u4FE1\u7528\u4EE3\u7801/\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7",
|
|
16428
16478
|
colon: false
|
|
16429
16479
|
}, getFieldDecorator('supplierTaxId', {
|
|
@@ -16431,13 +16481,13 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
16431
16481
|
required: true,
|
|
16432
16482
|
message: '销售方纳税人识别号必填'
|
|
16433
16483
|
}].concat(_toConsumableArray(RULES.taxId('销售方纳税人识别号'))))
|
|
16434
|
-
})(
|
|
16484
|
+
})(React.createElement(MyInput$1, {
|
|
16435
16485
|
readOnly: isReadOnly('supplierTaxId'),
|
|
16436
16486
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
16437
16487
|
autoComplete: "off"
|
|
16438
|
-
})))), isExpand &&
|
|
16488
|
+
})))), isExpand && React.createElement(React.Fragment, null, React.createElement(Col, {
|
|
16439
16489
|
span: 15
|
|
16440
|
-
},
|
|
16490
|
+
}, React.createElement(Form.Item, {
|
|
16441
16491
|
label: "\u9500\u552E\u65B9\u5730\u5740",
|
|
16442
16492
|
colon: false
|
|
16443
16493
|
}, getFieldDecorator('sellerAddress', {
|
|
@@ -16445,40 +16495,40 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
16445
16495
|
max: 300,
|
|
16446
16496
|
message: '销售方地址内容超长'
|
|
16447
16497
|
}])
|
|
16448
|
-
})(
|
|
16498
|
+
})(React.createElement(MyInput$1, {
|
|
16449
16499
|
readOnly: isReadOnly('sellerAddress'),
|
|
16450
16500
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
16451
16501
|
autoComplete: "off"
|
|
16452
|
-
})))),
|
|
16502
|
+
})))), React.createElement(Col, {
|
|
16453
16503
|
span: 9
|
|
16454
|
-
},
|
|
16504
|
+
}, React.createElement(Form.Item, {
|
|
16455
16505
|
label: "\u7535\u8BDD",
|
|
16456
16506
|
colon: false
|
|
16457
16507
|
}, getFieldDecorator('sellerPhone', {
|
|
16458
16508
|
rules: getRules('sellerPhone', RULES.sellerTelPhone('销售方电话'))
|
|
16459
|
-
})(
|
|
16509
|
+
})(React.createElement(MyInput$1, {
|
|
16460
16510
|
readOnly: isReadOnly('sellerPhone'),
|
|
16461
16511
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
16462
16512
|
autoComplete: "off"
|
|
16463
|
-
})))),
|
|
16513
|
+
})))), React.createElement(Col, {
|
|
16464
16514
|
span: 12
|
|
16465
|
-
},
|
|
16515
|
+
}, React.createElement(Form.Item, {
|
|
16466
16516
|
label: "\u9500\u552E\u65B9\u5F00\u6237\u94F6\u884C",
|
|
16467
16517
|
colon: false
|
|
16468
16518
|
}, getFieldDecorator('sellerBank', {
|
|
16469
16519
|
rules: getRules('sellerBank', RULES.bankName('销售方开户银行'))
|
|
16470
|
-
})(
|
|
16520
|
+
})(React.createElement(MyInput$1, {
|
|
16471
16521
|
readOnly: isReadOnly('sellerBank'),
|
|
16472
16522
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
16473
16523
|
autoComplete: "off"
|
|
16474
|
-
})))),
|
|
16524
|
+
})))), React.createElement(Col, {
|
|
16475
16525
|
span: 12
|
|
16476
|
-
},
|
|
16526
|
+
}, React.createElement(Form.Item, {
|
|
16477
16527
|
label: "\u94F6\u884C\u8D26\u53F7",
|
|
16478
16528
|
colon: false
|
|
16479
16529
|
}, getFieldDecorator('sellerAccount', {
|
|
16480
16530
|
rules: getRules('sellerAccount', RULES.bankAccount('销售方银行账号'))
|
|
16481
|
-
})(
|
|
16531
|
+
})(React.createElement(MyInput$1, {
|
|
16482
16532
|
readOnly: isReadOnly('sellerAccount'),
|
|
16483
16533
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
16484
16534
|
autoComplete: "off"
|
|
@@ -16499,7 +16549,7 @@ function NaturalPersonFlag(props) {
|
|
|
16499
16549
|
React.useEffect(function () {
|
|
16500
16550
|
setValue(props.value || 'COMPANY');
|
|
16501
16551
|
}, [props.value]);
|
|
16502
|
-
return
|
|
16552
|
+
return React.createElement(Checkbox$1, {
|
|
16503
16553
|
disabled: props.readOnly,
|
|
16504
16554
|
checked: value === 'NATURAL',
|
|
16505
16555
|
onChange: onChange
|
|
@@ -16602,8 +16652,8 @@ function BuyerNameInput$1(props) {
|
|
|
16602
16652
|
return _ref.apply(this, arguments);
|
|
16603
16653
|
};
|
|
16604
16654
|
}(), [autoComplete.onBuyerNameSearch, fieldName]);
|
|
16605
|
-
if (props.readOnly) return
|
|
16606
|
-
return
|
|
16655
|
+
if (props.readOnly) return React.createElement("span", null, props.value);
|
|
16656
|
+
return React.createElement(AutoComplete$1, {
|
|
16607
16657
|
onSearch: onSearch,
|
|
16608
16658
|
options: options.map(function (e) {
|
|
16609
16659
|
return {
|
|
@@ -16612,7 +16662,7 @@ function BuyerNameInput$1(props) {
|
|
|
16612
16662
|
}),
|
|
16613
16663
|
onChange: onChangeAutoComplete,
|
|
16614
16664
|
value: props.value
|
|
16615
|
-
},
|
|
16665
|
+
}, React.createElement(Input$1, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
16616
16666
|
style: _objectSpread2({
|
|
16617
16667
|
width: '100%'
|
|
16618
16668
|
}, props.style)
|
|
@@ -16636,9 +16686,9 @@ var MyInput$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
16636
16686
|
var props = this.props;
|
|
16637
16687
|
|
|
16638
16688
|
if (props.readOnly) {
|
|
16639
|
-
return
|
|
16689
|
+
return React.createElement("span", null, props.value);
|
|
16640
16690
|
} else {
|
|
16641
|
-
return
|
|
16691
|
+
return React.createElement(Input$1, _objectSpread2({}, props));
|
|
16642
16692
|
}
|
|
16643
16693
|
}
|
|
16644
16694
|
}]);
|
|
@@ -16695,43 +16745,43 @@ var SignDigtal = decorator(Form.create())(function (props) {
|
|
|
16695
16745
|
controller.useForm('sign', form);
|
|
16696
16746
|
|
|
16697
16747
|
if (readOnly) {
|
|
16698
|
-
return
|
|
16748
|
+
return React.createElement("div", {
|
|
16699
16749
|
className: "kts-invoice-operate-sign-digtal-readOnly"
|
|
16700
|
-
},
|
|
16750
|
+
}, React.createElement("div", {
|
|
16701
16751
|
className: 'sign-digtal-readOnly-cont'
|
|
16702
|
-
},
|
|
16752
|
+
}, React.createElement("div", null, React.createElement("span", null, "\u5907"), React.createElement("span", null, "\u6CE8")), React.createElement("div", null, getFieldDecorator('remarks', {
|
|
16703
16753
|
initialValue: props.defaultRemark
|
|
16704
|
-
})(isEnables('remarks') ?
|
|
16754
|
+
})(isEnables('remarks') ? React.createElement(Input$1.TextArea, {
|
|
16705
16755
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
16706
16756
|
style: {
|
|
16707
16757
|
height: '100%'
|
|
16708
16758
|
}
|
|
16709
|
-
}) :
|
|
16759
|
+
}) : React.createElement(MyDiv$1, null)))), React.createElement(Form, {
|
|
16710
16760
|
layout: 'inline',
|
|
16711
16761
|
className: 'digtal-readOnly-form'
|
|
16712
|
-
},
|
|
16762
|
+
}, React.createElement(Form.Item, {
|
|
16713
16763
|
label: "\u5F00\u7968\u4EBA"
|
|
16714
16764
|
}, getFieldDecorator('drawer', {
|
|
16715
16765
|
initialValue: props.defaultRemark
|
|
16716
|
-
})(
|
|
16766
|
+
})(React.createElement(MyDiv$1, null)))));
|
|
16717
16767
|
} else {
|
|
16718
|
-
return
|
|
16768
|
+
return React.createElement("div", {
|
|
16719
16769
|
className: "kts-invoice-operate-sign-digtal"
|
|
16720
|
-
},
|
|
16770
|
+
}, React.createElement("div", {
|
|
16721
16771
|
className: 'sign-digtal-label'
|
|
16722
|
-
}, "\u5907\u6CE8\u4FE1\u606F"),
|
|
16772
|
+
}, "\u5907\u6CE8\u4FE1\u606F"), React.createElement(Form, null, React.createElement(Form.Item, {
|
|
16723
16773
|
label: "\u5907\u6CE8"
|
|
16724
16774
|
}, getFieldDecorator('remarks', {
|
|
16725
16775
|
initialValue: props.defaultRemark
|
|
16726
|
-
})(
|
|
16776
|
+
})(React.createElement(Input$1.TextArea, {
|
|
16727
16777
|
readOnly: isReadOnly('remarks'),
|
|
16728
16778
|
autoSize: true,
|
|
16729
16779
|
placeholder: "\u8BF7\u8F93\u5165"
|
|
16730
|
-
}))),
|
|
16780
|
+
}))), React.createElement(Form.Item, {
|
|
16731
16781
|
label: "\u5F00\u7968\u4EBA"
|
|
16732
16782
|
}, getFieldDecorator('drawer', {
|
|
16733
16783
|
initialValue: props.defaultIssuer
|
|
16734
|
-
})(
|
|
16784
|
+
})(React.createElement(Input$1, {
|
|
16735
16785
|
readOnly: isReadOnly('drawer'),
|
|
16736
16786
|
style: {
|
|
16737
16787
|
width: 313
|
|
@@ -16755,7 +16805,7 @@ var MyDiv$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
16755
16805
|
_createClass(MyDiv, [{
|
|
16756
16806
|
key: "render",
|
|
16757
16807
|
value: function render() {
|
|
16758
|
-
return
|
|
16808
|
+
return React.createElement("div", null, this.props.value);
|
|
16759
16809
|
}
|
|
16760
16810
|
}]);
|
|
16761
16811
|
|
|
@@ -16856,12 +16906,12 @@ function TableVirtual$1 (props) {
|
|
|
16856
16906
|
if (!cont) return;
|
|
16857
16907
|
cont.scrollTop = 0;
|
|
16858
16908
|
}, [(_props$dataSource2 = props.dataSource) === null || _props$dataSource2 === void 0 ? void 0 : _props$dataSource2.length]);
|
|
16859
|
-
return
|
|
16909
|
+
return React.createElement("span", {
|
|
16860
16910
|
className: "kts-invoice-operate-goods-table-virtual",
|
|
16861
16911
|
ref: function ref(e) {
|
|
16862
16912
|
setSelf(e);
|
|
16863
16913
|
}
|
|
16864
|
-
},
|
|
16914
|
+
}, React.createElement(TableManual, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
16865
16915
|
dataSource: dataSource,
|
|
16866
16916
|
// 新版本Table会有输入框无法连续输入的问题,先兼容老版本
|
|
16867
16917
|
tableComponent: Table
|
|
@@ -16974,51 +17024,51 @@ var Statistics$1 = (function () {
|
|
|
16974
17024
|
});
|
|
16975
17025
|
return sum.done().toNumber();
|
|
16976
17026
|
}, []);
|
|
16977
|
-
return
|
|
17027
|
+
return React.createElement("div", {
|
|
16978
17028
|
className: 'kts-invoice-operate-goods-list-statistics-digtal'
|
|
16979
|
-
},
|
|
17029
|
+
}, React.createElement("div", {
|
|
16980
17030
|
className: 'statistics-digtal-total'
|
|
16981
|
-
},
|
|
17031
|
+
}, React.createElement("div", null, "\u5408\u8BA1"), React.createElement("div", {
|
|
16982
17032
|
style: {
|
|
16983
17033
|
flex: 1
|
|
16984
17034
|
}
|
|
16985
|
-
}),
|
|
17035
|
+
}), React.createElement("div", {
|
|
16986
17036
|
style: {
|
|
16987
17037
|
width: 119,
|
|
16988
17038
|
textAlign: 'right',
|
|
16989
17039
|
paddingRight: 15
|
|
16990
17040
|
}
|
|
16991
|
-
}, "\xA5", parseFloat(isTaxIncluded ? lineAmountIncludeTax : lineAmountExcludeTax).toFixed(2)),
|
|
17041
|
+
}, "\xA5", parseFloat(isTaxIncluded ? lineAmountIncludeTax : lineAmountExcludeTax).toFixed(2)), React.createElement("div", {
|
|
16992
17042
|
style: {
|
|
16993
17043
|
width: 119,
|
|
16994
17044
|
textAlign: 'right',
|
|
16995
17045
|
paddingRight: 15
|
|
16996
17046
|
}
|
|
16997
|
-
}, "\xA5", parseFloat(taxAmount).toFixed(2))),
|
|
17047
|
+
}, "\xA5", parseFloat(taxAmount).toFixed(2))), React.createElement("div", {
|
|
16998
17048
|
className: 'statistics-digtal-total-tax'
|
|
16999
|
-
},
|
|
17049
|
+
}, React.createElement("div", null, "\u4EF7\u7A0E\u5408\u8BA1\uFF08\u5927\u5199\uFF09"), React.createElement("div", {
|
|
17000
17050
|
style: {
|
|
17001
17051
|
paddingLeft: 30
|
|
17002
17052
|
}
|
|
17003
|
-
},
|
|
17053
|
+
}, React.createElement(Icon, {
|
|
17004
17054
|
component: SvgFork
|
|
17005
|
-
}),
|
|
17055
|
+
}), React.createElement("span", {
|
|
17006
17056
|
style: {
|
|
17007
17057
|
fontWeight: 'bold',
|
|
17008
17058
|
marginLeft: 4
|
|
17009
17059
|
}
|
|
17010
17060
|
}, nzhcn$1.toMoney(lineAmountIncludeTax, {
|
|
17011
17061
|
outSymbol: false
|
|
17012
|
-
}))),
|
|
17062
|
+
}))), React.createElement("div", {
|
|
17013
17063
|
style: {
|
|
17014
17064
|
flex: 1
|
|
17015
17065
|
}
|
|
17016
|
-
}),
|
|
17066
|
+
}), React.createElement("div", {
|
|
17017
17067
|
style: {
|
|
17018
17068
|
width: 90,
|
|
17019
17069
|
color: '#9F613E'
|
|
17020
17070
|
}
|
|
17021
|
-
}, "\uFF08\u5C0F\u5199\uFF09"),
|
|
17071
|
+
}, "\uFF08\u5C0F\u5199\uFF09"), React.createElement("div", {
|
|
17022
17072
|
style: {
|
|
17023
17073
|
width: 119
|
|
17024
17074
|
}
|
|
@@ -17077,10 +17127,10 @@ var AddRowButton$1 = (function () {
|
|
|
17077
17127
|
}
|
|
17078
17128
|
}, _callee);
|
|
17079
17129
|
})), [controller, rootElement]);
|
|
17080
|
-
if (isAddRow === false) return
|
|
17081
|
-
if (model === 'prefab') return
|
|
17082
|
-
if (model === 'readOnly') return
|
|
17083
|
-
return
|
|
17130
|
+
if (isAddRow === false) return React.createElement(React.Fragment, null);
|
|
17131
|
+
if (model === 'prefab') return React.createElement(React.Fragment, null);
|
|
17132
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
17133
|
+
return React.createElement(Button$1, {
|
|
17084
17134
|
size: 'small',
|
|
17085
17135
|
type: 'primary',
|
|
17086
17136
|
onClick: onClick,
|
|
@@ -17233,11 +17283,11 @@ var TaxIncludedSwitch$1 = (function () {
|
|
|
17233
17283
|
};
|
|
17234
17284
|
}())();
|
|
17235
17285
|
}, []);
|
|
17236
|
-
return
|
|
17286
|
+
return React.createElement("span", null, React.createElement("label", {
|
|
17237
17287
|
style: {
|
|
17238
17288
|
marginRight: 2
|
|
17239
17289
|
}
|
|
17240
|
-
}, "\u542B\u7A0E"),
|
|
17290
|
+
}, "\u542B\u7A0E"), React.createElement(Switch, {
|
|
17241
17291
|
disabled: isSwitchTax === false,
|
|
17242
17292
|
checked: isTaxIncluded,
|
|
17243
17293
|
defaultChecked: true,
|
|
@@ -17333,12 +17383,12 @@ function Search$1() {
|
|
|
17333
17383
|
};
|
|
17334
17384
|
}());
|
|
17335
17385
|
}, [value, controller]);
|
|
17336
|
-
return
|
|
17386
|
+
return React.createElement(Input$1, {
|
|
17337
17387
|
readOnly: readOnly,
|
|
17338
17388
|
value: value,
|
|
17339
17389
|
className: "kts-invoice-operate-goods-list-search",
|
|
17340
17390
|
placeholder: "\u8BF7\u60A8\u8F93\u5165\u9879\u76EE\u540D\u79F0\u3001\u89C4\u683C\u578B\u53F7\u3001\u91D1\u989D(".concat(isTaxIncluded ? '含税' : '不含税', ")\u641C\u7D22"),
|
|
17341
|
-
prefix:
|
|
17391
|
+
prefix: React.createElement(Icon$1, {
|
|
17342
17392
|
component: SvgMagnifier$1,
|
|
17343
17393
|
style: {
|
|
17344
17394
|
color: "#b8b8b8"
|
|
@@ -17383,12 +17433,12 @@ function TableRow$1(props) {
|
|
|
17383
17433
|
return undefined;
|
|
17384
17434
|
}
|
|
17385
17435
|
}, [rowKey, goodsMap]);
|
|
17386
|
-
return rowKey === current && current ?
|
|
17436
|
+
return rowKey === current && current ? React.createElement("tr", {
|
|
17387
17437
|
style: {
|
|
17388
17438
|
height: 50,
|
|
17389
17439
|
position: 'relative'
|
|
17390
17440
|
}
|
|
17391
|
-
},
|
|
17441
|
+
}, React.createElement("div", {
|
|
17392
17442
|
style: {
|
|
17393
17443
|
height: 0.5,
|
|
17394
17444
|
width: '100%',
|
|
@@ -17396,9 +17446,7 @@ function TableRow$1(props) {
|
|
|
17396
17446
|
position: 'absolute',
|
|
17397
17447
|
bottom: 0
|
|
17398
17448
|
}
|
|
17399
|
-
})) :
|
|
17400
|
-
/*#__PURE__*/
|
|
17401
|
-
// <tr {...props} className={classnames(props.className, discount, (rowKey === container && current) ? 'kts-invoice-operate-goods-list-itemName-drag-container' : '')} />
|
|
17449
|
+
})) : // <tr {...props} className={classnames(props.className, discount, (rowKey === container && current) ? 'kts-invoice-operate-goods-list-itemName-drag-container' : '')} />
|
|
17402
17450
|
React.createElement("tr", _objectSpread2(_objectSpread2({}, props), {}, {
|
|
17403
17451
|
className: classNames(props.className, discount, rowKey === container && current ? 'kts-invoice-operate-goods-list-itemName-drag-container-' + site : undefined)
|
|
17404
17452
|
}));
|
|
@@ -17438,9 +17486,9 @@ var TitleText$1 = (function (props) {
|
|
|
17438
17486
|
return !!e.required;
|
|
17439
17487
|
})) || props.required;
|
|
17440
17488
|
}, [rules, props.required]);
|
|
17441
|
-
return
|
|
17489
|
+
return React.createElement(React.Fragment, null, required ? React.createElement(Text$5, {
|
|
17442
17490
|
type: "danger"
|
|
17443
|
-
}, "*") :
|
|
17491
|
+
}, "*") : React.createElement(React.Fragment, null), children);
|
|
17444
17492
|
});
|
|
17445
17493
|
|
|
17446
17494
|
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";
|
|
@@ -17512,14 +17560,14 @@ function ItemNameInput$1(props) {
|
|
|
17512
17560
|
return _ref.apply(this, arguments);
|
|
17513
17561
|
};
|
|
17514
17562
|
}(), [autoComplete.onItemNameSearch]);
|
|
17515
|
-
return
|
|
17563
|
+
return React.createElement("div", {
|
|
17516
17564
|
className: 'kts-invoice-operate-goods-list-itemName-input'
|
|
17517
|
-
}, props.shorthand &&
|
|
17565
|
+
}, props.shorthand && React.createElement("span", {
|
|
17518
17566
|
style: {
|
|
17519
17567
|
alignSelf: 'center',
|
|
17520
17568
|
fontSize: 12
|
|
17521
17569
|
}
|
|
17522
|
-
}, "*", props.shorthand, "*"),
|
|
17570
|
+
}, "*", props.shorthand, "*"), React.createElement(AutoComplete$1, {
|
|
17523
17571
|
onSearch: onSearch,
|
|
17524
17572
|
value: props.value,
|
|
17525
17573
|
options: options.map(function (e) {
|
|
@@ -17528,7 +17576,7 @@ function ItemNameInput$1(props) {
|
|
|
17528
17576
|
};
|
|
17529
17577
|
}),
|
|
17530
17578
|
onSelect: onChangeAutoComplete
|
|
17531
|
-
},
|
|
17579
|
+
}, React.createElement(Input$1, {
|
|
17532
17580
|
style: {
|
|
17533
17581
|
height: '100%'
|
|
17534
17582
|
},
|
|
@@ -18634,7 +18682,7 @@ function Drag$2(props) {
|
|
|
18634
18682
|
var currentGood = controller.state.goodsListState.goodsList.filter(function (e) {
|
|
18635
18683
|
return e.$index === record.$index;
|
|
18636
18684
|
})[0];
|
|
18637
|
-
mounting(
|
|
18685
|
+
mounting(React.createElement(DragDiv$1, _objectSpread2({}, currentGood)));
|
|
18638
18686
|
rowList.forEach(function (e) {
|
|
18639
18687
|
e.addEventListener('mousemove', onMousemove);
|
|
18640
18688
|
});
|
|
@@ -18795,7 +18843,7 @@ function Drag$2(props) {
|
|
|
18795
18843
|
|
|
18796
18844
|
|
|
18797
18845
|
function insert() {
|
|
18798
|
-
mounting(
|
|
18846
|
+
mounting(React.createElement(React.Fragment, null));
|
|
18799
18847
|
controller.run( /*#__PURE__*/function () {
|
|
18800
18848
|
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(s) {
|
|
18801
18849
|
var _s$goodsListState$dra, container, current, site, goodsList, goodsMap, _currentGood, currentIndex, moveGoods;
|
|
@@ -18874,7 +18922,7 @@ function Drag$2(props) {
|
|
|
18874
18922
|
}
|
|
18875
18923
|
}, [controller, record, disabled]);
|
|
18876
18924
|
var renderButton = React.useMemo(function () {
|
|
18877
|
-
return
|
|
18925
|
+
return React.createElement(Button, {
|
|
18878
18926
|
type: 'link',
|
|
18879
18927
|
style: {
|
|
18880
18928
|
padding: 0
|
|
@@ -18885,13 +18933,13 @@ function Drag$2(props) {
|
|
|
18885
18933
|
},
|
|
18886
18934
|
className: "kts-invoice-operate-goods-list-itemName-drag",
|
|
18887
18935
|
onMouseOver: controller.saveEditGood
|
|
18888
|
-
},
|
|
18936
|
+
}, React.createElement(Icon, {
|
|
18889
18937
|
component: SvgI001$1
|
|
18890
18938
|
}));
|
|
18891
18939
|
}, [onMouseDown, controller]);
|
|
18892
18940
|
|
|
18893
18941
|
if (disabled) {
|
|
18894
|
-
return
|
|
18942
|
+
return React.createElement(Popover, {
|
|
18895
18943
|
content: '您还有未编辑完成的商品',
|
|
18896
18944
|
trigger: 'focus'
|
|
18897
18945
|
}, renderButton);
|
|
@@ -18931,13 +18979,13 @@ function DragDiv$1(props) {
|
|
|
18931
18979
|
window.removeEventListener('mousemove', onMousemove);
|
|
18932
18980
|
};
|
|
18933
18981
|
});
|
|
18934
|
-
return
|
|
18982
|
+
return React.createElement("div", {
|
|
18935
18983
|
className: "kts-invoice-operate-goods-list-itemName-drag-div",
|
|
18936
18984
|
style: {
|
|
18937
18985
|
top: y,
|
|
18938
18986
|
left: x
|
|
18939
18987
|
}
|
|
18940
|
-
},
|
|
18988
|
+
}, React.createElement("span", null, props.itemName), React.createElement("span", null, props.itemModelName), React.createElement("span", null, props.unit));
|
|
18941
18989
|
}
|
|
18942
18990
|
|
|
18943
18991
|
var useColumns$1 = (function (form) {
|
|
@@ -19053,7 +19101,7 @@ var useColumns$1 = (function (form) {
|
|
|
19053
19101
|
width: 40,
|
|
19054
19102
|
align: 'center',
|
|
19055
19103
|
render: function render(_, record) {
|
|
19056
|
-
return
|
|
19104
|
+
return React.createElement(Drag$2, {
|
|
19057
19105
|
record: record
|
|
19058
19106
|
});
|
|
19059
19107
|
}
|
|
@@ -19063,20 +19111,20 @@ var useColumns$1 = (function (form) {
|
|
|
19063
19111
|
dataIndex: 'serialNo',
|
|
19064
19112
|
width: 50,
|
|
19065
19113
|
render: function render(e) {
|
|
19066
|
-
return
|
|
19114
|
+
return React.createElement("span", {
|
|
19067
19115
|
style: {
|
|
19068
19116
|
padding: '0 10px'
|
|
19069
19117
|
}
|
|
19070
19118
|
}, e);
|
|
19071
19119
|
}
|
|
19072
19120
|
}, {
|
|
19073
|
-
title:
|
|
19121
|
+
title: React.createElement(TitleText$1, {
|
|
19074
19122
|
required: true
|
|
19075
19123
|
}, "\u9879\u76EE\u540D\u79F0"),
|
|
19076
19124
|
key: 'itemName',
|
|
19077
19125
|
render: function render(_, record) {
|
|
19078
19126
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
19079
|
-
return
|
|
19127
|
+
return React.createElement(Form.Item, null, React.createElement("div", {
|
|
19080
19128
|
style: {
|
|
19081
19129
|
display: 'flex'
|
|
19082
19130
|
}
|
|
@@ -19123,11 +19171,11 @@ var useColumns$1 = (function (form) {
|
|
|
19123
19171
|
return validator;
|
|
19124
19172
|
}()
|
|
19125
19173
|
}])
|
|
19126
|
-
})(
|
|
19174
|
+
})(React.createElement(ItemNameInput$1, {
|
|
19127
19175
|
shorthand: editGood.shorthand,
|
|
19128
|
-
suffix:
|
|
19176
|
+
suffix: React.createElement(Tooltip$1, {
|
|
19129
19177
|
title: "\u70B9\u51FB\u4ECE\u5546\u54C1\u7BA1\u7406\u4E2D\u6DFB\u52A0\u5546\u54C1\u4FE1\u606F"
|
|
19130
|
-
},
|
|
19178
|
+
}, React.createElement(Button$1, {
|
|
19131
19179
|
type: "link",
|
|
19132
19180
|
style: {
|
|
19133
19181
|
padding: 0,
|
|
@@ -19135,7 +19183,7 @@ var useColumns$1 = (function (form) {
|
|
|
19135
19183
|
fontSize: 20,
|
|
19136
19184
|
fill: '#0074ff'
|
|
19137
19185
|
},
|
|
19138
|
-
icon:
|
|
19186
|
+
icon: React.createElement(SvgPlus$1, null),
|
|
19139
19187
|
onClick: controller.pipeline( /*#__PURE__*/function () {
|
|
19140
19188
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(s) {
|
|
19141
19189
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
@@ -19162,9 +19210,9 @@ var useColumns$1 = (function (form) {
|
|
|
19162
19210
|
}
|
|
19163
19211
|
}))));
|
|
19164
19212
|
} else {
|
|
19165
|
-
return
|
|
19213
|
+
return React.createElement("span", null, record.lineAttribute === LineAttributeType$1.折扣行 ? React.createElement("span", {
|
|
19166
19214
|
className: 'goods-list-digtal-discount-tag'
|
|
19167
|
-
}, "\u6298\u6263") :
|
|
19215
|
+
}, "\u6298\u6263") : React.createElement(React.Fragment, null), React.createElement(MyItemNameDiv$1, {
|
|
19168
19216
|
valueT: formatSearch$1(getItemNameWithShorthand({
|
|
19169
19217
|
shorthand: record.shorthand,
|
|
19170
19218
|
full: record.itemNameSelf || ''
|
|
@@ -19178,17 +19226,17 @@ var useColumns$1 = (function (form) {
|
|
|
19178
19226
|
}
|
|
19179
19227
|
}
|
|
19180
19228
|
}, {
|
|
19181
|
-
title:
|
|
19229
|
+
title: React.createElement(TitleText$1, {
|
|
19182
19230
|
rules: (_columnsReplenish$ite = columnsReplenish['itemModelName']) === null || _columnsReplenish$ite === void 0 ? void 0 : _columnsReplenish$ite.rules
|
|
19183
19231
|
}, "\u89C4\u683C\u578B\u53F7"),
|
|
19184
19232
|
key: 'itemModelName',
|
|
19185
19233
|
width: 119,
|
|
19186
19234
|
render: function render(_, record) {
|
|
19187
19235
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
19188
|
-
return
|
|
19236
|
+
return React.createElement(Form.Item, null, getFieldDecorator('itemModelName', {
|
|
19189
19237
|
initialValue: isMyShow ? editGood.itemModelNameSelf : editGood.itemModelName,
|
|
19190
19238
|
rules: getReplenishRules('itemModelName')
|
|
19191
|
-
})(
|
|
19239
|
+
})(React.createElement(MyInput$2, {
|
|
19192
19240
|
onChange: function () {
|
|
19193
19241
|
var _onChange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
19194
19242
|
var key, value;
|
|
@@ -19221,7 +19269,7 @@ var useColumns$1 = (function (form) {
|
|
|
19221
19269
|
}()
|
|
19222
19270
|
})));
|
|
19223
19271
|
} else {
|
|
19224
|
-
return
|
|
19272
|
+
return React.createElement(MyItemNameDiv$1, {
|
|
19225
19273
|
valueT: formatSearch$1(record.itemModelNameSelf, searchValue),
|
|
19226
19274
|
valueF: formatSearch$1(record.itemModelName, searchValue),
|
|
19227
19275
|
isMyShow: isMyShow
|
|
@@ -19229,17 +19277,17 @@ var useColumns$1 = (function (form) {
|
|
|
19229
19277
|
}
|
|
19230
19278
|
}
|
|
19231
19279
|
}, {
|
|
19232
|
-
title:
|
|
19280
|
+
title: React.createElement(TitleText$1, {
|
|
19233
19281
|
rules: (_columnsReplenish$uni = columnsReplenish['unit']) === null || _columnsReplenish$uni === void 0 ? void 0 : _columnsReplenish$uni.rules
|
|
19234
19282
|
}, "\u5355\u4F4D"),
|
|
19235
19283
|
key: 'unit',
|
|
19236
19284
|
width: 70,
|
|
19237
19285
|
render: function render(_, record) {
|
|
19238
19286
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
19239
|
-
return
|
|
19287
|
+
return React.createElement(Form.Item, null, getFieldDecorator('unit', {
|
|
19240
19288
|
initialValue: editGood.unit,
|
|
19241
19289
|
rules: getReplenishRules('unit')
|
|
19242
|
-
})(
|
|
19290
|
+
})(React.createElement(AutoComplete$1, {
|
|
19243
19291
|
style: {
|
|
19244
19292
|
width: '100%'
|
|
19245
19293
|
},
|
|
@@ -19277,7 +19325,7 @@ var useColumns$1 = (function (form) {
|
|
|
19277
19325
|
}()
|
|
19278
19326
|
})));
|
|
19279
19327
|
} else {
|
|
19280
|
-
return
|
|
19328
|
+
return React.createElement("span", {
|
|
19281
19329
|
style: {
|
|
19282
19330
|
padding: '0 10px'
|
|
19283
19331
|
}
|
|
@@ -19285,7 +19333,7 @@ var useColumns$1 = (function (form) {
|
|
|
19285
19333
|
}
|
|
19286
19334
|
}
|
|
19287
19335
|
}, {
|
|
19288
|
-
title:
|
|
19336
|
+
title: React.createElement(TitleText$1, {
|
|
19289
19337
|
rules: (_columnsReplenish$qua = columnsReplenish['quantity']) === null || _columnsReplenish$qua === void 0 ? void 0 : _columnsReplenish$qua.rules
|
|
19290
19338
|
}, "\u6570\u91CF"),
|
|
19291
19339
|
dataIndex: 'quantity',
|
|
@@ -19294,7 +19342,7 @@ var useColumns$1 = (function (form) {
|
|
|
19294
19342
|
width: 149,
|
|
19295
19343
|
render: function render(value, record) {
|
|
19296
19344
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
19297
|
-
return
|
|
19345
|
+
return React.createElement(Form.Item, null, getFieldDecorator('quantity', {
|
|
19298
19346
|
initialValue: editGood.quantity,
|
|
19299
19347
|
getValueFromEvent: onNumberValueChange,
|
|
19300
19348
|
rules: [].concat(_toConsumableArray(getReplenishRules('quantity')), [{
|
|
@@ -19340,7 +19388,7 @@ var useColumns$1 = (function (form) {
|
|
|
19340
19388
|
return validator;
|
|
19341
19389
|
}()
|
|
19342
19390
|
}])
|
|
19343
|
-
})(
|
|
19391
|
+
})(React.createElement(MyInput$2, {
|
|
19344
19392
|
style: {
|
|
19345
19393
|
textAlign: 'right'
|
|
19346
19394
|
},
|
|
@@ -19372,7 +19420,7 @@ var useColumns$1 = (function (form) {
|
|
|
19372
19420
|
}()
|
|
19373
19421
|
})));
|
|
19374
19422
|
} else {
|
|
19375
|
-
return
|
|
19423
|
+
return React.createElement("span", {
|
|
19376
19424
|
style: {
|
|
19377
19425
|
padding: '0 10px'
|
|
19378
19426
|
}
|
|
@@ -19380,7 +19428,7 @@ var useColumns$1 = (function (form) {
|
|
|
19380
19428
|
}
|
|
19381
19429
|
}
|
|
19382
19430
|
}, {
|
|
19383
|
-
title:
|
|
19431
|
+
title: React.createElement(TitleText$1, {
|
|
19384
19432
|
rules: (_columnsReplenish$pri = columnsReplenish['priceIncludeTax']) === null || _columnsReplenish$pri === void 0 ? void 0 : _columnsReplenish$pri.rules
|
|
19385
19433
|
}, "\u5355\u4EF7(\u542B\u7A0E)"),
|
|
19386
19434
|
dataIndex: 'priceIncludeTax',
|
|
@@ -19389,7 +19437,7 @@ var useColumns$1 = (function (form) {
|
|
|
19389
19437
|
width: 149,
|
|
19390
19438
|
render: function render(value, record) {
|
|
19391
19439
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
19392
|
-
return
|
|
19440
|
+
return React.createElement(Form.Item, null, getFieldDecorator('priceIncludeTax', {
|
|
19393
19441
|
initialValue: editGood.priceIncludeTax,
|
|
19394
19442
|
getValueFromEvent: onNumberValueChange,
|
|
19395
19443
|
rules: [].concat(_toConsumableArray(getReplenishRules('priceIncludeTax')), [{
|
|
@@ -19435,7 +19483,7 @@ var useColumns$1 = (function (form) {
|
|
|
19435
19483
|
return validator;
|
|
19436
19484
|
}()
|
|
19437
19485
|
}])
|
|
19438
|
-
})(
|
|
19486
|
+
})(React.createElement(MyInput$2, {
|
|
19439
19487
|
style: {
|
|
19440
19488
|
textAlign: 'right'
|
|
19441
19489
|
},
|
|
@@ -19447,7 +19495,7 @@ var useColumns$1 = (function (form) {
|
|
|
19447
19495
|
}
|
|
19448
19496
|
})));
|
|
19449
19497
|
} else {
|
|
19450
|
-
return
|
|
19498
|
+
return React.createElement("span", {
|
|
19451
19499
|
style: {
|
|
19452
19500
|
padding: '0 10px'
|
|
19453
19501
|
}
|
|
@@ -19455,7 +19503,7 @@ var useColumns$1 = (function (form) {
|
|
|
19455
19503
|
}
|
|
19456
19504
|
}
|
|
19457
19505
|
}, {
|
|
19458
|
-
title:
|
|
19506
|
+
title: React.createElement(TitleText$1, {
|
|
19459
19507
|
rules: (_columnsReplenish$pri2 = columnsReplenish['priceExcludeTax']) === null || _columnsReplenish$pri2 === void 0 ? void 0 : _columnsReplenish$pri2.rules
|
|
19460
19508
|
}, "\u5355\u4EF7(\u4E0D\u542B\u7A0E)"),
|
|
19461
19509
|
dataIndex: 'priceExcludeTax',
|
|
@@ -19464,7 +19512,7 @@ var useColumns$1 = (function (form) {
|
|
|
19464
19512
|
width: 149,
|
|
19465
19513
|
render: function render(value, record) {
|
|
19466
19514
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
19467
|
-
return
|
|
19515
|
+
return React.createElement(Form.Item, null, getFieldDecorator('priceExcludeTax', {
|
|
19468
19516
|
initialValue: editGood.priceExcludeTax,
|
|
19469
19517
|
getValueFromEvent: onNumberValueChange,
|
|
19470
19518
|
rules: [].concat(_toConsumableArray(getReplenishRules('priceExcludeTax')), [{
|
|
@@ -19510,7 +19558,7 @@ var useColumns$1 = (function (form) {
|
|
|
19510
19558
|
return validator;
|
|
19511
19559
|
}()
|
|
19512
19560
|
}])
|
|
19513
|
-
})(
|
|
19561
|
+
})(React.createElement(MyInput$2, {
|
|
19514
19562
|
style: {
|
|
19515
19563
|
textAlign: 'right'
|
|
19516
19564
|
},
|
|
@@ -19522,7 +19570,7 @@ var useColumns$1 = (function (form) {
|
|
|
19522
19570
|
}
|
|
19523
19571
|
})));
|
|
19524
19572
|
} else {
|
|
19525
|
-
return
|
|
19573
|
+
return React.createElement("span", {
|
|
19526
19574
|
style: {
|
|
19527
19575
|
padding: '0 10px'
|
|
19528
19576
|
}
|
|
@@ -19530,7 +19578,7 @@ var useColumns$1 = (function (form) {
|
|
|
19530
19578
|
}
|
|
19531
19579
|
}
|
|
19532
19580
|
}, {
|
|
19533
|
-
title:
|
|
19581
|
+
title: React.createElement(TitleText$1, {
|
|
19534
19582
|
required: true
|
|
19535
19583
|
}, "\u91D1\u989D(\u542B\u7A0E)"),
|
|
19536
19584
|
dataIndex: 'lineAmountIncludeTax',
|
|
@@ -19539,7 +19587,7 @@ var useColumns$1 = (function (form) {
|
|
|
19539
19587
|
align: 'right',
|
|
19540
19588
|
render: function render(value, record) {
|
|
19541
19589
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
19542
|
-
return
|
|
19590
|
+
return React.createElement(Form.Item, null, getFieldDecorator('lineAmountIncludeTax', {
|
|
19543
19591
|
initialValue: editGood.lineAmountIncludeTax,
|
|
19544
19592
|
getValueFromEvent: onNumberValueChange,
|
|
19545
19593
|
rules: [].concat(_toConsumableArray(getReplenishRules('lineAmountIncludeTax')), [{
|
|
@@ -19599,7 +19647,7 @@ var useColumns$1 = (function (form) {
|
|
|
19599
19647
|
return validator;
|
|
19600
19648
|
}()
|
|
19601
19649
|
}])
|
|
19602
|
-
})(
|
|
19650
|
+
})(React.createElement(MyInput$2, {
|
|
19603
19651
|
style: {
|
|
19604
19652
|
textAlign: 'right'
|
|
19605
19653
|
},
|
|
@@ -19610,7 +19658,7 @@ var useColumns$1 = (function (form) {
|
|
|
19610
19658
|
}
|
|
19611
19659
|
})));
|
|
19612
19660
|
} else {
|
|
19613
|
-
return
|
|
19661
|
+
return React.createElement("span", {
|
|
19614
19662
|
style: {
|
|
19615
19663
|
padding: '0 10px'
|
|
19616
19664
|
}
|
|
@@ -19618,7 +19666,7 @@ var useColumns$1 = (function (form) {
|
|
|
19618
19666
|
}
|
|
19619
19667
|
}
|
|
19620
19668
|
}, {
|
|
19621
|
-
title:
|
|
19669
|
+
title: React.createElement(TitleText$1, {
|
|
19622
19670
|
required: true
|
|
19623
19671
|
}, "\u91D1\u989D(\u4E0D\u542B\u7A0E)"),
|
|
19624
19672
|
dataIndex: 'lineAmountExcludeTax',
|
|
@@ -19627,7 +19675,7 @@ var useColumns$1 = (function (form) {
|
|
|
19627
19675
|
width: 119,
|
|
19628
19676
|
render: function render(value, record) {
|
|
19629
19677
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
19630
|
-
return
|
|
19678
|
+
return React.createElement(Form.Item, null, getFieldDecorator('lineAmountExcludeTax', {
|
|
19631
19679
|
initialValue: editGood.lineAmountExcludeTax,
|
|
19632
19680
|
getValueFromEvent: onNumberValueChange,
|
|
19633
19681
|
rules: [].concat(_toConsumableArray(getReplenishRules('lineAmountExcludeTax')), [{
|
|
@@ -19662,7 +19710,7 @@ var useColumns$1 = (function (form) {
|
|
|
19662
19710
|
return validator;
|
|
19663
19711
|
}()
|
|
19664
19712
|
}])
|
|
19665
|
-
})(
|
|
19713
|
+
})(React.createElement(MyInput$2, {
|
|
19666
19714
|
style: {
|
|
19667
19715
|
textAlign: 'right'
|
|
19668
19716
|
},
|
|
@@ -19673,7 +19721,7 @@ var useColumns$1 = (function (form) {
|
|
|
19673
19721
|
}
|
|
19674
19722
|
})));
|
|
19675
19723
|
} else {
|
|
19676
|
-
return
|
|
19724
|
+
return React.createElement("span", {
|
|
19677
19725
|
style: {
|
|
19678
19726
|
padding: '0 10px'
|
|
19679
19727
|
}
|
|
@@ -19681,7 +19729,7 @@ var useColumns$1 = (function (form) {
|
|
|
19681
19729
|
}
|
|
19682
19730
|
}
|
|
19683
19731
|
}, {
|
|
19684
|
-
title:
|
|
19732
|
+
title: React.createElement(TitleText$1, {
|
|
19685
19733
|
required: true
|
|
19686
19734
|
}, "\u7A0E\u7387%"),
|
|
19687
19735
|
dataIndex: 'taxRate',
|
|
@@ -19690,7 +19738,7 @@ var useColumns$1 = (function (form) {
|
|
|
19690
19738
|
width: 70,
|
|
19691
19739
|
render: function render(value, record) {
|
|
19692
19740
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
19693
|
-
return
|
|
19741
|
+
return React.createElement(Form.Item, null, getFieldDecorator('taxRate', {
|
|
19694
19742
|
initialValue: editGood.taxRate,
|
|
19695
19743
|
rules: [].concat(_toConsumableArray(getReplenishRules('taxRate')), [{
|
|
19696
19744
|
required: true,
|
|
@@ -19699,7 +19747,7 @@ var useColumns$1 = (function (form) {
|
|
|
19699
19747
|
pattern: /^[+-]?(0|([1-9]\d*))(\.\d+)?$/,
|
|
19700
19748
|
message: ' '
|
|
19701
19749
|
}])
|
|
19702
|
-
})(
|
|
19750
|
+
})(React.createElement(Select$1, {
|
|
19703
19751
|
className: "kts-invoice-operate-goods-list-table-tax-rate",
|
|
19704
19752
|
// dropdownMenuStyle={{ textAlign: "right" }}
|
|
19705
19753
|
showArrow: false,
|
|
@@ -19711,13 +19759,13 @@ var useColumns$1 = (function (form) {
|
|
|
19711
19759
|
onChangeTaxRate$1(controller, form, record);
|
|
19712
19760
|
}
|
|
19713
19761
|
}, taxRateList.map(function (e, i) {
|
|
19714
|
-
return
|
|
19762
|
+
return React.createElement(Select$1.Option, {
|
|
19715
19763
|
key: i,
|
|
19716
19764
|
value: e
|
|
19717
19765
|
}, e, "%");
|
|
19718
19766
|
}))));
|
|
19719
19767
|
} else {
|
|
19720
|
-
return
|
|
19768
|
+
return React.createElement("span", {
|
|
19721
19769
|
style: {
|
|
19722
19770
|
padding: '0 10px'
|
|
19723
19771
|
}
|
|
@@ -19725,7 +19773,7 @@ var useColumns$1 = (function (form) {
|
|
|
19725
19773
|
}
|
|
19726
19774
|
}
|
|
19727
19775
|
}, {
|
|
19728
|
-
title:
|
|
19776
|
+
title: React.createElement(TitleText$1, {
|
|
19729
19777
|
rules: (_columnsReplenish$tax = columnsReplenish['taxAmount']) === null || _columnsReplenish$tax === void 0 ? void 0 : _columnsReplenish$tax.rules
|
|
19730
19778
|
}, "\u7A0E\u989D"),
|
|
19731
19779
|
dataIndex: 'taxAmount',
|
|
@@ -19737,11 +19785,11 @@ var useColumns$1 = (function (form) {
|
|
|
19737
19785
|
return getFieldDecorator('taxAmount', {
|
|
19738
19786
|
initialValue: editGood.taxAmount,
|
|
19739
19787
|
rules: getReplenishRules('taxAmount')
|
|
19740
|
-
})(
|
|
19788
|
+
})(React.createElement(MyDiv$2, {
|
|
19741
19789
|
loading: isCipher$1(changeField, 'taxAmount')
|
|
19742
19790
|
}));
|
|
19743
19791
|
} else {
|
|
19744
|
-
return
|
|
19792
|
+
return React.createElement("span", {
|
|
19745
19793
|
style: {
|
|
19746
19794
|
padding: '0 10px'
|
|
19747
19795
|
}
|
|
@@ -19808,13 +19856,13 @@ var MyInput$2 = /*#__PURE__*/function (_React$Component) {
|
|
|
19808
19856
|
key: "render",
|
|
19809
19857
|
value: function render() {
|
|
19810
19858
|
if (this.props.loading) {
|
|
19811
|
-
return
|
|
19859
|
+
return React.createElement(Spin$1, {
|
|
19812
19860
|
size: "small"
|
|
19813
|
-
},
|
|
19861
|
+
}, React.createElement(Input$1, _objectSpread2(_objectSpread2({}, this.props), {}, {
|
|
19814
19862
|
autoComplete: "off"
|
|
19815
19863
|
})));
|
|
19816
19864
|
} else {
|
|
19817
|
-
return
|
|
19865
|
+
return React.createElement(Input$1, _objectSpread2(_objectSpread2({}, this.props), {}, {
|
|
19818
19866
|
autoComplete: "off"
|
|
19819
19867
|
}));
|
|
19820
19868
|
}
|
|
@@ -19839,15 +19887,15 @@ var MyDiv$2 = /*#__PURE__*/function (_React$Component2) {
|
|
|
19839
19887
|
key: "render",
|
|
19840
19888
|
value: function render() {
|
|
19841
19889
|
if (this.props.loading) {
|
|
19842
|
-
return
|
|
19890
|
+
return React.createElement(Spin$1, {
|
|
19843
19891
|
size: "small"
|
|
19844
|
-
},
|
|
19892
|
+
}, React.createElement("span", {
|
|
19845
19893
|
style: {
|
|
19846
19894
|
padding: '0 10px'
|
|
19847
19895
|
}
|
|
19848
19896
|
}, this.props.value));
|
|
19849
19897
|
} else {
|
|
19850
|
-
return
|
|
19898
|
+
return React.createElement("span", {
|
|
19851
19899
|
style: {
|
|
19852
19900
|
padding: '0 10px'
|
|
19853
19901
|
}
|
|
@@ -19880,18 +19928,18 @@ var MyItemNameDiv$1 = /*#__PURE__*/function (_React$Component3) {
|
|
|
19880
19928
|
|
|
19881
19929
|
if (isMyShow) {
|
|
19882
19930
|
if (valueT) {
|
|
19883
|
-
return
|
|
19931
|
+
return React.createElement(Tooltip$1, {
|
|
19884
19932
|
title: valueT
|
|
19885
|
-
},
|
|
19933
|
+
}, React.createElement("span", {
|
|
19886
19934
|
style: {
|
|
19887
19935
|
padding: '0 10px',
|
|
19888
19936
|
color: '#0074ff'
|
|
19889
19937
|
}
|
|
19890
19938
|
}, valueT));
|
|
19891
19939
|
} else {
|
|
19892
|
-
return
|
|
19940
|
+
return React.createElement(Tooltip$1, {
|
|
19893
19941
|
title: valueF
|
|
19894
|
-
},
|
|
19942
|
+
}, React.createElement("span", {
|
|
19895
19943
|
style: {
|
|
19896
19944
|
padding: '0 10px'
|
|
19897
19945
|
}
|
|
@@ -19899,17 +19947,17 @@ var MyItemNameDiv$1 = /*#__PURE__*/function (_React$Component3) {
|
|
|
19899
19947
|
}
|
|
19900
19948
|
} else {
|
|
19901
19949
|
if (valueF) {
|
|
19902
|
-
return
|
|
19950
|
+
return React.createElement(Tooltip$1, {
|
|
19903
19951
|
title: valueF
|
|
19904
|
-
},
|
|
19952
|
+
}, React.createElement("span", {
|
|
19905
19953
|
style: {
|
|
19906
19954
|
padding: '0 10px'
|
|
19907
19955
|
}
|
|
19908
19956
|
}, valueF));
|
|
19909
19957
|
} else {
|
|
19910
|
-
return
|
|
19958
|
+
return React.createElement(Tooltip$1, {
|
|
19911
19959
|
title: valueT
|
|
19912
|
-
},
|
|
19960
|
+
}, React.createElement("span", {
|
|
19913
19961
|
style: {
|
|
19914
19962
|
padding: '0 10px',
|
|
19915
19963
|
color: '#0074ff'
|
|
@@ -19932,7 +19980,7 @@ function formatSearch$1(value, search) {
|
|
|
19932
19980
|
return dcoding$1(e);
|
|
19933
19981
|
}).join("<span class=\"kts-invoice-operate-goods-list-table-search-protrude\" >".concat(search, "</span>"));
|
|
19934
19982
|
|
|
19935
|
-
return
|
|
19983
|
+
return React.createElement("span", {
|
|
19936
19984
|
dangerouslySetInnerHTML: {
|
|
19937
19985
|
__html: __html
|
|
19938
19986
|
}
|
|
@@ -20311,7 +20359,7 @@ var useRowSelection$1 = (function () {
|
|
|
20311
20359
|
};
|
|
20312
20360
|
}(), [controller]);
|
|
20313
20361
|
var columnTitle = React.useMemo(function () {
|
|
20314
|
-
return
|
|
20362
|
+
return React.createElement(Checkbox, {
|
|
20315
20363
|
onChange: onClickSelectAll,
|
|
20316
20364
|
indeterminate: indeterminate,
|
|
20317
20365
|
checked: isAll
|
|
@@ -20460,19 +20508,19 @@ var useDelRowButton$1 = (function () {
|
|
|
20460
20508
|
}, _callee2);
|
|
20461
20509
|
})), []);
|
|
20462
20510
|
var menuItem = React.useMemo(function () {
|
|
20463
|
-
if (model === 'prefab') return
|
|
20464
|
-
if (model === 'readOnly') return
|
|
20465
|
-
return
|
|
20511
|
+
if (model === 'prefab') return React.createElement(React.Fragment, null);
|
|
20512
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
20513
|
+
return React.createElement(Menu$1.Item, {
|
|
20466
20514
|
key: "1",
|
|
20467
20515
|
onClick: onClick,
|
|
20468
20516
|
disabled: disabled
|
|
20469
20517
|
}, " \u5220\u9664\u884C ");
|
|
20470
20518
|
}, [model, onClick, disabled]);
|
|
20471
20519
|
var button = React.useMemo(function () {
|
|
20472
|
-
if (isRemRow === false) return
|
|
20473
|
-
if (model === 'prefab') return
|
|
20474
|
-
if (model === 'readOnly') return
|
|
20475
|
-
return
|
|
20520
|
+
if (isRemRow === false) return React.createElement(React.Fragment, null);
|
|
20521
|
+
if (model === 'prefab') return React.createElement(React.Fragment, null);
|
|
20522
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
20523
|
+
return React.createElement(Button$1, {
|
|
20476
20524
|
size: 'small',
|
|
20477
20525
|
onClick: onClick,
|
|
20478
20526
|
disabled: disabled
|
|
@@ -20703,16 +20751,16 @@ var useAddDiscountRowButton$1 = (function () {
|
|
|
20703
20751
|
}, [isAddDiscount, model]);
|
|
20704
20752
|
var button = React.useMemo(function () {
|
|
20705
20753
|
if (isEnable) {
|
|
20706
|
-
return
|
|
20754
|
+
return React.createElement(React.Fragment, null, React.createElement(Button$1, {
|
|
20707
20755
|
size: 'small',
|
|
20708
20756
|
onClick: onOpen,
|
|
20709
20757
|
disabled: disabled
|
|
20710
|
-
}, "\u6DFB\u52A0\u6298\u6263"),
|
|
20758
|
+
}, "\u6DFB\u52A0\u6298\u6263"), React.createElement(AddDiscountRowDrawer, {
|
|
20711
20759
|
open: open,
|
|
20712
20760
|
onClose: onClose
|
|
20713
20761
|
}));
|
|
20714
20762
|
} else {
|
|
20715
|
-
return
|
|
20763
|
+
return React.createElement(React.Fragment, null);
|
|
20716
20764
|
}
|
|
20717
20765
|
}, [open, onOpen, onClose, isEnable, disabled]);
|
|
20718
20766
|
return {
|
|
@@ -20893,35 +20941,35 @@ function AddDiscountRowDrawer(props) {
|
|
|
20893
20941
|
discolineValue: undefined
|
|
20894
20942
|
}));
|
|
20895
20943
|
}, [formValues === null || formValues === void 0 ? void 0 : formValues.discolineType]);
|
|
20896
|
-
return
|
|
20944
|
+
return React.createElement(Drawer$1, {
|
|
20897
20945
|
title: "\u6DFB\u52A0\u6298\u6263",
|
|
20898
20946
|
placement: "right",
|
|
20899
20947
|
width: 350,
|
|
20900
20948
|
onClose: onClose,
|
|
20901
20949
|
open: open,
|
|
20902
|
-
footer:
|
|
20950
|
+
footer: React.createElement(Space, {
|
|
20903
20951
|
size: "middle",
|
|
20904
20952
|
style: {
|
|
20905
20953
|
display: 'flex',
|
|
20906
20954
|
justifyContent: 'end'
|
|
20907
20955
|
}
|
|
20908
|
-
},
|
|
20956
|
+
}, React.createElement(Button$1, {
|
|
20909
20957
|
onClick: onDefine,
|
|
20910
20958
|
type: 'primary'
|
|
20911
|
-
}, "\u786E\u5B9A"),
|
|
20959
|
+
}, "\u786E\u5B9A"), React.createElement(Button$1, {
|
|
20912
20960
|
onClick: onClose
|
|
20913
20961
|
}, "\u53D6\u6D88"))
|
|
20914
|
-
},
|
|
20962
|
+
}, React.createElement(Form$1, {
|
|
20915
20963
|
form: form,
|
|
20916
20964
|
layout: 'vertical',
|
|
20917
20965
|
onChange: onChangeForm
|
|
20918
|
-
},
|
|
20966
|
+
}, React.createElement(Form$1.Item, {
|
|
20919
20967
|
label: "\u5546\u54C1\u91D1\u989D\uFF08\u542B\u7A0E\uFF09"
|
|
20920
|
-
}, totalAmount.toFixed(2), "\uFF08\u5171 ", discountGood.length, " \u884C\uFF09"),
|
|
20968
|
+
}, totalAmount.toFixed(2), "\uFF08\u5171 ", discountGood.length, " \u884C\uFF09"), React.createElement(Form$1.Item, {
|
|
20921
20969
|
label: "\u6298\u6263\u65B9\u5F0F",
|
|
20922
20970
|
name: 'discolineType',
|
|
20923
20971
|
initialValue: '1'
|
|
20924
|
-
},
|
|
20972
|
+
}, React.createElement(Radio.Group, {
|
|
20925
20973
|
options: [{
|
|
20926
20974
|
label: '按金额折扣',
|
|
20927
20975
|
value: '1'
|
|
@@ -20929,7 +20977,7 @@ function AddDiscountRowDrawer(props) {
|
|
|
20929
20977
|
label: '按比例折扣',
|
|
20930
20978
|
value: '2'
|
|
20931
20979
|
}]
|
|
20932
|
-
})), (formValues === null || formValues === void 0 ? void 0 : formValues.discolineType) === '1' ?
|
|
20980
|
+
})), (formValues === null || formValues === void 0 ? void 0 : formValues.discolineType) === '1' ? React.createElement(Form$1.Item, {
|
|
20933
20981
|
label: "\u6298\u6263\u91D1\u989D\uFF08\u5143\uFF09\uFF08\u542B\u7A0E\uFF09",
|
|
20934
20982
|
name: 'discolineValue',
|
|
20935
20983
|
rules: [{
|
|
@@ -20980,11 +21028,11 @@ function AddDiscountRowDrawer(props) {
|
|
|
20980
21028
|
return validator;
|
|
20981
21029
|
}()
|
|
20982
21030
|
}]
|
|
20983
|
-
},
|
|
21031
|
+
}, React.createElement(InputNumber, {
|
|
20984
21032
|
style: {
|
|
20985
21033
|
width: '100%'
|
|
20986
21034
|
}
|
|
20987
|
-
})) :
|
|
21035
|
+
})) : React.createElement(Form$1.Item, {
|
|
20988
21036
|
label: "\u6298\u6263\u6BD4\u4F8B\uFF08%\uFF09\uFF08\u542B\u7A0E\uFF09",
|
|
20989
21037
|
name: 'discolineValue',
|
|
20990
21038
|
rules: [{
|
|
@@ -21035,7 +21083,7 @@ function AddDiscountRowDrawer(props) {
|
|
|
21035
21083
|
return validator;
|
|
21036
21084
|
}()
|
|
21037
21085
|
}]
|
|
21038
|
-
},
|
|
21086
|
+
}, React.createElement(InputNumber, {
|
|
21039
21087
|
style: {
|
|
21040
21088
|
width: '100%'
|
|
21041
21089
|
}
|
|
@@ -21179,16 +21227,16 @@ var useEndowCodeButton$1 = (function () {
|
|
|
21179
21227
|
}, _callee2);
|
|
21180
21228
|
})), [controller]);
|
|
21181
21229
|
var menuItem = React.useMemo(function () {
|
|
21182
|
-
if (model === 'readOnly') return
|
|
21183
|
-
return
|
|
21230
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
21231
|
+
return React.createElement(Menu$1.Item, {
|
|
21184
21232
|
key: "2",
|
|
21185
21233
|
onClick: onClick,
|
|
21186
21234
|
disabled: disabled
|
|
21187
21235
|
}, "\u6279\u91CF\u8D4B\u7801");
|
|
21188
21236
|
}, [onClick, disabled, model]);
|
|
21189
21237
|
var button = React.useMemo(function () {
|
|
21190
|
-
if (model === 'readOnly') return
|
|
21191
|
-
return
|
|
21238
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
21239
|
+
return React.createElement(Button$1, {
|
|
21192
21240
|
onClick: onClick,
|
|
21193
21241
|
disabled: disabled,
|
|
21194
21242
|
size: 'small'
|
|
@@ -21248,14 +21296,14 @@ var useEmptyRefill = (function () {
|
|
|
21248
21296
|
}());
|
|
21249
21297
|
}, [controller]);
|
|
21250
21298
|
var button = React.useMemo(function () {
|
|
21251
|
-
if (model === 'readOnly') return
|
|
21252
|
-
if (model === 'prefab') return
|
|
21253
|
-
return
|
|
21299
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
21300
|
+
if (model === 'prefab') return React.createElement(React.Fragment, null);
|
|
21301
|
+
return React.createElement(Popconfirm, {
|
|
21254
21302
|
title: "\u5C06\u8981\u6E05\u7A7A\u6240\u6709\u9879\u76EE\u4FE1\u606F\uFF0C\u662F\u5426\u7EE7\u7EED",
|
|
21255
21303
|
onConfirm: confirm,
|
|
21256
21304
|
okText: "\u786E\u5B9A",
|
|
21257
21305
|
cancelText: "\u53D6\u6D88"
|
|
21258
|
-
},
|
|
21306
|
+
}, React.createElement(Button$1, {
|
|
21259
21307
|
size: 'small'
|
|
21260
21308
|
}, "\u6E05\u7A7A\u91CD\u586B"));
|
|
21261
21309
|
}, [model, confirm]);
|
|
@@ -21322,14 +21370,14 @@ function InvoiceTypeModal(props) {
|
|
|
21322
21370
|
setValues(values);
|
|
21323
21371
|
}
|
|
21324
21372
|
}, [props.open, props.defaultBillingType, props.defaultBusiness, props.defaultInvoiceType, form]);
|
|
21325
|
-
return
|
|
21373
|
+
return React.createElement(Modal, {
|
|
21326
21374
|
title: props.modalTitle || "选择开具信息",
|
|
21327
21375
|
open: props.open,
|
|
21328
21376
|
onOk: onConfirm,
|
|
21329
21377
|
onCancel: props.onCancel,
|
|
21330
21378
|
okText: "\u786E\u5B9A",
|
|
21331
21379
|
cancelText: "\u53D6\u6D88"
|
|
21332
|
-
},
|
|
21380
|
+
}, React.createElement(Form$1, {
|
|
21333
21381
|
form: form,
|
|
21334
21382
|
layout: "vertical",
|
|
21335
21383
|
style: {
|
|
@@ -21338,13 +21386,13 @@ function InvoiceTypeModal(props) {
|
|
|
21338
21386
|
onValuesChange: function onValuesChange(_, e) {
|
|
21339
21387
|
setValues(e);
|
|
21340
21388
|
}
|
|
21341
|
-
},
|
|
21389
|
+
}, React.createElement(Row, {
|
|
21342
21390
|
gutter: [16, 16]
|
|
21343
|
-
},
|
|
21391
|
+
}, React.createElement(Col, {
|
|
21344
21392
|
span: 24
|
|
21345
|
-
},
|
|
21393
|
+
}, React.createElement(Form$1.Item, {
|
|
21346
21394
|
name: 'billingType'
|
|
21347
|
-
},
|
|
21395
|
+
}, React.createElement(Radio.Group, {
|
|
21348
21396
|
size: 'large',
|
|
21349
21397
|
className: "goods-list-digtal-reselect-invoice-typeModal-radio",
|
|
21350
21398
|
optionType: "button",
|
|
@@ -21357,27 +21405,27 @@ function InvoiceTypeModal(props) {
|
|
|
21357
21405
|
label: '税控发票',
|
|
21358
21406
|
value: 'taxation'
|
|
21359
21407
|
}]
|
|
21360
|
-
}))),
|
|
21408
|
+
}))), React.createElement(Col, {
|
|
21361
21409
|
span: 12
|
|
21362
|
-
},
|
|
21410
|
+
}, React.createElement(Form$1.Item, {
|
|
21363
21411
|
name: 'invoiceType',
|
|
21364
21412
|
label: "\u9009\u62E9\u7968\u7C7B",
|
|
21365
21413
|
rules: [{
|
|
21366
21414
|
required: true,
|
|
21367
21415
|
message: '选择票类必填'
|
|
21368
21416
|
}]
|
|
21369
|
-
},
|
|
21417
|
+
}, React.createElement(Select$1, {
|
|
21370
21418
|
size: 'large',
|
|
21371
21419
|
allowClear: true,
|
|
21372
21420
|
placeholder: "\u8BF7\u9009\u62E9\uFF08\u5FC5\u586B\u9879\uFF09",
|
|
21373
21421
|
disabled: disableds.indexOf('invoiceType') >= 0,
|
|
21374
21422
|
options: props.invoiceTypeOptions
|
|
21375
|
-
}))),
|
|
21423
|
+
}))), React.createElement(Col, {
|
|
21376
21424
|
span: 12
|
|
21377
|
-
},
|
|
21425
|
+
}, React.createElement(Form$1.Item, {
|
|
21378
21426
|
name: 'business',
|
|
21379
21427
|
label: "\u7279\u5B9A\u4E1A\u52A1"
|
|
21380
|
-
},
|
|
21428
|
+
}, React.createElement(Select$1, {
|
|
21381
21429
|
size: 'large',
|
|
21382
21430
|
allowClear: true,
|
|
21383
21431
|
placeholder: "\u8BF7\u9009\u62E9\uFF08\u975E\u5FC5\u586B\u9879\uFF09",
|
|
@@ -21422,11 +21470,11 @@ var useReselectInvoiceType = (function () {
|
|
|
21422
21470
|
return true;
|
|
21423
21471
|
}, [model, typeModalProps === null || typeModalProps === void 0 ? void 0 : typeModalProps.isDisabled]);
|
|
21424
21472
|
var button = React.useMemo(function () {
|
|
21425
|
-
if (isEnable === false) return
|
|
21426
|
-
return
|
|
21473
|
+
if (isEnable === false) return React.createElement(React.Fragment, null);
|
|
21474
|
+
return React.createElement(React.Fragment, null, React.createElement(Button$1, {
|
|
21427
21475
|
size: 'small',
|
|
21428
21476
|
onClick: onOpen
|
|
21429
|
-
}, "\u91CD\u9009\u53D1\u7968\u7C7B\u578B"),
|
|
21477
|
+
}, "\u91CD\u9009\u53D1\u7968\u7C7B\u578B"), React.createElement(InvoiceTypeModal, _objectSpread2(_objectSpread2({}, typeModalProps), {}, {
|
|
21430
21478
|
open: open,
|
|
21431
21479
|
onCancel: onClose,
|
|
21432
21480
|
onOk: onOk
|
|
@@ -21454,7 +21502,7 @@ var GoodsList$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
21454
21502
|
_createClass(GoodsList, [{
|
|
21455
21503
|
key: "render",
|
|
21456
21504
|
value: function render() {
|
|
21457
|
-
return
|
|
21505
|
+
return React.createElement(Main$3, _objectSpread2({}, this.props));
|
|
21458
21506
|
}
|
|
21459
21507
|
}]);
|
|
21460
21508
|
|
|
@@ -21655,20 +21703,20 @@ var Main$3 = decorator(Form.create())(function (props) {
|
|
|
21655
21703
|
};
|
|
21656
21704
|
}())();
|
|
21657
21705
|
}, [controller, props.isSwitchTax]);
|
|
21658
|
-
return
|
|
21706
|
+
return React.createElement("div", {
|
|
21659
21707
|
className: "kts-invoice-operate-goods-list-digtal",
|
|
21660
21708
|
onClick: function onClick(e) {
|
|
21661
21709
|
e.stopPropagation();
|
|
21662
21710
|
}
|
|
21663
|
-
},
|
|
21711
|
+
}, React.createElement("div", {
|
|
21664
21712
|
className: "kts-invoice-operate-goods-list-able"
|
|
21665
|
-
},
|
|
21713
|
+
}, React.createElement(AddRowButton$1, null), delRowButton.button, addDiscountRowButton.button, endowCodeButton.button, React.createElement(TaxIncludedSwitch$1, null), React.createElement(Search$1, null), React.createElement("div", {
|
|
21666
21714
|
style: {
|
|
21667
21715
|
flex: 1
|
|
21668
21716
|
}
|
|
21669
|
-
}), props.menuExpansion, reselectInvoiceType.button, emptyRefill.button),
|
|
21717
|
+
}), props.menuExpansion, reselectInvoiceType.button, emptyRefill.button), React.createElement("div", {
|
|
21670
21718
|
className: classNames('kts-invoice-operate-goods-list-table-digtal')
|
|
21671
|
-
},
|
|
21719
|
+
}, React.createElement(TableVirtual$1, {
|
|
21672
21720
|
size: "small",
|
|
21673
21721
|
rowKey: "$index",
|
|
21674
21722
|
pagination: false,
|
|
@@ -21690,7 +21738,7 @@ var Main$3 = decorator(Form.create())(function (props) {
|
|
|
21690
21738
|
}
|
|
21691
21739
|
};
|
|
21692
21740
|
}
|
|
21693
|
-
})),
|
|
21741
|
+
})), React.createElement("div", null, React.createElement(Statistics$1, null)));
|
|
21694
21742
|
});
|
|
21695
21743
|
|
|
21696
21744
|
var ImportBuyerDrawer = (function () {
|
|
@@ -21724,7 +21772,7 @@ var ImportBuyerDrawer = (function () {
|
|
|
21724
21772
|
};
|
|
21725
21773
|
}())();
|
|
21726
21774
|
}, [controller]);
|
|
21727
|
-
return
|
|
21775
|
+
return React.createElement(Drawer, {
|
|
21728
21776
|
title: "\u8D2D\u65B9\u5217\u8868",
|
|
21729
21777
|
placement: "right",
|
|
21730
21778
|
// closable={false}
|
|
@@ -21732,7 +21780,7 @@ var ImportBuyerDrawer = (function () {
|
|
|
21732
21780
|
width: 983,
|
|
21733
21781
|
onClose: onClose,
|
|
21734
21782
|
visible: visible
|
|
21735
|
-
}, topExpand,
|
|
21783
|
+
}, topExpand, React.createElement(DrawerBody$1, null));
|
|
21736
21784
|
});
|
|
21737
21785
|
|
|
21738
21786
|
var DrawerBody$1 = function DrawerBody() {
|
|
@@ -21753,7 +21801,7 @@ var DrawerBody$1 = function DrawerBody() {
|
|
|
21753
21801
|
}
|
|
21754
21802
|
});
|
|
21755
21803
|
}, [controller]);
|
|
21756
|
-
return
|
|
21804
|
+
return React.createElement(Table$1, {
|
|
21757
21805
|
bordered: true,
|
|
21758
21806
|
size: "small",
|
|
21759
21807
|
columns: columns,
|
|
@@ -21853,7 +21901,7 @@ var ImportGoodsDrawer = (function () {
|
|
|
21853
21901
|
};
|
|
21854
21902
|
}())();
|
|
21855
21903
|
}, [controller]);
|
|
21856
|
-
return
|
|
21904
|
+
return React.createElement(Drawer, {
|
|
21857
21905
|
title: "\u5546\u54C1\u5217\u8868",
|
|
21858
21906
|
placement: "right",
|
|
21859
21907
|
// closable={false}
|
|
@@ -21861,11 +21909,11 @@ var ImportGoodsDrawer = (function () {
|
|
|
21861
21909
|
width: 983,
|
|
21862
21910
|
onClose: onClose,
|
|
21863
21911
|
visible: visible
|
|
21864
|
-
}, topExpand &&
|
|
21912
|
+
}, topExpand && React.createElement("div", {
|
|
21865
21913
|
style: {
|
|
21866
21914
|
marginBottom: 10
|
|
21867
21915
|
}
|
|
21868
|
-
}, topExpand),
|
|
21916
|
+
}, topExpand), React.createElement(DrawerBody$2, null));
|
|
21869
21917
|
});
|
|
21870
21918
|
|
|
21871
21919
|
var DrawerBody$2 = function DrawerBody() {
|
|
@@ -21887,7 +21935,7 @@ var DrawerBody$2 = function DrawerBody() {
|
|
|
21887
21935
|
}
|
|
21888
21936
|
});
|
|
21889
21937
|
}, [controller]);
|
|
21890
|
-
return
|
|
21938
|
+
return React.createElement(Table$1, {
|
|
21891
21939
|
bordered: true,
|
|
21892
21940
|
size: "small",
|
|
21893
21941
|
columns: columns,
|
|
@@ -22179,7 +22227,7 @@ var EndowCodeDrawer = (function () {
|
|
|
22179
22227
|
setDefaultValue(undefined);
|
|
22180
22228
|
}
|
|
22181
22229
|
}, [visible]);
|
|
22182
|
-
return
|
|
22230
|
+
return React.createElement(Drawer, {
|
|
22183
22231
|
title: "\u8D4B\u7801",
|
|
22184
22232
|
placement: "right",
|
|
22185
22233
|
destroyOnClose: true,
|
|
@@ -22187,7 +22235,7 @@ var EndowCodeDrawer = (function () {
|
|
|
22187
22235
|
width: 383,
|
|
22188
22236
|
onClose: onClose,
|
|
22189
22237
|
visible: visible
|
|
22190
|
-
}, defaultValue &&
|
|
22238
|
+
}, defaultValue && React.createElement(DrawerBody$3, {
|
|
22191
22239
|
defaultValue: defaultValue
|
|
22192
22240
|
}));
|
|
22193
22241
|
});
|
|
@@ -22344,7 +22392,7 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
22344
22392
|
};
|
|
22345
22393
|
}());
|
|
22346
22394
|
}, [actions, dataSource, readOnlyTaxRate]);
|
|
22347
|
-
return
|
|
22395
|
+
return React.createElement(Select, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
22348
22396
|
showSearch: true,
|
|
22349
22397
|
showArrow: false,
|
|
22350
22398
|
notFoundContent: null,
|
|
@@ -22352,7 +22400,7 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
22352
22400
|
onSearch: onSearch,
|
|
22353
22401
|
onChange: onChange
|
|
22354
22402
|
}), dataSource.map(function (e) {
|
|
22355
|
-
return
|
|
22403
|
+
return React.createElement(Select.Option, {
|
|
22356
22404
|
key: e.value,
|
|
22357
22405
|
value: e.value
|
|
22358
22406
|
}, e.label);
|
|
@@ -22382,14 +22430,14 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
22382
22430
|
|
|
22383
22431
|
|
|
22384
22432
|
var createTreeNode = React.useCallback(function () {
|
|
22385
|
-
if (!list) return
|
|
22433
|
+
if (!list) return React.createElement(React.Fragment, null);
|
|
22386
22434
|
return ctn(list);
|
|
22387
22435
|
|
|
22388
22436
|
function title(label) {
|
|
22389
22437
|
if (!filter) return label;
|
|
22390
22438
|
label = (filter.taxCategoryCode ? label.split(new RegExp(filter.taxCategoryCode, 'g')) : [label]).join("<span style=\"color: #1890ff;\">".concat(filter.taxCategoryCode, "</span>"));
|
|
22391
22439
|
label = (filter.val ? label.split(new RegExp(filter.val, 'g')) : [label]).join("<span style=\"color: #1890ff;\">".concat(filter.val, "</span>"));
|
|
22392
|
-
return
|
|
22440
|
+
return React.createElement("span", {
|
|
22393
22441
|
dangerouslySetInnerHTML: {
|
|
22394
22442
|
__html: label
|
|
22395
22443
|
}
|
|
@@ -22398,11 +22446,11 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
22398
22446
|
|
|
22399
22447
|
function ctn(l) {
|
|
22400
22448
|
var p = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '0';
|
|
22401
|
-
if (!l || !l.length) return [
|
|
22449
|
+
if (!l || !l.length) return [React.createElement(React.Fragment, null)];
|
|
22402
22450
|
return l.filter(function (e) {
|
|
22403
22451
|
return e.pid === p;
|
|
22404
22452
|
}).map(function (e) {
|
|
22405
|
-
return
|
|
22453
|
+
return React.createElement(TreeNode, {
|
|
22406
22454
|
title: title(e.label),
|
|
22407
22455
|
key: e.id
|
|
22408
22456
|
}, ctn(l, e.id));
|
|
@@ -22532,46 +22580,46 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
22532
22580
|
setList([]);
|
|
22533
22581
|
}
|
|
22534
22582
|
}, [visible]);
|
|
22535
|
-
return
|
|
22583
|
+
return React.createElement(React.Fragment, null, React.createElement(Input, {
|
|
22536
22584
|
readOnly: true,
|
|
22537
22585
|
value: props.value,
|
|
22538
|
-
addonAfter:
|
|
22586
|
+
addonAfter: React.createElement(Button, {
|
|
22539
22587
|
size: "small",
|
|
22540
22588
|
type: "link",
|
|
22541
22589
|
onClick: function onClick() {
|
|
22542
22590
|
setVisible(true);
|
|
22543
22591
|
}
|
|
22544
22592
|
}, "\u70B9\u51FB\u9009\u62E9")
|
|
22545
|
-
}),
|
|
22593
|
+
}), React.createElement(Drawer, {
|
|
22546
22594
|
title: "\u7A0E\u6536\u5206\u7C7B\u7F16\u7801",
|
|
22547
22595
|
visible: visible,
|
|
22548
22596
|
width: 500,
|
|
22549
22597
|
onClose: function onClose() {
|
|
22550
22598
|
setVisible(false);
|
|
22551
22599
|
}
|
|
22552
|
-
},
|
|
22600
|
+
}, React.createElement(Form, {
|
|
22553
22601
|
key: "".concat(visible)
|
|
22554
|
-
},
|
|
22602
|
+
}, React.createElement(Form.Item, {
|
|
22555
22603
|
label: "\u4EA7\u54C1\u6216\u670D\u52A1\u7B80\u79F0"
|
|
22556
|
-
},
|
|
22604
|
+
}, React.createElement(Input, {
|
|
22557
22605
|
onChange: function onChange(e) {
|
|
22558
22606
|
setFilter(_objectSpread2(_objectSpread2({}, filter), {}, {
|
|
22559
22607
|
val: e.target.value
|
|
22560
22608
|
}));
|
|
22561
22609
|
}
|
|
22562
|
-
})),
|
|
22610
|
+
})), React.createElement(Form.Item, {
|
|
22563
22611
|
label: "\u7A0E\u6536\u5206\u7C7B\u7F16\u7801"
|
|
22564
|
-
},
|
|
22612
|
+
}, React.createElement(Input, {
|
|
22565
22613
|
onChange: function onChange(e) {
|
|
22566
22614
|
setFilter(_objectSpread2(_objectSpread2({}, filter), {}, {
|
|
22567
22615
|
taxCategoryCode: e.target.value
|
|
22568
22616
|
}));
|
|
22569
22617
|
}
|
|
22570
|
-
}))), list && list.length > 0 ?
|
|
22618
|
+
}))), list && list.length > 0 ? React.createElement(Tree, {
|
|
22571
22619
|
defaultExpandAll: true,
|
|
22572
22620
|
selectedKeys: [],
|
|
22573
22621
|
onSelect: onSelect
|
|
22574
|
-
}, createTreeNode()) :
|
|
22622
|
+
}, createTreeNode()) : React.createElement("span", {
|
|
22575
22623
|
style: {
|
|
22576
22624
|
color: '#00000073'
|
|
22577
22625
|
}
|
|
@@ -22790,11 +22838,11 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
22790
22838
|
return data;
|
|
22791
22839
|
};
|
|
22792
22840
|
|
|
22793
|
-
return
|
|
22841
|
+
return React.createElement(React.Fragment, null, React.createElement(Input, {
|
|
22794
22842
|
readOnly: true,
|
|
22795
22843
|
onClick: onClick,
|
|
22796
22844
|
value: props.value
|
|
22797
|
-
}),
|
|
22845
|
+
}), React.createElement(TaxClassificationModal, {
|
|
22798
22846
|
list: list,
|
|
22799
22847
|
open: open,
|
|
22800
22848
|
onSelect: onSelect,
|
|
@@ -22910,14 +22958,14 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
22910
22958
|
React.useEffect(function () {
|
|
22911
22959
|
if (controller.getTaxCategoryCodeList) controller.getTaxCategoryCodeList();
|
|
22912
22960
|
}, [controller]);
|
|
22913
|
-
return
|
|
22961
|
+
return React.createElement(SchemaForm, {
|
|
22914
22962
|
actions: actions,
|
|
22915
22963
|
previewPlaceholder: " ",
|
|
22916
22964
|
components: _objectSpread2(_objectSpread2({}, components), {}, {
|
|
22917
22965
|
showSearch: !!controller.state.goodsListState.endowCode.onLoadTaxClassificationCode ? ShowSearch3 : ShowSearch
|
|
22918
22966
|
}),
|
|
22919
22967
|
effects: effects
|
|
22920
|
-
},
|
|
22968
|
+
}, React.createElement(FormButtonGroup, null, React.createElement(SchemaMarkupField, {
|
|
22921
22969
|
name: "taxClassificationCode",
|
|
22922
22970
|
type: "showSearch",
|
|
22923
22971
|
title: "\u7A0E\u6536\u5206\u7C7B\u7F16\u7801",
|
|
@@ -22927,13 +22975,13 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
22927
22975
|
message: '请选择税收分类编码',
|
|
22928
22976
|
required: true
|
|
22929
22977
|
}]
|
|
22930
|
-
}),
|
|
22978
|
+
}), React.createElement(SchemaMarkupField, {
|
|
22931
22979
|
name: "shorthand",
|
|
22932
22980
|
type: "string",
|
|
22933
22981
|
readOnly: true,
|
|
22934
22982
|
default: defaultValue === null || defaultValue === void 0 ? void 0 : defaultValue.shorthand,
|
|
22935
22983
|
title: "\u5546\u54C1\u548C\u670D\u52A1\u5206\u7C7B\u7B80\u79F0"
|
|
22936
|
-
}),
|
|
22984
|
+
}), React.createElement(SchemaMarkupField, {
|
|
22937
22985
|
name: "taxRate",
|
|
22938
22986
|
type: "string",
|
|
22939
22987
|
title: "\u7A0E\u7387",
|
|
@@ -22946,7 +22994,7 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
22946
22994
|
message: '请选择税率',
|
|
22947
22995
|
required: true
|
|
22948
22996
|
}]
|
|
22949
|
-
}), taxRate === 0 && isTaxFreeTypeNeeded &&
|
|
22997
|
+
}), taxRate === 0 && isTaxFreeTypeNeeded && React.createElement(SchemaMarkupField, {
|
|
22950
22998
|
name: "taxFreeType",
|
|
22951
22999
|
type: "string",
|
|
22952
23000
|
title: "\u514D\u7A0E\u7C7B\u578B",
|
|
@@ -22959,7 +23007,7 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
22959
23007
|
message: '请选择免税类型',
|
|
22960
23008
|
required: true
|
|
22961
23009
|
}]
|
|
22962
|
-
}),
|
|
23010
|
+
}), React.createElement(SchemaMarkupField, {
|
|
22963
23011
|
name: "favouredPolicyMark",
|
|
22964
23012
|
type: "number",
|
|
22965
23013
|
title: "\u662F\u5426\u4EAB\u53D7\u4F18\u60E0\u653F\u7B56",
|
|
@@ -22978,7 +23026,7 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
22978
23026
|
message: '请选择是否享受优惠政策',
|
|
22979
23027
|
required: true
|
|
22980
23028
|
}]
|
|
22981
|
-
}), favouredPolicyMark === 1 &&
|
|
23029
|
+
}), favouredPolicyMark === 1 && React.createElement(SchemaMarkupField, {
|
|
22982
23030
|
name: "favouredPolicyName",
|
|
22983
23031
|
type: "string",
|
|
22984
23032
|
title: "\u4F18\u60E0\u653F\u7B56\u7C7B\u578B",
|
|
@@ -22991,14 +23039,14 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
22991
23039
|
message: '请选择是否享受优惠政策',
|
|
22992
23040
|
required: true
|
|
22993
23041
|
}]
|
|
22994
|
-
})),
|
|
23042
|
+
})), React.createElement("span", {
|
|
22995
23043
|
className: "kts-invoice-operate-goods-endow-code-button-list"
|
|
22996
|
-
},
|
|
23044
|
+
}, React.createElement(Button, {
|
|
22997
23045
|
onClick: function onClick() {
|
|
22998
23046
|
actions.submit(onSubmit);
|
|
22999
23047
|
},
|
|
23000
23048
|
type: "primary"
|
|
23001
|
-
}, "\u786E\u5B9A"),
|
|
23049
|
+
}, "\u786E\u5B9A"), React.createElement(Button, {
|
|
23002
23050
|
onClick: function onClick() {
|
|
23003
23051
|
controller.pipeline( /*#__PURE__*/function () {
|
|
23004
23052
|
var _ref20 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee20(s) {
|
|
@@ -23158,53 +23206,53 @@ function AddComparisonDrawer() {
|
|
|
23158
23206
|
}));
|
|
23159
23207
|
}
|
|
23160
23208
|
}, [good]);
|
|
23161
|
-
return
|
|
23209
|
+
return React.createElement(Drawer$1, {
|
|
23162
23210
|
width: 500,
|
|
23163
23211
|
onClose: onClose,
|
|
23164
23212
|
placement: "right",
|
|
23165
23213
|
title: "\u5546\u54C1\u6620\u5C04",
|
|
23166
23214
|
visible: !!good,
|
|
23167
|
-
footer:
|
|
23215
|
+
footer: React.createElement("div", {
|
|
23168
23216
|
style: {
|
|
23169
23217
|
display: 'flex',
|
|
23170
23218
|
justifyContent: 'flex-end',
|
|
23171
23219
|
gap: 10
|
|
23172
23220
|
}
|
|
23173
|
-
},
|
|
23221
|
+
}, React.createElement(Button, {
|
|
23174
23222
|
type: "primary",
|
|
23175
23223
|
onClick: onSubmit
|
|
23176
|
-
}, "\u63D0\u4EA4"),
|
|
23224
|
+
}, "\u63D0\u4EA4"), React.createElement(Button, {
|
|
23177
23225
|
onClick: onClose
|
|
23178
23226
|
}, "\u53D6\u6D88"))
|
|
23179
|
-
}, !!good &&
|
|
23227
|
+
}, !!good && React.createElement(Form$1, {
|
|
23180
23228
|
layout: "vertical",
|
|
23181
23229
|
style: {
|
|
23182
23230
|
flex: 1
|
|
23183
23231
|
},
|
|
23184
23232
|
form: form
|
|
23185
|
-
},
|
|
23233
|
+
}, React.createElement(Row$1, {
|
|
23186
23234
|
gutter: [8, 8]
|
|
23187
|
-
},
|
|
23235
|
+
}, React.createElement(Col$1, {
|
|
23188
23236
|
span: 12
|
|
23189
|
-
},
|
|
23237
|
+
}, React.createElement(Form$1.Item, {
|
|
23190
23238
|
name: "itemNameSelf",
|
|
23191
23239
|
label: "\u6211\u65B9\u5546\u54C1\u540D\u79F0"
|
|
23192
|
-
},
|
|
23240
|
+
}, React.createElement(Input, null))), React.createElement(Col$1, {
|
|
23193
23241
|
span: 12
|
|
23194
|
-
},
|
|
23242
|
+
}, React.createElement(Form$1.Item, {
|
|
23195
23243
|
name: "itemName",
|
|
23196
23244
|
label: "\u5BF9\u65B9\u5546\u54C1\u540D\u79F0"
|
|
23197
|
-
},
|
|
23245
|
+
}, React.createElement(Input, null))), React.createElement(Col$1, {
|
|
23198
23246
|
span: 12
|
|
23199
|
-
},
|
|
23247
|
+
}, React.createElement(Form$1.Item, {
|
|
23200
23248
|
name: 'itemModelNameSelf',
|
|
23201
23249
|
label: "\u6211\u65B9\u89C4\u683C\u578B\u53F7"
|
|
23202
|
-
},
|
|
23250
|
+
}, React.createElement(Input, null))), React.createElement(Col$1, {
|
|
23203
23251
|
span: 12
|
|
23204
|
-
},
|
|
23252
|
+
}, React.createElement(Form$1.Item, {
|
|
23205
23253
|
name: "itemModelName",
|
|
23206
23254
|
label: "\u5BF9\u65B9\u89C4\u683C\u578B\u53F7"
|
|
23207
|
-
},
|
|
23255
|
+
}, React.createElement(Input, null))))));
|
|
23208
23256
|
} // function validateFields(form: WrappedFormUtils<any>) {
|
|
23209
23257
|
// return new Promise<{ err: any, values: any }>(resolve => {
|
|
23210
23258
|
// form.validateFields((err, values) => {
|
|
@@ -23215,7 +23263,7 @@ function AddComparisonDrawer() {
|
|
|
23215
23263
|
|
|
23216
23264
|
/** 发票组件的上下文 */
|
|
23217
23265
|
|
|
23218
|
-
var InvoiceContext =
|
|
23266
|
+
var InvoiceContext = React.createContext(undefined);
|
|
23219
23267
|
|
|
23220
23268
|
var Invoice = /*#__PURE__*/function (_React$PureComponent) {
|
|
23221
23269
|
_inherits(Invoice, _React$PureComponent);
|
|
@@ -23258,9 +23306,9 @@ var Invoice = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
23258
23306
|
/** 获取控制器钩子 */
|
|
23259
23307
|
function render() {
|
|
23260
23308
|
if (this.props.invoiceType === 'digtal') {
|
|
23261
|
-
return
|
|
23309
|
+
return React.createElement(Digtal, _objectSpread2({}, this.props));
|
|
23262
23310
|
} else {
|
|
23263
|
-
return
|
|
23311
|
+
return React.createElement(Main$4, _objectSpread2({}, this.props));
|
|
23264
23312
|
}
|
|
23265
23313
|
}
|
|
23266
23314
|
}]);
|
|
@@ -23301,10 +23349,10 @@ var Main$4 = function Main(props) {
|
|
|
23301
23349
|
React.useEffect(function () {
|
|
23302
23350
|
setKey(key + 1);
|
|
23303
23351
|
}, [controller]);
|
|
23304
|
-
return
|
|
23352
|
+
return React.createElement(InvoiceContext.Provider, {
|
|
23305
23353
|
key: key,
|
|
23306
23354
|
value: controller
|
|
23307
|
-
},
|
|
23355
|
+
}, React.createElement("div", {
|
|
23308
23356
|
className: "kts-invoice-operate",
|
|
23309
23357
|
ref: controller.pipeline( /*#__PURE__*/function () {
|
|
23310
23358
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(s, e) {
|
|
@@ -23326,17 +23374,17 @@ var Main$4 = function Main(props) {
|
|
|
23326
23374
|
return _ref.apply(this, arguments);
|
|
23327
23375
|
};
|
|
23328
23376
|
}())
|
|
23329
|
-
}, props.invoiceHeader ||
|
|
23377
|
+
}, props.invoiceHeader || React.createElement(InvoiceHeader, null)
|
|
23330
23378
|
/** 发票头 */
|
|
23331
|
-
, props.buyer ||
|
|
23379
|
+
, props.buyer || React.createElement(Buyer$1, null)
|
|
23332
23380
|
/** 购买方 */
|
|
23333
|
-
, props.goodsList ||
|
|
23381
|
+
, props.goodsList || React.createElement(GoodsList, null)
|
|
23334
23382
|
/** 货物列表 */
|
|
23335
|
-
, props.seller ||
|
|
23383
|
+
, props.seller || React.createElement(Buyer, null)
|
|
23336
23384
|
/** 销售方 */
|
|
23337
|
-
, props.sign ||
|
|
23385
|
+
, props.sign || React.createElement(Sign, null)
|
|
23338
23386
|
/** 落款 */
|
|
23339
|
-
, props.footExpand),
|
|
23387
|
+
, props.footExpand), React.createElement(ImportBuyerDrawer, null), React.createElement(ImportGoodsDrawer, null), React.createElement(EndowCodeDrawer, null), React.createElement(AddComparisonDrawer, null));
|
|
23340
23388
|
};
|
|
23341
23389
|
/** 数电 */
|
|
23342
23390
|
|
|
@@ -23355,10 +23403,10 @@ var Digtal = function Digtal(props) {
|
|
|
23355
23403
|
React.useEffect(function () {
|
|
23356
23404
|
setKey(key + 1);
|
|
23357
23405
|
}, [controller]);
|
|
23358
|
-
return
|
|
23406
|
+
return React.createElement(InvoiceContext.Provider, {
|
|
23359
23407
|
key: key,
|
|
23360
23408
|
value: controller
|
|
23361
|
-
},
|
|
23409
|
+
}, React.createElement("div", {
|
|
23362
23410
|
className: "kts-invoice-operate-digtal",
|
|
23363
23411
|
ref: controller.pipeline( /*#__PURE__*/function () {
|
|
23364
23412
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(s, e) {
|
|
@@ -23380,17 +23428,17 @@ var Digtal = function Digtal(props) {
|
|
|
23380
23428
|
return _ref2.apply(this, arguments);
|
|
23381
23429
|
};
|
|
23382
23430
|
}())
|
|
23383
|
-
}, props.invoiceHeader ||
|
|
23431
|
+
}, props.invoiceHeader || React.createElement(InvoiceHeaderDigtal, null)
|
|
23384
23432
|
/** 发票头 */
|
|
23385
|
-
,
|
|
23433
|
+
, React.createElement("div", {
|
|
23386
23434
|
className: 'kts-invoice-operate-digtal-cont'
|
|
23387
|
-
}, props.stakeholder ||
|
|
23435
|
+
}, props.stakeholder || React.createElement(Stakeholder$1, null)
|
|
23388
23436
|
/** 干系人 */
|
|
23389
|
-
, props.goodsList ||
|
|
23437
|
+
, props.goodsList || React.createElement(GoodsList$1
|
|
23390
23438
|
/** 货物列表 */
|
|
23391
|
-
, null)), props.sign ||
|
|
23439
|
+
, null)), props.sign || React.createElement(SignDigtal, null)
|
|
23392
23440
|
/** 落款 */
|
|
23393
|
-
),
|
|
23441
|
+
), React.createElement(ImportGoodsDrawer, null), React.createElement(EndowCodeDrawer, null));
|
|
23394
23442
|
};
|
|
23395
23443
|
|
|
23396
23444
|
function TaxClassificationModal(props) {
|
|
@@ -23405,26 +23453,26 @@ function TaxClassificationModal(props) {
|
|
|
23405
23453
|
}, 500);
|
|
23406
23454
|
}
|
|
23407
23455
|
}, [form, props.open]);
|
|
23408
|
-
return
|
|
23456
|
+
return React.createElement(Drawer$1, {
|
|
23409
23457
|
title: "\u5546\u54C1\u548C\u670D\u52A1\u7A0E\u6536\u5206\u7C7B\u7F16\u7801",
|
|
23410
23458
|
placement: "right",
|
|
23411
23459
|
open: props.open,
|
|
23412
23460
|
width: 503,
|
|
23413
23461
|
onClose: props.onCancel
|
|
23414
|
-
},
|
|
23462
|
+
}, React.createElement(Form$1, {
|
|
23415
23463
|
form: form
|
|
23416
|
-
},
|
|
23464
|
+
}, React.createElement(Form$1.Item, {
|
|
23417
23465
|
name: 'search'
|
|
23418
|
-
},
|
|
23466
|
+
}, React.createElement(Input$1, {
|
|
23419
23467
|
placeholder: "\u8BF7\u8F93\u5165\u7A0E\u6536\u5206\u7C7B\u7F16\u7801\u3001\u7A0E\u6536\u5206\u7C7B\u540D\u79F0\u8FDB\u884C\u68C0\u7D22",
|
|
23420
23468
|
onChange: props.onSearch
|
|
23421
|
-
})),
|
|
23469
|
+
})), React.createElement(Form$1.Item, {
|
|
23422
23470
|
name: 'tree'
|
|
23423
|
-
},
|
|
23471
|
+
}, React.createElement(Tree$1, {
|
|
23424
23472
|
onSelect: props.onSelect,
|
|
23425
23473
|
loadData: props.onLoad,
|
|
23426
23474
|
treeData: props.list,
|
|
23427
|
-
switcherIcon:
|
|
23475
|
+
switcherIcon: React.createElement(Icon$1, {
|
|
23428
23476
|
type: "down"
|
|
23429
23477
|
})
|
|
23430
23478
|
}))));
|