kts-component-invoice-operate 3.2.107 → 3.2.108
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.dumi/theme/builtins/API.tsx +66 -66
- package/.editorconfig +16 -16
- package/.fatherrc.ts +4 -4
- package/.prettierignore +7 -7
- package/.prettierrc +11 -11
- package/.umirc.ts +8 -8
- package/README.md +9 -9
- package/dist/index.esm.js +571 -568
- package/dist/index.js +571 -568
- package/docs/index.md +5 -5
- package/docs-dist/static/arrowDown.a1cbf0d8.svg +2 -2
- package/docs-dist/static/arrowUp.4c482054.svg +2 -2
- package/docs-dist/static/fork.5431267d.svg +11 -11
- package/docs-dist/static/plus.44013ce3.svg +11 -11
- package/docs-dist/static/plus.4fd1af30.svg +11 -11
- package/index.html +12 -12
- package/package.json +61 -61
- package/src/Invoice/Invoice-digtal/_test/disabled/index.tsx +38 -38
- package/src/Invoice/Invoice-digtal/_test/easiest/index.tsx +16 -16
- package/src/Invoice/Invoice-digtal/_test/header/index.tsx +84 -84
- package/src/Invoice/Invoice-digtal/_test/importGoods/index.tsx +554 -554
- package/src/Invoice/Invoice-digtal/_test/importStakeholder/index.tsx +17 -17
- package/src/Invoice/Invoice-digtal/_test/lineCredit/index.tsx +20 -20
- package/src/Invoice/Invoice-digtal/_test/prefab/index.tsx +150 -150
- package/src/Invoice/Invoice-digtal/_test/readOnly/index.tsx +42 -42
- package/src/Invoice/Invoice-digtal/_test/stakeholder/index.tsx +12 -12
- package/src/Invoice/Invoice-digtal/_test/typeSelection/index.tsx +29 -29
- package/src/Invoice/Invoice-digtal/index.md +30 -30
- package/src/Invoice/InvoiceController/InvoiceControllerForm/index.ts +95 -95
- package/src/Invoice/InvoiceController/InvoiceControllerState/AutoComplete/index.ts +20 -20
- package/src/Invoice/InvoiceController/InvoiceControllerState/BuyerState/index.tsx +88 -88
- package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/Drag/index.ts +15 -15
- package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/EndowCode/index.tsx +104 -104
- package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/IColumnsReplenish/index.ts +10 -10
- package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/IGood/index.ts +78 -78
- package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/ImportGoods/index.ts +80 -80
- package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/LineAttributeType/index.ts +7 -7
- package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/ProductComparison/index.ts +9 -9
- package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/index.ts +113 -113
- package/src/Invoice/InvoiceController/InvoiceControllerState/Stakeholder/index.ts +13 -13
- package/src/Invoice/InvoiceController/InvoiceControllerState/index.ts +65 -65
- package/src/Invoice/InvoiceController/fns/addGood.ts +11 -11
- package/src/Invoice/InvoiceController/fns/addGoodDiscount.ts +126 -126
- package/src/Invoice/InvoiceController/fns/addGoodDiscountV2.ts +86 -86
- package/src/Invoice/InvoiceController/fns/delGood.ts +41 -41
- package/src/Invoice/InvoiceController/fns/getGoodsSearch.ts +26 -26
- package/src/Invoice/InvoiceController/fns/importGoodsDrawer.ts +79 -79
- package/src/Invoice/InvoiceController/fns/itemBlur.ts +40 -40
- package/src/Invoice/InvoiceController/fns/mergeDetails.ts +198 -198
- package/src/Invoice/InvoiceController/fns/mergeDiscount.ts +35 -34
- package/src/Invoice/InvoiceController/fns/saveEditGood.ts +24 -24
- package/src/Invoice/InvoiceController/fns/setEditGood.ts +16 -16
- package/src/Invoice/InvoiceController/fns/setGoods.ts +10 -10
- package/src/Invoice/InvoiceController/fns/updateInvoiceNo.ts +8 -8
- package/src/Invoice/InvoiceController/index.ts +81 -81
- package/src/Invoice/_test/buyerNameSearch/index.tsx +42 -42
- package/src/Invoice/_test/deduction/index.tsx +935 -935
- package/src/Invoice/_test/draft/index.tsx +40 -40
- package/src/Invoice/_test/easiest/index.tsx +5 -5
- package/src/Invoice/_test/endowCode/index.tsx +1156 -1156
- package/src/Invoice/_test/goodsMenuExpand/index.tsx +32 -32
- package/src/Invoice/_test/importBuyer/index.tsx +74 -74
- package/src/Invoice/_test/importGoods/index.tsx +1197 -1197
- package/src/Invoice/_test/invoiceType/index.tsx +59 -59
- package/src/Invoice/_test/isInvoiceNo/index.tsx +12 -12
- package/src/Invoice/_test/replaceHead/index.tsx +22 -22
- package/src/Invoice/_test/retrieveData/index.tsx +22 -22
- package/src/Invoice/_test/seller/index.tsx +28 -28
- package/src/Invoice/_test/setDataSource/index.tsx +73 -73
- package/src/Invoice/_test/unit/index.tsx +19 -19
- package/src/Invoice/index.less +29 -29
- package/src/Invoice/index.md +53 -53
- package/src/Invoice/index.tsx +167 -167
- package/src/Invoice/tools/calculate/index.ts +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 +687 -687
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/Drag/index.less +20 -20
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/Drag/index.tsx +205 -205
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/ItemCodeInput/index.less +18 -18
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/ItemCodeInput/index.tsx +47 -47
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/ItemNameInput/index.less +17 -17
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/ItemNameInput/index.tsx +88 -88
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/RowEditButton/index.tsx +30 -30
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/RowMenu/hook/_useAddComparison/index.tsx +43 -43
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/RowMenu/hook/useAddDiscount/index.tsx +118 -118
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/RowMenu/hook/useDelItem/index.tsx +41 -41
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/RowMenu/hook/useEndowCode/index.tsx +25 -25
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/RowMenu/index.less +13 -13
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/RowMenu/index.tsx +98 -98
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/RowSaveButton/index.tsx +14 -14
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/TitleText/index.tsx +20 -20
- package/src/Invoice/ui/default/GoodsList/hook/useDeduction/index.tsx +24 -24
- package/src/Invoice/ui/default/GoodsList/hook/useOnRow/index.tsx +39 -39
- package/src/Invoice/ui/default/GoodsList/hook/useRowSelection/index.tsx +114 -114
- package/src/Invoice/ui/default/GoodsList/hook/useWindowClick/index.tsx +23 -23
- package/src/Invoice/ui/default/GoodsList/index.less +179 -179
- package/src/Invoice/ui/default/GoodsList/index.tsx +205 -205
- package/src/Invoice/ui/default/GoodsList/ui/AddRowButton/index.tsx +65 -65
- package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/hooks/useAddDiscountRowButton/index.less +21 -21
- package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/hooks/useAddDiscountRowButton/index.tsx +244 -244
- package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/hooks/useCommodityComparisonButton/index.tsx +75 -75
- package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/hooks/useDelRowButton/index.tsx +69 -69
- package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/hooks/useEndowCodeButton/index.tsx +65 -65
- package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/hooks/useMergeDetails/index.tsx +91 -91
- package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/hooks/useMergeDiscount/index.tsx +36 -36
- package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/hooks/useSalesDiscount/index.tsx +109 -109
- package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/hooks/useSalesGifts/index.tsx +88 -88
- package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/index.tsx +37 -37
- package/src/Invoice/ui/default/GoodsList/ui/DescribeSwitch/index.tsx +36 -36
- package/src/Invoice/ui/default/GoodsList/ui/Search/index.less +10 -10
- package/src/Invoice/ui/default/GoodsList/ui/Search/index.tsx +52 -52
- package/src/Invoice/ui/default/GoodsList/ui/Statistics/index.less +18 -18
- package/src/Invoice/ui/default/GoodsList/ui/Statistics/index.tsx +113 -113
- package/src/Invoice/ui/default/GoodsList/ui/TableRow/index.less +28 -28
- package/src/Invoice/ui/default/GoodsList/ui/TableRow/index.tsx +57 -57
- package/src/Invoice/ui/default/GoodsList/ui/TableVirtual/index.less +38 -38
- package/src/Invoice/ui/default/GoodsList/ui/TableVirtual/index.tsx +108 -108
- package/src/Invoice/ui/default/GoodsList/ui/TableVirtual.o/index.less +44 -44
- package/src/Invoice/ui/default/GoodsList/ui/TableVirtual.o/index.tsx +96 -96
- package/src/Invoice/ui/default/GoodsList/ui/TaxIncludedSwitch/index.tsx +30 -30
- package/src/Invoice/ui/default/ImportBuyerDrawer/index.tsx +75 -75
- package/src/Invoice/ui/default/ImportGoodsDrawer/index.tsx +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 +650 -650
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/svg/plus.svg +11 -11
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/Drag/index.less +20 -20
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/Drag/index.tsx +205 -205
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/ItemNameInput/index.less +9 -9
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/ItemNameInput/index.tsx +77 -77
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowEditButton/index.tsx +30 -30
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowMenu/hook/_useAddComparison/index.tsx +43 -43
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowMenu/hook/useAddDiscount/index.tsx +76 -76
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowMenu/hook/useDelItem/index.tsx +41 -41
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowMenu/hook/useEndowCode/index.tsx +34 -34
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowMenu/index.less +13 -13
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowMenu/index.tsx +98 -98
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/RowSaveButton/index.tsx +14 -14
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/TitleText/index.tsx +20 -20
- package/src/Invoice/ui/digtal/GoodsList/hook/useOnRow/index.tsx +39 -39
- package/src/Invoice/ui/digtal/GoodsList/hook/useRowSelection/index.tsx +121 -121
- package/src/Invoice/ui/digtal/GoodsList/hook/useWindowClick/index.tsx +23 -23
- package/src/Invoice/ui/digtal/GoodsList/index.less +56 -56
- package/src/Invoice/ui/digtal/GoodsList/index.tsx +180 -180
- package/src/Invoice/ui/digtal/GoodsList/ui/AddRowButton/index.tsx +65 -65
- package/src/Invoice/ui/digtal/GoodsList/ui/BulkMenu/hooks/useAddDiscountRowButton/index.tsx +339 -339
- package/src/Invoice/ui/digtal/GoodsList/ui/BulkMenu/hooks/useAddDiscountRowButton/svg/add.svg +11 -11
- package/src/Invoice/ui/digtal/GoodsList/ui/BulkMenu/hooks/useCommodityComparisonButton/index.tsx +75 -75
- package/src/Invoice/ui/digtal/GoodsList/ui/BulkMenu/hooks/useDelRowButton/index.tsx +50 -50
- package/src/Invoice/ui/digtal/GoodsList/ui/BulkMenu/hooks/useEmptyRefill/index.tsx +35 -35
- package/src/Invoice/ui/digtal/GoodsList/ui/BulkMenu/hooks/useEndowCodeButton/index.tsx +82 -82
- package/src/Invoice/ui/digtal/GoodsList/ui/BulkMenu/hooks/useReselectInvoiceType/index.tsx +57 -57
- package/src/Invoice/ui/digtal/GoodsList/ui/DescribeSwitch/index.tsx +36 -36
- package/src/Invoice/ui/digtal/GoodsList/ui/Search/index.less +11 -11
- package/src/Invoice/ui/digtal/GoodsList/ui/Search/index.tsx +50 -50
- package/src/Invoice/ui/digtal/GoodsList/ui/Statistics/index.less +53 -53
- package/src/Invoice/ui/digtal/GoodsList/ui/Statistics/index.tsx +99 -99
- package/src/Invoice/ui/digtal/GoodsList/ui/Statistics/svg/fork.svg +11 -11
- package/src/Invoice/ui/digtal/GoodsList/ui/TableRow/index.less +28 -28
- package/src/Invoice/ui/digtal/GoodsList/ui/TableRow/index.tsx +53 -53
- package/src/Invoice/ui/digtal/GoodsList/ui/TableVirtual/index.less +38 -38
- package/src/Invoice/ui/digtal/GoodsList/ui/TableVirtual/index.tsx +108 -108
- package/src/Invoice/ui/digtal/GoodsList/ui/TableVirtual.o/index.less +44 -44
- package/src/Invoice/ui/digtal/GoodsList/ui/TableVirtual.o/index.tsx +96 -96
- package/src/Invoice/ui/digtal/GoodsList/ui/TaxIncludedSwitch/index.tsx +30 -30
- package/src/Invoice/ui/digtal/InvoiceHeader/index.less +57 -57
- package/src/Invoice/ui/digtal/InvoiceHeader/index.tsx +77 -77
- package/src/Invoice/ui/digtal/Sign/index.less +48 -48
- package/src/Invoice/ui/digtal/Sign/index.tsx +99 -99
- package/src/Invoice/ui/digtal/Stakeholder/index.less +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 +74 -74
- package/src/index.ts +12 -12
- package/tsconfig.json +31 -31
- package/typings.d.ts +3 -3
- package/yarn.e.lock +14331 -14331
package/dist/index.esm.js
CHANGED
|
@@ -2341,7 +2341,12 @@ function _mergeDiscount() {
|
|
|
2341
2341
|
sum.priceIncludeTax = format15(chain$1(bignumber(sum.lineAmountIncludeTax)).divide(bignumber(sum.quantity)).done().toNumber(), calculatingDigits) || 0;
|
|
2342
2342
|
}
|
|
2343
2343
|
|
|
2344
|
-
sum.lineAmountIncludeTax === 0
|
|
2344
|
+
if (sum.lineAmountIncludeTax === 0) {
|
|
2345
|
+
goodsList.splice(i, 2);
|
|
2346
|
+
i--;
|
|
2347
|
+
} else {
|
|
2348
|
+
goodsList.splice(i, 2, sum);
|
|
2349
|
+
}
|
|
2345
2350
|
}
|
|
2346
2351
|
}
|
|
2347
2352
|
|
|
@@ -9595,7 +9600,7 @@ var InvoiceHeader = decorator(Form.create())(function (props) {
|
|
|
9595
9600
|
render: function render(form) {
|
|
9596
9601
|
return form.getFieldDecorator('code', {
|
|
9597
9602
|
initialValue: props.defaultCode
|
|
9598
|
-
})(
|
|
9603
|
+
})(React.createElement(FormSpanString, null));
|
|
9599
9604
|
}
|
|
9600
9605
|
});
|
|
9601
9606
|
}
|
|
@@ -9608,7 +9613,7 @@ var InvoiceHeader = decorator(Form.create())(function (props) {
|
|
|
9608
9613
|
render: function render(form) {
|
|
9609
9614
|
return form.getFieldDecorator('no', {
|
|
9610
9615
|
initialValue: props.defaultNo
|
|
9611
|
-
})(
|
|
9616
|
+
})(React.createElement(FormSpanString, null));
|
|
9612
9617
|
}
|
|
9613
9618
|
});
|
|
9614
9619
|
}
|
|
@@ -9619,7 +9624,7 @@ var InvoiceHeader = decorator(Form.create())(function (props) {
|
|
|
9619
9624
|
render: function render(form) {
|
|
9620
9625
|
return form.getFieldDecorator('invoicingDate', {
|
|
9621
9626
|
initialValue: props.defaultInvoicingDate
|
|
9622
|
-
})(
|
|
9627
|
+
})(React.createElement(FormSpanString, null));
|
|
9623
9628
|
}
|
|
9624
9629
|
});
|
|
9625
9630
|
}
|
|
@@ -9630,7 +9635,7 @@ var InvoiceHeader = decorator(Form.create())(function (props) {
|
|
|
9630
9635
|
render: function render(form) {
|
|
9631
9636
|
return form.getFieldDecorator('defaultValidationCode', {
|
|
9632
9637
|
initialValue: props.defaultValidationCode
|
|
9633
|
-
})(
|
|
9638
|
+
})(React.createElement(FormSpanString, null));
|
|
9634
9639
|
}
|
|
9635
9640
|
});
|
|
9636
9641
|
}
|
|
@@ -9650,21 +9655,21 @@ var InvoiceHeader = decorator(Form.create())(function (props) {
|
|
|
9650
9655
|
React.useEffect(function () {
|
|
9651
9656
|
setTypeIndex(props.typeOptionIndex || 0);
|
|
9652
9657
|
}, [props.typeOption]);
|
|
9653
|
-
return
|
|
9658
|
+
return React.createElement("div", {
|
|
9654
9659
|
className: "kts-invoice-operate-invoice-header"
|
|
9655
|
-
},
|
|
9660
|
+
}, React.createElement("div", {
|
|
9656
9661
|
className: "invoice-header-title"
|
|
9657
|
-
}, title),
|
|
9662
|
+
}, title), React.createElement("div", {
|
|
9658
9663
|
className: "invoice-header-no"
|
|
9659
|
-
}, isInvoiceNo ?
|
|
9664
|
+
}, isInvoiceNo ? React.createElement("div", null, React.createElement("label", null, "\u53D1\u7968\u5355\u636E\u7F16\u53F7 :"), getFieldDecorator('id', {
|
|
9660
9665
|
initialValue: props.defaultId
|
|
9661
|
-
})(
|
|
9666
|
+
})(React.createElement(Input, {
|
|
9662
9667
|
disabled: readOnlyInvoiceNo,
|
|
9663
9668
|
style: {
|
|
9664
9669
|
width: 230
|
|
9665
9670
|
},
|
|
9666
9671
|
size: "small",
|
|
9667
|
-
suffix: controller.updateInvoiceNo &&
|
|
9672
|
+
suffix: controller.updateInvoiceNo && React.createElement(Icon$1, {
|
|
9668
9673
|
style: {
|
|
9669
9674
|
cursor: 'pointer'
|
|
9670
9675
|
},
|
|
@@ -9708,15 +9713,15 @@ var InvoiceHeader = decorator(Form.create())(function (props) {
|
|
|
9708
9713
|
return onClick;
|
|
9709
9714
|
}()
|
|
9710
9715
|
})
|
|
9711
|
-
}))) :
|
|
9716
|
+
}))) : React.createElement("div", {
|
|
9712
9717
|
style: {
|
|
9713
9718
|
height: 20
|
|
9714
9719
|
}
|
|
9715
|
-
}), tag &&
|
|
9720
|
+
}), tag && React.createElement(Tag$1, null, tag), React.createElement("div", {
|
|
9716
9721
|
className: "invoice-header-type"
|
|
9717
9722
|
}, props.typeOption ? getFieldDecorator('type', {
|
|
9718
9723
|
initialValue: typeIndex
|
|
9719
|
-
})(
|
|
9724
|
+
})(React.createElement(Select, {
|
|
9720
9725
|
size: "small",
|
|
9721
9726
|
style: {
|
|
9722
9727
|
width: 230
|
|
@@ -9725,20 +9730,20 @@ var InvoiceHeader = decorator(Form.create())(function (props) {
|
|
|
9725
9730
|
setTypeIndex(e);
|
|
9726
9731
|
}
|
|
9727
9732
|
}, props.typeOption.map(function (e, i) {
|
|
9728
|
-
return
|
|
9733
|
+
return React.createElement(Select.Option, {
|
|
9729
9734
|
key: i,
|
|
9730
9735
|
value: i
|
|
9731
9736
|
}, e.title);
|
|
9732
|
-
}))) : props.renderExpand && props.renderExpand(props.form))), props.typeOption &&
|
|
9737
|
+
}))) : props.renderExpand && props.renderExpand(props.form))), props.typeOption && React.createElement("div", {
|
|
9733
9738
|
style: {
|
|
9734
9739
|
marginTop: 10
|
|
9735
9740
|
}
|
|
9736
|
-
}, props.renderExpand && props.renderExpand(props.form)),
|
|
9741
|
+
}, props.renderExpand && props.renderExpand(props.form)), React.createElement("div", {
|
|
9737
9742
|
className: "invoice-header-property"
|
|
9738
|
-
}, _toConsumableArray(props.fieldExpand || []).map(function (e) {}),
|
|
9743
|
+
}, _toConsumableArray(props.fieldExpand || []).map(function (e) {}), React.createElement("ul", {
|
|
9739
9744
|
className: 'invoice-header-property-fieldExpand'
|
|
9740
9745
|
}, fieldExpand.map(function (e) {
|
|
9741
|
-
return
|
|
9746
|
+
return React.createElement("li", null, React.createElement("label", null, e.label), e.render(form));
|
|
9742
9747
|
}))));
|
|
9743
9748
|
});
|
|
9744
9749
|
|
|
@@ -9757,7 +9762,7 @@ var FormSpanString = /*#__PURE__*/function (_React$Component) {
|
|
|
9757
9762
|
key: "render",
|
|
9758
9763
|
value: function render() {
|
|
9759
9764
|
// return <span>{this.props.value}</span>;
|
|
9760
|
-
return
|
|
9765
|
+
return React.createElement(Input, {
|
|
9761
9766
|
size: "small",
|
|
9762
9767
|
disabled: true,
|
|
9763
9768
|
value: this.props.value
|
|
@@ -9868,12 +9873,12 @@ function TableVirtual (props) {
|
|
|
9868
9873
|
if (!cont) return;
|
|
9869
9874
|
cont.scrollTop = 0;
|
|
9870
9875
|
}, [(_props$dataSource2 = props.dataSource) === null || _props$dataSource2 === void 0 ? void 0 : _props$dataSource2.length]);
|
|
9871
|
-
return
|
|
9876
|
+
return React.createElement("span", {
|
|
9872
9877
|
className: "kts-invoice-operate-goods-table-virtual",
|
|
9873
9878
|
ref: function ref(e) {
|
|
9874
9879
|
setSelf(e);
|
|
9875
9880
|
}
|
|
9876
|
-
},
|
|
9881
|
+
}, React.createElement(TableManual, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
9877
9882
|
dataSource: dataSource,
|
|
9878
9883
|
// 新版本Table会有输入框无法连续输入的问题,先兼容老版本
|
|
9879
9884
|
tableComponent: Table
|
|
@@ -9965,59 +9970,59 @@ var Statistics = (function () {
|
|
|
9965
9970
|
});
|
|
9966
9971
|
return sum.done().toNumber();
|
|
9967
9972
|
}, []);
|
|
9968
|
-
return
|
|
9973
|
+
return React.createElement("div", {
|
|
9969
9974
|
className: "kts-invoice-operate-goods-list-statistics"
|
|
9970
|
-
},
|
|
9975
|
+
}, React.createElement("div", {
|
|
9971
9976
|
className: "kts-invoice-operate-goods-list-statistics-row"
|
|
9972
|
-
},
|
|
9977
|
+
}, React.createElement("div", {
|
|
9973
9978
|
style: {
|
|
9974
9979
|
width: 45.92
|
|
9975
9980
|
}
|
|
9976
|
-
}),
|
|
9981
|
+
}), React.createElement("div", {
|
|
9977
9982
|
style: {
|
|
9978
9983
|
flex: 1
|
|
9979
9984
|
}
|
|
9980
|
-
},
|
|
9985
|
+
}, React.createElement("label", null, "\u5408\u8BA1")), React.createElement("div", {
|
|
9981
9986
|
style: {
|
|
9982
9987
|
width: 119,
|
|
9983
9988
|
textAlign: 'right',
|
|
9984
9989
|
border: 'none'
|
|
9985
9990
|
}
|
|
9986
|
-
},
|
|
9991
|
+
}, React.createElement("label", null, parseFloat(isTaxIncluded ? lineAmountIncludeTax : lineAmountExcludeTax).toFixed(2))), React.createElement("div", {
|
|
9987
9992
|
style: {
|
|
9988
9993
|
width: 70,
|
|
9989
9994
|
border: 'none'
|
|
9990
9995
|
}
|
|
9991
|
-
}),
|
|
9996
|
+
}), React.createElement("div", {
|
|
9992
9997
|
style: {
|
|
9993
9998
|
width: 119,
|
|
9994
9999
|
textAlign: 'right',
|
|
9995
10000
|
border: 'none'
|
|
9996
10001
|
}
|
|
9997
|
-
},
|
|
10002
|
+
}, React.createElement("label", null, parseFloat(taxAmount).toFixed(2))), React.createElement("div", {
|
|
9998
10003
|
style: {
|
|
9999
10004
|
width: 111,
|
|
10000
10005
|
border: 'none'
|
|
10001
10006
|
}
|
|
10002
|
-
})),
|
|
10007
|
+
})), React.createElement("div", {
|
|
10003
10008
|
className: "kts-invoice-operate-goods-list-statistics-row"
|
|
10004
|
-
},
|
|
10009
|
+
}, React.createElement("div", {
|
|
10005
10010
|
style: {
|
|
10006
10011
|
width: 45.92
|
|
10007
10012
|
}
|
|
10008
|
-
}),
|
|
10013
|
+
}), React.createElement("div", {
|
|
10009
10014
|
style: {
|
|
10010
10015
|
flex: 5,
|
|
10011
10016
|
border: 'none'
|
|
10012
10017
|
}
|
|
10013
|
-
},
|
|
10018
|
+
}, React.createElement("label", null, "\u4EF7\u7A0E\u5408\u8BA1\uFF08\u5927\u5199\uFF09"), React.createElement("label", null, nzhcn.toMoney(lineAmountIncludeTax, {
|
|
10014
10019
|
outSymbol: false
|
|
10015
|
-
}))),
|
|
10020
|
+
}))), React.createElement("div", {
|
|
10016
10021
|
style: {
|
|
10017
10022
|
flex: 5,
|
|
10018
10023
|
border: 'none'
|
|
10019
10024
|
}
|
|
10020
|
-
},
|
|
10025
|
+
}, React.createElement("label", null, "\uFF08\u5C0F\u5199\uFF09 ", parseFloat(lineAmountIncludeTax).toFixed(2)))));
|
|
10021
10026
|
});
|
|
10022
10027
|
|
|
10023
10028
|
var AddRowButton = (function () {
|
|
@@ -10072,10 +10077,10 @@ var AddRowButton = (function () {
|
|
|
10072
10077
|
}
|
|
10073
10078
|
}, _callee);
|
|
10074
10079
|
})), [controller, rootElement]);
|
|
10075
|
-
if (isAddRow === false) return
|
|
10076
|
-
if (model === 'prefab') return
|
|
10077
|
-
if (model === 'readOnly') return
|
|
10078
|
-
return
|
|
10080
|
+
if (isAddRow === false) return React.createElement(React.Fragment, null);
|
|
10081
|
+
if (model === 'prefab') return React.createElement(React.Fragment, null);
|
|
10082
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
10083
|
+
return React.createElement(Button, {
|
|
10079
10084
|
onClick: onClick,
|
|
10080
10085
|
disabled: disabled
|
|
10081
10086
|
}, "\u6DFB\u52A0\u884C");
|
|
@@ -10226,11 +10231,11 @@ var TaxIncludedSwitch = (function () {
|
|
|
10226
10231
|
};
|
|
10227
10232
|
}())();
|
|
10228
10233
|
}, []);
|
|
10229
|
-
return
|
|
10234
|
+
return React.createElement("span", null, React.createElement("label", {
|
|
10230
10235
|
style: {
|
|
10231
10236
|
marginRight: 2
|
|
10232
10237
|
}
|
|
10233
|
-
}, "\u542B\u7A0E:"),
|
|
10238
|
+
}, "\u542B\u7A0E:"), React.createElement(Switch, {
|
|
10234
10239
|
disabled: isSwitchTax === false,
|
|
10235
10240
|
checked: isTaxIncluded,
|
|
10236
10241
|
defaultChecked: true,
|
|
@@ -10268,19 +10273,19 @@ var DescribeSwitch = (function () {
|
|
|
10268
10273
|
};
|
|
10269
10274
|
}());
|
|
10270
10275
|
}, []);
|
|
10271
|
-
if (!productComparison.onComply) return
|
|
10272
|
-
return
|
|
10276
|
+
if (!productComparison.onComply) return React.createElement(React.Fragment, null);
|
|
10277
|
+
return React.createElement("span", null, React.createElement("label", {
|
|
10273
10278
|
style: {
|
|
10274
10279
|
marginRight: 2
|
|
10275
10280
|
}
|
|
10276
|
-
},
|
|
10281
|
+
}, React.createElement(Tooltip, {
|
|
10277
10282
|
title: "\u84DD\u8272\u4EE3\u8868\u6211\u65B9\u5546\u54C1\u63CF\u8FF0\uFF0C\u9ED1\u8272\u4EE3\u8868\u5BF9\u65B9\u7684\u5546\u54C1\u63CF\u8FF0\u3002"
|
|
10278
|
-
},
|
|
10283
|
+
}, React.createElement(Icon$1, {
|
|
10279
10284
|
style: {
|
|
10280
10285
|
marginRight: 3
|
|
10281
10286
|
},
|
|
10282
10287
|
type: "info-circle"
|
|
10283
|
-
})), "\u4F7F\u7528\u54EA\u65B9\u5546\u54C1\u63CF\u8FF0:"),
|
|
10288
|
+
})), "\u4F7F\u7528\u54EA\u65B9\u5546\u54C1\u63CF\u8FF0:"), React.createElement(Switch$1, {
|
|
10284
10289
|
checked: isMyShow,
|
|
10285
10290
|
checkedChildren: "\u6211\u65B9",
|
|
10286
10291
|
unCheckedChildren: "\u5BF9\u65B9",
|
|
@@ -10380,13 +10385,13 @@ function Search() {
|
|
|
10380
10385
|
};
|
|
10381
10386
|
}());
|
|
10382
10387
|
}, [value, controller]);
|
|
10383
|
-
return
|
|
10388
|
+
return React.createElement(Input, {
|
|
10384
10389
|
size: "small",
|
|
10385
10390
|
readOnly: readOnly,
|
|
10386
10391
|
value: value,
|
|
10387
10392
|
className: "kts-invoice-operate-goods-list-search",
|
|
10388
10393
|
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"),
|
|
10389
|
-
prefix:
|
|
10394
|
+
prefix: React.createElement(Icon$1, {
|
|
10390
10395
|
component: SvgMagnifier,
|
|
10391
10396
|
style: {
|
|
10392
10397
|
color: "#b8b8b8"
|
|
@@ -10438,13 +10443,13 @@ function TableRow(props) {
|
|
|
10438
10443
|
return undefined;
|
|
10439
10444
|
}
|
|
10440
10445
|
}, [good, goodsMap]);
|
|
10441
|
-
return rowKey === current && current ?
|
|
10446
|
+
return rowKey === current && current ? React.createElement("tr", {
|
|
10442
10447
|
style: {
|
|
10443
10448
|
height: 32.67,
|
|
10444
10449
|
borderBottom: '1px solid #E6E6E6',
|
|
10445
10450
|
position: 'relative'
|
|
10446
10451
|
}
|
|
10447
|
-
},
|
|
10452
|
+
}, React.createElement("div", {
|
|
10448
10453
|
style: {
|
|
10449
10454
|
height: 1,
|
|
10450
10455
|
width: '100%',
|
|
@@ -10452,7 +10457,7 @@ function TableRow(props) {
|
|
|
10452
10457
|
position: 'absolute',
|
|
10453
10458
|
bottom: 0
|
|
10454
10459
|
}
|
|
10455
|
-
})) :
|
|
10460
|
+
})) : React.createElement("tr", _objectSpread2(_objectSpread2({}, props), {}, {
|
|
10456
10461
|
className: classNames(props.className, discount, rowKey === container && current ? 'kts-invoice-operate-goods-list-itemName-drag-container-' + site : undefined)
|
|
10457
10462
|
}));
|
|
10458
10463
|
}
|
|
@@ -10860,7 +10865,7 @@ var RowMenu = (function (props) {
|
|
|
10860
10865
|
// addComparison && arr.push(addComparison); // 添加商品对照
|
|
10861
10866
|
|
|
10862
10867
|
if (!goodsMenuExpand || goodsMenuExpand.length === 0) return arr;
|
|
10863
|
-
arr.unshift(
|
|
10868
|
+
arr.unshift(React.createElement(Menu.Divider, {
|
|
10864
10869
|
key: "divider-1"
|
|
10865
10870
|
}));
|
|
10866
10871
|
|
|
@@ -10876,17 +10881,17 @@ var RowMenu = (function (props) {
|
|
|
10876
10881
|
return undefined;
|
|
10877
10882
|
}
|
|
10878
10883
|
|
|
10879
|
-
return
|
|
10880
|
-
return
|
|
10884
|
+
return React.createElement(Menu, null, itemList.slice(2).map(function (e) {
|
|
10885
|
+
return React.createElement(Menu.Item, {
|
|
10881
10886
|
key: e.key,
|
|
10882
10887
|
onClick: e.onClick
|
|
10883
|
-
},
|
|
10888
|
+
}, React.createElement(Text$1, {
|
|
10884
10889
|
strong: true
|
|
10885
10890
|
}, e.title));
|
|
10886
10891
|
}));
|
|
10887
10892
|
}, [itemList]);
|
|
10888
10893
|
var buttonList = React.useMemo(function () {
|
|
10889
|
-
return
|
|
10894
|
+
return React.createElement("div", {
|
|
10890
10895
|
style: {
|
|
10891
10896
|
flex: 1,
|
|
10892
10897
|
textAlign: 'left',
|
|
@@ -10894,7 +10899,7 @@ var RowMenu = (function (props) {
|
|
|
10894
10899
|
gap: 10
|
|
10895
10900
|
}
|
|
10896
10901
|
}, itemList.slice(0, 2).map(function (e) {
|
|
10897
|
-
return
|
|
10902
|
+
return React.createElement(Button, {
|
|
10898
10903
|
key: e.key,
|
|
10899
10904
|
type: 'link',
|
|
10900
10905
|
onClick: e.onClick,
|
|
@@ -10906,21 +10911,21 @@ var RowMenu = (function (props) {
|
|
|
10906
10911
|
}, [itemList]);
|
|
10907
10912
|
|
|
10908
10913
|
if (itemList.length === 0) {
|
|
10909
|
-
return
|
|
10914
|
+
return React.createElement(React.Fragment, null);
|
|
10910
10915
|
}
|
|
10911
10916
|
|
|
10912
|
-
return
|
|
10917
|
+
return React.createElement("span", {
|
|
10913
10918
|
style: {
|
|
10914
10919
|
padding: '0 0 0 10px',
|
|
10915
10920
|
display: 'flex'
|
|
10916
10921
|
}
|
|
10917
|
-
}, buttonList, overlay &&
|
|
10922
|
+
}, buttonList, overlay && React.createElement(Dropdown, {
|
|
10918
10923
|
overlay: overlay,
|
|
10919
10924
|
trigger: ['click']
|
|
10920
|
-
},
|
|
10925
|
+
}, React.createElement(Button, {
|
|
10921
10926
|
className: "kts-invoice-operate-goods-list-columns-row-menu ant-btn-icon-only",
|
|
10922
10927
|
type: "link"
|
|
10923
|
-
},
|
|
10928
|
+
}, React.createElement(Icon$1, {
|
|
10924
10929
|
component: SvgSpot
|
|
10925
10930
|
}))));
|
|
10926
10931
|
});
|
|
@@ -10934,9 +10939,9 @@ var TitleText = (function (props) {
|
|
|
10934
10939
|
return !!e.required;
|
|
10935
10940
|
})) || props.required;
|
|
10936
10941
|
}, [rules, props.required]);
|
|
10937
|
-
return
|
|
10942
|
+
return React.createElement(React.Fragment, null, required ? React.createElement(Text$2, {
|
|
10938
10943
|
type: "danger"
|
|
10939
|
-
}, "*") :
|
|
10944
|
+
}, "*") : React.createElement(React.Fragment, null), children);
|
|
10940
10945
|
});
|
|
10941
10946
|
|
|
10942
10947
|
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";
|
|
@@ -11126,14 +11131,14 @@ function ItemNameInput(props) {
|
|
|
11126
11131
|
React.useEffect(function () {
|
|
11127
11132
|
setValue(props.value);
|
|
11128
11133
|
}, [props.value]);
|
|
11129
|
-
return
|
|
11134
|
+
return React.createElement("div", {
|
|
11130
11135
|
className: 'kts-invoice-operate-goods-list-itemName-input'
|
|
11131
|
-
}, props.shorthand &&
|
|
11136
|
+
}, props.shorthand && React.createElement("span", {
|
|
11132
11137
|
style: {
|
|
11133
11138
|
alignSelf: 'center',
|
|
11134
11139
|
fontSize: 12
|
|
11135
11140
|
}
|
|
11136
|
-
}, "*", props.shorthand, "*"),
|
|
11141
|
+
}, "*", props.shorthand, "*"), React.createElement(AutoComplete$1, {
|
|
11137
11142
|
onSearch: onSearch,
|
|
11138
11143
|
value: props.value,
|
|
11139
11144
|
options: options.map(function (e) {
|
|
@@ -11143,7 +11148,7 @@ function ItemNameInput(props) {
|
|
|
11143
11148
|
};
|
|
11144
11149
|
}),
|
|
11145
11150
|
onSelect: onChangeAutoComplete
|
|
11146
|
-
},
|
|
11151
|
+
}, React.createElement(Input, {
|
|
11147
11152
|
style: {
|
|
11148
11153
|
height: '100%',
|
|
11149
11154
|
border: 'none'
|
|
@@ -11252,9 +11257,9 @@ function ItemCodeInput(props) {
|
|
|
11252
11257
|
return _ref2.apply(this, arguments);
|
|
11253
11258
|
};
|
|
11254
11259
|
}(), [options, controller]);
|
|
11255
|
-
return
|
|
11260
|
+
return React.createElement("div", {
|
|
11256
11261
|
className: 'kts-invoice-operate-goods-list-itemCode-input'
|
|
11257
|
-
},
|
|
11262
|
+
}, React.createElement(AutoComplete$1, {
|
|
11258
11263
|
onSearch: onSearch,
|
|
11259
11264
|
value: props.value,
|
|
11260
11265
|
options: options.map(function (e) {
|
|
@@ -11263,7 +11268,7 @@ function ItemCodeInput(props) {
|
|
|
11263
11268
|
};
|
|
11264
11269
|
}),
|
|
11265
11270
|
onSelect: onChangeAutoComplete
|
|
11266
|
-
},
|
|
11271
|
+
}, React.createElement(Input, {
|
|
11267
11272
|
style: {
|
|
11268
11273
|
height: '100%',
|
|
11269
11274
|
border: 'none'
|
|
@@ -12444,7 +12449,7 @@ function Drag$1(props) {
|
|
|
12444
12449
|
var currentGood = controller.state.goodsListState.goodsList.filter(function (e) {
|
|
12445
12450
|
return e.$index === record.$index;
|
|
12446
12451
|
})[0];
|
|
12447
|
-
mounting(
|
|
12452
|
+
mounting(React.createElement(DragDiv, _objectSpread2({}, currentGood)));
|
|
12448
12453
|
rowList.forEach(function (e) {
|
|
12449
12454
|
e.addEventListener('mousemove', onMousemove);
|
|
12450
12455
|
});
|
|
@@ -12605,7 +12610,7 @@ function Drag$1(props) {
|
|
|
12605
12610
|
|
|
12606
12611
|
|
|
12607
12612
|
function insert() {
|
|
12608
|
-
mounting(
|
|
12613
|
+
mounting(React.createElement(React.Fragment, null));
|
|
12609
12614
|
controller.run( /*#__PURE__*/function () {
|
|
12610
12615
|
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(s) {
|
|
12611
12616
|
var _s$goodsListState$dra, container, current, site, goodsList, goodsMap, _currentGood, currentIndex, moveGoods;
|
|
@@ -12684,7 +12689,7 @@ function Drag$1(props) {
|
|
|
12684
12689
|
}
|
|
12685
12690
|
}, [controller, record, disabled]);
|
|
12686
12691
|
var renderButton = React.useMemo(function () {
|
|
12687
|
-
return
|
|
12692
|
+
return React.createElement(Button, {
|
|
12688
12693
|
type: 'link',
|
|
12689
12694
|
style: {
|
|
12690
12695
|
padding: 0
|
|
@@ -12695,13 +12700,13 @@ function Drag$1(props) {
|
|
|
12695
12700
|
},
|
|
12696
12701
|
className: "kts-invoice-operate-goods-list-itemName-drag",
|
|
12697
12702
|
onMouseOver: controller.saveEditGood
|
|
12698
|
-
},
|
|
12703
|
+
}, React.createElement(Icon, {
|
|
12699
12704
|
component: SvgI001
|
|
12700
12705
|
}));
|
|
12701
12706
|
}, [onMouseDown, controller]);
|
|
12702
12707
|
|
|
12703
12708
|
if (disabled) {
|
|
12704
|
-
return
|
|
12709
|
+
return React.createElement(Popover, {
|
|
12705
12710
|
content: '您还有未编辑完成的商品',
|
|
12706
12711
|
trigger: 'focus'
|
|
12707
12712
|
}, renderButton);
|
|
@@ -12741,13 +12746,13 @@ function DragDiv(props) {
|
|
|
12741
12746
|
window.removeEventListener('mousemove', onMousemove);
|
|
12742
12747
|
};
|
|
12743
12748
|
});
|
|
12744
|
-
return
|
|
12749
|
+
return React.createElement("div", {
|
|
12745
12750
|
className: "kts-invoice-operate-goods-list-itemName-drag-div",
|
|
12746
12751
|
style: {
|
|
12747
12752
|
top: y,
|
|
12748
12753
|
left: x
|
|
12749
12754
|
}
|
|
12750
|
-
},
|
|
12755
|
+
}, React.createElement("span", null, props.itemName), React.createElement("span", null, props.itemModelName), React.createElement("span", null, props.unit));
|
|
12751
12756
|
}
|
|
12752
12757
|
|
|
12753
12758
|
var useColumns = (function (form) {
|
|
@@ -12868,7 +12873,7 @@ var useColumns = (function (form) {
|
|
|
12868
12873
|
width: 40,
|
|
12869
12874
|
align: 'center',
|
|
12870
12875
|
render: function render(_, record) {
|
|
12871
|
-
return
|
|
12876
|
+
return React.createElement(Drag$1, {
|
|
12872
12877
|
record: record
|
|
12873
12878
|
});
|
|
12874
12879
|
}
|
|
@@ -12878,7 +12883,7 @@ var useColumns = (function (form) {
|
|
|
12878
12883
|
dataIndex: 'serialNo',
|
|
12879
12884
|
width: 50,
|
|
12880
12885
|
render: function render(e) {
|
|
12881
|
-
return
|
|
12886
|
+
return React.createElement("span", {
|
|
12882
12887
|
style: {
|
|
12883
12888
|
padding: '0 10px'
|
|
12884
12889
|
}
|
|
@@ -12890,13 +12895,13 @@ var useColumns = (function (form) {
|
|
|
12890
12895
|
width: 119,
|
|
12891
12896
|
render: function render(_, record) {
|
|
12892
12897
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
12893
|
-
return
|
|
12898
|
+
return React.createElement(Form.Item, null, getFieldDecorator('itemCode', {
|
|
12894
12899
|
initialValue: editGood.itemCode,
|
|
12895
12900
|
rules: [].concat(_toConsumableArray(getReplenishRules('itemCode')), [{
|
|
12896
12901
|
pattern: /^.{1,19}$/,
|
|
12897
12902
|
message: '商品编码长度不能超过19位'
|
|
12898
12903
|
}])
|
|
12899
|
-
})(
|
|
12904
|
+
})(React.createElement(ItemCodeInput, {
|
|
12900
12905
|
onChange: function () {
|
|
12901
12906
|
var _onChange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
12902
12907
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
@@ -12922,7 +12927,7 @@ var useColumns = (function (form) {
|
|
|
12922
12927
|
}()
|
|
12923
12928
|
})));
|
|
12924
12929
|
} else {
|
|
12925
|
-
return
|
|
12930
|
+
return React.createElement("span", {
|
|
12926
12931
|
style: {
|
|
12927
12932
|
padding: '0 10px'
|
|
12928
12933
|
}
|
|
@@ -12930,13 +12935,13 @@ var useColumns = (function (form) {
|
|
|
12930
12935
|
}
|
|
12931
12936
|
}
|
|
12932
12937
|
}, {
|
|
12933
|
-
title:
|
|
12938
|
+
title: React.createElement(TitleText, {
|
|
12934
12939
|
required: true
|
|
12935
12940
|
}, "\u9879\u76EE\u540D\u79F0"),
|
|
12936
12941
|
key: 'itemName',
|
|
12937
12942
|
render: function render(_, record) {
|
|
12938
12943
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
12939
|
-
return
|
|
12944
|
+
return React.createElement(Form.Item, null, React.createElement("div", {
|
|
12940
12945
|
style: {
|
|
12941
12946
|
display: 'flex'
|
|
12942
12947
|
}
|
|
@@ -12983,17 +12988,17 @@ var useColumns = (function (form) {
|
|
|
12983
12988
|
return validator;
|
|
12984
12989
|
}()
|
|
12985
12990
|
}])
|
|
12986
|
-
})(
|
|
12991
|
+
})(React.createElement(ItemNameInput, {
|
|
12987
12992
|
editGood: editGood,
|
|
12988
12993
|
shorthand: editGood.shorthand,
|
|
12989
12994
|
onChange: function onChange() {
|
|
12990
12995
|
onChangeItemName(controller, form, record);
|
|
12991
12996
|
}
|
|
12992
|
-
})),
|
|
12997
|
+
})), React.createElement("div", {
|
|
12993
12998
|
className: "kts-invoice-operate-goods-list-able-list-itemName-import"
|
|
12994
|
-
}, controller.getGoodsList && model !== 'readOnly' &&
|
|
12999
|
+
}, controller.getGoodsList && model !== 'readOnly' && React.createElement(Tooltip, {
|
|
12995
13000
|
title: "\u70B9\u51FB\u4ECE\u5546\u54C1\u7BA1\u7406\u4E2D\u6DFB\u52A0\u5546\u54C1\u4FE1\u606F"
|
|
12996
|
-
},
|
|
13001
|
+
}, React.createElement(Button, {
|
|
12997
13002
|
onClick: controller.pipeline( /*#__PURE__*/function () {
|
|
12998
13003
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(s) {
|
|
12999
13004
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
@@ -13018,7 +13023,7 @@ var useColumns = (function (form) {
|
|
|
13018
13023
|
icon: "plus-circle"
|
|
13019
13024
|
})))));
|
|
13020
13025
|
} else {
|
|
13021
|
-
return
|
|
13026
|
+
return React.createElement(MyItemNameDiv, {
|
|
13022
13027
|
valueT: formatSearch(getItemNameWithShorthand({
|
|
13023
13028
|
shorthand: record.shorthand,
|
|
13024
13029
|
full: record.itemNameSelf || ''
|
|
@@ -13032,17 +13037,17 @@ var useColumns = (function (form) {
|
|
|
13032
13037
|
}
|
|
13033
13038
|
}
|
|
13034
13039
|
}, {
|
|
13035
|
-
title:
|
|
13040
|
+
title: React.createElement(TitleText, {
|
|
13036
13041
|
rules: (_columnsReplenish$ite = columnsReplenish['itemModelName']) === null || _columnsReplenish$ite === void 0 ? void 0 : _columnsReplenish$ite.rules
|
|
13037
13042
|
}, "\u89C4\u683C\u578B\u53F7"),
|
|
13038
13043
|
key: 'itemModelName',
|
|
13039
13044
|
width: 119,
|
|
13040
13045
|
render: function render(_, record) {
|
|
13041
13046
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
13042
|
-
return
|
|
13047
|
+
return React.createElement(Form.Item, null, getFieldDecorator('itemModelName', {
|
|
13043
13048
|
initialValue: isMyShow ? editGood.itemModelNameSelf : editGood.itemModelName,
|
|
13044
13049
|
rules: getReplenishRules('itemModelName')
|
|
13045
|
-
})(
|
|
13050
|
+
})(React.createElement(MyInput, {
|
|
13046
13051
|
onChange: function () {
|
|
13047
13052
|
var _onChange2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5() {
|
|
13048
13053
|
var key, value;
|
|
@@ -13075,7 +13080,7 @@ var useColumns = (function (form) {
|
|
|
13075
13080
|
}()
|
|
13076
13081
|
})));
|
|
13077
13082
|
} else {
|
|
13078
|
-
return
|
|
13083
|
+
return React.createElement(MyItemNameDiv, {
|
|
13079
13084
|
valueT: formatSearch(record.itemModelNameSelf, searchValue),
|
|
13080
13085
|
valueF: formatSearch(record.itemModelName, searchValue),
|
|
13081
13086
|
isMyShow: isMyShow
|
|
@@ -13083,17 +13088,17 @@ var useColumns = (function (form) {
|
|
|
13083
13088
|
}
|
|
13084
13089
|
}
|
|
13085
13090
|
}, {
|
|
13086
|
-
title:
|
|
13091
|
+
title: React.createElement(TitleText, {
|
|
13087
13092
|
rules: (_columnsReplenish$uni = columnsReplenish['unit']) === null || _columnsReplenish$uni === void 0 ? void 0 : _columnsReplenish$uni.rules
|
|
13088
13093
|
}, "\u5355\u4F4D"),
|
|
13089
13094
|
key: 'unit',
|
|
13090
13095
|
width: 70,
|
|
13091
13096
|
render: function render(_, record) {
|
|
13092
13097
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
13093
|
-
return
|
|
13098
|
+
return React.createElement(Form.Item, null, getFieldDecorator('unit', {
|
|
13094
13099
|
initialValue: editGood.unit,
|
|
13095
13100
|
rules: getReplenishRules('unit')
|
|
13096
|
-
})(
|
|
13101
|
+
})(React.createElement(AutoComplete$2, {
|
|
13097
13102
|
style: {
|
|
13098
13103
|
width: '100%'
|
|
13099
13104
|
},
|
|
@@ -13131,7 +13136,7 @@ var useColumns = (function (form) {
|
|
|
13131
13136
|
}()
|
|
13132
13137
|
})));
|
|
13133
13138
|
} else {
|
|
13134
|
-
return
|
|
13139
|
+
return React.createElement("span", {
|
|
13135
13140
|
style: {
|
|
13136
13141
|
padding: '0 10px'
|
|
13137
13142
|
}
|
|
@@ -13139,7 +13144,7 @@ var useColumns = (function (form) {
|
|
|
13139
13144
|
}
|
|
13140
13145
|
}
|
|
13141
13146
|
}, {
|
|
13142
|
-
title:
|
|
13147
|
+
title: React.createElement(TitleText, {
|
|
13143
13148
|
rules: (_columnsReplenish$qua = columnsReplenish['quantity']) === null || _columnsReplenish$qua === void 0 ? void 0 : _columnsReplenish$qua.rules
|
|
13144
13149
|
}, "\u6570\u91CF"),
|
|
13145
13150
|
dataIndex: 'quantity',
|
|
@@ -13148,7 +13153,7 @@ var useColumns = (function (form) {
|
|
|
13148
13153
|
width: 149,
|
|
13149
13154
|
render: function render(value, record) {
|
|
13150
13155
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
13151
|
-
return
|
|
13156
|
+
return React.createElement(Form.Item, null, getFieldDecorator('quantity', {
|
|
13152
13157
|
initialValue: editGood.quantity,
|
|
13153
13158
|
getValueFromEvent: onNumberValueChange,
|
|
13154
13159
|
rules: [].concat(_toConsumableArray(getReplenishRules('quantity')), [{
|
|
@@ -13194,7 +13199,7 @@ var useColumns = (function (form) {
|
|
|
13194
13199
|
return validator;
|
|
13195
13200
|
}()
|
|
13196
13201
|
}])
|
|
13197
|
-
})(
|
|
13202
|
+
})(React.createElement(MyInput, {
|
|
13198
13203
|
style: {
|
|
13199
13204
|
textAlign: 'right'
|
|
13200
13205
|
},
|
|
@@ -13226,7 +13231,7 @@ var useColumns = (function (form) {
|
|
|
13226
13231
|
}()
|
|
13227
13232
|
})));
|
|
13228
13233
|
} else {
|
|
13229
|
-
return
|
|
13234
|
+
return React.createElement("span", {
|
|
13230
13235
|
style: {
|
|
13231
13236
|
padding: '0 10px'
|
|
13232
13237
|
}
|
|
@@ -13234,7 +13239,7 @@ var useColumns = (function (form) {
|
|
|
13234
13239
|
}
|
|
13235
13240
|
}
|
|
13236
13241
|
}, {
|
|
13237
|
-
title:
|
|
13242
|
+
title: React.createElement(TitleText, {
|
|
13238
13243
|
rules: (_columnsReplenish$pri = columnsReplenish['priceIncludeTax']) === null || _columnsReplenish$pri === void 0 ? void 0 : _columnsReplenish$pri.rules
|
|
13239
13244
|
}, "\u5355\u4EF7(\u542B\u7A0E)"),
|
|
13240
13245
|
dataIndex: 'priceIncludeTax',
|
|
@@ -13243,7 +13248,7 @@ var useColumns = (function (form) {
|
|
|
13243
13248
|
width: 149,
|
|
13244
13249
|
render: function render(value, record) {
|
|
13245
13250
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
13246
|
-
return
|
|
13251
|
+
return React.createElement(Form.Item, null, getFieldDecorator('priceIncludeTax', {
|
|
13247
13252
|
initialValue: editGood.priceIncludeTax,
|
|
13248
13253
|
getValueFromEvent: onNumberValueChange,
|
|
13249
13254
|
rules: [].concat(_toConsumableArray(getReplenishRules('priceIncludeTax')), [{
|
|
@@ -13289,7 +13294,7 @@ var useColumns = (function (form) {
|
|
|
13289
13294
|
return validator;
|
|
13290
13295
|
}()
|
|
13291
13296
|
}])
|
|
13292
|
-
})(
|
|
13297
|
+
})(React.createElement(MyInput, {
|
|
13293
13298
|
style: {
|
|
13294
13299
|
textAlign: 'right'
|
|
13295
13300
|
},
|
|
@@ -13301,7 +13306,7 @@ var useColumns = (function (form) {
|
|
|
13301
13306
|
}
|
|
13302
13307
|
})));
|
|
13303
13308
|
} else {
|
|
13304
|
-
return
|
|
13309
|
+
return React.createElement("span", {
|
|
13305
13310
|
style: {
|
|
13306
13311
|
padding: '0 10px'
|
|
13307
13312
|
}
|
|
@@ -13309,7 +13314,7 @@ var useColumns = (function (form) {
|
|
|
13309
13314
|
}
|
|
13310
13315
|
}
|
|
13311
13316
|
}, {
|
|
13312
|
-
title:
|
|
13317
|
+
title: React.createElement(TitleText, {
|
|
13313
13318
|
rules: (_columnsReplenish$pri2 = columnsReplenish['priceExcludeTax']) === null || _columnsReplenish$pri2 === void 0 ? void 0 : _columnsReplenish$pri2.rules
|
|
13314
13319
|
}, "\u5355\u4EF7(\u4E0D\u542B\u7A0E)"),
|
|
13315
13320
|
dataIndex: 'priceExcludeTax',
|
|
@@ -13318,7 +13323,7 @@ var useColumns = (function (form) {
|
|
|
13318
13323
|
width: 149,
|
|
13319
13324
|
render: function render(value, record) {
|
|
13320
13325
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
13321
|
-
return
|
|
13326
|
+
return React.createElement(Form.Item, null, getFieldDecorator('priceExcludeTax', {
|
|
13322
13327
|
initialValue: editGood.priceExcludeTax,
|
|
13323
13328
|
getValueFromEvent: onNumberValueChange,
|
|
13324
13329
|
rules: [].concat(_toConsumableArray(getReplenishRules('priceExcludeTax')), [{
|
|
@@ -13364,7 +13369,7 @@ var useColumns = (function (form) {
|
|
|
13364
13369
|
return validator;
|
|
13365
13370
|
}()
|
|
13366
13371
|
}])
|
|
13367
|
-
})(
|
|
13372
|
+
})(React.createElement(MyInput, {
|
|
13368
13373
|
style: {
|
|
13369
13374
|
textAlign: 'right'
|
|
13370
13375
|
},
|
|
@@ -13376,7 +13381,7 @@ var useColumns = (function (form) {
|
|
|
13376
13381
|
}
|
|
13377
13382
|
})));
|
|
13378
13383
|
} else {
|
|
13379
|
-
return
|
|
13384
|
+
return React.createElement("span", {
|
|
13380
13385
|
style: {
|
|
13381
13386
|
padding: '0 10px'
|
|
13382
13387
|
}
|
|
@@ -13384,7 +13389,7 @@ var useColumns = (function (form) {
|
|
|
13384
13389
|
}
|
|
13385
13390
|
}
|
|
13386
13391
|
}, {
|
|
13387
|
-
title:
|
|
13392
|
+
title: React.createElement(TitleText, {
|
|
13388
13393
|
required: true
|
|
13389
13394
|
}, "\u91D1\u989D(\u542B\u7A0E)"),
|
|
13390
13395
|
dataIndex: 'lineAmountIncludeTax',
|
|
@@ -13393,7 +13398,7 @@ var useColumns = (function (form) {
|
|
|
13393
13398
|
align: 'right',
|
|
13394
13399
|
render: function render(value, record) {
|
|
13395
13400
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
13396
|
-
return
|
|
13401
|
+
return React.createElement(Form.Item, null, getFieldDecorator('lineAmountIncludeTax', {
|
|
13397
13402
|
initialValue: editGood.lineAmountIncludeTax,
|
|
13398
13403
|
getValueFromEvent: onNumberValueChange,
|
|
13399
13404
|
rules: [].concat(_toConsumableArray(getReplenishRules('lineAmountIncludeTax')), [{
|
|
@@ -13453,7 +13458,7 @@ var useColumns = (function (form) {
|
|
|
13453
13458
|
return validator;
|
|
13454
13459
|
}()
|
|
13455
13460
|
}])
|
|
13456
|
-
})(
|
|
13461
|
+
})(React.createElement(MyInput, {
|
|
13457
13462
|
style: {
|
|
13458
13463
|
textAlign: 'right'
|
|
13459
13464
|
},
|
|
@@ -13464,7 +13469,7 @@ var useColumns = (function (form) {
|
|
|
13464
13469
|
}
|
|
13465
13470
|
})));
|
|
13466
13471
|
} else {
|
|
13467
|
-
return
|
|
13472
|
+
return React.createElement("span", {
|
|
13468
13473
|
style: {
|
|
13469
13474
|
padding: '0 10px'
|
|
13470
13475
|
}
|
|
@@ -13472,7 +13477,7 @@ var useColumns = (function (form) {
|
|
|
13472
13477
|
}
|
|
13473
13478
|
}
|
|
13474
13479
|
}, {
|
|
13475
|
-
title:
|
|
13480
|
+
title: React.createElement(TitleText, {
|
|
13476
13481
|
required: true
|
|
13477
13482
|
}, "\u91D1\u989D(\u4E0D\u542B\u7A0E)"),
|
|
13478
13483
|
dataIndex: 'lineAmountExcludeTax',
|
|
@@ -13481,7 +13486,7 @@ var useColumns = (function (form) {
|
|
|
13481
13486
|
width: 119,
|
|
13482
13487
|
render: function render(value, record) {
|
|
13483
13488
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
13484
|
-
return
|
|
13489
|
+
return React.createElement(Form.Item, null, getFieldDecorator('lineAmountExcludeTax', {
|
|
13485
13490
|
initialValue: editGood.lineAmountExcludeTax,
|
|
13486
13491
|
getValueFromEvent: onNumberValueChange,
|
|
13487
13492
|
rules: [].concat(_toConsumableArray(getReplenishRules('lineAmountExcludeTax')), [{
|
|
@@ -13516,7 +13521,7 @@ var useColumns = (function (form) {
|
|
|
13516
13521
|
return validator;
|
|
13517
13522
|
}()
|
|
13518
13523
|
}])
|
|
13519
|
-
})(
|
|
13524
|
+
})(React.createElement(MyInput, {
|
|
13520
13525
|
style: {
|
|
13521
13526
|
textAlign: 'right'
|
|
13522
13527
|
},
|
|
@@ -13527,7 +13532,7 @@ var useColumns = (function (form) {
|
|
|
13527
13532
|
}
|
|
13528
13533
|
})));
|
|
13529
13534
|
} else {
|
|
13530
|
-
return
|
|
13535
|
+
return React.createElement("span", {
|
|
13531
13536
|
style: {
|
|
13532
13537
|
padding: '0 10px'
|
|
13533
13538
|
}
|
|
@@ -13535,7 +13540,7 @@ var useColumns = (function (form) {
|
|
|
13535
13540
|
}
|
|
13536
13541
|
}
|
|
13537
13542
|
}, {
|
|
13538
|
-
title:
|
|
13543
|
+
title: React.createElement(TitleText, {
|
|
13539
13544
|
required: true
|
|
13540
13545
|
}, "\u7A0E\u7387%"),
|
|
13541
13546
|
dataIndex: 'taxRate',
|
|
@@ -13544,7 +13549,7 @@ var useColumns = (function (form) {
|
|
|
13544
13549
|
width: 75,
|
|
13545
13550
|
render: function render(value, record) {
|
|
13546
13551
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
13547
|
-
return
|
|
13552
|
+
return React.createElement(Form.Item, null, getFieldDecorator('taxRate', {
|
|
13548
13553
|
initialValue: editGood.taxRate,
|
|
13549
13554
|
rules: [].concat(_toConsumableArray(getReplenishRules('taxRate')), [{
|
|
13550
13555
|
required: true,
|
|
@@ -13553,7 +13558,7 @@ var useColumns = (function (form) {
|
|
|
13553
13558
|
pattern: /^[+-]?(0|([1-9]\d*))(\.\d+)?$/,
|
|
13554
13559
|
message: '请选择正确税率'
|
|
13555
13560
|
}])
|
|
13556
|
-
})(
|
|
13561
|
+
})(React.createElement(Select, {
|
|
13557
13562
|
className: "kts-invoice-operate-goods-list-table-tax-rate",
|
|
13558
13563
|
dropdownMenuStyle: {
|
|
13559
13564
|
textAlign: "right"
|
|
@@ -13567,13 +13572,13 @@ var useColumns = (function (form) {
|
|
|
13567
13572
|
onChangeTaxRate(controller, form, record);
|
|
13568
13573
|
}
|
|
13569
13574
|
}, taxRateList.map(function (e, i) {
|
|
13570
|
-
return
|
|
13575
|
+
return React.createElement(Select.Option, {
|
|
13571
13576
|
key: i,
|
|
13572
13577
|
value: e
|
|
13573
13578
|
}, e, "%");
|
|
13574
13579
|
}))));
|
|
13575
13580
|
} else {
|
|
13576
|
-
return
|
|
13581
|
+
return React.createElement("span", {
|
|
13577
13582
|
style: {
|
|
13578
13583
|
padding: '0 10px'
|
|
13579
13584
|
}
|
|
@@ -13581,7 +13586,7 @@ var useColumns = (function (form) {
|
|
|
13581
13586
|
}
|
|
13582
13587
|
}
|
|
13583
13588
|
}, {
|
|
13584
|
-
title:
|
|
13589
|
+
title: React.createElement(TitleText, {
|
|
13585
13590
|
rules: (_columnsReplenish$tax = columnsReplenish['taxAmount']) === null || _columnsReplenish$tax === void 0 ? void 0 : _columnsReplenish$tax.rules
|
|
13586
13591
|
}, "\u7A0E\u989D"),
|
|
13587
13592
|
dataIndex: 'taxAmount',
|
|
@@ -13593,11 +13598,11 @@ var useColumns = (function (form) {
|
|
|
13593
13598
|
return getFieldDecorator('taxAmount', {
|
|
13594
13599
|
initialValue: editGood.taxAmount,
|
|
13595
13600
|
rules: getReplenishRules('taxAmount')
|
|
13596
|
-
})(
|
|
13601
|
+
})(React.createElement(MyDiv, {
|
|
13597
13602
|
loading: isCipher(changeField, 'taxAmount')
|
|
13598
13603
|
}));
|
|
13599
13604
|
} else {
|
|
13600
|
-
return
|
|
13605
|
+
return React.createElement("span", {
|
|
13601
13606
|
style: {
|
|
13602
13607
|
padding: '0 10px'
|
|
13603
13608
|
}
|
|
@@ -13612,42 +13617,42 @@ var useColumns = (function (form) {
|
|
|
13612
13617
|
render: function render(e) {
|
|
13613
13618
|
switch (e) {
|
|
13614
13619
|
case LineAttributeType$1.折扣行:
|
|
13615
|
-
return
|
|
13620
|
+
return React.createElement("span", {
|
|
13616
13621
|
style: {
|
|
13617
13622
|
padding: '0 10px'
|
|
13618
13623
|
}
|
|
13619
13624
|
}, "\u6298\u6263\u884C");
|
|
13620
13625
|
|
|
13621
13626
|
case LineAttributeType$1.被折扣行:
|
|
13622
|
-
return
|
|
13627
|
+
return React.createElement("span", {
|
|
13623
13628
|
style: {
|
|
13624
13629
|
padding: '0 10px'
|
|
13625
13630
|
}
|
|
13626
13631
|
}, "\u88AB\u6298\u6263\u884C");
|
|
13627
13632
|
|
|
13628
13633
|
case LineAttributeType$1.赠品行:
|
|
13629
|
-
return
|
|
13634
|
+
return React.createElement("span", {
|
|
13630
13635
|
style: {
|
|
13631
13636
|
padding: '0 10px'
|
|
13632
13637
|
}
|
|
13633
13638
|
}, "\u8D60\u54C1\u884C");
|
|
13634
13639
|
|
|
13635
13640
|
case LineAttributeType$1.折让行:
|
|
13636
|
-
return
|
|
13641
|
+
return React.createElement("span", {
|
|
13637
13642
|
style: {
|
|
13638
13643
|
padding: '0 10px'
|
|
13639
13644
|
}
|
|
13640
13645
|
}, "\u6298\u8BA9\u884C");
|
|
13641
13646
|
|
|
13642
13647
|
case LineAttributeType$1.正常:
|
|
13643
|
-
return
|
|
13648
|
+
return React.createElement("span", {
|
|
13644
13649
|
style: {
|
|
13645
13650
|
padding: '0 10px'
|
|
13646
13651
|
}
|
|
13647
13652
|
}, "\u6B63\u5E38\u884C");
|
|
13648
13653
|
|
|
13649
13654
|
default:
|
|
13650
|
-
return
|
|
13655
|
+
return React.createElement("span", {
|
|
13651
13656
|
style: {
|
|
13652
13657
|
padding: '0 10px'
|
|
13653
13658
|
}
|
|
@@ -13661,7 +13666,7 @@ var useColumns = (function (form) {
|
|
|
13661
13666
|
width: 130,
|
|
13662
13667
|
fixed: 'right',
|
|
13663
13668
|
render: function render(_value, record) {
|
|
13664
|
-
return
|
|
13669
|
+
return React.createElement(RowMenu, {
|
|
13665
13670
|
key: record.lineAttribute,
|
|
13666
13671
|
goods: record
|
|
13667
13672
|
});
|
|
@@ -13716,13 +13721,13 @@ var MyInput = /*#__PURE__*/function (_React$Component) {
|
|
|
13716
13721
|
key: "render",
|
|
13717
13722
|
value: function render() {
|
|
13718
13723
|
if (this.props.loading) {
|
|
13719
|
-
return
|
|
13724
|
+
return React.createElement(Spin, {
|
|
13720
13725
|
size: "small"
|
|
13721
|
-
},
|
|
13726
|
+
}, React.createElement(Input, _objectSpread2(_objectSpread2({}, this.props), {}, {
|
|
13722
13727
|
autoComplete: "off"
|
|
13723
13728
|
})));
|
|
13724
13729
|
} else {
|
|
13725
|
-
return
|
|
13730
|
+
return React.createElement(Input, _objectSpread2(_objectSpread2({}, this.props), {}, {
|
|
13726
13731
|
autoComplete: "off"
|
|
13727
13732
|
}));
|
|
13728
13733
|
}
|
|
@@ -13747,15 +13752,15 @@ var MyDiv = /*#__PURE__*/function (_React$Component2) {
|
|
|
13747
13752
|
key: "render",
|
|
13748
13753
|
value: function render() {
|
|
13749
13754
|
if (this.props.loading) {
|
|
13750
|
-
return
|
|
13755
|
+
return React.createElement(Spin, {
|
|
13751
13756
|
size: "small"
|
|
13752
|
-
},
|
|
13757
|
+
}, React.createElement("span", {
|
|
13753
13758
|
style: {
|
|
13754
13759
|
padding: '0 10px'
|
|
13755
13760
|
}
|
|
13756
13761
|
}, this.props.value));
|
|
13757
13762
|
} else {
|
|
13758
|
-
return
|
|
13763
|
+
return React.createElement("span", {
|
|
13759
13764
|
style: {
|
|
13760
13765
|
padding: '0 10px'
|
|
13761
13766
|
}
|
|
@@ -13788,18 +13793,18 @@ var MyItemNameDiv = /*#__PURE__*/function (_React$Component3) {
|
|
|
13788
13793
|
|
|
13789
13794
|
if (isMyShow) {
|
|
13790
13795
|
if (valueT) {
|
|
13791
|
-
return
|
|
13796
|
+
return React.createElement(Tooltip, {
|
|
13792
13797
|
title: valueT
|
|
13793
|
-
},
|
|
13798
|
+
}, React.createElement("span", {
|
|
13794
13799
|
style: {
|
|
13795
13800
|
padding: '0 10px',
|
|
13796
13801
|
color: '#0074ff'
|
|
13797
13802
|
}
|
|
13798
13803
|
}, valueT));
|
|
13799
13804
|
} else {
|
|
13800
|
-
return
|
|
13805
|
+
return React.createElement(Tooltip, {
|
|
13801
13806
|
title: valueF
|
|
13802
|
-
},
|
|
13807
|
+
}, React.createElement("span", {
|
|
13803
13808
|
style: {
|
|
13804
13809
|
padding: '0 10px'
|
|
13805
13810
|
}
|
|
@@ -13807,17 +13812,17 @@ var MyItemNameDiv = /*#__PURE__*/function (_React$Component3) {
|
|
|
13807
13812
|
}
|
|
13808
13813
|
} else {
|
|
13809
13814
|
if (valueF) {
|
|
13810
|
-
return
|
|
13815
|
+
return React.createElement(Tooltip, {
|
|
13811
13816
|
title: valueF
|
|
13812
|
-
},
|
|
13817
|
+
}, React.createElement("span", {
|
|
13813
13818
|
style: {
|
|
13814
13819
|
padding: '0 10px'
|
|
13815
13820
|
}
|
|
13816
13821
|
}, valueF));
|
|
13817
13822
|
} else {
|
|
13818
|
-
return
|
|
13823
|
+
return React.createElement(Tooltip, {
|
|
13819
13824
|
title: valueT
|
|
13820
|
-
},
|
|
13825
|
+
}, React.createElement("span", {
|
|
13821
13826
|
style: {
|
|
13822
13827
|
padding: '0 10px',
|
|
13823
13828
|
color: '#0074ff'
|
|
@@ -13840,7 +13845,7 @@ function formatSearch(value, search) {
|
|
|
13840
13845
|
return dcoding(e);
|
|
13841
13846
|
}).join("<span class=\"kts-invoice-operate-goods-list-table-search-protrude\" >".concat(search, "</span>"));
|
|
13842
13847
|
|
|
13843
|
-
return
|
|
13848
|
+
return React.createElement("span", {
|
|
13844
13849
|
dangerouslySetInnerHTML: {
|
|
13845
13850
|
__html: __html
|
|
13846
13851
|
}
|
|
@@ -14265,7 +14270,7 @@ var useRowSelection = (function () {
|
|
|
14265
14270
|
};
|
|
14266
14271
|
}(), [controller]);
|
|
14267
14272
|
var columnTitle = React.useMemo(function () {
|
|
14268
|
-
return
|
|
14273
|
+
return React.createElement(Checkbox, {
|
|
14269
14274
|
onChange: onClickSelectAll,
|
|
14270
14275
|
indeterminate: indeterminate,
|
|
14271
14276
|
checked: isAll
|
|
@@ -14466,16 +14471,16 @@ var useEndowCodeButton = (function () {
|
|
|
14466
14471
|
}, _callee2);
|
|
14467
14472
|
})), [controller]);
|
|
14468
14473
|
var menuItem = React.useMemo(function () {
|
|
14469
|
-
if (model === 'readOnly') return
|
|
14470
|
-
return
|
|
14474
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
14475
|
+
return React.createElement(Menu.Item, {
|
|
14471
14476
|
key: "2",
|
|
14472
14477
|
onClick: onClick,
|
|
14473
14478
|
disabled: disabled
|
|
14474
14479
|
}, "\u6279\u91CF\u8D4B\u7801");
|
|
14475
14480
|
}, [onClick, disabled, model]);
|
|
14476
14481
|
var button = React.useMemo(function () {
|
|
14477
|
-
if (model === 'readOnly') return
|
|
14478
|
-
return
|
|
14482
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
14483
|
+
return React.createElement(Button, {
|
|
14479
14484
|
onClick: onClick,
|
|
14480
14485
|
disabled: disabled
|
|
14481
14486
|
}, "\u6279\u91CF\u8D4B\u7801");
|
|
@@ -14541,19 +14546,19 @@ var useDelRowButton = (function () {
|
|
|
14541
14546
|
}())();
|
|
14542
14547
|
}, [controller]);
|
|
14543
14548
|
var menuItem = React.useMemo(function () {
|
|
14544
|
-
if (model === 'prefab') return
|
|
14545
|
-
if (model === 'readOnly') return
|
|
14546
|
-
return
|
|
14549
|
+
if (model === 'prefab') return React.createElement(React.Fragment, null);
|
|
14550
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
14551
|
+
return React.createElement(Menu.Item, {
|
|
14547
14552
|
key: "1",
|
|
14548
14553
|
onClick: onClick,
|
|
14549
14554
|
disabled: disabled
|
|
14550
14555
|
}, " \u5220\u9664\u884C ");
|
|
14551
14556
|
}, [model, onClick, disabled]);
|
|
14552
14557
|
var button = React.useMemo(function () {
|
|
14553
|
-
if (isRemRow === false) return
|
|
14554
|
-
if (model === 'prefab') return
|
|
14555
|
-
if (model === 'readOnly') return
|
|
14556
|
-
return
|
|
14558
|
+
if (isRemRow === false) return React.createElement(React.Fragment, null);
|
|
14559
|
+
if (model === 'prefab') return React.createElement(React.Fragment, null);
|
|
14560
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
14561
|
+
return React.createElement(Button, {
|
|
14557
14562
|
onClick: onClick,
|
|
14558
14563
|
disabled: disabled
|
|
14559
14564
|
}, "\u6279\u91CF\u5220\u9664");
|
|
@@ -14748,14 +14753,14 @@ var useAddDiscountRowButton = (function () {
|
|
|
14748
14753
|
}, _callee3);
|
|
14749
14754
|
})), [controller]);
|
|
14750
14755
|
var menuItem = React.useMemo(function () {
|
|
14751
|
-
return model === 'prefab' ?
|
|
14756
|
+
return model === 'prefab' ? React.createElement(React.Fragment, null) : isAddDiscount !== false ? React.createElement(Menu.Item, {
|
|
14752
14757
|
key: "0",
|
|
14753
14758
|
onClick: onClick,
|
|
14754
14759
|
disabled: disabled
|
|
14755
14760
|
}, "\u6DFB\u52A0\u6298\u6263\u884C") : undefined;
|
|
14756
14761
|
}, [isAddDiscount, disabled, onClick]);
|
|
14757
14762
|
var drawer = React.useMemo(function () {
|
|
14758
|
-
return
|
|
14763
|
+
return React.createElement(Drawer, {
|
|
14759
14764
|
className: "kts-invoice-operate-goods-list-add-discount-row",
|
|
14760
14765
|
width: 540,
|
|
14761
14766
|
title: "\u6DFB\u52A0\u6298\u6263\u884C",
|
|
@@ -14763,7 +14768,7 @@ var useAddDiscountRowButton = (function () {
|
|
|
14763
14768
|
destroyOnClose: true,
|
|
14764
14769
|
onClose: onClose,
|
|
14765
14770
|
visible: visible
|
|
14766
|
-
},
|
|
14771
|
+
}, React.createElement(DrawerBody, null));
|
|
14767
14772
|
}, [visible, onClose]);
|
|
14768
14773
|
return {
|
|
14769
14774
|
menuItem: menuItem,
|
|
@@ -14880,13 +14885,13 @@ var DrawerBody = decorator(Form.create())(function (props) {
|
|
|
14880
14885
|
});
|
|
14881
14886
|
});
|
|
14882
14887
|
}, 300), [form, lineAmountSum]);
|
|
14883
|
-
return
|
|
14888
|
+
return React.createElement(React.Fragment, null, React.createElement("div", {
|
|
14884
14889
|
className: "add-discount-row-body"
|
|
14885
|
-
},
|
|
14890
|
+
}, React.createElement("p", null, "\u5F53\u524D\u9009\u62E9", React.createElement(Text$3, {
|
|
14886
14891
|
type: "danger"
|
|
14887
|
-
}, discountGoodIndex.length), "\u884C\u88AB\u6298\u6263\u5546\u54C1\u884C\uFF0C\u91D1\u989D\u5408\u8BA1\xA5",
|
|
14892
|
+
}, discountGoodIndex.length), "\u884C\u88AB\u6298\u6263\u5546\u54C1\u884C\uFF0C\u91D1\u989D\u5408\u8BA1\xA5", React.createElement(Text$3, {
|
|
14888
14893
|
type: "danger"
|
|
14889
|
-
}, lineAmountSum.toFixed(2))),
|
|
14894
|
+
}, lineAmountSum.toFixed(2))), React.createElement(Form.Item, {
|
|
14890
14895
|
label: "\u6298\u6263\u7387\uFF1A"
|
|
14891
14896
|
}, getFieldDecorator('discount', {
|
|
14892
14897
|
rules: [{
|
|
@@ -14916,11 +14921,11 @@ var DrawerBody = decorator(Form.create())(function (props) {
|
|
|
14916
14921
|
callback();
|
|
14917
14922
|
}
|
|
14918
14923
|
}]
|
|
14919
|
-
})(
|
|
14924
|
+
})(React.createElement(Input, {
|
|
14920
14925
|
placeholder: "\u8BF7\u8F93\u5165\u5927\u4E8E0\u5C0F\u4E8E100\u7684\u6570\u5B57",
|
|
14921
14926
|
suffix: "%",
|
|
14922
14927
|
onChange: onChangeDiscount
|
|
14923
|
-
}))),
|
|
14928
|
+
}))), React.createElement(Form.Item, {
|
|
14924
14929
|
label: "\u6298\u6263\u91D1\u989D\uFF1A"
|
|
14925
14930
|
}, getFieldDecorator('discolineAmountunt', {
|
|
14926
14931
|
rules: [{
|
|
@@ -14950,19 +14955,19 @@ var DrawerBody = decorator(Form.create())(function (props) {
|
|
|
14950
14955
|
callback();
|
|
14951
14956
|
}
|
|
14952
14957
|
}]
|
|
14953
|
-
})(
|
|
14958
|
+
})(React.createElement(Input, {
|
|
14954
14959
|
placeholder: "\u8BF7\u8F93\u5165\u5927\u4E8E0\u5C0F\u4E8E\u91D1\u989D\u5408\u8BA1\u7684\u6570\u5B57",
|
|
14955
14960
|
suffix: "\xA5",
|
|
14956
14961
|
onChange: onChangeDiscolineAmountunt
|
|
14957
|
-
})))),
|
|
14962
|
+
})))), React.createElement("div", {
|
|
14958
14963
|
className: "add-discount-row-footer"
|
|
14959
|
-
},
|
|
14964
|
+
}, React.createElement(Button, {
|
|
14960
14965
|
block: true,
|
|
14961
14966
|
style: {
|
|
14962
14967
|
marginBottom: 12
|
|
14963
14968
|
},
|
|
14964
14969
|
onClick: onClose
|
|
14965
|
-
}, "\u53D6\u6D88"),
|
|
14970
|
+
}, "\u53D6\u6D88"), React.createElement(Button, {
|
|
14966
14971
|
type: "primary",
|
|
14967
14972
|
block: true,
|
|
14968
14973
|
onClick: onClickSave
|
|
@@ -15059,13 +15064,13 @@ function useMergeDetails() {
|
|
|
15059
15064
|
}];
|
|
15060
15065
|
}, [selectedGoodIndex, onClickManual, onClickAuto]);
|
|
15061
15066
|
var button = React.useMemo(function () {
|
|
15062
|
-
if (!isMergeDetails) return
|
|
15063
|
-
return
|
|
15067
|
+
if (!isMergeDetails) return React.createElement(React.Fragment, null);
|
|
15068
|
+
return React.createElement(Dropdown$1, {
|
|
15064
15069
|
menu: {
|
|
15065
15070
|
items: items
|
|
15066
15071
|
},
|
|
15067
15072
|
trigger: ['click']
|
|
15068
|
-
},
|
|
15073
|
+
}, React.createElement(Button, null, "\u5408\u5E76\u660E\u7EC6"));
|
|
15069
15074
|
}, [selectedGoodIndex.length, isMergeDetails]);
|
|
15070
15075
|
return {
|
|
15071
15076
|
/** 按钮 */
|
|
@@ -15151,8 +15156,8 @@ function useMergeDiscount() {
|
|
|
15151
15156
|
}, _callee);
|
|
15152
15157
|
})), [controller]);
|
|
15153
15158
|
var button = React.useMemo(function () {
|
|
15154
|
-
if (!isMergeDiscount) return
|
|
15155
|
-
return
|
|
15159
|
+
if (!isMergeDiscount) return React.createElement(React.Fragment, null);
|
|
15160
|
+
return React.createElement(Button, {
|
|
15156
15161
|
onClick: onClick,
|
|
15157
15162
|
disabled: goodsList.length <= 1
|
|
15158
15163
|
}, "\u5408\u5E76\u6298\u6263");
|
|
@@ -15330,8 +15335,8 @@ function useSalesDiscount() {
|
|
|
15330
15335
|
}).length <= 0;
|
|
15331
15336
|
}, [goodsList]);
|
|
15332
15337
|
var button = React.useMemo(function () {
|
|
15333
|
-
if (!isSalesDiscount) return
|
|
15334
|
-
return
|
|
15338
|
+
if (!isSalesDiscount) return React.createElement(React.Fragment, null);
|
|
15339
|
+
return React.createElement(Button, {
|
|
15335
15340
|
onClick: onClick,
|
|
15336
15341
|
disabled: disabled
|
|
15337
15342
|
}, "\u9500\u552E\u6298\u8BA9");
|
|
@@ -15502,12 +15507,12 @@ function useSalesGifts() {
|
|
|
15502
15507
|
}, [selectedGoodIndex, onClickManual, onClickAuto]);
|
|
15503
15508
|
var button = React.useMemo(function () {
|
|
15504
15509
|
if (!isSalesGifts) return;
|
|
15505
|
-
return
|
|
15510
|
+
return React.createElement(Dropdown$1, {
|
|
15506
15511
|
menu: {
|
|
15507
15512
|
items: items
|
|
15508
15513
|
},
|
|
15509
15514
|
trigger: ['click']
|
|
15510
|
-
},
|
|
15515
|
+
}, React.createElement(Button, null, "\u9500\u552E\u8D60\u54C1"));
|
|
15511
15516
|
}, [items, isSalesGifts]);
|
|
15512
15517
|
return {
|
|
15513
15518
|
/** 按钮 */
|
|
@@ -15545,7 +15550,7 @@ var GoodsList = /*#__PURE__*/function (_React$Component) {
|
|
|
15545
15550
|
_createClass(GoodsList, [{
|
|
15546
15551
|
key: "render",
|
|
15547
15552
|
value: function render() {
|
|
15548
|
-
return
|
|
15553
|
+
return React.createElement(Main, _objectSpread2({}, this.props));
|
|
15549
15554
|
}
|
|
15550
15555
|
}]);
|
|
15551
15556
|
|
|
@@ -15747,22 +15752,22 @@ var Main = decorator(Form.create())(function (props) {
|
|
|
15747
15752
|
};
|
|
15748
15753
|
}())();
|
|
15749
15754
|
}, [controller, props.isSwitchTax]);
|
|
15750
|
-
return
|
|
15755
|
+
return React.createElement("div", {
|
|
15751
15756
|
className: "kts-invoice-operate-goods-list",
|
|
15752
15757
|
onClick: function onClick(e) {
|
|
15753
15758
|
e.stopPropagation();
|
|
15754
15759
|
}
|
|
15755
|
-
},
|
|
15760
|
+
}, React.createElement("div", {
|
|
15756
15761
|
className: "kts-invoice-operate-goods-list-able"
|
|
15757
|
-
},
|
|
15762
|
+
}, React.createElement("div", {
|
|
15758
15763
|
className: "kts-invoice-operate-goods-list-able-list"
|
|
15759
|
-
},
|
|
15764
|
+
}, 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", {
|
|
15760
15765
|
className: "kts-invoice-operate-goods-list-able-extend"
|
|
15761
|
-
}, props.menuExpansion,
|
|
15766
|
+
}, props.menuExpansion, React.createElement(DescribeSwitch, null), React.createElement(TaxIncludedSwitch, null))), React.createElement("div", {
|
|
15762
15767
|
className: classNames('kts-invoice-operate-goods-list-table', {
|
|
15763
15768
|
'kts-invoice-operate-prefab': isprefab
|
|
15764
15769
|
})
|
|
15765
|
-
},
|
|
15770
|
+
}, React.createElement(TableVirtual, {
|
|
15766
15771
|
bordered: true,
|
|
15767
15772
|
size: "small",
|
|
15768
15773
|
rowKey: "$index",
|
|
@@ -15785,7 +15790,7 @@ var Main = decorator(Form.create())(function (props) {
|
|
|
15785
15790
|
}
|
|
15786
15791
|
};
|
|
15787
15792
|
}
|
|
15788
|
-
})),
|
|
15793
|
+
})), React.createElement("div", null, React.createElement(Statistics, null)));
|
|
15789
15794
|
});
|
|
15790
15795
|
|
|
15791
15796
|
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";
|
|
@@ -15810,7 +15815,7 @@ var Buyer = /*#__PURE__*/function (_React$Component) {
|
|
|
15810
15815
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
15811
15816
|
|
|
15812
15817
|
_this.render = function () {
|
|
15813
|
-
return
|
|
15818
|
+
return React.createElement(Main$1, _objectSpread2({}, _this.props));
|
|
15814
15819
|
};
|
|
15815
15820
|
|
|
15816
15821
|
return _this;
|
|
@@ -15841,7 +15846,7 @@ var Main$1 = decorator(Form.create())(function (props) {
|
|
|
15841
15846
|
return [{
|
|
15842
15847
|
id: 'sellerName',
|
|
15843
15848
|
label: '销售方名称',
|
|
15844
|
-
node:
|
|
15849
|
+
node: React.createElement(Input, {
|
|
15845
15850
|
readOnly: model === 'prefab',
|
|
15846
15851
|
size: "small"
|
|
15847
15852
|
}),
|
|
@@ -15854,7 +15859,7 @@ var Main$1 = decorator(Form.create())(function (props) {
|
|
|
15854
15859
|
}, {
|
|
15855
15860
|
id: 'sellerNo',
|
|
15856
15861
|
label: '销售方纳税人识别号',
|
|
15857
|
-
node:
|
|
15862
|
+
node: React.createElement(Input, {
|
|
15858
15863
|
readOnly: model === 'prefab',
|
|
15859
15864
|
size: "small"
|
|
15860
15865
|
}),
|
|
@@ -15867,7 +15872,7 @@ var Main$1 = decorator(Form.create())(function (props) {
|
|
|
15867
15872
|
}, {
|
|
15868
15873
|
id: 'sellerAddress',
|
|
15869
15874
|
label: '销售方地址及电话',
|
|
15870
|
-
node:
|
|
15875
|
+
node: React.createElement(Input, {
|
|
15871
15876
|
readOnly: model === 'prefab',
|
|
15872
15877
|
size: "small"
|
|
15873
15878
|
}),
|
|
@@ -15880,7 +15885,7 @@ var Main$1 = decorator(Form.create())(function (props) {
|
|
|
15880
15885
|
}, {
|
|
15881
15886
|
id: 'sellerBank',
|
|
15882
15887
|
label: '销售方开户行及账号',
|
|
15883
|
-
node:
|
|
15888
|
+
node: React.createElement(Input, {
|
|
15884
15889
|
readOnly: model === 'prefab',
|
|
15885
15890
|
size: "small"
|
|
15886
15891
|
}),
|
|
@@ -15906,31 +15911,31 @@ var Main$1 = decorator(Form.create())(function (props) {
|
|
|
15906
15911
|
return getFieldDecorator(e.id, e.options)(e.node);
|
|
15907
15912
|
}
|
|
15908
15913
|
}, [props.formRender]);
|
|
15909
|
-
return
|
|
15914
|
+
return React.createElement(Form, null, React.createElement("div", {
|
|
15910
15915
|
className: "kts-invoice-operate-seller"
|
|
15911
|
-
},
|
|
15916
|
+
}, React.createElement("div", {
|
|
15912
15917
|
className: "kts-invoice-operate-seller-message"
|
|
15913
|
-
},
|
|
15918
|
+
}, React.createElement("div", {
|
|
15914
15919
|
className: "kts-invoice-operate-seller-title"
|
|
15915
|
-
},
|
|
15920
|
+
}, React.createElement("label", null, "\u9500\u552E\u65B9")), React.createElement(Descriptions, {
|
|
15916
15921
|
className: "kts-invoice-operate-seller-message-list",
|
|
15917
15922
|
size: "small",
|
|
15918
15923
|
column: 1,
|
|
15919
15924
|
bordered: true
|
|
15920
15925
|
}, formItem.map(function (e, i) {
|
|
15921
|
-
return
|
|
15926
|
+
return React.createElement(Descriptions.Item, {
|
|
15922
15927
|
key: i,
|
|
15923
15928
|
label: e.label
|
|
15924
|
-
},
|
|
15925
|
-
}))),
|
|
15929
|
+
}, React.createElement(Form.Item, null, createFormItem(e)));
|
|
15930
|
+
}))), React.createElement("div", {
|
|
15926
15931
|
className: "kts-invoice-operate-seller-remarks"
|
|
15927
|
-
},
|
|
15932
|
+
}, React.createElement("div", {
|
|
15928
15933
|
className: "kts-invoice-operate-seller-title"
|
|
15929
|
-
},
|
|
15934
|
+
}, React.createElement("label", null, "\u5907\u6CE8")), React.createElement("div", {
|
|
15930
15935
|
className: "kts-invoice-operate-seller-remarks-value"
|
|
15931
15936
|
}, getFieldDecorator('remarks', {
|
|
15932
15937
|
initialValue: props.defaultsellerRemarks
|
|
15933
|
-
})(
|
|
15938
|
+
})(React.createElement(TextArea, null))))));
|
|
15934
15939
|
});
|
|
15935
15940
|
|
|
15936
15941
|
var ImportBuyerButton = (function () {
|
|
@@ -15957,7 +15962,7 @@ var ImportBuyerButton = (function () {
|
|
|
15957
15962
|
};
|
|
15958
15963
|
}())();
|
|
15959
15964
|
}, [controller]);
|
|
15960
|
-
return
|
|
15965
|
+
return React.createElement(React.Fragment, null, controller.getBuyerList && React.createElement(Button, {
|
|
15961
15966
|
type: "link",
|
|
15962
15967
|
icon: "plus-circle",
|
|
15963
15968
|
onClick: onClick
|
|
@@ -15996,29 +16001,29 @@ var BuyerNameInput = (function (props) {
|
|
|
15996
16001
|
var content = React.useMemo(function () {
|
|
15997
16002
|
var _dataSource$recent;
|
|
15998
16003
|
|
|
15999
|
-
return
|
|
16004
|
+
return React.createElement("div", {
|
|
16000
16005
|
className: 'kts-invoice-operate-buyer-name-content'
|
|
16001
|
-
}, loading ?
|
|
16006
|
+
}, loading ? React.createElement("div", {
|
|
16002
16007
|
style: {
|
|
16003
16008
|
textAlign: 'center'
|
|
16004
16009
|
}
|
|
16005
|
-
},
|
|
16010
|
+
}, React.createElement(Spin, null)) : React.createElement(React.Fragment, null, React.createElement("div", {
|
|
16006
16011
|
className: 'kts-invoice-operate-buyer-name-content-block',
|
|
16007
16012
|
style: {
|
|
16008
16013
|
padding: '14px 10px'
|
|
16009
16014
|
}
|
|
16010
|
-
},
|
|
16015
|
+
}, React.createElement("label", {
|
|
16011
16016
|
style: {
|
|
16012
16017
|
marginBottom: 10
|
|
16013
16018
|
}
|
|
16014
|
-
}, "\u6700\u8FD1\u5F00\u5177"),
|
|
16019
|
+
}, "\u6700\u8FD1\u5F00\u5177"), React.createElement("ul", {
|
|
16015
16020
|
className: 'kts-invoice-operate-buyer-name-content-recently-issued'
|
|
16016
|
-
}, !dataSource.recent || dataSource.recent.length <= 0 ?
|
|
16021
|
+
}, !dataSource.recent || dataSource.recent.length <= 0 ? React.createElement(Empty, {
|
|
16017
16022
|
image: Empty.PRESENTED_IMAGE_SIMPLE
|
|
16018
16023
|
}) : (_dataSource$recent = dataSource.recent) === null || _dataSource$recent === void 0 ? void 0 : _dataSource$recent.map(function (e, i) {
|
|
16019
16024
|
var _dataSource$recent$le, _dataSource$recent2;
|
|
16020
16025
|
|
|
16021
|
-
return
|
|
16026
|
+
return React.createElement("li", {
|
|
16022
16027
|
key: i,
|
|
16023
16028
|
onClick: function onClick() {
|
|
16024
16029
|
onClickItem(e);
|
|
@@ -16026,37 +16031,37 @@ var BuyerNameInput = (function (props) {
|
|
|
16026
16031
|
style: {
|
|
16027
16032
|
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)
|
|
16028
16033
|
}
|
|
16029
|
-
},
|
|
16030
|
-
}))),
|
|
16034
|
+
}, React.createElement(MyTag, null, e.buyerName));
|
|
16035
|
+
}))), React.createElement(Divider, {
|
|
16031
16036
|
style: {
|
|
16032
16037
|
margin: "0 6px"
|
|
16033
16038
|
}
|
|
16034
|
-
}),
|
|
16039
|
+
}), React.createElement("div", {
|
|
16035
16040
|
className: 'kts-invoice-operate-buyer-name-content-block',
|
|
16036
16041
|
style: {
|
|
16037
16042
|
padding: '14px 10px 4px'
|
|
16038
16043
|
}
|
|
16039
|
-
},
|
|
16044
|
+
}, React.createElement("label", {
|
|
16040
16045
|
style: {
|
|
16041
16046
|
padding: '0 10px'
|
|
16042
16047
|
}
|
|
16043
|
-
}, "\u9009\u62E9\u516C\u53F8"),
|
|
16048
|
+
}, "\u9009\u62E9\u516C\u53F8"), React.createElement("div", {
|
|
16044
16049
|
style: {
|
|
16045
16050
|
maxHeight: 200,
|
|
16046
16051
|
overflow: "auto"
|
|
16047
16052
|
}
|
|
16048
|
-
}, !dataSource.list || dataSource.list.length <= 0 ?
|
|
16053
|
+
}, !dataSource.list || dataSource.list.length <= 0 ? React.createElement(Empty, {
|
|
16049
16054
|
image: Empty.PRESENTED_IMAGE_SIMPLE
|
|
16050
16055
|
}) : dataSource.list.map(function (e, i) {
|
|
16051
|
-
return
|
|
16056
|
+
return React.createElement("ul", {
|
|
16052
16057
|
key: i,
|
|
16053
16058
|
onClick: function onClick() {
|
|
16054
16059
|
onClickItem(e);
|
|
16055
16060
|
},
|
|
16056
16061
|
className: 'kts-invoice-operate-buyer-name-content-select-company'
|
|
16057
|
-
},
|
|
16062
|
+
}, React.createElement("li", {
|
|
16058
16063
|
title: e.buyerName
|
|
16059
|
-
}, e.buyerName),
|
|
16064
|
+
}, e.buyerName), React.createElement("li", {
|
|
16060
16065
|
title: e.buyerNo
|
|
16061
16066
|
}, e.buyerNo));
|
|
16062
16067
|
})))));
|
|
@@ -16097,7 +16102,7 @@ var BuyerNameInput = (function (props) {
|
|
|
16097
16102
|
}, [visible, props.value]);
|
|
16098
16103
|
|
|
16099
16104
|
if (model === 'prefab' || !autoContainer) {
|
|
16100
|
-
return
|
|
16105
|
+
return React.createElement(Input, {
|
|
16101
16106
|
size: "small",
|
|
16102
16107
|
autoComplete: "off",
|
|
16103
16108
|
value: props.value,
|
|
@@ -16108,14 +16113,14 @@ var BuyerNameInput = (function (props) {
|
|
|
16108
16113
|
});
|
|
16109
16114
|
}
|
|
16110
16115
|
|
|
16111
|
-
return
|
|
16116
|
+
return React.createElement(Popover$1, {
|
|
16112
16117
|
onVisibleChange: setVisible,
|
|
16113
16118
|
overlayClassName: 'kts-invoice-operate-buyer-name-popover',
|
|
16114
16119
|
placement: "bottomLeft",
|
|
16115
16120
|
trigger: "click",
|
|
16116
16121
|
visible: visible,
|
|
16117
16122
|
content: content
|
|
16118
|
-
},
|
|
16123
|
+
}, React.createElement(Input, {
|
|
16119
16124
|
size: "small",
|
|
16120
16125
|
autoComplete: "off",
|
|
16121
16126
|
value: props.value,
|
|
@@ -16193,7 +16198,7 @@ function useDataSource() {
|
|
|
16193
16198
|
}
|
|
16194
16199
|
|
|
16195
16200
|
function MyTag(props) {
|
|
16196
|
-
return
|
|
16201
|
+
return React.createElement("span", {
|
|
16197
16202
|
className: 'kts-invoice-operate-buyer-name-content-tag',
|
|
16198
16203
|
title: props.children
|
|
16199
16204
|
}, props.children);
|
|
@@ -16229,7 +16234,7 @@ var Buyer$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
16229
16234
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
16230
16235
|
|
|
16231
16236
|
_this.render = function () {
|
|
16232
|
-
return
|
|
16237
|
+
return React.createElement(Main$2, _objectSpread2({}, _this.props));
|
|
16233
16238
|
};
|
|
16234
16239
|
|
|
16235
16240
|
return _this;
|
|
@@ -16260,7 +16265,7 @@ var Main$2 = decorator(Form.create())(function (props) {
|
|
|
16260
16265
|
return [{
|
|
16261
16266
|
id: 'buyerName',
|
|
16262
16267
|
label: '购买方名称',
|
|
16263
|
-
node:
|
|
16268
|
+
node: React.createElement(Input, {
|
|
16264
16269
|
size: "small",
|
|
16265
16270
|
autoComplete: "off",
|
|
16266
16271
|
readOnly: model === 'prefab'
|
|
@@ -16274,7 +16279,7 @@ var Main$2 = decorator(Form.create())(function (props) {
|
|
|
16274
16279
|
}, {
|
|
16275
16280
|
id: 'buyerNo',
|
|
16276
16281
|
label: '购买方纳税人识别号',
|
|
16277
|
-
node:
|
|
16282
|
+
node: React.createElement(Input, {
|
|
16278
16283
|
size: "small",
|
|
16279
16284
|
autoComplete: "off",
|
|
16280
16285
|
readOnly: model === 'prefab'
|
|
@@ -16288,7 +16293,7 @@ var Main$2 = decorator(Form.create())(function (props) {
|
|
|
16288
16293
|
}, {
|
|
16289
16294
|
id: 'buyerAddress',
|
|
16290
16295
|
label: '购买方地址及电话',
|
|
16291
|
-
node:
|
|
16296
|
+
node: React.createElement(Input, {
|
|
16292
16297
|
size: "small",
|
|
16293
16298
|
autoComplete: "off",
|
|
16294
16299
|
readOnly: model === 'prefab'
|
|
@@ -16302,7 +16307,7 @@ var Main$2 = decorator(Form.create())(function (props) {
|
|
|
16302
16307
|
}, {
|
|
16303
16308
|
id: 'buyerBank',
|
|
16304
16309
|
label: '购买方开户行及账号',
|
|
16305
|
-
node:
|
|
16310
|
+
node: React.createElement(Input, {
|
|
16306
16311
|
size: "small",
|
|
16307
16312
|
autoComplete: "off",
|
|
16308
16313
|
readOnly: model === 'prefab'
|
|
@@ -16324,7 +16329,7 @@ var Main$2 = decorator(Form.create())(function (props) {
|
|
|
16324
16329
|
if (e.options.rules.some(function (e) {
|
|
16325
16330
|
return e.required;
|
|
16326
16331
|
})) {
|
|
16327
|
-
return
|
|
16332
|
+
return React.createElement(React.Fragment, null, React.createElement(Text$4, {
|
|
16328
16333
|
type: "danger"
|
|
16329
16334
|
}, "*"), e.label);
|
|
16330
16335
|
} else {
|
|
@@ -16334,29 +16339,29 @@ var Main$2 = decorator(Form.create())(function (props) {
|
|
|
16334
16339
|
return e.label;
|
|
16335
16340
|
}
|
|
16336
16341
|
}, []);
|
|
16337
|
-
return
|
|
16342
|
+
return React.createElement(Form, null, React.createElement("div", {
|
|
16338
16343
|
className: "kts-invoice-operate-buyer"
|
|
16339
|
-
},
|
|
16344
|
+
}, React.createElement("div", {
|
|
16340
16345
|
className: "kts-invoice-operate-buyer-message"
|
|
16341
|
-
},
|
|
16346
|
+
}, React.createElement("div", {
|
|
16342
16347
|
className: "kts-invoice-operate-buyer-title"
|
|
16343
|
-
},
|
|
16348
|
+
}, React.createElement("label", null, "\u8D2D\u4E70\u65B9")), React.createElement("div", {
|
|
16344
16349
|
className: "kts-invoice-operate-buyer-message-Import"
|
|
16345
|
-
}, model !== 'prefab' &&
|
|
16350
|
+
}, model !== 'prefab' && React.createElement(ImportBuyerButton, null)), React.createElement(Descriptions, {
|
|
16346
16351
|
className: "kts-invoice-operate-buyer-message-list",
|
|
16347
16352
|
size: "small",
|
|
16348
16353
|
column: 1,
|
|
16349
16354
|
bordered: true
|
|
16350
16355
|
}, formItem.map(function (item, i) {
|
|
16351
|
-
return
|
|
16356
|
+
return React.createElement(Descriptions.Item, {
|
|
16352
16357
|
key: i,
|
|
16353
16358
|
label: getlabel(item)
|
|
16354
|
-
},
|
|
16355
|
-
}))),
|
|
16359
|
+
}, React.createElement(Form.Item, null, getFieldDecorator(item.id, item.options)(autoContainer ? item.id === 'buyerName' ? React.createElement(BuyerNameInput, null) : item.node : item.node)));
|
|
16360
|
+
}))), React.createElement("div", {
|
|
16356
16361
|
className: "kts-invoice-operate-buyer-password"
|
|
16357
|
-
},
|
|
16362
|
+
}, React.createElement("div", {
|
|
16358
16363
|
className: "kts-invoice-operate-buyer-title"
|
|
16359
|
-
},
|
|
16364
|
+
}, React.createElement("label", null, "\u5BC6\u7801\u533A")), React.createElement("div", null))));
|
|
16360
16365
|
});
|
|
16361
16366
|
|
|
16362
16367
|
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";
|
|
@@ -16373,21 +16378,21 @@ var Sign = decorator(Form.create())(function (props) {
|
|
|
16373
16378
|
}, []); // 注册 form
|
|
16374
16379
|
|
|
16375
16380
|
controller.useForm('sign', form);
|
|
16376
|
-
return
|
|
16381
|
+
return React.createElement("div", {
|
|
16377
16382
|
className: "kts-invoice-operate-sign"
|
|
16378
|
-
},
|
|
16383
|
+
}, React.createElement(Form, _objectSpread2({}, formItemLayout), React.createElement("div", null, React.createElement(Form.Item, {
|
|
16379
16384
|
label: "\u6536\u6B3E\u4EBA"
|
|
16380
16385
|
}, getFieldDecorator('payee', {
|
|
16381
16386
|
initialValue: props.defaultPayee
|
|
16382
|
-
})(
|
|
16387
|
+
})(React.createElement(Input, {
|
|
16383
16388
|
size: "small"
|
|
16384
|
-
})))),
|
|
16389
|
+
})))), React.createElement("div", null, React.createElement(Form.Item, {
|
|
16385
16390
|
label: "\u590D\u6838\u4EBA"
|
|
16386
16391
|
}, getFieldDecorator('reviewer', {
|
|
16387
16392
|
initialValue: props.defaultReviewer
|
|
16388
|
-
})(
|
|
16393
|
+
})(React.createElement(Input, {
|
|
16389
16394
|
size: "small"
|
|
16390
|
-
})))),
|
|
16395
|
+
})))), React.createElement("div", null, React.createElement(Form.Item, {
|
|
16391
16396
|
label: "\u5F00\u7968\u4EBA"
|
|
16392
16397
|
}, getFieldDecorator('issuer', {
|
|
16393
16398
|
initialValue: props.defaultIssuer,
|
|
@@ -16395,7 +16400,7 @@ var Sign = decorator(Form.create())(function (props) {
|
|
|
16395
16400
|
required: true,
|
|
16396
16401
|
message: '请输入开票人'
|
|
16397
16402
|
}]
|
|
16398
|
-
})(
|
|
16403
|
+
})(React.createElement(Input, {
|
|
16399
16404
|
size: "small"
|
|
16400
16405
|
}))))));
|
|
16401
16406
|
});
|
|
@@ -16424,21 +16429,21 @@ var InvoiceHeaderDigtal = decorator(Form.create())(function (props) {
|
|
|
16424
16429
|
return '电子发票(增值税专用发票)';
|
|
16425
16430
|
}, [props.title]);
|
|
16426
16431
|
controller.useForm('invoiceHeader', form);
|
|
16427
|
-
return
|
|
16432
|
+
return React.createElement("div", {
|
|
16428
16433
|
className: "kts-invoice-operate-invoice-digtal-header"
|
|
16429
|
-
},
|
|
16434
|
+
}, React.createElement("div", {
|
|
16430
16435
|
className: "digtal-header-title"
|
|
16431
16436
|
}, title), form.getFieldDecorator('tag', {
|
|
16432
16437
|
initialValue: props.defaultTag
|
|
16433
|
-
})(
|
|
16438
|
+
})(React.createElement(Tag, null)), React.createElement("div", {
|
|
16434
16439
|
className: "digtal-header-fields"
|
|
16435
16440
|
}, form.getFieldDecorator('no', {
|
|
16436
16441
|
initialValue: props.defaultNo
|
|
16437
|
-
})(
|
|
16442
|
+
})(React.createElement(Field, {
|
|
16438
16443
|
title: "\u53D1\u7968\u53F7\u7801\uFF1A"
|
|
16439
16444
|
})), form.getFieldDecorator('invoicingDate', {
|
|
16440
16445
|
initialValue: props.defaultInvoicingDate
|
|
16441
|
-
})(
|
|
16446
|
+
})(React.createElement(Field, {
|
|
16442
16447
|
title: "\u5F00\u7968\u65E5\u671F\uFF1A"
|
|
16443
16448
|
}))));
|
|
16444
16449
|
});
|
|
@@ -16463,15 +16468,15 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
16463
16468
|
value = _this$props.value;
|
|
16464
16469
|
|
|
16465
16470
|
if (value) {
|
|
16466
|
-
return
|
|
16471
|
+
return React.createElement("div", {
|
|
16467
16472
|
className: "digtal-header-field"
|
|
16468
|
-
},
|
|
16473
|
+
}, React.createElement("div", {
|
|
16469
16474
|
className: "digtal-header-field-title"
|
|
16470
|
-
}, title),
|
|
16475
|
+
}, title), React.createElement("div", {
|
|
16471
16476
|
className: "digtal-header-field-value"
|
|
16472
16477
|
}, value));
|
|
16473
16478
|
} else {
|
|
16474
|
-
return
|
|
16479
|
+
return React.createElement(React.Fragment, null);
|
|
16475
16480
|
}
|
|
16476
16481
|
}
|
|
16477
16482
|
}]);
|
|
@@ -16493,9 +16498,9 @@ var Tag = /*#__PURE__*/function (_React$Component2) {
|
|
|
16493
16498
|
_createClass(Tag, [{
|
|
16494
16499
|
key: "render",
|
|
16495
16500
|
value: function render() {
|
|
16496
|
-
return this.props.value ?
|
|
16501
|
+
return this.props.value ? React.createElement("div", {
|
|
16497
16502
|
className: "digtal-header-tag"
|
|
16498
|
-
}, this.props.value) :
|
|
16503
|
+
}, this.props.value) : React.createElement(React.Fragment, null);
|
|
16499
16504
|
}
|
|
16500
16505
|
}]);
|
|
16501
16506
|
|
|
@@ -16671,57 +16676,57 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
16671
16676
|
return rulesMap[field] || defaultRules;
|
|
16672
16677
|
}, [rulesMap, isReadOnly, isReadOnly]);
|
|
16673
16678
|
controller.useForm('stakeholder', form);
|
|
16674
|
-
return
|
|
16679
|
+
return React.createElement("div", {
|
|
16675
16680
|
className: classNames("kts-invoice-operate-invoice-digtal-stakeholder", {
|
|
16676
16681
|
readOnly: readOnly
|
|
16677
16682
|
})
|
|
16678
|
-
},
|
|
16679
|
-
return
|
|
16680
|
-
}), !readOnly &&
|
|
16683
|
+
}, React.createElement("div", null, '购买方信息'.split('').map(function (e) {
|
|
16684
|
+
return React.createElement("span", null, e);
|
|
16685
|
+
}), !readOnly && React.createElement(Icon, {
|
|
16681
16686
|
className: "digtal-stakeholder-expand-button",
|
|
16682
16687
|
component: isExpand ? SvgArrowUp : SvgArrowDown,
|
|
16683
16688
|
onClick: onExpand
|
|
16684
|
-
})),
|
|
16689
|
+
})), React.createElement("div", null, React.createElement(Form, {
|
|
16685
16690
|
className: "digtal-stakeholder-form"
|
|
16686
|
-
},
|
|
16691
|
+
}, React.createElement(Row, {
|
|
16687
16692
|
gutter: [16, 0]
|
|
16688
|
-
}, props.isNaturalPerson === true &&
|
|
16693
|
+
}, props.isNaturalPerson === true && React.createElement(Col, {
|
|
16689
16694
|
span: 24
|
|
16690
|
-
},
|
|
16695
|
+
}, React.createElement(Form.Item, {
|
|
16691
16696
|
label: "\u8D2D\u4E70\u65B9\u4FE1\u606F",
|
|
16692
16697
|
colon: false
|
|
16693
|
-
}, getFieldDecorator('naturalPersonFlag', {})(
|
|
16698
|
+
}, getFieldDecorator('naturalPersonFlag', {})(React.createElement(NaturalPersonFlag, {
|
|
16694
16699
|
readOnly: isReadOnly('naturalPersonFlag')
|
|
16695
|
-
})))),
|
|
16700
|
+
})))), React.createElement(Col, {
|
|
16696
16701
|
span: 24
|
|
16697
|
-
},
|
|
16702
|
+
}, React.createElement(Form.Item, {
|
|
16698
16703
|
label: "\u540D\u79F0",
|
|
16699
16704
|
colon: false
|
|
16700
16705
|
}, getFieldDecorator('buyerName', {
|
|
16701
16706
|
rules: getRules('buyerName', RULES.companyName('购买方名称'))
|
|
16702
|
-
})(
|
|
16707
|
+
})(React.createElement(BuyerNameInput$1, {
|
|
16703
16708
|
myform: form,
|
|
16704
16709
|
fieldName: 'buyerName',
|
|
16705
16710
|
readOnly: isReadOnly('buyerName'),
|
|
16706
16711
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
16707
16712
|
autoComplete: "off",
|
|
16708
|
-
suffix: isShowImportButton === true &&
|
|
16713
|
+
suffix: isShowImportButton === true && React.createElement(Button$1, {
|
|
16709
16714
|
type: 'link',
|
|
16710
16715
|
style: {
|
|
16711
16716
|
padding: 0,
|
|
16712
16717
|
width: 20,
|
|
16713
16718
|
height: '100%'
|
|
16714
16719
|
},
|
|
16715
|
-
icon:
|
|
16720
|
+
icon: React.createElement(Icon, {
|
|
16716
16721
|
component: SvgPlus
|
|
16717
16722
|
}),
|
|
16718
16723
|
onClick: function onClick() {
|
|
16719
16724
|
onClickImportButton && onClickImportButton(controller);
|
|
16720
16725
|
}
|
|
16721
16726
|
})
|
|
16722
|
-
})))),
|
|
16727
|
+
})))), React.createElement(Col, {
|
|
16723
16728
|
span: 24
|
|
16724
|
-
},
|
|
16729
|
+
}, React.createElement(Form.Item, {
|
|
16725
16730
|
label: "\u7EDF\u4E00\u793E\u4F1A\u4FE1\u7528\u4EE3\u7801/\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7",
|
|
16726
16731
|
colon: false
|
|
16727
16732
|
}, getFieldDecorator('buyerTaxId', {
|
|
@@ -16729,15 +16734,15 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
16729
16734
|
required: !isVatNormal,
|
|
16730
16735
|
message: '购买方纳税人识别号必填'
|
|
16731
16736
|
}].concat(_toConsumableArray(RULES.taxId('购买方纳税人识别号'))))
|
|
16732
|
-
})(
|
|
16737
|
+
})(React.createElement(BuyerNameInput$1, {
|
|
16733
16738
|
myform: form,
|
|
16734
16739
|
fieldName: 'buyerTaxId',
|
|
16735
16740
|
readOnly: isReadOnly('buyerTaxId'),
|
|
16736
16741
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
16737
16742
|
autoComplete: "off"
|
|
16738
|
-
})))), isExpand &&
|
|
16743
|
+
})))), isExpand && React.createElement(React.Fragment, null, React.createElement(Col, {
|
|
16739
16744
|
span: 15
|
|
16740
|
-
},
|
|
16745
|
+
}, React.createElement(Form.Item, {
|
|
16741
16746
|
label: "\u8D2D\u4E70\u65B9\u5730\u5740",
|
|
16742
16747
|
colon: false
|
|
16743
16748
|
}, getFieldDecorator('buyerAddress', {
|
|
@@ -16745,77 +16750,77 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
16745
16750
|
max: 100,
|
|
16746
16751
|
message: '购买方地址内容超长'
|
|
16747
16752
|
}])
|
|
16748
|
-
})(
|
|
16753
|
+
})(React.createElement(MyInput$1, {
|
|
16749
16754
|
readOnly: isReadOnly('buyerAddress'),
|
|
16750
16755
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
16751
16756
|
autoComplete: "off"
|
|
16752
|
-
})))),
|
|
16757
|
+
})))), React.createElement(Col, {
|
|
16753
16758
|
span: 9
|
|
16754
|
-
},
|
|
16759
|
+
}, React.createElement(Form.Item, {
|
|
16755
16760
|
label: "\u7535\u8BDD",
|
|
16756
16761
|
colon: false
|
|
16757
16762
|
}, getFieldDecorator('buyerPhone', {
|
|
16758
16763
|
rules: getRules('buyerPhone', RULES.buyerTelPhone('购买方电话'))
|
|
16759
|
-
})(
|
|
16764
|
+
})(React.createElement(MyInput$1, {
|
|
16760
16765
|
readOnly: isReadOnly('buyerPhone'),
|
|
16761
16766
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
16762
16767
|
autoComplete: "off"
|
|
16763
|
-
})))),
|
|
16768
|
+
})))), React.createElement(Col, {
|
|
16764
16769
|
span: 12
|
|
16765
|
-
},
|
|
16770
|
+
}, React.createElement(Form.Item, {
|
|
16766
16771
|
label: "\u8D2D\u4E70\u65B9\u5F00\u6237\u94F6\u884C",
|
|
16767
16772
|
colon: false
|
|
16768
16773
|
}, getFieldDecorator('buyerBank', {
|
|
16769
16774
|
rules: getRules('buyerBank', RULES.bankName('购买方开户银行'))
|
|
16770
|
-
})(
|
|
16775
|
+
})(React.createElement(MyInput$1, {
|
|
16771
16776
|
readOnly: isReadOnly('buyerBank'),
|
|
16772
16777
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
16773
16778
|
autoComplete: "off"
|
|
16774
|
-
})))),
|
|
16779
|
+
})))), React.createElement(Col, {
|
|
16775
16780
|
span: 12
|
|
16776
|
-
},
|
|
16781
|
+
}, React.createElement(Form.Item, {
|
|
16777
16782
|
label: "\u94F6\u884C\u8D26\u53F7",
|
|
16778
16783
|
colon: false
|
|
16779
16784
|
}, getFieldDecorator('buyerAccount', {
|
|
16780
16785
|
rules: getRules('buyerAccount', RULES.bankAccount('购买方银行账号'))
|
|
16781
|
-
})(
|
|
16786
|
+
})(React.createElement(MyInput$1, {
|
|
16782
16787
|
readOnly: isReadOnly('buyerAccount'),
|
|
16783
16788
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
16784
16789
|
autoComplete: "off"
|
|
16785
|
-
})))))))),
|
|
16786
|
-
return
|
|
16787
|
-
}), !readOnly &&
|
|
16790
|
+
})))))))), React.createElement("div", null, '销售方信息'.split('').map(function (e) {
|
|
16791
|
+
return React.createElement("span", null, e);
|
|
16792
|
+
}), !readOnly && React.createElement(Icon, {
|
|
16788
16793
|
className: "digtal-stakeholder-expand-button",
|
|
16789
16794
|
component: isExpand ? SvgArrowUp : SvgArrowDown,
|
|
16790
16795
|
onClick: onExpand
|
|
16791
|
-
})),
|
|
16796
|
+
})), React.createElement("div", null, !readOnly && props.lineCredit && React.createElement("div", {
|
|
16792
16797
|
style: {
|
|
16793
16798
|
marginTop: 20
|
|
16794
16799
|
}
|
|
16795
|
-
},
|
|
16800
|
+
}, React.createElement(Tooltip$1, {
|
|
16796
16801
|
trigger: "click",
|
|
16797
16802
|
title: props.lineCredit
|
|
16798
|
-
},
|
|
16803
|
+
}, React.createElement(Button$1, {
|
|
16799
16804
|
type: "link"
|
|
16800
|
-
}, "\u67E5\u770B\u5F53\u524D\u53EF\u7528\u6388\u4FE1\u989D\u5EA6"))),
|
|
16805
|
+
}, "\u67E5\u770B\u5F53\u524D\u53EF\u7528\u6388\u4FE1\u989D\u5EA6"))), React.createElement(Form, {
|
|
16801
16806
|
className: "digtal-stakeholder-form"
|
|
16802
|
-
},
|
|
16807
|
+
}, React.createElement(Row, {
|
|
16803
16808
|
gutter: [16, 0]
|
|
16804
|
-
},
|
|
16809
|
+
}, React.createElement(Col, {
|
|
16805
16810
|
span: 24
|
|
16806
|
-
},
|
|
16811
|
+
}, React.createElement(Form.Item, {
|
|
16807
16812
|
label: "\u540D\u79F0",
|
|
16808
16813
|
colon: false
|
|
16809
16814
|
}, getFieldDecorator('supplierName', {
|
|
16810
16815
|
rules: getRules('supplierName', RULES.companyName('销售方名称')),
|
|
16811
16816
|
getValueFromEvent: formatCompanyName
|
|
16812
|
-
})(
|
|
16817
|
+
})(React.createElement(MyInput$1, {
|
|
16813
16818
|
readOnly: isReadOnly('supplierName'),
|
|
16814
16819
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
16815
16820
|
autoComplete: "off"
|
|
16816
|
-
})))),
|
|
16821
|
+
})))), React.createElement(Col, {
|
|
16817
16822
|
span: 24
|
|
16818
|
-
},
|
|
16823
|
+
}, React.createElement(Form.Item, {
|
|
16819
16824
|
label: "\u7EDF\u4E00\u793E\u4F1A\u4FE1\u7528\u4EE3\u7801/\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7",
|
|
16820
16825
|
colon: false
|
|
16821
16826
|
}, getFieldDecorator('supplierTaxId', {
|
|
@@ -16823,13 +16828,13 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
16823
16828
|
required: true,
|
|
16824
16829
|
message: '销售方纳税人识别号必填'
|
|
16825
16830
|
}].concat(_toConsumableArray(RULES.taxId('销售方纳税人识别号'))))
|
|
16826
|
-
})(
|
|
16831
|
+
})(React.createElement(MyInput$1, {
|
|
16827
16832
|
readOnly: isReadOnly('supplierTaxId'),
|
|
16828
16833
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
16829
16834
|
autoComplete: "off"
|
|
16830
|
-
})))), isExpand &&
|
|
16835
|
+
})))), isExpand && React.createElement(React.Fragment, null, React.createElement(Col, {
|
|
16831
16836
|
span: 15
|
|
16832
|
-
},
|
|
16837
|
+
}, React.createElement(Form.Item, {
|
|
16833
16838
|
label: "\u9500\u552E\u65B9\u5730\u5740",
|
|
16834
16839
|
colon: false
|
|
16835
16840
|
}, getFieldDecorator('sellerAddress', {
|
|
@@ -16837,40 +16842,40 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
16837
16842
|
max: 300,
|
|
16838
16843
|
message: '销售方地址内容超长'
|
|
16839
16844
|
}])
|
|
16840
|
-
})(
|
|
16845
|
+
})(React.createElement(MyInput$1, {
|
|
16841
16846
|
readOnly: isReadOnly('sellerAddress'),
|
|
16842
16847
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
16843
16848
|
autoComplete: "off"
|
|
16844
|
-
})))),
|
|
16849
|
+
})))), React.createElement(Col, {
|
|
16845
16850
|
span: 9
|
|
16846
|
-
},
|
|
16851
|
+
}, React.createElement(Form.Item, {
|
|
16847
16852
|
label: "\u7535\u8BDD",
|
|
16848
16853
|
colon: false
|
|
16849
16854
|
}, getFieldDecorator('sellerPhone', {
|
|
16850
16855
|
rules: getRules('sellerPhone', RULES.sellerTelPhone('销售方电话'))
|
|
16851
|
-
})(
|
|
16856
|
+
})(React.createElement(MyInput$1, {
|
|
16852
16857
|
readOnly: isReadOnly('sellerPhone'),
|
|
16853
16858
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
16854
16859
|
autoComplete: "off"
|
|
16855
|
-
})))),
|
|
16860
|
+
})))), React.createElement(Col, {
|
|
16856
16861
|
span: 12
|
|
16857
|
-
},
|
|
16862
|
+
}, React.createElement(Form.Item, {
|
|
16858
16863
|
label: "\u9500\u552E\u65B9\u5F00\u6237\u94F6\u884C",
|
|
16859
16864
|
colon: false
|
|
16860
16865
|
}, getFieldDecorator('sellerBank', {
|
|
16861
16866
|
rules: getRules('sellerBank', RULES.bankName('销售方开户银行'))
|
|
16862
|
-
})(
|
|
16867
|
+
})(React.createElement(MyInput$1, {
|
|
16863
16868
|
readOnly: isReadOnly('sellerBank'),
|
|
16864
16869
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
16865
16870
|
autoComplete: "off"
|
|
16866
|
-
})))),
|
|
16871
|
+
})))), React.createElement(Col, {
|
|
16867
16872
|
span: 12
|
|
16868
|
-
},
|
|
16873
|
+
}, React.createElement(Form.Item, {
|
|
16869
16874
|
label: "\u94F6\u884C\u8D26\u53F7",
|
|
16870
16875
|
colon: false
|
|
16871
16876
|
}, getFieldDecorator('sellerAccount', {
|
|
16872
16877
|
rules: getRules('sellerAccount', RULES.bankAccount('销售方银行账号'))
|
|
16873
|
-
})(
|
|
16878
|
+
})(React.createElement(MyInput$1, {
|
|
16874
16879
|
readOnly: isReadOnly('sellerAccount'),
|
|
16875
16880
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
16876
16881
|
autoComplete: "off"
|
|
@@ -16891,7 +16896,7 @@ function NaturalPersonFlag(props) {
|
|
|
16891
16896
|
React.useEffect(function () {
|
|
16892
16897
|
setValue(props.value || 'COMPANY');
|
|
16893
16898
|
}, [props.value]);
|
|
16894
|
-
return
|
|
16899
|
+
return React.createElement(Checkbox$1, {
|
|
16895
16900
|
disabled: props.readOnly,
|
|
16896
16901
|
checked: value === 'NATURAL',
|
|
16897
16902
|
onChange: onChange
|
|
@@ -16994,8 +16999,8 @@ function BuyerNameInput$1(props) {
|
|
|
16994
16999
|
return _ref.apply(this, arguments);
|
|
16995
17000
|
};
|
|
16996
17001
|
}(), [autoComplete.onBuyerNameSearch, fieldName]);
|
|
16997
|
-
if (props.readOnly) return
|
|
16998
|
-
return
|
|
17002
|
+
if (props.readOnly) return React.createElement("span", null, props.value);
|
|
17003
|
+
return React.createElement(AutoComplete$1, {
|
|
16999
17004
|
onSearch: onSearch,
|
|
17000
17005
|
options: options.map(function (e) {
|
|
17001
17006
|
return {
|
|
@@ -17004,7 +17009,7 @@ function BuyerNameInput$1(props) {
|
|
|
17004
17009
|
}),
|
|
17005
17010
|
onChange: onChangeAutoComplete,
|
|
17006
17011
|
value: props.value
|
|
17007
|
-
},
|
|
17012
|
+
}, React.createElement(Input$1, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
17008
17013
|
style: _objectSpread2({
|
|
17009
17014
|
width: '100%'
|
|
17010
17015
|
}, props.style)
|
|
@@ -17028,9 +17033,9 @@ var MyInput$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
17028
17033
|
var props = this.props;
|
|
17029
17034
|
|
|
17030
17035
|
if (props.readOnly) {
|
|
17031
|
-
return
|
|
17036
|
+
return React.createElement("span", null, props.value);
|
|
17032
17037
|
} else {
|
|
17033
|
-
return
|
|
17038
|
+
return React.createElement(Input$1, _objectSpread2({}, props));
|
|
17034
17039
|
}
|
|
17035
17040
|
}
|
|
17036
17041
|
}]);
|
|
@@ -17087,43 +17092,43 @@ var SignDigtal = decorator(Form.create())(function (props) {
|
|
|
17087
17092
|
controller.useForm('sign', form);
|
|
17088
17093
|
|
|
17089
17094
|
if (readOnly) {
|
|
17090
|
-
return
|
|
17095
|
+
return React.createElement("div", {
|
|
17091
17096
|
className: "kts-invoice-operate-sign-digtal-readOnly"
|
|
17092
|
-
},
|
|
17097
|
+
}, React.createElement("div", {
|
|
17093
17098
|
className: 'sign-digtal-readOnly-cont'
|
|
17094
|
-
},
|
|
17099
|
+
}, React.createElement("div", null, React.createElement("span", null, "\u5907"), React.createElement("span", null, "\u6CE8")), React.createElement("div", null, getFieldDecorator('remarks', {
|
|
17095
17100
|
initialValue: props.defaultRemark
|
|
17096
|
-
})(isEnables('remarks') ?
|
|
17101
|
+
})(isEnables('remarks') ? React.createElement(Input$1.TextArea, {
|
|
17097
17102
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
17098
17103
|
style: {
|
|
17099
17104
|
height: '100%'
|
|
17100
17105
|
}
|
|
17101
|
-
}) :
|
|
17106
|
+
}) : React.createElement(MyDiv$1, null)))), React.createElement(Form, {
|
|
17102
17107
|
layout: 'inline',
|
|
17103
17108
|
className: 'digtal-readOnly-form'
|
|
17104
|
-
},
|
|
17109
|
+
}, React.createElement(Form.Item, {
|
|
17105
17110
|
label: "\u5F00\u7968\u4EBA"
|
|
17106
17111
|
}, getFieldDecorator('drawer', {
|
|
17107
17112
|
initialValue: props.defaultRemark
|
|
17108
|
-
})(
|
|
17113
|
+
})(React.createElement(MyDiv$1, null)))));
|
|
17109
17114
|
} else {
|
|
17110
|
-
return
|
|
17115
|
+
return React.createElement("div", {
|
|
17111
17116
|
className: "kts-invoice-operate-sign-digtal"
|
|
17112
|
-
},
|
|
17117
|
+
}, React.createElement("div", {
|
|
17113
17118
|
className: 'sign-digtal-label'
|
|
17114
|
-
}, "\u5907\u6CE8\u4FE1\u606F"),
|
|
17119
|
+
}, "\u5907\u6CE8\u4FE1\u606F"), React.createElement(Form, null, React.createElement(Form.Item, {
|
|
17115
17120
|
label: "\u5907\u6CE8"
|
|
17116
17121
|
}, getFieldDecorator('remarks', {
|
|
17117
17122
|
initialValue: props.defaultRemark
|
|
17118
|
-
})(
|
|
17123
|
+
})(React.createElement(Input$1.TextArea, {
|
|
17119
17124
|
readOnly: isReadOnly('remarks'),
|
|
17120
17125
|
autoSize: true,
|
|
17121
17126
|
placeholder: "\u8BF7\u8F93\u5165"
|
|
17122
|
-
}))),
|
|
17127
|
+
}))), React.createElement(Form.Item, {
|
|
17123
17128
|
label: "\u5F00\u7968\u4EBA"
|
|
17124
17129
|
}, getFieldDecorator('drawer', {
|
|
17125
17130
|
initialValue: props.defaultIssuer
|
|
17126
|
-
})(
|
|
17131
|
+
})(React.createElement(Input$1, {
|
|
17127
17132
|
readOnly: isReadOnly('drawer'),
|
|
17128
17133
|
style: {
|
|
17129
17134
|
width: 313
|
|
@@ -17147,7 +17152,7 @@ var MyDiv$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
17147
17152
|
_createClass(MyDiv, [{
|
|
17148
17153
|
key: "render",
|
|
17149
17154
|
value: function render() {
|
|
17150
|
-
return
|
|
17155
|
+
return React.createElement("div", null, this.props.value);
|
|
17151
17156
|
}
|
|
17152
17157
|
}]);
|
|
17153
17158
|
|
|
@@ -17248,12 +17253,12 @@ function TableVirtual$1 (props) {
|
|
|
17248
17253
|
if (!cont) return;
|
|
17249
17254
|
cont.scrollTop = 0;
|
|
17250
17255
|
}, [(_props$dataSource2 = props.dataSource) === null || _props$dataSource2 === void 0 ? void 0 : _props$dataSource2.length]);
|
|
17251
|
-
return
|
|
17256
|
+
return React.createElement("span", {
|
|
17252
17257
|
className: "kts-invoice-operate-goods-table-virtual",
|
|
17253
17258
|
ref: function ref(e) {
|
|
17254
17259
|
setSelf(e);
|
|
17255
17260
|
}
|
|
17256
|
-
},
|
|
17261
|
+
}, React.createElement(TableManual, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
17257
17262
|
dataSource: dataSource,
|
|
17258
17263
|
// 新版本Table会有输入框无法连续输入的问题,先兼容老版本
|
|
17259
17264
|
tableComponent: Table
|
|
@@ -17366,51 +17371,51 @@ var Statistics$1 = (function () {
|
|
|
17366
17371
|
});
|
|
17367
17372
|
return sum.done().toNumber();
|
|
17368
17373
|
}, []);
|
|
17369
|
-
return
|
|
17374
|
+
return React.createElement("div", {
|
|
17370
17375
|
className: 'kts-invoice-operate-goods-list-statistics-digtal'
|
|
17371
|
-
},
|
|
17376
|
+
}, React.createElement("div", {
|
|
17372
17377
|
className: 'statistics-digtal-total'
|
|
17373
|
-
},
|
|
17378
|
+
}, React.createElement("div", null, "\u5408\u8BA1"), React.createElement("div", {
|
|
17374
17379
|
style: {
|
|
17375
17380
|
flex: 1
|
|
17376
17381
|
}
|
|
17377
|
-
}),
|
|
17382
|
+
}), React.createElement("div", {
|
|
17378
17383
|
style: {
|
|
17379
17384
|
width: 119,
|
|
17380
17385
|
textAlign: 'right',
|
|
17381
17386
|
paddingRight: 15
|
|
17382
17387
|
}
|
|
17383
|
-
}, "\xA5", parseFloat(isTaxIncluded ? lineAmountIncludeTax : lineAmountExcludeTax).toFixed(2)),
|
|
17388
|
+
}, "\xA5", parseFloat(isTaxIncluded ? lineAmountIncludeTax : lineAmountExcludeTax).toFixed(2)), React.createElement("div", {
|
|
17384
17389
|
style: {
|
|
17385
17390
|
width: 119,
|
|
17386
17391
|
textAlign: 'right',
|
|
17387
17392
|
paddingRight: 15
|
|
17388
17393
|
}
|
|
17389
|
-
}, "\xA5", parseFloat(taxAmount).toFixed(2))),
|
|
17394
|
+
}, "\xA5", parseFloat(taxAmount).toFixed(2))), React.createElement("div", {
|
|
17390
17395
|
className: 'statistics-digtal-total-tax'
|
|
17391
|
-
},
|
|
17396
|
+
}, React.createElement("div", null, "\u4EF7\u7A0E\u5408\u8BA1\uFF08\u5927\u5199\uFF09"), React.createElement("div", {
|
|
17392
17397
|
style: {
|
|
17393
17398
|
paddingLeft: 30
|
|
17394
17399
|
}
|
|
17395
|
-
},
|
|
17400
|
+
}, React.createElement(Icon, {
|
|
17396
17401
|
component: SvgFork
|
|
17397
|
-
}),
|
|
17402
|
+
}), React.createElement("span", {
|
|
17398
17403
|
style: {
|
|
17399
17404
|
fontWeight: 'bold',
|
|
17400
17405
|
marginLeft: 4
|
|
17401
17406
|
}
|
|
17402
17407
|
}, nzhcn$1.toMoney(lineAmountIncludeTax, {
|
|
17403
17408
|
outSymbol: false
|
|
17404
|
-
}))),
|
|
17409
|
+
}))), React.createElement("div", {
|
|
17405
17410
|
style: {
|
|
17406
17411
|
flex: 1
|
|
17407
17412
|
}
|
|
17408
|
-
}),
|
|
17413
|
+
}), React.createElement("div", {
|
|
17409
17414
|
style: {
|
|
17410
17415
|
width: 90,
|
|
17411
17416
|
color: '#9F613E'
|
|
17412
17417
|
}
|
|
17413
|
-
}, "\uFF08\u5C0F\u5199\uFF09"),
|
|
17418
|
+
}, "\uFF08\u5C0F\u5199\uFF09"), React.createElement("div", {
|
|
17414
17419
|
style: {
|
|
17415
17420
|
width: 119
|
|
17416
17421
|
}
|
|
@@ -17469,10 +17474,10 @@ var AddRowButton$1 = (function () {
|
|
|
17469
17474
|
}
|
|
17470
17475
|
}, _callee);
|
|
17471
17476
|
})), [controller, rootElement]);
|
|
17472
|
-
if (isAddRow === false) return
|
|
17473
|
-
if (model === 'prefab') return
|
|
17474
|
-
if (model === 'readOnly') return
|
|
17475
|
-
return
|
|
17477
|
+
if (isAddRow === false) return React.createElement(React.Fragment, null);
|
|
17478
|
+
if (model === 'prefab') return React.createElement(React.Fragment, null);
|
|
17479
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
17480
|
+
return React.createElement(Button$1, {
|
|
17476
17481
|
size: 'small',
|
|
17477
17482
|
type: 'primary',
|
|
17478
17483
|
onClick: onClick,
|
|
@@ -17625,11 +17630,11 @@ var TaxIncludedSwitch$1 = (function () {
|
|
|
17625
17630
|
};
|
|
17626
17631
|
}())();
|
|
17627
17632
|
}, []);
|
|
17628
|
-
return
|
|
17633
|
+
return React.createElement("span", null, React.createElement("label", {
|
|
17629
17634
|
style: {
|
|
17630
17635
|
marginRight: 2
|
|
17631
17636
|
}
|
|
17632
|
-
}, "\u542B\u7A0E"),
|
|
17637
|
+
}, "\u542B\u7A0E"), React.createElement(Switch, {
|
|
17633
17638
|
disabled: isSwitchTax === false,
|
|
17634
17639
|
checked: isTaxIncluded,
|
|
17635
17640
|
defaultChecked: true,
|
|
@@ -17725,12 +17730,12 @@ function Search$1() {
|
|
|
17725
17730
|
};
|
|
17726
17731
|
}());
|
|
17727
17732
|
}, [value, controller]);
|
|
17728
|
-
return
|
|
17733
|
+
return React.createElement(Input$1, {
|
|
17729
17734
|
readOnly: readOnly,
|
|
17730
17735
|
value: value,
|
|
17731
17736
|
className: "kts-invoice-operate-goods-list-search",
|
|
17732
17737
|
placeholder: "\u8BF7\u60A8\u8F93\u5165\u9879\u76EE\u540D\u79F0\u3001\u89C4\u683C\u578B\u53F7\u3001\u91D1\u989D(".concat(isTaxIncluded ? '含税' : '不含税', ")\u641C\u7D22"),
|
|
17733
|
-
prefix:
|
|
17738
|
+
prefix: React.createElement(Icon$1, {
|
|
17734
17739
|
component: SvgMagnifier$1,
|
|
17735
17740
|
style: {
|
|
17736
17741
|
color: "#b8b8b8"
|
|
@@ -17775,12 +17780,12 @@ function TableRow$1(props) {
|
|
|
17775
17780
|
return undefined;
|
|
17776
17781
|
}
|
|
17777
17782
|
}, [rowKey, goodsMap]);
|
|
17778
|
-
return rowKey === current && current ?
|
|
17783
|
+
return rowKey === current && current ? React.createElement("tr", {
|
|
17779
17784
|
style: {
|
|
17780
17785
|
height: 50,
|
|
17781
17786
|
position: 'relative'
|
|
17782
17787
|
}
|
|
17783
|
-
},
|
|
17788
|
+
}, React.createElement("div", {
|
|
17784
17789
|
style: {
|
|
17785
17790
|
height: 0.5,
|
|
17786
17791
|
width: '100%',
|
|
@@ -17788,9 +17793,7 @@ function TableRow$1(props) {
|
|
|
17788
17793
|
position: 'absolute',
|
|
17789
17794
|
bottom: 0
|
|
17790
17795
|
}
|
|
17791
|
-
})) :
|
|
17792
|
-
/*#__PURE__*/
|
|
17793
|
-
// <tr {...props} className={classnames(props.className, discount, (rowKey === container && current) ? 'kts-invoice-operate-goods-list-itemName-drag-container' : '')} />
|
|
17796
|
+
})) : // <tr {...props} className={classnames(props.className, discount, (rowKey === container && current) ? 'kts-invoice-operate-goods-list-itemName-drag-container' : '')} />
|
|
17794
17797
|
React.createElement("tr", _objectSpread2(_objectSpread2({}, props), {}, {
|
|
17795
17798
|
className: classNames(props.className, discount, rowKey === container && current ? 'kts-invoice-operate-goods-list-itemName-drag-container-' + site : undefined)
|
|
17796
17799
|
}));
|
|
@@ -17830,9 +17833,9 @@ var TitleText$1 = (function (props) {
|
|
|
17830
17833
|
return !!e.required;
|
|
17831
17834
|
})) || props.required;
|
|
17832
17835
|
}, [rules, props.required]);
|
|
17833
|
-
return
|
|
17836
|
+
return React.createElement(React.Fragment, null, required ? React.createElement(Text$5, {
|
|
17834
17837
|
type: "danger"
|
|
17835
|
-
}, "*") :
|
|
17838
|
+
}, "*") : React.createElement(React.Fragment, null), children);
|
|
17836
17839
|
});
|
|
17837
17840
|
|
|
17838
17841
|
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";
|
|
@@ -17970,14 +17973,14 @@ function ItemNameInput$1(props) {
|
|
|
17970
17973
|
};
|
|
17971
17974
|
}(), [autoComplete.onItemNameSearch]);
|
|
17972
17975
|
console.log('===> options', options);
|
|
17973
|
-
return
|
|
17976
|
+
return React.createElement("div", {
|
|
17974
17977
|
className: 'kts-invoice-operate-goods-list-itemName-input'
|
|
17975
|
-
}, props.shorthand &&
|
|
17978
|
+
}, props.shorthand && React.createElement("span", {
|
|
17976
17979
|
style: {
|
|
17977
17980
|
alignSelf: 'center',
|
|
17978
17981
|
fontSize: 12
|
|
17979
17982
|
}
|
|
17980
|
-
}, "*", props.shorthand, "*"),
|
|
17983
|
+
}, "*", props.shorthand, "*"), React.createElement(AutoComplete$1, {
|
|
17981
17984
|
onSearch: onSearch,
|
|
17982
17985
|
value: props.value,
|
|
17983
17986
|
options: options.map(function (e) {
|
|
@@ -17986,7 +17989,7 @@ function ItemNameInput$1(props) {
|
|
|
17986
17989
|
};
|
|
17987
17990
|
}),
|
|
17988
17991
|
onSelect: onChangeAutoComplete
|
|
17989
|
-
},
|
|
17992
|
+
}, React.createElement(Input$1, {
|
|
17990
17993
|
style: {
|
|
17991
17994
|
height: '100%'
|
|
17992
17995
|
},
|
|
@@ -19093,7 +19096,7 @@ function Drag$2(props) {
|
|
|
19093
19096
|
var currentGood = controller.state.goodsListState.goodsList.filter(function (e) {
|
|
19094
19097
|
return e.$index === record.$index;
|
|
19095
19098
|
})[0];
|
|
19096
|
-
mounting(
|
|
19099
|
+
mounting(React.createElement(DragDiv$1, _objectSpread2({}, currentGood)));
|
|
19097
19100
|
rowList.forEach(function (e) {
|
|
19098
19101
|
e.addEventListener('mousemove', onMousemove);
|
|
19099
19102
|
});
|
|
@@ -19254,7 +19257,7 @@ function Drag$2(props) {
|
|
|
19254
19257
|
|
|
19255
19258
|
|
|
19256
19259
|
function insert() {
|
|
19257
|
-
mounting(
|
|
19260
|
+
mounting(React.createElement(React.Fragment, null));
|
|
19258
19261
|
controller.run( /*#__PURE__*/function () {
|
|
19259
19262
|
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(s) {
|
|
19260
19263
|
var _s$goodsListState$dra, container, current, site, goodsList, goodsMap, _currentGood, currentIndex, moveGoods;
|
|
@@ -19333,7 +19336,7 @@ function Drag$2(props) {
|
|
|
19333
19336
|
}
|
|
19334
19337
|
}, [controller, record, disabled]);
|
|
19335
19338
|
var renderButton = React.useMemo(function () {
|
|
19336
|
-
return
|
|
19339
|
+
return React.createElement(Button, {
|
|
19337
19340
|
type: 'link',
|
|
19338
19341
|
style: {
|
|
19339
19342
|
padding: 0
|
|
@@ -19344,13 +19347,13 @@ function Drag$2(props) {
|
|
|
19344
19347
|
},
|
|
19345
19348
|
className: "kts-invoice-operate-goods-list-itemName-drag",
|
|
19346
19349
|
onMouseOver: controller.saveEditGood
|
|
19347
|
-
},
|
|
19350
|
+
}, React.createElement(Icon, {
|
|
19348
19351
|
component: SvgI001$1
|
|
19349
19352
|
}));
|
|
19350
19353
|
}, [onMouseDown, controller]);
|
|
19351
19354
|
|
|
19352
19355
|
if (disabled) {
|
|
19353
|
-
return
|
|
19356
|
+
return React.createElement(Popover, {
|
|
19354
19357
|
content: '您还有未编辑完成的商品',
|
|
19355
19358
|
trigger: 'focus'
|
|
19356
19359
|
}, renderButton);
|
|
@@ -19390,13 +19393,13 @@ function DragDiv$1(props) {
|
|
|
19390
19393
|
window.removeEventListener('mousemove', onMousemove);
|
|
19391
19394
|
};
|
|
19392
19395
|
});
|
|
19393
|
-
return
|
|
19396
|
+
return React.createElement("div", {
|
|
19394
19397
|
className: "kts-invoice-operate-goods-list-itemName-drag-div",
|
|
19395
19398
|
style: {
|
|
19396
19399
|
top: y,
|
|
19397
19400
|
left: x
|
|
19398
19401
|
}
|
|
19399
|
-
},
|
|
19402
|
+
}, React.createElement("span", null, props.itemName), React.createElement("span", null, props.itemModelName), React.createElement("span", null, props.unit));
|
|
19400
19403
|
}
|
|
19401
19404
|
|
|
19402
19405
|
var useColumns$1 = (function (form) {
|
|
@@ -19512,7 +19515,7 @@ var useColumns$1 = (function (form) {
|
|
|
19512
19515
|
width: 40,
|
|
19513
19516
|
align: 'center',
|
|
19514
19517
|
render: function render(_, record) {
|
|
19515
|
-
return
|
|
19518
|
+
return React.createElement(Drag$2, {
|
|
19516
19519
|
record: record
|
|
19517
19520
|
});
|
|
19518
19521
|
}
|
|
@@ -19522,20 +19525,20 @@ var useColumns$1 = (function (form) {
|
|
|
19522
19525
|
dataIndex: 'serialNo',
|
|
19523
19526
|
width: 50,
|
|
19524
19527
|
render: function render(e) {
|
|
19525
|
-
return
|
|
19528
|
+
return React.createElement("span", {
|
|
19526
19529
|
style: {
|
|
19527
19530
|
padding: '0 10px'
|
|
19528
19531
|
}
|
|
19529
19532
|
}, e);
|
|
19530
19533
|
}
|
|
19531
19534
|
}, {
|
|
19532
|
-
title:
|
|
19535
|
+
title: React.createElement(TitleText$1, {
|
|
19533
19536
|
required: true
|
|
19534
19537
|
}, "\u9879\u76EE\u540D\u79F0"),
|
|
19535
19538
|
key: 'itemName',
|
|
19536
19539
|
render: function render(_, record) {
|
|
19537
19540
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
19538
|
-
return
|
|
19541
|
+
return React.createElement(Form.Item, null, React.createElement("div", {
|
|
19539
19542
|
style: {
|
|
19540
19543
|
display: 'flex'
|
|
19541
19544
|
}
|
|
@@ -19582,12 +19585,12 @@ var useColumns$1 = (function (form) {
|
|
|
19582
19585
|
return validator;
|
|
19583
19586
|
}()
|
|
19584
19587
|
}])
|
|
19585
|
-
})(
|
|
19588
|
+
})(React.createElement(ItemNameInput$1, {
|
|
19586
19589
|
editGood: editGood,
|
|
19587
19590
|
shorthand: editGood.shorthand,
|
|
19588
|
-
suffix:
|
|
19591
|
+
suffix: React.createElement(Tooltip$1, {
|
|
19589
19592
|
title: "\u70B9\u51FB\u4ECE\u5546\u54C1\u7BA1\u7406\u4E2D\u6DFB\u52A0\u5546\u54C1\u4FE1\u606F"
|
|
19590
|
-
},
|
|
19593
|
+
}, React.createElement(Button$1, {
|
|
19591
19594
|
type: "link",
|
|
19592
19595
|
style: {
|
|
19593
19596
|
padding: 0,
|
|
@@ -19595,7 +19598,7 @@ var useColumns$1 = (function (form) {
|
|
|
19595
19598
|
fontSize: 20,
|
|
19596
19599
|
fill: '#0074ff'
|
|
19597
19600
|
},
|
|
19598
|
-
icon:
|
|
19601
|
+
icon: React.createElement(SvgPlus$1, null),
|
|
19599
19602
|
onClick: controller.pipeline( /*#__PURE__*/function () {
|
|
19600
19603
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(s) {
|
|
19601
19604
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
@@ -19622,9 +19625,9 @@ var useColumns$1 = (function (form) {
|
|
|
19622
19625
|
}
|
|
19623
19626
|
}))));
|
|
19624
19627
|
} else {
|
|
19625
|
-
return
|
|
19628
|
+
return React.createElement("span", null, record.lineAttribute === LineAttributeType$1.折扣行 ? React.createElement("span", {
|
|
19626
19629
|
className: 'goods-list-digtal-discount-tag'
|
|
19627
|
-
}, "\u6298\u6263") :
|
|
19630
|
+
}, "\u6298\u6263") : React.createElement(React.Fragment, null), React.createElement(MyItemNameDiv$1, {
|
|
19628
19631
|
valueT: formatSearch$1(getItemNameWithShorthand({
|
|
19629
19632
|
shorthand: record.shorthand,
|
|
19630
19633
|
full: record.itemNameSelf || ''
|
|
@@ -19638,17 +19641,17 @@ var useColumns$1 = (function (form) {
|
|
|
19638
19641
|
}
|
|
19639
19642
|
}
|
|
19640
19643
|
}, {
|
|
19641
|
-
title:
|
|
19644
|
+
title: React.createElement(TitleText$1, {
|
|
19642
19645
|
rules: (_columnsReplenish$ite = columnsReplenish['itemModelName']) === null || _columnsReplenish$ite === void 0 ? void 0 : _columnsReplenish$ite.rules
|
|
19643
19646
|
}, "\u89C4\u683C\u578B\u53F7"),
|
|
19644
19647
|
key: 'itemModelName',
|
|
19645
19648
|
width: 119,
|
|
19646
19649
|
render: function render(_, record) {
|
|
19647
19650
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
19648
|
-
return
|
|
19651
|
+
return React.createElement(Form.Item, null, getFieldDecorator('itemModelName', {
|
|
19649
19652
|
initialValue: isMyShow ? editGood.itemModelNameSelf : editGood.itemModelName,
|
|
19650
19653
|
rules: getReplenishRules('itemModelName')
|
|
19651
|
-
})(
|
|
19654
|
+
})(React.createElement(MyInput$2, {
|
|
19652
19655
|
onChange: function () {
|
|
19653
19656
|
var _onChange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
19654
19657
|
var key, value;
|
|
@@ -19681,7 +19684,7 @@ var useColumns$1 = (function (form) {
|
|
|
19681
19684
|
}()
|
|
19682
19685
|
})));
|
|
19683
19686
|
} else {
|
|
19684
|
-
return
|
|
19687
|
+
return React.createElement(MyItemNameDiv$1, {
|
|
19685
19688
|
valueT: formatSearch$1(record.itemModelNameSelf, searchValue),
|
|
19686
19689
|
valueF: formatSearch$1(record.itemModelName, searchValue),
|
|
19687
19690
|
isMyShow: isMyShow
|
|
@@ -19689,17 +19692,17 @@ var useColumns$1 = (function (form) {
|
|
|
19689
19692
|
}
|
|
19690
19693
|
}
|
|
19691
19694
|
}, {
|
|
19692
|
-
title:
|
|
19695
|
+
title: React.createElement(TitleText$1, {
|
|
19693
19696
|
rules: (_columnsReplenish$uni = columnsReplenish['unit']) === null || _columnsReplenish$uni === void 0 ? void 0 : _columnsReplenish$uni.rules
|
|
19694
19697
|
}, "\u5355\u4F4D"),
|
|
19695
19698
|
key: 'unit',
|
|
19696
19699
|
width: 70,
|
|
19697
19700
|
render: function render(_, record) {
|
|
19698
19701
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
19699
|
-
return
|
|
19702
|
+
return React.createElement(Form.Item, null, getFieldDecorator('unit', {
|
|
19700
19703
|
initialValue: editGood.unit,
|
|
19701
19704
|
rules: getReplenishRules('unit')
|
|
19702
|
-
})(
|
|
19705
|
+
})(React.createElement(AutoComplete$1, {
|
|
19703
19706
|
style: {
|
|
19704
19707
|
width: '100%'
|
|
19705
19708
|
},
|
|
@@ -19737,7 +19740,7 @@ var useColumns$1 = (function (form) {
|
|
|
19737
19740
|
}()
|
|
19738
19741
|
})));
|
|
19739
19742
|
} else {
|
|
19740
|
-
return
|
|
19743
|
+
return React.createElement("span", {
|
|
19741
19744
|
style: {
|
|
19742
19745
|
padding: '0 10px'
|
|
19743
19746
|
}
|
|
@@ -19745,7 +19748,7 @@ var useColumns$1 = (function (form) {
|
|
|
19745
19748
|
}
|
|
19746
19749
|
}
|
|
19747
19750
|
}, {
|
|
19748
|
-
title:
|
|
19751
|
+
title: React.createElement(TitleText$1, {
|
|
19749
19752
|
rules: (_columnsReplenish$qua = columnsReplenish['quantity']) === null || _columnsReplenish$qua === void 0 ? void 0 : _columnsReplenish$qua.rules
|
|
19750
19753
|
}, "\u6570\u91CF"),
|
|
19751
19754
|
dataIndex: 'quantity',
|
|
@@ -19754,7 +19757,7 @@ var useColumns$1 = (function (form) {
|
|
|
19754
19757
|
width: 149,
|
|
19755
19758
|
render: function render(value, record) {
|
|
19756
19759
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
19757
|
-
return
|
|
19760
|
+
return React.createElement(Form.Item, null, getFieldDecorator('quantity', {
|
|
19758
19761
|
initialValue: editGood.quantity,
|
|
19759
19762
|
getValueFromEvent: onNumberValueChange,
|
|
19760
19763
|
rules: [].concat(_toConsumableArray(getReplenishRules('quantity')), [{
|
|
@@ -19800,7 +19803,7 @@ var useColumns$1 = (function (form) {
|
|
|
19800
19803
|
return validator;
|
|
19801
19804
|
}()
|
|
19802
19805
|
}])
|
|
19803
|
-
})(
|
|
19806
|
+
})(React.createElement(MyInput$2, {
|
|
19804
19807
|
style: {
|
|
19805
19808
|
textAlign: 'right'
|
|
19806
19809
|
},
|
|
@@ -19832,7 +19835,7 @@ var useColumns$1 = (function (form) {
|
|
|
19832
19835
|
}()
|
|
19833
19836
|
})));
|
|
19834
19837
|
} else {
|
|
19835
|
-
return
|
|
19838
|
+
return React.createElement("span", {
|
|
19836
19839
|
style: {
|
|
19837
19840
|
padding: '0 10px'
|
|
19838
19841
|
}
|
|
@@ -19840,7 +19843,7 @@ var useColumns$1 = (function (form) {
|
|
|
19840
19843
|
}
|
|
19841
19844
|
}
|
|
19842
19845
|
}, {
|
|
19843
|
-
title:
|
|
19846
|
+
title: React.createElement(TitleText$1, {
|
|
19844
19847
|
rules: (_columnsReplenish$pri = columnsReplenish['priceIncludeTax']) === null || _columnsReplenish$pri === void 0 ? void 0 : _columnsReplenish$pri.rules
|
|
19845
19848
|
}, "\u5355\u4EF7(\u542B\u7A0E)"),
|
|
19846
19849
|
dataIndex: 'priceIncludeTax',
|
|
@@ -19849,7 +19852,7 @@ var useColumns$1 = (function (form) {
|
|
|
19849
19852
|
width: 149,
|
|
19850
19853
|
render: function render(value, record) {
|
|
19851
19854
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
19852
|
-
return
|
|
19855
|
+
return React.createElement(Form.Item, null, getFieldDecorator('priceIncludeTax', {
|
|
19853
19856
|
initialValue: editGood.priceIncludeTax,
|
|
19854
19857
|
getValueFromEvent: onNumberValueChange,
|
|
19855
19858
|
rules: [].concat(_toConsumableArray(getReplenishRules('priceIncludeTax')), [{
|
|
@@ -19895,7 +19898,7 @@ var useColumns$1 = (function (form) {
|
|
|
19895
19898
|
return validator;
|
|
19896
19899
|
}()
|
|
19897
19900
|
}])
|
|
19898
|
-
})(
|
|
19901
|
+
})(React.createElement(MyInput$2, {
|
|
19899
19902
|
style: {
|
|
19900
19903
|
textAlign: 'right'
|
|
19901
19904
|
},
|
|
@@ -19907,7 +19910,7 @@ var useColumns$1 = (function (form) {
|
|
|
19907
19910
|
}
|
|
19908
19911
|
})));
|
|
19909
19912
|
} else {
|
|
19910
|
-
return
|
|
19913
|
+
return React.createElement("span", {
|
|
19911
19914
|
style: {
|
|
19912
19915
|
padding: '0 10px'
|
|
19913
19916
|
}
|
|
@@ -19915,7 +19918,7 @@ var useColumns$1 = (function (form) {
|
|
|
19915
19918
|
}
|
|
19916
19919
|
}
|
|
19917
19920
|
}, {
|
|
19918
|
-
title:
|
|
19921
|
+
title: React.createElement(TitleText$1, {
|
|
19919
19922
|
rules: (_columnsReplenish$pri2 = columnsReplenish['priceExcludeTax']) === null || _columnsReplenish$pri2 === void 0 ? void 0 : _columnsReplenish$pri2.rules
|
|
19920
19923
|
}, "\u5355\u4EF7(\u4E0D\u542B\u7A0E)"),
|
|
19921
19924
|
dataIndex: 'priceExcludeTax',
|
|
@@ -19924,7 +19927,7 @@ var useColumns$1 = (function (form) {
|
|
|
19924
19927
|
width: 149,
|
|
19925
19928
|
render: function render(value, record) {
|
|
19926
19929
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
19927
|
-
return
|
|
19930
|
+
return React.createElement(Form.Item, null, getFieldDecorator('priceExcludeTax', {
|
|
19928
19931
|
initialValue: editGood.priceExcludeTax,
|
|
19929
19932
|
getValueFromEvent: onNumberValueChange,
|
|
19930
19933
|
rules: [].concat(_toConsumableArray(getReplenishRules('priceExcludeTax')), [{
|
|
@@ -19970,7 +19973,7 @@ var useColumns$1 = (function (form) {
|
|
|
19970
19973
|
return validator;
|
|
19971
19974
|
}()
|
|
19972
19975
|
}])
|
|
19973
|
-
})(
|
|
19976
|
+
})(React.createElement(MyInput$2, {
|
|
19974
19977
|
style: {
|
|
19975
19978
|
textAlign: 'right'
|
|
19976
19979
|
},
|
|
@@ -19982,7 +19985,7 @@ var useColumns$1 = (function (form) {
|
|
|
19982
19985
|
}
|
|
19983
19986
|
})));
|
|
19984
19987
|
} else {
|
|
19985
|
-
return
|
|
19988
|
+
return React.createElement("span", {
|
|
19986
19989
|
style: {
|
|
19987
19990
|
padding: '0 10px'
|
|
19988
19991
|
}
|
|
@@ -19990,7 +19993,7 @@ var useColumns$1 = (function (form) {
|
|
|
19990
19993
|
}
|
|
19991
19994
|
}
|
|
19992
19995
|
}, {
|
|
19993
|
-
title:
|
|
19996
|
+
title: React.createElement(TitleText$1, {
|
|
19994
19997
|
required: true
|
|
19995
19998
|
}, "\u91D1\u989D(\u542B\u7A0E)"),
|
|
19996
19999
|
dataIndex: 'lineAmountIncludeTax',
|
|
@@ -19999,7 +20002,7 @@ var useColumns$1 = (function (form) {
|
|
|
19999
20002
|
align: 'right',
|
|
20000
20003
|
render: function render(value, record) {
|
|
20001
20004
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
20002
|
-
return
|
|
20005
|
+
return React.createElement(Form.Item, null, getFieldDecorator('lineAmountIncludeTax', {
|
|
20003
20006
|
initialValue: editGood.lineAmountIncludeTax,
|
|
20004
20007
|
getValueFromEvent: onNumberValueChange,
|
|
20005
20008
|
rules: [].concat(_toConsumableArray(getReplenishRules('lineAmountIncludeTax')), [{
|
|
@@ -20059,7 +20062,7 @@ var useColumns$1 = (function (form) {
|
|
|
20059
20062
|
return validator;
|
|
20060
20063
|
}()
|
|
20061
20064
|
}])
|
|
20062
|
-
})(
|
|
20065
|
+
})(React.createElement(MyInput$2, {
|
|
20063
20066
|
style: {
|
|
20064
20067
|
textAlign: 'right'
|
|
20065
20068
|
},
|
|
@@ -20070,7 +20073,7 @@ var useColumns$1 = (function (form) {
|
|
|
20070
20073
|
}
|
|
20071
20074
|
})));
|
|
20072
20075
|
} else {
|
|
20073
|
-
return
|
|
20076
|
+
return React.createElement("span", {
|
|
20074
20077
|
style: {
|
|
20075
20078
|
padding: '0 10px'
|
|
20076
20079
|
}
|
|
@@ -20078,7 +20081,7 @@ var useColumns$1 = (function (form) {
|
|
|
20078
20081
|
}
|
|
20079
20082
|
}
|
|
20080
20083
|
}, {
|
|
20081
|
-
title:
|
|
20084
|
+
title: React.createElement(TitleText$1, {
|
|
20082
20085
|
required: true
|
|
20083
20086
|
}, "\u91D1\u989D(\u4E0D\u542B\u7A0E)"),
|
|
20084
20087
|
dataIndex: 'lineAmountExcludeTax',
|
|
@@ -20087,7 +20090,7 @@ var useColumns$1 = (function (form) {
|
|
|
20087
20090
|
width: 119,
|
|
20088
20091
|
render: function render(value, record) {
|
|
20089
20092
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
20090
|
-
return
|
|
20093
|
+
return React.createElement(Form.Item, null, getFieldDecorator('lineAmountExcludeTax', {
|
|
20091
20094
|
initialValue: editGood.lineAmountExcludeTax,
|
|
20092
20095
|
getValueFromEvent: onNumberValueChange,
|
|
20093
20096
|
rules: [].concat(_toConsumableArray(getReplenishRules('lineAmountExcludeTax')), [{
|
|
@@ -20122,7 +20125,7 @@ var useColumns$1 = (function (form) {
|
|
|
20122
20125
|
return validator;
|
|
20123
20126
|
}()
|
|
20124
20127
|
}])
|
|
20125
|
-
})(
|
|
20128
|
+
})(React.createElement(MyInput$2, {
|
|
20126
20129
|
style: {
|
|
20127
20130
|
textAlign: 'right'
|
|
20128
20131
|
},
|
|
@@ -20133,7 +20136,7 @@ var useColumns$1 = (function (form) {
|
|
|
20133
20136
|
}
|
|
20134
20137
|
})));
|
|
20135
20138
|
} else {
|
|
20136
|
-
return
|
|
20139
|
+
return React.createElement("span", {
|
|
20137
20140
|
style: {
|
|
20138
20141
|
padding: '0 10px'
|
|
20139
20142
|
}
|
|
@@ -20141,7 +20144,7 @@ var useColumns$1 = (function (form) {
|
|
|
20141
20144
|
}
|
|
20142
20145
|
}
|
|
20143
20146
|
}, {
|
|
20144
|
-
title:
|
|
20147
|
+
title: React.createElement(TitleText$1, {
|
|
20145
20148
|
required: true
|
|
20146
20149
|
}, "\u7A0E\u7387%"),
|
|
20147
20150
|
dataIndex: 'taxRate',
|
|
@@ -20150,7 +20153,7 @@ var useColumns$1 = (function (form) {
|
|
|
20150
20153
|
width: 70,
|
|
20151
20154
|
render: function render(value, record) {
|
|
20152
20155
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
20153
|
-
return
|
|
20156
|
+
return React.createElement(Form.Item, null, getFieldDecorator('taxRate', {
|
|
20154
20157
|
initialValue: editGood.taxRate,
|
|
20155
20158
|
rules: [].concat(_toConsumableArray(getReplenishRules('taxRate')), [{
|
|
20156
20159
|
required: true,
|
|
@@ -20159,7 +20162,7 @@ var useColumns$1 = (function (form) {
|
|
|
20159
20162
|
pattern: /^[+-]?(0|([1-9]\d*))(\.\d+)?$/,
|
|
20160
20163
|
message: ' '
|
|
20161
20164
|
}])
|
|
20162
|
-
})(
|
|
20165
|
+
})(React.createElement(Select$1, {
|
|
20163
20166
|
className: "kts-invoice-operate-goods-list-table-tax-rate",
|
|
20164
20167
|
// dropdownMenuStyle={{ textAlign: "right" }}
|
|
20165
20168
|
showArrow: false,
|
|
@@ -20171,13 +20174,13 @@ var useColumns$1 = (function (form) {
|
|
|
20171
20174
|
onChangeTaxRate$1(controller, form, record);
|
|
20172
20175
|
}
|
|
20173
20176
|
}, taxRateList.map(function (e, i) {
|
|
20174
|
-
return
|
|
20177
|
+
return React.createElement(Select$1.Option, {
|
|
20175
20178
|
key: i,
|
|
20176
20179
|
value: e
|
|
20177
20180
|
}, e, "%");
|
|
20178
20181
|
}))));
|
|
20179
20182
|
} else {
|
|
20180
|
-
return
|
|
20183
|
+
return React.createElement("span", {
|
|
20181
20184
|
style: {
|
|
20182
20185
|
padding: '0 10px'
|
|
20183
20186
|
}
|
|
@@ -20185,7 +20188,7 @@ var useColumns$1 = (function (form) {
|
|
|
20185
20188
|
}
|
|
20186
20189
|
}
|
|
20187
20190
|
}, {
|
|
20188
|
-
title:
|
|
20191
|
+
title: React.createElement(TitleText$1, {
|
|
20189
20192
|
rules: (_columnsReplenish$tax = columnsReplenish['taxAmount']) === null || _columnsReplenish$tax === void 0 ? void 0 : _columnsReplenish$tax.rules
|
|
20190
20193
|
}, "\u7A0E\u989D"),
|
|
20191
20194
|
dataIndex: 'taxAmount',
|
|
@@ -20197,11 +20200,11 @@ var useColumns$1 = (function (form) {
|
|
|
20197
20200
|
return getFieldDecorator('taxAmount', {
|
|
20198
20201
|
initialValue: editGood.taxAmount,
|
|
20199
20202
|
rules: getReplenishRules('taxAmount')
|
|
20200
|
-
})(
|
|
20203
|
+
})(React.createElement(MyDiv$2, {
|
|
20201
20204
|
loading: isCipher$1(changeField, 'taxAmount')
|
|
20202
20205
|
}));
|
|
20203
20206
|
} else {
|
|
20204
|
-
return
|
|
20207
|
+
return React.createElement("span", {
|
|
20205
20208
|
style: {
|
|
20206
20209
|
padding: '0 10px'
|
|
20207
20210
|
}
|
|
@@ -20268,13 +20271,13 @@ var MyInput$2 = /*#__PURE__*/function (_React$Component) {
|
|
|
20268
20271
|
key: "render",
|
|
20269
20272
|
value: function render() {
|
|
20270
20273
|
if (this.props.loading) {
|
|
20271
|
-
return
|
|
20274
|
+
return React.createElement(Spin$1, {
|
|
20272
20275
|
size: "small"
|
|
20273
|
-
},
|
|
20276
|
+
}, React.createElement(Input$1, _objectSpread2(_objectSpread2({}, this.props), {}, {
|
|
20274
20277
|
autoComplete: "off"
|
|
20275
20278
|
})));
|
|
20276
20279
|
} else {
|
|
20277
|
-
return
|
|
20280
|
+
return React.createElement(Input$1, _objectSpread2(_objectSpread2({}, this.props), {}, {
|
|
20278
20281
|
autoComplete: "off"
|
|
20279
20282
|
}));
|
|
20280
20283
|
}
|
|
@@ -20299,15 +20302,15 @@ var MyDiv$2 = /*#__PURE__*/function (_React$Component2) {
|
|
|
20299
20302
|
key: "render",
|
|
20300
20303
|
value: function render() {
|
|
20301
20304
|
if (this.props.loading) {
|
|
20302
|
-
return
|
|
20305
|
+
return React.createElement(Spin$1, {
|
|
20303
20306
|
size: "small"
|
|
20304
|
-
},
|
|
20307
|
+
}, React.createElement("span", {
|
|
20305
20308
|
style: {
|
|
20306
20309
|
padding: '0 10px'
|
|
20307
20310
|
}
|
|
20308
20311
|
}, this.props.value));
|
|
20309
20312
|
} else {
|
|
20310
|
-
return
|
|
20313
|
+
return React.createElement("span", {
|
|
20311
20314
|
style: {
|
|
20312
20315
|
padding: '0 10px'
|
|
20313
20316
|
}
|
|
@@ -20340,18 +20343,18 @@ var MyItemNameDiv$1 = /*#__PURE__*/function (_React$Component3) {
|
|
|
20340
20343
|
|
|
20341
20344
|
if (isMyShow) {
|
|
20342
20345
|
if (valueT) {
|
|
20343
|
-
return
|
|
20346
|
+
return React.createElement(Tooltip$1, {
|
|
20344
20347
|
title: valueT
|
|
20345
|
-
},
|
|
20348
|
+
}, React.createElement("span", {
|
|
20346
20349
|
style: {
|
|
20347
20350
|
padding: '0 10px',
|
|
20348
20351
|
color: '#0074ff'
|
|
20349
20352
|
}
|
|
20350
20353
|
}, valueT));
|
|
20351
20354
|
} else {
|
|
20352
|
-
return
|
|
20355
|
+
return React.createElement(Tooltip$1, {
|
|
20353
20356
|
title: valueF
|
|
20354
|
-
},
|
|
20357
|
+
}, React.createElement("span", {
|
|
20355
20358
|
style: {
|
|
20356
20359
|
padding: '0 10px'
|
|
20357
20360
|
}
|
|
@@ -20359,17 +20362,17 @@ var MyItemNameDiv$1 = /*#__PURE__*/function (_React$Component3) {
|
|
|
20359
20362
|
}
|
|
20360
20363
|
} else {
|
|
20361
20364
|
if (valueF) {
|
|
20362
|
-
return
|
|
20365
|
+
return React.createElement(Tooltip$1, {
|
|
20363
20366
|
title: valueF
|
|
20364
|
-
},
|
|
20367
|
+
}, React.createElement("span", {
|
|
20365
20368
|
style: {
|
|
20366
20369
|
padding: '0 10px'
|
|
20367
20370
|
}
|
|
20368
20371
|
}, valueF));
|
|
20369
20372
|
} else {
|
|
20370
|
-
return
|
|
20373
|
+
return React.createElement(Tooltip$1, {
|
|
20371
20374
|
title: valueT
|
|
20372
|
-
},
|
|
20375
|
+
}, React.createElement("span", {
|
|
20373
20376
|
style: {
|
|
20374
20377
|
padding: '0 10px',
|
|
20375
20378
|
color: '#0074ff'
|
|
@@ -20392,7 +20395,7 @@ function formatSearch$1(value, search) {
|
|
|
20392
20395
|
return dcoding$1(e);
|
|
20393
20396
|
}).join("<span class=\"kts-invoice-operate-goods-list-table-search-protrude\" >".concat(search, "</span>"));
|
|
20394
20397
|
|
|
20395
|
-
return
|
|
20398
|
+
return React.createElement("span", {
|
|
20396
20399
|
dangerouslySetInnerHTML: {
|
|
20397
20400
|
__html: __html
|
|
20398
20401
|
}
|
|
@@ -20771,7 +20774,7 @@ var useRowSelection$1 = (function () {
|
|
|
20771
20774
|
};
|
|
20772
20775
|
}(), [controller]);
|
|
20773
20776
|
var columnTitle = React.useMemo(function () {
|
|
20774
|
-
return
|
|
20777
|
+
return React.createElement(Checkbox, {
|
|
20775
20778
|
onChange: onClickSelectAll,
|
|
20776
20779
|
indeterminate: indeterminate,
|
|
20777
20780
|
checked: isAll
|
|
@@ -20920,19 +20923,19 @@ var useDelRowButton$1 = (function () {
|
|
|
20920
20923
|
}, _callee2);
|
|
20921
20924
|
})), []);
|
|
20922
20925
|
var menuItem = React.useMemo(function () {
|
|
20923
|
-
if (model === 'prefab') return
|
|
20924
|
-
if (model === 'readOnly') return
|
|
20925
|
-
return
|
|
20926
|
+
if (model === 'prefab') return React.createElement(React.Fragment, null);
|
|
20927
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
20928
|
+
return React.createElement(Menu$1.Item, {
|
|
20926
20929
|
key: "1",
|
|
20927
20930
|
onClick: onClick,
|
|
20928
20931
|
disabled: disabled
|
|
20929
20932
|
}, " \u5220\u9664\u884C ");
|
|
20930
20933
|
}, [model, onClick, disabled]);
|
|
20931
20934
|
var button = React.useMemo(function () {
|
|
20932
|
-
if (isRemRow === false) return
|
|
20933
|
-
if (model === 'prefab') return
|
|
20934
|
-
if (model === 'readOnly') return
|
|
20935
|
-
return
|
|
20935
|
+
if (isRemRow === false) return React.createElement(React.Fragment, null);
|
|
20936
|
+
if (model === 'prefab') return React.createElement(React.Fragment, null);
|
|
20937
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
20938
|
+
return React.createElement(Button$1, {
|
|
20936
20939
|
size: 'small',
|
|
20937
20940
|
onClick: onClick,
|
|
20938
20941
|
disabled: disabled
|
|
@@ -21163,16 +21166,16 @@ var useAddDiscountRowButton$1 = (function () {
|
|
|
21163
21166
|
}, [isAddDiscount, model]);
|
|
21164
21167
|
var button = React.useMemo(function () {
|
|
21165
21168
|
if (isEnable) {
|
|
21166
|
-
return
|
|
21169
|
+
return React.createElement(React.Fragment, null, React.createElement(Button$1, {
|
|
21167
21170
|
size: 'small',
|
|
21168
21171
|
onClick: onOpen,
|
|
21169
21172
|
disabled: disabled
|
|
21170
|
-
}, "\u6DFB\u52A0\u6298\u6263"),
|
|
21173
|
+
}, "\u6DFB\u52A0\u6298\u6263"), React.createElement(AddDiscountRowDrawer, {
|
|
21171
21174
|
open: open,
|
|
21172
21175
|
onClose: onClose
|
|
21173
21176
|
}));
|
|
21174
21177
|
} else {
|
|
21175
|
-
return
|
|
21178
|
+
return React.createElement(React.Fragment, null);
|
|
21176
21179
|
}
|
|
21177
21180
|
}, [open, onOpen, onClose, isEnable, disabled]);
|
|
21178
21181
|
return {
|
|
@@ -21353,35 +21356,35 @@ function AddDiscountRowDrawer(props) {
|
|
|
21353
21356
|
discolineValue: undefined
|
|
21354
21357
|
}));
|
|
21355
21358
|
}, [formValues === null || formValues === void 0 ? void 0 : formValues.discolineType]);
|
|
21356
|
-
return
|
|
21359
|
+
return React.createElement(Drawer$1, {
|
|
21357
21360
|
title: "\u6DFB\u52A0\u6298\u6263",
|
|
21358
21361
|
placement: "right",
|
|
21359
21362
|
width: 350,
|
|
21360
21363
|
onClose: onClose,
|
|
21361
21364
|
open: open,
|
|
21362
|
-
footer:
|
|
21365
|
+
footer: React.createElement(Space, {
|
|
21363
21366
|
size: "middle",
|
|
21364
21367
|
style: {
|
|
21365
21368
|
display: 'flex',
|
|
21366
21369
|
justifyContent: 'end'
|
|
21367
21370
|
}
|
|
21368
|
-
},
|
|
21371
|
+
}, React.createElement(Button$1, {
|
|
21369
21372
|
onClick: onDefine,
|
|
21370
21373
|
type: 'primary'
|
|
21371
|
-
}, "\u786E\u5B9A"),
|
|
21374
|
+
}, "\u786E\u5B9A"), React.createElement(Button$1, {
|
|
21372
21375
|
onClick: onClose
|
|
21373
21376
|
}, "\u53D6\u6D88"))
|
|
21374
|
-
},
|
|
21377
|
+
}, React.createElement(Form$1, {
|
|
21375
21378
|
form: form,
|
|
21376
21379
|
layout: 'vertical',
|
|
21377
21380
|
onChange: onChangeForm
|
|
21378
|
-
},
|
|
21381
|
+
}, React.createElement(Form$1.Item, {
|
|
21379
21382
|
label: "\u5546\u54C1\u91D1\u989D\uFF08\u542B\u7A0E\uFF09"
|
|
21380
|
-
}, totalAmount.toFixed(2), "\uFF08\u5171 ", discountGood.length, " \u884C\uFF09"),
|
|
21383
|
+
}, totalAmount.toFixed(2), "\uFF08\u5171 ", discountGood.length, " \u884C\uFF09"), React.createElement(Form$1.Item, {
|
|
21381
21384
|
label: "\u6298\u6263\u65B9\u5F0F",
|
|
21382
21385
|
name: 'discolineType',
|
|
21383
21386
|
initialValue: '1'
|
|
21384
|
-
},
|
|
21387
|
+
}, React.createElement(Radio.Group, {
|
|
21385
21388
|
options: [{
|
|
21386
21389
|
label: '按金额折扣',
|
|
21387
21390
|
value: '1'
|
|
@@ -21389,7 +21392,7 @@ function AddDiscountRowDrawer(props) {
|
|
|
21389
21392
|
label: '按比例折扣',
|
|
21390
21393
|
value: '2'
|
|
21391
21394
|
}]
|
|
21392
|
-
})), (formValues === null || formValues === void 0 ? void 0 : formValues.discolineType) === '1' ?
|
|
21395
|
+
})), (formValues === null || formValues === void 0 ? void 0 : formValues.discolineType) === '1' ? React.createElement(Form$1.Item, {
|
|
21393
21396
|
label: "\u6298\u6263\u91D1\u989D\uFF08\u5143\uFF09\uFF08\u542B\u7A0E\uFF09",
|
|
21394
21397
|
name: 'discolineValue',
|
|
21395
21398
|
rules: [{
|
|
@@ -21440,11 +21443,11 @@ function AddDiscountRowDrawer(props) {
|
|
|
21440
21443
|
return validator;
|
|
21441
21444
|
}()
|
|
21442
21445
|
}]
|
|
21443
|
-
},
|
|
21446
|
+
}, React.createElement(InputNumber, {
|
|
21444
21447
|
style: {
|
|
21445
21448
|
width: '100%'
|
|
21446
21449
|
}
|
|
21447
|
-
})) :
|
|
21450
|
+
})) : React.createElement(Form$1.Item, {
|
|
21448
21451
|
label: "\u6298\u6263\u6BD4\u4F8B\uFF08%\uFF09\uFF08\u542B\u7A0E\uFF09",
|
|
21449
21452
|
name: 'discolineValue',
|
|
21450
21453
|
rules: [{
|
|
@@ -21495,7 +21498,7 @@ function AddDiscountRowDrawer(props) {
|
|
|
21495
21498
|
return validator;
|
|
21496
21499
|
}()
|
|
21497
21500
|
}]
|
|
21498
|
-
},
|
|
21501
|
+
}, React.createElement(InputNumber, {
|
|
21499
21502
|
style: {
|
|
21500
21503
|
width: '100%'
|
|
21501
21504
|
}
|
|
@@ -21639,16 +21642,16 @@ var useEndowCodeButton$1 = (function () {
|
|
|
21639
21642
|
}, _callee2);
|
|
21640
21643
|
})), [controller]);
|
|
21641
21644
|
var menuItem = React.useMemo(function () {
|
|
21642
|
-
if (model === 'readOnly') return
|
|
21643
|
-
return
|
|
21645
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
21646
|
+
return React.createElement(Menu$1.Item, {
|
|
21644
21647
|
key: "2",
|
|
21645
21648
|
onClick: onClick,
|
|
21646
21649
|
disabled: disabled
|
|
21647
21650
|
}, "\u6279\u91CF\u8D4B\u7801");
|
|
21648
21651
|
}, [onClick, disabled, model]);
|
|
21649
21652
|
var button = React.useMemo(function () {
|
|
21650
|
-
if (model === 'readOnly') return
|
|
21651
|
-
return
|
|
21653
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
21654
|
+
return React.createElement(Button$1, {
|
|
21652
21655
|
onClick: onClick,
|
|
21653
21656
|
disabled: disabled,
|
|
21654
21657
|
size: 'small'
|
|
@@ -21708,14 +21711,14 @@ var useEmptyRefill = (function () {
|
|
|
21708
21711
|
}());
|
|
21709
21712
|
}, [controller]);
|
|
21710
21713
|
var button = React.useMemo(function () {
|
|
21711
|
-
if (model === 'readOnly') return
|
|
21712
|
-
if (model === 'prefab') return
|
|
21713
|
-
return
|
|
21714
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
21715
|
+
if (model === 'prefab') return React.createElement(React.Fragment, null);
|
|
21716
|
+
return React.createElement(Popconfirm, {
|
|
21714
21717
|
title: "\u5C06\u8981\u6E05\u7A7A\u6240\u6709\u9879\u76EE\u4FE1\u606F\uFF0C\u662F\u5426\u7EE7\u7EED",
|
|
21715
21718
|
onConfirm: confirm,
|
|
21716
21719
|
okText: "\u786E\u5B9A",
|
|
21717
21720
|
cancelText: "\u53D6\u6D88"
|
|
21718
|
-
},
|
|
21721
|
+
}, React.createElement(Button$1, {
|
|
21719
21722
|
size: 'small'
|
|
21720
21723
|
}, "\u6E05\u7A7A\u91CD\u586B"));
|
|
21721
21724
|
}, [model, confirm]);
|
|
@@ -21782,14 +21785,14 @@ function InvoiceTypeModal(props) {
|
|
|
21782
21785
|
setValues(values);
|
|
21783
21786
|
}
|
|
21784
21787
|
}, [props.open, props.defaultBillingType, props.defaultBusiness, props.defaultInvoiceType, form]);
|
|
21785
|
-
return
|
|
21788
|
+
return React.createElement(Modal, {
|
|
21786
21789
|
title: props.modalTitle || "选择开具信息",
|
|
21787
21790
|
open: props.open,
|
|
21788
21791
|
onOk: onConfirm,
|
|
21789
21792
|
onCancel: props.onCancel,
|
|
21790
21793
|
okText: "\u786E\u5B9A",
|
|
21791
21794
|
cancelText: "\u53D6\u6D88"
|
|
21792
|
-
},
|
|
21795
|
+
}, React.createElement(Form$1, {
|
|
21793
21796
|
form: form,
|
|
21794
21797
|
layout: "vertical",
|
|
21795
21798
|
style: {
|
|
@@ -21798,13 +21801,13 @@ function InvoiceTypeModal(props) {
|
|
|
21798
21801
|
onValuesChange: function onValuesChange(_, e) {
|
|
21799
21802
|
setValues(e);
|
|
21800
21803
|
}
|
|
21801
|
-
},
|
|
21804
|
+
}, React.createElement(Row, {
|
|
21802
21805
|
gutter: [16, 16]
|
|
21803
|
-
},
|
|
21806
|
+
}, React.createElement(Col, {
|
|
21804
21807
|
span: 24
|
|
21805
|
-
},
|
|
21808
|
+
}, React.createElement(Form$1.Item, {
|
|
21806
21809
|
name: 'billingType'
|
|
21807
|
-
},
|
|
21810
|
+
}, React.createElement(Radio.Group, {
|
|
21808
21811
|
size: 'large',
|
|
21809
21812
|
className: "goods-list-digtal-reselect-invoice-typeModal-radio",
|
|
21810
21813
|
optionType: "button",
|
|
@@ -21817,27 +21820,27 @@ function InvoiceTypeModal(props) {
|
|
|
21817
21820
|
label: '税控发票',
|
|
21818
21821
|
value: 'taxation'
|
|
21819
21822
|
}]
|
|
21820
|
-
}))),
|
|
21823
|
+
}))), React.createElement(Col, {
|
|
21821
21824
|
span: 12
|
|
21822
|
-
},
|
|
21825
|
+
}, React.createElement(Form$1.Item, {
|
|
21823
21826
|
name: 'invoiceType',
|
|
21824
21827
|
label: "\u9009\u62E9\u7968\u7C7B",
|
|
21825
21828
|
rules: [{
|
|
21826
21829
|
required: true,
|
|
21827
21830
|
message: '选择票类必填'
|
|
21828
21831
|
}]
|
|
21829
|
-
},
|
|
21832
|
+
}, React.createElement(Select$1, {
|
|
21830
21833
|
size: 'large',
|
|
21831
21834
|
allowClear: true,
|
|
21832
21835
|
placeholder: "\u8BF7\u9009\u62E9\uFF08\u5FC5\u586B\u9879\uFF09",
|
|
21833
21836
|
disabled: disableds.indexOf('invoiceType') >= 0,
|
|
21834
21837
|
options: props.invoiceTypeOptions
|
|
21835
|
-
}))),
|
|
21838
|
+
}))), React.createElement(Col, {
|
|
21836
21839
|
span: 12
|
|
21837
|
-
},
|
|
21840
|
+
}, React.createElement(Form$1.Item, {
|
|
21838
21841
|
name: 'business',
|
|
21839
21842
|
label: "\u7279\u5B9A\u4E1A\u52A1"
|
|
21840
|
-
},
|
|
21843
|
+
}, React.createElement(Select$1, {
|
|
21841
21844
|
size: 'large',
|
|
21842
21845
|
allowClear: true,
|
|
21843
21846
|
placeholder: "\u8BF7\u9009\u62E9\uFF08\u975E\u5FC5\u586B\u9879\uFF09",
|
|
@@ -21882,11 +21885,11 @@ var useReselectInvoiceType = (function () {
|
|
|
21882
21885
|
return true;
|
|
21883
21886
|
}, [model, typeModalProps === null || typeModalProps === void 0 ? void 0 : typeModalProps.isDisabled]);
|
|
21884
21887
|
var button = React.useMemo(function () {
|
|
21885
|
-
if (isEnable === false) return
|
|
21886
|
-
return
|
|
21888
|
+
if (isEnable === false) return React.createElement(React.Fragment, null);
|
|
21889
|
+
return React.createElement(React.Fragment, null, React.createElement(Button$1, {
|
|
21887
21890
|
size: 'small',
|
|
21888
21891
|
onClick: onOpen
|
|
21889
|
-
}, "\u91CD\u9009\u53D1\u7968\u7C7B\u578B"),
|
|
21892
|
+
}, "\u91CD\u9009\u53D1\u7968\u7C7B\u578B"), React.createElement(InvoiceTypeModal, _objectSpread2(_objectSpread2({}, typeModalProps), {}, {
|
|
21890
21893
|
open: open,
|
|
21891
21894
|
onCancel: onClose,
|
|
21892
21895
|
onOk: onOk
|
|
@@ -21914,7 +21917,7 @@ var GoodsList$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
21914
21917
|
_createClass(GoodsList, [{
|
|
21915
21918
|
key: "render",
|
|
21916
21919
|
value: function render() {
|
|
21917
|
-
return
|
|
21920
|
+
return React.createElement(Main$3, _objectSpread2({}, this.props));
|
|
21918
21921
|
}
|
|
21919
21922
|
}]);
|
|
21920
21923
|
|
|
@@ -22115,20 +22118,20 @@ var Main$3 = decorator(Form.create())(function (props) {
|
|
|
22115
22118
|
};
|
|
22116
22119
|
}())();
|
|
22117
22120
|
}, [controller, props.isSwitchTax]);
|
|
22118
|
-
return
|
|
22121
|
+
return React.createElement("div", {
|
|
22119
22122
|
className: "kts-invoice-operate-goods-list-digtal",
|
|
22120
22123
|
onClick: function onClick(e) {
|
|
22121
22124
|
e.stopPropagation();
|
|
22122
22125
|
}
|
|
22123
|
-
},
|
|
22126
|
+
}, React.createElement("div", {
|
|
22124
22127
|
className: "kts-invoice-operate-goods-list-able"
|
|
22125
|
-
},
|
|
22128
|
+
}, React.createElement(AddRowButton$1, null), delRowButton.button, addDiscountRowButton.button, endowCodeButton.button, React.createElement(TaxIncludedSwitch$1, null), React.createElement(Search$1, null), React.createElement("div", {
|
|
22126
22129
|
style: {
|
|
22127
22130
|
flex: 1
|
|
22128
22131
|
}
|
|
22129
|
-
}), props.menuExpansion, reselectInvoiceType.button, emptyRefill.button),
|
|
22132
|
+
}), props.menuExpansion, reselectInvoiceType.button, emptyRefill.button), React.createElement("div", {
|
|
22130
22133
|
className: classNames('kts-invoice-operate-goods-list-table-digtal')
|
|
22131
|
-
},
|
|
22134
|
+
}, React.createElement(TableVirtual$1, {
|
|
22132
22135
|
size: "small",
|
|
22133
22136
|
rowKey: "$index",
|
|
22134
22137
|
pagination: false,
|
|
@@ -22150,7 +22153,7 @@ var Main$3 = decorator(Form.create())(function (props) {
|
|
|
22150
22153
|
}
|
|
22151
22154
|
};
|
|
22152
22155
|
}
|
|
22153
|
-
})),
|
|
22156
|
+
})), React.createElement("div", null, React.createElement(Statistics$1, null)));
|
|
22154
22157
|
});
|
|
22155
22158
|
|
|
22156
22159
|
var ImportBuyerDrawer = (function () {
|
|
@@ -22184,7 +22187,7 @@ var ImportBuyerDrawer = (function () {
|
|
|
22184
22187
|
};
|
|
22185
22188
|
}())();
|
|
22186
22189
|
}, [controller]);
|
|
22187
|
-
return
|
|
22190
|
+
return React.createElement(Drawer, {
|
|
22188
22191
|
title: "\u8D2D\u65B9\u5217\u8868",
|
|
22189
22192
|
placement: "right",
|
|
22190
22193
|
// closable={false}
|
|
@@ -22192,7 +22195,7 @@ var ImportBuyerDrawer = (function () {
|
|
|
22192
22195
|
width: 983,
|
|
22193
22196
|
onClose: onClose,
|
|
22194
22197
|
visible: visible
|
|
22195
|
-
}, topExpand,
|
|
22198
|
+
}, topExpand, React.createElement(DrawerBody$1, null));
|
|
22196
22199
|
});
|
|
22197
22200
|
|
|
22198
22201
|
var DrawerBody$1 = function DrawerBody() {
|
|
@@ -22213,7 +22216,7 @@ var DrawerBody$1 = function DrawerBody() {
|
|
|
22213
22216
|
}
|
|
22214
22217
|
});
|
|
22215
22218
|
}, [controller]);
|
|
22216
|
-
return
|
|
22219
|
+
return React.createElement(Table$1, {
|
|
22217
22220
|
bordered: true,
|
|
22218
22221
|
size: "small",
|
|
22219
22222
|
columns: columns,
|
|
@@ -22313,7 +22316,7 @@ var ImportGoodsDrawer = (function () {
|
|
|
22313
22316
|
};
|
|
22314
22317
|
}())();
|
|
22315
22318
|
}, [controller]);
|
|
22316
|
-
return
|
|
22319
|
+
return React.createElement(Drawer, {
|
|
22317
22320
|
title: "\u5546\u54C1\u5217\u8868",
|
|
22318
22321
|
placement: "right",
|
|
22319
22322
|
// closable={false}
|
|
@@ -22321,11 +22324,11 @@ var ImportGoodsDrawer = (function () {
|
|
|
22321
22324
|
width: 983,
|
|
22322
22325
|
onClose: onClose,
|
|
22323
22326
|
visible: visible
|
|
22324
|
-
}, topExpand &&
|
|
22327
|
+
}, topExpand && React.createElement("div", {
|
|
22325
22328
|
style: {
|
|
22326
22329
|
marginBottom: 10
|
|
22327
22330
|
}
|
|
22328
|
-
}, topExpand),
|
|
22331
|
+
}, topExpand), React.createElement(DrawerBody$2, null));
|
|
22329
22332
|
});
|
|
22330
22333
|
|
|
22331
22334
|
var DrawerBody$2 = function DrawerBody() {
|
|
@@ -22347,7 +22350,7 @@ var DrawerBody$2 = function DrawerBody() {
|
|
|
22347
22350
|
}
|
|
22348
22351
|
});
|
|
22349
22352
|
}, [controller]);
|
|
22350
|
-
return
|
|
22353
|
+
return React.createElement(Table$1, {
|
|
22351
22354
|
bordered: true,
|
|
22352
22355
|
size: "small",
|
|
22353
22356
|
columns: columns,
|
|
@@ -22639,7 +22642,7 @@ var EndowCodeDrawer = (function () {
|
|
|
22639
22642
|
setDefaultValue(undefined);
|
|
22640
22643
|
}
|
|
22641
22644
|
}, [visible]);
|
|
22642
|
-
return
|
|
22645
|
+
return React.createElement(Drawer, {
|
|
22643
22646
|
title: "\u8D4B\u7801",
|
|
22644
22647
|
placement: "right",
|
|
22645
22648
|
destroyOnClose: true,
|
|
@@ -22647,7 +22650,7 @@ var EndowCodeDrawer = (function () {
|
|
|
22647
22650
|
width: 383,
|
|
22648
22651
|
onClose: onClose,
|
|
22649
22652
|
visible: visible
|
|
22650
|
-
}, defaultValue &&
|
|
22653
|
+
}, defaultValue && React.createElement(DrawerBody$3, {
|
|
22651
22654
|
defaultValue: defaultValue
|
|
22652
22655
|
}));
|
|
22653
22656
|
});
|
|
@@ -22804,7 +22807,7 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
22804
22807
|
};
|
|
22805
22808
|
}());
|
|
22806
22809
|
}, [actions, dataSource, readOnlyTaxRate]);
|
|
22807
|
-
return
|
|
22810
|
+
return React.createElement(Select, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
22808
22811
|
showSearch: true,
|
|
22809
22812
|
showArrow: false,
|
|
22810
22813
|
notFoundContent: null,
|
|
@@ -22812,7 +22815,7 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
22812
22815
|
onSearch: onSearch,
|
|
22813
22816
|
onChange: onChange
|
|
22814
22817
|
}), dataSource.map(function (e) {
|
|
22815
|
-
return
|
|
22818
|
+
return React.createElement(Select.Option, {
|
|
22816
22819
|
key: e.value,
|
|
22817
22820
|
value: e.value
|
|
22818
22821
|
}, e.label);
|
|
@@ -22842,14 +22845,14 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
22842
22845
|
|
|
22843
22846
|
|
|
22844
22847
|
var createTreeNode = React.useCallback(function () {
|
|
22845
|
-
if (!list) return
|
|
22848
|
+
if (!list) return React.createElement(React.Fragment, null);
|
|
22846
22849
|
return ctn(list);
|
|
22847
22850
|
|
|
22848
22851
|
function title(label) {
|
|
22849
22852
|
if (!filter) return label;
|
|
22850
22853
|
label = (filter.taxCategoryCode ? label.split(new RegExp(filter.taxCategoryCode, 'g')) : [label]).join("<span style=\"color: #1890ff;\">".concat(filter.taxCategoryCode, "</span>"));
|
|
22851
22854
|
label = (filter.val ? label.split(new RegExp(filter.val, 'g')) : [label]).join("<span style=\"color: #1890ff;\">".concat(filter.val, "</span>"));
|
|
22852
|
-
return
|
|
22855
|
+
return React.createElement("span", {
|
|
22853
22856
|
dangerouslySetInnerHTML: {
|
|
22854
22857
|
__html: label
|
|
22855
22858
|
}
|
|
@@ -22858,11 +22861,11 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
22858
22861
|
|
|
22859
22862
|
function ctn(l) {
|
|
22860
22863
|
var p = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '0';
|
|
22861
|
-
if (!l || !l.length) return [
|
|
22864
|
+
if (!l || !l.length) return [React.createElement(React.Fragment, null)];
|
|
22862
22865
|
return l.filter(function (e) {
|
|
22863
22866
|
return e.pid === p;
|
|
22864
22867
|
}).map(function (e) {
|
|
22865
|
-
return
|
|
22868
|
+
return React.createElement(TreeNode, {
|
|
22866
22869
|
title: title(e.label),
|
|
22867
22870
|
key: e.id
|
|
22868
22871
|
}, ctn(l, e.id));
|
|
@@ -22992,46 +22995,46 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
22992
22995
|
setList([]);
|
|
22993
22996
|
}
|
|
22994
22997
|
}, [visible]);
|
|
22995
|
-
return
|
|
22998
|
+
return React.createElement(React.Fragment, null, React.createElement(Input, {
|
|
22996
22999
|
readOnly: true,
|
|
22997
23000
|
value: props.value,
|
|
22998
|
-
addonAfter:
|
|
23001
|
+
addonAfter: React.createElement(Button, {
|
|
22999
23002
|
size: "small",
|
|
23000
23003
|
type: "link",
|
|
23001
23004
|
onClick: function onClick() {
|
|
23002
23005
|
setVisible(true);
|
|
23003
23006
|
}
|
|
23004
23007
|
}, "\u70B9\u51FB\u9009\u62E9")
|
|
23005
|
-
}),
|
|
23008
|
+
}), React.createElement(Drawer, {
|
|
23006
23009
|
title: "\u7A0E\u6536\u5206\u7C7B\u7F16\u7801",
|
|
23007
23010
|
visible: visible,
|
|
23008
23011
|
width: 500,
|
|
23009
23012
|
onClose: function onClose() {
|
|
23010
23013
|
setVisible(false);
|
|
23011
23014
|
}
|
|
23012
|
-
},
|
|
23015
|
+
}, React.createElement(Form, {
|
|
23013
23016
|
key: "".concat(visible)
|
|
23014
|
-
},
|
|
23017
|
+
}, React.createElement(Form.Item, {
|
|
23015
23018
|
label: "\u4EA7\u54C1\u6216\u670D\u52A1\u7B80\u79F0"
|
|
23016
|
-
},
|
|
23019
|
+
}, React.createElement(Input, {
|
|
23017
23020
|
onChange: function onChange(e) {
|
|
23018
23021
|
setFilter(_objectSpread2(_objectSpread2({}, filter), {}, {
|
|
23019
23022
|
val: e.target.value
|
|
23020
23023
|
}));
|
|
23021
23024
|
}
|
|
23022
|
-
})),
|
|
23025
|
+
})), React.createElement(Form.Item, {
|
|
23023
23026
|
label: "\u7A0E\u6536\u5206\u7C7B\u7F16\u7801"
|
|
23024
|
-
},
|
|
23027
|
+
}, React.createElement(Input, {
|
|
23025
23028
|
onChange: function onChange(e) {
|
|
23026
23029
|
setFilter(_objectSpread2(_objectSpread2({}, filter), {}, {
|
|
23027
23030
|
taxCategoryCode: e.target.value
|
|
23028
23031
|
}));
|
|
23029
23032
|
}
|
|
23030
|
-
}))), list && list.length > 0 ?
|
|
23033
|
+
}))), list && list.length > 0 ? React.createElement(Tree, {
|
|
23031
23034
|
defaultExpandAll: true,
|
|
23032
23035
|
selectedKeys: [],
|
|
23033
23036
|
onSelect: onSelect
|
|
23034
|
-
}, createTreeNode()) :
|
|
23037
|
+
}, createTreeNode()) : React.createElement("span", {
|
|
23035
23038
|
style: {
|
|
23036
23039
|
color: '#00000073'
|
|
23037
23040
|
}
|
|
@@ -23248,11 +23251,11 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23248
23251
|
return data;
|
|
23249
23252
|
};
|
|
23250
23253
|
|
|
23251
|
-
return
|
|
23254
|
+
return React.createElement(React.Fragment, null, React.createElement(Input, {
|
|
23252
23255
|
readOnly: true,
|
|
23253
23256
|
onClick: onClick,
|
|
23254
23257
|
value: props.value
|
|
23255
|
-
}),
|
|
23258
|
+
}), React.createElement(TaxClassificationModal, {
|
|
23256
23259
|
list: list,
|
|
23257
23260
|
open: open,
|
|
23258
23261
|
onSelect: onSelect,
|
|
@@ -23368,14 +23371,14 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23368
23371
|
React.useEffect(function () {
|
|
23369
23372
|
if (controller.getTaxCategoryCodeList) controller.getTaxCategoryCodeList();
|
|
23370
23373
|
}, [controller]);
|
|
23371
|
-
return
|
|
23374
|
+
return React.createElement(SchemaForm, {
|
|
23372
23375
|
actions: actions,
|
|
23373
23376
|
previewPlaceholder: " ",
|
|
23374
23377
|
components: _objectSpread2(_objectSpread2({}, components), {}, {
|
|
23375
23378
|
showSearch: !!controller.state.goodsListState.endowCode.onLoadTaxClassificationCode ? ShowSearch3 : ShowSearch
|
|
23376
23379
|
}),
|
|
23377
23380
|
effects: effects
|
|
23378
|
-
},
|
|
23381
|
+
}, React.createElement(FormButtonGroup, null, React.createElement(SchemaMarkupField, {
|
|
23379
23382
|
name: "taxClassificationCode",
|
|
23380
23383
|
type: "showSearch",
|
|
23381
23384
|
title: "\u7A0E\u6536\u5206\u7C7B\u7F16\u7801",
|
|
@@ -23385,13 +23388,13 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23385
23388
|
message: '请选择税收分类编码',
|
|
23386
23389
|
required: true
|
|
23387
23390
|
}]
|
|
23388
|
-
}),
|
|
23391
|
+
}), React.createElement(SchemaMarkupField, {
|
|
23389
23392
|
name: "shorthand",
|
|
23390
23393
|
type: "string",
|
|
23391
23394
|
readOnly: true,
|
|
23392
23395
|
default: defaultValue === null || defaultValue === void 0 ? void 0 : defaultValue.shorthand,
|
|
23393
23396
|
title: "\u5546\u54C1\u548C\u670D\u52A1\u5206\u7C7B\u7B80\u79F0"
|
|
23394
|
-
}),
|
|
23397
|
+
}), React.createElement(SchemaMarkupField, {
|
|
23395
23398
|
name: "taxRate",
|
|
23396
23399
|
type: "string",
|
|
23397
23400
|
title: "\u7A0E\u7387",
|
|
@@ -23404,7 +23407,7 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23404
23407
|
message: '请选择税率',
|
|
23405
23408
|
required: true
|
|
23406
23409
|
}]
|
|
23407
|
-
}), taxRate === 0 && isTaxFreeTypeNeeded &&
|
|
23410
|
+
}), taxRate === 0 && isTaxFreeTypeNeeded && React.createElement(SchemaMarkupField, {
|
|
23408
23411
|
name: "taxFreeType",
|
|
23409
23412
|
type: "string",
|
|
23410
23413
|
title: "\u514D\u7A0E\u7C7B\u578B",
|
|
@@ -23417,7 +23420,7 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23417
23420
|
message: '请选择免税类型',
|
|
23418
23421
|
required: true
|
|
23419
23422
|
}]
|
|
23420
|
-
}),
|
|
23423
|
+
}), React.createElement(SchemaMarkupField, {
|
|
23421
23424
|
name: "favouredPolicyMark",
|
|
23422
23425
|
type: "number",
|
|
23423
23426
|
title: "\u662F\u5426\u4EAB\u53D7\u4F18\u60E0\u653F\u7B56",
|
|
@@ -23436,7 +23439,7 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23436
23439
|
message: '请选择是否享受优惠政策',
|
|
23437
23440
|
required: true
|
|
23438
23441
|
}]
|
|
23439
|
-
}), favouredPolicyMark === 1 &&
|
|
23442
|
+
}), favouredPolicyMark === 1 && React.createElement(SchemaMarkupField, {
|
|
23440
23443
|
name: "favouredPolicyName",
|
|
23441
23444
|
type: "string",
|
|
23442
23445
|
title: "\u4F18\u60E0\u653F\u7B56\u7C7B\u578B",
|
|
@@ -23449,14 +23452,14 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23449
23452
|
message: '请选择是否享受优惠政策',
|
|
23450
23453
|
required: true
|
|
23451
23454
|
}]
|
|
23452
|
-
})),
|
|
23455
|
+
})), React.createElement("span", {
|
|
23453
23456
|
className: "kts-invoice-operate-goods-endow-code-button-list"
|
|
23454
|
-
},
|
|
23457
|
+
}, React.createElement(Button, {
|
|
23455
23458
|
onClick: function onClick() {
|
|
23456
23459
|
actions.submit(onSubmit);
|
|
23457
23460
|
},
|
|
23458
23461
|
type: "primary"
|
|
23459
|
-
}, "\u786E\u5B9A"),
|
|
23462
|
+
}, "\u786E\u5B9A"), React.createElement(Button, {
|
|
23460
23463
|
onClick: function onClick() {
|
|
23461
23464
|
controller.pipeline( /*#__PURE__*/function () {
|
|
23462
23465
|
var _ref20 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee20(s) {
|
|
@@ -23616,53 +23619,53 @@ function AddComparisonDrawer() {
|
|
|
23616
23619
|
}));
|
|
23617
23620
|
}
|
|
23618
23621
|
}, [good]);
|
|
23619
|
-
return
|
|
23622
|
+
return React.createElement(Drawer$1, {
|
|
23620
23623
|
width: 500,
|
|
23621
23624
|
onClose: onClose,
|
|
23622
23625
|
placement: "right",
|
|
23623
23626
|
title: "\u5546\u54C1\u6620\u5C04",
|
|
23624
23627
|
visible: !!good,
|
|
23625
|
-
footer:
|
|
23628
|
+
footer: React.createElement("div", {
|
|
23626
23629
|
style: {
|
|
23627
23630
|
display: 'flex',
|
|
23628
23631
|
justifyContent: 'flex-end',
|
|
23629
23632
|
gap: 10
|
|
23630
23633
|
}
|
|
23631
|
-
},
|
|
23634
|
+
}, React.createElement(Button, {
|
|
23632
23635
|
type: "primary",
|
|
23633
23636
|
onClick: onSubmit
|
|
23634
|
-
}, "\u63D0\u4EA4"),
|
|
23637
|
+
}, "\u63D0\u4EA4"), React.createElement(Button, {
|
|
23635
23638
|
onClick: onClose
|
|
23636
23639
|
}, "\u53D6\u6D88"))
|
|
23637
|
-
}, !!good &&
|
|
23640
|
+
}, !!good && React.createElement(Form$1, {
|
|
23638
23641
|
layout: "vertical",
|
|
23639
23642
|
style: {
|
|
23640
23643
|
flex: 1
|
|
23641
23644
|
},
|
|
23642
23645
|
form: form
|
|
23643
|
-
},
|
|
23646
|
+
}, React.createElement(Row$1, {
|
|
23644
23647
|
gutter: [8, 8]
|
|
23645
|
-
},
|
|
23648
|
+
}, React.createElement(Col$1, {
|
|
23646
23649
|
span: 12
|
|
23647
|
-
},
|
|
23650
|
+
}, React.createElement(Form$1.Item, {
|
|
23648
23651
|
name: "itemNameSelf",
|
|
23649
23652
|
label: "\u6211\u65B9\u5546\u54C1\u540D\u79F0"
|
|
23650
|
-
},
|
|
23653
|
+
}, React.createElement(Input, null))), React.createElement(Col$1, {
|
|
23651
23654
|
span: 12
|
|
23652
|
-
},
|
|
23655
|
+
}, React.createElement(Form$1.Item, {
|
|
23653
23656
|
name: "itemName",
|
|
23654
23657
|
label: "\u5BF9\u65B9\u5546\u54C1\u540D\u79F0"
|
|
23655
|
-
},
|
|
23658
|
+
}, React.createElement(Input, null))), React.createElement(Col$1, {
|
|
23656
23659
|
span: 12
|
|
23657
|
-
},
|
|
23660
|
+
}, React.createElement(Form$1.Item, {
|
|
23658
23661
|
name: 'itemModelNameSelf',
|
|
23659
23662
|
label: "\u6211\u65B9\u89C4\u683C\u578B\u53F7"
|
|
23660
|
-
},
|
|
23663
|
+
}, React.createElement(Input, null))), React.createElement(Col$1, {
|
|
23661
23664
|
span: 12
|
|
23662
|
-
},
|
|
23665
|
+
}, React.createElement(Form$1.Item, {
|
|
23663
23666
|
name: "itemModelName",
|
|
23664
23667
|
label: "\u5BF9\u65B9\u89C4\u683C\u578B\u53F7"
|
|
23665
|
-
},
|
|
23668
|
+
}, React.createElement(Input, null))))));
|
|
23666
23669
|
} // function validateFields(form: WrappedFormUtils<any>) {
|
|
23667
23670
|
// return new Promise<{ err: any, values: any }>(resolve => {
|
|
23668
23671
|
// form.validateFields((err, values) => {
|
|
@@ -23673,7 +23676,7 @@ function AddComparisonDrawer() {
|
|
|
23673
23676
|
|
|
23674
23677
|
/** 发票组件的上下文 */
|
|
23675
23678
|
|
|
23676
|
-
var InvoiceContext =
|
|
23679
|
+
var InvoiceContext = React.createContext(undefined);
|
|
23677
23680
|
|
|
23678
23681
|
var Invoice = /*#__PURE__*/function (_React$PureComponent) {
|
|
23679
23682
|
_inherits(Invoice, _React$PureComponent);
|
|
@@ -23716,9 +23719,9 @@ var Invoice = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
23716
23719
|
/** 获取控制器钩子 */
|
|
23717
23720
|
function render() {
|
|
23718
23721
|
if (this.props.invoiceType === 'digtal') {
|
|
23719
|
-
return
|
|
23722
|
+
return React.createElement(Digtal, _objectSpread2({}, this.props));
|
|
23720
23723
|
} else {
|
|
23721
|
-
return
|
|
23724
|
+
return React.createElement(Main$4, _objectSpread2({}, this.props));
|
|
23722
23725
|
}
|
|
23723
23726
|
}
|
|
23724
23727
|
}]);
|
|
@@ -23759,10 +23762,10 @@ var Main$4 = function Main(props) {
|
|
|
23759
23762
|
React.useEffect(function () {
|
|
23760
23763
|
setKey(key + 1);
|
|
23761
23764
|
}, [controller]);
|
|
23762
|
-
return
|
|
23765
|
+
return React.createElement(InvoiceContext.Provider, {
|
|
23763
23766
|
key: key,
|
|
23764
23767
|
value: controller
|
|
23765
|
-
},
|
|
23768
|
+
}, React.createElement("div", {
|
|
23766
23769
|
className: "kts-invoice-operate",
|
|
23767
23770
|
ref: controller.pipeline( /*#__PURE__*/function () {
|
|
23768
23771
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(s, e) {
|
|
@@ -23784,17 +23787,17 @@ var Main$4 = function Main(props) {
|
|
|
23784
23787
|
return _ref.apply(this, arguments);
|
|
23785
23788
|
};
|
|
23786
23789
|
}())
|
|
23787
|
-
}, props.invoiceHeader ||
|
|
23790
|
+
}, props.invoiceHeader || React.createElement(InvoiceHeader, null)
|
|
23788
23791
|
/** 发票头 */
|
|
23789
|
-
, props.buyer ||
|
|
23792
|
+
, props.buyer || React.createElement(Buyer$1, null)
|
|
23790
23793
|
/** 购买方 */
|
|
23791
|
-
, props.goodsList ||
|
|
23794
|
+
, props.goodsList || React.createElement(GoodsList, null)
|
|
23792
23795
|
/** 货物列表 */
|
|
23793
|
-
, props.seller ||
|
|
23796
|
+
, props.seller || React.createElement(Buyer, null)
|
|
23794
23797
|
/** 销售方 */
|
|
23795
|
-
, props.sign ||
|
|
23798
|
+
, props.sign || React.createElement(Sign, null)
|
|
23796
23799
|
/** 落款 */
|
|
23797
|
-
, props.footExpand),
|
|
23800
|
+
, props.footExpand), React.createElement(ImportBuyerDrawer, null), React.createElement(ImportGoodsDrawer, null), React.createElement(EndowCodeDrawer, null), React.createElement(AddComparisonDrawer, null));
|
|
23798
23801
|
};
|
|
23799
23802
|
/** 数电 */
|
|
23800
23803
|
|
|
@@ -23813,10 +23816,10 @@ var Digtal = function Digtal(props) {
|
|
|
23813
23816
|
React.useEffect(function () {
|
|
23814
23817
|
setKey(key + 1);
|
|
23815
23818
|
}, [controller]);
|
|
23816
|
-
return
|
|
23819
|
+
return React.createElement(InvoiceContext.Provider, {
|
|
23817
23820
|
key: key,
|
|
23818
23821
|
value: controller
|
|
23819
|
-
},
|
|
23822
|
+
}, React.createElement("div", {
|
|
23820
23823
|
className: "kts-invoice-operate-digtal",
|
|
23821
23824
|
ref: controller.pipeline( /*#__PURE__*/function () {
|
|
23822
23825
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(s, e) {
|
|
@@ -23838,17 +23841,17 @@ var Digtal = function Digtal(props) {
|
|
|
23838
23841
|
return _ref2.apply(this, arguments);
|
|
23839
23842
|
};
|
|
23840
23843
|
}())
|
|
23841
|
-
}, props.invoiceHeader ||
|
|
23844
|
+
}, props.invoiceHeader || React.createElement(InvoiceHeaderDigtal, null)
|
|
23842
23845
|
/** 发票头 */
|
|
23843
|
-
,
|
|
23846
|
+
, React.createElement("div", {
|
|
23844
23847
|
className: 'kts-invoice-operate-digtal-cont'
|
|
23845
|
-
}, props.stakeholder ||
|
|
23848
|
+
}, props.stakeholder || React.createElement(Stakeholder$1, null)
|
|
23846
23849
|
/** 干系人 */
|
|
23847
|
-
, props.goodsList ||
|
|
23850
|
+
, props.goodsList || React.createElement(GoodsList$1
|
|
23848
23851
|
/** 货物列表 */
|
|
23849
|
-
, null)), props.sign ||
|
|
23852
|
+
, null)), props.sign || React.createElement(SignDigtal, null)
|
|
23850
23853
|
/** 落款 */
|
|
23851
|
-
),
|
|
23854
|
+
), React.createElement(ImportGoodsDrawer, null), React.createElement(EndowCodeDrawer, null));
|
|
23852
23855
|
};
|
|
23853
23856
|
|
|
23854
23857
|
function TaxClassificationModal(props) {
|
|
@@ -23889,26 +23892,26 @@ function TaxClassificationModal(props) {
|
|
|
23889
23892
|
}, 500);
|
|
23890
23893
|
}
|
|
23891
23894
|
}, [form, props.open]);
|
|
23892
|
-
return
|
|
23895
|
+
return React.createElement(Drawer$1, {
|
|
23893
23896
|
title: "\u5546\u54C1\u548C\u670D\u52A1\u7A0E\u6536\u5206\u7C7B\u7F16\u7801",
|
|
23894
23897
|
placement: "right",
|
|
23895
23898
|
open: props.open,
|
|
23896
23899
|
width: 503,
|
|
23897
23900
|
onClose: props.onCancel
|
|
23898
|
-
},
|
|
23901
|
+
}, React.createElement(Form$1, {
|
|
23899
23902
|
form: form
|
|
23900
|
-
},
|
|
23903
|
+
}, React.createElement(Form$1.Item, {
|
|
23901
23904
|
name: 'search'
|
|
23902
|
-
},
|
|
23905
|
+
}, React.createElement(Input$1, {
|
|
23903
23906
|
placeholder: "\u8BF7\u8F93\u5165\u7A0E\u6536\u5206\u7C7B\u7F16\u7801\u3001\u7A0E\u6536\u5206\u7C7B\u540D\u79F0\u8FDB\u884C\u68C0\u7D22",
|
|
23904
23907
|
onChange: searchTax
|
|
23905
|
-
})),
|
|
23908
|
+
})), React.createElement(Form$1.Item, {
|
|
23906
23909
|
name: 'tree'
|
|
23907
|
-
},
|
|
23910
|
+
}, React.createElement(Tree$1, {
|
|
23908
23911
|
onSelect: props.onSelect,
|
|
23909
23912
|
loadData: props.onLoad,
|
|
23910
23913
|
treeData: props.list,
|
|
23911
|
-
switcherIcon:
|
|
23914
|
+
switcherIcon: React.createElement(Icon$1, {
|
|
23912
23915
|
type: "down"
|
|
23913
23916
|
})
|
|
23914
23917
|
}))));
|