diff --git a/src/components/SearchTable/src/SearchTable.vue b/src/components/SearchTable/src/SearchTable.vue index c173c536f..b54633dfc 100644 --- a/src/components/SearchTable/src/SearchTable.vue +++ b/src/components/SearchTable/src/SearchTable.vue @@ -67,7 +67,7 @@ const typeRef = ref() const rowRef = ref() const allSchemasRef = ref() const multipleBol = ref(false) -const open = (titleName: any, allSchemas: any,getApiPage: any, formField: any, searchField: any,multiple: any, type: any, row: any, searchCondition:any ) => { +const open = (titleName: any, allSchemas: any,getApiPage: any, formField: any, searchField: any,multiple: any, type: any, row: any, searchCondition:any , isCountRequestRe:any ) => { searchDialogVisible.value = true formFieldRef.value = formField searchFieldRef.value = searchField @@ -84,7 +84,8 @@ const open = (titleName: any, allSchemas: any,getApiPage: any, formField: any, s getListApi: getPage.value // 分页接口 }) tableObjectRef.value = tableObject - if (searchCondition) tableObjectRef.value.params = searchCondition + if (searchCondition) tableObjectRef.value.params = searchCondition; + // 获得表格的各种操作 const { getList, setSearchParams } = tableMethods setSearchParamsRef.value = setSearchParams diff --git a/src/utils/disposition/defaultButtons.ts b/src/utils/disposition/defaultButtons.ts index 2930263de..86aea3df7 100644 --- a/src/utils/disposition/defaultButtons.ts +++ b/src/utils/disposition/defaultButtons.ts @@ -699,6 +699,30 @@ export function mainCountAdjustRequesttBtn(option:any) { hasPermi: '' }) } +// 主列表-重盘 +export function mainReCountBtn(option:any) { + return __defaultBtnOption(option,{ + label: '重盘', + name: 'mainReCount', + hide: false, + type: 'primary', + color: '', + link: true, // 文本展现按钮 + hasPermi: '' + }) +} +// 主列表-监盘 +export function mainSuperviseCountBtn(option:any) { + return __defaultBtnOption(option,{ + label: '监盘', + name: 'mainSuperviseCount', + hide: false, + type: 'primary', + color: '', + link: true, // 文本展现按钮 + hasPermi: '' + }) +} // 默认按钮规则 function __defaultBtnOption(option:any,specific:any){ return { diff --git a/src/views/wms/countManage/count/countRequestMain/index.vue b/src/views/wms/countManage/count/countRequestMain/index.vue index 5b84e06d6..729415fe3 100644 --- a/src/views/wms/countManage/count/countRequestMain/index.vue +++ b/src/views/wms/countManage/count/countRequestMain/index.vue @@ -1,18 +1,22 @@