kts-component-invoice-operate 3.2.81 → 3.2.82
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
|
@@ -22591,8 +22591,10 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
22591
22591
|
setList = _React$useState16[1];
|
|
22592
22592
|
|
|
22593
22593
|
var onSearch = React.useCallback( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee11() {
|
|
22594
|
+
var _value$target;
|
|
22595
|
+
|
|
22594
22596
|
var value,
|
|
22595
|
-
_value$
|
|
22597
|
+
_value$target2,
|
|
22596
22598
|
arr,
|
|
22597
22599
|
_list,
|
|
22598
22600
|
_args11 = arguments;
|
|
@@ -22603,13 +22605,13 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
22603
22605
|
case 0:
|
|
22604
22606
|
value = _args11.length > 0 && _args11[0] !== undefined ? _args11[0] : null;
|
|
22605
22607
|
|
|
22606
|
-
if (!value) {
|
|
22608
|
+
if (!(value === null || value === void 0 ? void 0 : (_value$target = value.target) === null || _value$target === void 0 ? void 0 : _value$target.value)) {
|
|
22607
22609
|
_context11.next = 9;
|
|
22608
22610
|
break;
|
|
22609
22611
|
}
|
|
22610
22612
|
|
|
22611
22613
|
_context11.next = 4;
|
|
22612
|
-
return controller.state.goodsListState.endowCode.onSearchTaxClassificationCode(value === null || value === void 0 ? void 0 : (_value$
|
|
22614
|
+
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);
|
|
22613
22615
|
|
|
22614
22616
|
case 4:
|
|
22615
22617
|
arr = _context11.sent;
|
|
@@ -22716,13 +22718,13 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
22716
22718
|
return _ref14.apply(this, arguments);
|
|
22717
22719
|
};
|
|
22718
22720
|
}());
|
|
22719
|
-
actions.setFieldState('
|
|
22721
|
+
actions.setFieldState('shorthand', /*#__PURE__*/function () {
|
|
22720
22722
|
var _ref15 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee15(s) {
|
|
22721
22723
|
return _regeneratorRuntime().wrap(function _callee15$(_context15) {
|
|
22722
22724
|
while (1) {
|
|
22723
22725
|
switch (_context15.prev = _context15.next) {
|
|
22724
22726
|
case 0:
|
|
22725
|
-
s.value = info.node.
|
|
22727
|
+
s.value = info.node.shorthand;
|
|
22726
22728
|
|
|
22727
22729
|
case 1:
|
|
22728
22730
|
case "end":
|
|
@@ -22736,13 +22738,13 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
22736
22738
|
return _ref15.apply(this, arguments);
|
|
22737
22739
|
};
|
|
22738
22740
|
}());
|
|
22739
|
-
actions.setFieldState('
|
|
22741
|
+
actions.setFieldState('taxRate', /*#__PURE__*/function () {
|
|
22740
22742
|
var _ref16 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee16(s) {
|
|
22741
22743
|
return _regeneratorRuntime().wrap(function _callee16$(_context16) {
|
|
22742
22744
|
while (1) {
|
|
22743
22745
|
switch (_context16.prev = _context16.next) {
|
|
22744
22746
|
case 0:
|
|
22745
|
-
s.value = info.node.
|
|
22747
|
+
s.value = info.node.taxRate;
|
|
22746
22748
|
|
|
22747
22749
|
case 1:
|
|
22748
22750
|
case "end":
|
|
@@ -22756,26 +22758,6 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
22756
22758
|
return _ref16.apply(this, arguments);
|
|
22757
22759
|
};
|
|
22758
22760
|
}());
|
|
22759
|
-
actions.setFieldState('taxRate', /*#__PURE__*/function () {
|
|
22760
|
-
var _ref17 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee17(s) {
|
|
22761
|
-
return _regeneratorRuntime().wrap(function _callee17$(_context17) {
|
|
22762
|
-
while (1) {
|
|
22763
|
-
switch (_context17.prev = _context17.next) {
|
|
22764
|
-
case 0:
|
|
22765
|
-
s.value = info.node.taxRate;
|
|
22766
|
-
|
|
22767
|
-
case 1:
|
|
22768
|
-
case "end":
|
|
22769
|
-
return _context17.stop();
|
|
22770
|
-
}
|
|
22771
|
-
}
|
|
22772
|
-
}, _callee17);
|
|
22773
|
-
}));
|
|
22774
|
-
|
|
22775
|
-
return function (_x13) {
|
|
22776
|
-
return _ref17.apply(this, arguments);
|
|
22777
|
-
};
|
|
22778
|
-
}());
|
|
22779
22761
|
setOpen(false);
|
|
22780
22762
|
}, [controller, actions]);
|
|
22781
22763
|
|
|
@@ -22789,7 +22771,7 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
22789
22771
|
};
|
|
22790
22772
|
|
|
22791
22773
|
var updateTreeData = function updateTreeData(list, key, children) {
|
|
22792
|
-
|
|
22774
|
+
var data = list.map(function (node) {
|
|
22793
22775
|
if (node.key === key) {
|
|
22794
22776
|
return _objectSpread2(_objectSpread2({}, node), {}, {
|
|
22795
22777
|
children: children
|
|
@@ -22804,6 +22786,8 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
22804
22786
|
|
|
22805
22787
|
return node;
|
|
22806
22788
|
});
|
|
22789
|
+
setList(data);
|
|
22790
|
+
return data;
|
|
22807
22791
|
};
|
|
22808
22792
|
|
|
22809
22793
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Input, {
|
|
@@ -22830,11 +22814,11 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
22830
22814
|
|
|
22831
22815
|
var onSubmit = React.useCallback(function (values) {
|
|
22832
22816
|
controller.pipeline( /*#__PURE__*/function () {
|
|
22833
|
-
var
|
|
22817
|
+
var _ref17 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee17(s) {
|
|
22834
22818
|
var endowCodeGood;
|
|
22835
|
-
return _regeneratorRuntime().wrap(function
|
|
22819
|
+
return _regeneratorRuntime().wrap(function _callee17$(_context17) {
|
|
22836
22820
|
while (1) {
|
|
22837
|
-
switch (
|
|
22821
|
+
switch (_context17.prev = _context17.next) {
|
|
22838
22822
|
case 0:
|
|
22839
22823
|
endowCodeGood = s.goodsListState.endowCode.endowcodeGoodIndex.map(function (e) {
|
|
22840
22824
|
return s.goodsListState.goodsMap.get(e);
|
|
@@ -22861,14 +22845,14 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
22861
22845
|
|
|
22862
22846
|
case 4:
|
|
22863
22847
|
case "end":
|
|
22864
|
-
return
|
|
22848
|
+
return _context17.stop();
|
|
22865
22849
|
}
|
|
22866
22850
|
}
|
|
22867
|
-
},
|
|
22851
|
+
}, _callee17);
|
|
22868
22852
|
}));
|
|
22869
22853
|
|
|
22870
|
-
return function (
|
|
22871
|
-
return
|
|
22854
|
+
return function (_x13) {
|
|
22855
|
+
return _ref17.apply(this, arguments);
|
|
22872
22856
|
};
|
|
22873
22857
|
}())();
|
|
22874
22858
|
}, [controller]);
|
|
@@ -22877,23 +22861,23 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
22877
22861
|
FormEffectHooks.onFieldValueChange$('taxRate').subscribe(function (e) {
|
|
22878
22862
|
setTaxRate(e.value);
|
|
22879
22863
|
actions.setFieldState('taxFreeType', /*#__PURE__*/function () {
|
|
22880
|
-
var
|
|
22881
|
-
return _regeneratorRuntime().wrap(function
|
|
22864
|
+
var _ref18 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee18(s) {
|
|
22865
|
+
return _regeneratorRuntime().wrap(function _callee18$(_context18) {
|
|
22882
22866
|
while (1) {
|
|
22883
|
-
switch (
|
|
22867
|
+
switch (_context18.prev = _context18.next) {
|
|
22884
22868
|
case 0:
|
|
22885
22869
|
if (e.value !== 0) s.value = undefined;
|
|
22886
22870
|
|
|
22887
22871
|
case 1:
|
|
22888
22872
|
case "end":
|
|
22889
|
-
return
|
|
22873
|
+
return _context18.stop();
|
|
22890
22874
|
}
|
|
22891
22875
|
}
|
|
22892
|
-
},
|
|
22876
|
+
}, _callee18);
|
|
22893
22877
|
}));
|
|
22894
22878
|
|
|
22895
|
-
return function (
|
|
22896
|
-
return
|
|
22879
|
+
return function (_x14) {
|
|
22880
|
+
return _ref18.apply(this, arguments);
|
|
22897
22881
|
};
|
|
22898
22882
|
}());
|
|
22899
22883
|
}); // 是否享受优惠政策
|
|
@@ -22901,23 +22885,23 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
22901
22885
|
FormEffectHooks.onFieldValueChange$('favouredPolicyMark').subscribe(function (e) {
|
|
22902
22886
|
setFavouredPolicyMark(e.value);
|
|
22903
22887
|
actions.setFieldState('favouredPolicyName', /*#__PURE__*/function () {
|
|
22904
|
-
var
|
|
22905
|
-
return _regeneratorRuntime().wrap(function
|
|
22888
|
+
var _ref19 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee19(s) {
|
|
22889
|
+
return _regeneratorRuntime().wrap(function _callee19$(_context19) {
|
|
22906
22890
|
while (1) {
|
|
22907
|
-
switch (
|
|
22891
|
+
switch (_context19.prev = _context19.next) {
|
|
22908
22892
|
case 0:
|
|
22909
22893
|
if (e.value === 0) s.value = undefined;
|
|
22910
22894
|
|
|
22911
22895
|
case 1:
|
|
22912
22896
|
case "end":
|
|
22913
|
-
return
|
|
22897
|
+
return _context19.stop();
|
|
22914
22898
|
}
|
|
22915
22899
|
}
|
|
22916
|
-
},
|
|
22900
|
+
}, _callee19);
|
|
22917
22901
|
}));
|
|
22918
22902
|
|
|
22919
|
-
return function (
|
|
22920
|
-
return
|
|
22903
|
+
return function (_x15) {
|
|
22904
|
+
return _ref19.apply(this, arguments);
|
|
22921
22905
|
};
|
|
22922
22906
|
}());
|
|
22923
22907
|
});
|
|
@@ -22943,12 +22927,6 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
22943
22927
|
message: '请选择税收分类编码',
|
|
22944
22928
|
required: true
|
|
22945
22929
|
}]
|
|
22946
|
-
}), /*#__PURE__*/React.createElement(SchemaMarkupField, {
|
|
22947
|
-
name: "productName",
|
|
22948
|
-
type: "string",
|
|
22949
|
-
readOnly: true,
|
|
22950
|
-
default: defaultValue === null || defaultValue === void 0 ? void 0 : defaultValue.productName,
|
|
22951
|
-
title: "\u7A0E\u6536\u5206\u7C7B\u540D\u79F0"
|
|
22952
22930
|
}), /*#__PURE__*/React.createElement(SchemaMarkupField, {
|
|
22953
22931
|
name: "shorthand",
|
|
22954
22932
|
type: "string",
|
|
@@ -23023,23 +23001,23 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23023
23001
|
}, "\u786E\u5B9A"), /*#__PURE__*/React.createElement(Button, {
|
|
23024
23002
|
onClick: function onClick() {
|
|
23025
23003
|
controller.pipeline( /*#__PURE__*/function () {
|
|
23026
|
-
var
|
|
23027
|
-
return _regeneratorRuntime().wrap(function
|
|
23004
|
+
var _ref20 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee20(s) {
|
|
23005
|
+
return _regeneratorRuntime().wrap(function _callee20$(_context20) {
|
|
23028
23006
|
while (1) {
|
|
23029
|
-
switch (
|
|
23007
|
+
switch (_context20.prev = _context20.next) {
|
|
23030
23008
|
case 0:
|
|
23031
|
-
return
|
|
23009
|
+
return _context20.abrupt("return", s.goodsListState.endowCode.endowcodeGoodIndex = []);
|
|
23032
23010
|
|
|
23033
23011
|
case 1:
|
|
23034
23012
|
case "end":
|
|
23035
|
-
return
|
|
23013
|
+
return _context20.stop();
|
|
23036
23014
|
}
|
|
23037
23015
|
}
|
|
23038
|
-
},
|
|
23016
|
+
}, _callee20);
|
|
23039
23017
|
}));
|
|
23040
23018
|
|
|
23041
|
-
return function (
|
|
23042
|
-
return
|
|
23019
|
+
return function (_x16) {
|
|
23020
|
+
return _ref20.apply(this, arguments);
|
|
23043
23021
|
};
|
|
23044
23022
|
}())();
|
|
23045
23023
|
}
|
package/dist/index.js
CHANGED
|
@@ -22601,8 +22601,10 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
22601
22601
|
setList = _React$useState16[1];
|
|
22602
22602
|
|
|
22603
22603
|
var onSearch = React__default['default'].useCallback( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee11() {
|
|
22604
|
+
var _value$target;
|
|
22605
|
+
|
|
22604
22606
|
var value,
|
|
22605
|
-
_value$
|
|
22607
|
+
_value$target2,
|
|
22606
22608
|
arr,
|
|
22607
22609
|
_list,
|
|
22608
22610
|
_args11 = arguments;
|
|
@@ -22613,13 +22615,13 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
22613
22615
|
case 0:
|
|
22614
22616
|
value = _args11.length > 0 && _args11[0] !== undefined ? _args11[0] : null;
|
|
22615
22617
|
|
|
22616
|
-
if (!value) {
|
|
22618
|
+
if (!(value === null || value === void 0 ? void 0 : (_value$target = value.target) === null || _value$target === void 0 ? void 0 : _value$target.value)) {
|
|
22617
22619
|
_context11.next = 9;
|
|
22618
22620
|
break;
|
|
22619
22621
|
}
|
|
22620
22622
|
|
|
22621
22623
|
_context11.next = 4;
|
|
22622
|
-
return controller.state.goodsListState.endowCode.onSearchTaxClassificationCode(value === null || value === void 0 ? void 0 : (_value$
|
|
22624
|
+
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);
|
|
22623
22625
|
|
|
22624
22626
|
case 4:
|
|
22625
22627
|
arr = _context11.sent;
|
|
@@ -22726,13 +22728,13 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
22726
22728
|
return _ref14.apply(this, arguments);
|
|
22727
22729
|
};
|
|
22728
22730
|
}());
|
|
22729
|
-
actions.setFieldState('
|
|
22731
|
+
actions.setFieldState('shorthand', /*#__PURE__*/function () {
|
|
22730
22732
|
var _ref15 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee15(s) {
|
|
22731
22733
|
return _regeneratorRuntime().wrap(function _callee15$(_context15) {
|
|
22732
22734
|
while (1) {
|
|
22733
22735
|
switch (_context15.prev = _context15.next) {
|
|
22734
22736
|
case 0:
|
|
22735
|
-
s.value = info.node.
|
|
22737
|
+
s.value = info.node.shorthand;
|
|
22736
22738
|
|
|
22737
22739
|
case 1:
|
|
22738
22740
|
case "end":
|
|
@@ -22746,13 +22748,13 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
22746
22748
|
return _ref15.apply(this, arguments);
|
|
22747
22749
|
};
|
|
22748
22750
|
}());
|
|
22749
|
-
actions.setFieldState('
|
|
22751
|
+
actions.setFieldState('taxRate', /*#__PURE__*/function () {
|
|
22750
22752
|
var _ref16 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee16(s) {
|
|
22751
22753
|
return _regeneratorRuntime().wrap(function _callee16$(_context16) {
|
|
22752
22754
|
while (1) {
|
|
22753
22755
|
switch (_context16.prev = _context16.next) {
|
|
22754
22756
|
case 0:
|
|
22755
|
-
s.value = info.node.
|
|
22757
|
+
s.value = info.node.taxRate;
|
|
22756
22758
|
|
|
22757
22759
|
case 1:
|
|
22758
22760
|
case "end":
|
|
@@ -22766,26 +22768,6 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
22766
22768
|
return _ref16.apply(this, arguments);
|
|
22767
22769
|
};
|
|
22768
22770
|
}());
|
|
22769
|
-
actions.setFieldState('taxRate', /*#__PURE__*/function () {
|
|
22770
|
-
var _ref17 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee17(s) {
|
|
22771
|
-
return _regeneratorRuntime().wrap(function _callee17$(_context17) {
|
|
22772
|
-
while (1) {
|
|
22773
|
-
switch (_context17.prev = _context17.next) {
|
|
22774
|
-
case 0:
|
|
22775
|
-
s.value = info.node.taxRate;
|
|
22776
|
-
|
|
22777
|
-
case 1:
|
|
22778
|
-
case "end":
|
|
22779
|
-
return _context17.stop();
|
|
22780
|
-
}
|
|
22781
|
-
}
|
|
22782
|
-
}, _callee17);
|
|
22783
|
-
}));
|
|
22784
|
-
|
|
22785
|
-
return function (_x13) {
|
|
22786
|
-
return _ref17.apply(this, arguments);
|
|
22787
|
-
};
|
|
22788
|
-
}());
|
|
22789
22771
|
setOpen(false);
|
|
22790
22772
|
}, [controller, actions]);
|
|
22791
22773
|
|
|
@@ -22799,7 +22781,7 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
22799
22781
|
};
|
|
22800
22782
|
|
|
22801
22783
|
var updateTreeData = function updateTreeData(list, key, children) {
|
|
22802
|
-
|
|
22784
|
+
var data = list.map(function (node) {
|
|
22803
22785
|
if (node.key === key) {
|
|
22804
22786
|
return _objectSpread2(_objectSpread2({}, node), {}, {
|
|
22805
22787
|
children: children
|
|
@@ -22814,6 +22796,8 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
22814
22796
|
|
|
22815
22797
|
return node;
|
|
22816
22798
|
});
|
|
22799
|
+
setList(data);
|
|
22800
|
+
return data;
|
|
22817
22801
|
};
|
|
22818
22802
|
|
|
22819
22803
|
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX3.Input, {
|
|
@@ -22840,11 +22824,11 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
22840
22824
|
|
|
22841
22825
|
var onSubmit = React__default['default'].useCallback(function (values) {
|
|
22842
22826
|
controller.pipeline( /*#__PURE__*/function () {
|
|
22843
|
-
var
|
|
22827
|
+
var _ref17 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee17(s) {
|
|
22844
22828
|
var endowCodeGood;
|
|
22845
|
-
return _regeneratorRuntime().wrap(function
|
|
22829
|
+
return _regeneratorRuntime().wrap(function _callee17$(_context17) {
|
|
22846
22830
|
while (1) {
|
|
22847
|
-
switch (
|
|
22831
|
+
switch (_context17.prev = _context17.next) {
|
|
22848
22832
|
case 0:
|
|
22849
22833
|
endowCodeGood = s.goodsListState.endowCode.endowcodeGoodIndex.map(function (e) {
|
|
22850
22834
|
return s.goodsListState.goodsMap.get(e);
|
|
@@ -22871,14 +22855,14 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
22871
22855
|
|
|
22872
22856
|
case 4:
|
|
22873
22857
|
case "end":
|
|
22874
|
-
return
|
|
22858
|
+
return _context17.stop();
|
|
22875
22859
|
}
|
|
22876
22860
|
}
|
|
22877
|
-
},
|
|
22861
|
+
}, _callee17);
|
|
22878
22862
|
}));
|
|
22879
22863
|
|
|
22880
|
-
return function (
|
|
22881
|
-
return
|
|
22864
|
+
return function (_x13) {
|
|
22865
|
+
return _ref17.apply(this, arguments);
|
|
22882
22866
|
};
|
|
22883
22867
|
}())();
|
|
22884
22868
|
}, [controller]);
|
|
@@ -22887,23 +22871,23 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
22887
22871
|
antd.FormEffectHooks.onFieldValueChange$('taxRate').subscribe(function (e) {
|
|
22888
22872
|
setTaxRate(e.value);
|
|
22889
22873
|
actions.setFieldState('taxFreeType', /*#__PURE__*/function () {
|
|
22890
|
-
var
|
|
22891
|
-
return _regeneratorRuntime().wrap(function
|
|
22874
|
+
var _ref18 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee18(s) {
|
|
22875
|
+
return _regeneratorRuntime().wrap(function _callee18$(_context18) {
|
|
22892
22876
|
while (1) {
|
|
22893
|
-
switch (
|
|
22877
|
+
switch (_context18.prev = _context18.next) {
|
|
22894
22878
|
case 0:
|
|
22895
22879
|
if (e.value !== 0) s.value = undefined;
|
|
22896
22880
|
|
|
22897
22881
|
case 1:
|
|
22898
22882
|
case "end":
|
|
22899
|
-
return
|
|
22883
|
+
return _context18.stop();
|
|
22900
22884
|
}
|
|
22901
22885
|
}
|
|
22902
|
-
},
|
|
22886
|
+
}, _callee18);
|
|
22903
22887
|
}));
|
|
22904
22888
|
|
|
22905
|
-
return function (
|
|
22906
|
-
return
|
|
22889
|
+
return function (_x14) {
|
|
22890
|
+
return _ref18.apply(this, arguments);
|
|
22907
22891
|
};
|
|
22908
22892
|
}());
|
|
22909
22893
|
}); // 是否享受优惠政策
|
|
@@ -22911,23 +22895,23 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
22911
22895
|
antd.FormEffectHooks.onFieldValueChange$('favouredPolicyMark').subscribe(function (e) {
|
|
22912
22896
|
setFavouredPolicyMark(e.value);
|
|
22913
22897
|
actions.setFieldState('favouredPolicyName', /*#__PURE__*/function () {
|
|
22914
|
-
var
|
|
22915
|
-
return _regeneratorRuntime().wrap(function
|
|
22898
|
+
var _ref19 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee19(s) {
|
|
22899
|
+
return _regeneratorRuntime().wrap(function _callee19$(_context19) {
|
|
22916
22900
|
while (1) {
|
|
22917
|
-
switch (
|
|
22901
|
+
switch (_context19.prev = _context19.next) {
|
|
22918
22902
|
case 0:
|
|
22919
22903
|
if (e.value === 0) s.value = undefined;
|
|
22920
22904
|
|
|
22921
22905
|
case 1:
|
|
22922
22906
|
case "end":
|
|
22923
|
-
return
|
|
22907
|
+
return _context19.stop();
|
|
22924
22908
|
}
|
|
22925
22909
|
}
|
|
22926
|
-
},
|
|
22910
|
+
}, _callee19);
|
|
22927
22911
|
}));
|
|
22928
22912
|
|
|
22929
|
-
return function (
|
|
22930
|
-
return
|
|
22913
|
+
return function (_x15) {
|
|
22914
|
+
return _ref19.apply(this, arguments);
|
|
22931
22915
|
};
|
|
22932
22916
|
}());
|
|
22933
22917
|
});
|
|
@@ -22953,12 +22937,6 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
22953
22937
|
message: '请选择税收分类编码',
|
|
22954
22938
|
required: true
|
|
22955
22939
|
}]
|
|
22956
|
-
}), /*#__PURE__*/React__default['default'].createElement(antd.SchemaMarkupField, {
|
|
22957
|
-
name: "productName",
|
|
22958
|
-
type: "string",
|
|
22959
|
-
readOnly: true,
|
|
22960
|
-
default: defaultValue === null || defaultValue === void 0 ? void 0 : defaultValue.productName,
|
|
22961
|
-
title: "\u7A0E\u6536\u5206\u7C7B\u540D\u79F0"
|
|
22962
22940
|
}), /*#__PURE__*/React__default['default'].createElement(antd.SchemaMarkupField, {
|
|
22963
22941
|
name: "shorthand",
|
|
22964
22942
|
type: "string",
|
|
@@ -23033,23 +23011,23 @@ var DrawerBody$3 = function DrawerBody(props) {
|
|
|
23033
23011
|
}, "\u786E\u5B9A"), /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX3.Button, {
|
|
23034
23012
|
onClick: function onClick() {
|
|
23035
23013
|
controller.pipeline( /*#__PURE__*/function () {
|
|
23036
|
-
var
|
|
23037
|
-
return _regeneratorRuntime().wrap(function
|
|
23014
|
+
var _ref20 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee20(s) {
|
|
23015
|
+
return _regeneratorRuntime().wrap(function _callee20$(_context20) {
|
|
23038
23016
|
while (1) {
|
|
23039
|
-
switch (
|
|
23017
|
+
switch (_context20.prev = _context20.next) {
|
|
23040
23018
|
case 0:
|
|
23041
|
-
return
|
|
23019
|
+
return _context20.abrupt("return", s.goodsListState.endowCode.endowcodeGoodIndex = []);
|
|
23042
23020
|
|
|
23043
23021
|
case 1:
|
|
23044
23022
|
case "end":
|
|
23045
|
-
return
|
|
23023
|
+
return _context20.stop();
|
|
23046
23024
|
}
|
|
23047
23025
|
}
|
|
23048
|
-
},
|
|
23026
|
+
}, _callee20);
|
|
23049
23027
|
}));
|
|
23050
23028
|
|
|
23051
|
-
return function (
|
|
23052
|
-
return
|
|
23029
|
+
return function (_x16) {
|
|
23030
|
+
return _ref20.apply(this, arguments);
|
|
23053
23031
|
};
|
|
23054
23032
|
}())();
|
|
23055
23033
|
}
|
package/package.json
CHANGED
|
@@ -23,7 +23,568 @@ export default () => {
|
|
|
23
23
|
class MyInvoiceController extends InvoiceController {
|
|
24
24
|
constructor() {
|
|
25
25
|
super();
|
|
26
|
+
this.state.goodsListState.columnshide = [];
|
|
26
27
|
|
|
28
|
+
this.state.goodsListState.endowCode.onSearchTaxClassificationCode = async (value: any) => {
|
|
29
|
+
console.log(value, 'value-onSearchTaxClassificationCode');
|
|
30
|
+
|
|
31
|
+
return [
|
|
32
|
+
{
|
|
33
|
+
"taxCategoryCode": "1030206030000000000",
|
|
34
|
+
"productName": "醋及醋代用品",
|
|
35
|
+
"shorthand": "调味品",
|
|
36
|
+
"id": null,
|
|
37
|
+
"specification": null,
|
|
38
|
+
"createTime": null,
|
|
39
|
+
"status": 1,
|
|
40
|
+
"versionCode": "48.0",
|
|
41
|
+
"version": "32.0",
|
|
42
|
+
"startTime": "20190401",
|
|
43
|
+
"endTime": null,
|
|
44
|
+
"cargo": null,
|
|
45
|
+
"desc": null,
|
|
46
|
+
"taxRate": "13%",
|
|
47
|
+
"keyword": "食醋、米醋、酒醋、啤酒醋、麦芽醋、酒精醋、水果醋、醋精",
|
|
48
|
+
"summarizedItem": "N",
|
|
49
|
+
"countCode": null,
|
|
50
|
+
"customsItem": null,
|
|
51
|
+
"updateTime": null,
|
|
52
|
+
"hzx": null,
|
|
53
|
+
"children": null,
|
|
54
|
+
"vatspecialManagement": "",
|
|
55
|
+
"pid": "1030206000000000000",
|
|
56
|
+
"vatpolicyBasis": null,
|
|
57
|
+
"vatspecialManagementCode": "",
|
|
58
|
+
"gstpolicyBasisCode": null,
|
|
59
|
+
"gstspecialManagement": null,
|
|
60
|
+
"gstpolicyBasis": null
|
|
61
|
+
}
|
|
62
|
+
]
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
this.state.goodsListState.endowCode.onLoadTaxClassificationCode = async (value: any) => {
|
|
66
|
+
console.log(value, 'value-onSearchTaxClassificationCode');
|
|
67
|
+
if(value === '3000000000000000000') {
|
|
68
|
+
return [
|
|
69
|
+
{
|
|
70
|
+
"taxCategoryCode": "3060000000000000000",
|
|
71
|
+
"productName": "金融服务",
|
|
72
|
+
"shorthand": "金融服务",
|
|
73
|
+
"id": null,
|
|
74
|
+
"specification": null,
|
|
75
|
+
"createTime": "Tue Jun 20 14:55:37 CST 2023",
|
|
76
|
+
"status": 1,
|
|
77
|
+
"versionCode": "48.0",
|
|
78
|
+
"version": "32.0",
|
|
79
|
+
"startTime": "20190401",
|
|
80
|
+
"endTime": null,
|
|
81
|
+
"cargo": null,
|
|
82
|
+
"desc": null,
|
|
83
|
+
"taxRate": "",
|
|
84
|
+
"keyword": "金融服务",
|
|
85
|
+
"summarizedItem": "Y",
|
|
86
|
+
"countCode": null,
|
|
87
|
+
"customsItem": null,
|
|
88
|
+
"updateTime": "Tue Jun 20 14:55:37 CST 2023",
|
|
89
|
+
"hzx": "Y",
|
|
90
|
+
"children": null,
|
|
91
|
+
"vatspecialManagement": "",
|
|
92
|
+
"pid": "3000000000000000000",
|
|
93
|
+
"vatpolicyBasis": null,
|
|
94
|
+
"vatspecialManagementCode": "",
|
|
95
|
+
"gstpolicyBasisCode": null,
|
|
96
|
+
"gstspecialManagement": null,
|
|
97
|
+
"gstpolicyBasis": null
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"taxCategoryCode": "3070000000000000000",
|
|
101
|
+
"productName": "生活服务",
|
|
102
|
+
"shorthand": "生活服务",
|
|
103
|
+
"id": null,
|
|
104
|
+
"specification": null,
|
|
105
|
+
"createTime": "Tue Jun 20 14:57:32 CST 2023",
|
|
106
|
+
"status": 1,
|
|
107
|
+
"versionCode": "48.0",
|
|
108
|
+
"version": "32.0",
|
|
109
|
+
"startTime": "20190401",
|
|
110
|
+
"endTime": null,
|
|
111
|
+
"cargo": null,
|
|
112
|
+
"desc": null,
|
|
113
|
+
"taxRate": "",
|
|
114
|
+
"keyword": "",
|
|
115
|
+
"summarizedItem": "Y",
|
|
116
|
+
"countCode": null,
|
|
117
|
+
"customsItem": null,
|
|
118
|
+
"updateTime": "Tue Jun 20 14:57:32 CST 2023",
|
|
119
|
+
"hzx": "Y",
|
|
120
|
+
"children": null,
|
|
121
|
+
"vatspecialManagement": "",
|
|
122
|
+
"pid": "3000000000000000000",
|
|
123
|
+
"vatpolicyBasis": null,
|
|
124
|
+
"vatspecialManagementCode": "",
|
|
125
|
+
"gstpolicyBasisCode": null,
|
|
126
|
+
"gstspecialManagement": null,
|
|
127
|
+
"gstpolicyBasis": null
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"taxCategoryCode": "3030000000000000000",
|
|
131
|
+
"productName": "电信服务",
|
|
132
|
+
"shorthand": "电信服务",
|
|
133
|
+
"id": null,
|
|
134
|
+
"specification": null,
|
|
135
|
+
"createTime": "Tue Jun 20 14:56:43 CST 2023",
|
|
136
|
+
"status": 1,
|
|
137
|
+
"versionCode": "48.0",
|
|
138
|
+
"version": "32.0",
|
|
139
|
+
"startTime": "20190401",
|
|
140
|
+
"endTime": null,
|
|
141
|
+
"cargo": null,
|
|
142
|
+
"desc": null,
|
|
143
|
+
"taxRate": "",
|
|
144
|
+
"keyword": "电信服务",
|
|
145
|
+
"summarizedItem": "Y",
|
|
146
|
+
"countCode": null,
|
|
147
|
+
"customsItem": null,
|
|
148
|
+
"updateTime": "Tue Jun 20 14:56:43 CST 2023",
|
|
149
|
+
"hzx": "Y",
|
|
150
|
+
"children": null,
|
|
151
|
+
"vatspecialManagement": "",
|
|
152
|
+
"pid": "3000000000000000000",
|
|
153
|
+
"vatpolicyBasis": null,
|
|
154
|
+
"vatspecialManagementCode": "",
|
|
155
|
+
"gstpolicyBasisCode": null,
|
|
156
|
+
"gstspecialManagement": null,
|
|
157
|
+
"gstpolicyBasis": null
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
"taxCategoryCode": "3020000000000000000",
|
|
161
|
+
"productName": "邮政服务",
|
|
162
|
+
"shorthand": "邮政服务",
|
|
163
|
+
"id": null,
|
|
164
|
+
"specification": null,
|
|
165
|
+
"createTime": "Tue Jun 20 14:56:38 CST 2023",
|
|
166
|
+
"status": 1,
|
|
167
|
+
"versionCode": "48.0",
|
|
168
|
+
"version": "32.0",
|
|
169
|
+
"startTime": "20190401",
|
|
170
|
+
"endTime": null,
|
|
171
|
+
"cargo": null,
|
|
172
|
+
"desc": null,
|
|
173
|
+
"taxRate": "",
|
|
174
|
+
"keyword": "",
|
|
175
|
+
"summarizedItem": "Y",
|
|
176
|
+
"countCode": null,
|
|
177
|
+
"customsItem": null,
|
|
178
|
+
"updateTime": "Tue Jun 20 14:56:38 CST 2023",
|
|
179
|
+
"hzx": "Y",
|
|
180
|
+
"children": null,
|
|
181
|
+
"vatspecialManagement": "",
|
|
182
|
+
"pid": "3000000000000000000",
|
|
183
|
+
"vatpolicyBasis": null,
|
|
184
|
+
"vatspecialManagementCode": "",
|
|
185
|
+
"gstpolicyBasisCode": null,
|
|
186
|
+
"gstspecialManagement": null,
|
|
187
|
+
"gstpolicyBasis": null
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
"taxCategoryCode": "3010000000000000000",
|
|
191
|
+
"productName": "交通运输服务",
|
|
192
|
+
"shorthand": "运输服务",
|
|
193
|
+
"id": null,
|
|
194
|
+
"specification": null,
|
|
195
|
+
"createTime": "Tue Jun 20 14:56:17 CST 2023",
|
|
196
|
+
"status": 1,
|
|
197
|
+
"versionCode": "48.0",
|
|
198
|
+
"version": "32.0",
|
|
199
|
+
"startTime": "20190401",
|
|
200
|
+
"endTime": null,
|
|
201
|
+
"cargo": null,
|
|
202
|
+
"desc": null,
|
|
203
|
+
"taxRate": "",
|
|
204
|
+
"keyword": "交通运输",
|
|
205
|
+
"summarizedItem": "Y",
|
|
206
|
+
"countCode": null,
|
|
207
|
+
"customsItem": null,
|
|
208
|
+
"updateTime": "Tue Jun 20 14:56:17 CST 2023",
|
|
209
|
+
"hzx": "Y",
|
|
210
|
+
"children": null,
|
|
211
|
+
"vatspecialManagement": "",
|
|
212
|
+
"pid": "3000000000000000000",
|
|
213
|
+
"vatpolicyBasis": null,
|
|
214
|
+
"vatspecialManagementCode": "",
|
|
215
|
+
"gstpolicyBasisCode": null,
|
|
216
|
+
"gstspecialManagement": null,
|
|
217
|
+
"gstpolicyBasis": null
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
"taxCategoryCode": "3050000000000000000",
|
|
221
|
+
"productName": "建筑服务",
|
|
222
|
+
"shorthand": "建筑服务",
|
|
223
|
+
"id": null,
|
|
224
|
+
"specification": null,
|
|
225
|
+
"createTime": "Tue Jun 20 14:55:29 CST 2023",
|
|
226
|
+
"status": 1,
|
|
227
|
+
"versionCode": "48.0",
|
|
228
|
+
"version": "32.0",
|
|
229
|
+
"startTime": "20190401",
|
|
230
|
+
"endTime": null,
|
|
231
|
+
"cargo": null,
|
|
232
|
+
"desc": null,
|
|
233
|
+
"taxRate": "",
|
|
234
|
+
"keyword": "",
|
|
235
|
+
"summarizedItem": "Y",
|
|
236
|
+
"countCode": null,
|
|
237
|
+
"customsItem": null,
|
|
238
|
+
"updateTime": "Tue Jun 20 14:55:29 CST 2023",
|
|
239
|
+
"hzx": "Y",
|
|
240
|
+
"children": null,
|
|
241
|
+
"vatspecialManagement": "",
|
|
242
|
+
"pid": "3000000000000000000",
|
|
243
|
+
"vatpolicyBasis": null,
|
|
244
|
+
"vatspecialManagementCode": "",
|
|
245
|
+
"gstpolicyBasisCode": null,
|
|
246
|
+
"gstspecialManagement": null,
|
|
247
|
+
"gstpolicyBasis": null
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
"taxCategoryCode": "3040000000000000000",
|
|
251
|
+
"productName": "现代服务",
|
|
252
|
+
"shorthand": "现代服务",
|
|
253
|
+
"id": null,
|
|
254
|
+
"specification": null,
|
|
255
|
+
"createTime": "Tue Jun 20 14:54:17 CST 2023",
|
|
256
|
+
"status": 1,
|
|
257
|
+
"versionCode": "48.0",
|
|
258
|
+
"version": "32.0",
|
|
259
|
+
"startTime": "20190401",
|
|
260
|
+
"endTime": null,
|
|
261
|
+
"cargo": null,
|
|
262
|
+
"desc": null,
|
|
263
|
+
"taxRate": "",
|
|
264
|
+
"keyword": "",
|
|
265
|
+
"summarizedItem": "Y",
|
|
266
|
+
"countCode": null,
|
|
267
|
+
"customsItem": null,
|
|
268
|
+
"updateTime": "Tue Jun 20 14:54:17 CST 2023",
|
|
269
|
+
"hzx": "Y",
|
|
270
|
+
"children": null,
|
|
271
|
+
"vatspecialManagement": "",
|
|
272
|
+
"pid": "3000000000000000000",
|
|
273
|
+
"vatpolicyBasis": null,
|
|
274
|
+
"vatspecialManagementCode": "",
|
|
275
|
+
"gstpolicyBasisCode": null,
|
|
276
|
+
"gstspecialManagement": null,
|
|
277
|
+
"gstpolicyBasis": null
|
|
278
|
+
}
|
|
279
|
+
]
|
|
280
|
+
} else if(value === '3060000000000000000') {
|
|
281
|
+
return [
|
|
282
|
+
{
|
|
283
|
+
"taxCategoryCode": "3060100000000000000",
|
|
284
|
+
"productName": "贷款服务",
|
|
285
|
+
"shorthand": "金融服务",
|
|
286
|
+
"id": null,
|
|
287
|
+
"specification": null,
|
|
288
|
+
"createTime": "Tue Jun 20 14:56:02 CST 2023",
|
|
289
|
+
"status": 1,
|
|
290
|
+
"versionCode": "48.0",
|
|
291
|
+
"version": "32.0",
|
|
292
|
+
"startTime": "20190401",
|
|
293
|
+
"endTime": null,
|
|
294
|
+
"cargo": null,
|
|
295
|
+
"desc": null,
|
|
296
|
+
"taxRate": "",
|
|
297
|
+
"keyword": "贷款",
|
|
298
|
+
"summarizedItem": "Y",
|
|
299
|
+
"countCode": null,
|
|
300
|
+
"customsItem": null,
|
|
301
|
+
"updateTime": "Tue Jun 20 14:56:02 CST 2023",
|
|
302
|
+
"hzx": "Y",
|
|
303
|
+
"children": null,
|
|
304
|
+
"vatspecialManagement": "",
|
|
305
|
+
"pid": "3060000000000000000",
|
|
306
|
+
"vatpolicyBasis": null,
|
|
307
|
+
"vatspecialManagementCode": "",
|
|
308
|
+
"gstpolicyBasisCode": null,
|
|
309
|
+
"gstspecialManagement": null,
|
|
310
|
+
"gstpolicyBasis": null
|
|
311
|
+
},
|
|
312
|
+
{
|
|
313
|
+
"taxCategoryCode": "3060200000000000000",
|
|
314
|
+
"productName": "直接收费金融服务",
|
|
315
|
+
"shorthand": "金融服务",
|
|
316
|
+
"id": null,
|
|
317
|
+
"specification": null,
|
|
318
|
+
"createTime": "Tue Jun 20 14:56:13 CST 2023",
|
|
319
|
+
"status": 1,
|
|
320
|
+
"versionCode": "48.0",
|
|
321
|
+
"version": "32.0",
|
|
322
|
+
"startTime": "20190401",
|
|
323
|
+
"endTime": null,
|
|
324
|
+
"cargo": null,
|
|
325
|
+
"desc": null,
|
|
326
|
+
"taxRate": "6%",
|
|
327
|
+
"keyword": "货币兑换、账户管理、电子银行、信用卡、信用证、财务担保、资产管理、信托管理、基金管理、金融商品交易、资金结算、资金清算、金融支付",
|
|
328
|
+
"summarizedItem": "N",
|
|
329
|
+
"countCode": null,
|
|
330
|
+
"customsItem": null,
|
|
331
|
+
"updateTime": "Tue Jun 20 14:56:13 CST 2023",
|
|
332
|
+
"hzx": "N",
|
|
333
|
+
"children": null,
|
|
334
|
+
"vatspecialManagement": "",
|
|
335
|
+
"pid": "3060000000000000000",
|
|
336
|
+
"vatpolicyBasis": null,
|
|
337
|
+
"vatspecialManagementCode": "",
|
|
338
|
+
"gstpolicyBasisCode": null,
|
|
339
|
+
"gstspecialManagement": null,
|
|
340
|
+
"gstpolicyBasis": null
|
|
341
|
+
},
|
|
342
|
+
{
|
|
343
|
+
"taxCategoryCode": "3060300000000000000",
|
|
344
|
+
"productName": "保险服务",
|
|
345
|
+
"shorthand": "金融服务",
|
|
346
|
+
"id": null,
|
|
347
|
+
"specification": null,
|
|
348
|
+
"createTime": "Tue Jun 20 14:55:47 CST 2023",
|
|
349
|
+
"status": 1,
|
|
350
|
+
"versionCode": "48.0",
|
|
351
|
+
"version": "32.0",
|
|
352
|
+
"startTime": "20190401",
|
|
353
|
+
"endTime": null,
|
|
354
|
+
"cargo": null,
|
|
355
|
+
"desc": null,
|
|
356
|
+
"taxRate": "",
|
|
357
|
+
"keyword": "",
|
|
358
|
+
"summarizedItem": "Y",
|
|
359
|
+
"countCode": null,
|
|
360
|
+
"customsItem": null,
|
|
361
|
+
"updateTime": "Tue Jun 20 14:55:47 CST 2023",
|
|
362
|
+
"hzx": "Y",
|
|
363
|
+
"children": null,
|
|
364
|
+
"vatspecialManagement": "",
|
|
365
|
+
"pid": "3060000000000000000",
|
|
366
|
+
"vatpolicyBasis": null,
|
|
367
|
+
"vatspecialManagementCode": "",
|
|
368
|
+
"gstpolicyBasisCode": null,
|
|
369
|
+
"gstspecialManagement": null,
|
|
370
|
+
"gstpolicyBasis": null
|
|
371
|
+
},
|
|
372
|
+
{
|
|
373
|
+
"taxCategoryCode": "3060400000000000000",
|
|
374
|
+
"productName": "金融商品转让",
|
|
375
|
+
"shorthand": "金融服务",
|
|
376
|
+
"id": null,
|
|
377
|
+
"specification": null,
|
|
378
|
+
"createTime": "Tue Jun 20 14:54:38 CST 2023",
|
|
379
|
+
"status": 1,
|
|
380
|
+
"versionCode": "48.0",
|
|
381
|
+
"version": "32.0",
|
|
382
|
+
"startTime": "20190401",
|
|
383
|
+
"endTime": null,
|
|
384
|
+
"cargo": null,
|
|
385
|
+
"desc": null,
|
|
386
|
+
"taxRate": "",
|
|
387
|
+
"keyword": "金融商品转让",
|
|
388
|
+
"summarizedItem": "Y",
|
|
389
|
+
"countCode": null,
|
|
390
|
+
"customsItem": null,
|
|
391
|
+
"updateTime": "Tue Jun 20 14:54:38 CST 2023",
|
|
392
|
+
"hzx": "Y",
|
|
393
|
+
"children": null,
|
|
394
|
+
"vatspecialManagement": "",
|
|
395
|
+
"pid": "3060000000000000000",
|
|
396
|
+
"vatpolicyBasis": null,
|
|
397
|
+
"vatspecialManagementCode": "",
|
|
398
|
+
"gstpolicyBasisCode": null,
|
|
399
|
+
"gstspecialManagement": null,
|
|
400
|
+
"gstpolicyBasis": null
|
|
401
|
+
}
|
|
402
|
+
]
|
|
403
|
+
}else {
|
|
404
|
+
return [
|
|
405
|
+
{
|
|
406
|
+
"taxCategoryCode": "3000000000000000000",
|
|
407
|
+
"productName": "销售服务",
|
|
408
|
+
"shorthand": "销售服务",
|
|
409
|
+
"id": null,
|
|
410
|
+
"specification": null,
|
|
411
|
+
"createTime": "Tue Jun 20 14:56:46 CST 2023",
|
|
412
|
+
"status": 1,
|
|
413
|
+
"versionCode": "48.0",
|
|
414
|
+
"version": "32.0",
|
|
415
|
+
"startTime": "20190401",
|
|
416
|
+
"endTime": null,
|
|
417
|
+
"cargo": null,
|
|
418
|
+
"desc": null,
|
|
419
|
+
"taxRate": "",
|
|
420
|
+
"keyword": "",
|
|
421
|
+
"summarizedItem": "Y",
|
|
422
|
+
"countCode": null,
|
|
423
|
+
"customsItem": null,
|
|
424
|
+
"updateTime": "Tue Jun 20 14:56:46 CST 2023",
|
|
425
|
+
"hzx": "Y",
|
|
426
|
+
"children": null,
|
|
427
|
+
"vatspecialManagement": "",
|
|
428
|
+
"pid": "0",
|
|
429
|
+
"vatpolicyBasis": null,
|
|
430
|
+
"vatspecialManagementCode": "",
|
|
431
|
+
"gstpolicyBasisCode": null,
|
|
432
|
+
"gstspecialManagement": null,
|
|
433
|
+
"gstpolicyBasis": null
|
|
434
|
+
},
|
|
435
|
+
{
|
|
436
|
+
"taxCategoryCode": "5000000000000000000",
|
|
437
|
+
"productName": "不动产",
|
|
438
|
+
"shorthand": "不动产",
|
|
439
|
+
"id": null,
|
|
440
|
+
"specification": null,
|
|
441
|
+
"createTime": "Tue Jun 20 14:56:59 CST 2023",
|
|
442
|
+
"status": 1,
|
|
443
|
+
"versionCode": "48.0",
|
|
444
|
+
"version": "32.0",
|
|
445
|
+
"startTime": "20190401",
|
|
446
|
+
"endTime": null,
|
|
447
|
+
"cargo": null,
|
|
448
|
+
"desc": null,
|
|
449
|
+
"taxRate": "",
|
|
450
|
+
"keyword": "",
|
|
451
|
+
"summarizedItem": "Y",
|
|
452
|
+
"countCode": null,
|
|
453
|
+
"customsItem": null,
|
|
454
|
+
"updateTime": "Tue Jun 20 14:56:59 CST 2023",
|
|
455
|
+
"hzx": "Y",
|
|
456
|
+
"children": null,
|
|
457
|
+
"vatspecialManagement": "",
|
|
458
|
+
"pid": "0",
|
|
459
|
+
"vatpolicyBasis": null,
|
|
460
|
+
"vatspecialManagementCode": "",
|
|
461
|
+
"gstpolicyBasisCode": null,
|
|
462
|
+
"gstspecialManagement": null,
|
|
463
|
+
"gstpolicyBasis": null
|
|
464
|
+
},
|
|
465
|
+
{
|
|
466
|
+
"taxCategoryCode": "4000000000000000000",
|
|
467
|
+
"productName": "无形资产",
|
|
468
|
+
"shorthand": "无形资产",
|
|
469
|
+
"id": null,
|
|
470
|
+
"specification": null,
|
|
471
|
+
"createTime": "Tue Jun 20 14:53:36 CST 2023",
|
|
472
|
+
"status": 1,
|
|
473
|
+
"versionCode": "48.0",
|
|
474
|
+
"version": "32.0",
|
|
475
|
+
"startTime": "20190401",
|
|
476
|
+
"endTime": null,
|
|
477
|
+
"cargo": null,
|
|
478
|
+
"desc": null,
|
|
479
|
+
"taxRate": "",
|
|
480
|
+
"keyword": "",
|
|
481
|
+
"summarizedItem": "Y",
|
|
482
|
+
"countCode": null,
|
|
483
|
+
"customsItem": null,
|
|
484
|
+
"updateTime": "Tue Jun 20 14:53:36 CST 2023",
|
|
485
|
+
"hzx": "Y",
|
|
486
|
+
"children": null,
|
|
487
|
+
"vatspecialManagement": "",
|
|
488
|
+
"pid": "0",
|
|
489
|
+
"vatpolicyBasis": null,
|
|
490
|
+
"vatspecialManagementCode": "",
|
|
491
|
+
"gstpolicyBasisCode": null,
|
|
492
|
+
"gstspecialManagement": null,
|
|
493
|
+
"gstpolicyBasis": null
|
|
494
|
+
},
|
|
495
|
+
{
|
|
496
|
+
"taxCategoryCode": "1000000000000000000",
|
|
497
|
+
"productName": "货物",
|
|
498
|
+
"shorthand": "货物",
|
|
499
|
+
"id": null,
|
|
500
|
+
"specification": null,
|
|
501
|
+
"createTime": "Tue Jun 20 14:56:26 CST 2023",
|
|
502
|
+
"status": 1,
|
|
503
|
+
"versionCode": "48.0",
|
|
504
|
+
"version": "32.0",
|
|
505
|
+
"startTime": "20190401",
|
|
506
|
+
"endTime": null,
|
|
507
|
+
"cargo": null,
|
|
508
|
+
"desc": null,
|
|
509
|
+
"taxRate": "",
|
|
510
|
+
"keyword": "",
|
|
511
|
+
"summarizedItem": "Y",
|
|
512
|
+
"countCode": null,
|
|
513
|
+
"customsItem": null,
|
|
514
|
+
"updateTime": "Tue Jun 20 14:56:26 CST 2023",
|
|
515
|
+
"hzx": "Y",
|
|
516
|
+
"children": null,
|
|
517
|
+
"vatspecialManagement": "",
|
|
518
|
+
"pid": "0",
|
|
519
|
+
"vatpolicyBasis": null,
|
|
520
|
+
"vatspecialManagementCode": "",
|
|
521
|
+
"gstpolicyBasisCode": null,
|
|
522
|
+
"gstspecialManagement": null,
|
|
523
|
+
"gstpolicyBasis": null
|
|
524
|
+
},
|
|
525
|
+
{
|
|
526
|
+
"taxCategoryCode": "2000000000000000000",
|
|
527
|
+
"productName": "劳务",
|
|
528
|
+
"shorthand": "劳务",
|
|
529
|
+
"id": null,
|
|
530
|
+
"specification": null,
|
|
531
|
+
"createTime": "Tue Jun 20 14:56:38 CST 2023",
|
|
532
|
+
"status": 1,
|
|
533
|
+
"versionCode": "48.0",
|
|
534
|
+
"version": "32.0",
|
|
535
|
+
"startTime": "20190401",
|
|
536
|
+
"endTime": null,
|
|
537
|
+
"cargo": null,
|
|
538
|
+
"desc": null,
|
|
539
|
+
"taxRate": "",
|
|
540
|
+
"keyword": "",
|
|
541
|
+
"summarizedItem": "Y",
|
|
542
|
+
"countCode": null,
|
|
543
|
+
"customsItem": null,
|
|
544
|
+
"updateTime": "Tue Jun 20 14:56:38 CST 2023",
|
|
545
|
+
"hzx": "Y",
|
|
546
|
+
"children": null,
|
|
547
|
+
"vatspecialManagement": "",
|
|
548
|
+
"pid": "0",
|
|
549
|
+
"vatpolicyBasis": null,
|
|
550
|
+
"vatspecialManagementCode": "",
|
|
551
|
+
"gstpolicyBasisCode": null,
|
|
552
|
+
"gstspecialManagement": null,
|
|
553
|
+
"gstpolicyBasis": null
|
|
554
|
+
},
|
|
555
|
+
{
|
|
556
|
+
"taxCategoryCode": "6000000000000000000",
|
|
557
|
+
"productName": "未发生销售行为的不征税项目",
|
|
558
|
+
"shorthand": "不征税项目",
|
|
559
|
+
"id": null,
|
|
560
|
+
"specification": null,
|
|
561
|
+
"createTime": "Tue Jun 20 14:55:06 CST 2023",
|
|
562
|
+
"status": 1,
|
|
563
|
+
"versionCode": "48.0",
|
|
564
|
+
"version": "32.0",
|
|
565
|
+
"startTime": "20190401",
|
|
566
|
+
"endTime": null,
|
|
567
|
+
"cargo": null,
|
|
568
|
+
"desc": null,
|
|
569
|
+
"taxRate": "",
|
|
570
|
+
"keyword": "",
|
|
571
|
+
"summarizedItem": "Y",
|
|
572
|
+
"countCode": null,
|
|
573
|
+
"customsItem": null,
|
|
574
|
+
"updateTime": "Tue Jun 20 14:55:06 CST 2023",
|
|
575
|
+
"hzx": "Y",
|
|
576
|
+
"children": null,
|
|
577
|
+
"vatspecialManagement": "",
|
|
578
|
+
"pid": "0",
|
|
579
|
+
"vatpolicyBasis": null,
|
|
580
|
+
"vatspecialManagementCode": "",
|
|
581
|
+
"gstpolicyBasisCode": null,
|
|
582
|
+
"gstspecialManagement": null,
|
|
583
|
+
"gstpolicyBasis": null
|
|
584
|
+
}
|
|
585
|
+
]
|
|
586
|
+
}
|
|
587
|
+
};
|
|
27
588
|
// 添加附加信息
|
|
28
589
|
this.state.goodsListState.importGoods.columns = [
|
|
29
590
|
...this.state.goodsListState.importGoods.columns,
|
|
@@ -140,12 +701,13 @@ const getMok = async (current: number = 1) => {
|
|
|
140
701
|
"taxCategoryCode": "1090102040000000000",
|
|
141
702
|
"taxExemptionType": "",
|
|
142
703
|
"taxId": 11,
|
|
143
|
-
"taxRate":
|
|
704
|
+
"taxRate": null,
|
|
144
705
|
"unitId": 30,
|
|
145
706
|
"unitName": "件",
|
|
146
707
|
"itemType": "通用",
|
|
147
708
|
"itemNo": "6000001738252675",
|
|
148
|
-
"itemName": "发动机ABC",
|
|
709
|
+
"itemName": "发动机ABC---",
|
|
710
|
+
"itemCode": "123123",
|
|
149
711
|
"itemModelName": "abc",
|
|
150
712
|
"unit": "件",
|
|
151
713
|
"priceIncludeTax": 50,
|
|
@@ -180,7 +742,7 @@ const getMok = async (current: number = 1) => {
|
|
|
180
742
|
"taxCategoryCode": "1010301010000000000",
|
|
181
743
|
"taxExemptionType": "1",
|
|
182
744
|
"taxId": 1,
|
|
183
|
-
"taxRate":
|
|
745
|
+
"taxRate":null,
|
|
184
746
|
"unitId": null,
|
|
185
747
|
"unitName": null,
|
|
186
748
|
"itemType": "通用",
|
|
@@ -220,7 +782,7 @@ const getMok = async (current: number = 1) => {
|
|
|
220
782
|
"taxCategoryCode": null,
|
|
221
783
|
"taxExemptionType": null,
|
|
222
784
|
"taxId": null,
|
|
223
|
-
"taxRate":
|
|
785
|
+
"taxRate":null,
|
|
224
786
|
"unitId": 362,
|
|
225
787
|
"unitName": "年",
|
|
226
788
|
"itemType": "分类cc>1",
|
|
@@ -260,7 +822,7 @@ const getMok = async (current: number = 1) => {
|
|
|
260
822
|
"taxCategoryCode": "1060301020100000000",
|
|
261
823
|
"taxExemptionType": null,
|
|
262
824
|
"taxId": null,
|
|
263
|
-
"taxRate":
|
|
825
|
+
"taxRate":null,
|
|
264
826
|
"unitId": null,
|
|
265
827
|
"unitName": null,
|
|
266
828
|
"itemType": "通用",
|
|
@@ -300,7 +862,7 @@ const getMok = async (current: number = 1) => {
|
|
|
300
862
|
"taxCategoryCode": "1010107010000000000",
|
|
301
863
|
"taxExemptionType": "3",
|
|
302
864
|
"taxId": 1,
|
|
303
|
-
"taxRate":
|
|
865
|
+
"taxRate":null,
|
|
304
866
|
"unitId": 32,
|
|
305
867
|
"unitName": "把",
|
|
306
868
|
"itemType": "通用",
|
|
@@ -340,7 +902,7 @@ const getMok = async (current: number = 1) => {
|
|
|
340
902
|
"taxCategoryCode": "1000000000000000000",
|
|
341
903
|
"taxExemptionType": null,
|
|
342
904
|
"taxId": null,
|
|
343
|
-
"taxRate":
|
|
905
|
+
"taxRate":null,
|
|
344
906
|
"unitId": 11,
|
|
345
907
|
"unitName": "包",
|
|
346
908
|
"itemType": "通用",
|
|
@@ -380,7 +942,7 @@ const getMok = async (current: number = 1) => {
|
|
|
380
942
|
"taxCategoryCode": "233WD5FG00911",
|
|
381
943
|
"taxExemptionType": null,
|
|
382
944
|
"taxId": null,
|
|
383
|
-
"taxRate":
|
|
945
|
+
"taxRate":null,
|
|
384
946
|
"unitId": 11,
|
|
385
947
|
"unitName": "包",
|
|
386
948
|
"itemType": "通用",
|
|
@@ -420,7 +982,7 @@ const getMok = async (current: number = 1) => {
|
|
|
420
982
|
"taxCategoryCode": "233WD5FG00911",
|
|
421
983
|
"taxExemptionType": null,
|
|
422
984
|
"taxId": null,
|
|
423
|
-
"taxRate":
|
|
985
|
+
"taxRate":null,
|
|
424
986
|
"unitId": 11,
|
|
425
987
|
"unitName": "包",
|
|
426
988
|
"itemType": "通用",
|
|
@@ -460,7 +1022,7 @@ const getMok = async (current: number = 1) => {
|
|
|
460
1022
|
"taxCategoryCode": "233WD5FG00911",
|
|
461
1023
|
"taxExemptionType": null,
|
|
462
1024
|
"taxId": null,
|
|
463
|
-
"taxRate":
|
|
1025
|
+
"taxRate":null,
|
|
464
1026
|
"unitId": 11,
|
|
465
1027
|
"unitName": "包",
|
|
466
1028
|
"itemType": "通用",
|
|
@@ -513,4 +1075,4 @@ const getMok = async (current: number = 1) => {
|
|
|
513
1075
|
"taxClassificationCode": "1234567890123456789"
|
|
514
1076
|
}
|
|
515
1077
|
]
|
|
516
|
-
}
|
|
1078
|
+
}
|
|
@@ -298,7 +298,7 @@ const DrawerBody = (props: { defaultValue: IGood }) => {
|
|
|
298
298
|
const [list, setList] = React.useState<any>([]);
|
|
299
299
|
|
|
300
300
|
const onSearch = React.useCallback(async (value: any = null) => {
|
|
301
|
-
if(value){
|
|
301
|
+
if(value?.target?.value){
|
|
302
302
|
const arr = await controller.state.goodsListState.endowCode.onSearchTaxClassificationCode(value?.target?.value);
|
|
303
303
|
const list: any[] = arr.map((item: any)=> {
|
|
304
304
|
return {
|
|
@@ -346,10 +346,6 @@ const DrawerBody = (props: { defaultValue: IGood }) => {
|
|
|
346
346
|
s.value = info.node.taxCategoryCode
|
|
347
347
|
});
|
|
348
348
|
|
|
349
|
-
actions.setFieldState('productName', async (s) => {
|
|
350
|
-
s.value = info.node.productName
|
|
351
|
-
});
|
|
352
|
-
|
|
353
349
|
actions.setFieldState('shorthand', async (s) => {
|
|
354
350
|
s.value = info.node.shorthand
|
|
355
351
|
});
|
|
@@ -370,7 +366,7 @@ const DrawerBody = (props: { defaultValue: IGood }) => {
|
|
|
370
366
|
}
|
|
371
367
|
|
|
372
368
|
const updateTreeData = (list: any, key: React.Key, children: any): any => {
|
|
373
|
-
|
|
369
|
+
const data = list.map((node: any) => {
|
|
374
370
|
if (node.key === key) {
|
|
375
371
|
return {
|
|
376
372
|
...node,
|
|
@@ -385,6 +381,8 @@ const DrawerBody = (props: { defaultValue: IGood }) => {
|
|
|
385
381
|
}
|
|
386
382
|
return node;
|
|
387
383
|
});
|
|
384
|
+
setList(data);
|
|
385
|
+
return data;
|
|
388
386
|
}
|
|
389
387
|
|
|
390
388
|
return (
|
|
@@ -475,13 +473,6 @@ const DrawerBody = (props: { defaultValue: IGood }) => {
|
|
|
475
473
|
default={defaultValue?.taxClassificationCode}
|
|
476
474
|
x-rules={[{ message: '请选择税收分类编码', required: true }]}
|
|
477
475
|
/>
|
|
478
|
-
<Field
|
|
479
|
-
name="productName"
|
|
480
|
-
type="string"
|
|
481
|
-
readOnly
|
|
482
|
-
default={defaultValue?.productName}
|
|
483
|
-
title="税收分类名称"
|
|
484
|
-
/>
|
|
485
476
|
<Field
|
|
486
477
|
name="shorthand"
|
|
487
478
|
type="string"
|