hotfix/2.9.9.2312.02-个税
This commit is contained in:
parent
611a0834ac
commit
43a17eb188
|
|
@ -31,7 +31,7 @@ class Index extends Component {
|
|||
const payload = {
|
||||
taxDeclareRecordId: getQueryString("taxDeclareRecordId"),
|
||||
taxAgentId: getQueryString("taxAgentId"),
|
||||
taxYearMonth: getQueryString("taxYearMonth"),
|
||||
taxYearMonth: getQueryString("taxYearMonth") + "-01",
|
||||
checkFeedback: 0
|
||||
};
|
||||
this.setState({ loading: true });
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ class Calculate extends Component {
|
|||
taxAgentName: "",
|
||||
dateRange: [
|
||||
moment(new Date()).startOf("year").format("YYYY-MM"),
|
||||
moment(new Date()).endOf("month").format("YYYY-MM")
|
||||
moment(new Date()).endOf("year").format("YYYY-MM")
|
||||
]
|
||||
}, isRefresh: false,
|
||||
declareDaialog: { visible: false, title: "" }
|
||||
|
|
|
|||
|
|
@ -183,7 +183,8 @@ class PaymentBtn extends Component {
|
|||
const { protocolNumber } = paymentForm.getFormParams();
|
||||
const payload = {
|
||||
taxDeclareRecordId: getQueryString("id"),
|
||||
taxAgentId, taxYearMonth, taxAmount, protocolNumber
|
||||
taxYearMonth: taxYearMonth + "-01",
|
||||
taxAgentId, taxAmount, protocolNumber
|
||||
};
|
||||
this.setState({
|
||||
paymentDialog: {
|
||||
|
|
@ -261,7 +262,7 @@ class PaymentBtn extends Component {
|
|||
const { taxAgentId, taxCycle: taxYearMonth } = this.props.declareInfo;
|
||||
const payload = {
|
||||
taxDeclareRecordId: getQueryString("id"),
|
||||
taxAgentId, taxYearMonth
|
||||
taxAgentId, taxYearMonth: taxYearMonth + "-01"
|
||||
};
|
||||
taxPaymentVoucherCancel(payload).then(({ status, errormsg }) => {
|
||||
if (status) {
|
||||
|
|
@ -278,7 +279,7 @@ class PaymentBtn extends Component {
|
|||
const { taxCycle: taxYearMonth, taxAgentId } = this.props.declareInfo;
|
||||
const payload = {
|
||||
taxDeclareRecordId: getQueryString("id"),
|
||||
taxAgentId, taxYearMonth
|
||||
taxAgentId, taxYearMonth: taxYearMonth + "-01"
|
||||
};
|
||||
this.setState({
|
||||
paymentDialog: {
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@ class PaymentFeedbackBtn extends Component {
|
|||
const { taxCycle: taxYearMonth, taxAgentId } = this.props.declareInfo;
|
||||
const payload = {
|
||||
taxDeclareRecordId: getQueryString("id"),
|
||||
taxAgentId, taxYearMonth
|
||||
taxAgentId, taxYearMonth: taxYearMonth + "-01"
|
||||
};
|
||||
this.setState({
|
||||
paymentDialog: {
|
||||
|
|
@ -98,8 +98,9 @@ class PaymentFeedbackBtn extends Component {
|
|||
taxPaymentVoucherPrintFeedback = () => {
|
||||
const { taxCycle: taxYearMonth, taxAgentId } = this.props.declareInfo;
|
||||
const payload = {
|
||||
taxYearMonth: taxYearMonth + "-01",
|
||||
taxDeclareRecordId: getQueryString("id"),
|
||||
taxAgentId, taxYearMonth, checkFeedback: 1
|
||||
taxAgentId, checkFeedback: 1
|
||||
};
|
||||
this.setState({
|
||||
paymentDialog: {
|
||||
|
|
|
|||
|
|
@ -232,7 +232,7 @@ class Index extends Component {
|
|||
const { taxAgentId, taxCycle: taxYearMonth } = this.state.declareInfo;
|
||||
const payload = {
|
||||
taxDeclareRecordId: getQueryString("id"),
|
||||
taxAgentId, taxYearMonth
|
||||
taxAgentId, taxYearMonth: taxYearMonth + "-01"
|
||||
};
|
||||
this.setState({ loading: { ...this.state.loading, refreshingPay: true } });
|
||||
taxPaymentVoucherStatusSync(payload).then(({ status, errormsg }) => {
|
||||
|
|
@ -249,7 +249,7 @@ class Index extends Component {
|
|||
const { taxAgentId, taxCycle: taxYearMonth } = this.state.declareInfo;
|
||||
const payload = {
|
||||
taxDeclareRecordId: getQueryString("id"),
|
||||
taxAgentId, taxYearMonth
|
||||
taxAgentId, taxYearMonth: taxYearMonth + "-01"
|
||||
};
|
||||
this.setState({ loading: { ...this.state.loading, issuance: true } });
|
||||
taxPaymentWithheldVoucherGet(payload).then(({ status, data, errormsg }) => {
|
||||
|
|
@ -282,13 +282,9 @@ class Index extends Component {
|
|||
message.destroy();
|
||||
message.loading(getLabel(111, "下载中..."), 0);
|
||||
exportGetDeclareTaxResultFeedback({ id: getQueryString("id") })
|
||||
.then(async ({ status, errormsg }) => {
|
||||
.then(async () => {
|
||||
message.destroy();
|
||||
if (status) {
|
||||
message.success(getLabel(111, "下载成功!"));
|
||||
} else {
|
||||
message.error(errormsg || getLabel(111, "下载失败!"));
|
||||
}
|
||||
message.success(getLabel(111, "下载成功!"));
|
||||
}).catch(() => {
|
||||
message.destroy();
|
||||
message.error(getLabel(111, "下载失败!"));
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ class Index extends Component {
|
|||
const payload = {
|
||||
taxDeclareRecordId: getQueryString("taxDeclareRecordId"),
|
||||
taxAgentId: getQueryString("taxAgentId"),
|
||||
taxYearMonth: getQueryString("taxYearMonth")
|
||||
taxYearMonth: getQueryString("taxYearMonth") + "-01"
|
||||
};
|
||||
this.setState({ loading: true });
|
||||
taxPaymentWithheldVoucherGet(payload).then(({ status, data, errormsg }) => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue