kts-component-invoice-operate 3.2.117 → 3.2.119
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 +142 -183
- package/dist/index.js +142 -183
- package/package.json +1 -1
- package/src/Invoice/ui/default/EndowCodeDrawer/index.tsx +23 -15
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/ItemNameInput/index.less +3 -3
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/index.tsx +15 -17
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/ItemNameInput/index.less +3 -3
package/dist/index.js
CHANGED
|
@@ -10972,7 +10972,7 @@ var TitleText = (function (props) {
|
|
|
10972
10972
|
}, "*") : /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null), children);
|
|
10973
10973
|
});
|
|
10974
10974
|
|
|
10975
|
-
var css_248z$7 = ".kts-invoice-operate-goods-list-itemName-input {\n display: flex;\n flex: 1;\n padding-left: 10px;\n height: 31px;\n}\n.kts-invoice-operate-goods-list-itemName-input .ktsAntX-select {\n width: 100%;\n}\n.kts-invoice-operate-goods-list-itemName-input .ktsAntX-select .ktsAntX-select-selector {\n height: 100%;\n}\n
|
|
10975
|
+
var css_248z$7 = ".kts-invoice-operate-goods-list-itemName-input {\n display: flex;\n flex: 1;\n padding-left: 10px;\n height: 31px;\n}\n.kts-invoice-operate-goods-list-itemName-input .ktsAntX-select {\n width: 100%;\n}\n.kts-invoice-operate-goods-list-itemName-input .ktsAntX-select .ktsAntX-select-selector {\n height: 100%;\n}\n";
|
|
10976
10976
|
styleInject(css_248z$7);
|
|
10977
10977
|
|
|
10978
10978
|
function ItemNameInput(props) {
|
|
@@ -17892,7 +17892,7 @@ var TitleText$1 = (function (props) {
|
|
|
17892
17892
|
}, "*") : /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null), children);
|
|
17893
17893
|
});
|
|
17894
17894
|
|
|
17895
|
-
var css_248z$m = ".kts-invoice-operate-goods-list-itemName-input {\n display: flex;\n flex: 1;\n padding-left: 0;\n height: 31px;\n}\n
|
|
17895
|
+
var css_248z$m = ".kts-invoice-operate-goods-list-itemName-input {\n display: flex;\n flex: 1;\n padding-left: 0;\n height: 31px;\n}\n";
|
|
17896
17896
|
styleInject(css_248z$m);
|
|
17897
17897
|
|
|
17898
17898
|
function ItemNameInput$1(props) {
|
|
@@ -20400,18 +20400,15 @@ var MyItemNameDiv$1 = /*#__PURE__*/function (_React$Component3) {
|
|
|
20400
20400
|
return /*#__PURE__*/React__default['default'].createElement(ktsXui.Tooltip, {
|
|
20401
20401
|
title: valueT
|
|
20402
20402
|
}, /*#__PURE__*/React__default['default'].createElement("span", {
|
|
20403
|
-
style: {
|
|
20404
|
-
padding: '0 10px',
|
|
20403
|
+
style: _objectSpread2(_objectSpread2({}, MyItemNameStyle), {}, {
|
|
20405
20404
|
color: '#0074ff'
|
|
20406
|
-
}
|
|
20405
|
+
})
|
|
20407
20406
|
}, valueT));
|
|
20408
20407
|
} else {
|
|
20409
20408
|
return /*#__PURE__*/React__default['default'].createElement(ktsXui.Tooltip, {
|
|
20410
20409
|
title: valueF
|
|
20411
20410
|
}, /*#__PURE__*/React__default['default'].createElement("span", {
|
|
20412
|
-
style:
|
|
20413
|
-
padding: '0 10px'
|
|
20414
|
-
}
|
|
20411
|
+
style: MyItemNameStyle
|
|
20415
20412
|
}, valueF));
|
|
20416
20413
|
}
|
|
20417
20414
|
} else {
|
|
@@ -20419,18 +20416,16 @@ var MyItemNameDiv$1 = /*#__PURE__*/function (_React$Component3) {
|
|
|
20419
20416
|
return /*#__PURE__*/React__default['default'].createElement(ktsXui.Tooltip, {
|
|
20420
20417
|
title: valueF
|
|
20421
20418
|
}, /*#__PURE__*/React__default['default'].createElement("span", {
|
|
20422
|
-
style:
|
|
20423
|
-
padding: '0 10px'
|
|
20424
|
-
}
|
|
20419
|
+
style: MyItemNameStyle
|
|
20425
20420
|
}, valueF));
|
|
20426
20421
|
} else {
|
|
20427
20422
|
return /*#__PURE__*/React__default['default'].createElement(ktsXui.Tooltip, {
|
|
20428
|
-
title: valueT
|
|
20423
|
+
title: valueT,
|
|
20424
|
+
style: MyItemNameStyle
|
|
20429
20425
|
}, /*#__PURE__*/React__default['default'].createElement("span", {
|
|
20430
|
-
style: {
|
|
20431
|
-
padding: '0 10px',
|
|
20426
|
+
style: _objectSpread2(_objectSpread2({}, MyItemNameStyle), {}, {
|
|
20432
20427
|
color: '#0074ff'
|
|
20433
|
-
}
|
|
20428
|
+
})
|
|
20434
20429
|
}, valueT));
|
|
20435
20430
|
}
|
|
20436
20431
|
}
|
|
@@ -20472,6 +20467,15 @@ function dcoding$1(v) {
|
|
|
20472
20467
|
}).join('');
|
|
20473
20468
|
}
|
|
20474
20469
|
|
|
20470
|
+
var MyItemNameStyle = {
|
|
20471
|
+
padding: '0px 10px',
|
|
20472
|
+
whiteSpace: 'nowrap',
|
|
20473
|
+
overflow: 'hidden',
|
|
20474
|
+
width: "100%",
|
|
20475
|
+
display: 'block',
|
|
20476
|
+
textOverflow: 'ellipsis'
|
|
20477
|
+
};
|
|
20478
|
+
|
|
20475
20479
|
var useOnRow$1 = (function () {
|
|
20476
20480
|
/** 控制器 */
|
|
20477
20481
|
var controller = Invoice.useInvoiceController();
|
|
@@ -22810,15 +22814,20 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
22810
22814
|
var info = dataSource.filter(function (i) {
|
|
22811
22815
|
return i.value === value;
|
|
22812
22816
|
})[0];
|
|
22813
|
-
if (!info) return;
|
|
22814
|
-
|
|
22817
|
+
if (!info) return; // !readOnlyTaxRate && actions.setFieldState('taxRate', async s => {
|
|
22818
|
+
// if (info.taxRate || info.taxRate === 0) {
|
|
22819
|
+
// s.value = info.taxRate
|
|
22820
|
+
// }
|
|
22821
|
+
// });
|
|
22822
|
+
|
|
22823
|
+
actions.setFieldState('shorthand', /*#__PURE__*/function () {
|
|
22815
22824
|
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(s) {
|
|
22816
22825
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
22817
22826
|
while (1) {
|
|
22818
22827
|
switch (_context4.prev = _context4.next) {
|
|
22819
22828
|
case 0:
|
|
22820
|
-
if (info.
|
|
22821
|
-
s.value = info.
|
|
22829
|
+
if (info.shorthand) {
|
|
22830
|
+
s.value = info.shorthand;
|
|
22822
22831
|
}
|
|
22823
22832
|
|
|
22824
22833
|
case 1:
|
|
@@ -22833,28 +22842,6 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
22833
22842
|
return _ref4.apply(this, arguments);
|
|
22834
22843
|
};
|
|
22835
22844
|
}());
|
|
22836
|
-
actions.setFieldState('shorthand', /*#__PURE__*/function () {
|
|
22837
|
-
var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(s) {
|
|
22838
|
-
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
22839
|
-
while (1) {
|
|
22840
|
-
switch (_context5.prev = _context5.next) {
|
|
22841
|
-
case 0:
|
|
22842
|
-
if (info.shorthand) {
|
|
22843
|
-
s.value = info.shorthand;
|
|
22844
|
-
}
|
|
22845
|
-
|
|
22846
|
-
case 1:
|
|
22847
|
-
case "end":
|
|
22848
|
-
return _context5.stop();
|
|
22849
|
-
}
|
|
22850
|
-
}
|
|
22851
|
-
}, _callee5);
|
|
22852
|
-
}));
|
|
22853
|
-
|
|
22854
|
-
return function (_x5) {
|
|
22855
|
-
return _ref5.apply(this, arguments);
|
|
22856
|
-
};
|
|
22857
|
-
}());
|
|
22858
22845
|
}, [actions, dataSource, readOnlyTaxRate]);
|
|
22859
22846
|
return /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX3.Select, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
22860
22847
|
showSearch: true,
|
|
@@ -22934,34 +22921,17 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
22934
22921
|
|
|
22935
22922
|
var info = list === null || list === void 0 ? void 0 : list.filter(function (e) {
|
|
22936
22923
|
return e.id === id;
|
|
22937
|
-
})[0];
|
|
22938
|
-
|
|
22939
|
-
|
|
22940
|
-
|
|
22941
|
-
|
|
22942
|
-
switch (_context6.prev = _context6.next) {
|
|
22943
|
-
case 0:
|
|
22944
|
-
if (info.taxRate || info.taxRate === 0) {
|
|
22945
|
-
s.value = info.taxRate;
|
|
22946
|
-
}
|
|
22924
|
+
})[0]; // !readOnlyTaxRate && actions.setFieldState('taxRate', async s => {
|
|
22925
|
+
// if (info.taxRate || info.taxRate === 0) {
|
|
22926
|
+
// s.value = info.taxRate
|
|
22927
|
+
// }
|
|
22928
|
+
// });
|
|
22947
22929
|
|
|
22948
|
-
case 1:
|
|
22949
|
-
case "end":
|
|
22950
|
-
return _context6.stop();
|
|
22951
|
-
}
|
|
22952
|
-
}
|
|
22953
|
-
}, _callee6);
|
|
22954
|
-
}));
|
|
22955
|
-
|
|
22956
|
-
return function (_x6) {
|
|
22957
|
-
return _ref6.apply(this, arguments);
|
|
22958
|
-
};
|
|
22959
|
-
}());
|
|
22960
22930
|
actions.setFieldState('taxClassificationCode', /*#__PURE__*/function () {
|
|
22961
|
-
var
|
|
22962
|
-
return _regeneratorRuntime().wrap(function
|
|
22931
|
+
var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(s) {
|
|
22932
|
+
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
22963
22933
|
while (1) {
|
|
22964
|
-
switch (
|
|
22934
|
+
switch (_context5.prev = _context5.next) {
|
|
22965
22935
|
case 0:
|
|
22966
22936
|
if (info.id) {
|
|
22967
22937
|
s.value = info.id;
|
|
@@ -22969,21 +22939,21 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
22969
22939
|
|
|
22970
22940
|
case 1:
|
|
22971
22941
|
case "end":
|
|
22972
|
-
return
|
|
22942
|
+
return _context5.stop();
|
|
22973
22943
|
}
|
|
22974
22944
|
}
|
|
22975
|
-
},
|
|
22945
|
+
}, _callee5);
|
|
22976
22946
|
}));
|
|
22977
22947
|
|
|
22978
|
-
return function (
|
|
22979
|
-
return
|
|
22948
|
+
return function (_x5) {
|
|
22949
|
+
return _ref5.apply(this, arguments);
|
|
22980
22950
|
};
|
|
22981
22951
|
}());
|
|
22982
22952
|
actions.setFieldState('shorthand', /*#__PURE__*/function () {
|
|
22983
|
-
var
|
|
22984
|
-
return _regeneratorRuntime().wrap(function
|
|
22953
|
+
var _ref6 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6(s) {
|
|
22954
|
+
return _regeneratorRuntime().wrap(function _callee6$(_context6) {
|
|
22985
22955
|
while (1) {
|
|
22986
|
-
switch (
|
|
22956
|
+
switch (_context6.prev = _context6.next) {
|
|
22987
22957
|
case 0:
|
|
22988
22958
|
if (info.shorthand) {
|
|
22989
22959
|
s.value = info.shorthand;
|
|
@@ -22991,52 +22961,52 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
22991
22961
|
|
|
22992
22962
|
case 1:
|
|
22993
22963
|
case "end":
|
|
22994
|
-
return
|
|
22964
|
+
return _context6.stop();
|
|
22995
22965
|
}
|
|
22996
22966
|
}
|
|
22997
|
-
},
|
|
22967
|
+
}, _callee6);
|
|
22998
22968
|
}));
|
|
22999
22969
|
|
|
23000
|
-
return function (
|
|
23001
|
-
return
|
|
22970
|
+
return function (_x6) {
|
|
22971
|
+
return _ref6.apply(this, arguments);
|
|
23002
22972
|
};
|
|
23003
22973
|
}());
|
|
23004
22974
|
setVisible(false);
|
|
23005
22975
|
}, [list, actions, readOnlyTaxRate]);
|
|
23006
22976
|
React__default['default'].useEffect(function () {
|
|
23007
|
-
_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
22977
|
+
_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee8() {
|
|
23008
22978
|
var fn, list;
|
|
23009
|
-
return _regeneratorRuntime().wrap(function
|
|
22979
|
+
return _regeneratorRuntime().wrap(function _callee8$(_context8) {
|
|
23010
22980
|
while (1) {
|
|
23011
|
-
switch (
|
|
22981
|
+
switch (_context8.prev = _context8.next) {
|
|
23012
22982
|
case 0:
|
|
23013
|
-
fn = controller.state.goodsListState.endowCode.getTaxCategoryCodeTree || /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
23014
|
-
return _regeneratorRuntime().wrap(function
|
|
22983
|
+
fn = controller.state.goodsListState.endowCode.getTaxCategoryCodeTree || /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7() {
|
|
22984
|
+
return _regeneratorRuntime().wrap(function _callee7$(_context7) {
|
|
23015
22985
|
while (1) {
|
|
23016
|
-
switch (
|
|
22986
|
+
switch (_context7.prev = _context7.next) {
|
|
23017
22987
|
case 0:
|
|
23018
|
-
return
|
|
22988
|
+
return _context7.abrupt("return", []);
|
|
23019
22989
|
|
|
23020
22990
|
case 1:
|
|
23021
22991
|
case "end":
|
|
23022
|
-
return
|
|
22992
|
+
return _context7.stop();
|
|
23023
22993
|
}
|
|
23024
22994
|
}
|
|
23025
|
-
},
|
|
22995
|
+
}, _callee7);
|
|
23026
22996
|
}));
|
|
23027
|
-
|
|
22997
|
+
_context8.next = 3;
|
|
23028
22998
|
return fn(filter === null || filter === void 0 ? void 0 : filter.taxCategoryCode, filter === null || filter === void 0 ? void 0 : filter.val);
|
|
23029
22999
|
|
|
23030
23000
|
case 3:
|
|
23031
|
-
list =
|
|
23001
|
+
list = _context8.sent;
|
|
23032
23002
|
setList(list || []);
|
|
23033
23003
|
|
|
23034
23004
|
case 5:
|
|
23035
23005
|
case "end":
|
|
23036
|
-
return
|
|
23006
|
+
return _context8.stop();
|
|
23037
23007
|
}
|
|
23038
23008
|
}
|
|
23039
|
-
},
|
|
23009
|
+
}, _callee8);
|
|
23040
23010
|
}))();
|
|
23041
23011
|
}, [filter]);
|
|
23042
23012
|
React__default['default'].useEffect(function () {
|
|
@@ -23102,31 +23072,31 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23102
23072
|
list = _React$useState16[0],
|
|
23103
23073
|
setList = _React$useState16[1];
|
|
23104
23074
|
|
|
23105
|
-
var onSearch = React__default['default'].useCallback( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
23075
|
+
var onSearch = React__default['default'].useCallback( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee9() {
|
|
23106
23076
|
var _value$target;
|
|
23107
23077
|
|
|
23108
23078
|
var value,
|
|
23109
23079
|
_value$target2,
|
|
23110
23080
|
arr,
|
|
23111
23081
|
_list,
|
|
23112
|
-
|
|
23082
|
+
_args9 = arguments;
|
|
23113
23083
|
|
|
23114
|
-
return _regeneratorRuntime().wrap(function
|
|
23084
|
+
return _regeneratorRuntime().wrap(function _callee9$(_context9) {
|
|
23115
23085
|
while (1) {
|
|
23116
|
-
switch (
|
|
23086
|
+
switch (_context9.prev = _context9.next) {
|
|
23117
23087
|
case 0:
|
|
23118
|
-
value =
|
|
23088
|
+
value = _args9.length > 0 && _args9[0] !== undefined ? _args9[0] : null;
|
|
23119
23089
|
|
|
23120
23090
|
if (!(value === null || value === void 0 ? void 0 : (_value$target = value.target) === null || _value$target === void 0 ? void 0 : _value$target.value)) {
|
|
23121
|
-
|
|
23091
|
+
_context9.next = 9;
|
|
23122
23092
|
break;
|
|
23123
23093
|
}
|
|
23124
23094
|
|
|
23125
|
-
|
|
23095
|
+
_context9.next = 4;
|
|
23126
23096
|
return controller.state.goodsListState.endowCode.onSearchTaxClassificationCode(value === null || value === void 0 ? void 0 : (_value$target2 = value.target) === null || _value$target2 === void 0 ? void 0 : _value$target2.value);
|
|
23127
23097
|
|
|
23128
23098
|
case 4:
|
|
23129
|
-
arr =
|
|
23099
|
+
arr = _context9.sent;
|
|
23130
23100
|
_list = arr.map(function (item) {
|
|
23131
23101
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
23132
23102
|
title: "".concat(item.productName, " ").concat(item.taxCategoryCode),
|
|
@@ -23135,32 +23105,32 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23135
23105
|
});
|
|
23136
23106
|
});
|
|
23137
23107
|
setList(_list);
|
|
23138
|
-
|
|
23108
|
+
_context9.next = 11;
|
|
23139
23109
|
break;
|
|
23140
23110
|
|
|
23141
23111
|
case 9:
|
|
23142
|
-
|
|
23112
|
+
_context9.next = 11;
|
|
23143
23113
|
return onLoad();
|
|
23144
23114
|
|
|
23145
23115
|
case 11:
|
|
23146
23116
|
case "end":
|
|
23147
|
-
return
|
|
23117
|
+
return _context9.stop();
|
|
23148
23118
|
}
|
|
23149
23119
|
}
|
|
23150
|
-
},
|
|
23120
|
+
}, _callee9);
|
|
23151
23121
|
})), []);
|
|
23152
23122
|
var onLoad = React__default['default'].useCallback( /*#__PURE__*/function () {
|
|
23153
|
-
var
|
|
23123
|
+
var _ref10 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee10(value) {
|
|
23154
23124
|
var arr, data, treeData;
|
|
23155
|
-
return _regeneratorRuntime().wrap(function
|
|
23125
|
+
return _regeneratorRuntime().wrap(function _callee10$(_context10) {
|
|
23156
23126
|
while (1) {
|
|
23157
|
-
switch (
|
|
23127
|
+
switch (_context10.prev = _context10.next) {
|
|
23158
23128
|
case 0:
|
|
23159
|
-
|
|
23129
|
+
_context10.next = 2;
|
|
23160
23130
|
return controller.state.goodsListState.endowCode.onLoadTaxClassificationCode(value === null || value === void 0 ? void 0 : value.taxCategoryCode);
|
|
23161
23131
|
|
|
23162
23132
|
case 2:
|
|
23163
|
-
arr =
|
|
23133
|
+
arr = _context10.sent;
|
|
23164
23134
|
data = arr.map(function (item) {
|
|
23165
23135
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
23166
23136
|
title: "".concat(item.productName, " ").concat(item.taxCategoryCode),
|
|
@@ -23177,95 +23147,84 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23177
23147
|
setList(treeData);
|
|
23178
23148
|
}
|
|
23179
23149
|
|
|
23180
|
-
return
|
|
23150
|
+
return _context10.abrupt("return", []);
|
|
23181
23151
|
|
|
23182
23152
|
case 7:
|
|
23183
23153
|
case "end":
|
|
23184
|
-
return
|
|
23154
|
+
return _context10.stop();
|
|
23185
23155
|
}
|
|
23186
23156
|
}
|
|
23187
|
-
},
|
|
23157
|
+
}, _callee10);
|
|
23188
23158
|
}));
|
|
23189
23159
|
|
|
23190
|
-
return function (
|
|
23191
|
-
return
|
|
23160
|
+
return function (_x7) {
|
|
23161
|
+
return _ref10.apply(this, arguments);
|
|
23192
23162
|
};
|
|
23193
23163
|
}(), []);
|
|
23194
|
-
var onClick = React__default['default'].useCallback( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function
|
|
23195
|
-
return _regeneratorRuntime().wrap(function
|
|
23164
|
+
var onClick = React__default['default'].useCallback( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee11() {
|
|
23165
|
+
return _regeneratorRuntime().wrap(function _callee11$(_context11) {
|
|
23196
23166
|
while (1) {
|
|
23197
|
-
switch (
|
|
23167
|
+
switch (_context11.prev = _context11.next) {
|
|
23198
23168
|
case 0:
|
|
23199
23169
|
setOpen(true);
|
|
23200
|
-
|
|
23170
|
+
_context11.next = 3;
|
|
23201
23171
|
return onLoad();
|
|
23202
23172
|
|
|
23203
23173
|
case 3:
|
|
23204
23174
|
case "end":
|
|
23205
|
-
return
|
|
23175
|
+
return _context11.stop();
|
|
23206
23176
|
}
|
|
23207
23177
|
}
|
|
23208
|
-
},
|
|
23178
|
+
}, _callee11);
|
|
23209
23179
|
})), []);
|
|
23210
23180
|
var onSelect = React__default['default'].useCallback(function (key, info) {
|
|
23181
|
+
// !readOnlyTaxRate && actions.setFieldState('taxRate', async s => {
|
|
23182
|
+
// if (info.node.taxRate || info.taxRate === 0) {
|
|
23183
|
+
// s.value = info.node.taxRate
|
|
23184
|
+
// }
|
|
23185
|
+
// });
|
|
23211
23186
|
actions.setFieldState('taxClassificationCode', /*#__PURE__*/function () {
|
|
23212
|
-
var
|
|
23213
|
-
return _regeneratorRuntime().wrap(function
|
|
23187
|
+
var _ref12 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee12(s) {
|
|
23188
|
+
return _regeneratorRuntime().wrap(function _callee12$(_context12) {
|
|
23214
23189
|
while (1) {
|
|
23215
|
-
switch (
|
|
23190
|
+
switch (_context12.prev = _context12.next) {
|
|
23216
23191
|
case 0:
|
|
23217
|
-
|
|
23192
|
+
if (info.node.taxCategoryCode) {
|
|
23193
|
+
s.value = info.node.taxCategoryCode;
|
|
23194
|
+
}
|
|
23218
23195
|
|
|
23219
23196
|
case 1:
|
|
23220
23197
|
case "end":
|
|
23221
|
-
return
|
|
23198
|
+
return _context12.stop();
|
|
23222
23199
|
}
|
|
23223
23200
|
}
|
|
23224
|
-
},
|
|
23201
|
+
}, _callee12);
|
|
23225
23202
|
}));
|
|
23226
23203
|
|
|
23227
|
-
return function (
|
|
23228
|
-
return
|
|
23204
|
+
return function (_x8) {
|
|
23205
|
+
return _ref12.apply(this, arguments);
|
|
23229
23206
|
};
|
|
23230
23207
|
}());
|
|
23231
23208
|
actions.setFieldState('shorthand', /*#__PURE__*/function () {
|
|
23232
|
-
var
|
|
23233
|
-
return _regeneratorRuntime().wrap(function
|
|
23209
|
+
var _ref13 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee13(s) {
|
|
23210
|
+
return _regeneratorRuntime().wrap(function _callee13$(_context13) {
|
|
23234
23211
|
while (1) {
|
|
23235
|
-
switch (
|
|
23212
|
+
switch (_context13.prev = _context13.next) {
|
|
23236
23213
|
case 0:
|
|
23237
|
-
|
|
23214
|
+
if (info.node.shorthand) {
|
|
23215
|
+
s.value = info.node.shorthand;
|
|
23216
|
+
}
|
|
23238
23217
|
|
|
23239
23218
|
case 1:
|
|
23240
23219
|
case "end":
|
|
23241
|
-
return
|
|
23220
|
+
return _context13.stop();
|
|
23242
23221
|
}
|
|
23243
23222
|
}
|
|
23244
|
-
},
|
|
23223
|
+
}, _callee13);
|
|
23245
23224
|
}));
|
|
23246
23225
|
|
|
23247
|
-
return function (
|
|
23248
|
-
return
|
|
23249
|
-
};
|
|
23250
|
-
}());
|
|
23251
|
-
actions.setFieldState('taxRate', /*#__PURE__*/function () {
|
|
23252
|
-
var _ref16 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee16(s) {
|
|
23253
|
-
return _regeneratorRuntime().wrap(function _callee16$(_context16) {
|
|
23254
|
-
while (1) {
|
|
23255
|
-
switch (_context16.prev = _context16.next) {
|
|
23256
|
-
case 0:
|
|
23257
|
-
s.value = info.node.taxRate;
|
|
23258
|
-
|
|
23259
|
-
case 1:
|
|
23260
|
-
case "end":
|
|
23261
|
-
return _context16.stop();
|
|
23262
|
-
}
|
|
23263
|
-
}
|
|
23264
|
-
}, _callee16);
|
|
23265
|
-
}));
|
|
23266
|
-
|
|
23267
|
-
return function (_x12) {
|
|
23268
|
-
return _ref16.apply(this, arguments);
|
|
23226
|
+
return function (_x9) {
|
|
23227
|
+
return _ref13.apply(this, arguments);
|
|
23269
23228
|
};
|
|
23270
23229
|
}());
|
|
23271
23230
|
setOpen(false);
|
|
@@ -23324,11 +23283,11 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23324
23283
|
|
|
23325
23284
|
var onSubmit = React__default['default'].useCallback(function (values) {
|
|
23326
23285
|
controller.pipeline( /*#__PURE__*/function () {
|
|
23327
|
-
var
|
|
23286
|
+
var _ref14 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee14(s) {
|
|
23328
23287
|
var endowCodeGood;
|
|
23329
|
-
return _regeneratorRuntime().wrap(function
|
|
23288
|
+
return _regeneratorRuntime().wrap(function _callee14$(_context14) {
|
|
23330
23289
|
while (1) {
|
|
23331
|
-
switch (
|
|
23290
|
+
switch (_context14.prev = _context14.next) {
|
|
23332
23291
|
case 0:
|
|
23333
23292
|
endowCodeGood = s.goodsListState.endowCode.endowcodeGoodIndex.map(function (e) {
|
|
23334
23293
|
return s.goodsListState.goodsMap.get(e);
|
|
@@ -23355,14 +23314,14 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23355
23314
|
|
|
23356
23315
|
case 4:
|
|
23357
23316
|
case "end":
|
|
23358
|
-
return
|
|
23317
|
+
return _context14.stop();
|
|
23359
23318
|
}
|
|
23360
23319
|
}
|
|
23361
|
-
},
|
|
23320
|
+
}, _callee14);
|
|
23362
23321
|
}));
|
|
23363
23322
|
|
|
23364
|
-
return function (
|
|
23365
|
-
return
|
|
23323
|
+
return function (_x10) {
|
|
23324
|
+
return _ref14.apply(this, arguments);
|
|
23366
23325
|
};
|
|
23367
23326
|
}())();
|
|
23368
23327
|
}, [controller]);
|
|
@@ -23371,23 +23330,23 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23371
23330
|
antd.FormEffectHooks.onFieldValueChange$('taxRate').subscribe(function (e) {
|
|
23372
23331
|
setTaxRate(e.value);
|
|
23373
23332
|
actions.setFieldState('taxFreeType', /*#__PURE__*/function () {
|
|
23374
|
-
var
|
|
23375
|
-
return _regeneratorRuntime().wrap(function
|
|
23333
|
+
var _ref15 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee15(s) {
|
|
23334
|
+
return _regeneratorRuntime().wrap(function _callee15$(_context15) {
|
|
23376
23335
|
while (1) {
|
|
23377
|
-
switch (
|
|
23336
|
+
switch (_context15.prev = _context15.next) {
|
|
23378
23337
|
case 0:
|
|
23379
23338
|
if (e.value !== 0) s.value = undefined;
|
|
23380
23339
|
|
|
23381
23340
|
case 1:
|
|
23382
23341
|
case "end":
|
|
23383
|
-
return
|
|
23342
|
+
return _context15.stop();
|
|
23384
23343
|
}
|
|
23385
23344
|
}
|
|
23386
|
-
},
|
|
23345
|
+
}, _callee15);
|
|
23387
23346
|
}));
|
|
23388
23347
|
|
|
23389
|
-
return function (
|
|
23390
|
-
return
|
|
23348
|
+
return function (_x11) {
|
|
23349
|
+
return _ref15.apply(this, arguments);
|
|
23391
23350
|
};
|
|
23392
23351
|
}());
|
|
23393
23352
|
}); // 是否享受优惠政策
|
|
@@ -23395,23 +23354,23 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23395
23354
|
antd.FormEffectHooks.onFieldValueChange$('favouredPolicyMark').subscribe(function (e) {
|
|
23396
23355
|
setFavouredPolicyMark(e.value);
|
|
23397
23356
|
actions.setFieldState('favouredPolicyName', /*#__PURE__*/function () {
|
|
23398
|
-
var
|
|
23399
|
-
return _regeneratorRuntime().wrap(function
|
|
23357
|
+
var _ref16 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee16(s) {
|
|
23358
|
+
return _regeneratorRuntime().wrap(function _callee16$(_context16) {
|
|
23400
23359
|
while (1) {
|
|
23401
|
-
switch (
|
|
23360
|
+
switch (_context16.prev = _context16.next) {
|
|
23402
23361
|
case 0:
|
|
23403
23362
|
if (e.value === 0) s.value = undefined;
|
|
23404
23363
|
|
|
23405
23364
|
case 1:
|
|
23406
23365
|
case "end":
|
|
23407
|
-
return
|
|
23366
|
+
return _context16.stop();
|
|
23408
23367
|
}
|
|
23409
23368
|
}
|
|
23410
|
-
},
|
|
23369
|
+
}, _callee16);
|
|
23411
23370
|
}));
|
|
23412
23371
|
|
|
23413
|
-
return function (
|
|
23414
|
-
return
|
|
23372
|
+
return function (_x12) {
|
|
23373
|
+
return _ref16.apply(this, arguments);
|
|
23415
23374
|
};
|
|
23416
23375
|
}());
|
|
23417
23376
|
});
|
|
@@ -23511,23 +23470,23 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23511
23470
|
}, "\u786E\u5B9A"), /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX3.Button, {
|
|
23512
23471
|
onClick: function onClick() {
|
|
23513
23472
|
controller.pipeline( /*#__PURE__*/function () {
|
|
23514
|
-
var
|
|
23515
|
-
return _regeneratorRuntime().wrap(function
|
|
23473
|
+
var _ref17 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee17(s) {
|
|
23474
|
+
return _regeneratorRuntime().wrap(function _callee17$(_context17) {
|
|
23516
23475
|
while (1) {
|
|
23517
|
-
switch (
|
|
23476
|
+
switch (_context17.prev = _context17.next) {
|
|
23518
23477
|
case 0:
|
|
23519
|
-
return
|
|
23478
|
+
return _context17.abrupt("return", s.goodsListState.endowCode.endowcodeGoodIndex = []);
|
|
23520
23479
|
|
|
23521
23480
|
case 1:
|
|
23522
23481
|
case "end":
|
|
23523
|
-
return
|
|
23482
|
+
return _context17.stop();
|
|
23524
23483
|
}
|
|
23525
23484
|
}
|
|
23526
|
-
},
|
|
23485
|
+
}, _callee17);
|
|
23527
23486
|
}));
|
|
23528
23487
|
|
|
23529
|
-
return function (
|
|
23530
|
-
return
|
|
23488
|
+
return function (_x13) {
|
|
23489
|
+
return _ref17.apply(this, arguments);
|
|
23531
23490
|
};
|
|
23532
23491
|
}())();
|
|
23533
23492
|
}
|