Browse Source

scp采购订单失去焦点

hella_online_20240829
zhang_li 4 months ago
parent
commit
df725a4834
  1. 32
      src/views/wms/purchasereceiptManage/supplierdeliver/purchaseMain/purchaseMain.data.ts

32
src/views/wms/purchasereceiptManage/supplierdeliver/purchaseMain/purchaseMain.data.ts

@ -44,7 +44,15 @@ export const PurchaseMain = useCrudSchemas(reactive<CrudSchema[]>([
key: 'available', key: 'available',
value: 'TRUE', value: 'TRUE',
isMainValue: false isMainValue: false
}] }],
verificationParams: [{
key: 'code',
action: '==',
value: '',
isMainValue: false,
isSearch: 'true',
isFormModel: true
}], // 失去焦点校验参数
} }
} }
}, },
@ -421,7 +429,6 @@ export const PurchaseDetail = useCrudSchemas(reactive<CrudSchema[]>([
multiple:true,//多选 multiple:true,//多选
isInpuFocusShow: true, isInpuFocusShow: true,
searchListPlaceholder: '请选择供应商物料', searchListPlaceholder: '请选择供应商物料',
isShowTableFormSearch: true,
searchField: 'itemCode', searchField: 'itemCode',
searchTitle: '供应商物料信息', searchTitle: '供应商物料信息',
searchAllSchemas: Supplieritem.allSchemas, searchAllSchemas: Supplieritem.allSchemas,
@ -435,6 +442,18 @@ export const PurchaseDetail = useCrudSchemas(reactive<CrudSchema[]>([
key: 'available', key: 'available',
value: 'TRUE', value: 'TRUE',
isMainValue: false isMainValue: false
}],
verificationPage: SupplieritemApi.getSupplierItemListByCodes, // tableForm下方输入框校验失去焦点之后是否正确的方法
isShowTableFormSearch: true, //tableForm下方是否出现输入框
isRepeat: true,//tableForm下方输入框是否可以重复添加该条数据
// 失去焦点校验参数
verificationParams: [{
key: 'itemCode',
action: '==',
value: '',
isMainValue: false,
isSearch: 'true',
isFormModel: true,
}] }]
}, },
form: { form: {
@ -455,6 +474,15 @@ export const PurchaseDetail = useCrudSchemas(reactive<CrudSchema[]>([
key: 'available', key: 'available',
value: 'TRUE', value: 'TRUE',
isMainValue: false isMainValue: false
}],
// 失去焦点校验参数
verificationParams: [{
key: 'code',
action: '==',
value: '',
isMainValue: false,
isSearch: 'true',
isFormModel: true,
}] }]
} }
} }

Loading…
Cancel
Save