From e883bdaa4b960a56559de04a586abc8201230d7e Mon Sep 17 00:00:00 2001 From: yufei_wang <2267742828@qq.com> Date: Tue, 15 Oct 2024 17:24:30 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=A2=E6=88=B7=E9=80=80=E8=B4=A7=E7=94=B3?= =?UTF-8?q?=E8=AF=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../customerreturnRequestMain/index.vue | 50 ++----------------- 1 file changed, 4 insertions(+), 46 deletions(-) diff --git a/src/views/wms/deliversettlementManage/customerreturn/customerreturnRequestMain/index.vue b/src/views/wms/deliversettlementManage/customerreturn/customerreturnRequestMain/index.vue index 225a05a20..60e32f7d6 100644 --- a/src/views/wms/deliversettlementManage/customerreturn/customerreturnRequestMain/index.vue +++ b/src/views/wms/deliversettlementManage/customerreturn/customerreturnRequestMain/index.vue @@ -144,31 +144,6 @@ const updataTableColumns = (val) => { } const onEnter = async (field,value)=>{ console.log('onEnter',field,value) - const dateTime = new Date().getTime() - if(field=='customerCode'){ - //客户代码---》发货记录单号 - formRef.value.opensearchTable('deliverRecordNumber', 'number', '发货记录信息', DeliverRecordMain.allSchemas, DeliverRecordDetailApi.getDeliverRecordDetailPageCustomerreturn,[{ - key: 'available', - value: 'TRUE', - isMainValue: false - }, - { - key: 'createTime', // 查询列表中字段 - value: dateTime - 30 * 24 * 60 * 60 * 1000 + "," + dateTime, // 指查询具体值 - action: 'betweeen', // 查询拼接条件 - isSearch: true, // 使用自定义拼接条件 - isMainValue: false // 拼接条件必须要 false 同时不能与 isMainValue: true 同用 - }, - { - key: 'customerCode', // 查询列表中字段 - value: 'customerCode', // 指查询具体值 - action: '==', // 查询拼接条件 - isSearch: true, // 使用自定义拼接条件 - isFormModel:true, - isMainValue: false // 拼接条件必须要 false 同时不能与 isMainValue: true 同用 - } - ],undefined,undefined,null,true,DeliverRecordDetail.allSchemas) - } } // 查询页面返回 const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => { @@ -521,10 +496,6 @@ const openForm =async (type: string, row?: number) => { originTableData.value = [] if(type == "update"){ CustomerreturnRequestMain.allSchemas.formSchema.forEach((item) => { - if(item.field == 'deliverRecordNumber'){ - item.componentProps.isSearchList = false, - item.componentProps.disabled = true - } if(item.field == 'customerCode'){ item.componentProps.isSearchList = false, item.componentProps.disabled = true @@ -536,9 +507,6 @@ const openForm =async (type: string, row?: number) => { }) }else { CustomerreturnRequestMain.allSchemas.formSchema.forEach((item) => { - if(item.field == 'deliverRecordNumber'){ - item.componentProps.isSearchList = true - } if(item.field == 'customerCode'){ item.componentProps.isSearchList = true } @@ -687,18 +655,8 @@ const tableSelectionDelete = (selection) => { } const clearSearchInput = (field)=>{ console.log('field',field) - if('customerCode' == field){ - //客户代码 - formRef.value.formRef.setValues({ - deliverRecordNumber: '', - // customerDockCode:'', - }) - tableData.value = [] - }else if('deliverRecordNumber' == field){ - //发货记录单号 - // formRef.value.formRef.setValues({ - // customerDockCode:'', - // }) + if('fromLocationCode' == field){ + //从库位代码 tableData.value = [] } } @@ -707,7 +665,7 @@ const inputNumberChange = (field, val,row, index) => { console.log('inputNumberChange',formRef.value.formRef) if(field=='qty'){ if(row['subReturnedQty']<=0){ - message.error(`发货记录单号${formRef.value.formRef.formModel['deliverRecordNumber']}物料${row['itemCode']}批次${row['batch']}被占用`) + message.error(`物料${row['itemCode']}批次${row['batch']}被占用`) } if(row['subReturnedQty']!=null&&row['qty']>row['subReturnedQty']){ message.error(`物料${row['itemCode']}最大数量为${row['subReturnedQty']}`) @@ -726,7 +684,7 @@ const submitForm = async (formType, submitData) => { tableData.value.forEach(item=>{ if(item['subReturnedQty']<=0){ flag = false - message.error(`发货记录单号${data['deliverRecordNumber']}物料${item['itemCode']}批次${item['batch']}被占用`) + message.error(`物料${item['itemCode']}批次${item['batch']}被占用`) } if(item['subReturnedQty']!=null&&item['qty']>item['subReturnedQty']){ flag = false