|
@ -33,7 +33,7 @@ |
|
|
<TableHead |
|
|
<TableHead |
|
|
v-if="!isBasic" |
|
|
v-if="!isBasic" |
|
|
:HeadButttondata="HeadButttondata" |
|
|
:HeadButttondata="HeadButttondata" |
|
|
:number="masterParmas.maintenanceNumber" |
|
|
:masterId="masterParmas.masterId" |
|
|
@button-base-click="buttonBaseClick" |
|
|
@button-base-click="buttonBaseClick" |
|
|
:routeName="routeName" |
|
|
:routeName="routeName" |
|
|
@searchFormClick="searchFormClick" |
|
|
@searchFormClick="searchFormClick" |
|
@ -312,8 +312,8 @@ const change = (item, index) => { |
|
|
|
|
|
|
|
|
//主表所需的参数 |
|
|
//主表所需的参数 |
|
|
const masterParmas = ref({ |
|
|
const masterParmas = ref({ |
|
|
maintenanceNumber: '' //主表id |
|
|
masterId: '', //主表id |
|
|
// number: '', //主表单据号 |
|
|
number: '', //主表单据号 |
|
|
// status: '' //主表状态 用于控制子表新增编辑按钮显示情况 |
|
|
// status: '' //主表状态 用于控制子表新增编辑按钮显示情况 |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
@ -332,11 +332,11 @@ const openDetail = async (row: any, titleName: any, titleValue: any, tableName: |
|
|
// 加载明细列表 |
|
|
// 加载明细列表 |
|
|
if (!props.isBasic) { |
|
|
if (!props.isBasic) { |
|
|
// 设置主表id |
|
|
// 设置主表id |
|
|
masterParmas.value.maintenanceNumber = row.number |
|
|
masterParmas.value.masterId = row.id |
|
|
// masterParmas.value.number = row.number |
|
|
masterParmas.value.number = row.number |
|
|
// masterParmas.value.status = row.status |
|
|
// masterParmas.value.status = row.status |
|
|
tableObjectRef.value.params = { |
|
|
tableObjectRef.value.params = { |
|
|
number: row.number |
|
|
masterId: row.id |
|
|
} |
|
|
} |
|
|
await getList() |
|
|
await getList() |
|
|
} |
|
|
} |
|
@ -529,7 +529,7 @@ const searchFormClick = async (searchData) => { |
|
|
isSearch: true, |
|
|
isSearch: true, |
|
|
filters: searchData.filters |
|
|
filters: searchData.filters |
|
|
? searchData.filters |
|
|
? searchData.filters |
|
|
: [{ column: 'number', action: '==', value: masterParmas.value.maintenanceNumber }] |
|
|
: [{ column: 'masterId', action: '==', value:masterParmas.value.masterId }] |
|
|
} |
|
|
} |
|
|
detailAllSchemasRef.value = props.detailAllSchemas |
|
|
detailAllSchemasRef.value = props.detailAllSchemas |
|
|
tableObjectRef.value = tableObject |
|
|
tableObjectRef.value = tableObject |
|
@ -563,7 +563,7 @@ watch( |
|
|
const { tableObject, tableMethods } = useTable({ |
|
|
const { tableObject, tableMethods } = useTable({ |
|
|
getListApi: props.apiPage // 分页接口 |
|
|
getListApi: props.apiPage // 分页接口 |
|
|
}) |
|
|
}) |
|
|
tableObject.params.maintenanceNumber = masterParmas.value.maintenanceNumber |
|
|
tableObject.params.masterId = masterParmas.value.masterId |
|
|
detailAllSchemasRef.value = props.detailAllSchemas |
|
|
detailAllSchemasRef.value = props.detailAllSchemas |
|
|
if (props.tableObjectExtend) { |
|
|
if (props.tableObjectExtend) { |
|
|
props.tableObjectExtend.forEach((item) => { |
|
|
props.tableObjectExtend.forEach((item) => { |
|
|