From 019c5d998d199e6eaf8587d0ceec992b39dc874e Mon Sep 17 00:00:00 2001 From: zhang_li <2235006734@qqq.com> Date: Fri, 23 Feb 2024 08:46:39 +0800 Subject: [PATCH] mastid --- src/components/Detail/src/Detail.vue | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/components/Detail/src/Detail.vue b/src/components/Detail/src/Detail.vue index b7bed4b..d88b999 100644 --- a/src/components/Detail/src/Detail.vue +++ b/src/components/Detail/src/Detail.vue @@ -33,7 +33,7 @@ { //主表所需的参数 const masterParmas = ref({ - maintenanceNumber: '' //主表id - // number: '', //主表单据号 + masterId: '', //主表id + number: '', //主表单据号 // status: '' //主表状态 用于控制子表新增编辑按钮显示情况 }) @@ -332,11 +332,11 @@ const openDetail = async (row: any, titleName: any, titleValue: any, tableName: // 加载明细列表 if (!props.isBasic) { // 设置主表id - masterParmas.value.maintenanceNumber = row.number - // masterParmas.value.number = row.number + masterParmas.value.masterId = row.id + masterParmas.value.number = row.number // masterParmas.value.status = row.status tableObjectRef.value.params = { - number: row.number + masterId: row.id } await getList() } @@ -529,7 +529,7 @@ const searchFormClick = async (searchData) => { isSearch: true, filters: searchData.filters ? searchData.filters - : [{ column: 'number', action: '==', value: masterParmas.value.maintenanceNumber }] + : [{ column: 'masterId', action: '==', value:masterParmas.value.masterId }] } detailAllSchemasRef.value = props.detailAllSchemas tableObjectRef.value = tableObject @@ -563,7 +563,7 @@ watch( const { tableObject, tableMethods } = useTable({ getListApi: props.apiPage // 分页接口 }) - tableObject.params.maintenanceNumber = masterParmas.value.maintenanceNumber + tableObject.params.masterId = masterParmas.value.masterId detailAllSchemasRef.value = props.detailAllSchemas if (props.tableObjectExtend) { props.tableObjectExtend.forEach((item) => {