Commit ae240642 authored by alwayOnlie's avatar alwayOnlie

修改bug

parent fa8c2cae
......@@ -91,6 +91,7 @@ const AddInfo = (props: any) => {
attrValueForm.setFieldsValue(basicsData);
}
useEffect(() => {
if (basicsData) {
PublicApi.getContractManageGetContractInfoByApplyAmountOrder({ contractId: basicsData.contractId }).then(res => {
......@@ -103,6 +104,7 @@ const AddInfo = (props: any) => {
break;
}
}
let data = {
id: basicsData.id,
applyAbstract: basicsData.applyAbstract, // 请款单摘要
......@@ -110,8 +112,8 @@ const AddInfo = (props: any) => {
contractId: basicsData.contractId,
bankAccount: basicsData.bankAccount, // 银行卡号
remark: basicsData.remark, // 描述
account: res.data.payeeMemberName,
payeeName: res.data.payeeMemberName,
account: basicsData.payeeMemberName,
payeeName: basicsData.payeeName,
bankDeposit: basicsData.bankDeposit,
payRatio: basicsData.payRatio,
applyAmount: basicsData.applyAmount,
......@@ -125,6 +127,7 @@ const AddInfo = (props: any) => {
expectPayTime: moment(basicsData.expectPayTime),
number: basicsData.invoiceProveVOList ? basicsData.invoiceProveVOList[0].number : ''
}
setpayPlanList(res.data.payPlanList);
/* 设置tab点击数组
* payWay 1 账期 2 月结 3 现结
......@@ -140,6 +143,7 @@ const AddInfo = (props: any) => {
})
})
setTag(tagList)
console.log(data)
attrValueForm.setFieldsValue(data)
// console.log(res, 'res', data, basicsData.orderTime);
setBasics(data)
......
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