From 2d714ad379184fcad3c497b958a5f68a3703c2b8 Mon Sep 17 00:00:00 2001 From: wangyufei <2267742828@qq.com> Date: Tue, 9 Jul 2024 10:58:56 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=A5=E5=BA=8F=E6=8A=A5=E5=B7=A5=E7=94=B3?= =?UTF-8?q?=E8=AF=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../processproductionRequest/index.vue | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/src/views/wms/productionManage/processproduction/processproductionRequest/index.vue b/src/views/wms/productionManage/processproduction/processproductionRequest/index.vue index 3a9c0ca6a..8f1767579 100644 --- a/src/views/wms/productionManage/processproduction/processproductionRequest/index.vue +++ b/src/views/wms/productionManage/processproduction/processproductionRequest/index.vue @@ -40,6 +40,8 @@ @@ -87,6 +90,8 @@ import download from '@/utils/download' import { CACHE_KEY, useCache } from '@/hooks/web/useCache' import { ProcessproductionRequestMain,ProcessproductionRequestMainRules,ProcessproductionRequestDetail,ProcessproductionRequestDetailRules } from './processproductionRequestMain.data' +import * as ProductionlineitemApi from '@/api/wms/productionlineitem' +import { Productionlineitem } from '@/views/wms/basicDataManage/itemManage/productionlineitem/productionlineitem.data' import * as ProcessproductionRequestMainApi from '@/api/wms/processproductionRequestMain' import * as ProcessproductionRequestDetailApi from '@/api/wms/processproductionRequestDetail' import * as defaultButtons from '@/utils/disposition/defaultButtons' @@ -440,6 +445,26 @@ const handleDeleteTable = (item, index) => { tableData.value.splice(itemIndex, 1) } } + +const onEnter = async (field,value) => { + if (field == 'itemCode') { + //车间代码 + basicFormRef.value.opensearchTable('productionLine', 'productionLineCode', '生产线物料关系信息', Productionlineitem.allSchemas, ProductionlineitemApi.getProductionlineitemPage,[ + { + key: 'available', + value: 'TRUE', + action: '==', + isSearch: true, + isMainValue: false + },{ + key: 'itemCode', + value: value, + action: '==', + isSearch: true, + isMainValue: false + }]) + } +} const tableSelectionDelete = (selection) => { tableData.value = tableData.value.filter(item => !selection.includes(item)) }