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

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

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