From 11a3dfe77c4363785e4d5f920bb5ecd9c5badfdb Mon Sep 17 00:00:00 2001
From: zhang_li <2235006734@qqq.com>
Date: Fri, 15 Dec 2023 17:33:57 +0800
Subject: [PATCH] =?UTF-8?q?=E7=9B=98=E7=82=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../SearchTable/src/SearchTable.vue | 5 +-
src/utils/disposition/defaultButtons.ts | 24 ++
.../count/countRequestMain/index.vue | 293 ++++++++++++------
.../purchasereturnRequestMain.data.ts | 6 +-
4 files changed, 234 insertions(+), 94 deletions(-)
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 @@
-
+
-
-
+
+
@@ -27,13 +31,16 @@
v-model:currentPage="tableObject.currentPage"
v-model:sort="tableObject.sort"
>
-
+
{{ row.number }}
-
+
@@ -73,16 +80,34 @@
/>
-
+
+
+