kts-component-invoice-operate 3.2.250 → 3.2.252
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 +166 -68
- package/dist/index.js +165 -67
- package/package.json +1 -1
- package/src/Invoice/Invoice-digtal/_test/pay/index.tsx +15 -7
- package/src/Invoice/InvoiceController/InvoiceControllerForm/index.ts +11 -10
- package/src/Invoice/_test/importBuyer/index.tsx +1 -0
- 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 +57 -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<any>;
|
|
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
|
});
|
|
@@ -14882,9 +14884,8 @@ var useColumns = (function (form) {
|
|
|
14882
14884
|
textAlign: 'right'
|
|
14883
14885
|
},
|
|
14884
14886
|
loading: isCipher(changeField, 'taxAmount'),
|
|
14885
|
-
onChange: function onChange() {
|
|
14886
|
-
|
|
14887
|
-
onChangeTaxAmount(controller, form, record);
|
|
14887
|
+
onChange: function onChange() {// setChangeField('taxAmount');
|
|
14888
|
+
// onChangeTaxAmount(controller, form, record);
|
|
14888
14889
|
}
|
|
14889
14890
|
}) : /*#__PURE__*/React.createElement(MyDiv, {
|
|
14890
14891
|
loading: isCipher(changeField, 'taxAmount')
|
|
@@ -20774,13 +20775,13 @@ var Statistics$1 = (function () {
|
|
|
20774
20775
|
var isTaxIncluded = controller.useMemo(function (s) {
|
|
20775
20776
|
return s.goodsListState.isTaxIncluded;
|
|
20776
20777
|
}, []);
|
|
20777
|
-
/**
|
|
20778
|
+
/** 金额(不含税) */
|
|
20778
20779
|
|
|
20779
|
-
var
|
|
20780
|
+
var lineAmountExcludeTax = controller.useMemo(function (s) {
|
|
20780
20781
|
var _s$goodsListState$for, _s$goodsListState$for2;
|
|
20781
20782
|
|
|
20782
|
-
if (typeof s.goodsListState.
|
|
20783
|
-
return s.goodsListState.
|
|
20783
|
+
if (typeof s.goodsListState.amountExcludeTax === 'number') {
|
|
20784
|
+
return s.goodsListState.amountExcludeTax;
|
|
20784
20785
|
}
|
|
20785
20786
|
|
|
20786
20787
|
var sum = chain$1(bignumber(0));
|
|
@@ -20789,54 +20790,54 @@ var Statistics$1 = (function () {
|
|
|
20789
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 : {};
|
|
20790
20791
|
s.goodsListState.goodsList.forEach(function (e) {
|
|
20791
20792
|
if (e.$index === (editGood === null || editGood === void 0 ? void 0 : editGood.$index)) {
|
|
20792
|
-
if (!err.
|
|
20793
|
-
sum = sum.add(bignumber(editGood.
|
|
20793
|
+
if (!err.lineAmountExcludeTax) {
|
|
20794
|
+
sum = sum.add(bignumber(editGood.lineAmountExcludeTax || 0));
|
|
20794
20795
|
}
|
|
20795
20796
|
} else {
|
|
20796
|
-
sum = sum.add(bignumber(e.
|
|
20797
|
+
sum = sum.add(bignumber(e.lineAmountExcludeTax || 0));
|
|
20797
20798
|
}
|
|
20798
20799
|
});
|
|
20799
20800
|
return sum.done().toNumber();
|
|
20800
20801
|
}, []);
|
|
20801
|
-
/**
|
|
20802
|
-
|
|
20803
|
-
var lineAmountExcludeTax = controller.useMemo(function (s) {
|
|
20804
|
-
var _s$goodsListState$for3, _s$goodsListState$for4;
|
|
20802
|
+
/** 税额 */
|
|
20805
20803
|
|
|
20806
|
-
|
|
20807
|
-
|
|
20804
|
+
var taxAmount = controller.useMemo(function (s) {
|
|
20805
|
+
if (typeof s.goodsListState.amountTax === 'number') {
|
|
20806
|
+
return s.goodsListState.amountTax;
|
|
20808
20807
|
}
|
|
20809
20808
|
|
|
20810
20809
|
var sum = chain$1(bignumber(0));
|
|
20811
20810
|
var editGood = s.goodsListState.editGood; // 正在编辑的货物
|
|
20812
20811
|
|
|
20813
|
-
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 : {};
|
|
20814
20812
|
s.goodsListState.goodsList.forEach(function (e) {
|
|
20815
20813
|
if (e.$index === (editGood === null || editGood === void 0 ? void 0 : editGood.$index)) {
|
|
20816
|
-
|
|
20817
|
-
sum = sum.add(bignumber(editGood.lineAmountExcludeTax || 0));
|
|
20818
|
-
}
|
|
20814
|
+
sum = sum.add(bignumber(editGood.taxAmount || 0));
|
|
20819
20815
|
} else {
|
|
20820
|
-
sum = sum.add(bignumber(e.
|
|
20816
|
+
sum = sum.add(bignumber(e.taxAmount || 0));
|
|
20821
20817
|
}
|
|
20822
20818
|
});
|
|
20823
20819
|
return sum.done().toNumber();
|
|
20824
20820
|
}, []);
|
|
20825
|
-
/**
|
|
20821
|
+
/** 金额(含税) */
|
|
20826
20822
|
|
|
20827
|
-
var
|
|
20828
|
-
|
|
20829
|
-
|
|
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;
|
|
20830
20828
|
}
|
|
20831
20829
|
|
|
20832
20830
|
var sum = chain$1(bignumber(0));
|
|
20833
20831
|
var editGood = s.goodsListState.editGood; // 正在编辑的货物
|
|
20834
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 : {};
|
|
20835
20834
|
s.goodsListState.goodsList.forEach(function (e) {
|
|
20836
20835
|
if (e.$index === (editGood === null || editGood === void 0 ? void 0 : editGood.$index)) {
|
|
20837
|
-
|
|
20836
|
+
if (!err.lineAmountIncludeTax) {
|
|
20837
|
+
sum = sum.add(bignumber(editGood.lineAmountIncludeTax || 0));
|
|
20838
|
+
}
|
|
20838
20839
|
} else {
|
|
20839
|
-
sum = sum.add(bignumber(e.
|
|
20840
|
+
sum = sum.add(bignumber(e.lineAmountIncludeTax || 0));
|
|
20840
20841
|
}
|
|
20841
20842
|
});
|
|
20842
20843
|
return sum.done().toNumber();
|
|
@@ -20879,7 +20880,7 @@ var Statistics$1 = (function () {
|
|
|
20879
20880
|
fontWeight: 'bold',
|
|
20880
20881
|
marginLeft: 4
|
|
20881
20882
|
}
|
|
20882
|
-
}, toStringChinese(
|
|
20883
|
+
}, toStringChinese(lineAmountExcludeTax + taxAmount))), /*#__PURE__*/React.createElement("div", {
|
|
20883
20884
|
style: {
|
|
20884
20885
|
flex: 1
|
|
20885
20886
|
}
|
|
@@ -20893,7 +20894,7 @@ var Statistics$1 = (function () {
|
|
|
20893
20894
|
minWidth: 119,
|
|
20894
20895
|
maxWidth: 300
|
|
20895
20896
|
}
|
|
20896
|
-
}, "\xA5", parseFloat(
|
|
20897
|
+
}, "\xA5", parseFloat(lineAmountExcludeTax + taxAmount).toFixed(2))));
|
|
20897
20898
|
});
|
|
20898
20899
|
|
|
20899
20900
|
var AddRowButton$1 = (function () {
|
|
@@ -21917,11 +21918,9 @@ var onChangeTaxRate$1 = lazyFn$2(function (controller, form, record) {
|
|
|
21917
21918
|
/** 税额 */
|
|
21918
21919
|
|
|
21919
21920
|
var onChangeTaxAmount$1 = lazyFn$2(function (controller, form, record) {
|
|
21920
|
-
/** 金额(不含税) */
|
|
21921
|
-
var lineAmountExcludeTax;
|
|
21922
21921
|
form.validateFields( /*#__PURE__*/function () {
|
|
21923
21922
|
var _ref9 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee9(err, values) {
|
|
21924
|
-
var record,
|
|
21923
|
+
var record, lineAmountIncludeTax;
|
|
21925
21924
|
return _regeneratorRuntime().wrap(function _callee9$(_context9) {
|
|
21926
21925
|
while (1) {
|
|
21927
21926
|
switch (_context9.prev = _context9.next) {
|
|
@@ -21942,27 +21941,27 @@ var onChangeTaxAmount$1 = lazyFn$2(function (controller, form, record) {
|
|
|
21942
21941
|
|
|
21943
21942
|
case 6:
|
|
21944
21943
|
// 计数不含税金额
|
|
21945
|
-
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();
|
|
21946
21951
|
form.setFieldsValue({
|
|
21947
|
-
|
|
21952
|
+
lineAmountIncludeTax: lineAmountIncludeTax
|
|
21948
21953
|
});
|
|
21949
|
-
|
|
21950
|
-
_context9.next = 11;
|
|
21954
|
+
_context9.next = 10;
|
|
21951
21955
|
return controller.setEditGood({
|
|
21952
|
-
lineAmountExcludeTax: lineAmountExcludeTax,
|
|
21953
21956
|
taxAmount: values.taxAmount,
|
|
21954
|
-
|
|
21957
|
+
lineAmountIncludeTax: lineAmountIncludeTax
|
|
21955
21958
|
});
|
|
21956
21959
|
|
|
21957
|
-
case
|
|
21958
|
-
|
|
21959
|
-
priceExcludeTax: priceExcludeTax
|
|
21960
|
-
}); // 清楚 计算中启动字段
|
|
21961
|
-
|
|
21962
|
-
_context9.next = 14;
|
|
21960
|
+
case 10:
|
|
21961
|
+
_context9.next = 12;
|
|
21963
21962
|
return clearCalculatingField$1(controller);
|
|
21964
21963
|
|
|
21965
|
-
case
|
|
21964
|
+
case 12:
|
|
21966
21965
|
case "end":
|
|
21967
21966
|
return _context9.stop();
|
|
21968
21967
|
}
|
|
@@ -22113,7 +22112,8 @@ var updateUnitPriceTax$1 = /*#__PURE__*/function () {
|
|
|
22113
22112
|
|
|
22114
22113
|
case 12:
|
|
22115
22114
|
// 税额 = 金额(含税)-金额(不含税)
|
|
22116
|
-
taxAmount = evaluate(
|
|
22115
|
+
// const taxAmount = evaluate(`${lineAmountIncludeTax} - ${lineAmountExcludeTax}`);
|
|
22116
|
+
taxAmount = format2(evaluate("".concat(lineAmountExcludeTax, " * ").concat(values.taxRate, "/100")));
|
|
22117
22117
|
form.setFieldsValue({
|
|
22118
22118
|
taxAmount: taxAmount
|
|
22119
22119
|
});
|
|
@@ -24166,21 +24166,22 @@ var useColumns$1 = (function (form) {
|
|
|
24166
24166
|
message: '税额不能为空'
|
|
24167
24167
|
}, {
|
|
24168
24168
|
validator: function validator(rule, value, callback) {
|
|
24169
|
-
//含税金额
|
|
24169
|
+
//含税金额(lineAmountExcludeTax)
|
|
24170
24170
|
var lineAmountIncludeTax = (editGood === null || editGood === void 0 ? void 0 : editGood.lineAmountIncludeTax) || 0; //不含税金额
|
|
24171
24171
|
// const lineAmountExcludeTax = lineAmountIncludeTax-value;
|
|
24172
24172
|
|
|
24173
|
-
var lineAmountExcludeTax =
|
|
24173
|
+
var lineAmountExcludeTax = (editGood === null || editGood === void 0 ? void 0 : editGood.lineAmountExcludeTax) || 0;
|
|
24174
24174
|
var taxRate = editGood === null || editGood === void 0 ? void 0 : editGood.taxRate;
|
|
24175
|
+
console.log('taxRate ===>', taxRate);
|
|
24175
24176
|
|
|
24176
|
-
if (lineAmountExcludeTax && taxRate && lineAmountIncludeTax) {
|
|
24177
|
+
if (lineAmountExcludeTax && (taxRate || taxRate === 0) && lineAmountIncludeTax) {
|
|
24177
24178
|
// const total = bignumber(lineAmountExcludeTax * taxRate / 100);
|
|
24178
|
-
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) {
|
|
24179
24180
|
|
|
24180
|
-
if (Math.abs(total.subtract(bignumber(value || 0)).done().toNumber()) <= 0.
|
|
24181
|
+
if (Math.abs(total.subtract(bignumber(value || 0)).done().toNumber()) <= 0.06) {
|
|
24181
24182
|
callback();
|
|
24182
24183
|
} else {
|
|
24183
|
-
callback('
|
|
24184
|
+
callback('第' + record.serialNo + '行税额校验不通过!');
|
|
24184
24185
|
}
|
|
24185
24186
|
} else {
|
|
24186
24187
|
callback();
|
|
@@ -26738,9 +26739,25 @@ var LicensePlateNumber = function LicensePlateNumber(props) {
|
|
|
26738
26739
|
// )
|
|
26739
26740
|
// }
|
|
26740
26741
|
|
|
26741
|
-
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";
|
|
26742
26743
|
styleInject(css_248z$s);
|
|
26743
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
|
+
|
|
26744
26761
|
/** 特殊信息-建筑服务 */
|
|
26745
26762
|
|
|
26746
26763
|
var Architecture = decorator(Form.create())(function (props) {
|
|
@@ -26755,7 +26772,18 @@ var Architecture = decorator(Form.create())(function (props) {
|
|
|
26755
26772
|
return model === 'readOnly';
|
|
26756
26773
|
}, [model]); // 注册 form
|
|
26757
26774
|
|
|
26758
|
-
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]);
|
|
26759
26787
|
return /*#__PURE__*/React.createElement("div", {
|
|
26760
26788
|
className: "kts-invoice-operate-real-estate-info-digtal"
|
|
26761
26789
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -26825,6 +26853,18 @@ var Architecture = decorator(Form.create())(function (props) {
|
|
|
26825
26853
|
placeholder: "\u8BF7\u9009\u62E9",
|
|
26826
26854
|
style: {
|
|
26827
26855
|
width: '100%'
|
|
26856
|
+
},
|
|
26857
|
+
onChange: function onChange(value) {
|
|
26858
|
+
setCrossCitiesSign(value);
|
|
26859
|
+
|
|
26860
|
+
if (value === 'N') {
|
|
26861
|
+
form.setFieldsValue({
|
|
26862
|
+
crossRegionTaxReportNo: '',
|
|
26863
|
+
constructAddress: [],
|
|
26864
|
+
constructDetailAddress: '',
|
|
26865
|
+
constructName: ''
|
|
26866
|
+
});
|
|
26867
|
+
}
|
|
26828
26868
|
}
|
|
26829
26869
|
}, /*#__PURE__*/React.createElement(Select$2.Option, {
|
|
26830
26870
|
value: 'Y'
|
|
@@ -26832,6 +26872,60 @@ var Architecture = decorator(Form.create())(function (props) {
|
|
|
26832
26872
|
value: 'N'
|
|
26833
26873
|
}, "\u5426"))))), /*#__PURE__*/React.createElement(Col$1, {
|
|
26834
26874
|
span: 6
|
|
26875
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
26876
|
+
label: "\u8DE8\u533A\u57DF\u6D89\u7A0E\u4E8B\u9879\u62A5\u9A8C\u7BA1\u7406\u7F16\u53F7"
|
|
26877
|
+
}, getFieldDecorator('crossRegionTaxReportNo', {
|
|
26878
|
+
rules: readOnly ? [] : [{
|
|
26879
|
+
required: crossCitiesSign === 'Y',
|
|
26880
|
+
message: '请输入跨区域涉税事项报验管理编号'
|
|
26881
|
+
}]
|
|
26882
|
+
})(readOnly ? /*#__PURE__*/React.createElement(MyDiv$4, null) : /*#__PURE__*/React.createElement(Input$2, {
|
|
26883
|
+
readOnly: true,
|
|
26884
|
+
autoComplete: 'off',
|
|
26885
|
+
addonAfter: props.showGetCrossRegionTaxReportNoButton && /*#__PURE__*/React.createElement(Button$2, {
|
|
26886
|
+
style: {
|
|
26887
|
+
height: 0,
|
|
26888
|
+
padding: 0,
|
|
26889
|
+
width: "auto"
|
|
26890
|
+
},
|
|
26891
|
+
type: "link",
|
|
26892
|
+
icon: /*#__PURE__*/React.createElement(Icon, {
|
|
26893
|
+
component: SvgPlus$3
|
|
26894
|
+
}),
|
|
26895
|
+
disabled: readOnly || crossCitiesSign !== 'Y',
|
|
26896
|
+
onClick: function () {
|
|
26897
|
+
var _onClick = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
26898
|
+
var _props$getCrossRegion;
|
|
26899
|
+
|
|
26900
|
+
var values;
|
|
26901
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
26902
|
+
while (1) {
|
|
26903
|
+
switch (_context.prev = _context.next) {
|
|
26904
|
+
case 0:
|
|
26905
|
+
_context.next = 2;
|
|
26906
|
+
return (_props$getCrossRegion = props.getCrossRegionTaxReportNo) === null || _props$getCrossRegion === void 0 ? void 0 : _props$getCrossRegion.call(props);
|
|
26907
|
+
|
|
26908
|
+
case 2:
|
|
26909
|
+
values = _context.sent;
|
|
26910
|
+
form.setFieldsValue(values);
|
|
26911
|
+
|
|
26912
|
+
case 4:
|
|
26913
|
+
case "end":
|
|
26914
|
+
return _context.stop();
|
|
26915
|
+
}
|
|
26916
|
+
}
|
|
26917
|
+
}, _callee);
|
|
26918
|
+
}));
|
|
26919
|
+
|
|
26920
|
+
function onClick() {
|
|
26921
|
+
return _onClick.apply(this, arguments);
|
|
26922
|
+
}
|
|
26923
|
+
|
|
26924
|
+
return onClick;
|
|
26925
|
+
}()
|
|
26926
|
+
})
|
|
26927
|
+
})))), /*#__PURE__*/React.createElement(Col$1, {
|
|
26928
|
+
span: 6
|
|
26835
26929
|
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
26836
26930
|
label: "\u5EFA\u7B51\u9879\u76EE\u540D\u79F0"
|
|
26837
26931
|
}, getFieldDecorator('constructName', {
|
|
@@ -31630,7 +31724,11 @@ var Main$6 = function Main(props) {
|
|
|
31630
31724
|
useToGenerateId(controller);
|
|
31631
31725
|
React.useEffect(function () {
|
|
31632
31726
|
setKey(key + 1);
|
|
31633
|
-
}, [controller]);
|
|
31727
|
+
}, [controller]); // React.useEffect(() => {
|
|
31728
|
+
// setKey(key + 1)
|
|
31729
|
+
// controller.state.stakeholder.enables = ['taxAmount']
|
|
31730
|
+
// }, [controller]);
|
|
31731
|
+
|
|
31634
31732
|
return /*#__PURE__*/React.createElement(InvoiceContext.Provider, {
|
|
31635
31733
|
key: key,
|
|
31636
31734
|
value: controller
|