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
eb944260
Commit
eb944260
authored
Dec 03, 2021
by
XieZhiXiong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: 修改提示与及其判断
parent
99d5e0e0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
index.tsx
.../afterService/exchangeManage/exchangeValetApply/index.tsx
+4
-4
index.tsx
...ages/afterService/returnManage/returnValetApply/index.tsx
+5
-5
No files found.
src/pages/afterService/exchangeManage/exchangeValetApply/index.tsx
View file @
eb944260
...
@@ -305,7 +305,7 @@ const ExchangeValetApply: React.FC<BillsFormProps> = () => {
...
@@ -305,7 +305,7 @@ const ExchangeValetApply: React.FC<BillsFormProps> = () => {
buyerMemberId
:
current
.
memberId
,
buyerMemberId
:
current
.
memberId
,
buyerRoleId
:
current
.
roleId
,
buyerRoleId
:
current
.
roleId
,
orderType
:
orderTypeValue
,
orderType
:
orderTypeValue
,
afterSalesType
:
2
,
//
退
货
afterSalesType
:
2
,
//
换
货
orderNo
:
detailInfo
.
orderNo
?
detailInfo
.
orderNo
:
params
.
orderNo
||
undefined
,
orderNo
:
detailInfo
.
orderNo
?
detailInfo
.
orderNo
:
params
.
orderNo
||
undefined
,
}).
then
(
res
=>
{
}).
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
if
(
res
.
code
===
1000
)
{
...
@@ -319,11 +319,11 @@ const ExchangeValetApply: React.FC<BillsFormProps> = () => {
...
@@ -319,11 +319,11 @@ const ExchangeValetApply: React.FC<BillsFormProps> = () => {
};
};
const
handleAddGoods
=
()
=>
{
const
handleAddGoods
=
()
=>
{
const
supplierMemberVal
=
addSchemaAction
.
getFieldValue
(
'supplierMemb
er'
);
const
purchaserVal
=
addSchemaAction
.
getFieldValue
(
'purchas
er'
);
const
orderTypeVal
=
addSchemaAction
.
getFieldValue
(
'orderType'
);
const
orderTypeVal
=
addSchemaAction
.
getFieldValue
(
'orderType'
);
if
(
!
supplierMemberVal
||
!
supplierMemberVal
.
length
)
{
if
(
!
purchaserVal
)
{
message
.
error
(
'请先选择
供应
会员'
);
message
.
error
(
'请先选择
采购
会员'
);
return
;
return
;
}
}
if
(
!
orderTypeVal
)
{
if
(
!
orderTypeVal
)
{
...
...
src/pages/afterService/returnManage/returnValetApply/index.tsx
View file @
eb944260
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Author: XieZhiXiong
* @Date: 2021-12-02 19:00:25
* @Date: 2021-12-02 19:00:25
* @LastEditors: XieZhiXiong
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-12-0
2 20:08:48
* @LastEditTime: 2021-12-0
3 10:20:56
* @Description: 代客退货申请
* @Description: 代客退货申请
*/
*/
import
React
,
{
useState
,
useMemo
}
from
'react'
;
import
React
,
{
useState
,
useMemo
}
from
'react'
;
...
@@ -312,7 +312,7 @@ const ReturnValetApply: React.FC<BillsFormProps> = () => {
...
@@ -312,7 +312,7 @@ const ReturnValetApply: React.FC<BillsFormProps> = () => {
buyerMemberId
:
current
.
memberId
,
buyerMemberId
:
current
.
memberId
,
buyerRoleId
:
current
.
roleId
,
buyerRoleId
:
current
.
roleId
,
orderType
:
orderTypeValue
,
orderType
:
orderTypeValue
,
afterSalesType
:
2
,
// 退货
afterSalesType
:
3
,
// 退货
orderNo
:
detailInfo
.
orderNo
?
detailInfo
.
orderNo
:
params
.
orderNo
||
undefined
,
orderNo
:
detailInfo
.
orderNo
?
detailInfo
.
orderNo
:
params
.
orderNo
||
undefined
,
}).
then
(
res
=>
{
}).
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
if
(
res
.
code
===
1000
)
{
...
@@ -326,11 +326,11 @@ const ReturnValetApply: React.FC<BillsFormProps> = () => {
...
@@ -326,11 +326,11 @@ const ReturnValetApply: React.FC<BillsFormProps> = () => {
};
};
const
handleAddGoods
=
()
=>
{
const
handleAddGoods
=
()
=>
{
const
supplierMemberVal
=
addSchemaAction
.
getFieldValue
(
'supplierMemb
er'
);
const
purchaserVal
=
addSchemaAction
.
getFieldValue
(
'purchas
er'
);
const
orderTypeVal
=
addSchemaAction
.
getFieldValue
(
'orderType'
);
const
orderTypeVal
=
addSchemaAction
.
getFieldValue
(
'orderType'
);
if
(
!
supplierMemberVal
||
!
supplierMemberVal
.
length
)
{
if
(
!
purchaserVal
)
{
message
.
error
(
'请先选择
供应
会员'
);
message
.
error
(
'请先选择
采购
会员'
);
return
;
return
;
}
}
if
(
!
orderTypeVal
)
{
if
(
!
orderTypeVal
)
{
...
...
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