Browse Source

SCP供应商用户关联管理,调整关联字段

master_hella_20240701
TengXF 5 months ago
parent
commit
17df25887b
  1. 3
      src/views/wms/basicDataManage/systemSetting/supplierUser/index.vue
  2. 42
      src/views/wms/basicDataManage/systemSetting/supplierUser/supplierUser.data.ts

3
src/views/wms/basicDataManage/systemSetting/supplierUser/index.vue

@ -184,6 +184,9 @@ const searchTableSuccess = (formField, searchField, val, formRef) => {
nextTick(() => {
const setV = {}
setV[formField] = val[0][searchField]
if(formField == 'userName'){
setV['userId'] = val[0]['id']
}
formRef.setValues(setV)
})
}

42
src/views/wms/basicDataManage/systemSetting/supplierUser/supplierUser.data.ts

@ -15,7 +15,7 @@ export const User = useCrudSchemas(reactive<CrudSchema[]>([
},
{
label: '用户名称',
field: 'username',
field: 'userName',
sort: 'custom',
table: {
width: 150
@ -58,7 +58,8 @@ export const User = useCrudSchemas(reactive<CrudSchema[]>([
// 表单校验
export const SupplierUserRules = reactive({
userId: [required],
// userId: [required],
userName: [required],
supplierCode: [required],
status: [required],
concurrencyStamp: [required],
@ -75,11 +76,37 @@ export const SupplierUser = useCrudSchemas(reactive<CrudSchema[]>([
label: '用户ID',
field: 'userId',
sort: 'custom',
isForm: false,
isSearch: true,
// tableForm:{
// isInpuFocusShow: true,
// searchListPlaceholder: '请选用户信息',
// searchField: 'username',
// searchTitle: '用户信息',
// searchAllSchemas: User.allSchemas,
// searchPage: UserApi.getUserPage
// },
// form: {
// // labelMessage: '信息提示说明!!!',
// componentProps: {
// dialogWidth:'1025px',//搜索出来弹窗的宽度
// isSearchList: true,
// searchListPlaceholder: '请选用户信息',
// searchField: 'username',
// searchTitle: '用户信息',
// searchAllSchemas: User.allSchemas,
// searchPage: UserApi.getUserPage
// }
// }
},
{
label: '用户账号',
field: 'userName',
sort: 'custom',
tableForm:{
isInpuFocusShow: true,
searchListPlaceholder: '请选用户信息',
searchField: 'id',
searchField: 'username',
searchTitle: '用户信息',
searchAllSchemas: User.allSchemas,
searchPage: UserApi.getUserPage
@ -90,18 +117,13 @@ export const SupplierUser = useCrudSchemas(reactive<CrudSchema[]>([
dialogWidth:'1025px',//搜索出来弹窗的宽度
isSearchList: true,
searchListPlaceholder: '请选用户信息',
searchField: 'id',
searchField: 'username',
searchTitle: '用户信息',
searchAllSchemas: User.allSchemas,
searchPage: UserApi.getUserPage
}
}
},
{
label: '用户账号',
field: 'userName',
sort: 'custom',
isForm: false,
isSearch: true,
},
{
label: '用户昵称',

Loading…
Cancel
Save