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

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

@ -74,6 +74,7 @@
@changeTabs="changeTabs" @changeTabs="changeTabs"
:tableObjectExtend="tableObjectExtend" :tableObjectExtend="tableObjectExtend"
@buttonBaseClick="detailButtonBaseClick" @buttonBaseClick="detailButtonBaseClick"
@changeDetailList="changeDetailList"
> >
<template #amountVariance="{ row }" v-if="tabCurrent.prop == 'ForecastWithBilltDifference'"> <template #amountVariance="{ row }" v-if="tabCurrent.prop == 'ForecastWithBilltDifference'">
<span <span
@ -340,7 +341,7 @@ const changeTabs = async (item) => {
key: 'masterId', key: 'masterId',
value: chooseRow.value.id value: chooseRow.value.id
}] }]
apiPage.value = CustomerToolApportStatementForecastDetailApi.getCustomerToolApportStatementForecastDetailPage apiPage.value = await CustomerToolApportStatementForecastDetailApi.getCustomerToolApportStatementForecastDetailPage
DetailAllSchemas.value = CustomerToolApportStatementForecastDetail.allSchemas DetailAllSchemas.value = CustomerToolApportStatementForecastDetail.allSchemas
otherHeadButttonData.value = [{ otherHeadButttonData.value = [{
label: t(`ts.导出`).replace('ts.', ''), label: t(`ts.导出`).replace('ts.', ''),
@ -360,7 +361,7 @@ const changeTabs = async (item) => {
value: chooseRow.value.id value: chooseRow.value.id
}] }]
DetailAllSchemas.value = ForecastWithBillDifference.allSchemas DetailAllSchemas.value = ForecastWithBillDifference.allSchemas
apiPage.value = CustomerToolApportStatementForecastDetailApi.getCustomerToolApportStatementForecastComparisonPage apiPage.value = await CustomerToolApportStatementForecastDetailApi.getCustomerToolApportStatementForecastComparisonPage
otherHeadButttonData.value = [ otherHeadButttonData.value = [
{ {
label: t(`ts.导出`).replace('ts.', ''), label: t(`ts.导出`).replace('ts.', ''),
@ -378,6 +379,20 @@ const changeTabs = async (item) => {
otherHeadButttonData.value = [] 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) => { const detailButtonBaseClick = (val, item, detailTableObject) => {
if (val == 'exportForecastWithBilltDifference') { if (val == 'exportForecastWithBilltDifference') {

Loading…
Cancel
Save