kts-component-invoice-operate 3.2.4 → 3.2.6

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 CHANGED
@@ -15062,8 +15062,7 @@ function SvgPlus$1(props) {
15062
15062
  return /*#__PURE__*/createElement("svg", _extends$8({
15063
15063
  xmlns: "http://www.w3.org/2000/svg",
15064
15064
  width: 16,
15065
- height: 15,
15066
- fill: "none"
15065
+ height: 15
15067
15066
  }, props), _g$2 || (_g$2 = /*#__PURE__*/createElement("g", {
15068
15067
  clipPath: "url(#plus_svg__clip0_715_360)"
15069
15068
  }, /*#__PURE__*/createElement("path", {
@@ -16333,11 +16332,11 @@ var useColumns$1 = (function (form) {
16333
16332
  type: "link",
16334
16333
  style: {
16335
16334
  padding: 0,
16336
- width: 20
16335
+ width: 20,
16336
+ fontSize: 20,
16337
+ fill: '#0074ff'
16337
16338
  },
16338
- icon: React.createElement(Icon, {
16339
- component: SvgPlus$1
16340
- }),
16339
+ icon: React.createElement(SvgPlus$1, null),
16341
16340
  onClick: controller.pipeline( /*#__PURE__*/function () {
16342
16341
  var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(s) {
16343
16342
  return _regeneratorRuntime().wrap(function _callee3$(_context3) {
@@ -17911,9 +17910,7 @@ var useAddDiscountRowButton$1 = (function () {
17911
17910
  size: 'small',
17912
17911
  onClick: onOpen,
17913
17912
  disabled: disabled,
17914
- icon: React.createElement(Icon, {
17915
- component: SvgAdd
17916
- })
17913
+ icon: React.createElement(SvgAdd, null)
17917
17914
  }, "\u6DFB\u52A0\u6298\u6263"), React.createElement(AddDiscountRowDrawer, {
17918
17915
  open: open,
17919
17916
  onClose: onClose
@@ -18480,7 +18477,15 @@ function InvoiceTypeModal(props) {
18480
18477
  }
18481
18478
  }
18482
18479
  }, _callee);
18483
- })), [props.onOk]);
18480
+ })), [props.onOk, form]);
18481
+ var onChangeBillingType = React.useCallback(function (e) {
18482
+ props.onChange && props.onChange(e.target.value);
18483
+ form.setFieldsValue({
18484
+ invoiceType: null,
18485
+ business: null
18486
+ });
18487
+ setValues(form.getFieldsValue());
18488
+ }, [props.onChange, form]);
18484
18489
  React.useEffect(function () {
18485
18490
  if (props.open) {
18486
18491
  var values = {
@@ -18520,9 +18525,7 @@ function InvoiceTypeModal(props) {
18520
18525
  className: "goods-list-digtal-reselect-invoice-typeModal-radio",
18521
18526
  optionType: "button",
18522
18527
  disabled: disableds.indexOf('billingType') >= 0,
18523
- onChange: function onChange(e) {
18524
- props.onChange && props.onChange(e.target.value);
18525
- },
18528
+ onChange: onChangeBillingType,
18526
18529
  options: [{
18527
18530
  label: '数电发票',
18528
18531
  value: 'digital'
package/dist/index.js CHANGED
@@ -15072,8 +15072,7 @@ function SvgPlus$1(props) {
15072
15072
  return /*#__PURE__*/React.createElement("svg", _extends$8({
15073
15073
  xmlns: "http://www.w3.org/2000/svg",
15074
15074
  width: 16,
15075
- height: 15,
15076
- fill: "none"
15075
+ height: 15
15077
15076
  }, props), _g$2 || (_g$2 = /*#__PURE__*/React.createElement("g", {
15078
15077
  clipPath: "url(#plus_svg__clip0_715_360)"
15079
15078
  }, /*#__PURE__*/React.createElement("path", {
@@ -16343,11 +16342,11 @@ var useColumns$1 = (function (form) {
16343
16342
  type: "link",
16344
16343
  style: {
16345
16344
  padding: 0,
16346
- width: 20
16345
+ width: 20,
16346
+ fontSize: 20,
16347
+ fill: '#0074ff'
16347
16348
  },
16348
- icon: React__default['default'].createElement(Icon, {
16349
- component: SvgPlus$1
16350
- }),
16349
+ icon: React__default['default'].createElement(SvgPlus$1, null),
16351
16350
  onClick: controller.pipeline( /*#__PURE__*/function () {
16352
16351
  var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(s) {
16353
16352
  return _regeneratorRuntime().wrap(function _callee3$(_context3) {
@@ -17921,9 +17920,7 @@ var useAddDiscountRowButton$1 = (function () {
17921
17920
  size: 'small',
17922
17921
  onClick: onOpen,
17923
17922
  disabled: disabled,
17924
- icon: React__default['default'].createElement(Icon, {
17925
- component: SvgAdd
17926
- })
17923
+ icon: React__default['default'].createElement(SvgAdd, null)
17927
17924
  }, "\u6DFB\u52A0\u6298\u6263"), React__default['default'].createElement(AddDiscountRowDrawer, {
17928
17925
  open: open,
17929
17926
  onClose: onClose
@@ -18490,7 +18487,15 @@ function InvoiceTypeModal(props) {
18490
18487
  }
18491
18488
  }
18492
18489
  }, _callee);
18493
- })), [props.onOk]);
18490
+ })), [props.onOk, form]);
18491
+ var onChangeBillingType = React__default['default'].useCallback(function (e) {
18492
+ props.onChange && props.onChange(e.target.value);
18493
+ form.setFieldsValue({
18494
+ invoiceType: null,
18495
+ business: null
18496
+ });
18497
+ setValues(form.getFieldsValue());
18498
+ }, [props.onChange, form]);
18494
18499
  React__default['default'].useEffect(function () {
18495
18500
  if (props.open) {
18496
18501
  var values = {
@@ -18530,9 +18535,7 @@ function InvoiceTypeModal(props) {
18530
18535
  className: "goods-list-digtal-reselect-invoice-typeModal-radio",
18531
18536
  optionType: "button",
18532
18537
  disabled: disableds.indexOf('billingType') >= 0,
18533
- onChange: function onChange(e) {
18534
- props.onChange && props.onChange(e.target.value);
18535
- },
18538
+ onChange: onChangeBillingType,
18536
18539
  options: [{
18537
18540
  label: '数电发票',
18538
18541
  value: 'digital'
package/docs/index.md CHANGED
@@ -2,4 +2,4 @@
2
2
 
3
3
  npm 地址:https://www.npmjs.com/package/kts-component-invoice-operate
4
4
 
5
- ### 版本 3.0.x
5
+ ### 版本 3.2.5
@@ -0,0 +1,33 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <meta
6
+ name="viewport"
7
+ content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no"
8
+ />
9
+ <link rel="stylesheet" href="/docs-dist/umi.css" />
10
+ <script>
11
+ window.routerBase = "/";
12
+ </script>
13
+ <script>
14
+ //! umi version: 3.5.27
15
+ </script>
16
+ <script>
17
+ !(function () {
18
+ var e = localStorage.getItem("dumi:prefers-color"),
19
+ t = window.matchMedia("(prefers-color-scheme: dark)").matches,
20
+ r = ["light", "dark", "auto"];
21
+ document.documentElement.setAttribute(
22
+ "data-prefers-color",
23
+ e === r[2] ? (t ? r[1] : r[0]) : r.indexOf(e) > -1 ? e : r[0]
24
+ );
25
+ })();
26
+ </script>
27
+ </head>
28
+ <body>
29
+ <div id="root"></div>
30
+
31
+ <script src="/docs-dist/umi.js"></script>
32
+ </body>
33
+ </html>
@@ -0,0 +1,33 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <meta
6
+ name="viewport"
7
+ content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no"
8
+ />
9
+ <link rel="stylesheet" href="/docs-dist/umi.css" />
10
+ <script>
11
+ window.routerBase = "/";
12
+ </script>
13
+ <script>
14
+ //! umi version: 3.5.27
15
+ </script>
16
+ <script>
17
+ !(function () {
18
+ var e = localStorage.getItem("dumi:prefers-color"),
19
+ t = window.matchMedia("(prefers-color-scheme: dark)").matches,
20
+ r = ["light", "dark", "auto"];
21
+ document.documentElement.setAttribute(
22
+ "data-prefers-color",
23
+ e === r[2] ? (t ? r[1] : r[0]) : r.indexOf(e) > -1 ? e : r[0]
24
+ );
25
+ })();
26
+ </script>
27
+ </head>
28
+ <body>
29
+ <div id="root"></div>
30
+
31
+ <script src="/docs-dist/umi.js"></script>
32
+ </body>
33
+ </html>
@@ -0,0 +1,12 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 15 15" fill="none">
2
+ <g clip-path="url(#clip0_715_372)">
3
+ <path d="M7.5 14.5312C3.61687 14.5312 0.46875 11.3831 0.46875 7.5C0.46875 3.61687 3.61687 0.46875 7.5 0.46875C11.3831 0.46875 14.5312 3.61687 14.5312 7.5C14.5312 11.3831 11.3831 14.5312 7.5 14.5312ZM7.5 13.5938C10.8656 13.5938 13.5938 10.8656 13.5938 7.5C13.5938 4.13438 10.8656 1.40625 7.5 1.40625C4.13438 1.40625 1.40625 4.13438 1.40625 7.5C1.40625 10.8656 4.13438 13.5938 7.5 13.5938Z" />
4
+ <path d="M3.75 7.96875C3.62568 7.96875 3.50645 7.91936 3.41854 7.83146C3.33064 7.74355 3.28125 7.62432 3.28125 7.5C3.28125 7.37568 3.33064 7.25645 3.41854 7.16854C3.50645 7.08064 3.62568 7.03125 3.75 7.03125H11.25C11.3743 7.03125 11.4935 7.08064 11.5815 7.16854C11.6694 7.25645 11.7188 7.37568 11.7188 7.5C11.7188 7.62432 11.6694 7.74355 11.5815 7.83146C11.4935 7.91936 11.3743 7.96875 11.25 7.96875H3.75Z" />
5
+ <path d="M7.03125 3.75C7.03125 3.62568 7.08064 3.50645 7.16854 3.41854C7.25645 3.33064 7.37568 3.28125 7.5 3.28125C7.62432 3.28125 7.74355 3.33064 7.83146 3.41854C7.91936 3.50645 7.96875 3.62568 7.96875 3.75V11.25C7.96875 11.3743 7.91936 11.4935 7.83146 11.5815C7.74355 11.6694 7.62432 11.7188 7.5 11.7188C7.37568 11.7188 7.25645 11.6694 7.16854 11.5815C7.08064 11.4935 7.03125 11.3743 7.03125 11.25V3.75Z" />
6
+ </g>
7
+ <defs>
8
+ <clipPath id="clip0_715_372">
9
+ <rect width="15" height="15" />
10
+ </clipPath>
11
+ </defs>
12
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="12" height="13" viewBox="0 0 12 13" fill="none">
2
+ <path d="M2.94338 4.42663C3.03458 4.42662 3.12571 4.46481 3.19459 4.54096L5.99164 7.6327L8.78868 4.54096C8.92463 4.39067 9.14733 4.38824 9.28606 4.53554C9.4248 4.68285 9.42705 4.92408 9.29107 5.07437L6.24283 8.44378C6.17667 8.5169 6.08613 8.55811 5.99164 8.55811C5.89714 8.55811 5.80659 8.5169 5.74044 8.44378L2.69221 5.07437C2.55623 4.92408 2.55849 4.68285 2.69722 4.53554C2.76567 4.46287 2.85455 4.42665 2.94338 4.42663Z"/>
3
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="13" height="13" viewBox="0 0 13 13" fill="none">
2
+ <path d="M9.55662 8.57337C9.46542 8.57338 9.37429 8.53519 9.30541 8.45904L6.50836 5.3673L3.71132 8.45904C3.57537 8.60933 3.35267 8.61176 3.21394 8.46446C3.0752 8.31715 3.07295 8.07592 3.20893 7.92563L6.25717 4.55622C6.32333 4.4831 6.41387 4.44189 6.50836 4.44189C6.60286 4.44189 6.69341 4.4831 6.75956 4.55622L9.80779 7.92563C9.94377 8.07592 9.94151 8.31715 9.80278 8.46446C9.73433 8.53713 9.64545 8.57335 9.55662 8.57337Z"/>
3
+ </svg>
@@ -0,0 +1 @@
1
+ <?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1586510245354" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4976" width="16" height="16" xmlns:xlink="http://www.w3.org/1999/xlink"><defs><style type="text/css"></style></defs><path d="M510.677 83.529c60.891 0 119.75 13.191 174.046 38.055l-40.087 70.028 202.97-1.016-101.99-175.063-35.52 61.909c-61.908-29.433-129.903-44.657-199.419-44.657-257.266 0-466.833 209.566-466.833 466.833 0 93.368 27.4 183.69 79.668 261.326l42.116-28.415c-46.684-69.012-71.039-149.183-71.039-232.91 0-229.355 186.729-416.09 416.088-416.09z m425.225 223.774l-46.175 20.802c24.356 53.788 37.039 111.637 37.039 171.512 0 229.358-186.73 416.089-416.089 416.089-46.684 0-92.351-7.608-135.99-22.832l34-65.968-202.468 10.148 110.116 170.5 35.52-69.012c50.738 18.777 104.526 27.908 159.33 27.908 257.265 0 466.832-209.567 466.832-466.833-0.507-66.98-14.715-131.93-42.115-192.314z m0 0" p-id="4977"></path><path d="M317.096 1023.06L192.387 829.965 421.78 818.47l-36.039 69.924c40.06 12.971 82.045 19.543 124.936 19.543 225.147 0 408.317-183.17 408.317-408.317 0-58.417-12.23-115.043-36.348-168.305l-3.212-7.094 60.343-27.186 3.203 7.059c27.889 61.462 42.292 127.226 42.81 195.467 0 261.757-212.908 474.664-474.606 474.664-54.211 0-106.5-8.76-155.546-26.05l-38.54 74.885zM220.05 844.143l95.524 147.906 32.521-63.187 6.458 2.39c49.176 18.198 101.874 27.425 156.632 27.425 253.126 0 459.06-205.933 459.06-459.06-0.48-63.377-13.353-124.59-38.275-182.018l-32.013 14.422c22.95 53.205 34.582 109.55 34.582 167.595 0 233.719-190.143 423.862-423.862 423.862-47.682 0-94.297-7.828-138.55-23.266l-8.448-2.948 31.914-61.92-175.543 8.8z m-98.64-72.405l-4.345-6.455C64.08 686.583 36.071 594.717 36.071 499.617c0-261.698 212.907-474.605 474.605-474.605 68.724 0 134.705 14.25 196.232 42.368L745.564 0.005 861.09 198.301l-229.898 1.151 42.514-74.27c-51.835-22.486-106.64-33.88-163.03-33.88-225.147 0-408.317 183.17-408.317 408.316 0 82.11 24.104 161.145 69.705 228.556l4.36 6.445-55.014 37.12zM510.677 40.557c-253.126 0-459.06 205.934-459.06 459.06 0 89.396 25.578 175.828 74.053 250.495l29.221-19.715c-44.563-68.554-68.074-148.169-68.074-230.78 0-233.717 190.143-423.861 423.861-423.861 61.471 0 121.117 13.04 177.283 38.76l7.738 3.543-37.618 65.714 176.044-0.882-88.458-151.83-32.41 56.489-6.498-3.09C645.482 55.329 579.51 40.558 510.677 40.558z" p-id="4978"></path><path d="M320.113 320.409h383.973v63.55H320.113z m0.184 127.952H704.27v63.55H320.297z m-0.184 127.803h383.973v63.55H320.113z" p-id="4979"></path></svg>
@@ -0,0 +1,12 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none">
2
+ <g clip-path="url(#clip0_695_1221)">
3
+ <path d="M7.99978 0.888916C4.08867 0.888916 0.888672 4.08892 0.888672 8.00003C0.888672 11.9111 4.08867 15.1111 7.99978 15.1111C11.9109 15.1111 15.1109 11.9111 15.1109 8.00003C15.1109 4.08892 11.9109 0.888916 7.99978 0.888916ZM7.99978 14.2222C4.53312 14.2222 1.77756 11.4667 1.77756 8.00003C1.77756 4.53336 4.53312 1.7778 7.99978 1.7778C11.4664 1.7778 14.222 4.53336 14.222 8.00003C14.222 11.4667 11.4664 14.2222 7.99978 14.2222Z" fill="#333333"/>
4
+ <path d="M10.7019 11.3288L4.72949 5.35818L5.35794 4.72974L11.3295 10.7004L10.7019 11.3288Z" fill="#333333"/>
5
+ <path d="M4.66895 10.7023L10.6396 4.73071L11.2681 5.35916L5.29739 11.3307L4.66895 10.7023Z" fill="#333333"/>
6
+ </g>
7
+ <defs>
8
+ <clipPath id="clip0_695_1221">
9
+ <rect width="16" height="16" fill="white"/>
10
+ </clipPath>
11
+ </defs>
12
+ </svg>
@@ -0,0 +1 @@
1
+ <svg t="1656901778998" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="9253" width="200" height="200"><path d="M985.781333 918.594133 820.773333 765.5264c27.3728-32.973867 49.6544-69.5776 66.436267-109.258667 22.933333-54.218667 34.561067-111.7952 34.561067-171.1296 0-59.333333-11.627733-116.910933-34.561067-171.1296-22.142933-52.354133-53.837867-99.365333-94.200533-139.729067S705.633067 102.222933 653.28 80.08c-54.218667-22.933333-111.7952-34.561067-171.1296-34.561067S365.240533 57.147733 311.021867 80.08c-52.354133 22.142933-99.365333 53.8368-139.729067 94.200533s-72.0576 87.374933-94.200533 139.729067c-22.932267 54.218667-34.56 111.7952-34.56 171.1296 0 59.3344 11.627733 116.910933 34.56 171.1296 22.144 52.354133 53.837867 99.365333 94.200533 139.729067s87.374933 72.0576 139.729067 94.200533c54.218667 22.932267 111.7952 34.56 171.1296 34.56s116.910933-11.627733 171.1296-34.56c45.352533-19.181867 86.686933-45.543467 123.172267-78.487467L942.256 965.514667c6.16 5.714133 13.966933 8.539733 21.755733 8.539733 8.593067 0 17.163733-3.441067 23.467733-10.237867C999.4976 950.8608 998.738133 930.612267 985.781333 918.594133zM482.151467 860.7584c-207.117867 0-375.620267-168.5024-375.620267-375.620267 0-207.1168 168.5024-375.6192 375.620267-375.6192S857.770667 278.021333 857.770667 485.138133C857.770667 692.256 689.268267 860.7584 482.151467 860.7584z" p-id="9254"></path></svg>
@@ -0,0 +1,12 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="15" viewBox="0 0 16 15" fill="none">
2
+ <g clip-path="url(#clip0_715_360)">
3
+ <path d="M8 14.5312C4.11687 14.5312 0.96875 11.3831 0.96875 7.5C0.96875 3.61687 4.11687 0.46875 8 0.46875C11.8831 0.46875 15.0312 3.61687 15.0312 7.5C15.0312 11.3831 11.8831 14.5312 8 14.5312ZM8 13.5938C11.3656 13.5938 14.0938 10.8656 14.0938 7.5C14.0938 4.13438 11.3656 1.40625 8 1.40625C4.63438 1.40625 1.90625 4.13438 1.90625 7.5C1.90625 10.8656 4.63438 13.5938 8 13.5938Z"/>
4
+ <path d="M4.25 7.96875C4.12568 7.96875 4.00645 7.91936 3.91854 7.83146C3.83064 7.74355 3.78125 7.62432 3.78125 7.5C3.78125 7.37568 3.83064 7.25645 3.91854 7.16854C4.00645 7.08064 4.12568 7.03125 4.25 7.03125H11.75C11.8743 7.03125 11.9935 7.08064 12.0815 7.16854C12.1694 7.25645 12.2188 7.37568 12.2188 7.5C12.2188 7.62432 12.1694 7.74355 12.0815 7.83146C11.9935 7.91936 11.8743 7.96875 11.75 7.96875H4.25Z"/>
5
+ <path d="M7.53125 3.75C7.53125 3.62568 7.58064 3.50645 7.66854 3.41854C7.75645 3.33064 7.87568 3.28125 8 3.28125C8.12432 3.28125 8.24355 3.33064 8.33146 3.41854C8.41936 3.50645 8.46875 3.62568 8.46875 3.75V11.25C8.46875 11.3743 8.41936 11.4935 8.33146 11.5815C8.24355 11.6694 8.12432 11.7188 8 11.7188C7.87568 11.7188 7.75645 11.6694 7.66854 11.5815C7.58064 11.4935 7.53125 11.3743 7.53125 11.25V3.75Z"/>
6
+ </g>
7
+ <defs>
8
+ <clipPath id="clip0_715_360">
9
+ <rect width="15" height="15" transform="translate(0.5)"/>
10
+ </clipPath>
11
+ </defs>
12
+ </svg>
@@ -0,0 +1 @@
1
+ <?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1574652728953" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4119" xmlns:xlink="http://www.w3.org/1999/xlink"><defs><style type="text/css"></style></defs><path d="M512 512m-96 0a1.5 1.5 0 1 0 192 0 1.5 1.5 0 1 0-192 0Z" p-id="4120"></path><path d="M512 96.64m-96 0a1.5 1.5 0 1 0 192 0 1.5 1.5 0 1 0-192 0Z" p-id="4121"></path><path d="M512 927.36m-96 0a1.5 1.5 0 1 0 192 0 1.5 1.5 0 1 0-192 0Z" p-id="4122"></path></svg>