Browse Source

客户管理和供应商管理失去焦点

hella_online_20240829
zhang_li 4 months ago
parent
commit
c6f31a9ff1
  1. 2
      src/components/BasicForm/src/BasicForm.vue
  2. 28
      src/views/wms/basicDataManage/customerManage/customerdock/customerdock.data.ts
  3. 10
      src/views/wms/basicDataManage/customerManage/project/project.data.ts
  4. 20
      src/views/wms/basicDataManage/customerManage/saleprice/saleprice.data.ts
  5. 20
      src/views/wms/basicDataManage/supplierManage/purchaseprice/purchaseprice.data.ts
  6. 20
      src/views/wms/basicDataManage/supplierManage/supplieritem/supplieritem.data.ts

2
src/components/BasicForm/src/BasicForm.vue

@ -998,7 +998,7 @@ const onBlur = async (field, e) => {
await formSchemaObj.searchPage(params).then((res) => {
let arr1 = e.split(',')
let list = ref([])
list.value = res.list
list.value = res?.list?.length>0 ? res.list.slice(0,1) : []
if (list.value?.length == 0) {
message.alert('暂无数据')
formRef.value.setValues(setV)

28
src/views/wms/basicDataManage/customerManage/customerdock/customerdock.data.ts

@ -52,7 +52,15 @@ export const Customerdock = useCrudSchemas(reactive<CrudSchema[]>([
action: '==',
isSearch: true,
isMainValue: false
}]
}],
verificationParams: [{
key: 'code',
action: '==',
value: '',
isMainValue: false,
isSearch: true,
isFormModel: true,
}], // 失去焦点校验参数
}
}
},
@ -122,6 +130,14 @@ export const Customerdock = useCrudSchemas(reactive<CrudSchema[]>([
searchTitle: '仓库基础信息',
searchAllSchemas: Warehouse.allSchemas,
searchPage: WarehouseApi.getWarehousePage,
verificationParams: [{
key: 'code',
action: '==',
value: '',
isMainValue: false,
isSearch: true,
isFormModel: true,
}], // 失去焦点校验参数
}
}
},
@ -160,7 +176,15 @@ export const Customerdock = useCrudSchemas(reactive<CrudSchema[]>([
isFormModel:true, // filters中添加筛选的数据--取于formModel
required:true, // 前置添加必有,和isFormModel结合使用
}]
}],
verificationParams: [{
key: 'code',
action: '==',
value: '',
isMainValue: false,
isSearch: true,
isFormModel: true,
}], // 失去焦点校验参数
}
}
},

10
src/views/wms/basicDataManage/customerManage/project/project.data.ts

@ -46,7 +46,15 @@ export const Project = useCrudSchemas(reactive<CrudSchema[]>([
key: 'available',
value: 'TRUE',
isMainValue: false
}]
}],
verificationParams: [{
key: 'code',
action: '==',
value: '',
isMainValue: false,
isSearch: true,
isFormModel: true,
}], // 失去焦点校验参数
}
},
},

20
src/views/wms/basicDataManage/customerManage/saleprice/saleprice.data.ts

@ -37,7 +37,15 @@ export const Saleprice = useCrudSchemas(reactive<CrudSchema[]>([
key: 'available',
value: 'TRUE',
isMainValue: false
}]
}],
verificationParams: [{
key: 'code',
action: '==',
value: '',
isMainValue: false,
isSearch: true,
isFormModel: true,
}], // 失去焦点校验参数
}
},
},
@ -68,7 +76,15 @@ export const Saleprice = useCrudSchemas(reactive<CrudSchema[]>([
value: 'customerCode',
message: '请填写客户代码!',
isMainValue: true
}]
}],
verificationParams: [{
key: 'itemCode',
action: '==',
value: '',
isMainValue: false,
isSearch: true,
isFormModel: true,
}], // 失去焦点校验参数
}
},
},

20
src/views/wms/basicDataManage/supplierManage/purchaseprice/purchaseprice.data.ts

@ -36,7 +36,15 @@ export const Purchaseprice = useCrudSchemas(reactive<CrudSchema[]>([
key: 'available',
value: 'TRUE',
isMainValue: false
}]
}],
verificationParams: [{
key: 'code',
action: '==',
value: '',
isMainValue: false,
isSearch: true,
isFormModel: true,
}], // 失去焦点校验参数
}
}
},
@ -67,7 +75,15 @@ export const Purchaseprice = useCrudSchemas(reactive<CrudSchema[]>([
key: 'available',
value: 'TRUE',
isMainValue: false
}]
}],
verificationParams: [{
key: 'itemCode',
action: '==',
value: '',
isMainValue: false,
isSearch: true,
isFormModel: true,
}], // 失去焦点校验参数
}
}
},

20
src/views/wms/basicDataManage/supplierManage/supplieritem/supplieritem.data.ts

@ -44,7 +44,15 @@ export const Supplieritem = useCrudSchemas(reactive<CrudSchema[]>([
key: 'available',
value: 'TRUE',
isMainValue: false
}]
}],
verificationParams: [{
key: 'code',
action: '==',
value: '',
isMainValue: false,
isSearch: true,
isFormModel: true,
}], // 失去焦点校验参数
}
}
},
@ -70,7 +78,15 @@ export const Supplieritem = useCrudSchemas(reactive<CrudSchema[]>([
key: 'available',
value: 'TRUE',
isMainValue: false
}]
}],
verificationParams: [{
key: 'itemCode',
action: '==',
value: '',
isMainValue: false,
isSearch: true,
isFormModel: true,
}], // 失去焦点校验参数
}
}
},

Loading…
Cancel
Save