From 312f22c0462a75c14e0a14c220b3dc13ac375f94 Mon Sep 17 00:00:00 2001 From: zhang_li <2235006734@qqq.com> Date: Fri, 10 Nov 2023 17:42:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BE=9B=E5=BA=94=E5=95=86=E5=8F=91=E8=B4=A7?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=94=9F=E6=88=90=E9=87=87=E8=B4=AD=E6=94=B6?= =?UTF-8?q?=E8=B4=A7=E7=94=B3=E8=AF=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/disposition/defaultButtons.ts | 13 ++++++++++++- .../purchasereceiptRequestMain.data.ts | 2 +- .../supplierdeliverRecordMain/index.vue | 4 +++- .../supplierdeliverRecordMain.data.ts | 10 ++++++++++ .../purchaseclaimRequestMain.data.ts | 2 +- 5 files changed, 27 insertions(+), 4 deletions(-) diff --git a/src/utils/disposition/defaultButtons.ts b/src/utils/disposition/defaultButtons.ts index 61e3fdda9..1492b05c6 100644 --- a/src/utils/disposition/defaultButtons.ts +++ b/src/utils/disposition/defaultButtons.ts @@ -626,7 +626,18 @@ export function mainListPointBtn(option:any) { hasPermi: '' }) } - +// 主列表-生成采购收货申请 +export function mainListGenerateApplicationBtn(option:any) { + return __defaultBtnOption(option,{ + label: '生成采购收货申请', + name: 'generateApplication', + hide: false, + type: 'primary', + color: '', + link: true, // 文本展现按钮 + hasPermi: '' + }) +} // 默认按钮规则 function __defaultBtnOption(option:any,specific:any){ return { diff --git a/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/purchasereceiptRequestMain.data.ts b/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/purchasereceiptRequestMain.data.ts index af3eec0fd..f329a5d0f 100644 --- a/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/purchasereceiptRequestMain.data.ts +++ b/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/purchasereceiptRequestMain.data.ts @@ -466,7 +466,7 @@ export const PurchasereceiptRequestDetail = useCrudSchemas(reactive { // 列表-操作按钮 const butttondata = (row) => { - return [] + return [ + defaultButtons.mainListGenerateApplicationBtn(null), // 生成采购申请 + ] } // 列表-操作按钮事件 diff --git a/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRecordMain/supplierdeliverRecordMain.data.ts b/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRecordMain/supplierdeliverRecordMain.data.ts index 57678a405..5a328a62f 100644 --- a/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRecordMain/supplierdeliverRecordMain.data.ts +++ b/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRecordMain/supplierdeliverRecordMain.data.ts @@ -320,6 +320,16 @@ export const SupplierdeliverRecordMain = useCrudSchemas(reactive([ width: 150 }, }, + { + label: '操作', + field: 'action', + isDetail: false, + isForm: false, + table: { + width: 160, + fixed: 'right' + }, + } ])) //表单校验 diff --git a/src/views/wms/supplierManage/purchaseclaim/purchaseclaimRequestMain/purchaseclaimRequestMain.data.ts b/src/views/wms/supplierManage/purchaseclaim/purchaseclaimRequestMain/purchaseclaimRequestMain.data.ts index bf684242f..1889ccb33 100644 --- a/src/views/wms/supplierManage/purchaseclaim/purchaseclaimRequestMain/purchaseclaimRequestMain.data.ts +++ b/src/views/wms/supplierManage/purchaseclaim/purchaseclaimRequestMain/purchaseclaimRequestMain.data.ts @@ -347,7 +347,7 @@ export const PurchaseclaimRequestDetail = useCrudSchemas(reactive( form: { // labelMessage: '信息提示说明!!!', componentProps: { - isInpuFocusShow: true, + isSearchList: true, // 开启查询弹窗 searchListPlaceholder: '请选择订单号', searchField: 'poNumber', searchTitle: '供应商发货记录',