kts-component-invoice-operate 2.0.2 → 2.0.5
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/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/IGood/index.d.ts +7 -7
- package/dist/index.esm.js +1 -12
- package/dist/index.js +1 -12
- package/package.json +1 -1
- package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/IGood/index.ts +7 -7
- package/src/Invoice/_test/importGoods/index.tsx +25 -8
- package/src/Invoice/tools/itemName/index.ts +0 -1
- package/src/Invoice/ui/AddComparisonDrawer/index.tsx +2 -2
- package/src/Invoice/ui/GoodsList/ui/BulkMenu/hooks/useCommodityComparisonButton/index.tsx +1 -1
- package/docs-dist/404.html +0 -33
- package/docs-dist/index.html +0 -33
- package/docs-dist/static/auto.a6cd905c.svg +0 -1
- package/docs-dist/static/magnifier.2b26be6e.svg +0 -1
- package/docs-dist/static/spot.42e620e1.svg +0 -1
- package/docs-dist/umi.css +0 -21
- package/docs-dist/umi.js +0 -1
package/dist/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/IGood/index.d.ts
CHANGED
|
@@ -6,19 +6,19 @@ export default interface IGood {
|
|
|
6
6
|
discountGroup?: string;
|
|
7
7
|
/** 发票ID */
|
|
8
8
|
id?: string;
|
|
9
|
-
/** 商品编码(
|
|
9
|
+
/** 商品编码(对方-购买方) */
|
|
10
10
|
itemCode?: string;
|
|
11
|
-
/** 货物名称(
|
|
11
|
+
/** 货物名称(对方-购买方) */
|
|
12
12
|
itemName?: string;
|
|
13
|
-
/** 单位(
|
|
13
|
+
/** 单位(对方-购买方) */
|
|
14
14
|
unit?: string;
|
|
15
|
-
/** 货物规格型号(
|
|
15
|
+
/** 货物规格型号(对方-购买方) */
|
|
16
16
|
itemModelName?: string;
|
|
17
|
-
/** 商品编码(
|
|
17
|
+
/** 商品编码(我方-销售) */
|
|
18
18
|
itemCodeSelf?: string;
|
|
19
|
-
/** 货物名称(
|
|
19
|
+
/** 货物名称(我方-销售) */
|
|
20
20
|
itemNameSelf?: string;
|
|
21
|
-
/** 货物规格型号(
|
|
21
|
+
/** 货物规格型号(我方-销售) */
|
|
22
22
|
itemModelNameSelf?: string;
|
|
23
23
|
/** 数量 */
|
|
24
24
|
quantity?: number;
|
package/dist/index.esm.js
CHANGED
|
@@ -2934,7 +2934,6 @@ var useEndowCodeButton = (function () {
|
|
|
2934
2934
|
|
|
2935
2935
|
/** 拆分全称加简称 */
|
|
2936
2936
|
var getSN = function getSN(value) {
|
|
2937
|
-
debugger;
|
|
2938
2937
|
if (!value) return undefined;
|
|
2939
2938
|
var arr = value.match(/\*[^*]+\*/);
|
|
2940
2939
|
|
|
@@ -3044,7 +3043,7 @@ var useCommodityComparisonButton = (function () {
|
|
|
3044
3043
|
|
|
3045
3044
|
case 8:
|
|
3046
3045
|
newGoods = _context.sent;
|
|
3047
|
-
newGoods.
|
|
3046
|
+
newGoods.forEach(function (e) {
|
|
3048
3047
|
var _getSN3, _getSN4;
|
|
3049
3048
|
|
|
3050
3049
|
var vt = s.goodsListState.goodsMap.get(e.$index);
|
|
@@ -13615,16 +13614,6 @@ function AddComparisonDrawer() {
|
|
|
13615
13614
|
gutter: [8, 8]
|
|
13616
13615
|
}, React.createElement(Col, {
|
|
13617
13616
|
span: 12
|
|
13618
|
-
}, React.createElement(Form$1.Item, {
|
|
13619
|
-
name: "itemCodeSelf",
|
|
13620
|
-
label: "\u6211\u65B9\u5546\u54C1\u7F16\u7801"
|
|
13621
|
-
}, React.createElement(Input, null))), React.createElement(Col, {
|
|
13622
|
-
span: 12
|
|
13623
|
-
}, React.createElement(Form$1.Item, {
|
|
13624
|
-
name: "itemCode",
|
|
13625
|
-
label: "\u5BF9\u65B9\u5546\u54C1\u7F16\u7801"
|
|
13626
|
-
}, React.createElement(Input, null))), React.createElement(Col, {
|
|
13627
|
-
span: 12
|
|
13628
13617
|
}, React.createElement(Form$1.Item, {
|
|
13629
13618
|
name: "itemNameSelf",
|
|
13630
13619
|
label: "\u6211\u65B9\u5546\u54C1\u540D\u79F0"
|
package/dist/index.js
CHANGED
|
@@ -2944,7 +2944,6 @@ var useEndowCodeButton = (function () {
|
|
|
2944
2944
|
|
|
2945
2945
|
/** 拆分全称加简称 */
|
|
2946
2946
|
var getSN = function getSN(value) {
|
|
2947
|
-
debugger;
|
|
2948
2947
|
if (!value) return undefined;
|
|
2949
2948
|
var arr = value.match(/\*[^*]+\*/);
|
|
2950
2949
|
|
|
@@ -3054,7 +3053,7 @@ var useCommodityComparisonButton = (function () {
|
|
|
3054
3053
|
|
|
3055
3054
|
case 8:
|
|
3056
3055
|
newGoods = _context.sent;
|
|
3057
|
-
newGoods.
|
|
3056
|
+
newGoods.forEach(function (e) {
|
|
3058
3057
|
var _getSN3, _getSN4;
|
|
3059
3058
|
|
|
3060
3059
|
var vt = s.goodsListState.goodsMap.get(e.$index);
|
|
@@ -13625,16 +13624,6 @@ function AddComparisonDrawer() {
|
|
|
13625
13624
|
gutter: [8, 8]
|
|
13626
13625
|
}, React__default['default'].createElement(ktsComponentsAntdX3.Col, {
|
|
13627
13626
|
span: 12
|
|
13628
|
-
}, React__default['default'].createElement(ktsXui.Form.Item, {
|
|
13629
|
-
name: "itemCodeSelf",
|
|
13630
|
-
label: "\u6211\u65B9\u5546\u54C1\u7F16\u7801"
|
|
13631
|
-
}, React__default['default'].createElement(ktsComponentsAntdX3.Input, null))), React__default['default'].createElement(ktsComponentsAntdX3.Col, {
|
|
13632
|
-
span: 12
|
|
13633
|
-
}, React__default['default'].createElement(ktsXui.Form.Item, {
|
|
13634
|
-
name: "itemCode",
|
|
13635
|
-
label: "\u5BF9\u65B9\u5546\u54C1\u7F16\u7801"
|
|
13636
|
-
}, React__default['default'].createElement(ktsComponentsAntdX3.Input, null))), React__default['default'].createElement(ktsComponentsAntdX3.Col, {
|
|
13637
|
-
span: 12
|
|
13638
13627
|
}, React__default['default'].createElement(ktsXui.Form.Item, {
|
|
13639
13628
|
name: "itemNameSelf",
|
|
13640
13629
|
label: "\u6211\u65B9\u5546\u54C1\u540D\u79F0"
|
package/package.json
CHANGED
|
@@ -10,25 +10,25 @@ export default interface IGood {
|
|
|
10
10
|
/** 发票ID */
|
|
11
11
|
id?: string;
|
|
12
12
|
|
|
13
|
-
/** 商品编码(
|
|
13
|
+
/** 商品编码(对方-购买方) */
|
|
14
14
|
itemCode?: string;
|
|
15
15
|
|
|
16
|
-
/** 货物名称(
|
|
16
|
+
/** 货物名称(对方-购买方) */
|
|
17
17
|
itemName?: string;
|
|
18
18
|
|
|
19
|
-
/** 单位(
|
|
19
|
+
/** 单位(对方-购买方) */
|
|
20
20
|
unit?: string;
|
|
21
21
|
|
|
22
|
-
/** 货物规格型号(
|
|
22
|
+
/** 货物规格型号(对方-购买方) */
|
|
23
23
|
itemModelName?: string;
|
|
24
24
|
|
|
25
|
-
/** 商品编码(
|
|
25
|
+
/** 商品编码(我方-销售) */
|
|
26
26
|
itemCodeSelf?: string;
|
|
27
27
|
|
|
28
|
-
/** 货物名称(
|
|
28
|
+
/** 货物名称(我方-销售) */
|
|
29
29
|
itemNameSelf?: string;
|
|
30
30
|
|
|
31
|
-
/** 货物规格型号(
|
|
31
|
+
/** 货物规格型号(我方-销售) */
|
|
32
32
|
itemModelNameSelf?: string;
|
|
33
33
|
|
|
34
34
|
/** 数量 */
|
|
@@ -37,15 +37,32 @@ class MyInvoiceController extends InvoiceController {
|
|
|
37
37
|
// 设置比对方法
|
|
38
38
|
this.state.goodsListState.productComparison = {
|
|
39
39
|
onComply: async (e: IGood[]) => {
|
|
40
|
-
return e.map(e => {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
40
|
+
// return e.map(e => {
|
|
41
|
+
// return {
|
|
42
|
+
// ...e,
|
|
43
|
+
// itemName: e.itemNameSelf + '(他方)',
|
|
44
|
+
// itemModelName: e.itemModelNameSelf + '(他方)',
|
|
45
|
+
// itemCode: e.itemCodeSelf + '(他方)',
|
|
46
|
+
// }
|
|
47
|
+
// })
|
|
48
|
+
return [
|
|
49
|
+
{
|
|
50
|
+
"itemCodeSelf": null,
|
|
51
|
+
"itemNameSelf": "china",
|
|
52
|
+
"itemModelNameSelf": "xx",
|
|
53
|
+
"itemCode": null,
|
|
54
|
+
"itemName": "中国",
|
|
55
|
+
"itemModelName": "北京房山 "
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"itemCodeSelf": null,
|
|
59
|
+
"itemNameSelf": "china",
|
|
60
|
+
"itemModelNameSelf": "xx",
|
|
61
|
+
"itemCode": null,
|
|
62
|
+
"itemName": "中国",
|
|
63
|
+
"itemModelName": "北京房山 "
|
|
47
64
|
}
|
|
48
|
-
|
|
65
|
+
] as any
|
|
49
66
|
}
|
|
50
67
|
}
|
|
51
68
|
|
|
@@ -77,7 +77,7 @@ export default function AddComparisonDrawer() {
|
|
|
77
77
|
!!good &&
|
|
78
78
|
<Form layout="vertical" style={{ flex: 1 }} form={form} >
|
|
79
79
|
<Row gutter={[8, 8]} >
|
|
80
|
-
<Col span={12}>
|
|
80
|
+
{/* <Col span={12}>
|
|
81
81
|
<Form.Item
|
|
82
82
|
name="itemCodeSelf"
|
|
83
83
|
label="我方商品编码"
|
|
@@ -92,7 +92,7 @@ export default function AddComparisonDrawer() {
|
|
|
92
92
|
>
|
|
93
93
|
<Input />
|
|
94
94
|
</Form.Item>
|
|
95
|
-
</Col>
|
|
95
|
+
</Col> */}
|
|
96
96
|
<Col span={12} >
|
|
97
97
|
<Form.Item
|
|
98
98
|
name="itemNameSelf"
|
package/docs-dist/404.html
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
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>
|
package/docs-dist/index.html
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
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>
|
|
@@ -1 +0,0 @@
|
|
|
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>
|
|
@@ -1 +0,0 @@
|
|
|
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>
|
|
@@ -1 +0,0 @@
|
|
|
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>
|