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
f65e49a0
Commit
f65e49a0
authored
Jan 05, 2021
by
前端-黄佳鑫
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
8f5d3662
069a80d8
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
27 additions
and
23 deletions
+27
-23
index.tsx
src/pages/transaction/components/orderDeleveRecord/index.tsx
+2
-2
index.tsx
src/pages/transaction/components/orderPayTabs/index.tsx
+9
-9
index.tsx
...der/orderCollect/components/simpleElectronModal/index.tsx
+3
-1
index.ts
...s/transaction/purchaseOrder/orderCollect/effects/index.ts
+3
-1
index.less
src/pages/transaction/purchaseOrder/orderCollect/index.less
+0
-9
index.tsx
src/pages/transaction/purchaseOrder/orderCollect/index.tsx
+0
-1
index.ts
...es/transaction/purchaseOrder/orderCollect/schema/index.ts
+10
-0
No files found.
src/pages/transaction/components/orderDeleveRecord/index.tsx
View file @
f65e49a0
...
@@ -193,7 +193,7 @@ const OrderDeleveRecord:React.FC<OrderDeleveRecordProps> = (props) => {
...
@@ -193,7 +193,7 @@ const OrderDeleveRecord:React.FC<OrderDeleveRecordProps> = (props) => {
dataIndex
:
'logisticsNo'
,
dataIndex
:
'logisticsNo'
,
align
:
'center'
,
align
:
'center'
,
key
:
'logisticsNo'
,
key
:
'logisticsNo'
,
render
:
text
=>
<
a
href=
""
>
{
text
}
</
a
>
render
:
text
=>
<
a
href=
{
`/memberCenter/logisticsAbility/logisticsSubmit/orderSubmitSearchList/detail?code=${data.orderNo}`
}
>
{
text
}
</
a
>
},
},
{
{
title
:
'物流公司'
,
title
:
'物流公司'
,
...
@@ -206,7 +206,7 @@ const OrderDeleveRecord:React.FC<OrderDeleveRecordProps> = (props) => {
...
@@ -206,7 +206,7 @@ const OrderDeleveRecord:React.FC<OrderDeleveRecordProps> = (props) => {
dataIndex
:
'storageNo'
,
dataIndex
:
'storageNo'
,
align
:
'center'
,
align
:
'center'
,
key
:
'storageNo'
,
key
:
'storageNo'
,
render
:
text
=>
<
a
href=
""
>
{
text
}
</
a
>
render
:
text
=>
<
a
href=
{
`/memberCenter/tranactionAbility/stockSellStorage/bills/detail?storageNo=${text}`
}
>
{
text
}
</
a
>
},
},
{
{
title
:
'入库时间'
,
title
:
'入库时间'
,
...
...
src/pages/transaction/components/orderPayTabs/index.tsx
View file @
f65e49a0
...
@@ -98,22 +98,22 @@ const OrderPayTabs:React.FC<OrderPayTabsProps> = (props) => {
...
@@ -98,22 +98,22 @@ const OrderPayTabs:React.FC<OrderPayTabsProps> = (props) => {
processEnum
===
24
&&
data
&&
processEnum
===
24
&&
data
&&
<
Col
span=
{
12
}
>
<
Col
span=
{
12
}
>
<
MellowCard
title=
"发货信息"
fullHeight
>
<
MellowCard
title=
"发货信息"
fullHeight
>
<
Row
className=
{
style
[
'card-list'
]
}
>
{
data
.
name
&&
<
Row
className=
{
style
[
'card-list'
]
}
>
<
Col
span=
{
6
}
><
p
>
发货地址:
</
p
></
Col
>
<
Col
span=
{
6
}
><
p
>
发货地址:
</
p
></
Col
>
<
Col
><
p
>
{
data
.
name
}
</
p
></
Col
>
<
Col
><
p
>
{
data
.
name
}
</
p
></
Col
>
</
Row
>
</
Row
>
}
<
Row
className=
{
style
[
'card-list'
]
}
>
{
data
?.
deliverTime
&&
<
Row
className=
{
style
[
'card-list'
]
}
>
<
Col
span=
{
6
}
><
p
>
发货时间:
</
p
></
Col
>
<
Col
span=
{
6
}
><
p
>
发货时间:
</
p
></
Col
>
<
Col
><
p
>
{
moment
(
data
.
deliverTime
).
format
(
'YYYY-MM-DD'
)
}
</
p
></
Col
>
<
Col
><
p
>
{
data
?.
deliverTime
&&
moment
(
data
.
deliverTime
).
format
(
'YYYY-MM-DD'
)
}
</
p
></
Col
>
</
Row
>
</
Row
>
}
<
Row
className=
{
style
[
'card-list'
]
}
>
{
data
.
deliverNo
&&
<
Row
className=
{
style
[
'card-list'
]
}
>
<
Col
span=
{
6
}
><
p
>
物流单号:
</
p
></
Col
>
<
Col
span=
{
6
}
><
p
>
物流单号:
</
p
></
Col
>
<
Col
><
p
><
a
href=
{
`https://www.kuaidi100.com/chaxun?nu=${data.deliverNo}`
}
target=
"_blank"
>
{
data
.
deliverNo
}
</
a
></
p
></
Col
>
<
Col
><
p
><
a
href=
{
`https://www.kuaidi100.com/chaxun?nu=${data.deliverNo}`
}
target=
"_blank"
>
{
data
.
deliverNo
}
</
a
></
p
></
Col
>
</
Row
>
</
Row
>
}
<
Row
className=
{
style
[
'card-list'
]
}
>
{
data
.
logisticsCompany
&&
<
Row
className=
{
style
[
'card-list'
]
}
>
<
Col
span=
{
6
}
><
p
>
物流公司:
</
p
></
Col
>
<
Col
span=
{
6
}
><
p
>
物流公司:
</
p
></
Col
>
<
Col
><
p
>
{
data
.
logisticsCompany
}
</
p
></
Col
>
<
Col
><
p
>
{
data
.
logisticsCompany
}
</
p
></
Col
>
</
Row
>
</
Row
>
}
</
MellowCard
>
</
MellowCard
>
</
Col
>
</
Col
>
}
}
...
...
src/pages/transaction/purchaseOrder/orderCollect/components/simpleElectronModal/index.tsx
View file @
f65e49a0
...
@@ -42,11 +42,13 @@ const SimpleElectronModal:React.FC<SimpleElectronModalProps> = (props) => {
...
@@ -42,11 +42,13 @@ const SimpleElectronModal:React.FC<SimpleElectronModalProps> = (props) => {
const
res
=
await
PublicApi
.
postOrderSignatureOrderSettleSign
(
contracts
,
{
ctlType
:
"none"
})
const
res
=
await
PublicApi
.
postOrderSignatureOrderSettleSign
(
contracts
,
{
ctlType
:
"none"
})
if
(
res
.
code
===
1000
)
{
if
(
res
.
code
===
1000
)
{
timer
=
setInterval
(()
=>
{
timer
=
setInterval
(()
=>
{
console
.
log
(
signatureState
.
current
,
'signatureState'
)
if
(
signatureState
.
current
!==
4
)
{
if
(
signatureState
.
current
!==
4
)
{
PublicApi
.
getOrderSignatureOrderSettleSignDetail
({
signatureLogId
:
res
.
data
.
signatureLogId
+
''
}).
then
(
_res
=>
{
PublicApi
.
getOrderSignatureOrderSettleSignDetail
({
signatureLogId
:
res
.
data
.
signatureLogId
+
''
}).
then
(
_res
=>
{
if
(
_res
.
code
===
1000
)
{
if
(
_res
.
code
===
1000
)
{
signatureState
.
current
=
_res
.
data
.
state
signatureState
.
current
=
_res
.
data
.
state
if
(
_res
.
data
.
state
===
4
)
{
schemaAction
.
setFieldValue
(
"electronicContractUrl"
,
_res
.
data
.
contractUrl
)
}
}
else
{
}
else
{
clearInterval
(
timer
)
clearInterval
(
timer
)
timer
=
null
timer
=
null
...
...
src/pages/transaction/purchaseOrder/orderCollect/effects/index.ts
View file @
f65e49a0
...
@@ -256,7 +256,8 @@ export const useInvoiceList = (ctx: ISchemaFormActions | ISchemaFormAsyncActions
...
@@ -256,7 +256,8 @@ export const useInvoiceList = (ctx: ISchemaFormActions | ISchemaFormAsyncActions
// 查询工作流获取电子合同
// 查询工作流获取电子合同
export
const
useElectronicContract
=
(
ctx
:
ISchemaFormActions
|
ISchemaFormAsyncActions
)
=>
{
export
const
useElectronicContract
=
(
ctx
:
ISchemaFormActions
|
ISchemaFormAsyncActions
)
=>
{
let
params
:
any
=
{};
let
params
:
any
=
{};
params
[
'productId'
]
=
ctx
.
getFieldValue
(
'orderProductRequests'
)[
0
][
'id'
]
// 商品数据有commodityId为手动下单 不存在为询价等下单
params
[
'productId'
]
=
ctx
.
getFieldValue
(
'orderProductRequests'
)[
0
][
'commodityId'
]
?
ctx
.
getFieldValue
(
'orderProductRequests'
)[
0
][
'id'
]
:
ctx
.
getFieldValue
(
'orderProductRequests'
)[
0
][
'productId'
]
params
[
'orderModelId'
]
=
ctx
.
getFieldValue
(
'orderModel'
)
params
[
'orderModelId'
]
=
ctx
.
getFieldValue
(
'orderModel'
)
params
[
'memberId'
]
=
ctx
.
getFieldValue
(
'supplyMembersId'
)
params
[
'memberId'
]
=
ctx
.
getFieldValue
(
'supplyMembersId'
)
params
[
'memberRoleId'
]
=
ctx
.
getFieldValue
(
'supplyMembersRoleId'
)
params
[
'memberRoleId'
]
=
ctx
.
getFieldValue
(
'supplyMembersRoleId'
)
...
@@ -276,6 +277,7 @@ export const useElectronicContract = (ctx: ISchemaFormActions | ISchemaFormAsync
...
@@ -276,6 +277,7 @@ export const useElectronicContract = (ctx: ISchemaFormActions | ISchemaFormAsync
ctx
.
setFieldState
(
"usingElectronicContracts"
,
state
=>
{
ctx
.
setFieldState
(
"usingElectronicContracts"
,
state
=>
{
state
.
props
[
"x-component-props"
].
contract
=
{
contractTemplateId
:
data
[
'electronicContractId'
],
...
_data
,
}
state
.
props
[
"x-component-props"
].
contract
=
{
contractTemplateId
:
data
[
'electronicContractId'
],
...
_data
,
}
})
})
ctx
.
setFieldValue
(
"electronicContractName"
,
_data
.
contractName
)
})
})
}
}
})
})
...
...
src/pages/transaction/purchaseOrder/orderCollect/index.less
View file @
f65e49a0
.orderCollectCard {
:global {
.ant-form-item-explain-error {
position: absolute;
top: 92%;
}
}
}
\ No newline at end of file
src/pages/transaction/purchaseOrder/orderCollect/index.tsx
View file @
f65e49a0
...
@@ -189,7 +189,6 @@ const PurchaseOrderDetail:React.FC<PurchaseOrderDetailProps> = (props) => {
...
@@ -189,7 +189,6 @@ const PurchaseOrderDetail:React.FC<PurchaseOrderDetailProps> = (props) => {
let
processEnum
=
addSchemaAction
.
getFieldValue
(
'processEnum'
)
let
processEnum
=
addSchemaAction
.
getFieldValue
(
'processEnum'
)
let
usingElectronicContracts
=
addSchemaAction
.
getFieldValue
(
'usingElectronicContracts'
)
let
usingElectronicContracts
=
addSchemaAction
.
getFieldValue
(
'usingElectronicContracts'
)
let
signatureLogId
=
addSchemaAction
.
getFieldValue
(
"signatureLogId"
)
let
signatureLogId
=
addSchemaAction
.
getFieldValue
(
"signatureLogId"
)
console
.
log
(
processEnum
,
usingElectronicContracts
,
signatureLogId
)
if
(
processEnum
===
24
&&
usingElectronicContracts
&&
!
signatureLogId
)
{
if
(
processEnum
===
24
&&
usingElectronicContracts
&&
!
signatureLogId
)
{
contractRef
.
current
.
setVisible
(
true
)
contractRef
.
current
.
setVisible
(
true
)
return
;
return
;
...
...
src/pages/transaction/purchaseOrder/orderCollect/schema/index.ts
View file @
f65e49a0
...
@@ -425,6 +425,16 @@ const ortherInfo: ISchema = {
...
@@ -425,6 +425,16 @@ const ortherInfo: ISchema = {
title
:
'合同签署记录id'
,
title
:
'合同签署记录id'
,
visible
:
false
visible
:
false
},
},
electronicContractUrl
:
{
type
:
"string"
,
title
:
'合同URL'
,
visible
:
false
},
electronicContractName
:
{
type
:
"string"
,
title
:
'合同Name'
,
visible
:
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