Browse Source

器具初始化失去焦点校验

hella_online_20240829
zhang_li 4 months ago
parent
commit
a4c9a6e6b1
  1. 6
      src/api/wms/itembasic/index.ts
  2. 12
      src/views/wms/inventoryjobManage/containermanage/initialContainerMainRequest/initialContainerMainRequest.data.ts

6
src/api/wms/itembasic/index.ts

@ -120,6 +120,8 @@ export const getItemListByCodes = async (params) => {
}
// 根据cood查询器具物料信息
export const selectContainermanageItemCode = async (code: String) => {
return await request.get({ url: `/wms/itembasic/selectContainermanageItemCode`,code})
export const selectContainermanageItemCode = async (params) => {
const code = params.codes
console.log(2344,code)
return await request.get({ url: `/wms/itembasic/selectContainermanageItemCode?code=${code}`})
}

12
src/views/wms/inventoryjobManage/containermanage/initialContainerMainRequest/initialContainerMainRequest.data.ts

@ -366,6 +366,18 @@ export const ContainerDetailRequest = useCrudSchemas(reactive<CrudSchema[]>([
searchTitle: '器具信息',
searchAllSchemas: Itembasic.allSchemas,
searchPage: ItembasicApi.selectConfigToItembasic,
verificationPage: ItembasicApi.selectContainermanageItemCode, // tableForm下方输入框校验失去焦点之后是否正确的方法
isShowTableFormSearch: true, //tableForm下方是否出现输入框
isRepeat: true,//tableForm下方输入框是否可以重复添加该条数据
// 失去焦点校验参数
verificationParams: [{
key: 'code',
action: '==',
value: '',
isMainValue: false,
isSearch: 'true',
isFormModel: true,
}]
},
form: {
// labelMessage: '信息提示说明!!!',

Loading…
Cancel
Save