From 961c59731b34a971fd9b14c89865010b525d2ff8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E8=83=9C=E6=A5=A0?= <2792649152@qq.com> Date: Mon, 27 Nov 2023 16:44:36 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=B9=E5=B1=82=E6=B7=BB=E5=8A=A0=E6=9D=A1?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../itemManage/bom/bom.data.ts | 18 ++++++++++-- .../itempackaging/itempackaging.data.ts | 9 +++++- .../productionlineitem.data.ts | 14 +++++++++- .../stdcostprice/stdcostprice.data.ts | 13 ++++++++- .../purchaseprice/purchaseprice.data.ts | 11 +++++++- .../supplieritem/supplieritem.data.ts | 28 ++++++++++++++++--- 6 files changed, 83 insertions(+), 10 deletions(-) diff --git a/src/views/wms/basicDataManage/itemManage/bom/bom.data.ts b/src/views/wms/basicDataManage/itemManage/bom/bom.data.ts index b3f56c8dd..2eaf0f356 100644 --- a/src/views/wms/basicDataManage/itemManage/bom/bom.data.ts +++ b/src/views/wms/basicDataManage/itemManage/bom/bom.data.ts @@ -27,7 +27,14 @@ export const Bom = useCrudSchemas(reactive([ searchField: 'code', // 查询弹窗赋值字段 searchTitle: '物品基础信息', // 查询弹窗标题 searchAllSchemas: Itembasic.allSchemas, // 查询弹窗所需类 - searchPage: ItembasicApi.getItembasicPage // 查询弹窗所需分页方法 + searchPage: ItembasicApi.getItembasicPage, // 查询弹窗所需分页方法 + searchCondition: [{ + key: 'available', + value: 'TRUE', + action: '==', + isSearch: true, + isMainValue: false + }] } } }, @@ -47,7 +54,14 @@ export const Bom = useCrudSchemas(reactive([ searchField: 'code', // 查询弹窗赋值字段 searchTitle: '物品基础信息', // 查询弹窗标题 searchAllSchemas: Itembasic.allSchemas, // 查询弹窗所需类 - searchPage: ItembasicApi.getItembasicPage // 查询弹窗所需分页方法 + searchPage: ItembasicApi.getItembasicPage, // 查询弹窗所需分页方法 + searchCondition: [{ + key: 'available', + value: 'TRUE', + action: '==', + isSearch: true, + isMainValue: false + }] } } }, diff --git a/src/views/wms/basicDataManage/itemManage/itempackaging/itempackaging.data.ts b/src/views/wms/basicDataManage/itemManage/itempackaging/itempackaging.data.ts index 0aad69e13..1e5326078 100644 --- a/src/views/wms/basicDataManage/itemManage/itempackaging/itempackaging.data.ts +++ b/src/views/wms/basicDataManage/itemManage/itempackaging/itempackaging.data.ts @@ -26,7 +26,14 @@ export const Itempackaging = useCrudSchemas(reactive([ searchField: 'code', // 查询弹窗赋值字段 searchTitle: '物品基础信息', // 查询弹窗标题 searchAllSchemas: Itembasic.allSchemas, // 查询弹窗所需类 - searchPage: ItembasicApi.getItembasicPage // 查询弹窗所需分页方法 + searchPage: ItembasicApi.getItembasicPage, // 查询弹窗所需分页方法 + searchCondition: [{ + key: 'available', + value: 'TRUE', + action: '==', + isSearch: true, + isMainValue: false + }] } } }, diff --git a/src/views/wms/basicDataManage/itemManage/productionlineitem/productionlineitem.data.ts b/src/views/wms/basicDataManage/itemManage/productionlineitem/productionlineitem.data.ts index d6fd73599..a94a9d824 100644 --- a/src/views/wms/basicDataManage/itemManage/productionlineitem/productionlineitem.data.ts +++ b/src/views/wms/basicDataManage/itemManage/productionlineitem/productionlineitem.data.ts @@ -34,7 +34,12 @@ export const Productionlineitem = useCrudSchemas(reactive([ searchField: 'code', searchTitle: '库位信息', searchAllSchemas: Location.allSchemas, - searchPage: LocationApi.getLocationPage + searchPage: LocationApi.getLocationPage, + searchCondition: [{ + key: 'available', + value: 'TRUE', + isMainValue: false + }] } } }, @@ -117,6 +122,13 @@ export const Productionlineitem = useCrudSchemas(reactive([ action: '!=', isSearch: true, isMainValue: false + }, + { + key:'available', + value:'TRUE', + action: '==', + isSearch: true, + isMainValue: false } ] } diff --git a/src/views/wms/basicDataManage/itemManage/stdcostprice/stdcostprice.data.ts b/src/views/wms/basicDataManage/itemManage/stdcostprice/stdcostprice.data.ts index 2901538a2..ad0fd4bea 100644 --- a/src/views/wms/basicDataManage/itemManage/stdcostprice/stdcostprice.data.ts +++ b/src/views/wms/basicDataManage/itemManage/stdcostprice/stdcostprice.data.ts @@ -30,7 +30,14 @@ export const Stdcostprice = useCrudSchemas(reactive([ searchField: 'code', // 查询弹窗赋值字段 searchTitle: '供应商信息', // 查询弹窗标题 searchAllSchemas: Supplier.allSchemas, // 查询弹窗所需类 - searchPage: SupplierApi.getSupplierPage // 查询弹窗所需分页方法 + searchPage: SupplierApi.getSupplierPage, // 查询弹窗所需分页方法 + searchCondition: [{ + key: 'available', + value: 'TRUE', + action: '==', + isSearch: true, + isMainValue: false + }] } } }, @@ -55,6 +62,10 @@ export const Stdcostprice = useCrudSchemas(reactive([ key:'supplierCode', value:'supplierCode', isMainValue: true + },{ + key: 'available', + value: 'TRUE', + isMainValue: false }] } } diff --git a/src/views/wms/basicDataManage/supplierManage/purchaseprice/purchaseprice.data.ts b/src/views/wms/basicDataManage/supplierManage/purchaseprice/purchaseprice.data.ts index 72a371477..7c332324b 100644 --- a/src/views/wms/basicDataManage/supplierManage/purchaseprice/purchaseprice.data.ts +++ b/src/views/wms/basicDataManage/supplierManage/purchaseprice/purchaseprice.data.ts @@ -30,7 +30,12 @@ export const Purchaseprice = useCrudSchemas(reactive([ searchField: 'code', // 查询弹窗赋值字段 searchTitle: '供应商信息', // 查询弹窗标题 searchAllSchemas: Supplier.allSchemas, // 查询弹窗所需类 - searchPage: SupplierApi.getSupplierPage // 查询弹窗所需分页方法 + searchPage: SupplierApi.getSupplierPage, // 查询弹窗所需分页方法 + searchCondition: [{ + key: 'available', + value: 'TRUE', + isMainValue: false + }] } } }, @@ -55,6 +60,10 @@ export const Purchaseprice = useCrudSchemas(reactive([ key:'supplierCode', value:'supplierCode', isMainValue: true + },{ + key: 'available', + value: 'TRUE', + isMainValue: false }] } } diff --git a/src/views/wms/basicDataManage/supplierManage/supplieritem/supplieritem.data.ts b/src/views/wms/basicDataManage/supplierManage/supplieritem/supplieritem.data.ts index 2d06266e6..535480fce 100644 --- a/src/views/wms/basicDataManage/supplierManage/supplieritem/supplieritem.data.ts +++ b/src/views/wms/basicDataManage/supplierManage/supplieritem/supplieritem.data.ts @@ -38,7 +38,12 @@ export const Supplieritem = useCrudSchemas(reactive([ searchField: 'code', // 查询弹窗赋值字段 searchTitle: '供应商信息', // 查询弹窗标题 searchAllSchemas: Supplier.allSchemas, // 查询弹窗所需类 - searchPage: SupplierApi.getSupplierPage // 查询弹窗所需分页方法 + searchPage: SupplierApi.getSupplierPage, // 查询弹窗所需分页方法 + searchCondition: [{ + key: 'available', + value: 'TRUE', + isMainValue: false + }] } } }, @@ -58,7 +63,12 @@ export const Supplieritem = useCrudSchemas(reactive([ searchField: 'code', // 查询弹窗赋值字段 searchTitle: '物品基础信息', // 查询弹窗标题 searchAllSchemas: Itembasic.allSchemas, // 查询弹窗所需类 - searchPage: ItembasicApi.getItembasicPage // 查询弹窗所需分页方法 + searchPage: ItembasicApi.getItembasicPage, // 查询弹窗所需分页方法 + searchCondition: [{ + key: 'available', + value: 'TRUE', + isMainValue: false + }] } } }, @@ -178,7 +188,12 @@ export const Supplieritem = useCrudSchemas(reactive([ searchField: 'code', // 查询弹窗赋值字段 searchTitle: '仓库信息', // 查询弹窗标题 searchAllSchemas: Warehouse.allSchemas, // 查询弹窗所需类 - searchPage: WarehouseApi.getWarehousePage // 查询弹窗所需分页方法 + searchPage: WarehouseApi.getWarehousePage, // 查询弹窗所需分页方法 + searchCondition: [{ + key: 'available', + value: 'TRUE', + isMainValue: false + }] } } }, @@ -197,7 +212,12 @@ export const Supplieritem = useCrudSchemas(reactive([ searchField: 'code', // 查询弹窗赋值字段 searchTitle: '库位信息', // 查询弹窗标题 searchAllSchemas: Location.allSchemas, // 查询弹窗所需类 - searchPage: LocationApi.getLocationPage // 查询弹窗所需分页方法 + searchPage: LocationApi.getLocationPage, // 查询弹窗所需分页方法 + searchCondition: [{ + key: 'available', + value: 'TRUE', + isMainValue: false + }] } } },