|
@@ -81,7 +81,7 @@ const ContractModal: React.FC<iModalCommonProps> = ({ modalObj: { type, visible,
|
|
|
}
|
|
|
|
|
|
const initTreeSection = async () => {
|
|
|
- const { code = -1, sectionTree: data = {} } = await apiContractSection(tenderStore.bid, consts.CONTRACT_TREE.RETURN)
|
|
|
+ const { code = -1, sectionTree: data = {} } = await apiContractSection(tenderStore.bid, contractType === 'income' ? consts.CONTRACT_TREE.RETURN : consts.CONTRACT_TREE.PAID)
|
|
|
if (code === consts.RET_CODE.SUCCESS) {
|
|
|
setContractSection(data.children)
|
|
|
}
|