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
305d6897
Commit
305d6897
authored
Dec 28, 2020
by
前端-黄佳鑫
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改支付策略, 修改新增待提交物流单BUG
parent
75a9a23e
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
100 additions
and
92 deletions
+100
-92
index.ts
src/components/ModalTable/schema/index.ts
+0
-1
index.tsx
src/pages/logistics/addLogistics/index.tsx
+12
-4
orderSearchDetail.tsx
src/pages/logistics/components/orderSearchDetail.tsx
+1
-0
orderSearchList.tsx
src/pages/logistics/components/orderSearchList.tsx
+2
-8
toOrderSumitList.tsx
src/pages/logistics/logisticsSubmit/toOrderSumitList.tsx
+2
-2
payWayTable.tsx
src/pages/payandSettle/paySetting/components/payWayTable.tsx
+19
-7
setUpModal.tsx
src/pages/payandSettle/paySetting/components/setUpModal.tsx
+20
-7
index.tsx
src/pages/payandSettle/paySetting/index.tsx
+11
-57
addForm.tsx
src/pages/transaction/goodsOffer/addEnquiryOrder/addForm.tsx
+2
-1
enquiryGoods.tsx
...on/goodsOffer/addEnquiryOrder/components/enquiryGoods.tsx
+1
-0
attached.tsx
...tion/inquiryQuote/addInquiryOrder/components/attached.tsx
+0
-1
details.tsx
src/pages/transaction/inquiryQuote/components/details.tsx
+30
-4
No files found.
src/components/ModalTable/schema/index.ts
View file @
305d6897
...
...
@@ -712,7 +712,6 @@ export const logisticsSelectGoodsSearchSchema: ISchema = {
},
category
:
{
type
:
'string'
,
"x-component"
:
'SearchSelect'
,
'x-component-props'
:
{
placeholder
:
'商品品类'
,
style
:
{
...
...
src/pages/logistics/addLogistics/index.tsx
View file @
305d6897
...
...
@@ -236,6 +236,8 @@ const AddLogistics: React.FC<{}> = () => {
receiverMemberId
:
res
.
data
.
receiveMemberId
,
receiverRoleId
:
res
.
data
.
receiveRoleId
,
receiverMemberName
:
res
.
data
.
receiveUserName
,
shipmentOrderCode
:
res
.
data
.
deliveryNo
,
shipmentOrderId
:
res
.
data
.
deliveryId
,
}
form
.
setFieldsValue
(
obj
);
setQuery
({
...
obj
})
...
...
@@ -257,6 +259,8 @@ const AddLogistics: React.FC<{}> = () => {
receiverMemberId
:
res
.
data
.
receiveMemberId
,
receiverRoleId
:
res
.
data
.
receiveRoleId
,
receiverMemberName
:
res
.
data
.
receiveUserName
,
shipmentOrderCode
:
res
.
data
.
deliveryNo
,
shipmentOrderId
:
res
.
data
.
deliveryId
,
}
form
.
setFieldsValue
(
obj
);
setQuery
({
...
obj
})
...
...
@@ -278,6 +282,8 @@ const AddLogistics: React.FC<{}> = () => {
receiverMemberId
:
res
.
data
.
receiveMemberId
,
receiverRoleId
:
res
.
data
.
receiveRoleId
,
receiverMemberName
:
res
.
data
.
receiveUserName
,
shipmentOrderCode
:
res
.
data
.
deliveryNo
,
shipmentOrderId
:
res
.
data
.
deliveryId
,
}
form
.
setFieldsValue
(
obj
);
setQuery
({
...
obj
})
...
...
@@ -311,7 +317,9 @@ const AddLogistics: React.FC<{}> = () => {
externalState
:
res
.
data
.
status
,
shipperAddressId
:
res
.
data
.
shipperAddressId
,
shipperFullAddress
:
res
.
data
.
shipperFullAddress
,
logisticsOrderLogList
:
res
.
data
.
logisticsOrderLogList
logisticsOrderLogList
:
res
.
data
.
logisticsOrderLogList
,
settlementWay
:
res
.
data
.
settlementWay
,
freightPrice
:
res
.
data
.
freightPrice
}
form
.
setFieldsValue
(
obj
)
const
list
=
[...
res
.
data
.
detailList
];
...
...
@@ -406,7 +414,7 @@ const AddLogistics: React.FC<{}> = () => {
const
arr
:
any
[]
=
[]
selectRow
.
forEach
((
item
:
any
)
=>
{
arr
.
push
({
productId
:
item
.
id
,
productId
:
item
.
id
?
item
.
id
:
item
.
productId
,
productName
:
item
.
productName
,
categoryName
:
item
.
category
?
item
.
category
:
item
.
categoryName
,
brandName
:
item
.
brand
?
item
.
brand
:
item
.
brandName
,
...
...
@@ -698,7 +706,7 @@ const AddLogistics: React.FC<{}> = () => {
}
</
Select
>
</
Form
.
Item
>
<
Form
.
Item
label=
"物流单号"
name=
'receiverName1'
><
span
></
span
></
Form
.
Item
>
<
Form
.
Item
label=
"物流单号"
name=
'receiverName1'
><
span
>
{
query
.
logisticsOrderNo
}
</
span
></
Form
.
Item
>
<
Form
.
Item
label=
'对应发货单号'
name=
'shipmentOrderCode'
>
<
Search
disabled=
{
!!
history
.
location
.
query
.
createType
}
readOnly
value=
{
Object
.
keys
(
query
).
length
>
0
?
query
.
shipmentOrderCode
:
undefined
}
enterButton=
{
<><
LinkOutlined
/>
选择
</>
}
onSearch=
{
()
=>
setshippingvisible
(
true
)
}
/>
{
query
.
shipmentOrderCode
&&
<
Button
type=
'link'
...
...
@@ -748,7 +756,7 @@ const AddLogistics: React.FC<{}> = () => {
<
TabPane
key=
'tab-3'
tab=
'运费'
forceRender
>
<
Form
{
...
layout
}
>
<
Form
.
Item
label=
'运费'
>
<
span
></
span
>
<
span
>
{
query
.
freightPrice
}
</
span
>
</
Form
.
Item
>
<
Form
.
Item
label=
'结算方式'
>
<
span
>
{
query
.
settlementWay
}
</
span
>
...
...
src/pages/logistics/components/orderSearchDetail.tsx
View file @
305d6897
...
...
@@ -423,6 +423,7 @@ const detailInfo: React.FC<{}> = () => {
<
Input
addonBefore=
"¥"
onBlur=
{
inputOnchange
}
value=
{
item
.
value
}
type=
'number'
maxLength=
{
25
}
style=
{
{
width
:
'300px'
}
}
...
...
src/pages/logistics/components/orderSearchList.tsx
View file @
305d6897
...
...
@@ -147,12 +147,6 @@ const orderSearchList: React.FC<listProps> = (props) => {
}
},
[])
useEffect
(()
=>
{
ref
.
current
.
reload
()
return
()
=>
{
}
},
[
TimeRange
])
const
handleSee
=
(
id
:
number
)
=>
{
if
(
props
.
type
===
'1'
)
{
history
.
push
(
`/memberCenter/logisticsAbility/logisticsSubmit/orderSubmitSearchList/detail?id=
${
id
}
`
)
...
...
@@ -181,8 +175,8 @@ const orderSearchList: React.FC<listProps> = (props) => {
{
title
:
props
.
type
==
'1'
?
'物流服务商'
:
'发货方'
,
align
:
'center'
,
dataIndex
:
props
.
type
==
'1'
?
'companyName'
:
'shipperName'
,
key
:
props
.
type
==
'1'
?
'companyName'
:
'shipperName'
,
dataIndex
:
props
.
type
==
'1'
?
'companyName'
:
'shipper
Member
Name'
,
key
:
props
.
type
==
'1'
?
'companyName'
:
'shipper
Member
Name'
,
// className: props.type == '1' ? '' : style['hidden']
},
...
...
src/pages/logistics/logisticsSubmit/toOrderSumitList.tsx
View file @
305d6897
...
...
@@ -135,8 +135,8 @@ const OrderList: React.FC<ListProps> = (props) => {
{
title
:
'收货方'
,
align
:
'center'
,
dataIndex
:
'receiverName'
,
key
:
'receiverName'
,
dataIndex
:
'receiver
Member
Name'
,
key
:
'receiver
Member
Name'
,
},
{
title
:
'总箱数'
,
...
...
src/pages/payandSettle/paySetting/components/payWayTable.tsx
View file @
305d6897
...
...
@@ -18,7 +18,7 @@ interface payWayTableParams {
const
PayWayTable
:
React
.
FC
<
payWayTableParams
>
=
(
props
)
=>
{
const
[
modalvisible
,
setmodalvisible
]
=
useState
<
boolean
>
(
false
);
const
[
type
,
setType
]
=
useState
<
number
>
(
1
);
// 1.
const
[
type
,
setType
]
=
useState
<
number
>
();
// 1.
const
[
edit
,
setedit
]
=
useState
<
any
>
({});
const
[
modifyIndex
,
setModifyIndex
]
=
useState
<
any
>
(
0
)
const
[
modify
,
setmodify
]
=
useState
<
boolean
>
(
false
);
...
...
@@ -44,17 +44,29 @@ const PayWayTable: React.FC<payWayTableParams> = (props) => {
key
:
'options'
,
dataIndex
:
'options'
,
render
:
(
text
:
any
,
record
:
any
,
index
:
number
)
=>
<>
<
Button
type=
'link'
onClick=
{
()
=>
{
setedit
(
record
);
setmodalvisible
(
true
);
setModifyIndex
(
index
);
setmodify
(
true
)
}
}
>
编辑
</
Button
>
<
Button
type=
'link'
onClick=
{
()
=>
{
setedit
(
record
);
setmodalvisible
(
true
);
setModifyIndex
(
index
);
setmodify
(
true
)
}
}
>
编辑
</
Button
>
<
Button
type=
'link'
onClick=
{
()
=>
onDel
(
record
.
type
,
index
)
}
>
删除
</
Button
>
</>
}
]
const
handleOk
=
(
value
:
any
,
idx
:
number
)
=>
{
if
(
!
modify
)
{
onGet
(
value
,
idx
)
let
idType
=
null
;
switch
(
type
)
{
case
1
:
idType
=
1
break
;
case
2
:
idType
=
3
break
;
case
3
:
idType
=
2
break
;
}
if
(
!
modify
)
{
onGet
(
value
,
idType
)
}
else
{
onEdit
(
value
,
id
x
,
modifyIndex
)
onEdit
(
value
,
id
Type
,
modifyIndex
)
}
setmodalvisible
(
false
);
...
...
@@ -73,7 +85,7 @@ const PayWayTable: React.FC<payWayTableParams> = (props) => {
rowKey=
{
(
record
:
any
,
index
:
number
)
=>
index
}
pagination=
{
false
}
/>
<
Button
style=
{
{
marginBottom
:
16
,
marginTop
:
24
}
}
block
icon=
{
<
PlusOutlined
/>
}
onClick=
{
()
=>
{
setmodalvisible
(
true
);
setType
(
1
);
setmodify
(
false
)
}
}
type=
'dashed'
>
新增参数配置
</
Button
>
<
Button
style=
{
{
marginBottom
:
16
,
marginTop
:
24
}
}
block
icon=
{
<
PlusOutlined
/>
}
onClick=
{
()
=>
{
setmodalvisible
(
true
);
setType
(
id
);
setmodify
(
false
)
}
}
type=
'dashed'
>
新增参数配置
</
Button
>
{
id
!==
2
&&
...
...
@@ -85,7 +97,7 @@ const PayWayTable: React.FC<payWayTableParams> = (props) => {
rowKey=
{
(
record
:
any
,
index
:
number
)
=>
index
}
pagination=
{
false
}
/>
<
Button
style=
{
{
marginBottom
:
16
,
marginTop
:
24
}
}
block
icon=
{
<
PlusOutlined
/>
}
onClick=
{
()
=>
{
setmodalvisible
(
true
);
setType
(
2
);
setmodify
(
false
)
}
}
type=
'dashed'
>
新增参数配置
</
Button
>
<
Button
style=
{
{
marginBottom
:
16
,
marginTop
:
24
}
}
block
icon=
{
<
PlusOutlined
/>
}
onClick=
{
()
=>
{
setmodalvisible
(
true
);
setType
(
3
);
setmodify
(
false
)
}
}
type=
'dashed'
>
新增参数配置
</
Button
>
</>
}
...
...
src/pages/payandSettle/paySetting/components/setUpModal.tsx
View file @
305d6897
import
React
,
{
useEffect
,
useState
}
from
'react'
;
import
{
Modal
,
Form
,
Select
,
Input
}
from
'antd'
;
import
{
Modal
,
Form
,
Select
,
Input
}
from
'antd'
;
import
usePayTypeEnum
from
'./usePayTypeEnum'
;
const
{
Option
}
=
Select
;
const
{
TextArea
}
=
Input
;
...
...
@@ -17,20 +17,33 @@ const layout: any = {
labelCol
:
{
style
:
{
width
:
'100px'
}
},
labelAlign
:
"left"
};
const
SetUpModal
:
React
.
FC
<
setUpModalParams
>
=
(
props
)
=>
{
const
SetUpModal
:
React
.
FC
<
setUpModalParams
>
=
(
props
)
=>
{
const
[
form
]
=
Form
.
useForm
();
const
{
payTypeEnum
}
=
usePayTypeEnum
();
const
{
modalvisible
,
onOK
,
onCancel
,
onType
,
edit
}
=
props
;
const
{
modalvisible
,
onOK
,
onCancel
,
type
,
edit
}
=
props
;
const
[
option
,
setOption
]
=
useState
<
any
>
({})
const
handleOk
=
()
=>
{
form
.
validateFields
().
then
(
res
=>
{
console
.
log
(
type
)
let
idType
=
null
;
switch
(
type
)
{
case
1
:
idType
=
1
break
;
case
2
:
idType
=
3
break
;
case
3
:
idType
=
2
break
;
}
const
obj
=
{
id
:
edit
.
id
?
edit
.
id
:
undefined
,
code
:
option
.
children
,
value
:
res
.
value
,
describe
:
res
.
describe
,
type
:
on
Type
,
type
:
id
Type
,
payWayCodeTypeEnum
:
res
.
code
}
onOK
(
obj
)
...
...
@@ -40,12 +53,12 @@ const SetUpModal:React.FC<setUpModalParams> = (props) => {
})
}
const
handleChange
=
(
e
:
any
,
option
:
any
)
=>
{
const
handleChange
=
(
e
:
any
,
option
:
any
)
=>
{
setOption
(
option
)
}
useEffect
(()
=>
{
if
(
Object
.
keys
(
edit
).
length
>
0
)
{
if
(
Object
.
keys
(
edit
).
length
>
0
)
{
console
.
log
(
edit
,
10086
)
form
.
setFieldsValue
({
code
:
edit
.
payWayCodeTypeEnum
,
...
...
@@ -53,7 +66,7 @@ const SetUpModal:React.FC<setUpModalParams> = (props) => {
describe
:
edit
.
edit
})
}
},[
edit
])
},
[
edit
])
return
(
<
Modal
...
...
src/pages/payandSettle/paySetting/index.tsx
View file @
305d6897
...
...
@@ -29,42 +29,6 @@ const PayWaySetTemplate: React.FC<{}> = () => {
})
}
// const initPayWayStart = (id: any) => {
// return new Promise(resolve => {
// PublicApi.getPayMemberQueryPlatformIsStart({ id }).then(res => {
// if (res.code === 1000) {
// if (res.data) {
// resolve(res)
// }
// }
// })
// }).then((res: any) => {
// const data = [...payItem];
// if (data.length > 0) {
// data.forEach((item: any) => {
// if (item.id === res.data.id) {
// item.id = res.data.id;
// item.isPitchOn = res.data.isPitchOn;
// item.payParametersList = res.data.payParametersList;
// item.payParametersAddListRequests = res.data.payParametersListResponses;
// item.payType = res.data.payType;
// item.way = res.data.way;
// }
// })
// setPayItem([...data])
// }
// })
// }
// const handleTabClick = (key: any) => {
// if (!step.includes(Number(key))) {
// initPayWayStart(key);
// }
// const data = [...step, Number(key)];
// let arr = [...new Set(data)]
// setStep(arr);
// }
useEffect
(()
=>
{
// 支付配置信息
payWayConfigInfo
().
then
((
res
:
any
)
=>
{
...
...
@@ -80,25 +44,8 @@ const PayWaySetTemplate: React.FC<{}> = () => {
payParametersAddListRequests
:
item
.
payParametersListResponses
?
item
.
payParametersListResponses
:
[]
})
})
// setStep([...step, id])
setconfig
([...
res
]);
// /**第一次运行 */
// PublicApi.getPayMemberQueryPlatformIsStart({ id }).then(res => {
// arr.forEach((item: any, index: number) => {
// if (res.data) {
// if (item.id === id) {
// item.id = res.data.id;
// item.isPitchOn = res.data.isPitchOn;
// item.payParametersList = res.data.payParametersList;
// item.payParametersAddListRequests = res.data.payParametersListResponses;
// item.payType = res.data.payType;
// item.way = res.data.way;
// }
// }
// })
// console.log(arr)
setPayItem
([...
arr
]);
// })
})
},
[])
...
...
@@ -109,11 +56,12 @@ const PayWaySetTemplate: React.FC<{}> = () => {
}
const
onGet
=
(
value
:
any
,
type
:
number
,
idx
:
number
)
=>
{
console
.
log
(
value
,
type
)
const
data
=
[...
payItem
];
if
(
type
===
1
)
{
data
[
idx
].
payParametersAddListRequests
=
[...
data
[
idx
].
payParametersAddListRequests
,
value
]
}
else
{
if
(
type
===
2
)
{
data
[
idx
].
payParametersList
.
push
(
value
)
}
else
{
data
[
idx
].
payParametersAddListRequests
=
[...
data
[
idx
].
payParametersAddListRequests
,
value
]
}
setPayItem
(
data
);
}
...
...
@@ -160,17 +108,23 @@ const PayWaySetTemplate: React.FC<{}> = () => {
/** */
const
handleBlur
=
(
e
,
name
,
idx
)
=>
{
const
data
=
[...
payItem
]
;
const
data
=
[...
payItem
]
const
payParametersAddListRequests
=
data
[
idx
].
payParametersAddListRequests
;
if
(
payParametersAddListRequests
.
length
===
0
)
{
payParametersAddListRequests
.
push
({
code
:
''
,
value
:
''
,
describe
:
''
})
}
payParametersAddListRequests
.
map
(
item
=>
{
for
(
let
key
in
item
)
{
if
(
key
===
name
)
{
item
[
key
]
=
e
.
target
.
value
}
else
{
item
[
name
]
=
e
.
target
.
value
}
}
item
.
type
=
6
;
})
data
[
idx
].
payParametersAddListRequests
=
[...
payParametersAddListRequests
]
console
.
log
(
payParametersAddListRequests
,
10086
)
setPayItem
(
data
)
}
return
(
...
...
src/pages/transaction/goodsOffer/addEnquiryOrder/addForm.tsx
View file @
305d6897
...
...
@@ -31,6 +31,7 @@ const AddQuotes: React.FC<parmas> = (props) => {
await
PublicApi
.
getOrderInquiryListDetails
({
id
}).
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
setgoodsList
(
res
.
data
.
inquiryListProductRequests
);
setenclosureUrls
(
res
.
data
.
enclosureUrls
)
setEditData
(
res
.
data
)
setmember
({
name
:
res
.
data
.
memberName
,
...
...
@@ -138,7 +139,7 @@ const AddQuotes: React.FC<parmas> = (props) => {
}
// 附件回调
const
handleGetEnclosureUrls
=
(
data
:
any
)
=>
{
setenclosureUrls
(
[...
enclosureUrls
,
...
data
]
);
setenclosureUrls
(
data
);
}
return
(
...
...
src/pages/transaction/goodsOffer/addEnquiryOrder/components/enquiryGoods.tsx
View file @
305d6897
...
...
@@ -175,6 +175,7 @@ const EnquiryGoods: React.FC<queryProps> = (props) => {
memberRowCtl
.
setSelectRow
(
selectData
)
memberRowCtl
.
setSelectedRowKeys
(
selectData
.
map
(
v
=>
v
.
id
))
setgoodsList
(
newData
)
getGoodsList
(
newData
)
}
// 编辑时回显的数据
...
...
src/pages/transaction/inquiryQuote/addInquiryOrder/components/attached.tsx
View file @
305d6897
...
...
@@ -57,7 +57,6 @@ const Attached: React.FC<parmas> = (props) => {
}
},
[
editData
])
console
.
log
(
files
,
10086
)
return
(
<
Form
{
...
layout
}
...
...
src/pages/transaction/inquiryQuote/components/details.tsx
View file @
305d6897
import
React
,
{
useState
,
useEffect
,
ReactNode
,
useRef
}
from
'react'
;
import
style
from
'./index.less'
import
{
history
}
from
'umi'
;
import
{
Button
,
Card
,
Tabs
,
Steps
,
Table
}
from
'antd'
;
import
{
Button
,
Tabs
,
Steps
,
Table
,
Popconfirm
}
from
'antd'
;
import
{
ColumnType
}
from
'antd/lib/table/interface'
;
import
{
StopOutlined
,
CheckSquareOutlined
,
LinkOutlined
}
from
'@ant-design/icons'
import
{
CheckSquareOutlined
,
LinkOutlined
}
from
'@ant-design/icons'
import
{
PageHeaderWrapper
}
from
'@ant-design/pro-layout'
;
import
{
StandardTable
}
from
'god'
;
import
{
quoteOrderInternalState
,
inquiryQuoteOuterState
}
from
'../../common/tableStatusList'
;
import
AuditModal
from
'../components/auditModel'
;
import
moment
from
'moment'
;
import
{
PublicApi
}
from
'@/services/api'
;
...
...
@@ -374,6 +373,18 @@ const Details: React.FC<parmas> = (props) => {
})
},
[])
const
handleAudit
=
()
=>
{
const
value
=
{
id
,
state
:
1
}
PublicApi
.
postOrderProductQuotationtSubmit
(
value
).
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
history
.
goBack
()
}
})
}
return
(
<
PageHeaderWrapper
className=
{
style
.
header
}
...
...
@@ -392,12 +403,27 @@ const Details: React.FC<parmas> = (props) => {
extra=
{
<>
{
((
page_type
===
2
||
page_type
===
3
||
page_type
===
6
)
&&
show
)
&&
((
page_type
===
2
||
page_type
===
3
)
&&
show
)
&&
<
Button
type=
'primary'
className=
{
style
[
'saveBtn'
]
}
onClick=
{
()
=>
setvisible
(
true
)
}
>
<
CheckSquareOutlined
/>
单据审核
</
Button
>
}
{
(
page_type
===
6
&&
show
)
&&
<
Popconfirm
destroyTooltipOnHide
title=
"确定提交单据审核吗?"
okText=
"是"
cancelText=
"否"
onConfirm=
{
handleAudit
}
>
<
Button
type=
'primary'
className=
{
style
[
'saveBtn'
]
}
>
<
CheckSquareOutlined
/>
单据审核
</
Button
>
</
Popconfirm
>
}
{
(
page_type
===
1
&&
show
)
&&
<
Button
className=
{
style
[
'saveBtn'
]
}
onClick=
{
()
=>
setvisible
(
true
)
}
>
<
CheckSquareOutlined
/>
提交
...
...
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