kts-component-invoice-operate 3.2.249 → 3.2.250
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
|
@@ -10408,7 +10408,8 @@ var itemBlur = /*#__PURE__*/(function () {
|
|
|
10408
10408
|
// 中间数据
|
|
10409
10409
|
between = _objectSpread2({}, record);
|
|
10410
10410
|
between.taxClassificationCode = record.taxClassificationCode;
|
|
10411
|
-
between.shorthand = record.shorthand;
|
|
10411
|
+
between.shorthand = record.shorthand;
|
|
10412
|
+
between.mtzlDm = undefined; // 设置编辑货物
|
|
10412
10413
|
|
|
10413
10414
|
editGood = s.goodsListState.editGood = _objectSpread2(_objectSpread2({}, s.goodsListState.editGood), between); // 导入FORM里
|
|
10414
10415
|
|
|
@@ -10422,22 +10423,41 @@ var itemBlur = /*#__PURE__*/(function () {
|
|
|
10422
10423
|
}
|
|
10423
10424
|
|
|
10424
10425
|
if (!s.goodsListState.isTaxIncluded) {
|
|
10425
|
-
_context.next =
|
|
10426
|
+
_context.next = 14;
|
|
10426
10427
|
break;
|
|
10427
10428
|
}
|
|
10428
10429
|
|
|
10429
|
-
_context.next =
|
|
10430
|
+
_context.next = 12;
|
|
10430
10431
|
return updateUnitPriceExcludingTax(controller, s.goodsListState.form, record);
|
|
10431
10432
|
|
|
10432
|
-
case
|
|
10433
|
-
_context.next =
|
|
10433
|
+
case 12:
|
|
10434
|
+
_context.next = 16;
|
|
10434
10435
|
break;
|
|
10435
10436
|
|
|
10436
|
-
case
|
|
10437
|
-
_context.next =
|
|
10437
|
+
case 14:
|
|
10438
|
+
_context.next = 16;
|
|
10438
10439
|
return updateUnitPriceTax(controller, s.goodsListState.form, record);
|
|
10439
10440
|
|
|
10440
|
-
case
|
|
10441
|
+
case 16:
|
|
10442
|
+
if (!s.goodsListState.isValidateMeiTan) {
|
|
10443
|
+
_context.next = 22;
|
|
10444
|
+
break;
|
|
10445
|
+
}
|
|
10446
|
+
|
|
10447
|
+
_context.next = 19;
|
|
10448
|
+
return s.goodsListState.verifyMeiTanFn(record);
|
|
10449
|
+
|
|
10450
|
+
case 19:
|
|
10451
|
+
_context.t0 = _context.sent;
|
|
10452
|
+
|
|
10453
|
+
if (!(_context.t0 === true)) {
|
|
10454
|
+
_context.next = 22;
|
|
10455
|
+
break;
|
|
10456
|
+
}
|
|
10457
|
+
|
|
10458
|
+
s.goodsListState.meiTanGoodIndex = [editGood.$index];
|
|
10459
|
+
|
|
10460
|
+
case 22:
|
|
10441
10461
|
case "end":
|
|
10442
10462
|
return _context.stop();
|
|
10443
10463
|
}
|
package/dist/index.js
CHANGED
|
@@ -10418,7 +10418,8 @@ var itemBlur = /*#__PURE__*/(function () {
|
|
|
10418
10418
|
// 中间数据
|
|
10419
10419
|
between = _objectSpread2({}, record);
|
|
10420
10420
|
between.taxClassificationCode = record.taxClassificationCode;
|
|
10421
|
-
between.shorthand = record.shorthand;
|
|
10421
|
+
between.shorthand = record.shorthand;
|
|
10422
|
+
between.mtzlDm = undefined; // 设置编辑货物
|
|
10422
10423
|
|
|
10423
10424
|
editGood = s.goodsListState.editGood = _objectSpread2(_objectSpread2({}, s.goodsListState.editGood), between); // 导入FORM里
|
|
10424
10425
|
|
|
@@ -10432,22 +10433,41 @@ var itemBlur = /*#__PURE__*/(function () {
|
|
|
10432
10433
|
}
|
|
10433
10434
|
|
|
10434
10435
|
if (!s.goodsListState.isTaxIncluded) {
|
|
10435
|
-
_context.next =
|
|
10436
|
+
_context.next = 14;
|
|
10436
10437
|
break;
|
|
10437
10438
|
}
|
|
10438
10439
|
|
|
10439
|
-
_context.next =
|
|
10440
|
+
_context.next = 12;
|
|
10440
10441
|
return updateUnitPriceExcludingTax(controller, s.goodsListState.form, record);
|
|
10441
10442
|
|
|
10442
|
-
case
|
|
10443
|
-
_context.next =
|
|
10443
|
+
case 12:
|
|
10444
|
+
_context.next = 16;
|
|
10444
10445
|
break;
|
|
10445
10446
|
|
|
10446
|
-
case
|
|
10447
|
-
_context.next =
|
|
10447
|
+
case 14:
|
|
10448
|
+
_context.next = 16;
|
|
10448
10449
|
return updateUnitPriceTax(controller, s.goodsListState.form, record);
|
|
10449
10450
|
|
|
10450
|
-
case
|
|
10451
|
+
case 16:
|
|
10452
|
+
if (!s.goodsListState.isValidateMeiTan) {
|
|
10453
|
+
_context.next = 22;
|
|
10454
|
+
break;
|
|
10455
|
+
}
|
|
10456
|
+
|
|
10457
|
+
_context.next = 19;
|
|
10458
|
+
return s.goodsListState.verifyMeiTanFn(record);
|
|
10459
|
+
|
|
10460
|
+
case 19:
|
|
10461
|
+
_context.t0 = _context.sent;
|
|
10462
|
+
|
|
10463
|
+
if (!(_context.t0 === true)) {
|
|
10464
|
+
_context.next = 22;
|
|
10465
|
+
break;
|
|
10466
|
+
}
|
|
10467
|
+
|
|
10468
|
+
s.goodsListState.meiTanGoodIndex = [editGood.$index];
|
|
10469
|
+
|
|
10470
|
+
case 22:
|
|
10451
10471
|
case "end":
|
|
10452
10472
|
return _context.stop();
|
|
10453
10473
|
}
|
package/package.json
CHANGED
|
@@ -40,36 +40,91 @@ class MyInvoiceController extends InvoiceController {
|
|
|
40
40
|
console.log(value, 'onBuyerNameBlur - Blur');
|
|
41
41
|
|
|
42
42
|
return [
|
|
43
|
+
// {
|
|
44
|
+
// "taxCategoryCode": "1030206030000000000",
|
|
45
|
+
// "productName": "醋及醋代用品",
|
|
46
|
+
// "shorthand": "调味品",
|
|
47
|
+
// "id": null,
|
|
48
|
+
// "specification": null,
|
|
49
|
+
// "createTime": null,
|
|
50
|
+
// "status": 1,
|
|
51
|
+
// "versionCode": "48.0",
|
|
52
|
+
// "version": "32.0",
|
|
53
|
+
// "startTime": "20190401",
|
|
54
|
+
// "endTime": null,
|
|
55
|
+
// "cargo": null,
|
|
56
|
+
// "desc": null,
|
|
57
|
+
// "taxRate": "13%",
|
|
58
|
+
// "keyword": "食醋、米醋、酒醋、啤酒醋、麦芽醋、酒精醋、水果醋、醋精",
|
|
59
|
+
// "summarizedItem": "N",
|
|
60
|
+
// "countCode": null,
|
|
61
|
+
// "customsItem": null,
|
|
62
|
+
// "updateTime": null,
|
|
63
|
+
// "hzx": null,
|
|
64
|
+
// "children": null,
|
|
65
|
+
// "vatspecialManagement": "",
|
|
66
|
+
// "pid": "1030206000000000000",
|
|
67
|
+
// "vatpolicyBasis": null,
|
|
68
|
+
// "vatspecialManagementCode": "",
|
|
69
|
+
// "gstpolicyBasisCode": null,
|
|
70
|
+
// "gstspecialManagement": null,
|
|
71
|
+
// "gstpolicyBasis": null
|
|
72
|
+
// },
|
|
43
73
|
{
|
|
44
|
-
"
|
|
45
|
-
"productName":
|
|
46
|
-
"
|
|
47
|
-
"
|
|
74
|
+
"attributeVOList": null,
|
|
75
|
+
"productName": '原煤',
|
|
76
|
+
"name": null,
|
|
77
|
+
"productCode": "0003",
|
|
78
|
+
"shorthand": "小型起重设备",
|
|
79
|
+
"id": "10881474649024102400167947617243",
|
|
48
80
|
"specification": null,
|
|
49
|
-
"
|
|
81
|
+
"categoryId": "10688389540499947520167487266471",
|
|
82
|
+
"categoryName": "水果",
|
|
83
|
+
"internalNumber": null,
|
|
84
|
+
"taxCategoryName": "轻小型起重设备配套件",
|
|
85
|
+
"referenceAmount": null,
|
|
86
|
+
"priceAmount": 200.000,
|
|
87
|
+
"taxId": null,
|
|
88
|
+
"taxRate": null,
|
|
89
|
+
"brandName": null,
|
|
90
|
+
"buyGroupCode": null,
|
|
91
|
+
"buyGroupId": null,
|
|
92
|
+
"buyGroupName": null,
|
|
93
|
+
"categoryId": 2073,
|
|
94
|
+
"categoryName": "通用",
|
|
95
|
+
"companyId": "41daec4c-baa2-451f-b756-e26067b8657c",
|
|
96
|
+
"createTime": "2021-09-10 15:45:43.0",
|
|
97
|
+
"enjoyPreferentialPolicies": 0,
|
|
98
|
+
"factoryCode": null,
|
|
99
|
+
"factoryId": null,
|
|
100
|
+
"factoryName": null,
|
|
101
|
+
"id": 146200,
|
|
102
|
+
"internalNumber": "发动机盖",
|
|
103
|
+
"isUalityInspection": null,
|
|
104
|
+
"name": "原煤",
|
|
105
|
+
"preferentialPoliciesType": null,
|
|
106
|
+
"priceAmount": 50,
|
|
107
|
+
"procurementCycle": 0,
|
|
108
|
+
"shorthand": "煤炭",
|
|
109
|
+
"specification": "abc",
|
|
110
|
+
"spuCode": "6000001738252675",
|
|
50
111
|
"status": 1,
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
"
|
|
63
|
-
"
|
|
64
|
-
"
|
|
65
|
-
"
|
|
66
|
-
|
|
67
|
-
"vatpolicyBasis": null,
|
|
68
|
-
"vatspecialManagementCode": "",
|
|
69
|
-
"gstpolicyBasisCode": null,
|
|
70
|
-
"gstspecialManagement": null,
|
|
71
|
-
"gstpolicyBasis": null
|
|
72
|
-
}
|
|
112
|
+
"taxCategoryCode": "1020101000000000000",
|
|
113
|
+
"taxExemptionType": "",
|
|
114
|
+
"taxId": 11,
|
|
115
|
+
"taxRate": null,
|
|
116
|
+
"unitId": 30,
|
|
117
|
+
"unitName": "件",
|
|
118
|
+
"itemType": "通用",
|
|
119
|
+
"itemNo": "6000001738252675",
|
|
120
|
+
"itemName": "原煤",
|
|
121
|
+
"itemCode": "123123",
|
|
122
|
+
"itemModelName": "abc",
|
|
123
|
+
"unit": "件",
|
|
124
|
+
"priceIncludeTax": 50,
|
|
125
|
+
"priceExcludeTax": 50,
|
|
126
|
+
"taxClassificationCode": "1020101000000000000"
|
|
127
|
+
},
|
|
73
128
|
]
|
|
74
129
|
};
|
|
75
130
|
|
|
@@ -4,17 +4,18 @@ import { InvoiceControllerState, IGood } from '../';
|
|
|
4
4
|
/**
|
|
5
5
|
* 项目名称智能赋码
|
|
6
6
|
*/
|
|
7
|
-
export default async (s: InvoiceControllerState, record: any, controller:any) => {
|
|
7
|
+
export default async (s: InvoiceControllerState, record: any, controller: any) => {
|
|
8
8
|
Object.keys(record).filter(e => !record[e] && record[e] !== 0).forEach(e => { delete record[e] });
|
|
9
9
|
|
|
10
10
|
// 没用 被编辑的货物 和 form 就退出
|
|
11
11
|
if (!s.goodsListState.editGood || !s.goodsListState.form) return;
|
|
12
12
|
|
|
13
13
|
// 中间数据
|
|
14
|
-
const between: any = {...record };
|
|
14
|
+
const between: any = { ...record };
|
|
15
15
|
|
|
16
16
|
between.taxClassificationCode = record.taxClassificationCode;
|
|
17
17
|
between.shorthand = record.shorthand;
|
|
18
|
+
between.mtzlDm = undefined;
|
|
18
19
|
|
|
19
20
|
// 设置编辑货物
|
|
20
21
|
const editGood: IGood = s.goodsListState.editGood = { ...s.goodsListState.editGood, ...between };
|
|
@@ -35,6 +36,12 @@ export default async (s: InvoiceControllerState, record: any, controller:any) =>
|
|
|
35
36
|
s.goodsListState.isTaxIncluded
|
|
36
37
|
? await updateUnitPriceExcludingTax(controller, s.goodsListState.form, record)
|
|
37
38
|
: await updateUnitPriceTax(controller, s.goodsListState.form, record)
|
|
39
|
+
|
|
40
|
+
if (s.goodsListState.isValidateMeiTan) {
|
|
41
|
+
if (await s.goodsListState.verifyMeiTanFn(record) === true) {
|
|
42
|
+
s.goodsListState.meiTanGoodIndex = [editGood.$index];
|
|
43
|
+
}
|
|
44
|
+
}
|
|
38
45
|
}
|
|
39
46
|
|
|
40
47
|
|
|
@@ -30,36 +30,91 @@ class MyInvoiceController extends InvoiceController {
|
|
|
30
30
|
|
|
31
31
|
return new Promise((resolve, reject) => {
|
|
32
32
|
resolve([
|
|
33
|
+
// {
|
|
34
|
+
// "taxCategoryCode": "1030206030000000000",
|
|
35
|
+
// "productName": "醋及醋代用品",
|
|
36
|
+
// "shorthand": "调味品",
|
|
37
|
+
// "id": null,
|
|
38
|
+
// "specification": null,
|
|
39
|
+
// "createTime": null,
|
|
40
|
+
// "status": 1,
|
|
41
|
+
// "versionCode": "48.0",
|
|
42
|
+
// "version": "32.0",
|
|
43
|
+
// "startTime": "20190401",
|
|
44
|
+
// "endTime": null,
|
|
45
|
+
// "cargo": null,
|
|
46
|
+
// "desc": null,
|
|
47
|
+
// "taxRate": "13%",
|
|
48
|
+
// "keyword": "食醋、米醋、酒醋、啤酒醋、麦芽醋、酒精醋、水果醋、醋精",
|
|
49
|
+
// "summarizedItem": "N",
|
|
50
|
+
// "countCode": null,
|
|
51
|
+
// "customsItem": null,
|
|
52
|
+
// "updateTime": null,
|
|
53
|
+
// "hzx": null,
|
|
54
|
+
// "children": null,
|
|
55
|
+
// "vatspecialManagement": "",
|
|
56
|
+
// "pid": "1030206000000000000",
|
|
57
|
+
// "vatpolicyBasis": null,
|
|
58
|
+
// "vatspecialManagementCode": "",
|
|
59
|
+
// "gstpolicyBasisCode": null,
|
|
60
|
+
// "gstspecialManagement": null,
|
|
61
|
+
// "gstpolicyBasis": null
|
|
62
|
+
// },
|
|
33
63
|
{
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
64
|
+
"attributeVOList": null,
|
|
65
|
+
"productName": '原煤',
|
|
66
|
+
"name": null,
|
|
67
|
+
"productCode": "0003",
|
|
68
|
+
"shorthand": "小型起重设备",
|
|
69
|
+
"id": "10881474649024102400167947617243",
|
|
70
|
+
"specification": null,
|
|
71
|
+
"categoryId": "10688389540499947520167487266471",
|
|
72
|
+
"categoryName": "水果",
|
|
73
|
+
"internalNumber": null,
|
|
74
|
+
"taxCategoryName": "轻小型起重设备配套件",
|
|
75
|
+
"referenceAmount": null,
|
|
76
|
+
"priceAmount": 200.000,
|
|
77
|
+
"taxId": null,
|
|
78
|
+
"taxRate": null,
|
|
79
|
+
"brandName": null,
|
|
80
|
+
"buyGroupCode": null,
|
|
81
|
+
"buyGroupId": null,
|
|
82
|
+
"buyGroupName": null,
|
|
83
|
+
"categoryId": 2073,
|
|
84
|
+
"categoryName": "通用",
|
|
85
|
+
"companyId": "41daec4c-baa2-451f-b756-e26067b8657c",
|
|
86
|
+
"createTime": "2021-09-10 15:45:43.0",
|
|
87
|
+
"enjoyPreferentialPolicies": 0,
|
|
88
|
+
"factoryCode": null,
|
|
89
|
+
"factoryId": null,
|
|
90
|
+
"factoryName": null,
|
|
91
|
+
"id": 146200,
|
|
92
|
+
"internalNumber": "发动机盖",
|
|
93
|
+
"isUalityInspection": null,
|
|
94
|
+
"name": "原煤",
|
|
95
|
+
"preferentialPoliciesType": null,
|
|
96
|
+
"priceAmount": 50,
|
|
97
|
+
"procurementCycle": 0,
|
|
98
|
+
"shorthand": "煤炭",
|
|
99
|
+
"specification": "abc",
|
|
100
|
+
"spuCode": "6000001738252675",
|
|
101
|
+
"status": 1,
|
|
102
|
+
"taxCategoryCode": "1020101000000000000",
|
|
103
|
+
"taxExemptionType": "",
|
|
104
|
+
"taxId": 11,
|
|
105
|
+
"taxRate": null,
|
|
106
|
+
"unitId": 30,
|
|
107
|
+
"unitName": "件",
|
|
108
|
+
"itemType": "通用",
|
|
109
|
+
"itemNo": "6000001738252675",
|
|
110
|
+
"itemName": "原煤",
|
|
111
|
+
"itemCode": "123123",
|
|
112
|
+
"itemModelName": "abc",
|
|
113
|
+
"unit": "件",
|
|
114
|
+
"priceIncludeTax": 50,
|
|
115
|
+
"priceExcludeTax": 50,
|
|
116
|
+
"taxClassificationCode": "1020101000000000000"
|
|
117
|
+
},
|
|
63
118
|
]);
|
|
64
119
|
|
|
65
120
|
});
|