kts-component-invoice-operate 3.2.249 → 3.2.251
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/.vscode/settings.json +14 -0
- package/dist/Invoice/ui/digtal/Architecture/index.d.ts +4 -0
- package/dist/index.esm.js +187 -76
- package/dist/index.js +186 -75
- package/package.json +1 -1
- package/src/Invoice/Invoice-digtal/_test/importGoods/index.tsx +82 -27
- package/src/Invoice/Invoice-digtal/_test/pay/index.tsx +15 -7
- package/src/Invoice/InvoiceController/InvoiceControllerForm/index.ts +11 -10
- package/src/Invoice/InvoiceController/fns/itemBlur.ts +9 -2
- package/src/Invoice/_test/importBuyer/index.tsx +1 -0
- package/src/Invoice/_test/importGoods/index.tsx +84 -29
- package/src/Invoice/index.tsx +4 -0
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/autoFillFn/index.ts +5 -2
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/index.tsx +3 -2
- package/src/Invoice/ui/digtal/Architecture/index.less +4 -0
- package/src/Invoice/ui/digtal/Architecture/index.tsx +45 -7
- package/src/Invoice/ui/digtal/Architecture/svg/plus.svg +1 -0
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/autoFillFn/index.ts +14 -7
- package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/index.tsx +9 -11
- package/src/Invoice/ui/digtal/GoodsList/ui/Statistics/index.tsx +25 -23
|
@@ -9,6 +9,10 @@ export interface RealEstateInfoProps {
|
|
|
9
9
|
* 建筑服务地址数据字段名
|
|
10
10
|
*/
|
|
11
11
|
fieldNames?: any;
|
|
12
|
+
/** 获取"跨区域涉税事项报验管理编号" */
|
|
13
|
+
getCrossRegionTaxReportNo?: () => Promise<string>;
|
|
14
|
+
/** 是否显示 【 获取"跨区域涉税事项报验管理编号"】按钮 */
|
|
15
|
+
showGetCrossRegionTaxReportNoButton?: boolean;
|
|
12
16
|
}
|
|
13
17
|
/** 特殊信息-建筑服务 */
|
|
14
18
|
declare const _default: React.FunctionComponent<RealEstateInfoProps>;
|
package/dist/index.esm.js
CHANGED
|
@@ -8,7 +8,7 @@ import { message as message$1, TableManual, Switch, AutoComplete as AutoComplete
|
|
|
8
8
|
import classnames from 'classnames';
|
|
9
9
|
import { Table } from 'kts-components-antd-x4-v4';
|
|
10
10
|
import { render } from 'react-dom';
|
|
11
|
-
import { DatePicker, Row as Row$1, Col as Col$1, Input as Input$2, Cascader, Select as Select$2, Form as Form$2, Modal as Modal$2, Space as Space$1, Radio as Radio$1 } from 'kts-components-antd-x4';
|
|
11
|
+
import { DatePicker, Row as Row$1, Col as Col$1, Input as Input$2, Cascader, Select as Select$2, Button as Button$2, Form as Form$2, Modal as Modal$2, Space as Space$1, Radio as Radio$1 } from 'kts-components-antd-x4';
|
|
12
12
|
import { Input as Input$3, NumberPicker } from '@formily/antd-components';
|
|
13
13
|
import { createAsyncFormActions, FormEffectHooks, SchemaForm, FormButtonGroup, SchemaMarkupField } from '@formily/antd';
|
|
14
14
|
|
|
@@ -863,42 +863,42 @@ var InvoiceControllerForm = /*#__PURE__*/function (_GreyReactBox) {
|
|
|
863
863
|
_errors.set('payList', _context.t2.errors);
|
|
864
864
|
|
|
865
865
|
case 47:
|
|
866
|
-
_values.set('payList', this.state.payListState.goodsList.slice()); //
|
|
866
|
+
_values.set('payList', this.state.payListState.goodsList.slice()); // 金额(不含税)
|
|
867
867
|
|
|
868
868
|
|
|
869
|
-
_values.set('
|
|
869
|
+
_values.set('lineAmountExcludeTax', function () {
|
|
870
870
|
var sum = chain$1(bignumber(0));
|
|
871
871
|
|
|
872
872
|
_this3.state.goodsListState.goodsList.forEach(function (e) {
|
|
873
873
|
if (!e || e.lineAttribute === LineAttributeType$1.赠品行) return;
|
|
874
|
-
sum = sum.add(bignumber(e.
|
|
874
|
+
sum = sum.add(bignumber(e.lineAmountExcludeTax || 0));
|
|
875
875
|
});
|
|
876
876
|
|
|
877
877
|
return sum.done().toNumber();
|
|
878
|
-
}()); //
|
|
878
|
+
}()); // 税额
|
|
879
879
|
|
|
880
880
|
|
|
881
|
-
_values.set('
|
|
881
|
+
_values.set('taxAmount', function () {
|
|
882
882
|
var sum = chain$1(bignumber(0));
|
|
883
883
|
|
|
884
884
|
_this3.state.goodsListState.goodsList.forEach(function (e) {
|
|
885
885
|
if (!e || e.lineAttribute === LineAttributeType$1.赠品行) return;
|
|
886
|
-
sum = sum.add(bignumber(e.
|
|
886
|
+
sum = sum.add(bignumber(e.taxAmount || 0));
|
|
887
887
|
});
|
|
888
888
|
|
|
889
889
|
return sum.done().toNumber();
|
|
890
|
-
}()); //
|
|
890
|
+
}()); // 金额(含税)
|
|
891
891
|
|
|
892
892
|
|
|
893
|
-
_values.set('
|
|
893
|
+
_values.set('lineAmountIncludeTax', function () {
|
|
894
894
|
var sum = chain$1(bignumber(0));
|
|
895
895
|
|
|
896
896
|
_this3.state.goodsListState.goodsList.forEach(function (e) {
|
|
897
897
|
if (!e || e.lineAttribute === LineAttributeType$1.赠品行) return;
|
|
898
|
-
sum = sum.add(bignumber(e.
|
|
898
|
+
sum = sum.add(bignumber(e.lineAmountIncludeTax || 0));
|
|
899
899
|
});
|
|
900
900
|
|
|
901
|
-
return sum.done().toNumber();
|
|
901
|
+
return sum.done().toNumber(); // return chain(bignumber(_values.get('lineAmountExcludeTax'))).add(bignumber(_values.get('taxAmount'))).done().toNumber();
|
|
902
902
|
}()); // 含税标记
|
|
903
903
|
|
|
904
904
|
|
|
@@ -9683,8 +9683,10 @@ var updateUnitPriceTax = /*#__PURE__*/function () {
|
|
|
9683
9683
|
});
|
|
9684
9684
|
|
|
9685
9685
|
case 11:
|
|
9686
|
-
// 税额 = 金额(含税)-金额(不含税)
|
|
9687
|
-
taxAmount = evaluate(
|
|
9686
|
+
// 税额 = 金额(含税)-金额(不含税) (老逻辑)
|
|
9687
|
+
// const taxAmount = evaluate(`${lineAmountIncludeTax} - ${lineAmountExcludeTax}`);
|
|
9688
|
+
// 税额 = 金额(含税)-金额(不含税)(新逻辑)
|
|
9689
|
+
taxAmount = evaluate("".concat(lineAmountExcludeTax, " * ").concat(values.taxRate, "/100"));
|
|
9688
9690
|
form.setFieldsValue({
|
|
9689
9691
|
taxAmount: taxAmount
|
|
9690
9692
|
});
|
|
@@ -10408,7 +10410,8 @@ var itemBlur = /*#__PURE__*/(function () {
|
|
|
10408
10410
|
// 中间数据
|
|
10409
10411
|
between = _objectSpread2({}, record);
|
|
10410
10412
|
between.taxClassificationCode = record.taxClassificationCode;
|
|
10411
|
-
between.shorthand = record.shorthand;
|
|
10413
|
+
between.shorthand = record.shorthand;
|
|
10414
|
+
between.mtzlDm = undefined; // 设置编辑货物
|
|
10412
10415
|
|
|
10413
10416
|
editGood = s.goodsListState.editGood = _objectSpread2(_objectSpread2({}, s.goodsListState.editGood), between); // 导入FORM里
|
|
10414
10417
|
|
|
@@ -10422,22 +10425,41 @@ var itemBlur = /*#__PURE__*/(function () {
|
|
|
10422
10425
|
}
|
|
10423
10426
|
|
|
10424
10427
|
if (!s.goodsListState.isTaxIncluded) {
|
|
10425
|
-
_context.next =
|
|
10428
|
+
_context.next = 14;
|
|
10426
10429
|
break;
|
|
10427
10430
|
}
|
|
10428
10431
|
|
|
10429
|
-
_context.next =
|
|
10432
|
+
_context.next = 12;
|
|
10430
10433
|
return updateUnitPriceExcludingTax(controller, s.goodsListState.form, record);
|
|
10431
10434
|
|
|
10432
|
-
case
|
|
10433
|
-
_context.next =
|
|
10435
|
+
case 12:
|
|
10436
|
+
_context.next = 16;
|
|
10434
10437
|
break;
|
|
10435
10438
|
|
|
10436
|
-
case
|
|
10437
|
-
_context.next =
|
|
10439
|
+
case 14:
|
|
10440
|
+
_context.next = 16;
|
|
10438
10441
|
return updateUnitPriceTax(controller, s.goodsListState.form, record);
|
|
10439
10442
|
|
|
10440
|
-
case
|
|
10443
|
+
case 16:
|
|
10444
|
+
if (!s.goodsListState.isValidateMeiTan) {
|
|
10445
|
+
_context.next = 22;
|
|
10446
|
+
break;
|
|
10447
|
+
}
|
|
10448
|
+
|
|
10449
|
+
_context.next = 19;
|
|
10450
|
+
return s.goodsListState.verifyMeiTanFn(record);
|
|
10451
|
+
|
|
10452
|
+
case 19:
|
|
10453
|
+
_context.t0 = _context.sent;
|
|
10454
|
+
|
|
10455
|
+
if (!(_context.t0 === true)) {
|
|
10456
|
+
_context.next = 22;
|
|
10457
|
+
break;
|
|
10458
|
+
}
|
|
10459
|
+
|
|
10460
|
+
s.goodsListState.meiTanGoodIndex = [editGood.$index];
|
|
10461
|
+
|
|
10462
|
+
case 22:
|
|
10441
10463
|
case "end":
|
|
10442
10464
|
return _context.stop();
|
|
10443
10465
|
}
|
|
@@ -14862,9 +14884,8 @@ var useColumns = (function (form) {
|
|
|
14862
14884
|
textAlign: 'right'
|
|
14863
14885
|
},
|
|
14864
14886
|
loading: isCipher(changeField, 'taxAmount'),
|
|
14865
|
-
onChange: function onChange() {
|
|
14866
|
-
|
|
14867
|
-
onChangeTaxAmount(controller, form, record);
|
|
14887
|
+
onChange: function onChange() {// setChangeField('taxAmount');
|
|
14888
|
+
// onChangeTaxAmount(controller, form, record);
|
|
14868
14889
|
}
|
|
14869
14890
|
}) : /*#__PURE__*/React.createElement(MyDiv, {
|
|
14870
14891
|
loading: isCipher(changeField, 'taxAmount')
|
|
@@ -20754,13 +20775,13 @@ var Statistics$1 = (function () {
|
|
|
20754
20775
|
var isTaxIncluded = controller.useMemo(function (s) {
|
|
20755
20776
|
return s.goodsListState.isTaxIncluded;
|
|
20756
20777
|
}, []);
|
|
20757
|
-
/**
|
|
20778
|
+
/** 金额(不含税) */
|
|
20758
20779
|
|
|
20759
|
-
var
|
|
20780
|
+
var lineAmountExcludeTax = controller.useMemo(function (s) {
|
|
20760
20781
|
var _s$goodsListState$for, _s$goodsListState$for2;
|
|
20761
20782
|
|
|
20762
|
-
if (typeof s.goodsListState.
|
|
20763
|
-
return s.goodsListState.
|
|
20783
|
+
if (typeof s.goodsListState.amountExcludeTax === 'number') {
|
|
20784
|
+
return s.goodsListState.amountExcludeTax;
|
|
20764
20785
|
}
|
|
20765
20786
|
|
|
20766
20787
|
var sum = chain$1(bignumber(0));
|
|
@@ -20769,54 +20790,54 @@ var Statistics$1 = (function () {
|
|
|
20769
20790
|
var err = (_s$goodsListState$for = (_s$goodsListState$for2 = s.goodsListState.form) === null || _s$goodsListState$for2 === void 0 ? void 0 : _s$goodsListState$for2.getFieldsError()) !== null && _s$goodsListState$for !== void 0 ? _s$goodsListState$for : {};
|
|
20770
20791
|
s.goodsListState.goodsList.forEach(function (e) {
|
|
20771
20792
|
if (e.$index === (editGood === null || editGood === void 0 ? void 0 : editGood.$index)) {
|
|
20772
|
-
if (!err.
|
|
20773
|
-
sum = sum.add(bignumber(editGood.
|
|
20793
|
+
if (!err.lineAmountExcludeTax) {
|
|
20794
|
+
sum = sum.add(bignumber(editGood.lineAmountExcludeTax || 0));
|
|
20774
20795
|
}
|
|
20775
20796
|
} else {
|
|
20776
|
-
sum = sum.add(bignumber(e.
|
|
20797
|
+
sum = sum.add(bignumber(e.lineAmountExcludeTax || 0));
|
|
20777
20798
|
}
|
|
20778
20799
|
});
|
|
20779
20800
|
return sum.done().toNumber();
|
|
20780
20801
|
}, []);
|
|
20781
|
-
/**
|
|
20782
|
-
|
|
20783
|
-
var lineAmountExcludeTax = controller.useMemo(function (s) {
|
|
20784
|
-
var _s$goodsListState$for3, _s$goodsListState$for4;
|
|
20802
|
+
/** 税额 */
|
|
20785
20803
|
|
|
20786
|
-
|
|
20787
|
-
|
|
20804
|
+
var taxAmount = controller.useMemo(function (s) {
|
|
20805
|
+
if (typeof s.goodsListState.amountTax === 'number') {
|
|
20806
|
+
return s.goodsListState.amountTax;
|
|
20788
20807
|
}
|
|
20789
20808
|
|
|
20790
20809
|
var sum = chain$1(bignumber(0));
|
|
20791
20810
|
var editGood = s.goodsListState.editGood; // 正在编辑的货物
|
|
20792
20811
|
|
|
20793
|
-
var err = (_s$goodsListState$for3 = (_s$goodsListState$for4 = s.goodsListState.form) === null || _s$goodsListState$for4 === void 0 ? void 0 : _s$goodsListState$for4.getFieldsError()) !== null && _s$goodsListState$for3 !== void 0 ? _s$goodsListState$for3 : {};
|
|
20794
20812
|
s.goodsListState.goodsList.forEach(function (e) {
|
|
20795
20813
|
if (e.$index === (editGood === null || editGood === void 0 ? void 0 : editGood.$index)) {
|
|
20796
|
-
|
|
20797
|
-
sum = sum.add(bignumber(editGood.lineAmountExcludeTax || 0));
|
|
20798
|
-
}
|
|
20814
|
+
sum = sum.add(bignumber(editGood.taxAmount || 0));
|
|
20799
20815
|
} else {
|
|
20800
|
-
sum = sum.add(bignumber(e.
|
|
20816
|
+
sum = sum.add(bignumber(e.taxAmount || 0));
|
|
20801
20817
|
}
|
|
20802
20818
|
});
|
|
20803
20819
|
return sum.done().toNumber();
|
|
20804
20820
|
}, []);
|
|
20805
|
-
/**
|
|
20821
|
+
/** 金额(含税) */
|
|
20806
20822
|
|
|
20807
|
-
var
|
|
20808
|
-
|
|
20809
|
-
|
|
20823
|
+
var lineAmountIncludeTax = controller.useMemo(function (s) {
|
|
20824
|
+
var _s$goodsListState$for3, _s$goodsListState$for4;
|
|
20825
|
+
|
|
20826
|
+
if (typeof s.goodsListState.amountIncludeTax === 'number') {
|
|
20827
|
+
return s.goodsListState.amountIncludeTax;
|
|
20810
20828
|
}
|
|
20811
20829
|
|
|
20812
20830
|
var sum = chain$1(bignumber(0));
|
|
20813
20831
|
var editGood = s.goodsListState.editGood; // 正在编辑的货物
|
|
20814
20832
|
|
|
20833
|
+
var err = (_s$goodsListState$for3 = (_s$goodsListState$for4 = s.goodsListState.form) === null || _s$goodsListState$for4 === void 0 ? void 0 : _s$goodsListState$for4.getFieldsError()) !== null && _s$goodsListState$for3 !== void 0 ? _s$goodsListState$for3 : {};
|
|
20815
20834
|
s.goodsListState.goodsList.forEach(function (e) {
|
|
20816
20835
|
if (e.$index === (editGood === null || editGood === void 0 ? void 0 : editGood.$index)) {
|
|
20817
|
-
|
|
20836
|
+
if (!err.lineAmountIncludeTax) {
|
|
20837
|
+
sum = sum.add(bignumber(editGood.lineAmountIncludeTax || 0));
|
|
20838
|
+
}
|
|
20818
20839
|
} else {
|
|
20819
|
-
sum = sum.add(bignumber(e.
|
|
20840
|
+
sum = sum.add(bignumber(e.lineAmountIncludeTax || 0));
|
|
20820
20841
|
}
|
|
20821
20842
|
});
|
|
20822
20843
|
return sum.done().toNumber();
|
|
@@ -20859,7 +20880,7 @@ var Statistics$1 = (function () {
|
|
|
20859
20880
|
fontWeight: 'bold',
|
|
20860
20881
|
marginLeft: 4
|
|
20861
20882
|
}
|
|
20862
|
-
}, toStringChinese(
|
|
20883
|
+
}, toStringChinese(lineAmountExcludeTax + taxAmount))), /*#__PURE__*/React.createElement("div", {
|
|
20863
20884
|
style: {
|
|
20864
20885
|
flex: 1
|
|
20865
20886
|
}
|
|
@@ -20873,7 +20894,7 @@ var Statistics$1 = (function () {
|
|
|
20873
20894
|
minWidth: 119,
|
|
20874
20895
|
maxWidth: 300
|
|
20875
20896
|
}
|
|
20876
|
-
}, "\xA5", parseFloat(
|
|
20897
|
+
}, "\xA5", parseFloat(lineAmountExcludeTax + taxAmount).toFixed(2))));
|
|
20877
20898
|
});
|
|
20878
20899
|
|
|
20879
20900
|
var AddRowButton$1 = (function () {
|
|
@@ -21897,11 +21918,9 @@ var onChangeTaxRate$1 = lazyFn$2(function (controller, form, record) {
|
|
|
21897
21918
|
/** 税额 */
|
|
21898
21919
|
|
|
21899
21920
|
var onChangeTaxAmount$1 = lazyFn$2(function (controller, form, record) {
|
|
21900
|
-
/** 金额(不含税) */
|
|
21901
|
-
var lineAmountExcludeTax;
|
|
21902
21921
|
form.validateFields( /*#__PURE__*/function () {
|
|
21903
21922
|
var _ref9 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee9(err, values) {
|
|
21904
|
-
var record,
|
|
21923
|
+
var record, lineAmountIncludeTax;
|
|
21905
21924
|
return _regeneratorRuntime().wrap(function _callee9$(_context9) {
|
|
21906
21925
|
while (1) {
|
|
21907
21926
|
switch (_context9.prev = _context9.next) {
|
|
@@ -21922,27 +21941,27 @@ var onChangeTaxAmount$1 = lazyFn$2(function (controller, form, record) {
|
|
|
21922
21941
|
|
|
21923
21942
|
case 6:
|
|
21924
21943
|
// 计数不含税金额
|
|
21925
|
-
lineAmountExcludeTax = countAmountExcludeTax(
|
|
21944
|
+
// lineAmountExcludeTax = countAmountExcludeTax(record?.lineAmountIncludeTax || 0, values.taxAmount);
|
|
21945
|
+
// form.setFieldsValue({ lineAmountExcludeTax });
|
|
21946
|
+
// const priceExcludeTax: any = countPrice(lineAmountExcludeTax || '', record?.quantity || '', controller.state.calculatingDigits);
|
|
21947
|
+
// await controller.setEditGood({ lineAmountExcludeTax, taxAmount: values.taxAmount, priceExcludeTax });
|
|
21948
|
+
// form.setFieldsValue({ priceExcludeTax });
|
|
21949
|
+
// 计算含税金额
|
|
21950
|
+
lineAmountIncludeTax = chain$1(bignumber((record === null || record === void 0 ? void 0 : record.lineAmountExcludeTax) || 0)).add(bignumber(values.taxAmount || 0)).done().toNumber();
|
|
21926
21951
|
form.setFieldsValue({
|
|
21927
|
-
|
|
21952
|
+
lineAmountIncludeTax: lineAmountIncludeTax
|
|
21928
21953
|
});
|
|
21929
|
-
|
|
21930
|
-
_context9.next = 11;
|
|
21954
|
+
_context9.next = 10;
|
|
21931
21955
|
return controller.setEditGood({
|
|
21932
|
-
lineAmountExcludeTax: lineAmountExcludeTax,
|
|
21933
21956
|
taxAmount: values.taxAmount,
|
|
21934
|
-
|
|
21957
|
+
lineAmountIncludeTax: lineAmountIncludeTax
|
|
21935
21958
|
});
|
|
21936
21959
|
|
|
21937
|
-
case
|
|
21938
|
-
|
|
21939
|
-
priceExcludeTax: priceExcludeTax
|
|
21940
|
-
}); // 清楚 计算中启动字段
|
|
21941
|
-
|
|
21942
|
-
_context9.next = 14;
|
|
21960
|
+
case 10:
|
|
21961
|
+
_context9.next = 12;
|
|
21943
21962
|
return clearCalculatingField$1(controller);
|
|
21944
21963
|
|
|
21945
|
-
case
|
|
21964
|
+
case 12:
|
|
21946
21965
|
case "end":
|
|
21947
21966
|
return _context9.stop();
|
|
21948
21967
|
}
|
|
@@ -22093,7 +22112,8 @@ var updateUnitPriceTax$1 = /*#__PURE__*/function () {
|
|
|
22093
22112
|
|
|
22094
22113
|
case 12:
|
|
22095
22114
|
// 税额 = 金额(含税)-金额(不含税)
|
|
22096
|
-
taxAmount = evaluate(
|
|
22115
|
+
// const taxAmount = evaluate(`${lineAmountIncludeTax} - ${lineAmountExcludeTax}`);
|
|
22116
|
+
taxAmount = format2(evaluate("".concat(lineAmountExcludeTax, " * ").concat(values.taxRate, "/100")));
|
|
22097
22117
|
form.setFieldsValue({
|
|
22098
22118
|
taxAmount: taxAmount
|
|
22099
22119
|
});
|
|
@@ -24146,21 +24166,22 @@ var useColumns$1 = (function (form) {
|
|
|
24146
24166
|
message: '税额不能为空'
|
|
24147
24167
|
}, {
|
|
24148
24168
|
validator: function validator(rule, value, callback) {
|
|
24149
|
-
//含税金额
|
|
24169
|
+
//含税金额(lineAmountExcludeTax)
|
|
24150
24170
|
var lineAmountIncludeTax = (editGood === null || editGood === void 0 ? void 0 : editGood.lineAmountIncludeTax) || 0; //不含税金额
|
|
24151
24171
|
// const lineAmountExcludeTax = lineAmountIncludeTax-value;
|
|
24152
24172
|
|
|
24153
|
-
var lineAmountExcludeTax =
|
|
24173
|
+
var lineAmountExcludeTax = (editGood === null || editGood === void 0 ? void 0 : editGood.lineAmountExcludeTax) || 0;
|
|
24154
24174
|
var taxRate = editGood === null || editGood === void 0 ? void 0 : editGood.taxRate;
|
|
24175
|
+
console.log('taxRate ===>', taxRate);
|
|
24155
24176
|
|
|
24156
|
-
if (lineAmountExcludeTax && taxRate && lineAmountIncludeTax) {
|
|
24177
|
+
if (lineAmountExcludeTax && (taxRate || taxRate === 0) && lineAmountIncludeTax) {
|
|
24157
24178
|
// const total = bignumber(lineAmountExcludeTax * taxRate / 100);
|
|
24158
|
-
var total = lineAmountExcludeTax.multiply(bignumber(taxRate || 0)).divide(bignumber(100)); // if (Number(Math.abs(Number(total) - Number(value)).toFixed(4)) <= 0.01) {
|
|
24179
|
+
var total = chain$1(bignumber(lineAmountExcludeTax)).multiply(bignumber(taxRate || 0)).divide(bignumber(100)); // if (Number(Math.abs(Number(total) - Number(value)).toFixed(4)) <= 0.01) {
|
|
24159
24180
|
|
|
24160
|
-
if (Math.abs(total.subtract(bignumber(value || 0)).done().toNumber()) <= 0.
|
|
24181
|
+
if (Math.abs(total.subtract(bignumber(value || 0)).done().toNumber()) <= 0.06) {
|
|
24161
24182
|
callback();
|
|
24162
24183
|
} else {
|
|
24163
|
-
callback('
|
|
24184
|
+
callback('第' + record.serialNo + '行税额校验不通过!');
|
|
24164
24185
|
}
|
|
24165
24186
|
} else {
|
|
24166
24187
|
callback();
|
|
@@ -26718,9 +26739,25 @@ var LicensePlateNumber = function LicensePlateNumber(props) {
|
|
|
26718
26739
|
// )
|
|
26719
26740
|
// }
|
|
26720
26741
|
|
|
26721
|
-
var css_248z$s = ".kts-invoice-operate-real-estate-info-digtal {\n padding: 20px;\n border-bottom: 2px solid #9F613E;\n border-left: 2px solid #9F613E;\n border-right: 2px solid #9F613E;\n}\n.kts-invoice-operate-real-estate-info-digtal .real-estate-info-digtal-label {\n color: #9F613E;\n font-weight: bold;\n}\n.kts-invoice-operate-real-estate-info-digtal .ktsAnt3x-row.ktsAnt3x-form-item {\n margin-bottom: 0;\n}\n.kts-invoice-operate-real-estate-info-digtal .break-word {\n word-break: break-word;\n}\n";
|
|
26742
|
+
var css_248z$s = ".kts-invoice-operate-real-estate-info-digtal {\n padding: 20px;\n border-bottom: 2px solid #9F613E;\n border-left: 2px solid #9F613E;\n border-right: 2px solid #9F613E;\n}\n.kts-invoice-operate-real-estate-info-digtal .real-estate-info-digtal-label {\n color: #9F613E;\n font-weight: bold;\n}\n.kts-invoice-operate-real-estate-info-digtal .ktsAnt3x-row.ktsAnt3x-form-item {\n margin-bottom: 0;\n}\n.kts-invoice-operate-real-estate-info-digtal .ktsAnt3x-row.ktsAnt3x-form-item .ktsAnt3x-form-item-control {\n line-height: normal;\n}\n.kts-invoice-operate-real-estate-info-digtal .break-word {\n word-break: break-word;\n}\n";
|
|
26722
26743
|
styleInject(css_248z$s);
|
|
26723
26744
|
|
|
26745
|
+
var _path$a;
|
|
26746
|
+
|
|
26747
|
+
function _extends$e() { _extends$e = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$e.apply(this, arguments); }
|
|
26748
|
+
|
|
26749
|
+
function SvgPlus$3(props) {
|
|
26750
|
+
return /*#__PURE__*/createElement("svg", _extends$e({
|
|
26751
|
+
className: "plus_svg__icon",
|
|
26752
|
+
viewBox: "0 0 1024 1024",
|
|
26753
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
26754
|
+
width: 200,
|
|
26755
|
+
height: 200
|
|
26756
|
+
}, props), _path$a || (_path$a = /*#__PURE__*/createElement("path", {
|
|
26757
|
+
d: "M644.879 886.426c0-71.304-56.367-129.106-125.887-129.106-69.511 0-125.898 57.802-125.898 129.106 0 71.323 56.388 129.124 125.898 129.124 69.52 0 125.887-57.803 125.887-129.124zm0-387.336c0-71.303-56.367-129.124-125.887-129.124-69.511 0-125.898 57.822-125.898 129.124 0 71.303 56.388 129.106 125.898 129.106 69.52 0 125.887-57.803 125.887-129.106zm0-361.515c0-71.324-56.367-129.125-125.887-129.125-69.511 0-125.898 57.801-125.898 129.125 0 71.304 56.388 129.105 125.898 129.105 69.52-.001 125.887-57.802 125.887-129.105z"
|
|
26758
|
+
})));
|
|
26759
|
+
}
|
|
26760
|
+
|
|
26724
26761
|
/** 特殊信息-建筑服务 */
|
|
26725
26762
|
|
|
26726
26763
|
var Architecture = decorator(Form.create())(function (props) {
|
|
@@ -26735,7 +26772,18 @@ var Architecture = decorator(Form.create())(function (props) {
|
|
|
26735
26772
|
return model === 'readOnly';
|
|
26736
26773
|
}, [model]); // 注册 form
|
|
26737
26774
|
|
|
26738
|
-
controller.useForm('serviceDataDtoInfo', form);
|
|
26775
|
+
controller.useForm('serviceDataDtoInfo', form); // 监听 crossCitiesSign 字段值变化
|
|
26776
|
+
|
|
26777
|
+
var _React$useState = React.useState(form.getFieldValue('crossCitiesSign')),
|
|
26778
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
26779
|
+
crossCitiesSign = _React$useState2[0],
|
|
26780
|
+
setCrossCitiesSign = _React$useState2[1]; // 同步表单初始值和外部更新
|
|
26781
|
+
|
|
26782
|
+
|
|
26783
|
+
React.useEffect(function () {
|
|
26784
|
+
var currentValue = form.getFieldValue('crossCitiesSign');
|
|
26785
|
+
setCrossCitiesSign(currentValue);
|
|
26786
|
+
}, [form]);
|
|
26739
26787
|
return /*#__PURE__*/React.createElement("div", {
|
|
26740
26788
|
className: "kts-invoice-operate-real-estate-info-digtal"
|
|
26741
26789
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -26805,6 +26853,9 @@ var Architecture = decorator(Form.create())(function (props) {
|
|
|
26805
26853
|
placeholder: "\u8BF7\u9009\u62E9",
|
|
26806
26854
|
style: {
|
|
26807
26855
|
width: '100%'
|
|
26856
|
+
},
|
|
26857
|
+
onChange: function onChange(value) {
|
|
26858
|
+
return setCrossCitiesSign(value);
|
|
26808
26859
|
}
|
|
26809
26860
|
}, /*#__PURE__*/React.createElement(Select$2.Option, {
|
|
26810
26861
|
value: 'Y'
|
|
@@ -26812,6 +26863,62 @@ var Architecture = decorator(Form.create())(function (props) {
|
|
|
26812
26863
|
value: 'N'
|
|
26813
26864
|
}, "\u5426"))))), /*#__PURE__*/React.createElement(Col$1, {
|
|
26814
26865
|
span: 6
|
|
26866
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
26867
|
+
label: "\u8DE8\u533A\u57DF\u6D89\u7A0E\u4E8B\u9879\u62A5\u9A8C\u7BA1\u7406\u7F16\u53F7"
|
|
26868
|
+
}, getFieldDecorator('crossRegionTaxReportNo', {
|
|
26869
|
+
rules: [{
|
|
26870
|
+
required: crossCitiesSign === 'Y',
|
|
26871
|
+
message: '请输入跨区域涉税事项报验管理编号'
|
|
26872
|
+
}]
|
|
26873
|
+
})( /*#__PURE__*/React.createElement(Input$2, {
|
|
26874
|
+
readOnly: true,
|
|
26875
|
+
autoComplete: 'off',
|
|
26876
|
+
addonAfter: props.showGetCrossRegionTaxReportNoButton && /*#__PURE__*/React.createElement(Button$2, {
|
|
26877
|
+
style: {
|
|
26878
|
+
height: 0,
|
|
26879
|
+
padding: 0,
|
|
26880
|
+
width: "auto"
|
|
26881
|
+
},
|
|
26882
|
+
type: "link",
|
|
26883
|
+
icon: /*#__PURE__*/React.createElement(Icon, {
|
|
26884
|
+
component: SvgPlus$3
|
|
26885
|
+
}),
|
|
26886
|
+
disabled: readOnly || crossCitiesSign !== 'Y',
|
|
26887
|
+
onClick: function () {
|
|
26888
|
+
var _onClick = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
26889
|
+
var _props$getCrossRegion;
|
|
26890
|
+
|
|
26891
|
+
var no;
|
|
26892
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
26893
|
+
while (1) {
|
|
26894
|
+
switch (_context.prev = _context.next) {
|
|
26895
|
+
case 0:
|
|
26896
|
+
_context.next = 2;
|
|
26897
|
+
return (_props$getCrossRegion = props.getCrossRegionTaxReportNo) === null || _props$getCrossRegion === void 0 ? void 0 : _props$getCrossRegion.call(props);
|
|
26898
|
+
|
|
26899
|
+
case 2:
|
|
26900
|
+
no = _context.sent;
|
|
26901
|
+
form.setFieldsValue({
|
|
26902
|
+
crossRegionTaxReportNo: no
|
|
26903
|
+
});
|
|
26904
|
+
|
|
26905
|
+
case 4:
|
|
26906
|
+
case "end":
|
|
26907
|
+
return _context.stop();
|
|
26908
|
+
}
|
|
26909
|
+
}
|
|
26910
|
+
}, _callee);
|
|
26911
|
+
}));
|
|
26912
|
+
|
|
26913
|
+
function onClick() {
|
|
26914
|
+
return _onClick.apply(this, arguments);
|
|
26915
|
+
}
|
|
26916
|
+
|
|
26917
|
+
return onClick;
|
|
26918
|
+
}()
|
|
26919
|
+
})
|
|
26920
|
+
})))), /*#__PURE__*/React.createElement(Col$1, {
|
|
26921
|
+
span: 6
|
|
26815
26922
|
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
26816
26923
|
label: "\u5EFA\u7B51\u9879\u76EE\u540D\u79F0"
|
|
26817
26924
|
}, getFieldDecorator('constructName', {
|
|
@@ -31610,7 +31717,11 @@ var Main$6 = function Main(props) {
|
|
|
31610
31717
|
useToGenerateId(controller);
|
|
31611
31718
|
React.useEffect(function () {
|
|
31612
31719
|
setKey(key + 1);
|
|
31613
|
-
}, [controller]);
|
|
31720
|
+
}, [controller]); // React.useEffect(() => {
|
|
31721
|
+
// setKey(key + 1)
|
|
31722
|
+
// controller.state.stakeholder.enables = ['taxAmount']
|
|
31723
|
+
// }, [controller]);
|
|
31724
|
+
|
|
31614
31725
|
return /*#__PURE__*/React.createElement(InvoiceContext.Provider, {
|
|
31615
31726
|
key: key,
|
|
31616
31727
|
value: controller
|