kts-component-invoice-operate 3.2.59 → 3.2.60
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 +12 -11
- package/dist/index.js +12 -11
- package/package.json +1 -1
- package/src/Invoice/ui/default/ImportGoodsDrawer/index.tsx +6 -3
package/dist/index.esm.js
CHANGED
|
@@ -21314,16 +21314,17 @@ var DrawerBody$2 = function DrawerBody() {
|
|
|
21314
21314
|
// 导入时清空之前输入的值,使用导入的单价和税率(参考税局系统)
|
|
21315
21315
|
record.quantity = undefined;
|
|
21316
21316
|
record.lineAmountExcludeTax = undefined;
|
|
21317
|
-
record.lineAmountIncludeTax = undefined;
|
|
21318
|
-
record.itemModelName = undefined;
|
|
21319
|
-
record.itemModelNameSelf = undefined; // 中间数据
|
|
21317
|
+
record.lineAmountIncludeTax = undefined; // 中间数据
|
|
21320
21318
|
|
|
21321
21319
|
between = _objectSpread2({}, record);
|
|
21322
21320
|
between.itemName = getItemName(record, s.goodsListState.editGood);
|
|
21323
21321
|
between.itemCode = getItemCode(record, s.goodsListState.editGood);
|
|
21324
21322
|
between.itemNameOther = getItemNameOther(record, s.goodsListState.editGood); // 设置编辑货物
|
|
21325
21323
|
|
|
21326
|
-
editGood = s.goodsListState.editGood = _objectSpread2(_objectSpread2({}, s.goodsListState.editGood),
|
|
21324
|
+
editGood = s.goodsListState.editGood = _objectSpread2(_objectSpread2({}, s.goodsListState.editGood), {}, {
|
|
21325
|
+
itemModelName: undefined,
|
|
21326
|
+
itemModelNameSelf: undefined
|
|
21327
|
+
}, between);
|
|
21327
21328
|
|
|
21328
21329
|
if (editGood.taxRate) {
|
|
21329
21330
|
editGood.taxRate = dutyFree(controller, editGood.taxRate, s.goodsListState.form, editGood);
|
|
@@ -21356,22 +21357,22 @@ var DrawerBody$2 = function DrawerBody() {
|
|
|
21356
21357
|
s.goodsListState.importGoods.isVisibleDrawer = false;
|
|
21357
21358
|
|
|
21358
21359
|
if (!s.goodsListState.isTaxIncluded) {
|
|
21359
|
-
_context2.next =
|
|
21360
|
+
_context2.next = 26;
|
|
21360
21361
|
break;
|
|
21361
21362
|
}
|
|
21362
21363
|
|
|
21363
|
-
_context2.next =
|
|
21364
|
+
_context2.next = 24;
|
|
21364
21365
|
return updateUnitPriceExcludingTax(controller, s.goodsListState.form, record);
|
|
21365
21366
|
|
|
21366
|
-
case
|
|
21367
|
-
_context2.next =
|
|
21367
|
+
case 24:
|
|
21368
|
+
_context2.next = 28;
|
|
21368
21369
|
break;
|
|
21369
21370
|
|
|
21370
|
-
case
|
|
21371
|
-
_context2.next =
|
|
21371
|
+
case 26:
|
|
21372
|
+
_context2.next = 28;
|
|
21372
21373
|
return updateUnitPriceTax(controller, s.goodsListState.form, record);
|
|
21373
21374
|
|
|
21374
|
-
case
|
|
21375
|
+
case 28:
|
|
21375
21376
|
case "end":
|
|
21376
21377
|
return _context2.stop();
|
|
21377
21378
|
}
|
package/dist/index.js
CHANGED
|
@@ -21324,16 +21324,17 @@ var DrawerBody$2 = function DrawerBody() {
|
|
|
21324
21324
|
// 导入时清空之前输入的值,使用导入的单价和税率(参考税局系统)
|
|
21325
21325
|
record.quantity = undefined;
|
|
21326
21326
|
record.lineAmountExcludeTax = undefined;
|
|
21327
|
-
record.lineAmountIncludeTax = undefined;
|
|
21328
|
-
record.itemModelName = undefined;
|
|
21329
|
-
record.itemModelNameSelf = undefined; // 中间数据
|
|
21327
|
+
record.lineAmountIncludeTax = undefined; // 中间数据
|
|
21330
21328
|
|
|
21331
21329
|
between = _objectSpread2({}, record);
|
|
21332
21330
|
between.itemName = getItemName(record, s.goodsListState.editGood);
|
|
21333
21331
|
between.itemCode = getItemCode(record, s.goodsListState.editGood);
|
|
21334
21332
|
between.itemNameOther = getItemNameOther(record, s.goodsListState.editGood); // 设置编辑货物
|
|
21335
21333
|
|
|
21336
|
-
editGood = s.goodsListState.editGood = _objectSpread2(_objectSpread2({}, s.goodsListState.editGood),
|
|
21334
|
+
editGood = s.goodsListState.editGood = _objectSpread2(_objectSpread2({}, s.goodsListState.editGood), {}, {
|
|
21335
|
+
itemModelName: undefined,
|
|
21336
|
+
itemModelNameSelf: undefined
|
|
21337
|
+
}, between);
|
|
21337
21338
|
|
|
21338
21339
|
if (editGood.taxRate) {
|
|
21339
21340
|
editGood.taxRate = dutyFree(controller, editGood.taxRate, s.goodsListState.form, editGood);
|
|
@@ -21366,22 +21367,22 @@ var DrawerBody$2 = function DrawerBody() {
|
|
|
21366
21367
|
s.goodsListState.importGoods.isVisibleDrawer = false;
|
|
21367
21368
|
|
|
21368
21369
|
if (!s.goodsListState.isTaxIncluded) {
|
|
21369
|
-
_context2.next =
|
|
21370
|
+
_context2.next = 26;
|
|
21370
21371
|
break;
|
|
21371
21372
|
}
|
|
21372
21373
|
|
|
21373
|
-
_context2.next =
|
|
21374
|
+
_context2.next = 24;
|
|
21374
21375
|
return updateUnitPriceExcludingTax(controller, s.goodsListState.form, record);
|
|
21375
21376
|
|
|
21376
|
-
case
|
|
21377
|
-
_context2.next =
|
|
21377
|
+
case 24:
|
|
21378
|
+
_context2.next = 28;
|
|
21378
21379
|
break;
|
|
21379
21380
|
|
|
21380
|
-
case
|
|
21381
|
-
_context2.next =
|
|
21381
|
+
case 26:
|
|
21382
|
+
_context2.next = 28;
|
|
21382
21383
|
return updateUnitPriceTax(controller, s.goodsListState.form, record);
|
|
21383
21384
|
|
|
21384
|
-
case
|
|
21385
|
+
case 28:
|
|
21385
21386
|
case "end":
|
|
21386
21387
|
return _context2.stop();
|
|
21387
21388
|
}
|
package/package.json
CHANGED
|
@@ -75,8 +75,6 @@ const DrawerBody = () => {
|
|
|
75
75
|
record.quantity = undefined;
|
|
76
76
|
record.lineAmountExcludeTax = undefined;
|
|
77
77
|
record.lineAmountIncludeTax = undefined;
|
|
78
|
-
record.itemModelName = undefined;
|
|
79
|
-
record.itemModelNameSelf = undefined;
|
|
80
78
|
|
|
81
79
|
// 中间数据
|
|
82
80
|
const between = { ...record };
|
|
@@ -85,7 +83,12 @@ const DrawerBody = () => {
|
|
|
85
83
|
between.itemNameOther = getItemNameOther(record, s.goodsListState.editGood);
|
|
86
84
|
|
|
87
85
|
// 设置编辑货物
|
|
88
|
-
const editGood: IGood = s.goodsListState.editGood = {
|
|
86
|
+
const editGood: IGood = s.goodsListState.editGood = {
|
|
87
|
+
...s.goodsListState.editGood,
|
|
88
|
+
itemModelName: undefined,
|
|
89
|
+
itemModelNameSelf: undefined,
|
|
90
|
+
...between
|
|
91
|
+
};
|
|
89
92
|
|
|
90
93
|
if (editGood.taxRate) {
|
|
91
94
|
editGood.taxRate = dutyFree(controller, editGood.taxRate, s.goodsListState.form, editGood)
|