Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
merchant-manage-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
ui
merchant-manage-ui
Commits
4a26098d
Commit
4a26098d
authored
Jul 03, 2024
by
guang.wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改最多选中条数
parent
9324cacf
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
5 deletions
+6
-5
.sentryclirc.js
.sentryclirc.js
+1
-1
data.js
src/pages/SettlementSheet/data.js
+2
-2
index.jsx
src/pages/SettlementSheet/index.jsx
+3
-2
No files found.
.sentryclirc.js
View file @
4a26098d
...
...
@@ -4,7 +4,7 @@ const project = pkgInfo.name;
module
.
exports
=
{
org
:
'
sentry
'
,
project
,
authToken
:
'
3f1f6f3789594e3a81280c1cd8d4d1008037a7abad714698b60b6f358c3d7562
'
,
authToken
:
'
fae70cc211b940eb9420265fb6529adab88e49377cc5466797d27f0f8b400ce0
'
,
url
:
'
http://newsentry.quantgroups.com
'
,
release
:
`
${
project
}
@1.0.0`
,
ignore
:
[
'
node_modules
'
,
'
tests
'
],
...
...
src/pages/SettlementSheet/data.js
View file @
4a26098d
...
...
@@ -5,8 +5,8 @@ export const dateStateEnum = {
1
:
{
text
:
'
周结
'
,
maxlength
:
8
},
2
:
{
text
:
'
半月结
'
,
maxlength
:
4
},
3
:
{
text
:
'
月结
'
,
maxlength
:
2
},
4
:
{
text
:
'
日结
'
,
maxlength
:
1
0
},
5
:
{
text
:
'
半日结
'
,
maxlength
:
1
0
},
4
:
{
text
:
'
日结
'
,
maxlength
:
2
0
},
5
:
{
text
:
'
半日结
'
,
maxlength
:
2
0
},
};
export
const
orderStateNum
=
{
...
...
src/pages/SettlementSheet/index.jsx
View file @
4a26098d
...
...
@@ -36,17 +36,18 @@ const SettlementSheet = props => {
};
// 检查帐期类型的最多下载条数
const
checkedBillType
=
data
=>
{
console
.
log
(
'
data :>>
'
,
data
);
if
(
!
data
.
length
)
{
notification
.
error
({
message
:
'
请选择数据
'
});
return
false
;
}
const
billPeriodType
=
data
[
0
]?.
billPeriodType
;
const
billPeriodData
=
dateStateEnum
[
billPeriodType
];
if
(
data
.
length
<=
billPeriodData
.
maxlength
)
{
if
(
data
.
length
<=
billPeriodData
?
.
maxlength
)
{
return
true
;
}
notification
.
error
({
message
:
`
${
billPeriodData
.
text
}
帐期最多可选
${
billPeriodData
.
maxlength
}
条`
,
message
:
`
${
billPeriodData
.
text
}
帐期最多可选
${
billPeriodData
?.
maxlength
||
0
}
条
`,
});
return false;
};
...
...
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