Merge branch 'release/2.19.1.2503.01-业务线个税' into custom-联特
This commit is contained in:
commit
45af43bc87
|
|
@ -127,7 +127,7 @@ class AssociativeSearchMult extends Component {
|
||||||
}
|
}
|
||||||
let options = data.map(d => <Option key={d.id} title={d.name}>{d.name}</Option>);
|
let options = data.map(d => <Option key={d.id} title={d.name}>{d.name}</Option>);
|
||||||
!tags && selectedValues && selectedValues.map((v) => {
|
!tags && selectedValues && selectedValues.map((v) => {
|
||||||
v && options.unshift(<Option key={v} title={datas[v].name}>{datas[v].name}</Option>);
|
v && datas[v] && options.unshift(<Option key={v} title={datas[v].name}>{datas[v].name}</Option>);
|
||||||
});
|
});
|
||||||
const select = <Select
|
const select = <Select
|
||||||
{...this.props}
|
{...this.props}
|
||||||
|
|
|
||||||
|
|
@ -91,11 +91,11 @@ class CustomBrowserDialog extends Component {
|
||||||
this.props.onCancel && this.props.onCancel();
|
this.props.onCancel && this.props.onCancel();
|
||||||
};
|
};
|
||||||
getItemById = (id) => {
|
getItemById = (id) => {
|
||||||
const { listDatas } = this.state;
|
const { listDatas } = this.state, dataSource = [...listDatas, ..._.values(this.props.datas)];
|
||||||
if (this.selectedData[id]) return this.selectedData[id];
|
if (this.selectedData[id]) return this.selectedData[id];
|
||||||
if (!_.isEmpty(listDatas)) {
|
if (!_.isEmpty(dataSource)) {
|
||||||
for (let i = 0; i < listDatas.length; i++) {
|
for (let i = 0; i < dataSource.length; i++) {
|
||||||
if (String(id) === String(listDatas[i].id)) return listDatas[i];
|
if (String(id) === String(dataSource[i].id)) return dataSource[i];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
* Date: 2023/8/22
|
* Date: 2023/8/22
|
||||||
*/
|
*/
|
||||||
import React, { Component } from "react";
|
import React, { Component } from "react";
|
||||||
import { WeaLocaleProvider, WeaLoadingGlobal } from "ecCom";
|
import { WeaLoadingGlobal, WeaLocaleProvider } from "ecCom";
|
||||||
import { inject, observer } from "mobx-react";
|
import { inject, observer } from "mobx-react";
|
||||||
import { Button, message, Modal } from "antd";
|
import { Button, message, Modal } from "antd";
|
||||||
import PaymentDialog from "./paymentDialog";
|
import PaymentDialog from "./paymentDialog";
|
||||||
|
|
@ -46,7 +46,7 @@ class PaymentBtn extends Component {
|
||||||
style={{ textAlign: "center" }}>{getLabel(111, "若申请过银行缴款,点击确定,将自动作废银行缴款凭证。并进行三方缴款。 ")}</div>
|
style={{ textAlign: "center" }}>{getLabel(111, "若申请过银行缴款,点击确定,将自动作废银行缴款凭证。并进行三方缴款。 ")}</div>
|
||||||
</div>,
|
</div>,
|
||||||
onOk: () => {
|
onOk: () => {
|
||||||
taxPaymentTaxAmount({ taxDeclareRecordId: getQueryString("id") })
|
taxPaymentTaxAmount({ taxDeclareRecordId: getQueryString("id"), reportType: this.props.reportType })
|
||||||
.then(({ status, data, errormsg }) => {
|
.then(({ status, data, errormsg }) => {
|
||||||
if (status) {
|
if (status) {
|
||||||
const { paymentDialog } = this.state;
|
const { paymentDialog } = this.state;
|
||||||
|
|
@ -82,7 +82,8 @@ class PaymentBtn extends Component {
|
||||||
const { taxCycle: taxYearMonth, taxAgentId } = this.props.declareInfo;
|
const { taxCycle: taxYearMonth, taxAgentId } = this.props.declareInfo;
|
||||||
const payload = {
|
const payload = {
|
||||||
taxDeclareRecordId: getQueryString("id"),
|
taxDeclareRecordId: getQueryString("id"),
|
||||||
taxAgentId, taxYearMonth: taxYearMonth + "-01"
|
taxAgentId, taxYearMonth: taxYearMonth + "-01",
|
||||||
|
reportType: this.props.reportType
|
||||||
};
|
};
|
||||||
this.setState({
|
this.setState({
|
||||||
paymentDialog: {
|
paymentDialog: {
|
||||||
|
|
@ -122,7 +123,7 @@ class PaymentBtn extends Component {
|
||||||
};
|
};
|
||||||
getBankAccountInfo = (payload) => {
|
getBankAccountInfo = (payload) => {
|
||||||
let loop = () => {
|
let loop = () => {
|
||||||
WeaLoadingGlobal.start({ tip: getLabel(111, "获取三方信息中...") });
|
WeaLoadingGlobal.start({ tip: getLabel(111, "获取三方信息中...") });
|
||||||
clearTimeout(this.timer);
|
clearTimeout(this.timer);
|
||||||
this.timer = setTimeout(async () => {
|
this.timer = setTimeout(async () => {
|
||||||
let response = await taxPaymentgetAgreementFeedback(payload);
|
let response = await taxPaymentgetAgreementFeedback(payload);
|
||||||
|
|
@ -236,7 +237,7 @@ class PaymentBtn extends Component {
|
||||||
};
|
};
|
||||||
handleMenuChange = ({ key }) => {
|
handleMenuChange = ({ key }) => {
|
||||||
if (key === "bank_voucher_payment") {
|
if (key === "bank_voucher_payment") {
|
||||||
taxPaymentTaxAmount({ taxDeclareRecordId: getQueryString("id") })
|
taxPaymentTaxAmount({ taxDeclareRecordId: getQueryString("id"), reportType: this.props.reportType })
|
||||||
.then(({ status, data, errormsg }) => {
|
.then(({ status, data, errormsg }) => {
|
||||||
if (status) {
|
if (status) {
|
||||||
const { paymentDialog } = this.state;
|
const { paymentDialog } = this.state;
|
||||||
|
|
|
||||||
|
|
@ -53,7 +53,8 @@ class PaymentFeedbackBtn extends Component {
|
||||||
const { taxCycle: taxYearMonth, taxAgentId } = this.props.declareInfo;
|
const { taxCycle: taxYearMonth, taxAgentId } = this.props.declareInfo;
|
||||||
const payload = {
|
const payload = {
|
||||||
taxDeclareRecordId: getQueryString("id"),
|
taxDeclareRecordId: getQueryString("id"),
|
||||||
taxAgentId, taxYearMonth: taxYearMonth + "-01"
|
taxAgentId, taxYearMonth: taxYearMonth + "-01",
|
||||||
|
reportType: this.props.reportType
|
||||||
};
|
};
|
||||||
this.setState({
|
this.setState({
|
||||||
paymentDialog: {
|
paymentDialog: {
|
||||||
|
|
@ -152,7 +153,7 @@ class PaymentFeedbackBtn extends Component {
|
||||||
return {
|
return {
|
||||||
...it,
|
...it,
|
||||||
options: [
|
options: [
|
||||||
{ key: "WITHHOLDING_PAY", showname: getLabel(111, "三方缴款"), selected: true },
|
{ key: "WITHHOLDING_PAY", showname: getLabel(111, "三方缴款"), selected: true }
|
||||||
// { key: "WITHHOLDING_VOUCHER", showname: getLabel(111, "缴款凭证打印") }
|
// { key: "WITHHOLDING_VOUCHER", showname: getLabel(111, "缴款凭证打印") }
|
||||||
]
|
]
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -430,7 +430,7 @@ class Index extends Component {
|
||||||
if (intelCalcSalaryStatus && (declareInfo.declareStatus === "DECLARE_SUCCESS_UNPAID")) {
|
if (intelCalcSalaryStatus && (declareInfo.declareStatus === "DECLARE_SUCCESS_UNPAID")) {
|
||||||
btns.push(
|
btns.push(
|
||||||
<PaymentBtn declareInfo={declareInfo} updateDeclare={this.declare} reportType={reportType}/>,
|
<PaymentBtn declareInfo={declareInfo} updateDeclare={this.declare} reportType={reportType}/>,
|
||||||
<PaymentFeedbackBtn declareInfo={declareInfo} updateDeclare={this.declare}/>
|
<PaymentFeedbackBtn declareInfo={declareInfo} updateDeclare={this.declare} reportType={reportType}/>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
if (intelCalcSalaryStatus && declareInfo.taxPaidAmount && parseFloat(declareInfo.taxPaidAmount) > 0) {
|
if (intelCalcSalaryStatus && declareInfo.taxPaidAmount && parseFloat(declareInfo.taxPaidAmount) > 0) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue