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
linweijiong
jinfa-platform
Commits
9f4f9f35
Commit
9f4f9f35
authored
Jan 29, 2021
by
GuanHua
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of
http://10.0.0.22:3000/lingxi/lingxi-business-paltform
into dev
parents
bbdd4f64
855eb0bb
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
54 additions
and
45 deletions
+54
-45
index.tsx
...pplication/returnPrSubmit/components/ReturnForm/index.tsx
+2
-0
orderSearchDetail.tsx
src/pages/logistics/components/orderSearchDetail.tsx
+2
-2
orderSearchList.tsx
src/pages/logistics/components/orderSearchList.tsx
+1
-1
toOrderSumitList.tsx
src/pages/logistics/logisticsSubmit/toOrderSumitList.tsx
+24
-22
addForm.tsx
...ages/transaction/inquiryQuote/addInquiryOrder/addForm.tsx
+1
-0
basicInfo.tsx
...ion/inquiryQuote/addInquiryOrder/components/basicInfo.tsx
+4
-3
index.tsx
src/pages/transaction/inquiryQuote/addInquiryOrder/index.tsx
+1
-1
index.tsx
...eOrder/orderCollect/components/payInfoTableCell/index.tsx
+19
-16
No files found.
src/pages/afterService/returnApplication/returnPrSubmit/components/ReturnForm/index.tsx
View file @
9f4f9f35
...
@@ -451,11 +451,13 @@ const ReturnForm: React.FC<BillsFormProps> = ({
...
@@ -451,11 +451,13 @@ const ReturnForm: React.FC<BillsFormProps> = ({
channelName
,
channelName
,
payTime
,
payTime
,
payWayName
,
payWayName
,
id
,
...
payItemRest
...
payItemRest
}
=
item
;
}
=
item
;
return
{
return
{
...
payItemRest
,
...
payItemRest
,
payTime
:
+
new
Date
(
payTime
),
payTime
:
+
new
Date
(
payTime
),
payId
:
id
,
};
};
}),
}),
isNeedReturn
:
1
,
isNeedReturn
:
1
,
...
...
src/pages/logistics/components/orderSearchDetail.tsx
View file @
9f4f9f35
...
@@ -199,7 +199,7 @@ const detailInfo: React.FC<{}> = () => {
...
@@ -199,7 +199,7 @@ const detailInfo: React.FC<{}> = () => {
setid
(
id
)
setid
(
id
)
//待新增 //物流单处理 物流单查询
//待新增 //物流单处理 物流单查询
if
(
pathdetail
===
'orderSubmitSearchList'
||
pathdetail
===
'orderResultSearchList'
)
{
if
(
pathdetail
===
'orderSubmitSearchList'
||
pathdetail
===
'orderResultSearchList'
)
{
PublicApi
.
getLogisticsOrderWaitSubmitGet
({
id
:
id
}).
then
(
res
=>
{
PublicApi
.
getLogisticsOrderWaitSubmitGet
({
id
:
id
,
code
:
history
.
location
.
query
.
code
}).
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
if
(
res
.
code
===
1000
)
{
setdataInfo
(
res
.
data
)
setdataInfo
(
res
.
data
)
let
current
=
0
let
current
=
0
...
@@ -215,7 +215,7 @@ const detailInfo: React.FC<{}> = () => {
...
@@ -215,7 +215,7 @@ const detailInfo: React.FC<{}> = () => {
//待确认物流单
//待确认物流单
if
(
pathdetail
===
'toOrderComfirmList'
||
path
[
path
.
length
-
1
]
===
'option'
)
{
if
(
pathdetail
===
'toOrderComfirmList'
||
path
[
path
.
length
-
1
]
===
'option'
)
{
PublicApi
.
getLogisticsOrderWaitConfirmGet
({
id
:
id
}).
then
(
res
=>
{
PublicApi
.
getLogisticsOrderWaitConfirmGet
({
id
:
id
,
code
:
history
.
location
.
query
.
code
}).
then
(
res
=>
{
setdataInfo
(
res
.
data
)
setdataInfo
(
res
.
data
)
setfreightPrice
(
res
.
data
.
freightPrice
)
setfreightPrice
(
res
.
data
.
freightPrice
)
let
current
=
0
let
current
=
0
...
...
src/pages/logistics/components/orderSearchList.tsx
View file @
9f4f9f35
...
@@ -151,7 +151,7 @@ const orderSearchList: React.FC<listProps> = (props) => {
...
@@ -151,7 +151,7 @@ const orderSearchList: React.FC<listProps> = (props) => {
if
(
props
.
type
===
'1'
)
{
if
(
props
.
type
===
'1'
)
{
history
.
push
(
`/memberCenter/logisticsAbility/logisticsSubmit/orderSubmitSearchList/detail?id=
${
id
}
`
)
history
.
push
(
`/memberCenter/logisticsAbility/logisticsSubmit/orderSubmitSearchList/detail?id=
${
id
}
`
)
}
else
if
(
props
.
type
===
'2'
)
{
}
else
if
(
props
.
type
===
'2'
)
{
history
.
push
(
`/memberCenter/logisticsAbility/logisticsResult/
orderResultSearch
List/detail?id=
${
id
}
`
)
history
.
push
(
`/memberCenter/logisticsAbility/logisticsResult/
toOrderComfirm
List/detail?id=
${
id
}
`
)
}
else
{
}
else
{
history
.
push
(
`/memberCenter/logisticsAbility/logisticsResult/toOrderComfirmList/detail?id=
${
id
}
`
)
history
.
push
(
`/memberCenter/logisticsAbility/logisticsResult/toOrderComfirmList/detail?id=
${
id
}
`
)
}
}
...
...
src/pages/logistics/logisticsSubmit/toOrderSumitList.tsx
View file @
9f4f9f35
...
@@ -26,7 +26,7 @@ import { IFormFilter, IButtonFilter } from 'god/dist/src/standard-table/TableCon
...
@@ -26,7 +26,7 @@ import { IFormFilter, IButtonFilter } from 'god/dist/src/standard-table/TableCon
import
{
PublicApi
}
from
'@/services/api'
import
{
PublicApi
}
from
'@/services/api'
import
style
from
'../components/index.less'
import
style
from
'../components/index.less'
import
statuStyle
from
'../colorTag'
import
statuStyle
from
'../colorTag'
import
{
TimeList
,
outSideStatusList
,
statusList
}
from
'../statusList'
import
{
TimeList
,
outSideStatusList
,
statusList
}
from
'../statusList'
import
moment
from
'moment'
import
moment
from
'moment'
import
{
timeRange
}
from
'@/utils/index'
import
{
timeRange
}
from
'@/utils/index'
import
Index
from
'@/pages'
;
import
Index
from
'@/pages'
;
...
@@ -170,7 +170,7 @@ const OrderList: React.FC<ListProps> = (props) => {
...
@@ -170,7 +170,7 @@ const OrderList: React.FC<ListProps> = (props) => {
key
:
'status'
,
key
:
'status'
,
filters
:
statusList
,
filters
:
statusList
,
filterMultiple
:
false
,
filterMultiple
:
false
,
onFilter
:
(
value
,
record
)
=>
record
.
status
===
value
,
onFilter
:
(
value
,
record
)
=>
record
.
status
===
value
,
render
:
(
text
:
any
,
reconds
:
any
)
=>
{
render
:
(
text
:
any
,
reconds
:
any
)
=>
{
let
component
:
ReactNode
=
null
let
component
:
ReactNode
=
null
if
(
text
==
3
)
{
if
(
text
==
3
)
{
...
@@ -193,27 +193,29 @@ const OrderList: React.FC<ListProps> = (props) => {
...
@@ -193,27 +193,29 @@ const OrderList: React.FC<ListProps> = (props) => {
render
:
(
_
:
any
,
record
:
any
)
=>
{
render
:
(
_
:
any
,
record
:
any
)
=>
{
return
(
return
(
<>
<>
{
record
.
createType
===
1
&&
<>
{
(
record
.
status
===
1
||
record
.
status
===
3
)
&&
<
Button
type=
"link"
onClick=
{
()
=>
toEdit
(
record
.
id
)
}
>
编辑
</
Button
>
{
}
(
record
.
status
===
1
||
record
.
status
===
3
)
&&
<
Button
type=
"link"
onClick=
{
()
=>
toEdit
(
record
.
id
)
}
>
编辑
</
Button
>
}
{
{
record
.
status
===
1
&&
record
.
status
===
1
&&
<>
<>
<
Popconfirm
title=
"确定要删除吗?"
okText=
"是"
cancelText=
"否"
onConfirm=
{
()
=>
handleDelete
(
record
.
id
)
}
>
<
Popconfirm
title=
"确定要删除吗?"
okText=
"是"
cancelText=
"否"
onConfirm=
{
()
=>
handleDelete
(
record
.
id
)
}
>
<
Button
type=
'link'
>
<
Button
type=
'link'
>
删除
删除
</
Button
>
</
Button
>
</
Popconfirm
>
</
Popconfirm
>
<
Popconfirm
title=
"确定要提交吗?"
okText=
"是"
cancelText=
"否"
onConfirm=
{
()
=>
handleSubmit
(
record
.
id
)
}
>
<
Popconfirm
title=
"确定要提交吗?"
okText=
"是"
cancelText=
"否"
onConfirm=
{
()
=>
handleSubmit
(
record
.
id
)
}
>
<
Button
type=
'link'
>
提交
</
Button
>
<
Button
type=
'link'
>
提交
</
Button
>
</
Popconfirm
>
</
Popconfirm
>
</>
}
</>
</>
}
}
</>
</>
)
)
}
}
...
@@ -256,8 +258,8 @@ const OrderList: React.FC<ListProps> = (props) => {
...
@@ -256,8 +258,8 @@ const OrderList: React.FC<ListProps> = (props) => {
})
})
}
}
const
handleSubmit
=
(
id
:
number
)
=>
{
const
handleSubmit
=
(
id
:
number
)
=>
{
PublicApi
.
postLogisticsOrderWaitSubmitSubmit
({
id
:
id
}).
then
(
res
=>
{
PublicApi
.
postLogisticsOrderWaitSubmitSubmit
({
id
:
id
}).
then
(
res
=>
{
ref
.
current
.
reload
()
ref
.
current
.
reload
()
})
})
}
}
...
@@ -322,7 +324,7 @@ const OrderList: React.FC<ListProps> = (props) => {
...
@@ -322,7 +324,7 @@ const OrderList: React.FC<ListProps> = (props) => {
const
controllerBtns
=
<
Row
>
const
controllerBtns
=
<
Row
>
<
Col
span=
{
24
}
>
<
Col
span=
{
24
}
>
<
Space
direction=
"horizontal"
size=
{
16
}
>
<
Space
direction=
"horizontal"
size=
{
16
}
>
<
Button
type=
"primary"
icon=
{
<
PlusOutlined
/>
}
onClick=
{
()
=>
history
.
push
(
`/memberCenter/logisticsAbility/logisticsSubmit/toOrderSumitList/add`
)
}
>
新建
</
Button
>
<
Button
type=
"primary"
icon=
{
<
PlusOutlined
/>
}
onClick=
{
()
=>
history
.
push
(
`/memberCenter/logisticsAbility/logisticsSubmit/toOrderSumitList/add`
)
}
>
新建
</
Button
>
</
Space
>
</
Space
>
</
Col
>
</
Col
>
</
Row
>
</
Row
>
...
@@ -342,7 +344,7 @@ const OrderList: React.FC<ListProps> = (props) => {
...
@@ -342,7 +344,7 @@ const OrderList: React.FC<ListProps> = (props) => {
effects=
{
(
$
,
actions
)
=>
{
effects=
{
(
$
,
actions
)
=>
{
useStateFilterSearchLinkageEffect
(
$
,
actions
,
'logisticsOrderNo'
,
FORM_FILTER_PATH
)
useStateFilterSearchLinkageEffect
(
$
,
actions
,
'logisticsOrderNo'
,
FORM_FILTER_PATH
)
}
}
}
}
expressionScope=
{
{
controllerBtns
}
}
expressionScope=
{
{
controllerBtns
}
}
schema=
{
submitLogisticsOrderSchema
}
schema=
{
submitLogisticsOrderSchema
}
>
>
</
NiceForm
>
</
NiceForm
>
...
...
src/pages/transaction/inquiryQuote/addInquiryOrder/addForm.tsx
View file @
9f4f9f35
...
@@ -133,6 +133,7 @@ const AddQuotes: React.FC<parmas> = (props) => {
...
@@ -133,6 +133,7 @@ const AddQuotes: React.FC<parmas> = (props) => {
currentRef=
{
basicInfoRef
}
currentRef=
{
basicInfoRef
}
getMemberList=
{
getMemberList
}
getMemberList=
{
getMemberList
}
editData=
{
editData
}
editData=
{
editData
}
type=
{
type
}
/>
/>
</
TabPane
>
</
TabPane
>
<
TabPane
tab=
"商品报价"
key=
"2"
forceRender
>
<
TabPane
tab=
"商品报价"
key=
"2"
forceRender
>
...
...
src/pages/transaction/inquiryQuote/addInquiryOrder/components/basicInfo.tsx
View file @
9f4f9f35
...
@@ -19,12 +19,13 @@ const { Search } = Input;
...
@@ -19,12 +19,13 @@ const { Search } = Input;
interface
queryProps
{
interface
queryProps
{
currentRef
?:
any
,
currentRef
?:
any
,
getMemberList
?:
Function
,
getMemberList
?:
Function
,
editData
:
any
editData
:
any
,
type
:
number
,
}
}
const
BasicInfo
:
React
.
FC
<
queryProps
>
=
(
props
)
=>
{
const
BasicInfo
:
React
.
FC
<
queryProps
>
=
(
props
)
=>
{
const
[
basicform
]
=
Form
.
useForm
();
const
[
basicform
]
=
Form
.
useForm
();
const
{
getMemberList
,
currentRef
,
editData
}
=
props
;
const
{
getMemberList
,
currentRef
,
editData
,
type
}
=
props
;
// 会员添加弹窗控制
// 会员添加弹窗控制
const
[
visibleChannelMember
,
setVisibleChannelMember
]
=
useState
(
false
);
const
[
visibleChannelMember
,
setVisibleChannelMember
]
=
useState
(
false
);
const
[
inquiryNo
,
setinquiryNo
]
=
useState
<
any
>
({});
const
[
inquiryNo
,
setinquiryNo
]
=
useState
<
any
>
({});
...
@@ -138,7 +139,7 @@ const BasicInfo: React.FC<queryProps> = (props) => {
...
@@ -138,7 +139,7 @@ const BasicInfo: React.FC<queryProps> = (props) => {
<
Input
/>
<
Input
/>
</
Form
.
Item
>
</
Form
.
Item
>
<
Form
.
Item
label=
'对应询价单号'
name=
'inquiryListNo'
rules=
{
[{
required
:
true
,
message
:
'请选择被询价会员'
}]
}
>
<
Form
.
Item
label=
'对应询价单号'
name=
'inquiryListNo'
rules=
{
[{
required
:
true
,
message
:
'请选择被询价会员'
}]
}
>
<
Search
value=
{
Object
.
keys
(
inquiryNo
).
length
>
0
?
inquiryNo
.
orderNo
:
undefined
}
readOnly
enterButton=
{
<><
LinkOutlined
/>
选择
</>
}
onSearch=
{
()
=>
setVisibleChannelMember
(
true
)
}
/>
<
Search
disabled=
{
type
===
3
}
value=
{
Object
.
keys
(
inquiryNo
).
length
>
0
?
inquiryNo
.
orderNo
:
undefined
}
readOnly
enterButton=
{
<><
LinkOutlined
/>
选择
</>
}
onSearch=
{
()
=>
setVisibleChannelMember
(
true
)
}
/>
{
Object
.
keys
(
inquiryNo
).
length
>
0
&&
<
Button
type=
'link'
onClick=
{
()
=>
window
.
open
(
`/memberCenter/tranactionAbility/inquiryQuote/enquiryOrder/rfq/preview?id=${inquiryNo.orderId}`
)
}
>
查看询价单详情
</
Button
>
}
{
Object
.
keys
(
inquiryNo
).
length
>
0
&&
<
Button
type=
'link'
onClick=
{
()
=>
window
.
open
(
`/memberCenter/tranactionAbility/inquiryQuote/enquiryOrder/rfq/preview?id=${inquiryNo.orderId}`
)
}
>
查看询价单详情
</
Button
>
}
</
Form
.
Item
>
</
Form
.
Item
>
<
Form
.
Item
label=
'报价单号'
name=
'quotationNo'
>
<
Form
.
Item
label=
'报价单号'
name=
'quotationNo'
>
...
...
src/pages/transaction/inquiryQuote/addInquiryOrder/index.tsx
View file @
9f4f9f35
...
@@ -98,7 +98,7 @@ const AddInquiryOrder: React.FC<{}> = () => {
...
@@ -98,7 +98,7 @@ const AddInquiryOrder: React.FC<{}> = () => {
}]
}]
//单个删除
//单个删除
const
handleDelete
=
(
id
:
number
)
=>
{
const
handleDelete
=
(
id
:
number
)
=>
{
PublicApi
.
postOrderProductQuotationDelete
({
id
}).
then
(
res
=>
{
PublicApi
.
postOrderProductQuotationDelete
({
id
}
,
{
ctlType
:
'none'
}
).
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
if
(
res
.
code
===
1000
)
{
message
.
success
(
'删除成功!'
)
message
.
success
(
'删除成功!'
)
ref
.
current
.
reload
();
ref
.
current
.
reload
();
...
...
src/pages/transaction/purchaseOrder/orderCollect/components/payInfoTableCell/index.tsx
View file @
9f4f9f35
...
@@ -49,21 +49,6 @@ export const EditableRow: React.FC<any> = (props) => {
...
@@ -49,21 +49,6 @@ export const EditableRow: React.FC<any> = (props) => {
);
);
};
};
const
validatorNumber
=
(
rule
,
value
,
callback
)
=>
{
try
{
let
n
=
Number
(
value
);
if
(
isNaN
(
n
))
{
throw
new
Error
(
'请正确输入支付比例'
);
}
else
if
(
n
<
0
||
!
Number
.
isInteger
(
n
))
{
throw
new
Error
(
'支付比例为大于0的整数'
);
}
else
{
callback
()
}
}
catch
(
err
)
{
callback
(
err
)
}
}
export
const
PayInfoCell
:
React
.
FC
<
PayInfoCellProps
>
=
({
export
const
PayInfoCell
:
React
.
FC
<
PayInfoCellProps
>
=
({
title
,
title
,
editable
,
editable
,
...
@@ -93,6 +78,24 @@ export const PayInfoCell:React.FC<PayInfoCellProps> = ({
...
@@ -93,6 +78,24 @@ export const PayInfoCell:React.FC<PayInfoCellProps> = ({
}
}
}
}
const
validatorNumber
=
(
rule
,
value
,
callback
)
=>
{
try
{
if
(
formItem
!==
'input'
)
{
callback
()
}
let
n
=
Number
(
value
);
if
(
isNaN
(
n
))
{
throw
new
Error
(
'请正确输入支付比例'
);
}
else
if
(
n
<
0
||
!
Number
.
isInteger
(
n
))
{
throw
new
Error
(
'支付比例为大于0的整数'
);
}
else
{
callback
()
}
}
catch
(
err
)
{
callback
(
err
)
}
}
const
save
=
async
e
=>
{
const
save
=
async
e
=>
{
try
{
try
{
const
values
=
await
form
.
validateFields
();
const
values
=
await
form
.
validateFields
();
...
@@ -159,7 +162,7 @@ export const PayInfoCell:React.FC<PayInfoCellProps> = ({
...
@@ -159,7 +162,7 @@ export const PayInfoCell:React.FC<PayInfoCellProps> = ({
message
:
`${title}必须填写`
,
message
:
`${title}必须填写`
,
},
},
// 支付比例大于0
// 支付比例大于0
formItem
===
'input'
&&
{
{
validator
:
validatorNumber
validator
:
validatorNumber
}
}
]
}
]
}
...
...
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