kts-component-invoice-operate 3.2.106 → 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/Invoice/InvoiceController/fns/itemBlur.d.ts +6 -0
- package/dist/Invoice/InvoiceController/index.d.ts +2 -0
- package/dist/index.esm.js +648 -574
- package/dist/index.js +648 -574
- 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 -0
- 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 -77
- package/src/Invoice/_test/buyerNameSearch/index.tsx +42 -42
- package/src/Invoice/_test/deduction/index.tsx +935 -935
- package/src/Invoice/_test/draft/index.tsx +40 -40
- package/src/Invoice/_test/easiest/index.tsx +5 -5
- package/src/Invoice/_test/endowCode/index.tsx +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 -89
- 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 -78
- 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
|
|
|
@@ -9403,6 +9408,76 @@ var getPriceExcludeTax = function getPriceExcludeTax(s, record, calculatingDigit
|
|
|
9403
9408
|
return format15(evaluate("".concat(record.priceIncludeTax, " / (1+").concat(s.taxRate, "/100)")), calculatingDigits);
|
|
9404
9409
|
};
|
|
9405
9410
|
|
|
9411
|
+
/**
|
|
9412
|
+
* 项目名称智能赋码
|
|
9413
|
+
*/
|
|
9414
|
+
|
|
9415
|
+
var itemBlur = /*#__PURE__*/(function () {
|
|
9416
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(s, record, controller) {
|
|
9417
|
+
var between, editGood;
|
|
9418
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
9419
|
+
while (1) {
|
|
9420
|
+
switch (_context.prev = _context.next) {
|
|
9421
|
+
case 0:
|
|
9422
|
+
Object.keys(record).filter(function (e) {
|
|
9423
|
+
return !record[e] && record[e] !== 0;
|
|
9424
|
+
}).forEach(function (e) {
|
|
9425
|
+
delete record[e];
|
|
9426
|
+
}); // 没用 被编辑的货物 和 form 就退出
|
|
9427
|
+
|
|
9428
|
+
if (!(!s.goodsListState.editGood || !s.goodsListState.form)) {
|
|
9429
|
+
_context.next = 3;
|
|
9430
|
+
break;
|
|
9431
|
+
}
|
|
9432
|
+
|
|
9433
|
+
return _context.abrupt("return");
|
|
9434
|
+
|
|
9435
|
+
case 3:
|
|
9436
|
+
// 中间数据
|
|
9437
|
+
between = _objectSpread2({}, record);
|
|
9438
|
+
between.taxClassificationCode = record.taxClassificationCode;
|
|
9439
|
+
between.shorthand = record.shorthand; // 设置编辑货物
|
|
9440
|
+
|
|
9441
|
+
editGood = s.goodsListState.editGood = _objectSpread2(_objectSpread2({}, s.goodsListState.editGood), between); // 导入FORM里
|
|
9442
|
+
|
|
9443
|
+
if (s.goodsListState.isMyShow) {
|
|
9444
|
+
s.goodsListState.form.setFieldsValue(_objectSpread2(_objectSpread2({}, editGood), {}, {
|
|
9445
|
+
itemName: editGood.itemNameSelf,
|
|
9446
|
+
itemModelName: editGood.itemModelNameSelf
|
|
9447
|
+
}));
|
|
9448
|
+
} else {
|
|
9449
|
+
s.goodsListState.form.setFieldsValue(_objectSpread2({}, editGood));
|
|
9450
|
+
}
|
|
9451
|
+
|
|
9452
|
+
if (!s.goodsListState.isTaxIncluded) {
|
|
9453
|
+
_context.next = 13;
|
|
9454
|
+
break;
|
|
9455
|
+
}
|
|
9456
|
+
|
|
9457
|
+
_context.next = 11;
|
|
9458
|
+
return updateUnitPriceExcludingTax(controller, s.goodsListState.form, record);
|
|
9459
|
+
|
|
9460
|
+
case 11:
|
|
9461
|
+
_context.next = 15;
|
|
9462
|
+
break;
|
|
9463
|
+
|
|
9464
|
+
case 13:
|
|
9465
|
+
_context.next = 15;
|
|
9466
|
+
return updateUnitPriceTax(controller, s.goodsListState.form, record);
|
|
9467
|
+
|
|
9468
|
+
case 15:
|
|
9469
|
+
case "end":
|
|
9470
|
+
return _context.stop();
|
|
9471
|
+
}
|
|
9472
|
+
}
|
|
9473
|
+
}, _callee);
|
|
9474
|
+
}));
|
|
9475
|
+
|
|
9476
|
+
return function (_x, _x2, _x3) {
|
|
9477
|
+
return _ref.apply(this, arguments);
|
|
9478
|
+
};
|
|
9479
|
+
})();
|
|
9480
|
+
|
|
9406
9481
|
var InvoiceController = /*#__PURE__*/function (_InvoiceControllerFor) {
|
|
9407
9482
|
_inherits(InvoiceController, _InvoiceControllerFor);
|
|
9408
9483
|
|
|
@@ -9428,6 +9503,7 @@ var InvoiceController = /*#__PURE__*/function (_InvoiceControllerFor) {
|
|
|
9428
9503
|
_this.addGoodDiscount = _this.pipeline(addGoodDiscount);
|
|
9429
9504
|
_this.addGoodDiscountV2 = _this.pipeline(addGoodDiscountV2);
|
|
9430
9505
|
_this.importGoodsDrawer = _this.pipeline(importGoodsDrawer);
|
|
9506
|
+
_this.itemNameBlur = _this.pipeline(itemBlur);
|
|
9431
9507
|
_this.getGoodsList = void 0;
|
|
9432
9508
|
_this.getTaxCategoryCodeList = void 0;
|
|
9433
9509
|
_this.getGoodsSearch = getGoodsSearch;
|
|
@@ -9524,7 +9600,7 @@ var InvoiceHeader = decorator(Form.create())(function (props) {
|
|
|
9524
9600
|
render: function render(form) {
|
|
9525
9601
|
return form.getFieldDecorator('code', {
|
|
9526
9602
|
initialValue: props.defaultCode
|
|
9527
|
-
})(
|
|
9603
|
+
})(React.createElement(FormSpanString, null));
|
|
9528
9604
|
}
|
|
9529
9605
|
});
|
|
9530
9606
|
}
|
|
@@ -9537,7 +9613,7 @@ var InvoiceHeader = decorator(Form.create())(function (props) {
|
|
|
9537
9613
|
render: function render(form) {
|
|
9538
9614
|
return form.getFieldDecorator('no', {
|
|
9539
9615
|
initialValue: props.defaultNo
|
|
9540
|
-
})(
|
|
9616
|
+
})(React.createElement(FormSpanString, null));
|
|
9541
9617
|
}
|
|
9542
9618
|
});
|
|
9543
9619
|
}
|
|
@@ -9548,7 +9624,7 @@ var InvoiceHeader = decorator(Form.create())(function (props) {
|
|
|
9548
9624
|
render: function render(form) {
|
|
9549
9625
|
return form.getFieldDecorator('invoicingDate', {
|
|
9550
9626
|
initialValue: props.defaultInvoicingDate
|
|
9551
|
-
})(
|
|
9627
|
+
})(React.createElement(FormSpanString, null));
|
|
9552
9628
|
}
|
|
9553
9629
|
});
|
|
9554
9630
|
}
|
|
@@ -9559,7 +9635,7 @@ var InvoiceHeader = decorator(Form.create())(function (props) {
|
|
|
9559
9635
|
render: function render(form) {
|
|
9560
9636
|
return form.getFieldDecorator('defaultValidationCode', {
|
|
9561
9637
|
initialValue: props.defaultValidationCode
|
|
9562
|
-
})(
|
|
9638
|
+
})(React.createElement(FormSpanString, null));
|
|
9563
9639
|
}
|
|
9564
9640
|
});
|
|
9565
9641
|
}
|
|
@@ -9579,21 +9655,21 @@ var InvoiceHeader = decorator(Form.create())(function (props) {
|
|
|
9579
9655
|
React.useEffect(function () {
|
|
9580
9656
|
setTypeIndex(props.typeOptionIndex || 0);
|
|
9581
9657
|
}, [props.typeOption]);
|
|
9582
|
-
return
|
|
9658
|
+
return React.createElement("div", {
|
|
9583
9659
|
className: "kts-invoice-operate-invoice-header"
|
|
9584
|
-
},
|
|
9660
|
+
}, React.createElement("div", {
|
|
9585
9661
|
className: "invoice-header-title"
|
|
9586
|
-
}, title),
|
|
9662
|
+
}, title), React.createElement("div", {
|
|
9587
9663
|
className: "invoice-header-no"
|
|
9588
|
-
}, isInvoiceNo ?
|
|
9664
|
+
}, isInvoiceNo ? React.createElement("div", null, React.createElement("label", null, "\u53D1\u7968\u5355\u636E\u7F16\u53F7 :"), getFieldDecorator('id', {
|
|
9589
9665
|
initialValue: props.defaultId
|
|
9590
|
-
})(
|
|
9666
|
+
})(React.createElement(Input, {
|
|
9591
9667
|
disabled: readOnlyInvoiceNo,
|
|
9592
9668
|
style: {
|
|
9593
9669
|
width: 230
|
|
9594
9670
|
},
|
|
9595
9671
|
size: "small",
|
|
9596
|
-
suffix: controller.updateInvoiceNo &&
|
|
9672
|
+
suffix: controller.updateInvoiceNo && React.createElement(Icon$1, {
|
|
9597
9673
|
style: {
|
|
9598
9674
|
cursor: 'pointer'
|
|
9599
9675
|
},
|
|
@@ -9637,15 +9713,15 @@ var InvoiceHeader = decorator(Form.create())(function (props) {
|
|
|
9637
9713
|
return onClick;
|
|
9638
9714
|
}()
|
|
9639
9715
|
})
|
|
9640
|
-
}))) :
|
|
9716
|
+
}))) : React.createElement("div", {
|
|
9641
9717
|
style: {
|
|
9642
9718
|
height: 20
|
|
9643
9719
|
}
|
|
9644
|
-
}), tag &&
|
|
9720
|
+
}), tag && React.createElement(Tag$1, null, tag), React.createElement("div", {
|
|
9645
9721
|
className: "invoice-header-type"
|
|
9646
9722
|
}, props.typeOption ? getFieldDecorator('type', {
|
|
9647
9723
|
initialValue: typeIndex
|
|
9648
|
-
})(
|
|
9724
|
+
})(React.createElement(Select, {
|
|
9649
9725
|
size: "small",
|
|
9650
9726
|
style: {
|
|
9651
9727
|
width: 230
|
|
@@ -9654,20 +9730,20 @@ var InvoiceHeader = decorator(Form.create())(function (props) {
|
|
|
9654
9730
|
setTypeIndex(e);
|
|
9655
9731
|
}
|
|
9656
9732
|
}, props.typeOption.map(function (e, i) {
|
|
9657
|
-
return
|
|
9733
|
+
return React.createElement(Select.Option, {
|
|
9658
9734
|
key: i,
|
|
9659
9735
|
value: i
|
|
9660
9736
|
}, e.title);
|
|
9661
|
-
}))) : props.renderExpand && props.renderExpand(props.form))), props.typeOption &&
|
|
9737
|
+
}))) : props.renderExpand && props.renderExpand(props.form))), props.typeOption && React.createElement("div", {
|
|
9662
9738
|
style: {
|
|
9663
9739
|
marginTop: 10
|
|
9664
9740
|
}
|
|
9665
|
-
}, props.renderExpand && props.renderExpand(props.form)),
|
|
9741
|
+
}, props.renderExpand && props.renderExpand(props.form)), React.createElement("div", {
|
|
9666
9742
|
className: "invoice-header-property"
|
|
9667
|
-
}, _toConsumableArray(props.fieldExpand || []).map(function (e) {}),
|
|
9743
|
+
}, _toConsumableArray(props.fieldExpand || []).map(function (e) {}), React.createElement("ul", {
|
|
9668
9744
|
className: 'invoice-header-property-fieldExpand'
|
|
9669
9745
|
}, fieldExpand.map(function (e) {
|
|
9670
|
-
return
|
|
9746
|
+
return React.createElement("li", null, React.createElement("label", null, e.label), e.render(form));
|
|
9671
9747
|
}))));
|
|
9672
9748
|
});
|
|
9673
9749
|
|
|
@@ -9686,7 +9762,7 @@ var FormSpanString = /*#__PURE__*/function (_React$Component) {
|
|
|
9686
9762
|
key: "render",
|
|
9687
9763
|
value: function render() {
|
|
9688
9764
|
// return <span>{this.props.value}</span>;
|
|
9689
|
-
return
|
|
9765
|
+
return React.createElement(Input, {
|
|
9690
9766
|
size: "small",
|
|
9691
9767
|
disabled: true,
|
|
9692
9768
|
value: this.props.value
|
|
@@ -9797,12 +9873,12 @@ function TableVirtual (props) {
|
|
|
9797
9873
|
if (!cont) return;
|
|
9798
9874
|
cont.scrollTop = 0;
|
|
9799
9875
|
}, [(_props$dataSource2 = props.dataSource) === null || _props$dataSource2 === void 0 ? void 0 : _props$dataSource2.length]);
|
|
9800
|
-
return
|
|
9876
|
+
return React.createElement("span", {
|
|
9801
9877
|
className: "kts-invoice-operate-goods-table-virtual",
|
|
9802
9878
|
ref: function ref(e) {
|
|
9803
9879
|
setSelf(e);
|
|
9804
9880
|
}
|
|
9805
|
-
},
|
|
9881
|
+
}, React.createElement(TableManual, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
9806
9882
|
dataSource: dataSource,
|
|
9807
9883
|
// 新版本Table会有输入框无法连续输入的问题,先兼容老版本
|
|
9808
9884
|
tableComponent: Table
|
|
@@ -9894,59 +9970,59 @@ var Statistics = (function () {
|
|
|
9894
9970
|
});
|
|
9895
9971
|
return sum.done().toNumber();
|
|
9896
9972
|
}, []);
|
|
9897
|
-
return
|
|
9973
|
+
return React.createElement("div", {
|
|
9898
9974
|
className: "kts-invoice-operate-goods-list-statistics"
|
|
9899
|
-
},
|
|
9975
|
+
}, React.createElement("div", {
|
|
9900
9976
|
className: "kts-invoice-operate-goods-list-statistics-row"
|
|
9901
|
-
},
|
|
9977
|
+
}, React.createElement("div", {
|
|
9902
9978
|
style: {
|
|
9903
9979
|
width: 45.92
|
|
9904
9980
|
}
|
|
9905
|
-
}),
|
|
9981
|
+
}), React.createElement("div", {
|
|
9906
9982
|
style: {
|
|
9907
9983
|
flex: 1
|
|
9908
9984
|
}
|
|
9909
|
-
},
|
|
9985
|
+
}, React.createElement("label", null, "\u5408\u8BA1")), React.createElement("div", {
|
|
9910
9986
|
style: {
|
|
9911
9987
|
width: 119,
|
|
9912
9988
|
textAlign: 'right',
|
|
9913
9989
|
border: 'none'
|
|
9914
9990
|
}
|
|
9915
|
-
},
|
|
9991
|
+
}, React.createElement("label", null, parseFloat(isTaxIncluded ? lineAmountIncludeTax : lineAmountExcludeTax).toFixed(2))), React.createElement("div", {
|
|
9916
9992
|
style: {
|
|
9917
9993
|
width: 70,
|
|
9918
9994
|
border: 'none'
|
|
9919
9995
|
}
|
|
9920
|
-
}),
|
|
9996
|
+
}), React.createElement("div", {
|
|
9921
9997
|
style: {
|
|
9922
9998
|
width: 119,
|
|
9923
9999
|
textAlign: 'right',
|
|
9924
10000
|
border: 'none'
|
|
9925
10001
|
}
|
|
9926
|
-
},
|
|
10002
|
+
}, React.createElement("label", null, parseFloat(taxAmount).toFixed(2))), React.createElement("div", {
|
|
9927
10003
|
style: {
|
|
9928
10004
|
width: 111,
|
|
9929
10005
|
border: 'none'
|
|
9930
10006
|
}
|
|
9931
|
-
})),
|
|
10007
|
+
})), React.createElement("div", {
|
|
9932
10008
|
className: "kts-invoice-operate-goods-list-statistics-row"
|
|
9933
|
-
},
|
|
10009
|
+
}, React.createElement("div", {
|
|
9934
10010
|
style: {
|
|
9935
10011
|
width: 45.92
|
|
9936
10012
|
}
|
|
9937
|
-
}),
|
|
10013
|
+
}), React.createElement("div", {
|
|
9938
10014
|
style: {
|
|
9939
10015
|
flex: 5,
|
|
9940
10016
|
border: 'none'
|
|
9941
10017
|
}
|
|
9942
|
-
},
|
|
10018
|
+
}, React.createElement("label", null, "\u4EF7\u7A0E\u5408\u8BA1\uFF08\u5927\u5199\uFF09"), React.createElement("label", null, nzhcn.toMoney(lineAmountIncludeTax, {
|
|
9943
10019
|
outSymbol: false
|
|
9944
|
-
}))),
|
|
10020
|
+
}))), React.createElement("div", {
|
|
9945
10021
|
style: {
|
|
9946
10022
|
flex: 5,
|
|
9947
10023
|
border: 'none'
|
|
9948
10024
|
}
|
|
9949
|
-
},
|
|
10025
|
+
}, React.createElement("label", null, "\uFF08\u5C0F\u5199\uFF09 ", parseFloat(lineAmountIncludeTax).toFixed(2)))));
|
|
9950
10026
|
});
|
|
9951
10027
|
|
|
9952
10028
|
var AddRowButton = (function () {
|
|
@@ -10001,10 +10077,10 @@ var AddRowButton = (function () {
|
|
|
10001
10077
|
}
|
|
10002
10078
|
}, _callee);
|
|
10003
10079
|
})), [controller, rootElement]);
|
|
10004
|
-
if (isAddRow === false) return
|
|
10005
|
-
if (model === 'prefab') return
|
|
10006
|
-
if (model === 'readOnly') return
|
|
10007
|
-
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, {
|
|
10008
10084
|
onClick: onClick,
|
|
10009
10085
|
disabled: disabled
|
|
10010
10086
|
}, "\u6DFB\u52A0\u884C");
|
|
@@ -10155,11 +10231,11 @@ var TaxIncludedSwitch = (function () {
|
|
|
10155
10231
|
};
|
|
10156
10232
|
}())();
|
|
10157
10233
|
}, []);
|
|
10158
|
-
return
|
|
10234
|
+
return React.createElement("span", null, React.createElement("label", {
|
|
10159
10235
|
style: {
|
|
10160
10236
|
marginRight: 2
|
|
10161
10237
|
}
|
|
10162
|
-
}, "\u542B\u7A0E:"),
|
|
10238
|
+
}, "\u542B\u7A0E:"), React.createElement(Switch, {
|
|
10163
10239
|
disabled: isSwitchTax === false,
|
|
10164
10240
|
checked: isTaxIncluded,
|
|
10165
10241
|
defaultChecked: true,
|
|
@@ -10197,19 +10273,19 @@ var DescribeSwitch = (function () {
|
|
|
10197
10273
|
};
|
|
10198
10274
|
}());
|
|
10199
10275
|
}, []);
|
|
10200
|
-
if (!productComparison.onComply) return
|
|
10201
|
-
return
|
|
10276
|
+
if (!productComparison.onComply) return React.createElement(React.Fragment, null);
|
|
10277
|
+
return React.createElement("span", null, React.createElement("label", {
|
|
10202
10278
|
style: {
|
|
10203
10279
|
marginRight: 2
|
|
10204
10280
|
}
|
|
10205
|
-
},
|
|
10281
|
+
}, React.createElement(Tooltip, {
|
|
10206
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"
|
|
10207
|
-
},
|
|
10283
|
+
}, React.createElement(Icon$1, {
|
|
10208
10284
|
style: {
|
|
10209
10285
|
marginRight: 3
|
|
10210
10286
|
},
|
|
10211
10287
|
type: "info-circle"
|
|
10212
|
-
})), "\u4F7F\u7528\u54EA\u65B9\u5546\u54C1\u63CF\u8FF0:"),
|
|
10288
|
+
})), "\u4F7F\u7528\u54EA\u65B9\u5546\u54C1\u63CF\u8FF0:"), React.createElement(Switch$1, {
|
|
10213
10289
|
checked: isMyShow,
|
|
10214
10290
|
checkedChildren: "\u6211\u65B9",
|
|
10215
10291
|
unCheckedChildren: "\u5BF9\u65B9",
|
|
@@ -10309,13 +10385,13 @@ function Search() {
|
|
|
10309
10385
|
};
|
|
10310
10386
|
}());
|
|
10311
10387
|
}, [value, controller]);
|
|
10312
|
-
return
|
|
10388
|
+
return React.createElement(Input, {
|
|
10313
10389
|
size: "small",
|
|
10314
10390
|
readOnly: readOnly,
|
|
10315
10391
|
value: value,
|
|
10316
10392
|
className: "kts-invoice-operate-goods-list-search",
|
|
10317
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"),
|
|
10318
|
-
prefix:
|
|
10394
|
+
prefix: React.createElement(Icon$1, {
|
|
10319
10395
|
component: SvgMagnifier,
|
|
10320
10396
|
style: {
|
|
10321
10397
|
color: "#b8b8b8"
|
|
@@ -10367,13 +10443,13 @@ function TableRow(props) {
|
|
|
10367
10443
|
return undefined;
|
|
10368
10444
|
}
|
|
10369
10445
|
}, [good, goodsMap]);
|
|
10370
|
-
return rowKey === current && current ?
|
|
10446
|
+
return rowKey === current && current ? React.createElement("tr", {
|
|
10371
10447
|
style: {
|
|
10372
10448
|
height: 32.67,
|
|
10373
10449
|
borderBottom: '1px solid #E6E6E6',
|
|
10374
10450
|
position: 'relative'
|
|
10375
10451
|
}
|
|
10376
|
-
},
|
|
10452
|
+
}, React.createElement("div", {
|
|
10377
10453
|
style: {
|
|
10378
10454
|
height: 1,
|
|
10379
10455
|
width: '100%',
|
|
@@ -10381,7 +10457,7 @@ function TableRow(props) {
|
|
|
10381
10457
|
position: 'absolute',
|
|
10382
10458
|
bottom: 0
|
|
10383
10459
|
}
|
|
10384
|
-
})) :
|
|
10460
|
+
})) : React.createElement("tr", _objectSpread2(_objectSpread2({}, props), {}, {
|
|
10385
10461
|
className: classNames(props.className, discount, rowKey === container && current ? 'kts-invoice-operate-goods-list-itemName-drag-container-' + site : undefined)
|
|
10386
10462
|
}));
|
|
10387
10463
|
}
|
|
@@ -10789,7 +10865,7 @@ var RowMenu = (function (props) {
|
|
|
10789
10865
|
// addComparison && arr.push(addComparison); // 添加商品对照
|
|
10790
10866
|
|
|
10791
10867
|
if (!goodsMenuExpand || goodsMenuExpand.length === 0) return arr;
|
|
10792
|
-
arr.unshift(
|
|
10868
|
+
arr.unshift(React.createElement(Menu.Divider, {
|
|
10793
10869
|
key: "divider-1"
|
|
10794
10870
|
}));
|
|
10795
10871
|
|
|
@@ -10805,17 +10881,17 @@ var RowMenu = (function (props) {
|
|
|
10805
10881
|
return undefined;
|
|
10806
10882
|
}
|
|
10807
10883
|
|
|
10808
|
-
return
|
|
10809
|
-
return
|
|
10884
|
+
return React.createElement(Menu, null, itemList.slice(2).map(function (e) {
|
|
10885
|
+
return React.createElement(Menu.Item, {
|
|
10810
10886
|
key: e.key,
|
|
10811
10887
|
onClick: e.onClick
|
|
10812
|
-
},
|
|
10888
|
+
}, React.createElement(Text$1, {
|
|
10813
10889
|
strong: true
|
|
10814
10890
|
}, e.title));
|
|
10815
10891
|
}));
|
|
10816
10892
|
}, [itemList]);
|
|
10817
10893
|
var buttonList = React.useMemo(function () {
|
|
10818
|
-
return
|
|
10894
|
+
return React.createElement("div", {
|
|
10819
10895
|
style: {
|
|
10820
10896
|
flex: 1,
|
|
10821
10897
|
textAlign: 'left',
|
|
@@ -10823,7 +10899,7 @@ var RowMenu = (function (props) {
|
|
|
10823
10899
|
gap: 10
|
|
10824
10900
|
}
|
|
10825
10901
|
}, itemList.slice(0, 2).map(function (e) {
|
|
10826
|
-
return
|
|
10902
|
+
return React.createElement(Button, {
|
|
10827
10903
|
key: e.key,
|
|
10828
10904
|
type: 'link',
|
|
10829
10905
|
onClick: e.onClick,
|
|
@@ -10835,21 +10911,21 @@ var RowMenu = (function (props) {
|
|
|
10835
10911
|
}, [itemList]);
|
|
10836
10912
|
|
|
10837
10913
|
if (itemList.length === 0) {
|
|
10838
|
-
return
|
|
10914
|
+
return React.createElement(React.Fragment, null);
|
|
10839
10915
|
}
|
|
10840
10916
|
|
|
10841
|
-
return
|
|
10917
|
+
return React.createElement("span", {
|
|
10842
10918
|
style: {
|
|
10843
10919
|
padding: '0 0 0 10px',
|
|
10844
10920
|
display: 'flex'
|
|
10845
10921
|
}
|
|
10846
|
-
}, buttonList, overlay &&
|
|
10922
|
+
}, buttonList, overlay && React.createElement(Dropdown, {
|
|
10847
10923
|
overlay: overlay,
|
|
10848
10924
|
trigger: ['click']
|
|
10849
|
-
},
|
|
10925
|
+
}, React.createElement(Button, {
|
|
10850
10926
|
className: "kts-invoice-operate-goods-list-columns-row-menu ant-btn-icon-only",
|
|
10851
10927
|
type: "link"
|
|
10852
|
-
},
|
|
10928
|
+
}, React.createElement(Icon$1, {
|
|
10853
10929
|
component: SvgSpot
|
|
10854
10930
|
}))));
|
|
10855
10931
|
});
|
|
@@ -10863,9 +10939,9 @@ var TitleText = (function (props) {
|
|
|
10863
10939
|
return !!e.required;
|
|
10864
10940
|
})) || props.required;
|
|
10865
10941
|
}, [rules, props.required]);
|
|
10866
|
-
return
|
|
10942
|
+
return React.createElement(React.Fragment, null, required ? React.createElement(Text$2, {
|
|
10867
10943
|
type: "danger"
|
|
10868
|
-
}, "*") :
|
|
10944
|
+
}, "*") : React.createElement(React.Fragment, null), children);
|
|
10869
10945
|
});
|
|
10870
10946
|
|
|
10871
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";
|
|
@@ -10923,11 +10999,11 @@ function ItemNameInput(props) {
|
|
|
10923
10999
|
taxCategoryData = _context.sent;
|
|
10924
11000
|
|
|
10925
11001
|
if (taxCategoryData && taxCategoryData[0]) {
|
|
10926
|
-
params =
|
|
11002
|
+
params = {
|
|
10927
11003
|
taxClassificationCode: taxCategoryData[0].taxCategoryCode,
|
|
10928
11004
|
shorthand: taxCategoryData[0].shorthand
|
|
10929
|
-
}
|
|
10930
|
-
controller.
|
|
11005
|
+
};
|
|
11006
|
+
controller.itemNameBlur(params);
|
|
10931
11007
|
}
|
|
10932
11008
|
|
|
10933
11009
|
case 7:
|
|
@@ -11055,14 +11131,14 @@ function ItemNameInput(props) {
|
|
|
11055
11131
|
React.useEffect(function () {
|
|
11056
11132
|
setValue(props.value);
|
|
11057
11133
|
}, [props.value]);
|
|
11058
|
-
return
|
|
11134
|
+
return React.createElement("div", {
|
|
11059
11135
|
className: 'kts-invoice-operate-goods-list-itemName-input'
|
|
11060
|
-
}, props.shorthand &&
|
|
11136
|
+
}, props.shorthand && React.createElement("span", {
|
|
11061
11137
|
style: {
|
|
11062
11138
|
alignSelf: 'center',
|
|
11063
11139
|
fontSize: 12
|
|
11064
11140
|
}
|
|
11065
|
-
}, "*", props.shorthand, "*"),
|
|
11141
|
+
}, "*", props.shorthand, "*"), React.createElement(AutoComplete$1, {
|
|
11066
11142
|
onSearch: onSearch,
|
|
11067
11143
|
value: props.value,
|
|
11068
11144
|
options: options.map(function (e) {
|
|
@@ -11072,7 +11148,7 @@ function ItemNameInput(props) {
|
|
|
11072
11148
|
};
|
|
11073
11149
|
}),
|
|
11074
11150
|
onSelect: onChangeAutoComplete
|
|
11075
|
-
},
|
|
11151
|
+
}, React.createElement(Input, {
|
|
11076
11152
|
style: {
|
|
11077
11153
|
height: '100%',
|
|
11078
11154
|
border: 'none'
|
|
@@ -11181,9 +11257,9 @@ function ItemCodeInput(props) {
|
|
|
11181
11257
|
return _ref2.apply(this, arguments);
|
|
11182
11258
|
};
|
|
11183
11259
|
}(), [options, controller]);
|
|
11184
|
-
return
|
|
11260
|
+
return React.createElement("div", {
|
|
11185
11261
|
className: 'kts-invoice-operate-goods-list-itemCode-input'
|
|
11186
|
-
},
|
|
11262
|
+
}, React.createElement(AutoComplete$1, {
|
|
11187
11263
|
onSearch: onSearch,
|
|
11188
11264
|
value: props.value,
|
|
11189
11265
|
options: options.map(function (e) {
|
|
@@ -11192,7 +11268,7 @@ function ItemCodeInput(props) {
|
|
|
11192
11268
|
};
|
|
11193
11269
|
}),
|
|
11194
11270
|
onSelect: onChangeAutoComplete
|
|
11195
|
-
},
|
|
11271
|
+
}, React.createElement(Input, {
|
|
11196
11272
|
style: {
|
|
11197
11273
|
height: '100%',
|
|
11198
11274
|
border: 'none'
|
|
@@ -12373,7 +12449,7 @@ function Drag$1(props) {
|
|
|
12373
12449
|
var currentGood = controller.state.goodsListState.goodsList.filter(function (e) {
|
|
12374
12450
|
return e.$index === record.$index;
|
|
12375
12451
|
})[0];
|
|
12376
|
-
mounting(
|
|
12452
|
+
mounting(React.createElement(DragDiv, _objectSpread2({}, currentGood)));
|
|
12377
12453
|
rowList.forEach(function (e) {
|
|
12378
12454
|
e.addEventListener('mousemove', onMousemove);
|
|
12379
12455
|
});
|
|
@@ -12534,7 +12610,7 @@ function Drag$1(props) {
|
|
|
12534
12610
|
|
|
12535
12611
|
|
|
12536
12612
|
function insert() {
|
|
12537
|
-
mounting(
|
|
12613
|
+
mounting(React.createElement(React.Fragment, null));
|
|
12538
12614
|
controller.run( /*#__PURE__*/function () {
|
|
12539
12615
|
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(s) {
|
|
12540
12616
|
var _s$goodsListState$dra, container, current, site, goodsList, goodsMap, _currentGood, currentIndex, moveGoods;
|
|
@@ -12613,7 +12689,7 @@ function Drag$1(props) {
|
|
|
12613
12689
|
}
|
|
12614
12690
|
}, [controller, record, disabled]);
|
|
12615
12691
|
var renderButton = React.useMemo(function () {
|
|
12616
|
-
return
|
|
12692
|
+
return React.createElement(Button, {
|
|
12617
12693
|
type: 'link',
|
|
12618
12694
|
style: {
|
|
12619
12695
|
padding: 0
|
|
@@ -12624,13 +12700,13 @@ function Drag$1(props) {
|
|
|
12624
12700
|
},
|
|
12625
12701
|
className: "kts-invoice-operate-goods-list-itemName-drag",
|
|
12626
12702
|
onMouseOver: controller.saveEditGood
|
|
12627
|
-
},
|
|
12703
|
+
}, React.createElement(Icon, {
|
|
12628
12704
|
component: SvgI001
|
|
12629
12705
|
}));
|
|
12630
12706
|
}, [onMouseDown, controller]);
|
|
12631
12707
|
|
|
12632
12708
|
if (disabled) {
|
|
12633
|
-
return
|
|
12709
|
+
return React.createElement(Popover, {
|
|
12634
12710
|
content: '您还有未编辑完成的商品',
|
|
12635
12711
|
trigger: 'focus'
|
|
12636
12712
|
}, renderButton);
|
|
@@ -12670,13 +12746,13 @@ function DragDiv(props) {
|
|
|
12670
12746
|
window.removeEventListener('mousemove', onMousemove);
|
|
12671
12747
|
};
|
|
12672
12748
|
});
|
|
12673
|
-
return
|
|
12749
|
+
return React.createElement("div", {
|
|
12674
12750
|
className: "kts-invoice-operate-goods-list-itemName-drag-div",
|
|
12675
12751
|
style: {
|
|
12676
12752
|
top: y,
|
|
12677
12753
|
left: x
|
|
12678
12754
|
}
|
|
12679
|
-
},
|
|
12755
|
+
}, React.createElement("span", null, props.itemName), React.createElement("span", null, props.itemModelName), React.createElement("span", null, props.unit));
|
|
12680
12756
|
}
|
|
12681
12757
|
|
|
12682
12758
|
var useColumns = (function (form) {
|
|
@@ -12797,7 +12873,7 @@ var useColumns = (function (form) {
|
|
|
12797
12873
|
width: 40,
|
|
12798
12874
|
align: 'center',
|
|
12799
12875
|
render: function render(_, record) {
|
|
12800
|
-
return
|
|
12876
|
+
return React.createElement(Drag$1, {
|
|
12801
12877
|
record: record
|
|
12802
12878
|
});
|
|
12803
12879
|
}
|
|
@@ -12807,7 +12883,7 @@ var useColumns = (function (form) {
|
|
|
12807
12883
|
dataIndex: 'serialNo',
|
|
12808
12884
|
width: 50,
|
|
12809
12885
|
render: function render(e) {
|
|
12810
|
-
return
|
|
12886
|
+
return React.createElement("span", {
|
|
12811
12887
|
style: {
|
|
12812
12888
|
padding: '0 10px'
|
|
12813
12889
|
}
|
|
@@ -12819,13 +12895,13 @@ var useColumns = (function (form) {
|
|
|
12819
12895
|
width: 119,
|
|
12820
12896
|
render: function render(_, record) {
|
|
12821
12897
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
12822
|
-
return
|
|
12898
|
+
return React.createElement(Form.Item, null, getFieldDecorator('itemCode', {
|
|
12823
12899
|
initialValue: editGood.itemCode,
|
|
12824
12900
|
rules: [].concat(_toConsumableArray(getReplenishRules('itemCode')), [{
|
|
12825
12901
|
pattern: /^.{1,19}$/,
|
|
12826
12902
|
message: '商品编码长度不能超过19位'
|
|
12827
12903
|
}])
|
|
12828
|
-
})(
|
|
12904
|
+
})(React.createElement(ItemCodeInput, {
|
|
12829
12905
|
onChange: function () {
|
|
12830
12906
|
var _onChange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
12831
12907
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
@@ -12851,7 +12927,7 @@ var useColumns = (function (form) {
|
|
|
12851
12927
|
}()
|
|
12852
12928
|
})));
|
|
12853
12929
|
} else {
|
|
12854
|
-
return
|
|
12930
|
+
return React.createElement("span", {
|
|
12855
12931
|
style: {
|
|
12856
12932
|
padding: '0 10px'
|
|
12857
12933
|
}
|
|
@@ -12859,13 +12935,13 @@ var useColumns = (function (form) {
|
|
|
12859
12935
|
}
|
|
12860
12936
|
}
|
|
12861
12937
|
}, {
|
|
12862
|
-
title:
|
|
12938
|
+
title: React.createElement(TitleText, {
|
|
12863
12939
|
required: true
|
|
12864
12940
|
}, "\u9879\u76EE\u540D\u79F0"),
|
|
12865
12941
|
key: 'itemName',
|
|
12866
12942
|
render: function render(_, record) {
|
|
12867
12943
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
12868
|
-
return
|
|
12944
|
+
return React.createElement(Form.Item, null, React.createElement("div", {
|
|
12869
12945
|
style: {
|
|
12870
12946
|
display: 'flex'
|
|
12871
12947
|
}
|
|
@@ -12912,17 +12988,17 @@ var useColumns = (function (form) {
|
|
|
12912
12988
|
return validator;
|
|
12913
12989
|
}()
|
|
12914
12990
|
}])
|
|
12915
|
-
})(
|
|
12991
|
+
})(React.createElement(ItemNameInput, {
|
|
12916
12992
|
editGood: editGood,
|
|
12917
12993
|
shorthand: editGood.shorthand,
|
|
12918
12994
|
onChange: function onChange() {
|
|
12919
12995
|
onChangeItemName(controller, form, record);
|
|
12920
12996
|
}
|
|
12921
|
-
})),
|
|
12997
|
+
})), React.createElement("div", {
|
|
12922
12998
|
className: "kts-invoice-operate-goods-list-able-list-itemName-import"
|
|
12923
|
-
}, controller.getGoodsList && model !== 'readOnly' &&
|
|
12999
|
+
}, controller.getGoodsList && model !== 'readOnly' && React.createElement(Tooltip, {
|
|
12924
13000
|
title: "\u70B9\u51FB\u4ECE\u5546\u54C1\u7BA1\u7406\u4E2D\u6DFB\u52A0\u5546\u54C1\u4FE1\u606F"
|
|
12925
|
-
},
|
|
13001
|
+
}, React.createElement(Button, {
|
|
12926
13002
|
onClick: controller.pipeline( /*#__PURE__*/function () {
|
|
12927
13003
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(s) {
|
|
12928
13004
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
@@ -12947,7 +13023,7 @@ var useColumns = (function (form) {
|
|
|
12947
13023
|
icon: "plus-circle"
|
|
12948
13024
|
})))));
|
|
12949
13025
|
} else {
|
|
12950
|
-
return
|
|
13026
|
+
return React.createElement(MyItemNameDiv, {
|
|
12951
13027
|
valueT: formatSearch(getItemNameWithShorthand({
|
|
12952
13028
|
shorthand: record.shorthand,
|
|
12953
13029
|
full: record.itemNameSelf || ''
|
|
@@ -12961,17 +13037,17 @@ var useColumns = (function (form) {
|
|
|
12961
13037
|
}
|
|
12962
13038
|
}
|
|
12963
13039
|
}, {
|
|
12964
|
-
title:
|
|
13040
|
+
title: React.createElement(TitleText, {
|
|
12965
13041
|
rules: (_columnsReplenish$ite = columnsReplenish['itemModelName']) === null || _columnsReplenish$ite === void 0 ? void 0 : _columnsReplenish$ite.rules
|
|
12966
13042
|
}, "\u89C4\u683C\u578B\u53F7"),
|
|
12967
13043
|
key: 'itemModelName',
|
|
12968
13044
|
width: 119,
|
|
12969
13045
|
render: function render(_, record) {
|
|
12970
13046
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
12971
|
-
return
|
|
13047
|
+
return React.createElement(Form.Item, null, getFieldDecorator('itemModelName', {
|
|
12972
13048
|
initialValue: isMyShow ? editGood.itemModelNameSelf : editGood.itemModelName,
|
|
12973
13049
|
rules: getReplenishRules('itemModelName')
|
|
12974
|
-
})(
|
|
13050
|
+
})(React.createElement(MyInput, {
|
|
12975
13051
|
onChange: function () {
|
|
12976
13052
|
var _onChange2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5() {
|
|
12977
13053
|
var key, value;
|
|
@@ -13004,7 +13080,7 @@ var useColumns = (function (form) {
|
|
|
13004
13080
|
}()
|
|
13005
13081
|
})));
|
|
13006
13082
|
} else {
|
|
13007
|
-
return
|
|
13083
|
+
return React.createElement(MyItemNameDiv, {
|
|
13008
13084
|
valueT: formatSearch(record.itemModelNameSelf, searchValue),
|
|
13009
13085
|
valueF: formatSearch(record.itemModelName, searchValue),
|
|
13010
13086
|
isMyShow: isMyShow
|
|
@@ -13012,17 +13088,17 @@ var useColumns = (function (form) {
|
|
|
13012
13088
|
}
|
|
13013
13089
|
}
|
|
13014
13090
|
}, {
|
|
13015
|
-
title:
|
|
13091
|
+
title: React.createElement(TitleText, {
|
|
13016
13092
|
rules: (_columnsReplenish$uni = columnsReplenish['unit']) === null || _columnsReplenish$uni === void 0 ? void 0 : _columnsReplenish$uni.rules
|
|
13017
13093
|
}, "\u5355\u4F4D"),
|
|
13018
13094
|
key: 'unit',
|
|
13019
13095
|
width: 70,
|
|
13020
13096
|
render: function render(_, record) {
|
|
13021
13097
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
13022
|
-
return
|
|
13098
|
+
return React.createElement(Form.Item, null, getFieldDecorator('unit', {
|
|
13023
13099
|
initialValue: editGood.unit,
|
|
13024
13100
|
rules: getReplenishRules('unit')
|
|
13025
|
-
})(
|
|
13101
|
+
})(React.createElement(AutoComplete$2, {
|
|
13026
13102
|
style: {
|
|
13027
13103
|
width: '100%'
|
|
13028
13104
|
},
|
|
@@ -13060,7 +13136,7 @@ var useColumns = (function (form) {
|
|
|
13060
13136
|
}()
|
|
13061
13137
|
})));
|
|
13062
13138
|
} else {
|
|
13063
|
-
return
|
|
13139
|
+
return React.createElement("span", {
|
|
13064
13140
|
style: {
|
|
13065
13141
|
padding: '0 10px'
|
|
13066
13142
|
}
|
|
@@ -13068,7 +13144,7 @@ var useColumns = (function (form) {
|
|
|
13068
13144
|
}
|
|
13069
13145
|
}
|
|
13070
13146
|
}, {
|
|
13071
|
-
title:
|
|
13147
|
+
title: React.createElement(TitleText, {
|
|
13072
13148
|
rules: (_columnsReplenish$qua = columnsReplenish['quantity']) === null || _columnsReplenish$qua === void 0 ? void 0 : _columnsReplenish$qua.rules
|
|
13073
13149
|
}, "\u6570\u91CF"),
|
|
13074
13150
|
dataIndex: 'quantity',
|
|
@@ -13077,7 +13153,7 @@ var useColumns = (function (form) {
|
|
|
13077
13153
|
width: 149,
|
|
13078
13154
|
render: function render(value, record) {
|
|
13079
13155
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
13080
|
-
return
|
|
13156
|
+
return React.createElement(Form.Item, null, getFieldDecorator('quantity', {
|
|
13081
13157
|
initialValue: editGood.quantity,
|
|
13082
13158
|
getValueFromEvent: onNumberValueChange,
|
|
13083
13159
|
rules: [].concat(_toConsumableArray(getReplenishRules('quantity')), [{
|
|
@@ -13123,7 +13199,7 @@ var useColumns = (function (form) {
|
|
|
13123
13199
|
return validator;
|
|
13124
13200
|
}()
|
|
13125
13201
|
}])
|
|
13126
|
-
})(
|
|
13202
|
+
})(React.createElement(MyInput, {
|
|
13127
13203
|
style: {
|
|
13128
13204
|
textAlign: 'right'
|
|
13129
13205
|
},
|
|
@@ -13155,7 +13231,7 @@ var useColumns = (function (form) {
|
|
|
13155
13231
|
}()
|
|
13156
13232
|
})));
|
|
13157
13233
|
} else {
|
|
13158
|
-
return
|
|
13234
|
+
return React.createElement("span", {
|
|
13159
13235
|
style: {
|
|
13160
13236
|
padding: '0 10px'
|
|
13161
13237
|
}
|
|
@@ -13163,7 +13239,7 @@ var useColumns = (function (form) {
|
|
|
13163
13239
|
}
|
|
13164
13240
|
}
|
|
13165
13241
|
}, {
|
|
13166
|
-
title:
|
|
13242
|
+
title: React.createElement(TitleText, {
|
|
13167
13243
|
rules: (_columnsReplenish$pri = columnsReplenish['priceIncludeTax']) === null || _columnsReplenish$pri === void 0 ? void 0 : _columnsReplenish$pri.rules
|
|
13168
13244
|
}, "\u5355\u4EF7(\u542B\u7A0E)"),
|
|
13169
13245
|
dataIndex: 'priceIncludeTax',
|
|
@@ -13172,7 +13248,7 @@ var useColumns = (function (form) {
|
|
|
13172
13248
|
width: 149,
|
|
13173
13249
|
render: function render(value, record) {
|
|
13174
13250
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
13175
|
-
return
|
|
13251
|
+
return React.createElement(Form.Item, null, getFieldDecorator('priceIncludeTax', {
|
|
13176
13252
|
initialValue: editGood.priceIncludeTax,
|
|
13177
13253
|
getValueFromEvent: onNumberValueChange,
|
|
13178
13254
|
rules: [].concat(_toConsumableArray(getReplenishRules('priceIncludeTax')), [{
|
|
@@ -13218,7 +13294,7 @@ var useColumns = (function (form) {
|
|
|
13218
13294
|
return validator;
|
|
13219
13295
|
}()
|
|
13220
13296
|
}])
|
|
13221
|
-
})(
|
|
13297
|
+
})(React.createElement(MyInput, {
|
|
13222
13298
|
style: {
|
|
13223
13299
|
textAlign: 'right'
|
|
13224
13300
|
},
|
|
@@ -13230,7 +13306,7 @@ var useColumns = (function (form) {
|
|
|
13230
13306
|
}
|
|
13231
13307
|
})));
|
|
13232
13308
|
} else {
|
|
13233
|
-
return
|
|
13309
|
+
return React.createElement("span", {
|
|
13234
13310
|
style: {
|
|
13235
13311
|
padding: '0 10px'
|
|
13236
13312
|
}
|
|
@@ -13238,7 +13314,7 @@ var useColumns = (function (form) {
|
|
|
13238
13314
|
}
|
|
13239
13315
|
}
|
|
13240
13316
|
}, {
|
|
13241
|
-
title:
|
|
13317
|
+
title: React.createElement(TitleText, {
|
|
13242
13318
|
rules: (_columnsReplenish$pri2 = columnsReplenish['priceExcludeTax']) === null || _columnsReplenish$pri2 === void 0 ? void 0 : _columnsReplenish$pri2.rules
|
|
13243
13319
|
}, "\u5355\u4EF7(\u4E0D\u542B\u7A0E)"),
|
|
13244
13320
|
dataIndex: 'priceExcludeTax',
|
|
@@ -13247,7 +13323,7 @@ var useColumns = (function (form) {
|
|
|
13247
13323
|
width: 149,
|
|
13248
13324
|
render: function render(value, record) {
|
|
13249
13325
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
13250
|
-
return
|
|
13326
|
+
return React.createElement(Form.Item, null, getFieldDecorator('priceExcludeTax', {
|
|
13251
13327
|
initialValue: editGood.priceExcludeTax,
|
|
13252
13328
|
getValueFromEvent: onNumberValueChange,
|
|
13253
13329
|
rules: [].concat(_toConsumableArray(getReplenishRules('priceExcludeTax')), [{
|
|
@@ -13293,7 +13369,7 @@ var useColumns = (function (form) {
|
|
|
13293
13369
|
return validator;
|
|
13294
13370
|
}()
|
|
13295
13371
|
}])
|
|
13296
|
-
})(
|
|
13372
|
+
})(React.createElement(MyInput, {
|
|
13297
13373
|
style: {
|
|
13298
13374
|
textAlign: 'right'
|
|
13299
13375
|
},
|
|
@@ -13305,7 +13381,7 @@ var useColumns = (function (form) {
|
|
|
13305
13381
|
}
|
|
13306
13382
|
})));
|
|
13307
13383
|
} else {
|
|
13308
|
-
return
|
|
13384
|
+
return React.createElement("span", {
|
|
13309
13385
|
style: {
|
|
13310
13386
|
padding: '0 10px'
|
|
13311
13387
|
}
|
|
@@ -13313,7 +13389,7 @@ var useColumns = (function (form) {
|
|
|
13313
13389
|
}
|
|
13314
13390
|
}
|
|
13315
13391
|
}, {
|
|
13316
|
-
title:
|
|
13392
|
+
title: React.createElement(TitleText, {
|
|
13317
13393
|
required: true
|
|
13318
13394
|
}, "\u91D1\u989D(\u542B\u7A0E)"),
|
|
13319
13395
|
dataIndex: 'lineAmountIncludeTax',
|
|
@@ -13322,7 +13398,7 @@ var useColumns = (function (form) {
|
|
|
13322
13398
|
align: 'right',
|
|
13323
13399
|
render: function render(value, record) {
|
|
13324
13400
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
13325
|
-
return
|
|
13401
|
+
return React.createElement(Form.Item, null, getFieldDecorator('lineAmountIncludeTax', {
|
|
13326
13402
|
initialValue: editGood.lineAmountIncludeTax,
|
|
13327
13403
|
getValueFromEvent: onNumberValueChange,
|
|
13328
13404
|
rules: [].concat(_toConsumableArray(getReplenishRules('lineAmountIncludeTax')), [{
|
|
@@ -13382,7 +13458,7 @@ var useColumns = (function (form) {
|
|
|
13382
13458
|
return validator;
|
|
13383
13459
|
}()
|
|
13384
13460
|
}])
|
|
13385
|
-
})(
|
|
13461
|
+
})(React.createElement(MyInput, {
|
|
13386
13462
|
style: {
|
|
13387
13463
|
textAlign: 'right'
|
|
13388
13464
|
},
|
|
@@ -13393,7 +13469,7 @@ var useColumns = (function (form) {
|
|
|
13393
13469
|
}
|
|
13394
13470
|
})));
|
|
13395
13471
|
} else {
|
|
13396
|
-
return
|
|
13472
|
+
return React.createElement("span", {
|
|
13397
13473
|
style: {
|
|
13398
13474
|
padding: '0 10px'
|
|
13399
13475
|
}
|
|
@@ -13401,7 +13477,7 @@ var useColumns = (function (form) {
|
|
|
13401
13477
|
}
|
|
13402
13478
|
}
|
|
13403
13479
|
}, {
|
|
13404
|
-
title:
|
|
13480
|
+
title: React.createElement(TitleText, {
|
|
13405
13481
|
required: true
|
|
13406
13482
|
}, "\u91D1\u989D(\u4E0D\u542B\u7A0E)"),
|
|
13407
13483
|
dataIndex: 'lineAmountExcludeTax',
|
|
@@ -13410,7 +13486,7 @@ var useColumns = (function (form) {
|
|
|
13410
13486
|
width: 119,
|
|
13411
13487
|
render: function render(value, record) {
|
|
13412
13488
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
13413
|
-
return
|
|
13489
|
+
return React.createElement(Form.Item, null, getFieldDecorator('lineAmountExcludeTax', {
|
|
13414
13490
|
initialValue: editGood.lineAmountExcludeTax,
|
|
13415
13491
|
getValueFromEvent: onNumberValueChange,
|
|
13416
13492
|
rules: [].concat(_toConsumableArray(getReplenishRules('lineAmountExcludeTax')), [{
|
|
@@ -13445,7 +13521,7 @@ var useColumns = (function (form) {
|
|
|
13445
13521
|
return validator;
|
|
13446
13522
|
}()
|
|
13447
13523
|
}])
|
|
13448
|
-
})(
|
|
13524
|
+
})(React.createElement(MyInput, {
|
|
13449
13525
|
style: {
|
|
13450
13526
|
textAlign: 'right'
|
|
13451
13527
|
},
|
|
@@ -13456,7 +13532,7 @@ var useColumns = (function (form) {
|
|
|
13456
13532
|
}
|
|
13457
13533
|
})));
|
|
13458
13534
|
} else {
|
|
13459
|
-
return
|
|
13535
|
+
return React.createElement("span", {
|
|
13460
13536
|
style: {
|
|
13461
13537
|
padding: '0 10px'
|
|
13462
13538
|
}
|
|
@@ -13464,7 +13540,7 @@ var useColumns = (function (form) {
|
|
|
13464
13540
|
}
|
|
13465
13541
|
}
|
|
13466
13542
|
}, {
|
|
13467
|
-
title:
|
|
13543
|
+
title: React.createElement(TitleText, {
|
|
13468
13544
|
required: true
|
|
13469
13545
|
}, "\u7A0E\u7387%"),
|
|
13470
13546
|
dataIndex: 'taxRate',
|
|
@@ -13473,7 +13549,7 @@ var useColumns = (function (form) {
|
|
|
13473
13549
|
width: 75,
|
|
13474
13550
|
render: function render(value, record) {
|
|
13475
13551
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
13476
|
-
return
|
|
13552
|
+
return React.createElement(Form.Item, null, getFieldDecorator('taxRate', {
|
|
13477
13553
|
initialValue: editGood.taxRate,
|
|
13478
13554
|
rules: [].concat(_toConsumableArray(getReplenishRules('taxRate')), [{
|
|
13479
13555
|
required: true,
|
|
@@ -13482,7 +13558,7 @@ var useColumns = (function (form) {
|
|
|
13482
13558
|
pattern: /^[+-]?(0|([1-9]\d*))(\.\d+)?$/,
|
|
13483
13559
|
message: '请选择正确税率'
|
|
13484
13560
|
}])
|
|
13485
|
-
})(
|
|
13561
|
+
})(React.createElement(Select, {
|
|
13486
13562
|
className: "kts-invoice-operate-goods-list-table-tax-rate",
|
|
13487
13563
|
dropdownMenuStyle: {
|
|
13488
13564
|
textAlign: "right"
|
|
@@ -13496,13 +13572,13 @@ var useColumns = (function (form) {
|
|
|
13496
13572
|
onChangeTaxRate(controller, form, record);
|
|
13497
13573
|
}
|
|
13498
13574
|
}, taxRateList.map(function (e, i) {
|
|
13499
|
-
return
|
|
13575
|
+
return React.createElement(Select.Option, {
|
|
13500
13576
|
key: i,
|
|
13501
13577
|
value: e
|
|
13502
13578
|
}, e, "%");
|
|
13503
13579
|
}))));
|
|
13504
13580
|
} else {
|
|
13505
|
-
return
|
|
13581
|
+
return React.createElement("span", {
|
|
13506
13582
|
style: {
|
|
13507
13583
|
padding: '0 10px'
|
|
13508
13584
|
}
|
|
@@ -13510,7 +13586,7 @@ var useColumns = (function (form) {
|
|
|
13510
13586
|
}
|
|
13511
13587
|
}
|
|
13512
13588
|
}, {
|
|
13513
|
-
title:
|
|
13589
|
+
title: React.createElement(TitleText, {
|
|
13514
13590
|
rules: (_columnsReplenish$tax = columnsReplenish['taxAmount']) === null || _columnsReplenish$tax === void 0 ? void 0 : _columnsReplenish$tax.rules
|
|
13515
13591
|
}, "\u7A0E\u989D"),
|
|
13516
13592
|
dataIndex: 'taxAmount',
|
|
@@ -13522,11 +13598,11 @@ var useColumns = (function (form) {
|
|
|
13522
13598
|
return getFieldDecorator('taxAmount', {
|
|
13523
13599
|
initialValue: editGood.taxAmount,
|
|
13524
13600
|
rules: getReplenishRules('taxAmount')
|
|
13525
|
-
})(
|
|
13601
|
+
})(React.createElement(MyDiv, {
|
|
13526
13602
|
loading: isCipher(changeField, 'taxAmount')
|
|
13527
13603
|
}));
|
|
13528
13604
|
} else {
|
|
13529
|
-
return
|
|
13605
|
+
return React.createElement("span", {
|
|
13530
13606
|
style: {
|
|
13531
13607
|
padding: '0 10px'
|
|
13532
13608
|
}
|
|
@@ -13541,42 +13617,42 @@ var useColumns = (function (form) {
|
|
|
13541
13617
|
render: function render(e) {
|
|
13542
13618
|
switch (e) {
|
|
13543
13619
|
case LineAttributeType$1.折扣行:
|
|
13544
|
-
return
|
|
13620
|
+
return React.createElement("span", {
|
|
13545
13621
|
style: {
|
|
13546
13622
|
padding: '0 10px'
|
|
13547
13623
|
}
|
|
13548
13624
|
}, "\u6298\u6263\u884C");
|
|
13549
13625
|
|
|
13550
13626
|
case LineAttributeType$1.被折扣行:
|
|
13551
|
-
return
|
|
13627
|
+
return React.createElement("span", {
|
|
13552
13628
|
style: {
|
|
13553
13629
|
padding: '0 10px'
|
|
13554
13630
|
}
|
|
13555
13631
|
}, "\u88AB\u6298\u6263\u884C");
|
|
13556
13632
|
|
|
13557
13633
|
case LineAttributeType$1.赠品行:
|
|
13558
|
-
return
|
|
13634
|
+
return React.createElement("span", {
|
|
13559
13635
|
style: {
|
|
13560
13636
|
padding: '0 10px'
|
|
13561
13637
|
}
|
|
13562
13638
|
}, "\u8D60\u54C1\u884C");
|
|
13563
13639
|
|
|
13564
13640
|
case LineAttributeType$1.折让行:
|
|
13565
|
-
return
|
|
13641
|
+
return React.createElement("span", {
|
|
13566
13642
|
style: {
|
|
13567
13643
|
padding: '0 10px'
|
|
13568
13644
|
}
|
|
13569
13645
|
}, "\u6298\u8BA9\u884C");
|
|
13570
13646
|
|
|
13571
13647
|
case LineAttributeType$1.正常:
|
|
13572
|
-
return
|
|
13648
|
+
return React.createElement("span", {
|
|
13573
13649
|
style: {
|
|
13574
13650
|
padding: '0 10px'
|
|
13575
13651
|
}
|
|
13576
13652
|
}, "\u6B63\u5E38\u884C");
|
|
13577
13653
|
|
|
13578
13654
|
default:
|
|
13579
|
-
return
|
|
13655
|
+
return React.createElement("span", {
|
|
13580
13656
|
style: {
|
|
13581
13657
|
padding: '0 10px'
|
|
13582
13658
|
}
|
|
@@ -13590,7 +13666,7 @@ var useColumns = (function (form) {
|
|
|
13590
13666
|
width: 130,
|
|
13591
13667
|
fixed: 'right',
|
|
13592
13668
|
render: function render(_value, record) {
|
|
13593
|
-
return
|
|
13669
|
+
return React.createElement(RowMenu, {
|
|
13594
13670
|
key: record.lineAttribute,
|
|
13595
13671
|
goods: record
|
|
13596
13672
|
});
|
|
@@ -13645,13 +13721,13 @@ var MyInput = /*#__PURE__*/function (_React$Component) {
|
|
|
13645
13721
|
key: "render",
|
|
13646
13722
|
value: function render() {
|
|
13647
13723
|
if (this.props.loading) {
|
|
13648
|
-
return
|
|
13724
|
+
return React.createElement(Spin, {
|
|
13649
13725
|
size: "small"
|
|
13650
|
-
},
|
|
13726
|
+
}, React.createElement(Input, _objectSpread2(_objectSpread2({}, this.props), {}, {
|
|
13651
13727
|
autoComplete: "off"
|
|
13652
13728
|
})));
|
|
13653
13729
|
} else {
|
|
13654
|
-
return
|
|
13730
|
+
return React.createElement(Input, _objectSpread2(_objectSpread2({}, this.props), {}, {
|
|
13655
13731
|
autoComplete: "off"
|
|
13656
13732
|
}));
|
|
13657
13733
|
}
|
|
@@ -13676,15 +13752,15 @@ var MyDiv = /*#__PURE__*/function (_React$Component2) {
|
|
|
13676
13752
|
key: "render",
|
|
13677
13753
|
value: function render() {
|
|
13678
13754
|
if (this.props.loading) {
|
|
13679
|
-
return
|
|
13755
|
+
return React.createElement(Spin, {
|
|
13680
13756
|
size: "small"
|
|
13681
|
-
},
|
|
13757
|
+
}, React.createElement("span", {
|
|
13682
13758
|
style: {
|
|
13683
13759
|
padding: '0 10px'
|
|
13684
13760
|
}
|
|
13685
13761
|
}, this.props.value));
|
|
13686
13762
|
} else {
|
|
13687
|
-
return
|
|
13763
|
+
return React.createElement("span", {
|
|
13688
13764
|
style: {
|
|
13689
13765
|
padding: '0 10px'
|
|
13690
13766
|
}
|
|
@@ -13717,18 +13793,18 @@ var MyItemNameDiv = /*#__PURE__*/function (_React$Component3) {
|
|
|
13717
13793
|
|
|
13718
13794
|
if (isMyShow) {
|
|
13719
13795
|
if (valueT) {
|
|
13720
|
-
return
|
|
13796
|
+
return React.createElement(Tooltip, {
|
|
13721
13797
|
title: valueT
|
|
13722
|
-
},
|
|
13798
|
+
}, React.createElement("span", {
|
|
13723
13799
|
style: {
|
|
13724
13800
|
padding: '0 10px',
|
|
13725
13801
|
color: '#0074ff'
|
|
13726
13802
|
}
|
|
13727
13803
|
}, valueT));
|
|
13728
13804
|
} else {
|
|
13729
|
-
return
|
|
13805
|
+
return React.createElement(Tooltip, {
|
|
13730
13806
|
title: valueF
|
|
13731
|
-
},
|
|
13807
|
+
}, React.createElement("span", {
|
|
13732
13808
|
style: {
|
|
13733
13809
|
padding: '0 10px'
|
|
13734
13810
|
}
|
|
@@ -13736,17 +13812,17 @@ var MyItemNameDiv = /*#__PURE__*/function (_React$Component3) {
|
|
|
13736
13812
|
}
|
|
13737
13813
|
} else {
|
|
13738
13814
|
if (valueF) {
|
|
13739
|
-
return
|
|
13815
|
+
return React.createElement(Tooltip, {
|
|
13740
13816
|
title: valueF
|
|
13741
|
-
},
|
|
13817
|
+
}, React.createElement("span", {
|
|
13742
13818
|
style: {
|
|
13743
13819
|
padding: '0 10px'
|
|
13744
13820
|
}
|
|
13745
13821
|
}, valueF));
|
|
13746
13822
|
} else {
|
|
13747
|
-
return
|
|
13823
|
+
return React.createElement(Tooltip, {
|
|
13748
13824
|
title: valueT
|
|
13749
|
-
},
|
|
13825
|
+
}, React.createElement("span", {
|
|
13750
13826
|
style: {
|
|
13751
13827
|
padding: '0 10px',
|
|
13752
13828
|
color: '#0074ff'
|
|
@@ -13769,7 +13845,7 @@ function formatSearch(value, search) {
|
|
|
13769
13845
|
return dcoding(e);
|
|
13770
13846
|
}).join("<span class=\"kts-invoice-operate-goods-list-table-search-protrude\" >".concat(search, "</span>"));
|
|
13771
13847
|
|
|
13772
|
-
return
|
|
13848
|
+
return React.createElement("span", {
|
|
13773
13849
|
dangerouslySetInnerHTML: {
|
|
13774
13850
|
__html: __html
|
|
13775
13851
|
}
|
|
@@ -14194,7 +14270,7 @@ var useRowSelection = (function () {
|
|
|
14194
14270
|
};
|
|
14195
14271
|
}(), [controller]);
|
|
14196
14272
|
var columnTitle = React.useMemo(function () {
|
|
14197
|
-
return
|
|
14273
|
+
return React.createElement(Checkbox, {
|
|
14198
14274
|
onChange: onClickSelectAll,
|
|
14199
14275
|
indeterminate: indeterminate,
|
|
14200
14276
|
checked: isAll
|
|
@@ -14395,16 +14471,16 @@ var useEndowCodeButton = (function () {
|
|
|
14395
14471
|
}, _callee2);
|
|
14396
14472
|
})), [controller]);
|
|
14397
14473
|
var menuItem = React.useMemo(function () {
|
|
14398
|
-
if (model === 'readOnly') return
|
|
14399
|
-
return
|
|
14474
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
14475
|
+
return React.createElement(Menu.Item, {
|
|
14400
14476
|
key: "2",
|
|
14401
14477
|
onClick: onClick,
|
|
14402
14478
|
disabled: disabled
|
|
14403
14479
|
}, "\u6279\u91CF\u8D4B\u7801");
|
|
14404
14480
|
}, [onClick, disabled, model]);
|
|
14405
14481
|
var button = React.useMemo(function () {
|
|
14406
|
-
if (model === 'readOnly') return
|
|
14407
|
-
return
|
|
14482
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
14483
|
+
return React.createElement(Button, {
|
|
14408
14484
|
onClick: onClick,
|
|
14409
14485
|
disabled: disabled
|
|
14410
14486
|
}, "\u6279\u91CF\u8D4B\u7801");
|
|
@@ -14470,19 +14546,19 @@ var useDelRowButton = (function () {
|
|
|
14470
14546
|
}())();
|
|
14471
14547
|
}, [controller]);
|
|
14472
14548
|
var menuItem = React.useMemo(function () {
|
|
14473
|
-
if (model === 'prefab') return
|
|
14474
|
-
if (model === 'readOnly') return
|
|
14475
|
-
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, {
|
|
14476
14552
|
key: "1",
|
|
14477
14553
|
onClick: onClick,
|
|
14478
14554
|
disabled: disabled
|
|
14479
14555
|
}, " \u5220\u9664\u884C ");
|
|
14480
14556
|
}, [model, onClick, disabled]);
|
|
14481
14557
|
var button = React.useMemo(function () {
|
|
14482
|
-
if (isRemRow === false) return
|
|
14483
|
-
if (model === 'prefab') return
|
|
14484
|
-
if (model === 'readOnly') return
|
|
14485
|
-
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, {
|
|
14486
14562
|
onClick: onClick,
|
|
14487
14563
|
disabled: disabled
|
|
14488
14564
|
}, "\u6279\u91CF\u5220\u9664");
|
|
@@ -14677,14 +14753,14 @@ var useAddDiscountRowButton = (function () {
|
|
|
14677
14753
|
}, _callee3);
|
|
14678
14754
|
})), [controller]);
|
|
14679
14755
|
var menuItem = React.useMemo(function () {
|
|
14680
|
-
return model === 'prefab' ?
|
|
14756
|
+
return model === 'prefab' ? React.createElement(React.Fragment, null) : isAddDiscount !== false ? React.createElement(Menu.Item, {
|
|
14681
14757
|
key: "0",
|
|
14682
14758
|
onClick: onClick,
|
|
14683
14759
|
disabled: disabled
|
|
14684
14760
|
}, "\u6DFB\u52A0\u6298\u6263\u884C") : undefined;
|
|
14685
14761
|
}, [isAddDiscount, disabled, onClick]);
|
|
14686
14762
|
var drawer = React.useMemo(function () {
|
|
14687
|
-
return
|
|
14763
|
+
return React.createElement(Drawer, {
|
|
14688
14764
|
className: "kts-invoice-operate-goods-list-add-discount-row",
|
|
14689
14765
|
width: 540,
|
|
14690
14766
|
title: "\u6DFB\u52A0\u6298\u6263\u884C",
|
|
@@ -14692,7 +14768,7 @@ var useAddDiscountRowButton = (function () {
|
|
|
14692
14768
|
destroyOnClose: true,
|
|
14693
14769
|
onClose: onClose,
|
|
14694
14770
|
visible: visible
|
|
14695
|
-
},
|
|
14771
|
+
}, React.createElement(DrawerBody, null));
|
|
14696
14772
|
}, [visible, onClose]);
|
|
14697
14773
|
return {
|
|
14698
14774
|
menuItem: menuItem,
|
|
@@ -14809,13 +14885,13 @@ var DrawerBody = decorator(Form.create())(function (props) {
|
|
|
14809
14885
|
});
|
|
14810
14886
|
});
|
|
14811
14887
|
}, 300), [form, lineAmountSum]);
|
|
14812
|
-
return
|
|
14888
|
+
return React.createElement(React.Fragment, null, React.createElement("div", {
|
|
14813
14889
|
className: "add-discount-row-body"
|
|
14814
|
-
},
|
|
14890
|
+
}, React.createElement("p", null, "\u5F53\u524D\u9009\u62E9", React.createElement(Text$3, {
|
|
14815
14891
|
type: "danger"
|
|
14816
|
-
}, 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, {
|
|
14817
14893
|
type: "danger"
|
|
14818
|
-
}, lineAmountSum.toFixed(2))),
|
|
14894
|
+
}, lineAmountSum.toFixed(2))), React.createElement(Form.Item, {
|
|
14819
14895
|
label: "\u6298\u6263\u7387\uFF1A"
|
|
14820
14896
|
}, getFieldDecorator('discount', {
|
|
14821
14897
|
rules: [{
|
|
@@ -14845,11 +14921,11 @@ var DrawerBody = decorator(Form.create())(function (props) {
|
|
|
14845
14921
|
callback();
|
|
14846
14922
|
}
|
|
14847
14923
|
}]
|
|
14848
|
-
})(
|
|
14924
|
+
})(React.createElement(Input, {
|
|
14849
14925
|
placeholder: "\u8BF7\u8F93\u5165\u5927\u4E8E0\u5C0F\u4E8E100\u7684\u6570\u5B57",
|
|
14850
14926
|
suffix: "%",
|
|
14851
14927
|
onChange: onChangeDiscount
|
|
14852
|
-
}))),
|
|
14928
|
+
}))), React.createElement(Form.Item, {
|
|
14853
14929
|
label: "\u6298\u6263\u91D1\u989D\uFF1A"
|
|
14854
14930
|
}, getFieldDecorator('discolineAmountunt', {
|
|
14855
14931
|
rules: [{
|
|
@@ -14879,19 +14955,19 @@ var DrawerBody = decorator(Form.create())(function (props) {
|
|
|
14879
14955
|
callback();
|
|
14880
14956
|
}
|
|
14881
14957
|
}]
|
|
14882
|
-
})(
|
|
14958
|
+
})(React.createElement(Input, {
|
|
14883
14959
|
placeholder: "\u8BF7\u8F93\u5165\u5927\u4E8E0\u5C0F\u4E8E\u91D1\u989D\u5408\u8BA1\u7684\u6570\u5B57",
|
|
14884
14960
|
suffix: "\xA5",
|
|
14885
14961
|
onChange: onChangeDiscolineAmountunt
|
|
14886
|
-
})))),
|
|
14962
|
+
})))), React.createElement("div", {
|
|
14887
14963
|
className: "add-discount-row-footer"
|
|
14888
|
-
},
|
|
14964
|
+
}, React.createElement(Button, {
|
|
14889
14965
|
block: true,
|
|
14890
14966
|
style: {
|
|
14891
14967
|
marginBottom: 12
|
|
14892
14968
|
},
|
|
14893
14969
|
onClick: onClose
|
|
14894
|
-
}, "\u53D6\u6D88"),
|
|
14970
|
+
}, "\u53D6\u6D88"), React.createElement(Button, {
|
|
14895
14971
|
type: "primary",
|
|
14896
14972
|
block: true,
|
|
14897
14973
|
onClick: onClickSave
|
|
@@ -14988,13 +15064,13 @@ function useMergeDetails() {
|
|
|
14988
15064
|
}];
|
|
14989
15065
|
}, [selectedGoodIndex, onClickManual, onClickAuto]);
|
|
14990
15066
|
var button = React.useMemo(function () {
|
|
14991
|
-
if (!isMergeDetails) return
|
|
14992
|
-
return
|
|
15067
|
+
if (!isMergeDetails) return React.createElement(React.Fragment, null);
|
|
15068
|
+
return React.createElement(Dropdown$1, {
|
|
14993
15069
|
menu: {
|
|
14994
15070
|
items: items
|
|
14995
15071
|
},
|
|
14996
15072
|
trigger: ['click']
|
|
14997
|
-
},
|
|
15073
|
+
}, React.createElement(Button, null, "\u5408\u5E76\u660E\u7EC6"));
|
|
14998
15074
|
}, [selectedGoodIndex.length, isMergeDetails]);
|
|
14999
15075
|
return {
|
|
15000
15076
|
/** 按钮 */
|
|
@@ -15080,8 +15156,8 @@ function useMergeDiscount() {
|
|
|
15080
15156
|
}, _callee);
|
|
15081
15157
|
})), [controller]);
|
|
15082
15158
|
var button = React.useMemo(function () {
|
|
15083
|
-
if (!isMergeDiscount) return
|
|
15084
|
-
return
|
|
15159
|
+
if (!isMergeDiscount) return React.createElement(React.Fragment, null);
|
|
15160
|
+
return React.createElement(Button, {
|
|
15085
15161
|
onClick: onClick,
|
|
15086
15162
|
disabled: goodsList.length <= 1
|
|
15087
15163
|
}, "\u5408\u5E76\u6298\u6263");
|
|
@@ -15259,8 +15335,8 @@ function useSalesDiscount() {
|
|
|
15259
15335
|
}).length <= 0;
|
|
15260
15336
|
}, [goodsList]);
|
|
15261
15337
|
var button = React.useMemo(function () {
|
|
15262
|
-
if (!isSalesDiscount) return
|
|
15263
|
-
return
|
|
15338
|
+
if (!isSalesDiscount) return React.createElement(React.Fragment, null);
|
|
15339
|
+
return React.createElement(Button, {
|
|
15264
15340
|
onClick: onClick,
|
|
15265
15341
|
disabled: disabled
|
|
15266
15342
|
}, "\u9500\u552E\u6298\u8BA9");
|
|
@@ -15431,12 +15507,12 @@ function useSalesGifts() {
|
|
|
15431
15507
|
}, [selectedGoodIndex, onClickManual, onClickAuto]);
|
|
15432
15508
|
var button = React.useMemo(function () {
|
|
15433
15509
|
if (!isSalesGifts) return;
|
|
15434
|
-
return
|
|
15510
|
+
return React.createElement(Dropdown$1, {
|
|
15435
15511
|
menu: {
|
|
15436
15512
|
items: items
|
|
15437
15513
|
},
|
|
15438
15514
|
trigger: ['click']
|
|
15439
|
-
},
|
|
15515
|
+
}, React.createElement(Button, null, "\u9500\u552E\u8D60\u54C1"));
|
|
15440
15516
|
}, [items, isSalesGifts]);
|
|
15441
15517
|
return {
|
|
15442
15518
|
/** 按钮 */
|
|
@@ -15474,7 +15550,7 @@ var GoodsList = /*#__PURE__*/function (_React$Component) {
|
|
|
15474
15550
|
_createClass(GoodsList, [{
|
|
15475
15551
|
key: "render",
|
|
15476
15552
|
value: function render() {
|
|
15477
|
-
return
|
|
15553
|
+
return React.createElement(Main, _objectSpread2({}, this.props));
|
|
15478
15554
|
}
|
|
15479
15555
|
}]);
|
|
15480
15556
|
|
|
@@ -15676,22 +15752,22 @@ var Main = decorator(Form.create())(function (props) {
|
|
|
15676
15752
|
};
|
|
15677
15753
|
}())();
|
|
15678
15754
|
}, [controller, props.isSwitchTax]);
|
|
15679
|
-
return
|
|
15755
|
+
return React.createElement("div", {
|
|
15680
15756
|
className: "kts-invoice-operate-goods-list",
|
|
15681
15757
|
onClick: function onClick(e) {
|
|
15682
15758
|
e.stopPropagation();
|
|
15683
15759
|
}
|
|
15684
|
-
},
|
|
15760
|
+
}, React.createElement("div", {
|
|
15685
15761
|
className: "kts-invoice-operate-goods-list-able"
|
|
15686
|
-
},
|
|
15762
|
+
}, React.createElement("div", {
|
|
15687
15763
|
className: "kts-invoice-operate-goods-list-able-list"
|
|
15688
|
-
},
|
|
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", {
|
|
15689
15765
|
className: "kts-invoice-operate-goods-list-able-extend"
|
|
15690
|
-
}, props.menuExpansion,
|
|
15766
|
+
}, props.menuExpansion, React.createElement(DescribeSwitch, null), React.createElement(TaxIncludedSwitch, null))), React.createElement("div", {
|
|
15691
15767
|
className: classNames('kts-invoice-operate-goods-list-table', {
|
|
15692
15768
|
'kts-invoice-operate-prefab': isprefab
|
|
15693
15769
|
})
|
|
15694
|
-
},
|
|
15770
|
+
}, React.createElement(TableVirtual, {
|
|
15695
15771
|
bordered: true,
|
|
15696
15772
|
size: "small",
|
|
15697
15773
|
rowKey: "$index",
|
|
@@ -15714,7 +15790,7 @@ var Main = decorator(Form.create())(function (props) {
|
|
|
15714
15790
|
}
|
|
15715
15791
|
};
|
|
15716
15792
|
}
|
|
15717
|
-
})),
|
|
15793
|
+
})), React.createElement("div", null, React.createElement(Statistics, null)));
|
|
15718
15794
|
});
|
|
15719
15795
|
|
|
15720
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";
|
|
@@ -15739,7 +15815,7 @@ var Buyer = /*#__PURE__*/function (_React$Component) {
|
|
|
15739
15815
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
15740
15816
|
|
|
15741
15817
|
_this.render = function () {
|
|
15742
|
-
return
|
|
15818
|
+
return React.createElement(Main$1, _objectSpread2({}, _this.props));
|
|
15743
15819
|
};
|
|
15744
15820
|
|
|
15745
15821
|
return _this;
|
|
@@ -15770,7 +15846,7 @@ var Main$1 = decorator(Form.create())(function (props) {
|
|
|
15770
15846
|
return [{
|
|
15771
15847
|
id: 'sellerName',
|
|
15772
15848
|
label: '销售方名称',
|
|
15773
|
-
node:
|
|
15849
|
+
node: React.createElement(Input, {
|
|
15774
15850
|
readOnly: model === 'prefab',
|
|
15775
15851
|
size: "small"
|
|
15776
15852
|
}),
|
|
@@ -15783,7 +15859,7 @@ var Main$1 = decorator(Form.create())(function (props) {
|
|
|
15783
15859
|
}, {
|
|
15784
15860
|
id: 'sellerNo',
|
|
15785
15861
|
label: '销售方纳税人识别号',
|
|
15786
|
-
node:
|
|
15862
|
+
node: React.createElement(Input, {
|
|
15787
15863
|
readOnly: model === 'prefab',
|
|
15788
15864
|
size: "small"
|
|
15789
15865
|
}),
|
|
@@ -15796,7 +15872,7 @@ var Main$1 = decorator(Form.create())(function (props) {
|
|
|
15796
15872
|
}, {
|
|
15797
15873
|
id: 'sellerAddress',
|
|
15798
15874
|
label: '销售方地址及电话',
|
|
15799
|
-
node:
|
|
15875
|
+
node: React.createElement(Input, {
|
|
15800
15876
|
readOnly: model === 'prefab',
|
|
15801
15877
|
size: "small"
|
|
15802
15878
|
}),
|
|
@@ -15809,7 +15885,7 @@ var Main$1 = decorator(Form.create())(function (props) {
|
|
|
15809
15885
|
}, {
|
|
15810
15886
|
id: 'sellerBank',
|
|
15811
15887
|
label: '销售方开户行及账号',
|
|
15812
|
-
node:
|
|
15888
|
+
node: React.createElement(Input, {
|
|
15813
15889
|
readOnly: model === 'prefab',
|
|
15814
15890
|
size: "small"
|
|
15815
15891
|
}),
|
|
@@ -15835,31 +15911,31 @@ var Main$1 = decorator(Form.create())(function (props) {
|
|
|
15835
15911
|
return getFieldDecorator(e.id, e.options)(e.node);
|
|
15836
15912
|
}
|
|
15837
15913
|
}, [props.formRender]);
|
|
15838
|
-
return
|
|
15914
|
+
return React.createElement(Form, null, React.createElement("div", {
|
|
15839
15915
|
className: "kts-invoice-operate-seller"
|
|
15840
|
-
},
|
|
15916
|
+
}, React.createElement("div", {
|
|
15841
15917
|
className: "kts-invoice-operate-seller-message"
|
|
15842
|
-
},
|
|
15918
|
+
}, React.createElement("div", {
|
|
15843
15919
|
className: "kts-invoice-operate-seller-title"
|
|
15844
|
-
},
|
|
15920
|
+
}, React.createElement("label", null, "\u9500\u552E\u65B9")), React.createElement(Descriptions, {
|
|
15845
15921
|
className: "kts-invoice-operate-seller-message-list",
|
|
15846
15922
|
size: "small",
|
|
15847
15923
|
column: 1,
|
|
15848
15924
|
bordered: true
|
|
15849
15925
|
}, formItem.map(function (e, i) {
|
|
15850
|
-
return
|
|
15926
|
+
return React.createElement(Descriptions.Item, {
|
|
15851
15927
|
key: i,
|
|
15852
15928
|
label: e.label
|
|
15853
|
-
},
|
|
15854
|
-
}))),
|
|
15929
|
+
}, React.createElement(Form.Item, null, createFormItem(e)));
|
|
15930
|
+
}))), React.createElement("div", {
|
|
15855
15931
|
className: "kts-invoice-operate-seller-remarks"
|
|
15856
|
-
},
|
|
15932
|
+
}, React.createElement("div", {
|
|
15857
15933
|
className: "kts-invoice-operate-seller-title"
|
|
15858
|
-
},
|
|
15934
|
+
}, React.createElement("label", null, "\u5907\u6CE8")), React.createElement("div", {
|
|
15859
15935
|
className: "kts-invoice-operate-seller-remarks-value"
|
|
15860
15936
|
}, getFieldDecorator('remarks', {
|
|
15861
15937
|
initialValue: props.defaultsellerRemarks
|
|
15862
|
-
})(
|
|
15938
|
+
})(React.createElement(TextArea, null))))));
|
|
15863
15939
|
});
|
|
15864
15940
|
|
|
15865
15941
|
var ImportBuyerButton = (function () {
|
|
@@ -15886,7 +15962,7 @@ var ImportBuyerButton = (function () {
|
|
|
15886
15962
|
};
|
|
15887
15963
|
}())();
|
|
15888
15964
|
}, [controller]);
|
|
15889
|
-
return
|
|
15965
|
+
return React.createElement(React.Fragment, null, controller.getBuyerList && React.createElement(Button, {
|
|
15890
15966
|
type: "link",
|
|
15891
15967
|
icon: "plus-circle",
|
|
15892
15968
|
onClick: onClick
|
|
@@ -15925,29 +16001,29 @@ var BuyerNameInput = (function (props) {
|
|
|
15925
16001
|
var content = React.useMemo(function () {
|
|
15926
16002
|
var _dataSource$recent;
|
|
15927
16003
|
|
|
15928
|
-
return
|
|
16004
|
+
return React.createElement("div", {
|
|
15929
16005
|
className: 'kts-invoice-operate-buyer-name-content'
|
|
15930
|
-
}, loading ?
|
|
16006
|
+
}, loading ? React.createElement("div", {
|
|
15931
16007
|
style: {
|
|
15932
16008
|
textAlign: 'center'
|
|
15933
16009
|
}
|
|
15934
|
-
},
|
|
16010
|
+
}, React.createElement(Spin, null)) : React.createElement(React.Fragment, null, React.createElement("div", {
|
|
15935
16011
|
className: 'kts-invoice-operate-buyer-name-content-block',
|
|
15936
16012
|
style: {
|
|
15937
16013
|
padding: '14px 10px'
|
|
15938
16014
|
}
|
|
15939
|
-
},
|
|
16015
|
+
}, React.createElement("label", {
|
|
15940
16016
|
style: {
|
|
15941
16017
|
marginBottom: 10
|
|
15942
16018
|
}
|
|
15943
|
-
}, "\u6700\u8FD1\u5F00\u5177"),
|
|
16019
|
+
}, "\u6700\u8FD1\u5F00\u5177"), React.createElement("ul", {
|
|
15944
16020
|
className: 'kts-invoice-operate-buyer-name-content-recently-issued'
|
|
15945
|
-
}, !dataSource.recent || dataSource.recent.length <= 0 ?
|
|
16021
|
+
}, !dataSource.recent || dataSource.recent.length <= 0 ? React.createElement(Empty, {
|
|
15946
16022
|
image: Empty.PRESENTED_IMAGE_SIMPLE
|
|
15947
16023
|
}) : (_dataSource$recent = dataSource.recent) === null || _dataSource$recent === void 0 ? void 0 : _dataSource$recent.map(function (e, i) {
|
|
15948
16024
|
var _dataSource$recent$le, _dataSource$recent2;
|
|
15949
16025
|
|
|
15950
|
-
return
|
|
16026
|
+
return React.createElement("li", {
|
|
15951
16027
|
key: i,
|
|
15952
16028
|
onClick: function onClick() {
|
|
15953
16029
|
onClickItem(e);
|
|
@@ -15955,37 +16031,37 @@ var BuyerNameInput = (function (props) {
|
|
|
15955
16031
|
style: {
|
|
15956
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)
|
|
15957
16033
|
}
|
|
15958
|
-
},
|
|
15959
|
-
}))),
|
|
16034
|
+
}, React.createElement(MyTag, null, e.buyerName));
|
|
16035
|
+
}))), React.createElement(Divider, {
|
|
15960
16036
|
style: {
|
|
15961
16037
|
margin: "0 6px"
|
|
15962
16038
|
}
|
|
15963
|
-
}),
|
|
16039
|
+
}), React.createElement("div", {
|
|
15964
16040
|
className: 'kts-invoice-operate-buyer-name-content-block',
|
|
15965
16041
|
style: {
|
|
15966
16042
|
padding: '14px 10px 4px'
|
|
15967
16043
|
}
|
|
15968
|
-
},
|
|
16044
|
+
}, React.createElement("label", {
|
|
15969
16045
|
style: {
|
|
15970
16046
|
padding: '0 10px'
|
|
15971
16047
|
}
|
|
15972
|
-
}, "\u9009\u62E9\u516C\u53F8"),
|
|
16048
|
+
}, "\u9009\u62E9\u516C\u53F8"), React.createElement("div", {
|
|
15973
16049
|
style: {
|
|
15974
16050
|
maxHeight: 200,
|
|
15975
16051
|
overflow: "auto"
|
|
15976
16052
|
}
|
|
15977
|
-
}, !dataSource.list || dataSource.list.length <= 0 ?
|
|
16053
|
+
}, !dataSource.list || dataSource.list.length <= 0 ? React.createElement(Empty, {
|
|
15978
16054
|
image: Empty.PRESENTED_IMAGE_SIMPLE
|
|
15979
16055
|
}) : dataSource.list.map(function (e, i) {
|
|
15980
|
-
return
|
|
16056
|
+
return React.createElement("ul", {
|
|
15981
16057
|
key: i,
|
|
15982
16058
|
onClick: function onClick() {
|
|
15983
16059
|
onClickItem(e);
|
|
15984
16060
|
},
|
|
15985
16061
|
className: 'kts-invoice-operate-buyer-name-content-select-company'
|
|
15986
|
-
},
|
|
16062
|
+
}, React.createElement("li", {
|
|
15987
16063
|
title: e.buyerName
|
|
15988
|
-
}, e.buyerName),
|
|
16064
|
+
}, e.buyerName), React.createElement("li", {
|
|
15989
16065
|
title: e.buyerNo
|
|
15990
16066
|
}, e.buyerNo));
|
|
15991
16067
|
})))));
|
|
@@ -16026,7 +16102,7 @@ var BuyerNameInput = (function (props) {
|
|
|
16026
16102
|
}, [visible, props.value]);
|
|
16027
16103
|
|
|
16028
16104
|
if (model === 'prefab' || !autoContainer) {
|
|
16029
|
-
return
|
|
16105
|
+
return React.createElement(Input, {
|
|
16030
16106
|
size: "small",
|
|
16031
16107
|
autoComplete: "off",
|
|
16032
16108
|
value: props.value,
|
|
@@ -16037,14 +16113,14 @@ var BuyerNameInput = (function (props) {
|
|
|
16037
16113
|
});
|
|
16038
16114
|
}
|
|
16039
16115
|
|
|
16040
|
-
return
|
|
16116
|
+
return React.createElement(Popover$1, {
|
|
16041
16117
|
onVisibleChange: setVisible,
|
|
16042
16118
|
overlayClassName: 'kts-invoice-operate-buyer-name-popover',
|
|
16043
16119
|
placement: "bottomLeft",
|
|
16044
16120
|
trigger: "click",
|
|
16045
16121
|
visible: visible,
|
|
16046
16122
|
content: content
|
|
16047
|
-
},
|
|
16123
|
+
}, React.createElement(Input, {
|
|
16048
16124
|
size: "small",
|
|
16049
16125
|
autoComplete: "off",
|
|
16050
16126
|
value: props.value,
|
|
@@ -16122,7 +16198,7 @@ function useDataSource() {
|
|
|
16122
16198
|
}
|
|
16123
16199
|
|
|
16124
16200
|
function MyTag(props) {
|
|
16125
|
-
return
|
|
16201
|
+
return React.createElement("span", {
|
|
16126
16202
|
className: 'kts-invoice-operate-buyer-name-content-tag',
|
|
16127
16203
|
title: props.children
|
|
16128
16204
|
}, props.children);
|
|
@@ -16158,7 +16234,7 @@ var Buyer$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
16158
16234
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
16159
16235
|
|
|
16160
16236
|
_this.render = function () {
|
|
16161
|
-
return
|
|
16237
|
+
return React.createElement(Main$2, _objectSpread2({}, _this.props));
|
|
16162
16238
|
};
|
|
16163
16239
|
|
|
16164
16240
|
return _this;
|
|
@@ -16189,7 +16265,7 @@ var Main$2 = decorator(Form.create())(function (props) {
|
|
|
16189
16265
|
return [{
|
|
16190
16266
|
id: 'buyerName',
|
|
16191
16267
|
label: '购买方名称',
|
|
16192
|
-
node:
|
|
16268
|
+
node: React.createElement(Input, {
|
|
16193
16269
|
size: "small",
|
|
16194
16270
|
autoComplete: "off",
|
|
16195
16271
|
readOnly: model === 'prefab'
|
|
@@ -16203,7 +16279,7 @@ var Main$2 = decorator(Form.create())(function (props) {
|
|
|
16203
16279
|
}, {
|
|
16204
16280
|
id: 'buyerNo',
|
|
16205
16281
|
label: '购买方纳税人识别号',
|
|
16206
|
-
node:
|
|
16282
|
+
node: React.createElement(Input, {
|
|
16207
16283
|
size: "small",
|
|
16208
16284
|
autoComplete: "off",
|
|
16209
16285
|
readOnly: model === 'prefab'
|
|
@@ -16217,7 +16293,7 @@ var Main$2 = decorator(Form.create())(function (props) {
|
|
|
16217
16293
|
}, {
|
|
16218
16294
|
id: 'buyerAddress',
|
|
16219
16295
|
label: '购买方地址及电话',
|
|
16220
|
-
node:
|
|
16296
|
+
node: React.createElement(Input, {
|
|
16221
16297
|
size: "small",
|
|
16222
16298
|
autoComplete: "off",
|
|
16223
16299
|
readOnly: model === 'prefab'
|
|
@@ -16231,7 +16307,7 @@ var Main$2 = decorator(Form.create())(function (props) {
|
|
|
16231
16307
|
}, {
|
|
16232
16308
|
id: 'buyerBank',
|
|
16233
16309
|
label: '购买方开户行及账号',
|
|
16234
|
-
node:
|
|
16310
|
+
node: React.createElement(Input, {
|
|
16235
16311
|
size: "small",
|
|
16236
16312
|
autoComplete: "off",
|
|
16237
16313
|
readOnly: model === 'prefab'
|
|
@@ -16253,7 +16329,7 @@ var Main$2 = decorator(Form.create())(function (props) {
|
|
|
16253
16329
|
if (e.options.rules.some(function (e) {
|
|
16254
16330
|
return e.required;
|
|
16255
16331
|
})) {
|
|
16256
|
-
return
|
|
16332
|
+
return React.createElement(React.Fragment, null, React.createElement(Text$4, {
|
|
16257
16333
|
type: "danger"
|
|
16258
16334
|
}, "*"), e.label);
|
|
16259
16335
|
} else {
|
|
@@ -16263,29 +16339,29 @@ var Main$2 = decorator(Form.create())(function (props) {
|
|
|
16263
16339
|
return e.label;
|
|
16264
16340
|
}
|
|
16265
16341
|
}, []);
|
|
16266
|
-
return
|
|
16342
|
+
return React.createElement(Form, null, React.createElement("div", {
|
|
16267
16343
|
className: "kts-invoice-operate-buyer"
|
|
16268
|
-
},
|
|
16344
|
+
}, React.createElement("div", {
|
|
16269
16345
|
className: "kts-invoice-operate-buyer-message"
|
|
16270
|
-
},
|
|
16346
|
+
}, React.createElement("div", {
|
|
16271
16347
|
className: "kts-invoice-operate-buyer-title"
|
|
16272
|
-
},
|
|
16348
|
+
}, React.createElement("label", null, "\u8D2D\u4E70\u65B9")), React.createElement("div", {
|
|
16273
16349
|
className: "kts-invoice-operate-buyer-message-Import"
|
|
16274
|
-
}, model !== 'prefab' &&
|
|
16350
|
+
}, model !== 'prefab' && React.createElement(ImportBuyerButton, null)), React.createElement(Descriptions, {
|
|
16275
16351
|
className: "kts-invoice-operate-buyer-message-list",
|
|
16276
16352
|
size: "small",
|
|
16277
16353
|
column: 1,
|
|
16278
16354
|
bordered: true
|
|
16279
16355
|
}, formItem.map(function (item, i) {
|
|
16280
|
-
return
|
|
16356
|
+
return React.createElement(Descriptions.Item, {
|
|
16281
16357
|
key: i,
|
|
16282
16358
|
label: getlabel(item)
|
|
16283
|
-
},
|
|
16284
|
-
}))),
|
|
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", {
|
|
16285
16361
|
className: "kts-invoice-operate-buyer-password"
|
|
16286
|
-
},
|
|
16362
|
+
}, React.createElement("div", {
|
|
16287
16363
|
className: "kts-invoice-operate-buyer-title"
|
|
16288
|
-
},
|
|
16364
|
+
}, React.createElement("label", null, "\u5BC6\u7801\u533A")), React.createElement("div", null))));
|
|
16289
16365
|
});
|
|
16290
16366
|
|
|
16291
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";
|
|
@@ -16302,21 +16378,21 @@ var Sign = decorator(Form.create())(function (props) {
|
|
|
16302
16378
|
}, []); // 注册 form
|
|
16303
16379
|
|
|
16304
16380
|
controller.useForm('sign', form);
|
|
16305
|
-
return
|
|
16381
|
+
return React.createElement("div", {
|
|
16306
16382
|
className: "kts-invoice-operate-sign"
|
|
16307
|
-
},
|
|
16383
|
+
}, React.createElement(Form, _objectSpread2({}, formItemLayout), React.createElement("div", null, React.createElement(Form.Item, {
|
|
16308
16384
|
label: "\u6536\u6B3E\u4EBA"
|
|
16309
16385
|
}, getFieldDecorator('payee', {
|
|
16310
16386
|
initialValue: props.defaultPayee
|
|
16311
|
-
})(
|
|
16387
|
+
})(React.createElement(Input, {
|
|
16312
16388
|
size: "small"
|
|
16313
|
-
})))),
|
|
16389
|
+
})))), React.createElement("div", null, React.createElement(Form.Item, {
|
|
16314
16390
|
label: "\u590D\u6838\u4EBA"
|
|
16315
16391
|
}, getFieldDecorator('reviewer', {
|
|
16316
16392
|
initialValue: props.defaultReviewer
|
|
16317
|
-
})(
|
|
16393
|
+
})(React.createElement(Input, {
|
|
16318
16394
|
size: "small"
|
|
16319
|
-
})))),
|
|
16395
|
+
})))), React.createElement("div", null, React.createElement(Form.Item, {
|
|
16320
16396
|
label: "\u5F00\u7968\u4EBA"
|
|
16321
16397
|
}, getFieldDecorator('issuer', {
|
|
16322
16398
|
initialValue: props.defaultIssuer,
|
|
@@ -16324,7 +16400,7 @@ var Sign = decorator(Form.create())(function (props) {
|
|
|
16324
16400
|
required: true,
|
|
16325
16401
|
message: '请输入开票人'
|
|
16326
16402
|
}]
|
|
16327
|
-
})(
|
|
16403
|
+
})(React.createElement(Input, {
|
|
16328
16404
|
size: "small"
|
|
16329
16405
|
}))))));
|
|
16330
16406
|
});
|
|
@@ -16353,21 +16429,21 @@ var InvoiceHeaderDigtal = decorator(Form.create())(function (props) {
|
|
|
16353
16429
|
return '电子发票(增值税专用发票)';
|
|
16354
16430
|
}, [props.title]);
|
|
16355
16431
|
controller.useForm('invoiceHeader', form);
|
|
16356
|
-
return
|
|
16432
|
+
return React.createElement("div", {
|
|
16357
16433
|
className: "kts-invoice-operate-invoice-digtal-header"
|
|
16358
|
-
},
|
|
16434
|
+
}, React.createElement("div", {
|
|
16359
16435
|
className: "digtal-header-title"
|
|
16360
16436
|
}, title), form.getFieldDecorator('tag', {
|
|
16361
16437
|
initialValue: props.defaultTag
|
|
16362
|
-
})(
|
|
16438
|
+
})(React.createElement(Tag, null)), React.createElement("div", {
|
|
16363
16439
|
className: "digtal-header-fields"
|
|
16364
16440
|
}, form.getFieldDecorator('no', {
|
|
16365
16441
|
initialValue: props.defaultNo
|
|
16366
|
-
})(
|
|
16442
|
+
})(React.createElement(Field, {
|
|
16367
16443
|
title: "\u53D1\u7968\u53F7\u7801\uFF1A"
|
|
16368
16444
|
})), form.getFieldDecorator('invoicingDate', {
|
|
16369
16445
|
initialValue: props.defaultInvoicingDate
|
|
16370
|
-
})(
|
|
16446
|
+
})(React.createElement(Field, {
|
|
16371
16447
|
title: "\u5F00\u7968\u65E5\u671F\uFF1A"
|
|
16372
16448
|
}))));
|
|
16373
16449
|
});
|
|
@@ -16392,15 +16468,15 @@ var Field = /*#__PURE__*/function (_React$Component) {
|
|
|
16392
16468
|
value = _this$props.value;
|
|
16393
16469
|
|
|
16394
16470
|
if (value) {
|
|
16395
|
-
return
|
|
16471
|
+
return React.createElement("div", {
|
|
16396
16472
|
className: "digtal-header-field"
|
|
16397
|
-
},
|
|
16473
|
+
}, React.createElement("div", {
|
|
16398
16474
|
className: "digtal-header-field-title"
|
|
16399
|
-
}, title),
|
|
16475
|
+
}, title), React.createElement("div", {
|
|
16400
16476
|
className: "digtal-header-field-value"
|
|
16401
16477
|
}, value));
|
|
16402
16478
|
} else {
|
|
16403
|
-
return
|
|
16479
|
+
return React.createElement(React.Fragment, null);
|
|
16404
16480
|
}
|
|
16405
16481
|
}
|
|
16406
16482
|
}]);
|
|
@@ -16422,9 +16498,9 @@ var Tag = /*#__PURE__*/function (_React$Component2) {
|
|
|
16422
16498
|
_createClass(Tag, [{
|
|
16423
16499
|
key: "render",
|
|
16424
16500
|
value: function render() {
|
|
16425
|
-
return this.props.value ?
|
|
16501
|
+
return this.props.value ? React.createElement("div", {
|
|
16426
16502
|
className: "digtal-header-tag"
|
|
16427
|
-
}, this.props.value) :
|
|
16503
|
+
}, this.props.value) : React.createElement(React.Fragment, null);
|
|
16428
16504
|
}
|
|
16429
16505
|
}]);
|
|
16430
16506
|
|
|
@@ -16600,57 +16676,57 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
16600
16676
|
return rulesMap[field] || defaultRules;
|
|
16601
16677
|
}, [rulesMap, isReadOnly, isReadOnly]);
|
|
16602
16678
|
controller.useForm('stakeholder', form);
|
|
16603
|
-
return
|
|
16679
|
+
return React.createElement("div", {
|
|
16604
16680
|
className: classNames("kts-invoice-operate-invoice-digtal-stakeholder", {
|
|
16605
16681
|
readOnly: readOnly
|
|
16606
16682
|
})
|
|
16607
|
-
},
|
|
16608
|
-
return
|
|
16609
|
-
}), !readOnly &&
|
|
16683
|
+
}, React.createElement("div", null, '购买方信息'.split('').map(function (e) {
|
|
16684
|
+
return React.createElement("span", null, e);
|
|
16685
|
+
}), !readOnly && React.createElement(Icon, {
|
|
16610
16686
|
className: "digtal-stakeholder-expand-button",
|
|
16611
16687
|
component: isExpand ? SvgArrowUp : SvgArrowDown,
|
|
16612
16688
|
onClick: onExpand
|
|
16613
|
-
})),
|
|
16689
|
+
})), React.createElement("div", null, React.createElement(Form, {
|
|
16614
16690
|
className: "digtal-stakeholder-form"
|
|
16615
|
-
},
|
|
16691
|
+
}, React.createElement(Row, {
|
|
16616
16692
|
gutter: [16, 0]
|
|
16617
|
-
}, props.isNaturalPerson === true &&
|
|
16693
|
+
}, props.isNaturalPerson === true && React.createElement(Col, {
|
|
16618
16694
|
span: 24
|
|
16619
|
-
},
|
|
16695
|
+
}, React.createElement(Form.Item, {
|
|
16620
16696
|
label: "\u8D2D\u4E70\u65B9\u4FE1\u606F",
|
|
16621
16697
|
colon: false
|
|
16622
|
-
}, getFieldDecorator('naturalPersonFlag', {})(
|
|
16698
|
+
}, getFieldDecorator('naturalPersonFlag', {})(React.createElement(NaturalPersonFlag, {
|
|
16623
16699
|
readOnly: isReadOnly('naturalPersonFlag')
|
|
16624
|
-
})))),
|
|
16700
|
+
})))), React.createElement(Col, {
|
|
16625
16701
|
span: 24
|
|
16626
|
-
},
|
|
16702
|
+
}, React.createElement(Form.Item, {
|
|
16627
16703
|
label: "\u540D\u79F0",
|
|
16628
16704
|
colon: false
|
|
16629
16705
|
}, getFieldDecorator('buyerName', {
|
|
16630
16706
|
rules: getRules('buyerName', RULES.companyName('购买方名称'))
|
|
16631
|
-
})(
|
|
16707
|
+
})(React.createElement(BuyerNameInput$1, {
|
|
16632
16708
|
myform: form,
|
|
16633
16709
|
fieldName: 'buyerName',
|
|
16634
16710
|
readOnly: isReadOnly('buyerName'),
|
|
16635
16711
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
16636
16712
|
autoComplete: "off",
|
|
16637
|
-
suffix: isShowImportButton === true &&
|
|
16713
|
+
suffix: isShowImportButton === true && React.createElement(Button$1, {
|
|
16638
16714
|
type: 'link',
|
|
16639
16715
|
style: {
|
|
16640
16716
|
padding: 0,
|
|
16641
16717
|
width: 20,
|
|
16642
16718
|
height: '100%'
|
|
16643
16719
|
},
|
|
16644
|
-
icon:
|
|
16720
|
+
icon: React.createElement(Icon, {
|
|
16645
16721
|
component: SvgPlus
|
|
16646
16722
|
}),
|
|
16647
16723
|
onClick: function onClick() {
|
|
16648
16724
|
onClickImportButton && onClickImportButton(controller);
|
|
16649
16725
|
}
|
|
16650
16726
|
})
|
|
16651
|
-
})))),
|
|
16727
|
+
})))), React.createElement(Col, {
|
|
16652
16728
|
span: 24
|
|
16653
|
-
},
|
|
16729
|
+
}, React.createElement(Form.Item, {
|
|
16654
16730
|
label: "\u7EDF\u4E00\u793E\u4F1A\u4FE1\u7528\u4EE3\u7801/\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7",
|
|
16655
16731
|
colon: false
|
|
16656
16732
|
}, getFieldDecorator('buyerTaxId', {
|
|
@@ -16658,15 +16734,15 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
16658
16734
|
required: !isVatNormal,
|
|
16659
16735
|
message: '购买方纳税人识别号必填'
|
|
16660
16736
|
}].concat(_toConsumableArray(RULES.taxId('购买方纳税人识别号'))))
|
|
16661
|
-
})(
|
|
16737
|
+
})(React.createElement(BuyerNameInput$1, {
|
|
16662
16738
|
myform: form,
|
|
16663
16739
|
fieldName: 'buyerTaxId',
|
|
16664
16740
|
readOnly: isReadOnly('buyerTaxId'),
|
|
16665
16741
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
16666
16742
|
autoComplete: "off"
|
|
16667
|
-
})))), isExpand &&
|
|
16743
|
+
})))), isExpand && React.createElement(React.Fragment, null, React.createElement(Col, {
|
|
16668
16744
|
span: 15
|
|
16669
|
-
},
|
|
16745
|
+
}, React.createElement(Form.Item, {
|
|
16670
16746
|
label: "\u8D2D\u4E70\u65B9\u5730\u5740",
|
|
16671
16747
|
colon: false
|
|
16672
16748
|
}, getFieldDecorator('buyerAddress', {
|
|
@@ -16674,77 +16750,77 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
16674
16750
|
max: 100,
|
|
16675
16751
|
message: '购买方地址内容超长'
|
|
16676
16752
|
}])
|
|
16677
|
-
})(
|
|
16753
|
+
})(React.createElement(MyInput$1, {
|
|
16678
16754
|
readOnly: isReadOnly('buyerAddress'),
|
|
16679
16755
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
16680
16756
|
autoComplete: "off"
|
|
16681
|
-
})))),
|
|
16757
|
+
})))), React.createElement(Col, {
|
|
16682
16758
|
span: 9
|
|
16683
|
-
},
|
|
16759
|
+
}, React.createElement(Form.Item, {
|
|
16684
16760
|
label: "\u7535\u8BDD",
|
|
16685
16761
|
colon: false
|
|
16686
16762
|
}, getFieldDecorator('buyerPhone', {
|
|
16687
16763
|
rules: getRules('buyerPhone', RULES.buyerTelPhone('购买方电话'))
|
|
16688
|
-
})(
|
|
16764
|
+
})(React.createElement(MyInput$1, {
|
|
16689
16765
|
readOnly: isReadOnly('buyerPhone'),
|
|
16690
16766
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
16691
16767
|
autoComplete: "off"
|
|
16692
|
-
})))),
|
|
16768
|
+
})))), React.createElement(Col, {
|
|
16693
16769
|
span: 12
|
|
16694
|
-
},
|
|
16770
|
+
}, React.createElement(Form.Item, {
|
|
16695
16771
|
label: "\u8D2D\u4E70\u65B9\u5F00\u6237\u94F6\u884C",
|
|
16696
16772
|
colon: false
|
|
16697
16773
|
}, getFieldDecorator('buyerBank', {
|
|
16698
16774
|
rules: getRules('buyerBank', RULES.bankName('购买方开户银行'))
|
|
16699
|
-
})(
|
|
16775
|
+
})(React.createElement(MyInput$1, {
|
|
16700
16776
|
readOnly: isReadOnly('buyerBank'),
|
|
16701
16777
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
16702
16778
|
autoComplete: "off"
|
|
16703
|
-
})))),
|
|
16779
|
+
})))), React.createElement(Col, {
|
|
16704
16780
|
span: 12
|
|
16705
|
-
},
|
|
16781
|
+
}, React.createElement(Form.Item, {
|
|
16706
16782
|
label: "\u94F6\u884C\u8D26\u53F7",
|
|
16707
16783
|
colon: false
|
|
16708
16784
|
}, getFieldDecorator('buyerAccount', {
|
|
16709
16785
|
rules: getRules('buyerAccount', RULES.bankAccount('购买方银行账号'))
|
|
16710
|
-
})(
|
|
16786
|
+
})(React.createElement(MyInput$1, {
|
|
16711
16787
|
readOnly: isReadOnly('buyerAccount'),
|
|
16712
16788
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
16713
16789
|
autoComplete: "off"
|
|
16714
|
-
})))))))),
|
|
16715
|
-
return
|
|
16716
|
-
}), !readOnly &&
|
|
16790
|
+
})))))))), React.createElement("div", null, '销售方信息'.split('').map(function (e) {
|
|
16791
|
+
return React.createElement("span", null, e);
|
|
16792
|
+
}), !readOnly && React.createElement(Icon, {
|
|
16717
16793
|
className: "digtal-stakeholder-expand-button",
|
|
16718
16794
|
component: isExpand ? SvgArrowUp : SvgArrowDown,
|
|
16719
16795
|
onClick: onExpand
|
|
16720
|
-
})),
|
|
16796
|
+
})), React.createElement("div", null, !readOnly && props.lineCredit && React.createElement("div", {
|
|
16721
16797
|
style: {
|
|
16722
16798
|
marginTop: 20
|
|
16723
16799
|
}
|
|
16724
|
-
},
|
|
16800
|
+
}, React.createElement(Tooltip$1, {
|
|
16725
16801
|
trigger: "click",
|
|
16726
16802
|
title: props.lineCredit
|
|
16727
|
-
},
|
|
16803
|
+
}, React.createElement(Button$1, {
|
|
16728
16804
|
type: "link"
|
|
16729
|
-
}, "\u67E5\u770B\u5F53\u524D\u53EF\u7528\u6388\u4FE1\u989D\u5EA6"))),
|
|
16805
|
+
}, "\u67E5\u770B\u5F53\u524D\u53EF\u7528\u6388\u4FE1\u989D\u5EA6"))), React.createElement(Form, {
|
|
16730
16806
|
className: "digtal-stakeholder-form"
|
|
16731
|
-
},
|
|
16807
|
+
}, React.createElement(Row, {
|
|
16732
16808
|
gutter: [16, 0]
|
|
16733
|
-
},
|
|
16809
|
+
}, React.createElement(Col, {
|
|
16734
16810
|
span: 24
|
|
16735
|
-
},
|
|
16811
|
+
}, React.createElement(Form.Item, {
|
|
16736
16812
|
label: "\u540D\u79F0",
|
|
16737
16813
|
colon: false
|
|
16738
16814
|
}, getFieldDecorator('supplierName', {
|
|
16739
16815
|
rules: getRules('supplierName', RULES.companyName('销售方名称')),
|
|
16740
16816
|
getValueFromEvent: formatCompanyName
|
|
16741
|
-
})(
|
|
16817
|
+
})(React.createElement(MyInput$1, {
|
|
16742
16818
|
readOnly: isReadOnly('supplierName'),
|
|
16743
16819
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
16744
16820
|
autoComplete: "off"
|
|
16745
|
-
})))),
|
|
16821
|
+
})))), React.createElement(Col, {
|
|
16746
16822
|
span: 24
|
|
16747
|
-
},
|
|
16823
|
+
}, React.createElement(Form.Item, {
|
|
16748
16824
|
label: "\u7EDF\u4E00\u793E\u4F1A\u4FE1\u7528\u4EE3\u7801/\u7EB3\u7A0E\u4EBA\u8BC6\u522B\u53F7",
|
|
16749
16825
|
colon: false
|
|
16750
16826
|
}, getFieldDecorator('supplierTaxId', {
|
|
@@ -16752,13 +16828,13 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
16752
16828
|
required: true,
|
|
16753
16829
|
message: '销售方纳税人识别号必填'
|
|
16754
16830
|
}].concat(_toConsumableArray(RULES.taxId('销售方纳税人识别号'))))
|
|
16755
|
-
})(
|
|
16831
|
+
})(React.createElement(MyInput$1, {
|
|
16756
16832
|
readOnly: isReadOnly('supplierTaxId'),
|
|
16757
16833
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
16758
16834
|
autoComplete: "off"
|
|
16759
|
-
})))), isExpand &&
|
|
16835
|
+
})))), isExpand && React.createElement(React.Fragment, null, React.createElement(Col, {
|
|
16760
16836
|
span: 15
|
|
16761
|
-
},
|
|
16837
|
+
}, React.createElement(Form.Item, {
|
|
16762
16838
|
label: "\u9500\u552E\u65B9\u5730\u5740",
|
|
16763
16839
|
colon: false
|
|
16764
16840
|
}, getFieldDecorator('sellerAddress', {
|
|
@@ -16766,40 +16842,40 @@ var Stakeholder$1 = decorator(Form.create())(function (props) {
|
|
|
16766
16842
|
max: 300,
|
|
16767
16843
|
message: '销售方地址内容超长'
|
|
16768
16844
|
}])
|
|
16769
|
-
})(
|
|
16845
|
+
})(React.createElement(MyInput$1, {
|
|
16770
16846
|
readOnly: isReadOnly('sellerAddress'),
|
|
16771
16847
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
16772
16848
|
autoComplete: "off"
|
|
16773
|
-
})))),
|
|
16849
|
+
})))), React.createElement(Col, {
|
|
16774
16850
|
span: 9
|
|
16775
|
-
},
|
|
16851
|
+
}, React.createElement(Form.Item, {
|
|
16776
16852
|
label: "\u7535\u8BDD",
|
|
16777
16853
|
colon: false
|
|
16778
16854
|
}, getFieldDecorator('sellerPhone', {
|
|
16779
16855
|
rules: getRules('sellerPhone', RULES.sellerTelPhone('销售方电话'))
|
|
16780
|
-
})(
|
|
16856
|
+
})(React.createElement(MyInput$1, {
|
|
16781
16857
|
readOnly: isReadOnly('sellerPhone'),
|
|
16782
16858
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
16783
16859
|
autoComplete: "off"
|
|
16784
|
-
})))),
|
|
16860
|
+
})))), React.createElement(Col, {
|
|
16785
16861
|
span: 12
|
|
16786
|
-
},
|
|
16862
|
+
}, React.createElement(Form.Item, {
|
|
16787
16863
|
label: "\u9500\u552E\u65B9\u5F00\u6237\u94F6\u884C",
|
|
16788
16864
|
colon: false
|
|
16789
16865
|
}, getFieldDecorator('sellerBank', {
|
|
16790
16866
|
rules: getRules('sellerBank', RULES.bankName('销售方开户银行'))
|
|
16791
|
-
})(
|
|
16867
|
+
})(React.createElement(MyInput$1, {
|
|
16792
16868
|
readOnly: isReadOnly('sellerBank'),
|
|
16793
16869
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
16794
16870
|
autoComplete: "off"
|
|
16795
|
-
})))),
|
|
16871
|
+
})))), React.createElement(Col, {
|
|
16796
16872
|
span: 12
|
|
16797
|
-
},
|
|
16873
|
+
}, React.createElement(Form.Item, {
|
|
16798
16874
|
label: "\u94F6\u884C\u8D26\u53F7",
|
|
16799
16875
|
colon: false
|
|
16800
16876
|
}, getFieldDecorator('sellerAccount', {
|
|
16801
16877
|
rules: getRules('sellerAccount', RULES.bankAccount('销售方银行账号'))
|
|
16802
|
-
})(
|
|
16878
|
+
})(React.createElement(MyInput$1, {
|
|
16803
16879
|
readOnly: isReadOnly('sellerAccount'),
|
|
16804
16880
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
16805
16881
|
autoComplete: "off"
|
|
@@ -16820,7 +16896,7 @@ function NaturalPersonFlag(props) {
|
|
|
16820
16896
|
React.useEffect(function () {
|
|
16821
16897
|
setValue(props.value || 'COMPANY');
|
|
16822
16898
|
}, [props.value]);
|
|
16823
|
-
return
|
|
16899
|
+
return React.createElement(Checkbox$1, {
|
|
16824
16900
|
disabled: props.readOnly,
|
|
16825
16901
|
checked: value === 'NATURAL',
|
|
16826
16902
|
onChange: onChange
|
|
@@ -16923,8 +16999,8 @@ function BuyerNameInput$1(props) {
|
|
|
16923
16999
|
return _ref.apply(this, arguments);
|
|
16924
17000
|
};
|
|
16925
17001
|
}(), [autoComplete.onBuyerNameSearch, fieldName]);
|
|
16926
|
-
if (props.readOnly) return
|
|
16927
|
-
return
|
|
17002
|
+
if (props.readOnly) return React.createElement("span", null, props.value);
|
|
17003
|
+
return React.createElement(AutoComplete$1, {
|
|
16928
17004
|
onSearch: onSearch,
|
|
16929
17005
|
options: options.map(function (e) {
|
|
16930
17006
|
return {
|
|
@@ -16933,7 +17009,7 @@ function BuyerNameInput$1(props) {
|
|
|
16933
17009
|
}),
|
|
16934
17010
|
onChange: onChangeAutoComplete,
|
|
16935
17011
|
value: props.value
|
|
16936
|
-
},
|
|
17012
|
+
}, React.createElement(Input$1, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
16937
17013
|
style: _objectSpread2({
|
|
16938
17014
|
width: '100%'
|
|
16939
17015
|
}, props.style)
|
|
@@ -16957,9 +17033,9 @@ var MyInput$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
16957
17033
|
var props = this.props;
|
|
16958
17034
|
|
|
16959
17035
|
if (props.readOnly) {
|
|
16960
|
-
return
|
|
17036
|
+
return React.createElement("span", null, props.value);
|
|
16961
17037
|
} else {
|
|
16962
|
-
return
|
|
17038
|
+
return React.createElement(Input$1, _objectSpread2({}, props));
|
|
16963
17039
|
}
|
|
16964
17040
|
}
|
|
16965
17041
|
}]);
|
|
@@ -17016,43 +17092,43 @@ var SignDigtal = decorator(Form.create())(function (props) {
|
|
|
17016
17092
|
controller.useForm('sign', form);
|
|
17017
17093
|
|
|
17018
17094
|
if (readOnly) {
|
|
17019
|
-
return
|
|
17095
|
+
return React.createElement("div", {
|
|
17020
17096
|
className: "kts-invoice-operate-sign-digtal-readOnly"
|
|
17021
|
-
},
|
|
17097
|
+
}, React.createElement("div", {
|
|
17022
17098
|
className: 'sign-digtal-readOnly-cont'
|
|
17023
|
-
},
|
|
17099
|
+
}, React.createElement("div", null, React.createElement("span", null, "\u5907"), React.createElement("span", null, "\u6CE8")), React.createElement("div", null, getFieldDecorator('remarks', {
|
|
17024
17100
|
initialValue: props.defaultRemark
|
|
17025
|
-
})(isEnables('remarks') ?
|
|
17101
|
+
})(isEnables('remarks') ? React.createElement(Input$1.TextArea, {
|
|
17026
17102
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
17027
17103
|
style: {
|
|
17028
17104
|
height: '100%'
|
|
17029
17105
|
}
|
|
17030
|
-
}) :
|
|
17106
|
+
}) : React.createElement(MyDiv$1, null)))), React.createElement(Form, {
|
|
17031
17107
|
layout: 'inline',
|
|
17032
17108
|
className: 'digtal-readOnly-form'
|
|
17033
|
-
},
|
|
17109
|
+
}, React.createElement(Form.Item, {
|
|
17034
17110
|
label: "\u5F00\u7968\u4EBA"
|
|
17035
17111
|
}, getFieldDecorator('drawer', {
|
|
17036
17112
|
initialValue: props.defaultRemark
|
|
17037
|
-
})(
|
|
17113
|
+
})(React.createElement(MyDiv$1, null)))));
|
|
17038
17114
|
} else {
|
|
17039
|
-
return
|
|
17115
|
+
return React.createElement("div", {
|
|
17040
17116
|
className: "kts-invoice-operate-sign-digtal"
|
|
17041
|
-
},
|
|
17117
|
+
}, React.createElement("div", {
|
|
17042
17118
|
className: 'sign-digtal-label'
|
|
17043
|
-
}, "\u5907\u6CE8\u4FE1\u606F"),
|
|
17119
|
+
}, "\u5907\u6CE8\u4FE1\u606F"), React.createElement(Form, null, React.createElement(Form.Item, {
|
|
17044
17120
|
label: "\u5907\u6CE8"
|
|
17045
17121
|
}, getFieldDecorator('remarks', {
|
|
17046
17122
|
initialValue: props.defaultRemark
|
|
17047
|
-
})(
|
|
17123
|
+
})(React.createElement(Input$1.TextArea, {
|
|
17048
17124
|
readOnly: isReadOnly('remarks'),
|
|
17049
17125
|
autoSize: true,
|
|
17050
17126
|
placeholder: "\u8BF7\u8F93\u5165"
|
|
17051
|
-
}))),
|
|
17127
|
+
}))), React.createElement(Form.Item, {
|
|
17052
17128
|
label: "\u5F00\u7968\u4EBA"
|
|
17053
17129
|
}, getFieldDecorator('drawer', {
|
|
17054
17130
|
initialValue: props.defaultIssuer
|
|
17055
|
-
})(
|
|
17131
|
+
})(React.createElement(Input$1, {
|
|
17056
17132
|
readOnly: isReadOnly('drawer'),
|
|
17057
17133
|
style: {
|
|
17058
17134
|
width: 313
|
|
@@ -17076,7 +17152,7 @@ var MyDiv$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
17076
17152
|
_createClass(MyDiv, [{
|
|
17077
17153
|
key: "render",
|
|
17078
17154
|
value: function render() {
|
|
17079
|
-
return
|
|
17155
|
+
return React.createElement("div", null, this.props.value);
|
|
17080
17156
|
}
|
|
17081
17157
|
}]);
|
|
17082
17158
|
|
|
@@ -17177,12 +17253,12 @@ function TableVirtual$1 (props) {
|
|
|
17177
17253
|
if (!cont) return;
|
|
17178
17254
|
cont.scrollTop = 0;
|
|
17179
17255
|
}, [(_props$dataSource2 = props.dataSource) === null || _props$dataSource2 === void 0 ? void 0 : _props$dataSource2.length]);
|
|
17180
|
-
return
|
|
17256
|
+
return React.createElement("span", {
|
|
17181
17257
|
className: "kts-invoice-operate-goods-table-virtual",
|
|
17182
17258
|
ref: function ref(e) {
|
|
17183
17259
|
setSelf(e);
|
|
17184
17260
|
}
|
|
17185
|
-
},
|
|
17261
|
+
}, React.createElement(TableManual, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
17186
17262
|
dataSource: dataSource,
|
|
17187
17263
|
// 新版本Table会有输入框无法连续输入的问题,先兼容老版本
|
|
17188
17264
|
tableComponent: Table
|
|
@@ -17295,51 +17371,51 @@ var Statistics$1 = (function () {
|
|
|
17295
17371
|
});
|
|
17296
17372
|
return sum.done().toNumber();
|
|
17297
17373
|
}, []);
|
|
17298
|
-
return
|
|
17374
|
+
return React.createElement("div", {
|
|
17299
17375
|
className: 'kts-invoice-operate-goods-list-statistics-digtal'
|
|
17300
|
-
},
|
|
17376
|
+
}, React.createElement("div", {
|
|
17301
17377
|
className: 'statistics-digtal-total'
|
|
17302
|
-
},
|
|
17378
|
+
}, React.createElement("div", null, "\u5408\u8BA1"), React.createElement("div", {
|
|
17303
17379
|
style: {
|
|
17304
17380
|
flex: 1
|
|
17305
17381
|
}
|
|
17306
|
-
}),
|
|
17382
|
+
}), React.createElement("div", {
|
|
17307
17383
|
style: {
|
|
17308
17384
|
width: 119,
|
|
17309
17385
|
textAlign: 'right',
|
|
17310
17386
|
paddingRight: 15
|
|
17311
17387
|
}
|
|
17312
|
-
}, "\xA5", parseFloat(isTaxIncluded ? lineAmountIncludeTax : lineAmountExcludeTax).toFixed(2)),
|
|
17388
|
+
}, "\xA5", parseFloat(isTaxIncluded ? lineAmountIncludeTax : lineAmountExcludeTax).toFixed(2)), React.createElement("div", {
|
|
17313
17389
|
style: {
|
|
17314
17390
|
width: 119,
|
|
17315
17391
|
textAlign: 'right',
|
|
17316
17392
|
paddingRight: 15
|
|
17317
17393
|
}
|
|
17318
|
-
}, "\xA5", parseFloat(taxAmount).toFixed(2))),
|
|
17394
|
+
}, "\xA5", parseFloat(taxAmount).toFixed(2))), React.createElement("div", {
|
|
17319
17395
|
className: 'statistics-digtal-total-tax'
|
|
17320
|
-
},
|
|
17396
|
+
}, React.createElement("div", null, "\u4EF7\u7A0E\u5408\u8BA1\uFF08\u5927\u5199\uFF09"), React.createElement("div", {
|
|
17321
17397
|
style: {
|
|
17322
17398
|
paddingLeft: 30
|
|
17323
17399
|
}
|
|
17324
|
-
},
|
|
17400
|
+
}, React.createElement(Icon, {
|
|
17325
17401
|
component: SvgFork
|
|
17326
|
-
}),
|
|
17402
|
+
}), React.createElement("span", {
|
|
17327
17403
|
style: {
|
|
17328
17404
|
fontWeight: 'bold',
|
|
17329
17405
|
marginLeft: 4
|
|
17330
17406
|
}
|
|
17331
17407
|
}, nzhcn$1.toMoney(lineAmountIncludeTax, {
|
|
17332
17408
|
outSymbol: false
|
|
17333
|
-
}))),
|
|
17409
|
+
}))), React.createElement("div", {
|
|
17334
17410
|
style: {
|
|
17335
17411
|
flex: 1
|
|
17336
17412
|
}
|
|
17337
|
-
}),
|
|
17413
|
+
}), React.createElement("div", {
|
|
17338
17414
|
style: {
|
|
17339
17415
|
width: 90,
|
|
17340
17416
|
color: '#9F613E'
|
|
17341
17417
|
}
|
|
17342
|
-
}, "\uFF08\u5C0F\u5199\uFF09"),
|
|
17418
|
+
}, "\uFF08\u5C0F\u5199\uFF09"), React.createElement("div", {
|
|
17343
17419
|
style: {
|
|
17344
17420
|
width: 119
|
|
17345
17421
|
}
|
|
@@ -17398,10 +17474,10 @@ var AddRowButton$1 = (function () {
|
|
|
17398
17474
|
}
|
|
17399
17475
|
}, _callee);
|
|
17400
17476
|
})), [controller, rootElement]);
|
|
17401
|
-
if (isAddRow === false) return
|
|
17402
|
-
if (model === 'prefab') return
|
|
17403
|
-
if (model === 'readOnly') return
|
|
17404
|
-
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, {
|
|
17405
17481
|
size: 'small',
|
|
17406
17482
|
type: 'primary',
|
|
17407
17483
|
onClick: onClick,
|
|
@@ -17554,11 +17630,11 @@ var TaxIncludedSwitch$1 = (function () {
|
|
|
17554
17630
|
};
|
|
17555
17631
|
}())();
|
|
17556
17632
|
}, []);
|
|
17557
|
-
return
|
|
17633
|
+
return React.createElement("span", null, React.createElement("label", {
|
|
17558
17634
|
style: {
|
|
17559
17635
|
marginRight: 2
|
|
17560
17636
|
}
|
|
17561
|
-
}, "\u542B\u7A0E"),
|
|
17637
|
+
}, "\u542B\u7A0E"), React.createElement(Switch, {
|
|
17562
17638
|
disabled: isSwitchTax === false,
|
|
17563
17639
|
checked: isTaxIncluded,
|
|
17564
17640
|
defaultChecked: true,
|
|
@@ -17654,12 +17730,12 @@ function Search$1() {
|
|
|
17654
17730
|
};
|
|
17655
17731
|
}());
|
|
17656
17732
|
}, [value, controller]);
|
|
17657
|
-
return
|
|
17733
|
+
return React.createElement(Input$1, {
|
|
17658
17734
|
readOnly: readOnly,
|
|
17659
17735
|
value: value,
|
|
17660
17736
|
className: "kts-invoice-operate-goods-list-search",
|
|
17661
17737
|
placeholder: "\u8BF7\u60A8\u8F93\u5165\u9879\u76EE\u540D\u79F0\u3001\u89C4\u683C\u578B\u53F7\u3001\u91D1\u989D(".concat(isTaxIncluded ? '含税' : '不含税', ")\u641C\u7D22"),
|
|
17662
|
-
prefix:
|
|
17738
|
+
prefix: React.createElement(Icon$1, {
|
|
17663
17739
|
component: SvgMagnifier$1,
|
|
17664
17740
|
style: {
|
|
17665
17741
|
color: "#b8b8b8"
|
|
@@ -17704,12 +17780,12 @@ function TableRow$1(props) {
|
|
|
17704
17780
|
return undefined;
|
|
17705
17781
|
}
|
|
17706
17782
|
}, [rowKey, goodsMap]);
|
|
17707
|
-
return rowKey === current && current ?
|
|
17783
|
+
return rowKey === current && current ? React.createElement("tr", {
|
|
17708
17784
|
style: {
|
|
17709
17785
|
height: 50,
|
|
17710
17786
|
position: 'relative'
|
|
17711
17787
|
}
|
|
17712
|
-
},
|
|
17788
|
+
}, React.createElement("div", {
|
|
17713
17789
|
style: {
|
|
17714
17790
|
height: 0.5,
|
|
17715
17791
|
width: '100%',
|
|
@@ -17717,9 +17793,7 @@ function TableRow$1(props) {
|
|
|
17717
17793
|
position: 'absolute',
|
|
17718
17794
|
bottom: 0
|
|
17719
17795
|
}
|
|
17720
|
-
})) :
|
|
17721
|
-
/*#__PURE__*/
|
|
17722
|
-
// <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' : '')} />
|
|
17723
17797
|
React.createElement("tr", _objectSpread2(_objectSpread2({}, props), {}, {
|
|
17724
17798
|
className: classNames(props.className, discount, rowKey === container && current ? 'kts-invoice-operate-goods-list-itemName-drag-container-' + site : undefined)
|
|
17725
17799
|
}));
|
|
@@ -17759,9 +17833,9 @@ var TitleText$1 = (function (props) {
|
|
|
17759
17833
|
return !!e.required;
|
|
17760
17834
|
})) || props.required;
|
|
17761
17835
|
}, [rules, props.required]);
|
|
17762
|
-
return
|
|
17836
|
+
return React.createElement(React.Fragment, null, required ? React.createElement(Text$5, {
|
|
17763
17837
|
type: "danger"
|
|
17764
|
-
}, "*") :
|
|
17838
|
+
}, "*") : React.createElement(React.Fragment, null), children);
|
|
17765
17839
|
});
|
|
17766
17840
|
|
|
17767
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";
|
|
@@ -17814,11 +17888,11 @@ function ItemNameInput$1(props) {
|
|
|
17814
17888
|
taxCategoryData = _context.sent;
|
|
17815
17889
|
|
|
17816
17890
|
if (taxCategoryData && taxCategoryData[0]) {
|
|
17817
|
-
params =
|
|
17891
|
+
params = {
|
|
17818
17892
|
taxClassificationCode: taxCategoryData[0].taxCategoryCode,
|
|
17819
17893
|
shorthand: taxCategoryData[0].shorthand
|
|
17820
|
-
}
|
|
17821
|
-
controller.
|
|
17894
|
+
};
|
|
17895
|
+
controller.itemNameBlur(params);
|
|
17822
17896
|
}
|
|
17823
17897
|
|
|
17824
17898
|
case 7:
|
|
@@ -17899,14 +17973,14 @@ function ItemNameInput$1(props) {
|
|
|
17899
17973
|
};
|
|
17900
17974
|
}(), [autoComplete.onItemNameSearch]);
|
|
17901
17975
|
console.log('===> options', options);
|
|
17902
|
-
return
|
|
17976
|
+
return React.createElement("div", {
|
|
17903
17977
|
className: 'kts-invoice-operate-goods-list-itemName-input'
|
|
17904
|
-
}, props.shorthand &&
|
|
17978
|
+
}, props.shorthand && React.createElement("span", {
|
|
17905
17979
|
style: {
|
|
17906
17980
|
alignSelf: 'center',
|
|
17907
17981
|
fontSize: 12
|
|
17908
17982
|
}
|
|
17909
|
-
}, "*", props.shorthand, "*"),
|
|
17983
|
+
}, "*", props.shorthand, "*"), React.createElement(AutoComplete$1, {
|
|
17910
17984
|
onSearch: onSearch,
|
|
17911
17985
|
value: props.value,
|
|
17912
17986
|
options: options.map(function (e) {
|
|
@@ -17915,7 +17989,7 @@ function ItemNameInput$1(props) {
|
|
|
17915
17989
|
};
|
|
17916
17990
|
}),
|
|
17917
17991
|
onSelect: onChangeAutoComplete
|
|
17918
|
-
},
|
|
17992
|
+
}, React.createElement(Input$1, {
|
|
17919
17993
|
style: {
|
|
17920
17994
|
height: '100%'
|
|
17921
17995
|
},
|
|
@@ -19022,7 +19096,7 @@ function Drag$2(props) {
|
|
|
19022
19096
|
var currentGood = controller.state.goodsListState.goodsList.filter(function (e) {
|
|
19023
19097
|
return e.$index === record.$index;
|
|
19024
19098
|
})[0];
|
|
19025
|
-
mounting(
|
|
19099
|
+
mounting(React.createElement(DragDiv$1, _objectSpread2({}, currentGood)));
|
|
19026
19100
|
rowList.forEach(function (e) {
|
|
19027
19101
|
e.addEventListener('mousemove', onMousemove);
|
|
19028
19102
|
});
|
|
@@ -19183,7 +19257,7 @@ function Drag$2(props) {
|
|
|
19183
19257
|
|
|
19184
19258
|
|
|
19185
19259
|
function insert() {
|
|
19186
|
-
mounting(
|
|
19260
|
+
mounting(React.createElement(React.Fragment, null));
|
|
19187
19261
|
controller.run( /*#__PURE__*/function () {
|
|
19188
19262
|
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(s) {
|
|
19189
19263
|
var _s$goodsListState$dra, container, current, site, goodsList, goodsMap, _currentGood, currentIndex, moveGoods;
|
|
@@ -19262,7 +19336,7 @@ function Drag$2(props) {
|
|
|
19262
19336
|
}
|
|
19263
19337
|
}, [controller, record, disabled]);
|
|
19264
19338
|
var renderButton = React.useMemo(function () {
|
|
19265
|
-
return
|
|
19339
|
+
return React.createElement(Button, {
|
|
19266
19340
|
type: 'link',
|
|
19267
19341
|
style: {
|
|
19268
19342
|
padding: 0
|
|
@@ -19273,13 +19347,13 @@ function Drag$2(props) {
|
|
|
19273
19347
|
},
|
|
19274
19348
|
className: "kts-invoice-operate-goods-list-itemName-drag",
|
|
19275
19349
|
onMouseOver: controller.saveEditGood
|
|
19276
|
-
},
|
|
19350
|
+
}, React.createElement(Icon, {
|
|
19277
19351
|
component: SvgI001$1
|
|
19278
19352
|
}));
|
|
19279
19353
|
}, [onMouseDown, controller]);
|
|
19280
19354
|
|
|
19281
19355
|
if (disabled) {
|
|
19282
|
-
return
|
|
19356
|
+
return React.createElement(Popover, {
|
|
19283
19357
|
content: '您还有未编辑完成的商品',
|
|
19284
19358
|
trigger: 'focus'
|
|
19285
19359
|
}, renderButton);
|
|
@@ -19319,13 +19393,13 @@ function DragDiv$1(props) {
|
|
|
19319
19393
|
window.removeEventListener('mousemove', onMousemove);
|
|
19320
19394
|
};
|
|
19321
19395
|
});
|
|
19322
|
-
return
|
|
19396
|
+
return React.createElement("div", {
|
|
19323
19397
|
className: "kts-invoice-operate-goods-list-itemName-drag-div",
|
|
19324
19398
|
style: {
|
|
19325
19399
|
top: y,
|
|
19326
19400
|
left: x
|
|
19327
19401
|
}
|
|
19328
|
-
},
|
|
19402
|
+
}, React.createElement("span", null, props.itemName), React.createElement("span", null, props.itemModelName), React.createElement("span", null, props.unit));
|
|
19329
19403
|
}
|
|
19330
19404
|
|
|
19331
19405
|
var useColumns$1 = (function (form) {
|
|
@@ -19441,7 +19515,7 @@ var useColumns$1 = (function (form) {
|
|
|
19441
19515
|
width: 40,
|
|
19442
19516
|
align: 'center',
|
|
19443
19517
|
render: function render(_, record) {
|
|
19444
|
-
return
|
|
19518
|
+
return React.createElement(Drag$2, {
|
|
19445
19519
|
record: record
|
|
19446
19520
|
});
|
|
19447
19521
|
}
|
|
@@ -19451,20 +19525,20 @@ var useColumns$1 = (function (form) {
|
|
|
19451
19525
|
dataIndex: 'serialNo',
|
|
19452
19526
|
width: 50,
|
|
19453
19527
|
render: function render(e) {
|
|
19454
|
-
return
|
|
19528
|
+
return React.createElement("span", {
|
|
19455
19529
|
style: {
|
|
19456
19530
|
padding: '0 10px'
|
|
19457
19531
|
}
|
|
19458
19532
|
}, e);
|
|
19459
19533
|
}
|
|
19460
19534
|
}, {
|
|
19461
|
-
title:
|
|
19535
|
+
title: React.createElement(TitleText$1, {
|
|
19462
19536
|
required: true
|
|
19463
19537
|
}, "\u9879\u76EE\u540D\u79F0"),
|
|
19464
19538
|
key: 'itemName',
|
|
19465
19539
|
render: function render(_, record) {
|
|
19466
19540
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
19467
|
-
return
|
|
19541
|
+
return React.createElement(Form.Item, null, React.createElement("div", {
|
|
19468
19542
|
style: {
|
|
19469
19543
|
display: 'flex'
|
|
19470
19544
|
}
|
|
@@ -19511,12 +19585,12 @@ var useColumns$1 = (function (form) {
|
|
|
19511
19585
|
return validator;
|
|
19512
19586
|
}()
|
|
19513
19587
|
}])
|
|
19514
|
-
})(
|
|
19588
|
+
})(React.createElement(ItemNameInput$1, {
|
|
19515
19589
|
editGood: editGood,
|
|
19516
19590
|
shorthand: editGood.shorthand,
|
|
19517
|
-
suffix:
|
|
19591
|
+
suffix: React.createElement(Tooltip$1, {
|
|
19518
19592
|
title: "\u70B9\u51FB\u4ECE\u5546\u54C1\u7BA1\u7406\u4E2D\u6DFB\u52A0\u5546\u54C1\u4FE1\u606F"
|
|
19519
|
-
},
|
|
19593
|
+
}, React.createElement(Button$1, {
|
|
19520
19594
|
type: "link",
|
|
19521
19595
|
style: {
|
|
19522
19596
|
padding: 0,
|
|
@@ -19524,7 +19598,7 @@ var useColumns$1 = (function (form) {
|
|
|
19524
19598
|
fontSize: 20,
|
|
19525
19599
|
fill: '#0074ff'
|
|
19526
19600
|
},
|
|
19527
|
-
icon:
|
|
19601
|
+
icon: React.createElement(SvgPlus$1, null),
|
|
19528
19602
|
onClick: controller.pipeline( /*#__PURE__*/function () {
|
|
19529
19603
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(s) {
|
|
19530
19604
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
@@ -19551,9 +19625,9 @@ var useColumns$1 = (function (form) {
|
|
|
19551
19625
|
}
|
|
19552
19626
|
}))));
|
|
19553
19627
|
} else {
|
|
19554
|
-
return
|
|
19628
|
+
return React.createElement("span", null, record.lineAttribute === LineAttributeType$1.折扣行 ? React.createElement("span", {
|
|
19555
19629
|
className: 'goods-list-digtal-discount-tag'
|
|
19556
|
-
}, "\u6298\u6263") :
|
|
19630
|
+
}, "\u6298\u6263") : React.createElement(React.Fragment, null), React.createElement(MyItemNameDiv$1, {
|
|
19557
19631
|
valueT: formatSearch$1(getItemNameWithShorthand({
|
|
19558
19632
|
shorthand: record.shorthand,
|
|
19559
19633
|
full: record.itemNameSelf || ''
|
|
@@ -19567,17 +19641,17 @@ var useColumns$1 = (function (form) {
|
|
|
19567
19641
|
}
|
|
19568
19642
|
}
|
|
19569
19643
|
}, {
|
|
19570
|
-
title:
|
|
19644
|
+
title: React.createElement(TitleText$1, {
|
|
19571
19645
|
rules: (_columnsReplenish$ite = columnsReplenish['itemModelName']) === null || _columnsReplenish$ite === void 0 ? void 0 : _columnsReplenish$ite.rules
|
|
19572
19646
|
}, "\u89C4\u683C\u578B\u53F7"),
|
|
19573
19647
|
key: 'itemModelName',
|
|
19574
19648
|
width: 119,
|
|
19575
19649
|
render: function render(_, record) {
|
|
19576
19650
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
19577
|
-
return
|
|
19651
|
+
return React.createElement(Form.Item, null, getFieldDecorator('itemModelName', {
|
|
19578
19652
|
initialValue: isMyShow ? editGood.itemModelNameSelf : editGood.itemModelName,
|
|
19579
19653
|
rules: getReplenishRules('itemModelName')
|
|
19580
|
-
})(
|
|
19654
|
+
})(React.createElement(MyInput$2, {
|
|
19581
19655
|
onChange: function () {
|
|
19582
19656
|
var _onChange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
19583
19657
|
var key, value;
|
|
@@ -19610,7 +19684,7 @@ var useColumns$1 = (function (form) {
|
|
|
19610
19684
|
}()
|
|
19611
19685
|
})));
|
|
19612
19686
|
} else {
|
|
19613
|
-
return
|
|
19687
|
+
return React.createElement(MyItemNameDiv$1, {
|
|
19614
19688
|
valueT: formatSearch$1(record.itemModelNameSelf, searchValue),
|
|
19615
19689
|
valueF: formatSearch$1(record.itemModelName, searchValue),
|
|
19616
19690
|
isMyShow: isMyShow
|
|
@@ -19618,17 +19692,17 @@ var useColumns$1 = (function (form) {
|
|
|
19618
19692
|
}
|
|
19619
19693
|
}
|
|
19620
19694
|
}, {
|
|
19621
|
-
title:
|
|
19695
|
+
title: React.createElement(TitleText$1, {
|
|
19622
19696
|
rules: (_columnsReplenish$uni = columnsReplenish['unit']) === null || _columnsReplenish$uni === void 0 ? void 0 : _columnsReplenish$uni.rules
|
|
19623
19697
|
}, "\u5355\u4F4D"),
|
|
19624
19698
|
key: 'unit',
|
|
19625
19699
|
width: 70,
|
|
19626
19700
|
render: function render(_, record) {
|
|
19627
19701
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
19628
|
-
return
|
|
19702
|
+
return React.createElement(Form.Item, null, getFieldDecorator('unit', {
|
|
19629
19703
|
initialValue: editGood.unit,
|
|
19630
19704
|
rules: getReplenishRules('unit')
|
|
19631
|
-
})(
|
|
19705
|
+
})(React.createElement(AutoComplete$1, {
|
|
19632
19706
|
style: {
|
|
19633
19707
|
width: '100%'
|
|
19634
19708
|
},
|
|
@@ -19666,7 +19740,7 @@ var useColumns$1 = (function (form) {
|
|
|
19666
19740
|
}()
|
|
19667
19741
|
})));
|
|
19668
19742
|
} else {
|
|
19669
|
-
return
|
|
19743
|
+
return React.createElement("span", {
|
|
19670
19744
|
style: {
|
|
19671
19745
|
padding: '0 10px'
|
|
19672
19746
|
}
|
|
@@ -19674,7 +19748,7 @@ var useColumns$1 = (function (form) {
|
|
|
19674
19748
|
}
|
|
19675
19749
|
}
|
|
19676
19750
|
}, {
|
|
19677
|
-
title:
|
|
19751
|
+
title: React.createElement(TitleText$1, {
|
|
19678
19752
|
rules: (_columnsReplenish$qua = columnsReplenish['quantity']) === null || _columnsReplenish$qua === void 0 ? void 0 : _columnsReplenish$qua.rules
|
|
19679
19753
|
}, "\u6570\u91CF"),
|
|
19680
19754
|
dataIndex: 'quantity',
|
|
@@ -19683,7 +19757,7 @@ var useColumns$1 = (function (form) {
|
|
|
19683
19757
|
width: 149,
|
|
19684
19758
|
render: function render(value, record) {
|
|
19685
19759
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
19686
|
-
return
|
|
19760
|
+
return React.createElement(Form.Item, null, getFieldDecorator('quantity', {
|
|
19687
19761
|
initialValue: editGood.quantity,
|
|
19688
19762
|
getValueFromEvent: onNumberValueChange,
|
|
19689
19763
|
rules: [].concat(_toConsumableArray(getReplenishRules('quantity')), [{
|
|
@@ -19729,7 +19803,7 @@ var useColumns$1 = (function (form) {
|
|
|
19729
19803
|
return validator;
|
|
19730
19804
|
}()
|
|
19731
19805
|
}])
|
|
19732
|
-
})(
|
|
19806
|
+
})(React.createElement(MyInput$2, {
|
|
19733
19807
|
style: {
|
|
19734
19808
|
textAlign: 'right'
|
|
19735
19809
|
},
|
|
@@ -19761,7 +19835,7 @@ var useColumns$1 = (function (form) {
|
|
|
19761
19835
|
}()
|
|
19762
19836
|
})));
|
|
19763
19837
|
} else {
|
|
19764
|
-
return
|
|
19838
|
+
return React.createElement("span", {
|
|
19765
19839
|
style: {
|
|
19766
19840
|
padding: '0 10px'
|
|
19767
19841
|
}
|
|
@@ -19769,7 +19843,7 @@ var useColumns$1 = (function (form) {
|
|
|
19769
19843
|
}
|
|
19770
19844
|
}
|
|
19771
19845
|
}, {
|
|
19772
|
-
title:
|
|
19846
|
+
title: React.createElement(TitleText$1, {
|
|
19773
19847
|
rules: (_columnsReplenish$pri = columnsReplenish['priceIncludeTax']) === null || _columnsReplenish$pri === void 0 ? void 0 : _columnsReplenish$pri.rules
|
|
19774
19848
|
}, "\u5355\u4EF7(\u542B\u7A0E)"),
|
|
19775
19849
|
dataIndex: 'priceIncludeTax',
|
|
@@ -19778,7 +19852,7 @@ var useColumns$1 = (function (form) {
|
|
|
19778
19852
|
width: 149,
|
|
19779
19853
|
render: function render(value, record) {
|
|
19780
19854
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
19781
|
-
return
|
|
19855
|
+
return React.createElement(Form.Item, null, getFieldDecorator('priceIncludeTax', {
|
|
19782
19856
|
initialValue: editGood.priceIncludeTax,
|
|
19783
19857
|
getValueFromEvent: onNumberValueChange,
|
|
19784
19858
|
rules: [].concat(_toConsumableArray(getReplenishRules('priceIncludeTax')), [{
|
|
@@ -19824,7 +19898,7 @@ var useColumns$1 = (function (form) {
|
|
|
19824
19898
|
return validator;
|
|
19825
19899
|
}()
|
|
19826
19900
|
}])
|
|
19827
|
-
})(
|
|
19901
|
+
})(React.createElement(MyInput$2, {
|
|
19828
19902
|
style: {
|
|
19829
19903
|
textAlign: 'right'
|
|
19830
19904
|
},
|
|
@@ -19836,7 +19910,7 @@ var useColumns$1 = (function (form) {
|
|
|
19836
19910
|
}
|
|
19837
19911
|
})));
|
|
19838
19912
|
} else {
|
|
19839
|
-
return
|
|
19913
|
+
return React.createElement("span", {
|
|
19840
19914
|
style: {
|
|
19841
19915
|
padding: '0 10px'
|
|
19842
19916
|
}
|
|
@@ -19844,7 +19918,7 @@ var useColumns$1 = (function (form) {
|
|
|
19844
19918
|
}
|
|
19845
19919
|
}
|
|
19846
19920
|
}, {
|
|
19847
|
-
title:
|
|
19921
|
+
title: React.createElement(TitleText$1, {
|
|
19848
19922
|
rules: (_columnsReplenish$pri2 = columnsReplenish['priceExcludeTax']) === null || _columnsReplenish$pri2 === void 0 ? void 0 : _columnsReplenish$pri2.rules
|
|
19849
19923
|
}, "\u5355\u4EF7(\u4E0D\u542B\u7A0E)"),
|
|
19850
19924
|
dataIndex: 'priceExcludeTax',
|
|
@@ -19853,7 +19927,7 @@ var useColumns$1 = (function (form) {
|
|
|
19853
19927
|
width: 149,
|
|
19854
19928
|
render: function render(value, record) {
|
|
19855
19929
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
19856
|
-
return
|
|
19930
|
+
return React.createElement(Form.Item, null, getFieldDecorator('priceExcludeTax', {
|
|
19857
19931
|
initialValue: editGood.priceExcludeTax,
|
|
19858
19932
|
getValueFromEvent: onNumberValueChange,
|
|
19859
19933
|
rules: [].concat(_toConsumableArray(getReplenishRules('priceExcludeTax')), [{
|
|
@@ -19899,7 +19973,7 @@ var useColumns$1 = (function (form) {
|
|
|
19899
19973
|
return validator;
|
|
19900
19974
|
}()
|
|
19901
19975
|
}])
|
|
19902
|
-
})(
|
|
19976
|
+
})(React.createElement(MyInput$2, {
|
|
19903
19977
|
style: {
|
|
19904
19978
|
textAlign: 'right'
|
|
19905
19979
|
},
|
|
@@ -19911,7 +19985,7 @@ var useColumns$1 = (function (form) {
|
|
|
19911
19985
|
}
|
|
19912
19986
|
})));
|
|
19913
19987
|
} else {
|
|
19914
|
-
return
|
|
19988
|
+
return React.createElement("span", {
|
|
19915
19989
|
style: {
|
|
19916
19990
|
padding: '0 10px'
|
|
19917
19991
|
}
|
|
@@ -19919,7 +19993,7 @@ var useColumns$1 = (function (form) {
|
|
|
19919
19993
|
}
|
|
19920
19994
|
}
|
|
19921
19995
|
}, {
|
|
19922
|
-
title:
|
|
19996
|
+
title: React.createElement(TitleText$1, {
|
|
19923
19997
|
required: true
|
|
19924
19998
|
}, "\u91D1\u989D(\u542B\u7A0E)"),
|
|
19925
19999
|
dataIndex: 'lineAmountIncludeTax',
|
|
@@ -19928,7 +20002,7 @@ var useColumns$1 = (function (form) {
|
|
|
19928
20002
|
align: 'right',
|
|
19929
20003
|
render: function render(value, record) {
|
|
19930
20004
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
19931
|
-
return
|
|
20005
|
+
return React.createElement(Form.Item, null, getFieldDecorator('lineAmountIncludeTax', {
|
|
19932
20006
|
initialValue: editGood.lineAmountIncludeTax,
|
|
19933
20007
|
getValueFromEvent: onNumberValueChange,
|
|
19934
20008
|
rules: [].concat(_toConsumableArray(getReplenishRules('lineAmountIncludeTax')), [{
|
|
@@ -19988,7 +20062,7 @@ var useColumns$1 = (function (form) {
|
|
|
19988
20062
|
return validator;
|
|
19989
20063
|
}()
|
|
19990
20064
|
}])
|
|
19991
|
-
})(
|
|
20065
|
+
})(React.createElement(MyInput$2, {
|
|
19992
20066
|
style: {
|
|
19993
20067
|
textAlign: 'right'
|
|
19994
20068
|
},
|
|
@@ -19999,7 +20073,7 @@ var useColumns$1 = (function (form) {
|
|
|
19999
20073
|
}
|
|
20000
20074
|
})));
|
|
20001
20075
|
} else {
|
|
20002
|
-
return
|
|
20076
|
+
return React.createElement("span", {
|
|
20003
20077
|
style: {
|
|
20004
20078
|
padding: '0 10px'
|
|
20005
20079
|
}
|
|
@@ -20007,7 +20081,7 @@ var useColumns$1 = (function (form) {
|
|
|
20007
20081
|
}
|
|
20008
20082
|
}
|
|
20009
20083
|
}, {
|
|
20010
|
-
title:
|
|
20084
|
+
title: React.createElement(TitleText$1, {
|
|
20011
20085
|
required: true
|
|
20012
20086
|
}, "\u91D1\u989D(\u4E0D\u542B\u7A0E)"),
|
|
20013
20087
|
dataIndex: 'lineAmountExcludeTax',
|
|
@@ -20016,7 +20090,7 @@ var useColumns$1 = (function (form) {
|
|
|
20016
20090
|
width: 119,
|
|
20017
20091
|
render: function render(value, record) {
|
|
20018
20092
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
20019
|
-
return
|
|
20093
|
+
return React.createElement(Form.Item, null, getFieldDecorator('lineAmountExcludeTax', {
|
|
20020
20094
|
initialValue: editGood.lineAmountExcludeTax,
|
|
20021
20095
|
getValueFromEvent: onNumberValueChange,
|
|
20022
20096
|
rules: [].concat(_toConsumableArray(getReplenishRules('lineAmountExcludeTax')), [{
|
|
@@ -20051,7 +20125,7 @@ var useColumns$1 = (function (form) {
|
|
|
20051
20125
|
return validator;
|
|
20052
20126
|
}()
|
|
20053
20127
|
}])
|
|
20054
|
-
})(
|
|
20128
|
+
})(React.createElement(MyInput$2, {
|
|
20055
20129
|
style: {
|
|
20056
20130
|
textAlign: 'right'
|
|
20057
20131
|
},
|
|
@@ -20062,7 +20136,7 @@ var useColumns$1 = (function (form) {
|
|
|
20062
20136
|
}
|
|
20063
20137
|
})));
|
|
20064
20138
|
} else {
|
|
20065
|
-
return
|
|
20139
|
+
return React.createElement("span", {
|
|
20066
20140
|
style: {
|
|
20067
20141
|
padding: '0 10px'
|
|
20068
20142
|
}
|
|
@@ -20070,7 +20144,7 @@ var useColumns$1 = (function (form) {
|
|
|
20070
20144
|
}
|
|
20071
20145
|
}
|
|
20072
20146
|
}, {
|
|
20073
|
-
title:
|
|
20147
|
+
title: React.createElement(TitleText$1, {
|
|
20074
20148
|
required: true
|
|
20075
20149
|
}, "\u7A0E\u7387%"),
|
|
20076
20150
|
dataIndex: 'taxRate',
|
|
@@ -20079,7 +20153,7 @@ var useColumns$1 = (function (form) {
|
|
|
20079
20153
|
width: 70,
|
|
20080
20154
|
render: function render(value, record) {
|
|
20081
20155
|
if ((editGood === null || editGood === void 0 ? void 0 : editGood.$index) === record.$index) {
|
|
20082
|
-
return
|
|
20156
|
+
return React.createElement(Form.Item, null, getFieldDecorator('taxRate', {
|
|
20083
20157
|
initialValue: editGood.taxRate,
|
|
20084
20158
|
rules: [].concat(_toConsumableArray(getReplenishRules('taxRate')), [{
|
|
20085
20159
|
required: true,
|
|
@@ -20088,7 +20162,7 @@ var useColumns$1 = (function (form) {
|
|
|
20088
20162
|
pattern: /^[+-]?(0|([1-9]\d*))(\.\d+)?$/,
|
|
20089
20163
|
message: ' '
|
|
20090
20164
|
}])
|
|
20091
|
-
})(
|
|
20165
|
+
})(React.createElement(Select$1, {
|
|
20092
20166
|
className: "kts-invoice-operate-goods-list-table-tax-rate",
|
|
20093
20167
|
// dropdownMenuStyle={{ textAlign: "right" }}
|
|
20094
20168
|
showArrow: false,
|
|
@@ -20100,13 +20174,13 @@ var useColumns$1 = (function (form) {
|
|
|
20100
20174
|
onChangeTaxRate$1(controller, form, record);
|
|
20101
20175
|
}
|
|
20102
20176
|
}, taxRateList.map(function (e, i) {
|
|
20103
|
-
return
|
|
20177
|
+
return React.createElement(Select$1.Option, {
|
|
20104
20178
|
key: i,
|
|
20105
20179
|
value: e
|
|
20106
20180
|
}, e, "%");
|
|
20107
20181
|
}))));
|
|
20108
20182
|
} else {
|
|
20109
|
-
return
|
|
20183
|
+
return React.createElement("span", {
|
|
20110
20184
|
style: {
|
|
20111
20185
|
padding: '0 10px'
|
|
20112
20186
|
}
|
|
@@ -20114,7 +20188,7 @@ var useColumns$1 = (function (form) {
|
|
|
20114
20188
|
}
|
|
20115
20189
|
}
|
|
20116
20190
|
}, {
|
|
20117
|
-
title:
|
|
20191
|
+
title: React.createElement(TitleText$1, {
|
|
20118
20192
|
rules: (_columnsReplenish$tax = columnsReplenish['taxAmount']) === null || _columnsReplenish$tax === void 0 ? void 0 : _columnsReplenish$tax.rules
|
|
20119
20193
|
}, "\u7A0E\u989D"),
|
|
20120
20194
|
dataIndex: 'taxAmount',
|
|
@@ -20126,11 +20200,11 @@ var useColumns$1 = (function (form) {
|
|
|
20126
20200
|
return getFieldDecorator('taxAmount', {
|
|
20127
20201
|
initialValue: editGood.taxAmount,
|
|
20128
20202
|
rules: getReplenishRules('taxAmount')
|
|
20129
|
-
})(
|
|
20203
|
+
})(React.createElement(MyDiv$2, {
|
|
20130
20204
|
loading: isCipher$1(changeField, 'taxAmount')
|
|
20131
20205
|
}));
|
|
20132
20206
|
} else {
|
|
20133
|
-
return
|
|
20207
|
+
return React.createElement("span", {
|
|
20134
20208
|
style: {
|
|
20135
20209
|
padding: '0 10px'
|
|
20136
20210
|
}
|
|
@@ -20197,13 +20271,13 @@ var MyInput$2 = /*#__PURE__*/function (_React$Component) {
|
|
|
20197
20271
|
key: "render",
|
|
20198
20272
|
value: function render() {
|
|
20199
20273
|
if (this.props.loading) {
|
|
20200
|
-
return
|
|
20274
|
+
return React.createElement(Spin$1, {
|
|
20201
20275
|
size: "small"
|
|
20202
|
-
},
|
|
20276
|
+
}, React.createElement(Input$1, _objectSpread2(_objectSpread2({}, this.props), {}, {
|
|
20203
20277
|
autoComplete: "off"
|
|
20204
20278
|
})));
|
|
20205
20279
|
} else {
|
|
20206
|
-
return
|
|
20280
|
+
return React.createElement(Input$1, _objectSpread2(_objectSpread2({}, this.props), {}, {
|
|
20207
20281
|
autoComplete: "off"
|
|
20208
20282
|
}));
|
|
20209
20283
|
}
|
|
@@ -20228,15 +20302,15 @@ var MyDiv$2 = /*#__PURE__*/function (_React$Component2) {
|
|
|
20228
20302
|
key: "render",
|
|
20229
20303
|
value: function render() {
|
|
20230
20304
|
if (this.props.loading) {
|
|
20231
|
-
return
|
|
20305
|
+
return React.createElement(Spin$1, {
|
|
20232
20306
|
size: "small"
|
|
20233
|
-
},
|
|
20307
|
+
}, React.createElement("span", {
|
|
20234
20308
|
style: {
|
|
20235
20309
|
padding: '0 10px'
|
|
20236
20310
|
}
|
|
20237
20311
|
}, this.props.value));
|
|
20238
20312
|
} else {
|
|
20239
|
-
return
|
|
20313
|
+
return React.createElement("span", {
|
|
20240
20314
|
style: {
|
|
20241
20315
|
padding: '0 10px'
|
|
20242
20316
|
}
|
|
@@ -20269,18 +20343,18 @@ var MyItemNameDiv$1 = /*#__PURE__*/function (_React$Component3) {
|
|
|
20269
20343
|
|
|
20270
20344
|
if (isMyShow) {
|
|
20271
20345
|
if (valueT) {
|
|
20272
|
-
return
|
|
20346
|
+
return React.createElement(Tooltip$1, {
|
|
20273
20347
|
title: valueT
|
|
20274
|
-
},
|
|
20348
|
+
}, React.createElement("span", {
|
|
20275
20349
|
style: {
|
|
20276
20350
|
padding: '0 10px',
|
|
20277
20351
|
color: '#0074ff'
|
|
20278
20352
|
}
|
|
20279
20353
|
}, valueT));
|
|
20280
20354
|
} else {
|
|
20281
|
-
return
|
|
20355
|
+
return React.createElement(Tooltip$1, {
|
|
20282
20356
|
title: valueF
|
|
20283
|
-
},
|
|
20357
|
+
}, React.createElement("span", {
|
|
20284
20358
|
style: {
|
|
20285
20359
|
padding: '0 10px'
|
|
20286
20360
|
}
|
|
@@ -20288,17 +20362,17 @@ var MyItemNameDiv$1 = /*#__PURE__*/function (_React$Component3) {
|
|
|
20288
20362
|
}
|
|
20289
20363
|
} else {
|
|
20290
20364
|
if (valueF) {
|
|
20291
|
-
return
|
|
20365
|
+
return React.createElement(Tooltip$1, {
|
|
20292
20366
|
title: valueF
|
|
20293
|
-
},
|
|
20367
|
+
}, React.createElement("span", {
|
|
20294
20368
|
style: {
|
|
20295
20369
|
padding: '0 10px'
|
|
20296
20370
|
}
|
|
20297
20371
|
}, valueF));
|
|
20298
20372
|
} else {
|
|
20299
|
-
return
|
|
20373
|
+
return React.createElement(Tooltip$1, {
|
|
20300
20374
|
title: valueT
|
|
20301
|
-
},
|
|
20375
|
+
}, React.createElement("span", {
|
|
20302
20376
|
style: {
|
|
20303
20377
|
padding: '0 10px',
|
|
20304
20378
|
color: '#0074ff'
|
|
@@ -20321,7 +20395,7 @@ function formatSearch$1(value, search) {
|
|
|
20321
20395
|
return dcoding$1(e);
|
|
20322
20396
|
}).join("<span class=\"kts-invoice-operate-goods-list-table-search-protrude\" >".concat(search, "</span>"));
|
|
20323
20397
|
|
|
20324
|
-
return
|
|
20398
|
+
return React.createElement("span", {
|
|
20325
20399
|
dangerouslySetInnerHTML: {
|
|
20326
20400
|
__html: __html
|
|
20327
20401
|
}
|
|
@@ -20700,7 +20774,7 @@ var useRowSelection$1 = (function () {
|
|
|
20700
20774
|
};
|
|
20701
20775
|
}(), [controller]);
|
|
20702
20776
|
var columnTitle = React.useMemo(function () {
|
|
20703
|
-
return
|
|
20777
|
+
return React.createElement(Checkbox, {
|
|
20704
20778
|
onChange: onClickSelectAll,
|
|
20705
20779
|
indeterminate: indeterminate,
|
|
20706
20780
|
checked: isAll
|
|
@@ -20849,19 +20923,19 @@ var useDelRowButton$1 = (function () {
|
|
|
20849
20923
|
}, _callee2);
|
|
20850
20924
|
})), []);
|
|
20851
20925
|
var menuItem = React.useMemo(function () {
|
|
20852
|
-
if (model === 'prefab') return
|
|
20853
|
-
if (model === 'readOnly') return
|
|
20854
|
-
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, {
|
|
20855
20929
|
key: "1",
|
|
20856
20930
|
onClick: onClick,
|
|
20857
20931
|
disabled: disabled
|
|
20858
20932
|
}, " \u5220\u9664\u884C ");
|
|
20859
20933
|
}, [model, onClick, disabled]);
|
|
20860
20934
|
var button = React.useMemo(function () {
|
|
20861
|
-
if (isRemRow === false) return
|
|
20862
|
-
if (model === 'prefab') return
|
|
20863
|
-
if (model === 'readOnly') return
|
|
20864
|
-
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, {
|
|
20865
20939
|
size: 'small',
|
|
20866
20940
|
onClick: onClick,
|
|
20867
20941
|
disabled: disabled
|
|
@@ -21092,16 +21166,16 @@ var useAddDiscountRowButton$1 = (function () {
|
|
|
21092
21166
|
}, [isAddDiscount, model]);
|
|
21093
21167
|
var button = React.useMemo(function () {
|
|
21094
21168
|
if (isEnable) {
|
|
21095
|
-
return
|
|
21169
|
+
return React.createElement(React.Fragment, null, React.createElement(Button$1, {
|
|
21096
21170
|
size: 'small',
|
|
21097
21171
|
onClick: onOpen,
|
|
21098
21172
|
disabled: disabled
|
|
21099
|
-
}, "\u6DFB\u52A0\u6298\u6263"),
|
|
21173
|
+
}, "\u6DFB\u52A0\u6298\u6263"), React.createElement(AddDiscountRowDrawer, {
|
|
21100
21174
|
open: open,
|
|
21101
21175
|
onClose: onClose
|
|
21102
21176
|
}));
|
|
21103
21177
|
} else {
|
|
21104
|
-
return
|
|
21178
|
+
return React.createElement(React.Fragment, null);
|
|
21105
21179
|
}
|
|
21106
21180
|
}, [open, onOpen, onClose, isEnable, disabled]);
|
|
21107
21181
|
return {
|
|
@@ -21282,35 +21356,35 @@ function AddDiscountRowDrawer(props) {
|
|
|
21282
21356
|
discolineValue: undefined
|
|
21283
21357
|
}));
|
|
21284
21358
|
}, [formValues === null || formValues === void 0 ? void 0 : formValues.discolineType]);
|
|
21285
|
-
return
|
|
21359
|
+
return React.createElement(Drawer$1, {
|
|
21286
21360
|
title: "\u6DFB\u52A0\u6298\u6263",
|
|
21287
21361
|
placement: "right",
|
|
21288
21362
|
width: 350,
|
|
21289
21363
|
onClose: onClose,
|
|
21290
21364
|
open: open,
|
|
21291
|
-
footer:
|
|
21365
|
+
footer: React.createElement(Space, {
|
|
21292
21366
|
size: "middle",
|
|
21293
21367
|
style: {
|
|
21294
21368
|
display: 'flex',
|
|
21295
21369
|
justifyContent: 'end'
|
|
21296
21370
|
}
|
|
21297
|
-
},
|
|
21371
|
+
}, React.createElement(Button$1, {
|
|
21298
21372
|
onClick: onDefine,
|
|
21299
21373
|
type: 'primary'
|
|
21300
|
-
}, "\u786E\u5B9A"),
|
|
21374
|
+
}, "\u786E\u5B9A"), React.createElement(Button$1, {
|
|
21301
21375
|
onClick: onClose
|
|
21302
21376
|
}, "\u53D6\u6D88"))
|
|
21303
|
-
},
|
|
21377
|
+
}, React.createElement(Form$1, {
|
|
21304
21378
|
form: form,
|
|
21305
21379
|
layout: 'vertical',
|
|
21306
21380
|
onChange: onChangeForm
|
|
21307
|
-
},
|
|
21381
|
+
}, React.createElement(Form$1.Item, {
|
|
21308
21382
|
label: "\u5546\u54C1\u91D1\u989D\uFF08\u542B\u7A0E\uFF09"
|
|
21309
|
-
}, totalAmount.toFixed(2), "\uFF08\u5171 ", discountGood.length, " \u884C\uFF09"),
|
|
21383
|
+
}, totalAmount.toFixed(2), "\uFF08\u5171 ", discountGood.length, " \u884C\uFF09"), React.createElement(Form$1.Item, {
|
|
21310
21384
|
label: "\u6298\u6263\u65B9\u5F0F",
|
|
21311
21385
|
name: 'discolineType',
|
|
21312
21386
|
initialValue: '1'
|
|
21313
|
-
},
|
|
21387
|
+
}, React.createElement(Radio.Group, {
|
|
21314
21388
|
options: [{
|
|
21315
21389
|
label: '按金额折扣',
|
|
21316
21390
|
value: '1'
|
|
@@ -21318,7 +21392,7 @@ function AddDiscountRowDrawer(props) {
|
|
|
21318
21392
|
label: '按比例折扣',
|
|
21319
21393
|
value: '2'
|
|
21320
21394
|
}]
|
|
21321
|
-
})), (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, {
|
|
21322
21396
|
label: "\u6298\u6263\u91D1\u989D\uFF08\u5143\uFF09\uFF08\u542B\u7A0E\uFF09",
|
|
21323
21397
|
name: 'discolineValue',
|
|
21324
21398
|
rules: [{
|
|
@@ -21369,11 +21443,11 @@ function AddDiscountRowDrawer(props) {
|
|
|
21369
21443
|
return validator;
|
|
21370
21444
|
}()
|
|
21371
21445
|
}]
|
|
21372
|
-
},
|
|
21446
|
+
}, React.createElement(InputNumber, {
|
|
21373
21447
|
style: {
|
|
21374
21448
|
width: '100%'
|
|
21375
21449
|
}
|
|
21376
|
-
})) :
|
|
21450
|
+
})) : React.createElement(Form$1.Item, {
|
|
21377
21451
|
label: "\u6298\u6263\u6BD4\u4F8B\uFF08%\uFF09\uFF08\u542B\u7A0E\uFF09",
|
|
21378
21452
|
name: 'discolineValue',
|
|
21379
21453
|
rules: [{
|
|
@@ -21424,7 +21498,7 @@ function AddDiscountRowDrawer(props) {
|
|
|
21424
21498
|
return validator;
|
|
21425
21499
|
}()
|
|
21426
21500
|
}]
|
|
21427
|
-
},
|
|
21501
|
+
}, React.createElement(InputNumber, {
|
|
21428
21502
|
style: {
|
|
21429
21503
|
width: '100%'
|
|
21430
21504
|
}
|
|
@@ -21568,16 +21642,16 @@ var useEndowCodeButton$1 = (function () {
|
|
|
21568
21642
|
}, _callee2);
|
|
21569
21643
|
})), [controller]);
|
|
21570
21644
|
var menuItem = React.useMemo(function () {
|
|
21571
|
-
if (model === 'readOnly') return
|
|
21572
|
-
return
|
|
21645
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
21646
|
+
return React.createElement(Menu$1.Item, {
|
|
21573
21647
|
key: "2",
|
|
21574
21648
|
onClick: onClick,
|
|
21575
21649
|
disabled: disabled
|
|
21576
21650
|
}, "\u6279\u91CF\u8D4B\u7801");
|
|
21577
21651
|
}, [onClick, disabled, model]);
|
|
21578
21652
|
var button = React.useMemo(function () {
|
|
21579
|
-
if (model === 'readOnly') return
|
|
21580
|
-
return
|
|
21653
|
+
if (model === 'readOnly') return React.createElement(React.Fragment, null);
|
|
21654
|
+
return React.createElement(Button$1, {
|
|
21581
21655
|
onClick: onClick,
|
|
21582
21656
|
disabled: disabled,
|
|
21583
21657
|
size: 'small'
|
|
@@ -21637,14 +21711,14 @@ var useEmptyRefill = (function () {
|
|
|
21637
21711
|
}());
|
|
21638
21712
|
}, [controller]);
|
|
21639
21713
|
var button = React.useMemo(function () {
|
|
21640
|
-
if (model === 'readOnly') return
|
|
21641
|
-
if (model === 'prefab') return
|
|
21642
|
-
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, {
|
|
21643
21717
|
title: "\u5C06\u8981\u6E05\u7A7A\u6240\u6709\u9879\u76EE\u4FE1\u606F\uFF0C\u662F\u5426\u7EE7\u7EED",
|
|
21644
21718
|
onConfirm: confirm,
|
|
21645
21719
|
okText: "\u786E\u5B9A",
|
|
21646
21720
|
cancelText: "\u53D6\u6D88"
|
|
21647
|
-
},
|
|
21721
|
+
}, React.createElement(Button$1, {
|
|
21648
21722
|
size: 'small'
|
|
21649
21723
|
}, "\u6E05\u7A7A\u91CD\u586B"));
|
|
21650
21724
|
}, [model, confirm]);
|
|
@@ -21711,14 +21785,14 @@ function InvoiceTypeModal(props) {
|
|
|
21711
21785
|
setValues(values);
|
|
21712
21786
|
}
|
|
21713
21787
|
}, [props.open, props.defaultBillingType, props.defaultBusiness, props.defaultInvoiceType, form]);
|
|
21714
|
-
return
|
|
21788
|
+
return React.createElement(Modal, {
|
|
21715
21789
|
title: props.modalTitle || "选择开具信息",
|
|
21716
21790
|
open: props.open,
|
|
21717
21791
|
onOk: onConfirm,
|
|
21718
21792
|
onCancel: props.onCancel,
|
|
21719
21793
|
okText: "\u786E\u5B9A",
|
|
21720
21794
|
cancelText: "\u53D6\u6D88"
|
|
21721
|
-
},
|
|
21795
|
+
}, React.createElement(Form$1, {
|
|
21722
21796
|
form: form,
|
|
21723
21797
|
layout: "vertical",
|
|
21724
21798
|
style: {
|
|
@@ -21727,13 +21801,13 @@ function InvoiceTypeModal(props) {
|
|
|
21727
21801
|
onValuesChange: function onValuesChange(_, e) {
|
|
21728
21802
|
setValues(e);
|
|
21729
21803
|
}
|
|
21730
|
-
},
|
|
21804
|
+
}, React.createElement(Row, {
|
|
21731
21805
|
gutter: [16, 16]
|
|
21732
|
-
},
|
|
21806
|
+
}, React.createElement(Col, {
|
|
21733
21807
|
span: 24
|
|
21734
|
-
},
|
|
21808
|
+
}, React.createElement(Form$1.Item, {
|
|
21735
21809
|
name: 'billingType'
|
|
21736
|
-
},
|
|
21810
|
+
}, React.createElement(Radio.Group, {
|
|
21737
21811
|
size: 'large',
|
|
21738
21812
|
className: "goods-list-digtal-reselect-invoice-typeModal-radio",
|
|
21739
21813
|
optionType: "button",
|
|
@@ -21746,27 +21820,27 @@ function InvoiceTypeModal(props) {
|
|
|
21746
21820
|
label: '税控发票',
|
|
21747
21821
|
value: 'taxation'
|
|
21748
21822
|
}]
|
|
21749
|
-
}))),
|
|
21823
|
+
}))), React.createElement(Col, {
|
|
21750
21824
|
span: 12
|
|
21751
|
-
},
|
|
21825
|
+
}, React.createElement(Form$1.Item, {
|
|
21752
21826
|
name: 'invoiceType',
|
|
21753
21827
|
label: "\u9009\u62E9\u7968\u7C7B",
|
|
21754
21828
|
rules: [{
|
|
21755
21829
|
required: true,
|
|
21756
21830
|
message: '选择票类必填'
|
|
21757
21831
|
}]
|
|
21758
|
-
},
|
|
21832
|
+
}, React.createElement(Select$1, {
|
|
21759
21833
|
size: 'large',
|
|
21760
21834
|
allowClear: true,
|
|
21761
21835
|
placeholder: "\u8BF7\u9009\u62E9\uFF08\u5FC5\u586B\u9879\uFF09",
|
|
21762
21836
|
disabled: disableds.indexOf('invoiceType') >= 0,
|
|
21763
21837
|
options: props.invoiceTypeOptions
|
|
21764
|
-
}))),
|
|
21838
|
+
}))), React.createElement(Col, {
|
|
21765
21839
|
span: 12
|
|
21766
|
-
},
|
|
21840
|
+
}, React.createElement(Form$1.Item, {
|
|
21767
21841
|
name: 'business',
|
|
21768
21842
|
label: "\u7279\u5B9A\u4E1A\u52A1"
|
|
21769
|
-
},
|
|
21843
|
+
}, React.createElement(Select$1, {
|
|
21770
21844
|
size: 'large',
|
|
21771
21845
|
allowClear: true,
|
|
21772
21846
|
placeholder: "\u8BF7\u9009\u62E9\uFF08\u975E\u5FC5\u586B\u9879\uFF09",
|
|
@@ -21811,11 +21885,11 @@ var useReselectInvoiceType = (function () {
|
|
|
21811
21885
|
return true;
|
|
21812
21886
|
}, [model, typeModalProps === null || typeModalProps === void 0 ? void 0 : typeModalProps.isDisabled]);
|
|
21813
21887
|
var button = React.useMemo(function () {
|
|
21814
|
-
if (isEnable === false) return
|
|
21815
|
-
return
|
|
21888
|
+
if (isEnable === false) return React.createElement(React.Fragment, null);
|
|
21889
|
+
return React.createElement(React.Fragment, null, React.createElement(Button$1, {
|
|
21816
21890
|
size: 'small',
|
|
21817
21891
|
onClick: onOpen
|
|
21818
|
-
}, "\u91CD\u9009\u53D1\u7968\u7C7B\u578B"),
|
|
21892
|
+
}, "\u91CD\u9009\u53D1\u7968\u7C7B\u578B"), React.createElement(InvoiceTypeModal, _objectSpread2(_objectSpread2({}, typeModalProps), {}, {
|
|
21819
21893
|
open: open,
|
|
21820
21894
|
onCancel: onClose,
|
|
21821
21895
|
onOk: onOk
|
|
@@ -21843,7 +21917,7 @@ var GoodsList$1 = /*#__PURE__*/function (_React$Component) {
|
|
|
21843
21917
|
_createClass(GoodsList, [{
|
|
21844
21918
|
key: "render",
|
|
21845
21919
|
value: function render() {
|
|
21846
|
-
return
|
|
21920
|
+
return React.createElement(Main$3, _objectSpread2({}, this.props));
|
|
21847
21921
|
}
|
|
21848
21922
|
}]);
|
|
21849
21923
|
|
|
@@ -22044,20 +22118,20 @@ var Main$3 = decorator(Form.create())(function (props) {
|
|
|
22044
22118
|
};
|
|
22045
22119
|
}())();
|
|
22046
22120
|
}, [controller, props.isSwitchTax]);
|
|
22047
|
-
return
|
|
22121
|
+
return React.createElement("div", {
|
|
22048
22122
|
className: "kts-invoice-operate-goods-list-digtal",
|
|
22049
22123
|
onClick: function onClick(e) {
|
|
22050
22124
|
e.stopPropagation();
|
|
22051
22125
|
}
|
|
22052
|
-
},
|
|
22126
|
+
}, React.createElement("div", {
|
|
22053
22127
|
className: "kts-invoice-operate-goods-list-able"
|
|
22054
|
-
},
|
|
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", {
|
|
22055
22129
|
style: {
|
|
22056
22130
|
flex: 1
|
|
22057
22131
|
}
|
|
22058
|
-
}), props.menuExpansion, reselectInvoiceType.button, emptyRefill.button),
|
|
22132
|
+
}), props.menuExpansion, reselectInvoiceType.button, emptyRefill.button), React.createElement("div", {
|
|
22059
22133
|
className: classNames('kts-invoice-operate-goods-list-table-digtal')
|
|
22060
|
-
},
|
|
22134
|
+
}, React.createElement(TableVirtual$1, {
|
|
22061
22135
|
size: "small",
|
|
22062
22136
|
rowKey: "$index",
|
|
22063
22137
|
pagination: false,
|
|
@@ -22079,7 +22153,7 @@ var Main$3 = decorator(Form.create())(function (props) {
|
|
|
22079
22153
|
}
|
|
22080
22154
|
};
|
|
22081
22155
|
}
|
|
22082
|
-
})),
|
|
22156
|
+
})), React.createElement("div", null, React.createElement(Statistics$1, null)));
|
|
22083
22157
|
});
|
|
22084
22158
|
|
|
22085
22159
|
var ImportBuyerDrawer = (function () {
|
|
@@ -22113,7 +22187,7 @@ var ImportBuyerDrawer = (function () {
|
|
|
22113
22187
|
};
|
|
22114
22188
|
}())();
|
|
22115
22189
|
}, [controller]);
|
|
22116
|
-
return
|
|
22190
|
+
return React.createElement(Drawer, {
|
|
22117
22191
|
title: "\u8D2D\u65B9\u5217\u8868",
|
|
22118
22192
|
placement: "right",
|
|
22119
22193
|
// closable={false}
|
|
@@ -22121,7 +22195,7 @@ var ImportBuyerDrawer = (function () {
|
|
|
22121
22195
|
width: 983,
|
|
22122
22196
|
onClose: onClose,
|
|
22123
22197
|
visible: visible
|
|
22124
|
-
}, topExpand,
|
|
22198
|
+
}, topExpand, React.createElement(DrawerBody$1, null));
|
|
22125
22199
|
});
|
|
22126
22200
|
|
|
22127
22201
|
var DrawerBody$1 = function DrawerBody() {
|
|
@@ -22142,7 +22216,7 @@ var DrawerBody$1 = function DrawerBody() {
|
|
|
22142
22216
|
}
|
|
22143
22217
|
});
|
|
22144
22218
|
}, [controller]);
|
|
22145
|
-
return
|
|
22219
|
+
return React.createElement(Table$1, {
|
|
22146
22220
|
bordered: true,
|
|
22147
22221
|
size: "small",
|
|
22148
22222
|
columns: columns,
|
|
@@ -22242,7 +22316,7 @@ var ImportGoodsDrawer = (function () {
|
|
|
22242
22316
|
};
|
|
22243
22317
|
}())();
|
|
22244
22318
|
}, [controller]);
|
|
22245
|
-
return
|
|
22319
|
+
return React.createElement(Drawer, {
|
|
22246
22320
|
title: "\u5546\u54C1\u5217\u8868",
|
|
22247
22321
|
placement: "right",
|
|
22248
22322
|
// closable={false}
|
|
@@ -22250,11 +22324,11 @@ var ImportGoodsDrawer = (function () {
|
|
|
22250
22324
|
width: 983,
|
|
22251
22325
|
onClose: onClose,
|
|
22252
22326
|
visible: visible
|
|
22253
|
-
}, topExpand &&
|
|
22327
|
+
}, topExpand && React.createElement("div", {
|
|
22254
22328
|
style: {
|
|
22255
22329
|
marginBottom: 10
|
|
22256
22330
|
}
|
|
22257
|
-
}, topExpand),
|
|
22331
|
+
}, topExpand), React.createElement(DrawerBody$2, null));
|
|
22258
22332
|
});
|
|
22259
22333
|
|
|
22260
22334
|
var DrawerBody$2 = function DrawerBody() {
|
|
@@ -22276,7 +22350,7 @@ var DrawerBody$2 = function DrawerBody() {
|
|
|
22276
22350
|
}
|
|
22277
22351
|
});
|
|
22278
22352
|
}, [controller]);
|
|
22279
|
-
return
|
|
22353
|
+
return React.createElement(Table$1, {
|
|
22280
22354
|
bordered: true,
|
|
22281
22355
|
size: "small",
|
|
22282
22356
|
columns: columns,
|
|
@@ -22568,7 +22642,7 @@ var EndowCodeDrawer = (function () {
|
|
|
22568
22642
|
setDefaultValue(undefined);
|
|
22569
22643
|
}
|
|
22570
22644
|
}, [visible]);
|
|
22571
|
-
return
|
|
22645
|
+
return React.createElement(Drawer, {
|
|
22572
22646
|
title: "\u8D4B\u7801",
|
|
22573
22647
|
placement: "right",
|
|
22574
22648
|
destroyOnClose: true,
|
|
@@ -22576,7 +22650,7 @@ var EndowCodeDrawer = (function () {
|
|
|
22576
22650
|
width: 383,
|
|
22577
22651
|
onClose: onClose,
|
|
22578
22652
|
visible: visible
|
|
22579
|
-
}, defaultValue &&
|
|
22653
|
+
}, defaultValue && React.createElement(DrawerBody$3, {
|
|
22580
22654
|
defaultValue: defaultValue
|
|
22581
22655
|
}));
|
|
22582
22656
|
});
|
|
@@ -22733,7 +22807,7 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
22733
22807
|
};
|
|
22734
22808
|
}());
|
|
22735
22809
|
}, [actions, dataSource, readOnlyTaxRate]);
|
|
22736
|
-
return
|
|
22810
|
+
return React.createElement(Select, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
22737
22811
|
showSearch: true,
|
|
22738
22812
|
showArrow: false,
|
|
22739
22813
|
notFoundContent: null,
|
|
@@ -22741,7 +22815,7 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
22741
22815
|
onSearch: onSearch,
|
|
22742
22816
|
onChange: onChange
|
|
22743
22817
|
}), dataSource.map(function (e) {
|
|
22744
|
-
return
|
|
22818
|
+
return React.createElement(Select.Option, {
|
|
22745
22819
|
key: e.value,
|
|
22746
22820
|
value: e.value
|
|
22747
22821
|
}, e.label);
|
|
@@ -22771,14 +22845,14 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
22771
22845
|
|
|
22772
22846
|
|
|
22773
22847
|
var createTreeNode = React.useCallback(function () {
|
|
22774
|
-
if (!list) return
|
|
22848
|
+
if (!list) return React.createElement(React.Fragment, null);
|
|
22775
22849
|
return ctn(list);
|
|
22776
22850
|
|
|
22777
22851
|
function title(label) {
|
|
22778
22852
|
if (!filter) return label;
|
|
22779
22853
|
label = (filter.taxCategoryCode ? label.split(new RegExp(filter.taxCategoryCode, 'g')) : [label]).join("<span style=\"color: #1890ff;\">".concat(filter.taxCategoryCode, "</span>"));
|
|
22780
22854
|
label = (filter.val ? label.split(new RegExp(filter.val, 'g')) : [label]).join("<span style=\"color: #1890ff;\">".concat(filter.val, "</span>"));
|
|
22781
|
-
return
|
|
22855
|
+
return React.createElement("span", {
|
|
22782
22856
|
dangerouslySetInnerHTML: {
|
|
22783
22857
|
__html: label
|
|
22784
22858
|
}
|
|
@@ -22787,11 +22861,11 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
22787
22861
|
|
|
22788
22862
|
function ctn(l) {
|
|
22789
22863
|
var p = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '0';
|
|
22790
|
-
if (!l || !l.length) return [
|
|
22864
|
+
if (!l || !l.length) return [React.createElement(React.Fragment, null)];
|
|
22791
22865
|
return l.filter(function (e) {
|
|
22792
22866
|
return e.pid === p;
|
|
22793
22867
|
}).map(function (e) {
|
|
22794
|
-
return
|
|
22868
|
+
return React.createElement(TreeNode, {
|
|
22795
22869
|
title: title(e.label),
|
|
22796
22870
|
key: e.id
|
|
22797
22871
|
}, ctn(l, e.id));
|
|
@@ -22921,46 +22995,46 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
22921
22995
|
setList([]);
|
|
22922
22996
|
}
|
|
22923
22997
|
}, [visible]);
|
|
22924
|
-
return
|
|
22998
|
+
return React.createElement(React.Fragment, null, React.createElement(Input, {
|
|
22925
22999
|
readOnly: true,
|
|
22926
23000
|
value: props.value,
|
|
22927
|
-
addonAfter:
|
|
23001
|
+
addonAfter: React.createElement(Button, {
|
|
22928
23002
|
size: "small",
|
|
22929
23003
|
type: "link",
|
|
22930
23004
|
onClick: function onClick() {
|
|
22931
23005
|
setVisible(true);
|
|
22932
23006
|
}
|
|
22933
23007
|
}, "\u70B9\u51FB\u9009\u62E9")
|
|
22934
|
-
}),
|
|
23008
|
+
}), React.createElement(Drawer, {
|
|
22935
23009
|
title: "\u7A0E\u6536\u5206\u7C7B\u7F16\u7801",
|
|
22936
23010
|
visible: visible,
|
|
22937
23011
|
width: 500,
|
|
22938
23012
|
onClose: function onClose() {
|
|
22939
23013
|
setVisible(false);
|
|
22940
23014
|
}
|
|
22941
|
-
},
|
|
23015
|
+
}, React.createElement(Form, {
|
|
22942
23016
|
key: "".concat(visible)
|
|
22943
|
-
},
|
|
23017
|
+
}, React.createElement(Form.Item, {
|
|
22944
23018
|
label: "\u4EA7\u54C1\u6216\u670D\u52A1\u7B80\u79F0"
|
|
22945
|
-
},
|
|
23019
|
+
}, React.createElement(Input, {
|
|
22946
23020
|
onChange: function onChange(e) {
|
|
22947
23021
|
setFilter(_objectSpread2(_objectSpread2({}, filter), {}, {
|
|
22948
23022
|
val: e.target.value
|
|
22949
23023
|
}));
|
|
22950
23024
|
}
|
|
22951
|
-
})),
|
|
23025
|
+
})), React.createElement(Form.Item, {
|
|
22952
23026
|
label: "\u7A0E\u6536\u5206\u7C7B\u7F16\u7801"
|
|
22953
|
-
},
|
|
23027
|
+
}, React.createElement(Input, {
|
|
22954
23028
|
onChange: function onChange(e) {
|
|
22955
23029
|
setFilter(_objectSpread2(_objectSpread2({}, filter), {}, {
|
|
22956
23030
|
taxCategoryCode: e.target.value
|
|
22957
23031
|
}));
|
|
22958
23032
|
}
|
|
22959
|
-
}))), list && list.length > 0 ?
|
|
23033
|
+
}))), list && list.length > 0 ? React.createElement(Tree, {
|
|
22960
23034
|
defaultExpandAll: true,
|
|
22961
23035
|
selectedKeys: [],
|
|
22962
23036
|
onSelect: onSelect
|
|
22963
|
-
}, createTreeNode()) :
|
|
23037
|
+
}, createTreeNode()) : React.createElement("span", {
|
|
22964
23038
|
style: {
|
|
22965
23039
|
color: '#00000073'
|
|
22966
23040
|
}
|
|
@@ -23177,11 +23251,11 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23177
23251
|
return data;
|
|
23178
23252
|
};
|
|
23179
23253
|
|
|
23180
|
-
return
|
|
23254
|
+
return React.createElement(React.Fragment, null, React.createElement(Input, {
|
|
23181
23255
|
readOnly: true,
|
|
23182
23256
|
onClick: onClick,
|
|
23183
23257
|
value: props.value
|
|
23184
|
-
}),
|
|
23258
|
+
}), React.createElement(TaxClassificationModal, {
|
|
23185
23259
|
list: list,
|
|
23186
23260
|
open: open,
|
|
23187
23261
|
onSelect: onSelect,
|
|
@@ -23297,14 +23371,14 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23297
23371
|
React.useEffect(function () {
|
|
23298
23372
|
if (controller.getTaxCategoryCodeList) controller.getTaxCategoryCodeList();
|
|
23299
23373
|
}, [controller]);
|
|
23300
|
-
return
|
|
23374
|
+
return React.createElement(SchemaForm, {
|
|
23301
23375
|
actions: actions,
|
|
23302
23376
|
previewPlaceholder: " ",
|
|
23303
23377
|
components: _objectSpread2(_objectSpread2({}, components), {}, {
|
|
23304
23378
|
showSearch: !!controller.state.goodsListState.endowCode.onLoadTaxClassificationCode ? ShowSearch3 : ShowSearch
|
|
23305
23379
|
}),
|
|
23306
23380
|
effects: effects
|
|
23307
|
-
},
|
|
23381
|
+
}, React.createElement(FormButtonGroup, null, React.createElement(SchemaMarkupField, {
|
|
23308
23382
|
name: "taxClassificationCode",
|
|
23309
23383
|
type: "showSearch",
|
|
23310
23384
|
title: "\u7A0E\u6536\u5206\u7C7B\u7F16\u7801",
|
|
@@ -23314,13 +23388,13 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23314
23388
|
message: '请选择税收分类编码',
|
|
23315
23389
|
required: true
|
|
23316
23390
|
}]
|
|
23317
|
-
}),
|
|
23391
|
+
}), React.createElement(SchemaMarkupField, {
|
|
23318
23392
|
name: "shorthand",
|
|
23319
23393
|
type: "string",
|
|
23320
23394
|
readOnly: true,
|
|
23321
23395
|
default: defaultValue === null || defaultValue === void 0 ? void 0 : defaultValue.shorthand,
|
|
23322
23396
|
title: "\u5546\u54C1\u548C\u670D\u52A1\u5206\u7C7B\u7B80\u79F0"
|
|
23323
|
-
}),
|
|
23397
|
+
}), React.createElement(SchemaMarkupField, {
|
|
23324
23398
|
name: "taxRate",
|
|
23325
23399
|
type: "string",
|
|
23326
23400
|
title: "\u7A0E\u7387",
|
|
@@ -23333,7 +23407,7 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23333
23407
|
message: '请选择税率',
|
|
23334
23408
|
required: true
|
|
23335
23409
|
}]
|
|
23336
|
-
}), taxRate === 0 && isTaxFreeTypeNeeded &&
|
|
23410
|
+
}), taxRate === 0 && isTaxFreeTypeNeeded && React.createElement(SchemaMarkupField, {
|
|
23337
23411
|
name: "taxFreeType",
|
|
23338
23412
|
type: "string",
|
|
23339
23413
|
title: "\u514D\u7A0E\u7C7B\u578B",
|
|
@@ -23346,7 +23420,7 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23346
23420
|
message: '请选择免税类型',
|
|
23347
23421
|
required: true
|
|
23348
23422
|
}]
|
|
23349
|
-
}),
|
|
23423
|
+
}), React.createElement(SchemaMarkupField, {
|
|
23350
23424
|
name: "favouredPolicyMark",
|
|
23351
23425
|
type: "number",
|
|
23352
23426
|
title: "\u662F\u5426\u4EAB\u53D7\u4F18\u60E0\u653F\u7B56",
|
|
@@ -23365,7 +23439,7 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23365
23439
|
message: '请选择是否享受优惠政策',
|
|
23366
23440
|
required: true
|
|
23367
23441
|
}]
|
|
23368
|
-
}), favouredPolicyMark === 1 &&
|
|
23442
|
+
}), favouredPolicyMark === 1 && React.createElement(SchemaMarkupField, {
|
|
23369
23443
|
name: "favouredPolicyName",
|
|
23370
23444
|
type: "string",
|
|
23371
23445
|
title: "\u4F18\u60E0\u653F\u7B56\u7C7B\u578B",
|
|
@@ -23378,14 +23452,14 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23378
23452
|
message: '请选择是否享受优惠政策',
|
|
23379
23453
|
required: true
|
|
23380
23454
|
}]
|
|
23381
|
-
})),
|
|
23455
|
+
})), React.createElement("span", {
|
|
23382
23456
|
className: "kts-invoice-operate-goods-endow-code-button-list"
|
|
23383
|
-
},
|
|
23457
|
+
}, React.createElement(Button, {
|
|
23384
23458
|
onClick: function onClick() {
|
|
23385
23459
|
actions.submit(onSubmit);
|
|
23386
23460
|
},
|
|
23387
23461
|
type: "primary"
|
|
23388
|
-
}, "\u786E\u5B9A"),
|
|
23462
|
+
}, "\u786E\u5B9A"), React.createElement(Button, {
|
|
23389
23463
|
onClick: function onClick() {
|
|
23390
23464
|
controller.pipeline( /*#__PURE__*/function () {
|
|
23391
23465
|
var _ref20 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee20(s) {
|
|
@@ -23545,53 +23619,53 @@ function AddComparisonDrawer() {
|
|
|
23545
23619
|
}));
|
|
23546
23620
|
}
|
|
23547
23621
|
}, [good]);
|
|
23548
|
-
return
|
|
23622
|
+
return React.createElement(Drawer$1, {
|
|
23549
23623
|
width: 500,
|
|
23550
23624
|
onClose: onClose,
|
|
23551
23625
|
placement: "right",
|
|
23552
23626
|
title: "\u5546\u54C1\u6620\u5C04",
|
|
23553
23627
|
visible: !!good,
|
|
23554
|
-
footer:
|
|
23628
|
+
footer: React.createElement("div", {
|
|
23555
23629
|
style: {
|
|
23556
23630
|
display: 'flex',
|
|
23557
23631
|
justifyContent: 'flex-end',
|
|
23558
23632
|
gap: 10
|
|
23559
23633
|
}
|
|
23560
|
-
},
|
|
23634
|
+
}, React.createElement(Button, {
|
|
23561
23635
|
type: "primary",
|
|
23562
23636
|
onClick: onSubmit
|
|
23563
|
-
}, "\u63D0\u4EA4"),
|
|
23637
|
+
}, "\u63D0\u4EA4"), React.createElement(Button, {
|
|
23564
23638
|
onClick: onClose
|
|
23565
23639
|
}, "\u53D6\u6D88"))
|
|
23566
|
-
}, !!good &&
|
|
23640
|
+
}, !!good && React.createElement(Form$1, {
|
|
23567
23641
|
layout: "vertical",
|
|
23568
23642
|
style: {
|
|
23569
23643
|
flex: 1
|
|
23570
23644
|
},
|
|
23571
23645
|
form: form
|
|
23572
|
-
},
|
|
23646
|
+
}, React.createElement(Row$1, {
|
|
23573
23647
|
gutter: [8, 8]
|
|
23574
|
-
},
|
|
23648
|
+
}, React.createElement(Col$1, {
|
|
23575
23649
|
span: 12
|
|
23576
|
-
},
|
|
23650
|
+
}, React.createElement(Form$1.Item, {
|
|
23577
23651
|
name: "itemNameSelf",
|
|
23578
23652
|
label: "\u6211\u65B9\u5546\u54C1\u540D\u79F0"
|
|
23579
|
-
},
|
|
23653
|
+
}, React.createElement(Input, null))), React.createElement(Col$1, {
|
|
23580
23654
|
span: 12
|
|
23581
|
-
},
|
|
23655
|
+
}, React.createElement(Form$1.Item, {
|
|
23582
23656
|
name: "itemName",
|
|
23583
23657
|
label: "\u5BF9\u65B9\u5546\u54C1\u540D\u79F0"
|
|
23584
|
-
},
|
|
23658
|
+
}, React.createElement(Input, null))), React.createElement(Col$1, {
|
|
23585
23659
|
span: 12
|
|
23586
|
-
},
|
|
23660
|
+
}, React.createElement(Form$1.Item, {
|
|
23587
23661
|
name: 'itemModelNameSelf',
|
|
23588
23662
|
label: "\u6211\u65B9\u89C4\u683C\u578B\u53F7"
|
|
23589
|
-
},
|
|
23663
|
+
}, React.createElement(Input, null))), React.createElement(Col$1, {
|
|
23590
23664
|
span: 12
|
|
23591
|
-
},
|
|
23665
|
+
}, React.createElement(Form$1.Item, {
|
|
23592
23666
|
name: "itemModelName",
|
|
23593
23667
|
label: "\u5BF9\u65B9\u89C4\u683C\u578B\u53F7"
|
|
23594
|
-
},
|
|
23668
|
+
}, React.createElement(Input, null))))));
|
|
23595
23669
|
} // function validateFields(form: WrappedFormUtils<any>) {
|
|
23596
23670
|
// return new Promise<{ err: any, values: any }>(resolve => {
|
|
23597
23671
|
// form.validateFields((err, values) => {
|
|
@@ -23602,7 +23676,7 @@ function AddComparisonDrawer() {
|
|
|
23602
23676
|
|
|
23603
23677
|
/** 发票组件的上下文 */
|
|
23604
23678
|
|
|
23605
|
-
var InvoiceContext =
|
|
23679
|
+
var InvoiceContext = React.createContext(undefined);
|
|
23606
23680
|
|
|
23607
23681
|
var Invoice = /*#__PURE__*/function (_React$PureComponent) {
|
|
23608
23682
|
_inherits(Invoice, _React$PureComponent);
|
|
@@ -23645,9 +23719,9 @@ var Invoice = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
23645
23719
|
/** 获取控制器钩子 */
|
|
23646
23720
|
function render() {
|
|
23647
23721
|
if (this.props.invoiceType === 'digtal') {
|
|
23648
|
-
return
|
|
23722
|
+
return React.createElement(Digtal, _objectSpread2({}, this.props));
|
|
23649
23723
|
} else {
|
|
23650
|
-
return
|
|
23724
|
+
return React.createElement(Main$4, _objectSpread2({}, this.props));
|
|
23651
23725
|
}
|
|
23652
23726
|
}
|
|
23653
23727
|
}]);
|
|
@@ -23688,10 +23762,10 @@ var Main$4 = function Main(props) {
|
|
|
23688
23762
|
React.useEffect(function () {
|
|
23689
23763
|
setKey(key + 1);
|
|
23690
23764
|
}, [controller]);
|
|
23691
|
-
return
|
|
23765
|
+
return React.createElement(InvoiceContext.Provider, {
|
|
23692
23766
|
key: key,
|
|
23693
23767
|
value: controller
|
|
23694
|
-
},
|
|
23768
|
+
}, React.createElement("div", {
|
|
23695
23769
|
className: "kts-invoice-operate",
|
|
23696
23770
|
ref: controller.pipeline( /*#__PURE__*/function () {
|
|
23697
23771
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(s, e) {
|
|
@@ -23713,17 +23787,17 @@ var Main$4 = function Main(props) {
|
|
|
23713
23787
|
return _ref.apply(this, arguments);
|
|
23714
23788
|
};
|
|
23715
23789
|
}())
|
|
23716
|
-
}, props.invoiceHeader ||
|
|
23790
|
+
}, props.invoiceHeader || React.createElement(InvoiceHeader, null)
|
|
23717
23791
|
/** 发票头 */
|
|
23718
|
-
, props.buyer ||
|
|
23792
|
+
, props.buyer || React.createElement(Buyer$1, null)
|
|
23719
23793
|
/** 购买方 */
|
|
23720
|
-
, props.goodsList ||
|
|
23794
|
+
, props.goodsList || React.createElement(GoodsList, null)
|
|
23721
23795
|
/** 货物列表 */
|
|
23722
|
-
, props.seller ||
|
|
23796
|
+
, props.seller || React.createElement(Buyer, null)
|
|
23723
23797
|
/** 销售方 */
|
|
23724
|
-
, props.sign ||
|
|
23798
|
+
, props.sign || React.createElement(Sign, null)
|
|
23725
23799
|
/** 落款 */
|
|
23726
|
-
, props.footExpand),
|
|
23800
|
+
, props.footExpand), React.createElement(ImportBuyerDrawer, null), React.createElement(ImportGoodsDrawer, null), React.createElement(EndowCodeDrawer, null), React.createElement(AddComparisonDrawer, null));
|
|
23727
23801
|
};
|
|
23728
23802
|
/** 数电 */
|
|
23729
23803
|
|
|
@@ -23742,10 +23816,10 @@ var Digtal = function Digtal(props) {
|
|
|
23742
23816
|
React.useEffect(function () {
|
|
23743
23817
|
setKey(key + 1);
|
|
23744
23818
|
}, [controller]);
|
|
23745
|
-
return
|
|
23819
|
+
return React.createElement(InvoiceContext.Provider, {
|
|
23746
23820
|
key: key,
|
|
23747
23821
|
value: controller
|
|
23748
|
-
},
|
|
23822
|
+
}, React.createElement("div", {
|
|
23749
23823
|
className: "kts-invoice-operate-digtal",
|
|
23750
23824
|
ref: controller.pipeline( /*#__PURE__*/function () {
|
|
23751
23825
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(s, e) {
|
|
@@ -23767,17 +23841,17 @@ var Digtal = function Digtal(props) {
|
|
|
23767
23841
|
return _ref2.apply(this, arguments);
|
|
23768
23842
|
};
|
|
23769
23843
|
}())
|
|
23770
|
-
}, props.invoiceHeader ||
|
|
23844
|
+
}, props.invoiceHeader || React.createElement(InvoiceHeaderDigtal, null)
|
|
23771
23845
|
/** 发票头 */
|
|
23772
|
-
,
|
|
23846
|
+
, React.createElement("div", {
|
|
23773
23847
|
className: 'kts-invoice-operate-digtal-cont'
|
|
23774
|
-
}, props.stakeholder ||
|
|
23848
|
+
}, props.stakeholder || React.createElement(Stakeholder$1, null)
|
|
23775
23849
|
/** 干系人 */
|
|
23776
|
-
, props.goodsList ||
|
|
23850
|
+
, props.goodsList || React.createElement(GoodsList$1
|
|
23777
23851
|
/** 货物列表 */
|
|
23778
|
-
, null)), props.sign ||
|
|
23852
|
+
, null)), props.sign || React.createElement(SignDigtal, null)
|
|
23779
23853
|
/** 落款 */
|
|
23780
|
-
),
|
|
23854
|
+
), React.createElement(ImportGoodsDrawer, null), React.createElement(EndowCodeDrawer, null));
|
|
23781
23855
|
};
|
|
23782
23856
|
|
|
23783
23857
|
function TaxClassificationModal(props) {
|
|
@@ -23818,26 +23892,26 @@ function TaxClassificationModal(props) {
|
|
|
23818
23892
|
}, 500);
|
|
23819
23893
|
}
|
|
23820
23894
|
}, [form, props.open]);
|
|
23821
|
-
return
|
|
23895
|
+
return React.createElement(Drawer$1, {
|
|
23822
23896
|
title: "\u5546\u54C1\u548C\u670D\u52A1\u7A0E\u6536\u5206\u7C7B\u7F16\u7801",
|
|
23823
23897
|
placement: "right",
|
|
23824
23898
|
open: props.open,
|
|
23825
23899
|
width: 503,
|
|
23826
23900
|
onClose: props.onCancel
|
|
23827
|
-
},
|
|
23901
|
+
}, React.createElement(Form$1, {
|
|
23828
23902
|
form: form
|
|
23829
|
-
},
|
|
23903
|
+
}, React.createElement(Form$1.Item, {
|
|
23830
23904
|
name: 'search'
|
|
23831
|
-
},
|
|
23905
|
+
}, React.createElement(Input$1, {
|
|
23832
23906
|
placeholder: "\u8BF7\u8F93\u5165\u7A0E\u6536\u5206\u7C7B\u7F16\u7801\u3001\u7A0E\u6536\u5206\u7C7B\u540D\u79F0\u8FDB\u884C\u68C0\u7D22",
|
|
23833
23907
|
onChange: searchTax
|
|
23834
|
-
})),
|
|
23908
|
+
})), React.createElement(Form$1.Item, {
|
|
23835
23909
|
name: 'tree'
|
|
23836
|
-
},
|
|
23910
|
+
}, React.createElement(Tree$1, {
|
|
23837
23911
|
onSelect: props.onSelect,
|
|
23838
23912
|
loadData: props.onLoad,
|
|
23839
23913
|
treeData: props.list,
|
|
23840
|
-
switcherIcon:
|
|
23914
|
+
switcherIcon: React.createElement(Icon$1, {
|
|
23841
23915
|
type: "down"
|
|
23842
23916
|
})
|
|
23843
23917
|
}))));
|