Browse Source

YT-436:选择明细之前必须选择到库位

intex_online20241111
songguoqiang 1 month ago
parent
commit
f28d969bb1
  1. 5
      src/views/wms/moveManage/inventorymove/inventorymoveRecordMainNew/index.vue

5
src/views/wms/moveManage/inventorymove/inventorymoveRecordMainNew/index.vue

@ -384,8 +384,13 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
nextTick(async () => { nextTick(async () => {
if (type == 'tableForm') { if (type == 'tableForm') {
if(formField == 'itemCode'){ if(formField == 'itemCode'){
const fromLocationCode =formRef.formModel.fromLocationCode// const fromLocationCode =formRef.formModel.fromLocationCode//
const toLocationCode =formRef.formModel.toLocationCode// const toLocationCode =formRef.formModel.toLocationCode//
if(toLocationCode==''){
message.warning('到库位代码不能为空');
return
}
val = val.filter(item=>!tableData.value.find(item1=>item1['itemCode']==item['itemCode']&&item1['fromBatch']==item['batch']&&item1['fromPackingNumber']==item['packingNumber']&&item1['origin_fromLocationCode']==item['locationCode']&&item1['fromInventoryStatus']==item['inventoryStatus'])) val = val.filter(item=>!tableData.value.find(item1=>item1['itemCode']==item['itemCode']&&item1['fromBatch']==item['batch']&&item1['fromPackingNumber']==item['packingNumber']&&item1['origin_fromLocationCode']==item['locationCode']&&item1['fromInventoryStatus']==item['inventoryStatus']))
if(val.length==0) return if(val.length==0) return
val.forEach(async item=>{ val.forEach(async item=>{

Loading…
Cancel
Save