|
|
@ -74,6 +74,7 @@ |
|
|
|
@changeTabs="changeTabs" |
|
|
|
:tableObjectExtend="tableObjectExtend" |
|
|
|
@buttonBaseClick="detailButtonBaseClick" |
|
|
|
@changeDetailList="changeDetailList" |
|
|
|
> |
|
|
|
<template #amountVariance="{ row }" v-if="tabCurrent.prop == 'ForecastWithBilltDifference'"> |
|
|
|
<span |
|
|
@ -340,7 +341,7 @@ const changeTabs = async (item) => { |
|
|
|
key: 'masterId', |
|
|
|
value: chooseRow.value.id |
|
|
|
}] |
|
|
|
apiPage.value = CustomerToolApportStatementForecastDetailApi.getCustomerToolApportStatementForecastDetailPage |
|
|
|
apiPage.value = await CustomerToolApportStatementForecastDetailApi.getCustomerToolApportStatementForecastDetailPage |
|
|
|
DetailAllSchemas.value = CustomerToolApportStatementForecastDetail.allSchemas |
|
|
|
otherHeadButttonData.value = [{ |
|
|
|
label: t(`ts.导出`).replace('ts.', ''), |
|
|
@ -360,7 +361,7 @@ const changeTabs = async (item) => { |
|
|
|
value: chooseRow.value.id |
|
|
|
}] |
|
|
|
DetailAllSchemas.value = ForecastWithBillDifference.allSchemas |
|
|
|
apiPage.value = CustomerToolApportStatementForecastDetailApi.getCustomerToolApportStatementForecastComparisonPage |
|
|
|
apiPage.value = await CustomerToolApportStatementForecastDetailApi.getCustomerToolApportStatementForecastComparisonPage |
|
|
|
otherHeadButttonData.value = [ |
|
|
|
{ |
|
|
|
label: t(`ts.导出`).replace('ts.', ''), |
|
|
@ -378,6 +379,20 @@ const changeTabs = async (item) => { |
|
|
|
otherHeadButttonData.value = [] |
|
|
|
} |
|
|
|
} |
|
|
|
const changeDetailList = (apiPage) =>{ |
|
|
|
if (apiPage == CustomerToolApportStatementForecastDetailApi.getCustomerToolApportStatementForecastDetailPage) { |
|
|
|
detailRef.value.tableObjectRef.tableList.forEach(element => { |
|
|
|
element.forecastAllocationAmount = element.forecastAllocationAmount.toFixed(5) |
|
|
|
}); |
|
|
|
} else if(apiPage == CustomerToolApportStatementForecastDetailApi.getCustomerToolApportStatementForecastComparisonPage) { |
|
|
|
detailRef.value.tableObjectRef.tableList.forEach(element => { |
|
|
|
element.forecastAllocationAmount = element.forecastAllocationAmount.toFixed(5) |
|
|
|
element.allocationAmount = element.allocationAmount.toFixed(5) |
|
|
|
element.amountVariance = element.amountVariance.toFixed(5) |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
// 点击子表按钮事件 |
|
|
|
const detailButtonBaseClick = (val, item, detailTableObject) => { |
|
|
|
if (val == 'exportForecastWithBilltDifference') { |
|
|
|