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(() => { nextTick(() => {
const setV = {} const setV = {}
setV[formField] = val[0][searchField] setV[formField] = val[0][searchField]
if(formField == 'userName'){
setV['userId'] = val[0]['id']
}
formRef.setValues(setV) formRef.setValues(setV)
}) })
} }

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

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

Loading…
Cancel
Save