kts-component-invoice-operate 3.2.181-23 → 3.2.181-25
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/dist/index.esm.js +153 -5
- package/dist/index.js +153 -5
- package/package.json +1 -1
- package/src/Invoice/_test/importGoods/index.tsx +1 -1
- package/src/Invoice/index.tsx +2 -1
- package/src/Invoice/ui/digtal/GoodsList/ui/BatchImportRows/index.tsx +3 -3
- package/src/Invoice/ui/digtal/ImportBatchGoodsDrawer/index.tsx +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -19899,7 +19899,8 @@ var BatchImportRows$1 = (function () {
|
|
|
19899
19899
|
}, [controller]);
|
|
19900
19900
|
if (model === 'prefab') return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
19901
19901
|
if (model === 'readOnly') return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
19902
|
-
return /*#__PURE__*/React.createElement(Button, {
|
|
19902
|
+
return /*#__PURE__*/React.createElement(Button$1, {
|
|
19903
|
+
size: 'small',
|
|
19903
19904
|
onClick: onClick
|
|
19904
19905
|
}, "\u6279\u91CF\u5BFC\u5165");
|
|
19905
19906
|
}); // /** 添加一个空货物 */
|
|
@@ -27406,9 +27407,156 @@ var ImportBatchGoodsDrawer = (function () {
|
|
|
27406
27407
|
}, "Excel \u4E0A\u4F20"), /*#__PURE__*/React.createElement("p", null, "\u70B9\u51FB\u56FE\u6807\u4E0A\u4F20Excel\u6587\u4EF6"))))));
|
|
27407
27408
|
});
|
|
27408
27409
|
|
|
27409
|
-
var
|
|
27410
|
+
var _path$c, _path2$3, _path3$3;
|
|
27411
|
+
|
|
27412
|
+
function _extends$g() { _extends$g = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$g.apply(this, arguments); }
|
|
27413
|
+
|
|
27414
|
+
function SvgDownload$1(props) {
|
|
27415
|
+
return /*#__PURE__*/createElement("svg", _extends$g({
|
|
27416
|
+
className: "download_svg__icon",
|
|
27417
|
+
viewBox: "0 0 1024 1024",
|
|
27418
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
27419
|
+
width: 200,
|
|
27420
|
+
height: 200
|
|
27421
|
+
}, props), _path$c || (_path$c = /*#__PURE__*/createElement("path", {
|
|
27422
|
+
d: "M748.512 770.649h-70.487V725.21h70.487c109.518 0 198.647-89.129 198.647-198.646 0-106.606-83.303-193.987-189.909-198.647l-16.31-.583-4.661-15.729c-30.875-110.1-132.82-187.578-247.58-187.578-140.976 0-256.32 114.76-256.902 255.153v16.894l-16.894 4.66c-69.905 19.807-118.256 83.887-118.256 156.122 0 89.711 72.818 162.529 162.53 162.529h82.138v45.438h-82.138c-114.761 0-207.968-93.206-207.968-207.967 0-46.021 14.564-89.712 43.108-126.412 23.884-30.875 55.924-54.759 92.624-68.157 4.66-73.983 35.536-143.306 88.547-196.317 57.089-56.507 132.82-87.964 213.21-87.964 67.575 0 131.072 21.554 184.084 62.332 47.186 36.118 83.303 86.799 102.527 142.723 56.507 6.408 109.518 32.04 149.13 73.4 43.692 45.439 68.158 105.44 68.158 168.937 0 65.245-25.632 126.412-71.652 172.433-46.021 47.186-107.188 72.818-172.433 72.818z"
|
|
27423
|
+
})), _path2$3 || (_path2$3 = /*#__PURE__*/createElement("path", {
|
|
27424
|
+
d: "M539.962 785.212h-45.438V479.378h45.438v305.834z"
|
|
27425
|
+
})), _path3$3 || (_path3$3 = /*#__PURE__*/createElement("path", {
|
|
27426
|
+
d: "M600.546 704.821l31.458 32.623-118.839 115.343L401.9 736.861l32.622-31.457 79.808 83.304 86.216-83.887z"
|
|
27427
|
+
})));
|
|
27428
|
+
}
|
|
27429
|
+
|
|
27430
|
+
var _path$d, _path2$4, _path3$4;
|
|
27431
|
+
|
|
27432
|
+
function _extends$h() { _extends$h = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$h.apply(this, arguments); }
|
|
27433
|
+
|
|
27434
|
+
function SvgUpload$1(props) {
|
|
27435
|
+
return /*#__PURE__*/createElement("svg", _extends$h({
|
|
27436
|
+
className: "upload_svg__icon",
|
|
27437
|
+
viewBox: "0 0 1024 1024",
|
|
27438
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
27439
|
+
width: 200,
|
|
27440
|
+
height: 200
|
|
27441
|
+
}, props), _path$d || (_path$d = /*#__PURE__*/createElement("path", {
|
|
27442
|
+
d: "M748.43 770.39h-70.428v-45.512h70.428c109.568 0 198.656-89.088 198.656-198.656 0-106.61-83.399-193.763-189.781-198.428l-16.498-.683-4.437-15.815C705.422 200.932 603.59 123.79 488.79 123.79c-140.858 0-256.114 114.574-257.138 255.318l-.114 17.066-16.498 4.665c-69.632 19.684-118.215 83.968-118.215 156.33 0 89.544 72.931 162.475 162.475 162.475h82.375v45.512h-82.262c-114.688 0-207.985-93.298-207.985-207.986 0-46.194 14.79-89.998 42.894-126.521 23.78-30.948 56.092-54.727 92.387-68.38 4.438-74.184 35.613-143.247 88.747-196.04 57.116-56.661 132.779-87.95 213.333-87.95 67.357 0 131.072 21.618 184.32 62.578 47.332 36.409 83.172 86.585 102.287 142.791 56.775 6.258 109.226 32.085 149.162 73.614 43.805 45.625 67.926 105.7 67.926 168.96 0 65.195-25.373 126.521-71.453 172.601-46.08 46.194-107.406 71.566-172.6 71.566z"
|
|
27443
|
+
})), _path2$4 || (_path2$4 = /*#__PURE__*/createElement("path", {
|
|
27444
|
+
d: "M494.364 546.816h45.512v306.062h-45.512z"
|
|
27445
|
+
})), _path3$4 || (_path3$4 = /*#__PURE__*/createElement("path", {
|
|
27446
|
+
d: "M433.607 627.37l-31.63-32.654 118.898-115.484 111.388 116.053-32.768 31.517-79.758-83.058z"
|
|
27447
|
+
})));
|
|
27448
|
+
}
|
|
27449
|
+
|
|
27450
|
+
var css_248z$x = ".index-module_excel__2HJvw {\n display: flex;\n text-align: center;\n padding-top: 20px;\n flex-wrap: wrap;\n justify-content: space-around;\n}\n.index-module_excel__2HJvw .index-module_right__1Vt7A,\n.index-module_excel__2HJvw .index-module_left__2hJIH {\n cursor: pointer;\n border: 1px solid #fff;\n padding-top: 20px;\n}\n.index-module_excel__2HJvw .index-module_right__1Vt7A:hover,\n.index-module_excel__2HJvw .index-module_left__2hJIH:hover {\n border: 1px solid #0074ff;\n}\n.index-module_excel__2HJvw .index-module_upload__bcaRs p,\n.index-module_excel__2HJvw .index-module_download__1j4QW p {\n margin: 0;\n}\n.index-module_excel__2HJvw .index-module_upload__bcaRs .anticon,\n.index-module_excel__2HJvw .index-module_download__1j4QW .anticon {\n font-size: 72px;\n}\n.index-module_excel__2HJvw .index-module_upload__bcaRs > div,\n.index-module_excel__2HJvw .index-module_download__1j4QW > div {\n display: inline-block;\n background: #f8f8f8;\n padding: 40px;\n border-radius: 9999px;\n margin-bottom: 20px;\n}\n.index-module_modal__3D5QY label {\n text-align: center;\n display: block;\n font-weight: bold;\n font-size: 16px;\n margin-bottom: 20px;\n}\n.index-module_modal__3D5QY label .anticon {\n color: #117fff;\n font-size: 22px;\n margin-right: 10px;\n position: relative;\n top: 3px;\n}\n.index-module_modal__3D5QY .index-module_size__2xG_3 {\n color: #0074ff;\n}\n";
|
|
27451
|
+
var styles$1 = {"excel":"index-module_excel__2HJvw","right":"index-module_right__1Vt7A","left":"index-module_left__2hJIH","upload":"index-module_upload__bcaRs","download":"index-module_download__1j4QW","modal":"index-module_modal__3D5QY","size":"index-module_size__2xG_3"};
|
|
27410
27452
|
styleInject(css_248z$x);
|
|
27411
27453
|
|
|
27454
|
+
var ImportBatchGoodsDrawerDigtal = (function () {
|
|
27455
|
+
var controller = Invoice.useInvoiceController();
|
|
27456
|
+
var visible = controller.useMemo(function (s) {
|
|
27457
|
+
return s.goodsListState.importGoods.isVisibleBatchImportDrawer;
|
|
27458
|
+
}, []);
|
|
27459
|
+
var onClose = React.useCallback(function () {
|
|
27460
|
+
controller.pipeline( /*#__PURE__*/function () {
|
|
27461
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(s) {
|
|
27462
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
27463
|
+
while (1) {
|
|
27464
|
+
switch (_context.prev = _context.next) {
|
|
27465
|
+
case 0:
|
|
27466
|
+
s.goodsListState.importGoods.isVisibleBatchImportDrawer = false;
|
|
27467
|
+
|
|
27468
|
+
case 1:
|
|
27469
|
+
case "end":
|
|
27470
|
+
return _context.stop();
|
|
27471
|
+
}
|
|
27472
|
+
}
|
|
27473
|
+
}, _callee);
|
|
27474
|
+
}));
|
|
27475
|
+
|
|
27476
|
+
return function (_x) {
|
|
27477
|
+
return _ref.apply(this, arguments);
|
|
27478
|
+
};
|
|
27479
|
+
}())();
|
|
27480
|
+
}, [controller]);
|
|
27481
|
+
|
|
27482
|
+
var _beforeUpload = React.useCallback( /*#__PURE__*/function () {
|
|
27483
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(e) {
|
|
27484
|
+
var type,
|
|
27485
|
+
_args2 = arguments;
|
|
27486
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
27487
|
+
while (1) {
|
|
27488
|
+
switch (_context2.prev = _context2.next) {
|
|
27489
|
+
case 0:
|
|
27490
|
+
type = _args2.length > 1 && _args2[1] !== undefined ? _args2[1] : 'xls';
|
|
27491
|
+
|
|
27492
|
+
if (controller.importInvoiceLines) {
|
|
27493
|
+
controller.importInvoiceLines(e, type);
|
|
27494
|
+
}
|
|
27495
|
+
|
|
27496
|
+
return _context2.abrupt("return", false);
|
|
27497
|
+
|
|
27498
|
+
case 3:
|
|
27499
|
+
case "end":
|
|
27500
|
+
return _context2.stop();
|
|
27501
|
+
}
|
|
27502
|
+
}
|
|
27503
|
+
}, _callee2);
|
|
27504
|
+
}));
|
|
27505
|
+
|
|
27506
|
+
return function (_x2) {
|
|
27507
|
+
return _ref2.apply(this, arguments);
|
|
27508
|
+
};
|
|
27509
|
+
}(), [controller]);
|
|
27510
|
+
|
|
27511
|
+
var downloadInvoiceTempalte = function downloadInvoiceTempalte() {
|
|
27512
|
+
if (controller.downloadInvoiceTempalte) {
|
|
27513
|
+
controller.downloadInvoiceTempalte();
|
|
27514
|
+
}
|
|
27515
|
+
};
|
|
27516
|
+
|
|
27517
|
+
return /*#__PURE__*/React.createElement(Drawer$2, {
|
|
27518
|
+
title: "\u6279\u91CF\u5BFC\u5165",
|
|
27519
|
+
placement: "right",
|
|
27520
|
+
// closable={false}
|
|
27521
|
+
destroyOnClose: true,
|
|
27522
|
+
width: 500,
|
|
27523
|
+
onClose: onClose,
|
|
27524
|
+
visible: visible
|
|
27525
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
27526
|
+
className: styles$1.excel
|
|
27527
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
27528
|
+
className: styles$1.left
|
|
27529
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
27530
|
+
className: styles$1.download,
|
|
27531
|
+
onClick: downloadInvoiceTempalte
|
|
27532
|
+
}, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Icon, {
|
|
27533
|
+
component: SvgDownload$1
|
|
27534
|
+
})), /*#__PURE__*/React.createElement("p", {
|
|
27535
|
+
style: {
|
|
27536
|
+
fontWeight: 'bold'
|
|
27537
|
+
}
|
|
27538
|
+
}, "Excel \u6A21\u677F\u4E0B\u8F7D"), /*#__PURE__*/React.createElement("p", null, "\u70B9\u51FB\u56FE\u6807\u4E0B\u8F7D\u6A21\u677F"))), /*#__PURE__*/React.createElement("div", {
|
|
27539
|
+
className: styles$1.right
|
|
27540
|
+
}, /*#__PURE__*/React.createElement(Upload, {
|
|
27541
|
+
showUploadList: false,
|
|
27542
|
+
beforeUpload: function beforeUpload(e) {
|
|
27543
|
+
_beforeUpload(e, 'xls');
|
|
27544
|
+
},
|
|
27545
|
+
accept: ".xlsx,.xls"
|
|
27546
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
27547
|
+
className: styles$1.upload
|
|
27548
|
+
}, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Icon, {
|
|
27549
|
+
component: SvgUpload$1
|
|
27550
|
+
})), /*#__PURE__*/React.createElement("p", {
|
|
27551
|
+
style: {
|
|
27552
|
+
fontWeight: 'bold'
|
|
27553
|
+
}
|
|
27554
|
+
}, "Excel \u4E0A\u4F20"), /*#__PURE__*/React.createElement("p", null, "\u70B9\u51FB\u56FE\u6807\u4E0A\u4F20Excel\u6587\u4EF6"))))));
|
|
27555
|
+
});
|
|
27556
|
+
|
|
27557
|
+
var css_248z$y = ".kts-invoice-operate-goods-endow-code-button-list {\n display: flex;\n flex-direction: column;\n}\n.kts-invoice-operate-goods-endow-code-button-list > button {\n margin-bottom: 10px;\n}\n";
|
|
27558
|
+
styleInject(css_248z$y);
|
|
27559
|
+
|
|
27412
27560
|
var TreeNode = Tree.TreeNode;
|
|
27413
27561
|
var confirm = Modal$1.confirm;
|
|
27414
27562
|
var EndowCodeDrawer = (function () {
|
|
@@ -28882,11 +29030,11 @@ var Digtal = function Digtal(props) {
|
|
|
28882
29030
|
/** 特殊信息 */
|
|
28883
29031
|
, props.sign || /*#__PURE__*/React.createElement(SignDigtal, null)
|
|
28884
29032
|
/** 落款 */
|
|
28885
|
-
), /*#__PURE__*/React.createElement(ImportGoodsDrawer, null), /*#__PURE__*/React.createElement(EndowCodeDrawer, null));
|
|
29033
|
+
), /*#__PURE__*/React.createElement(ImportBatchGoodsDrawerDigtal, null), " ", /*#__PURE__*/React.createElement(ImportGoodsDrawer, null), /*#__PURE__*/React.createElement(EndowCodeDrawer, null));
|
|
28886
29034
|
};
|
|
28887
29035
|
|
|
28888
|
-
var css_248z$
|
|
28889
|
-
styleInject(css_248z$
|
|
29036
|
+
var css_248z$z = ".taxdetailsbox {\n display: flex;\n justify-content: flex-start;\n flex-direction: row;\n}\n.taxdetailsbox .taxrightbox {\n width: 340px;\n position: absolute;\n right: 30px;\n top: 79px;\n bottom: 50px;\n min-height: 300px;\n}\n.taxdetailsbox .taxrightbox .taxdesc {\n height: calc(100vh - 323px);\n min-height: 105px;\n overflow: auto;\n}\n";
|
|
29037
|
+
styleInject(css_248z$z);
|
|
28890
29038
|
|
|
28891
29039
|
function TaxClassificationModal(props) {
|
|
28892
29040
|
var _props$info6;
|
package/dist/index.js
CHANGED
|
@@ -19909,7 +19909,8 @@ var BatchImportRows$1 = (function () {
|
|
|
19909
19909
|
}, [controller]);
|
|
19910
19910
|
if (model === 'prefab') return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null);
|
|
19911
19911
|
if (model === 'readOnly') return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null);
|
|
19912
|
-
return /*#__PURE__*/React__default['default'].createElement(
|
|
19912
|
+
return /*#__PURE__*/React__default['default'].createElement(ktsXui.Button, {
|
|
19913
|
+
size: 'small',
|
|
19913
19914
|
onClick: onClick
|
|
19914
19915
|
}, "\u6279\u91CF\u5BFC\u5165");
|
|
19915
19916
|
}); // /** 添加一个空货物 */
|
|
@@ -27416,9 +27417,156 @@ var ImportBatchGoodsDrawer = (function () {
|
|
|
27416
27417
|
}, "Excel \u4E0A\u4F20"), /*#__PURE__*/React__default['default'].createElement("p", null, "\u70B9\u51FB\u56FE\u6807\u4E0A\u4F20Excel\u6587\u4EF6"))))));
|
|
27417
27418
|
});
|
|
27418
27419
|
|
|
27419
|
-
var
|
|
27420
|
+
var _path$c, _path2$3, _path3$3;
|
|
27421
|
+
|
|
27422
|
+
function _extends$g() { _extends$g = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$g.apply(this, arguments); }
|
|
27423
|
+
|
|
27424
|
+
function SvgDownload$1(props) {
|
|
27425
|
+
return /*#__PURE__*/React.createElement("svg", _extends$g({
|
|
27426
|
+
className: "download_svg__icon",
|
|
27427
|
+
viewBox: "0 0 1024 1024",
|
|
27428
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
27429
|
+
width: 200,
|
|
27430
|
+
height: 200
|
|
27431
|
+
}, props), _path$c || (_path$c = /*#__PURE__*/React.createElement("path", {
|
|
27432
|
+
d: "M748.512 770.649h-70.487V725.21h70.487c109.518 0 198.647-89.129 198.647-198.646 0-106.606-83.303-193.987-189.909-198.647l-16.31-.583-4.661-15.729c-30.875-110.1-132.82-187.578-247.58-187.578-140.976 0-256.32 114.76-256.902 255.153v16.894l-16.894 4.66c-69.905 19.807-118.256 83.887-118.256 156.122 0 89.711 72.818 162.529 162.53 162.529h82.138v45.438h-82.138c-114.761 0-207.968-93.206-207.968-207.967 0-46.021 14.564-89.712 43.108-126.412 23.884-30.875 55.924-54.759 92.624-68.157 4.66-73.983 35.536-143.306 88.547-196.317 57.089-56.507 132.82-87.964 213.21-87.964 67.575 0 131.072 21.554 184.084 62.332 47.186 36.118 83.303 86.799 102.527 142.723 56.507 6.408 109.518 32.04 149.13 73.4 43.692 45.439 68.158 105.44 68.158 168.937 0 65.245-25.632 126.412-71.652 172.433-46.021 47.186-107.188 72.818-172.433 72.818z"
|
|
27433
|
+
})), _path2$3 || (_path2$3 = /*#__PURE__*/React.createElement("path", {
|
|
27434
|
+
d: "M539.962 785.212h-45.438V479.378h45.438v305.834z"
|
|
27435
|
+
})), _path3$3 || (_path3$3 = /*#__PURE__*/React.createElement("path", {
|
|
27436
|
+
d: "M600.546 704.821l31.458 32.623-118.839 115.343L401.9 736.861l32.622-31.457 79.808 83.304 86.216-83.887z"
|
|
27437
|
+
})));
|
|
27438
|
+
}
|
|
27439
|
+
|
|
27440
|
+
var _path$d, _path2$4, _path3$4;
|
|
27441
|
+
|
|
27442
|
+
function _extends$h() { _extends$h = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$h.apply(this, arguments); }
|
|
27443
|
+
|
|
27444
|
+
function SvgUpload$1(props) {
|
|
27445
|
+
return /*#__PURE__*/React.createElement("svg", _extends$h({
|
|
27446
|
+
className: "upload_svg__icon",
|
|
27447
|
+
viewBox: "0 0 1024 1024",
|
|
27448
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
27449
|
+
width: 200,
|
|
27450
|
+
height: 200
|
|
27451
|
+
}, props), _path$d || (_path$d = /*#__PURE__*/React.createElement("path", {
|
|
27452
|
+
d: "M748.43 770.39h-70.428v-45.512h70.428c109.568 0 198.656-89.088 198.656-198.656 0-106.61-83.399-193.763-189.781-198.428l-16.498-.683-4.437-15.815C705.422 200.932 603.59 123.79 488.79 123.79c-140.858 0-256.114 114.574-257.138 255.318l-.114 17.066-16.498 4.665c-69.632 19.684-118.215 83.968-118.215 156.33 0 89.544 72.931 162.475 162.475 162.475h82.375v45.512h-82.262c-114.688 0-207.985-93.298-207.985-207.986 0-46.194 14.79-89.998 42.894-126.521 23.78-30.948 56.092-54.727 92.387-68.38 4.438-74.184 35.613-143.247 88.747-196.04 57.116-56.661 132.779-87.95 213.333-87.95 67.357 0 131.072 21.618 184.32 62.578 47.332 36.409 83.172 86.585 102.287 142.791 56.775 6.258 109.226 32.085 149.162 73.614 43.805 45.625 67.926 105.7 67.926 168.96 0 65.195-25.373 126.521-71.453 172.601-46.08 46.194-107.406 71.566-172.6 71.566z"
|
|
27453
|
+
})), _path2$4 || (_path2$4 = /*#__PURE__*/React.createElement("path", {
|
|
27454
|
+
d: "M494.364 546.816h45.512v306.062h-45.512z"
|
|
27455
|
+
})), _path3$4 || (_path3$4 = /*#__PURE__*/React.createElement("path", {
|
|
27456
|
+
d: "M433.607 627.37l-31.63-32.654 118.898-115.484 111.388 116.053-32.768 31.517-79.758-83.058z"
|
|
27457
|
+
})));
|
|
27458
|
+
}
|
|
27459
|
+
|
|
27460
|
+
var css_248z$x = ".index-module_excel__2HJvw {\n display: flex;\n text-align: center;\n padding-top: 20px;\n flex-wrap: wrap;\n justify-content: space-around;\n}\n.index-module_excel__2HJvw .index-module_right__1Vt7A,\n.index-module_excel__2HJvw .index-module_left__2hJIH {\n cursor: pointer;\n border: 1px solid #fff;\n padding-top: 20px;\n}\n.index-module_excel__2HJvw .index-module_right__1Vt7A:hover,\n.index-module_excel__2HJvw .index-module_left__2hJIH:hover {\n border: 1px solid #0074ff;\n}\n.index-module_excel__2HJvw .index-module_upload__bcaRs p,\n.index-module_excel__2HJvw .index-module_download__1j4QW p {\n margin: 0;\n}\n.index-module_excel__2HJvw .index-module_upload__bcaRs .anticon,\n.index-module_excel__2HJvw .index-module_download__1j4QW .anticon {\n font-size: 72px;\n}\n.index-module_excel__2HJvw .index-module_upload__bcaRs > div,\n.index-module_excel__2HJvw .index-module_download__1j4QW > div {\n display: inline-block;\n background: #f8f8f8;\n padding: 40px;\n border-radius: 9999px;\n margin-bottom: 20px;\n}\n.index-module_modal__3D5QY label {\n text-align: center;\n display: block;\n font-weight: bold;\n font-size: 16px;\n margin-bottom: 20px;\n}\n.index-module_modal__3D5QY label .anticon {\n color: #117fff;\n font-size: 22px;\n margin-right: 10px;\n position: relative;\n top: 3px;\n}\n.index-module_modal__3D5QY .index-module_size__2xG_3 {\n color: #0074ff;\n}\n";
|
|
27461
|
+
var styles$1 = {"excel":"index-module_excel__2HJvw","right":"index-module_right__1Vt7A","left":"index-module_left__2hJIH","upload":"index-module_upload__bcaRs","download":"index-module_download__1j4QW","modal":"index-module_modal__3D5QY","size":"index-module_size__2xG_3"};
|
|
27420
27462
|
styleInject(css_248z$x);
|
|
27421
27463
|
|
|
27464
|
+
var ImportBatchGoodsDrawerDigtal = (function () {
|
|
27465
|
+
var controller = Invoice.useInvoiceController();
|
|
27466
|
+
var visible = controller.useMemo(function (s) {
|
|
27467
|
+
return s.goodsListState.importGoods.isVisibleBatchImportDrawer;
|
|
27468
|
+
}, []);
|
|
27469
|
+
var onClose = React__default['default'].useCallback(function () {
|
|
27470
|
+
controller.pipeline( /*#__PURE__*/function () {
|
|
27471
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(s) {
|
|
27472
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
27473
|
+
while (1) {
|
|
27474
|
+
switch (_context.prev = _context.next) {
|
|
27475
|
+
case 0:
|
|
27476
|
+
s.goodsListState.importGoods.isVisibleBatchImportDrawer = false;
|
|
27477
|
+
|
|
27478
|
+
case 1:
|
|
27479
|
+
case "end":
|
|
27480
|
+
return _context.stop();
|
|
27481
|
+
}
|
|
27482
|
+
}
|
|
27483
|
+
}, _callee);
|
|
27484
|
+
}));
|
|
27485
|
+
|
|
27486
|
+
return function (_x) {
|
|
27487
|
+
return _ref.apply(this, arguments);
|
|
27488
|
+
};
|
|
27489
|
+
}())();
|
|
27490
|
+
}, [controller]);
|
|
27491
|
+
|
|
27492
|
+
var _beforeUpload = React__default['default'].useCallback( /*#__PURE__*/function () {
|
|
27493
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(e) {
|
|
27494
|
+
var type,
|
|
27495
|
+
_args2 = arguments;
|
|
27496
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
27497
|
+
while (1) {
|
|
27498
|
+
switch (_context2.prev = _context2.next) {
|
|
27499
|
+
case 0:
|
|
27500
|
+
type = _args2.length > 1 && _args2[1] !== undefined ? _args2[1] : 'xls';
|
|
27501
|
+
|
|
27502
|
+
if (controller.importInvoiceLines) {
|
|
27503
|
+
controller.importInvoiceLines(e, type);
|
|
27504
|
+
}
|
|
27505
|
+
|
|
27506
|
+
return _context2.abrupt("return", false);
|
|
27507
|
+
|
|
27508
|
+
case 3:
|
|
27509
|
+
case "end":
|
|
27510
|
+
return _context2.stop();
|
|
27511
|
+
}
|
|
27512
|
+
}
|
|
27513
|
+
}, _callee2);
|
|
27514
|
+
}));
|
|
27515
|
+
|
|
27516
|
+
return function (_x2) {
|
|
27517
|
+
return _ref2.apply(this, arguments);
|
|
27518
|
+
};
|
|
27519
|
+
}(), [controller]);
|
|
27520
|
+
|
|
27521
|
+
var downloadInvoiceTempalte = function downloadInvoiceTempalte() {
|
|
27522
|
+
if (controller.downloadInvoiceTempalte) {
|
|
27523
|
+
controller.downloadInvoiceTempalte();
|
|
27524
|
+
}
|
|
27525
|
+
};
|
|
27526
|
+
|
|
27527
|
+
return /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX4.Drawer, {
|
|
27528
|
+
title: "\u6279\u91CF\u5BFC\u5165",
|
|
27529
|
+
placement: "right",
|
|
27530
|
+
// closable={false}
|
|
27531
|
+
destroyOnClose: true,
|
|
27532
|
+
width: 500,
|
|
27533
|
+
onClose: onClose,
|
|
27534
|
+
visible: visible
|
|
27535
|
+
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
27536
|
+
className: styles$1.excel
|
|
27537
|
+
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
27538
|
+
className: styles$1.left
|
|
27539
|
+
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
27540
|
+
className: styles$1.download,
|
|
27541
|
+
onClick: downloadInvoiceTempalte
|
|
27542
|
+
}, /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement(Icon, {
|
|
27543
|
+
component: SvgDownload$1
|
|
27544
|
+
})), /*#__PURE__*/React__default['default'].createElement("p", {
|
|
27545
|
+
style: {
|
|
27546
|
+
fontWeight: 'bold'
|
|
27547
|
+
}
|
|
27548
|
+
}, "Excel \u6A21\u677F\u4E0B\u8F7D"), /*#__PURE__*/React__default['default'].createElement("p", null, "\u70B9\u51FB\u56FE\u6807\u4E0B\u8F7D\u6A21\u677F"))), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
27549
|
+
className: styles$1.right
|
|
27550
|
+
}, /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX4.Upload, {
|
|
27551
|
+
showUploadList: false,
|
|
27552
|
+
beforeUpload: function beforeUpload(e) {
|
|
27553
|
+
_beforeUpload(e, 'xls');
|
|
27554
|
+
},
|
|
27555
|
+
accept: ".xlsx,.xls"
|
|
27556
|
+
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
27557
|
+
className: styles$1.upload
|
|
27558
|
+
}, /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement(Icon, {
|
|
27559
|
+
component: SvgUpload$1
|
|
27560
|
+
})), /*#__PURE__*/React__default['default'].createElement("p", {
|
|
27561
|
+
style: {
|
|
27562
|
+
fontWeight: 'bold'
|
|
27563
|
+
}
|
|
27564
|
+
}, "Excel \u4E0A\u4F20"), /*#__PURE__*/React__default['default'].createElement("p", null, "\u70B9\u51FB\u56FE\u6807\u4E0A\u4F20Excel\u6587\u4EF6"))))));
|
|
27565
|
+
});
|
|
27566
|
+
|
|
27567
|
+
var css_248z$y = ".kts-invoice-operate-goods-endow-code-button-list {\n display: flex;\n flex-direction: column;\n}\n.kts-invoice-operate-goods-endow-code-button-list > button {\n margin-bottom: 10px;\n}\n";
|
|
27568
|
+
styleInject(css_248z$y);
|
|
27569
|
+
|
|
27422
27570
|
var TreeNode = ktsComponentsAntdX3.Tree.TreeNode;
|
|
27423
27571
|
var confirm = ktsComponentsAntdX3.Modal.confirm;
|
|
27424
27572
|
var EndowCodeDrawer = (function () {
|
|
@@ -28892,11 +29040,11 @@ var Digtal = function Digtal(props) {
|
|
|
28892
29040
|
/** 特殊信息 */
|
|
28893
29041
|
, props.sign || /*#__PURE__*/React__default['default'].createElement(SignDigtal, null)
|
|
28894
29042
|
/** 落款 */
|
|
28895
|
-
), /*#__PURE__*/React__default['default'].createElement(ImportGoodsDrawer, null), /*#__PURE__*/React__default['default'].createElement(EndowCodeDrawer, null));
|
|
29043
|
+
), /*#__PURE__*/React__default['default'].createElement(ImportBatchGoodsDrawerDigtal, null), " ", /*#__PURE__*/React__default['default'].createElement(ImportGoodsDrawer, null), /*#__PURE__*/React__default['default'].createElement(EndowCodeDrawer, null));
|
|
28896
29044
|
};
|
|
28897
29045
|
|
|
28898
|
-
var css_248z$
|
|
28899
|
-
styleInject(css_248z$
|
|
29046
|
+
var css_248z$z = ".taxdetailsbox {\n display: flex;\n justify-content: flex-start;\n flex-direction: row;\n}\n.taxdetailsbox .taxrightbox {\n width: 340px;\n position: absolute;\n right: 30px;\n top: 79px;\n bottom: 50px;\n min-height: 300px;\n}\n.taxdetailsbox .taxrightbox .taxdesc {\n height: calc(100vh - 323px);\n min-height: 105px;\n overflow: auto;\n}\n";
|
|
29047
|
+
styleInject(css_248z$z);
|
|
28900
29048
|
|
|
28901
29049
|
function TaxClassificationModal(props) {
|
|
28902
29050
|
var _props$info6;
|
package/package.json
CHANGED
|
@@ -14,7 +14,7 @@ export default () => {
|
|
|
14
14
|
return (
|
|
15
15
|
<>
|
|
16
16
|
<Button style={{ marginBottom: 10 }} onClick={async () => { console.log('===> 当前组件状态', await controller.validateFields()); }} >获取数据</Button>
|
|
17
|
-
<Invoice controller={controller} />
|
|
17
|
+
<Invoice invoiceType='digtal' controller={controller} />
|
|
18
18
|
</>
|
|
19
19
|
);
|
|
20
20
|
};
|
package/src/Invoice/index.tsx
CHANGED
|
@@ -25,6 +25,7 @@ import FreightList from './ui/digtal/FreightList';
|
|
|
25
25
|
import ImportBuyerDrawer from './ui/default/ImportBuyerDrawer';
|
|
26
26
|
import ImportGoodsDrawer from './ui/default/ImportGoodsDrawer';
|
|
27
27
|
import ImportBatchGoodsDrawer from './ui/default/ImportBatchGoodsDrawer';
|
|
28
|
+
import ImportBatchGoodsDrawerDigtal from './ui/digtal/ImportBatchGoodsDrawer';
|
|
28
29
|
import EndowCodeDrawer from './ui/default/EndowCodeDrawer';
|
|
29
30
|
import AddComparisonDrawer from './ui/default/AddComparisonDrawer';
|
|
30
31
|
// import { create, all } from 'mathjs';
|
|
@@ -187,7 +188,7 @@ const Digtal = (props: IInvoiceProps) => {
|
|
|
187
188
|
{props.specialInfor /** 特殊信息 */}
|
|
188
189
|
{props.sign || <SignDigtal /> /** 落款 */}
|
|
189
190
|
</div>
|
|
190
|
-
|
|
191
|
+
<ImportBatchGoodsDrawerDigtal /> {/** 批量导入商品 */}
|
|
191
192
|
<ImportGoodsDrawer />{ /** 导入货品的抽屉 */}
|
|
192
193
|
<EndowCodeDrawer />{ /** 给货品赋码的抽屉 */}
|
|
193
194
|
</InvoiceContext.Provider>
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import Invoice from '../../../../..';
|
|
3
|
-
import { Button } from 'kts-
|
|
3
|
+
import { Button } from 'kts-xui';
|
|
4
|
+
import { mode } from 'mathjs';
|
|
4
5
|
|
|
5
6
|
export default () => {
|
|
6
7
|
const controller = Invoice.useInvoiceController();
|
|
7
8
|
|
|
8
9
|
const model = controller.useMemo(s => s.model, []);
|
|
9
10
|
|
|
10
|
-
|
|
11
11
|
const onClick = React.useCallback(() => {
|
|
12
12
|
controller.pipeline(async (s) => {
|
|
13
13
|
s.goodsListState.importGoods.isVisibleBatchImportDrawer = true
|
|
@@ -18,7 +18,7 @@ export default () => {
|
|
|
18
18
|
if (model === 'readOnly') return <></>;
|
|
19
19
|
|
|
20
20
|
return (
|
|
21
|
-
<Button onClick={onClick}>
|
|
21
|
+
<Button size='small' onClick={onClick}>
|
|
22
22
|
批量导入
|
|
23
23
|
</Button>
|
|
24
24
|
);
|