Browse Source

YT-1582客户模具分摊对账预测,明细金额应保留小数后5位,如图;客户模具分摊对账单,明细的模具分摊金额应保留后5位;客户对账单的模具分摊对账单,分摊金额、调整金额保留后5位

intex_20241211
张立 3 months ago
parent
commit
e8044e1e6d
  1. 6
      src/components/Detail/src/Detail.vue
  2. 19
      src/views/wms/deliversettlementManage/moldAllocation/customerToolApportStatementForecastMain/index.vue

6
src/components/Detail/src/Detail.vue

@ -1134,7 +1134,8 @@ const emit = defineEmits([
'formFormDateChange',
'buttonBaseClick',
'handleMainFefresh',
'handleSubmitForm'
'handleSubmitForm',
'changeDetailList'
])
/** 删除按钮操作 */
const handleDelete = async (id: number) => {
@ -1269,6 +1270,9 @@ watch(
tableMethodsRef.value = tableMethods
const { getList } = tableMethods
await getList()
emit('changeDetailList',props.apiPage)
}
)
watch(

19
src/views/wms/deliversettlementManage/moldAllocation/customerToolApportStatementForecastMain/index.vue

@ -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') {

Loading…
Cancel
Save