Browse Source

失去焦点数据可重复

linshi20240813
zhang_li 4 months ago
parent
commit
792e07050c
  1. 4
      src/api/wms/business/inputBlur.ts
  2. 1
      src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/inventorymoveRequestMain.data.ts

4
src/api/wms/business/inputBlur.ts

@ -158,7 +158,8 @@ export const tableFormBlurVer = async (headerItem, val, row, index, routeName, f
}
}
}
// 判断改包装号是否已经添加
// 判断代码是否存在
if (!headerItem?.tableForm.isRepeat) {
const seen = new Set()
const repeatCode = new Set()
const arr = tableData.map((item) => item[headerItem.field]?.trim())
@ -177,6 +178,7 @@ export const tableFormBlurVer = async (headerItem, val, row, index, routeName, f
row[headerItem.field] = ''
return
}
}
if (filters.length > 0) {
params.value.isSearch = true
params.value.filters = filters

1
src/views/wms/moveManage/inventorymove/inventorymoveRequestMain/inventorymoveRequestMain.data.ts

@ -709,6 +709,7 @@ export const InventorymoveRequestDetail = useCrudSchemas(reactive<CrudSchema[]>(
value: 'in',
isMainValue: false
}],
isRepeat:true,
verificationParams: [{
key: 'code',
action: '==',

Loading…
Cancel
Save