Commit 13b4fa4c authored by 卢均锐's avatar 卢均锐

chore: 生成对账单去除eslint报错

parent f5c8cc29
......@@ -34,6 +34,7 @@ const Add = () => {
state,
pathname,
} = history.location;
const _state: any = state;
const [form] = Form.useForm();
const [pathPci] = useState(pathname.split('/')[pathname.split('/').length - 2]);
const [path] = useState(pathname.split('/')[pathname.split('/').length - 1]);
......@@ -97,7 +98,11 @@ const Add = () => {
}, [dataSource])
const _getDetail = () => {
getSettleAccountsBusinessReconciliationDetailReconciliation({ reconciliationId: id, reconciliationNo: no }).then((res) => {
const _params: any = {
reconciliationId: id,
reconciliationNo: no
}
getSettleAccountsBusinessReconciliationDetailReconciliation(_params).then((res) => {
if (res.code === 1000) {
const data = res.data;
setDataSource(data);
......@@ -106,7 +111,7 @@ const Add = () => {
}
const _getRowList = () => {
const params = {
const params: any = {
current: 1,
pageSize: 9999,
reconciliationId: id,
......@@ -129,12 +134,13 @@ const Add = () => {
if (_editAble) {
setUnsaved(true)
if (path === 'add') {
postSettleAccountsBusinessReconciliationGenerateReconciliation({ orderVOS: state?.rows }).then((res) => {
const _params: any = { orderVOS: _state?.rows }
postSettleAccountsBusinessReconciliationGenerateReconciliation(_params).then((res) => {
if (res.code === 1000) {
const data = res.data;
setDataSource(data);
setTabelSource(data.rows);
setBuyerData({ buyerMemberId: state?.rows?.[0]?.buyerMemberId, buyerRoleId: state?.rows?.[0]?.buyerRoleId })
setBuyerData({ buyerMemberId: _state?.rows?.[0]?.buyerMemberId, buyerRoleId: _state?.rows?.[0]?.buyerRoleId })
}
})
} else {
......@@ -333,7 +339,7 @@ const Add = () => {
} else {
setSubmitLoading(false)
}
})
}).catch(() => { setSubmitLoading(false) })
})
}
......
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