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
shenshaokai
jinfa-platform
Commits
6f57af4f
Commit
6f57af4f
authored
Jan 03, 2023
by
shenshaokai
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fix-20221102' into 'jinfa-20221102'
fix: bugID=37230 供应商导入-兼容适用区域字段没有填值问题 See merge request project/jinfa-platform!497
parents
7afbf640
54c39020
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
2 deletions
+11
-2
index.tsx
src/pages/balance/settleRules/receipt/index.tsx
+1
-1
index.tsx
src/pages/member/components/MemberDocCategoryPro/index.tsx
+10
-1
No files found.
src/pages/balance/settleRules/receipt/index.tsx
View file @
6f57af4f
...
...
@@ -238,7 +238,7 @@ const Receipt: React.ForwardRefRenderFunction<RefHandle, IProps> = (props, ref)
return
item
;
})
}
return
list
return
list
.
slice
()
}
const
invoiceModalConfirm
=
(
value
)
=>
{
...
...
src/pages/member/components/MemberDocCategoryPro/index.tsx
View file @
6f57af4f
...
...
@@ -443,7 +443,7 @@ const MemberDocCategoryPro: React.ForwardRefRenderFunction<MemberDocCategoryProR
const handleSubmit = (values: FormSubmitValueType) => {
if (onSubmit) {
const { maxAmount, categories, bankInfos, ...rest } = values;
const { maxAmount, categories, bankInfos,
areaCodes,
...rest } = values;
let ret = true
bankInfos.map(val => {
if (!val.countryCode) {
...
...
@@ -472,10 +472,19 @@ const MemberDocCategoryPro: React.ForwardRefRenderFunction<MemberDocCategoryProR
businessCategoryId: item.id ?? Date.now()
};
});
let areaCode = areaCodes
// 由于 适用区域字段 areaCodes 改成非必填了 兼容一下 可能传递数组里面空对象的情况
if (Array.isArray(areaCodes)) {
areaCode = areaCode.filter(item => Object.keys(item).length);
areaCode = areaCode.length ? areaCode : null
}
const res = onSubmit({
maxAmount: isNaN(+maxAmount) ? 0 : +maxAmount,
categories: formated,
memberBankInfos: bankInfos.map(item => ({ ...item, bankId: item.id ?? Date.now() })),
areaCodes: areaCode,
...rest,
});
if (res instanceof Promise) {
...
...
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