diff --git a/src/api/wms/customerStatementDetail/index.ts b/src/api/wms/customerStatementDetail/index.ts index 57e541428..2d2d8121b 100644 --- a/src/api/wms/customerStatementDetail/index.ts +++ b/src/api/wms/customerStatementDetail/index.ts @@ -55,6 +55,17 @@ export const getCustomerStatementReconciliationPage = async (params) => { return await request.get({ url: `/wms/customer-statement-detail/page`, params }) } } +// 查询模具分摊明细列表 +export const getCustomerToolApportStatementPage = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = { ...params } + return await request.post({ url: '/wms/customer-tool-apport-statement-detail/senior', data }) + } else { + return await request.get({ url: `/wms/customer-tool-apport-statement-detail/page`, params }) + } +} + // 查询客户对账单子信息表(WMS)详情 export const getCustomerStatementDetail = async (id: number) => { return await request.get({ url: `/wms/customer-statement-detail/get?id=` + id }) @@ -98,4 +109,10 @@ export const exportCustomerStatementCompareDetail = async (params) => { }else{ return await request.download({ url: `/wms/customer-statement-detail/export-excel-compare`, params }) } -} \ No newline at end of file +} + + +// 客户模具分摊对账单修改调整金额 +export const updateAdjustmentAmount = async (id: number, masterId: number, amount: number) => { + return await request.get({ url: `/wms/customer-statement-main/updateAdjustmentAmount?id=` + id + '&masterId=' + masterId + '&amount=' + amount }) +} diff --git a/src/api/wms/customerStatementMain/index.ts b/src/api/wms/customerStatementMain/index.ts index 4fc3a6fbd..5a1a62daa 100644 --- a/src/api/wms/customerStatementMain/index.ts +++ b/src/api/wms/customerStatementMain/index.ts @@ -108,11 +108,6 @@ export const getCustomerList = async () => { } -// 客户模具分摊对账单修改调整金额 -export const updateAdjustmentAmount = async (id:number,masterId:number,amount:number) => { - return await request.get({ url: `/wms/customer-statement-main/updateAdjustmentAmount?id=` + id+'&masterId='+masterId+'&amount='+amount}) -} - // 导出客户对账单Excel export const exportCustomerStatementMain = async (params) => { if (params.isSearch) { @@ -133,14 +128,4 @@ export const exportCustomerStatementShareMain = async (params) => { } } -// 查询模具分摊明细列表 -export const getCustomerToolApportStatementPage = async (params) => { - if (params.isSearch) { - delete params.isSearch - const data = {...params} - return await request.post({ url: '/wms/customer-tool-apport-statement-detail/senior', data }) - } else { - return await request.get({ url: `/wms/customer-tool-apport-statement-detail/page`, params }) - } -} diff --git a/src/components/Detail/src/Detail.vue b/src/components/Detail/src/Detail.vue index 0fbac974f..c8ebbd536 100644 --- a/src/components/Detail/src/Detail.vue +++ b/src/components/Detail/src/Detail.vue @@ -41,6 +41,7 @@ :routeName="routeName" @searchFormClick="searchFormClick" :allSchemas="detailAllSchemas" + :key="updateKey" /> { + curRow.value = row if(tabRef.value){ tabRef.value.changeCurrent(0) } @@ -852,7 +855,7 @@ const updateList = ()=>{ filters: tableObjectRef.value.params.filters }) } else { - getList() + tableMethodsRef.value.getList() } } @@ -937,7 +940,6 @@ const buttonBaseClick = (val, item) => { // 筛选 } else { // 其他按钮 - console.log('其他按钮', item) emit('buttonBaseClick',val, item) } } @@ -1185,9 +1187,12 @@ watch( () => props.otherHeadButttonData, (val) => { HeadButttondata.value = [...HeadButttondataBackups.value, ...props.otherHeadButttonData] + }, + { + deep: true } ) -defineExpose({ openDetail, formRef ,updateList,submitUpdateList,changeTabCurrent,openForm}) // 提供 open 方法,用于打开弹窗 +defineExpose({ openDetail, formRef ,updateList,submitUpdateList,changeTabCurrent,openForm,tableObjectRef}) // 提供 open 方法,用于打开弹窗