Commit d7bc10f3 authored by alwayOnlie's avatar alwayOnlie

修改选中请款单据没有回显问题

parent da2c9b57
......@@ -125,23 +125,27 @@ const AddInfo = (props: any) => {
/* 查询银行卡新 */
const getAmountOrder = (selectRow) => {
PublicApi.getContractManageGetContractInfoByApplyAmountOrder({ contractId: selectRow.id }).then(res => {
const basicsData = basics;
const info = Info;
if (res.code == 1000) {
const expectPayTime = new Date(res.data.payPlanList[0].expectPayTime).getTime();
const basicsData = basics;
const info = Info;
basicsData.payeeName = res.data.corporateAccountConfig.name;
basicsData.bankAccount = res.data.corporateAccountConfig.bankAccount;
basicsData.bankDeposit = res.data.corporateAccountConfig.bankDeposit;
basicsData.payPlanId = res.data.payPlanList[0].id;
basicsData.payRatio = res.data.payPlanList[0].payRatio;
basicsData.expectPayTime = moment(expectPayTime),
basicsData.payWay = res.data.payPlanList[0].payWay
if (res.data.payPlanList.length != 0) {
const expectPayTime = new Date(res.data.payPlanList[0].expectPayTime).getTime();
basicsData.payPlanId = res.data.payPlanList[0].id;
basicsData.payRatio = res.data.payPlanList[0].payRatio;
basicsData.expectPayTime = moment(expectPayTime);
basicsData.payWay = res.data.payPlanList[0].payWay;
basicsData.payParam = res.data.payPlanList[0].payParam;
basicsData.applyAmount = res.data.payPlanList[0].payAmount;
setapplyAmount(res.data.payPlanList[0].payAmount)
}
basicsData.contractNo = selectRow.contractNo;
basicsData.contractId = selectRow.id;
basicsData.payParam = res.data.payPlanList[0].payParam
info.startTime = selectRow.startTime;
basicsData.applyAmount = res.data.payPlanList[0].payAmount;
setapplyAmount(res.data.payPlanList[0].payAmount)
basicsData.payeeName = res.data.corporateAccountConfig.name;
basicsData.bankAccount = res.data.corporateAccountConfig.bankAccount;
basicsData.bankDeposit = res.data.corporateAccountConfig.bankDeposit;
info.status = "同意签订合同";
setpayPlanList(res.data.payPlanList)
setInfo(info)
......@@ -447,10 +451,10 @@ const AddInfo = (props: any) => {
>
<Button onClick={() => setvisible(!visible)} style={{ marginRight: 8 }}>
取消
</Button>
</Button>
<Button type="primary" onClick={() => Confirm()} >
确定
</Button>
</Button>
</div>
}
destroyOnClose
......
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