From 58233b1bba5f1b1cfbf50223c04784177697b43f Mon Sep 17 00:00:00 2001 From: yufei_wang <2267742828@qq.com> Date: Mon, 14 Oct 2024 16:57:30 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=98=8E=E7=BB=86-=E5=BC=B9?= =?UTF-8?q?=E7=AA=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../customerreturnRequestMain.data.ts | 36 ++++++++++++++++--- .../customerreturnRequestMain/index.vue | 2 ++ 2 files changed, 33 insertions(+), 5 deletions(-) diff --git a/src/views/wms/deliversettlementManage/customerreturn/customerreturnRequestMain/customerreturnRequestMain.data.ts b/src/views/wms/deliversettlementManage/customerreturn/customerreturnRequestMain/customerreturnRequestMain.data.ts index e3f0cf372..4efec58c4 100644 --- a/src/views/wms/deliversettlementManage/customerreturn/customerreturnRequestMain/customerreturnRequestMain.data.ts +++ b/src/views/wms/deliversettlementManage/customerreturn/customerreturnRequestMain/customerreturnRequestMain.data.ts @@ -995,14 +995,40 @@ export const CustomerreturnRequestDetail = useCrudSchemas(reactive table: { width: 150 }, - tableForm: { - disabled: true - }, form: { componentProps: { - disabled: true + disabled: true, + isSearchList: true, + searchListPlaceholder: '请选择物料代码', + searchField: 'itemCode', + searchTitle: '库存余额信息', + searchAllSchemas: Balance.allSchemas, + searchPage: BalanceApi.getBalanceByBusinessCategoryByItemType, + searchCondition: [] } - } + }, + tableForm:{ + disabled:true, + multiple:true, + // isInpuFocusShow: true, + searchListPlaceholder: '请选择物料代码', // 输入框占位文本 + searchField: 'itemCode', // 查询弹窗赋值字段 + searchTitle: '库存余额信息', // 查询弹窗标题 + searchAllSchemas: Balance.allSchemas, // 查询弹窗所需类 + searchPage: BalanceApi.getBalanceByBusinessCategoryByItemType, // 查询弹窗所需分页方法 + searchCondition:[ + { + key: 'available', + value: 'TRUE', + isMainValue: false + }, + { + message: '请选择从库位代码!', + key: 'fromLocationCode', + value: 'fromLocationCode', + isMainValue: true + }] + }, }, { label: '物料名称', diff --git a/src/views/wms/deliversettlementManage/customerreturn/customerreturnRequestMain/index.vue b/src/views/wms/deliversettlementManage/customerreturn/customerreturnRequestMain/index.vue index a2f02b963..c00d3bdda 100644 --- a/src/views/wms/deliversettlementManage/customerreturn/customerreturnRequestMain/index.vue +++ b/src/views/wms/deliversettlementManage/customerreturn/customerreturnRequestMain/index.vue @@ -51,6 +51,8 @@ :apiUpdate="CustomerreturnRequestMainApi.updateCustomerreturnRequestMain" :apiCreate="CustomerreturnRequestMainApi.createCustomerreturnRequestMain" :isBusiness="true" + fieldTableColumn="itemCode" + :isOpenSearchTable="true" @handleAddTable="handleAddTable" @handleDeleteTable="handleDeleteTable" :isShowReduceButtonSelection="true"