Commit 3848739b authored by XieZhiXiong's avatar XieZhiXiong

chore: 修改没有记录友好提示

parent 9290b0c7
......@@ -116,7 +116,7 @@ interface IntroduceRowProps {
};
interface IntroduceRowState {
billId: number;
billId: number | string;
billInfo: BillDetailData | null;
visibleRecord: boolean;
visibleRepayment: boolean;
......@@ -141,7 +141,7 @@ class IntroduceRow extends React.Component<IntroduceRowProps, IntroduceRowState>
constructor(props) {
super(props);
this.state = {
billId: 0,
billId: '',
billInfo: null,
visibleRecord: false,
visibleRepayment: false,
......@@ -207,7 +207,7 @@ class IntroduceRow extends React.Component<IntroduceRowProps, IntroduceRowState>
handleRecordCheckboxChange = e => {
if (!this.state.billId) {
message.error('请选择账单记录');
message.warning('暂无可查询记录');
return;
}
this.setState({ visibleRecord: e.target.checked });
......@@ -316,7 +316,7 @@ class IntroduceRow extends React.Component<IntroduceRowProps, IntroduceRowState>
this.setState({ uploadVoucherSubmitLoading: true });
PublicApi.postPayCreditApplyCreditRepay({
billId,
billId: +billId,
...repaymentValues,
payProveList: payProveList.map(item => item.status === 'done' && ({
name: item.name,
......
......@@ -103,7 +103,7 @@ interface IntroduceRowProps {
};
interface IntroduceRowState {
billId: number;
billId: number | string;
billInfo: BillDetailData | null;
visibleRecord: boolean;
visibleResult: boolean;
......@@ -114,7 +114,7 @@ class IntroduceRow extends React.Component<IntroduceRowProps, IntroduceRowState>
constructor(props) {
super(props);
this.state = {
billId: 0,
billId: '',
billInfo: null,
visibleRecord: false,
visibleResult: false,
......@@ -163,7 +163,7 @@ class IntroduceRow extends React.Component<IntroduceRowProps, IntroduceRowState>
handleRecordCheckboxChange = e => {
if (!this.state.billId) {
message.error('请选择账单记录');
message.warning('暂无可查询记录');
return;
}
this.setState({ visibleRecord: e.target.checked });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment