kts-component-invoice-operate 3.2.82 → 3.2.84
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 +651 -618
- package/dist/index.js +651 -618
- 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 +1126 -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 +114 -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 +109 -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");
|
|
@@ -14775,63 +14825,41 @@ function useSalesDiscount() {
|
|
|
14775
14825
|
var selectedGoodIndex = controller.useMemo(function (s) {
|
|
14776
14826
|
return s.goodsListState.selectedGoodIndex;
|
|
14777
14827
|
}, []);
|
|
14778
|
-
var
|
|
14779
|
-
return s.goodsListState.
|
|
14828
|
+
var goodsList = controller.useMemo(function (s) {
|
|
14829
|
+
return s.goodsListState.goodsList;
|
|
14780
14830
|
}, []);
|
|
14781
14831
|
var isSalesDiscount = controller.useMemo(function (s) {
|
|
14782
14832
|
return s.goodsListState.isSalesDiscount;
|
|
14783
14833
|
}, []);
|
|
14784
14834
|
var onClick = React.useCallback( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
14785
|
-
var selectedGood,
|
|
14786
|
-
|
|
14835
|
+
var selectedGood, concessions, discountGood, totalDiscoline, discolinesSum, totalAmount, discolines, surplus, i;
|
|
14787
14836
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
14788
14837
|
while (1) {
|
|
14789
14838
|
switch (_context3.prev = _context3.next) {
|
|
14790
14839
|
case 0:
|
|
14791
|
-
selectedGood =
|
|
14792
|
-
return
|
|
14793
|
-
});
|
|
14794
|
-
|
|
14795
|
-
if (!(selectedGood.filter(function (e) {
|
|
14796
|
-
return (e === null || e === void 0 ? void 0 : e.lineAttribute) === LineAttributeType$1.折扣行 || (e === null || e === void 0 ? void 0 : e.lineAttribute) === LineAttributeType$1.被折扣行;
|
|
14797
|
-
}).length > 0)) {
|
|
14798
|
-
_context3.next = 5;
|
|
14799
|
-
break;
|
|
14800
|
-
}
|
|
14801
|
-
|
|
14802
|
-
content = '不能选择折扣行和被折扣行';
|
|
14803
|
-
message.error({
|
|
14804
|
-
content: content,
|
|
14805
|
-
key: content
|
|
14840
|
+
selectedGood = goodsList.filter(function (e) {
|
|
14841
|
+
return e.lineAttribute === LineAttributeType$1.折让行 || e.lineAttribute === LineAttributeType$1.正常;
|
|
14806
14842
|
});
|
|
14807
|
-
return _context3.abrupt("return");
|
|
14808
|
-
|
|
14809
|
-
case 5:
|
|
14810
14843
|
/** 折让行 */
|
|
14811
|
-
concession = selectedGood.filter(function (e) {
|
|
14812
|
-
return (e === null || e === void 0 ? void 0 : e.lineAttribute) === LineAttributeType$1.折让行;
|
|
14813
|
-
})[0];
|
|
14814
14844
|
|
|
14815
|
-
|
|
14816
|
-
|
|
14817
|
-
break;
|
|
14818
|
-
}
|
|
14819
|
-
|
|
14820
|
-
_content = '未选择折让行';
|
|
14821
|
-
message.error({
|
|
14822
|
-
content: _content,
|
|
14823
|
-
key: _content
|
|
14845
|
+
concessions = selectedGood.filter(function (e) {
|
|
14846
|
+
return (e === null || e === void 0 ? void 0 : e.lineAttribute) === LineAttributeType$1.折让行;
|
|
14824
14847
|
});
|
|
14825
|
-
return _context3.abrupt("return");
|
|
14826
|
-
|
|
14827
|
-
case 10:
|
|
14828
14848
|
/** 准备添加折扣的货物列表 */
|
|
14849
|
+
|
|
14829
14850
|
discountGood = selectedGood.filter(function (e) {
|
|
14830
14851
|
return (e === null || e === void 0 ? void 0 : e.lineAttribute) !== LineAttributeType$1.折让行;
|
|
14831
14852
|
});
|
|
14832
14853
|
/** 折扣总金额 */
|
|
14833
14854
|
|
|
14834
|
-
totalDiscoline =
|
|
14855
|
+
totalDiscoline = function () {
|
|
14856
|
+
var sum = chain$1(bignumber(0));
|
|
14857
|
+
concessions.forEach(function (e) {
|
|
14858
|
+
sum = sum.add(bignumber(-1 * (e.lineAmountIncludeTax || 0)));
|
|
14859
|
+
});
|
|
14860
|
+
return sum;
|
|
14861
|
+
}();
|
|
14862
|
+
|
|
14835
14863
|
discolinesSum = chain$1(bignumber(0));
|
|
14836
14864
|
/** 总金额 */
|
|
14837
14865
|
|
|
@@ -14861,38 +14889,40 @@ function useSalesDiscount() {
|
|
|
14861
14889
|
|
|
14862
14890
|
i = 0;
|
|
14863
14891
|
|
|
14864
|
-
case
|
|
14892
|
+
case 9:
|
|
14865
14893
|
if (!(i < discolines.length)) {
|
|
14866
|
-
_context3.next =
|
|
14894
|
+
_context3.next = 17;
|
|
14867
14895
|
break;
|
|
14868
14896
|
}
|
|
14869
14897
|
|
|
14870
14898
|
if (!surplus.smaller(0.01).done()) {
|
|
14871
|
-
_context3.next =
|
|
14899
|
+
_context3.next = 12;
|
|
14872
14900
|
break;
|
|
14873
14901
|
}
|
|
14874
14902
|
|
|
14875
|
-
return _context3.abrupt("break",
|
|
14903
|
+
return _context3.abrupt("break", 17);
|
|
14876
14904
|
|
|
14877
|
-
case
|
|
14905
|
+
case 12:
|
|
14878
14906
|
discolines[i] = chain$1(bignumber(discolines[i])).add(bignumber(0.01)).done().toNumber();
|
|
14879
14907
|
surplus = surplus.subtract(bignumber(0.01));
|
|
14880
14908
|
|
|
14881
|
-
case
|
|
14909
|
+
case 14:
|
|
14882
14910
|
i++;
|
|
14883
|
-
_context3.next =
|
|
14911
|
+
_context3.next = 9;
|
|
14884
14912
|
break;
|
|
14885
14913
|
|
|
14886
|
-
case
|
|
14887
|
-
_context3.next =
|
|
14914
|
+
case 17:
|
|
14915
|
+
_context3.next = 19;
|
|
14888
14916
|
return controller.run( /*#__PURE__*/function () {
|
|
14889
14917
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(s) {
|
|
14890
14918
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
14891
14919
|
while (1) {
|
|
14892
14920
|
switch (_context.prev = _context.next) {
|
|
14893
14921
|
case 0:
|
|
14894
|
-
|
|
14895
|
-
|
|
14922
|
+
concessions.forEach(function (concession) {
|
|
14923
|
+
s.goodsListState.goodsList = s.goodsListState.goodsList.filter(function (e) {
|
|
14924
|
+
return e.$index !== concession.$index;
|
|
14925
|
+
});
|
|
14896
14926
|
});
|
|
14897
14927
|
|
|
14898
14928
|
case 1:
|
|
@@ -14908,8 +14938,8 @@ function useSalesDiscount() {
|
|
|
14908
14938
|
};
|
|
14909
14939
|
}());
|
|
14910
14940
|
|
|
14911
|
-
case
|
|
14912
|
-
_context3.next =
|
|
14941
|
+
case 19:
|
|
14942
|
+
_context3.next = 21;
|
|
14913
14943
|
return controller.run( /*#__PURE__*/function () {
|
|
14914
14944
|
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(s) {
|
|
14915
14945
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
@@ -14931,8 +14961,8 @@ function useSalesDiscount() {
|
|
|
14931
14961
|
};
|
|
14932
14962
|
}());
|
|
14933
14963
|
|
|
14934
|
-
case
|
|
14935
|
-
_context3.next =
|
|
14964
|
+
case 21:
|
|
14965
|
+
_context3.next = 23;
|
|
14936
14966
|
return controller.addGoodDiscountV2(discolines.map(function (e, i) {
|
|
14937
14967
|
var _discountGood$i;
|
|
14938
14968
|
|
|
@@ -14942,20 +14972,25 @@ function useSalesDiscount() {
|
|
|
14942
14972
|
};
|
|
14943
14973
|
}));
|
|
14944
14974
|
|
|
14945
|
-
case
|
|
14975
|
+
case 23:
|
|
14946
14976
|
case "end":
|
|
14947
14977
|
return _context3.stop();
|
|
14948
14978
|
}
|
|
14949
14979
|
}
|
|
14950
14980
|
}, _callee3);
|
|
14951
|
-
})), [controller, selectedGoodIndex,
|
|
14981
|
+
})), [controller, selectedGoodIndex, goodsList]);
|
|
14982
|
+
var disabled = React.useMemo(function () {
|
|
14983
|
+
return goodsList.filter(function (e) {
|
|
14984
|
+
return e.lineAttribute === LineAttributeType$1.折让行;
|
|
14985
|
+
}).length <= 0;
|
|
14986
|
+
}, [goodsList]);
|
|
14952
14987
|
var button = React.useMemo(function () {
|
|
14953
|
-
if (!isSalesDiscount) return
|
|
14954
|
-
return
|
|
14988
|
+
if (!isSalesDiscount) return React.createElement(React.Fragment, null);
|
|
14989
|
+
return React.createElement(Button, {
|
|
14955
14990
|
onClick: onClick,
|
|
14956
|
-
disabled:
|
|
14991
|
+
disabled: disabled
|
|
14957
14992
|
}, "\u9500\u552E\u6298\u8BA9");
|
|
14958
|
-
}, [selectedGoodIndex.length, isSalesDiscount]);
|
|
14993
|
+
}, [selectedGoodIndex.length, isSalesDiscount, disabled]);
|
|
14959
14994
|
return {
|
|
14960
14995
|
/** 按钮 */
|
|
14961
14996
|
button: button
|
|
@@ -15126,12 +15161,12 @@ function useSalesGifts() {
|
|
|
15126
15161
|
}, [selectedGoodIndex, onClickManual, onClickAuto]);
|
|
15127
15162
|
var button = React.useMemo(function () {
|
|
15128
15163
|
if (!isSalesGifts) return;
|
|
15129
|
-
return
|
|
15164
|
+
return React.createElement(Dropdown$1, {
|
|
15130
15165
|
menu: {
|
|
15131
15166
|
items: items
|
|
15132
15167
|
},
|
|
15133
15168
|
trigger: ['click']
|
|
15134
|
-
},
|
|
15169
|
+
}, React.createElement(Button, null, "\u9500\u552E\u8D60\u54C1"));
|
|
15135
15170
|
}, [items, isSalesGifts]);
|
|
15136
15171
|
return {
|
|
15137
15172
|
/** 按钮 */
|
|
@@ -15153,7 +15188,7 @@ var GoodsList = /*#__PURE__*/function (_React$Component) {
|
|
|
15153
15188
|
_createClass(GoodsList, [{
|
|
15154
15189
|
key: "render",
|
|
15155
15190
|
value: function render() {
|
|
15156
|
-
return
|
|
15191
|
+
return React.createElement(Main, _objectSpread2({}, this.props));
|
|
15157
15192
|
}
|
|
15158
15193
|
}]);
|
|
15159
15194
|
|
|
@@ -15355,22 +15390,22 @@ var Main = decorator(Form.create())(function (props) {
|
|
|
15355
15390
|
};
|
|
15356
15391
|
}())();
|
|
15357
15392
|
}, [controller, props.isSwitchTax]);
|
|
15358
|
-
return
|
|
15393
|
+
return React.createElement("div", {
|
|
15359
15394
|
className: "kts-invoice-operate-goods-list",
|
|
15360
15395
|
onClick: function onClick(e) {
|
|
15361
15396
|
e.stopPropagation();
|
|
15362
15397
|
}
|
|
15363
|
-
},
|
|
15398
|
+
}, React.createElement("div", {
|
|
15364
15399
|
className: "kts-invoice-operate-goods-list-able"
|
|
15365
|
-
},
|
|
15400
|
+
}, React.createElement("div", {
|
|
15366
15401
|
className: "kts-invoice-operate-goods-list-able-list"
|
|
15367
|
-
},
|
|
15402
|
+
}, 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
15403
|
className: "kts-invoice-operate-goods-list-able-extend"
|
|
15369
|
-
}, props.menuExpansion,
|
|
15404
|
+
}, props.menuExpansion, React.createElement(DescribeSwitch, null), React.createElement(TaxIncludedSwitch, null))), React.createElement("div", {
|
|
15370
15405
|
className: classNames('kts-invoice-operate-goods-list-table', {
|
|
15371
15406
|
'kts-invoice-operate-prefab': isprefab
|
|
15372
15407
|
})
|
|
15373
|
-
},
|
|
15408
|
+
}, React.createElement(TableVirtual, {
|
|
15374
15409
|
bordered: true,
|
|
15375
15410
|
size: "small",
|
|
15376
15411
|
rowKey: "$index",
|
|
@@ -15393,7 +15428,7 @@ var Main = decorator(Form.create())(function (props) {
|
|
|
15393
15428
|
}
|
|
15394
15429
|
};
|
|
15395
15430
|
}
|
|
15396
|
-
})),
|
|
15431
|
+
})), React.createElement("div", null, React.createElement(Statistics, null)));
|
|
15397
15432
|
});
|
|
15398
15433
|
|
|
15399
15434
|
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 +15453,7 @@ var Buyer = /*#__PURE__*/function (_React$Component) {
|
|
|
15418
15453
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
15419
15454
|
|
|
15420
15455
|
_this.render = function () {
|
|
15421
|
-
return
|
|
15456
|
+
return React.createElement(Main$1, _objectSpread2({}, _this.props));
|
|
15422
15457
|
};
|
|
15423
15458
|
|
|
15424
15459
|
return _this;
|
|
@@ -15449,7 +15484,7 @@ var Main$1 = decorator(Form.create())(function (props) {
|
|
|
15449
15484
|
return [{
|
|
15450
15485
|
id: 'sellerName',
|
|
15451
15486
|
label: '销售方名称',
|
|
15452
|
-
node:
|
|
15487
|
+
node: React.createElement(Input, {
|
|
15453
15488
|
readOnly: model === 'prefab',
|
|
15454
15489
|
size: "small"
|
|
15455
15490
|
}),
|
|
@@ -15462,7 +15497,7 @@ var Main$1 = decorator(Form.create())(function (props) {
|
|
|
15462
15497
|
}, {
|
|
15463
15498
|
id: 'sellerNo',
|
|
15464
15499
|
label: '销售方纳税人识别号',
|
|
15465
|
-
node:
|
|
15500
|
+
node: React.createElement(Input, {
|
|
15466
15501
|
readOnly: model === 'prefab',
|
|
15467
15502
|
size: "small"
|
|
15468
15503
|
}),
|
|
@@ -15475,7 +15510,7 @@ var Main$1 = decorator(Form.create())(function (props) {
|
|
|
15475
15510
|
}, {
|
|
15476
15511
|
id: 'sellerAddress',
|
|
15477
15512
|
label: '销售方地址及电话',
|
|
15478
|
-
node:
|
|
15513
|
+
node: React.createElement(Input, {
|
|
15479
15514
|
readOnly: model === 'prefab',
|
|
15480
15515
|
size: "small"
|
|
15481
15516
|
}),
|
|
@@ -15488,7 +15523,7 @@ var Main$1 = decorator(Form.create())(function (props) {
|
|
|
15488
15523
|
}, {
|
|
15489
15524
|
id: 'sellerBank',
|
|
15490
15525
|
label: '销售方开户行及账号',
|
|
15491
|
-
node:
|
|
15526
|
+
node: React.createElement(Input, {
|
|
15492
15527
|
readOnly: model === 'prefab',
|
|
15493
15528
|
size: "small"
|
|
15494
15529
|
}),
|
|
@@ -15514,31 +15549,31 @@ var Main$1 = decorator(Form.create())(function (props) {
|
|
|
15514
15549
|
return getFieldDecorator(e.id, e.options)(e.node);
|
|
15515
15550
|
}
|
|
15516
15551
|
}, [props.formRender]);
|
|
15517
|
-
return
|
|
15552
|
+
return React.createElement(Form, null, React.createElement("div", {
|
|
15518
15553
|
className: "kts-invoice-operate-seller"
|
|
15519
|
-
},
|
|
15554
|
+
}, React.createElement("div", {
|
|
15520
15555
|
className: "kts-invoice-operate-seller-message"
|
|
15521
|
-
},
|
|
15556
|
+
}, React.createElement("div", {
|
|
15522
15557
|
className: "kts-invoice-operate-seller-title"
|
|
15523
|
-
},
|
|
15558
|
+
}, React.createElement("label", null, "\u9500\u552E\u65B9")), React.createElement(Descriptions, {
|
|
15524
15559
|
className: "kts-invoice-operate-seller-message-list",
|
|
15525
15560
|
size: "small",
|
|
15526
15561
|
column: 1,
|
|
15527
15562
|
bordered: true
|
|
15528
15563
|
}, formItem.map(function (e, i) {
|
|
15529
|
-
return
|
|
15564
|
+
return React.createElement(Descriptions.Item, {
|
|
15530
15565
|
key: i,
|
|
15531
15566
|
label: e.label
|
|
15532
|
-
},
|
|
15533
|
-
}))),
|
|
15567
|
+
}, React.createElement(Form.Item, null, createFormItem(e)));
|
|
15568
|
+
}))), React.createElement("div", {
|
|
15534
15569
|
className: "kts-invoice-operate-seller-remarks"
|
|
15535
|
-
},
|
|
15570
|
+
}, React.createElement("div", {
|
|
15536
15571
|
className: "kts-invoice-operate-seller-title"
|
|
15537
|
-
},
|
|
15572
|
+
}, React.createElement("label", null, "\u5907\u6CE8")), React.createElement("div", {
|
|
15538
15573
|
className: "kts-invoice-operate-seller-remarks-value"
|
|
15539
15574
|
}, getFieldDecorator('remarks', {
|
|
15540
15575
|
initialValue: props.defaultsellerRemarks
|
|
15541
|
-
})(
|
|
15576
|
+
})(React.createElement(TextArea, null))))));
|
|
15542
15577
|
});
|
|
15543
15578
|
|
|
15544
15579
|
var ImportBuyerButton = (function () {
|
|
@@ -15565,7 +15600,7 @@ var ImportBuyerButton = (function () {
|
|
|
15565
15600
|
};
|
|
15566
15601
|
}())();
|
|
15567
15602
|
}, [controller]);
|
|
15568
|
-
return
|
|
15603
|
+
return React.createElement(React.Fragment, null, controller.getBuyerList && React.createElement(Button, {
|
|
15569
15604
|
type: "link",
|
|
15570
15605
|
icon: "plus-circle",
|
|
15571
15606
|
onClick: onClick
|
|
@@ -15604,29 +15639,29 @@ var BuyerNameInput = (function (props) {
|
|
|
15604
15639
|
var content = React.useMemo(function () {
|
|
15605
15640
|
var _dataSource$recent;
|
|
15606
15641
|
|
|
15607
|
-
return
|
|
15642
|
+
return React.createElement("div", {
|
|
15608
15643
|
className: 'kts-invoice-operate-buyer-name-content'
|
|
15609
|
-
}, loading ?
|
|
15644
|
+
}, loading ? React.createElement("div", {
|
|
15610
15645
|
style: {
|
|
15611
15646
|
textAlign: 'center'
|
|
15612
15647
|
}
|
|
15613
|
-
},
|
|
15648
|
+
}, React.createElement(Spin, null)) : React.createElement(React.Fragment, null, React.createElement("div", {
|
|
15614
15649
|
className: 'kts-invoice-operate-buyer-name-content-block',
|
|
15615
15650
|
style: {
|
|
15616
15651
|
padding: '14px 10px'
|
|
15617
15652
|
}
|
|
15618
|
-
},
|
|
15653
|
+
}, React.createElement("label", {
|
|
15619
15654
|
style: {
|
|
15620
15655
|
marginBottom: 10
|
|
15621
15656
|
}
|
|
15622
|
-
}, "\u6700\u8FD1\u5F00\u5177"),
|
|
15657
|
+
}, "\u6700\u8FD1\u5F00\u5177"), React.createElement("ul", {
|
|
15623
15658
|
className: 'kts-invoice-operate-buyer-name-content-recently-issued'
|
|
15624
|
-
}, !dataSource.recent || dataSource.recent.length <= 0 ?
|
|
15659
|
+
}, !dataSource.recent || dataSource.recent.length <= 0 ? React.createElement(Empty, {
|
|
15625
15660
|
image: Empty.PRESENTED_IMAGE_SIMPLE
|
|
15626
15661
|
}) : (_dataSource$recent = dataSource.recent) === null || _dataSource$recent === void 0 ? void 0 : _dataSource$recent.map(function (e, i) {
|
|
15627
15662
|
var _dataSource$recent$le, _dataSource$recent2;
|
|
15628
15663
|
|
|
15629
|
-
return
|
|
15664
|
+
return React.createElement("li", {
|
|
15630
15665
|
key: i,
|
|
15631
15666
|
onClick: function onClick() {
|
|
15632
15667
|
onClickItem(e);
|
|
@@ -15634,37 +15669,37 @@ var BuyerNameInput = (function (props) {
|
|
|
15634
15669
|
style: {
|
|
15635
15670
|
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
15671
|
}
|
|
15637
|
-
},
|
|
15638
|
-
}))),
|
|
15672
|
+
}, React.createElement(MyTag, null, e.buyerName));
|
|
15673
|
+
}))), React.createElement(Divider, {
|
|
15639
15674
|
style: {
|
|
15640
15675
|
margin: "0 6px"
|
|
15641
15676
|
}
|
|
15642
|
-
}),
|
|
15677
|
+
}), React.createElement("div", {
|
|
15643
15678
|
className: 'kts-invoice-operate-buyer-name-content-block',
|
|
15644
15679
|
style: {
|
|
15645
15680
|
padding: '14px 10px 4px'
|
|
15646
15681
|
}
|
|
15647
|
-
},
|
|
15682
|
+
}, React.createElement("label", {
|
|
15648
15683
|
style: {
|
|
15649
15684
|
padding: '0 10px'
|
|
15650
15685
|
}
|
|
15651
|
-
}, "\u9009\u62E9\u516C\u53F8"),
|
|
15686
|
+
}, "\u9009\u62E9\u516C\u53F8"), React.createElement("div", {
|
|
15652
15687
|
style: {
|
|
15653
15688
|
maxHeight: 200,
|
|
15654
15689
|
overflow: "auto"
|
|
15655
15690
|
}
|
|
15656
|
-
}, !dataSource.list || dataSource.list.length <= 0 ?
|
|
15691
|
+
}, !dataSource.list || dataSource.list.length <= 0 ? React.createElement(Empty, {
|
|
15657
15692
|
image: Empty.PRESENTED_IMAGE_SIMPLE
|
|
15658
15693
|
}) : dataSource.list.map(function (e, i) {
|
|
15659
|
-
return
|
|
15694
|
+
return React.createElement("ul", {
|
|
15660
15695
|
key: i,
|
|
15661
15696
|
onClick: function onClick() {
|
|
15662
15697
|
onClickItem(e);
|
|
15663
15698
|
},
|
|
15664
15699
|
className: 'kts-invoice-operate-buyer-name-content-select-company'
|
|
15665
|
-
},
|
|
15700
|
+
}, React.createElement("li", {
|
|
15666
15701
|
title: e.buyerName
|
|
15667
|
-
}, e.buyerName),
|
|
15702
|
+
}, e.buyerName), React.createElement("li", {
|
|
15668
15703
|
title: e.buyerNo
|
|
15669
15704
|
}, e.buyerNo));
|
|
15670
15705
|
})))));
|
|
@@ -15705,7 +15740,7 @@ var BuyerNameInput = (function (props) {
|
|
|
15705
15740
|
}, [visible, props.value]);
|
|
15706
15741
|
|
|
15707
15742
|
if (model === 'prefab' || !autoContainer) {
|
|
15708
|
-
return
|
|
15743
|
+
return React.createElement(Input, {
|
|
15709
15744
|
size: "small",
|
|
15710
15745
|
autoComplete: "off",
|
|
15711
15746
|
value: props.value,
|
|
@@ -15716,14 +15751,14 @@ var BuyerNameInput = (function (props) {
|
|
|
15716
15751
|
});
|
|
15717
15752
|
}
|
|
15718
15753
|
|
|
15719
|
-
return
|
|
15754
|
+
return React.createElement(Popover$1, {
|
|
15720
15755
|
onVisibleChange: setVisible,
|
|
15721
15756
|
overlayClassName: 'kts-invoice-operate-buyer-name-popover',
|
|
15722
15757
|
placement: "bottomLeft",
|
|
15723
15758
|
trigger: "click",
|
|
15724
15759
|
visible: visible,
|
|
15725
15760
|
content: content
|
|
15726
|
-
},
|
|
15761
|
+
}, React.createElement(Input, {
|
|
15727
15762
|
size: "small",
|
|
15728
15763
|
autoComplete: "off",
|
|
15729
15764
|
value: props.value,
|
|
@@ -15801,7 +15836,7 @@ function useDataSource() {
|
|
|
15801
15836
|
}
|
|
15802
15837
|
|
|
15803
15838
|
function MyTag(props) {
|
|
15804
|
-
return
|
|
15839
|
+
return React.createElement("span", {
|
|
15805
15840
|
className: 'kts-invoice-operate-buyer-name-content-tag',
|
|
15806
15841
|
title: props.children
|
|
15807
15842
|
}, props.children);
|
|
@@ -15837,7 +15872,7 @@ var Buyer$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
15837
15872
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
15838
15873
|
|
|
15839
15874
|
_this.render = function () {
|
|
15840
|
-
return
|
|
15875
|
+
return React.createElement(Main$2, _objectSpread2({}, _this.props));
|
|
15841
15876
|
};
|
|
15842
15877
|
|
|
15843
15878
|
return _this;
|
|
@@ -15868,7 +15903,7 @@ var Main$2 = decorator(Form.create())(function (props) {
|
|
|
15868
15903
|
return [{
|
|
15869
15904
|
id: 'buyerName',
|
|
15870
15905
|
label: '购买方名称',
|
|
15871
|
-
node:
|
|
15906
|
+
node: React.createElement(Input, {
|
|
15872
15907
|
size: "small",
|
|
15873
15908
|
autoComplete: "off",
|
|
15874
15909
|
readOnly: model === 'prefab'
|
|
@@ -15882,7 +15917,7 @@ var Main$2 = decorator(Form.create())(function (props) {
|
|
|
15882
15917
|
}, {
|
|
15883
15918
|
id: 'buyerNo',
|
|
15884
15919
|
label: '购买方纳税人识别号',
|
|
15885
|
-
node:
|
|
15920
|
+
node: React.createElement(Input, {
|
|
15886
15921
|
size: "small",
|
|
15887
15922
|
autoComplete: "off",
|
|
15888
15923
|
readOnly: model === 'prefab'
|
|
@@ -15896,7 +15931,7 @@ var Main$2 = decorator(Form.create())(function (props) {
|
|
|
15896
15931
|
}, {
|
|
15897
15932
|
id: 'buyerAddress',
|
|
15898
15933
|
label: '购买方地址及电话',
|
|
15899
|
-
node:
|
|
15934
|
+
node: React.createElement(Input, {
|
|
15900
15935
|
size: "small",
|
|
15901
15936
|
autoComplete: "off",
|
|
15902
15937
|
readOnly: model === 'prefab'
|
|
@@ -15910,7 +15945,7 @@ var Main$2 = decorator(Form.create())(function (props) {
|
|
|
15910
15945
|
}, {
|
|
15911
15946
|
id: 'buyerBank',
|
|
15912
15947
|
label: '购买方开户行及账号',
|
|
15913
|
-
node:
|
|
15948
|
+
node: React.createElement(Input, {
|
|
15914
15949
|
size: "small",
|
|
15915
15950
|
autoComplete: "off",
|
|
15916
15951
|
readOnly: model === 'prefab'
|
|
@@ -15932,7 +15967,7 @@ var Main$2 = decorator(Form.create())(function (props) {
|
|
|
15932
15967
|
if (e.options.rules.some(function (e) {
|
|
15933
15968
|
return e.required;
|
|
15934
15969
|
})) {
|
|
15935
|
-
return
|
|
15970
|
+
return React.createElement(React.Fragment, null, React.createElement(Text$4, {
|
|
15936
15971
|
type: "danger"
|
|
15937
15972
|
}, "*"), e.label);
|
|
15938
15973
|
} else {
|
|
@@ -15942,29 +15977,29 @@ var Main$2 = decorator(Form.create())(function (props) {
|
|
|
15942
15977
|
return e.label;
|
|
15943
15978
|
}
|
|
15944
15979
|
}, []);
|
|
15945
|
-
return
|
|
15980
|
+
return React.createElement(Form, null, React.createElement("div", {
|
|
15946
15981
|
className: "kts-invoice-operate-buyer"
|
|
15947
|
-
},
|
|
15982
|
+
}, React.createElement("div", {
|
|
15948
15983
|
className: "kts-invoice-operate-buyer-message"
|
|
15949
|
-
},
|
|
15984
|
+
}, React.createElement("div", {
|
|
15950
15985
|
className: "kts-invoice-operate-buyer-title"
|
|
15951
|
-
},
|
|
15986
|
+
}, React.createElement("label", null, "\u8D2D\u4E70\u65B9")), React.createElement("div", {
|
|
15952
15987
|
className: "kts-invoice-operate-buyer-message-Import"
|
|
15953
|
-
}, model !== 'prefab' &&
|
|
15988
|
+
}, model !== 'prefab' && React.createElement(ImportBuyerButton, null)), React.createElement(Descriptions, {
|
|
15954
15989
|
className: "kts-invoice-operate-buyer-message-list",
|
|
15955
15990
|
size: "small",
|
|
15956
15991
|
column: 1,
|
|
15957
15992
|
bordered: true
|
|
15958
15993
|
}, formItem.map(function (item, i) {
|
|
15959
|
-
return
|
|
15994
|
+
return React.createElement(Descriptions.Item, {
|
|
15960
15995
|
key: i,
|
|
15961
15996
|
label: getlabel(item)
|
|
15962
|
-
},
|
|
15963
|
-
}))),
|
|
15997
|
+
}, React.createElement(Form.Item, null, getFieldDecorator(item.id, item.options)(autoContainer ? item.id === 'buyerName' ? React.createElement(BuyerNameInput, null) : item.node : item.node)));
|
|
15998
|
+
}))), React.createElement("div", {
|
|
15964
15999
|
className: "kts-invoice-operate-buyer-password"
|
|
15965
|
-
},
|
|
16000
|
+
}, React.createElement("div", {
|
|
15966
16001
|
className: "kts-invoice-operate-buyer-title"
|
|
15967
|
-
},
|
|
16002
|
+
}, React.createElement("label", null, "\u5BC6\u7801\u533A")), React.createElement("div", null))));
|
|
15968
16003
|
});
|
|
15969
16004
|
|
|
15970
16005
|
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 +16016,21 @@ var Sign = decorator(Form.create())(function (props) {
|
|
|
15981
16016
|
}, []); // 注册 form
|
|
15982
16017
|
|
|
15983
16018
|
controller.useForm('sign', form);
|
|
15984
|
-
return
|
|
16019
|
+
return React.createElement("div", {
|
|
15985
16020
|
className: "kts-invoice-operate-sign"
|
|
15986
|
-
},
|
|
16021
|
+
}, React.createElement(Form, _objectSpread2({}, formItemLayout), React.createElement("div", null, React.createElement(Form.Item, {
|
|
15987
16022
|
label: "\u6536\u6B3E\u4EBA"
|
|
15988
16023
|
}, getFieldDecorator('payee', {
|
|
15989
16024
|
initialValue: props.defaultPayee
|
|
15990
|
-
})(
|
|
16025
|
+
})(React.createElement(Input, {
|
|
15991
16026
|
size: "small"
|
|
15992
|
-
})))),
|
|
16027
|
+
})))), React.createElement("div", null, React.createElement(Form.Item, {
|
|
15993
16028
|
label: "\u590D\u6838\u4EBA"
|
|
15994
16029
|
}, getFieldDecorator('reviewer', {
|
|
15995
16030
|
initialValue: props.defaultReviewer
|
|
15996
|
-
})(
|
|
16031
|
+
})(React.createElement(Input, {
|
|
15997
16032
|
size: "small"
|
|
15998
|
-
})))),
|
|
16033
|
+
})))), React.createElement("div", null, React.createElement(Form.Item, {
|
|
15999
16034
|
label: "\u5F00\u7968\u4EBA"
|
|
16000
16035
|
}, getFieldDecorator('issuer', {
|
|
16001
16036
|
initialValue: props.defaultIssuer,
|
|
@@ -16003,7 +16038,7 @@ var Sign = decorator(Form.create())(function (props) {
|
|
|
16003
16038
|
required: true,
|
|
16004
16039
|
message: '请输入开票人'
|
|
16005
16040
|
}]
|
|
16006
|
-
})(
|
|
16041
|
+
})(React.createElement(Input, {
|
|
16007
16042
|
size: "small"
|
|
16008
16043
|
}))))));
|
|
16009
16044
|
});
|
|
@@ -16032,21 +16067,21 @@ var InvoiceHeaderDigtal = decorator(Form.create())(function (props) {
|
|
|
16032
16067
|
return '电子发票(增值税专用发票)';
|
|
16033
16068
|
}, [props.title]);
|
|
16034
16069
|
controller.useForm('invoiceHeader', form);
|
|
16035
|
-
return
|
|
16070
|
+
return React.createElement("div", {
|
|
16036
16071
|
className: "kts-invoice-operate-invoice-digtal-header"
|
|
16037
|
-
},
|
|
16072
|
+
}, React.createElement("div", {
|
|
16038
16073
|
className: "digtal-header-title"
|
|
16039
16074
|
}, title), form.getFieldDecorator('tag', {
|
|
16040
16075
|
initialValue: props.defaultTag
|
|
16041
|
-
})(
|
|
16076
|
+
})(React.createElement(Tag, null)), React.createElement("div", {
|
|
16042
16077
|
className: "digtal-header-fields"
|
|
16043
16078
|
}, form.getFieldDecorator('no', {
|
|
16044
16079
|
initialValue: props.defaultNo
|
|
16045
|
-
})(
|
|
16080
|
+
})(React.createElement(Field, {
|
|
16046
16081
|
title: "\u53D1\u7968\u53F7\u7801\uFF1A"
|
|
16047
16082
|
})), form.getFieldDecorator('invoicingDate', {
|
|
16048
16083
|
initialValue: props.defaultInvoicingDate
|
|
16049
|
-
})(
|
|
16084
|
+
})(React.createElement(Field, {
|
|
16050
16085
|
title: "\u5F00\u7968\u65E5\u671F\uFF1A"
|
|
16051
16086
|
}))));
|
|
16052
16087
|
});
|
|
@@ -16071,15 +16106,15 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
16071
16106
|
value = _this$props.value;
|
|
16072
16107
|
|
|
16073
16108
|
if (value) {
|
|
16074
|
-
return
|
|
16109
|
+
return React.createElement("div", {
|
|
16075
16110
|
className: "digtal-header-field"
|
|
16076
|
-
},
|
|
16111
|
+
}, React.createElement("div", {
|
|
16077
16112
|
className: "digtal-header-field-title"
|
|
16078
|
-
}, title),
|
|
16113
|
+
}, title), React.createElement("div", {
|
|
16079
16114
|
className: "digtal-header-field-value"
|
|
16080
16115
|
}, value));
|
|
16081
16116
|
} else {
|
|
16082
|
-
return
|
|
16117
|
+
return React.createElement(React.Fragment, null);
|
|
16083
16118
|
}
|
|
16084
16119
|
}
|
|
16085
16120
|
}]);
|
|
@@ -16101,9 +16136,9 @@ var Tag = /*#__PURE__*/function (_React$Component2) {
|
|
|
16101
16136
|
_createClass(Tag, [{
|
|
16102
16137
|
key: "render",
|
|
16103
16138
|
value: function render() {
|
|
16104
|
-
return this.props.value ?
|
|
16139
|
+
return this.props.value ? React.createElement("div", {
|
|
16105
16140
|
className: "digtal-header-tag"
|
|
16106
|
-
}, this.props.value) :
|
|
16141
|
+
}, this.props.value) : React.createElement(React.Fragment, null);
|
|
16107
16142
|
}
|
|
16108
16143
|
}]);
|
|
16109
16144
|
|
|
@@ -16279,57 +16314,57 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
16279
16314
|
return rulesMap[field] || defaultRules;
|
|
16280
16315
|
}, [rulesMap, isReadOnly, isReadOnly]);
|
|
16281
16316
|
controller.useForm('stakeholder', form);
|
|
16282
|
-
return
|
|
16317
|
+
return React.createElement("div", {
|
|
16283
16318
|
className: classNames("kts-invoice-operate-invoice-digtal-stakeholder", {
|
|
16284
16319
|
readOnly: readOnly
|
|
16285
16320
|
})
|
|
16286
|
-
},
|
|
16287
|
-
return
|
|
16288
|
-
}), !readOnly &&
|
|
16321
|
+
}, React.createElement("div", null, '购买方信息'.split('').map(function (e) {
|
|
16322
|
+
return React.createElement("span", null, e);
|
|
16323
|
+
}), !readOnly && React.createElement(Icon, {
|
|
16289
16324
|
className: "digtal-stakeholder-expand-button",
|
|
16290
16325
|
component: isExpand ? SvgArrowUp : SvgArrowDown,
|
|
16291
16326
|
onClick: onExpand
|
|
16292
|
-
})),
|
|
16327
|
+
})), React.createElement("div", null, React.createElement(Form, {
|
|
16293
16328
|
className: "digtal-stakeholder-form"
|
|
16294
|
-
},
|
|
16329
|
+
}, React.createElement(Row, {
|
|
16295
16330
|
gutter: [16, 0]
|
|
16296
|
-
}, props.isNaturalPerson === true &&
|
|
16331
|
+
}, props.isNaturalPerson === true && React.createElement(Col, {
|
|
16297
16332
|
span: 24
|
|
16298
|
-
},
|
|
16333
|
+
}, React.createElement(Form.Item, {
|
|
16299
16334
|
label: "\u8D2D\u4E70\u65B9\u4FE1\u606F",
|
|
16300
16335
|
colon: false
|
|
16301
|
-
}, getFieldDecorator('naturalPersonFlag', {})(
|
|
16336
|
+
}, getFieldDecorator('naturalPersonFlag', {})(React.createElement(NaturalPersonFlag, {
|
|
16302
16337
|
readOnly: isReadOnly('naturalPersonFlag')
|
|
16303
|
-
})))),
|
|
16338
|
+
})))), React.createElement(Col, {
|
|
16304
16339
|
span: 24
|
|
16305
|
-
},
|
|
16340
|
+
}, React.createElement(Form.Item, {
|
|
16306
16341
|
label: "\u540D\u79F0",
|
|
16307
16342
|
colon: false
|
|
16308
16343
|
}, getFieldDecorator('buyerName', {
|
|
16309
16344
|
rules: getRules('buyerName', RULES.companyName('购买方名称'))
|
|
16310
|
-
})(
|
|
16345
|
+
})(React.createElement(BuyerNameInput$1, {
|
|
16311
16346
|
myform: form,
|
|
16312
16347
|
fieldName: 'buyerName',
|
|
16313
16348
|
readOnly: isReadOnly('buyerName'),
|
|
16314
16349
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
16315
16350
|
autoComplete: "off",
|
|
16316
|
-
suffix: isShowImportButton === true &&
|
|
16351
|
+
suffix: isShowImportButton === true && React.createElement(Button$1, {
|
|
16317
16352
|
type: 'link',
|
|
16318
16353
|
style: {
|
|
16319
16354
|
padding: 0,
|
|
16320
16355
|
width: 20,
|
|
16321
16356
|
height: '100%'
|
|
16322
16357
|
},
|
|
16323
|
-
icon:
|
|
16358
|
+
icon: React.createElement(Icon, {
|
|
16324
16359
|
component: SvgPlus
|
|
16325
16360
|
}),
|
|
16326
16361
|
onClick: function onClick() {
|
|
16327
16362
|
onClickImportButton && onClickImportButton(controller);
|
|
16328
16363
|
}
|
|
16329
16364
|
})
|
|
16330
|
-
})))),
|
|
16365
|
+
})))), React.createElement(Col, {
|
|
16331
16366
|
span: 24
|
|
16332
|
-
},
|
|
16367
|
+
}, React.createElement(Form.Item, {
|
|
16333
16368
|
label: "\u7EDF\u4E00\u793E\u4F1A\u4FE1\u7528\u4EE3\u7801/\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7",
|
|
16334
16369
|
colon: false
|
|
16335
16370
|
}, getFieldDecorator('buyerTaxId', {
|
|
@@ -16337,15 +16372,15 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
16337
16372
|
required: !isVatNormal,
|
|
16338
16373
|
message: '购买方纳税人识别号必填'
|
|
16339
16374
|
}].concat(_toConsumableArray(RULES.taxId('购买方纳税人识别号'))))
|
|
16340
|
-
})(
|
|
16375
|
+
})(React.createElement(BuyerNameInput$1, {
|
|
16341
16376
|
myform: form,
|
|
16342
16377
|
fieldName: 'buyerTaxId',
|
|
16343
16378
|
readOnly: isReadOnly('buyerTaxId'),
|
|
16344
16379
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
16345
16380
|
autoComplete: "off"
|
|
16346
|
-
})))), isExpand &&
|
|
16381
|
+
})))), isExpand && React.createElement(React.Fragment, null, React.createElement(Col, {
|
|
16347
16382
|
span: 15
|
|
16348
|
-
},
|
|
16383
|
+
}, React.createElement(Form.Item, {
|
|
16349
16384
|
label: "\u8D2D\u4E70\u65B9\u5730\u5740",
|
|
16350
16385
|
colon: false
|
|
16351
16386
|
}, getFieldDecorator('buyerAddress', {
|
|
@@ -16353,77 +16388,77 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
16353
16388
|
max: 100,
|
|
16354
16389
|
message: '购买方地址内容超长'
|
|
16355
16390
|
}])
|
|
16356
|
-
})(
|
|
16391
|
+
})(React.createElement(MyInput$1, {
|
|
16357
16392
|
readOnly: isReadOnly('buyerAddress'),
|
|
16358
16393
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
16359
16394
|
autoComplete: "off"
|
|
16360
|
-
})))),
|
|
16395
|
+
})))), React.createElement(Col, {
|
|
16361
16396
|
span: 9
|
|
16362
|
-
},
|
|
16397
|
+
}, React.createElement(Form.Item, {
|
|
16363
16398
|
label: "\u7535\u8BDD",
|
|
16364
16399
|
colon: false
|
|
16365
16400
|
}, getFieldDecorator('buyerPhone', {
|
|
16366
16401
|
rules: getRules('buyerPhone', RULES.buyerTelPhone('购买方电话'))
|
|
16367
|
-
})(
|
|
16402
|
+
})(React.createElement(MyInput$1, {
|
|
16368
16403
|
readOnly: isReadOnly('buyerPhone'),
|
|
16369
16404
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
16370
16405
|
autoComplete: "off"
|
|
16371
|
-
})))),
|
|
16406
|
+
})))), React.createElement(Col, {
|
|
16372
16407
|
span: 12
|
|
16373
|
-
},
|
|
16408
|
+
}, React.createElement(Form.Item, {
|
|
16374
16409
|
label: "\u8D2D\u4E70\u65B9\u5F00\u6237\u94F6\u884C",
|
|
16375
16410
|
colon: false
|
|
16376
16411
|
}, getFieldDecorator('buyerBank', {
|
|
16377
16412
|
rules: getRules('buyerBank', RULES.bankName('购买方开户银行'))
|
|
16378
|
-
})(
|
|
16413
|
+
})(React.createElement(MyInput$1, {
|
|
16379
16414
|
readOnly: isReadOnly('buyerBank'),
|
|
16380
16415
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
16381
16416
|
autoComplete: "off"
|
|
16382
|
-
})))),
|
|
16417
|
+
})))), React.createElement(Col, {
|
|
16383
16418
|
span: 12
|
|
16384
|
-
},
|
|
16419
|
+
}, React.createElement(Form.Item, {
|
|
16385
16420
|
label: "\u94F6\u884C\u8D26\u53F7",
|
|
16386
16421
|
colon: false
|
|
16387
16422
|
}, getFieldDecorator('buyerAccount', {
|
|
16388
16423
|
rules: getRules('buyerAccount', RULES.bankAccount('购买方银行账号'))
|
|
16389
|
-
})(
|
|
16424
|
+
})(React.createElement(MyInput$1, {
|
|
16390
16425
|
readOnly: isReadOnly('buyerAccount'),
|
|
16391
16426
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
16392
16427
|
autoComplete: "off"
|
|
16393
|
-
})))))))),
|
|
16394
|
-
return
|
|
16395
|
-
}), !readOnly &&
|
|
16428
|
+
})))))))), React.createElement("div", null, '销售方信息'.split('').map(function (e) {
|
|
16429
|
+
return React.createElement("span", null, e);
|
|
16430
|
+
}), !readOnly && React.createElement(Icon, {
|
|
16396
16431
|
className: "digtal-stakeholder-expand-button",
|
|
16397
16432
|
component: isExpand ? SvgArrowUp : SvgArrowDown,
|
|
16398
16433
|
onClick: onExpand
|
|
16399
|
-
})),
|
|
16434
|
+
})), React.createElement("div", null, !readOnly && props.lineCredit && React.createElement("div", {
|
|
16400
16435
|
style: {
|
|
16401
16436
|
marginTop: 20
|
|
16402
16437
|
}
|
|
16403
|
-
},
|
|
16438
|
+
}, React.createElement(Tooltip$1, {
|
|
16404
16439
|
trigger: "click",
|
|
16405
16440
|
title: props.lineCredit
|
|
16406
|
-
},
|
|
16441
|
+
}, React.createElement(Button$1, {
|
|
16407
16442
|
type: "link"
|
|
16408
|
-
}, "\u67E5\u770B\u5F53\u524D\u53EF\u7528\u6388\u4FE1\u989D\u5EA6"))),
|
|
16443
|
+
}, "\u67E5\u770B\u5F53\u524D\u53EF\u7528\u6388\u4FE1\u989D\u5EA6"))), React.createElement(Form, {
|
|
16409
16444
|
className: "digtal-stakeholder-form"
|
|
16410
|
-
},
|
|
16445
|
+
}, React.createElement(Row, {
|
|
16411
16446
|
gutter: [16, 0]
|
|
16412
|
-
},
|
|
16447
|
+
}, React.createElement(Col, {
|
|
16413
16448
|
span: 24
|
|
16414
|
-
},
|
|
16449
|
+
}, React.createElement(Form.Item, {
|
|
16415
16450
|
label: "\u540D\u79F0",
|
|
16416
16451
|
colon: false
|
|
16417
16452
|
}, getFieldDecorator('supplierName', {
|
|
16418
16453
|
rules: getRules('supplierName', RULES.companyName('销售方名称')),
|
|
16419
16454
|
getValueFromEvent: formatCompanyName
|
|
16420
|
-
})(
|
|
16455
|
+
})(React.createElement(MyInput$1, {
|
|
16421
16456
|
readOnly: isReadOnly('supplierName'),
|
|
16422
16457
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
16423
16458
|
autoComplete: "off"
|
|
16424
|
-
})))),
|
|
16459
|
+
})))), React.createElement(Col, {
|
|
16425
16460
|
span: 24
|
|
16426
|
-
},
|
|
16461
|
+
}, React.createElement(Form.Item, {
|
|
16427
16462
|
label: "\u7EDF\u4E00\u793E\u4F1A\u4FE1\u7528\u4EE3\u7801/\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7",
|
|
16428
16463
|
colon: false
|
|
16429
16464
|
}, getFieldDecorator('supplierTaxId', {
|
|
@@ -16431,13 +16466,13 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
16431
16466
|
required: true,
|
|
16432
16467
|
message: '销售方纳税人识别号必填'
|
|
16433
16468
|
}].concat(_toConsumableArray(RULES.taxId('销售方纳税人识别号'))))
|
|
16434
|
-
})(
|
|
16469
|
+
})(React.createElement(MyInput$1, {
|
|
16435
16470
|
readOnly: isReadOnly('supplierTaxId'),
|
|
16436
16471
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
16437
16472
|
autoComplete: "off"
|
|
16438
|
-
})))), isExpand &&
|
|
16473
|
+
})))), isExpand && React.createElement(React.Fragment, null, React.createElement(Col, {
|
|
16439
16474
|
span: 15
|
|
16440
|
-
},
|
|
16475
|
+
}, React.createElement(Form.Item, {
|
|
16441
16476
|
label: "\u9500\u552E\u65B9\u5730\u5740",
|
|
16442
16477
|
colon: false
|
|
16443
16478
|
}, getFieldDecorator('sellerAddress', {
|
|
@@ -16445,40 +16480,40 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
16445
16480
|
max: 300,
|
|
16446
16481
|
message: '销售方地址内容超长'
|
|
16447
16482
|
}])
|
|
16448
|
-
})(
|
|
16483
|
+
})(React.createElement(MyInput$1, {
|
|
16449
16484
|
readOnly: isReadOnly('sellerAddress'),
|
|
16450
16485
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
16451
16486
|
autoComplete: "off"
|
|
16452
|
-
})))),
|
|
16487
|
+
})))), React.createElement(Col, {
|
|
16453
16488
|
span: 9
|
|
16454
|
-
},
|
|
16489
|
+
}, React.createElement(Form.Item, {
|
|
16455
16490
|
label: "\u7535\u8BDD",
|
|
16456
16491
|
colon: false
|
|
16457
16492
|
}, getFieldDecorator('sellerPhone', {
|
|
16458
16493
|
rules: getRules('sellerPhone', RULES.sellerTelPhone('销售方电话'))
|
|
16459
|
-
})(
|
|
16494
|
+
})(React.createElement(MyInput$1, {
|
|
16460
16495
|
readOnly: isReadOnly('sellerPhone'),
|
|
16461
16496
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
16462
16497
|
autoComplete: "off"
|
|
16463
|
-
})))),
|
|
16498
|
+
})))), React.createElement(Col, {
|
|
16464
16499
|
span: 12
|
|
16465
|
-
},
|
|
16500
|
+
}, React.createElement(Form.Item, {
|
|
16466
16501
|
label: "\u9500\u552E\u65B9\u5F00\u6237\u94F6\u884C",
|
|
16467
16502
|
colon: false
|
|
16468
16503
|
}, getFieldDecorator('sellerBank', {
|
|
16469
16504
|
rules: getRules('sellerBank', RULES.bankName('销售方开户银行'))
|
|
16470
|
-
})(
|
|
16505
|
+
})(React.createElement(MyInput$1, {
|
|
16471
16506
|
readOnly: isReadOnly('sellerBank'),
|
|
16472
16507
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
16473
16508
|
autoComplete: "off"
|
|
16474
|
-
})))),
|
|
16509
|
+
})))), React.createElement(Col, {
|
|
16475
16510
|
span: 12
|
|
16476
|
-
},
|
|
16511
|
+
}, React.createElement(Form.Item, {
|
|
16477
16512
|
label: "\u94F6\u884C\u8D26\u53F7",
|
|
16478
16513
|
colon: false
|
|
16479
16514
|
}, getFieldDecorator('sellerAccount', {
|
|
16480
16515
|
rules: getRules('sellerAccount', RULES.bankAccount('销售方银行账号'))
|
|
16481
|
-
})(
|
|
16516
|
+
})(React.createElement(MyInput$1, {
|
|
16482
16517
|
readOnly: isReadOnly('sellerAccount'),
|
|
16483
16518
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
16484
16519
|
autoComplete: "off"
|
|
@@ -16499,7 +16534,7 @@ function NaturalPersonFlag(props) {
|
|
|
16499
16534
|
React.useEffect(function () {
|
|
16500
16535
|
setValue(props.value || 'COMPANY');
|
|
16501
16536
|
}, [props.value]);
|
|
16502
|
-
return
|
|
16537
|
+
return React.createElement(Checkbox$1, {
|
|
16503
16538
|
disabled: props.readOnly,
|
|
16504
16539
|
checked: value === 'NATURAL',
|
|
16505
16540
|
onChange: onChange
|
|
@@ -16602,8 +16637,8 @@ function BuyerNameInput$1(props) {
|
|
|
16602
16637
|
return _ref.apply(this, arguments);
|
|
16603
16638
|
};
|
|
16604
16639
|
}(), [autoComplete.onBuyerNameSearch, fieldName]);
|
|
16605
|
-
if (props.readOnly) return
|
|
16606
|
-
return
|
|
16640
|
+
if (props.readOnly) return React.createElement("span", null, props.value);
|
|
16641
|
+
return React.createElement(AutoComplete$1, {
|
|
16607
16642
|
onSearch: onSearch,
|
|
16608
16643
|
options: options.map(function (e) {
|
|
16609
16644
|
return {
|
|
@@ -16612,7 +16647,7 @@ function BuyerNameInput$1(props) {
|
|
|
16612
16647
|
}),
|
|
16613
16648
|
onChange: onChangeAutoComplete,
|
|
16614
16649
|
value: props.value
|
|
16615
|
-
},
|
|
16650
|
+
}, React.createElement(Input$1, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
16616
16651
|
style: _objectSpread2({
|
|
16617
16652
|
width: '100%'
|
|
16618
16653
|
}, props.style)
|
|
@@ -16636,9 +16671,9 @@ var MyInput$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
16636
16671
|
var props = this.props;
|
|
16637
16672
|
|
|
16638
16673
|
if (props.readOnly) {
|
|
16639
|
-
return
|
|
16674
|
+
return React.createElement("span", null, props.value);
|
|
16640
16675
|
} else {
|
|
16641
|
-
return
|
|
16676
|
+
return React.createElement(Input$1, _objectSpread2({}, props));
|
|
16642
16677
|
}
|
|
16643
16678
|
}
|
|
16644
16679
|
}]);
|
|
@@ -16695,43 +16730,43 @@ var SignDigtal = decorator(Form.create())(function (props) {
|
|
|
16695
16730
|
controller.useForm('sign', form);
|
|
16696
16731
|
|
|
16697
16732
|
if (readOnly) {
|
|
16698
|
-
return
|
|
16733
|
+
return React.createElement("div", {
|
|
16699
16734
|
className: "kts-invoice-operate-sign-digtal-readOnly"
|
|
16700
|
-
},
|
|
16735
|
+
}, React.createElement("div", {
|
|
16701
16736
|
className: 'sign-digtal-readOnly-cont'
|
|
16702
|
-
},
|
|
16737
|
+
}, React.createElement("div", null, React.createElement("span", null, "\u5907"), React.createElement("span", null, "\u6CE8")), React.createElement("div", null, getFieldDecorator('remarks', {
|
|
16703
16738
|
initialValue: props.defaultRemark
|
|
16704
|
-
})(isEnables('remarks') ?
|
|
16739
|
+
})(isEnables('remarks') ? React.createElement(Input$1.TextArea, {
|
|
16705
16740
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
16706
16741
|
style: {
|
|
16707
16742
|
height: '100%'
|
|
16708
16743
|
}
|
|
16709
|
-
}) :
|
|
16744
|
+
}) : React.createElement(MyDiv$1, null)))), React.createElement(Form, {
|
|
16710
16745
|
layout: 'inline',
|
|
16711
16746
|
className: 'digtal-readOnly-form'
|
|
16712
|
-
},
|
|
16747
|
+
}, React.createElement(Form.Item, {
|
|
16713
16748
|
label: "\u5F00\u7968\u4EBA"
|
|
16714
16749
|
}, getFieldDecorator('drawer', {
|
|
16715
16750
|
initialValue: props.defaultRemark
|
|
16716
|
-
})(
|
|
16751
|
+
})(React.createElement(MyDiv$1, null)))));
|
|
16717
16752
|
} else {
|
|
16718
|
-
return
|
|
16753
|
+
return React.createElement("div", {
|
|
16719
16754
|
className: "kts-invoice-operate-sign-digtal"
|
|
16720
|
-
},
|
|
16755
|
+
}, React.createElement("div", {
|
|
16721
16756
|
className: 'sign-digtal-label'
|
|
16722
|
-
}, "\u5907\u6CE8\u4FE1\u606F"),
|
|
16757
|
+
}, "\u5907\u6CE8\u4FE1\u606F"), React.createElement(Form, null, React.createElement(Form.Item, {
|
|
16723
16758
|
label: "\u5907\u6CE8"
|
|
16724
16759
|
}, getFieldDecorator('remarks', {
|
|
16725
16760
|
initialValue: props.defaultRemark
|
|
16726
|
-
})(
|
|
16761
|
+
})(React.createElement(Input$1.TextArea, {
|
|
16727
16762
|
readOnly: isReadOnly('remarks'),
|
|
16728
16763
|
autoSize: true,
|
|
16729
16764
|
placeholder: "\u8BF7\u8F93\u5165"
|
|
16730
|
-
}))),
|
|
16765
|
+
}))), React.createElement(Form.Item, {
|
|
16731
16766
|
label: "\u5F00\u7968\u4EBA"
|
|
16732
16767
|
}, getFieldDecorator('drawer', {
|
|
16733
16768
|
initialValue: props.defaultIssuer
|
|
16734
|
-
})(
|
|
16769
|
+
})(React.createElement(Input$1, {
|
|
16735
16770
|
readOnly: isReadOnly('drawer'),
|
|
16736
16771
|
style: {
|
|
16737
16772
|
width: 313
|
|
@@ -16755,7 +16790,7 @@ var MyDiv$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
16755
16790
|
_createClass(MyDiv, [{
|
|
16756
16791
|
key: "render",
|
|
16757
16792
|
value: function render() {
|
|
16758
|
-
return
|
|
16793
|
+
return React.createElement("div", null, this.props.value);
|
|
16759
16794
|
}
|
|
16760
16795
|
}]);
|
|
16761
16796
|
|
|
@@ -16856,12 +16891,12 @@ function TableVirtual$1 (props) {
|
|
|
16856
16891
|
if (!cont) return;
|
|
16857
16892
|
cont.scrollTop = 0;
|
|
16858
16893
|
}, [(_props$dataSource2 = props.dataSource) === null || _props$dataSource2 === void 0 ? void 0 : _props$dataSource2.length]);
|
|
16859
|
-
return
|
|
16894
|
+
return React.createElement("span", {
|
|
16860
16895
|
className: "kts-invoice-operate-goods-table-virtual",
|
|
16861
16896
|
ref: function ref(e) {
|
|
16862
16897
|
setSelf(e);
|
|
16863
16898
|
}
|
|
16864
|
-
},
|
|
16899
|
+
}, React.createElement(TableManual, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
16865
16900
|
dataSource: dataSource,
|
|
16866
16901
|
// 新版本Table会有输入框无法连续输入的问题,先兼容老版本
|
|
16867
16902
|
tableComponent: Table
|
|
@@ -16974,51 +17009,51 @@ var Statistics$1 = (function () {
|
|
|
16974
17009
|
});
|
|
16975
17010
|
return sum.done().toNumber();
|
|
16976
17011
|
}, []);
|
|
16977
|
-
return
|
|
17012
|
+
return React.createElement("div", {
|
|
16978
17013
|
className: 'kts-invoice-operate-goods-list-statistics-digtal'
|
|
16979
|
-
},
|
|
17014
|
+
}, React.createElement("div", {
|
|
16980
17015
|
className: 'statistics-digtal-total'
|
|
16981
|
-
},
|
|
17016
|
+
}, React.createElement("div", null, "\u5408\u8BA1"), React.createElement("div", {
|
|
16982
17017
|
style: {
|
|
16983
17018
|
flex: 1
|
|
16984
17019
|
}
|
|
16985
|
-
}),
|
|
17020
|
+
}), React.createElement("div", {
|
|
16986
17021
|
style: {
|
|
16987
17022
|
width: 119,
|
|
16988
17023
|
textAlign: 'right',
|
|
16989
17024
|
paddingRight: 15
|
|
16990
17025
|
}
|
|
16991
|
-
}, "\xA5", parseFloat(isTaxIncluded ? lineAmountIncludeTax : lineAmountExcludeTax).toFixed(2)),
|
|
17026
|
+
}, "\xA5", parseFloat(isTaxIncluded ? lineAmountIncludeTax : lineAmountExcludeTax).toFixed(2)), React.createElement("div", {
|
|
16992
17027
|
style: {
|
|
16993
17028
|
width: 119,
|
|
16994
17029
|
textAlign: 'right',
|
|
16995
17030
|
paddingRight: 15
|
|
16996
17031
|
}
|
|
16997
|
-
}, "\xA5", parseFloat(taxAmount).toFixed(2))),
|
|
17032
|
+
}, "\xA5", parseFloat(taxAmount).toFixed(2))), React.createElement("div", {
|
|
16998
17033
|
className: 'statistics-digtal-total-tax'
|
|
16999
|
-
},
|
|
17034
|
+
}, React.createElement("div", null, "\u4EF7\u7A0E\u5408\u8BA1\uFF08\u5927\u5199\uFF09"), React.createElement("div", {
|
|
17000
17035
|
style: {
|
|
17001
17036
|
paddingLeft: 30
|
|
17002
17037
|
}
|
|
17003
|
-
},
|
|
17038
|
+
}, React.createElement(Icon, {
|
|
17004
17039
|
component: SvgFork
|
|
17005
|
-
}),
|
|
17040
|
+
}), React.createElement("span", {
|
|
17006
17041
|
style: {
|
|
17007
17042
|
fontWeight: 'bold',
|
|
17008
17043
|
marginLeft: 4
|
|
17009
17044
|
}
|
|
17010
17045
|
}, nzhcn$1.toMoney(lineAmountIncludeTax, {
|
|
17011
17046
|
outSymbol: false
|
|
17012
|
-
}))),
|
|
17047
|
+
}))), React.createElement("div", {
|
|
17013
17048
|
style: {
|
|
17014
17049
|
flex: 1
|
|
17015
17050
|
}
|
|
17016
|
-
}),
|
|
17051
|
+
}), React.createElement("div", {
|
|
17017
17052
|
style: {
|
|
17018
17053
|
width: 90,
|
|
17019
17054
|
color: '#9F613E'
|
|
17020
17055
|
}
|
|
17021
|
-
}, "\uFF08\u5C0F\u5199\uFF09"),
|
|
17056
|
+
}, "\uFF08\u5C0F\u5199\uFF09"), React.createElement("div", {
|
|
17022
17057
|
style: {
|
|
17023
17058
|
width: 119
|
|
17024
17059
|
}
|
|
@@ -17077,10 +17112,10 @@ var AddRowButton$1 = (function () {
|
|
|
17077
17112
|
}
|
|
17078
17113
|
}, _callee);
|
|
17079
17114
|
})), [controller, rootElement]);
|
|
17080
|
-
if (isAddRow === false) return
|
|
17081
|
-
if (model === 'prefab') return
|
|
17082
|
-
if (model === 'readOnly') return
|
|
17083
|
-
return
|
|
17115
|
+
if (isAddRow === false) return React.createElement(React.Fragment, null);
|
|
17116
|
+
if (model === 'prefab') return React.createElement(React.Fragment, null);
|
|
17117
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
17118
|
+
return React.createElement(Button$1, {
|
|
17084
17119
|
size: 'small',
|
|
17085
17120
|
type: 'primary',
|
|
17086
17121
|
onClick: onClick,
|
|
@@ -17233,11 +17268,11 @@ var TaxIncludedSwitch$1 = (function () {
|
|
|
17233
17268
|
};
|
|
17234
17269
|
}())();
|
|
17235
17270
|
}, []);
|
|
17236
|
-
return
|
|
17271
|
+
return React.createElement("span", null, React.createElement("label", {
|
|
17237
17272
|
style: {
|
|
17238
17273
|
marginRight: 2
|
|
17239
17274
|
}
|
|
17240
|
-
}, "\u542B\u7A0E"),
|
|
17275
|
+
}, "\u542B\u7A0E"), React.createElement(Switch, {
|
|
17241
17276
|
disabled: isSwitchTax === false,
|
|
17242
17277
|
checked: isTaxIncluded,
|
|
17243
17278
|
defaultChecked: true,
|
|
@@ -17333,12 +17368,12 @@ function Search$1() {
|
|
|
17333
17368
|
};
|
|
17334
17369
|
}());
|
|
17335
17370
|
}, [value, controller]);
|
|
17336
|
-
return
|
|
17371
|
+
return React.createElement(Input$1, {
|
|
17337
17372
|
readOnly: readOnly,
|
|
17338
17373
|
value: value,
|
|
17339
17374
|
className: "kts-invoice-operate-goods-list-search",
|
|
17340
17375
|
placeholder: "\u8BF7\u60A8\u8F93\u5165\u9879\u76EE\u540D\u79F0\u3001\u89C4\u683C\u578B\u53F7\u3001\u91D1\u989D(".concat(isTaxIncluded ? '含税' : '不含税', ")\u641C\u7D22"),
|
|
17341
|
-
prefix:
|
|
17376
|
+
prefix: React.createElement(Icon$1, {
|
|
17342
17377
|
component: SvgMagnifier$1,
|
|
17343
17378
|
style: {
|
|
17344
17379
|
color: "#b8b8b8"
|
|
@@ -17383,12 +17418,12 @@ function TableRow$1(props) {
|
|
|
17383
17418
|
return undefined;
|
|
17384
17419
|
}
|
|
17385
17420
|
}, [rowKey, goodsMap]);
|
|
17386
|
-
return rowKey === current && current ?
|
|
17421
|
+
return rowKey === current && current ? React.createElement("tr", {
|
|
17387
17422
|
style: {
|
|
17388
17423
|
height: 50,
|
|
17389
17424
|
position: 'relative'
|
|
17390
17425
|
}
|
|
17391
|
-
},
|
|
17426
|
+
}, React.createElement("div", {
|
|
17392
17427
|
style: {
|
|
17393
17428
|
height: 0.5,
|
|
17394
17429
|
width: '100%',
|
|
@@ -17396,9 +17431,7 @@ function TableRow$1(props) {
|
|
|
17396
17431
|
position: 'absolute',
|
|
17397
17432
|
bottom: 0
|
|
17398
17433
|
}
|
|
17399
|
-
})) :
|
|
17400
|
-
/*#__PURE__*/
|
|
17401
|
-
// <tr {...props} className={classnames(props.className, discount, (rowKey === container && current) ? 'kts-invoice-operate-goods-list-itemName-drag-container' : '')} />
|
|
17434
|
+
})) : // <tr {...props} className={classnames(props.className, discount, (rowKey === container && current) ? 'kts-invoice-operate-goods-list-itemName-drag-container' : '')} />
|
|
17402
17435
|
React.createElement("tr", _objectSpread2(_objectSpread2({}, props), {}, {
|
|
17403
17436
|
className: classNames(props.className, discount, rowKey === container && current ? 'kts-invoice-operate-goods-list-itemName-drag-container-' + site : undefined)
|
|
17404
17437
|
}));
|
|
@@ -17438,9 +17471,9 @@ var TitleText$1 = (function (props) {
|
|
|
17438
17471
|
return !!e.required;
|
|
17439
17472
|
})) || props.required;
|
|
17440
17473
|
}, [rules, props.required]);
|
|
17441
|
-
return
|
|
17474
|
+
return React.createElement(React.Fragment, null, required ? React.createElement(Text$5, {
|
|
17442
17475
|
type: "danger"
|
|
17443
|
-
}, "*") :
|
|
17476
|
+
}, "*") : React.createElement(React.Fragment, null), children);
|
|
17444
17477
|
});
|
|
17445
17478
|
|
|
17446
17479
|
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 +17545,14 @@ function ItemNameInput$1(props) {
|
|
|
17512
17545
|
return _ref.apply(this, arguments);
|
|
17513
17546
|
};
|
|
17514
17547
|
}(), [autoComplete.onItemNameSearch]);
|
|
17515
|
-
return
|
|
17548
|
+
return React.createElement("div", {
|
|
17516
17549
|
className: 'kts-invoice-operate-goods-list-itemName-input'
|
|
17517
|
-
}, props.shorthand &&
|
|
17550
|
+
}, props.shorthand && React.createElement("span", {
|
|
17518
17551
|
style: {
|
|
17519
17552
|
alignSelf: 'center',
|
|
17520
17553
|
fontSize: 12
|
|
17521
17554
|
}
|
|
17522
|
-
}, "*", props.shorthand, "*"),
|
|
17555
|
+
}, "*", props.shorthand, "*"), React.createElement(AutoComplete$1, {
|
|
17523
17556
|
onSearch: onSearch,
|
|
17524
17557
|
value: props.value,
|
|
17525
17558
|
options: options.map(function (e) {
|
|
@@ -17528,7 +17561,7 @@ function ItemNameInput$1(props) {
|
|
|
17528
17561
|
};
|
|
17529
17562
|
}),
|
|
17530
17563
|
onSelect: onChangeAutoComplete
|
|
17531
|
-
},
|
|
17564
|
+
}, React.createElement(Input$1, {
|
|
17532
17565
|
style: {
|
|
17533
17566
|
height: '100%'
|
|
17534
17567
|
},
|
|
@@ -18634,7 +18667,7 @@ function Drag$2(props) {
|
|
|
18634
18667
|
var currentGood = controller.state.goodsListState.goodsList.filter(function (e) {
|
|
18635
18668
|
return e.$index === record.$index;
|
|
18636
18669
|
})[0];
|
|
18637
|
-
mounting(
|
|
18670
|
+
mounting(React.createElement(DragDiv$1, _objectSpread2({}, currentGood)));
|
|
18638
18671
|
rowList.forEach(function (e) {
|
|
18639
18672
|
e.addEventListener('mousemove', onMousemove);
|
|
18640
18673
|
});
|
|
@@ -18795,7 +18828,7 @@ function Drag$2(props) {
|
|
|
18795
18828
|
|
|
18796
18829
|
|
|
18797
18830
|
function insert() {
|
|
18798
|
-
mounting(
|
|
18831
|
+
mounting(React.createElement(React.Fragment, null));
|
|
18799
18832
|
controller.run( /*#__PURE__*/function () {
|
|
18800
18833
|
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(s) {
|
|
18801
18834
|
var _s$goodsListState$dra, container, current, site, goodsList, goodsMap, _currentGood, currentIndex, moveGoods;
|
|
@@ -18874,7 +18907,7 @@ function Drag$2(props) {
|
|
|
18874
18907
|
}
|
|
18875
18908
|
}, [controller, record, disabled]);
|
|
18876
18909
|
var renderButton = React.useMemo(function () {
|
|
18877
|
-
return
|
|
18910
|
+
return React.createElement(Button, {
|
|
18878
18911
|
type: 'link',
|
|
18879
18912
|
style: {
|
|
18880
18913
|
padding: 0
|
|
@@ -18885,13 +18918,13 @@ function Drag$2(props) {
|
|
|
18885
18918
|
},
|
|
18886
18919
|
className: "kts-invoice-operate-goods-list-itemName-drag",
|
|
18887
18920
|
onMouseOver: controller.saveEditGood
|
|
18888
|
-
},
|
|
18921
|
+
}, React.createElement(Icon, {
|
|
18889
18922
|
component: SvgI001$1
|
|
18890
18923
|
}));
|
|
18891
18924
|
}, [onMouseDown, controller]);
|
|
18892
18925
|
|
|
18893
18926
|
if (disabled) {
|
|
18894
|
-
return
|
|
18927
|
+
return React.createElement(Popover, {
|
|
18895
18928
|
content: '您还有未编辑完成的商品',
|
|
18896
18929
|
trigger: 'focus'
|
|
18897
18930
|
}, renderButton);
|
|
@@ -18931,13 +18964,13 @@ function DragDiv$1(props) {
|
|
|
18931
18964
|
window.removeEventListener('mousemove', onMousemove);
|
|
18932
18965
|
};
|
|
18933
18966
|
});
|
|
18934
|
-
return
|
|
18967
|
+
return React.createElement("div", {
|
|
18935
18968
|
className: "kts-invoice-operate-goods-list-itemName-drag-div",
|
|
18936
18969
|
style: {
|
|
18937
18970
|
top: y,
|
|
18938
18971
|
left: x
|
|
18939
18972
|
}
|
|
18940
|
-
},
|
|
18973
|
+
}, React.createElement("span", null, props.itemName), React.createElement("span", null, props.itemModelName), React.createElement("span", null, props.unit));
|
|
18941
18974
|
}
|
|
18942
18975
|
|
|
18943
18976
|
var useColumns$1 = (function (form) {
|
|
@@ -19053,7 +19086,7 @@ var useColumns$1 = (function (form) {
|
|
|
19053
19086
|
width: 40,
|
|
19054
19087
|
align: 'center',
|
|
19055
19088
|
render: function render(_, record) {
|
|
19056
|
-
return
|
|
19089
|
+
return React.createElement(Drag$2, {
|
|
19057
19090
|
record: record
|
|
19058
19091
|
});
|
|
19059
19092
|
}
|
|
@@ -19063,20 +19096,20 @@ var useColumns$1 = (function (form) {
|
|
|
19063
19096
|
dataIndex: 'serialNo',
|
|
19064
19097
|
width: 50,
|
|
19065
19098
|
render: function render(e) {
|
|
19066
|
-
return
|
|
19099
|
+
return React.createElement("span", {
|
|
19067
19100
|
style: {
|
|
19068
19101
|
padding: '0 10px'
|
|
19069
19102
|
}
|
|
19070
19103
|
}, e);
|
|
19071
19104
|
}
|
|
19072
19105
|
}, {
|
|
19073
|
-
title:
|
|
19106
|
+
title: React.createElement(TitleText$1, {
|
|
19074
19107
|
required: true
|
|
19075
19108
|
}, "\u9879\u76EE\u540D\u79F0"),
|
|
19076
19109
|
key: 'itemName',
|
|
19077
19110
|
render: function render(_, record) {
|
|
19078
19111
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
19079
|
-
return
|
|
19112
|
+
return React.createElement(Form.Item, null, React.createElement("div", {
|
|
19080
19113
|
style: {
|
|
19081
19114
|
display: 'flex'
|
|
19082
19115
|
}
|
|
@@ -19123,11 +19156,11 @@ var useColumns$1 = (function (form) {
|
|
|
19123
19156
|
return validator;
|
|
19124
19157
|
}()
|
|
19125
19158
|
}])
|
|
19126
|
-
})(
|
|
19159
|
+
})(React.createElement(ItemNameInput$1, {
|
|
19127
19160
|
shorthand: editGood.shorthand,
|
|
19128
|
-
suffix:
|
|
19161
|
+
suffix: React.createElement(Tooltip$1, {
|
|
19129
19162
|
title: "\u70B9\u51FB\u4ECE\u5546\u54C1\u7BA1\u7406\u4E2D\u6DFB\u52A0\u5546\u54C1\u4FE1\u606F"
|
|
19130
|
-
},
|
|
19163
|
+
}, React.createElement(Button$1, {
|
|
19131
19164
|
type: "link",
|
|
19132
19165
|
style: {
|
|
19133
19166
|
padding: 0,
|
|
@@ -19135,7 +19168,7 @@ var useColumns$1 = (function (form) {
|
|
|
19135
19168
|
fontSize: 20,
|
|
19136
19169
|
fill: '#0074ff'
|
|
19137
19170
|
},
|
|
19138
|
-
icon:
|
|
19171
|
+
icon: React.createElement(SvgPlus$1, null),
|
|
19139
19172
|
onClick: controller.pipeline( /*#__PURE__*/function () {
|
|
19140
19173
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(s) {
|
|
19141
19174
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
@@ -19162,9 +19195,9 @@ var useColumns$1 = (function (form) {
|
|
|
19162
19195
|
}
|
|
19163
19196
|
}))));
|
|
19164
19197
|
} else {
|
|
19165
|
-
return
|
|
19198
|
+
return React.createElement("span", null, record.lineAttribute === LineAttributeType$1.折扣行 ? React.createElement("span", {
|
|
19166
19199
|
className: 'goods-list-digtal-discount-tag'
|
|
19167
|
-
}, "\u6298\u6263") :
|
|
19200
|
+
}, "\u6298\u6263") : React.createElement(React.Fragment, null), React.createElement(MyItemNameDiv$1, {
|
|
19168
19201
|
valueT: formatSearch$1(getItemNameWithShorthand({
|
|
19169
19202
|
shorthand: record.shorthand,
|
|
19170
19203
|
full: record.itemNameSelf || ''
|
|
@@ -19178,17 +19211,17 @@ var useColumns$1 = (function (form) {
|
|
|
19178
19211
|
}
|
|
19179
19212
|
}
|
|
19180
19213
|
}, {
|
|
19181
|
-
title:
|
|
19214
|
+
title: React.createElement(TitleText$1, {
|
|
19182
19215
|
rules: (_columnsReplenish$ite = columnsReplenish['itemModelName']) === null || _columnsReplenish$ite === void 0 ? void 0 : _columnsReplenish$ite.rules
|
|
19183
19216
|
}, "\u89C4\u683C\u578B\u53F7"),
|
|
19184
19217
|
key: 'itemModelName',
|
|
19185
19218
|
width: 119,
|
|
19186
19219
|
render: function render(_, record) {
|
|
19187
19220
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
19188
|
-
return
|
|
19221
|
+
return React.createElement(Form.Item, null, getFieldDecorator('itemModelName', {
|
|
19189
19222
|
initialValue: isMyShow ? editGood.itemModelNameSelf : editGood.itemModelName,
|
|
19190
19223
|
rules: getReplenishRules('itemModelName')
|
|
19191
|
-
})(
|
|
19224
|
+
})(React.createElement(MyInput$2, {
|
|
19192
19225
|
onChange: function () {
|
|
19193
19226
|
var _onChange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
19194
19227
|
var key, value;
|
|
@@ -19221,7 +19254,7 @@ var useColumns$1 = (function (form) {
|
|
|
19221
19254
|
}()
|
|
19222
19255
|
})));
|
|
19223
19256
|
} else {
|
|
19224
|
-
return
|
|
19257
|
+
return React.createElement(MyItemNameDiv$1, {
|
|
19225
19258
|
valueT: formatSearch$1(record.itemModelNameSelf, searchValue),
|
|
19226
19259
|
valueF: formatSearch$1(record.itemModelName, searchValue),
|
|
19227
19260
|
isMyShow: isMyShow
|
|
@@ -19229,17 +19262,17 @@ var useColumns$1 = (function (form) {
|
|
|
19229
19262
|
}
|
|
19230
19263
|
}
|
|
19231
19264
|
}, {
|
|
19232
|
-
title:
|
|
19265
|
+
title: React.createElement(TitleText$1, {
|
|
19233
19266
|
rules: (_columnsReplenish$uni = columnsReplenish['unit']) === null || _columnsReplenish$uni === void 0 ? void 0 : _columnsReplenish$uni.rules
|
|
19234
19267
|
}, "\u5355\u4F4D"),
|
|
19235
19268
|
key: 'unit',
|
|
19236
19269
|
width: 70,
|
|
19237
19270
|
render: function render(_, record) {
|
|
19238
19271
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
19239
|
-
return
|
|
19272
|
+
return React.createElement(Form.Item, null, getFieldDecorator('unit', {
|
|
19240
19273
|
initialValue: editGood.unit,
|
|
19241
19274
|
rules: getReplenishRules('unit')
|
|
19242
|
-
})(
|
|
19275
|
+
})(React.createElement(AutoComplete$1, {
|
|
19243
19276
|
style: {
|
|
19244
19277
|
width: '100%'
|
|
19245
19278
|
},
|
|
@@ -19277,7 +19310,7 @@ var useColumns$1 = (function (form) {
|
|
|
19277
19310
|
}()
|
|
19278
19311
|
})));
|
|
19279
19312
|
} else {
|
|
19280
|
-
return
|
|
19313
|
+
return React.createElement("span", {
|
|
19281
19314
|
style: {
|
|
19282
19315
|
padding: '0 10px'
|
|
19283
19316
|
}
|
|
@@ -19285,7 +19318,7 @@ var useColumns$1 = (function (form) {
|
|
|
19285
19318
|
}
|
|
19286
19319
|
}
|
|
19287
19320
|
}, {
|
|
19288
|
-
title:
|
|
19321
|
+
title: React.createElement(TitleText$1, {
|
|
19289
19322
|
rules: (_columnsReplenish$qua = columnsReplenish['quantity']) === null || _columnsReplenish$qua === void 0 ? void 0 : _columnsReplenish$qua.rules
|
|
19290
19323
|
}, "\u6570\u91CF"),
|
|
19291
19324
|
dataIndex: 'quantity',
|
|
@@ -19294,7 +19327,7 @@ var useColumns$1 = (function (form) {
|
|
|
19294
19327
|
width: 149,
|
|
19295
19328
|
render: function render(value, record) {
|
|
19296
19329
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
19297
|
-
return
|
|
19330
|
+
return React.createElement(Form.Item, null, getFieldDecorator('quantity', {
|
|
19298
19331
|
initialValue: editGood.quantity,
|
|
19299
19332
|
getValueFromEvent: onNumberValueChange,
|
|
19300
19333
|
rules: [].concat(_toConsumableArray(getReplenishRules('quantity')), [{
|
|
@@ -19340,7 +19373,7 @@ var useColumns$1 = (function (form) {
|
|
|
19340
19373
|
return validator;
|
|
19341
19374
|
}()
|
|
19342
19375
|
}])
|
|
19343
|
-
})(
|
|
19376
|
+
})(React.createElement(MyInput$2, {
|
|
19344
19377
|
style: {
|
|
19345
19378
|
textAlign: 'right'
|
|
19346
19379
|
},
|
|
@@ -19372,7 +19405,7 @@ var useColumns$1 = (function (form) {
|
|
|
19372
19405
|
}()
|
|
19373
19406
|
})));
|
|
19374
19407
|
} else {
|
|
19375
|
-
return
|
|
19408
|
+
return React.createElement("span", {
|
|
19376
19409
|
style: {
|
|
19377
19410
|
padding: '0 10px'
|
|
19378
19411
|
}
|
|
@@ -19380,7 +19413,7 @@ var useColumns$1 = (function (form) {
|
|
|
19380
19413
|
}
|
|
19381
19414
|
}
|
|
19382
19415
|
}, {
|
|
19383
|
-
title:
|
|
19416
|
+
title: React.createElement(TitleText$1, {
|
|
19384
19417
|
rules: (_columnsReplenish$pri = columnsReplenish['priceIncludeTax']) === null || _columnsReplenish$pri === void 0 ? void 0 : _columnsReplenish$pri.rules
|
|
19385
19418
|
}, "\u5355\u4EF7(\u542B\u7A0E)"),
|
|
19386
19419
|
dataIndex: 'priceIncludeTax',
|
|
@@ -19389,7 +19422,7 @@ var useColumns$1 = (function (form) {
|
|
|
19389
19422
|
width: 149,
|
|
19390
19423
|
render: function render(value, record) {
|
|
19391
19424
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
19392
|
-
return
|
|
19425
|
+
return React.createElement(Form.Item, null, getFieldDecorator('priceIncludeTax', {
|
|
19393
19426
|
initialValue: editGood.priceIncludeTax,
|
|
19394
19427
|
getValueFromEvent: onNumberValueChange,
|
|
19395
19428
|
rules: [].concat(_toConsumableArray(getReplenishRules('priceIncludeTax')), [{
|
|
@@ -19435,7 +19468,7 @@ var useColumns$1 = (function (form) {
|
|
|
19435
19468
|
return validator;
|
|
19436
19469
|
}()
|
|
19437
19470
|
}])
|
|
19438
|
-
})(
|
|
19471
|
+
})(React.createElement(MyInput$2, {
|
|
19439
19472
|
style: {
|
|
19440
19473
|
textAlign: 'right'
|
|
19441
19474
|
},
|
|
@@ -19447,7 +19480,7 @@ var useColumns$1 = (function (form) {
|
|
|
19447
19480
|
}
|
|
19448
19481
|
})));
|
|
19449
19482
|
} else {
|
|
19450
|
-
return
|
|
19483
|
+
return React.createElement("span", {
|
|
19451
19484
|
style: {
|
|
19452
19485
|
padding: '0 10px'
|
|
19453
19486
|
}
|
|
@@ -19455,7 +19488,7 @@ var useColumns$1 = (function (form) {
|
|
|
19455
19488
|
}
|
|
19456
19489
|
}
|
|
19457
19490
|
}, {
|
|
19458
|
-
title:
|
|
19491
|
+
title: React.createElement(TitleText$1, {
|
|
19459
19492
|
rules: (_columnsReplenish$pri2 = columnsReplenish['priceExcludeTax']) === null || _columnsReplenish$pri2 === void 0 ? void 0 : _columnsReplenish$pri2.rules
|
|
19460
19493
|
}, "\u5355\u4EF7(\u4E0D\u542B\u7A0E)"),
|
|
19461
19494
|
dataIndex: 'priceExcludeTax',
|
|
@@ -19464,7 +19497,7 @@ var useColumns$1 = (function (form) {
|
|
|
19464
19497
|
width: 149,
|
|
19465
19498
|
render: function render(value, record) {
|
|
19466
19499
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
19467
|
-
return
|
|
19500
|
+
return React.createElement(Form.Item, null, getFieldDecorator('priceExcludeTax', {
|
|
19468
19501
|
initialValue: editGood.priceExcludeTax,
|
|
19469
19502
|
getValueFromEvent: onNumberValueChange,
|
|
19470
19503
|
rules: [].concat(_toConsumableArray(getReplenishRules('priceExcludeTax')), [{
|
|
@@ -19510,7 +19543,7 @@ var useColumns$1 = (function (form) {
|
|
|
19510
19543
|
return validator;
|
|
19511
19544
|
}()
|
|
19512
19545
|
}])
|
|
19513
|
-
})(
|
|
19546
|
+
})(React.createElement(MyInput$2, {
|
|
19514
19547
|
style: {
|
|
19515
19548
|
textAlign: 'right'
|
|
19516
19549
|
},
|
|
@@ -19522,7 +19555,7 @@ var useColumns$1 = (function (form) {
|
|
|
19522
19555
|
}
|
|
19523
19556
|
})));
|
|
19524
19557
|
} else {
|
|
19525
|
-
return
|
|
19558
|
+
return React.createElement("span", {
|
|
19526
19559
|
style: {
|
|
19527
19560
|
padding: '0 10px'
|
|
19528
19561
|
}
|
|
@@ -19530,7 +19563,7 @@ var useColumns$1 = (function (form) {
|
|
|
19530
19563
|
}
|
|
19531
19564
|
}
|
|
19532
19565
|
}, {
|
|
19533
|
-
title:
|
|
19566
|
+
title: React.createElement(TitleText$1, {
|
|
19534
19567
|
required: true
|
|
19535
19568
|
}, "\u91D1\u989D(\u542B\u7A0E)"),
|
|
19536
19569
|
dataIndex: 'lineAmountIncludeTax',
|
|
@@ -19539,7 +19572,7 @@ var useColumns$1 = (function (form) {
|
|
|
19539
19572
|
align: 'right',
|
|
19540
19573
|
render: function render(value, record) {
|
|
19541
19574
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
19542
|
-
return
|
|
19575
|
+
return React.createElement(Form.Item, null, getFieldDecorator('lineAmountIncludeTax', {
|
|
19543
19576
|
initialValue: editGood.lineAmountIncludeTax,
|
|
19544
19577
|
getValueFromEvent: onNumberValueChange,
|
|
19545
19578
|
rules: [].concat(_toConsumableArray(getReplenishRules('lineAmountIncludeTax')), [{
|
|
@@ -19599,7 +19632,7 @@ var useColumns$1 = (function (form) {
|
|
|
19599
19632
|
return validator;
|
|
19600
19633
|
}()
|
|
19601
19634
|
}])
|
|
19602
|
-
})(
|
|
19635
|
+
})(React.createElement(MyInput$2, {
|
|
19603
19636
|
style: {
|
|
19604
19637
|
textAlign: 'right'
|
|
19605
19638
|
},
|
|
@@ -19610,7 +19643,7 @@ var useColumns$1 = (function (form) {
|
|
|
19610
19643
|
}
|
|
19611
19644
|
})));
|
|
19612
19645
|
} else {
|
|
19613
|
-
return
|
|
19646
|
+
return React.createElement("span", {
|
|
19614
19647
|
style: {
|
|
19615
19648
|
padding: '0 10px'
|
|
19616
19649
|
}
|
|
@@ -19618,7 +19651,7 @@ var useColumns$1 = (function (form) {
|
|
|
19618
19651
|
}
|
|
19619
19652
|
}
|
|
19620
19653
|
}, {
|
|
19621
|
-
title:
|
|
19654
|
+
title: React.createElement(TitleText$1, {
|
|
19622
19655
|
required: true
|
|
19623
19656
|
}, "\u91D1\u989D(\u4E0D\u542B\u7A0E)"),
|
|
19624
19657
|
dataIndex: 'lineAmountExcludeTax',
|
|
@@ -19627,7 +19660,7 @@ var useColumns$1 = (function (form) {
|
|
|
19627
19660
|
width: 119,
|
|
19628
19661
|
render: function render(value, record) {
|
|
19629
19662
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
19630
|
-
return
|
|
19663
|
+
return React.createElement(Form.Item, null, getFieldDecorator('lineAmountExcludeTax', {
|
|
19631
19664
|
initialValue: editGood.lineAmountExcludeTax,
|
|
19632
19665
|
getValueFromEvent: onNumberValueChange,
|
|
19633
19666
|
rules: [].concat(_toConsumableArray(getReplenishRules('lineAmountExcludeTax')), [{
|
|
@@ -19662,7 +19695,7 @@ var useColumns$1 = (function (form) {
|
|
|
19662
19695
|
return validator;
|
|
19663
19696
|
}()
|
|
19664
19697
|
}])
|
|
19665
|
-
})(
|
|
19698
|
+
})(React.createElement(MyInput$2, {
|
|
19666
19699
|
style: {
|
|
19667
19700
|
textAlign: 'right'
|
|
19668
19701
|
},
|
|
@@ -19673,7 +19706,7 @@ var useColumns$1 = (function (form) {
|
|
|
19673
19706
|
}
|
|
19674
19707
|
})));
|
|
19675
19708
|
} else {
|
|
19676
|
-
return
|
|
19709
|
+
return React.createElement("span", {
|
|
19677
19710
|
style: {
|
|
19678
19711
|
padding: '0 10px'
|
|
19679
19712
|
}
|
|
@@ -19681,7 +19714,7 @@ var useColumns$1 = (function (form) {
|
|
|
19681
19714
|
}
|
|
19682
19715
|
}
|
|
19683
19716
|
}, {
|
|
19684
|
-
title:
|
|
19717
|
+
title: React.createElement(TitleText$1, {
|
|
19685
19718
|
required: true
|
|
19686
19719
|
}, "\u7A0E\u7387%"),
|
|
19687
19720
|
dataIndex: 'taxRate',
|
|
@@ -19690,7 +19723,7 @@ var useColumns$1 = (function (form) {
|
|
|
19690
19723
|
width: 70,
|
|
19691
19724
|
render: function render(value, record) {
|
|
19692
19725
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
19693
|
-
return
|
|
19726
|
+
return React.createElement(Form.Item, null, getFieldDecorator('taxRate', {
|
|
19694
19727
|
initialValue: editGood.taxRate,
|
|
19695
19728
|
rules: [].concat(_toConsumableArray(getReplenishRules('taxRate')), [{
|
|
19696
19729
|
required: true,
|
|
@@ -19699,7 +19732,7 @@ var useColumns$1 = (function (form) {
|
|
|
19699
19732
|
pattern: /^[+-]?(0|([1-9]\d*))(\.\d+)?$/,
|
|
19700
19733
|
message: ' '
|
|
19701
19734
|
}])
|
|
19702
|
-
})(
|
|
19735
|
+
})(React.createElement(Select$1, {
|
|
19703
19736
|
className: "kts-invoice-operate-goods-list-table-tax-rate",
|
|
19704
19737
|
// dropdownMenuStyle={{ textAlign: "right" }}
|
|
19705
19738
|
showArrow: false,
|
|
@@ -19711,13 +19744,13 @@ var useColumns$1 = (function (form) {
|
|
|
19711
19744
|
onChangeTaxRate$1(controller, form, record);
|
|
19712
19745
|
}
|
|
19713
19746
|
}, taxRateList.map(function (e, i) {
|
|
19714
|
-
return
|
|
19747
|
+
return React.createElement(Select$1.Option, {
|
|
19715
19748
|
key: i,
|
|
19716
19749
|
value: e
|
|
19717
19750
|
}, e, "%");
|
|
19718
19751
|
}))));
|
|
19719
19752
|
} else {
|
|
19720
|
-
return
|
|
19753
|
+
return React.createElement("span", {
|
|
19721
19754
|
style: {
|
|
19722
19755
|
padding: '0 10px'
|
|
19723
19756
|
}
|
|
@@ -19725,7 +19758,7 @@ var useColumns$1 = (function (form) {
|
|
|
19725
19758
|
}
|
|
19726
19759
|
}
|
|
19727
19760
|
}, {
|
|
19728
|
-
title:
|
|
19761
|
+
title: React.createElement(TitleText$1, {
|
|
19729
19762
|
rules: (_columnsReplenish$tax = columnsReplenish['taxAmount']) === null || _columnsReplenish$tax === void 0 ? void 0 : _columnsReplenish$tax.rules
|
|
19730
19763
|
}, "\u7A0E\u989D"),
|
|
19731
19764
|
dataIndex: 'taxAmount',
|
|
@@ -19737,11 +19770,11 @@ var useColumns$1 = (function (form) {
|
|
|
19737
19770
|
return getFieldDecorator('taxAmount', {
|
|
19738
19771
|
initialValue: editGood.taxAmount,
|
|
19739
19772
|
rules: getReplenishRules('taxAmount')
|
|
19740
|
-
})(
|
|
19773
|
+
})(React.createElement(MyDiv$2, {
|
|
19741
19774
|
loading: isCipher$1(changeField, 'taxAmount')
|
|
19742
19775
|
}));
|
|
19743
19776
|
} else {
|
|
19744
|
-
return
|
|
19777
|
+
return React.createElement("span", {
|
|
19745
19778
|
style: {
|
|
19746
19779
|
padding: '0 10px'
|
|
19747
19780
|
}
|
|
@@ -19808,13 +19841,13 @@ var MyInput$2 = /*#__PURE__*/function (_React$Component) {
|
|
|
19808
19841
|
key: "render",
|
|
19809
19842
|
value: function render() {
|
|
19810
19843
|
if (this.props.loading) {
|
|
19811
|
-
return
|
|
19844
|
+
return React.createElement(Spin$1, {
|
|
19812
19845
|
size: "small"
|
|
19813
|
-
},
|
|
19846
|
+
}, React.createElement(Input$1, _objectSpread2(_objectSpread2({}, this.props), {}, {
|
|
19814
19847
|
autoComplete: "off"
|
|
19815
19848
|
})));
|
|
19816
19849
|
} else {
|
|
19817
|
-
return
|
|
19850
|
+
return React.createElement(Input$1, _objectSpread2(_objectSpread2({}, this.props), {}, {
|
|
19818
19851
|
autoComplete: "off"
|
|
19819
19852
|
}));
|
|
19820
19853
|
}
|
|
@@ -19839,15 +19872,15 @@ var MyDiv$2 = /*#__PURE__*/function (_React$Component2) {
|
|
|
19839
19872
|
key: "render",
|
|
19840
19873
|
value: function render() {
|
|
19841
19874
|
if (this.props.loading) {
|
|
19842
|
-
return
|
|
19875
|
+
return React.createElement(Spin$1, {
|
|
19843
19876
|
size: "small"
|
|
19844
|
-
},
|
|
19877
|
+
}, React.createElement("span", {
|
|
19845
19878
|
style: {
|
|
19846
19879
|
padding: '0 10px'
|
|
19847
19880
|
}
|
|
19848
19881
|
}, this.props.value));
|
|
19849
19882
|
} else {
|
|
19850
|
-
return
|
|
19883
|
+
return React.createElement("span", {
|
|
19851
19884
|
style: {
|
|
19852
19885
|
padding: '0 10px'
|
|
19853
19886
|
}
|
|
@@ -19880,18 +19913,18 @@ var MyItemNameDiv$1 = /*#__PURE__*/function (_React$Component3) {
|
|
|
19880
19913
|
|
|
19881
19914
|
if (isMyShow) {
|
|
19882
19915
|
if (valueT) {
|
|
19883
|
-
return
|
|
19916
|
+
return React.createElement(Tooltip$1, {
|
|
19884
19917
|
title: valueT
|
|
19885
|
-
},
|
|
19918
|
+
}, React.createElement("span", {
|
|
19886
19919
|
style: {
|
|
19887
19920
|
padding: '0 10px',
|
|
19888
19921
|
color: '#0074ff'
|
|
19889
19922
|
}
|
|
19890
19923
|
}, valueT));
|
|
19891
19924
|
} else {
|
|
19892
|
-
return
|
|
19925
|
+
return React.createElement(Tooltip$1, {
|
|
19893
19926
|
title: valueF
|
|
19894
|
-
},
|
|
19927
|
+
}, React.createElement("span", {
|
|
19895
19928
|
style: {
|
|
19896
19929
|
padding: '0 10px'
|
|
19897
19930
|
}
|
|
@@ -19899,17 +19932,17 @@ var MyItemNameDiv$1 = /*#__PURE__*/function (_React$Component3) {
|
|
|
19899
19932
|
}
|
|
19900
19933
|
} else {
|
|
19901
19934
|
if (valueF) {
|
|
19902
|
-
return
|
|
19935
|
+
return React.createElement(Tooltip$1, {
|
|
19903
19936
|
title: valueF
|
|
19904
|
-
},
|
|
19937
|
+
}, React.createElement("span", {
|
|
19905
19938
|
style: {
|
|
19906
19939
|
padding: '0 10px'
|
|
19907
19940
|
}
|
|
19908
19941
|
}, valueF));
|
|
19909
19942
|
} else {
|
|
19910
|
-
return
|
|
19943
|
+
return React.createElement(Tooltip$1, {
|
|
19911
19944
|
title: valueT
|
|
19912
|
-
},
|
|
19945
|
+
}, React.createElement("span", {
|
|
19913
19946
|
style: {
|
|
19914
19947
|
padding: '0 10px',
|
|
19915
19948
|
color: '#0074ff'
|
|
@@ -19932,7 +19965,7 @@ function formatSearch$1(value, search) {
|
|
|
19932
19965
|
return dcoding$1(e);
|
|
19933
19966
|
}).join("<span class=\"kts-invoice-operate-goods-list-table-search-protrude\" >".concat(search, "</span>"));
|
|
19934
19967
|
|
|
19935
|
-
return
|
|
19968
|
+
return React.createElement("span", {
|
|
19936
19969
|
dangerouslySetInnerHTML: {
|
|
19937
19970
|
__html: __html
|
|
19938
19971
|
}
|
|
@@ -20311,7 +20344,7 @@ var useRowSelection$1 = (function () {
|
|
|
20311
20344
|
};
|
|
20312
20345
|
}(), [controller]);
|
|
20313
20346
|
var columnTitle = React.useMemo(function () {
|
|
20314
|
-
return
|
|
20347
|
+
return React.createElement(Checkbox, {
|
|
20315
20348
|
onChange: onClickSelectAll,
|
|
20316
20349
|
indeterminate: indeterminate,
|
|
20317
20350
|
checked: isAll
|
|
@@ -20460,19 +20493,19 @@ var useDelRowButton$1 = (function () {
|
|
|
20460
20493
|
}, _callee2);
|
|
20461
20494
|
})), []);
|
|
20462
20495
|
var menuItem = React.useMemo(function () {
|
|
20463
|
-
if (model === 'prefab') return
|
|
20464
|
-
if (model === 'readOnly') return
|
|
20465
|
-
return
|
|
20496
|
+
if (model === 'prefab') return React.createElement(React.Fragment, null);
|
|
20497
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
20498
|
+
return React.createElement(Menu$1.Item, {
|
|
20466
20499
|
key: "1",
|
|
20467
20500
|
onClick: onClick,
|
|
20468
20501
|
disabled: disabled
|
|
20469
20502
|
}, " \u5220\u9664\u884C ");
|
|
20470
20503
|
}, [model, onClick, disabled]);
|
|
20471
20504
|
var button = React.useMemo(function () {
|
|
20472
|
-
if (isRemRow === false) return
|
|
20473
|
-
if (model === 'prefab') return
|
|
20474
|
-
if (model === 'readOnly') return
|
|
20475
|
-
return
|
|
20505
|
+
if (isRemRow === false) return React.createElement(React.Fragment, null);
|
|
20506
|
+
if (model === 'prefab') return React.createElement(React.Fragment, null);
|
|
20507
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
20508
|
+
return React.createElement(Button$1, {
|
|
20476
20509
|
size: 'small',
|
|
20477
20510
|
onClick: onClick,
|
|
20478
20511
|
disabled: disabled
|
|
@@ -20703,16 +20736,16 @@ var useAddDiscountRowButton$1 = (function () {
|
|
|
20703
20736
|
}, [isAddDiscount, model]);
|
|
20704
20737
|
var button = React.useMemo(function () {
|
|
20705
20738
|
if (isEnable) {
|
|
20706
|
-
return
|
|
20739
|
+
return React.createElement(React.Fragment, null, React.createElement(Button$1, {
|
|
20707
20740
|
size: 'small',
|
|
20708
20741
|
onClick: onOpen,
|
|
20709
20742
|
disabled: disabled
|
|
20710
|
-
}, "\u6DFB\u52A0\u6298\u6263"),
|
|
20743
|
+
}, "\u6DFB\u52A0\u6298\u6263"), React.createElement(AddDiscountRowDrawer, {
|
|
20711
20744
|
open: open,
|
|
20712
20745
|
onClose: onClose
|
|
20713
20746
|
}));
|
|
20714
20747
|
} else {
|
|
20715
|
-
return
|
|
20748
|
+
return React.createElement(React.Fragment, null);
|
|
20716
20749
|
}
|
|
20717
20750
|
}, [open, onOpen, onClose, isEnable, disabled]);
|
|
20718
20751
|
return {
|
|
@@ -20893,35 +20926,35 @@ function AddDiscountRowDrawer(props) {
|
|
|
20893
20926
|
discolineValue: undefined
|
|
20894
20927
|
}));
|
|
20895
20928
|
}, [formValues === null || formValues === void 0 ? void 0 : formValues.discolineType]);
|
|
20896
|
-
return
|
|
20929
|
+
return React.createElement(Drawer$1, {
|
|
20897
20930
|
title: "\u6DFB\u52A0\u6298\u6263",
|
|
20898
20931
|
placement: "right",
|
|
20899
20932
|
width: 350,
|
|
20900
20933
|
onClose: onClose,
|
|
20901
20934
|
open: open,
|
|
20902
|
-
footer:
|
|
20935
|
+
footer: React.createElement(Space, {
|
|
20903
20936
|
size: "middle",
|
|
20904
20937
|
style: {
|
|
20905
20938
|
display: 'flex',
|
|
20906
20939
|
justifyContent: 'end'
|
|
20907
20940
|
}
|
|
20908
|
-
},
|
|
20941
|
+
}, React.createElement(Button$1, {
|
|
20909
20942
|
onClick: onDefine,
|
|
20910
20943
|
type: 'primary'
|
|
20911
|
-
}, "\u786E\u5B9A"),
|
|
20944
|
+
}, "\u786E\u5B9A"), React.createElement(Button$1, {
|
|
20912
20945
|
onClick: onClose
|
|
20913
20946
|
}, "\u53D6\u6D88"))
|
|
20914
|
-
},
|
|
20947
|
+
}, React.createElement(Form$1, {
|
|
20915
20948
|
form: form,
|
|
20916
20949
|
layout: 'vertical',
|
|
20917
20950
|
onChange: onChangeForm
|
|
20918
|
-
},
|
|
20951
|
+
}, React.createElement(Form$1.Item, {
|
|
20919
20952
|
label: "\u5546\u54C1\u91D1\u989D\uFF08\u542B\u7A0E\uFF09"
|
|
20920
|
-
}, totalAmount.toFixed(2), "\uFF08\u5171 ", discountGood.length, " \u884C\uFF09"),
|
|
20953
|
+
}, totalAmount.toFixed(2), "\uFF08\u5171 ", discountGood.length, " \u884C\uFF09"), React.createElement(Form$1.Item, {
|
|
20921
20954
|
label: "\u6298\u6263\u65B9\u5F0F",
|
|
20922
20955
|
name: 'discolineType',
|
|
20923
20956
|
initialValue: '1'
|
|
20924
|
-
},
|
|
20957
|
+
}, React.createElement(Radio.Group, {
|
|
20925
20958
|
options: [{
|
|
20926
20959
|
label: '按金额折扣',
|
|
20927
20960
|
value: '1'
|
|
@@ -20929,7 +20962,7 @@ function AddDiscountRowDrawer(props) {
|
|
|
20929
20962
|
label: '按比例折扣',
|
|
20930
20963
|
value: '2'
|
|
20931
20964
|
}]
|
|
20932
|
-
})), (formValues === null || formValues === void 0 ? void 0 : formValues.discolineType) === '1' ?
|
|
20965
|
+
})), (formValues === null || formValues === void 0 ? void 0 : formValues.discolineType) === '1' ? React.createElement(Form$1.Item, {
|
|
20933
20966
|
label: "\u6298\u6263\u91D1\u989D\uFF08\u5143\uFF09\uFF08\u542B\u7A0E\uFF09",
|
|
20934
20967
|
name: 'discolineValue',
|
|
20935
20968
|
rules: [{
|
|
@@ -20980,11 +21013,11 @@ function AddDiscountRowDrawer(props) {
|
|
|
20980
21013
|
return validator;
|
|
20981
21014
|
}()
|
|
20982
21015
|
}]
|
|
20983
|
-
},
|
|
21016
|
+
}, React.createElement(InputNumber, {
|
|
20984
21017
|
style: {
|
|
20985
21018
|
width: '100%'
|
|
20986
21019
|
}
|
|
20987
|
-
})) :
|
|
21020
|
+
})) : React.createElement(Form$1.Item, {
|
|
20988
21021
|
label: "\u6298\u6263\u6BD4\u4F8B\uFF08%\uFF09\uFF08\u542B\u7A0E\uFF09",
|
|
20989
21022
|
name: 'discolineValue',
|
|
20990
21023
|
rules: [{
|
|
@@ -21035,7 +21068,7 @@ function AddDiscountRowDrawer(props) {
|
|
|
21035
21068
|
return validator;
|
|
21036
21069
|
}()
|
|
21037
21070
|
}]
|
|
21038
|
-
},
|
|
21071
|
+
}, React.createElement(InputNumber, {
|
|
21039
21072
|
style: {
|
|
21040
21073
|
width: '100%'
|
|
21041
21074
|
}
|
|
@@ -21179,16 +21212,16 @@ var useEndowCodeButton$1 = (function () {
|
|
|
21179
21212
|
}, _callee2);
|
|
21180
21213
|
})), [controller]);
|
|
21181
21214
|
var menuItem = React.useMemo(function () {
|
|
21182
|
-
if (model === 'readOnly') return
|
|
21183
|
-
return
|
|
21215
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
21216
|
+
return React.createElement(Menu$1.Item, {
|
|
21184
21217
|
key: "2",
|
|
21185
21218
|
onClick: onClick,
|
|
21186
21219
|
disabled: disabled
|
|
21187
21220
|
}, "\u6279\u91CF\u8D4B\u7801");
|
|
21188
21221
|
}, [onClick, disabled, model]);
|
|
21189
21222
|
var button = React.useMemo(function () {
|
|
21190
|
-
if (model === 'readOnly') return
|
|
21191
|
-
return
|
|
21223
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
21224
|
+
return React.createElement(Button$1, {
|
|
21192
21225
|
onClick: onClick,
|
|
21193
21226
|
disabled: disabled,
|
|
21194
21227
|
size: 'small'
|
|
@@ -21248,14 +21281,14 @@ var useEmptyRefill = (function () {
|
|
|
21248
21281
|
}());
|
|
21249
21282
|
}, [controller]);
|
|
21250
21283
|
var button = React.useMemo(function () {
|
|
21251
|
-
if (model === 'readOnly') return
|
|
21252
|
-
if (model === 'prefab') return
|
|
21253
|
-
return
|
|
21284
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
21285
|
+
if (model === 'prefab') return React.createElement(React.Fragment, null);
|
|
21286
|
+
return React.createElement(Popconfirm, {
|
|
21254
21287
|
title: "\u5C06\u8981\u6E05\u7A7A\u6240\u6709\u9879\u76EE\u4FE1\u606F\uFF0C\u662F\u5426\u7EE7\u7EED",
|
|
21255
21288
|
onConfirm: confirm,
|
|
21256
21289
|
okText: "\u786E\u5B9A",
|
|
21257
21290
|
cancelText: "\u53D6\u6D88"
|
|
21258
|
-
},
|
|
21291
|
+
}, React.createElement(Button$1, {
|
|
21259
21292
|
size: 'small'
|
|
21260
21293
|
}, "\u6E05\u7A7A\u91CD\u586B"));
|
|
21261
21294
|
}, [model, confirm]);
|
|
@@ -21322,14 +21355,14 @@ function InvoiceTypeModal(props) {
|
|
|
21322
21355
|
setValues(values);
|
|
21323
21356
|
}
|
|
21324
21357
|
}, [props.open, props.defaultBillingType, props.defaultBusiness, props.defaultInvoiceType, form]);
|
|
21325
|
-
return
|
|
21358
|
+
return React.createElement(Modal, {
|
|
21326
21359
|
title: props.modalTitle || "选择开具信息",
|
|
21327
21360
|
open: props.open,
|
|
21328
21361
|
onOk: onConfirm,
|
|
21329
21362
|
onCancel: props.onCancel,
|
|
21330
21363
|
okText: "\u786E\u5B9A",
|
|
21331
21364
|
cancelText: "\u53D6\u6D88"
|
|
21332
|
-
},
|
|
21365
|
+
}, React.createElement(Form$1, {
|
|
21333
21366
|
form: form,
|
|
21334
21367
|
layout: "vertical",
|
|
21335
21368
|
style: {
|
|
@@ -21338,13 +21371,13 @@ function InvoiceTypeModal(props) {
|
|
|
21338
21371
|
onValuesChange: function onValuesChange(_, e) {
|
|
21339
21372
|
setValues(e);
|
|
21340
21373
|
}
|
|
21341
|
-
},
|
|
21374
|
+
}, React.createElement(Row, {
|
|
21342
21375
|
gutter: [16, 16]
|
|
21343
|
-
},
|
|
21376
|
+
}, React.createElement(Col, {
|
|
21344
21377
|
span: 24
|
|
21345
|
-
},
|
|
21378
|
+
}, React.createElement(Form$1.Item, {
|
|
21346
21379
|
name: 'billingType'
|
|
21347
|
-
},
|
|
21380
|
+
}, React.createElement(Radio.Group, {
|
|
21348
21381
|
size: 'large',
|
|
21349
21382
|
className: "goods-list-digtal-reselect-invoice-typeModal-radio",
|
|
21350
21383
|
optionType: "button",
|
|
@@ -21357,27 +21390,27 @@ function InvoiceTypeModal(props) {
|
|
|
21357
21390
|
label: '税控发票',
|
|
21358
21391
|
value: 'taxation'
|
|
21359
21392
|
}]
|
|
21360
|
-
}))),
|
|
21393
|
+
}))), React.createElement(Col, {
|
|
21361
21394
|
span: 12
|
|
21362
|
-
},
|
|
21395
|
+
}, React.createElement(Form$1.Item, {
|
|
21363
21396
|
name: 'invoiceType',
|
|
21364
21397
|
label: "\u9009\u62E9\u7968\u7C7B",
|
|
21365
21398
|
rules: [{
|
|
21366
21399
|
required: true,
|
|
21367
21400
|
message: '选择票类必填'
|
|
21368
21401
|
}]
|
|
21369
|
-
},
|
|
21402
|
+
}, React.createElement(Select$1, {
|
|
21370
21403
|
size: 'large',
|
|
21371
21404
|
allowClear: true,
|
|
21372
21405
|
placeholder: "\u8BF7\u9009\u62E9\uFF08\u5FC5\u586B\u9879\uFF09",
|
|
21373
21406
|
disabled: disableds.indexOf('invoiceType') >= 0,
|
|
21374
21407
|
options: props.invoiceTypeOptions
|
|
21375
|
-
}))),
|
|
21408
|
+
}))), React.createElement(Col, {
|
|
21376
21409
|
span: 12
|
|
21377
|
-
},
|
|
21410
|
+
}, React.createElement(Form$1.Item, {
|
|
21378
21411
|
name: 'business',
|
|
21379
21412
|
label: "\u7279\u5B9A\u4E1A\u52A1"
|
|
21380
|
-
},
|
|
21413
|
+
}, React.createElement(Select$1, {
|
|
21381
21414
|
size: 'large',
|
|
21382
21415
|
allowClear: true,
|
|
21383
21416
|
placeholder: "\u8BF7\u9009\u62E9\uFF08\u975E\u5FC5\u586B\u9879\uFF09",
|
|
@@ -21422,11 +21455,11 @@ var useReselectInvoiceType = (function () {
|
|
|
21422
21455
|
return true;
|
|
21423
21456
|
}, [model, typeModalProps === null || typeModalProps === void 0 ? void 0 : typeModalProps.isDisabled]);
|
|
21424
21457
|
var button = React.useMemo(function () {
|
|
21425
|
-
if (isEnable === false) return
|
|
21426
|
-
return
|
|
21458
|
+
if (isEnable === false) return React.createElement(React.Fragment, null);
|
|
21459
|
+
return React.createElement(React.Fragment, null, React.createElement(Button$1, {
|
|
21427
21460
|
size: 'small',
|
|
21428
21461
|
onClick: onOpen
|
|
21429
|
-
}, "\u91CD\u9009\u53D1\u7968\u7C7B\u578B"),
|
|
21462
|
+
}, "\u91CD\u9009\u53D1\u7968\u7C7B\u578B"), React.createElement(InvoiceTypeModal, _objectSpread2(_objectSpread2({}, typeModalProps), {}, {
|
|
21430
21463
|
open: open,
|
|
21431
21464
|
onCancel: onClose,
|
|
21432
21465
|
onOk: onOk
|
|
@@ -21454,7 +21487,7 @@ var GoodsList$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
21454
21487
|
_createClass(GoodsList, [{
|
|
21455
21488
|
key: "render",
|
|
21456
21489
|
value: function render() {
|
|
21457
|
-
return
|
|
21490
|
+
return React.createElement(Main$3, _objectSpread2({}, this.props));
|
|
21458
21491
|
}
|
|
21459
21492
|
}]);
|
|
21460
21493
|
|
|
@@ -21655,20 +21688,20 @@ var Main$3 = decorator(Form.create())(function (props) {
|
|
|
21655
21688
|
};
|
|
21656
21689
|
}())();
|
|
21657
21690
|
}, [controller, props.isSwitchTax]);
|
|
21658
|
-
return
|
|
21691
|
+
return React.createElement("div", {
|
|
21659
21692
|
className: "kts-invoice-operate-goods-list-digtal",
|
|
21660
21693
|
onClick: function onClick(e) {
|
|
21661
21694
|
e.stopPropagation();
|
|
21662
21695
|
}
|
|
21663
|
-
},
|
|
21696
|
+
}, React.createElement("div", {
|
|
21664
21697
|
className: "kts-invoice-operate-goods-list-able"
|
|
21665
|
-
},
|
|
21698
|
+
}, 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
21699
|
style: {
|
|
21667
21700
|
flex: 1
|
|
21668
21701
|
}
|
|
21669
|
-
}), props.menuExpansion, reselectInvoiceType.button, emptyRefill.button),
|
|
21702
|
+
}), props.menuExpansion, reselectInvoiceType.button, emptyRefill.button), React.createElement("div", {
|
|
21670
21703
|
className: classNames('kts-invoice-operate-goods-list-table-digtal')
|
|
21671
|
-
},
|
|
21704
|
+
}, React.createElement(TableVirtual$1, {
|
|
21672
21705
|
size: "small",
|
|
21673
21706
|
rowKey: "$index",
|
|
21674
21707
|
pagination: false,
|
|
@@ -21690,7 +21723,7 @@ var Main$3 = decorator(Form.create())(function (props) {
|
|
|
21690
21723
|
}
|
|
21691
21724
|
};
|
|
21692
21725
|
}
|
|
21693
|
-
})),
|
|
21726
|
+
})), React.createElement("div", null, React.createElement(Statistics$1, null)));
|
|
21694
21727
|
});
|
|
21695
21728
|
|
|
21696
21729
|
var ImportBuyerDrawer = (function () {
|
|
@@ -21724,7 +21757,7 @@ var ImportBuyerDrawer = (function () {
|
|
|
21724
21757
|
};
|
|
21725
21758
|
}())();
|
|
21726
21759
|
}, [controller]);
|
|
21727
|
-
return
|
|
21760
|
+
return React.createElement(Drawer, {
|
|
21728
21761
|
title: "\u8D2D\u65B9\u5217\u8868",
|
|
21729
21762
|
placement: "right",
|
|
21730
21763
|
// closable={false}
|
|
@@ -21732,7 +21765,7 @@ var ImportBuyerDrawer = (function () {
|
|
|
21732
21765
|
width: 983,
|
|
21733
21766
|
onClose: onClose,
|
|
21734
21767
|
visible: visible
|
|
21735
|
-
}, topExpand,
|
|
21768
|
+
}, topExpand, React.createElement(DrawerBody$1, null));
|
|
21736
21769
|
});
|
|
21737
21770
|
|
|
21738
21771
|
var DrawerBody$1 = function DrawerBody() {
|
|
@@ -21753,7 +21786,7 @@ var DrawerBody$1 = function DrawerBody() {
|
|
|
21753
21786
|
}
|
|
21754
21787
|
});
|
|
21755
21788
|
}, [controller]);
|
|
21756
|
-
return
|
|
21789
|
+
return React.createElement(Table$1, {
|
|
21757
21790
|
bordered: true,
|
|
21758
21791
|
size: "small",
|
|
21759
21792
|
columns: columns,
|
|
@@ -21853,7 +21886,7 @@ var ImportGoodsDrawer = (function () {
|
|
|
21853
21886
|
};
|
|
21854
21887
|
}())();
|
|
21855
21888
|
}, [controller]);
|
|
21856
|
-
return
|
|
21889
|
+
return React.createElement(Drawer, {
|
|
21857
21890
|
title: "\u5546\u54C1\u5217\u8868",
|
|
21858
21891
|
placement: "right",
|
|
21859
21892
|
// closable={false}
|
|
@@ -21861,11 +21894,11 @@ var ImportGoodsDrawer = (function () {
|
|
|
21861
21894
|
width: 983,
|
|
21862
21895
|
onClose: onClose,
|
|
21863
21896
|
visible: visible
|
|
21864
|
-
}, topExpand &&
|
|
21897
|
+
}, topExpand && React.createElement("div", {
|
|
21865
21898
|
style: {
|
|
21866
21899
|
marginBottom: 10
|
|
21867
21900
|
}
|
|
21868
|
-
}, topExpand),
|
|
21901
|
+
}, topExpand), React.createElement(DrawerBody$2, null));
|
|
21869
21902
|
});
|
|
21870
21903
|
|
|
21871
21904
|
var DrawerBody$2 = function DrawerBody() {
|
|
@@ -21887,7 +21920,7 @@ var DrawerBody$2 = function DrawerBody() {
|
|
|
21887
21920
|
}
|
|
21888
21921
|
});
|
|
21889
21922
|
}, [controller]);
|
|
21890
|
-
return
|
|
21923
|
+
return React.createElement(Table$1, {
|
|
21891
21924
|
bordered: true,
|
|
21892
21925
|
size: "small",
|
|
21893
21926
|
columns: columns,
|
|
@@ -22179,7 +22212,7 @@ var EndowCodeDrawer = (function () {
|
|
|
22179
22212
|
setDefaultValue(undefined);
|
|
22180
22213
|
}
|
|
22181
22214
|
}, [visible]);
|
|
22182
|
-
return
|
|
22215
|
+
return React.createElement(Drawer, {
|
|
22183
22216
|
title: "\u8D4B\u7801",
|
|
22184
22217
|
placement: "right",
|
|
22185
22218
|
destroyOnClose: true,
|
|
@@ -22187,7 +22220,7 @@ var EndowCodeDrawer = (function () {
|
|
|
22187
22220
|
width: 383,
|
|
22188
22221
|
onClose: onClose,
|
|
22189
22222
|
visible: visible
|
|
22190
|
-
}, defaultValue &&
|
|
22223
|
+
}, defaultValue && React.createElement(DrawerBody$3, {
|
|
22191
22224
|
defaultValue: defaultValue
|
|
22192
22225
|
}));
|
|
22193
22226
|
});
|
|
@@ -22344,7 +22377,7 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
22344
22377
|
};
|
|
22345
22378
|
}());
|
|
22346
22379
|
}, [actions, dataSource, readOnlyTaxRate]);
|
|
22347
|
-
return
|
|
22380
|
+
return React.createElement(Select, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
22348
22381
|
showSearch: true,
|
|
22349
22382
|
showArrow: false,
|
|
22350
22383
|
notFoundContent: null,
|
|
@@ -22352,7 +22385,7 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
22352
22385
|
onSearch: onSearch,
|
|
22353
22386
|
onChange: onChange
|
|
22354
22387
|
}), dataSource.map(function (e) {
|
|
22355
|
-
return
|
|
22388
|
+
return React.createElement(Select.Option, {
|
|
22356
22389
|
key: e.value,
|
|
22357
22390
|
value: e.value
|
|
22358
22391
|
}, e.label);
|
|
@@ -22382,14 +22415,14 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
22382
22415
|
|
|
22383
22416
|
|
|
22384
22417
|
var createTreeNode = React.useCallback(function () {
|
|
22385
|
-
if (!list) return
|
|
22418
|
+
if (!list) return React.createElement(React.Fragment, null);
|
|
22386
22419
|
return ctn(list);
|
|
22387
22420
|
|
|
22388
22421
|
function title(label) {
|
|
22389
22422
|
if (!filter) return label;
|
|
22390
22423
|
label = (filter.taxCategoryCode ? label.split(new RegExp(filter.taxCategoryCode, 'g')) : [label]).join("<span style=\"color: #1890ff;\">".concat(filter.taxCategoryCode, "</span>"));
|
|
22391
22424
|
label = (filter.val ? label.split(new RegExp(filter.val, 'g')) : [label]).join("<span style=\"color: #1890ff;\">".concat(filter.val, "</span>"));
|
|
22392
|
-
return
|
|
22425
|
+
return React.createElement("span", {
|
|
22393
22426
|
dangerouslySetInnerHTML: {
|
|
22394
22427
|
__html: label
|
|
22395
22428
|
}
|
|
@@ -22398,11 +22431,11 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
22398
22431
|
|
|
22399
22432
|
function ctn(l) {
|
|
22400
22433
|
var p = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '0';
|
|
22401
|
-
if (!l || !l.length) return [
|
|
22434
|
+
if (!l || !l.length) return [React.createElement(React.Fragment, null)];
|
|
22402
22435
|
return l.filter(function (e) {
|
|
22403
22436
|
return e.pid === p;
|
|
22404
22437
|
}).map(function (e) {
|
|
22405
|
-
return
|
|
22438
|
+
return React.createElement(TreeNode, {
|
|
22406
22439
|
title: title(e.label),
|
|
22407
22440
|
key: e.id
|
|
22408
22441
|
}, ctn(l, e.id));
|
|
@@ -22532,46 +22565,46 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
22532
22565
|
setList([]);
|
|
22533
22566
|
}
|
|
22534
22567
|
}, [visible]);
|
|
22535
|
-
return
|
|
22568
|
+
return React.createElement(React.Fragment, null, React.createElement(Input, {
|
|
22536
22569
|
readOnly: true,
|
|
22537
22570
|
value: props.value,
|
|
22538
|
-
addonAfter:
|
|
22571
|
+
addonAfter: React.createElement(Button, {
|
|
22539
22572
|
size: "small",
|
|
22540
22573
|
type: "link",
|
|
22541
22574
|
onClick: function onClick() {
|
|
22542
22575
|
setVisible(true);
|
|
22543
22576
|
}
|
|
22544
22577
|
}, "\u70B9\u51FB\u9009\u62E9")
|
|
22545
|
-
}),
|
|
22578
|
+
}), React.createElement(Drawer, {
|
|
22546
22579
|
title: "\u7A0E\u6536\u5206\u7C7B\u7F16\u7801",
|
|
22547
22580
|
visible: visible,
|
|
22548
22581
|
width: 500,
|
|
22549
22582
|
onClose: function onClose() {
|
|
22550
22583
|
setVisible(false);
|
|
22551
22584
|
}
|
|
22552
|
-
},
|
|
22585
|
+
}, React.createElement(Form, {
|
|
22553
22586
|
key: "".concat(visible)
|
|
22554
|
-
},
|
|
22587
|
+
}, React.createElement(Form.Item, {
|
|
22555
22588
|
label: "\u4EA7\u54C1\u6216\u670D\u52A1\u7B80\u79F0"
|
|
22556
|
-
},
|
|
22589
|
+
}, React.createElement(Input, {
|
|
22557
22590
|
onChange: function onChange(e) {
|
|
22558
22591
|
setFilter(_objectSpread2(_objectSpread2({}, filter), {}, {
|
|
22559
22592
|
val: e.target.value
|
|
22560
22593
|
}));
|
|
22561
22594
|
}
|
|
22562
|
-
})),
|
|
22595
|
+
})), React.createElement(Form.Item, {
|
|
22563
22596
|
label: "\u7A0E\u6536\u5206\u7C7B\u7F16\u7801"
|
|
22564
|
-
},
|
|
22597
|
+
}, React.createElement(Input, {
|
|
22565
22598
|
onChange: function onChange(e) {
|
|
22566
22599
|
setFilter(_objectSpread2(_objectSpread2({}, filter), {}, {
|
|
22567
22600
|
taxCategoryCode: e.target.value
|
|
22568
22601
|
}));
|
|
22569
22602
|
}
|
|
22570
|
-
}))), list && list.length > 0 ?
|
|
22603
|
+
}))), list && list.length > 0 ? React.createElement(Tree, {
|
|
22571
22604
|
defaultExpandAll: true,
|
|
22572
22605
|
selectedKeys: [],
|
|
22573
22606
|
onSelect: onSelect
|
|
22574
|
-
}, createTreeNode()) :
|
|
22607
|
+
}, createTreeNode()) : React.createElement("span", {
|
|
22575
22608
|
style: {
|
|
22576
22609
|
color: '#00000073'
|
|
22577
22610
|
}
|
|
@@ -22790,11 +22823,11 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
22790
22823
|
return data;
|
|
22791
22824
|
};
|
|
22792
22825
|
|
|
22793
|
-
return
|
|
22826
|
+
return React.createElement(React.Fragment, null, React.createElement(Input, {
|
|
22794
22827
|
readOnly: true,
|
|
22795
22828
|
onClick: onClick,
|
|
22796
22829
|
value: props.value
|
|
22797
|
-
}),
|
|
22830
|
+
}), React.createElement(TaxClassificationModal, {
|
|
22798
22831
|
list: list,
|
|
22799
22832
|
open: open,
|
|
22800
22833
|
onSelect: onSelect,
|
|
@@ -22910,14 +22943,14 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
22910
22943
|
React.useEffect(function () {
|
|
22911
22944
|
if (controller.getTaxCategoryCodeList) controller.getTaxCategoryCodeList();
|
|
22912
22945
|
}, [controller]);
|
|
22913
|
-
return
|
|
22946
|
+
return React.createElement(SchemaForm, {
|
|
22914
22947
|
actions: actions,
|
|
22915
22948
|
previewPlaceholder: " ",
|
|
22916
22949
|
components: _objectSpread2(_objectSpread2({}, components), {}, {
|
|
22917
22950
|
showSearch: !!controller.state.goodsListState.endowCode.onLoadTaxClassificationCode ? ShowSearch3 : ShowSearch
|
|
22918
22951
|
}),
|
|
22919
22952
|
effects: effects
|
|
22920
|
-
},
|
|
22953
|
+
}, React.createElement(FormButtonGroup, null, React.createElement(SchemaMarkupField, {
|
|
22921
22954
|
name: "taxClassificationCode",
|
|
22922
22955
|
type: "showSearch",
|
|
22923
22956
|
title: "\u7A0E\u6536\u5206\u7C7B\u7F16\u7801",
|
|
@@ -22927,13 +22960,13 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
22927
22960
|
message: '请选择税收分类编码',
|
|
22928
22961
|
required: true
|
|
22929
22962
|
}]
|
|
22930
|
-
}),
|
|
22963
|
+
}), React.createElement(SchemaMarkupField, {
|
|
22931
22964
|
name: "shorthand",
|
|
22932
22965
|
type: "string",
|
|
22933
22966
|
readOnly: true,
|
|
22934
22967
|
default: defaultValue === null || defaultValue === void 0 ? void 0 : defaultValue.shorthand,
|
|
22935
22968
|
title: "\u5546\u54C1\u548C\u670D\u52A1\u5206\u7C7B\u7B80\u79F0"
|
|
22936
|
-
}),
|
|
22969
|
+
}), React.createElement(SchemaMarkupField, {
|
|
22937
22970
|
name: "taxRate",
|
|
22938
22971
|
type: "string",
|
|
22939
22972
|
title: "\u7A0E\u7387",
|
|
@@ -22946,7 +22979,7 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
22946
22979
|
message: '请选择税率',
|
|
22947
22980
|
required: true
|
|
22948
22981
|
}]
|
|
22949
|
-
}), taxRate === 0 && isTaxFreeTypeNeeded &&
|
|
22982
|
+
}), taxRate === 0 && isTaxFreeTypeNeeded && React.createElement(SchemaMarkupField, {
|
|
22950
22983
|
name: "taxFreeType",
|
|
22951
22984
|
type: "string",
|
|
22952
22985
|
title: "\u514D\u7A0E\u7C7B\u578B",
|
|
@@ -22959,7 +22992,7 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
22959
22992
|
message: '请选择免税类型',
|
|
22960
22993
|
required: true
|
|
22961
22994
|
}]
|
|
22962
|
-
}),
|
|
22995
|
+
}), React.createElement(SchemaMarkupField, {
|
|
22963
22996
|
name: "favouredPolicyMark",
|
|
22964
22997
|
type: "number",
|
|
22965
22998
|
title: "\u662F\u5426\u4EAB\u53D7\u4F18\u60E0\u653F\u7B56",
|
|
@@ -22978,7 +23011,7 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
22978
23011
|
message: '请选择是否享受优惠政策',
|
|
22979
23012
|
required: true
|
|
22980
23013
|
}]
|
|
22981
|
-
}), favouredPolicyMark === 1 &&
|
|
23014
|
+
}), favouredPolicyMark === 1 && React.createElement(SchemaMarkupField, {
|
|
22982
23015
|
name: "favouredPolicyName",
|
|
22983
23016
|
type: "string",
|
|
22984
23017
|
title: "\u4F18\u60E0\u653F\u7B56\u7C7B\u578B",
|
|
@@ -22991,14 +23024,14 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
22991
23024
|
message: '请选择是否享受优惠政策',
|
|
22992
23025
|
required: true
|
|
22993
23026
|
}]
|
|
22994
|
-
})),
|
|
23027
|
+
})), React.createElement("span", {
|
|
22995
23028
|
className: "kts-invoice-operate-goods-endow-code-button-list"
|
|
22996
|
-
},
|
|
23029
|
+
}, React.createElement(Button, {
|
|
22997
23030
|
onClick: function onClick() {
|
|
22998
23031
|
actions.submit(onSubmit);
|
|
22999
23032
|
},
|
|
23000
23033
|
type: "primary"
|
|
23001
|
-
}, "\u786E\u5B9A"),
|
|
23034
|
+
}, "\u786E\u5B9A"), React.createElement(Button, {
|
|
23002
23035
|
onClick: function onClick() {
|
|
23003
23036
|
controller.pipeline( /*#__PURE__*/function () {
|
|
23004
23037
|
var _ref20 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee20(s) {
|
|
@@ -23158,53 +23191,53 @@ function AddComparisonDrawer() {
|
|
|
23158
23191
|
}));
|
|
23159
23192
|
}
|
|
23160
23193
|
}, [good]);
|
|
23161
|
-
return
|
|
23194
|
+
return React.createElement(Drawer$1, {
|
|
23162
23195
|
width: 500,
|
|
23163
23196
|
onClose: onClose,
|
|
23164
23197
|
placement: "right",
|
|
23165
23198
|
title: "\u5546\u54C1\u6620\u5C04",
|
|
23166
23199
|
visible: !!good,
|
|
23167
|
-
footer:
|
|
23200
|
+
footer: React.createElement("div", {
|
|
23168
23201
|
style: {
|
|
23169
23202
|
display: 'flex',
|
|
23170
23203
|
justifyContent: 'flex-end',
|
|
23171
23204
|
gap: 10
|
|
23172
23205
|
}
|
|
23173
|
-
},
|
|
23206
|
+
}, React.createElement(Button, {
|
|
23174
23207
|
type: "primary",
|
|
23175
23208
|
onClick: onSubmit
|
|
23176
|
-
}, "\u63D0\u4EA4"),
|
|
23209
|
+
}, "\u63D0\u4EA4"), React.createElement(Button, {
|
|
23177
23210
|
onClick: onClose
|
|
23178
23211
|
}, "\u53D6\u6D88"))
|
|
23179
|
-
}, !!good &&
|
|
23212
|
+
}, !!good && React.createElement(Form$1, {
|
|
23180
23213
|
layout: "vertical",
|
|
23181
23214
|
style: {
|
|
23182
23215
|
flex: 1
|
|
23183
23216
|
},
|
|
23184
23217
|
form: form
|
|
23185
|
-
},
|
|
23218
|
+
}, React.createElement(Row$1, {
|
|
23186
23219
|
gutter: [8, 8]
|
|
23187
|
-
},
|
|
23220
|
+
}, React.createElement(Col$1, {
|
|
23188
23221
|
span: 12
|
|
23189
|
-
},
|
|
23222
|
+
}, React.createElement(Form$1.Item, {
|
|
23190
23223
|
name: "itemNameSelf",
|
|
23191
23224
|
label: "\u6211\u65B9\u5546\u54C1\u540D\u79F0"
|
|
23192
|
-
},
|
|
23225
|
+
}, React.createElement(Input, null))), React.createElement(Col$1, {
|
|
23193
23226
|
span: 12
|
|
23194
|
-
},
|
|
23227
|
+
}, React.createElement(Form$1.Item, {
|
|
23195
23228
|
name: "itemName",
|
|
23196
23229
|
label: "\u5BF9\u65B9\u5546\u54C1\u540D\u79F0"
|
|
23197
|
-
},
|
|
23230
|
+
}, React.createElement(Input, null))), React.createElement(Col$1, {
|
|
23198
23231
|
span: 12
|
|
23199
|
-
},
|
|
23232
|
+
}, React.createElement(Form$1.Item, {
|
|
23200
23233
|
name: 'itemModelNameSelf',
|
|
23201
23234
|
label: "\u6211\u65B9\u89C4\u683C\u578B\u53F7"
|
|
23202
|
-
},
|
|
23235
|
+
}, React.createElement(Input, null))), React.createElement(Col$1, {
|
|
23203
23236
|
span: 12
|
|
23204
|
-
},
|
|
23237
|
+
}, React.createElement(Form$1.Item, {
|
|
23205
23238
|
name: "itemModelName",
|
|
23206
23239
|
label: "\u5BF9\u65B9\u89C4\u683C\u578B\u53F7"
|
|
23207
|
-
},
|
|
23240
|
+
}, React.createElement(Input, null))))));
|
|
23208
23241
|
} // function validateFields(form: WrappedFormUtils<any>) {
|
|
23209
23242
|
// return new Promise<{ err: any, values: any }>(resolve => {
|
|
23210
23243
|
// form.validateFields((err, values) => {
|
|
@@ -23215,7 +23248,7 @@ function AddComparisonDrawer() {
|
|
|
23215
23248
|
|
|
23216
23249
|
/** 发票组件的上下文 */
|
|
23217
23250
|
|
|
23218
|
-
var InvoiceContext =
|
|
23251
|
+
var InvoiceContext = React.createContext(undefined);
|
|
23219
23252
|
|
|
23220
23253
|
var Invoice = /*#__PURE__*/function (_React$PureComponent) {
|
|
23221
23254
|
_inherits(Invoice, _React$PureComponent);
|
|
@@ -23258,9 +23291,9 @@ var Invoice = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
23258
23291
|
/** 获取控制器钩子 */
|
|
23259
23292
|
function render() {
|
|
23260
23293
|
if (this.props.invoiceType === 'digtal') {
|
|
23261
|
-
return
|
|
23294
|
+
return React.createElement(Digtal, _objectSpread2({}, this.props));
|
|
23262
23295
|
} else {
|
|
23263
|
-
return
|
|
23296
|
+
return React.createElement(Main$4, _objectSpread2({}, this.props));
|
|
23264
23297
|
}
|
|
23265
23298
|
}
|
|
23266
23299
|
}]);
|
|
@@ -23301,10 +23334,10 @@ var Main$4 = function Main(props) {
|
|
|
23301
23334
|
React.useEffect(function () {
|
|
23302
23335
|
setKey(key + 1);
|
|
23303
23336
|
}, [controller]);
|
|
23304
|
-
return
|
|
23337
|
+
return React.createElement(InvoiceContext.Provider, {
|
|
23305
23338
|
key: key,
|
|
23306
23339
|
value: controller
|
|
23307
|
-
},
|
|
23340
|
+
}, React.createElement("div", {
|
|
23308
23341
|
className: "kts-invoice-operate",
|
|
23309
23342
|
ref: controller.pipeline( /*#__PURE__*/function () {
|
|
23310
23343
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(s, e) {
|
|
@@ -23326,17 +23359,17 @@ var Main$4 = function Main(props) {
|
|
|
23326
23359
|
return _ref.apply(this, arguments);
|
|
23327
23360
|
};
|
|
23328
23361
|
}())
|
|
23329
|
-
}, props.invoiceHeader ||
|
|
23362
|
+
}, props.invoiceHeader || React.createElement(InvoiceHeader, null)
|
|
23330
23363
|
/** 发票头 */
|
|
23331
|
-
, props.buyer ||
|
|
23364
|
+
, props.buyer || React.createElement(Buyer$1, null)
|
|
23332
23365
|
/** 购买方 */
|
|
23333
|
-
, props.goodsList ||
|
|
23366
|
+
, props.goodsList || React.createElement(GoodsList, null)
|
|
23334
23367
|
/** 货物列表 */
|
|
23335
|
-
, props.seller ||
|
|
23368
|
+
, props.seller || React.createElement(Buyer, null)
|
|
23336
23369
|
/** 销售方 */
|
|
23337
|
-
, props.sign ||
|
|
23370
|
+
, props.sign || React.createElement(Sign, null)
|
|
23338
23371
|
/** 落款 */
|
|
23339
|
-
, props.footExpand),
|
|
23372
|
+
, props.footExpand), React.createElement(ImportBuyerDrawer, null), React.createElement(ImportGoodsDrawer, null), React.createElement(EndowCodeDrawer, null), React.createElement(AddComparisonDrawer, null));
|
|
23340
23373
|
};
|
|
23341
23374
|
/** 数电 */
|
|
23342
23375
|
|
|
@@ -23355,10 +23388,10 @@ var Digtal = function Digtal(props) {
|
|
|
23355
23388
|
React.useEffect(function () {
|
|
23356
23389
|
setKey(key + 1);
|
|
23357
23390
|
}, [controller]);
|
|
23358
|
-
return
|
|
23391
|
+
return React.createElement(InvoiceContext.Provider, {
|
|
23359
23392
|
key: key,
|
|
23360
23393
|
value: controller
|
|
23361
|
-
},
|
|
23394
|
+
}, React.createElement("div", {
|
|
23362
23395
|
className: "kts-invoice-operate-digtal",
|
|
23363
23396
|
ref: controller.pipeline( /*#__PURE__*/function () {
|
|
23364
23397
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(s, e) {
|
|
@@ -23380,17 +23413,17 @@ var Digtal = function Digtal(props) {
|
|
|
23380
23413
|
return _ref2.apply(this, arguments);
|
|
23381
23414
|
};
|
|
23382
23415
|
}())
|
|
23383
|
-
}, props.invoiceHeader ||
|
|
23416
|
+
}, props.invoiceHeader || React.createElement(InvoiceHeaderDigtal, null)
|
|
23384
23417
|
/** 发票头 */
|
|
23385
|
-
,
|
|
23418
|
+
, React.createElement("div", {
|
|
23386
23419
|
className: 'kts-invoice-operate-digtal-cont'
|
|
23387
|
-
}, props.stakeholder ||
|
|
23420
|
+
}, props.stakeholder || React.createElement(Stakeholder$1, null)
|
|
23388
23421
|
/** 干系人 */
|
|
23389
|
-
, props.goodsList ||
|
|
23422
|
+
, props.goodsList || React.createElement(GoodsList$1
|
|
23390
23423
|
/** 货物列表 */
|
|
23391
|
-
, null)), props.sign ||
|
|
23424
|
+
, null)), props.sign || React.createElement(SignDigtal, null)
|
|
23392
23425
|
/** 落款 */
|
|
23393
|
-
),
|
|
23426
|
+
), React.createElement(ImportGoodsDrawer, null), React.createElement(EndowCodeDrawer, null));
|
|
23394
23427
|
};
|
|
23395
23428
|
|
|
23396
23429
|
function TaxClassificationModal(props) {
|
|
@@ -23405,26 +23438,26 @@ function TaxClassificationModal(props) {
|
|
|
23405
23438
|
}, 500);
|
|
23406
23439
|
}
|
|
23407
23440
|
}, [form, props.open]);
|
|
23408
|
-
return
|
|
23441
|
+
return React.createElement(Drawer$1, {
|
|
23409
23442
|
title: "\u5546\u54C1\u548C\u670D\u52A1\u7A0E\u6536\u5206\u7C7B\u7F16\u7801",
|
|
23410
23443
|
placement: "right",
|
|
23411
23444
|
open: props.open,
|
|
23412
23445
|
width: 503,
|
|
23413
23446
|
onClose: props.onCancel
|
|
23414
|
-
},
|
|
23447
|
+
}, React.createElement(Form$1, {
|
|
23415
23448
|
form: form
|
|
23416
|
-
},
|
|
23449
|
+
}, React.createElement(Form$1.Item, {
|
|
23417
23450
|
name: 'search'
|
|
23418
|
-
},
|
|
23451
|
+
}, React.createElement(Input$1, {
|
|
23419
23452
|
placeholder: "\u8BF7\u8F93\u5165\u7A0E\u6536\u5206\u7C7B\u7F16\u7801\u3001\u7A0E\u6536\u5206\u7C7B\u540D\u79F0\u8FDB\u884C\u68C0\u7D22",
|
|
23420
23453
|
onChange: props.onSearch
|
|
23421
|
-
})),
|
|
23454
|
+
})), React.createElement(Form$1.Item, {
|
|
23422
23455
|
name: 'tree'
|
|
23423
|
-
},
|
|
23456
|
+
}, React.createElement(Tree$1, {
|
|
23424
23457
|
onSelect: props.onSelect,
|
|
23425
23458
|
loadData: props.onLoad,
|
|
23426
23459
|
treeData: props.list,
|
|
23427
|
-
switcherIcon:
|
|
23460
|
+
switcherIcon: React.createElement(Icon$1, {
|
|
23428
23461
|
type: "down"
|
|
23429
23462
|
})
|
|
23430
23463
|
}))));
|