Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-platform
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
前端-黄佳鑫
jinfa-platform
Commits
74899f33
Commit
74899f33
authored
Jun 24, 2022
by
前端-甘科
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'jinfa-0618' into 'jinfa-0618'
Jinfa 0618 See merge request project/jinfa-platform!151
parents
d9e4e20e
880140bb
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
199 additions
and
212 deletions
+199
-212
add.tsx
...ages/commodity/material/materialPendingAdd/schema/add.tsx
+91
-158
roles.ts
...ges/commodity/material/materialPendingAdd/schema/roles.ts
+108
-54
No files found.
src/pages/commodity/material/materialPendingAdd/schema/add.tsx
View file @
74899f33
This diff is collapsed.
Click to expand it.
src/pages/commodity/material/materialPendingAdd/schema/roles.ts
View file @
74899f33
...
...
@@ -766,61 +766,115 @@ export function getContactPerson() {
const
roleType
=
getAuth
().
memberRoleType
map
.
set
(
RoleEnum
.
Purchaser
,
{
chargeUserId
:
{
title
:
intl
.
formatMessage
({
id
:
'material.sourceList.column.123456789'
,
defaultMessage
:
'负责人'
}),
type
:
"string"
,
enum
:
[],
'x-rules'
:
[
{
required
:
true
,
message
:
'请选择负责人'
chargeName
:
{
title
:
intl
.
formatMessage
({
id
:
'material.chargeName'
,
defaultMessage
:
'负责人'
}),
type
:
'string'
,
'x-component-props'
:
{
addonAfter
:
"{{Requisitioner}}"
,
showSearch
:
true
,
},
]
// display: false,
},
chargeName
:
{
title
:
intl
.
formatMessage
({
id
:
'material.sourceList.column.123456789'
,
defaultMessage
:
'负责人'
}),
type
:
"string"
,
enum
:
[],
display
:
false
,
},
chargeAccount
:
{
title
:
intl
.
formatMessage
({
id
:
'material.sourceList.column.chargeAccount'
,
defaultMessage
:
'负责人账号'
}),
type
:
"string"
,
enum
:
[],
display
:
false
,
},
chargeRoleName
:
{
title
:
intl
.
formatMessage
({
id
:
'material.sourceList.column.chargeRoleName'
,
defaultMessage
:
'负责人所属角色'
}),
type
:
"string"
,
enum
:
[],
display
:
false
,
},
// 占位
occupy
:
{
title
:
''
,
type
:
"object"
,
},
contactMemberName
:
{
title
:
intl
.
formatMessage
({
id
:
'material.123456789'
,
defaultMessage
:
'联系人'
}),
type
:
'string'
,
'x-rules'
:
[
{
required
:
true
,
message
:
'联系人不能为空'
},
{
limitByte
:
true
,
maxByte
:
40
,
}
]
},
// 占位
occupy2
:
{
title
:
''
,
type
:
"object"
,
},
contactMemberPhone
:
{
title
:
intl
.
formatMessage
({
id
:
'material.123456789'
,
defaultMessage
:
'联系人电话'
}),
type
:
'string'
,
'x-rules'
:
[
{
required
:
true
,
message
:
'联系人电话不能为空'
},
{
limitByte
:
true
,
maxByte
:
40
,
}
]
},
'x-rules'
:[
{
required
:
true
,
message
:
intl
.
formatMessage
({
id
:
'material.chargeName.required'
,
defaultMessage
:
'请输入'
})
}]
},
chargeUserId
:
{
title
:
intl
.
formatMessage
({
id
:
'material.chargeUserId'
,
defaultMessage
:
'负责人用户id'
}),
type
:
"string"
,
display
:
false
,
},
chargeAccount
:
{
title
:
intl
.
formatMessage
({
id
:
'material.chargeAccount'
,
defaultMessage
:
'负责人账号'
}),
type
:
"string"
,
display
:
false
,
},
chargeRoleName
:
{
title
:
intl
.
formatMessage
({
id
:
'material.chargeRoleName'
,
defaultMessage
:
'负责人所属角色'
}),
type
:
"string"
,
display
:
false
,
},
// 占位
occupy
:
{
title
:
''
,
type
:
"object"
,
},
contactMemberName
:
{
title
:
intl
.
formatMessage
({
id
:
'material.contactMemberName'
,
defaultMessage
:
'联系人'
}),
type
:
'string'
,
'x-rules'
:
[
{
required
:
true
,
message
:
'联系人不能为空'
},
{
limitByte
:
true
,
maxByte
:
40
,
}
]
},
// 占位
occupy2
:
{
title
:
''
,
type
:
"object"
,
},
contactMemberPhone
:
{
title
:
intl
.
formatMessage
({
id
:
'material.contactMemberPhone'
,
defaultMessage
:
'联系人电话'
}),
type
:
'string'
,
'x-rules'
:
[
{
required
:
true
,
message
:
'联系电话不能为空'
},
{
limitByte
:
true
,
maxByte
:
40
,
}
]
},
// chargeUserId: {
// title: intl.formatMessage({ id: 'material.sourceList.column.123456789', defaultMessage: '负责人' }),
// type: "string",
// enum: [],
// 'x-rules': [
// {
// required: true, message: '请选择负责人'
// },
// ]
// // display: false,
// },
// chargeName: {
// title: intl.formatMessage({ id: 'material.sourceList.column.123456789', defaultMessage: '负责人' }),
// type: "string",
// enum: [],
// display: false,
// },
// chargeAccount: {
// title: intl.formatMessage({ id: 'material.sourceList.column.chargeAccount', defaultMessage: '负责人账号' }),
// type: "string",
// enum: [],
// display: false,
// },
// chargeRoleName: {
// title: intl.formatMessage({ id: 'material.sourceList.column.chargeRoleName', defaultMessage: '负责人所属角色' }),
// type: "string",
// enum: [],
// display: false,
// },
// // 占位
// // occupy: {
// // title: '',
// // type: "object",
// // },
// contactMemberName: {
// title: intl.formatMessage({ id: 'material.123456789', defaultMessage: '联系人' }),
// type: 'string',
// 'x-rules': [
// { required: true, message: '联系人不能为空' },
// { limitByte: true, maxByte: 40, }
// ]
// },
// // 占位
// // occupy2: {
// // title: '',
// // type: "object",
// // },
// contactMemberPhone: {
// title: intl.formatMessage({ id: 'material.123456789', defaultMessage: '联系人电话' }),
// type: 'string',
// 'x-rules': [
// { required: true, message: '联系人电话不能为空' },
// { limitByte: true, maxByte: 40, }
// ]
// },
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment